@addresszen/openapi 2.0.2 → 2.0.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.0.3](https://github.com/addresszen/openapi/compare/2.0.2...2.0.3) (2022-06-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** bump @ideal-postcodes/openapi from 2.0.1 to 2.1.1 ([#5](https://github.com/addresszen/openapi/issues/5)) ([493aacc](https://github.com/addresszen/openapi/commit/493aacc7b0d19cb1ac1eed3dfe4d7740a88b3044))
7
+
1
8
  ## [2.0.2](https://github.com/addresszen/openapi/compare/2.0.1...2.0.2) (2022-04-21)
2
9
 
3
10
 
package/dist/index.html CHANGED
@@ -20,9 +20,9 @@
20
20
  font-family: "Fira Code", monospace;
21
21
  }
22
22
  .menu-content {
23
- background: #05326d !important;
24
- background: -webkit-linear-gradient(right, #07489e, #05326d) !important;
25
- background: linear-gradient(to left, #07489e, #05326d) !important;
23
+ background: #7534d0 !important;
24
+ background: -webkit-linear-gradient(left, #6629bd, #673ba5) !important;
25
+ background: linear-gradient(to right, #6629bd, #673ba5) !important;
26
26
  }
27
27
  </style>
28
28
  </head>
@@ -31,7 +31,7 @@
31
31
  <script src="https://cdn.jsdelivr.net/npm/redoc@latest/bundles/redoc.standalone.js"> </script>
32
32
  <script>
33
33
  var container = document.getElementById('redoc');
34
- Redoc.init("./openapi.json", {"htmlTemplate":"./openapi/index.html","theme":{"sidebar":{"textColor":"#d5dae6","activeBgColor":"#07489e","backgroundColor":"#05326d","activeTextColor":"#FFFFFF"},"typography":{"code":{"fontFamily":"Fira Code, monospace","fontSize":"13px","backgroundColor":"rgba(38, 50, 56, 0.05)","color":"#e53935"},"headings":{"fontFamily":"Lato, sans-serif"},"fontFamily":"Lato, sans-serif"},"colors":{"primary":{"main":"#32329f"}}}}, container)
34
+ Redoc.init("./openapi.json", {"htmlTemplate":"./openapi/index.html","theme":{"sidebar":{"textColor":"#f8f8ff","activeBgColor":"#000000","backgroundColor":"#6629bd","activeTextColor":"#f8f8ff"},"typography":{"code":{"fontFamily":"Fira Code, monospace","fontSize":"13px","backgroundColor":"rgba(38, 50, 56, 0.05)","color":"#e53935"},"headings":{"fontFamily":"Lato, sans-serif"},"fontFamily":"Lato, sans-serif"},"colors":{"primary":{"main":"#7534d0"}}}}, container)
35
35
  </script>
36
36
  </body>
37
37
  </html>
package/dist/openapi.d.ts CHANGED
@@ -113,7 +113,7 @@ export interface paths {
113
113
  /**
114
114
  * Reports lookup information on a key for paid lookups.
115
115
  *
116
- * This method requires a `user_token`, which can be found on your [accounts page](https://ideal-postcodes.co.uk/account).
116
+ * This method requires a `user_token`, which can be found on your [accounts page](https://addresszen.com/account).
117
117
  *
118
118
  * 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.
119
119
  *
@@ -553,7 +553,7 @@ export interface components {
553
553
  * @description Indicates the provenance of an address
554
554
  * @enum {string}
555
555
  */
556
- Dataset: "paf" | "mr" | "nyb" | "usps";
556
+ Dataset: "paf" | "pafw" | "mr" | "nyb" | "usps";
557
557
  /**
558
558
  * ISO Country Code
559
559
  * @description 3 letter ISO country code
@@ -562,7 +562,9 @@ export interface components {
562
562
  CountryISO: "GBR" | "IMN" | "JEY" | "GGY" | "USA" | "PRI" | "GUM";
563
563
  /**
564
564
  * Postcode Address File Address
565
- * @description Standard UK Address.
565
+ * @description Standard UK Address. Also known as a Postcode Address File (PAF) address is defined by Royal Mail and updated on a daily cadence.
566
+ *
567
+ * A PAF Address represents a deliverable endpoint.
566
568
  */
567
569
  PafAddress: {
568
570
  postcode: components["schemas"]["Postcode"];
@@ -608,7 +610,9 @@ export interface components {
608
610
  };
609
611
  /**
610
612
  * Multiple Residence Address
611
- * @description Subdivision of a Postcode Address File address. Does not have its own delivery point.
613
+ * @description Subdivision of a Postcode Address File address. Also known as a Multiple Residence or Multiple Occupancy address.
614
+ *
615
+ * A Multiple Residence address does not have its own deliverable endpoint. Instead it relies on the deliverable endpoint of a parent address, where the parent address can be found on the main Postcode Address File.
612
616
  */
613
617
  MrAddress: components["schemas"]["PafAddress"] & {
614
618
  /** @enum {undefined} */
@@ -616,7 +620,9 @@ export interface components {
616
620
  };
617
621
  /**
618
622
  * Not Yet Built Address
619
- * @description UK premise under construction
623
+ * @description A UK premise under construction and currently not occupied.
624
+ *
625
+ * This dataset is updated by Royal Mail on a monthly cadence.
620
626
  */
621
627
  NybAddress: components["schemas"]["PafAddress"] & {
622
628
  /** @enum {undefined} */
@@ -710,7 +716,7 @@ export interface components {
710
716
  * User Token
711
717
  * @description A secret key used for sensitive operations on your account and API Keys.
712
718
  *
713
- * Your user token can be retrieved and managed from your [accounts page](https://ideal-postcodes.co.uk/account).
719
+ * Your user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).
714
720
  *
715
721
  * Typically beings `uk_...`
716
722
  *
@@ -1086,6 +1092,8 @@ export interface components {
1086
1092
  };
1087
1093
  /** Not Yet Built Address Autocompletion Hit */
1088
1094
  NybSuggestion: components["schemas"]["PafSuggestion"];
1095
+ /** Welsh Postcode Address File Address Autocompletion Hit */
1096
+ PafwSuggestion: components["schemas"]["PafSuggestion"];
1089
1097
  /**
1090
1098
  * Global Address Autocompletion Suggestion
1091
1099
  * @description Represents an address suggestion for any address in the world
@@ -1108,7 +1116,7 @@ export interface components {
1108
1116
  /** Address Autocomplete Response */
1109
1117
  AutocompleteResponse: {
1110
1118
  result: {
1111
- hits: (components["schemas"]["PafSuggestion"] | components["schemas"]["MrSuggestion"] | components["schemas"]["NybSuggestion"] | components["schemas"]["GlobalAddressSuggestion"])[];
1119
+ hits: (components["schemas"]["PafSuggestion"] | components["schemas"]["MrSuggestion"] | components["schemas"]["NybSuggestion"] | components["schemas"]["PafwSuggestion"] | components["schemas"]["GlobalAddressSuggestion"])[];
1112
1120
  };
1113
1121
  /**
1114
1122
  * Format: int32
@@ -1118,6 +1126,14 @@ export interface components {
1118
1126
  /** @enum {string} */
1119
1127
  message: "Success";
1120
1128
  };
1129
+ /**
1130
+ * Welsh PAF Address
1131
+ * @description Welsh language alternative for a PAF Address
1132
+ */
1133
+ WelshPafAddress: components["schemas"]["PafAddress"] & {
1134
+ /** @enum {undefined} */
1135
+ dataset?: components["schemas"]["Dataset"];
1136
+ };
1121
1137
  /**
1122
1138
  * Global Address
1123
1139
  * @description Global (non-UK) address in the UK address format
@@ -1229,7 +1245,7 @@ export interface components {
1229
1245
  code: 2000;
1230
1246
  /** @enum {string} */
1231
1247
  message: "Success";
1232
- result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["GbrGlobalAddress"];
1248
+ result: components["schemas"]["PafAddress"] | components["schemas"]["MrAddress"] | components["schemas"]["WelshPafAddress"] | components["schemas"]["NybAddress"] | components["schemas"]["GbrGlobalAddress"];
1233
1249
  };
1234
1250
  /**
1235
1251
  * USA Dataset
@@ -2203,7 +2219,7 @@ export interface operations {
2203
2219
  /**
2204
2220
  * Reports lookup information on a key for paid lookups.
2205
2221
  *
2206
- * This method requires a `user_token`, which can be found on your [accounts page](https://ideal-postcodes.co.uk/account).
2222
+ * This method requires a `user_token`, which can be found on your [accounts page](https://addresszen.com/account).
2207
2223
  *
2208
2224
  * 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.
2209
2225
  *
package/dist/openapi.json CHANGED
@@ -1,27 +1,27 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "2.0.0",
4
+ "version": "2.1.1",
5
5
  "license": {
6
6
  "name": "AGPLv3",
7
7
  "url": "https://opensource.org/licenses/AGPL-3.0"
8
8
  },
9
- "title": "API Reference - Ideal Postcodes",
10
- "termsOfService": "https://terms.ideal-postcodes.co.uk",
11
- "description": "# Getting Started\n\n## Overview\n\n### Access\n\nAll API methods are either a `GET`, `POST` or `OPTIONS` request.\n\nThe API communicates over both HTTPS and plain HTTP using IPv4 and IPv6.\n\nWe recommend using HTTPS only although HTTP is available.\n\nWe use appropriate HTTP status codes where possible to indicate the request status.\n\n### Rate Limiting\n\nEach IP address is rate limited at 30 requests per second. Tripping the rate limit will result in a 503 response.\n\nThe autocomplete API also has an additional rate limit.\n\nIf you expect to breach the limit please contact us and we can move you to an endpoint with a higher limit.\n\n### JSONP\n\n[JSONP](http://en.wikipedia.org/wiki/JSONP) requests are supported. Include a `callback=` in your request as a query parameter. Your results return wrapped in a function designated by your request.\n\n## Authentication\n\nMost requests require an **API key** for authentication. Authenticate by passing an `api_key` as part of the query string. For example:\n\n```\napi.ideal-postcodes.co.uk/v1/autocomplete/addresses?api_key=iddqd&q=parkside\n```\n\nAlternatively, authentication can be transmitted via the `Authorization` header using the following scheme:\n\n```\nAuthorization: IDEALPOSTCODES api_key=\"iddqd\" [other_key=\"foo\"]\n```\n\n## Versioning\n\nThis API is versioned with a simple prefix in the URL. The current version is `/v1/`. We will maintain backwards-compatibility by releasing breaking changes under a new version.\n\nPlease note that the following changes are backwards-compatible:\n\n- Adding new properties to existing API responses\n- Adding new API endpoints\n- Adding new optional request parameters to existing API endpoints\n- Changing the order of properties in existing API responses\n- Changing the autocomplete address suggestion format\n\n## Error Handling\n\nA successful lookup is accompanied with a HTTP status code of 200 and a response code of 2000 (found in the body).\n\nAn error has occurred if the HTTP status code is not 200. Errors can range from a benign 404 (resource not found) to more urgent errors (your API Key ran out of credit, failed authentication, etc).\n\n## Testing\n\nEach new account comes with a free test balance. Contact us if you need more for testing and integration.\n\n### Community Key\n\nOur documentation and demos make heavy use of our community key `iddqd`. This allows for convenient access for trialing the API.\n\nMany restrictions on this key are relaxed to allow developers make test requests. This key has a limit of 15 lookups per IP address per day as well as a daily usage cap. If you hit any limit restrictions, you can continue testing the API by creating a key of your own and using our free test methods.\n\nPlease be kind with the community key. We're trusting everyone to use it responsibly so that other developers may trial the API. Thank you!\n\n## Metadata\n\nRequests that affect your balance may be annotated with arbitrary metadata. This data is stored along with your lookup history and can be queried at a later date via the API or the dashboard. We call the ability to label your requests [tagging](https://docs.ideal-postcodes.co.uk/docs/guides/tags).\n\n# Response Codes\n\nThe API returns two indicators to help you to determine the status of each HTTP request.\n\nThe first is the **HTTP Status**, which is found in the status-line of all HTTP requests. The API will return status codes that adhere to HTTP /1.1 Specifications wherever possible.\n\n`2XX` status codes indicates success while `4XX` and `5XX` indicate client and server errors respectively.\n\nThe second is the **API response code**, which can be found in the `code` property of the response body. This code will provide a more specific reason if a failure has occurred and can point you in the right direction when debugging.\n\nPlease use the glossary of code numbers and HTTP status codes below when debugging your requests.\n\n## 200 Request Success\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | -------------------------------------------- |\n| 200 | 2000 | Success. Request was completed successfully. |\n\n## 400 Bad Request\n\nThe request could not be understood due to some input error.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |\n| 400 | 4000 | Invalid syntax submitted. Some part of your request was malformed or did not match our specifications. |\n| 400 | 4001 | Validation failed on your submitted data. Some of the data you provided did not meet our validation requirements, e.g. string length. |\n| 400 | 4005 | Invalid start date. Please ensure start dates are provided as a UTC Timestamp in milliseconds. |\n| 400 | 4006 | Invalid end date. Please ensure end dates are provided as a UTC Timestamp in milliseconds. |\n| 400 | 4007 | Invalid date range. Check if your start and end dates are in the right order. |\n| 400 | 4008 | Invalid date range. Check that your date range is 90 days or less. |\n| 400 | 4009 | Too many tags. Please specify no more than 3 tags to query. |\n\n## 401 Unauthorised\n\nAuthorization credentials are not valid.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| 401 | 4010 | Invalid Key. The `api_key` you provided is not valid. |\n| 401 | 4011 | Requesting URL not on whitelist. The cross domain request is not coming from a whitelisted URL. You can update or disable your allowed URLs via your Key settings. |\n| 401 | 4012 | Failed user authentication. Invalid `user_token` presented. |\n| 401 | 4013 | Licensee Key is required. Sublicensed keys require you need to present licensee credentials via the `licensee` parameter. |\n\n## 402 Request Failed\n\nYour request is well-formed but are not able to complete your request for another reason.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| 402 | 4020 | Key balance depleted. You're out of lookups on your API Key. |\n| 402 | 4021 | Limit reached. One of your lookup limits has been breached for today. This could either be your total daily limit on your key or the individual IP limit. You can either wait for for the limit to reset (after a day) or manually disable or increase your limit. |\n\n## 404 Resource Not Found\n\nThe resource you requested does not exist.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | --------------------------------------------------------------------------------------------- |\n| 404 | 4040 | Postcode not found. The postcode you have submitted does not exist. |\n| 404 | 4041 | User not found. Your user could not be identified given the credentials you presented. |\n| 404 | 4042 | Key not found. Your key could not be identified given the credentials you presented. |\n| 404 | 4044 | No UDPRN found. No address is associated with the UDPRN queried |\n| 404 | 4045 | No licensee found. Your licensee could not be identified given the credentials you presented. |\n| 404 | 4046 | No UMPRN found. No Multiple Residence premise is associated with the UMPRN queried. |\n\n## 500 Server Error\n\nA error occurred on our server.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| 500 | 5000 | An error occurred on our end. These errors are logged and queued so we can understand what went wrong. However, if you need speedy resolution please email support |\n| 500 | 5001 | Akin to 5000. |\n| 500 | 5002 | The server took too long to process on our end, so we aborted the request. You may retry the request. |\n",
9
+ "title": "API Reference - AddressZen",
10
+ "termsOfService": "https://terms.addresszen.com",
11
+ "description": "# Getting Started\n\n## Overview\n\n### Access\n\nAll API methods are either a `GET`, `POST` or `OPTIONS` request.\n\nThe API communicates over both HTTPS and plain HTTP using IPv4 and IPv6.\n\nWe recommend using HTTPS only although HTTP is available.\n\nWe use appropriate HTTP status codes where possible to indicate the request status.\n\n### Rate Limiting\n\nEach IP address is rate limited at 30 requests per second. Tripping the rate limit will result in a 503 response.\n\nThe autocomplete API also has an additional rate limit.\n\nIf you expect to breach the limit please contact us and we can move you to an endpoint with a higher limit.\n\n### JSONP\n\n[JSONP](http://en.wikipedia.org/wiki/JSONP) requests are supported. Include a `callback=` in your request as a query parameter. Your results return wrapped in a function designated by your request.\n\n## Authentication\n\nMost requests require an **API key** for authentication. Authenticate by passing an `api_key` as part of the query string. For example:\n\n```\napi.addresszen.com/v1/autocomplete/addresses?api_key=iddqd&q=parkside\n```\n\nAlternatively, authentication can be transmitted via the `Authorization` header using the following scheme:\n\n```\nAuthorization: IDEALPOSTCODES api_key=\"iddqd\" [other_key=\"foo\"]\n```\n\n## Versioning\n\nThis API is versioned with a simple prefix in the URL. The current version is `/v1/`. We will maintain backwards-compatibility by releasing breaking changes under a new version.\n\nPlease note that the following changes are backwards-compatible:\n\n- Adding new properties to existing API responses\n- Adding new API endpoints\n- Adding new optional request parameters to existing API endpoints\n- Changing the order of properties in existing API responses\n- Changing the autocomplete address suggestion format\n\n## Error Handling\n\nA successful lookup is accompanied with a HTTP status code of 200 and a response code of 2000 (found in the body).\n\nAn error has occurred if the HTTP status code is not 200. Errors can range from a benign 404 (resource not found) to more urgent errors (your API Key ran out of credit, failed authentication, etc).\n\n## Testing\n\nEach new account comes with a free test balance. Contact us if you need more for testing and integration.\n\n### Community Key\n\nOur documentation and demos make heavy use of our community key `iddqd`. This allows for convenient access for trialing the API.\n\nMany restrictions on this key are relaxed to allow developers make test requests. This key has a limit of 15 lookups per IP address per day as well as a daily usage cap. If you hit any limit restrictions, you can continue testing the API by creating a key of your own and using our free test methods.\n\nPlease be kind with the community key. We're trusting everyone to use it responsibly so that other developers may trial the API. Thank you!\n\n## Metadata\n\nRequests that affect your balance may be annotated with arbitrary metadata. This data is stored along with your lookup history and can be queried at a later date via the API or the dashboard. We call the ability to label your requests [tagging](https://docs.addresszen.com/docs/guides/tags).\n\n# Response Codes\n\nThe API returns two indicators to help you to determine the status of each HTTP request.\n\nThe first is the **HTTP Status**, which is found in the status-line of all HTTP requests. The API will return status codes that adhere to HTTP /1.1 Specifications wherever possible.\n\n`2XX` status codes indicates success while `4XX` and `5XX` indicate client and server errors respectively.\n\nThe second is the **API response code**, which can be found in the `code` property of the response body. This code will provide a more specific reason if a failure has occurred and can point you in the right direction when debugging.\n\nPlease use the glossary of code numbers and HTTP status codes below when debugging your requests.\n\n## 200 Request Success\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | -------------------------------------------- |\n| 200 | 2000 | Success. Request was completed successfully. |\n\n## 400 Bad Request\n\nThe request could not be understood due to some input error.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |\n| 400 | 4000 | Invalid syntax submitted. Some part of your request was malformed or did not match our specifications. |\n| 400 | 4001 | Validation failed on your submitted data. Some of the data you provided did not meet our validation requirements, e.g. string length. |\n| 400 | 4005 | Invalid start date. Please ensure start dates are provided as a UTC Timestamp in milliseconds. |\n| 400 | 4006 | Invalid end date. Please ensure end dates are provided as a UTC Timestamp in milliseconds. |\n| 400 | 4007 | Invalid date range. Check if your start and end dates are in the right order. |\n| 400 | 4008 | Invalid date range. Check that your date range is 90 days or less. |\n| 400 | 4009 | Too many tags. Please specify no more than 3 tags to query. |\n\n## 401 Unauthorised\n\nAuthorization credentials are not valid.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| 401 | 4010 | Invalid Key. The `api_key` you provided is not valid. |\n| 401 | 4011 | Requesting URL not on whitelist. The cross domain request is not coming from a whitelisted URL. You can update or disable your allowed URLs via your Key settings. |\n| 401 | 4012 | Failed user authentication. Invalid `user_token` presented. |\n| 401 | 4013 | Licensee Key is required. Sublicensed keys require you need to present licensee credentials via the `licensee` parameter. |\n\n## 402 Request Failed\n\nYour request is well-formed but are not able to complete your request for another reason.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| 402 | 4020 | Key balance depleted. You're out of lookups on your API Key. |\n| 402 | 4021 | Limit reached. One of your lookup limits has been breached for today. This could either be your total daily limit on your key or the individual IP limit. You can either wait for for the limit to reset (after a day) or manually disable or increase your limit. |\n\n## 404 Resource Not Found\n\nThe resource you requested does not exist.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | --------------------------------------------------------------------------------------------- |\n| 404 | 4040 | Postcode not found. The postcode you have submitted does not exist. |\n| 404 | 4041 | User not found. Your user could not be identified given the credentials you presented. |\n| 404 | 4042 | Key not found. Your key could not be identified given the credentials you presented. |\n| 404 | 4044 | No UDPRN found. No address is associated with the UDPRN queried |\n| 404 | 4045 | No licensee found. Your licensee could not be identified given the credentials you presented. |\n| 404 | 4046 | No UMPRN found. No Multiple Residence premise is associated with the UMPRN queried. |\n\n## 500 Server Error\n\nA error occurred on our server.\n\n| HTTP Code | API Code | Description |\n| --------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| 500 | 5000 | An error occurred on our end. These errors are logged and queued so we can understand what went wrong. However, if you need speedy resolution please email support |\n| 500 | 5001 | Akin to 5000. |\n| 500 | 5002 | The server took too long to process on our end, so we aborted the request. You may retry the request. |\n",
12
12
  "contact": {
13
- "email": "support@ideal-postcodes.co.uk",
13
+ "email": "support@addresszen.com",
14
14
  "name": "Support",
15
- "url": "https://ideal-postcodes.co.uk/support"
15
+ "url": "https://addresszen.com/support"
16
16
  }
17
17
  },
18
18
  "externalDocs": {
19
19
  "description": "More on our APIs, libraries with guides and examples",
20
- "url": "https://docs.ideal-postcodes.co.uk"
20
+ "url": "https://docs.addresszen.com"
21
21
  },
22
22
  "servers": [
23
23
  {
24
- "url": "https://api.ideal-postcodes.co.uk/v1",
24
+ "url": "https://api.addresszen.com/v1",
25
25
  "description": "API Server",
26
26
  "variables": {}
27
27
  }
@@ -166,12 +166,12 @@
166
166
  {
167
167
  "lang": "http",
168
168
  "label": "URL",
169
- "source": "https://api.ideal-postcodes.co.uk/v1/postcodes/SW1A2AA?api_key=iddqd\n"
169
+ "source": "https://api.addresszen.com/v1/postcodes/SW1A2AA?api_key=iddqd\n"
170
170
  },
171
171
  {
172
172
  "lang": "cURL",
173
173
  "label": "CLI",
174
- "source": "curl -G -k \\\n--url 'https://api.ideal-postcodes.co.uk/v1/postcodes/SW1A2AA' \\\n--d \"api_key=iddqd\"\n"
174
+ "source": "curl -G -k \\\n--url 'https://api.addresszen.com/v1/postcodes/SW1A2AA' \\\n--d \"api_key=iddqd\"\n"
175
175
  }
176
176
  ]
177
177
  }
@@ -243,12 +243,12 @@
243
243
  {
244
244
  "lang": "http",
245
245
  "label": "URL",
246
- "source": "https://api.ideal-postcodes.co.uk/v1/udprn/0?api_key=iddqd\n"
246
+ "source": "https://api.addresszen.com/v1/udprn/0?api_key=iddqd\n"
247
247
  },
248
248
  {
249
249
  "lang": "cURL",
250
250
  "label": "CLI",
251
- "source": "curl -k -G https://api.ideal-postcodes.co.uk/v1/udprn/0 \\\n -d \"api_key=iddqd\"\n"
251
+ "source": "curl -k -G https://api.addresszen.com/v1/udprn/0 \\\n -d \"api_key=iddqd\"\n"
252
252
  }
253
253
  ]
254
254
  }
@@ -320,12 +320,12 @@
320
320
  {
321
321
  "lang": "http",
322
322
  "label": "URL",
323
- "source": "https://api.ideal-postcodes.co.uk/v1/umprn/0?api_key=iddqdmr\n"
323
+ "source": "https://api.addresszen.com/v1/umprn/0?api_key=iddqdmr\n"
324
324
  },
325
325
  {
326
326
  "lang": "cURL",
327
327
  "label": "CLI",
328
- "source": "curl -k -G https://api.ideal-postcodes.co.uk/v1/umprn/0 \\\n -d \"api_key=iddqdmr\"\n"
328
+ "source": "curl -k -G https://api.addresszen.com/v1/umprn/0 \\\n -d \"api_key=iddqdmr\"\n"
329
329
  }
330
330
  ]
331
331
  }
@@ -504,12 +504,12 @@
504
504
  {
505
505
  "lang": "http",
506
506
  "label": "URL",
507
- "source": "https://api.ideal-postcodes.co.uk/v1/keys/iddqd/usage?user_token=my_secret_token\n"
507
+ "source": "https://api.addresszen.com/v1/keys/iddqd/usage?user_token=my_secret_token\n"
508
508
  },
509
509
  {
510
510
  "lang": "cURL",
511
511
  "label": "CLI",
512
- "source": "curl -k -G https://api.ideal-postcodes.co.uk/v1/keys/iddqd/usage \\\n -d \"user_token=my_secret_token\"\n"
512
+ "source": "curl -k -G https://api.addresszen.com/v1/keys/iddqd/usage \\\n -d \"user_token=my_secret_token\"\n"
513
513
  }
514
514
  ]
515
515
  }
@@ -521,7 +521,7 @@
521
521
  ],
522
522
  "summary": "Logs (CSV)",
523
523
  "operationId": "KeyLogs",
524
- "description": "Reports lookup information on a key for paid lookups.\n\nThis method requires a `user_token`, which can be found on your [accounts page](https://ideal-postcodes.co.uk/account).\n\nA 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.\n\n## Download Usage History (CSV)\n\n`GET /keys/:key/lookups`\n\nReturns a CSV download of lookups performed and associated information.\n\nNote 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.\n\n## Data Redaction\n\nPersonally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.\n\nBy default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.\n\nYou may prevent PII collection altogether by setting the interval to `0` days.\n",
524
+ "description": "Reports lookup information on a key for paid lookups.\n\nThis method requires a `user_token`, which can be found on your [accounts page](https://addresszen.com/account).\n\nA 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.\n\n## Download Usage History (CSV)\n\n`GET /keys/:key/lookups`\n\nReturns a CSV download of lookups performed and associated information.\n\nNote 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.\n\n## Data Redaction\n\nPersonally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.\n\nBy default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.\n\nYou may prevent PII collection altogether by setting the interval to `0` days.\n",
525
525
  "parameters": [
526
526
  {
527
527
  "name": "key",
@@ -582,12 +582,12 @@
582
582
  {
583
583
  "lang": "http",
584
584
  "label": "URL",
585
- "source": "https://api.ideal-postcodes.co.uk/v1/keys/iddqd/lookups?user_token=my_secret_token\n"
585
+ "source": "https://api.addresszen.com/v1/keys/iddqd/lookups?user_token=my_secret_token\n"
586
586
  },
587
587
  {
588
588
  "lang": "cURL",
589
589
  "label": "CLI",
590
- "source": "curl -k -G https://api.ideal-postcodes.co.uk/v1/keys/iddqd/lookups \\\n -d \"user_token=my_secret_token\"\n"
590
+ "source": "curl -k -G https://api.addresszen.com/v1/keys/iddqd/lookups \\\n -d \"user_token=my_secret_token\"\n"
591
591
  }
592
592
  ]
593
593
  }
@@ -851,12 +851,12 @@
851
851
  {
852
852
  "lang": "http",
853
853
  "label": "URL",
854
- "source": "https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses?api_key=iddqd&q=10%20downing\n"
854
+ "source": "https://api.addresszen.com/v1/autocomplete/addresses?api_key=iddqd&q=10%20downing\n"
855
855
  },
856
856
  {
857
857
  "lang": "cURL",
858
858
  "label": "CLI",
859
- "source": "curl -k -G 'https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses' \\\n -d 'api_key=iddqd' \\\n --data-urlencode 'query=10 downing'\n"
859
+ "source": "curl -k -G 'https://api.addresszen.com/v1/autocomplete/addresses' \\\n -d 'api_key=iddqd' \\\n --data-urlencode 'query=10 downing'\n"
860
860
  }
861
861
  ]
862
862
  }
@@ -919,12 +919,12 @@
919
919
  {
920
920
  "lang": "http",
921
921
  "label": "URL",
922
- "source": "https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd\n"
922
+ "source": "https://api.addresszen.com/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd\n"
923
923
  },
924
924
  {
925
925
  "lang": "cURL",
926
926
  "label": "CLI",
927
- "source": "curl -k -G https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd \\\n -d \"api_key=iddqd\"\n"
927
+ "source": "curl -k -G https://api.addresszen.com/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd \\\n -d \"api_key=iddqd\"\n"
928
928
  }
929
929
  ]
930
930
  }
@@ -987,12 +987,12 @@
987
987
  {
988
988
  "lang": "http",
989
989
  "label": "URL",
990
- "source": "https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd\n"
990
+ "source": "https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd\n"
991
991
  },
992
992
  {
993
993
  "lang": "cURL",
994
994
  "label": "CLI",
995
- "source": "curl -k -G https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd \\\n -d \"api_key=iddqd\"\n"
995
+ "source": "curl -k -G https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd \\\n -d \"api_key=iddqd\"\n"
996
996
  }
997
997
  ]
998
998
  }
@@ -1232,12 +1232,12 @@
1232
1232
  {
1233
1233
  "lang": "http",
1234
1234
  "label": "URL",
1235
- "source": "https://api.ideal-postcodes.co.uk/v1/addresses?api_key=iddqd&query=10%20downing%20street%20london\n"
1235
+ "source": "https://api.addresszen.com/v1/addresses?api_key=iddqd&query=10%20downing%20street%20london\n"
1236
1236
  },
1237
1237
  {
1238
1238
  "lang": "cURL",
1239
1239
  "label": "CLI",
1240
- "source": "curl -k -G 'https://api.ideal-postcodes.co.uk/v1/addresses' \\\n -d 'api_key=iddqd' \\\n --data-urlencode 'query=10 downing street london'\n"
1240
+ "source": "curl -k -G 'https://api.addresszen.com/v1/addresses' \\\n -d 'api_key=iddqd' \\\n --data-urlencode 'query=10 downing street london'\n"
1241
1241
  }
1242
1242
  ]
1243
1243
  }
@@ -2321,6 +2321,7 @@
2321
2321
  "description": "Indicates the provenance of an address",
2322
2322
  "enum": [
2323
2323
  "paf",
2324
+ "pafw",
2324
2325
  "mr",
2325
2326
  "nyb",
2326
2327
  "usps"
@@ -2342,7 +2343,7 @@
2342
2343
  },
2343
2344
  "PafAddress": {
2344
2345
  "title": "Postcode Address File Address",
2345
- "description": "Standard UK Address.",
2346
+ "description": "Standard UK Address. Also known as a Postcode Address File (PAF) address is defined by Royal Mail and updated on a daily cadence.\n\nA PAF Address represents a deliverable endpoint.\n",
2346
2347
  "required": [
2347
2348
  "postcode",
2348
2349
  "postcode_outward",
@@ -2511,7 +2512,7 @@
2511
2512
  },
2512
2513
  "MrAddress": {
2513
2514
  "title": "Multiple Residence Address",
2514
- "description": "Subdivision of a Postcode Address File address. Does not have its own delivery point.",
2515
+ "description": "Subdivision of a Postcode Address File address. Also known as a Multiple Residence or Multiple Occupancy address.\n\nA Multiple Residence address does not have its own deliverable endpoint. Instead it relies on the deliverable endpoint of a parent address, where the parent address can be found on the main Postcode Address File.\n",
2515
2516
  "allOf": [
2516
2517
  {
2517
2518
  "$ref": "#/components/schemas/PafAddress"
@@ -2531,7 +2532,7 @@
2531
2532
  },
2532
2533
  "NybAddress": {
2533
2534
  "title": "Not Yet Built Address",
2534
- "description": "UK premise under construction",
2535
+ "description": "A UK premise under construction and currently not occupied.\n\nThis dataset is updated by Royal Mail on a monthly cadence.\n",
2535
2536
  "allOf": [
2536
2537
  {
2537
2538
  "$ref": "#/components/schemas/PafAddress"
@@ -2542,7 +2543,7 @@
2542
2543
  "dataset": {
2543
2544
  "$ref": "#/components/schemas/Dataset",
2544
2545
  "enum": [
2545
- "mr"
2546
+ "nyb"
2546
2547
  ]
2547
2548
  }
2548
2549
  }
@@ -2750,7 +2751,7 @@
2750
2751
  "UserTokenParam": {
2751
2752
  "title": "User Token",
2752
2753
  "type": "string",
2753
- "description": "A secret key used for sensitive operations on your account and API Keys.\n\nYour user token can be retrieved and managed from your [accounts page](https://ideal-postcodes.co.uk/account).\n\nTypically beings `uk_...`\n",
2754
+ "description": "A secret key used for sensitive operations on your account and API Keys.\n\nYour user token can be retrieved and managed from your [accounts page](https://addresszen.com/account).\n\nTypically beings `uk_...`\n",
2754
2755
  "example": "uk_B59ScW1p1HHouf1VqclEPZUx"
2755
2756
  },
2756
2757
  "ApiKeyDailyLimit": {
@@ -3296,6 +3297,14 @@
3296
3297
  }
3297
3298
  ]
3298
3299
  },
3300
+ "PafwSuggestion": {
3301
+ "title": "Welsh Postcode Address File Address Autocompletion Hit",
3302
+ "allOf": [
3303
+ {
3304
+ "$ref": "#/components/schemas/PafSuggestion"
3305
+ }
3306
+ ]
3307
+ },
3299
3308
  "GlobalAddressSuggestion": {
3300
3309
  "title": "Global Address Autocompletion Suggestion",
3301
3310
  "description": "Represents an address suggestion for any address in the world",
@@ -3354,6 +3363,9 @@
3354
3363
  {
3355
3364
  "$ref": "#/components/schemas/NybSuggestion"
3356
3365
  },
3366
+ {
3367
+ "$ref": "#/components/schemas/PafwSuggestion"
3368
+ },
3357
3369
  {
3358
3370
  "$ref": "#/components/schemas/GlobalAddressSuggestion"
3359
3371
  }
@@ -3377,6 +3389,26 @@
3377
3389
  }
3378
3390
  }
3379
3391
  },
3392
+ "WelshPafAddress": {
3393
+ "title": "Welsh PAF Address",
3394
+ "description": "Welsh language alternative for a PAF Address",
3395
+ "allOf": [
3396
+ {
3397
+ "$ref": "#/components/schemas/PafAddress"
3398
+ },
3399
+ {
3400
+ "type": "object",
3401
+ "properties": {
3402
+ "dataset": {
3403
+ "$ref": "#/components/schemas/Dataset",
3404
+ "enum": [
3405
+ "pafw"
3406
+ ]
3407
+ }
3408
+ }
3409
+ }
3410
+ ]
3411
+ },
3380
3412
  "GbrGlobalAddress": {
3381
3413
  "title": "Global Address",
3382
3414
  "description": "Global (non-UK) address in the UK address format",
@@ -3625,6 +3657,9 @@
3625
3657
  {
3626
3658
  "$ref": "#/components/schemas/MrAddress"
3627
3659
  },
3660
+ {
3661
+ "$ref": "#/components/schemas/WelshPafAddress"
3662
+ },
3628
3663
  {
3629
3664
  "$ref": "#/components/schemas/NybAddress"
3630
3665
  },
package/dist/openapi.yaml CHANGED
@@ -1,11 +1,11 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
- version: 2.0.0
3
+ version: 2.1.1
4
4
  license:
5
5
  name: AGPLv3
6
6
  url: https://opensource.org/licenses/AGPL-3.0
7
- title: API Reference - Ideal Postcodes
8
- termsOfService: https://terms.ideal-postcodes.co.uk
7
+ title: API Reference - AddressZen
8
+ termsOfService: https://terms.addresszen.com
9
9
  description: >
10
10
  # Getting Started
11
11
 
@@ -60,7 +60,7 @@ info:
60
60
 
61
61
  ```
62
62
 
63
- api.ideal-postcodes.co.uk/v1/autocomplete/addresses?api_key=iddqd&q=parkside
63
+ api.addresszen.com/v1/autocomplete/addresses?api_key=iddqd&q=parkside
64
64
 
65
65
  ```
66
66
 
@@ -141,7 +141,7 @@ info:
141
141
  Requests that affect your balance may be annotated with arbitrary metadata.
142
142
  This data is stored along with your lookup history and can be queried at a
143
143
  later date via the API or the dashboard. We call the ability to label your
144
- requests [tagging](https://docs.ideal-postcodes.co.uk/docs/guides/tags).
144
+ requests [tagging](https://docs.addresszen.com/docs/guides/tags).
145
145
 
146
146
 
147
147
  # Response Codes
@@ -340,14 +340,14 @@ info:
340
340
  we aborted the request. You may retry the
341
341
  request. |
342
342
  contact:
343
- email: support@ideal-postcodes.co.uk
343
+ email: support@addresszen.com
344
344
  name: Support
345
- url: https://ideal-postcodes.co.uk/support
345
+ url: https://addresszen.com/support
346
346
  externalDocs:
347
347
  description: More on our APIs, libraries with guides and examples
348
- url: https://docs.ideal-postcodes.co.uk
348
+ url: https://docs.addresszen.com
349
349
  servers:
350
- - url: https://api.ideal-postcodes.co.uk/v1
350
+ - url: https://api.addresszen.com/v1
351
351
  description: API Server
352
352
  variables: {}
353
353
  tags:
@@ -511,12 +511,12 @@ paths:
511
511
  - lang: http
512
512
  label: URL
513
513
  source: |
514
- https://api.ideal-postcodes.co.uk/v1/postcodes/SW1A2AA?api_key=iddqd
514
+ https://api.addresszen.com/v1/postcodes/SW1A2AA?api_key=iddqd
515
515
  - lang: cURL
516
516
  label: CLI
517
517
  source: |
518
518
  curl -G -k \
519
- --url 'https://api.ideal-postcodes.co.uk/v1/postcodes/SW1A2AA' \
519
+ --url 'https://api.addresszen.com/v1/postcodes/SW1A2AA' \
520
520
  --d "api_key=iddqd"
521
521
  /udprn/{udprn}:
522
522
  get:
@@ -602,11 +602,11 @@ paths:
602
602
  - lang: http
603
603
  label: URL
604
604
  source: |
605
- https://api.ideal-postcodes.co.uk/v1/udprn/0?api_key=iddqd
605
+ https://api.addresszen.com/v1/udprn/0?api_key=iddqd
606
606
  - lang: cURL
607
607
  label: CLI
608
608
  source: |
609
- curl -k -G https://api.ideal-postcodes.co.uk/v1/udprn/0 \
609
+ curl -k -G https://api.addresszen.com/v1/udprn/0 \
610
610
  -d "api_key=iddqd"
611
611
  /umprn/{umprn}:
612
612
  get:
@@ -690,11 +690,11 @@ paths:
690
690
  - lang: http
691
691
  label: URL
692
692
  source: |
693
- https://api.ideal-postcodes.co.uk/v1/umprn/0?api_key=iddqdmr
693
+ https://api.addresszen.com/v1/umprn/0?api_key=iddqdmr
694
694
  - lang: cURL
695
695
  label: CLI
696
696
  source: |
697
- curl -k -G https://api.ideal-postcodes.co.uk/v1/umprn/0 \
697
+ curl -k -G https://api.addresszen.com/v1/umprn/0 \
698
698
  -d "api_key=iddqdmr"
699
699
  /keys/{key}:
700
700
  get:
@@ -848,11 +848,11 @@ paths:
848
848
  - lang: http
849
849
  label: URL
850
850
  source: >
851
- https://api.ideal-postcodes.co.uk/v1/keys/iddqd/usage?user_token=my_secret_token
851
+ https://api.addresszen.com/v1/keys/iddqd/usage?user_token=my_secret_token
852
852
  - lang: cURL
853
853
  label: CLI
854
854
  source: |
855
- curl -k -G https://api.ideal-postcodes.co.uk/v1/keys/iddqd/usage \
855
+ curl -k -G https://api.addresszen.com/v1/keys/iddqd/usage \
856
856
  -d "user_token=my_secret_token"
857
857
  /keys/{key}/lookups:
858
858
  get:
@@ -865,7 +865,7 @@ paths:
865
865
 
866
866
 
867
867
  This method requires a `user_token`, which can be found on your
868
- [accounts page](https://ideal-postcodes.co.uk/account).
868
+ [accounts page](https://addresszen.com/account).
869
869
 
870
870
 
871
871
  A maximum interval of 90 days can be provided for analysis. If no start
@@ -962,11 +962,11 @@ paths:
962
962
  - lang: http
963
963
  label: URL
964
964
  source: >
965
- https://api.ideal-postcodes.co.uk/v1/keys/iddqd/lookups?user_token=my_secret_token
965
+ https://api.addresszen.com/v1/keys/iddqd/lookups?user_token=my_secret_token
966
966
  - lang: cURL
967
967
  label: CLI
968
968
  source: |
969
- curl -k -G https://api.ideal-postcodes.co.uk/v1/keys/iddqd/lookups \
969
+ curl -k -G https://api.addresszen.com/v1/keys/iddqd/lookups \
970
970
  -d "user_token=my_secret_token"
971
971
  /autocomplete/addresses:
972
972
  get:
@@ -1291,12 +1291,12 @@ paths:
1291
1291
  - lang: http
1292
1292
  label: URL
1293
1293
  source: >
1294
- https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses?api_key=iddqd&q=10%20downing
1294
+ https://api.addresszen.com/v1/autocomplete/addresses?api_key=iddqd&q=10%20downing
1295
1295
  - lang: cURL
1296
1296
  label: CLI
1297
1297
  source: >
1298
1298
  curl -k -G
1299
- 'https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses' \
1299
+ 'https://api.addresszen.com/v1/autocomplete/addresses' \
1300
1300
  -d 'api_key=iddqd' \
1301
1301
  --data-urlencode 'query=10 downing'
1302
1302
  /autocomplete/addresses/{address}/gbr:
@@ -1346,12 +1346,12 @@ paths:
1346
1346
  - lang: http
1347
1347
  label: URL
1348
1348
  source: >
1349
- https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd
1349
+ https://api.addresszen.com/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd
1350
1350
  - lang: cURL
1351
1351
  label: CLI
1352
1352
  source: >
1353
1353
  curl -k -G
1354
- https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd
1354
+ https://api.addresszen.com/v1/autocomplete/addresses/paf_23747771/gbr?api_key=iddqd
1355
1355
  \
1356
1356
  -d "api_key=iddqd"
1357
1357
  /autocomplete/addresses/{address}/usa:
@@ -1401,12 +1401,12 @@ paths:
1401
1401
  - lang: http
1402
1402
  label: URL
1403
1403
  source: >
1404
- https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd
1404
+ https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd
1405
1405
  - lang: cURL
1406
1406
  label: CLI
1407
1407
  source: >
1408
1408
  curl -k -G
1409
- https://api.ideal-postcodes.co.uk/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd
1409
+ https://api.addresszen.com/v1/autocomplete/addresses/usps_Z222446599|1||1101/usa?api_key=iddqd
1410
1410
  \
1411
1411
  -d "api_key=iddqd"
1412
1412
  /addresses:
@@ -1687,11 +1687,11 @@ paths:
1687
1687
  - lang: http
1688
1688
  label: URL
1689
1689
  source: >
1690
- https://api.ideal-postcodes.co.uk/v1/addresses?api_key=iddqd&query=10%20downing%20street%20london
1690
+ https://api.addresszen.com/v1/addresses?api_key=iddqd&query=10%20downing%20street%20london
1691
1691
  - lang: cURL
1692
1692
  label: CLI
1693
1693
  source: |
1694
- curl -k -G 'https://api.ideal-postcodes.co.uk/v1/addresses' \
1694
+ curl -k -G 'https://api.addresszen.com/v1/addresses' \
1695
1695
  -d 'api_key=iddqd' \
1696
1696
  --data-urlencode 'query=10 downing street london'
1697
1697
  /keys/{key}/licensees:
@@ -2614,6 +2614,7 @@ components:
2614
2614
  description: Indicates the provenance of an address
2615
2615
  enum:
2616
2616
  - paf
2617
+ - pafw
2617
2618
  - mr
2618
2619
  - nyb
2619
2620
  - usps
@@ -2631,7 +2632,12 @@ components:
2631
2632
  - GUM
2632
2633
  PafAddress:
2633
2634
  title: Postcode Address File Address
2634
- description: Standard UK Address.
2635
+ description: >
2636
+ Standard UK Address. Also known as a Postcode Address File (PAF) address
2637
+ is defined by Royal Mail and updated on a daily cadence.
2638
+
2639
+
2640
+ A PAF Address represents a deliverable endpoint.
2635
2641
  required:
2636
2642
  - postcode
2637
2643
  - postcode_outward
@@ -2757,9 +2763,14 @@ components:
2757
2763
  - GGY
2758
2764
  MrAddress:
2759
2765
  title: Multiple Residence Address
2760
- description: >-
2761
- Subdivision of a Postcode Address File address. Does not have its own
2762
- delivery point.
2766
+ description: >
2767
+ Subdivision of a Postcode Address File address. Also known as a Multiple
2768
+ Residence or Multiple Occupancy address.
2769
+
2770
+
2771
+ A Multiple Residence address does not have its own deliverable endpoint.
2772
+ Instead it relies on the deliverable endpoint of a parent address, where
2773
+ the parent address can be found on the main Postcode Address File.
2763
2774
  allOf:
2764
2775
  - $ref: '#/components/schemas/PafAddress'
2765
2776
  - type: object
@@ -2770,7 +2781,10 @@ components:
2770
2781
  - mr
2771
2782
  NybAddress:
2772
2783
  title: Not Yet Built Address
2773
- description: UK premise under construction
2784
+ description: |
2785
+ A UK premise under construction and currently not occupied.
2786
+
2787
+ This dataset is updated by Royal Mail on a monthly cadence.
2774
2788
  allOf:
2775
2789
  - $ref: '#/components/schemas/PafAddress'
2776
2790
  - type: object
@@ -2778,7 +2792,7 @@ components:
2778
2792
  dataset:
2779
2793
  $ref: '#/components/schemas/Dataset'
2780
2794
  enum:
2781
- - mr
2795
+ - nyb
2782
2796
  PostcodeResponse:
2783
2797
  title: Postcode Response
2784
2798
  type: object
@@ -2931,7 +2945,7 @@ components:
2931
2945
 
2932
2946
 
2933
2947
  Your user token can be retrieved and managed from your [accounts
2934
- page](https://ideal-postcodes.co.uk/account).
2948
+ page](https://addresszen.com/account).
2935
2949
 
2936
2950
 
2937
2951
  Typically beings `uk_...`
@@ -3044,7 +3058,7 @@ components:
3044
3058
  expires:
3045
3059
  x-nullable: true
3046
3060
  type: string
3047
- example: '2022-01-06T11:41:27.092Z'
3061
+ example: 2022-01-06T11:41:27.092Z
3048
3062
  description: >-
3049
3063
  `string` or `null` The date when this purchase will expire in
3050
3064
  simplified
@@ -3176,11 +3190,11 @@ components:
3176
3190
  start:
3177
3191
  type: string
3178
3192
  description: Start date in ISO 8601 format.
3179
- example: '2015-01-22T15:08:06.609Z'
3193
+ example: 2015-01-22T15:08:06.609Z
3180
3194
  end:
3181
3195
  type: string
3182
3196
  description: End date in ISO 8601 format.
3183
- example: '2015-01-23T15:08:06.609Z'
3197
+ example: 2015-01-23T15:08:06.609Z
3184
3198
  total:
3185
3199
  type: integer
3186
3200
  description: Total of paid lookups performed in specified period.
@@ -3201,7 +3215,7 @@ components:
3201
3215
  properties:
3202
3216
  date:
3203
3217
  type: string
3204
- example: '2015-01-22T00:00:00.000Z'
3218
+ example: 2015-01-22T00:00:00.000Z
3205
3219
  count:
3206
3220
  type: integer
3207
3221
  format: int32
@@ -3446,6 +3460,10 @@ components:
3446
3460
  title: Not Yet Built Address Autocompletion Hit
3447
3461
  allOf:
3448
3462
  - $ref: '#/components/schemas/PafSuggestion'
3463
+ PafwSuggestion:
3464
+ title: Welsh Postcode Address File Address Autocompletion Hit
3465
+ allOf:
3466
+ - $ref: '#/components/schemas/PafSuggestion'
3449
3467
  GlobalAddressSuggestion:
3450
3468
  title: Global Address Autocompletion Suggestion
3451
3469
  description: Represents an address suggestion for any address in the world
@@ -3490,6 +3508,7 @@ components:
3490
3508
  - $ref: '#/components/schemas/PafSuggestion'
3491
3509
  - $ref: '#/components/schemas/MrSuggestion'
3492
3510
  - $ref: '#/components/schemas/NybSuggestion'
3511
+ - $ref: '#/components/schemas/PafwSuggestion'
3493
3512
  - $ref: '#/components/schemas/GlobalAddressSuggestion'
3494
3513
  code:
3495
3514
  type: integer
@@ -3500,6 +3519,17 @@ components:
3500
3519
  type: string
3501
3520
  enum:
3502
3521
  - Success
3522
+ WelshPafAddress:
3523
+ title: Welsh PAF Address
3524
+ description: Welsh language alternative for a PAF Address
3525
+ allOf:
3526
+ - $ref: '#/components/schemas/PafAddress'
3527
+ - type: object
3528
+ properties:
3529
+ dataset:
3530
+ $ref: '#/components/schemas/Dataset'
3531
+ enum:
3532
+ - pafw
3503
3533
  GbrGlobalAddress:
3504
3534
  title: Global Address
3505
3535
  description: Global (non-UK) address in the UK address format
@@ -3685,6 +3715,7 @@ components:
3685
3715
  oneOf:
3686
3716
  - $ref: '#/components/schemas/PafAddress'
3687
3717
  - $ref: '#/components/schemas/MrAddress'
3718
+ - $ref: '#/components/schemas/WelshPafAddress'
3688
3719
  - $ref: '#/components/schemas/NybAddress'
3689
3720
  - $ref: '#/components/schemas/GbrGlobalAddress'
3690
3721
  usps_dataset:
@@ -4573,7 +4604,7 @@ components:
4573
4604
  Typically begins `sk_`.
4574
4605
  createdAt:
4575
4606
  type: string
4576
- example: '2016-01-21T17:14:49.971Z'
4607
+ example: 2016-01-21T17:14:49.971Z
4577
4608
  description: Timestamp for when the licensee was created
4578
4609
  daily:
4579
4610
  required:
@@ -4591,7 +4622,7 @@ components:
4591
4622
  represented b `licesees.daily.updatedAt`
4592
4623
  updatedAt:
4593
4624
  type: string
4594
- example: '2016-08-05T16:43:28.865Z'
4625
+ example: 2016-08-05T16:43:28.865Z
4595
4626
  description: The timestamp when the limit was last used.
4596
4627
  LicenseesResponse:
4597
4628
  title: Licensee List Response
@@ -4653,11 +4684,11 @@ components:
4653
4684
  properties:
4654
4685
  updatedAt:
4655
4686
  type: string
4656
- example: '2016-01-21T17:14:49.971Z'
4687
+ example: 2016-01-21T17:14:49.971Z
4657
4688
  description: Timestamp for when the config was created
4658
4689
  createdAt:
4659
4690
  type: string
4660
- example: '2016-01-21T17:14:49.971Z'
4691
+ example: 2016-01-21T17:14:49.971Z
4661
4692
  description: Timestamp for when the config was updated
4662
4693
  name:
4663
4694
  type: string
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@addresszen/openapi",
3
3
  "description": "AddressZen OpenAPI v3 specifications",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "devDependencies": {
6
6
  "@cablanchard/semantic-release": "~1.3.4",
7
7
  "@cablanchard/tsconfig": "~2.0.0",
8
8
  "@redocly/openapi-cli": "~1.0.0-beta.55",
9
9
  "prettier": "~2.6.2",
10
10
  "semantic-release": "~19.0.2",
11
- "typescript": "~4.6.3"
11
+ "typescript": "~4.7.3"
12
12
  },
13
13
  "scripts": {
14
14
  "prepublishOnly": "npm run build",
@@ -56,7 +56,7 @@
56
56
  "Address Lookup"
57
57
  ],
58
58
  "dependencies": {
59
- "@ideal-postcodes/openapi": "~2.0.1",
59
+ "@ideal-postcodes/openapi": "~2.1.1",
60
60
  "replace-in-file": "~6.3.2",
61
61
  "ts-node": "^10.7.0"
62
62
  }