File size: 18,287 Bytes
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
f372eeb
 
c30abb6
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
f372eeb
c30abb6
f372eeb
 
c30abb6
 
 
 
 
 
 
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
f372eeb
c30abb6
 
 
f372eeb
c30abb6
 
f372eeb
 
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
c30abb6
 
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
f372eeb
 
 
c30abb6
 
 
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
 
 
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
f372eeb
c30abb6
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
f372eeb
c30abb6
 
f372eeb
 
c30abb6
 
 
f372eeb
c30abb6
 
f372eeb
 
c30abb6
 
 
 
 
 
f372eeb
 
c30abb6
 
 
 
 
 
f372eeb
 
c30abb6
 
 
 
 
 
f372eeb
c30abb6
f372eeb
c30abb6
f372eeb
c30abb6
 
 
 
 
f372eeb
c30abb6
 
 
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
 
 
 
f372eeb
 
c30abb6
 
 
f372eeb
c30abb6
 
 
 
f372eeb
 
c30abb6
 
f372eeb
c30abb6
f372eeb
c30abb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f372eeb
 
c30abb6
f372eeb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
// @bun
// src/generated/schemas.gen.ts
var CreateSessionRequestSchema = {
  properties: {
    session_id: {
      type: "string",
      title: "Session Id"
    },
    policy_path: {
      type: "string",
      title: "Policy Path"
    },
    camera_names: {
      items: {
        type: "string"
      },
      type: "array",
      title: "Camera Names",
      default: ["front"]
    },
    arena_server_url: {
      type: "string",
      title: "Arena Server Url",
      default: "http://localhost:8000"
    },
    workspace_id: {
      anyOf: [
        {
          type: "string"
        },
        {
          type: "null"
        }
      ],
      title: "Workspace Id"
    },
    policy_type: {
      type: "string",
      title: "Policy Type",
      default: "act"
    },
    language_instruction: {
      anyOf: [
        {
          type: "string"
        },
        {
          type: "null"
        }
      ],
      title: "Language Instruction"
    }
  },
  type: "object",
  required: ["session_id", "policy_path"],
  title: "CreateSessionRequest"
};
var CreateSessionResponseSchema = {
  properties: {
    workspace_id: {
      type: "string",
      title: "Workspace Id"
    },
    camera_room_ids: {
      additionalProperties: {
        type: "string"
      },
      type: "object",
      title: "Camera Room Ids"
    },
    joint_input_room_id: {
      type: "string",
      title: "Joint Input Room Id"
    },
    joint_output_room_id: {
      type: "string",
      title: "Joint Output Room Id"
    }
  },
  type: "object",
  required: ["workspace_id", "camera_room_ids", "joint_input_room_id", "joint_output_room_id"],
  title: "CreateSessionResponse"
};
var HTTPValidationErrorSchema = {
  properties: {
    detail: {
      items: {
        $ref: "#/components/schemas/ValidationError"
      },
      type: "array",
      title: "Detail"
    }
  },
  type: "object",
  title: "HTTPValidationError"
};
var SessionStatusResponseSchema = {
  properties: {
    session_id: {
      type: "string",
      title: "Session Id"
    },
    status: {
      type: "string",
      title: "Status"
    },
    policy_path: {
      type: "string",
      title: "Policy Path"
    },
    policy_type: {
      type: "string",
      title: "Policy Type"
    },
    camera_names: {
      items: {
        type: "string"
      },
      type: "array",
      title: "Camera Names"
    },
    workspace_id: {
      type: "string",
      title: "Workspace Id"
    },
    rooms: {
      additionalProperties: true,
      type: "object",
      title: "Rooms"
    },
    stats: {
      additionalProperties: true,
      type: "object",
      title: "Stats"
    },
    inference_stats: {
      anyOf: [
        {
          additionalProperties: true,
          type: "object"
        },
        {
          type: "null"
        }
      ],
      title: "Inference Stats"
    },
    error_message: {
      anyOf: [
        {
          type: "string"
        },
        {
          type: "null"
        }
      ],
      title: "Error Message"
    }
  },
  type: "object",
  required: ["session_id", "status", "policy_path", "policy_type", "camera_names", "workspace_id", "rooms", "stats"],
  title: "SessionStatusResponse"
};
var ValidationErrorSchema = {
  properties: {
    loc: {
      items: {
        anyOf: [
          {
            type: "string"
          },
          {
            type: "integer"
          }
        ]
      },
      type: "array",
      title: "Location"
    },
    msg: {
      type: "string",
      title: "Message"
    },
    type: {
      type: "string",
      title: "Error Type"
    }
  },
  type: "object",
  required: ["loc", "msg", "type"],
  title: "ValidationError"
};
// node_modules/@hey-api/client-fetch/dist/node/index.mjs
var e = /\{[^{}]+\}/g;
var t = ({ allowReserved: e2, name: t2, value: r }) => {
  if (r == null)
    return "";
  if (typeof r == "object")
    throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");
  return `${t2}=${e2 ? r : encodeURIComponent(r)}`;
};
var r = ({ allowReserved: e2, explode: r2, name: s, style: a, value: n }) => {
  if (!r2) {
    const t2 = (e2 ? n : n.map((e3) => encodeURIComponent(e3))).join(((e3) => {
      switch (e3) {
        case "form":
        default:
          return ",";
        case "pipeDelimited":
          return "|";
        case "spaceDelimited":
          return "%20";
      }
    })(a));
    switch (a) {
      case "label":
        return `.${t2}`;
      case "matrix":
        return `;${s}=${t2}`;
      case "simple":
        return t2;
      default:
        return `${s}=${t2}`;
    }
  }
  const o = ((e3) => {
    switch (e3) {
      case "label":
        return ".";
      case "matrix":
        return ";";
      case "simple":
        return ",";
      default:
        return "&";
    }
  })(a), l = n.map((r3) => a === "label" || a === "simple" ? e2 ? r3 : encodeURIComponent(r3) : t({ allowReserved: e2, name: s, value: r3 })).join(o);
  return a === "label" || a === "matrix" ? o + l : l;
};
var s = ({ allowReserved: e2, explode: r2, name: s2, style: a, value: n }) => {
  if (n instanceof Date)
    return `${s2}=${n.toISOString()}`;
  if (a !== "deepObject" && !r2) {
    let t2 = [];
    Object.entries(n).forEach(([r4, s3]) => {
      t2 = [...t2, r4, e2 ? s3 : encodeURIComponent(s3)];
    });
    const r3 = t2.join(",");
    switch (a) {
      case "form":
        return `${s2}=${r3}`;
      case "label":
        return `.${r3}`;
      case "matrix":
        return `;${s2}=${r3}`;
      default:
        return r3;
    }
  }
  const o = ((e3) => {
    switch (e3) {
      case "label":
        return ".";
      case "matrix":
        return ";";
      case "simple":
        return ",";
      default:
        return "&";
    }
  })(a), l = Object.entries(n).map(([r3, n2]) => t({ allowReserved: e2, name: a === "deepObject" ? `${s2}[${r3}]` : r3, value: n2 })).join(o);
  return a === "label" || a === "matrix" ? o + l : l;
};
var a = ({ allowReserved: e2, array: a2, object: n } = {}) => (o) => {
  let l = [];
  if (o && typeof o == "object")
    for (const i in o) {
      const c = o[i];
      c != null && (l = Array.isArray(c) ? [...l, r({ allowReserved: e2, explode: true, name: i, style: "form", value: c, ...a2 })] : typeof c != "object" ? [...l, t({ allowReserved: e2, name: i, value: c })] : [...l, s({ allowReserved: e2, explode: true, name: i, style: "deepObject", value: c, ...n })]);
    }
  return l.join("&");
};
var n = ({ baseUrl: a2, path: n2, query: o, querySerializer: l, url: i }) => {
  let c = a2 + (i.startsWith("/") ? i : `/${i}`);
  n2 && (c = (({ path: a3, url: n3 }) => {
    let o2 = n3;
    const l2 = n3.match(e);
    if (l2)
      for (const e2 of l2) {
        let n4 = false, l3 = e2.substring(1, e2.length - 1), i2 = "simple";
        l3.endsWith("*") && (n4 = true, l3 = l3.substring(0, l3.length - 1)), l3.startsWith(".") ? (l3 = l3.substring(1), i2 = "label") : l3.startsWith(";") && (l3 = l3.substring(1), i2 = "matrix");
        const c2 = a3[l3];
        c2 != null && (o2 = Array.isArray(c2) ? o2.replace(e2, r({ explode: n4, name: l3, style: i2, value: c2 })) : typeof c2 != "object" ? i2 !== "matrix" ? o2.replace(e2, i2 === "label" ? `.${c2}` : c2) : o2.replace(e2, `;${t({ name: l3, value: c2 })}`) : o2.replace(e2, s({ explode: n4, name: l3, style: i2, value: c2 })));
      }
    return o2;
  })({ path: n2, url: c }));
  let u = o ? l(o) : "";
  return u.startsWith("?") && (u = u.substring(1)), u && (c += `?${u}`), c;
};
var o = (e2, t2) => {
  const r2 = { ...e2, ...t2 };
  return r2.baseUrl?.endsWith("/") && (r2.baseUrl = r2.baseUrl.substring(0, r2.baseUrl.length - 1)), r2.headers = l(e2.headers, t2.headers), r2;
};
var l = (...e2) => {
  const t2 = new Headers;
  for (const r2 of e2) {
    if (!r2 || typeof r2 != "object")
      continue;
    const e3 = r2 instanceof Headers ? r2.entries() : Object.entries(r2);
    for (const [r3, s2] of e3)
      if (s2 === null)
        t2.delete(r3);
      else if (Array.isArray(s2))
        for (const e4 of s2)
          t2.append(r3, e4);
      else
        s2 !== undefined && t2.set(r3, typeof s2 == "object" ? JSON.stringify(s2) : s2);
  }
  return t2;
};

