@agntcy/slim-bindings 2.1.1 → 2.2.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agntcy/slim-bindings",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "SLIM Node.js bindings using UniFFI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@ubjs/node": "0.31.0-3"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
|
-
"@agntcy/slim-bindings-darwin-arm64": "2.
|
|
46
|
-
"@agntcy/slim-bindings-darwin-x64": "2.
|
|
47
|
-
"@agntcy/slim-bindings-linux-arm64-gnu": "2.
|
|
48
|
-
"@agntcy/slim-bindings-linux-arm64-musl": "2.
|
|
49
|
-
"@agntcy/slim-bindings-linux-x64-gnu": "2.
|
|
50
|
-
"@agntcy/slim-bindings-linux-x64-musl": "2.
|
|
51
|
-
"@agntcy/slim-bindings-win32-arm64-msvc": "2.
|
|
52
|
-
"@agntcy/slim-bindings-win32-x64-msvc": "2.
|
|
45
|
+
"@agntcy/slim-bindings-darwin-arm64": "2.2.0",
|
|
46
|
+
"@agntcy/slim-bindings-darwin-x64": "2.2.0",
|
|
47
|
+
"@agntcy/slim-bindings-linux-arm64-gnu": "2.2.0",
|
|
48
|
+
"@agntcy/slim-bindings-linux-arm64-musl": "2.2.0",
|
|
49
|
+
"@agntcy/slim-bindings-linux-x64-gnu": "2.2.0",
|
|
50
|
+
"@agntcy/slim-bindings-linux-x64-musl": "2.2.0",
|
|
51
|
+
"@agntcy/slim-bindings-win32-arm64-msvc": "2.2.0",
|
|
52
|
+
"@agntcy/slim-bindings-win32-x64-msvc": "2.2.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^20.0.0",
|
|
@@ -87,6 +87,8 @@ interface NativeModuleInterface {
|
|
|
87
87
|
uniffi_slim_bindings_fn_constructor_app_new(baseName: bigint, identityProviderConfig: Uint8Array, identityVerifierConfig: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
88
88
|
uniffi_slim_bindings_fn_constructor_app_new_with_direction(name: bigint, identityProviderConfig: Uint8Array, identityVerifierConfig: Uint8Array, direction: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
89
89
|
uniffi_slim_bindings_fn_constructor_app_new_with_secret(name: bigint, secret: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
90
|
+
uniffi_slim_bindings_fn_method_app_clear_default_gateway(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
91
|
+
uniffi_slim_bindings_fn_method_app_clear_default_gateway_async(uniffiSelf: bigint): bigint;
|
|
90
92
|
uniffi_slim_bindings_fn_method_app_create_session(uniffiSelf: bigint, config: Uint8Array, destination: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
91
93
|
uniffi_slim_bindings_fn_method_app_create_session_and_wait(uniffiSelf: bigint, config: Uint8Array, destination: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
92
94
|
uniffi_slim_bindings_fn_method_app_create_session_and_wait_async(uniffiSelf: bigint, config: Uint8Array, destination: bigint): bigint;
|
|
@@ -103,6 +105,8 @@ interface NativeModuleInterface {
|
|
|
103
105
|
uniffi_slim_bindings_fn_method_app_remove_route_async(uniffiSelf: bigint, name: bigint, connectionId: bigint): bigint;
|
|
104
106
|
uniffi_slim_bindings_fn_method_app_restore_sessions(uniffiSelf: bigint, connId: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
105
107
|
uniffi_slim_bindings_fn_method_app_restore_sessions_async(uniffiSelf: bigint, connId: bigint): bigint;
|
|
108
|
+
uniffi_slim_bindings_fn_method_app_set_default_gateway(uniffiSelf: bigint, connectionId: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
109
|
+
uniffi_slim_bindings_fn_method_app_set_default_gateway_async(uniffiSelf: bigint, connectionId: bigint): bigint;
|
|
106
110
|
uniffi_slim_bindings_fn_method_app_set_route(uniffiSelf: bigint, name: bigint, connectionId: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
107
111
|
uniffi_slim_bindings_fn_method_app_set_route_async(uniffiSelf: bigint, name: bigint, connectionId: bigint): bigint;
|
|
108
112
|
uniffi_slim_bindings_fn_method_app_subscribe(uniffiSelf: bigint, name: bigint, connectionId: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
|
|
@@ -216,6 +220,8 @@ interface NativeModuleInterface {
|
|
|
216
220
|
uniffi_slim_bindings_checksum_constructor_app_new(): number;
|
|
217
221
|
uniffi_slim_bindings_checksum_constructor_app_new_with_direction(): number;
|
|
218
222
|
uniffi_slim_bindings_checksum_constructor_app_new_with_secret(): number;
|
|
223
|
+
uniffi_slim_bindings_checksum_method_app_clear_default_gateway(): number;
|
|
224
|
+
uniffi_slim_bindings_checksum_method_app_clear_default_gateway_async(): number;
|
|
219
225
|
uniffi_slim_bindings_checksum_method_app_create_session(): number;
|
|
220
226
|
uniffi_slim_bindings_checksum_method_app_create_session_and_wait(): number;
|
|
221
227
|
uniffi_slim_bindings_checksum_method_app_create_session_and_wait_async(): number;
|
|
@@ -232,6 +238,8 @@ interface NativeModuleInterface {
|
|
|
232
238
|
uniffi_slim_bindings_checksum_method_app_remove_route_async(): number;
|
|
233
239
|
uniffi_slim_bindings_checksum_method_app_restore_sessions(): number;
|
|
234
240
|
uniffi_slim_bindings_checksum_method_app_restore_sessions_async(): number;
|
|
241
|
+
uniffi_slim_bindings_checksum_method_app_set_default_gateway(): number;
|
|
242
|
+
uniffi_slim_bindings_checksum_method_app_set_default_gateway_async(): number;
|
|
235
243
|
uniffi_slim_bindings_checksum_method_app_set_route(): number;
|
|
236
244
|
uniffi_slim_bindings_checksum_method_app_set_route_async(): number;
|
|
237
245
|
uniffi_slim_bindings_checksum_method_app_subscribe(): number;
|
package/types/slim_bindings.d.ts
CHANGED
|
@@ -4381,6 +4381,16 @@ export declare enum TransportProtocol {
|
|
|
4381
4381
|
* together with the upstream connection id.
|
|
4382
4382
|
*/
|
|
4383
4383
|
export interface AppLike {
|
|
4384
|
+
/**
|
|
4385
|
+
* Remove the explicit default gateway pin.
|
|
4386
|
+
*/
|
|
4387
|
+
clearDefaultGateway(): void;
|
|
4388
|
+
/**
|
|
4389
|
+
* Remove the explicit default gateway pin.
|
|
4390
|
+
*/
|
|
4391
|
+
clearDefaultGatewayAsync(asyncOpts_?: {
|
|
4392
|
+
signal: AbortSignal;
|
|
4393
|
+
}): Promise<void>;
|
|
4384
4394
|
/**
|
|
4385
4395
|
* Create a new session (blocking version for FFI)
|
|
4386
4396
|
*
|
|
@@ -4488,6 +4498,16 @@ export interface AppLike {
|
|
|
4488
4498
|
restoreSessionsAsync(connId: bigint, asyncOpts_?: {
|
|
4489
4499
|
signal: AbortSignal;
|
|
4490
4500
|
}): Promise<Array<SessionLike>>;
|
|
4501
|
+
/**
|
|
4502
|
+
* Pin an Edge connection as the default gateway for unrouted publishes.
|
|
4503
|
+
*/
|
|
4504
|
+
setDefaultGateway(connectionId: bigint): void;
|
|
4505
|
+
/**
|
|
4506
|
+
* Pin an Edge connection as the default gateway for unrouted publishes.
|
|
4507
|
+
*/
|
|
4508
|
+
setDefaultGatewayAsync(connectionId: bigint, asyncOpts_?: {
|
|
4509
|
+
signal: AbortSignal;
|
|
4510
|
+
}): Promise<void>;
|
|
4491
4511
|
/**
|
|
4492
4512
|
* Set a route to a name for a specific connection (blocking version for FFI)
|
|
4493
4513
|
*/
|
|
@@ -4590,6 +4610,16 @@ export declare class App extends UniffiAbstractObject implements AppLike {
|
|
|
4590
4610
|
* * `Err(SlimError)` - If adapter creation fails
|
|
4591
4611
|
*/
|
|
4592
4612
|
static newWithSecret(name: NameLike, secret: string): AppLike;
|
|
4613
|
+
/**
|
|
4614
|
+
* Remove the explicit default gateway pin.
|
|
4615
|
+
*/
|
|
4616
|
+
clearDefaultGateway(): void;
|
|
4617
|
+
/**
|
|
4618
|
+
* Remove the explicit default gateway pin.
|
|
4619
|
+
*/
|
|
4620
|
+
clearDefaultGatewayAsync(asyncOpts_?: {
|
|
4621
|
+
signal: AbortSignal;
|
|
4622
|
+
}): Promise<void>;
|
|
4593
4623
|
/**
|
|
4594
4624
|
* Create a new session (blocking version for FFI)
|
|
4595
4625
|
*
|
|
@@ -4697,6 +4727,16 @@ export declare class App extends UniffiAbstractObject implements AppLike {
|
|
|
4697
4727
|
restoreSessionsAsync(connId: bigint, asyncOpts_?: {
|
|
4698
4728
|
signal: AbortSignal;
|
|
4699
4729
|
}): Promise<Array<SessionLike>>;
|
|
4730
|
+
/**
|
|
4731
|
+
* Pin an Edge connection as the default gateway for unrouted publishes.
|
|
4732
|
+
*/
|
|
4733
|
+
setDefaultGateway(connectionId: bigint): void;
|
|
4734
|
+
/**
|
|
4735
|
+
* Pin an Edge connection as the default gateway for unrouted publishes.
|
|
4736
|
+
*/
|
|
4737
|
+
setDefaultGatewayAsync(connectionId: bigint, asyncOpts_?: {
|
|
4738
|
+
signal: AbortSignal;
|
|
4739
|
+
}): Promise<void>;
|
|
4700
4740
|
/**
|
|
4701
4741
|
* Set a route to a name for a specific connection (blocking version for FFI)
|
|
4702
4742
|
*/
|