@flock/wirespec 0.18.6 → 0.19.0-RC.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 (77) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime.mjs +4 -0
  2. package/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
  3. package/arrow-arrow-atomic.mjs +12 -12
  4. package/arrow-arrow-core.mjs +154 -154
  5. package/clikt-clikt-mordant.mjs +80 -80
  6. package/clikt-clikt-mordant.mjs.map +1 -1
  7. package/clikt-clikt.mjs +1549 -1549
  8. package/clikt-clikt.mjs.map +1 -1
  9. package/colormath-root-colormath.mjs +441 -441
  10. package/kotest-kotest-assertions-kotest-assertions-core.mjs +4 -0
  11. package/kotest-kotest-assertions-kotest-assertions-core.mjs.map +1 -0
  12. package/kotest-kotest-assertions-kotest-assertions-shared.mjs +4 -0
  13. package/kotest-kotest-assertions-kotest-assertions-shared.mjs.map +1 -0
  14. package/kotest-kotest-common.mjs +56 -0
  15. package/kotest-kotest-common.mjs.map +1 -0
  16. package/kotest-kotest-framework-kotest-framework-engine.mjs +4 -0
  17. package/kotest-kotest-framework-kotest-framework-engine.mjs.map +1 -0
  18. package/kotest-kotest-property-kotest-property-datetime.mjs +4 -0
  19. package/kotest-kotest-property-kotest-property-datetime.mjs.map +1 -0
  20. package/kotest-kotest-property.mjs +2400 -0
  21. package/kotest-kotest-property.mjs.map +1 -0
  22. package/kotest-property-arbs.mjs +4 -0
  23. package/kotest-property-arbs.mjs.map +1 -0
  24. package/kotlin-kotlin-stdlib.mjs +5198 -2276
  25. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  26. package/kotlin-openapi-bindings.mjs +4933 -4933
  27. package/kotlin-openapi-bindings.mjs.map +1 -1
  28. package/kotlin-rgxgen.mjs +1802 -1802
  29. package/kotlinx-coroutines-test.mjs +4 -0
  30. package/kotlinx-coroutines-test.mjs.map +1 -0
  31. package/kotlinx-io-kotlinx-io-core.mjs +432 -432
  32. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -1
  33. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1993 -1959
  34. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  35. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1388 -1388
  36. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  37. package/mordant-mordant.mjs +1321 -1321
  38. package/package.json +9 -2
  39. package/wirespec-generator.d.ts +52 -0
  40. package/wirespec-generator.mjs +9 -0
  41. package/wirespec-src-compiler-core.mjs +1538 -1537
  42. package/wirespec-src-compiler-emitters-java.mjs +451 -389
  43. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  44. package/wirespec-src-compiler-emitters-kotlin.mjs +364 -301
  45. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  46. package/wirespec-src-compiler-emitters-python.mjs +556 -359
  47. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  48. package/wirespec-src-compiler-emitters-rust.mjs +758 -458
  49. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  50. package/wirespec-src-compiler-emitters-scala.mjs +243 -165
  51. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  52. package/wirespec-src-compiler-emitters-typescript.mjs +706 -420
  53. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  54. package/wirespec-src-compiler-emitters-wirespec.mjs +80 -80
  55. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  56. package/wirespec-src-compiler-ir.mjs +6639 -4861
  57. package/wirespec-src-compiler-ir.mjs.map +1 -1
  58. package/wirespec-src-compiler-lib.mjs +418 -418
  59. package/wirespec-src-compiler-lib.mjs.map +1 -1
  60. package/wirespec-src-converter-avro.mjs +509 -509
  61. package/wirespec-src-converter-avro.mjs.map +1 -1
  62. package/wirespec-src-converter-openapi.mjs +753 -753
  63. package/wirespec-src-converter-openapi.mjs.map +1 -1
  64. package/wirespec-src-integration-kotest.mjs +1455 -0
  65. package/wirespec-src-integration-kotest.mjs.map +1 -0
  66. package/wirespec-src-plugin-arguments.mjs +182 -182
  67. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  68. package/wirespec-src-plugin-cli.mjs +106 -106
  69. package/wirespec-src-plugin-npm.d.mts +11 -0
  70. package/wirespec-src-plugin-npm.mjs +41 -41
  71. package/wirespec-src-plugin-npm.mjs.map +1 -1
  72. package/wirespec-src-tools-generator.mjs +53 -53
  73. package/wirespec-src-tools-generator.mjs.map +1 -1
  74. package/xmlutil-core.mjs +4 -0
  75. package/xmlutil-core.mjs.map +1 -0
  76. package/xmlutil-serialization.mjs +4 -0
  77. package/xmlutil-serialization.mjs.map +1 -0
