@continuous-labs/sdk 0.0.6 → 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 (122) hide show
  1. package/README.md +2 -2
  2. package/esm/funcs/simulations-create-simulation.js +1 -1
  3. package/esm/funcs/simulations-create-simulation.js.map +1 -1
  4. package/esm/funcs/simulations-delete-simulation.js +2 -2
  5. package/esm/funcs/simulations-delete-simulation.js.map +1 -1
  6. package/esm/funcs/simulations-get-simulation.js +1 -1
  7. package/esm/funcs/simulations-get-simulation.js.map +1 -1
  8. package/esm/funcs/simulations-list-simulations.js +1 -1
  9. package/esm/funcs/simulations-list-simulations.js.map +1 -1
  10. package/esm/funcs/simulations-start-simulation.js +1 -1
  11. package/esm/funcs/simulations-start-simulation.js.map +1 -1
  12. package/esm/funcs/simulations-stop-simulation.js +2 -2
  13. package/esm/funcs/simulations-stop-simulation.js.map +1 -1
  14. package/esm/funcs/simulators-build-simulator.d.ts +1 -2
  15. package/esm/funcs/simulators-build-simulator.d.ts.map +1 -1
  16. package/esm/funcs/simulators-build-simulator.js +9 -2
  17. package/esm/funcs/simulators-build-simulator.js.map +1 -1
  18. package/esm/funcs/simulators-cancel-simulator-build.js +1 -1
  19. package/esm/funcs/simulators-cancel-simulator-build.js.map +1 -1
  20. package/esm/funcs/simulators-delete-simulator.js +1 -1
  21. package/esm/funcs/simulators-delete-simulator.js.map +1 -1
  22. package/esm/funcs/simulators-get-simulator.js +1 -1
  23. package/esm/funcs/simulators-get-simulator.js.map +1 -1
  24. package/esm/funcs/simulators-list-simulators.js +1 -1
  25. package/esm/funcs/simulators-list-simulators.js.map +1 -1
  26. package/esm/funcs/worlds-build-world.d.ts +1 -1
  27. package/esm/funcs/worlds-build-world.js +2 -2
  28. package/esm/funcs/worlds-build-world.js.map +1 -1
  29. package/esm/funcs/worlds-cancel-world-build.js +1 -1
  30. package/esm/funcs/worlds-cancel-world-build.js.map +1 -1
  31. package/esm/funcs/worlds-delete-world.js +1 -1
  32. package/esm/funcs/worlds-delete-world.js.map +1 -1
  33. package/esm/funcs/worlds-get-world.js +1 -1
  34. package/esm/funcs/worlds-get-world.js.map +1 -1
  35. package/esm/funcs/worlds-list-worlds.js +1 -1
  36. package/esm/funcs/worlds-list-worlds.js.map +1 -1
  37. package/esm/funcs/worlds-start-world.js +1 -1
  38. package/esm/funcs/worlds-start-world.js.map +1 -1
  39. package/esm/funcs/worlds-stop-world.js +1 -1
  40. package/esm/funcs/worlds-stop-world.js.map +1 -1
  41. package/esm/lib/config.d.ts +2 -2
  42. package/esm/lib/config.js +2 -2
  43. package/esm/models/build-world-request.d.ts +1 -1
  44. package/esm/models/index.d.ts +5 -1
  45. package/esm/models/index.d.ts.map +1 -1
  46. package/esm/models/index.js +5 -1
  47. package/esm/models/index.js.map +1 -1
  48. package/esm/models/operations/build-simulator.d.ts +11 -0
  49. package/esm/models/operations/build-simulator.d.ts.map +1 -1
  50. package/esm/models/operations/build-simulator.js +15 -0
  51. package/esm/models/operations/build-simulator.js.map +1 -1
  52. package/esm/models/simulator-error.d.ts +31 -0
  53. package/esm/models/simulator-error.d.ts.map +1 -0
  54. package/esm/models/simulator-error.js +25 -0
  55. package/esm/models/simulator-error.js.map +1 -0
  56. package/esm/models/simulator.d.ts +2 -2
  57. package/esm/models/simulator.d.ts.map +1 -1
  58. package/esm/models/simulator.js +2 -2
  59. package/esm/models/simulator.js.map +1 -1
  60. package/esm/models/world-build.d.ts +31 -0
  61. package/esm/models/world-build.d.ts.map +1 -0
  62. package/esm/models/world-build.js +30 -0
  63. package/esm/models/world-build.js.map +1 -0
  64. package/esm/models/world-data-summary.d.ts +26 -0
  65. package/esm/models/world-data-summary.d.ts.map +1 -0
  66. package/esm/models/world-data-summary.js +18 -0
  67. package/esm/models/world-data-summary.js.map +1 -0
  68. package/esm/models/world-error.d.ts +37 -0
  69. package/esm/models/world-error.d.ts.map +1 -0
  70. package/esm/models/world-error.js +32 -0
  71. package/esm/models/world-error.js.map +1 -0
  72. package/esm/models/world-record-count.d.ts +25 -0
  73. package/esm/models/world-record-count.d.ts.map +1 -0
  74. package/esm/models/world-record-count.js +23 -0
  75. package/esm/models/world-record-count.js.map +1 -0
  76. package/esm/models/world.d.ts +10 -8
  77. package/esm/models/world.d.ts.map +1 -1
  78. package/esm/models/world.js +5 -3
  79. package/esm/models/world.js.map +1 -1
  80. package/esm/sdk/simulators.d.ts +1 -1
  81. package/esm/sdk/simulators.d.ts.map +1 -1
  82. package/esm/sdk/simulators.js.map +1 -1
  83. package/esm/sdk/worlds.d.ts +1 -1
  84. package/esm/sdk/worlds.js +1 -1
  85. package/jsr.json +1 -1
  86. package/package.json +1 -1
  87. package/src/funcs/simulations-create-simulation.ts +1 -1
  88. package/src/funcs/simulations-delete-simulation.ts +2 -2
  89. package/src/funcs/simulations-get-simulation.ts +1 -1
  90. package/src/funcs/simulations-list-simulations.ts +1 -1
  91. package/src/funcs/simulations-start-simulation.ts +1 -1
  92. package/src/funcs/simulations-stop-simulation.ts +2 -2
  93. package/src/funcs/simulators-build-simulator.ts +16 -7
  94. package/src/funcs/simulators-cancel-simulator-build.ts +1 -1
  95. package/src/funcs/simulators-delete-simulator.ts +1 -1
  96. package/src/funcs/simulators-get-simulator.ts +1 -1
  97. package/src/funcs/simulators-list-simulators.ts +1 -1
  98. package/src/funcs/worlds-build-world.ts +2 -2
  99. package/src/funcs/worlds-cancel-world-build.ts +1 -1
  100. package/src/funcs/worlds-delete-world.ts +1 -1
  101. package/src/funcs/worlds-get-world.ts +1 -1
  102. package/src/funcs/worlds-list-worlds.ts +1 -1
  103. package/src/funcs/worlds-start-world.ts +1 -1
  104. package/src/funcs/worlds-stop-world.ts +1 -1
  105. package/src/lib/config.ts +2 -2
  106. package/src/models/build-world-request.ts +1 -1
  107. package/src/models/index.ts +5 -1
  108. package/src/models/operations/build-simulator.ts +36 -0
  109. package/src/models/simulator-error.ts +59 -0
  110. package/src/models/simulator.ts +5 -5
  111. package/src/models/world-build.ts +58 -0
  112. package/src/models/world-data-summary.ts +53 -0
  113. package/src/models/world-error.ts +63 -0
  114. package/src/models/world-record-count.ts +58 -0
  115. package/src/models/world.ts +12 -12
  116. package/src/sdk/simulators.ts +1 -1
  117. package/src/sdk/worlds.ts +1 -1
  118. package/esm/models/resource-error.d.ts +0 -17
  119. package/esm/models/resource-error.d.ts.map +0 -1
  120. package/esm/models/resource-error.js +0 -15
  121. package/esm/models/resource-error.js.map +0 -1
  122. package/src/models/resource-error.ts +0 -39
