@continuous-labs/sdk 0.0.8 → 0.0.9

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 (159) hide show
  1. package/README.md +10 -0
  2. package/esm/funcs/simulations-advance-simulation-time.d.ts +19 -0
  3. package/esm/funcs/simulations-advance-simulation-time.d.ts.map +1 -0
  4. package/esm/funcs/simulations-advance-simulation-time.js +94 -0
  5. package/esm/funcs/simulations-advance-simulation-time.js.map +1 -0
  6. package/esm/funcs/simulations-get-simulation-advance.d.ts +19 -0
  7. package/esm/funcs/simulations-get-simulation-advance.d.ts.map +1 -0
  8. package/esm/funcs/simulations-get-simulation-advance.js +98 -0
  9. package/esm/funcs/simulations-get-simulation-advance.js.map +1 -0
  10. package/esm/funcs/simulations-list-simulation-advance-events.d.ts +19 -0
  11. package/esm/funcs/simulations-list-simulation-advance-events.d.ts.map +1 -0
  12. package/esm/funcs/simulations-list-simulation-advance-events.js +103 -0
  13. package/esm/funcs/simulations-list-simulation-advance-events.js.map +1 -0
  14. package/esm/funcs/worlds-advance-world-time.d.ts +19 -0
  15. package/esm/funcs/worlds-advance-world-time.d.ts.map +1 -0
  16. package/esm/funcs/worlds-advance-world-time.js +94 -0
  17. package/esm/funcs/worlds-advance-world-time.js.map +1 -0
  18. package/esm/funcs/worlds-get-world-advance.d.ts +19 -0
  19. package/esm/funcs/worlds-get-world-advance.d.ts.map +1 -0
  20. package/esm/funcs/worlds-get-world-advance.js +98 -0
  21. package/esm/funcs/worlds-get-world-advance.js.map +1 -0
  22. package/esm/funcs/worlds-start-world.js +4 -5
  23. package/esm/funcs/worlds-start-world.js.map +1 -1
  24. package/esm/lib/config.d.ts +2 -2
  25. package/esm/lib/config.js +2 -2
  26. package/esm/models/advance-time-input-body.d.ts +15 -0
  27. package/esm/models/advance-time-input-body.d.ts.map +1 -0
  28. package/esm/models/advance-time-input-body.js +12 -0
  29. package/esm/models/advance-time-input-body.js.map +1 -0
  30. package/esm/models/build-world-request.d.ts +19 -0
  31. package/esm/models/build-world-request.d.ts.map +1 -1
  32. package/esm/models/build-world-request.js +10 -0
  33. package/esm/models/build-world-request.js.map +1 -1
  34. package/esm/models/clock-advance-member.d.ts +42 -0
  35. package/esm/models/clock-advance-member.d.ts.map +1 -0
  36. package/esm/models/clock-advance-member.js +36 -0
  37. package/esm/models/clock-advance-member.js.map +1 -0
  38. package/esm/models/clock-advance.d.ts +56 -0
  39. package/esm/models/clock-advance.d.ts.map +1 -0
  40. package/esm/models/clock-advance.js +40 -0
  41. package/esm/models/clock-advance.js.map +1 -0
  42. package/esm/models/clock-event.d.ts +25 -0
  43. package/esm/models/clock-event.d.ts.map +1 -0
  44. package/esm/models/clock-event.js +23 -0
  45. package/esm/models/clock-event.js.map +1 -0
  46. package/esm/models/create-simulation-request.d.ts +5 -0
  47. package/esm/models/create-simulation-request.d.ts.map +1 -1
  48. package/esm/models/create-simulation-request.js +2 -0
  49. package/esm/models/create-simulation-request.js.map +1 -1
  50. package/esm/models/created-simulation.d.ts +12 -0
  51. package/esm/models/created-simulation.d.ts.map +1 -1
  52. package/esm/models/created-simulation.js +6 -0
  53. package/esm/models/created-simulation.js.map +1 -1
  54. package/esm/models/index.d.ts +7 -0
  55. package/esm/models/index.d.ts.map +1 -1
  56. package/esm/models/index.js +7 -0
  57. package/esm/models/index.js.map +1 -1
  58. package/esm/models/list-advance-events-output-body.d.ts +18 -0
  59. package/esm/models/list-advance-events-output-body.d.ts.map +1 -0
  60. package/esm/models/list-advance-events-output-body.js +21 -0
  61. package/esm/models/list-advance-events-output-body.js.map +1 -0
  62. package/esm/models/operations/advance-simulation-time.d.ts +23 -0
  63. package/esm/models/operations/advance-simulation-time.d.ts.map +1 -0
  64. package/esm/models/operations/advance-simulation-time.js +20 -0
  65. package/esm/models/operations/advance-simulation-time.js.map +1 -0
  66. package/esm/models/operations/advance-world-time.d.ts +23 -0
  67. package/esm/models/operations/advance-world-time.d.ts.map +1 -0
  68. package/esm/models/operations/advance-world-time.js +20 -0
  69. package/esm/models/operations/advance-world-time.js.map +1 -0
  70. package/esm/models/operations/get-simulation-advance.d.ts +20 -0
  71. package/esm/models/operations/get-simulation-advance.d.ts.map +1 -0
  72. package/esm/models/operations/get-simulation-advance.js +18 -0
  73. package/esm/models/operations/get-simulation-advance.js.map +1 -0
  74. package/esm/models/operations/get-world-advance.d.ts +20 -0
  75. package/esm/models/operations/get-world-advance.d.ts.map +1 -0
  76. package/esm/models/operations/get-world-advance.js +18 -0
  77. package/esm/models/operations/get-world-advance.js.map +1 -0
  78. package/esm/models/operations/index.d.ts +5 -0
  79. package/esm/models/operations/index.d.ts.map +1 -1
  80. package/esm/models/operations/index.js +5 -0
  81. package/esm/models/operations/index.js.map +1 -1
  82. package/esm/models/operations/list-simulation-advance-events.d.ts +30 -0
  83. package/esm/models/operations/list-simulation-advance-events.d.ts.map +1 -0
  84. package/esm/models/operations/list-simulation-advance-events.js +20 -0
  85. package/esm/models/operations/list-simulation-advance-events.js.map +1 -0
  86. package/esm/models/operations/start-world.d.ts +3 -0
  87. package/esm/models/operations/start-world.d.ts.map +1 -1
  88. package/esm/models/operations/start-world.js +2 -0
  89. package/esm/models/operations/start-world.js.map +1 -1
  90. package/esm/models/resource-error.d.ts +17 -0
  91. package/esm/models/resource-error.d.ts.map +1 -0
  92. package/esm/models/resource-error.js +15 -0
  93. package/esm/models/resource-error.js.map +1 -0
  94. package/esm/models/simulation.d.ts +12 -0
  95. package/esm/models/simulation.d.ts.map +1 -1
  96. package/esm/models/simulation.js +6 -0
  97. package/esm/models/simulation.js.map +1 -1
  98. package/esm/models/simulator-build-progress.d.ts +4 -4
  99. package/esm/models/simulator-build-progress.d.ts.map +1 -1
  100. package/esm/models/simulator-build-progress.js +3 -3
  101. package/esm/models/simulator-build-progress.js.map +1 -1
  102. package/esm/models/start-world-request.d.ts +15 -0
  103. package/esm/models/start-world-request.d.ts.map +1 -0
  104. package/esm/models/start-world-request.js +17 -0
  105. package/esm/models/start-world-request.js.map +1 -0
  106. package/esm/models/step.d.ts +30 -0
  107. package/esm/models/step.d.ts.map +1 -1
  108. package/esm/models/step.js +24 -2
  109. package/esm/models/step.js.map +1 -1
  110. package/esm/models/world-build.d.ts +46 -0
  111. package/esm/models/world-build.d.ts.map +1 -1
  112. package/esm/models/world-build.js +32 -2
  113. package/esm/models/world-build.js.map +1 -1
  114. package/esm/models/world.d.ts +12 -0
  115. package/esm/models/world.d.ts.map +1 -1
  116. package/esm/models/world.js +6 -0
  117. package/esm/models/world.js.map +1 -1
  118. package/esm/sdk/simulations.d.ts +21 -0
  119. package/esm/sdk/simulations.d.ts.map +1 -1
  120. package/esm/sdk/simulations.js +30 -0
  121. package/esm/sdk/simulations.js.map +1 -1
  122. package/esm/sdk/worlds.d.ts +14 -0
  123. package/esm/sdk/worlds.d.ts.map +1 -1
  124. package/esm/sdk/worlds.js +20 -0
  125. package/esm/sdk/worlds.js.map +1 -1
  126. package/jsr.json +1 -1
  127. package/package.json +1 -1
  128. package/src/funcs/simulations-advance-simulation-time.ts +192 -0
  129. package/src/funcs/simulations-get-simulation-advance.ts +190 -0
  130. package/src/funcs/simulations-list-simulation-advance-events.ts +199 -0
  131. package/src/funcs/worlds-advance-world-time.ts +192 -0
  132. package/src/funcs/worlds-get-world-advance.ts +187 -0
  133. package/src/funcs/worlds-start-world.ts +8 -5
  134. package/src/lib/config.ts +2 -2
  135. package/src/models/advance-time-input-body.ts +33 -0
  136. package/src/models/build-world-request.ts +26 -0
  137. package/src/models/clock-advance-member.ts +87 -0
  138. package/src/models/clock-advance.ts +102 -0
  139. package/src/models/clock-event.ts +55 -0
  140. package/src/models/create-simulation-request.ts +7 -0
  141. package/src/models/created-simulation.ts +18 -0
  142. package/src/models/index.ts +7 -0
  143. package/src/models/list-advance-events-output-body.ts +48 -0
  144. package/src/models/operations/advance-simulation-time.ts +53 -0
  145. package/src/models/operations/advance-world-time.ts +51 -0
  146. package/src/models/operations/get-simulation-advance.ts +49 -0
  147. package/src/models/operations/get-world-advance.ts +47 -0
  148. package/src/models/operations/index.ts +5 -0
  149. package/src/models/operations/list-simulation-advance-events.ts +61 -0
  150. package/src/models/operations/start-world.ts +4 -0
  151. package/src/models/resource-error.ts +39 -0
  152. package/src/models/simulation.ts +18 -0
  153. package/src/models/simulator-build-progress.ts +11 -7
  154. package/src/models/start-world-request.ts +41 -0
  155. package/src/models/step.ts +52 -4
  156. package/src/models/world-build.ts +77 -4
  157. package/src/models/world.ts +18 -0
  158. package/src/sdk/simulations.ts +54 -0
  159. package/src/sdk/worlds.ts +36 -0
