@continuous-labs/sdk 0.0.9 → 0.0.10

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 (70) hide show
  1. package/esm/funcs/simulators-build-simulator.d.ts +1 -1
  2. package/esm/funcs/simulators-build-simulator.js +1 -1
  3. package/esm/funcs/worlds-build-world.d.ts +1 -1
  4. package/esm/funcs/worlds-build-world.js +1 -1
  5. package/esm/lib/config.d.ts +2 -2
  6. package/esm/lib/config.js +2 -2
  7. package/esm/lib/config.js.map +1 -1
  8. package/esm/models/build-simulator-request.d.ts +9 -4
  9. package/esm/models/build-simulator-request.d.ts.map +1 -1
  10. package/esm/models/build-simulator-request.js +5 -3
  11. package/esm/models/build-simulator-request.js.map +1 -1
  12. package/esm/models/build-tool-call.d.ts +17 -0
  13. package/esm/models/build-tool-call.d.ts.map +1 -0
  14. package/esm/models/build-tool-call.js +15 -0
  15. package/esm/models/build-tool-call.js.map +1 -0
  16. package/esm/models/build-world-request.d.ts +15 -0
  17. package/esm/models/build-world-request.d.ts.map +1 -1
  18. package/esm/models/build-world-request.js +11 -2
  19. package/esm/models/build-world-request.js.map +1 -1
  20. package/esm/models/index.d.ts +2 -1
  21. package/esm/models/index.d.ts.map +1 -1
  22. package/esm/models/index.js +2 -1
  23. package/esm/models/index.js.map +1 -1
  24. package/esm/models/operations/list-simulators.d.ts +1 -0
  25. package/esm/models/operations/list-simulators.d.ts.map +1 -1
  26. package/esm/models/operations/list-simulators.js +1 -0
  27. package/esm/models/operations/list-simulators.js.map +1 -1
  28. package/esm/models/simulator-build-progress.d.ts +5 -0
  29. package/esm/models/simulator-build-progress.d.ts.map +1 -1
  30. package/esm/models/simulator-build-progress.js +3 -0
  31. package/esm/models/simulator-build-progress.js.map +1 -1
  32. package/esm/models/simulator.d.ts +25 -3
  33. package/esm/models/simulator.d.ts.map +1 -1
  34. package/esm/models/simulator.js +14 -1
  35. package/esm/models/simulator.js.map +1 -1
  36. package/esm/models/start-world-request.d.ts +1 -1
  37. package/esm/models/world-build-progress.d.ts +85 -0
  38. package/esm/models/world-build-progress.d.ts.map +1 -0
  39. package/esm/models/world-build-progress.js +61 -0
  40. package/esm/models/world-build-progress.js.map +1 -0
  41. package/esm/models/world.d.ts +15 -7
  42. package/esm/models/world.d.ts.map +1 -1
  43. package/esm/models/world.js +5 -3
  44. package/esm/models/world.js.map +1 -1
  45. package/esm/sdk/simulators.d.ts +1 -1
  46. package/esm/sdk/simulators.js +1 -1
  47. package/esm/sdk/worlds.d.ts +1 -1
  48. package/esm/sdk/worlds.js +1 -1
  49. package/jsr.json +1 -1
  50. package/package.json +1 -1
  51. package/src/funcs/simulators-build-simulator.ts +1 -1
  52. package/src/funcs/worlds-build-world.ts +1 -1
  53. package/src/lib/config.ts +2 -2
  54. package/src/models/build-simulator-request.ts +16 -7
  55. package/src/models/build-tool-call.ts +39 -0
  56. package/src/models/build-world-request.ts +32 -5
  57. package/src/models/index.ts +2 -1
  58. package/src/models/operations/list-simulators.ts +1 -0
  59. package/src/models/simulator-build-progress.ts +10 -0
  60. package/src/models/simulator.ts +33 -3
  61. package/src/models/start-world-request.ts +1 -1
  62. package/src/models/world-build-progress.ts +152 -0
  63. package/src/models/world.ts +20 -8
  64. package/src/sdk/simulators.ts +1 -1
  65. package/src/sdk/worlds.ts +1 -1
  66. package/esm/models/world-build.d.ts +0 -77
  67. package/esm/models/world-build.d.ts.map +0 -1
  68. package/esm/models/world-build.js +0 -59
  69. package/esm/models/world-build.js.map +0 -1
  70. package/src/models/world-build.ts +0 -133
