@agntcy/slim-bindings-linux-arm64-gnu 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.
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/libslim_bindings.so
3
- size: 61719320 bytes
4
- sha256: fcef6e65c276c56952cd561608638629587da33377782e9974499cf6b9668db3
3
+ size: 57311840 bytes
4
+ sha256: 094e1c723b1ee6e431de0367f04ad02ce8db270e77c90986496f84472f0404db
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agntcy/slim-bindings-linux-arm64-gnu",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "SLIM Node.js bindings (linux-arm64-gnu)",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -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;
@@ -447,6 +447,16 @@ const DEFINITIONS = {
447
447
  ret: FfiType.Handle,
448
448
  hasRustCallStatus: true,
449
449
  },
450
+ "uniffi_slim_bindings_fn_method_app_clear_default_gateway": {
451
+ args: [FfiType.Handle],
452
+ ret: FfiType.Void,
453
+ hasRustCallStatus: true,
454
+ },
455
+ "uniffi_slim_bindings_fn_method_app_clear_default_gateway_async": {
456
+ args: [FfiType.Handle],
457
+ ret: FfiType.Handle,
458
+ hasRustCallStatus: false,
459
+ },
450
460
  "uniffi_slim_bindings_fn_method_app_create_session": {
451
461
  args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Handle],
452
462
  ret: FfiType.RustBuffer,
@@ -527,6 +537,16 @@ const DEFINITIONS = {
527
537
  ret: FfiType.Handle,
528
538
  hasRustCallStatus: false,
529
539
  },