@@ -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"}
@@ -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
- * 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.
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,25 +17,26 @@ export declare const WorldStatus: {
16
17
  readonly Canceled: "canceled";
17
18
  };
18
19
  /**
19
- * 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.
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
- * World creation time.
26
+ * Time when the World build started.
25
27
  */
26
28
  createdAt: Date;
27
- error: ResourceError | null;
29
+ error: WorldError | null;
28
30
  /**
29
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
  /**
37
- * Simulations in the World. Empty unless the World is running or stopped.
39
+ * Created member Simulations. This list is empty before first start.
38
40
  */
39
41
  simulations: Array<WorldSimulation>;
40
42
  /**
@@ -42,7 +44,7 @@ export type World = {
42
44
  */
43
45
  simulators: Array<string>;
44
46
  /**
45
- * 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.
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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,MAAM,WAAW,GAAG,QAAQ,CAAC,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
- * 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.
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;IACx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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"}
@@ -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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C/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
- * Starts an asynchronous World build from one or more ready Simulators and returns the World in the building state. Start the World once it is ready to create its Simulations.
16
+ * 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
  /**
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
- * 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.
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));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@continuous-labs/sdk",
5
- "version": "0.0.6",
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.6",
3
+ "version": "0.0.7",
4
4
  "author": "Continuous Labs",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -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"),
@@ -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, {
@@ -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, {
@@ -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, {
@@ -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"),
@@ -28,7 +28,6 @@ import {
28
28
  import * as errors from "../models/errors/index.js";
29
29
  import { ResponseValidationError } from "../models/errors/response-validation-error.js";
30
30
  import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
31
- import * as models from "../models/index.js";
32
31
  import * as operations from "../models/operations/index.js";
33
32
  import { APICall, APIPromise } from "../types/async.js";
34
33
  import { isBlobLike } from "../types/blobs.js";
@@ -47,7 +46,7 @@ export function simulatorsBuildSimulator(
47
46
  options?: RequestOptions,
48
47
  ): APIPromise<
49
48
  Result<
50
- models.Simulator,
49
+ operations.BuildSimulatorResponse,
51
50
  | errors.ErrorT
52
51
  | ContinuousError
53
52
  | ResponseValidationError
@@ -73,7 +72,7 @@ async function $do(
73
72
  ): Promise<
74
73
  [
75
74
  Result<
76
- models.Simulator,
75
+ operations.BuildSimulatorResponse,
77
76
  | errors.ErrorT
78
77
  | ContinuousError
79
78
  | ResponseValidationError
@@ -188,7 +187,7 @@ async function $do(
188
187
  };
189
188
 
190
189
  const [result] = await M.match<
191
- models.Simulator,
190
+ operations.BuildSimulatorResponse,
192
191
  | errors.ErrorT
193
192
  | ContinuousError
194
193
  | ResponseValidationError
@@ -199,14 +198,24 @@ async function $do(
199
198
  | UnexpectedClientError
200
199
  | SDKValidationError
201
200
  >(
202
- M.json(202, models.Simulator$inboundSchema),
201
+ M.json(202, operations.BuildSimulatorResponse$inboundSchema, {
202
+ key: "Result",
203
+ }),
203
204
  M.jsonErr(
204
- [400, 401, 403, 404, 408, 409, 413, 415, 422, 429],
205
+ [400, 401, 408, 409, 413, 415, 422],
205
206
  errors.ErrorT$inboundSchema,
206
207
  { ctype: "application/problem+json" },
207
208
  ),
208
- M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
209
+ M.jsonErr(429, errors.ErrorT$inboundSchema, {
210
+ ctype: "application/problem+json",
211
+ hdrs: true,
212
+ }),
213
+ M.jsonErr(500, errors.ErrorT$inboundSchema, {
214
+ ctype: "application/problem+json",
215
+ }),
216
+ M.jsonErr(503, errors.ErrorT$inboundSchema, {
209
217
  ctype: "application/problem+json",
218
+ hdrs: true,
210
219
  }),
211
220
  M.fail("4XX"),
212
221
  M.fail("5XX"),
@@ -167,7 +167,7 @@ async function $do(
167
167
  | SDKValidationError
168
168
  >(
169
169
  M.json(200, models.Simulator$inboundSchema),
170
- M.jsonErr([400, 401, 403, 404, 409, 422], errors.ErrorT$inboundSchema, {
170
+ M.jsonErr([401, 403, 404, 422], errors.ErrorT$inboundSchema, {
171
171
  ctype: "application/problem+json",
172
172
  }),
173
173
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -165,7 +165,7 @@ async function $do(
165
165
  | SDKValidationError
166
166
  >(
167
167
  M.nil(204, z.void()),
168
- M.jsonErr([400, 401, 403, 404, 409, 422], errors.ErrorT$inboundSchema, {
168
+ M.jsonErr([401, 403, 404, 409, 422], errors.ErrorT$inboundSchema, {
169
169
  ctype: "application/problem+json",
170
170
  }),
171
171
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -166,7 +166,7 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.json(200, models.Simulator$inboundSchema),
169
- M.jsonErr([400, 401, 403, 404, 422], errors.ErrorT$inboundSchema, {
169
+ M.jsonErr([401, 403, 404, 422], errors.ErrorT$inboundSchema, {
170
170
  ctype: "application/problem+json",
171
171
  }),
172
172
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -172,7 +172,7 @@ async function $do(
172
172
  | SDKValidationError
173
173
  >(
174
174
  M.json(200, models.ListSimulatorsResponse$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, {
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Build World
32
32
  *
33
33
  * @remarks
34
- * 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.
34
+ * 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.
35
35
  */
