@flock/wirespec 0.18.0-RC.1 → 0.18.1-RC.2

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 (42) hide show
  1. package/arrow-arrow-atomic.mjs +12 -12
  2. package/arrow-arrow-core.mjs +152 -158
  3. package/arrow-arrow-core.mjs.map +1 -1
  4. package/clikt-clikt-mordant.mjs +80 -80
  5. package/clikt-clikt.mjs +1442 -1442
  6. package/clikt-clikt.mjs.map +1 -1
  7. package/colormath-root-colormath.mjs +439 -439
  8. package/kotlin-kotlin-stdlib.mjs +1067 -1131
  9. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  10. package/kotlin-openapi-bindings.mjs +4857 -4857
  11. package/kotlin-rgxgen.mjs +1793 -1793
  12. package/kotlinx-io-kotlinx-io-core.mjs +415 -415
  13. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1752 -1752
  14. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1348 -1356
  15. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  16. package/mordant-mordant.mjs +1303 -1311
  17. package/mordant-mordant.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/wirespec-src-compiler-core.mjs +1527 -1527
  20. package/wirespec-src-compiler-emitters-java.mjs +477 -451
  21. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-kotlin.mjs +413 -408
  23. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-python.mjs +379 -378
  25. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-rust.mjs +939 -725
  27. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-scala.mjs +225 -233
  29. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-typescript.mjs +558 -589
  31. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  32. package/wirespec-src-compiler-emitters-wirespec.mjs +82 -82
  33. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  34. package/wirespec-src-compiler-ir.mjs +3738 -3708
  35. package/wirespec-src-compiler-ir.mjs.map +1 -1
  36. package/wirespec-src-compiler-lib.mjs +418 -418
  37. package/wirespec-src-converter-avro.mjs +506 -506
  38. package/wirespec-src-converter-openapi.mjs +684 -684
  39. package/wirespec-src-plugin-arguments.mjs +181 -181
  40. package/wirespec-src-plugin-cli.mjs +106 -106
  41. package/wirespec-src-plugin-npm.mjs +36 -36
  42. package/wirespec-src-tools-generator.mjs +34 -34
@@ -122,9 +122,7 @@ import {
122
122
  NonEmptyList__plus_impl_xqmb91y38uyofmba13 as NonEmptyList__plus_impl_xqmb9_0,
123
123
  } from './arrow-arrow-core.mjs';
