@@ -10,7 +10,7 @@ export const dockerConfigSchema = z.object({
1010// Compose File Schema
1111export const composeFileSchema = z . object ( {
1212 docker_compose_file : z . string ( ) ,
13- docker_config : dockerConfigSchema . optional ( ) ,
13+ docker_config : dockerConfigSchema . optional ( ) . nullable ( ) ,
1414 features : z . array ( z . string ( ) ) ,
1515 kms_enabled : z . boolean ( ) ,
1616 manifest_version : z . number ( ) ,
@@ -21,35 +21,35 @@ export const composeFileSchema = z.object({
2121 salt : z . string ( ) . nullable ( ) . optional ( ) ,
2222 tproxy_enabled : z . boolean ( ) ,
2323 version : z . string ( ) . optional ( )
24- } ) ;
24+ } ) . passthrough ( ) ;
2525
2626// Configuration Schema
2727export const configurationSchema = z . object ( {
2828 name : z . string ( ) ,
2929 image : z . string ( ) ,
30- compose_file : composeFileSchema . nullable ( ) ,
30+ compose_file : composeFileSchema . nullable ( ) . optional ( ) ,
3131 vcpu : z . number ( ) ,
3232 memory : z . number ( ) ,
3333 disk_size : z . number ( ) ,
3434 ports : z . array ( z . any ( ) )
35- } ) ;
35+ } ) . passthrough ( ) ;
3636
3737// Hosted Schema
3838export const hostedSchema = z . object ( {
3939 id : z . string ( ) ,
4040 name : z . string ( ) ,
4141 status : z . string ( ) ,
4242 uptime : z . string ( ) ,
43- app_url : z . string ( ) ,
43+ app_url : z . string ( ) . nullable ( ) ,
4444 app_id : z . string ( ) ,
45- instance_id : z . string ( ) ,
46- configuration : configurationSchema ,
47- exited_at : z . string ( ) ,
48- boot_progress : z . string ( ) ,
49- boot_error : z . string ( ) ,
50- shutdown_progress : z . string ( ) ,
51- image_version : z . string ( )
52- } ) ;
45+ instance_id : z . string ( ) . nullable ( ) ,
46+ configuration : configurationSchema . nullable ( ) . optional ( ) ,
47+ exited_at : z . string ( ) . nullable ( ) ,
48+ boot_progress : z . string ( ) . nullable ( ) ,
49+ boot_error : z . string ( ) . nullable ( ) ,
50+ shutdown_progress : z . string ( ) . nullable ( ) ,
51+ image_version : z . string ( ) . nullable ( ) ,
52+ } ) . passthrough ( ) ;
5353
5454// Managed User Schema
5555export const managedUserSchema = z . object ( {
@@ -210,11 +210,12 @@ export const capacitySchema = z.object({
210210// KMS List Item Schema
211211export const kmsListItemSchema = z . object ( {
212212 id : z . string ( ) ,
213+ slug : z . string ( ) ,
213214 url : z . string ( ) ,
214215 version : z . string ( ) ,
215216 chain_id : z . number ( ) ,
216217 kms_contract_address : z . string ( ) ,
217- gateway_app_id : z . string ( ) ,
218+ gateway_app_id : z . string ( ) . nullable ( ) . optional ( ) ,
218219} ) ;
219220
220221// TeepodResponse Schema
0 commit comments