36
36
  export function worldsBuildWorld(
37
37
  client: ContinuousCore,
@@ -161,7 +161,7 @@ async function $do(
161
161
  >(
162
162
  M.json(202, models.World$inboundSchema),
163
163
  M.jsonErr(
164
- [400, 401, 403, 404, 408, 409, 413, 415, 422],
164
+ [400, 401, 408, 409, 413, 415, 422],
165
165
  errors.ErrorT$inboundSchema,
166
166
  { ctype: "application/problem+json" },
167
167
  ),
@@ -167,7 +167,7 @@ async function $do(
167
167
  | SDKValidationError
168
168
  >(
169
169
  M.json(200, models.World$inboundSchema),
170
- M.jsonErr([400, 401, 403, 404, 409], errors.ErrorT$inboundSchema, {
170
+ M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema, {
171
171
  ctype: "application/problem+json",
172
172
  }),
173
173
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -165,7 +165,7 @@ async function $do(
165
165
  | SDKValidationError
166
166
  >(
167
167
  M.nil(204, z.void()),
168
- M.jsonErr([400, 401, 403, 404, 409], errors.ErrorT$inboundSchema, {
168
+ M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema, {
169
169
  ctype: "application/problem+json",
170
170
  }),
171
171
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -166,7 +166,7 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.json(200, models.World$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, {
@@ -167,7 +167,7 @@ async function $do(
167
167
  | SDKValidationError
168
168
  >(
169
169
  M.json(200, models.ListWorldsResponse$inboundSchema),
170
- M.jsonErr([400, 401, 403, 404, 422], errors.ErrorT$inboundSchema, {
170
+ M.jsonErr([400, 401, 422], errors.ErrorT$inboundSchema, {
171
171
  ctype: "application/problem+json",
172
172
  }),
173
173
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
@@ -166,7 +166,7 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.json(200, models.World$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], errors.ErrorT$inboundSchema, {
@@ -166,7 +166,7 @@ async function $do(
166
166
  | SDKValidationError
167
167
  >(
168
168
  M.json(200, models.World$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
172
  M.jsonErr([500, 503], errors.ErrorT$inboundSchema, {
package/src/lib/config.ts CHANGED
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "v1",
64
- sdkVersion: "0.0.6",
64
+ sdkVersion: "0.0.7",
65
65
  genVersion: "2.935.1",
66
- userAgent: "speakeasy-sdk/typescript 0.0.6 2.935.1 v1 @continuous-labs/sdk",
66
+ userAgent: "speakeasy-sdk/typescript 0.0.7 2.935.1 v1 @continuous-labs/sdk",
67
67
  } as const;
@@ -6,7 +6,7 @@ import * as z from "zod/v4-mini";
6
6
 
7
7
  export type BuildWorldRequest = {
8
8
  /**
9
- * Instructions for the builder. At most 16,384 characters and 65,536 UTF-8 bytes; must not be blank or contain U+0000.
9
+ * Describe the initial data, scenario, and relationships. Populated Worlds support up to 8 selected Simulators and 1,000 starting records in total. Named record types replace their default data. At most 16,384 characters and 65,536 UTF-8 bytes. U+0000 is not permitted.
10
10
  */
11
11
  instructions?: string | undefined;
12
12
  /**
@@ -12,11 +12,15 @@ export * from "./list-simulations-response.js";
12
12
  export * from "./list-simulators-response.js";
13
13
  export * from "./list-worlds-response.js";
14
14
  export * from "./mint-simulation-token-request.js";
15
- export * from "./resource-error.js";
16
15
  export * from "./security.js";
17
16
  export * from "./simulation-token.js";
18
17
  export * from "./simulation.js";
18
+ export * from "./simulator-error.js";
19
19
  export * from "./simulator.js";
20
20
  export * from "./step.js";
21
+ export * from "./world-build.js";
22
+ export * from "./world-data-summary.js";
23
+ export * from "./world-error.js";
24
+ export * from "./world-record-count.js";
21
25
  export * from "./world-simulation.js";
22
26
  export * from "./world.js";
@@ -3,7 +3,11 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
6
8
  import { blobLikeSchema } from "../../types/blobs.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdk-validation-error.js";
7
11
  import * as models from "../index.js";
8
12
 
9
13
  export type Spec = {
@@ -19,6 +23,11 @@ export type BuildSimulatorRequest = {
19
23
  spec?: Spec | Blob | undefined;
20
24
  };
21
25
 
26
+ export type BuildSimulatorResponse = {
27
+ headers: { [k: string]: Array<string> };
28
+ result: models.Simulator;
29
+ };
30
+
22
31
  /** @internal */
23
32
  export type Spec$Outbound = {
24
33
  fileName: string;
@@ -66,3 +75,30 @@ export function buildSimulatorRequestToJSON(
66
75
  BuildSimulatorRequest$outboundSchema.parse(buildSimulatorRequest),
67
76
  );
68
77
  }
78
+
79
+ /** @internal */
80
+ export const BuildSimulatorResponse$inboundSchema: z.ZodMiniType<
81
+ BuildSimulatorResponse,
82
+ unknown
83
+ > = z.pipe(
84
+ z.object({
85
+ Headers: z._default(z.record(z.string(), z.array(z.string())), {}),
86
+ Result: models.Simulator$inboundSchema,
87
+ }),
88
+ z.transform((v) => {
89
+ return remap$(v, {
90
+ "Headers": "headers",
91
+ "Result": "result",
92
+ });
93
+ }),
94
+ );
95
+
96
+ export function buildSimulatorResponseFromJSON(
97
+ jsonString: string,
98
+ ): SafeParseResult<BuildSimulatorResponse, SDKValidationError> {
99
+ return safeParse(
100
+ jsonString,
101
+ (x) => BuildSimulatorResponse$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'BuildSimulatorResponse' from JSON`,
103
+ );
104
+ }
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import * as openEnums from "../types/enums.js";
8
+ import { OpenEnum } from "../types/enums.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import * as types from "../types/primitives.js";
11
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
12
+
13
+ /**
14
+ * Stable Simulator build error code.
15
+ */
16
+ export const SimulatorErrorCode = {
17
+ BuildFailed: "build_failed",
18
+ BuildCancelled: "build_cancelled",
19
+ } as const;
20
+ /**
21
+ * Stable Simulator build error code.
22
+ */
23
+ export type SimulatorErrorCode = OpenEnum<typeof SimulatorErrorCode>;
24
+
25
+ export type SimulatorError = {
26
+ /**
27
+ * Stable Simulator build error code.
28
+ */
29
+ code: SimulatorErrorCode;
30
+ /**
31
+ * Safe human-readable error detail.
32
+ */
33
+ detail: string;
34
+ };
35
+
36
+ /** @internal */
37
+ export const SimulatorErrorCode$inboundSchema: z.ZodMiniType<
38
+ SimulatorErrorCode,
39
+ unknown
40
+ > = openEnums.inboundSchema(SimulatorErrorCode);
41
+
42
+ /** @internal */
43
+ export const SimulatorError$inboundSchema: z.ZodMiniType<
44
+ SimulatorError,
45
+ unknown
46
+ > = z.object({
47
+ code: SimulatorErrorCode$inboundSchema,
48
+ detail: types.string(),
49
+ });
50
+
51
+ export function simulatorErrorFromJSON(
52
+ jsonString: string,
53
+ ): SafeParseResult<SimulatorError, SDKValidationError> {
54
+ return safeParse(
55
+ jsonString,
56
+ (x) => SimulatorError$inboundSchema.parse(JSON.parse(x)),
57
+ `Failed to parse 'SimulatorError' from JSON`,
58
+ );
59
+ }
@@ -11,9 +11,9 @@ import { Result as SafeParseResult } from "../types/fp.js";
11
11
  import * as types from "../types/primitives.js";
12
12
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
13
13
  import {
14
- ResourceError,
15
- ResourceError$inboundSchema,
16
- } from "./resource-error.js";
14
+ SimulatorError,
15
+ SimulatorError$inboundSchema,
16
+ } from "./simulator-error.js";
17
17
 
18
18
  /**
19
19
  * workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
@@ -46,7 +46,7 @@ export type Simulator = {
46
46
  * Simulator creation time.
47
47
  */
48
48
  createdAt: Date;
49
- error: ResourceError | null;
49
+ error: SimulatorError | null;
50
50
  /**
51
51
  * Simulator ID.
52
52
  */
@@ -84,7 +84,7 @@ export const Simulator$inboundSchema: z.ZodMiniType<Simulator, unknown> = z
84
84
  .pipe(
85
85
  z.object({
86
86
  created_at: types.date(),
87
- error: types.nullable(ResourceError$inboundSchema),
87
+ error: types.nullable(SimulatorError$inboundSchema),
88
88
  id: types.string(),
89
89
  name: types.string(),
90
90
  parent_id: types.nullable(types.string()),