@gitbook/react-openapi 1.5.1 → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/InteractiveSection.js +59 -0
  3. package/dist/Markdown.js +10 -0
  4. package/dist/OpenAPICodeSample.js +219 -0
  5. package/dist/OpenAPICodeSampleInteractive.js +62 -0
  6. package/dist/OpenAPICodeSampleSelector.js +45 -0
  7. package/dist/OpenAPICopyButton.js +44 -0
  8. package/dist/OpenAPIDisclosure.js +28 -0
  9. package/dist/OpenAPIDisclosureGroup.js +89 -0
  10. package/dist/OpenAPIExample.js +41 -0
  11. package/dist/OpenAPIMediaType.js +58 -0
  12. package/dist/OpenAPIOperation.d.ts +15 -0
  13. package/dist/OpenAPIOperation.js +30 -0
  14. package/dist/OpenAPIOperationContext.d.ts +20 -0
  15. package/dist/OpenAPIOperationContext.js +30 -0
  16. package/dist/OpenAPIPath.js +25 -0
  17. package/dist/OpenAPIPathItem.js +22 -0
  18. package/dist/OpenAPIPathMultipleServers.js +43 -0
  19. package/dist/OpenAPIPrefillContextProvider.d.ts +26 -0
  20. package/dist/OpenAPIPrefillContextProvider.js +25 -0
  21. package/dist/OpenAPIRequestBody.js +28 -0
  22. package/dist/OpenAPIRequestBodyHeaderType.js +23 -0
  23. package/dist/OpenAPIRequiredScopes.js +67 -0
  24. package/dist/OpenAPIResponse.js +39 -0
  25. package/dist/OpenAPIResponseExample.js +75 -0
  26. package/dist/OpenAPIResponseExampleContent.js +61 -0
  27. package/dist/OpenAPIResponses.js +61 -0
  28. package/dist/OpenAPISchema.js +373 -0
  29. package/dist/OpenAPISchemaName.js +45 -0
  30. package/dist/OpenAPISchemaServer.js +13 -0
  31. package/dist/OpenAPISecurities.js +98 -0
  32. package/dist/OpenAPISelect.js +45 -0
  33. package/dist/OpenAPISpec.js +73 -0
  34. package/dist/OpenAPITooltip.js +23 -0
  35. package/dist/OpenAPIWebhook.d.ts +15 -0
  36. package/dist/OpenAPIWebhook.js +28 -0
  37. package/dist/OpenAPIWebhookExample.js +40 -0
  38. package/dist/ScalarApiButton.js +90 -0
  39. package/dist/StaticSection.js +37 -0
  40. package/dist/code-samples.js +305 -0
  41. package/dist/common/OpenAPIColumnSpec.js +23 -0
  42. package/dist/common/OpenAPIOperationDescription.js +18 -0
  43. package/dist/common/OpenAPIStability.js +17 -0
  44. package/dist/common/OpenAPISummary.js +27 -0
  45. package/dist/contentTypeChecks.js +34 -0
  46. package/dist/context.d.ts +74 -0
  47. package/dist/context.js +29 -0
  48. package/dist/decycle.js +41 -0
  49. package/dist/dereference.js +24 -0
  50. package/dist/formatPath.js +25 -0
  51. package/dist/generateSchemaExample.js +198 -0
  52. package/dist/getDisclosureLabel.js +17 -0
  53. package/dist/getOrCreateDisclosureStoreByKey.js +31 -0
  54. package/dist/getOrCreateStoreByKey.js +22 -0
  55. package/dist/index.d.ts +11 -662
  56. package/dist/index.js +9 -3871
  57. package/dist/json2xml.js +12 -0
  58. package/dist/resolveOpenAPIOperation.d.ts +15 -0
  59. package/dist/resolveOpenAPIOperation.js +105 -0
  60. package/dist/resolveOpenAPIWebhook.d.ts +15 -0
  61. package/dist/resolveOpenAPIWebhook.js +52 -0
  62. package/dist/schemas/OpenAPISchemaItem.js +26 -0
  63. package/dist/schemas/OpenAPISchemas.d.ts +19 -0
  64. package/dist/schemas/OpenAPISchemas.js +57 -0
  65. package/dist/schemas/resolveOpenAPISchemas.d.ts +15 -0
  66. package/dist/schemas/resolveOpenAPISchemas.js +17 -0
  67. package/dist/stringifyOpenAPI.js +14 -0
  68. package/dist/translate.js +43 -0
  69. package/dist/translations/de.js +50 -0
  70. package/dist/translations/en.d.ts +49 -0
  71. package/dist/translations/en.js +50 -0
  72. package/dist/translations/es.js +50 -0
  73. package/dist/translations/fr.js +50 -0
  74. package/dist/translations/index.d.ts +426 -0
  75. package/dist/translations/index.js +31 -0
  76. package/dist/translations/ja.js +50 -0
  77. package/dist/translations/nl.js +50 -0
  78. package/dist/translations/no.js +50 -0
  79. package/dist/translations/pt-br.js +50 -0
  80. package/dist/translations/types.d.ts +7 -0
  81. package/dist/translations/zh.js +50 -0
  82. package/dist/types.d.ts +38 -0
  83. package/dist/util/example.js +84 -0
  84. package/dist/util/server.js +38 -0
  85. package/dist/util/tryit-prefill.js +143 -0
  86. package/dist/utils.js +163 -0
  87. package/package.json +28 -12
