@solibo/solibo-sdk 1.0.34 → 1.0.35
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/KmLogging-logging.js +108 -108
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1426 -1426
- package/KotlinBigInteger-bignum.js +1115 -1115
- package/MultiplatformSettings-multiplatform-settings.js +17 -17
- package/Stately-stately-concurrency.js +5 -5
- package/cryptography-kotlin-cryptography-bigint.js +28 -28
- package/cryptography-kotlin-cryptography-core.js +47 -47
- package/cryptography-kotlin-cryptography-provider-base.js +8 -8
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +136 -136
- package/cryptography-kotlin-cryptography-random.js +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.js +118 -118
- package/cryptography-kotlin-cryptography-serialization-asn1.js +256 -256
- package/cryptography-kotlin-cryptography-serialization-pem.js +15 -15
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/kotlin-kotlin-stdlib.js +20 -20
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +1819 -1819
- package/kotlinx-io-kotlinx-io-bytestring.js +32 -32
- package/kotlinx-io-kotlinx-io-core.js +451 -451
- package/kotlinx-serialization-kotlinx-serialization-json.js +1095 -1111
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +258 -258
- package/ktor-ktor-client-content-negotiation.js +45 -45
- package/ktor-ktor-client-core.js +2687 -2687
- package/ktor-ktor-client-logging.js +621 -621
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http-cio.js +320 -320
- package/ktor-ktor-http.js +901 -901
- package/ktor-ktor-io.js +632 -632
- package/ktor-ktor-serialization-kotlinx-json.js +8 -8
- package/ktor-ktor-serialization-kotlinx.js +36 -36
- package/ktor-ktor-serialization.js +57 -57
- package/ktor-ktor-utils.js +671 -671
- package/ktor-ktor-websockets.js +383 -383
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +11791 -11474
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +18 -0
- package/solibo-sdk-sdk.js +1471 -1471
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
this.e6c_1 = $pattern;
|
|
136
136
|
}
|
|
137
137
|
protoOf(ContentNegotiationConfig$defaultMatcher$1).f6c = function (contentType) {
|
|
138
|
-
return contentType.
|
|
138
|
+
return contentType.l3e(this.e6c_1);
|
|
139
139
|
};
|
|
140
140
|
function ContentNegotiationConfig() {
|
|
141
141
|
this.g6c_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
tmp.h6c_1 = ArrayList_init_$Create$();
|
|
145
145
|
this.i6c_1 = null;
|
|
146
146
|
}
|
|
147
|
-
protoOf(ContentNegotiationConfig).
|
|
148
|
-
var matcher = contentType.
|
|
147
|
+
protoOf(ContentNegotiationConfig).g46 = function (contentType, converter, configuration) {
|
|
148
|
+
var matcher = contentType.l3e(Application_getInstance().r3c_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
149
149
|
this.j6c(contentType, converter, matcher, configuration);
|
|
150
150
|
};
|
|
151
151
|
protoOf(ContentNegotiationConfig).j6c = function (contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
@@ -167,10 +167,10 @@
|
|
|
167
167
|
}
|
|
168
168
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
169
169
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
170
|
-
var registrations = $this$createClientPlugin.
|
|
171
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
172
|
-
$this$createClientPlugin.
|
|
173
|
-
$this$createClientPlugin.
|
|
170
|
+
var registrations = $this$createClientPlugin.v4i_1.h6c_1;
|
|
171
|
+
var ignoredTypes = $this$createClientPlugin.v4i_1.g6c_1;
|
|
172
|
+
$this$createClientPlugin.b53(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
173
|
+
$this$createClientPlugin.z4r(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
174
174
|
return Unit_instance;
|
|
175
175
|
}
|
|
176
176
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
return tmp.q9();
|
|
185
185
|
}
|
|
186
186
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
187
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
187
|
+
charset = charset === VOID ? Charsets_getInstance().d31_1 : charset;
|
|
188
188
|
var tmp = new $invoke$convertResponseCOROUTINE$(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
189
189
|
tmp.k9_1 = Unit_instance;
|
|
190
190
|
tmp.l9_1 = null;
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
tmp.l9_1 = null;
|
|
203
203
|
return tmp.q9();
|
|
204
204
|
};
|
|
205
|
-
protoOf(ContentNegotiation$lambda$slambda).
|
|
205
|
+
protoOf(ContentNegotiation$lambda$slambda).e4t = function (p1, p2, p3, p4, $completion) {
|
|
206
206
|
var tmp = p1 instanceof TransformRequestBodyContext ? p1 : THROW_CCE();
|
|
207
207
|
var tmp_0 = p2 instanceof HttpRequestBuilder ? p2 : THROW_CCE();
|
|
208
208
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
@@ -261,17 +261,17 @@
|
|
|
261
261
|
this.u6e_1 = $this_createClientPlugin;
|
|
262
262
|
CoroutineImpl.call(this, resultContinuation);
|
|
263
263
|
}
|
|
264
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
265
|
-
var tmp = this.
|
|
264
|
+
protoOf(ContentNegotiation$lambda$slambda_1).c4t = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
265
|
+
var tmp = this.d4t($this$transformResponseBody, response, body, info, $completion);
|
|
266
266
|
tmp.k9_1 = Unit_instance;
|
|
267
267
|
tmp.l9_1 = null;
|
|
268
268
|
return tmp.q9();
|
|
269
269
|
};
|
|
270
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
270
|
+
protoOf(ContentNegotiation$lambda$slambda_1).e4t = function (p1, p2, p3, p4, $completion) {
|
|
271
271
|
var tmp = p1 instanceof TransformResponseBodyContext ? p1 : THROW_CCE();
|
|
272
272
|
var tmp_0 = p2 instanceof HttpResponse ? p2 : THROW_CCE();
|
|
273
273
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel) : false) ? p3 : THROW_CCE();
|
|
274
|
-
return this.
|
|
274
|
+
return this.c4t(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo ? p4 : THROW_CCE(), $completion);
|
|
275
275
|
};
|
|
276
276
|
protoOf(ContentNegotiation$lambda$slambda_1).q9 = function () {
|
|
277
277
|
var suspendResult = this.k9_1;
|
|
@@ -290,9 +290,9 @@
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
var contentType_0 = tmp_0;
|
|
293
|
-
var charset = suitableCharset(get_request(this.w6e_1).
|
|
293
|
+
var charset = suitableCharset(get_request(this.w6e_1).v3j());
|
|
294
294
|
this.i9_1 = 1;
|
|
295
|
-
suspendResult = invoke$convertResponse(this.s6e_1, this.t6e_1, this.u6e_1, get_request(this.w6e_1).
|
|
295
|
+
suspendResult = invoke$convertResponse(this.s6e_1, this.t6e_1, this.u6e_1, get_request(this.w6e_1).y4b(), this.y6e_1, this.x6e_1, contentType_0, charset, this);
|
|
296
296
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
297
297
|
return suspendResult;
|
|
298
298
|
}
|
|
@@ -314,7 +314,7 @@
|
|
|
314
314
|
}
|
|
315
315
|
while (true);
|
|
316
316
|
};
|
|
317
|
-
protoOf(ContentNegotiation$lambda$slambda_1).
|
|
317
|
+
protoOf(ContentNegotiation$lambda$slambda_1).d4t = function ($this$transformResponseBody, response, body, info, completion) {
|
|
318
318
|
var i = new ContentNegotiation$lambda$slambda_1(this.s6e_1, this.t6e_1, this.u6e_1, completion);
|
|
319
319
|
i.v6e_1 = $this$transformResponseBody;
|
|
320
320
|
i.w6e_1 = response;
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
326
326
|
var i = new ContentNegotiation$lambda$slambda_1($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
327
327
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
328
|
-
return i.
|
|
328
|
+
return i.c4t($this$transformResponseBody, response, body, info, $completion);
|
|
329
329
|
};
|
|
330
330
|
l.$arity = 4;
|
|
331
331
|
return l;
|
|
@@ -347,8 +347,8 @@
|
|
|
347
347
|
case 0:
|
|
348
348
|
this.j9_1 = 7;
|
|
349
349
|
var tmp_0;
|
|
350
|
-
if (this.v6c_1.
|
|
351
|
-
var excluded = this.v6c_1.
|
|
350
|
+
if (this.v6c_1.k4a_1.k32(get_ExcludedContentTypes())) {
|
|
351
|
+
var excluded = this.v6c_1.k4a_1.i32(get_ExcludedContentTypes());
|
|
352
352
|
var tmp0 = this.s6c_1;
|
|
353
353
|
var destination = ArrayList_init_$Create$();
|
|
354
354
|
var _iterator__ex2g4s = tmp0.t();
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
var _iterator__ex2g4s_0 = excluded.t();
|
|
370
370
|
while (_iterator__ex2g4s_0.u()) {
|
|
371
371
|
var element_0 = _iterator__ex2g4s_0.v();
|
|
372
|
-
if (element.c6c_1.
|
|
372
|
+
if (element.c6c_1.l3e(element_0)) {
|
|
373
373
|
tmp$ret$0 = false;
|
|
374
374
|
break l$ret$1;
|
|
375
375
|
}
|
|
@@ -387,7 +387,7 @@
|
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
var requestRegistrations = tmp_0;
|
|
390
|
-
var tmp0_elvis_lhs = this.v6c_1.
|
|
390
|
+
var tmp0_elvis_lhs = this.v6c_1.h4a_1.n36('Accept');
|
|
391
391
|
var acceptHeaders = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
392
392
|
var _iterator__ex2g4s_1 = requestRegistrations.t();
|
|
393
393
|
while (_iterator__ex2g4s_1.u()) {
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
var _iterator__ex2g4s_2 = acceptHeaders.t();
|
|
408
408
|
while (_iterator__ex2g4s_2.u()) {
|
|
409
409
|
var element_2 = _iterator__ex2g4s_2.v();
|
|
410
|
-
if (Companion_getInstance().nq(element_2).
|
|
410
|
+
if (Companion_getInstance().nq(element_2).l3e(element_1.c6c_1)) {
|
|
411
411
|
tmp$ret$2 = false;
|
|
412
412
|
break l$ret$3;
|
|
413
413
|
}
|
|
@@ -416,9 +416,9 @@
|
|
|
416
416
|
}
|
|
417
417
|
while (false);
|
|
418
418
|
if (tmp$ret$2) {
|
|
419
|
-
var qValue = this.t6c_1.
|
|
420
|
-
var contentTypeToSend = qValue == null ? element_1.c6c_1 : element_1.c6c_1.
|
|
421
|
-
get_LOGGER().
|
|
419
|
+
var qValue = this.t6c_1.v4i_1.i6c_1;
|
|
420
|
+
var contentTypeToSend = qValue == null ? element_1.c6c_1 : element_1.c6c_1.j3e('q', qValue.toString());
|
|
421
|
+
get_LOGGER().z3b('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.v6c_1.f4a_1.toString());
|
|
422
422
|
accept(this.v6c_1, contentTypeToSend);
|
|
423
423
|
}
|
|
424
424
|
}
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
if (tmp_3) {
|
|
459
|
-
get_LOGGER().
|
|
459
|
+
get_LOGGER().z3b('Body type ' + toString(getKClassFromExpression(this.w6c_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.v6c_1.f4a_1.toString() + '.'));
|
|
460
460
|
return null;
|
|
461
461
|
}
|
|
462
462
|
|
|
@@ -465,7 +465,7 @@
|
|
|
465
465
|
var tmp_7;
|
|
466
466
|
if (tmp0_elvis_lhs_0 == null) {
|
|
467
467
|
this.t6c_1;
|
|
468
|
-
get_LOGGER().
|
|
468
|
+
get_LOGGER().z3b("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.v6c_1.f4a_1.toString() + '.');
|
|
469
469
|
return null;
|
|
470
470
|
} else {
|
|
471
471
|
tmp_7 = tmp0_elvis_lhs_0;
|
|
@@ -474,8 +474,8 @@
|
|
|
474
474
|
tmp_6.y6c_1 = tmp_7;
|
|
475
475
|
var tmp_8 = this.w6c_1;
|
|
476
476
|
if (tmp_8 instanceof Unit) {
|
|
477
|
-
get_LOGGER().
|
|
478
|
-
this.v6c_1.
|
|
477
|
+
get_LOGGER().z3b('Sending empty body for ' + this.v6c_1.f4a_1.toString());
|
|
478
|
+
this.v6c_1.h4a_1.x36('Content-Type');
|
|
479
479
|
return EmptyContent_getInstance();
|
|
480
480
|
}
|
|
481
481
|
|
|
@@ -501,19 +501,19 @@
|
|
|
501
501
|
var tmp_11;
|
|
502
502
|
if (tmp1_elvis_lhs == null) {
|
|
503
503
|
this.t6c_1;
|
|
504
|
-
get_LOGGER().
|
|
504
|
+
get_LOGGER().z3b('None of the registered converters match request Content-Type=' + this.y6c_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.v6c_1.f4a_1.toString() + '.'));
|
|
505
505
|
return null;
|
|
506
506
|
} else {
|
|
507
507
|
tmp_11 = tmp1_elvis_lhs;
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
tmp_9.x6c_1 = tmp_11;
|
|
511
|
-
if (this.v6c_1.
|
|
512
|
-
get_LOGGER().
|
|
511
|
+
if (this.v6c_1.j55() == null) {
|
|
512
|
+
get_LOGGER().z3b('Request has unknown body type. Skipping ContentNegotiation for ' + this.v6c_1.f4a_1.toString() + '.');
|
|
513
513
|
return null;
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
-
this.v6c_1.
|
|
516
|
+
this.v6c_1.h4a_1.x36('Content-Type');
|
|
517
517
|
this.c6d_1 = this.x6c_1;
|
|
518
518
|
this.i9_1 = 1;
|
|
519
519
|
continue $sm;
|
|
@@ -531,8 +531,8 @@
|
|
|
531
531
|
this.a6d_1 = element_5;
|
|
532
532
|
this.i9_1 = 3;
|
|
533
533
|
var tmp0_elvis_lhs_1 = charset(this.y6c_1);
|
|
534
|
-
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
535
|
-
var tmp_13 = ensureNotNull(this.v6c_1.
|
|
534
|
+
var tmp_12 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().d31_1 : tmp0_elvis_lhs_1;
|
|
535
|
+
var tmp_13 = ensureNotNull(this.v6c_1.j55());
|
|
536
536
|
var this_0 = this.w6c_1;
|
|
537
537
|
var tmp_14;
|
|
538
538
|
if (!equals(this_0, NullBody_instance)) {
|
|
@@ -550,7 +550,7 @@
|
|
|
550
550
|
case 3:
|
|
551
551
|
var result = suspendResult;
|
|
552
552
|
if (!(result == null)) {
|
|
553
|
-
get_LOGGER().
|
|
553
|
+
get_LOGGER().z3b('Converted request body using ' + toString(this.a6d_1.b6c_1) + ' for ' + this.v6c_1.f4a_1.toString());
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
var result_0 = result;
|
|
@@ -622,12 +622,12 @@
|
|
|
622
622
|
this.j9_1 = 2;
|
|
623
623
|
var tmp_0 = this.q6d_1;
|
|
624
624
|
if (!isInterface(tmp_0, ByteReadChannel)) {
|
|
625
|
-
get_LOGGER().
|
|
625
|
+
get_LOGGER().z3b('Response body is already transformed. Skipping ContentNegotiation for ' + this.o6d_1.toString() + '.');
|
|
626
626
|
return null;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
if (this.l6d_1.q2(this.p6d_1.
|
|
630
|
-
get_LOGGER().
|
|
629
|
+
if (this.l6d_1.q2(this.p6d_1.l3b_1)) {
|
|
630
|
+
get_LOGGER().z3b('Response body type ' + toString(this.p6d_1.l3b_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.o6d_1.toString() + '.'));
|
|
631
631
|
return null;
|
|
632
632
|
}
|
|
633
633
|
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
var tmp_2;
|
|
660
660
|
if (tmp0_elvis_lhs == null) {
|
|
661
661
|
this.n6d_1;
|
|
662
|
-
get_LOGGER().
|
|
662
|
+
get_LOGGER().z3b('None of the registered converters match response with Content-Type=' + this.r6d_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.o6d_1.toString() + '.'));
|
|
663
663
|
return null;
|
|
664
664
|
} else {
|
|
665
665
|
tmp_2 = tmp0_elvis_lhs;
|
|
@@ -676,7 +676,7 @@
|
|
|
676
676
|
case 1:
|
|
677
677
|
var result = suspendResult;
|
|
678
678
|
if (!isInterface(result, ByteReadChannel)) {
|
|
679
|
-
get_LOGGER().
|
|
679
|
+
get_LOGGER().z3b('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.o6d_1.toString() + '.');
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
return result;
|
|
@@ -728,11 +728,11 @@
|
|
|
728
728
|
function JsonContentTypeMatcher() {
|
|
729
729
|
}
|
|
730
730
|
protoOf(JsonContentTypeMatcher).f6c = function (contentType) {
|
|
731
|
-
if (contentType.
|
|
731
|
+
if (contentType.l3e(Application_getInstance().r3c_1)) {
|
|
732
732
|
return true;
|
|
733
733
|
}
|
|
734
|
-
var value = contentType.
|
|
735
|
-
return Application_getInstance().
|
|
734
|
+
var value = contentType.k3e().toString();
|
|
735
|
+
return Application_getInstance().l3d(value) && endsWith(value, '+json', true);
|
|
736
736
|
};
|
|
737
737
|
var JsonContentTypeMatcher_instance;
|
|
738
738
|
function JsonContentTypeMatcher_getInstance() {
|
|
@@ -752,7 +752,7 @@
|
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
754
|
//region block: post-declaration
|
|
755
|
-
protoOf(ContentNegotiationConfig).
|
|
755
|
+
protoOf(ContentNegotiationConfig).h46 = register$default;
|
|
756
756
|
//endregion
|
|
757
757
|
//region block: init
|
|
758
758
|
JsonContentTypeMatcher_instance = new JsonContentTypeMatcher();
|