@flock/wirespec 0.18.4 → 0.18.6

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.
Files changed (33) hide show
  1. package/clikt-clikt-mordant.mjs +39 -39
  2. package/colormath-root-colormath.mjs +406 -406
  3. package/kotlin-kotlin-stdlib.mjs +5 -5
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +4585 -4585
  6. package/kotlin-rgxgen.mjs +1757 -1757
  7. package/kotlinx-io-kotlinx-io-core.mjs +397 -397
  8. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1616 -1616
  9. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1271 -1271
  10. package/mordant-mordant.mjs +1097 -1097
  11. package/package.json +1 -1
  12. package/wirespec-src-compiler-emitters-java.mjs +189 -188
  13. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-kotlin.mjs +166 -166
  15. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-python.mjs +218 -217
  17. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-rust.mjs +303 -292
  19. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-scala.mjs +111 -110
  21. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-typescript.mjs +149 -146
  23. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-wirespec.mjs +25 -25
  25. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  26. package/wirespec-src-compiler-ir.mjs +2974 -2934
  27. package/wirespec-src-compiler-ir.mjs.map +1 -1
  28. package/wirespec-src-converter-avro.mjs +475 -475
  29. package/wirespec-src-converter-openapi.mjs +365 -365
  30. package/wirespec-src-plugin-arguments.mjs +115 -115
  31. package/wirespec-src-plugin-cli.mjs +84 -84
  32. package/wirespec-src-plugin-npm.mjs +20 -20
  33. package/wirespec-src-tools-generator.mjs +2 -2
