@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
@@ -0,0 +1,37 @@
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 World error code.
7
+ */
8
+ export declare const WorldErrorCode: {
9
+ readonly WorldBuildCanceled: "world_build_canceled";
10
+ readonly WorldStartFailed: "world_start_failed";
11
+ readonly WorldCreateFailed: "world_create_failed";
12
+ readonly WorldFailed: "world_failed";
13
+ readonly WorldPopulationFailed: "world_population_failed";
14
+ readonly WorldPopulationUnsupported: "world_population_unsupported";
15
+ readonly WorldPopulationInvalid: "world_population_invalid";
16
+ readonly WorldPopulationUnavailable: "world_population_unavailable";
17
+ };
18
+ /**
19
+ * Stable World error code.
20
+ */
21
+ export type WorldErrorCode = OpenEnum<typeof WorldErrorCode>;
22
+ export type WorldError = {
23
+ /**
24
+ * Stable World error code.
25
+ */
26
+ code: WorldErrorCode;
27
+ /**
28
+ * Safe human-readable error detail.
29
+ */
30
+ detail: string;
31
+ };
32
+ /** @internal */
33
+ export declare const WorldErrorCode$inboundSchema: z.ZodMiniType<WorldErrorCode, unknown>;
34
+ /** @internal */
35
+ export declare const WorldError$inboundSchema: z.ZodMiniType<WorldError, unknown>;
36
+ export declare function worldErrorFromJSON(jsonString: string): SafeParseResult<WorldError, SDKValidationError>;
37
+ //# sourceMappingURL=world-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-error.d.ts","sourceRoot":"","sources":["../../src/models/world-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,cAAc;;;;;;;;;CASjB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,IAAI,EAAE,cAAc,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,WAAW,CACtD,cAAc,EACd,OAAO,CACkC,CAAC;AAE5C,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,32 @@
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 World error code.
10
+ */
11
+ export const WorldErrorCode = {
12
+ WorldBuildCanceled: "world_build_canceled",
13
+ WorldStartFailed: "world_start_failed",
14
+ WorldCreateFailed: "world_create_failed",
15
+ WorldFailed: "world_failed",
16
+ WorldPopulationFailed: "world_population_failed",
17
+ WorldPopulationUnsupported: "world_population_unsupported",
18
+ WorldPopulationInvalid: "world_population_invalid",
19
+ WorldPopulationUnavailable: "world_population_unavailable",
20
+ };
21
+ /** @internal */
22
+ export const WorldErrorCode$inboundSchema = openEnums.inboundSchema(WorldErrorCode);
23
+ /** @internal */
24
+ export const WorldError$inboundSchema = z
25
+ .object({
26
+ code: WorldErrorCode$inboundSchema,
27
+ detail: types.string(),
28
+ });
29
+ export function worldErrorFromJSON(jsonString) {
30
+ return safeParse(jsonString, (x) => WorldError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldError' from JSON`);
31
+ }
32
+ //# sourceMappingURL=world-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-error.js","sourceRoot":"","sources":["../../src/models/world-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,cAAc,GAAG;IAC5B,kBAAkB,EAAE,sBAAsB;IAC1C,gBAAgB,EAAE,oBAAoB;IACtC,iBAAiB,EAAE,qBAAqB;IACxC,WAAW,EAAE,cAAc;IAC3B,qBAAqB,EAAE,yBAAyB;IAChD,0BAA0B,EAAE,8BAA8B;IAC1D,sBAAsB,EAAE,0BAA0B;IAClD,0BAA0B,EAAE,8BAA8B;CAClD,CAAC;AAiBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAGrC,SAAS,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AAE5C,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,MAAM,CAAC;IACN,IAAI,EAAE,4BAA4B;IAClC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;CACvB,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,25 @@
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
+ export type WorldRecordCount = {
5
+ /**
6
+ * Number of stored starting records of this type.
7
+ */
8
+ count: number;
9
+ /**
10
+ * Record type reported by the Simulator.
11
+ */
12
+ entity: string;
13
+ /**
14
+ * Position in the selected Simulator list, starting at zero.
15
+ */
16
+ memberIndex: number;
17
+ /**
18
+ * Stable ID of the Simulator for this member.
19
+ */
20
+ simulatorId: string;
21
+ };
22
+ /** @internal */
23
+ export declare const WorldRecordCount$inboundSchema: z.ZodMiniType<WorldRecordCount, unknown>;
24
+ export declare function worldRecordCountFromJSON(jsonString: string): SafeParseResult<WorldRecordCount, SDKValidationError>;
25
+ //# sourceMappingURL=world-record-count.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-record-count.d.ts","sourceRoot":"","sources":["../../src/models/world-record-count.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,WAAW,CACxD,gBAAgB,EAChB,OAAO,CAcR,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as types from "../types/primitives.js";
8
+ /** @internal */
9
+ export const WorldRecordCount$inboundSchema = z.pipe(z.object({
10
+ count: types.number(),
11
+ entity: types.string(),
12
+ member_index: types.number(),
13
+ simulator_id: types.string(),
14
+ }), z.transform((v) => {
15
+ return remap$(v, {
16
+ "member_index": "memberIndex",
17
+ "simulator_id": "simulatorId",
18
+ });
19
+ }));
20
+ export function worldRecordCountFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => WorldRecordCount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldRecordCount' from JSON`);
22
+ }
23
+ //# sourceMappingURL=world-record-count.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"world-record-count.js","sourceRoot":"","sources":["../../src/models/world-record-count.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;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAsBhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAGvC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;IAC5B,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;CAC7B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,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"}
@@ -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 WorldSimulation = {
5
5
  /**
6
- * Stable ID of the created Simulation.
6
+ * ID of the created Simulation.
7
7
  */
8
8
  id: string;
9
9
  /**
10
- * Stable ID of the Simulator that this Simulation runs.
10
+ * ID of the Simulator that this Simulation runs.
11
11
  */
12
12
  simulatorId: string;
13
13
  };
