@doordeck/doordeck-headless-sdk 0.93.0 → 0.95.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.
Files changed (25) hide show
  1. package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1472 -1472
  2. package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +27 -27
  3. package/kotlin/MultiplatformSettings-multiplatform-settings.js +20 -8
  4. package/kotlin/doordeck-sdk.d.ts +10 -4
  5. package/kotlin/doordeck-sdk.js +9771 -9676
  6. package/kotlin/kotlin-kotlin-stdlib.js +871 -732
  7. package/kotlin/kotlinx-atomicfu.js +18 -18
  8. package/kotlin/kotlinx-coroutines-core.js +2595 -1845
  9. package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +42 -42
  10. package/kotlin/kotlinx-io-kotlinx-io-core.js +447 -447
  11. package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1818 -1818
  12. package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1424 -1424
  13. package/kotlin/ktor-ktor-client-ktor-client-core.js +1898 -1898
  14. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +411 -323
  15. package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +156 -156
  16. package/kotlin/ktor-ktor-http-ktor-http-cio.js +603 -363
  17. package/kotlin/ktor-ktor-http.js +754 -754
  18. package/kotlin/ktor-ktor-io.js +629 -629
  19. package/kotlin/ktor-ktor-shared-ktor-events.js +12 -12
  20. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
  21. package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +158 -158
  22. package/kotlin/ktor-ktor-shared-ktor-serialization.js +78 -78
  23. package/kotlin/ktor-ktor-shared-ktor-websockets.js +52 -52
  24. package/kotlin/ktor-ktor-utils.js +627 -603
  25. package/package.json +4 -4
@@ -5,20 +5,20 @@
5
5
  var _sodium_init = $module$libsodium_sumo_a6nla1._sodium_init;
6
6
  var ready = $module$libsodium_sumo_a6nla1.ready;
7
7
  var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.p3;
8
- var protoOf = kotlin_kotlin.$_$.tb;
8
+ var protoOf = kotlin_kotlin.$_$.ub;
9
9
  var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.l3;
10
- var THROW_CCE = kotlin_kotlin.$_$.nf;
11
- var equals = kotlin_kotlin.$_$.ka;
12
- var initMetadataForClass = kotlin_kotlin.$_$.ra;
13
- var RuntimeException = kotlin_kotlin.$_$.mf;
10
+ var THROW_CCE = kotlin_kotlin.$_$.sf;
11
+ var equals = kotlin_kotlin.$_$.la;
12
+ var initMetadataForClass = kotlin_kotlin.$_$.sa;
13
+ var RuntimeException = kotlin_kotlin.$_$.rf;
14
14
  var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.j2;
15
- var captureStack = kotlin_kotlin.$_$.ca;
15
+ var captureStack = kotlin_kotlin.$_$.da;
16
16
  var Unit_instance = kotlin_kotlin.$_$.k5;
17
- var initMetadataForObject = kotlin_kotlin.$_$.xa;
17
+ var initMetadataForObject = kotlin_kotlin.$_$.ya;
18
18
  var VOID = kotlin_kotlin.$_$.h;
19
19
  var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.o3;
20
- var toTypedArray = kotlin_kotlin.$_$.z8;
21
- var println = kotlin_kotlin.$_$.x9;
20
+ var toTypedArray = kotlin_kotlin.$_$.a9;
21
+ var println = kotlin_kotlin.$_$.y9;
22
22
  var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.j3;
23
23
  var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.f3;
24
24
  var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.m3;
@@ -76,15 +76,15 @@
76
76
  var crypto_secretstream_xchacha20poly1305_KEYBYTES;
77
77
  var crypto_secretstream_xchacha20poly1305_ABYTES;
78
78
  function SignatureKeyPair(publicKey, secretKey) {
79
- this.ln_1 = publicKey;
80
- this.mn_1 = secretKey;
79
+ this.sn_1 = publicKey;
80
+ this.tn_1 = secretKey;
81
81
  }
82
82
  protoOf(SignatureKeyPair).toString = function () {
83
- return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.ln_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.mn_1) + ')';
83
+ return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.sn_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.tn_1) + ')';
84
84
  };
85
85
  protoOf(SignatureKeyPair).hashCode = function () {
86
- var result = UByteArray__hashCode_impl_ip8jx2(this.ln_1);
87
- result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.mn_1) | 0;
86
+ var result = UByteArray__hashCode_impl_ip8jx2(this.sn_1);
87
+ result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.tn_1) | 0;
88
88
  return result;
89
89
  };
