@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/dist/openapi.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
- version: 3.6.0
3
+ version: 3.8.0
4
4
  license:
5
5
  name: AGPLv3
6
6
  url: https://opensource.org/licenses/AGPL-3.0
@@ -110,13 +110,13 @@ tags:
110
110
  Sublicensing is ideal for platform vendors, who provide services to multiple clients who in turn each have their own users.
111
111
  - name: Configs
112
112
  description: |
113
- The Config resource allows users to assign serialised configuration data to API Keys. The payloads assigned to a Config object can later be retrieved to dynamically configure your integration.
113
+ The Config resource allows users to assign serialized configuration data to API Keys. The payloads assigned to a Config object can later be retrieved to dynamically configure your integration.
114
114
 
115
115
  Useful if you need to configure your integration remotely rather than editing code in situ.
116
116
  - name: suggestion
117
117
  x-displayName: Address Suggestion
118
118
  description: |
119
- Address Suggestions are simple, human readable representations of an address. This format is sufficient tfor a user to determine an address match in an address autocomplete interface. A second request must be made to the API to gather fully validated address.
119
+ Address Suggestions are simple, human readable representations of an address. This format is sufficient for a user to determine an address match in an address autocomplete interface. A second request must be made to the API to gather fully validated address.
120
120
 
121
121
  See our Address Search APIs for more information on address autocompletion.
122
122
 
@@ -633,7 +633,7 @@ paths:
633
633
  schema:
634
634
  $ref: '#/components/schemas/ApiKeyDetailsResponse'
635
635
  '401':
636
- description: Unauthorised
636
+ description: Unauthorized
637
637
  content:
638
638
  application/json:
639
639
  schema:
@@ -674,7 +674,7 @@ paths:
674
674
  schema:
675
675
  $ref: '#/components/schemas/BadRequestResponse'
676
676
  '401':
677
- description: Unauthorised
677
+ description: Unauthorized
678
678
  content:
679
679
  application/json:
680
680
  schema:
@@ -740,7 +740,7 @@ paths:
740
740
  description: |
741
741
  Reports lookup information on a key for paid lookups.
742
742
 
