plato-sandbox-sdk 1.1.21 → 1.1.23
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/chronos/index.d.mts +667 -19
- package/dist/chronos/index.d.ts +667 -19
- package/dist/chronos/index.js +552 -10
- package/dist/chronos/index.mjs +7 -1
- package/dist/{chunk-SRQDU44B.mjs → chunk-IMC36463.mjs} +96 -10
- package/dist/{chunk-YMI3X52F.mjs → chunk-IV4FE4OZ.mjs} +552 -10
- package/dist/index.d.mts +66 -11
- package/dist/index.d.ts +66 -11
- package/dist/index.js +644 -20
- package/dist/index.mjs +2 -2
- package/dist/plato/index.d.mts +564 -54
- package/dist/plato/index.d.ts +564 -54
- package/dist/plato/index.js +96 -10
- package/dist/plato/index.mjs +3 -1
- package/package.json +1 -1
- package/src/chronos/api/admin.ts +57 -1
- package/src/chronos/api/events.ts +34 -2
- package/src/chronos/api/experiments.ts +225 -0
- package/src/chronos/api/index.ts +3 -0
- package/src/chronos/api/jobs.ts +51 -6
- package/src/chronos/api/otel.ts +39 -0
- package/src/chronos/api/saved_filters.ts +98 -0
- package/src/chronos/api/sessions.ts +90 -0
- package/src/chronos/api/starred_checkpoints.ts +142 -0
- package/src/chronos/api/workspace_repos.ts +137 -0
- package/src/chronos/client.ts +9 -0
- package/src/chronos/models/BranchInfo.ts +1 -0
- package/src/chronos/models/CompleteSessionRequest.ts +1 -1
- package/src/chronos/models/DVCManifestEntry.ts +22 -0
- package/src/chronos/models/DirectoryListing.ts +2 -2
- package/src/chronos/models/DownstreamSessionEntry.ts +14 -0
- package/src/chronos/models/DownstreamSessionsResponse.ts +12 -0
- package/src/chronos/models/ExperimentFileCreateRequest.ts +15 -0
- package/src/chronos/models/ExperimentFileListResponse.ts +12 -0
- package/src/chronos/models/ExperimentFileResponse.ts +20 -0
- package/src/chronos/models/ExperimentFileUpdateRequest.ts +12 -0
- package/src/chronos/models/ExperimentFileVersionCreateRequest.ts +12 -0
- package/src/chronos/models/ExperimentSessionSummary.ts +17 -0
- package/src/chronos/models/ExperimentVersionResponse.ts +20 -0
- package/src/chronos/models/FeatureFlagCheckResult.ts +12 -0
- package/src/chronos/models/LaunchJobRequest.ts +3 -1
- package/src/chronos/models/OTelSpan.ts +1 -0
- package/src/chronos/models/OTelSpanListResponse.ts +1 -0
- package/src/chronos/models/OTelTraceResponse.ts +1 -0
- package/src/chronos/models/PreviewLaunchConfig.ts +13 -0
- package/src/chronos/models/SavedFilterCreate.ts +11 -0
- package/src/chronos/models/SavedFilterListResponse.ts +12 -0
- package/src/chronos/models/SavedFilterResponse.ts +13 -0
- package/src/chronos/models/SessionLineageEntry.ts +15 -0
- package/src/chronos/models/SessionLineageResponse.ts +12 -0
- package/src/chronos/models/SessionLogsResponse.ts +4 -1
- package/src/chronos/models/SessionResponse.ts +1 -0
- package/src/chronos/models/StarredCheckpointCreate.ts +15 -0
- package/src/chronos/models/StarredCheckpointListResponse.ts +12 -0
- package/src/chronos/models/StarredCheckpointResponse.ts +22 -0
- package/src/chronos/models/StarredCheckpointUpdate.ts +10 -0
- package/src/chronos/models/UpdateNotesRequest.ts +11 -0
- package/src/chronos/models/UpdateSpanNoteRequest.ts +23 -0
- package/src/chronos/models/WorkspaceRefSearchResponse.ts +12 -0
- package/src/chronos/models/WorkspaceRefSearchResult.ts +16 -0
- package/src/chronos/models/WorldSchemaResponse.ts +1 -1
- package/src/chronos/models/index.ts +25 -1
- package/src/plato/api/v1/organization.ts +1 -1
- package/src/plato/api/v1/session.ts +0 -8
- package/src/plato/api/v1/testcases.ts +2 -2
- package/src/plato/api/v2/index.ts +1 -0
- package/src/plato/api/v2/sessions.ts +7 -1
- package/src/plato/api/v2/testcases.ts +129 -0
- package/src/plato/client.ts +3 -0
- package/src/plato/models/AmbiguousSessionsError.ts +14 -0
- package/src/plato/models/AppApiV1TestcaseRoutesGenerateScoringConfigFromSessionsRequest.ts +12 -0
- package/src/plato/models/AppApiV2SchemasSessionEvaluateResponse.ts +17 -1
- package/src/plato/models/AppApiV2TestcaseRoutesGenerateScoringConfigFromSessionsRequest.ts +29 -0
- package/src/plato/models/AutoVerifyRequest.ts +1 -0
- package/src/plato/models/BaseScoringError.ts +12 -0
- package/src/plato/models/ConfigGenerationFailedError.ts +17 -0
- package/src/plato/models/{CreateSessionFromTask.ts → CreateSessionFromTestCase.ts} +5 -5
- package/src/plato/models/CreateTestCaseRequest.ts +57 -0
- package/src/plato/models/CreateTestCaseResponse.ts +11 -0
- package/src/plato/models/GenerateScoringConfigFromSessionsResponse.ts +16 -0
- package/src/plato/models/GenerateScoringConfigRequest.ts +19 -0
- package/src/plato/models/GenerateScoringConfigResponse.ts +14 -0
- package/src/plato/models/HumanResultsResponse.ts +21 -0
- package/src/plato/models/{ModelsScoringConfigJSONSchemaDraft7.ts → JSONSchemaDraft7.ts} +4 -4
- package/src/plato/models/JsonSchemaScoringConfig.ts +13 -0
- package/src/plato/models/LLMResponseError.ts +14 -0
- package/src/plato/models/MaxIterationsExceededError.ts +15 -0
- package/src/plato/models/MutationLengthMismatchError.ts +14 -0
- package/src/plato/models/NoCorrectMutationsError.ts +13 -0
- package/src/plato/models/OverrideScore.ts +12 -0
- package/src/plato/models/PerSimIgnoreConfig.ts +14 -0
- package/src/plato/models/PerSimScoreResult.ts +17 -0
- package/src/plato/models/PerSimScoringConfig.ts +13 -0
- package/src/plato/models/ScoreDetail.ts +10 -0
- package/src/plato/models/ScoreWithConfigRequest.ts +2 -2
- package/src/plato/models/ScoringServiceError.ts +14 -0
- package/src/plato/models/StateMutationMatchScoringConfig.ts +13 -0
- package/src/plato/models/TestCaseCreateRequest.ts +2 -2
- package/src/plato/models/TestCaseUpdateRequest.ts +2 -2
- package/src/plato/models/UsedMutationSessionInput.ts +12 -0
- package/src/plato/models/UsedMutationSessionOutput.ts +12 -0
- package/src/plato/models/V2ScoringConfigInput.ts +24 -0
- package/src/plato/models/V2ScoringConfigOutput.ts +24 -0
- package/src/plato/models/V2ScoringGenerationResultInput.ts +35 -0
- package/src/plato/models/V2ScoringGenerationResultOutput.ts +35 -0
- package/src/plato/models/index.ts +31 -4
- package/src/chronos/models/FileEntry.ts +0 -12
- package/src/plato/models/DbModelsTestCaseModelJSONSchemaDraft7.ts +0 -18
- package/src/plato/models/GenerateScoringConfigFromSessionsRequest.ts +0 -11
package/dist/chronos/index.d.mts
CHANGED
|
@@ -224,6 +224,7 @@ interface BranchInfo {
|
|
|
224
224
|
last_step: string;
|
|
225
225
|
num_refs: number;
|
|
226
226
|
updated_at: string;
|
|
227
|
+
tags: string[];
|
|
227
228
|
}
|
|
228
229
|
|
|
229
230
|
/**
|
|
@@ -305,7 +306,7 @@ interface CloseSessionResponse {
|
|
|
305
306
|
* Auto-generated - do not edit
|
|
306
307
|
*/
|
|
307
308
|
interface CompleteSessionRequest {
|
|
308
|
-
/** Final status: 'completed' or '
|
|
309
|
+
/** Final status: 'completed', 'failed', or 'needs_human_annotation' */
|
|
309
310
|
status: string;
|
|
310
311
|
/** Exit code from world runner */
|
|
311
312
|
exit_code?: number | null;
|
|
@@ -377,6 +378,28 @@ interface CreatorsListResponse {
|
|
|
377
378
|
creators: SessionCreator[];
|
|
378
379
|
}
|
|
379
380
|
|
|
381
|
+
/**
|
|
382
|
+
* DVCManifestEntry
|
|
383
|
+
* A single entry in a DVC .dir manifest JSON.
|
|
384
|
+
|
|
385
|
+
This is the canonical schema for entries produced by the Python SDK
|
|
386
|
+
(``DVCFileEntry``) and consumed by the API. The raw manifest is
|
|
387
|
+
returned to the frontend, which is responsible for filtering out
|
|
388
|
+
directory entries (``isdir=True``) during rendering.
|
|
389
|
+
*
|
|
390
|
+
* Auto-generated - do not edit
|
|
391
|
+
*/
|
|
392
|
+
interface DVCManifestEntry {
|
|
393
|
+
relpath: string;
|
|
394
|
+
md5?: string | null;
|
|
395
|
+
size?: number | null;
|
|
396
|
+
mode?: number | null;
|
|
397
|
+
isdir?: boolean | null;
|
|
398
|
+
isexec?: boolean | null;
|
|
399
|
+
islink?: boolean | null;
|
|
400
|
+
symlink_target?: string | null;
|
|
401
|
+
}
|
|
402
|
+
|
|
380
403
|
/**
|
|
381
404
|
* DirectoryListing
|
|
382
405
|
* Files in a single DVC-tracked directory.
|
|
@@ -386,10 +409,35 @@ interface CreatorsListResponse {
|
|
|
386
409
|
|
|
387
410
|
interface DirectoryListing {
|
|
388
411
|
name: string;
|
|
389
|
-
|
|
412
|
+
entries: DVCManifestEntry[];
|
|
390
413
|
total_size?: number | null;
|
|
391
414
|
}
|
|
392
415
|
|
|
416
|
+
/**
|
|
417
|
+
* DownstreamSessionEntry
|
|
418
|
+
* A session that consumed a given workspace ref.
|
|
419
|
+
*
|
|
420
|
+
* Auto-generated - do not edit
|
|
421
|
+
*/
|
|
422
|
+
interface DownstreamSessionEntry {
|
|
423
|
+
session_public_id: string;
|
|
424
|
+
step_name: string;
|
|
425
|
+
repo_name: string;
|
|
426
|
+
repo_id: string;
|
|
427
|
+
created_at: string;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* DownstreamSessionsResponse
|
|
432
|
+
* Sessions that forked/resumed from a given ref.
|
|
433
|
+
*
|
|
434
|
+
* Auto-generated - do not edit
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
interface DownstreamSessionsResponse {
|
|
438
|
+
sessions: DownstreamSessionEntry[];
|
|
439
|
+
}
|
|
440
|
+
|
|
393
441
|
/**
|
|
394
442
|
* EnvInfo
|
|
395
443
|
* Information about an environment in the preview session.
|
|
@@ -418,15 +466,119 @@ interface EnvInfoResponse {
|
|
|
418
466
|
}
|
|
419
467
|
|
|
420
468
|
/**
|
|
421
|
-
*
|
|
422
|
-
*
|
|
469
|
+
* ExperimentFileCreateRequest
|
|
470
|
+
* Create a new experiment file and its first version.
|
|
423
471
|
*
|
|
424
472
|
* Auto-generated - do not edit
|
|
425
473
|
*/
|
|
426
|
-
interface
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
474
|
+
interface ExperimentFileCreateRequest {
|
|
475
|
+
name: string;
|
|
476
|
+
description?: string | null;
|
|
477
|
+
world_key?: string | null;
|
|
478
|
+
tags?: string[] | null;
|
|
479
|
+
notes?: string | null;
|
|
480
|
+
config_json?: Record<string, unknown> | null;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* ExperimentFileListResponse
|
|
485
|
+
* List of experiment files.
|
|
486
|
+
*
|
|
487
|
+
* Auto-generated - do not edit
|
|
488
|
+
*/
|
|
489
|
+
|
|
490
|
+
interface ExperimentFileListResponse {
|
|
491
|
+
files: ExperimentFileResponse[];
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* ExperimentFileResponse
|
|
496
|
+
* Versioned experiment file payload.
|
|
497
|
+
*
|
|
498
|
+
* Auto-generated - do not edit
|
|
499
|
+
*/
|
|
500
|
+
|
|
501
|
+
interface ExperimentFileResponse {
|
|
502
|
+
public_id: string;
|
|
503
|
+
name: string;
|
|
504
|
+
description?: string | null;
|
|
505
|
+
world_key: string;
|
|
506
|
+
created_at: string;
|
|
507
|
+
updated_at: string;
|
|
508
|
+
created_by?: UserInfo | null;
|
|
509
|
+
latest_version?: ExperimentVersionResponse | null;
|
|
510
|
+
versions?: ExperimentVersionResponse[] | null;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
/**
|
|
514
|
+
* ExperimentFileUpdateRequest
|
|
515
|
+
* Update top-level experiment file metadata.
|
|
516
|
+
*
|
|
517
|
+
* Auto-generated - do not edit
|
|
518
|
+
*/
|
|
519
|
+
interface ExperimentFileUpdateRequest {
|
|
520
|
+
name?: string | null;
|
|
521
|
+
description?: string | null;
|
|
522
|
+
world_key?: string | null;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* ExperimentFileVersionCreateRequest
|
|
527
|
+
* Create a new immutable version for an experiment file.
|
|
528
|
+
*
|
|
529
|
+
* Auto-generated - do not edit
|
|
530
|
+
*/
|
|
531
|
+
interface ExperimentFileVersionCreateRequest {
|
|
532
|
+
tags?: string[] | null;
|
|
533
|
+
notes?: string | null;
|
|
534
|
+
config_json?: Record<string, unknown> | null;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* ExperimentSessionSummary
|
|
539
|
+
* Session attached to an experiment file version.
|
|
540
|
+
*
|
|
541
|
+
* Auto-generated - do not edit
|
|
542
|
+
*/
|
|
543
|
+
|
|
544
|
+
interface ExperimentSessionSummary {
|
|
545
|
+
session_id: string;
|
|
546
|
+
status: string;
|
|
547
|
+
created_at: string;
|
|
548
|
+
tags?: string[] | null;
|
|
549
|
+
total_cost_usd?: number | null;
|
|
550
|
+
created_by?: UserInfo | null;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* ExperimentVersionResponse
|
|
555
|
+
* Full experiment version payload for the frontend.
|
|
556
|
+
*
|
|
557
|
+
* Auto-generated - do not edit
|
|
558
|
+
*/
|
|
559
|
+
|
|
560
|
+
interface ExperimentVersionResponse {
|
|
561
|
+
public_id: string;
|
|
562
|
+
version_number: number;
|
|
563
|
+
tags?: string[] | null;
|
|
564
|
+
notes?: string | null;
|
|
565
|
+
created_at: string;
|
|
566
|
+
created_by?: UserInfo | null;
|
|
567
|
+
attached_session_count?: number | null;
|
|
568
|
+
config_json?: Record<string, unknown> | null;
|
|
569
|
+
attached_sessions?: ExperimentSessionSummary[] | null;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* FeatureFlagCheckResult
|
|
574
|
+
* Result of checking a feature flag.
|
|
575
|
+
*
|
|
576
|
+
* Auto-generated - do not edit
|
|
577
|
+
*/
|
|
578
|
+
interface FeatureFlagCheckResult {
|
|
579
|
+
flag: string;
|
|
580
|
+
enabled: boolean;
|
|
581
|
+
org_id: number;
|
|
430
582
|
}
|
|
431
583
|
|
|
432
584
|
/**
|
|
@@ -455,6 +607,8 @@ interface LaunchJobRequest {
|
|
|
455
607
|
allow_prerelease?: boolean | null;
|
|
456
608
|
/** Parent session ID for nested sessions */
|
|
457
609
|
parent_session_id?: string | null;
|
|
610
|
+
/** Optional preview-mode launch settings */
|
|
611
|
+
preview?: PreviewLaunchConfig | null;
|
|
458
612
|
}
|
|
459
613
|
|
|
460
614
|
/**
|
|
@@ -510,6 +664,7 @@ interface OTelSpan {
|
|
|
510
664
|
end_time_unix_nano?: number | null;
|
|
511
665
|
attributes?: Record<string, unknown> | null;
|
|
512
666
|
status?: Record<string, unknown> | null;
|
|
667
|
+
is_error?: boolean | null;
|
|
513
668
|
}
|
|
514
669
|
|
|
515
670
|
/**
|
|
@@ -522,6 +677,7 @@ interface OTelSpan {
|
|
|
522
677
|
interface OTelSpanListResponse {
|
|
523
678
|
events: OTelSpan[];
|
|
524
679
|
total_count?: number | null;
|
|
680
|
+
filtered_count?: number | null;
|
|
525
681
|
has_more?: boolean | null;
|
|
526
682
|
cursor?: string | null;
|
|
527
683
|
}
|
|
@@ -537,10 +693,24 @@ interface OTelTraceResponse {
|
|
|
537
693
|
session_id: string;
|
|
538
694
|
spans: OTelSpan[];
|
|
539
695
|
total_count?: number | null;
|
|
696
|
+
filtered_count?: number | null;
|
|
540
697
|
has_more?: boolean | null;
|
|
541
698
|
cursor?: string | null;
|
|
542
699
|
}
|
|
543
700
|
|
|
701
|
+
/**
|
|
702
|
+
* PreviewLaunchConfig
|
|
703
|
+
* Preview-specific launch settings.
|
|
704
|
+
*
|
|
705
|
+
* Auto-generated - do not edit
|
|
706
|
+
*/
|
|
707
|
+
interface PreviewLaunchConfig {
|
|
708
|
+
/** Run the world in preview mode with the preview entrypoint */
|
|
709
|
+
enabled?: boolean | null;
|
|
710
|
+
/** Preview lifetime in seconds (default: 10 minutes) */
|
|
711
|
+
timeout_seconds?: number | null;
|
|
712
|
+
}
|
|
713
|
+
|
|
544
714
|
/**
|
|
545
715
|
* PreviewResponse
|
|
546
716
|
* Response from launching a checkpoint preview.
|
|
@@ -640,6 +810,41 @@ interface SSOLoginRequest {
|
|
|
640
810
|
token: string;
|
|
641
811
|
}
|
|
642
812
|
|
|
813
|
+
/**
|
|
814
|
+
* SavedFilterCreate
|
|
815
|
+
* Request to create a saved filter preset.
|
|
816
|
+
*
|
|
817
|
+
* Auto-generated - do not edit
|
|
818
|
+
*/
|
|
819
|
+
interface SavedFilterCreate {
|
|
820
|
+
name: string;
|
|
821
|
+
filters: Record<string, string | string[] | null>;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* SavedFilterListResponse
|
|
826
|
+
* List of saved filter presets.
|
|
827
|
+
*
|
|
828
|
+
* Auto-generated - do not edit
|
|
829
|
+
*/
|
|
830
|
+
|
|
831
|
+
interface SavedFilterListResponse {
|
|
832
|
+
filters: SavedFilterResponse[];
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
/**
|
|
836
|
+
* SavedFilterResponse
|
|
837
|
+
* A single saved filter preset.
|
|
838
|
+
*
|
|
839
|
+
* Auto-generated - do not edit
|
|
840
|
+
*/
|
|
841
|
+
interface SavedFilterResponse {
|
|
842
|
+
id: number;
|
|
843
|
+
name: string;
|
|
844
|
+
filters: Record<string, string | string[] | null>;
|
|
845
|
+
created_at: string;
|
|
846
|
+
}
|
|
847
|
+
|
|
643
848
|
/**
|
|
644
849
|
* ServiceStatuses
|
|
645
850
|
* Status of connected services.
|
|
@@ -677,6 +882,32 @@ interface SessionEnvsResponse {
|
|
|
677
882
|
envs: EnvInfoResponse[];
|
|
678
883
|
}
|
|
679
884
|
|
|
885
|
+
/**
|
|
886
|
+
* SessionLineageEntry
|
|
887
|
+
* One entry in a session lineage chain.
|
|
888
|
+
*
|
|
889
|
+
* Auto-generated - do not edit
|
|
890
|
+
*/
|
|
891
|
+
interface SessionLineageEntry {
|
|
892
|
+
session_public_id: string;
|
|
893
|
+
step_name: string;
|
|
894
|
+
repo_name: string;
|
|
895
|
+
repo_id: string;
|
|
896
|
+
ref_public_id?: string | null;
|
|
897
|
+
created_at: string;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* SessionLineageResponse
|
|
902
|
+
* Ordered lineage chain for a session/workspace.
|
|
903
|
+
*
|
|
904
|
+
* Auto-generated - do not edit
|
|
905
|
+
*/
|
|
906
|
+
|
|
907
|
+
interface SessionLineageResponse {
|
|
908
|
+
lineage: SessionLineageEntry[];
|
|
909
|
+
}
|
|
910
|
+
|
|
680
911
|
/**
|
|
681
912
|
* SessionListResponse
|
|
682
913
|
* List of sessions response.
|
|
@@ -694,9 +925,11 @@ interface SessionListResponse {
|
|
|
694
925
|
*
|
|
695
926
|
* Auto-generated - do not edit
|
|
696
927
|
*/
|
|
928
|
+
|
|
697
929
|
interface SessionLogsResponse {
|
|
698
|
-
logs:
|
|
930
|
+
logs: OTelSpan[];
|
|
699
931
|
total_count?: number | null;
|
|
932
|
+
filtered_count?: number | null;
|
|
700
933
|
has_more?: boolean | null;
|
|
701
934
|
cursor?: string | null;
|
|
702
935
|
}
|
|
@@ -723,6 +956,7 @@ interface SessionResponse {
|
|
|
723
956
|
total_cost_usd?: number | null;
|
|
724
957
|
logs_url?: string | null;
|
|
725
958
|
tags?: string[] | null;
|
|
959
|
+
notes?: Record<string, unknown> | null;
|
|
726
960
|
created_by?: UserInfo | null;
|
|
727
961
|
parent_session_id?: string | null;
|
|
728
962
|
child_sessions?: ChildSessionSummary[] | null;
|
|
@@ -771,6 +1005,64 @@ interface SessionWorldInfo {
|
|
|
771
1005
|
config_schema?: Record<string, unknown> | null;
|
|
772
1006
|
}
|
|
773
1007
|
|
|
1008
|
+
/**
|
|
1009
|
+
* StarredCheckpointCreate
|
|
1010
|
+
* Request to star a checkpoint.
|
|
1011
|
+
*
|
|
1012
|
+
* Auto-generated - do not edit
|
|
1013
|
+
*/
|
|
1014
|
+
interface StarredCheckpointCreate {
|
|
1015
|
+
session_id: string;
|
|
1016
|
+
workspace: string;
|
|
1017
|
+
step?: number | null;
|
|
1018
|
+
step_name?: string | null;
|
|
1019
|
+
ref_public_id?: string | null;
|
|
1020
|
+
note?: string | null;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* StarredCheckpointListResponse
|
|
1025
|
+
* List of starred checkpoints.
|
|
1026
|
+
*
|
|
1027
|
+
* Auto-generated - do not edit
|
|
1028
|
+
*/
|
|
1029
|
+
|
|
1030
|
+
interface StarredCheckpointListResponse {
|
|
1031
|
+
checkpoints: StarredCheckpointResponse[];
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* StarredCheckpointResponse
|
|
1036
|
+
* A single starred checkpoint.
|
|
1037
|
+
*
|
|
1038
|
+
* Auto-generated - do not edit
|
|
1039
|
+
*/
|
|
1040
|
+
interface StarredCheckpointResponse {
|
|
1041
|
+
id: number;
|
|
1042
|
+
session_id: string;
|
|
1043
|
+
workspace: string;
|
|
1044
|
+
step: number | null;
|
|
1045
|
+
step_name: string | null;
|
|
1046
|
+
ref_public_id: string | null;
|
|
1047
|
+
note: string | null;
|
|
1048
|
+
session_tags?: string[] | null;
|
|
1049
|
+
created_by?: Record<string, string | null> | null;
|
|
1050
|
+
world_name?: string | null;
|
|
1051
|
+
world_version?: string | null;
|
|
1052
|
+
created_at: string;
|
|
1053
|
+
updated_at: string;
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* StarredCheckpointUpdate
|
|
1058
|
+
* Request to update a starred checkpoint's note.
|
|
1059
|
+
*
|
|
1060
|
+
* Auto-generated - do not edit
|
|
1061
|
+
*/
|
|
1062
|
+
interface StarredCheckpointUpdate {
|
|
1063
|
+
note?: string | null;
|
|
1064
|
+
}
|
|
1065
|
+
|
|
774
1066
|
/**
|
|
775
1067
|
* StatusResponse
|
|
776
1068
|
* Overall status response.
|
|
@@ -912,6 +1204,40 @@ interface TrajectoryWorldInfo {
|
|
|
912
1204
|
steps?: WorldStep[] | null;
|
|
913
1205
|
}
|
|
914
1206
|
|
|
1207
|
+
/**
|
|
1208
|
+
* UpdateNotesRequest
|
|
1209
|
+
* Request to update session notes (JSON blob).
|
|
1210
|
+
*
|
|
1211
|
+
* Auto-generated - do not edit
|
|
1212
|
+
*/
|
|
1213
|
+
interface UpdateNotesRequest {
|
|
1214
|
+
/** Structured notes JSON */
|
|
1215
|
+
notes?: Record<string, unknown> | null;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* UpdateSpanNoteRequest
|
|
1220
|
+
* Request to upsert a structured note for a specific trajectory span.
|
|
1221
|
+
*
|
|
1222
|
+
* Auto-generated - do not edit
|
|
1223
|
+
*/
|
|
1224
|
+
interface UpdateSpanNoteRequest {
|
|
1225
|
+
/** User-authored note text. Empty/null removes the span note. */
|
|
1226
|
+
note?: string | null;
|
|
1227
|
+
/** Original span name */
|
|
1228
|
+
span_name?: string | null;
|
|
1229
|
+
/** Normalized display/type for the span */
|
|
1230
|
+
span_type?: string | null;
|
|
1231
|
+
/** Span source, such as agent/world/system */
|
|
1232
|
+
source?: string | null;
|
|
1233
|
+
/** ATIF step id when available */
|
|
1234
|
+
atif_step_id?: number | null;
|
|
1235
|
+
/** LLM model name when available */
|
|
1236
|
+
model_name?: string | null;
|
|
1237
|
+
/** Additional structured metadata for later querying */
|
|
1238
|
+
metadata?: Record<string, unknown> | null;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
915
1241
|
/**
|
|
916
1242
|
* UpdateTagsRequest
|
|
917
1243
|
* Request to update session tags.
|
|
@@ -1015,6 +1341,33 @@ interface WorkspaceRefResponse {
|
|
|
1015
1341
|
created_at: string;
|
|
1016
1342
|
}
|
|
1017
1343
|
|
|
1344
|
+
/**
|
|
1345
|
+
* WorkspaceRefSearchResponse
|
|
1346
|
+
* Response for workspace ref search.
|
|
1347
|
+
*
|
|
1348
|
+
* Auto-generated - do not edit
|
|
1349
|
+
*/
|
|
1350
|
+
|
|
1351
|
+
interface WorkspaceRefSearchResponse {
|
|
1352
|
+
results: WorkspaceRefSearchResult[];
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
/**
|
|
1356
|
+
* WorkspaceRefSearchResult
|
|
1357
|
+
* Result of searching for a workspace ref by session:step format.
|
|
1358
|
+
*
|
|
1359
|
+
* Auto-generated - do not edit
|
|
1360
|
+
*/
|
|
1361
|
+
interface WorkspaceRefSearchResult {
|
|
1362
|
+
repo_id: string;
|
|
1363
|
+
repo_name: string;
|
|
1364
|
+
session_public_id: string;
|
|
1365
|
+
step_name: string;
|
|
1366
|
+
ref_public_id: string;
|
|
1367
|
+
direction: string;
|
|
1368
|
+
created_at: string;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1018
1371
|
/**
|
|
1019
1372
|
* WorkspaceRefsListResponse
|
|
1020
1373
|
* List of workspace refs for a session.
|
|
@@ -1193,7 +1546,7 @@ interface WorldSchemaResponse {
|
|
|
1193
1546
|
version?: string | null;
|
|
1194
1547
|
config_schema?: Record<string, unknown> | null;
|
|
1195
1548
|
secrets_schema?: Record<string, unknown> | null;
|
|
1196
|
-
|
|
1549
|
+
agents?: Record<string, unknown>[] | null;
|
|
1197
1550
|
image?: string | null;
|
|
1198
1551
|
}
|
|
1199
1552
|
|
|
@@ -1248,6 +1601,13 @@ interface SyncAllApiAdminSyncAllPostParams {
|
|
|
1248
1601
|
interface ClearDatabaseApiAdminClearDbPostParams {
|
|
1249
1602
|
xApiKey?: string;
|
|
1250
1603
|
}
|
|
1604
|
+
interface ReloadFeatureFlagsApiAdminFeatureFlagsReloadPostParams {
|
|
1605
|
+
xApiKey?: string;
|
|
1606
|
+
}
|
|
1607
|
+
interface CheckFeatureFlagApiAdminFeatureFlagsCheckFlagKeyGetParams {
|
|
1608
|
+
flagKey: string;
|
|
1609
|
+
xApiKey?: string;
|
|
1610
|
+
}
|
|
1251
1611
|
declare class AdminApi {
|
|
1252
1612
|
private client;
|
|
1253
1613
|
constructor(client: ApiClient);
|
|
@@ -1271,6 +1631,16 @@ declare class AdminApi {
|
|
|
1271
1631
|
* Clear ALL data from the database. Only available in local environment.
|
|
1272
1632
|
*/
|
|
1273
1633
|
clearDatabaseApiAdminClearDbPost(params: ClearDatabaseApiAdminClearDbPostParams, options?: RequestOptions): Promise<ClearDbResult>;
|
|
1634
|
+
/**
|
|
1635
|
+
* Reload Feature Flags
|
|
1636
|
+
* Force reload feature flag definitions from PostHog.
|
|
1637
|
+
*/
|
|
1638
|
+
reloadFeatureFlagsApiAdminFeatureFlagsReloadPost(params: ReloadFeatureFlagsApiAdminFeatureFlagsReloadPostParams, options?: RequestOptions): Promise<Record<string, string>>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Check Feature Flag
|
|
1641
|
+
* Check the current value of a feature flag.
|
|
1642
|
+
*/
|
|
1643
|
+
checkFeatureFlagApiAdminFeatureFlagsCheckFlagKeyGet(params: CheckFeatureFlagApiAdminFeatureFlagsCheckFlagKeyGetParams, options?: RequestOptions): Promise<FeatureFlagCheckResult>;
|
|
1274
1644
|
}
|
|
1275
1645
|
|
|
1276
1646
|
/**
|
|
@@ -1470,10 +1840,21 @@ interface ListSessionEventsParams {
|
|
|
1470
1840
|
cursor?: string;
|
|
1471
1841
|
/** Ignored, use cursor */
|
|
1472
1842
|
offset?: number;
|
|
1843
|
+
/** Search spans by keyword */
|
|
1844
|
+
search?: string;
|
|
1845
|
+
/** Only return error spans */
|
|
1846
|
+
errorsOnly?: boolean;
|
|
1847
|
+
/** Only return ATIF/agent spans */
|
|
1848
|
+
atifOnly?: boolean;
|
|
1849
|
+
/** Only return checkpoint spans */
|
|
1850
|
+
checkpointOnly?: boolean;
|
|
1851
|
+
/** Filter by plato.type attribute */
|
|
1852
|
+
platoType?: string;
|
|
1473
1853
|
xApiKey?: string;
|
|
1474
1854
|
}
|
|
1475
1855
|
interface GetSessionEventParams {
|
|
1476
1856
|
spanId: string;
|
|
1857
|
+
sessionPublicId?: string;
|
|
1477
1858
|
xApiKey?: string;
|
|
1478
1859
|
}
|
|
1479
1860
|
declare class EventsApi {
|
|
@@ -1488,12 +1869,89 @@ declare class EventsApi {
|
|
|
1488
1869
|
* Get Event
|
|
1489
1870
|
* Get a span by ID.
|
|
1490
1871
|
|
|
1491
|
-
|
|
1492
|
-
|
|
1872
|
+
Optionally pass session_public_id to narrow the search and verify org access.
|
|
1873
|
+
Uses ClickHouse when available, falls back to scanning Postgres batches.
|
|
1493
1874
|
*/
|
|
1494
1875
|
getSessionEvent(params: GetSessionEventParams, options?: RequestOptions): Promise<OTelSpan>;
|
|
1495
1876
|
}
|
|
1496
1877
|
|
|
1878
|
+
/**
|
|
1879
|
+
* experiments API
|
|
1880
|
+
*
|
|
1881
|
+
* Auto-generated - do not edit
|
|
1882
|
+
*/
|
|
1883
|
+
|
|
1884
|
+
interface ListExperimentFilesParams {
|
|
1885
|
+
xApiKey?: string;
|
|
1886
|
+
}
|
|
1887
|
+
interface CreateExperimentFileParams {
|
|
1888
|
+
xApiKey?: string;
|
|
1889
|
+
body: ExperimentFileCreateRequest;
|
|
1890
|
+
}
|
|
1891
|
+
interface UpdateExperimentFileParams {
|
|
1892
|
+
publicId: string;
|
|
1893
|
+
xApiKey?: string;
|
|
1894
|
+
body: ExperimentFileUpdateRequest;
|
|
1895
|
+
}
|
|
1896
|
+
interface DeleteExperimentFileParams {
|
|
1897
|
+
publicId: string;
|
|
1898
|
+
xApiKey?: string;
|
|
1899
|
+
}
|
|
1900
|
+
interface CreateExperimentFileVersionParams {
|
|
1901
|
+
publicId: string;
|
|
1902
|
+
xApiKey?: string;
|
|
1903
|
+
body: ExperimentFileVersionCreateRequest;
|
|
1904
|
+
}
|
|
1905
|
+
interface AttachSessionToExperimentVersionParams {
|
|
1906
|
+
publicId: string;
|
|
1907
|
+
sessionPublicId: string;
|
|
1908
|
+
xApiKey?: string;
|
|
1909
|
+
}
|
|
1910
|
+
interface DetachSessionFromExperimentVersionParams {
|
|
1911
|
+
publicId: string;
|
|
1912
|
+
sessionPublicId: string;
|
|
1913
|
+
xApiKey?: string;
|
|
1914
|
+
}
|
|
1915
|
+
declare class ExperimentsApi {
|
|
1916
|
+
private client;
|
|
1917
|
+
constructor(client: ApiClient);
|
|
1918
|
+
/**
|
|
1919
|
+
* List Experiment Files
|
|
1920
|
+
* List versioned experiment files for the current org.
|
|
1921
|
+
*/
|
|
1922
|
+
listExperimentFiles(params: ListExperimentFilesParams, options?: RequestOptions): Promise<ExperimentFileListResponse>;
|
|
1923
|
+
/**
|
|
1924
|
+
* Create Experiment File
|
|
1925
|
+
* Create a new experiment file and its initial version.
|
|
1926
|
+
*/
|
|
1927
|
+
createExperimentFile(params: CreateExperimentFileParams, options?: RequestOptions): Promise<ExperimentFileResponse>;
|
|
1928
|
+
/**
|
|
1929
|
+
* Update Experiment File
|
|
1930
|
+
* Update experiment file metadata without creating a new version.
|
|
1931
|
+
*/
|
|
1932
|
+
updateExperimentFile(params: UpdateExperimentFileParams, options?: RequestOptions): Promise<ExperimentFileResponse>;
|
|
1933
|
+
/**
|
|
1934
|
+
* Delete Experiment File
|
|
1935
|
+
* Delete an experiment file and all its versions and session links.
|
|
1936
|
+
*/
|
|
1937
|
+
deleteExperimentFile(params: DeleteExperimentFileParams, options?: RequestOptions): Promise<void>;
|
|
1938
|
+
/**
|
|
1939
|
+
* Create Experiment File Version
|
|
1940
|
+
* Create a new version for an experiment file.
|
|
1941
|
+
*/
|
|
1942
|
+
createExperimentFileVersion(params: CreateExperimentFileVersionParams, options?: RequestOptions): Promise<ExperimentFileResponse>;
|
|
1943
|
+
/**
|
|
1944
|
+
* Attach Session To Experiment Version
|
|
1945
|
+
* Attach an existing session to a specific experiment version.
|
|
1946
|
+
*/
|
|
1947
|
+
attachSessionToExperimentVersion(params: AttachSessionToExperimentVersionParams, options?: RequestOptions): Promise<ExperimentFileResponse>;
|
|
1948
|
+
/**
|
|
1949
|
+
* Detach Session From Experiment Version
|
|
1950
|
+
* Remove a session attachment from an experiment version.
|
|
1951
|
+
*/
|
|
1952
|
+
detachSessionFromExperimentVersion(params: DetachSessionFromExperimentVersionParams, options?: RequestOptions): Promise<ExperimentFileResponse>;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1497
1955
|
/**
|
|
1498
1956
|
* jobs API
|
|
1499
1957
|
*
|
|
@@ -1504,19 +1962,30 @@ interface LaunchJobParams {
|
|
|
1504
1962
|
xApiKey?: string;
|
|
1505
1963
|
body: LaunchJobRequest;
|
|
1506
1964
|
}
|
|
1965
|
+
interface LaunchPreviewJobParams {
|
|
1966
|
+
xApiKey?: string;
|
|
1967
|
+
body: LaunchJobRequest;
|
|
1968
|
+
}
|
|
1969
|
+
interface RerunJobParams {
|
|
1970
|
+
publicId: string;
|
|
1971
|
+
xApiKey?: string;
|
|
1972
|
+
}
|
|
1507
1973
|
declare class JobsApi {
|
|
1508
1974
|
private client;
|
|
1509
1975
|
constructor(client: ApiClient);
|
|
1510
1976
|
/**
|
|
1511
1977
|
* Launch Job
|
|
1512
|
-
* Launch a job with runtime package installation.
|
|
1513
|
-
|
|
1514
|
-
This endpoint creates a VM from a base image and installs the world package
|
|
1515
|
-
at runtime via uv. The base image comes from the world's schema.json.
|
|
1516
|
-
|
|
1517
|
-
World and agent code is NOT baked into the image - it's installed at boot time.
|
|
1518
1978
|
*/
|
|
1519
1979
|
launchJob(params: LaunchJobParams, options?: RequestOptions): Promise<LaunchJobResponse>;
|
|
1980
|
+
/**
|
|
1981
|
+
* Launch Preview Job
|
|
1982
|
+
*/
|
|
1983
|
+
launchPreviewJob(params: LaunchPreviewJobParams, options?: RequestOptions): Promise<LaunchJobResponse>;
|
|
1984
|
+
/**
|
|
1985
|
+
* Rerun Job
|
|
1986
|
+
* Re-run a previous session with the same stored config and runtime settings.
|
|
1987
|
+
*/
|
|
1988
|
+
rerunJob(params: RerunJobParams, options?: RequestOptions): Promise<LaunchJobResponse>;
|
|
1520
1989
|
}
|
|
1521
1990
|
|
|
1522
1991
|
/**
|
|
@@ -1528,6 +1997,7 @@ declare class JobsApi {
|
|
|
1528
1997
|
interface GetSessionMetricsApiOtelSessionsSessionIdMetricsGetParams {
|
|
1529
1998
|
sessionId: string;
|
|
1530
1999
|
envAlias?: string;
|
|
2000
|
+
xApiKey?: string;
|
|
1531
2001
|
}
|
|
1532
2002
|
interface GetSessionTracesApiOtelSessionsSessionIdTracesGetParams {
|
|
1533
2003
|
sessionId: string;
|
|
@@ -1536,6 +2006,17 @@ interface GetSessionTracesApiOtelSessionsSessionIdTracesGetParams {
|
|
|
1536
2006
|
cursor?: string;
|
|
1537
2007
|
/** Ignored, use cursor */
|
|
1538
2008
|
offset?: number;
|
|
2009
|
+
/** Search spans by keyword */
|
|
2010
|
+
search?: string;
|
|
2011
|
+
/** Only return error spans */
|
|
2012
|
+
errorsOnly?: boolean;
|
|
2013
|
+
/** Only return ATIF/agent spans */
|
|
2014
|
+
atifOnly?: boolean;
|
|
2015
|
+
/** Only return checkpoint spans */
|
|
2016
|
+
checkpointOnly?: boolean;
|
|
2017
|
+
/** Filter by plato.type attribute */
|
|
2018
|
+
platoType?: string;
|
|
2019
|
+
xApiKey?: string;
|
|
1539
2020
|
}
|
|
1540
2021
|
declare class OtelApi {
|
|
1541
2022
|
private client;
|
|
@@ -1636,6 +2117,43 @@ declare class RegistryApi {
|
|
|
1636
2117
|
getWorldSchemaApiRegistryWorldsPackageNameSchemaGet(params: GetWorldSchemaApiRegistryWorldsPackageNameSchemaGetParams, options?: RequestOptions): Promise<WorldSchemaResponse>;
|
|
1637
2118
|
}
|
|
1638
2119
|
|
|
2120
|
+
/**
|
|
2121
|
+
* saved_filters API
|
|
2122
|
+
*
|
|
2123
|
+
* Auto-generated - do not edit
|
|
2124
|
+
*/
|
|
2125
|
+
|
|
2126
|
+
interface ListSavedFiltersApiSavedFiltersGetParams {
|
|
2127
|
+
xApiKey?: string;
|
|
2128
|
+
}
|
|
2129
|
+
interface CreateSavedFilterApiSavedFiltersPostParams {
|
|
2130
|
+
xApiKey?: string;
|
|
2131
|
+
body: SavedFilterCreate;
|
|
2132
|
+
}
|
|
2133
|
+
interface DeleteSavedFilterApiSavedFiltersFilterIdDeleteParams {
|
|
2134
|
+
filterId: number;
|
|
2135
|
+
xApiKey?: string;
|
|
2136
|
+
}
|
|
2137
|
+
declare class SavedFiltersApi {
|
|
2138
|
+
private client;
|
|
2139
|
+
constructor(client: ApiClient);
|
|
2140
|
+
/**
|
|
2141
|
+
* List Saved Filters
|
|
2142
|
+
* List all saved filter presets for the current user.
|
|
2143
|
+
*/
|
|
2144
|
+
listSavedFiltersApiSavedFiltersGet(params: ListSavedFiltersApiSavedFiltersGetParams, options?: RequestOptions): Promise<SavedFilterListResponse>;
|
|
2145
|
+
/**
|
|
2146
|
+
* Create Saved Filter
|
|
2147
|
+
* Create a new saved filter preset.
|
|
2148
|
+
*/
|
|
2149
|
+
createSavedFilterApiSavedFiltersPost(params: CreateSavedFilterApiSavedFiltersPostParams, options?: RequestOptions): Promise<SavedFilterResponse>;
|
|
2150
|
+
/**
|
|
2151
|
+
* Delete Saved Filter
|
|
2152
|
+
* Delete a saved filter preset (must belong to current user).
|
|
2153
|
+
*/
|
|
2154
|
+
deleteSavedFilterApiSavedFiltersFilterIdDelete(params: DeleteSavedFilterApiSavedFiltersFilterIdDeleteParams, options?: RequestOptions): Promise<void>;
|
|
2155
|
+
}
|
|
2156
|
+
|
|
1639
2157
|
/**
|
|
1640
2158
|
* sessions API
|
|
1641
2159
|
*
|
|
@@ -1647,6 +2165,8 @@ interface ListSessionsParams {
|
|
|
1647
2165
|
tag?: string;
|
|
1648
2166
|
/** Filter by exact tags (repeat query param, e.g. ?tags=foo&tags=bar) */
|
|
1649
2167
|
tags?: string[];
|
|
2168
|
+
/** How to combine repeated exact tags: 'or' matches any, 'and' requires all */
|
|
2169
|
+
tagsMode?: string;
|
|
1650
2170
|
/** Exclude sessions having ANY of these tags */
|
|
1651
2171
|
excludeTags?: string[];
|
|
1652
2172
|
/** Filter by creator user ID */
|
|
@@ -1692,6 +2212,17 @@ interface UpdateSessionTagsParams {
|
|
|
1692
2212
|
xApiKey?: string;
|
|
1693
2213
|
body: UpdateTagsRequest;
|
|
1694
2214
|
}
|
|
2215
|
+
interface UpdateSessionNotesParams {
|
|
2216
|
+
publicId: string;
|
|
2217
|
+
xApiKey?: string;
|
|
2218
|
+
body: UpdateNotesRequest;
|
|
2219
|
+
}
|
|
2220
|
+
interface UpdateSessionSpanNoteParams {
|
|
2221
|
+
publicId: string;
|
|
2222
|
+
spanId: string;
|
|
2223
|
+
xApiKey?: string;
|
|
2224
|
+
body: UpdateSpanNoteRequest;
|
|
2225
|
+
}
|
|
1695
2226
|
interface CompleteSessionParams {
|
|
1696
2227
|
publicId: string;
|
|
1697
2228
|
xApiKey?: string;
|
|
@@ -1704,6 +2235,16 @@ interface GetSessionLogsParams {
|
|
|
1704
2235
|
cursor?: string;
|
|
1705
2236
|
/** Ignored, use cursor */
|
|
1706
2237
|
offset?: number;
|
|
2238
|
+
/** Search spans by keyword */
|
|
2239
|
+
search?: string;
|
|
2240
|
+
/** Only return error spans */
|
|
2241
|
+
errorsOnly?: boolean;
|
|
2242
|
+
/** Only return ATIF/agent spans */
|
|
2243
|
+
atifOnly?: boolean;
|
|
2244
|
+
/** Only return checkpoint spans */
|
|
2245
|
+
checkpointOnly?: boolean;
|
|
2246
|
+
/** Filter by plato.type attribute */
|
|
2247
|
+
platoType?: string;
|
|
1707
2248
|
xApiKey?: string;
|
|
1708
2249
|
}
|
|
1709
2250
|
interface GetSessionLogsDownloadParams {
|
|
@@ -1818,6 +2359,16 @@ declare class SessionsApi {
|
|
|
1818
2359
|
* Update tags for a session.
|
|
1819
2360
|
*/
|
|
1820
2361
|
updateSessionTags(params: UpdateSessionTagsParams, options?: RequestOptions): Promise<SessionResponse>;
|
|
2362
|
+
/**
|
|
2363
|
+
* Update Session Notes
|
|
2364
|
+
* Update session-level notes while preserving structured sub-keys like span notes.
|
|
2365
|
+
*/
|
|
2366
|
+
updateSessionNotes(params: UpdateSessionNotesParams, options?: RequestOptions): Promise<SessionResponse>;
|
|
2367
|
+
/**
|
|
2368
|
+
* Update Session Span Note
|
|
2369
|
+
* Upsert or remove a structured note attached to a specific trajectory span.
|
|
2370
|
+
*/
|
|
2371
|
+
updateSessionSpanNote(params: UpdateSessionSpanNoteParams, options?: RequestOptions): Promise<SessionResponse>;
|
|
1821
2372
|
/**
|
|
1822
2373
|
* Complete Session
|
|
1823
2374
|
* Mark a session as completed or failed.
|
|
@@ -1916,6 +2467,55 @@ declare class SessionsApi {
|
|
|
1916
2467
|
closeSession(params: CloseSessionParams, options?: RequestOptions): Promise<CloseSessionResponse>;
|
|
1917
2468
|
}
|
|
1918
2469
|
|
|
2470
|
+
/**
|
|
2471
|
+
* starred_checkpoints API
|
|
2472
|
+
*
|
|
2473
|
+
* Auto-generated - do not edit
|
|
2474
|
+
*/
|
|
2475
|
+
|
|
2476
|
+
interface ListStarredCheckpointsApiStarredCheckpointsGetParams {
|
|
2477
|
+
/** Filter by session ID */
|
|
2478
|
+
sessionId?: string;
|
|
2479
|
+
xApiKey?: string;
|
|
2480
|
+
}
|
|
2481
|
+
interface CreateStarredCheckpointApiStarredCheckpointsPostParams {
|
|
2482
|
+
xApiKey?: string;
|
|
2483
|
+
body: StarredCheckpointCreate;
|
|
2484
|
+
}
|
|
2485
|
+
interface UpdateStarredCheckpointApiStarredCheckpointsCheckpointIdPatchParams {
|
|
2486
|
+
checkpointId: number;
|
|
2487
|
+
xApiKey?: string;
|
|
2488
|
+
body: StarredCheckpointUpdate;
|
|
2489
|
+
}
|
|
2490
|
+
interface DeleteStarredCheckpointApiStarredCheckpointsCheckpointIdDeleteParams {
|
|
2491
|
+
checkpointId: number;
|
|
2492
|
+
xApiKey?: string;
|
|
2493
|
+
}
|
|
2494
|
+
declare class StarredCheckpointsApi {
|
|
2495
|
+
private client;
|
|
2496
|
+
constructor(client: ApiClient);
|
|
2497
|
+
/**
|
|
2498
|
+
* List Starred Checkpoints
|
|
2499
|
+
* List all starred checkpoints for the org, with session tags.
|
|
2500
|
+
*/
|
|
2501
|
+
listStarredCheckpointsApiStarredCheckpointsGet(params: ListStarredCheckpointsApiStarredCheckpointsGetParams, options?: RequestOptions): Promise<StarredCheckpointListResponse>;
|
|
2502
|
+
/**
|
|
2503
|
+
* Create Starred Checkpoint
|
|
2504
|
+
* Star a checkpoint (org-wide).
|
|
2505
|
+
*/
|
|
2506
|
+
createStarredCheckpointApiStarredCheckpointsPost(params: CreateStarredCheckpointApiStarredCheckpointsPostParams, options?: RequestOptions): Promise<StarredCheckpointResponse>;
|
|
2507
|
+
/**
|
|
2508
|
+
* Update Starred Checkpoint
|
|
2509
|
+
* Update a starred checkpoint's note.
|
|
2510
|
+
*/
|
|
2511
|
+
updateStarredCheckpointApiStarredCheckpointsCheckpointIdPatch(params: UpdateStarredCheckpointApiStarredCheckpointsCheckpointIdPatchParams, options?: RequestOptions): Promise<StarredCheckpointResponse>;
|
|
2512
|
+
/**
|
|
2513
|
+
* Delete Starred Checkpoint
|
|
2514
|
+
* Unstar a checkpoint.
|
|
2515
|
+
*/
|
|
2516
|
+
deleteStarredCheckpointApiStarredCheckpointsCheckpointIdDelete(params: DeleteStarredCheckpointApiStarredCheckpointsCheckpointIdDeleteParams, options?: RequestOptions): Promise<void>;
|
|
2517
|
+
}
|
|
2518
|
+
|
|
1919
2519
|
/**
|
|
1920
2520
|
* status API
|
|
1921
2521
|
*
|
|
@@ -1951,6 +2551,11 @@ declare class StatusApi {
|
|
|
1951
2551
|
* Auto-generated - do not edit
|
|
1952
2552
|
*/
|
|
1953
2553
|
|
|
2554
|
+
interface SearchWorkspaceRefsParams {
|
|
2555
|
+
/** Search query. Supports session_id:step_name format for exact lookup, or a plain string to search across session IDs and step names. */
|
|
2556
|
+
q: string;
|
|
2557
|
+
xApiKey?: string;
|
|
2558
|
+
}
|
|
1954
2559
|
interface ResolveWorkspaceRepoParams {
|
|
1955
2560
|
xApiKey?: string;
|
|
1956
2561
|
body: WorkspaceRepoResolveRequest;
|
|
@@ -1988,6 +2593,13 @@ interface ListWorkspaceFilesParams {
|
|
|
1988
2593
|
refPublicId?: string;
|
|
1989
2594
|
xApiKey?: string;
|
|
1990
2595
|
}
|
|
2596
|
+
interface DownloadWorkspaceFilesParams {
|
|
2597
|
+
sessionPublicId: string;
|
|
2598
|
+
stepName: string;
|
|
2599
|
+
repoName: string;
|
|
2600
|
+
refPublicId?: string;
|
|
2601
|
+
xApiKey?: string;
|
|
2602
|
+
}
|
|
1991
2603
|
interface GetWorkspaceFileContentParams {
|
|
1992
2604
|
sessionPublicId: string;
|
|
1993
2605
|
repoName: string;
|
|
@@ -2000,6 +2612,16 @@ interface PromoteWorkspaceBranchParams {
|
|
|
2000
2612
|
xApiKey?: string;
|
|
2001
2613
|
body: PromoteBranchRequest;
|
|
2002
2614
|
}
|
|
2615
|
+
interface GetSessionLineageParams {
|
|
2616
|
+
sessionPublicId: string;
|
|
2617
|
+
/** Workspace/repo name to trace lineage for */
|
|
2618
|
+
workspace: string;
|
|
2619
|
+
xApiKey?: string;
|
|
2620
|
+
}
|
|
2621
|
+
interface GetDownstreamSessionsParams {
|
|
2622
|
+
refPublicId: string;
|
|
2623
|
+
xApiKey?: string;
|
|
2624
|
+
}
|
|
2003
2625
|
interface DeleteWorkspaceRepoParams {
|
|
2004
2626
|
repoPublicId: string;
|
|
2005
2627
|
xApiKey?: string;
|
|
@@ -2007,6 +2629,11 @@ interface DeleteWorkspaceRepoParams {
|
|
|
2007
2629
|
declare class WorkspaceReposApi {
|
|
2008
2630
|
private client;
|
|
2009
2631
|
constructor(client: ApiClient);
|
|
2632
|
+
/**
|
|
2633
|
+
* Search Workspace Refs
|
|
2634
|
+
* Search for workspace refs by session:step format or free text.
|
|
2635
|
+
*/
|
|
2636
|
+
searchWorkspaceRefs(params: SearchWorkspaceRefsParams, options?: RequestOptions): Promise<WorkspaceRefSearchResponse>;
|
|
2010
2637
|
/**
|
|
2011
2638
|
* Resolve Workspace Repo
|
|
2012
2639
|
* Resolve or create a workspace repo by name.
|
|
@@ -2053,6 +2680,14 @@ declare class WorkspaceReposApi {
|
|
|
2053
2680
|
the latest ref matching step_name.
|
|
2054
2681
|
*/
|
|
2055
2682
|
listWorkspaceFiles(params: ListWorkspaceFilesParams, options?: RequestOptions): Promise<WorkspaceFilesResponse>;
|
|
2683
|
+
/**
|
|
2684
|
+
* Download Workspace Files
|
|
2685
|
+
* Stream a ZIP archive of all files in a workspace ref.
|
|
2686
|
+
|
|
2687
|
+
Files are streamed directly from S3 through the ZIP compressor to the
|
|
2688
|
+
client — only one file chunk (~8 MB) is held in memory at a time.
|
|
2689
|
+
*/
|
|
2690
|
+
downloadWorkspaceFiles(params: DownloadWorkspaceFilesParams, options?: RequestOptions): Promise<unknown>;
|
|
2056
2691
|
/**
|
|
2057
2692
|
* Get Workspace File Content
|
|
2058
2693
|
* Proxy a DVC-cached file from S3 to the browser (avoids CORS issues).
|
|
@@ -2063,6 +2698,16 @@ declare class WorkspaceReposApi {
|
|
|
2063
2698
|
* Promote a branch to main by creating a new ref with branch='main'.
|
|
2064
2699
|
*/
|
|
2065
2700
|
promoteWorkspaceBranch(params: PromoteWorkspaceBranchParams, options?: RequestOptions): Promise<WorkspaceRefResponse>;
|
|
2701
|
+
/**
|
|
2702
|
+
* Get Session Lineage
|
|
2703
|
+
* Walk backward through source_ref links to build session lineage for a workspace.
|
|
2704
|
+
*/
|
|
2705
|
+
getSessionLineage(params: GetSessionLineageParams, options?: RequestOptions): Promise<SessionLineageResponse>;
|
|
2706
|
+
/**
|
|
2707
|
+
* Get Downstream Sessions
|
|
2708
|
+
* Find all sessions that consumed (forked/resumed from) a given workspace ref.
|
|
2709
|
+
*/
|
|
2710
|
+
getDownstreamSessions(params: GetDownstreamSessionsParams, options?: RequestOptions): Promise<DownstreamSessionsResponse>;
|
|
2066
2711
|
/**
|
|
2067
2712
|
* Delete Workspace Repo
|
|
2068
2713
|
* Delete a workspace repo and all its refs.
|
|
@@ -2182,10 +2827,13 @@ declare class ChronosClient {
|
|
|
2182
2827
|
readonly checkpoints: CheckpointsApi;
|
|
2183
2828
|
readonly default: DefaultApi;
|
|
2184
2829
|
readonly events: EventsApi;
|
|
2830
|
+
readonly experiments: ExperimentsApi;
|
|
2185
2831
|
readonly jobs: JobsApi;
|
|
2186
2832
|
readonly otel: OtelApi;
|
|
2187
2833
|
readonly registry: RegistryApi;
|
|
2834
|
+
readonly savedFilters: SavedFiltersApi;
|
|
2188
2835
|
readonly sessions: SessionsApi;
|
|
2836
|
+
readonly starredCheckpoints: StarredCheckpointsApi;
|
|
2189
2837
|
readonly status: StatusApi;
|
|
2190
2838
|
readonly workspaceRepos: WorkspaceReposApi;
|
|
2191
2839
|
readonly worlds: WorldsApi;
|
|
@@ -2196,4 +2844,4 @@ declare class ChronosClient {
|
|
|
2196
2844
|
getApiClient(): ApiClient;
|
|
2197
2845
|
}
|
|
2198
2846
|
|
|
2199
|
-
export { AdminApi, type AgentCreate, type AgentInfo, type AgentListResponse, type AgentLookupResponse, type AgentResponse, type AgentSchemaResponse, type AgentStep, type AgentStepMetrics, type AgentTrace, type AgentTrajectory, type AgentVersionInfo, type AgentVersionsResponse, AgentsApi, type AppConfigResponse, type Artifact, AuthApi, type AuthSessionResponse, type AuthStatusResponse, type BranchInfo, type BranchListResponse, type CheckpointListItem, type CheckpointListResponse, CheckpointsApi, type ChildSessionSummary, ApiClient as ChronosApiClient, ApiError as ChronosApiError, type ApiRequest as ChronosApiRequest, ChronosClient, type ClientConfig as ChronosClientConfig, type RequestOptions as ChronosRequestOptions, type ClearDbResult, type CloseSessionResponse, type CompleteSessionRequest, type CreateSessionRequest, type CreateSessionResponse, type CreateWorkspaceRefRequest, type CreatorsListResponse, DefaultApi, type DirectoryListing, type EnvInfo, type EnvInfoResponse, EventsApi, type
|
|
2847
|
+
export { AdminApi, type AgentCreate, type AgentInfo, type AgentListResponse, type AgentLookupResponse, type AgentResponse, type AgentSchemaResponse, type AgentStep, type AgentStepMetrics, type AgentTrace, type AgentTrajectory, type AgentVersionInfo, type AgentVersionsResponse, AgentsApi, type AppConfigResponse, type Artifact, AuthApi, type AuthSessionResponse, type AuthStatusResponse, type BranchInfo, type BranchListResponse, type CheckpointListItem, type CheckpointListResponse, CheckpointsApi, type ChildSessionSummary, ApiClient as ChronosApiClient, ApiError as ChronosApiError, type ApiRequest as ChronosApiRequest, ChronosClient, type ClientConfig as ChronosClientConfig, type RequestOptions as ChronosRequestOptions, type ClearDbResult, type CloseSessionResponse, type CompleteSessionRequest, type CreateSessionRequest, type CreateSessionResponse, type CreateWorkspaceRefRequest, type CreatorsListResponse, type DVCManifestEntry, DefaultApi, type DirectoryListing, type DownstreamSessionEntry, type DownstreamSessionsResponse, type EnvInfo, type EnvInfoResponse, EventsApi, type ExperimentFileCreateRequest, type ExperimentFileListResponse, type ExperimentFileResponse, type ExperimentFileUpdateRequest, type ExperimentFileVersionCreateRequest, type ExperimentSessionSummary, type ExperimentVersionResponse, ExperimentsApi, type FeatureFlagCheckResult, type HTTPValidationError, JobsApi, type LaunchJobRequest, type LaunchJobResponse, type LiveLogsResponse, type LogsDownloadResponse, type OTelSpan, type OTelSpanListResponse, type OTelTraceResponse, OtelApi, type PreviewLaunchConfig, type PreviewResponse, type PromoteBranchRequest, type RegistryAgentListResponse, type RegistryAgentSchemaResponse, type RegistryAgentVersionInfo, type RegistryAgentVersionsResponse, RegistryApi, type RegistryWorldInfo, type SSOLoginRequest, type SavedFilterCreate, type SavedFilterListResponse, type SavedFilterResponse, SavedFiltersApi, type ServiceStatuses, type SessionCreator, type SessionEnvsResponse, type SessionLineageEntry, type SessionLineageResponse, type SessionListResponse, type SessionLogsResponse, type SessionResponse, type SessionStatusResponse, type SessionTrajectory, type SessionWorldInfo, SessionsApi, type StarredCheckpointCreate, type StarredCheckpointListResponse, type StarredCheckpointResponse, type StarredCheckpointUpdate, StarredCheckpointsApi, StatusApi, type StatusResponse, type SyncAllResult, type SyncResult, type TagsListResponse, type TrajectoryAgentInfo, type TrajectoryMetrics, type TrajectoryObservation, type TrajectoryObservationResult, type TrajectorySandboxInfo, type TrajectoryToolCall, type TrajectoryWorldInfo, type UpdateNotesRequest, type UpdateSpanNoteRequest, type UpdateTagsRequest, type UserInfo, type VMResources, type ValidationError, type VersionResponse, type WorkspaceFilesResponse, type WorkspaceRefResponse, type WorkspaceRefSearchResponse, type WorkspaceRefSearchResult, type WorkspaceRefsListResponse, type WorkspaceRepoCredentialsResponse, type WorkspaceRepoListItem, type WorkspaceRepoListResponse, type WorkspaceRepoResolveRequest, type WorkspaceRepoResolveResponse, type WorkspaceRepoSizeResponse, WorkspaceReposApi, type WorldCatalogResponse, type WorldConfig, type WorldCreate, type WorldListResponse, type WorldResponse, type WorldRuntimeConfig, type WorldSchemaResponse, type WorldStep, type WorldVersionsResponse, WorldsApi };
|