@platformatic/composer 3.0.0-alpha.4 → 3.0.0-alpha.6
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 +1 -1
- package/eslint.config.js +1 -8
- package/index.d.ts +1 -58
- package/index.js +9 -30
- package/package.json +8 -54
- package/schema.json +1136 -907
- package/scripts/schema.js +12 -0
- package/config.d.ts +0 -997
- package/lib/application.js +0 -186
- package/lib/commands/index.js +0 -15
- package/lib/commands/openapi-fetch-schemas.js +0 -47
- package/lib/composer-hook.js +0 -60
- package/lib/errors.js +0 -18
- package/lib/generator.js +0 -127
- package/lib/graphql-fetch.js +0 -83
- package/lib/graphql-generator.js +0 -33
- package/lib/graphql.js +0 -24
- package/lib/metrics.js +0 -12
- package/lib/not-host-constraints.js +0 -31
- package/lib/openapi-composer.js +0 -101
- package/lib/openapi-config-schema.js +0 -89
- package/lib/openapi-generator.js +0 -213
- package/lib/openapi-load-config.js +0 -31
- package/lib/openapi-modifier.js +0 -128
- package/lib/openapi-scalar.js +0 -22
- package/lib/proxy.js +0 -265
- package/lib/root.js +0 -75
- package/lib/schema.js +0 -258
- package/lib/stackable.js +0 -88
- package/lib/upgrade.js +0 -20
- package/lib/utils.js +0 -16
- package/lib/versions/2.0.0.js +0 -9
- package/lib/versions/3.0.0.js +0 -14
- package/public/images/dark_mode.svg +0 -3
- package/public/images/ellipse.svg +0 -21
- package/public/images/external-link.svg +0 -5
- package/public/images/favicon.ico +0 -0
- package/public/images/graphiql.svg +0 -10
- package/public/images/graphql.svg +0 -10
- package/public/images/light_mode.svg +0 -11
- package/public/images/openapi.svg +0 -13
- package/public/images/platformatic-logo-dark.svg +0 -30
- package/public/images/platformatic-logo-light.svg +0 -30
- package/public/images/reverse-proxy.svg +0 -8
- package/public/images/triangle_dark.svg +0 -3
- package/public/images/triangle_light.svg +0 -3
- package/public/index.html +0 -253
- package/public/index.njk +0 -101
- package/public/main.css +0 -244
package/config.d.ts
DELETED
|
@@ -1,997 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface PlatformaticComposerConfig {
|
|
9
|
-
basePath?: string;
|
|
10
|
-
server?: {
|
|
11
|
-
hostname?: string;
|
|
12
|
-
port?: number | string;
|
|
13
|
-
pluginTimeout?: number;
|
|
14
|
-
healthCheck?:
|
|
15
|
-
| boolean
|
|
16
|
-
| {
|
|
17
|
-
enabled?: boolean;
|
|
18
|
-
interval?: number;
|
|
19
|
-
[k: string]: unknown;
|
|
20
|
-
};
|
|
21
|
-
ignoreTrailingSlash?: boolean;
|
|
22
|
-
ignoreDuplicateSlashes?: boolean;
|
|
23
|
-
connectionTimeout?: number;
|
|
24
|
-
keepAliveTimeout?: number;
|
|
25
|
-
maxRequestsPerSocket?: number;
|
|
26
|
-
forceCloseConnections?: boolean | string;
|
|
27
|
-
requestTimeout?: number;
|
|
28
|
-
bodyLimit?: number;
|
|
29
|
-
maxParamLength?: number;
|
|
30
|
-
disableRequestLogging?: boolean;
|
|
31
|
-
exposeHeadRoutes?: boolean;
|
|
32
|
-
logger?:
|
|
33
|
-
| boolean
|
|
34
|
-
| {
|
|
35
|
-
level: (
|
|
36
|
-
| ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
|
|
37
|
-
| {
|
|
38
|
-
[k: string]: unknown;
|
|
39
|
-
}
|
|
40
|
-
) &
|
|
41
|
-
string;
|
|
42
|
-
transport?:
|
|
43
|
-
| {
|
|
44
|
-
target?: string;
|
|
45
|
-
options?: {
|
|
46
|
-
[k: string]: unknown;
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
| {
|
|
50
|
-
targets?: {
|
|
51
|
-
target?: string;
|
|
52
|
-
options?: {
|
|
53
|
-
[k: string]: unknown;
|
|
54
|
-
};
|
|
55
|
-
level?: string;
|
|
56
|
-
}[];
|
|
57
|
-
options?: {
|
|
58
|
-
[k: string]: unknown;
|
|
59
|
-
};
|
|
60
|
-
};
|
|
61
|
-
pipeline?: {
|
|
62
|
-
target?: string;
|
|
63
|
-
options?: {
|
|
64
|
-
[k: string]: unknown;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
formatters?: {
|
|
68
|
-
path: string;
|
|
69
|
-
};
|
|
70
|
-
timestamp?: "epochTime" | "unixTime" | "nullTime" | "isoTime";
|
|
71
|
-
redact?: {
|
|
72
|
-
paths: string[];
|
|
73
|
-
censor?: string;
|
|
74
|
-
};
|
|
75
|
-
base?: {
|
|
76
|
-
[k: string]: unknown;
|
|
77
|
-
} | null;
|
|
78
|
-
messageKey?: string;
|
|
79
|
-
customLevels?: {
|
|
80
|
-
[k: string]: unknown;
|
|
81
|
-
};
|
|
82
|
-
[k: string]: unknown;
|
|
83
|
-
};
|
|
84
|
-
loggerInstance?: {
|
|
85
|
-
[k: string]: unknown;
|
|
86
|
-
};
|
|
87
|
-
serializerOpts?: {
|
|
88
|
-
schema?: {
|
|
89
|
-
[k: string]: unknown;
|
|
90
|
-
};
|
|
91
|
-
ajv?: {
|
|
92
|
-
[k: string]: unknown;
|
|
93
|
-
};
|
|
94
|
-
rounding?: "floor" | "ceil" | "round" | "trunc";
|
|
95
|
-
debugMode?: boolean;
|
|
96
|
-
mode?: "debug" | "standalone";
|
|
97
|
-
largeArraySize?: number | string;
|
|
98
|
-
largeArrayMechanism?: "default" | "json-stringify";
|
|
99
|
-
[k: string]: unknown;
|
|
100
|
-
};
|
|
101
|
-
caseSensitive?: boolean;
|
|
102
|
-
requestIdHeader?: string | false;
|
|
103
|
-
requestIdLogLabel?: string;
|
|
104
|
-
jsonShorthand?: boolean;
|
|
105
|
-
trustProxy?: boolean | string | string[] | number;
|
|
106
|
-
http2?: boolean;
|
|
107
|
-
https?: {
|
|
108
|
-
allowHTTP1?: boolean;
|
|
109
|
-
key:
|
|
110
|
-
| string
|
|
111
|
-
| {
|
|
112
|
-
path?: string;
|
|
113
|
-
}
|
|
114
|
-
| (
|
|
115
|
-
| string
|
|
116
|
-
| {
|
|
117
|
-
path?: string;
|
|
118
|
-
}
|
|
119
|
-
)[];
|
|
120
|
-
cert:
|
|
121
|
-
| string
|
|
122
|
-
| {
|
|
123
|
-
path?: string;
|
|
124
|
-
}
|
|
125
|
-
| (
|
|
126
|
-
| string
|
|
127
|
-
| {
|
|
128
|
-
path?: string;
|
|
129
|
-
}
|
|
130
|
-
)[];
|
|
131
|
-
requestCert?: boolean;
|
|
132
|
-
rejectUnauthorized?: boolean;
|
|
133
|
-
};
|
|
134
|
-
cors?: {
|
|
135
|
-
origin?:
|
|
136
|
-
| boolean
|
|
137
|
-
| string
|
|
138
|
-
| (
|
|
139
|
-
| string
|
|
140
|
-
| {
|
|
141
|
-
regexp: string;
|
|
142
|
-
[k: string]: unknown;
|
|
143
|
-
}
|
|
144
|
-
)[]
|
|
145
|
-
| {
|
|
146
|
-
regexp: string;
|
|
147
|
-
[k: string]: unknown;
|
|
148
|
-
};
|
|
149
|
-
methods?: string[];
|
|
150
|
-
/**
|
|
151
|
-
* Comma separated string of allowed headers.
|
|
152
|
-
*/
|
|
153
|
-
allowedHeaders?: string;
|
|
154
|
-
exposedHeaders?: string[] | string;
|
|
155
|
-
credentials?: boolean;
|
|
156
|
-
maxAge?: number;
|
|
157
|
-
preflightContinue?: boolean;
|
|
158
|
-
optionsSuccessStatus?: number;
|
|
159
|
-
preflight?: boolean;
|
|
160
|
-
strictPreflight?: boolean;
|
|
161
|
-
hideOptionsRoute?: boolean;
|
|
162
|
-
};
|
|
163
|
-
};
|
|
164
|
-
composer?: {
|
|
165
|
-
services?: {
|
|
166
|
-
id: string;
|
|
167
|
-
origin?: string;
|
|
168
|
-
openapi?: {
|
|
169
|
-
[k: string]: unknown;
|
|
170
|
-
};
|
|
171
|
-
graphql?:
|
|
172
|
-
| boolean
|
|
173
|
-
| {
|
|
174
|
-
host?: string;
|
|
175
|
-
name?: string;
|
|
176
|
-
graphqlEndpoint?: string;
|
|
177
|
-
composeEndpoint?: string;
|
|
178
|
-
entities?: {
|
|
179
|
-
/**
|
|
180
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
181
|
-
* via the `patternProperty` "^.*$".
|
|
182
|
-
*/
|
|
183
|
-
[k: string]: {
|
|
184
|
-
pkey?: string;
|
|
185
|
-
resolver?: {
|
|
186
|
-
name: string;
|
|
187
|
-
argsAdapter?:
|
|
188
|
-
| {
|
|
189
|
-
[k: string]: unknown;
|
|
190
|
-
}
|
|
191
|
-
| string;
|
|
192
|
-
partialResults?:
|
|
193
|
-
| {
|
|
194
|
-
[k: string]: unknown;
|
|
195
|
-
}
|
|
196
|
-
| string;
|
|
197
|
-
};
|
|
198
|
-
fkeys?: {
|
|
199
|
-
type: string;
|
|
200
|
-
field?: string;
|
|
201
|
-
as?: string;
|
|
202
|
-
pkey?: string;
|
|
203
|
-
subgraph?: string;
|
|
204
|
-
resolver?: {
|
|
205
|
-
name: string;
|
|
206
|
-
argsAdapter?:
|
|
207
|
-
| {
|
|
208
|
-
[k: string]: unknown;
|
|
209
|
-
}
|
|
210
|
-
| string;
|
|
211
|
-
partialResults?:
|
|
212
|
-
| {
|
|
213
|
-
[k: string]: unknown;
|
|
214
|
-
}
|
|
215
|
-
| string;
|
|
216
|
-
};
|
|
217
|
-
[k: string]: unknown;
|
|
218
|
-
}[];
|
|
219
|
-
many?: {
|
|
220
|
-
type: string;
|
|
221
|
-
fkey: string;
|
|
222
|
-
as?: string;
|
|
223
|
-
pkey?: string;
|
|
224
|
-
subgraph?: string;
|
|
225
|
-
resolver: {
|
|
226
|
-
name: string;
|
|
227
|
-
argsAdapter?:
|
|
228
|
-
| {
|
|
229
|
-
[k: string]: unknown;
|
|
230
|
-
}
|
|
231
|
-
| string;
|
|
232
|
-
partialResults?:
|
|
233
|
-
| {
|
|
234
|
-
[k: string]: unknown;
|
|
235
|
-
}
|
|
236
|
-
| string;
|
|
237
|
-
};
|
|
238
|
-
[k: string]: unknown;
|
|
239
|
-
}[];
|
|
240
|
-
[k: string]: unknown;
|
|
241
|
-
};
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
proxy?:
|
|
245
|
-
| false
|
|
246
|
-
| {
|
|
247
|
-
upstream?: string;
|
|
248
|
-
prefix?: string;
|
|
249
|
-
hostname?: string;
|
|
250
|
-
ws?: {
|
|
251
|
-
upstream?: string;
|
|
252
|
-
reconnect?: {
|
|
253
|
-
pingInterval?: number;
|
|
254
|
-
maxReconnectionRetries?: number;
|
|
255
|
-
reconnectInterval?: number;
|
|
256
|
-
reconnectDecay?: number;
|
|
257
|
-
connectionTimeout?: number;
|
|
258
|
-
reconnectOnClose?: boolean;
|
|
259
|
-
logs?: boolean;
|
|
260
|
-
[k: string]: unknown;
|
|
261
|
-
};
|
|
262
|
-
hooks?: {
|
|
263
|
-
path: string;
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
}[];
|
|
268
|
-
openapi?: {
|
|
269
|
-
info?: Info;
|
|
270
|
-
jsonSchemaDialect?: string;
|
|
271
|
-
servers?: Server[];
|
|
272
|
-
paths?: Paths;
|
|
273
|
-
webhooks?: {
|
|
274
|
-
[k: string]: PathItemOrReference;
|
|
275
|
-
};
|
|
276
|
-
components?: Components;
|
|
277
|
-
security?: SecurityRequirement[];
|
|
278
|
-
tags?: Tag[];
|
|
279
|
-
externalDocs?: ExternalDocumentation;
|
|
280
|
-
/**
|
|
281
|
-
* Base URL for the OpenAPI Swagger Documentation
|
|
282
|
-
*/
|
|
283
|
-
swaggerPrefix?: string;
|
|
284
|
-
/**
|
|
285
|
-
* Path to an OpenAPI spec file
|
|
286
|
-
*/
|
|
287
|
-
path?: string;
|
|
288
|
-
[k: string]: unknown;
|
|
289
|
-
};
|
|
290
|
-
graphql?: {
|
|
291
|
-
graphiql?: boolean;
|
|
292
|
-
onSubgraphError?: {
|
|
293
|
-
[k: string]: unknown;
|
|
294
|
-
};
|
|
295
|
-
defaultArgsAdapter?:
|
|
296
|
-
| {
|
|
297
|
-
[k: string]: unknown;
|
|
298
|
-
}
|
|
299
|
-
| string;
|
|
300
|
-
entities?: {
|
|
301
|
-
/**
|
|
302
|
-
* This interface was referenced by `undefined`'s JSON-Schema definition
|
|
303
|
-
* via the `patternProperty` "^.*$".
|
|
304
|
-
*/
|
|
305
|
-
[k: string]: {
|
|
306
|
-
pkey?: string;
|
|
307
|
-
resolver?: {
|
|
308
|
-
name: string;
|
|
309
|
-
argsAdapter?:
|
|
310
|
-
| {
|
|
311
|
-
[k: string]: unknown;
|
|
312
|
-
}
|
|
313
|
-
| string;
|
|
314
|
-
partialResults?:
|
|
315
|
-
| {
|
|
316
|
-
[k: string]: unknown;
|
|
317
|
-
}
|
|
318
|
-
| string;
|
|
319
|
-
};
|
|
320
|
-
fkeys?: {
|
|
321
|
-
type: string;
|
|
322
|
-
field?: string;
|
|
323
|
-
as?: string;
|
|
324
|
-
pkey?: string;
|
|
325
|
-
subgraph?: string;
|
|
326
|
-
resolver?: {
|
|
327
|
-
name: string;
|
|
328
|
-
argsAdapter?:
|
|
329
|
-
| {
|
|
330
|
-
[k: string]: unknown;
|
|
331
|
-
}
|
|
332
|
-
| string;
|
|
333
|
-
partialResults?:
|
|
334
|
-
| {
|
|
335
|
-
[k: string]: unknown;
|
|
336
|
-
}
|
|
337
|
-
| string;
|
|
338
|
-
};
|
|
339
|
-
[k: string]: unknown;
|
|
340
|
-
}[];
|
|
341
|
-
many?: {
|
|
342
|
-
type: string;
|
|
343
|
-
fkey: string;
|
|
344
|
-
as?: string;
|
|
345
|
-
pkey?: string;
|
|
346
|
-
subgraph?: string;
|
|
347
|
-
resolver: {
|
|
348
|
-
name: string;
|
|
349
|
-
argsAdapter?:
|
|
350
|
-
| {
|
|
351
|
-
[k: string]: unknown;
|
|
352
|
-
}
|
|
353
|
-
| string;
|
|
354
|
-
partialResults?:
|
|
355
|
-
| {
|
|
356
|
-
[k: string]: unknown;
|
|
357
|
-
}
|
|
358
|
-
| string;
|
|
359
|
-
};
|
|
360
|
-
[k: string]: unknown;
|
|
361
|
-
}[];
|
|
362
|
-
[k: string]: unknown;
|
|
363
|
-
};
|
|
364
|
-
};
|
|
365
|
-
addEntitiesResolvers?: boolean;
|
|
366
|
-
};
|
|
367
|
-
addEmptySchema?: boolean;
|
|
368
|
-
refreshTimeout?: number;
|
|
369
|
-
};
|
|
370
|
-
types?: {
|
|
371
|
-
autogenerate?: boolean;
|
|
372
|
-
/**
|
|
373
|
-
* The path to the directory the types should be generated in.
|
|
374
|
-
*/
|
|
375
|
-
dir?: string;
|
|
376
|
-
};
|
|
377
|
-
plugins?: {
|
|
378
|
-
[k: string]: unknown;
|
|
379
|
-
};
|
|
380
|
-
application?: {};
|
|
381
|
-
runtime?: {
|
|
382
|
-
preload?: string | string[];
|
|
383
|
-
basePath?: string;
|
|
384
|
-
workers?: number | string;
|
|
385
|
-
logger?: {
|
|
386
|
-
level: (
|
|
387
|
-
| ("fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent")
|
|
388
|
-
| {
|
|
389
|
-
[k: string]: unknown;
|
|
390
|
-
}
|
|
391
|
-
) &
|
|
392
|
-
string;
|
|
393
|
-
transport?:
|
|
394
|
-
| {
|
|
395
|
-
target?: string;
|
|
396
|
-
options?: {
|
|
397
|
-
[k: string]: unknown;
|
|
398
|
-
};
|
|
399
|
-
}
|
|
400
|
-
| {
|
|
401
|
-
targets?: {
|
|
402
|
-
target?: string;
|
|
403
|
-
options?: {
|
|
404
|
-
[k: string]: unknown;
|
|
405
|
-
};
|
|
406
|
-
level?: string;
|
|
407
|
-
}[];
|
|
408
|
-
options?: {
|
|
409
|
-
[k: string]: unknown;
|
|
410
|
-
};
|
|
411
|
-
};
|
|
412
|
-
pipeline?: {
|
|
413
|
-
target?: string;
|
|
414
|
-
options?: {
|
|
415
|
-
[k: string]: unknown;
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
formatters?: {
|
|
419
|
-
path: string;
|
|
420
|
-
};
|
|
421
|
-
timestamp?: "epochTime" | "unixTime" | "nullTime" | "isoTime";
|
|
422
|
-
redact?: {
|
|
423
|
-
paths: string[];
|
|
424
|
-
censor?: string;
|
|
425
|
-
};
|
|
426
|
-
base?: {
|
|
427
|
-
[k: string]: unknown;
|
|
428
|
-
} | null;
|
|
429
|
-
messageKey?: string;
|
|
430
|
-
customLevels?: {
|
|
431
|
-
[k: string]: unknown;
|
|
432
|
-
};
|
|
433
|
-
[k: string]: unknown;
|
|
434
|
-
};
|
|
435
|
-
server?: {
|
|
436
|
-
hostname?: string;
|
|
437
|
-
port?: number | string;
|
|
438
|
-
http2?: boolean;
|
|
439
|
-
https?: {
|
|
440
|
-
allowHTTP1?: boolean;
|
|
441
|
-
key:
|
|
442
|
-
| string
|
|
443
|
-
| {
|
|
444
|
-
path?: string;
|
|
445
|
-
}
|
|
446
|
-
| (
|
|
447
|
-
| string
|
|
448
|
-
| {
|
|
449
|
-
path?: string;
|
|
450
|
-
}
|
|
451
|
-
)[];
|
|
452
|
-
cert:
|
|
453
|
-
| string
|
|
454
|
-
| {
|
|
455
|
-
path?: string;
|
|
456
|
-
}
|
|
457
|
-
| (
|
|
458
|
-
| string
|
|
459
|
-
| {
|
|
460
|
-
path?: string;
|
|
461
|
-
}
|
|
462
|
-
)[];
|
|
463
|
-
requestCert?: boolean;
|
|
464
|
-
rejectUnauthorized?: boolean;
|
|
465
|
-
};
|
|
466
|
-
};
|
|
467
|
-
startTimeout?: number;
|
|
468
|
-
restartOnError?: boolean | number;
|
|
469
|
-
gracefulShutdown?: {
|
|
470
|
-
runtime: number | string;
|
|
471
|
-
service: number | string;
|
|
472
|
-
};
|
|
473
|
-
health?: {
|
|
474
|
-
enabled?: boolean | string;
|
|
475
|
-
interval?: number | string;
|
|
476
|
-
gracePeriod?: number | string;
|
|
477
|
-
maxUnhealthyChecks?: number | string;
|
|
478
|
-
maxELU?: number | string;
|
|
479
|
-
maxHeapUsed?: number | string;
|
|
480
|
-
maxHeapTotal?: number | string;
|
|
481
|
-
maxYoungGeneration?: number | string;
|
|
482
|
-
};
|
|
483
|
-
undici?: {
|
|
484
|
-
agentOptions?: {
|
|
485
|
-
[k: string]: unknown;
|
|
486
|
-
};
|
|
487
|
-
interceptors?:
|
|
488
|
-
| {
|
|
489
|
-
module: string;
|
|
490
|
-
options: {
|
|
491
|
-
[k: string]: unknown;
|
|
492
|
-
};
|
|
493
|
-
[k: string]: unknown;
|
|
494
|
-
}[]
|
|
495
|
-
| {
|
|
496
|
-
Client?: {
|
|
497
|
-
module: string;
|
|
498
|
-
options: {
|
|
499
|
-
[k: string]: unknown;
|
|
500
|
-
};
|
|
501
|
-
[k: string]: unknown;
|
|
502
|
-
}[];
|
|
503
|
-
Pool?: {
|
|
504
|
-
module: string;
|
|
505
|
-
options: {
|
|
506
|
-
[k: string]: unknown;
|
|
507
|
-
};
|
|
508
|
-
[k: string]: unknown;
|
|
509
|
-
}[];
|
|
510
|
-
Agent?: {
|
|
511
|
-
module: string;
|
|
512
|
-
options: {
|
|
513
|
-
[k: string]: unknown;
|
|
514
|
-
};
|
|
515
|
-
[k: string]: unknown;
|
|
516
|
-
}[];
|
|
517
|
-
[k: string]: unknown;
|
|
518
|
-
};
|
|
519
|
-
[k: string]: unknown;
|
|
520
|
-
};
|
|
521
|
-
httpCache?:
|
|
522
|
-
| boolean
|
|
523
|
-
| {
|
|
524
|
-
store?: string;
|
|
525
|
-
/**
|
|
526
|
-
* @minItems 1
|
|
527
|
-
*/
|
|
528
|
-
methods?: [string, ...string[]];
|
|
529
|
-
cacheTagsHeader?: string;
|
|
530
|
-
maxSize?: number;
|
|
531
|
-
maxEntrySize?: number;
|
|
532
|
-
maxCount?: number;
|
|
533
|
-
[k: string]: unknown;
|
|
534
|
-
};
|
|
535
|
-
watch?: boolean | string;
|
|
536
|
-
managementApi?:
|
|
537
|
-
| boolean
|
|
538
|
-
| string
|
|
539
|
-
| {
|
|
540
|
-
logs?: {
|
|
541
|
-
maxSize?: number;
|
|
542
|
-
};
|
|
543
|
-
};
|
|
544
|
-
metrics?:
|
|
545
|
-
| boolean
|
|
546
|
-
| {
|
|
547
|
-
port?: number | string;
|
|
548
|
-
enabled?: boolean | string;
|
|
549
|
-
hostname?: string;
|
|
550
|
-
endpoint?: string;
|
|
551
|
-
auth?: {
|
|
552
|
-
username: string;
|
|
553
|
-
password: string;
|
|
554
|
-
};
|
|
555
|
-
labels?: {
|
|
556
|
-
[k: string]: string;
|
|
557
|
-
};
|
|
558
|
-
readiness?:
|
|
559
|
-
| boolean
|
|
560
|
-
| {
|
|
561
|
-
endpoint?: string;
|
|
562
|
-
success?: {
|
|
563
|
-
statusCode?: number;
|
|
564
|
-
body?: string;
|
|
565
|
-
};
|
|
566
|
-
fail?: {
|
|
567
|
-
statusCode?: number;
|
|
568
|
-
body?: string;
|
|
569
|
-
};
|
|
570
|
-
};
|
|
571
|
-
liveness?:
|
|
572
|
-
| boolean
|
|
573
|
-
| {
|
|
574
|
-
endpoint?: string;
|
|
575
|
-
success?: {
|
|
576
|
-
statusCode?: number;
|
|
577
|
-
body?: string;
|
|
578
|
-
};
|
|
579
|
-
fail?: {
|
|
580
|
-
statusCode?: number;
|
|
581
|
-
body?: string;
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
additionalProperties?: never;
|
|
585
|
-
[k: string]: unknown;
|
|
586
|
-
};
|
|
587
|
-
telemetry?: {
|
|
588
|
-
enabled?: boolean | string;
|
|
589
|
-
/**
|
|
590
|
-
* The name of the service. Defaults to the folder name if not specified.
|
|
591
|
-
*/
|
|
592
|
-
serviceName: string;
|
|
593
|
-
/**
|
|
594
|
-
* The version of the service (optional)
|
|
595
|
-
*/
|
|
596
|
-
version?: string;
|
|
597
|
-
/**
|
|
598
|
-
* An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.
|
|
599
|
-
*/
|
|
600
|
-
skip?: {
|
|
601
|
-
/**
|
|
602
|
-
* The path to skip. Can be a string or a regex.
|
|
603
|
-
*/
|
|
604
|
-
path?: string;
|
|
605
|
-
/**
|
|
606
|
-
* HTTP method to skip
|
|
607
|
-
*/
|
|
608
|
-
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
609
|
-
[k: string]: unknown;
|
|
610
|
-
}[];
|
|
611
|
-
exporter?:
|
|
612
|
-
| {
|
|
613
|
-
type?: "console" | "otlp" | "zipkin" | "memory" | "file";
|
|
614
|
-
/**
|
|
615
|
-
* Options for the exporter. These are passed directly to the exporter.
|
|
616
|
-
*/
|
|
617
|
-
options?: {
|
|
618
|
-
/**
|
|
619
|
-
* The URL to send the traces to. Not used for console or memory exporters.
|
|
620
|
-
*/
|
|
621
|
-
url?: string;
|
|
622
|
-
/**
|
|
623
|
-
* Headers to send to the exporter. Not used for console or memory exporters.
|
|
624
|
-
*/
|
|
625
|
-
headers?: {
|
|
626
|
-
[k: string]: unknown;
|
|
627
|
-
};
|
|
628
|
-
/**
|
|
629
|
-
* The path to write the traces to. Only for file exporter.
|
|
630
|
-
*/
|
|
631
|
-
path?: string;
|
|
632
|
-
[k: string]: unknown;
|
|
633
|
-
};
|
|
634
|
-
additionalProperties?: never;
|
|
635
|
-
[k: string]: unknown;
|
|
636
|
-
}[]
|
|
637
|
-
| {
|
|
638
|
-
type?: "console" | "otlp" | "zipkin" | "memory" | "file";
|
|
639
|
-
/**
|
|
640
|
-
* Options for the exporter. These are passed directly to the exporter.
|
|
641
|
-
*/
|
|
642
|
-
options?: {
|
|
643
|
-
/**
|
|
644
|
-
* The URL to send the traces to. Not used for console or memory exporters.
|
|
645
|
-
*/
|
|
646
|
-
url?: string;
|
|
647
|
-
/**
|
|
648
|
-
* Headers to send to the exporter. Not used for console or memory exporters.
|
|
649
|
-
*/
|
|
650
|
-
headers?: {
|
|
651
|
-
[k: string]: unknown;
|
|
652
|
-
};
|
|
653
|
-
/**
|
|
654
|
-
* The path to write the traces to. Only for file exporter.
|
|
655
|
-
*/
|
|
656
|
-
path?: string;
|
|
657
|
-
[k: string]: unknown;
|
|
658
|
-
};
|
|
659
|
-
additionalProperties?: never;
|
|
660
|
-
[k: string]: unknown;
|
|
661
|
-
};
|
|
662
|
-
};
|
|
663
|
-
inspectorOptions?: {
|
|
664
|
-
host?: string;
|
|
665
|
-
port?: number;
|
|
666
|
-
breakFirstLine?: boolean;
|
|
667
|
-
watchDisabled?: boolean;
|
|
668
|
-
[k: string]: unknown;
|
|
669
|
-
};
|
|
670
|
-
serviceTimeout?: number | string;
|
|
671
|
-
messagingTimeout?: number | string;
|
|
672
|
-
env?: {
|
|
673
|
-
[k: string]: string;
|
|
674
|
-
};
|
|
675
|
-
sourceMaps?: boolean;
|
|
676
|
-
scheduler?: {
|
|
677
|
-
enabled?: boolean | string;
|
|
678
|
-
name: string;
|
|
679
|
-
cron: string;
|
|
680
|
-
callbackUrl: string;
|
|
681
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
682
|
-
headers?: {
|
|
683
|
-
[k: string]: string;
|
|
684
|
-
};
|
|
685
|
-
body?:
|
|
686
|
-
| string
|
|
687
|
-
| {
|
|
688
|
-
[k: string]: unknown;
|
|
689
|
-
};
|
|
690
|
-
maxRetries?: number;
|
|
691
|
-
[k: string]: unknown;
|
|
692
|
-
}[];
|
|
693
|
-
};
|
|
694
|
-
telemetry?: {
|
|
695
|
-
enabled?: boolean | string;
|
|
696
|
-
/**
|
|
697
|
-
* The name of the service. Defaults to the folder name if not specified.
|
|
698
|
-
*/
|
|
699
|
-
serviceName: string;
|
|
700
|
-
/**
|
|
701
|
-
* The version of the service (optional)
|
|
702
|
-
*/
|
|
703
|
-
version?: string;
|
|
704
|
-
/**
|
|
705
|
-
* An array of paths to skip when creating spans. Useful for health checks and other endpoints that do not need to be traced.
|
|
706
|
-
*/
|
|
707
|
-
skip?: {
|
|
708
|
-
/**
|
|
709
|
-
* The path to skip. Can be a string or a regex.
|
|
710
|
-
*/
|
|
711
|
-
path?: string;
|
|
712
|
-
/**
|
|
713
|
-
* HTTP method to skip
|
|
714
|
-
*/
|
|
715
|
-
method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
|
|
716
|
-
[k: string]: unknown;
|
|
717
|
-
}[];
|
|
718
|
-
exporter?:
|
|
719
|
-
| {
|
|
720
|
-
type?: "console" | "otlp" | "zipkin" | "memory" | "file";
|
|
721
|
-
/**
|
|
722
|
-
* Options for the exporter. These are passed directly to the exporter.
|
|
723
|
-
*/
|
|
724
|
-
options?: {
|
|
725
|
-
/**
|
|
726
|
-
* The URL to send the traces to. Not used for console or memory exporters.
|
|
727
|
-
*/
|
|
728
|
-
url?: string;
|
|
729
|
-
/**
|
|
730
|
-
* Headers to send to the exporter. Not used for console or memory exporters.
|
|
731
|
-
*/
|
|
732
|
-
headers?: {
|
|
733
|
-
[k: string]: unknown;
|
|
734
|
-
};
|
|
735
|
-
/**
|
|
736
|
-
* The path to write the traces to. Only for file exporter.
|
|
737
|
-
*/
|
|
738
|
-
path?: string;
|
|
739
|
-
[k: string]: unknown;
|
|
740
|
-
};
|
|
741
|
-
additionalProperties?: never;
|
|
742
|
-
[k: string]: unknown;
|
|
743
|
-
}[]
|
|
744
|
-
| {
|
|
745
|
-
type?: "console" | "otlp" | "zipkin" | "memory" | "file";
|
|
746
|
-
/**
|
|
747
|
-
* Options for the exporter. These are passed directly to the exporter.
|
|
748
|
-
*/
|
|
749
|
-
options?: {
|
|
750
|
-
/**
|
|
751
|
-
* The URL to send the traces to. Not used for console or memory exporters.
|
|
752
|
-
*/
|
|
753
|
-
url?: string;
|
|
754
|
-
/**
|
|
755
|
-
* Headers to send to the exporter. Not used for console or memory exporters.
|
|
756
|
-
*/
|
|
757
|
-
headers?: {
|
|
758
|
-
[k: string]: unknown;
|
|
759
|
-
};
|
|
760
|
-
/**
|
|
761
|
-
* The path to write the traces to. Only for file exporter.
|
|
762
|
-
*/
|
|
763
|
-
path?: string;
|
|
764
|
-
[k: string]: unknown;
|
|
765
|
-
};
|
|
766
|
-
additionalProperties?: never;
|
|
767
|
-
[k: string]: unknown;
|
|
768
|
-
};
|
|
769
|
-
};
|
|
770
|
-
watch?:
|
|
771
|
-
| {
|
|
772
|
-
enabled?: boolean | string;
|
|
773
|
-
/**
|
|
774
|
-
* @minItems 1
|
|
775
|
-
*/
|
|
776
|
-
allow?: [string, ...string[]];
|
|
777
|
-
ignore?: string[];
|
|
778
|
-
}
|
|
779
|
-
| boolean
|
|
780
|
-
| string;
|
|
781
|
-
$schema?: string;
|
|
782
|
-
module?: string;
|
|
783
|
-
}
|
|
784
|
-
export interface Info {
|
|
785
|
-
title: string;
|
|
786
|
-
summary?: string;
|
|
787
|
-
description?: string;
|
|
788
|
-
termsOfService?: string;
|
|
789
|
-
contact?: Contact;
|
|
790
|
-
license?: License;
|
|
791
|
-
version: string;
|
|
792
|
-
/**
|
|
793
|
-
* This interface was referenced by `Info`'s JSON-Schema definition
|
|
794
|
-
* via the `patternProperty` "^x-".
|
|
795
|
-
*/
|
|
796
|
-
[k: string]: unknown;
|
|
797
|
-
}
|
|
798
|
-
export interface Contact {
|
|
799
|
-
name?: string;
|
|
800
|
-
url?: string;
|
|
801
|
-
email?: string;
|
|
802
|
-
/**
|
|
803
|
-
* This interface was referenced by `Contact`'s JSON-Schema definition
|
|
804
|
-
* via the `patternProperty` "^x-".
|
|
805
|
-
*/
|
|
806
|
-
[k: string]: unknown;
|
|
807
|
-
}
|
|
808
|
-
export interface License {
|
|
809
|
-
name: string;
|
|
810
|
-
identifier?: string;
|
|
811
|
-
url?: string;
|
|
812
|
-
/**
|
|
813
|
-
* This interface was referenced by `License`'s JSON-Schema definition
|
|
814
|
-
* via the `patternProperty` "^x-".
|
|
815
|
-
*/
|
|
816
|
-
[k: string]: unknown;
|
|
817
|
-
}
|
|
818
|
-
export interface Server {
|
|
819
|
-
url: string;
|
|
820
|
-
description?: string;
|
|
821
|
-
variables?: {
|
|
822
|
-
[k: string]: ServerVariable;
|
|
823
|
-
};
|
|
824
|
-
/**
|
|
825
|
-
* This interface was referenced by `Server`'s JSON-Schema definition
|
|
826
|
-
* via the `patternProperty` "^x-".
|
|
827
|
-
*/
|
|
828
|
-
[k: string]: unknown;
|
|
829
|
-
}
|
|
830
|
-
export interface ServerVariable {
|
|
831
|
-
/**
|
|
832
|
-
* @minItems 1
|
|
833
|
-
*/
|
|
834
|
-
enum?: [string, ...string[]];
|
|
835
|
-
default: string;
|
|
836
|
-
description?: string;
|
|
837
|
-
/**
|
|
838
|
-
* This interface was referenced by `ServerVariable`'s JSON-Schema definition
|
|
839
|
-
* via the `patternProperty` "^x-".
|
|
840
|
-
*/
|
|
841
|
-
[k: string]: unknown;
|
|
842
|
-
}
|
|
843
|
-
export interface Paths {
|
|
844
|
-
[k: string]: PathItem;
|
|
845
|
-
}
|
|
846
|
-
/**
|
|
847
|
-
* This interface was referenced by `Paths`'s JSON-Schema definition
|
|
848
|
-
* via the `patternProperty` "^/".
|
|
849
|
-
*/
|
|
850
|
-
export interface PathItem {
|
|
851
|
-
summary?: string;
|
|
852
|
-
description?: string;
|
|
853
|
-
servers?: Server[];
|
|
854
|
-
parameters?: ParameterOrReference[];
|
|
855
|
-
get?: Operation;
|
|
856
|
-
put?: Operation1;
|
|
857
|
-
post?: Operation1;
|
|
858
|
-
delete?: Operation1;
|
|
859
|
-
options?: Operation1;
|
|
860
|
-
head?: Operation1;
|
|
861
|
-
patch?: Operation1;
|
|
862
|
-
trace?: Operation1;
|
|
863
|
-
/**
|
|
864
|
-
* This interface was referenced by `PathItem`'s JSON-Schema definition
|
|
865
|
-
* via the `patternProperty` "^x-".
|
|
866
|
-
*/
|
|
867
|
-
[k: string]: unknown;
|
|
868
|
-
}
|
|
869
|
-
export interface ParameterOrReference {
|
|
870
|
-
[k: string]: unknown;
|
|
871
|
-
}
|
|
872
|
-
export interface Operation {
|
|
873
|
-
tags?: string[];
|
|
874
|
-
summary?: string;
|
|
875
|
-
description?: string;
|
|
876
|
-
externalDocs?: ExternalDocumentation;
|
|
877
|
-
operationId?: string;
|
|
878
|
-
parameters?: ParameterOrReference[];
|
|
879
|
-
requestBody?: RequestBodyOrReference;
|
|
880
|
-
responses?: Responses;
|
|
881
|
-
callbacks?: {
|
|
882
|
-
[k: string]: CallbacksOrReference;
|
|
883
|
-
};
|
|
884
|
-
security?: SecurityRequirement[];
|
|
885
|
-
servers?: Server[];
|
|
886
|
-
/**
|
|
887
|
-
* This interface was referenced by `Operation`'s JSON-Schema definition
|
|
888
|
-
* via the `patternProperty` "^x-".
|
|
889
|
-
*/
|
|
890
|
-
[k: string]: unknown;
|
|
891
|
-
}
|
|
892
|
-
export interface ExternalDocumentation {
|
|
893
|
-
description?: string;
|
|
894
|
-
url: string;
|
|
895
|
-
/**
|
|
896
|
-
* This interface was referenced by `ExternalDocumentation`'s JSON-Schema definition
|
|
897
|
-
* via the `patternProperty` "^x-".
|
|
898
|
-
*/
|
|
899
|
-
[k: string]: unknown;
|
|
900
|
-
}
|
|
901
|
-
export interface RequestBodyOrReference {
|
|
902
|
-
[k: string]: unknown;
|
|
903
|
-
}
|
|
904
|
-
export interface Responses {
|
|
905
|
-
[k: string]: ResponseOrReference;
|
|
906
|
-
}
|
|
907
|
-
export interface ResponseOrReference {
|
|
908
|
-
[k: string]: unknown;
|
|
909
|
-
}
|
|
910
|
-
export interface CallbacksOrReference {
|
|
911
|
-
[k: string]: unknown;
|
|
912
|
-
}
|
|
913
|
-
export interface SecurityRequirement {
|
|
914
|
-
[k: string]: string[];
|
|
915
|
-
}
|
|
916
|
-
export interface Operation1 {
|
|
917
|
-
tags?: string[];
|
|
918
|
-
summary?: string;
|
|
919
|
-
description?: string;
|
|
920
|
-
externalDocs?: ExternalDocumentation;
|
|
921
|
-
operationId?: string;
|
|
922
|
-
parameters?: ParameterOrReference[];
|
|
923
|
-
requestBody?: RequestBodyOrReference;
|
|
924
|
-
responses?: Responses;
|
|
925
|
-
callbacks?: {
|
|
926
|
-
[k: string]: CallbacksOrReference;
|
|
927
|
-
};
|
|
928
|
-
security?: SecurityRequirement[];
|
|
929
|
-
servers?: Server[];
|
|
930
|
-
/**
|
|
931
|
-
* This interface was referenced by `Operation1`'s JSON-Schema definition
|
|
932
|
-
* via the `patternProperty` "^x-".
|
|
933
|
-
*/
|
|
934
|
-
[k: string]: unknown;
|
|
935
|
-
}
|
|
936
|
-
export interface PathItemOrReference {
|
|
937
|
-
[k: string]: unknown;
|
|
938
|
-
}
|
|
939
|
-
export interface Components {
|
|
940
|
-
schemas?: {
|
|
941
|
-
[k: string]: unknown;
|
|
942
|
-
};
|
|
943
|
-
responses?: {
|
|
944
|
-
[k: string]: ResponseOrReference;
|
|
945
|
-
};
|
|
946
|
-
parameters?: {
|
|
947
|
-
[k: string]: ParameterOrReference;
|
|
948
|
-
};
|
|
949
|
-
examples?: {
|
|
950
|
-
[k: string]: ExampleOrReference;
|
|
951
|
-
};
|
|
952
|
-
requestBodies?: {
|
|
953
|
-
[k: string]: RequestBodyOrReference;
|
|
954
|
-
};
|
|
955
|
-
headers?: {
|
|
956
|
-
[k: string]: HeaderOrReference;
|
|
957
|
-
};
|
|
958
|
-
securitySchemes?: {
|
|
959
|
-
[k: string]: SecuritySchemeOrReference;
|
|
960
|
-
};
|
|
961
|
-
links?: {
|
|
962
|
-
[k: string]: LinkOrReference;
|
|
963
|
-
};
|
|
964
|
-
callbacks?: {
|
|
965
|
-
[k: string]: CallbacksOrReference;
|
|
966
|
-
};
|
|
967
|
-
pathItems?: {
|
|
968
|
-
[k: string]: PathItemOrReference;
|
|
969
|
-
};
|
|
970
|
-
/**
|
|
971
|
-
* This interface was referenced by `Components`'s JSON-Schema definition
|
|
972
|
-
* via the `patternProperty` "^x-".
|
|
973
|
-
*/
|
|
974
|
-
[k: string]: unknown;
|
|
975
|
-
}
|
|
976
|
-
export interface ExampleOrReference {
|
|
977
|
-
[k: string]: unknown;
|
|
978
|
-
}
|
|
979
|
-
export interface HeaderOrReference {
|
|
980
|
-
[k: string]: unknown;
|
|
981
|
-
}
|
|
982
|
-
export interface SecuritySchemeOrReference {
|
|
983
|
-
[k: string]: unknown;
|
|
984
|
-
}
|
|
985
|
-
export interface LinkOrReference {
|
|
986
|
-
[k: string]: unknown;
|
|
987
|
-
}
|
|
988
|
-
export interface Tag {
|
|
989
|
-
name: string;
|
|
990
|
-
description?: string;
|
|
991
|
-
externalDocs?: ExternalDocumentation;
|
|
992
|
-
/**
|
|
993
|
-
* This interface was referenced by `Tag`'s JSON-Schema definition
|
|
994
|
-
* via the `patternProperty` "^x-".
|
|
995
|
-
*/
|
|
996
|
-
[k: string]: unknown;
|
|
997
|
-
}
|