1- // Generated by obelisk 0.24.1
1+ // Generated by Obelisk 0.24.2
22package obelisk-flyio : activity-fly-http-obelisk-ext @ 1.0.0-beta;
33
44interface apps {
5- use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
5+ use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error , execution-failed };
66 use obelisk-flyio :activity-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 ;
@@ -11,21 +11,27 @@ interface apps {
1111
1212 put-get : func (execution-id : execution-id ) -> result <result <app , string >, get-extension-error >;
1313
14+ put-invoke : func (org-slug : string , app-name : string ) -> result <result <app , string >, execution-failed >;
15+
1416 list-submit : func (join-set-id : borrow <join-set-id >, org-slug : string ) -> execution-id ;
1517
1618 list-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <list <app >, string >>, await-next-extension-error >;
1719
1820 list-get : func (execution-id : execution-id ) -> result <result <list <app >, string >, get-extension-error >;
1921
22+ list-invoke : func (org-slug : string ) -> result <result <list <app >, string >, execution-failed >;
23+
2024 delete-submit : func (join-set-id : borrow <join-set-id >, app-name : string , force : bool ) -> execution-id ;
2125
2226 delete-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
2327
2428 delete-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
29+
30+ delete-invoke : func (app-name : string , force : bool ) -> result <result <_ , string >, execution-failed >;
2531}
2632
2733interface volumes {
28- use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
34+ use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error , execution-failed };
2935 use obelisk-flyio :activity-fly-http /volumes @ 1.0.0-beta . {region , volume-id , volume , volume-create-request };
3036
3137 list-submit : func (join-set-id : borrow <join-set-id >, app-name : string ) -> execution-id ;
@@ -34,33 +40,43 @@ interface volumes {
3440
3541 list-get : func (execution-id : execution-id ) -> result <result <list <volume >, string >, get-extension-error >;
3642
43+ list-invoke : func (app-name : string ) -> result <result <list <volume >, string >, execution-failed >;
44+
3745 create-submit : func (join-set-id : borrow <join-set-id >, app-name : string , request : volume-create-request ) -> execution-id ;
3846
3947 create-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <volume , string >>, await-next-extension-error >;
4048
4149 create-get : func (execution-id : execution-id ) -> result <result <volume , string >, get-extension-error >;
4250
51+ create-invoke : func (app-name : string , request : volume-create-request ) -> result <result <volume , string >, execution-failed >;
52+
4353 get-submit : func (join-set-id : borrow <join-set-id >, app-name : string , volume-id : volume-id ) -> execution-id ;
4454
4555 get-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <volume , string >>, await-next-extension-error >;
4656
4757 get-get : func (execution-id : execution-id ) -> result <result <volume , string >, get-extension-error >;
4858
59+ get-invoke : func (app-name : string , volume-id : volume-id ) -> result <result <volume , string >, execution-failed >;
60+
4961 extend-submit : func (join-set-id : borrow <join-set-id >, app-name : string , volume-id : volume-id , new-size-gb : u32 ) -> execution-id ;
5062
5163 extend-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
5264
5365 extend-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
5466
67+ extend-invoke : func (app-name : string , volume-id : volume-id , new-size-gb : u32 ) -> result <result <_ , string >, execution-failed >;
68+
5569 delete-submit : func (join-set-id : borrow <join-set-id >, app-name : string , volume-id : volume-id ) -> execution-id ;
5670
5771 delete-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
5872
5973 delete-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
74+
75+ delete-invoke : func (app-name : string , volume-id : volume-id ) -> result <result <_ , string >, execution-failed >;
6076}
6177
6278interface machines {
63- use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
79+ use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error , execution-failed };
6480 use obelisk-flyio :activity-fly-http /machines @ 1.0.0-beta . {region , volume-id , machine-id , machine-state , host-status , mount , cpu-kind , guest-config , restart-policy , machine-restart , init-config , stop-config , exec-response , service-protocol , port-handler , port-config , service-config , machine-config , machine };
6581
6682 list-submit : func (join-set-id : borrow <join-set-id >, app-name : string ) -> execution-id ;
@@ -69,57 +85,75 @@ interface machines {
6985
7086 list-get : func (execution-id : execution-id ) -> result <result <list <machine >, string >, get-extension-error >;
7187
88+ list-invoke : func (app-name : string ) -> result <result <list <machine >, string >, execution-failed >;
89+
7290 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 ;
7391
7492 create-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <string , string >>, await-next-extension-error >;
7593
7694 create-get : func (execution-id : execution-id ) -> result <result <string , string >, get-extension-error >;
7795
96+ create-invoke : func (app-name : string , machine-name : string , machine-config : machine-config , region : option <region >) -> result <result <string , string >, execution-failed >;
97+
7898 update-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : machine-id , machine-config : machine-config , region : option <region >) -> execution-id ;
7999
80100 update-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
81101
82102 update-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
83103
104+ update-invoke : func (app-name : string , machine-id : machine-id , machine-config : machine-config , region : option <region >) -> result <result <_ , string >, execution-failed >;
105+
84106 suspend-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : machine-id ) -> execution-id ;
85107
86108 suspend-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
87109
88110 suspend-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
89111
112+ suspend-invoke : func (app-name : string , machine-id : machine-id ) -> result <result <_ , string >, execution-failed >;
113+
90114 stop-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : machine-id ) -> execution-id ;
91115
92116 stop-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
93117
94118 stop-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
95119
120+ stop-invoke : func (app-name : string , machine-id : machine-id ) -> result <result <_ , string >, execution-failed >;
121+
96122 start-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : machine-id ) -> execution-id ;
97123
98124 start-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
99125
100126 start-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
101127
128+ start-invoke : func (app-name : string , machine-id : machine-id ) -> result <result <_ , string >, execution-failed >;
129+
102130 restart-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : machine-id ) -> execution-id ;
103131
104132 restart-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
105133
106134 restart-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
107135
136+ restart-invoke : func (app-name : string , machine-id : machine-id ) -> result <result <_ , string >, execution-failed >;
137+
108138 delete-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : machine-id , force : bool ) -> execution-id ;
109139
110140 delete-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
111141
112142 delete-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
113143
144+ delete-invoke : func (app-name : string , machine-id : machine-id , force : bool ) -> result <result <_ , string >, execution-failed >;
145+
114146 exec-submit : func (join-set-id : borrow <join-set-id >, app-name : string , machine-id : machine-id , command : list <string >) -> execution-id ;
115147
116148 exec-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <exec-response , string >>, await-next-extension-error >;
117149
118150 exec-get : func (execution-id : execution-id ) -> result <result <exec-response , string >, get-extension-error >;
151+
152+ exec-invoke : func (app-name : string , machine-id : machine-id , command : list <string >) -> result <result <exec-response , string >, execution-failed >;
119153}
120154
121155interface secrets {
122- use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error };
156+ use obelisk :types /execution @ 2.0.0 . {execution-id , join-set-id , await-next-extension-error , get-extension-error , execution-failed };
123157 use obelisk-flyio :activity-fly-http /secrets @ 1.0.0-beta . {secret };
124158
125159 list-submit : func (join-set-id : borrow <join-set-id >, app-name : string ) -> execution-id ;
@@ -128,10 +162,14 @@ interface secrets {
128162
129163 list-get : func (execution-id : execution-id ) -> result <result <list <secret >, string >, get-extension-error >;
130164
165+ list-invoke : func (app-name : string ) -> result <result <list <secret >, string >, execution-failed >;
166+
131167 delete-submit : func (join-set-id : borrow <join-set-id >, app-name : string , secret-name : string ) -> execution-id ;
132168
133169 delete-await-next : func (join-set-id : borrow <join-set-id >) -> result <tuple <execution-id , result <_ , string >>, await-next-extension-error >;
134170
135171 delete-get : func (execution-id : execution-id ) -> result <result <_ , string >, get-extension-error >;
172+
173+ delete-invoke : func (app-name : string , secret-name : string ) -> result <result <_ , string >, execution-failed >;
136174}
137175
0 commit comments