@@ -2,10 +2,11 @@ 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 { WorldBuild } from "./world-build.js";
6
+ import { WorldError } from "./world-error.js";
6
7
  import { WorldSimulation } from "./world-simulation.js";
7
8
  /**
8
- * Current World lifecycle status.
9
+ * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
9
10
  */
10
11
  export declare const WorldStatus: {
11
12
  readonly Building: "building";
@@ -16,21 +17,22 @@ export declare const WorldStatus: {
16
17
  readonly Canceled: "canceled";
17
18
  };
18
19
  /**
19
- * Current World lifecycle status.
20
+ * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
20
21
  */
21
22
  export type WorldStatus = OpenEnum<typeof WorldStatus>;
22
23
  export type World = {
24
+ build?: WorldBuild | undefined;
23
25
  /**
24
26
  * Time when the World build started.
25
27
  */
26
28
  createdAt: Date;
27
- error: ResourceError | null;
29
+ error: WorldError | null;
28
30
  /**
29
- * Stable World ID.
31
+ * World ID.
30
32
  */
31
33
  id: string;
32
34
  /**
33
- * Build guidance stored with the World.
35
+ * Instructions for the initial synthetic data and relationships.
34
36
  */
35
37
  instructions: string;
36
38
  /**
@@ -38,11 +40,11 @@ export type World = {
38
40
  */
39
41
  simulations: Array<WorldSimulation>;
40
42
  /**
41
- * Stable Simulator IDs in member order.
43
+ * Simulator IDs in member order.
42
44
  */
43
45
  simulators: Array<string>;
44
46
  /**
45
- * Current World lifecycle status.
47
+ * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
46
48
  */
47
49
  status: WorldStatus;
48
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"world.d.ts","sourceRoot":"","sources":["../../src/models/world.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,aAAa,EAEd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,WAAW,CA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AC,OAAO,WAAW,CAAC,CAAC;AAEvD,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,UAAU,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACpC;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CACpC,CAAC;AAEvC,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAgB7D,CAAC;AAEF,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
@@ -6,10 +6,11 @@ import { remap as remap$ } from "../lib/primitives.js";
6
6
  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 { WorldBuild$inboundSchema } from "./world-build.js";
10
+ import { WorldError$inboundSchema } from "./world-error.js";
10
11
  import { WorldSimulation$inboundSchema, } from "./world-simulation.js";
11
12
  /**
12
- * Current World lifecycle status.
13
+ * building while the build runs; ready when it can be started; running or stopped once its Simulations exist; failed when building or first start fails; canceled when the build was canceled.
13
14
  */
14
15
  export const WorldStatus = {
15
16
  Building: "building",
@@ -23,8 +24,9 @@ export const WorldStatus = {
23
24
  export const WorldStatus$inboundSchema = openEnums.inboundSchema(WorldStatus);
24
25
  /** @internal */
25
26
  export const World$inboundSchema = z.pipe(z.object({
27
+ build: types.optional(WorldBuild$inboundSchema),
26
28
  created_at: types.date(),
27
- error: types.nullable(ResourceError$inboundSchema),
29
+ error: types.nullable(WorldError$inboundSchema),
28
30
  id: types.string(),
29
31
  instructions: types.string(),
30
32
  simulations: z.array(WorldSimulation$inboundSchema),
@@ -1 +1 @@
1
- {"version":3,"file":"world.js","sourceRoot":"","sources":["../../src/models/world.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;AAC7B,OAAO,EAEL,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAE/B;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAkCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GACpC,SAAS,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;AAEvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAkC,CAAC,CAAC,IAAI,CACtE,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,KAAK,CAAC,IAAI,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,2BAA2B,CAAC;IAClD,EAAE,EAAE,KAAK,CAAC,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E,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAmCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GACpC,SAAS,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;AAEvC,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAkC,CAAC,CAAC,IAAI,CACtE,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC/C,UAAU,EAAE,KAAK,CAAC,IAAI,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,wBAAwB,CAAC;IAC/C,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,YAAY,EAAE,KAAK,CAAC,MAAM,EAAE;IAC5B,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,6BAA6B,CAAC;IACnD,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACnC,MAAM,EAAE,yBAAyB;CAClC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,aAAa,CAC3B,UAAkB,EAC0B;IAC5C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/C,mCAAmC,CACpC,CAAC;AAAA,CACH"}
@@ -13,7 +13,7 @@ export declare class Simulations extends ClientSDK {
13
13
  * Create Simulation
14
14
  *
15
15
  * @remarks
16
- * Creates an isolated runtime from a ready Simulator. The response includes its endpoint and a 1-hour token.
16
+ * 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.
17
17
  */
18
18
  createSimulation(request: models.CreateSimulationRequest, options?: RequestOptions): Promise<models.CreatedSimulation>;
19
19
  /**
@@ -27,42 +27,42 @@ export declare class Simulations extends ClientSDK {
27
27
  * Get Simulation
28
28
  *
29
29
  * @remarks
30
- * Returns a Simulation and its current runtime status. The response does not include data-plane tokens.
30
+ * Returns a Simulation and its current status. The response does not include tokens.
31
31
  */
32
32
  getSimulation(request: operations.GetSimulationRequest, options?: RequestOptions): Promise<models.Simulation>;
33
33
  /**
34
34
  * Fork Simulation
35
35
  *
36
36
  * @remarks
37
- * Creates a Simulation with a 1-hour token. The source Simulation continues to run.
37
+ * 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.
38
38
  */
39
39
  forkSimulation(request: operations.ForkSimulationRequest, options?: RequestOptions): Promise<models.CreatedSimulation>;
40
40
  /**
41
41
  * Start Simulation
42
42
  *
43
43
  * @remarks
44
- * Starts a stopped Simulation from its saved runtime state. Its endpoint becomes available after the runtime starts.
44
+ * 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.
45
45
  */
46
46
  startSimulation(request: operations.StartSimulationRequest, options?: RequestOptions): Promise<models.Simulation>;
47
47
  /**
48
48
  * List Simulation Steps
49
49
  *
50
50
  * @remarks
51
- * Returns recorded steps for a running or paused Simulation. Use any step to create a deterministic fork.
51
+ * 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.
52
52
  */
53
53
  listSimulationSteps(request: operations.ListSimulationStepsRequest, options?: RequestOptions): Promise<models.ListSimulationStepsResponse>;
54
54
  /**
55
55
  * Stop Simulation
56
56
  *
57
57
  * @remarks
58
- * Stops a Simulation and saves its runtime state. You can start it later from the saved state.
58
+ * 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.
59
59
  */
60
60
  stopSimulation(request: operations.StopSimulationRequest, options?: RequestOptions): Promise<models.Simulation>;
61
61
  /**
62
62
  * Mint Simulation Token
63
63
  *
64
64
  * @remarks
65
- * Mints an expiring data-plane token. Send it in X-Continuous-Simulation-Token. Other unexpired tokens remain valid.
65
+ * 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.
66
66
  */
67
67
  mintSimulationToken(request: operations.MintSimulationTokenRequest, options?: RequestOptions): Promise<models.SimulationToken>;
68
68
  }
@@ -26,7 +26,7 @@ export class Simulations extends ClientSDK {
26
26
  * Create Simulation
27
27
  *
28
28
  * @remarks
29
- * Creates an isolated runtime from a ready Simulator. The response includes its endpoint and a 1-hour token.
29
+ * 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.
30
30
  */
31
31
  async createSimulation(request, options) {
32
32
  return unwrapAsync(simulationsCreateSimulation(this, request, options));
@@ -44,7 +44,7 @@ export class Simulations extends ClientSDK {
44
44
  * Get Simulation
45
45
  *
46
46
  * @remarks
47
- * Returns a Simulation and its current runtime status. The response does not include data-plane tokens.
47
+ * Returns a Simulation and its current status. The response does not include tokens.
48
48
  */
49
49
  async getSimulation(request, options) {
50
50
  return unwrapAsync(simulationsGetSimulation(this, request, options));
@@ -53,7 +53,7 @@ export class Simulations extends ClientSDK {
53
53
  * Fork Simulation
54
54
  *
55
55
  * @remarks
56
- * Creates a Simulation with a 1-hour token. The source Simulation continues to run.
56
+ * 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.
57
57
  */
58
58
  async forkSimulation(request, options) {
59
59
  return unwrapAsync(simulationsForkSimulation(this, request, options));
@@ -62,7 +62,7 @@ export class Simulations extends ClientSDK {
62
62
  * Start Simulation
63
63
  *
64
64
  * @remarks
65
- * Starts a stopped Simulation from its saved runtime state. Its endpoint becomes available after the runtime starts.
65
+ * 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.
66
66
  */
67
67
  async startSimulation(request, options) {
68
68
  return unwrapAsync(simulationsStartSimulation(this, request, options));
@@ -71,7 +71,7 @@ export class Simulations extends ClientSDK {
71
71
  * List Simulation Steps
72
72
  *
73
73
  * @remarks
74
- * Returns recorded steps for a running or paused Simulation. Use any step to create a deterministic fork.
74
+ * 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.
75
75
  */
76
76
  async listSimulationSteps(request, options) {
77
77
  return unwrapAsync(simulationsListSimulationSteps(this, request, options));
@@ -80,7 +80,7 @@ export class Simulations extends ClientSDK {
80
80
  * Stop Simulation
81
81
  *
82
82
  * @remarks
83
- * Stops a Simulation and saves its runtime state. You can start it later from the saved state.
83
+ * 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.
84
84
  */
85
85
  async stopSimulation(request, options) {
86
86
  return unwrapAsync(simulationsStopSimulation(this, request, options));
@@ -89,7 +89,7 @@ export class Simulations extends ClientSDK {
89
89
  * Mint Simulation Token
90
90
  *
91
91
  * @remarks
92
- * Mints an expiring data-plane token. Send it in X-Continuous-Simulation-Token. Other unexpired tokens remain valid.
92
+ * 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.
93
93
  */
94
94
  async mintSimulationToken(request, options) {
95
95
  return unwrapAsync(simulationsMintSimulationToken(this, request, options));
@@ -13,9 +13,9 @@ export declare class Simulators extends ClientSDK {
13
13
  * Build Simulator
14
14
  *
15
15
  * @remarks
16
- * 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.
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
- buildSimulator(request: operations.BuildSimulatorRequest, options?: RequestOptions): Promise<models.Simulator>;
18
+ buildSimulator(request: operations.BuildSimulatorRequest, options?: RequestOptions): Promise<operations.BuildSimulatorResponse>;
19
19
  /**
20
20
  * Delete Simulator
21
21
  *
@@ -1 +1 @@
1
- {"version":3,"file":"simulators.d.ts","sourceRoot":"","sources":["../../src/sdk/simulators.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,UAAW,SAAQ,SAAS;IACvC;;;;;OAKG;IACG,cAAc,CAClB,OAAO,CAAC,EAAE,UAAU,CAAC,qBAAqB,GAAG,SAAS,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAMxC;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;IAED;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAMf;IAED;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;IAED;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;CACF"}
1
+ {"version":3,"file":"simulators.d.ts","sourceRoot":"","sources":["../../src/sdk/simulators.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,UAAW,SAAQ,SAAS;IACvC;;;;;OAKG;IACG,cAAc,CAClB,OAAO,CAAC,EAAE,UAAU,CAAC,qBAAqB,GAAG,SAAS,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAMxC;IAED;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC,CAM5C;IAED;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC,CAMf;IAED;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;IAED;;;;;OAKG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAM3B;CACF"}
@@ -22,7 +22,7 @@ export class Simulators extends ClientSDK {
22
22
  * Build Simulator
23
23
  *
24
24
  * @remarks
25
- * 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.
25
+ * 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.
26
26
  */
27
27
  async buildSimulator(request, options) {
28
28
  return unwrapAsync(simulatorsBuildSimulator(this, request, options));
@@ -1 +1 @@
1
- {"version":3,"file":"simulators.js","sourceRoot":"","sources":["../../src/sdk/simulators.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,wCAAwC,CAAC;AAClF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,UAAW,SAAQ,SAAS;IACvC;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAsD,EACtD,OAAwB,EACgB;QACxC,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB,EACG;QAC3B,OAAO,WAAW,CAAC,wBAAwB,CACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,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C,eAAe,CACnB,OAA0C,EAC1C,OAAwB,EACT;QACf,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAuC,EACvC,OAAwB,EACG;QAC3B,OAAO,WAAW,CAAC,sBAAsB,CACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA+C,EAC/C,OAAwB,EACG;QAC3B,OAAO,WAAW,CAAC,8BAA8B,CAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IAAA,CACJ;CACF"}
@@ -13,7 +13,7 @@ export declare class Worlds extends ClientSDK {
13
13
  * Build World
14
14
  *
15
15
  * @remarks
16
- * Builds a World definition from stable Simulator IDs. Start the World to create its Simulations.
16
+ * Starts an asynchronous World build from ready Simulators and returns it in the building state. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
17
17
  */
18
18
  buildWorld(request: models.BuildWorldRequest, options?: RequestOptions): Promise<models.World>;
19
19
  /**
@@ -41,7 +41,7 @@ export declare class Worlds extends ClientSDK {
41
41
  * Start World
42
42
  *
43
43
  * @remarks
44
- * Creates member Simulations on first start. Later starts restore stopped Simulations from saved state.
44
+ * 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.
45
45
  */
46
46
  startWorld(request: operations.StartWorldRequest, options?: RequestOptions): Promise<models.World>;
47
47
  /**
package/esm/sdk/worlds.js CHANGED
@@ -24,7 +24,7 @@ export class Worlds extends ClientSDK {
24
24
  * Build World
25
25
  *
26
26
  * @remarks
27
- * Builds a World definition from stable Simulator IDs. Start the World to create its Simulations.
27
+ * Starts an asynchronous World build from ready Simulators and returns it in the building state. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
28
28
  */
29
29
  async buildWorld(request, options) {
30
30
  return unwrapAsync(worldsBuildWorld(this, request, options));
@@ -60,7 +60,7 @@ export class Worlds extends ClientSDK {
60
60
  * Start World
61
61
  *
62
62
  * @remarks
63
- * Creates member Simulations on first start. Later starts restore stopped Simulations from saved state.
63
+ * 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.
64
64
  */
65
65
  async startWorld(request, options) {
66
66
  return unwrapAsync(worldsStartWorld(this, request, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@continuous-labs/sdk",
5
- "version": "0.0.5",
5
+ "version": "0.0.7",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@continuous-labs/sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "author": "Continuous Labs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Create Simulation
32
32
  *
33
33
  * @remarks
34
- * Creates an isolated runtime from a ready Simulator. The response includes its endpoint and a 1-hour token.
34
+ * 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.
35
35
  */
36
36
  export function simulationsCreateSimulation(
37
37
  client: ContinuousCore,
@@ -161,7 +161,7 @@ async function $do(
161
161
  >(
162
162
  M.json(201, models.CreatedSimulation$inboundSchema),
163
163
  M.jsonErr(
164
- [400, 401, 403, 404, 408, 409, 413, 415, 422, 429],
164
+ [400, 401, 408, 409, 413, 415, 422, 429],
165
165
  errors.ErrorT$inboundSchema,
166
166
  { ctype: "application/problem+json" },
167
167
  ),
@@ -166,10 +166,10 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.nil(204, z.void()),
169
- M.jsonErr([400, 401, 403, 404, 409], errors.ErrorT$inboundSchema, {
169
+ M.jsonErr([401, 403, 404, 409], errors.ErrorT$inboundSchema, {
170
170
  ctype: "application/problem+json",
171
171
  }),
172
- M.jsonErr([500, 503, 504], errors.ErrorT$inboundSchema, {
172
+ M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
173
173
  ctype: "application/problem+json",
174
174
  }),
175
175
  M.fail("4XX"),
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * Fork Simulation
33
33
  *
34
34
  * @remarks
35
- * Creates a Simulation with a 1-hour token. The source Simulation continues to run.
35
+ * 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.
36
36
  */
37
37
  export function simulationsForkSimulation(
38
38
  client: ContinuousCore,
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * Get Simulation
33
33
  *
34
34
  * @remarks
35
- * Returns a Simulation and its current runtime status. The response does not include data-plane tokens.
35
+ * Returns a Simulation and its current status. The response does not include tokens.
36
36
  */
37
37
  export function simulationsGetSimulation(
38
38
  client: ContinuousCore,
@@ -166,7 +166,7 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.json(200, models.Simulation$inboundSchema),
169
- M.jsonErr([400, 401, 403, 404], errors.ErrorT$inboundSchema, {
169
+ M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema, {
170
170
  ctype: "application/problem+json",
171
171
  }),
172
172
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * List Simulation Steps
33
33
  *
34
34
  * @remarks
35
- * Returns recorded steps for a running or paused Simulation. Use any step to create a deterministic fork.
35
+ * 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.
36
36
  */
37
37
  export function simulationsListSimulationSteps(
38
38
  client: ContinuousCore,
@@ -172,7 +172,7 @@ async function $do(
172
172
  | SDKValidationError
173
173
  >(
174
174
  M.json(200, models.ListSimulationsResponse$inboundSchema),
175
- M.jsonErr([400, 401, 403, 404, 422], errors.ErrorT$inboundSchema, {
175
+ M.jsonErr([400, 401, 422], errors.ErrorT$inboundSchema, {
176
176
  ctype: "application/problem+json",
177
177
  }),
178
178
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * Mint Simulation Token
33
33
  *
34
34
  * @remarks
35
- * Mints an expiring data-plane token. Send it in X-Continuous-Simulation-Token. Other unexpired tokens remain valid.
35
+ * 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.
36
36
  */
37
37
  export function simulationsMintSimulationToken(
38
38
  client: ContinuousCore,
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * Start Simulation
33
33
  *
34
34
  * @remarks
35
- * Starts a stopped Simulation from its saved runtime state. Its endpoint becomes available after the runtime starts.
35
+ * 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.
36
36
  */
37
37
  export function simulationsStartSimulation(
38
38
  client: ContinuousCore,
@@ -166,7 +166,7 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.json(200, models.Simulation$inboundSchema),
169
- M.jsonErr([400, 401, 403, 404, 409, 429], errors.ErrorT$inboundSchema, {
169
+ M.jsonErr([401, 403, 404, 409, 429], errors.ErrorT$inboundSchema, {
170
170
  ctype: "application/problem+json",
171
171
  }),
172
172
  M.jsonErr([500, 503, 504], errors.ErrorT$inboundSchema, {
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
32
32
  * Stop Simulation
33
33
  *
34
34
  * @remarks
35
- * Stops a Simulation and saves its runtime state. You can start it later from the saved state.
35
+ * 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.
36
36
  */
37
37
  export function simulationsStopSimulation(
38
38
  client: ContinuousCore,
@@ -166,10 +166,10 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.json(200, models.Simulation$inboundSchema),
169
- M.jsonErr([400, 401, 403, 404, 409], errors.ErrorT$inboundSchema, {
169
+ M.jsonErr([401, 403, 404, 409], errors.ErrorT$inboundSchema, {
170
170
  ctype: "application/problem+json",
171
171
  }),
172
- M.jsonErr([500, 503, 504], errors.ErrorT$inboundSchema, {
172
+ M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
173
173
  ctype: "application/problem+json",
174
174
  }),
175
175
  M.fail("4XX"),