@converge.ai/a13n 0.0.98 → 0.3.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.
@@ -28,6 +28,12 @@ export class ServiceResources {
28
28
  get builtinSkills() {
29
29
  return new BuiltinSkillsResource(this.transport, "/api/v1/builtin-skills");
30
30
  }
31
+ get clientEnvironments() {
32
+ return new ClientEnvironmentsResource(this.transport, "/api/v1/client-environments");
33
+ }
34
+ get cloudflareDeployments() {
35
+ return new CloudflareDeploymentsResource(this.transport, "/api/v1/cloudflare-deployments");
36
+ }
31
37
  get connections() {
32
38
  return new ConnectionsResource(this.transport, "/api/v1/connections");
33
39
  }
@@ -37,6 +43,9 @@ export class ServiceResources {
37
43
  get devices() {
38
44
  return new DevicesResource(this.transport, "/api/v1/devices");
39
45
  }
46
+ get egressCredentials() {
47
+ return new EgressCredentialsResource(this.transport, "/api/v1/egress-credentials");
48
+ }
40
49
  get environmentProviderOptions() {
41
50
  return new EnvironmentProviderOptionsResource(this.transport, "/api/v1/environment-provider-options");
42
51
  }
@@ -73,6 +82,9 @@ export class ServiceResources {
73
82
  get memories() {
74
83
  return new MemoriesResource(this.transport, "/api/v1/memories");
75
84
  }
85
+ get memoryOrganizations() {
86
+ return new MemoryOrganizationsResource(this.transport, "/api/v1/memory-organizations");
87
+ }
76
88
  get memoryProviders() {
77
89
  return new MemoryProvidersResource(this.transport, "/api/v1/memory-providers");
78
90
  }
@@ -736,6 +748,190 @@ export class BuiltinSkillsNameContentResource {
736
748
  });
737
749
  }
738
750
  }
