@lilbox/client 0.0.0-stage → 0.0.1
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/LICENSE +21 -0
- package/README.md +28 -2
- package/dist/index.d.ts +28 -0
- package/dist/index.js +42 -0
- package/dist/openapi.d.ts +2340 -0
- package/dist/openapi.js +5 -0
- package/package.json +26 -4
|
@@ -0,0 +1,2340 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export interface paths {
|
|
6
|
+
"/v1/whoami": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Who am I
|
|
15
|
+
* @description Returns the signed-in user and this credential's scopes. Call it first in a session to know what you're allowed to do. For the plan and trial, use get_subscription.
|
|
16
|
+
*/
|
|
17
|
+
get: operations["whoami"];
|
|
18
|
+
put?: never;
|
|
19
|
+
post?: never;
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
"/v1/account/agents": {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* List connected agents
|
|
35
|
+
* @description Lists the MCP clients and CLIs connected to the account, with their scopes and last use.
|
|
36
|
+
*/
|
|
37
|
+
get: operations["list_connected_agents"];
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
delete?: never;
|
|
41
|
+
options?: never;
|
|
42
|
+
head?: never;
|
|
43
|
+
patch?: never;
|
|
44
|
+
trace?: never;
|
|
45
|
+
};
|
|
46
|
+
"/v1/account/agents/{agent_id}": {
|
|
47
|
+
parameters: {
|
|
48
|
+
query?: never;
|
|
49
|
+
header?: never;
|
|
50
|
+
path?: never;
|
|
51
|
+
cookie?: never;
|
|
52
|
+
};
|
|
53
|
+
get?: never;
|
|
54
|
+
put?: never;
|
|
55
|
+
post?: never;
|
|
56
|
+
/**
|
|
57
|
+
* Disconnect an agent
|
|
58
|
+
* @description Revokes a connected agent's tokens. It must go through the connect flow again to get access back.
|
|
59
|
+
*/
|
|
60
|
+
delete: operations["revoke_connected_agent"];
|
|
61
|
+
options?: never;
|
|
62
|
+
head?: never;
|
|
63
|
+
patch?: never;
|
|
64
|
+
trace?: never;
|
|
65
|
+
};
|
|
66
|
+
"/v1/account/api-keys": {
|
|
67
|
+
parameters: {
|
|
68
|
+
query?: never;
|
|
69
|
+
header?: never;
|
|
70
|
+
path?: never;
|
|
71
|
+
cookie?: never;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* List API keys
|
|
75
|
+
* @description Lists the account's API keys. Key values are shown only once, at creation.
|
|
76
|
+
*/
|
|
77
|
+
get: operations["list_api_keys"];
|
|
78
|
+
put?: never;
|
|
79
|
+
/**
|
|
80
|
+
* Create an API key
|
|
81
|
+
* @description Creates an lbx_ API key for CI or scripts. The value is returned once; only a hash is stored.
|
|
82
|
+
*/
|
|
83
|
+
post: operations["create_api_key"];
|
|
84
|
+
delete?: never;
|
|
85
|
+
options?: never;
|
|
86
|
+
head?: never;
|
|
87
|
+
patch?: never;
|
|
88
|
+
trace?: never;
|
|
89
|
+
};
|
|
90
|
+
"/v1/account/api-keys/{key_id}": {
|
|
91
|
+
parameters: {
|
|
92
|
+
query?: never;
|
|
93
|
+
header?: never;
|
|
94
|
+
path?: never;
|
|
95
|
+
cookie?: never;
|
|
96
|
+
};
|
|
97
|
+
get?: never;
|
|
98
|
+
put?: never;
|
|
99
|
+
post?: never;
|
|
100
|
+
/**
|
|
101
|
+
* Revoke an API key
|
|
102
|
+
* @description Revokes an API key. Calls using it fail with unauthenticated from then on.
|
|
103
|
+
*/
|
|
104
|
+
delete: operations["revoke_api_key"];
|
|
105
|
+
options?: never;
|
|
106
|
+
head?: never;
|
|
107
|
+
patch?: never;
|
|
108
|
+
trace?: never;
|
|
109
|
+
};
|
|
110
|
+
"/v1/apps": {
|
|
111
|
+
parameters: {
|
|
112
|
+
query?: never;
|
|
113
|
+
header?: never;
|
|
114
|
+
path?: never;
|
|
115
|
+
cookie?: never;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* List apps
|
|
119
|
+
* @description Lists your apps, newest first. For each one's health and live deployment, use get_status.
|
|
120
|
+
*/
|
|
121
|
+
get: operations["list_apps"];
|
|
122
|
+
put?: never;
|
|
123
|
+
/**
|
|
124
|
+
* Create an app
|
|
125
|
+
* @description Creates an empty app. Its name becomes its URL: https://<name>.lilbox.app. Nothing runs until you deploy. Fails with conflict if the name is taken or reserved, and quota_exceeded at the plan's app limit. Next: create_deployment.
|
|
126
|
+
*/
|
|
127
|
+
post: operations["create_app"];
|
|
128
|
+
delete?: never;
|
|
129
|
+
options?: never;
|
|
130
|
+
head?: never;
|
|
131
|
+
patch?: never;
|
|
132
|
+
trace?: never;
|
|
133
|
+
};
|
|
134
|
+
"/v1/apps/{app_id}": {
|
|
135
|
+
parameters: {
|
|
136
|
+
query?: never;
|
|
137
|
+
header?: never;
|
|
138
|
+
path?: never;
|
|
139
|
+
cookie?: never;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Get an app
|
|
143
|
+
* @description Returns one app. For health, conditions and the live deployment, use get_status.
|
|
144
|
+
*/
|
|
145
|
+
get: operations["get_app"];
|
|
146
|
+
put?: never;
|
|
147
|
+
post?: never;
|
|
148
|
+
/**
|
|
149
|
+
* Delete an app
|
|
150
|
+
* @description Deletes an app: its URL stops answering and its deployments, config and logs are removed. Cannot be undone. confirm_name must equal the app's name. Returns the app in state deleting; get_app returns not_found once it's gone.
|
|
151
|
+
*/
|
|
152
|
+
delete: operations["delete_app"];
|
|
153
|
+
options?: never;
|
|
154
|
+
head?: never;
|
|
155
|
+
patch?: never;
|
|
156
|
+
trace?: never;
|
|
157
|
+
};
|
|
158
|
+
"/v1/apps/{app_id}/config": {
|
|
159
|
+
parameters: {
|
|
160
|
+
query?: never;
|
|
161
|
+
header?: never;
|
|
162
|
+
path?: never;
|
|
163
|
+
cookie?: never;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* List config
|
|
167
|
+
* @description Returns the app's env vars with values, and secret names without values.
|
|
168
|
+
*/
|
|
169
|
+
get: operations["list_config"];
|
|
170
|
+
put?: never;
|
|
171
|
+
post?: never;
|
|
172
|
+
delete?: never;
|
|
173
|
+
options?: never;
|
|
174
|
+
head?: never;
|
|
175
|
+
patch?: never;
|
|
176
|
+
trace?: never;
|
|
177
|
+
};
|
|
178
|
+
"/v1/apps/{app_id}/config/env": {
|
|
179
|
+
parameters: {
|
|
180
|
+
query?: never;
|
|
181
|
+
header?: never;
|
|
182
|
+
path?: never;
|
|
183
|
+
cookie?: never;
|
|
184
|
+
};
|
|
185
|
+
get?: never;
|
|
186
|
+
put?: never;
|
|
187
|
+
post?: never;
|
|
188
|
+
delete?: never;
|
|
189
|
+
options?: never;
|
|
190
|
+
head?: never;
|
|
191
|
+
/**
|
|
192
|
+
* Set env vars
|
|
193
|
+
* @description Sets plain (non-secret) env vars, merging with existing ones, and deploys the change (same image, new config). Put credentials, tokens and connection strings in set_secret instead: env values are readable.
|
|
194
|
+
*/
|
|
195
|
+
patch: operations["set_env"];
|
|
196
|
+
trace?: never;
|
|
197
|
+
};
|
|
198
|
+
"/v1/apps/{app_id}/config/unset": {
|
|
199
|
+
parameters: {
|
|
200
|
+
query?: never;
|
|
201
|
+
header?: never;
|
|
202
|
+
path?: never;
|
|
203
|
+
cookie?: never;
|
|
204
|
+
};
|
|
205
|
+
get?: never;
|
|
206
|
+
put?: never;
|
|
207
|
+
/**
|
|
208
|
+
* Unset env vars
|
|
209
|
+
* @description Removes env vars or secrets by name and deploys the change.
|
|
210
|
+
*/
|
|
211
|
+
post: operations["unset_env"];
|
|
212
|
+
delete?: never;
|
|
213
|
+
options?: never;
|
|
214
|
+
head?: never;
|
|
215
|
+
patch?: never;
|
|
216
|
+
trace?: never;
|
|
217
|
+
};
|
|
218
|
+
"/v1/apps/{app_id}/config/secrets/{name}": {
|
|
219
|
+
parameters: {
|
|
220
|
+
query?: never;
|
|
221
|
+
header?: never;
|
|
222
|
+
path?: never;
|
|
223
|
+
cookie?: never;
|
|
224
|
+
};
|
|
225
|
+
get?: never;
|
|
226
|
+
/**
|
|
227
|
+
* Set a secret
|
|
228
|
+
* @description Stores a secret (API key, DATABASE_URL, signing key) encrypted, exposes it to the app as an env var, and deploys the change. The value is never returned. If the human must provide the value, ask them; don't invent one. For random values (session keys), use generate_secret.
|
|
229
|
+
*/
|
|
230
|
+
put: operations["set_secret"];
|
|
231
|
+
post?: never;
|
|
232
|
+
delete?: never;
|
|
233
|
+
options?: never;
|
|
234
|
+
head?: never;
|
|
235
|
+
patch?: never;
|
|
236
|
+
trace?: never;
|
|
237
|
+
};
|
|
238
|
+
"/v1/apps/{app_id}/config/secrets/{name}/generate": {
|
|
239
|
+
parameters: {
|
|
240
|
+
query?: never;
|
|
241
|
+
header?: never;
|
|
242
|
+
path?: never;
|
|
243
|
+
cookie?: never;
|
|
244
|
+
};
|
|
245
|
+
get?: never;
|
|
246
|
+
put?: never;
|
|
247
|
+
/**
|
|
248
|
+
* Generate a secret
|
|
249
|
+
* @description Generates a random secret on the server (so it never passes through the conversation), stores it like set_secret, and deploys the change. Use for session keys, signing keys and internal tokens.
|
|
250
|
+
*/
|
|
251
|
+
post: operations["generate_secret"];
|
|
252
|
+
delete?: never;
|
|
253
|
+
options?: never;
|
|
254
|
+
head?: never;
|
|
255
|
+
patch?: never;
|
|
256
|
+
trace?: never;
|
|
257
|
+
};
|
|
258
|
+
"/v1/apps/{app_id}/check": {
|
|
259
|
+
parameters: {
|
|
260
|
+
query?: never;
|
|
261
|
+
header?: never;
|
|
262
|
+
path?: never;
|
|
263
|
+
cookie?: never;
|
|
264
|
+
};
|
|
265
|
+
get?: never;
|
|
266
|
+
put?: never;
|
|
267
|
+
/**
|
|
268
|
+
* Check a source before deploying
|
|
269
|
+
* @description Previews whether a source would deploy on this app's plan: validates app.yaml, detects what the app needs from the runtime, and lists blockers with the code fix first and the billing plan that would remove them second. Changes nothing. create_deployment runs the same check, so this is optional; use it to fix issues before spending a build.
|
|
270
|
+
*/
|
|
271
|
+
post: operations["check"];
|
|
272
|
+
delete?: never;
|
|
273
|
+
options?: never;
|
|
274
|
+
head?: never;
|
|
275
|
+
patch?: never;
|
|
276
|
+
trace?: never;
|
|
277
|
+
};
|
|
278
|
+
"/v1/apps/{app_id}/deployments": {
|
|
279
|
+
parameters: {
|
|
280
|
+
query?: never;
|
|
281
|
+
header?: never;
|
|
282
|
+
path?: never;
|
|
283
|
+
cookie?: never;
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* List deployments
|
|
287
|
+
* @description Lists an app's deployments, newest first, with each one's status (one is live), trigger and source. Use a deployment ID with rollback.
|
|
288
|
+
*/
|
|
289
|
+
get: operations["list_deployments"];
|
|
290
|
+
put?: never;
|
|
291
|
+
/**
|
|
292
|
+
* Deploy
|
|
293
|
+
* @description Deploys new source to the app and returns the deployment right away. Source is one of: upload (the lilbox CLI: PUT the .tar.gz to the returned upload.url and the deployment starts), files (inline, for agents without a shell), or github (a ref from the connected repo). Then poll get_deployment(wait_seconds) until it's live (it has the URL) or failed (it has an error with a log excerpt and a suggestion).
|
|
294
|
+
*/
|
|
295
|
+
post: operations["create_deployment"];
|
|
296
|
+
delete?: never;
|
|
297
|
+
options?: never;
|
|
298
|
+
head?: never;
|
|
299
|
+
patch?: never;
|
|
300
|
+
trace?: never;
|
|
301
|
+
};
|
|
302
|
+
"/v1/deployments/{deployment_id}": {
|
|
303
|
+
parameters: {
|
|
304
|
+
query?: never;
|
|
305
|
+
header?: never;
|
|
306
|
+
path?: never;
|
|
307
|
+
cookie?: never;
|
|
308
|
+
};
|
|
309
|
+
/**
|
|
310
|
+
* Get a deployment
|
|
311
|
+
* @description Returns a deployment's status and steps. With wait_seconds, waits up to that long for it to change before answering, so you can poll without sleeping. Repeat until live, failed or cancelled.
|
|
312
|
+
*/
|
|
313
|
+
get: operations["get_deployment"];
|
|
314
|
+
put?: never;
|
|
315
|
+
post?: never;
|
|
316
|
+
delete?: never;
|
|
317
|
+
options?: never;
|
|
318
|
+
head?: never;
|
|
319
|
+
patch?: never;
|
|
320
|
+
trace?: never;
|
|
321
|
+
};
|
|
322
|
+
"/v1/deployments/{deployment_id}/cancel": {
|
|
323
|
+
parameters: {
|
|
324
|
+
query?: never;
|
|
325
|
+
header?: never;
|
|
326
|
+
path?: never;
|
|
327
|
+
cookie?: never;
|
|
328
|
+
};
|
|
329
|
+
get?: never;
|
|
330
|
+
put?: never;
|
|
331
|
+
/**
|
|
332
|
+
* Cancel a deployment
|
|
333
|
+
* @description Cancels a deployment that isn't finished. The live deployment keeps serving.
|
|
334
|
+
*/
|
|
335
|
+
post: operations["cancel_deployment"];
|
|
336
|
+
delete?: never;
|
|
337
|
+
options?: never;
|
|
338
|
+
head?: never;
|
|
339
|
+
patch?: never;
|
|
340
|
+
trace?: never;
|
|
341
|
+
};
|
|
342
|
+
"/v1/deployments/{deployment_id}/logs": {
|
|
343
|
+
parameters: {
|
|
344
|
+
query?: never;
|
|
345
|
+
header?: never;
|
|
346
|
+
path?: never;
|
|
347
|
+
cookie?: never;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Get deployment logs
|
|
351
|
+
* @description Returns a deployment's logs: the image build and each step (smoke test, release, health check). Use it when a deployment failed and its error's log_excerpt isn't enough. For the running app's output, use get_logs.
|
|
352
|
+
*/
|
|
353
|
+
get: operations["get_deployment_logs"];
|
|
354
|
+
put?: never;
|
|
355
|
+
post?: never;
|
|
356
|
+
delete?: never;
|
|
357
|
+
options?: never;
|
|
358
|
+
head?: never;
|
|
359
|
+
patch?: never;
|
|
360
|
+
trace?: never;
|
|
361
|
+
};
|
|
362
|
+
"/v1/apps/{app_id}/rollback": {
|
|
363
|
+
parameters: {
|
|
364
|
+
query?: never;
|
|
365
|
+
header?: never;
|
|
366
|
+
path?: never;
|
|
367
|
+
cookie?: never;
|
|
368
|
+
};
|
|
369
|
+
get?: never;
|
|
370
|
+
put?: never;
|
|
371
|
+
/**
|
|
372
|
+
* Roll back
|
|
373
|
+
* @description Creates a new deployment that reuses an earlier deployment's image and config, so it's fast (no build) and restores a combination that worked. Poll get_deployment.
|
|
374
|
+
*/
|
|
375
|
+
post: operations["rollback"];
|
|
376
|
+
delete?: never;
|
|
377
|
+
options?: never;
|
|
378
|
+
head?: never;
|
|
379
|
+
patch?: never;
|
|
380
|
+
trace?: never;
|
|
381
|
+
};
|
|
382
|
+
"/v1/apps/{app_id}/status": {
|
|
383
|
+
parameters: {
|
|
384
|
+
query?: never;
|
|
385
|
+
header?: never;
|
|
386
|
+
path?: never;
|
|
387
|
+
cookie?: never;
|
|
388
|
+
};
|
|
389
|
+
/**
|
|
390
|
+
* Get app status
|
|
391
|
+
* @description Returns whether the app is running (or stopped, and why), which deployment is live, health from recent traffic, cold-start stats, cron schedules and their last run, and warnings. The first thing to call when something looks wrong.
|
|
392
|
+
*/
|
|
393
|
+
get: operations["get_status"];
|
|
394
|
+
put?: never;
|
|
395
|
+
post?: never;
|
|
396
|
+
delete?: never;
|
|
397
|
+
options?: never;
|
|
398
|
+
head?: never;
|
|
399
|
+
patch?: never;
|
|
400
|
+
trace?: never;
|
|
401
|
+
};
|
|
402
|
+
"/v1/apps/{app_id}/logs": {
|
|
403
|
+
parameters: {
|
|
404
|
+
query?: never;
|
|
405
|
+
header?: never;
|
|
406
|
+
path?: never;
|
|
407
|
+
cookie?: never;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* Get app logs
|
|
411
|
+
* @description Returns the running app's own output (stdout, stderr) and lilbox's runtime lines (cold starts, crashes, timeouts, cron calls), oldest first. For why a deployment failed, use get_deployment_logs. Narrow with since/until and grep rather than paging through everything.
|
|
412
|
+
*/
|
|
413
|
+
get: operations["get_logs"];
|
|
414
|
+
put?: never;
|
|
415
|
+
post?: never;
|
|
416
|
+
delete?: never;
|
|
417
|
+
options?: never;
|
|
418
|
+
head?: never;
|
|
419
|
+
patch?: never;
|
|
420
|
+
trace?: never;
|
|
421
|
+
};
|
|
422
|
+
"/v1/activity": {
|
|
423
|
+
parameters: {
|
|
424
|
+
query?: never;
|
|
425
|
+
header?: never;
|
|
426
|
+
path?: never;
|
|
427
|
+
cookie?: never;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* List activity
|
|
431
|
+
* @description Lists every change made on the account, newest first: who made it and through which agent or API key, what operation, on which app, and whether it succeeded. Filter by app, credential or time. Use it to answer what an agent did, or what changed before something broke.
|
|
432
|
+
*/
|
|
433
|
+
get: operations["list_activity"];
|
|
434
|
+
put?: never;
|
|
435
|
+
post?: never;
|
|
436
|
+
delete?: never;
|
|
437
|
+
options?: never;
|
|
438
|
+
head?: never;
|
|
439
|
+
patch?: never;
|
|
440
|
+
trace?: never;
|
|
441
|
+
};
|
|
442
|
+
"/v1/plans": {
|
|
443
|
+
parameters: {
|
|
444
|
+
query?: never;
|
|
445
|
+
header?: never;
|
|
446
|
+
path?: never;
|
|
447
|
+
cookie?: never;
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* Get plans
|
|
451
|
+
* @description Lists billing plans with price, limits, runtimes and capabilities, and whether each can be bought now. Plans marked available: false have a waitlist_url.
|
|
452
|
+
*/
|
|
453
|
+
get: operations["get_plans"];
|
|
454
|
+
put?: never;
|
|
455
|
+
post?: never;
|
|
456
|
+
delete?: never;
|
|
457
|
+
options?: never;
|
|
458
|
+
head?: never;
|
|
459
|
+
patch?: never;
|
|
460
|
+
trace?: never;
|
|
461
|
+
};
|
|
462
|
+
"/v1/subscription": {
|
|
463
|
+
parameters: {
|
|
464
|
+
query?: never;
|
|
465
|
+
header?: never;
|
|
466
|
+
path?: never;
|
|
467
|
+
cookie?: never;
|
|
468
|
+
};
|
|
469
|
+
/**
|
|
470
|
+
* Get subscription
|
|
471
|
+
* @description Returns the account's plan, status (trialing, active, past_due, canceled, expired), when the trial ends and the bonuses on top of the plan's limits.
|
|
472
|
+
*/
|
|
473
|
+
get: operations["get_subscription"];
|
|
474
|
+
put?: never;
|
|
475
|
+
post?: never;
|
|
476
|
+
delete?: never;
|
|
477
|
+
options?: never;
|
|
478
|
+
head?: never;
|
|
479
|
+
patch?: never;
|
|
480
|
+
trace?: never;
|
|
481
|
+
};
|
|
482
|
+
"/v1/usage": {
|
|
483
|
+
parameters: {
|
|
484
|
+
query?: never;
|
|
485
|
+
header?: never;
|
|
486
|
+
path?: never;
|
|
487
|
+
cookie?: never;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Get usage
|
|
491
|
+
* @description Returns the open billing period: its dates, and each meter's use against its limit. At a limit, builds are refused and apps stop until the period resets or the plan changes; nothing is deleted. Usage is measured about hourly.
|
|
492
|
+
*/
|
|
493
|
+
get: operations["get_usage"];
|
|
494
|
+
put?: never;
|
|
495
|
+
post?: never;
|
|
496
|
+
delete?: never;
|
|
497
|
+
options?: never;
|
|
498
|
+
head?: never;
|
|
499
|
+
patch?: never;
|
|
500
|
+
trace?: never;
|
|
501
|
+
};
|
|
502
|
+
"/v1/billing-periods": {
|
|
503
|
+
parameters: {
|
|
504
|
+
query?: never;
|
|
505
|
+
header?: never;
|
|
506
|
+
path?: never;
|
|
507
|
+
cookie?: never;
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* List billing periods
|
|
511
|
+
* @description Lists past and current billing periods, newest first, each with its dates, plan, frozen usage and invoice (number, amount, status, links). Use it to answer what was paid and what was used in a given month.
|
|
512
|
+
*/
|
|
513
|
+
get: operations["list_billing_periods"];
|
|
514
|
+
put?: never;
|
|
515
|
+
post?: never;
|
|
516
|
+
delete?: never;
|
|
517
|
+
options?: never;
|
|
518
|
+
head?: never;
|
|
519
|
+
patch?: never;
|
|
520
|
+
trace?: never;
|
|
521
|
+
};
|
|
522
|
+
"/v1/subscription/upgrade": {
|
|
523
|
+
parameters: {
|
|
524
|
+
query?: never;
|
|
525
|
+
header?: never;
|
|
526
|
+
path?: never;
|
|
527
|
+
cookie?: never;
|
|
528
|
+
};
|
|
529
|
+
get?: never;
|
|
530
|
+
put?: never;
|
|
531
|
+
/**
|
|
532
|
+
* Subscribe or change plan
|
|
533
|
+
* @description Returns a checkout URL for the human to subscribe or change plan. You can't complete it yourself: send them the link. Fails with plan_unavailable (with a waitlist_url) for plans that can't be bought yet.
|
|
534
|
+
*/
|
|
535
|
+
post: operations["request_upgrade"];
|
|
536
|
+
delete?: never;
|
|
537
|
+
options?: never;
|
|
538
|
+
head?: never;
|
|
539
|
+
patch?: never;
|
|
540
|
+
trace?: never;
|
|
541
|
+
};
|
|
542
|
+
"/v1/referral": {
|
|
543
|
+
parameters: {
|
|
544
|
+
query?: never;
|
|
545
|
+
header?: never;
|
|
546
|
+
path?: never;
|
|
547
|
+
cookie?: never;
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* Get referral link
|
|
551
|
+
* @description Returns the account's referral link: a friend who signs up through it unlocks 6 more apps for this account. Share it with the human only; never put it in app code, READMEs or deployed files.
|
|
552
|
+
*/
|
|
553
|
+
get: operations["get_referral"];
|
|
554
|
+
put?: never;
|
|
555
|
+
post?: never;
|
|
556
|
+
delete?: never;
|
|
557
|
+
options?: never;
|
|
558
|
+
head?: never;
|
|
559
|
+
patch?: never;
|
|
560
|
+
trace?: never;
|
|
561
|
+
};
|
|
562
|
+
"/v1/subscription/portal": {
|
|
563
|
+
parameters: {
|
|
564
|
+
query?: never;
|
|
565
|
+
header?: never;
|
|
566
|
+
path?: never;
|
|
567
|
+
cookie?: never;
|
|
568
|
+
};
|
|
569
|
+
get?: never;
|
|
570
|
+
put?: never;
|
|
571
|
+
/**
|
|
572
|
+
* Open the billing portal
|
|
573
|
+
* @description Returns a Stripe Customer Portal URL to change the card, see invoices or cancel.
|
|
574
|
+
*/
|
|
575
|
+
post: operations["open_billing_portal"];
|
|
576
|
+
delete?: never;
|
|
577
|
+
options?: never;
|
|
578
|
+
head?: never;
|
|
579
|
+
patch?: never;
|
|
580
|
+
trace?: never;
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
export type webhooks = Record<string, never>;
|
|
584
|
+
export interface components {
|
|
585
|
+
schemas: {
|
|
586
|
+
Whoami: {
|
|
587
|
+
user: components["schemas"]["User"];
|
|
588
|
+
credential: {
|
|
589
|
+
/** @enum {string} */
|
|
590
|
+
kind: "session" | "agent" | "api_key";
|
|
591
|
+
scopes: ("apps:read" | "apps:write" | "deploy" | "billing:read")[];
|
|
592
|
+
expires_at: string | null;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
User: {
|
|
596
|
+
/** @description ID with the "usr_" prefix. */
|
|
597
|
+
id: string;
|
|
598
|
+
/** Format: email */
|
|
599
|
+
email: string;
|
|
600
|
+
name?: string;
|
|
601
|
+
sign_in_methods: ("github" | "google" | "email")[];
|
|
602
|
+
/**
|
|
603
|
+
* Format: date-time
|
|
604
|
+
* @description RFC 3339 timestamp, UTC.
|
|
605
|
+
*/
|
|
606
|
+
created_at: string;
|
|
607
|
+
};
|
|
608
|
+
ConnectedAgent: {
|
|
609
|
+
/** @description ID with the "agt_" prefix. */
|
|
610
|
+
id: string;
|
|
611
|
+
/** @description As the client registered itself, e.g. "Claude Code". */
|
|
612
|
+
client_name: string;
|
|
613
|
+
/** Format: uri */
|
|
614
|
+
client_uri?: string;
|
|
615
|
+
scopes: ("apps:read" | "apps:write" | "deploy" | "billing:read")[];
|
|
616
|
+
/**
|
|
617
|
+
* Format: date-time
|
|
618
|
+
* @description RFC 3339 timestamp, UTC.
|
|
619
|
+
*/
|
|
620
|
+
connected_at: string;
|
|
621
|
+
last_used_at: string | null;
|
|
622
|
+
};
|
|
623
|
+
ApiKey: {
|
|
624
|
+
/** @description ID with the "key_" prefix. */
|
|
625
|
+
id: string;
|
|
626
|
+
name: string;
|
|
627
|
+
/** @description The first characters, to recognise it: "lbx_ab12". */
|
|
628
|
+
prefix: string;
|
|
629
|
+
scopes: ("apps:read" | "apps:write" | "deploy" | "billing:read")[];
|
|
630
|
+
expires_at: string | null;
|
|
631
|
+
/**
|
|
632
|
+
* Format: date-time
|
|
633
|
+
* @description RFC 3339 timestamp, UTC.
|
|
634
|
+
*/
|
|
635
|
+
created_at: string;
|
|
636
|
+
last_used_at: string | null;
|
|
637
|
+
};
|
|
638
|
+
App: {
|
|
639
|
+
/** @description ID with the "app_" prefix. */
|
|
640
|
+
id: string;
|
|
641
|
+
/** @description App name, also its hostname: <name>.lilbox.app. */
|
|
642
|
+
name: string;
|
|
643
|
+
/**
|
|
644
|
+
* Format: uri
|
|
645
|
+
* @description https://<name>.lilbox.app. Answers once a deployment is live.
|
|
646
|
+
*/
|
|
647
|
+
url: string;
|
|
648
|
+
/**
|
|
649
|
+
* @description The app's own lifecycle. Whether it's running is get_status.
|
|
650
|
+
* @enum {string}
|
|
651
|
+
*/
|
|
652
|
+
state: "active" | "deleting";
|
|
653
|
+
/**
|
|
654
|
+
* Format: date-time
|
|
655
|
+
* @description RFC 3339 timestamp, UTC.
|
|
656
|
+
*/
|
|
657
|
+
created_at: string;
|
|
658
|
+
/**
|
|
659
|
+
* Format: date-time
|
|
660
|
+
* @description RFC 3339 timestamp, UTC.
|
|
661
|
+
*/
|
|
662
|
+
updated_at: string;
|
|
663
|
+
};
|
|
664
|
+
AppConfig: {
|
|
665
|
+
/** @description Increases with every change. Deployments record the version they run. */
|
|
666
|
+
version: number;
|
|
667
|
+
env: {
|
|
668
|
+
[key: string]: string;
|
|
669
|
+
};
|
|
670
|
+
/** @description Names only; values are never returned. */
|
|
671
|
+
secrets: {
|
|
672
|
+
/** @description Environment variable or secret name. */
|
|
673
|
+
name: string;
|
|
674
|
+
/**
|
|
675
|
+
* Format: date-time
|
|
676
|
+
* @description RFC 3339 timestamp, UTC.
|
|
677
|
+
*/
|
|
678
|
+
updated_at: string;
|
|
679
|
+
}[];
|
|
680
|
+
/** @description Variables lilbox sets itself (PORT, LILBOX_URL…), names only. */
|
|
681
|
+
platform_env: string[];
|
|
682
|
+
};
|
|
683
|
+
Deployment: {
|
|
684
|
+
/** @description ID with the "dep_" prefix. */
|
|
685
|
+
id: string;
|
|
686
|
+
/** @description ID with the "app_" prefix. */
|
|
687
|
+
app_id: string;
|
|
688
|
+
/** @description v1, v2… per app, in creation order. */
|
|
689
|
+
number: number;
|
|
690
|
+
/** @enum {string} */
|
|
691
|
+
status: "awaiting_source" | "queued" | "running" | "live" | "superseded" | "failed" | "cancelled";
|
|
692
|
+
/** @enum {string} */
|
|
693
|
+
trigger: "source" | "config" | "rollback" | "git_push";
|
|
694
|
+
source: {
|
|
695
|
+
/** @enum {string} */
|
|
696
|
+
type: "upload" | "files" | "github";
|
|
697
|
+
sha256?: string;
|
|
698
|
+
size_bytes?: number;
|
|
699
|
+
file_count?: number;
|
|
700
|
+
/** @description ID with the "dep_" prefix. */
|
|
701
|
+
base_deployment_id?: string;
|
|
702
|
+
github?: {
|
|
703
|
+
repo: string;
|
|
704
|
+
ref: string;
|
|
705
|
+
commit_sha: string;
|
|
706
|
+
commit_message?: string;
|
|
707
|
+
};
|
|
708
|
+
};
|
|
709
|
+
/** @description For rollbacks: the deployment whose image and config this reuses. */
|
|
710
|
+
rollback_of?: string;
|
|
711
|
+
config_version: number;
|
|
712
|
+
/** @enum {string} */
|
|
713
|
+
runtime?: "serverless" | "container";
|
|
714
|
+
image_digest?: string;
|
|
715
|
+
steps: {
|
|
716
|
+
/** @enum {string} */
|
|
717
|
+
name: "receive_source" | "check" | "build" | "smoke_test" | "release" | "route" | "health_check";
|
|
718
|
+
/** @enum {string} */
|
|
719
|
+
status: "pending" | "running" | "succeeded" | "failed" | "skipped";
|
|
720
|
+
/**
|
|
721
|
+
* Format: date-time
|
|
722
|
+
* @description RFC 3339 timestamp, UTC.
|
|
723
|
+
*/
|
|
724
|
+
started_at?: string;
|
|
725
|
+
/**
|
|
726
|
+
* Format: date-time
|
|
727
|
+
* @description RFC 3339 timestamp, UTC.
|
|
728
|
+
*/
|
|
729
|
+
finished_at?: string;
|
|
730
|
+
message?: string;
|
|
731
|
+
}[];
|
|
732
|
+
/** @description The check step's result. */
|
|
733
|
+
check?: components["schemas"]["CheckResult"];
|
|
734
|
+
/** @description While awaiting_source: PUT the .tar.gz here. The deployment starts when it arrives. */
|
|
735
|
+
upload?: {
|
|
736
|
+
/** Format: uri */
|
|
737
|
+
url: string;
|
|
738
|
+
/** @constant */
|
|
739
|
+
method: "PUT";
|
|
740
|
+
headers: {
|
|
741
|
+
[key: string]: string;
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* Format: date-time
|
|
745
|
+
* @description RFC 3339 timestamp, UTC.
|
|
746
|
+
*/
|
|
747
|
+
expires_at: string;
|
|
748
|
+
};
|
|
749
|
+
/**
|
|
750
|
+
* Format: uri
|
|
751
|
+
* @description The app's URL, once live.
|
|
752
|
+
*/
|
|
753
|
+
url?: string;
|
|
754
|
+
/** @description Set when failed: code, log excerpt, suggestion. */
|
|
755
|
+
error?: components["schemas"]["ApiError"];
|
|
756
|
+
created_by: {
|
|
757
|
+
/** @enum {string} */
|
|
758
|
+
kind: "user" | "api_key" | "github" | "system";
|
|
759
|
+
id: string;
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* Format: date-time
|
|
763
|
+
* @description RFC 3339 timestamp, UTC.
|
|
764
|
+
*/
|
|
765
|
+
created_at: string;
|
|
766
|
+
/**
|
|
767
|
+
* Format: date-time
|
|
768
|
+
* @description RFC 3339 timestamp, UTC.
|
|
769
|
+
*/
|
|
770
|
+
updated_at: string;
|
|
771
|
+
/**
|
|
772
|
+
* Format: date-time
|
|
773
|
+
* @description RFC 3339 timestamp, UTC.
|
|
774
|
+
*/
|
|
775
|
+
finished_at?: string;
|
|
776
|
+
};
|
|
777
|
+
CheckResult: {
|
|
778
|
+
/** @description False while any issue is a blocker. */
|
|
779
|
+
deployable: boolean;
|
|
780
|
+
/** @enum {string} */
|
|
781
|
+
runtime: "serverless" | "container";
|
|
782
|
+
issues: components["schemas"]["CheckIssue"][];
|
|
783
|
+
/** @description Ways to remove blockers: code changes first (in issues), then billing plans. */
|
|
784
|
+
options: {
|
|
785
|
+
/** @enum {string} */
|
|
786
|
+
plan: "trial" | "starter" | "pro" | "scale";
|
|
787
|
+
monthly_usd: number;
|
|
788
|
+
requires: string;
|
|
789
|
+
/** @description False for plans that can't be bought yet (Pro during phase 1). */
|
|
790
|
+
available: boolean;
|
|
791
|
+
/** Format: uri */
|
|
792
|
+
waitlist_url?: string;
|
|
793
|
+
}[];
|
|
794
|
+
warnings: string[];
|
|
795
|
+
};
|
|
796
|
+
CheckIssue: {
|
|
797
|
+
code: ("work_after_response" | "in_process_scheduler" | "queue_consumer" | "websockets" | "writes_outside_tmp" | "needs_root" | "long_requests" | "large_bodies" | "always_on" | "slow_boot") | ("database_not_configured" | "feature_unavailable" | "missing_secret" | "manifest_warning");
|
|
798
|
+
/** @enum {string} */
|
|
799
|
+
severity: "blocker" | "warning";
|
|
800
|
+
/** @description file:line, manifest path, or 'smoke test: …'. */
|
|
801
|
+
where?: string;
|
|
802
|
+
evidence?: string;
|
|
803
|
+
/** @description The code change that removes the issue, when there is one. */
|
|
804
|
+
fix_in_code?: string;
|
|
805
|
+
/**
|
|
806
|
+
* @description The billing plan that removes the issue without code changes.
|
|
807
|
+
* @enum {string}
|
|
808
|
+
*/
|
|
809
|
+
fix_by_plan?: "trial" | "starter" | "pro" | "scale";
|
|
810
|
+
/** Format: uri */
|
|
811
|
+
docs_url?: string;
|
|
812
|
+
};
|
|
813
|
+
ApiError: {
|
|
814
|
+
/** @enum {string} */
|
|
815
|
+
code: "unauthenticated" | "forbidden_scope" | "approval_required" | "payment_required" | "quota_exceeded" | "rate_limited" | "suspended" | "invalid_request" | "invalid_manifest" | "not_found" | "conflict" | "not_available" | "plan_unavailable" | "source_too_large" | "build_failed" | "image_too_large" | "migration_failed" | "healthcheck_failed" | "app_crashed_on_start" | "deploy_timeout" | "capability_requires_plan" | "capability_unconfirmed" | "domain_unverified" | "cert_pending" | "db_quota_exceeded" | "internal";
|
|
816
|
+
/** @description What went wrong, for a human. */
|
|
817
|
+
message: string;
|
|
818
|
+
/** @description True if the same call may succeed later unchanged. */
|
|
819
|
+
retryable: boolean;
|
|
820
|
+
/** @description What to do next, as concrete as possible. */
|
|
821
|
+
suggestion?: string;
|
|
822
|
+
/** Format: uri */
|
|
823
|
+
docs_url?: string;
|
|
824
|
+
request_id?: string;
|
|
825
|
+
/** @description ID with the "dep_" prefix. */
|
|
826
|
+
deployment_id?: string;
|
|
827
|
+
/** @description The log lines that explain the failure. */
|
|
828
|
+
log_excerpt?: string[];
|
|
829
|
+
/** @description Code-specific fields, documented per code. */
|
|
830
|
+
details?: {
|
|
831
|
+
[key: string]: unknown;
|
|
832
|
+
};
|
|
833
|
+
};
|
|
834
|
+
AppStatusReport: {
|
|
835
|
+
/** @description ID with the "app_" prefix. */
|
|
836
|
+
app_id: string;
|
|
837
|
+
/** Format: uri */
|
|
838
|
+
url: string;
|
|
839
|
+
/** @enum {string} */
|
|
840
|
+
state: "not_deployed" | "running" | "stopped" | "suspended";
|
|
841
|
+
/** @description Why it's stopped or suspended, e.g. quota_exceeded. */
|
|
842
|
+
state_reason?: string;
|
|
843
|
+
/** @description The deployment serving the URL. Details: get_deployment. */
|
|
844
|
+
live_deployment: {
|
|
845
|
+
/** @description ID with the "dep_" prefix. */
|
|
846
|
+
id: string;
|
|
847
|
+
number: number;
|
|
848
|
+
} | null;
|
|
849
|
+
/** @description A deployment that isn't finished yet, if any. */
|
|
850
|
+
deploying: {
|
|
851
|
+
/** @description ID with the "dep_" prefix. */
|
|
852
|
+
id: string;
|
|
853
|
+
number: number;
|
|
854
|
+
} | null;
|
|
855
|
+
health: {
|
|
856
|
+
/** @enum {string} */
|
|
857
|
+
state: "healthy" | "degraded" | "failing" | "asleep" | "unknown";
|
|
858
|
+
/** @description The window the numbers cover, e.g. 15. */
|
|
859
|
+
window_minutes: number;
|
|
860
|
+
requests: number;
|
|
861
|
+
/** @description Share of requests answered 5xx, crashed or timed out. */
|
|
862
|
+
error_rate: number;
|
|
863
|
+
last_request_at: string | null;
|
|
864
|
+
};
|
|
865
|
+
/** @description Over the last 24 h. Null without enough samples. */
|
|
866
|
+
cold_start: {
|
|
867
|
+
p50_ms: number;
|
|
868
|
+
p95_ms: number;
|
|
869
|
+
samples: number;
|
|
870
|
+
} | null;
|
|
871
|
+
/** @description Schedules from the live deployment's app.yaml. */
|
|
872
|
+
cron: {
|
|
873
|
+
schedule: string;
|
|
874
|
+
path: string;
|
|
875
|
+
next_run_at: string | null;
|
|
876
|
+
last_run: {
|
|
877
|
+
/**
|
|
878
|
+
* Format: date-time
|
|
879
|
+
* @description RFC 3339 timestamp, UTC.
|
|
880
|
+
*/
|
|
881
|
+
at: string;
|
|
882
|
+
status_code: number | null;
|
|
883
|
+
ok: boolean;
|
|
884
|
+
} | null;
|
|
885
|
+
}[];
|
|
886
|
+
conditions: {
|
|
887
|
+
/** @description e.g. "Ready", "QuotaOk", "CapabilityWarning". */
|
|
888
|
+
type: string;
|
|
889
|
+
/** @enum {string} */
|
|
890
|
+
status: "true" | "false" | "unknown";
|
|
891
|
+
reason?: string;
|
|
892
|
+
message?: string;
|
|
893
|
+
/**
|
|
894
|
+
* Format: date-time
|
|
895
|
+
* @description RFC 3339 timestamp, UTC.
|
|
896
|
+
*/
|
|
897
|
+
since: string;
|
|
898
|
+
}[];
|
|
899
|
+
/** @description Runtime signals since the live deployment went live (05 §7.3). */
|
|
900
|
+
capability_findings: components["schemas"]["CheckIssue"][];
|
|
901
|
+
};
|
|
902
|
+
ActivityEvent: {
|
|
903
|
+
/** @description ID with the "evt_" prefix. */
|
|
904
|
+
id: string;
|
|
905
|
+
/**
|
|
906
|
+
* Format: date-time
|
|
907
|
+
* @description RFC 3339 timestamp, UTC.
|
|
908
|
+
*/
|
|
909
|
+
at: string;
|
|
910
|
+
actor: {
|
|
911
|
+
/** @description ID with the "usr_" prefix. */
|
|
912
|
+
user_id: string;
|
|
913
|
+
/** @enum {string} */
|
|
914
|
+
via: "dashboard" | "agent" | "api_key" | "github" | "system";
|
|
915
|
+
/** @description The connected agent or API key, when via is agent or api_key. */
|
|
916
|
+
credential_id?: string;
|
|
917
|
+
/** @description e.g. "Claude Code" or the API key's name. */
|
|
918
|
+
credential_name?: string;
|
|
919
|
+
};
|
|
920
|
+
/** @description The operation called, e.g. "create_deployment", "set_secret". */
|
|
921
|
+
operation: string;
|
|
922
|
+
/** @description ID with the "app_" prefix. */
|
|
923
|
+
app_id?: string;
|
|
924
|
+
/** @description ID with the "dep_" prefix. */
|
|
925
|
+
deployment_id?: string;
|
|
926
|
+
/** @description Human-readable, e.g. "set secret STRIPE_KEY" (never the value). */
|
|
927
|
+
summary: string;
|
|
928
|
+
/** @enum {string} */
|
|
929
|
+
result: "succeeded" | "failed";
|
|
930
|
+
/** @enum {string} */
|
|
931
|
+
error_code?: "unauthenticated" | "forbidden_scope" | "approval_required" | "payment_required" | "quota_exceeded" | "rate_limited" | "suspended" | "invalid_request" | "invalid_manifest" | "not_found" | "conflict" | "not_available" | "plan_unavailable" | "source_too_large" | "build_failed" | "image_too_large" | "migration_failed" | "healthcheck_failed" | "app_crashed_on_start" | "deploy_timeout" | "capability_requires_plan" | "capability_unconfirmed" | "domain_unverified" | "cert_pending" | "db_quota_exceeded" | "internal";
|
|
932
|
+
request_id: string;
|
|
933
|
+
ip?: string;
|
|
934
|
+
};
|
|
935
|
+
BillingPlan: {
|
|
936
|
+
/** @enum {string} */
|
|
937
|
+
code: "trial" | "starter" | "pro" | "scale";
|
|
938
|
+
name: string;
|
|
939
|
+
monthly_usd: number;
|
|
940
|
+
/** @description False for plans that can't be bought yet (Pro in phase 1). */
|
|
941
|
+
available: boolean;
|
|
942
|
+
/** Format: uri */
|
|
943
|
+
waitlist_url?: string;
|
|
944
|
+
runtimes: ("serverless" | "container")[];
|
|
945
|
+
/** @description Per billing period, before bonuses. */
|
|
946
|
+
limits: {
|
|
947
|
+
[key: string]: number;
|
|
948
|
+
};
|
|
949
|
+
/** @description Capabilities this plan's runtimes provide. */
|
|
950
|
+
capabilities: ("work_after_response" | "in_process_scheduler" | "queue_consumer" | "websockets" | "writes_outside_tmp" | "needs_root" | "long_requests" | "large_bodies" | "always_on" | "slow_boot")[];
|
|
951
|
+
features: string[];
|
|
952
|
+
};
|
|
953
|
+
Subscription: {
|
|
954
|
+
/** @enum {string} */
|
|
955
|
+
plan: "trial" | "starter" | "pro" | "scale";
|
|
956
|
+
/** @enum {string} */
|
|
957
|
+
status: "trialing" | "active" | "past_due" | "canceled" | "expired";
|
|
958
|
+
/** @description Null until the first deployment goes live. */
|
|
959
|
+
trial_started_at: string | null;
|
|
960
|
+
trial_ends_at: string | null;
|
|
961
|
+
cancel_at_period_end: boolean;
|
|
962
|
+
/** @description The open billing period. Null before the trial clock starts. */
|
|
963
|
+
current_period_id: string | null;
|
|
964
|
+
};
|
|
965
|
+
BillingPeriod: {
|
|
966
|
+
/** @description ID with the "bpr_" prefix. */
|
|
967
|
+
id: string;
|
|
968
|
+
/**
|
|
969
|
+
* Format: date-time
|
|
970
|
+
* @description RFC 3339 timestamp, UTC.
|
|
971
|
+
*/
|
|
972
|
+
from: string;
|
|
973
|
+
/**
|
|
974
|
+
* Format: date-time
|
|
975
|
+
* @description RFC 3339 timestamp, UTC.
|
|
976
|
+
*/
|
|
977
|
+
to: string;
|
|
978
|
+
/** @enum {string} */
|
|
979
|
+
plan: "trial" | "starter" | "pro" | "scale";
|
|
980
|
+
/**
|
|
981
|
+
* @description open: usage updated hourly. closed: usage frozen.
|
|
982
|
+
* @enum {string}
|
|
983
|
+
*/
|
|
984
|
+
status: "open" | "closed";
|
|
985
|
+
usage: {
|
|
986
|
+
/** @enum {string} */
|
|
987
|
+
meter: "apps" | "compute_hours" | "requests" | "egress_gb" | "build_minutes";
|
|
988
|
+
used: number;
|
|
989
|
+
/** @description The plan's limit plus bonuses. */
|
|
990
|
+
limit: number;
|
|
991
|
+
unit: string;
|
|
992
|
+
/**
|
|
993
|
+
* @description warning from 80%. For a closed period: the highest reached.
|
|
994
|
+
* @enum {string}
|
|
995
|
+
*/
|
|
996
|
+
state: "ok" | "warning" | "exceeded";
|
|
997
|
+
/** @description Per app; returned when asked for, always stored. */
|
|
998
|
+
by_app?: {
|
|
999
|
+
/** @description ID with the "app_" prefix. */
|
|
1000
|
+
app_id: string;
|
|
1001
|
+
used: number;
|
|
1002
|
+
}[];
|
|
1003
|
+
}[];
|
|
1004
|
+
/**
|
|
1005
|
+
* Format: date-time
|
|
1006
|
+
* @description When usage was last measured (about hourly while open).
|
|
1007
|
+
*/
|
|
1008
|
+
measured_at: string;
|
|
1009
|
+
/** @description Null for trial periods. Starter is invoiced at the start of the period it pays for. */
|
|
1010
|
+
invoice: components["schemas"]["InvoiceCopy"] | null;
|
|
1011
|
+
};
|
|
1012
|
+
/** @description A copy of the Stripe invoice for this period. Stripe is the source of truth. */
|
|
1013
|
+
InvoiceCopy: {
|
|
1014
|
+
/** @description Stripe's invoice number, e.g. "LILBOX-0042". */
|
|
1015
|
+
number: string;
|
|
1016
|
+
/** @description In the currency's major unit, e.g. 20.00. */
|
|
1017
|
+
amount: number;
|
|
1018
|
+
currency: string;
|
|
1019
|
+
/** @enum {string} */
|
|
1020
|
+
status: "draft" | "open" | "paid" | "failed" | "void";
|
|
1021
|
+
paid_at: string | null;
|
|
1022
|
+
/** @description Stripe's page for the invoice. */
|
|
1023
|
+
hosted_url: string | null;
|
|
1024
|
+
pdf_url: string | null;
|
|
1025
|
+
};
|
|
1026
|
+
Referral: {
|
|
1027
|
+
/** Format: uri */
|
|
1028
|
+
url: string;
|
|
1029
|
+
code: string;
|
|
1030
|
+
reward: {
|
|
1031
|
+
apps: number;
|
|
1032
|
+
};
|
|
1033
|
+
redeemed: boolean;
|
|
1034
|
+
};
|
|
1035
|
+
ErrorResponse: {
|
|
1036
|
+
error: components["schemas"]["ApiError"];
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
responses: {
|
|
1040
|
+
/** @description Error. `error.code` says what happened; see docs_url. */
|
|
1041
|
+
Error: {
|
|
1042
|
+
headers: {
|
|
1043
|
+
[name: string]: unknown;
|
|
1044
|
+
};
|
|
1045
|
+
content: {
|
|
1046
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
1047
|
+
};
|
|
1048
|
+
};
|
|
1049
|
+
};
|
|
1050
|
+
parameters: never;
|
|
1051
|
+
requestBodies: never;
|
|
1052
|
+
headers: never;
|
|
1053
|
+
pathItems: never;
|
|
1054
|
+
}
|
|
1055
|
+
export type $defs = Record<string, never>;
|
|
1056
|
+
export interface operations {
|
|
1057
|
+
whoami: {
|
|
1058
|
+
parameters: {
|
|
1059
|
+
query?: never;
|
|
1060
|
+
header?: never;
|
|
1061
|
+
path?: never;
|
|
1062
|
+
cookie?: never;
|
|
1063
|
+
};
|
|
1064
|
+
requestBody?: never;
|
|
1065
|
+
responses: {
|
|
1066
|
+
/** @description OK */
|
|
1067
|
+
200: {
|
|
1068
|
+
headers: {
|
|
1069
|
+
[name: string]: unknown;
|
|
1070
|
+
};
|
|
1071
|
+
content: {
|
|
1072
|
+
"application/json": components["schemas"]["Whoami"];
|
|
1073
|
+
};
|
|
1074
|
+
};
|
|
1075
|
+
400: components["responses"]["Error"];
|
|
1076
|
+
401: components["responses"]["Error"];
|
|
1077
|
+
403: components["responses"]["Error"];
|
|
1078
|
+
404: components["responses"]["Error"];
|
|
1079
|
+
409: components["responses"]["Error"];
|
|
1080
|
+
422: components["responses"]["Error"];
|
|
1081
|
+
429: components["responses"]["Error"];
|
|
1082
|
+
500: components["responses"]["Error"];
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
list_connected_agents: {
|
|
1086
|
+
parameters: {
|
|
1087
|
+
query?: {
|
|
1088
|
+
limit?: number;
|
|
1089
|
+
cursor?: string;
|
|
1090
|
+
};
|
|
1091
|
+
header?: never;
|
|
1092
|
+
path?: never;
|
|
1093
|
+
cookie?: never;
|
|
1094
|
+
};
|
|
1095
|
+
requestBody?: never;
|
|
1096
|
+
responses: {
|
|
1097
|
+
/** @description OK */
|
|
1098
|
+
200: {
|
|
1099
|
+
headers: {
|
|
1100
|
+
[name: string]: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
content: {
|
|
1103
|
+
"application/json": {
|
|
1104
|
+
agents: components["schemas"]["ConnectedAgent"][];
|
|
1105
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
1106
|
+
next_cursor?: string;
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
400: components["responses"]["Error"];
|
|
1111
|
+
401: components["responses"]["Error"];
|
|
1112
|
+
403: components["responses"]["Error"];
|
|
1113
|
+
404: components["responses"]["Error"];
|
|
1114
|
+
409: components["responses"]["Error"];
|
|
1115
|
+
422: components["responses"]["Error"];
|
|
1116
|
+
429: components["responses"]["Error"];
|
|
1117
|
+
500: components["responses"]["Error"];
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
revoke_connected_agent: {
|
|
1121
|
+
parameters: {
|
|
1122
|
+
query?: never;
|
|
1123
|
+
header?: {
|
|
1124
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1125
|
+
"Idempotency-Key"?: string;
|
|
1126
|
+
};
|
|
1127
|
+
path: {
|
|
1128
|
+
agent_id: string;
|
|
1129
|
+
};
|
|
1130
|
+
cookie?: never;
|
|
1131
|
+
};
|
|
1132
|
+
requestBody?: never;
|
|
1133
|
+
responses: {
|
|
1134
|
+
/** @description OK */
|
|
1135
|
+
200: {
|
|
1136
|
+
headers: {
|
|
1137
|
+
[name: string]: unknown;
|
|
1138
|
+
};
|
|
1139
|
+
content: {
|
|
1140
|
+
"application/json": {
|
|
1141
|
+
/** @constant */
|
|
1142
|
+
revoked: true;
|
|
1143
|
+
};
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
400: components["responses"]["Error"];
|
|
1147
|
+
401: components["responses"]["Error"];
|
|
1148
|
+
403: components["responses"]["Error"];
|
|
1149
|
+
404: components["responses"]["Error"];
|
|
1150
|
+
409: components["responses"]["Error"];
|
|
1151
|
+
422: components["responses"]["Error"];
|
|
1152
|
+
429: components["responses"]["Error"];
|
|
1153
|
+
500: components["responses"]["Error"];
|
|
1154
|
+
};
|
|
1155
|
+
};
|
|
1156
|
+
list_api_keys: {
|
|
1157
|
+
parameters: {
|
|
1158
|
+
query?: {
|
|
1159
|
+
limit?: number;
|
|
1160
|
+
cursor?: string;
|
|
1161
|
+
};
|
|
1162
|
+
header?: never;
|
|
1163
|
+
path?: never;
|
|
1164
|
+
cookie?: never;
|
|
1165
|
+
};
|
|
1166
|
+
requestBody?: never;
|
|
1167
|
+
responses: {
|
|
1168
|
+
/** @description OK */
|
|
1169
|
+
200: {
|
|
1170
|
+
headers: {
|
|
1171
|
+
[name: string]: unknown;
|
|
1172
|
+
};
|
|
1173
|
+
content: {
|
|
1174
|
+
"application/json": {
|
|
1175
|
+
api_keys: components["schemas"]["ApiKey"][];
|
|
1176
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
1177
|
+
next_cursor?: string;
|
|
1178
|
+
};
|
|
1179
|
+
};
|
|
1180
|
+
};
|
|
1181
|
+
400: components["responses"]["Error"];
|
|
1182
|
+
401: components["responses"]["Error"];
|
|
1183
|
+
403: components["responses"]["Error"];
|
|
1184
|
+
404: components["responses"]["Error"];
|
|
1185
|
+
409: components["responses"]["Error"];
|
|
1186
|
+
422: components["responses"]["Error"];
|
|
1187
|
+
429: components["responses"]["Error"];
|
|
1188
|
+
500: components["responses"]["Error"];
|
|
1189
|
+
};
|
|
1190
|
+
};
|
|
1191
|
+
create_api_key: {
|
|
1192
|
+
parameters: {
|
|
1193
|
+
query?: never;
|
|
1194
|
+
header?: {
|
|
1195
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1196
|
+
"Idempotency-Key"?: string;
|
|
1197
|
+
};
|
|
1198
|
+
path?: never;
|
|
1199
|
+
cookie?: never;
|
|
1200
|
+
};
|
|
1201
|
+
requestBody: {
|
|
1202
|
+
content: {
|
|
1203
|
+
"application/json": {
|
|
1204
|
+
name: string;
|
|
1205
|
+
scopes: ("apps:read" | "apps:write" | "deploy" | "billing:read")[];
|
|
1206
|
+
/** @description Omitted: never expires. */
|
|
1207
|
+
expires_in_days?: number;
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
responses: {
|
|
1212
|
+
/** @description OK */
|
|
1213
|
+
200: {
|
|
1214
|
+
headers: {
|
|
1215
|
+
[name: string]: unknown;
|
|
1216
|
+
};
|
|
1217
|
+
content: {
|
|
1218
|
+
"application/json": {
|
|
1219
|
+
api_key: components["schemas"]["ApiKey"];
|
|
1220
|
+
/** @description lbx_…, shown only now. */
|
|
1221
|
+
value: string;
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
400: components["responses"]["Error"];
|
|
1226
|
+
401: components["responses"]["Error"];
|
|
1227
|
+
403: components["responses"]["Error"];
|
|
1228
|
+
404: components["responses"]["Error"];
|
|
1229
|
+
409: components["responses"]["Error"];
|
|
1230
|
+
422: components["responses"]["Error"];
|
|
1231
|
+
429: components["responses"]["Error"];
|
|
1232
|
+
500: components["responses"]["Error"];
|
|
1233
|
+
};
|
|
1234
|
+
};
|
|
1235
|
+
revoke_api_key: {
|
|
1236
|
+
parameters: {
|
|
1237
|
+
query?: never;
|
|
1238
|
+
header?: {
|
|
1239
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1240
|
+
"Idempotency-Key"?: string;
|
|
1241
|
+
};
|
|
1242
|
+
path: {
|
|
1243
|
+
key_id: string;
|
|
1244
|
+
};
|
|
1245
|
+
cookie?: never;
|
|
1246
|
+
};
|
|
1247
|
+
requestBody?: never;
|
|
1248
|
+
responses: {
|
|
1249
|
+
/** @description OK */
|
|
1250
|
+
200: {
|
|
1251
|
+
headers: {
|
|
1252
|
+
[name: string]: unknown;
|
|
1253
|
+
};
|
|
1254
|
+
content: {
|
|
1255
|
+
"application/json": {
|
|
1256
|
+
/** @constant */
|
|
1257
|
+
revoked: true;
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
400: components["responses"]["Error"];
|
|
1262
|
+
401: components["responses"]["Error"];
|
|
1263
|
+
403: components["responses"]["Error"];
|
|
1264
|
+
404: components["responses"]["Error"];
|
|
1265
|
+
409: components["responses"]["Error"];
|
|
1266
|
+
422: components["responses"]["Error"];
|
|
1267
|
+
429: components["responses"]["Error"];
|
|
1268
|
+
500: components["responses"]["Error"];
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
list_apps: {
|
|
1272
|
+
parameters: {
|
|
1273
|
+
query?: {
|
|
1274
|
+
limit?: number;
|
|
1275
|
+
cursor?: string;
|
|
1276
|
+
};
|
|
1277
|
+
header?: never;
|
|
1278
|
+
path?: never;
|
|
1279
|
+
cookie?: never;
|
|
1280
|
+
};
|
|
1281
|
+
requestBody?: never;
|
|
1282
|
+
responses: {
|
|
1283
|
+
/** @description OK */
|
|
1284
|
+
200: {
|
|
1285
|
+
headers: {
|
|
1286
|
+
[name: string]: unknown;
|
|
1287
|
+
};
|
|
1288
|
+
content: {
|
|
1289
|
+
"application/json": {
|
|
1290
|
+
apps: components["schemas"]["App"][];
|
|
1291
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
1292
|
+
next_cursor?: string;
|
|
1293
|
+
};
|
|
1294
|
+
};
|
|
1295
|
+
};
|
|
1296
|
+
400: components["responses"]["Error"];
|
|
1297
|
+
401: components["responses"]["Error"];
|
|
1298
|
+
403: components["responses"]["Error"];
|
|
1299
|
+
404: components["responses"]["Error"];
|
|
1300
|
+
409: components["responses"]["Error"];
|
|
1301
|
+
422: components["responses"]["Error"];
|
|
1302
|
+
429: components["responses"]["Error"];
|
|
1303
|
+
500: components["responses"]["Error"];
|
|
1304
|
+
};
|
|
1305
|
+
};
|
|
1306
|
+
create_app: {
|
|
1307
|
+
parameters: {
|
|
1308
|
+
query?: never;
|
|
1309
|
+
header?: {
|
|
1310
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1311
|
+
"Idempotency-Key"?: string;
|
|
1312
|
+
};
|
|
1313
|
+
path?: never;
|
|
1314
|
+
cookie?: never;
|
|
1315
|
+
};
|
|
1316
|
+
requestBody: {
|
|
1317
|
+
content: {
|
|
1318
|
+
"application/json": {
|
|
1319
|
+
/** @description App name, also its hostname: <name>.lilbox.app. */
|
|
1320
|
+
name: string;
|
|
1321
|
+
/**
|
|
1322
|
+
* @description Validate and return what would happen, without changing anything.
|
|
1323
|
+
* @default false
|
|
1324
|
+
*/
|
|
1325
|
+
dry_run?: boolean;
|
|
1326
|
+
};
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
responses: {
|
|
1330
|
+
/** @description OK */
|
|
1331
|
+
200: {
|
|
1332
|
+
headers: {
|
|
1333
|
+
[name: string]: unknown;
|
|
1334
|
+
};
|
|
1335
|
+
content: {
|
|
1336
|
+
"application/json": {
|
|
1337
|
+
app: components["schemas"]["App"];
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
400: components["responses"]["Error"];
|
|
1342
|
+
401: components["responses"]["Error"];
|
|
1343
|
+
403: components["responses"]["Error"];
|
|
1344
|
+
404: components["responses"]["Error"];
|
|
1345
|
+
409: components["responses"]["Error"];
|
|
1346
|
+
422: components["responses"]["Error"];
|
|
1347
|
+
429: components["responses"]["Error"];
|
|
1348
|
+
500: components["responses"]["Error"];
|
|
1349
|
+
};
|
|
1350
|
+
};
|
|
1351
|
+
get_app: {
|
|
1352
|
+
parameters: {
|
|
1353
|
+
query?: never;
|
|
1354
|
+
header?: never;
|
|
1355
|
+
path: {
|
|
1356
|
+
app_id: string;
|
|
1357
|
+
};
|
|
1358
|
+
cookie?: never;
|
|
1359
|
+
};
|
|
1360
|
+
requestBody?: never;
|
|
1361
|
+
responses: {
|
|
1362
|
+
/** @description OK */
|
|
1363
|
+
200: {
|
|
1364
|
+
headers: {
|
|
1365
|
+
[name: string]: unknown;
|
|
1366
|
+
};
|
|
1367
|
+
content: {
|
|
1368
|
+
"application/json": {
|
|
1369
|
+
app: components["schemas"]["App"];
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
};
|
|
1373
|
+
400: components["responses"]["Error"];
|
|
1374
|
+
401: components["responses"]["Error"];
|
|
1375
|
+
403: components["responses"]["Error"];
|
|
1376
|
+
404: components["responses"]["Error"];
|
|
1377
|
+
409: components["responses"]["Error"];
|
|
1378
|
+
422: components["responses"]["Error"];
|
|
1379
|
+
429: components["responses"]["Error"];
|
|
1380
|
+
500: components["responses"]["Error"];
|
|
1381
|
+
};
|
|
1382
|
+
};
|
|
1383
|
+
delete_app: {
|
|
1384
|
+
parameters: {
|
|
1385
|
+
query: {
|
|
1386
|
+
confirm_name: string;
|
|
1387
|
+
dry_run?: boolean;
|
|
1388
|
+
};
|
|
1389
|
+
header?: {
|
|
1390
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1391
|
+
"Idempotency-Key"?: string;
|
|
1392
|
+
};
|
|
1393
|
+
path: {
|
|
1394
|
+
app_id: string;
|
|
1395
|
+
};
|
|
1396
|
+
cookie?: never;
|
|
1397
|
+
};
|
|
1398
|
+
requestBody?: never;
|
|
1399
|
+
responses: {
|
|
1400
|
+
/** @description OK */
|
|
1401
|
+
200: {
|
|
1402
|
+
headers: {
|
|
1403
|
+
[name: string]: unknown;
|
|
1404
|
+
};
|
|
1405
|
+
content: {
|
|
1406
|
+
"application/json": {
|
|
1407
|
+
app: components["schemas"]["App"];
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
400: components["responses"]["Error"];
|
|
1412
|
+
401: components["responses"]["Error"];
|
|
1413
|
+
403: components["responses"]["Error"];
|
|
1414
|
+
404: components["responses"]["Error"];
|
|
1415
|
+
409: components["responses"]["Error"];
|
|
1416
|
+
422: components["responses"]["Error"];
|
|
1417
|
+
429: components["responses"]["Error"];
|
|
1418
|
+
500: components["responses"]["Error"];
|
|
1419
|
+
};
|
|
1420
|
+
};
|
|
1421
|
+
list_config: {
|
|
1422
|
+
parameters: {
|
|
1423
|
+
query?: never;
|
|
1424
|
+
header?: never;
|
|
1425
|
+
path: {
|
|
1426
|
+
app_id: string;
|
|
1427
|
+
};
|
|
1428
|
+
cookie?: never;
|
|
1429
|
+
};
|
|
1430
|
+
requestBody?: never;
|
|
1431
|
+
responses: {
|
|
1432
|
+
/** @description OK */
|
|
1433
|
+
200: {
|
|
1434
|
+
headers: {
|
|
1435
|
+
[name: string]: unknown;
|
|
1436
|
+
};
|
|
1437
|
+
content: {
|
|
1438
|
+
"application/json": components["schemas"]["AppConfig"];
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
400: components["responses"]["Error"];
|
|
1442
|
+
401: components["responses"]["Error"];
|
|
1443
|
+
403: components["responses"]["Error"];
|
|
1444
|
+
404: components["responses"]["Error"];
|
|
1445
|
+
409: components["responses"]["Error"];
|
|
1446
|
+
422: components["responses"]["Error"];
|
|
1447
|
+
429: components["responses"]["Error"];
|
|
1448
|
+
500: components["responses"]["Error"];
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1451
|
+
set_env: {
|
|
1452
|
+
parameters: {
|
|
1453
|
+
query?: never;
|
|
1454
|
+
header?: {
|
|
1455
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1456
|
+
"Idempotency-Key"?: string;
|
|
1457
|
+
};
|
|
1458
|
+
path: {
|
|
1459
|
+
app_id: string;
|
|
1460
|
+
};
|
|
1461
|
+
cookie?: never;
|
|
1462
|
+
};
|
|
1463
|
+
requestBody: {
|
|
1464
|
+
content: {
|
|
1465
|
+
"application/json": {
|
|
1466
|
+
vars: {
|
|
1467
|
+
[key: string]: string;
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
responses: {
|
|
1473
|
+
/** @description OK */
|
|
1474
|
+
200: {
|
|
1475
|
+
headers: {
|
|
1476
|
+
[name: string]: unknown;
|
|
1477
|
+
};
|
|
1478
|
+
content: {
|
|
1479
|
+
"application/json": {
|
|
1480
|
+
config: components["schemas"]["AppConfig"];
|
|
1481
|
+
/** @description The deployment that applies the change. Null if nothing is deployed yet. */
|
|
1482
|
+
deployment: components["schemas"]["Deployment"] | null;
|
|
1483
|
+
};
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
400: components["responses"]["Error"];
|
|
1487
|
+
401: components["responses"]["Error"];
|
|
1488
|
+
403: components["responses"]["Error"];
|
|
1489
|
+
404: components["responses"]["Error"];
|
|
1490
|
+
409: components["responses"]["Error"];
|
|
1491
|
+
422: components["responses"]["Error"];
|
|
1492
|
+
429: components["responses"]["Error"];
|
|
1493
|
+
500: components["responses"]["Error"];
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
unset_env: {
|
|
1497
|
+
parameters: {
|
|
1498
|
+
query?: never;
|
|
1499
|
+
header?: {
|
|
1500
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1501
|
+
"Idempotency-Key"?: string;
|
|
1502
|
+
};
|
|
1503
|
+
path: {
|
|
1504
|
+
app_id: string;
|
|
1505
|
+
};
|
|
1506
|
+
cookie?: never;
|
|
1507
|
+
};
|
|
1508
|
+
requestBody: {
|
|
1509
|
+
content: {
|
|
1510
|
+
"application/json": {
|
|
1511
|
+
names: string[];
|
|
1512
|
+
};
|
|
1513
|
+
};
|
|
1514
|
+
};
|
|
1515
|
+
responses: {
|
|
1516
|
+
/** @description OK */
|
|
1517
|
+
200: {
|
|
1518
|
+
headers: {
|
|
1519
|
+
[name: string]: unknown;
|
|
1520
|
+
};
|
|
1521
|
+
content: {
|
|
1522
|
+
"application/json": {
|
|
1523
|
+
config: components["schemas"]["AppConfig"];
|
|
1524
|
+
/** @description The deployment that applies the change. Null if nothing is deployed yet. */
|
|
1525
|
+
deployment: components["schemas"]["Deployment"] | null;
|
|
1526
|
+
};
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
400: components["responses"]["Error"];
|
|
1530
|
+
401: components["responses"]["Error"];
|
|
1531
|
+
403: components["responses"]["Error"];
|
|
1532
|
+
404: components["responses"]["Error"];
|
|
1533
|
+
409: components["responses"]["Error"];
|
|
1534
|
+
422: components["responses"]["Error"];
|
|
1535
|
+
429: components["responses"]["Error"];
|
|
1536
|
+
500: components["responses"]["Error"];
|
|
1537
|
+
};
|
|
1538
|
+
};
|
|
1539
|
+
set_secret: {
|
|
1540
|
+
parameters: {
|
|
1541
|
+
query?: never;
|
|
1542
|
+
header?: {
|
|
1543
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1544
|
+
"Idempotency-Key"?: string;
|
|
1545
|
+
};
|
|
1546
|
+
path: {
|
|
1547
|
+
app_id: string;
|
|
1548
|
+
name: string;
|
|
1549
|
+
};
|
|
1550
|
+
cookie?: never;
|
|
1551
|
+
};
|
|
1552
|
+
requestBody: {
|
|
1553
|
+
content: {
|
|
1554
|
+
"application/json": {
|
|
1555
|
+
value: string;
|
|
1556
|
+
};
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1559
|
+
responses: {
|
|
1560
|
+
/** @description OK */
|
|
1561
|
+
200: {
|
|
1562
|
+
headers: {
|
|
1563
|
+
[name: string]: unknown;
|
|
1564
|
+
};
|
|
1565
|
+
content: {
|
|
1566
|
+
"application/json": {
|
|
1567
|
+
config: components["schemas"]["AppConfig"];
|
|
1568
|
+
/** @description The deployment that applies the change. Null if nothing is deployed yet. */
|
|
1569
|
+
deployment: components["schemas"]["Deployment"] | null;
|
|
1570
|
+
};
|
|
1571
|
+
};
|
|
1572
|
+
};
|
|
1573
|
+
400: components["responses"]["Error"];
|
|
1574
|
+
401: components["responses"]["Error"];
|
|
1575
|
+
403: components["responses"]["Error"];
|
|
1576
|
+
404: components["responses"]["Error"];
|
|
1577
|
+
409: components["responses"]["Error"];
|
|
1578
|
+
422: components["responses"]["Error"];
|
|
1579
|
+
429: components["responses"]["Error"];
|
|
1580
|
+
500: components["responses"]["Error"];
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
generate_secret: {
|
|
1584
|
+
parameters: {
|
|
1585
|
+
query?: never;
|
|
1586
|
+
header?: {
|
|
1587
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1588
|
+
"Idempotency-Key"?: string;
|
|
1589
|
+
};
|
|
1590
|
+
path: {
|
|
1591
|
+
app_id: string;
|
|
1592
|
+
name: string;
|
|
1593
|
+
};
|
|
1594
|
+
cookie?: never;
|
|
1595
|
+
};
|
|
1596
|
+
requestBody?: {
|
|
1597
|
+
content: {
|
|
1598
|
+
"application/json": {
|
|
1599
|
+
/** @default 48 */
|
|
1600
|
+
length?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* @default base64url
|
|
1603
|
+
* @enum {string}
|
|
1604
|
+
*/
|
|
1605
|
+
charset?: "base64url" | "hex" | "alphanumeric";
|
|
1606
|
+
};
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1609
|
+
responses: {
|
|
1610
|
+
/** @description OK */
|
|
1611
|
+
200: {
|
|
1612
|
+
headers: {
|
|
1613
|
+
[name: string]: unknown;
|
|
1614
|
+
};
|
|
1615
|
+
content: {
|
|
1616
|
+
"application/json": {
|
|
1617
|
+
config: components["schemas"]["AppConfig"];
|
|
1618
|
+
/** @description The deployment that applies the change. Null if nothing is deployed yet. */
|
|
1619
|
+
deployment: components["schemas"]["Deployment"] | null;
|
|
1620
|
+
};
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
400: components["responses"]["Error"];
|
|
1624
|
+
401: components["responses"]["Error"];
|
|
1625
|
+
403: components["responses"]["Error"];
|
|
1626
|
+
404: components["responses"]["Error"];
|
|
1627
|
+
409: components["responses"]["Error"];
|
|
1628
|
+
422: components["responses"]["Error"];
|
|
1629
|
+
429: components["responses"]["Error"];
|
|
1630
|
+
500: components["responses"]["Error"];
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
check: {
|
|
1634
|
+
parameters: {
|
|
1635
|
+
query?: never;
|
|
1636
|
+
header?: never;
|
|
1637
|
+
path: {
|
|
1638
|
+
app_id: string;
|
|
1639
|
+
};
|
|
1640
|
+
cookie?: never;
|
|
1641
|
+
};
|
|
1642
|
+
requestBody: {
|
|
1643
|
+
content: {
|
|
1644
|
+
"application/json": {
|
|
1645
|
+
/** @description Inline files or a GitHub ref. To check a CLI upload, create the deployment: it fails at the check step with the same issues. */
|
|
1646
|
+
source: {
|
|
1647
|
+
/** @constant */
|
|
1648
|
+
type: "files";
|
|
1649
|
+
files: {
|
|
1650
|
+
/** @description Path relative to the source root, e.g. "src/index.js". */
|
|
1651
|
+
path: string;
|
|
1652
|
+
content: string;
|
|
1653
|
+
/**
|
|
1654
|
+
* @description base64 for binary files.
|
|
1655
|
+
* @default utf8
|
|
1656
|
+
* @enum {string}
|
|
1657
|
+
*/
|
|
1658
|
+
encoding?: "utf8" | "base64";
|
|
1659
|
+
}[];
|
|
1660
|
+
/** @description Start from this earlier deployment's source and apply only these files and deletions. */
|
|
1661
|
+
base_deployment_id?: string;
|
|
1662
|
+
/** @description With base_deployment_id: paths to remove. */
|
|
1663
|
+
delete?: string[];
|
|
1664
|
+
} | {
|
|
1665
|
+
/** @constant */
|
|
1666
|
+
type: "github";
|
|
1667
|
+
/** @description Branch, tag or commit SHA, e.g. "main". */
|
|
1668
|
+
ref: string;
|
|
1669
|
+
};
|
|
1670
|
+
/** @description Capabilities you confirm the app does NOT need, after capability_unconfirmed. */
|
|
1671
|
+
ack?: ("work_after_response" | "in_process_scheduler" | "queue_consumer" | "websockets" | "writes_outside_tmp" | "needs_root" | "long_requests" | "large_bodies" | "always_on" | "slow_boot")[];
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
};
|
|
1675
|
+
responses: {
|
|
1676
|
+
/** @description OK */
|
|
1677
|
+
200: {
|
|
1678
|
+
headers: {
|
|
1679
|
+
[name: string]: unknown;
|
|
1680
|
+
};
|
|
1681
|
+
content: {
|
|
1682
|
+
"application/json": components["schemas"]["CheckResult"];
|
|
1683
|
+
};
|
|
1684
|
+
};
|
|
1685
|
+
400: components["responses"]["Error"];
|
|
1686
|
+
401: components["responses"]["Error"];
|
|
1687
|
+
403: components["responses"]["Error"];
|
|
1688
|
+
404: components["responses"]["Error"];
|
|
1689
|
+
409: components["responses"]["Error"];
|
|
1690
|
+
422: components["responses"]["Error"];
|
|
1691
|
+
429: components["responses"]["Error"];
|
|
1692
|
+
500: components["responses"]["Error"];
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
list_deployments: {
|
|
1696
|
+
parameters: {
|
|
1697
|
+
query?: {
|
|
1698
|
+
status?: "awaiting_source" | "queued" | "running" | "live" | "superseded" | "failed" | "cancelled";
|
|
1699
|
+
limit?: number;
|
|
1700
|
+
cursor?: string;
|
|
1701
|
+
};
|
|
1702
|
+
header?: never;
|
|
1703
|
+
path: {
|
|
1704
|
+
app_id: string;
|
|
1705
|
+
};
|
|
1706
|
+
cookie?: never;
|
|
1707
|
+
};
|
|
1708
|
+
requestBody?: never;
|
|
1709
|
+
responses: {
|
|
1710
|
+
/** @description OK */
|
|
1711
|
+
200: {
|
|
1712
|
+
headers: {
|
|
1713
|
+
[name: string]: unknown;
|
|
1714
|
+
};
|
|
1715
|
+
content: {
|
|
1716
|
+
"application/json": {
|
|
1717
|
+
deployments: components["schemas"]["Deployment"][];
|
|
1718
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
1719
|
+
next_cursor?: string;
|
|
1720
|
+
};
|
|
1721
|
+
};
|
|
1722
|
+
};
|
|
1723
|
+
400: components["responses"]["Error"];
|
|
1724
|
+
401: components["responses"]["Error"];
|
|
1725
|
+
403: components["responses"]["Error"];
|
|
1726
|
+
404: components["responses"]["Error"];
|
|
1727
|
+
409: components["responses"]["Error"];
|
|
1728
|
+
422: components["responses"]["Error"];
|
|
1729
|
+
429: components["responses"]["Error"];
|
|
1730
|
+
500: components["responses"]["Error"];
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
create_deployment: {
|
|
1734
|
+
parameters: {
|
|
1735
|
+
query?: never;
|
|
1736
|
+
header?: {
|
|
1737
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1738
|
+
"Idempotency-Key"?: string;
|
|
1739
|
+
};
|
|
1740
|
+
path: {
|
|
1741
|
+
app_id: string;
|
|
1742
|
+
};
|
|
1743
|
+
cookie?: never;
|
|
1744
|
+
};
|
|
1745
|
+
requestBody: {
|
|
1746
|
+
content: {
|
|
1747
|
+
"application/json": {
|
|
1748
|
+
source: {
|
|
1749
|
+
/** @constant */
|
|
1750
|
+
type: "upload";
|
|
1751
|
+
size_bytes: number;
|
|
1752
|
+
sha256: string;
|
|
1753
|
+
} | {
|
|
1754
|
+
/** @constant */
|
|
1755
|
+
type: "files";
|
|
1756
|
+
files: {
|
|
1757
|
+
/** @description Path relative to the source root, e.g. "src/index.js". */
|
|
1758
|
+
path: string;
|
|
1759
|
+
content: string;
|
|
1760
|
+
/**
|
|
1761
|
+
* @description base64 for binary files.
|
|
1762
|
+
* @default utf8
|
|
1763
|
+
* @enum {string}
|
|
1764
|
+
*/
|
|
1765
|
+
encoding?: "utf8" | "base64";
|
|
1766
|
+
}[];
|
|
1767
|
+
/** @description Start from this earlier deployment's source and apply only these files and deletions. */
|
|
1768
|
+
base_deployment_id?: string;
|
|
1769
|
+
/** @description With base_deployment_id: paths to remove. */
|
|
1770
|
+
delete?: string[];
|
|
1771
|
+
} | {
|
|
1772
|
+
/** @constant */
|
|
1773
|
+
type: "github";
|
|
1774
|
+
/** @description Branch, tag or commit SHA, e.g. "main". */
|
|
1775
|
+
ref: string;
|
|
1776
|
+
};
|
|
1777
|
+
ack?: ("work_after_response" | "in_process_scheduler" | "queue_consumer" | "websockets" | "writes_outside_tmp" | "needs_root" | "long_requests" | "large_bodies" | "always_on" | "slow_boot")[];
|
|
1778
|
+
/**
|
|
1779
|
+
* @description Validate and return what would happen, without changing anything.
|
|
1780
|
+
* @default false
|
|
1781
|
+
*/
|
|
1782
|
+
dry_run?: boolean;
|
|
1783
|
+
};
|
|
1784
|
+
};
|
|
1785
|
+
};
|
|
1786
|
+
responses: {
|
|
1787
|
+
/** @description OK */
|
|
1788
|
+
200: {
|
|
1789
|
+
headers: {
|
|
1790
|
+
[name: string]: unknown;
|
|
1791
|
+
};
|
|
1792
|
+
content: {
|
|
1793
|
+
"application/json": {
|
|
1794
|
+
deployment: components["schemas"]["Deployment"];
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
};
|
|
1798
|
+
400: components["responses"]["Error"];
|
|
1799
|
+
401: components["responses"]["Error"];
|
|
1800
|
+
403: components["responses"]["Error"];
|
|
1801
|
+
404: components["responses"]["Error"];
|
|
1802
|
+
409: components["responses"]["Error"];
|
|
1803
|
+
422: components["responses"]["Error"];
|
|
1804
|
+
429: components["responses"]["Error"];
|
|
1805
|
+
500: components["responses"]["Error"];
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1808
|
+
get_deployment: {
|
|
1809
|
+
parameters: {
|
|
1810
|
+
query?: {
|
|
1811
|
+
wait_seconds?: number;
|
|
1812
|
+
};
|
|
1813
|
+
header?: never;
|
|
1814
|
+
path: {
|
|
1815
|
+
deployment_id: string;
|
|
1816
|
+
};
|
|
1817
|
+
cookie?: never;
|
|
1818
|
+
};
|
|
1819
|
+
requestBody?: never;
|
|
1820
|
+
responses: {
|
|
1821
|
+
/** @description OK */
|
|
1822
|
+
200: {
|
|
1823
|
+
headers: {
|
|
1824
|
+
[name: string]: unknown;
|
|
1825
|
+
};
|
|
1826
|
+
content: {
|
|
1827
|
+
"application/json": {
|
|
1828
|
+
deployment: components["schemas"]["Deployment"];
|
|
1829
|
+
};
|
|
1830
|
+
};
|
|
1831
|
+
};
|
|
1832
|
+
400: components["responses"]["Error"];
|
|
1833
|
+
401: components["responses"]["Error"];
|
|
1834
|
+
403: components["responses"]["Error"];
|
|
1835
|
+
404: components["responses"]["Error"];
|
|
1836
|
+
409: components["responses"]["Error"];
|
|
1837
|
+
422: components["responses"]["Error"];
|
|
1838
|
+
429: components["responses"]["Error"];
|
|
1839
|
+
500: components["responses"]["Error"];
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
cancel_deployment: {
|
|
1843
|
+
parameters: {
|
|
1844
|
+
query?: never;
|
|
1845
|
+
header?: {
|
|
1846
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1847
|
+
"Idempotency-Key"?: string;
|
|
1848
|
+
};
|
|
1849
|
+
path: {
|
|
1850
|
+
deployment_id: string;
|
|
1851
|
+
};
|
|
1852
|
+
cookie?: never;
|
|
1853
|
+
};
|
|
1854
|
+
requestBody?: never;
|
|
1855
|
+
responses: {
|
|
1856
|
+
/** @description OK */
|
|
1857
|
+
200: {
|
|
1858
|
+
headers: {
|
|
1859
|
+
[name: string]: unknown;
|
|
1860
|
+
};
|
|
1861
|
+
content: {
|
|
1862
|
+
"application/json": {
|
|
1863
|
+
deployment: components["schemas"]["Deployment"];
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
400: components["responses"]["Error"];
|
|
1868
|
+
401: components["responses"]["Error"];
|
|
1869
|
+
403: components["responses"]["Error"];
|
|
1870
|
+
404: components["responses"]["Error"];
|
|
1871
|
+
409: components["responses"]["Error"];
|
|
1872
|
+
422: components["responses"]["Error"];
|
|
1873
|
+
429: components["responses"]["Error"];
|
|
1874
|
+
500: components["responses"]["Error"];
|
|
1875
|
+
};
|
|
1876
|
+
};
|
|
1877
|
+
get_deployment_logs: {
|
|
1878
|
+
parameters: {
|
|
1879
|
+
query?: {
|
|
1880
|
+
step?: "receive_source" | "check" | "build" | "smoke_test" | "release" | "route" | "health_check";
|
|
1881
|
+
grep?: string;
|
|
1882
|
+
limit?: number;
|
|
1883
|
+
cursor?: string;
|
|
1884
|
+
};
|
|
1885
|
+
header?: never;
|
|
1886
|
+
path: {
|
|
1887
|
+
deployment_id: string;
|
|
1888
|
+
};
|
|
1889
|
+
cookie?: never;
|
|
1890
|
+
};
|
|
1891
|
+
requestBody?: never;
|
|
1892
|
+
responses: {
|
|
1893
|
+
/** @description OK */
|
|
1894
|
+
200: {
|
|
1895
|
+
headers: {
|
|
1896
|
+
[name: string]: unknown;
|
|
1897
|
+
};
|
|
1898
|
+
content: {
|
|
1899
|
+
"application/json": {
|
|
1900
|
+
lines: {
|
|
1901
|
+
/**
|
|
1902
|
+
* Format: date-time
|
|
1903
|
+
* @description RFC 3339 timestamp, UTC.
|
|
1904
|
+
*/
|
|
1905
|
+
ts: string;
|
|
1906
|
+
/** @enum {string} */
|
|
1907
|
+
step: "receive_source" | "check" | "build" | "smoke_test" | "release" | "route" | "health_check";
|
|
1908
|
+
message: string;
|
|
1909
|
+
}[];
|
|
1910
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
1911
|
+
next_cursor?: string;
|
|
1912
|
+
};
|
|
1913
|
+
};
|
|
1914
|
+
};
|
|
1915
|
+
400: components["responses"]["Error"];
|
|
1916
|
+
401: components["responses"]["Error"];
|
|
1917
|
+
403: components["responses"]["Error"];
|
|
1918
|
+
404: components["responses"]["Error"];
|
|
1919
|
+
409: components["responses"]["Error"];
|
|
1920
|
+
422: components["responses"]["Error"];
|
|
1921
|
+
429: components["responses"]["Error"];
|
|
1922
|
+
500: components["responses"]["Error"];
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
rollback: {
|
|
1926
|
+
parameters: {
|
|
1927
|
+
query?: never;
|
|
1928
|
+
header?: {
|
|
1929
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
1930
|
+
"Idempotency-Key"?: string;
|
|
1931
|
+
};
|
|
1932
|
+
path: {
|
|
1933
|
+
app_id: string;
|
|
1934
|
+
};
|
|
1935
|
+
cookie?: never;
|
|
1936
|
+
};
|
|
1937
|
+
requestBody: {
|
|
1938
|
+
content: {
|
|
1939
|
+
"application/json": {
|
|
1940
|
+
/** @description ID with the "dep_" prefix. */
|
|
1941
|
+
to_deployment_id: string;
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
};
|
|
1945
|
+
responses: {
|
|
1946
|
+
/** @description OK */
|
|
1947
|
+
200: {
|
|
1948
|
+
headers: {
|
|
1949
|
+
[name: string]: unknown;
|
|
1950
|
+
};
|
|
1951
|
+
content: {
|
|
1952
|
+
"application/json": {
|
|
1953
|
+
deployment: components["schemas"]["Deployment"];
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1956
|
+
};
|
|
1957
|
+
400: components["responses"]["Error"];
|
|
1958
|
+
401: components["responses"]["Error"];
|
|
1959
|
+
403: components["responses"]["Error"];
|
|
1960
|
+
404: components["responses"]["Error"];
|
|
1961
|
+
409: components["responses"]["Error"];
|
|
1962
|
+
422: components["responses"]["Error"];
|
|
1963
|
+
429: components["responses"]["Error"];
|
|
1964
|
+
500: components["responses"]["Error"];
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
get_status: {
|
|
1968
|
+
parameters: {
|
|
1969
|
+
query?: never;
|
|
1970
|
+
header?: never;
|
|
1971
|
+
path: {
|
|
1972
|
+
app_id: string;
|
|
1973
|
+
};
|
|
1974
|
+
cookie?: never;
|
|
1975
|
+
};
|
|
1976
|
+
requestBody?: never;
|
|
1977
|
+
responses: {
|
|
1978
|
+
/** @description OK */
|
|
1979
|
+
200: {
|
|
1980
|
+
headers: {
|
|
1981
|
+
[name: string]: unknown;
|
|
1982
|
+
};
|
|
1983
|
+
content: {
|
|
1984
|
+
"application/json": components["schemas"]["AppStatusReport"];
|
|
1985
|
+
};
|
|
1986
|
+
};
|
|
1987
|
+
400: components["responses"]["Error"];
|
|
1988
|
+
401: components["responses"]["Error"];
|
|
1989
|
+
403: components["responses"]["Error"];
|
|
1990
|
+
404: components["responses"]["Error"];
|
|
1991
|
+
409: components["responses"]["Error"];
|
|
1992
|
+
422: components["responses"]["Error"];
|
|
1993
|
+
429: components["responses"]["Error"];
|
|
1994
|
+
500: components["responses"]["Error"];
|
|
1995
|
+
};
|
|
1996
|
+
};
|
|
1997
|
+
get_logs: {
|
|
1998
|
+
parameters: {
|
|
1999
|
+
query?: {
|
|
2000
|
+
since?: string;
|
|
2001
|
+
until?: string;
|
|
2002
|
+
grep?: string;
|
|
2003
|
+
limit?: number;
|
|
2004
|
+
cursor?: string;
|
|
2005
|
+
};
|
|
2006
|
+
header?: never;
|
|
2007
|
+
path: {
|
|
2008
|
+
app_id: string;
|
|
2009
|
+
};
|
|
2010
|
+
cookie?: never;
|
|
2011
|
+
};
|
|
2012
|
+
requestBody?: never;
|
|
2013
|
+
responses: {
|
|
2014
|
+
/** @description OK */
|
|
2015
|
+
200: {
|
|
2016
|
+
headers: {
|
|
2017
|
+
[name: string]: unknown;
|
|
2018
|
+
};
|
|
2019
|
+
content: {
|
|
2020
|
+
"application/json": {
|
|
2021
|
+
lines: {
|
|
2022
|
+
/**
|
|
2023
|
+
* Format: date-time
|
|
2024
|
+
* @description RFC 3339 timestamp, UTC.
|
|
2025
|
+
*/
|
|
2026
|
+
ts: string;
|
|
2027
|
+
/**
|
|
2028
|
+
* @description platform: lilbox's own lines (cold start, timeout, crash, cron call).
|
|
2029
|
+
* @enum {string}
|
|
2030
|
+
*/
|
|
2031
|
+
stream: "stdout" | "stderr" | "platform";
|
|
2032
|
+
deployment_number?: number;
|
|
2033
|
+
message: string;
|
|
2034
|
+
}[];
|
|
2035
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
2036
|
+
next_cursor?: string;
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2040
|
+
400: components["responses"]["Error"];
|
|
2041
|
+
401: components["responses"]["Error"];
|
|
2042
|
+
403: components["responses"]["Error"];
|
|
2043
|
+
404: components["responses"]["Error"];
|
|
2044
|
+
409: components["responses"]["Error"];
|
|
2045
|
+
422: components["responses"]["Error"];
|
|
2046
|
+
429: components["responses"]["Error"];
|
|
2047
|
+
500: components["responses"]["Error"];
|
|
2048
|
+
};
|
|
2049
|
+
};
|
|
2050
|
+
list_activity: {
|
|
2051
|
+
parameters: {
|
|
2052
|
+
query?: {
|
|
2053
|
+
app_id?: string;
|
|
2054
|
+
credential_id?: string;
|
|
2055
|
+
since?: string;
|
|
2056
|
+
until?: string;
|
|
2057
|
+
limit?: number;
|
|
2058
|
+
cursor?: string;
|
|
2059
|
+
};
|
|
2060
|
+
header?: never;
|
|
2061
|
+
path?: never;
|
|
2062
|
+
cookie?: never;
|
|
2063
|
+
};
|
|
2064
|
+
requestBody?: never;
|
|
2065
|
+
responses: {
|
|
2066
|
+
/** @description OK */
|
|
2067
|
+
200: {
|
|
2068
|
+
headers: {
|
|
2069
|
+
[name: string]: unknown;
|
|
2070
|
+
};
|
|
2071
|
+
content: {
|
|
2072
|
+
"application/json": {
|
|
2073
|
+
events: components["schemas"]["ActivityEvent"][];
|
|
2074
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
2075
|
+
next_cursor?: string;
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
};
|
|
2079
|
+
400: components["responses"]["Error"];
|
|
2080
|
+
401: components["responses"]["Error"];
|
|
2081
|
+
403: components["responses"]["Error"];
|
|
2082
|
+
404: components["responses"]["Error"];
|
|
2083
|
+
409: components["responses"]["Error"];
|
|
2084
|
+
422: components["responses"]["Error"];
|
|
2085
|
+
429: components["responses"]["Error"];
|
|
2086
|
+
500: components["responses"]["Error"];
|
|
2087
|
+
};
|
|
2088
|
+
};
|
|
2089
|
+
get_plans: {
|
|
2090
|
+
parameters: {
|
|
2091
|
+
query?: never;
|
|
2092
|
+
header?: never;
|
|
2093
|
+
path?: never;
|
|
2094
|
+
cookie?: never;
|
|
2095
|
+
};
|
|
2096
|
+
requestBody?: never;
|
|
2097
|
+
responses: {
|
|
2098
|
+
/** @description OK */
|
|
2099
|
+
200: {
|
|
2100
|
+
headers: {
|
|
2101
|
+
[name: string]: unknown;
|
|
2102
|
+
};
|
|
2103
|
+
content: {
|
|
2104
|
+
"application/json": {
|
|
2105
|
+
plans: components["schemas"]["BillingPlan"][];
|
|
2106
|
+
};
|
|
2107
|
+
};
|
|
2108
|
+
};
|
|
2109
|
+
400: components["responses"]["Error"];
|
|
2110
|
+
401: components["responses"]["Error"];
|
|
2111
|
+
403: components["responses"]["Error"];
|
|
2112
|
+
404: components["responses"]["Error"];
|
|
2113
|
+
409: components["responses"]["Error"];
|
|
2114
|
+
422: components["responses"]["Error"];
|
|
2115
|
+
429: components["responses"]["Error"];
|
|
2116
|
+
500: components["responses"]["Error"];
|
|
2117
|
+
};
|
|
2118
|
+
};
|
|
2119
|
+
get_subscription: {
|
|
2120
|
+
parameters: {
|
|
2121
|
+
query?: never;
|
|
2122
|
+
header?: never;
|
|
2123
|
+
path?: never;
|
|
2124
|
+
cookie?: never;
|
|
2125
|
+
};
|
|
2126
|
+
requestBody?: never;
|
|
2127
|
+
responses: {
|
|
2128
|
+
/** @description OK */
|
|
2129
|
+
200: {
|
|
2130
|
+
headers: {
|
|
2131
|
+
[name: string]: unknown;
|
|
2132
|
+
};
|
|
2133
|
+
content: {
|
|
2134
|
+
"application/json": {
|
|
2135
|
+
subscription: components["schemas"]["Subscription"];
|
|
2136
|
+
bonuses: {
|
|
2137
|
+
/** @enum {string} */
|
|
2138
|
+
meter: "apps" | "compute_hours" | "requests" | "egress_gb" | "build_minutes";
|
|
2139
|
+
amount: number;
|
|
2140
|
+
/** @enum {string} */
|
|
2141
|
+
source: "referral" | "promotion" | "support";
|
|
2142
|
+
}[];
|
|
2143
|
+
};
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
400: components["responses"]["Error"];
|
|
2147
|
+
401: components["responses"]["Error"];
|
|
2148
|
+
403: components["responses"]["Error"];
|
|
2149
|
+
404: components["responses"]["Error"];
|
|
2150
|
+
409: components["responses"]["Error"];
|
|
2151
|
+
422: components["responses"]["Error"];
|
|
2152
|
+
429: components["responses"]["Error"];
|
|
2153
|
+
500: components["responses"]["Error"];
|
|
2154
|
+
};
|
|
2155
|
+
};
|
|
2156
|
+
get_usage: {
|
|
2157
|
+
parameters: {
|
|
2158
|
+
query?: {
|
|
2159
|
+
by_app?: boolean;
|
|
2160
|
+
};
|
|
2161
|
+
header?: never;
|
|
2162
|
+
path?: never;
|
|
2163
|
+
cookie?: never;
|
|
2164
|
+
};
|
|
2165
|
+
requestBody?: never;
|
|
2166
|
+
responses: {
|
|
2167
|
+
/** @description OK */
|
|
2168
|
+
200: {
|
|
2169
|
+
headers: {
|
|
2170
|
+
[name: string]: unknown;
|
|
2171
|
+
};
|
|
2172
|
+
content: {
|
|
2173
|
+
"application/json": {
|
|
2174
|
+
/** @description Null before the trial clock starts. */
|
|
2175
|
+
period: components["schemas"]["BillingPeriod"] | null;
|
|
2176
|
+
};
|
|
2177
|
+
};
|
|
2178
|
+
};
|
|
2179
|
+
400: components["responses"]["Error"];
|
|
2180
|
+
401: components["responses"]["Error"];
|
|
2181
|
+
403: components["responses"]["Error"];
|
|
2182
|
+
404: components["responses"]["Error"];
|
|
2183
|
+
409: components["responses"]["Error"];
|
|
2184
|
+
422: components["responses"]["Error"];
|
|
2185
|
+
429: components["responses"]["Error"];
|
|
2186
|
+
500: components["responses"]["Error"];
|
|
2187
|
+
};
|
|
2188
|
+
};
|
|
2189
|
+
list_billing_periods: {
|
|
2190
|
+
parameters: {
|
|
2191
|
+
query?: {
|
|
2192
|
+
by_app?: boolean;
|
|
2193
|
+
limit?: number;
|
|
2194
|
+
cursor?: string;
|
|
2195
|
+
};
|
|
2196
|
+
header?: never;
|
|
2197
|
+
path?: never;
|
|
2198
|
+
cookie?: never;
|
|
2199
|
+
};
|
|
2200
|
+
requestBody?: never;
|
|
2201
|
+
responses: {
|
|
2202
|
+
/** @description OK */
|
|
2203
|
+
200: {
|
|
2204
|
+
headers: {
|
|
2205
|
+
[name: string]: unknown;
|
|
2206
|
+
};
|
|
2207
|
+
content: {
|
|
2208
|
+
"application/json": {
|
|
2209
|
+
periods: components["schemas"]["BillingPeriod"][];
|
|
2210
|
+
/** @description Pass as cursor to get the next page. Absent on the last page. */
|
|
2211
|
+
next_cursor?: string;
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2214
|
+
};
|
|
2215
|
+
400: components["responses"]["Error"];
|
|
2216
|
+
401: components["responses"]["Error"];
|
|
2217
|
+
403: components["responses"]["Error"];
|
|
2218
|
+
404: components["responses"]["Error"];
|
|
2219
|
+
409: components["responses"]["Error"];
|
|
2220
|
+
422: components["responses"]["Error"];
|
|
2221
|
+
429: components["responses"]["Error"];
|
|
2222
|
+
500: components["responses"]["Error"];
|
|
2223
|
+
};
|
|
2224
|
+
};
|
|
2225
|
+
request_upgrade: {
|
|
2226
|
+
parameters: {
|
|
2227
|
+
query?: never;
|
|
2228
|
+
header?: {
|
|
2229
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
2230
|
+
"Idempotency-Key"?: string;
|
|
2231
|
+
};
|
|
2232
|
+
path?: never;
|
|
2233
|
+
cookie?: never;
|
|
2234
|
+
};
|
|
2235
|
+
requestBody: {
|
|
2236
|
+
content: {
|
|
2237
|
+
"application/json": {
|
|
2238
|
+
/** @enum {string} */
|
|
2239
|
+
plan: "starter" | "pro" | "scale";
|
|
2240
|
+
};
|
|
2241
|
+
};
|
|
2242
|
+
};
|
|
2243
|
+
responses: {
|
|
2244
|
+
/** @description OK */
|
|
2245
|
+
200: {
|
|
2246
|
+
headers: {
|
|
2247
|
+
[name: string]: unknown;
|
|
2248
|
+
};
|
|
2249
|
+
content: {
|
|
2250
|
+
"application/json": {
|
|
2251
|
+
/** @enum {string} */
|
|
2252
|
+
status: "checkout_required" | "already_on_plan";
|
|
2253
|
+
/**
|
|
2254
|
+
* Format: uri
|
|
2255
|
+
* @description Stripe Checkout. Only a human can complete it.
|
|
2256
|
+
*/
|
|
2257
|
+
checkout_url?: string;
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
};
|
|
2261
|
+
400: components["responses"]["Error"];
|
|
2262
|
+
401: components["responses"]["Error"];
|
|
2263
|
+
403: components["responses"]["Error"];
|
|
2264
|
+
404: components["responses"]["Error"];
|
|
2265
|
+
409: components["responses"]["Error"];
|
|
2266
|
+
422: components["responses"]["Error"];
|
|
2267
|
+
429: components["responses"]["Error"];
|
|
2268
|
+
500: components["responses"]["Error"];
|
|
2269
|
+
};
|
|
2270
|
+
};
|
|
2271
|
+
get_referral: {
|
|
2272
|
+
parameters: {
|
|
2273
|
+
query?: never;
|
|
2274
|
+
header?: never;
|
|
2275
|
+
path?: never;
|
|
2276
|
+
cookie?: never;
|
|
2277
|
+
};
|
|
2278
|
+
requestBody?: never;
|
|
2279
|
+
responses: {
|
|
2280
|
+
/** @description OK */
|
|
2281
|
+
200: {
|
|
2282
|
+
headers: {
|
|
2283
|
+
[name: string]: unknown;
|
|
2284
|
+
};
|
|
2285
|
+
content: {
|
|
2286
|
+
"application/json": components["schemas"]["Referral"];
|
|
2287
|
+
};
|
|
2288
|
+
};
|
|
2289
|
+
400: components["responses"]["Error"];
|
|
2290
|
+
401: components["responses"]["Error"];
|
|
2291
|
+
403: components["responses"]["Error"];
|
|
2292
|
+
404: components["responses"]["Error"];
|
|
2293
|
+
409: components["responses"]["Error"];
|
|
2294
|
+
422: components["responses"]["Error"];
|
|
2295
|
+
429: components["responses"]["Error"];
|
|
2296
|
+
500: components["responses"]["Error"];
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
open_billing_portal: {
|
|
2300
|
+
parameters: {
|
|
2301
|
+
query?: never;
|
|
2302
|
+
header?: {
|
|
2303
|
+
/** @description Retries with the same key return the first result instead of repeating the change. */
|
|
2304
|
+
"Idempotency-Key"?: string;
|
|
2305
|
+
};
|
|
2306
|
+
path?: never;
|
|
2307
|
+
cookie?: never;
|
|
2308
|
+
};
|
|
2309
|
+
requestBody?: {
|
|
2310
|
+
content: {
|
|
2311
|
+
"application/json": {
|
|
2312
|
+
/** Format: uri */
|
|
2313
|
+
return_url?: string;
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
2316
|
+
};
|
|
2317
|
+
responses: {
|
|
2318
|
+
/** @description OK */
|
|
2319
|
+
200: {
|
|
2320
|
+
headers: {
|
|
2321
|
+
[name: string]: unknown;
|
|
2322
|
+
};
|
|
2323
|
+
content: {
|
|
2324
|
+
"application/json": {
|
|
2325
|
+
/** Format: uri */
|
|
2326
|
+
url: string;
|
|
2327
|
+
};
|
|
2328
|
+
};
|
|
2329
|
+
};
|
|
2330
|
+
400: components["responses"]["Error"];
|
|
2331
|
+
401: components["responses"]["Error"];
|
|
2332
|
+
403: components["responses"]["Error"];
|
|
2333
|
+
404: components["responses"]["Error"];
|
|
2334
|
+
409: components["responses"]["Error"];
|
|
2335
|
+
422: components["responses"]["Error"];
|
|
2336
|
+
429: components["responses"]["Error"];
|
|
2337
|
+
500: components["responses"]["Error"];
|
|
2338
|
+
};
|
|
2339
|
+
};
|
|
2340
|
+
}
|