@flock/wirespec 0.19.2 → 0.19.3

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 (34) hide show
  1. package/clikt-clikt-mordant.mjs +39 -39
  2. package/colormath-root-colormath.mjs +432 -432
  3. package/kotlin-kotlin-stdlib.mjs +6 -6
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +9765 -9765
  6. package/kotlin-rgxgen.mjs +1756 -1756
  7. package/kotlinx-io-kotlinx-io-core.mjs +403 -403
  8. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1759 -1759
  9. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1468 -1468
  10. package/mordant-mordant.mjs +1181 -1181
  11. package/package.json +1 -1
  12. package/wirespec-src-compiler-emitters-java.mjs +238 -236
  13. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-kotlin.mjs +139 -137
  15. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-python.mjs +176 -174
  17. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-rust.mjs +305 -303
  19. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-scala.mjs +112 -110
  21. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-typescript.mjs +179 -177
  23. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-wirespec.mjs +24 -24
  25. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  26. package/wirespec-src-compiler-ir.mjs +2626 -2578
  27. package/wirespec-src-compiler-ir.mjs.map +1 -1
  28. package/wirespec-src-converter-avro.mjs +479 -479
  29. package/wirespec-src-converter-openapi.mjs +338 -338
  30. package/wirespec-src-ide-lsp.mjs +1351 -1351
  31. package/wirespec-src-plugin-arguments.mjs +134 -134
  32. package/wirespec-src-plugin-cli.mjs +84 -84
  33. package/wirespec-src-plugin-npm.mjs +18 -18
  34. package/wirespec-src-tools-generator.mjs +2 -2
