@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.
Files changed (111) hide show
  1. package/README.md +1 -1
  2. package/esm/funcs/simulations-create-simulation.d.ts +1 -1
  3. package/esm/funcs/simulations-create-simulation.js +1 -1
  4. package/esm/funcs/simulations-fork-simulation.d.ts +1 -1
  5. package/esm/funcs/simulations-fork-simulation.js +1 -1
  6. package/esm/funcs/simulations-get-simulation.d.ts +1 -1
  7. package/esm/funcs/simulations-get-simulation.js +1 -1
  8. package/esm/funcs/simulations-list-simulation-steps.d.ts +1 -1
  9. package/esm/funcs/simulations-list-simulation-steps.js +1 -1
  10. package/esm/funcs/simulations-mint-simulation-token.d.ts +1 -1
  11. package/esm/funcs/simulations-mint-simulation-token.js +1 -1
  12. package/esm/funcs/simulations-start-simulation.d.ts +1 -1
  13. package/esm/funcs/simulations-start-simulation.js +1 -1
  14. package/esm/funcs/simulations-stop-simulation.d.ts +1 -1
  15. package/esm/funcs/simulations-stop-simulation.js +1 -1
  16. package/esm/funcs/simulators-build-simulator.d.ts +1 -1
  17. package/esm/funcs/simulators-build-simulator.js +1 -1
  18. package/esm/funcs/worlds-build-world.d.ts +1 -1
  19. package/esm/funcs/worlds-build-world.js +1 -1
  20. package/esm/funcs/worlds-start-world.d.ts +1 -1
  21. package/esm/funcs/worlds-start-world.js +1 -1
  22. package/esm/lib/config.d.ts +2 -2
  23. package/esm/lib/config.js +2 -2
  24. package/esm/models/build-simulator-request.d.ts +6 -6
  25. package/esm/models/build-simulator-request.js +1 -1
  26. package/esm/models/build-world-request.d.ts +2 -2
  27. package/esm/models/create-simulation-request.d.ts +1 -1
  28. package/esm/models/created-simulation.d.ts +8 -8
  29. package/esm/models/created-simulation.js +1 -1
  30. package/esm/models/list-worlds-response.d.ts +1 -1
  31. package/esm/models/operations/build-simulator.d.ts +1 -1
  32. package/esm/models/operations/cancel-simulator-build.d.ts +1 -1
  33. package/esm/models/operations/cancel-world-build.d.ts +1 -1
  34. package/esm/models/operations/delete-simulation.d.ts +1 -1
  35. package/esm/models/operations/delete-simulator.d.ts +1 -1
  36. package/esm/models/operations/delete-world.d.ts +1 -1
  37. package/esm/models/operations/fork-simulation.d.ts +1 -1
  38. package/esm/models/operations/get-simulation.d.ts +1 -1
  39. package/esm/models/operations/get-simulator.d.ts +1 -1
  40. package/esm/models/operations/get-world.d.ts +1 -1
  41. package/esm/models/operations/list-simulation-steps.d.ts +1 -1
  42. package/esm/models/operations/list-simulations.d.ts +4 -4
  43. package/esm/models/operations/list-simulations.js +1 -1
  44. package/esm/models/operations/list-simulators.d.ts +1 -1
  45. package/esm/models/operations/list-worlds.d.ts +1 -1
  46. package/esm/models/operations/mint-simulation-token.d.ts +1 -1
  47. package/esm/models/operations/start-simulation.d.ts +1 -1
  48. package/esm/models/operations/start-world.d.ts +1 -1
  49. package/esm/models/operations/stop-simulation.d.ts +1 -1
  50. package/esm/models/operations/stop-world.d.ts +1 -1
  51. package/esm/models/simulation-token.d.ts +1 -1
  52. package/esm/models/simulation.d.ts +7 -7
  53. package/esm/models/simulation.js +1 -1
  54. package/esm/models/simulator.d.ts +8 -8
  55. package/esm/models/simulator.js +2 -2
  56. package/esm/models/step.d.ts +2 -2
  57. package/esm/models/world-simulation.d.ts +2 -2
  58. package/esm/models/world.d.ts +7 -7
  59. package/esm/models/world.js +1 -1
  60. package/esm/sdk/simulations.d.ts +7 -7
  61. package/esm/sdk/simulations.js +7 -7
  62. package/esm/sdk/simulators.d.ts +1 -1
  63. package/esm/sdk/simulators.js +1 -1
  64. package/esm/sdk/worlds.d.ts +2 -2
  65. package/esm/sdk/worlds.js +2 -2
  66. package/jsr.json +1 -1
  67. package/package.json +1 -1
  68. package/src/funcs/simulations-create-simulation.ts +1 -1
  69. package/src/funcs/simulations-fork-simulation.ts +1 -1
  70. package/src/funcs/simulations-get-simulation.ts +1 -1
  71. package/src/funcs/simulations-list-simulation-steps.ts +1 -1
  72. package/src/funcs/simulations-mint-simulation-token.ts +1 -1
  73. package/src/funcs/simulations-start-simulation.ts +1 -1
  74. package/src/funcs/simulations-stop-simulation.ts +1 -1
  75. package/src/funcs/simulators-build-simulator.ts +1 -1
  76. package/src/funcs/worlds-build-world.ts +1 -1
  77. package/src/funcs/worlds-start-world.ts +1 -1
  78. package/src/lib/config.ts +2 -2
  79. package/src/models/build-simulator-request.ts +6 -6
  80. package/src/models/build-world-request.ts +2 -2
  81. package/src/models/create-simulation-request.ts +1 -1
  82. package/src/models/created-simulation.ts +8 -8
  83. package/src/models/list-worlds-response.ts +1 -1
  84. package/src/models/operations/build-simulator.ts +1 -1
  85. package/src/models/operations/cancel-simulator-build.ts +1 -1
  86. package/src/models/operations/cancel-world-build.ts +1 -1
  87. package/src/models/operations/delete-simulation.ts +1 -1
  88. package/src/models/operations/delete-simulator.ts +1 -1
  89. package/src/models/operations/delete-world.ts +1 -1
  90. package/src/models/operations/fork-simulation.ts +1 -1
  91. package/src/models/operations/get-simulation.ts +1 -1
  92. package/src/models/operations/get-simulator.ts +1 -1
  93. package/src/models/operations/get-world.ts +1 -1
  94. package/src/models/operations/list-simulation-steps.ts +1 -1
  95. package/src/models/operations/list-simulations.ts +4 -4
  96. package/src/models/operations/list-simulators.ts +1 -1
  97. package/src/models/operations/list-worlds.ts +1 -1
  98. package/src/models/operations/mint-simulation-token.ts +1 -1
  99. package/src/models/operations/start-simulation.ts +1 -1
  100. package/src/models/operations/start-world.ts +1 -1
  101. package/src/models/operations/stop-simulation.ts +1 -1
  102. package/src/models/operations/stop-world.ts +1 -1
  103. package/src/models/simulation-token.ts +1 -1
  104. package/src/models/simulation.ts +7 -7
  105. package/src/models/simulator.ts +8 -8
  106. package/src/models/step.ts +2 -2
  107. package/src/models/world-simulation.ts +2 -2
  108. package/src/models/world.ts +7 -7
  109. package/src/sdk/simulations.ts +7 -7
  110. package/src/sdk/simulators.ts +1 -1
  111. 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