743
- This method requires a `user_token`, which can be found on your [accounts page](https://addresszen.com/account).
743
+ This method requires a `user_token`, which can be found on your [accounts page](https://account.addresszen.com).
744
744
 
745
745
  A maximum interval of 90 days can be provided for analysis. If no start or end date is provided, the last 21 days will be used as the default interval.
746
746
 
@@ -752,9 +752,23 @@ paths:
752
752
 
753
753
  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.
754
754
 
755
+ The CSV has no header row. Columns, in order:
756
+
757
+ 1. Timestamp (ISO 8601)
758
+ 2. IP address the request was received from
759
+ 3. Search term
760
+ 4. URL the request originated from
761
+ 5. Lookup type
762
+ 6. Tags
763
+ 7. Lookups consumed
764
+ 8. Licensee name (sublicensing keys only)
765
+ 9. Source IP address
766
+
767
+ 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.
768
+
755
769
  ## Data Redaction
756
770
 
757
- Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
771
+ 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.
758
772
 
759
773
  By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
760
774
 
@@ -771,10 +785,10 @@ paths:
771
785
  content:
772
786
  text/csv:
773
787
  example: |
774
- 2015-02-21T16:05:22.991Z,82.85.128.18,SW12AA,https://www.example.com/,Postcode Lookup,
775
- 2015-02-21T16:05:38.298Z,82.85.128.18,10 Downing Street London,https://www.example.com/,Address Lookup,CRM
776
- 2015-02-21T16:06:49.227Z,82.85.128.18,OX44PP,https://www.example.com/,Postcode Lookup,"Website,Live"
777
- 2015-02-21T16:07:02.706Z,82.85.128.18,PL9 9HE,https://www.example.com/,Postcode Lookup,
788
+ 2015-02-21T16:05:22.991Z,82.85.128.18,SW12AA,https://www.example.com/,Postcode Lookup,,1,,
789
+ 2015-02-21T16:05:38.298Z,82.85.128.18,10 Downing Street London,https://www.example.com/,Address Lookup,CRM,1,,
790
+ 2015-02-21T16:06:49.227Z,82.85.128.18,OX44PP,https://www.example.com/,Postcode Lookup,"Website,Live",1,,203.0.113.44
791
+ 2015-02-21T16:07:02.706Z,82.85.128.18,PL9 9HE,https://www.example.com/,Postcode Lookup,,2,Acme Ltd,203.0.113.44
778
792
  schema:
779
793
  type: string
780
794
  description: Success
@@ -904,7 +918,7 @@ paths:
904
918
  description: |
905
919
  The address verify API validates, corrects, and standardizes individual addresses based on USPS's Coding Accuracy Support System (CASS).
906
920
 
907
- The address verify API accepts the 3 combination of inputs:
921
+ The address verify API accepts the 3 combinations of inputs:
908
922
 
909
923
  - Free-form address submitted as a single string in `query`
910
924
  - Example: "123 Main St, Springfield, CO 81073-1119"
@@ -1876,6 +1890,30 @@ paths:
1876
1890
  application/json:
1877
1891
  schema:
1878
1892
  $ref: '#/components/schemas/BadRequestResponse'
1893
+ /keys/{key}/licensees/{licensee}/regenerate-key:
1894
+ post:
1895
+ tags:
1896
+ - Licensees
1897
+ summary: Regenerate Key
1898
+ description: 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.
1899
+ operationId: RegenerateLicenseeKey
1900
+ parameters:
1901
+ - $ref: '#/components/parameters/ApiKeyPathParam'
1902
+ - $ref: '#/components/parameters/LicenseePathParam'
1903
+ - $ref: '#/components/parameters/UserTokenParam'
1904
+ responses:
1905
+ '200':
1906
+ description: Success
1907
+ content:
1908
+ application/json:
1909
+ schema:
1910
+ $ref: '#/components/schemas/LicenseeResponse'
1911
+ '400':
1912
+ description: Bad Request
1913
+ content:
1914
+ application/json:
1915
+ schema:
1916
+ $ref: '#/components/schemas/BadRequestResponse'
1879
1917
  /keys/{key}/configs:
1880
1918
  get:
1881
1919
  tags:
@@ -2472,7 +2510,8 @@ components:
2472
2510
  maxLength: 30
2473
2511
  type: string
2474
2512
  description: |
2475
- **Filter by Town or City"
2513
+ **Filter by Town or City**
2514
+
2476
2515
  A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
2477
2516
  example: London
2478
2517
  paf_postcode:
@@ -2565,7 +2604,7 @@ components:
2565
2604
  paf_dependant_thoroughfare:
2566
2605
  title: Dependant Thoroughfare
2567
2606
  type: string
2568
- description: Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
2607
+ description: Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely identify a delivery point.
2569
2608
  maxLength: 80
2570
2609
  example: ''
2571
2610
  paf_building_number:
@@ -4368,6 +4407,7 @@ components:
4368
4407
  - `mois` (KOR) South Korea Dataset
4369
4408
  - `upujp` (JPN) Japan UPU Address File
4370
4409
  - `bev` (AUT) Austria Dataset
4410
+ - `ban` (FRA) France BAN Dataset
4371
4411
  enum:
4372
4412
  - paf
4373
4413
  - pafw
@@ -4400,6 +4440,7 @@ components:
4400
4440
  - mois
4401
4441
  - upujp
4402
4442
  - bev
4443
+ - ban
4403
4444
  CountryISO:
4404
4445
  title: ISO Country Code (3)
4405
4446
  type: string
@@ -5517,7 +5558,7 @@ components:
5517
5558
  gaeltacht:
5518
5559
  type: boolean
5519
5560
  description: |-
5520
- Gaeltact refers to a district where the Irish government recognises that the Irish language is the predominant language.
5561
+ Gaeltacht refers to a district where the Irish government recognizes that the Irish language is the predominant language.
5521
5562
 
5522
5563
  Returns `true` if address is in a Gaeltacht area and `false` if not.
5523
5564
  address_type:
@@ -10791,6 +10832,204 @@ components:
10791
10832
  type: string
10792
10833
  description: |
10793
10834
  Name of the census district
10835
+ BanAddress:
10836
+ required:
10837
+ - id
10838
+ - dataset
10839
+ - country
10840
+ - country_iso
10841
+ - country_iso_2
10842
+ - language
10843
+ - address
10844
+ - line_1
10845
+ - line_2
10846
+ - latitude
10847
+ - longitude
10848
+ - id_fantoir
10849
+ - numero
10850
+ - rep
10851
+ - nom_voie
10852
+ - code_postal
10853
+ - code_insee
10854
+ - nom_commune
10855
+ - code_insee_ancienne_commune
10856
+ - nom_ancienne_commune
10857
+ - x
10858
+ - 'y'
10859
+ - lon
10860
+ - lat
10861
+ - type_position
10862
+ - alias
10863
+ - nom_ld
10864
+ - libelle_acheminement
10865
+ - nom_afnor
10866
+ - source_position
10867
+ - source_nom_voie
10868
+ - certification_commune
10869
+ - cad_parcelles
10870
+ properties:
10871
+ id:
10872
+ $ref: '#/components/schemas/ID'
10873
+ dataset:
10874
+ type: string
10875
+ enum:
10876
+ - ban
10877
+ country_iso:
10878
+ description: |2
10879
+ 3 letter country code (ISO 3166-1)
10880
+ enum:
10881
+ - FRA
10882
+ country_iso_2:
10883
+ type: string
10884
+ description: |2
10885
+ 2 letter country code (ISO 3166-1)
10886
+ enum:
10887
+ - FR
10888
+ country:
10889
+ type: string
10890
+ description: |2
10891
+ Full country names (ISO 3166)
10892
+ enum:
10893
+ - France
10894
+ language:
10895
+ enum:
10896
+ - fr
10897
+ description: |
10898
+ Language represented by 2 letter ISO Code (639-1)
10899
+ address:
10900
+ type: string
10901
+ description: |
10902
+ The house number of the address.
10903
+
10904
+ Can be empty string `""` if not present.
10905
+ example: '8'
10906
+ line_1:
10907
+ type: string
10908
+ nullable: true
10909
+ description: |
10910
+ First address line (house number, suffix, and street name).
10911
+
10912
+ Can be `null` if not present.
10913
+ example: 8 bis avenue des Champs-Élysées
10914
+ line_2:
10915
+ type: string
10916
+ nullable: true
10917
+ description: |
10918
+ Second address line (postcode and municipality name).
10919
+
10920
+ Can be `null` if not present.
10921
+ example: 75008 Paris
10922
+ longitude:
10923
+ $ref: '#/components/schemas/Longitude'
10924
+ latitude:
10925
+ $ref: '#/components/schemas/Latitude'
10926
+ id_fantoir:
10927
+ type: string
10928
+ nullable: true
10929
+ description: |
10930
+ FANTOIR street identifier
10931
+ numero:
10932
+ type: integer
10933
+ nullable: true
10934
+ description: |
10935
+ House number
10936
+ rep:
10937
+ type: string
10938
+ nullable: true
10939
+ description: |
10940
+ House number suffix / répétition (`bis`, `ter`, `quater`, etc.)
10941
+ nom_voie:
10942
+ type: string
10943
+ description: |
10944
+ Street name
10945
+ code_postal:
10946
+ type: string
10947
+ nullable: true
10948
+ description: |
10949
+ 5-digit postal code
10950
+ code_insee:
10951
+ type: string
10952
+ description: |
10953
+ INSEE commune code (2-digit département + 3-digit commune)
10954
+ nom_commune:
10955
+ type: string
10956
+ description: |
10957
+ Municipality name
10958
+ code_insee_ancienne_commune:
10959
+ type: string
10960
+ nullable: true
10961
+ description: |
10962
+ INSEE code of the pre-fusion commune (for merged municipalities)
10963
+ nom_ancienne_commune:
10964
+ type: string
10965
+ nullable: true
10966
+ description: |
10967
+ Name of the pre-fusion commune (for merged municipalities)
10968
+ x:
10969
+ type: string
10970
+ nullable: true
10971
+ description: |
10972
+ Lambert 93 easting coordinate
10973
+ 'y':
10974
+ type: string
10975
+ nullable: true
10976
+ description: |
10977
+ Lambert 93 northing coordinate
10978
+ lon:
10979
+ type: string
10980
+ nullable: true
10981
+ description: |
10982
+ Longitude (WGS84) as returned from source data
10983
+ lat:
10984
+ type: string
10985
+ nullable: true
10986
+ description: |
10987
+ Latitude (WGS84) as returned from source data
10988
+ type_position:
10989
+ type: string
10990
+ nullable: true
10991
+ description: |
10992
+ Positional accuracy type (`entrée`, `bâtiment`, `parcelle`, `délivrance postale`, etc.)
10993
+ alias:
10994
+ type: string
10995
+ nullable: true
10996
+ description: |
10997
+ Address alias
10998
+ nom_ld:
10999
+ type: string
11000
+ nullable: true
11001
+ description: |
11002
+ Lieu-dit (named place) label
11003
+ libelle_acheminement:
11004
+ type: string
11005
+ nullable: true
11006
+ description: |
11007
+ Postal routing label
11008
+ nom_afnor:
11009
+ type: string
11010
+ nullable: true
11011
+ description: |
11012
+ AFNOR-normalised street name
11013
+ source_position:
11014
+ type: string
11015
+ nullable: true
11016
+ description: |
11017
+ Source of position data (`commune`, `IGN`, etc.)
11018
+ source_nom_voie:
11019
+ type: string
11020
+ nullable: true
11021
+ description: |
11022
+ Source of street name data
11023
+ certification_commune:
11024
+ type: boolean
11025
+ nullable: true
11026
+ description: |
11027
+ Whether the municipality has certified this address
11028
+ cad_parcelles:
11029
+ type: string
11030
+ nullable: true
11031
+ description: |
11032
+ Cadastral parcel reference(s)
10794
11033
  GbrGlobalAddress:
10795
11034
  title: Global Address
10796
11035
  description: Global (non-UK) address in the UK address format
@@ -10903,6 +11142,7 @@ components:
10903
11142
  - $ref: '#/components/schemas/MoisAddress'
10904
11143
  - $ref: '#/components/schemas/UpujpAddress'
10905
11144
  - $ref: '#/components/schemas/BevAddress'
11145
+ - $ref: '#/components/schemas/BanAddress'
10906
11146
  postcode_outward:
10907
11147
  type: string
10908
11148
  description: Not available for non-UK addresses
@@ -11391,9 +11631,9 @@ components:
11391
11631
  - Key has no lookups remaining
11392
11632
  - Daily limit has been reached on the key
11393
11633
  - Daily individual limit has been reached
11394
- - Key is not being used via an authorised URL
11634
+ - Key is not being used via an authorized URL
11395
11635
  - (Sublicensed key only) Key has a valid licensee attached
11396
- - (Sublicensed key only) Key is not being used via an authorised URL specified by licensee
11636
+ - (Sublicensed key only) Key is not being used via an authorized URL specified by licensee
11397
11637
  type: boolean
11398
11638
  example: true
11399
11639
  ApiKeyResponse:
@@ -11549,6 +11789,7 @@ components:
11549
11789
  - mois
11550
11790
  - upujp
11551
11791
  - bev
11792
+ - ban
11552
11793
  - gbrcleanse
11553
11794
  - uspscleanse
11554
11795
  properties:
@@ -11687,6 +11928,10 @@ components:
11687
11928
  type: boolean
11688
11929
  description: 'Austria: BEV Address File'
11689
11930
  example: true
11931
+ ban:
11932
+ type: boolean
11933
+ description: 'France: BAN (Base Adresse Nationale)'
11934
+ example: true
11690
11935
  gbrcleanse:
11691
11936
  type: boolean
11692
11937
  description: UK GBR Cleanse
@@ -11752,6 +11997,7 @@ components:
11752
11997
  - automated_topups
11753
11998
  - current_purchases
11754
11999
  - ip_forwarding
12000
+ - premier_support
11755
12001
  - datasets
11756
12002
  properties:
11757
12003
  name:
@@ -11795,6 +12041,10 @@ components:
11795
12041
  type: boolean
11796
12042
  default: false
11797
12043
  description: Accept IP addresses forwarded in the `AZ-Source-IP` header
12044
+ premier_support:
12045
+ type: boolean
12046
+ default: false
12047
+ description: Whether the key is enrolled in the premier support programme and monitored closely by our devops team. Read-only; managed by our team.
11798
12048
  ApiKeyDetailsResponse:
11799
12049
  title: API Key Details Response
11800
12050
  type: object
@@ -12021,6 +12271,10 @@ components:
12021
12271
  type: boolean
12022
12272
  description: 'Austria: BEV Address File'
12023
12273
  example: true
12274
+ ban:
12275
+ type: boolean
12276
+ description: 'France: BAN (Base Adresse Nationale)'
12277
+ example: true
12024
12278
  ab:
12025
12279
  type: boolean
12026
12280
  description: UK AddressBase dataset
@@ -13293,6 +13547,7 @@ components:
13293
13547
  - $ref: '#/components/schemas/MoisAddress'
13294
13548
  - $ref: '#/components/schemas/UpujpAddress'
13295
13549
  - $ref: '#/components/schemas/BevAddress'
13550
+ - $ref: '#/components/schemas/BanAddress'
13296
13551
  UsaResolveAddressResponse:
13297
13552
  title: Address Retrieve Response (USA)
13298
13553
  type: object
@@ -13920,7 +14175,7 @@ components:
13920
14175
  minimum: 0
13921
14176
  type: number
13922
14177
  format: int32
13923
- description: The number lookups performed by the licensee on the day represented b `licesees.daily.updatedAt`
14178
+ description: The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`
13924
14179
  updatedAt:
13925
14180
  type: string
13926
14181
  example: '2016-08-05T16:43:28.865Z'
@@ -14003,7 +14258,7 @@ components:
14003
14258
  type: string
14004
14259
  minimum: 0
14005
14260
  maximum: 4096
14006
- description: A serialised payload of up to `4096` characters
14261
+ description: A serialized payload of up to `4096` characters
14007
14262
  ConfigsResponse:
14008
14263
  title: Config List Response
14009
14264
  type: object
@@ -14053,7 +14308,7 @@ components:
14053
14308
  type: string
14054
14309
  minimum: 0
14055
14310
  maximum: 4096
14056
- description: A serialised payload of up to `4096` characters
14311
+ description: A serialized payload of up to `4096` characters
14057
14312
  ConfigResponse:
14058
14313
  title: Config Response
14059
14314
  type: object
@@ -14102,7 +14357,7 @@ components:
14102
14357
  type: string
14103
14358
  minimum: 0
14104
14359
  maximum: 4096
14105
- description: A serialised payload of up to `4096` characters
14360
+ description: A serialized payload of up to `4096` characters
14106
14361
  Email:
14107
14362
  title: Email Object
14108
14363
  type: object
@@ -14601,7 +14856,8 @@ components:
14601
14856
  schema:
14602
14857
  type: string
14603
14858
  description: |
14604
- ** Tags **
14859
+ **Tags**
14860
+
14605
14861
  A comma separated list of tags to query over.
14606
14862
 
14607
14863
  Useful if you want to specify the circumstances in which the request was made.
@@ -14633,9 +14889,9 @@ components:
14633
14889
 
14634
14890
  A secret key used for sensitive operations on your account and API Keys.
14635
14891
 
14636
- Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
14892
+ Your user token can be retrieved and managed from your [accounts page](https://account.addresszen.com).
14637
14893
 
14638
- Typically beings `uk_...`
14894
+ Typically begins `uk_...`
14639
14895
  example: uk_B59ScW1p1HHouf1VqclEPZUx
14640
14896
  StartParam:
14641
14897
  name: start
@@ -14761,7 +15017,7 @@ components:
14761
15017
  description: |
14762
15018
  **Filter by Bounding Box**
14763
15019
 
14764
- Restrict search to a geospatial box determined by the "top-left" and "bottom-right" gelocations.
15020
+ Restrict search to a geospatial box determined by the "top-left" and "bottom-right" geolocations.
14765
15021
  Only one geospatial box can be provided.
14766
15022
  example: 2.095,57.15,-2.096,57.14
14767
15023
  PostcodeOutwardParam:
@@ -14887,7 +15143,7 @@ components:
14887
15143
  description: |-
14888
15144
  **Bias by Outward Code**
14889
15145
  Boosts addresses with a matching outward code.
14890
- Outward code is the first have of a postcode. For instance, the outward code of `SW1A 2AA` is `SW1A`
15146
+ Outward code is the first half of a postcode. For instance, the outward code of `SW1A 2AA` is `SW1A`
14891
15147
  example: SW1A
14892
15148
  BiasPostcodeParam:
14893
15149
  name: bias_postcode