@converge.ai/a13n 0.0.95 → 0.1.0

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.
@@ -19,21 +19,30 @@ export class ServiceResources {
19
19
  get auth() {
20
20
  return new AuthResource(this.transport, "/api/v1/auth");
21
21
  }
22
+ get browserProviders() {
23
+ return new BrowserProvidersResource(this.transport, "/api/v1/browser-providers");
24
+ }
25
+ get browsers() {
26
+ return new BrowsersResource(this.transport, "/api/v1/browsers");
27
+ }
22
28
  get builtinSkills() {
23
29
  return new BuiltinSkillsResource(this.transport, "/api/v1/builtin-skills");
24
30
  }
31
+ get clientEnvironments() {
32
+ return new ClientEnvironmentsResource(this.transport, "/api/v1/client-environments");
33
+ }
25
34
  get connections() {
26
35
  return new ConnectionsResource(this.transport, "/api/v1/connections");
27
36
  }
28
37
  get connectorProviders() {
29
38
  return new ConnectorProvidersResource(this.transport, "/api/v1/connector-providers");
30
39
  }
31
- get desktopAssistance() {
32
- return new DesktopAssistanceResource(this.transport, "/api/v1/desktop-assistance");
33
- }
34
40
  get devices() {
35
41
  return new DevicesResource(this.transport, "/api/v1/devices");
36
42
  }
43
+ get egressCredentials() {
44
+ return new EgressCredentialsResource(this.transport, "/api/v1/egress-credentials");
45
+ }
37
46
  get environmentProviderOptions() {
38
47
  return new EnvironmentProviderOptionsResource(this.transport, "/api/v1/environment-provider-options");
39
48
  }
@@ -70,6 +79,9 @@ export class ServiceResources {
70
79
  get memories() {
71
80
  return new MemoriesResource(this.transport, "/api/v1/memories");
72
81
  }
82
+ get memoryOrganizations() {
83
+ return new MemoryOrganizationsResource(this.transport, "/api/v1/memory-organizations");
84
+ }
73
85
  get memoryProviders() {
74
86
  return new MemoryProvidersResource(this.transport, "/api/v1/memory-providers");
75
87
  }
@@ -509,6 +521,178 @@ export class AuthSessionResource {
509
521
  });
510
522
  }
511
523
  }
