@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
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Speakeasy generates this SDK from the public OpenAPI contract in [continuous-lab
|
|
|
7
7
|
<!-- Start Summary [summary] -->
|
|
8
8
|
## Summary
|
|
9
9
|
|
|
10
|
-
Continuous Simulation API:
|
|
10
|
+
Continuous Simulation API: Build Simulators from OpenAPI or WSDL documents, create Simulations from them, and build Worlds that run Simulations together. Authenticate every request with an API key sent as a Bearer token.
|
|
11
11
|
<!-- End Summary [summary] -->
|
|
12
12
|
|
|
13
13
|
<!-- Start Table of Contents [toc] -->
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Create Simulation
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Creates
|
|
15
|
+
* 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.
|
|
16
16
|
*/
|
|
17
17
|
export declare function simulationsCreateSimulation(client: ContinuousCore, request: models.CreateSimulationRequest, options?: RequestOptions): APIPromise<Result<models.CreatedSimulation, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=simulations-create-simulation.d.ts.map
|
|
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
16
16
|
* Create Simulation
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Creates
|
|
19
|
+
* 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.
|
|
20
20
|
*/
|
|
21
21
|
export function simulationsCreateSimulation(client, request, options) {
|
|
22
22
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Fork Simulation
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Creates a Simulation
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function simulationsForkSimulation(client: ContinuousCore, request: operations.ForkSimulationRequest, options?: RequestOptions): APIPromise<Result<models.CreatedSimulation, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=simulations-fork-simulation.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Fork Simulation
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Creates a Simulation
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function simulationsForkSimulation(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Get Simulation
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Returns a Simulation and its current
|
|
16
|
+
* Returns a Simulation and its current status. The response does not include tokens.
|
|
17
17
|
*/
|
|
18
18
|
export declare function simulationsGetSimulation(client: ContinuousCore, request: operations.GetSimulationRequest, options?: RequestOptions): APIPromise<Result<models.Simulation, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=simulations-get-simulation.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Get Simulation
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Returns a Simulation and its current
|
|
20
|
+
* Returns a Simulation and its current status. The response does not include tokens.
|
|
21
21
|
*/
|
|
22
22
|
export function simulationsGetSimulation(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* List Simulation Steps
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function simulationsListSimulationSteps(client: ContinuousCore, request: operations.ListSimulationStepsRequest, options?: RequestOptions): APIPromise<Result<models.ListSimulationStepsResponse, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=simulations-list-simulation-steps.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* List Simulation Steps
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
*
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function simulationsListSimulationSteps(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Mint Simulation Token
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function simulationsMintSimulationToken(client: ContinuousCore, request: operations.MintSimulationTokenRequest, options?: RequestOptions): APIPromise<Result<models.SimulationToken, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=simulations-mint-simulation-token.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Mint Simulation Token
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
*
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function simulationsMintSimulationToken(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Start Simulation
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Starts a stopped Simulation from its saved
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function simulationsStartSimulation(client: ContinuousCore, request: operations.StartSimulationRequest, options?: RequestOptions): APIPromise<Result<models.Simulation, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=simulations-start-simulation.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Start Simulation
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Starts a stopped Simulation from its saved
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function simulationsStartSimulation(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Stop Simulation
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Stops a Simulation and saves its
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function simulationsStopSimulation(client: ContinuousCore, request: operations.StopSimulationRequest, options?: RequestOptions): APIPromise<Result<models.Simulation, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=simulations-stop-simulation.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Stop Simulation
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Stops a Simulation and saves its
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function simulationsStopSimulation(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Build Simulator
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function simulatorsBuildSimulator(client: ContinuousCore, request: operations.BuildSimulatorRequest, options?: RequestOptions): APIPromise<Result<models.Simulator, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=simulators-build-simulator.d.ts.map
|
|
@@ -20,7 +20,7 @@ import { isReadableStream } from "../types/streams.js";
|
|
|
20
20
|
* Build Simulator
|
|
21
21
|
*
|
|
22
22
|
* @remarks
|
|
23
|
-
*
|
|
23
|
+
* 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.
|
|
24
24
|
*/
|
|
25
25
|
export function simulatorsBuildSimulator(client, request, options) {
|
|
26
26
|
return new APIPromise($do(client, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Build World
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* 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.
|
|
16
16
|
*/
|
|
17
17
|
export declare function worldsBuildWorld(client: ContinuousCore, request: models.BuildWorldRequest, options?: RequestOptions): APIPromise<Result<models.World, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=worlds-build-world.d.ts.map
|
|
@@ -16,7 +16,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
16
16
|
* Build World
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
*
|
|
19
|
+
* 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.
|
|
20
20
|
*/
|
|
21
21
|
export function worldsBuildWorld(client, request, options) {
|
|
22
22
|
return new APIPromise($do(client, request, options));
|
|
@@ -13,7 +13,7 @@ import { Result } from "../types/fp.js";
|
|
|
13
13
|
* Start World
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* 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.
|
|
17
17
|
*/
|
|
18
18
|
export declare function worldsStartWorld(client: ContinuousCore, request: operations.StartWorldRequest, options?: RequestOptions): APIPromise<Result<models.World, errors.ErrorT | ContinuousError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
19
19
|
//# sourceMappingURL=worlds-start-world.d.ts.map
|
|
@@ -17,7 +17,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
17
17
|
* Start World
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
*
|
|
20
|
+
* 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.
|
|
21
21
|
*/
|
|
22
22
|
export function worldsStartWorld(client, request, options) {
|
|
23
23
|
return new APIPromise($do(client, request, options));
|
package/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "v1";
|
|
34
|
-
readonly sdkVersion: "0.0.
|
|
34
|
+
readonly sdkVersion: "0.0.6";
|
|
35
35
|
readonly genVersion: "2.935.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.6 2.935.1 v1 @continuous-labs/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
|
|
|
27
27
|
export const SDK_METADATA = {
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "v1",
|
|
30
|
-
sdkVersion: "0.0.
|
|
30
|
+
sdkVersion: "0.0.6",
|
|
31
31
|
genVersion: "2.935.1",
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 0.0.6 2.935.1 v1 @continuous-labs/sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Model provider that builds the Simulator. Defaults to claude.
|
|
5
5
|
*/
|
|
6
6
|
export declare const Builder: {
|
|
7
7
|
readonly Openai: "openai";
|
|
8
8
|
readonly Claude: "claude";
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Model provider that builds the Simulator. Defaults to claude.
|
|
12
12
|
*/
|
|
13
13
|
export type Builder = ClosedEnum<typeof Builder>;
|
|
14
14
|
/**
|
|
@@ -24,15 +24,15 @@ export declare const SpecKind: {
|
|
|
24
24
|
export type SpecKind = ClosedEnum<typeof SpecKind>;
|
|
25
25
|
export type BuildSimulatorRequest = {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Model provider that builds the Simulator. Defaults to claude.
|
|
28
28
|
*/
|
|
29
29
|
builder?: Builder | undefined;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Regular expressions (RE2 syntax) that select the operations to implement. Each is matched against the OpenAPI operationId or the WSDL operation name; an operation is kept when any expression matches, and an OpenAPI operation without an operationId is dropped. At most 64 expressions of at most 1,024 characters each. Omit or send an empty list to keep every operation. Not allowed for an incremental build.
|
|
32
32
|
*/
|
|
33
33
|
filter?: Array<string> | undefined;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Instructions for the builder. Required for an incremental build. At most 16,384 characters and 65,536 UTF-8 bytes; must not be blank or contain U+0000.
|
|
36
36
|
*/
|
|
37
37
|
instructions?: string | undefined;
|
|
38
38
|
/**
|
|
@@ -40,7 +40,7 @@ export type BuildSimulatorRequest = {
|
|
|
40
40
|
*/
|
|
41
41
|
name?: string | undefined;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Parent Simulator ID. With instructions and no spec this starts an incremental build: the parent must be ready, and the request takes no filter or spec_kind.
|
|
44
44
|
*/
|
|
45
45
|
parentId?: string | undefined;
|
|
46
46
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
export type BuildWorldRequest = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Instructions for the builder. At most 16,384 characters and 65,536 UTF-8 bytes; must not be blank or contain U+0000.
|
|
5
5
|
*/
|
|
6
6
|
instructions?: string | undefined;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Simulator IDs for the World.
|
|
9
9
|
*/
|
|
10
10
|
simulators: Array<string>;
|
|
11
11
|
};
|
|
@@ -3,7 +3,7 @@ import { OpenEnum } from "../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
5
|
/**
|
|
6
|
-
* Current Simulation
|
|
6
|
+
* 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.
|
|
7
7
|
*/
|
|
8
8
|
export declare const CreatedSimulationStatus: {
|
|
9
9
|
readonly Running: "running";
|
|
@@ -11,7 +11,7 @@ export declare const CreatedSimulationStatus: {
|
|
|
11
11
|
readonly Stopped: "stopped";
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Current Simulation
|
|
14
|
+
* 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.
|
|
15
15
|
*/
|
|
16
16
|
export type CreatedSimulationStatus = OpenEnum<typeof CreatedSimulationStatus>;
|
|
17
17
|
export type CreatedSimulation = {
|
|
@@ -20,7 +20,7 @@ export type CreatedSimulation = {
|
|
|
20
20
|
*/
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Base URL for requests to the Simulation.
|
|
24
24
|
*/
|
|
25
25
|
endpoint: string;
|
|
26
26
|
/**
|
|
@@ -28,7 +28,7 @@ export type CreatedSimulation = {
|
|
|
28
28
|
*/
|
|
29
29
|
expiresAt: Date;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Simulation ID.
|
|
32
32
|
*/
|
|
33
33
|
id: string;
|
|
34
34
|
/**
|
|
@@ -36,19 +36,19 @@ export type CreatedSimulation = {
|
|
|
36
36
|
*/
|
|
37
37
|
name: string;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Source Simulation ID for a fork, or null.
|
|
40
40
|
*/
|
|
41
41
|
parentId: string | null;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* ID of the Simulator.
|
|
44
44
|
*/
|
|
45
45
|
simulatorId: string;
|
|
46
46
|
/**
|
|
47
|
-
* Current Simulation
|
|
47
|
+
* 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.
|
|
48
48
|
*/
|
|
49
49
|
status: CreatedSimulationStatus;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* 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.
|
|
52
52
|
*/
|
|
53
53
|
token: string;
|
|
54
54
|
};
|
|
@@ -7,7 +7,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
8
|
import * as types from "../types/primitives.js";
|
|
9
9
|
/**
|
|
10
|
-
* Current Simulation
|
|
10
|
+
* 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.
|
|
11
11
|
*/
|
|
12
12
|
export const CreatedSimulationStatus = {
|
|
13
13
|
Running: "running",
|
|
@@ -4,7 +4,7 @@ import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
|
4
4
|
import { World } from "./world.js";
|
|
5
5
|
export type ListWorldsResponse = {
|
|
6
6
|
/**
|
|
7
|
-
* Cursor for the next page, or null
|
|
7
|
+
* Cursor for the next page, or null.
|
|
8
8
|
*/
|
|
9
9
|
nextCursor: string | null;
|
|
10
10
|
/**
|
|
@@ -7,7 +7,7 @@ export type Spec = {
|
|
|
7
7
|
export type BuildSimulatorRequest = {
|
|
8
8
|
request: models.BuildSimulatorRequest;
|
|
9
9
|
/**
|
|
10
|
-
* OpenAPI or WSDL
|
|
10
|
+
* 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).
|
|
11
11
|
*/
|
|
12
12
|
spec?: Spec | Blob | undefined;
|
|
13
13
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
* Optional
|
|
4
|
+
* Optional status filter.
|
|
5
5
|
*/
|
|
6
6
|
export declare const ListSimulationsStatus: {
|
|
7
7
|
readonly Running: "running";
|
|
@@ -9,16 +9,16 @@ export declare const ListSimulationsStatus: {
|
|
|
9
9
|
readonly Stopped: "stopped";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* Optional
|
|
12
|
+
* Optional status filter.
|
|
13
13
|
*/
|
|
14
14
|
export type ListSimulationsStatus = ClosedEnum<typeof ListSimulationsStatus>;
|
|
15
15
|
export type ListSimulationsRequest = {
|
|
16
16
|
/**
|
|
17
|
-
* Optional
|
|
17
|
+
* Optional status filter.
|
|
18
18
|
*/
|
|
19
19
|
status?: ListSimulationsStatus | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* Optional
|
|
21
|
+
* Optional Simulator ID filter.
|
|
22
22
|
*/
|
|
23
23
|
simulatorId?: string | undefined;
|
|
24
24
|
/**
|
|
@@ -19,7 +19,7 @@ export type ListSimulatorsRequest = {
|
|
|
19
19
|
*/
|
|
20
20
|
status?: ListSimulatorsStatus | undefined;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* 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_.
|
|
23
23
|
*/
|
|
24
24
|
name?: string | undefined;
|
|
25
25
|
/**
|