@continuous-labs/sdk 0.0.6 → 0.0.8

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 (132) 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-simulator-request.d.ts +4 -4
  44. package/esm/models/build-simulator-request.d.ts.map +1 -1
  45. package/esm/models/build-simulator-request.js +3 -3
  46. package/esm/models/build-simulator-request.js.map +1 -1
  47. package/esm/models/build-world-request.d.ts +1 -1
  48. package/esm/models/index.d.ts +6 -1
  49. package/esm/models/index.d.ts.map +1 -1
  50. package/esm/models/index.js +6 -1
  51. package/esm/models/index.js.map +1 -1
  52. package/esm/models/operations/build-simulator.d.ts +11 -0
  53. package/esm/models/operations/build-simulator.d.ts.map +1 -1
  54. package/esm/models/operations/build-simulator.js +15 -0
  55. package/esm/models/operations/build-simulator.js.map +1 -1
  56. package/esm/models/simulator-build-progress.d.ts +78 -0
  57. package/esm/models/simulator-build-progress.d.ts.map +1 -0
  58. package/esm/models/simulator-build-progress.js +57 -0
  59. package/esm/models/simulator-build-progress.js.map +1 -0
  60. package/esm/models/simulator-error.d.ts +31 -0
  61. package/esm/models/simulator-error.d.ts.map +1 -0
  62. package/esm/models/simulator-error.js +25 -0
  63. package/esm/models/simulator-error.js.map +1 -0
  64. package/esm/models/simulator.d.ts +7 -2
  65. package/esm/models/simulator.d.ts.map +1 -1
  66. package/esm/models/simulator.js +4 -2
  67. package/esm/models/simulator.js.map +1 -1
  68. package/esm/models/world-build.d.ts +31 -0
  69. package/esm/models/world-build.d.ts.map +1 -0
  70. package/esm/models/world-build.js +29 -0
  71. package/esm/models/world-build.js.map +1 -0
  72. package/esm/models/world-data-summary.d.ts +26 -0
  73. package/esm/models/world-data-summary.d.ts.map +1 -0
  74. package/esm/models/world-data-summary.js +18 -0
  75. package/esm/models/world-data-summary.js.map +1 -0
  76. package/esm/models/world-error.d.ts +37 -0
  77. package/esm/models/world-error.d.ts.map +1 -0
  78. package/esm/models/world-error.js +32 -0
  79. package/esm/models/world-error.js.map +1 -0
  80. package/esm/models/world-record-count.d.ts +25 -0
  81. package/esm/models/world-record-count.d.ts.map +1 -0
  82. package/esm/models/world-record-count.js +23 -0
  83. package/esm/models/world-record-count.js.map +1 -0
  84. package/esm/models/world.d.ts +10 -8
  85. package/esm/models/world.d.ts.map +1 -1
  86. package/esm/models/world.js +5 -3
  87. package/esm/models/world.js.map +1 -1
  88. package/esm/sdk/simulators.d.ts +1 -1
  89. package/esm/sdk/simulators.d.ts.map +1 -1
  90. package/esm/sdk/simulators.js.map +1 -1
  91. package/esm/sdk/worlds.d.ts +1 -1
  92. package/esm/sdk/worlds.js +1 -1
  93. package/jsr.json +1 -1
  94. package/package.json +1 -1
  95. package/src/funcs/simulations-create-simulation.ts +1 -1
  96. package/src/funcs/simulations-delete-simulation.ts +2 -2
  97. package/src/funcs/simulations-get-simulation.ts +1 -1
  98. package/src/funcs/simulations-list-simulations.ts +1 -1
  99. package/src/funcs/simulations-start-simulation.ts +1 -1
  100. package/src/funcs/simulations-stop-simulation.ts +2 -2
  101. package/src/funcs/simulators-build-simulator.ts +16 -7
  102. package/src/funcs/simulators-cancel-simulator-build.ts +1 -1
  103. package/src/funcs/simulators-delete-simulator.ts +1 -1
  104. package/src/funcs/simulators-get-simulator.ts +1 -1
  105. package/src/funcs/simulators-list-simulators.ts +1 -1
  106. package/src/funcs/worlds-build-world.ts +2 -2
  107. package/src/funcs/worlds-cancel-world-build.ts +1 -1
  108. package/src/funcs/worlds-delete-world.ts +1 -1
  109. package/src/funcs/worlds-get-world.ts +1 -1
  110. package/src/funcs/worlds-list-worlds.ts +1 -1
  111. package/src/funcs/worlds-start-world.ts +1 -1
  112. package/src/funcs/worlds-stop-world.ts +1 -1
  113. package/src/lib/config.ts +2 -2
  114. package/src/models/build-simulator-request.ts +9 -7
  115. package/src/models/build-world-request.ts +1 -1
  116. package/src/models/index.ts +6 -1
  117. package/src/models/operations/build-simulator.ts +36 -0
  118. package/src/models/simulator-build-progress.ts +136 -0
  119. package/src/models/simulator-error.ts +59 -0
  120. package/src/models/simulator.ts +14 -5
  121. package/src/models/world-build.ts +60 -0
  122. package/src/models/world-data-summary.ts +53 -0
  123. package/src/models/world-error.ts +63 -0
  124. package/src/models/world-record-count.ts +58 -0
  125. package/src/models/world.ts +12 -12
  126. package/src/sdk/simulators.ts +1 -1
  127. package/src/sdk/worlds.ts +1 -1
  128. package/esm/models/resource-error.d.ts +0 -17
  129. package/esm/models/resource-error.d.ts.map +0 -1
  130. package/esm/models/resource-error.js +0 -15
  131. package/esm/models/resource-error.js.map +0 -1
  132. package/src/models/resource-error.ts +0 -39
