@trazum/cli 2.5.1 → 2.6.0
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 +75 -6
- package/dist/filter.d.ts +2 -0
- package/dist/filter.d.ts.map +1 -0
- package/dist/filter.js +187 -0
- package/dist/filter.js.map +1 -0
- package/dist/gateway-server.d.ts +2 -0
- package/dist/gateway-server.d.ts.map +1 -1
- package/dist/gateway-server.js +49 -9
- package/dist/gateway-server.js.map +1 -1
- package/dist/gateway-spend.d.ts +32 -0
- package/dist/gateway-spend.d.ts.map +1 -0
- package/dist/gateway-spend.js +116 -0
- package/dist/gateway-spend.js.map +1 -0
- package/dist/html.d.ts.map +1 -1
- package/dist/html.js +22 -1
- package/dist/html.js.map +1 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +45 -3
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/es.d.ts.map +1 -1
- package/dist/i18n/es.js +45 -3
- package/dist/i18n/es.js.map +1 -1
- package/dist/i18n/types.d.ts +13 -1
- package/dist/i18n/types.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +125 -61
- package/dist/index.js.map +1 -1
- package/dist/markdown.d.ts.map +1 -1
- package/dist/markdown.js +19 -1
- package/dist/markdown.js.map +1 -1
- package/dist/pdf.d.ts.map +1 -1
- package/dist/pdf.js +38 -1
- package/dist/pdf.js.map +1 -1
- package/dist/serve-import-schema.d.ts +34 -0
- package/dist/serve-import-schema.d.ts.map +1 -0
- package/dist/serve-import-schema.js +31 -0
- package/dist/serve-import-schema.js.map +1 -0
- package/dist/serve-import.d.ts +43 -0
- package/dist/serve-import.d.ts.map +1 -0
- package/dist/serve-import.js +49 -0
- package/dist/serve-import.js.map +1 -0
- package/dist/serve-savings-schema.d.ts +65 -0
- package/dist/serve-savings-schema.d.ts.map +1 -0
- package/dist/serve-savings-schema.js +54 -0
- package/dist/serve-savings-schema.js.map +1 -0
- package/dist/serve-savings.d.ts +55 -0
- package/dist/serve-savings.d.ts.map +1 -0
- package/dist/serve-savings.js +144 -0
- package/dist/serve-savings.js.map +1 -0
- package/dist/serve-schema.d.ts +606 -0
- package/dist/serve-schema.d.ts.map +1 -0
- package/dist/serve-schema.js +151 -0
- package/dist/serve-schema.js.map +1 -0
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +37 -5
- package/dist/serve.js.map +1 -1
- package/dist/task-files.d.ts +9 -0
- package/dist/task-files.d.ts.map +1 -0
- package/dist/task-files.js +136 -0
- package/dist/task-files.js.map +1 -0
- package/dist/task.d.ts +2 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +137 -0
- package/dist/task.js.map +1 -0
- package/package.json +2 -2
- package/src/filter.ts +150 -0
- package/src/gateway-server.ts +46 -10
- package/src/gateway-spend.ts +120 -0
- package/src/html.ts +25 -1
- package/src/i18n/en.ts +47 -4
- package/src/i18n/es.ts +47 -4
- package/src/i18n/types.ts +14 -1
- package/src/index.ts +115 -63
- package/src/markdown.ts +20 -1
- package/src/pdf.ts +36 -1
- package/src/serve-import-schema.ts +31 -0
- package/src/serve-import.ts +57 -0
- package/src/serve-savings-schema.ts +53 -0
- package/src/serve-savings.ts +140 -0
- package/src/serve-schema.ts +155 -0
- package/src/serve.ts +38 -5
- package/src/task-files.ts +114 -0
- package/src/task.ts +119 -0
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
export declare const COST_REQUEST_SCHEMA: {
|
|
2
|
+
readonly type: 'object';
|
|
3
|
+
readonly description: 'All fields are optional. Missing counts default to zero. Unknown fields are ignored. An empty body is equivalent to {}.';
|
|
4
|
+
readonly additionalProperties: true;
|
|
5
|
+
readonly properties: {
|
|
6
|
+
readonly model: {
|
|
7
|
+
readonly type: 'string';
|
|
8
|
+
readonly description: 'Catalogue model identifier. Unknown models produce an unpriced call, not a substitute.';
|
|
9
|
+
};
|
|
10
|
+
readonly inputTokens: {
|
|
11
|
+
readonly type: string;
|
|
12
|
+
readonly minimum: number;
|
|
13
|
+
readonly description: 'Finite non-negative count; fractional counts remain accepted for compatibility.';
|
|
14
|
+
readonly default: 0;
|
|
15
|
+
};
|
|
16
|
+
readonly outputTokens: {
|
|
17
|
+
readonly type: string;
|
|
18
|
+
readonly minimum: number;
|
|
19
|
+
readonly description: 'Finite non-negative count; fractional counts remain accepted for compatibility.';
|
|
20
|
+
readonly default: 0;
|
|
21
|
+
};
|
|
22
|
+
readonly basis: {
|
|
23
|
+
readonly type: 'string';
|
|
24
|
+
readonly enum: readonly ['heuristic', 'token-count'];
|
|
25
|
+
readonly default: 'token-count';
|
|
26
|
+
};
|
|
27
|
+
readonly label: {
|
|
28
|
+
readonly type: 'string';
|
|
29
|
+
readonly description: 'Optional policy scope. Empty string means absent.';
|
|
30
|
+
};
|
|
31
|
+
readonly session: {
|
|
32
|
+
readonly type: 'string';
|
|
33
|
+
readonly description: 'Optional policy lookup key. Empty string means absent. Never echoed in the answer.';
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/** Same accepted fields as the published schema; invalid shapes never reach the core. */
|
|
38
|
+
export declare function validateCostPayload(value: unknown): asserts value is Record<string, unknown>;
|
|
39
|
+
export declare const SERVE_OPENAPI: {
|
|
40
|
+
readonly openapi: '3.1.0';
|
|
41
|
+
readonly jsonSchemaDialect: 'https://json-schema.org/draft/2020-12/schema';
|
|
42
|
+
readonly info: {
|
|
43
|
+
readonly title: 'Trazum local cost and savings API';
|
|
44
|
+
readonly version: '1.0.0';
|
|
45
|
+
readonly description: 'Loopback-only read-only estimates, policy judgements and savings analysis. No authentication or CORS. Does not reserve budget, send model calls, or enforce an upstream decision. Measured positions are snapshots supplied by the CLI; inspect their windows.';
|
|
46
|
+
};
|
|
47
|
+
readonly servers: readonly [{
|
|
48
|
+
readonly url: 'http://127.0.0.1:7317';
|
|
49
|
+
readonly description: 'Default TCP listener. Substitute the chosen --port, or use the Unix socket transport.';
|
|
50
|
+
}];
|
|
51
|
+
readonly paths: {
|
|
52
|
+
readonly '/usage/import': {
|
|
53
|
+
readonly post: {
|
|
54
|
+
readonly operationId: 'importUsage';
|
|
55
|
+
readonly summary: 'Normalize explicit Claude Code or Codex transcript text';
|
|
56
|
+
readonly description: 'Read-only conversion with explicit source format. No files, provider calls or measured-budget lookup. Prompts, tool content and cwd are excluded; session identifiers remain. Whole request and complete response each have a 1,000,000-byte UTF-8 limit, including JSON escaping. Unknown properties and blank inputs are refused. Conversion success does not certify source completeness or subscription billing.';
|
|
57
|
+
readonly requestBody: {
|
|
58
|
+
readonly required: true;
|
|
59
|
+
readonly content: {
|
|
60
|
+
readonly 'application/json': {
|
|
61
|
+
readonly schema: {
|
|
62
|
+
$ref: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly responses: {
|
|
68
|
+
readonly '200': {
|
|
69
|
+
description: string;
|
|
70
|
+
content: {
|
|
71
|
+
'application/json': {
|
|
72
|
+
schema: {
|
|
73
|
+
$ref: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
readonly '400': {
|
|
79
|
+
description: string;
|
|
80
|
+
content: {
|
|
81
|
+
'application/json': {
|
|
82
|
+
schema: {
|
|
83
|
+
$ref: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
readonly '/capabilities': {
|
|
92
|
+
readonly get: {
|
|
93
|
+
readonly operationId: 'getCapabilities';
|
|
94
|
+
readonly summary: 'Discover native import formats and Trazum access channels';
|
|
95
|
+
readonly responses: {
|
|
96
|
+
readonly '200': {
|
|
97
|
+
description: string;
|
|
98
|
+
content: {
|
|
99
|
+
'application/json': {
|
|
100
|
+
schema: {
|
|
101
|
+
$ref: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
readonly '/health': {
|
|
110
|
+
readonly get: {
|
|
111
|
+
readonly operationId: 'getHealth';
|
|
112
|
+
readonly summary: 'Check the local process';
|
|
113
|
+
readonly responses: {
|
|
114
|
+
readonly '200': {
|
|
115
|
+
description: string;
|
|
116
|
+
content: {
|
|
117
|
+
'application/json': {
|
|
118
|
+
schema: {
|
|
119
|
+
$ref: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly '/openapi.json': {
|
|
128
|
+
readonly get: {
|
|
129
|
+
readonly operationId: 'getOpenApi';
|
|
130
|
+
readonly summary: 'Read this OpenAPI document';
|
|
131
|
+
readonly responses: {
|
|
132
|
+
readonly '200': {
|
|
133
|
+
readonly description: 'OpenAPI 3.1 document.';
|
|
134
|
+
readonly content: {
|
|
135
|
+
readonly 'application/json': {
|
|
136
|
+
readonly schema: {
|
|
137
|
+
readonly type: 'object';
|
|
138
|
+
readonly required: readonly ['openapi', 'info', 'paths', 'components'];
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
readonly '/savings/plan': {
|
|
147
|
+
readonly post: {
|
|
148
|
+
readonly operationId: 'planSavings';
|
|
149
|
+
readonly summary: 'Rank savings actions from normalized usage';
|
|
150
|
+
readonly description: 'Read-only text inputs, priced using the server catalogue. No filesystem, provider or network calls. Unknown properties and empty text are refused. Whole-body limit: 1,000,000 UTF-8 bytes, including JSON escaping. Evidence gaps remain explicit; success does not certify realized savings or task quality.';
|
|
151
|
+
readonly requestBody: {
|
|
152
|
+
readonly required: true;
|
|
153
|
+
readonly content: {
|
|
154
|
+
readonly 'application/json': {
|
|
155
|
+
readonly schema: {
|
|
156
|
+
$ref: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
readonly responses: {
|
|
162
|
+
readonly '200': {
|
|
163
|
+
description: string;
|
|
164
|
+
content: {
|
|
165
|
+
'application/json': {
|
|
166
|
+
schema: {
|
|
167
|
+
$ref: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
readonly '400': {
|
|
173
|
+
description: string;
|
|
174
|
+
content: {
|
|
175
|
+
'application/json': {
|
|
176
|
+
schema: {
|
|
177
|
+
$ref: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly '/savings/verify': {
|
|
186
|
+
readonly post: {
|
|
187
|
+
readonly operationId: 'verifySavings';
|
|
188
|
+
readonly summary: 'Verify a saved plan against later normalized usage';
|
|
189
|
+
readonly description: 'Read-only text inputs, priced using the server catalogue. No filesystem, provider or network calls. Unknown properties and empty text are refused. Whole-body limit: 1,000,000 UTF-8 bytes, including JSON escaping. Evidence gaps remain explicit; success does not certify realized savings or task quality.';
|
|
190
|
+
readonly requestBody: {
|
|
191
|
+
readonly required: true;
|
|
192
|
+
readonly content: {
|
|
193
|
+
readonly 'application/json': {
|
|
194
|
+
readonly schema: {
|
|
195
|
+
$ref: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
readonly responses: {
|
|
201
|
+
readonly '200': {
|
|
202
|
+
description: string;
|
|
203
|
+
content: {
|
|
204
|
+
'application/json': {
|
|
205
|
+
schema: {
|
|
206
|
+
$ref: string;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
readonly '400': {
|
|
212
|
+
description: string;
|
|
213
|
+
content: {
|
|
214
|
+
'application/json': {
|
|
215
|
+
schema: {
|
|
216
|
+
$ref: string;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
readonly '/cost': {
|
|
225
|
+
readonly post: {
|
|
226
|
+
readonly operationId: 'estimateCost';
|
|
227
|
+
readonly summary: 'Estimate a proposed call against measured budget and scoped policy';
|
|
228
|
+
readonly description: 'Body limit: 1,000,000 bytes; violations return 400. Missing or whitespace-only body is {}. Unknown properties are ignored. Content-Type is not enforced by the server; send application/json. All successful judgements, including over and cannot-tell, return 200. A judgement does not reserve or spend funds.';
|
|
229
|
+
readonly requestBody: {
|
|
230
|
+
readonly required: false;
|
|
231
|
+
readonly content: {
|
|
232
|
+
readonly 'application/json': {
|
|
233
|
+
readonly schema: {
|
|
234
|
+
$ref: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
readonly responses: {
|
|
240
|
+
readonly '200': {
|
|
241
|
+
description: string;
|
|
242
|
+
content: {
|
|
243
|
+
'application/json': {
|
|
244
|
+
schema: {
|
|
245
|
+
$ref: string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly '400': {
|
|
251
|
+
description: string;
|
|
252
|
+
content: {
|
|
253
|
+
'application/json': {
|
|
254
|
+
schema: {
|
|
255
|
+
$ref: string;
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly components: {
|
|
265
|
+
readonly schemas: {
|
|
266
|
+
SavingsPlanRequest: {
|
|
267
|
+
type: string;
|
|
268
|
+
properties: Record<string, unknown>;
|
|
269
|
+
required: string[];
|
|
270
|
+
additionalProperties: boolean;
|
|
271
|
+
};
|
|
272
|
+
SavingsVerifyRequest: {
|
|
273
|
+
type: string;
|
|
274
|
+
properties: Record<string, unknown>;
|
|
275
|
+
required: string[];
|
|
276
|
+
additionalProperties: boolean;
|
|
277
|
+
};
|
|
278
|
+
SavingsEvidence: {
|
|
279
|
+
type: string;
|
|
280
|
+
properties: Record<string, unknown>;
|
|
281
|
+
required: string[];
|
|
282
|
+
additionalProperties: boolean;
|
|
283
|
+
};
|
|
284
|
+
SavingsAssumption: {
|
|
285
|
+
oneOf: {
|
|
286
|
+
type: string;
|
|
287
|
+
properties: Record<string, unknown>;
|
|
288
|
+
required: string[];
|
|
289
|
+
additionalProperties: boolean;
|
|
290
|
+
}[];
|
|
291
|
+
};
|
|
292
|
+
SavingsAction: {
|
|
293
|
+
type: string;
|
|
294
|
+
properties: Record<string, unknown>;
|
|
295
|
+
required: string[];
|
|
296
|
+
additionalProperties: boolean;
|
|
297
|
+
};
|
|
298
|
+
SavingsPlan: {
|
|
299
|
+
type: string;
|
|
300
|
+
properties: Record<string, unknown>;
|
|
301
|
+
required: string[];
|
|
302
|
+
additionalProperties: boolean;
|
|
303
|
+
};
|
|
304
|
+
SavingsVerifiedAction: {
|
|
305
|
+
type: string;
|
|
306
|
+
properties: Record<string, unknown>;
|
|
307
|
+
required: string[];
|
|
308
|
+
additionalProperties: boolean;
|
|
309
|
+
};
|
|
310
|
+
SavingsVerification: {
|
|
311
|
+
type: string;
|
|
312
|
+
properties: Record<string, unknown>;
|
|
313
|
+
required: string[];
|
|
314
|
+
additionalProperties: boolean;
|
|
315
|
+
};
|
|
316
|
+
SavingsPlanAnswer: {
|
|
317
|
+
type: string;
|
|
318
|
+
properties: Record<string, unknown>;
|
|
319
|
+
required: string[];
|
|
320
|
+
additionalProperties: boolean;
|
|
321
|
+
};
|
|
322
|
+
SavingsVerifyAnswer: {
|
|
323
|
+
type: string;
|
|
324
|
+
properties: Record<string, unknown>;
|
|
325
|
+
required: string[];
|
|
326
|
+
additionalProperties: boolean;
|
|
327
|
+
};
|
|
328
|
+
UsageImportRequest: {
|
|
329
|
+
type: string;
|
|
330
|
+
required: string[];
|
|
331
|
+
additionalProperties: boolean;
|
|
332
|
+
properties: {
|
|
333
|
+
format: {
|
|
334
|
+
type: string;
|
|
335
|
+
enum: string[];
|
|
336
|
+
};
|
|
337
|
+
text: {
|
|
338
|
+
type: string;
|
|
339
|
+
minLength: number;
|
|
340
|
+
description: string;
|
|
341
|
+
};
|
|
342
|
+
label: {
|
|
343
|
+
type: string;
|
|
344
|
+
minLength: number;
|
|
345
|
+
maxLength: number;
|
|
346
|
+
description: string;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
UsageImportAnswer: {
|
|
351
|
+
description: string;
|
|
352
|
+
oneOf: {
|
|
353
|
+
type: string;
|
|
354
|
+
properties: Record<string, unknown>;
|
|
355
|
+
required: string[];
|
|
356
|
+
additionalProperties: boolean;
|
|
357
|
+
}[];
|
|
358
|
+
};
|
|
359
|
+
CostRequest: {
|
|
360
|
+
readonly type: 'object';
|
|
361
|
+
readonly description: 'All fields are optional. Missing counts default to zero. Unknown fields are ignored. An empty body is equivalent to {}.';
|
|
362
|
+
readonly additionalProperties: true;
|
|
363
|
+
readonly properties: {
|
|
364
|
+
readonly model: {
|
|
365
|
+
readonly type: 'string';
|
|
366
|
+
readonly description: 'Catalogue model identifier. Unknown models produce an unpriced call, not a substitute.';
|
|
367
|
+
};
|
|
368
|
+
readonly inputTokens: {
|
|
369
|
+
readonly type: string;
|
|
370
|
+
readonly minimum: number;
|
|
371
|
+
readonly description: 'Finite non-negative count; fractional counts remain accepted for compatibility.';
|
|
372
|
+
readonly default: 0;
|
|
373
|
+
};
|
|
374
|
+
readonly outputTokens: {
|
|
375
|
+
readonly type: string;
|
|
376
|
+
readonly minimum: number;
|
|
377
|
+
readonly description: 'Finite non-negative count; fractional counts remain accepted for compatibility.';
|
|
378
|
+
readonly default: 0;
|
|
379
|
+
};
|
|
380
|
+
readonly basis: {
|
|
381
|
+
readonly type: 'string';
|
|
382
|
+
readonly enum: readonly ['heuristic', 'token-count'];
|
|
383
|
+
readonly default: 'token-count';
|
|
384
|
+
};
|
|
385
|
+
readonly label: {
|
|
386
|
+
readonly type: 'string';
|
|
387
|
+
readonly description: 'Optional policy scope. Empty string means absent.';
|
|
388
|
+
};
|
|
389
|
+
readonly session: {
|
|
390
|
+
readonly type: 'string';
|
|
391
|
+
readonly description: 'Optional policy lookup key. Empty string means absent. Never echoed in the answer.';
|
|
392
|
+
};
|
|
393
|
+
};
|
|
394
|
+
};
|
|
395
|
+
HarnessCapabilities: {
|
|
396
|
+
type: string;
|
|
397
|
+
properties: Record<string, unknown>;
|
|
398
|
+
required: string[];
|
|
399
|
+
additionalProperties: boolean;
|
|
400
|
+
};
|
|
401
|
+
HarnessCapability: {
|
|
402
|
+
type: string;
|
|
403
|
+
properties: Record<string, unknown>;
|
|
404
|
+
required: string[];
|
|
405
|
+
additionalProperties: boolean;
|
|
406
|
+
};
|
|
407
|
+
Health: {
|
|
408
|
+
type: string;
|
|
409
|
+
properties: Record<string, unknown>;
|
|
410
|
+
required: string[];
|
|
411
|
+
additionalProperties: boolean;
|
|
412
|
+
};
|
|
413
|
+
Error: {
|
|
414
|
+
type: string;
|
|
415
|
+
properties: Record<string, unknown>;
|
|
416
|
+
required: string[];
|
|
417
|
+
additionalProperties: boolean;
|
|
418
|
+
};
|
|
419
|
+
Window: {
|
|
420
|
+
type: string;
|
|
421
|
+
properties: Record<string, unknown>;
|
|
422
|
+
required: string[];
|
|
423
|
+
additionalProperties: boolean;
|
|
424
|
+
};
|
|
425
|
+
CallEstimate: {
|
|
426
|
+
type: string;
|
|
427
|
+
properties: Record<string, unknown>;
|
|
428
|
+
required: string[];
|
|
429
|
+
additionalProperties: boolean;
|
|
430
|
+
};
|
|
431
|
+
BudgetPosition: {
|
|
432
|
+
type: string;
|
|
433
|
+
properties: Record<string, unknown>;
|
|
434
|
+
required: string[];
|
|
435
|
+
additionalProperties: boolean;
|
|
436
|
+
};
|
|
437
|
+
AfterCall: {
|
|
438
|
+
type: string;
|
|
439
|
+
properties: Record<string, unknown>;
|
|
440
|
+
required: string[];
|
|
441
|
+
additionalProperties: boolean;
|
|
442
|
+
};
|
|
443
|
+
LimitJudgement: {
|
|
444
|
+
type: string;
|
|
445
|
+
properties: Record<string, unknown>;
|
|
446
|
+
required: string[];
|
|
447
|
+
additionalProperties: boolean;
|
|
448
|
+
oneOf: ({
|
|
449
|
+
properties: {
|
|
450
|
+
verdict: {
|
|
451
|
+
const: string;
|
|
452
|
+
enum?: undefined;
|
|
453
|
+
};
|
|
454
|
+
restsOn: {
|
|
455
|
+
type: string;
|
|
456
|
+
enum?: undefined;
|
|
457
|
+
};
|
|
458
|
+
reason: {
|
|
459
|
+
type: string;
|
|
460
|
+
};
|
|
461
|
+
afterCallUsd: {
|
|
462
|
+
type: string;
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
} | {
|
|
466
|
+
properties: {
|
|
467
|
+
verdict: {
|
|
468
|
+
const?: undefined;
|
|
469
|
+
enum: string[];
|
|
470
|
+
};
|
|
471
|
+
restsOn: {
|
|
472
|
+
type?: undefined;
|
|
473
|
+
enum: string[];
|
|
474
|
+
};
|
|
475
|
+
reason: {
|
|
476
|
+
type: string;
|
|
477
|
+
};
|
|
478
|
+
afterCallUsd: {
|
|
479
|
+
type: string;
|
|
480
|
+
minimum: number;
|
|
481
|
+
};
|
|
482
|
+
};
|
|
483
|
+
})[];
|
|
484
|
+
};
|
|
485
|
+
PolicyJudgement: {
|
|
486
|
+
type: string;
|
|
487
|
+
properties: Record<string, unknown>;
|
|
488
|
+
required: string[];
|
|
489
|
+
additionalProperties: boolean;
|
|
490
|
+
oneOf: ({
|
|
491
|
+
properties: {
|
|
492
|
+
verdict: {
|
|
493
|
+
const: string;
|
|
494
|
+
};
|
|
495
|
+
reason: {
|
|
496
|
+
type?: undefined;
|
|
497
|
+
const: string;
|
|
498
|
+
};
|
|
499
|
+
judgements: {
|
|
500
|
+
maxItems: number;
|
|
501
|
+
minItems?: undefined;
|
|
502
|
+
};
|
|
503
|
+
};
|
|
504
|
+
} | {
|
|
505
|
+
properties: {
|
|
506
|
+
verdict?: undefined;
|
|
507
|
+
reason: {
|
|
508
|
+
const?: undefined;
|
|
509
|
+
type: string;
|
|
510
|
+
};
|
|
511
|
+
judgements: {
|
|
512
|
+
maxItems?: undefined;
|
|
513
|
+
minItems: number;
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
})[];
|
|
517
|
+
};
|
|
518
|
+
CostAnswer: {
|
|
519
|
+
type: string;
|
|
520
|
+
properties: Record<string, unknown>;
|
|
521
|
+
required: string[];
|
|
522
|
+
additionalProperties: boolean;
|
|
523
|
+
oneOf: ({
|
|
524
|
+
properties: {
|
|
525
|
+
verdict: {
|
|
526
|
+
enum?: undefined;
|
|
527
|
+
const: string;
|
|
528
|
+
};
|
|
529
|
+
reason: {
|
|
530
|
+
const?: undefined;
|
|
531
|
+
type?: undefined;
|
|
532
|
+
enum: string[];
|
|
533
|
+
};
|
|
534
|
+
budget: {
|
|
535
|
+
type: string;
|
|
536
|
+
};
|
|
537
|
+
restsOn: {
|
|
538
|
+
enum?: undefined;
|
|
539
|
+
type: string;
|
|
540
|
+
};
|
|
541
|
+
afterCall: {
|
|
542
|
+
type: string;
|
|
543
|
+
};
|
|
544
|
+
call?: undefined;
|
|
545
|
+
};
|
|
546
|
+
} | {
|
|
547
|
+
properties: {
|
|
548
|
+
verdict: {
|
|
549
|
+
enum?: undefined;
|
|
550
|
+
const: string;
|
|
551
|
+
};
|
|
552
|
+
reason: {
|
|
553
|
+
type?: undefined;
|
|
554
|
+
enum?: undefined;
|
|
555
|
+
const: string;
|
|
556
|
+
};
|
|
557
|
+
budget: {
|
|
558
|
+
$ref: string;
|
|
559
|
+
};
|
|
560
|
+
call: {
|
|
561
|
+
type: string;
|
|
562
|
+
};
|
|
563
|
+
restsOn: {
|
|
564
|
+
enum?: undefined;
|
|
565
|
+
type: string;
|
|
566
|
+
};
|
|
567
|
+
afterCall: {
|
|
568
|
+
type: string;
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
} | {
|
|
572
|
+
properties: {
|
|
573
|
+
call?: undefined;
|
|
574
|
+
verdict: {
|
|
575
|
+
const?: undefined;
|
|
576
|
+
enum: string[];
|
|
577
|
+
};
|
|
578
|
+
reason: {
|
|
579
|
+
const?: undefined;
|
|
580
|
+
enum?: undefined;
|
|
581
|
+
type: string;
|
|
582
|
+
};
|
|
583
|
+
budget: {
|
|
584
|
+
$ref: string;
|
|
585
|
+
};
|
|
586
|
+
restsOn: {
|
|
587
|
+
type?: undefined;
|
|
588
|
+
enum: string[];
|
|
589
|
+
};
|
|
590
|
+
afterCall: {
|
|
591
|
+
$ref: string;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
})[];
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
readonly 'x-unmatched-routes': {
|
|
599
|
+
readonly status: 404;
|
|
600
|
+
readonly schema: {
|
|
601
|
+
$ref: string;
|
|
602
|
+
};
|
|
603
|
+
readonly description: 'All other path and method combinations, including OPTIONS, return 404. No CORS headers are emitted.';
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
//# sourceMappingURL=serve-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serve-schema.d.ts","sourceRoot":"","sources":["../src/serve-schema.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,mBAAmB;mBACxB,QAAQ;0BACD,yHAAyH;;;;qBAG3H,IAAI,EAAE,QAAQ;qBAAE,WAAW,EAAE,wFAAwF;;;;;kCACvF,iFAAiF;8BAAW,CAAC;;;;;kCAC5F,iFAAiF;8BAAW,CAAC;;;qBAC5H,IAAI,EAAE,QAAQ;qBAAE,IAAI,YAAG,WAAW,EAAE,aAAa;qBAAG,OAAO,EAAE,aAAa;;;qBAC1E,IAAI,EAAE,QAAQ;qBAAE,WAAW,EAAE,mDAAmD;;;qBAC9E,IAAI,EAAE,QAAQ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