@wireapp/core-crypto 10.0.0-pre.11 → 10.0.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.
@@ -53,6 +53,7 @@ export declare class Uuid extends UniffiAbstractObject {
53
53
  * Parse a `Uuid` from a string.
54
54
  */
55
55
  constructor(uuid: string);
56
+ toString(): string;
56
57
  equals(other: Uuid): boolean;
57
58
  hashCode(): bigint;
58
59
  uniffiDestroy(): void;
@@ -88,7 +89,7 @@ export declare class DeviceId extends UniffiAbstractObject {
88
89
  static instanceOf(obj_: any): obj_ is DeviceId;
89
90
  }
90
91
  /**
91
- * This directly represents a `ClientId` of the `<userid>-<device-id>@<domain>` format.
92
+ * This directly represents a `ClientId` of the `<userid>:<device-id>@<domain>` format.
92
93
  * Instantiate via [ClientId::deserialize].
93
94
  */
94
95
  export type DeserializedClientId = {
@@ -116,6 +117,7 @@ export declare const DeserializedClientId: Readonly<{
116
117
  create: (partial: Partial<DeserializedClientId> & Required<Omit<DeserializedClientId, never>>) => DeserializedClientId;
117
118
  new: (partial: Partial<DeserializedClientId> & Required<Omit<DeserializedClientId, never>>) => DeserializedClientId;
118
119
  defaults: () => Partial<DeserializedClientId>;
120
+ toString(self_: DeserializedClientId): string;
119
121
  }>;
120
122
  type ClientIdLike = ClientId;
121
123
  /**
@@ -633,6 +633,11 @@ var DEFINITIONS = {
633
633
  ret: FfiType.RustBuffer,
634
634
  hasRustCallStatus: true
635
635
  },
636
+ uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display: {
637
+ args: [FfiType.RustBuffer],
638
+ ret: FfiType.RustBuffer,
639
+ hasRustCallStatus: true
640
+ },
636
641
  uniffi_core_crypto_ffi_fn_constructor_clientid_new: {
637
642
  args: [FfiType.Handle, FfiType.Handle, FfiType.RustBuffer],
638
643
  ret: FfiType.Handle,
@@ -1427,6 +1432,11 @@ var DEFINITIONS = {
1427
1432
  ret: FfiType.Handle,
1428
1433
  hasRustCallStatus: true
1429
1434
  },
1435
+ uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display: {
1436
+ args: [FfiType.Handle],
1437
+ ret: FfiType.RustBuffer,
1438
+ hasRustCallStatus: true
1439
+ },
1430
1440
  uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq: {
1431
1441
  args: [FfiType.Handle, FfiType.Handle],
1432
1442
  ret: FfiType.Int8,
@@ -2698,6 +2708,17 @@ class Uuid extends UniffiAbstractObject {
2698
2708
  this[pointerLiteralSymbol] = pointer;
2699
2709
  this[destructorGuardSymbol] = uniffiTypeUuidObjectFactory.bless(pointer);
2700
2710
  }
2711
+ toString() {
2712
+ return ((__rb) => {
2713
+ try {
2714
+ return FfiConverterString.lift(__rb);
2715
+ } finally {
2716
+ core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
2717
+ }
2718
+ })(uniffiCaller.rustCall((callStatus) => {
2719
+ return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_display(uniffiTypeUuidObjectFactory.clonePointer(this), callStatus);
2720
+ }, FfiConverterString.lift.bind(FfiConverterString)));
2721
+ }
2701
2722
  equals(other) {
2702
2723
  return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
2703
2724
  return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_uuid_uniffi_trait_eq_eq(uniffiTypeUuidObjectFactory.clonePointer(this), FfiConverterTypeUuid.lower(other, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
@@ -2897,7 +2918,18 @@ var DeserializedClientId = (() => {
2897
2918
  return Object.freeze({
2898
2919
  create,
2899
2920
  new: create,
2900
- defaults: () => Object.freeze(defaults())
2921
+ defaults: () => Object.freeze(defaults()),
2922
+ toString(self_) {
2923
+ return ((__rb) => {
2924
+ try {
2925
+ return FfiConverterString.lift(__rb);
2926
+ } finally {
2927
+ core_crypto_ffi_ffi_default().rustbuffer_free(__rb);
2928
+ }
2929
+ })(uniffiCaller.rustCall((callStatus) => {
2930
+ return core_crypto_ffi_ffi_default().uniffi_core_crypto_ffi_fn_method_deserializedclientid_uniffi_trait_display(FfiConverterTypeDeserializedClientId.lower(self_, core_crypto_ffi_ffi_default().rustbuffer_alloc), callStatus);
2931
+ }, FfiConverterString.lift.bind(FfiConverterString)));
2932
+ }
2901
2933
  });
2902
2934
  })();
2903
2935
  var FfiConverterTypeDeserializedClientId = (() => {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireapp/core-crypto",
3
- "version": "10.0.0-pre.11",
3
+ "version": "10.0.0",
4
4
  "author": "Wire CoreCrypto team <team.corecrypto@wire.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,6 +17,16 @@
17
17
  "import": "./dist/native/corecrypto.js"
18
18
  }
19
19
  },
20
+ "typesVersions": {
21
+ "*": {
22
+ "browser": [
23
+ "./dist/browser/corecrypto.d.ts"
24
+ ],
25
+ "native": [
26
+ "./dist/native/corecrypto.d.ts"
27
+ ]
28
+ }
29
+ },
20
30
  "files": [
21
31
  "dist/browser/corecrypto.js",
22
32
  "dist/browser/corecrypto.d.ts",
@@ -24,8 +34,7 @@
24
34
  "dist/browser/autogenerated/wasm-bindgen/index_bg.wasm.d.ts",
25
35
  "dist/native/corecrypto.js",
26
36
  "dist/native/corecrypto.d.ts",
27
- "dist/native/libcore_crypto_ffi.*",
28
- "dist/native/*.node"
37
+ "dist/native/libcore_crypto_ffi.*"
29
38
  ],
30
39
  "bugs": {
31
40
  "url": "https://github.com/wireapp/core-crypto/issues"