@di-framework/tenant-cli 0.0.0-stage → 6.0.10
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/README.md +143 -2
- package/api/v1/openapi.yaml +1 -0
- package/dist/cli.d.ts +22 -0
- package/dist/cli.js +419 -0
- package/dist/client/index.d.ts +135 -0
- package/dist/client/index.js +131 -0
- package/dist/client/schema.d.ts +1213 -0
- package/dist/client/sse.d.ts +12 -0
- package/dist/client/sse.js +61 -0
- package/dist/credentials.d.ts +42 -0
- package/dist/credentials.js +65 -0
- package/dist/init.d.ts +17 -0
- package/dist/init.js +41 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.js +25 -0
- package/dist/oidc.d.ts +54 -0
- package/dist/oidc.js +110 -0
- package/package.json +46 -4
|
@@ -0,0 +1,1213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface paths {
|
|
7
|
+
"/v1/auth/info": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Describe how to log in
|
|
16
|
+
* @description The account this controller serves and the identity server to obtain a credential from. The only unauthenticated operation.
|
|
17
|
+
*/
|
|
18
|
+
get: operations["authInfo"];
|
|
19
|
+
put?: never;
|
|
20
|
+
post?: never;
|
|
21
|
+
delete?: never;
|
|
22
|
+
options?: never;
|
|
23
|
+
head?: never;
|
|
24
|
+
patch?: never;
|
|
25
|
+
trace?: never;
|
|
26
|
+
};
|
|
27
|
+
"/v1/auth/logout": {
|
|
28
|
+
parameters: {
|
|
29
|
+
query?: never;
|
|
30
|
+
header?: never;
|
|
31
|
+
path?: never;
|
|
32
|
+
cookie?: never;
|
|
33
|
+
};
|
|
34
|
+
get?: never;
|
|
35
|
+
put?: never;
|
|
36
|
+
/**
|
|
37
|
+
* Revoke the credential
|
|
38
|
+
* @description Revokes the bearer token at the identity server (or the API key) so it stops working everywhere.
|
|
39
|
+
*/
|
|
40
|
+
post: operations["logout"];
|
|
41
|
+
delete?: never;
|
|
42
|
+
options?: never;
|
|
43
|
+
head?: never;
|
|
44
|
+
patch?: never;
|
|
45
|
+
trace?: never;
|
|
46
|
+
};
|
|
47
|
+
"/v1/auth/whoami": {
|
|
48
|
+
parameters: {
|
|
49
|
+
query?: never;
|
|
50
|
+
header?: never;
|
|
51
|
+
path?: never;
|
|
52
|
+
cookie?: never;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Resolve the caller
|
|
56
|
+
* @description The user, role, and credential the bearer token stands for in this account.
|
|
57
|
+
*/
|
|
58
|
+
get: operations["whoami"];
|
|
59
|
+
put?: never;
|
|
60
|
+
post?: never;
|
|
61
|
+
delete?: never;
|
|
62
|
+
options?: never;
|
|
63
|
+
head?: never;
|
|
64
|
+
patch?: never;
|
|
65
|
+
trace?: never;
|
|
66
|
+
};
|
|
67
|
+
"/v1/deploy": {
|
|
68
|
+
parameters: {
|
|
69
|
+
query?: never;
|
|
70
|
+
header?: never;
|
|
71
|
+
path?: never;
|
|
72
|
+
cookie?: never;
|
|
73
|
+
};
|
|
74
|
+
get?: never;
|
|
75
|
+
put?: never;
|
|
76
|
+
/**
|
|
77
|
+
* Apply a deployment
|
|
78
|
+
* @description Validates the bundle and starts the rollout. Progress is streamed by the logs operation of the service.
|
|
79
|
+
*/
|
|
80
|
+
post: operations["deploy"];
|
|
81
|
+
delete?: never;
|
|
82
|
+
options?: never;
|
|
83
|
+
head?: never;
|
|
84
|
+
patch?: never;
|
|
85
|
+
trace?: never;
|
|
86
|
+
};
|
|
87
|
+
"/v1/deploy/preview": {
|
|
88
|
+
parameters: {
|
|
89
|
+
query?: never;
|
|
90
|
+
header?: never;
|
|
91
|
+
path?: never;
|
|
92
|
+
cookie?: never;
|
|
93
|
+
};
|
|
94
|
+
get?: never;
|
|
95
|
+
put?: never;
|
|
96
|
+
/**
|
|
97
|
+
* Preview a deployment
|
|
98
|
+
* @description Validates the bundle and reports what applying it would change in the given environment, without changing anything.
|
|
99
|
+
*/
|
|
100
|
+
post: operations["previewDeploy"];
|
|
101
|
+
delete?: never;
|
|
102
|
+
options?: never;
|
|
103
|
+
head?: never;
|
|
104
|
+
patch?: never;
|
|
105
|
+
trace?: never;
|
|
106
|
+
};
|
|
107
|
+
"/v1/deploy/registry": {
|
|
108
|
+
parameters: {
|
|
109
|
+
query?: never;
|
|
110
|
+
header?: never;
|
|
111
|
+
path?: never;
|
|
112
|
+
cookie?: never;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* Get the tenant registry
|
|
116
|
+
* @description The tenant's own OCI registry: its URL and how to log in. Pull is open to viewers and developers; push needs developer. No credential is minted.
|
|
117
|
+
*/
|
|
118
|
+
get: operations["registry"];
|
|
119
|
+
put?: never;
|
|
120
|
+
post?: never;
|
|
121
|
+
delete?: never;
|
|
122
|
+
options?: never;
|
|
123
|
+
head?: never;
|
|
124
|
+
patch?: never;
|
|
125
|
+
trace?: never;
|
|
126
|
+
};
|
|
127
|
+
"/v1/deployments": {
|
|
128
|
+
parameters: {
|
|
129
|
+
query?: never;
|
|
130
|
+
header?: never;
|
|
131
|
+
path?: never;
|
|
132
|
+
cookie?: never;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* List deployments
|
|
136
|
+
* @description Deployments of the environment, newest first, optionally for one service.
|
|
137
|
+
*/
|
|
138
|
+
get: operations["deployments"];
|
|
139
|
+
put?: never;
|
|
140
|
+
post?: never;
|
|
141
|
+
delete?: never;
|
|
142
|
+
options?: never;
|
|
143
|
+
head?: never;
|
|
144
|
+
patch?: never;
|
|
145
|
+
trace?: never;
|
|
146
|
+
};
|
|
147
|
+
"/v1/deployments/stats": {
|
|
148
|
+
parameters: {
|
|
149
|
+
query?: never;
|
|
150
|
+
header?: never;
|
|
151
|
+
path?: never;
|
|
152
|
+
cookie?: never;
|
|
153
|
+
};
|
|
154
|
+
/** Summarize deployments */
|
|
155
|
+
get: operations["deploymentStats"];
|
|
156
|
+
put?: never;
|
|
157
|
+
post?: never;
|
|
158
|
+
delete?: never;
|
|
159
|
+
options?: never;
|
|
160
|
+
head?: never;
|
|
161
|
+
patch?: never;
|
|
162
|
+
trace?: never;
|
|
163
|
+
};
|
|
164
|
+
"/v1/deployments/rollback": {
|
|
165
|
+
parameters: {
|
|
166
|
+
query?: never;
|
|
167
|
+
header?: never;
|
|
168
|
+
path?: never;
|
|
169
|
+
cookie?: never;
|
|
170
|
+
};
|
|
171
|
+
get?: never;
|
|
172
|
+
put?: never;
|
|
173
|
+
/**
|
|
174
|
+
* Roll a service back
|
|
175
|
+
* @description Starts a rollout of an earlier deployment, the previous one unless `to` names it.
|
|
176
|
+
*/
|
|
177
|
+
post: operations["rollback"];
|
|
178
|
+
delete?: never;
|
|
179
|
+
options?: never;
|
|
180
|
+
head?: never;
|
|
181
|
+
patch?: never;
|
|
182
|
+
trace?: never;
|
|
183
|
+
};
|
|
184
|
+
"/v1/secrets": {
|
|
185
|
+
parameters: {
|
|
186
|
+
query?: never;
|
|
187
|
+
header?: never;
|
|
188
|
+
path?: never;
|
|
189
|
+
cookie?: never;
|
|
190
|
+
};
|
|
191
|
+
/**
|
|
192
|
+
* List secrets
|
|
193
|
+
* @description Names and update times only; secret values are never returned.
|
|
194
|
+
*/
|
|
195
|
+
get: operations["secrets"];
|
|
196
|
+
put?: never;
|
|
197
|
+
post?: never;
|
|
198
|
+
delete?: never;
|
|
199
|
+
options?: never;
|
|
200
|
+
head?: never;
|
|
201
|
+
patch?: never;
|
|
202
|
+
trace?: never;
|
|
203
|
+
};
|
|
204
|
+
"/v1/secrets/{name}": {
|
|
205
|
+
parameters: {
|
|
206
|
+
query?: never;
|
|
207
|
+
header?: never;
|
|
208
|
+
path?: never;
|
|
209
|
+
cookie?: never;
|
|
210
|
+
};
|
|
211
|
+
get?: never;
|
|
212
|
+
/**
|
|
213
|
+
* Set a secret
|
|
214
|
+
* @description Creates or replaces the secret. The CLI reads the value from a file or stdin so it stays out of shell history.
|
|
215
|
+
*/
|
|
216
|
+
put: operations["setSecret"];
|
|
217
|
+
post?: never;
|
|
218
|
+
/** Unset a secret */
|
|
219
|
+
delete: operations["unsetSecret"];
|
|
220
|
+
options?: never;
|
|
221
|
+
head?: never;
|
|
222
|
+
/**
|
|
223
|
+
* Update a secret
|
|
224
|
+
* @description Replaces the value of an existing secret; 404 when it does not exist.
|
|
225
|
+
*/
|
|
226
|
+
patch: operations["updateSecret"];
|
|
227
|
+
trace?: never;
|
|
228
|
+
};
|
|
229
|
+
"/v1/services": {
|
|
230
|
+
parameters: {
|
|
231
|
+
query?: never;
|
|
232
|
+
header?: never;
|
|
233
|
+
path?: never;
|
|
234
|
+
cookie?: never;
|
|
235
|
+
};
|
|
236
|
+
get?: never;
|
|
237
|
+
put?: never;
|
|
238
|
+
/**
|
|
239
|
+
* Create a backing service
|
|
240
|
+
* @description Creates a keyvalue, messaging, blobstore, postgres or egress backing service in the environment as the caller. http, cron and worker services come from the deploy bundle.
|
|
241
|
+
*/
|
|
242
|
+
post: operations["createService"];
|
|
243
|
+
delete?: never;
|
|
244
|
+
options?: never;
|
|
245
|
+
head?: never;
|
|
246
|
+
patch?: never;
|
|
247
|
+
trace?: never;
|
|
248
|
+
};
|
|
249
|
+
"/v1/services/{service}/logs": {
|
|
250
|
+
parameters: {
|
|
251
|
+
query?: never;
|
|
252
|
+
header?: never;
|
|
253
|
+
path?: never;
|
|
254
|
+
cookie?: never;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Read or follow service logs
|
|
258
|
+
* @description Server-sent events (`text/event-stream`). Each `log` event carries one LogEvent as JSON; an `end` event closes the stream. With `follow` the stream stays open until the client disconnects.
|
|
259
|
+
*/
|
|
260
|
+
get: operations["logs"];
|
|
261
|
+
put?: never;
|
|
262
|
+
post?: never;
|
|
263
|
+
delete?: never;
|
|
264
|
+
options?: never;
|
|
265
|
+
head?: never;
|
|
266
|
+
patch?: never;
|
|
267
|
+
trace?: never;
|
|
268
|
+
};
|
|
269
|
+
"/v1/services/{service}/proxy": {
|
|
270
|
+
parameters: {
|
|
271
|
+
query?: never;
|
|
272
|
+
header?: never;
|
|
273
|
+
path?: never;
|
|
274
|
+
cookie?: never;
|
|
275
|
+
};
|
|
276
|
+
get?: never;
|
|
277
|
+
put?: never;
|
|
278
|
+
/**
|
|
279
|
+
* Open an HTTP session to a service
|
|
280
|
+
* @description Issues a short-lived HTTP session to the service, bound to the caller. The session URL takes the same bearer.
|
|
281
|
+
*/
|
|
282
|
+
post: operations["proxy"];
|
|
283
|
+
delete?: never;
|
|
284
|
+
options?: never;
|
|
285
|
+
head?: never;
|
|
286
|
+
patch?: never;
|
|
287
|
+
trace?: never;
|
|
288
|
+
};
|
|
289
|
+
"/v1/vars/{name}": {
|
|
290
|
+
parameters: {
|
|
291
|
+
query?: never;
|
|
292
|
+
header?: never;
|
|
293
|
+
path?: never;
|
|
294
|
+
cookie?: never;
|
|
295
|
+
};
|
|
296
|
+
get?: never;
|
|
297
|
+
/**
|
|
298
|
+
* Set a var
|
|
299
|
+
* @description Creates or replaces the var. The CLI reads the value from a file or stdin so it stays out of shell history.
|
|
300
|
+
*/
|
|
301
|
+
put: operations["setVar"];
|
|
302
|
+
post?: never;
|
|
303
|
+
/** Unset a var */
|
|
304
|
+
delete: operations["unsetVar"];
|
|
305
|
+
options?: never;
|
|
306
|
+
head?: never;
|
|
307
|
+
/**
|
|
308
|
+
* Update a var
|
|
309
|
+
* @description Replaces the value of an existing var; 404 when it does not exist.
|
|
310
|
+
*/
|
|
311
|
+
patch: operations["updateVar"];
|
|
312
|
+
trace?: never;
|
|
313
|
+
};
|
|
314
|
+
"/v1/vars": {
|
|
315
|
+
parameters: {
|
|
316
|
+
query?: never;
|
|
317
|
+
header?: never;
|
|
318
|
+
path?: never;
|
|
319
|
+
cookie?: never;
|
|
320
|
+
};
|
|
321
|
+
/**
|
|
322
|
+
* List vars
|
|
323
|
+
* @description Names, values, and update times of the environment variables.
|
|
324
|
+
*/
|
|
325
|
+
get: operations["vars"];
|
|
326
|
+
put?: never;
|
|
327
|
+
post?: never;
|
|
328
|
+
delete?: never;
|
|
329
|
+
options?: never;
|
|
330
|
+
head?: never;
|
|
331
|
+
patch?: never;
|
|
332
|
+
trace?: never;
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
export type webhooks = Record<string, never>;
|
|
336
|
+
export interface components {
|
|
337
|
+
schemas: {
|
|
338
|
+
Empty: Record<string, never>;
|
|
339
|
+
/** @description RFC 9457 problem details; every error response uses it. */
|
|
340
|
+
Problem: {
|
|
341
|
+
type?: string;
|
|
342
|
+
title: string;
|
|
343
|
+
/** Format: int32 */
|
|
344
|
+
status: number;
|
|
345
|
+
detail?: string;
|
|
346
|
+
};
|
|
347
|
+
/** @description What a CLI needs before it holds a credential: the account this controller serves and the identity server to log in with. */
|
|
348
|
+
AuthInfo: {
|
|
349
|
+
account: string;
|
|
350
|
+
/** Format: uri */
|
|
351
|
+
issuer: string;
|
|
352
|
+
clientId: string;
|
|
353
|
+
};
|
|
354
|
+
Principal: {
|
|
355
|
+
user: string;
|
|
356
|
+
account: string;
|
|
357
|
+
/** @enum {string} */
|
|
358
|
+
role: "developer" | "viewer";
|
|
359
|
+
/** @enum {string} */
|
|
360
|
+
via: "identity" | "api-key";
|
|
361
|
+
credentialId?: string;
|
|
362
|
+
};
|
|
363
|
+
/** @description The built component the controller pulls from the platform registry. */
|
|
364
|
+
ComponentReference: {
|
|
365
|
+
/** @description OCI reference the component was pushed as. */
|
|
366
|
+
reference: string;
|
|
367
|
+
/** @description sha256 digest of the pushed artifact. */
|
|
368
|
+
digest: string;
|
|
369
|
+
};
|
|
370
|
+
/** @description One `@WasmCloudBinding` of the component, rendered by the CLI. */
|
|
371
|
+
Binding: {
|
|
372
|
+
name: string;
|
|
373
|
+
capability: string;
|
|
374
|
+
/** @description Backing service the binding attaches to. */
|
|
375
|
+
serviceName?: string;
|
|
376
|
+
config?: {
|
|
377
|
+
[key: string]: string;
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
/** @description Everything the CLI renders client-side. The controller validates it at the boundary and never receives a kubeconfig or a namespace. */
|
|
381
|
+
DeployBundle: {
|
|
382
|
+
/** @enum {string} */
|
|
383
|
+
env: "prod" | "staging";
|
|
384
|
+
/** @description Service the deployment belongs to. */
|
|
385
|
+
service: string;
|
|
386
|
+
component: components["schemas"]["ComponentReference"];
|
|
387
|
+
/** @description The rendered WorkloadDeployment template, without namespace or host selector. */
|
|
388
|
+
workload: {
|
|
389
|
+
[key: string]: unknown;
|
|
390
|
+
};
|
|
391
|
+
bindings: components["schemas"]["Binding"][];
|
|
392
|
+
/** @description Names of tenant secrets the workload references; values never travel. */
|
|
393
|
+
secrets: string[];
|
|
394
|
+
};
|
|
395
|
+
/** @description Where a tenant pushes and pulls images: the tenant's own OCI registry. Log in with an identity-server access token or API key as the Basic password. */
|
|
396
|
+
RegistryInfo: {
|
|
397
|
+
/**
|
|
398
|
+
* Format: uri
|
|
399
|
+
* @description Origin of the tenant's OCI registry: scheme + host[:port], no path. Clients use its host[:port] for login and in image references; an http: origin means plain HTTP.
|
|
400
|
+
*/
|
|
401
|
+
url: string;
|
|
402
|
+
/** @description Namespace inside the tenant registry, when there is one. */
|
|
403
|
+
repositoryPrefix?: string;
|
|
404
|
+
/**
|
|
405
|
+
* @description Basic auth whose password is an identity-server access token or dik_ API key.
|
|
406
|
+
* @enum {string}
|
|
407
|
+
*/
|
|
408
|
+
auth: "basic-identity";
|
|
409
|
+
/** @description A fixed hint for the Basic username; the registry ignores it. */
|
|
410
|
+
username: string;
|
|
411
|
+
};
|
|
412
|
+
DeployChange: {
|
|
413
|
+
/** @enum {string} */
|
|
414
|
+
kind: "create" | "update" | "unchanged" | "delete";
|
|
415
|
+
resource: string;
|
|
416
|
+
name: string;
|
|
417
|
+
detail?: string;
|
|
418
|
+
};
|
|
419
|
+
/** @description What applying the bundle would change. */
|
|
420
|
+
DeployPlan: {
|
|
421
|
+
/** @enum {string} */
|
|
422
|
+
env: "prod" | "staging";
|
|
423
|
+
service: string;
|
|
424
|
+
changes: components["schemas"]["DeployChange"][];
|
|
425
|
+
};
|
|
426
|
+
Deployment: {
|
|
427
|
+
id: string;
|
|
428
|
+
service: string;
|
|
429
|
+
/** @enum {string} */
|
|
430
|
+
env: "prod" | "staging";
|
|
431
|
+
/** @enum {string} */
|
|
432
|
+
status: "pending" | "rolling" | "ready" | "failed" | "rolled-back";
|
|
433
|
+
component: components["schemas"]["ComponentReference"];
|
|
434
|
+
/** Format: date-time */
|
|
435
|
+
createdAt: string;
|
|
436
|
+
/** Format: date-time */
|
|
437
|
+
readyAt?: string;
|
|
438
|
+
};
|
|
439
|
+
DeploymentList: {
|
|
440
|
+
items: components["schemas"]["Deployment"][];
|
|
441
|
+
};
|
|
442
|
+
DeploymentStats: {
|
|
443
|
+
/** @enum {string} */
|
|
444
|
+
env: "prod" | "staging";
|
|
445
|
+
/** Format: int32 */
|
|
446
|
+
services: number;
|
|
447
|
+
/** Format: int32 */
|
|
448
|
+
deployments: number;
|
|
449
|
+
/** Format: int32 */
|
|
450
|
+
ready: number;
|
|
451
|
+
/** Format: int32 */
|
|
452
|
+
failed: number;
|
|
453
|
+
/** Format: date-time */
|
|
454
|
+
lastDeployedAt?: string;
|
|
455
|
+
};
|
|
456
|
+
RollbackRequest: {
|
|
457
|
+
/** @enum {string} */
|
|
458
|
+
env: "prod" | "staging";
|
|
459
|
+
service: string;
|
|
460
|
+
/** @description Deployment id to roll back to; the previous one when absent. */
|
|
461
|
+
to?: string;
|
|
462
|
+
};
|
|
463
|
+
/** @description A backing service (BackingService) in the environment, shaped like `di-framework platform service create`. `destinations` is required for egress and only allowed there. http, cron and worker services come from the deploy bundle, not from this operation. */
|
|
464
|
+
CreateServiceRequest: {
|
|
465
|
+
/** @enum {string} */
|
|
466
|
+
env: "prod" | "staging";
|
|
467
|
+
/** @enum {string} */
|
|
468
|
+
type: "keyvalue" | "messaging" | "blobstore" | "postgres" | "egress";
|
|
469
|
+
/** @description DNS label, at most 40 characters: `^[a-z][a-z0-9]*(-[a-z0-9]+)*$`. */
|
|
470
|
+
name: string;
|
|
471
|
+
/** @description The platform default class for the type when absent (keyvalue-redis, messaging-nats, blobstore-nats, postgres-dedicated, egress-public); any other class is refused. */
|
|
472
|
+
className?: string;
|
|
473
|
+
/** @description Sizing quantities such as `1Gi` or `500m`. */
|
|
474
|
+
parameters?: {
|
|
475
|
+
storage?: string;
|
|
476
|
+
memory?: string;
|
|
477
|
+
cpu?: string;
|
|
478
|
+
};
|
|
479
|
+
/** @enum {string} */
|
|
480
|
+
deletionPolicy?: "Retain" | "Delete";
|
|
481
|
+
/** @description Egress only: hosts the workload may reach (`host`, `*.suffix`, optionally `:port`). */
|
|
482
|
+
destinations?: string[];
|
|
483
|
+
};
|
|
484
|
+
Service: {
|
|
485
|
+
name: string;
|
|
486
|
+
/** @enum {string} */
|
|
487
|
+
env: "prod" | "staging";
|
|
488
|
+
/** @enum {string} */
|
|
489
|
+
type: "keyvalue" | "messaging" | "blobstore" | "postgres" | "egress";
|
|
490
|
+
className: string;
|
|
491
|
+
parameters?: {
|
|
492
|
+
storage?: string;
|
|
493
|
+
memory?: string;
|
|
494
|
+
cpu?: string;
|
|
495
|
+
};
|
|
496
|
+
/** @enum {string} */
|
|
497
|
+
deletionPolicy?: "Retain" | "Delete";
|
|
498
|
+
destinations?: string[];
|
|
499
|
+
/** Format: date-time */
|
|
500
|
+
createdAt: string;
|
|
501
|
+
};
|
|
502
|
+
/** @description One line of a service log. Streamed as `text/event-stream`: each SSE `data:` field is one LogEvent as JSON; the `event:` field is `log`, or `end` when the stream closes. */
|
|
503
|
+
LogEvent: {
|
|
504
|
+
/** Format: date-time */
|
|
505
|
+
timestamp: string;
|
|
506
|
+
deployment: string;
|
|
507
|
+
instance?: string;
|
|
508
|
+
/** @enum {string} */
|
|
509
|
+
level?: "debug" | "info" | "warn" | "error";
|
|
510
|
+
message: string;
|
|
511
|
+
};
|
|
512
|
+
/** @description A secret lists its name only; a var also carries its value. */
|
|
513
|
+
ConfigEntry: {
|
|
514
|
+
name: string;
|
|
515
|
+
value?: string;
|
|
516
|
+
/** Format: date-time */
|
|
517
|
+
updatedAt: string;
|
|
518
|
+
};
|
|
519
|
+
ConfigList: {
|
|
520
|
+
/** @enum {string} */
|
|
521
|
+
env: "prod" | "staging";
|
|
522
|
+
items: components["schemas"]["ConfigEntry"][];
|
|
523
|
+
};
|
|
524
|
+
/** @description A secret lists its name and update time only; its value never travels on read. */
|
|
525
|
+
SecretEntry: {
|
|
526
|
+
name: string;
|
|
527
|
+
/** Format: date-time */
|
|
528
|
+
updatedAt: string;
|
|
529
|
+
};
|
|
530
|
+
SecretList: {
|
|
531
|
+
/** @enum {string} */
|
|
532
|
+
env: "prod" | "staging";
|
|
533
|
+
items: components["schemas"]["SecretEntry"][];
|
|
534
|
+
};
|
|
535
|
+
ConfigValue: {
|
|
536
|
+
value: string;
|
|
537
|
+
};
|
|
538
|
+
ProxyRequest: {
|
|
539
|
+
/** @enum {string} */
|
|
540
|
+
env: "prod" | "staging";
|
|
541
|
+
/**
|
|
542
|
+
* Format: int32
|
|
543
|
+
* @description Service port; only 80, the tenant HTTP upstream, is supported (the default).
|
|
544
|
+
*/
|
|
545
|
+
port?: number;
|
|
546
|
+
};
|
|
547
|
+
/** @description A short-lived HTTP session to one service, bound to the caller. Requests to `url` and paths below it carry the same bearer and are forwarded to the service until `expiresAt`. The controller serves the session URL outside this document; WebSocket is not supported yet. */
|
|
548
|
+
ProxySession: {
|
|
549
|
+
/** Format: uri */
|
|
550
|
+
url: string;
|
|
551
|
+
/** Format: int32 */
|
|
552
|
+
port: number;
|
|
553
|
+
/** Format: date-time */
|
|
554
|
+
expiresAt: string;
|
|
555
|
+
};
|
|
556
|
+
};
|
|
557
|
+
responses: never;
|
|
558
|
+
parameters: never;
|
|
559
|
+
requestBodies: never;
|
|
560
|
+
headers: never;
|
|
561
|
+
pathItems: never;
|
|
562
|
+
}
|
|
563
|
+
export type $defs = Record<string, never>;
|
|
564
|
+
export interface operations {
|
|
565
|
+
authInfo: {
|
|
566
|
+
parameters: {
|
|
567
|
+
query?: never;
|
|
568
|
+
header?: never;
|
|
569
|
+
path?: never;
|
|
570
|
+
cookie?: never;
|
|
571
|
+
};
|
|
572
|
+
requestBody?: never;
|
|
573
|
+
responses: {
|
|
574
|
+
/** @description Describe how to log in */
|
|
575
|
+
200: {
|
|
576
|
+
headers: {
|
|
577
|
+
[name: string]: unknown;
|
|
578
|
+
};
|
|
579
|
+
content: {
|
|
580
|
+
"application/json": {
|
|
581
|
+
account: string;
|
|
582
|
+
/** Format: uri */
|
|
583
|
+
issuer: string;
|
|
584
|
+
clientId: string;
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
logout: {
|
|
591
|
+
parameters: {
|
|
592
|
+
query?: never;
|
|
593
|
+
header?: never;
|
|
594
|
+
path?: never;
|
|
595
|
+
cookie?: never;
|
|
596
|
+
};
|
|
597
|
+
requestBody?: {
|
|
598
|
+
content: {
|
|
599
|
+
"application/json": Record<string, never>;
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
responses: {
|
|
603
|
+
/** @description Revoke the credential */
|
|
604
|
+
204: {
|
|
605
|
+
headers: {
|
|
606
|
+
[name: string]: unknown;
|
|
607
|
+
};
|
|
608
|
+
content?: never;
|
|
609
|
+
};
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
whoami: {
|
|
613
|
+
parameters: {
|
|
614
|
+
query?: never;
|
|
615
|
+
header?: never;
|
|
616
|
+
path?: never;
|
|
617
|
+
cookie?: never;
|
|
618
|
+
};
|
|
619
|
+
requestBody?: never;
|
|
620
|
+
responses: {
|
|
621
|
+
/** @description Resolve the caller */
|
|
622
|
+
200: {
|
|
623
|
+
headers: {
|
|
624
|
+
[name: string]: unknown;
|
|
625
|
+
};
|
|
626
|
+
content: {
|
|
627
|
+
"application/json": {
|
|
628
|
+
user: string;
|
|
629
|
+
account: string;
|
|
630
|
+
/** @enum {string} */
|
|
631
|
+
role: "developer" | "viewer";
|
|
632
|
+
/** @enum {string} */
|
|
633
|
+
via: "identity" | "api-key";
|
|
634
|
+
credentialId?: string;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
deploy: {
|
|
641
|
+
parameters: {
|
|
642
|
+
query?: never;
|
|
643
|
+
header?: never;
|
|
644
|
+
path?: never;
|
|
645
|
+
cookie?: never;
|
|
646
|
+
};
|
|
647
|
+
requestBody: {
|
|
648
|
+
content: {
|
|
649
|
+
"application/json": {
|
|
650
|
+
/** @enum {string} */
|
|
651
|
+
env: "prod" | "staging";
|
|
652
|
+
/** @description Service the deployment belongs to. */
|
|
653
|
+
service: string;
|
|
654
|
+
component: components["schemas"]["ComponentReference"];
|
|
655
|
+
/** @description The rendered WorkloadDeployment template, without namespace or host selector. */
|
|
656
|
+
workload: {
|
|
657
|
+
[key: string]: unknown;
|
|
658
|
+
};
|
|
659
|
+
bindings: components["schemas"]["Binding"][];
|
|
660
|
+
/** @description Names of tenant secrets the workload references; values never travel. */
|
|
661
|
+
secrets: string[];
|
|
662
|
+
};
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
responses: {
|
|
666
|
+
/** @description Apply a deployment */
|
|
667
|
+
202: {
|
|
668
|
+
headers: {
|
|
669
|
+
[name: string]: unknown;
|
|
670
|
+
};
|
|
671
|
+
content: {
|
|
672
|
+
"application/json": {
|
|
673
|
+
id: string;
|
|
674
|
+
service: string;
|
|
675
|
+
/** @enum {string} */
|
|
676
|
+
env: "prod" | "staging";
|
|
677
|
+
/** @enum {string} */
|
|
678
|
+
status: "pending" | "rolling" | "ready" | "failed" | "rolled-back";
|
|
679
|
+
component: components["schemas"]["ComponentReference"];
|
|
680
|
+
/** Format: date-time */
|
|
681
|
+
createdAt: string;
|
|
682
|
+
/** Format: date-time */
|
|
683
|
+
readyAt?: string;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
previewDeploy: {
|
|
690
|
+
parameters: {
|
|
691
|
+
query?: never;
|
|
692
|
+
header?: never;
|
|
693
|
+
path?: never;
|
|
694
|
+
cookie?: never;
|
|
695
|
+
};
|
|
696
|
+
requestBody: {
|
|
697
|
+
content: {
|
|
698
|
+
"application/json": {
|
|
699
|
+
/** @enum {string} */
|
|
700
|
+
env: "prod" | "staging";
|
|
701
|
+
/** @description Service the deployment belongs to. */
|
|
702
|
+
service: string;
|
|
703
|
+
component: components["schemas"]["ComponentReference"];
|
|
704
|
+
/** @description The rendered WorkloadDeployment template, without namespace or host selector. */
|
|
705
|
+
workload: {
|
|
706
|
+
[key: string]: unknown;
|
|
707
|
+
};
|
|
708
|
+
bindings: components["schemas"]["Binding"][];
|
|
709
|
+
/** @description Names of tenant secrets the workload references; values never travel. */
|
|
710
|
+
secrets: string[];
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
responses: {
|
|
715
|
+
/** @description Preview a deployment */
|
|
716
|
+
200: {
|
|
717
|
+
headers: {
|
|
718
|
+
[name: string]: unknown;
|
|
719
|
+
};
|
|
720
|
+
content: {
|
|
721
|
+
"application/json": {
|
|
722
|
+
/** @enum {string} */
|
|
723
|
+
env: "prod" | "staging";
|
|
724
|
+
service: string;
|
|
725
|
+
changes: components["schemas"]["DeployChange"][];
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
};
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
registry: {
|
|
732
|
+
parameters: {
|
|
733
|
+
query?: never;
|
|
734
|
+
header?: never;
|
|
735
|
+
path?: never;
|
|
736
|
+
cookie?: never;
|
|
737
|
+
};
|
|
738
|
+
requestBody?: never;
|
|
739
|
+
responses: {
|
|
740
|
+
/** @description Get the tenant registry */
|
|
741
|
+
200: {
|
|
742
|
+
headers: {
|
|
743
|
+
[name: string]: unknown;
|
|
744
|
+
};
|
|
745
|
+
content: {
|
|
746
|
+
"application/json": {
|
|
747
|
+
/**
|
|
748
|
+
* Format: uri
|
|
749
|
+
* @description Origin of the tenant's OCI registry: scheme + host[:port], no path. Clients use its host[:port] for login and in image references; an http: origin means plain HTTP.
|
|
750
|
+
*/
|
|
751
|
+
url: string;
|
|
752
|
+
/** @description Namespace inside the tenant registry, when there is one. */
|
|
753
|
+
repositoryPrefix?: string;
|
|
754
|
+
/**
|
|
755
|
+
* @description Basic auth whose password is an identity-server access token or dik_ API key.
|
|
756
|
+
* @enum {string}
|
|
757
|
+
*/
|
|
758
|
+
auth: "basic-identity";
|
|
759
|
+
/** @description A fixed hint for the Basic username; the registry ignores it. */
|
|
760
|
+
username: string;
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
deployments: {
|
|
767
|
+
parameters: {
|
|
768
|
+
query: {
|
|
769
|
+
env: "prod" | "staging";
|
|
770
|
+
service?: string;
|
|
771
|
+
};
|
|
772
|
+
header?: never;
|
|
773
|
+
path?: never;
|
|
774
|
+
cookie?: never;
|
|
775
|
+
};
|
|
776
|
+
requestBody?: never;
|
|
777
|
+
responses: {
|
|
778
|
+
/** @description List deployments */
|
|
779
|
+
200: {
|
|
780
|
+
headers: {
|
|
781
|
+
[name: string]: unknown;
|
|
782
|
+
};
|
|
783
|
+
content: {
|
|
784
|
+
"application/json": {
|
|
785
|
+
items: components["schemas"]["Deployment"][];
|
|
786
|
+
};
|
|
787
|
+
};
|
|
788
|
+
};
|
|
789
|
+
};
|
|
790
|
+
};
|
|
791
|
+
deploymentStats: {
|
|
792
|
+
parameters: {
|
|
793
|
+
query: {
|
|
794
|
+
env: "prod" | "staging";
|
|
795
|
+
};
|
|
796
|
+
header?: never;
|
|
797
|
+
path?: never;
|
|
798
|
+
cookie?: never;
|
|
799
|
+
};
|
|
800
|
+
requestBody?: never;
|
|
801
|
+
responses: {
|
|
802
|
+
/** @description Summarize deployments */
|
|
803
|
+
200: {
|
|
804
|
+
headers: {
|
|
805
|
+
[name: string]: unknown;
|
|
806
|
+
};
|
|
807
|
+
content: {
|
|
808
|
+
"application/json": {
|
|
809
|
+
/** @enum {string} */
|
|
810
|
+
env: "prod" | "staging";
|
|
811
|
+
/** Format: int32 */
|
|
812
|
+
services: number;
|
|
813
|
+
/** Format: int32 */
|
|
814
|
+
deployments: number;
|
|
815
|
+
/** Format: int32 */
|
|
816
|
+
ready: number;
|
|
817
|
+
/** Format: int32 */
|
|
818
|
+
failed: number;
|
|
819
|
+
/** Format: date-time */
|
|
820
|
+
lastDeployedAt?: string;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
};
|
|
826
|
+
rollback: {
|
|
827
|
+
parameters: {
|
|
828
|
+
query?: never;
|
|
829
|
+
header?: never;
|
|
830
|
+
path?: never;
|
|
831
|
+
cookie?: never;
|
|
832
|
+
};
|
|
833
|
+
requestBody: {
|
|
834
|
+
content: {
|
|
835
|
+
"application/json": {
|
|
836
|
+
/** @enum {string} */
|
|
837
|
+
env: "prod" | "staging";
|
|
838
|
+
service: string;
|
|
839
|
+
/** @description Deployment id to roll back to; the previous one when absent. */
|
|
840
|
+
to?: string;
|
|
841
|
+
};
|
|
842
|
+
};
|
|
843
|
+
};
|
|
844
|
+
responses: {
|
|
845
|
+
/** @description Roll a service back */
|
|
846
|
+
202: {
|
|
847
|
+
headers: {
|
|
848
|
+
[name: string]: unknown;
|
|
849
|
+
};
|
|
850
|
+
content: {
|
|
851
|
+
"application/json": {
|
|
852
|
+
id: string;
|
|
853
|
+
service: string;
|
|
854
|
+
/** @enum {string} */
|
|
855
|
+
env: "prod" | "staging";
|
|
856
|
+
/** @enum {string} */
|
|
857
|
+
status: "pending" | "rolling" | "ready" | "failed" | "rolled-back";
|
|
858
|
+
component: components["schemas"]["ComponentReference"];
|
|
859
|
+
/** Format: date-time */
|
|
860
|
+
createdAt: string;
|
|
861
|
+
/** Format: date-time */
|
|
862
|
+
readyAt?: string;
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
};
|
|
866
|
+
};
|
|
867
|
+
};
|
|
868
|
+
secrets: {
|
|
869
|
+
parameters: {
|
|
870
|
+
query: {
|
|
871
|
+
env: "prod" | "staging";
|
|
872
|
+
};
|
|
873
|
+
header?: never;
|
|
874
|
+
path?: never;
|
|
875
|
+
cookie?: never;
|
|
876
|
+
};
|
|
877
|
+
requestBody?: never;
|
|
878
|
+
responses: {
|
|
879
|
+
/** @description List secrets */
|
|
880
|
+
200: {
|
|
881
|
+
headers: {
|
|
882
|
+
[name: string]: unknown;
|
|
883
|
+
};
|
|
884
|
+
content: {
|
|
885
|
+
"application/json": {
|
|
886
|
+
/** @enum {string} */
|
|
887
|
+
env: "prod" | "staging";
|
|
888
|
+
items: components["schemas"]["SecretEntry"][];
|
|
889
|
+
};
|
|
890
|
+
};
|
|
891
|
+
};
|
|
892
|
+
};
|
|
893
|
+
};
|
|
894
|
+
setSecret: {
|
|
895
|
+
parameters: {
|
|
896
|
+
query: {
|
|
897
|
+
env: "prod" | "staging";
|
|
898
|
+
};
|
|
899
|
+
header?: never;
|
|
900
|
+
path: {
|
|
901
|
+
name: string;
|
|
902
|
+
};
|
|
903
|
+
cookie?: never;
|
|
904
|
+
};
|
|
905
|
+
requestBody: {
|
|
906
|
+
content: {
|
|
907
|
+
"application/json": {
|
|
908
|
+
value: string;
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
};
|
|
912
|
+
responses: {
|
|
913
|
+
/** @description Set a secret */
|
|
914
|
+
204: {
|
|
915
|
+
headers: {
|
|
916
|
+
[name: string]: unknown;
|
|
917
|
+
};
|
|
918
|
+
content?: never;
|
|
919
|
+
};
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
unsetSecret: {
|
|
923
|
+
parameters: {
|
|
924
|
+
query: {
|
|
925
|
+
env: "prod" | "staging";
|
|
926
|
+
};
|
|
927
|
+
header?: never;
|
|
928
|
+
path: {
|
|
929
|
+
name: string;
|
|
930
|
+
};
|
|
931
|
+
cookie?: never;
|
|
932
|
+
};
|
|
933
|
+
requestBody?: never;
|
|
934
|
+
responses: {
|
|
935
|
+
/** @description Unset a secret */
|
|
936
|
+
204: {
|
|
937
|
+
headers: {
|
|
938
|
+
[name: string]: unknown;
|
|
939
|
+
};
|
|
940
|
+
content?: never;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
updateSecret: {
|
|
945
|
+
parameters: {
|
|
946
|
+
query: {
|
|
947
|
+
env: "prod" | "staging";
|
|
948
|
+
};
|
|
949
|
+
header?: never;
|
|
950
|
+
path: {
|
|
951
|
+
name: string;
|
|
952
|
+
};
|
|
953
|
+
cookie?: never;
|
|
954
|
+
};
|
|
955
|
+
requestBody: {
|
|
956
|
+
content: {
|
|
957
|
+
"application/json": {
|
|
958
|
+
value: string;
|
|
959
|
+
};
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
responses: {
|
|
963
|
+
/** @description Update a secret */
|
|
964
|
+
204: {
|
|
965
|
+
headers: {
|
|
966
|
+
[name: string]: unknown;
|
|
967
|
+
};
|
|
968
|
+
content?: never;
|
|
969
|
+
};
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
createService: {
|
|
973
|
+
parameters: {
|
|
974
|
+
query?: never;
|
|
975
|
+
header?: never;
|
|
976
|
+
path?: never;
|
|
977
|
+
cookie?: never;
|
|
978
|
+
};
|
|
979
|
+
requestBody: {
|
|
980
|
+
content: {
|
|
981
|
+
"application/json": {
|
|
982
|
+
/** @enum {string} */
|
|
983
|
+
env: "prod" | "staging";
|
|
984
|
+
/** @enum {string} */
|
|
985
|
+
type: "keyvalue" | "messaging" | "blobstore" | "postgres" | "egress";
|
|
986
|
+
/** @description DNS label, at most 40 characters: `^[a-z][a-z0-9]*(-[a-z0-9]+)*$`. */
|
|
987
|
+
name: string;
|
|
988
|
+
/** @description The platform default class for the type when absent (keyvalue-redis, messaging-nats, blobstore-nats, postgres-dedicated, egress-public); any other class is refused. */
|
|
989
|
+
className?: string;
|
|
990
|
+
/** @description Sizing quantities such as `1Gi` or `500m`. */
|
|
991
|
+
parameters?: {
|
|
992
|
+
storage?: string;
|
|
993
|
+
memory?: string;
|
|
994
|
+
cpu?: string;
|
|
995
|
+
};
|
|
996
|
+
/** @enum {string} */
|
|
997
|
+
deletionPolicy?: "Retain" | "Delete";
|
|
998
|
+
/** @description Egress only: hosts the workload may reach (`host`, `*.suffix`, optionally `:port`). */
|
|
999
|
+
destinations?: string[];
|
|
1000
|
+
};
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
responses: {
|
|
1004
|
+
/** @description Create a backing service */
|
|
1005
|
+
201: {
|
|
1006
|
+
headers: {
|
|
1007
|
+
[name: string]: unknown;
|
|
1008
|
+
};
|
|
1009
|
+
content: {
|
|
1010
|
+
"application/json": {
|
|
1011
|
+
name: string;
|
|
1012
|
+
/** @enum {string} */
|
|
1013
|
+
env: "prod" | "staging";
|
|
1014
|
+
/** @enum {string} */
|
|
1015
|
+
type: "keyvalue" | "messaging" | "blobstore" | "postgres" | "egress";
|
|
1016
|
+
className: string;
|
|
1017
|
+
parameters?: {
|
|
1018
|
+
storage?: string;
|
|
1019
|
+
memory?: string;
|
|
1020
|
+
cpu?: string;
|
|
1021
|
+
};
|
|
1022
|
+
/** @enum {string} */
|
|
1023
|
+
deletionPolicy?: "Retain" | "Delete";
|
|
1024
|
+
destinations?: string[];
|
|
1025
|
+
/** Format: date-time */
|
|
1026
|
+
createdAt: string;
|
|
1027
|
+
};
|
|
1028
|
+
};
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
1032
|
+
logs: {
|
|
1033
|
+
parameters: {
|
|
1034
|
+
query: {
|
|
1035
|
+
env: "prod" | "staging";
|
|
1036
|
+
deployment?: string;
|
|
1037
|
+
follow?: boolean;
|
|
1038
|
+
since?: string;
|
|
1039
|
+
tail?: number;
|
|
1040
|
+
};
|
|
1041
|
+
header?: never;
|
|
1042
|
+
path: {
|
|
1043
|
+
service: string;
|
|
1044
|
+
};
|
|
1045
|
+
cookie?: never;
|
|
1046
|
+
};
|
|
1047
|
+
requestBody?: never;
|
|
1048
|
+
responses: {
|
|
1049
|
+
/** @description Read or follow service logs */
|
|
1050
|
+
200: {
|
|
1051
|
+
headers: {
|
|
1052
|
+
[name: string]: unknown;
|
|
1053
|
+
};
|
|
1054
|
+
content: {
|
|
1055
|
+
"application/json": {
|
|
1056
|
+
/** Format: date-time */
|
|
1057
|
+
timestamp: string;
|
|
1058
|
+
deployment: string;
|
|
1059
|
+
instance?: string;
|
|
1060
|
+
/** @enum {string} */
|
|
1061
|
+
level?: "debug" | "info" | "warn" | "error";
|
|
1062
|
+
message: string;
|
|
1063
|
+
};
|
|
1064
|
+
};
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
};
|
|
1068
|
+
proxy: {
|
|
1069
|
+
parameters: {
|
|
1070
|
+
query?: never;
|
|
1071
|
+
header?: never;
|
|
1072
|
+
path: {
|
|
1073
|
+
service: string;
|
|
1074
|
+
};
|
|
1075
|
+
cookie?: never;
|
|
1076
|
+
};
|
|
1077
|
+
requestBody: {
|
|
1078
|
+
content: {
|
|
1079
|
+
"application/json": {
|
|
1080
|
+
/** @enum {string} */
|
|
1081
|
+
env: "prod" | "staging";
|
|
1082
|
+
/**
|
|
1083
|
+
* Format: int32
|
|
1084
|
+
* @description Service port; only 80, the tenant HTTP upstream, is supported (the default).
|
|
1085
|
+
*/
|
|
1086
|
+
port?: number;
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
};
|
|
1090
|
+
responses: {
|
|
1091
|
+
/** @description Open an HTTP session to a service */
|
|
1092
|
+
201: {
|
|
1093
|
+
headers: {
|
|
1094
|
+
[name: string]: unknown;
|
|
1095
|
+
};
|
|
1096
|
+
content: {
|
|
1097
|
+
"application/json": {
|
|
1098
|
+
/** Format: uri */
|
|
1099
|
+
url: string;
|
|
1100
|
+
/** Format: int32 */
|
|
1101
|
+
port: number;
|
|
1102
|
+
/** Format: date-time */
|
|
1103
|
+
expiresAt: string;
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
};
|
|
1109
|
+
setVar: {
|
|
1110
|
+
parameters: {
|
|
1111
|
+
query: {
|
|
1112
|
+
env: "prod" | "staging";
|
|
1113
|
+
};
|
|
1114
|
+
header?: never;
|
|
1115
|
+
path: {
|
|
1116
|
+
name: string;
|
|
1117
|
+
};
|
|
1118
|
+
cookie?: never;
|
|
1119
|
+
};
|
|
1120
|
+
requestBody: {
|
|
1121
|
+
content: {
|
|
1122
|
+
"application/json": {
|
|
1123
|
+
value: string;
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
responses: {
|
|
1128
|
+
/** @description Set a var */
|
|
1129
|
+
204: {
|
|
1130
|
+
headers: {
|
|
1131
|
+
[name: string]: unknown;
|
|
1132
|
+
};
|
|
1133
|
+
content?: never;
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
};
|
|
1137
|
+
unsetVar: {
|
|
1138
|
+
parameters: {
|
|
1139
|
+
query: {
|
|
1140
|
+
env: "prod" | "staging";
|
|
1141
|
+
};
|
|
1142
|
+
header?: never;
|
|
1143
|
+
path: {
|
|
1144
|
+
name: string;
|
|
1145
|
+
};
|
|
1146
|
+
cookie?: never;
|
|
1147
|
+
};
|
|
1148
|
+
requestBody?: never;
|
|
1149
|
+
responses: {
|
|
1150
|
+
/** @description Unset a var */
|
|
1151
|
+
204: {
|
|
1152
|
+
headers: {
|
|
1153
|
+
[name: string]: unknown;
|
|
1154
|
+
};
|
|
1155
|
+
content?: never;
|
|
1156
|
+
};
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
updateVar: {
|
|
1160
|
+
parameters: {
|
|
1161
|
+
query: {
|
|
1162
|
+
env: "prod" | "staging";
|
|
1163
|
+
};
|
|
1164
|
+
header?: never;
|
|
1165
|
+
path: {
|
|
1166
|
+
name: string;
|
|
1167
|
+
};
|
|
1168
|
+
cookie?: never;
|
|
1169
|
+
};
|
|
1170
|
+
requestBody: {
|
|
1171
|
+
content: {
|
|
1172
|
+
"application/json": {
|
|
1173
|
+
value: string;
|
|
1174
|
+
};
|
|
1175
|
+
};
|
|
1176
|
+
};
|
|
1177
|
+
responses: {
|
|
1178
|
+
/** @description Update a var */
|
|
1179
|
+
204: {
|
|
1180
|
+
headers: {
|
|
1181
|
+
[name: string]: unknown;
|
|
1182
|
+
};
|
|
1183
|
+
content?: never;
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
};
|
|
1187
|
+
vars: {
|
|
1188
|
+
parameters: {
|
|
1189
|
+
query: {
|
|
1190
|
+
env: "prod" | "staging";
|
|
1191
|
+
};
|
|
1192
|
+
header?: never;
|
|
1193
|
+
path?: never;
|
|
1194
|
+
cookie?: never;
|
|
1195
|
+
};
|
|
1196
|
+
requestBody?: never;
|
|
1197
|
+
responses: {
|
|
1198
|
+
/** @description List vars */
|
|
1199
|
+
200: {
|
|
1200
|
+
headers: {
|
|
1201
|
+
[name: string]: unknown;
|
|
1202
|
+
};
|
|
1203
|
+
content: {
|
|
1204
|
+
"application/json": {
|
|
1205
|
+
/** @enum {string} */
|
|
1206
|
+
env: "prod" | "staging";
|
|
1207
|
+
items: components["schemas"]["ConfigEntry"][];
|
|
1208
|
+
};
|
|
1209
|
+
};
|
|
1210
|
+
};
|
|
1211
|
+
};
|
|
1212
|
+
};
|
|
1213
|
+
}
|