@converge.ai/a13n 0.0.98 → 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.
@@ -28,6 +28,9 @@ 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
+ }
31
34
  get connections() {
32
35
  return new ConnectionsResource(this.transport, "/api/v1/connections");
33
36
  }
@@ -37,6 +40,9 @@ export class ServiceResources {
37
40
  get devices() {
38
41
  return new DevicesResource(this.transport, "/api/v1/devices");
39
42
  }
43
+ get egressCredentials() {
44
+ return new EgressCredentialsResource(this.transport, "/api/v1/egress-credentials");
45
+ }
40
46
  get environmentProviderOptions() {
41
47
  return new EnvironmentProviderOptionsResource(this.transport, "/api/v1/environment-provider-options");
42
48
  }
@@ -73,6 +79,9 @@ export class ServiceResources {
73
79
  get memories() {
74
80
  return new MemoriesResource(this.transport, "/api/v1/memories");
75
81
  }
82
+ get memoryOrganizations() {
83
+ return new MemoryOrganizationsResource(this.transport, "/api/v1/memory-organizations");
84
+ }
76
85
  get memoryProviders() {
77
86
  return new MemoryProvidersResource(this.transport, "/api/v1/memory-providers");
78
87
  }
@@ -736,6 +745,135 @@ export class BuiltinSkillsNameContentResource {
736
745
  });
737
746
  }
738
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
+ }
739
877
  export class ConnectionsResource {
740
878
  transport;
741
879
  path;
@@ -1161,6 +1299,118 @@ export class DevicesDeviceIdMetricsResource {
1161
1299
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1162
1300
  }
1163
1301
  }
1302
+ export class EgressCredentialsResource {
1303
+ transport;
1304
+ path;
1305
+ constructor(transport, path) {
1306
+ this.transport = transport;
1307
+ this.path = path;
1308
+ }
1309
+ /** GET /api/v1/egress-credentials. Preserves response metadata; mutations are not replayed. */
1310
+ list(options = {}) {
1311
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1312
+ .filter(([, value]) => value !== undefined && value !== null)
1313
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal, query: options.query });
1314
+ }
1315
+ pages(options = {}) {
1316
+ const query = snapshot(options.query ?? {});
1317
+ return new PageIterator(query.cursor, (cursor) => this.list({ ...options, query: withCursor(query, cursor) }), (value) => value);
1318
+ }
1319
+ items(options = {}) {
1320
+ return flattenPages(this.pages(options), (value) => value);
1321
+ }
1322
+ /** POST /api/v1/egress-credentials. Preserves response metadata; mutations are not replayed. */
1323
+ create(body, options = {}) {
1324
+ return jsonRequest(this.transport, "POST", this.path, body, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1325
+ .filter(([, value]) => value !== undefined && value !== null)
1326
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1327
+ }
1328
+ ref(value) {
1329
+ return new EgressCredentialsCredentialIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
1330
+ }
1331
+ }
1332
+ export class EgressCredentialsCredentialIdResource {
1333
+ transport;
1334
+ path;
1335
+ constructor(transport, path) {
1336
+ this.transport = transport;
1337
+ this.path = path;
1338
+ }
1339
+ /** GET /api/v1/egress-credentials/{credential_id}. Preserves response metadata; mutations are not replayed. */
1340
+ get(options = {}) {
1341
+ return jsonRequest(this.transport, "GET", this.path, undefined, Object.fromEntries(Object.entries({ "X-Workspace-ID": options.xWorkspaceId })
1342
+ .filter(([, value]) => value !== undefined && value !== null)
1343
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1344
+ }
1345
+ /** PATCH /api/v1/egress-credentials/{credential_id}. Preserves response metadata; mutations are not replayed. */
1346
+ update(body, options) {
1347
+ return jsonRequest(this.transport, "PATCH", this.path, body, Object.fromEntries(Object.entries({
1348
+ "If-Match": options.ifMatch,
1349
+ "X-Workspace-ID": options.xWorkspaceId,
1350
+ })
1351
+ .filter(([, value]) => value !== undefined && value !== null)
1352
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1353
+ }
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({
1357
+ "If-Match": options.ifMatch,
1358
+ "X-Workspace-ID": options.xWorkspaceId,
1359
+ })
1360
+ .filter(([, value]) => value !== undefined && value !== null)
1361
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
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
+ }
1375
+ }
1376
+ export class EgressCredentialsCredentialIdSessionsResource {
1377
+ transport;
1378
+ path;
1379
+ constructor(transport, path) {
1380
+ this.transport = transport;
1381
+ this.path = path;
1382
+ }
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
+ })
1410
+ .filter(([, value]) => value !== undefined && value !== null)
1411
+ .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1412
+ }
1413
+ }
1164
1414
  export class EnvironmentProviderOptionsResource {
1165
1415
  transport;
1166
1416
  path;
@@ -1380,6 +1630,12 @@ export class EnvironmentsEnvironmentIdResource {
1380
1630
  get creation() {
1381
1631
  return new EnvironmentsEnvironmentIdCreationResource(this.transport, this.path + "/creation");
1382
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
+ }
1383
1639
  get desktopControl() {
1384
1640
  return new EnvironmentsEnvironmentIdDesktopControlResource(this.transport, this.path + "/desktop-control");
1385
1641
  }
@@ -1392,6 +1648,9 @@ export class EnvironmentsEnvironmentIdResource {
1392
1648
  .filter(([, value]) => value !== undefined && value !== null)
1393
1649
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1394
1650
  }
1651
+ get kubernetes() {
1652
+ return new EnvironmentsEnvironmentIdKubernetesResource(this.transport, this.path + "/kubernetes");
1653
+ }
1395
1654
  get metricsBinding() {
1396
1655
  return new EnvironmentsEnvironmentIdMetricsBindingResource(this.transport, this.path + "/metrics-binding");
1397
1656
  }
@@ -1445,6 +1704,44 @@ export class EnvironmentsEnvironmentIdCreationResource {
1445
1704
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1446
1705
  }
1447
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
+ }
1448
1745
  export class EnvironmentsEnvironmentIdDesktopControlResource {
1449
1746
  transport;
1450
1747
  path;
@@ -1501,6 +1798,48 @@ export class EnvironmentsEnvironmentIdDesktopPreviewResource {
1501
1798
  });
1502
1799
  }
