@agntcy/slim-bindings 2.2.0 → 3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agntcy/slim-bindings",
3
- "version": "2.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "SLIM Node.js bindings using UniFFI",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -42,17 +42,17 @@
42
42
  "@ubjs/node": "0.31.0-3"
43
43
  },
44
44
  "optionalDependencies": {
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"
45
+ "@agntcy/slim-bindings-darwin-arm64": "3.3.0",
46
+ "@agntcy/slim-bindings-darwin-x64": "3.3.0",
47
+ "@agntcy/slim-bindings-linux-arm64-gnu": "3.3.0",
48
+ "@agntcy/slim-bindings-linux-arm64-musl": "3.3.0",
49
+ "@agntcy/slim-bindings-linux-x64-gnu": "3.3.0",
50
+ "@agntcy/slim-bindings-linux-x64-musl": "3.3.0",
51
+ "@agntcy/slim-bindings-win32-arm64-msvc": "3.3.0",
52
+ "@agntcy/slim-bindings-win32-x64-msvc": "3.3.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@types/node": "^20.0.0",
55
+ "@types/node": "^24.19.1",
56
56
  "typescript": "^5.0.0",
57
57
  "uniffi-bindgen-react-native": "0.31.0-3"
58
58
  }
@@ -107,6 +107,8 @@ interface NativeModuleInterface {
107
107
  uniffi_slim_rpc_fn_method_context_deadline(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
108
108
  uniffi_slim_rpc_fn_method_context_is_deadline_exceeded(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): number;
109
109
  uniffi_slim_rpc_fn_method_context_metadata(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
110
+ uniffi_slim_rpc_fn_method_context_peer_issuer(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
111
+ uniffi_slim_rpc_fn_method_context_peer_subject(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
110
112
  uniffi_slim_rpc_fn_method_context_remaining_time(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
111
113
  uniffi_slim_rpc_fn_method_context_session_id(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
112
114
  uniffi_slim_rpc_fn_method_multicastbidistreamhandler_close_send(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): void;
@@ -176,6 +178,8 @@ interface NativeModuleInterface {
176
178
  uniffi_slim_rpc_checksum_method_context_deadline(): number;
177
179
  uniffi_slim_rpc_checksum_method_context_is_deadline_exceeded(): number;
178
180
  uniffi_slim_rpc_checksum_method_context_metadata(): number;
181
+ uniffi_slim_rpc_checksum_method_context_peer_issuer(): number;
182
+ uniffi_slim_rpc_checksum_method_context_peer_subject(): number;
179
183
  uniffi_slim_rpc_checksum_method_context_remaining_time(): number;
180
184
  uniffi_slim_rpc_checksum_method_context_session_id(): number;
181
185
  uniffi_slim_rpc_checksum_method_multicastbidistreamhandler_close_send(): number;
@@ -1220,6 +1220,16 @@ export interface ContextLike {
1220
1220
  * Get the rpc session metadata
1221
1221
  */
1222
1222
  metadata(): Map<string, string>;
1223
+ /**
1224
+ * The verified issuer (`iss`) of the peer that set up the session, when
1225
+ * its token has one.
1226
+ */
1227
+ peerIssuer(): string | undefined;
1228
+ /**
1229
+ * The verified subject (`sub`) of the peer that set up the session;
1230
+ * see [`SessionContext::peer_identity`].
1231
+ */
1232
+ peerSubject(): string | undefined;
1223
1233
  /**
1224
1234
  * Get the remaining time until deadline
1225
1235
  *
@@ -1261,6 +1271,16 @@ export declare class Context extends UniffiAbstractObject implements ContextLike
1261
1271
  * Get the rpc session metadata
1262
1272
  */
1263
1273
  metadata(): Map<string, string>;
1274
+ /**
1275
+ * The verified issuer (`iss`) of the peer that set up the session, when
1276
+ * its token has one.
1277
+ */
1278
+ peerIssuer(): string | undefined;
1279
+ /**
1280
+ * The verified subject (`sub`) of the peer that set up the session;
1281
+ * see [`SessionContext::peer_identity`].
1282
+ */
1283
+ peerSubject(): string | undefined;
1264
1284
  /**
1265
1285
  * Get the remaining time until deadline
1266
1286
  *