feat(api): add experimental wellknown connections
This commit is contained in:
parent
6bf92aa7de
commit
5fb0470b44
33 changed files with 1070 additions and 138 deletions
|
|
@ -280,6 +280,8 @@ import type {
|
|||
V2DebugLocationListResponses,
|
||||
V2EventSubscribeErrors,
|
||||
V2EventSubscribeResponses,
|
||||
V2ExperimentalIntegrationWellknownAddErrors,
|
||||
V2ExperimentalIntegrationWellknownAddResponses,
|
||||
V2FormRequestListErrors,
|
||||
V2FormRequestListResponses,
|
||||
V2FsFindErrors,
|
||||
|
|
@ -7209,6 +7211,64 @@ export class Integration extends HeyApiClient {
|
|||
}
|
||||
}
|
||||
|
||||
export class Wellknown extends HeyApiClient {
|
||||
/**
|
||||
* Add wellknown integration
|
||||
*
|
||||
* Discover and persist an experimental wellknown integration source.
|
||||
*/
|
||||
public add<ThrowOnError extends boolean = false>(
|
||||
parameters?: {
|
||||
location?: {
|
||||
directory?: string | null
|
||||
workspace?: string | null
|
||||
} | null
|
||||
url?: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
) {
|
||||
const params = buildClientParams(
|
||||
[parameters],
|
||||
[
|
||||
{
|
||||
args: [
|
||||
{ in: "query", key: "location" },
|
||||
{ in: "body", key: "url" },
|
||||
],
|
||||
},
|
||||
],
|
||||
)
|
||||
return (options?.client ?? this.client).post<
|
||||
V2ExperimentalIntegrationWellknownAddResponses,
|
||||
V2ExperimentalIntegrationWellknownAddErrors,
|
||||
ThrowOnError
|
||||
>({
|
||||
url: "/api/experimental/integration/wellknown",
|
||||
...options,
|
||||
...params,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
...options?.headers,
|
||||
...params.headers,
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export class Integration2 extends HeyApiClient {
|
||||
private _wellknown?: Wellknown
|
||||
get wellknown(): Wellknown {
|
||||
return (this._wellknown ??= new Wellknown({ client: this.client }))
|
||||
}
|
||||
}
|
||||
|
||||
export class Experimental2 extends HeyApiClient {
|
||||
private _integration?: Integration2
|
||||
get integration(): Integration2 {
|
||||
return (this._integration ??= new Integration2({ client: this.client }))
|
||||
}
|
||||
}
|
||||
|
||||
export class Resource2 extends HeyApiClient {
|
||||
/**
|
||||
* List MCP resources
|
||||
|
|
@ -8500,6 +8560,11 @@ export class V2 extends HeyApiClient {
|
|||
return (this._integration ??= new Integration({ client: this.client }))
|
||||
}
|
||||
|
||||
private _experimental?: Experimental2
|
||||
get experimental(): Experimental2 {
|
||||
return (this._experimental ??= new Experimental2({ client: this.client }))
|
||||
}
|
||||
|
||||
private _mcp?: Mcp2
|
||||
get mcp(): Mcp2 {
|
||||
return (this._mcp ??= new Mcp2({ client: this.client }))
|
||||
|
|
|
|||
|
|
@ -16859,6 +16859,44 @@ export type V2IntegrationGetResponses = {
|
|||
|
||||
export type V2IntegrationGetResponse = V2IntegrationGetResponses[keyof V2IntegrationGetResponses]
|
||||
|
||||
export type V2ExperimentalIntegrationWellknownAddData = {
|
||||
body: {
|
||||
url: string
|
||||
}
|
||||
path?: never
|
||||
query?: {
|
||||
location?: {
|
||||
directory?: string | null
|
||||
workspace?: string | null
|
||||
} | null
|
||||
}
|
||||
url: "/api/experimental/integration/wellknown"
|
||||
}
|
||||
|
||||
export type V2ExperimentalIntegrationWellknownAddErrors = {
|
||||
/**
|
||||
* InvalidRequestError
|
||||
*/
|
||||
400: InvalidRequestError1 | InvalidRequestErrorV2
|
||||
/**
|
||||
* UnauthorizedError
|
||||
*/
|
||||
401: UnauthorizedError
|
||||
}
|
||||
|
||||
export type V2ExperimentalIntegrationWellknownAddError =
|
||||
V2ExperimentalIntegrationWellknownAddErrors[keyof V2ExperimentalIntegrationWellknownAddErrors]
|
||||
|
||||
export type V2ExperimentalIntegrationWellknownAddResponses = {
|
||||
/**
|
||||
* <No Content>
|
||||
*/
|
||||
204: void
|
||||
}
|
||||
|
||||
export type V2ExperimentalIntegrationWellknownAddResponse =
|
||||
V2ExperimentalIntegrationWellknownAddResponses[keyof V2ExperimentalIntegrationWellknownAddResponses]
|
||||
|
||||
export type V2IntegrationConnectKeyData = {
|
||||
body: {
|
||||
key: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue