@doordeck/doordeck-headless-sdk 0.51.0 → 0.53.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/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1323 -1323
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +35 -35
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +9 -9
- package/kotlin/doordeck-sdk.d.ts +11 -4
- package/kotlin/doordeck-sdk.js +13410 -13255
- package/kotlin/kotlin-kotlin-stdlib.js +1845 -2257
- package/kotlin/kotlinx-atomicfu.js +19 -19
- package/kotlin/kotlinx-coroutines-core.js +1918 -1918
- package/kotlin/kotlinx-io-kotlinx-io-core.js +454 -454
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1937 -1937
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1541 -1541
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2846 -2847
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +403 -400
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +210 -210
- package/kotlin/ktor-ktor-http.js +814 -814
- package/kotlin/ktor-ktor-io.js +667 -667
- package/kotlin/ktor-ktor-shared-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +271 -271
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +127 -127
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +55 -55
- package/kotlin/ktor-ktor-utils.js +632 -632
- package/package.json +1 -1
- package/kotlin/Stately-stately-concurrency.js +0 -30
- package/kotlin/Stately-stately-concurrent-collections.js +0 -302
- package/kotlin/Stately-stately-strict.js +0 -10
- package/kotlin/projects-core-koin-core.js +0 -1147
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
var imul = Math.imul;
|
|
5
5
|
var _sodium_init = $module$libsodium_sumo_a6nla1._sodium_init;
|
|
6
6
|
var ready = $module$libsodium_sumo_a6nla1.ready;
|
|
7
|
-
var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.
|
|
8
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
9
|
-
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.
|
|
10
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
11
|
-
var equals = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
14
|
-
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.
|
|
15
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
16
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
17
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
7
|
+
var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.l3;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.ib;
|
|
9
|
+
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.h3;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.ue;
|
|
11
|
+
var equals = kotlin_kotlin.$_$.ba;
|
|
12
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ia;
|
|
13
|
+
var RuntimeException = kotlin_kotlin.$_$.te;
|
|
14
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.f2;
|
|
15
|
+
var captureStack = kotlin_kotlin.$_$.t9;
|
|
16
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
17
|
+
var initMetadataForObject = kotlin_kotlin.$_$.oa;
|
|
18
18
|
var VOID = kotlin_kotlin.$_$.h;
|
|
19
|
-
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.
|
|
20
|
-
var toTypedArray = kotlin_kotlin.$_$.
|
|
21
|
-
var println = kotlin_kotlin.$_$.
|
|
22
|
-
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.
|
|
23
|
-
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.
|
|
24
|
-
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.
|
|
19
|
+
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.k3;
|
|
20
|
+
var toTypedArray = kotlin_kotlin.$_$.q8;
|
|
21
|
+
var println = kotlin_kotlin.$_$.o9;
|
|
22
|
+
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.f3;
|
|
23
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.b3;
|
|
24
|
+
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.i3;
|
|
25
25
|
//endregion
|
|
26
26
|
//region block: pre-declaration
|
|
27
27
|
initMetadataForClass(SignatureKeyPair, 'SignatureKeyPair');
|
|
@@ -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.
|
|
80
|
-
this.
|
|
79
|
+
this.mm_1 = publicKey;
|
|
80
|
+
this.nm_1 = secretKey;
|
|
81
81
|
}
|
|
82
82
|
protoOf(SignatureKeyPair).toString = function () {
|
|
83
|
-
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.
|
|
83
|
+
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.mm_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.nm_1) + ')';
|
|
84
84
|
};
|
|
85
85
|
protoOf(SignatureKeyPair).hashCode = function () {
|
|
86
|
-
var result = UByteArray__hashCode_impl_ip8jx2(this.
|
|
87
|
-
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.
|
|
86
|
+
var result = UByteArray__hashCode_impl_ip8jx2(this.mm_1);
|
|
87
|
+
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.nm_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.
|
|
96
|
+
if (!equals(this.mm_1, tmp0_other_with_cast.mm_1))
|
|
97
97
|
return false;
|
|
98
|
-
if (!equals(this.
|
|
98
|
+
if (!equals(this.nm_1, tmp0_other_with_cast.nm_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).
|
|
117
|
+
protoOf(JsSodiumLoader).om = 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.
|
|
165
|
+
LibsodiumInitializer_instance.pm_1 = true;
|
|
166
166
|
$done();
|
|
167
167
|
return Unit_instance;
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
function LibsodiumInitializer() {
|
|
171
|
-
this.
|
|
171
|
+
this.pm_1 = false;
|
|
172
172
|
}
|
|
173
|
-
protoOf(LibsodiumInitializer).
|
|
173
|
+
protoOf(LibsodiumInitializer).qm = function (done) {
|
|
174
174
|
var tmp = JsSodiumLoader_instance;
|
|
175
|
-
tmp.
|
|
175
|
+
tmp.om(LibsodiumInitializer$initializeWithCallback$lambda(done));
|
|
176
176
|
};
|
|
177
|
-
protoOf(LibsodiumInitializer).
|
|
178
|
-
return this.
|
|
177
|
+
protoOf(LibsodiumInitializer).dk = function () {
|
|
178
|
+
return this.pm_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).
|
|
192
|
+
protoOf(Signature).rm = 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).
|
|
199
|
+
protoOf(Signature).sm = 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).
|
|
206
|
+
protoOf(Signature).tm = function (message, secretKey) {
|
|
207
207
|
return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
|
|
208
208
|
};
|
|
209
|
-
protoOf(Signature).
|
|
209
|
+
protoOf(Signature).um = 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();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(function (_, kotlin_kotlin) {
|
|
2
2
|
'use strict';
|
|
3
3
|
//region block: imports
|
|
4
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
4
|
+
var Unit_instance = kotlin_kotlin.$_$.g5;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.h;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.ib;
|
|
7
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ia;
|
|
8
8
|
//endregion
|
|
9
9
|
//region block: pre-declaration
|
|
10
10
|
initMetadataForClass(StorageSettings, 'StorageSettings', StorageSettings);
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
tmp = delegate;
|
|
19
19
|
}
|
|
20
20
|
delegate = tmp;
|
|
21
|
-
this.
|
|
21
|
+
this.e56_1 = delegate;
|
|
22
22
|
}
|
|
23
23
|
protoOf(StorageSettings).e2 = function () {
|
|
24
|
-
return this.
|
|
24
|
+
return this.e56_1.clear();
|
|
25
25
|
};
|
|
26
|
-
protoOf(StorageSettings).
|
|
26
|
+
protoOf(StorageSettings).f56 = function (key, value) {
|
|
27
27
|
// Inline function 'com.russhwolf.settings.set' call
|
|
28
|
-
this.
|
|
28
|
+
this.e56_1.setItem(key, value);
|
|
29
29
|
};
|
|
30
|
-
protoOf(StorageSettings).
|
|
30
|
+
protoOf(StorageSettings).g56 = function (key) {
|
|
31
31
|
// Inline function 'com.russhwolf.settings.get' call
|
|
32
|
-
return this.
|
|
32
|
+
return this.e56_1.getItem(key);
|
|
33
33
|
};
|
|
34
34
|
//region block: exports
|
|
35
35
|
_.$_$ = _.$_$ || {};
|
package/kotlin/doordeck-sdk.d.ts
CHANGED
|
@@ -34,9 +34,6 @@ export declare namespace com.doordeck.multiplatform.sdk {
|
|
|
34
34
|
class MissingContextFieldException extends com.doordeck.multiplatform.sdk.SdkException {
|
|
35
35
|
constructor(message: string);
|
|
36
36
|
}
|
|
37
|
-
class MissingAndroidContextException extends com.doordeck.multiplatform.sdk.SdkException {
|
|
38
|
-
constructor(message: string);
|
|
39
|
-
}
|
|
40
37
|
class BadRequestException extends com.doordeck.multiplatform.sdk.SdkException {
|
|
41
38
|
constructor(message: string);
|
|
42
39
|
}
|
|
@@ -82,6 +79,8 @@ export declare namespace com.doordeck.multiplatform.sdk {
|
|
|
82
79
|
}
|
|
83
80
|
export declare namespace com.doordeck.multiplatform.sdk.api {
|
|
84
81
|
interface ContextManager {
|
|
82
|
+
setApiEnvironment(apiEnvironment: com.doordeck.multiplatform.sdk.api.model.ApiEnvironment): void;
|
|
83
|
+
getApiEnvironment(): com.doordeck.multiplatform.sdk.api.model.ApiEnvironment;
|
|
85
84
|
setAuthToken(token: string): void;
|
|
86
85
|
getAuthToken(): Nullable<string>;
|
|
87
86
|
isAuthTokenAboutToExpire(): boolean;
|
|
@@ -788,6 +787,12 @@ export declare namespace com.doordeck.multiplatform.sdk.api.responses {
|
|
|
788
787
|
static get Companion(): {
|
|
789
788
|
};
|
|
790
789
|
}
|
|
790
|
+
class AssistedRegisterEphemeralKeyResponse {
|
|
791
|
+
constructor(requiresVerification: boolean);
|
|
792
|
+
get requiresVerification(): boolean;
|
|
793
|
+
static get Companion(): {
|
|
794
|
+
};
|
|
795
|
+
}
|
|
791
796
|
}
|
|
792
797
|
export declare namespace com.doordeck.multiplatform.sdk.api.responses {
|
|
793
798
|
class LockResponse {
|
|
@@ -1223,7 +1228,7 @@ export declare namespace com.doordeck.multiplatform.sdk.api {
|
|
|
1223
1228
|
export declare namespace com.doordeck.multiplatform.sdk.api {
|
|
1224
1229
|
interface AccountlessResource {
|
|
1225
1230
|
login(email: string, password: string): Promise<com.doordeck.multiplatform.sdk.api.responses.TokenResponse>;
|
|
1226
|
-
registration(email: string, password: string, displayName?: Nullable<string>, force?: boolean): Promise<com.doordeck.multiplatform.sdk.api.responses.TokenResponse>;
|
|
1231
|
+
registration(email: string, password: string, displayName?: Nullable<string>, force?: boolean, publicKey?: Nullable<Int8Array>): Promise<com.doordeck.multiplatform.sdk.api.responses.TokenResponse>;
|
|
1227
1232
|
verifyEmail(code: string): Promise<any>;
|
|
1228
1233
|
readonly __doNotUseOrImplementIt: {
|
|
1229
1234
|
readonly "com.doordeck.multiplatform.sdk.api.AccountlessResource": unique symbol;
|
|
@@ -1251,6 +1256,8 @@ export declare namespace com.doordeck.multiplatform.sdk.api {
|
|
|
1251
1256
|
interface HelperResource {
|
|
1252
1257
|
uploadPlatformLogo(applicationId: string, contentType: string, image: Int8Array): Promise<any>;
|
|
1253
1258
|
assistedLogin(email: string, password: string): Promise<com.doordeck.multiplatform.sdk.api.responses.AssistedLoginResponse>;
|
|
1259
|
+
assistedRegisterEphemeralKey(publicKey?: Nullable<Int8Array>): Promise<com.doordeck.multiplatform.sdk.api.responses.AssistedRegisterEphemeralKeyResponse>;
|
|
1260
|
+
assistedRegister(email: string, password: string, displayName?: Nullable<string>, force?: boolean): Promise<any>;
|
|
1254
1261
|
readonly __doNotUseOrImplementIt: {
|
|
1255
1262
|
readonly "com.doordeck.multiplatform.sdk.api.HelperResource": unique symbol;
|
|
1256
1263
|
};
|