Skip to content

Commit 8d70cdd

Browse files
chore(deps): update dependency stacklok/toolhive to v0.12.5 (#1792)
* chore(deps): update dependency stacklok/toolhive to v0.12.5 * chore: regenerate artifacts after dependency update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent f4b1ad4 commit 8d70cdd

6 files changed

Lines changed: 449 additions & 3 deletions

File tree

common/api/generated/@tanstack/react-query.gen.ts

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ import {
4242
postApiV1BetaClientsUnregister,
4343
postApiV1BetaGroups,
4444
postApiV1BetaRegistry,
45+
postApiV1BetaRegistryAuthLogin,
46+
postApiV1BetaRegistryAuthLogout,
4547
postApiV1BetaSecrets,
4648
postApiV1BetaSecretsDefaultKeys,
4749
postApiV1BetaSkills,
@@ -149,6 +151,12 @@ import type {
149151
PostApiV1BetaGroupsData,
150152
PostApiV1BetaGroupsError,
151153
PostApiV1BetaGroupsResponse,
154+
PostApiV1BetaRegistryAuthLoginData,
155+
PostApiV1BetaRegistryAuthLoginError,
156+
PostApiV1BetaRegistryAuthLoginResponse,
157+
PostApiV1BetaRegistryAuthLogoutData,
158+
PostApiV1BetaRegistryAuthLogoutError,
159+
PostApiV1BetaRegistryAuthLogoutResponse,
152160
PostApiV1BetaRegistryData,
153161
PostApiV1BetaRegistryError,
154162
PostApiV1BetaSecretsData,
@@ -650,6 +658,64 @@ export const postApiV1BetaRegistryMutation = (
650658
return mutationOptions
651659
}
652660

661+
/**
662+
* Registry login
663+
*
664+
* Trigger an interactive OAuth flow to authenticate with the configured registry. Only available in serve mode.
665+
*/
666+
export const postApiV1BetaRegistryAuthLoginMutation = (
667+
options?: Partial<Options<PostApiV1BetaRegistryAuthLoginData>>
668+
): UseMutationOptions<
669+
PostApiV1BetaRegistryAuthLoginResponse,
670+
PostApiV1BetaRegistryAuthLoginError,
671+
Options<PostApiV1BetaRegistryAuthLoginData>
672+
> => {
673+
const mutationOptions: UseMutationOptions<
674+
PostApiV1BetaRegistryAuthLoginResponse,
675+
PostApiV1BetaRegistryAuthLoginError,
676+
Options<PostApiV1BetaRegistryAuthLoginData>
677+
> = {
678+
mutationFn: async (fnOptions) => {
679+
const { data } = await postApiV1BetaRegistryAuthLogin({
680+
...options,
681+
...fnOptions,
682+
throwOnError: true,
683+
})
684+
return data
685+
},
686+
}
687+
return mutationOptions
688+
}
689+
690+
/**
691+
* Registry logout
692+
*
693+
* Clear cached OAuth tokens for the configured registry. Only available in serve mode.
694+
*/
695+
export const postApiV1BetaRegistryAuthLogoutMutation = (
696+
options?: Partial<Options<PostApiV1BetaRegistryAuthLogoutData>>
697+
): UseMutationOptions<
698+
PostApiV1BetaRegistryAuthLogoutResponse,
699+
PostApiV1BetaRegistryAuthLogoutError,
700+
Options<PostApiV1BetaRegistryAuthLogoutData>
701+
> => {
702+
const mutationOptions: UseMutationOptions<
703+
PostApiV1BetaRegistryAuthLogoutResponse,
704+
PostApiV1BetaRegistryAuthLogoutError,
705+
Options<PostApiV1BetaRegistryAuthLogoutData>
706+
> = {
707+
mutationFn: async (fnOptions) => {
708+
const { data } = await postApiV1BetaRegistryAuthLogout({
709+
...options,
710+
...fnOptions,
711+
throwOnError: true,
712+
})
713+
return data
714+
},
715+
}
716+
return mutationOptions
717+
}
718+
653719
/**
654720
* Remove a registry
655721
*

common/api/generated/index.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export {
3535
postApiV1BetaClientsUnregister,
3636
postApiV1BetaGroups,
3737
postApiV1BetaRegistry,
38+
postApiV1BetaRegistryAuthLogin,
39+
postApiV1BetaRegistryAuthLogout,
3840
postApiV1BetaSecrets,
3941
postApiV1BetaSecretsDefaultKeys,
4042
postApiV1BetaSkills,
@@ -206,8 +208,10 @@ export type {
206208
GithubComStacklokToolhivePkgContainerTemplatesRuntimeConfig,
207209
GithubComStacklokToolhivePkgCoreWorkload,
208210
GithubComStacklokToolhivePkgGroupsGroup,
211+
GithubComStacklokToolhivePkgRegistryOAuthPublicConfig,
209212
GithubComStacklokToolhivePkgRunnerHeaderForwardConfig,
210213
GithubComStacklokToolhivePkgRunnerRunConfig,
214+
GithubComStacklokToolhivePkgRunnerScalingConfig,
211215
GithubComStacklokToolhivePkgRunnerToolOverride,
212216
GithubComStacklokToolhivePkgSecretsSecretParameter,
213217
GithubComStacklokToolhivePkgSkillsBuildResult,
@@ -257,6 +261,7 @@ export type {
257261
PkgApiV1SetupSecretsResponse,
258262
PkgApiV1SkillListResponse,
259263
PkgApiV1ToolOverride,
264+
PkgApiV1UpdateRegistryAuthRequest,
260265
PkgApiV1UpdateRegistryRequest,
261266
PkgApiV1UpdateRegistryResponse,
262267
PkgApiV1UpdateRequest,
@@ -286,6 +291,16 @@ export type {
286291
PostApiV1BetaGroupsErrors,
287292
PostApiV1BetaGroupsResponse,
288293
PostApiV1BetaGroupsResponses,
294+
PostApiV1BetaRegistryAuthLoginData,
295+
PostApiV1BetaRegistryAuthLoginError,
296+
PostApiV1BetaRegistryAuthLoginErrors,
297+
PostApiV1BetaRegistryAuthLoginResponse,
298+
PostApiV1BetaRegistryAuthLoginResponses,
299+
PostApiV1BetaRegistryAuthLogoutData,
300+
PostApiV1BetaRegistryAuthLogoutError,
301+
PostApiV1BetaRegistryAuthLogoutErrors,
302+
PostApiV1BetaRegistryAuthLogoutResponse,
303+
PostApiV1BetaRegistryAuthLogoutResponses,
289304
PostApiV1BetaRegistryData,
290305
PostApiV1BetaRegistryError,
291306
PostApiV1BetaRegistryErrors,

common/api/generated/sdk.gen.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ import type {
9393
PostApiV1BetaGroupsData,
9494
PostApiV1BetaGroupsErrors,
9595
PostApiV1BetaGroupsResponses,
96+
PostApiV1BetaRegistryAuthLoginData,
97+
PostApiV1BetaRegistryAuthLoginErrors,
98+
PostApiV1BetaRegistryAuthLoginResponses,
99+
PostApiV1BetaRegistryAuthLogoutData,
100+
PostApiV1BetaRegistryAuthLogoutErrors,
101+
PostApiV1BetaRegistryAuthLogoutResponses,
96102
PostApiV1BetaRegistryData,
97103
PostApiV1BetaRegistryErrors,
98104
PostApiV1BetaSecretsData,
@@ -402,6 +408,38 @@ export const postApiV1BetaRegistry = <ThrowOnError extends boolean = false>(
402408
},
403409
})
404410

411+
/**
412+
* Registry login
413+
*
414+
* Trigger an interactive OAuth flow to authenticate with the configured registry. Only available in serve mode.
415+
*/
416+
export const postApiV1BetaRegistryAuthLogin = <
417+
ThrowOnError extends boolean = false,
418+
>(
419+
options?: Options<PostApiV1BetaRegistryAuthLoginData, ThrowOnError>
420+
) =>
421+
(options?.client ?? client).post<
422+
PostApiV1BetaRegistryAuthLoginResponses,
423+
PostApiV1BetaRegistryAuthLoginErrors,
424+
ThrowOnError
425+
>({ url: '/api/v1beta/registry/auth/login', ...options })
426+
427+
/**
428+
* Registry logout
429+
*
430+
* Clear cached OAuth tokens for the configured registry. Only available in serve mode.
431+
*/
432+
export const postApiV1BetaRegistryAuthLogout = <
433+
ThrowOnError extends boolean = false,
434+
>(
435+
options?: Options<PostApiV1BetaRegistryAuthLogoutData, ThrowOnError>
436+
) =>
437+
(options?.client ?? client).post<
438+
PostApiV1BetaRegistryAuthLogoutResponses,
439+
PostApiV1BetaRegistryAuthLogoutErrors,
440+
ThrowOnError
441+
>({ url: '/api/v1beta/registry/auth/logout', ...options })
442+
405443
/**
406444
* Remove a registry
407445
*

0 commit comments

Comments
 (0)