File tree Expand file tree Collapse file tree 6 files changed +39
-2
lines changed
Expand file tree Collapse file tree 6 files changed +39
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -3,11 +3,21 @@ type Slot = 'body' | 'headers' | 'path' | 'query'
33export 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 }
Original file line number Diff line number Diff 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+ }
Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 1- export const TOOLHIVE_VERSION = process . env . THV_VERSION ?? 'v0.1.9 '
1+ export const TOOLHIVE_VERSION = process . env . THV_VERSION ?? 'v0.2.0 '
You can’t perform that action at this time.
0 commit comments