@doordeck/doordeck-headless-sdk 0.137.0 → 0.139.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/Kermit-kermit-core.js +61 -61
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +2 -6459
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +57 -57
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +80 -80
- package/kotlin/doordeck-sdk.js +13815 -13617
- package/kotlin/kotlin-kotlin-stdlib.js +3464 -2905
- package/kotlin/kotlinx-atomicfu.js +24 -24
- package/kotlin/kotlinx-coroutines-core.js +2412 -2409
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +54 -54
- package/kotlin/kotlinx-io-kotlinx-io-core.js +568 -568
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2130 -2118
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1675 -1659
- package/kotlin/ktor-ktor-client-auth.js +476 -476
- package/kotlin/ktor-ktor-client-content-negotiation.js +220 -220
- package/kotlin/ktor-ktor-client-core.js +3068 -3086
- package/kotlin/ktor-ktor-client-logging.js +1206 -1206
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +603 -586
- package/kotlin/ktor-ktor-http.js +888 -888
- package/kotlin/ktor-ktor-io.js +1140 -1140
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/kotlin/ktor-ktor-serialization-kotlinx.js +287 -287
- package/kotlin/ktor-ktor-serialization.js +130 -130
- package/kotlin/ktor-ktor-utils.js +961 -961
- package/kotlin/ktor-ktor-websockets.js +54 -54
- package/package.json +7 -7
|
@@ -4,32 +4,32 @@
|
|
|
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 Companion_instance = kotlin_kotlin.$_$.
|
|
18
|
-
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.
|
|
19
|
-
var createFailure = kotlin_kotlin.$_$.
|
|
20
|
-
var intercepted = kotlin_kotlin.$_$.
|
|
7
|
+
var UByteArray__toString_impl_ukpl97 = kotlin_kotlin.$_$.h3;
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.ib;
|
|
9
|
+
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.d3;
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.cf;
|
|
11
|
+
var equals = kotlin_kotlin.$_$.ba;
|
|
12
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ia;
|
|
13
|
+
var RuntimeException = kotlin_kotlin.$_$.bf;
|
|
14
|
+
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.f2;
|
|
15
|
+
var captureStack = kotlin_kotlin.$_$.s9;
|
|
16
|
+
var Unit_instance = kotlin_kotlin.$_$.f5;
|
|
17
|
+
var Companion_instance = kotlin_kotlin.$_$.a5;
|
|
18
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.t2;
|
|
19
|
+
var createFailure = kotlin_kotlin.$_$.tf;
|
|
20
|
+
var intercepted = kotlin_kotlin.$_$.x8;
|
|
21
21
|
var SafeContinuation_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
22
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
22
|
+
var initMetadataForObject = kotlin_kotlin.$_$.oa;
|
|
23
23
|
var VOID = kotlin_kotlin.$_$.h;
|
|
24
|
-
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.
|
|
25
|
-
var toTypedArray = kotlin_kotlin.$_$.
|
|
26
|
-
var println = kotlin_kotlin.$_$.
|
|
27
|
-
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.
|
|
28
|
-
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.
|
|
29
|
-
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.
|
|
30
|
-
var CoroutineImpl = kotlin_kotlin.$_$.
|
|
31
|
-
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForCoroutine = kotlin_kotlin.$_$.
|
|
24
|
+
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.g3;
|
|
25
|
+
var toTypedArray = kotlin_kotlin.$_$.p8;
|
|
26
|
+
var println = kotlin_kotlin.$_$.n9;
|
|
27
|
+
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.b3;
|
|
28
|
+
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.x2;
|
|
29
|
+
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.e3;
|
|
30
|
+
var CoroutineImpl = kotlin_kotlin.$_$.k9;
|
|
31
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.u8;
|
|
32
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ka;
|
|
33
33
|
//endregion
|
|
34
34
|
//region block: pre-declaration
|
|
35
35
|
initMetadataForClass(SignatureKeyPair, 'SignatureKeyPair');
|
|
@@ -85,15 +85,15 @@
|
|
|
85
85
|
var crypto_secretstream_xchacha20poly1305_KEYBYTES;
|
|
86
86
|
var crypto_secretstream_xchacha20poly1305_ABYTES;
|
|
87
87
|
function SignatureKeyPair(publicKey, secretKey) {
|
|
88
|
-
this.
|
|
89
|
-
this.
|
|
88
|
+
this.wo_1 = publicKey;
|
|
89
|
+
this.xo_1 = secretKey;
|
|
90
90
|
}
|
|
91
91
|
protoOf(SignatureKeyPair).toString = function () {
|
|
92
|
-
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.
|
|
92
|
+
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.wo_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.xo_1) + ')';
|
|
93
93
|
};
|
|
94
94
|
protoOf(SignatureKeyPair).hashCode = function () {
|
|
95
|
-
var result = UByteArray__hashCode_impl_ip8jx2(this.
|
|
96
|
-
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.
|
|
95
|
+
var result = UByteArray__hashCode_impl_ip8jx2(this.wo_1);
|
|
96
|
+
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.xo_1) | 0;
|
|
97
97
|
return result;
|
|
98
98
|
};
|
|
99
99
|
protoOf(SignatureKeyPair).equals = function (other) {
|
|
@@ -102,9 +102,9 @@
|
|
|
102
102
|
if (!(other instanceof SignatureKeyPair))
|
|
103
103
|
return false;
|
|
104
104
|
var tmp0_other_with_cast = other instanceof SignatureKeyPair ? other : THROW_CCE();
|
|
105
|
-
if (!equals(this.
|
|
105
|
+
if (!equals(this.wo_1, tmp0_other_with_cast.wo_1))
|
|
106
106
|
return false;
|
|
107
|
-
if (!equals(this.
|
|
107
|
+
if (!equals(this.xo_1, tmp0_other_with_cast.xo_1))
|
|
108
108
|
return false;
|
|
109
109
|
return true;
|
|
110
110
|
};
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
set_sodiumLoaded(true);
|
|
120
120
|
// Inline function 'kotlin.Companion.success' call
|
|
121
121
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
122
|
-
$continuation.
|
|
122
|
+
$continuation.u9(tmp$ret$0);
|
|
123
123
|
return Unit_instance;
|
|
124
124
|
};
|
|
125
125
|
}
|
|
@@ -127,13 +127,13 @@
|
|
|
127
127
|
return function (e) {
|
|
128
128
|
// Inline function 'kotlin.Companion.failure' call
|
|
129
129
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
130
|
-
$continuation.
|
|
130
|
+
$continuation.u9(tmp$ret$0);
|
|
131
131
|
return Unit_instance;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
function JsSodiumLoader() {
|
|
135
135
|
}
|
|
136
|
-
protoOf(JsSodiumLoader).
|
|
136
|
+
protoOf(JsSodiumLoader).yo = function ($completion) {
|
|
137
137
|
var safe = SafeContinuation_init_$Create$(intercepted($completion));
|
|
138
138
|
if (!getSodiumLoaded()) {
|
|
139
139
|
var tmp = ready;
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
} else {
|
|
143
143
|
// Inline function 'kotlin.Companion.success' call
|
|
144
144
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
145
|
-
safe.
|
|
145
|
+
safe.u9(tmp$ret$0);
|
|
146
146
|
}
|
|
147
|
-
return safe.
|
|
147
|
+
return safe.ba();
|
|
148
148
|
};
|
|
149
149
|
var JsSodiumLoader_instance;
|
|
150
150
|
function JsSodiumLoader_getInstance() {
|
|
@@ -186,48 +186,48 @@
|
|
|
186
186
|
var sodiumLoaded;
|
|
187
187
|
function $initializeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
188
188
|
CoroutineImpl.call(this, resultContinuation);
|
|
189
|
-
this.
|
|
189
|
+
this.hp_1 = _this__u8e3s4;
|
|
190
190
|
}
|
|
191
|
-
protoOf($initializeCOROUTINE$).
|
|
192
|
-
var suspendResult = this.
|
|
191
|
+
protoOf($initializeCOROUTINE$).r9 = function () {
|
|
192
|
+
var suspendResult = this.l9_1;
|
|
193
193
|
$sm: do
|
|
194
194
|
try {
|
|
195
|
-
var tmp = this.
|
|
195
|
+
var tmp = this.j9_1;
|
|
196
196
|
switch (tmp) {
|
|
197
197
|
case 0:
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
200
|
-
suspendResult = JsSodiumLoader_instance.
|
|
198
|
+
this.k9_1 = 2;
|
|
199
|
+
this.j9_1 = 1;
|
|
200
|
+
suspendResult = JsSodiumLoader_instance.yo(this);
|
|
201
201
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
202
202
|
return suspendResult;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
continue $sm;
|
|
206
206
|
case 1:
|
|
207
|
-
this.
|
|
207
|
+
this.hp_1.ip_1 = true;
|
|
208
208
|
return Unit_instance;
|
|
209
209
|
case 2:
|
|
210
|
-
throw this.
|
|
210
|
+
throw this.m9_1;
|
|
211
211
|
}
|
|
212
212
|
} catch ($p) {
|
|
213
213
|
var e = $p;
|
|
214
|
-
if (this.
|
|
214
|
+
if (this.k9_1 === 2) {
|
|
215
215
|
throw e;
|
|
216
216
|
} else {
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
217
|
+
this.j9_1 = this.k9_1;
|
|
218
|
+
this.m9_1 = e;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
221
|
while (true);
|
|
222
222
|
};
|
|
223
223
|
function LibsodiumInitializer() {
|
|
224
|
-
this.
|
|
224
|
+
this.ip_1 = false;
|
|
225
225
|
}
|
|
226
|
-
protoOf(LibsodiumInitializer).
|
|
226
|
+
protoOf(LibsodiumInitializer).jp = function ($completion) {
|
|
227
227
|
var tmp = new $initializeCOROUTINE$(this, $completion);
|
|
228
|
-
tmp.
|
|
229
|
-
tmp.
|
|
230
|
-
return tmp.
|
|
228
|
+
tmp.l9_1 = Unit_instance;
|
|
229
|
+
tmp.m9_1 = null;
|
|
230
|
+
return tmp.r9();
|
|
231
231
|
};
|
|
232
232
|
var LibsodiumInitializer_instance;
|
|
233
233
|
function LibsodiumInitializer_getInstance() {
|
|
@@ -241,24 +241,24 @@
|
|
|
241
241
|
}
|
|
242
242
|
function Signature() {
|
|
243
243
|
}
|
|
244
|
-
protoOf(Signature).
|
|
244
|
+
protoOf(Signature).kp = function () {
|
|
245
245
|
var keypair = getSodium().crypto_sign_keypair();
|
|
246
246
|
var tmp = keypair.publicKey;
|
|
247
247
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
248
248
|
var tmp_1 = keypair.privateKey;
|
|
249
249
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
250
250
|
};
|
|
251
|
-
protoOf(Signature).
|
|
251
|
+
protoOf(Signature).lp = function (seed) {
|
|
252
252
|
var keypair = getSodium().crypto_sign_seed_keypair(toUInt8Array(seed));
|
|
253
253
|
var tmp = keypair.publicKey;
|
|
254
254
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
255
255
|
var tmp_1 = keypair.privateKey;
|
|
256
256
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
257
257
|
};
|
|
258
|
-
protoOf(Signature).
|
|
258
|
+
protoOf(Signature).mp = function (message, secretKey) {
|
|
259
259
|
return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
|
|
260
260
|
};
|
|
261
|
-
protoOf(Signature).
|
|
261
|
+
protoOf(Signature).np = function (signature, message, publicKey) {
|
|
262
262
|
var verificationResult = getSodium().crypto_sign_verify_detached(toUInt8Array(signature), toUInt8Array(message), toUInt8Array(publicKey));
|
|
263
263
|
if (verificationResult === false) {
|
|
264
264
|
throw new InvalidSignatureException();
|
|
@@ -1,12 +1,12 @@
|
|
|
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.$_$.f5;
|
|
5
5
|
var VOID = kotlin_kotlin.$_$.h;
|
|
6
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
7
|
-
var toIntOrNull = kotlin_kotlin.$_$.
|
|
8
|
-
var toBoolean = kotlin_kotlin.$_$.
|
|
9
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
6
|
+
var protoOf = kotlin_kotlin.$_$.ib;
|
|
7
|
+
var toIntOrNull = kotlin_kotlin.$_$.ud;
|
|
8
|
+
var toBoolean = kotlin_kotlin.$_$.qd;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ia;
|
|
10
10
|
//endregion
|
|
11
11
|
//region block: pre-declaration
|
|
12
12
|
initMetadataForClass(StorageSettings, 'StorageSettings', StorageSettings);
|
|
@@ -20,46 +20,46 @@
|
|
|
20
20
|
tmp = delegate;
|
|
21
21
|
}
|
|
22
22
|
delegate = tmp;
|
|
23
|
-
this.
|
|
23
|
+
this.z60_1 = delegate;
|
|
24
24
|
}
|
|
25
25
|
protoOf(StorageSettings).e2 = function () {
|
|
26
|
-
return this.
|
|
26
|
+
return this.z60_1.clear();
|
|
27
27
|
};
|
|
28
|
-
protoOf(StorageSettings).
|
|
29
|
-
return this.
|
|
28
|
+
protoOf(StorageSettings).w2p = function (key) {
|
|
29
|
+
return this.z60_1.removeItem(key);
|
|
30
30
|
};
|
|
31
|
-
protoOf(StorageSettings).
|
|
31
|
+
protoOf(StorageSettings).a61 = function (key) {
|
|
32
32
|
// Inline function 'com.russhwolf.settings.get' call
|
|
33
|
-
return !(this.
|
|
33
|
+
return !(this.z60_1.getItem(key) == null);
|
|
34
34
|
};
|
|
35
|
-
protoOf(StorageSettings).
|
|
36
|
-
var tmp0 = this.
|
|
35
|
+
protoOf(StorageSettings).b61 = function (key, value) {
|
|
36
|
+
var tmp0 = this.z60_1;
|
|
37
37
|
// Inline function 'com.russhwolf.settings.set' call
|
|
38
38
|
var value_0 = value.toString();
|
|
39
39
|
tmp0.setItem(key, value_0);
|
|
40
40
|
};
|
|
41
|
-
protoOf(StorageSettings).
|
|
41
|
+
protoOf(StorageSettings).c61 = function (key) {
|
|
42
42
|
// Inline function 'com.russhwolf.settings.get' call
|
|
43
|
-
var tmp0_safe_receiver = this.
|
|
43
|
+
var tmp0_safe_receiver = this.z60_1.getItem(key);
|
|
44
44
|
return tmp0_safe_receiver == null ? null : toIntOrNull(tmp0_safe_receiver);
|
|
45
45
|
};
|
|
46
|
-
protoOf(StorageSettings).
|
|
46
|
+
protoOf(StorageSettings).d61 = function (key, value) {
|
|
47
47
|
// Inline function 'com.russhwolf.settings.set' call
|
|
48
|
-
this.
|
|
48
|
+
this.z60_1.setItem(key, value);
|
|
49
49
|
};
|
|
50
|
-
protoOf(StorageSettings).
|
|
50
|
+
protoOf(StorageSettings).e61 = function (key) {
|
|
51
51
|
// Inline function 'com.russhwolf.settings.get' call
|
|
52
|
-
return this.
|
|
52
|
+
return this.z60_1.getItem(key);
|
|
53
53
|
};
|
|
54
|
-
protoOf(StorageSettings).
|
|
55
|
-
var tmp0 = this.
|
|
54
|
+
protoOf(StorageSettings).f61 = function (key, value) {
|
|
55
|
+
var tmp0 = this.z60_1;
|
|
56
56
|
// Inline function 'com.russhwolf.settings.set' call
|
|
57
57
|
var value_0 = value.toString();
|
|
58
58
|
tmp0.setItem(key, value_0);
|
|
59
59
|
};
|
|
60
|
-
protoOf(StorageSettings).
|
|
60
|
+
protoOf(StorageSettings).g61 = function (key) {
|
|
61
61
|
// Inline function 'com.russhwolf.settings.get' call
|
|
62
|
-
var tmp0_safe_receiver = this.
|
|
62
|
+
var tmp0_safe_receiver = this.z60_1.getItem(key);
|
|
63
63
|
return tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver);
|
|
64
64
|
};
|
|
65
65
|
//region block: exports
|