- * Build guidance. At most 16,384 characters and 65,536 UTF-8 bytes. U+0000 is not permitted.
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
- * Stable Simulator IDs for the World.
13
+ * Simulator IDs for the World.
14
14
  */
15
15
  simulators: Array<string>;
16
16
  };
@@ -11,7 +11,7 @@ export type CreateSimulationRequest = {
11
11
  */
12
12
  name?: string | undefined;
13
13
  /**
14
- * Stable ID of the ready Simulator.
14
+ * ID of the ready Simulator.
15
15
  */
16
16
  simulatorId: string;
17
17
  };
@@ -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 status.
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 status.
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
- * Data-plane endpoint for the Simulation.
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
- * Stable Simulation ID.
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
- * Stable source Simulation ID for a fork, or null.
49
+ * Source Simulation ID for a fork, or null.
50
50
  */
51
51
  parentId: string | null;
52
52
  /**
53
- * Stable ID of the Simulator.
53
+ * ID of the Simulator.
54
54
  */
55
55
  simulatorId: string;
56
56
  /**
57
- * Current Simulation status.
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
- * One-time data-plane token.
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
  };
@@ -12,7 +12,7 @@ import { World, World$inboundSchema } from "./world.js";
12
12
 
13
13
  export type ListWorldsResponse = {
14
14
  /**
15
- * Cursor for the next page, or null when this is the last page.
15
+ * Cursor for the next page, or null.
16
16
  */