751
+ export class ClientEnvironmentsResource {
752
+ transport;
753
+ path;
754
+ constructor(transport, path) {
755
+ this.transport = transport;
756
+ this.path = path;
757
+ }
758
+ /** POST /api/v1/client-environments. Preserves response metadata; mutations are not replayed. */
759
+ create(body, options = {}) {
760
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
761
+ .filter(([, value]) => value !== undefined && value !== null)
762
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
763
+ }
764
+ /** POST /api/v1/client-environments/connect. Preserves response metadata; mutations are not replayed. */
765
+ connect(body, options = {}) {
766
+ return jsonRequest(this.transport, "POST", this.path + "/connect", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
767
+ .filter(([, value]) => value !== undefined && value !== null)
768
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
769
+ }
770
+ get pairings() {
771
+ return new ClientEnvironmentsPairingsResource(this.transport, this.path + "/pairings");
772
+ }
773
+ ref(value) {
774
+ return new ClientEnvironmentsEnvironmentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
775
+ }
776
+ }
777
+ export class ClientEnvironmentsPairingsResource {
778
+ transport;
779
+ path;
780
+ constructor(transport, path) {
781
+ this.transport = transport;
782
+ this.path = path;
783
+ }
784
+ /** POST /api/v1/client-environments/pairings. Preserves response metadata; mutations are not replayed. */
785
+ create(options = {}) {
786
+ return jsonRequest(this.transport, "POST", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
787
+ .filter(([, value]) => value !== undefined && value !== null)
788
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
789
+ }
790
+ ref(value) {
791
+ return new ClientEnvironmentsPairingsPairingIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
792
+ }
793
+ }
794
+ export class ClientEnvironmentsPairingsPairingIdResource {
795
+ transport;
796
+ path;
797
+ constructor(transport, path) {
798
+ this.transport = transport;
799
+ this.path = path;
800
+ }
801
+ /** GET /api/v1/client-environments/pairings/{pairing_id}. Preserves response metadata; mutations are not replayed. */
802
+ get(options = {}) {
803
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
804
+ .filter(([, value]) => value !== undefined && value !== null)
805
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
806
+ }
807
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/approve. Preserves response metadata; mutations are not replayed. */
808
+ approve(body, options = {}) {
809
+ return jsonRequest(this.transport, "POST", this.path + "/approve", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
810
+ .filter(([, value]) => value !== undefined && value !== null)
811
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
812
+ }
813
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/cancel. Preserves response metadata; mutations are not replayed. */
814
+ cancel(options = {}) {
815
+ return jsonRequest(this.transport, "POST", this.path + "/cancel", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
816
+ .filter(([, value]) => value !== undefined && value !== null)
817
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
818
+ }
819
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/claim. Preserves response metadata; mutations are not replayed. */
820
+ claim(body, options = {}) {
821
+ return jsonRequest(this.transport, "POST", this.path + "/claim", body, undefined, { signal: options.signal });
822
+ }
823
+ /** POST /api/v1/client-environments/pairings/{pairing_id}/recognize. Preserves response metadata; mutations are not replayed. */
824
+ recognize(body, options = {}) {
825
+ return jsonRequest(this.transport, "POST", this.path + "/recognize", body, undefined, { signal: options.signal });
826
+ }
827
+ }
828
+ export class ClientEnvironmentsEnvironmentIdResource {
829
+ transport;
830
+ path;
831
+ constructor(transport, path) {
832
+ this.transport = transport;
833
+ this.path = path;
834
+ }
835
+ /** GET /api/v1/client-environments/{environment_id}. Preserves response metadata; mutations are not replayed. */
836
+ get(options = {}) {
837
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
838
+ .filter(([, value]) => value !== undefined && value !== null)
839
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
840
+ }
841
+ /** POST /api/v1/client-environments/{environment_id}/revoke-credential. Preserves response metadata; mutations are not replayed. */
842
+ revokeCredential(options) {
843
+ return jsonRequest(this.transport, "POST", this.path + "/revoke-credential", undefined, Object.fromEntries(Object.entries({
844
+ "If-Match": options.ifMatch,
845
+ "X-Workspace-ID": options.xWorkspaceId,
846
+ })
847
+ .filter(([, value]) => value !== undefined && value !== null)
848
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
849
+ }
850
+ /** POST /api/v1/client-environments/{environment_id}/rotate-credential. Preserves response metadata; mutations are not replayed. */
851
+ rotateCredential(options) {
852
+ return jsonRequest(this.transport, "POST", this.path + "/rotate-credential", undefined, Object.fromEntries(Object.entries({
853
+ "If-Match": options.ifMatch,
854
+ "X-Workspace-ID": options.xWorkspaceId,
855
+ })
856
+ .filter(([, value]) => value !== undefined && value !== null)
857
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
858
+ }
859
+ get status() {
860
+ return new ClientEnvironmentsEnvironmentIdStatusResource(this.transport, this.path + "/status");
861
+ }
862
+ }
863
+ export class ClientEnvironmentsEnvironmentIdStatusResource {
864
+ transport;
865
+ path;
866
+ constructor(transport, path) {
867
+ this.transport = transport;
868
+ this.path = path;
869
+ }
870
+ /** PATCH /api/v1/client-environments/{environment_id}/status. Preserves response metadata; mutations are not replayed. */
871
+ update(body, options) {
872
+ return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
873
+ "If-Match": options.ifMatch,
874
+ "X-Workspace-ID": options.xWorkspaceId,
875
+ })
876
+ .filter(([, value]) => value !== undefined && value !== null)
877
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
878
+ }
879
+ }
880
+ export class CloudflareDeploymentsResource {
881
+ transport;
882
+ path;
883
+ constructor(transport, path) {
884
+ this.transport = transport;
885
+ this.path = path;
886
+ }
887
+ /** GET /api/v1/cloudflare-deployments. Preserves response metadata; mutations are not replayed. */
888
+ list(options = {}) {
889
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
890
+ .filter(([, value]) => value !== undefined && value !== null)
891
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
892
+ }
893
+ /** POST /api/v1/cloudflare-deployments. Preserves response metadata; mutations are not replayed. */
894
+ create(body, options = {}) {
895
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
896
+ .filter(([, value]) => value !== undefined && value !== null)
897
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
898
+ }
899
+ ref(value) {
900
+ return new CloudflareDeploymentsDeploymentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
901
+ }
902
+ }
903
+ export class CloudflareDeploymentsDeploymentIdResource {
904
+ transport;
905
+ path;
906
+ constructor(transport, path) {
907
+ this.transport = transport;
908
+ this.path = path;
909
+ }
910
+ /** GET /api/v1/cloudflare-deployments/{deployment_id}. Preserves response metadata; mutations are not replayed. */
911
+ get(options = {}) {
912
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
913
+ .filter(([, value]) => value !== undefined && value !== null)
914
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
915
+ }
916
+ /** POST /api/v1/cloudflare-deployments/{deployment_id}/retire. Preserves response metadata; mutations are not replayed. */
917
+ retire(options) {
918
+ return jsonRequest(this.transport, "POST", this.path + "/retire", undefined, Object.fromEntries(Object.entries({
919
+ "If-Match": options.ifMatch,
920
+ "X-Workspace-ID": options.xWorkspaceId,
921
+ })
922
+ .filter(([, value]) => value !== undefined && value !== null)
923
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
924
+ }
925
+ /** POST /api/v1/cloudflare-deployments/{deployment_id}/retry. Preserves response metadata; mutations are not replayed. */
926
+ retry(body, options) {
927
+ return jsonRequest(this.transport, "POST", this.path + "/retry", body, Object.fromEntries(Object.entries({
928
+ "If-Match": options.ifMatch,
929
+ "X-Workspace-ID": options.xWorkspaceId,
930
+ })
931
+ .filter(([, value]) => value !== undefined && value !== null)
932
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
933
+ }
934
+ }
739
935
  export class ConnectionsResource {
740
936
  transport;
741
937
  path;
@@ -1161,6 +1357,118 @@ export class DevicesDeviceIdMetricsResource {
1161
1357
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1162
1358
  }
1163
1359
  }
1360
+ export class EgressCredentialsResource {
1361
+ transport;
1362
+ path;
1363
+ constructor(transport, path) {
1364
+ this.transport = transport;
1365
+ this.path = path;
1366
+ }
1367
+ /** GET /api/v1/egress-credentials. Preserves response metadata; mutations are not replayed. */
1368
+ list(options = {}) {
1369
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1370
+ .filter(([, value]) => value !== undefined && value !== null)
1371
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1372
+ }
1373
+ pages(options = {}) {
1374
+ const query = snapshot(options.query ?? {});
1375
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
1376
+ }
1377
+ items(options = {}) {
1378
+ return flattenPages(this.pages(options), (value) => value);
1379
+ }
1380
+ /** POST /api/v1/egress-credentials. Preserves response metadata; mutations are not replayed. */
1381
+ create(body, options = {}) {
1382
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1383
+ .filter(([, value]) => value !== undefined && value !== null)
1384
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1385
+ }
1386
+ ref(value) {
1387
+ return new EgressCredentialsCredentialIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
1388
+ }
1389
+ }
1390
+ export class EgressCredentialsCredentialIdResource {
1391
+ transport;
1392
+ path;
1393
+ constructor(transport, path) {
1394
+ this.transport = transport;
1395
+ this.path = path;
1396
+ }
1397
+ /** GET /api/v1/egress-credentials/{credential_id}. Preserves response metadata; mutations are not replayed. */
1398
+ get(options = {}) {
1399
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1400
+ .filter(([, value]) => value !== undefined && value !== null)
1401
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1402
+ }
1403
+ /** PATCH /api/v1/egress-credentials/{credential_id}. Preserves response metadata; mutations are not replayed. */
1404
+ update(body, options) {
1405
+ return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
1406
+ "If-Match": options.ifMatch,
1407
+ "X-Workspace-ID": options.xWorkspaceId,
1408
+ })
1409
+ .filter(([, value]) => value !== undefined && value !== null)
1410
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1411
+ }
1412
+ /** POST /api/v1/egress-credentials/{credential_id}/revoke. Preserves response metadata; mutations are not replayed. */
1413
+ revoke(options) {
1414
+ return jsonRequest(this.transport, "POST", this.path + "/revoke", undefined, Object.fromEntries(Object.entries({
1415
+ "If-Match": options.ifMatch,
1416
+ "X-Workspace-ID": options.xWorkspaceId,
1417
+ })
1418
+ .filter(([, value]) => value !== undefined && value !== null)
1419
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1420
+ }
1421
+ get sessions() {
1422
+ return new EgressCredentialsCredentialIdSessionsResource(this.transport, this.path + "/sessions");
1423
+ }
1424
+ /** POST /api/v1/egress-credentials/{credential_id}/sync. Preserves response metadata; mutations are not replayed. */
1425
+ sync(options = {}) {
1426
+ return jsonRequest(this.transport, "POST", this.path + "/sync", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1427
+ .filter(([, value]) => value !== undefined && value !== null)
1428
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1429
+ }
1430
+ get value() {
1431
+ return new EgressCredentialsCredentialIdValueResource(this.transport, this.path + "/value");
1432
+ }
1433
+ }
1434
+ export class EgressCredentialsCredentialIdSessionsResource {
1435
+ transport;
1436
+ path;
1437
+ constructor(transport, path) {
1438
+ this.transport = transport;
1439
+ this.path = path;
1440
+ }
1441
+ /** GET /api/v1/egress-credentials/{credential_id}/sessions. Preserves response metadata; mutations are not replayed. */
1442
+ list(options = {}) {
1443
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1444
+ .filter(([, value]) => value !== undefined && value !== null)
1445
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1446
+ }
1447
+ pages(options = {}) {
1448
+ const query = snapshot(options.query ?? {});
1449
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
1450
+ }
1451
+ items(options = {}) {
1452
+ return flattenPages(this.pages(options), (value) => value);
1453
+ }
1454
+ }
1455
+ export class EgressCredentialsCredentialIdValueResource {
1456
+ transport;
1457
+ path;
1458
+ constructor(transport, path) {
1459
+ this.transport = transport;
1460
+ this.path = path;
1461
+ }
1462
+ /** PUT /api/v1/egress-credentials/{credential_id}/value. Preserves response metadata; mutations are not replayed. */
1463
+ replace(body, options) {
1464
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
1465
+ "If-Match": options.ifMatch,
1466
+ "X-Workspace-ID": options.xWorkspaceId,
1467
+ })
1468
+ .filter(([, value]) => value !== undefined && value !== null)
1469
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1470
+ }
1471
+ }
1164
1472
  export class EnvironmentProviderOptionsResource {
1165
1473
  transport;
1166
1474
  path;
@@ -1380,6 +1688,12 @@ export class EnvironmentsEnvironmentIdResource {
1380
1688
  get creation() {
1381
1689
  return new EnvironmentsEnvironmentIdCreationResource(this.transport, this.path + "/creation");
1382
1690
  }
1691
+ get credentialSessions() {
1692
+ return new EnvironmentsEnvironmentIdCredentialSessionsResource(this.transport, this.path + "/credential-sessions");
1693
+ }
1694
+ get debugHold() {
1695
+ return new EnvironmentsEnvironmentIdDebugHoldResource(this.transport, this.path + "/debug-hold");
1696
+ }
1383
1697
  get desktopControl() {
1384
1698
  return new EnvironmentsEnvironmentIdDesktopControlResource(this.transport, this.path + "/desktop-control");
1385
1699
  }
@@ -1392,6 +1706,9 @@ export class EnvironmentsEnvironmentIdResource {
1392
1706
  .filter(([, value]) => value !== undefined && value !== null)
1393
1707
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1394
1708
  }
1709
+ get kubernetes() {
1710
+ return new EnvironmentsEnvironmentIdKubernetesResource(this.transport, this.path + "/kubernetes");
1711
+ }
1395
1712
  get metricsBinding() {
1396
1713
  return new EnvironmentsEnvironmentIdMetricsBindingResource(this.transport, this.path + "/metrics-binding");
1397
1714
  }
@@ -1445,6 +1762,44 @@ export class EnvironmentsEnvironmentIdCreationResource {
1445
1762
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1446
1763
  }
1447
1764
  }
1765
+ export class EnvironmentsEnvironmentIdCredentialSessionsResource {
1766
+ transport;
1767
+ path;
1768
+ constructor(transport, path) {
1769
+ this.transport = transport;
1770
+ this.path = path;
1771
+ }
1772
+ /** GET /api/v1/environments/{environment_id}/credential-sessions. Preserves response metadata; mutations are not replayed. */
1773
+ list(options = {}) {
1774
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1775
+ .filter(([, value]) => value !== undefined && value !== null)
1776
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1777
+ }
1778
+ pages(options = {}) {
1779
+ const query = snapshot(options.query ?? {});
1780
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
1781
+ }
1782
+ items(options = {}) {
1783
+ return flattenPages(this.pages(options), (value) => value);
1784
+ }
1785
+ }
1786
+ export class EnvironmentsEnvironmentIdDebugHoldResource {
1787
+ transport;
1788
+ path;
1789
+ constructor(transport, path) {
1790
+ this.transport = transport;
1791
+ this.path = path;
1792
+ }
1793
+ /** PUT /api/v1/environments/{environment_id}/debug-hold. Preserves response metadata; mutations are not replayed. */
1794
+ replace(body, options) {
1795
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
1796
+ "If-Match": options.ifMatch,
1797
+ "X-Workspace-ID": options.xWorkspaceId,
1798
+ })
1799
+ .filter(([, value]) => value !== undefined && value !== null)
1800
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1801
+ }
1802
+ }
1448
1803
  export class EnvironmentsEnvironmentIdDesktopControlResource {
1449
1804
  transport;
1450
1805
  path;
@@ -1501,6 +1856,48 @@ export class EnvironmentsEnvironmentIdDesktopPreviewResource {
1501
1856
  });
1502
1857
  }
1503
1858
  }
1859
+ export class EnvironmentsEnvironmentIdKubernetesResource {
1860
+ transport;
1861
+ path;
1862
+ constructor(transport, path) {
1863
+ this.transport = transport;
1864
+ this.path = path;
1865
+ }
1866
+ get diagnostics() {
1867
+ return new EnvironmentsEnvironmentIdKubernetesDiagnosticsResource(this.transport, this.path + "/diagnostics");
1868
+ }
1869
+ get logs() {
1870
+ return new EnvironmentsEnvironmentIdKubernetesLogsResource(this.transport, this.path + "/logs");
1871
+ }
1872
+ }
1873
+ export class EnvironmentsEnvironmentIdKubernetesDiagnosticsResource {
1874
+ transport;
1875
+ path;
1876
+ constructor(transport, path) {
1877
+ this.transport = transport;
1878
+ this.path = path;
1879
+ }
1880
+ /** GET /api/v1/environments/{environment_id}/kubernetes/diagnostics. Preserves response metadata; mutations are not replayed. */
1881
+ get(options = {}) {
1882
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1883
+ .filter(([, value]) => value !== undefined && value !== null)
1884
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1885
+ }
1886
+ }
1887
+ export class EnvironmentsEnvironmentIdKubernetesLogsResource {
1888
+ transport;
1889
+ path;
1890
+ constructor(transport, path) {
1891
+ this.transport = transport;
1892
+ this.path = path;
1893
+ }
1894
+ /** GET /api/v1/environments/{environment_id}/kubernetes/logs. Preserves response metadata; mutations are not replayed. */
1895
+ get(options = {}) {
1896
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1897
+ .filter(([, value]) => value !== undefined && value !== null)
1898
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1899
+ }
1900
+ }
1504
1901
  export class EnvironmentsEnvironmentIdMetricsBindingResource {
1505
1902
  transport;
1506
1903
  path;
@@ -1726,10 +2123,27 @@ export class MemoriesResource {
1726
2123
  .filter(([, value]) => value !== undefined && value !== null)
1727
2124
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1728
2125
  }
2126
+ get guidancePresets() {
2127
+ return new MemoriesGuidancePresetsResource(this.transport, this.path + "/guidance-presets");
2128
+ }
1729
2129
  ref(value) {
1730
2130
  return new MemoriesMemoryIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
1731
2131
  }
1732
2132
  }
2133
+ export class MemoriesGuidancePresetsResource {
2134
+ transport;
2135
+ path;
2136
+ constructor(transport, path) {
2137
+ this.transport = transport;
2138
+ this.path = path;
2139
+ }
2140
+ /** GET /api/v1/memories/guidance-presets. Preserves response metadata; mutations are not replayed. */
2141
+ list(options = {}) {
2142
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2143
+ .filter(([, value]) => value !== undefined && value !== null)
2144
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2145
+ }
2146
+ }
1733
2147
  export class MemoriesMemoryIdResource {
1734
2148
  transport;
1735
2149
  path;
@@ -1764,6 +2178,9 @@ export class MemoriesMemoryIdResource {
1764
2178
  get files() {
1765
2179
  return new MemoriesMemoryIdFilesResource(this.transport, this.path + "/files");
1766
2180
  }
2181
+ get organization() {
2182
+ return new MemoriesMemoryIdOrganizationResource(this.transport, this.path + "/organization");
2183
+ }
1767
2184
  get records() {
1768
2185
  return new MemoriesMemoryIdRecordsResource(this.transport, this.path + "/records");
1769
2186
  }
@@ -1842,6 +2259,29 @@ export class MemoriesMemoryIdFilesPathResource {
1842
2259
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1843
2260
  }
1844
2261
  }
2262
+ export class MemoriesMemoryIdOrganizationResource {
2263
+ transport;
2264
+ path;
2265
+ constructor(transport, path) {
2266
+ this.transport = transport;
2267
+ this.path = path;
2268
+ }
2269
+ /** GET /api/v1/memories/{memory_id}/organization. Preserves response metadata; mutations are not replayed. */
2270
+ get(options = {}) {
2271
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2272
+ .filter(([, value]) => value !== undefined && value !== null)
2273
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2274
+ }
2275
+ /** PUT /api/v1/memories/{memory_id}/organization. Preserves response metadata; mutations are not replayed. */
2276
+ replace(body, options) {
2277
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
2278
+ "If-Match": options.ifMatch,
2279
+ "X-Workspace-ID": options.xWorkspaceId,
2280
+ })
2281
+ .filter(([, value]) => value !== undefined && value !== null)
2282
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2283
+ }
2284
+ }
1845
2285
  export class MemoriesMemoryIdRecordsResource {
1846
2286
  transport;
1847
2287
  path;
@@ -1951,6 +2391,130 @@ export class MemoriesMemoryIdRevisionsSeqResource {
1951
2391
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1952
2392
  }
1953
2393
  }
2394
+ export class MemoryOrganizationsResource {
2395
+ transport;
2396
+ path;
2397
+ constructor(transport, path) {
2398
+ this.transport = transport;
2399
+ this.path = path;
2400
+ }
2401
+ /** GET /api/v1/memory-organizations. Preserves response metadata; mutations are not replayed. */
2402
+ list(options = {}) {
2403
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2404
+ .filter(([, value]) => value !== undefined && value !== null)
2405
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2406
+ }
2407
+ pages(options = {}) {
2408
+ const query = snapshot(options.query ?? {});
2409
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
2410
+ }
2411
+ items(options = {}) {
2412
+ return flattenPages(this.pages(options), (value) => value);
2413
+ }
2414
+ /** POST /api/v1/memory-organizations. Preserves response metadata; mutations are not replayed. */
2415
+ create(body, options = {}) {
2416
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2417
+ .filter(([, value]) => value !== undefined && value !== null)
2418
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2419
+ }
2420
+ ref(value) {
2421
+ return new MemoryOrganizationsOrganizationIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
2422
+ }
2423
+ }
2424
+ export class MemoryOrganizationsOrganizationIdResource {
2425
+ transport;
2426
+ path;
2427
+ constructor(transport, path) {
2428
+ this.transport = transport;
2429
+ this.path = path;
2430
+ }
2431
+ /** GET /api/v1/memory-organizations/{organization_id}. Preserves response metadata; mutations are not replayed. */
2432
+ get(options = {}) {
2433
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2434
+ .filter(([, value]) => value !== undefined && value !== null)
2435
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2436
+ }
2437
+ get candidate() {
2438
+ return new MemoryOrganizationsOrganizationIdCandidateResource(this.transport, this.path + "/candidate");
2439
+ }
2440
+ }
2441
+ export class MemoryOrganizationsOrganizationIdCandidateResource {
2442
+ transport;
2443
+ path;
2444
+ constructor(transport, path) {
2445
+ this.transport = transport;
2446
+ this.path = path;
2447
+ }
2448
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate. Preserves response metadata; mutations are not replayed. */
2449
+ get(options = {}) {
2450
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2451
+ .filter(([, value]) => value !== undefined && value !== null)
2452
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2453
+ }
2454
+ /** POST /api/v1/memory-organizations/{organization_id}/candidate/apply. Preserves response metadata; mutations are not replayed. */
2455
+ apply(body, options = {}) {
2456
+ return jsonRequest(this.transport, "POST", this.path + "/apply", body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2457
+ .filter(([, value]) => value !== undefined && value !== null)
2458
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2459
+ }
2460
+ get diff() {
2461
+ return new MemoryOrganizationsOrganizationIdCandidateDiffResource(this.transport, this.path + "/diff");
2462
+ }
2463
+ /** POST /api/v1/memory-organizations/{organization_id}/candidate/discard. Preserves response metadata; mutations are not replayed. */
2464
+ discard(options = {}) {
2465
+ return jsonRequest(this.transport, "POST", this.path + "/discard", undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2466
+ .filter(([, value]) => value !== undefined && value !== null)
2467
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2468
+ }
2469
+ get file() {
2470
+ return new MemoryOrganizationsOrganizationIdCandidateFileResource(this.transport, this.path + "/file");
2471
+ }
2472
+ get replacement() {
2473
+ return new MemoryOrganizationsOrganizationIdCandidateReplacementResource(this.transport, this.path + "/replacement");
2474
+ }
2475
+ }
2476
+ export class MemoryOrganizationsOrganizationIdCandidateDiffResource {
2477
+ transport;
2478
+ path;
2479
+ constructor(transport, path) {
2480
+ this.transport = transport;
2481
+ this.path = path;
2482
+ }
2483
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate/diff. Preserves response metadata; mutations are not replayed. */
2484
+ get(options) {
2485
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2486
+ .filter(([, value]) => value !== undefined && value !== null)
2487
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2488
+ }
2489
+ }
2490
+ export class MemoryOrganizationsOrganizationIdCandidateFileResource {
2491
+ transport;
2492
+ path;
2493
+ constructor(transport, path) {
2494
+ this.transport = transport;
2495
+ this.path = path;
2496
+ }
2497
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate/file. Preserves response metadata; mutations are not replayed. */
2498
+ get(options) {
2499
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2500
+ .filter(([, value]) => value !== undefined && value !== null)
2501
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2502
+ }
2503
+ }
2504
+ export class MemoryOrganizationsOrganizationIdCandidateReplacementResource {
2505
+ transport;
2506
+ path;
2507
+ constructor(transport, path) {
2508
+ this.transport = transport;
2509
+ this.path = path;
2510
+ }
2511
+ /** GET /api/v1/memory-organizations/{organization_id}/candidate/replacement. Preserves response metadata; mutations are not replayed. */
2512
+ get(options) {
2513
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
2514
+ .filter(([, value]) => value !== undefined && value !== null)
2515
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
2516
+ }
2517
+ }
1954
2518
  export class MemoryProvidersResource {
1955
2519
  transport;
1956
2520
  path;
@@ -2564,6 +3128,9 @@ export class OrganizationsOrganizationIdResource {
2564
3128
  .filter(([, value]) => value !== undefined && value !== null)
2565
3129
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2566
3130
  }
3131
+ get appPlugins() {
3132
+ return new OrganizationsOrganizationIdAppPluginsResource(this.transport, this.path + "/app-plugins");
3133
+ }
2567
3134
  get auditEvents() {
2568
3135
  return new OrganizationsOrganizationIdAuditEventsResource(this.transport, this.path + "/audit-events");
2569
3136
  }
@@ -2583,6 +3150,37 @@ export class OrganizationsOrganizationIdResource {
2583
3150
  return new OrganizationsOrganizationIdWorkspacesResource(this.transport, this.path + "/workspaces");
2584
3151
  }
2585
3152
  }
3153
+ export class OrganizationsOrganizationIdAppPluginsResource {
3154
+ transport;
3155
+ path;
3156
+ constructor(transport, path) {
3157
+ this.transport = transport;
3158
+ this.path = path;
3159
+ }
3160
+ /** GET /api/v1/organizations/{organization_id}/app-plugins. Preserves response metadata; mutations are not replayed. */
3161
+ list(options = {}) {
3162
+ return jsonRequest(this.transport, "GET", this.path, undefined, undefined, {
3163
+ signal: options.signal,
3164
+ });
3165
+ }
3166
+ ref(value) {
3167
+ return new OrganizationsOrganizationIdAppPluginsAppIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
3168
+ }
3169
+ }
3170
+ export class OrganizationsOrganizationIdAppPluginsAppIdResource {
3171
+ transport;
3172
+ path;
3173
+ constructor(transport, path) {
3174
+ this.transport = transport;
3175
+ this.path = path;
3176
+ }
3177
+ /** PUT /api/v1/organizations/{organization_id}/app-plugins/{app_id}. Preserves response metadata; mutations are not replayed. */
3178
+ replace(body, options) {
3179
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({ "If-Match": options.ifMatch })
3180
+ .filter(([, value]) => value !== undefined && value !== null)
3181
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
3182
+ }
3183
+ }
2586
3184
  export class OrganizationsOrganizationIdAuditEventsResource {
2587
3185
  transport;
2588
3186
  path;
@@ -3797,6 +4395,9 @@ export class ThreadsThreadIdResource {
3797
4395
  get runs() {
3798
4396
  return new ThreadsThreadIdRunsResource(this.transport, this.path + "/runs");
3799
4397
  }
4398
+ get sessionBindings() {
4399
+ return new ThreadsThreadIdSessionBindingsResource(this.transport, this.path + "/session-bindings");
4400
+ }
3800
4401
  get stream() {
3801
4402
  return new ThreadsThreadIdStreamResource(this.transport, this.path + "/stream");
3802
4403
  }
@@ -4035,6 +4636,51 @@ export class ThreadsThreadIdRunsResource {
4035
4636
  return flattenPages(this.pages(options), (value) => value);
4036
4637
  }
4037
4638
  }
4639
+ export class ThreadsThreadIdSessionBindingsResource {
4640
+ transport;
4641
+ path;
4642
+ constructor(transport, path) {
4643
+ this.transport = transport;
4644
+ this.path = path;
4645
+ }
4646
+ ref(value) {
4647
+ return new ThreadsThreadIdSessionBindingsEnvironmentIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
4648
+ }
4649
+ }
4650
+ export class ThreadsThreadIdSessionBindingsEnvironmentIdResource {
4651
+ transport;
4652
+ path;
4653
+ constructor(transport, path) {
4654
+ this.transport = transport;
4655
+ this.path = path;
4656
+ }
4657
+ ref(value) {
4658
+ return new ThreadsThreadIdSessionBindingsEnvironmentIdNameResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
4659
+ }
4660
+ }
4661
+ export class ThreadsThreadIdSessionBindingsEnvironmentIdNameResource {
4662
+ transport;
4663
+ path;
4664
+ constructor(transport, path) {
4665
+ this.transport = transport;
4666
+ this.path = path;
4667
+ }
4668
+ /** GET /api/v1/threads/{thread_id}/session-bindings/{environment_id}/{name}. Preserves response metadata; mutations are not replayed. */
4669
+ get(options = {}) {
4670
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
4671
+ .filter(([, value]) => value !== undefined && value !== null)
4672
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4673
+ }
4674
+ /** PUT /api/v1/threads/{thread_id}/session-bindings/{environment_id}/{name}. Preserves response metadata; mutations are not replayed. */
4675
+ replace(body, options) {
4676
+ return jsonRequest(this.transport, "PUT", this.path, body, Object.fromEntries(Object.entries({
4677
+ "If-Match": options.ifMatch,
4678
+ "X-Workspace-ID": options.xWorkspaceId,
4679
+ })
4680
+ .filter(([, value]) => value !== undefined && value !== null)
4681
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
4682
+ }
4683
+ }
4038
4684
  export class ThreadsThreadIdStreamResource {
4039
4685
  transport;
4040
4686
  path;