55 * and run json-schema-to-typescript to regenerate this file.
66 */
77
8- export type DefinitionsInclude =
8+ export type Include =
99 | string
1010 | {
1111 path ?: StringOrList ;
@@ -14,15 +14,16 @@ export type DefinitionsInclude =
1414 } ;
1515export type StringOrList = string | ListOfStrings ;
1616export type ListOfStrings = string [ ] ;
17- export type DefinitionsDevelopment = {
17+ export type Development = {
1818 watch ?: {
19- ignore ?: string [ ] ;
19+ ignore ?: StringOrList ;
20+ include ?: StringOrList ;
2021 path : string ;
2122 action : "rebuild" | "sync" | "restart" | "sync+restart" | "sync+exec" ;
2223 target ?: string ;
23- exec ?: DefinitionsServiceHook ;
24+ exec ?: ServiceHook ;
2425 } [ ] ;
25- } & Development ;
26+ } & Development1 ;
2627export type Command = null | string | string [ ] ;
2728export type ListOrDict =
2829 | {
@@ -33,16 +34,17 @@ export type ListOrDict =
3334 [ k : string ] : string | number | boolean | null ;
3435 }
3536 | string [ ] ;
36- export type Development = {
37+ export type Development1 = {
3738 watch ?: {
38- ignore ?: string [ ] ;
39+ ignore ?: StringOrList ;
40+ include ?: StringOrList ;
3941 path : string ;
4042 action : "rebuild" | "sync" | "restart" | "sync+restart" | "sync+exec" ;
4143 target ?: string ;
42- exec ?: DefinitionsServiceHook ;
44+ exec ?: ServiceHook ;
4345 } [ ] ;
4446} | null ;
45- export type DefinitionsDeployment = {
47+ export type Deployment = {
4648 mode ?: string ;
4749 endpoint_mode ?: string ;
4850 replicas ?: number | string ;
@@ -72,8 +74,8 @@ export type DefinitionsDeployment = {
7274 reservations ?: {
7375 cpus ?: number | string ;
7476 memory ?: string ;
75- generic_resources ?: DefinitionsGenericResources ;
76- devices ?: DefinitionsDevices ;
77+ generic_resources ?: GenericResources ;
78+ devices ?: Devices ;
7779 } ;
7880 } ;
7981 restart_policy ?: {
@@ -89,21 +91,21 @@ export type DefinitionsDeployment = {
8991 } [ ] ;
9092 max_replicas_per_node ?: number | string ;
9193 } ;
92- } & Deployment ;
93- export type DefinitionsGenericResources = {
94+ } & Deployment1 ;
95+ export type GenericResources = {
9496 discrete_resource_spec ?: {
9597 kind ?: string ;
9698 value ?: number | string ;
9799 } ;
98100} [ ] ;
99- export type DefinitionsDevices = {
101+ export type Devices = {
100102 capabilities : ListOfStrings ;
101103 count ?: string | number ;
102104 device_ids ?: ListOfStrings ;
103105 driver ?: string ;
104106 options ?: ListOrDict ;
105107} [ ] ;
106- export type Deployment = {
108+ export type Deployment1 = {
107109 mode ?: string ;
108110 endpoint_mode ?: string ;
109111 replicas ?: number | string ;
@@ -133,8 +135,8 @@ export type Deployment = {
133135 reservations ?: {
134136 cpus ?: number | string ;
135137 memory ?: string ;
136- generic_resources ?: DefinitionsGenericResources ;
137- devices ?: DefinitionsDevices ;
138+ generic_resources ?: GenericResources ;
139+ devices ?: Devices ;
138140 } ;
139141 } ;
140142 restart_policy ?: {
@@ -181,7 +183,7 @@ export type EnvFile =
181183 }
182184 ) [ ] ;
183185export type LabelFile = string | string [ ] ;
184- export type DefinitionsGpus =
186+ export type Gpus =
185187 | "all"
186188 | {
187189 capabilities ?: ListOfStrings ;
@@ -192,10 +194,10 @@ export type DefinitionsGpus =
192194 [ k : string ] : unknown ;
193195 } [ ] ;
194196/**
195- * This interface was referenced by `PropertiesNetworks `'s JSON-Schema definition
197+ * This interface was referenced by `undefined `'s JSON-Schema definition
196198 * via the `patternProperty` "^[a-zA-Z0-9._-]+$".
197199 */
198- export type DefinitionsNetwork = {
200+ export type Network = {
199201 name ?: string ;
200202 driver ?: string ;
201203 driver_opts ?: {
@@ -241,8 +243,8 @@ export type DefinitionsNetwork = {
241243 enable_ipv6 ?: boolean | string ;
242244 attachable ?: boolean | string ;
243245 labels ?: ListOrDict ;
244- } & Network ;
245- export type Network = {
246+ } & Network1 ;
247+ export type Network1 = {
246248 name ?: string ;
247249 driver ?: string ;
248250 driver_opts ?: {
@@ -290,10 +292,10 @@ export type Network = {
290292 labels ?: ListOrDict ;
291293} | null ;
292294/**
293- * This interface was referenced by `PropertiesVolumes `'s JSON-Schema definition
295+ * This interface was referenced by `undefined `'s JSON-Schema definition
294296 * via the `patternProperty` "^[a-zA-Z0-9._-]+$".
295297 */
296- export type DefinitionsVolume = {
298+ export type Volume = {
297299 name ?: string ;
298300 driver ?: string ;
299301 driver_opts ?: {
@@ -313,8 +315,8 @@ export type DefinitionsVolume = {
313315 name ?: string ;
314316 } ;
315317 labels ?: ListOrDict ;
316- } & Volume ;
317- export type Volume = {
318+ } & Volume1 ;
319+ export type Volume1 = {
318320 name ?: string ;
319321 driver ?: string ;
320322 driver_opts ?: {
@@ -351,23 +353,30 @@ export interface Compose {
351353 /**
352354 * compose sub-projects to be included.
353355 */
354- include ?: DefinitionsInclude [ ] ;
355- services ?: PropertiesServices ;
356- networks ?: PropertiesNetworks ;
357- volumes ?: PropertiesVolumes ;
358- secrets ?: PropertiesSecrets ;
359- configs ?: PropertiesConfigs ;
360- }
361- export interface PropertiesServices {
362- [ k : string ] : DefinitionsService ;
356+ include ?: Include [ ] ;
357+ services ?: {
358+ [ k : string ] : Service ;
359+ } ;
360+ networks ?: {
361+ [ k : string ] : Network ;
362+ } ;
363+ volumes ?: {
364+ [ k : string ] : Volume ;
365+ } ;
366+ secrets ?: {
367+ [ k : string ] : Secret ;
368+ } ;
369+ configs ?: {
370+ [ k : string ] : Config ;
371+ } ;
363372}
364373/**
365- * This interface was referenced by `PropertiesServices `'s JSON-Schema definition
374+ * This interface was referenced by `undefined `'s JSON-Schema definition
366375 * via the `patternProperty` "^[a-zA-Z0-9._-]+$".
367376 */
368- export interface DefinitionsService {
369- develop ?: DefinitionsDevelopment ;
370- deploy ?: DefinitionsDeployment ;
377+ export interface Service {
378+ develop ?: Development ;
379+ deploy ?: Deployment ;
371380 annotations ?: ListOrDict ;
372381 attach ?: boolean | string ;
373382 build ?:
@@ -464,9 +473,9 @@ export interface DefinitionsService {
464473 } ;
465474 external_links ?: string [ ] ;
466475 extra_hosts ?: ExtraHosts ;
467- gpus ?: DefinitionsGpus ;
476+ gpus ?: Gpus ;
468477 group_add ?: ( string | number ) [ ] ;
469- healthcheck ?: DefinitionsHealthcheck ;
478+ healthcheck ?: Healthcheck ;
470479 hostname ?: string ;
471480 image ?: string ;
472481 init ?: boolean | string ;
@@ -511,6 +520,7 @@ export interface DefinitionsService {
511520 [ k : string ] : string | number ;
512521 } ;
513522 priority ?: number ;
523+ gw_priority ?: number ;
514524 } | null ;
515525 } ;
516526 oom_kill_disable ?: boolean | string ;
@@ -531,11 +541,12 @@ export interface DefinitionsService {
531541 app_protocol ?: string ;
532542 }
533543 ) [ ] ;
534- post_start ?: DefinitionsServiceHook [ ] ;
535- pre_stop ?: DefinitionsServiceHook [ ] ;
544+ post_start ?: ServiceHook [ ] ;
545+ pre_stop ?: ServiceHook [ ] ;
536546 privileged ?: boolean | string ;
537547 profiles ?: ListOfStrings ;
538- pull_policy ?: "always" | "never" | "if_not_present" | "build" | "missing" ;
548+ pull_policy ?: string ;
549+ pull_refresh_after ?: string ;
539550 read_only ?: boolean | string ;
540551 restart ?: string ;
541552 runtime ?: string ;
@@ -583,8 +594,8 @@ export interface DefinitionsService {
583594 volumes_from ?: string [ ] ;
584595 working_dir ?: string ;
585596}
586- export interface DefinitionsServiceHook {
587- command ? : Command ;
597+ export interface ServiceHook {
598+ command : Command ;
588599 user ?: string ;
589600 privileged ?: boolean | string ;
590601 working_dir ?: string ;
@@ -610,7 +621,7 @@ export interface BlkioWeight {
610621 path ?: string ;
611622 weight ?: number | string ;
612623}
613- export interface DefinitionsHealthcheck {
624+ export interface Healthcheck {
614625 disable ?: boolean | string ;
615626 interval ?: string ;
616627 retries ?: number | string ;
@@ -619,20 +630,11 @@ export interface DefinitionsHealthcheck {
619630 start_period ?: string ;
620631 start_interval ?: string ;
621632}
622- export interface PropertiesNetworks {
623- [ k : string ] : DefinitionsNetwork ;
624- }
625- export interface PropertiesVolumes {
626- [ k : string ] : DefinitionsVolume ;
627- }
628- export interface PropertiesSecrets {
629- [ k : string ] : DefinitionsSecret ;
630- }
631633/**
632- * This interface was referenced by `PropertiesSecrets `'s JSON-Schema definition
634+ * This interface was referenced by `undefined `'s JSON-Schema definition
633635 * via the `patternProperty` "^[a-zA-Z0-9._-]+$".
634636 */
635- export interface DefinitionsSecret {
637+ export interface Secret {
636638 name ?: string ;
637639 environment ?: string ;
638640 file ?: string ;
@@ -654,14 +656,11 @@ export interface DefinitionsSecret {
654656 } ;
655657 template_driver ?: string ;
656658}
657- export interface PropertiesConfigs {
658- [ k : string ] : DefinitionsConfig ;
659- }
660659/**
661- * This interface was referenced by `PropertiesConfigs `'s JSON-Schema definition
660+ * This interface was referenced by `undefined `'s JSON-Schema definition
662661 * via the `patternProperty` "^[a-zA-Z0-9._-]+$".
663662 */
664- export interface DefinitionsConfig {
663+ export interface Config {
665664 name ?: string ;
666665 content ?: string ;
667666 environment ?: string ;
0 commit comments