Skip to content

Commit 12039e2

Browse files
authored
chore: bump thv version to 0.2.0 and regenerate APIs (#645)
* chore: bump thv version to 0.2.0 * chore: generate api with new version
1 parent c4ceb79 commit 12039e2

File tree

6 files changed

+39
-2
lines changed

6 files changed

+39
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ const createQueryKey = <TOptions extends Options>(
117117
): [QueryKey<TOptions>[0]] => {
118118
const params: QueryKey<TOptions>[0] = {
119119
_id: id,
120-
baseUrl: (options?.client ?? _heyApiClient).getConfig().baseUrl,
120+
baseUrl:
121+
options?.baseUrl ||
122+
(options?.client ?? _heyApiClient).getConfig().baseUrl,
121123
} as QueryKey<TOptions>[0]
122124
if (infinite) {
123125
params._infinite = infinite

renderer/src/common/api/generated/core/params.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,21 @@ type Slot = 'body' | 'headers' | 'path' | 'query'
33
export type Field =
44
| {
55
in: Exclude<Slot, 'body'>
6+
/**
7+
* Field name. This is the name we want the user to see and use.
8+
*/
69
key: string
10+
/**
11+
* Field mapped name. This is the name we want to use in the request.
12+
* If omitted, we use the same value as `key`.
13+
*/
714
map?: string
815
}
916
| {
1017
in: Extract<Slot, 'body'>
18+
/**
19+
* Key isn't required for bodies.
20+
*/
1121
key?: string
1222
map?: string
1323
}

renderer/src/common/api/generated/core/types.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,17 @@ export interface Config {
102102
*/
103103
responseValidator?: (data: unknown) => Promise<unknown>
104104
}
105+
106+
type IsExactlyNeverOrNeverUndefined<T> = [T] extends [never]
107+
? true
108+
: [T] extends [never | undefined]
109+
? [undefined] extends [T]
110+
? false
111+
: true
112+
: false
113+
114+
export type OmitNever<T extends Record<string, unknown>> = {
115+
[K in keyof T as IsExactlyNeverOrNeverUndefined<T[K]> extends true
116+
? never
117+
: K]: T[K]
118+
}

renderer/src/common/api/generated/types.gen.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ export type RegistryImageMetadata = {
105105
* These arguments will be prepended to any command-line arguments provided by the user.
106106
*/
107107
args?: Array<string>
108+
/**
109+
* CustomMetadata allows for additional user-defined metadata
110+
*/
111+
custom_metadata?: {
112+
[key: string]: unknown
113+
}
108114
/**
109115
* Description is a human-readable description of the server's purpose and functionality
110116
*/

renderer/src/common/api/openapi.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@
133133
"type": "array",
134134
"uniqueItems": false
135135
},
136+
"custom_metadata": {
137+
"additionalProperties": {},
138+
"description": "CustomMetadata allows for additional user-defined metadata",
139+
"type": "object"
140+
},
136141
"description": {
137142
"description": "Description is a human-readable description of the server's purpose and functionality",
138143
"type": "string"

utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.1.9'
1+
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.2.0'

0 commit comments

Comments
 (0)