@covia/covia-sdk 1.2.0 → 1.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.
- package/dist/index.d.mts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +20 -29
- package/dist/index.mjs +20 -29
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -347,9 +347,6 @@ declare class WorkspaceManager {
|
|
|
347
347
|
append(path: string, value: any): Promise<WorkspaceAppendResult>;
|
|
348
348
|
list(path?: string, limit?: number, offset?: number): Promise<WorkspaceListResult>;
|
|
349
349
|
slice(path: string, offset?: number, limit?: number): Promise<WorkspaceSliceResult>;
|
|
350
|
-
functions(): Promise<FunctionsResult>;
|
|
351
|
-
describe(name: string): Promise<any>;
|
|
352
|
-
adapters(): Promise<AdaptersResult>;
|
|
353
350
|
}
|
|
354
351
|
|
|
355
352
|
interface UCANManagerVenue {
|
package/dist/index.d.ts
CHANGED
|
@@ -347,9 +347,6 @@ declare class WorkspaceManager {
|
|
|
347
347
|
append(path: string, value: any): Promise<WorkspaceAppendResult>;
|
|
348
348
|
list(path?: string, limit?: number, offset?: number): Promise<WorkspaceListResult>;
|
|
349
349
|
slice(path: string, offset?: number, limit?: number): Promise<WorkspaceSliceResult>;
|
|
350
|
-
functions(): Promise<FunctionsResult>;
|
|
351
|
-
describe(name: string): Promise<any>;
|
|
352
|
-
adapters(): Promise<AdaptersResult>;
|
|
353
350
|
}
|
|
354
351
|
|
|
355
352
|
interface UCANManagerVenue {
|
package/dist/index.js
CHANGED
|
@@ -1342,37 +1342,37 @@ var AgentManager = class {
|
|
|
1342
1342
|
this.venue = venue;
|
|
1343
1343
|
}
|
|
1344
1344
|
async create(input) {
|
|
1345
|
-
return this.venue.operations.run("agent
|
|
1345
|
+
return this.venue.operations.run("v/ops/agent/create", input);
|
|
1346
1346
|
}
|
|
1347
1347
|
async request(agentId, input, wait) {
|
|
1348
|
-
return this.venue.operations.run("agent
|
|
1348
|
+
return this.venue.operations.run("v/ops/agent/request", { agentId, input, wait });
|
|
1349
1349
|
}
|
|
1350
1350
|
async message(agentId, message) {
|
|
1351
|
-
return this.venue.operations.run("agent
|
|
1351
|
+
return this.venue.operations.run("v/ops/agent/message", { agentId, message });
|
|
1352
1352
|
}
|
|
1353
1353
|
async trigger(agentId) {
|
|
1354
|
-
return this.venue.operations.run("agent
|
|
1354
|
+
return this.venue.operations.run("v/ops/agent/trigger", { agentId });
|
|
1355
1355
|
}
|
|
1356
1356
|
async query(agentId) {
|
|
1357
|
-
return this.venue.operations.run("agent
|
|
1357
|
+
return this.venue.operations.run("v/ops/agent/info", { agentId });
|
|
1358
1358
|
}
|
|
1359
1359
|
async list(includeTerminated) {
|
|
1360
|
-
return this.venue.operations.run("agent
|
|
1360
|
+
return this.venue.operations.run("v/ops/agent/list", { includeTerminated });
|
|
1361
1361
|
}
|
|
1362
1362
|
async delete(agentId, remove) {
|
|
1363
|
-
return this.venue.operations.run("agent
|
|
1363
|
+
return this.venue.operations.run("v/ops/agent/delete", { agentId, remove });
|
|
1364
1364
|
}
|
|
1365
1365
|
async suspend(agentId) {
|
|
1366
|
-
return this.venue.operations.run("agent
|
|
1366
|
+
return this.venue.operations.run("v/ops/agent/suspend", { agentId });
|
|
1367
1367
|
}
|
|
1368
1368
|
async resume(agentId, autoWake) {
|
|
1369
|
-
return this.venue.operations.run("agent
|
|
1369
|
+
return this.venue.operations.run("v/ops/agent/resume", { agentId, autoWake });
|
|
1370
1370
|
}
|
|
1371
1371
|
async update(input) {
|
|
1372
|
-
return this.venue.operations.run("agent
|
|
1372
|
+
return this.venue.operations.run("v/ops/agent/update", input);
|
|
1373
1373
|
}
|
|
1374
1374
|
async cancelTask(agentId, taskId) {
|
|
1375
|
-
return this.venue.operations.run("agent
|
|
1375
|
+
return this.venue.operations.run("v/ops/agent/cancel-task", { agentId, taskId });
|
|
1376
1376
|
}
|
|
1377
1377
|
};
|
|
1378
1378
|
|
|
@@ -1884,31 +1884,22 @@ var WorkspaceManager = class {
|
|
|
1884
1884
|
this.venue = venue;
|
|
1885
1885
|
}
|
|
1886
1886
|
async read(path, maxSize) {
|
|
1887
|
-
return this.venue.operations.run("covia
|
|
1887
|
+
return this.venue.operations.run("v/ops/covia/read", { path, maxSize });
|
|
1888
1888
|
}
|
|
1889
1889
|
async write(path, value) {
|
|
1890
|
-
return this.venue.operations.run("covia
|
|
1890
|
+
return this.venue.operations.run("v/ops/covia/write", { path, value });
|
|
1891
1891
|
}
|
|
1892
1892
|
async delete(path) {
|
|
1893
|
-
return this.venue.operations.run("covia
|
|
1893
|
+
return this.venue.operations.run("v/ops/covia/delete", { path });
|
|
1894
1894
|
}
|
|
1895
1895
|
async append(path, value) {
|
|
1896
|
-
return this.venue.operations.run("covia
|
|
1896
|
+
return this.venue.operations.run("v/ops/covia/append", { path, value });
|
|
1897
1897
|
}
|
|
1898
1898
|
async list(path, limit, offset) {
|
|
1899
|
-
return this.venue.operations.run("covia
|
|
1899
|
+
return this.venue.operations.run("v/ops/covia/list", { path, limit, offset });
|
|
1900
1900
|
}
|
|
1901
1901
|
async slice(path, offset, limit) {
|
|
1902
|
-
return this.venue.operations.run("covia
|
|
1903
|
-
}
|
|
1904
|
-
async functions() {
|
|
1905
|
-
return this.venue.operations.run("covia:functions", {});
|
|
1906
|
-
}
|
|
1907
|
-
async describe(name) {
|
|
1908
|
-
return this.venue.operations.run("covia:describe", { name });
|
|
1909
|
-
}
|
|
1910
|
-
async adapters() {
|
|
1911
|
-
return this.venue.operations.run("covia:adapters", {});
|
|
1902
|
+
return this.venue.operations.run("v/ops/covia/slice", { path, offset, limit });
|
|
1912
1903
|
}
|
|
1913
1904
|
};
|
|
1914
1905
|
|
|
@@ -1918,7 +1909,7 @@ var UCANManager = class {
|
|
|
1918
1909
|
this.venue = venue;
|
|
1919
1910
|
}
|
|
1920
1911
|
async issue(aud, att, exp) {
|
|
1921
|
-
return this.venue.operations.run("ucan
|
|
1912
|
+
return this.venue.operations.run("v/ops/ucan/issue", { aud, att, exp });
|
|
1922
1913
|
}
|
|
1923
1914
|
};
|
|
1924
1915
|
|
|
@@ -1928,7 +1919,7 @@ var SecretManager = class {
|
|
|
1928
1919
|
this.venue = venue;
|
|
1929
1920
|
}
|
|
1930
1921
|
async set(name, value) {
|
|
1931
|
-
return this.venue.operations.run("secret
|
|
1922
|
+
return this.venue.operations.run("v/ops/secret/set", { name, value });
|
|
1932
1923
|
}
|
|
1933
1924
|
/**
|
|
1934
1925
|
* Extract a secret value by name.
|
|
@@ -1936,7 +1927,7 @@ var SecretManager = class {
|
|
|
1936
1927
|
* may reject requests that lack the appropriate capability proof.
|
|
1937
1928
|
*/
|
|
1938
1929
|
async extract(name) {
|
|
1939
|
-
return this.venue.operations.run("secret
|
|
1930
|
+
return this.venue.operations.run("v/ops/secret/extract", { name });
|
|
1940
1931
|
}
|
|
1941
1932
|
async list() {
|
|
1942
1933
|
return this.venue.listSecrets();
|
package/dist/index.mjs
CHANGED
|
@@ -1340,37 +1340,37 @@ var AgentManager = class {
|
|
|
1340
1340
|
this.venue = venue;
|
|
1341
1341
|
}
|
|
1342
1342
|
async create(input) {
|
|
1343
|
-
return this.venue.operations.run("agent
|
|
1343
|
+
return this.venue.operations.run("v/ops/agent/create", input);
|
|
1344
1344
|
}
|
|
1345
1345
|
async request(agentId, input, wait) {
|
|
1346
|
-
return this.venue.operations.run("agent
|
|
1346
|
+
return this.venue.operations.run("v/ops/agent/request", { agentId, input, wait });
|
|
1347
1347
|
}
|
|
1348
1348
|
async message(agentId, message) {
|
|
1349
|
-
return this.venue.operations.run("agent
|
|
1349
|
+
return this.venue.operations.run("v/ops/agent/message", { agentId, message });
|
|
1350
1350
|
}
|
|
1351
1351
|
async trigger(agentId) {
|
|
1352
|
-
return this.venue.operations.run("agent
|
|
1352
|
+
return this.venue.operations.run("v/ops/agent/trigger", { agentId });
|
|
1353
1353
|
}
|
|
1354
1354
|
async query(agentId) {
|
|
1355
|
-
return this.venue.operations.run("agent
|
|
1355
|
+
return this.venue.operations.run("v/ops/agent/info", { agentId });
|
|
1356
1356
|
}
|
|
1357
1357
|
async list(includeTerminated) {
|
|
1358
|
-
return this.venue.operations.run("agent
|
|
1358
|
+
return this.venue.operations.run("v/ops/agent/list", { includeTerminated });
|
|
1359
1359
|
}
|
|
1360
1360
|
async delete(agentId, remove) {
|
|
1361
|
-
return this.venue.operations.run("agent
|
|
1361
|
+
return this.venue.operations.run("v/ops/agent/delete", { agentId, remove });
|
|
1362
1362
|
}
|
|
1363
1363
|
async suspend(agentId) {
|
|
1364
|
-
return this.venue.operations.run("agent
|
|
1364
|
+
return this.venue.operations.run("v/ops/agent/suspend", { agentId });
|
|
1365
1365
|
}
|
|
1366
1366
|
async resume(agentId, autoWake) {
|
|
1367
|
-
return this.venue.operations.run("agent
|
|
1367
|
+
return this.venue.operations.run("v/ops/agent/resume", { agentId, autoWake });
|
|
1368
1368
|
}
|
|
1369
1369
|
async update(input) {
|
|
1370
|
-
return this.venue.operations.run("agent
|
|
1370
|
+
return this.venue.operations.run("v/ops/agent/update", input);
|
|
1371
1371
|
}
|
|
1372
1372
|
async cancelTask(agentId, taskId) {
|
|
1373
|
-
return this.venue.operations.run("agent
|
|
1373
|
+
return this.venue.operations.run("v/ops/agent/cancel-task", { agentId, taskId });
|
|
1374
1374
|
}
|
|
1375
1375
|
};
|
|
1376
1376
|
|
|
@@ -1882,31 +1882,22 @@ var WorkspaceManager = class {
|
|
|
1882
1882
|
this.venue = venue;
|
|
1883
1883
|
}
|
|
1884
1884
|
async read(path, maxSize) {
|
|
1885
|
-
return this.venue.operations.run("covia
|
|
1885
|
+
return this.venue.operations.run("v/ops/covia/read", { path, maxSize });
|
|
1886
1886
|
}
|
|
1887
1887
|
async write(path, value) {
|
|
1888
|
-
return this.venue.operations.run("covia
|
|
1888
|
+
return this.venue.operations.run("v/ops/covia/write", { path, value });
|
|
1889
1889
|
}
|
|
1890
1890
|
async delete(path) {
|
|
1891
|
-
return this.venue.operations.run("covia
|
|
1891
|
+
return this.venue.operations.run("v/ops/covia/delete", { path });
|
|
1892
1892
|
}
|
|
1893
1893
|
async append(path, value) {
|
|
1894
|
-
return this.venue.operations.run("covia
|
|
1894
|
+
return this.venue.operations.run("v/ops/covia/append", { path, value });
|
|
1895
1895
|
}
|
|
1896
1896
|
async list(path, limit, offset) {
|
|
1897
|
-
return this.venue.operations.run("covia
|
|
1897
|
+
return this.venue.operations.run("v/ops/covia/list", { path, limit, offset });
|
|
1898
1898
|
}
|
|
1899
1899
|
async slice(path, offset, limit) {
|
|
1900
|
-
return this.venue.operations.run("covia
|
|
1901
|
-
}
|
|
1902
|
-
async functions() {
|
|
1903
|
-
return this.venue.operations.run("covia:functions", {});
|
|
1904
|
-
}
|
|
1905
|
-
async describe(name) {
|
|
1906
|
-
return this.venue.operations.run("covia:describe", { name });
|
|
1907
|
-
}
|
|
1908
|
-
async adapters() {
|
|
1909
|
-
return this.venue.operations.run("covia:adapters", {});
|
|
1900
|
+
return this.venue.operations.run("v/ops/covia/slice", { path, offset, limit });
|
|
1910
1901
|
}
|
|
1911
1902
|
};
|
|
1912
1903
|
|
|
@@ -1916,7 +1907,7 @@ var UCANManager = class {
|
|
|
1916
1907
|
this.venue = venue;
|
|
1917
1908
|
}
|
|
1918
1909
|
async issue(aud, att, exp) {
|
|
1919
|
-
return this.venue.operations.run("ucan
|
|
1910
|
+
return this.venue.operations.run("v/ops/ucan/issue", { aud, att, exp });
|
|
1920
1911
|
}
|
|
1921
1912
|
};
|
|
1922
1913
|
|
|
@@ -1926,7 +1917,7 @@ var SecretManager = class {
|
|
|
1926
1917
|
this.venue = venue;
|
|
1927
1918
|
}
|
|
1928
1919
|
async set(name, value) {
|
|
1929
|
-
return this.venue.operations.run("secret
|
|
1920
|
+
return this.venue.operations.run("v/ops/secret/set", { name, value });
|
|
1930
1921
|
}
|
|
1931
1922
|
/**
|
|
1932
1923
|
* Extract a secret value by name.
|
|
@@ -1934,7 +1925,7 @@ var SecretManager = class {
|
|
|
1934
1925
|
* may reject requests that lack the appropriate capability proof.
|
|
1935
1926
|
*/
|
|
1936
1927
|
async extract(name) {
|
|
1937
|
-
return this.venue.operations.run("secret
|
|
1928
|
+
return this.venue.operations.run("v/ops/secret/extract", { name });
|
|
1938
1929
|
}
|
|
1939
1930
|
async list() {
|
|
1940
1931
|
return this.venue.listSecrets();
|