@@ -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 WorldBuildStage: {
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 WorldBuildStage = OpenEnum<typeof WorldBuildStage>;
19
+ export type WorldBuild = {
20
+ /**
21
+ * Current phase of starting-data preparation.
22
+ */
23
+ stage: WorldBuildStage;
24
+ summary?: WorldDataSummary | undefined;
25
+ };
26
+ /** @internal */
27
+ export declare const WorldBuildStage$inboundSchema: z.ZodMiniType<WorldBuildStage, 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,eAAe;;;;;CAKlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AAE/D,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,WAAW,CACvD,eAAe,EACf,OAAO,CACmC,CAAC;AAE7C,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,29 @@
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 WorldBuildStage = {
13
+ Planning: "planning",
14
+ Generating: "generating",
15
+ Validating: "validating",
16
+ Complete: "complete",
17
+ };
18
+ /** @internal */
19
+ export const WorldBuildStage$inboundSchema = openEnums.inboundSchema(WorldBuildStage);
20
+ /** @internal */
21
+ export const WorldBuild$inboundSchema = z
22
+ .object({
23
+ stage: WorldBuildStage$inboundSchema,
24
+ summary: types.optional(WorldDataSummary$inboundSchema),
25
+ });
26
+ export function worldBuildFromJSON(jsonString) {
27
+ return safeParse(jsonString, (x) => WorldBuild$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldBuild' from JSON`);
28
+ }
29
+ //# 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,eAAe,GAAG;IAC7B,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAcX,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAGtC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;AAE7C,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,MAAM,CAAC;IACN,KAAK,EAAE,6BAA6B;IACpC,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"}
@@ -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"}
@@ -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,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AACtE,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AACxE,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,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,gBAA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d,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"}
@@ -15,7 +15,7 @@ export declare class Simulators extends ClientSDK {
15
15
  * @remarks
16
16
  * Starts an asynchronous Simulator build and returns the Simulator with status building. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
17
17
  */
18
- 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;;;;;O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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
- * 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.8",
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.8",
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
  ),