@doordeck/doordeck-headless-sdk 0.133.0 → 0.135.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 +59 -59
- package/kotlin/Kermit-kermit.js +8 -8
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1533 -1533
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +91 -39
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +23 -23
- package/kotlin/doordeck-sdk.d.ts +659 -1291
- package/kotlin/doordeck-sdk.js +29932 -27348
- package/kotlin/kotlin-kotlin-stdlib.js +2370 -2221
- package/kotlin/kotlinx-atomicfu.js +18 -18
- package/kotlin/kotlinx-coroutines-core.js +2307 -2307
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +50 -50
- package/kotlin/kotlinx-io-kotlinx-io-core.js +471 -471
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +2019 -1951
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1576 -1576
- package/kotlin/ktor-ktor-client-auth.js +472 -472
- package/kotlin/ktor-ktor-client-content-negotiation.js +219 -219
- package/kotlin/ktor-ktor-client-core.js +3030 -3030
- package/kotlin/ktor-ktor-client-logging.js +1195 -1195
- package/kotlin/ktor-ktor-events.js +12 -12
- package/kotlin/ktor-ktor-http-cio.js +535 -535
- package/kotlin/ktor-ktor-http.js +845 -845
- package/kotlin/ktor-ktor-io.js +1126 -1126
- package/kotlin/ktor-ktor-serialization-kotlinx-json.js +6 -6
- package/kotlin/ktor-ktor-serialization-kotlinx.js +283 -283
- package/kotlin/ktor-ktor-serialization.js +129 -129
- package/kotlin/ktor-ktor-utils.js +902 -900
- package/kotlin/ktor-ktor-websockets.js +53 -53
- package/package.json +1 -1
|
@@ -5,28 +5,37 @@
|
|
|
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.$_$.
|
|
8
|
+
var protoOf = kotlin_kotlin.$_$.yb;
|
|
9
9
|
var UByteArray__hashCode_impl_ip8jx2 = kotlin_kotlin.$_$.l3;
|
|
10
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
11
|
-
var equals = kotlin_kotlin.$_$.
|
|
12
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
13
|
-
var RuntimeException = kotlin_kotlin.$_$.
|
|
10
|
+
var THROW_CCE = kotlin_kotlin.$_$.xf;
|
|
11
|
+
var equals = kotlin_kotlin.$_$.pa;
|
|
12
|
+
var initMetadataForClass = kotlin_kotlin.$_$.wa;
|
|
13
|
+
var RuntimeException = kotlin_kotlin.$_$.wf;
|
|
14
14
|
var RuntimeException_init_$Init$ = kotlin_kotlin.$_$.j2;
|
|
15
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
16
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
17
|
-
var
|
|
15
|
+
var captureStack = kotlin_kotlin.$_$.ga;
|
|
16
|
+
var Unit_instance = kotlin_kotlin.$_$.l5;
|
|
17
|
+
var Companion_instance = kotlin_kotlin.$_$.g5;
|
|
18
|
+
var _Result___init__impl__xyqfz8 = kotlin_kotlin.$_$.b3;
|
|
19
|
+
var createFailure = kotlin_kotlin.$_$.og;
|
|
20
|
+
var intercepted = kotlin_kotlin.$_$.l9;
|
|
21
|
+
var SafeContinuation_init_$Create$ = kotlin_kotlin.$_$.g1;
|
|
22
|
+
var initMetadataForObject = kotlin_kotlin.$_$.cb;
|
|
18
23
|
var VOID = kotlin_kotlin.$_$.h;
|
|
19
24
|
var _UByteArray___get_storage__impl__d4kctt = kotlin_kotlin.$_$.o3;
|
|
20
|
-
var toTypedArray = kotlin_kotlin.$_$.
|
|
21
|
-
var println = kotlin_kotlin.$_$.
|
|
25
|
+
var toTypedArray = kotlin_kotlin.$_$.d9;
|
|
26
|
+
var println = kotlin_kotlin.$_$.ba;
|
|
22
27
|
var _UByteArray___init__impl__ip4y9n = kotlin_kotlin.$_$.j3;
|
|
23
28
|
var _UByte___init__impl__g9hnc4 = kotlin_kotlin.$_$.f3;
|
|
24
29
|
var UByteArray__set_impl_jvcicn = kotlin_kotlin.$_$.m3;
|
|
30
|
+
var CoroutineImpl = kotlin_kotlin.$_$.y9;
|
|
31
|
+
var get_COROUTINE_SUSPENDED = kotlin_kotlin.$_$.i9;
|
|
32
|
+
var initMetadataForCoroutine = kotlin_kotlin.$_$.ya;
|
|
25
33
|
//endregion
|
|
26
34
|
//region block: pre-declaration
|
|
27
35
|
initMetadataForClass(SignatureKeyPair, 'SignatureKeyPair');
|
|
28
36
|
initMetadataForClass(InvalidSignatureException, 'InvalidSignatureException', InvalidSignatureException, RuntimeException);
|
|
29
37
|
initMetadataForObject(JsSodiumLoader, 'JsSodiumLoader', VOID, VOID, VOID, [0]);
|
|
38
|
+
initMetadataForCoroutine($initializeCOROUTINE$, CoroutineImpl);
|
|
30
39
|
initMetadataForObject(LibsodiumInitializer, 'LibsodiumInitializer', VOID, VOID, VOID, [0]);
|
|
31
40
|
initMetadataForObject(Signature, 'Signature');
|
|
32
41
|
//endregion
|
|
@@ -76,15 +85,15 @@
|
|
|
76
85
|
var crypto_secretstream_xchacha20poly1305_KEYBYTES;
|
|
77
86
|
var crypto_secretstream_xchacha20poly1305_ABYTES;
|
|
78
87
|
function SignatureKeyPair(publicKey, secretKey) {
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
88
|
+
this.vn_1 = publicKey;
|
|
89
|
+
this.wn_1 = secretKey;
|
|
81
90
|
}
|
|
82
91
|
protoOf(SignatureKeyPair).toString = function () {
|
|
83
|
-
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.
|
|
92
|
+
return 'SignatureKeyPair(publicKey=' + UByteArray__toString_impl_ukpl97(this.vn_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.wn_1) + ')';
|
|
84
93
|
};
|
|
85
94
|
protoOf(SignatureKeyPair).hashCode = function () {
|
|
86
|
-
var result = UByteArray__hashCode_impl_ip8jx2(this.
|
|
87
|
-
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.
|
|
95
|
+
var result = UByteArray__hashCode_impl_ip8jx2(this.vn_1);
|
|
96
|
+
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.wn_1) | 0;
|
|
88
97
|
return result;
|
|
89
98
|
};
|
|
90
99
|
protoOf(SignatureKeyPair).equals = function (other) {
|
|
@@ -93,9 +102,9 @@
|
|
|
93
102
|
if (!(other instanceof SignatureKeyPair))
|
|
94
103
|
return false;
|
|
95
104
|
var tmp0_other_with_cast = other instanceof SignatureKeyPair ? other : THROW_CCE();
|
|
96
|
-
if (!equals(this.
|
|
105
|
+
if (!equals(this.vn_1, tmp0_other_with_cast.vn_1))
|
|
97
106
|
return false;
|
|
98
|
-
if (!equals(this.
|
|
107
|
+
if (!equals(this.wn_1, tmp0_other_with_cast.wn_1))
|
|
99
108
|
return false;
|
|
100
109
|
return true;
|
|
101
110
|
};
|
|
@@ -104,23 +113,38 @@
|
|
|
104
113
|
captureStack(this, InvalidSignatureException);
|
|
105
114
|
}
|
|
106
115
|
var randombytes_SEEDBYTES;
|
|
107
|
-
function JsSodiumLoader$
|
|
116
|
+
function JsSodiumLoader$load$lambda($continuation) {
|
|
108
117
|
return function (it) {
|
|
109
118
|
_sodium_init();
|
|
110
119
|
set_sodiumLoaded(true);
|
|
111
|
-
|
|
120
|
+
// Inline function 'kotlin.Companion.success' call
|
|
121
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
122
|
+
$continuation.t9(tmp$ret$0);
|
|
123
|
+
return Unit_instance;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
function JsSodiumLoader$load$lambda_0($continuation) {
|
|
127
|
+
return function (e) {
|
|
128
|
+
// Inline function 'kotlin.Companion.failure' call
|
|
129
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
130
|
+
$continuation.t9(tmp$ret$0);
|
|
112
131
|
return Unit_instance;
|
|
113
132
|
};
|
|
114
133
|
}
|
|
115
134
|
function JsSodiumLoader() {
|
|
116
135
|
}
|
|
117
|
-
protoOf(JsSodiumLoader).
|
|
136
|
+
protoOf(JsSodiumLoader).xn = function ($completion) {
|
|
137
|
+
var safe = SafeContinuation_init_$Create$(intercepted($completion));
|
|
118
138
|
if (!getSodiumLoaded()) {
|
|
119
139
|
var tmp = ready;
|
|
120
|
-
tmp.then(JsSodiumLoader$
|
|
140
|
+
var tmp_0 = tmp.then(JsSodiumLoader$load$lambda(safe));
|
|
141
|
+
tmp_0.catch(JsSodiumLoader$load$lambda_0(safe));
|
|
121
142
|
} else {
|
|
122
|
-
|
|
143
|
+
// Inline function 'kotlin.Companion.success' call
|
|
144
|
+
var tmp$ret$0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
145
|
+
safe.t9(tmp$ret$0);
|
|
123
146
|
}
|
|
147
|
+
return safe.aa();
|
|
124
148
|
};
|
|
125
149
|
var JsSodiumLoader_instance;
|
|
126
150
|
function JsSodiumLoader_getInstance() {
|
|
@@ -160,22 +184,50 @@
|
|
|
160
184
|
sodiumLoaded = _set____db54di;
|
|
161
185
|
}
|
|
162
186
|
var sodiumLoaded;
|
|
163
|
-
function
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
$done();
|
|
167
|
-
return Unit_instance;
|
|
168
|
-
};
|
|
187
|
+
function $initializeCOROUTINE$(_this__u8e3s4, resultContinuation) {
|
|
188
|
+
CoroutineImpl.call(this, resultContinuation);
|
|
189
|
+
this.go_1 = _this__u8e3s4;
|
|
169
190
|
}
|
|
191
|
+
protoOf($initializeCOROUTINE$).q9 = function () {
|
|
192
|
+
var suspendResult = this.k9_1;
|
|
193
|
+
$sm: do
|
|
194
|
+
try {
|
|
195
|
+
var tmp = this.i9_1;
|
|
196
|
+
switch (tmp) {
|
|
197
|
+
case 0:
|
|
198
|
+
this.j9_1 = 2;
|
|
199
|
+
this.i9_1 = 1;
|
|
200
|
+
suspendResult = JsSodiumLoader_instance.xn(this);
|
|
201
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
202
|
+
return suspendResult;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
continue $sm;
|
|
206
|
+
case 1:
|
|
207
|
+
this.go_1.ho_1 = true;
|
|
208
|
+
return Unit_instance;
|
|
209
|
+
case 2:
|
|
210
|
+
throw this.l9_1;
|
|
211
|
+
}
|
|
212
|
+
} catch ($p) {
|
|
213
|
+
var e = $p;
|
|
214
|
+
if (this.j9_1 === 2) {
|
|
215
|
+
throw e;
|
|
216
|
+
} else {
|
|
217
|
+
this.i9_1 = this.j9_1;
|
|
218
|
+
this.l9_1 = e;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
while (true);
|
|
222
|
+
};
|
|
170
223
|
function LibsodiumInitializer() {
|
|
171
|
-
this.
|
|
224
|
+
this.ho_1 = false;
|
|
172
225
|
}
|
|
173
|
-
protoOf(LibsodiumInitializer).
|
|
174
|
-
var tmp =
|
|
175
|
-
tmp.
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
return this.wn_1;
|
|
226
|
+
protoOf(LibsodiumInitializer).io = function ($completion) {
|
|
227
|
+
var tmp = new $initializeCOROUTINE$(this, $completion);
|
|
228
|
+
tmp.k9_1 = Unit_instance;
|
|
229
|
+
tmp.l9_1 = null;
|
|
230
|
+
return tmp.q9();
|
|
179
231
|
};
|
|
180
232
|
var LibsodiumInitializer_instance;
|
|
181
233
|
function LibsodiumInitializer_getInstance() {
|
|
@@ -189,24 +241,24 @@
|
|
|
189
241
|
}
|
|
190
242
|
function Signature() {
|
|
191
243
|
}
|
|
192
|
-
protoOf(Signature).
|
|
244
|
+
protoOf(Signature).jo = function () {
|
|
193
245
|
var keypair = getSodium().crypto_sign_keypair();
|
|
194
246
|
var tmp = keypair.publicKey;
|
|
195
247
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
196
248
|
var tmp_1 = keypair.privateKey;
|
|
197
249
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
198
250
|
};
|
|
199
|
-
protoOf(Signature).
|
|
251
|
+
protoOf(Signature).ko = function (seed) {
|
|
200
252
|
var keypair = getSodium().crypto_sign_seed_keypair(toUInt8Array(seed));
|
|
201
253
|
var tmp = keypair.publicKey;
|
|
202
254
|
var tmp_0 = toUByteArray(tmp instanceof Uint8Array ? tmp : THROW_CCE());
|
|
203
255
|
var tmp_1 = keypair.privateKey;
|
|
204
256
|
return new SignatureKeyPair(tmp_0, toUByteArray(tmp_1 instanceof Uint8Array ? tmp_1 : THROW_CCE()));
|
|
205
257
|
};
|
|
206
|
-
protoOf(Signature).
|
|
258
|
+
protoOf(Signature).lo = function (message, secretKey) {
|
|
207
259
|
return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
|
|
208
260
|
};
|
|
209
|
-
protoOf(Signature).
|
|
261
|
+
protoOf(Signature).mo = function (signature, message, publicKey) {
|
|
210
262
|
var verificationResult = getSodium().crypto_sign_verify_detached(toUInt8Array(signature), toUInt8Array(message), toUInt8Array(publicKey));
|
|
211
263
|
if (verificationResult === false) {
|
|
212
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.$_$.l5;
|
|
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.$_$.yb;
|
|
7
|
+
var toIntOrNull = kotlin_kotlin.$_$.pe;
|
|
8
|
+
var toBoolean = kotlin_kotlin.$_$.le;
|
|
9
|
+
var initMetadataForClass = kotlin_kotlin.$_$.wa;
|
|
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.k6g_1 = delegate;
|
|
24
24
|
}
|
|
25
25
|
protoOf(StorageSettings).e2 = function () {
|
|
26
|
-
return this.
|
|
26
|
+
return this.k6g_1.clear();
|
|
27
27
|
};
|
|
28
|
-
protoOf(StorageSettings).
|
|
29
|
-
return this.
|
|
28
|
+
protoOf(StorageSettings).t2o = function (key) {
|
|
29
|
+
return this.k6g_1.removeItem(key);
|
|
30
30
|
};
|
|
31
|
-
protoOf(StorageSettings).
|
|
31
|
+
protoOf(StorageSettings).l6g = function (key) {
|
|
32
32
|
// Inline function 'com.russhwolf.settings.get' call
|
|
33
|
-
return !(this.
|
|
33
|
+
return !(this.k6g_1.getItem(key) == null);
|
|
34
34
|
};
|
|
35
|
-
protoOf(StorageSettings).
|
|
36
|
-
var tmp0 = this.
|
|
35
|
+
protoOf(StorageSettings).m6g = function (key, value) {
|
|
36
|
+
var tmp0 = this.k6g_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).n6g = function (key) {
|
|
42
42
|
// Inline function 'com.russhwolf.settings.get' call
|
|
43
|
-
var tmp0_safe_receiver = this.
|
|
43
|
+
var tmp0_safe_receiver = this.k6g_1.getItem(key);
|
|
44
44
|
return tmp0_safe_receiver == null ? null : toIntOrNull(tmp0_safe_receiver);
|
|
45
45
|
};
|
|
46
|
-
protoOf(StorageSettings).
|
|
46
|
+
protoOf(StorageSettings).o6g = function (key, value) {
|
|
47
47
|
// Inline function 'com.russhwolf.settings.set' call
|
|
48
|
-
this.
|
|
48
|
+
this.k6g_1.setItem(key, value);
|
|
49
49
|
};
|
|
50
|
-
protoOf(StorageSettings).
|
|
50
|
+
protoOf(StorageSettings).p6g = function (key) {
|
|
51
51
|
// Inline function 'com.russhwolf.settings.get' call
|
|
52
|
-
return this.
|
|
52
|
+
return this.k6g_1.getItem(key);
|
|
53
53
|
};
|
|
54
|
-
protoOf(StorageSettings).
|
|
55
|
-
var tmp0 = this.
|
|
54
|
+
protoOf(StorageSettings).q6g = function (key, value) {
|
|
55
|
+
var tmp0 = this.k6g_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).r6g = function (key) {
|
|
61
61
|
// Inline function 'com.russhwolf.settings.get' call
|
|
62
|
-
var tmp0_safe_receiver = this.
|
|
62
|
+
var tmp0_safe_receiver = this.k6g_1.getItem(key);
|
|
63
63
|
return tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver);
|
|
64
64
|
};
|
|
65
65
|
//region block: exports
|