@flock/wirespec 0.11.9 → 0.12.1

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 (100) hide show
  1. package/arrow-arrow-annotations.mjs +4 -0
  2. package/{kotlinx-io-kotlinx-io-bytestring.js.map → arrow-arrow-annotations.mjs.map} +1 -1
  3. package/arrow-arrow-atomic.mjs +43 -0
  4. package/arrow-arrow-atomic.mjs.map +1 -0
  5. package/arrow-arrow-continuations.mjs +18 -0
  6. package/{kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map → arrow-arrow-continuations.mjs.map} +1 -1
  7. package/arrow-arrow-core.mjs +532 -0
  8. package/arrow-arrow-core.mjs.map +1 -0
  9. package/clikt-clikt.mjs +6648 -0
  10. package/clikt-clikt.mjs.map +1 -0
  11. package/colormath-root-colormath.mjs +1696 -0
  12. package/colormath-root-colormath.mjs.map +1 -0
  13. package/kotlin-kotlin-stdlib.mjs +13106 -0
  14. package/kotlin-kotlin-stdlib.mjs.map +1 -0
  15. package/kotlin-openapi-bindings.mjs +13769 -0
  16. package/kotlin-openapi-bindings.mjs.map +1 -0
  17. package/kotlin-rgxgen.mjs +4298 -0
  18. package/kotlin-rgxgen.mjs.map +1 -0
  19. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
  20. package/{arrow-arrow-annotations.js.map → kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map} +1 -1
  21. package/kotlinx-io-kotlinx-io-bytestring.mjs +4 -0
  22. package/{kotlin-kotlin-test.js.map → kotlinx-io-kotlinx-io-bytestring.mjs.map} +1 -1
  23. package/kotlinx-io-kotlinx-io-core.mjs +2201 -0
  24. package/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
  25. package/kotlinx-serialization-kotlinx-serialization-core.mjs +5880 -0
  26. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
  27. package/kotlinx-serialization-kotlinx-serialization-json.mjs +5109 -0
  28. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
  29. package/markdown.mjs +6753 -0
  30. package/markdown.mjs.map +1 -0
  31. package/mordant-mordant.mjs +11839 -0
  32. package/mordant-mordant.mjs.map +1 -0
  33. package/package.json +4 -6
  34. package/wirespec-bin.mjs +18 -0
  35. package/wirespec-src-compiler-core.mjs +8313 -0
  36. package/wirespec-src-compiler-core.mjs.map +1 -0
  37. package/wirespec-src-compiler-lib.mjs +2565 -0
  38. package/wirespec-src-compiler-lib.mjs.map +1 -0
  39. package/wirespec-src-converter-avro.mjs +1933 -0
  40. package/wirespec-src-converter-avro.mjs.map +1 -0
  41. package/wirespec-src-converter-openapi.mjs +5301 -0
  42. package/wirespec-src-converter-openapi.mjs.map +1 -0
  43. package/wirespec-src-plugin-arguments.mjs +587 -0
  44. package/wirespec-src-plugin-arguments.mjs.map +1 -0
  45. package/wirespec-src-plugin-cli.mjs +1487 -0
  46. package/wirespec-src-plugin-cli.mjs.map +1 -0
  47. package/wirespec-src-plugin-npm.d.ts +485 -466
  48. package/wirespec-src-plugin-npm.mjs +622 -0
  49. package/wirespec-src-plugin-npm.mjs.map +1 -0
  50. package/wirespec-src-tools-generator.mjs +284 -0
  51. package/wirespec-src-tools-generator.mjs.map +1 -0
  52. package/arrow-arrow-annotations.js +0 -15
  53. package/arrow-arrow-atomic.js +0 -55
  54. package/arrow-arrow-atomic.js.map +0 -1
  55. package/arrow-arrow-continuations.js +0 -30
  56. package/arrow-arrow-continuations.js.map +0 -1
  57. package/arrow-arrow-core.js +0 -410
  58. package/arrow-arrow-core.js.map +0 -1
  59. package/clikt-clikt.js +0 -6713
  60. package/clikt-clikt.js.map +0 -1
  61. package/colormath-root-colormath.js +0 -1727
  62. package/colormath-root-colormath.js.map +0 -1
  63. package/kotlin-kotlin-stdlib.js +0 -13263
  64. package/kotlin-kotlin-stdlib.js.map +0 -1
  65. package/kotlin-kotlin-test.js +0 -15
  66. package/kotlin-openapi-bindings.js +0 -13787
  67. package/kotlin-openapi-bindings.js.map +0 -1
  68. package/kotlin-rgxgen.js +0 -4315
  69. package/kotlin-rgxgen.js.map +0 -1
  70. package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +0 -15
  71. package/kotlinx-io-kotlinx-io-bytestring.js +0 -15
  72. package/kotlinx-io-kotlinx-io-core.js +0 -2219
  73. package/kotlinx-io-kotlinx-io-core.js.map +0 -1
  74. package/kotlinx-serialization-kotlinx-serialization-core.js +0 -5914
  75. package/kotlinx-serialization-kotlinx-serialization-core.js.map +0 -1
  76. package/kotlinx-serialization-kotlinx-serialization-json.js +0 -5126
  77. package/kotlinx-serialization-kotlinx-serialization-json.js.map +0 -1
  78. package/markdown.js +0 -6768
  79. package/markdown.js.map +0 -1
  80. package/mordant-mordant.js +0 -11981
  81. package/mordant-mordant.js.map +0 -1
  82. package/resources-library.js +0 -15
  83. package/resources-library.js.map +0 -1
  84. package/wirespec-bin.js +0 -3
  85. package/wirespec-src-compiler-core.js +0 -7894
  86. package/wirespec-src-compiler-core.js.map +0 -1
  87. package/wirespec-src-compiler-lib.js +0 -2603
  88. package/wirespec-src-compiler-lib.js.map +0 -1
  89. package/wirespec-src-converter-avro.js +0 -1650
  90. package/wirespec-src-converter-avro.js.map +0 -1
  91. package/wirespec-src-converter-openapi.js +0 -5366
  92. package/wirespec-src-converter-openapi.js.map +0 -1
  93. package/wirespec-src-plugin-arguments.js +0 -640
  94. package/wirespec-src-plugin-arguments.js.map +0 -1
  95. package/wirespec-src-plugin-cli.js +0 -1222
  96. package/wirespec-src-plugin-cli.js.map +0 -1
  97. package/wirespec-src-plugin-npm.js +0 -480
  98. package/wirespec-src-plugin-npm.js.map +0 -1
  99. package/wirespec-src-tools-generator.js +0 -306
  100. package/wirespec-src-tools-generator.js.map +0 -1
@@ -1,467 +1,486 @@
1
1
  type Nullable<T> = T | null | undefined