@@ -22,6 +22,10 @@ import {
22
22
  FieldIdentifier34k7iphndcnl0 as FieldIdentifier,
23
23
  DefinitionIdentifiervfasqdb33qef as DefinitionIdentifier,
24
24
  addBackticks1di5q03fw4yhx as addBackticks,
25
+ Unionccsavx6nrdr2 as Union,
26
+ Refined1lkzc0dg6wey7 as Refined,
27
+ Enum3l2iuc342kle6 as Enum,
28
+ Type12n1gx16iqtcu as Type,
25
29
  plus14o24vdaiongg as plus_0,
26
30
  Bytes_instance1o9u095wd3kx6 as Bytes_instance,
27
31
  Boolean_instance237vwt01w3hs8 as Boolean_instance,
@@ -88,9 +92,15 @@ import {
88
92
  Paire9pteg33gng7 as Pair,
89
93
  plus20p0vtfmu0596 as plus_1,
90
94
  plus310ted5e4i90h as plus_2,
95
+ substringBefore3n7kj60w69hju as substringBefore,
91
96
  listOf1jh22dvmctj1r as listOf_0,
92
97
  lazy2hsh8ze7j6ikd as lazy,
93
98
  isInterface3d6p8outrmvmk as isInterface,
99
+ asSequence2phdjljfh9jhx as asSequence_0,
100
+ filterNot56uwv8hfomaa as filterNot,
101
+ mapsbvh18eqox7a as map,
102
+ distinct17vua5ffe1cfv as distinct_0,
103
+ toListx6x8nvfmvvht as toList,
94
104
  firstOrNull1982767dljvdy as firstOrNull_0,
95
105
  listOfNotNull1v4ggfackvuny as listOfNotNull_0,
96
106
  ensureNotNull1e947j3ixpazm as ensureNotNull,
@@ -128,8 +138,14 @@ import {
128
138
  emitn3eihixilqyh as emit_0,
129
139
  prependImports32gcj3yb8voha as prependImports,
130
140
  placeInPackage1ffljbk9me4ug as placeInPackage,
131
- convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
141
+ convertToGenerator2wzjrmaavxhph as convertToGenerator,
142
+ convertToGeneratorkggw47cqose7 as convertToGenerator_0,
143
+ convertToGenerator3rjr3azp4vdsx as convertToGenerator_1,
144
+ convertToGenerator2msmr3acdd5nx as convertToGenerator_2,
132
145
  sanitizeNames2wqmyf8vafp9x as sanitizeNames,
146
+ collectCustomTypeNames373f3lwl9sqd5 as collectCustomTypeNames,
147
+ placeInPackagena6oqbi45fz6 as placeInPackage_0,
148
+ convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
133
149
  ensureEmptyStructHasConstructorfl467argh9dd as ensureEmptyStructHasConstructor,
134
150
  convert11ert2po54h1y as convert_0,
135
151
  injectEnumLabelFieldyfohidz6c88i as injectEnumLabelField,
@@ -143,6 +159,7 @@ import {
143
159
  emitClient32kfwzg2hm5vj as emitClient,
144
160
  emit1oxjujel6f3jb as emit_1,
145
161
  emit3bzdcd0f6nwtj as emit_2,
162
+ beforeGenerate3o8idb3hey1b0 as beforeGenerate,
146
163
  IrEmitterh2m93ojzvkep as IrEmitter,
147
164
  rawttvqxl50flj9 as raw,
148
165
  Interface3pn84xq686t2r as Interface,
@@ -153,10 +170,10 @@ import {
153
170
  function emit_3(identifier) {
154
171
  var tmp;
155
172
  if (identifier instanceof DefinitionIdentifier) {
156
- tmp = this.d1w(identifier);
173
+ tmp = this.v20(identifier);
157
174
  } else {
158
175
  if (identifier instanceof FieldIdentifier) {
159
- tmp = this.t1v(this.d1w(identifier));
176
+ tmp = this.l20(this.v20(identifier));
160
177
  } else {
161
178
  noWhenBranchMatchedException();
162
179
  }
@@ -165,7 +182,7 @@ function emit_3(identifier) {
165
182
  }
166
183
  function sanitize(_this__u8e3s4) {
167
184
  // Inline function 'kotlin.collections.mapIndexed' call
168
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
185
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
169
186
  // Inline function 'kotlin.collections.mapIndexedTo' call
170
187
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
171
188
  var index = 0;
@@ -174,11 +191,11 @@ function sanitize(_this__u8e3s4) {
174
191
  var item = _iterator__ex2g4s.v();
175
192
  var _unary__edvuaz = index;
176
193
  index = _unary__edvuaz + 1 | 0;
177
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
194
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.mu(item) : item;
178
195
  destination.x(tmp$ret$0);
179
196
  }
180
197
  var tmp = asSequence(joinToString(destination, ''));
181
- return this.s1v(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
198
+ return this.k20(joinToString_0(filter(tmp, KotlinIdentifierEmitter$sanitize$lambda), ''));
182
199
  }
183
200
  function sanitizeFirstIsDigit(_this__u8e3s4) {
184
201
  var tmp;
@@ -198,18 +215,18 @@ function sanitizeFirstIsDigit(_this__u8e3s4) {
198
215
  return tmp;
199
216
  }
200
217
  function sanitizeKeywords(_this__u8e3s4) {
201
- return Companion_getInstance_0().q1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
218
+ return Companion_getInstance_0().i21_1.v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
202
219
  }
203
220
  initMetadataForInterface(KotlinIdentifierEmitter, 'KotlinIdentifierEmitter');
204
221
  function emit_4(type, module_0) {
205
222
  var tmp;
206
- if (type.wo_1.so_1.r()) {
207
- tmp = 'data object ' + this.wq(type.vo_1);
223
+ if (type.us_1.qs_1.r()) {
224
+ tmp = 'data object ' + this.uu(type.ts_1);
208
225
  } else {
209
- var tmp_0 = this.wq(type.vo_1);
210
- var tmp_1 = this.vp(type.wo_1);
226
+ var tmp_0 = this.uu(type.ts_1);
227
+ var tmp_1 = this.tt(type.us_1);
211
228
  // Inline function 'kotlin.run' call
212
- var $this$run = type.xo_1;
229
+ var $this$run = type.vs_1;
213
230
  var tmp_2;
214
231
  if ($this$run.r()) {
215
232
  tmp_2 = '';
@@ -222,18 +239,18 @@ function emit_4(type, module_0) {
222
239
  return tmp;
223
240
  }
224
241
  function emit_5(_this__u8e3s4) {
225
- return dropLast(joinToString(_this__u8e3s4.so_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
242
+ return dropLast(joinToString(_this__u8e3s4.qs_1, '\n', VOID, VOID, VOID, VOID, KotlinTypeDefinitionEmitter$emit$lambda_0(this)), 1);
226
243
  }
227
244
  function emit_6(_this__u8e3s4) {
228
- return this.wq(_this__u8e3s4.ap_1) + ': ' + this.xp(_this__u8e3s4.bp_1);
245
+ return this.uu(_this__u8e3s4.ys_1) + ': ' + this.vt(_this__u8e3s4.zs_1);
229
246
  }
230
247
  function emit_7(_this__u8e3s4) {
231
248
  var tmp;
232
249
  if (_this__u8e3s4 instanceof Dict) {
233
- tmp = 'Map<String, ' + this.xp(_this__u8e3s4.co_1) + '>';
250
+ tmp = 'Map<String, ' + this.vt(_this__u8e3s4.as_1) + '>';
234
251
  } else {
235
252
  if (_this__u8e3s4 instanceof Iterable) {
236
- tmp = 'List<' + this.xp(_this__u8e3s4.zn_1) + '>';
253
+ tmp = 'List<' + this.vt(_this__u8e3s4.xr_1) + '>';
237
254
  } else {
238
255
  if (_this__u8e3s4 instanceof Unit) {
239
256
  tmp = 'Unit';
@@ -242,17 +259,17 @@ function emit_7(_this__u8e3s4) {
242
259
  tmp = 'Any';
243
260
  } else {
244
261
  if (_this__u8e3s4 instanceof Custom) {
245
- tmp = _this__u8e3s4.ku_1;
262
+ tmp = _this__u8e3s4.iy_1;
246
263
  } else {
247
264
  if (_this__u8e3s4 instanceof Primitive) {
248
- var t = _this__u8e3s4.ou_1;
265
+ var t = _this__u8e3s4.my_1;
249
266
  var tmp_0;
250
267
  if (t instanceof String_0) {
251
268
  tmp_0 = 'String';
252
269
  } else {
253
270
  if (t instanceof Integer) {
254
271
  var tmp_1;
255
- switch (t.st_1.b3_1) {
272
+ switch (t.qx_1.c3_1) {
256
273
  case 0:
257
274
  tmp_1 = 'Int';
258
275
  break;
@@ -267,7 +284,7 @@ function emit_7(_this__u8e3s4) {
267
284
  } else {
268
285
  if (t instanceof Number_0) {
269
286
  var tmp_2;
270
- switch (t.vt_1.b3_1) {
287
+ switch (t.tx_1.c3_1) {
271
288
  case 0:
272
289
  tmp_2 = 'Float';
273
290
  break;
@@ -303,15 +320,15 @@ function emit_7(_this__u8e3s4) {
303
320
  }
304
321
  // Inline function 'kotlin.let' call
305
322
  var it = tmp;
306
- return _this__u8e3s4.cu() ? it + '?' : it;
323
+ return _this__u8e3s4.ay() ? it + '?' : it;
307
324
  }
308
325
  function emit_8(_this__u8e3s4) {
309
326
  var tmp;
310
327
  if (_this__u8e3s4 instanceof RegExp_0) {
311
- tmp = 'Regex("""' + this.zp(_this__u8e3s4.ys_1) + '""").matches(value)';
328
+ tmp = 'Regex("""' + this.xt(_this__u8e3s4.ww_1) + '""").matches(value)';
312
329
  } else {
313
330
  if (_this__u8e3s4 instanceof Bound) {
314
- var tmp1_safe_receiver = _this__u8e3s4.ot_1;
331
+ var tmp1_safe_receiver = _this__u8e3s4.mx_1;
315
332
  var tmp_0;
316
333
  if (tmp1_safe_receiver == null) {
317
334
  tmp_0 = null;
@@ -320,7 +337,7 @@ function emit_8(_this__u8e3s4) {
320
337
  tmp_0 = tmp1_safe_receiver + ' < value';
321
338
  }
322
339
  var minCheck = tmp_0;
323
- var tmp2_safe_receiver = _this__u8e3s4.pt_1;
340
+ var tmp2_safe_receiver = _this__u8e3s4.nx_1;
324
341
  var tmp_1;
325
342
  if (tmp2_safe_receiver == null) {
326
343
  tmp_1 = null;
@@ -348,10 +365,19 @@ function emit_8(_this__u8e3s4) {
348
365
  }
349
366
  initMetadataForInterface(KotlinTypeDefinitionEmitter, 'KotlinTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, KotlinIdentifierEmitter]);
350
367
  function emit_9(channel) {
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 ');
368
+ return trimMargin('\n |' + emitImports(this, channel) + '\n |\n |fun interface ' + this.uu(channel.ks_1) + ' {\n | operator fun invoke(message: ' + this.vt(channel.ls_1) + ')\n |}\n |\n ');
352
369
  }
353
370
  initMetadataForInterface(KotlinChannelDefinitionEmitter, 'KotlinChannelDefinitionEmitter', VOID, VOID, [KotlinTypeDefinitionEmitter]);
354
- function emit_10(endpoint) {
371
+ function emit_10(enum_0, module_0) {
372
+ var tmp = this.v20(enum_0.ev_1);
373
+ return trimMargin('\n |enum class ' + tmp + ' (override val label: String): Wirespec.Enum {\n |' + spacer(joinToString(enum_0.fv_1, ',\n', VOID, VOID, VOID, VOID, KotlinEnumDefinitionEmitter$emit$lambda(this))) + ';\n |' + Spacer_instance.toString() + 'override fun toString(): String {\n |' + Spacer_instance.ov(2) + 'return label\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
374
+ }
375
+ initMetadataForInterface(KotlinEnumDefinitionEmitter, 'KotlinEnumDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
376
+ function emit_11(union) {
377
+ return trimMargin('\n |sealed interface ' + this.uu(union.os_1) + '\n |\n ');
378
+ }
379
+ initMetadataForInterface(KotlinUnionDefinitionEmitter, 'KotlinUnionDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter]);
380
+ function emit_12(endpoint) {
355
381
  // Inline function 'kotlin.collections.map' call
356
382
  var this_0 = importReferences(endpoint);
357
383
  // Inline function 'kotlin.collections.mapTo' call
@@ -359,158 +385,149 @@ function emit_10(endpoint) {
359
385
  var _iterator__ex2g4s = this_0.t();
360
386
  while (_iterator__ex2g4s.u()) {
361
387
  var item = _iterator__ex2g4s.v();
362
- var tmp$ret$0 = 'import ' + this.d1v().mr_1 + '.model.' + item.ku_1;
388
+ var tmp$ret$0 = 'import ' + this.v1z().kv_1 + '.model.' + item.iy_1;
363
389
  destination.x(tmp$ret$0);
364
390
  }
365
391
  var tmp = destination;
366
392
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda);
367
- var tmp_1 = this.wq(endpoint.ep_1);
393
+ var tmp_1 = this.uu(endpoint.ct_1);
368
394
  var tmp_2 = get_pathParams(endpoint);
369
395
  var tmp_3 = emitObject$default(this, tmp_2, 'Path', 'Wirespec.Path', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_0(this));
370
- var tmp_4 = emitObject$default(this, endpoint.hp_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
371
- var tmp_5 = emitObject$default(this, endpoint.ip_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
372
- var tmp_6 = this.q1v(first(endpoint.jp_1), endpoint);
396
+ var tmp_4 = emitObject$default(this, endpoint.ft_1, 'Queries', 'Wirespec.Queries', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_1(this));
397
+ var tmp_5 = emitObject$default(this, endpoint.gt_1, 'Headers', 'Wirespec.Request.Headers', VOID, KotlinEndpointDefinitionEmitter$emit$lambda_2(this));
398
+ var tmp_6 = this.i20(first(endpoint.ht_1), endpoint);
373
399
  var tmp_7 = Spacer_instance.toString();
374
400
  var tmp_8 = emitStatusInterfaces(this, endpoint);
375
401
  var tmp_9 = emitResponseInterfaces(this, endpoint);
376
- var tmp_10 = distinctByStatus(endpoint.kp_1);
402
+ var tmp_10 = distinctByStatus(endpoint.it_1);
377
403
  var tmp_11 = joinToString(tmp_10, '\n\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_3(this));
378
404
  var tmp_12 = Spacer_instance.toString();
379
- var tmp_13 = Spacer_instance.qr(2);
380
- var tmp_14 = distinctByStatus(endpoint.kp_1);
405
+ var tmp_13 = Spacer_instance.ov(2);
406
+ var tmp_14 = distinctByStatus(endpoint.it_1);
381
407
  var tmp_15 = joinToString(tmp_14, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_4(this));
382
- var tmp_16 = Spacer_instance.qr(2);
408
+ var tmp_16 = Spacer_instance.ov(2);
383
409
  var tmp_17 = Spacer_instance.toString();
384
- var tmp_18 = Spacer_instance.qr(2);
410
+ var tmp_18 = Spacer_instance.ov(2);
385
411
  // Inline function 'kotlin.collections.filter' call
386
- var tmp0 = distinctByStatus(endpoint.kp_1);
412
+ var tmp0 = distinctByStatus(endpoint.it_1);
387
413
  // Inline function 'kotlin.collections.filterTo' call
388
414
  var destination_0 = ArrayList_init_$Create$_0();
389
415
  var _iterator__ex2g4s_0 = tmp0.t();
390
416
  while (_iterator__ex2g4s_0.u()) {
391
417
  var element = _iterator__ex2g4s_0.v();
392
- if (Companion_instance_1.rq(element.qp_1)) {
418
+ if (Companion_instance_1.pu(element.ot_1)) {
393
419
  destination_0.x(element);
394
420
  }
395
421
  }
396
422
  var tmp_19 = destination_0;
397
423
  var tmp_20 = joinToString(tmp_19, '\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_5(this));
398
- var tmp_21 = Spacer_instance.qr(3);
399
- var tmp_22 = Spacer_instance.qr(2);
424
+ var tmp_21 = Spacer_instance.ov(3);
425
+ var tmp_22 = Spacer_instance.ov(2);
400
426
  var tmp_23 = Spacer_instance.toString();
401
- var tmp_24 = Spacer_instance.qr(2);
402
- var tmp_25 = this.u1v(endpoint);
403
- var tmp_26 = Spacer_instance.qr(2);
404
- var tmp_27 = Spacer_instance.qr(3);
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 ');
427
+ var tmp_24 = Spacer_instance.ov(2);
428
+ var tmp_25 = this.m20(endpoint);
429
+ var tmp_26 = Spacer_instance.ov(2);
430
+ var tmp_27 = Spacer_instance.ov(3);
431
+ 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.et_1, '/', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_6) + '"\n |' + Spacer_instance.ov(3) + 'override val method = "' + endpoint.dt_1.toString() + '"\n |' + Spacer_instance.ov(3) + 'override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n |' + Spacer_instance.ov(4) + 'override fun from(request: Wirespec.RawRequest) = fromRequest(serialization, request)\n |' + Spacer_instance.ov(4) + 'override fun to(response: Response<*>) = toResponse(serialization, response)\n |' + Spacer_instance.ov(3) + '}\n |' + Spacer_instance.ov(3) + 'override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n |' + Spacer_instance.ov(4) + 'override fun to(request: Request) = toRequest(serialization, request)\n |' + Spacer_instance.ov(4) + 'override fun from(response: Wirespec.RawResponse) = fromResponse(serialization, response)\n |' + Spacer_instance.ov(3) + '}\n |' + Spacer_instance.ov(2) + '}\n |' + Spacer_instance.toString() + '}\n |}\n |\n ');
406
432
  }
407
433
  function emitHandleFunction(endpoint) {
408
- return 'suspend fun ' + Companion_instance_1.pq(this.wq(endpoint.ep_1)) + '(request: Request): Response<*>';
434
+ return 'suspend fun ' + Companion_instance_1.nu(this.uu(endpoint.ct_1)) + '(request: Request): Response<*>';
409
435
  }
410
- function emit_11(_this__u8e3s4, endpoint) {
436
+ function emit_13(_this__u8e3s4, endpoint) {
411
437
  var tmp = Spacer_instance.toString();
412
438
  var tmp_0 = emitConstructor(this, _this__u8e3s4, endpoint);
413
- var tmp_1 = Spacer_instance.qr(2);
439
+ var tmp_1 = Spacer_instance.ov(2);
414
440
  var tmp_2 = get_pathParams(endpoint);
415
441
  var tmp_3 = brace(this, joinToString(tmp_2, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_7(this)));
416
- var tmp_4 = Spacer_instance.qr(2);
417
- var tmp_5 = Spacer_instance.qr(2);
418
- var tmp_6 = brace(this, joinToString(endpoint.hp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)));
419
- var tmp_7 = Spacer_instance.qr(2);
420
- var tmp_8 = brace(this, joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)));
421
- var tmp_9 = _this__u8e3s4.np_1 == null ? Spacer_instance.qr(2) + 'override val body = Unit\n' + Spacer_instance.toString() + '}' : Spacer_instance.toString() + '}';
442
+ var tmp_4 = Spacer_instance.ov(2);
443
+ var tmp_5 = Spacer_instance.ov(2);
444
+ var tmp_6 = brace(this, joinToString(endpoint.ft_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_8(this)));
445
+ var tmp_7 = Spacer_instance.ov(2);
446
+ var tmp_8 = brace(this, joinToString(endpoint.gt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_9(this)));
447
+ var tmp_9 = _this__u8e3s4.lt_1 == null ? Spacer_instance.ov(2) + 'override val body = Unit\n' + Spacer_instance.toString() + '}' : Spacer_instance.toString() + '}';
422
448
  var tmp_10 = Spacer_instance.toString();
423
- var tmp_11 = Spacer_instance.qr(2);
424
- var tmp_12 = Spacer_instance.qr(3);
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 ');
449
+ var tmp_11 = Spacer_instance.ov(2);
450
+ var tmp_12 = Spacer_instance.ov(3);
451
+ return trimMargin('\n |' + tmp + tmp_0 + '\n |' + tmp_1 + 'override val path = Path' + tmp_3 + '\n |' + tmp_4 + 'override val method = Wirespec.Method.' + endpoint.dt_1.b3_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.et_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_10(this)) + '),\n |' + Spacer_instance.ov(3) + 'method = request.method.name,\n |' + Spacer_instance.ov(3) + 'queries = ' + this.f21(endpoint) + ',\n |' + Spacer_instance.ov(3) + 'headers = ' + this.e21(endpoint) + ',\n |' + Spacer_instance.ov(3) + 'body = ' + (!(_this__u8e3s4.lt_1 == null) ? 'serialization.serializeBody(request.body, typeOf<' + emit_16(this, _this__u8e3s4.lt_1) + '>())' : 'null') + ',\n |' + Spacer_instance.ov(2) + ')\n |\n |' + Spacer_instance.toString() + 'fun fromRequest(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest): Request =\n |' + Spacer_instance.ov(2) + 'Request' + emitDeserializedParams(this, _this__u8e3s4, endpoint) + '\n ');
426
452
  }
427
453
  function emitRequestHeaders(_this__u8e3s4) {
428
454
  var tmp;
429
- if (_this__u8e3s4.ip_1.r()) {
455
+ if (_this__u8e3s4.gt_1.r()) {
430
456
  tmp = 'emptyMap()';
431
457
  } else {
432
- var tmp_0 = Spacer_instance.qr(5);
433
- var tmp_1 = ',\n' + Spacer_instance.qr(5);
434
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.ip_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitRequestHeaders$lambda(this)) + '\n |' + Spacer_instance.qr(4) + ')\n ');
458
+ var tmp_0 = Spacer_instance.ov(5);
459
+ var tmp_1 = ',\n' + Spacer_instance.ov(5);
460
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.gt_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitRequestHeaders$lambda(this)) + '\n |' + Spacer_instance.ov(4) + ')\n ');
435
461
  }
436
462
  return tmp;
437
463
  }
438
464
  function emitQueries(endpoint) {
439
465
  var tmp;
440
466
  // Inline function 'kotlin.collections.isNotEmpty' call
441
- if (!endpoint.hp_1.r()) {
442
- var tmp_0 = Spacer_instance.qr(5);
443
- var tmp_1 = ',\n' + Spacer_instance.qr(5);
444
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.hp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitQueries$lambda(this)) + '\n |' + Spacer_instance.qr(4) + ')\n ');
467
+ if (!endpoint.ft_1.r()) {
468
+ var tmp_0 = Spacer_instance.ov(5);
469
+ var tmp_1 = ',\n' + Spacer_instance.ov(5);
470
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(endpoint.ft_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitQueries$lambda(this)) + '\n |' + Spacer_instance.ov(4) + ')\n ');
445
471
  } else {
446
472
  tmp = 'emptyMap()';
447
473
  }
448
474
  return tmp;
449
475
  }
450
- function emit_12(_this__u8e3s4) {
476
+ function emit_14(_this__u8e3s4) {
451
477
  // Inline function 'kotlin.let' call
452
- var it = joinToString(_this__u8e3s4.rp_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
478
+ var it = joinToString(_this__u8e3s4.pt_1, ', ', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_11(this));
453
479
  var responseHeaderFields = isBlank(it) ? '' : ', ' + it;
454
480
  var tmp = Spacer_instance.toString();
455
- var tmp_0 = emit_16(this, _this__u8e3s4.sp_1);
456
- var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.qp_1, 0));
457
- var tmp_2 = emit_16(this, _this__u8e3s4.sp_1);
458
- var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.sp_1));
459
- var tmp_4 = Spacer_instance.qr(2);
460
- var tmp_5 = fixStatus(_this__u8e3s4.qp_1);
461
- var tmp_6 = Spacer_instance.qr(2);
462
- var tmp_7 = brace(this, joinToString(_this__u8e3s4.rp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this)));
463
- return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.qp_1 + '(override val body: ' + tmp_0 + responseHeaderFields + ') : Response' + tmp_1 + 'XX<' + tmp_2 + '>, Response' + tmp_3 + ' {\n |' + tmp_4 + 'override val status = ' + tmp_5 + '\n |' + tmp_6 + 'override val headers = ResponseHeaders' + tmp_7 + '\n |' + emitObject(this, _this__u8e3s4.rp_1, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_13(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
481
+ var tmp_0 = emit_16(this, _this__u8e3s4.qt_1);
482
+ var tmp_1 = toString_0(charCodeAt(_this__u8e3s4.ot_1, 0));
483
+ var tmp_2 = emit_16(this, _this__u8e3s4.qt_1);
484
+ var tmp_3 = concatGenerics(emit_16(this, _this__u8e3s4.qt_1));
485
+ var tmp_4 = Spacer_instance.ov(2);
486
+ var tmp_5 = fixStatus(_this__u8e3s4.ot_1);
487
+ var tmp_6 = Spacer_instance.ov(2);
488
+ var tmp_7 = brace(this, joinToString(_this__u8e3s4.pt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emit$lambda_12(this)));
489
+ return trimMargin('\n |' + tmp + 'data class Response' + _this__u8e3s4.ot_1 + '(override val body: ' + tmp_0 + responseHeaderFields + ') : Response' + tmp_1 + 'XX<' + tmp_2 + '>, Response' + tmp_3 + ' {\n |' + tmp_4 + 'override val status = ' + tmp_5 + '\n |' + tmp_6 + 'override val headers = ResponseHeaders' + tmp_7 + '\n |' + emitObject(this, _this__u8e3s4.pt_1, 'ResponseHeaders', 'Wirespec.Response.Headers', 2, KotlinEndpointDefinitionEmitter$emit$lambda_13(this)) + '\n |' + Spacer_instance.toString() + '}\n ');
464
490
  }
465
491
  function emitBody(_this__u8e3s4, content) {
466
492
  return 'serialization.serializeBody(response.body, typeOf<' + emit_16(_this__u8e3s4, content) + '>())';
467
493
  }
468
494
  function emitHeaders(_this__u8e3s4) {
469
495
  var tmp;
470
- if (_this__u8e3s4.rp_1.r()) {
496
+ if (_this__u8e3s4.pt_1.r()) {
471
497
  tmp = 'emptyMap()';
472
498
  } else {
473
- var tmp_0 = Spacer_instance.qr(5);
474
- var tmp_1 = ',\n' + Spacer_instance.qr(5);
475
- tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.rp_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitHeaders$lambda(this)) + '\n |' + Spacer_instance.qr(4) + ')\n ');
499
+ var tmp_0 = Spacer_instance.ov(5);
500
+ var tmp_1 = ',\n' + Spacer_instance.ov(5);
501
+ tmp = trimMargin('\n |mapOf(\n |' + tmp_0 + joinToString(_this__u8e3s4.pt_1, tmp_1, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitHeaders$lambda(this)) + '\n |' + Spacer_instance.ov(4) + ')\n ');
476
502
  }
477
503
  return tmp;
478
504
  }
479
505
  initMetadataForInterface(KotlinEndpointDefinitionEmitter, 'KotlinEndpointDefinitionEmitter', VOID, VOID, [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
506
  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 ');
507
+ return trimMargin('\n |data class ' + this.v20(refined.zu_1) + '(override val value: ' + this.vt(refined.av_1) + '): Wirespec.Refined<' + this.vt(refined.av_1) + '> {\n |' + Spacer_instance.toString() + 'override fun toString() = value.toString()\n |' + Spacer_instance.toString() + 'override fun validate() = ' + this.iv(refined) + '\n |}\n |\n ');
491
508
  }
492
509
  function emitValidator(_this__u8e3s4) {
493
510
  var defaultReturn = 'true';
494
- var type = _this__u8e3s4.cr_1.ou_1;
511
+ var type = _this__u8e3s4.av_1.my_1;
495
512
  var tmp;
496
513
  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);
514
+ var tmp0_safe_receiver = type.rx_1;
515
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.wt(tmp0_safe_receiver);
499
516
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
500
517
  } else {
501
518
  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);
519
+ var tmp2_safe_receiver = type.ux_1;
520
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.wt(tmp2_safe_receiver);
504
521
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
505
522
  } else {
506
523
  if (type instanceof String_0) {
507
- var tmp4_safe_receiver = type.qt_1;
524
+ var tmp4_safe_receiver = type.ox_1;
508
525
  var tmp_0;
509
526
  var tmp_1 = tmp4_safe_receiver;
510
527
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
511
528
  tmp_0 = null;
512
529
  } else {
513
- tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
530
+ tmp_0 = this.wt(new RegExp_0(tmp4_safe_receiver));
514
531
  }
515
532
  var tmp5_elvis_lhs = tmp_0;
516
533
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -530,7 +547,7 @@ function emitValidator(_this__u8e3s4) {
530
547
  return tmp;
531
548
  }
532
549
  initMetadataForInterface(KotlinRefinedTypeDefinitionEmitter, 'KotlinRefinedTypeDefinitionEmitter', VOID, VOID, [KotlinIdentifierEmitter, KotlinTypeDefinitionEmitter]);
533
- initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinTypeDefinitionEmitter, KotlinIdentifierEmitter, KotlinEndpointDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinChannelDefinitionEmitter, KotlinEnumDefinitionEmitter, KotlinRefinedTypeDefinitionEmitter]);
550
+ initMetadataForClass(KotlinEmitter, 'KotlinEmitter', KotlinEmitter, LanguageEmitter, [LanguageEmitter, KotlinEnumDefinitionEmitter, KotlinUnionDefinitionEmitter, KotlinTypeDefinitionEmitter, KotlinChannelDefinitionEmitter, KotlinEndpointDefinitionEmitter, KotlinIdentifierEmitter, KotlinRefinedTypeDefinitionEmitter]);
534
551
  initMetadataForCompanion(Companion);
535
552
  initMetadataForCompanion(Companion_0);
536
553
  initMetadataForClass(KotlinIrEmitter, 'KotlinIrEmitter', KotlinIrEmitter, VOID, [IrEmitter]);
@@ -544,7 +561,7 @@ function emitImports($this, _this__u8e3s4) {
544
561
  var _iterator__ex2g4s = this_0.t();
545
562
  while (_iterator__ex2g4s.u()) {
546
563
  var item = _iterator__ex2g4s.v();
547
- var tmp$ret$0 = 'import ' + $this.d1v().mr_1 + '.model.' + item.ku_1 + ';';
564
+ var tmp$ret$0 = 'import ' + $this.v1z().kv_1 + '.model.' + item.iy_1 + ';';
548
565
  destination.x(tmp$ret$0);
549
566
  }
550
567
  var tmp = destination;
@@ -557,52 +574,52 @@ function KotlinChannelDefinitionEmitter$emitImports$lambda(it) {
557
574
  function KotlinChannelDefinitionEmitter() {
558
575
  }
559
576
  function KotlinEmitter(packageName, emitShared) {
560
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
561
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
577
+ packageName = packageName === VOID ? Companion_instance.jv('community.flock.wirespec.generated') : packageName;
578
+ emitShared = emitShared === VOID ? Companion_instance_0.es() : emitShared;
562
579
  LanguageEmitter.call(this);
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;
580
+ this.w20_1 = packageName;
581
+ this.x20_1 = emitShared;
582
+ this.y20_1 = '\nimport community.flock.wirespec.kotlin.Wirespec\nimport kotlin.reflect.typeOf\n';
583
+ this.z20_1 = FileExtension_Kotlin_getInstance();
584
+ this.a21_1 = KotlinShared_getInstance();
585
+ this.b21_1 = '//';
586
+ }
587
+ protoOf(KotlinEmitter).v1z = function () {
588
+ return this.w20_1;
572
589
  };
573
- protoOf(KotlinEmitter).eq = function () {
574
- return this.h1w_1;
590
+ protoOf(KotlinEmitter).cu = function () {
591
+ return this.z20_1;
575
592
  };
576
- protoOf(KotlinEmitter).m1v = function () {
577
- return this.i1w_1;
593
+ protoOf(KotlinEmitter).e20 = function () {
594
+ return this.a21_1;
578
595
  };
579
- protoOf(KotlinEmitter).fq = function () {
580
- return this.j1w_1;
596
+ protoOf(KotlinEmitter).du = function () {
597
+ return this.b21_1;
581
598
  };
582
- protoOf(KotlinEmitter).tq = function (module_0, logger) {
599
+ protoOf(KotlinEmitter).ru = function (module_0, logger) {
583
600
  // Inline function 'kotlin.let' call
584
- var it = protoOf(LanguageEmitter).tq.call(this, module_0, logger);
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;
601
+ var it = protoOf(LanguageEmitter).ru.call(this, module_0, logger);
602
+ return this.x20_1.fs_1 ? NonEmptyList__plus_impl_xqmb9(it, new Emitted(Companion_instance.jv('community.flock.wirespec.kotlin').mv() + 'Wirespec', this.e20().d21_1)) : it;
586
603
  };
587
- protoOf(KotlinEmitter).uq = function (definition, module_0, logger) {
604
+ protoOf(KotlinEmitter).su = function (definition, module_0, logger) {
588
605
  // Inline function 'kotlin.let' call
589
- var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
590
- var subPackageName = plus(this.d1v(), definition);
591
- var tmp = subPackageName.or() + it.io_1;
606
+ var it = protoOf(LanguageEmitter).su.call(this, definition, module_0, logger);
607
+ var subPackageName = plus(this.v1z(), definition);
608
+ var tmp = subPackageName.mv() + it.gs_1;
592
609
  // Inline function 'kotlin.text.trimStart' call
593
- var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.qq(module_0) ? this.g1w_1 : '') + '\n |' + it.jo_1 + '\n ');
610
+ var this_0 = trimMargin('\n |package ' + subPackageName.toString() + '\n |' + (Companion_instance_1.ou(module_0) ? this.y20_1 : '') + '\n |' + it.hs_1 + '\n ');
594
611
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
595
612
  return new Emitted(tmp, tmp$ret$0);
596
613
  };
597
614
  function emitStatusInterfaces($this, _this__u8e3s4) {
598
615
  // Inline function 'kotlin.collections.map' call
599
- var this_0 = _this__u8e3s4.kp_1;
616
+ var this_0 = _this__u8e3s4.it_1;
600
617
  // Inline function 'kotlin.collections.mapTo' call
601
618
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
602
619
  var _iterator__ex2g4s = this_0.t();
603
620
  while (_iterator__ex2g4s.u()) {
604
621
  var item = _iterator__ex2g4s.v();
605
- var tmp$ret$0 = new Char(charCodeAt(item.qp_1, 0));
622
+ var tmp$ret$0 = new Char(charCodeAt(item.ot_1, 0));
606
623
  destination.x(tmp$ret$0);
607
624
  }
608
625
  var tmp = distinct(destination);
@@ -610,13 +627,13 @@ function emitStatusInterfaces($this, _this__u8e3s4) {
610
627
  }
611
628
  function emitResponseInterfaces($this, _this__u8e3s4) {
612
629
  // Inline function 'kotlin.collections.map' call
613
- var this_0 = _this__u8e3s4.kp_1;
630
+ var this_0 = _this__u8e3s4.it_1;
614
631
  // Inline function 'kotlin.collections.mapTo' call
615
632
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
616
633
  var _iterator__ex2g4s = this_0.t();
617
634
  while (_iterator__ex2g4s.u()) {
618
635
  var item = _iterator__ex2g4s.v();
619
- var tmp$ret$0 = emit_16($this, item.sp_1);
636
+ var tmp$ret$0 = emit_16($this, item.qt_1);
620
637
  destination.x(tmp$ret$0);
621
638
  }
622
639
  var tmp = distinct(destination);
@@ -625,64 +642,64 @@ function emitResponseInterfaces($this, _this__u8e3s4) {
625
642
  function emitConstructor($this, _this__u8e3s4, endpoint) {
626
643
  var tmp = get_pathParams(endpoint);
627
644
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda($this)));
628
- var tmp_1 = orNull(joinToString(endpoint.hp_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
629
- var tmp_2 = orNull(joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
630
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
645
+ var tmp_1 = orNull(joinToString(endpoint.ft_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0($this)));
646
+ var tmp_2 = orNull(joinToString(endpoint.gt_1, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1($this)));
647
+ var tmp0_safe_receiver = _this__u8e3s4.lt_1;
631
648
  var tmp_3;
632
649
  if (tmp0_safe_receiver == null) {
633
650
  tmp_3 = null;
634
651
  } else {
635
652
  // Inline function 'kotlin.let' call
636
- tmp_3 = Spacer_instance.qr(2) + 'override val body: ' + emit_16($this, tmp0_safe_receiver) + ',';
653
+ tmp_3 = Spacer_instance.ov(2) + 'override val body: ' + emit_16($this, tmp0_safe_receiver) + ',';
637
654
  }
638
655
  // Inline function 'kotlin.let' call
639
656
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
640
- return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.np_1) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_16($this, _this__u8e3s4.np_1) + '> {';
657
+ return isBlank(it) ? 'object Request : Wirespec.Request<' + emit_16($this, _this__u8e3s4.lt_1) + '> {' : 'class Request(\n' + it + '\n' + Spacer_instance.toString() + ') : Wirespec.Request<' + emit_16($this, _this__u8e3s4.lt_1) + '> {';
641
658
  }
642
659
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
643
660
  var tmp = get_indexedPathParams(endpoint);
644
661
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
645
- var tmp_1 = orNull(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
646
- var tmp_2 = orNull(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
647
- var tmp0_safe_receiver = _this__u8e3s4.np_1;
662
+ var tmp_1 = orNull(joinToString(endpoint.ft_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
663
+ var tmp_2 = orNull(joinToString(endpoint.gt_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
664
+ var tmp0_safe_receiver = _this__u8e3s4.lt_1;
648
665
  var tmp_3;
649
666
  if (tmp0_safe_receiver == null) {
650
667
  tmp_3 = null;
651
668
  } else {
652
669
  // Inline function 'kotlin.let' call
653
- tmp_3 = Spacer_instance.qr(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_16($this, tmp0_safe_receiver) + '>()),';
670
+ tmp_3 = Spacer_instance.ov(3) + 'body = serialization.deserializeBody(requireNotNull(request.body) { "body is null" }, typeOf<' + emit_16($this, tmp0_safe_receiver) + '>()),';
654
671
  }
655
672
  // Inline function 'kotlin.let' call
656
673
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
657
- return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.qr(2) + ')';
674
+ return isBlank(it) ? '' : '(\n' + it + '\n' + Spacer_instance.ov(2) + ')';
658
675
  }
659
676
  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.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 ');
677
+ return trimMargin('\n |' + Spacer_instance.ov(3) + 'is Response' + _this__u8e3s4.ot_1 + ' -> Wirespec.RawResponse(\n |' + Spacer_instance.ov(4) + 'statusCode = response.status,\n |' + Spacer_instance.ov(4) + 'headers = ' + $this.h21(_this__u8e3s4) + ',\n |' + Spacer_instance.ov(4) + 'body = ' + (!(_this__u8e3s4.qt_1 == null) ? $this.g21($this, _this__u8e3s4.qt_1) : 'null') + ',\n |' + Spacer_instance.ov(3) + ')\n ');
661
678
  }
662
679
  function emitDeserialized($this, _this__u8e3s4) {
663
- var tmp = Spacer_instance.qr(3) + _this__u8e3s4.qp_1 + ' -> Response' + _this__u8e3s4.qp_1 + '(';
680
+ var tmp = Spacer_instance.ov(3) + _this__u8e3s4.ot_1 + ' -> Response' + _this__u8e3s4.ot_1 + '(';
664
681
  var tmp_0;
665
- if (!(_this__u8e3s4.sp_1 == null)) {
666
- tmp_0 = Spacer_instance.qr(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_16($this, _this__u8e3s4.sp_1) + '>()),';
682
+ if (!(_this__u8e3s4.qt_1 == null)) {
683
+ tmp_0 = Spacer_instance.ov(4) + 'body = serialization.deserializeBody(requireNotNull(response.body) { "body is null" }, typeOf<' + emit_16($this, _this__u8e3s4.qt_1) + '>()),';
667
684
  } else {
668
- tmp_0 = Spacer_instance.qr(4) + 'body = Unit,';
685
+ tmp_0 = Spacer_instance.ov(4) + 'body = Unit,';
669
686
  }
670
687
  var tmp_1 = tmp_0;
671
- return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.qr(3) + ')']), '\n');
688
+ return joinToString(listOfNotNull([tmp, tmp_1, orNull(joinToString(_this__u8e3s4.pt_1, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.ov(3) + ')']), '\n');
672
689
  }
673
690
  function emitSerializedMapEntry($this, _this__u8e3s4, type, fields) {
674
- return '"' + _this__u8e3s4.ap_1.l1() + '" to ' + type + '.' + fields + '.' + $this.wq(_this__u8e3s4.ap_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.xp(_this__u8e3s4.bp_1) + '>()) }.orEmpty()';
691
+ return '"' + _this__u8e3s4.ys_1.m1() + '" to ' + type + '.' + fields + '.' + $this.uu(_this__u8e3s4.ys_1) + '?.let{ serialization.serializeParam(it, typeOf<' + $this.vt(_this__u8e3s4.zs_1) + '>()) }.orEmpty()';
675
692
  }
676
693
  function emitDeserialized_0($this, _this__u8e3s4) {
677
- return Spacer_instance.qr(3) + $this.wq(_this__u8e3s4.me_1.lp_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.le_1 + '], typeOf<' + $this.xp(_this__u8e3s4.me_1.mp_1) + '>())';
694
+ return Spacer_instance.ov(3) + $this.uu(_this__u8e3s4.jf_1.jt_1) + ' = serialization.deserializePath(request.path[' + _this__u8e3s4.if_1 + '], typeOf<' + $this.vt(_this__u8e3s4.jf_1.kt_1) + '>())';
678
695
  }
679
696
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
680
- var trimMargin_0 = trimMargin('\n |' + Spacer_instance.qr(spaces) + $this.wq(_this__u8e3s4.ap_1) + ' =\n |' + Spacer_instance.qr(spaces + 1 | 0) + type + '.' + fields + '\n |' + Spacer_instance.qr(spaces + 2 | 0) + '.entries\n |' + Spacer_instance.qr(spaces + 2 | 0) + '.find { it.key.equals("' + _this__u8e3s4.ap_1.l1() + '", ignoreCase = ' + !caseSensitive + ') }\n |' + Spacer_instance.qr(spaces + 2 | 0) + '?.let { serialization.deserializeParam(it.value, typeOf<' + $this.xp(_this__u8e3s4.bp_1) + '>()) }\n ');
697
+ var trimMargin_0 = trimMargin('\n |' + Spacer_instance.ov(spaces) + $this.uu(_this__u8e3s4.ys_1) + ' =\n |' + Spacer_instance.ov(spaces + 1 | 0) + type + '.' + fields + '\n |' + Spacer_instance.ov(spaces + 2 | 0) + '.entries\n |' + Spacer_instance.ov(spaces + 2 | 0) + '.find { it.key.equals("' + _this__u8e3s4.ys_1.m1() + '", ignoreCase = ' + !caseSensitive + ') }\n |' + Spacer_instance.ov(spaces + 2 | 0) + '?.let { serialization.deserializeParam(it.value, typeOf<' + $this.vt(_this__u8e3s4.zs_1) + '>()) }\n ');
681
698
  var tmp;
682
- if (_this__u8e3s4.bp_1.cu()) {
699
+ if (_this__u8e3s4.zs_1.ay()) {
683
700
  tmp = trimMargin_0;
684
701
  } else {
685
- tmp = trimMargin_0 + '\n' + Spacer_instance.qr(spaces + 2 | 0) + '?: throw IllegalArgumentException("' + $this.wq(_this__u8e3s4.ap_1) + ' is null")';
702
+ tmp = trimMargin_0 + '\n' + Spacer_instance.ov(spaces + 2 | 0) + '?: throw IllegalArgumentException("' + $this.uu(_this__u8e3s4.ys_1) + ' is null")';
686
703
  }
687
704
  return tmp;
688
705
  }
@@ -692,16 +709,16 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
692
709
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
693
710
  }
694
711
  function emitIdentifier($this, _this__u8e3s4) {
695
- return 'request.path.' + $this.wq(_this__u8e3s4.lp_1) + '.let{serialization.serializePath(it, typeOf<' + $this.xp(_this__u8e3s4.mp_1) + '>())}';
712
+ return 'request.path.' + $this.uu(_this__u8e3s4.jt_1) + '.let{serialization.serializePath(it, typeOf<' + $this.vt(_this__u8e3s4.kt_1) + '>())}';
696
713
  }
697
714
  function emit_16($this, _this__u8e3s4) {
698
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.pp_1;
699
- var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
715
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.nt_1;
716
+ var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : $this.vt(tmp1_safe_receiver);
700
717
  var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : removeQuestionMark(tmp2_safe_receiver);
701
718
  return tmp3_elvis_lhs == null ? 'Unit' : tmp3_elvis_lhs;
702
719
  }
703
720
  function emit_17($this, _this__u8e3s4) {
704
- return $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
721
+ return $this.uu(_this__u8e3s4.jt_1) + ': ' + $this.vt(_this__u8e3s4.kt_1);
705
722
  }
706
723
  function brace($this, _this__u8e3s4) {
707
724
  return wrap($this, _this__u8e3s4, '(', ')');
@@ -719,10 +736,10 @@ function wrap($this, _this__u8e3s4, prefix, postfix) {
719
736
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
720
737
  var tmp;
721
738
  if (_this__u8e3s4.r()) {
722
- tmp = Spacer_instance.qr(spaces) + 'data object ' + name + ' : ' + extends_0;
739
+ tmp = Spacer_instance.ov(spaces) + 'data object ' + name + ' : ' + extends_0;
723
740
  } else {
724
- var tmp_0 = Spacer_instance.qr(spaces);
725
- tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.qr(spaces) + ') : ' + extends_0 + '\n ');
741
+ var tmp_0 = Spacer_instance.ov(spaces);
742
+ tmp = trimMargin('\n |' + tmp_0 + 'data class ' + name + '(\n |' + joinToString(_this__u8e3s4, ',\n', VOID, VOID, VOID, VOID, KotlinEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + ',\n |' + Spacer_instance.ov(spaces) + ') : ' + extends_0 + '\n ');
726
743
  }
727
744
  return tmp;
728
745
  }
@@ -741,17 +758,17 @@ function KotlinEndpointDefinitionEmitter$emit$lambda_0(this$0) {
741
758
  }
742
759
  function KotlinEndpointDefinitionEmitter$emit$lambda_1(this$0) {
743
760
  return function (it) {
744
- return this$0.wp(it);
761
+ return this$0.ut(it);
745
762
  };
746
763
  }
747
764
  function KotlinEndpointDefinitionEmitter$emit$lambda_2(this$0) {
748
765
  return function (it) {
749
- return this$0.wp(it);
766
+ return this$0.ut(it);
750
767
  };
751
768
  }
752
769
  function KotlinEndpointDefinitionEmitter$emit$lambda_3(this$0) {
753
770
  return function (it) {
754
- return this$0.r1v(it);
771
+ return this$0.j20(it);
755
772
  };
756
773
  }
757
774
  function KotlinEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -775,24 +792,24 @@ function KotlinEndpointDefinitionEmitter$emitResponseInterfaces$lambda(it) {
775
792
  }
776
793
  function KotlinEndpointDefinitionEmitter$emit$lambda_7(this$0) {
777
794
  return function (it) {
778
- return this$0.wq(it.lp_1);
795
+ return this$0.uu(it.jt_1);
779
796
  };
780
797
  }
781
798
  function KotlinEndpointDefinitionEmitter$emit$lambda_8(this$0) {
782
799
  return function (it) {
783
- return this$0.wq(it.ap_1);
800
+ return this$0.uu(it.ys_1);
784
801
  };
785
802
  }
786
803
  function KotlinEndpointDefinitionEmitter$emit$lambda_9(this$0) {
787
804
  return function (it) {
788
- return this$0.wq(it.ap_1);
805
+ return this$0.uu(it.ys_1);
789
806
  };
790
807
  }
791
808
  function KotlinEndpointDefinitionEmitter$emit$lambda_10(this$0) {
792
809
  return function (it) {
793
810
  var tmp;
794
811
  if (it instanceof Literal) {
795
- tmp = '"' + it.hq_1 + '"';
812
+ tmp = '"' + it.fu_1 + '"';
796
813
  } else {
797
814
  if (it instanceof Param) {
798
815
  tmp = emitIdentifier(this$0, it);
@@ -815,32 +832,32 @@ function KotlinEndpointDefinitionEmitter$emitQueries$lambda(this$0) {
815
832
  }
816
833
  function KotlinEndpointDefinitionEmitter$emit$lambda_11(this$0) {
817
834
  return function (it) {
818
- return 'val ' + this$0.wp(it);
835
+ return 'val ' + this$0.ut(it);
819
836
  };
820
837
  }
821
838
  function KotlinEndpointDefinitionEmitter$emit$lambda_12(this$0) {
822
839
  return function (it) {
823
- return this$0.wq(it.ap_1);
840
+ return this$0.uu(it.ys_1);
824
841
  };
825
842
  }
826
843
  function KotlinEndpointDefinitionEmitter$emit$lambda_13(this$0) {
827
844
  return function (it) {
828
- return this$0.wp(it);
845
+ return this$0.ut(it);
829
846
  };
830
847
  }
831
848
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda(this$0) {
832
849
  return function (it) {
833
- return Spacer_instance.qr(2) + emit_17(this$0, it);
850
+ return Spacer_instance.ov(2) + emit_17(this$0, it);
834
851
  };
835
852
  }
836
853
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_0(this$0) {
837
854
  return function (it) {
838
- return Spacer_instance.qr(2) + this$0.wp(it);
855
+ return Spacer_instance.ov(2) + this$0.ut(it);
839
856
  };
840
857
  }
841
858
  function KotlinEndpointDefinitionEmitter$emitConstructor$lambda_1(this$0) {
842
859
  return function (it) {
843
- return Spacer_instance.qr(2) + this$0.wp(it);
860
+ return Spacer_instance.ov(2) + this$0.ut(it);
844
861
  };
845
862
  }
846
863
  function KotlinEndpointDefinitionEmitter$emitDeserializedParams$lambda(this$0) {
@@ -870,7 +887,7 @@ function KotlinEndpointDefinitionEmitter$emitDeserialized$lambda(this$0) {
870
887
  }
871
888
  function KotlinEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
872
889
  return function (it) {
873
- return Spacer_instance.qr($spaces + 1 | 0) + 'val ' + $block(it);
890
+ return Spacer_instance.ov($spaces + 1 | 0) + 'val ' + $block(it);
874
891
  };
875
892
  }
876
893
  function KotlinEndpointDefinitionEmitter() {
@@ -879,18 +896,18 @@ function sanitizeNegative($this, _this__u8e3s4) {
879
896
  return startsWith(_this__u8e3s4, '-') ? '__' + substring(_this__u8e3s4, 1) : _this__u8e3s4;
880
897
  }
881
898
  function sanitizeEnum($this, _this__u8e3s4) {
882
- return $this.s1v(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
899
+ return $this.k20(joinToString(split(sanitizeNegative($this, _this__u8e3s4), ['-', ', ', '.', ' ', '//']), '_'));
883
900
  }
884
901
  function KotlinEnumDefinitionEmitter$emit$lambda(this$0) {
885
902
  return function (it) {
886
- return this$0.t1v(sanitizeEnum(this$0, it)) + '("' + it + '")';
903
+ return this$0.l20(sanitizeEnum(this$0, it)) + '("' + it + '")';
887
904
  };
888
905
  }
889
906
  function KotlinEnumDefinitionEmitter() {
890
907
  }
891
908
  function Companion() {
892
909
  Companion_instance_2 = this;
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']);
910
+ this.i21_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
911
  }
895
912
  var Companion_instance_2;
896
913
  function Companion_getInstance_0() {
@@ -899,20 +916,20 @@ function Companion_getInstance_0() {
899
916
  return Companion_instance_2;
900
917
  }
901
918
  function KotlinIdentifierEmitter$sanitize$lambda(it) {
902
- return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).u1(it);
919
+ return isLetterOrDigit(it.h1_1) || listOf(new Char(_Char___init__impl__6a9atx(95))).v1(it);
903
920
  }
904
921
  function KotlinIdentifierEmitter() {
905
922
  }
906
923
  function _get_sanitizationConfig__sns434($this) {
907
- var tmp0 = $this.w1w_1;
924
+ var tmp0 = $this.o21_1;
908
925
  var tmp = KProperty1;
909
926
  // Inline function 'kotlin.getValue' call
910
927
  getPropertyCallableRef('sanitizationConfig', 1, tmp, KotlinIrEmitter$_get_sanitizationConfig_$ref_tnafwf(), null);
911
- return tmp0.l1();
928
+ return tmp0.m1();
912
929
  }
913
930
  function sanitize_0($this, _this__u8e3s4) {
914
931
  // Inline function 'kotlin.collections.mapIndexed' call
915
- var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
932
+ var this_0 = split(_this__u8e3s4.m1(), ['.', ' ']);
916
933
  // Inline function 'kotlin.collections.mapIndexedTo' call
917
934
  var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
918
935
  var index = 0;
@@ -921,7 +938,7 @@ function sanitize_0($this, _this__u8e3s4) {
921
938
  var item = _iterator__ex2g4s.v();
922
939
  var _unary__edvuaz = index;
923
940
  index = _unary__edvuaz + 1 | 0;
924
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
941
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.mu(item) : item;
925
942
  destination.x(tmp$ret$0);
926
943
  }
927
944
  // Inline function 'kotlin.text.filter' call
@@ -969,7 +986,7 @@ function sanitizeFirstIsDigit_0($this, _this__u8e3s4) {
969
986
  return tmp;
970
987
  }
971
988
  function sanitizeKeywords_0($this, _this__u8e3s4) {
972
- return Companion_getInstance_1().x1w_1.u1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
989
+ return Companion_getInstance_1().p21_1.v1(_this__u8e3s4) ? addBackticks(_this__u8e3s4) : _this__u8e3s4;
973
990
  }
974
991
  function sanitizeSymbol($this, _this__u8e3s4) {
975
992
  // Inline function 'kotlin.collections.mapIndexed' call
@@ -982,7 +999,7 @@ function sanitizeSymbol($this, _this__u8e3s4) {
982
999
  var item = _iterator__ex2g4s.v();
983
1000
  var _unary__edvuaz = index;
984
1001
  index = _unary__edvuaz + 1 | 0;
985
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
1002
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.mu(item) : item;
986
1003
  destination.x(tmp$ret$0);
987
1004
  }
988
1005
  // Inline function 'kotlin.text.filter' call
@@ -1009,7 +1026,7 @@ function sanitizeEnum_0($this, _this__u8e3s4) {
1009
1026
  }
1010
1027
  function Companion_0() {
1011
1028
  Companion_instance_3 = this;
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']);
1029
+ this.p21_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
1030
  }
1014
1031
  var Companion_instance_3;
1015
1032
  function Companion_getInstance_1() {
@@ -1022,13 +1039,13 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1022
1039
  }
1023
1040
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0) {
1024
1041
  return function (name) {
1025
- var sanitized = name.g1h_1.a1() > 1 ? name.s1l() : sanitizeSymbol(this$0, name.s1h());
1042
+ var sanitized = name.s1k_1.a1() > 1 ? name.v1p() : sanitizeSymbol(this$0, name.p1m());
1026
1043
  return new Name(listOf(sanitized));
1027
1044
  };
1028
1045
  }
1029
1046
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0) {
1030
1047
  return function (name) {
1031
- return new Name(listOf(sanitizeSymbol(this$0, name.s1l())));
1048
+ return new Name(listOf(sanitizeSymbol(this$0, name.v1p())));
1032
1049
  };
1033
1050
  }
1034
1051
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(this$0) {
@@ -1041,28 +1058,28 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1041
1058
  var tmp;
1042
1059
  var tmp_0;
1043
1060
  if (stmt instanceof FunctionCall) {
1044
- tmp_0 = stmt.b1m_1.s1h() === 'validate';
1061
+ tmp_0 = stmt.f1q_1.p1m() === 'validate';
1045
1062
  } else {
1046
1063
  tmp_0 = false;
1047
1064
  }
1048
1065
  if (tmp_0) {
1049
- tmp = transformChildren(stmt.f1m(VOID, emptyList()), tr);
1066
+ tmp = transformChildren(stmt.j1q(VOID, emptyList()), tr);
1050
1067
  } else {
1051
1068
  if (stmt instanceof ConstructorStatement) {
1052
- var tmp_1 = tr.p1t(stmt.p1m_1);
1069
+ var tmp_1 = tr.d1y(stmt.x1q_1);
1053
1070
  // Inline function 'kotlin.collections.map' call
1054
- var this_0 = stmt.q1m_1;
1071
+ var this_0 = stmt.y1q_1;
1055
1072
  // Inline function 'kotlin.collections.mapTo' call
1056
1073
  var destination = ArrayList_init_$Create$(this_0.a1());
1057
1074
  // Inline function 'kotlin.collections.iterator' call
1058
- var _iterator__ex2g4s = this_0.j1().t();
1075
+ var _iterator__ex2g4s = this_0.k1().t();
1059
1076
  while (_iterator__ex2g4s.u()) {
1060
1077
  var item = _iterator__ex2g4s.v();
1061
1078
  // Inline function 'kotlin.collections.component1' call
1062
- var name = item.k1();
1079
+ var name = item.l1();
1063
1080
  // Inline function 'kotlin.collections.component2' call
1064
- var expr = item.l1();
1065
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.s1t(expr));
1081
+ var expr = item.m1();
1082
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), name), tr.g1y(expr));
1066
1083
  destination.x(tmp$ret$3);
1067
1084
  }
1068
1085
  tmp = new ConstructorStatement(tmp_1, toMap(destination));
@@ -1075,7 +1092,7 @@ function KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1075
1092
  }
1076
1093
  function KotlinIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1077
1094
  return function () {
1078
- var tmp = Companion_getInstance_1().x1w_1;
1095
+ var tmp = Companion_getInstance_1().p21_1;
1079
1096
  var tmp_0 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1080
1097
  var tmp_1 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(this$0);
1081
1098
  var tmp_2 = KotlinIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(this$0);
@@ -1092,7 +1109,7 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1092
1109
  var tmp;
1093
1110
  if (element instanceof File) {
1094
1111
  // Inline function 'kotlin.collections.partition' call
1095
- var this_0 = element.t1m_1;
1112
+ var this_0 = element.b1r_1;
1096
1113
  var first = ArrayList_init_$Create$_0();
1097
1114
  var second = ArrayList_init_$Create$_0();
1098
1115
  var _iterator__ex2g4s = this_0.t();
@@ -1105,9 +1122,9 @@ function KotlinIrEmitter$emitShared$lambda(element, transformer) {
1105
1122
  }
1106
1123
  }
1107
1124
  var _destruct__k2r9zo = new Pair(first, second);
1108
- var packageElements = _destruct__k2r9zo.ne();
1109
- var rest = _destruct__k2r9zo.oe();
1110
- tmp = element.w1m(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1125
+ var packageElements = _destruct__k2r9zo.kf();
1126
+ var rest = _destruct__k2r9zo.lf();
1127
+ tmp = element.e1r(VOID, plus_2(plus_1(packageElements, import_0('kotlin.reflect', 'KType')), rest));
1111
1128
  } else {
1112
1129
  tmp = element;
1113
1130
  }
@@ -1118,11 +1135,11 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
1118
1135
  return function (element, transformer) {
1119
1136
  var tmp;
1120
1137
  if (element instanceof Namespace) {
1121
- var injected = element.y1m_1.equals(Companion_getInstance().f1h('Wirespec')) ? $clientServer : emptyList();
1138
+ var injected = element.g1r_1.equals(Companion_getInstance().u1k('Wirespec')) ? $clientServer : emptyList();
1122
1139
  var tmp_0;
1123
1140
  // Inline function 'kotlin.collections.isNotEmpty' call
1124
1141
  if (!injected.r()) {
1125
- tmp_0 = withElements(element, plus_2(element.u1m(), injected));
1142
+ tmp_0 = withElements(element, plus_2(element.c1r(), injected));
1126
1143
  } else {
1127
1144
  tmp_0 = element;
1128
1145
  }
@@ -1134,6 +1151,22 @@ function KotlinIrEmitter$emitShared$lambda_0($clientServer) {
1134
1151
  return transformChildren_0(transformed, transformer);
1135
1152
  };
1136
1153
  }
1154
+ function KotlinIrEmitter$emitGenerator$lambda(it) {
1155
+ return startsWith(it, 'Wirespec.') || it === 'Wirespec';
1156
+ }
1157
+ function KotlinIrEmitter$emitGenerator$lambda_0($generatorOwnName) {
1158
+ return function (it) {
1159
+ return it === $generatorOwnName;
1160
+ };
1161
+ }
1162
+ function KotlinIrEmitter$emitGenerator$lambda_1(it) {
1163
+ return substringBefore(it, _Char___init__impl__6a9atx(60));
1164
+ }
1165
+ function KotlinIrEmitter$emitGenerator$lambda_2(this$0) {
1166
+ return function (it) {
1167
+ return import_0(this$0.v1z().kv_1 + '.model', it);
1168
+ };
1169
+ }
1137
1170
  function KotlinIrEmitter$emit$lambda(this$0) {
1138
1171
  return function (it) {
1139
1172
  return sanitizeEnum_0(this$0, it);
@@ -1141,27 +1174,27 @@ function KotlinIrEmitter$emit$lambda(this$0) {
1141
1174
  }
1142
1175
  function KotlinIrEmitter(packageName, emitShared) {
1143
1176
  Companion_getInstance_1();
1144
- packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1145
- emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
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')]);
1177
+ packageName = packageName === VOID ? Companion_instance.jv('community.flock.wirespec.generated') : packageName;
1178
+ emitShared = emitShared === VOID ? Companion_instance_0.es() : emitShared;
1179
+ this.j21_1 = packageName;
1180
+ this.k21_1 = emitShared;
1181
+ this.l21_1 = KotlinGenerator_instance;
1182
+ this.m21_1 = FileExtension_Kotlin_getInstance();
1183
+ this.n21_1 = listOf_0([import_0('community.flock.wirespec.kotlin', 'Wirespec'), import_0('kotlin.reflect', 'typeOf')]);
1151
1184
  var tmp = this;
1152
- tmp.w1w_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1185
+ tmp.o21_1 = lazy(KotlinIrEmitter$sanitizationConfig$delegate$lambda(this));
1153
1186
  }
1154
- protoOf(KotlinIrEmitter).d1v = function () {
1155
- return this.r1w_1;
1187
+ protoOf(KotlinIrEmitter).v1z = function () {
1188
+ return this.j21_1;
1156
1189
  };
1157
- protoOf(KotlinIrEmitter).k1u = function () {
1158
- return this.t1w_1;
1190
+ protoOf(KotlinIrEmitter).y1y = function () {
1191
+ return this.l21_1;
1159
1192
  };
1160
- protoOf(KotlinIrEmitter).eq = function () {
1161
- return this.u1w_1;
1193
+ protoOf(KotlinIrEmitter).cu = function () {
1194
+ return this.m21_1;
1162
1195
  };
1163
- protoOf(KotlinIrEmitter).n1u = function () {
1164
- var packageName = Companion_instance.lr('community.flock.wirespec.kotlin');
1196
+ protoOf(KotlinIrEmitter).b1z = function () {
1197
+ var packageName = Companion_instance.jv('community.flock.wirespec.kotlin');
1165
1198
  var clientServer = convertClientServer(packageName);
1166
1199
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1167
1200
  var this_0 = convert(packageName);
@@ -1169,62 +1202,91 @@ protoOf(KotlinIrEmitter).n1u = function () {
1169
1202
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1170
1203
  var tmp = scope;
1171
1204
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1172
- var this_1 = scope.x1t_1;
1205
+ var this_1 = scope.l1y_1;
1173
1206
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1174
1207
  // Inline function 'kotlin.apply' call
1175
1208
  var this_2 = new TransformerBuilder();
1176
- this_2.c1h(KotlinIrEmitter$emitShared$lambda);
1177
- var tmp$ret$2 = this_2.d1h();
1178
- tmp.x1t_1 = transform(this_1, tmp$ret$2);
1209
+ this_2.d1m(KotlinIrEmitter$emitShared$lambda);
1210
+ var tmp$ret$2 = this_2.e1m();
1211
+ tmp.l1y_1 = transform(this_1, tmp$ret$2);
1179
1212
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.injectAfter' call
1180
1213
  var tmp_0 = scope;
1181
1214
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1182
1215
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1183
- var this_3 = scope.x1t_1;
1216
+ var this_3 = scope.l1y_1;
1184
1217
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1185
1218
  // Inline function 'kotlin.apply' call
1186
1219
  var this_4 = new TransformerBuilder();
1187
- this_4.c1h(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1188
- var tmp$ret$7 = this_4.d1h();
1189
- tmp_0.x1t_1 = transform(this_3, tmp$ret$7);
1190
- var tmp_1 = scope.x1t_1;
1220
+ this_4.d1m(KotlinIrEmitter$emitShared$lambda_0(clientServer));
1221
+ var tmp$ret$7 = this_4.e1m();
1222
+ tmp_0.l1y_1 = transform(this_3, tmp$ret$7);
1223
+ var tmp_1 = scope.l1y_1;
1191
1224
  var wirespecShared = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1192
1225
  var tmp_2;
1193
- if (this.s1w_1.ho_1) {
1194
- tmp_2 = wirespecShared;
1226
+ if (this.k21_1.fs_1) {
1227
+ tmp_2 = wirespecShared.e1r(Companion_getInstance().u1k(packageName.mv() + wirespecShared.a1r_1.p1m()));
1195
1228
  } else {
1196
1229
  tmp_2 = null;
1197
1230
  }
1198
1231
  return tmp_2;
1199
1232
  };
1200
- protoOf(KotlinIrEmitter).uq = function (definition, module_0, logger) {
1233
+ protoOf(KotlinIrEmitter).su = function (definition, module_0, logger) {
1201
1234
  var file = emit_0.call(this, definition, module_0, logger);
1202
1235
  // Inline function 'kotlin.takeIf' call
1203
- var this_0 = this.v1w_1;
1236
+ var this_0 = this.n21_1;
1204
1237
  var tmp;
1205
- if (Companion_instance_1.qq(module_0)) {
1238
+ if (Companion_instance_1.ou(module_0)) {
1206
1239
  tmp = this_0;
1207
1240
  } else {
1208
1241
  tmp = null;
1209
1242
  }
1210
1243
  var tmp$ret$1 = tmp;
1211
- return placeInPackage(prependImports(file, tmp$ret$1), this.d1v(), definition);
1244
+ return placeInPackage(prependImports(file, tmp$ret$1), this.v1z(), definition);
1245
+ };
1246
+ protoOf(KotlinIrEmitter).f1z = function (definition, module_0) {
1247
+ var tmp;
1248
+ if (definition instanceof Type) {
1249
+ tmp = convertToGenerator_2(definition, module_0);
1250
+ } else {
1251
+ if (definition instanceof Enum) {
1252
+ tmp = convertToGenerator_1(definition);
1253
+ } else {
1254
+ if (definition instanceof Refined) {
1255
+ tmp = convertToGenerator_0(definition);
1256
+ } else {
1257
+ if (definition instanceof Union) {
1258
+ tmp = convertToGenerator(definition);
1259
+ } else {
1260
+ return null;
1261
+ }
1262
+ }
1263
+ }
1264
+ }
1265
+ var generatorFile = tmp;
1266
+ var sanitized = sanitizeNames(generatorFile, _get_sanitizationConfig__sns434(this));
1267
+ var generatorOwnName = definition.tu().m1() + 'Generator';
1268
+ var tmp_0 = asSequence_0(collectCustomTypeNames(sanitized));
1269
+ var tmp_1 = filterNot(tmp_0, KotlinIrEmitter$emitGenerator$lambda);
1270
+ var tmp_2 = filterNot(tmp_1, KotlinIrEmitter$emitGenerator$lambda_0(generatorOwnName));
1271
+ var tmp_3 = distinct_0(map(tmp_2, KotlinIrEmitter$emitGenerator$lambda_1));
1272
+ var modelImports = toList(map(tmp_3, KotlinIrEmitter$emitGenerator$lambda_2(this)));
1273
+ return placeInPackage_0(prependImports(sanitized, plus_2(this.n21_1, modelImports)), this.v1z(), 'generator');
1212
1274
  };
1213
- protoOf(KotlinIrEmitter).up = function (type, module_0) {
1275
+ protoOf(KotlinIrEmitter).st = function (type, module_0) {
1214
1276
  return ensureEmptyStructHasConstructor(sanitizeNames(convertWithValidation(type, module_0), _get_sanitizationConfig__sns434(this)));
1215
1277
  };
1216
- protoOf(KotlinIrEmitter).ir = function (enum_0, module_0) {
1278
+ protoOf(KotlinIrEmitter).gv = function (enum_0, module_0) {
1217
1279
  var tmp = sanitizeNames(convert_0(enum_0), _get_sanitizationConfig__sns434(this));
1218
1280
  return injectEnumLabelField(tmp, KotlinIrEmitter$emit$lambda(this));
1219
1281
  };
1220
- protoOf(KotlinIrEmitter).yq = function (union) {
1282
+ protoOf(KotlinIrEmitter).wu = function (union) {
1221
1283
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1222
1284
  };
1223
- protoOf(KotlinIrEmitter).dr = function (refined) {
1285
+ protoOf(KotlinIrEmitter).bv = function (refined) {
1224
1286
  var file = sanitizeNames(convert_2(refined), _get_sanitizationConfig__sns434(this));
1225
1287
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1226
1288
  // Inline function 'kotlin.collections.filterIsInstance' call
1227
- var tmp0 = file.u1m();
1289
+ var tmp0 = file.c1r();
1228
1290
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1229
1291
  var destination = ArrayList_init_$Create$_0();
1230
1292
  var _iterator__ex2g4s = tmp0.t();
@@ -1236,13 +1298,13 @@ protoOf(KotlinIrEmitter).dr = function (refined) {
1236
1298
  }
1237
1299
  var tmp0_safe_receiver = firstOrNull_0(destination);
1238
1300
  var updatedStruct = tmp0_safe_receiver == null ? null : markMembersAsOverride(tmp0_safe_receiver);
1239
- return new File(Companion_getInstance().f1h(sanitize_0(this, refined.br_1)), listOfNotNull_0(updatedStruct));
1301
+ return new File(Companion_getInstance().u1k(sanitize_0(this, refined.zu_1)), listOfNotNull_0(updatedStruct));
1240
1302
  };
1241
- protoOf(KotlinIrEmitter).jr = function (endpoint) {
1242
- var imports = buildModelImports(endpoint, this.d1v());
1303
+ protoOf(KotlinIrEmitter).hv = function (endpoint) {
1304
+ var imports = buildModelImports(endpoint, this.v1z());
1243
1305
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1244
1306
  // Inline function 'kotlin.collections.filterIsInstance' call
1245
- var tmp0 = convert_3(endpoint).u1m();
1307
+ var tmp0 = convert_3(endpoint).c1r();
1246
1308
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1247
1309
  var destination = ArrayList_init_$Create$_0();
1248
1310
  var _iterator__ex2g4s = tmp0.t();
@@ -1255,7 +1317,7 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
1255
1317
  var tmp$ret$2 = firstOrNull_0(destination);
1256
1318
  var endpointNamespace = ensureNotNull(tmp$ret$2);
1257
1319
  var body = injectCompanionObject(endpointNamespace, endpoint);
1258
- var tmp = sanitizeNames(new File(Companion_getInstance().f1h(sanitize_0(this, endpoint.ep_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1320
+ var tmp = sanitizeNames(new File(Companion_getInstance().u1k(sanitize_0(this, endpoint.ct_1)), listOf(body)), _get_sanitizationConfig__sns434(this));
1259
1321
  // Inline function 'kotlin.takeIf' call
1260
1322
  var tmp_0;
1261
1323
  // Inline function 'kotlin.collections.isNotEmpty' call
@@ -1267,10 +1329,10 @@ protoOf(KotlinIrEmitter).jr = function (endpoint) {
1267
1329
  var tmp$ret$5 = tmp_0;
1268
1330
  return prependImports(tmp, tmp$ret$5);
1269
1331
  };
1270
- protoOf(KotlinIrEmitter).xq = function (channel) {
1332
+ protoOf(KotlinIrEmitter).vu = function (channel) {
1271
1333
  var tmp = sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
1272
1334
  // Inline function 'kotlin.takeIf' call
1273
- var this_0 = buildModelImports(channel, this.d1v());
1335
+ var this_0 = buildModelImports(channel, this.v1z());
1274
1336
  var tmp_0;
1275
1337
  // Inline function 'kotlin.collections.isNotEmpty' call
1276
1338
  if (!this_0.r()) {
@@ -1281,25 +1343,25 @@ protoOf(KotlinIrEmitter).xq = function (channel) {
1281
1343
  var tmp$ret$2 = tmp_0;
1282
1344
  return prependImports(tmp, tmp$ret$2);
1283
1345
  };
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());
1346
+ protoOf(KotlinIrEmitter).e1z = function (endpoint) {
1347
+ var imports = buildModelImports(endpoint, this.v1z());
1348
+ var endpointImport = import_0(this.v1z().kv_1 + '.endpoint', endpoint.ct_1.m1());
1287
1349
  var file = sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this));
1288
- var subPackageName = plus_0(this.d1v(), 'client');
1289
- var tmp = Companion_getInstance().f1h(subPackageName.or() + file.s1m_1.h1h());
1350
+ var subPackageName = plus_0(this.v1z(), 'client');
1351
+ var tmp = Companion_getInstance().u1k(subPackageName.mv() + file.a1r_1.b1q());
1290
1352
  // Inline function 'kotlin.collections.buildList' call
1291
1353
  // Inline function 'kotlin.collections.buildListInternal' call
1292
1354
  // Inline function 'kotlin.apply' call
1293
1355
  var this_0 = ArrayList_init_$Create$_0();
1294
- this_0.x(new Package(subPackageName.mr_1));
1295
- this_0.e1(this.v1w_1);
1356
+ this_0.x(new Package(subPackageName.kv_1));
1357
+ this_0.e1(this.n21_1);
1296
1358
  this_0.e1(imports);
1297
1359
  this_0.x(endpointImport);
1298
- this_0.e1(file.t1m_1);
1299
- var tmp$ret$3 = this_0.o5();
1360
+ this_0.e1(file.b1r_1);
1361
+ var tmp$ret$3 = this_0.p5();
1300
1362
  return new File(tmp, tmp$ret$3);
1301
1363
  };
1302
- protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1364
+ protoOf(KotlinIrEmitter).c1z = function (endpoints, logger) {
1303
1365
  // Inline function 'kotlin.collections.flatMap' call
1304
1366
  // Inline function 'kotlin.collections.flatMapTo' call
1305
1367
  var destination = ArrayList_init_$Create$_0();
@@ -1315,7 +1377,7 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1315
1377
  var _iterator__ex2g4s_0 = destination.t();
1316
1378
  while (_iterator__ex2g4s_0.u()) {
1317
1379
  var e = _iterator__ex2g4s_0.v();
1318
- var key = e.ku_1;
1380
+ var key = e.iy_1;
1319
1381
  if (set.x(key)) {
1320
1382
  list_0.x(e);
1321
1383
  }
@@ -1326,7 +1388,7 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1326
1388
  var _iterator__ex2g4s_1 = list_0.t();
1327
1389
  while (_iterator__ex2g4s_1.u()) {
1328
1390
  var item = _iterator__ex2g4s_1.v();
1329
- var tmp$ret$5 = import_0(this.d1v().mr_1 + '.model', item.ku_1);
1391
+ var tmp$ret$5 = import_0(this.v1z().kv_1 + '.model', item.iy_1);
1330
1392
  destination_0.x(tmp$ret$5);
1331
1393
  }
1332
1394
  var imports = destination_0;
@@ -1336,7 +1398,7 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1336
1398
  var _iterator__ex2g4s_2 = endpoints.t();
1337
1399
  while (_iterator__ex2g4s_2.u()) {
1338
1400
  var item_0 = _iterator__ex2g4s_2.v();
1339
- var tmp$ret$8 = import_0(this.d1v().mr_1 + '.endpoint', item_0.ep_1.l1());
1401
+ var tmp$ret$8 = import_0(this.v1z().kv_1 + '.endpoint', item_0.ct_1.m1());
1340
1402
  destination_1.x(tmp$ret$8);
1341
1403
  }
1342
1404
  var endpointImports = destination_1;
@@ -1346,22 +1408,22 @@ protoOf(KotlinIrEmitter).o1u = function (endpoints, logger) {
1346
1408
  var _iterator__ex2g4s_3 = endpoints.t();
1347
1409
  while (_iterator__ex2g4s_3.u()) {
1348
1410
  var item_1 = _iterator__ex2g4s_3.v();
1349
- var tmp$ret$11 = import_0(this.d1v().mr_1 + '.client', item_1.ep_1.l1() + 'Client');
1411
+ var tmp$ret$11 = import_0(this.v1z().kv_1 + '.client', item_1.ct_1.m1() + 'Client');
1350
1412
  destination_2.x(tmp$ret$11);
1351
1413
  }
1352
1414
  var clientImports = destination_2;
1353
1415
  var allImports = plus_2(plus_2(imports, endpointImports), clientImports);
1354
1416
  var file = sanitizeNames(emitClient.call(this, endpoints, logger), _get_sanitizationConfig__sns434(this));
1355
- var tmp = Companion_getInstance().f1h(this.d1v().or() + file.s1m_1.h1h());
1417
+ var tmp = Companion_getInstance().u1k(this.v1z().mv() + file.a1r_1.b1q());
1356
1418
  // Inline function 'kotlin.collections.buildList' call
1357
1419
  // Inline function 'kotlin.collections.buildListInternal' call
1358
1420
  // Inline function 'kotlin.apply' call
1359
1421
  var this_0 = ArrayList_init_$Create$_0();
1360
- this_0.x(new Package(this.d1v().mr_1));
1361
- this_0.e1(this.v1w_1);
1422
+ this_0.x(new Package(this.v1z().kv_1));
1423
+ this_0.e1(this.n21_1);
1362
1424
  this_0.e1(allImports);
1363
- this_0.e1(file.t1m_1);
1364
- var tmp$ret$17 = this_0.o5();
1425
+ this_0.e1(file.b1r_1);
1426
+ var tmp$ret$17 = this_0.p5();
1365
1427
  return new File(tmp, tmp$ret$17);
1366
1428
  };
1367
1429
  function buildModelImports(_this__u8e3s4, packageName) {
@@ -1372,7 +1434,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1372
1434
  var _iterator__ex2g4s = this_0.t();
1373
1435
  while (_iterator__ex2g4s.u()) {
1374
1436
  var e = _iterator__ex2g4s.v();
1375
- var key = e.ku_1;
1437
+ var key = e.iy_1;
1376
1438
  if (set.x(key)) {
1377
1439
  list.x(e);
1378
1440
  }
@@ -1383,7 +1445,7 @@ function buildModelImports(_this__u8e3s4, packageName) {
1383
1445
  var _iterator__ex2g4s_0 = list.t();
1384
1446
  while (_iterator__ex2g4s_0.u()) {
1385
1447
  var item = _iterator__ex2g4s_0.v();
1386
- var tmp$ret$2 = import_0(packageName.mr_1 + '.model', Companion_getInstance().f1h(item.ku_1).h1h());
1448
+ var tmp$ret$2 = import_0(packageName.kv_1 + '.model', item.iy_1);
1387
1449
  destination.x(tmp$ret$2);
1388
1450
  }
1389
1451
  return destination;
@@ -1395,31 +1457,31 @@ function injectCompanionObject(_this__u8e3s4, endpoint) {
1395
1457
  var tmp = scope;
1396
1458
  // Inline function 'community.flock.wirespec.ir.core.injectAfter' call
1397
1459
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1398
- var this_0 = scope.x1t_1;
1460
+ var this_0 = scope.l1y_1;
1399
1461
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1400
1462
  // Inline function 'kotlin.apply' call
1401
1463
  var this_1 = new TransformerBuilder();
1402
- this_1.c1h(injectCompanionObject$lambda(endpoint));
1403
- var tmp$ret$2 = this_1.d1h();
1404
- tmp.x1t_1 = transform(this_0, tmp$ret$2);
1405
- var tmp_0 = scope.x1t_1;
1464
+ this_1.d1m(injectCompanionObject$lambda(endpoint));
1465
+ var tmp$ret$2 = this_1.e1m();
1466
+ tmp.l1y_1 = transform(this_0, tmp$ret$2);
1467
+ var tmp_0 = scope.l1y_1;
1406
1468
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1407
1469
  }
1408
1470
  function buildCompanionObject(endpoint) {
1409
- var pathTemplate = '/' + joinToString(endpoint.gp_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
1471
+ var pathTemplate = '/' + joinToString(endpoint.et_1, '/', VOID, VOID, VOID, VOID, buildCompanionObject$lambda);
1410
1472
  // Inline function 'kotlin.let' call
1411
- var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.fp_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
1473
+ var p0 = trimMargin('\n |companion object: Wirespec.Server<Request, Response<*>>, Wirespec.Client<Request, Response<*>> {\n | override val pathTemplate = "' + pathTemplate + '"\n | override val method = "' + endpoint.dt_1.toString() + '"\n | override fun server(serialization: Wirespec.Serialization) = object : Wirespec.ServerEdge<Request, Response<*>> {\n | override fun from(request: Wirespec.RawRequest) = fromRawRequest(serialization, request)\n | override fun to(response: Response<*>) = toRawResponse(serialization, response)\n | }\n | override fun client(serialization: Wirespec.Serialization) = object : Wirespec.ClientEdge<Request, Response<*>> {\n | override fun to(request: Request) = toRawRequest(serialization, request)\n | override fun from(response: Wirespec.RawResponse) = fromRawResponse(serialization, response)\n | }\n |}\n ');
1412
1474
  return raw(p0);
1413
1475
  }
1414
1476
  function injectCompanionObject$lambda($endpoint) {
1415
1477
  return function (element, transformer) {
1416
1478
  var tmp;
1417
1479
  if (element instanceof Interface) {
1418
- var injected = element.k1n_1.equals(Companion_getInstance().f1h('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1480
+ var injected = element.t1r_1.equals(Companion_getInstance().u1k('Handler')) ? listOf(buildCompanionObject($endpoint)) : emptyList();
1419
1481
  var tmp_0;
1420
1482
  // Inline function 'kotlin.collections.isNotEmpty' call
1421
1483
  if (!injected.r()) {
1422
- tmp_0 = withElements(element, plus_2(element.u1m(), injected));
1484
+ tmp_0 = withElements(element, plus_2(element.c1r(), injected));
1423
1485
  } else {
1424
1486
  tmp_0 = element;
1425
1487
  }
@@ -1434,10 +1496,10 @@ function injectCompanionObject$lambda($endpoint) {
1434
1496
  function buildCompanionObject$lambda(it) {
1435
1497
  var tmp;
1436
1498
  if (it instanceof Literal) {
1437
- tmp = it.hq_1;
1499
+ tmp = it.fu_1;
1438
1500
  } else {
1439
1501
  if (it instanceof Param) {
1440
- tmp = '{' + it.lp_1.l1() + '}';
1502
+ tmp = '{' + it.jt_1.m1() + '}';
1441
1503
  } else {
1442
1504
  noWhenBranchMatchedException();
1443
1505
  }
@@ -1448,8 +1510,8 @@ function KotlinRefinedTypeDefinitionEmitter() {
1448
1510
  }
1449
1511
  function KotlinShared() {
1450
1512
  KotlinShared_instance = this;
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 ');
1513
+ this.c21_1 = 'community.flock.wirespec.kotlin';
1514
+ this.d21_1 = trimMargin('\n |package ' + this.c21_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.ov(2) + 'fun to(request: Req): RawRequest\n |' + Spacer_instance.ov(2) + 'fun from(response: RawResponse): Res\n |' + Spacer_instance.toString() + '}\n |' + Spacer_instance.toString() + 'interface Client<Req : Request<*>, Res : Response<*>> {\n |' + Spacer_instance.ov(2) + 'val pathTemplate: String\n |' + Spacer_instance.ov(2) + 'val method: String\n |' + Spacer_instance.ov(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.ov(2) + 'val pathTemplate: String\n |' + Spacer_instance.ov(2) + 'val method: String\n |' + Spacer_instance.ov(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
1515
  }
1454
1516
  protoOf(KotlinShared).toString = function () {
1455
1517
  return 'KotlinShared';
@@ -1472,12 +1534,12 @@ function KotlinShared_getInstance() {
1472
1534
  }
1473
1535
  function KotlinTypeDefinitionEmitter$emit$lambda(this$0) {
1474
1536
  return function (it) {
1475
- return this$0.xp(it);
1537
+ return this$0.vt(it);
1476
1538
  };
1477
1539
  }
1478
1540
  function KotlinTypeDefinitionEmitter$emit$lambda_0(this$0) {
1479
1541
  return function (it) {
1480
- return Spacer_instance.toString() + 'val ' + this$0.wp(it) + ',';
1542
+ return Spacer_instance.toString() + 'val ' + this$0.ut(it) + ',';
1481
1543
  };
1482
1544
  }
1483
1545
  function KotlinTypeDefinitionEmitter() {
@@ -1485,30 +1547,31 @@ function KotlinTypeDefinitionEmitter() {
1485
1547
  function KotlinUnionDefinitionEmitter() {
1486
1548
  }
1487
1549
  //region block: post-declaration
1488
- protoOf(KotlinEmitter).up = emit_4;
1489
- protoOf(KotlinEmitter).vp = emit_5;
1490
- protoOf(KotlinEmitter).wp = emit_6;
1491
- protoOf(KotlinEmitter).xp = emit_7;
1492
- protoOf(KotlinEmitter).yp = emit_8;
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
- protoOf(KotlinEmitter).wq = emit_3;
1498
- protoOf(KotlinEmitter).xq = emit_9;
1499
- protoOf(KotlinEmitter).q1v = emit_11;
1500
- protoOf(KotlinEmitter).r1v = emit_12;
1501
- protoOf(KotlinEmitter).kr = emitValidator;
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
- protoOf(KotlinIrEmitter).on = emit_1;
1511
- protoOf(KotlinIrEmitter).m1u = emit_2;
1550
+ protoOf(KotlinEmitter).st = emit_4;
1551
+ protoOf(KotlinEmitter).tt = emit_5;
1552
+ protoOf(KotlinEmitter).ut = emit_6;
1553
+ protoOf(KotlinEmitter).vt = emit_7;
1554
+ protoOf(KotlinEmitter).wt = emit_8;
1555
+ protoOf(KotlinEmitter).gv = emit_10;
1556
+ protoOf(KotlinEmitter).bv = emit_15;
1557
+ protoOf(KotlinEmitter).hv = emit_12;
1558
+ protoOf(KotlinEmitter).wu = emit_11;
1559
+ protoOf(KotlinEmitter).uu = emit_3;
1560
+ protoOf(KotlinEmitter).vu = emit_9;
1561
+ protoOf(KotlinEmitter).i20 = emit_13;
1562
+ protoOf(KotlinEmitter).j20 = emit_14;
1563
+ protoOf(KotlinEmitter).iv = emitValidator;
1564
+ protoOf(KotlinEmitter).v20 = sanitize;
1565
+ protoOf(KotlinEmitter).k20 = sanitizeFirstIsDigit;
1566
+ protoOf(KotlinEmitter).l20 = sanitizeKeywords;
1567
+ protoOf(KotlinEmitter).m20 = emitHandleFunction;
1568
+ protoOf(KotlinEmitter).e21 = emitRequestHeaders;
1569
+ protoOf(KotlinEmitter).f21 = emitQueries;
1570
+ protoOf(KotlinEmitter).g21 = emitBody;
1571
+ protoOf(KotlinEmitter).h21 = emitHeaders;
1572
+ protoOf(KotlinIrEmitter).mr = emit_1;
1573
+ protoOf(KotlinIrEmitter).a1z = emit_2;
1574
+ protoOf(KotlinIrEmitter).d1z = beforeGenerate;
1512
1575
  //endregion
1513
1576
  //region block: exports
1514
1577
  export {