@continuous-labs/sdk 0.0.5 → 0.0.6
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/README.md +1 -1
- package/esm/funcs/simulations-create-simulation.d.ts +1 -1
- package/esm/funcs/simulations-create-simulation.js +1 -1
- package/esm/funcs/simulations-fork-simulation.d.ts +1 -1
- package/esm/funcs/simulations-fork-simulation.js +1 -1
- package/esm/funcs/simulations-get-simulation.d.ts +1 -1
- package/esm/funcs/simulations-get-simulation.js +1 -1
- package/esm/funcs/simulations-list-simulation-steps.d.ts +1 -1
- package/esm/funcs/simulations-list-simulation-steps.js +1 -1
- package/esm/funcs/simulations-mint-simulation-token.d.ts +1 -1
- package/esm/funcs/simulations-mint-simulation-token.js +1 -1
- package/esm/funcs/simulations-start-simulation.d.ts +1 -1
- package/esm/funcs/simulations-start-simulation.js +1 -1
- package/esm/funcs/simulations-stop-simulation.d.ts +1 -1
- package/esm/funcs/simulations-stop-simulation.js +1 -1
- package/esm/funcs/simulators-build-simulator.d.ts +1 -1
- package/esm/funcs/simulators-build-simulator.js +1 -1
- package/esm/funcs/worlds-build-world.d.ts +1 -1
- package/esm/funcs/worlds-build-world.js +1 -1
- package/esm/funcs/worlds-start-world.d.ts +1 -1
- package/esm/funcs/worlds-start-world.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/build-simulator-request.d.ts +6 -6
- package/esm/models/build-simulator-request.js +1 -1
- package/esm/models/build-world-request.d.ts +2 -2
- package/esm/models/create-simulation-request.d.ts +1 -1
- package/esm/models/created-simulation.d.ts +8 -8
- package/esm/models/created-simulation.js +1 -1
- package/esm/models/list-worlds-response.d.ts +1 -1
- package/esm/models/operations/build-simulator.d.ts +1 -1
- package/esm/models/operations/cancel-simulator-build.d.ts +1 -1
- package/esm/models/operations/cancel-world-build.d.ts +1 -1
- package/esm/models/operations/delete-simulation.d.ts +1 -1
- package/esm/models/operations/delete-simulator.d.ts +1 -1
- package/esm/models/operations/delete-world.d.ts +1 -1
- package/esm/models/operations/fork-simulation.d.ts +1 -1
- package/esm/models/operations/get-simulation.d.ts +1 -1
- package/esm/models/operations/get-simulator.d.ts +1 -1
- package/esm/models/operations/get-world.d.ts +1 -1
- package/esm/models/operations/list-simulation-steps.d.ts +1 -1
- package/esm/models/operations/list-simulations.d.ts +4 -4
- package/esm/models/operations/list-simulations.js +1 -1
- package/esm/models/operations/list-simulators.d.ts +1 -1
- package/esm/models/operations/list-worlds.d.ts +1 -1
- package/esm/models/operations/mint-simulation-token.d.ts +1 -1
- package/esm/models/operations/start-simulation.d.ts +1 -1
- package/esm/models/operations/start-world.d.ts +1 -1
- package/esm/models/operations/stop-simulation.d.ts +1 -1
- package/esm/models/operations/stop-world.d.ts +1 -1
- package/esm/models/simulation-token.d.ts +1 -1
- package/esm/models/simulation.d.ts +7 -7
- package/esm/models/simulation.js +1 -1
- package/esm/models/simulator.d.ts +8 -8
- package/esm/models/simulator.js +2 -2
- package/esm/models/step.d.ts +2 -2
- package/esm/models/world-simulation.d.ts +2 -2
- package/esm/models/world.d.ts +7 -7
- package/esm/models/world.js +1 -1
- package/esm/sdk/simulations.d.ts +7 -7
- package/esm/sdk/simulations.js +7 -7
- package/esm/sdk/simulators.d.ts +1 -1
- package/esm/sdk/simulators.js +1 -1
- package/esm/sdk/worlds.d.ts +2 -2
- package/esm/sdk/worlds.js +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/simulations-create-simulation.ts +1 -1
- package/src/funcs/simulations-fork-simulation.ts +1 -1
- package/src/funcs/simulations-get-simulation.ts +1 -1
- package/src/funcs/simulations-list-simulation-steps.ts +1 -1
- package/src/funcs/simulations-mint-simulation-token.ts +1 -1
- package/src/funcs/simulations-start-simulation.ts +1 -1
- package/src/funcs/simulations-stop-simulation.ts +1 -1
- package/src/funcs/simulators-build-simulator.ts +1 -1
- package/src/funcs/worlds-build-world.ts +1 -1
- package/src/funcs/worlds-start-world.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/build-simulator-request.ts +6 -6
- package/src/models/build-world-request.ts +2 -2
- package/src/models/create-simulation-request.ts +1 -1
- package/src/models/created-simulation.ts +8 -8
- package/src/models/list-worlds-response.ts +1 -1
- package/src/models/operations/build-simulator.ts +1 -1
- package/src/models/operations/cancel-simulator-build.ts +1 -1
- package/src/models/operations/cancel-world-build.ts +1 -1
- package/src/models/operations/delete-simulation.ts +1 -1
- package/src/models/operations/delete-simulator.ts +1 -1
- package/src/models/operations/delete-world.ts +1 -1
- package/src/models/operations/fork-simulation.ts +1 -1
- package/src/models/operations/get-simulation.ts +1 -1
- package/src/models/operations/get-simulator.ts +1 -1
- package/src/models/operations/get-world.ts +1 -1
- package/src/models/operations/list-simulation-steps.ts +1 -1
- package/src/models/operations/list-simulations.ts +4 -4
- package/src/models/operations/list-simulators.ts +1 -1
- package/src/models/operations/list-worlds.ts +1 -1
- package/src/models/operations/mint-simulation-token.ts +1 -1
- package/src/models/operations/start-simulation.ts +1 -1
- package/src/models/operations/start-world.ts +1 -1
- package/src/models/operations/stop-simulation.ts +1 -1
- package/src/models/operations/stop-world.ts +1 -1
- package/src/models/simulation-token.ts +1 -1
- package/src/models/simulation.ts +7 -7
- package/src/models/simulator.ts +8 -8
- package/src/models/step.ts +2 -2
- package/src/models/world-simulation.ts +2 -2
- package/src/models/world.ts +7 -7
- package/src/sdk/simulations.ts +7 -7
- package/src/sdk/simulators.ts +1 -1
- package/src/sdk/worlds.ts +2 -2
|
@@ -6,11 +6,11 @@ import * as z from "zod/v4-mini";
|
|
|
6
6
|
|
|
7
7
|
export type BuildWorldRequest = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Instructions for the builder. At most 16,384 characters and 65,536 UTF-8 bytes; must not be blank or contain U+0000.
|
|
10
10
|
*/
|
|
11
11
|
instructions?: string | undefined;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Simulator IDs for the World.
|
|
14
14
|
*/
|
|
15
15
|
simulators: Array<string>;
|
|
16
16
|
};
|
|
@@ -12,7 +12,7 @@ import * as types from "../types/primitives.js";
|
|
|
12
12
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Current Simulation
|
|
15
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
16
16
|
*/
|
|
17
17
|
export const CreatedSimulationStatus = {
|
|
18
18
|
Running: "running",
|
|
@@ -20,7 +20,7 @@ export const CreatedSimulationStatus = {
|
|
|
20
20
|
Stopped: "stopped",
|
|
21
21
|
} as const;
|
|
22
22
|
/**
|
|
23
|
-
* Current Simulation
|
|
23
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
24
24
|
*/
|
|
25
25
|
export type CreatedSimulationStatus = OpenEnum<typeof CreatedSimulationStatus>;
|
|
26
26
|
|
|
@@ -30,7 +30,7 @@ export type CreatedSimulation = {
|
|
|
30
30
|
*/
|
|
31
31
|
createdAt: Date;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Base URL for requests to the Simulation.
|
|
34
34
|
*/
|
|
35
35
|
endpoint: string;
|
|
36
36
|
/**
|
|
@@ -38,7 +38,7 @@ export type CreatedSimulation = {
|
|
|
38
38
|
*/
|
|
39
39
|
expiresAt: Date;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Simulation ID.
|
|
42
42
|
*/
|
|
43
43
|
id: string;
|
|
44
44
|
/**
|
|
@@ -46,19 +46,19 @@ export type CreatedSimulation = {
|
|
|
46
46
|
*/
|
|
47
47
|
name: string;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Source Simulation ID for a fork, or null.
|
|
50
50
|
*/
|
|
51
51
|
parentId: string | null;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* ID of the Simulator.
|
|
54
54
|
*/
|
|
55
55
|
simulatorId: string;
|
|
56
56
|
/**
|
|
57
|
-
* Current Simulation
|
|
57
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
58
58
|
*/
|
|
59
59
|
status: CreatedSimulationStatus;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Token for requests to the Simulation endpoint. Send it in the X-Continuous-Simulation-Token header. It is returned only here; list and get omit it. Create more with POST /v1/simulations/{id}/tokens.
|
|
62
62
|
*/
|
|
63
63
|
token: string;
|
|
64
64
|
};
|
|
@@ -14,7 +14,7 @@ export type Spec = {
|
|
|
14
14
|
export type BuildSimulatorRequest = {
|
|
15
15
|
request: models.BuildSimulatorRequest;
|
|
16
16
|
/**
|
|
17
|
-
* OpenAPI or WSDL
|
|
17
|
+
* OpenAPI or WSDL document, UTF-8 encoded, at most 64 MiB. Required unless the request is an incremental build (parent_id and instructions, no spec).
|
|
18
18
|
*/
|
|
19
19
|
spec?: Spec | Blob | undefined;
|
|
20
20
|
};
|
|
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* Optional
|
|
10
|
+
* Optional status filter.
|
|
11
11
|
*/
|
|
12
12
|
export const ListSimulationsStatus = {
|
|
13
13
|
Running: "running",
|
|
@@ -15,17 +15,17 @@ export const ListSimulationsStatus = {
|
|
|
15
15
|
Stopped: "stopped",
|
|
16
16
|
} as const;
|
|
17
17
|
/**
|
|
18
|
-
* Optional
|
|
18
|
+
* Optional status filter.
|
|
19
19
|
*/
|
|
20
20
|
export type ListSimulationsStatus = ClosedEnum<typeof ListSimulationsStatus>;
|
|
21
21
|
|
|
22
22
|
export type ListSimulationsRequest = {
|
|
23
23
|
/**
|
|
24
|
-
* Optional
|
|
24
|
+
* Optional status filter.
|
|
25
25
|
*/
|
|
26
26
|
status?: ListSimulationsStatus | undefined;
|
|
27
27
|
/**
|
|
28
|
-
* Optional
|
|
28
|
+
* Optional Simulator ID filter.
|
|
29
29
|
*/
|
|
30
30
|
simulatorId?: string | undefined;
|
|
31
31
|
/**
|
|
@@ -25,7 +25,7 @@ export type ListSimulatorsRequest = {
|
|
|
25
25
|
*/
|
|
26
26
|
status?: ListSimulatorsStatus | undefined;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Return only the Simulator with this exact name. For a Simulator from the Continuous catalog, prefix the name with continuous/. Names cannot start with smr_.
|
|
29
29
|
*/
|
|
30
30
|
name?: string | undefined;
|
|
31
31
|
/**
|
package/src/models/simulation.ts
CHANGED
|
@@ -12,7 +12,7 @@ import * as types from "../types/primitives.js";
|
|
|
12
12
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Current Simulation
|
|
15
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
16
16
|
*/
|
|
17
17
|
export const SimulationStatus = {
|
|
18
18
|
Running: "running",
|
|
@@ -20,7 +20,7 @@ export const SimulationStatus = {
|
|
|
20
20
|
Stopped: "stopped",
|
|
21
21
|
} as const;
|
|
22
22
|
/**
|
|
23
|
-
* Current Simulation
|
|
23
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
24
24
|
*/
|
|
25
25
|
export type SimulationStatus = OpenEnum<typeof SimulationStatus>;
|
|
26
26
|
|
|
@@ -30,11 +30,11 @@ export type Simulation = {
|
|
|
30
30
|
*/
|
|
31
31
|
createdAt: Date;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Base URL for requests to the Simulation.
|
|
34
34
|
*/
|
|
35
35
|
endpoint: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Simulation ID.
|
|
38
38
|
*/
|
|
39
39
|
id: string;
|
|
40
40
|
/**
|
|
@@ -42,15 +42,15 @@ export type Simulation = {
|
|
|
42
42
|
*/
|
|
43
43
|
name: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Source Simulation ID for a fork, or null.
|
|
46
46
|
*/
|
|
47
47
|
parentId: string | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* ID of the Simulator.
|
|
50
50
|
*/
|
|
51
51
|
simulatorId: string;
|
|
52
52
|
/**
|
|
53
|
-
* Current Simulation
|
|
53
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
54
54
|
*/
|
|
55
55
|
status: SimulationStatus;
|
|
56
56
|
};
|
package/src/models/simulator.ts
CHANGED
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
} from "./resource-error.js";
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* Simulator
|
|
19
|
+
* workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
|
|
20
20
|
*/
|
|
21
21
|
export const Source = {
|
|
22
22
|
Workspace: "workspace",
|
|
23
23
|
Catalog: "catalog",
|
|
24
24
|
} as const;
|
|
25
25
|
/**
|
|
26
|
-
* Simulator
|
|
26
|
+
* workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
|
|
27
27
|
*/
|
|
28
28
|
export type Source = OpenEnum<typeof Source>;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
|
|
32
32
|
*/
|
|
33
33
|
export const SimulatorStatus = {
|
|
34
34
|
Building: "building",
|
|
@@ -37,7 +37,7 @@ export const SimulatorStatus = {
|
|
|
37
37
|
Canceled: "canceled",
|
|
38
38
|
} as const;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
|
|
41
41
|
*/
|
|
42
42
|
export type SimulatorStatus = OpenEnum<typeof SimulatorStatus>;
|
|
43
43
|
|
|
@@ -48,7 +48,7 @@ export type Simulator = {
|
|
|
48
48
|
createdAt: Date;
|
|
49
49
|
error: ResourceError | null;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Simulator ID.
|
|
52
52
|
*/
|
|
53
53
|
id: string;
|
|
54
54
|
/**
|
|
@@ -56,15 +56,15 @@ export type Simulator = {
|
|
|
56
56
|
*/
|
|
57
57
|
name: string;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Parent Simulator ID, or null.
|
|
60
60
|
*/
|
|
61
61
|
parentId: string | null;
|
|
62
62
|
/**
|
|
63
|
-
* Simulator
|
|
63
|
+
* workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
|
|
64
64
|
*/
|
|
65
65
|
source: Source;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
|
|
68
68
|
*/
|
|
69
69
|
status: SimulatorStatus;
|
|
70
70
|
};
|
package/src/models/step.ts
CHANGED
|
@@ -10,11 +10,11 @@ import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
|
10
10
|
|
|
11
11
|
export type Step = {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* HTTP method and path of the request that produced this step, without the query string, for example POST /v1/widgets.
|
|
14
14
|
*/
|
|
15
15
|
label: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Step number. Use it as at_step when you fork.
|
|
18
18
|
*/
|
|
19
19
|
step: number;
|
|
20
20
|
};
|
|
@@ -11,11 +11,11 @@ import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
|
11
11
|
|
|
12
12
|
export type WorldSimulation = {
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* ID of the created Simulation.
|
|
15
15
|
*/
|
|
16
16
|
id: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* ID of the Simulator that this Simulation runs.
|
|
19
19
|
*/
|
|
20
20
|
simulatorId: string;
|
|
21
21
|
};
|
package/src/models/world.ts
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./world-simulation.js";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* building while the build runs; ready when the World can be started; running or stopped once its Simulations exist; failed when the first start could not create its Simulations; canceled when the build was canceled.
|
|
24
24
|
*/
|
|
25
25
|
export const WorldStatus = {
|
|
26
26
|
Building: "building",
|
|
@@ -31,18 +31,18 @@ export const WorldStatus = {
|
|
|
31
31
|
Canceled: "canceled",
|
|
32
32
|
} as const;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* building while the build runs; ready when the World can be started; running or stopped once its Simulations exist; failed when the first start could not create its Simulations; canceled when the build was canceled.
|
|
35
35
|
*/
|
|
36
36
|
export type WorldStatus = OpenEnum<typeof WorldStatus>;
|
|
37
37
|
|
|
38
38
|
export type World = {
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* World creation time.
|
|
41
41
|
*/
|
|
42
42
|
createdAt: Date;
|
|
43
43
|
error: ResourceError | null;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* World ID.
|
|
46
46
|
*/
|
|
47
47
|
id: string;
|
|
48
48
|
/**
|
|
@@ -50,15 +50,15 @@ export type World = {
|
|
|
50
50
|
*/
|
|
51
51
|
instructions: string;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Simulations in the World. Empty unless the World is running or stopped.
|
|
54
54
|
*/
|
|
55
55
|
simulations: Array<WorldSimulation>;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Simulator IDs in member order.
|
|
58
58
|
*/
|
|
59
59
|
simulators: Array<string>;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* building while the build runs; ready when the World can be started; running or stopped once its Simulations exist; failed when the first start could not create its Simulations; canceled when the build was canceled.
|
|
62
62
|
*/
|
|
63
63
|
status: WorldStatus;
|
|
64
64
|
};
|
package/src/sdk/simulations.ts
CHANGED
|
@@ -38,7 +38,7 @@ export class Simulations extends ClientSDK {
|
|
|
38
38
|
* Create Simulation
|
|
39
39
|
*
|
|
40
40
|
* @remarks
|
|
41
|
-
* Creates
|
|
41
|
+
* Creates a Simulation from a ready Simulator and starts it. The response includes the Simulation endpoint and a token that expires in 1 hour. List and get do not return the token.
|
|
42
42
|
*/
|
|
43
43
|
async createSimulation(
|
|
44
44
|
request: models.CreateSimulationRequest,
|
|
@@ -72,7 +72,7 @@ export class Simulations extends ClientSDK {
|
|
|
72
72
|
* Get Simulation
|
|
73
73
|
*
|
|
74
74
|
* @remarks
|
|
75
|
-
* Returns a Simulation and its current
|
|
75
|
+
* Returns a Simulation and its current status. The response does not include tokens.
|
|
76
76
|
*/
|
|
77
77
|
async getSimulation(
|
|
78
78
|
request: operations.GetSimulationRequest,
|
|
@@ -89,7 +89,7 @@ export class Simulations extends ClientSDK {
|
|
|
89
89
|
* Fork Simulation
|
|
90
90
|
*
|
|
91
91
|
* @remarks
|
|
92
|
-
* Creates a Simulation
|
|
92
|
+
* Creates a new Simulation from the source Simulation's current state, or from an earlier recorded step when you set at_step. The source must be running or paused; a stopped source returns 409 simulation_stopped. Forking does not change the source. The response includes the new endpoint and a token that expires in 1 hour.
|
|
93
93
|
*/
|
|
94
94
|
async forkSimulation(
|
|
95
95
|
request: operations.ForkSimulationRequest,
|
|
@@ -106,7 +106,7 @@ export class Simulations extends ClientSDK {
|
|
|
106
106
|
* Start Simulation
|
|
107
107
|
*
|
|
108
108
|
* @remarks
|
|
109
|
-
* Starts a stopped Simulation from its saved
|
|
109
|
+
* Starts a stopped Simulation from its saved state. The endpoint serves requests once the response returns. A Simulation that is already running or paused is returned unchanged.
|
|
110
110
|
*/
|
|
111
111
|
async startSimulation(
|
|
112
112
|
request: operations.StartSimulationRequest,
|
|
@@ -123,7 +123,7 @@ export class Simulations extends ClientSDK {
|
|
|
123
123
|
* List Simulation Steps
|
|
124
124
|
*
|
|
125
125
|
* @remarks
|
|
126
|
-
*
|
|
126
|
+
* Lists the Simulation's steps in order. Each request that changed state is one step; a request that only reads registers none. Pass a step number as at_step when you fork to start the child from the state after that step. A stopped Simulation returns 409 simulation_stopped; start it first.
|
|
127
127
|
*/
|
|
128
128
|
async listSimulationSteps(
|
|
129
129
|
request: operations.ListSimulationStepsRequest,
|
|
@@ -140,7 +140,7 @@ export class Simulations extends ClientSDK {
|
|
|
140
140
|
* Stop Simulation
|
|
141
141
|
*
|
|
142
142
|
* @remarks
|
|
143
|
-
* Stops a Simulation and saves its
|
|
143
|
+
* Stops a Simulation and saves its state. Requests to its endpoint return 409 simulation_stopped until you start it again. A stopped Simulation is returned unchanged.
|
|
144
144
|
*/
|
|
145
145
|
async stopSimulation(
|
|
146
146
|
request: operations.StopSimulationRequest,
|
|
@@ -157,7 +157,7 @@ export class Simulations extends ClientSDK {
|
|
|
157
157
|
* Mint Simulation Token
|
|
158
158
|
*
|
|
159
159
|
* @remarks
|
|
160
|
-
*
|
|
160
|
+
* Creates another token for requests to the Simulation endpoint. Send it in the X-Continuous-Simulation-Token header. Earlier tokens stay valid until they expire.
|
|
161
161
|
*/
|
|
162
162
|
async mintSimulationToken(
|
|
163
163
|
request: operations.MintSimulationTokenRequest,
|
package/src/sdk/simulators.ts
CHANGED
|
@@ -34,7 +34,7 @@ export class Simulators extends ClientSDK {
|
|
|
34
34
|
* Build Simulator
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
*
|
|
37
|
+
* Starts an asynchronous Simulator build and returns the Simulator with status building. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
|
|
38
38
|
*/
|
|
39
39
|
async buildSimulator(
|
|
40
40
|
request: operations.BuildSimulatorRequest,
|
package/src/sdk/worlds.ts
CHANGED
|
@@ -36,7 +36,7 @@ export class Worlds extends ClientSDK {
|
|
|
36
36
|
* Build World
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
*
|
|
39
|
+
* Starts an asynchronous World build from one or more ready Simulators and returns the World in the building state. Start the World once it is ready to create its Simulations.
|
|
40
40
|
*/
|
|
41
41
|
async buildWorld(
|
|
42
42
|
request: models.BuildWorldRequest,
|
|
@@ -104,7 +104,7 @@ export class Worlds extends ClientSDK {
|
|
|
104
104
|
* Start World
|
|
105
105
|
*
|
|
106
106
|
* @remarks
|
|
107
|
-
*
|
|
107
|
+
* Starts every Simulation in the World. The first start creates the Simulations; later starts restore them from saved state. The World must be ready or stopped, and the workspace must have room for all members under its active-Simulation limit. A running World is returned unchanged.
|
|
108
108
|
*/
|
|
109
109
|
async startWorld(
|
|
110
110
|
request: operations.StartWorldRequest,
|