@@ -0,0 +1,41 @@
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
+
8
+ export type StartWorldRequest = {
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.
11
+ */
12
+ startTime?: Date | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export type StartWorldRequest$Outbound = {
17
+ start_time?: string | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const StartWorldRequest$outboundSchema: z.ZodMiniType<
22
+ StartWorldRequest$Outbound,
23
+ StartWorldRequest
24
+ > = z.pipe(
25
+ z.object({
26
+ startTime: z.optional(z.pipe(z.date(), z.transform(v => v.toISOString()))),
27
+ }),
28
+ z.transform((v) => {
29
+ return remap$(v, {
30
+ startTime: "start_time",
31
+ });
32
+ }),
33
+ );
34
+
35
+ export function startWorldRequestToJSON(
36
+ startWorldRequest: StartWorldRequest,
37
+ ): string {
38
+ return JSON.stringify(
39
+ StartWorldRequest$outboundSchema.parse(startWorldRequest),
40
+ );
41
+ }
@@ -3,12 +3,35 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../lib/primitives.js";
6
7
  import { safeParse } from "../lib/schemas.js";
8
+ import * as openEnums from "../types/enums.js";
9
+ import { OpenEnum } from "../types/enums.js";
7
10
  import { Result as SafeParseResult } from "../types/fp.js";
8
11
  import * as types from "../types/primitives.js";
9
12
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
10
13
 
14
+ /**
15
+ * api for an API write or advance for a clock advance.
16
+ */
17
+ export const Kind = {
18
+ Api: "api",
19
+ Advance: "advance",
20
+ } as const;
21
+ /**
22
+ * api for an API write or advance for a clock advance.
23
+ */
24
+ export type Kind = OpenEnum<typeof Kind>;
25
+
11
26
  export type Step = {
27
+ /**
28
+ * Advance that produced this step, if any.
29
+ */
30
+ advanceId: string | null;
31
+ /**
32
+ * api for an API write or advance for a clock advance.
33
+ */
34
+ kind: Kind;
12
35
  /**
13
36
  * HTTP method and path of the request that produced this step, without the query string, for example POST /v1/widgets.
14
37
  */
@@ -17,13 +40,38 @@ export type Step = {
17
40
  * Step number. Use it as at_step when you fork.
18
41
  */
19
42
  step: number;
43
+ /**
44
+ * Clock after the step.
45
+ */
46
+ timeAfter: Date | null;
47
+ /**
48
+ * Clock before the step.
49
+ */
50
+ timeBefore: Date | null;
20
51
  };
21
52
 
22
53
  /** @internal */
23
- export const Step$inboundSchema: z.ZodMiniType<Step, unknown> = z.object({
24
- label: types.string(),
25
- step: types.number(),
26
- });
54
+ export const Kind$inboundSchema: z.ZodMiniType<Kind, unknown> = openEnums
55
+ .inboundSchema(Kind);
56
+
57
+ /** @internal */
58
+ export const Step$inboundSchema: z.ZodMiniType<Step, unknown> = z.pipe(
59
+ z.object({
60
+ advance_id: types.nullable(types.string()),
61
+ kind: Kind$inboundSchema,
62
+ label: types.string(),
63
+ step: types.number(),
64
+ time_after: types.nullable(types.date()),
65
+ time_before: types.nullable(types.date()),
66
+ }),
67
+ z.transform((v) => {
68
+ return remap$(v, {
69
+ "advance_id": "advanceId",
70
+ "time_after": "timeAfter",
71
+ "time_before": "timeBefore",
72
+ });
73
+ }),
74
+ );
27
75
 
28
76
  export function stepFromJSON(
29
77
  jsonString: string,
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../lib/primitives.js";
6
7
  import { safeParse } from "../lib/schemas.js";
7
8
  import * as openEnums from "../types/enums.js";
8
9
  import { OpenEnum } from "../types/enums.js";
@@ -14,6 +15,32 @@ import {
14
15
  WorldDataSummary$inboundSchema,
15
16
  } from "./world-data-summary.js";
16
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
+
17
44
  /**
18
45
  * Current phase of starting-data preparation.
19
46
  */
@@ -29,13 +56,45 @@ export const WorldBuildStage = {
29
56
  export type WorldBuildStage = OpenEnum<typeof WorldBuildStage>;
30
57
 
31
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;
32
71
  /**
33
72
  * Current phase of starting-data preparation.
34
73
  */
35
74
  stage: WorldBuildStage;
75
+ /**
76
+ * Number of submitted starting-data plans.
77
+ */
78
+ submissions?: number | undefined;
36
79
  summary?: WorldDataSummary | undefined;
80
+ /**
81
+ * Number of agent tool calls.
82
+ */
83
+ toolCalls?: number | undefined;
37
84
  };
38
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
+
39
98
  /** @internal */
40
99
  export const WorldBuildStage$inboundSchema: z.ZodMiniType<
41
100
  WorldBuildStage,
@@ -44,10 +103,24 @@ export const WorldBuildStage$inboundSchema: z.ZodMiniType<
44
103
 
45
104
  /** @internal */
46
105
  export const WorldBuild$inboundSchema: z.ZodMiniType<WorldBuild, unknown> = z
47
- .object({
48
- stage: WorldBuildStage$inboundSchema,
49
- summary: types.optional(WorldDataSummary$inboundSchema),
50
- });
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
+ );
51
124
 
52
125
  export function worldBuildFromJSON(
53
126
  jsonString: string,
@@ -34,11 +34,19 @@ export const WorldStatus = {
34
34
  export type WorldStatus = OpenEnum<typeof WorldStatus>;
35
35
 
36
36
  export type World = {
37
+ /**
38
+ * Current clock advance operation ID, or null.
39
+ */
40
+ activeAdvanceId: string | null;
37
41
  build?: WorldBuild | undefined;
38
42
  /**
39
43
  * Time when the World build started.
40
44
  */
41
45
  createdAt: Date;
46
+ /**
47
+ * Current shared simulated time.
48
+ */
49
+ currentTime: Date;
42
50
  error: WorldError | null;
43
51
  /**
44
52
  * World ID.
@@ -56,6 +64,10 @@ export type World = {
56
64
  * Simulator IDs in member order.
57
65
  */
58
66
  simulators: Array<string>;
67
+ /**
68
+ * Initial simulated time. Before first Start this is the default time.
69
+ */
70
+ startTime: Date;
59
71
  /**
60
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.
61
73
  */
@@ -69,18 +81,24 @@ export const WorldStatus$inboundSchema: z.ZodMiniType<WorldStatus, unknown> =
69
81
  /** @internal */
70
82
  export const World$inboundSchema: z.ZodMiniType<World, unknown> = z.pipe(
71
83
  z.object({
84
+ active_advance_id: types.nullable(types.string()),
72
85
  build: types.optional(WorldBuild$inboundSchema),
73
86
  created_at: types.date(),
87
+ current_time: types.date(),
74
88
  error: types.nullable(WorldError$inboundSchema),
75
89
  id: types.string(),
76
90
  instructions: types.string(),
77
91
  simulations: z.array(WorldSimulation$inboundSchema),
78
92
  simulators: z.array(types.string()),
93
+ start_time: types.date(),
79
94
  status: WorldStatus$inboundSchema,
80
95
  }),
81
96
  z.transform((v) => {
82
97
  return remap$(v, {
98
+ "active_advance_id": "activeAdvanceId",
83
99
  "created_at": "createdAt",
100
+ "current_time": "currentTime",
101
+ "start_time": "startTime",
84
102
  });
85
103
  }),
86
104
  );
@@ -2,10 +2,13 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { simulationsAdvanceSimulationTime } from "../funcs/simulations-advance-simulation-time.js";
5
6
  import { simulationsCreateSimulation } from "../funcs/simulations-create-simulation.js";
6
7
  import { simulationsDeleteSimulation } from "../funcs/simulations-delete-simulation.js";
7
8
  import { simulationsForkSimulation } from "../funcs/simulations-fork-simulation.js";
9
+ import { simulationsGetSimulationAdvance } from "../funcs/simulations-get-simulation-advance.js";
8
10
  import { simulationsGetSimulation } from "../funcs/simulations-get-simulation.js";
11
+ import { simulationsListSimulationAdvanceEvents } from "../funcs/simulations-list-simulation-advance-events.js";
9
12
  import { simulationsListSimulationSteps } from "../funcs/simulations-list-simulation-steps.js";
10
13
  import { simulationsListSimulations } from "../funcs/simulations-list-simulations.js";
11
14
  import { simulationsMintSimulationToken } from "../funcs/simulations-mint-simulation-token.js";
@@ -85,6 +88,57 @@ export class Simulations extends ClientSDK {
85
88
  ));
86
89
  }
87
90
 
91
+ /**
92
+ * Advance Simulation Time
93
+ *
94
+ * @remarks
95
+ * Schedules an absolute clock advance. Each successful advance commits all due local events in one step. World members advance through their World. Poll the returned operation until it completes.
96
+ */
97
+ async advanceSimulationTime(
98
+ request: operations.AdvanceSimulationTimeRequest,
99
+ options?: RequestOptions,
100
+ ): Promise<models.ClockAdvance> {
101
+ return unwrapAsync(simulationsAdvanceSimulationTime(
102
+ this,
103
+ request,
104
+ options,
105
+ ));
106
+ }
107
+
108
+ /**
109
+ * Get Simulation Clock Advance
110
+ *
111
+ * @remarks
112
+ * Returns durable clock progress, the event count, and the committed step or failure.
113
+ */
114
+ async getSimulationAdvance(
115
+ request: operations.GetSimulationAdvanceRequest,
116
+ options?: RequestOptions,
117
+ ): Promise<models.ClockAdvance> {
118
+ return unwrapAsync(simulationsGetSimulationAdvance(
119
+ this,
120
+ request,
121
+ options,
122
+ ));
123
+ }
124
+
125
+ /**
126
+ * List Clock Advance Events
127
+ *
128
+ * @remarks
129
+ * Returns the ordered event trace for a committed advance. The Simulation must be running or paused. Forks retain traces in their inherited state.
130
+ */
131
+ async listSimulationAdvanceEvents(
132
+ request: operations.ListSimulationAdvanceEventsRequest,
133
+ options?: RequestOptions,
134
+ ): Promise<models.ListAdvanceEventsOutputBody> {
135
+ return unwrapAsync(simulationsListSimulationAdvanceEvents(
136
+ this,
137
+ request,
138
+ options,
139
+ ));
140
+ }
141
+
88
142
  /**
89
143
  * Fork Simulation
90
144
  *
package/src/sdk/worlds.ts CHANGED
@@ -2,9 +2,11 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { worldsAdvanceWorldTime } from "../funcs/worlds-advance-world-time.js";
5
6
  import { worldsBuildWorld } from "../funcs/worlds-build-world.js";
6
7
  import { worldsCancelWorldBuild } from "../funcs/worlds-cancel-world-build.js";
7
8
  import { worldsDeleteWorld } from "../funcs/worlds-delete-world.js";
9
+ import { worldsGetWorldAdvance } from "../funcs/worlds-get-world-advance.js";
8
10
  import { worldsGetWorld } from "../funcs/worlds-get-world.js";
9
11
  import { worldsListWorlds } from "../funcs/worlds-list-worlds.js";
10
12
  import { worldsStartWorld } from "../funcs/worlds-start-world.js";
@@ -83,6 +85,40 @@ export class Worlds extends ClientSDK {
83
85
  ));
84
86
  }
85
87
 
88
+ /**
89
+ * Advance World Time
90
+ *
91
+ * @remarks
92
+ * Fences all members, advances each local clock, and returns a durable operation. A partial failure keeps members fenced while the operation retries. The World clock changes after all members commit.
93
+ */
94
+ async advanceWorldTime(
95
+ request: operations.AdvanceWorldTimeRequest,
96
+ options?: RequestOptions,
97
+ ): Promise<models.ClockAdvance> {
98
+ return unwrapAsync(worldsAdvanceWorldTime(
99
+ this,
100
+ request,
101
+ options,
102
+ ));
103
+ }
104
+
105
+ /**
106
+ * Get World Clock Advance
107
+ *
108
+ * @remarks
109
+ * Returns durable progress for each member. Members remain fenced until the whole advance can finish.
110
+ */
111
+ async getWorldAdvance(
112
+ request: operations.GetWorldAdvanceRequest,
113
+ options?: RequestOptions,
114
+ ): Promise<models.ClockAdvance> {
115
+ return unwrapAsync(worldsGetWorldAdvance(
116
+ this,
117
+ request,
118
+ options,
119
+ ));
120
+ }
121
+
86
122
  /**
87
123
  * Cancel World Build
88
124
  *