90
90
  protoOf(SignatureKeyPair).equals = function (other) {
@@ -93,9 +93,9 @@
93
93
  if (!(other instanceof SignatureKeyPair))
94
94
  return false;
95
95
  var tmp0_other_with_cast = other instanceof SignatureKeyPair ? other : THROW_CCE();
96
- if (!equals(this.ln_1, tmp0_other_with_cast.ln_1))
96
+ if (!equals(this.sn_1, tmp0_other_with_cast.sn_1))
97
97
  return false;
98
- if (!equals(this.mn_1, tmp0_other_with_cast.mn_1))
98
+ if (!equals(this.tn_1, tmp0_other_with_cast.tn_1))
99
99
  return false;
100
100
  return true;
101
101
  };
@@ -114,7 +114,7 @@
114
114
  }
115
115
  function JsSodiumLoader() {
116
116
  }
117
- protoOf(JsSodiumLoader).nn = function (doneCallback) {
117
+ protoOf(JsSodiumLoader).un = function (doneCallback) {
118
118
  if (!getSodiumLoaded()) {
119
119
  var tmp = ready;
120
120
  tmp.then(JsSodiumLoader$loadWithCallback$lambda(doneCallback));
@@ -162,20 +162,20 @@
162
162
  var sodiumLoaded;
163
163
  function LibsodiumInitializer$initializeWithCallback$lambda($done) {
164
164
  return function () {
165
- LibsodiumInitializer_instance.on_1 = true;
165
+ LibsodiumInitializer_instance.vn_1 = true;
166
166
  $done();
167
167
  return Unit_instance;
168
168
  };
169
169
  }
170
170
  function LibsodiumInitializer() {
171
- this.on_1 = false;
171
+ this.vn_1 = false;
172
172
  }
173
- protoOf(LibsodiumInitializer).pn = function (done) {
173
+ protoOf(LibsodiumInitializer).wn = function (done) {
174
174
  var tmp = JsSodiumLoader_instance;
175
- tmp.nn(LibsodiumInitializer$initializeWithCallback$lambda(done));
175
+ tmp.un(LibsodiumInitializer$initializeWithCallback$lambda(done));
176
176
  };
177
- protoOf(LibsodiumInitializer).hl = function () {
178
- return this.on_1;
177
+ protoOf(LibsodiumInitializer).ol = function () {
178
+ return this.vn_1;
179
179
  };
180
180
  var LibsodiumInitializer_instance;
181
181
  function LibsodiumInitializer_getInstance() {
@@ -189,24 +189,24 @@
189
189
  }
190
190
  function Signature() {
191
191
  }
192
- protoOf(Signature).qn = function () {
192
+ protoOf(Signature).xn = function () {
193
193
  var keypair = getSodium().crypto_sign_keypair();
194
194
  var tmp = keypair.publicKey;
195
195
  var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
196
196
  var tmp_1 = keypair.privateKey;
197
197
  return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
198
198
  };
199
- protoOf(Signature).rn = function (seed) {
199
+ protoOf(Signature).yn = function (seed) {
200
200
  var keypair = getSodium().crypto_sign_seed_keypair(toUInt8Array(seed));
201
201
  var tmp = keypair.publicKey;
202
202
  var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
203
203
  var tmp_1 = keypair.privateKey;
204
204
  return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
205
205
  };
206
- protoOf(Signature).sn = function (message, secretKey) {
206
+ protoOf(Signature).zn = function (message, secretKey) {
207
207
  return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
208
208
  };
209
- protoOf(Signature).tn = function (signature, message, publicKey) {
209
+ protoOf(Signature).ao = function (signature, message, publicKey) {
210
210
  var verificationResult = getSodium().crypto_sign_verify_detached(toUInt8Array(signature), toUInt8Array(message), toUInt8Array(publicKey));
211
211
  if (verificationResult === false) {
212
212
  throw new InvalidSignatureException();
@@ -3,8 +3,9 @@
3
3
  //region block: imports
4
4
  var Unit_instance = kotlin_kotlin.$_$.k5;
5
5
  var VOID = kotlin_kotlin.$_$.h;
6
- var protoOf = kotlin_kotlin.$_$.tb;
7
- var initMetadataForClass = kotlin_kotlin.$_$.ra;
6
+ var protoOf = kotlin_kotlin.$_$.ub;
7
+ var toBoolean = kotlin_kotlin.$_$.fe;
8
+ var initMetadataForClass = kotlin_kotlin.$_$.sa;
8
9
  //endregion
9
10
  //region block: pre-declaration
10
11
  initMetadataForClass(StorageSettings, 'StorageSettings', StorageSettings);
@@ -18,18 +19,29 @@
18
19
  tmp = delegate;
19
20
  }
20
21
  delegate = tmp;
21
- this.d5n_1 = delegate;
22
+ this.d5r_1 = delegate;
22
23
  }
23
24
  protoOf(StorageSettings).e2 = function () {
24
- return this.d5n_1.clear();
25
+ return this.d5r_1.clear();
25
26
  };
26
- protoOf(StorageSettings).e5n = function (key, value) {
27
+ protoOf(StorageSettings).e5r = function (key, value) {
27
28
  // Inline function 'com.russhwolf.settings.set' call
28
- this.d5n_1.setItem(key, value);
29
+ this.d5r_1.setItem(key, value);
29
30
  };
30
- protoOf(StorageSettings).f5n = function (key) {
31
+ protoOf(StorageSettings).f5r = function (key) {
31
32
  // Inline function 'com.russhwolf.settings.get' call
32
- return this.d5n_1.getItem(key);
33
+ return this.d5r_1.getItem(key);
34
+ };
35
+ protoOf(StorageSettings).g5r = function (key, value) {
36
+ var tmp0 = this.d5r_1;
37
+ // Inline function 'com.russhwolf.settings.set' call
38
+ var value_0 = value.toString();
39
+ tmp0.setItem(key, value_0);
40
+ };
41
+ protoOf(StorageSettings).h5r = function (key) {
42
+ // Inline function 'com.russhwolf.settings.get' call
43
+ var tmp0_safe_receiver = this.d5r_1.getItem(key);
44
+ return tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver);
33
45
  };
34
46
  //region block: exports
35
47
  _.$_$ = _.$_$ || {};
@@ -78,6 +78,8 @@ export declare namespace com.doordeck.multiplatform.sdk.context {
78
78
  isCertificateChainAboutToExpire(): boolean;
79
79
  setKeyPair(publicKey: Int8Array, privateKey: Int8Array): void;
80
80
  getKeyPair(): Nullable<com.doordeck.multiplatform.sdk.model.data.Crypto.KeyPair>;
81
+ setKeyPairVerified(verified: boolean): void;
82
+ isKeyPairVerified(): boolean;
81
83
  isKeyPairValid(): boolean;
82
84
  setOperationContext(userId: string, certificateChain: kotlin.collections.KtList<string>, publicKey: Int8Array, privateKey: Int8Array): void;
83
85
  setOperationContextJson(data: string): void;
@@ -1218,9 +1220,10 @@ export declare namespace com.doordeck.multiplatform.sdk.model.responses {
1218
1220
  }
1219
1221
  export declare namespace com.doordeck.multiplatform.sdk.model.responses {
1220
1222
  class AssistedLoginResponse {
1221
- constructor(requiresVerification: boolean);
1223
+ constructor(requiresVerification: boolean, requiresRetry: boolean);
1222
1224
  get requiresVerification(): boolean;
1223
- copy(requiresVerification?: boolean): com.doordeck.multiplatform.sdk.model.responses.AssistedLoginResponse;
1225
+ get requiresRetry(): boolean;
1226
+ copy(requiresVerification?: boolean, requiresRetry?: boolean): com.doordeck.multiplatform.sdk.model.responses.AssistedLoginResponse;
1224
1227
  toString(): string;
1225
1228
  hashCode(): number;
1226
1229
  equals(other: Nullable<any>): boolean;
@@ -1228,9 +1231,10 @@ export declare namespace com.doordeck.multiplatform.sdk.model.responses {
1228
1231
  };
1229
1232
  }
1230
1233
  class AssistedRegisterEphemeralKeyResponse {
1231
- constructor(requiresVerification: boolean);
1234
+ constructor(requiresVerification: boolean, requiresRetry: boolean);
1232
1235
  get requiresVerification(): boolean;
1233
- copy(requiresVerification?: boolean): com.doordeck.multiplatform.sdk.model.responses.AssistedRegisterEphemeralKeyResponse;
1236
+ get requiresRetry(): boolean;
1237
+ copy(requiresVerification?: boolean, requiresRetry?: boolean): com.doordeck.multiplatform.sdk.model.responses.AssistedRegisterEphemeralKeyResponse;
1234
1238
  toString(): string;
1235
1239
  hashCode(): number;
1236
1240
  equals(other: Nullable<any>): boolean;
@@ -1747,6 +1751,8 @@ export declare namespace com.doordeck.multiplatform.sdk.storage {
1747
1751
  getPublicKey(): Nullable<Int8Array>;
1748
1752
  addPrivateKey(byteArray: Int8Array): void;
1749
1753
  getPrivateKey(): Nullable<Int8Array>;
1754
+ setKeyPairVerified(verified: boolean): void;
1755
+ getKeyPairVerified(): Nullable<boolean>;
1750
1756
  addUserId(userId: string): void;
1751
1757
  getUserId(): Nullable<string>;
1752
1758
  addUserEmail(email: string): void;