2
- export declare namespace community.flock.wirespec.compiler.lib {
3
- interface WsNode {
4
- readonly identifier: string;
5
- readonly __doNotUseOrImplementIt: {
6
- readonly "community.flock.wirespec.compiler.lib.WsNode": unique symbol;
7
- };
8
- }
9
- class WsType implements community.flock.wirespec.compiler.lib.WsNode {
10
- constructor(identifier: string, comment: Nullable<string>, shape: community.flock.wirespec.compiler.lib.WsShape);
11
- get identifier(): string;
12
- get comment(): Nullable<string>;
13
- get shape(): community.flock.wirespec.compiler.lib.WsShape;
14
- copy(identifier?: string, comment?: Nullable<string>, shape?: community.flock.wirespec.compiler.lib.WsShape): community.flock.wirespec.compiler.lib.WsType;
15
- toString(): string;
16
- hashCode(): number;
17
- equals(other: Nullable<any>): boolean;
18
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsNode["__doNotUseOrImplementIt"];
19
- }
20
- class WsShape {
21
- constructor(value: Array<community.flock.wirespec.compiler.lib.WsField>);
22
- get value(): Array<community.flock.wirespec.compiler.lib.WsField>;
23
- copy(value?: Array<community.flock.wirespec.compiler.lib.WsField>): community.flock.wirespec.compiler.lib.WsShape;
24
- toString(): string;
25
- hashCode(): number;
26
- equals(other: Nullable<any>): boolean;
27
- }
28
- class WsEndpoint implements community.flock.wirespec.compiler.lib.WsNode {
29
- constructor(identifier: string, comment: Nullable<string>, method: community.flock.wirespec.compiler.lib.WsMethod, path: Array<community.flock.wirespec.compiler.lib.WsSegment>, query: Array<community.flock.wirespec.compiler.lib.WsField>, headers: Array<community.flock.wirespec.compiler.lib.WsField>, cookies: Array<community.flock.wirespec.compiler.lib.WsField>, requests: Array<community.flock.wirespec.compiler.lib.WsRequest>, responses: Array<community.flock.wirespec.compiler.lib.WsResponse>);
30
- get identifier(): string;
31
- get comment(): Nullable<string>;
32
- get method(): community.flock.wirespec.compiler.lib.WsMethod;
33
- get path(): Array<community.flock.wirespec.compiler.lib.WsSegment>;
34
- get query(): Array<community.flock.wirespec.compiler.lib.WsField>;
35
- get headers(): Array<community.flock.wirespec.compiler.lib.WsField>;
36
- get cookies(): Array<community.flock.wirespec.compiler.lib.WsField>;
37
- get requests(): Array<community.flock.wirespec.compiler.lib.WsRequest>;
38
- get responses(): Array<community.flock.wirespec.compiler.lib.WsResponse>;
39
- copy(identifier?: string, comment?: Nullable<string>, method?: community.flock.wirespec.compiler.lib.WsMethod, path?: Array<community.flock.wirespec.compiler.lib.WsSegment>, query?: Array<community.flock.wirespec.compiler.lib.WsField>, headers?: Array<community.flock.wirespec.compiler.lib.WsField>, cookies?: Array<community.flock.wirespec.compiler.lib.WsField>, requests?: Array<community.flock.wirespec.compiler.lib.WsRequest>, responses?: Array<community.flock.wirespec.compiler.lib.WsResponse>): community.flock.wirespec.compiler.lib.WsEndpoint;
40
- toString(): string;
41
- hashCode(): number;
42
- equals(other: Nullable<any>): boolean;
43
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsNode["__doNotUseOrImplementIt"];
44
- }
45
- class WsEnum implements community.flock.wirespec.compiler.lib.WsNode {
46
- constructor(identifier: string, comment: Nullable<string>, entries: Array<string>);
47
- get identifier(): string;
48
- get comment(): Nullable<string>;
49
- get entries(): Array<string>;
50
- copy(identifier?: string, comment?: Nullable<string>, entries?: Array<string>): community.flock.wirespec.compiler.lib.WsEnum;
51
- toString(): string;
52
- hashCode(): number;
53
- equals(other: Nullable<any>): boolean;
54
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsNode["__doNotUseOrImplementIt"];
55
- }
56
- class WsUnion implements community.flock.wirespec.compiler.lib.WsNode {
57
- constructor(identifier: string, comment: Nullable<string>, entries: Array<community.flock.wirespec.compiler.lib.WsReference>);
58
- get identifier(): string;
59
- get comment(): Nullable<string>;
60
- get entries(): Array<community.flock.wirespec.compiler.lib.WsReference>;
61
- copy(identifier?: string, comment?: Nullable<string>, entries?: Array<community.flock.wirespec.compiler.lib.WsReference>): community.flock.wirespec.compiler.lib.WsUnion;
62
- toString(): string;
63
- hashCode(): number;
64
- equals(other: Nullable<any>): boolean;
65
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsNode["__doNotUseOrImplementIt"];
66
- }
67
- class WsChannel implements community.flock.wirespec.compiler.lib.WsNode {
68
- constructor(identifier: string, comment: Nullable<string>, reference: community.flock.wirespec.compiler.lib.WsReference);
69
- get identifier(): string;
70
- get comment(): Nullable<string>;
71
- get reference(): community.flock.wirespec.compiler.lib.WsReference;
72
- copy(identifier?: string, comment?: Nullable<string>, reference?: community.flock.wirespec.compiler.lib.WsReference): community.flock.wirespec.compiler.lib.WsChannel;
73
- toString(): string;
74
- hashCode(): number;
75
- equals(other: Nullable<any>): boolean;
76
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsNode["__doNotUseOrImplementIt"];
77
- }
78
- class WsRefined implements community.flock.wirespec.compiler.lib.WsNode {
79
- constructor(identifier: string, comment: Nullable<string>, validator: string);
80
- get identifier(): string;
81
- get comment(): Nullable<string>;
82
- get validator(): string;
83
- copy(identifier?: string, comment?: Nullable<string>, validator?: string): community.flock.wirespec.compiler.lib.WsRefined;
84
- toString(): string;
85
- hashCode(): number;
86
- equals(other: Nullable<any>): boolean;
87
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsNode["__doNotUseOrImplementIt"];
88
- }
89
- abstract class WsMethod {
90
- private constructor();
91
- static get GET(): community.flock.wirespec.compiler.lib.WsMethod & {
92
- get name(): "GET";
93
- get ordinal(): 0;
94
- };
95
- static get POST(): community.flock.wirespec.compiler.lib.WsMethod & {
96
- get name(): "POST";
97
- get ordinal(): 1;
98
- };
99
- static get PUT(): community.flock.wirespec.compiler.lib.WsMethod & {
100
- get name(): "PUT";
101
- get ordinal(): 2;
102
- };
103
- static get DELETE(): community.flock.wirespec.compiler.lib.WsMethod & {
104
- get name(): "DELETE";
105
- get ordinal(): 3;
106
- };
107
- static get OPTIONS(): community.flock.wirespec.compiler.lib.WsMethod & {
108
- get name(): "OPTIONS";
109
- get ordinal(): 4;
110
- };
111
- static get HEAD(): community.flock.wirespec.compiler.lib.WsMethod & {
112
- get name(): "HEAD";
113
- get ordinal(): 5;
114
- };
115
- static get PATCH(): community.flock.wirespec.compiler.lib.WsMethod & {
116
- get name(): "PATCH";
117
- get ordinal(): 6;
118
- };
119
- static get TRACE(): community.flock.wirespec.compiler.lib.WsMethod & {
120
- get name(): "TRACE";
121
- get ordinal(): 7;
122
- };
123
- get name(): "GET" | "POST" | "PUT" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE";
124
- get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
125
- static values(): Array<community.flock.wirespec.compiler.lib.WsMethod>;
126
- static valueOf(value: string): community.flock.wirespec.compiler.lib.WsMethod;
127
- }
128
- interface WsSegment {
129
- readonly __doNotUseOrImplementIt: {
130
- readonly "community.flock.wirespec.compiler.lib.WsSegment": unique symbol;
131
- };
132
- }
133
- class WsLiteral implements community.flock.wirespec.compiler.lib.WsSegment {
134
- constructor(value: string);
135
- get value(): string;
136
- copy(value?: string): community.flock.wirespec.compiler.lib.WsLiteral;
137
- toString(): string;
138
- hashCode(): number;
139
- equals(other: Nullable<any>): boolean;
140
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsSegment["__doNotUseOrImplementIt"];
141
- }
142
- class WsParam implements community.flock.wirespec.compiler.lib.WsSegment {
143
- constructor(identifier: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference: community.flock.wirespec.compiler.lib.WsReference);
144
- get identifier(): community.flock.wirespec.compiler.lib.WsFieldIdentifier;
145
- get reference(): community.flock.wirespec.compiler.lib.WsReference;
146
- copy(identifier?: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference?: community.flock.wirespec.compiler.lib.WsReference): community.flock.wirespec.compiler.lib.WsParam;
147
- toString(): string;
148
- hashCode(): number;
149
- equals(other: Nullable<any>): boolean;
150
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsSegment["__doNotUseOrImplementIt"];
151
- }
152
- class Shape {
153
- constructor(value: Array<community.flock.wirespec.compiler.lib.WsField>);
154
- get value(): Array<community.flock.wirespec.compiler.lib.WsField>;
155
- copy(value?: Array<community.flock.wirespec.compiler.lib.WsField>): community.flock.wirespec.compiler.lib.Shape;
156
- toString(): string;
157
- hashCode(): number;
158
- equals(other: Nullable<any>): boolean;
159
- }
160
- class WsField {
161
- constructor(identifier: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference: community.flock.wirespec.compiler.lib.WsReference);
162
- get identifier(): community.flock.wirespec.compiler.lib.WsFieldIdentifier;
163
- get reference(): community.flock.wirespec.compiler.lib.WsReference;
164
- copy(identifier?: community.flock.wirespec.compiler.lib.WsFieldIdentifier, reference?: community.flock.wirespec.compiler.lib.WsReference): community.flock.wirespec.compiler.lib.WsField;
165
- toString(): string;
166
- hashCode(): number;
167
- equals(other: Nullable<any>): boolean;
168
- }
169
- interface WsIdentifier {
170
- readonly __doNotUseOrImplementIt: {
171
- readonly "community.flock.wirespec.compiler.lib.WsIdentifier": unique symbol;
172
- };
173
- }
174
- class WsClassIdentifier implements community.flock.wirespec.compiler.lib.WsIdentifier {
175
- constructor(value: string);
176
- get value(): string;
177
- copy(value?: string): community.flock.wirespec.compiler.lib.WsClassIdentifier;
178
- toString(): string;
179
- hashCode(): number;
180
- equals(other: Nullable<any>): boolean;
181
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsIdentifier["__doNotUseOrImplementIt"];
182
- }
183
- class WsFieldIdentifier implements community.flock.wirespec.compiler.lib.WsIdentifier {
184
- constructor(value: string);
185
- get value(): string;
186
- copy(value?: string): community.flock.wirespec.compiler.lib.WsFieldIdentifier;
187
- toString(): string;
188
- hashCode(): number;
189
- equals(other: Nullable<any>): boolean;
190
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsIdentifier["__doNotUseOrImplementIt"];
191
- }
192
- interface WsReference {
193
- readonly isNullable: boolean;
194
- readonly __doNotUseOrImplementIt: {
195
- readonly "community.flock.wirespec.compiler.lib.WsReference": unique symbol;
196
- };
197
- }
198
- class WsAny implements community.flock.wirespec.compiler.lib.WsReference {
199
- constructor(isNullable: boolean);
200
- get isNullable(): boolean;
201
- copy(isNullable?: boolean): community.flock.wirespec.compiler.lib.WsAny;
202
- toString(): string;
203
- hashCode(): number;
204
- equals(other: Nullable<any>): boolean;
205
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsReference["__doNotUseOrImplementIt"];
206
- }
207
- class WsUnit implements community.flock.wirespec.compiler.lib.WsReference {
208
- constructor(isNullable: boolean);
209
- get isNullable(): boolean;
210
- copy(isNullable?: boolean): community.flock.wirespec.compiler.lib.WsUnit;
211
- toString(): string;
212
- hashCode(): number;
213
- equals(other: Nullable<any>): boolean;
214
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsReference["__doNotUseOrImplementIt"];
215
- }
216
- class WsIterable implements community.flock.wirespec.compiler.lib.WsReference {
217
- constructor(reference: community.flock.wirespec.compiler.lib.WsReference, isNullable: boolean);
218
- get reference(): community.flock.wirespec.compiler.lib.WsReference;
219
- get isNullable(): boolean;
220
- copy(reference?: community.flock.wirespec.compiler.lib.WsReference, isNullable?: boolean): community.flock.wirespec.compiler.lib.WsIterable;
221
- toString(): string;
222
- hashCode(): number;
223
- equals(other: Nullable<any>): boolean;
224
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsReference["__doNotUseOrImplementIt"];
225
- }
226
- class WsDict implements community.flock.wirespec.compiler.lib.WsReference {
227
- constructor(reference: community.flock.wirespec.compiler.lib.WsReference, isNullable: boolean);
228
- get reference(): community.flock.wirespec.compiler.lib.WsReference;
229
- get isNullable(): boolean;
230
- copy(reference?: community.flock.wirespec.compiler.lib.WsReference, isNullable?: boolean): community.flock.wirespec.compiler.lib.WsDict;
231
- toString(): string;
232
- hashCode(): number;
233
- equals(other: Nullable<any>): boolean;
234
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsReference["__doNotUseOrImplementIt"];
235
- }
236
- class WsCustom implements community.flock.wirespec.compiler.lib.WsReference {
237
- constructor(value: string, isNullable: boolean);
238
- get value(): string;
239
- get isNullable(): boolean;
240
- copy(value?: string, isNullable?: boolean): community.flock.wirespec.compiler.lib.WsCustom;
241
- toString(): string;
242
- hashCode(): number;
243
- equals(other: Nullable<any>): boolean;
244
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsReference["__doNotUseOrImplementIt"];
245
- }
246
- class WsPrimitive implements community.flock.wirespec.compiler.lib.WsReference {
247
- constructor(type: community.flock.wirespec.compiler.lib.WsPrimitiveType, isNullable: boolean);
248
- get type(): community.flock.wirespec.compiler.lib.WsPrimitiveType;
249
- get isNullable(): boolean;
250
- copy(type?: community.flock.wirespec.compiler.lib.WsPrimitiveType, isNullable?: boolean): community.flock.wirespec.compiler.lib.WsPrimitive;
251
- toString(): string;
252
- hashCode(): number;
253
- equals(other: Nullable<any>): boolean;
254
- readonly __doNotUseOrImplementIt: community.flock.wirespec.compiler.lib.WsReference["__doNotUseOrImplementIt"];
255
- }
256
- abstract class WsPrimitiveType {
257
- private constructor();
258
- static get String(): community.flock.wirespec.compiler.lib.WsPrimitiveType & {
259
- get name(): "String";
260
- get ordinal(): 0;
261
- };
262
- static get Integer(): community.flock.wirespec.compiler.lib.WsPrimitiveType & {
263
- get name(): "Integer";
264
- get ordinal(): 1;
265
- };
266
- static get Number(): community.flock.wirespec.compiler.lib.WsPrimitiveType & {
267
- get name(): "Number";
268
- get ordinal(): 2;
269
- };
270
- static get Boolean(): community.flock.wirespec.compiler.lib.WsPrimitiveType & {
271
- get name(): "Boolean";
272
- get ordinal(): 3;
273
- };
274
- static get Bytes(): community.flock.wirespec.compiler.lib.WsPrimitiveType & {
275
- get name(): "Bytes";
276
- get ordinal(): 4;
277
- };
278
- get name(): "String" | "Integer" | "Number" | "Boolean" | "Bytes";
279
- get ordinal(): 0 | 1 | 2 | 3 | 4;
280
- static values(): Array<community.flock.wirespec.compiler.lib.WsPrimitiveType>;
281
- static valueOf(value: string): community.flock.wirespec.compiler.lib.WsPrimitiveType;
282
- }
283
- class WsRequest {
284
- constructor(content: Nullable<community.flock.wirespec.compiler.lib.WsContent>);
285
- get content(): Nullable<community.flock.wirespec.compiler.lib.WsContent>;
286
- copy(content?: Nullable<community.flock.wirespec.compiler.lib.WsContent>): community.flock.wirespec.compiler.lib.WsRequest;
287
- toString(): string;
288
- hashCode(): number;
289
- equals(other: Nullable<any>): boolean;
290
- }
291
- class WsResponse {
292
- constructor(status: string, headers: Array<community.flock.wirespec.compiler.lib.WsField>, content: Nullable<community.flock.wirespec.compiler.lib.WsContent>);
293
- get status(): string;
294
- get headers(): Array<community.flock.wirespec.compiler.lib.WsField>;
295
- get content(): Nullable<community.flock.wirespec.compiler.lib.WsContent>;
296
- copy(status?: string, headers?: Array<community.flock.wirespec.compiler.lib.WsField>, content?: Nullable<community.flock.wirespec.compiler.lib.WsContent>): community.flock.wirespec.compiler.lib.WsResponse;
297
- toString(): string;
298
- hashCode(): number;
299
- equals(other: Nullable<any>): boolean;
300
- }
301
- class WsContent {
302
- constructor(type: string, reference: community.flock.wirespec.compiler.lib.WsReference, isNullable?: boolean);
303
- get type(): string;
304
- get reference(): community.flock.wirespec.compiler.lib.WsReference;
305
- get isNullable(): boolean;
306
- copy(type?: string, reference?: community.flock.wirespec.compiler.lib.WsReference, isNullable?: boolean): community.flock.wirespec.compiler.lib.WsContent;
307
- toString(): string;
308
- hashCode(): number;
309
- equals(other: Nullable<any>): boolean;
310
- }
311
- }
312
- export declare namespace community.flock.wirespec.compiler.lib {
313
- class WsCompilationResult {
314
- constructor(result?: Nullable<community.flock.wirespec.compiler.lib.WsCompiled>, errors?: Array<community.flock.wirespec.compiler.lib.WsError>);
315
- get result(): Nullable<community.flock.wirespec.compiler.lib.WsCompiled>;
316
- get errors(): Array<community.flock.wirespec.compiler.lib.WsError>;
317
- }
318
- class WsCompiled {
319
- constructor(value: Array<community.flock.wirespec.compiler.lib.WsEmitted>);
320
- get value(): Array<community.flock.wirespec.compiler.lib.WsEmitted>;
321
- }
322
- class WsCompiledFile {
323
- constructor(name: string, value: string);
324
- get name(): string;
325
- get value(): string;
326
- }
327
- class WsParseResult {
328
- constructor(result?: Nullable<Array<community.flock.wirespec.compiler.lib.WsNode>>, errors?: Nullable<Array<community.flock.wirespec.compiler.lib.WsError>>);
329
- get result(): Nullable<Array<community.flock.wirespec.compiler.lib.WsNode>>;
330
- get errors(): Nullable<Array<community.flock.wirespec.compiler.lib.WsError>>;
331
- }
332
- class WsStringResult {
333
- constructor(result?: Nullable<string>, errors?: Nullable<Array<community.flock.wirespec.compiler.lib.WsError>>);
334
- get result(): Nullable<string>;
335
- get errors(): Nullable<Array<community.flock.wirespec.compiler.lib.WsError>>;
336
- }
337
- class WsEmitted {
338
- constructor(typeName: string, result: string);
339
- get typeName(): string;
340
- get result(): string;
341
- }
342
- }
343
- export declare namespace community.flock.wirespec.compiler.lib {
344
- class WsTokenResult {
345
- constructor(tokens?: Nullable<community.flock.wirespec.compiler.lib.WsTokens>, error?: Nullable<community.flock.wirespec.compiler.lib.WsError>);
346
- get tokens(): Nullable<community.flock.wirespec.compiler.lib.WsTokens>;
347
- get error(): Nullable<community.flock.wirespec.compiler.lib.WsError>;
348
- copy(tokens?: Nullable<community.flock.wirespec.compiler.lib.WsTokens>, error?: Nullable<community.flock.wirespec.compiler.lib.WsError>): community.flock.wirespec.compiler.lib.WsTokenResult;
349
- toString(): string;
350
- hashCode(): number;
351
- equals(other: Nullable<any>): boolean;
352
- }
353
- class WsTokens {
354
- constructor(value: Array<community.flock.wirespec.compiler.lib.WsToken>);
355
- get value(): Array<community.flock.wirespec.compiler.lib.WsToken>;
356
- equals(other: Nullable<any>): boolean;
357
- hashCode(): number;
358
- copy(value?: Array<community.flock.wirespec.compiler.lib.WsToken>): community.flock.wirespec.compiler.lib.WsTokens;
359
- toString(): string;
360
- }
361
- class WsToken {
362
- constructor(type: string, value: string, coordinates?: community.flock.wirespec.compiler.lib.WsCoordinates);
363
- get type(): string;
364
- get value(): string;
365
- get coordinates(): community.flock.wirespec.compiler.lib.WsCoordinates;
366
- copy(type?: string, value?: string, coordinates?: community.flock.wirespec.compiler.lib.WsCoordinates): community.flock.wirespec.compiler.lib.WsToken;
367
- toString(): string;
368
- hashCode(): number;
369
- equals(other: Nullable<any>): boolean;
370
- }
371
- class WsCoordinates {
372
- constructor(line?: number, position?: number, idxAndLength?: community.flock.wirespec.compiler.lib.WsIndex);
373
- get line(): number;
374
- get position(): number;
375
- get idxAndLength(): community.flock.wirespec.compiler.lib.WsIndex;
376
- copy(line?: number, position?: number, idxAndLength?: community.flock.wirespec.compiler.lib.WsIndex): community.flock.wirespec.compiler.lib.WsCoordinates;
377
- toString(): string;
378
- hashCode(): number;
379
- equals(other: Nullable<any>): boolean;
380
- }
381
- class WsIndex {
382
- constructor(idx?: number, length?: number);
383
- get idx(): number;
384
- get length(): number;
385
- copy(idx?: number, length?: number): community.flock.wirespec.compiler.lib.WsIndex;
386
- toString(): string;
387
- hashCode(): number;
388
- equals(other: Nullable<any>): boolean;
389
- }
390
- }
391
- export declare namespace community.flock.wirespec.compiler.lib {
392
- class WsError {
393
- constructor(line: number, position: number, index: number, length: number, value: string);
394
- get line(): number;
395
- get position(): number;
396
- get index(): number;
397
- get length(): number;
398
- get value(): string;
399
- copy(line?: number, position?: number, index?: number, length?: number, value?: string): community.flock.wirespec.compiler.lib.WsError;
400
- toString(): string;
401
- hashCode(): number;
402
- equals(other: Nullable<any>): boolean;
403
- }
404
- }
405
- export declare namespace community.flock.wirespec.plugin.cli {
406
- function cli(args: Array<string>): void;
407
- function parser(source: string): Array<community.flock.wirespec.compiler.lib.WsNode>;
408
- }
409
- export declare namespace community.flock.wirespec.plugin.npm {
410
- abstract class Emitters {
411
- private constructor();
412
- static get WIRESPEC(): community.flock.wirespec.plugin.npm.Emitters & {
413
- get name(): "WIRESPEC";
414
- get ordinal(): 0;
415
- };
416
- static get TYPESCRIPT(): community.flock.wirespec.plugin.npm.Emitters & {
417
- get name(): "TYPESCRIPT";
418
- get ordinal(): 1;
419
- };
420
- static get JAVA(): community.flock.wirespec.plugin.npm.Emitters & {
421
- get name(): "JAVA";
422
- get ordinal(): 2;
423
- };
424
- static get KOTLIN(): community.flock.wirespec.plugin.npm.Emitters & {
425
- get name(): "KOTLIN";
426
- get ordinal(): 3;
427
- };
428
- static get SCALA(): community.flock.wirespec.plugin.npm.Emitters & {
429
- get name(): "SCALA";
430
- get ordinal(): 4;
431
- };
432
- static get OPENAPI_V2(): community.flock.wirespec.plugin.npm.Emitters & {
433
- get name(): "OPENAPI_V2";
434
- get ordinal(): 5;
435
- };
436
- static get OPENAPI_V3(): community.flock.wirespec.plugin.npm.Emitters & {
437
- get name(): "OPENAPI_V3";
438
- get ordinal(): 6;
439
- };
440
- get name(): "WIRESPEC" | "TYPESCRIPT" | "JAVA" | "KOTLIN" | "SCALA" | "OPENAPI_V2" | "OPENAPI_V3";
441
- get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6;
442
- static values(): Array<community.flock.wirespec.plugin.npm.Emitters>;
443
- static valueOf(value: string): community.flock.wirespec.plugin.npm.Emitters;
444
- }
445
- abstract class Converters {
446
- private constructor();
447
- static get OPENAPI_V2(): community.flock.wirespec.plugin.npm.Converters & {
448
- get name(): "OPENAPI_V2";
449
- get ordinal(): 0;
450
- };
451
- static get OPENAPI_V3(): community.flock.wirespec.plugin.npm.Converters & {
452
- get name(): "OPENAPI_V3";
453
- get ordinal(): 1;
454
- };
455
- get name(): "OPENAPI_V2" | "OPENAPI_V3";
456
- get ordinal(): 0 | 1;
457
- static values(): Array<community.flock.wirespec.plugin.npm.Converters>;
458
- static valueOf(value: string): community.flock.wirespec.plugin.npm.Converters;
459
- }
460
- function cli(args: Array<string>): void;
461
- function tokenize(source: string): Array<community.flock.wirespec.compiler.lib.WsToken>;
462
- function parse(source: string): community.flock.wirespec.compiler.lib.WsParseResult;
463
- function convert(source: string, converters: community.flock.wirespec.plugin.npm.Converters): Array<community.flock.wirespec.compiler.lib.WsNode>;
464
- function generate(source: string, type: string): community.flock.wirespec.compiler.lib.WsStringResult;
465
- function emit(ast: Array<community.flock.wirespec.compiler.lib.WsNode>, emitter: community.flock.wirespec.plugin.npm.Emitters, packageName: string): Array<community.flock.wirespec.compiler.lib.WsEmitted>;
466
- }
467
- export as namespace community_flock_wirespec_plugin_npm_npm;
2
+ export declare interface WsNode {
3
+ readonly identifier: string;
4
+ readonly __doNotUseOrImplementIt: {
5
+ readonly "community.flock.wirespec.compiler.lib.WsNode": unique symbol;
6
+ };
7
+ }
8
+ export declare class WsType implements WsNode {
9
+ constructor(identifier: string, comment: Nullable<string>, shape: WsShape);
10
+ get identifier(): string;
11
+ get comment(): Nullable<string>;
12
+ get shape(): WsShape;
13
+ copy(identifier?: string, comment?: Nullable<string>, shape?: WsShape): WsType;
14
+ toString(): string;
15
+ hashCode(): number;
16
+ equals(other: Nullable<any>): boolean;
17
+ readonly __doNotUseOrImplementIt: WsNode["__doNotUseOrImplementIt"];
18
+ }
19
+ export declare class WsShape {
20
+ constructor(value: Array<WsField>);
21
+ get value(): Array<WsField>;
22
+ copy(value?: Array<WsField>): WsShape;
23
+ toString(): string;
24
+ hashCode(): number;
25
+ equals(other: Nullable<any>): boolean;
26
+ }
27
+ export declare class WsEndpoint implements WsNode {
28
+ constructor(identifier: string, comment: Nullable<string>, method: WsMethod, path: Array<WsSegment>, query: Array<WsField>, headers: Array<WsField>, cookies: Array<WsField>, requests: Array<WsRequest>, responses: Array<WsResponse>);
29
+ get identifier(): string;
30
+ get comment(): Nullable<string>;
31
+ get method(): WsMethod;
32
+ get path(): Array<WsSegment>;
33
+ get query(): Array<WsField>;
34
+ get headers(): Array<WsField>;
35
+ get cookies(): Array<WsField>;
36
+ get requests(): Array<WsRequest>;
37
+ get responses(): Array<WsResponse>;
38
+ copy(identifier?: string, comment?: Nullable<string>, method?: WsMethod, path?: Array<WsSegment>, query?: Array<WsField>, headers?: Array<WsField>, cookies?: Array<WsField>, requests?: Array<WsRequest>, responses?: Array<WsResponse>): WsEndpoint;
39
+ toString(): string;
40
+ hashCode(): number;
41
+ equals(other: Nullable<any>): boolean;
42
+ readonly __doNotUseOrImplementIt: WsNode["__doNotUseOrImplementIt"];
43
+ }
44
+ export declare class WsEnum implements WsNode {
45
+ constructor(identifier: string, comment: Nullable<string>, entries: Array<string>);
46
+ get identifier(): string;
47
+ get comment(): Nullable<string>;
48
+ get entries(): Array<string>;
49
+ copy(identifier?: string, comment?: Nullable<string>, entries?: Array<string>): WsEnum;
50
+ toString(): string;
51
+ hashCode(): number;
52
+ equals(other: Nullable<any>): boolean;
53
+ readonly __doNotUseOrImplementIt: WsNode["__doNotUseOrImplementIt"];
54
+ }
55
+ export declare class WsUnion implements WsNode {
56
+ constructor(identifier: string, comment: Nullable<string>, entries: Array<WsReference>);
57
+ get identifier(): string;
58
+ get comment(): Nullable<string>;
59
+ get entries(): Array<WsReference>;
60
+ copy(identifier?: string, comment?: Nullable<string>, entries?: Array<WsReference>): WsUnion;
61
+ toString(): string;
62
+ hashCode(): number;
63
+ equals(other: Nullable<any>): boolean;
64
+ readonly __doNotUseOrImplementIt: WsNode["__doNotUseOrImplementIt"];
65
+ }
66
+ export declare class WsChannel implements WsNode {
67
+ constructor(identifier: string, comment: Nullable<string>, reference: WsReference);
68
+ get identifier(): string;
69
+ get comment(): Nullable<string>;
70
+ get reference(): WsReference;
71
+ copy(identifier?: string, comment?: Nullable<string>, reference?: WsReference): WsChannel;
72
+ toString(): string;
73
+ hashCode(): number;
74
+ equals(other: Nullable<any>): boolean;
75
+ readonly __doNotUseOrImplementIt: WsNode["__doNotUseOrImplementIt"];
76
+ }
77
+ export declare class WsRefined implements WsNode {
78
+ constructor(identifier: string, comment: Nullable<string>, validator: string);
79
+ get identifier(): string;
80
+ get comment(): Nullable<string>;
81
+ get validator(): string;
82
+ copy(identifier?: string, comment?: Nullable<string>, validator?: string): WsRefined;
83
+ toString(): string;
84
+ hashCode(): number;
85
+ equals(other: Nullable<any>): boolean;
86
+ readonly __doNotUseOrImplementIt: WsNode["__doNotUseOrImplementIt"];
87
+ }
88
+ export declare abstract class WsMethod {
89
+ private constructor();
90
+ static get GET(): WsMethod & {
91
+ get name(): "GET";
92
+ get ordinal(): 0;
93
+ };
94
+ static get POST(): WsMethod & {
95
+ get name(): "POST";
96
+ get ordinal(): 1;
97
+ };
98
+ static get PUT(): WsMethod & {
99
+ get name(): "PUT";
100
+ get ordinal(): 2;
101
+ };
102
+ static get DELETE(): WsMethod & {
103
+ get name(): "DELETE";
104
+ get ordinal(): 3;
105
+ };
106
+ static get OPTIONS(): WsMethod & {
107
+ get name(): "OPTIONS";
108
+ get ordinal(): 4;
109
+ };
110
+ static get HEAD(): WsMethod & {
111
+ get name(): "HEAD";
112
+ get ordinal(): 5;
113
+ };
114
+ static get PATCH(): WsMethod & {
115
+ get name(): "PATCH";
116
+ get ordinal(): 6;
117
+ };
118
+ static get TRACE(): WsMethod & {
119
+ get name(): "TRACE";
120
+ get ordinal(): 7;
121
+ };
122
+ get name(): "GET" | "POST" | "PUT" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH" | "TRACE";
123
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
124
+ static values(): Array<WsMethod>;
125
+ static valueOf(value: string): WsMethod;
126
+ }
127
+ export declare interface WsSegment {
128
+ readonly __doNotUseOrImplementIt: {
129
+ readonly "community.flock.wirespec.compiler.lib.WsSegment": unique symbol;
130
+ };
131
+ }
132
+ export declare class WsLiteral implements WsSegment {
133
+ constructor(value: string);
134
+ get value(): string;
135
+ copy(value?: string): WsLiteral;
136
+ toString(): string;
137
+ hashCode(): number;
138
+ equals(other: Nullable<any>): boolean;
139
+ readonly __doNotUseOrImplementIt: WsSegment["__doNotUseOrImplementIt"];
140
+ }
141
+ export declare class WsParam implements WsSegment {
142
+ constructor(identifier: WsFieldIdentifier, reference: WsReference);
143
+ get identifier(): WsFieldIdentifier;
144
+ get reference(): WsReference;
145
+ copy(identifier?: WsFieldIdentifier, reference?: WsReference): WsParam;
146
+ toString(): string;
147
+ hashCode(): number;
148
+ equals(other: Nullable<any>): boolean;
149
+ readonly __doNotUseOrImplementIt: WsSegment["__doNotUseOrImplementIt"];
150
+ }
151
+ export declare class Shape {
152
+ constructor(value: Array<WsField>);
153
+ get value(): Array<WsField>;
154
+ copy(value?: Array<WsField>): Shape;
155
+ toString(): string;
156
+ hashCode(): number;
157
+ equals(other: Nullable<any>): boolean;
158
+ }
159
+ export declare class WsField {
160
+ constructor(identifier: WsFieldIdentifier, reference: WsReference);
161
+ get identifier(): WsFieldIdentifier;
162
+ get reference(): WsReference;
163
+ copy(identifier?: WsFieldIdentifier, reference?: WsReference): WsField;
164
+ toString(): string;
165
+ hashCode(): number;
166
+ equals(other: Nullable<any>): boolean;
167
+ }
168
+ export declare interface WsIdentifier {
169
+ readonly __doNotUseOrImplementIt: {
170
+ readonly "community.flock.wirespec.compiler.lib.WsIdentifier": unique symbol;
171
+ };
172
+ }
173
+ export declare class WsClassIdentifier implements WsIdentifier {
174
+ constructor(value: string);
175
+ get value(): string;
176
+ copy(value?: string): WsClassIdentifier;
177
+ toString(): string;
178
+ hashCode(): number;
179
+ equals(other: Nullable<any>): boolean;
180
+ readonly __doNotUseOrImplementIt: WsIdentifier["__doNotUseOrImplementIt"];
181
+ }
182
+ export declare class WsFieldIdentifier implements WsIdentifier {
183
+ constructor(value: string);
184
+ get value(): string;
185
+ copy(value?: string): WsFieldIdentifier;
186
+ toString(): string;
187
+ hashCode(): number;
188
+ equals(other: Nullable<any>): boolean;
189
+ readonly __doNotUseOrImplementIt: WsIdentifier["__doNotUseOrImplementIt"];
190
+ }
191
+ export declare interface WsReference {
192
+ readonly isNullable: boolean;
193
+ readonly __doNotUseOrImplementIt: {
194
+ readonly "community.flock.wirespec.compiler.lib.WsReference": unique symbol;
195
+ };
196
+ }
197
+ export declare class WsAny implements WsReference {
198
+ constructor(isNullable: boolean);
199
+ get isNullable(): boolean;
200
+ copy(isNullable?: boolean): WsAny;
201
+ toString(): string;
202
+ hashCode(): number;
203
+ equals(other: Nullable<any>): boolean;
204
+ readonly __doNotUseOrImplementIt: WsReference["__doNotUseOrImplementIt"];
205
+ }
206
+ export declare class WsUnit implements WsReference {
207
+ constructor(isNullable: boolean);
208
+ get isNullable(): boolean;
209
+ copy(isNullable?: boolean): WsUnit;
210
+ toString(): string;
211
+ hashCode(): number;
212
+ equals(other: Nullable<any>): boolean;
213
+ readonly __doNotUseOrImplementIt: WsReference["__doNotUseOrImplementIt"];
214
+ }
215
+ export declare class WsIterable implements WsReference {
216
+ constructor(reference: WsReference, isNullable: boolean);
217
+ get reference(): WsReference;
218
+ get isNullable(): boolean;
219
+ copy(reference?: WsReference, isNullable?: boolean): WsIterable;
220
+ toString(): string;
221
+ hashCode(): number;
222
+ equals(other: Nullable<any>): boolean;
223
+ readonly __doNotUseOrImplementIt: WsReference["__doNotUseOrImplementIt"];
224
+ }
225
+ export declare class WsDict implements WsReference {
226
+ constructor(reference: WsReference, isNullable: boolean);
227
+ get reference(): WsReference;
228
+ get isNullable(): boolean;
229
+ copy(reference?: WsReference, isNullable?: boolean): WsDict;
230
+ toString(): string;
231
+ hashCode(): number;
232
+ equals(other: Nullable<any>): boolean;
233
+ readonly __doNotUseOrImplementIt: WsReference["__doNotUseOrImplementIt"];
234
+ }
235
+ export declare class WsCustom implements WsReference {
236
+ constructor(value: string, isNullable: boolean);
237
+ get value(): string;
238
+ get isNullable(): boolean;
239
+ copy(value?: string, isNullable?: boolean): WsCustom;
240
+ toString(): string;
241
+ hashCode(): number;
242
+ equals(other: Nullable<any>): boolean;
243
+ readonly __doNotUseOrImplementIt: WsReference["__doNotUseOrImplementIt"];
244
+ }
245
+ export declare class WsPrimitive implements WsReference {
246
+ constructor(type: WsPrimitiveType, isNullable: boolean);
247
+ get type(): WsPrimitiveType;
248
+ get isNullable(): boolean;
249
+ copy(type?: WsPrimitiveType, isNullable?: boolean): WsPrimitive;
250
+ toString(): string;
251
+ hashCode(): number;
252
+ equals(other: Nullable<any>): boolean;
253
+ readonly __doNotUseOrImplementIt: WsReference["__doNotUseOrImplementIt"];
254
+ }
255
+ export declare abstract class WsPrimitiveType {
256
+ private constructor();
257
+ static get String(): WsPrimitiveType & {
258
+ get name(): "String";
259
+ get ordinal(): 0;
260
+ };
261
+ static get Integer(): WsPrimitiveType & {
262
+ get name(): "Integer";
263
+ get ordinal(): 1;
264
+ };
265
+ static get Number(): WsPrimitiveType & {
266
+ get name(): "Number";
267
+ get ordinal(): 2;
268
+ };
269
+ static get Boolean(): WsPrimitiveType & {
270
+ get name(): "Boolean";
271
+ get ordinal(): 3;
272
+ };
273
+ static get Bytes(): WsPrimitiveType & {
274
+ get name(): "Bytes";
275
+ get ordinal(): 4;
276
+ };
277
+ get name(): "String" | "Integer" | "Number" | "Boolean" | "Bytes";
278
+ get ordinal(): 0 | 1 | 2 | 3 | 4;
279
+ static values(): Array<WsPrimitiveType>;
280
+ static valueOf(value: string): WsPrimitiveType;
281
+ }
282
+ export declare class WsRequest {
283
+ constructor(content: Nullable<WsContent>);
284
+ get content(): Nullable<WsContent>;
285
+ copy(content?: Nullable<WsContent>): WsRequest;
286
+ toString(): string;
287
+ hashCode(): number;
288
+ equals(other: Nullable<any>): boolean;
289
+ }
290
+ export declare class WsResponse {
291
+ constructor(status: string, headers: Array<WsField>, content: Nullable<WsContent>);
292
+ get status(): string;
293
+ get headers(): Array<WsField>;
294
+ get content(): Nullable<WsContent>;
295
+ copy(status?: string, headers?: Array<WsField>, content?: Nullable<WsContent>): WsResponse;
296
+ toString(): string;
297
+ hashCode(): number;
298
+ equals(other: Nullable<any>): boolean;
299
+ }
300
+ export declare class WsContent {
301
+ constructor(type: string, reference: WsReference, isNullable?: boolean);
302
+ get type(): string;
303
+ get reference(): WsReference;
304
+ get isNullable(): boolean;
305
+ copy(type?: string, reference?: WsReference, isNullable?: boolean): WsContent;
306
+ toString(): string;
307
+ hashCode(): number;
308
+ equals(other: Nullable<any>): boolean;
309
+ }
310
+ export declare class WsCompilationResult {
311
+ constructor(result?: Nullable<WsCompiled>, errors?: Array<WsError>);
312
+ get result(): Nullable<WsCompiled>;
313
+ get errors(): Array<WsError>;
314
+ }
315
+ export declare class WsCompiled {
316
+ constructor(value: Array<WsEmitted>);
317
+ get value(): Array<WsEmitted>;
318
+ }
319
+ export declare class WsCompiledFile {
320
+ constructor(name: string, value: string);
321
+ get name(): string;
322
+ get value(): string;
323
+ }
324
+ export declare class WsParseResult {
325
+ constructor(result?: Nullable<Array<WsNode>>, errors?: Nullable<Array<WsError>>);
326
+ get result(): Nullable<Array<WsNode>>;
327
+ get errors(): Nullable<Array<WsError>>;
328
+ }
329
+ export declare class WsStringResult {
330
+ constructor(result?: Nullable<string>, errors?: Nullable<Array<WsError>>);
331
+ get result(): Nullable<string>;
332
+ get errors(): Nullable<Array<WsError>>;
333
+ }
334
+ export declare class WsEmitted {
335
+ constructor(typeName: string, result: string);
336
+ get typeName(): string;
337
+ get result(): string;
338
+ }
339
+ export declare class WsTokenResult {
340
+ constructor(tokens?: Nullable<WsTokens>, error?: Nullable<WsError>);
341
+ get tokens(): Nullable<WsTokens>;
342
+ get error(): Nullable<WsError>;
343
+ copy(tokens?: Nullable<WsTokens>, error?: Nullable<WsError>): WsTokenResult;
344
+ toString(): string;
345
+ hashCode(): number;
346
+ equals(other: Nullable<any>): boolean;
347
+ }
348
+ export declare class WsTokens {
349
+ constructor(value: Array<WsToken>);
350
+ get value(): Array<WsToken>;
351
+ equals(other: Nullable<any>): boolean;
352
+ hashCode(): number;
353
+ copy(value?: Array<WsToken>): WsTokens;
354
+ toString(): string;
355
+ }
356
+ export declare class WsToken {
357
+ constructor(type: string, value: string, coordinates?: WsCoordinates);
358
+ get type(): string;
359
+ get value(): string;
360
+ get coordinates(): WsCoordinates;
361
+ copy(type?: string, value?: string, coordinates?: WsCoordinates): WsToken;
362
+ toString(): string;
363
+ hashCode(): number;
364
+ equals(other: Nullable<any>): boolean;
365
+ }
366
+ export declare class WsCoordinates {
367
+ constructor(line?: number, position?: number, idxAndLength?: WsIndex);
368
+ get line(): number;
369
+ get position(): number;
370
+ get idxAndLength(): WsIndex;
371
+ copy(line?: number, position?: number, idxAndLength?: WsIndex): WsCoordinates;
372
+ toString(): string;
373
+ hashCode(): number;
374
+ equals(other: Nullable<any>): boolean;
375
+ }
376
+ export declare class WsIndex {
377
+ constructor(idx?: number, length?: number);
378
+ get idx(): number;
379
+ get length(): number;
380
+ copy(idx?: number, length?: number): WsIndex;
381
+ toString(): string;
382
+ hashCode(): number;
383
+ equals(other: Nullable<any>): boolean;
384
+ }
385
+ export declare class WsError {
386
+ constructor(line: number, position: number, index: number, length: number, value: string);
387
+ get line(): number;
388
+ get position(): number;
389
+ get index(): number;
390
+ get length(): number;
391
+ get value(): string;
392
+ copy(line?: number, position?: number, index?: number, length?: number, value?: string): WsError;
393
+ toString(): string;
394
+ hashCode(): number;
395
+ equals(other: Nullable<any>): boolean;
396
+ }
397
+ export declare function cli(args: Array<string>): void;
398
+ export declare function parser(source: string): Array<WsNode>;
399
+ export declare abstract class Shared {
400
+ private constructor();
401
+ static get KOTLIN(): Shared & {
402
+ get name(): "KOTLIN";
403
+ get ordinal(): 0;
404
+ };
405
+ static get JAVA(): Shared & {
406
+ get name(): "JAVA";
407
+ get ordinal(): 1;
408
+ };
409
+ static get SCALA(): Shared & {
410
+ get name(): "SCALA";
411
+ get ordinal(): 2;
412
+ };
413
+ static get TYPESCRIPT(): Shared & {
414
+ get name(): "TYPESCRIPT";
415
+ get ordinal(): 3;
416
+ };
417
+ get name(): "KOTLIN" | "JAVA" | "SCALA" | "TYPESCRIPT";
418
+ get ordinal(): 0 | 1 | 2 | 3;
419
+ get source(): string;
420
+ static values(): Array<Shared>;
421
+ static valueOf(value: string): Shared;
422
+ }
423
+ export declare abstract class Emitters {
424
+ private constructor();
425
+ static get WIRESPEC(): Emitters & {
426
+ get name(): "WIRESPEC";
427
+ get ordinal(): 0;
428
+ };
429
+ static get TYPESCRIPT(): Emitters & {
430
+ get name(): "TYPESCRIPT";
431
+ get ordinal(): 1;
432
+ };
433
+ static get JAVA(): Emitters & {
434
+ get name(): "JAVA";
435
+ get ordinal(): 2;
436
+ };
437
+ static get KOTLIN(): Emitters & {
438
+ get name(): "KOTLIN";
439
+ get ordinal(): 3;
440
+ };
441
+ static get SCALA(): Emitters & {
442
+ get name(): "SCALA";
443
+ get ordinal(): 4;
444
+ };
445
+ static get OPENAPI_V2(): Emitters & {
446
+ get name(): "OPENAPI_V2";
447
+ get ordinal(): 5;
448
+ };
449
+ static get OPENAPI_V3(): Emitters & {
450
+ get name(): "OPENAPI_V3";
451
+ get ordinal(): 6;
452
+ };
453
+ static get AVRO(): Emitters & {
454
+ get name(): "AVRO";
455
+ get ordinal(): 7;
456
+ };
457
+ get name(): "WIRESPEC" | "TYPESCRIPT" | "JAVA" | "KOTLIN" | "SCALA" | "OPENAPI_V2" | "OPENAPI_V3" | "AVRO";
458
+ get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
459
+ static values(): Array<Emitters>;
460
+ static valueOf(value: string): Emitters;
461
+ }
462
+ export declare abstract class Converters {
463
+ private constructor();
464
+ static get OPENAPI_V2(): Converters & {
465
+ get name(): "OPENAPI_V2";
466
+ get ordinal(): 0;
467
+ };
468
+ static get OPENAPI_V3(): Converters & {
469
+ get name(): "OPENAPI_V3";
470
+ get ordinal(): 1;
471
+ };
472
+ static get AVRO(): Converters & {
473
+ get name(): "AVRO";
474
+ get ordinal(): 2;
475
+ };
476
+ get name(): "OPENAPI_V2" | "OPENAPI_V3" | "AVRO";
477
+ get ordinal(): 0 | 1 | 2;
478
+ static values(): Array<Converters>;
479
+ static valueOf(value: string): Converters;
480
+ }
481
+ export declare function cli(args: Array<string>): void;
482
+ export declare function tokenize(source: string): Array<WsToken>;
483
+ export declare function parse(source: string): WsParseResult;
484
+ export declare function convert(source: string, converters: Converters): Array<WsNode>;
485
+ export declare function generate(source: string, type: string): WsStringResult;
486
+ export declare function emit(ast: Array<WsNode>, emitter: Emitters, packageName: string): Array<WsEmitted>;