@addresszen/openapi 3.6.0 → 3.8.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 +2 -4
- package/dist/openapi.cjs.map +1 -1
- package/dist/openapi.d.cts +197 -5
- package/dist/openapi.d.ts +197 -5
- package/dist/openapi.json +293 -22
- package/dist/openapi.yaml +282 -26
- package/openapi.ts +200 -5
- package/package.json +4 -3
package/openapi.ts
CHANGED
|
@@ -133,9 +133,23 @@ export interface paths {
|
|
|
133
133
|
*
|
|
134
134
|
* Note that the Content-Type returned will be CSV (text/csv). For a non 200 response, the `Content-Type` will revert to JSON with the error code and message embedded.
|
|
135
135
|
*
|
|
136
|
+
* The CSV has no header row. Columns, in order:
|
|
137
|
+
*
|
|
138
|
+
* 1. Timestamp (ISO 8601)
|
|
139
|
+
* 2. IP address the request was received from
|
|
140
|
+
* 3. Search term
|
|
141
|
+
* 4. URL the request originated from
|
|
142
|
+
* 5. Lookup type
|
|
143
|
+
* 6. Tags
|
|
144
|
+
* 7. Lookups consumed
|
|
145
|
+
* 8. Licensee name (sublicensing keys only)
|
|
146
|
+
* 9. Source IP address
|
|
147
|
+
*
|
|
148
|
+
* The source IP column carries the address forwarded in the `AZ-Source-IP` header. It is only recorded for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.
|
|
149
|
+
*
|
|
136
150
|
* ## Data Redaction
|
|
137
151
|
*
|
|
138
|
-
* Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
|
|
152
|
+
* Personally Identifiable Data (PII) caught in this your usage log (including IP, source IP, search term and URL data) will be redacted on a weekly basis.
|
|
139
153
|
*
|
|
140
154
|
* By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
|
|
141
155
|
*
|
|
@@ -359,6 +373,10 @@ export interface paths {
|
|
|
359
373
|
/** Cancels a licensee key. This renders a licensee unusable. This action can be reversed if you get in contact with us. */
|
|
360
374
|
delete: operations["DeleteLicensee"];
|
|
361
375
|
};
|
|
376
|
+
"/keys/{key}/licensees/{licensee}/regenerate-key": {
|
|
377
|
+
/** Regenerates the API key for a licensee. A new key is generated server-side and returned in the response. The previous key is invalidated immediately, so any integration using it must be updated to the new key. */
|
|
378
|
+
post: operations["RegenerateLicenseeKey"];
|
|
379
|
+
};
|
|
362
380
|
"/keys/{key}/configs": {
|
|
363
381
|
/** Lists configurations associated with a key */
|
|
364
382
|
get: operations["ListConfigs"];
|
|
@@ -1988,6 +2006,7 @@ export interface components {
|
|
|
1988
2006
|
* - `mois` (KOR) South Korea Dataset
|
|
1989
2007
|
* - `upujp` (JPN) Japan UPU Address File
|
|
1990
2008
|
* - `bev` (AUT) Austria Dataset
|
|
2009
|
+
* - `ban` (FRA) France BAN Dataset
|
|
1991
2010
|
* @enum {string}
|
|
1992
2011
|
*/
|
|
1993
2012
|
Dataset:
|
|
@@ -2021,7 +2040,8 @@ export interface components {
|
|
|
2021
2040
|
| "fodbosa"
|
|
2022
2041
|
| "mois"
|
|
2023
2042
|
| "upujp"
|
|
2024
|
-
| "bev"
|
|
2043
|
+
| "bev"
|
|
2044
|
+
| "ban";
|
|
2025
2045
|
/**
|
|
2026
2046
|
* ISO Country Code (3)
|
|
2027
2047
|
* @description 3 letter country code (ISO 3166-1)
|
|
@@ -6731,6 +6751,105 @@ export interface components {
|
|
|
6731
6751
|
/** @description Name of the census district */
|
|
6732
6752
|
zaehlsprengelname: string;
|
|
6733
6753
|
};
|
|
6754
|
+
BanAddress: {
|
|
6755
|
+
id: components["schemas"]["ID"];
|
|
6756
|
+
/** @enum {string} */
|
|
6757
|
+
dataset: "ban";
|
|
6758
|
+
/**
|
|
6759
|
+
* @description 3 letter country code (ISO 3166-1)
|
|
6760
|
+
*
|
|
6761
|
+
* @enum {undefined}
|
|
6762
|
+
*/
|
|
6763
|
+
country_iso: "FRA";
|
|
6764
|
+
/**
|
|
6765
|
+
* @description 2 letter country code (ISO 3166-1)
|
|
6766
|
+
*
|
|
6767
|
+
* @enum {string}
|
|
6768
|
+
*/
|
|
6769
|
+
country_iso_2: "FR";
|
|
6770
|
+
/**
|
|
6771
|
+
* @description Full country names (ISO 3166)
|
|
6772
|
+
*
|
|
6773
|
+
* @enum {string}
|
|
6774
|
+
*/
|
|
6775
|
+
country: "France";
|
|
6776
|
+
/**
|
|
6777
|
+
* @description Language represented by 2 letter ISO Code (639-1)
|
|
6778
|
+
*
|
|
6779
|
+
* @enum {undefined}
|
|
6780
|
+
*/
|
|
6781
|
+
language: "fr";
|
|
6782
|
+
/**
|
|
6783
|
+
* @description The house number of the address.
|
|
6784
|
+
*
|
|
6785
|
+
* Can be empty string `""` if not present.
|
|
6786
|
+
*
|
|
6787
|
+
* @example 8
|
|
6788
|
+
*/
|
|
6789
|
+
address: string;
|
|
6790
|
+
/**
|
|
6791
|
+
* @description First address line (house number, suffix, and street name).
|
|
6792
|
+
*
|
|
6793
|
+
* Can be `null` if not present.
|
|
6794
|
+
*
|
|
6795
|
+
* @example 8 bis avenue des Champs-Élysées
|
|
6796
|
+
*/
|
|
6797
|
+
line_1: string | null;
|
|
6798
|
+
/**
|
|
6799
|
+
* @description Second address line (postcode and municipality name).
|
|
6800
|
+
*
|
|
6801
|
+
* Can be `null` if not present.
|
|
6802
|
+
*
|
|
6803
|
+
* @example 75008 Paris
|
|
6804
|
+
*/
|
|
6805
|
+
line_2: string | null;
|
|
6806
|
+
longitude: components["schemas"]["Longitude"];
|
|
6807
|
+
latitude: components["schemas"]["Latitude"];
|
|
6808
|
+
/** @description FANTOIR street identifier */
|
|
6809
|
+
id_fantoir: string | null;
|
|
6810
|
+
/** @description House number */
|
|
6811
|
+
numero: number | null;
|
|
6812
|
+
/** @description House number suffix / répétition (`bis`, `ter`, `quater`, etc.) */
|
|
6813
|
+
rep: string | null;
|
|
6814
|
+
/** @description Street name */
|
|
6815
|
+
nom_voie: string;
|
|
6816
|
+
/** @description 5-digit postal code */
|
|
6817
|
+
code_postal: string | null;
|
|
6818
|
+
/** @description INSEE commune code (2-digit département + 3-digit commune) */
|
|
6819
|
+
code_insee: string;
|
|
6820
|
+
/** @description Municipality name */
|
|
6821
|
+
nom_commune: string;
|
|
6822
|
+
/** @description INSEE code of the pre-fusion commune (for merged municipalities) */
|
|
6823
|
+
code_insee_ancienne_commune: string | null;
|
|
6824
|
+
/** @description Name of the pre-fusion commune (for merged municipalities) */
|
|
6825
|
+
nom_ancienne_commune: string | null;
|
|
6826
|
+
/** @description Lambert 93 easting coordinate */
|
|
6827
|
+
x: string | null;
|
|
6828
|
+
/** @description Lambert 93 northing coordinate */
|
|
6829
|
+
y: string | null;
|
|
6830
|
+
/** @description Longitude (WGS84) as returned from source data */
|
|
6831
|
+
lon: string | null;
|
|
6832
|
+
/** @description Latitude (WGS84) as returned from source data */
|
|
6833
|
+
lat: string | null;
|
|
6834
|
+
/** @description Positional accuracy type (`entrée`, `bâtiment`, `parcelle`, `délivrance postale`, etc.) */
|
|
6835
|
+
type_position: string | null;
|
|
6836
|
+
/** @description Address alias */
|
|
6837
|
+
alias: string | null;
|
|
6838
|
+
/** @description Lieu-dit (named place) label */
|
|
6839
|
+
nom_ld: string | null;
|
|
6840
|
+
/** @description Postal routing label */
|
|
6841
|
+
libelle_acheminement: string | null;
|
|
6842
|
+
/** @description AFNOR-normalised street name */
|
|
6843
|
+
nom_afnor: string | null;
|
|
6844
|
+
/** @description Source of position data (`commune`, `IGN`, etc.) */
|
|
6845
|
+
source_position: string | null;
|
|
6846
|
+
/** @description Source of street name data */
|
|
6847
|
+
source_nom_voie: string | null;
|
|
6848
|
+
/** @description Whether the municipality has certified this address */
|
|
6849
|
+
certification_commune: boolean | null;
|
|
6850
|
+
/** @description Cadastral parcel reference(s) */
|
|
6851
|
+
cad_parcelles: string | null;
|
|
6852
|
+
};
|
|
6734
6853
|
/**
|
|
6735
6854
|
* Global Address
|
|
6736
6855
|
* @description Global (non-UK) address in the UK address format
|
|
@@ -6798,7 +6917,8 @@ export interface components {
|
|
|
6798
6917
|
| components["schemas"]["FodbosaAddress"]
|
|
6799
6918
|
| components["schemas"]["MoisAddress"]
|
|
6800
6919
|
| components["schemas"]["UpujpAddress"]
|
|
6801
|
-
| components["schemas"]["BevAddress"]
|
|
6920
|
+
| components["schemas"]["BevAddress"]
|
|
6921
|
+
| components["schemas"]["BanAddress"];
|
|
6802
6922
|
/**
|
|
6803
6923
|
* @description Not available for non-UK addresses
|
|
6804
6924
|
* @enum {string}
|
|
@@ -7485,6 +7605,11 @@ export interface components {
|
|
|
7485
7605
|
* @example true
|
|
7486
7606
|
*/
|
|
7487
7607
|
bev: boolean;
|
|
7608
|
+
/**
|
|
7609
|
+
* @description France: BAN (Base Adresse Nationale)
|
|
7610
|
+
* @example true
|
|
7611
|
+
*/
|
|
7612
|
+
ban: boolean;
|
|
7488
7613
|
/**
|
|
7489
7614
|
* @description UK GBR Cleanse
|
|
7490
7615
|
* @example true
|
|
@@ -7563,6 +7688,11 @@ export interface components {
|
|
|
7563
7688
|
* @default false
|
|
7564
7689
|
*/
|
|
7565
7690
|
ip_forwarding: boolean;
|
|
7691
|
+
/**
|
|
7692
|
+
* @description Whether the key is enrolled in the premier support programme and monitored closely by our devops team. Read-only; managed by our team.
|
|
7693
|
+
* @default false
|
|
7694
|
+
*/
|
|
7695
|
+
premier_support: boolean;
|
|
7566
7696
|
};
|
|
7567
7697
|
/** API Key Details Response */
|
|
7568
7698
|
ApiKeyDetailsResponse: {
|
|
@@ -7777,6 +7907,11 @@ export interface components {
|
|
|
7777
7907
|
* @example true
|
|
7778
7908
|
*/
|
|
7779
7909
|
bev?: boolean;
|
|
7910
|
+
/**
|
|
7911
|
+
* @description France: BAN (Base Adresse Nationale)
|
|
7912
|
+
* @example true
|
|
7913
|
+
*/
|
|
7914
|
+
ban?: boolean;
|
|
7780
7915
|
/**
|
|
7781
7916
|
* @description UK AddressBase dataset
|
|
7782
7917
|
* @example false
|
|
@@ -8753,7 +8888,8 @@ export interface components {
|
|
|
8753
8888
|
| components["schemas"]["FodbosaAddress"]
|
|
8754
8889
|
| components["schemas"]["MoisAddress"]
|
|
8755
8890
|
| components["schemas"]["UpujpAddress"]
|
|
8756
|
-
| components["schemas"]["BevAddress"]
|
|
8891
|
+
| components["schemas"]["BevAddress"]
|
|
8892
|
+
| components["schemas"]["BanAddress"];
|
|
8757
8893
|
};
|
|
8758
8894
|
/** Address Retrieve Response (USA) */
|
|
8759
8895
|
UsaResolveAddressResponse: {
|
|
@@ -10507,9 +10643,23 @@ export interface operations {
|
|
|
10507
10643
|
*
|
|
10508
10644
|
* Note that the Content-Type returned will be CSV (text/csv). For a non 200 response, the `Content-Type` will revert to JSON with the error code and message embedded.
|
|
10509
10645
|
*
|
|
10646
|
+
* The CSV has no header row. Columns, in order:
|
|
10647
|
+
*
|
|
10648
|
+
* 1. Timestamp (ISO 8601)
|
|
10649
|
+
* 2. IP address the request was received from
|
|
10650
|
+
* 3. Search term
|
|
10651
|
+
* 4. URL the request originated from
|
|
10652
|
+
* 5. Lookup type
|
|
10653
|
+
* 6. Tags
|
|
10654
|
+
* 7. Lookups consumed
|
|
10655
|
+
* 8. Licensee name (sublicensing keys only)
|
|
10656
|
+
* 9. Source IP address
|
|
10657
|
+
*
|
|
10658
|
+
* The source IP column carries the address forwarded in the `AZ-Source-IP` header. It is only recorded for keys with IP address forwarding enabled, and only when the header holds a valid IP address. It is empty otherwise.
|
|
10659
|
+
*
|
|
10510
10660
|
* ## Data Redaction
|
|
10511
10661
|
*
|
|
10512
|
-
* Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
|
|
10662
|
+
* Personally Identifiable Data (PII) caught in this your usage log (including IP, source IP, search term and URL data) will be redacted on a weekly basis.
|
|
10513
10663
|
*
|
|
10514
10664
|
* By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
|
|
10515
10665
|
*
|
|
@@ -11771,6 +11921,51 @@ export interface operations {
|
|
|
11771
11921
|
};
|
|
11772
11922
|
};
|
|
11773
11923
|
};
|
|
11924
|
+
/** Regenerates the API key for a licensee. A new key is generated server-side and returned in the response. The previous key is invalidated immediately, so any integration using it must be updated to the new key. */
|
|
11925
|
+
RegenerateLicenseeKey: {
|
|
11926
|
+
parameters: {
|
|
11927
|
+
path: {
|
|
11928
|
+
/**
|
|
11929
|
+
* **API Key**
|
|
11930
|
+
*
|
|
11931
|
+
* The API Key to retrieve. Begins `ak_`.
|
|
11932
|
+
*/
|
|
11933
|
+
key: components["parameters"]["ApiKeyPathParam"];
|
|
11934
|
+
/**
|
|
11935
|
+
* **Licensee Key**
|
|
11936
|
+
*
|
|
11937
|
+
* Uniquely identifies a licensee.
|
|
11938
|
+
*/
|
|
11939
|
+
licensee: components["parameters"]["LicenseePathParam"];
|
|
11940
|
+
};
|
|
11941
|
+
query: {
|
|
11942
|
+
/**
|
|
11943
|
+
* **Private User Token**
|
|
11944
|
+
*
|
|
11945
|
+
* A secret key used for sensitive operations on your account and API Keys.
|
|
11946
|
+
*
|
|
11947
|
+
* Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
|
|
11948
|
+
*
|
|
11949
|
+
* Typically beings `uk_...`
|
|
11950
|
+
*/
|
|
11951
|
+
user_token?: components["parameters"]["UserTokenParam"];
|
|
11952
|
+
};
|
|
11953
|
+
};
|
|
11954
|
+
responses: {
|
|
11955
|
+
/** Success */
|
|
11956
|
+
200: {
|
|
11957
|
+
content: {
|
|
11958
|
+
"application/json": components["schemas"]["LicenseeResponse"];
|
|
11959
|
+
};
|
|
11960
|
+
};
|
|
11961
|
+
/** Bad Request */
|
|
11962
|
+
400: {
|
|
11963
|
+
content: {
|
|
11964
|
+
"application/json": components["schemas"]["BadRequestResponse"];
|
|
11965
|
+
};
|
|
11966
|
+
};
|
|
11967
|
+
};
|
|
11968
|
+
};
|
|
11774
11969
|
/** Lists configurations associated with a key */
|
|
11775
11970
|
ListConfigs: {
|
|
11776
11971
|
parameters: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@addresszen/openapi",
|
|
3
3
|
"description": "AddressZen OpenAPI v3 specifications",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.8.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/openapi.cjs",
|
|
7
7
|
"module": "./dist/openapi.mjs",
|
|
@@ -19,8 +19,9 @@
|
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@redocly/cli": "~2.0.7",
|
|
21
21
|
"@stoplight/prism-cli": "~5.0.0",
|
|
22
|
+
"ts7": "npm:typescript@~7.0.2",
|
|
22
23
|
"tsup": "~8.5.1",
|
|
23
|
-
"typescript": "~5.
|
|
24
|
+
"typescript": "~5.9.3",
|
|
24
25
|
"wrangler": "~4.80.0",
|
|
25
26
|
"@atlas/tsconfig-base": "0.0.0",
|
|
26
27
|
"@atlas/tsup-config": "0.0.0"
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
"Address Lookup"
|
|
46
47
|
],
|
|
47
48
|
"scripts": {
|
|
48
|
-
"check-types": "
|
|
49
|
+
"check-types": "tsc --noEmit",
|
|
49
50
|
"build": "tsup && node stamp-version.mjs",
|
|
50
51
|
"build:site": "node stamp-version.mjs site-dist && cp site/index.html site/_headers site-dist/ && cp -R site/public site-dist/",
|
|
51
52
|
"clean": "rm -rf dist site-dist",
|