1503
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
+ }
1504
1843
  export class EnvironmentsEnvironmentIdMetricsBindingResource {
1505
1844
  transport;
1506
1845
  path;
@@ -1726,10 +2065,27 @@ export class MemoriesResource {
1726
2065
  .filter(([, value]) => value !== undefined && value !== null)
1727
2066
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1728
2067
  }
2068
+ get guidancePresets() {
2069
+ return new MemoriesGuidancePresetsResource(this.transport, this.path + "/guidance-presets");
2070
+ }
1729
2071
  ref(value) {
1730
2072
  return new MemoriesMemoryIdResource(this.transport, this.path + "/" + encodeURIComponent(selector(String(value))));
1731
2073
  }
1732
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
+ }
2088
+ }
1733
2089
  export class MemoriesMemoryIdResource {
1734
2090
  transport;
1735
2091
  path;
@@ -1764,6 +2120,9 @@ export class MemoriesMemoryIdResource {
1764
2120
  get files() {
1765
2121
  return new MemoriesMemoryIdFilesResource(this.transport, this.path + "/files");
1766
2122
  }
2123
+ get organization() {
2124
+ return new MemoriesMemoryIdOrganizationResource(this.transport, this.path + "/organization");
2125
+ }
1767
2126
  get records() {
1768
2127
  return new MemoriesMemoryIdRecordsResource(this.transport, this.path + "/records");
1769
2128
  }
@@ -1842,6 +2201,29 @@ export class MemoriesMemoryIdFilesPathResource {
1842
2201
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1843
2202
  }
1844
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
+ }
1845
2227
  export class MemoriesMemoryIdRecordsResource {
1846
2228
  transport;
1847
2229
  path;
@@ -1951,6 +2333,130 @@ export class MemoriesMemoryIdRevisionsSeqResource {
1951
2333
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
1952
2334
  }
1953
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
+ }
1954
2460
  export class MemoryProvidersResource {
1955
2461
  transport;
1956
2462
  path;
@@ -2564,6 +3070,9 @@ export class OrganizationsOrganizationIdResource {
2564
3070
  .filter(([, value]) => value !== undefined && value !== null)
2565
3071
  .map(([key, value]) => [key, String(value)])), { signal: options.signal });
2566
3072
  }
3073
+ get appPlugins() {
3074
+ return new OrganizationsOrganizationIdAppPluginsResource(this.transport, this.path + "/app-plugins");
3075
+ }
2567
3076
  get auditEvents() {
2568
3077
  return new OrganizationsOrganizationIdAuditEventsResource(this.transport, this.path + "/audit-events");
2569
3078
  }
@@ -2583,6 +3092,37 @@ export class OrganizationsOrganizationIdResource {
2583
3092
  return new OrganizationsOrganizationIdWorkspacesResource(this.transport, this.path + "/workspaces");
2584
3093
  }
2585
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
+ }
2586
3126
  export class OrganizationsOrganizationIdAuditEventsResource {
2587
3127
  transport;
2588
3128
  path;
@@ -3797,6 +4337,9 @@ export class ThreadsThreadIdResource {
3797
4337
  get runs() {
3798
4338
  return new ThreadsThreadIdRunsResource(this.transport, this.path + "/runs");
3799
4339
  }
4340
+ get sessionBindings() {
4341
+ return new ThreadsThreadIdSessionBindingsResource(this.transport, this.path + "/session-bindings");
4342
+ }
3800
4343
  get stream() {
3801
4344
  return new ThreadsThreadIdStreamResource(this.transport, this.path + "/stream");
3802
4345
  }
@@ -4035,6 +4578,51 @@ export class ThreadsThreadIdRunsResource {
4035
4578
  return flattenPages(this.pages(options), (value) => value);
4036
4579
  }
4037
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
+ }
4038
4626
  export class ThreadsThreadIdStreamResource {
4039
4627
  transport;
4040
4628
  path;