@archildata/api-types 0.0.35 → 0.0.37
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/index.d.ts +23 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -321,7 +321,7 @@ export interface paths {
|
|
|
321
321
|
patch?: never;
|
|
322
322
|
trace?: never;
|
|
323
323
|
};
|
|
324
|
-
"/api/tokens/{
|
|
324
|
+
"/api/tokens/{tokenId}": {
|
|
325
325
|
parameters: {
|
|
326
326
|
query?: never;
|
|
327
327
|
header?: never;
|
|
@@ -498,6 +498,12 @@ export interface paths {
|
|
|
498
498
|
* cold-boot from the saved disk checkpoint. A running source is
|
|
499
499
|
* resumed after its checkpoint; paused and stopped sources remain
|
|
500
500
|
* inactive. Forked sandboxes may themselves be forked.
|
|
501
|
+
*
|
|
502
|
+
* Passing `checkpoint` forks that saved state without touching the
|
|
503
|
+
* source, so clients can pause once, wait for the checkpoint, and fork
|
|
504
|
+
* it from any number of places. Without `checkpoint` the server pauses a
|
|
505
|
+
* running source inside the request and resumes it afterwards; that path
|
|
506
|
+
* is kept for older clients and is bounded by the request timeout.
|
|
501
507
|
*/
|
|
502
508
|
post: operations["forkSandbox"];
|
|
503
509
|
delete?: never;
|
|
@@ -763,6 +769,13 @@ export interface components {
|
|
|
763
769
|
/** Format: date-time */
|
|
764
770
|
last_active_at: string;
|
|
765
771
|
exit_reason?: string;
|
|
772
|
+
/**
|
|
773
|
+
* @description Disk checkpoint the current session leaves behind. Present while
|
|
774
|
+
* pausing, paused, stopping, or stopped, and committed once the
|
|
775
|
+
* sandbox is paused or stopped. Pass it to the fork endpoint to fork
|
|
776
|
+
* exactly this state.
|
|
777
|
+
*/
|
|
778
|
+
checkpoint?: string;
|
|
766
779
|
};
|
|
767
780
|
SandboxEndpoint: {
|
|
768
781
|
port: number;
|
|
@@ -838,6 +851,14 @@ export interface components {
|
|
|
838
851
|
ForkSandboxRequest: {
|
|
839
852
|
/** @description Name for the fork. A random word-list name is generated when omitted. */
|
|
840
853
|
name?: string;
|
|
854
|
+
/**
|
|
855
|
+
* @description Fork this checkpoint of the source, as returned by pause, stop, or
|
|
856
|
+
* describe, instead of the source's live state. The source is neither
|
|
857
|
+
* paused nor resumed. Only the current session's checkpoint and the
|
|
858
|
+
* one before it are accepted; an uncommitted or superseded checkpoint
|
|
859
|
+
* is rejected with 409.
|
|
860
|
+
*/
|
|
861
|
+
checkpoint?: string;
|
|
841
862
|
};
|
|
842
863
|
ApiResponse_SandboxList: {
|
|
843
864
|
/** @example true */
|
|
@@ -2299,7 +2320,7 @@ export interface operations {
|
|
|
2299
2320
|
header?: never;
|
|
2300
2321
|
path: {
|
|
2301
2322
|
/** @description The token ID (hash) */
|
|
2302
|
-
|
|
2323
|
+
tokenId: string;
|
|
2303
2324
|
};
|
|
2304
2325
|
cookie?: never;
|
|
2305
2326
|
};
|