@continuous-labs/sdk 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/esm/funcs/simulations-create-simulation.d.ts +1 -1
- package/esm/funcs/simulations-create-simulation.js +2 -2
- package/esm/funcs/simulations-create-simulation.js.map +1 -1
- package/esm/funcs/simulations-delete-simulation.js +2 -2
- package/esm/funcs/simulations-delete-simulation.js.map +1 -1
- package/esm/funcs/simulations-fork-simulation.d.ts +1 -1
- package/esm/funcs/simulations-fork-simulation.js +1 -1
- package/esm/funcs/simulations-get-simulation.d.ts +1 -1
- package/esm/funcs/simulations-get-simulation.js +2 -2
- package/esm/funcs/simulations-get-simulation.js.map +1 -1
- package/esm/funcs/simulations-list-simulation-steps.d.ts +1 -1
- package/esm/funcs/simulations-list-simulation-steps.js +1 -1
- package/esm/funcs/simulations-list-simulations.js +1 -1
- package/esm/funcs/simulations-list-simulations.js.map +1 -1
- package/esm/funcs/simulations-mint-simulation-token.d.ts +1 -1
- package/esm/funcs/simulations-mint-simulation-token.js +1 -1
- package/esm/funcs/simulations-start-simulation.d.ts +1 -1
- package/esm/funcs/simulations-start-simulation.js +2 -2
- package/esm/funcs/simulations-start-simulation.js.map +1 -1
- package/esm/funcs/simulations-stop-simulation.d.ts +1 -1
- package/esm/funcs/simulations-stop-simulation.js +3 -3
- package/esm/funcs/simulations-stop-simulation.js.map +1 -1
- package/esm/funcs/simulators-build-simulator.d.ts +2 -3
- package/esm/funcs/simulators-build-simulator.d.ts.map +1 -1
- package/esm/funcs/simulators-build-simulator.js +10 -3
- package/esm/funcs/simulators-build-simulator.js.map +1 -1
- package/esm/funcs/simulators-cancel-simulator-build.js +1 -1
- package/esm/funcs/simulators-cancel-simulator-build.js.map +1 -1
- package/esm/funcs/simulators-delete-simulator.js +1 -1
- package/esm/funcs/simulators-delete-simulator.js.map +1 -1
- package/esm/funcs/simulators-get-simulator.js +1 -1
- package/esm/funcs/simulators-get-simulator.js.map +1 -1
- package/esm/funcs/simulators-list-simulators.js +1 -1
- package/esm/funcs/simulators-list-simulators.js.map +1 -1
- package/esm/funcs/worlds-build-world.d.ts +1 -1
- package/esm/funcs/worlds-build-world.js +2 -2
- package/esm/funcs/worlds-build-world.js.map +1 -1
- package/esm/funcs/worlds-cancel-world-build.js +1 -1
- package/esm/funcs/worlds-cancel-world-build.js.map +1 -1
- package/esm/funcs/worlds-delete-world.js +1 -1
- package/esm/funcs/worlds-delete-world.js.map +1 -1
- package/esm/funcs/worlds-get-world.js +1 -1
- package/esm/funcs/worlds-get-world.js.map +1 -1
- package/esm/funcs/worlds-list-worlds.js +1 -1
- package/esm/funcs/worlds-list-worlds.js.map +1 -1
- package/esm/funcs/worlds-start-world.d.ts +1 -1
- package/esm/funcs/worlds-start-world.js +2 -2
- package/esm/funcs/worlds-start-world.js.map +1 -1
- package/esm/funcs/worlds-stop-world.js +1 -1
- package/esm/funcs/worlds-stop-world.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/build-simulator-request.d.ts +6 -6
- package/esm/models/build-simulator-request.js +1 -1
- package/esm/models/build-world-request.d.ts +2 -2
- package/esm/models/create-simulation-request.d.ts +1 -1
- package/esm/models/created-simulation.d.ts +8 -8
- package/esm/models/created-simulation.js +1 -1
- package/esm/models/index.d.ts +5 -1
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +5 -1
- package/esm/models/index.js.map +1 -1
- package/esm/models/list-worlds-response.d.ts +1 -1
- package/esm/models/operations/build-simulator.d.ts +12 -1
- package/esm/models/operations/build-simulator.d.ts.map +1 -1
- package/esm/models/operations/build-simulator.js +15 -0
- package/esm/models/operations/build-simulator.js.map +1 -1
- package/esm/models/operations/cancel-simulator-build.d.ts +1 -1
- package/esm/models/operations/cancel-world-build.d.ts +1 -1
- package/esm/models/operations/delete-simulation.d.ts +1 -1
- package/esm/models/operations/delete-simulator.d.ts +1 -1
- package/esm/models/operations/delete-world.d.ts +1 -1
- package/esm/models/operations/fork-simulation.d.ts +1 -1
- package/esm/models/operations/get-simulation.d.ts +1 -1
- package/esm/models/operations/get-simulator.d.ts +1 -1
- package/esm/models/operations/get-world.d.ts +1 -1
- package/esm/models/operations/list-simulation-steps.d.ts +1 -1
- package/esm/models/operations/list-simulations.d.ts +4 -4
- package/esm/models/operations/list-simulations.js +1 -1
- package/esm/models/operations/list-simulators.d.ts +1 -1
- package/esm/models/operations/list-worlds.d.ts +1 -1
- package/esm/models/operations/mint-simulation-token.d.ts +1 -1
- package/esm/models/operations/start-simulation.d.ts +1 -1
- package/esm/models/operations/start-world.d.ts +1 -1
- package/esm/models/operations/stop-simulation.d.ts +1 -1
- package/esm/models/operations/stop-world.d.ts +1 -1
- package/esm/models/simulation-token.d.ts +1 -1
- package/esm/models/simulation.d.ts +7 -7
- package/esm/models/simulation.js +1 -1
- package/esm/models/simulator-error.d.ts +31 -0
- package/esm/models/simulator-error.d.ts.map +1 -0
- package/esm/models/simulator-error.js +25 -0
- package/esm/models/simulator-error.js.map +1 -0
- package/esm/models/simulator.d.ts +10 -10
- package/esm/models/simulator.d.ts.map +1 -1
- package/esm/models/simulator.js +4 -4
- package/esm/models/simulator.js.map +1 -1
- package/esm/models/step.d.ts +2 -2
- package/esm/models/world-build.d.ts +31 -0
- package/esm/models/world-build.d.ts.map +1 -0
- package/esm/models/world-build.js +30 -0
- package/esm/models/world-build.js.map +1 -0
- package/esm/models/world-data-summary.d.ts +26 -0
- package/esm/models/world-data-summary.d.ts.map +1 -0
- package/esm/models/world-data-summary.js +18 -0
- package/esm/models/world-data-summary.js.map +1 -0
- package/esm/models/world-error.d.ts +37 -0
- package/esm/models/world-error.d.ts.map +1 -0
- package/esm/models/world-error.js +32 -0
- package/esm/models/world-error.js.map +1 -0
- package/esm/models/world-record-count.d.ts +25 -0
- package/esm/models/world-record-count.d.ts.map +1 -0
- package/esm/models/world-record-count.js +23 -0
- package/esm/models/world-record-count.js.map +1 -0
- package/esm/models/world-simulation.d.ts +2 -2
- package/esm/models/world.d.ts +10 -8
- package/esm/models/world.d.ts.map +1 -1
- package/esm/models/world.js +5 -3
- package/esm/models/world.js.map +1 -1
- package/esm/sdk/simulations.d.ts +7 -7
- package/esm/sdk/simulations.js +7 -7
- package/esm/sdk/simulators.d.ts +2 -2
- package/esm/sdk/simulators.d.ts.map +1 -1
- package/esm/sdk/simulators.js +1 -1
- package/esm/sdk/simulators.js.map +1 -1
- package/esm/sdk/worlds.d.ts +2 -2
- package/esm/sdk/worlds.js +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/simulations-create-simulation.ts +2 -2
- package/src/funcs/simulations-delete-simulation.ts +2 -2
- package/src/funcs/simulations-fork-simulation.ts +1 -1
- package/src/funcs/simulations-get-simulation.ts +2 -2
- package/src/funcs/simulations-list-simulation-steps.ts +1 -1
- package/src/funcs/simulations-list-simulations.ts +1 -1
- package/src/funcs/simulations-mint-simulation-token.ts +1 -1
- package/src/funcs/simulations-start-simulation.ts +2 -2
- package/src/funcs/simulations-stop-simulation.ts +3 -3
- package/src/funcs/simulators-build-simulator.ts +17 -8
- package/src/funcs/simulators-cancel-simulator-build.ts +1 -1
- package/src/funcs/simulators-delete-simulator.ts +1 -1
- package/src/funcs/simulators-get-simulator.ts +1 -1
- package/src/funcs/simulators-list-simulators.ts +1 -1
- package/src/funcs/worlds-build-world.ts +2 -2
- package/src/funcs/worlds-cancel-world-build.ts +1 -1
- package/src/funcs/worlds-delete-world.ts +1 -1
- package/src/funcs/worlds-get-world.ts +1 -1
- package/src/funcs/worlds-list-worlds.ts +1 -1
- package/src/funcs/worlds-start-world.ts +2 -2
- package/src/funcs/worlds-stop-world.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/build-simulator-request.ts +6 -6
- package/src/models/build-world-request.ts +2 -2
- package/src/models/create-simulation-request.ts +1 -1
- package/src/models/created-simulation.ts +8 -8
- package/src/models/index.ts +5 -1
- package/src/models/list-worlds-response.ts +1 -1
- package/src/models/operations/build-simulator.ts +37 -1
- package/src/models/operations/cancel-simulator-build.ts +1 -1
- package/src/models/operations/cancel-world-build.ts +1 -1
- package/src/models/operations/delete-simulation.ts +1 -1
- package/src/models/operations/delete-simulator.ts +1 -1
- package/src/models/operations/delete-world.ts +1 -1
- package/src/models/operations/fork-simulation.ts +1 -1
- package/src/models/operations/get-simulation.ts +1 -1
- package/src/models/operations/get-simulator.ts +1 -1
- package/src/models/operations/get-world.ts +1 -1
- package/src/models/operations/list-simulation-steps.ts +1 -1
- package/src/models/operations/list-simulations.ts +4 -4
- package/src/models/operations/list-simulators.ts +1 -1
- package/src/models/operations/list-worlds.ts +1 -1
- package/src/models/operations/mint-simulation-token.ts +1 -1
- package/src/models/operations/start-simulation.ts +1 -1
- package/src/models/operations/start-world.ts +1 -1
- package/src/models/operations/stop-simulation.ts +1 -1
- package/src/models/operations/stop-world.ts +1 -1
- package/src/models/simulation-token.ts +1 -1
- package/src/models/simulation.ts +7 -7
- package/src/models/simulator-error.ts +59 -0
- package/src/models/simulator.ts +13 -13
- package/src/models/step.ts +2 -2
- package/src/models/world-build.ts +58 -0
- package/src/models/world-data-summary.ts +53 -0
- package/src/models/world-error.ts +63 -0
- package/src/models/world-record-count.ts +58 -0
- package/src/models/world-simulation.ts +2 -2
- package/src/models/world.ts +12 -12
- package/src/sdk/simulations.ts +7 -7
- package/src/sdk/simulators.ts +2 -2
- package/src/sdk/worlds.ts +2 -2
- package/esm/models/resource-error.d.ts +0 -17
- package/esm/models/resource-error.d.ts.map +0 -1
- package/esm/models/resource-error.js +0 -15
- package/esm/models/resource-error.js.map +0 -1
- package/src/models/resource-error.ts +0 -39
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
* Optional
|
|
4
|
+
* Optional status filter.
|
|
5
5
|
*/
|
|
6
6
|
export declare const ListSimulationsStatus: {
|
|
7
7
|
readonly Running: "running";
|
|
@@ -9,16 +9,16 @@ export declare const ListSimulationsStatus: {
|
|
|
9
9
|
readonly Stopped: "stopped";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* Optional
|
|
12
|
+
* Optional status filter.
|
|
13
13
|
*/
|
|
14
14
|
export type ListSimulationsStatus = ClosedEnum<typeof ListSimulationsStatus>;
|
|
15
15
|
export type ListSimulationsRequest = {
|
|
16
16
|
/**
|
|
17
|
-
* Optional
|
|
17
|
+
* Optional status filter.
|
|
18
18
|
*/
|
|
19
19
|
status?: ListSimulationsStatus | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* Optional
|
|
21
|
+
* Optional Simulator ID filter.
|
|
22
22
|
*/
|
|
23
23
|
simulatorId?: string | undefined;
|
|
24
24
|
/**
|
|
@@ -19,7 +19,7 @@ export type ListSimulatorsRequest = {
|
|
|
19
19
|
*/
|
|
20
20
|
status?: ListSimulatorsStatus | undefined;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Return only the Simulator with this exact name. For a Simulator from the Continuous catalog, prefix the name with continuous/. Names cannot start with smr_.
|
|
23
23
|
*/
|
|
24
24
|
name?: string | undefined;
|
|
25
25
|
/**
|
|
@@ -3,7 +3,7 @@ import { OpenEnum } from "../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
5
|
/**
|
|
6
|
-
* Current Simulation
|
|
6
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
7
7
|
*/
|
|
8
8
|
export declare const SimulationStatus: {
|
|
9
9
|
readonly Running: "running";
|
|
@@ -11,7 +11,7 @@ export declare const SimulationStatus: {
|
|
|
11
11
|
readonly Stopped: "stopped";
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Current Simulation
|
|
14
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
15
15
|
*/
|
|
16
16
|
export type SimulationStatus = OpenEnum<typeof SimulationStatus>;
|
|
17
17
|
export type Simulation = {
|
|
@@ -20,11 +20,11 @@ export type Simulation = {
|
|
|
20
20
|
*/
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Base URL for requests to the Simulation.
|
|
24
24
|
*/
|
|
25
25
|
endpoint: string;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Simulation ID.
|
|
28
28
|
*/
|
|
29
29
|
id: string;
|
|
30
30
|
/**
|
|
@@ -32,15 +32,15 @@ export type Simulation = {
|
|
|
32
32
|
*/
|
|
33
33
|
name: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Source Simulation ID for a fork, or null.
|
|
36
36
|
*/
|
|
37
37
|
parentId: string | null;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* ID of the Simulator.
|
|
40
40
|
*/
|
|
41
41
|
simulatorId: string;
|
|
42
42
|
/**
|
|
43
|
-
* Current Simulation
|
|
43
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
44
44
|
*/
|
|
45
45
|
status: SimulationStatus;
|
|
46
46
|
};
|
package/esm/models/simulation.js
CHANGED
|
@@ -7,7 +7,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
7
7
|
import * as openEnums from "../types/enums.js";
|
|
8
8
|
import * as types from "../types/primitives.js";
|
|
9
9
|
/**
|
|
10
|
-
* Current Simulation
|
|
10
|
+
* Current status. running serves requests. paused means the Simulation was idle and the platform paused it; the next request wakes it. stopped means its state is saved and requests return 409 until you start it.
|
|
11
11
|
*/
|
|
12
12
|
export const SimulationStatus = {
|
|
13
13
|
Running: "running",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
|
+
/**
|
|
6
|
+
* Stable Simulator build error code.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SimulatorErrorCode: {
|
|
9
|
+
readonly BuildFailed: "build_failed";
|
|
10
|
+
readonly BuildCancelled: "build_cancelled";
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Stable Simulator build error code.
|
|
14
|
+
*/
|
|
15
|
+
export type SimulatorErrorCode = OpenEnum<typeof SimulatorErrorCode>;
|
|
16
|
+
export type SimulatorError = {
|
|
17
|
+
/**
|
|
18
|
+
* Stable Simulator build error code.
|
|
19
|
+
*/
|
|
20
|
+
code: SimulatorErrorCode;
|
|
21
|
+
/**
|
|
22
|
+
* Safe human-readable error detail.
|
|
23
|
+
*/
|
|
24
|
+
detail: string;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const SimulatorErrorCode$inboundSchema: z.ZodMiniType<SimulatorErrorCode, unknown>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const SimulatorError$inboundSchema: z.ZodMiniType<SimulatorError, unknown>;
|
|
30
|
+
export declare function simulatorErrorFromJSON(jsonString: string): SafeParseResult<SimulatorError, SDKValidationError>;
|
|
31
|
+
//# sourceMappingURL=simulator-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulator-error.d.ts","sourceRoot":"","sources":["../../src/models/simulator-error.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,kBAAkB,CAAC;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CACsC,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,WAAW,CACtD,cAAc,EACd,OAAO,CAIP,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
/**
|
|
9
|
+
* Stable Simulator build error code.
|
|
10
|
+
*/
|
|
11
|
+
export const SimulatorErrorCode = {
|
|
12
|
+
BuildFailed: "build_failed",
|
|
13
|
+
BuildCancelled: "build_cancelled",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const SimulatorErrorCode$inboundSchema = openEnums.inboundSchema(SimulatorErrorCode);
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const SimulatorError$inboundSchema = z.object({
|
|
19
|
+
code: SimulatorErrorCode$inboundSchema,
|
|
20
|
+
detail: types.string(),
|
|
21
|
+
});
|
|
22
|
+
export function simulatorErrorFromJSON(jsonString) {
|
|
23
|
+
return safeParse(jsonString, (x) => SimulatorError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SimulatorError' from JSON`);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=simulator-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulator-error.js","sourceRoot":"","sources":["../../src/models/simulator-error.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAGhD;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAiBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,SAAS,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;AAEhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAGrC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,gCAAgC;IACtC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,MAAM,UAAU,sBAAsB,CACpC,UAAkB,EACmC;IACrD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AAAA,CACH"}
|
|
@@ -2,20 +2,20 @@ import * as z from "zod/v4-mini";
|
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
|
-
import {
|
|
5
|
+
import { SimulatorError } from "./simulator-error.js";
|
|
6
6
|
/**
|
|
7
|
-
* Simulator
|
|
7
|
+
* workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
|
|
8
8
|
*/
|
|
9
9
|
export declare const Source: {
|
|
10
10
|
readonly Workspace: "workspace";
|
|
11
11
|
readonly Catalog: "catalog";
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
14
|
-
* Simulator
|
|
14
|
+
* workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
|
|
15
15
|
*/
|
|
16
16
|
export type Source = OpenEnum<typeof Source>;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
|
|
19
19
|
*/
|
|
20
20
|
export declare const SimulatorStatus: {
|
|
21
21
|
readonly Building: "building";
|
|
@@ -24,7 +24,7 @@ export declare const SimulatorStatus: {
|
|
|
24
24
|
readonly Canceled: "canceled";
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
|
|
28
28
|
*/
|
|
29
29
|
export type SimulatorStatus = OpenEnum<typeof SimulatorStatus>;
|
|
30
30
|
export type Simulator = {
|
|
@@ -32,9 +32,9 @@ export type Simulator = {
|
|
|
32
32
|
* Simulator creation time.
|
|
33
33
|
*/
|
|
34
34
|
createdAt: Date;
|
|
35
|
-
error:
|
|
35
|
+
error: SimulatorError | null;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Simulator ID.
|
|
38
38
|
*/
|
|
39
39
|
id: string;
|
|
40
40
|
/**
|
|
@@ -42,15 +42,15 @@ export type Simulator = {
|
|
|
42
42
|
*/
|
|
43
43
|
name: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Parent Simulator ID, or null.
|
|
46
46
|
*/
|
|
47
47
|
parentId: string | null;
|
|
48
48
|
/**
|
|
49
|
-
* Simulator
|
|
49
|
+
* workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
|
|
50
50
|
*/
|
|
51
51
|
source: Source;
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
|
|
54
54
|
*/
|
|
55
55
|
status: SimulatorStatus;
|
|
56
56
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulator.d.ts","sourceRoot":"","sources":["../../src/models/simulator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"simulator.d.ts","sourceRoot":"","sources":["../../src/models/simulator.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,MAAM;;;CAGT,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,OAAO,CACxC,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,WAAW,CACvD,eAAe,EACf,OAAO,CACmC,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAiBnE,CAAC;AAEJ,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,SAAS,EAAE,kBAAkB,CAAC,CAMhD"}
|
package/esm/models/simulator.js
CHANGED
|
@@ -6,16 +6,16 @@ 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 {
|
|
9
|
+
import { SimulatorError$inboundSchema, } from "./simulator-error.js";
|
|
10
10
|
/**
|
|
11
|
-
* Simulator
|
|
11
|
+
* workspace for a Simulator your workspace built; catalog for a read-only Simulator that Continuous publishes.
|
|
12
12
|
*/
|
|
13
13
|
export const Source = {
|
|
14
14
|
Workspace: "workspace",
|
|
15
15
|
Catalog: "catalog",
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* building while the build runs; ready when Simulations, Worlds, and incremental builds can use it; failed when the build failed; canceled when a cancel request took effect.
|
|
19
19
|
*/
|
|
20
20
|
export const SimulatorStatus = {
|
|
21
21
|
Building: "building",
|
|
@@ -32,7 +32,7 @@ export const SimulatorStatus$inboundSchema = openEnums.inboundSchema(SimulatorSt
|
|
|
32
32
|
export const Simulator$inboundSchema = z
|
|
33
33
|
.pipe(z.object({
|
|
34
34
|
created_at: types.date(),
|
|
35
|
-
error: types.nullable(
|
|
35
|
+
error: types.nullable(SimulatorError$inboundSchema),
|
|
36
36
|
id: types.string(),
|
|
37
37
|
name: types.string(),
|
|
38
38
|
parent_id: types.nullable(types.string()),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulator.js","sourceRoot":"","sources":["../../src/models/simulator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"simulator.js","sourceRoot":"","sources":["../../src/models/simulator.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,SAAS,EAAE,WAAW;IACtB,OAAO,EAAE,SAAS;CACV,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAkCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAAmC,SAAS;KAC1E,aAAa,CAAC,MAAM,CAAC,CAAC;AAEzB,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAGtC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;AAE7C,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAAsC,CAAC;KACxE,IAAI,CACH,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,KAAK,CAAC,IAAI,EAAE;IACxB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IACnD,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACzC,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,6BAA6B;CACtC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,UAAU;KACxB,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEJ,MAAM,UAAU,iBAAiB,CAC/B,UAAkB,EAC8B;IAChD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnD,uCAAuC,CACxC,CAAC;AAAA,CACH"}
|
package/esm/models/step.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
3
3
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
4
|
export type Step = {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* HTTP method and path of the request that produced this step, without the query string, for example POST /v1/widgets.
|
|
7
7
|
*/
|
|
8
8
|
label: string;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Step number. Use it as at_step when you fork.
|
|
11
11
|
*/
|
|
12
12
|
step: number;
|
|
13
13
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
5
|
+
import { WorldDataSummary } from "./world-data-summary.js";
|
|
6
|
+
/**
|
|
7
|
+
* Current phase of starting-data preparation.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Stage: {
|
|
10
|
+
readonly Planning: "planning";
|
|
11
|
+
readonly Generating: "generating";
|
|
12
|
+
readonly Validating: "validating";
|
|
13
|
+
readonly Complete: "complete";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Current phase of starting-data preparation.
|
|
17
|
+
*/
|
|
18
|
+
export type Stage = OpenEnum<typeof Stage>;
|
|
19
|
+
export type WorldBuild = {
|
|
20
|
+
/**
|
|
21
|
+
* Current phase of starting-data preparation.
|
|
22
|
+
*/
|
|
23
|
+
stage: Stage;
|
|
24
|
+
summary?: WorldDataSummary | undefined;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const Stage$inboundSchema: z.ZodMiniType<Stage, unknown>;
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const WorldBuild$inboundSchema: z.ZodMiniType<WorldBuild, unknown>;
|
|
30
|
+
export declare function worldBuildFromJSON(jsonString: string): SafeParseResult<WorldBuild, SDKValidationError>;
|
|
31
|
+
//# sourceMappingURL=world-build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world-build.d.ts","sourceRoot":"","sources":["../../src/models/world-build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;CAKR,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CACvC,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAIpE,CAAC;AAEL,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import * as types from "../types/primitives.js";
|
|
8
|
+
import { WorldDataSummary$inboundSchema, } from "./world-data-summary.js";
|
|
9
|
+
/**
|
|
10
|
+
* Current phase of starting-data preparation.
|
|
11
|
+
*/
|
|
12
|
+
export const Stage = {
|
|
13
|
+
Planning: "planning",
|
|
14
|
+
Generating: "generating",
|
|
15
|
+
Validating: "validating",
|
|
16
|
+
Complete: "complete",
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const Stage$inboundSchema = openEnums
|
|
20
|
+
.inboundSchema(Stage);
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const WorldBuild$inboundSchema = z
|
|
23
|
+
.object({
|
|
24
|
+
stage: Stage$inboundSchema,
|
|
25
|
+
summary: types.optional(WorldDataSummary$inboundSchema),
|
|
26
|
+
});
|
|
27
|
+
export function worldBuildFromJSON(jsonString) {
|
|
28
|
+
return safeParse(jsonString, (x) => WorldBuild$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldBuild' from JSON`);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=world-build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world-build.js","sourceRoot":"","sources":["../../src/models/world-build.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,8BAA8B,GAC/B,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,QAAQ,EAAE,UAAU;IACpB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAcX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mBAAmB,GAAkC,SAAS;KACxE,aAAa,CAAC,KAAK,CAAC,CAAC;AAExB,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GAAuC,CAAC;KAC1E,MAAM,CAAC;IACN,KAAK,EAAE,mBAAmB;IAC1B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CACxD,CAAC,CAAC;AAEL,MAAM,UAAU,kBAAkB,CAChC,UAAkB,EAC+B;IACjD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AAAA,CACH"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from "zod/v4-mini";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
4
|
+
import { WorldRecordCount } from "./world-record-count.js";
|
|
5
|
+
export type WorldDataSummary = {
|
|
6
|
+
/**
|
|
7
|
+
* Defaults and inferred choices used to prepare the starting data.
|
|
8
|
+
*/
|
|
9
|
+
assumptions: Array<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Record conditions and counts computed from a complete census of served records.
|
|
12
|
+
*/
|
|
13
|
+
conditions: Array<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Observed starting record counts for each member and record type.
|
|
16
|
+
*/
|
|
17
|
+
records: Array<WorldRecordCount>;
|
|
18
|
+
/**
|
|
19
|
+
* Shared relationships checked against the data and served API values.
|
|
20
|
+
*/
|
|
21
|
+
relationships: Array<string>;
|
|
22
|
+
};
|
|
23
|
+
/** @internal */
|
|
24
|
+
export declare const WorldDataSummary$inboundSchema: z.ZodMiniType<WorldDataSummary, unknown>;
|
|
25
|
+
export declare function worldDataSummaryFromJSON(jsonString: string): SafeParseResult<WorldDataSummary, SDKValidationError>;
|
|
26
|
+
//# sourceMappingURL=world-data-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world-data-summary.d.ts","sourceRoot":"","sources":["../../src/models/world-data-summary.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,gBAAgB,EAEjB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACjC;;OAEG;IACH,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,WAAW,CACxD,gBAAgB,EAChB,OAAO,CAMP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4-mini";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import * as types from "../types/primitives.js";
|
|
7
|
+
import { WorldRecordCount$inboundSchema, } from "./world-record-count.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const WorldDataSummary$inboundSchema = z.object({
|
|
10
|
+
assumptions: z.array(types.string()),
|
|
11
|
+
conditions: z.array(types.string()),
|
|
12
|
+
records: z.array(WorldRecordCount$inboundSchema),
|
|
13
|
+
relationships: z.array(types.string()),
|
|
14
|
+
});
|
|
15
|
+
export function worldDataSummaryFromJSON(jsonString) {
|
|
16
|
+
return safeParse(jsonString, (x) => WorldDataSummary$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorldDataSummary' from JSON`);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=world-data-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world-data-summary.js","sourceRoot":"","sources":["../../src/models/world-data-summary.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,8BAA8B,GAC/B,MAAM,yBAAyB,CAAC;AAqBjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,8BAA8B,GAGvC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,8BAA8B,CAAC;IAChD,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACvC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,UAAkB,EACqC;IACvD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AAAA,CACH"}
|