class i {
  _fns;
  constructor() {
    this._fns = [];
  }
  eject(e2) {
    const t2 = this._fns.indexOf(e2);
    t2 !== -1 && (this._fns = [...this._fns.slice(0, t2), ...this._fns.slice(t2 + 1)]);
  }
  use(e2) {
    this._fns = [...this._fns, e2];
  }
}
var d = { bodySerializer: (e2) => JSON.stringify(e2) };
var h = a({ allowReserved: false, array: { explode: true, style: "form" }, object: { explode: true, style: "deepObject" } });
var y = { "Content-Type": "application/json" };
var m = (e2 = {}) => ({ ...d, baseUrl: "", fetch: globalThis.fetch, headers: y, parseAs: "auto", querySerializer: h, ...e2 });
var b = (e2 = {}) => {
  let t2 = o(m(), e2);
  const r2 = () => ({ ...t2 }), s2 = { request: new i, response: new i }, c = async (e3) => {
    const r3 = { ...t2, ...e3, headers: l(t2.headers, e3.headers) };
    r3.body && r3.bodySerializer && (r3.body = r3.bodySerializer(r3.body)), r3.body || r3.headers.delete("Content-Type");
    const o2 = n({ baseUrl: r3.baseUrl ?? "", path: r3.path, query: r3.query, querySerializer: typeof r3.querySerializer == "function" ? r3.querySerializer : a(r3.querySerializer), url: r3.url }), i2 = { redirect: "follow", ...r3 };
    let c2 = new Request(o2, i2);
    for (const e4 of s2.request._fns)
      c2 = await e4(c2, r3);
    const u = r3.fetch;
    let d2 = await u(c2);
    for (const e4 of s2.response._fns)
      d2 = await e4(d2, c2, r3);
    const p = { request: c2, response: d2 };
    if (d2.ok) {
      if (d2.status === 204 || d2.headers.get("Content-Length") === "0")
        return { data: {}, ...p };
      if (r3.parseAs === "stream")
        return { data: d2.body, ...p };
      const e4 = (r3.parseAs === "auto" ? ((e5) => {
        if (e5)
          return e5.startsWith("application/json") || e5.endsWith("+json") ? "json" : e5 === "multipart/form-data" ? "formData" : ["application/", "audio/", "image/", "video/"].some((t4) => e5.startsWith(t4)) ? "blob" : e5.startsWith("text/") ? "text" : undefined;
      })(d2.headers.get("Content-Type")) : r3.parseAs) ?? "json";
      let t3 = await d2[e4]();
      return e4 === "json" && r3.responseTransformer && (t3 = await r3.responseTransformer(t3)), { data: t3, ...p };
    }
    let f = await d2.text();
    if (r3.throwOnError)
      throw new Error(f);
    try {
      f = JSON.parse(f);
    } catch {}
    return { error: f || {}, ...p };
  };
  return { connect: (e3) => c({ ...e3, method: "CONNECT" }), delete: (e3) => c({ ...e3, method: "DELETE" }), get: (e3) => c({ ...e3, method: "GET" }), getConfig: r2, head: (e3) => c({ ...e3, method: "HEAD" }), interceptors: s2, options: (e3) => c({ ...e3, method: "OPTIONS" }), patch: (e3) => c({ ...e3, method: "PATCH" }), post: (e3) => c({ ...e3, method: "POST" }), put: (e3) => c({ ...e3, method: "PUT" }), request: c, setConfig: (e3) => (t2 = o(t2, e3), r2()), trace: (e3) => c({ ...e3, method: "TRACE" }) };
};