@@ -32,16 +32,29 @@ export const Source = {
32
32
  export type Source = OpenEnum<typeof Source>;
33
33
 
34
34
  /**
35
- * building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
35
+ * The specification the Simulator was built from, or null until a build has read it.
36
+ */
37
+ export const SimulatorSpecKind = {
38
+ Openapi: "openapi",
39
+ Wsdl: "wsdl",
40
+ } as const;
41
+ /**
42
+ * The specification the Simulator was built from, or null until a build has read it.
43
+ */
44
+ export type SimulatorSpecKind = OpenEnum<typeof SimulatorSpecKind>;
45
+
46
+ /**
47
+ * pending while waiting for capacity; building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
36
48
  */
37
49
  export const SimulatorStatus = {
50
+ Pending: "pending",
38
51
  Building: "building",
39
52
  Ready: "ready",
40
53
  Failed: "failed",
41
54
  Canceled: "canceled",
42
55
  } as const;
43
56
  /**
44
- * building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
57
+ * pending while waiting for capacity; building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
45
58
  */
46
59
  export type SimulatorStatus = OpenEnum<typeof SimulatorStatus>;
47
60
 
@@ -59,6 +72,10 @@ export type Simulator = {
59
72
  * Simulator ID.
60
73
  */
61
74
  id: string;
75
+ /**
76
+ * The instructions the build followed, or empty when none were given.
77
+ */
78
+ instructions: string;
62
79
  /**
63
80
  * Simulator name. Names cannot start with smr_.
64
81
  */
@@ -72,7 +89,11 @@ export type Simulator = {
72
89
  */
73
90
  source: Source;
74
91
  /**
75
- * building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
92
+ * The specification the Simulator was built from, or null until a build has read it.
93
+ */
94
+ specKind: SimulatorSpecKind | null;
95
+ /**
96
+ * pending while waiting for capacity; building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
76
97
  */
77
98
  status: SimulatorStatus;
78
99
  };
@@ -81,6 +102,12 @@ export type Simulator = {
81
102
  export const Source$inboundSchema: z.ZodMiniType<Source, unknown> = openEnums
82
103
  .inboundSchema(Source);
83
104
 
105
+ /** @internal */
106
+ export const SimulatorSpecKind$inboundSchema: z.ZodMiniType<
107
+ SimulatorSpecKind,
108
+ unknown
109
+ > = openEnums.inboundSchema(SimulatorSpecKind);
110
+
84
111
  /** @internal */
85
112
  export const SimulatorStatus$inboundSchema: z.ZodMiniType<
86
113
  SimulatorStatus,
@@ -95,15 +122,18 @@ export const Simulator$inboundSchema: z.ZodMiniType<Simulator, unknown> = z
95
122
  created_at: types.date(),
96
123
  error: types.nullable(SimulatorError$inboundSchema),
97
124
  id: types.string(),
125
+ instructions: types.string(),
98
126
  name: types.string(),
99
127
  parent_id: types.nullable(types.string()),
100
128
  source: Source$inboundSchema,
129
+ spec_kind: types.nullable(SimulatorSpecKind$inboundSchema),
101
130
  status: SimulatorStatus$inboundSchema,
102
131
  }),
103
132
  z.transform((v) => {
104
133
  return remap$(v, {
105
134
  "created_at": "createdAt",
106
135
  "parent_id": "parentId",
136
+ "spec_kind": "specKind",
107
137
  });
108
138
  }),
109
139
  );
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../lib/primitives.js";
7
7
 
8
8
  export type StartWorldRequest = {
9
9
  /**
10
- * Initial simulated time for the first Start, in RFC 3339 format. Omission uses 2024-01-01T00:00:00Z. Saved business dates remain unchanged. Later starts preserve the clock.
10
+ * Simulated time for the first Start, in RFC 3339 format. Omission keeps the clock chosen at build. Saved business dates remain unchanged. Later starts preserve the clock.
11
11
  */
12
12
  startTime?: Date | undefined;
13
13
  };
