@twin.org/ts-to-schema 0.0.1-next.8 → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,248 +1,267 @@
1
1
  {
2
- "error": {
3
- "commands": {
4
- "common": {
5
- "missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
6
- "optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
7
- "optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
8
- "optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
9
- "optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
10
- "optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
11
- "optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
12
- },
13
- "ts-to-schema": {
14
- "configFailed": "Configuration failed to load.",
15
- "schemaNotFound": "Could not find the requested schema in the generated types \"{type}\"."
16
- }
17
- },
18
- "validation": {
19
- "beEmpty": "{fieldName} must be empty",
20
- "beNotEmpty": "{fieldName} must not be empty",
21
- "beText": "{fieldName} must be text",
22
- "beTextValue": "{fieldName} must contain some text",
23
- "beTextMinMax": "{fieldName} must be longer than {minLength} and shorter than {maxLength} characters",
24
- "beTextMin": "{fieldName} must be longer than {minLength} characters",
25
- "beTextMax": "{fieldName} must be shorter than {maxLength} characters",
26
- "beNumber": "{fieldName} must be a number",
27
- "beNumberMinMax": "{fieldName} must be >= {minValue} and <= {maxValue}",
28
- "beNumberMin": "{fieldName} must be >= {minValue}",
29
- "beNumberMax": "{fieldName} must be <= {maxValue}",
30
- "beWholeNumber": "{fieldName} must be a whole number",
31
- "beWholeNumberMinMax": "{fieldName} must be a whole number >= {minValue} and <= {maxValue}",
32
- "beWholeNumberMin": "{fieldName} must be a whole number >= {minValue}",
33
- "beWholeNumberMax": "{fieldName} must be a whole number <= {maxValue}",
34
- "beBigInteger": "{fieldName} must be a bigint",
35
- "beBigIntegerMinMax": "{fieldName} must be a bigint >= {minValue} and <= {maxValue}",
36
- "beBigIntegerMin": "{fieldName} must be a bigint >= {minValue}",
37
- "beBigIntegerMax": "{fieldName} must be a bigint <= {maxValue}",
38
- "beBoolean": "{fieldName} must be true or false",
39
- "beDate": "{fieldName} must be a date",
40
- "beDateTime": "{fieldName} must be a date/time",
41
- "beTime": "{fieldName} must be a time",
42
- "beTimestampMilliseconds": "{fieldName} must be a timestamp in milliseconds",
43
- "beTimestampSeconds": "{fieldName} must be a timestamp in seconds",
44
- "beObject": "{fieldName} must be an object",
45
- "beArray": "{fieldName} must be an array",
46
- "beArrayValue": "{fieldName} must be an array with at least one item",
47
- "beIncluded": "{fieldName} is unrecognised",
48
- "beByteArray": "{fieldName} must be a byte array",
49
- "beUrn": "{fieldName} must be a correctly formatted urn",
50
- "beUrl": "{fieldName} must be a correctly formatted url",
51
- "beJSON": "{fieldName} must be correctly formatted JSON",
52
- "beEmail": "{fieldName} must be a correctly formatted e-mail address",
53
- "failed": "Validation failed",
54
- "failedObject": "Validation of \"{objectName}\" failed"
55
- },
56
- "guard": {
57
- "undefined": "Property \"{property}\" must be defined, it is \"{value}\"",
58
- "string": "Property \"{property}\" must be a string, it is \"{value}\"",
59
- "stringEmpty": "Property \"{property}\" must have a value, it is empty",
60
- "stringBase64": "Property \"{property}\" must be a base64 encoded string, it is \"{value}\"",
61
- "stringBase64Url": "Property \"{property}\" must be a base64 url encoded string, it is \"{value}\"",
62
- "stringHex": "Property \"{property}\" must be a hex string, it is \"{value}\"",
63
- "stringHexLength": "Property \"{property}\" must be a hex string of length \"{options}\", it is \"{value}\"",
64
- "number": "Property \"{property}\" must be a number, it is \"{value}\"",
65
- "integer": "Property \"{property}\" must be an integer, it is \"{value}\"",
66
- "bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
67
- "boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
68
- "date": "Property \"{property}\" must be a date, it is \"{value}\"",
69
- "timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
70
- "timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
71
- "objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
72
- "object": "Property \"{property}\" must be an object, it is \"{value}\"",
73
- "objectValue": "Property \"{property}\" must be an object, with at least one property, it is \"{value}\"",
74
- "array": "Property \"{property}\" must be an array, it is \"{value}\"",
75
- "arrayValue": "Property \"{property}\" must be an array with at least one item",
76
- "arrayOneOf": "Property \"{property}\" must be one of [{options}], it is \"{value}\"",
77
- "uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
78
- "function": "Property \"{property}\" must be a function, it is \"{value}\"",
79
- "urn": "Property \"{property}\" must be a Urn formatted string, it is \"{value}\"",
80
- "url": "Property \"{property}\" must be a Url formatted string, it is \"{value}\"",
81
- "email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
82
- "length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
83
- "lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}",
84
- "length3Multiple": "Property \"{property}\" should be a multiple of 3, it is {value}",
85
- "greaterThan0": "Property \"{property}\" must be greater than zero, it is {value}"
86
- },
87
- "objectHelper": {
88
- "failedBytesToJSON": "Failed converting bytes to JSON"
89
- },
90
- "common": {
91
- "notImplementedMethod": "The method \"{method}\" has not been implemented",
92
- "validation": "Validation failed"
93
- },
94
- "factory": {
95
- "noUnregister": "There is no {typeName} registered with the name \"{name}\"",
96
- "noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
97
- },
98
- "bitString": {
99
- "outOfRange": "The index should be >= 0 and less than the length of the bit string"
100
- },
101
- "bip39": {
102
- "missingMnemonicWord": "The mnemonic contains a word not in the wordlist, \"{value}\"",
103
- "checksumMismatch": "The checksum does not match \"{newChecksum}\" != \"{checksumBits}\""
104
- },
105
- "ed25519": {
106
- "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
107
- "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
108
- },
109
- "secp256k1": {
110
- "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
111
- "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
112
- },
113
- "x25519": {
114
- "invalidPublicKey": "Invalid Ed25519 Public Key"
115
- },
116
- "blake2b": {
117
- "outputLength64": "The output length should be between 1 and 64, it is \"{outputLength}\"",
118
- "keyLength64": "The key length should be between 1 and 64, it is \"{keyLength}\""
119
- },
120
- "sha512": {
121
- "bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
122
- },
123
- "sha256": {
124
- "bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
125
- },
126
- "hmacSha256": {
127
- "bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
128
- },
129
- "hmacSha512": {
130
- "bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
131
- },
132
- "base32": {
133
- "invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
134
- },
135
- "base64": {
136
- "length4Multiple": "Invalid length should be a multiple of 4, it is \"{value}\""
137
- },
138
- "bech32": {
139
- "decodeFailed": "The address contains decoding failed for address \"{bech32}\"",
140
- "invalidChecksum": "The address contains an invalid checksum in address, \"{bech32}\"",
141
- "separatorMisused": "The separator character '1' should only be used between hrp and data, \"{bech32}\"",
142
- "lowerUpper": "The address my use either lowercase or uppercase, \"{bech32}\"",
143
- "dataTooShort": "The address does not contain enough data to decode, \"{bech32}\""
144
- },
145
- "pbkdf2": {
146
- "keyTooLong": "The requested key length \"{keyLength}\" is too long, based on the \"{macLength}\""
147
- },
148
- "chaCha20Poly1305": {
149
- "noAadWithData": "You can not set the aad when there is already data",
150
- "noAuthTag": "Can not finalise when the auth tag is not set",
151
- "authenticationFailed": "The data could not be authenticated",
152
- "authTagDecrypting": "Can not get the auth tag when decrypting",
153
- "authTagEncrypting": "Can not set the auth tag when encrypting",
154
- "noAuthTagSet": "The auth tag has not been set"
155
- },
156
- "bip44": {
157
- "unsupportedKeyType": "The key type \"{keyType}\" is not supported"
158
- },
159
- "slip0010": {
160
- "invalidSeed": "The seed is invalid \"{seed}\""
161
- }
162
- },
163
- "cli": {
164
- "progress": {
165
- "done": "Done.",
166
- "error": "Error",
167
- "loadingEnvFiles": "Loading env files",
168
- "pleaseWait": "Please wait...",
169
- "writingJsonFile": "Writing JSON file",
170
- "writingEnvFile": "Writing env file",
171
- "readingJsonFile": "Reading JSON file",
172
- "readingEnvFile": "Reading env file"
173
- },
174
- "options": {
175
- "lang": {
176
- "param": "--lang '<'lang'>'",
177
- "description": "The language to display the output in."
178
- },
179
- "load-env": {
180
- "param": "--load-env [env...]",
181
- "description": "Load the env files to initialise any environment variables."
182
- },
183
- "no-console": {
184
- "param": "--no-console",
185
- "description": "Hides the output in the console."
186
- },
187
- "json": {
188
- "param": "--json '<'filename'>'",
189
- "description": "Creates a JSON file containing the output."
190
- },
191
- "env": {
192
- "param": "--env '<'filename'>'",
193
- "description": "Creates an env file containing the output."
194
- },
195
- "merge-json": {
196
- "param": "--merge-json",
197
- "description": "If the JSON file already exists merge the data instead of overwriting."
198
- },
199
- "merge-env": {
200
- "param": "--merge-env",
201
- "description": "If the env file already exists merge the data instead of overwriting."
202
- }
203
- }
204
- },
205
- "errorNames": {
206
- "error": "Error",
207
- "generalError": "General",
208
- "guardError": "Guard",
209
- "conflictError": "Conflict",
210
- "notFoundError": "Not Found",
211
- "notSupportedError": "Not Supported",
212
- "alreadyExistsError": "Already Exists",
213
- "notImplementedError": "Not Implemented",
214
- "validationError": "Validation",
215
- "unprocessableError": "Unprocessable"
216
- },
217
- "validation": {
218
- "defaultFieldName": "The field"
219
- },
220
- "commands": {
221
- "ts-to-schema": {
222
- "options": {
223
- "config": {
224
- "param": "'<'config'>'",
225
- "description": "Path to the JSON configuration file."
226
- },
227
- "output-folder": {
228
- "param": "'<'output-folder'>'",
229
- "description": "The folder to write the schema files."
230
- }
231
- },
232
- "progress": {
233
- "loadingConfigJson": "Loading Config JSON",
234
- "creatingWorkingDir": "Creating Working Directory",
235
- "generatingSchemas": "Generating Schemas",
236
- "finalisingSchemas": "Finalising Schemas",
237
- "writingSchemas": "Writing Schemas",
238
- "writingSchema": "Writing Schema",
239
- "models": "Models"
240
- },
241
- "labels": {
242
- "configJson": "Config JSON",
243
- "outputFolder": "Output Folder",
244
- "outputWorkingDir": "Output Working Directory"
245
- }
246
- }
247
- }
248
- }
2
+ "error": {
3
+ "commands": {
4
+ "common": {
5
+ "missingEnv": "The \"{option}\" option is configured as an environment variable, but there is no environment variable with the name \"{value}\" set.",
6
+ "optionInvalidHex": "The \"{option}\" does not appear to be hex. \"{value}\"",
7
+ "optionInvalidBase64": "The \"{option}\" does not appear to be base64. \"{value}\"",
8
+ "optionInvalidHexBase64": "The \"{option}\" does not appear to be hex or base64. \"{value}\"",
9
+ "optionInvalidBech32": "The \"{option}\" does not appear to be bech32. \"{value}\"",
10
+ "optionMinValue": "The \"{option}\" option must be greater than or equal to {minValue}, it is {value}.",
11
+ "optionMaxValue": "The \"{option}\" option must be less than or equal to {maxValue}, it is {value}."
12
+ },
13
+ "ts-to-schema": {
14
+ "configFailed": "Configuration failed to load.",
15
+ "schemaNotFound": "Could not find the requested schema in the generated types \"{type}\"."
16
+ }
17
+ },
18
+ "validation": {
19
+ "beEmpty": "{fieldName} must be empty",
20
+ "beNotEmpty": "{fieldName} must not be empty",
21
+ "beText": "{fieldName} must be text",
22
+ "beTextValue": "{fieldName} must contain some text",
23
+ "beTextMinMax": "{fieldName} must be longer than {minLength} and shorter than {maxLength} characters",
24
+ "beTextMin": "{fieldName} must be longer than {minLength} characters",
25
+ "beTextMax": "{fieldName} must be shorter than {maxLength} characters",
26
+ "beTextBase58": "{fieldName} must be text formatted using Base58 characters",
27
+ "beTextBase64": "{fieldName} must be text formatted using Base64 characters",
28
+ "beTextHex": "{fieldName} must be text formatted using Hex characters",
29
+ "beTextRegExp": "{fieldName} must be text formatted using the matching pattern {format}",
30
+ "beNumber": "{fieldName} must be a number",
31
+ "beNumberMinMax": "{fieldName} must be >= {minValue} and <= {maxValue}",
32
+ "beNumberMin": "{fieldName} must be >= {minValue}",
33
+ "beNumberMax": "{fieldName} must be <= {maxValue}",
34
+ "beWholeNumber": "{fieldName} must be a whole number",
35
+ "beWholeNumberMinMax": "{fieldName} must be a whole number >= {minValue} and <= {maxValue}",
36
+ "beWholeNumberMin": "{fieldName} must be a whole number >= {minValue}",
37
+ "beWholeNumberMax": "{fieldName} must be a whole number <= {maxValue}",
38
+ "beBigInteger": "{fieldName} must be a bigint",
39
+ "beBigIntegerMinMax": "{fieldName} must be a bigint >= {minValue} and <= {maxValue}",
40
+ "beBigIntegerMin": "{fieldName} must be a bigint >= {minValue}",
41
+ "beBigIntegerMax": "{fieldName} must be a bigint <= {maxValue}",
42
+ "beBoolean": "{fieldName} must be true or false",
43
+ "beDate": "{fieldName} must be a date",
44
+ "beDateTime": "{fieldName} must be a date/time",
45
+ "beTime": "{fieldName} must be a time",
46
+ "beTimestampMilliseconds": "{fieldName} must be a timestamp in milliseconds",
47
+ "beTimestampSeconds": "{fieldName} must be a timestamp in seconds",
48
+ "beObject": "{fieldName} must be an object",
49
+ "beArray": "{fieldName} must be an array",
50
+ "beArrayValue": "{fieldName} must be an array with at least one item",
51
+ "beIncluded": "{fieldName} is unrecognised",
52
+ "beByteArray": "{fieldName} must be a byte array",
53
+ "beUrn": "{fieldName} must be a correctly formatted urn",
54
+ "beUrl": "{fieldName} must be a correctly formatted url",
55
+ "beJSON": "{fieldName} must be correctly formatted JSON",
56
+ "beEmail": "{fieldName} must be a correctly formatted e-mail address",
57
+ "failed": "Validation failed",
58
+ "failedObject": "Validation of \"{objectName}\" failed"
59
+ },
60
+ "guard": {
61
+ "undefined": "Property \"{property}\" must be defined, it is \"{value}\"",
62
+ "string": "Property \"{property}\" must be a string, it is \"{value}\"",
63
+ "stringEmpty": "Property \"{property}\" must have a value, it is empty",
64
+ "stringBase64": "Property \"{property}\" must be a base64 encoded string, it is \"{value}\"",
65
+ "stringBase64Url": "Property \"{property}\" must be a base64 url encoded string, it is \"{value}\"",
66
+ "stringBase58": "Property \"{property}\" must be a base58 encoded string, it is \"{value}\"",
67
+ "stringHex": "Property \"{property}\" must be a hex string, it is \"{value}\"",
68
+ "stringHexLength": "Property \"{property}\" must be a hex string of length \"{options}\", it is \"{value}\"",
69
+ "stringJson": "Property \"{property}\" must be a JSON string",
70
+ "number": "Property \"{property}\" must be a number, it is \"{value}\"",
71
+ "integer": "Property \"{property}\" must be an integer, it is \"{value}\"",
72
+ "bigint": "Property \"{property}\" must be a bigint, it is \"{value}\"",
73
+ "boolean": "Property \"{property}\" must be a boolean, it is \"{value}\"",
74
+ "date": "Property \"{property}\" must be a date, it is \"{value}\"",
75
+ "timestampMilliseconds": "Property \"{property}\" must be a timestamp in milliseconds, it is \"{value}\"",
76
+ "timestampSeconds": "Property \"{property}\" must be a timestamp in seconds, it is \"{value}\"",
77
+ "objectUndefined": "Property \"{property}\" must be an object, it is \"undefined\"",
78
+ "object": "Property \"{property}\" must be an object, it is \"{value}\"",
79
+ "objectValue": "Property \"{property}\" must be an object, with at least one property, it is \"{value}\"",
80
+ "array": "Property \"{property}\" must be an array, it is \"{value}\"",
81
+ "arrayValue": "Property \"{property}\" must be an array with at least one item",
82
+ "arrayOneOf": "Property \"{property}\" must be one of [{options}], it is \"{value}\"",
83
+ "arrayStartsWith": "Property \"{property}\" must be an array starting with [{startValues}], it is \"{value}\"",
84
+ "arrayEndsWith": "Property \"{property}\" must be an array ending with [{endValues}], it is \"{value}\"",
85
+ "uint8Array": "Property \"{property}\" must be a Uint8Array, it is \"{value}\"",
86
+ "function": "Property \"{property}\" must be a function, it is \"{value}\"",
87
+ "urn": "Property \"{property}\" must be a Urn formatted string, it is \"{value}\"",
88
+ "url": "Property \"{property}\" must be a Url formatted string, it is \"{value}\"",
89
+ "email": "Property \"{property}\" must be string in e-mail format, it is \"{value}\"",
90
+ "length32Multiple": "Property \"{property}\" should be a multiple of 32, it is {value}",
91
+ "lengthEntropy": "Property \"{property}\" should be a multiple of 4, >=16 and <= 32, it is {value}",
92
+ "length3Multiple": "Property \"{property}\" should be a multiple of 3, it is {value}",
93
+ "greaterThan0": "Property \"{property}\" must be greater than zero, it is {value}"
94
+ },
95
+ "objectHelper": {
96
+ "failedBytesToJSON": "Failed converting bytes to JSON",
97
+ "cannotSetArrayIndex": "Cannot set property \"{property}\" using index \"{index}\" as it is not an array",
98
+ "cannotSetProperty": "Cannot set property \"{property}\" when the target is not an object"
99
+ },
100
+ "common": {
101
+ "notImplementedMethod": "The method \"{method}\" has not been implemented",
102
+ "validation": "Validation failed"
103
+ },
104
+ "factory": {
105
+ "noUnregister": "There is no {typeName} registered with the name \"{name}\"",
106
+ "noGet": "The requested {typeName} \"{name}\" does not exist in the factory"
107
+ },
108
+ "bitString": {
109
+ "outOfRange": "The index should be >= 0 and less than the length of the bit string"
110
+ },
111
+ "base32": {
112
+ "invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
113
+ },
114
+ "base64": {
115
+ "length4Multiple": "Invalid length should be a multiple of 4, it is \"{value}\""
116
+ },
117
+ "base58": {
118
+ "invalidCharacter": "Data contains a character \"{invalidCharacter}\" which is not in the charset"
119
+ },
120
+ "jsonHelper": {
121
+ "failedPatch": "Failed to patch the JSON object, patch index \"{index}\" failed"
122
+ },
123
+ "bip39": {
124
+ "missingMnemonicWord": "The mnemonic contains a word not in the wordlist, \"{value}\"",
125
+ "checksumMismatch": "The checksum does not match \"{newChecksum}\" != \"{checksumBits}\""
126
+ },
127
+ "ed25519": {
128
+ "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
129
+ "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
130
+ },
131
+ "secp256k1": {
132
+ "privateKeyLength": "The private key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\"",
133
+ "publicKeyLength": "The public key length is incorrect, it should be \"{requiredSize}\" but is \"{actualSize}\""
134
+ },
135
+ "x25519": {
136
+ "invalidPublicKey": "Invalid Ed25519 Public Key"
137
+ },
138
+ "blake2b": {
139
+ "outputLength64": "The output length should be between 1 and 64, it is \"{outputLength}\"",
140
+ "keyLength64": "The key length should be between 1 and 64, it is \"{keyLength}\""
141
+ },
142
+ "sha512": {
143
+ "bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
144
+ },
145
+ "sha256": {
146
+ "bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
147
+ },
148
+ "sha3": {
149
+ "bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
150
+ },
151
+ "hmacSha256": {
152
+ "bitSize": "Only 224 or 256 bits are supported, it is \"{bitSize}\""
153
+ },
154
+ "hmacSha512": {
155
+ "bitSize": "Only 224, 256, 384 or 512 bits are supported, it is \"{bitSize}\""
156
+ },
157
+ "bech32": {
158
+ "decodeFailed": "The address contains decoding failed for address \"{bech32}\"",
159
+ "invalidChecksum": "The address contains an invalid checksum in address, \"{bech32}\"",
160
+ "separatorMisused": "The separator character '1' should only be used between hrp and data, \"{bech32}\"",
161
+ "lowerUpper": "The address my use either lowercase or uppercase, \"{bech32}\"",
162
+ "dataTooShort": "The address does not contain enough data to decode, \"{bech32}\""
163
+ },
164
+ "pbkdf2": {
165
+ "keyTooLong": "The requested key length \"{keyLength}\" is too long, based on the \"{macLength}\""
166
+ },
167
+ "chaCha20Poly1305": {
168
+ "noAadWithData": "You can not set the aad when there is already data",
169
+ "noAuthTag": "Can not finalise when the auth tag is not set",
170
+ "authenticationFailed": "The data could not be authenticated",
171
+ "authTagDecrypting": "Can not get the auth tag when decrypting",
172
+ "authTagEncrypting": "Can not set the auth tag when encrypting",
173
+ "noAuthTagSet": "The auth tag has not been set"
174
+ },
175
+ "bip44": {
176
+ "unsupportedKeyType": "The key type \"{keyType}\" is not supported"
177
+ },
178
+ "slip0010": {
179
+ "invalidSeed": "The seed is invalid \"{seed}\""
180
+ }
181
+ },
182
+ "cli": {
183
+ "progress": {
184
+ "done": "Done.",
185
+ "error": "Error",
186
+ "loadingEnvFiles": "Loading env files",
187
+ "pleaseWait": "Please wait...",
188
+ "writingJsonFile": "Writing JSON file",
189
+ "writingEnvFile": "Writing env file",
190
+ "readingJsonFile": "Reading JSON file",
191
+ "readingEnvFile": "Reading env file"
192
+ },
193
+ "options": {
194
+ "lang": {
195
+ "param": "--lang '<'lang'>'",
196
+ "description": "The language to display the output in."
197
+ },
198
+ "load-env": {
199
+ "param": "--load-env [env...]",
200
+ "description": "Load the env files to initialise any environment variables."
201
+ },
202
+ "no-console": {
203
+ "param": "--no-console",
204
+ "description": "Hides the output in the console."
205
+ },
206
+ "json": {
207
+ "param": "--json '<'filename'>'",
208
+ "description": "Creates a JSON file containing the output."
209
+ },
210
+ "env": {
211
+ "param": "--env '<'filename'>'",
212
+ "description": "Creates an env file containing the output."
213
+ },
214
+ "merge-json": {
215
+ "param": "--merge-json",
216
+ "description": "If the JSON file already exists merge the data instead of overwriting."
217
+ },
218
+ "merge-env": {
219
+ "param": "--merge-env",
220
+ "description": "If the env file already exists merge the data instead of overwriting."
221
+ }
222
+ }
223
+ },
224
+ "errorNames": {
225
+ "error": "Error",
226
+ "generalError": "General",
227
+ "guardError": "Guard",
228
+ "conflictError": "Conflict",
229
+ "notFoundError": "Not Found",
230
+ "notSupportedError": "Not Supported",
231
+ "alreadyExistsError": "Already Exists",
232
+ "notImplementedError": "Not Implemented",
233
+ "validationError": "Validation",
234
+ "unprocessableError": "Unprocessable"
235
+ },
236
+ "validation": {
237
+ "defaultFieldName": "The field"
238
+ },
239
+ "commands": {
240
+ "ts-to-schema": {
241
+ "options": {
242
+ "config": {
243
+ "param": "'<'config'>'",
244
+ "description": "Path to the JSON configuration file."
245
+ },
246
+ "output-folder": {
247
+ "param": "'<'output-folder'>'",
248
+ "description": "The folder to write the schema files."
249
+ }
250
+ },
251
+ "progress": {
252
+ "loadingConfigJson": "Loading Config JSON",
253
+ "creatingWorkingDir": "Creating Working Directory",
254
+ "generatingSchema": "Generating Schema",
255
+ "overridingSchema": "Overriding Schema",
256
+ "writingSchemas": "Writing Schemas",
257
+ "writingSchema": "Writing Schema",
258
+ "models": "Models"
259
+ },
260
+ "labels": {
261
+ "configJson": "Config JSON",
262
+ "outputFolder": "Output Folder",
263
+ "outputWorkingDir": "Output Working Directory"
264
+ }
265
+ }
266
+ }
267
+ }
@@ -0,0 +1,5 @@
1
+ import type { AnySchemaObject } from "ajv/dist/2020.js";
2
+ /**
3
+ * Default schema type.
4
+ */
5
+ export type IJsonSchema = AnySchemaObject;
@@ -1,3 +1,4 @@
1
+ import type { IJsonSchema } from "./IJsonSchema";
1
2
  /**
2
3
  * Configuration for the tool.
3
4
  */
@@ -7,11 +8,7 @@ export interface ITsToSchemaConfig {
7
8
  */
8
9
  baseUrl: string;
9
10
  /**
10
- * The list of glob sources that can be used to generate the schemas.
11
- */
12
- sources: string[];
13
- /**
14
- * The list of types to generate.
11
+ * The source files to generate the types from.
15
12
  */
16
13
  types: string[];
17
14
  /**
@@ -20,4 +17,10 @@ export interface ITsToSchemaConfig {
20
17
  externalReferences?: {
21
18
  [id: string]: string;
22
19
  };
20
+ /**
21
+ * Override for specific types, to be used when the type cannot be generated automatically, or is generated incorrectly.
22
+ */
23
+ overrides?: {
24
+ [id: string]: IJsonSchema;
25
+ };
23
26
  }