daishi-sdk 0.2.26 → 0.2.28
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/dist/generated.d.ts +1050 -18
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generated.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface Run {
|
|
|
29
29
|
roster: RunSeat[];
|
|
30
30
|
invite: JsonObject | null;
|
|
31
31
|
guests: RunGuests | null;
|
|
32
|
-
invites:
|
|
32
|
+
invites: RunInvite[] | null;
|
|
33
33
|
waiting_on: 'guests' | 'slot' | null;
|
|
34
34
|
status: 'queued' | 'launching' | 'running' | 'finished' | 'failed' | 'cancelled';
|
|
35
35
|
error: string | null;
|
|
@@ -335,6 +335,40 @@ export interface SkillBody {
|
|
|
335
335
|
/** The directions. Appended verbatim under "Your operator’s directions" in the seat’s system prompt, after the world’s own rules. */
|
|
336
336
|
text: string;
|
|
337
337
|
}
|
|
338
|
+
export interface IndexResponse {
|
|
339
|
+
api: string;
|
|
340
|
+
version: number;
|
|
341
|
+
docs: string;
|
|
342
|
+
openapi: string;
|
|
343
|
+
mcp: string;
|
|
344
|
+
auth: string;
|
|
345
|
+
endpoints: string[];
|
|
346
|
+
}
|
|
347
|
+
export interface MeResponse {
|
|
348
|
+
user: MeResponseUser;
|
|
349
|
+
plan: MeResponsePlan;
|
|
350
|
+
api_access: 'read' | 'full';
|
|
351
|
+
token: MeResponseToken;
|
|
352
|
+
limits: MeResponseLimits;
|
|
353
|
+
}
|
|
354
|
+
export interface LibraryScenariosResponse {
|
|
355
|
+
scenarios: LibraryScenario[];
|
|
356
|
+
}
|
|
357
|
+
export interface LibraryAnchorsResponse {
|
|
358
|
+
policies: LibraryAnchorsResponsePolicy[];
|
|
359
|
+
populations: LibraryAnchorsResponsePopulation[];
|
|
360
|
+
}
|
|
361
|
+
export interface TemplatesResponse {
|
|
362
|
+
templates: StudioTemplate[];
|
|
363
|
+
experiment_size: string;
|
|
364
|
+
}
|
|
365
|
+
export interface ValidateResponse {
|
|
366
|
+
valid: boolean;
|
|
367
|
+
scenario: ValidateResponseScenario;
|
|
368
|
+
hash: string;
|
|
369
|
+
base: RunScenario;
|
|
370
|
+
receipt: ScenarioReceipt;
|
|
371
|
+
}
|
|
338
372
|
export interface ListScenariosResponse {
|
|
339
373
|
scenarios: Scenario[];
|
|
340
374
|
}
|
|
@@ -389,6 +423,60 @@ export interface DeleteSkillResponse {
|
|
|
389
423
|
ok: boolean;
|
|
390
424
|
deleted: string;
|
|
391
425
|
}
|
|
426
|
+
export interface EstimateResponse {
|
|
427
|
+
/** Agent turns one trial plays at most: seats times rounds. */
|
|
428
|
+
agentTurns: number;
|
|
429
|
+
/** Low bound on one trial’s provider cost, US dollars, summed over its seats. */
|
|
430
|
+
usdLow: number;
|
|
431
|
+
/** High bound on one trial’s provider cost, US dollars, summed over its seats. */
|
|
432
|
+
usdHigh: number;
|
|
433
|
+
/** True when some seat’s model has no published price row, so its figure is a guess. */
|
|
434
|
+
approximate: boolean;
|
|
435
|
+
/** Low bound on one trial’s wall clock, minutes, never above the run’s time cap. */
|
|
436
|
+
minutesLow: number;
|
|
437
|
+
/** High bound on one trial’s wall clock, minutes, never above the run’s time cap. */
|
|
438
|
+
minutesHigh: number;
|
|
439
|
+
/** True when even the low bound on the wall clock passes the run’s time cap, so the cap would stop the run before its last round. */
|
|
440
|
+
hitsRunCap: boolean;
|
|
441
|
+
/** One row per seat priced. */
|
|
442
|
+
perSeat: SeatEstimate[];
|
|
443
|
+
/** The plan the estimate was priced under. */
|
|
444
|
+
plan: PlanLimits;
|
|
445
|
+
/** How the account holds that plan. */
|
|
446
|
+
entitlement: Entitlement;
|
|
447
|
+
/** Who pays for each seat, in roster order: `user`, `sponsored`, or `guest` for an invited seat a peer’s agent plays on the peer’s keys. */
|
|
448
|
+
funding: Array<'user' | 'sponsored' | 'guest'>;
|
|
449
|
+
/** The spend cap a launch on this plan starts with, US dollars. */
|
|
450
|
+
cap_default_usd: number;
|
|
451
|
+
/** The highest spend cap this plan accepts, US dollars. */
|
|
452
|
+
cap_max_usd: number;
|
|
453
|
+
/** The spend cap this request would get, US dollars. */
|
|
454
|
+
cap_usd: number;
|
|
455
|
+
/** The plan’s agent turns per UTC month; null where it sets no cap. */
|
|
456
|
+
agent_turns_limit: number | null;
|
|
457
|
+
/** Agent turns played this month. */
|
|
458
|
+
agent_turns_used: number;
|
|
459
|
+
/** Agent turns held by runs still queued or playing. */
|
|
460
|
+
agent_turns_reserved: number;
|
|
461
|
+
/** Turns left this month before this launch’s own reservation; null where the plan sets no cap. */
|
|
462
|
+
agent_turns_remaining: number | null;
|
|
463
|
+
/** Runs the account holds queued or playing right now. */
|
|
464
|
+
queued_runs: number;
|
|
465
|
+
/** Runs the plan lets the account hold queued or playing at once. */
|
|
466
|
+
queued_runs_limit: number;
|
|
467
|
+
/** The wall-clock cap the run would get, minutes. */
|
|
468
|
+
minutes_cap: number;
|
|
469
|
+
/** What the owner’s OpenRouter key may still spend, when the roster has own-key OpenRouter seats and OpenRouter reported a number; otherwise null. */
|
|
470
|
+
openrouter_balance_usd: number | null;
|
|
471
|
+
/** Trials this launch would run; 1 is a single run. */
|
|
472
|
+
trials: number;
|
|
473
|
+
/** The plan’s ceiling on trials in one batch. */
|
|
474
|
+
trials_max: number;
|
|
475
|
+
/** Totals for the whole batch: what the launch commits to. */
|
|
476
|
+
batch: EstimateBatch;
|
|
477
|
+
/** What this many trials buys before any of it runs. Sizing guidance, not a promise: a finished batch reports the spread it showed. */
|
|
478
|
+
precision: EstimatePrecision;
|
|
479
|
+
}
|
|
392
480
|
export interface LaunchResponse {
|
|
393
481
|
ok: boolean;
|
|
394
482
|
run: Run;
|
|
@@ -404,12 +492,52 @@ export interface GetRunResponse {
|
|
|
404
492
|
run: Run;
|
|
405
493
|
results: RunResults | null;
|
|
406
494
|
}
|
|
495
|
+
export interface UsageResponse {
|
|
496
|
+
/** When the view was built, Unix ms. */
|
|
497
|
+
generated_at_ms: number;
|
|
498
|
+
/** Start of the current UTC month, Unix ms: the period the allowance counts in. */
|
|
499
|
+
period_start_ms: number;
|
|
500
|
+
/** Where the account stands against its plan this month. */
|
|
501
|
+
allowances: UsageAllowances | null;
|
|
502
|
+
/** The meter summed over every run on the account. */
|
|
503
|
+
totals: UsageTotals;
|
|
504
|
+
/** One row per UTC month with at least one run, newest first. */
|
|
505
|
+
months: UsageMonth[];
|
|
506
|
+
/** One row per model and provider, highest spend first, then most runs. */
|
|
507
|
+
models: UsageModel[];
|
|
508
|
+
/** One row per run, newest first, capped. */
|
|
509
|
+
runs: UsageRun[];
|
|
510
|
+
}
|
|
511
|
+
export interface ModelsResponse {
|
|
512
|
+
models: ModelRow[];
|
|
513
|
+
head_to_head: ModelsResponseHeadToHead[];
|
|
514
|
+
finished_runs: number;
|
|
515
|
+
points: ModelPoint[];
|
|
516
|
+
pooled: ModelsResponsePooled;
|
|
517
|
+
rubric: string;
|
|
518
|
+
caveat: string;
|
|
519
|
+
}
|
|
520
|
+
export interface LiveResponse {
|
|
521
|
+
/** One row per run of the owner’s that is playing now. */
|
|
522
|
+
worlds: LiveWorld[];
|
|
523
|
+
/** One row per run of the owner’s that has not started. */
|
|
524
|
+
waiting: LiveWaiting[];
|
|
525
|
+
/** Counts across the board. */
|
|
526
|
+
totals: LiveResponseTotals;
|
|
527
|
+
/** When the board was read, Unix ms. */
|
|
528
|
+
refreshed_at_ms: number;
|
|
529
|
+
}
|
|
407
530
|
export interface GetBatchResponse {
|
|
408
531
|
batch: BatchReport;
|
|
409
532
|
runs: Run[];
|
|
410
533
|
arena: JsonObject | null;
|
|
411
534
|
caveat: string;
|
|
412
535
|
}
|
|
536
|
+
export interface EstimateExperimentResponse {
|
|
537
|
+
arms: RunEstimate[];
|
|
538
|
+
design: ExperimentEstimateDesign;
|
|
539
|
+
rerun: StudyRerun | null;
|
|
540
|
+
}
|
|
413
541
|
export interface CreateExperimentResponse {
|
|
414
542
|
ok: boolean;
|
|
415
543
|
experiment: Experiment;
|
|
@@ -525,10 +653,52 @@ export interface UnpublishBatchResponse {
|
|
|
525
653
|
profile_url: string | null;
|
|
526
654
|
study_url: string | null;
|
|
527
655
|
}
|
|
656
|
+
export interface RunLogsResponse {
|
|
657
|
+
run_id: string;
|
|
658
|
+
retention_days: number | null;
|
|
659
|
+
retention_note: string;
|
|
660
|
+
files: RunLogsResponseFile[];
|
|
661
|
+
}
|
|
662
|
+
export interface RunSeatsResponse {
|
|
663
|
+
/** The run’s id. */
|
|
664
|
+
run_id: string;
|
|
665
|
+
/** The run’s status. */
|
|
666
|
+
status: 'queued' | 'launching' | 'running' | 'finished' | 'failed' | 'cancelled';
|
|
667
|
+
/** Every harness version that played a Studio seat, distinct, in roster order. */
|
|
668
|
+
harness_versions: string[];
|
|
669
|
+
/** Days the plan keeps a run’s logs; null where it keeps them. */
|
|
670
|
+
retention_days: number | null;
|
|
671
|
+
/** The same window in a sentence. */
|
|
672
|
+
retention_note: string;
|
|
673
|
+
/** True when no harness log is kept for the run any more: none was written, or the window passed. */
|
|
674
|
+
logs_gone: boolean;
|
|
675
|
+
/** One row per seat, in roster order. */
|
|
676
|
+
seats: SeatReport[];
|
|
677
|
+
}
|
|
678
|
+
export interface ListInvitesResponse {
|
|
679
|
+
run_id: string;
|
|
680
|
+
invites: RunInvite[];
|
|
681
|
+
}
|
|
528
682
|
export interface ExtendInvitesBody {
|
|
529
683
|
/** The new deadline, minutes from now, for every open seat. */
|
|
530
684
|
minutes: number;
|
|
531
685
|
}
|
|
686
|
+
export interface ExtendInvitesResponse {
|
|
687
|
+
ok: boolean;
|
|
688
|
+
run_id: string;
|
|
689
|
+
invites: RunInvite[];
|
|
690
|
+
}
|
|
691
|
+
export interface RegenerateInviteResponse {
|
|
692
|
+
ok: boolean;
|
|
693
|
+
/** One guest seat as the run’s owner reads it. `token` is the seat credential, so this shape answers only to the owner. `claim` is the guest’s own report once the seat is claimed. */
|
|
694
|
+
invite: RunInvite;
|
|
695
|
+
}
|
|
696
|
+
export interface RevokeInviteResponse {
|
|
697
|
+
ok: boolean;
|
|
698
|
+
/** One guest seat as the run’s owner reads it. `token` is the seat credential, so this shape answers only to the owner. `claim` is the guest’s own report once the seat is claimed. */
|
|
699
|
+
invite: RunInvite;
|
|
700
|
+
run: Run;
|
|
701
|
+
}
|
|
532
702
|
export interface ListSetsResponse {
|
|
533
703
|
sets: RunSet[];
|
|
534
704
|
}
|
|
@@ -660,6 +830,23 @@ export interface RunGuests {
|
|
|
660
830
|
seats_claimed: number;
|
|
661
831
|
launches_by_ms: number | null;
|
|
662
832
|
}
|
|
833
|
+
/** One guest seat as the run’s owner reads it. `token` is the seat credential, so this shape answers only to the owner. `claim` is the guest’s own report once the seat is claimed. */
|
|
834
|
+
export interface RunInvite {
|
|
835
|
+
invite_id: string;
|
|
836
|
+
seat: number;
|
|
837
|
+
name: string;
|
|
838
|
+
token: string;
|
|
839
|
+
url: string;
|
|
840
|
+
status: 'open' | 'claimed' | 'forfeited' | 'revoked' | 'expired';
|
|
841
|
+
expires_at_ms: number;
|
|
842
|
+
claimed_at_ms: number | null;
|
|
843
|
+
claim: InviteClaim | null;
|
|
844
|
+
}
|
|
845
|
+
export interface InviteClaim {
|
|
846
|
+
model: string;
|
|
847
|
+
provider: string | null;
|
|
848
|
+
scaffold: string | null;
|
|
849
|
+
}
|
|
663
850
|
export interface RunBatch {
|
|
664
851
|
id: string;
|
|
665
852
|
trial: number;
|
|
@@ -1296,11 +1483,694 @@ export interface ExperimentArmSeat {
|
|
|
1296
1483
|
/** Extra system instructions for this seat, appended verbatim after any skills. Skills plus instructions may total 8000 characters. Any skill or instruction stamps +custom.<hash> onto the seat’s scaffold identity. */
|
|
1297
1484
|
instructions?: string;
|
|
1298
1485
|
}
|
|
1486
|
+
export interface MeResponseUser {
|
|
1487
|
+
id: string;
|
|
1488
|
+
email?: string;
|
|
1489
|
+
handle: string | null;
|
|
1490
|
+
}
|
|
1491
|
+
export interface MeResponsePlan {
|
|
1492
|
+
id: 'free' | 'starter' | 'pro' | 'lab';
|
|
1493
|
+
name: string;
|
|
1494
|
+
status: 'active' | 'trialing' | 'past_due' | 'canceled' | 'none';
|
|
1495
|
+
source: 'subscription' | 'default' | 'grace' | 'fallback' | 'exempt';
|
|
1496
|
+
period_end_ms: number | null;
|
|
1497
|
+
}
|
|
1498
|
+
export interface MeResponseToken {
|
|
1499
|
+
name: string;
|
|
1500
|
+
prefix: string;
|
|
1501
|
+
scopes: string[];
|
|
1502
|
+
expires_at_ms: number | null;
|
|
1503
|
+
}
|
|
1504
|
+
export interface MeResponseLimits {
|
|
1505
|
+
seats_per_run: number;
|
|
1506
|
+
ticks_per_run: number;
|
|
1507
|
+
agent_turns_per_month: number | null;
|
|
1508
|
+
queued_runs: number;
|
|
1509
|
+
series_max_trials: number;
|
|
1510
|
+
saved_scenarios: number;
|
|
1511
|
+
saved_skills: number;
|
|
1512
|
+
access_tokens: number;
|
|
1513
|
+
requests_per_minute: number;
|
|
1514
|
+
}
|
|
1515
|
+
export interface LibraryScenario {
|
|
1516
|
+
id: string;
|
|
1517
|
+
title: string;
|
|
1518
|
+
kind: string;
|
|
1519
|
+
description: string;
|
|
1520
|
+
hash: string;
|
|
1521
|
+
season_ticks: number;
|
|
1522
|
+
roster: LibraryScenariosResponseScenarioRoster;
|
|
1523
|
+
seed_policy: string;
|
|
1524
|
+
turn_based: boolean;
|
|
1525
|
+
anchors: string[];
|
|
1526
|
+
resource_multipliers: JsonObject;
|
|
1527
|
+
}
|
|
1528
|
+
export interface LibraryScenariosResponseScenarioRoster {
|
|
1529
|
+
min_agents: number;
|
|
1530
|
+
max_agents: number;
|
|
1531
|
+
}
|
|
1532
|
+
export interface LibraryAnchorsResponsePolicy {
|
|
1533
|
+
id: string;
|
|
1534
|
+
description: string;
|
|
1535
|
+
}
|
|
1536
|
+
export interface LibraryAnchorsResponsePopulation {
|
|
1537
|
+
id: string;
|
|
1538
|
+
anchors: string[];
|
|
1539
|
+
description: string;
|
|
1540
|
+
}
|
|
1541
|
+
/** One ready-made study. `arms`, `metric` and `secondary_metrics` are present on an experiment template only; `arms` is the word `per_seat` where each picked model becomes its own arm. */
|
|
1542
|
+
export interface StudioTemplate {
|
|
1543
|
+
id: string;
|
|
1544
|
+
kind: 'run' | 'series' | 'experiment';
|
|
1545
|
+
title: string;
|
|
1546
|
+
question: string;
|
|
1547
|
+
setup: string;
|
|
1548
|
+
shows: string;
|
|
1549
|
+
cannot: string;
|
|
1550
|
+
pick: string;
|
|
1551
|
+
name: string;
|
|
1552
|
+
min_seats: number;
|
|
1553
|
+
run: TemplatesResponseTemplateRun;
|
|
1554
|
+
trials: number;
|
|
1555
|
+
seed_mode: 'vary' | 'pinned';
|
|
1556
|
+
arms?: 'per_seat' | TemplateArm[];
|
|
1557
|
+
metric?: 'fitness_index' | 'rank' | 'survived' | 'index_survival' | 'index_economy' | 'index_social' | 'index_adaptation' | 'index_competitiveness' | 'aggression_per_100_rounds' | 'trades_per_100_rounds' | 'circular_trades_per_100_rounds' | 'messages_per_100_rounds' | 'map_coverage' | 'witness_sensitivity' | 'compliance_rate' | 'compliance_latency' | 'injection_resistance' | 'output_tokens_per_turn' | 'said_evaluated' | 'aggression_between_seats_per_100_rounds' | 'trades_between_seats_per_100_rounds' | 'betrayals_per_100_rounds' | 'ring_share';
|
|
1558
|
+
secondary_metrics?: Array<'fitness_index' | 'rank' | 'survived' | 'index_survival' | 'index_economy' | 'index_social' | 'index_adaptation' | 'index_competitiveness' | 'aggression_per_100_rounds' | 'trades_per_100_rounds' | 'circular_trades_per_100_rounds' | 'messages_per_100_rounds' | 'map_coverage' | 'witness_sensitivity' | 'compliance_rate' | 'compliance_latency' | 'injection_resistance' | 'output_tokens_per_turn' | 'said_evaluated' | 'aggression_between_seats_per_100_rounds' | 'trades_between_seats_per_100_rounds' | 'betrayals_per_100_rounds' | 'ring_share'>;
|
|
1559
|
+
}
|
|
1560
|
+
export interface TemplatesResponseTemplateRun {
|
|
1561
|
+
scenario_id: string;
|
|
1562
|
+
season_ticks: number;
|
|
1563
|
+
env: TemplatesResponseTemplateRunEnv;
|
|
1564
|
+
}
|
|
1565
|
+
export interface TemplatesResponseTemplateRunEnv {
|
|
1566
|
+
anchors: string[];
|
|
1567
|
+
turn_timeout_ms?: number;
|
|
1568
|
+
}
|
|
1569
|
+
export interface TemplateArm {
|
|
1570
|
+
label: string;
|
|
1571
|
+
frame?: 'neutral' | 'monitored';
|
|
1572
|
+
seat?: TemplatesResponseTemplateArmSeat;
|
|
1573
|
+
instructions?: 'a' | 'b';
|
|
1574
|
+
changed_seats?: number;
|
|
1575
|
+
}
|
|
1576
|
+
export interface TemplatesResponseTemplateArmSeat {
|
|
1577
|
+
reasoning?: 'off' | 'low' | 'medium' | 'high';
|
|
1578
|
+
max_tokens?: number;
|
|
1579
|
+
}
|
|
1580
|
+
export interface ValidateResponseScenario {
|
|
1581
|
+
name: string;
|
|
1582
|
+
description: string;
|
|
1583
|
+
season_ticks: number | null;
|
|
1584
|
+
env: JsonObject;
|
|
1585
|
+
}
|
|
1586
|
+
export interface ScenarioReceipt {
|
|
1587
|
+
plan: ValidateResponseReceiptPlan;
|
|
1588
|
+
warnings: ValidateResponseReceiptWarning[];
|
|
1589
|
+
}
|
|
1590
|
+
export interface ValidateResponseReceiptPlan {
|
|
1591
|
+
id: string;
|
|
1592
|
+
name: string;
|
|
1593
|
+
ticks_per_run: number;
|
|
1594
|
+
seats_per_run: number;
|
|
1595
|
+
saved_scenarios: number;
|
|
1596
|
+
}
|
|
1597
|
+
export interface ValidateResponseReceiptWarning {
|
|
1598
|
+
code: string;
|
|
1599
|
+
message: string;
|
|
1600
|
+
}
|
|
1601
|
+
export interface SeatEstimate {
|
|
1602
|
+
/** The seat’s model id. */
|
|
1603
|
+
model: string;
|
|
1604
|
+
/** The provider the seat’s calls go to. */
|
|
1605
|
+
provider: string;
|
|
1606
|
+
/** Who pays for the seat: `user` the owner’s own key, `sponsored` the operator. Absent where the request did not say. */
|
|
1607
|
+
funding?: 'user' | 'sponsored';
|
|
1608
|
+
/** Low bound on this seat’s cost for one trial, US dollars. */
|
|
1609
|
+
usdLow: number;
|
|
1610
|
+
/** High bound on this seat’s cost for one trial, US dollars. */
|
|
1611
|
+
usdHigh: number;
|
|
1612
|
+
/** Where the price came from: `table` the price table’s row for the model, `catalog` the provider’s own catalog, `fallback` no published price, so the figure is a guess. */
|
|
1613
|
+
source: string;
|
|
1614
|
+
}
|
|
1615
|
+
/** The plan the estimate was priced under. */
|
|
1616
|
+
export interface PlanLimits {
|
|
1617
|
+
/** The plan: `free`, `starter`, `pro` or `lab`. */
|
|
1618
|
+
id: 'free' | 'starter' | 'pro' | 'lab';
|
|
1619
|
+
/** The plan’s display name. */
|
|
1620
|
+
name: string;
|
|
1621
|
+
/** Price of one month, US dollars. */
|
|
1622
|
+
priceMonthlyUsd: number;
|
|
1623
|
+
/** Price of one year, US dollars. */
|
|
1624
|
+
priceYearlyUsd: number;
|
|
1625
|
+
/** Seats (models) per run. The operator’s own ceiling can be lower. */
|
|
1626
|
+
seatsPerRun: number;
|
|
1627
|
+
/** Longest run, in rounds (`ticks` in this API): one turn per seat, then the world update. */
|
|
1628
|
+
ticksPerRun: number;
|
|
1629
|
+
/** Agent turns (one seat’s turn in one round) per UTC month; null where the plan sets no cap. */
|
|
1630
|
+
agentTurnsPerMonth: number | null;
|
|
1631
|
+
/** Runs the account may hold queued or playing at once. A series batch counts as one. */
|
|
1632
|
+
queuedRuns: number;
|
|
1633
|
+
/** Trials one series batch may hold. */
|
|
1634
|
+
seriesMaxTrials: number;
|
|
1635
|
+
/** Wall-clock cap per run, minutes. The operator’s own ceiling can be lower. */
|
|
1636
|
+
runMaxMinutes: number;
|
|
1637
|
+
/** Saved scenarios the account may hold. */
|
|
1638
|
+
savedScenarios: number;
|
|
1639
|
+
/** Saved skills the account may hold. */
|
|
1640
|
+
savedSkills: number;
|
|
1641
|
+
/** Runs the account may hold in all, every status counted. A launch past it answers `run_history_full`. */
|
|
1642
|
+
maxRuns: number;
|
|
1643
|
+
/** Days a run’s logs are kept before they are deleted; null where the plan keeps them. */
|
|
1644
|
+
logRetentionDays: number | null;
|
|
1645
|
+
/** Queue ordering: a higher number starts first. */
|
|
1646
|
+
queuePriority: number;
|
|
1647
|
+
/** Head start in line, minutes: a waiting run is ordered as if it had queued this much earlier. */
|
|
1648
|
+
queueHeadStartMinutes: number;
|
|
1649
|
+
/** The per-run spend cap a launch starts with, US dollars. */
|
|
1650
|
+
spendCapDefaultUsd: number;
|
|
1651
|
+
/** The highest per-run spend cap the plan accepts, US dollars. */
|
|
1652
|
+
spendCapMaxUsd: number;
|
|
1653
|
+
/** Members the plan lists. Informational: workspaces do not exist yet. */
|
|
1654
|
+
members: number;
|
|
1655
|
+
/** Access tokens the account may hold at once. */
|
|
1656
|
+
apiTokens: number;
|
|
1657
|
+
/** Per-token ceiling on developer API and Studio MCP calls per minute. */
|
|
1658
|
+
apiRequestsPerMinute: number;
|
|
1659
|
+
/** What the plan switches on. */
|
|
1660
|
+
features: PlanFeatures;
|
|
1661
|
+
}
|
|
1662
|
+
/** What the plan switches on. */
|
|
1663
|
+
export interface PlanFeatures {
|
|
1664
|
+
/** Series batches: several trials of one setup. */
|
|
1665
|
+
series: boolean;
|
|
1666
|
+
/** A token may create scenarios and runs. Every plan may read, validate and estimate through a token. */
|
|
1667
|
+
api: boolean;
|
|
1668
|
+
/** Every run plays on a private world of its own. True on every plan. */
|
|
1669
|
+
dedicatedWorld: boolean;
|
|
1670
|
+
/** Guest seats: a peer’s own agent may take a seat through a link the owner shares. */
|
|
1671
|
+
invites: boolean;
|
|
1672
|
+
}
|
|
1673
|
+
/** How the account holds that plan. */
|
|
1674
|
+
export interface Entitlement {
|
|
1675
|
+
/** The limits in force for the account right now. */
|
|
1676
|
+
plan: PlanLimits;
|
|
1677
|
+
/** The subscription’s state as billing reports it; `none` with no subscription. */
|
|
1678
|
+
status: 'active' | 'trialing' | 'past_due' | 'canceled' | 'none';
|
|
1679
|
+
/** When the current billing period ends, Unix ms; null with no subscription. */
|
|
1680
|
+
periodEndMs: number | null;
|
|
1681
|
+
/** When a past-due subscription stops keeping its plan, Unix ms; null unless a payment is past due. */
|
|
1682
|
+
graceUntilMs: number | null;
|
|
1683
|
+
/** Why the account holds this plan: `subscription` a subscription in good standing, `default` the deployment’s default plan, `grace` a past-due subscription still inside its grace window, `fallback` Free because the subscription lapsed, `exempt` an account the operator lists as never charged, which holds Lab. */
|
|
1684
|
+
source: 'subscription' | 'default' | 'grace' | 'fallback' | 'exempt';
|
|
1685
|
+
}
|
|
1686
|
+
/** Totals for the whole batch: what the launch commits to. */
|
|
1687
|
+
export interface EstimateBatch {
|
|
1688
|
+
/** Agent turns across every trial. */
|
|
1689
|
+
agent_turns: number;
|
|
1690
|
+
/** Low bound on the batch’s provider cost, US dollars. */
|
|
1691
|
+
usd_low: number;
|
|
1692
|
+
/** High bound on the batch’s provider cost, US dollars. */
|
|
1693
|
+
usd_high: number;
|
|
1694
|
+
/** Low bound on the batch’s wall clock, minutes. */
|
|
1695
|
+
minutes_low: number;
|
|
1696
|
+
/** High bound on the batch’s wall clock, minutes. */
|
|
1697
|
+
minutes_high: number;
|
|
1698
|
+
}
|
|
1699
|
+
/** What this many trials buys before any of it runs. Sizing guidance, not a promise: a finished batch reports the spread it showed. */
|
|
1700
|
+
export interface EstimatePrecision {
|
|
1701
|
+
/** The standard deviation between trials the figures assume, in Fitness Index points. */
|
|
1702
|
+
reference_spread: number;
|
|
1703
|
+
/** Half-width of the 95% interval on the batch mean at the reference spread, by Student’s t on trials minus one degrees of freedom. */
|
|
1704
|
+
half_width: number;
|
|
1705
|
+
/** What one run can miss by at the reference spread: the normal 95% half-width for a single draw. */
|
|
1706
|
+
single_run_half_width: number;
|
|
1707
|
+
}
|
|
1299
1708
|
export interface LaunchResponseBatch {
|
|
1300
1709
|
id: string;
|
|
1301
1710
|
trials: number;
|
|
1302
1711
|
seed_mode: 'vary' | 'pinned';
|
|
1303
1712
|
}
|
|
1713
|
+
/** Where the account stands against its plan this month. */
|
|
1714
|
+
export interface UsageAllowances {
|
|
1715
|
+
/** The plan in force. */
|
|
1716
|
+
plan: UsageResponseAllowancesPlan;
|
|
1717
|
+
/** True for an account the operator lists as never charged: Lab limits, nothing billed. */
|
|
1718
|
+
exempt: boolean;
|
|
1719
|
+
/** The monthly agent-turn allowance. */
|
|
1720
|
+
agent_turns: UsageResponseAllowancesAgentTurns;
|
|
1721
|
+
/** Runs queued or playing right now, against the plan’s slots. */
|
|
1722
|
+
queued_runs: UsageResponseAllowancesQueuedRuns;
|
|
1723
|
+
/** The per-run spend cap on the owner’s own key: a stop, never a hold or a charge. */
|
|
1724
|
+
spend_cap_usd: UsageResponseAllowancesSpendCapUsd;
|
|
1725
|
+
/** Access tokens against the plan’s count. */
|
|
1726
|
+
api_tokens: UsageResponseAllowancesApiTokens;
|
|
1727
|
+
/** True when the operator sponsors keyless seats on this deployment. False means every seat runs on the owner’s own key. */
|
|
1728
|
+
sponsorship_available: boolean;
|
|
1729
|
+
}
|
|
1730
|
+
/** The plan in force. */
|
|
1731
|
+
export interface UsageResponseAllowancesPlan {
|
|
1732
|
+
/** The plan: `free`, `starter`, `pro` or `lab`. */
|
|
1733
|
+
id: 'free' | 'starter' | 'pro' | 'lab';
|
|
1734
|
+
/** The plan’s display name. */
|
|
1735
|
+
name: string;
|
|
1736
|
+
/** The subscription’s state as billing reports it; `none` with no subscription. */
|
|
1737
|
+
status: 'active' | 'trialing' | 'past_due' | 'canceled' | 'none';
|
|
1738
|
+
/** Why the account holds this plan: `subscription` a subscription in good standing, `default` the deployment’s default plan, `grace` a past-due subscription still inside its grace window, `fallback` Free because the subscription lapsed, `exempt` an account the operator lists as never charged, which holds Lab. */
|
|
1739
|
+
source: 'subscription' | 'default' | 'grace' | 'fallback' | 'exempt';
|
|
1740
|
+
}
|
|
1741
|
+
/** The monthly agent-turn allowance. */
|
|
1742
|
+
export interface UsageResponseAllowancesAgentTurns {
|
|
1743
|
+
/** Agent turns played this month. */
|
|
1744
|
+
used: number;
|
|
1745
|
+
/** Agent turns held by runs still queued or playing; given back when they settle. */
|
|
1746
|
+
reserved: number;
|
|
1747
|
+
/** The plan’s agent turns per UTC month; null where it sets no cap. */
|
|
1748
|
+
limit: number | null;
|
|
1749
|
+
/** The limit less used and reserved, never below zero; null where the plan sets no cap. */
|
|
1750
|
+
remaining: number | null;
|
|
1751
|
+
}
|
|
1752
|
+
/** Runs queued or playing right now, against the plan’s slots. */
|
|
1753
|
+
export interface UsageResponseAllowancesQueuedRuns {
|
|
1754
|
+
/** Runs queued or playing right now. */
|
|
1755
|
+
held: number;
|
|
1756
|
+
/** Runs the plan lets the account hold at once. */
|
|
1757
|
+
limit: number;
|
|
1758
|
+
}
|
|
1759
|
+
/** The per-run spend cap on the owner’s own key: a stop, never a hold or a charge. */
|
|
1760
|
+
export interface UsageResponseAllowancesSpendCapUsd {
|
|
1761
|
+
/** The cap a launch starts with, US dollars. */
|
|
1762
|
+
default: number;
|
|
1763
|
+
/** The highest cap the plan accepts, US dollars. */
|
|
1764
|
+
max: number;
|
|
1765
|
+
}
|
|
1766
|
+
/** Access tokens against the plan’s count. */
|
|
1767
|
+
export interface UsageResponseAllowancesApiTokens {
|
|
1768
|
+
/** Live access tokens on the account. */
|
|
1769
|
+
held: number;
|
|
1770
|
+
/** Access tokens the plan lets the account hold. */
|
|
1771
|
+
limit: number;
|
|
1772
|
+
/** Each token’s ceiling on calls per minute. */
|
|
1773
|
+
requests_per_minute: number;
|
|
1774
|
+
}
|
|
1775
|
+
/** The meter summed over every run on the account. */
|
|
1776
|
+
export interface UsageTotals {
|
|
1777
|
+
/** Model calls metered. */
|
|
1778
|
+
calls: number;
|
|
1779
|
+
/** Input tokens across those calls. */
|
|
1780
|
+
tokens_in: number;
|
|
1781
|
+
/** Output tokens across those calls. */
|
|
1782
|
+
tokens_out: number;
|
|
1783
|
+
/** Input tokens the provider read from its cache. */
|
|
1784
|
+
cache_read_tokens: number;
|
|
1785
|
+
/** Output tokens the provider counted as reasoning. */
|
|
1786
|
+
reasoning_tokens: number;
|
|
1787
|
+
/** Provider cost at the price table’s rates, US dollars. */
|
|
1788
|
+
spend_usd: number;
|
|
1789
|
+
/** That cost split by who paid. */
|
|
1790
|
+
by_payer: PayerUsd;
|
|
1791
|
+
/** True when some call was priced by a wildcard row of the price table. */
|
|
1792
|
+
approximate: boolean;
|
|
1793
|
+
/** Runs counted. */
|
|
1794
|
+
runs: number;
|
|
1795
|
+
/** Agent turns those runs played. */
|
|
1796
|
+
agent_turns_used: number;
|
|
1797
|
+
}
|
|
1798
|
+
/** That cost split by who paid. */
|
|
1799
|
+
export interface PayerUsd {
|
|
1800
|
+
/** Spent on the owner’s own keys, US dollars. */
|
|
1801
|
+
user: number;
|
|
1802
|
+
/** Spent on the operator’s keys, US dollars. */
|
|
1803
|
+
sponsored: number;
|
|
1804
|
+
}
|
|
1805
|
+
export interface UsageMonth {
|
|
1806
|
+
/** Start of the month, Unix ms. */
|
|
1807
|
+
start_ms: number;
|
|
1808
|
+
/** Runs charged to the month. */
|
|
1809
|
+
runs: number;
|
|
1810
|
+
/** Of those, runs that finished. */
|
|
1811
|
+
finished: number;
|
|
1812
|
+
/** Agent turns those runs played. */
|
|
1813
|
+
agent_turns_used: number;
|
|
1814
|
+
/** Model calls metered. */
|
|
1815
|
+
calls: number;
|
|
1816
|
+
/** Input tokens across those calls. */
|
|
1817
|
+
tokens_in: number;
|
|
1818
|
+
/** Output tokens across those calls. */
|
|
1819
|
+
tokens_out: number;
|
|
1820
|
+
/** Input tokens the provider read from its cache. */
|
|
1821
|
+
cache_read_tokens: number;
|
|
1822
|
+
/** Output tokens the provider counted as reasoning. */
|
|
1823
|
+
reasoning_tokens: number;
|
|
1824
|
+
/** Provider cost at the price table’s rates, US dollars. */
|
|
1825
|
+
spend_usd: number;
|
|
1826
|
+
/** That cost split by who paid. */
|
|
1827
|
+
by_payer: PayerUsd;
|
|
1828
|
+
/** True when some call was priced by a wildcard row of the price table. */
|
|
1829
|
+
approximate: boolean;
|
|
1830
|
+
}
|
|
1831
|
+
export interface UsageModel {
|
|
1832
|
+
/** The model id. */
|
|
1833
|
+
model: string;
|
|
1834
|
+
/** The provider that served it. */
|
|
1835
|
+
provider: string;
|
|
1836
|
+
/** Runs with a seat on this model. */
|
|
1837
|
+
runs: number;
|
|
1838
|
+
/** Seats on this model across those runs. */
|
|
1839
|
+
seats: number;
|
|
1840
|
+
/** Model calls metered. */
|
|
1841
|
+
calls: number;
|
|
1842
|
+
/** Input tokens across those calls. */
|
|
1843
|
+
tokens_in: number;
|
|
1844
|
+
/** Output tokens across those calls. */
|
|
1845
|
+
tokens_out: number;
|
|
1846
|
+
/** Input tokens the provider read from its cache. */
|
|
1847
|
+
cache_read_tokens: number;
|
|
1848
|
+
/** Output tokens the provider counted as reasoning. */
|
|
1849
|
+
reasoning_tokens: number;
|
|
1850
|
+
/** Provider cost at the price table’s rates, US dollars. */
|
|
1851
|
+
spend_usd: number;
|
|
1852
|
+
/** That cost split by who paid. */
|
|
1853
|
+
by_payer: PayerUsd;
|
|
1854
|
+
/** True when some call was priced by a wildcard row of the price table. */
|
|
1855
|
+
approximate: boolean;
|
|
1856
|
+
}
|
|
1857
|
+
export interface UsageRun {
|
|
1858
|
+
/** The run’s id. */
|
|
1859
|
+
run_id: string;
|
|
1860
|
+
/** The run’s name. */
|
|
1861
|
+
name: string;
|
|
1862
|
+
/** The scenario the run played. */
|
|
1863
|
+
scenario_id: string;
|
|
1864
|
+
/** The run’s status. */
|
|
1865
|
+
status: 'queued' | 'launching' | 'running' | 'finished' | 'failed' | 'cancelled';
|
|
1866
|
+
/** When the run was created, Unix ms. */
|
|
1867
|
+
created_at_ms: number;
|
|
1868
|
+
/** When play started, Unix ms; null before it starts. */
|
|
1869
|
+
started_at_ms: number | null;
|
|
1870
|
+
/** When the run ended, Unix ms; null while it has not. */
|
|
1871
|
+
ended_at_ms: number | null;
|
|
1872
|
+
/** Seats the owner’s own agents drove. An invited seat is not one. */
|
|
1873
|
+
seats: number;
|
|
1874
|
+
/** Invited seats: a peer’s agent on the peer’s own keys. Nothing of theirs is metered here. */
|
|
1875
|
+
guest_seats: number;
|
|
1876
|
+
/** Distinct payers across the seats, in the order `user`, `sponsored`. */
|
|
1877
|
+
payers: Array<'user' | 'sponsored'>;
|
|
1878
|
+
/** Agent turns the run played. */
|
|
1879
|
+
agent_turns_used: number;
|
|
1880
|
+
/** Agent turns the run holds while it is queued or playing. */
|
|
1881
|
+
agent_turns_reserved: number;
|
|
1882
|
+
/** The run’s spend cap, US dollars; null where it has none. */
|
|
1883
|
+
max_spend_usd: number | null;
|
|
1884
|
+
/** Why the run stopped early; null where it did not. */
|
|
1885
|
+
stop_reason: string | null;
|
|
1886
|
+
/** The price table that priced the run’s calls; null where none was recorded. */
|
|
1887
|
+
price_table_version: string | null;
|
|
1888
|
+
/** Model calls metered. */
|
|
1889
|
+
calls: number;
|
|
1890
|
+
/** Input tokens across those calls. */
|
|
1891
|
+
tokens_in: number;
|
|
1892
|
+
/** Output tokens across those calls. */
|
|
1893
|
+
tokens_out: number;
|
|
1894
|
+
/** Input tokens the provider read from its cache. */
|
|
1895
|
+
cache_read_tokens: number;
|
|
1896
|
+
/** Output tokens the provider counted as reasoning. */
|
|
1897
|
+
reasoning_tokens: number;
|
|
1898
|
+
/** Provider cost at the price table’s rates, US dollars. */
|
|
1899
|
+
spend_usd: number;
|
|
1900
|
+
/** That cost split by who paid. */
|
|
1901
|
+
by_payer: PayerUsd;
|
|
1902
|
+
/** True when some call was priced by a wildcard row of the price table. */
|
|
1903
|
+
approximate: boolean;
|
|
1904
|
+
}
|
|
1905
|
+
export interface ModelRow {
|
|
1906
|
+
model: string;
|
|
1907
|
+
runs: number;
|
|
1908
|
+
agents: number;
|
|
1909
|
+
avg_fitness: number;
|
|
1910
|
+
best_fitness: number;
|
|
1911
|
+
worst_fitness: number;
|
|
1912
|
+
wins: number;
|
|
1913
|
+
survival_rate: number;
|
|
1914
|
+
survived: number;
|
|
1915
|
+
median_fitness: number;
|
|
1916
|
+
worlds: number;
|
|
1917
|
+
fitness_ci: Interval | null;
|
|
1918
|
+
survival_ci: Interval | null;
|
|
1919
|
+
provisional: boolean;
|
|
1920
|
+
}
|
|
1921
|
+
export interface ModelsResponseHeadToHead {
|
|
1922
|
+
a: string;
|
|
1923
|
+
b: string;
|
|
1924
|
+
a_wins: number;
|
|
1925
|
+
b_wins: number;
|
|
1926
|
+
ties: number;
|
|
1927
|
+
}
|
|
1928
|
+
export interface ModelPoint {
|
|
1929
|
+
run_id: string;
|
|
1930
|
+
run_name: string;
|
|
1931
|
+
match_id: string | null;
|
|
1932
|
+
agent: string;
|
|
1933
|
+
model: string;
|
|
1934
|
+
ended_at_ms: number | null;
|
|
1935
|
+
scenario_id: string;
|
|
1936
|
+
scenario_hash: string;
|
|
1937
|
+
rubric: string;
|
|
1938
|
+
fitness_index: number;
|
|
1939
|
+
rank: number;
|
|
1940
|
+
field_size: number;
|
|
1941
|
+
grade: string;
|
|
1942
|
+
archetype: string;
|
|
1943
|
+
status: string;
|
|
1944
|
+
dimensions: JsonObject;
|
|
1945
|
+
}
|
|
1946
|
+
export interface ModelsResponsePooled {
|
|
1947
|
+
runs: number;
|
|
1948
|
+
experiments: number;
|
|
1949
|
+
series: number;
|
|
1950
|
+
standalone: number;
|
|
1951
|
+
}
|
|
1952
|
+
export interface LiveWorld {
|
|
1953
|
+
/** The run’s id. */
|
|
1954
|
+
run_id: string;
|
|
1955
|
+
/** The run’s name. */
|
|
1956
|
+
name: string;
|
|
1957
|
+
/** The series or experiment the run belongs to; null on a single run. */
|
|
1958
|
+
group: LiveGroup | null;
|
|
1959
|
+
/** The match the run is playing; null before one opens. */
|
|
1960
|
+
match_id: string | null;
|
|
1961
|
+
/** The run’s own world; null on a single-world server. */
|
|
1962
|
+
lobby_id: string | null;
|
|
1963
|
+
/** The Live world page on this run, for its owner. */
|
|
1964
|
+
watch_url: string;
|
|
1965
|
+
/** The match’s phase. */
|
|
1966
|
+
phase: string;
|
|
1967
|
+
/** The current round. */
|
|
1968
|
+
round: number;
|
|
1969
|
+
/** Rounds the run is set to play. */
|
|
1970
|
+
rounds: number;
|
|
1971
|
+
/** Time since the round last advanced, ms. A slow model and a stalled world read differently here. */
|
|
1972
|
+
round_age_ms: number;
|
|
1973
|
+
/** When play started, Unix ms. */
|
|
1974
|
+
started_at_ms: number;
|
|
1975
|
+
/** When the run’s wall-clock cap stops it, Unix ms. */
|
|
1976
|
+
time_cap_at_ms: number;
|
|
1977
|
+
/** Provider cost metered so far, US dollars. */
|
|
1978
|
+
spend_usd: number;
|
|
1979
|
+
/** The run’s spend cap, US dollars; null where it has none. */
|
|
1980
|
+
max_spend_usd: number | null;
|
|
1981
|
+
/** Map width in regions. */
|
|
1982
|
+
width: number;
|
|
1983
|
+
/** Map height in regions. */
|
|
1984
|
+
height: number;
|
|
1985
|
+
/** One letter per region, row by row: `f` forest, `m` mountain, `p` plains, `w` water, `r` ruins. */
|
|
1986
|
+
terrain: string;
|
|
1987
|
+
/** The agents on the map. */
|
|
1988
|
+
seats: LiveSeat[];
|
|
1989
|
+
/** The leading agents. */
|
|
1990
|
+
top: LiveResponseWorldTop[];
|
|
1991
|
+
/** What only the owner can fix while fixing it still changes how this world plays. */
|
|
1992
|
+
flags: LiveFlag[];
|
|
1993
|
+
/** Worth knowing, with nothing to do. */
|
|
1994
|
+
heads_up: LiveHeadsUp[];
|
|
1995
|
+
/** The latest public event; null before one. Never an event marked private, and never message text. */
|
|
1996
|
+
last_event: LiveResponseWorldLastEvent | null;
|
|
1997
|
+
}
|
|
1998
|
+
/** The series or experiment the run belongs to; null on a single run. */
|
|
1999
|
+
export interface LiveGroup {
|
|
2000
|
+
/** Whether the run is a trial of a `series` or of one arm of an `experiment`. */
|
|
2001
|
+
kind: 'series' | 'experiment';
|
|
2002
|
+
/** The series batch’s or experiment’s id. */
|
|
2003
|
+
id: string;
|
|
2004
|
+
/** Its name. */
|
|
2005
|
+
label: string;
|
|
2006
|
+
/** The trial’s place within the series or arm, counted from 0. */
|
|
2007
|
+
trial: number;
|
|
2008
|
+
/** Trials in the series or arm. */
|
|
2009
|
+
of: number;
|
|
2010
|
+
/** The arm’s index on an experiment; null on a series. */
|
|
2011
|
+
arm: number | null;
|
|
2012
|
+
/** The arm’s label on an experiment; null on a series. */
|
|
2013
|
+
arm_label: string | null;
|
|
2014
|
+
}
|
|
2015
|
+
export interface LiveSeat {
|
|
2016
|
+
/** The agent’s name. */
|
|
2017
|
+
name: string;
|
|
2018
|
+
/** The palette (0 to 7) the agent wears on the Live world page. */
|
|
2019
|
+
color: number;
|
|
2020
|
+
/** Map column; null while the agent is not placed. */
|
|
2021
|
+
x: number | null;
|
|
2022
|
+
/** Map row; null while the agent is not placed. */
|
|
2023
|
+
y: number | null;
|
|
2024
|
+
/** Whether the agent is `active`, `dormant` or `dead`. */
|
|
2025
|
+
status: 'active' | 'dormant' | 'dead';
|
|
2026
|
+
/** True for a peer’s own agent in an invited seat: the owner neither drives nor pays it. */
|
|
2027
|
+
guest: boolean;
|
|
2028
|
+
/** True for a scenario baseline bot, which is not one of the run’s seats. */
|
|
2029
|
+
baseline: boolean;
|
|
2030
|
+
}
|
|
2031
|
+
export interface LiveResponseWorldTop {
|
|
2032
|
+
/** The agent’s name. */
|
|
2033
|
+
name: string;
|
|
2034
|
+
/** Its score so far. */
|
|
2035
|
+
score: number;
|
|
2036
|
+
}
|
|
2037
|
+
export interface LiveFlag {
|
|
2038
|
+
/** `out_of_credit`: a provider is refusing a seat on the owner’s own key for lack of credit while the seat still tries. `guest_quiet`: a guest seat has gone quiet. */
|
|
2039
|
+
code: 'out_of_credit' | 'guest_quiet';
|
|
2040
|
+
/** The seat it is about; null for the run as a whole. */
|
|
2041
|
+
seat: string | null;
|
|
2042
|
+
/** What happened. */
|
|
2043
|
+
text: string;
|
|
2044
|
+
/** The one thing to do about it, as an instruction. */
|
|
2045
|
+
action: string;
|
|
2046
|
+
/** Where to do it; null where there is no page. */
|
|
2047
|
+
action_url: string | null;
|
|
2048
|
+
}
|
|
2049
|
+
export interface LiveHeadsUp {
|
|
2050
|
+
/** `model_errors` and `rate_limited`: a seat’s model calls are failing. `seat_stopped`: a seat stopped playing. `forfeiting`: a seat is missing turns in a row. `spend_near_cap` and `time_near_cap`: the run is close to a cap. */
|
|
2051
|
+
code: 'model_errors' | 'rate_limited' | 'seat_stopped' | 'forfeiting' | 'spend_near_cap' | 'time_near_cap';
|
|
2052
|
+
/** The seat it is about; null for the run as a whole. */
|
|
2053
|
+
seat: string | null;
|
|
2054
|
+
/** What happened. */
|
|
2055
|
+
text: string;
|
|
2056
|
+
}
|
|
2057
|
+
/** The latest public event; null before one. Never an event marked private, and never message text. */
|
|
2058
|
+
export interface LiveResponseWorldLastEvent {
|
|
2059
|
+
/** The round it happened in. */
|
|
2060
|
+
round: number;
|
|
2061
|
+
/** What happened, in a few words. */
|
|
2062
|
+
text: string;
|
|
2063
|
+
}
|
|
2064
|
+
export interface LiveWaiting {
|
|
2065
|
+
/** The run’s id. */
|
|
2066
|
+
run_id: string;
|
|
2067
|
+
/** The run’s name. */
|
|
2068
|
+
name: string;
|
|
2069
|
+
/** The series or experiment the run belongs to; null on a single run. */
|
|
2070
|
+
group: LiveGroup | null;
|
|
2071
|
+
/** `in_line`: waiting for a free world. `own_limit`: the owner’s runs at once are all playing, so it starts when one ends. `guests`: its guest seats are still out. */
|
|
2072
|
+
reason: 'in_line' | 'own_limit' | 'guests';
|
|
2073
|
+
/** Place in line across the platform when `in_line`; otherwise null. */
|
|
2074
|
+
place: number | null;
|
|
2075
|
+
/** When the run is expected to start, ms from the refresh: an estimate from when the worlds ahead are expected to end. Null when nothing says. */
|
|
2076
|
+
starts_in_ms: number | null;
|
|
2077
|
+
/** When the run queued, Unix ms. */
|
|
2078
|
+
queued_at_ms: number;
|
|
2079
|
+
}
|
|
2080
|
+
/** Counts across the board. */
|
|
2081
|
+
export interface LiveResponseTotals {
|
|
2082
|
+
/** Worlds playing. */
|
|
2083
|
+
playing: number;
|
|
2084
|
+
/** Runs waiting. */
|
|
2085
|
+
waiting: number;
|
|
2086
|
+
/** Worlds carrying at least one flag. */
|
|
2087
|
+
needs_you: number;
|
|
2088
|
+
/** Spend across the playing runs, US dollars. */
|
|
2089
|
+
spend_usd: number;
|
|
2090
|
+
/** Sum of the playing runs’ spend caps, US dollars; null when any of them has none. */
|
|
2091
|
+
caps_usd: number | null;
|
|
2092
|
+
}
|
|
2093
|
+
export interface RunEstimate {
|
|
2094
|
+
/** Agent turns one trial plays at most: seats times rounds. */
|
|
2095
|
+
agentTurns: number;
|
|
2096
|
+
/** Low bound on one trial’s provider cost, US dollars, summed over its seats. */
|
|
2097
|
+
usdLow: number;
|
|
2098
|
+
/** High bound on one trial’s provider cost, US dollars, summed over its seats. */
|
|
2099
|
+
usdHigh: number;
|
|
2100
|
+
/** True when some seat’s model has no published price row, so its figure is a guess. */
|
|
2101
|
+
approximate: boolean;
|
|
2102
|
+
/** Low bound on one trial’s wall clock, minutes, never above the run’s time cap. */
|
|
2103
|
+
minutesLow: number;
|
|
2104
|
+
/** High bound on one trial’s wall clock, minutes, never above the run’s time cap. */
|
|
2105
|
+
minutesHigh: number;
|
|
2106
|
+
/** True when even the low bound on the wall clock passes the run’s time cap, so the cap would stop the run before its last round. */
|
|
2107
|
+
hitsRunCap: boolean;
|
|
2108
|
+
/** One row per seat priced. */
|
|
2109
|
+
perSeat: SeatEstimate[];
|
|
2110
|
+
/** The plan the estimate was priced under. */
|
|
2111
|
+
plan: PlanLimits;
|
|
2112
|
+
/** How the account holds that plan. */
|
|
2113
|
+
entitlement: Entitlement;
|
|
2114
|
+
/** Who pays for each seat, in roster order: `user`, `sponsored`, or `guest` for an invited seat a peer’s agent plays on the peer’s keys. */
|
|
2115
|
+
funding: Array<'user' | 'sponsored' | 'guest'>;
|
|
2116
|
+
/** The spend cap a launch on this plan starts with, US dollars. */
|
|
2117
|
+
cap_default_usd: number;
|
|
2118
|
+
/** The highest spend cap this plan accepts, US dollars. */
|
|
2119
|
+
cap_max_usd: number;
|
|
2120
|
+
/** The spend cap this request would get, US dollars. */
|
|
2121
|
+
cap_usd: number;
|
|
2122
|
+
/** The plan’s agent turns per UTC month; null where it sets no cap. */
|
|
2123
|
+
agent_turns_limit: number | null;
|
|
2124
|
+
/** Agent turns played this month. */
|
|
2125
|
+
agent_turns_used: number;
|
|
2126
|
+
/** Agent turns held by runs still queued or playing. */
|
|
2127
|
+
agent_turns_reserved: number;
|
|
2128
|
+
/** Turns left this month before this launch’s own reservation; null where the plan sets no cap. */
|
|
2129
|
+
agent_turns_remaining: number | null;
|
|
2130
|
+
/** Runs the account holds queued or playing right now. */
|
|
2131
|
+
queued_runs: number;
|
|
2132
|
+
/** Runs the plan lets the account hold queued or playing at once. */
|
|
2133
|
+
queued_runs_limit: number;
|
|
2134
|
+
/** The wall-clock cap the run would get, minutes. */
|
|
2135
|
+
minutes_cap: number;
|
|
2136
|
+
/** What the owner’s OpenRouter key may still spend, when the roster has own-key OpenRouter seats and OpenRouter reported a number; otherwise null. */
|
|
2137
|
+
openrouter_balance_usd: number | null;
|
|
2138
|
+
/** Trials this launch would run; 1 is a single run. */
|
|
2139
|
+
trials: number;
|
|
2140
|
+
/** The plan’s ceiling on trials in one batch. */
|
|
2141
|
+
trials_max: number;
|
|
2142
|
+
/** Totals for the whole batch: what the launch commits to. */
|
|
2143
|
+
batch: EstimateBatch;
|
|
2144
|
+
/** What this many trials buys before any of it runs. Sizing guidance, not a promise: a finished batch reports the spread it showed. */
|
|
2145
|
+
precision: EstimatePrecision;
|
|
2146
|
+
}
|
|
2147
|
+
export interface ExperimentEstimateDesign {
|
|
2148
|
+
arms: number;
|
|
2149
|
+
trials: number;
|
|
2150
|
+
rule: StoppingRule;
|
|
2151
|
+
metric: 'fitness_index' | 'rank' | 'survived' | 'index_survival' | 'index_economy' | 'index_social' | 'index_adaptation' | 'index_competitiveness' | 'aggression_per_100_rounds' | 'trades_per_100_rounds' | 'circular_trades_per_100_rounds' | 'messages_per_100_rounds' | 'map_coverage' | 'witness_sensitivity' | 'compliance_rate' | 'compliance_latency' | 'injection_resistance' | 'output_tokens_per_turn' | 'said_evaluated' | 'aggression_between_seats_per_100_rounds' | 'trades_between_seats_per_100_rounds' | 'betrayals_per_100_rounds' | 'ring_share';
|
|
2152
|
+
focal: ExperimentReportFocal;
|
|
2153
|
+
detectable_gap: EstimateExperimentResponseDesignDetectableGap;
|
|
2154
|
+
usd_low: number;
|
|
2155
|
+
usd_high: number;
|
|
2156
|
+
minutes_low: number;
|
|
2157
|
+
minutes_high: number;
|
|
2158
|
+
slots: number;
|
|
2159
|
+
equivalence_margin: number | null;
|
|
2160
|
+
}
|
|
2161
|
+
export interface EstimateExperimentResponseDesignDetectableGap {
|
|
2162
|
+
seat_spread: number | null;
|
|
2163
|
+
sd_diff: number | null;
|
|
2164
|
+
gap: number | null;
|
|
2165
|
+
power: number;
|
|
2166
|
+
by_world: ExperimentReportDetectableGapByWorld | null;
|
|
2167
|
+
at_trials: EstimateExperimentResponseDesignDetectableGapAtTrial[];
|
|
2168
|
+
reference: SpreadReference | null;
|
|
2169
|
+
}
|
|
2170
|
+
export interface EstimateExperimentResponseDesignDetectableGapAtTrial {
|
|
2171
|
+
trials: number;
|
|
2172
|
+
gap: number | null;
|
|
2173
|
+
}
|
|
1304
2174
|
/** A party outside Daishi that was handed the design’s SHA-256 (never the text) when the design was stored: `rfc3161`, a timestamp authority whose signed reply states the time (`attested_at_ms`, from its own clock), or `opentimestamps`, the public calendars, whose proof is `pending` until a Bitcoin block includes it and then `anchored` in `bitcoin_block`. `created_at_ms` is when this server received the proof. Once a trial is published, the design’s public page links each proof file (`.tsr` or `.ots`, as `proof_format` says) for checking with `openssl ts -verify` or `ots verify`. */
|
|
1305
2175
|
export interface DesignWitness {
|
|
1306
2176
|
kind: 'opentimestamps' | 'rfc3161';
|
|
@@ -1325,6 +2195,168 @@ export interface Study {
|
|
|
1325
2195
|
published: number;
|
|
1326
2196
|
pending: number;
|
|
1327
2197
|
}
|
|
2198
|
+
export interface RunLogsResponseFile {
|
|
2199
|
+
file: string;
|
|
2200
|
+
bytes: number;
|
|
2201
|
+
chunks: number;
|
|
2202
|
+
}
|
|
2203
|
+
export interface SeatReport {
|
|
2204
|
+
/** The seat’s name. */
|
|
2205
|
+
name: string;
|
|
2206
|
+
/** The seat’s model id. */
|
|
2207
|
+
model: string;
|
|
2208
|
+
/** Who drove the seat: `studio` the reference harness on the owner’s configuration, `guest` an invited agent on its own keys. */
|
|
2209
|
+
driver: 'studio' | 'guest';
|
|
2210
|
+
/** How the seat ended in the archive; null when the archive has not landed or the seat never played. */
|
|
2211
|
+
end_status: 'active' | 'dormant' | 'dead' | null;
|
|
2212
|
+
/** The harness that played the seat. Null on a guest seat and on a run that has not launched. */
|
|
2213
|
+
harness: RunSeatsResponseSeatHarness | null;
|
|
2214
|
+
/** What the seat said when asked after its epilogue: evidence of what it said, not of what it believed. Null until the harness reports it, and always null on a guest seat. */
|
|
2215
|
+
debrief: RunSeatsResponseSeatDebrief | null;
|
|
2216
|
+
/** A scan for turns on which the seat spoke of being evaluated or observed unprompted. A screen for a few phrasings, not a measure of what the seat believed. Null until reported. */
|
|
2217
|
+
voiced: RunSeatsResponseSeatVoiced | null;
|
|
2218
|
+
/** Rounds the seat forfeited, from the match’s own events. Null when the run has no match yet. */
|
|
2219
|
+
forfeits: RunSeatsResponseSeatForfeits | null;
|
|
2220
|
+
/** The meter’s own counts. Null on a guest seat, which is not metered. */
|
|
2221
|
+
calls: RunSeatsResponseSeatCalls | null;
|
|
2222
|
+
/** Run health, two rate limits kept apart. Null on a guest seat and on a run metered before health was recorded. */
|
|
2223
|
+
health: RunSeatsResponseSeatHealth | null;
|
|
2224
|
+
/** The seat’s trajectory file, while the plan still keeps it; read it with the run log endpoint. */
|
|
2225
|
+
trajectory: RunSeatsResponseSeatTrajectory | null;
|
|
2226
|
+
}
|
|
2227
|
+
/** The harness that played the seat. Null on a guest seat and on a run that has not launched. */
|
|
2228
|
+
export interface RunSeatsResponseSeatHarness {
|
|
2229
|
+
/** The harness version. */
|
|
2230
|
+
version: string | null;
|
|
2231
|
+
/** The scaffold identity the harness reported. */
|
|
2232
|
+
scaffold: string | null;
|
|
2233
|
+
/** The prompt version the seat played on. */
|
|
2234
|
+
prompt_version: string | null;
|
|
2235
|
+
/** The frame the seat played under. */
|
|
2236
|
+
frame: string | null;
|
|
2237
|
+
/** Where these came from: `trajectory` the seat’s own log header, `archive` what the match recorded at launch. */
|
|
2238
|
+
source: 'trajectory' | 'archive';
|
|
2239
|
+
}
|
|
2240
|
+
/** What the seat said when asked after its epilogue: evidence of what it said, not of what it believed. Null until the harness reports it, and always null on a guest seat. */
|
|
2241
|
+
export interface RunSeatsResponseSeatDebrief {
|
|
2242
|
+
/** False when no debrief landed; the answers are then null and `note` says why. */
|
|
2243
|
+
asked: boolean;
|
|
2244
|
+
/** Its answer to whether it believed the match was an evaluation of it. */
|
|
2245
|
+
believed_evaluation: 'yes' | 'no' | 'unsure' | 'unparsed' | null;
|
|
2246
|
+
/** Its answer to whether that changed its play. */
|
|
2247
|
+
changed_play: 'yes' | 'no' | 'unsure' | 'unparsed' | null;
|
|
2248
|
+
/** The cues it named. */
|
|
2249
|
+
cues: string[];
|
|
2250
|
+
/** How it said its play changed; null where it gave none. */
|
|
2251
|
+
how: string | null;
|
|
2252
|
+
/** Why no debrief landed, when `asked` is false. */
|
|
2253
|
+
note: string | null;
|
|
2254
|
+
}
|
|
2255
|
+
/** A scan for turns on which the seat spoke of being evaluated or observed unprompted. A screen for a few phrasings, not a measure of what the seat believed. Null until reported. */
|
|
2256
|
+
export interface RunSeatsResponseSeatVoiced {
|
|
2257
|
+
/** Turns the scan flagged. */
|
|
2258
|
+
turns: number;
|
|
2259
|
+
/** Turns the scan read. */
|
|
2260
|
+
turns_scanned: number;
|
|
2261
|
+
/** Whether the scan flagged the seat’s epilogue; null where that is not recorded. */
|
|
2262
|
+
epilogue: boolean | null;
|
|
2263
|
+
/** The scan’s version. */
|
|
2264
|
+
scan_version: string;
|
|
2265
|
+
/** Flagged turns by what they said; a turn counts once per category. Null on a tally from before the split. */
|
|
2266
|
+
by_category: RunSeatsResponseSeatVoicedByCategory | null;
|
|
2267
|
+
}
|
|
2268
|
+
/** Flagged turns by what they said; a turn counts once per category. Null on a tally from before the split. */
|
|
2269
|
+
export interface RunSeatsResponseSeatVoicedByCategory {
|
|
2270
|
+
/** Turns that called the match a test or evaluation. */
|
|
2271
|
+
evaluation: number;
|
|
2272
|
+
/** Turns that said it was watched or scored. */
|
|
2273
|
+
observed: number;
|
|
2274
|
+
/** Turns that said nothing real was at stake. */
|
|
2275
|
+
stakes: number;
|
|
2276
|
+
}
|
|
2277
|
+
/** Rounds the seat forfeited, from the match’s own events. Null when the run has no match yet. */
|
|
2278
|
+
export interface RunSeatsResponseSeatForfeits {
|
|
2279
|
+
/** Rounds forfeited. */
|
|
2280
|
+
total: number;
|
|
2281
|
+
/** Those rounds by cause. */
|
|
2282
|
+
by_cause: RunSeatsResponseSeatForfeitsByCause;
|
|
2283
|
+
/** Each forfeited round, oldest first, up to 100. */
|
|
2284
|
+
rounds: RunSeatsResponseSeatForfeitsRound[];
|
|
2285
|
+
/** True when the list stops short of every forfeited round. The counts still cover them all. */
|
|
2286
|
+
rounds_truncated: boolean;
|
|
2287
|
+
}
|
|
2288
|
+
/** Those rounds by cause. */
|
|
2289
|
+
export interface RunSeatsResponseSeatForfeitsByCause {
|
|
2290
|
+
/** Rounds the seat spent on a tool that does not take a turn. */
|
|
2291
|
+
free_tool: number;
|
|
2292
|
+
/** Rounds whose tool call failed. */
|
|
2293
|
+
refused_call: number;
|
|
2294
|
+
/** Rounds with no turn in the seat’s trajectory. */
|
|
2295
|
+
no_turn: number;
|
|
2296
|
+
/** Rounds forfeited for any other cause. */
|
|
2297
|
+
other: number;
|
|
2298
|
+
}
|
|
2299
|
+
export interface RunSeatsResponseSeatForfeitsRound {
|
|
2300
|
+
/** The round. */
|
|
2301
|
+
tick: number;
|
|
2302
|
+
/** Why it was forfeited. */
|
|
2303
|
+
cause: 'free_tool' | 'refused_call' | 'no_turn' | 'other';
|
|
2304
|
+
/** The action the trajectory shows at that round; null when no turn was recorded. */
|
|
2305
|
+
action: string | null;
|
|
2306
|
+
}
|
|
2307
|
+
/** The meter’s own counts. Null on a guest seat, which is not metered. */
|
|
2308
|
+
export interface RunSeatsResponseSeatCalls {
|
|
2309
|
+
/** Model calls the seat made. */
|
|
2310
|
+
model_calls: number;
|
|
2311
|
+
/** Play turns it took; null where the meter did not record them. */
|
|
2312
|
+
turns: number | null;
|
|
2313
|
+
/** Turns lost to a failed provider call. */
|
|
2314
|
+
error_turns: number;
|
|
2315
|
+
/** The error the seat’s agent exited on; null where it recorded none. */
|
|
2316
|
+
exited_early: string | null;
|
|
2317
|
+
/** Rounds the seat sat out while dormant. */
|
|
2318
|
+
sat_out_dormant: number;
|
|
2319
|
+
/** Calls by the model that answered, as reported; null where none was reported. */
|
|
2320
|
+
served_models: JsonObject | null;
|
|
2321
|
+
/** Calls by the provider that answered, as reported; null where none was reported. */
|
|
2322
|
+
served_by: JsonObject | null;
|
|
2323
|
+
}
|
|
2324
|
+
/** Run health, two rate limits kept apart. Null on a guest seat and on a run metered before health was recorded. */
|
|
2325
|
+
export interface RunSeatsResponseSeatHealth {
|
|
2326
|
+
/** What the world refused of the seat’s own actions. */
|
|
2327
|
+
world_rejections: RunSeatsResponseSeatHealthWorldRejections;
|
|
2328
|
+
/** Provider retries the harness rode out; null where it reported none. */
|
|
2329
|
+
provider_retries: RunSeatsResponseSeatHealthProviderRetries | null;
|
|
2330
|
+
}
|
|
2331
|
+
/** What the world refused of the seat’s own actions. */
|
|
2332
|
+
export interface RunSeatsResponseSeatHealthWorldRejections {
|
|
2333
|
+
/** Actions past the seat’s per-round budget. */
|
|
2334
|
+
turn_budget: number;
|
|
2335
|
+
/** Actions sent faster than the world’s pace floor. */
|
|
2336
|
+
pace: number;
|
|
2337
|
+
/** Actions the seat could not take. */
|
|
2338
|
+
invalid: number;
|
|
2339
|
+
}
|
|
2340
|
+
/** Provider retries the harness rode out; null where it reported none. */
|
|
2341
|
+
export interface RunSeatsResponseSeatHealthProviderRetries {
|
|
2342
|
+
/** Calls that needed a retry. */
|
|
2343
|
+
calls: number;
|
|
2344
|
+
/** Retries in all. */
|
|
2345
|
+
retries: number;
|
|
2346
|
+
/** Retries by cause. */
|
|
2347
|
+
causes: JsonObject;
|
|
2348
|
+
/** Time spent waiting between retries, ms. */
|
|
2349
|
+
wait_ms: number;
|
|
2350
|
+
}
|
|
2351
|
+
/** The seat’s trajectory file, while the plan still keeps it; read it with the run log endpoint. */
|
|
2352
|
+
export interface RunSeatsResponseSeatTrajectory {
|
|
2353
|
+
/** The file’s name. */
|
|
2354
|
+
file: string;
|
|
2355
|
+
/** Lines in the file. */
|
|
2356
|
+
lines: number;
|
|
2357
|
+
/** The file’s size in bytes. */
|
|
2358
|
+
bytes: number;
|
|
2359
|
+
}
|
|
1328
2360
|
export interface CreateSetBodySetup {
|
|
1329
2361
|
/** 1 to 32 characters of a-z, 0-9, _ or -, starting with a letter or digit. Fixed once created. */
|
|
1330
2362
|
key: string;
|
|
@@ -1345,7 +2377,7 @@ export declare abstract class Operations {
|
|
|
1345
2377
|
*
|
|
1346
2378
|
* @see https://daishi.ai/docs/developer/rest#ep-index
|
|
1347
2379
|
*/
|
|
1348
|
-
index(): Promise<
|
|
2380
|
+
index(): Promise<IndexResponse>;
|
|
1349
2381
|
/**
|
|
1350
2382
|
* OpenAPI document.
|
|
1351
2383
|
*
|
|
@@ -1361,7 +2393,7 @@ export declare abstract class Operations {
|
|
|
1361
2393
|
*
|
|
1362
2394
|
* @see https://daishi.ai/docs/developer/rest#ep-me
|
|
1363
2395
|
*/
|
|
1364
|
-
me(): Promise<
|
|
2396
|
+
me(): Promise<MeResponse>;
|
|
1365
2397
|
/**
|
|
1366
2398
|
* Scenario schema.
|
|
1367
2399
|
*
|
|
@@ -1377,7 +2409,7 @@ export declare abstract class Operations {
|
|
|
1377
2409
|
*
|
|
1378
2410
|
* @see https://daishi.ai/docs/developer/rest#ep-library-scenarios
|
|
1379
2411
|
*/
|
|
1380
|
-
libraryScenarios(): Promise<
|
|
2412
|
+
libraryScenarios(): Promise<LibraryScenariosResponse>;
|
|
1381
2413
|
/**
|
|
1382
2414
|
* Anchor bots.
|
|
1383
2415
|
*
|
|
@@ -1385,7 +2417,7 @@ export declare abstract class Operations {
|
|
|
1385
2417
|
*
|
|
1386
2418
|
* @see https://daishi.ai/docs/developer/rest#ep-library-anchors
|
|
1387
2419
|
*/
|
|
1388
|
-
libraryAnchors(): Promise<
|
|
2420
|
+
libraryAnchors(): Promise<LibraryAnchorsResponse>;
|
|
1389
2421
|
/**
|
|
1390
2422
|
* Studio templates.
|
|
1391
2423
|
*
|
|
@@ -1393,7 +2425,7 @@ export declare abstract class Operations {
|
|
|
1393
2425
|
*
|
|
1394
2426
|
* @see https://daishi.ai/docs/developer/rest#ep-templates
|
|
1395
2427
|
*/
|
|
1396
|
-
templates(): Promise<
|
|
2428
|
+
templates(): Promise<TemplatesResponse>;
|
|
1397
2429
|
/**
|
|
1398
2430
|
* Validate a scenario.
|
|
1399
2431
|
*
|
|
@@ -1401,7 +2433,7 @@ export declare abstract class Operations {
|
|
|
1401
2433
|
*
|
|
1402
2434
|
* @see https://daishi.ai/docs/developer/rest#ep-validate
|
|
1403
2435
|
*/
|
|
1404
|
-
validate(body: ScenarioBody): Promise<
|
|
2436
|
+
validate(body: ScenarioBody): Promise<ValidateResponse>;
|
|
1405
2437
|
/**
|
|
1406
2438
|
* List your scenarios.
|
|
1407
2439
|
*
|
|
@@ -1489,7 +2521,7 @@ export declare abstract class Operations {
|
|
|
1489
2521
|
*
|
|
1490
2522
|
* @see https://daishi.ai/docs/developer/rest#ep-estimate
|
|
1491
2523
|
*/
|
|
1492
|
-
estimate(body: RunBody): Promise<
|
|
2524
|
+
estimate(body: RunBody): Promise<EstimateResponse>;
|
|
1493
2525
|
/**
|
|
1494
2526
|
* Launch a run.
|
|
1495
2527
|
*
|
|
@@ -1524,7 +2556,7 @@ export declare abstract class Operations {
|
|
|
1524
2556
|
*
|
|
1525
2557
|
* @see https://daishi.ai/docs/developer/rest#ep-usage
|
|
1526
2558
|
*/
|
|
1527
|
-
usage(): Promise<
|
|
2559
|
+
usage(): Promise<UsageResponse>;
|
|
1528
2560
|
/**
|
|
1529
2561
|
* Your models.
|
|
1530
2562
|
*
|
|
@@ -1532,7 +2564,7 @@ export declare abstract class Operations {
|
|
|
1532
2564
|
*
|
|
1533
2565
|
* @see https://daishi.ai/docs/developer/rest#ep-models
|
|
1534
2566
|
*/
|
|
1535
|
-
models(): Promise<
|
|
2567
|
+
models(): Promise<ModelsResponse>;
|
|
1536
2568
|
/**
|
|
1537
2569
|
* Live worlds.
|
|
1538
2570
|
*
|
|
@@ -1540,7 +2572,7 @@ export declare abstract class Operations {
|
|
|
1540
2572
|
*
|
|
1541
2573
|
* @see https://daishi.ai/docs/developer/rest#ep-live
|
|
1542
2574
|
*/
|
|
1543
|
-
live(): Promise<
|
|
2575
|
+
live(): Promise<LiveResponse>;
|
|
1544
2576
|
/**
|
|
1545
2577
|
* Get a batch report.
|
|
1546
2578
|
*
|
|
@@ -1556,7 +2588,7 @@ export declare abstract class Operations {
|
|
|
1556
2588
|
*
|
|
1557
2589
|
* @see https://daishi.ai/docs/developer/rest#ep-estimate-experiment
|
|
1558
2590
|
*/
|
|
1559
|
-
estimateExperiment(body: ExperimentBody): Promise<
|
|
2591
|
+
estimateExperiment(body: ExperimentBody): Promise<EstimateExperimentResponse>;
|
|
1560
2592
|
/**
|
|
1561
2593
|
* Create an experiment.
|
|
1562
2594
|
*
|
|
@@ -1692,7 +2724,7 @@ export declare abstract class Operations {
|
|
|
1692
2724
|
*
|
|
1693
2725
|
* @see https://daishi.ai/docs/developer/rest#ep-run-logs
|
|
1694
2726
|
*/
|
|
1695
|
-
runLogs(id: string): Promise<
|
|
2727
|
+
runLogs(id: string): Promise<RunLogsResponse>;
|
|
1696
2728
|
/**
|
|
1697
2729
|
* Read a run log.
|
|
1698
2730
|
*
|
|
@@ -1708,7 +2740,7 @@ export declare abstract class Operations {
|
|
|
1708
2740
|
*
|
|
1709
2741
|
* @see https://daishi.ai/docs/developer/rest#ep-run-seats
|
|
1710
2742
|
*/
|
|
1711
|
-
runSeats(id: string): Promise<
|
|
2743
|
+
runSeats(id: string): Promise<RunSeatsResponse>;
|
|
1712
2744
|
/**
|
|
1713
2745
|
* List a run’s guest seats.
|
|
1714
2746
|
*
|
|
@@ -1716,7 +2748,7 @@ export declare abstract class Operations {
|
|
|
1716
2748
|
*
|
|
1717
2749
|
* @see https://daishi.ai/docs/developer/rest#ep-list-invites
|
|
1718
2750
|
*/
|
|
1719
|
-
listInvites(id: string): Promise<
|
|
2751
|
+
listInvites(id: string): Promise<ListInvitesResponse>;
|
|
1720
2752
|
/**
|
|
1721
2753
|
* Extend the signup window.
|
|
1722
2754
|
*
|
|
@@ -1724,7 +2756,7 @@ export declare abstract class Operations {
|
|
|
1724
2756
|
*
|
|
1725
2757
|
* @see https://daishi.ai/docs/developer/rest#ep-extend-invites
|
|
1726
2758
|
*/
|
|
1727
|
-
extendInvites(id: string, body: ExtendInvitesBody): Promise<
|
|
2759
|
+
extendInvites(id: string, body: ExtendInvitesBody): Promise<ExtendInvitesResponse>;
|
|
1728
2760
|
/**
|
|
1729
2761
|
* Regenerate a seat’s link.
|
|
1730
2762
|
*
|
|
@@ -1732,7 +2764,7 @@ export declare abstract class Operations {
|
|
|
1732
2764
|
*
|
|
1733
2765
|
* @see https://daishi.ai/docs/developer/rest#ep-regenerate-invite
|
|
1734
2766
|
*/
|
|
1735
|
-
regenerateInvite(id: string, inviteId: string): Promise<
|
|
2767
|
+
regenerateInvite(id: string, inviteId: string): Promise<RegenerateInviteResponse>;
|
|
1736
2768
|
/**
|
|
1737
2769
|
* Withdraw a seat.
|
|
1738
2770
|
*
|
|
@@ -1740,7 +2772,7 @@ export declare abstract class Operations {
|
|
|
1740
2772
|
*
|
|
1741
2773
|
* @see https://daishi.ai/docs/developer/rest#ep-revoke-invite
|
|
1742
2774
|
*/
|
|
1743
|
-
revokeInvite(id: string, inviteId: string): Promise<
|
|
2775
|
+
revokeInvite(id: string, inviteId: string): Promise<RevokeInviteResponse>;
|
|
1744
2776
|
/**
|
|
1745
2777
|
* List run sets.
|
|
1746
2778
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Operations, type ErrorCode, type GetBatchResponse, type GetExperimentResponse, type GetRunResponse, type Method, type RequestParts } from './generated.js';
|
|
2
2
|
export * from './generated.js';
|
|
3
|
-
export declare const VERSION = "0.2.
|
|
3
|
+
export declare const VERSION = "0.2.28";
|
|
4
4
|
export declare const DEFAULT_BASE_URL = "https://daishi.ai/api/v1";
|
|
5
5
|
export interface DaishiOptions {
|
|
6
6
|
/** A Studio access token (`dsk_...`). Default: the `DAISHI_TOKEN` environment variable. */
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Operations } from './generated.js';
|
|
2
2
|
export * from './generated.js';
|
|
3
|
-
export const VERSION = '0.2.
|
|
3
|
+
export const VERSION = '0.2.28';
|
|
4
4
|
export const DEFAULT_BASE_URL = 'https://daishi.ai/api/v1';
|
|
5
5
|
/** A refusal from the API, or a transport failure after the retries ran out. */
|
|
6
6
|
export class DaishiError extends Error {
|
package/package.json
CHANGED