@gitbook/react-openapi 1.4.3 → 1.5.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.
- package/CHANGELOG.md +36 -0
- package/dist/InteractiveSection.js +59 -0
- package/dist/Markdown.js +10 -0
- package/dist/OpenAPICodeSample.js +219 -0
- package/dist/OpenAPICodeSampleInteractive.js +66 -0
- package/dist/OpenAPICodeSampleSelector.js +45 -0
- package/dist/OpenAPICopyButton.js +39 -0
- package/dist/OpenAPIDisclosure.js +30 -0
- package/dist/OpenAPIDisclosureGroup.js +75 -0
- package/dist/OpenAPIExample.js +41 -0
- package/dist/OpenAPIMediaType.js +58 -0
- package/dist/OpenAPIOperation.d.ts +12 -7
- package/dist/OpenAPIOperation.js +30 -0
- package/dist/OpenAPIOperationContext.d.ts +10 -6
- package/dist/OpenAPIOperationContext.js +30 -0
- package/dist/OpenAPIPath.js +51 -0
- package/dist/OpenAPIPrefillContextProvider.d.ts +11 -7
- package/dist/OpenAPIPrefillContextProvider.js +25 -0
- package/dist/OpenAPIRequestBody.js +28 -0
- package/dist/OpenAPIRequestBodyHeaderType.js +23 -0
- package/dist/OpenAPIResponse.js +39 -0
- package/dist/OpenAPIResponseExample.js +75 -0
- package/dist/OpenAPIResponseExampleContent.js +61 -0
- package/dist/OpenAPIResponses.js +61 -0
- package/dist/OpenAPISchema.js +373 -0
- package/dist/OpenAPISchemaName.js +45 -0
- package/dist/OpenAPISchemaServer.js +13 -0
- package/dist/OpenAPISecurities.js +124 -0
- package/dist/OpenAPISelect.js +45 -0
- package/dist/OpenAPISpec.js +73 -0
- package/dist/OpenAPIWebhook.d.ts +12 -7
- package/dist/OpenAPIWebhook.js +28 -0
- package/dist/OpenAPIWebhookExample.js +40 -0
- package/dist/ScalarApiButton.js +87 -0
- package/dist/StaticSection.js +37 -0
- package/dist/code-samples.js +267 -419
- package/dist/common/OpenAPIColumnSpec.js +23 -0
- package/dist/common/OpenAPIOperationDescription.js +18 -0
- package/dist/common/OpenAPIStability.js +17 -0
- package/dist/common/OpenAPISummary.js +27 -0
- package/dist/contentTypeChecks.js +24 -20
- package/dist/context.d.ts +68 -72
- package/dist/context.js +25 -39
- package/dist/decycle.js +39 -68
- package/dist/dereference.js +20 -64
- package/dist/generateSchemaExample.js +188 -332
- package/dist/getDisclosureLabel.js +15 -16
- package/dist/getOrCreateStoreByKey.js +20 -17
- package/dist/index.d.ts +12 -10
- package/dist/index.js +11 -8
- package/dist/json2xml.js +10 -5
- package/dist/resolveOpenAPIOperation.d.ts +11 -7
- package/dist/resolveOpenAPIOperation.js +88 -159
- package/dist/resolveOpenAPIWebhook.d.ts +11 -7
- package/dist/resolveOpenAPIWebhook.js +41 -116
- package/dist/schemas/OpenAPISchemaItem.js +26 -0
- package/dist/schemas/OpenAPISchemas.d.ts +16 -11
- package/dist/schemas/OpenAPISchemas.js +57 -0
- package/dist/schemas/resolveOpenAPISchemas.d.ts +9 -4
- package/dist/schemas/resolveOpenAPISchemas.js +15 -59
- package/dist/stringifyOpenAPI.js +12 -13
- package/dist/translate.js +43 -0
- package/dist/translations/de.js +47 -42
- package/dist/translations/en.d.ts +46 -42
- package/dist/translations/en.js +47 -42
- package/dist/translations/es.js +47 -42
- package/dist/translations/fr.js +47 -42
- package/dist/translations/index.d.ts +404 -391
- package/dist/translations/index.js +28 -24
- package/dist/translations/ja.js +47 -42
- package/dist/translations/nl.js +47 -42
- package/dist/translations/no.js +47 -42
- package/dist/translations/pt-br.js +47 -42
- package/dist/translations/types.d.ts +7 -5
- package/dist/translations/zh.js +47 -42
- package/dist/types.d.ts +30 -24
- package/dist/util/example.js +84 -0
- package/dist/util/server.js +32 -38
- package/dist/util/tryit-prefill.js +135 -121
- package/dist/utils.js +135 -196
- package/package.json +18 -11
- package/dist/InteractiveSection.d.ts +0 -33
- package/dist/InteractiveSection.jsx +0 -61
- package/dist/Markdown.d.ts +0 -4
- package/dist/Markdown.jsx +0 -5
- package/dist/OpenAPICodeSample.d.ts +0 -19
- package/dist/OpenAPICodeSample.jsx +0 -230
- package/dist/OpenAPICodeSampleInteractive.d.ts +0 -14
- package/dist/OpenAPICodeSampleInteractive.jsx +0 -73
- package/dist/OpenAPICodeSampleSelector.d.ts +0 -14
- package/dist/OpenAPICodeSampleSelector.jsx +0 -44
- package/dist/OpenAPICopyButton.d.ts +0 -13
- package/dist/OpenAPICopyButton.jsx +0 -35
- package/dist/OpenAPIDisclosure.d.ts +0 -11
- package/dist/OpenAPIDisclosure.jsx +0 -30
- package/dist/OpenAPIDisclosureGroup.d.ts +0 -23
- package/dist/OpenAPIDisclosureGroup.jsx +0 -83
- package/dist/OpenAPIExample.d.ts +0 -16
- package/dist/OpenAPIExample.jsx +0 -36
- package/dist/OpenAPIMediaType.d.ts +0 -21
- package/dist/OpenAPIMediaType.jsx +0 -61
- package/dist/OpenAPIOperation.jsx +0 -25
- package/dist/OpenAPIOperationContext.jsx +0 -26
- package/dist/OpenAPIOperationDescription.d.ts +0 -9
- package/dist/OpenAPIOperationDescription.jsx +0 -22
- package/dist/OpenAPIOperationStability.d.ts +0 -9
- package/dist/OpenAPIOperationStability.jsx +0 -27
- package/dist/OpenAPIPath.d.ts +0 -18
- package/dist/OpenAPIPath.jsx +0 -55
- package/dist/OpenAPIPrefillContextProvider.jsx +0 -19
- package/dist/OpenAPIRequestBody.d.ts +0 -11
- package/dist/OpenAPIRequestBody.jsx +0 -28
- package/dist/OpenAPIRequestBodyHeaderType.d.ts +0 -8
- package/dist/OpenAPIRequestBodyHeaderType.jsx +0 -25
- package/dist/OpenAPIResponse.d.ts +0 -10
- package/dist/OpenAPIResponse.jsx +0 -57
- package/dist/OpenAPIResponseExample.d.ts +0 -9
- package/dist/OpenAPIResponseExample.jsx +0 -105
- package/dist/OpenAPIResponseExampleContent.d.ts +0 -22
- package/dist/OpenAPIResponseExampleContent.jsx +0 -60
- package/dist/OpenAPIResponses.d.ts +0 -9
- package/dist/OpenAPIResponses.jsx +0 -77
- package/dist/OpenAPISchema.d.ts +0 -27
- package/dist/OpenAPISchema.jsx +0 -400
- package/dist/OpenAPISchemaName.d.ts +0 -16
- package/dist/OpenAPISchemaName.jsx +0 -43
- package/dist/OpenAPISchemaServer.d.ts +0 -12
- package/dist/OpenAPISchemaServer.jsx +0 -8
- package/dist/OpenAPISecurities.d.ts +0 -9
- package/dist/OpenAPISecurities.jsx +0 -114
- package/dist/OpenAPISelect.d.ts +0 -22
- package/dist/OpenAPISelect.jsx +0 -44
- package/dist/OpenAPISpec.d.ts +0 -6
- package/dist/OpenAPISpec.jsx +0 -80
- package/dist/OpenAPITabs.d.ts +0 -26
- package/dist/OpenAPITabs.jsx +0 -109
- package/dist/OpenAPIWebhook.jsx +0 -23
- package/dist/OpenAPIWebhookExample.d.ts +0 -6
- package/dist/OpenAPIWebhookExample.jsx +0 -41
- package/dist/ScalarApiButton.d.ts +0 -14
- package/dist/ScalarApiButton.jsx +0 -81
- package/dist/StaticSection.d.ts +0 -13
- package/dist/StaticSection.jsx +0 -32
- package/dist/code-samples.d.ts +0 -17
- package/dist/common/OpenAPIColumnSpec.d.ts +0 -6
- package/dist/common/OpenAPIColumnSpec.jsx +0 -20
- package/dist/common/OpenAPIOperationDescription.d.ts +0 -6
- package/dist/common/OpenAPIOperationDescription.jsx +0 -19
- package/dist/common/OpenAPIStability.d.ts +0 -4
- package/dist/common/OpenAPIStability.jsx +0 -15
- package/dist/common/OpenAPISummary.d.ts +0 -6
- package/dist/common/OpenAPISummary.jsx +0 -30
- package/dist/contentTypeChecks.d.ts +0 -10
- package/dist/decycle.d.ts +0 -2
- package/dist/dereference.d.ts +0 -5
- package/dist/generateSchemaExample.d.ts +0 -45
- package/dist/getDisclosureLabel.d.ts +0 -7
- package/dist/getOrCreateStoreByKey.d.ts +0 -10
- package/dist/json2xml.d.ts +0 -4
- package/dist/schemas/OpenAPISchemaItem.d.ts +0 -7
- package/dist/schemas/OpenAPISchemaItem.jsx +0 -16
- package/dist/schemas/OpenAPISchemas.jsx +0 -59
- package/dist/schemas/index.d.ts +0 -2
- package/dist/schemas/index.js +0 -2
- package/dist/stringifyOpenAPI.d.ts +0 -4
- package/dist/translate.d.ts +0 -10
- package/dist/translate.jsx +0 -75
- package/dist/translations/de.d.ts +0 -43
- package/dist/translations/es.d.ts +0 -43
- package/dist/translations/fr.d.ts +0 -43
- package/dist/translations/ja.d.ts +0 -43
- package/dist/translations/nl.d.ts +0 -43
- package/dist/translations/no.d.ts +0 -43
- package/dist/translations/pt-br.d.ts +0 -43
- package/dist/translations/types.js +0 -1
- package/dist/translations/zh.d.ts +0 -43
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/types.js +0 -1
- package/dist/util/example.d.ts +0 -35
- package/dist/util/example.jsx +0 -103
- package/dist/util/server.d.ts +0 -9
- package/dist/util/tryit-prefill.d.ts +0 -20
- package/dist/utils.d.ts +0 -50
- package/src/InteractiveSection.tsx +0 -147
- package/src/Markdown.tsx +0 -12
- package/src/OpenAPICodeSample.tsx +0 -330
- package/src/OpenAPICodeSampleInteractive.tsx +0 -136
- package/src/OpenAPICodeSampleSelector.tsx +0 -94
- package/src/OpenAPICopyButton.tsx +0 -72
- package/src/OpenAPIDisclosure.tsx +0 -46
- package/src/OpenAPIDisclosureGroup.tsx +0 -158
- package/src/OpenAPIExample.tsx +0 -55
- package/src/OpenAPIMediaType.tsx +0 -139
- package/src/OpenAPIOperation.tsx +0 -35
- package/src/OpenAPIOperationContext.tsx +0 -45
- package/src/OpenAPIOperationDescription.tsx +0 -34
- package/src/OpenAPIOperationStability.tsx +0 -39
- package/src/OpenAPIPath.tsx +0 -90
- package/src/OpenAPIPrefillContextProvider.tsx +0 -40
- package/src/OpenAPIRequestBody.tsx +0 -54
- package/src/OpenAPIRequestBodyHeaderType.tsx +0 -36
- package/src/OpenAPIResponse.tsx +0 -82
- package/src/OpenAPIResponseExample.tsx +0 -151
- package/src/OpenAPIResponseExampleContent.tsx +0 -125
- package/src/OpenAPIResponses.tsx +0 -125
- package/src/OpenAPISchema.test.ts +0 -172
- package/src/OpenAPISchema.tsx +0 -654
- package/src/OpenAPISchemaName.tsx +0 -80
- package/src/OpenAPISchemaServer.tsx +0 -34
- package/src/OpenAPISecurities.tsx +0 -231
- package/src/OpenAPISelect.tsx +0 -96
- package/src/OpenAPISpec.tsx +0 -138
- package/src/OpenAPITabs.tsx +0 -147
- package/src/OpenAPIWebhook.tsx +0 -33
- package/src/OpenAPIWebhookExample.tsx +0 -60
- package/src/ScalarApiButton.tsx +0 -132
- package/src/StaticSection.tsx +0 -91
- package/src/__snapshots__/json2xml.test.ts.snap +0 -18
- package/src/code-samples.test.ts +0 -714
- package/src/code-samples.ts +0 -448
- package/src/common/OpenAPIColumnSpec.tsx +0 -31
- package/src/common/OpenAPIOperationDescription.tsx +0 -31
- package/src/common/OpenAPIStability.tsx +0 -23
- package/src/common/OpenAPISummary.tsx +0 -45
- package/src/contentTypeChecks.ts +0 -39
- package/src/context.ts +0 -99
- package/src/decycle.ts +0 -68
- package/src/dereference.ts +0 -29
- package/src/generateSchemaExample.test.ts +0 -1040
- package/src/generateSchemaExample.ts +0 -530
- package/src/getDisclosureLabel.ts +0 -25
- package/src/getOrCreateStoreByKey.ts +0 -33
- package/src/index.ts +0 -10
- package/src/json2xml.test.ts +0 -46
- package/src/json2xml.ts +0 -8
- package/src/resolveOpenAPIOperation.test.ts +0 -177
- package/src/resolveOpenAPIOperation.ts +0 -151
- package/src/resolveOpenAPIWebhook.ts +0 -99
- package/src/schemas/OpenAPISchemaItem.tsx +0 -34
- package/src/schemas/OpenAPISchemas.tsx +0 -98
- package/src/schemas/index.ts +0 -2
- package/src/schemas/resolveOpenAPISchemas.test.ts +0 -174
- package/src/schemas/resolveOpenAPISchemas.ts +0 -28
- package/src/stringifyOpenAPI.ts +0 -25
- package/src/translate.tsx +0 -80
- package/src/translations/de.ts +0 -43
- package/src/translations/en.ts +0 -43
- package/src/translations/es.ts +0 -43
- package/src/translations/fr.ts +0 -43
- package/src/translations/index.ts +0 -33
- package/src/translations/ja.ts +0 -43
- package/src/translations/nl.ts +0 -43
- package/src/translations/no.ts +0 -43
- package/src/translations/pt-br.ts +0 -43
- package/src/translations/types.ts +0 -7
- package/src/translations/zh.ts +0 -43
- package/src/types.ts +0 -46
- package/src/util/example.tsx +0 -129
- package/src/util/server.test.ts +0 -58
- package/src/util/server.ts +0 -47
- package/src/util/tryit-prefill.test.ts +0 -311
- package/src/util/tryit-prefill.ts +0 -160
- package/src/utils.ts +0 -255
|
@@ -1,395 +1,408 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
1
|
+
import { Translation, TranslationKey } from "./types.js";
|
|
2
|
+
|
|
3
|
+
//#region src/translations/index.d.ts
|
|
4
|
+
declare const translations: {
|
|
5
|
+
en: {
|
|
6
|
+
required: string;
|
|
7
|
+
deprecated: string;
|
|
8
|
+
deprecated_and_sunset_on: string;
|
|
9
|
+
stability_experimental: string;
|
|
10
|
+
stability_alpha: string;
|
|
11
|
+
stability_beta: string;
|
|
12
|
+
discriminator: string;
|
|
13
|
+
copy_to_clipboard: string;
|
|
14
|
+
copied: string;
|
|
15
|
+
no_content: string;
|
|
16
|
+
unresolved_reference: string;
|
|
17
|
+
circular_reference: string;
|
|
18
|
+
read_only: string;
|
|
19
|
+
write_only: string;
|
|
20
|
+
optional: string;
|
|
21
|
+
min: string;
|
|
22
|
+
max: string;
|
|
23
|
+
nullable: string;
|
|
24
|
+
body: string;
|
|
25
|
+
payload: string;
|
|
26
|
+
headers: string;
|
|
27
|
+
header: string;
|
|
28
|
+
authorizations: string;
|
|
29
|
+
responses: string;
|
|
30
|
+
response: string;
|
|
31
|
+
path_parameters: string;
|
|
32
|
+
query_parameters: string;
|
|
33
|
+
header_parameters: string;
|
|
34
|
+
attributes: string;
|
|
35
|
+
test_it: string;
|
|
36
|
+
information: string;
|
|
37
|
+
success: string;
|
|
38
|
+
redirect: string;
|
|
39
|
+
error: string;
|
|
40
|
+
show: string;
|
|
41
|
+
hide: string;
|
|
42
|
+
available_items: string;
|
|
43
|
+
required_scopes: string;
|
|
44
|
+
possible_values: string;
|
|
45
|
+
properties: string;
|
|
46
|
+
or: string;
|
|
47
|
+
and: string;
|
|
48
|
+
};
|
|
49
|
+
de: {
|
|
50
|
+
required: string;
|
|
51
|
+
deprecated: string;
|
|
52
|
+
deprecated_and_sunset_on: string;
|
|
53
|
+
stability_experimental: string;
|
|
54
|
+
stability_alpha: string;
|
|
55
|
+
stability_beta: string;
|
|
56
|
+
discriminator: string;
|
|
57
|
+
copy_to_clipboard: string;
|
|
58
|
+
copied: string;
|
|
59
|
+
no_content: string;
|
|
60
|
+
unresolved_reference: string;
|
|
61
|
+
circular_reference: string;
|
|
62
|
+
read_only: string;
|
|
63
|
+
write_only: string;
|
|
64
|
+
optional: string;
|
|
65
|
+
min: string;
|
|
66
|
+
max: string;
|
|
67
|
+
nullable: string;
|
|
68
|
+
body: string;
|
|
69
|
+
payload: string;
|
|
70
|
+
headers: string;
|
|
71
|
+
header: string;
|
|
72
|
+
authorizations: string;
|
|
73
|
+
responses: string;
|
|
74
|
+
response: string;
|
|
75
|
+
path_parameters: string;
|
|
76
|
+
query_parameters: string;
|
|
77
|
+
header_parameters: string;
|
|
78
|
+
attributes: string;
|
|
79
|
+
test_it: string;
|
|
80
|
+
information: string;
|
|
81
|
+
success: string;
|
|
82
|
+
redirect: string;
|
|
83
|
+
error: string;
|
|
84
|
+
show: string;
|
|
85
|
+
hide: string;
|
|
86
|
+
available_items: string;
|
|
87
|
+
required_scopes: string;
|
|
88
|
+
properties: string;
|
|
89
|
+
or: string;
|
|
90
|
+
and: string;
|
|
91
|
+
possible_values: string;
|
|
92
|
+
};
|
|
93
|
+
es: {
|
|
94
|
+
required: string;
|
|
95
|
+
deprecated: string;
|
|
96
|
+
deprecated_and_sunset_on: string;
|
|
97
|
+
stability_experimental: string;
|
|
98
|
+
stability_alpha: string;
|
|
99
|
+
stability_beta: string;
|
|
100
|
+
discriminator: string;
|
|
101
|
+
copy_to_clipboard: string;
|
|
102
|
+
copied: string;
|
|
103
|
+
no_content: string;
|
|
104
|
+
unresolved_reference: string;
|
|
105
|
+
circular_reference: string;
|
|
106
|
+
read_only: string;
|
|
107
|
+
write_only: string;
|
|
108
|
+
optional: string;
|
|
109
|
+
min: string;
|
|
110
|
+
max: string;
|
|
111
|
+
nullable: string;
|
|
112
|
+
body: string;
|
|
113
|
+
payload: string;
|
|
114
|
+
headers: string;
|
|
115
|
+
header: string;
|
|
116
|
+
authorizations: string;
|
|
117
|
+
responses: string;
|
|
118
|
+
response: string;
|
|
119
|
+
path_parameters: string;
|
|
120
|
+
query_parameters: string;
|
|
121
|
+
header_parameters: string;
|
|
122
|
+
attributes: string;
|
|
123
|
+
test_it: string;
|
|
124
|
+
information: string;
|
|
125
|
+
success: string;
|
|
126
|
+
redirect: string;
|
|
127
|
+
error: string;
|
|
128
|
+
show: string;
|
|
129
|
+
hide: string;
|
|
130
|
+
available_items: string;
|
|
131
|
+
required_scopes: string;
|
|
132
|
+
properties: string;
|
|
133
|
+
or: string;
|
|
134
|
+
and: string;
|
|
135
|
+
possible_values: string;
|
|
136
|
+
};
|
|
137
|
+
fr: {
|
|
138
|
+
required: string;
|
|
139
|
+
deprecated: string;
|
|
140
|
+
deprecated_and_sunset_on: string;
|
|
141
|
+
stability_experimental: string;
|
|
142
|
+
stability_alpha: string;
|
|
143
|
+
stability_beta: string;
|
|
144
|
+
discriminator: string;
|
|
145
|
+
copy_to_clipboard: string;
|
|
146
|
+
copied: string;
|
|
147
|
+
no_content: string;
|
|
148
|
+
unresolved_reference: string;
|
|
149
|
+
circular_reference: string;
|
|
150
|
+
read_only: string;
|
|
151
|
+
write_only: string;
|
|
152
|
+
optional: string;
|
|
153
|
+
min: string;
|
|
154
|
+
max: string;
|
|
155
|
+
nullable: string;
|
|
156
|
+
body: string;
|
|
157
|
+
payload: string;
|
|
158
|
+
headers: string;
|
|
159
|
+
header: string;
|
|
160
|
+
authorizations: string;
|
|
161
|
+
responses: string;
|
|
162
|
+
response: string;
|
|
163
|
+
path_parameters: string;
|
|
164
|
+
query_parameters: string;
|
|
165
|
+
header_parameters: string;
|
|
166
|
+
attributes: string;
|
|
167
|
+
test_it: string;
|
|
168
|
+
information: string;
|
|
169
|
+
success: string;
|
|
170
|
+
redirect: string;
|
|
171
|
+
error: string;
|
|
172
|
+
show: string;
|
|
173
|
+
hide: string;
|
|
174
|
+
available_items: string;
|
|
175
|
+
required_scopes: string;
|
|
176
|
+
properties: string;
|
|
177
|
+
or: string;
|
|
178
|
+
and: string;
|
|
179
|
+
possible_values: string;
|
|
180
|
+
};
|
|
181
|
+
ja: {
|
|
182
|
+
required: string;
|
|
183
|
+
deprecated: string;
|
|
184
|
+
deprecated_and_sunset_on: string;
|
|
185
|
+
stability_experimental: string;
|
|
186
|
+
stability_alpha: string;
|
|
187
|
+
stability_beta: string;
|
|
188
|
+
discriminator: string;
|
|
189
|
+
copy_to_clipboard: string;
|
|
190
|
+
copied: string;
|
|
191
|
+
no_content: string;
|
|
192
|
+
unresolved_reference: string;
|
|
193
|
+
circular_reference: string;
|
|
194
|
+
read_only: string;
|
|
195
|
+
write_only: string;
|
|
196
|
+
optional: string;
|
|
197
|
+
min: string;
|
|
198
|
+
max: string;
|
|
199
|
+
nullable: string;
|
|
200
|
+
body: string;
|
|
201
|
+
payload: string;
|
|
202
|
+
headers: string;
|
|
203
|
+
header: string;
|
|
204
|
+
authorizations: string;
|
|
205
|
+
responses: string;
|
|
206
|
+
response: string;
|
|
207
|
+
path_parameters: string;
|
|
208
|
+
query_parameters: string;
|
|
209
|
+
header_parameters: string;
|
|
210
|
+
attributes: string;
|
|
211
|
+
test_it: string;
|
|
212
|
+
information: string;
|
|
213
|
+
success: string;
|
|
214
|
+
redirect: string;
|
|
215
|
+
error: string;
|
|
216
|
+
show: string;
|
|
217
|
+
hide: string;
|
|
218
|
+
available_items: string;
|
|
219
|
+
required_scopes: string;
|
|
220
|
+
properties: string;
|
|
221
|
+
or: string;
|
|
222
|
+
and: string;
|
|
223
|
+
possible_values: string;
|
|
224
|
+
};
|
|
225
|
+
nl: {
|
|
226
|
+
required: string;
|
|
227
|
+
deprecated: string;
|
|
228
|
+
deprecated_and_sunset_on: string;
|
|
229
|
+
stability_experimental: string;
|
|
230
|
+
stability_alpha: string;
|
|
231
|
+
stability_beta: string;
|
|
232
|
+
discriminator: string;
|
|
233
|
+
copy_to_clipboard: string;
|
|
234
|
+
copied: string;
|
|
235
|
+
no_content: string;
|
|
236
|
+
unresolved_reference: string;
|
|
237
|
+
circular_reference: string;
|
|
238
|
+
read_only: string;
|
|
239
|
+
write_only: string;
|
|
240
|
+
optional: string;
|
|
241
|
+
min: string;
|
|
242
|
+
max: string;
|
|
243
|
+
nullable: string;
|
|
244
|
+
body: string;
|
|
245
|
+
payload: string;
|
|
246
|
+
headers: string;
|
|
247
|
+
header: string;
|
|
248
|
+
authorizations: string;
|
|
249
|
+
responses: string;
|
|
250
|
+
response: string;
|
|
251
|
+
path_parameters: string;
|
|
252
|
+
query_parameters: string;
|
|
253
|
+
header_parameters: string;
|
|
254
|
+
attributes: string;
|
|
255
|
+
test_it: string;
|
|
256
|
+
information: string;
|
|
257
|
+
success: string;
|
|
258
|
+
redirect: string;
|
|
259
|
+
error: string;
|
|
260
|
+
show: string;
|
|
261
|
+
hide: string;
|
|
262
|
+
available_items: string;
|
|
263
|
+
required_scopes: string;
|
|
264
|
+
properties: string;
|
|
265
|
+
or: string;
|
|
266
|
+
and: string;
|
|
267
|
+
possible_values: string;
|
|
268
|
+
};
|
|
269
|
+
no: {
|
|
270
|
+
required: string;
|
|
271
|
+
deprecated: string;
|
|
272
|
+
deprecated_and_sunset_on: string;
|
|
273
|
+
stability_experimental: string;
|
|
274
|
+
stability_alpha: string;
|
|
275
|
+
stability_beta: string;
|
|
276
|
+
discriminator: string;
|
|
277
|
+
copy_to_clipboard: string;
|
|
278
|
+
copied: string;
|
|
279
|
+
no_content: string;
|
|
280
|
+
unresolved_reference: string;
|
|
281
|
+
circular_reference: string;
|
|
282
|
+
read_only: string;
|
|
283
|
+
write_only: string;
|
|
284
|
+
optional: string;
|
|
285
|
+
min: string;
|
|
286
|
+
max: string;
|
|
287
|
+
nullable: string;
|
|
288
|
+
body: string;
|
|
289
|
+
payload: string;
|
|
290
|
+
headers: string;
|
|
291
|
+
header: string;
|
|
292
|
+
authorizations: string;
|
|
293
|
+
responses: string;
|
|
294
|
+
response: string;
|
|
295
|
+
path_parameters: string;
|
|
296
|
+
query_parameters: string;
|
|
297
|
+
header_parameters: string;
|
|
298
|
+
attributes: string;
|
|
299
|
+
test_it: string;
|
|
300
|
+
information: string;
|
|
301
|
+
success: string;
|
|
302
|
+
redirect: string;
|
|
303
|
+
error: string;
|
|
304
|
+
show: string;
|
|
305
|
+
hide: string;
|
|
306
|
+
available_items: string;
|
|
307
|
+
required_scopes: string;
|
|
308
|
+
properties: string;
|
|
309
|
+
or: string;
|
|
310
|
+
and: string;
|
|
311
|
+
possible_values: string;
|
|
312
|
+
};
|
|
313
|
+
'pt-br': {
|
|
314
|
+
required: string;
|
|
315
|
+
deprecated: string;
|
|
316
|
+
deprecated_and_sunset_on: string;
|
|
317
|
+
stability_experimental: string;
|
|
318
|
+
stability_alpha: string;
|
|
319
|
+
stability_beta: string;
|
|
320
|
+
discriminator: string;
|
|
321
|
+
copy_to_clipboard: string;
|
|
322
|
+
copied: string;
|
|
323
|
+
no_content: string;
|
|
324
|
+
unresolved_reference: string;
|
|
325
|
+
circular_reference: string;
|
|
326
|
+
read_only: string;
|
|
327
|
+
write_only: string;
|
|
328
|
+
optional: string;
|
|
329
|
+
min: string;
|
|
330
|
+
max: string;
|
|
331
|
+
nullable: string;
|
|
332
|
+
body: string;
|
|
333
|
+
payload: string;
|
|
334
|
+
headers: string;
|
|
335
|
+
header: string;
|
|
336
|
+
authorizations: string;
|
|
337
|
+
responses: string;
|
|
338
|
+
response: string;
|
|
339
|
+
path_parameters: string;
|
|
340
|
+
query_parameters: string;
|
|
341
|
+
header_parameters: string;
|
|
342
|
+
attributes: string;
|
|
343
|
+
test_it: string;
|
|
344
|
+
information: string;
|
|
345
|
+
success: string;
|
|
346
|
+
redirect: string;
|
|
347
|
+
error: string;
|
|
348
|
+
show: string;
|
|
349
|
+
hide: string;
|
|
350
|
+
available_items: string;
|
|
351
|
+
required_scopes: string;
|
|
352
|
+
properties: string;
|
|
353
|
+
or: string;
|
|
354
|
+
and: string;
|
|
355
|
+
possible_values: string;
|
|
356
|
+
};
|
|
357
|
+
zh: {
|
|
358
|
+
required: string;
|
|
359
|
+
deprecated: string;
|
|
360
|
+
deprecated_and_sunset_on: string;
|
|
361
|
+
stability_experimental: string;
|
|
362
|
+
stability_alpha: string;
|
|
363
|
+
stability_beta: string;
|
|
364
|
+
discriminator: string;
|
|
365
|
+
copy_to_clipboard: string;
|
|
366
|
+
copied: string;
|
|
367
|
+
no_content: string;
|
|
368
|
+
unresolved_reference: string;
|
|
369
|
+
circular_reference: string;
|
|
370
|
+
read_only: string;
|
|
371
|
+
write_only: string;
|
|
372
|
+
optional: string;
|
|
373
|
+
min: string;
|
|
374
|
+
max: string;
|
|
375
|
+
nullable: string;
|
|
376
|
+
body: string;
|
|
377
|
+
payload: string;
|
|
378
|
+
headers: string;
|
|
379
|
+
header: string;
|
|
380
|
+
authorizations: string;
|
|
381
|
+
responses: string;
|
|
382
|
+
response: string;
|
|
383
|
+
path_parameters: string;
|
|
384
|
+
query_parameters: string;
|
|
385
|
+
header_parameters: string;
|
|
386
|
+
attributes: string;
|
|
387
|
+
test_it: string;
|
|
388
|
+
information: string;
|
|
389
|
+
success: string;
|
|
390
|
+
redirect: string;
|
|
391
|
+
error: string;
|
|
392
|
+
show: string;
|
|
393
|
+
hide: string;
|
|
394
|
+
available_items: string;
|
|
395
|
+
required_scopes: string;
|
|
396
|
+
properties: string;
|
|
397
|
+
or: string;
|
|
398
|
+
and: string;
|
|
399
|
+
possible_values: string;
|
|
400
|
+
};
|
|
390
401
|
};
|
|
391
|
-
|
|
402
|
+
type TranslationLocale = keyof typeof translations;
|
|
392
403
|
/**
|
|
393
404
|
* Check if the locale is valid.
|
|
394
405
|
*/
|
|
395
|
-
|
|
406
|
+
declare function checkIsValidLocale(locale: string): locale is TranslationLocale;
|
|
407
|
+
//#endregion
|
|
408
|
+
export { TranslationLocale, checkIsValidLocale };
|