124
124
  import {
125
- Custom2si7lto3wompr as Custom_0,
126
- Importdjdfxu3pjkxa as Import,
127
- RawElement2yts1x2rbem1g as RawElement,
125
+ import5uhkz67bd8tt as import_0,
128
126
  TransformScopeyrd3lf4zrk76 as TransformScope,
129
127
  TransformerBuildera6a1gvlhjj9b as TransformerBuilder,
130
128
  transform3eti8i2bqvifx as transform,
@@ -133,14 +131,15 @@ import {
133
131
  Struct39wf79cwtn4ty as Struct,
134
132
  Nameoqr8dt2fim9d as Name,
135
133
  transformChildren2mszeagj5nq4c as transformChildren,
136
- sanitizeFieldName2ukb9v6ywyhle as sanitizeFieldName,
134
+ sanitizeFieldName1ptgy1kxy8u2m as sanitizeFieldName,
137
135
  ConstructorStatement1x4n4sr59iy4n as ConstructorStatement,
138
- SanitizationConfig1cdlo8dm6nafn as SanitizationConfig,
136
+ SanitizationConfig11mmn3p2c03c1 as SanitizationConfig,
139
137
  convert13xvfhgrf57n5 as convert,
140
138
  generatePython28c6k5s89bmk1 as generatePython,
141
139
  FieldCall1iz7z2fx2xo4p as FieldCall,
142
140
  Companion_getInstance3gvtuyxc9uhxj as Companion_getInstance,
143
141
  VariableReference2vlynnhaw1i64 as VariableReference,
142
+ Custom2si7lto3wompr as Custom_0,
144
143
  Parameteruqoxd4rzw7ga as Parameter,
145
144
  Function21cuq8qizkin7 as Function,
146
145
  transformChildrend9p91tpcqdkx as transformChildren_0,
@@ -152,10 +151,12 @@ import {
152
151
  FunctionCall30872kpnbr7op as FunctionCall,
153
152
  PythonGenerator_instance3bpw212sztsap as PythonGenerator_instance,
154
153
  emit3bzdcd0f6nwtj as emit,
154
+ RawElement2yts1x2rbem1g as RawElement,
155
155
  emitn3eihixilqyh as emit_0,
156
- wrapWithModuleImport3q1oinb0nz11n as wrapWithModuleImport,
156
+ prependImports32gcj3yb8voha as prependImports,
157
+ placeInModule10pilwex0h8tn as placeInModule,
157
158
  convertWithValidation3ar3nbcqsbkpn as convertWithValidation,
158
- sanitizeNames3w41y78hqenku as sanitizeNames,
159
+ sanitizeNames2wqmyf8vafp9x as sanitizeNames,
159
160
  convert11ert2po54h1y as convert_0,
160
161
  convert37aabdzvtv9vg as convert_1,
161
162
  convert17zcptkz4mhr4 as convert_2,
@@ -182,10 +183,10 @@ initMetadataForClass(sam$kotlin_Comparator$0, 'sam$kotlin_Comparator$0', VOID, V
182
183
  function emit_3(identifier) {
183
184
  var tmp;
184
185
  if (identifier instanceof DefinitionIdentifier) {
185
- tmp = this.t1w(identifier);
186
+ tmp = this.s1w(identifier);
186
187
  } else {
187
188
  if (identifier instanceof FieldIdentifier) {
188
- tmp = this.b1w(this.t1w(identifier));
189
+ tmp = this.a1w(this.s1w(identifier));
189
190
  } else {
190
191
  noWhenBranchMatchedException();
191
192
  }
@@ -194,7 +195,7 @@ function emit_3(identifier) {
194
195
  }
195
196
  function sanitize(_this__u8e3s4) {
196
197
  // Inline function 'kotlin.collections.mapIndexed' call
197
- var this_0 = split(_this__u8e3s4.n1(), ['.', ' ']);
198
+ var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
198
199
  // Inline function 'kotlin.collections.mapIndexedTo' call
199
200
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
200
201
  var index = 0;
@@ -203,7 +204,7 @@ function sanitize(_this__u8e3s4) {
203
204
  var item = _iterator__ex2g4s.v();
204
205
  var _unary__edvuaz = index;
205
206
  index = _unary__edvuaz + 1 | 0;
206
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.qq(item) : item;
207
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
207
208
  destination.x(tmp$ret$0);
208
209
  }
209
210
  // Inline function 'kotlin.text.filter' call
@@ -241,46 +242,47 @@ function sanitize(_this__u8e3s4) {
241
242
  return tmp;
242
243
  }
243
244
  function sanitizeKeywords(_this__u8e3s4) {
244
- return Companion_getInstance_0().g1y_1.h1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
245
+ return Companion_getInstance_0().f1y_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
245
246
  }
246
247
  initMetadataForInterface(PythonIdentifierEmitter, 'PythonIdentifierEmitter');
247
- function emit_4(union) {
248
- return trimMargin('\n |class ' + this.yq(union.so_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
248
+ function emit_4(enum_0, module_0) {
249
+ var tmp = this.s1w(enum_0.gr_1);
250
+ return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.hr_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.qr(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.qr(2) + 'return self.value\n ');
249
251
  }
250
- initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
252
+ initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
251
253
  function emit_5(type, module_0) {
252
254
  var tmp;
253
- if (type.yo_1.uo_1.r()) {
254
- var tmp_0 = this.yq(type.xo_1);
255
+ if (type.wo_1.so_1.r()) {
256
+ var tmp_0 = this.wq(type.vo_1);
255
257
  var tmp_1 = Spacer_instance.toString();
256
258
  var tmp_2 = importReferences(type);
257
259
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_0 + ':\n |' + tmp_1 + 'pass\n |\n |' + joinToString(tmp_2, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda(this)) + '\n |\n ');
258
260
  } else {
259
- var tmp_3 = this.yq(type.xo_1);
260
- var tmp_4 = this.xp(type.yo_1);
261
+ var tmp_3 = this.wq(type.vo_1);
262
+ var tmp_4 = this.vp(type.wo_1);
261
263
  var tmp_5 = importReferences(type);
262
264
  tmp = trimMargin('\n |@dataclass\n |class ' + tmp_3 + ':\n |' + tmp_4 + '\n |\n |' + joinToString(tmp_5, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_0(this)) + '\n ');
263
265
  }
264
266
  return tmp;
265
267
  }
266
268
  function emit_6(_this__u8e3s4) {
267
- return joinToString(_this__u8e3s4.uo_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
269
+ return joinToString(_this__u8e3s4.so_1, '\n', VOID, VOID, VOID, VOID, PythonTypeDefinitionEmitter$emit$lambda_1(this));
268
270
  }
269
271
  function emit_7(_this__u8e3s4) {
270
- return this.yq(_this__u8e3s4.cp_1) + ": '" + this.zp(_this__u8e3s4.dp_1) + "'";
272
+ return this.wq(_this__u8e3s4.ap_1) + ": '" + this.xp(_this__u8e3s4.bp_1) + "'";
271
273
  }
272
274
  function emit_8(_this__u8e3s4) {
273
275
  // Inline function 'kotlin.let' call
274
- var it = this.e1y(_this__u8e3s4);
275
- return _this__u8e3s4.fu() ? 'Optional[' + it + ']' : it;
276
+ var it = this.d1y(_this__u8e3s4);
277
+ return _this__u8e3s4.du() ? 'Optional[' + it + ']' : it;
276
278
  }
277
279
  function emitType(_this__u8e3s4) {
278
280
  var tmp;
279
281
  if (_this__u8e3s4 instanceof Dict) {
280
- tmp = 'Dict[str, ' + this.zp(_this__u8e3s4.eo_1) + ']';
282
+ tmp = 'Dict[str, ' + this.xp(_this__u8e3s4.co_1) + ']';
281
283
  } else {
282
284
  if (_this__u8e3s4 instanceof Iterable) {
283
- tmp = 'List[' + this.zp(_this__u8e3s4.bo_1) + ']';
285
+ tmp = 'List[' + this.xp(_this__u8e3s4.zn_1) + ']';
284
286
  } else {
285
287
  if (_this__u8e3s4 instanceof Unit) {
286
288
  tmp = 'None';
@@ -289,10 +291,10 @@ function emitType(_this__u8e3s4) {
289
291
  tmp = 'Any';
290
292
  } else {
291
293
  if (_this__u8e3s4 instanceof Custom) {
292
- tmp = _this__u8e3s4.nu_1;
294
+ tmp = _this__u8e3s4.lu_1;
293
295
  } else {
294
296
  if (_this__u8e3s4 instanceof Primitive) {
295
- tmp = this.c1y(_this__u8e3s4.ru_1);
297
+ tmp = this.b1y(_this__u8e3s4.pu_1);
296
298
  } else {
297
299
  noWhenBranchMatchedException();
298
300
  }
@@ -331,10 +333,10 @@ function emit_9(_this__u8e3s4) {
331
333
  function emit_10(_this__u8e3s4) {
332
334
  var tmp;
333
335
  if (_this__u8e3s4 instanceof RegExp_0) {
334
- tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.at_1) + '", self.value))';
336
+ tmp = 'bool(re.match(r"' + _RegExp___get_value__impl__7o7618(_this__u8e3s4.ys_1) + '", self.value))';
335
337
  } else {
336
338
  if (_this__u8e3s4 instanceof Bound) {
337
- var tmp1_safe_receiver = _this__u8e3s4.rt_1;
339
+ var tmp1_safe_receiver = _this__u8e3s4.pt_1;
338
340
  var tmp_0;
339
341
  if (tmp1_safe_receiver == null) {
340
342
  tmp_0 = null;
@@ -343,7 +345,7 @@ function emit_10(_this__u8e3s4) {
343
345
  tmp_0 = tmp1_safe_receiver + ' < self.value';
344
346
  }
345
347
  var minCheck = tmp_0;
346
- var tmp2_safe_receiver = _this__u8e3s4.st_1;
348
+ var tmp2_safe_receiver = _this__u8e3s4.qt_1;
347
349
  var tmp_1;
348
350
  if (tmp2_safe_receiver == null) {
349
351
  tmp_1 = null;
@@ -369,34 +371,34 @@ function emit_10(_this__u8e3s4) {
369
371
  return tmp;
370
372
  }
371
373
  function emitReferenceCustomImports(_this__u8e3s4) {
372
- return 'from ..model.' + _this__u8e3s4.nu_1 + ' import ' + _this__u8e3s4.nu_1;
374
+ return 'from ..model.' + _this__u8e3s4.lu_1 + ' import ' + _this__u8e3s4.lu_1;
373
375
  }
374
376
  initMetadataForInterface(PythonTypeDefinitionEmitter, 'PythonTypeDefinitionEmitter', VOID, VOID, [TypeDefinitionEmitter, PythonIdentifierEmitter]);
375
377
  function emit_11(refined) {
376
- return trimMargin('\n |@dataclass\n |class ' + this.t1w(refined.dr_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.e1y(refined.er_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.sr(2) + 'return ' + this.mr(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.sr(2) + 'return str(self.value)\n |\n ');
378
+ return trimMargin('\n |@dataclass\n |class ' + this.s1w(refined.br_1) + '(Wirespec.Refined):\n |' + Spacer_instance.toString() + 'value: ' + this.d1y(refined.cr_1) + '\n |\n |' + Spacer_instance.toString() + 'def validate(self) -> bool:\n |' + Spacer_instance.qr(2) + 'return ' + this.kr(refined) + '\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.qr(2) + 'return str(self.value)\n |\n ');
377
379
  }
378
380
  function emitValidator(_this__u8e3s4) {
379
381
  var defaultReturn = 'True';
380
- var type = _this__u8e3s4.er_1.ru_1;
382
+ var type = _this__u8e3s4.cr_1.pu_1;
381
383
  var tmp;
382
384
  if (type instanceof Integer) {
383
- var tmp0_safe_receiver = type.wt_1;
384
- var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.aq(tmp0_safe_receiver);
385
+ var tmp0_safe_receiver = type.ut_1;
386
+ var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : this.yp(tmp0_safe_receiver);
385
387
  tmp = tmp1_elvis_lhs == null ? defaultReturn : tmp1_elvis_lhs;
386
388
  } else {
387
389
  if (type instanceof Number_0) {
388
- var tmp2_safe_receiver = type.zt_1;
389
- var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.aq(tmp2_safe_receiver);
390
+ var tmp2_safe_receiver = type.xt_1;
391
+ var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : this.yp(tmp2_safe_receiver);
390
392
  tmp = tmp3_elvis_lhs == null ? defaultReturn : tmp3_elvis_lhs;
391
393
  } else {
392
394
  if (type instanceof String_0) {
393
- var tmp4_safe_receiver = type.tt_1;
395
+ var tmp4_safe_receiver = type.rt_1;
394
396
  var tmp_0;
395
397
  var tmp_1 = tmp4_safe_receiver;
396
398
  if ((tmp_1 == null ? null : new RegExp_0(tmp_1)) == null) {
397
399
  tmp_0 = null;
398
400
  } else {
399
- tmp_0 = this.aq(new RegExp_0(tmp4_safe_receiver));
401
+ tmp_0 = this.yp(new RegExp_0(tmp4_safe_receiver));
400
402
  }
401
403
  var tmp5_elvis_lhs = tmp_0;
402
404
  tmp = tmp5_elvis_lhs == null ? defaultReturn : tmp5_elvis_lhs;
@@ -416,23 +418,27 @@ function emitValidator(_this__u8e3s4) {
416
418
  return tmp;
417
419
  }
418
420
  initMetadataForInterface(PythonRefinedTypeDefinitionEmitter, 'PythonRefinedTypeDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter, PythonIdentifierEmitter]);
419
- function emit_12(endpoint) {
421
+ function emit_12(union) {
422
+ return trimMargin('\n |class ' + this.wq(union.qo_1) + '(ABC):\n |' + Spacer_instance.toString() + 'pass\n ');
423
+ }
424
+ initMetadataForInterface(PythonUnionDefinitionEmitter, 'PythonUnionDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
425
+ function emit_13(endpoint) {
420
426
  var tmp = importReferences(endpoint);
421
427
  var tmp_0 = joinToString(tmp, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda(this));
422
- var tmp_1 = this.yq(endpoint.gp_1);
423
- var tmp_2 = spacer(this.y1v(first(endpoint.lp_1), endpoint), 1);
424
- var tmp_3 = distinctByStatus(endpoint.mp_1);
428
+ var tmp_1 = this.wq(endpoint.ep_1);
429
+ var tmp_2 = spacer(this.x1v(first(endpoint.jp_1), endpoint), 1);
430
+ var tmp_3 = distinctByStatus(endpoint.kp_1);
425
431
  return trimMargin('\n |' + tmp_0 + '\n |\n |class ' + tmp_1 + ' (Wirespec.Endpoint):\n |' + tmp_2 + '\n |' + spacer(joinToString(tmp_3, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_0(this, endpoint)), 1) + '\n |' + spacer(emitResponseUnion(this, endpoint), 1) + '\n |' + spacer(emitHandleClass(this, endpoint), 1) + '\n |' + spacer(emitConvertClass(this, endpoint), 1) + '\n |\n ');
426
432
  }
427
- function emit_13(_this__u8e3s4, endpoint) {
428
- var tmp = emit_18(this, _this__u8e3s4.pp_1);
433
+ function emit_14(_this__u8e3s4, endpoint) {
434
+ var tmp = emit_18(this, _this__u8e3s4.np_1);
429
435
  var tmp_0 = get_pathParams(endpoint);
430
436
  var tmp_1 = emitObject$default(this, tmp_0, 'Path', 'Wirespec.Request.Path', VOID, PythonEndpointDefinitionEmitter$emit$lambda_1(this));
431
- var tmp_2 = emitObject$default(this, endpoint.jp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
432
- var tmp_3 = emitObject$default(this, endpoint.kp_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
437
+ var tmp_2 = emitObject$default(this, endpoint.hp_1, 'Queries', 'Wirespec.Request.Queries', VOID, PythonEndpointDefinitionEmitter$emit$lambda_2(this));
438
+ var tmp_3 = emitObject$default(this, endpoint.ip_1, 'Headers', 'Wirespec.Request.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_3(this));
433
439
  var tmp_4 = Spacer_instance.toString();
434
440
  var tmp_5 = Spacer_instance.toString();
435
- var tmp_6 = emit_18(this, _this__u8e3s4.pp_1);
441
+ var tmp_6 = emit_18(this, _this__u8e3s4.np_1);
436
442
  var tmp_7 = Spacer_instance.toString();
437
443
  var tmp_8 = Spacer_instance.toString();
438
444
  var tmp_9 = Spacer_instance.toString();
@@ -448,42 +454,37 @@ function emit_13(_this__u8e3s4, endpoint) {
448
454
  var tmp_19 = Spacer_instance.toString();
449
455
  var tmp_20 = Spacer_instance.toString();
450
456
  var tmp_21 = Spacer_instance.toString();
451
- var tmp_22 = emit_18(this, _this__u8e3s4.pp_1);
457
+ var tmp_22 = emit_18(this, _this__u8e3s4.np_1);
452
458
  var tmp_23 = Spacer_instance.toString();
453
459
  var tmp_24 = Spacer_instance.toString();
454
460
  var tmp_25 = Spacer_instance.toString();
455
461
  var tmp_26 = Spacer_instance.toString();
456
462
  var tmp_27 = Spacer_instance.toString();
457
463
  var tmp_28 = paramList(_this__u8e3s4, endpoint);
458
- return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.hp_1.b3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
464
+ return trimMargin('\n |@dataclass\n |class Request(Wirespec.Request[' + tmp + ']):\n |' + tmp_1 + '\n |' + tmp_2 + '\n |' + tmp_3 + '\n |\n |' + tmp_4 + '@property\n |' + tmp_5 + 'def body(self) -> ' + tmp_6 + ':\n |' + tmp_7 + tmp_8 + 'return self._body\n |\n |' + tmp_9 + '@property\n |' + tmp_10 + 'def path(self) -> Path:\n |' + tmp_11 + tmp_12 + 'return self._path\n |\n |' + tmp_13 + '@property\n |' + tmp_14 + 'def queries(self) -> Queries:\n |' + tmp_15 + tmp_16 + 'return self._queries\n |\n |' + tmp_17 + '@property\n |' + tmp_18 + 'def headers(self) -> Headers:\n |' + tmp_19 + tmp_20 + 'return self._headers\n |\n |' + tmp_21 + '_body: ' + tmp_22 + '\n |' + tmp_23 + '_headers: Headers\n |' + tmp_24 + '_queries: Queries\n |' + tmp_25 + '_path: Path\n |' + tmp_26 + 'method: Wirespec.Method = Wirespec.Method.' + endpoint.fp_1.a3_1 + '\n |\n |' + tmp_27 + 'def __init__(self, ' + joinToString(tmp_28, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_4(this)) + '):\n |' + spacer(emitAssignSelf_0(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
459
465
  }
460
- function emit_14(_this__u8e3s4, endpoint) {
461
- var tmp = emit_18(this, _this__u8e3s4.up_1);
462
- var tmp_0 = emitObject$default(this, _this__u8e3s4.tp_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
466
+ function emit_15(_this__u8e3s4, endpoint) {
467
+ var tmp = emit_18(this, _this__u8e3s4.sp_1);
468
+ var tmp_0 = emitObject$default(this, _this__u8e3s4.rp_1, 'Headers', 'Wirespec.Response.Headers', VOID, PythonEndpointDefinitionEmitter$emit$lambda_5(this));
463
469
  var tmp_1 = Spacer_instance.toString();
464
470
  var tmp_2 = Spacer_instance.toString();
465
471
  var tmp_3 = Spacer_instance.toString();
466
472
  var tmp_4 = Spacer_instance.toString();
467
473
  var tmp_5 = Spacer_instance.toString();
468
474
  var tmp_6 = Spacer_instance.toString();
469
- var tmp_7 = emit_18(this, _this__u8e3s4.up_1);
475
+ var tmp_7 = emit_18(this, _this__u8e3s4.sp_1);
470
476
  var tmp_8 = Spacer_instance.toString();
471
477
  var tmp_9 = Spacer_instance.toString();
472
478
  var tmp_10 = Spacer_instance.toString();
473
- var tmp_11 = emit_18(this, _this__u8e3s4.up_1);
479
+ var tmp_11 = emit_18(this, _this__u8e3s4.sp_1);
474
480
  var tmp_12 = Spacer_instance.toString();
475
481
  var tmp_13 = Spacer_instance.toString();
476
482
  var tmp_14 = Spacer_instance.toString();
477
483
  var tmp_15 = paramList_0(_this__u8e3s4);
478
- return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.sp_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.sp_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
484
+ return trimMargin('\n |@dataclass\n |class Response' + _this__u8e3s4.qp_1 + '(Wirespec.Response[' + tmp + ']):\n |' + tmp_0 + '\n |\n |' + tmp_1 + '@property\n |' + tmp_2 + 'def headers(self) -> Headers:\n |' + tmp_3 + tmp_4 + 'return self._headers\n |\n |' + tmp_5 + '@property\n |' + tmp_6 + 'def body(self) -> ' + tmp_7 + ':\n |' + tmp_8 + tmp_9 + 'return self._body\n |\n |' + tmp_10 + '_body: ' + tmp_11 + '\n |' + tmp_12 + '_headers: Headers\n |' + tmp_13 + 'status: int = ' + _this__u8e3s4.qp_1 + '\n |\n |' + tmp_14 + 'def __init__(self, ' + joinToString(tmp_15, ', ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emit$lambda_6(this)) + '):\n |' + spacer(emitAssignSelf_1(this, _this__u8e3s4, endpoint), 2) + '\n |\n ');
479
485
  }
480
486
  initMetadataForInterface(PythonEndpointDefinitionEmitter, 'PythonEndpointDefinitionEmitter', VOID, VOID, [PythonTypeDefinitionEmitter]);
481
- function emit_15(enum_0, module_0) {
482
- var tmp = this.t1w(enum_0.ir_1);
483
- return trimMargin('\n |class ' + tmp + '(str, Enum):\n |' + joinToString(enum_0.jr_1, '\n', VOID, VOID, VOID, VOID, PythonEnumDefinitionEmitter$emit$lambda(this)) + '\n |\n |' + Spacer_instance.toString() + '@property\n |' + Spacer_instance.toString() + 'def label(self) -> str:\n |' + Spacer_instance.sr(2) + 'return self.value\n |\n |' + Spacer_instance.toString() + 'def __str__(self) -> str:\n |' + Spacer_instance.sr(2) + 'return self.value\n ');
484
- }
485
- initMetadataForInterface(PythonEnumDefinitionEmitter, 'PythonEnumDefinitionEmitter', VOID, VOID, [PythonIdentifierEmitter]);
486
- initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonUnionDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonIdentifierEmitter, PythonEndpointDefinitionEmitter, PythonChannelDefinitionEmitter, PythonTypeDefinitionEmitter, PythonEnumDefinitionEmitter]);
487
+ initMetadataForClass(PythonEmitter, 'PythonEmitter', PythonEmitter, LanguageEmitter, [LanguageEmitter, PythonEnumDefinitionEmitter, PythonIdentifierEmitter, PythonTypeDefinitionEmitter, PythonChannelDefinitionEmitter, PythonRefinedTypeDefinitionEmitter, PythonUnionDefinitionEmitter, PythonEndpointDefinitionEmitter]);
487
488
  initMetadataForCompanion(Companion);
488
489
  initMetadataForCompanion(Companion_0);
489
490
  initMetadataForClass(sam$kotlin_Comparator$0_0, 'sam$kotlin_Comparator$0', VOID, VOID, [Comparator, FunctionAdapter]);
@@ -494,23 +495,23 @@ initMetadataForObject(PythonShared, 'PythonShared');
494
495
  function PythonChannelDefinitionEmitter() {
495
496
  }
496
497
  function sam$kotlin_Comparator$0(function_0) {
497
- this.s1x_1 = function_0;
498
+ this.r1x_1 = function_0;
498
499
  }
499
500
  protoOf(sam$kotlin_Comparator$0).qd = function (a, b) {
500
- return this.s1x_1(a, b);
501
+ return this.r1x_1(a, b);
501
502
  };
502
503
  protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
503
504
  return this.qd(a, b);
504
505
  };
505
- protoOf(sam$kotlin_Comparator$0).m3 = function () {
506
- return this.s1x_1;
506
+ protoOf(sam$kotlin_Comparator$0).l3 = function () {
507
+ return this.r1x_1;
507
508
  };
508
509
  protoOf(sam$kotlin_Comparator$0).equals = function (other) {
509
510
  var tmp;
510
511
  if (!(other == null) ? isInterface(other, Comparator) : false) {
511
512
  var tmp_0;
512
513
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
513
- tmp_0 = equals(this.m3(), other.m3());
514
+ tmp_0 = equals(this.l3(), other.l3());
514
515
  } else {
515
516
  tmp_0 = false;
516
517
  }
@@ -521,40 +522,40 @@ protoOf(sam$kotlin_Comparator$0).equals = function (other) {
521
522
  return tmp;
522
523
  };
523
524
  protoOf(sam$kotlin_Comparator$0).hashCode = function () {
524
- return hashCode(this.m3());
525
+ return hashCode(this.l3());
525
526
  };
526
527
  function PythonEmitter$emit$lambda(this$0) {
527
528
  return function (a, b) {
528
529
  // Inline function 'kotlin.comparisons.compareValuesBy' call
529
- var tmp = this$0.z1x(a);
530
- var tmp$ret$1 = this$0.z1x(b);
530
+ var tmp = this$0.y1x(a);
531
+ var tmp$ret$1 = this$0.y1x(b);
531
532
  return compareValues(tmp, tmp$ret$1);
532
533
  };
533
534
  }
534
535
  function emit$emitInit(this$0, def) {
535
- return 'from .' + this$0.yq(def.xq()) + ' import ' + this$0.yq(def.xq());
536
+ return 'from .' + this$0.wq(def.vq()) + ' import ' + this$0.wq(def.vq());
536
537
  }
537
538
  function PythonEmitter(packageName, emitShared) {
538
- packageName = packageName === VOID ? Companion_instance.nr('community.flock.wirespec.generated') : packageName;
539
- emitShared = emitShared === VOID ? Companion_instance_0.io() : emitShared;
539
+ packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
540
+ emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
540
541
  LanguageEmitter.call(this);
541
- this.t1x_1 = packageName;
542
- this.u1x_1 = emitShared;
543
- this.v1x_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
544
- this.w1x_1 = FileExtension_Python_getInstance();
545
- this.x1x_1 = PythonShared_instance;
546
- this.y1x_1 = '#';
547
- }
548
- protoOf(PythonEmitter).gq = function () {
542
+ this.s1x_1 = packageName;
543
+ this.t1x_1 = emitShared;
544
+ this.u1x_1 = 'import re\n\nfrom abc import abstractmethod\nfrom dataclasses import dataclass\nfrom typing import List, Optional\nfrom enum import Enum\n\nfrom ..wirespec import T, Wirespec\n';
545
+ this.v1x_1 = FileExtension_Python_getInstance();
546
+ this.w1x_1 = PythonShared_instance;
547
+ this.x1x_1 = '#';
548
+ }
549
+ protoOf(PythonEmitter).eq = function () {
550
+ return this.v1x_1;
551
+ };
552
+ protoOf(PythonEmitter).t1v = function () {
549
553
  return this.w1x_1;
550
554
  };
551
- protoOf(PythonEmitter).u1v = function () {
555
+ protoOf(PythonEmitter).fq = function () {
552
556
  return this.x1x_1;
553
557
  };
554
- protoOf(PythonEmitter).hq = function () {
555
- return this.y1x_1;
556
- };
557
- protoOf(PythonEmitter).z1x = function (definition) {
558
+ protoOf(PythonEmitter).y1x = function (definition) {
558
559
  var tmp;
559
560
  if (definition instanceof Enum) {
560
561
  tmp = 1;
@@ -583,21 +584,21 @@ protoOf(PythonEmitter).z1x = function (definition) {
583
584
  }
584
585
  return tmp;
585
586
  };
586
- protoOf(PythonEmitter).vq = function (module_0, logger) {
587
+ protoOf(PythonEmitter).tq = function (module_0, logger) {
587
588
  // Inline function 'kotlin.collections.sortedBy' call
588
- var this_0 = new NonEmptyList(module_0.fq_1);
589
+ var this_0 = new NonEmptyList(module_0.dq_1);
589
590
  // Inline function 'kotlin.comparisons.compareBy' call
590
591
  var tmp = PythonEmitter$emit$lambda(this);
591
592
  var tmp$ret$0 = new sam$kotlin_Comparator$0(tmp);
592
593
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
593
594
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
594
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).am_1;
595
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
595
596
  // Inline function 'kotlin.let' call
596
- var it = protoOf(LanguageEmitter).vq.call(this, module_0.yu(VOID, statements), logger);
597
- var init = new Emitted(this.t1x_1.qr() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
598
- var tmp_1 = this.t1x_1.qr() + 'endpoint/' + '__init__';
597
+ var it = protoOf(LanguageEmitter).tq.call(this, module_0.wu(VOID, statements), logger);
598
+ var init = new Emitted(this.s1x_1.or() + '__init__', 'from . import model\nfrom . import endpoint\nfrom . import wirespec\n');
599
+ var tmp_1 = this.s1x_1.or() + 'endpoint/' + '__init__';
599
600
  // Inline function 'kotlin.collections.filter' call
600
- var tmp0 = new NonEmptyList(module_0.fq_1);
601
+ var tmp0 = new NonEmptyList(module_0.dq_1);
601
602
  // Inline function 'kotlin.collections.filterTo' call
602
603
  var destination = ArrayList_init_$Create$();
603
604
  var _iterator__ex2g4s = tmp0.t();
@@ -617,9 +618,9 @@ protoOf(PythonEmitter).vq = function (module_0, logger) {
617
618
  destination_0.x(tmp$ret$5);
618
619
  }
619
620
  var initEndpoint = new Emitted(tmp_1, joinToString(destination_0, '\n'));
620
- var tmp_2 = this.t1x_1.qr() + 'model/' + '__init__';
621
+ var tmp_2 = this.s1x_1.or() + 'model/' + '__init__';
621
622
  // Inline function 'kotlin.collections.filter' call
622
- var tmp0_0 = new NonEmptyList(module_0.fq_1);
623
+ var tmp0_0 = new NonEmptyList(module_0.dq_1);
623
624
  // Inline function 'kotlin.collections.filterTo' call
624
625
  var destination_1 = ArrayList_init_$Create$();
625
626
  var _iterator__ex2g4s_1 = tmp0_0.t();
@@ -639,33 +640,33 @@ protoOf(PythonEmitter).vq = function (module_0, logger) {
639
640
  destination_2.x(tmp$ret$11);
640
641
  }
641
642
  var initModel = new Emitted(tmp_2, joinToString(destination_2, '\n'));
642
- var shared = new Emitted(this.t1x_1.qr() + 'wirespec', this.u1v().b1y_1);
643
- return this.u1x_1.jo_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
643
+ var shared = new Emitted(this.s1x_1.or() + 'wirespec', this.t1v().a1y_1);
644
+ return this.t1x_1.ho_1 ? NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), shared) : NonEmptyList__plus_impl_xqmb9(it, init);
644
645
  };
645
- protoOf(PythonEmitter).wq = function (definition, module_0, logger) {
646
- var subPackageName = plus_0(this.t1x_1, definition);
646
+ protoOf(PythonEmitter).uq = function (definition, module_0, logger) {
647
+ var subPackageName = plus_0(this.s1x_1, definition);
647
648
  // Inline function 'kotlin.let' call
648
- var it = protoOf(LanguageEmitter).wq.call(this, definition, module_0, logger);
649
- var tmp = subPackageName.qr() + it.ko_1;
649
+ var it = protoOf(LanguageEmitter).uq.call(this, definition, module_0, logger);
650
+ var tmp = subPackageName.or() + it.io_1;
650
651
  // Inline function 'kotlin.text.trimStart' call
651
- var this_0 = trimMargin('\n |' + this.v1x_1 + '\n |' + it.lo_1 + '\n ');
652
+ var this_0 = trimMargin('\n |' + this.u1x_1 + '\n |' + it.jo_1 + '\n ');
652
653
  var tmp$ret$0 = toString(trimStart(isCharSequence(this_0) ? this_0 : THROW_CCE()));
653
654
  return new Emitted(tmp, tmp$ret$0);
654
655
  };
655
656
  function emitToRawRequest($this, _this__u8e3s4, endpoint) {
656
- var tmp = $this.yq(endpoint.gp_1);
657
+ var tmp = $this.wq(endpoint.ep_1);
657
658
  var tmp_0 = Spacer_instance.toString();
658
659
  var tmp_1 = Spacer_instance.toString();
659
660
  var tmp_2 = Spacer_instance.toString();
660
- var tmp_3 = joinToString(endpoint.ip_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
661
+ var tmp_3 = joinToString(endpoint.gp_1, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda($this));
661
662
  var tmp_4 = Spacer_instance.toString();
662
663
  var tmp_5 = Spacer_instance.toString();
663
664
  var tmp_6 = Spacer_instance.toString();
664
665
  var tmp_7 = Spacer_instance.toString();
665
666
  var tmp_8;
666
667
  // Inline function 'kotlin.collections.isNotEmpty' call
667
- if (!endpoint.jp_1.r()) {
668
- tmp_8 = prependIndent(joinToString(endpoint.jp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.sr(3));
668
+ if (!endpoint.hp_1.r()) {
669
+ tmp_8 = prependIndent(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_0($this)), Spacer_instance.qr(3));
669
670
  } else {
670
671
  tmp_8 = '';
671
672
  }
@@ -676,8 +677,8 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
676
677
  var tmp_13 = Spacer_instance.toString();
677
678
  var tmp_14;
678
679
  // Inline function 'kotlin.collections.isNotEmpty' call
679
- if (!endpoint.kp_1.r()) {
680
- tmp_14 = prependIndent(joinToString(endpoint.kp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.sr(3));
680
+ if (!endpoint.ip_1.r()) {
681
+ tmp_14 = prependIndent(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawRequest$lambda_1($this)), Spacer_instance.qr(3));
681
682
  } else {
682
683
  tmp_14 = '';
683
684
  }
@@ -686,48 +687,48 @@ function emitToRawRequest($this, _this__u8e3s4, endpoint) {
686
687
  var tmp_17 = Spacer_instance.toString();
687
688
  var tmp_18 = Spacer_instance.toString();
688
689
  var tmp_19 = Spacer_instance.toString();
689
- var tmp0_safe_receiver = _this__u8e3s4.pp_1;
690
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rp_1;
691
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.e1y(tmp1_safe_receiver);
690
+ var tmp0_safe_receiver = _this__u8e3s4.np_1;
691
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
692
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.d1y(tmp1_safe_receiver);
692
693
  return trimMargin("\n |@staticmethod\n |def to_raw_request(serialization: Wirespec.Serializer, request: '" + tmp + ".Request') -> Wirespec.RawRequest:\n |" + tmp_0 + 'return Wirespec.RawRequest(\n |' + tmp_1 + tmp_2 + 'path = [' + tmp_3 + '],\n |' + tmp_4 + tmp_5 + 'method = request.method.value,\n |' + tmp_6 + tmp_7 + 'queries = {\n |' + tmp_9 + '\n |' + tmp_10 + tmp_11 + '},\n |' + tmp_12 + tmp_13 + 'headers = {\n |' + tmp_15 + '\n |' + tmp_16 + tmp_17 + '},\n |' + tmp_18 + tmp_19 + 'body = serialization.serialize(request.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),\n |' + Spacer_instance.toString() + ')\n |\n ');
693
694
  }
694
695
  function emitFromRawRequest($this, _this__u8e3s4, endpoint) {
695
- return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.yq(endpoint.gp_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.yq(endpoint.gp_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
696
+ return trimMargin("\n |@staticmethod\n |def from_raw_request(serialization: Wirespec.Deserializer, request: Wirespec.RawRequest) -> '" + $this.wq(endpoint.ep_1) + ".Request':\n |" + Spacer_instance.toString() + 'return ' + $this.wq(endpoint.ep_1) + '.Request' + emitDeserializedParams($this, _this__u8e3s4, endpoint) + '\n |\n ');
696
697
  }
697
698
  function emitDeserializedParams($this, _this__u8e3s4, endpoint) {
698
699
  var tmp = get_indexedPathParams(endpoint);
699
700
  var tmp_0 = orNull(joinToString(tmp, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda($this)));
700
- var tmp_1 = orNull(joinToString(endpoint.jp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
701
- var tmp_2 = orNull(joinToString(endpoint.kp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
702
- var tmp0_safe_receiver = _this__u8e3s4.pp_1;
701
+ var tmp_1 = orNull(joinToString(endpoint.hp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_0($this)));
702
+ var tmp_2 = orNull(joinToString(endpoint.ip_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1($this)));
703
+ var tmp0_safe_receiver = _this__u8e3s4.np_1;
703
704
  var tmp_3;
704
705
  if (tmp0_safe_receiver == null) {
705
706
  tmp_3 = null;
706
707
  } else {
707
708
  // Inline function 'kotlin.let' call
708
- tmp_3 = Spacer_instance.sr(3) + 'body = serialization.deserialize(request.body, ' + $this.e1y(tmp0_safe_receiver.rp_1) + '),';
709
+ tmp_3 = Spacer_instance.qr(3) + 'body = serialization.deserialize(request.body, ' + $this.d1y(tmp0_safe_receiver.pp_1) + '),';
709
710
  }
710
711
  // Inline function 'kotlin.let' call
711
712
  var it = joinToString(listOfNotNull([tmp_0, tmp_1, tmp_2, tmp_3]), ',\n');
712
713
  return isBlank(it) ? '()' : '(\n' + it + '\n)';
713
714
  }
714
715
  function emitResponseUnion($this, _this__u8e3s4) {
715
- return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.mp_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
716
+ return trimMargin('\n |Response = ' + joinToString(_this__u8e3s4.kp_1, ' | ', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitResponseUnion$lambda) + '\n |\n ');
716
717
  }
717
718
  function emitHandleClass($this, _this__u8e3s4) {
718
- return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.gp_1.n1() + "(self, req: '" + $this.yq(_this__u8e3s4.gp_1) + ".Request') -> '" + $this.yq(_this__u8e3s4.gp_1) + ".Response': pass\n |\n ");
719
+ return trimMargin('\n |class Handler(Wirespec.Endpoint.Handler):\n |' + Spacer_instance.toString() + '@abstractmethod\n |' + Spacer_instance.toString() + 'def ' + _this__u8e3s4.ep_1.l1() + "(self, req: '" + $this.wq(_this__u8e3s4.ep_1) + ".Request') -> '" + $this.wq(_this__u8e3s4.ep_1) + ".Response': pass\n |\n ");
719
720
  }
720
721
  function emitConvertClass($this, _this__u8e3s4) {
721
- return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.lp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.lp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
722
+ return trimMargin('\n |class Convert(Wirespec.Endpoint.Convert[Request, Response]):\n |' + spacer(emitToRawRequest($this, first(_this__u8e3s4.jp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawRequest($this, first(_this__u8e3s4.jp_1), _this__u8e3s4), 1) + '\n |' + spacer(emitToRawResponse($this, _this__u8e3s4), 1) + '\n |' + spacer(emitFromRawResponse($this, _this__u8e3s4), 1) + '\n |\n ');
722
723
  }
723
724
  function emit_16($this, _this__u8e3s4) {
724
- return $this.yq(_this__u8e3s4.lq_1) + ': ' + $this.zp(_this__u8e3s4.mq_1);
725
+ return $this.wq(_this__u8e3s4.jq_1) + ': ' + $this.xp(_this__u8e3s4.kq_1);
725
726
  }
726
727
  function emitAssignSelf($this, _this__u8e3s4) {
727
- return $this.yq(_this__u8e3s4.lq_1) + ' = ' + $this.yq(_this__u8e3s4.lq_1);
728
+ return $this.wq(_this__u8e3s4.jq_1) + ' = ' + $this.wq(_this__u8e3s4.jq_1);
728
729
  }
729
730
  function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
730
- var tmp = $this.yq(endpoint.gp_1);
731
+ var tmp = $this.wq(endpoint.ep_1);
731
732
  // Inline function 'kotlin.collections.filter' call
732
733
  var tmp0 = paramList(_this__u8e3s4, endpoint);
733
734
  // Inline function 'kotlin.collections.filterTo' call
@@ -735,13 +736,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
735
736
  var _iterator__ex2g4s = tmp0.t();
736
737
  while (_iterator__ex2g4s.u()) {
737
738
  var element = _iterator__ex2g4s.v();
738
- if (element.kq_1.equals(ParamType_PATH_getInstance())) {
739
+ if (element.iq_1.equals(ParamType_PATH_getInstance())) {
739
740
  destination.x(element);
740
741
  }
741
742
  }
742
743
  var tmp_0 = destination;
743
744
  var tmp_1 = joinToString(tmp_0, VOID, VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda($this));
744
- var tmp_2 = $this.yq(endpoint.gp_1);
745
+ var tmp_2 = $this.wq(endpoint.ep_1);
745
746
  // Inline function 'kotlin.collections.filter' call
746
747
  var tmp0_0 = paramList(_this__u8e3s4, endpoint);
747
748
  // Inline function 'kotlin.collections.filterTo' call
@@ -749,13 +750,13 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
749
750
  var _iterator__ex2g4s_0 = tmp0_0.t();
750
751
  while (_iterator__ex2g4s_0.u()) {
751
752
  var element_0 = _iterator__ex2g4s_0.v();
752
- if (element_0.kq_1.equals(ParamType_QUERY_getInstance())) {
753
+ if (element_0.iq_1.equals(ParamType_QUERY_getInstance())) {
753
754
  destination_0.x(element_0);
754
755
  }
755
756
  }
756
757
  var tmp_3 = destination_0;
757
758
  var tmp_4 = spacer(joinToString(tmp_3, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_0($this)), 1);
758
- var tmp_5 = $this.yq(endpoint.gp_1);
759
+ var tmp_5 = $this.wq(endpoint.ep_1);
759
760
  // Inline function 'kotlin.collections.filter' call
760
761
  var tmp0_1 = paramList(_this__u8e3s4, endpoint);
761
762
  // Inline function 'kotlin.collections.filterTo' call
@@ -763,14 +764,14 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
763
764
  var _iterator__ex2g4s_1 = tmp0_1.t();
764
765
  while (_iterator__ex2g4s_1.u()) {
765
766
  var element_1 = _iterator__ex2g4s_1.v();
766
- if (element_1.kq_1.equals(ParamType_HEADER_getInstance())) {
767
+ if (element_1.iq_1.equals(ParamType_HEADER_getInstance())) {
767
768
  destination_1.x(element_1);
768
769
  }
769
770
  }
770
771
  var tmp_6 = destination_1;
771
772
  var tmp_7 = spacer(joinToString(tmp_6, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_1($this)), 1);
772
773
  var tmp_8;
773
- if (_this__u8e3s4.pp_1 == null) {
774
+ if (_this__u8e3s4.np_1 == null) {
774
775
  tmp_8 = null;
775
776
  } else {
776
777
  // Inline function 'kotlin.let' call
@@ -780,7 +781,7 @@ function emitAssignSelf_0($this, _this__u8e3s4, endpoint) {
780
781
  return trimMargin('\n |self._path = ' + tmp + '.Request.Path(' + tmp_1 + ')\n |self._queries =' + tmp_2 + '.Request.Queries(' + tmp_4 + ')\n |self._headers = ' + tmp_5 + '.Request.Headers(' + tmp_7 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
781
782
  }
782
783
  function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
783
- var tmp = $this.yq(endpoint.gp_1);
784
+ var tmp = $this.wq(endpoint.ep_1);
784
785
  // Inline function 'kotlin.collections.filter' call
785
786
  var tmp0 = paramList_0(_this__u8e3s4);
786
787
  // Inline function 'kotlin.collections.filterTo' call
@@ -788,35 +789,35 @@ function emitAssignSelf_1($this, _this__u8e3s4, endpoint) {
788
789
  var _iterator__ex2g4s = tmp0.t();
789
790
  while (_iterator__ex2g4s.u()) {
790
791
  var element = _iterator__ex2g4s.v();
791
- if (element.kq_1.equals(ParamType_HEADER_getInstance())) {
792
+ if (element.iq_1.equals(ParamType_HEADER_getInstance())) {
792
793
  destination.x(element);
793
794
  }
794
795
  }
795
796
  var tmp_0 = destination;
796
797
  var tmp_1 = spacer(joinToString(tmp_0, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2($this)), 1);
797
798
  var tmp_2;
798
- if (_this__u8e3s4.up_1 == null) {
799
+ if (_this__u8e3s4.sp_1 == null) {
799
800
  tmp_2 = null;
800
801
  } else {
801
802
  // Inline function 'kotlin.let' call
802
803
  tmp_2 = 'body';
803
804
  }
804
805
  var tmp1_elvis_lhs = tmp_2;
805
- return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.sp_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
806
+ return trimMargin('\n |self._headers = ' + tmp + '.Response' + _this__u8e3s4.qp_1 + '.Headers(' + tmp_1 + ')\n |self._body = ' + (tmp1_elvis_lhs == null ? 'None' : tmp1_elvis_lhs) + '\n ');
806
807
  }
807
808
  function emitDeserialized($this, _this__u8e3s4) {
808
- return Spacer_instance.sr(3) + $this.yq(_this__u8e3s4.ne_1.np_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.me_1 + '], ' + $this.e1y(_this__u8e3s4.ne_1.op_1) + ')';
809
+ return Spacer_instance.qr(3) + $this.wq(_this__u8e3s4.me_1.lp_1) + ' = serialization.deserialize(request.path[' + _this__u8e3s4.le_1 + '], ' + $this.d1y(_this__u8e3s4.me_1.mp_1) + ')';
809
810
  }
810
811
  function emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive) {
811
812
  var tmp;
812
813
  if (caseSensitive) {
813
- tmp = Spacer_instance.sr(spaces) + $this.yq(_this__u8e3s4.cp_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.cp_1.n1() + '"), ' + $this.e1y(_this__u8e3s4.dp_1) + ')';
814
+ tmp = Spacer_instance.qr(spaces) + $this.wq(_this__u8e3s4.ap_1) + ' = serialization.deserialize_param(' + type + '.' + fields + '.get("' + _this__u8e3s4.ap_1.l1() + '"), ' + $this.d1y(_this__u8e3s4.bp_1) + ')';
814
815
  } else {
815
- var tmp_0 = Spacer_instance.sr(spaces);
816
- var tmp_1 = $this.yq(_this__u8e3s4.cp_1);
816
+ var tmp_0 = Spacer_instance.qr(spaces);
817
+ var tmp_1 = $this.wq(_this__u8e3s4.ap_1);
817
818
  // Inline function 'kotlin.text.lowercase' call
818
819
  // Inline function 'kotlin.js.asDynamic' call
819
- tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.cp_1.n1().toLowerCase() + '"), None), ' + $this.e1y(_this__u8e3s4.dp_1) + ')';
820
+ tmp = tmp_0 + tmp_1 + ' = serialization.deserialize_param(next((v for k, v in ' + type + '.' + fields + '.items() if k.lower() == "' + _this__u8e3s4.ap_1.l1().toLowerCase() + '"), None), ' + $this.d1y(_this__u8e3s4.bp_1) + ')';
820
821
  }
821
822
  return tmp;
822
823
  }
@@ -826,73 +827,73 @@ function emitDeserializedParams$default($this, _this__u8e3s4, type, fields, spac
826
827
  return emitDeserializedParams_0($this, _this__u8e3s4, type, fields, spaces, caseSensitive);
827
828
  }
828
829
  function emitToRawResponse($this, _this__u8e3s4) {
829
- var tmp = $this.yq(_this__u8e3s4.gp_1);
830
+ var tmp = $this.wq(_this__u8e3s4.ep_1);
830
831
  var tmp_0 = Spacer_instance.toString();
831
- var tmp_1 = distinctByStatus(_this__u8e3s4.mp_1);
832
+ var tmp_1 = distinctByStatus(_this__u8e3s4.kp_1);
832
833
  return trimMargin("\n |@staticmethod\n |def to_raw_response(serialization: Wirespec.Serializer, response: '" + tmp + ".Response') -> Wirespec.RawResponse:\n |" + tmp_0 + 'match response:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitToRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.toString() + Spacer_instance.toString() + 'case _:\n |' + Spacer_instance.toString() + Spacer_instance.toString() + Spacer_instance.toString() + 'raise Exception("Cannot match response with status: " + str(response.status))\n ');
833
834
  }
834
835
  function emitFromRawResponse($this, _this__u8e3s4) {
835
- var tmp = $this.yq(_this__u8e3s4.gp_1);
836
+ var tmp = $this.wq(_this__u8e3s4.ep_1);
836
837
  var tmp_0 = Spacer_instance.toString();
837
838
  // Inline function 'kotlin.collections.filter' call
838
- var tmp0 = distinctByStatus(_this__u8e3s4.mp_1);
839
+ var tmp0 = distinctByStatus(_this__u8e3s4.kp_1);
839
840
  // Inline function 'kotlin.collections.filterTo' call
840
841
  var destination = ArrayList_init_$Create$();
841
842
  var _iterator__ex2g4s = tmp0.t();
842
843
  while (_iterator__ex2g4s.u()) {
843
844
  var element = _iterator__ex2g4s.v();
844
- if (Companion_instance_1.tq(element.sp_1)) {
845
+ if (Companion_instance_1.rq(element.qp_1)) {
845
846
  destination.x(element);
846
847
  }
847
848
  }
848
849
  var tmp_1 = destination;
849
- return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.sr(2) + 'case _:\n |' + Spacer_instance.sr(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
850
+ return trimMargin("\n |@staticmethod\n |def from_raw_response(serialization: Wirespec.Deserializer, response: Wirespec.RawResponse) -> '" + tmp + ".Response':\n |" + tmp_0 + 'match response.status_code:\n |' + spacer(joinToString(tmp_1, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitFromRawResponse$lambda($this, _this__u8e3s4)), 2) + '\n |' + Spacer_instance.qr(2) + 'case _:\n |' + Spacer_instance.qr(3) + 'raise Exception("Cannot match response with status: " + str(response.status_code))\n |\n ');
850
851
  }
851
852
  function emitDeserialized_0($this, _this__u8e3s4, endpoint) {
852
- var tmp = 'case ' + _this__u8e3s4.sp_1 + ':';
853
- var tmp_0 = Spacer_instance.toString() + 'return ' + $this.yq(endpoint.gp_1) + '.Response' + _this__u8e3s4.sp_1 + '(';
854
- var tmp_1 = Spacer_instance.sr(2);
855
- var tmp0_safe_receiver = _this__u8e3s4.up_1;
856
- var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.rp_1;
857
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.e1y(tmp1_safe_receiver);
853
+ var tmp = 'case ' + _this__u8e3s4.qp_1 + ':';
854
+ var tmp_0 = Spacer_instance.toString() + 'return ' + $this.wq(endpoint.ep_1) + '.Response' + _this__u8e3s4.qp_1 + '(';
855
+ var tmp_1 = Spacer_instance.qr(2);
856
+ var tmp0_safe_receiver = _this__u8e3s4.sp_1;
857
+ var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.pp_1;
858
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.d1y(tmp1_safe_receiver);
858
859
  var tmp_2 = tmp_1 + 'body = serialization.deserialize(response.body, ' + (tmp2_elvis_lhs == null ? 'type(None)' : tmp2_elvis_lhs) + '),';
859
- return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.tp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
860
+ return joinToString(listOfNotNull([tmp, tmp_0, tmp_2, orNull(joinToString(_this__u8e3s4.rp_1, ',\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitDeserialized$lambda($this))), Spacer_instance.toString() + ')']), '\n');
860
861
  }
861
862
  function emitSerialized($this, _this__u8e3s4, endpoint) {
862
- var tmp = $this.yq(endpoint.gp_1);
863
- var tmp_0 = Spacer_instance.sr(1);
864
- var tmp_1 = Spacer_instance.sr(2);
865
- var tmp_2 = Spacer_instance.sr(2);
863
+ var tmp = $this.wq(endpoint.ep_1);
864
+ var tmp_0 = Spacer_instance.qr(1);
865
+ var tmp_1 = Spacer_instance.qr(2);
866
+ var tmp_2 = Spacer_instance.qr(2);
866
867
  var tmp_3;
867
868
  // Inline function 'kotlin.collections.isNotEmpty' call
868
- if (!_this__u8e3s4.tp_1.r()) {
869
- tmp_3 = joinToString(_this__u8e3s4.tp_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
869
+ if (!_this__u8e3s4.rp_1.r()) {
870
+ tmp_3 = joinToString(_this__u8e3s4.rp_1, ', ', '{', '}', VOID, VOID, PythonEndpointDefinitionEmitter$emitSerialized$lambda($this));
870
871
  } else {
871
872
  tmp_3 = '{}';
872
873
  }
873
874
  var tmp_4 = tmp_3;
874
- var tmp_5 = Spacer_instance.sr(2);
875
- var tmp0_safe_receiver = _this__u8e3s4.up_1;
875
+ var tmp_5 = Spacer_instance.qr(2);
876
+ var tmp0_safe_receiver = _this__u8e3s4.sp_1;
876
877
  var tmp_6;
877
878
  if (tmp0_safe_receiver == null) {
878
879
  tmp_6 = null;
879
880
  } else {
880
881
  // Inline function 'kotlin.let' call
881
- tmp_6 = 'serialization.serialize(response.body, ' + $this.e1y(tmp0_safe_receiver.rp_1) + ')';
882
+ tmp_6 = 'serialization.serialize(response.body, ' + $this.d1y(tmp0_safe_receiver.pp_1) + ')';
882
883
  }
883
884
  var tmp1_elvis_lhs = tmp_6;
884
- return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.sp_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.sr(1) + ')\n ');
885
+ return trimMargin('\n |case ' + tmp + '.Response' + _this__u8e3s4.qp_1 + '():\n |' + tmp_0 + 'return Wirespec.RawResponse(\n |' + tmp_1 + 'status_code = response.status,\n |' + tmp_2 + 'headers = ' + tmp_4 + ',\n |' + tmp_5 + 'body = ' + (tmp1_elvis_lhs == null ? 'type(None)' : tmp1_elvis_lhs) + ',\n |' + Spacer_instance.qr(1) + ')\n ');
885
886
  }
886
887
  function emitSerializedParams($this, _this__u8e3s4, type, fields) {
887
- return '"' + _this__u8e3s4.cp_1.n1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.yq(_this__u8e3s4.cp_1) + ', ' + $this.e1y(_this__u8e3s4.dp_1) + ')';
888
+ return '"' + _this__u8e3s4.ap_1.l1() + '": serialization.serialize_param(' + type + '.' + fields + '.' + $this.wq(_this__u8e3s4.ap_1) + ', ' + $this.d1y(_this__u8e3s4.bp_1) + ')';
888
889
  }
889
890
  function emitObject($this, _this__u8e3s4, name, extends_0, spaces, block) {
890
891
  var tmp;
891
892
  if (_this__u8e3s4.r()) {
892
- tmp = trimMargin('\n |' + Spacer_instance.sr(spaces) + '@dataclass\n |' + Spacer_instance.sr(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
893
+ tmp = trimMargin('\n |' + Spacer_instance.qr(spaces) + '@dataclass\n |' + Spacer_instance.qr(spaces) + 'class ' + name + ' (' + extends_0 + '): pass\n ');
893
894
  } else {
894
- var tmp_0 = Spacer_instance.sr(spaces);
895
- var tmp_1 = Spacer_instance.sr(spaces);
895
+ var tmp_0 = Spacer_instance.qr(spaces);
896
+ var tmp_1 = Spacer_instance.qr(spaces);
896
897
  tmp = trimMargin('\n |' + tmp_0 + '@dataclass\n |' + tmp_1 + 'class ' + name + ' (' + extends_0 + '):\n |' + joinToString(_this__u8e3s4, '\n', VOID, VOID, VOID, VOID, PythonEndpointDefinitionEmitter$emitObject$lambda(spaces, block)) + '\n ');
897
898
  }
898
899
  return tmp;
@@ -902,21 +903,21 @@ function emitObject$default($this, _this__u8e3s4, name, extends_0, spaces, block
902
903
  return emitObject($this, _this__u8e3s4, name, extends_0, spaces, block);
903
904
  }
904
905
  function emit_17($this, _this__u8e3s4) {
905
- return $this.yq(_this__u8e3s4.np_1) + ': ' + $this.zp(_this__u8e3s4.op_1);
906
+ return $this.wq(_this__u8e3s4.lp_1) + ': ' + $this.xp(_this__u8e3s4.mp_1);
906
907
  }
907
908
  function emit_18($this, _this__u8e3s4) {
908
- var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.rp_1;
909
- var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.zp(tmp1_safe_receiver);
909
+ var tmp1_safe_receiver = _this__u8e3s4 == null ? null : _this__u8e3s4.pp_1;
910
+ var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : $this.xp(tmp1_safe_receiver);
910
911
  return tmp2_elvis_lhs == null ? 'None' : tmp2_elvis_lhs;
911
912
  }
912
913
  function PythonEndpointDefinitionEmitter$emit$lambda(this$0) {
913
914
  return function (it) {
914
- return this$0.f1y(it);
915
+ return this$0.e1y(it);
915
916
  };
916
917
  }
917
918
  function PythonEndpointDefinitionEmitter$emit$lambda_0(this$0, $endpoint) {
918
919
  return function (it) {
919
- return this$0.d1y(it, $endpoint);
920
+ return this$0.c1y(it, $endpoint);
920
921
  };
921
922
  }
922
923
  function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
@@ -926,12 +927,12 @@ function PythonEndpointDefinitionEmitter$emit$lambda_1(this$0) {
926
927
  }
927
928
  function PythonEndpointDefinitionEmitter$emit$lambda_2(this$0) {
928
929
  return function (it) {
929
- return this$0.yp(it);
930
+ return this$0.wp(it);
930
931
  };
931
932
  }
932
933
  function PythonEndpointDefinitionEmitter$emit$lambda_3(this$0) {
933
934
  return function (it) {
934
- return this$0.yp(it);
935
+ return this$0.wp(it);
935
936
  };
936
937
  }
937
938
  function PythonEndpointDefinitionEmitter$emit$lambda_4(this$0) {
@@ -943,10 +944,10 @@ function PythonEndpointDefinitionEmitter$emitToRawRequest$lambda(this$0) {
943
944
  return function (it) {
944
945
  var tmp;
945
946
  if (it instanceof Literal) {
946
- tmp = '"' + it.jq_1 + '"';
947
+ tmp = '"' + it.hq_1 + '"';
947
948
  } else {
948
949
  if (it instanceof Param) {
949
- tmp = 'str(request.path.' + this$0.yq(it.np_1) + ')';
950
+ tmp = 'str(request.path.' + this$0.wq(it.lp_1) + ')';
950
951
  } else {
951
952
  noWhenBranchMatchedException();
952
953
  }
@@ -980,7 +981,7 @@ function PythonEndpointDefinitionEmitter$emitDeserializedParams$lambda_1(this$0)
980
981
  };
981
982
  }
982
983
  function PythonEndpointDefinitionEmitter$emitResponseUnion$lambda(it) {
983
- return 'Response' + it.sp_1;
984
+ return 'Response' + it.qp_1;
984
985
  }
985
986
  function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda(this$0) {
986
987
  return function (it) {
@@ -1004,7 +1005,7 @@ function PythonEndpointDefinitionEmitter$emitAssignSelf$lambda_2(this$0) {
1004
1005
  }
1005
1006
  function PythonEndpointDefinitionEmitter$emit$lambda_5(this$0) {
1006
1007
  return function (it) {
1007
- return this$0.yp(it);
1008
+ return this$0.wp(it);
1008
1009
  };
1009
1010
  }
1010
1011
  function PythonEndpointDefinitionEmitter$emit$lambda_6(this$0) {
@@ -1034,7 +1035,7 @@ function PythonEndpointDefinitionEmitter$emitSerialized$lambda(this$0) {
1034
1035
  }
1035
1036
  function PythonEndpointDefinitionEmitter$emitObject$lambda($spaces, $block) {
1036
1037
  return function (it) {
1037
- return Spacer_instance.sr($spaces + 2 | 0) + $block(it);
1038
+ return Spacer_instance.qr($spaces + 2 | 0) + $block(it);
1038
1039
  };
1039
1040
  }
1040
1041
  function PythonEndpointDefinitionEmitter() {
@@ -1063,14 +1064,14 @@ function sanitizeEnum($this, _this__u8e3s4) {
1063
1064
  }
1064
1065
  function PythonEnumDefinitionEmitter$emit$lambda(this$0) {
1065
1066
  return function (it) {
1066
- return Spacer_instance.toString() + this$0.b1w(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1067
+ return Spacer_instance.toString() + this$0.a1w(sanitizeEnum(this$0, it)) + ' = "' + it + '"';
1067
1068
  };
1068
1069
  }
1069
1070
  function PythonEnumDefinitionEmitter() {
1070
1071
  }
1071
1072
  function Companion() {
1072
1073
  Companion_instance_2 = this;
1073
- this.g1y_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1074
+ this.f1y_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1074
1075
  }
1075
1076
  var Companion_instance_2;
1076
1077
  function Companion_getInstance_0() {
@@ -1081,15 +1082,15 @@ function Companion_getInstance_0() {
1081
1082
  function PythonIdentifierEmitter() {
1082
1083
  }
1083
1084
  function _get_sanitizationConfig__sns434($this) {
1084
- var tmp0 = $this.l1y_1;
1085
+ var tmp0 = $this.k1y_1;
1085
1086
  var tmp = KProperty1;
1086
1087
  // Inline function 'kotlin.getValue' call
1087
1088
  getPropertyCallableRef('sanitizationConfig', 1, tmp, PythonIrEmitter$_get_sanitizationConfig_$ref_1q5eai(), null);
1088
- return tmp0.n1();
1089
+ return tmp0.l1();
1089
1090
  }
1090
1091
  function sanitize_0($this, _this__u8e3s4) {
1091
1092
  // Inline function 'kotlin.collections.mapIndexed' call
1092
- var this_0 = split(_this__u8e3s4.n1(), ['.', ' ']);
1093
+ var this_0 = split(_this__u8e3s4.l1(), ['.', ' ']);
1093
1094
  // Inline function 'kotlin.collections.mapIndexedTo' call
1094
1095
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1095
1096
  var index = 0;
@@ -1098,7 +1099,7 @@ function sanitize_0($this, _this__u8e3s4) {
1098
1099
  var item = _iterator__ex2g4s.v();
1099
1100
  var _unary__edvuaz = index;
1100
1101
  index = _unary__edvuaz + 1 | 0;
1101
- var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.qq(item) : item;
1102
+ var tmp$ret$0 = checkIndexOverflow(_unary__edvuaz) > 0 ? Companion_instance_1.oq(item) : item;
1102
1103
  destination.x(tmp$ret$0);
1103
1104
  }
1104
1105
  // Inline function 'kotlin.text.filter' call
@@ -1144,7 +1145,7 @@ function sanitize_0($this, _this__u8e3s4) {
1144
1145
  return tmp_2;
1145
1146
  }
1146
1147
  function sanitizeKeywords_0($this, _this__u8e3s4) {
1147
- return Companion_getInstance_1().o1y_1.h1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1148
+ return Companion_getInstance_1().n1y_1.u1(_this__u8e3s4) ? '_' + _this__u8e3s4 : _this__u8e3s4;
1148
1149
  }
1149
1150
  function sanitizeEnum_0($this, _this__u8e3s4) {
1150
1151
  // Inline function 'kotlin.let' call
@@ -1195,7 +1196,7 @@ function sort($this, definition) {
1195
1196
  return tmp;
1196
1197
  }
1197
1198
  function buildImports($this, wirespecPath) {
1198
- return listOf([new Import('__future__', new Custom_0('annotations')), new RawElement('import re'), new Import('abc', new Custom_0('ABC')), new Import('abc', new Custom_0('abstractmethod')), new Import('dataclasses', new Custom_0('dataclass')), new Import('typing', new Custom_0('Any')), new Import('typing', new Custom_0('Generic')), new Import('typing', new Custom_0('List')), new Import('typing', new Custom_0('Optional')), new RawElement('import enum'), new Import(wirespecPath, new Custom_0('T')), new Import(wirespecPath, new Custom_0('Wirespec')), new Import(wirespecPath, new Custom_0('_raise'))]);
1199
+ return listOf([import_0('__future__', 'annotations'), import_0('', 're'), import_0('abc', 'ABC'), import_0('abc', 'abstractmethod'), import_0('dataclasses', 'dataclass'), import_0('typing', 'Any'), import_0('typing', 'Generic'), import_0('typing', 'List'), import_0('typing', 'Optional'), import_0('', 'enum'), import_0(wirespecPath, 'T'), import_0(wirespecPath, 'Wirespec'), import_0(wirespecPath, '_raise')]);
1199
1200
  }
1200
1201
  function snakeCaseHandlerAndCallMethods($this, _this__u8e3s4) {
1201
1202
  // Inline function 'community.flock.wirespec.ir.core.transform' call
@@ -1203,21 +1204,21 @@ function snakeCaseHandlerAndCallMethods($this, _this__u8e3s4) {
1203
1204
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1204
1205
  var tmp = scope;
1205
1206
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1206
- var this_0 = scope.a1u_1;
1207
+ var this_0 = scope.z1t_1;
1207
1208
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1208
1209
  // Inline function 'kotlin.apply' call
1209
1210
  var this_1 = new TransformerBuilder();
1210
- this_1.f1h(PythonIrEmitter$snakeCaseHandlerAndCallMethods$lambda);
1211
- var tmp$ret$2 = this_1.g1h();
1212
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
1213
- var tmp_0 = scope.a1u_1;
1211
+ this_1.d1h(PythonIrEmitter$snakeCaseHandlerAndCallMethods$lambda);
1212
+ var tmp$ret$2 = this_1.e1h();
1213
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
1214
+ var tmp_0 = scope.z1t_1;
1214
1215
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1215
1216
  }
1216
1217
  function flattenEndpointTypeRefs($this, _this__u8e3s4, endpointName) {
1217
1218
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1218
1219
  var scope = new TransformScope(_this__u8e3s4);
1219
- scope.g1u(PythonIrEmitter$flattenEndpointTypeRefs$lambda(endpointName));
1220
- var tmp = scope.a1u_1;
1220
+ scope.f1u(PythonIrEmitter$flattenEndpointTypeRefs$lambda(endpointName));
1221
+ var tmp = scope.z1t_1;
1221
1222
  return isInterface(tmp, Element) ? tmp : THROW_CCE();
1222
1223
  }
1223
1224
  function addSelfReceiverToClientFields($this, _this__u8e3s4) {
@@ -1228,7 +1229,7 @@ function addSelfReceiverToClientFields($this, _this__u8e3s4) {
1228
1229
  } else {
1229
1230
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1230
1231
  // Inline function 'kotlin.collections.filterIsInstance' call
1231
- var tmp0 = tmp0_safe_receiver.s1m();
1232
+ var tmp0 = tmp0_safe_receiver.v1m();
1232
1233
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1233
1234
  var destination = ArrayList_init_$Create$();
1234
1235
  var _iterator__ex2g4s = tmp0.t();
@@ -1241,7 +1242,7 @@ function addSelfReceiverToClientFields($this, _this__u8e3s4) {
1241
1242
  tmp = firstOrNull_0(destination);
1242
1243
  }
1243
1244
  var struct = tmp;
1244
- var tmp2_safe_receiver = struct == null ? null : struct.h1n_1;
1245
+ var tmp2_safe_receiver = struct == null ? null : struct.g1n_1;
1245
1246
  var tmp_0;
1246
1247
  if (tmp2_safe_receiver == null) {
1247
1248
  tmp_0 = null;
@@ -1252,7 +1253,7 @@ function addSelfReceiverToClientFields($this, _this__u8e3s4) {
1252
1253
  var _iterator__ex2g4s_0 = tmp2_safe_receiver.t();
1253
1254
  while (_iterator__ex2g4s_0.u()) {
1254
1255
  var item = _iterator__ex2g4s_0.v();
1255
- var tmp$ret$3 = item.n1n_1.u1h();
1256
+ var tmp$ret$3 = item.m1n_1.s1h();
1256
1257
  destination_0.x(tmp$ret$3);
1257
1258
  }
1258
1259
  tmp_0 = destination_0;
@@ -1264,8 +1265,8 @@ function addSelfReceiverToClientFields($this, _this__u8e3s4) {
1264
1265
  return _this__u8e3s4;
1265
1266
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1266
1267
  var scope = new TransformScope(_this__u8e3s4);
1267
- scope.j1u(PythonIrEmitter$addSelfReceiverToClientFields$lambda(fieldNames));
1268
- var tmp_1 = scope.a1u_1;
1268
+ scope.i1u(PythonIrEmitter$addSelfReceiverToClientFields$lambda(fieldNames));
1269
+ var tmp_1 = scope.z1t_1;
1269
1270
  return isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1270
1271
  }
1271
1272
  function snakeCaseClientFunctions($this, _this__u8e3s4) {
@@ -1274,20 +1275,20 @@ function snakeCaseClientFunctions($this, _this__u8e3s4) {
1274
1275
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1275
1276
  var tmp = scope;
1276
1277
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1277
- var this_0 = scope.a1u_1;
1278
+ var this_0 = scope.z1t_1;
1278
1279
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1279
1280
  // Inline function 'kotlin.apply' call
1280
1281
  var this_1 = new TransformerBuilder();
1281
- this_1.f1h(PythonIrEmitter$snakeCaseClientFunctions$lambda);
1282
- var tmp$ret$2 = this_1.g1h();
1283
- tmp.a1u_1 = transform(this_0, tmp$ret$2);
1284
- scope.j1u(PythonIrEmitter$snakeCaseClientFunctions$lambda_0);
1285
- var tmp_0 = scope.a1u_1;
1282
+ this_1.d1h(PythonIrEmitter$snakeCaseClientFunctions$lambda);
1283
+ var tmp$ret$2 = this_1.e1h();
1284
+ tmp.z1t_1 = transform(this_0, tmp$ret$2);
1285
+ scope.i1u(PythonIrEmitter$snakeCaseClientFunctions$lambda_0);
1286
+ var tmp_0 = scope.z1t_1;
1286
1287
  return isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1287
1288
  }
1288
1289
  function Companion_0() {
1289
1290
  Companion_instance_3 = this;
1290
- this.o1y_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1291
+ this.n1y_1 = setOf(['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']);
1291
1292
  }
1292
1293
  var Companion_instance_3;
1293
1294
  function Companion_getInstance_1() {
@@ -1296,23 +1297,23 @@ function Companion_getInstance_1() {
1296
1297
  return Companion_instance_3;
1297
1298
  }
1298
1299
  function sam$kotlin_Comparator$0_0(function_0) {
1299
- this.p1y_1 = function_0;
1300
+ this.o1y_1 = function_0;
1300
1301
  }
1301
1302
  protoOf(sam$kotlin_Comparator$0_0).qd = function (a, b) {
1302
- return this.p1y_1(a, b);
1303
+ return this.o1y_1(a, b);
1303
1304
  };
1304
1305
  protoOf(sam$kotlin_Comparator$0_0).compare = function (a, b) {
1305
1306
  return this.qd(a, b);
1306
1307
  };
1307
- protoOf(sam$kotlin_Comparator$0_0).m3 = function () {
1308
- return this.p1y_1;
1308
+ protoOf(sam$kotlin_Comparator$0_0).l3 = function () {
1309
+ return this.o1y_1;
1309
1310
  };
1310
1311
  protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1311
1312
  var tmp;
1312
1313
  if (!(other == null) ? isInterface(other, Comparator) : false) {
1313
1314
  var tmp_0;
1314
1315
  if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
1315
- tmp_0 = equals(this.m3(), other.m3());
1316
+ tmp_0 = equals(this.l3(), other.l3());
1316
1317
  } else {
1317
1318
  tmp_0 = false;
1318
1319
  }
@@ -1323,17 +1324,17 @@ protoOf(sam$kotlin_Comparator$0_0).equals = function (other) {
1323
1324
  return tmp;
1324
1325
  };
1325
1326
  protoOf(sam$kotlin_Comparator$0_0).hashCode = function () {
1326
- return hashCode(this.m3());
1327
+ return hashCode(this.l3());
1327
1328
  };
1328
1329
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda(it) {
1329
1330
  return '_' + it;
1330
1331
  }
1331
1332
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0(name) {
1332
- var sanitized = name.p1h_1.a1() > 1 ? name.t1l() : name.u1h();
1333
+ var sanitized = name.n1h_1.a1() > 1 ? name.r1l() : name.s1h();
1333
1334
  return new Name(listOf_0(sanitized));
1334
1335
  }
1335
1336
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1(name) {
1336
- return new Name(listOf_0(name.t1l()));
1337
+ return new Name(listOf_0(name.r1l()));
1337
1338
  }
1338
1339
  function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_2(it) {
1339
1340
  return it;
@@ -1342,20 +1343,20 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1342
1343
  return function (stmt, tr) {
1343
1344
  var tmp;
1344
1345
  if (stmt instanceof ConstructorStatement) {
1345
- var tmp_0 = tr.s1t(stmt.m1m_1);
1346
+ var tmp_0 = tr.r1t(stmt.p1m_1);
1346
1347
  // Inline function 'kotlin.collections.map' call
1347
- var this_0 = stmt.n1m_1;
1348
+ var this_0 = stmt.q1m_1;
1348
1349
  // Inline function 'kotlin.collections.mapTo' call
1349
1350
  var destination = ArrayList_init_$Create$_0(this_0.a1());
1350
1351
  // Inline function 'kotlin.collections.iterator' call
1351
- var _iterator__ex2g4s = this_0.l1().t();
1352
+ var _iterator__ex2g4s = this_0.j1().t();
1352
1353
  while (_iterator__ex2g4s.u()) {
1353
1354
  var item = _iterator__ex2g4s.v();
1354
1355
  // Inline function 'kotlin.collections.component1' call
1355
- var k = item.m1();
1356
+ var k = item.k1();
1356
1357
  // Inline function 'kotlin.collections.component2' call
1357
- var v = item.n1();
1358
- var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.v1t(v));
1358
+ var v = item.l1();
1359
+ var tmp$ret$3 = to(sanitizeFieldName(_get_sanitizationConfig__sns434(this$0), k), tr.u1t(v));
1359
1360
  destination.x(tmp$ret$3);
1360
1361
  }
1361
1362
  tmp = new ConstructorStatement(tmp_0, toMap(destination));
@@ -1367,7 +1368,7 @@ function PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_3(this$0) {
1367
1368
  }
1368
1369
  function PythonIrEmitter$sanitizationConfig$delegate$lambda(this$0) {
1369
1370
  return function () {
1370
- var tmp = Companion_getInstance_1().o1y_1;
1371
+ var tmp = Companion_getInstance_1().n1y_1;
1371
1372
  var tmp_0 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda;
1372
1373
  var tmp_1 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_0;
1373
1374
  var tmp_2 = PythonIrEmitter$sanitizationConfig$delegate$lambda$lambda_1;
@@ -1381,11 +1382,11 @@ function PythonIrEmitter$_get_sanitizationConfig_$ref_1q5eai() {
1381
1382
  };
1382
1383
  }
1383
1384
  function PythonIrEmitter$shared$1(this$0) {
1384
- this.q1y_1 = 'shared';
1385
- this.r1y_1 = this$0.m1y_1 + generatePython(convert(new Shared(this.q1y_1)));
1385
+ this.p1y_1 = 'shared';
1386
+ this.q1y_1 = this$0.l1y_1 + generatePython(convert(new Shared(this.p1y_1)));
1386
1387
  }
1387
- protoOf(PythonIrEmitter$shared$1).s1w = function () {
1388
- return this.r1y_1;
1388
+ protoOf(PythonIrEmitter$shared$1).r1w = function () {
1389
+ return this.q1y_1;
1389
1390
  };
1390
1391
  function PythonIrEmitter$emit$lambda(this$0) {
1391
1392
  return function (a, b) {
@@ -1398,7 +1399,7 @@ function PythonIrEmitter$emit$lambda(this$0) {
1398
1399
  };
1399
1400
  }
1400
1401
  function emit$emitInitImport(this$0, def) {
1401
- return new Import('.' + sanitize_0(this$0, def.xq()), new Custom_0(sanitize_0(this$0, def.xq())));
1402
+ return import_0('.' + sanitize_0(this$0, def.vq()), sanitize_0(this$0, def.vq()));
1402
1403
  }
1403
1404
  function PythonIrEmitter$emit$lambda$lambda($fieldNames) {
1404
1405
  return function (s, t) {
@@ -1406,17 +1407,17 @@ function PythonIrEmitter$emit$lambda$lambda($fieldNames) {
1406
1407
  var tmp_0;
1407
1408
  var tmp_1;
1408
1409
  if (s instanceof FieldCall) {
1409
- tmp_1 = s.j1p_1 == null;
1410
+ tmp_1 = s.i1p_1 == null;
1410
1411
  } else {
1411
1412
  tmp_1 = false;
1412
1413
  }
1413
1414
  if (tmp_1) {
1414
- tmp_0 = $fieldNames.h1(s.k1p_1.t1l());
1415
+ tmp_0 = $fieldNames.u1(s.j1p_1.r1l());
1415
1416
  } else {
1416
1417
  tmp_0 = false;
1417
1418
  }
1418
1419
  if (tmp_0) {
1419
- tmp = new FieldCall(new VariableReference(Companion_getInstance().o1h('self')), s.k1p_1);
1420
+ tmp = new FieldCall(new VariableReference(Companion_getInstance().m1h('self')), s.j1p_1);
1420
1421
  } else {
1421
1422
  tmp = transformChildren(s, t);
1422
1423
  }
@@ -1428,12 +1429,12 @@ function PythonIrEmitter$emit$lambda_0($fieldNames) {
1428
1429
  var tmp;
1429
1430
  if (element instanceof Function) {
1430
1431
  var tmp_0;
1431
- if (element.v1j_1.equals(Companion_getInstance().o1h('validate'))) {
1432
+ if (element.t1j_1.equals(Companion_getInstance().m1h('validate'))) {
1432
1433
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1433
- var this_0 = element.d1k(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().o1h('self'), new Custom_0(''))));
1434
+ var this_0 = element.b1k(VOID, VOID, listOf_0(new Parameter(Companion_getInstance().m1h('self'), new Custom_0(''))));
1434
1435
  var scope = new TransformScope(this_0);
1435
- scope.j1u(PythonIrEmitter$emit$lambda$lambda($fieldNames));
1436
- var tmp_1 = scope.a1u_1;
1436
+ scope.i1u(PythonIrEmitter$emit$lambda$lambda($fieldNames));
1437
+ var tmp_1 = scope.z1t_1;
1437
1438
  tmp_0 = isInterface(tmp_1, Element) ? tmp_1 : THROW_CCE();
1438
1439
  } else {
1439
1440
  tmp_0 = element;
@@ -1451,16 +1452,16 @@ function PythonIrEmitter$emit$lambda_1(this$0) {
1451
1452
  var tmp;
1452
1453
  if (element instanceof Enum_0) {
1453
1454
  // Inline function 'kotlin.collections.map' call
1454
- var this_0 = element.g1o_1;
1455
+ var this_0 = element.f1o_1;
1455
1456
  // Inline function 'kotlin.collections.mapTo' call
1456
1457
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1457
1458
  var _iterator__ex2g4s = this_0.t();
1458
1459
  while (_iterator__ex2g4s.u()) {
1459
1460
  var item = _iterator__ex2g4s.v();
1460
- var tmp$ret$0 = item.d1o(Companion_getInstance().o1h(sanitizeKeywords_0(this$0, sanitizeEnum_0(this$0, item.a1o_1.u1h()))));
1461
+ var tmp$ret$0 = item.c1o(Companion_getInstance().m1h(sanitizeKeywords_0(this$0, sanitizeEnum_0(this$0, item.z1n_1.s1h()))));
1461
1462
  destination.x(tmp$ret$0);
1462
1463
  }
1463
- tmp = element.l1o(VOID, VOID, destination);
1464
+ tmp = element.k1o(VOID, VOID, destination);
1464
1465
  } else {
1465
1466
  tmp = element;
1466
1467
  }
@@ -1470,17 +1471,17 @@ function PythonIrEmitter$emit$lambda_1(this$0) {
1470
1471
  }
1471
1472
  function PythonIrEmitter$emit$lambda_2($constraintExpr) {
1472
1473
  return function ($this$function) {
1473
- $this$function.e1j('self', new Custom_0(''));
1474
- $this$function.j1i(Boolean_instance_0);
1475
- $this$function.l1k($constraintExpr);
1474
+ $this$function.l1i('self', new Custom_0(''));
1475
+ $this$function.k1i(Boolean_instance_0);
1476
+ $this$function.j1k($constraintExpr);
1476
1477
  return Unit_instance;
1477
1478
  };
1478
1479
  }
1479
1480
  function PythonIrEmitter$emit$lambda_3($toStringExpr) {
1480
1481
  return function ($this$function) {
1481
- $this$function.e1j('self', new Custom_0(''));
1482
- $this$function.j1i(String_instance);
1483
- $this$function.l1k(new RawExpression($toStringExpr));
1482
+ $this$function.l1i('self', new Custom_0(''));
1483
+ $this$function.k1i(String_instance);
1484
+ $this$function.j1k(new RawExpression($toStringExpr));
1484
1485
  return Unit_instance;
1485
1486
  };
1486
1487
  }
@@ -1500,9 +1501,9 @@ function PythonIrEmitter$snakeCaseHandlerAndCallMethods$lambda(element, transfor
1500
1501
  var tmp;
1501
1502
  if (element instanceof Interface) {
1502
1503
  var tmp_0;
1503
- if (element.o1o_1.equals(Companion_getInstance().o1h('Handler')) || element.o1o_1.equals(Companion_getInstance().o1h('Call'))) {
1504
+ if (element.m1o_1.equals(Companion_getInstance().m1h('Handler')) || element.m1o_1.equals(Companion_getInstance().m1h('Call'))) {
1504
1505
  // Inline function 'kotlin.collections.map' call
1505
- var this_0 = element.p1o_1;
1506
+ var this_0 = element.n1o_1;
1506
1507
  // Inline function 'kotlin.collections.mapTo' call
1507
1508
  var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
1508
1509
  var _iterator__ex2g4s = this_0.t();
@@ -1510,14 +1511,14 @@ function PythonIrEmitter$snakeCaseHandlerAndCallMethods$lambda(element, transfor
1510
1511
  var item = _iterator__ex2g4s.v();
1511
1512
  var tmp_1;
1512
1513
  if (item instanceof Function) {
1513
- tmp_1 = item.d1k(Companion_getInstance().o1h(item.v1j_1.v1l()));
1514
+ tmp_1 = item.b1k(Companion_getInstance().m1h(item.t1j_1.y1l()));
1514
1515
  } else {
1515
1516
  tmp_1 = item;
1516
1517
  }
1517
1518
  var tmp$ret$0 = tmp_1;
1518
1519
  destination.x(tmp$ret$0);
1519
1520
  }
1520
- tmp_0 = element.v1o(VOID, destination);
1521
+ tmp_0 = element.t1o(VOID, destination);
1521
1522
  } else {
1522
1523
  tmp_0 = element;
1523
1524
  }
@@ -1533,19 +1534,19 @@ function PythonIrEmitter$flattenEndpointTypeRefs$lambda($endpointName) {
1533
1534
  var tmp;
1534
1535
  var tmp_0;
1535
1536
  if (type instanceof Custom_0) {
1536
- tmp_0 = startsWith(type.s1h_1, $endpointName + '.');
1537
+ tmp_0 = startsWith(type.q1h_1, $endpointName + '.');
1537
1538
  } else {
1538
1539
  tmp_0 = false;
1539
1540
  }
1540
1541
  if (tmp_0) {
1541
- var suffix = removePrefix(type.s1h_1, $endpointName + '.');
1542
+ var suffix = removePrefix(type.q1h_1, $endpointName + '.');
1542
1543
  switch (suffix) {
1543
1544
  case 'Call':
1544
1545
  case 'Handler':
1545
1546
  tmp = type;
1546
1547
  break;
1547
1548
  default:
1548
- tmp = type.k1m(suffix);
1549
+ tmp = type.n1m(suffix);
1549
1550
  break;
1550
1551
  }
1551
1552
  } else {
@@ -1559,18 +1560,18 @@ function PythonIrEmitter$addSelfReceiverToClientFields$lambda($fieldNames) {
1559
1560
  var tmp;
1560
1561
  if (stmt instanceof FieldCall) {
1561
1562
  var tmp_0;
1562
- if (stmt.j1p_1 == null && $fieldNames.h1(stmt.k1p_1.u1h())) {
1563
- tmp_0 = new FieldCall(new VariableReference(Companion_getInstance().o1h('self')), stmt.k1p_1);
1563
+ if (stmt.i1p_1 == null && $fieldNames.u1(stmt.j1p_1.s1h())) {
1564
+ tmp_0 = new FieldCall(new VariableReference(Companion_getInstance().m1h('self')), stmt.j1p_1);
1564
1565
  } else {
1565
- var tmp1_safe_receiver = stmt.j1p_1;
1566
+ var tmp1_safe_receiver = stmt.i1p_1;
1566
1567
  var tmp_1;
1567
1568
  if (tmp1_safe_receiver == null) {
1568
1569
  tmp_1 = null;
1569
1570
  } else {
1570
1571
  // Inline function 'kotlin.let' call
1571
- tmp_1 = tr.v1t(tmp1_safe_receiver);
1572
+ tmp_1 = tr.u1t(tmp1_safe_receiver);
1572
1573
  }
1573
- tmp_0 = new FieldCall(tmp_1, stmt.k1p_1);
1574
+ tmp_0 = new FieldCall(tmp_1, stmt.j1p_1);
1574
1575
  }
1575
1576
  tmp = tmp_0;
1576
1577
  } else {
@@ -1582,7 +1583,7 @@ function PythonIrEmitter$addSelfReceiverToClientFields$lambda($fieldNames) {
1582
1583
  function PythonIrEmitter$snakeCaseClientFunctions$lambda(element, transformer) {
1583
1584
  var tmp;
1584
1585
  if (element instanceof Function) {
1585
- tmp = element.d1k(Companion_getInstance().o1h(element.v1j_1.v1l()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().o1h('self'), new Custom_0(''))), element.x1j_1));
1586
+ tmp = element.b1k(Companion_getInstance().m1h(element.t1j_1.y1l()), VOID, plus(listOf_0(new Parameter(Companion_getInstance().m1h('self'), new Custom_0(''))), element.v1j_1));
1586
1587
  } else {
1587
1588
  tmp = element;
1588
1589
  }
@@ -1592,32 +1593,32 @@ function PythonIrEmitter$snakeCaseClientFunctions$lambda(element, transformer) {
1592
1593
  function PythonIrEmitter$snakeCaseClientFunctions$lambda_0(stmt, tr) {
1593
1594
  var tmp;
1594
1595
  if (stmt instanceof FunctionCall) {
1595
- var nameStr = stmt.y1l_1.u1h();
1596
- var newName = contains(nameStr, '.') ? stmt.y1l_1 : Companion_getInstance().o1h(Companion_getInstance().o1h(nameStr).v1l());
1597
- var tmp1_safe_receiver = stmt.w1l_1;
1596
+ var nameStr = stmt.b1m_1.s1h();
1597
+ var newName = contains(nameStr, '.') ? stmt.b1m_1 : Companion_getInstance().m1h(Companion_getInstance().m1h(nameStr).y1l());
1598
+ var tmp1_safe_receiver = stmt.z1l_1;
1598
1599
  var tmp_0;
1599
1600
  if (tmp1_safe_receiver == null) {
1600
1601
  tmp_0 = null;
1601
1602
  } else {
1602
1603
  // Inline function 'kotlin.let' call
1603
- tmp_0 = tr.v1t(tmp1_safe_receiver);
1604
+ tmp_0 = tr.u1t(tmp1_safe_receiver);
1604
1605
  }
1605
1606
  var tmp2_receiver = tmp_0;
1606
1607
  // Inline function 'kotlin.collections.mapValues' call
1607
- var this_0 = stmt.z1l_1;
1608
+ var this_0 = stmt.c1m_1;
1608
1609
  // Inline function 'kotlin.collections.mapValuesTo' call
1609
1610
  var destination = LinkedHashMap_init_$Create$(mapCapacity(this_0.a1()));
1610
1611
  // Inline function 'kotlin.collections.associateByTo' call
1611
- var _iterator__ex2g4s = this_0.l1().t();
1612
+ var _iterator__ex2g4s = this_0.j1().t();
1612
1613
  while (_iterator__ex2g4s.u()) {
1613
1614
  var element = _iterator__ex2g4s.v();
1614
- var tmp_1 = element.m1();
1615
+ var tmp_1 = element.k1();
1615
1616
  // Inline function 'kotlin.collections.component2' call
1616
- var v = element.n1();
1617
- var tmp$ret$4 = tr.v1t(v);
1618
- destination.x2(tmp_1, tmp$ret$4);
1617
+ var v = element.l1();
1618
+ var tmp$ret$4 = tr.u1t(v);
1619
+ destination.w2(tmp_1, tmp$ret$4);
1619
1620
  }
1620
- var tmp4_isAwait = !(stmt.w1l_1 == null);
1621
+ var tmp4_isAwait = !(stmt.z1l_1 == null);
1621
1622
  tmp = new FunctionCall(tmp2_receiver, VOID, newName, destination, tmp4_isAwait);
1622
1623
  } else {
1623
1624
  tmp = transformChildren(stmt, tr);
@@ -1626,39 +1627,39 @@ function PythonIrEmitter$snakeCaseClientFunctions$lambda_0(stmt, tr) {
1626
1627
  }
1627
1628
  function PythonIrEmitter(packageName, emitShared) {
1628
1629
  Companion_getInstance_1();
1629
- packageName = packageName === VOID ? Companion_instance.nr('community.flock.wirespec.generated') : packageName;
1630
- emitShared = emitShared === VOID ? Companion_instance_0.io() : emitShared;
1631
- this.h1y_1 = packageName;
1632
- this.i1y_1 = emitShared;
1633
- this.j1y_1 = PythonGenerator_instance;
1634
- this.k1y_1 = FileExtension_Python_getInstance();
1630
+ packageName = packageName === VOID ? Companion_instance.lr('community.flock.wirespec.generated') : packageName;
1631
+ emitShared = emitShared === VOID ? Companion_instance_0.go() : emitShared;
1632
+ this.g1y_1 = packageName;
1633
+ this.h1y_1 = emitShared;
1634
+ this.i1y_1 = PythonGenerator_instance;
1635
+ this.j1y_1 = FileExtension_Python_getInstance();
1635
1636
  var tmp = this;
1636
- tmp.l1y_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1637
- this.m1y_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1637
+ tmp.k1y_1 = lazy(PythonIrEmitter$sanitizationConfig$delegate$lambda(this));
1638
+ this.l1y_1 = "from __future__ import annotations\n\nimport enum\nfrom abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom typing import Any, Generic, Optional, Type, TypeVar\n\nT = TypeVar('T')\n\n\ndef _raise(msg: str) -> Any:\n raise Exception(msg)\n\n";
1638
1639
  var tmp_0 = this;
1639
- tmp_0.n1y_1 = new PythonIrEmitter$shared$1(this);
1640
+ tmp_0.m1y_1 = new PythonIrEmitter$shared$1(this);
1640
1641
  }
1641
- protoOf(PythonIrEmitter).n1u = function () {
1642
- return this.j1y_1;
1642
+ protoOf(PythonIrEmitter).m1u = function () {
1643
+ return this.i1y_1;
1643
1644
  };
1644
- protoOf(PythonIrEmitter).gq = function () {
1645
- return this.k1y_1;
1645
+ protoOf(PythonIrEmitter).eq = function () {
1646
+ return this.j1y_1;
1646
1647
  };
1647
- protoOf(PythonIrEmitter).u1v = function () {
1648
- return this.n1y_1;
1648
+ protoOf(PythonIrEmitter).t1v = function () {
1649
+ return this.m1y_1;
1649
1650
  };
1650
- protoOf(PythonIrEmitter).o1u = function (module_0, logger) {
1651
+ protoOf(PythonIrEmitter).n1u = function (module_0, logger) {
1651
1652
  // Inline function 'kotlin.collections.sortedBy' call
1652
- var this_0 = new NonEmptyList(module_0.fq_1);
1653
+ var this_0 = new NonEmptyList(module_0.dq_1);
1653
1654
  // Inline function 'kotlin.comparisons.compareBy' call
1654
1655
  var tmp = PythonIrEmitter$emit$lambda(this);
1655
1656
  var tmp$ret$0 = new sam$kotlin_Comparator$0_0(tmp);
1656
1657
  var tmp$ret$1 = sortedWith(this_0, tmp$ret$0);
1657
1658
  var tmp_0 = toNonEmptyListOrNull(tmp$ret$1);
1658
- var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).am_1;
1659
+ var statements = ensureNotNull(tmp_0 == null ? null : new NonEmptyList(tmp_0)).yl_1;
1659
1660
  // Inline function 'kotlin.let' call
1660
- var it = emit.call(this, module_0.yu(VOID, statements), logger);
1661
- var tmp0 = new NonEmptyList(module_0.fq_1);
1661
+ var it = emit.call(this, module_0.wu(VOID, statements), logger);
1662
+ var tmp0 = new NonEmptyList(module_0.dq_1);
1662
1663
  var tmp$ret$2;
1663
1664
  $l$block_0: {
1664
1665
  // Inline function 'kotlin.collections.any' call
@@ -1683,11 +1684,11 @@ protoOf(PythonIrEmitter).o1u = function (module_0, logger) {
1683
1684
  tmp$ret$2 = false;
1684
1685
  }
1685
1686
  var hasEndpoints = tmp$ret$2;
1686
- var initElements = plus(plus(listOf([new Import('.', new Custom_0('model')), new Import('.', new Custom_0('endpoint'))]), hasEndpoints ? listOf_0(new Import('.', new Custom_0('client'))) : emptyList()), listOf_0(new Import('.', new Custom_0('wirespec'))));
1687
- var init = new File(Companion_getInstance().o1h(this.h1y_1.qr() + '__init__'), initElements);
1688
- var tmp_2 = Companion_getInstance().o1h(this.h1y_1.qr() + 'endpoint/' + '__init__');
1687
+ var initElements = plus(plus(listOf([import_0('.', 'model'), import_0('.', 'endpoint')]), hasEndpoints ? listOf_0(import_0('.', 'client')) : emptyList()), listOf_0(import_0('.', 'wirespec')));
1688
+ var init = new File(Companion_getInstance().m1h(this.g1y_1.or() + '__init__'), initElements);
1689
+ var tmp_2 = Companion_getInstance().m1h(this.g1y_1.or() + 'endpoint/' + '__init__');
1689
1690
  // Inline function 'kotlin.collections.filter' call
1690
- var tmp0_0 = new NonEmptyList(module_0.fq_1);
1691
+ var tmp0_0 = new NonEmptyList(module_0.dq_1);
1691
1692
  // Inline function 'kotlin.collections.filterTo' call
1692
1693
  var destination = ArrayList_init_$Create$();
1693
1694
  var _iterator__ex2g4s_0 = tmp0_0.t();
@@ -1707,9 +1708,9 @@ protoOf(PythonIrEmitter).o1u = function (module_0, logger) {
1707
1708
  destination_0.x(tmp$ret$7);
1708
1709
  }
1709
1710
  var initEndpoint = new File(tmp_2, destination_0);
1710
- var tmp_3 = Companion_getInstance().o1h(this.h1y_1.qr() + 'model/' + '__init__');
1711
+ var tmp_3 = Companion_getInstance().m1h(this.g1y_1.or() + 'model/' + '__init__');
1711
1712
  // Inline function 'kotlin.collections.filter' call
1712
- var tmp0_1 = new NonEmptyList(module_0.fq_1);
1713
+ var tmp0_1 = new NonEmptyList(module_0.dq_1);
1713
1714
  // Inline function 'kotlin.collections.filterTo' call
1714
1715
  var destination_1 = ArrayList_init_$Create$();
1715
1716
  var _iterator__ex2g4s_2 = tmp0_1.t();
@@ -1729,9 +1730,9 @@ protoOf(PythonIrEmitter).o1u = function (module_0, logger) {
1729
1730
  destination_2.x(tmp$ret$13);
1730
1731
  }
1731
1732
  var initModel = new File(tmp_3, destination_2);
1732
- var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().o1h(this.h1y_1.qr() + 'client/' + '__init__'), emptyList())) : emptyList();
1733
- var shared = new File(Companion_getInstance().o1h(this.h1y_1.qr() + 'wirespec'), listOf_0(new RawElement(this.u1v().s1w())));
1734
- var tmp0_2 = dropLast(split(this.h1y_1.or_1, ['.']), 1);
1733
+ var initClient = hasEndpoints ? listOf_0(new File(Companion_getInstance().m1h(this.g1y_1.or() + 'client/' + '__init__'), emptyList())) : emptyList();
1734
+ var shared = new File(Companion_getInstance().m1h(this.g1y_1.or() + 'wirespec'), listOf_0(new RawElement(this.t1v().r1w())));
1735
+ var tmp0_2 = dropLast(split(this.g1y_1.mr_1, ['.']), 1);
1735
1736
  var tmp$ret$16;
1736
1737
  $l$block_1: {
1737
1738
  // Inline function 'kotlin.collections.runningFold' call
@@ -1768,17 +1769,17 @@ protoOf(PythonIrEmitter).o1u = function (module_0, logger) {
1768
1769
  var _iterator__ex2g4s_5 = this_2.t();
1769
1770
  while (_iterator__ex2g4s_5.u()) {
1770
1771
  var item_1 = _iterator__ex2g4s_5.v();
1771
- var tmp$ret$21 = new File(Companion_getInstance().o1h(item_1 + '/__init__'), emptyList());
1772
+ var tmp$ret$21 = new File(Companion_getInstance().m1h(item_1 + '/__init__'), emptyList());
1772
1773
  destination_3.x(tmp$ret$21);
1773
1774
  }
1774
1775
  var parentInits = destination_3;
1775
- return this.i1y_1.jo_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), initClient), shared), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(it, init), parentInits);
1776
+ return this.h1y_1.ho_1 ? NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(NonEmptyList__plus_impl_xqmb9(it, init), initEndpoint), initModel), initClient), shared), parentInits) : NonEmptyList__plus_impl_xqmb9_0(NonEmptyList__plus_impl_xqmb9(it, init), parentInits);
1776
1777
  };
1777
- protoOf(PythonIrEmitter).wq = function (definition, module_0, logger) {
1778
+ protoOf(PythonIrEmitter).uq = function (definition, module_0, logger) {
1778
1779
  var file = emit_0.call(this, definition, module_0, logger);
1779
- return wrapWithModuleImport(file, this.h1y_1, definition, buildImports(this, '..wirespec'));
1780
+ return placeInModule(prependImports(file, buildImports(this, '..wirespec')), this.g1y_1, definition);
1780
1781
  };
1781
- protoOf(PythonIrEmitter).wp = function (type, module_0) {
1782
+ protoOf(PythonIrEmitter).up = function (type, module_0) {
1782
1783
  // Inline function 'kotlin.collections.distinctBy' call
1783
1784
  var this_0 = importReferences(type);
1784
1785
  var set = HashSet_init_$Create$();
@@ -1786,7 +1787,7 @@ protoOf(PythonIrEmitter).wp = function (type, module_0) {
1786
1787
  var _iterator__ex2g4s = this_0.t();
1787
1788
  while (_iterator__ex2g4s.u()) {
1788
1789
  var e = _iterator__ex2g4s.v();
1789
- var key = e.nu_1;
1790
+ var key = e.lu_1;
1790
1791
  if (set.x(key)) {
1791
1792
  list.x(e);
1792
1793
  }
@@ -1797,18 +1798,18 @@ protoOf(PythonIrEmitter).wp = function (type, module_0) {
1797
1798
  var _iterator__ex2g4s_0 = list.t();
1798
1799
  while (_iterator__ex2g4s_0.u()) {
1799
1800
  var item = _iterator__ex2g4s_0.v();
1800
- var tmp$ret$2 = new Import('.' + item.nu_1, new Custom_0(item.nu_1));
1801
+ var tmp$ret$2 = import_0('.' + item.lu_1, item.lu_1);
1801
1802
  destination.x(tmp$ret$2);
1802
1803
  }
1803
1804
  var typeImports = destination;
1804
1805
  // Inline function 'kotlin.collections.map' call
1805
- var this_1 = type.yo_1.uo_1;
1806
+ var this_1 = type.wo_1.so_1;
1806
1807
  // Inline function 'kotlin.collections.mapTo' call
1807
1808
  var destination_0 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
1808
1809
  var _iterator__ex2g4s_1 = this_1.t();
1809
1810
  while (_iterator__ex2g4s_1.u()) {
1810
1811
  var item_0 = _iterator__ex2g4s_1.v();
1811
- var tmp$ret$5 = item_0.cp_1.n1();
1812
+ var tmp$ret$5 = item_0.ap_1.l1();
1812
1813
  destination_0.x(tmp$ret$5);
1813
1814
  }
1814
1815
  var fieldNames = toSet(destination_0);
@@ -1818,51 +1819,51 @@ protoOf(PythonIrEmitter).wp = function (type, module_0) {
1818
1819
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1819
1820
  var tmp = scope;
1820
1821
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1821
- var this_3 = scope.a1u_1;
1822
+ var this_3 = scope.z1t_1;
1822
1823
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1823
1824
  // Inline function 'kotlin.apply' call
1824
1825
  var this_4 = new TransformerBuilder();
1825
- this_4.f1h(PythonIrEmitter$emit$lambda_0(fieldNames));
1826
- var tmp$ret$10 = this_4.g1h();
1827
- tmp.a1u_1 = transform(this_3, tmp$ret$10);
1828
- var tmp_0 = scope.a1u_1;
1826
+ this_4.d1h(PythonIrEmitter$emit$lambda_0(fieldNames));
1827
+ var tmp$ret$10 = this_4.e1h();
1828
+ tmp.z1t_1 = transform(this_3, tmp$ret$10);
1829
+ var tmp_0 = scope.z1t_1;
1829
1830
  var tmp$ret$14 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1830
1831
  var file = sanitizeNames(tmp$ret$14, _get_sanitizationConfig__sns434(this));
1831
1832
  var tmp_1;
1832
1833
  // Inline function 'kotlin.collections.isNotEmpty' call
1833
1834
  if (!typeImports.r()) {
1834
- tmp_1 = file.u1m(VOID, plus(typeImports, file.r1m_1));
1835
+ tmp_1 = file.x1m(VOID, plus(typeImports, file.u1m_1));
1835
1836
  } else {
1836
1837
  tmp_1 = file;
1837
1838
  }
1838
1839
  return tmp_1;
1839
1840
  };
1840
- protoOf(PythonIrEmitter).kr = function (enum_0, module_0) {
1841
+ protoOf(PythonIrEmitter).ir = function (enum_0, module_0) {
1841
1842
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1842
1843
  var this_0 = convert_0(enum_0);
1843
1844
  var scope = new TransformScope(this_0);
1844
1845
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1845
1846
  var tmp = scope;
1846
1847
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1847
- var this_1 = scope.a1u_1;
1848
+ var this_1 = scope.z1t_1;
1848
1849
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1849
1850
  // Inline function 'kotlin.apply' call
1850
1851
  var this_2 = new TransformerBuilder();
1851
- this_2.f1h(PythonIrEmitter$emit$lambda_1(this));
1852
- var tmp$ret$2 = this_2.g1h();
1853
- tmp.a1u_1 = transform(this_1, tmp$ret$2);
1854
- var tmp_0 = scope.a1u_1;
1852
+ this_2.d1h(PythonIrEmitter$emit$lambda_1(this));
1853
+ var tmp$ret$2 = this_2.e1h();
1854
+ tmp.z1t_1 = transform(this_1, tmp$ret$2);
1855
+ var tmp_0 = scope.z1t_1;
1855
1856
  var tmp$ret$6 = isInterface(tmp_0, Element) ? tmp_0 : THROW_CCE();
1856
1857
  return sanitizeNames(tmp$ret$6, _get_sanitizationConfig__sns434(this));
1857
1858
  };
1858
- protoOf(PythonIrEmitter).ar = function (union) {
1859
+ protoOf(PythonIrEmitter).yq = function (union) {
1859
1860
  return sanitizeNames(convert_1(union), _get_sanitizationConfig__sns434(this));
1860
1861
  };
1861
- protoOf(PythonIrEmitter).fr = function (refined) {
1862
+ protoOf(PythonIrEmitter).dr = function (refined) {
1862
1863
  var file = convert_2(refined);
1863
1864
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1864
1865
  // Inline function 'kotlin.collections.filterIsInstance' call
1865
- var tmp0 = file.s1m();
1866
+ var tmp0 = file.v1m();
1866
1867
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1867
1868
  var destination = ArrayList_init_$Create$();
1868
1869
  var _iterator__ex2g4s = tmp0.t();
@@ -1875,7 +1876,7 @@ protoOf(PythonIrEmitter).fr = function (refined) {
1875
1876
  var tmp$ret$2 = firstOrNull_0(destination);
1876
1877
  var struct = ensureNotNull(tmp$ret$2);
1877
1878
  // Inline function 'kotlin.collections.mapNotNull' call
1878
- var tmp0_0 = struct.k1n_1;
1879
+ var tmp0_0 = struct.j1n_1;
1879
1880
  // Inline function 'kotlin.collections.mapNotNullTo' call
1880
1881
  var destination_0 = ArrayList_init_$Create$();
1881
1882
  // Inline function 'kotlin.collections.forEach' call
@@ -1885,23 +1886,23 @@ protoOf(PythonIrEmitter).fr = function (refined) {
1885
1886
  var tmp;
1886
1887
  var tmp_0;
1887
1888
  if (element_0 instanceof Function) {
1888
- tmp_0 = element_0.v1j_1.equals(Companion_getInstance().o1h('validate'));
1889
+ tmp_0 = element_0.t1j_1.equals(Companion_getInstance().m1h('validate'));
1889
1890
  } else {
1890
1891
  tmp_0 = false;
1891
1892
  }
1892
1893
  if (tmp_0) {
1893
- var constraintExpr = convertConstraint(refined.er_1, new FieldCall(new VariableReference(Companion_getInstance().o1h('self')), Companion_getInstance().o1h('value')));
1894
+ var constraintExpr = convertConstraint(refined.cr_1, new FieldCall(new VariableReference(Companion_getInstance().m1h('self')), Companion_getInstance().m1h('value')));
1894
1895
  tmp = function_0('validate', VOID, VOID, PythonIrEmitter$emit$lambda_2(constraintExpr));
1895
1896
  } else {
1896
1897
  var tmp_1;
1897
1898
  if (element_0 instanceof Function) {
1898
- tmp_1 = element_0.v1j_1.equals(Companion_getInstance().o1h('toString'));
1899
+ tmp_1 = element_0.t1j_1.equals(Companion_getInstance().m1h('toString'));
1899
1900
  } else {
1900
1901
  tmp_1 = false;
1901
1902
  }
1902
1903
  if (tmp_1) {
1903
1904
  var tmp_2;
1904
- if (refined.er_1.ru_1 instanceof String_0) {
1905
+ if (refined.cr_1.pu_1 instanceof String_0) {
1905
1906
  tmp_2 = 'self.value';
1906
1907
  } else {
1907
1908
  tmp_2 = 'str(self.value)';
@@ -1920,24 +1921,24 @@ protoOf(PythonIrEmitter).fr = function (refined) {
1920
1921
  destination_0.x(tmp0_safe_receiver);
1921
1922
  }
1922
1923
  }
1923
- var updatedStruct = struct.m1n(VOID, VOID, VOID, VOID, destination_0);
1924
+ var updatedStruct = struct.l1n(VOID, VOID, VOID, VOID, destination_0);
1924
1925
  // Inline function 'community.flock.wirespec.ir.core.transform' call
1925
1926
  var scope = new TransformScope(file);
1926
1927
  // Inline function 'community.flock.wirespec.ir.core.TransformScope.matchingElements' call
1927
1928
  var tmp_3 = scope;
1928
1929
  // Inline function 'community.flock.wirespec.ir.core.transformMatchingElements' call
1929
- var this_0 = scope.a1u_1;
1930
+ var this_0 = scope.z1t_1;
1930
1931
  // Inline function 'community.flock.wirespec.ir.core.transformer' call
1931
1932
  // Inline function 'kotlin.apply' call
1932
1933
  var this_1 = new TransformerBuilder();
1933
- this_1.f1h(PythonIrEmitter$emit$lambda_4(updatedStruct));
1934
- var tmp$ret$12 = this_1.g1h();
1935
- tmp_3.a1u_1 = transform(this_0, tmp$ret$12);
1936
- var tmp_4 = scope.a1u_1;
1934
+ this_1.d1h(PythonIrEmitter$emit$lambda_4(updatedStruct));
1935
+ var tmp$ret$12 = this_1.e1h();
1936
+ tmp_3.z1t_1 = transform(this_0, tmp$ret$12);
1937
+ var tmp_4 = scope.z1t_1;
1937
1938
  var tmp$ret$16 = isInterface(tmp_4, Element) ? tmp_4 : THROW_CCE();
1938
1939
  return sanitizeNames(tmp$ret$16, _get_sanitizationConfig__sns434(this));
1939
1940
  };
1940
- protoOf(PythonIrEmitter).lr = function (endpoint) {
1941
+ protoOf(PythonIrEmitter).jr = function (endpoint) {
1941
1942
  // Inline function 'kotlin.collections.distinctBy' call
1942
1943
  var this_0 = importReferences(endpoint);
1943
1944
  var set = HashSet_init_$Create$();
@@ -1945,7 +1946,7 @@ protoOf(PythonIrEmitter).lr = function (endpoint) {
1945
1946
  var _iterator__ex2g4s = this_0.t();
1946
1947
  while (_iterator__ex2g4s.u()) {
1947
1948
  var e = _iterator__ex2g4s.v();
1948
- var key = e.nu_1;
1949
+ var key = e.lu_1;
1949
1950
  if (set.x(key)) {
1950
1951
  list.x(e);
1951
1952
  }
@@ -1956,13 +1957,13 @@ protoOf(PythonIrEmitter).lr = function (endpoint) {
1956
1957
  var _iterator__ex2g4s_0 = list.t();
1957
1958
  while (_iterator__ex2g4s_0.u()) {
1958
1959
  var item = _iterator__ex2g4s_0.v();
1959
- var tmp$ret$2 = new Import('..model.' + item.nu_1, new Custom_0(item.nu_1));
1960
+ var tmp$ret$2 = import_0('..model.' + item.lu_1, item.lu_1);
1960
1961
  destination.x(tmp$ret$2);
1961
1962
  }
1962
1963
  var endpointImports = destination;
1963
1964
  // Inline function 'community.flock.wirespec.ir.core.findElement' call
1964
1965
  // Inline function 'kotlin.collections.filterIsInstance' call
1965
- var tmp0 = convert_3(endpoint).s1m();
1966
+ var tmp0 = convert_3(endpoint).v1m();
1966
1967
  // Inline function 'kotlin.collections.filterIsInstanceTo' call
1967
1968
  var destination_0 = ArrayList_init_$Create$();
1968
1969
  var _iterator__ex2g4s_1 = tmp0.t();
@@ -1976,7 +1977,7 @@ protoOf(PythonIrEmitter).lr = function (endpoint) {
1976
1977
  var converted = ensureNotNull(tmp$ret$7);
1977
1978
  var flattened = flattenNestedStructs(converted);
1978
1979
  // Inline function 'kotlin.collections.partition' call
1979
- var this_1 = flattened.b1n_1;
1980
+ var this_1 = flattened.a1n_1;
1980
1981
  var first = ArrayList_init_$Create$();
1981
1982
  var second = ArrayList_init_$Create$();
1982
1983
  var _iterator__ex2g4s_2 = this_1.t();
@@ -1995,9 +1996,9 @@ protoOf(PythonIrEmitter).lr = function (endpoint) {
1995
1996
  }
1996
1997
  }
1997
1998
  var _destruct__k2r9zo = new Pair(first, second);
1998
- var moduleElements = _destruct__k2r9zo.oe();
1999
- var classElements = _destruct__k2r9zo.pe();
2000
- var endpointClass = new Namespace(converted.a1n_1, classElements, converted.c1n_1);
1999
+ var moduleElements = _destruct__k2r9zo.ne();
2000
+ var classElements = _destruct__k2r9zo.oe();
2001
+ var endpointClass = new Namespace(converted.z1m_1, classElements, converted.b1n_1);
2001
2002
  // Inline function 'kotlin.collections.buildList' call
2002
2003
  // Inline function 'kotlin.collections.buildListInternal' call
2003
2004
  // Inline function 'kotlin.apply' call
@@ -2006,12 +2007,12 @@ protoOf(PythonIrEmitter).lr = function (endpoint) {
2006
2007
  this_2.e1(moduleElements);
2007
2008
  this_2.x(endpointClass);
2008
2009
  var tmp$ret$13 = this_2.o5();
2009
- return sanitizeNames(snakeCaseHandlerAndCallMethods(this, new File(converted.a1n_1, tmp$ret$13)), _get_sanitizationConfig__sns434(this));
2010
+ return sanitizeNames(snakeCaseHandlerAndCallMethods(this, new File(converted.z1m_1, tmp$ret$13)), _get_sanitizationConfig__sns434(this));
2010
2011
  };
2011
- protoOf(PythonIrEmitter).zq = function (channel) {
2012
+ protoOf(PythonIrEmitter).xq = function (channel) {
2012
2013
  return sanitizeNames(convert_4(channel), _get_sanitizationConfig__sns434(this));
2013
2014
  };
2014
- protoOf(PythonIrEmitter).r1u = function (endpoint) {
2015
+ protoOf(PythonIrEmitter).q1u = function (endpoint) {
2015
2016
  // Inline function 'kotlin.collections.distinctBy' call
2016
2017
  var this_0 = importReferences(endpoint);
2017
2018
  var set = HashSet_init_$Create$();
@@ -2019,7 +2020,7 @@ protoOf(PythonIrEmitter).r1u = function (endpoint) {
2019
2020
  var _iterator__ex2g4s = this_0.t();
2020
2021
  while (_iterator__ex2g4s.u()) {
2021
2022
  var e = _iterator__ex2g4s.v();
2022
- var key = e.nu_1;
2023
+ var key = e.lu_1;
2023
2024
  if (set.x(key)) {
2024
2025
  list.x(e);
2025
2026
  }
@@ -2030,17 +2031,17 @@ protoOf(PythonIrEmitter).r1u = function (endpoint) {
2030
2031
  var _iterator__ex2g4s_0 = list.t();
2031
2032
  while (_iterator__ex2g4s_0.u()) {
2032
2033
  var item = _iterator__ex2g4s_0.v();
2033
- var tmp$ret$2 = new Import('..model.' + item.nu_1, new Custom_0(item.nu_1));
2034
+ var tmp$ret$2 = import_0('..model.' + item.lu_1, item.lu_1);
2034
2035
  destination.x(tmp$ret$2);
2035
2036
  }
2036
2037
  var modelImports = destination;
2037
- var endpointImport = new Import('..endpoint.' + endpoint.gp_1.n1(), new Custom_0('*'));
2038
- var endpointName = endpoint.gp_1.n1();
2038
+ var endpointImport = import_0('..endpoint.' + endpoint.ep_1.l1(), '*');
2039
+ var endpointName = endpoint.ep_1.l1();
2039
2040
  var file = flattenEndpointTypeRefs(this, snakeCaseClientFunctions(this, addSelfReceiverToClientFields(this, sanitizeNames(emitEndpointClient.call(this, endpoint), _get_sanitizationConfig__sns434(this)))), endpointName);
2040
- var subPackageName = plus_1(this.h1y_1, 'client');
2041
- return new File(Companion_getInstance().o1h(subPackageName.qr() + file.q1m_1.u1l()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.r1m_1));
2041
+ var subPackageName = plus_1(this.g1y_1, 'client');
2042
+ return new File(Companion_getInstance().m1h(subPackageName.or() + file.t1m_1.x1l()), plus(plus(plus(buildImports(this, '..wirespec'), modelImports), listOf_0(endpointImport)), file.u1m_1));
2042
2043
  };
2043
- protoOf(PythonIrEmitter).q1u = function (endpoints, logger) {
2044
+ protoOf(PythonIrEmitter).p1u = function (endpoints, logger) {
2044
2045
  // Inline function 'kotlin.collections.flatMap' call
2045
2046
  // Inline function 'kotlin.collections.flatMapTo' call
2046
2047
  var destination = ArrayList_init_$Create$();
@@ -2056,7 +2057,7 @@ protoOf(PythonIrEmitter).q1u = function (endpoints, logger) {
2056
2057
  var _iterator__ex2g4s_0 = destination.t();
2057
2058
  while (_iterator__ex2g4s_0.u()) {
2058
2059
  var e = _iterator__ex2g4s_0.v();
2059
- var key = e.nu_1;
2060
+ var key = e.lu_1;
2060
2061
  if (set.x(key)) {
2061
2062
  list_0.x(e);
2062
2063
  }
@@ -2067,7 +2068,7 @@ protoOf(PythonIrEmitter).q1u = function (endpoints, logger) {
2067
2068
  var _iterator__ex2g4s_1 = list_0.t();
2068
2069
  while (_iterator__ex2g4s_1.u()) {
2069
2070
  var item = _iterator__ex2g4s_1.v();
2070
- var tmp$ret$5 = new Import('.model.' + item.nu_1, new Custom_0(item.nu_1));
2071
+ var tmp$ret$5 = import_0('.model.' + item.lu_1, item.lu_1);
2071
2072
  destination_0.x(tmp$ret$5);
2072
2073
  }
2073
2074
  var modelImports = destination_0;
@@ -2077,7 +2078,7 @@ protoOf(PythonIrEmitter).q1u = function (endpoints, logger) {
2077
2078
  var _iterator__ex2g4s_2 = endpoints.t();
2078
2079
  while (_iterator__ex2g4s_2.u()) {
2079
2080
  var item_0 = _iterator__ex2g4s_2.v();
2080
- var tmp$ret$8 = new Import('.endpoint.' + item_0.gp_1.n1(), new Custom_0('*'));
2081
+ var tmp$ret$8 = import_0('.endpoint.' + item_0.ep_1.l1(), '*');
2081
2082
  destination_1.x(tmp$ret$8);
2082
2083
  }
2083
2084
  var endpointImports = destination_1;
@@ -2087,7 +2088,7 @@ protoOf(PythonIrEmitter).q1u = function (endpoints, logger) {
2087
2088
  var _iterator__ex2g4s_3 = endpoints.t();
2088
2089
  while (_iterator__ex2g4s_3.u()) {
2089
2090
  var item_1 = _iterator__ex2g4s_3.v();
2090
- var tmp$ret$11 = new Import('.client.' + item_1.gp_1.n1() + 'Client', new Custom_0(item_1.gp_1.n1() + 'Client'));
2091
+ var tmp$ret$11 = import_0('.client.' + item_1.ep_1.l1() + 'Client', item_1.ep_1.l1() + 'Client');
2091
2092
  destination_2.x(tmp$ret$11);
2092
2093
  }
2093
2094
  var clientImports = destination_2;
@@ -2098,7 +2099,7 @@ protoOf(PythonIrEmitter).q1u = function (endpoints, logger) {
2098
2099
  var _iterator__ex2g4s_4 = endpoints.t();
2099
2100
  while (_iterator__ex2g4s_4.u()) {
2100
2101
  var item_2 = _iterator__ex2g4s_4.v();
2101
- var tmp$ret$14 = item_2.gp_1.n1();
2102
+ var tmp$ret$14 = item_2.ep_1.l1();
2102
2103
  destination_3.x(tmp$ret$14);
2103
2104
  }
2104
2105
  var endpointNames = destination_3;
@@ -2112,16 +2113,16 @@ protoOf(PythonIrEmitter).q1u = function (endpoints, logger) {
2112
2113
  accumulator = flattenEndpointTypeRefs(this, acc, element_0);
2113
2114
  }
2114
2115
  var file = accumulator;
2115
- return new File(Companion_getInstance().o1h(this.h1y_1.qr() + file.q1m_1.u1l()), plus(plus(buildImports(this, '.wirespec'), allImports), file.r1m_1));
2116
+ return new File(Companion_getInstance().m1h(this.g1y_1.or() + file.t1m_1.x1l()), plus(plus(buildImports(this, '.wirespec'), allImports), file.u1m_1));
2116
2117
  };
2117
2118
  function PythonRefinedTypeDefinitionEmitter() {
2118
2119
  }
2119
2120
  function PythonShared() {
2120
- this.a1y_1 = 'shared';
2121
- this.b1y_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
2121
+ this.z1x_1 = 'shared';
2122
+ this.a1y_1 = "from abc import ABC, abstractmethod\nfrom dataclasses import dataclass\nfrom enum import Enum\nfrom typing import Generic, List, Dict, Optional, TypeVar\n\nT = TypeVar('T')\nREQ = TypeVar('REQ')\nRES = TypeVar('RES')\n\nclass Wirespec:\n\n class Refined(ABC, Generic[T]):\n @property\n @abstractmethod\n def value(self) -> T: pass\n\n class Endpoint(ABC):\n\n class Handler(ABC):\n pass\n\n class Convert(ABC, Generic[REQ, RES]):\n @staticmethod\n @abstractmethod\n def to_raw_request(serializer: 'Wirespec.Serializer', req: REQ) -> 'Wirespec.RawRequest': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_response(serializer: 'Wirespec.Deserializer', res: 'Wirespec.RawResponse') -> RES: pass\n\n @staticmethod\n @abstractmethod\n def to_raw_response(serializer: 'Wirespec.Serializer', res: RES) -> 'Wirespec.RawResponse': pass\n\n @staticmethod\n @abstractmethod\n def from_raw_request(serializer: 'Wirespec.Deserializer[T]', req: 'Wirespec.RawRequest') -> REQ: pass\n\n class Method(Enum):\n GET = \"GET\"\n PUT = \"PUT\"\n POST = \"POST\"\n DELETE = \"DELETE\"\n OPTIONS = \"OPTIONS\"\n HEAD = \"HEAD\"\n PATCH = \"PATCH\"\n TRACE = \"TRACE\"\n\n class Request(Generic[T], ABC):\n\n class Path(ABC): pass\n\n class Queries(ABC): pass\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def path(self) -> Path: pass\n\n @property\n @abstractmethod\n def method(self) -> 'Wirespec.Method': pass\n\n @property\n @abstractmethod\n def queries(self) -> Queries: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Response(Generic[T], ABC):\n\n class Headers(ABC): pass\n\n @property\n @abstractmethod\n def status(self) -> int: pass\n\n @property\n @abstractmethod\n def headers(self) -> Headers: pass\n\n @property\n @abstractmethod\n def body(self) -> T: pass\n\n class Serializer(Generic[T], ABC):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n\n class Deserializer(Generic[T], ABC):\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n class Serialization(Serializer, Deserializer):\n @abstractmethod\n def serialize(self, value: T, t: type[T]) -> str: pass\n @abstractmethod\n def serialize_param(self, value: T, t: type[T]) -> List[str]: pass\n @abstractmethod\n def deserialize(self, value: str | None, t: type[T]) -> T: pass\n @abstractmethod\n def deserialize_param(self, value: List[str] | None, t: type[T]) -> T: pass\n\n @dataclass\n class RawRequest:\n method: str\n path: List[str]\n queries: Dict[str, List[str]]\n headers: Dict[str, List[str]]\n body: Optional[str]\n\n\n @dataclass\n class RawResponse:\n status_code: int\n headers: Dict[str, List[str]]\n body: Optional[str]\n";
2122
2123
  }
2123
- protoOf(PythonShared).s1w = function () {
2124
- return this.b1y_1;
2124
+ protoOf(PythonShared).r1w = function () {
2125
+ return this.a1y_1;
2125
2126
  };
2126
2127
  protoOf(PythonShared).toString = function () {
2127
2128
  return 'PythonShared';
@@ -2142,17 +2143,17 @@ function PythonShared_getInstance() {
2142
2143
  }
2143
2144
  function PythonTypeDefinitionEmitter$emit$lambda(this$0) {
2144
2145
  return function (it) {
2145
- return this$0.f1y(it);
2146
+ return this$0.e1y(it);
2146
2147
  };
2147
2148
  }
2148
2149
  function PythonTypeDefinitionEmitter$emit$lambda_0(this$0) {
2149
2150
  return function (it) {
2150
- return this$0.f1y(it);
2151
+ return this$0.e1y(it);
2151
2152
  };
2152
2153
  }
2153
2154
  function PythonTypeDefinitionEmitter$emit$lambda_1(this$0) {
2154
2155
  return function (it) {
2155
- return Spacer_instance.toString() + this$0.yp(it);
2156
+ return Spacer_instance.toString() + this$0.wp(it);
2156
2157
  };
2157
2158
  }
2158
2159
  function PythonTypeDefinitionEmitter() {
@@ -2160,26 +2161,26 @@ function PythonTypeDefinitionEmitter() {
2160
2161
  function PythonUnionDefinitionEmitter() {
2161
2162
  }
2162
2163
  //region block: post-declaration
2163
- protoOf(PythonEmitter).wp = emit_5;
2164
- protoOf(PythonEmitter).xp = emit_6;
2165
- protoOf(PythonEmitter).yp = emit_7;
2166
- protoOf(PythonEmitter).zp = emit_8;
2167
- protoOf(PythonEmitter).aq = emit_10;
2168
- protoOf(PythonEmitter).kr = emit_15;
2169
- protoOf(PythonEmitter).fr = emit_11;
2170
- protoOf(PythonEmitter).lr = emit_12;
2171
- protoOf(PythonEmitter).ar = emit_4;
2172
- protoOf(PythonEmitter).yq = emit_3;
2173
- protoOf(PythonEmitter).zq = emit_2;
2174
- protoOf(PythonEmitter).c1y = emit_9;
2175
- protoOf(PythonEmitter).y1v = emit_13;
2176
- protoOf(PythonEmitter).d1y = emit_14;
2177
- protoOf(PythonEmitter).mr = emitValidator;
2178
- protoOf(PythonEmitter).t1w = sanitize;
2179
- protoOf(PythonEmitter).b1w = sanitizeKeywords;
2180
- protoOf(PythonEmitter).e1y = emitType;
2181
- protoOf(PythonEmitter).f1y = emitReferenceCustomImports;
2182
- protoOf(PythonIrEmitter).qn = emit_1;
2164
+ protoOf(PythonEmitter).up = emit_5;
2165
+ protoOf(PythonEmitter).vp = emit_6;
2166
+ protoOf(PythonEmitter).wp = emit_7;
2167
+ protoOf(PythonEmitter).xp = emit_8;
2168
+ protoOf(PythonEmitter).yp = emit_10;
2169
+ protoOf(PythonEmitter).ir = emit_4;
2170
+ protoOf(PythonEmitter).dr = emit_11;
2171
+ protoOf(PythonEmitter).jr = emit_13;
2172
+ protoOf(PythonEmitter).yq = emit_12;
2173
+ protoOf(PythonEmitter).wq = emit_3;
2174
+ protoOf(PythonEmitter).xq = emit_2;
2175
+ protoOf(PythonEmitter).b1y = emit_9;
2176
+ protoOf(PythonEmitter).x1v = emit_14;
2177
+ protoOf(PythonEmitter).c1y = emit_15;
2178
+ protoOf(PythonEmitter).kr = emitValidator;
2179
+ protoOf(PythonEmitter).s1w = sanitize;
2180
+ protoOf(PythonEmitter).a1w = sanitizeKeywords;
2181
+ protoOf(PythonEmitter).d1y = emitType;
2182
+ protoOf(PythonEmitter).e1y = emitReferenceCustomImports;
2183
+ protoOf(PythonIrEmitter).on = emit_1;
2183
2184
  //endregion
2184
2185
  //region block: init
2185
2186
  PythonShared_instance = new PythonShared();