@runwayml/sdk 4.13.2 → 4.15.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/CHANGELOG.md +21 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +17 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +17 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/generate/audio.d.mts +46 -24
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +46 -24
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/generate/generate.d.mts +2 -2
- package/resources/generate/generate.d.mts.map +1 -1
- package/resources/generate/generate.d.ts +2 -2
- package/resources/generate/generate.d.ts.map +1 -1
- package/resources/generate/generate.js.map +1 -1
- package/resources/generate/generate.mjs.map +1 -1
- package/resources/generate/image.d.mts +21 -0
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +21 -0
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/generate/index.d.mts +1 -1
- package/resources/generate/index.d.mts.map +1 -1
- package/resources/generate/index.d.ts +1 -1
- package/resources/generate/index.d.ts.map +1 -1
- package/resources/generate/index.js.map +1 -1
- package/resources/generate/index.mjs +1 -1
- package/resources/generate/index.mjs.map +1 -1
- package/resources/generate/video.d.mts +21 -0
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +21 -0
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +146 -19
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +146 -19
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-upscale.d.mts +17 -0
- package/resources/image-upscale.d.mts.map +1 -1
- package/resources/image-upscale.d.ts +17 -0
- package/resources/image-upscale.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +3 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +9 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +4 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/organization.d.mts +154 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +154 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +32 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +27 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/organization/webapp/audit-logs.d.mts +216 -0
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
- package/resources/organization/webapp/audit-logs.d.ts +216 -0
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
- package/resources/organization/webapp/audit-logs.js +30 -0
- package/resources/organization/webapp/audit-logs.js.map +1 -0
- package/resources/organization/webapp/audit-logs.mjs +26 -0
- package/resources/organization/webapp/audit-logs.mjs.map +1 -0
- package/resources/organization/webapp/index.d.mts +3 -0
- package/resources/organization/webapp/index.d.mts.map +1 -0
- package/resources/organization/webapp/index.d.ts +3 -0
- package/resources/organization/webapp/index.d.ts.map +1 -0
- package/resources/organization/webapp/index.js +9 -0
- package/resources/organization/webapp/index.js.map +1 -0
- package/resources/organization/webapp/index.mjs +4 -0
- package/resources/organization/webapp/index.mjs.map +1 -0
- package/resources/organization/webapp/webapp.d.mts +73 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -0
- package/resources/organization/webapp/webapp.d.ts +73 -0
- package/resources/organization/webapp/webapp.d.ts.map +1 -0
- package/resources/organization/webapp/webapp.js +30 -0
- package/resources/organization/webapp/webapp.js.map +1 -0
- package/resources/organization/webapp/webapp.mjs +25 -0
- package/resources/organization/webapp/webapp.mjs.map +1 -0
- package/resources/organization/webapp.d.mts +2 -0
- package/resources/organization/webapp.d.mts.map +1 -0
- package/resources/organization/webapp.d.ts +2 -0
- package/resources/organization/webapp.d.ts.map +1 -0
- package/resources/organization/webapp.js +6 -0
- package/resources/organization/webapp.js.map +1 -0
- package/resources/organization/webapp.mjs +3 -0
- package/resources/organization/webapp.mjs.map +1 -0
- package/resources/organization.d.mts +1 -149
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +1 -149
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.js +2 -20
- package/resources/organization.js.map +1 -1
- package/resources/organization.mjs +1 -18
- package/resources/organization.mjs.map +1 -1
- package/resources/recipes.d.mts +119 -0
- package/resources/recipes.d.mts.map +1 -1
- package/resources/recipes.d.ts +119 -0
- package/resources/recipes.d.ts.map +1 -1
- package/resources/routers.d.mts +194 -1
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +194 -1
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +10 -0
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +10 -0
- package/resources/routers.mjs.map +1 -1
- package/resources/sound-effect.d.mts +17 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +17 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +17 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +17 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/tasks.d.mts +90 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +90 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +68 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +68 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-speech.d.mts +77 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +77 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +221 -16
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +221 -16
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +199 -7
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +199 -7
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +17 -0
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +17 -0
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +17 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +17 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +17 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +17 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/src/client.ts +12 -6
- package/src/resources/character-performance.ts +19 -0
- package/src/resources/generate/audio.ts +57 -27
- package/src/resources/generate/generate.ts +3 -1
- package/src/resources/generate/image.ts +24 -0
- package/src/resources/generate/index.ts +7 -1
- package/src/resources/generate/video.ts +24 -0
- package/src/resources/image-to-video.ts +189 -19
- package/src/resources/image-upscale.ts +19 -0
- package/src/resources/index.ts +4 -1
- package/src/resources/organization/index.ts +14 -0
- package/src/resources/organization/organization.ts +307 -0
- package/src/resources/organization/webapp/audit-logs.ts +440 -0
- package/src/resources/organization/webapp/index.ts +16 -0
- package/src/resources/organization/webapp/webapp.ts +118 -0
- package/src/resources/organization/webapp.ts +3 -0
- package/src/resources/organization.ts +1 -283
- package/src/resources/recipes.ts +133 -0
- package/src/resources/routers.ts +247 -0
- package/src/resources/sound-effect.ts +19 -0
- package/src/resources/speech-to-speech.ts +19 -0
- package/src/resources/tasks.ts +102 -0
- package/src/resources/text-to-image.ts +107 -0
- package/src/resources/text-to-speech.ts +142 -1
- package/src/resources/text-to-video.ts +276 -16
- package/src/resources/video-to-video.ts +252 -7
- package/src/resources/video-upscale.ts +19 -0
- package/src/resources/voice-dubbing.ts +19 -0
- package/src/resources/voice-isolation.ts +19 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/routers.d.mts
CHANGED
|
@@ -27,8 +27,14 @@ export declare class Routers extends APIResource {
|
|
|
27
27
|
* generation.
|
|
28
28
|
*/
|
|
29
29
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Paginated routing history for live Model Router requests (successful routes and
|
|
32
|
+
* failures). Playground dry runs are not recorded.
|
|
33
|
+
*/
|
|
34
|
+
listRequests(id: string, query: RouterListRequestsParams, options?: RequestOptions): PagePromise<RouterListRequestsResponsesCursorPage, RouterListRequestsResponse>;
|
|
30
35
|
}
|
|
31
36
|
export type RouterListResponsesCursorPage = CursorPage<RouterListResponse>;
|
|
37
|
+
export type RouterListRequestsResponsesCursorPage = CursorPage<RouterListRequestsResponse>;
|
|
32
38
|
export interface RouterCreateResponse {
|
|
33
39
|
/**
|
|
34
40
|
* The Model Router's primary key ID (UUID). Use it to manage this router via the
|
|
@@ -71,6 +77,11 @@ export declare namespace RouterCreateResponse {
|
|
|
71
77
|
* Settings JSON schema version used when this snapshot was written.
|
|
72
78
|
*/
|
|
73
79
|
schemaVersion: 1;
|
|
80
|
+
/**
|
|
81
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
82
|
+
* immediately.
|
|
83
|
+
*/
|
|
84
|
+
fallback?: Settings.Fallback;
|
|
74
85
|
/**
|
|
75
86
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
76
87
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -88,6 +99,19 @@ export declare namespace RouterCreateResponse {
|
|
|
88
99
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
89
100
|
}
|
|
90
101
|
namespace Settings {
|
|
102
|
+
/**
|
|
103
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
104
|
+
* immediately.
|
|
105
|
+
*/
|
|
106
|
+
interface Fallback {
|
|
107
|
+
/**
|
|
108
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
109
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
110
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
111
|
+
* the task queues as usual.
|
|
112
|
+
*/
|
|
113
|
+
onCapacity?: boolean;
|
|
114
|
+
}
|
|
91
115
|
/**
|
|
92
116
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
93
117
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -150,6 +174,11 @@ export declare namespace RouterRetrieveResponse {
|
|
|
150
174
|
* Settings JSON schema version used when this snapshot was written.
|
|
151
175
|
*/
|
|
152
176
|
schemaVersion: 1;
|
|
177
|
+
/**
|
|
178
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
179
|
+
* immediately.
|
|
180
|
+
*/
|
|
181
|
+
fallback?: Settings.Fallback;
|
|
153
182
|
/**
|
|
154
183
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
155
184
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -167,6 +196,19 @@ export declare namespace RouterRetrieveResponse {
|
|
|
167
196
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
168
197
|
}
|
|
169
198
|
namespace Settings {
|
|
199
|
+
/**
|
|
200
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
201
|
+
* immediately.
|
|
202
|
+
*/
|
|
203
|
+
interface Fallback {
|
|
204
|
+
/**
|
|
205
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
206
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
207
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
208
|
+
* the task queues as usual.
|
|
209
|
+
*/
|
|
210
|
+
onCapacity?: boolean;
|
|
211
|
+
}
|
|
170
212
|
/**
|
|
171
213
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
172
214
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -229,6 +271,11 @@ export declare namespace RouterUpdateResponse {
|
|
|
229
271
|
* Settings JSON schema version used when this snapshot was written.
|
|
230
272
|
*/
|
|
231
273
|
schemaVersion: 1;
|
|
274
|
+
/**
|
|
275
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
276
|
+
* immediately.
|
|
277
|
+
*/
|
|
278
|
+
fallback?: Settings.Fallback;
|
|
232
279
|
/**
|
|
233
280
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
234
281
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -246,6 +293,19 @@ export declare namespace RouterUpdateResponse {
|
|
|
246
293
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
247
294
|
}
|
|
248
295
|
namespace Settings {
|
|
296
|
+
/**
|
|
297
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
298
|
+
* immediately.
|
|
299
|
+
*/
|
|
300
|
+
interface Fallback {
|
|
301
|
+
/**
|
|
302
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
303
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
304
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
305
|
+
* the task queues as usual.
|
|
306
|
+
*/
|
|
307
|
+
onCapacity?: boolean;
|
|
308
|
+
}
|
|
249
309
|
/**
|
|
250
310
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
251
311
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -311,6 +371,11 @@ export declare namespace RouterListResponse {
|
|
|
311
371
|
* Settings JSON schema version used when this snapshot was written.
|
|
312
372
|
*/
|
|
313
373
|
schemaVersion: 1;
|
|
374
|
+
/**
|
|
375
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
376
|
+
* immediately.
|
|
377
|
+
*/
|
|
378
|
+
fallback?: Settings.Fallback;
|
|
314
379
|
/**
|
|
315
380
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
316
381
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -328,6 +393,19 @@ export declare namespace RouterListResponse {
|
|
|
328
393
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
329
394
|
}
|
|
330
395
|
namespace Settings {
|
|
396
|
+
/**
|
|
397
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
398
|
+
* immediately.
|
|
399
|
+
*/
|
|
400
|
+
interface Fallback {
|
|
401
|
+
/**
|
|
402
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
403
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
404
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
405
|
+
* the task queues as usual.
|
|
406
|
+
*/
|
|
407
|
+
onCapacity?: boolean;
|
|
408
|
+
}
|
|
331
409
|
/**
|
|
332
410
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
333
411
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -348,6 +426,83 @@ export declare namespace RouterListResponse {
|
|
|
348
426
|
}
|
|
349
427
|
}
|
|
350
428
|
}
|
|
429
|
+
/**
|
|
430
|
+
* A recorded Model Router routing decision.
|
|
431
|
+
*/
|
|
432
|
+
export interface RouterListRequestsResponse {
|
|
433
|
+
id: string;
|
|
434
|
+
createdAt: string;
|
|
435
|
+
/**
|
|
436
|
+
* The filter(s) that reduced the eligible pool to zero.
|
|
437
|
+
*/
|
|
438
|
+
emptiedBy: Array<'capability' | 'prompt_length' | 'input_support' | 'allow_deny' | 'price'>;
|
|
439
|
+
estimatedCredits: number | null;
|
|
440
|
+
model: string | null;
|
|
441
|
+
/**
|
|
442
|
+
* Ordered routing story: hard-filter stages with surviving model ids, a capacity
|
|
443
|
+
* step when concurrency limits affected the pool, then rank step when selection
|
|
444
|
+
* reached ranking.
|
|
445
|
+
*/
|
|
446
|
+
pipeline: Array<RouterListRequestsResponse.Filter | RouterListRequestsResponse.Capacity | RouterListRequestsResponse.Rank>;
|
|
447
|
+
provider: string | null;
|
|
448
|
+
/**
|
|
449
|
+
* Free-text explanation of the pick. Written by the ranker, so treat it as prose
|
|
450
|
+
* for humans and group on reasonCode instead.
|
|
451
|
+
*/
|
|
452
|
+
reason: string | null;
|
|
453
|
+
/**
|
|
454
|
+
* Why the model won: lowest_cost, best_latency, best_quality, only_eligible_model,
|
|
455
|
+
* or filter_order_fallback (ranking was unavailable, so hard-filter order stood).
|
|
456
|
+
* Null when the request never reached ranking.
|
|
457
|
+
*/
|
|
458
|
+
reasonCode: 'lowest_cost' | 'best_latency' | 'best_quality' | 'only_eligible_model' | 'filter_order_fallback' | null;
|
|
459
|
+
requestId: string;
|
|
460
|
+
/**
|
|
461
|
+
* How the routing attempt ended: routed (model selected), no_eligible_model (hard
|
|
462
|
+
* filters emptied the pool), router_config_not_found (same condition as the
|
|
463
|
+
* generate error of that name), invalid_request, or error.
|
|
464
|
+
*/
|
|
465
|
+
status: 'routed' | 'no_eligible_model' | 'router_config_not_found' | 'invalid_request' | 'error';
|
|
466
|
+
taskId: string | null;
|
|
467
|
+
}
|
|
468
|
+
export declare namespace RouterListRequestsResponse {
|
|
469
|
+
interface Filter {
|
|
470
|
+
/**
|
|
471
|
+
* Hard-filter stage that ran: capability (modality/feature fit), prompt_length
|
|
472
|
+
* (prompt within model limits), input_support (requested inputs/assets),
|
|
473
|
+
* allow_deny (router model allowlist/denylist), or price (credit ceiling).
|
|
474
|
+
*/
|
|
475
|
+
filter: 'capability' | 'prompt_length' | 'input_support' | 'allow_deny' | 'price';
|
|
476
|
+
/**
|
|
477
|
+
* Model IDs of the models that remained eligible after this filter stage.
|
|
478
|
+
*/
|
|
479
|
+
models: Array<string>;
|
|
480
|
+
type: 'filter';
|
|
481
|
+
}
|
|
482
|
+
interface Capacity {
|
|
483
|
+
/**
|
|
484
|
+
* True when every eligible model was at its limit, in which case none was skipped
|
|
485
|
+
* and the selected task queues.
|
|
486
|
+
*/
|
|
487
|
+
allExhausted: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Model IDs that were eligible but passed over because the account was at its
|
|
490
|
+
* concurrency limit for them.
|
|
491
|
+
*/
|
|
492
|
+
skipped: Array<string>;
|
|
493
|
+
type: 'capacity';
|
|
494
|
+
}
|
|
495
|
+
interface Rank {
|
|
496
|
+
/**
|
|
497
|
+
* How the router chose among eligible models: cost (sorted by estimated credits),
|
|
498
|
+
* selected (preference ranking chose a model), fallback (preference ranking failed
|
|
499
|
+
* so the eligible models were left in filter order), or single_candidate (only one
|
|
500
|
+
* model remained).
|
|
501
|
+
*/
|
|
502
|
+
outcome: 'cost' | 'selected' | 'fallback' | 'single_candidate';
|
|
503
|
+
type: 'rank';
|
|
504
|
+
}
|
|
505
|
+
}
|
|
351
506
|
export interface RouterCreateParams {
|
|
352
507
|
/**
|
|
353
508
|
* Immutable slug used to reference this Model Router in generation requests (for
|
|
@@ -378,6 +533,11 @@ export declare namespace RouterCreateParams {
|
|
|
378
533
|
* Router.
|
|
379
534
|
*/
|
|
380
535
|
interface Settings {
|
|
536
|
+
/**
|
|
537
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
538
|
+
* immediately.
|
|
539
|
+
*/
|
|
540
|
+
fallback?: Settings.Fallback;
|
|
381
541
|
/**
|
|
382
542
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
383
543
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -400,6 +560,19 @@ export declare namespace RouterCreateParams {
|
|
|
400
560
|
schemaVersion?: 1;
|
|
401
561
|
}
|
|
402
562
|
namespace Settings {
|
|
563
|
+
/**
|
|
564
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
565
|
+
* immediately.
|
|
566
|
+
*/
|
|
567
|
+
interface Fallback {
|
|
568
|
+
/**
|
|
569
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
570
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
571
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
572
|
+
* the task queues as usual.
|
|
573
|
+
*/
|
|
574
|
+
onCapacity?: boolean;
|
|
575
|
+
}
|
|
403
576
|
/**
|
|
404
577
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
405
578
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -440,6 +613,11 @@ export declare namespace RouterUpdateParams {
|
|
|
440
613
|
* optimizeFor does not clear the model allowlist or credit ceiling).
|
|
441
614
|
*/
|
|
442
615
|
interface Settings {
|
|
616
|
+
/**
|
|
617
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
618
|
+
* immediately.
|
|
619
|
+
*/
|
|
620
|
+
fallback?: Settings.Fallback;
|
|
443
621
|
/**
|
|
444
622
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
445
623
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -462,6 +640,19 @@ export declare namespace RouterUpdateParams {
|
|
|
462
640
|
schemaVersion?: 1;
|
|
463
641
|
}
|
|
464
642
|
namespace Settings {
|
|
643
|
+
/**
|
|
644
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
645
|
+
* immediately.
|
|
646
|
+
*/
|
|
647
|
+
interface Fallback {
|
|
648
|
+
/**
|
|
649
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
650
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
651
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
652
|
+
* the task queues as usual.
|
|
653
|
+
*/
|
|
654
|
+
onCapacity?: boolean;
|
|
655
|
+
}
|
|
465
656
|
/**
|
|
466
657
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
467
658
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -484,7 +675,9 @@ export declare namespace RouterUpdateParams {
|
|
|
484
675
|
}
|
|
485
676
|
export interface RouterListParams extends CursorPageParams {
|
|
486
677
|
}
|
|
678
|
+
export interface RouterListRequestsParams extends CursorPageParams {
|
|
679
|
+
}
|
|
487
680
|
export declare namespace Routers {
|
|
488
|
-
export { type RouterCreateResponse as RouterCreateResponse, type RouterRetrieveResponse as RouterRetrieveResponse, type RouterUpdateResponse as RouterUpdateResponse, type RouterListResponse as RouterListResponse, type RouterListResponsesCursorPage as RouterListResponsesCursorPage, type RouterCreateParams as RouterCreateParams, type RouterUpdateParams as RouterUpdateParams, type RouterListParams as RouterListParams, };
|
|
681
|
+
export { type RouterCreateResponse as RouterCreateResponse, type RouterRetrieveResponse as RouterRetrieveResponse, type RouterUpdateResponse as RouterUpdateResponse, type RouterListResponse as RouterListResponse, type RouterListRequestsResponse as RouterListRequestsResponse, type RouterListResponsesCursorPage as RouterListResponsesCursorPage, type RouterListRequestsResponsesCursorPage as RouterListRequestsResponsesCursorPage, type RouterCreateParams as RouterCreateParams, type RouterUpdateParams as RouterUpdateParams, type RouterListParams as RouterListParams, type RouterListRequestsParams as RouterListRequestsParams, };
|
|
489
682
|
}
|
|
490
683
|
//# sourceMappingURL=routers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routers.d.mts","sourceRoot":"","sources":["../src/resources/routers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,+BAA2B;AAEpF,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBA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B,MAAM;YACrB,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAEnB,IAAI,EAAE,kBAAkB,GAAG,gBAAgB,CAAC;SAC7C;KACF;CACF;AAED,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;CAAG;AAE7D,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB;CAAG;AAErE,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,qCAAqC,IAAI,qCAAqC,EACnF,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
package/resources/routers.d.ts
CHANGED
|
@@ -27,8 +27,14 @@ export declare class Routers extends APIResource {
|
|
|
27
27
|
* generation.
|
|
28
28
|
*/
|
|
29
29
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Paginated routing history for live Model Router requests (successful routes and
|
|
32
|
+
* failures). Playground dry runs are not recorded.
|
|
33
|
+
*/
|
|
34
|
+
listRequests(id: string, query: RouterListRequestsParams, options?: RequestOptions): PagePromise<RouterListRequestsResponsesCursorPage, RouterListRequestsResponse>;
|
|
30
35
|
}
|
|
31
36
|
export type RouterListResponsesCursorPage = CursorPage<RouterListResponse>;
|
|
37
|
+
export type RouterListRequestsResponsesCursorPage = CursorPage<RouterListRequestsResponse>;
|
|
32
38
|
export interface RouterCreateResponse {
|
|
33
39
|
/**
|
|
34
40
|
* The Model Router's primary key ID (UUID). Use it to manage this router via the
|
|
@@ -71,6 +77,11 @@ export declare namespace RouterCreateResponse {
|
|
|
71
77
|
* Settings JSON schema version used when this snapshot was written.
|
|
72
78
|
*/
|
|
73
79
|
schemaVersion: 1;
|
|
80
|
+
/**
|
|
81
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
82
|
+
* immediately.
|
|
83
|
+
*/
|
|
84
|
+
fallback?: Settings.Fallback;
|
|
74
85
|
/**
|
|
75
86
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
76
87
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -88,6 +99,19 @@ export declare namespace RouterCreateResponse {
|
|
|
88
99
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
89
100
|
}
|
|
90
101
|
namespace Settings {
|
|
102
|
+
/**
|
|
103
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
104
|
+
* immediately.
|
|
105
|
+
*/
|
|
106
|
+
interface Fallback {
|
|
107
|
+
/**
|
|
108
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
109
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
110
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
111
|
+
* the task queues as usual.
|
|
112
|
+
*/
|
|
113
|
+
onCapacity?: boolean;
|
|
114
|
+
}
|
|
91
115
|
/**
|
|
92
116
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
93
117
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -150,6 +174,11 @@ export declare namespace RouterRetrieveResponse {
|
|
|
150
174
|
* Settings JSON schema version used when this snapshot was written.
|
|
151
175
|
*/
|
|
152
176
|
schemaVersion: 1;
|
|
177
|
+
/**
|
|
178
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
179
|
+
* immediately.
|
|
180
|
+
*/
|
|
181
|
+
fallback?: Settings.Fallback;
|
|
153
182
|
/**
|
|
154
183
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
155
184
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -167,6 +196,19 @@ export declare namespace RouterRetrieveResponse {
|
|
|
167
196
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
168
197
|
}
|
|
169
198
|
namespace Settings {
|
|
199
|
+
/**
|
|
200
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
201
|
+
* immediately.
|
|
202
|
+
*/
|
|
203
|
+
interface Fallback {
|
|
204
|
+
/**
|
|
205
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
206
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
207
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
208
|
+
* the task queues as usual.
|
|
209
|
+
*/
|
|
210
|
+
onCapacity?: boolean;
|
|
211
|
+
}
|
|
170
212
|
/**
|
|
171
213
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
172
214
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -229,6 +271,11 @@ export declare namespace RouterUpdateResponse {
|
|
|
229
271
|
* Settings JSON schema version used when this snapshot was written.
|
|
230
272
|
*/
|
|
231
273
|
schemaVersion: 1;
|
|
274
|
+
/**
|
|
275
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
276
|
+
* immediately.
|
|
277
|
+
*/
|
|
278
|
+
fallback?: Settings.Fallback;
|
|
232
279
|
/**
|
|
233
280
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
234
281
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -246,6 +293,19 @@ export declare namespace RouterUpdateResponse {
|
|
|
246
293
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
247
294
|
}
|
|
248
295
|
namespace Settings {
|
|
296
|
+
/**
|
|
297
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
298
|
+
* immediately.
|
|
299
|
+
*/
|
|
300
|
+
interface Fallback {
|
|
301
|
+
/**
|
|
302
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
303
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
304
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
305
|
+
* the task queues as usual.
|
|
306
|
+
*/
|
|
307
|
+
onCapacity?: boolean;
|
|
308
|
+
}
|
|
249
309
|
/**
|
|
250
310
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
251
311
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -311,6 +371,11 @@ export declare namespace RouterListResponse {
|
|
|
311
371
|
* Settings JSON schema version used when this snapshot was written.
|
|
312
372
|
*/
|
|
313
373
|
schemaVersion: 1;
|
|
374
|
+
/**
|
|
375
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
376
|
+
* immediately.
|
|
377
|
+
*/
|
|
378
|
+
fallback?: Settings.Fallback;
|
|
314
379
|
/**
|
|
315
380
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
316
381
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -328,6 +393,19 @@ export declare namespace RouterListResponse {
|
|
|
328
393
|
optimizeFor?: 'cost' | 'latency' | 'quality';
|
|
329
394
|
}
|
|
330
395
|
namespace Settings {
|
|
396
|
+
/**
|
|
397
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
398
|
+
* immediately.
|
|
399
|
+
*/
|
|
400
|
+
interface Fallback {
|
|
401
|
+
/**
|
|
402
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
403
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
404
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
405
|
+
* the task queues as usual.
|
|
406
|
+
*/
|
|
407
|
+
onCapacity?: boolean;
|
|
408
|
+
}
|
|
331
409
|
/**
|
|
332
410
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
333
411
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -348,6 +426,83 @@ export declare namespace RouterListResponse {
|
|
|
348
426
|
}
|
|
349
427
|
}
|
|
350
428
|
}
|
|
429
|
+
/**
|
|
430
|
+
* A recorded Model Router routing decision.
|
|
431
|
+
*/
|
|
432
|
+
export interface RouterListRequestsResponse {
|
|
433
|
+
id: string;
|
|
434
|
+
createdAt: string;
|
|
435
|
+
/**
|
|
436
|
+
* The filter(s) that reduced the eligible pool to zero.
|
|
437
|
+
*/
|
|
438
|
+
emptiedBy: Array<'capability' | 'prompt_length' | 'input_support' | 'allow_deny' | 'price'>;
|
|
439
|
+
estimatedCredits: number | null;
|
|
440
|
+
model: string | null;
|
|
441
|
+
/**
|
|
442
|
+
* Ordered routing story: hard-filter stages with surviving model ids, a capacity
|
|
443
|
+
* step when concurrency limits affected the pool, then rank step when selection
|
|
444
|
+
* reached ranking.
|
|
445
|
+
*/
|
|
446
|
+
pipeline: Array<RouterListRequestsResponse.Filter | RouterListRequestsResponse.Capacity | RouterListRequestsResponse.Rank>;
|
|
447
|
+
provider: string | null;
|
|
448
|
+
/**
|
|
449
|
+
* Free-text explanation of the pick. Written by the ranker, so treat it as prose
|
|
450
|
+
* for humans and group on reasonCode instead.
|
|
451
|
+
*/
|
|
452
|
+
reason: string | null;
|
|
453
|
+
/**
|
|
454
|
+
* Why the model won: lowest_cost, best_latency, best_quality, only_eligible_model,
|
|
455
|
+
* or filter_order_fallback (ranking was unavailable, so hard-filter order stood).
|
|
456
|
+
* Null when the request never reached ranking.
|
|
457
|
+
*/
|
|
458
|
+
reasonCode: 'lowest_cost' | 'best_latency' | 'best_quality' | 'only_eligible_model' | 'filter_order_fallback' | null;
|
|
459
|
+
requestId: string;
|
|
460
|
+
/**
|
|
461
|
+
* How the routing attempt ended: routed (model selected), no_eligible_model (hard
|
|
462
|
+
* filters emptied the pool), router_config_not_found (same condition as the
|
|
463
|
+
* generate error of that name), invalid_request, or error.
|
|
464
|
+
*/
|
|
465
|
+
status: 'routed' | 'no_eligible_model' | 'router_config_not_found' | 'invalid_request' | 'error';
|
|
466
|
+
taskId: string | null;
|
|
467
|
+
}
|
|
468
|
+
export declare namespace RouterListRequestsResponse {
|
|
469
|
+
interface Filter {
|
|
470
|
+
/**
|
|
471
|
+
* Hard-filter stage that ran: capability (modality/feature fit), prompt_length
|
|
472
|
+
* (prompt within model limits), input_support (requested inputs/assets),
|
|
473
|
+
* allow_deny (router model allowlist/denylist), or price (credit ceiling).
|
|
474
|
+
*/
|
|
475
|
+
filter: 'capability' | 'prompt_length' | 'input_support' | 'allow_deny' | 'price';
|
|
476
|
+
/**
|
|
477
|
+
* Model IDs of the models that remained eligible after this filter stage.
|
|
478
|
+
*/
|
|
479
|
+
models: Array<string>;
|
|
480
|
+
type: 'filter';
|
|
481
|
+
}
|
|
482
|
+
interface Capacity {
|
|
483
|
+
/**
|
|
484
|
+
* True when every eligible model was at its limit, in which case none was skipped
|
|
485
|
+
* and the selected task queues.
|
|
486
|
+
*/
|
|
487
|
+
allExhausted: boolean;
|
|
488
|
+
/**
|
|
489
|
+
* Model IDs that were eligible but passed over because the account was at its
|
|
490
|
+
* concurrency limit for them.
|
|
491
|
+
*/
|
|
492
|
+
skipped: Array<string>;
|
|
493
|
+
type: 'capacity';
|
|
494
|
+
}
|
|
495
|
+
interface Rank {
|
|
496
|
+
/**
|
|
497
|
+
* How the router chose among eligible models: cost (sorted by estimated credits),
|
|
498
|
+
* selected (preference ranking chose a model), fallback (preference ranking failed
|
|
499
|
+
* so the eligible models were left in filter order), or single_candidate (only one
|
|
500
|
+
* model remained).
|
|
501
|
+
*/
|
|
502
|
+
outcome: 'cost' | 'selected' | 'fallback' | 'single_candidate';
|
|
503
|
+
type: 'rank';
|
|
504
|
+
}
|
|
505
|
+
}
|
|
351
506
|
export interface RouterCreateParams {
|
|
352
507
|
/**
|
|
353
508
|
* Immutable slug used to reference this Model Router in generation requests (for
|
|
@@ -378,6 +533,11 @@ export declare namespace RouterCreateParams {
|
|
|
378
533
|
* Router.
|
|
379
534
|
*/
|
|
380
535
|
interface Settings {
|
|
536
|
+
/**
|
|
537
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
538
|
+
* immediately.
|
|
539
|
+
*/
|
|
540
|
+
fallback?: Settings.Fallback;
|
|
381
541
|
/**
|
|
382
542
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
383
543
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -400,6 +560,19 @@ export declare namespace RouterCreateParams {
|
|
|
400
560
|
schemaVersion?: 1;
|
|
401
561
|
}
|
|
402
562
|
namespace Settings {
|
|
563
|
+
/**
|
|
564
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
565
|
+
* immediately.
|
|
566
|
+
*/
|
|
567
|
+
interface Fallback {
|
|
568
|
+
/**
|
|
569
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
570
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
571
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
572
|
+
* the task queues as usual.
|
|
573
|
+
*/
|
|
574
|
+
onCapacity?: boolean;
|
|
575
|
+
}
|
|
403
576
|
/**
|
|
404
577
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
405
578
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -440,6 +613,11 @@ export declare namespace RouterUpdateParams {
|
|
|
440
613
|
* optimizeFor does not clear the model allowlist or credit ceiling).
|
|
441
614
|
*/
|
|
442
615
|
interface Settings {
|
|
616
|
+
/**
|
|
617
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
618
|
+
* immediately.
|
|
619
|
+
*/
|
|
620
|
+
fallback?: Settings.Fallback;
|
|
443
621
|
/**
|
|
444
622
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
445
623
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -462,6 +640,19 @@ export declare namespace RouterUpdateParams {
|
|
|
462
640
|
schemaVersion?: 1;
|
|
463
641
|
}
|
|
464
642
|
namespace Settings {
|
|
643
|
+
/**
|
|
644
|
+
* Opt-in behavior for what routing should do when the preferred model cannot start
|
|
645
|
+
* immediately.
|
|
646
|
+
*/
|
|
647
|
+
interface Fallback {
|
|
648
|
+
/**
|
|
649
|
+
* When true, if the account is at its concurrency limit on the preferred model,
|
|
650
|
+
* routing skips it and picks the next-best eligible model instead of queueing. If
|
|
651
|
+
* every eligible model is at its limit, the original best-ranked model is used and
|
|
652
|
+
* the task queues as usual.
|
|
653
|
+
*/
|
|
654
|
+
onCapacity?: boolean;
|
|
655
|
+
}
|
|
465
656
|
/**
|
|
466
657
|
* Optional per-modality credit caps, applied per generated output. Models whose
|
|
467
658
|
* estimated per-output cost exceeds the cap are excluded.
|
|
@@ -484,7 +675,9 @@ export declare namespace RouterUpdateParams {
|
|
|
484
675
|
}
|
|
485
676
|
export interface RouterListParams extends CursorPageParams {
|
|
486
677
|
}
|
|
678
|
+
export interface RouterListRequestsParams extends CursorPageParams {
|
|
679
|
+
}
|
|
487
680
|
export declare namespace Routers {
|
|
488
|
-
export { type RouterCreateResponse as RouterCreateResponse, type RouterRetrieveResponse as RouterRetrieveResponse, type RouterUpdateResponse as RouterUpdateResponse, type RouterListResponse as RouterListResponse, type RouterListResponsesCursorPage as RouterListResponsesCursorPage, type RouterCreateParams as RouterCreateParams, type RouterUpdateParams as RouterUpdateParams, type RouterListParams as RouterListParams, };
|
|
681
|
+
export { type RouterCreateResponse as RouterCreateResponse, type RouterRetrieveResponse as RouterRetrieveResponse, type RouterUpdateResponse as RouterUpdateResponse, type RouterListResponse as RouterListResponse, type RouterListRequestsResponse as RouterListRequestsResponse, type RouterListResponsesCursorPage as RouterListResponsesCursorPage, type RouterListRequestsResponsesCursorPage as RouterListRequestsResponsesCursorPage, type RouterCreateParams as RouterCreateParams, type RouterUpdateParams as RouterUpdateParams, type RouterListParams as RouterListParams, type RouterListRequestsParams as RouterListRequestsParams, };
|
|
489
682
|
}
|
|
490
683
|
//# sourceMappingURL=routers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routers.d.ts","sourceRoot":"","sources":["../src/resources/routers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,8BAA2B;AAEpF,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIlF;;;;OAIG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,GAAE,kBAAkB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;;OAGG;IACH,IAAI,CACF,KAAK,EAAE,gBAAgB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,6BAA6B,EAAE,kBAAkB,CAAC;IAIjE;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"routers.d.ts","sourceRoot":"","sources":["../src/resources/routers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,8BAA2B;AAEpF,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAA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