@engini/sdk 0.8.0 → 0.10.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.
|
@@ -23,6 +23,7 @@ export declare class ConnectionsResource {
|
|
|
23
23
|
constructor(client: ConnectionsClient);
|
|
24
24
|
list(application?: string): Promise<ConnectionPublicListItem[]>;
|
|
25
25
|
get(connectionId: number): Promise<ConnectionPublicDetail>;
|
|
26
|
+
delete(connectionId: number): Promise<unknown>;
|
|
26
27
|
defaults(): Promise<DefaultConnectionDto[]>;
|
|
27
28
|
setDefault(connectionId: number): Promise<unknown>;
|
|
28
29
|
clearDefault(application: string): Promise<unknown>;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* `waitForRefresh` poll helper) that backs the interactive `engini connect` CLI.
|
|
5
5
|
* See `docs/superpowers/specs/2026-06-18-cli-connect-flow-design.md`.
|
|
6
6
|
*/
|
|
7
|
-
import { connectionsGetConnection, connectionsGetConnections, connectionsGetDefaultConnections, connectionsSetDefaultConnection, connectionsClearDefaultConnection, connectionsGetSignInUrl, connectionsGetAccessToken, connectionsCreateConnection, connectionsCheckConnection, connectionsRefreshObjects, connectionsGetRefreshStatus, connectionsGetConnectionObjects, connectionsSelectObjects, } from "@engini/client";
|
|
7
|
+
import { connectionsGetConnection, connectionsDeleteConnection, connectionsGetConnections, connectionsGetDefaultConnections, connectionsSetDefaultConnection, connectionsClearDefaultConnection, connectionsGetSignInUrl, connectionsGetAccessToken, connectionsCreateConnection, connectionsCheckConnection, connectionsRefreshObjects, connectionsGetRefreshStatus, connectionsGetConnectionObjects, connectionsSelectObjects, } from "@engini/client";
|
|
8
8
|
import { call } from "../http.js";
|
|
9
9
|
import { paginate, collect } from "../pagination.js";
|
|
10
10
|
import { EnginiConnectionError, EnginiTimeoutError, EnginiToolsetError } from "../errors.js";
|
|
@@ -89,6 +89,12 @@ export class ConnectionsResource {
|
|
|
89
89
|
path: { connectionId },
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
+
async delete(connectionId) {
|
|
93
|
+
return call(connectionsDeleteConnection, {
|
|
94
|
+
client: this.client._transport,
|
|
95
|
+
path: { connectionId },
|
|
96
|
+
});
|
|
97
|
+
}
|
|
92
98
|
async defaults() {
|
|
93
99
|
const res = await call(connectionsGetDefaultConnections, {
|
|
94
100
|
client: this.client._transport,
|