@@ -153,10 +153,10 @@ import {
153
153
  function emit_3(identifier) {
154
154
  var tmp;
155
155
  if (identifier instanceof DefinitionIdentifier) {
156
- tmp = this.c1w(identifier);
156
+ tmp = this.d1w(identifier);
157
157
  } else {
158
158
  if (identifier instanceof FieldIdentifier) {
159
- tmp = this.s1v(this.c1w(identifier));
159
+ tmp = this.t1v(this.d1w(identifier));
160
160
  } else {
161
161
  noWhenBranchMatchedException();
162
162
  }
@@ -178,7 +178,7 @@ function sanitize(_this__u8e3s4) {
178
178
  destination.x(tmp$ret$0);
179
179
  }
180
180
  var tmp = asSequence(joinToString(destination, ''));
181
- return this.r1v(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
181
+ return this.s1v(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
182
182
  }
183
183
  function sanitizeFirstIsDigit(_this__u8e3s4) {
184
184
  var tmp;
@@ -198,7 +198,7 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
198
198
  return tmp;
199
199
  }
200
200
  function sanitizeKeywords(_this__u8e3s4) {
201
- return Companion_getInstance_0().p1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
201
+ return Companion_getInstance_0().q1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
202
202
  }
203
203
  initMetadataForInterface(KotlinIdentifierEmitter, 'KotlinIdentifierEmitter');
204
204
  function emit_4(type, module_0) {
@@ -351,60 +351,7 @@ function emit_9(channel) {
351
351
  return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.wq(channel.mo_1) + ' {\n | operator fun invoke(message: ' + this.xp(channel.no_1) + ')\n |}\n |\n ');
352
352
  }
353
353
  initMetadataForInterface(KotlinChannelDefinitionEmitter, 'KotlinChannelDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
354
- function emit_10(union) {
355
- return trimMargin('\n |sealed interface ' + this.wq(union.qo_1) + '\n |\n ');
356
- }
357
- initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
358
- function emit_11(refined) {
359
- return trimMargin('\n |data class ' + this.c1w(refined.br_1) + '(override val value: ' + this.xp(refined.cr_1) + '): Wirespec.Refined<' + this.xp(refined.cr_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.kr(refined) + '\n |}\n |\n ');
360
- }
361
- function emitValidator(_this__u8e3s4) {
362
- var defaultReturn = 'true';
363
- var type = _this__u8e3s4.cr_1.ou_1;
364
- var tmp;
365
- if (type instanceof Integer) {
366
- var tmp0_safe_receiver = type.tt_1;
367
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
368
- tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
369
- } else {
370
- if (type instanceof Number_0) {
371
- var tmp2_safe_receiver = type.wt_1;
372
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
373
- tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
374
- } else {
375
- if (type instanceof String_0) {
376
- var tmp4_safe_receiver = type.qt_1;
377
- var tmp_0;
378
- var tmp_1 = tmp4_safe_receiver;
379
- if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
380
- tmp_0 = null;
381
- } else {
382
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
383
- }
384
- var tmp5_elvis_lhs = tmp_0;
385
- tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
386
- } else {
387
- if (equals(type, Boolean_instance)) {
388
- tmp = defaultReturn;
389
- } else {
390
- if (equals(type, Bytes_instance)) {
391
- tmp = defaultReturn;
392
- } else {
393
- noWhenBranchMatchedException();
394
- }
395
- }
396
- }
397
- }
398
- }
399
- return tmp;
400
- }
401
- initMetadataForInterface(KotlinRefinedTypeDefinitionEmitter, 'KotlinRefinedTypeDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter, KotlinTypeDefinitionEmitter]);
402
- function emit_12(enum_0, module_0) {
403
- var tmp = this.c1w(enum_0.gr_1);
404
- return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.hr_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.qr(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
405
- }
406
- initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
407
- function emit_13(endpoint) {
354
+ function emit_10(endpoint) {
408
355
  // Inline function 'kotlin.collections.map' call
409
356
  var this_0 = importReferences(endpoint);
410
357
  // Inline function 'kotlin.collections.mapTo' call
@@ -412,7 +359,7 @@ function emit_13(endpoint) {
412
359
  var _iterator__ex2g4s = this_0.t();
413
360
  while (_iterator__ex2g4s.u()) {
414
361
  var item = _iterator__ex2g4s.v();
415
- var tmp$ret$0 = 'import ' + this.c1v().mr_1 + '.model.' + item.ku_1;
362
+ var tmp$ret$0 = 'import ' + this.d1v().mr_1 + '.model.' + item.ku_1;
416
363
  destination.x(tmp$ret$0);
417
364
  }
418
365
  var tmp = destination;
@@ -422,7 +369,7 @@ function emit_13(endpoint) {
422
369
  var tmp_3 = emitObject$default(this, tmp_2, 'Path', 'Wirespec.Path', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_0(this));
423
370
  var tmp_4 = emitObject$default(this, endpoint.hp_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
424
371
  var tmp_5 = emitObject$default(this, endpoint.ip_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
425
- var tmp_6 = this.p1v(first(endpoint.jp_1), endpoint);
372
+ var tmp_6 = this.q1v(first(endpoint.jp_1), endpoint);
426
373
  var tmp_7 = Spacer_instance.toString();
427
374
  var tmp_8 = emitStatusInterfaces(this, endpoint);
428
375
  var tmp_9 = emitResponseInterfaces(this, endpoint);
@@ -452,7 +399,7 @@ function emit_13(endpoint) {
452
399
  var tmp_22 = Spacer_instance.qr(2);
453
400
  var tmp_23 = Spacer_instance.toString();
454
401
  var tmp_24 = Spacer_instance.qr(2);
455
- var tmp_25 = this.t1v(endpoint);
402
+ var tmp_25 = this.u1v(endpoint);
456
403
  var tmp_26 = Spacer_instance.qr(2);
457
404
  var tmp_27 = Spacer_instance.qr(3);
458
405
  return trimMargin('\n |' + tmp_0 + '\n |\n |object ' + tmp_1 + ' : Wirespec.Endpoint {\n |' + tmp_3 + '\n |\n |' + tmp_4 + '\n |\n |' + tmp_5 + '\n |\n |' + tmp_6 + '\n |\n |' + tmp_7 + 'sealed interface Response<T: Any> : Wirespec.Response<T>\n |\n |' + tmp_8 + '\n |\n |' + tmp_9 + '\n |\n |' + tmp_11 + '\n |\n |' + tmp_12 + 'fun toResponse(serialization: Wirespec.Serializer, response: Response<*>): Wirespec.RawResponse =\n |' + tmp_13 + 'when(response) {\n |' + tmp_15 + '\n |' + tmp_16 + '}\n |\n |' + tmp_17 + 'fun fromResponse(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse): Response<*> =\n |' + tmp_18 + 'when (response.statusCode) {\n |' + tmp_20 + '\n |' + tmp_21 + 'else -> error("Cannot match response with status: ${response.statusCode}")\n |' + tmp_22 + '}\n |\n |' + tmp_23 + 'interface Handler: Wirespec.Handler {\n |' + tmp_24 + tmp_25 + '\n |' + tmp_26 + 'companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n |' + tmp_27 + 'override val pathTemplate = "/' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.qr(3) + 'override val method = "' + endpoint.fp_1.toString() + '"\n |' + Spacer_instance.qr(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.qr(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.qr(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.qr(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.qr(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.qr(3) + '}\n |' + Spacer_instance.qr(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
@@ -460,7 +407,7 @@ function emit_13(endpoint) {
460
407
  function emitHandleFunction(endpoint) {
461
408
  return 'suspend fun ' + Companion_instance_1.pq(this.wq(endpoint.ep_1)) + '(request: Request): Response<*>';
462
409
  }
463
- function emit_14(_this__u8e3s4, endpoint) {
410
+ function emit_11(_this__u8e3s4, endpoint) {
464
411
  var tmp = Spacer_instance.toString();
465
412
  var tmp_0 = emitConstructor(this, _this__u8e3s4, endpoint);
466
413
  var tmp_1 = Spacer_instance.qr(2);
@@ -475,7 +422,7 @@ function emit_14(_this__u8e3s4, endpoint) {
475
422
  var tmp_10 = Spacer_instance.toString();
476
423
  var tmp_11 = Spacer_instance.qr(2);
477
424
  var tmp_12 = Spacer_instance.qr(3);
478
- return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.fp_1.a3_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + '\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_11 + 'Wirespec.RawRequest(\n |' + tmp_12 + 'path = listOf(' + joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.qr(3) + 'method = request.method.name,\n |' + Spacer_instance.qr(3) + 'queries = ' + this.m1w(endpoint) + ',\n |' + Spacer_instance.qr(3) + 'headers = ' + this.l1w(endpoint) + ',\n |' + Spacer_instance.qr(3) + 'body = ' + (!(_this__u8e3s4.np_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.np_1) + '>())' : 'null') + ',\n |' + Spacer_instance.qr(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.qr(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
425
+ return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.fp_1.a3_1 + '\n |' + tmp_5 + 'override val queries = Queries' + tmp_6 + '\n |' + tmp_7 + 'override val headers = Headers' + tmp_8 + '\n |' + tmp_9 + '\n |\n |' + tmp_10 + 'fun toRequest(serialization: Wirespec.Serializer, request: Request): Wirespec.RawRequest =\n |' + tmp_11 + 'Wirespec.RawRequest(\n |' + tmp_12 + 'path = listOf(' + joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.qr(3) + 'method = request.method.name,\n |' + Spacer_instance.qr(3) + 'queries = ' + this.n1w(endpoint) + ',\n |' + Spacer_instance.qr(3) + 'headers = ' + this.m1w(endpoint) + ',\n |' + Spacer_instance.qr(3) + 'body = ' + (!(_this__u8e3s4.np_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.np_1) + '>())' : 'null') + ',\n |' + Spacer_instance.qr(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.qr(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
479
426
  }
480
427
  function emitRequestHeaders(_this__u8e3s4) {
481
428
  var tmp;
@@ -500,7 +447,7 @@ function emitQueries(endpoint) {
500
447
  }
501
448
  return tmp;
502
449
  }
503
- function emit_15(_this__u8e3s4) {
450
+ function emit_12(_this__u8e3s4) {
504
451
  // Inline function 'kotlin.let' call
505
452
  var it = joinToString(_this__u8e3s4.rp_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
506
453
  var responseHeaderFields = isBlank(it) ? '' : ', ' + it;
@@ -530,7 +477,60 @@ function emitHeaders(_this__u8e3s4) {
530
477
  return tmp;
531
478
  }
532
479
  initMetadataForInterface(KotlinEndpointDefinitionEmitter, 'KotlinEndpointDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
533
- initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinIdentifierEmitter, KotlinUnionDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinEndpointDefinitionEmitter, KotlinChannelDefinitionEmitter, KotlinTypeDefinitionEmitter]);
480
+ function emit_13(union) {
481
+ return trimMargin('\n |sealed interface ' + this.wq(union.qo_1) + '\n |\n ');
482
+ }
483
+ initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
484
+ function emit_14(enum_0, module_0) {
485
+ var tmp = this.d1w(enum_0.gr_1);
486
+ return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.hr_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.qr(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
487
+ }
488
+ initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
489
+ function emit_15(refined) {
490
+ return trimMargin('\n |data class ' + this.d1w(refined.br_1) + '(override val value: ' + this.xp(refined.cr_1) + '): Wirespec.Refined<' + this.xp(refined.cr_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.kr(refined) + '\n |}\n |\n ');
491
+ }
492
+ function emitValidator(_this__u8e3s4) {
493
+ var defaultReturn = 'true';
494
+ var type = _this__u8e3s4.cr_1.ou_1;
495
+ var tmp;
496
+ if (type instanceof Integer) {
497
+ var tmp0_safe_receiver = type.tt_1;
498
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
499
+ tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
500
+ } else {
501
+ if (type instanceof Number_0) {
502
+ var tmp2_safe_receiver = type.wt_1;
503
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
504
+ tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
505
+ } else {
506
+ if (type instanceof String_0) {
507
+ var tmp4_safe_receiver = type.qt_1;
508
+ var tmp_0;
509
+ var tmp_1 = tmp4_safe_receiver;
510
+ if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
511
+ tmp_0 = null;
512
+ } else {
513
+ tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
514
+ }
515
+ var tmp5_elvis_lhs = tmp_0;
516
+ tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
517
+ } else {
518
+ if (equals(type, Boolean_instance)) {
519
+ tmp = defaultReturn;
520
+ } else {
521
+ if (equals(type, Bytes_instance)) {
522
+ tmp = defaultReturn;
523
+ } else {
524
+ noWhenBranchMatchedException();
525
+ }
526
+ }
527
+ }
528
+ }
529
+ }
530
+ return tmp;
531
+ }
532
+ initMetadataForInterface(KotlinRefinedTypeDefinitionEmitter, 'KotlinRefinedTypeDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter, KotlinTypeDefinitionEmitter]);
533
+ initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinTypeDefinitionEmitter, KotlinIdentifierEmitter, KotlinEndpointDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinChannelDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter]);
534
534
  initMetadataForCompanion(Companion);
535
535
  initMetadataForCompanion(Companion_0);
536
536
  initMetadataForClass(KotlinIrEmitter, 'KotlinIrEmitter', KotlinIrEmitter, VOID, [IrEmitter]);
@@ -544,7 +544,7 @@ function emitImports($this, _this__u8e3s4) {
544
544
  var _iterator__ex2g4s = this_0.t();
545
545
  while (_iterator__ex2g4s.u()) {
546
546
  var item = _iterator__ex2g4s.v();
547
- var tmp$ret$0 = 'import ' + $this.c1v().mr_1 + '.model.' + item.ku_1 + ';';
547
+ var tmp$ret$0 = 'import ' + $this.d1v().mr_1 + '.model.' + item.ku_1 + ';';
548
548
  destination.x(tmp$ret$0);
549
549
  }
550
550
  var tmp = destination;
@@ -560,37 +560,37 @@ function KotlinEmitter(packageName, emitShared) {
560
560
  packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
561
561
  emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
562
562
  LanguageEmitter.call(this);
563
- this.d1w_1 = packageName;
564
- this.e1w_1 = emitShared;
565
- this.f1w_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
566
- this.g1w_1 = FileExtension_Kotlin_getInstance();
567
- this.h1w_1 = KotlinShared_getInstance();
568
- this.i1w_1 = '//';
569
- }
570
- protoOf(KotlinEmitter).c1v = function () {
571
- return this.d1w_1;
563
+ this.e1w_1 = packageName;
564
+ this.f1w_1 = emitShared;
565
+ this.g1w_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
566
+ this.h1w_1 = FileExtension_Kotlin_getInstance();
567
+ this.i1w_1 = KotlinShared_getInstance();
568
+ this.j1w_1 = '//';
569
+ }
570
+ protoOf(KotlinEmitter).d1v = function () {
571
+ return this.e1w_1;
572
572
  };
573
573
  protoOf(KotlinEmitter).eq = function () {
574
- return this.g1w_1;
575
- };
576
- protoOf(KotlinEmitter).l1v = function () {
577
574
  return this.h1w_1;
578
575
  };
579
- protoOf(KotlinEmitter).fq = function () {
576
+ protoOf(KotlinEmitter).m1v = function () {
580
577
  return this.i1w_1;
581
578
  };
579
+ protoOf(KotlinEmitter).fq = function () {
580
+ return this.j1w_1;
581
+ };
582
582
  protoOf(KotlinEmitter).tq = function (module_0, logger) {
583
583
  // Inline function 'kotlin.let' call
584
584
  var it = protoOf(LanguageEmitter).tq.call(this, module_0, logger);
585
- return this.e1w_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.lr('community.flock.wirespec.kotlin').or() + 'Wirespec', this.l1v().k1w_1)) : it;
585
+ return this.f1w_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.lr('community.flock.wirespec.kotlin').or() + 'Wirespec', this.m1v().l1w_1)) : it;
586
586
  };
587
587
  protoOf(KotlinEmitter).uq = function (definition, module_0, logger) {
588
588
  // Inline function 'kotlin.let' call
589
589
  var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
590
- var subPackageName = plus(this.c1v(), definition);
590
+ var subPackageName = plus(this.d1v(), definition);
591
591
  var tmp = subPackageName.or() + it.io_1;
592
592
  // Inline function 'kotlin.text.trimStart' call
593
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.qq(module_0) ? this.f1w_1 : '') + '\n |' + it.jo_1 + '\n ');
593
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.qq(module_0) ? this.g1w_1 : '') + '\n |' + it.jo_1 + '\n ');
594
594
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
595
595
  return new Emitted(tmp, tmp$ret$0);
596
596
  };
@@ -657,7 +657,7 @@ function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
657
657
  return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.qr(2) + ')';
658
658
  }
659
659
  function emitSerialized($this, _this__u8e3s4) {
660
- return trimMargin('\n |' + Spacer_instance.qr(3) + 'is Response' + _this__u8e3s4.qp_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.qr(4) + 'statusCode = response.status,\n |' + Spacer_instance.qr(4) + 'headers = ' + $this.o1w(_this__u8e3s4) + ',\n |' + Spacer_instance.qr(4) + 'body = ' + (!(_this__u8e3s4.sp_1 == null) ? $this.n1w($this, _this__u8e3s4.sp_1) : 'null') + ',\n |' + Spacer_instance.qr(3) + ')\n ');
660
+ return trimMargin('\n |' + Spacer_instance.qr(3) + 'is Response' + _this__u8e3s4.qp_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.qr(4) + 'statusCode = response.status,\n |' + Spacer_instance.qr(4) + 'headers = ' + $this.p1w(_this__u8e3s4) + ',\n |' + Spacer_instance.qr(4) + 'body = ' + (!(_this__u8e3s4.sp_1 == null) ? $this.o1w($this, _this__u8e3s4.sp_1) : 'null') + ',\n |' + Spacer_instance.qr(3) + ')\n ');
661
661
  }
662
662
  function emitDeserialized($this, _this__u8e3s4) {
663
663
  var tmp = Spacer_instance.qr(3) + _this__u8e3s4.qp_1 + ' -> Response' + _this__u8e3s4.qp_1 + '(';
@@ -751,7 +751,7 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_2(this$0) {
751
751
  }
752
752
  function KotlinEndpointDefinitionEmitter$emit$lambda_3(this$0) {
753
753
  return function (it) {
754
- return this$0.q1v(it);
754
+ return this$0.r1v(it);
755
755
  };
756
756
  }
757
757
  function KotlinEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -879,18 +879,18 @@ function sanitizeNegative($this, _this__u8e3s4) {
879
879
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
880
880
  }
881
881
  function sanitizeEnum($this, _this__u8e3s4) {
882
- return $this.r1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
882
+ return $this.s1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
883
883
  }
884
884
  function KotlinEnumDefinitionEmitter$emit$lambda(this$0) {
885
885
  return function (it) {
886
- return this$0.s1v(sanitizeEnum(this$0, it)) + '("' + it + '")';
886
+ return this$0.t1v(sanitizeEnum(this$0, it)) + '("' + it + '")';
887
887
  };
888
888
  }
889
889
  function KotlinEnumDefinitionEmitter() {
890
890
  }
891
891
  function Companion() {
892
892
  Companion_instance_2 = this;
893
- this.p1w_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
893
+ this.q1w_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
894
894
  }
895
895
  var Companion_instance_2;
896
896
  function Companion_getInstance_0() {
@@ -904,7 +904,7 @@ function KotlinIdentifierEmitter$sanitize$lambda(it) {
904
904
  function KotlinIdentifierEmitter() {
905
905
  }
906
906
  function _get_sanitizationConfig__sns434($this) {
907
- var tmp0 = $this.v1w_1;
907
+ var tmp0 = $this.w1w_1;
908
908
  var tmp = KProperty1;
909
909
  // Inline function 'kotlin.getValue' call
910
910
  getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf(), null);
@@ -969,7 +969,7 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
969
969
  return tmp;
970
970
  }
971
971
  function sanitizeKeywords_0($this, _this__u8e3s4) {
972
- return Companion_getInstance_1().w1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
972
+ return Companion_getInstance_1().x1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
973
973
  }
974
974
  function sanitizeSymbol($this, _this__u8e3s4) {
975
975
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -1009,7 +1009,7 @@ function sanitizeEnum_0($this, _this__u8e3s4) {
1009
1009
  }
1010
1010
  function Companion_0() {
1011
1011
  Companion_instance_3 = this;
1012
- this.w1w_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1012
+ this.x1w_1 = setOf(['as', 'break', 'class', 'continue', 'do', 'else', 'false', 'for', 'fun', 'if', 'in', 'interface', 'internal', 'is', 'null', 'object', 'open', 'package', 'return', 'super', 'this', 'throw', 'true', 'try', 'typealias', 'typeof', 'val', 'var', 'when', 'while', 'private', 'public']);
1013
1013
  }
1014
1014
  var Companion_instance_3;
1015
1015
  function Companion_getInstance_1() {
@@ -1022,13 +1022,13 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1022
1022
  }
1023
1023
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1024
1024
  return function (name) {
1025
- var sanitized = name.m1h_1.a1() > 1 ? name.q1l() : sanitizeSymbol(this$0, name.r1h());
1025
+ var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : sanitizeSymbol(this$0, name.s1h());
1026
1026
  return new Name(listOf(sanitized));
1027
1027
  };
1028
1028
  }
1029
1029
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1030
1030
  return function (name) {
1031
- return new Name(listOf(sanitizeSymbol(this$0, name.q1l())));
1031
+ return new Name(listOf(sanitizeSymbol(this$0, name.s1l())));
1032
1032
  };
1033
1033
  }
1034
1034
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
@@ -1041,17 +1041,17 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1041
1041
  var tmp;
1042
1042
  var tmp_0;
1043
1043
  if (stmt instanceof FunctionCall) {
1044
- tmp_0 = stmt.a1m_1.r1h() === 'validate';
1044
+ tmp_0 = stmt.b1m_1.s1h() === 'validate';
1045
1045
  } else {
1046
1046
  tmp_0 = false;
1047
1047
  }
1048
1048
  if (tmp_0) {
1049
- tmp = transformChildren(stmt.e1m(VOID, emptyList()), tr);
1049
+ tmp = transformChildren(stmt.f1m(VOID, emptyList()), tr);
1050
1050
  } else {
1051
1051
  if (stmt instanceof ConstructorStatement) {
1052
- var tmp_1 = tr.o1t(stmt.o1m_1);
1052
+ var tmp_1 = tr.p1t(stmt.p1m_1);
1053
1053
  // Inline function 'kotlin.collections.map' call
1054
- var this_0 = stmt.p1m_1;
1054
+ var this_0 = stmt.q1m_1;
1055
1055
  // Inline function 'kotlin.collections.mapTo' call
1056
1056
  var destination = ArrayList_init_$Create$(this_0.a1());
1057
1057
  // Inline function 'kotlin.collections.iterator' call
@@ -1062,7 +1062,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1062
1062
  var name = item.k1();
1063
1063
  // Inline function 'kotlin.collections.component2' call
1064
1064
  var expr = item.l1();
1065
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.r1t(expr));
1065
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.s1t(expr));
1066
1066
  destination.x(tmp$ret$3);
1067
1067
  }
1068
1068
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -1075,7 +1075,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1075
1075
  }
1076
1076
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1077
1077
  return function () {
1078
- var tmp = Companion_getInstance_1().w1w_1;
1078
+ var tmp = Companion_getInstance_1().x1w_1;
1079
1079
  var tmp_0 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1080
1080
  var tmp_1 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1081
1081
  var tmp_2 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1092,7 +1092,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1092
1092
  var tmp;
1093
1093
  if (element instanceof File) {
1094
1094
  // Inline function 'kotlin.collections.partition' call
1095
- var this_0 = element.s1m_1;
1095
+ var this_0 = element.t1m_1;
1096
1096
  var first = ArrayList_init_$Create$_0();
1097
1097
  var second = ArrayList_init_$Create$_0();
1098
1098
  var _iterator__ex2g4s = this_0.t();
@@ -1107,7 +1107,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1107
1107
  var _destruct__k2r9zo = new Pair(first, second);
1108
1108
  var packageElements = _destruct__k2r9zo.ne();
1109
1109
  var rest = _destruct__k2r9zo.oe();
1110
- tmp = element.v1m(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1110
+ tmp = element.w1m(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1111
1111
  } else {
1112
1112
  tmp = element;
1113
1113
  }
@@ -1118,11 +1118,11 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
1118
1118
  return function (element, transformer) {
1119
1119
  var tmp;
1120
1120
  if (element instanceof Namespace) {
1121
- var injected = element.x1m_1.equals(Companion_getInstance().l1h('Wirespec')) ? $clientServer : emptyList();
1121
+ var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? $clientServer : emptyList();
1122
1122
  var tmp_0;
1123
1123
  // Inline function 'kotlin.collections.isNotEmpty' call
1124
1124
  if (!injected.r()) {
1125
- tmp_0 = withElements(element, plus_2(element.t1m(), injected));
1125
+ tmp_0 = withElements(element, plus_2(element.u1m(), injected));
1126
1126
  } else {
1127
1127
  tmp_0 = element;
1128
1128
  }
@@ -1143,24 +1143,24 @@ function KotlinIrEmitter(packageName, emitShared) {
1143
1143
  Companion_getInstance_1();
1144
1144
  packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1145
1145
  emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1146
- this.q1w_1 = packageName;
1147
- this.r1w_1 = emitShared;
1148
- this.s1w_1 = KotlinGenerator_instance;
1149
- this.t1w_1 = FileExtension_Kotlin_getInstance();
1150
- this.u1w_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1146
+ this.r1w_1 = packageName;
1147
+ this.s1w_1 = emitShared;
1148
+ this.t1w_1 = KotlinGenerator_instance;
1149
+ this.u1w_1 = FileExtension_Kotlin_getInstance();
1150
+ this.v1w_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1151
1151
  var tmp = this;
1152
- tmp.v1w_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1152
+ tmp.w1w_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1153
1153
  }
1154
- protoOf(KotlinIrEmitter).c1v = function () {
1155
- return this.q1w_1;
1154
+ protoOf(KotlinIrEmitter).d1v = function () {
1155
+ return this.r1w_1;
1156
1156
  };
1157
- protoOf(KotlinIrEmitter).j1u = function () {
1158
- return this.s1w_1;
1157
+ protoOf(KotlinIrEmitter).k1u = function () {
1158
+ return this.t1w_1;
1159
1159
  };
1160
1160
  protoOf(KotlinIrEmitter).eq = function () {
1161
- return this.t1w_1;
1161
+ return this.u1w_1;
1162
1162
  };
1163
- protoOf(KotlinIrEmitter).m1u = function () {
1163
+ protoOf(KotlinIrEmitter).n1u = function () {
1164
1164
  var packageName = Companion_instance.lr('community.flock.wirespec.kotlin');
1165
1165
  var clientServer = convertClientServer(packageName);
1166
1166
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1169,28 +1169,28 @@ protoOf(KotlinIrEmitter).m1u = function () {
1169
1169
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1170
1170
  var tmp = scope;
1171
1171
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1172
- var this_1 = scope.w1t_1;
1172
+ var this_1 = scope.x1t_1;
1173
1173
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1174
1174
  // Inline function 'kotlin.apply' call
1175
1175
  var this_2 = new TransformerBuilder();
1176
1176
  this_2.c1h(KotlinIrEmitter$emitShared$lambda);
1177
1177
  var tmp$ret$2 = this_2.d1h();
1178
- tmp.w1t_1 = transform(this_1, tmp$ret$2);
1178
+ tmp.x1t_1 = transform(this_1, tmp$ret$2);
1179
1179
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1180
1180
  var tmp_0 = scope;
1181
1181
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1182
1182
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1183
- var this_3 = scope.w1t_1;
1183
+ var this_3 = scope.x1t_1;
1184
1184
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1185
1185
  // Inline function 'kotlin.apply' call
1186
1186
  var this_4 = new TransformerBuilder();
1187
1187
  this_4.c1h(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1188
1188
  var tmp$ret$7 = this_4.d1h();
1189
- tmp_0.w1t_1 = transform(this_3, tmp$ret$7);
1190
- var tmp_1 = scope.w1t_1;
1189
+ tmp_0.x1t_1 = transform(this_3, tmp$ret$7);
1190
+ var tmp_1 = scope.x1t_1;
1191
1191
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1192
1192
  var tmp_2;
1193
- if (this.r1w_1.ho_1) {
1193
+ if (this.s1w_1.ho_1) {
1194
1194
  tmp_2 = wirespecShared;
1195
1195
  } else {
1196
1196
  tmp_2 = null;
@@ -1200,7 +1200,7 @@ protoOf(KotlinIrEmitter).m1u = function () {
1200
1200
  protoOf(KotlinIrEmitter).uq = function (definition, module_0, logger) {
1201
1201
  var file = emit_0.call(this, definition, module_0, logger);
1202
1202
  // Inline function 'kotlin.takeIf' call
1203
- var this_0 = this.u1w_1;
1203
+ var this_0 = this.v1w_1;
1204
1204
  var tmp;
1205
1205
  if (Companion_instance_1.qq(module_0)) {
1206
1206
  tmp = this_0;
@@ -1208,7 +1208,7 @@ protoOf(KotlinIrEmitter).uq = function (definition, module_0, logger) {
1208
1208
  tmp = null;
1209
1209
  }
1210
1210
  var tmp$ret$1 = tmp;
1211
- return placeInPackage(prependImports(file, tmp$ret$1), this.c1v(), definition);
1211
+ return placeInPackage(prependImports(file, tmp$ret$1), this.d1v(), definition);
1212
1212
  };
1213
1213
  protoOf(KotlinIrEmitter).up = function (type, module_0) {
1214
1214
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
@@ -1224,7 +1224,7 @@ protoOf(KotlinIrEmitter).dr = function (refined) {
1224
1224
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
1225
1225
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1226
1226
  // Inline function 'kotlin.collections.filterIsInstance' call
1227
- var tmp0 = file.t1m();
1227
+ var tmp0 = file.u1m();
1228
1228
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1229
1229
  var destination = ArrayList_init_$Create$_0();
1230
1230
  var _iterator__ex2g4s = tmp0.t();
@@ -1236,13 +1236,13 @@ protoOf(KotlinIrEmitter).dr = function (refined) {
1236
1236
  }
1237
1237
  var tmp0_safe_receiver = firstOrNull_0(destination);
1238
1238
  var updatedStruct = tmp0_safe_receiver == null ? null : markMembersAsOverride(tmp0_safe_receiver);
1239
- return new File(Companion_getInstance().l1h(sanitize_0(this, refined.br_1)), listOfNotNull_0(updatedStruct));
1239
+ return new File(Companion_getInstance().f1h(sanitize_0(this, refined.br_1)), listOfNotNull_0(updatedStruct));
1240
1240
  };
1241
1241
  protoOf(KotlinIrEmitter).jr = function (endpoint) {
1242
- var imports = buildModelImports(endpoint, this.c1v());
1242
+ var imports = buildModelImports(endpoint, this.d1v());
1243
1243
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1244
1244
  // Inline function 'kotlin.collections.filterIsInstance' call
1245
- var tmp0 = convert_3(endpoint).t1m();
1245
+ var tmp0 = convert_3(endpoint).u1m();
1246
1246
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1247
1247
  var destination = ArrayList_init_$Create$_0();
1248
1248
  var _iterator__ex2g4s = tmp0.t();
@@ -1255,7 +1255,7 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
1255
1255
  var tmp$ret$2 = firstOrNull_0(destination);
1256
1256
  var endpointNamespace = ensureNotNull(tmp$ret$2);
1257
1257
  var body = injectCompanionObject(endpointNamespace, endpoint);
1258
- var tmp = sanitizeNames(new File(Companion_getInstance().l1h(sanitize_0(this, endpoint.ep_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1258
+ var tmp = sanitizeNames(new File(Companion_getInstance().f1h(sanitize_0(this, endpoint.ep_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1259
1259
  // Inline function 'kotlin.takeIf' call
1260
1260
  var tmp_0;
1261
1261
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -1270,7 +1270,7 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
1270
1270
  protoOf(KotlinIrEmitter).xq = function (channel) {
1271
1271
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1272
1272
  // Inline function 'kotlin.takeIf' call
1273
- var this_0 = buildModelImports(channel, this.c1v());
1273
+ var this_0 = buildModelImports(channel, this.d1v());
1274
1274
  var tmp_0;
1275
1275
  // Inline function 'kotlin.collections.isNotEmpty' call
1276
1276
  if (!this_0.r()) {
@@ -1281,25 +1281,25 @@ protoOf(KotlinIrEmitter).xq = function (channel) {
1281
1281
  var tmp$ret$2 = tmp_0;
1282
1282
  return prependImports(tmp, tmp$ret$2);
1283
1283
  };
1284
- protoOf(KotlinIrEmitter).o1u = function (endpoint) {
1285
- var imports = buildModelImports(endpoint, this.c1v());
1286
- var endpointImport = import_0(this.c1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
1284
+ protoOf(KotlinIrEmitter).p1u = function (endpoint) {
1285
+ var imports = buildModelImports(endpoint, this.d1v());
1286
+ var endpointImport = import_0(this.d1v().mr_1 + '.endpoint', endpoint.ep_1.l1());
1287
1287
  var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
1288
- var subPackageName = plus_0(this.c1v(), 'client');
1289
- var tmp = Companion_getInstance().l1h(subPackageName.or() + file.r1m_1.w1l());
1288
+ var subPackageName = plus_0(this.d1v(), 'client');
1289
+ var tmp = Companion_getInstance().f1h(subPackageName.or() + file.s1m_1.h1h());
1290
1290
  // Inline function 'kotlin.collections.buildList' call
1291
1291
  // Inline function 'kotlin.collections.buildListInternal' call
1292
1292
  // Inline function 'kotlin.apply' call
1293
1293
  var this_0 = ArrayList_init_$Create$_0();
1294
1294
  this_0.x(new Package(subPackageName.mr_1));
1295
- this_0.e1(this.u1w_1);
1295
+ this_0.e1(this.v1w_1);
1296
1296
  this_0.e1(imports);
1297
1297
  this_0.x(endpointImport);
1298
- this_0.e1(file.s1m_1);
1298
+ this_0.e1(file.t1m_1);
1299
1299
  var tmp$ret$3 = this_0.o5();
1300
1300
  return new File(tmp, tmp$ret$3);
1301
1301
  };
1302
- protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
1302
+ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1303
1303
  // Inline function 'kotlin.collections.flatMap' call
1304
1304
  // Inline function 'kotlin.collections.flatMapTo' call
1305
1305
  var destination = ArrayList_init_$Create$_0();
@@ -1326,7 +1326,7 @@ protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
1326
1326
  var _iterator__ex2g4s_1 = list_0.t();
1327
1327
  while (_iterator__ex2g4s_1.u()) {
1328
1328
  var item = _iterator__ex2g4s_1.v();
1329
- var tmp$ret$5 = import_0(this.c1v().mr_1 + '.model', item.ku_1);
1329
+ var tmp$ret$5 = import_0(this.d1v().mr_1 + '.model', item.ku_1);
1330
1330
  destination_0.x(tmp$ret$5);
1331
1331
  }
1332
1332
  var imports = destination_0;
@@ -1336,7 +1336,7 @@ protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
1336
1336
  var _iterator__ex2g4s_2 = endpoints.t();
1337
1337
  while (_iterator__ex2g4s_2.u()) {
1338
1338
  var item_0 = _iterator__ex2g4s_2.v();
1339
- var tmp$ret$8 = import_0(this.c1v().mr_1 + '.endpoint', item_0.ep_1.l1());
1339
+ var tmp$ret$8 = import_0(this.d1v().mr_1 + '.endpoint', item_0.ep_1.l1());
1340
1340
  destination_1.x(tmp$ret$8);
1341
1341
  }
1342
1342
  var endpointImports = destination_1;
@@ -1346,21 +1346,21 @@ protoOf(KotlinIrEmitter).n1u = function (endpoints, logger) {
1346
1346
  var _iterator__ex2g4s_3 = endpoints.t();
1347
1347
  while (_iterator__ex2g4s_3.u()) {
1348
1348
  var item_1 = _iterator__ex2g4s_3.v();
1349
- var tmp$ret$11 = import_0(this.c1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
1349
+ var tmp$ret$11 = import_0(this.d1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
1350
1350
  destination_2.x(tmp$ret$11);
1351
1351
  }
1352
1352
  var clientImports = destination_2;
1353
1353
  var allImports = plus_2(plus_2(imports, endpointImports), clientImports);
1354
1354
  var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
1355
- var tmp = Companion_getInstance().l1h(this.c1v().or() + file.r1m_1.w1l());
1355
+ var tmp = Companion_getInstance().f1h(this.d1v().or() + file.s1m_1.h1h());
1356
1356
  // Inline function 'kotlin.collections.buildList' call
1357
1357
  // Inline function 'kotlin.collections.buildListInternal' call
1358
1358
  // Inline function 'kotlin.apply' call
1359
1359
  var this_0 = ArrayList_init_$Create$_0();
1360
- this_0.x(new Package(this.c1v().mr_1));
1361
- this_0.e1(this.u1w_1);
1360
+ this_0.x(new Package(this.d1v().mr_1));
1361
+ this_0.e1(this.v1w_1);
1362
1362
  this_0.e1(allImports);
1363
- this_0.e1(file.s1m_1);
1363
+ this_0.e1(file.t1m_1);
1364
1364
  var tmp$ret$17 = this_0.o5();
1365
1365
  return new File(tmp, tmp$ret$17);
1366
1366
  };
@@ -1383,7 +1383,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1383
1383
  var _iterator__ex2g4s_0 = list.t();
1384
1384
  while (_iterator__ex2g4s_0.u()) {
1385
1385
  var item = _iterator__ex2g4s_0.v();
1386
- var tmp$ret$2 = import_0(packageName.mr_1 + '.model', item.ku_1);
1386
+ var tmp$ret$2 = import_0(packageName.mr_1 + '.model', Companion_getInstance().f1h(item.ku_1).h1h());
1387
1387
  destination.x(tmp$ret$2);
1388
1388
  }
1389
1389
  return destination;
@@ -1395,14 +1395,14 @@ function injectCompanionObject(_this__u8e3s4, endpoint) {
1395
1395
  var tmp = scope;
1396
1396
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1397
1397
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1398
- var this_0 = scope.w1t_1;
1398
+ var this_0 = scope.x1t_1;
1399
1399
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1400
1400
  // Inline function 'kotlin.apply' call
1401
1401
  var this_1 = new TransformerBuilder();
1402
1402
  this_1.c1h(injectCompanionObject$lambda(endpoint));
1403
1403
  var tmp$ret$2 = this_1.d1h();
1404
- tmp.w1t_1 = transform(this_0, tmp$ret$2);
1405
- var tmp_0 = scope.w1t_1;
1404
+ tmp.x1t_1 = transform(this_0, tmp$ret$2);
1405
+ var tmp_0 = scope.x1t_1;
1406
1406
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1407
1407
  }
1408
1408
  function buildCompanionObject(endpoint) {
@@ -1415,11 +1415,11 @@ function injectCompanionObject$lambda($endpoint) {
1415
1415
  return function (element, transformer) {
1416
1416
  var tmp;
1417
1417
  if (element instanceof Interface) {
1418
- var injected = element.j1n_1.equals(Companion_getInstance().l1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1418
+ var injected = element.k1n_1.equals(Companion_getInstance().f1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1419
1419
  var tmp_0;
1420
1420
  // Inline function 'kotlin.collections.isNotEmpty' call
1421
1421
  if (!injected.r()) {
1422
- tmp_0 = withElements(element, plus_2(element.t1m(), injected));
1422
+ tmp_0 = withElements(element, plus_2(element.u1m(), injected));
1423
1423
  } else {
1424
1424
  tmp_0 = element;
1425
1425
  }
@@ -1448,8 +1448,8 @@ function KotlinRefinedTypeDefinitionEmitter() {
1448
1448
  }
1449
1449
  function KotlinShared() {
1450
1450
  KotlinShared_instance = this;
1451
- this.j1w_1 = 'community.flock.wirespec.kotlin';
1452
- this.k1w_1 = trimMargin('\n |package ' + this.j1w_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined<T> { val value: T }\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.qr(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.qr(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.qr(2) + 'val pathTemplate: String\n |' + Spacer_instance.qr(2) + 'val method: String\n |' + Spacer_instance.qr(2) + 'fun client(serialization: Serialization): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.qr(2) + 'val pathTemplate: String\n |' + Spacer_instance.qr(2) + 'val method: String\n |' + Spacer_instance.qr(2) + 'fun server(serialization: Serialization): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization : Serializer, Deserializer\n |' + Spacer_instance.toString() + 'interface Serializer : BodySerializer, PathSerializer, ParamSerializer\n |' + Spacer_instance.toString() + 'interface Deserializer : BodyDeserializer, PathDeserializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerialization : BodySerializer, BodyDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerializer { fun <T : Any> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T : Any> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T : Any> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T : Any> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T : Any> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T : Any> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: ByteArray?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: ByteArray?)\n |}\n ');
1451
+ this.k1w_1 = 'community.flock.wirespec.kotlin';
1452
+ this.l1w_1 = trimMargin('\n |package ' + this.k1w_1 + '\n |\n |import kotlin.reflect.KType\n |\n |object Wirespec {\n |' + Spacer_instance.toString() + 'interface Enum { val label: String }\n |' + Spacer_instance.toString() + 'interface Endpoint\n |' + Spacer_instance.toString() + 'interface Refined<T> { val value: T }\n |' + Spacer_instance.toString() + 'interface Path\n |' + Spacer_instance.toString() + 'interface Queries\n |' + Spacer_instance.toString() + 'interface Headers\n |' + Spacer_instance.toString() + 'interface Handler\n |' + Spacer_instance.toString() + 'interface ServerEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.toString() + 'fun from(request: RawRequest): Req \n |' + Spacer_instance.toString() + 'fun to(response: Res): RawResponse\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface ClientEdge<Req: Request<*>, Res: Response<*>> { \n |' + Spacer_instance.qr(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.qr(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.qr(2) + 'val pathTemplate: String\n |' + Spacer_instance.qr(2) + 'val method: String\n |' + Spacer_instance.qr(2) + 'fun client(serialization: Serialization): ClientEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Server<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.qr(2) + 'val pathTemplate: String\n |' + Spacer_instance.qr(2) + 'val method: String\n |' + Spacer_instance.qr(2) + 'fun server(serialization: Serialization): ServerEdge<Req, Res>\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'enum class Method { GET, PUT, POST, DELETE, OPTIONS, HEAD, PATCH, TRACE }\n |' + Spacer_instance.toString() + 'interface Request<T : Any> { val path: Path; val method: Method; val queries: Queries; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Response<T : Any> { val status: Int; val headers: Headers; val body: T; interface Headers : Wirespec.Headers }\n |' + Spacer_instance.toString() + 'interface Serialization : Serializer, Deserializer\n |' + Spacer_instance.toString() + 'interface Serializer : BodySerializer, PathSerializer, ParamSerializer\n |' + Spacer_instance.toString() + 'interface Deserializer : BodyDeserializer, PathDeserializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerialization : BodySerializer, BodyDeserializer\n |' + Spacer_instance.toString() + 'interface BodySerializer { fun <T : Any> serializeBody(t: T, kType: KType): ByteArray }\n |' + Spacer_instance.toString() + 'interface BodyDeserializer { fun <T : Any> deserializeBody(raw: ByteArray, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface PathSerialization : PathSerializer, PathDeserializer\n |' + Spacer_instance.toString() + 'interface PathSerializer { fun <T : Any> serializePath(t: T, kType: KType): String }\n |' + Spacer_instance.toString() + 'interface PathDeserializer { fun <T : Any> deserializePath(raw: String, kType: KType): T }\n |' + Spacer_instance.toString() + 'interface ParamSerialization : ParamSerializer, ParamDeserializer\n |' + Spacer_instance.toString() + 'interface ParamSerializer { fun <T : Any> serializeParam(value: T, kType: KType): List<String> }\n |' + Spacer_instance.toString() + 'interface ParamDeserializer { fun <T : Any> deserializeParam(values: List<String>, kType: KType): T }\n |' + Spacer_instance.toString() + 'data class RawRequest(val method: String, val path: List<String>, val queries: Map<String, List<String>>, val headers: Map<String, List<String>>, val body: ByteArray?) \n |' + Spacer_instance.toString() + 'data class RawResponse(val statusCode: Int, val headers: Map<String, List<String>>, val body: ByteArray?)\n |}\n ');
1453
1453
  }
1454
1454
  protoOf(KotlinShared).toString = function () {
1455
1455
  return 'KotlinShared';
@@ -1490,25 +1490,25 @@ protoOf(KotlinEmitter).vp = emit_5;
1490
1490
  protoOf(KotlinEmitter).wp = emit_6;
1491
1491
  protoOf(KotlinEmitter).xp = emit_7;
1492
1492
  protoOf(KotlinEmitter).yp = emit_8;
1493
- protoOf(KotlinEmitter).ir = emit_12;
1494
- protoOf(KotlinEmitter).dr = emit_11;
1495
- protoOf(KotlinEmitter).jr = emit_13;
1496
- protoOf(KotlinEmitter).yq = emit_10;
1493
+ protoOf(KotlinEmitter).ir = emit_14;
1494
+ protoOf(KotlinEmitter).dr = emit_15;
1495
+ protoOf(KotlinEmitter).jr = emit_10;
1496
+ protoOf(KotlinEmitter).yq = emit_13;
1497
1497
  protoOf(KotlinEmitter).wq = emit_3;
1498
1498
  protoOf(KotlinEmitter).xq = emit_9;
1499
- protoOf(KotlinEmitter).p1v = emit_14;
1500
- protoOf(KotlinEmitter).q1v = emit_15;
1499
+ protoOf(KotlinEmitter).q1v = emit_11;
1500
+ protoOf(KotlinEmitter).r1v = emit_12;
1501
1501
  protoOf(KotlinEmitter).kr = emitValidator;
1502
- protoOf(KotlinEmitter).c1w = sanitize;
1503
- protoOf(KotlinEmitter).r1v = sanitizeFirstIsDigit;
1504
- protoOf(KotlinEmitter).s1v = sanitizeKeywords;
1505
- protoOf(KotlinEmitter).t1v = emitHandleFunction;
1506
- protoOf(KotlinEmitter).l1w = emitRequestHeaders;
1507
- protoOf(KotlinEmitter).m1w = emitQueries;
1508
- protoOf(KotlinEmitter).n1w = emitBody;
1509
- protoOf(KotlinEmitter).o1w = emitHeaders;
1502
+ protoOf(KotlinEmitter).d1w = sanitize;
1503
+ protoOf(KotlinEmitter).s1v = sanitizeFirstIsDigit;
1504
+ protoOf(KotlinEmitter).t1v = sanitizeKeywords;
1505
+ protoOf(KotlinEmitter).u1v = emitHandleFunction;
1506
+ protoOf(KotlinEmitter).m1w = emitRequestHeaders;
1507
+ protoOf(KotlinEmitter).n1w = emitQueries;
1508
+ protoOf(KotlinEmitter).o1w = emitBody;
1509
+ protoOf(KotlinEmitter).p1w = emitHeaders;
1510
1510
  protoOf(KotlinIrEmitter).on = emit_1;
1511
- protoOf(KotlinIrEmitter).l1u = emit_2;
1511
+ protoOf(KotlinIrEmitter).m1u = emit_2;
1512
1512
  //endregion
1513
1513
  //region block: exports
1514
1514
  export {