17
17
  nextCursor: string | null;
18
18
  /**
@@ -14,7 +14,7 @@ export type Spec = {
14
14
  export type BuildSimulatorRequest = {
15
15
  request: models.BuildSimulatorRequest;
16
16
  /**
17
- * OpenAPI or WSDL file. A spec build sends it. At most 67,108,864 UTF-8 bytes.
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
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type CancelSimulatorBuildRequest = {
8
8
  /**
9
- * Stable Simulator ID.
9
+ * Simulator ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type CancelWorldBuildRequest = {
8
8
  /**
9
- * Stable World ID.
9
+ * World ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type DeleteSimulationRequest = {
8
8
  /**
9
- * Stable resource ID.
9
+ * Simulation ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type DeleteSimulatorRequest = {
8
8
  /**
9
- * Stable Simulator ID.
9
+ * Simulator ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type DeleteWorldRequest = {
8
8
  /**
9
- * Stable World ID.
9
+ * World ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -7,7 +7,7 @@ import * as models from "../index.js";
7
7
 
8
8
  export type ForkSimulationRequest = {
9
9
  /**
10
- * Stable source Simulation ID.
10
+ * Source Simulation ID.
11
11
  */
12
12
  id: string;
13
13
  body: models.ForkSimulationRequest;
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type GetSimulationRequest = {
8
8
  /**
9
- * Stable Simulation ID.
9
+ * Simulation ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type GetSimulatorRequest = {
8
8
  /**
9
- * Stable Simulator ID.
9
+ * Simulator ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type GetWorldRequest = {
8
8
  /**
9
- * Stable World ID.
9
+ * World ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type ListSimulationStepsRequest = {
8
8
  /**
9
- * Stable Simulation ID.
9
+ * Simulation ID.
10
10
  */
11
11
  id: string;
12
12
  /**
@@ -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 lifecycle status filter.
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 lifecycle status filter.
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 lifecycle status filter.
24
+ * Optional status filter.
25
25
  */
26
26
  status?: ListSimulationsStatus | undefined;
27
27
  /**
28
- * Optional stable Simulator ID filter.
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
- * Optional exact Simulator name. Prefix a catalog name with continuous/. Names cannot start with smr_.
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
  /**
@@ -10,7 +10,7 @@ export type ListWorldsRequest = {
10
10
  */
11
11
  limit?: number | undefined;
12
12
  /**
13
- * Opaque cursor from the previous page.
13
+ * Opaque next_cursor value from a previous page.
14
14
  */
15
15
  cursor?: string | undefined;
16
16
  };
@@ -7,7 +7,7 @@ import * as models from "../index.js";
7
7
 
