@solibo/solibo-sdk 1.9.8 → 1.9.10
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-stdlib.mjs +20 -20
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlinx-coroutines-core.mjs +8 -8
- package/kotlinx-coroutines-core.mjs.map +1 -1
- package/ktor-ktor-websockets.mjs +2 -2
- package/package.json +1 -1
- package/solibo-sdk-sdk.d.mts +1 -1
- package/solibo-sdk-sdk.mjs +74 -50
- package/solibo-sdk-sdk.mjs.map +1 -1
package/ktor-ktor-websockets.mjs
CHANGED
|
@@ -72,8 +72,8 @@ import {
|
|
|
72
72
|
_ChannelResult___get_isClosed__impl__mg7kuu1g5u2zmbzbfb4 as _ChannelResult___get_isClosed__impl__mg7kuu,
|
|
73
73
|
close$default1evna6yun3t5h as close$default,
|
|
74
74
|
cancel$default1fq6eekptkf7a as cancel$default,
|
|
75
|
-
SendChannel38sllbxw662ws as SendChannel,
|
|
76
75
|
ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
|
|
76
|
+
SendChannel38sllbxw662ws as SendChannel,
|
|
77
77
|
} from './kotlinx-coroutines-core.mjs';
|
|
78
78
|
import {
|
|
79
79
|
get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
|
|
@@ -139,7 +139,7 @@ initMetadataForCompanion(Companion_3);
|
|
|
139
139
|
initMetadataForClass(ChannelConfig, 'ChannelConfig');
|
|
140
140
|
initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
|
|
141
141
|
initMetadataForCompanion(Companion_4);
|
|
142
|
-
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [
|
|
142
|
+
initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
|
|
143
143
|
initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
|
|
144
144
|
initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
|
|
145
145
|
initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
|
package/package.json
CHANGED
package/solibo-sdk-sdk.d.mts
CHANGED
|
@@ -23665,7 +23665,7 @@ export declare namespace SoliboSDK {
|
|
|
23665
23665
|
abstract class constructor {
|
|
23666
23666
|
createBrowser(userPoolId: string, clientId: string, settings?: any/* Settings */, fingerprinter?: Fingerprinter, pushTokenProvider?: PushTokenProvider, configure?: (p0: SoliboSDK.KotlinBuilder) => void): SoliboSDK;
|
|
23667
23667
|
createMobile(userPoolId: string, clientId: string, settings?: any/* Settings */, fingerprinter?: Fingerprinter, pushTokenProvider?: PushTokenProvider, configure?: (p0: SoliboSDK.KotlinBuilder) => void): SoliboSDK;
|
|
23668
|
-
createM2M(clientId: string, clientSecret: string, scopes?: KtList<string
|
|
23668
|
+
createM2M(clientId: string, clientSecret: string, scopes?: KtList<string> | null | undefined, settings?: any/* Settings */, fingerprinter?: Fingerprinter, pushTokenProvider?: PushTokenProvider, configure?: (p0: SoliboSDK.KotlinBuilder) => void): SoliboSDK;
|
|
23669
23669
|
createDelegated(accessToken: string, identity?: string | null | undefined, baseUrl?: string, settings?: any/* Settings */, configure?: (p0: SoliboSDK.KotlinBuilder) => void): SoliboSDK;
|
|
23670
23670
|
createKotlin(userPoolName: string, settings?: any/* Settings */, fingerprinter?: Fingerprinter, pushTokenProvider?: PushTokenProvider, configure?: (p0: SoliboSDK.KotlinBuilder) => void): SoliboSDK;
|
|
23671
23671
|
private constructor();
|
package/solibo-sdk-sdk.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl,
|
|
7
7
|
initMetadataForLambda3af3he42mmnh as initMetadataForLambda,
|
|
8
8
|
VOID3gxj6tk5isa35 as VOID,
|
|
9
|
-
listOf1jh22dvmctj1r as listOf,
|
|
10
9
|
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
11
10
|
defineProp3ur6h3slcvq4x as defineProp,
|
|
12
11
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
@@ -103,10 +102,12 @@ import {
|
|
|
103
102
|
split3d3yeauc4rm2n as split_0,
|
|
104
103
|
collectionSizeOrDefault36dulx8yinfqm as collectionSizeOrDefault,
|
|
105
104
|
ArrayList_init_$Create$2byt5m5yn22yy as ArrayList_init_$Create$_0,
|
|
105
|
+
listOf1jh22dvmctj1r as listOf,
|
|
106
106
|
plus310ted5e4i90h as plus,
|
|
107
107
|
joinToString1cxrrlmo0chqs as joinToString,
|
|
108
108
|
listOfNotNull1v4ggfackvuny as listOfNotNull,
|
|
109
109
|
copyToArray2j022khrow2yi as copyToArray,
|
|
110
|
+
removePrefix279df90bhrqqg as removePrefix,
|
|
110
111
|
toMap1vec9topfei08 as toMap,
|
|
111
112
|
toList3jhuyej2anx2q as toList,
|
|
112
113
|
filterNotNull3qfgcwmxhwfxe as filterNotNull,
|
|
@@ -156,7 +157,6 @@ import {
|
|
|
156
157
|
_UByte___get_data__impl__jof9qr23gcv767stjfh as _UByte___get_data__impl__jof9qr,
|
|
157
158
|
jsIsFunction2h24qpa0gp5p3 as jsIsFunction,
|
|
158
159
|
throwUninitializedPropertyAccessException14fok093f3k3t as throwUninitializedPropertyAccessException,
|
|
159
|
-
removePrefix279df90bhrqqg as removePrefix,
|
|
160
160
|
toByteArray3caw0hip00os as toByteArray,
|
|
161
161
|
toInt5qdj874w69jh as toInt,
|
|
162
162
|
toList383f556t1dixk as toList_0,
|
|
@@ -1066,7 +1066,7 @@ protoOf(Companion).rw1 = function (clientId, clientSecret, scopes, settings, fin
|
|
|
1066
1066
|
return this_0.build();
|
|
1067
1067
|
};
|
|
1068
1068
|
protoOf(Companion).createM2M = function (clientId, clientSecret, scopes, settings, fingerprinter, pushTokenProvider, configure, $super) {
|
|
1069
|
-
scopes = scopes === VOID ?
|
|
1069
|
+
scopes = scopes === VOID ? null : scopes;
|
|
1070
1070
|
settings = settings === VOID ? (new Platform()).pw1() : settings;
|
|
1071
1071
|
fingerprinter = fingerprinter === VOID ? NoOpFingerprinter_instance : fingerprinter;
|
|
1072
1072
|
pushTokenProvider = pushTokenProvider === VOID ? NoOpPushTokenProvider_instance : pushTokenProvider;
|
|
@@ -6475,8 +6475,8 @@ function HomeApi$clientConfigurator$lambda$lambda_10(this$0, $platformName) {
|
|
|
6475
6475
|
}
|
|
6476
6476
|
accept($this$defaultRequest, Application_getInstance().d3z_1);
|
|
6477
6477
|
header($this$defaultRequest, 'Accept-Language', buildAcceptLanguage(this$0.userLanguage));
|
|
6478
|
-
header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.9.
|
|
6479
|
-
header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.9.
|
|
6478
|
+
header($this$defaultRequest, 'User-Agent', 'SoliboSDK/1.9.10 (' + $platformName + ')');
|
|
6479
|
+
header($this$defaultRequest, 'X-Solibo-SDK-Version', '1.9.10');
|
|
6480
6480
|
return Unit_instance;
|
|
6481
6481
|
};
|
|
6482
6482
|
}
|
|
@@ -7653,16 +7653,7 @@ protoOf($refreshCOROUTINE$).u9 = function () {
|
|
|
7653
7653
|
tmp_33 = tmp1_elvis_lhs_0;
|
|
7654
7654
|
}
|
|
7655
7655
|
|
|
7656
|
-
|
|
7657
|
-
var tmp_35;
|
|
7658
|
-
var this_14 = this.wwo_1.scopes;
|
|
7659
|
-
if (this_14 == null || this_14.r()) {
|
|
7660
|
-
tmp_35 = listOf(['read', 'write']);
|
|
7661
|
-
} else {
|
|
7662
|
-
tmp_35 = ensureNotNull(this.wwo_1.scopes);
|
|
7663
|
-
}
|
|
7664
|
-
|
|
7665
|
-
suspendResult = tmp_30.hbv(new CreateM2MTokensCommand(tmp_32, tmp_34, tmp_35), this);
|
|
7656
|
+
suspendResult = tmp_30.hbv(new CreateM2MTokensCommand(tmp_32, tmp_33, normalizedM2MScopes(this.wwo_1.scopes)), this);
|
|
7666
7657
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
7667
7658
|
return suspendResult;
|
|
7668
7659
|
}
|
|
@@ -7684,37 +7675,37 @@ protoOf($refreshCOROUTINE$).u9 = function () {
|
|
|
7684
7675
|
case 26:
|
|
7685
7676
|
var authResult_1 = suspendResult;
|
|
7686
7677
|
var tmp2_elvis_lhs = authResult_1.tokens;
|
|
7687
|
-
var
|
|
7678
|
+
var tmp_34;
|
|
7688
7679
|
if (tmp2_elvis_lhs == null) {
|
|
7689
7680
|
throw Exception_init_$Create$('M2M Token acquisition returned no tokens');
|
|
7690
7681
|
} else {
|
|
7691
|
-
|
|
7682
|
+
tmp_34 = tmp2_elvis_lhs;
|
|
7692
7683
|
}
|
|
7693
7684
|
|
|
7694
|
-
var tokens_0 =
|
|
7685
|
+
var tokens_0 = tmp_34;
|
|
7695
7686
|
var builder_0 = new JsonObjectBuilder();
|
|
7696
7687
|
builder_0.h1h('accessToken', JsonPrimitive(tokens_0.accessToken));
|
|
7697
7688
|
builder_0.h1h('identity', JsonPrimitive(tokens_0.identity));
|
|
7698
7689
|
builder_0.h1h('data', JsonPrimitive(tokens_0.data));
|
|
7699
7690
|
var jsonObject_0 = builder_0.w1f();
|
|
7700
|
-
var
|
|
7701
|
-
var
|
|
7702
|
-
var
|
|
7703
|
-
var jsonString_0 =
|
|
7691
|
+
var this_14 = Default_getInstance_0();
|
|
7692
|
+
var this_15 = this_14.mt();
|
|
7693
|
+
var this_16 = serializer(this_15, createKType(getKClass(JsonObject), arrayOf([]), false));
|
|
7694
|
+
var jsonString_0 = this_14.iu(isInterface(this_16, KSerializer) ? this_16 : THROW_CCE(), jsonObject_0);
|
|
7704
7695
|
var encoded_0 = Default_getInstance().zk_1.el(toByteArray_0(jsonString_0));
|
|
7705
7696
|
this.wwo_1.setToken(encoded_0);
|
|
7706
7697
|
this.wwo_1.nwp(tokens_0.identity);
|
|
7707
7698
|
this.wwo_1.vw3_1 = System_instance.ro().op();
|
|
7708
|
-
var
|
|
7699
|
+
var tmp_35 = this;
|
|
7709
7700
|
var tmp3_safe_receiver_0 = this.wwo_1.tw3_1;
|
|
7710
|
-
var
|
|
7701
|
+
var tmp_36;
|
|
7711
7702
|
if (tmp3_safe_receiver_0 == null) {
|
|
7712
|
-
|
|
7703
|
+
tmp_36 = null;
|
|
7713
7704
|
} else {
|
|
7714
|
-
|
|
7705
|
+
tmp_36 = new BearerTokens(tmp3_safe_receiver_0, '');
|
|
7715
7706
|
}
|
|
7716
7707
|
|
|
7717
|
-
|
|
7708
|
+
tmp_35.bwp_1 = tmp_36;
|
|
7718
7709
|
this.m9_1 = 27;
|
|
7719
7710
|
continue $sm;
|
|
7720
7711
|
case 27:
|
|
@@ -7723,10 +7714,10 @@ protoOf($refreshCOROUTINE$).u9 = function () {
|
|
|
7723
7714
|
this.m9_1 = 28;
|
|
7724
7715
|
continue $sm;
|
|
7725
7716
|
case 28:
|
|
7726
|
-
var
|
|
7717
|
+
var tmp_37 = this.awp_1;
|
|
7727
7718
|
this.n9_1 = 30;
|
|
7728
7719
|
this.zwo_1.b33(this.ywo_1);
|
|
7729
|
-
return
|
|
7720
|
+
return tmp_37;
|
|
7730
7721
|
case 29:
|
|
7731
7722
|
this.n9_1 = 30;
|
|
7732
7723
|
var t = this.p9_1;
|
|
@@ -7943,7 +7934,7 @@ function HomeApi(fingerprinter, device, httpClientEngine, settings, configurator
|
|
|
7943
7934
|
this.vw3_1 = 0n;
|
|
7944
7935
|
this.ww3_1 = null;
|
|
7945
7936
|
this.xw3_1 = null;
|
|
7946
|
-
this.yw3_1 =
|
|
7937
|
+
this.yw3_1 = null;
|
|
7947
7938
|
this.zw3_1 = null;
|
|
7948
7939
|
this.aw4_1 = 'nb-NO';
|
|
7949
7940
|
this.tw3_1 = this.jw3_1.xve('bearerToken');
|
|
@@ -8748,6 +8739,57 @@ function parseApiErrors(body) {
|
|
|
8748
8739
|
}
|
|
8749
8740
|
return tmp_10;
|
|
8750
8741
|
}
|
|
8742
|
+
function normalizedM2MScopes(_this__u8e3s4) {
|
|
8743
|
+
var tmp;
|
|
8744
|
+
if (_this__u8e3s4 == null) {
|
|
8745
|
+
tmp = null;
|
|
8746
|
+
} else {
|
|
8747
|
+
// Inline function 'kotlin.collections.map' call
|
|
8748
|
+
// Inline function 'kotlin.collections.mapTo' call
|
|
8749
|
+
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
8750
|
+
var _iterator__ex2g4s = _this__u8e3s4.t();
|
|
8751
|
+
while (_iterator__ex2g4s.u()) {
|
|
8752
|
+
var item = _iterator__ex2g4s.v();
|
|
8753
|
+
var tmp$ret$2 = removePrefix(item, 'solibo-home/');
|
|
8754
|
+
destination.e1(tmp$ret$2);
|
|
8755
|
+
}
|
|
8756
|
+
tmp = destination;
|
|
8757
|
+
}
|
|
8758
|
+
var tmp1_safe_receiver = tmp;
|
|
8759
|
+
var tmp_0;
|
|
8760
|
+
if (tmp1_safe_receiver == null) {
|
|
8761
|
+
tmp_0 = null;
|
|
8762
|
+
} else {
|
|
8763
|
+
// Inline function 'kotlin.collections.filter' call
|
|
8764
|
+
// Inline function 'kotlin.collections.filterTo' call
|
|
8765
|
+
var destination_0 = ArrayList_init_$Create$();
|
|
8766
|
+
var _iterator__ex2g4s_0 = tmp1_safe_receiver.t();
|
|
8767
|
+
while (_iterator__ex2g4s_0.u()) {
|
|
8768
|
+
var element = _iterator__ex2g4s_0.v();
|
|
8769
|
+
// Inline function 'kotlin.text.isNotBlank' call
|
|
8770
|
+
if (!isBlank(element)) {
|
|
8771
|
+
destination_0.e1(element);
|
|
8772
|
+
}
|
|
8773
|
+
}
|
|
8774
|
+
tmp_0 = destination_0;
|
|
8775
|
+
}
|
|
8776
|
+
var tmp2_safe_receiver = tmp_0;
|
|
8777
|
+
var tmp_1;
|
|
8778
|
+
if (tmp2_safe_receiver == null) {
|
|
8779
|
+
tmp_1 = null;
|
|
8780
|
+
} else {
|
|
8781
|
+
// Inline function 'kotlin.takeIf' call
|
|
8782
|
+
var tmp_2;
|
|
8783
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
8784
|
+
if (!tmp2_safe_receiver.r()) {
|
|
8785
|
+
tmp_2 = tmp2_safe_receiver;
|
|
8786
|
+
} else {
|
|
8787
|
+
tmp_2 = null;
|
|
8788
|
+
}
|
|
8789
|
+
tmp_1 = tmp_2;
|
|
8790
|
+
}
|
|
8791
|
+
return tmp_1;
|
|
8792
|
+
}
|
|
8751
8793
|
function removeEmptyStringsAndNulls(element) {
|
|
8752
8794
|
var tmp;
|
|
8753
8795
|
if (element instanceof JsonObject) {
|
|
@@ -34264,16 +34306,7 @@ function SoliboSDKJsBuilder(cognitoUserPoolId, domain, fingerprinter, pushTokenP
|
|
|
34264
34306
|
authMode = authMode === VOID ? (new Platform()).ow1_1 : authMode;
|
|
34265
34307
|
clientId = clientId === VOID ? null : clientId;
|
|
34266
34308
|
clientSecret = clientSecret === VOID ? null : clientSecret;
|
|
34267
|
-
|
|
34268
|
-
if (scopes === VOID) {
|
|
34269
|
-
// Inline function 'kotlin.arrayOf' call
|
|
34270
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
34271
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
34272
|
-
tmp = ['read', 'write'];
|
|
34273
|
-
} else {
|
|
34274
|
-
tmp = scopes;
|
|
34275
|
-
}
|
|
34276
|
-
scopes = tmp;
|
|
34309
|
+
scopes = scopes === VOID ? null : scopes;
|
|
34277
34310
|
this.jyh_1 = cognitoUserPoolId;
|
|
34278
34311
|
this.kyh_1 = domain;
|
|
34279
34312
|
this.lyh_1 = fingerprinter;
|
|
@@ -34360,16 +34393,7 @@ protoOf(SoliboSDKJsBuilder).uyh = function (clientId, clientSecret, scopes) {
|
|
|
34360
34393
|
return this;
|
|
34361
34394
|
};
|
|
34362
34395
|
protoOf(SoliboSDKJsBuilder).withM2M = function (clientId, clientSecret, scopes, $super) {
|
|
34363
|
-
|
|
34364
|
-
if (scopes === VOID) {
|
|
34365
|
-
// Inline function 'kotlin.arrayOf' call
|
|
34366
|
-
// Inline function 'kotlin.js.unsafeCast' call
|
|
34367
|
-
// Inline function 'kotlin.js.asDynamic' call
|
|
34368
|
-
tmp = ['read', 'write'];
|
|
34369
|
-
} else {
|
|
34370
|
-
tmp = scopes;
|
|
34371
|
-
}
|
|
34372
|
-
scopes = tmp;
|
|
34396
|
+
scopes = scopes === VOID ? null : scopes;
|
|
34373
34397
|
return $super === VOID ? this.uyh(clientId, clientSecret, scopes) : $super.uyh.call(this, clientId, clientSecret, scopes);
|
|
34374
34398
|
};
|
|
34375
34399
|
protoOf(SoliboSDKJsBuilder).build = function () {
|