@verbatra/sdk 0.11.1 → 0.13.0

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.
@@ -0,0 +1,355 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://verbatra.kreitz-webdev.de/schema/v1/doctor-result.json",
4
+ "title": "verbatra doctor result",
5
+ "type": "object",
6
+ "properties": {
7
+ "ok": {
8
+ "type": "boolean"
9
+ },
10
+ "checks": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "id": {
16
+ "type": "string",
17
+ "enum": [
18
+ "config",
19
+ "format-adapter",
20
+ "provider",
21
+ "api-key",
22
+ "network-policy",
23
+ "source-file",
24
+ "plural-rules",
25
+ "plural-completeness",
26
+ "locale-codes",
27
+ "locale-state",
28
+ "limits",
29
+ "locales",
30
+ "untranslated-literals",
31
+ "data-flow"
32
+ ]
33
+ },
34
+ "title": {
35
+ "type": "string"
36
+ },
37
+ "status": {
38
+ "type": "string",
39
+ "enum": [
40
+ "pass",
41
+ "warn",
42
+ "fail",
43
+ "skipped"
44
+ ]
45
+ },
46
+ "detail": {
47
+ "type": "string"
48
+ },
49
+ "fix": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "required": [
54
+ "id",
55
+ "title",
56
+ "status",
57
+ "detail"
58
+ ]
59
+ }
60
+ },
61
+ "literals": {
62
+ "type": "object",
63
+ "properties": {
64
+ "scannedFiles": {
65
+ "type": "number"
66
+ },
67
+ "findings": {
68
+ "type": "array",
69
+ "items": {
70
+ "type": "object",
71
+ "properties": {
72
+ "file": {
73
+ "type": "string"
74
+ },
75
+ "line": {
76
+ "type": "number"
77
+ },
78
+ "column": {
79
+ "type": "number"
80
+ },
81
+ "text": {
82
+ "type": "string"
83
+ },
84
+ "truncated": {
85
+ "type": "boolean"
86
+ }
87
+ },
88
+ "required": [
89
+ "file",
90
+ "line",
91
+ "column",
92
+ "text",
93
+ "truncated"
94
+ ]
95
+ }
96
+ },
97
+ "suppressed": {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "object",
101
+ "properties": {
102
+ "file": {
103
+ "type": "string"
104
+ },
105
+ "line": {
106
+ "type": "number"
107
+ },
108
+ "column": {
109
+ "type": "number"
110
+ },
111
+ "text": {
112
+ "type": "string"
113
+ },
114
+ "truncated": {
115
+ "type": "boolean"
116
+ },
117
+ "reason": {
118
+ "type": "string",
119
+ "enum": [
120
+ "directive",
121
+ "ignore-list"
122
+ ]
123
+ }
124
+ },
125
+ "required": [
126
+ "file",
127
+ "line",
128
+ "column",
129
+ "text",
130
+ "truncated",
131
+ "reason"
132
+ ]
133
+ }
134
+ },
135
+ "diagnostics": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "object",
139
+ "properties": {
140
+ "file": {
141
+ "type": "string"
142
+ },
143
+ "reason": {
144
+ "type": "string",
145
+ "enum": [
146
+ "unreadable",
147
+ "too-large",
148
+ "unparseable",
149
+ "unreadable-directory"
150
+ ]
151
+ }
152
+ },
153
+ "required": [
154
+ "file",
155
+ "reason"
156
+ ]
157
+ }
158
+ }
159
+ },
160
+ "required": [
161
+ "scannedFiles",
162
+ "findings",
163
+ "suppressed",
164
+ "diagnostics"
165
+ ]
166
+ },
167
+ "locales": {
168
+ "type": "object",
169
+ "properties": {
170
+ "provider": {
171
+ "type": "string",
172
+ "enum": [
173
+ "anthropic",
174
+ "openai",
175
+ "gemini",
176
+ "deepl",
177
+ "google-translate",
178
+ "openai-compatible",
179
+ "opencode",
180
+ "libretranslate"
181
+ ]
182
+ },
183
+ "coverage": {
184
+ "type": "string",
185
+ "enum": [
186
+ "listed",
187
+ "open"
188
+ ]
189
+ },
190
+ "tableVersion": {
191
+ "type": "string"
192
+ },
193
+ "tableOrigin": {
194
+ "type": "string",
195
+ "enum": [
196
+ "static",
197
+ "live"
198
+ ]
199
+ },
200
+ "live": {
201
+ "type": "object",
202
+ "properties": {
203
+ "status": {
204
+ "type": "string",
205
+ "enum": [
206
+ "refreshed",
207
+ "skipped",
208
+ "failed"
209
+ ]
210
+ },
211
+ "detail": {
212
+ "type": "string"
213
+ }
214
+ },
215
+ "required": [
216
+ "status",
217
+ "detail"
218
+ ]
219
+ },
220
+ "source": {
221
+ "type": "object",
222
+ "properties": {
223
+ "locale": {
224
+ "type": "string"
225
+ },
226
+ "providerCode": {
227
+ "type": "string"
228
+ },
229
+ "mapped": {
230
+ "type": "boolean"
231
+ },
232
+ "support": {
233
+ "type": "string",
234
+ "enum": [
235
+ "supported",
236
+ "unverified",
237
+ "unsupported"
238
+ ]
239
+ },
240
+ "warnings": {
241
+ "type": "array",
242
+ "items": {
243
+ "type": "object",
244
+ "properties": {
245
+ "code": {
246
+ "type": "string",
247
+ "enum": [
248
+ "LOCALE_UNVERIFIED_BY_PROVIDER",
249
+ "LOCALE_NOT_WELL_TESTED",
250
+ "GLOSSARY_UNSUPPORTED_BY_PROVIDER",
251
+ "FORMALITY_UNSUPPORTED_BY_PROVIDER"
252
+ ]
253
+ },
254
+ "message": {
255
+ "type": "string"
256
+ }
257
+ },
258
+ "required": [
259
+ "code",
260
+ "message"
261
+ ]
262
+ }
263
+ }
264
+ },
265
+ "required": [
266
+ "locale",
267
+ "providerCode",
268
+ "mapped",
269
+ "support",
270
+ "warnings"
271
+ ]
272
+ },
273
+ "locales": {
274
+ "type": "array",
275
+ "items": {
276
+ "type": "object",
277
+ "properties": {
278
+ "locale": {
279
+ "type": "string"
280
+ },
281
+ "providerCode": {
282
+ "type": "string"
283
+ },
284
+ "mapped": {
285
+ "type": "boolean"
286
+ },
287
+ "support": {
288
+ "type": "string",
289
+ "enum": [
290
+ "supported",
291
+ "unverified",
292
+ "unsupported"
293
+ ]
294
+ },
295
+ "warnings": {
296
+ "type": "array",
297
+ "items": {
298
+ "type": "object",
299
+ "properties": {
300
+ "code": {
301
+ "type": "string",
302
+ "enum": [
303
+ "LOCALE_UNVERIFIED_BY_PROVIDER",
304
+ "LOCALE_NOT_WELL_TESTED",
305
+ "GLOSSARY_UNSUPPORTED_BY_PROVIDER",
306
+ "FORMALITY_UNSUPPORTED_BY_PROVIDER"
307
+ ]
308
+ },
309
+ "message": {
310
+ "type": "string"
311
+ }
312
+ },
313
+ "required": [
314
+ "code",
315
+ "message"
316
+ ]
317
+ }
318
+ },
319
+ "glossary": {
320
+ "type": "boolean"
321
+ },
322
+ "formality": {
323
+ "type": "boolean"
324
+ }
325
+ },
326
+ "required": [
327
+ "locale",
328
+ "providerCode",
329
+ "mapped",
330
+ "support",
331
+ "warnings",
332
+ "glossary",
333
+ "formality"
334
+ ]
335
+ }
336
+ }
337
+ },
338
+ "required": [
339
+ "provider",
340
+ "coverage",
341
+ "tableVersion",
342
+ "tableOrigin",
343
+ "source",
344
+ "locales"
345
+ ]
346
+ },
347
+ "dataFlow": {
348
+ "$ref": "https://verbatra.kreitz-webdev.de/schema/v1/data-flow-manifest.json"
349
+ }
350
+ },
351
+ "required": [
352
+ "ok",
353
+ "checks"
354
+ ]
355
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://verbatra.kreitz-webdev.de/schema/v1/export-tmx-result.json",
4
+ "title": "verbatra tmx export result",
5
+ "type": "object",
6
+ "properties": {
7
+ "path": {
8
+ "type": "string"
9
+ },
10
+ "units": {
11
+ "type": "number"
12
+ },
13
+ "locales": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "locale": {
19
+ "type": "string"
20
+ },
21
+ "units": {
22
+ "type": "number"
23
+ }
24
+ },
25
+ "required": [
26
+ "locale",
27
+ "units"
28
+ ]
29
+ }
30
+ },
31
+ "withoutSource": {
32
+ "type": "number"
33
+ },
34
+ "illegalCharactersRemoved": {
35
+ "type": "number"
36
+ },
37
+ "provenanceMarkers": {
38
+ "type": "string",
39
+ "enum": [
40
+ "written",
41
+ "unavailable"
42
+ ]
43
+ }
44
+ },
45
+ "required": [
46
+ "path",
47
+ "units",
48
+ "locales",
49
+ "withoutSource",
50
+ "illegalCharactersRemoved",
51
+ "provenanceMarkers"
52
+ ]
53
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://verbatra.kreitz-webdev.de/schema/v1/export-workbook-result.json",
4
+ "title": "verbatra export result",
5
+ "type": "object",
6
+ "properties": {
7
+ "path": {
8
+ "type": "string"
9
+ },
10
+ "locales": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "object",
14
+ "properties": {
15
+ "locale": {
16
+ "type": "string"
17
+ },
18
+ "rows": {
19
+ "type": "number"
20
+ }
21
+ },
22
+ "required": [
23
+ "locale",
24
+ "rows"
25
+ ]
26
+ }
27
+ },
28
+ "provenanceMarkers": {
29
+ "type": "string",
30
+ "enum": [
31
+ "written",
32
+ "unavailable"
33
+ ]
34
+ },
35
+ "limitsNotice": {
36
+ "type": "object",
37
+ "properties": {
38
+ "code": {
39
+ "type": "string",
40
+ "const": "LIMITS_FILE_IGNORED"
41
+ },
42
+ "message": {
43
+ "type": "string"
44
+ }
45
+ },
46
+ "required": [
47
+ "code",
48
+ "message"
49
+ ]
50
+ }
51
+ },
52
+ "required": [
53
+ "path",
54
+ "locales"
55
+ ]
56
+ }
@@ -0,0 +1,149 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://verbatra.kreitz-webdev.de/schema/v1/extract-result.json",
4
+ "title": "verbatra extract result",
5
+ "type": "object",
6
+ "properties": {
7
+ "sourcePath": {
8
+ "type": "string"
9
+ },
10
+ "scannedFiles": {
11
+ "type": "number"
12
+ },
13
+ "added": {
14
+ "type": "array",
15
+ "items": {
16
+ "type": "object",
17
+ "properties": {
18
+ "key": {
19
+ "type": "string"
20
+ },
21
+ "value": {
22
+ "type": "string"
23
+ },
24
+ "file": {
25
+ "type": "string"
26
+ },
27
+ "line": {
28
+ "type": "number"
29
+ }
30
+ },
31
+ "required": [
32
+ "key",
33
+ "value",
34
+ "file",
35
+ "line"
36
+ ]
37
+ }
38
+ },
39
+ "existingKeys": {
40
+ "type": "number"
41
+ },
42
+ "withoutDefault": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "dynamic": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "object",
52
+ "properties": {
53
+ "file": {
54
+ "type": "string"
55
+ },
56
+ "line": {
57
+ "type": "number"
58
+ }
59
+ },
60
+ "required": [
61
+ "file",
62
+ "line"
63
+ ]
64
+ }
65
+ },
66
+ "conflicts": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "object",
70
+ "properties": {
71
+ "key": {
72
+ "type": "string"
73
+ },
74
+ "values": {
75
+ "type": "array",
76
+ "items": {
77
+ "type": "string"
78
+ }
79
+ },
80
+ "locations": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "object",
84
+ "properties": {
85
+ "file": {
86
+ "type": "string"
87
+ },
88
+ "line": {
89
+ "type": "number"
90
+ }
91
+ },
92
+ "required": [
93
+ "file",
94
+ "line"
95
+ ]
96
+ }
97
+ }
98
+ },
99
+ "required": [
100
+ "key",
101
+ "values",
102
+ "locations"
103
+ ]
104
+ }
105
+ },
106
+ "diagnostics": {
107
+ "type": "array",
108
+ "items": {
109
+ "type": "object",
110
+ "properties": {
111
+ "file": {
112
+ "type": "string"
113
+ },
114
+ "reason": {
115
+ "type": "string",
116
+ "enum": [
117
+ "unreadable",
118
+ "too-large",
119
+ "unparseable",
120
+ "unreadable-directory"
121
+ ]
122
+ }
123
+ },
124
+ "required": [
125
+ "file",
126
+ "reason"
127
+ ]
128
+ }
129
+ },
130
+ "written": {
131
+ "type": "boolean"
132
+ },
133
+ "dryRun": {
134
+ "type": "boolean"
135
+ }
136
+ },
137
+ "required": [
138
+ "sourcePath",
139
+ "scannedFiles",
140
+ "added",
141
+ "existingKeys",
142
+ "withoutDefault",
143
+ "dynamic",
144
+ "conflicts",
145
+ "diagnostics",
146
+ "written",
147
+ "dryRun"
148
+ ]
149
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://verbatra.kreitz-webdev.de/schema/v1/generate-types-result.json",
4
+ "title": "verbatra types result",
5
+ "type": "object",
6
+ "properties": {
7
+ "path": {
8
+ "type": "string"
9
+ },
10
+ "sourcePath": {
11
+ "type": "string"
12
+ },
13
+ "keys": {
14
+ "type": "number"
15
+ },
16
+ "withArguments": {
17
+ "type": "number"
18
+ },
19
+ "unresolved": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "key": {
25
+ "type": "string"
26
+ },
27
+ "reason": {
28
+ "type": "string",
29
+ "enum": [
30
+ "invalid-message-syntax",
31
+ "mixed-argument-styles",
32
+ "argument-index-out-of-range"
33
+ ]
34
+ }
35
+ },
36
+ "required": [
37
+ "key",
38
+ "reason"
39
+ ]
40
+ }
41
+ },
42
+ "excluded": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string"
46
+ }
47
+ },
48
+ "plural": {
49
+ "type": "array",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ },
54
+ "written": {
55
+ "type": "boolean"
56
+ },
57
+ "stale": {
58
+ "type": "boolean"
59
+ },
60
+ "missing": {
61
+ "type": "boolean"
62
+ },
63
+ "check": {
64
+ "type": "boolean"
65
+ }
66
+ },
67
+ "required": [
68
+ "path",
69
+ "sourcePath",
70
+ "keys",
71
+ "withArguments",
72
+ "unresolved",
73
+ "excluded",
74
+ "plural",
75
+ "written",
76
+ "stale",
77
+ "missing",
78
+ "check"
79
+ ]
80
+ }