8
8
  export type MintSimulationTokenRequest = {
9
9
  /**
10
- * Stable Simulation ID.
10
+ * Simulation ID.
11
11
  */
12
12
  id: string;
13
13
  body: models.MintSimulationTokenRequest;
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type StartSimulationRequest = {
8
8
  /**
9
- * Stable Simulation ID.
9
+ * Simulation ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type StartWorldRequest = {
8
8
  /**
9
- * Stable World ID.
9
+ * World ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type StopSimulationRequest = {
8
8
  /**
9
- * Stable Simulation ID.
9
+ * Simulation ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type StopWorldRequest = {
8
8
  /**
9
- * Stable World ID.
9
+ * World ID.
10
10
  */
11
11
  id: string;
12
12
  };
@@ -15,7 +15,7 @@ export type SimulationToken = {
15
15
  */
16
16
  expiresAt: Date;
17
17
  /**
18
- * New data-plane token.
18
+ * New token for requests to the Simulation endpoint. Send it in the X-Continuous-Simulation-Token header.
19
19
  */
20
20
  token: string;
21
21
  };
@@ -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 status.
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 status.
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
- * Data-plane endpoint for the Simulation.
33
+ * Base URL for requests to the Simulation.
34
34
  */
35
35
  endpoint: string;
36
36
  /**
37
- * Stable Simulation ID.
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
- * Stable source Simulation ID for a fork, or null.
45
+ * Source Simulation ID for a fork, or null.
46
46
  */
47
47
  parentId: string | null;
48
48
  /**
49
- * Stable ID of the Simulator.
49
+ * ID of the Simulator.
50
50
  */
51
51
  simulatorId: string;
52
52
  /**
53
- * Current Simulation status.
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
  };
@@ -16,19 +16,19 @@ import {
16
16
  } from "./resource-error.js";
17
17
 
18
18
  /**
19
- * Simulator source.
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 source.
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
- * Current build status.
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
- * Current build status.
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
- * Stable Simulator ID.
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
- * Stable parent Simulator ID, or null.
59
+ * Parent Simulator ID, or null.
60
60
  */
61
61
  parentId: string | null;
62
62
  /**
63
- * Simulator source.
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
- * Current build status.
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
  };
@@ -10,11 +10,11 @@ import { SDKValidationError } from "./errors/sdk-validation-error.js";
10
10
 
11
11
  export type Step = {
12
12
  /**
13
- * Request label. It usually contains the HTTP method and path.
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
- * Completed request number. Use this value as at_step when you fork the Simulation.
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
- * Stable ID of the created Simulation.
14
+ * ID of the created Simulation.
15
15
  */
16
16
  id: string;
17
17
  /**
18
- * Stable ID of the Simulator that this Simulation runs.
18
+ * ID of the Simulator that this Simulation runs.
19
19
  */
20
20
  simulatorId: string;
21
21
  };
@@ -20,7 +20,7 @@ import {
20
20
  } from "./world-simulation.js";
21
21
 
22
22
  /**
23
- * Current World lifecycle status.
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
- * Current World lifecycle status.
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
- * Time when the World build started.
40
+ * World creation time.
41
41
  */
42
42
  createdAt: Date;
43
43
  error: ResourceError | null;
44
44
  /**
45
- * Stable World ID.
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
- * Created member Simulations. This list is empty before first start.
53
+ * Simulations in the World. Empty unless the World is running or stopped.
54
54
  */
55
55
  simulations: Array<WorldSimulation>;
56
56
  /**
57
- * Stable Simulator IDs in member order.
57
+ * Simulator IDs in member order.
58
58
  */
59
59
  simulators: Array<string>;
60
60
  /**
61
- * Current World lifecycle status.
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
  };
@@ -38,7 +38,7 @@ export class Simulations extends ClientSDK {
38
38
  * Create Simulation
39
39
  *
40
40
  * @remarks
41
- * Creates an isolated runtime from a ready Simulator. The response includes its endpoint and a 1-hour token.
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 runtime status. The response does not include data-plane tokens.
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 with a 1-hour token. The source Simulation continues to run.
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 runtime state. Its endpoint becomes available after the runtime starts.
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
- * Returns recorded steps for a running or paused Simulation. Use any step to create a deterministic fork.
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 runtime state. You can start it later from the saved state.
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
- * Mints an expiring data-plane token. Send it in X-Continuous-Simulation-Token. Other unexpired tokens remain valid.
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,
@@ -34,7 +34,7 @@ export class Simulators extends ClientSDK {
34
34
  * Build Simulator
35
35
  *
36
36
  * @remarks
37
- * Creates a Simulator from an OpenAPI or WSDL source. The build runs asynchronously. Send multipart/form-data with one JSON request part, and one spec file part for a spec build.
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
- * Builds a World definition from stable Simulator IDs. Start the World to create its Simulations.
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
- * Creates member Simulations on first start. Later starts restore stopped Simulations from saved state.
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,