@distilled.cloud/fly-io 1.0.0-rc.14 → 1.0.0-rc.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +3 -3
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +43 -38
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +24 -24
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +37 -37
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +31 -31
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +3 -3
- package/lib/protocol.d.ts +2 -2
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +89 -66
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +26 -25
- package/lib/retry.js.map +1 -1
- package/lib/services/addons.d.ts +0 -65
- package/lib/services/addons.d.ts.map +1 -1
- package/lib/services/addons.js +54 -561
- package/lib/services/machines.d.ts +25 -444
- package/lib/services/machines.d.ts.map +1 -1
- package/lib/services/machines.js +317 -2726
- package/lib/services/mpg.d.ts +1 -67
- package/lib/services/mpg.d.ts.map +1 -1
- package/lib/services/mpg.js +75 -448
- package/lib/services/sprites.d.ts +1 -125
- package/lib/services/sprites.d.ts.map +1 -1
- package/lib/services/sprites.js +146 -884
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +14 -14
- package/lib/traits.js.map +1 -1
- package/package.json +13 -9
- package/src/credentials.ts +18 -15
- package/src/errors.ts +26 -28
- package/src/index.ts +2 -2
- package/src/pagination.ts +1 -1
- package/src/protocol.ts +67 -36
- package/src/retry.ts +6 -4
- package/src/services/addons.ts +593 -692
- package/src/services/machines.ts +3332 -3364
- package/src/services/mpg.ts +582 -519
- package/src/services/sprites.ts +1008 -948
- package/src/traits.ts +8 -4
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -126
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/addons.js.map +0 -1
- package/lib/services/machines.js.map +0 -1
- package/lib/services/mpg.js.map +0 -1
- package/lib/services/sprites.js.map +0 -1
- package/lib/sprites-mint.test.d.ts +0 -2
- package/lib/sprites-mint.test.d.ts.map +0 -1
- package/lib/sprites-mint.test.js +0 -169
- package/lib/sprites-mint.test.js.map +0 -1
- package/src/protocol.test.ts +0 -214
- package/src/sprites-mint.test.ts +0 -228
package/lib/services/sprites.js
CHANGED
|
@@ -1,891 +1,153 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
|
|
3
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
4
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
4
5
|
import { BadRequest, Conflict, NotFound, SpritesNotEnabled } from "../errors.js";
|
|
5
6
|
import { paginateCursor } from "../pagination.js";
|
|
6
7
|
import { SpritesProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
})).
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
export const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
})).
|
|
53
|
-
|
|
54
|
-
export const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
export const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}).pipe(
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
})).
|
|
71
|
-
|
|
72
|
-
export const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
})).
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}).pipe(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
})).
|
|
87
|
-
|
|
88
|
-
export const
|
|
89
|
-
|
|
90
|
-
export const
|
|
91
|
-
|
|
92
|
-
export const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
})).
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}).pipe(
|
|
105
|
-
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
export const
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
export const UrlSettingsPrivateAccess = S.String;
|
|
154
|
-
export const UrlSettings = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
|
-
auth: UrlSettingsAuth,
|
|
156
|
-
private_access: S.optional(UrlSettingsPrivateAccess),
|
|
157
|
-
})).annotate({ identifier: "UrlSettings" });
|
|
158
|
-
export const SpriteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
159
|
-
created_at: S.String,
|
|
160
|
-
environment_version: S.optional(S.NullOr(S.String)),
|
|
161
|
-
id: S.String,
|
|
162
|
-
labels: S.optional(SpriteResponseLabelsList),
|
|
163
|
-
last_running_at: S.optional(S.NullOr(S.String)),
|
|
164
|
-
last_warming_at: S.optional(S.NullOr(S.String)),
|
|
165
|
-
name: S.String,
|
|
166
|
-
organization: S.String,
|
|
167
|
-
status: SpriteResponseStatus,
|
|
168
|
-
updated_at: S.String,
|
|
169
|
-
url: S.String,
|
|
170
|
-
url_settings: S.optional(S.NullOr(UrlSettings)),
|
|
171
|
-
version: S.optional(S.NullOr(S.String)),
|
|
172
|
-
})).annotate({ identifier: "SpriteResponse" });
|
|
173
|
-
export const DeleteFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
174
|
-
name: S.String.pipe(T.Label()),
|
|
175
|
-
asRoot: S.Boolean,
|
|
176
|
-
path: S.String,
|
|
177
|
-
recursive: S.Boolean,
|
|
178
|
-
workingDir: S.String,
|
|
179
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/fs/delete", code: 200 }))).annotate({ identifier: "DeleteFileRequest" });
|
|
180
|
-
export const DeleteResponseDeletedList = /*@__PURE__*/ S.Array(S.String);
|
|
181
|
-
export const DeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
182
|
-
count: S.Number,
|
|
183
|
-
deleted: DeleteResponseDeletedList,
|
|
184
|
-
})).annotate({ identifier: "DeleteResponse" });
|
|
185
|
-
export const DeleteOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
186
|
-
id: S.String.pipe(T.Label()),
|
|
187
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/oauth/connections/{id}", code: 200 }))).annotate({
|
|
188
|
-
identifier: "DeleteOAuthConnectionRequest",
|
|
189
|
-
});
|
|
190
|
-
export const DeleteOAuthConnectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
191
|
-
identifier: "DeleteOAuthConnectionResponse",
|
|
192
|
-
});
|
|
193
|
-
export const DeletePrivilegesPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
194
|
-
name: S.String.pipe(T.Label()),
|
|
195
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/policy/privileges", code: 200 }))).annotate({
|
|
196
|
-
identifier: "DeletePrivilegesPolicyRequest",
|
|
197
|
-
});
|
|
198
|
-
export const DeletePrivilegesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
199
|
-
identifier: "DeletePrivilegesPolicyResponse",
|
|
200
|
-
});
|
|
201
|
-
export const DeleteResourcesPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
202
|
-
name: S.String.pipe(T.Label()),
|
|
203
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}/policy/resources", code: 200 }))).annotate({
|
|
204
|
-
identifier: "DeleteResourcesPolicyRequest",
|
|
205
|
-
});
|
|
206
|
-
export const DeleteResourcesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
207
|
-
identifier: "DeleteResourcesPolicyResponse",
|
|
208
|
-
});
|
|
209
|
-
export const DeleteSpriteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
210
|
-
name: S.String.pipe(T.Label()),
|
|
211
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}", code: 200 }))).annotate({ identifier: "DeleteSpriteRequest" });
|
|
212
|
-
export const DeleteSpriteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
213
|
-
identifier: "DeleteSpriteResponse",
|
|
214
|
-
});
|
|
215
|
-
export const SpriteEnvExecuteCommandRequestCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
216
|
-
export const SpriteEnvExecuteCommandRequestEnvList = /*@__PURE__*/ S.Array(S.String);
|
|
217
|
-
export const ExecCommandRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
218
|
-
name: S.String.pipe(T.Label()),
|
|
219
|
-
cmd: SpriteEnvExecuteCommandRequestCmdList.pipe(T.Query()),
|
|
220
|
-
path: S.optional(S.String.pipe(T.Query())),
|
|
221
|
-
stdin: S.optional(S.Boolean.pipe(T.Query())),
|
|
222
|
-
env: S.optional(SpriteEnvExecuteCommandRequestEnvList.pipe(T.Query())),
|
|
223
|
-
dir: S.optional(S.String.pipe(T.Query())),
|
|
224
|
-
body: S.optional(S.String.pipe(T.HttpBody())),
|
|
225
|
-
}).pipe(T.Http({
|
|
226
|
-
method: "POST",
|
|
227
|
-
uri: "/sprites/{name}/exec",
|
|
228
|
-
code: 200,
|
|
229
|
-
bodyMediaType: "application/octet-stream",
|
|
230
|
-
}))).annotate({ identifier: "ExecCommandRequest" });
|
|
231
|
-
export const ExecResult = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
-
exit_code: S.optional(S.Number),
|
|
233
|
-
stdout: S.optional(S.String),
|
|
234
|
-
stderr: S.optional(S.String),
|
|
235
|
-
})).annotate({ identifier: "ExecResult" });
|
|
236
|
-
export const GetCheckpointRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
237
|
-
name: S.String.pipe(T.Label()),
|
|
238
|
-
checkpoint_id: S.String.pipe(T.Label()),
|
|
239
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/checkpoints/{checkpoint_id}", code: 200 }))).annotate({ identifier: "GetCheckpointRequest" });
|
|
240
|
-
export const CheckpointInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
241
|
-
comment: S.optional(S.String),
|
|
242
|
-
create_time: S.String,
|
|
243
|
-
health: S.optional(S.String),
|
|
244
|
-
id: S.String,
|
|
245
|
-
source_id: S.optional(S.String),
|
|
246
|
-
})).annotate({ identifier: "CheckpointInfo" });
|
|
247
|
-
export const GetNetworkPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
|
-
name: S.String.pipe(T.Label()),
|
|
249
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/network", code: 200 }))).annotate({ identifier: "GetNetworkPolicyRequest" });
|
|
250
|
-
export const NetworkPolicyRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
251
|
-
action: S.optional(S.String),
|
|
252
|
-
domain: S.optional(S.String),
|
|
253
|
-
include: S.optional(S.String),
|
|
254
|
-
})).annotate({ identifier: "NetworkPolicyRule" });
|
|
255
|
-
export const NetworkPolicyRequestRulesList = /*@__PURE__*/ S.Array(NetworkPolicyRule);
|
|
256
|
-
export const NetworkPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
257
|
-
rules: NetworkPolicyRequestRulesList,
|
|
258
|
-
})).annotate({ identifier: "NetworkPolicyRequest" });
|
|
259
|
-
export const GetOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
260
|
-
id: S.String.pipe(T.Label()),
|
|
261
|
-
}).pipe(T.Http({ method: "GET", uri: "/oauth/connections/{id}", code: 200 }))).annotate({
|
|
262
|
-
identifier: "GetOAuthConnectionRequest",
|
|
263
|
-
});
|
|
264
|
-
export const GetPrivilegesPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
265
|
-
name: S.String.pipe(T.Label()),
|
|
266
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/privileges", code: 200 }))).annotate({
|
|
267
|
-
identifier: "GetPrivilegesPolicyRequest",
|
|
268
|
-
});
|
|
269
|
-
export const GetPrivilegesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
270
|
-
identifier: "GetPrivilegesPolicyResponse",
|
|
271
|
-
});
|
|
272
|
-
export const GetResourcesPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
273
|
-
name: S.String.pipe(T.Label()),
|
|
274
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/policy/resources", code: 200 }))).annotate({
|
|
275
|
-
identifier: "GetResourcesPolicyRequest",
|
|
276
|
-
});
|
|
277
|
-
export const GetResourcesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
278
|
-
identifier: "GetResourcesPolicyResponse",
|
|
279
|
-
});
|
|
280
|
-
export const GetServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
281
|
-
name: S.String.pipe(T.Label()),
|
|
282
|
-
service_name: S.String.pipe(T.Label()),
|
|
283
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/services/{service_name}", code: 200 }))).annotate({ identifier: "GetServiceRequest" });
|
|
284
|
-
export const ServiceResponseArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
285
|
-
export const ServiceResponseNeedsList = /*@__PURE__*/ S.Array(S.String);
|
|
286
|
-
export const ServiceState = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
-
error: S.optional(S.String),
|
|
288
|
-
name: S.String,
|
|
289
|
-
pid: S.optional(S.Number),
|
|
290
|
-
started_at: S.optional(S.String),
|
|
291
|
-
status: S.String,
|
|
292
|
-
})).annotate({ identifier: "ServiceState" });
|
|
293
|
-
export const ServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
294
|
-
args: ServiceResponseArgsList,
|
|
295
|
-
cmd: S.String,
|
|
296
|
-
http_port: S.optional(S.NullOr(S.Number)),
|
|
297
|
-
name: S.String,
|
|
298
|
-
needs: ServiceResponseNeedsList,
|
|
299
|
-
state: S.optional(S.NullOr(ServiceState)),
|
|
300
|
-
})).annotate({ identifier: "ServiceResponse" });
|
|
301
|
-
export const GetServiceLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
-
name: S.String.pipe(T.Label()),
|
|
303
|
-
service_name: S.String.pipe(T.Label()),
|
|
304
|
-
lines: S.optional(S.Number.pipe(T.Query())),
|
|
305
|
-
duration: S.optional(S.Number.pipe(T.Query())),
|
|
306
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/services/{service_name}/logs", code: 200 }))).annotate({ identifier: "GetServiceLogsRequest" });
|
|
307
|
-
export const GetServiceLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
308
|
-
identifier: "GetServiceLogsResponse",
|
|
309
|
-
});
|
|
310
|
-
export const GetSpriteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
311
|
-
name: S.String.pipe(T.Label()),
|
|
312
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}", code: 200 }))).annotate({ identifier: "GetSpriteRequest" });
|
|
313
|
-
export const KillExecSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
314
|
-
name: S.String.pipe(T.Label()),
|
|
315
|
-
session_id: S.String.pipe(T.Label()),
|
|
316
|
-
signal: S.optional(S.String.pipe(T.Query())),
|
|
317
|
-
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
318
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/exec/{session_id}/kill", code: 200 }))).annotate({ identifier: "KillExecSessionRequest" });
|
|
319
|
-
export const KillExecSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
320
|
-
identifier: "KillExecSessionResponse",
|
|
321
|
-
});
|
|
322
|
-
export const ListCheckpointsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
-
name: S.String.pipe(T.Label()),
|
|
324
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/checkpoints", code: 200 }))).annotate({ identifier: "ListCheckpointsRequest" });
|
|
325
|
-
export const ListCheckpointsResponseBodyList = /*@__PURE__*/ S.Array(CheckpointInfo);
|
|
326
|
-
export const ListCheckpointsResponse = /*@__PURE__*/ S.suspend(() => ListCheckpointsResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "ListCheckpointsResponse" });
|
|
327
|
-
export const ListDirectoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
328
|
-
name: S.String.pipe(T.Label()),
|
|
329
|
-
path: S.String.pipe(T.Query()),
|
|
330
|
-
workingDir: S.String.pipe(T.Query()),
|
|
331
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/fs/list", code: 200 }))).annotate({ identifier: "ListDirectoryRequest" });
|
|
332
|
-
export const Entry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
333
|
-
isDir: S.Boolean,
|
|
334
|
-
modTime: S.String,
|
|
335
|
-
mode: S.String,
|
|
336
|
-
name: S.String,
|
|
337
|
-
path: S.String,
|
|
338
|
-
size: S.Number,
|
|
339
|
-
type: S.String,
|
|
340
|
-
})).annotate({ identifier: "Entry" });
|
|
341
|
-
export const ListResponseEntriesList = /*@__PURE__*/ S.Array(Entry);
|
|
342
|
-
export const ListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
343
|
-
count: S.Number,
|
|
344
|
-
entries: ListResponseEntriesList,
|
|
345
|
-
path: S.String,
|
|
346
|
-
})).annotate({ identifier: "ListResponse" });
|
|
347
|
-
export const ListExecSessionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
348
|
-
name: S.String.pipe(T.Label()),
|
|
349
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/exec", code: 200 }))).annotate({ identifier: "ListExecSessionsRequest" });
|
|
350
|
-
export const ListExecSessionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
351
|
-
identifier: "ListExecSessionsResponse",
|
|
352
|
-
});
|
|
353
|
-
export const ListOAuthConnectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
354
|
-
provider: S.optional(S.String.pipe(T.Query())),
|
|
355
|
-
}).pipe(T.Http({ method: "GET", uri: "/oauth/connections", code: 200 }))).annotate({
|
|
356
|
-
identifier: "ListOAuthConnectionsRequest",
|
|
357
|
-
});
|
|
358
|
-
export const ConnectionListResponseConnectionsList = /*@__PURE__*/ S.Array(Connection);
|
|
359
|
-
export const ConnectionListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
360
|
-
connections: ConnectionListResponseConnectionsList,
|
|
361
|
-
})).annotate({ identifier: "ConnectionListResponse" });
|
|
362
|
-
export const ListServicesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
363
|
-
name: S.String.pipe(T.Label()),
|
|
364
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/services", code: 200 }))).annotate({ identifier: "ListServicesRequest" });
|
|
365
|
-
export const ListServicesResponseBodyList = /*@__PURE__*/ S.Array(ServiceResponse);
|
|
366
|
-
export const ListServicesResponse = /*@__PURE__*/ S.suspend(() => ListServicesResponseBodyList.pipe(T.RawResponseRoot())).annotate({ identifier: "ListServicesResponse" });
|
|
367
|
-
export const ListSpritesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
368
|
-
prefix: S.optional(S.String.pipe(T.Query())),
|
|
369
|
-
max_results: S.optional(S.Number.pipe(T.Query())),
|
|
370
|
-
continuation_token: S.optional(S.String.pipe(T.Query())),
|
|
371
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites", code: 200 }))).annotate({ identifier: "ListSpritesRequest" });
|
|
372
|
-
export const SpriteListResponseSpritesList = /*@__PURE__*/ S.Array(SpriteResponse);
|
|
373
|
-
export const SpriteListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
374
|
-
cold: S.Number,
|
|
375
|
-
has_more: S.Boolean,
|
|
376
|
-
name: S.String,
|
|
377
|
-
next_continuation_token: S.optional(S.String),
|
|
378
|
-
running: S.Number,
|
|
379
|
-
running_limit: S.optional(S.Number),
|
|
380
|
-
sprites: SpriteListResponseSpritesList,
|
|
381
|
-
warm: S.Number,
|
|
382
|
-
warm_limit: S.optional(S.Number),
|
|
383
|
-
})).annotate({ identifier: "SpriteListResponse" });
|
|
384
|
-
export const OauthConnectionCallbackRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
385
|
-
provider: S.String.pipe(T.Label()),
|
|
386
|
-
access_policy: S.optional(AccessPolicy),
|
|
387
|
-
code: S.String,
|
|
388
|
-
redirect_uri: S.optional(S.String),
|
|
389
|
-
state: S.optional(S.String),
|
|
390
|
-
}).pipe(T.Http({ method: "POST", uri: "/oauth/{provider}/callback", code: 200 }))).annotate({
|
|
391
|
-
identifier: "OauthConnectionCallbackRequest",
|
|
392
|
-
});
|
|
393
|
-
export const PatchOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
394
|
-
id: S.String.pipe(T.Label()),
|
|
395
|
-
access_policy: AccessPolicy,
|
|
396
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/oauth/connections/{id}", code: 200 }))).annotate({
|
|
397
|
-
identifier: "PatchOAuthConnectionRequest",
|
|
398
|
-
});
|
|
399
|
-
export const ProvisionOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
400
|
-
provider: S.String,
|
|
401
|
-
}).pipe(T.Http({ method: "POST", uri: "/oauth/connections/provision", code: 200 }))).annotate({
|
|
402
|
-
identifier: "ProvisionOAuthConnectionRequest",
|
|
403
|
-
});
|
|
404
|
-
export const PutServiceRequestArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
405
|
-
export const PutServiceRequestNeedsList = /*@__PURE__*/ S.Array(S.String);
|
|
406
|
-
export const PutServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
407
|
-
name: S.String.pipe(T.Label()),
|
|
408
|
-
service_name: S.String.pipe(T.Label()),
|
|
409
|
-
duration: S.optional(S.Number.pipe(T.Query())),
|
|
410
|
-
args: S.optional(PutServiceRequestArgsList),
|
|
411
|
-
cmd: S.String,
|
|
412
|
-
dir: S.optional(S.String),
|
|
413
|
-
env: S.optional(S.Unknown),
|
|
414
|
-
http_port: S.optional(S.NullOr(S.Number)),
|
|
415
|
-
needs: S.optional(PutServiceRequestNeedsList),
|
|
416
|
-
}).pipe(T.Http({ method: "PUT", uri: "/sprites/{name}/services/{service_name}", code: 200 }))).annotate({ identifier: "PutServiceRequest" });
|
|
417
|
-
export const ReadFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
418
|
-
name: S.String.pipe(T.Label()),
|
|
419
|
-
path: S.String.pipe(T.Query()),
|
|
420
|
-
workingDir: S.String.pipe(T.Query()),
|
|
421
|
-
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/fs/read", code: 200 }))).annotate({ identifier: "ReadFileRequest" });
|
|
422
|
-
export const ReadFileResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
423
|
-
identifier: "ReadFileResponse",
|
|
424
|
-
});
|
|
425
|
-
export const RenameFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
426
|
-
name: S.String.pipe(T.Label()),
|
|
427
|
-
asRoot: S.Boolean,
|
|
428
|
-
dest: S.String,
|
|
429
|
-
source: S.String,
|
|
430
|
-
workingDir: S.String,
|
|
431
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/fs/rename", code: 200 }))).annotate({ identifier: "RenameFileRequest" });
|
|
432
|
-
export const RenameResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
433
|
-
dest: S.String,
|
|
434
|
-
source: S.String,
|
|
435
|
-
})).annotate({ identifier: "RenameResponse" });
|
|
436
|
-
export const RestartServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
437
|
-
name: S.String.pipe(T.Label()),
|
|
438
|
-
service_name: S.String.pipe(T.Label()),
|
|
439
|
-
duration: S.optional(S.Number.pipe(T.Query())),
|
|
440
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/services/{service_name}/restart", code: 200 }))).annotate({ identifier: "RestartServiceRequest" });
|
|
441
|
-
export const RestartServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
442
|
-
identifier: "RestartServiceResponse",
|
|
443
|
-
});
|
|
444
|
-
export const RestoreCheckpointRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
445
|
-
name: S.String.pipe(T.Label()),
|
|
446
|
-
checkpoint_id: S.String.pipe(T.Label()),
|
|
447
|
-
}).pipe(T.Http({
|
|
448
|
-
method: "POST",
|
|
449
|
-
uri: "/sprites/{name}/checkpoints/{checkpoint_id}/restore",
|
|
450
|
-
code: 200,
|
|
451
|
-
}))).annotate({ identifier: "RestoreCheckpointRequest" });
|
|
452
|
-
export const RestoreCheckpointResponseBodyList = /*@__PURE__*/ S.Array(StreamEvent);
|
|
453
|
-
export const RestoreCheckpointResponse = /*@__PURE__*/ S.suspend(() => RestoreCheckpointResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
454
|
-
identifier: "RestoreCheckpointResponse",
|
|
455
|
-
});
|
|
456
|
-
export const SetNetworkPolicyRequestRulesList = /*@__PURE__*/ S.Array(NetworkPolicyRule);
|
|
457
|
-
export const SetNetworkPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
458
|
-
name: S.String.pipe(T.Label()),
|
|
459
|
-
rules: SetNetworkPolicyRequestRulesList,
|
|
460
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/network", code: 200 }))).annotate({ identifier: "SetNetworkPolicyRequest" });
|
|
461
|
-
export const SetNetworkPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
462
|
-
identifier: "SetNetworkPolicyResponse",
|
|
463
|
-
});
|
|
464
|
-
export const SetPrivilegesPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
465
|
-
name: S.String.pipe(T.Label()),
|
|
466
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/privileges", code: 200 }))).annotate({
|
|
467
|
-
identifier: "SetPrivilegesPolicyRequest",
|
|
468
|
-
});
|
|
469
|
-
export const SetPrivilegesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
470
|
-
identifier: "SetPrivilegesPolicyResponse",
|
|
471
|
-
});
|
|
472
|
-
export const SetResourcesPolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
473
|
-
name: S.String.pipe(T.Label()),
|
|
474
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/policy/resources", code: 200 }))).annotate({
|
|
475
|
-
identifier: "SetResourcesPolicyRequest",
|
|
476
|
-
});
|
|
477
|
-
export const SetResourcesPolicyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
478
|
-
identifier: "SetResourcesPolicyResponse",
|
|
479
|
-
});
|
|
480
|
-
export const StartServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
481
|
-
name: S.String.pipe(T.Label()),
|
|
482
|
-
service_name: S.String.pipe(T.Label()),
|
|
483
|
-
duration: S.optional(S.Number.pipe(T.Query())),
|
|
484
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/services/{service_name}/start", code: 200 }))).annotate({ identifier: "StartServiceRequest" });
|
|
485
|
-
export const StartServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
486
|
-
identifier: "StartServiceResponse",
|
|
487
|
-
});
|
|
488
|
-
export const StopServiceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
489
|
-
name: S.String.pipe(T.Label()),
|
|
490
|
-
service_name: S.String.pipe(T.Label()),
|
|
491
|
-
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
492
|
-
}).pipe(T.Http({ method: "POST", uri: "/sprites/{name}/services/{service_name}/stop", code: 200 }))).annotate({ identifier: "StopServiceRequest" });
|
|
493
|
-
export const StopServiceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
494
|
-
identifier: "StopServiceResponse",
|
|
495
|
-
});
|
|
496
|
-
export const UpdateOAuthConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
497
|
-
id: S.String.pipe(T.Label()),
|
|
498
|
-
access_policy: AccessPolicy,
|
|
499
|
-
}).pipe(T.Http({ method: "PUT", uri: "/oauth/connections/{id}", code: 200 }))).annotate({
|
|
500
|
-
identifier: "UpdateOAuthConnectionRequest",
|
|
501
|
-
});
|
|
502
|
-
export const UpdateSpriteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
503
|
-
name: S.String.pipe(T.Label()),
|
|
504
|
-
url_settings: UrlSettingsRequest,
|
|
505
|
-
}).pipe(T.Http({ method: "PUT", uri: "/sprites/{name}", code: 200 }))).annotate({ identifier: "UpdateSpriteRequest" });
|
|
506
|
-
export const WriteFileRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
507
|
-
name: S.String.pipe(T.Label()),
|
|
508
|
-
path: S.String.pipe(T.Query()),
|
|
509
|
-
workingDir: S.String.pipe(T.Query()),
|
|
510
|
-
mode: S.optional(S.String.pipe(T.Query())),
|
|
511
|
-
mkdir: S.optional(S.Boolean.pipe(T.Query())),
|
|
512
|
-
body: S.String.pipe(T.HttpBody()),
|
|
513
|
-
}).pipe(T.Http({
|
|
514
|
-
method: "PUT",
|
|
515
|
-
uri: "/sprites/{name}/fs/write",
|
|
516
|
-
code: 200,
|
|
517
|
-
bodyMediaType: "application/octet-stream",
|
|
518
|
-
}))).annotate({ identifier: "WriteFileRequest" });
|
|
519
|
-
export const WriteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
520
|
-
mode: S.String,
|
|
521
|
-
path: S.String,
|
|
522
|
-
size: S.Number,
|
|
523
|
-
})).annotate({ identifier: "WriteResponse" });
|
|
524
|
-
/** Authorize an OAuth connector Create an OAuth authorization URL for a provider. Use this to start a browser-based consent flow. */
|
|
525
|
-
export const authorizeOAuthConnection = /*@__PURE__*/ API.make(() => ({
|
|
526
|
-
input: AuthorizeOAuthConnectionRequest,
|
|
527
|
-
output: OAuthAuthorizeResponse,
|
|
528
|
-
errors: [BadRequest, SpritesNotEnabled],
|
|
529
|
-
protocol: SpritesProtocol,
|
|
530
|
-
retry: Retry.Retry,
|
|
531
|
-
}));
|
|
532
|
-
/** Change File Mode Change file or directory permissions. */
|
|
533
|
-
export const changeFileMode = /*@__PURE__*/ API.make(() => ({
|
|
534
|
-
input: ChangeFileModeRequest,
|
|
535
|
-
output: ChmodResponse,
|
|
536
|
-
errors: [BadRequest, NotFound],
|
|
537
|
-
protocol: SpritesProtocol,
|
|
538
|
-
retry: Retry.Retry,
|
|
539
|
-
}));
|
|
540
|
-
/** Change File Owner Change file or directory ownership. */
|
|
541
|
-
export const changeFileOwner = /*@__PURE__*/ API.make(() => ({
|
|
542
|
-
input: ChangeFileOwnerRequest,
|
|
543
|
-
output: ChownResponse,
|
|
544
|
-
errors: [BadRequest, NotFound],
|
|
545
|
-
protocol: SpritesProtocol,
|
|
546
|
-
retry: Retry.Retry,
|
|
547
|
-
}));
|
|
548
|
-
/** Copy File or Directory Copy a file or directory. */
|
|
549
|
-
export const copyFile = /*@__PURE__*/ API.make(() => ({
|
|
550
|
-
input: CopyFileRequest,
|
|
551
|
-
output: CopyResponse,
|
|
552
|
-
errors: [BadRequest, NotFound],
|
|
553
|
-
protocol: SpritesProtocol,
|
|
554
|
-
retry: Retry.Retry,
|
|
555
|
-
}));
|
|
556
|
-
/** Create Checkpoint Create a new checkpoint of the current sprite state. Returns streaming NDJSON progress. */
|
|
557
|
-
export const createCheckpoint = /*@__PURE__*/ API.make(() => ({
|
|
558
|
-
input: CreateCheckpointRequest,
|
|
559
|
-
output: CreateCheckpointResponse,
|
|
560
|
-
errors: [NotFound],
|
|
561
|
-
protocol: SpritesProtocol,
|
|
562
|
-
retry: Retry.Retry,
|
|
563
|
-
}));
|
|
564
|
-
/** Create an API-key connector Create a connector from a user-provided API key for providers that support key validation. */
|
|
565
|
-
export const createOAuthApiKeyConnection = /*@__PURE__*/ API.make(() => ({
|
|
566
|
-
input: CreateOAuthApiKeyConnectionRequest,
|
|
567
|
-
output: ConnectionResponse,
|
|
568
|
-
errors: [BadRequest, SpritesNotEnabled],
|
|
569
|
-
protocol: SpritesProtocol,
|
|
570
|
-
retry: Retry.Retry,
|
|
571
|
-
}));
|
|
572
|
-
/** Mint a Sprites bearer token from a Fly.io macaroon POST with Authorization: FlyV1 {FLY_API_TOKEN}. Sprite CRUD rejects Bearer FLY_API_TOKEN (401); callers mint once, cache, then Bearer the returned token. 401 with 'sprites not enabled' means the org has not enabled Sprites. */
|
|
573
|
-
export const createOrganizationToken = /*@__PURE__*/ API.make(() => ({
|
|
574
|
-
input: CreateOrganizationTokenRequest,
|
|
575
|
-
output: CreateOrganizationTokenResponse,
|
|
576
|
-
errors: [SpritesNotEnabled],
|
|
577
|
-
protocol: SpritesProtocol,
|
|
578
|
-
retry: Retry.Retry,
|
|
579
|
-
}));
|
|
580
|
-
/** Create a sprite Create a new sprite with a unique name in your organization */
|
|
581
|
-
export const createSprite = /*@__PURE__*/ API.make(() => ({
|
|
582
|
-
input: CreateSpriteRequest,
|
|
583
|
-
output: SpriteResponse,
|
|
584
|
-
errors: [BadRequest, SpritesNotEnabled, Conflict],
|
|
585
|
-
protocol: SpritesProtocol,
|
|
586
|
-
retry: Retry.Retry,
|
|
587
|
-
}));
|
|
588
|
-
/** Delete File or Directory Delete a file or directory. */
|
|
589
|
-
export const deleteFile = /*@__PURE__*/ API.make(() => ({
|
|
590
|
-
input: DeleteFileRequest,
|
|
591
|
-
output: DeleteResponse,
|
|
592
|
-
errors: [BadRequest, NotFound],
|
|
593
|
-
protocol: SpritesProtocol,
|
|
594
|
-
retry: Retry.Retry,
|
|
595
|
-
}));
|
|
596
|
-
/** Delete a connector Delete a connector and its encrypted credentials. */
|
|
597
|
-
export const deleteOAuthConnection = /*@__PURE__*/ API.make(() => ({
|
|
598
|
-
input: DeleteOAuthConnectionRequest,
|
|
599
|
-
output: DeleteOAuthConnectionResponse,
|
|
600
|
-
errors: [SpritesNotEnabled, NotFound],
|
|
601
|
-
protocol: SpritesProtocol,
|
|
602
|
-
retry: Retry.Retry,
|
|
603
|
-
}));
|
|
604
|
-
/** Delete Privileges Policy Remove privileges policy to revert to default (unrestricted) behavior. */
|
|
605
|
-
export const deletePrivilegesPolicy = /*@__PURE__*/ API.make(() => ({
|
|
606
|
-
input: DeletePrivilegesPolicyRequest,
|
|
607
|
-
output: DeletePrivilegesPolicyResponse,
|
|
608
|
-
errors: [BadRequest, NotFound],
|
|
609
|
-
protocol: SpritesProtocol,
|
|
610
|
-
retry: Retry.Retry,
|
|
611
|
-
}));
|
|
612
|
-
/** Delete Resources Policy Remove resources policy to revert to default behavior. */
|
|
613
|
-
export const deleteResourcesPolicy = /*@__PURE__*/ API.make(() => ({
|
|
614
|
-
input: DeleteResourcesPolicyRequest,
|
|
615
|
-
output: DeleteResourcesPolicyResponse,
|
|
616
|
-
errors: [BadRequest, NotFound],
|
|
617
|
-
protocol: SpritesProtocol,
|
|
618
|
-
retry: Retry.Retry,
|
|
619
|
-
}));
|
|
620
|
-
/** Delete a sprite Delete a sprite and all associated resources */
|
|
621
|
-
export const deleteSprite = /*@__PURE__*/ API.make(() => ({
|
|
622
|
-
input: DeleteSpriteRequest,
|
|
623
|
-
output: DeleteSpriteResponse,
|
|
624
|
-
errors: [SpritesNotEnabled, NotFound],
|
|
625
|
-
protocol: SpritesProtocol,
|
|
626
|
-
retry: Retry.Retry,
|
|
627
|
-
}));
|
|
628
|
-
/** Execute Command Execute a command via simple HTTP POST (non-TTY only). Simpler alternative for exec for environments that can't handle websockets. */
|
|
629
|
-
export const execCommand = /*@__PURE__*/ API.make(() => ({
|
|
630
|
-
input: ExecCommandRequest,
|
|
631
|
-
output: ExecResult,
|
|
632
|
-
errors: [BadRequest, NotFound],
|
|
633
|
-
protocol: SpritesProtocol,
|
|
634
|
-
retry: Retry.Retry,
|
|
635
|
-
}));
|
|
636
|
-
/** Get Checkpoint Get details of a specific checkpoint. */
|
|
637
|
-
export const getCheckpoint = /*@__PURE__*/ API.make(() => ({
|
|
638
|
-
input: GetCheckpointRequest,
|
|
639
|
-
output: CheckpointInfo,
|
|
640
|
-
errors: [NotFound],
|
|
641
|
-
protocol: SpritesProtocol,
|
|
642
|
-
retry: Retry.Retry,
|
|
643
|
-
}));
|
|
644
|
-
/** Get Network Policy Get the current network policy configuration. */
|
|
645
|
-
export const getNetworkPolicy = /*@__PURE__*/ API.make(() => ({
|
|
646
|
-
input: GetNetworkPolicyRequest,
|
|
647
|
-
output: NetworkPolicyRequest,
|
|
648
|
-
errors: [NotFound],
|
|
649
|
-
protocol: SpritesProtocol,
|
|
650
|
-
retry: Retry.Retry,
|
|
651
|
-
}));
|
|
652
|
-
/** Get a connector Get a single connector by ID. */
|
|
653
|
-
export const getOAuthConnection = /*@__PURE__*/ API.make(() => ({
|
|
654
|
-
input: GetOAuthConnectionRequest,
|
|
655
|
-
output: ConnectionResponse,
|
|
656
|
-
errors: [SpritesNotEnabled, NotFound],
|
|
657
|
-
protocol: SpritesProtocol,
|
|
658
|
-
retry: Retry.Retry,
|
|
659
|
-
}));
|
|
660
|
-
/** Get Privileges Policy Get the current privileges policy configuration (capability and device restrictions). */
|
|
661
|
-
export const getPrivilegesPolicy = /*@__PURE__*/ API.make(() => ({
|
|
662
|
-
input: GetPrivilegesPolicyRequest,
|
|
663
|
-
output: GetPrivilegesPolicyResponse,
|
|
664
|
-
errors: [NotFound],
|
|
665
|
-
protocol: SpritesProtocol,
|
|
666
|
-
retry: Retry.Retry,
|
|
667
|
-
}));
|
|
668
|
-
/** Get Resources Policy Get the current resources policy configuration (memory limits). */
|
|
669
|
-
export const getResourcesPolicy = /*@__PURE__*/ API.make(() => ({
|
|
670
|
-
input: GetResourcesPolicyRequest,
|
|
671
|
-
output: GetResourcesPolicyResponse,
|
|
672
|
-
errors: [NotFound],
|
|
673
|
-
protocol: SpritesProtocol,
|
|
674
|
-
retry: Retry.Retry,
|
|
675
|
-
}));
|
|
676
|
-
/** Get Service Get details of a specific service. */
|
|
677
|
-
export const getService = /*@__PURE__*/ API.make(() => ({
|
|
678
|
-
input: GetServiceRequest,
|
|
679
|
-
output: ServiceResponse,
|
|
680
|
-
errors: [NotFound],
|
|
681
|
-
protocol: SpritesProtocol,
|
|
682
|
-
retry: Retry.Retry,
|
|
683
|
-
}));
|
|
684
|
-
/** Get Service Logs Stream logs for a service. */
|
|
685
|
-
export const getServiceLogs = /*@__PURE__*/ API.make(() => ({
|
|
686
|
-
input: GetServiceLogsRequest,
|
|
687
|
-
output: GetServiceLogsResponse,
|
|
688
|
-
errors: [NotFound],
|
|
689
|
-
protocol: SpritesProtocol,
|
|
690
|
-
retry: Retry.Retry,
|
|
691
|
-
}));
|
|
692
|
-
/** Get a sprite Get details for a specific sprite */
|
|
693
|
-
export const getSprite = /*@__PURE__*/ API.make(() => ({
|
|
694
|
-
input: GetSpriteRequest,
|
|
695
|
-
output: SpriteResponse,
|
|
696
|
-
errors: [SpritesNotEnabled, NotFound],
|
|
697
|
-
protocol: SpritesProtocol,
|
|
698
|
-
retry: Retry.Retry,
|
|
699
|
-
}));
|
|
700
|
-
/** Kill Exec Session Kill an exec session by session ID. Returns streaming NDJSON with kill progress. */
|
|
701
|
-
export const killExecSession = /*@__PURE__*/ API.make(() => ({
|
|
702
|
-
input: KillExecSessionRequest,
|
|
703
|
-
output: KillExecSessionResponse,
|
|
704
|
-
errors: [NotFound],
|
|
705
|
-
protocol: SpritesProtocol,
|
|
706
|
-
retry: Retry.Retry,
|
|
707
|
-
}));
|
|
708
|
-
/** List Checkpoints List all checkpoints. */
|
|
709
|
-
export const listCheckpoints = /*@__PURE__*/ API.make(() => ({
|
|
710
|
-
input: ListCheckpointsRequest,
|
|
711
|
-
output: ListCheckpointsResponse,
|
|
712
|
-
errors: [NotFound],
|
|
713
|
-
protocol: SpritesProtocol,
|
|
714
|
-
retry: Retry.Retry,
|
|
715
|
-
}));
|
|
716
|
-
/** List Directory List directory contents. */
|
|
717
|
-
export const listDirectory = /*@__PURE__*/ API.make(() => ({
|
|
718
|
-
input: ListDirectoryRequest,
|
|
719
|
-
output: ListResponse,
|
|
720
|
-
errors: [NotFound],
|
|
721
|
-
protocol: SpritesProtocol,
|
|
722
|
-
retry: Retry.Retry,
|
|
723
|
-
}));
|
|
724
|
-
/** List Exec Sessions List active exec sessions. */
|
|
725
|
-
export const listExecSessions = /*@__PURE__*/ API.make(() => ({
|
|
726
|
-
input: ListExecSessionsRequest,
|
|
727
|
-
output: ListExecSessionsResponse,
|
|
728
|
-
errors: [NotFound],
|
|
729
|
-
protocol: SpritesProtocol,
|
|
730
|
-
retry: Retry.Retry,
|
|
731
|
-
}));
|
|
732
|
-
/** List connectors List connectors configured for the authenticated organization. */
|
|
733
|
-
export const listOAuthConnections = /*@__PURE__*/ API.make(() => ({
|
|
734
|
-
input: ListOAuthConnectionsRequest,
|
|
735
|
-
output: ConnectionListResponse,
|
|
736
|
-
errors: [SpritesNotEnabled],
|
|
737
|
-
protocol: SpritesProtocol,
|
|
738
|
-
retry: Retry.Retry,
|
|
739
|
-
}));
|
|
740
|
-
/** List Services List all configured services and their current state. */
|
|
741
|
-
export const listServices = /*@__PURE__*/ API.make(() => ({
|
|
742
|
-
input: ListServicesRequest,
|
|
743
|
-
output: ListServicesResponse,
|
|
744
|
-
errors: [NotFound],
|
|
745
|
-
protocol: SpritesProtocol,
|
|
746
|
-
retry: Retry.Retry,
|
|
747
|
-
}));
|
|
748
|
-
/** List sprites List all sprites for the authenticated organization */
|
|
749
|
-
export const listSprites = /*@__PURE__*/ API.makePaginated(() => ({
|
|
750
|
-
input: ListSpritesRequest,
|
|
751
|
-
output: SpriteListResponse,
|
|
752
|
-
errors: [SpritesNotEnabled],
|
|
753
|
-
protocol: SpritesProtocol,
|
|
754
|
-
retry: Retry.Retry,
|
|
755
|
-
pagination: {
|
|
756
|
-
inputToken: "continuation_token",
|
|
757
|
-
outputToken: "next_continuation_token",
|
|
758
|
-
items: "sprites",
|
|
759
|
-
pageSize: "max_results",
|
|
760
|
-
mode: "cursor",
|
|
761
|
-
},
|
|
762
|
-
}), paginateCursor);
|
|
763
|
-
/** Complete OAuth authorization Exchange an OAuth authorization code for an encrypted connector. */
|
|
764
|
-
export const oauthConnectionCallback = /*@__PURE__*/ API.make(() => ({
|
|
765
|
-
input: OauthConnectionCallbackRequest,
|
|
766
|
-
output: ConnectionResponse,
|
|
767
|
-
errors: [BadRequest, SpritesNotEnabled],
|
|
768
|
-
protocol: SpritesProtocol,
|
|
769
|
-
retry: Retry.Retry,
|
|
770
|
-
}));
|
|
771
|
-
/** Update a connector Update a connector access policy. */
|
|
772
|
-
export const patchOAuthConnection = /*@__PURE__*/ API.make(() => ({
|
|
773
|
-
input: PatchOAuthConnectionRequest,
|
|
774
|
-
output: ConnectionResponse,
|
|
775
|
-
errors: [BadRequest, SpritesNotEnabled, NotFound],
|
|
776
|
-
protocol: SpritesProtocol,
|
|
777
|
-
retry: Retry.Retry,
|
|
778
|
-
}));
|
|
779
|
-
/** Provision a connector Provision a system-managed connector for providers that support platform-managed keys. */
|
|
780
|
-
export const provisionOAuthConnection = /*@__PURE__*/ API.make(() => ({
|
|
781
|
-
input: ProvisionOAuthConnectionRequest,
|
|
782
|
-
output: ConnectionResponse,
|
|
783
|
-
errors: [BadRequest, SpritesNotEnabled],
|
|
784
|
-
protocol: SpritesProtocol,
|
|
785
|
-
retry: Retry.Retry,
|
|
786
|
-
}));
|
|
787
|
-
/** Create Service Create or update a service definition. */
|
|
788
|
-
export const putService = /*@__PURE__*/ API.make(() => ({
|
|
789
|
-
input: PutServiceRequest,
|
|
790
|
-
output: ServiceResponse,
|
|
791
|
-
errors: [BadRequest, NotFound],
|
|
792
|
-
protocol: SpritesProtocol,
|
|
793
|
-
retry: Retry.Retry,
|
|
794
|
-
}));
|
|
795
|
-
/** Read File Read file contents from the sprite filesystem. Returns raw file bytes. */
|
|
796
|
-
export const readFile = /*@__PURE__*/ API.make(() => ({
|
|
797
|
-
input: ReadFileRequest,
|
|
798
|
-
output: ReadFileResponse,
|
|
799
|
-
errors: [NotFound],
|
|
800
|
-
protocol: SpritesProtocol,
|
|
801
|
-
retry: Retry.Retry,
|
|
802
|
-
}));
|
|
803
|
-
/** Rename File or Directory Rename or move a file or directory. */
|
|
804
|
-
export const renameFile = /*@__PURE__*/ API.make(() => ({
|
|
805
|
-
input: RenameFileRequest,
|
|
806
|
-
output: RenameResponse,
|
|
807
|
-
errors: [BadRequest, NotFound],
|
|
808
|
-
protocol: SpritesProtocol,
|
|
809
|
-
retry: Retry.Retry,
|
|
810
|
-
}));
|
|
811
|
-
/** Restart Service Restart a service (stop if running, then start). Returns streaming NDJSON with stop and start progress. */
|
|
812
|
-
export const restartService = /*@__PURE__*/ API.make(() => ({
|
|
813
|
-
input: RestartServiceRequest,
|
|
814
|
-
output: RestartServiceResponse,
|
|
815
|
-
errors: [NotFound],
|
|
816
|
-
protocol: SpritesProtocol,
|
|
817
|
-
retry: Retry.Retry,
|
|
818
|
-
}));
|
|
819
|
-
/** Restore Checkpoint Restore to a specific checkpoint. Returns streaming NDJSON progress. */
|
|
820
|
-
export const restoreCheckpoint = /*@__PURE__*/ API.make(() => ({
|
|
821
|
-
input: RestoreCheckpointRequest,
|
|
822
|
-
output: RestoreCheckpointResponse,
|
|
823
|
-
errors: [NotFound],
|
|
824
|
-
protocol: SpritesProtocol,
|
|
825
|
-
retry: Retry.Retry,
|
|
826
|
-
}));
|
|
827
|
-
/** Set Network Policy Update the network policy configuration. */
|
|
828
|
-
export const setNetworkPolicy = /*@__PURE__*/ API.make(() => ({
|
|
829
|
-
input: SetNetworkPolicyRequest,
|
|
830
|
-
output: SetNetworkPolicyResponse,
|
|
831
|
-
errors: [BadRequest, NotFound],
|
|
832
|
-
protocol: SpritesProtocol,
|
|
833
|
-
retry: Retry.Retry,
|
|
834
|
-
}));
|
|
835
|
-
/** Set Privileges Policy Update the privileges policy configuration to restrict capabilities or devices. */
|
|
836
|
-
export const setPrivilegesPolicy = /*@__PURE__*/ API.make(() => ({
|
|
837
|
-
input: SetPrivilegesPolicyRequest,
|
|
838
|
-
output: SetPrivilegesPolicyResponse,
|
|
839
|
-
errors: [BadRequest, NotFound],
|
|
840
|
-
protocol: SpritesProtocol,
|
|
841
|
-
retry: Retry.Retry,
|
|
842
|
-
}));
|
|
843
|
-
/** Set Resources Policy Update the resources policy configuration to set memory limits. */
|
|
844
|
-
export const setResourcesPolicy = /*@__PURE__*/ API.make(() => ({
|
|
845
|
-
input: SetResourcesPolicyRequest,
|
|
846
|
-
output: SetResourcesPolicyResponse,
|
|
847
|
-
errors: [BadRequest, NotFound],
|
|
848
|
-
protocol: SpritesProtocol,
|
|
849
|
-
retry: Retry.Retry,
|
|
850
|
-
}));
|
|
851
|
-
/** Start Service Start a service. Returns streaming NDJSON with stdout/stderr. */
|
|
852
|
-
export const startService = /*@__PURE__*/ API.make(() => ({
|
|
853
|
-
input: StartServiceRequest,
|
|
854
|
-
output: StartServiceResponse,
|
|
855
|
-
errors: [NotFound],
|
|
856
|
-
protocol: SpritesProtocol,
|
|
857
|
-
retry: Retry.Retry,
|
|
858
|
-
}));
|
|
859
|
-
/** Stop Service Stop a running service. Returns streaming NDJSON with service stop progress. */
|
|
860
|
-
export const stopService = /*@__PURE__*/ API.make(() => ({
|
|
861
|
-
input: StopServiceRequest,
|
|
862
|
-
output: StopServiceResponse,
|
|
863
|
-
errors: [NotFound],
|
|
864
|
-
protocol: SpritesProtocol,
|
|
865
|
-
retry: Retry.Retry,
|
|
866
|
-
}));
|
|
867
|
-
/** Update a connector Update a connector access policy. */
|
|
868
|
-
export const updateOAuthConnection = /*@__PURE__*/ API.make(() => ({
|
|
869
|
-
input: UpdateOAuthConnectionRequest,
|
|
870
|
-
output: ConnectionResponse,
|
|
871
|
-
errors: [BadRequest, SpritesNotEnabled, NotFound],
|
|
872
|
-
protocol: SpritesProtocol,
|
|
873
|
-
retry: Retry.Retry,
|
|
874
|
-
}));
|
|
875
|
-
/** Update a sprite Update sprite settings such as URL authentication */
|
|
876
|
-
export const updateSprite = /*@__PURE__*/ API.make(() => ({
|
|
877
|
-
input: UpdateSpriteRequest,
|
|
878
|
-
output: SpriteResponse,
|
|
879
|
-
errors: [BadRequest, SpritesNotEnabled, NotFound],
|
|
880
|
-
protocol: SpritesProtocol,
|
|
881
|
-
retry: Retry.Retry,
|
|
882
|
-
}));
|
|
883
|
-
/** Write File Write file contents to the sprite filesystem. Request body contains raw file bytes. */
|
|
884
|
-
export const writeFile = /*@__PURE__*/ API.make(() => ({
|
|
885
|
-
input: WriteFileRequest,
|
|
886
|
-
output: WriteResponse,
|
|
887
|
-
errors: [BadRequest, NotFound],
|
|
888
|
-
protocol: SpritesProtocol,
|
|
889
|
-
retry: Retry.Retry,
|
|
890
|
-
}));
|
|
891
|
-
//# sourceMappingURL=sprites.js.map
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = T.Query;
|
|
15
|
+
const __5 = S.optional;
|
|
16
|
+
const __6 = S.Struct;
|
|
17
|
+
const __7 = S.suspend;
|
|
18
|
+
const __8 = S.Boolean;
|
|
19
|
+
const __9 = S.Array;
|
|
20
|
+
const __10 = S.Number;
|
|
21
|
+
const __11 = T.HttpBody;
|
|
22
|
+
const __12 = S.NullOr;
|
|
23
|
+
const __13 = S.Unknown;
|
|
24
|
+
const __14 = T.RawResponseRoot;
|
|
25
|
+
const __15 = T.SensitiveValue;
|
|
26
|
+
|
|
27
|
+
export const authorizeOAuthConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$7(>3)@"AuthorizeOAuthConnectionRequest";$7(>4)@"OAuthAuthorizeResponse";$6({provider:$3.pipe($2()),scopes:$5($3.pipe($4())),add_scopes:$5($3.pipe($4())),redirect_uri:$5($3.pipe($4())),state:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/oauth/{provider}/authorize",code:200}));$6({authorize_url:$3,state:$3})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, SpritesNotEnabled, SpritesProtocol, Retry.Retry]] : API.call(authorizeOAuthConnection, i));
|
|
28
|
+
|
|
29
|
+
export const changeFileMode = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$9,$10],protocol:$11,retry:$12};$6(>5)@"ChangeFileModeRequest";$6(>6)@"ChmodResult";$7(#2);$6(>7)@"ChmodResponse";$5({name:$3.pipe($2()),asRoot:$4,mode:$3,path:$3,recursive:$4,workingDir:$3}).pipe($1({method:"POST",uri:"/sprites/{name}/fs/chmod",code:200}));$5({mode:$3,path:$3});$5({affected:#3,count:$8})', [__0, __1, __2, __3, __8, __6, __7, __9, __10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(changeFileMode, i));
|
|
30
|
+
|
|
31
|
+
export const changeFileOwner = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$7(>5)@"ChangeFileOwnerRequest";$7(>6)@"ChownResult";$9(#2);$7(>7)@"ChownResponse";$6({name:$3.pipe($2()),asRoot:$4,gid:$5,path:$3,recursive:$4,uid:$5,workingDir:$3}).pipe($1({method:"POST",uri:"/sprites/{name}/fs/chown",code:200}));$6({gid:$8,path:$3,uid:$8});$6({affected:#3,count:$8})', [__0, __1, __2, __3, __8, __13, __6, __7, __10, __9, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(changeFileOwner, i));
|
|
32
|
+
|
|
33
|
+
export const copyFile = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11],protocol:$12,retry:$13};$6(>4)@"CopyFileRequest";$8(#7:0);$6(>5)@"CopyResponse";$5({name:$3.pipe($2()),asRoot:$4,dest:$3,preserveAttrs:$4,recursive:$4,source:$3,workingDir:$3}).pipe($1({method:"POST",uri:"/sprites/{name}/fs/copy",code:200}));$5({copied:#2,count:$9,totalBytes:$9})', [__0, __1, __2, __3, __8, __6, __7, __d3, __9, __10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(copyFile, i));
|
|
34
|
+
|
|
35
|
+
export const createCheckpoint = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:2,errors:[$8],protocol:$9,retry:$10};$6(>2)@"CreateCheckpointRequest";$5({name:$3.pipe($2()),comment:$4($3)}).pipe($1({method:"POST",uri:"/sprites/{name}/checkpoint",code:200}))', [__0, __1, __2, __3, __5, __6, __7, __d4, NotFound, SpritesProtocol, Retry.Retry]] : API.call(createCheckpoint, i));
|
|
36
|
+
|
|
37
|
+
export const createOAuthApiKeyConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"CreateOAuthApiKeyConnectionRequest";$6({access_policy:$3(#2:0),api_key:$5.pipe($4({})),base_api_url:$3($5),provider:$5}).pipe($1({method:"POST",uri:"/oauth/connections/api_key",code:200}))', [__0, __1, __d5, __5, __15, __3, __6, __7, __d6, BadRequest, SpritesNotEnabled, SpritesProtocol, Retry.Retry]] : API.call(createOAuthApiKeyConnection, i));
|
|
38
|
+
|
|
39
|
+
export const createOrganizationToken = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8],protocol:$9,retry:$10};$6(>3)@"CreateOrganizationTokenRequest";$6(>4)@"CreateOrganizationTokenResponse";$5({org:$3.pipe($2()),description:$4($3),invite_code:$4($3)}).pipe($1({method:"POST",uri:"/organizations/{org}/tokens",code:200}));$5({token:$3.pipe($7({}))})', [__0, __1, __2, __3, __5, __6, __7, __15, SpritesNotEnabled, SpritesProtocol, Retry.Retry]] : API.call(createOrganizationToken, i));
|
|
40
|
+
|
|
41
|
+
export const createSprite = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:1,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateSpriteRequest";$6({name:$2,url_settings:$4(#3:0),labels:$4(#5:0)}).pipe($1({method:"POST",uri:"/sprites",code:200}))', [__0, __1, __3, __d9, __5, __d7, __6, __7, __d8, BadRequest, SpritesNotEnabled, Conflict, SpritesProtocol, Retry.Retry]] : API.call(createSprite, i));
|
|
42
|
+
|
|
43
|
+
export const deleteFile = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10],protocol:$11,retry:$12};$6(>3)@"DeleteFileRequest";$6(>4)@"DeleteResponse";$5({name:$3.pipe($2()),asRoot:$4,path:$3,recursive:$4,workingDir:$3}).pipe($1({method:"DELETE",uri:"/sprites/{name}/fs/delete",code:200}));$5({count:$7,deleted:#8:0})', [__0, __1, __2, __3, __8, __6, __7, __10, __d7, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(deleteFile, i));
|
|
44
|
+
|
|
45
|
+
export const deleteOAuthConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteOAuthConnectionRequest";$4({id:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/oauth/connections/{id}",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, SpritesNotEnabled, NotFound, SpritesProtocol, Retry.Retry]] : API.call(deleteOAuthConnection, i));
|
|
46
|
+
|
|
47
|
+
export const deletePrivilegesPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeletePrivilegesPolicyRequest";$4({name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/sprites/{name}/policy/privileges",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(deletePrivilegesPolicy, i));
|
|
48
|
+
|
|
49
|
+
export const deleteResourcesPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteResourcesPolicyRequest";$4({name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/sprites/{name}/policy/resources",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(deleteResourcesPolicy, i));
|
|
50
|
+
|
|
51
|
+
export const deleteSprite = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteSpriteRequest";$4({name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/sprites/{name}",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, SpritesNotEnabled, NotFound, SpritesProtocol, Retry.Retry]] : API.call(deleteSprite, i));
|
|
52
|
+
|
|
53
|
+
export const execCommand = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$12,$13],protocol:$14,retry:$15};$10(>3)@"ExecCommandRequest";$10(>4)@"ExecResult";$9({name:$3.pipe($2()),cmd:#5:0.pipe($4()),path:$6($3.pipe($4())),stdin:$6($7.pipe($4())),env:$6(#5:0.pipe($4())),dir:$6($3.pipe($4())),body:$6($3.pipe($8()))}).pipe($1({method:"POST",uri:"/sprites/{name}/exec",code:200,bodyMediaType:"application/octet-stream"}));$9({exit_code:$6($11),stdout:$6($3),stderr:$6($3)})', [__0, __1, __2, __3, __4, __d7, __5, __8, __11, __6, __7, __10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(execCommand, i));
|
|
54
|
+
|
|
55
|
+
export const getCheckpoint = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetCheckpointRequest";$4({name:$3.pipe($2()),checkpoint_id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/checkpoints/{checkpoint_id}",code:200}))', [__0, __1, __2, __3, __6, __7, __d0, NotFound, SpritesProtocol, Retry.Retry]] : API.call(getCheckpoint, i));
|
|
56
|
+
|
|
57
|
+
export const getNetworkPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("NetworkPolicyRequest", '{input:#1,output:#2,errors:[$7],protocol:$8,retry:$9};$5(>3)@"Get%";$5(>4)@"%";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/policy/network",code:200}));$4({rules:#6:1})', [__0, __1, __2, __3, __6, __7, __d1, NotFound, SpritesProtocol, Retry.Retry]) : API.call(getNetworkPolicy, i));
|
|
58
|
+
|
|
59
|
+
export const getOAuthConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetOAuthConnectionRequest";$4({id:$3.pipe($2())}).pipe($1({method:"GET",uri:"/oauth/connections/{id}",code:200}))', [__0, __1, __2, __3, __6, __7, __d6, SpritesNotEnabled, NotFound, SpritesProtocol, Retry.Retry]] : API.call(getOAuthConnection, i));
|
|
60
|
+
|
|
61
|
+
export const getPrivilegesPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetPrivilegesPolicyRequest";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/policy/privileges",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(getPrivilegesPolicy, i));
|
|
62
|
+
|
|
63
|
+
export const getResourcesPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetResourcesPolicyRequest";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/policy/resources",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(getResourcesPolicy, i));
|
|
64
|
+
|
|
65
|
+
export const getService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7],protocol:$8,retry:$9};$5(>2)@"GetServiceRequest";$4({name:$3.pipe($2()),service_name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/services/{service_name}",code:200}))', [__0, __1, __2, __3, __6, __7, __d2, NotFound, SpritesProtocol, Retry.Retry]] : API.call(getService, i));
|
|
66
|
+
|
|
67
|
+
export const getServiceLogs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"GetServiceLogsRequest";$7({name:$3.pipe($2()),service_name:$3.pipe($2()),lines:$6($5.pipe($4())),duration:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/sprites/{name}/services/{service_name}/logs",code:200}))', [__0, __1, __2, __3, __4, __10, __5, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(getServiceLogs, i));
|
|
68
|
+
|
|
69
|
+
export const getSprite = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:1,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetSpriteRequest";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}",code:200}))', [__0, __1, __2, __3, __6, __7, __d8, SpritesNotEnabled, NotFound, SpritesProtocol, Retry.Retry]] : API.call(getSprite, i));
|
|
70
|
+
|
|
71
|
+
export const killExecSession = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"KillExecSessionRequest";$7({name:$3.pipe($2()),session_id:$3.pipe($2()),signal:$5($3.pipe($4())),timeout:$5($6.pipe($4()))}).pipe($1({method:"POST",uri:"/sprites/{name}/exec/{session_id}/kill",code:200}))', [__0, __1, __2, __3, __4, __5, __10, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(killExecSession, i));
|
|
72
|
+
|
|
73
|
+
export const listCheckpoints = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$5(>4)@"ListCheckpointsRequest";$7(#6:0);$5(>5)@"ListCheckpointsResponse";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/checkpoints",code:200}));#2.pipe($8())', [__0, __1, __2, __3, __6, __7, __d0, __9, __14, NotFound, SpritesProtocol, Retry.Retry]] : API.call(listCheckpoints, i));
|
|
74
|
+
|
|
75
|
+
export const listDirectory = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10],protocol:$11,retry:$12};$6(>5)@"ListDirectoryRequest";$6(>6)@"Entry";$9(#2);$6(>7)@"ListResponse";$5({name:$3.pipe($2()),path:$3.pipe($4()),workingDir:$3.pipe($4())}).pipe($1({method:"GET",uri:"/sprites/{name}/fs/list",code:200}));$5({isDir:$7,modTime:$3,mode:$3,name:$3,path:$3,size:$8,type:$3});$5({count:$8,entries:#3,path:$3})', [__0, __1, __2, __3, __4, __6, __7, __8, __10, __9, NotFound, SpritesProtocol, Retry.Retry]] : API.call(listDirectory, i));
|
|
76
|
+
|
|
77
|
+
export const listExecSessions = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7],protocol:$8,retry:$9};$5(>2)@"ListExecSessionsRequest";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/exec",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(listExecSessions, i));
|
|
78
|
+
|
|
79
|
+
export const listOAuthConnections = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$6(>4)@"ListOAuthConnectionsRequest";$8(#7:2);$6(>5)@"ConnectionListResponse";$5({provider:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/oauth/connections",code:200}));$5({connections:#2})', [__0, __1, __4, __3, __5, __6, __7, __d5, __9, SpritesNotEnabled, SpritesProtocol, Retry.Retry]] : API.call(listOAuthConnections, i));
|
|
80
|
+
|
|
81
|
+
export const listServices = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9],protocol:$10,retry:$11};$5(>4)@"ListServicesRequest";$7(#6:1);$5(>5)@"ListServicesResponse";$4({name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/sprites/{name}/services",code:200}));#2.pipe($8())', [__0, __1, __2, __3, __6, __7, __d2, __9, __14, NotFound, SpritesProtocol, Retry.Retry]] : API.call(listServices, i));
|
|
82
|
+
|
|
83
|
+
export const listSprites = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("continuation_token", '{input:#1,output:#3,errors:[$12],protocol:$13,retry:$14,pagination:{inputToken:"%",outputToken:"next_%",items:"sprites",pageSize:"max_results",mode:"cursor"},strategy:$15};$7(>4)@"ListSpritesRequest";$9(#8:1);$7(>5)@"SpriteListResponse";$6({prefix:$4($3.pipe($2())),max_results:$4($5.pipe($2())),continuation_token:$4($3.pipe($2()))}).pipe($1({method:"GET",uri:"/sprites",code:200}));$6({cold:$5,has_more:$10,name:$3,next_continuation_token:$4($11($3)),running:$5,running_limit:$4($5),sprites:#2,warm:$5,warm_limit:$4($5)})', [__0, __1, __4, __3, __5, __10, __6, __7, __d8, __9, __8, __12, SpritesNotEnabled, SpritesProtocol, Retry.Retry, paginateCursor]) : API.call(listSprites, i));
|
|
84
|
+
|
|
85
|
+
export const oauthConnectionCallback = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10],protocol:$11,retry:$12};$7(>2)@"OauthConnectionCallbackRequest";$6({provider:$3.pipe($2()),access_policy:$5(#4:0),code:$3,redirect_uri:$5($3),state:$5($3)}).pipe($1({method:"POST",uri:"/oauth/{provider}/callback",code:200}))', [__0, __1, __2, __3, __d5, __5, __6, __7, __d6, BadRequest, SpritesNotEnabled, SpritesProtocol, Retry.Retry]] : API.call(oauthConnectionCallback, i));
|
|
86
|
+
|
|
87
|
+
export const patchOAuthConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"PatchOAuthConnectionRequest";$5({id:$3.pipe($2()),access_policy:#4:0}).pipe($1({method:"PATCH",uri:"/oauth/connections/{id}",code:200}))', [__0, __1, __2, __3, __d5, __6, __7, __d6, BadRequest, SpritesNotEnabled, NotFound, SpritesProtocol, Retry.Retry]] : API.call(patchOAuthConnection, i));
|
|
88
|
+
|
|
89
|
+
export const provisionOAuthConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:0,errors:[$6,$7],protocol:$8,retry:$9};$4(>2)@"ProvisionOAuthConnectionRequest";$3({provider:$2}).pipe($1({method:"POST",uri:"/oauth/connections/provision",code:200}))', [__0, __1, __3, __6, __7, __d6, BadRequest, SpritesNotEnabled, SpritesProtocol, Retry.Retry]] : API.call(provisionOAuthConnection, i));
|
|
90
|
+
|
|
91
|
+
export const putService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#12:1,errors:[$13,$14],protocol:$15,retry:$16};$11(>2)@"PutServiceRequest";$10({name:$3.pipe($2()),service_name:$3.pipe($2()),duration:$6($5.pipe($4())),args:$6(#7:0),cmd:$3,dir:$6($3),env:$6($8),http_port:$6($9($5)),needs:$6(#7:0)}).pipe($1({method:"PUT",uri:"/sprites/{name}/services/{service_name}",code:200}))', [__0, __1, __2, __3, __4, __10, __5, __d7, __13, __12, __6, __7, __d2, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(putService, i));
|
|
92
|
+
|
|
93
|
+
export const readFile = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8],protocol:$9,retry:$10};$6(>2)@"ReadFileRequest";$5({name:$3.pipe($2()),path:$3.pipe($4()),workingDir:$3.pipe($4())}).pipe($1({method:"GET",uri:"/sprites/{name}/fs/read",code:200}))', [__0, __1, __2, __3, __4, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(readFile, i));
|
|
94
|
+
|
|
95
|
+
export const renameFile = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"RenameFileRequest";$5({name:$3.pipe($2()),asRoot:$4,dest:$3,source:$3,workingDir:$3}).pipe($1({method:"POST",uri:"/sprites/{name}/fs/rename",code:200}))', [__0, __1, __2, __3, __8, __6, __7, __d3, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(renameFile, i));
|
|
96
|
+
|
|
97
|
+
export const restartService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"RestartServiceRequest";$7({name:$3.pipe($2()),service_name:$3.pipe($2()),duration:$6($5.pipe($4()))}).pipe($1({method:"POST",uri:"/sprites/{name}/services/{service_name}/restart",code:200}))', [__0, __1, __2, __3, __4, __10, __5, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(restartService, i));
|
|
98
|
+
|
|
99
|
+
export const restoreCheckpoint = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7],protocol:$8,retry:$9};$5(>2)@"RestoreCheckpointRequest";$4({name:$3.pipe($2()),checkpoint_id:$3.pipe($2())}).pipe($1({method:"POST",uri:"/sprites/{name}/checkpoints/{checkpoint_id}/restore",code:200}))', [__0, __1, __2, __3, __6, __7, __d4, NotFound, SpritesProtocol, Retry.Retry]] : API.call(restoreCheckpoint, i));
|
|
100
|
+
|
|
101
|
+
export const setNetworkPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9],protocol:$10,retry:$11};$6(>2)@"SetNetworkPolicyRequest";$5({name:$3.pipe($2()),rules:#4:1}).pipe($1({method:"POST",uri:"/sprites/{name}/policy/network",code:200}))', [__0, __1, __2, __3, __d1, __6, __7, __d10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(setNetworkPolicy, i));
|
|
102
|
+
|
|
103
|
+
export const setPrivilegesPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"SetPrivilegesPolicyRequest";$4({name:$3.pipe($2())}).pipe($1({method:"POST",uri:"/sprites/{name}/policy/privileges",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(setPrivilegesPolicy, i));
|
|
104
|
+
|
|
105
|
+
export const setResourcesPolicy = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"SetResourcesPolicyRequest";$4({name:$3.pipe($2())}).pipe($1({method:"POST",uri:"/sprites/{name}/policy/resources",code:200}))', [__0, __1, __2, __3, __6, __7, __d10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(setResourcesPolicy, i));
|
|
106
|
+
|
|
107
|
+
export const startService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"StartServiceRequest";$7({name:$3.pipe($2()),service_name:$3.pipe($2()),duration:$6($5.pipe($4()))}).pipe($1({method:"POST",uri:"/sprites/{name}/services/{service_name}/start",code:200}))', [__0, __1, __2, __3, __4, __10, __5, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(startService, i));
|
|
108
|
+
|
|
109
|
+
export const stopService = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10],protocol:$11,retry:$12};$8(>2)@"StopServiceRequest";$7({name:$3.pipe($2()),service_name:$3.pipe($2()),timeout:$6($5.pipe($4()))}).pipe($1({method:"POST",uri:"/sprites/{name}/services/{service_name}/stop",code:200}))', [__0, __1, __2, __3, __4, __10, __5, __6, __7, __d10, NotFound, SpritesProtocol, Retry.Retry]] : API.call(stopService, i));
|
|
110
|
+
|
|
111
|
+
export const updateOAuthConnection = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"UpdateOAuthConnectionRequest";$5({id:$3.pipe($2()),access_policy:#4:0}).pipe($1({method:"PUT",uri:"/oauth/connections/{id}",code:200}))', [__0, __1, __2, __3, __d5, __6, __7, __d6, BadRequest, SpritesNotEnabled, NotFound, SpritesProtocol, Retry.Retry]] : API.call(updateOAuthConnection, i));
|
|
112
|
+
|
|
113
|
+
export const updateSprite = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:1,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"UpdateSpriteRequest";$5({name:$3.pipe($2()),url_settings:#4:0}).pipe($1({method:"PUT",uri:"/sprites/{name}",code:200}))', [__0, __1, __2, __3, __d9, __6, __7, __d8, BadRequest, SpritesNotEnabled, NotFound, SpritesProtocol, Retry.Retry]] : API.call(updateSprite, i));
|
|
114
|
+
|
|
115
|
+
export const writeFile = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$11,$12],protocol:$13,retry:$14};$9(>3)@"WriteFileRequest";$9(>4)@"WriteResponse";$8({name:$3.pipe($2()),path:$3.pipe($4()),workingDir:$3.pipe($4()),mode:$5($3.pipe($4())),mkdir:$5($6.pipe($4())),body:$3.pipe($7())}).pipe($1({method:"PUT",uri:"/sprites/{name}/fs/write",code:200,bodyMediaType:"application/octet-stream"}));$8({mode:$3,path:$3,size:$10})', [__0, __1, __2, __3, __4, __5, __8, __11, __6, __7, __10, BadRequest, NotFound, SpritesProtocol, Retry.Retry]] : API.call(writeFile, i));
|
|
116
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
117
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
// Shared schema data (see `op` in core/api).
|
|
121
|
+
function __d0() {
|
|
122
|
+
return ['$4(>1)@"CheckpointInfo";$3({comment:$2($1),create_time:$1,health:$2($1),id:$1,source_id:$2($1)})', [__0, __3, __5, __6, __7]];
|
|
123
|
+
}
|
|
124
|
+
function __d1() {
|
|
125
|
+
return ['$4(>2)@"NetworkPolicyRule";$5(#0);$3({action:$2($1),domain:$2($1),include:$2($1)})', [__0, __3, __5, __6, __7, __9]];
|
|
126
|
+
}
|
|
127
|
+
function __d2() {
|
|
128
|
+
return ['$5(>2)@"ServiceState";$5(>3)@"ServiceResponse";$4({error:$2($1),name:$1,pid:$2($3),started_at:$2($1),status:$1});$4({args:#6:0,cmd:$1,http_port:$2($7($3)),name:$1,needs:#6:0,state:$2($7(#0))})', [__0, __3, __5, __10, __6, __7, __d7, __12]];
|
|
129
|
+
}
|
|
130
|
+
function __d3() {
|
|
131
|
+
return ['$3(>1)@"CopyResult";$2({dest:$1,source:$1})', [__0, __3, __6, __7]];
|
|
132
|
+
}
|
|
133
|
+
function __d4() {
|
|
134
|
+
return ['$4(>3)@"StreamEvent";$5(#0);$4(>4)@"CreateCheckpointResponse";$3({type:$2($1),data:$2($1),error:$2($1),time:$2($1)});#1.pipe($6())', [__0, __3, __5, __6, __7, __9, __14]];
|
|
135
|
+
}
|
|
136
|
+
function __d5() {
|
|
137
|
+
return ['$6(>3)@"AccessPolicy";$8($7);$6(>4)@"Connection";$5({allow_all:$2($1),allowed_endpoints:$2(#3:0),blocked_endpoints:$2(#3:0),name_prefix:$2($4),sprite_labels:$2(#3:0)});$5({access_policy:$2(#0),connection_type:$2($4),id:$4,inserted_at:$2($4),notes:$2(#1),provider:$4,provider_account_id:$4,provider_account_name:$2($4),provider_info:$2($7),scopes:$2($4),token_expires_at:$2($4),updated_at:$2($4),usage_snippet:$2($4),user_id:$2($4)})', [__0, __8, __5, __d7, __3, __6, __7, __13, __9]];
|
|
138
|
+
}
|
|
139
|
+
function __d6() {
|
|
140
|
+
return ['$3(>1)@"ConnectionResponse";$2({connection:#1:2})', [__0, __d5, __6, __7]];
|
|
141
|
+
}
|
|
142
|
+
function __d7() {
|
|
143
|
+
return ['$2($1)', [__0, __3, __9]];
|
|
144
|
+
}
|
|
145
|
+
function __d8() {
|
|
146
|
+
return ['$4(>2)@"UrlSettings";$4(>3)@"SpriteResponse";$3({auth:$1,private_access:$2($1)});$3({created_at:$1,environment_version:$2($5($1)),id:$1,labels:$2(#6:0),last_running_at:$2($5($1)),last_warming_at:$2($5($1)),name:$1,organization:$1,status:$1,updated_at:$1,url:$1,url_settings:$2($5(#0)),version:$2($5($1))})', [__0, __3, __5, __6, __7, __12, __d7]];
|
|
147
|
+
}
|
|
148
|
+
function __d9() {
|
|
149
|
+
return ['$4(>1)@"UrlSettingsRequest";$3({auth:$2($1)})', [__0, __3, __5, __6, __7]];
|
|
150
|
+
}
|
|
151
|
+
function __d10() {
|
|
152
|
+
return ['$2(>1)@"DeleteOAuthConnectionResponse";$1({})', [__0, __6, __7]];
|
|
153
|
+
}
|