@@ -0,0 +1,152 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ import { OpenEnum } from "../types/enums.js";
10
+ import { Result as SafeParseResult } from "../types/fp.js";
11
+ import * as types from "../types/primitives.js";
12
+ import {
13
+ BuildToolCall,
14
+ BuildToolCall$inboundSchema,
15
+ } from "./build-tool-call.js";
16
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
17
+ import {
18
+ WorldDataSummary,
19
+ WorldDataSummary$inboundSchema,
20
+ } from "./world-data-summary.js";
21
+
22
+ /**
23
+ * Selected model provider, or null for a build created before provider selection.
24
+ */
25
+ export const WorldBuildProgressBuilder = {
26
+ Openai: "openai",
27
+ Claude: "claude",
28
+ } as const;
29
+ /**
30
+ * Selected model provider, or null for a build created before provider selection.
31
+ */
32
+ export type WorldBuildProgressBuilder = OpenEnum<
33
+ typeof WorldBuildProgressBuilder
34
+ >;
35
+
36
+ /**
37
+ * Outcome of the most recent plan submission, or null.
38
+ */
39
+ export const WorldBuildProgressLastSubmission = {
40
+ Accepted: "accepted",
41
+ Rejected: "rejected",
42
+ } as const;
43
+ /**
44
+ * Outcome of the most recent plan submission, or null.
45
+ */
46
+ export type WorldBuildProgressLastSubmission = OpenEnum<
47
+ typeof WorldBuildProgressLastSubmission
48
+ >;
49
+
50
+ /**
51
+ * Current phase of starting-data preparation.
52
+ */
53
+ export const WorldBuildProgressStage = {
54
+ Planning: "planning",
55
+ Generating: "generating",
56
+ Validating: "validating",
57
+ Complete: "complete",
58
+ } as const;
59
+ /**
60
+ * Current phase of starting-data preparation.
61
+ */
62
+ export type WorldBuildProgressStage = OpenEnum<typeof WorldBuildProgressStage>;
63
+
64
+ export type WorldBuildProgress = {
65
+ /**
66
+ * Selected model provider, or null for a build created before provider selection.
67
+ */
68
+ builder: WorldBuildProgressBuilder | null;
69
+ /**
70
+ * Outcome of the most recent plan submission, or null.
71
+ */
72
+ lastSubmission: WorldBuildProgressLastSubmission | null;
73
+ /**
74
+ * Name of the most recent tool, or null. Tool arguments and output are private.
75
+ */
76
+ lastTool: string | null;
77
+ /**
78
+ * The most recent tool calls, oldest first, at most 20.
79
+ */
80
+ recentTools: Array<BuildToolCall>;
81
+ /**
82
+ * Current phase of starting-data preparation.
83
+ */
84
+ stage: WorldBuildProgressStage;
85
+ /**
86
+ * Number of submitted starting-data plans.
87
+ */
88
+ submissions: number;
89
+ /**
90
+ * Verified starting data, or null before a completed build.
91
+ */
92
+ summary: WorldDataSummary | null;
93
+ /**
94
+ * Number of agent tool calls.
95
+ */
96
+ toolCalls: number;
97
+ };
98
+
99
+ /** @internal */
100
+ export const WorldBuildProgressBuilder$inboundSchema: z.ZodMiniType<
101
+ WorldBuildProgressBuilder,
102
+ unknown
103
+ > = openEnums.inboundSchema(WorldBuildProgressBuilder);
104
+
105
+ /** @internal */
106
+ export const WorldBuildProgressLastSubmission$inboundSchema: z.ZodMiniType<
107
+ WorldBuildProgressLastSubmission,
108
+ unknown
109
+ > = openEnums.inboundSchema(WorldBuildProgressLastSubmission);
110
+
111
+ /** @internal */
112
+ export const WorldBuildProgressStage$inboundSchema: z.ZodMiniType<
113
+ WorldBuildProgressStage,
114
+ unknown
115
+ > = openEnums.inboundSchema(WorldBuildProgressStage);
116
+
117
+ /** @internal */
118
+ export const WorldBuildProgress$inboundSchema: z.ZodMiniType<
119
+ WorldBuildProgress,
120
+ unknown
121
+ > = z.pipe(
122
+ z.object({
123
+ builder: types.nullable(WorldBuildProgressBuilder$inboundSchema),
124
+ last_submission: types.nullable(
125
+ WorldBuildProgressLastSubmission$inboundSchema,
126
+ ),
127
+ last_tool: types.nullable(types.string()),
128
+ recent_tools: z.array(BuildToolCall$inboundSchema),
129
+ stage: WorldBuildProgressStage$inboundSchema,
130
+ submissions: types.number(),
131
+ summary: types.nullable(WorldDataSummary$inboundSchema),
132
+ tool_calls: types.number(),
133
+ }),
134
+ z.transform((v) => {
135
+ return remap$(v, {
136
+ "last_submission": "lastSubmission",
137
+ "last_tool": "lastTool",
138
+ "recent_tools": "recentTools",
139
+ "tool_calls": "toolCalls",
140
+ });
141
+ }),
142
+ );
143
+
144
+ export function worldBuildProgressFromJSON(
145
+ jsonString: string,
146
+ ): SafeParseResult<WorldBuildProgress, SDKValidationError> {
147
+ return safeParse(
148
+ jsonString,
149
+ (x) => WorldBuildProgress$inboundSchema.parse(JSON.parse(x)),
150
+ `Failed to parse 'WorldBuildProgress' from JSON`,
151
+ );
152
+ }
@@ -10,7 +10,10 @@ import { OpenEnum } from "../types/enums.js";
10
10
  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