// src/generated/services.gen.ts
var client = b(m());
var rootGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/"
  });
};
var healthCheckHealthGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/health"
  });
};
var listPoliciesPoliciesGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/policies"
  });
};
var listSessionsSessionsGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/sessions"
  });
};
var createSessionSessionsPost = (options) => {
  return (options?.client ?? client).post({
    ...options,
    url: "/sessions"
  });
};
var getSessionStatusSessionsSessionIdGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/sessions/{session_id}"
  });
};
var deleteSessionSessionsSessionIdDelete = (options) => {
  return (options?.client ?? client).delete({
    ...options,
    url: "/sessions/{session_id}"
  });
};
var startInferenceSessionsSessionIdStartPost = (options) => {
  return (options?.client ?? client).post({
    ...options,
    url: "/sessions/{session_id}/start"
  });
};
var stopInferenceSessionsSessionIdStopPost = (options) => {
  return (options?.client ?? client).post({
    ...options,
    url: "/sessions/{session_id}/stop"
  });
};
var restartInferenceSessionsSessionIdRestartPost = (options) => {
  return (options?.client ?? client).post({
    ...options,
    url: "/sessions/{session_id}/restart"
  });
};
var getSystemInfoDebugSystemGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/debug/system"
  });
};
var getRecentLogsDebugLogsGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/debug/logs"
  });
};
var debugResetSessionDebugSessionsSessionIdResetPost = (options) => {
  return (options?.client ?? client).post({
    ...options,
    url: "/debug/sessions/{session_id}/reset"
  });
};
var getSessionQueueInfoDebugSessionsSessionIdQueueGet = (options) => {
  return (options?.client ?? client).get({
    ...options,
    url: "/debug/sessions/{session_id}/queue"
  });
};
// src/index.ts
class LeRobotInferenceServerClient {
  baseUrl;
  constructor(baseUrl) {
    this.baseUrl = baseUrl;
    client.setConfig({ baseUrl });
  }
  async isHealthy() {
    try {
      const response = await healthCheckHealthGet();
      return !response.error;
    } catch {
      return false;
    }
  }
  async getHealth() {
    const response = await healthCheckHealthGet();
    if (response.error) {
      throw new Error(`Health check failed: ${JSON.stringify(response.error)}`);
    }
    return response.data;
  }
  async createSession(request) {
    const response = await createSessionSessionsPost({
      body: request
    });
    if (response.error) {
      throw new Error(`Failed to create session: ${JSON.stringify(response.error)}`);
    }
    return response.data;
  }
  async listSessions() {
    const response = await listSessionsSessionsGet();
    if (response.error) {
      throw new Error(`Failed to list sessions: ${JSON.stringify(response.error)}`);
    }
    return response.data;
  }
  async getSessionStatus(sessionId) {
    const response = await getSessionStatusSessionsSessionIdGet({
      path: { session_id: sessionId }
    });
    if (response.error) {
      throw new Error(`Failed to get session status: ${JSON.stringify(response.error)}`);
    }
    return response.data;
  }
  async startInference(sessionId) {
    const response = await startInferenceSessionsSessionIdStartPost({
      path: { session_id: sessionId }
    });
    if (response.error) {
      throw new Error(`Failed to start inference: ${JSON.stringify(response.error)}`);
    }
  }
  async stopInference(sessionId) {
    const response = await stopInferenceSessionsSessionIdStopPost({
      path: { session_id: sessionId }
    });
    if (response.error) {
      throw new Error(`Failed to stop inference: ${JSON.stringify(response.error)}`);
    }
  }
  async restartInference(sessionId) {
    const response = await restartInferenceSessionsSessionIdRestartPost({
      path: { session_id: sessionId }
    });
    if (response.error) {
      throw new Error(`Failed to restart inference: ${JSON.stringify(response.error)}`);
    }
  }
  async deleteSession(sessionId) {
    const response = await deleteSessionSessionsSessionIdDelete({
      path: { session_id: sessionId }
    });
    if (response.error) {
      throw new Error(`Failed to delete session: ${JSON.stringify(response.error)}`);
    }
  }
  async waitForSessionStatus(sessionId, targetStatus, timeoutMs = 30000) {
    const startTime = Date.now();
    while (Date.now() - startTime < timeoutMs) {
      const status = await this.getSessionStatus(sessionId);
      if (status.status === targetStatus) {
        return status;
      }
      await new Promise((resolve) => setTimeout(resolve, 1000));
    }
    throw new Error(`Timeout waiting for session ${sessionId} to reach status ${targetStatus}`);
  }
  async createAndStartSession(request) {
    const session = await this.createSession(request);
    await this.startInference(request.session_id);
    const status = await this.waitForSessionStatus(request.session_id, "running");
    return { session, status };
  }
  async getSystemInfo() {
    const response = await getSystemInfoDebugSystemGet();
    if (response.error) {
      throw new Error(`Failed to get system info: ${JSON.stringify(response.error)}`);
    }
    return response.data;
  }
  async debugResetSession(sessionId) {
    const response = await debugResetSessionDebugSessionsSessionIdResetPost({
      path: { session_id: sessionId }
    });
    if (response.error) {
      throw new Error(`Failed to reset session: ${JSON.stringify(response.error)}`);
    }
  }
  async getSessionQueueInfo(sessionId) {
    const response = await getSessionQueueInfoDebugSessionsSessionIdQueueGet({
      path: { session_id: sessionId }
    });
    if (response.error) {
      throw new Error(`Failed to get queue info: ${JSON.stringify(response.error)}`);
    }
    return response.data;
  }
}
function createClient(baseUrl) {
  return new LeRobotInferenceServerClient(baseUrl);
}
var LeRobotAIServerClient = LeRobotInferenceServerClient;
export {
  stopInferenceSessionsSessionIdStopPost,
  startInferenceSessionsSessionIdStartPost,
  rootGet,
  restartInferenceSessionsSessionIdRestartPost,
  listSessionsSessionsGet,
  listPoliciesPoliciesGet,
  healthCheckHealthGet,
  getSystemInfoDebugSystemGet,
  getSessionStatusSessionsSessionIdGet,
  getSessionQueueInfoDebugSessionsSessionIdQueueGet,
  getRecentLogsDebugLogsGet,
  deleteSessionSessionsSessionIdDelete,
  debugResetSessionDebugSessionsSessionIdResetPost,
  createSessionSessionsPost,
  createClient,
  client,
  ValidationErrorSchema,
  SessionStatusResponseSchema,
  LeRobotInferenceServerClient,
  LeRobotAIServerClient,
  HTTPValidationErrorSchema,
  CreateSessionResponseSchema,
  CreateSessionRequestSchema
};

//# debugId=2097EAE219935B0E64756E2164756E21
//# sourceMappingURL=index.js.map