@realtimex/sdk 1.7.6 → 1.7.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.
@@ -487,6 +487,77 @@ var V1SystemModule = class {
487
487
  }
488
488
  };
489
489
 
490
+ // src/v1/modules/v1RuntimeSessions.ts
491
+ var V1RuntimeSessionsModule = class {
492
+ constructor(client) {
493
+ this.client = client;
494
+ }
495
+ /**
496
+ * Resolve the desktop shell launch working directory for a workspace or thread context.
497
+ * @see POST /v1/runtime-sessions/desktop-shell/launch-spec
498
+ */
499
+ async desktopShellLaunchSpec(body) {
500
+ return this.client.request("POST", `/v1/runtime-sessions/desktop-shell/launch-spec`, body);
501
+ }
502
+ /**
503
+ * Evaluate the runtime terminal permission policy for a pending CLI action.
504
+ * @see POST /v1/runtime-sessions/terminal-permissions/evaluate
505
+ */
506
+ async terminalPermissionsEvaluate(body) {
507
+ return this.client.request("POST", `/v1/runtime-sessions/terminal-permissions/evaluate`, body);
508
+ }
509
+ /**
510
+ * Resolve the CLI agent terminal launch command and working directory.
511
+ * @see POST /v1/runtime-sessions/cli-agent/launch-spec
512
+ */
513
+ async cliAgentLaunchSpec(body) {
514
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/launch-spec`, body);
515
+ }
516
+ /**
517
+ * Create a persistent ACP-backed CLI agent runtime session.
518
+ * @see POST /v1/runtime-sessions/cli-agent
519
+ */
520
+ async cliAgent(body) {
521
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent`, body);
522
+ }
523
+ /**
524
+ * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
525
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
526
+ */
527
+ // @streaming-stub — implement SSE parsing in overrides/v1RuntimeSessionsStreaming.ts
528
+ async cliAgentChatStream(sessionKey, body) {
529
+ return this.client.requestRaw("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
530
+ }
531
+ /**
532
+ * Resolve a pending permission request for a CLI agent runtime session.
533
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
534
+ */
535
+ async cliAgentPermission(sessionKey, body) {
536
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
537
+ }
538
+ /**
539
+ * Cancel the current CLI turn for an active runtime session.
540
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
541
+ */
542
+ async cliAgentCancel(sessionKey, body) {
543
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
544
+ }
545
+ /**
546
+ * Close a CLI agent runtime session and clear its control-plane metadata.
547
+ * @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
548
+ */
549
+ async deleteCliAgent(sessionKey) {
550
+ return this.client.request("DELETE", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
551
+ }
552
+ /**
553
+ * Fetch the current state and runtime options for a CLI agent session.
554
+ * @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
555
+ */
556
+ async getCliAgent(sessionKey) {
557
+ return this.client.request("GET", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
558
+ }
559
+ };
560
+
490
561
  // src/v1/modules/v1Thread.ts
491
562
  var V1ThreadModule = class {
492
563
  constructor(client) {
@@ -642,76 +713,6 @@ var V1EmbedModule = class {
642
713
  }
643
714
  };
644
715
 
645
- // src/v1/modules/v1RuntimeSessions.ts
646
- var V1RuntimeSessionsModule = class {
647
- constructor(client) {
648
- this.client = client;
649
- }
650
- /**
651
- * Resolve the desktop shell launch working directory for a workspace or thread context.
652
- * @see POST /runtime-sessions/desktop-shell/launch-spec
653
- */
654
- async desktopShellLaunchSpec(body) {
655
- return this.client.request("POST", `/runtime-sessions/desktop-shell/launch-spec`, body);
656
- }
657
- /**
658
- * Evaluate the runtime terminal permission policy for a pending CLI action.
659
- * @see POST /runtime-sessions/terminal-permissions/evaluate
660
- */
661
- async terminalPermissionsEvaluate(body) {
662
- return this.client.request("POST", `/runtime-sessions/terminal-permissions/evaluate`, body);
663
- }
664
- /**
665
- * Resolve the CLI agent terminal launch command and working directory.
666
- * @see POST /runtime-sessions/cli-agent/launch-spec
667
- */
668
- async cliAgentLaunchSpec(body) {
669
- return this.client.request("POST", `/runtime-sessions/cli-agent/launch-spec`, body);
670
- }
671
- /**
672
- * Create a persistent ACP-backed CLI agent runtime session.
673
- * @see POST /runtime-sessions/cli-agent
674
- */
675
- async cliAgent(body) {
676
- return this.client.request("POST", `/runtime-sessions/cli-agent`, body);
677
- }
678
- /**
679
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
680
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
681
- */
682
- async cliAgentChatStream(sessionKey, body) {
683
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
684
- }
685
- /**
686
- * Resolve a pending permission request for a CLI agent runtime session.
687
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
688
- */
689
- async cliAgentPermission(sessionKey, body) {
690
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
691
- }
692
- /**
693
- * Cancel the current CLI turn for an active runtime session.
694
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
695
- */
696
- async cliAgentCancel(sessionKey, body) {
697
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
698
- }
699
- /**
700
- * Close a CLI agent runtime session and clear its control-plane metadata.
701
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
702
- */
703
- async deleteCliAgent(sessionKey) {
704
- return this.client.request("DELETE", `/runtime-sessions/cli-agent/${sessionKey}`);
705
- }
706
- /**
707
- * Fetch the current state and runtime options for a CLI agent session.
708
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
709
- */
710
- async getCliAgent(sessionKey) {
711
- return this.client.request("GET", `/runtime-sessions/cli-agent/${sessionKey}`);
712
- }
713
- };
714
-
715
716
  // src/v1/namespace.ts
716
717
  var V1ApiNamespace = class {
717
718
  // [GENERATED-PROPS-END]
@@ -722,11 +723,11 @@ var V1ApiNamespace = class {
722
723
  this.document = new V1DocumentModule(this._client);
723
724
  this.workspace = new V1WorkspaceModule(this._client);
724
725
  this.system = new V1SystemModule(this._client);
726
+ this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
725
727
  this.thread = new V1ThreadModule(this._client);
726
728
  this.users = new V1UsersModule(this._client);
727
729
  this.openai = new V1OpenAIModule(this._client);
728
730
  this.embed = new V1EmbedModule(this._client);
729
- this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
730
731
  }
731
732
  };
732
733
 
@@ -742,10 +743,10 @@ export {
742
743
  V1DocumentModule,
743
744
  V1WorkspaceModule,
744
745
  V1SystemModule,
746
+ V1RuntimeSessionsModule,
745
747
  V1ThreadModule,
746
748
  V1UsersModule,
747
749
  V1OpenAIModule,
748
750
  V1EmbedModule,
749
- V1RuntimeSessionsModule,
750
751
  V1ApiNamespace
751
752
  };
@@ -295,6 +295,56 @@ declare class V1SystemModule {
295
295
  getHealthVersion3(): Promise<unknown>;
296
296
  }
297
297
 
298
+ declare class V1RuntimeSessionsModule {
299
+ private readonly client;
300
+ constructor(client: DeveloperApiClient);
301
+ /**
302
+ * Resolve the desktop shell launch working directory for a workspace or thread context.
303
+ * @see POST /v1/runtime-sessions/desktop-shell/launch-spec
304
+ */
305
+ desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
306
+ /**
307
+ * Evaluate the runtime terminal permission policy for a pending CLI action.
308
+ * @see POST /v1/runtime-sessions/terminal-permissions/evaluate
309
+ */
310
+ terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
311
+ /**
312
+ * Resolve the CLI agent terminal launch command and working directory.
313
+ * @see POST /v1/runtime-sessions/cli-agent/launch-spec
314
+ */
315
+ cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
316
+ /**
317
+ * Create a persistent ACP-backed CLI agent runtime session.
318
+ * @see POST /v1/runtime-sessions/cli-agent
319
+ */
320
+ cliAgent(body?: Record<string, unknown>): Promise<unknown>;
321
+ /**
322
+ * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
323
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
324
+ */
325
+ cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<Response>;
326
+ /**
327
+ * Resolve a pending permission request for a CLI agent runtime session.
328
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
329
+ */
330
+ cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
331
+ /**
332
+ * Cancel the current CLI turn for an active runtime session.
333
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
334
+ */
335
+ cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
336
+ /**
337
+ * Close a CLI agent runtime session and clear its control-plane metadata.
338
+ * @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
339
+ */
340
+ deleteCliAgent(sessionKey: string): Promise<unknown>;
341
+ /**
342
+ * Fetch the current state and runtime options for a CLI agent session.
343
+ * @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
344
+ */
345
+ getCliAgent(sessionKey: string): Promise<unknown>;
346
+ }
347
+
298
348
  declare class V1ThreadModule {
299
349
  private readonly client;
300
350
  constructor(client: DeveloperApiClient);
@@ -405,56 +455,6 @@ declare class V1EmbedModule {
405
455
  deleteEmbed(embedUuid: string): Promise<unknown>;
406
456
  }
407
457
 
408
- declare class V1RuntimeSessionsModule {
409
- private readonly client;
410
- constructor(client: DeveloperApiClient);
411
- /**
412
- * Resolve the desktop shell launch working directory for a workspace or thread context.
413
- * @see POST /runtime-sessions/desktop-shell/launch-spec
414
- */
415
- desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
416
- /**
417
- * Evaluate the runtime terminal permission policy for a pending CLI action.
418
- * @see POST /runtime-sessions/terminal-permissions/evaluate
419
- */
420
- terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
421
- /**
422
- * Resolve the CLI agent terminal launch command and working directory.
423
- * @see POST /runtime-sessions/cli-agent/launch-spec
424
- */
425
- cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
426
- /**
427
- * Create a persistent ACP-backed CLI agent runtime session.
428
- * @see POST /runtime-sessions/cli-agent
429
- */
430
- cliAgent(body?: Record<string, unknown>): Promise<unknown>;
431
- /**
432
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
433
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
434
- */
435
- cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
436
- /**
437
- * Resolve a pending permission request for a CLI agent runtime session.
438
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
439
- */
440
- cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
441
- /**
442
- * Cancel the current CLI turn for an active runtime session.
443
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
444
- */
445
- cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
446
- /**
447
- * Close a CLI agent runtime session and clear its control-plane metadata.
448
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
449
- */
450
- deleteCliAgent(sessionKey: string): Promise<unknown>;
451
- /**
452
- * Fetch the current state and runtime options for a CLI agent session.
453
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
454
- */
455
- getCliAgent(sessionKey: string): Promise<unknown>;
456
- }
457
-
458
458
  /**
459
459
  * V1ApiNamespace - Container for all RealtimeX Developer API (v1) modules.
460
460
  *
@@ -474,11 +474,11 @@ declare class V1ApiNamespace {
474
474
  document: V1DocumentModule;
475
475
  workspace: V1WorkspaceModule;
476
476
  system: V1SystemModule;
477
+ runtimeSessions: V1RuntimeSessionsModule;
477
478
  thread: V1ThreadModule;
478
479
  users: V1UsersModule;
479
480
  openai: V1OpenAIModule;
480
481
  embed: V1EmbedModule;
481
- runtimeSessions: V1RuntimeSessionsModule;
482
482
  constructor(baseUrl: string, apiKey: string, appId?: string);
483
483
  }
484
484
 
@@ -503,4 +503,4 @@ declare class ServerError extends DeveloperApiError {
503
503
  constructor(message?: string);
504
504
  }
505
505
 
506
- export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g, V1ThreadModule as h, V1UsersModule as i, V1OpenAIModule as j, V1EmbedModule as k, V1RuntimeSessionsModule as l };
506
+ export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g, V1RuntimeSessionsModule as h, V1ThreadModule as i, V1UsersModule as j, V1OpenAIModule as k, V1EmbedModule as l };
@@ -295,6 +295,56 @@ declare class V1SystemModule {
295
295
  getHealthVersion3(): Promise<unknown>;
296
296
  }
297
297
 
298
+ declare class V1RuntimeSessionsModule {
299
+ private readonly client;
300
+ constructor(client: DeveloperApiClient);
301
+ /**
302
+ * Resolve the desktop shell launch working directory for a workspace or thread context.
303
+ * @see POST /v1/runtime-sessions/desktop-shell/launch-spec
304
+ */
305
+ desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
306
+ /**
307
+ * Evaluate the runtime terminal permission policy for a pending CLI action.
308
+ * @see POST /v1/runtime-sessions/terminal-permissions/evaluate
309
+ */
310
+ terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
311
+ /**
312
+ * Resolve the CLI agent terminal launch command and working directory.
313
+ * @see POST /v1/runtime-sessions/cli-agent/launch-spec
314
+ */
315
+ cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
316
+ /**
317
+ * Create a persistent ACP-backed CLI agent runtime session.
318
+ * @see POST /v1/runtime-sessions/cli-agent
319
+ */
320
+ cliAgent(body?: Record<string, unknown>): Promise<unknown>;
321
+ /**
322
+ * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
323
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
324
+ */
325
+ cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<Response>;
326
+ /**
327
+ * Resolve a pending permission request for a CLI agent runtime session.
328
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
329
+ */
330
+ cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
331
+ /**
332
+ * Cancel the current CLI turn for an active runtime session.
333
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
334
+ */
335
+ cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
336
+ /**
337
+ * Close a CLI agent runtime session and clear its control-plane metadata.
338
+ * @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
339
+ */
340
+ deleteCliAgent(sessionKey: string): Promise<unknown>;
341
+ /**
342
+ * Fetch the current state and runtime options for a CLI agent session.
343
+ * @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
344
+ */
345
+ getCliAgent(sessionKey: string): Promise<unknown>;
346
+ }
347
+
298
348
  declare class V1ThreadModule {
299
349
  private readonly client;
300
350
  constructor(client: DeveloperApiClient);
@@ -405,56 +455,6 @@ declare class V1EmbedModule {
405
455
  deleteEmbed(embedUuid: string): Promise<unknown>;
406
456
  }
407
457
 
408
- declare class V1RuntimeSessionsModule {
409
- private readonly client;
410
- constructor(client: DeveloperApiClient);
411
- /**
412
- * Resolve the desktop shell launch working directory for a workspace or thread context.
413
- * @see POST /runtime-sessions/desktop-shell/launch-spec
414
- */
415
- desktopShellLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
416
- /**
417
- * Evaluate the runtime terminal permission policy for a pending CLI action.
418
- * @see POST /runtime-sessions/terminal-permissions/evaluate
419
- */
420
- terminalPermissionsEvaluate(body?: Record<string, unknown>): Promise<unknown>;
421
- /**
422
- * Resolve the CLI agent terminal launch command and working directory.
423
- * @see POST /runtime-sessions/cli-agent/launch-spec
424
- */
425
- cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>;
426
- /**
427
- * Create a persistent ACP-backed CLI agent runtime session.
428
- * @see POST /runtime-sessions/cli-agent
429
- */
430
- cliAgent(body?: Record<string, unknown>): Promise<unknown>;
431
- /**
432
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
433
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
434
- */
435
- cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
436
- /**
437
- * Resolve a pending permission request for a CLI agent runtime session.
438
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
439
- */
440
- cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
441
- /**
442
- * Cancel the current CLI turn for an active runtime session.
443
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
444
- */
445
- cliAgentCancel(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>;
446
- /**
447
- * Close a CLI agent runtime session and clear its control-plane metadata.
448
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
449
- */
450
- deleteCliAgent(sessionKey: string): Promise<unknown>;
451
- /**
452
- * Fetch the current state and runtime options for a CLI agent session.
453
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
454
- */
455
- getCliAgent(sessionKey: string): Promise<unknown>;
456
- }
457
-
458
458
  /**
459
459
  * V1ApiNamespace - Container for all RealtimeX Developer API (v1) modules.
460
460
  *
@@ -474,11 +474,11 @@ declare class V1ApiNamespace {
474
474
  document: V1DocumentModule;
475
475
  workspace: V1WorkspaceModule;
476
476
  system: V1SystemModule;
477
+ runtimeSessions: V1RuntimeSessionsModule;
477
478
  thread: V1ThreadModule;
478
479
  users: V1UsersModule;
479
480
  openai: V1OpenAIModule;
480
481
  embed: V1EmbedModule;
481
- runtimeSessions: V1RuntimeSessionsModule;
482
482
  constructor(baseUrl: string, apiKey: string, appId?: string);
483
483
  }
484
484
 
@@ -503,4 +503,4 @@ declare class ServerError extends DeveloperApiError {
503
503
  constructor(message?: string);
504
504
  }
505
505
 
506
- export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g, V1ThreadModule as h, V1UsersModule as i, V1OpenAIModule as j, V1EmbedModule as k, V1RuntimeSessionsModule as l };
506
+ export { AuthenticationError as A, DeveloperApiClient as D, NotFoundError as N, ServerError as S, V1ApiNamespace as V, DeveloperApiError as a, ValidationError as b, V1AuthModule as c, V1AdminModule as d, V1DocumentModule as e, V1WorkspaceModule as f, V1SystemModule as g, V1RuntimeSessionsModule as h, V1ThreadModule as i, V1UsersModule as j, V1OpenAIModule as k, V1EmbedModule as l };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as V1ApiNamespace } from './errors-7Y9damGS.mjs';
2
- export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-7Y9damGS.mjs';
1
+ import { V as V1ApiNamespace } from './errors-kN70vQrd.mjs';
2
+ export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-kN70vQrd.mjs';
3
3
 
4
4
  /**
5
5
  * RealtimeX Local App SDK - Types
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { V as V1ApiNamespace } from './errors-7Y9damGS.js';
2
- export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-7Y9damGS.js';
1
+ import { V as V1ApiNamespace } from './errors-kN70vQrd.js';
2
+ export { A as AuthenticationError, D as DeveloperApiClient, a as DeveloperApiError, N as NotFoundError, S as ServerError, b as ValidationError } from './errors-kN70vQrd.js';
3
3
 
4
4
  /**
5
5
  * RealtimeX Local App SDK - Types
package/dist/index.js CHANGED
@@ -3532,6 +3532,77 @@ var V1SystemModule = class {
3532
3532
  }
3533
3533
  };
3534
3534
 
3535
+ // src/v1/modules/v1RuntimeSessions.ts
3536
+ var V1RuntimeSessionsModule = class {
3537
+ constructor(client) {
3538
+ this.client = client;
3539
+ }
3540
+ /**
3541
+ * Resolve the desktop shell launch working directory for a workspace or thread context.
3542
+ * @see POST /v1/runtime-sessions/desktop-shell/launch-spec
3543
+ */
3544
+ async desktopShellLaunchSpec(body) {
3545
+ return this.client.request("POST", `/v1/runtime-sessions/desktop-shell/launch-spec`, body);
3546
+ }
3547
+ /**
3548
+ * Evaluate the runtime terminal permission policy for a pending CLI action.
3549
+ * @see POST /v1/runtime-sessions/terminal-permissions/evaluate
3550
+ */
3551
+ async terminalPermissionsEvaluate(body) {
3552
+ return this.client.request("POST", `/v1/runtime-sessions/terminal-permissions/evaluate`, body);
3553
+ }
3554
+ /**
3555
+ * Resolve the CLI agent terminal launch command and working directory.
3556
+ * @see POST /v1/runtime-sessions/cli-agent/launch-spec
3557
+ */
3558
+ async cliAgentLaunchSpec(body) {
3559
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/launch-spec`, body);
3560
+ }
3561
+ /**
3562
+ * Create a persistent ACP-backed CLI agent runtime session.
3563
+ * @see POST /v1/runtime-sessions/cli-agent
3564
+ */
3565
+ async cliAgent(body) {
3566
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent`, body);
3567
+ }
3568
+ /**
3569
+ * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
3570
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
3571
+ */
3572
+ // @streaming-stub — implement SSE parsing in overrides/v1RuntimeSessionsStreaming.ts
3573
+ async cliAgentChatStream(sessionKey, body) {
3574
+ return this.client.requestRaw("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
3575
+ }
3576
+ /**
3577
+ * Resolve a pending permission request for a CLI agent runtime session.
3578
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
3579
+ */
3580
+ async cliAgentPermission(sessionKey, body) {
3581
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
3582
+ }
3583
+ /**
3584
+ * Cancel the current CLI turn for an active runtime session.
3585
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
3586
+ */
3587
+ async cliAgentCancel(sessionKey, body) {
3588
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
3589
+ }
3590
+ /**
3591
+ * Close a CLI agent runtime session and clear its control-plane metadata.
3592
+ * @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
3593
+ */
3594
+ async deleteCliAgent(sessionKey) {
3595
+ return this.client.request("DELETE", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
3596
+ }
3597
+ /**
3598
+ * Fetch the current state and runtime options for a CLI agent session.
3599
+ * @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
3600
+ */
3601
+ async getCliAgent(sessionKey) {
3602
+ return this.client.request("GET", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
3603
+ }
3604
+ };
3605
+
3535
3606
  // src/v1/modules/v1Thread.ts
3536
3607
  var V1ThreadModule = class {
3537
3608
  constructor(client) {
@@ -3687,76 +3758,6 @@ var V1EmbedModule = class {
3687
3758
  }
3688
3759
  };
3689
3760
 
3690
- // src/v1/modules/v1RuntimeSessions.ts
3691
- var V1RuntimeSessionsModule = class {
3692
- constructor(client) {
3693
- this.client = client;
3694
- }
3695
- /**
3696
- * Resolve the desktop shell launch working directory for a workspace or thread context.
3697
- * @see POST /runtime-sessions/desktop-shell/launch-spec
3698
- */
3699
- async desktopShellLaunchSpec(body) {
3700
- return this.client.request("POST", `/runtime-sessions/desktop-shell/launch-spec`, body);
3701
- }
3702
- /**
3703
- * Evaluate the runtime terminal permission policy for a pending CLI action.
3704
- * @see POST /runtime-sessions/terminal-permissions/evaluate
3705
- */
3706
- async terminalPermissionsEvaluate(body) {
3707
- return this.client.request("POST", `/runtime-sessions/terminal-permissions/evaluate`, body);
3708
- }
3709
- /**
3710
- * Resolve the CLI agent terminal launch command and working directory.
3711
- * @see POST /runtime-sessions/cli-agent/launch-spec
3712
- */
3713
- async cliAgentLaunchSpec(body) {
3714
- return this.client.request("POST", `/runtime-sessions/cli-agent/launch-spec`, body);
3715
- }
3716
- /**
3717
- * Create a persistent ACP-backed CLI agent runtime session.
3718
- * @see POST /runtime-sessions/cli-agent
3719
- */
3720
- async cliAgent(body) {
3721
- return this.client.request("POST", `/runtime-sessions/cli-agent`, body);
3722
- }
3723
- /**
3724
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
3725
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
3726
- */
3727
- async cliAgentChatStream(sessionKey, body) {
3728
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
3729
- }
3730
- /**
3731
- * Resolve a pending permission request for a CLI agent runtime session.
3732
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
3733
- */
3734
- async cliAgentPermission(sessionKey, body) {
3735
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
3736
- }
3737
- /**
3738
- * Cancel the current CLI turn for an active runtime session.
3739
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
3740
- */
3741
- async cliAgentCancel(sessionKey, body) {
3742
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
3743
- }
3744
- /**
3745
- * Close a CLI agent runtime session and clear its control-plane metadata.
3746
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
3747
- */
3748
- async deleteCliAgent(sessionKey) {
3749
- return this.client.request("DELETE", `/runtime-sessions/cli-agent/${sessionKey}`);
3750
- }
3751
- /**
3752
- * Fetch the current state and runtime options for a CLI agent session.
3753
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
3754
- */
3755
- async getCliAgent(sessionKey) {
3756
- return this.client.request("GET", `/runtime-sessions/cli-agent/${sessionKey}`);
3757
- }
3758
- };
3759
-
3760
3761
  // src/v1/namespace.ts
3761
3762
  var V1ApiNamespace = class {
3762
3763
  // [GENERATED-PROPS-END]
@@ -3767,11 +3768,11 @@ var V1ApiNamespace = class {
3767
3768
  this.document = new V1DocumentModule(this._client);
3768
3769
  this.workspace = new V1WorkspaceModule(this._client);
3769
3770
  this.system = new V1SystemModule(this._client);
3771
+ this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
3770
3772
  this.thread = new V1ThreadModule(this._client);
3771
3773
  this.users = new V1UsersModule(this._client);
3772
3774
  this.openai = new V1OpenAIModule(this._client);
3773
3775
  this.embed = new V1EmbedModule(this._client);
3774
- this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
3775
3776
  }
3776
3777
  };
3777
3778
 
package/dist/index.mjs CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  ServerError,
7
7
  V1ApiNamespace,
8
8
  ValidationError
9
- } from "./chunk-YHNURPXJ.mjs";
9
+ } from "./chunk-EMMHP4JM.mjs";
10
10
 
11
11
  // src/modules/api.ts
12
12
  var PermissionDeniedError = class extends Error {
@@ -1,5 +1,5 @@
1
- import { D as DeveloperApiClient } from '../errors-7Y9damGS.mjs';
2
- export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, e as V1DocumentModule, k as V1EmbedModule, j as V1OpenAIModule, l as V1RuntimeSessionsModule, g as V1SystemModule, h as V1ThreadModule, i as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-7Y9damGS.mjs';
1
+ import { D as DeveloperApiClient } from '../errors-kN70vQrd.mjs';
2
+ export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, e as V1DocumentModule, l as V1EmbedModule, k as V1OpenAIModule, h as V1RuntimeSessionsModule, g as V1SystemModule, i as V1ThreadModule, j as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-kN70vQrd.mjs';
3
3
 
4
4
  interface WorkspaceStreamChunk {
5
5
  /** The text fragment emitted by this SSE event */
@@ -1,5 +1,5 @@
1
- import { D as DeveloperApiClient } from '../errors-7Y9damGS.js';
2
- export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, e as V1DocumentModule, k as V1EmbedModule, j as V1OpenAIModule, l as V1RuntimeSessionsModule, g as V1SystemModule, h as V1ThreadModule, i as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-7Y9damGS.js';
1
+ import { D as DeveloperApiClient } from '../errors-kN70vQrd.js';
2
+ export { A as AuthenticationError, a as DeveloperApiError, N as NotFoundError, S as ServerError, d as V1AdminModule, V as V1ApiNamespace, c as V1AuthModule, e as V1DocumentModule, l as V1EmbedModule, k as V1OpenAIModule, h as V1RuntimeSessionsModule, g as V1SystemModule, i as V1ThreadModule, j as V1UsersModule, f as V1WorkspaceModule, b as ValidationError } from '../errors-kN70vQrd.js';
3
3
 
4
4
  interface WorkspaceStreamChunk {
5
5
  /** The text fragment emitted by this SSE event */
package/dist/v1/index.js CHANGED
@@ -533,6 +533,77 @@ var V1SystemModule = class {
533
533
  }
534
534
  };
535
535
 
536
+ // src/v1/modules/v1RuntimeSessions.ts
537
+ var V1RuntimeSessionsModule = class {
538
+ constructor(client) {
539
+ this.client = client;
540
+ }
541
+ /**
542
+ * Resolve the desktop shell launch working directory for a workspace or thread context.
543
+ * @see POST /v1/runtime-sessions/desktop-shell/launch-spec
544
+ */
545
+ async desktopShellLaunchSpec(body) {
546
+ return this.client.request("POST", `/v1/runtime-sessions/desktop-shell/launch-spec`, body);
547
+ }
548
+ /**
549
+ * Evaluate the runtime terminal permission policy for a pending CLI action.
550
+ * @see POST /v1/runtime-sessions/terminal-permissions/evaluate
551
+ */
552
+ async terminalPermissionsEvaluate(body) {
553
+ return this.client.request("POST", `/v1/runtime-sessions/terminal-permissions/evaluate`, body);
554
+ }
555
+ /**
556
+ * Resolve the CLI agent terminal launch command and working directory.
557
+ * @see POST /v1/runtime-sessions/cli-agent/launch-spec
558
+ */
559
+ async cliAgentLaunchSpec(body) {
560
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/launch-spec`, body);
561
+ }
562
+ /**
563
+ * Create a persistent ACP-backed CLI agent runtime session.
564
+ * @see POST /v1/runtime-sessions/cli-agent
565
+ */
566
+ async cliAgent(body) {
567
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent`, body);
568
+ }
569
+ /**
570
+ * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
571
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/chat/stream
572
+ */
573
+ // @streaming-stub — implement SSE parsing in overrides/v1RuntimeSessionsStreaming.ts
574
+ async cliAgentChatStream(sessionKey, body) {
575
+ return this.client.requestRaw("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
576
+ }
577
+ /**
578
+ * Resolve a pending permission request for a CLI agent runtime session.
579
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/permission
580
+ */
581
+ async cliAgentPermission(sessionKey, body) {
582
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
583
+ }
584
+ /**
585
+ * Cancel the current CLI turn for an active runtime session.
586
+ * @see POST /v1/runtime-sessions/cli-agent/{sessionKey}/cancel
587
+ */
588
+ async cliAgentCancel(sessionKey, body) {
589
+ return this.client.request("POST", `/v1/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
590
+ }
591
+ /**
592
+ * Close a CLI agent runtime session and clear its control-plane metadata.
593
+ * @see DELETE /v1/runtime-sessions/cli-agent/{sessionKey}
594
+ */
595
+ async deleteCliAgent(sessionKey) {
596
+ return this.client.request("DELETE", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
597
+ }
598
+ /**
599
+ * Fetch the current state and runtime options for a CLI agent session.
600
+ * @see GET /v1/runtime-sessions/cli-agent/{sessionKey}
601
+ */
602
+ async getCliAgent(sessionKey) {
603
+ return this.client.request("GET", `/v1/runtime-sessions/cli-agent/${sessionKey}`);
604
+ }
605
+ };
606
+
536
607
  // src/v1/modules/v1Thread.ts
537
608
  var V1ThreadModule = class {
538
609
  constructor(client) {
@@ -688,76 +759,6 @@ var V1EmbedModule = class {
688
759
  }
689
760
  };
690
761
 
691
- // src/v1/modules/v1RuntimeSessions.ts
692
- var V1RuntimeSessionsModule = class {
693
- constructor(client) {
694
- this.client = client;
695
- }
696
- /**
697
- * Resolve the desktop shell launch working directory for a workspace or thread context.
698
- * @see POST /runtime-sessions/desktop-shell/launch-spec
699
- */
700
- async desktopShellLaunchSpec(body) {
701
- return this.client.request("POST", `/runtime-sessions/desktop-shell/launch-spec`, body);
702
- }
703
- /**
704
- * Evaluate the runtime terminal permission policy for a pending CLI action.
705
- * @see POST /runtime-sessions/terminal-permissions/evaluate
706
- */
707
- async terminalPermissionsEvaluate(body) {
708
- return this.client.request("POST", `/runtime-sessions/terminal-permissions/evaluate`, body);
709
- }
710
- /**
711
- * Resolve the CLI agent terminal launch command and working directory.
712
- * @see POST /runtime-sessions/cli-agent/launch-spec
713
- */
714
- async cliAgentLaunchSpec(body) {
715
- return this.client.request("POST", `/runtime-sessions/cli-agent/launch-spec`, body);
716
- }
717
- /**
718
- * Create a persistent ACP-backed CLI agent runtime session.
719
- * @see POST /runtime-sessions/cli-agent
720
- */
721
- async cliAgent(body) {
722
- return this.client.request("POST", `/runtime-sessions/cli-agent`, body);
723
- }
724
- /**
725
- * Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
726
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/chat/stream
727
- */
728
- async cliAgentChatStream(sessionKey, body) {
729
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/chat/stream`, body);
730
- }
731
- /**
732
- * Resolve a pending permission request for a CLI agent runtime session.
733
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/permission
734
- */
735
- async cliAgentPermission(sessionKey, body) {
736
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/permission`, body);
737
- }
738
- /**
739
- * Cancel the current CLI turn for an active runtime session.
740
- * @see POST /runtime-sessions/cli-agent/{sessionKey}/cancel
741
- */
742
- async cliAgentCancel(sessionKey, body) {
743
- return this.client.request("POST", `/runtime-sessions/cli-agent/${sessionKey}/cancel`, body);
744
- }
745
- /**
746
- * Close a CLI agent runtime session and clear its control-plane metadata.
747
- * @see DELETE /runtime-sessions/cli-agent/{sessionKey}
748
- */
749
- async deleteCliAgent(sessionKey) {
750
- return this.client.request("DELETE", `/runtime-sessions/cli-agent/${sessionKey}`);
751
- }
752
- /**
753
- * Fetch the current state and runtime options for a CLI agent session.
754
- * @see GET /runtime-sessions/cli-agent/{sessionKey}
755
- */
756
- async getCliAgent(sessionKey) {
757
- return this.client.request("GET", `/runtime-sessions/cli-agent/${sessionKey}`);
758
- }
759
- };
760
-
761
762
  // src/v1/namespace.ts
762
763
  var V1ApiNamespace = class {
763
764
  // [GENERATED-PROPS-END]
@@ -768,11 +769,11 @@ var V1ApiNamespace = class {
768
769
  this.document = new V1DocumentModule(this._client);
769
770
  this.workspace = new V1WorkspaceModule(this._client);
770
771
  this.system = new V1SystemModule(this._client);
772
+ this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
771
773
  this.thread = new V1ThreadModule(this._client);
772
774
  this.users = new V1UsersModule(this._client);
773
775
  this.openai = new V1OpenAIModule(this._client);
774
776
  this.embed = new V1EmbedModule(this._client);
775
- this.runtimeSessions = new V1RuntimeSessionsModule(this._client);
776
777
  }
777
778
  };
778
779
 
package/dist/v1/index.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  V1UsersModule,
17
17
  V1WorkspaceModule,
18
18
  ValidationError
19
- } from "../chunk-YHNURPXJ.mjs";
19
+ } from "../chunk-EMMHP4JM.mjs";
20
20
 
21
21
  // src/v1/overrides/v1WorkspaceStreaming.ts
22
22
  async function* streamWorkspaceChat(client, slug, body) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/sdk",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "SDK for building Local Apps that integrate with RealtimeX",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: realtimex-moderator-sdk
3
3
  description: Control and interact with the RealTimeX application through its Node.js SDK. This skill should be used when users want to manage workspaces, threads, agents, activities, LLM chat, vector store, MCP tools, ACP agent sessions, TTS/STT, or any other RealTimeX platform feature via the API. All method signatures are verified against the SDK source code.
4
- generated: 2026-05-04
5
- sdk_version: 1.7.6
4
+ generated: 2026-05-05
5
+ sdk_version: 1.7.7
6
6
  ---
7
7
 
8
8
  # RealTimeX Moderator (SDK Source-Verified)
9
9
 
10
- Interact with the RealTimeX platform (`http://localhost:3001`) using `@realtimex/sdk` **v1.7.6**. Authentication is automatic when running inside RealtimeX.
10
+ Interact with the RealTimeX platform (`http://localhost:3001`) using `@realtimex/sdk` **v1.7.7**. Authentication is automatic when running inside RealtimeX.
11
11
 
12
12
  `<SKILL_DIR>` below refers to the directory containing this SKILL.md.
13
13
 
@@ -1,6 +1,6 @@
1
1
  # RealTimeX SDK — API Reference
2
2
 
3
- > Auto-generated from `@realtimex/sdk` source · v**1.7.6** · 2026-05-04
3
+ > Auto-generated from `@realtimex/sdk` source · v**1.7.7** · 2026-05-05
4
4
 
5
5
  **Package:** `@realtimex/sdk` (CJS) · **Server:** `http://localhost:3001`
6
6
  **Developer Mode auth:** `Authorization: Bearer <apiKey>`
@@ -936,9 +936,6 @@ async cliAgentLaunchSpec(body?: Record<string, unknown>): Promise<unknown>
936
936
  async cliAgent(body?: Record<string, unknown>): Promise<unknown>
937
937
 
938
938
  // Stream a chat turn to an existing CLI agent runtime session using Server-Sent Events.
939
- async cliAgentChatStream(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>
940
-
941
- // Resolve a pending permission request for a CLI agent runtime session.
942
939
  async cliAgentPermission(sessionKey: string, body?: Record<string, unknown>): Promise<unknown>
943
940
 
944
941
  // Cancel the current CLI turn for an active runtime session.
@@ -1,6 +1,6 @@
1
1
  # Known Issues — Source-Detected
2
2
 
3
- > Auto-generated by `scripts/generate-skill.mjs` · SDK **1.7.6** · 2026-05-04
3
+ > Auto-generated by `scripts/generate-skill.mjs` · SDK **1.7.7** · 2026-05-05
4
4
 
5
5
  Run `node scripts/generate-skill.mjs --force` after SDK source changes to refresh.
6
6