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