@@ -0,0 +1,426 @@
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
+ required_scopes_description: string;
45
+ available_scopes: string;
46
+ possible_values: string;
47
+ properties: string;
48
+ or: string;
49
+ and: string;
50
+ };
51
+ de: {
52
+ required: string;
53
+ deprecated: string;
54
+ deprecated_and_sunset_on: string;
55
+ stability_experimental: string;
56
+ stability_alpha: string;
57
+ stability_beta: string;
58
+ discriminator: string;
59
+ copy_to_clipboard: string;
60
+ copied: string;
61
+ no_content: string;
62
+ unresolved_reference: string;
63
+ circular_reference: string;
64
+ read_only: string;
65
+ write_only: string;
66
+ optional: string;
67
+ min: string;
68
+ max: string;
69
+ nullable: string;
70
+ body: string;
71
+ payload: string;
72
+ headers: string;
73
+ header: string;
74
+ authorizations: string;
75
+ responses: string;
76
+ response: string;
77
+ path_parameters: string;
78
+ query_parameters: string;
79
+ header_parameters: string;
80
+ attributes: string;
81
+ test_it: string;
82
+ information: string;
83
+ success: string;
84
+ redirect: string;
85
+ error: string;
86
+ show: string;
87
+ hide: string;
88
+ available_items: string;
89
+ required_scopes: string;
90
+ required_scopes_description: string;
91
+ available_scopes: string;
92
+ properties: string;
93
+ or: string;
94
+ and: string;
95
+ possible_values: string;
96
+ };
97
+ es: {
98
+ required: string;
99
+ deprecated: string;
100
+ deprecated_and_sunset_on: string;
101
+ stability_experimental: string;
102
+ stability_alpha: string;
103
+ stability_beta: string;
104
+ discriminator: string;
105
+ copy_to_clipboard: string;
106
+ copied: string;
107
+ no_content: string;
108
+ unresolved_reference: string;
109
+ circular_reference: string;
110
+ read_only: string;
111
+ write_only: string;
112
+ optional: string;
113
+ min: string;
114
+ max: string;
115
+ nullable: string;
116
+ body: string;
117
+ payload: string;
118
+ headers: string;
119
+ header: string;
120
+ authorizations: string;
121
+ responses: string;
122
+ response: string;
123
+ path_parameters: string;
124
+ query_parameters: string;
125
+ header_parameters: string;
126
+ attributes: string;
127
+ test_it: string;
128
+ information: string;
129
+ success: string;
130
+ redirect: string;
131
+ error: string;
132
+ show: string;
133
+ hide: string;
134
+ available_items: string;
135
+ required_scopes: string;
136
+ required_scopes_description: string;
137
+ available_scopes: string;
138
+ properties: string;
139
+ or: string;
140
+ and: string;
141
+ possible_values: string;
142
+ };
143
+ fr: {
144
+ required: string;
145
+ deprecated: string;
146
+ deprecated_and_sunset_on: string;
147
+ stability_experimental: string;
148
+ stability_alpha: string;
149
+ stability_beta: string;
150
+ discriminator: string;
151
+ copy_to_clipboard: string;
152
+ copied: string;
153
+ no_content: string;
154
+ unresolved_reference: string;
155
+ circular_reference: string;
156
+ read_only: string;
157
+ write_only: string;
158
+ optional: string;
159
+ min: string;
160
+ max: string;
161
+ nullable: string;
162
+ body: string;
163
+ payload: string;
164
+ headers: string;
165
+ header: string;
166
+ authorizations: string;
167
+ responses: string;
168
+ response: string;
169
+ path_parameters: string;
170
+ query_parameters: string;
171
+ header_parameters: string;
172
+ attributes: string;
173
+ test_it: string;
174
+ information: string;
175
+ success: string;
176
+ redirect: string;
177
+ error: string;
178
+ show: string;
179
+ hide: string;
180
+ available_items: string;
181
+ required_scopes: string;
182
+ required_scopes_description: string;
183
+ available_scopes: string;
184
+ properties: string;
185
+ or: string;
186
+ and: string;
187
+ possible_values: string;
188
+ };
189
+ ja: {
190
+ required: string;
191
+ deprecated: string;
192
+ deprecated_and_sunset_on: string;
193
+ stability_experimental: string;
194
+ stability_alpha: string;
195
+ stability_beta: string;
196
+ discriminator: string;
197
+ copy_to_clipboard: string;
198
+ copied: string;
199
+ no_content: string;
200
+ unresolved_reference: string;
201
+ circular_reference: string;
202
+ read_only: string;
203
+ write_only: string;
204
+ optional: string;
205
+ min: string;
206
+ max: string;
207
+ nullable: string;
208
+ body: string;
209
+ payload: string;
210
+ headers: string;
211
+ header: string;
212
+ authorizations: string;
213
+ responses: string;
214
+ response: string;
215
+ path_parameters: string;
216
+ query_parameters: string;
217
+ header_parameters: string;
218
+ attributes: string;
219
+ test_it: string;
220
+ information: string;
221
+ success: string;
222
+ redirect: string;
223
+ error: string;
224
+ show: string;
225
+ hide: string;
226
+ available_items: string;
227
+ required_scopes: string;
228
+ required_scopes_description: string;
229
+ available_scopes: string;
230
+ properties: string;
231
+ or: string;
232
+ and: string;
233
+ possible_values: string;
234
+ };
235
+ nl: {
236
+ required: string;
237
+ deprecated: string;
238
+ deprecated_and_sunset_on: string;
239
+ stability_experimental: string;
240
+ stability_alpha: string;
241
+ stability_beta: string;
242
+ discriminator: string;
243
+ copy_to_clipboard: string;
244
+ copied: string;
245
+ no_content: string;
246
+ unresolved_reference: string;
247
+ circular_reference: string;
248
+ read_only: string;
249
+ write_only: string;
250
+ optional: string;
251
+ min: string;
252
+ max: string;
253
+ nullable: string;
254
+ body: string;
255
+ payload: string;
256
+ headers: string;
257
+ header: string;
258
+ authorizations: string;
259
+ responses: string;
260
+ response: string;
261
+ path_parameters: string;
262
+ query_parameters: string;
263
+ header_parameters: string;
264
+ attributes: string;
265
+ test_it: string;
266
+ information: string;
267
+ success: string;
268
+ redirect: string;
269
+ error: string;
270
+ show: string;
271
+ hide: string;
272
+ available_items: string;
273
+ required_scopes: string;
274
+ required_scopes_description: string;
275
+ available_scopes: string;
276
+ properties: string;
277
+ or: string;
278
+ and: string;
279
+ possible_values: string;
280
+ };
281
+ no: {
282
+ required: string;
283
+ deprecated: string;
284
+ deprecated_and_sunset_on: string;
285
+ stability_experimental: string;
286
+ stability_alpha: string;
287
+ stability_beta: string;
288
+ discriminator: string;
289
+ copy_to_clipboard: string;
290
+ copied: string;
291
+ no_content: string;
292
+ unresolved_reference: string;
293
+ circular_reference: string;
294
+ read_only: string;
295
+ write_only: string;
296
+ optional: string;
297
+ min: string;
298
+ max: string;
299
+ nullable: string;
300
+ body: string;
301
+ payload: string;
302
+ headers: string;
303
+ header: string;
304
+ authorizations: string;
305
+ responses: string;
306
+ response: string;
307
+ path_parameters: string;
308
+ query_parameters: string;
309
+ header_parameters: string;
310
+ attributes: string;
311
+ test_it: string;
312
+ information: string;
313
+ success: string;
314
+ redirect: string;
315
+ error: string;
316
+ show: string;
317
+ hide: string;
318
+ available_items: string;
319
+ required_scopes: string;
320
+ required_scopes_description: string;
321
+ available_scopes: string;
322
+ properties: string;
323
+ or: string;
324
+ and: string;
325
+ possible_values: string;
326
+ };
327
+ 'pt-br': {
328
+ required: string;
329
+ deprecated: string;
330
+ deprecated_and_sunset_on: string;
331
+ stability_experimental: string;
332
+ stability_alpha: string;
333
+ stability_beta: string;
334
+ discriminator: string;
335
+ copy_to_clipboard: string;
336
+ copied: string;
337
+ no_content: string;
338
+ unresolved_reference: string;
339
+ circular_reference: string;
340
+ read_only: string;
341
+ write_only: string;
342
+ optional: string;
343
+ min: string;
344
+ max: string;
345
+ nullable: string;
346
+ body: string;
347
+ payload: string;
348
+ headers: string;
349
+ header: string;
350
+ authorizations: string;
351
+ responses: string;
352
+ response: string;
353
+ path_parameters: string;
354
+ query_parameters: string;
355
+ header_parameters: string;
356
+ attributes: string;
357
+ test_it: string;
358
+ information: string;
359
+ success: string;
360
+ redirect: string;
361
+ error: string;
362
+ show: string;
363
+ hide: string;
364
+ available_items: string;
365
+ required_scopes: string;
366
+ required_scopes_description: string;
367
+ available_scopes: string;
368
+ properties: string;
369
+ or: string;
370
+ and: string;
371
+ possible_values: string;
372
+ };
373
+ zh: {
374
+ required: string;
375
+ deprecated: string;
376
+ deprecated_and_sunset_on: string;
377
+ stability_experimental: string;
378
+ stability_alpha: string;
379
+ stability_beta: string;
380
+ discriminator: string;
381
+ copy_to_clipboard: string;
382
+ copied: string;
383
+ no_content: string;
384
+ unresolved_reference: string;
385
+ circular_reference: string;
386
+ read_only: string;
387
+ write_only: string;
388
+ optional: string;
389
+ min: string;
390
+ max: string;
391
+ nullable: string;
392
+ body: string;
393
+ payload: string;
394
+ headers: string;
395
+ header: string;
396
+ authorizations: string;
397
+ responses: string;
398
+ response: string;
399
+ path_parameters: string;
400
+ query_parameters: string;
401
+ header_parameters: string;
402
+ attributes: string;
403
+ test_it: string;
404
+ information: string;
405
+ success: string;
406
+ redirect: string;
407
+ error: string;
408
+ show: string;
409
+ hide: string;
410
+ available_items: string;
411
+ required_scopes: string;
412
+ required_scopes_description: string;
413
+ available_scopes: string;
414
+ properties: string;
415
+ or: string;
416
+ and: string;
417
+ possible_values: string;
418
+ };
419
+ };
420
+ type TranslationLocale = keyof typeof translations;
421
+ /**
422
+ * Check if the locale is valid.
423
+ */
424
+ declare function checkIsValidLocale(locale: string): locale is TranslationLocale;
425
+ //#endregion
426
+ export { TranslationLocale, checkIsValidLocale };
@@ -0,0 +1,31 @@
1
+ import { de } from "./de.js";
2
+ import { en } from "./en.js";
3
+ import { es } from "./es.js";
4
+ import { fr } from "./fr.js";
5
+ import { ja } from "./ja.js";
6
+ import { nl } from "./nl.js";
7
+ import { no } from "./no.js";
8
+ import { pt_br } from "./pt-br.js";
9
+ import { zh } from "./zh.js";
10
+
11
+ //#region src/translations/index.ts
12
+ const translations = {
13
+ en,
14
+ de,
15
+ es,
16
+ fr,
17
+ ja,
18
+ nl,
19
+ no,
20
+ "pt-br": pt_br,
21
+ zh
22
+ };
23
+ /**
24
+ * Check if the locale is valid.
25
+ */
26
+ function checkIsValidLocale(locale) {
27
+ return Object.prototype.hasOwnProperty.call(translations, locale);
28
+ }
29
+
30
+ //#endregion
31
+ export { checkIsValidLocale, translations };
@@ -0,0 +1,50 @@
1
+ //#region src/translations/ja.ts
2
+ const ja = {
3
+ required: "必須",
4
+ deprecated: "非推奨",
5
+ deprecated_and_sunset_on: "この操作は非推奨であり、${1}に廃止されます。",
6
+ stability_experimental: "実験的",
7
+ stability_alpha: "アルファ",
8
+ stability_beta: "ベータ",
9
+ discriminator: "識別子",
10
+ copy_to_clipboard: "クリップボードにコピー",
11
+ copied: "コピー済み",
12
+ no_content: "コンテンツなし",
13
+ unresolved_reference: "未解決の参照",
14
+ circular_reference: "循環参照",
15
+ read_only: "読み取り専用",
16
+ write_only: "書き込み専用",
17
+ optional: "オプション",
18
+ min: "最小",
19
+ max: "最大",
20
+ nullable: "ヌル許容",
21
+ body: "本文",
22
+ payload: "ペイロード",
23
+ headers: "ヘッダー",
24
+ header: "ヘッダー",
25
+ authorizations: "認可",
26
+ responses: "レスポンス",
27
+ response: "レスポンス",
28
+ path_parameters: "パスパラメータ",
29
+ query_parameters: "クエリパラメータ",
30
+ header_parameters: "ヘッダーパラメータ",
31
+ attributes: "属性",
32
+ test_it: "テストする",
33
+ information: "情報",
34
+ success: "成功",
35
+ redirect: "リダイレクト",
36
+ error: "エラー",
37
+ show: "${1}を表示",
38
+ hide: "${1}を非表示",
39
+ available_items: "利用可能なアイテム",
40
+ required_scopes: "必須スコープ",
41
+ required_scopes_description: "このエンドポイントには次のスコープが必要です:",
42
+ available_scopes: "利用可能なスコープ:",
43
+ properties: "プロパティ",
44
+ or: "または",
45
+ and: "かつ",
46
+ possible_values: "可能な値"
47
+ };
48
+
49
+ //#endregion
50
+ export { ja };
@@ -0,0 +1,50 @@
1
+ //#region src/translations/nl.ts
2
+ const nl = {
3
+ required: "Vereist",
4
+ deprecated: "Verouderd",
5
+ deprecated_and_sunset_on: "Deze bewerking is verouderd en wordt op ${1} beëindigd.",
6
+ stability_experimental: "Experimenteel",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Bèta",
9
+ discriminator: "Discriminator",
10
+ copy_to_clipboard: "Kopiëren naar klembord",
11
+ copied: "Gekopieerd",
12
+ no_content: "Geen inhoud",
13
+ unresolved_reference: "Onopgeloste verwijzing",
14
+ circular_reference: "Circulaire verwijzing",
15
+ read_only: "Alleen lezen",
16
+ write_only: "Alleen schrijven",
17
+ optional: "Optioneel",
18
+ min: "Min",
19
+ max: "Max",
20
+ nullable: "Null toegestaan",
21
+ body: "Body",
22
+ payload: "Payload",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorisaties",
26
+ responses: "Reacties",
27
+ response: "Reactie",
28
+ path_parameters: "Padparameters",
29
+ query_parameters: "Queryparameters",
30
+ header_parameters: "Headerparameters",
31
+ attributes: "Attributen",
32
+ test_it: "Test het",
33
+ information: "Informatie",
34
+ success: "Succes",
35
+ redirect: "Omleiding",
36
+ error: "Fout",
37
+ show: "Toon ${1}",
38
+ hide: "Verberg ${1}",
39
+ available_items: "Beschikbare items",
40
+ required_scopes: "Vereiste scopes",
41
+ required_scopes_description: "Dit endpoint vereist de volgende scopes:",
42
+ available_scopes: "Beschikbare scopes:",
43
+ properties: "Eigenschappen",
44
+ or: "of",
45
+ and: "en",
46
+ possible_values: "Mogelijke waarden"
47
+ };
48
+
49
+ //#endregion
50
+ export { nl };
@@ -0,0 +1,50 @@
1
+ //#region src/translations/no.ts
2
+ const no = {
3
+ required: "Påkrevd",
4
+ deprecated: "Foreldet",
5
+ deprecated_and_sunset_on: "Denne operasjonen er foreldet og vil bli avviklet den ${1}.",
6
+ stability_experimental: "Eksperimentell",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Beta",
9
+ discriminator: "Diskriminator",
10
+ copy_to_clipboard: "Kopier til utklippstavle",
11
+ copied: "Kopiert",
12
+ no_content: "Ingen innhold",
13
+ unresolved_reference: "Uavklart referanse",
14
+ circular_reference: "Sirkulær referanse",
15
+ read_only: "Skrivebeskyttet",
16
+ write_only: "Kun skriving",
17
+ optional: "Valgfri",
18
+ min: "Min",
19
+ max: "Maks",
20
+ nullable: "Kan være null",
21
+ body: "Brødtekst",
22
+ payload: "Nyttelast",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorisasjoner",
26
+ responses: "Responser",
27
+ response: "Respons",
28
+ path_parameters: "Sti-parametere",
29
+ query_parameters: "Forespørselsparametere",
30
+ header_parameters: "Header-parametere",
31
+ attributes: "Attributter",
32
+ test_it: "Test det",
33
+ information: "Informasjon",
34
+ success: "Suksess",
35
+ redirect: "Viderekobling",
36
+ error: "Feil",
37
+ show: "Vis ${1}",
38
+ hide: "Skjul ${1}",
39
+ available_items: "Tilgjengelige elementer",
40
+ required_scopes: "Påkrevde scopes",
41
+ required_scopes_description: "Dette endepunktet krever følgende scopes:",
42
+ available_scopes: "Tilgjengelige scopes:",
43
+ properties: "Egenskaper",
44
+ or: "eller",
45
+ and: "og",
46
+ possible_values: "Mulige verdier"
47
+ };
48
+
49
+ //#endregion
50
+ export { no };
@@ -0,0 +1,50 @@
1
+ //#region src/translations/pt-br.ts
2
+ const pt_br = {
3
+ required: "Obrigatório",
4
+ deprecated: "Obsoleto",
5
+ deprecated_and_sunset_on: "Esta operação está obsoleta e será descontinuada em ${1}.",
6
+ stability_experimental: "Experimental",
7
+ stability_alpha: "Alfa",
8
+ stability_beta: "Beta",
9
+ discriminator: "Discriminador",
10
+ copy_to_clipboard: "Copiar para a área de transferência",
11
+ copied: "Copiado",
12
+ no_content: "Sem conteúdo",
13
+ unresolved_reference: "Referência não resolvida",
14
+ circular_reference: "Referência circular",
15
+ read_only: "Somente leitura",
16
+ write_only: "Somente escrita",
17
+ optional: "Opcional",
18
+ min: "Mín",
19
+ max: "Máx",
20
+ nullable: "Nulo",
21
+ body: "Corpo",
22
+ payload: "Carga útil",
23
+ headers: "Headers",
24
+ header: "Header",
25
+ authorizations: "Autorizações",
26
+ responses: "Respostas",
27
+ response: "Resposta",
28
+ path_parameters: "Parâmetros de rota",
29
+ query_parameters: "Parâmetros de consulta",
30
+ header_parameters: "Parâmetros de cabeçalho",
31
+ attributes: "Atributos",
32
+ test_it: "Testar",
33
+ information: "Informação",
34
+ success: "Sucesso",
35
+ redirect: "Redirecionamento",
36
+ error: "Erro",
37
+ show: "Mostrar ${1}",
38
+ hide: "Ocultar ${1}",
39
+ available_items: "Itens disponíveis",
40
+ required_scopes: "Scopes obrigatórios",
41
+ required_scopes_description: "Este endpoint requer os seguintes scopes:",
42
+ available_scopes: "Scopes disponíveis:",
43
+ properties: "Propriedades",
44
+ or: "ou",
45
+ and: "e",
46
+ possible_values: "Valores possíveis"
47
+ };
48
+
49
+ //#endregion
50
+ export { pt_br };
@@ -0,0 +1,7 @@
1
+ import { en } from "./en.js";
2
+
3
+ //#region src/translations/types.d.ts
4
+ type TranslationKey = keyof typeof en;
5
+ type Translation = { [key in TranslationKey]: string };
6
+ //#endregion
7
+ export { Translation, TranslationKey };