@thinkai/tai-api-contract 2.237.0 → 2.238.0
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 +998 -5
- package/dist/generated/openapi.d.ts.map +1 -1
- package/openapi/openapi.yaml +854 -3
- package/package.json +1 -1
- package/src/generated/openapi.ts +998 -5
package/src/generated/openapi.ts
CHANGED
|
@@ -4639,6 +4639,232 @@ export interface paths {
|
|
|
4639
4639
|
patch?: never;
|
|
4640
4640
|
trace?: never;
|
|
4641
4641
|
};
|
|
4642
|
+
"/workspaces/{workspaceId}/code-chat/deep-wiki/generate": {
|
|
4643
|
+
parameters: {
|
|
4644
|
+
query?: never;
|
|
4645
|
+
header?: never;
|
|
4646
|
+
path?: never;
|
|
4647
|
+
cookie?: never;
|
|
4648
|
+
};
|
|
4649
|
+
get?: never;
|
|
4650
|
+
put?: never;
|
|
4651
|
+
/**
|
|
4652
|
+
* Start writing the workspace wiki (Deep Wiki)
|
|
4653
|
+
* @description Starts a background run that writes the cross-repository workspace wiki from stored architecture documents (`.arch.md`). It does not clone or re-index. Member auth, and Code Intelligence must be on for the workspace. Returns `202` at once; poll `GET …/code-chat/deep-wiki/generate/status` until `status` is `done` or `failed`.
|
|
4654
|
+
* One run per workspace. Run state is stored durably, so it survives a restart and is the same on every replica. A run that is still going after 12 minutes is stopped and reads `failed`; pages saved before then (the outline) are kept and the next run replaces them. Draft pages (PRD / RFC / ADR) are left in place.
|
|
4655
|
+
*/
|
|
4656
|
+
post: operations["generateWorkspaceDeepWiki"];
|
|
4657
|
+
delete?: never;
|
|
4658
|
+
options?: never;
|
|
4659
|
+
head?: never;
|
|
4660
|
+
patch?: never;
|
|
4661
|
+
trace?: never;
|
|
4662
|
+
};
|
|
4663
|
+
"/workspaces/{workspaceId}/code-chat/deep-wiki/generate/status": {
|
|
4664
|
+
parameters: {
|
|
4665
|
+
query?: never;
|
|
4666
|
+
header?: never;
|
|
4667
|
+
path?: never;
|
|
4668
|
+
cookie?: never;
|
|
4669
|
+
};
|
|
4670
|
+
/**
|
|
4671
|
+
* Get the workspace wiki run status
|
|
4672
|
+
* @description Current or most recent Deep Wiki run for the workspace, read from durable storage. `idle` with null fields means no run has been started. A `running` row older than the run limit (12 minutes) reads `failed`, so a crashed replica cannot hold the lock forever.
|
|
4673
|
+
*/
|
|
4674
|
+
get: operations["getWorkspaceDeepWikiStatus"];
|
|
4675
|
+
put?: never;
|
|
4676
|
+
post?: never;
|
|
4677
|
+
delete?: never;
|
|
4678
|
+
options?: never;
|
|
4679
|
+
head?: never;
|
|
4680
|
+
patch?: never;
|
|
4681
|
+
trace?: never;
|
|
4682
|
+
};
|
|
4683
|
+
"/workspaces/{workspaceId}/mcp/oauth/approve": {
|
|
4684
|
+
parameters: {
|
|
4685
|
+
query?: never;
|
|
4686
|
+
header?: never;
|
|
4687
|
+
path?: never;
|
|
4688
|
+
cookie?: never;
|
|
4689
|
+
};
|
|
4690
|
+
get?: never;
|
|
4691
|
+
put?: never;
|
|
4692
|
+
/**
|
|
4693
|
+
* Approve an MCP client sign-in
|
|
4694
|
+
* @description Called by the app's consent page after a member agrees to let an MCP client read this workspace. Issues a single-use authorization code and returns the client's redirect URL with `code` (and `state` when sent). The client then exchanges the code at `POST /mcp/oauth/token`. `clientId` and `redirectUri` must match a client registered at `POST /mcp/oauth/register`.
|
|
4695
|
+
*/
|
|
4696
|
+
post: operations["approveMcpOauth"];
|
|
4697
|
+
delete?: never;
|
|
4698
|
+
options?: never;
|
|
4699
|
+
head?: never;
|
|
4700
|
+
patch?: never;
|
|
4701
|
+
trace?: never;
|
|
4702
|
+
};
|
|
4703
|
+
"/workspaces/{workspaceId}/mcp/tokens": {
|
|
4704
|
+
parameters: {
|
|
4705
|
+
query?: never;
|
|
4706
|
+
header?: never;
|
|
4707
|
+
path?: never;
|
|
4708
|
+
cookie?: never;
|
|
4709
|
+
};
|
|
4710
|
+
/**
|
|
4711
|
+
* List personal MCP tokens
|
|
4712
|
+
* @description Personal tokens, newest first, at most 50. Workspace admins see every member's tokens; other members see only their own. Includes revoked and expired rows. The secret is never returned here; only `tokenPrefix`.
|
|
4713
|
+
*/
|
|
4714
|
+
get: operations["listMcpTokens"];
|
|
4715
|
+
put?: never;
|
|
4716
|
+
/**
|
|
4717
|
+
* Create a personal MCP token
|
|
4718
|
+
* @description Creates a read-only token for scripts that cannot use OAuth. Valid for 90 days. The full `token` is returned once, in this response only. Use it as `Authorization: Bearer <token>` on `POST /workspaces/{workspaceId}/mcp`.
|
|
4719
|
+
*/
|
|
4720
|
+
post: operations["createMcpToken"];
|
|
4721
|
+
delete?: never;
|
|
4722
|
+
options?: never;
|
|
4723
|
+
head?: never;
|
|
4724
|
+
patch?: never;
|
|
4725
|
+
trace?: never;
|
|
4726
|
+
};
|
|
4727
|
+
"/workspaces/{workspaceId}/mcp/tokens/{tokenId}": {
|
|
4728
|
+
parameters: {
|
|
4729
|
+
query?: never;
|
|
4730
|
+
header?: never;
|
|
4731
|
+
path?: never;
|
|
4732
|
+
cookie?: never;
|
|
4733
|
+
};
|
|
4734
|
+
get?: never;
|
|
4735
|
+
put?: never;
|
|
4736
|
+
post?: never;
|
|
4737
|
+
/**
|
|
4738
|
+
* Revoke a personal MCP token
|
|
4739
|
+
* @description Revokes one token. The owner can revoke their own token; a workspace admin can revoke any token in the workspace.
|
|
4740
|
+
*/
|
|
4741
|
+
delete: operations["revokeMcpToken"];
|
|
4742
|
+
options?: never;
|
|
4743
|
+
head?: never;
|
|
4744
|
+
patch?: never;
|
|
4745
|
+
trace?: never;
|
|
4746
|
+
};
|
|
4747
|
+
"/.well-known/oauth-authorization-server": {
|
|
4748
|
+
parameters: {
|
|
4749
|
+
query?: never;
|
|
4750
|
+
header?: never;
|
|
4751
|
+
path?: never;
|
|
4752
|
+
cookie?: never;
|
|
4753
|
+
};
|
|
4754
|
+
/**
|
|
4755
|
+
* OAuth authorization server metadata for MCP clients
|
|
4756
|
+
* @description Public. Discovery document for the MCP sign-in: authorization code with PKCE (`S256`), public clients, scope `read`. URLs are built from the configured public API origin, not from request headers. Rate limited per client IP.
|
|
4757
|
+
*/
|
|
4758
|
+
get: operations["getMcpOauthAuthorizationServerMetadata"];
|
|
4759
|
+
put?: never;
|
|
4760
|
+
post?: never;
|
|
4761
|
+
delete?: never;
|
|
4762
|
+
options?: never;
|
|
4763
|
+
head?: never;
|
|
4764
|
+
patch?: never;
|
|
4765
|
+
trace?: never;
|
|
4766
|
+
};
|
|
4767
|
+
"/.well-known/oauth-protected-resource/workspaces/{workspaceId}/mcp": {
|
|
4768
|
+
parameters: {
|
|
4769
|
+
query?: never;
|
|
4770
|
+
header?: never;
|
|
4771
|
+
path?: never;
|
|
4772
|
+
cookie?: never;
|
|
4773
|
+
};
|
|
4774
|
+
/**
|
|
4775
|
+
* OAuth protected resource metadata for one workspace MCP endpoint
|
|
4776
|
+
* @description Public. Tells an MCP client which authorization server protects the workspace MCP endpoint. Linked from the `WWW-Authenticate` header of a `401` on `POST /workspaces/{workspaceId}/mcp`.
|
|
4777
|
+
*/
|
|
4778
|
+
get: operations["getMcpOauthProtectedResourceMetadata"];
|
|
4779
|
+
put?: never;
|
|
4780
|
+
post?: never;
|
|
4781
|
+
delete?: never;
|
|
4782
|
+
options?: never;
|
|
4783
|
+
head?: never;
|
|
4784
|
+
patch?: never;
|
|
4785
|
+
trace?: never;
|
|
4786
|
+
};
|
|
4787
|
+
"/mcp/oauth/register": {
|
|
4788
|
+
parameters: {
|
|
4789
|
+
query?: never;
|
|
4790
|
+
header?: never;
|
|
4791
|
+
path?: never;
|
|
4792
|
+
cookie?: never;
|
|
4793
|
+
};
|
|
4794
|
+
get?: never;
|
|
4795
|
+
put?: never;
|
|
4796
|
+
/**
|
|
4797
|
+
* Register an MCP OAuth client (dynamic registration)
|
|
4798
|
+
* @description Public. Registers a public client (no secret) and returns its `client_id`. Up to 10 `redirect_uris`; each must be `https`, or `http` on `localhost`, `127.0.0.1`, or `::1`, with no fragment (`400` `mcp_redirect_uri_invalid` otherwise).
|
|
4799
|
+
*/
|
|
4800
|
+
post: operations["registerMcpOauthClient"];
|
|
4801
|
+
delete?: never;
|
|
4802
|
+
options?: never;
|
|
4803
|
+
head?: never;
|
|
4804
|
+
patch?: never;
|
|
4805
|
+
trace?: never;
|
|
4806
|
+
};
|
|
4807
|
+
"/mcp/oauth/authorize": {
|
|
4808
|
+
parameters: {
|
|
4809
|
+
query?: never;
|
|
4810
|
+
header?: never;
|
|
4811
|
+
path?: never;
|
|
4812
|
+
cookie?: never;
|
|
4813
|
+
};
|
|
4814
|
+
/**
|
|
4815
|
+
* Start an MCP OAuth sign-in
|
|
4816
|
+
* @description Public. Browser entry point of the authorization code flow. After checking the client, redirect URI, and PKCE challenge, it redirects (`302`) to the app's `/mcp/consent` page where a signed-in member approves. `resource` must be the workspace MCP URL (`…/workspaces/{workspaceId}/mcp`). Only `response_type=code` and `code_challenge_method=S256` are accepted.
|
|
4817
|
+
*/
|
|
4818
|
+
get: operations["authorizeMcpOauth"];
|
|
4819
|
+
put?: never;
|
|
4820
|
+
post?: never;
|
|
4821
|
+
delete?: never;
|
|
4822
|
+
options?: never;
|
|
4823
|
+
head?: never;
|
|
4824
|
+
patch?: never;
|
|
4825
|
+
trace?: never;
|
|
4826
|
+
};
|
|
4827
|
+
"/mcp/oauth/token": {
|
|
4828
|
+
parameters: {
|
|
4829
|
+
query?: never;
|
|
4830
|
+
header?: never;
|
|
4831
|
+
path?: never;
|
|
4832
|
+
cookie?: never;
|
|
4833
|
+
};
|
|
4834
|
+
get?: never;
|
|
4835
|
+
put?: never;
|
|
4836
|
+
/**
|
|
4837
|
+
* Exchange an MCP authorization code for an access token
|
|
4838
|
+
* @description Public. Accepts `application/x-www-form-urlencoded` (standard) or JSON. Only `grant_type=authorization_code` is supported. `code_verifier` is 43 to 128 characters and must match the challenge sent at authorize. A code is single use. The response is never cached (`Cache-Control: no-store`). The access token is read-only and lasts 8 hours. Errors follow OAuth: the body carries `error` (`unsupported_grant_type`, `invalid_grant`).
|
|
4839
|
+
*/
|
|
4840
|
+
post: operations["exchangeMcpOauthToken"];
|
|
4841
|
+
delete?: never;
|
|
4842
|
+
options?: never;
|
|
4843
|
+
head?: never;
|
|
4844
|
+
patch?: never;
|
|
4845
|
+
trace?: never;
|
|
4846
|
+
};
|
|
4847
|
+
"/workspaces/{workspaceId}/mcp": {
|
|
4848
|
+
parameters: {
|
|
4849
|
+
query?: never;
|
|
4850
|
+
header?: never;
|
|
4851
|
+
path?: never;
|
|
4852
|
+
cookie?: never;
|
|
4853
|
+
};
|
|
4854
|
+
get?: never;
|
|
4855
|
+
put?: never;
|
|
4856
|
+
/**
|
|
4857
|
+
* Workspace MCP endpoint (Streamable HTTP, JSON-RPC)
|
|
4858
|
+
* @description Hosted, read-only MCP server for one workspace. Authenticate with an MCP bearer token (an OAuth access token or a personal token), not a Supabase JWT. Each call carries one JSON-RPC 2.0 message and gets one JSON response. A message without `id` (a notification) gets `202` with no body. Supported methods: `initialize`, `tools/list`, `tools/call`; any other method returns JSON-RPC error `-32601`. A tool failure returns `200` with `result.isError: true`.
|
|
4859
|
+
* Tools: the Code Chat tools (including `ask`), `read_wiki_structure` and `read_wiki_contents` (one repository, pass `repoId`), and `read_workspace_wiki_structure` and `read_workspace_wiki_contents` (the workspace wiki, pass `slug`; stale pages are marked). Code Intelligence must be on for the workspace. Rate limited per client IP.
|
|
4860
|
+
*/
|
|
4861
|
+
post: operations["callWorkspaceMcp"];
|
|
4862
|
+
delete?: never;
|
|
4863
|
+
options?: never;
|
|
4864
|
+
head?: never;
|
|
4865
|
+
patch?: never;
|
|
4866
|
+
trace?: never;
|
|
4867
|
+
};
|
|
4642
4868
|
"/workspaces/{workspaceId}/knowledge-pages/prd/generate": {
|
|
4643
4869
|
parameters: {
|
|
4644
4870
|
query?: never;
|
|
@@ -4650,7 +4876,7 @@ export interface paths {
|
|
|
4650
4876
|
put?: never;
|
|
4651
4877
|
/**
|
|
4652
4878
|
* Generate a workspace-scoped PRD draft
|
|
4653
|
-
* @description Builds a PRD draft from ready indexes (required) plus optional wiki pages and platform evidence (readiness, quality, delivery, AI adoption, monitoring). Wiki is optional — scan at least one repository first. Upserts one workspace knowledge page (`prd-<slug>` / `prd-draft`) without replacing the whole knowledge base.
|
|
4879
|
+
* @description Builds a PRD draft from ready indexes (required) plus optional wiki pages and platform evidence (readiness, quality, delivery, AI adoption, monitoring). Wiki is optional — scan at least one repository first. Upserts one workspace knowledge page (`prd-<slug>` / `prd-draft`) without replacing the whole knowledge base. When no model is configured the saved page is a labeled skeleton (`mode: deterministic`); when models are configured and the draft fails or times out, nothing is saved (`502` / `504`).
|
|
4654
4880
|
*/
|
|
4655
4881
|
post: operations["generatePrdDraft"];
|
|
4656
4882
|
delete?: never;
|
|
@@ -13513,7 +13739,7 @@ export interface components {
|
|
|
13513
13739
|
reason: string | null;
|
|
13514
13740
|
/** Format: date-time */
|
|
13515
13741
|
updatedAt: string | null;
|
|
13516
|
-
/** @description The
|
|
13742
|
+
/** @description The last scan did not confirm the document for the commit the index now holds. A newer commit that left the architecture unchanged is not stale. */
|
|
13517
13743
|
stale: boolean;
|
|
13518
13744
|
/** @description The `.arch.md` file content. Standard headings, in the same order for every repository. */
|
|
13519
13745
|
markdown: string | null;
|
|
@@ -13893,6 +14119,153 @@ export interface components {
|
|
|
13893
14119
|
standaloneCount?: number;
|
|
13894
14120
|
};
|
|
13895
14121
|
};
|
|
14122
|
+
GenerateWorkspaceDeepWikiBodyDto: {
|
|
14123
|
+
/** @description Limit the run to these repositories' architecture documents. Omit or send empty for all (capped at 40). */
|
|
14124
|
+
repoIds?: string[];
|
|
14125
|
+
};
|
|
14126
|
+
WorkspaceDeepWikiRunDto: {
|
|
14127
|
+
/** @enum {string} */
|
|
14128
|
+
status: "idle" | "running" | "done" | "failed";
|
|
14129
|
+
/**
|
|
14130
|
+
* @description Current generate step while `status` is running; `done` when finished.
|
|
14131
|
+
* @enum {string|null}
|
|
14132
|
+
*/
|
|
14133
|
+
phase?: "evidence" | "outline" | "skeleton" | "enrich" | "done" | null;
|
|
14134
|
+
/** Format: date-time */
|
|
14135
|
+
startedAt: string | null;
|
|
14136
|
+
/** Format: date-time */
|
|
14137
|
+
finishedAt: string | null;
|
|
14138
|
+
/** @description Pages saved by a finished run; null otherwise. */
|
|
14139
|
+
pageCount: number | null;
|
|
14140
|
+
/** @description Plain-words reason when `status` is `failed`; null otherwise. */
|
|
14141
|
+
error: string | null;
|
|
14142
|
+
/** @description Repositories whose architecture documents feed the run. Sent only on the `202` start response. */
|
|
14143
|
+
reposInEvidence?: number;
|
|
14144
|
+
};
|
|
14145
|
+
McpOauthApproveBodyDto: {
|
|
14146
|
+
clientId: string;
|
|
14147
|
+
redirectUri: string;
|
|
14148
|
+
/** @description PKCE `S256` challenge from the authorize request. */
|
|
14149
|
+
codeChallenge: string;
|
|
14150
|
+
state?: string;
|
|
14151
|
+
};
|
|
14152
|
+
McpOauthApproveResultDto: {
|
|
14153
|
+
/** @description The client's redirect URI with `code` (and `state` when sent). Send the browser here. */
|
|
14154
|
+
redirectTo: string;
|
|
14155
|
+
};
|
|
14156
|
+
McpTokenDto: {
|
|
14157
|
+
/** Format: uuid */
|
|
14158
|
+
id: string;
|
|
14159
|
+
name: string;
|
|
14160
|
+
/** @description First 16 characters of the token, to tell tokens apart. Not usable as a secret. */
|
|
14161
|
+
tokenPrefix: string;
|
|
14162
|
+
/** @description Always `personal` in this list. */
|
|
14163
|
+
tokenKind: string;
|
|
14164
|
+
/** Format: date-time */
|
|
14165
|
+
expiresAt: string;
|
|
14166
|
+
/** Format: date-time */
|
|
14167
|
+
revokedAt: string | null;
|
|
14168
|
+
/** Format: date-time */
|
|
14169
|
+
createdAt: string;
|
|
14170
|
+
/**
|
|
14171
|
+
* Format: uuid
|
|
14172
|
+
* @description Owner of the token.
|
|
14173
|
+
*/
|
|
14174
|
+
userId: string;
|
|
14175
|
+
};
|
|
14176
|
+
McpTokenListDto: {
|
|
14177
|
+
items: components["schemas"]["McpTokenDto"][];
|
|
14178
|
+
};
|
|
14179
|
+
McpTokenCreateBodyDto: {
|
|
14180
|
+
/** @description Label for the token. Trimmed and cut to 80 characters. */
|
|
14181
|
+
name: string;
|
|
14182
|
+
};
|
|
14183
|
+
McpTokenCreatedDto: {
|
|
14184
|
+
/** Format: uuid */
|
|
14185
|
+
id: string;
|
|
14186
|
+
/** @description Full secret (`tai_mcp_…`). Shown once; it cannot be read again. */
|
|
14187
|
+
token: string;
|
|
14188
|
+
tokenPrefix: string;
|
|
14189
|
+
/**
|
|
14190
|
+
* Format: date-time
|
|
14191
|
+
* @description 90 days after creation.
|
|
14192
|
+
*/
|
|
14193
|
+
expiresAt: string;
|
|
14194
|
+
};
|
|
14195
|
+
McpOauthServerMetadataDto: {
|
|
14196
|
+
issuer: string;
|
|
14197
|
+
authorization_endpoint: string;
|
|
14198
|
+
token_endpoint: string;
|
|
14199
|
+
registration_endpoint: string;
|
|
14200
|
+
response_types_supported: string[];
|
|
14201
|
+
grant_types_supported: string[];
|
|
14202
|
+
code_challenge_methods_supported: string[];
|
|
14203
|
+
scopes_supported: string[];
|
|
14204
|
+
token_endpoint_auth_methods_supported: string[];
|
|
14205
|
+
};
|
|
14206
|
+
McpOauthProtectedResourceDto: {
|
|
14207
|
+
resource: string;
|
|
14208
|
+
authorization_servers: string[];
|
|
14209
|
+
scopes_supported: string[];
|
|
14210
|
+
bearer_methods_supported: string[];
|
|
14211
|
+
};
|
|
14212
|
+
McpOauthRegisterBodyDto: {
|
|
14213
|
+
redirect_uris: string[];
|
|
14214
|
+
/** @description Defaults to `MCP client`. */
|
|
14215
|
+
client_name?: string;
|
|
14216
|
+
};
|
|
14217
|
+
McpOauthRegisterResultDto: {
|
|
14218
|
+
client_id: string;
|
|
14219
|
+
client_name: string;
|
|
14220
|
+
redirect_uris: string[];
|
|
14221
|
+
/** @enum {string} */
|
|
14222
|
+
token_endpoint_auth_method: "none";
|
|
14223
|
+
grant_types: string[];
|
|
14224
|
+
response_types: string[];
|
|
14225
|
+
};
|
|
14226
|
+
McpOauthTokenBodyDto: {
|
|
14227
|
+
/** @enum {string} */
|
|
14228
|
+
grant_type: "authorization_code";
|
|
14229
|
+
code: string;
|
|
14230
|
+
code_verifier: string;
|
|
14231
|
+
client_id: string;
|
|
14232
|
+
/** @description Must match the redirect used at authorize. */
|
|
14233
|
+
redirect_uri?: string;
|
|
14234
|
+
};
|
|
14235
|
+
McpOauthTokenResultDto: {
|
|
14236
|
+
access_token: string;
|
|
14237
|
+
/** @enum {string} */
|
|
14238
|
+
token_type: "Bearer";
|
|
14239
|
+
/** @description Seconds (28800, 8 hours). */
|
|
14240
|
+
expires_in: number;
|
|
14241
|
+
/** @enum {string} */
|
|
14242
|
+
scope: "read";
|
|
14243
|
+
};
|
|
14244
|
+
McpJsonRpcRequestDto: {
|
|
14245
|
+
/** @enum {string} */
|
|
14246
|
+
jsonrpc: "2.0";
|
|
14247
|
+
/** @description Omit for a notification. */
|
|
14248
|
+
id?: string | number;
|
|
14249
|
+
/** @description `initialize`, `tools/list`, or `tools/call` */
|
|
14250
|
+
method: string;
|
|
14251
|
+
/** @description For `tools/call`, `{ name, arguments }`. */
|
|
14252
|
+
params?: {
|
|
14253
|
+
[key: string]: unknown;
|
|
14254
|
+
};
|
|
14255
|
+
};
|
|
14256
|
+
McpJsonRpcResponseDto: {
|
|
14257
|
+
/** @enum {string} */
|
|
14258
|
+
jsonrpc: "2.0";
|
|
14259
|
+
id: string | number;
|
|
14260
|
+
/** @description For `tools/call`: `{ content: [{ type: "text", text }], isError }`, where `text` is JSON for a successful tool call or an error message when `isError` is true. */
|
|
14261
|
+
result?: {
|
|
14262
|
+
[key: string]: unknown;
|
|
14263
|
+
};
|
|
14264
|
+
error?: {
|
|
14265
|
+
code: number;
|
|
14266
|
+
message: string;
|
|
14267
|
+
};
|
|
14268
|
+
};
|
|
13896
14269
|
GeneratePrdDraftBodyDto: {
|
|
13897
14270
|
/** @description Feature or change the PRD, RFC, or ADR should describe */
|
|
13898
14271
|
featureIntent: string;
|
|
@@ -13939,6 +14312,20 @@ export interface components {
|
|
|
13939
14312
|
excerpt?: string;
|
|
13940
14313
|
/** @description Display names for sourceRepoIds when resolvable */
|
|
13941
14314
|
sourceRepoNames?: string[];
|
|
14315
|
+
/**
|
|
14316
|
+
* @description kb = legacy synthesis, wiki = workspace Deep Wiki, draft = PRD/RFC/ADR
|
|
14317
|
+
* @enum {string}
|
|
14318
|
+
*/
|
|
14319
|
+
pageKind?: "kb" | "wiki" | "draft";
|
|
14320
|
+
parentSlug?: string | null;
|
|
14321
|
+
/** @description True when the page is still a grounded skeleton (enrich not finished) */
|
|
14322
|
+
shallow?: boolean;
|
|
14323
|
+
/**
|
|
14324
|
+
* Format: date-time
|
|
14325
|
+
* @description Set when a cited architecture document changed; clear after Refresh
|
|
14326
|
+
*/
|
|
14327
|
+
staleAt?: string | null;
|
|
14328
|
+
diagramMermaid?: string | null;
|
|
13942
14329
|
};
|
|
13943
14330
|
WorkspaceKnowledgeSystemContextDto: {
|
|
13944
14331
|
indexes: {
|
|
@@ -15169,6 +15556,22 @@ export interface components {
|
|
|
15169
15556
|
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15170
15557
|
};
|
|
15171
15558
|
};
|
|
15559
|
+
/** @description Too many requests from this client IP; wait `Retry-After` seconds */
|
|
15560
|
+
McpRateLimited: {
|
|
15561
|
+
headers: {
|
|
15562
|
+
"Retry-After"?: number;
|
|
15563
|
+
[name: string]: unknown;
|
|
15564
|
+
};
|
|
15565
|
+
content: {
|
|
15566
|
+
/**
|
|
15567
|
+
* @example {
|
|
15568
|
+
* "error": "Too many requests",
|
|
15569
|
+
* "code": "too_many_requests"
|
|
15570
|
+
* }
|
|
15571
|
+
*/
|
|
15572
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
15573
|
+
};
|
|
15574
|
+
};
|
|
15172
15575
|
/** @description HRIS sync or ZenHR OAuth refresh already in progress for this workspace */
|
|
15173
15576
|
ZenHrSyncInProgress: {
|
|
15174
15577
|
headers: {
|
|
@@ -15946,6 +16349,22 @@ export type RepoWikiJsonSummaryListDto = components['schemas']['RepoWikiJsonSumm
|
|
|
15946
16349
|
export type GenerateWorkspaceKnowledgePagesBodyDto = components['schemas']['GenerateWorkspaceKnowledgePagesBodyDto'];
|
|
15947
16350
|
export type GenerateWorkspaceKnowledgePagesResultDto = components['schemas']['GenerateWorkspaceKnowledgePagesResultDto'];
|
|
15948
16351
|
export type WorkspaceContextGenerationStatusDto = components['schemas']['WorkspaceContextGenerationStatusDto'];
|
|
16352
|
+
export type GenerateWorkspaceDeepWikiBodyDto = components['schemas']['GenerateWorkspaceDeepWikiBodyDto'];
|
|
16353
|
+
export type WorkspaceDeepWikiRunDto = components['schemas']['WorkspaceDeepWikiRunDto'];
|
|
16354
|
+
export type McpOauthApproveBodyDto = components['schemas']['McpOauthApproveBodyDto'];
|
|
16355
|
+
export type McpOauthApproveResultDto = components['schemas']['McpOauthApproveResultDto'];
|
|
16356
|
+
export type McpTokenDto = components['schemas']['McpTokenDto'];
|
|
16357
|
+
export type McpTokenListDto = components['schemas']['McpTokenListDto'];
|
|
16358
|
+
export type McpTokenCreateBodyDto = components['schemas']['McpTokenCreateBodyDto'];
|
|
16359
|
+
export type McpTokenCreatedDto = components['schemas']['McpTokenCreatedDto'];
|
|
16360
|
+
export type McpOauthServerMetadataDto = components['schemas']['McpOauthServerMetadataDto'];
|
|
16361
|
+
export type McpOauthProtectedResourceDto = components['schemas']['McpOauthProtectedResourceDto'];
|
|
16362
|
+
export type McpOauthRegisterBodyDto = components['schemas']['McpOauthRegisterBodyDto'];
|
|
16363
|
+
export type McpOauthRegisterResultDto = components['schemas']['McpOauthRegisterResultDto'];
|
|
16364
|
+
export type McpOauthTokenBodyDto = components['schemas']['McpOauthTokenBodyDto'];
|
|
16365
|
+
export type McpOauthTokenResultDto = components['schemas']['McpOauthTokenResultDto'];
|
|
16366
|
+
export type McpJsonRpcRequestDto = components['schemas']['McpJsonRpcRequestDto'];
|
|
16367
|
+
export type McpJsonRpcResponseDto = components['schemas']['McpJsonRpcResponseDto'];
|
|
15949
16368
|
export type GeneratePrdDraftBodyDto = components['schemas']['GeneratePrdDraftBodyDto'];
|
|
15950
16369
|
export type GeneratePrdDraftResultDto = components['schemas']['GeneratePrdDraftResultDto'];
|
|
15951
16370
|
export type WorkspaceKnowledgePageDto = components['schemas']['WorkspaceKnowledgePageDto'];
|
|
@@ -16059,6 +16478,7 @@ export type EvalDecisionListDto = components['schemas']['EvalDecisionListDto'];
|
|
|
16059
16478
|
export type CreateEvalDecisionBodyDto = components['schemas']['CreateEvalDecisionBodyDto'];
|
|
16060
16479
|
export type ResponseUnauthorized = components['responses']['Unauthorized'];
|
|
16061
16480
|
export type ResponseForbidden = components['responses']['Forbidden'];
|
|
16481
|
+
export type ResponseMcpRateLimited = components['responses']['McpRateLimited'];
|
|
16062
16482
|
export type ResponseZenHrSyncInProgress = components['responses']['ZenHrSyncInProgress'];
|
|
16063
16483
|
export type ParameterWorkspaceId = components['parameters']['WorkspaceId'];
|
|
16064
16484
|
export type ParameterAssessmentReportId = components['parameters']['AssessmentReportId'];
|
|
@@ -28741,7 +29161,7 @@ export interface operations {
|
|
|
28741
29161
|
401: components["responses"]["Unauthorized"];
|
|
28742
29162
|
};
|
|
28743
29163
|
};
|
|
28744
|
-
|
|
29164
|
+
generateWorkspaceDeepWiki: {
|
|
28745
29165
|
parameters: {
|
|
28746
29166
|
query?: never;
|
|
28747
29167
|
header?: never;
|
|
@@ -28750,9 +29170,528 @@ export interface operations {
|
|
|
28750
29170
|
};
|
|
28751
29171
|
cookie?: never;
|
|
28752
29172
|
};
|
|
28753
|
-
requestBody
|
|
29173
|
+
requestBody?: {
|
|
28754
29174
|
content: {
|
|
28755
|
-
"application/json": components["schemas"]["
|
|
29175
|
+
"application/json": components["schemas"]["GenerateWorkspaceDeepWikiBodyDto"];
|
|
29176
|
+
};
|
|
29177
|
+
};
|
|
29178
|
+
responses: {
|
|
29179
|
+
/** @description Run started. `reposInEvidence` is how many repositories' architecture documents feed the run. */
|
|
29180
|
+
202: {
|
|
29181
|
+
headers: {
|
|
29182
|
+
[name: string]: unknown;
|
|
29183
|
+
};
|
|
29184
|
+
content: {
|
|
29185
|
+
"application/json": components["schemas"]["WorkspaceDeepWikiRunDto"];
|
|
29186
|
+
};
|
|
29187
|
+
};
|
|
29188
|
+
401: components["responses"]["Unauthorized"];
|
|
29189
|
+
/** @description Not a workspace member, or Code Intelligence is off (`code_intelligence_disabled`) */
|
|
29190
|
+
403: {
|
|
29191
|
+
headers: {
|
|
29192
|
+
[name: string]: unknown;
|
|
29193
|
+
};
|
|
29194
|
+
content: {
|
|
29195
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29196
|
+
};
|
|
29197
|
+
};
|
|
29198
|
+
/** @description Workspace not found */
|
|
29199
|
+
404: {
|
|
29200
|
+
headers: {
|
|
29201
|
+
[name: string]: unknown;
|
|
29202
|
+
};
|
|
29203
|
+
content: {
|
|
29204
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29205
|
+
};
|
|
29206
|
+
};
|
|
29207
|
+
/** @description No architecture documents yet (`arch_docs_missing`), or a run is already going (`generation_in_progress`). */
|
|
29208
|
+
409: {
|
|
29209
|
+
headers: {
|
|
29210
|
+
[name: string]: unknown;
|
|
29211
|
+
};
|
|
29212
|
+
content: {
|
|
29213
|
+
/**
|
|
29214
|
+
* @example {
|
|
29215
|
+
* "error": "A workspace wiki is already being written. Wait for it to finish.",
|
|
29216
|
+
* "code": "generation_in_progress"
|
|
29217
|
+
* }
|
|
29218
|
+
*/
|
|
29219
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29220
|
+
};
|
|
29221
|
+
};
|
|
29222
|
+
};
|
|
29223
|
+
};
|
|
29224
|
+
getWorkspaceDeepWikiStatus: {
|
|
29225
|
+
parameters: {
|
|
29226
|
+
query?: never;
|
|
29227
|
+
header?: never;
|
|
29228
|
+
path: {
|
|
29229
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29230
|
+
};
|
|
29231
|
+
cookie?: never;
|
|
29232
|
+
};
|
|
29233
|
+
requestBody?: never;
|
|
29234
|
+
responses: {
|
|
29235
|
+
/** @description Run state */
|
|
29236
|
+
200: {
|
|
29237
|
+
headers: {
|
|
29238
|
+
[name: string]: unknown;
|
|
29239
|
+
};
|
|
29240
|
+
content: {
|
|
29241
|
+
"application/json": components["schemas"]["WorkspaceDeepWikiRunDto"];
|
|
29242
|
+
};
|
|
29243
|
+
};
|
|
29244
|
+
401: components["responses"]["Unauthorized"];
|
|
29245
|
+
403: components["responses"]["Forbidden"];
|
|
29246
|
+
/** @description Workspace not found */
|
|
29247
|
+
404: {
|
|
29248
|
+
headers: {
|
|
29249
|
+
[name: string]: unknown;
|
|
29250
|
+
};
|
|
29251
|
+
content: {
|
|
29252
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29253
|
+
};
|
|
29254
|
+
};
|
|
29255
|
+
};
|
|
29256
|
+
};
|
|
29257
|
+
approveMcpOauth: {
|
|
29258
|
+
parameters: {
|
|
29259
|
+
query?: never;
|
|
29260
|
+
header?: never;
|
|
29261
|
+
path: {
|
|
29262
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29263
|
+
};
|
|
29264
|
+
cookie?: never;
|
|
29265
|
+
};
|
|
29266
|
+
requestBody: {
|
|
29267
|
+
content: {
|
|
29268
|
+
"application/json": components["schemas"]["McpOauthApproveBodyDto"];
|
|
29269
|
+
};
|
|
29270
|
+
};
|
|
29271
|
+
responses: {
|
|
29272
|
+
/** @description Code issued */
|
|
29273
|
+
200: {
|
|
29274
|
+
headers: {
|
|
29275
|
+
[name: string]: unknown;
|
|
29276
|
+
};
|
|
29277
|
+
content: {
|
|
29278
|
+
"application/json": components["schemas"]["McpOauthApproveResultDto"];
|
|
29279
|
+
};
|
|
29280
|
+
};
|
|
29281
|
+
/** @description Invalid redirect URI (`mcp_redirect_uri_invalid`), unknown client, redirect not registered for the client, or missing `codeChallenge`. */
|
|
29282
|
+
400: {
|
|
29283
|
+
headers: {
|
|
29284
|
+
[name: string]: unknown;
|
|
29285
|
+
};
|
|
29286
|
+
content: {
|
|
29287
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29288
|
+
};
|
|
29289
|
+
};
|
|
29290
|
+
401: components["responses"]["Unauthorized"];
|
|
29291
|
+
403: components["responses"]["Forbidden"];
|
|
29292
|
+
/** @description Workspace not found */
|
|
29293
|
+
404: {
|
|
29294
|
+
headers: {
|
|
29295
|
+
[name: string]: unknown;
|
|
29296
|
+
};
|
|
29297
|
+
content: {
|
|
29298
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29299
|
+
};
|
|
29300
|
+
};
|
|
29301
|
+
};
|
|
29302
|
+
};
|
|
29303
|
+
listMcpTokens: {
|
|
29304
|
+
parameters: {
|
|
29305
|
+
query?: never;
|
|
29306
|
+
header?: never;
|
|
29307
|
+
path: {
|
|
29308
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29309
|
+
};
|
|
29310
|
+
cookie?: never;
|
|
29311
|
+
};
|
|
29312
|
+
requestBody?: never;
|
|
29313
|
+
responses: {
|
|
29314
|
+
/** @description Token list */
|
|
29315
|
+
200: {
|
|
29316
|
+
headers: {
|
|
29317
|
+
[name: string]: unknown;
|
|
29318
|
+
};
|
|
29319
|
+
content: {
|
|
29320
|
+
"application/json": components["schemas"]["McpTokenListDto"];
|
|
29321
|
+
};
|
|
29322
|
+
};
|
|
29323
|
+
401: components["responses"]["Unauthorized"];
|
|
29324
|
+
403: components["responses"]["Forbidden"];
|
|
29325
|
+
/** @description Workspace not found */
|
|
29326
|
+
404: {
|
|
29327
|
+
headers: {
|
|
29328
|
+
[name: string]: unknown;
|
|
29329
|
+
};
|
|
29330
|
+
content: {
|
|
29331
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29332
|
+
};
|
|
29333
|
+
};
|
|
29334
|
+
};
|
|
29335
|
+
};
|
|
29336
|
+
createMcpToken: {
|
|
29337
|
+
parameters: {
|
|
29338
|
+
query?: never;
|
|
29339
|
+
header?: never;
|
|
29340
|
+
path: {
|
|
29341
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29342
|
+
};
|
|
29343
|
+
cookie?: never;
|
|
29344
|
+
};
|
|
29345
|
+
requestBody: {
|
|
29346
|
+
content: {
|
|
29347
|
+
"application/json": components["schemas"]["McpTokenCreateBodyDto"];
|
|
29348
|
+
};
|
|
29349
|
+
};
|
|
29350
|
+
responses: {
|
|
29351
|
+
/** @description Token created */
|
|
29352
|
+
201: {
|
|
29353
|
+
headers: {
|
|
29354
|
+
[name: string]: unknown;
|
|
29355
|
+
};
|
|
29356
|
+
content: {
|
|
29357
|
+
"application/json": components["schemas"]["McpTokenCreatedDto"];
|
|
29358
|
+
};
|
|
29359
|
+
};
|
|
29360
|
+
/** @description `name` missing or empty */
|
|
29361
|
+
400: {
|
|
29362
|
+
headers: {
|
|
29363
|
+
[name: string]: unknown;
|
|
29364
|
+
};
|
|
29365
|
+
content: {
|
|
29366
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29367
|
+
};
|
|
29368
|
+
};
|
|
29369
|
+
401: components["responses"]["Unauthorized"];
|
|
29370
|
+
403: components["responses"]["Forbidden"];
|
|
29371
|
+
/** @description Workspace not found */
|
|
29372
|
+
404: {
|
|
29373
|
+
headers: {
|
|
29374
|
+
[name: string]: unknown;
|
|
29375
|
+
};
|
|
29376
|
+
content: {
|
|
29377
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29378
|
+
};
|
|
29379
|
+
};
|
|
29380
|
+
};
|
|
29381
|
+
};
|
|
29382
|
+
revokeMcpToken: {
|
|
29383
|
+
parameters: {
|
|
29384
|
+
query?: never;
|
|
29385
|
+
header?: never;
|
|
29386
|
+
path: {
|
|
29387
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29388
|
+
tokenId: string;
|
|
29389
|
+
};
|
|
29390
|
+
cookie?: never;
|
|
29391
|
+
};
|
|
29392
|
+
requestBody?: never;
|
|
29393
|
+
responses: {
|
|
29394
|
+
/** @description Token revoked */
|
|
29395
|
+
204: {
|
|
29396
|
+
headers: {
|
|
29397
|
+
[name: string]: unknown;
|
|
29398
|
+
};
|
|
29399
|
+
content?: never;
|
|
29400
|
+
};
|
|
29401
|
+
401: components["responses"]["Unauthorized"];
|
|
29402
|
+
/** @description The token belongs to someone else and the caller is not a workspace admin */
|
|
29403
|
+
403: {
|
|
29404
|
+
headers: {
|
|
29405
|
+
[name: string]: unknown;
|
|
29406
|
+
};
|
|
29407
|
+
content: {
|
|
29408
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29409
|
+
};
|
|
29410
|
+
};
|
|
29411
|
+
/** @description Workspace or token not found, token already revoked, or `tokenId` is not a UUID */
|
|
29412
|
+
404: {
|
|
29413
|
+
headers: {
|
|
29414
|
+
[name: string]: unknown;
|
|
29415
|
+
};
|
|
29416
|
+
content: {
|
|
29417
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29418
|
+
};
|
|
29419
|
+
};
|
|
29420
|
+
};
|
|
29421
|
+
};
|
|
29422
|
+
getMcpOauthAuthorizationServerMetadata: {
|
|
29423
|
+
parameters: {
|
|
29424
|
+
query?: never;
|
|
29425
|
+
header?: never;
|
|
29426
|
+
path?: never;
|
|
29427
|
+
cookie?: never;
|
|
29428
|
+
};
|
|
29429
|
+
requestBody?: never;
|
|
29430
|
+
responses: {
|
|
29431
|
+
/** @description Server metadata */
|
|
29432
|
+
200: {
|
|
29433
|
+
headers: {
|
|
29434
|
+
[name: string]: unknown;
|
|
29435
|
+
};
|
|
29436
|
+
content: {
|
|
29437
|
+
"application/json": components["schemas"]["McpOauthServerMetadataDto"];
|
|
29438
|
+
};
|
|
29439
|
+
};
|
|
29440
|
+
429: components["responses"]["McpRateLimited"];
|
|
29441
|
+
/** @description Public API origin is not configured (`mcp_api_origin_missing`) */
|
|
29442
|
+
503: {
|
|
29443
|
+
headers: {
|
|
29444
|
+
[name: string]: unknown;
|
|
29445
|
+
};
|
|
29446
|
+
content: {
|
|
29447
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29448
|
+
};
|
|
29449
|
+
};
|
|
29450
|
+
};
|
|
29451
|
+
};
|
|
29452
|
+
getMcpOauthProtectedResourceMetadata: {
|
|
29453
|
+
parameters: {
|
|
29454
|
+
query?: never;
|
|
29455
|
+
header?: never;
|
|
29456
|
+
path: {
|
|
29457
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29458
|
+
};
|
|
29459
|
+
cookie?: never;
|
|
29460
|
+
};
|
|
29461
|
+
requestBody?: never;
|
|
29462
|
+
responses: {
|
|
29463
|
+
/** @description Resource metadata */
|
|
29464
|
+
200: {
|
|
29465
|
+
headers: {
|
|
29466
|
+
[name: string]: unknown;
|
|
29467
|
+
};
|
|
29468
|
+
content: {
|
|
29469
|
+
"application/json": components["schemas"]["McpOauthProtectedResourceDto"];
|
|
29470
|
+
};
|
|
29471
|
+
};
|
|
29472
|
+
/** @description `workspaceId` is not a UUID */
|
|
29473
|
+
404: {
|
|
29474
|
+
headers: {
|
|
29475
|
+
[name: string]: unknown;
|
|
29476
|
+
};
|
|
29477
|
+
content: {
|
|
29478
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29479
|
+
};
|
|
29480
|
+
};
|
|
29481
|
+
429: components["responses"]["McpRateLimited"];
|
|
29482
|
+
/** @description Public API origin is not configured (`mcp_api_origin_missing`) */
|
|
29483
|
+
503: {
|
|
29484
|
+
headers: {
|
|
29485
|
+
[name: string]: unknown;
|
|
29486
|
+
};
|
|
29487
|
+
content: {
|
|
29488
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29489
|
+
};
|
|
29490
|
+
};
|
|
29491
|
+
};
|
|
29492
|
+
};
|
|
29493
|
+
registerMcpOauthClient: {
|
|
29494
|
+
parameters: {
|
|
29495
|
+
query?: never;
|
|
29496
|
+
header?: never;
|
|
29497
|
+
path?: never;
|
|
29498
|
+
cookie?: never;
|
|
29499
|
+
};
|
|
29500
|
+
requestBody: {
|
|
29501
|
+
content: {
|
|
29502
|
+
"application/json": components["schemas"]["McpOauthRegisterBodyDto"];
|
|
29503
|
+
};
|
|
29504
|
+
};
|
|
29505
|
+
responses: {
|
|
29506
|
+
/** @description Client registered */
|
|
29507
|
+
201: {
|
|
29508
|
+
headers: {
|
|
29509
|
+
[name: string]: unknown;
|
|
29510
|
+
};
|
|
29511
|
+
content: {
|
|
29512
|
+
"application/json": components["schemas"]["McpOauthRegisterResultDto"];
|
|
29513
|
+
};
|
|
29514
|
+
};
|
|
29515
|
+
/** @description `redirect_uris` missing, or one is not allowed (`mcp_redirect_uri_invalid`) */
|
|
29516
|
+
400: {
|
|
29517
|
+
headers: {
|
|
29518
|
+
[name: string]: unknown;
|
|
29519
|
+
};
|
|
29520
|
+
content: {
|
|
29521
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29522
|
+
};
|
|
29523
|
+
};
|
|
29524
|
+
429: components["responses"]["McpRateLimited"];
|
|
29525
|
+
};
|
|
29526
|
+
};
|
|
29527
|
+
authorizeMcpOauth: {
|
|
29528
|
+
parameters: {
|
|
29529
|
+
query: {
|
|
29530
|
+
response_type?: "code";
|
|
29531
|
+
client_id: string;
|
|
29532
|
+
redirect_uri: string;
|
|
29533
|
+
code_challenge: string;
|
|
29534
|
+
code_challenge_method?: "S256";
|
|
29535
|
+
/** @description Workspace MCP URL, for example `https://api.example.com/workspaces/{workspaceId}/mcp` */
|
|
29536
|
+
resource: string;
|
|
29537
|
+
state?: string;
|
|
29538
|
+
};
|
|
29539
|
+
header?: never;
|
|
29540
|
+
path?: never;
|
|
29541
|
+
cookie?: never;
|
|
29542
|
+
};
|
|
29543
|
+
requestBody?: never;
|
|
29544
|
+
responses: {
|
|
29545
|
+
/** @description Redirect to the app consent page */
|
|
29546
|
+
302: {
|
|
29547
|
+
headers: {
|
|
29548
|
+
Location?: string;
|
|
29549
|
+
[name: string]: unknown;
|
|
29550
|
+
};
|
|
29551
|
+
content?: never;
|
|
29552
|
+
};
|
|
29553
|
+
/** @description Missing or invalid parameter, or `redirect_uri` is not registered for the client */
|
|
29554
|
+
400: {
|
|
29555
|
+
headers: {
|
|
29556
|
+
[name: string]: unknown;
|
|
29557
|
+
};
|
|
29558
|
+
content: {
|
|
29559
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29560
|
+
};
|
|
29561
|
+
};
|
|
29562
|
+
429: components["responses"]["McpRateLimited"];
|
|
29563
|
+
/** @description App URL is not configured (`mcp_app_url_missing`) */
|
|
29564
|
+
503: {
|
|
29565
|
+
headers: {
|
|
29566
|
+
[name: string]: unknown;
|
|
29567
|
+
};
|
|
29568
|
+
content: {
|
|
29569
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29570
|
+
};
|
|
29571
|
+
};
|
|
29572
|
+
};
|
|
29573
|
+
};
|
|
29574
|
+
exchangeMcpOauthToken: {
|
|
29575
|
+
parameters: {
|
|
29576
|
+
query?: never;
|
|
29577
|
+
header?: never;
|
|
29578
|
+
path?: never;
|
|
29579
|
+
cookie?: never;
|
|
29580
|
+
};
|
|
29581
|
+
requestBody: {
|
|
29582
|
+
content: {
|
|
29583
|
+
"application/x-www-form-urlencoded": components["schemas"]["McpOauthTokenBodyDto"];
|
|
29584
|
+
"application/json": components["schemas"]["McpOauthTokenBodyDto"];
|
|
29585
|
+
};
|
|
29586
|
+
};
|
|
29587
|
+
responses: {
|
|
29588
|
+
/** @description Access token */
|
|
29589
|
+
200: {
|
|
29590
|
+
headers: {
|
|
29591
|
+
[name: string]: unknown;
|
|
29592
|
+
};
|
|
29593
|
+
content: {
|
|
29594
|
+
"application/json": components["schemas"]["McpOauthTokenResultDto"];
|
|
29595
|
+
};
|
|
29596
|
+
};
|
|
29597
|
+
/** @description `unsupported_grant_type` or `invalid_grant` (bad, used, or expired code, verifier, or redirect) */
|
|
29598
|
+
400: {
|
|
29599
|
+
headers: {
|
|
29600
|
+
[name: string]: unknown;
|
|
29601
|
+
};
|
|
29602
|
+
content: {
|
|
29603
|
+
/**
|
|
29604
|
+
* @example {
|
|
29605
|
+
* "error": "invalid_grant"
|
|
29606
|
+
* }
|
|
29607
|
+
*/
|
|
29608
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29609
|
+
};
|
|
29610
|
+
};
|
|
29611
|
+
429: components["responses"]["McpRateLimited"];
|
|
29612
|
+
};
|
|
29613
|
+
};
|
|
29614
|
+
callWorkspaceMcp: {
|
|
29615
|
+
parameters: {
|
|
29616
|
+
query?: never;
|
|
29617
|
+
header?: never;
|
|
29618
|
+
path: {
|
|
29619
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29620
|
+
};
|
|
29621
|
+
cookie?: never;
|
|
29622
|
+
};
|
|
29623
|
+
requestBody: {
|
|
29624
|
+
content: {
|
|
29625
|
+
/**
|
|
29626
|
+
* @example {
|
|
29627
|
+
* "jsonrpc": "2.0",
|
|
29628
|
+
* "id": 1,
|
|
29629
|
+
* "method": "tools/list"
|
|
29630
|
+
* }
|
|
29631
|
+
*/
|
|
29632
|
+
"application/json": components["schemas"]["McpJsonRpcRequestDto"];
|
|
29633
|
+
};
|
|
29634
|
+
};
|
|
29635
|
+
responses: {
|
|
29636
|
+
/** @description JSON-RPC response (result or error) */
|
|
29637
|
+
200: {
|
|
29638
|
+
headers: {
|
|
29639
|
+
[name: string]: unknown;
|
|
29640
|
+
};
|
|
29641
|
+
content: {
|
|
29642
|
+
"application/json": components["schemas"]["McpJsonRpcResponseDto"];
|
|
29643
|
+
};
|
|
29644
|
+
};
|
|
29645
|
+
/** @description Notification accepted (no `id`); no body */
|
|
29646
|
+
202: {
|
|
29647
|
+
headers: {
|
|
29648
|
+
[name: string]: unknown;
|
|
29649
|
+
};
|
|
29650
|
+
content?: never;
|
|
29651
|
+
};
|
|
29652
|
+
/** @description Missing, invalid, expired, or wrong-workspace token (`mcp_unauthorized`). The `WWW-Authenticate` header points to the protected resource metadata. */
|
|
29653
|
+
401: {
|
|
29654
|
+
headers: {
|
|
29655
|
+
"WWW-Authenticate"?: string;
|
|
29656
|
+
[name: string]: unknown;
|
|
29657
|
+
};
|
|
29658
|
+
content: {
|
|
29659
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29660
|
+
};
|
|
29661
|
+
};
|
|
29662
|
+
/** @description Code Intelligence is off for the workspace (`code_intelligence_disabled`) */
|
|
29663
|
+
403: {
|
|
29664
|
+
headers: {
|
|
29665
|
+
[name: string]: unknown;
|
|
29666
|
+
};
|
|
29667
|
+
content: {
|
|
29668
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29669
|
+
};
|
|
29670
|
+
};
|
|
29671
|
+
/** @description `workspaceId` is not a UUID */
|
|
29672
|
+
404: {
|
|
29673
|
+
headers: {
|
|
29674
|
+
[name: string]: unknown;
|
|
29675
|
+
};
|
|
29676
|
+
content: {
|
|
29677
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29678
|
+
};
|
|
29679
|
+
};
|
|
29680
|
+
429: components["responses"]["McpRateLimited"];
|
|
29681
|
+
};
|
|
29682
|
+
};
|
|
29683
|
+
generatePrdDraft: {
|
|
29684
|
+
parameters: {
|
|
29685
|
+
query?: never;
|
|
29686
|
+
header?: never;
|
|
29687
|
+
path: {
|
|
29688
|
+
workspaceId: components["parameters"]["WorkspaceId"];
|
|
29689
|
+
};
|
|
29690
|
+
cookie?: never;
|
|
29691
|
+
};
|
|
29692
|
+
requestBody: {
|
|
29693
|
+
content: {
|
|
29694
|
+
"application/json": components["schemas"]["GeneratePrdDraftBodyDto"];
|
|
28756
29695
|
};
|
|
28757
29696
|
};
|
|
28758
29697
|
responses: {
|
|
@@ -28787,6 +29726,24 @@ export interface operations {
|
|
|
28787
29726
|
};
|
|
28788
29727
|
content?: never;
|
|
28789
29728
|
};
|
|
29729
|
+
/** @description Models are configured but none returned a usable draft after a retry (`artifact_polish_failed`). Nothing was saved. */
|
|
29730
|
+
502: {
|
|
29731
|
+
headers: {
|
|
29732
|
+
[name: string]: unknown;
|
|
29733
|
+
};
|
|
29734
|
+
content: {
|
|
29735
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29736
|
+
};
|
|
29737
|
+
};
|
|
29738
|
+
/** @description The draft took longer than the time limit (`artifact_timed_out`). Nothing was saved. */
|
|
29739
|
+
504: {
|
|
29740
|
+
headers: {
|
|
29741
|
+
[name: string]: unknown;
|
|
29742
|
+
};
|
|
29743
|
+
content: {
|
|
29744
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29745
|
+
};
|
|
29746
|
+
};
|
|
28790
29747
|
};
|
|
28791
29748
|
};
|
|
28792
29749
|
generateRfcDraft: {
|
|
@@ -28835,6 +29792,24 @@ export interface operations {
|
|
|
28835
29792
|
};
|
|
28836
29793
|
content?: never;
|
|
28837
29794
|
};
|
|
29795
|
+
/** @description Models are configured but none returned a usable draft after a retry (`artifact_polish_failed`). Nothing was saved. */
|
|
29796
|
+
502: {
|
|
29797
|
+
headers: {
|
|
29798
|
+
[name: string]: unknown;
|
|
29799
|
+
};
|
|
29800
|
+
content: {
|
|
29801
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29802
|
+
};
|
|
29803
|
+
};
|
|
29804
|
+
/** @description The draft took longer than the time limit (`artifact_timed_out`). Nothing was saved. */
|
|
29805
|
+
504: {
|
|
29806
|
+
headers: {
|
|
29807
|
+
[name: string]: unknown;
|
|
29808
|
+
};
|
|
29809
|
+
content: {
|
|
29810
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29811
|
+
};
|
|
29812
|
+
};
|
|
28838
29813
|
};
|
|
28839
29814
|
};
|
|
28840
29815
|
generateAdrDraft: {
|
|
@@ -28883,6 +29858,24 @@ export interface operations {
|
|
|
28883
29858
|
};
|
|
28884
29859
|
content?: never;
|
|
28885
29860
|
};
|
|
29861
|
+
/** @description Models are configured but none returned a usable draft after a retry (`artifact_polish_failed`). Nothing was saved. */
|
|
29862
|
+
502: {
|
|
29863
|
+
headers: {
|
|
29864
|
+
[name: string]: unknown;
|
|
29865
|
+
};
|
|
29866
|
+
content: {
|
|
29867
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29868
|
+
};
|
|
29869
|
+
};
|
|
29870
|
+
/** @description The draft took longer than the time limit (`artifact_timed_out`). Nothing was saved. */
|
|
29871
|
+
504: {
|
|
29872
|
+
headers: {
|
|
29873
|
+
[name: string]: unknown;
|
|
29874
|
+
};
|
|
29875
|
+
content: {
|
|
29876
|
+
"application/json": components["schemas"]["ErrorMessageDto"];
|
|
29877
|
+
};
|
|
29878
|
+
};
|
|
28886
29879
|
};
|
|
28887
29880
|
};
|
|
28888
29881
|
getWorkspaceKnowledgeGraph: {
|