@@ -159,6 +159,7 @@ import {
159
159
  convert1cn4bolzoed8c as convert_4,
160
160
  emitEndpointClient1meajc90wf3el as emitEndpointClient,
161
161
  emitClient32kfwzg2hm5vj as emitClient,
162
+ get_extensions31c4or738wbxz as get_extensions,
162
163
  emit1oxjujel6f3jb as emit_1,
163
164
  emit3bzdcd0f6nwtj as emit_2,
164
165
  beforeGenerate3o8idb3hey1b0 as beforeGenerate,
@@ -172,10 +173,10 @@ import {
172
173
  function emit_3(identifier) {
173
174
  var tmp;
174
175
  if (identifier instanceof DefinitionIdentifier) {
175
- tmp = this.r1x(identifier);
176
+ tmp = this.u1x(identifier);
176
177
  } else {
177
178
  if (identifier instanceof FieldIdentifier) {
178
- tmp = this.h1x(this.r1x(identifier));
179
+ tmp = this.k1x(this.u1x(identifier));
179
180
  } else {
180
181
  noWhenBranchMatchedException();
181
182
  }
@@ -197,7 +198,7 @@ function sanitize(_this__u8e3s4) {
197
198
  destination.x(tmp$ret$0);
198
199
  }
199
200
  var tmp = asSequence(joinToString(destination, ''));
200
- return this.g1x(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
201
+ return this.j1x(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
201
202
  }
202
203
  function sanitizeFirstIsDigit(_this__u8e3s4) {
203
204
  var tmp;
@@ -217,7 +218,7 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
217
218
  return tmp;
218
219
  }
219
220
  function sanitizeKeywords(_this__u8e3s4) {
220
- return Companion_getInstance_0().e1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
221
+ return Companion_getInstance_0().h1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
221
222
  }
222
223
  initMetadataForInterface(KotlinIdentifierEmitter, 'KotlinIdentifierEmitter');
223
224
  function emit_4(type, module_0) {
@@ -371,7 +372,7 @@ function emit_9(channel) {
371
372
  }
372
373
  initMetadataForInterface(KotlinChannelDefinitionEmitter, 'KotlinChannelDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
373
374
  function emit_10(refined) {
374
- return trimMargin('\n |data class ' + this.r1x(refined.sr_1) + '(override val value: ' + this.nq(refined.tr_1) + '): Wirespec.Refined<' + this.nq(refined.tr_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.bs(refined) + '\n |}\n |\n ');
375
+ return trimMargin('\n |data class ' + this.u1x(refined.sr_1) + '(override val value: ' + this.nq(refined.tr_1) + '): Wirespec.Refined<' + this.nq(refined.tr_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.bs(refined) + '\n |}\n |\n ');
375
376
  }
376
377
  function emitValidator(_this__u8e3s4) {
377
378
  var defaultReturn = 'true';
@@ -414,7 +415,16 @@ function emitValidator(_this__u8e3s4) {
414
415
  return tmp;
415
416
  }
416
417
  initMetadataForInterface(KotlinRefinedTypeDefinitionEmitter, 'KotlinRefinedTypeDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter, KotlinTypeDefinitionEmitter]);
417
- function emit_11(endpoint) {
418
+ function emit_11(enum_0, module_0) {
419
+ var tmp = this.u1x(enum_0.xr_1);
420
+ return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.yr_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.hs(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
421
+ }
422
+ initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
423
+ function emit_12(union) {
424
+ return trimMargin('\n |sealed interface ' + this.nr(union.gp_1) + '\n |\n ');
425
+ }
426
+ initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
427
+ function emit_13(endpoint) {
418
428
  // Inline function 'kotlin.collections.map' call
419
429
  var this_0 = importReferences(endpoint);
420
430
  // Inline function 'kotlin.collections.mapTo' call
@@ -422,7 +432,7 @@ function emit_11(endpoint) {
422
432
  var _iterator__ex2g4s = this_0.t();
423
433
  while (_iterator__ex2g4s.u()) {
424
434
  var item = _iterator__ex2g4s.v();
425
- var tmp$ret$0 = 'import ' + this.r1w().ds_1 + '.model.' + item.bv_1;
435
+ var tmp$ret$0 = 'import ' + this.u1w().ds_1 + '.model.' + item.bv_1;
426
436
  destination.x(tmp$ret$0);
427
437
  }
428
438
  var tmp = destination;
@@ -432,7 +442,7 @@ function emit_11(endpoint) {
432
442
  var tmp_3 = emitObject$default(this, tmp_2, 'Path', 'Wirespec.Path', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_0(this));
433
443
  var tmp_4 = emitObject$default(this, endpoint.xp_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
434
444
  var tmp_5 = emitObject$default(this, endpoint.yp_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
435
- var tmp_6 = this.e1x(first(endpoint.zp_1), endpoint);
445
+ var tmp_6 = this.h1x(first(endpoint.zp_1), endpoint);
436
446
  var tmp_7 = Spacer_instance.toString();
437
447
  var tmp_8 = emitStatusInterfaces(this, endpoint);
438
448
  var tmp_9 = emitResponseInterfaces(this, endpoint);
@@ -462,7 +472,7 @@ function emit_11(endpoint) {
462
472
  var tmp_22 = Spacer_instance.hs(2);
463
473
  var tmp_23 = Spacer_instance.toString();
464
474
  var tmp_24 = Spacer_instance.hs(2);
465
- var tmp_25 = this.i1x(endpoint);
475
+ var tmp_25 = this.l1x(endpoint);
466
476
  var tmp_26 = Spacer_instance.hs(2);
467
477
  var tmp_27 = Spacer_instance.hs(3);
468
478
  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.wp_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.hs(3) + 'override val method = "' + endpoint.vp_1.toString() + '"\n |' + Spacer_instance.hs(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.hs(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.hs(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.hs(3) + '}\n |' + Spacer_instance.hs(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.hs(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.hs(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.hs(3) + '}\n |' + Spacer_instance.hs(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
@@ -470,7 +480,7 @@ function emit_11(endpoint) {
470
480
  function emitHandleFunction(endpoint) {
471
481
  return 'suspend fun ' + Companion_instance_1.fr(this.nr(endpoint.up_1)) + '(request: Request): Response<*>';
472
482
  }
473
- function emit_12(_this__u8e3s4, endpoint) {
483
+ function emit_14(_this__u8e3s4, endpoint) {
474
484
  var tmp = Spacer_instance.toString();
475
485
  var tmp_0 = emitConstructor(this, _this__u8e3s4, endpoint);
476
486
  var tmp_1 = Spacer_instance.hs(2);
@@ -485,7 +495,7 @@ function emit_12(_this__u8e3s4, endpoint) {
485
495
  var tmp_10 = Spacer_instance.toString();
486
496
  var tmp_11 = Spacer_instance.hs(2);
487
497
  var tmp_12 = Spacer_instance.hs(3);
488
- return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.vp_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.wp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.hs(3) + 'method = request.method.name,\n |' + Spacer_instance.hs(3) + 'queries = ' + this.b1y(endpoint) + ',\n |' + Spacer_instance.hs(3) + 'headers = ' + this.a1y(endpoint) + ',\n |' + Spacer_instance.hs(3) + 'body = ' + (!(_this__u8e3s4.dq_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.dq_1) + '>())' : 'null') + ',\n |' + Spacer_instance.hs(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.hs(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
498
+ return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.vp_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.wp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.hs(3) + 'method = request.method.name,\n |' + Spacer_instance.hs(3) + 'queries = ' + this.e1y(endpoint) + ',\n |' + Spacer_instance.hs(3) + 'headers = ' + this.d1y(endpoint) + ',\n |' + Spacer_instance.hs(3) + 'body = ' + (!(_this__u8e3s4.dq_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.dq_1) + '>())' : 'null') + ',\n |' + Spacer_instance.hs(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.hs(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
489
499
  }
490
500
  function emitRequestHeaders(_this__u8e3s4) {
491
501
  var tmp;
@@ -510,7 +520,7 @@ function emitQueries(endpoint) {
510
520
  }
511
521
  return tmp;
512
522
  }
513
- function emit_13(_this__u8e3s4) {
523
+ function emit_15(_this__u8e3s4) {
514
524
  // Inline function 'kotlin.let' call
515
525
  var it = joinToString(_this__u8e3s4.hq_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
516
526
  var responseHeaderFields = isBlank(it) ? '' : ', ' + it;
@@ -540,16 +550,7 @@ function emitHeaders(_this__u8e3s4) {
540
550
  return tmp;
541
551
  }
542
552
  initMetadataForInterface(KotlinEndpointDefinitionEmitter, 'KotlinEndpointDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
543
- function emit_14(union) {
544
- return trimMargin('\n |sealed interface ' + this.nr(union.gp_1) + '\n |\n ');
545
- }
546
- initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
547
- function emit_15(enum_0, module_0) {
548
- var tmp = this.r1x(enum_0.xr_1);
549
- return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.yr_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.hs(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
550
- }
551
- initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
552
- initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinTypeDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter, KotlinIdentifierEmitter, KotlinChannelDefinitionEmitter, KotlinEndpointDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinEnumDefinitionEmitter]);
553
+ initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinRefinedTypeDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinChannelDefinitionEmitter, KotlinTypeDefinitionEmitter, KotlinIdentifierEmitter, KotlinEndpointDefinitionEmitter]);
553
554
  initMetadataForCompanion(Companion);
554
555
  initMetadataForCompanion(Companion_0);
555
556
  initMetadataForClass(KotlinIrEmitter, 'KotlinIrEmitter', KotlinIrEmitter, VOID, [IrEmitter]);
@@ -563,7 +564,7 @@ function emitImports($this, _this__u8e3s4) {
563
564
  var _iterator__ex2g4s = this_0.t();
564
565
  while (_iterator__ex2g4s.u()) {
565
566
  var item = _iterator__ex2g4s.v();
566
- var tmp$ret$0 = 'import ' + $this.r1w().ds_1 + '.model.' + item.bv_1 + ';';
567
+ var tmp$ret$0 = 'import ' + $this.u1w().ds_1 + '.model.' + item.bv_1 + ';';
567
568
  destination.x(tmp$ret$0);
568
569
  }
569
570
  var tmp = destination;
@@ -579,37 +580,37 @@ function KotlinEmitter(packageName, emitShared) {
579
580
  packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
580
581
  emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
581
582
  LanguageEmitter.call(this);
582
- this.s1x_1 = packageName;
583
- this.t1x_1 = emitShared;
584
- this.u1x_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
585
- this.v1x_1 = FileExtension_Kotlin_getInstance();
586
- this.w1x_1 = KotlinShared_getInstance();
587
- this.x1x_1 = '//';
588
- }
589
- protoOf(KotlinEmitter).r1w = function () {
590
- return this.s1x_1;
583
+ this.v1x_1 = packageName;
584
+ this.w1x_1 = emitShared;
585
+ this.x1x_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
586
+ this.y1x_1 = FileExtension_Kotlin_getInstance();
587
+ this.z1x_1 = KotlinShared_getInstance();
588
+ this.a1y_1 = '//';
589
+ }
590
+ protoOf(KotlinEmitter).u1w = function () {
591
+ return this.v1x_1;
591
592
  };
592
593
  protoOf(KotlinEmitter).uq = function () {
593
- return this.v1x_1;
594
+ return this.y1x_1;
594
595
  };
595
- protoOf(KotlinEmitter).a1x = function () {
596
- return this.w1x_1;
596
+ protoOf(KotlinEmitter).d1x = function () {
597
+ return this.z1x_1;
597
598
  };
598
599
  protoOf(KotlinEmitter).vq = function () {
599
- return this.x1x_1;
600
+ return this.a1y_1;
600
601
  };
601
602
  protoOf(KotlinEmitter).kr = function (module_0, logger) {
602
603
  // Inline function 'kotlin.let' call
603
604
  var it = protoOf(LanguageEmitter).kr.call(this, module_0, logger);
604
- return this.t1x_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.cs('community.flock.wirespec.kotlin').fs() + 'Wirespec', this.a1x().z1x_1)) : it;
605
+ return this.w1x_1.xo_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.cs('community.flock.wirespec.kotlin').fs() + 'Wirespec', this.d1x().c1y_1)) : it;
605
606
  };
606
607
  protoOf(KotlinEmitter).lr = function (definition, module_0, logger) {
607
608
  // Inline function 'kotlin.let' call
608
609
  var it = protoOf(LanguageEmitter).lr.call(this, definition, module_0, logger);
609
- var subPackageName = plus(this.r1w(), definition);
610
+ var subPackageName = plus(this.u1w(), definition);
610
611
  var tmp = subPackageName.fs() + it.yo_1;
611
612
  // Inline function 'kotlin.text.trimStart' call
612
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.gr(module_0) ? this.u1x_1 : '') + '\n |' + it.zo_1 + '\n ');
613
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.gr(module_0) ? this.x1x_1 : '') + '\n |' + it.zo_1 + '\n ');
613
614
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
614
615
  return new Emitted(tmp, tmp$ret$0);
615
616
  };
@@ -676,7 +677,7 @@ function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
676
677
  return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.hs(2) + ')';
677
678
  }
678
679
  function emitSerialized($this, _this__u8e3s4) {
679
- return trimMargin('\n |' + Spacer_instance.hs(3) + 'is Response' + _this__u8e3s4.gq_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.hs(4) + 'statusCode = response.status,\n |' + Spacer_instance.hs(4) + 'headers = ' + $this.d1y(_this__u8e3s4) + ',\n |' + Spacer_instance.hs(4) + 'body = ' + (!(_this__u8e3s4.iq_1 == null) ? $this.c1y($this, _this__u8e3s4.iq_1) : 'null') + ',\n |' + Spacer_instance.hs(3) + ')\n ');
680
+ return trimMargin('\n |' + Spacer_instance.hs(3) + 'is Response' + _this__u8e3s4.gq_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.hs(4) + 'statusCode = response.status,\n |' + Spacer_instance.hs(4) + 'headers = ' + $this.g1y(_this__u8e3s4) + ',\n |' + Spacer_instance.hs(4) + 'body = ' + (!(_this__u8e3s4.iq_1 == null) ? $this.f1y($this, _this__u8e3s4.iq_1) : 'null') + ',\n |' + Spacer_instance.hs(3) + ')\n ');
680
681
  }
681
682
  function emitDeserialized($this, _this__u8e3s4) {
682
683
  var tmp = Spacer_instance.hs(3) + _this__u8e3s4.gq_1 + ' -> Response' + _this__u8e3s4.gq_1 + '(';
@@ -770,7 +771,7 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_2(this$0) {
770
771
  }
771
772
  function KotlinEndpointDefinitionEmitter$emit$lambda_3(this$0) {
772
773
  return function (it) {
773
- return this$0.f1x(it);
774
+ return this$0.i1x(it);
774
775
  };
775
776
  }
776
777
  function KotlinEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -898,18 +899,18 @@ function sanitizeNegative($this, _this__u8e3s4) {
898
899
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
899
900
  }
900
901
  function sanitizeEnum($this, _this__u8e3s4) {
901
- return $this.g1x(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
902
+ return $this.j1x(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
902
903
  }
903
904
  function KotlinEnumDefinitionEmitter$emit$lambda(this$0) {
904
905
  return function (it) {
905
- return this$0.h1x(sanitizeEnum(this$0, it)) + '("' + it + '")';
906
+ return this$0.k1x(sanitizeEnum(this$0, it)) + '("' + it + '")';
906
907
  };
907
908
  }
908
909
  function KotlinEnumDefinitionEmitter() {
909
910
  }
910
911
  function Companion() {
911
912
  Companion_instance_2 = this;
912
- this.e1y_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']);
913
+ this.h1y_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']);
913
914
  }
914
915
  var Companion_instance_2;
915
916
  function Companion_getInstance_0() {
@@ -923,14 +924,14 @@ function KotlinIdentifierEmitter$sanitize$lambda(it) {
923
924
  function KotlinIdentifierEmitter() {
924
925
  }
925
926
  function _get_sanitizationConfig__sns434($this) {
926
- var tmp0 = $this.k1y_1;
927
+ var tmp0 = $this.n1y_1;
927
928
  var tmp = KProperty1;
928
929
  // Inline function 'kotlin.getValue' call
929
930
  getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf(), null);
930
931
  return tmp0.l1();
931
932
  }
932
933
  function _get_modelSanitizationConfig__vgg831($this) {
933
- var tmp0 = $this.l1y_1;
934
+ var tmp0 = $this.o1y_1;
934
935
  var tmp = KProperty1;
935
936
  // Inline function 'kotlin.getValue' call
936
937
  getPropertyCallableRef('modelSanitizationConfig', 1, tmp, KotlinIrEmitter$_get_modelSanitizationConfig_$ref_iulb4s(), null);
@@ -995,7 +996,7 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
995
996
  return tmp;
996
997
  }
997
998
  function sanitizeKeywords_0($this, _this__u8e3s4) {
998
- return Companion_getInstance_1().m1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
999
+ return Companion_getInstance_1().p1y_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
999
1000
  }
1000
1001
  function sanitizeSymbol($this, _this__u8e3s4) {
1001
1002
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -1068,7 +1069,7 @@ function sanitizeEnum_0($this, _this__u8e3s4) {
1068
1069
  }
1069
1070
  function Companion_0() {
1070
1071
  Companion_instance_3 = this;
1071
- this.m1y_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']);
1072
+ this.p1y_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']);
1072
1073
  }
1073
1074
  var Companion_instance_3;
1074
1075
  function Companion_getInstance_1() {
@@ -1100,17 +1101,17 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1100
1101
  var tmp;
1101
1102
  var tmp_0;
1102
1103
  if (stmt instanceof FunctionCall) {
1103
- tmp_0 = stmt.z1m_1.j1j() === 'validate';
1104
+ tmp_0 = stmt.a1n_1.j1j() === 'validate';
1104
1105
  } else {
1105
1106
  tmp_0 = false;
1106
1107
  }
1107
1108
  if (tmp_0) {
1108
- tmp = transformChildren(stmt.d1n(VOID, emptyList()), tr);
1109
+ tmp = transformChildren(stmt.e1n(VOID, emptyList()), tr);
1109
1110
  } else {
1110
1111
  if (stmt instanceof ConstructorStatement) {
1111
- var tmp_1 = tr.x1u(stmt.r1n_1);
1112
+ var tmp_1 = tr.y1u(stmt.s1n_1);
1112
1113
  // Inline function 'kotlin.collections.map' call
1113
- var this_0 = stmt.s1n_1;
1114
+ var this_0 = stmt.t1n_1;
1114
1115
  // Inline function 'kotlin.collections.mapTo' call
1115
1116
  var destination = ArrayList_init_$Create$(this_0.a1());
1116
1117
  // Inline function 'kotlin.collections.iterator' call
@@ -1121,7 +1122,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1121
1122
  var name = item.k1();
1122
1123
  // Inline function 'kotlin.collections.component2' call
1123
1124
  var expr = item.l1();
1124
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.a1v(expr));
1125
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.b1v(expr));
1125
1126
  destination.x(tmp$ret$3);
1126
1127
  }
1127
1128
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -1134,7 +1135,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1134
1135
  }
1135
1136
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1136
1137
  return function () {
1137
- var tmp = Companion_getInstance_1().m1y_1;
1138
+ var tmp = Companion_getInstance_1().p1y_1;
1138
1139
  var tmp_0 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1139
1140
  var tmp_1 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1140
1141
  var tmp_2 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1159,7 +1160,7 @@ function KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this$0) {
1159
1160
  return function () {
1160
1161
  var tmp = _get_sanitizationConfig__sns434(this$0);
1161
1162
  var tmp_0 = KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda;
1162
- return tmp.q1w(VOID, VOID, tmp_0, VOID, KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0));
1163
+ return tmp.t1w(VOID, VOID, tmp_0, VOID, KotlinIrEmitter$modelSanitizationConfig$delegate$lambda$lambda_0(this$0));
1163
1164
  };
1164
1165
  }
1165
1166
  function KotlinIrEmitter$_get_modelSanitizationConfig_$ref_iulb4s() {
@@ -1171,7 +1172,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1171
1172
  var tmp;
1172
1173
  if (element instanceof File) {
1173
1174
  // Inline function 'kotlin.collections.partition' call
1174
- var this_0 = element.v1n_1;
1175
+ var this_0 = element.w1n_1;
1175
1176
  var first = ArrayList_init_$Create$_0();
1176
1177
  var second = ArrayList_init_$Create$_0();
1177
1178
  var _iterator__ex2g4s = this_0.t();
@@ -1186,7 +1187,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1186
1187
  var _destruct__k2r9zo = new Pair(first, second);
1187
1188
  var packageElements = _destruct__k2r9zo.ve();
1188
1189
  var rest = _destruct__k2r9zo.we();
1189
- tmp = element.y1n(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1190
+ tmp = element.z1n(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1190
1191
  } else {
1191
1192
  tmp = element;
1192
1193
  }
@@ -1197,11 +1198,11 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
1197
1198
  return function (element, transformer) {
1198
1199
  var tmp;
1199
1200
  if (element instanceof Namespace) {
1200
- var injected = element.a1o_1.equals(Companion_getInstance().n1h('Wirespec')) ? $clientServer : emptyList();
1201
+ var injected = element.b1o_1.equals(Companion_getInstance().n1h('Wirespec')) ? $clientServer : emptyList();
1201
1202
  var tmp_0;
1202
1203
  // Inline function 'kotlin.collections.isNotEmpty' call
1203
1204
  if (!injected.r()) {
1204
- tmp_0 = withElements(element, plus_2(element.w1n(), injected));
1205
+ tmp_0 = withElements(element, plus_2(element.x1n(), injected));
1205
1206
  } else {
1206
1207
  tmp_0 = element;
1207
1208
  }
@@ -1226,7 +1227,7 @@ function KotlinIrEmitter$emitGenerator$lambda_1(it) {
1226
1227
  }
1227
1228
  function KotlinIrEmitter$emitGenerator$lambda_2(this$0) {
1228
1229
  return function (it) {
1229
- return import_0(this$0.r1w().ds_1 + '.model', it);
1230
+ return import_0(this$0.u1w().ds_1 + '.model', it);
1230
1231
  };
1231
1232
  }
1232
1233
  function KotlinIrEmitter$emit$lambda(this$0) {
@@ -1238,26 +1239,26 @@ function KotlinIrEmitter(packageName, emitShared) {
1238
1239
  Companion_getInstance_1();
1239
1240
  packageName = packageName === VOID ? Companion_instance.cs('community.flock.wirespec.generated') : packageName;
1240
1241
  emitShared = emitShared === VOID ? Companion_instance_0.wo() : emitShared;
1241
- this.f1y_1 = packageName;
1242
- this.g1y_1 = emitShared;
1243
- this.h1y_1 = KotlinGenerator_instance;
1244
- this.i1y_1 = FileExtension_Kotlin_getInstance();
1245
- this.j1y_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1242
+ this.i1y_1 = packageName;
1243
+ this.j1y_1 = emitShared;
1244
+ this.k1y_1 = KotlinGenerator_instance;
1245
+ this.l1y_1 = FileExtension_Kotlin_getInstance();
1246
+ this.m1y_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1246
1247
  var tmp = this;
1247
- tmp.k1y_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1248
+ tmp.n1y_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1248
1249
  var tmp_0 = this;
1249
- tmp_0.l1y_1 = lazy(KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1250
+ tmp_0.o1y_1 = lazy(KotlinIrEmitter$modelSanitizationConfig$delegate$lambda(this));
1250
1251
  }
1251
- protoOf(KotlinIrEmitter).r1w = function () {
1252
- return this.f1y_1;
1252
+ protoOf(KotlinIrEmitter).u1w = function () {
1253
+ return this.i1y_1;
1253
1254
  };
1254
- protoOf(KotlinIrEmitter).s1v = function () {
1255
- return this.h1y_1;
1255
+ protoOf(KotlinIrEmitter).t1v = function () {
1256
+ return this.k1y_1;
1256
1257
  };
1257
1258
  protoOf(KotlinIrEmitter).uq = function () {
1258
- return this.i1y_1;
1259
+ return this.l1y_1;
1259
1260
  };
1260
- protoOf(KotlinIrEmitter).v1v = function () {
1261
+ protoOf(KotlinIrEmitter).x1v = function () {
1261
1262
  var packageName = Companion_instance.cs('community.flock.wirespec.kotlin');
1262
1263
  var clientServer = convertClientServer(packageName);
1263
1264
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1266,28 +1267,28 @@ protoOf(KotlinIrEmitter).v1v = function () {
1266
1267
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1267
1268
  var tmp = scope;
1268
1269
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1269
- var this_1 = scope.f1v_1;
1270
+ var this_1 = scope.g1v_1;
1270
1271
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1271
1272
  // Inline function 'kotlin.apply' call
1272
1273
  var this_2 = new TransformerBuilder();
1273
- this_2.w1i(KotlinIrEmitter$emitShared$lambda);
1274
- var tmp$ret$2 = this_2.x1i();
1275
- tmp.f1v_1 = transform(this_1, tmp$ret$2);
1274
+ this_2.x1i(KotlinIrEmitter$emitShared$lambda);
1275
+ var tmp$ret$2 = this_2.y1i();
1276
+ tmp.g1v_1 = transform(this_1, tmp$ret$2);
1276
1277
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1277
1278
  var tmp_0 = scope;
1278
1279
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1279
1280
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1280
- var this_3 = scope.f1v_1;
1281
+ var this_3 = scope.g1v_1;
1281
1282
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1282
1283
  // Inline function 'kotlin.apply' call
1283
1284
  var this_4 = new TransformerBuilder();
1284
- this_4.w1i(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1285
- var tmp$ret$7 = this_4.x1i();
1286
- tmp_0.f1v_1 = transform(this_3, tmp$ret$7);
1287
- var tmp_1 = scope.f1v_1;
1285
+ this_4.x1i(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1286
+ var tmp$ret$7 = this_4.y1i();
1287
+ tmp_0.g1v_1 = transform(this_3, tmp$ret$7);
1288
+ var tmp_1 = scope.g1v_1;
1288
1289
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1289
1290
  var tmp_2;
1290
- if (this.g1y_1.xo_1) {
1291
+ if (this.j1y_1.xo_1) {
1291
1292
  tmp_2 = wirespecShared;
1292
1293
  } else {
1293
1294
  tmp_2 = null;
@@ -1297,7 +1298,7 @@ protoOf(KotlinIrEmitter).v1v = function () {
1297
1298
  protoOf(KotlinIrEmitter).lr = function (definition, module_0, logger) {
1298
1299
  var file = emit_0.call(this, definition, module_0, logger);
1299
1300
  // Inline function 'kotlin.takeIf' call
1300
- var this_0 = this.j1y_1;
1301
+ var this_0 = this.m1y_1;
1301
1302
  var tmp;
1302
1303
  if (Companion_instance_1.hr(module_0)) {
1303
1304
  tmp = this_0;
@@ -1305,9 +1306,9 @@ protoOf(KotlinIrEmitter).lr = function (definition, module_0, logger) {
1305
1306
  tmp = null;
1306
1307
  }
1307
1308
  var tmp$ret$1 = tmp;
1308
- return placeInPackage(prependImports(file, tmp$ret$1), this.r1w(), definition);
1309
+ return placeInPackage(prependImports(file, tmp$ret$1), this.u1w(), definition);
1309
1310
  };
1310
- protoOf(KotlinIrEmitter).z1v = function (definition, module_0) {
1311
+ protoOf(KotlinIrEmitter).c1w = function (definition, module_0) {
1311
1312
  var tmp;
1312
1313
  if (definition instanceof Type) {
1313
1314
  tmp = convertToGenerator_2(definition, module_0);
@@ -1334,7 +1335,7 @@ protoOf(KotlinIrEmitter).z1v = function (definition, module_0) {
1334
1335
  var tmp_2 = filterNot(tmp_1, KotlinIrEmitter$emitGenerator$lambda_0(generatorOwnName));
1335
1336
  var tmp_3 = distinct_0(map(tmp_2, KotlinIrEmitter$emitGenerator$lambda_1));
1336
1337
  var modelImports = toList(map(tmp_3, KotlinIrEmitter$emitGenerator$lambda_2(this)));
1337
- return placeInPackage_0(prependImports(sanitized, plus_2(this.j1y_1, modelImports)), this.r1w(), 'generator');
1338
+ return placeInPackage_0(prependImports(sanitized, plus_2(this.m1y_1, modelImports)), this.u1w(), 'generator');
1338
1339
  };
1339
1340
  protoOf(KotlinIrEmitter).kq = function (type, module_0) {
1340
1341
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_modelSanitizationConfig__vgg831(this)));
@@ -1350,7 +1351,7 @@ protoOf(KotlinIrEmitter).ur = function (refined) {
1350
1351
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
1351
1352
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1352
1353
  // Inline function 'kotlin.collections.filterIsInstance' call
1353
- var tmp0 = file.w1n();
1354
+ var tmp0 = file.x1n();
1354
1355
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1355
1356
  var destination = ArrayList_init_$Create$_0();
1356
1357
  var _iterator__ex2g4s = tmp0.t();
@@ -1365,10 +1366,10 @@ protoOf(KotlinIrEmitter).ur = function (refined) {
1365
1366
  return new File(Companion_getInstance().n1h(sanitize_0(this, refined.sr_1)), listOfNotNull_0(updatedStruct));
1366
1367
  };
1367
1368
  protoOf(KotlinIrEmitter).as = function (endpoint) {
1368
- var imports = buildModelImports(endpoint, this.r1w());
1369
+ var imports = buildModelImports(endpoint, this.u1w());
1369
1370
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1370
1371
  // Inline function 'kotlin.collections.filterIsInstance' call
1371
- var tmp0 = convert_3(endpoint).w1n();
1372
+ var tmp0 = convert_3(endpoint).x1n();
1372
1373
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1373
1374
  var destination = ArrayList_init_$Create$_0();
1374
1375
  var _iterator__ex2g4s = tmp0.t();
@@ -1396,7 +1397,7 @@ protoOf(KotlinIrEmitter).as = function (endpoint) {
1396
1397
  protoOf(KotlinIrEmitter).or = function (channel) {
1397
1398
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1398
1399
  // Inline function 'kotlin.takeIf' call
1399
- var this_0 = buildModelImports(channel, this.r1w());
1400
+ var this_0 = buildModelImports(channel, this.u1w());
1400
1401
  var tmp_0;
1401
1402
  // Inline function 'kotlin.collections.isNotEmpty' call
1402
1403
  if (!this_0.r()) {
@@ -1407,25 +1408,25 @@ protoOf(KotlinIrEmitter).or = function (channel) {
1407
1408
  var tmp$ret$2 = tmp_0;
1408
1409
  return prependImports(tmp, tmp$ret$2);
1409
1410
  };
1410
- protoOf(KotlinIrEmitter).y1v = function (endpoint) {
1411
- var imports = buildModelImports(endpoint, this.r1w());
1412
- var endpointImport = import_0(this.r1w().ds_1 + '.endpoint', endpoint.up_1.l1());
1411
+ protoOf(KotlinIrEmitter).b1w = function (endpoint) {
1412
+ var imports = buildModelImports(endpoint, this.u1w());
1413
+ var endpointImport = import_0(this.u1w().ds_1 + '.endpoint', endpoint.up_1.l1());
1413
1414
  var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
1414
- var subPackageName = plus_0(this.r1w(), 'client');
1415
- var tmp = Companion_getInstance().n1h(subPackageName.fs() + file.u1n_1.y1i());
1415
+ var subPackageName = plus_0(this.u1w(), 'client');
1416
+ var tmp = Companion_getInstance().n1h(subPackageName.fs() + file.v1n_1.o1h());
1416
1417
  // Inline function 'kotlin.collections.buildList' call
1417
1418
  // Inline function 'kotlin.collections.buildListInternal' call
1418
1419
  // Inline function 'kotlin.apply' call
1419
1420
  var this_0 = ArrayList_init_$Create$_0();
1420
1421
  this_0.x(new Package(subPackageName.ds_1));
1421
- this_0.f1(this.j1y_1);
1422
+ this_0.f1(this.m1y_1);
1422
1423
  this_0.f1(imports);
1423
1424
  this_0.x(endpointImport);
1424
- this_0.f1(file.v1n_1);
1425
+ this_0.f1(file.w1n_1);
1425
1426
  var tmp$ret$3 = this_0.o5();
1426
1427
  return new File(tmp, tmp$ret$3);
1427
1428
  };
1428
- protoOf(KotlinIrEmitter).w1v = function (endpoints, logger) {
1429
+ protoOf(KotlinIrEmitter).y1v = function (endpoints, logger) {
1429
1430
  // Inline function 'kotlin.collections.flatMap' call
1430
1431
  // Inline function 'kotlin.collections.flatMapTo' call
1431
1432
  var destination = ArrayList_init_$Create$_0();
@@ -1452,7 +1453,7 @@ protoOf(KotlinIrEmitter).w1v = function (endpoints, logger) {
1452
1453
  var _iterator__ex2g4s_1 = list_0.t();
1453
1454
  while (_iterator__ex2g4s_1.u()) {
1454
1455
  var item = _iterator__ex2g4s_1.v();
1455
- var tmp$ret$5 = import_0(this.r1w().ds_1 + '.model', item.bv_1);
1456
+ var tmp$ret$5 = import_0(this.u1w().ds_1 + '.model', item.bv_1);
1456
1457
  destination_0.x(tmp$ret$5);
1457
1458
  }
1458
1459
  var imports = destination_0;
@@ -1462,7 +1463,7 @@ protoOf(KotlinIrEmitter).w1v = function (endpoints, logger) {
1462
1463
  var _iterator__ex2g4s_2 = endpoints.t();
1463
1464
  while (_iterator__ex2g4s_2.u()) {
1464
1465
  var item_0 = _iterator__ex2g4s_2.v();
1465
- var tmp$ret$8 = import_0(this.r1w().ds_1 + '.endpoint', item_0.up_1.l1());
1466
+ var tmp$ret$8 = import_0(this.u1w().ds_1 + '.endpoint', item_0.up_1.l1());
1466
1467
  destination_1.x(tmp$ret$8);
1467
1468
  }
1468
1469
  var endpointImports = destination_1;
@@ -1472,21 +1473,21 @@ protoOf(KotlinIrEmitter).w1v = function (endpoints, logger) {
1472
1473
  var _iterator__ex2g4s_3 = endpoints.t();
1473
1474
  while (_iterator__ex2g4s_3.u()) {
1474
1475
  var item_1 = _iterator__ex2g4s_3.v();
1475
- var tmp$ret$11 = import_0(this.r1w().ds_1 + '.client', item_1.up_1.l1() + 'Client');
1476
+ var tmp$ret$11 = import_0(this.u1w().ds_1 + '.client', item_1.up_1.l1() + 'Client');
1476
1477
  destination_2.x(tmp$ret$11);
1477
1478
  }
1478
1479
  var clientImports = destination_2;
1479
1480
  var allImports = plus_2(plus_2(imports, endpointImports), clientImports);
1480
1481
  var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
1481
- var tmp = Companion_getInstance().n1h(this.r1w().fs() + file.u1n_1.y1i());
1482
+ var tmp = Companion_getInstance().n1h(this.u1w().fs() + file.v1n_1.o1h());
1482
1483
  // Inline function 'kotlin.collections.buildList' call
1483
1484
  // Inline function 'kotlin.collections.buildListInternal' call
1484
1485
  // Inline function 'kotlin.apply' call
1485
1486
  var this_0 = ArrayList_init_$Create$_0();
1486
- this_0.x(new Package(this.r1w().ds_1));
1487
- this_0.f1(this.j1y_1);
1487
+ this_0.x(new Package(this.u1w().ds_1));
1488
+ this_0.f1(this.m1y_1);
1488
1489
  this_0.f1(allImports);
1489
- this_0.f1(file.v1n_1);
1490
+ this_0.f1(file.w1n_1);
1490
1491
  var tmp$ret$17 = this_0.o5();
1491
1492
  return new File(tmp, tmp$ret$17);
1492
1493
  };
@@ -1509,7 +1510,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1509
1510
  var _iterator__ex2g4s_0 = list.t();
1510
1511
  while (_iterator__ex2g4s_0.u()) {
1511
1512
  var item = _iterator__ex2g4s_0.v();
1512
- var tmp$ret$2 = import_0(packageName.ds_1 + '.model', Companion_getInstance().n1h(item.bv_1).y1i());
1513
+ var tmp$ret$2 = import_0(packageName.ds_1 + '.model', Companion_getInstance().n1h(item.bv_1).o1h());
1513
1514
  destination.x(tmp$ret$2);
1514
1515
  }
1515
1516
  return destination;
@@ -1521,14 +1522,14 @@ function injectApiAlias(_this__u8e3s4) {
1521
1522
  var tmp = scope;
1522
1523
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1523
1524
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1524
- var this_0 = scope.f1v_1;
1525
+ var this_0 = scope.g1v_1;
1525
1526
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1526
1527
  // Inline function 'kotlin.apply' call
1527
1528
  var this_1 = new TransformerBuilder();
1528
- this_1.w1i(injectApiAlias$lambda);
1529
- var tmp$ret$2 = this_1.x1i();
1530
- tmp.f1v_1 = transform(this_0, tmp$ret$2);
1531
- var tmp_0 = scope.f1v_1;
1529
+ this_1.x1i(injectApiAlias$lambda);
1530
+ var tmp$ret$2 = this_1.y1i();
1531
+ tmp.g1v_1 = transform(this_0, tmp$ret$2);
1532
+ var tmp_0 = scope.g1v_1;
1532
1533
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1533
1534
  }
1534
1535
  function injectCompanionObject(_this__u8e3s4, endpoint) {
@@ -1538,14 +1539,14 @@ function injectCompanionObject(_this__u8e3s4, endpoint) {
1538
1539
  var tmp = scope;
1539
1540
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1540
1541
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1541
- var this_0 = scope.f1v_1;
1542
+ var this_0 = scope.g1v_1;
1542
1543
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1543
1544
  // Inline function 'kotlin.apply' call
1544
1545
  var this_1 = new TransformerBuilder();
1545
- this_1.w1i(injectCompanionObject$lambda(endpoint));
1546
- var tmp$ret$2 = this_1.x1i();
1547
- tmp.f1v_1 = transform(this_0, tmp$ret$2);
1548
- var tmp_0 = scope.f1v_1;
1546
+ this_1.x1i(injectCompanionObject$lambda(endpoint));
1547
+ var tmp$ret$2 = this_1.y1i();
1548
+ tmp.g1v_1 = transform(this_0, tmp$ret$2);
1549
+ var tmp_0 = scope.g1v_1;
1549
1550
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1550
1551
  }
1551
1552
  function buildCompanionObject(endpoint) {
@@ -1561,7 +1562,7 @@ function injectApiAlias$lambda(element, transformer) {
1561
1562
  var tmp_0;
1562
1563
  // Inline function 'kotlin.collections.isNotEmpty' call
1563
1564
  if (!injected.r()) {
1564
- tmp_0 = withElements(element, plus_2(element.w1n(), injected));
1565
+ tmp_0 = withElements(element, plus_2(element.x1n(), injected));
1565
1566
  } else {
1566
1567
  tmp_0 = element;
1567
1568
  }
@@ -1576,11 +1577,11 @@ function injectCompanionObject$lambda($endpoint) {
1576
1577
  return function (element, transformer) {
1577
1578
  var tmp;
1578
1579
  if (element instanceof Interface) {
1579
- var injected = element.o1o_1.equals(Companion_getInstance().n1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1580
+ var injected = element.p1o_1.equals(Companion_getInstance().n1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1580
1581
  var tmp_0;
1581
1582
  // Inline function 'kotlin.collections.isNotEmpty' call
1582
1583
  if (!injected.r()) {
1583
- tmp_0 = withElements(element, plus_2(element.w1n(), injected));
1584
+ tmp_0 = withElements(element, plus_2(element.x1n(), injected));
1584
1585
  } else {
1585
1586
  tmp_0 = element;
1586
1587
  }
@@ -1609,8 +1610,8 @@ function KotlinRefinedTypeDefinitionEmitter() {
1609
1610
  }
1610
1611
  function KotlinShared() {
1611
1612
  KotlinShared_instance = this;
1612
- this.y1x_1 = 'community.flock.wirespec.kotlin';
1613
- this.z1x_1 = trimMargin('\n |package ' + this.y1x_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> {\n |' + Spacer_instance.hs(2) + 'val value: T\n |' + Spacer_instance.hs(2) + 'fun validate(): Boolean\n |' + Spacer_instance.toString() + '}\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.hs(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.hs(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.hs(2) + 'val pathTemplate: String\n |' + Spacer_instance.hs(2) + 'val method: String\n |' + Spacer_instance.hs(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.hs(2) + 'val pathTemplate: String\n |' + Spacer_instance.hs(2) + 'val method: String\n |' + Spacer_instance.hs(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 ');
1613
+ this.b1y_1 = 'community.flock.wirespec.kotlin';
1614
+ this.c1y_1 = trimMargin('\n |package ' + this.b1y_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> {\n |' + Spacer_instance.hs(2) + 'val value: T\n |' + Spacer_instance.hs(2) + 'fun validate(): Boolean\n |' + Spacer_instance.toString() + '}\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.hs(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.hs(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.hs(2) + 'val pathTemplate: String\n |' + Spacer_instance.hs(2) + 'val method: String\n |' + Spacer_instance.hs(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.hs(2) + 'val pathTemplate: String\n |' + Spacer_instance.hs(2) + 'val method: String\n |' + Spacer_instance.hs(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 ');
1614
1615
  }
1615
1616
  protoOf(KotlinShared).toString = function () {
1616
1617
  return 'KotlinShared';
@@ -1651,26 +1652,27 @@ protoOf(KotlinEmitter).lq = emit_5;
1651
1652
  protoOf(KotlinEmitter).mq = emit_6;
1652
1653
  protoOf(KotlinEmitter).nq = emit_7;
1653
1654
  protoOf(KotlinEmitter).oq = emit_8;
1654
- protoOf(KotlinEmitter).zr = emit_15;
1655
+ protoOf(KotlinEmitter).zr = emit_11;
1655
1656
  protoOf(KotlinEmitter).ur = emit_10;
1656
- protoOf(KotlinEmitter).as = emit_11;
1657
- protoOf(KotlinEmitter).pr = emit_14;
1657
+ protoOf(KotlinEmitter).as = emit_13;
1658
+ protoOf(KotlinEmitter).pr = emit_12;
1658
1659
  protoOf(KotlinEmitter).nr = emit_3;
1659
1660
  protoOf(KotlinEmitter).or = emit_9;
1660
- protoOf(KotlinEmitter).e1x = emit_12;
1661
- protoOf(KotlinEmitter).f1x = emit_13;
1661
+ protoOf(KotlinEmitter).h1x = emit_14;
1662
+ protoOf(KotlinEmitter).i1x = emit_15;
1662
1663
  protoOf(KotlinEmitter).bs = emitValidator;
1663
- protoOf(KotlinEmitter).r1x = sanitize;
1664
- protoOf(KotlinEmitter).g1x = sanitizeFirstIsDigit;
1665
- protoOf(KotlinEmitter).h1x = sanitizeKeywords;
1666
- protoOf(KotlinEmitter).i1x = emitHandleFunction;
1667
- protoOf(KotlinEmitter).a1y = emitRequestHeaders;
1668
- protoOf(KotlinEmitter).b1y = emitQueries;
1669
- protoOf(KotlinEmitter).c1y = emitBody;
1670
- protoOf(KotlinEmitter).d1y = emitHeaders;
1664
+ protoOf(KotlinEmitter).u1x = sanitize;
1665
+ protoOf(KotlinEmitter).j1x = sanitizeFirstIsDigit;
1666
+ protoOf(KotlinEmitter).k1x = sanitizeKeywords;
1667
+ protoOf(KotlinEmitter).l1x = emitHandleFunction;
1668
+ protoOf(KotlinEmitter).d1y = emitRequestHeaders;
1669
+ protoOf(KotlinEmitter).e1y = emitQueries;
1670
+ protoOf(KotlinEmitter).f1y = emitBody;
1671
+ protoOf(KotlinEmitter).g1y = emitHeaders;
1672
+ protoOf(KotlinIrEmitter).v1v = get_extensions;
1671
1673
  protoOf(KotlinIrEmitter).eo = emit_1;
1672
- protoOf(KotlinIrEmitter).u1v = emit_2;
1673
- protoOf(KotlinIrEmitter).x1v = beforeGenerate;
1674
+ protoOf(KotlinIrEmitter).w1v = emit_2;
1675
+ protoOf(KotlinIrEmitter).a1w = beforeGenerate;
1674
1676
  //endregion
1675
1677
  //region block: exports
1676
1678
  export {