@isvalid-dev/sdk 0.3.0 → 0.4.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.
- package/README.md +4 -2
- package/dist/index.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -1
- package/dist/index.d.ts +89 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +28 -6
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ TypeScript SDK for the [isvalid.dev](https://isvalid.dev) validation API.
|
|
|
7
7
|
- **Zero dependencies** — native `fetch` only (Node 18+, browsers)
|
|
8
8
|
- **Full TypeScript types** for every endpoint response
|
|
9
9
|
- **ESM + CJS** dual export
|
|
10
|
-
- **Tiny** — ~
|
|
10
|
+
- **Tiny** — ~2 KB minified + brotli
|
|
11
11
|
- **Automatic retry** with exponential backoff for 429/5xx
|
|
12
12
|
- **Custom error classes** for auth and rate limit errors
|
|
13
13
|
|
|
@@ -112,6 +112,8 @@ const indList = await iv.industry.list({ system: 'naics', level: 'sector' });
|
|
|
112
112
|
await iv.pl.pesel('44051401358');
|
|
113
113
|
await iv.pl.regon('012345678', { lookup: true });
|
|
114
114
|
await iv.pl.krs('0000123456', { lookup: true });
|
|
115
|
+
await iv.pl.ceidg('5252344078', { lookup: true });
|
|
116
|
+
await iv.pl.pkd('62.01.Z');
|
|
115
117
|
|
|
116
118
|
// Brazil
|
|
117
119
|
await iv.br.cnpj('11.222.333/0001-81');
|
|
@@ -160,7 +162,7 @@ iv.gln(value) iv.qr(value) iv.creditCard(number)
|
|
|
160
162
|
iv.cas(value) iv.eori(value, opts?) iv.orcid(value, opts?)
|
|
161
163
|
iv.doi(value, opts?) iv.barcode(value, opts?) iv.base64(value)
|
|
162
164
|
iv.ethAddress(value) iv.cron(value) iv.domain(value)
|
|
163
|
-
iv.regex(pattern, opts?)
|
|
165
|
+
iv.regex(pattern, opts?) iv.duns(value, opts?) iv.timestamp(value)
|
|
164
166
|
```
|
|
165
167
|
|
|
166
168
|
## Configuration
|
package/dist/index.cjs
CHANGED
|
@@ -181,7 +181,12 @@ function createPlNamespace(client) {
|
|
|
181
181
|
krs: (value, opts) => client.get("/v0/pl/krs", {
|
|
182
182
|
value,
|
|
183
183
|
lookup: opts?.lookup?.toString()
|
|
184
|
-
})
|
|
184
|
+
}),
|
|
185
|
+
ceidg: (value, opts) => client.get("/v0/pl/ceidg", {
|
|
186
|
+
value,
|
|
187
|
+
lookup: opts?.lookup?.toString()
|
|
188
|
+
}),
|
|
189
|
+
pkd: (value) => client.get("/v0/pl/pkd", { value })
|
|
185
190
|
};
|
|
186
191
|
}
|
|
187
192
|
|
|
@@ -452,6 +457,12 @@ var IsValid = class {
|
|
|
452
457
|
regex(pattern, opts) {
|
|
453
458
|
return this.client.post("/v0/regex", { pattern, flags: opts?.flags });
|
|
454
459
|
}
|
|
460
|
+
duns(value, opts) {
|
|
461
|
+
return this.client.get("/v0/duns", { value, lookup: opts?.lookup?.toString() });
|
|
462
|
+
}
|
|
463
|
+
timestamp(value) {
|
|
464
|
+
return this.client.get("/v0/timestamp", { value });
|
|
465
|
+
}
|
|
455
466
|
};
|
|
456
467
|
function createClient(config) {
|
|
457
468
|
return new IsValid(config);
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/errors.ts","../src/client.ts","../src/namespaces/lei.ts","../src/namespaces/country.ts","../src/namespaces/currency.ts","../src/namespaces/language.ts","../src/namespaces/iata.ts","../src/namespaces/net.ts","../src/namespaces/pl.ts","../src/namespaces/br.ts","../src/namespaces/au.ts","../src/namespaces/es.ts","../src/namespaces/in.ts","../src/namespaces/us.ts","../src/namespaces/gb.ts","../src/namespaces/hsCode.ts","../src/namespaces/gs1Prefix.ts","../src/namespaces/industry.ts","../src/namespaces/timezone.ts","../src/namespaces/mimeType.ts","../src/namespaces/httpStatus.ts","../src/namespaces/swiftMt.ts","../src/namespaces/locode.ts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AC/E;AAAA,EAEA,OAAA,CAAQ,OAAe,IAAA,EAAoD;AACzE,IAAA,OAAO,IAAA,CAAK,OAAO,GAAA,CAAI,aAAA,EAAe,EAAE,KAAA,EAAO,IAAA,EAAM,IAAA,EAAM,IAAA,EAAM,CAAA;AAAA,EACnE;AAAA,EAEA,OAAO,KAAA,EAAwC;AAC7C,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,YAAA,EAAc,EAAE,OAAO,CAAA;AAAA,EAChD;AAAA,EAEA,WAAW,KAAA,EAA4C;AACrD,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,iBAAA,EAAmB,EAAE,OAAO,CAAA;AAAA,EACrD;AAAA,EAEA,KAAK,KAAA,EAAsC;AACzC,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,UAAA,EAAY,EAAE,OAAO,CAAA;AAAA,EAC9C;AAAA,EAEA,OAAO,KAAA,EAAwC;AAC7C,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,YAAA,EAAc,EAAE,OAAO,CAAA;AAAA,EAChD;AAAA,EAEA,KAAA,CAAM,SAAiB,IAAA,EAAmD;AACxE,IAAA,OAAO,IAAA,CAAK,OAAO,IAAA,CAAK,WAAA,EAAa,EAAE,OAAA,EAAS,KAAA,EAAO,IAAA,EAAM,KAAA,EAAO,CAAA;AAAA,EACtE;AACF;AAEO,SAAS,aAAa,MAAA,EAAgC;AAC3D,EAAA,OAAO,IAAI,QAAQ,MAAM,CAAA;AAC3B","file":"index.cjs","sourcesContent":["export class IsValidError extends Error {\n readonly status: number;\n readonly body: { error: string };\n\n constructor(status: number, body: { error: string }) {\n super(body.error);\n this.name = 'IsValidError';\n this.status = status;\n this.body = body;\n }\n}\n\nexport class IsValidAuthError extends IsValidError {\n constructor(body: { error: string }) {\n super(401, body);\n this.name = 'IsValidAuthError';\n }\n}\n\nexport class IsValidRateLimitError extends IsValidError {\n readonly retryAfter: number | null;\n\n constructor(body: { error: string }, retryAfter: number | null = null) {\n super(429, body);\n this.name = 'IsValidRateLimitError';\n this.retryAfter = retryAfter;\n }\n}\n","import { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\n\nexport interface RetryConfig {\n maxRetries?: number;\n initialDelayMs?: number;\n maxDelayMs?: number;\n retryOn?: number[];\n}\n\nexport interface IsValidConfig {\n apiKey: string;\n baseUrl?: string;\n timeout?: number;\n retry?: RetryConfig | false;\n}\n\nconst DEFAULT_BASE_URL = 'https://api.isvalid.dev';\nconst DEFAULT_TIMEOUT = 10_000;\nconst DEFAULT_RETRY: Required<RetryConfig> = {\n maxRetries: 3,\n initialDelayMs: 500,\n maxDelayMs: 10_000,\n retryOn: [429, 500, 502, 503],\n};\n\nfunction resolveRetry(cfg: RetryConfig | false | undefined): Required<RetryConfig> | false {\n if (cfg === false) return false;\n if (!cfg) return DEFAULT_RETRY;\n return {\n maxRetries: cfg.maxRetries ?? DEFAULT_RETRY.maxRetries,\n initialDelayMs: cfg.initialDelayMs ?? DEFAULT_RETRY.initialDelayMs,\n maxDelayMs: cfg.maxDelayMs ?? DEFAULT_RETRY.maxDelayMs,\n retryOn: cfg.retryOn ?? DEFAULT_RETRY.retryOn,\n };\n}\n\nfunction delay(ms: number): Promise<void> {\n return new Promise((r) => setTimeout(r, ms));\n}\n\nfunction backoffDelay(attempt: number, initial: number, max: number): number {\n const base = initial * 2 ** attempt;\n const jitter = Math.random() * initial;\n return Math.min(base + jitter, max);\n}\n\nexport class HttpClient {\n private readonly baseUrl: string;\n private readonly apiKey: string;\n private readonly retry: Required<RetryConfig> | false;\n private readonly timeout: number;\n\n constructor(config: IsValidConfig) {\n this.baseUrl = (config.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, '');\n this.apiKey = config.apiKey;\n this.retry = resolveRetry(config.retry);\n this.timeout = config.timeout ?? DEFAULT_TIMEOUT;\n }\n\n async get<T>(path: string, params?: Record<string, string | undefined>): Promise<T> {\n const url = this.buildUrl(path, params);\n return this.request<T>(url, { method: 'GET' });\n }\n\n async post<T>(path: string, body: unknown): Promise<T> {\n const url = this.buildUrl(path);\n return this.request<T>(url, {\n method: 'POST',\n body: JSON.stringify(body),\n headers: { 'Content-Type': 'application/json' },\n });\n }\n\n private buildUrl(path: string, params?: Record<string, string | undefined>): string {\n let result = this.baseUrl + path;\n if (params) {\n const entries = Object.entries(params).filter((e): e is [string, string] => e[1] !== undefined);\n if (entries.length > 0) {\n result += '?' + entries.map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`).join('&');\n }\n }\n return result;\n }\n\n private async request<T>(url: string, init: RequestInit): Promise<T> {\n const headers: Record<string, string> = {\n Authorization: `Bearer ${this.apiKey}`,\n Accept: 'application/json',\n ...(init.headers as Record<string, string> | undefined),\n };\n\n const maxAttempts = this.retry ? this.retry.maxRetries + 1 : 1;\n\n for (let attempt = 0; attempt < maxAttempts; attempt++) {\n const res = await fetch(url, {\n ...init,\n headers,\n signal: AbortSignal.timeout(this.timeout),\n });\n\n if (res.ok) {\n return (await res.json()) as T;\n }\n\n if (this.retry && attempt < this.retry.maxRetries && this.retry.retryOn.includes(res.status)) {\n const retryAfterHeader = res.headers.get('Retry-After');\n const retryMs = retryAfterHeader\n ? parseInt(retryAfterHeader, 10) * 1000\n : backoffDelay(attempt, this.retry.initialDelayMs, this.retry.maxDelayMs);\n await delay(retryMs);\n continue;\n }\n\n const body = await res.json().catch(() => ({ error: res.statusText })) as { error: string };\n\n if (res.status === 401) throw new IsValidAuthError(body);\n if (res.status === 429) {\n const ra = res.headers.get('Retry-After');\n throw new IsValidRateLimitError(body, ra ? parseInt(ra, 10) : null);\n }\n throw new IsValidError(res.status, body);\n }\n\n throw new IsValidError(0, { error: 'Max retries exceeded' });\n }\n}\n","import type { HttpClient } from '../client.js';\nimport type { LeiResponse, LeiSearchOptions, LeiSearchResponse, LeiLousResponse } from '../types/lei.js';\n\nexport interface LeiNamespace {\n (value: string): Promise<LeiResponse>;\n search(query: string, opts?: LeiSearchOptions): Promise<LeiSearchResponse>;\n lous(): Promise<LeiLousResponse>;\n}\n\nexport function createLeiNamespace(client: HttpClient): LeiNamespace {\n const lei = ((value: string) =>\n client.get<LeiResponse>('/v0/lei', { value })\n ) as LeiNamespace;\n\n lei.search = (query: string, opts?: LeiSearchOptions) =>\n client.get<LeiSearchResponse>('/v0/lei/search', {\n q: query,\n country: opts?.country,\n entityStatus: opts?.entityStatus,\n page: opts?.page?.toString(),\n limit: opts?.limit?.toString(),\n });\n\n lei.lous = () => client.get<LeiLousResponse>('/v0/lei/lous');\n\n return lei;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CountryResponse, CountryListItem } from '../types/country.js';\n\nexport interface CountryNamespace {\n (value: string): Promise<CountryResponse>;\n list(): Promise<CountryListItem[]>;\n}\n\nexport function createCountryNamespace(client: HttpClient): CountryNamespace {\n const country = ((value: string) =>\n client.get<CountryResponse>('/v0/country', { value })\n ) as CountryNamespace;\n\n country.list = () => client.get<CountryListItem[]>('/v0/country/list');\n\n return country;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CurrencyResponse, CurrencyListItem } from '../types/currency.js';\n\nexport interface CurrencyNamespace {\n (value: string): Promise<CurrencyResponse>;\n list(): Promise<CurrencyListItem[]>;\n}\n\nexport function createCurrencyNamespace(client: HttpClient): CurrencyNamespace {\n const currency = ((value: string) =>\n client.get<CurrencyResponse>('/v0/currency', { value })\n ) as CurrencyNamespace;\n\n currency.list = () => client.get<CurrencyListItem[]>('/v0/currency/list');\n\n return currency;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LanguageResponse, LanguageListItem } from '../types/language.js';\n\nexport interface LanguageNamespace {\n (value: string): Promise<LanguageResponse>;\n list(): Promise<LanguageListItem[]>;\n}\n\nexport function createLanguageNamespace(client: HttpClient): LanguageNamespace {\n const language = ((value: string) =>\n client.get<LanguageResponse>('/v0/language', { value })\n ) as LanguageNamespace;\n\n language.list = () => client.get<LanguageListItem[]>('/v0/language/list');\n\n return language;\n}\n","import type { HttpClient } from '../client.js';\nimport type {\n IataFlightResponse, IataAirlineResponse, IataAirlineListItem, IataAirportResponse,\n} from '../types/iata.js';\n\nexport interface IataAirlineNamespace {\n (value: string): Promise<IataAirlineResponse>;\n list(): Promise<IataAirlineListItem[]>;\n}\n\nexport interface IataNamespace {\n flight(value: string): Promise<IataFlightResponse>;\n airline: IataAirlineNamespace;\n airport(value: string): Promise<IataAirportResponse>;\n}\n\nexport function createIataNamespace(client: HttpClient): IataNamespace {\n const airline = ((value: string) =>\n client.get<IataAirlineResponse>('/v0/iata/airline', { value })\n ) as IataAirlineNamespace;\n\n airline.list = () => client.get<IataAirlineListItem[]>('/v0/iata/airline/list');\n\n return {\n flight: (value: string) =>\n client.get<IataFlightResponse>('/v0/iata/flight', { value }),\n airline,\n airport: (value: string) =>\n client.get<IataAirportResponse>('/v0/iata/airport', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { IpResponse, MacResponse, NetPortResponse, NetPortListItem } from '../types/net.js';\n\nexport interface NetPortNamespace {\n (value: string): Promise<NetPortResponse>;\n list(): Promise<NetPortListItem[]>;\n}\n\nexport interface NetNamespace {\n ip(value: string): Promise<IpResponse>;\n mac(value: string): Promise<MacResponse>;\n port: NetPortNamespace;\n}\n\nexport function createNetNamespace(client: HttpClient): NetNamespace {\n const port = ((value: string) =>\n client.get<NetPortResponse>('/v0/net/port', { value })\n ) as NetPortNamespace;\n\n port.list = () => client.get<NetPortListItem[]>('/v0/net/port/list');\n\n return {\n ip: (value: string) => client.get<IpResponse>('/v0/net/ip', { value }),\n mac: (value: string) => client.get<MacResponse>('/v0/net/mac', { value }),\n port,\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { PeselResponse, RegonResponse, KrsResponse } from '../types/pl.js';\n\nexport interface PlNamespace {\n pesel(value: string): Promise<PeselResponse>;\n regon(value: string, opts?: { lookup?: boolean }): Promise<RegonResponse>;\n krs(value: string, opts?: { lookup?: boolean }): Promise<KrsResponse>;\n}\n\nexport function createPlNamespace(client: HttpClient): PlNamespace {\n return {\n pesel: (value: string) =>\n client.get<PeselResponse>('/v0/pl/pesel', { value }),\n regon: (value: string, opts?) =>\n client.get<RegonResponse>('/v0/pl/regon', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n krs: (value: string, opts?) =>\n client.get<KrsResponse>('/v0/pl/krs', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { CnpjResponse, CpfResponse } from '../types/br.js';\n\nexport interface BrNamespace {\n cnpj(value: string): Promise<CnpjResponse>;\n cpf(value: string): Promise<CpfResponse>;\n}\n\nexport function createBrNamespace(client: HttpClient): BrNamespace {\n return {\n cnpj: (value: string) => client.get<CnpjResponse>('/v0/br/cnpj', { value }),\n cpf: (value: string) => client.get<CpfResponse>('/v0/br/cpf', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { AbnResponse } from '../types/au.js';\n\nexport interface AuNamespace {\n abn(value: string): Promise<AbnResponse>;\n}\n\nexport function createAuNamespace(client: HttpClient): AuNamespace {\n return {\n abn: (value: string) => client.get<AbnResponse>('/v0/au/abn', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NifResponse } from '../types/es.js';\n\nexport interface EsNamespace {\n nif(value: string): Promise<NifResponse>;\n}\n\nexport function createEsNamespace(client: HttpClient): EsNamespace {\n return {\n nif: (value: string) => client.get<NifResponse>('/v0/es/nif', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { GstinResponse } from '../types/in.js';\n\nexport interface InNamespace {\n gstin(value: string): Promise<GstinResponse>;\n}\n\nexport function createInNamespace(client: HttpClient): InNamespace {\n return {\n gstin: (value: string) => client.get<GstinResponse>('/v0/in/gstin', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NpiResponse } from '../types/us.js';\n\nexport interface UsNamespace {\n npi(value: string): Promise<NpiResponse>;\n}\n\nexport function createUsNamespace(client: HttpClient): UsNamespace {\n return {\n npi: (value: string) => client.get<NpiResponse>('/v0/us/npi', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { SortCodeResponse } from '../types/gb.js';\n\nexport interface GbNamespace {\n sortCode(value: string): Promise<SortCodeResponse>;\n}\n\nexport function createGbNamespace(client: HttpClient): GbNamespace {\n return {\n sortCode: (value: string) => client.get<SortCodeResponse>('/v0/gb/sort-code', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { HsCodeResponse, HsCodeListResponse } from '../types/hsCode.js';\n\nexport interface HsCodeNamespace {\n (value: string): Promise<HsCodeResponse>;\n list(opts?: { chapter?: string; level?: string }): Promise<HsCodeListResponse>;\n}\n\nexport function createHsCodeNamespace(client: HttpClient): HsCodeNamespace {\n const hsCode = ((value: string) =>\n client.get<HsCodeResponse>('/v0/hs-code', { value })\n ) as HsCodeNamespace;\n\n hsCode.list = (opts?: { chapter?: string; level?: string }) =>\n client.get<HsCodeListResponse>('/v0/hs-code/list', {\n chapter: opts?.chapter,\n level: opts?.level,\n });\n\n return hsCode;\n}\n","import type { HttpClient } from '../client.js';\nimport type { Gs1PrefixResponse, Gs1PrefixListResponse } from '../types/gs1Prefix.js';\n\nexport interface Gs1PrefixNamespace {\n (value: string): Promise<Gs1PrefixResponse>;\n list(): Promise<Gs1PrefixListResponse>;\n}\n\nexport function createGs1PrefixNamespace(client: HttpClient): Gs1PrefixNamespace {\n const gs1Prefix = ((value: string) =>\n client.get<Gs1PrefixResponse>('/v0/gs1-prefix', { value })\n ) as Gs1PrefixNamespace;\n\n gs1Prefix.list = () =>\n client.get<Gs1PrefixListResponse>('/v0/gs1-prefix/list');\n\n return gs1Prefix;\n}\n","import type { HttpClient } from '../client.js';\nimport type { IndustryResponse, IndustryListResponse } from '../types/industry.js';\n\nexport interface IndustryNamespace {\n (value: string, opts?: { system?: string }): Promise<IndustryResponse>;\n list(opts: { system: string; level?: string; parent?: string }): Promise<IndustryListResponse>;\n}\n\nexport function createIndustryNamespace(client: HttpClient): IndustryNamespace {\n const industry = ((value: string, opts?: { system?: string }) =>\n client.get<IndustryResponse>('/v0/industry', {\n value,\n system: opts?.system,\n })\n ) as IndustryNamespace;\n\n industry.list = (opts: { system: string; level?: string; parent?: string }) =>\n client.get<IndustryListResponse>('/v0/industry/list', {\n system: opts.system,\n level: opts?.level,\n parent: opts?.parent,\n });\n\n return industry;\n}\n","import type { HttpClient } from '../client.js';\nimport type { TimezoneResponse, TimezoneListItem } from '../types/timezone.js';\n\nexport interface TimezoneNamespace {\n (value: string): Promise<TimezoneResponse>;\n list(opts?: { region?: string }): Promise<TimezoneListItem[]>;\n}\n\nexport function createTimezoneNamespace(client: HttpClient): TimezoneNamespace {\n const timezone = ((value: string) =>\n client.get<TimezoneResponse>('/v0/timezone', { value })\n ) as TimezoneNamespace;\n\n timezone.list = (opts?: { region?: string }) =>\n client.get<TimezoneListItem[]>('/v0/timezone/list', { region: opts?.region });\n\n return timezone;\n}\n","import type { HttpClient } from '../client.js';\nimport type { MimeTypeResponse, MimeTypeExtResponse, MimeTypeListItem } from '../types/mimeType.js';\n\nexport interface MimeTypeNamespace {\n (value: string): Promise<MimeTypeResponse>;\n ext(value: string): Promise<MimeTypeExtResponse>;\n list(opts?: { type?: string }): Promise<MimeTypeListItem[]>;\n}\n\nexport function createMimeTypeNamespace(client: HttpClient): MimeTypeNamespace {\n const mimeType = ((value: string) =>\n client.get<MimeTypeResponse>('/v0/mime-type', { value })\n ) as MimeTypeNamespace;\n\n mimeType.ext = (value: string) =>\n client.get<MimeTypeExtResponse>('/v0/mime-type/ext', { value });\n\n mimeType.list = (opts?: { type?: string }) =>\n client.get<MimeTypeListItem[]>('/v0/mime-type/list', { type: opts?.type });\n\n return mimeType;\n}\n","import type { HttpClient } from '../client.js';\nimport type { HttpStatusResponse, HttpStatusListItem } from '../types/httpStatus.js';\n\nexport interface HttpStatusNamespace {\n (value: string): Promise<HttpStatusResponse>;\n list(): Promise<HttpStatusListItem[]>;\n}\n\nexport function createHttpStatusNamespace(client: HttpClient): HttpStatusNamespace {\n const httpStatus = ((value: string) =>\n client.get<HttpStatusResponse>('/v0/http-status', { value })\n ) as HttpStatusNamespace;\n\n httpStatus.list = () =>\n client.get<HttpStatusListItem[]>('/v0/http-status/list');\n\n return httpStatus;\n}\n","import type { HttpClient } from '../client.js';\nimport type { SwiftMtResponse, SwiftMtListItem } from '../types/swiftMt.js';\n\nexport interface SwiftMtNamespace {\n (value: string): Promise<SwiftMtResponse>;\n list(opts?: { category?: number }): Promise<SwiftMtListItem[]>;\n}\n\nexport function createSwiftMtNamespace(client: HttpClient): SwiftMtNamespace {\n const swiftMt = ((value: string) =>\n client.get<SwiftMtResponse>('/v0/swift-mt', { value })\n ) as SwiftMtNamespace;\n\n swiftMt.list = (opts?: { category?: number }) =>\n client.get<SwiftMtListItem[]>('/v0/swift-mt/list', { category: opts?.category?.toString() });\n\n return swiftMt;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LocodeResponse, LocodeListItem } from '../types/locode.js';\n\nexport interface LocodeNamespace {\n (value: string): Promise<LocodeResponse>;\n list(opts: { country: string }): Promise<LocodeListItem[]>;\n}\n\nexport function createLocodeNamespace(client: HttpClient): LocodeNamespace {\n const locode = ((value: string) =>\n client.get<LocodeResponse>('/v0/locode', { value })\n ) as LocodeNamespace;\n\n locode.list = (opts: { country: string }) =>\n client.get<LocodeListItem[]>('/v0/locode/list', { country: opts.country });\n\n return locode;\n}\n","import { HttpClient } from './client.js';\nimport type { IsValidConfig } from './client.js';\nimport { createLeiNamespace } from './namespaces/lei.js';\nimport type { LeiNamespace } from './namespaces/lei.js';\nimport { createCountryNamespace } from './namespaces/country.js';\nimport type { CountryNamespace } from './namespaces/country.js';\nimport { createCurrencyNamespace } from './namespaces/currency.js';\nimport type { CurrencyNamespace } from './namespaces/currency.js';\nimport { createLanguageNamespace } from './namespaces/language.js';\nimport type { LanguageNamespace } from './namespaces/language.js';\nimport { createIataNamespace } from './namespaces/iata.js';\nimport type { IataNamespace } from './namespaces/iata.js';\nimport { createNetNamespace } from './namespaces/net.js';\nimport type { NetNamespace } from './namespaces/net.js';\nimport { createPlNamespace } from './namespaces/pl.js';\nimport type { PlNamespace } from './namespaces/pl.js';\nimport { createBrNamespace } from './namespaces/br.js';\nimport type { BrNamespace } from './namespaces/br.js';\nimport { createAuNamespace } from './namespaces/au.js';\nimport type { AuNamespace } from './namespaces/au.js';\nimport { createEsNamespace } from './namespaces/es.js';\nimport type { EsNamespace } from './namespaces/es.js';\nimport { createInNamespace } from './namespaces/in.js';\nimport type { InNamespace } from './namespaces/in.js';\nimport { createUsNamespace } from './namespaces/us.js';\nimport type { UsNamespace } from './namespaces/us.js';\nimport { createGbNamespace } from './namespaces/gb.js';\nimport type { GbNamespace } from './namespaces/gb.js';\nimport { createHsCodeNamespace } from './namespaces/hsCode.js';\nimport type { HsCodeNamespace } from './namespaces/hsCode.js';\nimport { createGs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport { createIndustryNamespace } from './namespaces/industry.js';\nimport type { IndustryNamespace } from './namespaces/industry.js';\nimport { createTimezoneNamespace } from './namespaces/timezone.js';\nimport type { TimezoneNamespace } from './namespaces/timezone.js';\nimport { createMimeTypeNamespace } from './namespaces/mimeType.js';\nimport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nimport { createHttpStatusNamespace } from './namespaces/httpStatus.js';\nimport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nimport { createSwiftMtNamespace } from './namespaces/swiftMt.js';\nimport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nimport { createLocodeNamespace } from './namespaces/locode.js';\nimport type { LocodeNamespace } from './namespaces/locode.js';\nimport type {\n EmailResponse, IbanResponse, IsinResponse, DtiResponse, VatResponse,\n GpsResponse, PhoneResponse, UrlResponse, EanResponse, IsbnResponse,\n IssnResponse, BicResponse, CusipResponse, CfiResponse, MicResponse,\n NutsResponse, UuidResponse, JwtResponse, VinResponse, ImeiResponse,\n SemverResponse, ColorResponse, BooleanResponse, DateResponse,\n BtcAddressResponse, PostalCodeResponse, AbaResponse, ContainerCodeResponse,\n SsccResponse, GlnResponse, QrResponse, CreditCardResponse,\n CasResponse, EoriResponse, OrcidResponse, DoiResponse, BarcodeResponse,\n Base64Response, EthAddressResponse, CronResponse, DomainResponse, RegexResponse,\n} from './types/simple.js';\n\nexport class IsValid {\n private readonly client: HttpClient;\n\n readonly lei: LeiNamespace;\n readonly country: CountryNamespace;\n readonly currency: CurrencyNamespace;\n readonly language: LanguageNamespace;\n readonly iata: IataNamespace;\n readonly net: NetNamespace;\n readonly pl: PlNamespace;\n readonly br: BrNamespace;\n readonly au: AuNamespace;\n readonly es: EsNamespace;\n readonly in: InNamespace;\n readonly us: UsNamespace;\n readonly gb: GbNamespace;\n readonly hsCode: HsCodeNamespace;\n readonly gs1Prefix: Gs1PrefixNamespace;\n readonly industry: IndustryNamespace;\n readonly timezone: TimezoneNamespace;\n readonly mimeType: MimeTypeNamespace;\n readonly httpStatus: HttpStatusNamespace;\n readonly swiftMt: SwiftMtNamespace;\n readonly locode: LocodeNamespace;\n\n constructor(config: IsValidConfig) {\n this.client = new HttpClient(config);\n\n this.lei = createLeiNamespace(this.client);\n this.country = createCountryNamespace(this.client);\n this.currency = createCurrencyNamespace(this.client);\n this.language = createLanguageNamespace(this.client);\n this.iata = createIataNamespace(this.client);\n this.net = createNetNamespace(this.client);\n this.pl = createPlNamespace(this.client);\n this.br = createBrNamespace(this.client);\n this.au = createAuNamespace(this.client);\n this.es = createEsNamespace(this.client);\n this.in = createInNamespace(this.client);\n this.us = createUsNamespace(this.client);\n this.gb = createGbNamespace(this.client);\n this.hsCode = createHsCodeNamespace(this.client);\n this.gs1Prefix = createGs1PrefixNamespace(this.client);\n this.industry = createIndustryNamespace(this.client);\n this.timezone = createTimezoneNamespace(this.client);\n this.mimeType = createMimeTypeNamespace(this.client);\n this.httpStatus = createHttpStatusNamespace(this.client);\n this.swiftMt = createSwiftMtNamespace(this.client);\n this.locode = createLocodeNamespace(this.client);\n }\n\n // --- Simple endpoints ---\n\n email(value: string, opts?: { checkMx?: boolean }): Promise<EmailResponse> {\n return this.client.get('/v0/email', { value, checkMx: opts?.checkMx?.toString() });\n }\n\n iban(value: string, opts?: { countryCode?: string }): Promise<IbanResponse> {\n return this.client.get('/v0/iban', { value, countryCode: opts?.countryCode });\n }\n\n isin(value: string): Promise<IsinResponse> {\n return this.client.get('/v0/isin', { value });\n }\n\n dti(value: string): Promise<DtiResponse> {\n return this.client.get('/v0/dti', { value });\n }\n\n vat(value: string, opts?: { countryCode?: string; checkVies?: boolean }): Promise<VatResponse> {\n return this.client.get('/v0/vat', {\n value,\n countryCode: opts?.countryCode,\n checkVies: opts?.checkVies?.toString(),\n });\n }\n\n gps(value: string): Promise<GpsResponse> {\n return this.client.get('/v0/gps', { value });\n }\n\n phone(value: string, opts?: { countryCode?: string }): Promise<PhoneResponse> {\n return this.client.get('/v0/phone', { value, countryCode: opts?.countryCode });\n }\n\n url(value: string): Promise<UrlResponse> {\n return this.client.get('/v0/url', { value });\n }\n\n ean(value: string): Promise<EanResponse> {\n return this.client.get('/v0/ean', { value });\n }\n\n isbn(value: string): Promise<IsbnResponse> {\n return this.client.get('/v0/isbn', { value });\n }\n\n issn(value: string): Promise<IssnResponse> {\n return this.client.get('/v0/issn', { value });\n }\n\n bic(value: string): Promise<BicResponse> {\n return this.client.get('/v0/bic', { value });\n }\n\n cusip(value: string): Promise<CusipResponse> {\n return this.client.get('/v0/cusip', { value });\n }\n\n cfi(value: string): Promise<CfiResponse> {\n return this.client.get('/v0/cfi', { value });\n }\n\n mic(value: string): Promise<MicResponse> {\n return this.client.get('/v0/mic', { value });\n }\n\n nuts(value: string): Promise<NutsResponse> {\n return this.client.get('/v0/nuts', { value });\n }\n\n uuid(value: string, opts?: { version?: number }): Promise<UuidResponse> {\n return this.client.get('/v0/uuid', { value, version: opts?.version?.toString() });\n }\n\n jwt(value: string): Promise<JwtResponse> {\n return this.client.get('/v0/jwt', { value });\n }\n\n vin(value: string): Promise<VinResponse> {\n return this.client.get('/v0/vin', { value });\n }\n\n imei(value: string): Promise<ImeiResponse> {\n return this.client.get('/v0/imei', { value });\n }\n\n semver(value: string): Promise<SemverResponse> {\n return this.client.get('/v0/semver', { value });\n }\n\n color(value: string): Promise<ColorResponse> {\n return this.client.get('/v0/color', { value });\n }\n\n boolean(value: string): Promise<BooleanResponse> {\n return this.client.get('/v0/boolean', { value });\n }\n\n date(value: string, opts?: { format?: string }): Promise<DateResponse> {\n return this.client.get('/v0/date', { value, format: opts?.format });\n }\n\n btcAddress(value: string): Promise<BtcAddressResponse> {\n return this.client.get('/v0/btc-address', { value });\n }\n\n postalCode(value: string, opts?: { countryCode?: string }): Promise<PostalCodeResponse> {\n return this.client.get('/v0/postal-code', { value, countryCode: opts?.countryCode });\n }\n\n aba(value: string): Promise<AbaResponse> {\n return this.client.get('/v0/aba', { value });\n }\n\n containerCode(value: string): Promise<ContainerCodeResponse> {\n return this.client.get('/v0/container-code', { value });\n }\n\n sscc(value: string): Promise<SsccResponse> {\n return this.client.get('/v0/sscc', { value });\n }\n\n gln(value: string): Promise<GlnResponse> {\n return this.client.get('/v0/gln', { value });\n }\n\n qr(value: string): Promise<QrResponse> {\n return this.client.get('/v0/qr', { value });\n }\n\n creditCard(number: string): Promise<CreditCardResponse> {\n return this.client.post('/v0/credit-card', { number });\n }\n\n cas(value: string): Promise<CasResponse> {\n return this.client.get('/v0/cas', { value });\n }\n\n eori(value: string, opts?: { check?: boolean }): Promise<EoriResponse> {\n return this.client.get('/v0/eori', { value, check: opts?.check?.toString() });\n }\n\n orcid(value: string, opts?: { lookup?: boolean }): Promise<OrcidResponse> {\n return this.client.get('/v0/orcid', { value, lookup: opts?.lookup?.toString() });\n }\n\n doi(value: string, opts?: { lookup?: boolean }): Promise<DoiResponse> {\n return this.client.get('/v0/doi', { value, lookup: opts?.lookup?.toString() });\n }\n\n barcode(value: string, opts?: { type?: string }): Promise<BarcodeResponse> {\n return this.client.get('/v0/barcode', { value, type: opts?.type });\n }\n\n base64(value: string): Promise<Base64Response> {\n return this.client.get('/v0/base64', { value });\n }\n\n ethAddress(value: string): Promise<EthAddressResponse> {\n return this.client.get('/v0/eth-address', { value });\n }\n\n cron(value: string): Promise<CronResponse> {\n return this.client.get('/v0/cron', { value });\n }\n\n domain(value: string): Promise<DomainResponse> {\n return this.client.get('/v0/domain', { value });\n }\n\n regex(pattern: string, opts?: { flags?: string }): Promise<RegexResponse> {\n return this.client.post('/v0/regex', { pattern, flags: opts?.flags });\n }\n}\n\nexport function createClient(config: IsValidConfig): IsValid {\n return new IsValid(config);\n}\n\nexport { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\nexport type { IsValidConfig, RetryConfig } from './client.js';\nexport * from './types/index.js';\n\nexport type { LeiNamespace } from './namespaces/lei.js';\nexport type { CountryNamespace } from './namespaces/country.js';\nexport type { CurrencyNamespace } from './namespaces/currency.js';\nexport type { LanguageNamespace } from './namespaces/language.js';\nexport type { IataNamespace, IataAirlineNamespace } from './namespaces/iata.js';\nexport type { NetNamespace } from './namespaces/net.js';\nexport type { PlNamespace } from './namespaces/pl.js';\nexport type { BrNamespace } from './namespaces/br.js';\nexport type { AuNamespace } from './namespaces/au.js';\nexport type { EsNamespace } from './namespaces/es.js';\nexport type { InNamespace } from './namespaces/in.js';\nexport type { UsNamespace } from './namespaces/us.js';\nexport type { GbNamespace } from './namespaces/gb.js';\nexport type { HsCodeNamespace } from './namespaces/hsCode.js';\nexport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nexport type { IndustryNamespace } from './namespaces/industry.js';\nexport type { TimezoneNamespace } from './namespaces/timezone.js';\nexport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nexport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nexport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nexport type { LocodeNamespace } from './namespaces/locode.js';\nexport type { NetPortNamespace } from './namespaces/net.js';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/errors.ts","../src/client.ts","../src/namespaces/lei.ts","../src/namespaces/country.ts","../src/namespaces/currency.ts","../src/namespaces/language.ts","../src/namespaces/iata.ts","../src/namespaces/net.ts","../src/namespaces/pl.ts","../src/namespaces/br.ts","../src/namespaces/au.ts","../src/namespaces/es.ts","../src/namespaces/in.ts","../src/namespaces/us.ts","../src/namespaces/gb.ts","../src/namespaces/hsCode.ts","../src/namespaces/gs1Prefix.ts","../src/namespaces/industry.ts","../src/namespaces/timezone.ts","../src/namespaces/mimeType.ts","../src/namespaces/httpStatus.ts","../src/namespaces/swiftMt.ts","../src/namespaces/locode.ts","../src/index.ts"],"names":[],"mappings":";;;AAAO,IAAM,YAAA,GAAN,cAA2B,KAAA,CAAM;AAAA,EAItC,WAAA,CAAY,QAAgB,IAAA,EAAyB;AACnD,IAAA,KAAA,CAAM,KAAK,KAAK,CAAA;AAChB,IAAA,IAAA,CAAK,IAAA,GAAO,cAAA;AACZ,IAAA,IAAA,CAAK,MAAA,GAAS,MAAA;AACd,IAAA,IAAA,CAAK,IAAA,GAAO,IAAA;AAAA,EACd;AACF;AAEO,IAAM,gBAAA,GAAN,cAA+B,YAAA,CAAa;AAAA,EACjD,YAAY,IAAA,EAAyB;AACnC,IAAA,KAAA,CAAM,KAAK,IAAI,CAAA;AACf,IAAA,IAAA,CAAK,IAAA,GAAO,kBAAA;AAAA,EACd;AACF;AAEO,IAAM,qBAAA,GAAN,cAAoC,YAAA,CAAa;AAAA,EAGtD,WAAA,CAAY,IAAA,EAAyB,UAAA,GAA4B,IAAA,EAAM;AACrE,IAAA,KAAA,CAAM,KAAK,IAAI,CAAA;AACf,IAAA,IAAA,CAAK,IAAA,GAAO,uBAAA;AACZ,IAAA,IAAA,CAAK,UAAA,GAAa,UAAA;AAAA,EACpB;AACF;;;ACXA,IAAM,gBAAA,GAAmB,yBAAA;AACzB,IAAM,eAAA,GAAkB,GAAA;AACxB,IAAM,aAAA,GAAu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AAA,EAEA,OAAO,KAAA,EAAwC;AAC7C,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,YAAA,EAAc,EAAE,OAAO,CAAA;AAAA,EAChD;AAAA,EAEA,KAAA,CAAM,SAAiB,IAAA,EAAmD;AACxE,IAAA,OAAO,IAAA,CAAK,OAAO,IAAA,CAAK,WAAA,EAAa,EAAE,OAAA,EAAS,KAAA,EAAO,IAAA,EAAM,KAAA,EAAO,CAAA;AAAA,EACtE;AAAA,EAEA,IAAA,CAAK,OAAe,IAAA,EAAoD;AACtE,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,GAAA,CAAI,UAAA,EAAY,EAAE,KAAA,EAAO,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQ,QAAA,EAAS,EAAG,CAAA;AAAA,EAChF;AAAA,EAEA,UAAU,KAAA,EAA2C;AACnD,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,eAAA,EAAiB,EAAE,OAAO,CAAA;AAAA,EACnD;AACF;AAEO,SAAS,aAAa,MAAA,EAAgC;AAC3D,EAAA,OAAO,IAAI,QAAQ,MAAM,CAAA;AAC3B","file":"index.cjs","sourcesContent":["export class IsValidError extends Error {\n readonly status: number;\n readonly body: { error: string };\n\n constructor(status: number, body: { error: string }) {\n super(body.error);\n this.name = 'IsValidError';\n this.status = status;\n this.body = body;\n }\n}\n\nexport class IsValidAuthError extends IsValidError {\n constructor(body: { error: string }) {\n super(401, body);\n this.name = 'IsValidAuthError';\n }\n}\n\nexport class IsValidRateLimitError extends IsValidError {\n readonly retryAfter: number | null;\n\n constructor(body: { error: string }, retryAfter: number | null = null) {\n super(429, body);\n this.name = 'IsValidRateLimitError';\n this.retryAfter = retryAfter;\n }\n}\n","import { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\n\nexport interface RetryConfig {\n maxRetries?: number;\n initialDelayMs?: number;\n maxDelayMs?: number;\n retryOn?: number[];\n}\n\nexport interface IsValidConfig {\n apiKey: string;\n baseUrl?: string;\n timeout?: number;\n retry?: RetryConfig | false;\n}\n\nconst DEFAULT_BASE_URL = 'https://api.isvalid.dev';\nconst DEFAULT_TIMEOUT = 10_000;\nconst DEFAULT_RETRY: Required<RetryConfig> = {\n maxRetries: 3,\n initialDelayMs: 500,\n maxDelayMs: 10_000,\n retryOn: [429, 500, 502, 503],\n};\n\nfunction resolveRetry(cfg: RetryConfig | false | undefined): Required<RetryConfig> | false {\n if (cfg === false) return false;\n if (!cfg) return DEFAULT_RETRY;\n return {\n maxRetries: cfg.maxRetries ?? DEFAULT_RETRY.maxRetries,\n initialDelayMs: cfg.initialDelayMs ?? DEFAULT_RETRY.initialDelayMs,\n maxDelayMs: cfg.maxDelayMs ?? DEFAULT_RETRY.maxDelayMs,\n retryOn: cfg.retryOn ?? DEFAULT_RETRY.retryOn,\n };\n}\n\nfunction delay(ms: number): Promise<void> {\n return new Promise((r) => setTimeout(r, ms));\n}\n\nfunction backoffDelay(attempt: number, initial: number, max: number): number {\n const base = initial * 2 ** attempt;\n const jitter = Math.random() * initial;\n return Math.min(base + jitter, max);\n}\n\nexport class HttpClient {\n private readonly baseUrl: string;\n private readonly apiKey: string;\n private readonly retry: Required<RetryConfig> | false;\n private readonly timeout: number;\n\n constructor(config: IsValidConfig) {\n this.baseUrl = (config.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, '');\n this.apiKey = config.apiKey;\n this.retry = resolveRetry(config.retry);\n this.timeout = config.timeout ?? DEFAULT_TIMEOUT;\n }\n\n async get<T>(path: string, params?: Record<string, string | undefined>): Promise<T> {\n const url = this.buildUrl(path, params);\n return this.request<T>(url, { method: 'GET' });\n }\n\n async post<T>(path: string, body: unknown): Promise<T> {\n const url = this.buildUrl(path);\n return this.request<T>(url, {\n method: 'POST',\n body: JSON.stringify(body),\n headers: { 'Content-Type': 'application/json' },\n });\n }\n\n private buildUrl(path: string, params?: Record<string, string | undefined>): string {\n let result = this.baseUrl + path;\n if (params) {\n const entries = Object.entries(params).filter((e): e is [string, string] => e[1] !== undefined);\n if (entries.length > 0) {\n result += '?' + entries.map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`).join('&');\n }\n }\n return result;\n }\n\n private async request<T>(url: string, init: RequestInit): Promise<T> {\n const headers: Record<string, string> = {\n Authorization: `Bearer ${this.apiKey}`,\n Accept: 'application/json',\n ...(init.headers as Record<string, string> | undefined),\n };\n\n const maxAttempts = this.retry ? this.retry.maxRetries + 1 : 1;\n\n for (let attempt = 0; attempt < maxAttempts; attempt++) {\n const res = await fetch(url, {\n ...init,\n headers,\n signal: AbortSignal.timeout(this.timeout),\n });\n\n if (res.ok) {\n return (await res.json()) as T;\n }\n\n if (this.retry && attempt < this.retry.maxRetries && this.retry.retryOn.includes(res.status)) {\n const retryAfterHeader = res.headers.get('Retry-After');\n const retryMs = retryAfterHeader\n ? parseInt(retryAfterHeader, 10) * 1000\n : backoffDelay(attempt, this.retry.initialDelayMs, this.retry.maxDelayMs);\n await delay(retryMs);\n continue;\n }\n\n const body = await res.json().catch(() => ({ error: res.statusText })) as { error: string };\n\n if (res.status === 401) throw new IsValidAuthError(body);\n if (res.status === 429) {\n const ra = res.headers.get('Retry-After');\n throw new IsValidRateLimitError(body, ra ? parseInt(ra, 10) : null);\n }\n throw new IsValidError(res.status, body);\n }\n\n throw new IsValidError(0, { error: 'Max retries exceeded' });\n }\n}\n","import type { HttpClient } from '../client.js';\nimport type { LeiResponse, LeiSearchOptions, LeiSearchResponse, LeiLousResponse } from '../types/lei.js';\n\nexport interface LeiNamespace {\n (value: string): Promise<LeiResponse>;\n search(query: string, opts?: LeiSearchOptions): Promise<LeiSearchResponse>;\n lous(): Promise<LeiLousResponse>;\n}\n\nexport function createLeiNamespace(client: HttpClient): LeiNamespace {\n const lei = ((value: string) =>\n client.get<LeiResponse>('/v0/lei', { value })\n ) as LeiNamespace;\n\n lei.search = (query: string, opts?: LeiSearchOptions) =>\n client.get<LeiSearchResponse>('/v0/lei/search', {\n q: query,\n country: opts?.country,\n entityStatus: opts?.entityStatus,\n page: opts?.page?.toString(),\n limit: opts?.limit?.toString(),\n });\n\n lei.lous = () => client.get<LeiLousResponse>('/v0/lei/lous');\n\n return lei;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CountryResponse, CountryListItem } from '../types/country.js';\n\nexport interface CountryNamespace {\n (value: string): Promise<CountryResponse>;\n list(): Promise<CountryListItem[]>;\n}\n\nexport function createCountryNamespace(client: HttpClient): CountryNamespace {\n const country = ((value: string) =>\n client.get<CountryResponse>('/v0/country', { value })\n ) as CountryNamespace;\n\n country.list = () => client.get<CountryListItem[]>('/v0/country/list');\n\n return country;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CurrencyResponse, CurrencyListItem } from '../types/currency.js';\n\nexport interface CurrencyNamespace {\n (value: string): Promise<CurrencyResponse>;\n list(): Promise<CurrencyListItem[]>;\n}\n\nexport function createCurrencyNamespace(client: HttpClient): CurrencyNamespace {\n const currency = ((value: string) =>\n client.get<CurrencyResponse>('/v0/currency', { value })\n ) as CurrencyNamespace;\n\n currency.list = () => client.get<CurrencyListItem[]>('/v0/currency/list');\n\n return currency;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LanguageResponse, LanguageListItem } from '../types/language.js';\n\nexport interface LanguageNamespace {\n (value: string): Promise<LanguageResponse>;\n list(): Promise<LanguageListItem[]>;\n}\n\nexport function createLanguageNamespace(client: HttpClient): LanguageNamespace {\n const language = ((value: string) =>\n client.get<LanguageResponse>('/v0/language', { value })\n ) as LanguageNamespace;\n\n language.list = () => client.get<LanguageListItem[]>('/v0/language/list');\n\n return language;\n}\n","import type { HttpClient } from '../client.js';\nimport type {\n IataFlightResponse, IataAirlineResponse, IataAirlineListItem, IataAirportResponse,\n} from '../types/iata.js';\n\nexport interface IataAirlineNamespace {\n (value: string): Promise<IataAirlineResponse>;\n list(): Promise<IataAirlineListItem[]>;\n}\n\nexport interface IataNamespace {\n flight(value: string): Promise<IataFlightResponse>;\n airline: IataAirlineNamespace;\n airport(value: string): Promise<IataAirportResponse>;\n}\n\nexport function createIataNamespace(client: HttpClient): IataNamespace {\n const airline = ((value: string) =>\n client.get<IataAirlineResponse>('/v0/iata/airline', { value })\n ) as IataAirlineNamespace;\n\n airline.list = () => client.get<IataAirlineListItem[]>('/v0/iata/airline/list');\n\n return {\n flight: (value: string) =>\n client.get<IataFlightResponse>('/v0/iata/flight', { value }),\n airline,\n airport: (value: string) =>\n client.get<IataAirportResponse>('/v0/iata/airport', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { IpResponse, MacResponse, NetPortResponse, NetPortListItem } from '../types/net.js';\n\nexport interface NetPortNamespace {\n (value: string): Promise<NetPortResponse>;\n list(): Promise<NetPortListItem[]>;\n}\n\nexport interface NetNamespace {\n ip(value: string): Promise<IpResponse>;\n mac(value: string): Promise<MacResponse>;\n port: NetPortNamespace;\n}\n\nexport function createNetNamespace(client: HttpClient): NetNamespace {\n const port = ((value: string) =>\n client.get<NetPortResponse>('/v0/net/port', { value })\n ) as NetPortNamespace;\n\n port.list = () => client.get<NetPortListItem[]>('/v0/net/port/list');\n\n return {\n ip: (value: string) => client.get<IpResponse>('/v0/net/ip', { value }),\n mac: (value: string) => client.get<MacResponse>('/v0/net/mac', { value }),\n port,\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { PeselResponse, RegonResponse, KrsResponse, CeidgResponse, PkdResponse } from '../types/pl.js';\n\nexport interface PlNamespace {\n pesel(value: string): Promise<PeselResponse>;\n regon(value: string, opts?: { lookup?: boolean }): Promise<RegonResponse>;\n krs(value: string, opts?: { lookup?: boolean }): Promise<KrsResponse>;\n ceidg(value: string, opts?: { lookup?: boolean }): Promise<CeidgResponse>;\n pkd(value: string): Promise<PkdResponse>;\n}\n\nexport function createPlNamespace(client: HttpClient): PlNamespace {\n return {\n pesel: (value: string) =>\n client.get<PeselResponse>('/v0/pl/pesel', { value }),\n regon: (value: string, opts?) =>\n client.get<RegonResponse>('/v0/pl/regon', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n krs: (value: string, opts?) =>\n client.get<KrsResponse>('/v0/pl/krs', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n ceidg: (value: string, opts?) =>\n client.get<CeidgResponse>('/v0/pl/ceidg', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n pkd: (value: string) =>\n client.get<PkdResponse>('/v0/pl/pkd', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { CnpjResponse, CpfResponse } from '../types/br.js';\n\nexport interface BrNamespace {\n cnpj(value: string): Promise<CnpjResponse>;\n cpf(value: string): Promise<CpfResponse>;\n}\n\nexport function createBrNamespace(client: HttpClient): BrNamespace {\n return {\n cnpj: (value: string) => client.get<CnpjResponse>('/v0/br/cnpj', { value }),\n cpf: (value: string) => client.get<CpfResponse>('/v0/br/cpf', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { AbnResponse } from '../types/au.js';\n\nexport interface AuNamespace {\n abn(value: string): Promise<AbnResponse>;\n}\n\nexport function createAuNamespace(client: HttpClient): AuNamespace {\n return {\n abn: (value: string) => client.get<AbnResponse>('/v0/au/abn', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NifResponse } from '../types/es.js';\n\nexport interface EsNamespace {\n nif(value: string): Promise<NifResponse>;\n}\n\nexport function createEsNamespace(client: HttpClient): EsNamespace {\n return {\n nif: (value: string) => client.get<NifResponse>('/v0/es/nif', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { GstinResponse } from '../types/in.js';\n\nexport interface InNamespace {\n gstin(value: string): Promise<GstinResponse>;\n}\n\nexport function createInNamespace(client: HttpClient): InNamespace {\n return {\n gstin: (value: string) => client.get<GstinResponse>('/v0/in/gstin', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NpiResponse } from '../types/us.js';\n\nexport interface UsNamespace {\n npi(value: string): Promise<NpiResponse>;\n}\n\nexport function createUsNamespace(client: HttpClient): UsNamespace {\n return {\n npi: (value: string) => client.get<NpiResponse>('/v0/us/npi', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { SortCodeResponse } from '../types/gb.js';\n\nexport interface GbNamespace {\n sortCode(value: string): Promise<SortCodeResponse>;\n}\n\nexport function createGbNamespace(client: HttpClient): GbNamespace {\n return {\n sortCode: (value: string) => client.get<SortCodeResponse>('/v0/gb/sort-code', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { HsCodeResponse, HsCodeListResponse } from '../types/hsCode.js';\n\nexport interface HsCodeNamespace {\n (value: string): Promise<HsCodeResponse>;\n list(opts?: { chapter?: string; level?: string }): Promise<HsCodeListResponse>;\n}\n\nexport function createHsCodeNamespace(client: HttpClient): HsCodeNamespace {\n const hsCode = ((value: string) =>\n client.get<HsCodeResponse>('/v0/hs-code', { value })\n ) as HsCodeNamespace;\n\n hsCode.list = (opts?: { chapter?: string; level?: string }) =>\n client.get<HsCodeListResponse>('/v0/hs-code/list', {\n chapter: opts?.chapter,\n level: opts?.level,\n });\n\n return hsCode;\n}\n","import type { HttpClient } from '../client.js';\nimport type { Gs1PrefixResponse, Gs1PrefixListResponse } from '../types/gs1Prefix.js';\n\nexport interface Gs1PrefixNamespace {\n (value: string): Promise<Gs1PrefixResponse>;\n list(): Promise<Gs1PrefixListResponse>;\n}\n\nexport function createGs1PrefixNamespace(client: HttpClient): Gs1PrefixNamespace {\n const gs1Prefix = ((value: string) =>\n client.get<Gs1PrefixResponse>('/v0/gs1-prefix', { value })\n ) as Gs1PrefixNamespace;\n\n gs1Prefix.list = () =>\n client.get<Gs1PrefixListResponse>('/v0/gs1-prefix/list');\n\n return gs1Prefix;\n}\n","import type { HttpClient } from '../client.js';\nimport type { IndustryResponse, IndustryListResponse } from '../types/industry.js';\n\nexport interface IndustryNamespace {\n (value: string, opts?: { system?: string }): Promise<IndustryResponse>;\n list(opts: { system: string; level?: string; parent?: string }): Promise<IndustryListResponse>;\n}\n\nexport function createIndustryNamespace(client: HttpClient): IndustryNamespace {\n const industry = ((value: string, opts?: { system?: string }) =>\n client.get<IndustryResponse>('/v0/industry', {\n value,\n system: opts?.system,\n })\n ) as IndustryNamespace;\n\n industry.list = (opts: { system: string; level?: string; parent?: string }) =>\n client.get<IndustryListResponse>('/v0/industry/list', {\n system: opts.system,\n level: opts?.level,\n parent: opts?.parent,\n });\n\n return industry;\n}\n","import type { HttpClient } from '../client.js';\nimport type { TimezoneResponse, TimezoneListItem } from '../types/timezone.js';\n\nexport interface TimezoneNamespace {\n (value: string): Promise<TimezoneResponse>;\n list(opts?: { region?: string }): Promise<TimezoneListItem[]>;\n}\n\nexport function createTimezoneNamespace(client: HttpClient): TimezoneNamespace {\n const timezone = ((value: string) =>\n client.get<TimezoneResponse>('/v0/timezone', { value })\n ) as TimezoneNamespace;\n\n timezone.list = (opts?: { region?: string }) =>\n client.get<TimezoneListItem[]>('/v0/timezone/list', { region: opts?.region });\n\n return timezone;\n}\n","import type { HttpClient } from '../client.js';\nimport type { MimeTypeResponse, MimeTypeExtResponse, MimeTypeListItem } from '../types/mimeType.js';\n\nexport interface MimeTypeNamespace {\n (value: string): Promise<MimeTypeResponse>;\n ext(value: string): Promise<MimeTypeExtResponse>;\n list(opts?: { type?: string }): Promise<MimeTypeListItem[]>;\n}\n\nexport function createMimeTypeNamespace(client: HttpClient): MimeTypeNamespace {\n const mimeType = ((value: string) =>\n client.get<MimeTypeResponse>('/v0/mime-type', { value })\n ) as MimeTypeNamespace;\n\n mimeType.ext = (value: string) =>\n client.get<MimeTypeExtResponse>('/v0/mime-type/ext', { value });\n\n mimeType.list = (opts?: { type?: string }) =>\n client.get<MimeTypeListItem[]>('/v0/mime-type/list', { type: opts?.type });\n\n return mimeType;\n}\n","import type { HttpClient } from '../client.js';\nimport type { HttpStatusResponse, HttpStatusListItem } from '../types/httpStatus.js';\n\nexport interface HttpStatusNamespace {\n (value: string): Promise<HttpStatusResponse>;\n list(): Promise<HttpStatusListItem[]>;\n}\n\nexport function createHttpStatusNamespace(client: HttpClient): HttpStatusNamespace {\n const httpStatus = ((value: string) =>\n client.get<HttpStatusResponse>('/v0/http-status', { value })\n ) as HttpStatusNamespace;\n\n httpStatus.list = () =>\n client.get<HttpStatusListItem[]>('/v0/http-status/list');\n\n return httpStatus;\n}\n","import type { HttpClient } from '../client.js';\nimport type { SwiftMtResponse, SwiftMtListItem } from '../types/swiftMt.js';\n\nexport interface SwiftMtNamespace {\n (value: string): Promise<SwiftMtResponse>;\n list(opts?: { category?: number }): Promise<SwiftMtListItem[]>;\n}\n\nexport function createSwiftMtNamespace(client: HttpClient): SwiftMtNamespace {\n const swiftMt = ((value: string) =>\n client.get<SwiftMtResponse>('/v0/swift-mt', { value })\n ) as SwiftMtNamespace;\n\n swiftMt.list = (opts?: { category?: number }) =>\n client.get<SwiftMtListItem[]>('/v0/swift-mt/list', { category: opts?.category?.toString() });\n\n return swiftMt;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LocodeResponse, LocodeListItem } from '../types/locode.js';\n\nexport interface LocodeNamespace {\n (value: string): Promise<LocodeResponse>;\n list(opts: { country: string }): Promise<LocodeListItem[]>;\n}\n\nexport function createLocodeNamespace(client: HttpClient): LocodeNamespace {\n const locode = ((value: string) =>\n client.get<LocodeResponse>('/v0/locode', { value })\n ) as LocodeNamespace;\n\n locode.list = (opts: { country: string }) =>\n client.get<LocodeListItem[]>('/v0/locode/list', { country: opts.country });\n\n return locode;\n}\n","import { HttpClient } from './client.js';\nimport type { IsValidConfig } from './client.js';\nimport { createLeiNamespace } from './namespaces/lei.js';\nimport type { LeiNamespace } from './namespaces/lei.js';\nimport { createCountryNamespace } from './namespaces/country.js';\nimport type { CountryNamespace } from './namespaces/country.js';\nimport { createCurrencyNamespace } from './namespaces/currency.js';\nimport type { CurrencyNamespace } from './namespaces/currency.js';\nimport { createLanguageNamespace } from './namespaces/language.js';\nimport type { LanguageNamespace } from './namespaces/language.js';\nimport { createIataNamespace } from './namespaces/iata.js';\nimport type { IataNamespace } from './namespaces/iata.js';\nimport { createNetNamespace } from './namespaces/net.js';\nimport type { NetNamespace } from './namespaces/net.js';\nimport { createPlNamespace } from './namespaces/pl.js';\nimport type { PlNamespace } from './namespaces/pl.js';\nimport { createBrNamespace } from './namespaces/br.js';\nimport type { BrNamespace } from './namespaces/br.js';\nimport { createAuNamespace } from './namespaces/au.js';\nimport type { AuNamespace } from './namespaces/au.js';\nimport { createEsNamespace } from './namespaces/es.js';\nimport type { EsNamespace } from './namespaces/es.js';\nimport { createInNamespace } from './namespaces/in.js';\nimport type { InNamespace } from './namespaces/in.js';\nimport { createUsNamespace } from './namespaces/us.js';\nimport type { UsNamespace } from './namespaces/us.js';\nimport { createGbNamespace } from './namespaces/gb.js';\nimport type { GbNamespace } from './namespaces/gb.js';\nimport { createHsCodeNamespace } from './namespaces/hsCode.js';\nimport type { HsCodeNamespace } from './namespaces/hsCode.js';\nimport { createGs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport { createIndustryNamespace } from './namespaces/industry.js';\nimport type { IndustryNamespace } from './namespaces/industry.js';\nimport { createTimezoneNamespace } from './namespaces/timezone.js';\nimport type { TimezoneNamespace } from './namespaces/timezone.js';\nimport { createMimeTypeNamespace } from './namespaces/mimeType.js';\nimport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nimport { createHttpStatusNamespace } from './namespaces/httpStatus.js';\nimport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nimport { createSwiftMtNamespace } from './namespaces/swiftMt.js';\nimport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nimport { createLocodeNamespace } from './namespaces/locode.js';\nimport type { LocodeNamespace } from './namespaces/locode.js';\nimport type {\n EmailResponse, IbanResponse, IsinResponse, DtiResponse, VatResponse,\n GpsResponse, PhoneResponse, UrlResponse, EanResponse, IsbnResponse,\n IssnResponse, BicResponse, CusipResponse, CfiResponse, MicResponse,\n NutsResponse, UuidResponse, JwtResponse, VinResponse, ImeiResponse,\n SemverResponse, ColorResponse, BooleanResponse, DateResponse,\n BtcAddressResponse, PostalCodeResponse, AbaResponse, ContainerCodeResponse,\n SsccResponse, GlnResponse, QrResponse, CreditCardResponse,\n CasResponse, EoriResponse, OrcidResponse, DoiResponse, BarcodeResponse,\n Base64Response, EthAddressResponse, CronResponse, DomainResponse, RegexResponse,\n DunsResponse, TimestampResponse,\n} from './types/simple.js';\n\nexport class IsValid {\n private readonly client: HttpClient;\n\n readonly lei: LeiNamespace;\n readonly country: CountryNamespace;\n readonly currency: CurrencyNamespace;\n readonly language: LanguageNamespace;\n readonly iata: IataNamespace;\n readonly net: NetNamespace;\n readonly pl: PlNamespace;\n readonly br: BrNamespace;\n readonly au: AuNamespace;\n readonly es: EsNamespace;\n readonly in: InNamespace;\n readonly us: UsNamespace;\n readonly gb: GbNamespace;\n readonly hsCode: HsCodeNamespace;\n readonly gs1Prefix: Gs1PrefixNamespace;\n readonly industry: IndustryNamespace;\n readonly timezone: TimezoneNamespace;\n readonly mimeType: MimeTypeNamespace;\n readonly httpStatus: HttpStatusNamespace;\n readonly swiftMt: SwiftMtNamespace;\n readonly locode: LocodeNamespace;\n\n constructor(config: IsValidConfig) {\n this.client = new HttpClient(config);\n\n this.lei = createLeiNamespace(this.client);\n this.country = createCountryNamespace(this.client);\n this.currency = createCurrencyNamespace(this.client);\n this.language = createLanguageNamespace(this.client);\n this.iata = createIataNamespace(this.client);\n this.net = createNetNamespace(this.client);\n this.pl = createPlNamespace(this.client);\n this.br = createBrNamespace(this.client);\n this.au = createAuNamespace(this.client);\n this.es = createEsNamespace(this.client);\n this.in = createInNamespace(this.client);\n this.us = createUsNamespace(this.client);\n this.gb = createGbNamespace(this.client);\n this.hsCode = createHsCodeNamespace(this.client);\n this.gs1Prefix = createGs1PrefixNamespace(this.client);\n this.industry = createIndustryNamespace(this.client);\n this.timezone = createTimezoneNamespace(this.client);\n this.mimeType = createMimeTypeNamespace(this.client);\n this.httpStatus = createHttpStatusNamespace(this.client);\n this.swiftMt = createSwiftMtNamespace(this.client);\n this.locode = createLocodeNamespace(this.client);\n }\n\n // --- Simple endpoints ---\n\n email(value: string, opts?: { checkMx?: boolean }): Promise<EmailResponse> {\n return this.client.get('/v0/email', { value, checkMx: opts?.checkMx?.toString() });\n }\n\n iban(value: string, opts?: { countryCode?: string }): Promise<IbanResponse> {\n return this.client.get('/v0/iban', { value, countryCode: opts?.countryCode });\n }\n\n isin(value: string): Promise<IsinResponse> {\n return this.client.get('/v0/isin', { value });\n }\n\n dti(value: string): Promise<DtiResponse> {\n return this.client.get('/v0/dti', { value });\n }\n\n vat(value: string, opts?: { countryCode?: string; checkVies?: boolean }): Promise<VatResponse> {\n return this.client.get('/v0/vat', {\n value,\n countryCode: opts?.countryCode,\n checkVies: opts?.checkVies?.toString(),\n });\n }\n\n gps(value: string): Promise<GpsResponse> {\n return this.client.get('/v0/gps', { value });\n }\n\n phone(value: string, opts?: { countryCode?: string }): Promise<PhoneResponse> {\n return this.client.get('/v0/phone', { value, countryCode: opts?.countryCode });\n }\n\n url(value: string): Promise<UrlResponse> {\n return this.client.get('/v0/url', { value });\n }\n\n ean(value: string): Promise<EanResponse> {\n return this.client.get('/v0/ean', { value });\n }\n\n isbn(value: string): Promise<IsbnResponse> {\n return this.client.get('/v0/isbn', { value });\n }\n\n issn(value: string): Promise<IssnResponse> {\n return this.client.get('/v0/issn', { value });\n }\n\n bic(value: string): Promise<BicResponse> {\n return this.client.get('/v0/bic', { value });\n }\n\n cusip(value: string): Promise<CusipResponse> {\n return this.client.get('/v0/cusip', { value });\n }\n\n cfi(value: string): Promise<CfiResponse> {\n return this.client.get('/v0/cfi', { value });\n }\n\n mic(value: string): Promise<MicResponse> {\n return this.client.get('/v0/mic', { value });\n }\n\n nuts(value: string): Promise<NutsResponse> {\n return this.client.get('/v0/nuts', { value });\n }\n\n uuid(value: string, opts?: { version?: number }): Promise<UuidResponse> {\n return this.client.get('/v0/uuid', { value, version: opts?.version?.toString() });\n }\n\n jwt(value: string): Promise<JwtResponse> {\n return this.client.get('/v0/jwt', { value });\n }\n\n vin(value: string): Promise<VinResponse> {\n return this.client.get('/v0/vin', { value });\n }\n\n imei(value: string): Promise<ImeiResponse> {\n return this.client.get('/v0/imei', { value });\n }\n\n semver(value: string): Promise<SemverResponse> {\n return this.client.get('/v0/semver', { value });\n }\n\n color(value: string): Promise<ColorResponse> {\n return this.client.get('/v0/color', { value });\n }\n\n boolean(value: string): Promise<BooleanResponse> {\n return this.client.get('/v0/boolean', { value });\n }\n\n date(value: string, opts?: { format?: string }): Promise<DateResponse> {\n return this.client.get('/v0/date', { value, format: opts?.format });\n }\n\n btcAddress(value: string): Promise<BtcAddressResponse> {\n return this.client.get('/v0/btc-address', { value });\n }\n\n postalCode(value: string, opts?: { countryCode?: string }): Promise<PostalCodeResponse> {\n return this.client.get('/v0/postal-code', { value, countryCode: opts?.countryCode });\n }\n\n aba(value: string): Promise<AbaResponse> {\n return this.client.get('/v0/aba', { value });\n }\n\n containerCode(value: string): Promise<ContainerCodeResponse> {\n return this.client.get('/v0/container-code', { value });\n }\n\n sscc(value: string): Promise<SsccResponse> {\n return this.client.get('/v0/sscc', { value });\n }\n\n gln(value: string): Promise<GlnResponse> {\n return this.client.get('/v0/gln', { value });\n }\n\n qr(value: string): Promise<QrResponse> {\n return this.client.get('/v0/qr', { value });\n }\n\n creditCard(number: string): Promise<CreditCardResponse> {\n return this.client.post('/v0/credit-card', { number });\n }\n\n cas(value: string): Promise<CasResponse> {\n return this.client.get('/v0/cas', { value });\n }\n\n eori(value: string, opts?: { check?: boolean }): Promise<EoriResponse> {\n return this.client.get('/v0/eori', { value, check: opts?.check?.toString() });\n }\n\n orcid(value: string, opts?: { lookup?: boolean }): Promise<OrcidResponse> {\n return this.client.get('/v0/orcid', { value, lookup: opts?.lookup?.toString() });\n }\n\n doi(value: string, opts?: { lookup?: boolean }): Promise<DoiResponse> {\n return this.client.get('/v0/doi', { value, lookup: opts?.lookup?.toString() });\n }\n\n barcode(value: string, opts?: { type?: string }): Promise<BarcodeResponse> {\n return this.client.get('/v0/barcode', { value, type: opts?.type });\n }\n\n base64(value: string): Promise<Base64Response> {\n return this.client.get('/v0/base64', { value });\n }\n\n ethAddress(value: string): Promise<EthAddressResponse> {\n return this.client.get('/v0/eth-address', { value });\n }\n\n cron(value: string): Promise<CronResponse> {\n return this.client.get('/v0/cron', { value });\n }\n\n domain(value: string): Promise<DomainResponse> {\n return this.client.get('/v0/domain', { value });\n }\n\n regex(pattern: string, opts?: { flags?: string }): Promise<RegexResponse> {\n return this.client.post('/v0/regex', { pattern, flags: opts?.flags });\n }\n\n duns(value: string, opts?: { lookup?: boolean }): Promise<DunsResponse> {\n return this.client.get('/v0/duns', { value, lookup: opts?.lookup?.toString() });\n }\n\n timestamp(value: string): Promise<TimestampResponse> {\n return this.client.get('/v0/timestamp', { value });\n }\n}\n\nexport function createClient(config: IsValidConfig): IsValid {\n return new IsValid(config);\n}\n\nexport { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\nexport type { IsValidConfig, RetryConfig } from './client.js';\nexport * from './types/index.js';\n\nexport type { LeiNamespace } from './namespaces/lei.js';\nexport type { CountryNamespace } from './namespaces/country.js';\nexport type { CurrencyNamespace } from './namespaces/currency.js';\nexport type { LanguageNamespace } from './namespaces/language.js';\nexport type { IataNamespace, IataAirlineNamespace } from './namespaces/iata.js';\nexport type { NetNamespace } from './namespaces/net.js';\nexport type { PlNamespace } from './namespaces/pl.js';\nexport type { BrNamespace } from './namespaces/br.js';\nexport type { AuNamespace } from './namespaces/au.js';\nexport type { EsNamespace } from './namespaces/es.js';\nexport type { InNamespace } from './namespaces/in.js';\nexport type { UsNamespace } from './namespaces/us.js';\nexport type { GbNamespace } from './namespaces/gb.js';\nexport type { HsCodeNamespace } from './namespaces/hsCode.js';\nexport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nexport type { IndustryNamespace } from './namespaces/industry.js';\nexport type { TimezoneNamespace } from './namespaces/timezone.js';\nexport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nexport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nexport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nexport type { LocodeNamespace } from './namespaces/locode.js';\nexport type { NetPortNamespace } from './namespaces/net.js';\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -299,6 +299,46 @@ type KrsResponse = {
|
|
|
299
299
|
number: string;
|
|
300
300
|
krs?: KrsLookup;
|
|
301
301
|
};
|
|
302
|
+
type CeidgResponse = {
|
|
303
|
+
valid: false;
|
|
304
|
+
} | {
|
|
305
|
+
valid: true;
|
|
306
|
+
nip: string;
|
|
307
|
+
ceidg?: {
|
|
308
|
+
checked: boolean;
|
|
309
|
+
found?: boolean;
|
|
310
|
+
reason?: string;
|
|
311
|
+
status?: string | null;
|
|
312
|
+
firstName?: string | null;
|
|
313
|
+
lastName?: string | null;
|
|
314
|
+
businessName?: string | null;
|
|
315
|
+
regon?: string | null;
|
|
316
|
+
city?: string | null;
|
|
317
|
+
postalCode?: string | null;
|
|
318
|
+
street?: string | null;
|
|
319
|
+
houseNumber?: string | null;
|
|
320
|
+
flatNumber?: string | null;
|
|
321
|
+
startDate?: string | null;
|
|
322
|
+
pkd?: string[];
|
|
323
|
+
primaryPkd?: string | null;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
type PkdResponse = {
|
|
327
|
+
valid: false;
|
|
328
|
+
error?: string;
|
|
329
|
+
} | {
|
|
330
|
+
valid: true;
|
|
331
|
+
code: string;
|
|
332
|
+
name: string;
|
|
333
|
+
section: string;
|
|
334
|
+
sectionName: string;
|
|
335
|
+
division: string;
|
|
336
|
+
divisionName: string | null;
|
|
337
|
+
group: string;
|
|
338
|
+
groupName: string | null;
|
|
339
|
+
class: string;
|
|
340
|
+
className: string | null;
|
|
341
|
+
};
|
|
302
342
|
|
|
303
343
|
interface PlNamespace {
|
|
304
344
|
pesel(value: string): Promise<PeselResponse>;
|
|
@@ -308,6 +348,10 @@ interface PlNamespace {
|
|
|
308
348
|
krs(value: string, opts?: {
|
|
309
349
|
lookup?: boolean;
|
|
310
350
|
}): Promise<KrsResponse>;
|
|
351
|
+
ceidg(value: string, opts?: {
|
|
352
|
+
lookup?: boolean;
|
|
353
|
+
}): Promise<CeidgResponse>;
|
|
354
|
+
pkd(value: string): Promise<PkdResponse>;
|
|
311
355
|
}
|
|
312
356
|
|
|
313
357
|
type CnpjResponse = {
|
|
@@ -1100,6 +1144,46 @@ type RegexResponse = {
|
|
|
1100
1144
|
flags: string | null;
|
|
1101
1145
|
namedGroups: string[];
|
|
1102
1146
|
};
|
|
1147
|
+
type DunsResponse = {
|
|
1148
|
+
valid: false;
|
|
1149
|
+
} | {
|
|
1150
|
+
valid: true;
|
|
1151
|
+
formatted: string;
|
|
1152
|
+
duns?: {
|
|
1153
|
+
checked: boolean;
|
|
1154
|
+
found?: boolean;
|
|
1155
|
+
reason?: string;
|
|
1156
|
+
name?: string | null;
|
|
1157
|
+
countryCode?: string | null;
|
|
1158
|
+
city?: string | null;
|
|
1159
|
+
region?: string | null;
|
|
1160
|
+
postalCode?: string | null;
|
|
1161
|
+
street?: string | null;
|
|
1162
|
+
isActive?: boolean | null;
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
type TimestampResponse = {
|
|
1166
|
+
valid: false;
|
|
1167
|
+
} | {
|
|
1168
|
+
valid: true;
|
|
1169
|
+
type: 'datetime' | 'date' | 'week' | 'ordinal' | 'duration' | 'interval';
|
|
1170
|
+
date?: string;
|
|
1171
|
+
time?: string;
|
|
1172
|
+
utcOffset?: string | null;
|
|
1173
|
+
utc?: string | null;
|
|
1174
|
+
week?: string;
|
|
1175
|
+
ordinal?: string;
|
|
1176
|
+
years?: number;
|
|
1177
|
+
months?: number;
|
|
1178
|
+
weeks?: number;
|
|
1179
|
+
days?: number;
|
|
1180
|
+
hours?: number;
|
|
1181
|
+
minutes?: number;
|
|
1182
|
+
seconds?: number;
|
|
1183
|
+
totalSeconds?: number;
|
|
1184
|
+
start?: Record<string, unknown>;
|
|
1185
|
+
end?: Record<string, unknown>;
|
|
1186
|
+
};
|
|
1103
1187
|
|
|
1104
1188
|
declare class IsValidError extends Error {
|
|
1105
1189
|
readonly status: number;
|
|
@@ -1217,7 +1301,11 @@ declare class IsValid {
|
|
|
1217
1301
|
regex(pattern: string, opts?: {
|
|
1218
1302
|
flags?: string;
|
|
1219
1303
|
}): Promise<RegexResponse>;
|
|
1304
|
+
duns(value: string, opts?: {
|
|
1305
|
+
lookup?: boolean;
|
|
1306
|
+
}): Promise<DunsResponse>;
|
|
1307
|
+
timestamp(value: string): Promise<TimestampResponse>;
|
|
1220
1308
|
}
|
|
1221
1309
|
declare function createClient(config: IsValidConfig): IsValid;
|
|
1222
1310
|
|
|
1223
|
-
export { type AbaResponse, type AbnResponse, type AuNamespace, type BarcodeResponse, type Base64Response, type BicResponse, type BooleanResponse, type BrNamespace, type BtcAddressResponse, type CasResponse, type CfiResponse, type CnpjResponse, type ColorResponse, type ContainerCodeResponse, type CountryListItem, type CountryNamespace, type CountryResponse, type CpfResponse, type CreditCardResponse, type CronResponse, type CurrencyListItem, type CurrencyNamespace, type CurrencyResponse, type CusipResponse, type DateResponse, type DoiResponse, type DomainResponse, type DtiResponse, type EanResponse, type EmailResponse, type EoriResponse, type EsNamespace, type EthAddressResponse, type GbNamespace, type GlnResponse, type GpsResponse, type Gs1PrefixListItem, type Gs1PrefixListResponse, type Gs1PrefixNamespace, type Gs1PrefixResponse, type GstinResponse, type HsCodeListItem, type HsCodeListResponse, type HsCodeNamespace, type HsCodeResponse, type HttpStatusListItem, type HttpStatusNamespace, type HttpStatusResponse, type IataAirlineListItem, type IataAirlineNamespace, type IataAirlineResponse, type IataAirportResponse, type IataFlightResponse, type IataNamespace, type IbanResponse, type ImeiResponse, type InNamespace, type IndustryListItem, type IndustryListResponse, type IndustryNamespace, type IndustryResponse, type InvalidResponse, type IpResponse, IsValid, IsValidAuthError, type IsValidConfig, IsValidError, IsValidRateLimitError, type IsbnResponse, type IsinResponse, type IssnResponse, type JwtResponse, type KrsAddress, type KrsLookup, type KrsResponse, type LanguageListItem, type LanguageNamespace, type LanguageResponse, type LeiEntity, type LeiLou, type LeiLouItem, type LeiLousResponse, type LeiNamespace, type LeiResponse, type LeiSearchOptions, type LeiSearchResponse, type LeiSearchResult, type LocodeListItem, type LocodeNamespace, type LocodeResponse, type MacResponse, type MicResponse, type MimeTypeExtResponse, type MimeTypeListItem, type MimeTypeNamespace, type MimeTypeResponse, type NetNamespace, type NetPortListItem, type NetPortNamespace, type NetPortResponse, type NifResponse, type NpiResponse, type NutsResponse, type OrcidResponse, type PeselResponse, type PhoneResponse, type PlNamespace, type PostalCodeResponse, type QrResponse, type RegexResponse, type RegonLookup, type RegonResponse, type RetryConfig, type SemverResponse, type SortCodeResponse, type SsccResponse, type SwiftMtListItem, type SwiftMtNamespace, type SwiftMtResponse, type TimezoneListItem, type TimezoneNamespace, type TimezoneResponse, type UrlResponse, type UsNamespace, type UuidResponse, type VatResponse, type VinResponse, createClient };
|
|
1311
|
+
export { type AbaResponse, type AbnResponse, type AuNamespace, type BarcodeResponse, type Base64Response, type BicResponse, type BooleanResponse, type BrNamespace, type BtcAddressResponse, type CasResponse, type CeidgResponse, type CfiResponse, type CnpjResponse, type ColorResponse, type ContainerCodeResponse, type CountryListItem, type CountryNamespace, type CountryResponse, type CpfResponse, type CreditCardResponse, type CronResponse, type CurrencyListItem, type CurrencyNamespace, type CurrencyResponse, type CusipResponse, type DateResponse, type DoiResponse, type DomainResponse, type DtiResponse, type DunsResponse, type EanResponse, type EmailResponse, type EoriResponse, type EsNamespace, type EthAddressResponse, type GbNamespace, type GlnResponse, type GpsResponse, type Gs1PrefixListItem, type Gs1PrefixListResponse, type Gs1PrefixNamespace, type Gs1PrefixResponse, type GstinResponse, type HsCodeListItem, type HsCodeListResponse, type HsCodeNamespace, type HsCodeResponse, type HttpStatusListItem, type HttpStatusNamespace, type HttpStatusResponse, type IataAirlineListItem, type IataAirlineNamespace, type IataAirlineResponse, type IataAirportResponse, type IataFlightResponse, type IataNamespace, type IbanResponse, type ImeiResponse, type InNamespace, type IndustryListItem, type IndustryListResponse, type IndustryNamespace, type IndustryResponse, type InvalidResponse, type IpResponse, IsValid, IsValidAuthError, type IsValidConfig, IsValidError, IsValidRateLimitError, type IsbnResponse, type IsinResponse, type IssnResponse, type JwtResponse, type KrsAddress, type KrsLookup, type KrsResponse, type LanguageListItem, type LanguageNamespace, type LanguageResponse, type LeiEntity, type LeiLou, type LeiLouItem, type LeiLousResponse, type LeiNamespace, type LeiResponse, type LeiSearchOptions, type LeiSearchResponse, type LeiSearchResult, type LocodeListItem, type LocodeNamespace, type LocodeResponse, type MacResponse, type MicResponse, type MimeTypeExtResponse, type MimeTypeListItem, type MimeTypeNamespace, type MimeTypeResponse, type NetNamespace, type NetPortListItem, type NetPortNamespace, type NetPortResponse, type NifResponse, type NpiResponse, type NutsResponse, type OrcidResponse, type PeselResponse, type PhoneResponse, type PkdResponse, type PlNamespace, type PostalCodeResponse, type QrResponse, type RegexResponse, type RegonLookup, type RegonResponse, type RetryConfig, type SemverResponse, type SortCodeResponse, type SsccResponse, type SwiftMtListItem, type SwiftMtNamespace, type SwiftMtResponse, type TimestampResponse, type TimezoneListItem, type TimezoneNamespace, type TimezoneResponse, type UrlResponse, type UsNamespace, type UuidResponse, type VatResponse, type VinResponse, createClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -299,6 +299,46 @@ type KrsResponse = {
|
|
|
299
299
|
number: string;
|
|
300
300
|
krs?: KrsLookup;
|
|
301
301
|
};
|
|
302
|
+
type CeidgResponse = {
|
|
303
|
+
valid: false;
|
|
304
|
+
} | {
|
|
305
|
+
valid: true;
|
|
306
|
+
nip: string;
|
|
307
|
+
ceidg?: {
|
|
308
|
+
checked: boolean;
|
|
309
|
+
found?: boolean;
|
|
310
|
+
reason?: string;
|
|
311
|
+
status?: string | null;
|
|
312
|
+
firstName?: string | null;
|
|
313
|
+
lastName?: string | null;
|
|
314
|
+
businessName?: string | null;
|
|
315
|
+
regon?: string | null;
|
|
316
|
+
city?: string | null;
|
|
317
|
+
postalCode?: string | null;
|
|
318
|
+
street?: string | null;
|
|
319
|
+
houseNumber?: string | null;
|
|
320
|
+
flatNumber?: string | null;
|
|
321
|
+
startDate?: string | null;
|
|
322
|
+
pkd?: string[];
|
|
323
|
+
primaryPkd?: string | null;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
type PkdResponse = {
|
|
327
|
+
valid: false;
|
|
328
|
+
error?: string;
|
|
329
|
+
} | {
|
|
330
|
+
valid: true;
|
|
331
|
+
code: string;
|
|
332
|
+
name: string;
|
|
333
|
+
section: string;
|
|
334
|
+
sectionName: string;
|
|
335
|
+
division: string;
|
|
336
|
+
divisionName: string | null;
|
|
337
|
+
group: string;
|
|
338
|
+
groupName: string | null;
|
|
339
|
+
class: string;
|
|
340
|
+
className: string | null;
|
|
341
|
+
};
|
|
302
342
|
|
|
303
343
|
interface PlNamespace {
|
|
304
344
|
pesel(value: string): Promise<PeselResponse>;
|
|
@@ -308,6 +348,10 @@ interface PlNamespace {
|
|
|
308
348
|
krs(value: string, opts?: {
|
|
309
349
|
lookup?: boolean;
|
|
310
350
|
}): Promise<KrsResponse>;
|
|
351
|
+
ceidg(value: string, opts?: {
|
|
352
|
+
lookup?: boolean;
|
|
353
|
+
}): Promise<CeidgResponse>;
|
|
354
|
+
pkd(value: string): Promise<PkdResponse>;
|
|
311
355
|
}
|
|
312
356
|
|
|
313
357
|
type CnpjResponse = {
|
|
@@ -1100,6 +1144,46 @@ type RegexResponse = {
|
|
|
1100
1144
|
flags: string | null;
|
|
1101
1145
|
namedGroups: string[];
|
|
1102
1146
|
};
|
|
1147
|
+
type DunsResponse = {
|
|
1148
|
+
valid: false;
|
|
1149
|
+
} | {
|
|
1150
|
+
valid: true;
|
|
1151
|
+
formatted: string;
|
|
1152
|
+
duns?: {
|
|
1153
|
+
checked: boolean;
|
|
1154
|
+
found?: boolean;
|
|
1155
|
+
reason?: string;
|
|
1156
|
+
name?: string | null;
|
|
1157
|
+
countryCode?: string | null;
|
|
1158
|
+
city?: string | null;
|
|
1159
|
+
region?: string | null;
|
|
1160
|
+
postalCode?: string | null;
|
|
1161
|
+
street?: string | null;
|
|
1162
|
+
isActive?: boolean | null;
|
|
1163
|
+
};
|
|
1164
|
+
};
|
|
1165
|
+
type TimestampResponse = {
|
|
1166
|
+
valid: false;
|
|
1167
|
+
} | {
|
|
1168
|
+
valid: true;
|
|
1169
|
+
type: 'datetime' | 'date' | 'week' | 'ordinal' | 'duration' | 'interval';
|
|
1170
|
+
date?: string;
|
|
1171
|
+
time?: string;
|
|
1172
|
+
utcOffset?: string | null;
|
|
1173
|
+
utc?: string | null;
|
|
1174
|
+
week?: string;
|
|
1175
|
+
ordinal?: string;
|
|
1176
|
+
years?: number;
|
|
1177
|
+
months?: number;
|
|
1178
|
+
weeks?: number;
|
|
1179
|
+
days?: number;
|
|
1180
|
+
hours?: number;
|
|
1181
|
+
minutes?: number;
|
|
1182
|
+
seconds?: number;
|
|
1183
|
+
totalSeconds?: number;
|
|
1184
|
+
start?: Record<string, unknown>;
|
|
1185
|
+
end?: Record<string, unknown>;
|
|
1186
|
+
};
|
|
1103
1187
|
|
|
1104
1188
|
declare class IsValidError extends Error {
|
|
1105
1189
|
readonly status: number;
|
|
@@ -1217,7 +1301,11 @@ declare class IsValid {
|
|
|
1217
1301
|
regex(pattern: string, opts?: {
|
|
1218
1302
|
flags?: string;
|
|
1219
1303
|
}): Promise<RegexResponse>;
|
|
1304
|
+
duns(value: string, opts?: {
|
|
1305
|
+
lookup?: boolean;
|
|
1306
|
+
}): Promise<DunsResponse>;
|
|
1307
|
+
timestamp(value: string): Promise<TimestampResponse>;
|
|
1220
1308
|
}
|
|
1221
1309
|
declare function createClient(config: IsValidConfig): IsValid;
|
|
1222
1310
|
|
|
1223
|
-
export { type AbaResponse, type AbnResponse, type AuNamespace, type BarcodeResponse, type Base64Response, type BicResponse, type BooleanResponse, type BrNamespace, type BtcAddressResponse, type CasResponse, type CfiResponse, type CnpjResponse, type ColorResponse, type ContainerCodeResponse, type CountryListItem, type CountryNamespace, type CountryResponse, type CpfResponse, type CreditCardResponse, type CronResponse, type CurrencyListItem, type CurrencyNamespace, type CurrencyResponse, type CusipResponse, type DateResponse, type DoiResponse, type DomainResponse, type DtiResponse, type EanResponse, type EmailResponse, type EoriResponse, type EsNamespace, type EthAddressResponse, type GbNamespace, type GlnResponse, type GpsResponse, type Gs1PrefixListItem, type Gs1PrefixListResponse, type Gs1PrefixNamespace, type Gs1PrefixResponse, type GstinResponse, type HsCodeListItem, type HsCodeListResponse, type HsCodeNamespace, type HsCodeResponse, type HttpStatusListItem, type HttpStatusNamespace, type HttpStatusResponse, type IataAirlineListItem, type IataAirlineNamespace, type IataAirlineResponse, type IataAirportResponse, type IataFlightResponse, type IataNamespace, type IbanResponse, type ImeiResponse, type InNamespace, type IndustryListItem, type IndustryListResponse, type IndustryNamespace, type IndustryResponse, type InvalidResponse, type IpResponse, IsValid, IsValidAuthError, type IsValidConfig, IsValidError, IsValidRateLimitError, type IsbnResponse, type IsinResponse, type IssnResponse, type JwtResponse, type KrsAddress, type KrsLookup, type KrsResponse, type LanguageListItem, type LanguageNamespace, type LanguageResponse, type LeiEntity, type LeiLou, type LeiLouItem, type LeiLousResponse, type LeiNamespace, type LeiResponse, type LeiSearchOptions, type LeiSearchResponse, type LeiSearchResult, type LocodeListItem, type LocodeNamespace, type LocodeResponse, type MacResponse, type MicResponse, type MimeTypeExtResponse, type MimeTypeListItem, type MimeTypeNamespace, type MimeTypeResponse, type NetNamespace, type NetPortListItem, type NetPortNamespace, type NetPortResponse, type NifResponse, type NpiResponse, type NutsResponse, type OrcidResponse, type PeselResponse, type PhoneResponse, type PlNamespace, type PostalCodeResponse, type QrResponse, type RegexResponse, type RegonLookup, type RegonResponse, type RetryConfig, type SemverResponse, type SortCodeResponse, type SsccResponse, type SwiftMtListItem, type SwiftMtNamespace, type SwiftMtResponse, type TimezoneListItem, type TimezoneNamespace, type TimezoneResponse, type UrlResponse, type UsNamespace, type UuidResponse, type VatResponse, type VinResponse, createClient };
|
|
1311
|
+
export { type AbaResponse, type AbnResponse, type AuNamespace, type BarcodeResponse, type Base64Response, type BicResponse, type BooleanResponse, type BrNamespace, type BtcAddressResponse, type CasResponse, type CeidgResponse, type CfiResponse, type CnpjResponse, type ColorResponse, type ContainerCodeResponse, type CountryListItem, type CountryNamespace, type CountryResponse, type CpfResponse, type CreditCardResponse, type CronResponse, type CurrencyListItem, type CurrencyNamespace, type CurrencyResponse, type CusipResponse, type DateResponse, type DoiResponse, type DomainResponse, type DtiResponse, type DunsResponse, type EanResponse, type EmailResponse, type EoriResponse, type EsNamespace, type EthAddressResponse, type GbNamespace, type GlnResponse, type GpsResponse, type Gs1PrefixListItem, type Gs1PrefixListResponse, type Gs1PrefixNamespace, type Gs1PrefixResponse, type GstinResponse, type HsCodeListItem, type HsCodeListResponse, type HsCodeNamespace, type HsCodeResponse, type HttpStatusListItem, type HttpStatusNamespace, type HttpStatusResponse, type IataAirlineListItem, type IataAirlineNamespace, type IataAirlineResponse, type IataAirportResponse, type IataFlightResponse, type IataNamespace, type IbanResponse, type ImeiResponse, type InNamespace, type IndustryListItem, type IndustryListResponse, type IndustryNamespace, type IndustryResponse, type InvalidResponse, type IpResponse, IsValid, IsValidAuthError, type IsValidConfig, IsValidError, IsValidRateLimitError, type IsbnResponse, type IsinResponse, type IssnResponse, type JwtResponse, type KrsAddress, type KrsLookup, type KrsResponse, type LanguageListItem, type LanguageNamespace, type LanguageResponse, type LeiEntity, type LeiLou, type LeiLouItem, type LeiLousResponse, type LeiNamespace, type LeiResponse, type LeiSearchOptions, type LeiSearchResponse, type LeiSearchResult, type LocodeListItem, type LocodeNamespace, type LocodeResponse, type MacResponse, type MicResponse, type MimeTypeExtResponse, type MimeTypeListItem, type MimeTypeNamespace, type MimeTypeResponse, type NetNamespace, type NetPortListItem, type NetPortNamespace, type NetPortResponse, type NifResponse, type NpiResponse, type NutsResponse, type OrcidResponse, type PeselResponse, type PhoneResponse, type PkdResponse, type PlNamespace, type PostalCodeResponse, type QrResponse, type RegexResponse, type RegonLookup, type RegonResponse, type RetryConfig, type SemverResponse, type SortCodeResponse, type SsccResponse, type SwiftMtListItem, type SwiftMtNamespace, type SwiftMtResponse, type TimestampResponse, type TimezoneListItem, type TimezoneNamespace, type TimezoneResponse, type UrlResponse, type UsNamespace, type UuidResponse, type VatResponse, type VinResponse, createClient };
|
package/dist/index.js
CHANGED
|
@@ -179,7 +179,12 @@ function createPlNamespace(client) {
|
|
|
179
179
|
krs: (value, opts) => client.get("/v0/pl/krs", {
|
|
180
180
|
value,
|
|
181
181
|
lookup: opts?.lookup?.toString()
|
|
182
|
-
})
|
|
182
|
+
}),
|
|
183
|
+
ceidg: (value, opts) => client.get("/v0/pl/ceidg", {
|
|
184
|
+
value,
|
|
185
|
+
lookup: opts?.lookup?.toString()
|
|
186
|
+
}),
|
|
187
|
+
pkd: (value) => client.get("/v0/pl/pkd", { value })
|
|
183
188
|
};
|
|
184
189
|
}
|
|
185
190
|
|
|
@@ -450,6 +455,12 @@ var IsValid = class {
|
|
|
450
455
|
regex(pattern, opts) {
|
|
451
456
|
return this.client.post("/v0/regex", { pattern, flags: opts?.flags });
|
|
452
457
|
}
|
|
458
|
+
duns(value, opts) {
|
|
459
|
+
return this.client.get("/v0/duns", { value, lookup: opts?.lookup?.toString() });
|
|
460
|
+
}
|
|
461
|
+
timestamp(value) {
|
|
462
|
+
return this.client.get("/v0/timestamp", { value });
|
|
463
|
+
}
|
|
453
464
|
};
|
|
454
465
|
function createClient(config) {
|
|
455
466
|
return new IsValid(config);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/errors.ts","../src/client.ts","../src/namespaces/lei.ts","../src/namespaces/country.ts","../src/namespaces/currency.ts","../src/namespaces/language.ts","../src/namespaces/iata.ts","../src/namespaces/net.ts","../src/namespaces/pl.ts","../src/namespaces/br.ts","../src/namespaces/au.ts","../src/namespaces/es.ts","../src/namespaces/in.ts","../src/namespaces/us.ts","../src/namespaces/gb.ts","../src/namespaces/hsCode.ts","../src/namespaces/gs1Prefix.ts","../src/namespaces/industry.ts","../src/namespaces/timezone.ts","../src/namespaces/mimeType.ts","../src/namespaces/httpStatus.ts","../src/namespaces/swiftMt.ts","../src/namespaces/locode.ts","../src/index.ts"],"names":[],"mappings":";AAAO,IAAM,YAAA,GAAN,cAA2B,KAAA,CAAM;AAAA,EAItC,WAAA,CAAY,QAAgB,IAAA,EAAyB;AACnD,IAAA,KAAA,CAAM,KAAK,KAAK,CAAA;AAChB,IAAA,IAAA,CAAK,IAAA,GAAO,cAAA;AACZ,IAAA,IAAA,CAAK,MAAA,GAAS,MAAA;AACd,IAAA,IAAA,CAAK,IAAA,GAAO,IAAA;AAAA,EACd;AACF;AAEO,IAAM,gBAAA,GAAN,cAA+B,YAAA,CAAa;AAAA,EACjD,YAAY,IAAA,EAAyB;AACnC,IAAA,KAAA,CAAM,KAAK,IAAI,CAAA;AACf,IAAA,IAAA,CAAK,IAAA,GAAO,kBAAA;AAAA,EACd;AACF;AAEO,IAAM,qBAAA,GAAN,cAAoC,YAAA,CAAa;AAAA,EAGtD,WAAA,CAAY,IAAA,EAAyB,UAAA,GAA4B,IAAA,EAAM;AACrE,IAAA,KAAA,CAAM,KAAK,IAAI,CAAA;AACf,IAAA,IAAA,CAAK,IAAA,GAAO,uBAAA;AACZ,IAAA,IAAA,CAAK,UAAA,GAAa,UAAA;AAAA,EACpB;AACF;;;ACXA,IAAM,gBAAA,GAAmB,yBAAA;AACzB,IAAM,eAAA,GAAkB,GAAA;AACxB,IAAM,aAAA,GAAuC;AAAA,EAC3C,UAAA,EAAY,CAAA;AAAA,EACZ,cAAA,EAAgB,GAAA;AAAA,EAChB,UAAA,EAAY,GAAA;AAAA,EACZ,OAAA,EAAS,CAAC,GAAA,EA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ourcesContent":["export class IsValidError extends Error {\n readonly status: number;\n readonly body: { error: string };\n\n constructor(status: number, body: { error: string }) {\n super(body.error);\n this.name = 'IsValidError';\n this.status = status;\n this.body = body;\n }\n}\n\nexport class IsValidAuthError extends IsValidError {\n constructor(body: { error: string }) {\n super(401, body);\n this.name = 'IsValidAuthError';\n }\n}\n\nexport class IsValidRateLimitError extends IsValidError {\n readonly retryAfter: number | null;\n\n constructor(body: { error: string }, retryAfter: number | null = null) {\n super(429, body);\n this.name = 'IsValidRateLimitError';\n this.retryAfter = retryAfter;\n }\n}\n","import { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\n\nexport interface RetryConfig {\n maxRetries?: number;\n initialDelayMs?: number;\n maxDelayMs?: number;\n retryOn?: number[];\n}\n\nexport interface IsValidConfig {\n apiKey: string;\n baseUrl?: string;\n timeout?: number;\n retry?: RetryConfig | false;\n}\n\nconst DEFAULT_BASE_URL = 'https://api.isvalid.dev';\nconst DEFAULT_TIMEOUT = 10_000;\nconst DEFAULT_RETRY: Required<RetryConfig> = {\n maxRetries: 3,\n initialDelayMs: 500,\n maxDelayMs: 10_000,\n retryOn: [429, 500, 502, 503],\n};\n\nfunction resolveRetry(cfg: RetryConfig | false | undefined): Required<RetryConfig> | false {\n if (cfg === false) return false;\n if (!cfg) return DEFAULT_RETRY;\n return {\n maxRetries: cfg.maxRetries ?? DEFAULT_RETRY.maxRetries,\n initialDelayMs: cfg.initialDelayMs ?? DEFAULT_RETRY.initialDelayMs,\n maxDelayMs: cfg.maxDelayMs ?? DEFAULT_RETRY.maxDelayMs,\n retryOn: cfg.retryOn ?? DEFAULT_RETRY.retryOn,\n };\n}\n\nfunction delay(ms: number): Promise<void> {\n return new Promise((r) => setTimeout(r, ms));\n}\n\nfunction backoffDelay(attempt: number, initial: number, max: number): number {\n const base = initial * 2 ** attempt;\n const jitter = Math.random() * initial;\n return Math.min(base + jitter, max);\n}\n\nexport class HttpClient {\n private readonly baseUrl: string;\n private readonly apiKey: string;\n private readonly retry: Required<RetryConfig> | false;\n private readonly timeout: number;\n\n constructor(config: IsValidConfig) {\n this.baseUrl = (config.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, '');\n this.apiKey = config.apiKey;\n this.retry = resolveRetry(config.retry);\n this.timeout = config.timeout ?? DEFAULT_TIMEOUT;\n }\n\n async get<T>(path: string, params?: Record<string, string | undefined>): Promise<T> {\n const url = this.buildUrl(path, params);\n return this.request<T>(url, { method: 'GET' });\n }\n\n async post<T>(path: string, body: unknown): Promise<T> {\n const url = this.buildUrl(path);\n return this.request<T>(url, {\n method: 'POST',\n body: JSON.stringify(body),\n headers: { 'Content-Type': 'application/json' },\n });\n }\n\n private buildUrl(path: string, params?: Record<string, string | undefined>): string {\n let result = this.baseUrl + path;\n if (params) {\n const entries = Object.entries(params).filter((e): e is [string, string] => e[1] !== undefined);\n if (entries.length > 0) {\n result += '?' + entries.map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`).join('&');\n }\n }\n return result;\n }\n\n private async request<T>(url: string, init: RequestInit): Promise<T> {\n const headers: Record<string, string> = {\n Authorization: `Bearer ${this.apiKey}`,\n Accept: 'application/json',\n ...(init.headers as Record<string, string> | undefined),\n };\n\n const maxAttempts = this.retry ? this.retry.maxRetries + 1 : 1;\n\n for (let attempt = 0; attempt < maxAttempts; attempt++) {\n const res = await fetch(url, {\n ...init,\n headers,\n signal: AbortSignal.timeout(this.timeout),\n });\n\n if (res.ok) {\n return (await res.json()) as T;\n }\n\n if (this.retry && attempt < this.retry.maxRetries && this.retry.retryOn.includes(res.status)) {\n const retryAfterHeader = res.headers.get('Retry-After');\n const retryMs = retryAfterHeader\n ? parseInt(retryAfterHeader, 10) * 1000\n : backoffDelay(attempt, this.retry.initialDelayMs, this.retry.maxDelayMs);\n await delay(retryMs);\n continue;\n }\n\n const body = await res.json().catch(() => ({ error: res.statusText })) as { error: string };\n\n if (res.status === 401) throw new IsValidAuthError(body);\n if (res.status === 429) {\n const ra = res.headers.get('Retry-After');\n throw new IsValidRateLimitError(body, ra ? parseInt(ra, 10) : null);\n }\n throw new IsValidError(res.status, body);\n }\n\n throw new IsValidError(0, { error: 'Max retries exceeded' });\n }\n}\n","import type { HttpClient } from '../client.js';\nimport type { LeiResponse, LeiSearchOptions, LeiSearchResponse, LeiLousResponse } from '../types/lei.js';\n\nexport interface LeiNamespace {\n (value: string): Promise<LeiResponse>;\n search(query: string, opts?: LeiSearchOptions): Promise<LeiSearchResponse>;\n lous(): Promise<LeiLousResponse>;\n}\n\nexport function createLeiNamespace(client: HttpClient): LeiNamespace {\n const lei = ((value: string) =>\n client.get<LeiResponse>('/v0/lei', { value })\n ) as LeiNamespace;\n\n lei.search = (query: string, opts?: LeiSearchOptions) =>\n client.get<LeiSearchResponse>('/v0/lei/search', {\n q: query,\n country: opts?.country,\n entityStatus: opts?.entityStatus,\n page: opts?.page?.toString(),\n limit: opts?.limit?.toString(),\n });\n\n lei.lous = () => client.get<LeiLousResponse>('/v0/lei/lous');\n\n return lei;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CountryResponse, CountryListItem } from '../types/country.js';\n\nexport interface CountryNamespace {\n (value: string): Promise<CountryResponse>;\n list(): Promise<CountryListItem[]>;\n}\n\nexport function createCountryNamespace(client: HttpClient): CountryNamespace {\n const country = ((value: string) =>\n client.get<CountryResponse>('/v0/country', { value })\n ) as CountryNamespace;\n\n country.list = () => client.get<CountryListItem[]>('/v0/country/list');\n\n return country;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CurrencyResponse, CurrencyListItem } from '../types/currency.js';\n\nexport interface CurrencyNamespace {\n (value: string): Promise<CurrencyResponse>;\n list(): Promise<CurrencyListItem[]>;\n}\n\nexport function createCurrencyNamespace(client: HttpClient): CurrencyNamespace {\n const currency = ((value: string) =>\n client.get<CurrencyResponse>('/v0/currency', { value })\n ) as CurrencyNamespace;\n\n currency.list = () => client.get<CurrencyListItem[]>('/v0/currency/list');\n\n return currency;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LanguageResponse, LanguageListItem } from '../types/language.js';\n\nexport interface LanguageNamespace {\n (value: string): Promise<LanguageResponse>;\n list(): Promise<LanguageListItem[]>;\n}\n\nexport function createLanguageNamespace(client: HttpClient): LanguageNamespace {\n const language = ((value: string) =>\n client.get<LanguageResponse>('/v0/language', { value })\n ) as LanguageNamespace;\n\n language.list = () => client.get<LanguageListItem[]>('/v0/language/list');\n\n return language;\n}\n","import type { HttpClient } from '../client.js';\nimport type {\n IataFlightResponse, IataAirlineResponse, IataAirlineListItem, IataAirportResponse,\n} from '../types/iata.js';\n\nexport interface IataAirlineNamespace {\n (value: string): Promise<IataAirlineResponse>;\n list(): Promise<IataAirlineListItem[]>;\n}\n\nexport interface IataNamespace {\n flight(value: string): Promise<IataFlightResponse>;\n airline: IataAirlineNamespace;\n airport(value: string): Promise<IataAirportResponse>;\n}\n\nexport function createIataNamespace(client: HttpClient): IataNamespace {\n const airline = ((value: string) =>\n client.get<IataAirlineResponse>('/v0/iata/airline', { value })\n ) as IataAirlineNamespace;\n\n airline.list = () => client.get<IataAirlineListItem[]>('/v0/iata/airline/list');\n\n return {\n flight: (value: string) =>\n client.get<IataFlightResponse>('/v0/iata/flight', { value }),\n airline,\n airport: (value: string) =>\n client.get<IataAirportResponse>('/v0/iata/airport', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { IpResponse, MacResponse, NetPortResponse, NetPortListItem } from '../types/net.js';\n\nexport interface NetPortNamespace {\n (value: string): Promise<NetPortResponse>;\n list(): Promise<NetPortListItem[]>;\n}\n\nexport interface NetNamespace {\n ip(value: string): Promise<IpResponse>;\n mac(value: string): Promise<MacResponse>;\n port: NetPortNamespace;\n}\n\nexport function createNetNamespace(client: HttpClient): NetNamespace {\n const port = ((value: string) =>\n client.get<NetPortResponse>('/v0/net/port', { value })\n ) as NetPortNamespace;\n\n port.list = () => client.get<NetPortListItem[]>('/v0/net/port/list');\n\n return {\n ip: (value: string) => client.get<IpResponse>('/v0/net/ip', { value }),\n mac: (value: string) => client.get<MacResponse>('/v0/net/mac', { value }),\n port,\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { PeselResponse, RegonResponse, KrsResponse } from '../types/pl.js';\n\nexport interface PlNamespace {\n pesel(value: string): Promise<PeselResponse>;\n regon(value: string, opts?: { lookup?: boolean }): Promise<RegonResponse>;\n krs(value: string, opts?: { lookup?: boolean }): Promise<KrsResponse>;\n}\n\nexport function createPlNamespace(client: HttpClient): PlNamespace {\n return {\n pesel: (value: string) =>\n client.get<PeselResponse>('/v0/pl/pesel', { value }),\n regon: (value: string, opts?) =>\n client.get<RegonResponse>('/v0/pl/regon', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n krs: (value: string, opts?) =>\n client.get<KrsResponse>('/v0/pl/krs', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { CnpjResponse, CpfResponse } from '../types/br.js';\n\nexport interface BrNamespace {\n cnpj(value: string): Promise<CnpjResponse>;\n cpf(value: string): Promise<CpfResponse>;\n}\n\nexport function createBrNamespace(client: HttpClient): BrNamespace {\n return {\n cnpj: (value: string) => client.get<CnpjResponse>('/v0/br/cnpj', { value }),\n cpf: (value: string) => client.get<CpfResponse>('/v0/br/cpf', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { AbnResponse } from '../types/au.js';\n\nexport interface AuNamespace {\n abn(value: string): Promise<AbnResponse>;\n}\n\nexport function createAuNamespace(client: HttpClient): AuNamespace {\n return {\n abn: (value: string) => client.get<AbnResponse>('/v0/au/abn', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NifResponse } from '../types/es.js';\n\nexport interface EsNamespace {\n nif(value: string): Promise<NifResponse>;\n}\n\nexport function createEsNamespace(client: HttpClient): EsNamespace {\n return {\n nif: (value: string) => client.get<NifResponse>('/v0/es/nif', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { GstinResponse } from '../types/in.js';\n\nexport interface InNamespace {\n gstin(value: string): Promise<GstinResponse>;\n}\n\nexport function createInNamespace(client: HttpClient): InNamespace {\n return {\n gstin: (value: string) => client.get<GstinResponse>('/v0/in/gstin', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NpiResponse } from '../types/us.js';\n\nexport interface UsNamespace {\n npi(value: string): Promise<NpiResponse>;\n}\n\nexport function createUsNamespace(client: HttpClient): UsNamespace {\n return {\n npi: (value: string) => client.get<NpiResponse>('/v0/us/npi', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { SortCodeResponse } from '../types/gb.js';\n\nexport interface GbNamespace {\n sortCode(value: string): Promise<SortCodeResponse>;\n}\n\nexport function createGbNamespace(client: HttpClient): GbNamespace {\n return {\n sortCode: (value: string) => client.get<SortCodeResponse>('/v0/gb/sort-code', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { HsCodeResponse, HsCodeListResponse } from '../types/hsCode.js';\n\nexport interface HsCodeNamespace {\n (value: string): Promise<HsCodeResponse>;\n list(opts?: { chapter?: string; level?: string }): Promise<HsCodeListResponse>;\n}\n\nexport function createHsCodeNamespace(client: HttpClient): HsCodeNamespace {\n const hsCode = ((value: string) =>\n client.get<HsCodeResponse>('/v0/hs-code', { value })\n ) as HsCodeNamespace;\n\n hsCode.list = (opts?: { chapter?: string; level?: string }) =>\n client.get<HsCodeListResponse>('/v0/hs-code/list', {\n chapter: opts?.chapter,\n level: opts?.level,\n });\n\n return hsCode;\n}\n","import type { HttpClient } from '../client.js';\nimport type { Gs1PrefixResponse, Gs1PrefixListResponse } from '../types/gs1Prefix.js';\n\nexport interface Gs1PrefixNamespace {\n (value: string): Promise<Gs1PrefixResponse>;\n list(): Promise<Gs1PrefixListResponse>;\n}\n\nexport function createGs1PrefixNamespace(client: HttpClient): Gs1PrefixNamespace {\n const gs1Prefix = ((value: string) =>\n client.get<Gs1PrefixResponse>('/v0/gs1-prefix', { value })\n ) as Gs1PrefixNamespace;\n\n gs1Prefix.list = () =>\n client.get<Gs1PrefixListResponse>('/v0/gs1-prefix/list');\n\n return gs1Prefix;\n}\n","import type { HttpClient } from '../client.js';\nimport type { IndustryResponse, IndustryListResponse } from '../types/industry.js';\n\nexport interface IndustryNamespace {\n (value: string, opts?: { system?: string }): Promise<IndustryResponse>;\n list(opts: { system: string; level?: string; parent?: string }): Promise<IndustryListResponse>;\n}\n\nexport function createIndustryNamespace(client: HttpClient): IndustryNamespace {\n const industry = ((value: string, opts?: { system?: string }) =>\n client.get<IndustryResponse>('/v0/industry', {\n value,\n system: opts?.system,\n })\n ) as IndustryNamespace;\n\n industry.list = (opts: { system: string; level?: string; parent?: string }) =>\n client.get<IndustryListResponse>('/v0/industry/list', {\n system: opts.system,\n level: opts?.level,\n parent: opts?.parent,\n });\n\n return industry;\n}\n","import type { HttpClient } from '../client.js';\nimport type { TimezoneResponse, TimezoneListItem } from '../types/timezone.js';\n\nexport interface TimezoneNamespace {\n (value: string): Promise<TimezoneResponse>;\n list(opts?: { region?: string }): Promise<TimezoneListItem[]>;\n}\n\nexport function createTimezoneNamespace(client: HttpClient): TimezoneNamespace {\n const timezone = ((value: string) =>\n client.get<TimezoneResponse>('/v0/timezone', { value })\n ) as TimezoneNamespace;\n\n timezone.list = (opts?: { region?: string }) =>\n client.get<TimezoneListItem[]>('/v0/timezone/list', { region: opts?.region });\n\n return timezone;\n}\n","import type { HttpClient } from '../client.js';\nimport type { MimeTypeResponse, MimeTypeExtResponse, MimeTypeListItem } from '../types/mimeType.js';\n\nexport interface MimeTypeNamespace {\n (value: string): Promise<MimeTypeResponse>;\n ext(value: string): Promise<MimeTypeExtResponse>;\n list(opts?: { type?: string }): Promise<MimeTypeListItem[]>;\n}\n\nexport function createMimeTypeNamespace(client: HttpClient): MimeTypeNamespace {\n const mimeType = ((value: string) =>\n client.get<MimeTypeResponse>('/v0/mime-type', { value })\n ) as MimeTypeNamespace;\n\n mimeType.ext = (value: string) =>\n client.get<MimeTypeExtResponse>('/v0/mime-type/ext', { value });\n\n mimeType.list = (opts?: { type?: string }) =>\n client.get<MimeTypeListItem[]>('/v0/mime-type/list', { type: opts?.type });\n\n return mimeType;\n}\n","import type { HttpClient } from '../client.js';\nimport type { HttpStatusResponse, HttpStatusListItem } from '../types/httpStatus.js';\n\nexport interface HttpStatusNamespace {\n (value: string): Promise<HttpStatusResponse>;\n list(): Promise<HttpStatusListItem[]>;\n}\n\nexport function createHttpStatusNamespace(client: HttpClient): HttpStatusNamespace {\n const httpStatus = ((value: string) =>\n client.get<HttpStatusResponse>('/v0/http-status', { value })\n ) as HttpStatusNamespace;\n\n httpStatus.list = () =>\n client.get<HttpStatusListItem[]>('/v0/http-status/list');\n\n return httpStatus;\n}\n","import type { HttpClient } from '../client.js';\nimport type { SwiftMtResponse, SwiftMtListItem } from '../types/swiftMt.js';\n\nexport interface SwiftMtNamespace {\n (value: string): Promise<SwiftMtResponse>;\n list(opts?: { category?: number }): Promise<SwiftMtListItem[]>;\n}\n\nexport function createSwiftMtNamespace(client: HttpClient): SwiftMtNamespace {\n const swiftMt = ((value: string) =>\n client.get<SwiftMtResponse>('/v0/swift-mt', { value })\n ) as SwiftMtNamespace;\n\n swiftMt.list = (opts?: { category?: number }) =>\n client.get<SwiftMtListItem[]>('/v0/swift-mt/list', { category: opts?.category?.toString() });\n\n return swiftMt;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LocodeResponse, LocodeListItem } from '../types/locode.js';\n\nexport interface LocodeNamespace {\n (value: string): Promise<LocodeResponse>;\n list(opts: { country: string }): Promise<LocodeListItem[]>;\n}\n\nexport function createLocodeNamespace(client: HttpClient): LocodeNamespace {\n const locode = ((value: string) =>\n client.get<LocodeResponse>('/v0/locode', { value })\n ) as LocodeNamespace;\n\n locode.list = (opts: { country: string }) =>\n client.get<LocodeListItem[]>('/v0/locode/list', { country: opts.country });\n\n return locode;\n}\n","import { HttpClient } from './client.js';\nimport type { IsValidConfig } from './client.js';\nimport { createLeiNamespace } from './namespaces/lei.js';\nimport type { LeiNamespace } from './namespaces/lei.js';\nimport { createCountryNamespace } from './namespaces/country.js';\nimport type { CountryNamespace } from './namespaces/country.js';\nimport { createCurrencyNamespace } from './namespaces/currency.js';\nimport type { CurrencyNamespace } from './namespaces/currency.js';\nimport { createLanguageNamespace } from './namespaces/language.js';\nimport type { LanguageNamespace } from './namespaces/language.js';\nimport { createIataNamespace } from './namespaces/iata.js';\nimport type { IataNamespace } from './namespaces/iata.js';\nimport { createNetNamespace } from './namespaces/net.js';\nimport type { NetNamespace } from './namespaces/net.js';\nimport { createPlNamespace } from './namespaces/pl.js';\nimport type { PlNamespace } from './namespaces/pl.js';\nimport { createBrNamespace } from './namespaces/br.js';\nimport type { BrNamespace } from './namespaces/br.js';\nimport { createAuNamespace } from './namespaces/au.js';\nimport type { AuNamespace } from './namespaces/au.js';\nimport { createEsNamespace } from './namespaces/es.js';\nimport type { EsNamespace } from './namespaces/es.js';\nimport { createInNamespace } from './namespaces/in.js';\nimport type { InNamespace } from './namespaces/in.js';\nimport { createUsNamespace } from './namespaces/us.js';\nimport type { UsNamespace } from './namespaces/us.js';\nimport { createGbNamespace } from './namespaces/gb.js';\nimport type { GbNamespace } from './namespaces/gb.js';\nimport { createHsCodeNamespace } from './namespaces/hsCode.js';\nimport type { HsCodeNamespace } from './namespaces/hsCode.js';\nimport { createGs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport { createIndustryNamespace } from './namespaces/industry.js';\nimport type { IndustryNamespace } from './namespaces/industry.js';\nimport { createTimezoneNamespace } from './namespaces/timezone.js';\nimport type { TimezoneNamespace } from './namespaces/timezone.js';\nimport { createMimeTypeNamespace } from './namespaces/mimeType.js';\nimport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nimport { createHttpStatusNamespace } from './namespaces/httpStatus.js';\nimport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nimport { createSwiftMtNamespace } from './namespaces/swiftMt.js';\nimport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nimport { createLocodeNamespace } from './namespaces/locode.js';\nimport type { LocodeNamespace } from './namespaces/locode.js';\nimport type {\n EmailResponse, IbanResponse, IsinResponse, DtiResponse, VatResponse,\n GpsResponse, PhoneResponse, UrlResponse, EanResponse, IsbnResponse,\n IssnResponse, BicResponse, CusipResponse, CfiResponse, MicResponse,\n NutsResponse, UuidResponse, JwtResponse, VinResponse, ImeiResponse,\n SemverResponse, ColorResponse, BooleanResponse, DateResponse,\n BtcAddressResponse, PostalCodeResponse, AbaResponse, ContainerCodeResponse,\n SsccResponse, GlnResponse, QrResponse, CreditCardResponse,\n CasResponse, EoriResponse, OrcidResponse, DoiResponse, BarcodeResponse,\n Base64Response, EthAddressResponse, CronResponse, DomainResponse, RegexResponse,\n} from './types/simple.js';\n\nexport class IsValid {\n private readonly client: HttpClient;\n\n readonly lei: LeiNamespace;\n readonly country: CountryNamespace;\n readonly currency: CurrencyNamespace;\n readonly language: LanguageNamespace;\n readonly iata: IataNamespace;\n readonly net: NetNamespace;\n readonly pl: PlNamespace;\n readonly br: BrNamespace;\n readonly au: AuNamespace;\n readonly es: EsNamespace;\n readonly in: InNamespace;\n readonly us: UsNamespace;\n readonly gb: GbNamespace;\n readonly hsCode: HsCodeNamespace;\n readonly gs1Prefix: Gs1PrefixNamespace;\n readonly industry: IndustryNamespace;\n readonly timezone: TimezoneNamespace;\n readonly mimeType: MimeTypeNamespace;\n readonly httpStatus: HttpStatusNamespace;\n readonly swiftMt: SwiftMtNamespace;\n readonly locode: LocodeNamespace;\n\n constructor(config: IsValidConfig) {\n this.client = new HttpClient(config);\n\n this.lei = createLeiNamespace(this.client);\n this.country = createCountryNamespace(this.client);\n this.currency = createCurrencyNamespace(this.client);\n this.language = createLanguageNamespace(this.client);\n this.iata = createIataNamespace(this.client);\n this.net = createNetNamespace(this.client);\n this.pl = createPlNamespace(this.client);\n this.br = createBrNamespace(this.client);\n this.au = createAuNamespace(this.client);\n this.es = createEsNamespace(this.client);\n this.in = createInNamespace(this.client);\n this.us = createUsNamespace(this.client);\n this.gb = createGbNamespace(this.client);\n this.hsCode = createHsCodeNamespace(this.client);\n this.gs1Prefix = createGs1PrefixNamespace(this.client);\n this.industry = createIndustryNamespace(this.client);\n this.timezone = createTimezoneNamespace(this.client);\n this.mimeType = createMimeTypeNamespace(this.client);\n this.httpStatus = createHttpStatusNamespace(this.client);\n this.swiftMt = createSwiftMtNamespace(this.client);\n this.locode = createLocodeNamespace(this.client);\n }\n\n // --- Simple endpoints ---\n\n email(value: string, opts?: { checkMx?: boolean }): Promise<EmailResponse> {\n return this.client.get('/v0/email', { value, checkMx: opts?.checkMx?.toString() });\n }\n\n iban(value: string, opts?: { countryCode?: string }): Promise<IbanResponse> {\n return this.client.get('/v0/iban', { value, countryCode: opts?.countryCode });\n }\n\n isin(value: string): Promise<IsinResponse> {\n return this.client.get('/v0/isin', { value });\n }\n\n dti(value: string): Promise<DtiResponse> {\n return this.client.get('/v0/dti', { value });\n }\n\n vat(value: string, opts?: { countryCode?: string; checkVies?: boolean }): Promise<VatResponse> {\n return this.client.get('/v0/vat', {\n value,\n countryCode: opts?.countryCode,\n checkVies: opts?.checkVies?.toString(),\n });\n }\n\n gps(value: string): Promise<GpsResponse> {\n return this.client.get('/v0/gps', { value });\n }\n\n phone(value: string, opts?: { countryCode?: string }): Promise<PhoneResponse> {\n return this.client.get('/v0/phone', { value, countryCode: opts?.countryCode });\n }\n\n url(value: string): Promise<UrlResponse> {\n return this.client.get('/v0/url', { value });\n }\n\n ean(value: string): Promise<EanResponse> {\n return this.client.get('/v0/ean', { value });\n }\n\n isbn(value: string): Promise<IsbnResponse> {\n return this.client.get('/v0/isbn', { value });\n }\n\n issn(value: string): Promise<IssnResponse> {\n return this.client.get('/v0/issn', { value });\n }\n\n bic(value: string): Promise<BicResponse> {\n return this.client.get('/v0/bic', { value });\n }\n\n cusip(value: string): Promise<CusipResponse> {\n return this.client.get('/v0/cusip', { value });\n }\n\n cfi(value: string): Promise<CfiResponse> {\n return this.client.get('/v0/cfi', { value });\n }\n\n mic(value: string): Promise<MicResponse> {\n return this.client.get('/v0/mic', { value });\n }\n\n nuts(value: string): Promise<NutsResponse> {\n return this.client.get('/v0/nuts', { value });\n }\n\n uuid(value: string, opts?: { version?: number }): Promise<UuidResponse> {\n return this.client.get('/v0/uuid', { value, version: opts?.version?.toString() });\n }\n\n jwt(value: string): Promise<JwtResponse> {\n return this.client.get('/v0/jwt', { value });\n }\n\n vin(value: string): Promise<VinResponse> {\n return this.client.get('/v0/vin', { value });\n }\n\n imei(value: string): Promise<ImeiResponse> {\n return this.client.get('/v0/imei', { value });\n }\n\n semver(value: string): Promise<SemverResponse> {\n return this.client.get('/v0/semver', { value });\n }\n\n color(value: string): Promise<ColorResponse> {\n return this.client.get('/v0/color', { value });\n }\n\n boolean(value: string): Promise<BooleanResponse> {\n return this.client.get('/v0/boolean', { value });\n }\n\n date(value: string, opts?: { format?: string }): Promise<DateResponse> {\n return this.client.get('/v0/date', { value, format: opts?.format });\n }\n\n btcAddress(value: string): Promise<BtcAddressResponse> {\n return this.client.get('/v0/btc-address', { value });\n }\n\n postalCode(value: string, opts?: { countryCode?: string }): Promise<PostalCodeResponse> {\n return this.client.get('/v0/postal-code', { value, countryCode: opts?.countryCode });\n }\n\n aba(value: string): Promise<AbaResponse> {\n return this.client.get('/v0/aba', { value });\n }\n\n containerCode(value: string): Promise<ContainerCodeResponse> {\n return this.client.get('/v0/container-code', { value });\n }\n\n sscc(value: string): Promise<SsccResponse> {\n return this.client.get('/v0/sscc', { value });\n }\n\n gln(value: string): Promise<GlnResponse> {\n return this.client.get('/v0/gln', { value });\n }\n\n qr(value: string): Promise<QrResponse> {\n return this.client.get('/v0/qr', { value });\n }\n\n creditCard(number: string): Promise<CreditCardResponse> {\n return this.client.post('/v0/credit-card', { number });\n }\n\n cas(value: string): Promise<CasResponse> {\n return this.client.get('/v0/cas', { value });\n }\n\n eori(value: string, opts?: { check?: boolean }): Promise<EoriResponse> {\n return this.client.get('/v0/eori', { value, check: opts?.check?.toString() });\n }\n\n orcid(value: string, opts?: { lookup?: boolean }): Promise<OrcidResponse> {\n return this.client.get('/v0/orcid', { value, lookup: opts?.lookup?.toString() });\n }\n\n doi(value: string, opts?: { lookup?: boolean }): Promise<DoiResponse> {\n return this.client.get('/v0/doi', { value, lookup: opts?.lookup?.toString() });\n }\n\n barcode(value: string, opts?: { type?: string }): Promise<BarcodeResponse> {\n return this.client.get('/v0/barcode', { value, type: opts?.type });\n }\n\n base64(value: string): Promise<Base64Response> {\n return this.client.get('/v0/base64', { value });\n }\n\n ethAddress(value: string): Promise<EthAddressResponse> {\n return this.client.get('/v0/eth-address', { value });\n }\n\n cron(value: string): Promise<CronResponse> {\n return this.client.get('/v0/cron', { value });\n }\n\n domain(value: string): Promise<DomainResponse> {\n return this.client.get('/v0/domain', { value });\n }\n\n regex(pattern: string, opts?: { flags?: string }): Promise<RegexResponse> {\n return this.client.post('/v0/regex', { pattern, flags: opts?.flags });\n }\n}\n\nexport function createClient(config: IsValidConfig): IsValid {\n return new IsValid(config);\n}\n\nexport { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\nexport type { IsValidConfig, RetryConfig } from './client.js';\nexport * from './types/index.js';\n\nexport type { LeiNamespace } from './namespaces/lei.js';\nexport type { CountryNamespace } from './namespaces/country.js';\nexport type { CurrencyNamespace } from './namespaces/currency.js';\nexport type { LanguageNamespace } from './namespaces/language.js';\nexport type { IataNamespace, IataAirlineNamespace } from './namespaces/iata.js';\nexport type { NetNamespace } from './namespaces/net.js';\nexport type { PlNamespace } from './namespaces/pl.js';\nexport type { BrNamespace } from './namespaces/br.js';\nexport type { AuNamespace } from './namespaces/au.js';\nexport type { EsNamespace } from './namespaces/es.js';\nexport type { InNamespace } from './namespaces/in.js';\nexport type { UsNamespace } from './namespaces/us.js';\nexport type { GbNamespace } from './namespaces/gb.js';\nexport type { HsCodeNamespace } from './namespaces/hsCode.js';\nexport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nexport type { IndustryNamespace } from './namespaces/industry.js';\nexport type { TimezoneNamespace } from './namespaces/timezone.js';\nexport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nexport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nexport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nexport type { LocodeNamespace } from './namespaces/locode.js';\nexport type { NetPortNamespace } from './namespaces/net.js';\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/errors.ts","../src/client.ts","../src/namespaces/lei.ts","../src/namespaces/country.ts","../src/namespaces/currency.ts","../src/namespaces/language.ts","../src/namespaces/iata.ts","../src/namespaces/net.ts","../src/namespaces/pl.ts","../src/namespaces/br.ts","../src/namespaces/au.ts","../src/namespaces/es.ts","../src/namespaces/in.ts","../src/namespaces/us.ts","../src/namespaces/gb.ts","../src/namespaces/hsCode.ts","../src/namespaces/gs1Prefix.ts","../src/namespaces/industry.ts","../src/namespaces/timezone.ts","../src/namespaces/mimeType.ts","../src/namespaces/httpStatus.ts","../src/namespaces/swiftMt.ts","../src/namespaces/locode.ts","../src/index.ts"],"names":[],"mappings":";AAAO,IAAM,YAAA,GAAN,cAA2B,KAAA,CAAM;AAAA,EAItC,WAAA,CAAY,QAAgB,IAAA,EAAyB;AACnD,IAAA,KAAA,CAAM,KAAK,KAAK,CAAA;AAChB,IAAA,IAAA,CAAK,IAAA,GAAO,cAAA;AACZ,IAAA,IAAA,CAAK,MAAA,GAAS,MAAA;AACd,IAAA,IAAA,CAAK,IAAA,GAAO,IAAA;AAAA,EACd;AACF;AAEO,IAAM,gBAAA,GAAN,cAA+B,YAAA,CAAa;AAAA,EACjD,YAAY,IAAA,EAAyB;AACnC,IAAA,KAAA,CAAM,KAAK,IAAI,CAAA;AACf,IAAA,IAAA,CAAK,IAAA,GAAO,kBAAA;AAAA,EACd;AACF;AAEO,IAAM,qBAAA,GAAN,cAAoC,YAAA,CAAa;AAAA,EAGtD,WAAA,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EAAE,OAAO,CAAA;AAAA,EAChD;AAAA,EAEA,WAAW,KAAA,EAA4C;AACrD,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,iBAAA,EAAmB,EAAE,OAAO,CAAA;AAAA,EACrD;AAAA,EAEA,KAAK,KAAA,EAAsC;AACzC,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,UAAA,EAAY,EAAE,OAAO,CAAA;AAAA,EAC9C;AAAA,EAEA,OAAO,KAAA,EAAwC;AAC7C,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,YAAA,EAAc,EAAE,OAAO,CAAA;AAAA,EAChD;AAAA,EAEA,KAAA,CAAM,SAAiB,IAAA,EAAmD;AACxE,IAAA,OAAO,IAAA,CAAK,OAAO,IAAA,CAAK,WAAA,EAAa,EAAE,OAAA,EAAS,KAAA,EAAO,IAAA,EAAM,KAAA,EAAO,CAAA;AAAA,EACtE;AAAA,EAEA,IAAA,CAAK,OAAe,IAAA,EAAoD;AACtE,IAAA,OAAO,IAAA,CAAK,MAAA,CAAO,GAAA,CAAI,UAAA,EAAY,EAAE,KAAA,EAAO,MAAA,EAAQ,IAAA,EAAM,MAAA,EAAQ,QAAA,EAAS,EAAG,CAAA;AAAA,EAChF;AAAA,EAEA,UAAU,KAAA,EAA2C;AACnD,IAAA,OAAO,KAAK,MAAA,CAAO,GAAA,CAAI,eAAA,EAAiB,EAAE,OAAO,CAAA;AAAA,EACnD;AACF;AAEO,SAAS,aAAa,MAAA,EAAgC;AAC3D,EAAA,OAAO,IAAI,QAAQ,MAAM,CAAA;AAC3B","file":"index.js","sourcesContent":["export class IsValidError extends Error {\n readonly status: number;\n readonly body: { error: string };\n\n constructor(status: number, body: { error: string }) {\n super(body.error);\n this.name = 'IsValidError';\n this.status = status;\n this.body = body;\n }\n}\n\nexport class IsValidAuthError extends IsValidError {\n constructor(body: { error: string }) {\n super(401, body);\n this.name = 'IsValidAuthError';\n }\n}\n\nexport class IsValidRateLimitError extends IsValidError {\n readonly retryAfter: number | null;\n\n constructor(body: { error: string }, retryAfter: number | null = null) {\n super(429, body);\n this.name = 'IsValidRateLimitError';\n this.retryAfter = retryAfter;\n }\n}\n","import { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\n\nexport interface RetryConfig {\n maxRetries?: number;\n initialDelayMs?: number;\n maxDelayMs?: number;\n retryOn?: number[];\n}\n\nexport interface IsValidConfig {\n apiKey: string;\n baseUrl?: string;\n timeout?: number;\n retry?: RetryConfig | false;\n}\n\nconst DEFAULT_BASE_URL = 'https://api.isvalid.dev';\nconst DEFAULT_TIMEOUT = 10_000;\nconst DEFAULT_RETRY: Required<RetryConfig> = {\n maxRetries: 3,\n initialDelayMs: 500,\n maxDelayMs: 10_000,\n retryOn: [429, 500, 502, 503],\n};\n\nfunction resolveRetry(cfg: RetryConfig | false | undefined): Required<RetryConfig> | false {\n if (cfg === false) return false;\n if (!cfg) return DEFAULT_RETRY;\n return {\n maxRetries: cfg.maxRetries ?? DEFAULT_RETRY.maxRetries,\n initialDelayMs: cfg.initialDelayMs ?? DEFAULT_RETRY.initialDelayMs,\n maxDelayMs: cfg.maxDelayMs ?? DEFAULT_RETRY.maxDelayMs,\n retryOn: cfg.retryOn ?? DEFAULT_RETRY.retryOn,\n };\n}\n\nfunction delay(ms: number): Promise<void> {\n return new Promise((r) => setTimeout(r, ms));\n}\n\nfunction backoffDelay(attempt: number, initial: number, max: number): number {\n const base = initial * 2 ** attempt;\n const jitter = Math.random() * initial;\n return Math.min(base + jitter, max);\n}\n\nexport class HttpClient {\n private readonly baseUrl: string;\n private readonly apiKey: string;\n private readonly retry: Required<RetryConfig> | false;\n private readonly timeout: number;\n\n constructor(config: IsValidConfig) {\n this.baseUrl = (config.baseUrl ?? DEFAULT_BASE_URL).replace(/\\/+$/, '');\n this.apiKey = config.apiKey;\n this.retry = resolveRetry(config.retry);\n this.timeout = config.timeout ?? DEFAULT_TIMEOUT;\n }\n\n async get<T>(path: string, params?: Record<string, string | undefined>): Promise<T> {\n const url = this.buildUrl(path, params);\n return this.request<T>(url, { method: 'GET' });\n }\n\n async post<T>(path: string, body: unknown): Promise<T> {\n const url = this.buildUrl(path);\n return this.request<T>(url, {\n method: 'POST',\n body: JSON.stringify(body),\n headers: { 'Content-Type': 'application/json' },\n });\n }\n\n private buildUrl(path: string, params?: Record<string, string | undefined>): string {\n let result = this.baseUrl + path;\n if (params) {\n const entries = Object.entries(params).filter((e): e is [string, string] => e[1] !== undefined);\n if (entries.length > 0) {\n result += '?' + entries.map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`).join('&');\n }\n }\n return result;\n }\n\n private async request<T>(url: string, init: RequestInit): Promise<T> {\n const headers: Record<string, string> = {\n Authorization: `Bearer ${this.apiKey}`,\n Accept: 'application/json',\n ...(init.headers as Record<string, string> | undefined),\n };\n\n const maxAttempts = this.retry ? this.retry.maxRetries + 1 : 1;\n\n for (let attempt = 0; attempt < maxAttempts; attempt++) {\n const res = await fetch(url, {\n ...init,\n headers,\n signal: AbortSignal.timeout(this.timeout),\n });\n\n if (res.ok) {\n return (await res.json()) as T;\n }\n\n if (this.retry && attempt < this.retry.maxRetries && this.retry.retryOn.includes(res.status)) {\n const retryAfterHeader = res.headers.get('Retry-After');\n const retryMs = retryAfterHeader\n ? parseInt(retryAfterHeader, 10) * 1000\n : backoffDelay(attempt, this.retry.initialDelayMs, this.retry.maxDelayMs);\n await delay(retryMs);\n continue;\n }\n\n const body = await res.json().catch(() => ({ error: res.statusText })) as { error: string };\n\n if (res.status === 401) throw new IsValidAuthError(body);\n if (res.status === 429) {\n const ra = res.headers.get('Retry-After');\n throw new IsValidRateLimitError(body, ra ? parseInt(ra, 10) : null);\n }\n throw new IsValidError(res.status, body);\n }\n\n throw new IsValidError(0, { error: 'Max retries exceeded' });\n }\n}\n","import type { HttpClient } from '../client.js';\nimport type { LeiResponse, LeiSearchOptions, LeiSearchResponse, LeiLousResponse } from '../types/lei.js';\n\nexport interface LeiNamespace {\n (value: string): Promise<LeiResponse>;\n search(query: string, opts?: LeiSearchOptions): Promise<LeiSearchResponse>;\n lous(): Promise<LeiLousResponse>;\n}\n\nexport function createLeiNamespace(client: HttpClient): LeiNamespace {\n const lei = ((value: string) =>\n client.get<LeiResponse>('/v0/lei', { value })\n ) as LeiNamespace;\n\n lei.search = (query: string, opts?: LeiSearchOptions) =>\n client.get<LeiSearchResponse>('/v0/lei/search', {\n q: query,\n country: opts?.country,\n entityStatus: opts?.entityStatus,\n page: opts?.page?.toString(),\n limit: opts?.limit?.toString(),\n });\n\n lei.lous = () => client.get<LeiLousResponse>('/v0/lei/lous');\n\n return lei;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CountryResponse, CountryListItem } from '../types/country.js';\n\nexport interface CountryNamespace {\n (value: string): Promise<CountryResponse>;\n list(): Promise<CountryListItem[]>;\n}\n\nexport function createCountryNamespace(client: HttpClient): CountryNamespace {\n const country = ((value: string) =>\n client.get<CountryResponse>('/v0/country', { value })\n ) as CountryNamespace;\n\n country.list = () => client.get<CountryListItem[]>('/v0/country/list');\n\n return country;\n}\n","import type { HttpClient } from '../client.js';\nimport type { CurrencyResponse, CurrencyListItem } from '../types/currency.js';\n\nexport interface CurrencyNamespace {\n (value: string): Promise<CurrencyResponse>;\n list(): Promise<CurrencyListItem[]>;\n}\n\nexport function createCurrencyNamespace(client: HttpClient): CurrencyNamespace {\n const currency = ((value: string) =>\n client.get<CurrencyResponse>('/v0/currency', { value })\n ) as CurrencyNamespace;\n\n currency.list = () => client.get<CurrencyListItem[]>('/v0/currency/list');\n\n return currency;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LanguageResponse, LanguageListItem } from '../types/language.js';\n\nexport interface LanguageNamespace {\n (value: string): Promise<LanguageResponse>;\n list(): Promise<LanguageListItem[]>;\n}\n\nexport function createLanguageNamespace(client: HttpClient): LanguageNamespace {\n const language = ((value: string) =>\n client.get<LanguageResponse>('/v0/language', { value })\n ) as LanguageNamespace;\n\n language.list = () => client.get<LanguageListItem[]>('/v0/language/list');\n\n return language;\n}\n","import type { HttpClient } from '../client.js';\nimport type {\n IataFlightResponse, IataAirlineResponse, IataAirlineListItem, IataAirportResponse,\n} from '../types/iata.js';\n\nexport interface IataAirlineNamespace {\n (value: string): Promise<IataAirlineResponse>;\n list(): Promise<IataAirlineListItem[]>;\n}\n\nexport interface IataNamespace {\n flight(value: string): Promise<IataFlightResponse>;\n airline: IataAirlineNamespace;\n airport(value: string): Promise<IataAirportResponse>;\n}\n\nexport function createIataNamespace(client: HttpClient): IataNamespace {\n const airline = ((value: string) =>\n client.get<IataAirlineResponse>('/v0/iata/airline', { value })\n ) as IataAirlineNamespace;\n\n airline.list = () => client.get<IataAirlineListItem[]>('/v0/iata/airline/list');\n\n return {\n flight: (value: string) =>\n client.get<IataFlightResponse>('/v0/iata/flight', { value }),\n airline,\n airport: (value: string) =>\n client.get<IataAirportResponse>('/v0/iata/airport', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { IpResponse, MacResponse, NetPortResponse, NetPortListItem } from '../types/net.js';\n\nexport interface NetPortNamespace {\n (value: string): Promise<NetPortResponse>;\n list(): Promise<NetPortListItem[]>;\n}\n\nexport interface NetNamespace {\n ip(value: string): Promise<IpResponse>;\n mac(value: string): Promise<MacResponse>;\n port: NetPortNamespace;\n}\n\nexport function createNetNamespace(client: HttpClient): NetNamespace {\n const port = ((value: string) =>\n client.get<NetPortResponse>('/v0/net/port', { value })\n ) as NetPortNamespace;\n\n port.list = () => client.get<NetPortListItem[]>('/v0/net/port/list');\n\n return {\n ip: (value: string) => client.get<IpResponse>('/v0/net/ip', { value }),\n mac: (value: string) => client.get<MacResponse>('/v0/net/mac', { value }),\n port,\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { PeselResponse, RegonResponse, KrsResponse, CeidgResponse, PkdResponse } from '../types/pl.js';\n\nexport interface PlNamespace {\n pesel(value: string): Promise<PeselResponse>;\n regon(value: string, opts?: { lookup?: boolean }): Promise<RegonResponse>;\n krs(value: string, opts?: { lookup?: boolean }): Promise<KrsResponse>;\n ceidg(value: string, opts?: { lookup?: boolean }): Promise<CeidgResponse>;\n pkd(value: string): Promise<PkdResponse>;\n}\n\nexport function createPlNamespace(client: HttpClient): PlNamespace {\n return {\n pesel: (value: string) =>\n client.get<PeselResponse>('/v0/pl/pesel', { value }),\n regon: (value: string, opts?) =>\n client.get<RegonResponse>('/v0/pl/regon', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n krs: (value: string, opts?) =>\n client.get<KrsResponse>('/v0/pl/krs', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n ceidg: (value: string, opts?) =>\n client.get<CeidgResponse>('/v0/pl/ceidg', {\n value,\n lookup: opts?.lookup?.toString(),\n }),\n pkd: (value: string) =>\n client.get<PkdResponse>('/v0/pl/pkd', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { CnpjResponse, CpfResponse } from '../types/br.js';\n\nexport interface BrNamespace {\n cnpj(value: string): Promise<CnpjResponse>;\n cpf(value: string): Promise<CpfResponse>;\n}\n\nexport function createBrNamespace(client: HttpClient): BrNamespace {\n return {\n cnpj: (value: string) => client.get<CnpjResponse>('/v0/br/cnpj', { value }),\n cpf: (value: string) => client.get<CpfResponse>('/v0/br/cpf', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { AbnResponse } from '../types/au.js';\n\nexport interface AuNamespace {\n abn(value: string): Promise<AbnResponse>;\n}\n\nexport function createAuNamespace(client: HttpClient): AuNamespace {\n return {\n abn: (value: string) => client.get<AbnResponse>('/v0/au/abn', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NifResponse } from '../types/es.js';\n\nexport interface EsNamespace {\n nif(value: string): Promise<NifResponse>;\n}\n\nexport function createEsNamespace(client: HttpClient): EsNamespace {\n return {\n nif: (value: string) => client.get<NifResponse>('/v0/es/nif', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { GstinResponse } from '../types/in.js';\n\nexport interface InNamespace {\n gstin(value: string): Promise<GstinResponse>;\n}\n\nexport function createInNamespace(client: HttpClient): InNamespace {\n return {\n gstin: (value: string) => client.get<GstinResponse>('/v0/in/gstin', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { NpiResponse } from '../types/us.js';\n\nexport interface UsNamespace {\n npi(value: string): Promise<NpiResponse>;\n}\n\nexport function createUsNamespace(client: HttpClient): UsNamespace {\n return {\n npi: (value: string) => client.get<NpiResponse>('/v0/us/npi', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { SortCodeResponse } from '../types/gb.js';\n\nexport interface GbNamespace {\n sortCode(value: string): Promise<SortCodeResponse>;\n}\n\nexport function createGbNamespace(client: HttpClient): GbNamespace {\n return {\n sortCode: (value: string) => client.get<SortCodeResponse>('/v0/gb/sort-code', { value }),\n };\n}\n","import type { HttpClient } from '../client.js';\nimport type { HsCodeResponse, HsCodeListResponse } from '../types/hsCode.js';\n\nexport interface HsCodeNamespace {\n (value: string): Promise<HsCodeResponse>;\n list(opts?: { chapter?: string; level?: string }): Promise<HsCodeListResponse>;\n}\n\nexport function createHsCodeNamespace(client: HttpClient): HsCodeNamespace {\n const hsCode = ((value: string) =>\n client.get<HsCodeResponse>('/v0/hs-code', { value })\n ) as HsCodeNamespace;\n\n hsCode.list = (opts?: { chapter?: string; level?: string }) =>\n client.get<HsCodeListResponse>('/v0/hs-code/list', {\n chapter: opts?.chapter,\n level: opts?.level,\n });\n\n return hsCode;\n}\n","import type { HttpClient } from '../client.js';\nimport type { Gs1PrefixResponse, Gs1PrefixListResponse } from '../types/gs1Prefix.js';\n\nexport interface Gs1PrefixNamespace {\n (value: string): Promise<Gs1PrefixResponse>;\n list(): Promise<Gs1PrefixListResponse>;\n}\n\nexport function createGs1PrefixNamespace(client: HttpClient): Gs1PrefixNamespace {\n const gs1Prefix = ((value: string) =>\n client.get<Gs1PrefixResponse>('/v0/gs1-prefix', { value })\n ) as Gs1PrefixNamespace;\n\n gs1Prefix.list = () =>\n client.get<Gs1PrefixListResponse>('/v0/gs1-prefix/list');\n\n return gs1Prefix;\n}\n","import type { HttpClient } from '../client.js';\nimport type { IndustryResponse, IndustryListResponse } from '../types/industry.js';\n\nexport interface IndustryNamespace {\n (value: string, opts?: { system?: string }): Promise<IndustryResponse>;\n list(opts: { system: string; level?: string; parent?: string }): Promise<IndustryListResponse>;\n}\n\nexport function createIndustryNamespace(client: HttpClient): IndustryNamespace {\n const industry = ((value: string, opts?: { system?: string }) =>\n client.get<IndustryResponse>('/v0/industry', {\n value,\n system: opts?.system,\n })\n ) as IndustryNamespace;\n\n industry.list = (opts: { system: string; level?: string; parent?: string }) =>\n client.get<IndustryListResponse>('/v0/industry/list', {\n system: opts.system,\n level: opts?.level,\n parent: opts?.parent,\n });\n\n return industry;\n}\n","import type { HttpClient } from '../client.js';\nimport type { TimezoneResponse, TimezoneListItem } from '../types/timezone.js';\n\nexport interface TimezoneNamespace {\n (value: string): Promise<TimezoneResponse>;\n list(opts?: { region?: string }): Promise<TimezoneListItem[]>;\n}\n\nexport function createTimezoneNamespace(client: HttpClient): TimezoneNamespace {\n const timezone = ((value: string) =>\n client.get<TimezoneResponse>('/v0/timezone', { value })\n ) as TimezoneNamespace;\n\n timezone.list = (opts?: { region?: string }) =>\n client.get<TimezoneListItem[]>('/v0/timezone/list', { region: opts?.region });\n\n return timezone;\n}\n","import type { HttpClient } from '../client.js';\nimport type { MimeTypeResponse, MimeTypeExtResponse, MimeTypeListItem } from '../types/mimeType.js';\n\nexport interface MimeTypeNamespace {\n (value: string): Promise<MimeTypeResponse>;\n ext(value: string): Promise<MimeTypeExtResponse>;\n list(opts?: { type?: string }): Promise<MimeTypeListItem[]>;\n}\n\nexport function createMimeTypeNamespace(client: HttpClient): MimeTypeNamespace {\n const mimeType = ((value: string) =>\n client.get<MimeTypeResponse>('/v0/mime-type', { value })\n ) as MimeTypeNamespace;\n\n mimeType.ext = (value: string) =>\n client.get<MimeTypeExtResponse>('/v0/mime-type/ext', { value });\n\n mimeType.list = (opts?: { type?: string }) =>\n client.get<MimeTypeListItem[]>('/v0/mime-type/list', { type: opts?.type });\n\n return mimeType;\n}\n","import type { HttpClient } from '../client.js';\nimport type { HttpStatusResponse, HttpStatusListItem } from '../types/httpStatus.js';\n\nexport interface HttpStatusNamespace {\n (value: string): Promise<HttpStatusResponse>;\n list(): Promise<HttpStatusListItem[]>;\n}\n\nexport function createHttpStatusNamespace(client: HttpClient): HttpStatusNamespace {\n const httpStatus = ((value: string) =>\n client.get<HttpStatusResponse>('/v0/http-status', { value })\n ) as HttpStatusNamespace;\n\n httpStatus.list = () =>\n client.get<HttpStatusListItem[]>('/v0/http-status/list');\n\n return httpStatus;\n}\n","import type { HttpClient } from '../client.js';\nimport type { SwiftMtResponse, SwiftMtListItem } from '../types/swiftMt.js';\n\nexport interface SwiftMtNamespace {\n (value: string): Promise<SwiftMtResponse>;\n list(opts?: { category?: number }): Promise<SwiftMtListItem[]>;\n}\n\nexport function createSwiftMtNamespace(client: HttpClient): SwiftMtNamespace {\n const swiftMt = ((value: string) =>\n client.get<SwiftMtResponse>('/v0/swift-mt', { value })\n ) as SwiftMtNamespace;\n\n swiftMt.list = (opts?: { category?: number }) =>\n client.get<SwiftMtListItem[]>('/v0/swift-mt/list', { category: opts?.category?.toString() });\n\n return swiftMt;\n}\n","import type { HttpClient } from '../client.js';\nimport type { LocodeResponse, LocodeListItem } from '../types/locode.js';\n\nexport interface LocodeNamespace {\n (value: string): Promise<LocodeResponse>;\n list(opts: { country: string }): Promise<LocodeListItem[]>;\n}\n\nexport function createLocodeNamespace(client: HttpClient): LocodeNamespace {\n const locode = ((value: string) =>\n client.get<LocodeResponse>('/v0/locode', { value })\n ) as LocodeNamespace;\n\n locode.list = (opts: { country: string }) =>\n client.get<LocodeListItem[]>('/v0/locode/list', { country: opts.country });\n\n return locode;\n}\n","import { HttpClient } from './client.js';\nimport type { IsValidConfig } from './client.js';\nimport { createLeiNamespace } from './namespaces/lei.js';\nimport type { LeiNamespace } from './namespaces/lei.js';\nimport { createCountryNamespace } from './namespaces/country.js';\nimport type { CountryNamespace } from './namespaces/country.js';\nimport { createCurrencyNamespace } from './namespaces/currency.js';\nimport type { CurrencyNamespace } from './namespaces/currency.js';\nimport { createLanguageNamespace } from './namespaces/language.js';\nimport type { LanguageNamespace } from './namespaces/language.js';\nimport { createIataNamespace } from './namespaces/iata.js';\nimport type { IataNamespace } from './namespaces/iata.js';\nimport { createNetNamespace } from './namespaces/net.js';\nimport type { NetNamespace } from './namespaces/net.js';\nimport { createPlNamespace } from './namespaces/pl.js';\nimport type { PlNamespace } from './namespaces/pl.js';\nimport { createBrNamespace } from './namespaces/br.js';\nimport type { BrNamespace } from './namespaces/br.js';\nimport { createAuNamespace } from './namespaces/au.js';\nimport type { AuNamespace } from './namespaces/au.js';\nimport { createEsNamespace } from './namespaces/es.js';\nimport type { EsNamespace } from './namespaces/es.js';\nimport { createInNamespace } from './namespaces/in.js';\nimport type { InNamespace } from './namespaces/in.js';\nimport { createUsNamespace } from './namespaces/us.js';\nimport type { UsNamespace } from './namespaces/us.js';\nimport { createGbNamespace } from './namespaces/gb.js';\nimport type { GbNamespace } from './namespaces/gb.js';\nimport { createHsCodeNamespace } from './namespaces/hsCode.js';\nimport type { HsCodeNamespace } from './namespaces/hsCode.js';\nimport { createGs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nimport { createIndustryNamespace } from './namespaces/industry.js';\nimport type { IndustryNamespace } from './namespaces/industry.js';\nimport { createTimezoneNamespace } from './namespaces/timezone.js';\nimport type { TimezoneNamespace } from './namespaces/timezone.js';\nimport { createMimeTypeNamespace } from './namespaces/mimeType.js';\nimport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nimport { createHttpStatusNamespace } from './namespaces/httpStatus.js';\nimport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nimport { createSwiftMtNamespace } from './namespaces/swiftMt.js';\nimport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nimport { createLocodeNamespace } from './namespaces/locode.js';\nimport type { LocodeNamespace } from './namespaces/locode.js';\nimport type {\n EmailResponse, IbanResponse, IsinResponse, DtiResponse, VatResponse,\n GpsResponse, PhoneResponse, UrlResponse, EanResponse, IsbnResponse,\n IssnResponse, BicResponse, CusipResponse, CfiResponse, MicResponse,\n NutsResponse, UuidResponse, JwtResponse, VinResponse, ImeiResponse,\n SemverResponse, ColorResponse, BooleanResponse, DateResponse,\n BtcAddressResponse, PostalCodeResponse, AbaResponse, ContainerCodeResponse,\n SsccResponse, GlnResponse, QrResponse, CreditCardResponse,\n CasResponse, EoriResponse, OrcidResponse, DoiResponse, BarcodeResponse,\n Base64Response, EthAddressResponse, CronResponse, DomainResponse, RegexResponse,\n DunsResponse, TimestampResponse,\n} from './types/simple.js';\n\nexport class IsValid {\n private readonly client: HttpClient;\n\n readonly lei: LeiNamespace;\n readonly country: CountryNamespace;\n readonly currency: CurrencyNamespace;\n readonly language: LanguageNamespace;\n readonly iata: IataNamespace;\n readonly net: NetNamespace;\n readonly pl: PlNamespace;\n readonly br: BrNamespace;\n readonly au: AuNamespace;\n readonly es: EsNamespace;\n readonly in: InNamespace;\n readonly us: UsNamespace;\n readonly gb: GbNamespace;\n readonly hsCode: HsCodeNamespace;\n readonly gs1Prefix: Gs1PrefixNamespace;\n readonly industry: IndustryNamespace;\n readonly timezone: TimezoneNamespace;\n readonly mimeType: MimeTypeNamespace;\n readonly httpStatus: HttpStatusNamespace;\n readonly swiftMt: SwiftMtNamespace;\n readonly locode: LocodeNamespace;\n\n constructor(config: IsValidConfig) {\n this.client = new HttpClient(config);\n\n this.lei = createLeiNamespace(this.client);\n this.country = createCountryNamespace(this.client);\n this.currency = createCurrencyNamespace(this.client);\n this.language = createLanguageNamespace(this.client);\n this.iata = createIataNamespace(this.client);\n this.net = createNetNamespace(this.client);\n this.pl = createPlNamespace(this.client);\n this.br = createBrNamespace(this.client);\n this.au = createAuNamespace(this.client);\n this.es = createEsNamespace(this.client);\n this.in = createInNamespace(this.client);\n this.us = createUsNamespace(this.client);\n this.gb = createGbNamespace(this.client);\n this.hsCode = createHsCodeNamespace(this.client);\n this.gs1Prefix = createGs1PrefixNamespace(this.client);\n this.industry = createIndustryNamespace(this.client);\n this.timezone = createTimezoneNamespace(this.client);\n this.mimeType = createMimeTypeNamespace(this.client);\n this.httpStatus = createHttpStatusNamespace(this.client);\n this.swiftMt = createSwiftMtNamespace(this.client);\n this.locode = createLocodeNamespace(this.client);\n }\n\n // --- Simple endpoints ---\n\n email(value: string, opts?: { checkMx?: boolean }): Promise<EmailResponse> {\n return this.client.get('/v0/email', { value, checkMx: opts?.checkMx?.toString() });\n }\n\n iban(value: string, opts?: { countryCode?: string }): Promise<IbanResponse> {\n return this.client.get('/v0/iban', { value, countryCode: opts?.countryCode });\n }\n\n isin(value: string): Promise<IsinResponse> {\n return this.client.get('/v0/isin', { value });\n }\n\n dti(value: string): Promise<DtiResponse> {\n return this.client.get('/v0/dti', { value });\n }\n\n vat(value: string, opts?: { countryCode?: string; checkVies?: boolean }): Promise<VatResponse> {\n return this.client.get('/v0/vat', {\n value,\n countryCode: opts?.countryCode,\n checkVies: opts?.checkVies?.toString(),\n });\n }\n\n gps(value: string): Promise<GpsResponse> {\n return this.client.get('/v0/gps', { value });\n }\n\n phone(value: string, opts?: { countryCode?: string }): Promise<PhoneResponse> {\n return this.client.get('/v0/phone', { value, countryCode: opts?.countryCode });\n }\n\n url(value: string): Promise<UrlResponse> {\n return this.client.get('/v0/url', { value });\n }\n\n ean(value: string): Promise<EanResponse> {\n return this.client.get('/v0/ean', { value });\n }\n\n isbn(value: string): Promise<IsbnResponse> {\n return this.client.get('/v0/isbn', { value });\n }\n\n issn(value: string): Promise<IssnResponse> {\n return this.client.get('/v0/issn', { value });\n }\n\n bic(value: string): Promise<BicResponse> {\n return this.client.get('/v0/bic', { value });\n }\n\n cusip(value: string): Promise<CusipResponse> {\n return this.client.get('/v0/cusip', { value });\n }\n\n cfi(value: string): Promise<CfiResponse> {\n return this.client.get('/v0/cfi', { value });\n }\n\n mic(value: string): Promise<MicResponse> {\n return this.client.get('/v0/mic', { value });\n }\n\n nuts(value: string): Promise<NutsResponse> {\n return this.client.get('/v0/nuts', { value });\n }\n\n uuid(value: string, opts?: { version?: number }): Promise<UuidResponse> {\n return this.client.get('/v0/uuid', { value, version: opts?.version?.toString() });\n }\n\n jwt(value: string): Promise<JwtResponse> {\n return this.client.get('/v0/jwt', { value });\n }\n\n vin(value: string): Promise<VinResponse> {\n return this.client.get('/v0/vin', { value });\n }\n\n imei(value: string): Promise<ImeiResponse> {\n return this.client.get('/v0/imei', { value });\n }\n\n semver(value: string): Promise<SemverResponse> {\n return this.client.get('/v0/semver', { value });\n }\n\n color(value: string): Promise<ColorResponse> {\n return this.client.get('/v0/color', { value });\n }\n\n boolean(value: string): Promise<BooleanResponse> {\n return this.client.get('/v0/boolean', { value });\n }\n\n date(value: string, opts?: { format?: string }): Promise<DateResponse> {\n return this.client.get('/v0/date', { value, format: opts?.format });\n }\n\n btcAddress(value: string): Promise<BtcAddressResponse> {\n return this.client.get('/v0/btc-address', { value });\n }\n\n postalCode(value: string, opts?: { countryCode?: string }): Promise<PostalCodeResponse> {\n return this.client.get('/v0/postal-code', { value, countryCode: opts?.countryCode });\n }\n\n aba(value: string): Promise<AbaResponse> {\n return this.client.get('/v0/aba', { value });\n }\n\n containerCode(value: string): Promise<ContainerCodeResponse> {\n return this.client.get('/v0/container-code', { value });\n }\n\n sscc(value: string): Promise<SsccResponse> {\n return this.client.get('/v0/sscc', { value });\n }\n\n gln(value: string): Promise<GlnResponse> {\n return this.client.get('/v0/gln', { value });\n }\n\n qr(value: string): Promise<QrResponse> {\n return this.client.get('/v0/qr', { value });\n }\n\n creditCard(number: string): Promise<CreditCardResponse> {\n return this.client.post('/v0/credit-card', { number });\n }\n\n cas(value: string): Promise<CasResponse> {\n return this.client.get('/v0/cas', { value });\n }\n\n eori(value: string, opts?: { check?: boolean }): Promise<EoriResponse> {\n return this.client.get('/v0/eori', { value, check: opts?.check?.toString() });\n }\n\n orcid(value: string, opts?: { lookup?: boolean }): Promise<OrcidResponse> {\n return this.client.get('/v0/orcid', { value, lookup: opts?.lookup?.toString() });\n }\n\n doi(value: string, opts?: { lookup?: boolean }): Promise<DoiResponse> {\n return this.client.get('/v0/doi', { value, lookup: opts?.lookup?.toString() });\n }\n\n barcode(value: string, opts?: { type?: string }): Promise<BarcodeResponse> {\n return this.client.get('/v0/barcode', { value, type: opts?.type });\n }\n\n base64(value: string): Promise<Base64Response> {\n return this.client.get('/v0/base64', { value });\n }\n\n ethAddress(value: string): Promise<EthAddressResponse> {\n return this.client.get('/v0/eth-address', { value });\n }\n\n cron(value: string): Promise<CronResponse> {\n return this.client.get('/v0/cron', { value });\n }\n\n domain(value: string): Promise<DomainResponse> {\n return this.client.get('/v0/domain', { value });\n }\n\n regex(pattern: string, opts?: { flags?: string }): Promise<RegexResponse> {\n return this.client.post('/v0/regex', { pattern, flags: opts?.flags });\n }\n\n duns(value: string, opts?: { lookup?: boolean }): Promise<DunsResponse> {\n return this.client.get('/v0/duns', { value, lookup: opts?.lookup?.toString() });\n }\n\n timestamp(value: string): Promise<TimestampResponse> {\n return this.client.get('/v0/timestamp', { value });\n }\n}\n\nexport function createClient(config: IsValidConfig): IsValid {\n return new IsValid(config);\n}\n\nexport { IsValidError, IsValidAuthError, IsValidRateLimitError } from './errors.js';\nexport type { IsValidConfig, RetryConfig } from './client.js';\nexport * from './types/index.js';\n\nexport type { LeiNamespace } from './namespaces/lei.js';\nexport type { CountryNamespace } from './namespaces/country.js';\nexport type { CurrencyNamespace } from './namespaces/currency.js';\nexport type { LanguageNamespace } from './namespaces/language.js';\nexport type { IataNamespace, IataAirlineNamespace } from './namespaces/iata.js';\nexport type { NetNamespace } from './namespaces/net.js';\nexport type { PlNamespace } from './namespaces/pl.js';\nexport type { BrNamespace } from './namespaces/br.js';\nexport type { AuNamespace } from './namespaces/au.js';\nexport type { EsNamespace } from './namespaces/es.js';\nexport type { InNamespace } from './namespaces/in.js';\nexport type { UsNamespace } from './namespaces/us.js';\nexport type { GbNamespace } from './namespaces/gb.js';\nexport type { HsCodeNamespace } from './namespaces/hsCode.js';\nexport type { Gs1PrefixNamespace } from './namespaces/gs1Prefix.js';\nexport type { IndustryNamespace } from './namespaces/industry.js';\nexport type { TimezoneNamespace } from './namespaces/timezone.js';\nexport type { MimeTypeNamespace } from './namespaces/mimeType.js';\nexport type { HttpStatusNamespace } from './namespaces/httpStatus.js';\nexport type { SwiftMtNamespace } from './namespaces/swiftMt.js';\nexport type { LocodeNamespace } from './namespaces/locode.js';\nexport type { NetPortNamespace } from './namespaces/net.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isvalid-dev/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "TypeScript SDK for the isvalid.dev validation API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "isvalid.dev",
|
|
@@ -37,22 +37,44 @@
|
|
|
37
37
|
"sdk",
|
|
38
38
|
"isvalid",
|
|
39
39
|
"typescript",
|
|
40
|
+
"email",
|
|
40
41
|
"iban",
|
|
42
|
+
"vat",
|
|
43
|
+
"phone",
|
|
41
44
|
"lei",
|
|
42
45
|
"isin",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
46
|
+
"dti",
|
|
47
|
+
"bic",
|
|
48
|
+
"mic",
|
|
49
|
+
"cfi",
|
|
50
|
+
"cusip",
|
|
45
51
|
"eori",
|
|
46
52
|
"orcid",
|
|
47
53
|
"doi",
|
|
48
|
-
"
|
|
49
|
-
"
|
|
54
|
+
"duns",
|
|
55
|
+
"nuts",
|
|
56
|
+
"country",
|
|
57
|
+
"currency",
|
|
58
|
+
"language",
|
|
59
|
+
"iata",
|
|
60
|
+
"timezone",
|
|
61
|
+
"mime-type",
|
|
62
|
+
"http-status",
|
|
50
63
|
"swift-mt",
|
|
51
64
|
"locode",
|
|
52
65
|
"hs-code",
|
|
66
|
+
"gs1",
|
|
53
67
|
"industry",
|
|
54
68
|
"naics",
|
|
55
|
-
"nace"
|
|
69
|
+
"nace",
|
|
70
|
+
"postal-code",
|
|
71
|
+
"net-port",
|
|
72
|
+
"pesel",
|
|
73
|
+
"regon",
|
|
74
|
+
"krs",
|
|
75
|
+
"ceidg",
|
|
76
|
+
"pkd",
|
|
77
|
+
"timestamp"
|
|
56
78
|
],
|
|
57
79
|
"scripts": {
|
|
58
80
|
"build": "tsup",
|