11// Generated by obelisk 0.24.1
22package activity-flyio : fly-http-obelisk-ext @ 1.0.0-beta;
33
4- interface app {
4+ interface apps {
55 use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
6- use activity-flyio :fly-http /app @ 1.0.0-beta . {app };
6+ use activity-flyio :fly-http /apps @ 1.0.0-beta . {app };
77
88 put-submit : func (join-set-id : borrow <join-set-id >, org-slug : string , app-name : string ) -> execution-id ;
99
@@ -24,23 +24,23 @@ interface app {
2424 delete-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
2525}
2626
27- interface machine {
27+ interface machines {
2828 use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
29- use activity-flyio :fly-http /machine @ 1.0.0-beta . {machine-state , host-status , cpu-kind , guest-config , machine-region , restart-policy , machine-restart , init-config , stop-config , machine-config , machine , exec-response };
29+ use activity-flyio :fly-http /machines @ 1.0.0-beta . {region , machine-state , host-status , mount , cpu-kind , guest-config , restart-policy , machine-restart , init-config , stop-config , machine-config , machine , exec-response };
3030
3131 list-submit : func (join-set-id : borrow <join-set-id >, app-name : string ) -> execution-id ;
3232
3333 list-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <list <machine >, string >>, await-next-extension-error >;
3434
3535 list-get : func (execution-id : execution-id ) -> result <result <list <machine >, string >, get-extension-error >;
3636
37- create-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-name : string , machine-config : machine-config , region : option <machine- region >) -> execution-id ;
37+ create-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-name : string , machine-config : machine-config , region : option <region >) -> execution-id ;
3838
3939 create-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <string , string >>, await-next-extension-error >;
4040
4141 create-get : func (execution-id : execution-id ) -> result <result <string , string >, get-extension-error >;
4242
43- update-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : string , machine-config : machine-config , region : option <machine- region >) -> execution-id ;
43+ update-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : string , machine-config : machine-config , region : option <region >) -> execution-id ;
4444
4545 update-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
4646
@@ -64,6 +64,12 @@ interface machine {
6464
6565 start-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
6666
67+ restart-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : string ) -> execution-id ;
68+
69+ restart-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
70+
71+ restart-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
72+
6773 delete-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : string , force : bool ) -> execution-id ;
6874
6975 delete-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
@@ -77,9 +83,9 @@ interface machine {
7783 exec-get : func (execution-id : execution-id ) -> result <result <exec-response , string >, get-extension-error >;
7884}
7985
80- interface secret {
86+ interface secrets {
8187 use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
82- use activity-flyio :fly-http /secret @ 1.0.0-beta . {secret };
88+ use activity-flyio :fly-http /secrets @ 1.0.0-beta . {secret };
8389
8490 list-submit : func (join-set-id : borrow <join-set-id >, app-name : string ) -> execution-id ;
8591
@@ -100,3 +106,38 @@ interface secret {
100106 delete-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
101107}
102108
109+ interface volumes {
110+ use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
111+ use activity-flyio :fly-http /volumes @ 1.0.0-beta . {region , volume , volume-create-request };
112+
113+ list-submit : func (join-set-id : borrow <join-set-id >, app-name : string ) -> execution-id ;
114+
115+ list-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <list <volume >, string >>, await-next-extension-error >;
116+
117+ list-get : func (execution-id : execution-id ) -> result <result <list <volume >, string >, get-extension-error >;
118+
119+ create-submit : func (join-set-id : borrow <join-set-id >, app-name : string , request : volume-create-request ) -> execution-id ;
120+
121+ create-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <volume , string >>, await-next-extension-error >;
122+
123+ create-get : func (execution-id : execution-id ) -> result <result <volume , string >, get-extension-error >;
124+
125+ get-submit : func (join-set-id : borrow <join-set-id >, app-name : string , volume-id : string ) -> execution-id ;
126+
127+ get-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <volume , string >>, await-next-extension-error >;
128+
129+ get-get : func (execution-id : execution-id ) -> result <result <volume , string >, get-extension-error >;
130+
131+ extend-submit : func (join-set-id : borrow <join-set-id >, app-name : string , volume-id : string , new-size-gb : u32 ) -> execution-id ;
132+
133+ extend-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
134+
135+ extend-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
136+
137+ delete-submit : func (join-set-id : borrow <join-set-id >, app-name : string , volume-id : string ) -> execution-id ;
138+
139+ delete-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
140+
141+ delete-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
142+ }
143+
0 commit comments