540
+ "uniffi_slim_bindings_fn_method_app_set_default_gateway": {
541
+ args: [FfiType.Handle, FfiType.UInt64],
542
+ ret: FfiType.Void,
543
+ hasRustCallStatus: true,
544
+ },
545
+ "uniffi_slim_bindings_fn_method_app_set_default_gateway_async": {
546
+ args: [FfiType.Handle, FfiType.UInt64],
547
+ ret: FfiType.Handle,
548
+ hasRustCallStatus: false,
549
+ },
530
550
  "uniffi_slim_bindings_fn_method_app_set_route": {
531
551
  args: [FfiType.Handle, FfiType.Handle, FfiType.UInt64],
532
552
  ret: FfiType.Void,
@@ -1092,6 +1112,16 @@ const DEFINITIONS = {
1092
1112
  ret: FfiType.UInt16,
1093
1113
  hasRustCallStatus: false,
1094
1114
  },
1115
+ "uniffi_slim_bindings_checksum_method_app_clear_default_gateway": {
1116
+ args: [],
1117
+ ret: FfiType.UInt16,
1118
+ hasRustCallStatus: false,
1119
+ },
1120
+ "uniffi_slim_bindings_checksum_method_app_clear_default_gateway_async": {
1121
+ args: [],
1122
+ ret: FfiType.UInt16,
1123
+ hasRustCallStatus: false,
1124
+ },
1095
1125
  "uniffi_slim_bindings_checksum_method_app_create_session": {
1096
1126
  args: [],
1097
1127
  ret: FfiType.UInt16,
@@ -1172,6 +1202,16 @@ const DEFINITIONS = {
1172
1202
  ret: FfiType.UInt16,
1173
1203
  hasRustCallStatus: false,
1174
1204
  },
1205
+ "uniffi_slim_bindings_checksum_method_app_set_default_gateway": {
1206
+ args: [],
1207
+ ret: FfiType.UInt16,
1208
+ hasRustCallStatus: false,
1209
+ },
1210
+ "uniffi_slim_bindings_checksum_method_app_set_default_gateway_async": {
1211
+ args: [],
1212
+ ret: FfiType.UInt16,
1213
+ hasRustCallStatus: false,
1214
+ },
1175
1215
  "uniffi_slim_bindings_checksum_method_app_set_route": {
1176
1216
  args: [],
1177
1217
  ret: FfiType.UInt16,
@@ -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
  */
package/slim_bindings.js CHANGED
@@ -5599,6 +5599,44 @@ export class App extends UniffiAbstractObject {
5599
5599
  },
5600
5600
  /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
5601
5601
  }
5602
+ /**
5603
+ * Remove the explicit default gateway pin.
5604
+ */
5605
+ clearDefaultGateway() {
5606
+ uniffiCaller.rustCallWithError(
5607
+ /*liftError:*/ FfiConverterTypeSlimError.lift.bind(FfiConverterTypeSlimError),
5608
+ /*caller:*/ (callStatus) => {
5609
+ nativeModule().uniffi_slim_bindings_fn_method_app_clear_default_gateway(uniffiTypeAppObjectFactory.clonePointer(this), callStatus);
5610
+ },
5611
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
5612
+ }
5613
+ /**
5614
+ * Remove the explicit default gateway pin.
5615
+ */
5616
+ async clearDefaultGatewayAsync(asyncOpts_) {
5617
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
5618
+ try {
5619
+ return await uniffiRustCallAsync(
5620
+ /*rustCaller:*/ uniffiCaller,
5621
+ /*rustFutureFunc:*/ () => {
5622
+ return nativeModule().uniffi_slim_bindings_fn_method_app_clear_default_gateway_async(uniffiTypeAppObjectFactory.clonePointer(this));
5623
+ },
5624
+ /*pollFunc:*/ nativeModule().ffi_slim_bindings_rust_future_poll_void,
5625
+ /*cancelFunc:*/ nativeModule().ffi_slim_bindings_rust_future_cancel_void,
5626
+ /*completeFunc:*/ nativeModule().ffi_slim_bindings_rust_future_complete_void,
5627
+ /*freeFunc:*/ nativeModule().ffi_slim_bindings_rust_future_free_void,
5628
+ /*liftFunc:*/ (_v) => { },
5629
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
5630
+ /*asyncOpts:*/ asyncOpts_,
5631
+ /*errorHandler:*/ FfiConverterTypeSlimError.lift.bind(FfiConverterTypeSlimError));
5632
+ }
5633
+ catch (__error) {
5634
+ if (uniffiIsDebug && __error instanceof Error) {
5635
+ __error.stack = __stack;
5636
+ }
5637
+ throw __error;
5638
+ }
5639
+ }
5602
5640
  /**
5603
5641
  * Create a new session (blocking version for FFI)
5604
5642
  *
@@ -5960,6 +5998,44 @@ export class App extends UniffiAbstractObject {
5960
5998
  throw __error;
5961
5999
  }
5962
6000
  }
6001
+ /**
6002
+ * Pin an Edge connection as the default gateway for unrouted publishes.
6003
+ */
6004
+ setDefaultGateway(connectionId) {
6005
+ uniffiCaller.rustCallWithError(
6006
+ /*liftError:*/ FfiConverterTypeSlimError.lift.bind(FfiConverterTypeSlimError),
6007
+ /*caller:*/ (callStatus) => {
6008
+ nativeModule().uniffi_slim_bindings_fn_method_app_set_default_gateway(uniffiTypeAppObjectFactory.clonePointer(this), FfiConverterUInt64.lower(connectionId, nativeModule().rustbuffer_alloc), callStatus);
6009
+ },
6010
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
6011
+ }
6012
+ /**
6013
+ * Pin an Edge connection as the default gateway for unrouted publishes.
6014
+ */
6015
+ async setDefaultGatewayAsync(connectionId, asyncOpts_) {
6016
+ const __stack = uniffiIsDebug ? new Error().stack : undefined;
6017
+ try {
6018
+ return await uniffiRustCallAsync(
6019
+ /*rustCaller:*/ uniffiCaller,
6020
+ /*rustFutureFunc:*/ () => {
6021
+ return nativeModule().uniffi_slim_bindings_fn_method_app_set_default_gateway_async(uniffiTypeAppObjectFactory.clonePointer(this), FfiConverterUInt64.lower(connectionId, nativeModule().rustbuffer_alloc));
6022
+ },
6023
+ /*pollFunc:*/ nativeModule().ffi_slim_bindings_rust_future_poll_void,
6024
+ /*cancelFunc:*/ nativeModule().ffi_slim_bindings_rust_future_cancel_void,
6025
+ /*completeFunc:*/ nativeModule().ffi_slim_bindings_rust_future_complete_void,
6026
+ /*freeFunc:*/ nativeModule().ffi_slim_bindings_rust_future_free_void,
6027
+ /*liftFunc:*/ (_v) => { },
6028
+ /*liftString:*/ FfiConverterString.lift.bind(FfiConverterString),
6029
+ /*asyncOpts:*/ asyncOpts_,
6030
+ /*errorHandler:*/ FfiConverterTypeSlimError.lift.bind(FfiConverterTypeSlimError));
6031
+ }
6032
+ catch (__error) {
6033
+ if (uniffiIsDebug && __error instanceof Error) {
6034
+ __error.stack = __stack;
6035
+ }
6036
+ throw __error;
6037
+ }
6038
+ }
5963
6039
  /**
5964
6040
  * Set a route to a name for a specific connection (blocking version for FFI)
5965
6041
  */
@@ -6868,6 +6944,12 @@ function uniffiEnsureInitialized() {
6868
6944
  if (nativeModule().uniffi_slim_bindings_checksum_constructor_app_new_with_secret() !== 459) {
6869
6945
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_constructor_app_new_with_secret");
6870
6946
  }
6947
+ if (nativeModule().uniffi_slim_bindings_checksum_method_app_clear_default_gateway() !== 47277) {
6948
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_method_app_clear_default_gateway");
6949
+ }
6950
+ if (nativeModule().uniffi_slim_bindings_checksum_method_app_clear_default_gateway_async() !== 27827) {
6951
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_method_app_clear_default_gateway_async");
6952
+ }
6871
6953
  if (nativeModule().uniffi_slim_bindings_checksum_method_app_create_session() !== 14334) {
6872
6954
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_method_app_create_session");
6873
6955
  }
@@ -6916,6 +6998,12 @@ function uniffiEnsureInitialized() {
6916
6998
  if (nativeModule().uniffi_slim_bindings_checksum_method_app_restore_sessions_async() !== 48735) {
6917
6999
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_method_app_restore_sessions_async");
6918
7000
  }
7001
+ if (nativeModule().uniffi_slim_bindings_checksum_method_app_set_default_gateway() !== 4756) {
7002
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_method_app_set_default_gateway");
7003
+ }
7004
+ if (nativeModule().uniffi_slim_bindings_checksum_method_app_set_default_gateway_async() !== 8540) {
7005
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_method_app_set_default_gateway_async");
7006
+ }
6919
7007
  if (nativeModule().uniffi_slim_bindings_checksum_method_app_set_route() !== 35913) {
6920
7008
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_slim_bindings_checksum_method_app_set_route");
6921
7009
  }