Skip to content

Commit bc4968a

Browse files
committed
chore: generate
1 parent acb92fc commit bc4968a

5 files changed

Lines changed: 622 additions & 1653 deletions

File tree

packages/plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
"typescript": "catalog:",
2626
"@typescript/native-preview": "catalog:"
2727
}
28-
}
28+
}

packages/sdk/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"publishConfig": {
3131
"directory": "dist"
3232
}
33-
}
33+
}

packages/sdk/js/src/v2/gen/sdk.gen.ts

Lines changed: 65 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,62 @@ export class Global extends HeyApiClient {
299299
}
300300
}
301301

302+
export class Auth extends HeyApiClient {
303+
/**
304+
* Remove auth credentials
305+
*
306+
* Remove authentication credentials
307+
*/
308+
public remove<ThrowOnError extends boolean = false>(
309+
parameters: {
310+
providerID: string
311+
},
312+
options?: Options<never, ThrowOnError>,
313+
) {
314+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }])
315+
return (options?.client ?? this.client).delete<AuthRemoveResponses, AuthRemoveErrors, ThrowOnError>({
316+
url: "/auth/{providerID}",
317+
...options,
318+
...params,
319+
})
320+
}
321+
322+
/**
323+
* Set auth credentials
324+
*
325+
* Set authentication credentials
326+
*/
327+
public set<ThrowOnError extends boolean = false>(
328+
parameters: {
329+
providerID: string
330+
auth?: Auth3
331+
},
332+
options?: Options<never, ThrowOnError>,
333+
) {
334+
const params = buildClientParams(
335+
[parameters],
336+
[
337+
{
338+
args: [
339+
{ in: "path", key: "providerID" },
340+
{ key: "auth", map: "body" },
341+
],
342+
},
343+
],
344+
)
345+
return (options?.client ?? this.client).put<AuthSetResponses, AuthSetErrors, ThrowOnError>({
346+
url: "/auth/{providerID}",
347+
...options,
348+
...params,
349+
headers: {
350+
"Content-Type": "application/json",
351+
...options?.headers,
352+
...params.headers,
353+
},
354+
})
355+
}
356+
}
357+
302358
export class Project extends HeyApiClient {
303359
/**
304360
* List all projects
@@ -2284,7 +2340,7 @@ export class File extends HeyApiClient {
22842340
}
22852341
}
22862342

2287-
export class Auth extends HeyApiClient {
2343+
export class Auth2 extends HeyApiClient {
22882344
/**
22892345
* Remove MCP OAuth
22902346
*
@@ -2528,9 +2584,9 @@ export class Mcp extends HeyApiClient {
25282584
})
25292585
}
25302586

2531-
private _auth?: Auth
2532-
get auth(): Auth {
2533-
return (this._auth ??= new Auth({ client: this.client }))
2587+
private _auth?: Auth2
2588+
get auth(): Auth2 {
2589+
return (this._auth ??= new Auth2({ client: this.client }))
25342590
}
25352591
}
25362592

@@ -3101,75 +3157,6 @@ export class Formatter extends HeyApiClient {
31013157
}
31023158
}
31033159

3104-
export class Auth2 extends HeyApiClient {
3105-
/**
3106-
* Remove auth credentials
3107-
*
3108-
* Remove authentication credentials
3109-
*/
3110-
public remove<ThrowOnError extends boolean = false>(
3111-
parameters: {
3112-
providerID: string
3113-
directory?: string
3114-
},
3115-
options?: Options<never, ThrowOnError>,
3116-
) {
3117-
const params = buildClientParams(
3118-
[parameters],
3119-
[
3120-
{
3121-
args: [
3122-
{ in: "path", key: "providerID" },
3123-
{ in: "query", key: "directory" },
3124-
],
3125-
},
3126-
],
3127-
)
3128-
return (options?.client ?? this.client).delete<AuthRemoveResponses, AuthRemoveErrors, ThrowOnError>({
3129-
url: "/auth/{providerID}",
3130-
...options,
3131-
...params,
3132-
})
3133-
}
3134-
3135-
/**
3136-
* Set auth credentials
3137-
*
3138-
* Set authentication credentials
3139-
*/
3140-
public set<ThrowOnError extends boolean = false>(
3141-
parameters: {
3142-
providerID: string
3143-
directory?: string
3144-
auth?: Auth3
3145-
},
3146-
options?: Options<never, ThrowOnError>,
3147-
) {
3148-
const params = buildClientParams(
3149-
[parameters],
3150-
[
3151-
{
3152-
args: [
3153-
{ in: "path", key: "providerID" },
3154-
{ in: "query", key: "directory" },
3155-
{ key: "auth", map: "body" },
3156-
],
3157-
},
3158-
],
3159-
)
3160-
return (options?.client ?? this.client).put<AuthSetResponses, AuthSetErrors, ThrowOnError>({
3161-
url: "/auth/{providerID}",
3162-
...options,
3163-
...params,
3164-
headers: {
3165-
"Content-Type": "application/json",
3166-
...options?.headers,
3167-
...params.headers,
3168-
},
3169-
})
3170-
}
3171-
}
3172-
31733160
export class Event extends HeyApiClient {
31743161
/**
31753162
* Subscribe to events
@@ -3204,6 +3191,11 @@ export class OpencodeClient extends HeyApiClient {
32043191
return (this._global ??= new Global({ client: this.client }))
32053192
}
32063193

3194+
private _auth?: Auth
3195+
get auth(): Auth {
3196+
return (this._auth ??= new Auth({ client: this.client }))
3197+
}
3198+
32073199
private _project?: Project
32083200
get project(): Project {
32093201
return (this._project ??= new Project({ client: this.client }))
@@ -3314,11 +3306,6 @@ export class OpencodeClient extends HeyApiClient {
33143306
return (this._formatter ??= new Formatter({ client: this.client }))
33153307
}
33163308

3317-
private _auth?: Auth2
3318-
get auth(): Auth2 {
3319-
return (this._auth ??= new Auth2({ client: this.client }))
3320-
}
3321-
33223309
private _event?: Event
33233310
get event(): Event {
33243311
return (this._event ??= new Event({ client: this.client }))

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 76 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,6 +1819,28 @@ export type BadRequestError = {
18191819
success: false
18201820
}
18211821

1822+
export type OAuth = {
1823+
type: "oauth"
1824+
refresh: string
1825+
access: string
1826+
expires: number
1827+
accountId?: string
1828+
enterpriseUrl?: string
1829+
}
1830+
1831+
export type ApiAuth = {
1832+
type: "api"
1833+
key: string
1834+
}
1835+
1836+
export type WellKnownAuth = {
1837+
type: "wellknown"
1838+
key: string
1839+
token: string
1840+
}
1841+
1842+
export type Auth = OAuth | ApiAuth | WellKnownAuth
1843+
18221844
export type NotFoundError = {
18231845
name: "NotFoundError"
18241846
data: {
@@ -2142,28 +2164,6 @@ export type FormatterStatus = {
21422164
enabled: boolean
21432165
}
21442166

2145-
export type OAuth = {
2146-
type: "oauth"
2147-
refresh: string
2148-
access: string
2149-
expires: number
2150-
accountId?: string
2151-
enterpriseUrl?: string
2152-
}
2153-
2154-
export type ApiAuth = {
2155-
type: "api"
2156-
key: string
2157-
}
2158-
2159-
export type WellKnownAuth = {
2160-
type: "wellknown"
2161-
key: string
2162-
token: string
2163-
}
2164-
2165-
export type Auth = OAuth | ApiAuth | WellKnownAuth
2166-
21672167
export type GlobalHealthData = {
21682168
body?: never
21692169
path?: never
@@ -2256,6 +2256,60 @@ export type GlobalDisposeResponses = {
22562256

22572257
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses]
22582258

2259+
export type AuthRemoveData = {
2260+
body?: never
2261+
path: {
2262+
providerID: string
2263+
}
2264+
query?: never
2265+
url: "/auth/{providerID}"
2266+
}
2267+
2268+
export type AuthRemoveErrors = {
2269+
/**
2270+
* Bad request
2271+
*/
2272+
400: BadRequestError
2273+
}
2274+
2275+
export type AuthRemoveError = AuthRemoveErrors[keyof AuthRemoveErrors]
2276+
2277+
export type AuthRemoveResponses = {
2278+
/**
2279+
* Successfully removed authentication credentials
2280+
*/
2281+
200: boolean
2282+
}
2283+
2284+
export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses]
2285+
2286+
export type AuthSetData = {
2287+
body?: Auth
2288+
path: {
2289+
providerID: string
2290+
}
2291+
query?: never
2292+
url: "/auth/{providerID}"
2293+
}
2294+
2295+
export type AuthSetErrors = {
2296+
/**
2297+
* Bad request
2298+
*/
2299+
400: BadRequestError
2300+
}
2301+
2302+
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors]
2303+
2304+
export type AuthSetResponses = {
2305+
/**
2306+
* Successfully set authentication credentials
2307+
*/
2308+
200: boolean
2309+
}
2310+
2311+
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses]
2312+
22592313
export type ProjectListData = {
22602314
body?: never
22612315
path?: never
@@ -4908,64 +4962,6 @@ export type FormatterStatusResponses = {
49084962

49094963
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses]
49104964

4911-
export type AuthRemoveData = {
4912-
body?: never
4913-
path: {
4914-
providerID: string
4915-
}
4916-
query?: {
4917-
directory?: string
4918-
}
4919-
url: "/auth/{providerID}"
4920-
}
4921-
4922-
export type AuthRemoveErrors = {
4923-
/**
4924-
* Bad request
4925-
*/
4926-
400: BadRequestError
4927-
}
4928-
4929-
export type AuthRemoveError = AuthRemoveErrors[keyof AuthRemoveErrors]
4930-
4931-
export type AuthRemoveResponses = {
4932-
/**
4933-
* Successfully removed authentication credentials
4934-
*/
4935-
200: boolean
4936-
}
4937-
4938-
export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses]
4939-
4940-
export type AuthSetData = {
4941-
body?: Auth
4942-
path: {
4943-
providerID: string
4944-
}
4945-
query?: {
4946-
directory?: string
4947-
}
4948-
url: "/auth/{providerID}"
4949-
}
4950-
4951-
export type AuthSetErrors = {
4952-
/**
4953-
* Bad request
4954-
*/
4955-
400: BadRequestError
4956-
}
4957-
4958-
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors]
4959-
4960-
export type AuthSetResponses = {
4961-
/**
4962-
* Successfully set authentication credentials
4963-
*/
4964-
200: boolean
4965-
}
4966-
4967-
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses]
4968-
49694965
export type EventSubscribeData = {
49704966
body?: never
49714967
path?: never

0 commit comments

Comments
 (0)