524
+ export class BrowserProvidersResource {
525
+ transport;
526
+ path;
527
+ constructor(transport, path) {
528
+ this.transport = transport;
529
+ this.path = path;
530
+ }
531
+ /** GET /api/v1/browser-providers. Preserves response metadata; mutations are not replayed. */
532
+ list(options = {}) {
533
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
534
+ .filter(([, value]) => value !== undefined && value !== null)
535
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
536
+ }
537
+ pages(options = {}) {
538
+ const query = snapshot(options.query ?? {});
539
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
540
+ }
541
+ items(options = {}) {
542
+ return flattenPages(this.pages(options), (value) => value);
543
+ }
544
+ /** POST /api/v1/browser-providers. Preserves response metadata; mutations are not replayed. */
545
+ create(body, options = {}) {
546
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
547
+ .filter(([, value]) => value !== undefined && value !== null)
548
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
549
+ }
550
+ ref(value) {
551
+ return new BrowserProvidersProviderIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
552
+ }
553
+ }
554
+ export class BrowserProvidersProviderIdResource {
555
+ transport;
556
+ path;
557
+ constructor(transport, path) {
558
+ this.transport = transport;
559
+ this.path = path;
560
+ }
561
+ /** DELETE /api/v1/browser-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
562
+ delete(options) {
563
+ return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
564
+ "If-Match": options.ifMatch,
565
+ "X-Workspace-ID": options.xWorkspaceId,
566
+ })
567
+ .filter(([, value]) => value !== undefined && value !== null)
568
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
569
+ }
570
+ /** GET /api/v1/browser-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
571
+ get(options = {}) {
572
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
573
+ .filter(([, value]) => value !== undefined && value !== null)
574
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
575
+ }
576
+ /** PATCH /api/v1/browser-providers/{provider_id}. Preserves response metadata; mutations are not replayed. */
577
+ update(body, options) {
578
+ return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
579
+ "If-Match": options.ifMatch,
580
+ "X-Workspace-ID": options.xWorkspaceId,
581
+ })
582
+ .filter(([, value]) => value !== undefined && value !== null)
583
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
584
+ }
585
+ /** POST /api/v1/browser-providers/{provider_id}/test. Preserves response metadata; mutations are not replayed. */
586
+ test(options = {}) {
587
+ return jsonRequest(this.transport, "POST", this.path + "/test", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
588
+ .filter(([, value]) => value !== undefined && value !== null)
589
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
590
+ }
591
+ }
592
+ export class BrowsersResource {
593
+ transport;
594
+ path;
595
+ constructor(transport, path) {
596
+ this.transport = transport;
597
+ this.path = path;
598
+ }
599
+ /** GET /api/v1/browsers. Preserves response metadata; mutations are not replayed. */
600
+ list(options = {}) {
601
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
602
+ .filter(([, value]) => value !== undefined && value !== null)
603
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
604
+ }
605
+ pages(options = {}) {
606
+ const query = snapshot(options.query ?? {});
607
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
608
+ }
609
+ items(options = {}) {
610
+ return flattenPages(this.pages(options), (value) => value);
611
+ }
612
+ /** POST /api/v1/browsers. Preserves response metadata; mutations are not replayed. */
613
+ create(body, options = {}) {
614
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
615
+ .filter(([, value]) => value !== undefined && value !== null)
616
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
617
+ }
618
+ /** POST /api/v1/browsers/attach. Preserves response metadata; mutations are not replayed. */
619
+ attach(body, options = {}) {
620
+ return jsonRequest(this.transport, "POST", this.path + "/attach", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
621
+ .filter(([, value]) => value !== undefined && value !== null)
622
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
623
+ }
624
+ ref(value) {
625
+ return new BrowsersBrowserIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
626
+ }
627
+ }
628
+ export class BrowsersBrowserIdResource {
629
+ transport;
630
+ path;
631
+ constructor(transport, path) {
632
+ this.transport = transport;
633
+ this.path = path;
634
+ }
635
+ /** GET /api/v1/browsers/{browser_id}. Preserves response metadata; mutations are not replayed. */
636
+ get(options = {}) {
637
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
638
+ .filter(([, value]) => value !== undefined && value !== null)
639
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
640
+ }
641
+ /** POST /api/v1/browsers/{browser_id}/handback. Preserves response metadata; mutations are not replayed. */
642
+ handback(options) {
643
+ return jsonRequest(this.transport, "POST", this.path + "/handback", undefined, Object.fromEntries(Object.entries({
644
+ "If-Match": options.ifMatch,
645
+ "X-Workspace-ID": options.xWorkspaceId,
646
+ })
647
+ .filter(([, value]) => value !== undefined && value !== null)
648
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
649
+ }
650
+ /** POST /api/v1/browsers/{browser_id}/prepare. Preserves response metadata; mutations are not replayed. */
651
+ prepare(options = {}) {
652
+ return jsonRequest(this.transport, "POST", this.path + "/prepare", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
653
+ .filter(([, value]) => value !== undefined && value !== null)
654
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
655
+ }
656
+ /** POST /api/v1/browsers/{browser_id}/release. Preserves response metadata; mutations are not replayed. */
657
+ release(options) {
658
+ return jsonRequest(this.transport, "POST", this.path + "/release", undefined, Object.fromEntries(Object.entries({
659
+ "If-Match": options.ifMatch,
660
+ "X-Workspace-ID": options.xWorkspaceId,
661
+ })
662
+ .filter(([, value]) => value !== undefined && value !== null)
663
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
664
+ }
665
+ /** POST /api/v1/browsers/{browser_id}/renew. Preserves response metadata; mutations are not replayed. */
666
+ renew(body, options = {}) {
667
+ return jsonRequest(this.transport, "POST", this.path + "/renew", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
668
+ .filter(([, value]) => value !== undefined && value !== null)
669
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
670
+ }
671
+ /** POST /api/v1/browsers/{browser_id}/stop. Preserves response metadata; mutations are not replayed. */
672
+ stop(options) {
673
+ return jsonRequest(this.transport, "POST", this.path + "/stop", undefined, Object.fromEntries(Object.entries({
674
+ "If-Match": options.ifMatch,
675
+ "X-Workspace-ID": options.xWorkspaceId,
676
+ })
677
+ .filter(([, value]) => value !== undefined && value !== null)
678
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
679
+ }
680
+ /** POST /api/v1/browsers/{browser_id}/takeover. Preserves response metadata; mutations are not replayed. */
681
+ takeover(body, options) {
682
+ return jsonRequest(this.transport, "POST", this.path + "/takeover", body, Object.fromEntries(Object.entries({
683
+ "If-Match": options.ifMatch,
684
+ "X-Workspace-ID": options.xWorkspaceId,
685
+ })
686
+ .filter(([, value]) => value !== undefined && value !== null)
687
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
688
+ }
689
+ /** POST /api/v1/browsers/{browser_id}/viewer. Preserves response metadata; mutations are not replayed. */
690
+ viewer(options = {}) {
691
+ return jsonRequest(this.transport, "POST", this.path + "/viewer", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
692
+ .filter(([, value]) => value !== undefined && value !== null)
693
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
694
+ }
695
+ }
512
696
  export class BuiltinSkillsResource {
513
697
  transport;
514
698
  path;
@@ -561,6 +745,135 @@ export class BuiltinSkillsNameContentResource {
561
745
  });
562
746
  }
563
747
  }
748
+ export class ClientEnvironmentsResource {
749
+ transport;
750
+ path;
751
+ constructor(transport, path) {
752
+ this.transport = transport;
753
+ this.path = path;
754
+ }
755
+ /** POST /api/v1/client-environments. Preserves response metadata; mutations are not replayed. */
756
+ create(body, options = {}) {
757
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
758
+ .filter(([, value]) => value !== undefined && value !== null)
759
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
760
+ }
761
+ /** POST /api/v1/client-environments/connect. Preserves response metadata; mutations are not replayed. */
762
+ connect(body, options = {}) {
763
+ return jsonRequest(this.transport, "POST", this.path + "/connect", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
764
+ .filter(([, value]) => value !== undefined && value !== null)
765
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
766
+ }
767
+ get pairings() {
768
+ return new ClientEnvironmentsPairingsResource(this.transport, this.path + "/pairings");
769
+ }
770
+ ref(value) {
771
+ return new ClientEnvironmentsEnvironmentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
772
+ }
773
+ }
774
+ export class ClientEnvironmentsPairingsResource {
775
+ transport;
776
+ path;
777
+ constructor(transport, path) {
778
+ this.transport = transport;
779
+ this.path = path;
780
+ }
781
+ /** POST /api/v1/client-environments/pairings. Preserves response metadata; mutations are not replayed. */
782
+ create(options = {}) {
783
+ return jsonRequest(this.transport, "POST", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
784
+ .filter(([, value]) => value !== undefined && value !== null)
785
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
786
+ }
787
+ ref(value) {
788
+ return new ClientEnvironmentsPairingsPairingIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
789
+ }
790
+ }
791
+ export class ClientEnvironmentsPairingsPairingIdResource {
792
+ transport;
793
+ path;
794
+ constructor(transport, path) {
795
+ this.transport = transport;
796
+ this.path = path;
797
+ }
798
+ /** GET /api/v1/client-environments/pairings/{pairing_id}. Preserves response metadata; mutations are not replayed. */
799
+ get(options = {}) {
800
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
801
+ .filter(([, value]) => value !== undefined && value !== null)
802
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
803
+ }
804
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/approve. Preserves response metadata; mutations are not replayed. */
805
+ approve(body, options = {}) {
806
+ return jsonRequest(this.transport, "POST", this.path + "/approve", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
807
+ .filter(([, value]) => value !== undefined && value !== null)
808
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
809
+ }
810
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/cancel. Preserves response metadata; mutations are not replayed. */
811
+ cancel(options = {}) {
812
+ return jsonRequest(this.transport, "POST", this.path + "/cancel", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
813
+ .filter(([, value]) => value !== undefined && value !== null)
814
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
815
+ }
816
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/claim. Preserves response metadata; mutations are not replayed. */
817
+ claim(body, options = {}) {
818
+ return jsonRequest(this.transport, "POST", this.path + "/claim", body, undefined, { signal: options.signal });
819
+ }
820
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/recognize. Preserves response metadata; mutations are not replayed. */
821
+ recognize(body, options = {}) {
822
+ return jsonRequest(this.transport, "POST", this.path + "/recognize", body, undefined, { signal: options.signal });
823
+ }
824
+ }
825
+ export class ClientEnvironmentsEnvironmentIdResource {
826
+ transport;
827
+ path;
828
+ constructor(transport, path) {
829
+ this.transport = transport;
830
+ this.path = path;
831
+ }
832
+ /** GET /api/v1/client-environments/{environment_id}. Preserves response metadata; mutations are not replayed. */
833
+ get(options = {}) {
834
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
835
+ .filter(([, value]) => value !== undefined && value !== null)
836
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
837
+ }
838
+ /** POST /api/v1/client-environments/{environment_id}/revoke-credential. Preserves response metadata; mutations are not replayed. */
839
+ revokeCredential(options) {
840
+ return jsonRequest(this.transport, "POST", this.path + "/revoke-credential", undefined, Object.fromEntries(Object.entries({
841
+ "If-Match": options.ifMatch,
842
+ "X-Workspace-ID": options.xWorkspaceId,
843
+ })
844
+ .filter(([, value]) => value !== undefined && value !== null)
845
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
846
+ }
847
+ /** POST /api/v1/client-environments/{environment_id}/rotate-credential. Preserves response metadata; mutations are not replayed. */
848
+ rotateCredential(options) {
849
+ return jsonRequest(this.transport, "POST", this.path + "/rotate-credential", undefined, Object.fromEntries(Object.entries({
850
+ "If-Match": options.ifMatch,
851
+ "X-Workspace-ID": options.xWorkspaceId,
852
+ })
853
+ .filter(([, value]) => value !== undefined && value !== null)
854
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
855
+ }
856
+ get status() {
857
+ return new ClientEnvironmentsEnvironmentIdStatusResource(this.transport, this.path + "/status");
858
+ }
859
+ }
860
+ export class ClientEnvironmentsEnvironmentIdStatusResource {
861
+ transport;
862
+ path;
863
+ constructor(transport, path) {
864
+ this.transport = transport;
865
+ this.path = path;
866
+ }
867
+ /** PATCH /api/v1/client-environments/{environment_id}/status. Preserves response metadata; mutations are not replayed. */
868
+ update(body, options) {
869
+ return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
870
+ "If-Match": options.ifMatch,
871
+ "X-Workspace-ID": options.xWorkspaceId,
872
+ })
873
+ .filter(([, value]) => value !== undefined && value !== null)
874
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
875
+ }
876
+ }
564
877
  export class ConnectionsResource {
565
878
  transport;
566
879
  path;
@@ -898,63 +1211,102 @@ export class ConnectorProvidersProviderIdAppsAppActionsIndexResource {
898
1211
  return flattenPages(this.pages(options), (value) => value);
899
1212
  }
900
1213
  }
901
- export class DesktopAssistanceResource {
1214
+ export class DevicesResource {
902
1215
  transport;
903
1216
  path;
904
1217
  constructor(transport, path) {
905
1218
  this.transport = transport;
906
1219
  this.path = path;
907
1220
  }
1221
+ /** GET /api/v1/devices. Preserves response metadata; mutations are not replayed. */
1222
+ list(options = {}) {
1223
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1224
+ .filter(([, value]) => value !== undefined && value !== null)
1225
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1226
+ }
1227
+ pages(options = {}) {
1228
+ const query = snapshot(options.query ?? {});
1229
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
1230
+ }
1231
+ items(options = {}) {
1232
+ return flattenPages(this.pages(options), (value) => value);
1233
+ }
1234
+ /** POST /api/v1/devices. Preserves response metadata; mutations are not replayed. */
1235
+ create(body, options = {}) {
1236
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1237
+ .filter(([, value]) => value !== undefined && value !== null)
1238
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1239
+ }
908
1240
  ref(value) {
909
- return new DesktopAssistanceAssistanceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
1241
+ return new DevicesDeviceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
910
1242
  }
911
1243
  }
912
- export class DesktopAssistanceAssistanceIdResource {
1244
+ export class DevicesDeviceIdResource {
913
1245
  transport;
914
1246
  path;
915
1247
  constructor(transport, path) {
916
1248
  this.transport = transport;
917
1249
  this.path = path;
918
1250
  }
919
- /** POST /api/v1/desktop-assistance/{assistance_id}/complete. Preserves response metadata; mutations are not replayed. */
920
- complete(body, options = {}) {
921
- return jsonRequest(this.transport, "POST", this.path + "/complete", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1251
+ /** DELETE /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
1252
+ delete(options) {
1253
+ return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
1254
+ "If-Match": options.ifMatch,
1255
+ "X-Workspace-ID": options.xWorkspaceId,
1256
+ })
922
1257
  .filter(([, value]) => value !== undefined && value !== null)
923
1258
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
924
1259
  }
925
- /** POST /api/v1/desktop-assistance/{assistance_id}/control. Preserves response metadata; mutations are not replayed. */
926
- control(body, options = {}) {
927
- return jsonRequest(this.transport, "POST", this.path + "/control", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1260
+ /** GET /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
1261
+ get(options = {}) {
1262
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
928
1263
  .filter(([, value]) => value !== undefined && value !== null)
929
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1264
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
930
1265
  }
931
- /** POST /api/v1/desktop-assistance/{assistance_id}/disconnect. Preserves response metadata; mutations are not replayed. */
932
- disconnect(body, options = {}) {
933
- return jsonRequest(this.transport, "POST", this.path + "/disconnect", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1266
+ /** PATCH /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
1267
+ update(body, options) {
1268
+ return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
1269
+ "If-Match": options.ifMatch,
1270
+ "X-Workspace-ID": options.xWorkspaceId,
1271
+ })
934
1272
  .filter(([, value]) => value !== undefined && value !== null)
935
1273
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
936
1274
  }
937
- /** POST /api/v1/desktop-assistance/{assistance_id}/request-control. Preserves response metadata; mutations are not replayed. */
938
- requestControl(options = {}) {
939
- return jsonRequest(this.transport, "POST", this.path + "/request-control", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1275
+ get metrics() {
1276
+ return new DevicesDeviceIdMetricsResource(this.transport, this.path + "/metrics");
1277
+ }
1278
+ /** POST /api/v1/devices/{device_id}/rotate-credential. Preserves response metadata; mutations are not replayed. */
1279
+ rotateCredential(options) {
1280
+ return jsonRequest(this.transport, "POST", this.path + "/rotate-credential", undefined, Object.fromEntries(Object.entries({
1281
+ "If-Match": options.ifMatch,
1282
+ "X-Workspace-ID": options.xWorkspaceId,
1283
+ })
940
1284
  .filter(([, value]) => value !== undefined && value !== null)
941
1285
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
942
1286
  }
943
- /** POST /api/v1/desktop-assistance/{assistance_id}/view. Preserves response metadata; mutations are not replayed. */
944
- view(body, options = {}) {
945
- return jsonRequest(this.transport, "POST", this.path + "/view", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1287
+ }
1288
+ export class DevicesDeviceIdMetricsResource {
1289
+ transport;
1290
+ path;
1291
+ constructor(transport, path) {
1292
+ this.transport = transport;
1293
+ this.path = path;
1294
+ }
1295
+ /** POST /api/v1/devices/{device_id}/metrics/query. Preserves response metadata; mutations are not replayed. */
1296
+ query(body, options = {}) {
1297
+ return jsonRequest(this.transport, "POST", this.path + "/query", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
946
1298
  .filter(([, value]) => value !== undefined && value !== null)
947
- .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1299
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
948
1300
  }
949
1301
  }
950
- export class DevicesResource {
1302
+ export class EgressCredentialsResource {
951
1303
  transport;
952
1304
  path;
953
1305
  constructor(transport, path) {
954
1306
  this.transport = transport;
955
1307
  this.path = path;
956
1308
  }
957
- /** GET /api/v1/devices. Preserves response metadata; mutations are not replayed. */
1309
+ /** GET /api/v1/egress-credentials. Preserves response metadata; mutations are not replayed. */
958
1310
  list(options = {}) {
959
1311
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
960
1312
  .filter(([, value]) => value !== undefined && value !== null)
@@ -967,39 +1319,30 @@ export class DevicesResource {
967
1319
  items(options = {}) {
968
1320
  return flattenPages(this.pages(options), (value) => value);
969
1321
  }
970
- /** POST /api/v1/devices. Preserves response metadata; mutations are not replayed. */
1322
+ /** POST /api/v1/egress-credentials. Preserves response metadata; mutations are not replayed. */
971
1323
  create(body, options = {}) {
972
1324
  return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
973
1325
  .filter(([, value]) => value !== undefined && value !== null)
974
1326
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
975
1327
  }
976
1328
  ref(value) {
977
- return new DevicesDeviceIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
1329
+ return new EgressCredentialsCredentialIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
978
1330
  }
979
1331
  }
980
- export class DevicesDeviceIdResource {
1332
+ export class EgressCredentialsCredentialIdResource {
981
1333
  transport;
982
1334
  path;
983
1335
  constructor(transport, path) {
984
1336
  this.transport = transport;
985
1337
  this.path = path;
986
1338
  }
987
- /** DELETE /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
988
- delete(options) {
989
- return jsonRequest(this.transport, "DELETE", this.path, undefined, Object.fromEntries(Object.entries({
990
- "If-Match": options.ifMatch,
991
- "X-Workspace-ID": options.xWorkspaceId,
992
- })
993
- .filter(([, value]) => value !== undefined && value !== null)
994
- .map(([key, value]) => [key, String(value)])), { signal: options.signal });
995
- }
996
- /** GET /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
1339
+ /** GET /api/v1/egress-credentials/{credential_id}. Preserves response metadata; mutations are not replayed. */
997
1340
  get(options = {}) {
998
1341
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
999
1342
  .filter(([, value]) => value !== undefined && value !== null)
1000
1343
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1001
1344
  }
1002
- /** PATCH /api/v1/devices/{device_id}. Preserves response metadata; mutations are not replayed. */
1345
+ /** PATCH /api/v1/egress-credentials/{credential_id}. Preserves response metadata; mutations are not replayed. */
1003
1346
  update(body, options) {
1004
1347
  return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
1005
1348
  "If-Match": options.ifMatch,
@@ -1008,29 +1351,62 @@ export class DevicesDeviceIdResource {
1008
1351
  .filter(([, value]) => value !== undefined && value !== null)
1009
1352
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1010
1353
  }
1011
- get metrics() {
1012
- return new DevicesDeviceIdMetricsResource(this.transport, this.path + "/metrics");
1013
- }
1014
- /** POST /api/v1/devices/{device_id}/rotate-credential. Preserves response metadata; mutations are not replayed. */
1015
- rotateCredential(options) {
1016
- return jsonRequest(this.transport, "POST", this.path + "/rotate-credential", undefined, Object.fromEntries(Object.entries({
1354
+ /** POST /api/v1/egress-credentials/{credential_id}/revoke. Preserves response metadata; mutations are not replayed. */
1355
+ revoke(options) {
1356
+ return jsonRequest(this.transport, "POST", this.path + "/revoke", undefined, Object.fromEntries(Object.entries({
1017
1357
  "If-Match": options.ifMatch,
1018
1358
  "X-Workspace-ID": options.xWorkspaceId,
1019
1359
  })
1020
1360
  .filter(([, value]) => value !== undefined && value !== null)
1021
1361
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1022
1362
  }
1363
+ get sessions() {
1364
+ return new EgressCredentialsCredentialIdSessionsResource(this.transport, this.path + "/sessions");
1365
+ }
1366
+ /** POST /api/v1/egress-credentials/{credential_id}/sync. Preserves response metadata; mutations are not replayed. */
1367
+ sync(options = {}) {
1368
+ return jsonRequest(this.transport, "POST", this.path + "/sync", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1369
+ .filter(([, value]) => value !== undefined && value !== null)
1370
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1371
+ }
1372
+ get value() {
1373
+ return new EgressCredentialsCredentialIdValueResource(this.transport, this.path + "/value");
1374
+ }
1023
1375
  }
1024
- export class DevicesDeviceIdMetricsResource {
1376
+ export class EgressCredentialsCredentialIdSessionsResource {
1025
1377
  transport;
1026
1378
  path;
1027
1379
  constructor(transport, path) {
1028
1380
  this.transport = transport;
1029
1381
  this.path = path;
1030
1382
  }
1031
- /** POST /api/v1/devices/{device_id}/metrics/query. Preserves response metadata; mutations are not replayed. */
1032
- query(body, options = {}) {
1033
- return jsonRequest(this.transport, "POST", this.path + "/query", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1383
+ /** GET /api/v1/egress-credentials/{credential_id}/sessions. Preserves response metadata; mutations are not replayed. */
1384
+ list(options = {}) {
1385
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1386
+ .filter(([, value]) => value !== undefined && value !== null)
1387
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1388
+ }
1389
+ pages(options = {}) {
1390
+ const query = snapshot(options.query ?? {});
1391
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
1392
+ }
1393
+ items(options = {}) {
1394
+ return flattenPages(this.pages(options), (value) => value);
1395
+ }
1396
+ }
1397
+ export class EgressCredentialsCredentialIdValueResource {
1398
+ transport;
1399
+ path;
1400
+ constructor(transport, path) {
1401
+ this.transport = transport;
1402
+ this.path = path;
1403
+ }
1404
+ /** PUT /api/v1/egress-credentials/{credential_id}/value. Preserves response metadata; mutations are not replayed. */
1405
+ replace(body, options) {
1406
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
1407
+ "If-Match": options.ifMatch,
1408
+ "X-Workspace-ID": options.xWorkspaceId,
1409
+ })
1034
1410
  .filter(([, value]) => value !== undefined && value !== null)
1035
1411
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1036
1412
  }
@@ -1254,9 +1630,27 @@ export class EnvironmentsEnvironmentIdResource {
1254
1630
  get creation() {
1255
1631
  return new EnvironmentsEnvironmentIdCreationResource(this.transport, this.path + "/creation");
1256
1632
  }
1633
+ get credentialSessions() {
1634
+ return new EnvironmentsEnvironmentIdCredentialSessionsResource(this.transport, this.path + "/credential-sessions");
1635
+ }
1636
+ get debugHold() {
1637
+ return new EnvironmentsEnvironmentIdDebugHoldResource(this.transport, this.path + "/debug-hold");
1638
+ }
1639
+ get desktopControl() {
1640
+ return new EnvironmentsEnvironmentIdDesktopControlResource(this.transport, this.path + "/desktop-control");
1641
+ }
1257
1642
  get desktopPreview() {
1258
1643
  return new EnvironmentsEnvironmentIdDesktopPreviewResource(this.transport, this.path + "/desktop-preview");
1259
1644
  }
1645
+ /** POST /api/v1/environments/{environment_id}/desktop-viewer. Preserves response metadata; mutations are not replayed. */
1646
+ desktopViewer(body, options = {}) {
1647
+ return jsonRequest(this.transport, "POST", this.path + "/desktop-viewer", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1648
+ .filter(([, value]) => value !== undefined && value !== null)
1649
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1650
+ }
1651
+ get kubernetes() {
1652
+ return new EnvironmentsEnvironmentIdKubernetesResource(this.transport, this.path + "/kubernetes");
1653
+ }
1260
1654
  get metricsBinding() {
1261
1655
  return new EnvironmentsEnvironmentIdMetricsBindingResource(this.transport, this.path + "/metrics-binding");
1262
1656
  }
@@ -1310,6 +1704,82 @@ export class EnvironmentsEnvironmentIdCreationResource {
1310
1704
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1311
1705
  }
1312
1706
  }
1707
+ export class EnvironmentsEnvironmentIdCredentialSessionsResource {
1708
+ transport;
1709
+ path;
1710
+ constructor(transport, path) {
1711
+ this.transport = transport;
1712
+ this.path = path;
1713
+ }
1714
+ /** GET /api/v1/environments/{environment_id}/credential-sessions. Preserves response metadata; mutations are not replayed. */
1715
+ list(options = {}) {
1716
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1717
+ .filter(([, value]) => value !== undefined && value !== null)
1718
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1719
+ }
1720
+ pages(options = {}) {
1721
+ const query = snapshot(options.query ?? {});
1722
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
1723
+ }
1724
+ items(options = {}) {
1725
+ return flattenPages(this.pages(options), (value) => value);
1726
+ }
1727
+ }
1728
+ export class EnvironmentsEnvironmentIdDebugHoldResource {
1729
+ transport;
1730
+ path;
1731
+ constructor(transport, path) {
1732
+ this.transport = transport;
1733
+ this.path = path;
1734
+ }
1735
+ /** PUT /api/v1/environments/{environment_id}/debug-hold. Preserves response metadata; mutations are not replayed. */
1736
+ replace(body, options) {
1737
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
1738
+ "If-Match": options.ifMatch,
1739
+ "X-Workspace-ID": options.xWorkspaceId,
1740
+ })
1741
+ .filter(([, value]) => value !== undefined && value !== null)
1742
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1743
+ }
1744
+ }
1745
+ export class EnvironmentsEnvironmentIdDesktopControlResource {
1746
+ transport;
1747
+ path;
1748
+ constructor(transport, path) {
1749
+ this.transport = transport;
1750
+ this.path = path;
1751
+ }
1752
+ /** GET /api/v1/environments/{environment_id}/desktop-control. Preserves response metadata; mutations are not replayed. */
1753
+ get(options = {}) {
1754
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1755
+ .filter(([, value]) => value !== undefined && value !== null)
1756
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1757
+ }
1758
+ /** POST /api/v1/environments/{environment_id}/desktop-control/handback. Preserves response metadata; mutations are not replayed. */
1759
+ handback(options) {
1760
+ return jsonRequest(this.transport, "POST", this.path + "/handback", undefined, Object.fromEntries(Object.entries({
1761
+ "If-Match": options.ifMatch,
1762
+ "X-Workspace-ID": options.xWorkspaceId,
1763
+ })
1764
+ .filter(([, value]) => value !== undefined && value !== null)
1765
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1766
+ }
1767
+ /** POST /api/v1/environments/{environment_id}/desktop-control/renew. Preserves response metadata; mutations are not replayed. */
1768
+ renew(body, options = {}) {
1769
+ return jsonRequest(this.transport, "POST", this.path + "/renew", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1770
+ .filter(([, value]) => value !== undefined && value !== null)
1771
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1772
+ }
1773
+ /** POST /api/v1/environments/{environment_id}/desktop-control/takeover. Preserves response metadata; mutations are not replayed. */
1774
+ takeover(body, options) {
1775
+ return jsonRequest(this.transport, "POST", this.path + "/takeover", body, Object.fromEntries(Object.entries({
1776
+ "If-Match": options.ifMatch,
1777
+ "X-Workspace-ID": options.xWorkspaceId,
1778
+ })
1779
+ .filter(([, value]) => value !== undefined && value !== null)
1780
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1781
+ }
1782
+ }
1313
1783
  export class EnvironmentsEnvironmentIdDesktopPreviewResource {
1314
1784
  transport;
1315
1785
  path;
@@ -1328,6 +1798,48 @@ export class EnvironmentsEnvironmentIdDesktopPreviewResource {
1328
1798
  });
1329
1799
  }
1330
1800
  }
1801
+ export class EnvironmentsEnvironmentIdKubernetesResource {
1802
+ transport;
1803
+ path;
1804
+ constructor(transport, path) {
1805
+ this.transport = transport;
1806
+ this.path = path;
1807
+ }
1808
+ get diagnostics() {
1809
+ return new EnvironmentsEnvironmentIdKubernetesDiagnosticsResource(this.transport, this.path + "/diagnostics");
1810
+ }
1811
+ get logs() {
1812
+ return new EnvironmentsEnvironmentIdKubernetesLogsResource(this.transport, this.path + "/logs");
1813
+ }
1814
+ }
1815
+ export class EnvironmentsEnvironmentIdKubernetesDiagnosticsResource {
1816
+ transport;
1817
+ path;
1818
+ constructor(transport, path) {
1819
+ this.transport = transport;
1820
+ this.path = path;
1821
+ }
1822
+ /** GET /api/v1/environments/{environment_id}/kubernetes/diagnostics. Preserves response metadata; mutations are not replayed. */
1823
+ get(options = {}) {
1824
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1825
+ .filter(([, value]) => value !== undefined && value !== null)
1826
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1827
+ }
1828
+ }
1829
+ export class EnvironmentsEnvironmentIdKubernetesLogsResource {
1830
+ transport;
1831
+ path;
1832
+ constructor(transport, path) {
1833
+ this.transport = transport;
1834
+ this.path = path;
1835
+ }
1836
+ /** GET /api/v1/environments/{environment_id}/kubernetes/logs. Preserves response metadata; mutations are not replayed. */
1837
+ get(options = {}) {
1838
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1839
+ .filter(([, value]) => value !== undefined && value !== null)
1840
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1841
+ }
1842
+ }
1331
1843
  export class EnvironmentsEnvironmentIdMetricsBindingResource {
1332
1844
  transport;
1333
1845
  path;
@@ -1553,9 +2065,26 @@ export class MemoriesResource {
1553
2065
  .filter(([, value]) => value !== undefined && value !== null)
1554
2066
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1555
2067
  }
1556
- ref(value) {
1557
- return new MemoriesMemoryIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
1558
- }
2068
+ get guidancePresets() {
2069
+ return new MemoriesGuidancePresetsResource(this.transport, this.path + "/guidance-presets");
2070
+ }
2071
+ ref(value) {
2072
+ return new MemoriesMemoryIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
2073
+ }
2074
+ }
2075
+ export class MemoriesGuidancePresetsResource {
2076
+ transport;
2077
+ path;
2078
+ constructor(transport, path) {
2079
+ this.transport = transport;
2080
+ this.path = path;
2081
+ }
2082
+ /** GET /api/v1/memories/guidance-presets. Preserves response metadata; mutations are not replayed. */
2083
+ list(options = {}) {
2084
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2085
+ .filter(([, value]) => value !== undefined && value !== null)
2086
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2087
+ }
1559
2088
  }
1560
2089
  export class MemoriesMemoryIdResource {
1561
2090
  transport;
@@ -1591,6 +2120,9 @@ export class MemoriesMemoryIdResource {
1591
2120
  get files() {
1592
2121
  return new MemoriesMemoryIdFilesResource(this.transport, this.path + "/files");
1593
2122
  }
2123
+ get organization() {
2124
+ return new MemoriesMemoryIdOrganizationResource(this.transport, this.path + "/organization");
2125
+ }
1594
2126
  get records() {
1595
2127
  return new MemoriesMemoryIdRecordsResource(this.transport, this.path + "/records");
1596
2128
  }
@@ -1669,6 +2201,29 @@ export class MemoriesMemoryIdFilesPathResource {
1669
2201
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1670
2202
  }
1671
2203
  }
2204
+ export class MemoriesMemoryIdOrganizationResource {
2205
+ transport;
2206
+ path;
2207
+ constructor(transport, path) {
2208
+ this.transport = transport;
2209
+ this.path = path;
2210
+ }
2211
+ /** GET /api/v1/memories/{memory_id}/organization. Preserves response metadata; mutations are not replayed. */
2212
+ get(options = {}) {
2213
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2214
+ .filter(([, value]) => value !== undefined && value !== null)
2215
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2216
+ }
2217
+ /** PUT /api/v1/memories/{memory_id}/organization. Preserves response metadata; mutations are not replayed. */
2218
+ replace(body, options) {
2219
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
2220
+ "If-Match": options.ifMatch,
2221
+ "X-Workspace-ID": options.xWorkspaceId,
2222
+ })
2223
+ .filter(([, value]) => value !== undefined && value !== null)
2224
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2225
+ }
2226
+ }
1672
2227
  export class MemoriesMemoryIdRecordsResource {
1673
2228
  transport;
1674
2229
  path;
@@ -1778,6 +2333,130 @@ export class MemoriesMemoryIdRevisionsSeqResource {
1778
2333
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1779
2334
  }
1780
2335
  }
2336
+ export class MemoryOrganizationsResource {
2337
+ transport;
2338
+ path;
2339
+ constructor(transport, path) {
2340
+ this.transport = transport;
2341
+ this.path = path;
2342
+ }
2343
+ /** GET /api/v1/memory-organizations. Preserves response metadata; mutations are not replayed. */
2344
+ list(options = {}) {
2345
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2346
+ .filter(([, value]) => value !== undefined && value !== null)
2347
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2348
+ }
2349
+ pages(options = {}) {
2350
+ const query = snapshot(options.query ?? {});
2351
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
2352
+ }
2353
+ items(options = {}) {
2354
+ return flattenPages(this.pages(options), (value) => value);
2355
+ }
2356
+ /** POST /api/v1/memory-organizations. Preserves response metadata; mutations are not replayed. */
2357
+ create(body, options = {}) {
2358
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2359
+ .filter(([, value]) => value !== undefined && value !== null)
2360
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2361
+ }
2362
+ ref(value) {
2363
+ return new MemoryOrganizationsOrganizationIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
2364
+ }
2365
+ }
2366
+ export class MemoryOrganizationsOrganizationIdResource {
2367
+ transport;
2368
+ path;
2369
+ constructor(transport, path) {
2370
+ this.transport = transport;
2371
+ this.path = path;
2372
+ }
2373
+ /** GET /api/v1/memory-organizations/{organization_id}. Preserves response metadata; mutations are not replayed. */
2374
+ get(options = {}) {
2375
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2376
+ .filter(([, value]) => value !== undefined && value !== null)
2377
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2378
+ }
2379
+ get candidate() {
2380
+ return new MemoryOrganizationsOrganizationIdCandidateResource(this.transport, this.path + "/candidate");
2381
+ }
2382
+ }
2383
+ export class MemoryOrganizationsOrganizationIdCandidateResource {
2384
+ transport;
2385
+ path;
2386
+ constructor(transport, path) {
2387
+ this.transport = transport;
2388
+ this.path = path;
2389
+ }
2390
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate. Preserves response metadata; mutations are not replayed. */
2391
+ get(options = {}) {
2392
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2393
+ .filter(([, value]) => value !== undefined && value !== null)
2394
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2395
+ }
2396
+ /** POST /api/v1/memory-organizations/{organization_id}/candidate/apply. Preserves response metadata; mutations are not replayed. */
2397
+ apply(body, options = {}) {
2398
+ return jsonRequest(this.transport, "POST", this.path + "/apply", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2399
+ .filter(([, value]) => value !== undefined && value !== null)
2400
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2401
+ }
2402
+ get diff() {
2403
+ return new MemoryOrganizationsOrganizationIdCandidateDiffResource(this.transport, this.path + "/diff");
2404
+ }
2405
+ /** POST /api/v1/memory-organizations/{organization_id}/candidate/discard. Preserves response metadata; mutations are not replayed. */
2406
+ discard(options = {}) {
2407
+ return jsonRequest(this.transport, "POST", this.path + "/discard", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2408
+ .filter(([, value]) => value !== undefined && value !== null)
2409
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2410
+ }
2411
+ get file() {
2412
+ return new MemoryOrganizationsOrganizationIdCandidateFileResource(this.transport, this.path + "/file");
2413
+ }
2414
+ get replacement() {
2415
+ return new MemoryOrganizationsOrganizationIdCandidateReplacementResource(this.transport, this.path + "/replacement");
2416
+ }
2417
+ }
2418
+ export class MemoryOrganizationsOrganizationIdCandidateDiffResource {
2419
+ transport;
2420
+ path;
2421
+ constructor(transport, path) {
2422
+ this.transport = transport;
2423
+ this.path = path;
2424
+ }
2425
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate/diff. Preserves response metadata; mutations are not replayed. */
2426
+ get(options) {
2427
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2428
+ .filter(([, value]) => value !== undefined && value !== null)
2429
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2430
+ }
2431
+ }
2432
+ export class MemoryOrganizationsOrganizationIdCandidateFileResource {
2433
+ transport;
2434
+ path;
2435
+ constructor(transport, path) {
2436
+ this.transport = transport;
2437
+ this.path = path;
2438
+ }
2439
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate/file. Preserves response metadata; mutations are not replayed. */
2440
+ get(options) {
2441
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2442
+ .filter(([, value]) => value !== undefined && value !== null)
2443
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2444
+ }
2445
+ }
2446
+ export class MemoryOrganizationsOrganizationIdCandidateReplacementResource {
2447
+ transport;
2448
+ path;
2449
+ constructor(transport, path) {
2450
+ this.transport = transport;
2451
+ this.path = path;
2452
+ }
2453
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate/replacement. Preserves response metadata; mutations are not replayed. */
2454
+ get(options) {
2455
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2456
+ .filter(([, value]) => value !== undefined && value !== null)
2457
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2458
+ }
2459
+ }
1781
2460
  export class MemoryProvidersResource {
1782
2461
  transport;
1783
2462
  path;
@@ -2391,6 +3070,9 @@ export class OrganizationsOrganizationIdResource {
2391
3070
  .filter(([, value]) => value !== undefined && value !== null)
2392
3071
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2393
3072
  }
3073
+ get appPlugins() {
3074
+ return new OrganizationsOrganizationIdAppPluginsResource(this.transport, this.path + "/app-plugins");
3075
+ }
2394
3076
  get auditEvents() {
2395
3077
  return new OrganizationsOrganizationIdAuditEventsResource(this.transport, this.path + "/audit-events");
2396
3078
  }
@@ -2410,6 +3092,37 @@ export class OrganizationsOrganizationIdResource {
2410
3092
  return new OrganizationsOrganizationIdWorkspacesResource(this.transport, this.path + "/workspaces");
2411
3093
  }
2412
3094
  }
3095
+ export class OrganizationsOrganizationIdAppPluginsResource {
3096
+ transport;
3097
+ path;
3098
+ constructor(transport, path) {
3099
+ this.transport = transport;
3100
+ this.path = path;
3101
+ }
3102
+ /** GET /api/v1/organizations/{organization_id}/app-plugins. Preserves response metadata; mutations are not replayed. */
3103
+ list(options = {}) {
3104
+ return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
3105
+ signal: options.signal,
3106
+ });
3107
+ }
3108
+ ref(value) {
3109
+ return new OrganizationsOrganizationIdAppPluginsAppIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
3110
+ }
3111
+ }
3112
+ export class OrganizationsOrganizationIdAppPluginsAppIdResource {
3113
+ transport;
3114
+ path;
3115
+ constructor(transport, path) {
3116
+ this.transport = transport;
3117
+ this.path = path;
3118
+ }
3119
+ /** PUT /api/v1/organizations/{organization_id}/app-plugins/{app_id}. Preserves response metadata; mutations are not replayed. */
3120
+ replace(body, options) {
3121
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
3122
+ .filter(([, value]) => value !== undefined && value !== null)
3123
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3124
+ }
3125
+ }
2413
3126
  export class OrganizationsOrganizationIdAuditEventsResource {
2414
3127
  transport;
2415
3128
  path;
@@ -2706,12 +3419,6 @@ export class RunsRunIdResource {
2706
3419
  get contents() {
2707
3420
  return new RunsRunIdContentsResource(this.transport, this.path + "/contents");
2708
3421
  }
2709
- get desktopAssistance() {
2710
- return new RunsRunIdDesktopAssistanceResource(this.transport, this.path + "/desktop-assistance");
2711
- }
2712
- get desktopControl() {
2713
- return new RunsRunIdDesktopControlResource(this.transport, this.path + "/desktop-control");
2714
- }
2715
3422
  /** POST /api/v1/runs/{run_id}/fork. Preserves response metadata; mutations are not replayed. */
2716
3423
  fork(body, options) {
2717
3424
  return jsonRequest(this.transport, "POST", this.path + "/fork", body, Object.fromEntries(Object.entries({
@@ -2896,57 +3603,6 @@ export class RunsRunIdContentsContentIdResource {
2896
3603
  .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2897
3604
  }
2898
3605
  }
2899
- export class RunsRunIdDesktopAssistanceResource {
2900
- transport;
2901
- path;
2902
- constructor(transport, path) {
2903
- this.transport = transport;
2904
- this.path = path;
2905
- }
2906
- ref(value) {
2907
- return new RunsRunIdDesktopAssistanceCallIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
2908
- }
2909
- }
2910
- export class RunsRunIdDesktopAssistanceCallIdResource {
2911
- transport;
2912
- path;
2913
- constructor(transport, path) {
2914
- this.transport = transport;
2915
- this.path = path;
2916
- }
2917
- /** GET /api/v1/runs/{run_id}/desktop-assistance/{call_id}. Preserves response metadata; mutations are not replayed. */
2918
- get(options = {}) {
2919
- return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2920
- .filter(([, value]) => value !== undefined && value !== null)
2921
- .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2922
- }
2923
- }
2924
- export class RunsRunIdDesktopControlResource {
2925
- transport;
2926
- path;
2927
- constructor(transport, path) {
2928
- this.transport = transport;
2929
- this.path = path;
2930
- }
2931
- /** GET /api/v1/runs/{run_id}/desktop-control. Preserves response metadata; mutations are not replayed. */
2932
- get(options = {}) {
2933
- return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2934
- .filter(([, value]) => value !== undefined && value !== null)
2935
- .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2936
- }
2937
- /** POST /api/v1/runs/{run_id}/desktop-control. Preserves response metadata; mutations are not replayed. */
2938
- create(body, options = {}) {
2939
- return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2940
- .filter(([, value]) => value !== undefined && value !== null)
2941
- .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2942
- }
2943
- /** POST /api/v1/runs/{run_id}/desktop-control/view. Preserves response metadata; mutations are not replayed. */
2944
- view(body, options = {}) {
2945
- return jsonRequest(this.transport, "POST", this.path + "/view", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2946
- .filter(([, value]) => value !== undefined && value !== null)
2947
- .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2948
- }
2949
- }
2950
3606
  export class RunsRunIdImagesResource {
2951
3607
  transport;
2952
3608
  path;
@@ -3666,6 +4322,9 @@ export class ThreadsThreadIdResource {
3666
4322
  .filter(([, value]) => value !== undefined && value !== null)
3667
4323
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3668
4324
  }
4325
+ get browser() {
4326
+ return new ThreadsThreadIdBrowserResource(this.transport, this.path + "/browser");
4327
+ }
3669
4328
  get environments() {
3670
4329
  return new ThreadsThreadIdEnvironmentsResource(this.transport, this.path + "/environments");
3671
4330
  }
@@ -3678,6 +4337,9 @@ export class ThreadsThreadIdResource {
3678
4337
  get runs() {
3679
4338
  return new ThreadsThreadIdRunsResource(this.transport, this.path + "/runs");
3680
4339
  }
4340
+ get sessionBindings() {
4341
+ return new ThreadsThreadIdSessionBindingsResource(this.transport, this.path + "/session-bindings");
4342
+ }
3681
4343
  get stream() {
3682
4344
  return new ThreadsThreadIdStreamResource(this.transport, this.path + "/stream");
3683
4345
  }
@@ -3685,6 +4347,29 @@ export class ThreadsThreadIdResource {
3685
4347
  return new ThreadsThreadIdToolExecutionsResource(this.transport, this.path + "/tool-executions");
3686
4348
  }
3687
4349
  }
4350
+ export class ThreadsThreadIdBrowserResource {
4351
+ transport;
4352
+ path;
4353
+ constructor(transport, path) {
4354
+ this.transport = transport;
4355
+ this.path = path;
4356
+ }
4357
+ /** GET /api/v1/threads/{thread_id}/browser. Preserves response metadata; mutations are not replayed. */
4358
+ get(options = {}) {
4359
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
4360
+ .filter(([, value]) => value !== undefined && value !== null)
4361
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4362
+ }
4363
+ /** PUT /api/v1/threads/{thread_id}/browser. Preserves response metadata; mutations are not replayed. */
4364
+ replace(body, options) {
4365
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
4366
+ "If-Match": options.ifMatch,
4367
+ "X-Workspace-ID": options.xWorkspaceId,
4368
+ })
4369
+ .filter(([, value]) => value !== undefined && value !== null)
4370
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4371
+ }
4372
+ }
3688
4373
  export class ThreadsThreadIdEnvironmentsResource {
3689
4374
  transport;
3690
4375
  path;
@@ -3893,6 +4578,51 @@ export class ThreadsThreadIdRunsResource {
3893
4578
  return flattenPages(this.pages(options), (value) => value);
3894
4579
  }
3895
4580
  }
4581
+ export class ThreadsThreadIdSessionBindingsResource {
4582
+ transport;
4583
+ path;
4584
+ constructor(transport, path) {
4585
+ this.transport = transport;
4586
+ this.path = path;
4587
+ }
4588
+ ref(value) {
4589
+ return new ThreadsThreadIdSessionBindingsEnvironmentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
4590
+ }
4591
+ }
4592
+ export class ThreadsThreadIdSessionBindingsEnvironmentIdResource {
4593
+ transport;
4594
+ path;
4595
+ constructor(transport, path) {
4596
+ this.transport = transport;
4597
+ this.path = path;
4598
+ }
4599
+ ref(value) {
4600
+ return new ThreadsThreadIdSessionBindingsEnvironmentIdNameResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
4601
+ }
4602
+ }
4603
+ export class ThreadsThreadIdSessionBindingsEnvironmentIdNameResource {
4604
+ transport;
4605
+ path;
4606
+ constructor(transport, path) {
4607
+ this.transport = transport;
4608
+ this.path = path;
4609
+ }
4610
+ /** GET /api/v1/threads/{thread_id}/session-bindings/{environment_id}/{name}. Preserves response metadata; mutations are not replayed. */
4611
+ get(options = {}) {
4612
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
4613
+ .filter(([, value]) => value !== undefined && value !== null)
4614
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4615
+ }
4616
+ /** PUT /api/v1/threads/{thread_id}/session-bindings/{environment_id}/{name}. Preserves response metadata; mutations are not replayed. */
4617
+ replace(body, options) {
4618
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
4619
+ "If-Match": options.ifMatch,
4620
+ "X-Workspace-ID": options.xWorkspaceId,
4621
+ })
4622
+ .filter(([, value]) => value !== undefined && value !== null)
4623
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4624
+ }
4625
+ }
3896
4626
  export class ThreadsThreadIdStreamResource {
3897
4627
  transport;
3898
4628
  path;
@@ -4003,7 +4733,7 @@ export class ToolsetsResource {
4003
4733
  list(options = {}) {
4004
4734
  return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
4005
4735
  .filter(([, value]) => value !== undefined && value !== null)
4006
- .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4736
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
4007
4737
  }
4008
4738
  get definitions() {
4009
4739
  return new ToolsetsDefinitionsResource(this.transport, this.path + "/definitions");