@doordeck/doordeck-headless-sdk 0.104.0 → 0.106.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/README.md +1 -1
- package/kotlin/Kermit-kermit-core.js +316 -0
- package/kotlin/Kermit-kermit.js +51 -0
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +1399 -1399
- package/kotlin/KotlinMultiplatformLibsodium-multiplatform-crypto-libsodium-bindings.js +17 -17
- package/kotlin/MultiplatformSettings-multiplatform-settings.js +10 -10
- package/kotlin/doordeck-sdk.d.ts +4 -2
- package/kotlin/doordeck-sdk.js +9905 -9672
- package/kotlin/kotlin-kotlin-stdlib.js +167 -158
- package/kotlin/kotlinx-atomicfu.js +13 -13
- package/kotlin/kotlinx-coroutines-core.js +2086 -1904
- package/kotlin/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlin/kotlinx-io-kotlinx-io-core.js +427 -427
- package/kotlin/kotlinx-serialization-kotlinx-serialization-core.js +1738 -1738
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +1346 -1346
- package/kotlin/ktor-ktor-client-ktor-client-core.js +2314 -1913
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-auth.js +254 -254
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-content-negotiation.js +151 -151
- package/kotlin/ktor-ktor-client-ktor-client-plugins-ktor-client-logging.js +3131 -2
- package/kotlin/ktor-ktor-http-ktor-http-cio.js +350 -350
- package/kotlin/ktor-ktor-http.js +730 -715
- package/kotlin/ktor-ktor-io.js +805 -630
- package/kotlin/ktor-ktor-shared-ktor-events.js +9 -9
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx-ktor-serialization-kotlinx-json.js +7 -7
- package/kotlin/ktor-ktor-shared-ktor-serialization-ktor-serialization-kotlinx.js +146 -146
- package/kotlin/ktor-ktor-shared-ktor-serialization.js +68 -68
- package/kotlin/ktor-ktor-shared-ktor-websockets.js +40 -40
- package/kotlin/ktor-ktor-utils.js +1182 -577
- package/package.json +1 -1
|
@@ -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.tn_1 = publicKey;
|
|
80
|
+
this.un_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.tn_1) + ', secretKey=' + UByteArray__toString_impl_ukpl97(this.un_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.tn_1);
|
|
87
|
+
result = imul(result, 31) + UByteArray__hashCode_impl_ip8jx2(this.un_1) | 0;
|
|
88
88
|
return result;
|
|
89
89
|
};
|
|
90
90
|
protoOf(SignatureKeyPair).equals = function (other) {
|
|
@@ -93,10 +93,10 @@
|
|
|
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.sn_1, tmp0_other_with_cast.sn_1))
|
|
97
|
-
return false;
|
|
98
96
|
if (!equals(this.tn_1, tmp0_other_with_cast.tn_1))
|
|
99
97
|
return false;
|
|
98
|
+
if (!equals(this.un_1, tmp0_other_with_cast.un_1))
|
|
99
|
+
return false;
|
|
100
100
|
return true;
|
|
101
101
|
};
|
|
102
102
|
function InvalidSignatureException() {
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
}
|
|
115
115
|
function JsSodiumLoader() {
|
|
116
116
|
}
|
|
117
|
-
protoOf(JsSodiumLoader).
|
|
117
|
+
protoOf(JsSodiumLoader).vn = 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.wn_1 = true;
|
|
166
166
|
$done();
|
|
167
167
|
return Unit_instance;
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
function LibsodiumInitializer() {
|
|
171
|
-
this.
|
|
171
|
+
this.wn_1 = false;
|
|
172
172
|
}
|
|
173
|
-
protoOf(LibsodiumInitializer).
|
|
173
|
+
protoOf(LibsodiumInitializer).xn = function (done) {
|
|
174
174
|
var tmp = JsSodiumLoader_instance;
|
|
175
|
-
tmp.
|
|
175
|
+
tmp.vn(LibsodiumInitializer$initializeWithCallback$lambda(done));
|
|
176
176
|
};
|
|
177
177
|
protoOf(LibsodiumInitializer).ol = function () {
|
|
178
|
-
return this.
|
|
178
|
+
return this.wn_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).yn = 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).zn = 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).ao = function (message, secretKey) {
|
|
207
207
|
return toUByteArray(getSodium().crypto_sign_detached(toUInt8Array(message), toUInt8Array(secretKey)));
|
|
208
208
|
};
|
|
209
|
-
protoOf(Signature).
|
|
209
|
+
protoOf(Signature).bo = 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();
|
|
@@ -19,28 +19,28 @@
|
|
|
19
19
|
tmp = delegate;
|
|
20
20
|
}
|
|
21
21
|
delegate = tmp;
|
|
22
|
-
this.
|
|
22
|
+
this.r6f_1 = delegate;
|
|
23
23
|
}
|
|
24
24
|
protoOf(StorageSettings).e2 = function () {
|
|
25
|
-
return this.
|
|
25
|
+
return this.r6f_1.clear();
|
|
26
26
|
};
|
|
27
|
-
protoOf(StorageSettings).
|
|
27
|
+
protoOf(StorageSettings).s6f = function (key, value) {
|
|
28
28
|
// Inline function 'com.russhwolf.settings.set' call
|
|
29
|
-
this.
|
|
29
|
+
this.r6f_1.setItem(key, value);
|
|
30
30
|
};
|
|
31
|
-
protoOf(StorageSettings).
|
|
31
|
+
protoOf(StorageSettings).t6f = function (key) {
|
|
32
32
|
// Inline function 'com.russhwolf.settings.get' call
|
|
33
|
-
return this.
|
|
33
|
+
return this.r6f_1.getItem(key);
|
|
34
34
|
};
|
|
35
|
-
protoOf(StorageSettings).
|
|
36
|
-
var tmp0 = this.
|
|
35
|
+
protoOf(StorageSettings).u6f = function (key, value) {
|
|
36
|
+
var tmp0 = this.r6f_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).v6f = function (key) {
|
|
42
42
|
// Inline function 'com.russhwolf.settings.get' call
|
|
43
|
-
var tmp0_safe_receiver = this.
|
|
43
|
+
var tmp0_safe_receiver = this.r6f_1.getItem(key);
|
|
44
44
|
return tmp0_safe_receiver == null ? null : toBoolean(tmp0_safe_receiver);
|
|
45
45
|
};
|
|
46
46
|
//region block: exports
|
package/kotlin/doordeck-sdk.d.ts
CHANGED
|
@@ -38,13 +38,14 @@ export declare namespace com.doordeck.multiplatform.sdk {
|
|
|
38
38
|
}
|
|
39
39
|
export declare namespace com.doordeck.multiplatform.sdk.config {
|
|
40
40
|
class SdkConfig {
|
|
41
|
-
constructor(apiEnvironment: Nullable<com.doordeck.multiplatform.sdk.model.data.ApiEnvironment> | undefined, cloudAuthToken: Nullable<string> | undefined, cloudRefreshToken: Nullable<string> | undefined, fusionHost: Nullable<string>, secureStorage: com.doordeck.multiplatform.sdk.storage.SecureStorage);
|
|
41
|
+
constructor(apiEnvironment: Nullable<com.doordeck.multiplatform.sdk.model.data.ApiEnvironment> | undefined, cloudAuthToken: Nullable<string> | undefined, cloudRefreshToken: Nullable<string> | undefined, fusionHost: Nullable<string>, secureStorage: com.doordeck.multiplatform.sdk.storage.SecureStorage, debugLogging?: Nullable<boolean>);
|
|
42
42
|
get apiEnvironment(): Nullable<com.doordeck.multiplatform.sdk.model.data.ApiEnvironment>;
|
|
43
43
|
get cloudAuthToken(): Nullable<string>;
|
|
44
44
|
get cloudRefreshToken(): Nullable<string>;
|
|
45
45
|
get fusionHost(): Nullable<string>;
|
|
46
46
|
get secureStorage(): com.doordeck.multiplatform.sdk.storage.SecureStorage;
|
|
47
|
-
|
|
47
|
+
get debugLogging(): Nullable<boolean>;
|
|
48
|
+
copy(apiEnvironment?: Nullable<com.doordeck.multiplatform.sdk.model.data.ApiEnvironment>, cloudAuthToken?: Nullable<string>, cloudRefreshToken?: Nullable<string>, fusionHost?: Nullable<string>, secureStorage?: com.doordeck.multiplatform.sdk.storage.SecureStorage, debugLogging?: Nullable<boolean>): com.doordeck.multiplatform.sdk.config.SdkConfig;
|
|
48
49
|
toString(): string;
|
|
49
50
|
hashCode(): number;
|
|
50
51
|
equals(other: Nullable<any>): boolean;
|
|
@@ -57,6 +58,7 @@ export declare namespace com.doordeck.multiplatform.sdk.config {
|
|
|
57
58
|
setCloudRefreshToken(cloudRefreshToken: Nullable<string>): com.doordeck.multiplatform.sdk.config.SdkConfig.Builder;
|
|
58
59
|
setFusionHost(fusionHost: Nullable<string>): com.doordeck.multiplatform.sdk.config.SdkConfig.Builder;
|
|
59
60
|
setSecureStorageOverride(secureStorage: Nullable<com.doordeck.multiplatform.sdk.storage.SecureStorage>): com.doordeck.multiplatform.sdk.config.SdkConfig.Builder;
|
|
61
|
+
setDebugLogging(enabled: Nullable<boolean>): com.doordeck.multiplatform.sdk.config.SdkConfig.Builder;
|
|
60
62
|
build(): com.doordeck.multiplatform.sdk.config.SdkConfig;
|
|
61
63
|
}
|
|
62
64
|
}
|