-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcore.openapi.yaml
More file actions
6828 lines (6828 loc) · 181 KB
/
Copy pathcore.openapi.yaml
File metadata and controls
6828 lines (6828 loc) · 181 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
basePath: /
definitions:
adminaudit.Operation:
properties:
action:
type: string
actor_label:
type: string
admin_credential_id:
type: string
created_at:
type: string
id:
type: string
project_id:
type: string
x-nullable: true
request_id:
type: string
resource_id:
type: string
resource_type:
type: string
result_ids:
items:
type: object
type: array
trace_id:
type: string
type: object
adminaudit.Page:
properties:
data:
items:
$ref: '#/definitions/adminaudit.Operation'
type: array
has_more:
type: boolean
next_cursor:
type: string
type: object
api.AdminRuntimeObservation:
properties:
observation:
$ref: '#/definitions/api.AdminRuntimeObservationDetail'
project_id:
type: string
type: object
api.AdminRuntimeObservationDetail:
properties:
allocation_created_at:
minimum: 0
type: integer
x-nullable: true
cpu:
allOf:
- $ref: '#/definitions/v1.RuntimeCPUObservation'
x-nullable: true
disk:
allOf:
- $ref: '#/definitions/api.RuntimeDiskObservation'
description: |-
Current Runtime disk usage and capacity. E2B reports them; Docker and
microsandbox observations return null.
x-nullable: true
environment_id:
format: uuid
type: string
x-nullable: true
id:
format: uuid
type: string
instance:
$ref: '#/definitions/v1.RuntimeInstance'
lifecycle_state:
enum:
- active
- sleeping
- transitioning
- pending
- stopped
type: string
x-nullable: true
memory:
allOf:
- $ref: '#/definitions/v1.RuntimeMemoryObservation'
x-nullable: true
mode:
enum:
- none
- self_hosted
- openai_hosted
type: string
object:
enum:
- agent.runtime_observation
type: string
observed_at:
minimum: 0
type: integer
x-nullable: true
provider_type:
type: string
x-nullable: true
reason:
enum:
- runtime_mode_not_observable
- allocation_pending
- runtime_not_running
- source_not_configured
- sample_timeout
- sample_unavailable
type: string
x-nullable: true
resolved_at:
minimum: 0
type: integer
session_id:
format: uuid
type: string
started_at:
minimum: 0
type: integer
x-nullable: true
status:
enum:
- observed
- unsupported
- unavailable
type: string
required:
- allocation_created_at
- cpu
- disk
- environment_id
- id
- instance
- lifecycle_state
- memory
- mode
- object
- observed_at
- provider_type
- reason
- resolved_at
- session_id
- started_at
- status
type: object
api.AdminRuntimeObservationList:
properties:
data:
items:
$ref: '#/definitions/api.AdminRuntimeObservation'
type: array
first_id:
type: string
has_more:
type: boolean
last_id:
type: string
object:
type: string
type: object
api.AdminSessionArchiveRequest:
properties:
expected_generation:
type: integer
type: object
api.AdminSessionCounts:
properties:
failed:
type: integer
idle:
type: integer
in_progress:
type: integer
requires_action:
type: integer
total:
type: integer
type: object
api.AdminSummaryResponse:
properties:
data:
items:
$ref: '#/definitions/api.AdminSummaryRow'
type: array
has_more:
type: boolean
next_cursor:
type: string
type: object
api.AdminSummaryRow:
properties:
agent_id:
type: string
assets:
$ref: '#/definitions/store.AdminAssetCounts'
coverage:
$ref: '#/definitions/api.AdminUsageCoverage'
key_id:
type: string
last_active_at:
type: integer
project_id:
type: string
sessions:
$ref: '#/definitions/api.AdminSessionCounts'
usage:
$ref: '#/definitions/v1.TokenUsage'
type: object
api.AdminUsageCoverage:
properties:
measured_sessions:
type: integer
ratio:
type: number
total_sessions:
type: integer
type: object
api.CoreAPIError:
properties:
code:
type: string
x-nullable: true
details:
description: |-
Details contains only documented, Core-owned facts: string, finite number,
boolean, null or string array values. Never include request echoes, secrets
or native/provider error text. Empty or invalid details are omitted.
type: object
message:
type: string
param:
type: string
x-nullable: true
type:
type: string
required:
- message
- type
type: object
api.CoreErrorResponse:
properties:
error:
$ref: '#/definitions/api.CoreAPIError'
required:
- error
type: object
api.CoreHarness:
properties:
default:
type: boolean
enabled:
type: boolean
id:
enum:
- claude_sdk
- codex
- mcode
type: string
model_configuration:
allOf:
- $ref: '#/definitions/api.HarnessModelConfiguration'
x-nullable: true
model_configuration_support:
$ref: '#/definitions/v1.ModelConfigurationSupport'
object:
enum:
- core.harness
type: string
required:
- default
- enabled
- id
- model_configuration
- model_configuration_support
- object
type: object
api.CoreHarnessList:
properties:
data:
items:
$ref: '#/definitions/api.CoreHarness'
type: array
object:
enum:
- list
type: string
required:
- data
- object
type: object
api.DiagnosticFailure:
properties:
code:
enum:
- harness_error
- model_provider_required
- runtime_unavailable
- runtime_disconnected
- runtime_preparation_failed
- execution_interrupted
- delivery_unconfirmed
- input_rejected
- executor_protocol_error
- core_storage_failed
- internal_error
- environment_connection_timeout
- environment_unavailable
- environment_provisioning_failed
- authentication_error
- rate_limit_exceeded
- usage_limit_exceeded
- server_overloaded
- server_error
- invalid_request
- resource_not_found
- request_timeout
- context_length_exceeded
- cyber_policy
- connection_failed
type: string
failed_at:
type: string
x-nullable: true
params:
type: object
type: object
api.EnvironmentExecutorCredentialRequest:
properties:
key_id:
format: uuid
type: string
rotate:
type: boolean
type: object
api.ExecutorConnection:
properties:
bound_key_id:
format: uuid
type: string
x-nullable: true
enrolled_at:
format: date-time
type: string
x-nullable: true
last_seen_at:
format: date-time
type: string
x-nullable: true
status:
enum:
- never_enrolled
- connected
- disconnected
type: string
required:
- bound_key_id
- enrolled_at
- last_seen_at
- status
type: object
api.ExecutorCredentialList:
properties:
connection:
$ref: '#/definitions/api.ExecutorConnection'
data:
items:
$ref: '#/definitions/sessions.ExecutorCredential'
type: array
required:
- connection
- data
type: object
api.HarnessModelConfiguration:
properties:
harness:
enum:
- claude_sdk
- codex
- mcode
type: string
harness_config:
type: object
last_error_at:
format: date-time
type: string
x-nullable: true
last_error_code:
enum:
- authentication_error
- connection_failed
- rate_limit_exceeded
- usage_limit_exceeded
- server_overloaded
- server_error
- resource_not_found
- request_timeout
- invalid_request
type: string
x-nullable: true
last_used_at:
format: date-time
type: string
x-nullable: true
model:
type: string
model_provider:
$ref: '#/definitions/v1.ModelProviderView'
object:
enum:
- core.model_configuration
type: string
updated_at:
type: string
required:
- harness
- harness_config
- last_error_at
- last_error_code
- last_used_at
- model
- model_provider
- object
- updated_at
type: object
api.Installation:
properties:
address_bindings:
$ref: '#/definitions/deployment.AddressBindings'
api_base_url:
description: public_url followed by /v1; null when public_url is null.
type: string
x-nullable: true
configuration:
allOf:
- $ref: '#/definitions/api.InstallationConfiguration'
description: The installer's settings snapshot (OAC_SETTINGS_FILE); null when the installer did not start Core.
x-nullable: true
installation_id:
description: OAC_INSTALLATION_ID; null when Core runs without the sandbox manager.
type: string
x-nullable: true
local_only:
description: True when public_url names a loopback host, reachable only from the Core host.
type: boolean
object:
enum:
- core.installation
type: string
public_url:
description: 'OAC_PUBLIC_URL: the origin applications, nodes, sandboxes and self-hosted executors use. Null when unset.'
type: string
x-nullable: true
source_commit:
description: Full source commit Core was built from; null for development builds.
type: string
x-nullable: true
type: object
api.InstallationConfiguration:
properties:
applied_at:
type: string
apply_command:
description: Command that applies config.json changes.
type: string
path:
description: Absolute host path of the installation's config.json.
type: string
settings:
items:
$ref: '#/definitions/api.InstallationSetting'
type: array
type: object
api.InstallationSetting:
properties:
changeable:
description: False for settings fixed at installation.
type: boolean
configured:
description: 'Present only for a sensitive setting: whether it has a value.'
type: boolean
default:
x-nullable: true
key:
description: Dotted config.json key, such as ports.core.
type: string
restarts:
description: Services that restart when the setting changes.
items:
type: string
type: array
sensitive:
type: boolean
value:
description: Applied value; always null for a sensitive setting.
x-nullable: true
type: object
api.ItemDiagnosticTiming:
properties:
completed_at:
type: string
x-nullable: true
item_id:
type: string
observed_duration_ms:
type: integer
x-nullable: true
started_at:
type: string
type: object
api.ProjectAPIKeyRequest:
properties:
name:
type: string
type: object
api.ProjectRequest:
properties:
name:
type: string
type: object
api.ResourceOwnerList:
properties:
data:
items:
$ref: '#/definitions/writeaudit.ResourceOwner'
type: array
type: object
api.RuntimeDiskObservation:
properties:
limit_bytes:
minimum: 1
type: integer
x-nullable: true
usage_bytes:
minimum: 0
type: integer
x-nullable: true
required:
- limit_bytes
- usage_bytes
type: object
api.SandboxAllocationList:
properties:
data:
items:
$ref: '#/definitions/deployment.NodeAllocation'
type: array
type: object
api.SandboxDeploymentChangeInput:
properties:
configuration:
type: object
credential:
type: object
expected_generation:
type: integer
provider:
type: string
resources:
allOf:
- $ref: '#/definitions/sandbox.Resources'
description: |-
Per-sandbox limits, required for Docker and microsandbox. E2B may omit
them; Core then uses the validated template build's cpus and memory_mib.
runtime:
$ref: '#/definitions/sandbox.RuntimeRelease'
required:
- expected_generation
type: object
api.SandboxDeploymentInput:
properties:
configuration:
type: object
credential:
type: object
expected_generation:
type: integer
provider:
type: string
resources:
allOf:
- $ref: '#/definitions/sandbox.Resources'
description: |-
Per-sandbox limits, required for Docker and microsandbox. E2B may omit
them; Core then uses the validated template build's cpus and memory_mib.
runtime:
$ref: '#/definitions/sandbox.RuntimeRelease'
required:
- expected_generation
type: object
api.SandboxEnrollmentToken:
properties:
enrollment_id:
description: Public, non-secret handle of this command; never a credential. The node it registers reports the same value as enrollment_id.
type: string
expires_at:
type: string
token:
type: string
type: object
api.SandboxEnrollmentTokenRequest:
properties:
max_active:
type: integer
max_retained:
description: Docker never suspends, so Core replaces this with max_active; microsandbox uses both limits.
type: integer
type: object
api.SandboxMutationResponse:
properties:
deleted:
type: boolean
id:
type: string
updated:
type: boolean
type: object
api.SandboxNodeList:
properties:
data:
items:
$ref: '#/definitions/deployment.Node'
type: array
type: object
api.SessionDiagnosticFailure:
properties:
code:
enum:
- harness_error
- model_provider_required
- runtime_unavailable
- runtime_disconnected
- runtime_preparation_failed
- execution_interrupted
- delivery_unconfirmed
- input_rejected
- executor_protocol_error
- core_storage_failed
- internal_error
- environment_connection_timeout
- environment_unavailable
- environment_provisioning_failed
- authentication_error
- rate_limit_exceeded
- usage_limit_exceeded
- server_overloaded
- server_error
- invalid_request
- resource_not_found
- request_timeout
- context_length_exceeded
- cyber_policy
- connection_failed
type: string
failed_at:
type: string
x-nullable: true
params:
type: object
source:
enum:
- turn
- environment
- environment_input
type: string
turn_id:
type: string
type: object
api.SessionDiagnostics:
properties:
failure:
allOf:
- $ref: '#/definitions/api.SessionDiagnosticFailure'
x-nullable: true
object:
enum:
- core.session_diagnostics
type: string
session_id:
type: string
status:
enum:
- idle
- in_progress
- requires_action
- failed
type: string
type: object
api.TurnDiagnostics:
properties:
failure:
allOf:
- $ref: '#/definitions/api.DiagnosticFailure'
x-nullable: true
items:
items:
$ref: '#/definitions/api.ItemDiagnosticTiming'
type: array
items_truncated:
type: boolean
object:
enum:
- core.turn_diagnostics
type: string
session_id:
type: string
status:
type: string
turn_id:
type: string
type: object
coremetrics.Database:
properties:
ping_ms:
$ref: '#/definitions/coremetrics.Latency'
pool:
$ref: '#/definitions/coremetrics.Pool'
series:
items:
$ref: '#/definitions/coremetrics.DatabaseBucket'
type: array
size_bytes:
type: integer
x-nullable: true
type: object
coremetrics.DatabaseBucket:
properties:
ping_p95_ms:
type: number
x-nullable: true
pool_in_use:
type: integer
x-nullable: true
start:
type: string
type: object
coremetrics.Execution:
properties:
connected_daemons:
type: integer
x-nullable: true
in_progress_turns:
type: integer
x-nullable: true
interrupted:
type: integer
x-nullable: true
oldest_queued_seconds:
type: number
x-nullable: true
queue_wait_ms:
$ref: '#/definitions/coremetrics.Latency'
queued_turns:
type: integer
x-nullable: true
series:
items:
$ref: '#/definitions/coremetrics.ExecutionBucket'
type: array
slots_in_use:
type: integer
x-nullable: true
slots_total:
type: integer
x-nullable: true
unavailable:
type: integer
x-nullable: true
waiting_for_daemon:
type: integer
x-nullable: true
type: object
coremetrics.ExecutionBucket:
properties:
in_progress:
type: integer
x-nullable: true
queue_wait_p95_ms:
type: number
x-nullable: true
queued:
type: integer
x-nullable: true
start:
type: string
type: object
coremetrics.Job:
properties:
failed:
type: integer
x-nullable: true
id:
type: string
last_run_at:
type: string
x-nullable: true
processed:
type: integer
x-nullable: true
status:
type: string
type: object
coremetrics.Latency:
properties:
p50:
type: number
x-nullable: true
p95:
type: number
x-nullable: true
type: object
coremetrics.Pool:
properties:
idle:
type: integer
x-nullable: true
in_use:
type: integer
x-nullable: true
max:
type: integer
x-nullable: true
type: object
coremetrics.Process:
properties:
cpu_cores:
type: number
x-nullable: true
cpu_limit_cores:
type: number
x-nullable: true
goroutines:
type: integer
x-nullable: true
memory_bytes:
type: integer
x-nullable: true
memory_limit_bytes:
type: integer
x-nullable: true
rss_bytes:
type: integer
x-nullable: true
series:
items:
$ref: '#/definitions/coremetrics.ProcessBucket'
type: array
type: object
coremetrics.ProcessBucket:
properties:
cpu_cores:
type: number
x-nullable: true
rss_bytes:
type: integer
x-nullable: true
start:
type: string
type: object
coremetrics.Range:
properties:
end:
type: string
resolution_seconds:
type: integer
start:
type: string
type: object
coremetrics.ServiceState:
properties:
execution_owner:
type: boolean
x-nullable: true
revision:
type: string
x-nullable: true
started_at:
type: string
x-nullable: true
status:
type: string
type: object
coremetrics.View:
properties:
database:
$ref: '#/definitions/coremetrics.Database'
execution:
$ref: '#/definitions/coremetrics.Execution'
jobs:
items:
$ref: '#/definitions/coremetrics.Job'
type: array
object:
type: string
process:
$ref: '#/definitions/coremetrics.Process'
range:
$ref: '#/definitions/coremetrics.Range'
service:
$ref: '#/definitions/coremetrics.ServiceState'
type: object
deployment.AddressBindings:
properties:
hosted_sandboxes:
type: integer
nodes:
type: integer
nodes_on_other_address:
type: integer
self_hosted_executors:
type: integer
type: object
deployment.HostHistory:
properties:
points:
items:
$ref: '#/definitions/deployment.HostHistoryPoint'
type: array
resolution_seconds:
type: integer
type: object
deployment.HostHistoryPoint:
properties:
available_disk_bytes_min:
type: integer
x-nullable: true
cpu_utilization_max:
type: number
x-nullable: true
memory_used_bytes_max:
type: integer
x-nullable: true
start:
type: string
type: object
deployment.Node:
properties:
active:
type: integer
available_disk_bytes:
type: integer
available_memory_bytes:
type: integer
cleanup_pending:
type: integer
core_url:
description: |-
The Core address this node enrolled with. A node whose address differs
from the installation public URL receives no new sandboxes; re-add it.
type: string
cpu_count:
type: integer
created_at:
type: string
diagnostic:
description: Fixed reason for the last reported unreadiness; absent while the provider is ready. Clients treat an unknown value as provider_unavailable.
enum:
- provider_unavailable
- docker_unavailable
- docker_limits_unsupported
- runtime_download_failed
- runtime_image_unavailable
- kvm_unavailable
- microsandbox_artifacts_unavailable
- capacity_insufficient
type: string
enrollment_id:
description: The enrollment_id of the command that registered this node (POST /core/v1/sandbox/enrollment-tokens); null for nodes enrolled before Core recorded it.
type: string
x-nullable: true
id:
type: string
last_seen_at:
type: string
max_active:
type: integer
max_retained:
type: integer
name:
type: string
online:
type: boolean
provider:
type: string
provider_ready:
type: boolean
reserved:
type: integer
retained:
type: integer
rollout:
$ref: '#/definitions/deployment.NodeRollout'
running:
type: integer
snapshots:
type: integer
type: object