@continuous-labs/sdk 0.0.5 → 0.0.7

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 (196) hide show
  1. package/README.md +3 -3
  2. package/esm/funcs/simulations-create-simulation.d.ts +1 -1
  3. package/esm/funcs/simulations-create-simulation.js +2 -2
  4. package/esm/funcs/simulations-create-simulation.js.map +1 -1
  5. package/esm/funcs/simulations-delete-simulation.js +2 -2
  6. package/esm/funcs/simulations-delete-simulation.js.map +1 -1
  7. package/esm/funcs/simulations-fork-simulation.d.ts +1 -1
  8. package/esm/funcs/simulations-fork-simulation.js +1 -1
  9. package/esm/funcs/simulations-get-simulation.d.ts +1 -1
  10. package/esm/funcs/simulations-get-simulation.js +2 -2
  11. package/esm/funcs/simulations-get-simulation.js.map +1 -1
  12. package/esm/funcs/simulations-list-simulation-steps.d.ts +1 -1
  13. package/esm/funcs/simulations-list-simulation-steps.js +1 -1
  14. package/esm/funcs/simulations-list-simulations.js +1 -1
  15. package/esm/funcs/simulations-list-simulations.js.map +1 -1
  16. package/esm/funcs/simulations-mint-simulation-token.d.ts +1 -1
  17. package/esm/funcs/simulations-mint-simulation-token.js +1 -1
  18. package/esm/funcs/simulations-start-simulation.d.ts +1 -1
  19. package/esm/funcs/simulations-start-simulation.js +2 -2
  20. package/esm/funcs/simulations-start-simulation.js.map +1 -1
  21. package/esm/funcs/simulations-stop-simulation.d.ts +1 -1
  22. package/esm/funcs/simulations-stop-simulation.js +3 -3
  23. package/esm/funcs/simulations-stop-simulation.js.map +1 -1
  24. package/esm/funcs/simulators-build-simulator.d.ts +2 -3
  25. package/esm/funcs/simulators-build-simulator.d.ts.map +1 -1
  26. package/esm/funcs/simulators-build-simulator.js +10 -3
  27. package/esm/funcs/simulators-build-simulator.js.map +1 -1
  28. package/esm/funcs/simulators-cancel-simulator-build.js +1 -1
  29. package/esm/funcs/simulators-cancel-simulator-build.js.map +1 -1
  30. package/esm/funcs/simulators-delete-simulator.js +1 -1
  31. package/esm/funcs/simulators-delete-simulator.js.map +1 -1
  32. package/esm/funcs/simulators-get-simulator.js +1 -1
  33. package/esm/funcs/simulators-get-simulator.js.map +1 -1
  34. package/esm/funcs/simulators-list-simulators.js +1 -1
  35. package/esm/funcs/simulators-list-simulators.js.map +1 -1
  36. package/esm/funcs/worlds-build-world.d.ts +1 -1
  37. package/esm/funcs/worlds-build-world.js +2 -2
  38. package/esm/funcs/worlds-build-world.js.map +1 -1
  39. package/esm/funcs/worlds-cancel-world-build.js +1 -1
  40. package/esm/funcs/worlds-cancel-world-build.js.map +1 -1
  41. package/esm/funcs/worlds-delete-world.js +1 -1
  42. package/esm/funcs/worlds-delete-world.js.map +1 -1
  43. package/esm/funcs/worlds-get-world.js +1 -1
  44. package/esm/funcs/worlds-get-world.js.map +1 -1
  45. package/esm/funcs/worlds-list-worlds.js +1 -1
  46. package/esm/funcs/worlds-list-worlds.js.map +1 -1
  47. package/esm/funcs/worlds-start-world.d.ts +1 -1
  48. package/esm/funcs/worlds-start-world.js +2 -2
  49. package/esm/funcs/worlds-start-world.js.map +1 -1
  50. package/esm/funcs/worlds-stop-world.js +1 -1
  51. package/esm/funcs/worlds-stop-world.js.map +1 -1
  52. package/esm/lib/config.d.ts +2 -2
  53. package/esm/lib/config.js +2 -2
  54. package/esm/models/build-simulator-request.d.ts +6 -6
  55. package/esm/models/build-simulator-request.js +1 -1
  56. package/esm/models/build-world-request.d.ts +2 -2
  57. package/esm/models/create-simulation-request.d.ts +1 -1
  58. package/esm/models/created-simulation.d.ts +8 -8
  59. package/esm/models/created-simulation.js +1 -1
  60. package/esm/models/index.d.ts +5 -1
  61. package/esm/models/index.d.ts.map +1 -1
  62. package/esm/models/index.js +5 -1
  63. package/esm/models/index.js.map +1 -1
  64. package/esm/models/list-worlds-response.d.ts +1 -1
  65. package/esm/models/operations/build-simulator.d.ts +12 -1
  66. package/esm/models/operations/build-simulator.d.ts.map +1 -1
  67. package/esm/models/operations/build-simulator.js +15 -0
  68. package/esm/models/operations/build-simulator.js.map +1 -1
  69. package/esm/models/operations/cancel-simulator-build.d.ts +1 -1
  70. package/esm/models/operations/cancel-world-build.d.ts +1 -1
  71. package/esm/models/operations/delete-simulation.d.ts +1 -1
  72. package/esm/models/operations/delete-simulator.d.ts +1 -1
  73. package/esm/models/operations/delete-world.d.ts +1 -1
  74. package/esm/models/operations/fork-simulation.d.ts +1 -1
  75. package/esm/models/operations/get-simulation.d.ts +1 -1
  76. package/esm/models/operations/get-simulator.d.ts +1 -1
  77. package/esm/models/operations/get-world.d.ts +1 -1
  78. package/esm/models/operations/list-simulation-steps.d.ts +1 -1
  79. package/esm/models/operations/list-simulations.d.ts +4 -4
  80. package/esm/models/operations/list-simulations.js +1 -1
  81. package/esm/models/operations/list-simulators.d.ts +1 -1
  82. package/esm/models/operations/list-worlds.d.ts +1 -1
  83. package/esm/models/operations/mint-simulation-token.d.ts +1 -1
  84. package/esm/models/operations/start-simulation.d.ts +1 -1
  85. package/esm/models/operations/start-world.d.ts +1 -1
  86. package/esm/models/operations/stop-simulation.d.ts +1 -1
  87. package/esm/models/operations/stop-world.d.ts +1 -1
  88. package/esm/models/simulation-token.d.ts +1 -1
  89. package/esm/models/simulation.d.ts +7 -7
  90. package/esm/models/simulation.js +1 -1
  91. package/esm/models/simulator-error.d.ts +31 -0
  92. package/esm/models/simulator-error.d.ts.map +1 -0
  93. package/esm/models/simulator-error.js +25 -0
  94. package/esm/models/simulator-error.js.map +1 -0
  95. package/esm/models/simulator.d.ts +10 -10
  96. package/esm/models/simulator.d.ts.map +1 -1
  97. package/esm/models/simulator.js +4 -4
  98. package/esm/models/simulator.js.map +1 -1
  99. package/esm/models/step.d.ts +2 -2
  100. package/esm/models/world-build.d.ts +31 -0
  101. package/esm/models/world-build.d.ts.map +1 -0
  102. package/esm/models/world-build.js +30 -0
  103. package/esm/models/world-build.js.map +1 -0
  104. package/esm/models/world-data-summary.d.ts +26 -0
  105. package/esm/models/world-data-summary.d.ts.map +1 -0
  106. package/esm/models/world-data-summary.js +18 -0
  107. package/esm/models/world-data-summary.js.map +1 -0
  108. package/esm/models/world-error.d.ts +37 -0
  109. package/esm/models/world-error.d.ts.map +1 -0
  110. package/esm/models/world-error.js +32 -0
  111. package/esm/models/world-error.js.map +1 -0
  112. package/esm/models/world-record-count.d.ts +25 -0
  113. package/esm/models/world-record-count.d.ts.map +1 -0
  114. package/esm/models/world-record-count.js +23 -0
  115. package/esm/models/world-record-count.js.map +1 -0
  116. package/esm/models/world-simulation.d.ts +2 -2
  117. package/esm/models/world.d.ts +10 -8
  118. package/esm/models/world.d.ts.map +1 -1
  119. package/esm/models/world.js +5 -3
  120. package/esm/models/world.js.map +1 -1
  121. package/esm/sdk/simulations.d.ts +7 -7
  122. package/esm/sdk/simulations.js +7 -7
  123. package/esm/sdk/simulators.d.ts +2 -2
  124. package/esm/sdk/simulators.d.ts.map +1 -1
  125. package/esm/sdk/simulators.js +1 -1
  126. package/esm/sdk/simulators.js.map +1 -1
  127. package/esm/sdk/worlds.d.ts +2 -2
  128. package/esm/sdk/worlds.js +2 -2
  129. package/jsr.json +1 -1
  130. package/package.json +1 -1
  131. package/src/funcs/simulations-create-simulation.ts +2 -2
  132. package/src/funcs/simulations-delete-simulation.ts +2 -2
  133. package/src/funcs/simulations-fork-simulation.ts +1 -1
  134. package/src/funcs/simulations-get-simulation.ts +2 -2
  135. package/src/funcs/simulations-list-simulation-steps.ts +1 -1
  136. package/src/funcs/simulations-list-simulations.ts +1 -1
  137. package/src/funcs/simulations-mint-simulation-token.ts +1 -1
  138. package/src/funcs/simulations-start-simulation.ts +2 -2
  139. package/src/funcs/simulations-stop-simulation.ts +3 -3
  140. package/src/funcs/simulators-build-simulator.ts +17 -8
  141. package/src/funcs/simulators-cancel-simulator-build.ts +1 -1
  142. package/src/funcs/simulators-delete-simulator.ts +1 -1
  143. package/src/funcs/simulators-get-simulator.ts +1 -1
  144. package/src/funcs/simulators-list-simulators.ts +1 -1
  145. package/src/funcs/worlds-build-world.ts +2 -2
  146. package/src/funcs/worlds-cancel-world-build.ts +1 -1
  147. package/src/funcs/worlds-delete-world.ts +1 -1
  148. package/src/funcs/worlds-get-world.ts +1 -1
  149. package/src/funcs/worlds-list-worlds.ts +1 -1
  150. package/src/funcs/worlds-start-world.ts +2 -2
  151. package/src/funcs/worlds-stop-world.ts +1 -1
  152. package/src/lib/config.ts +2 -2
  153. package/src/models/build-simulator-request.ts +6 -6
  154. package/src/models/build-world-request.ts +2 -2
  155. package/src/models/create-simulation-request.ts +1 -1
  156. package/src/models/created-simulation.ts +8 -8
  157. package/src/models/index.ts +5 -1
  158. package/src/models/list-worlds-response.ts +1 -1
  159. package/src/models/operations/build-simulator.ts +37 -1
  160. package/src/models/operations/cancel-simulator-build.ts +1 -1
  161. package/src/models/operations/cancel-world-build.ts +1 -1
  162. package/src/models/operations/delete-simulation.ts +1 -1
  163. package/src/models/operations/delete-simulator.ts +1 -1
  164. package/src/models/operations/delete-world.ts +1 -1
  165. package/src/models/operations/fork-simulation.ts +1 -1
  166. package/src/models/operations/get-simulation.ts +1 -1
  167. package/src/models/operations/get-simulator.ts +1 -1
  168. package/src/models/operations/get-world.ts +1 -1
  169. package/src/models/operations/list-simulation-steps.ts +1 -1
  170. package/src/models/operations/list-simulations.ts +4 -4
  171. package/src/models/operations/list-simulators.ts +1 -1
  172. package/src/models/operations/list-worlds.ts +1 -1
  173. package/src/models/operations/mint-simulation-token.ts +1 -1
  174. package/src/models/operations/start-simulation.ts +1 -1
  175. package/src/models/operations/start-world.ts +1 -1
  176. package/src/models/operations/stop-simulation.ts +1 -1
  177. package/src/models/operations/stop-world.ts +1 -1
  178. package/src/models/simulation-token.ts +1 -1
  179. package/src/models/simulation.ts +7 -7
  180. package/src/models/simulator-error.ts +59 -0
  181. package/src/models/simulator.ts +13 -13
  182. package/src/models/step.ts +2 -2
  183. package/src/models/world-build.ts +58 -0
  184. package/src/models/world-data-summary.ts +53 -0
  185. package/src/models/world-error.ts +63 -0
  186. package/src/models/world-record-count.ts +58 -0
  187. package/src/models/world-simulation.ts +2 -2
  188. package/src/models/world.ts +12 -12
  189. package/src/sdk/simulations.ts +7 -7
  190. package/src/sdk/simulators.ts +2 -2
  191. package/src/sdk/worlds.ts +2 -2
  192. package/esm/models/resource-error.d.ts +0 -17
  193. package/esm/models/resource-error.d.ts.map +0 -1
  194. package/esm/models/resource-error.js +0 -15
  195. package/esm/models/resource-error.js.map +0 -1
  196. package/src/models/resource-error.ts +0 -39
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type CancelSimulatorBuildRequest = {
3
3
  /**
4
- * Stable Simulator ID.
4
+ * Simulator ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type CancelWorldBuildRequest = {
3
3
  /**
4
- * Stable World ID.
4
+ * World ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type DeleteSimulationRequest = {
3
3
  /**
4
- * Stable resource ID.
4
+ * Simulation ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type DeleteSimulatorRequest = {
3
3
  /**
4
- * Stable Simulator ID.
4
+ * Simulator ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type DeleteWorldRequest = {
3
3
  /**
4
- * Stable World ID.
4
+ * World ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -2,7 +2,7 @@ import * as z from "zod/v4-mini";
2
2
  import * as models from "../index.js";
3
3
  export type ForkSimulationRequest = {
4
4
  /**
5
- * Stable source Simulation ID.
5
+ * Source Simulation ID.
6
6
  */
7
7
  id: string;
8
8
  body: models.ForkSimulationRequest;
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type GetSimulationRequest = {
3
3
  /**
4
- * Stable Simulation ID.
4
+ * Simulation ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type GetSimulatorRequest = {
3
3
  /**
4
- * Stable Simulator ID.
4
+ * Simulator ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type GetWorldRequest = {
3
3
  /**
4
- * Stable World ID.
4
+ * World ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type ListSimulationStepsRequest = {
3
3
  /**
4
- * Stable Simulation ID.
4
+ * Simulation ID.
5
5
  */
6
6
  id: string;
7
7
  /**
@@ -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 lifecycle status filter.
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 lifecycle status filter.
12
+ * Optional status filter.
13
13
  */
14
14
  export type ListSimulationsStatus = ClosedEnum<typeof ListSimulationsStatus>;
15
15
  export type ListSimulationsRequest = {
16
16
  /**
17
- * Optional lifecycle status filter.
17
+ * Optional status filter.
18
18
  */
19
19
  status?: ListSimulationsStatus | undefined;
20
20
  /**
21
- * Optional stable Simulator ID filter.
21
+ * Optional Simulator ID filter.
22
22
  */
23
23
  simulatorId?: string | undefined;
24
24
  /**
@@ -4,7 +4,7 @@
4
4
  import * as z from "zod/v4-mini";
5
5
  import { remap as remap$ } from "../../lib/primitives.js";
6
6
  /**
7
- * Optional lifecycle status filter.
7
+ * Optional status filter.
8
8
  */
9
9
  export const ListSimulationsStatus = {
10
10
  Running: "running",
@@ -19,7 +19,7 @@ export type ListSimulatorsRequest = {
19
19
  */
20
20
  status?: ListSimulatorsStatus | undefined;
21
21
  /**
22
- * Optional exact Simulator name. Prefix a catalog name with continuous/. Names cannot start with smr_.
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
  /**
@@ -5,7 +5,7 @@ export type ListWorldsRequest = {
5
5
  */
6
6
  limit?: number | undefined;
7
7
  /**
8
- * Opaque cursor from the previous page.
8
+ * Opaque next_cursor value from a previous page.
9
9
  */
10
10
  cursor?: string | undefined;
11
11
  };
@@ -2,7 +2,7 @@ import * as z from "zod/v4-mini";
2
2
  import * as models from "../index.js";
3
3
  export type MintSimulationTokenRequest = {
4
4
  /**
5
- * Stable Simulation ID.
5
+ * Simulation ID.
6
6
  */
7
7
  id: string;
8
8
  body: models.MintSimulationTokenRequest;
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type StartSimulationRequest = {
3
3
  /**
4
- * Stable Simulation ID.
4
+ * Simulation ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type StartWorldRequest = {
3
3
  /**
4
- * Stable World ID.
4
+ * World ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type StopSimulationRequest = {
3
3
  /**
4
- * Stable Simulation ID.
4
+ * Simulation ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  export type StopWorldRequest = {
3
3
  /**
4
- * Stable World ID.
4
+ * World ID.
5
5
  */
6
6
  id: string;
7
7
  };
@@ -7,7 +7,7 @@ export type SimulationToken = {
7
7
  */
8
8
  expiresAt: Date;
9
9
  /**
10
- * New data-plane token.
10
+ * New token for requests to the Simulation endpoint. Send it in the X-Continuous-Simulation-Token header.
11
11
  */
12
12
  token: string;
13
13
  };
@@ -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 status.
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 SimulationStatus: {
9
9
  readonly Running: "running";
@@ -11,7 +11,7 @@ export declare const SimulationStatus: {
11
11
  readonly Stopped: "stopped";
12
12
  };
13
13
  /**
14
- * Current Simulation status.
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 SimulationStatus = OpenEnum<typeof SimulationStatus>;
17
17
  export type Simulation = {
@@ -20,11 +20,11 @@ export type Simulation = {
20
20
  */
21
21
  createdAt: Date;
22
22
  /**
23
- * Data-plane endpoint for the Simulation.
23
+ * Base URL for requests to the Simulation.
24
24
  */
25
25
  endpoint: string;
26
26
  /**
27
- * Stable Simulation ID.
27
+ * Simulation ID.
28
28
  */
29
29
  id: string;
30
30
  /**
@@ -32,15 +32,15 @@ export type Simulation = {
32
32
  */
33
33
  name: string;
34
34
  /**
35
- * Stable source Simulation ID for a fork, or null.
35
+ * Source Simulation ID for a fork, or null.
36
36
  */
37
37
  parentId: string | null;
38
38
  /**
39
- * Stable ID of the Simulator.
39
+ * ID of the Simulator.
40
40
  */
41
41
  simulatorId: string;
42
42
  /**
43
- * Current Simulation status.
43
+ * 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.
44
44
  */
45
45
  status: SimulationStatus;
46
46
  };
@@ -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 status.
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 SimulationStatus = {
13
13
  Running: "running",
@@ -0,0 +1,31 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ /**
6
+ * Stable Simulator build error code.
7
+ */
8
+ export declare const SimulatorErrorCode: {
9
+ readonly BuildFailed: "build_failed";
10
+ readonly BuildCancelled: "build_cancelled";
11
+ };
12
+ /**
13
+ * Stable Simulator build error code.
14
+ */
15
+ export type SimulatorErrorCode = OpenEnum<typeof SimulatorErrorCode>;
16
+ export type SimulatorError = {
17
+ /**
18
+ * Stable Simulator build error code.
19
+ */
20
+ code: SimulatorErrorCode;
21
+ /**
22
+ * Safe human-readable error detail.
23
+ */
24
+ detail: string;
25
+ };
26
+ /** @internal */
27
+ export declare const SimulatorErrorCode$inboundSchema: z.ZodMiniType<SimulatorErrorCode, unknown>;
28
+ /** @internal */
29
+ export declare const SimulatorError$inboundSchema: z.ZodMiniType<SimulatorError, unknown>;
30
+ export declare function simulatorErrorFromJSON(jsonString: string): SafeParseResult<SimulatorError, SDKValidationError>;
31
+ //# sourceMappingURL=simulator-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulator-error.d.ts","sourceRoot":"","sources":["../../src/models/simulator-error.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CACsC,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,WAAW,CACtD,cAAc,EACd,OAAO,CAIP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import * as openEnums from "../types/enums.js";
7
+ import * as types from "../types/primitives.js";
8
+ /**
9
+ * Stable Simulator build error code.
10
+ */
11
+ export const SimulatorErrorCode = {
12
+ BuildFailed: "build_failed",
13
+ BuildCancelled: "build_cancelled",
14
+ };
15
+ /** @internal */
16
+ export const SimulatorErrorCode$inboundSchema = openEnums.inboundSchema(SimulatorErrorCode);
17
+ /** @internal */
18
+ export const SimulatorError$inboundSchema = z.object({
19
+ code: SimulatorErrorCode$inboundSchema,
20
+ detail: types.string(),
21
+ });
22
+ export function simulatorErrorFromJSON(jsonString) {
23
+ return safeParse(jsonString, (x) => SimulatorError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SimulatorError' from JSON`);
24
+ }
25
+ //# sourceMappingURL=simulator-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simulator-error.js","sourceRoot":"","sources":["../../src/models/simulator-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAiBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,SAAS,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;AAEhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAGrC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,gCAAgC;IACtC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,UAAkB,EACmC;IACrD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AAAA,CACH"}
@@ -2,20 +2,20 @@ import * as z from "zod/v4-mini";
2
2
  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
- import { ResourceError } from "./resource-error.js";
5
+ import { SimulatorError } from "./simulator-error.js";
6
6
  /**
7
- * Simulator source.
7
+ * workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
8
8
  */
9
9
  export declare const Source: {
10
10
  readonly Workspace: "workspace";
11
11
  readonly Catalog: "catalog";
12
12
  };
13
13
  /**
14
- * Simulator source.
14
+ * workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
15
15
  */
16
16
  export type Source = OpenEnum<typeof Source>;
17
17
  /**
18
- * Current build status.
18
+ * 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.
19
19
  */
20
20
  export declare const SimulatorStatus: {
21
21
  readonly Building: "building";
@@ -24,7 +24,7 @@ export declare const SimulatorStatus: {
24
24
  readonly Canceled: "canceled";
25
25
  };
26
26
  /**
27
- * Current build status.
27
+ * 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.
28
28
  */
29
29
  export type SimulatorStatus = OpenEnum<typeof SimulatorStatus>;
30
30
  export type Simulator = {
@@ -32,9 +32,9 @@ export type Simulator = {
32
32
  * Simulator creation time.
33
33
  */
34
34
  createdAt: Date;
35
- error: ResourceError | null;
35
+ error: SimulatorError | null;
36
36
  /**
37
- * Stable Simulator ID.
37
+ * Simulator ID.
38
38
  */
39
39
  id: string;
40
40
  /**
@@ -42,15 +42,15 @@ export type Simulator = {
42
42
  */
43
43
  name: string;
44
44
  /**
45
- * Stable parent Simulator ID, or null.
45
+ * Parent Simulator ID, or null.
46
46
  */
47
47
  parentId: string | null;
48
48
  /**
49
- * Simulator source.
49
+ * workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
50
50
  */
51
51
  source: Source;
52
52
  /**
53
- * Current build status.
53
+ * 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.
54
54
  */
55
55
  status: SimulatorStatus;
56
56
  };
@@ -1 +1 @@
1
- {"version":3,"file":"simulator.d.ts","sourceRoot":"","sources":["../../src/models/simulator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,a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  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
- import { ResourceError$inboundSchema, } from "./resource-error.js";
9
+ import { SimulatorError$inboundSchema, } from "./simulator-error.js";
10
10
  /**
11
- * Simulator source.
11
+ * workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
12
12
  */
13
13
  export const Source = {
14
14
  Workspace: "workspace",
15
15
  Catalog: "catalog",
16
16
  };
17
17
  /**
18
- * Current build status.
18
+ * 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.
19
19
  */
20
20
  export const SimulatorStatus = {
21
21
  Building: "building",
@@ -32,7 +32,7 @@ export const SimulatorStatus$inboundSchema = openEnums.inboundSchema(SimulatorSt
32
32
  export const Simulator$inboundSchema = z
33
33
  .pipe(z.object({
34
34
  created_at: types.date(),
35
- error: types.nullable(ResourceError$inboundSchema),
35
+ error: types.nullable(SimulatorError$inboundSchema),
36
36
  id: types.string(),
37
37
  name: types.string(),
38
38
  parent_id: types.nullable(types.string()),
@@ -1 +1 @@
1
- {"version":3,"file":"simulator.js","sourceRoot":"","sources":["../../src/models/simulator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;CACV,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG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,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEJ,MAAM,UAAU,iBAAiB,CAC/B,UAAkB,EAC8B;IAChD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AAAA,CACH"}
@@ -3,11 +3,11 @@ import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
4
  export type Step = {
5
5
  /**
6
- * Request label. It usually contains the HTTP method and path.
6
+ * HTTP method and path of the request that produced this step, without the query string, for example POST /v1/widgets.
7
7
  */
8
8
  label: string;
9
9
  /**
10
- * Completed request number. Use this value as at_step when you fork the Simulation.
10
+ * Step number. Use it as at_step when you fork.
11
11
  */
12
12
  step: number;
13
13
  };
@@ -0,0 +1,31 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ import { Result as SafeParseResult } from "../types/fp.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ import { WorldDataSummary } from "./world-data-summary.js";
6
+ /**
7
+ * Current phase of starting-data preparation.
8
+ */
9
+ export declare const Stage: {
10
+ readonly Planning: "planning";
11
+ readonly Generating: "generating";
12
+ readonly Validating: "validating";
13
+ readonly Complete: "complete";
14
+ };
15
+ /**
16
+ * Current phase of starting-data preparation.
17
+ */
18
+ export type Stage = OpenEnum<typeof Stage>;
19
+ export type WorldBuild = {
20
+ /**
21
+ * Current phase of starting-data preparation.
22
+ */
23
+ stage: Stage;
24
+ summary?: WorldDataSummary | undefined;
25
+ };
26
+ /** @internal */
27
+ export declare const Stage$inboundSchema: z.ZodMiniType<Stage, unknown>;
28
+ /** @internal */
29
+ export declare const WorldBuild$inboundSchema: z.ZodMiniType<WorldBuild, unknown>;
30
+ export declare function worldBuildFromJSON(jsonString: string): SafeParseResult<WorldBuild, SDKValidationError>;
31
+ //# sourceMappingURL=world-build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-build.d.ts","sourceRoot":"","sources":["../../src/models/world-build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;CAKR,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CACvC,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAIpE,CAAC;AAEL,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -0,0 +1,30 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import * as openEnums from "../types/enums.js";
7
+ import * as types from "../types/primitives.js";
8
+ import { WorldDataSummary$inboundSchema, } from "./world-data-summary.js";
9
+ /**
10
+ * Current phase of starting-data preparation.
11
+ */
12
+ export const Stage = {
13
+ Planning: "planning",
14
+ Generating: "generating",
15
+ Validating: "validating",
16
+ Complete: "complete",
17
+ };
18
+ /** @internal */
19
+ export const Stage$inboundSchema = openEnums
20
+ .inboundSchema(Stage);
21
+ /** @internal */
22
+ export const WorldBuild$inboundSchema = z
23
+ .object({
24
+ stage: Stage$inboundSchema,
25
+ summary: types.optional(WorldDataSummary$inboundSchema),
26
+ });
27
+ export function worldBuildFromJSON(jsonString) {
28
+ return safeParse(jsonString, (x) => WorldBuild$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldBuild' from JSON`);
29
+ }
30
+ //# sourceMappingURL=world-build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-build.js","sourceRoot":"","sources":["../../src/models/world-build.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,8BAA8B,GAC/B,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAcX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAkC,SAAS;KACxE,aAAa,CAAC,KAAK,CAAC,CAAC;AAExB,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,MAAM,CAAC;IACN,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CACxD,CAAC,CAAC;AAEL,MAAM,UAAU,kBAAkB,CAChC,UAAkB,EAC+B;IACjD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AAAA,CACH"}
@@ -0,0 +1,26 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ import { WorldRecordCount } from "./world-record-count.js";
5
+ export type WorldDataSummary = {
6
+ /**
7
+ * Defaults and inferred choices used to prepare the starting data.
8
+ */
9
+ assumptions: Array<string>;
10
+ /**
11
+ * Record conditions and counts computed from a complete census of served records.
12
+ */
13
+ conditions: Array<string>;
14
+ /**
15
+ * Observed starting record counts for each member and record type.
16
+ */
17
+ records: Array<WorldRecordCount>;
18
+ /**
19
+ * Shared relationships checked against the data and served API values.
20
+ */
21
+ relationships: Array<string>;
22
+ };
23
+ /** @internal */
24
+ export declare const WorldDataSummary$inboundSchema: z.ZodMiniType<WorldDataSummary, unknown>;
25
+ export declare function worldDataSummaryFromJSON(jsonString: string): SafeParseResult<WorldDataSummary, SDKValidationError>;
26
+ //# sourceMappingURL=world-data-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-data-summary.d.ts","sourceRoot":"","sources":["../../src/models/world-data-summary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACjC;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,WAAW,CACxD,gBAAgB,EAChB,OAAO,CAMP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ import * as types from "../types/primitives.js";
7
+ import { WorldRecordCount$inboundSchema, } from "./world-record-count.js";
8
+ /** @internal */
9
+ export const WorldDataSummary$inboundSchema = z.object({
10
+ assumptions: z.array(types.string()),
11
+ conditions: z.array(types.string()),
12
+ records: z.array(WorldRecordCount$inboundSchema),
13
+ relationships: z.array(types.string()),
14
+ });
15
+ export function worldDataSummaryFromJSON(jsonString) {
16
+ return safeParse(jsonString, (x) => WorldDataSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldDataSummary' from JSON`);
17
+ }
18
+ //# sourceMappingURL=world-data-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-data-summary.js","sourceRoot":"","sources":["../../src/models/world-data-summary.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,8BAA8B,GAC/B,MAAM,yBAAyB,CAAC;AAqBjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAGvC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC;IAChD,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,UAAkB,EACqC;IACvD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AAAA,CACH"}