- import { WorldBuild, WorldBuild$inboundSchema } from "./world-build.js";
13
+ import {
14
+ WorldBuildProgress,
15
+ WorldBuildProgress$inboundSchema,
16
+ } from "./world-build-progress.js";
14
17
  import { WorldError, WorldError$inboundSchema } from "./world-error.js";
15
18
  import {
16
19
  WorldSimulation,
@@ -18,9 +21,10 @@ import {
18
21
  } from "./world-simulation.js";
19
22
 
20
23
  /**
21
- * 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.
24
+ * pending while waiting for capacity; 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.
22
25
  */
23
26
  export const WorldStatus = {
27
+ Pending: "pending",
24
28
  Building: "building",
25
29
  Ready: "ready",
26
30
  Running: "running",
@@ -29,7 +33,7 @@ export const WorldStatus = {
29
33
  Canceled: "canceled",
30
34
  } as const;
31
35
  /**
32
- * 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.
36
+ * pending while waiting for capacity; 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.
33
37
  */
34
38
  export type WorldStatus = OpenEnum<typeof WorldStatus>;
35
39
 
@@ -38,9 +42,12 @@ export type World = {
38
42
  * Current clock advance operation ID, or null.
39
43
  */
40
44
  activeAdvanceId: string | null;
41
- build?: WorldBuild | undefined;
42
45
  /**
43
- * Time when the World build started.
46
+ * The build's latest progress report and verified starting data, or null before the first report.
47
+ */
48
+ build: WorldBuildProgress | null;
49
+ /**
50
+ * Time when the World was created.
44
51
  */
45
52
  createdAt: Date;
46
53
  /**
@@ -56,6 +63,10 @@ export type World = {
56
63
  * Instructions for the initial synthetic data and relationships.
57
64
  */
58
65
  instructions: string;
66
+ /**
67
+ * Name for the World.
68
+ */
69
+ name: string;
59
70
  /**
60
71
  * Created member Simulations. This list is empty before first start.
61
72
  */
@@ -65,11 +76,11 @@ export type World = {
65
76
  */
66
77
  simulators: Array<string>;
67
78
  /**
68
- * Initial simulated time. Before first Start this is the default time.
79
+ * Simulated time the World starts at: chosen at build, and changeable on the first Start.
69
80
  */
70
81
  startTime: Date;
71
82
  /**
72
- * 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.
83
+ * pending while waiting for capacity; 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.
73
84
  */
74
85
  status: WorldStatus;
75
86
  };
@@ -82,12 +93,13 @@ export const WorldStatus$inboundSchema: z.ZodMiniType<WorldStatus, unknown> =
82
93
  export const World$inboundSchema: z.ZodMiniType<World, unknown> = z.pipe(
83
94
  z.object({
84
95
  active_advance_id: types.nullable(types.string()),
85
- build: types.optional(WorldBuild$inboundSchema),
96
+ build: types.nullable(WorldBuildProgress$inboundSchema),
86
97
  created_at: types.date(),
87
98
  current_time: types.date(),
88
99
  error: types.nullable(WorldError$inboundSchema),
89
100
  id: types.string(),
90
101
  instructions: types.string(),
102
+ name: types.string(),
91
103
  simulations: z.array(WorldSimulation$inboundSchema),
92
104
  simulators: z.array(types.string()),
93
105
  start_time: types.date(),
@@ -34,7 +34,7 @@ export class Simulators extends ClientSDK {
34
34
  * Build Simulator
35
35
  *
36
36
  * @remarks
37
- * Starts an asynchronous Simulator build and returns the Simulator with status building. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
37
+ * Starts an asynchronous Simulator build and returns the Simulator with status pending. Builds start in queue order when workspace capacity is available. Send multipart/form-data with a JSON part named request. To build from a document, add a file part named spec with the OpenAPI or WSDL document. For an incremental build, omit spec and set parent_id and instructions.
38
38
  */
39
39
  async buildSimulator(
40
40
  request: operations.BuildSimulatorRequest,
package/src/sdk/worlds.ts CHANGED
@@ -38,7 +38,7 @@ export class Worlds extends ClientSDK {
38
38
  * Build World
39
39
  *
40
40
  * @remarks
41
- * 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.
41
+ * Starts an asynchronous World build from ready Simulators and returns it in the pending state. Builds start in queue order when workspace capacity is available. Instructions generate and validate initial synthetic data. Start the World once it is ready to create its Simulations.
42
42
  */
43
43
  async buildWorld(
44
44
  request: models.BuildWorldRequest,
@@ -1,77 +0,0 @@
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
- * Selected model provider. Absent for builds created before provider selection.
8
- */
9
- export declare const WorldBuildBuilder: {
10
- readonly Openai: "openai";
11
- readonly Claude: "claude";
12
- };
13
- /**
14
- * Selected model provider. Absent for builds created before provider selection.
15
- */
16
- export type WorldBuildBuilder = OpenEnum<typeof WorldBuildBuilder>;
17
- /**
18
- * Outcome of the most recent plan submission.
19
- */
20
- export declare const WorldBuildLastSubmission: {
21
- readonly Accepted: "accepted";
22
- readonly Rejected: "rejected";
23
- };
24
- /**
25
- * Outcome of the most recent plan submission.
26
- */
27
- export type WorldBuildLastSubmission = OpenEnum<typeof WorldBuildLastSubmission>;
28
- /**
29
- * Current phase of starting-data preparation.
30
- */
31
- export declare const WorldBuildStage: {
32
- readonly Planning: "planning";
33
- readonly Generating: "generating";
34
- readonly Validating: "validating";
35
- readonly Complete: "complete";
36
- };
37
- /**
38
- * Current phase of starting-data preparation.
39
- */
40
- export type WorldBuildStage = OpenEnum<typeof WorldBuildStage>;
41
- export type WorldBuild = {
42
- /**
43
- * Selected model provider. Absent for builds created before provider selection.
44
- */
45
- builder?: WorldBuildBuilder | undefined;
46
- /**
47
- * Outcome of the most recent plan submission.
48
- */
49
- lastSubmission?: WorldBuildLastSubmission | undefined;
50
- /**
51
- * Name of the most recent tool. Tool arguments and output are private.
52
- */
53
- lastTool?: string | undefined;
54
- /**
55
- * Current phase of starting-data preparation.
56
- */
57
- stage: WorldBuildStage;
58
- /**
59
- * Number of submitted starting-data plans.
60
- */
61
- submissions?: number | undefined;
62
- summary?: WorldDataSummary | undefined;
63
- /**
64
- * Number of agent tool calls.
65
- */
66
- toolCalls?: number | undefined;
67
- };
68
- /** @internal */
69
- export declare const WorldBuildBuilder$inboundSchema: z.ZodMiniType<WorldBuildBuilder, unknown>;
70
- /** @internal */
71
- export declare const WorldBuildLastSubmission$inboundSchema: z.ZodMiniType<WorldBuildLastSubmission, unknown>;
72
- /** @internal */
73
- export declare const WorldBuildStage$inboundSchema: z.ZodMiniType<WorldBuildStage, unknown>;
74
- /** @internal */
75
- export declare const WorldBuild$inboundSchema: z.ZodMiniType<WorldBuild, unknown>;
76
- export declare function worldBuildFromJSON(jsonString: string): SafeParseResult<WorldBuild, SDKValidationError>;
77
- //# sourceMappingURL=world-build.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"world-build.d.ts","sourceRoot":"","sources":["../../src/models/world-build.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,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,wBAA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zod/v4-mini";
5
- import { remap as remap$ } from "../lib/primitives.js";
6
- import { safeParse } from "../lib/schemas.js";
7
- import * as openEnums from "../types/enums.js";
8
- import * as types from "../types/primitives.js";
9
- import { WorldDataSummary$inboundSchema, } from "./world-data-summary.js";
10
- /**
11
- * Selected model provider. Absent for builds created before provider selection.
12
- */
13
- export const WorldBuildBuilder = {
14
- Openai: "openai",
15
- Claude: "claude",
16
- };
17
- /**
18
- * Outcome of the most recent plan submission.
19
- */
20
- export const WorldBuildLastSubmission = {
21
- Accepted: "accepted",
22
- Rejected: "rejected",
23
- };
24
- /**
25
- * Current phase of starting-data preparation.
26
- */
27
- export const WorldBuildStage = {
28
- Planning: "planning",
29
- Generating: "generating",
30
- Validating: "validating",
31
- Complete: "complete",
32
- };
33
- /** @internal */
34
- export const WorldBuildBuilder$inboundSchema = openEnums.inboundSchema(WorldBuildBuilder);
35
- /** @internal */
36
- export const WorldBuildLastSubmission$inboundSchema = openEnums.inboundSchema(WorldBuildLastSubmission);
37
- /** @internal */
38
- export const WorldBuildStage$inboundSchema = openEnums.inboundSchema(WorldBuildStage);
39
- /** @internal */
40
- export const WorldBuild$inboundSchema = z
41
- .pipe(z.object({
42
- builder: types.optional(WorldBuildBuilder$inboundSchema),
43
- last_submission: types.optional(WorldBuildLastSubmission$inboundSchema),
44
- last_tool: types.optional(types.string()),
45
- stage: WorldBuildStage$inboundSchema,
46
- submissions: types.optional(types.number()),
47
- summary: types.optional(WorldDataSummary$inboundSchema),
48
- tool_calls: types.optional(types.number()),
49
- }), z.transform((v) => {
50
- return remap$(v, {
51
- "last_submission": "lastSubmission",
52
- "last_tool": "lastTool",
53
- "tool_calls": "toolCalls",
54
- });
55
- }));
56
- export function worldBuildFromJSON(jsonString) {
57
- return safeParse(jsonString, (x) => WorldBuild$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldBuild' from JSON`);
58
- }
59
- //# sourceMappingURL=world-build.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"world-build.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CAAC,QAAQ,CAAC,sCAAsC,CAAC;IACvE,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACzC,KAAK,EAAE,6BAA6B;IACpC,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC3C,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IACvD,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC3C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;QACnC,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEJ,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"}
@@ -1,133 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4-mini";
6
- import { remap as remap$ } from "../lib/primitives.js";
7
- import { safeParse } from "../lib/schemas.js";
8
- import * as openEnums from "../types/enums.js";
9
- import { OpenEnum } from "../types/enums.js";
10
- import { Result as SafeParseResult } from "../types/fp.js";
11
- import * as types from "../types/primitives.js";
12
- import { SDKValidationError } from "./errors/sdk-validation-error.js";
13
- import {
14
- WorldDataSummary,
15
- WorldDataSummary$inboundSchema,
16
- } from "./world-data-summary.js";
17
-
18
- /**
19
- * Selected model provider. Absent for builds created before provider selection.
20
- */
21
- export const WorldBuildBuilder = {
22
- Openai: "openai",
23
- Claude: "claude",
24
- } as const;
25
- /**
26
- * Selected model provider. Absent for builds created before provider selection.
27
- */
28
- export type WorldBuildBuilder = OpenEnum<typeof WorldBuildBuilder>;
29
-
30
- /**
31
- * Outcome of the most recent plan submission.
32
- */
33
- export const WorldBuildLastSubmission = {
34
- Accepted: "accepted",
35
- Rejected: "rejected",
36
- } as const;
37
- /**
38
- * Outcome of the most recent plan submission.
39
- */
40
- export type WorldBuildLastSubmission = OpenEnum<
41
- typeof WorldBuildLastSubmission
42
- >;
43
-
44
- /**
45
- * Current phase of starting-data preparation.
46
- */
47
- export const WorldBuildStage = {
48
- Planning: "planning",
49
- Generating: "generating",
50
- Validating: "validating",
51
- Complete: "complete",
52
- } as const;
53
- /**
54
- * Current phase of starting-data preparation.
55
- */
56
- export type WorldBuildStage = OpenEnum<typeof WorldBuildStage>;
57
-
58
- export type WorldBuild = {
59
- /**
60
- * Selected model provider. Absent for builds created before provider selection.
61
- */
62
- builder?: WorldBuildBuilder | undefined;
63
- /**
64
- * Outcome of the most recent plan submission.
65
- */
66
- lastSubmission?: WorldBuildLastSubmission | undefined;
67
- /**
68
- * Name of the most recent tool. Tool arguments and output are private.
69
- */
70
- lastTool?: string | undefined;
71
- /**
72
- * Current phase of starting-data preparation.
73
- */
74
- stage: WorldBuildStage;
75
- /**
76
- * Number of submitted starting-data plans.
77
- */
78
- submissions?: number | undefined;
79
- summary?: WorldDataSummary | undefined;
80
- /**
81
- * Number of agent tool calls.
82
- */
83
- toolCalls?: number | undefined;
84
- };
85
-
86
- /** @internal */
87
- export const WorldBuildBuilder$inboundSchema: z.ZodMiniType<
88
- WorldBuildBuilder,
89
- unknown
90
- > = openEnums.inboundSchema(WorldBuildBuilder);
91
-
92
- /** @internal */
93
- export const WorldBuildLastSubmission$inboundSchema: z.ZodMiniType<
94
- WorldBuildLastSubmission,
95
- unknown
96
- > = openEnums.inboundSchema(WorldBuildLastSubmission);
97
-
98
- /** @internal */
99
- export const WorldBuildStage$inboundSchema: z.ZodMiniType<
100
- WorldBuildStage,
101
- unknown
102
- > = openEnums.inboundSchema(WorldBuildStage);
103
-
104
- /** @internal */
105
- export const WorldBuild$inboundSchema: z.ZodMiniType<WorldBuild, unknown> = z
106
- .pipe(
107
- z.object({
108
- builder: types.optional(WorldBuildBuilder$inboundSchema),
109
- last_submission: types.optional(WorldBuildLastSubmission$inboundSchema),
110
- last_tool: types.optional(types.string()),
111
- stage: WorldBuildStage$inboundSchema,
112
- submissions: types.optional(types.number()),
113
- summary: types.optional(WorldDataSummary$inboundSchema),
114
- tool_calls: types.optional(types.number()),
115
- }),
116
- z.transform((v) => {
117
- return remap$(v, {
118
- "last_submission": "lastSubmission",
119
- "last_tool": "lastTool",
120
- "tool_calls": "toolCalls",
121
- });
122
- }),
123
- );
124
-
125
- export function worldBuildFromJSON(
126
- jsonString: string,
127
- ): SafeParseResult<WorldBuild, SDKValidationError> {
128
- return safeParse(
129
- jsonString,
130
- (x) => WorldBuild$inboundSchema.parse(JSON.parse(x)),
131
- `Failed to parse 'WorldBuild' from JSON`,
132
- );
133
- }