@addresszen/openapi 3.7.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.
@@ -132,9 +132,23 @@ interface paths {
132
132
  *
133
133
  * 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.
134
134
  *
135
+ * The CSV has no header row. Columns, in order:
136
+ *
137
+ * 1. Timestamp (ISO 8601)
138
+ * 2. IP address the request was received from
139
+ * 3. Search term
140
+ * 4. URL the request originated from
141
+ * 5. Lookup type
142
+ * 6. Tags
143
+ * 7. Lookups consumed
144
+ * 8. Licensee name (sublicensing keys only)
145
+ * 9. Source IP address
146
+ *
147
+ * 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.
148
+ *
135
149
  * ## Data Redaction
136
150
  *
137
- * Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
151
+ * 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.
138
152
  *
139
153
  * By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
140
154
  *
@@ -6739,6 +6753,11 @@ interface components {
6739
6753
  * @default false
6740
6754
  */
6741
6755
  ip_forwarding: boolean;
6756
+ /**
6757
+ * @description Whether the key is enrolled in the premier support programme and monitored closely by our devops team. Read-only; managed by our team.
6758
+ * @default false
6759
+ */
6760
+ premier_support: boolean;
6742
6761
  };
6743
6762
  /** API Key Details Response */
6744
6763
  ApiKeyDetailsResponse: {
@@ -9614,9 +9633,23 @@ interface operations {
9614
9633
  *
9615
9634
  * 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.
9616
9635
  *
9636
+ * The CSV has no header row. Columns, in order:
9637
+ *
9638
+ * 1. Timestamp (ISO 8601)
9639
+ * 2. IP address the request was received from
9640
+ * 3. Search term
9641
+ * 4. URL the request originated from
9642
+ * 5. Lookup type
9643
+ * 6. Tags
9644
+ * 7. Lookups consumed
9645
+ * 8. Licensee name (sublicensing keys only)
9646
+ * 9. Source IP address
9647
+ *
9648
+ * 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.
9649
+ *
9617
9650
  * ## Data Redaction
9618
9651
  *
9619
- * Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
9652
+ * 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.
9620
9653
  *
9621
9654
  * By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
9622
9655
  *
package/dist/openapi.d.ts CHANGED
@@ -132,9 +132,23 @@ interface paths {
132
132
  *
133
133
  * 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.
134
134
  *
135
+ * The CSV has no header row. Columns, in order:
136
+ *
137
+ * 1. Timestamp (ISO 8601)
138
+ * 2. IP address the request was received from
139
+ * 3. Search term
140
+ * 4. URL the request originated from
141
+ * 5. Lookup type
142
+ * 6. Tags
143
+ * 7. Lookups consumed
144
+ * 8. Licensee name (sublicensing keys only)
145
+ * 9. Source IP address
146
+ *
147
+ * 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.
148
+ *
135
149
  * ## Data Redaction
136
150
  *
137
- * Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
151
+ * 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.
138
152
  *
139
153
  * By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
140
154
  *
@@ -6739,6 +6753,11 @@ interface components {
6739
6753
  * @default false
6740
6754
  */
6741
6755
  ip_forwarding: boolean;
6756
+ /**
6757
+ * @description Whether the key is enrolled in the premier support programme and monitored closely by our devops team. Read-only; managed by our team.
6758
+ * @default false
6759
+ */
6760
+ premier_support: boolean;
6742
6761
  };
6743
6762
  /** API Key Details Response */
6744
6763
  ApiKeyDetailsResponse: {
@@ -9614,9 +9633,23 @@ interface operations {
9614
9633
  *
9615
9634
  * 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.
9616
9635
  *
9636
+ * The CSV has no header row. Columns, in order:
9637
+ *
9638
+ * 1. Timestamp (ISO 8601)
9639
+ * 2. IP address the request was received from
9640
+ * 3. Search term
9641
+ * 4. URL the request originated from
9642
+ * 5. Lookup type
9643
+ * 6. Tags
9644
+ * 7. Lookups consumed
9645
+ * 8. Licensee name (sublicensing keys only)
9646
+ * 9. Source IP address
9647
+ *
9648
+ * 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.
9649
+ *
9617
9650
  * ## Data Redaction
9618
9651
  *
9619
- * Personally Identifiable Data (PII) caught in this your usage log (including IP, search term and URL data) will be redacted on a weekly basis.
9652
+ * 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.
9620
9653
  *
9621
9654
  * By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
9622
9655
  *
package/dist/openapi.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "openapi": "3.0.3",
3
3
  "info": {
4
- "version": "3.7.0",
4
+ "version": "3.8.0",
5
5
  "license": {
6
6
  "name": "AGPLv3",
7
7
  "url": "https://opensource.org/licenses/AGPL-3.0"
@@ -45,12 +45,12 @@
45
45
  },
46
46
  {
47
47
  "name": "Configs",
48
- "description": "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.\n\nUseful if you need to configure your integration remotely rather than editing code in situ.\n"
48
+ "description": "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.\n\nUseful if you need to configure your integration remotely rather than editing code in situ.\n"
49
49
  },
50
50
  {
51
51
  "name": "suggestion",
52
52
  "x-displayName": "Address Suggestion",
53
- "description": "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.\n\nSee our Address Search APIs for more information on address autocompletion.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AddressSuggestion\" />\n"
53
+ "description": "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.\n\nSee our Address Search APIs for more information on address autocompletion.\n\n<SchemaDefinition schemaRef=\"#/components/schemas/AddressSuggestion\" />\n"
54
54
  },
55
55
  {
56
56
  "name": "usps_address",
@@ -574,7 +574,7 @@
574
574
  }
575
575
  },
576
576
  "401": {
577
- "description": "Unauthorised",
577
+ "description": "Unauthorized",
578
578
  "content": {
579
579
  "application/json": {
580
580
  "schema": {
@@ -643,7 +643,7 @@
643
643
  }
644
644
  },
645
645
  "401": {
646
- "description": "Unauthorised",
646
+ "description": "Unauthorized",
647
647
  "content": {
648
648
  "application/json": {
649
649
  "schema": {
@@ -736,7 +736,7 @@
736
736
  ],
737
737
  "summary": "Logs (CSV)",
738
738
  "operationId": "KeyLogs",
739
- "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",
739
+ "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://account.addresszen.com).\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\nThe CSV has no header row. Columns, in order:\n\n1. Timestamp (ISO 8601)\n2. IP address the request was received from\n3. Search term\n4. URL the request originated from\n5. Lookup type\n6. Tags\n7. Lookups consumed\n8. Licensee name (sublicensing keys only)\n9. Source IP address\n\nThe 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.\n\n## Data Redaction\n\nPersonally 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.\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",
740
740
  "parameters": [
741
741
  {
742
742
  "$ref": "#/components/parameters/ApiKeyPathParam"
@@ -759,7 +759,7 @@
759
759
  "description": "Success",
760
760
  "content": {
761
761
  "text/csv": {
762
- "example": "2015-02-21T16:05:22.991Z,82.85.128.18,SW12AA,https://www.example.com/,Postcode Lookup,\n2015-02-21T16:05:38.298Z,82.85.128.18,10 Downing Street London,https://www.example.com/,Address Lookup,CRM\n2015-02-21T16:06:49.227Z,82.85.128.18,OX44PP,https://www.example.com/,Postcode Lookup,\"Website,Live\"\n2015-02-21T16:07:02.706Z,82.85.128.18,PL9 9HE,https://www.example.com/,Postcode Lookup,\n",
762
+ "example": "2015-02-21T16:05:22.991Z,82.85.128.18,SW12AA,https://www.example.com/,Postcode Lookup,,1,,\n2015-02-21T16:05:38.298Z,82.85.128.18,10 Downing Street London,https://www.example.com/,Address Lookup,CRM,1,,\n2015-02-21T16:06:49.227Z,82.85.128.18,OX44PP,https://www.example.com/,Postcode Lookup,\"Website,Live\",1,,203.0.113.44\n2015-02-21T16:07:02.706Z,82.85.128.18,PL9 9HE,https://www.example.com/,Postcode Lookup,,2,Acme Ltd,203.0.113.44\n",
763
763
  "schema": {
764
764
  "type": "string",
765
765
  "description": "Success"
@@ -909,7 +909,7 @@
909
909
  "US"
910
910
  ],
911
911
  "summary": "Verify Address",
912
- "description": "The address verify API validates, corrects, and standardizes individual addresses based on USPS's Coding Accuracy Support System (CASS).\n\nThe address verify API accepts the 3 combination of inputs:\n\n- Free-form address submitted as a single string in `query`\n - Example: \"123 Main St, Springfield, CO 81073-1119\"\n- Only free-form and zip code address components submitted as separate parameters:\n - `query` for the first address line\n - `zip_code` for the ZIP code\n - Example:\n - `query`: \"123 Main St, Springfield CO\"\n - `zip_code`: \"81073-1119\"\n- Only free-form, city and state address components submitted as separate parameters:\n - `query` for the first address line\n - `city` for the city\n - `state` for the state\n - Example:\n - `query`: \"123 Main St\"\n - `city`: \"Springfield\"\n - `state`: \"CO\"\n",
912
+ "description": "The address verify API validates, corrects, and standardizes individual addresses based on USPS's Coding Accuracy Support System (CASS).\n\nThe address verify API accepts the 3 combinations of inputs:\n\n- Free-form address submitted as a single string in `query`\n - Example: \"123 Main St, Springfield, CO 81073-1119\"\n- Only free-form and zip code address components submitted as separate parameters:\n - `query` for the first address line\n - `zip_code` for the ZIP code\n - Example:\n - `query`: \"123 Main St, Springfield CO\"\n - `zip_code`: \"81073-1119\"\n- Only free-form, city and state address components submitted as separate parameters:\n - `query` for the first address line\n - `city` for the city\n - `state` for the state\n - Example:\n - `query`: \"123 Main St\"\n - `city`: \"Springfield\"\n - `state`: \"CO\"\n",
913
913
  "operationId": "AddressVerify",
914
914
  "parameters": [
915
915
  {
@@ -3069,7 +3069,7 @@
3069
3069
  "paf_post_town": {
3070
3070
  "maxLength": 30,
3071
3071
  "type": "string",
3072
- "description": "**Filter by Town or City\"\nA 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.\n",
3072
+ "description": "**Filter by Town or City**\n\nA 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.\n",
3073
3073
  "example": "London"
3074
3074
  },
3075
3075
  "paf_postcode": {
@@ -3155,7 +3155,7 @@
3155
3155
  "paf_dependant_thoroughfare": {
3156
3156
  "title": "Dependant Thoroughfare",
3157
3157
  "type": "string",
3158
- "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.",
3158
+ "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.",
3159
3159
  "maxLength": 80,
3160
3160
  "example": ""
3161
3161
  },
@@ -6255,7 +6255,7 @@
6255
6255
  },
6256
6256
  "gaeltacht": {
6257
6257
  "type": "boolean",
6258
- "description": "Gaeltact refers to a district where the Irish government recognises that the Irish language is the predominant language.\n\nReturns `true` if address is in a Gaeltacht area and `false` if not."
6258
+ "description": "Gaeltacht refers to a district where the Irish government recognizes that the Irish language is the predominant language.\n\nReturns `true` if address is in a Gaeltacht area and `false` if not."
6259
6259
  },
6260
6260
  "address_type": {
6261
6261
  "type": "string",
@@ -12225,7 +12225,7 @@
12225
12225
  ]
12226
12226
  },
12227
12227
  "available": {
12228
- "description": "Determines whether the key can be used by the requesting agent. \n\nReturns false if one of the following conditions are met:\n - Key has no lookups remaining\n - Daily limit has been reached on the key\n - Daily individual limit has been reached\n - Key is not being used via an authorised URL\n - (Sublicensed key only) Key has a valid licensee attached\n - (Sublicensed key only) Key is not being used via an authorised URL specified by licensee\n",
12228
+ "description": "Determines whether the key can be used by the requesting agent. \n\nReturns false if one of the following conditions are met:\n - Key has no lookups remaining\n - Daily limit has been reached on the key\n - Daily individual limit has been reached\n - Key is not being used via an authorized URL\n - (Sublicensed key only) Key has a valid licensee attached\n - (Sublicensed key only) Key is not being used via an authorized URL specified by licensee\n",
12229
12229
  "type": "boolean",
12230
12230
  "example": true
12231
12231
  }
@@ -12662,6 +12662,7 @@
12662
12662
  "automated_topups",
12663
12663
  "current_purchases",
12664
12664
  "ip_forwarding",
12665
+ "premier_support",
12665
12666
  "datasets"
12666
12667
  ],
12667
12668
  "properties": {
@@ -12720,6 +12721,11 @@
12720
12721
  "type": "boolean",
12721
12722
  "default": false,
12722
12723
  "description": "Accept IP addresses forwarded in the `AZ-Source-IP` header"
12724
+ },
12725
+ "premier_support": {
12726
+ "type": "boolean",
12727
+ "default": false,
12728
+ "description": "Whether the key is enrolled in the premier support programme and monitored closely by our devops team. Read-only; managed by our team."
12723
12729
  }
12724
12730
  }
12725
12731
  },
@@ -15381,7 +15387,7 @@
15381
15387
  "minimum": 0,
15382
15388
  "type": "number",
15383
15389
  "format": "int32",
15384
- "description": "The number lookups performed by the licensee on the day represented b `licesees.daily.updatedAt`"
15390
+ "description": "The number of lookups performed by the licensee on the day represented by `licensees.daily.updatedAt`"
15385
15391
  },
15386
15392
  "updatedAt": {
15387
15393
  "type": "string",
@@ -15493,7 +15499,7 @@
15493
15499
  "type": "string",
15494
15500
  "minimum": 0,
15495
15501
  "maximum": 4096,
15496
- "description": "A serialised payload of up to `4096` characters"
15502
+ "description": "A serialized payload of up to `4096` characters"
15497
15503
  }
15498
15504
  }
15499
15505
  },
@@ -15557,7 +15563,7 @@
15557
15563
  "type": "string",
15558
15564
  "minimum": 0,
15559
15565
  "maximum": 4096,
15560
- "description": "A serialised payload of up to `4096` characters"
15566
+ "description": "A serialized payload of up to `4096` characters"
15561
15567
  }
15562
15568
  }
15563
15569
  },
@@ -15624,7 +15630,7 @@
15624
15630
  "type": "string",
15625
15631
  "minimum": 0,
15626
15632
  "maximum": 4096,
15627
- "description": "A serialised payload of up to `4096` characters"
15633
+ "description": "A serialized payload of up to `4096` characters"
15628
15634
  }
15629
15635
  }
15630
15636
  },
@@ -16194,7 +16200,7 @@
16194
16200
  "schema": {
16195
16201
  "type": "string"
16196
16202
  },
16197
- "description": "** Tags **\nA comma separated list of tags to query over.\n\nUseful if you want to specify the circumstances in which the request was made.\n\nIf multiple tags are specified, the response will only comprise of requests for which all the tags are satisfied - i.e. searching `\"foo,bar\"` will only query requests which tagged both `\"foo\"` and `\"bar\"`.\n",
16203
+ "description": "**Tags**\n\nA comma separated list of tags to query over.\n\nUseful if you want to specify the circumstances in which the request was made.\n\nIf multiple tags are specified, the response will only comprise of requests for which all the tags are satisfied - i.e. searching `\"foo,bar\"` will only query requests which tagged both `\"foo\"` and `\"bar\"`.\n",
16198
16204
  "example": "foo,bar"
16199
16205
  },
16200
16206
  "ApiKeyPathParam": {
@@ -16217,7 +16223,7 @@
16217
16223
  "type": "string"
16218
16224
  },
16219
16225
  "name": "user_token",
16220
- "description": "**Private User Token**\n\nA 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",
16226
+ "description": "**Private User Token**\n\nA 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://account.addresszen.com).\n\nTypically begins `uk_...`\n",
16221
16227
  "example": "uk_B59ScW1p1HHouf1VqclEPZUx"
16222
16228
  },
16223
16229
  "StartParam": {
@@ -16328,7 +16334,7 @@
16328
16334
  "schema": {
16329
16335
  "type": "string"
16330
16336
  },
16331
- "description": "**Filter by Bounding Box**\n\nRestrict search to a geospatial box determined by the \"top-left\" and \"bottom-right\" gelocations. \nOnly one geospatial box can be provided.\n",
16337
+ "description": "**Filter by Bounding Box**\n\nRestrict search to a geospatial box determined by the \"top-left\" and \"bottom-right\" geolocations. \nOnly one geospatial box can be provided.\n",
16332
16338
  "example": "2.095,57.15,-2.096,57.14"
16333
16339
  },
16334
16340
  "PostcodeOutwardParam": {
@@ -16437,7 +16443,7 @@
16437
16443
  "schema": {
16438
16444
  "type": "string"
16439
16445
  },
16440
- "description": "**Bias by Outward Code**\nBoosts addresses with a matching outward code.\nOutward code is the first have of a postcode. For instance, the outward code of `SW1A 2AA` is `SW1A`",
16446
+ "description": "**Bias by Outward Code**\nBoosts addresses with a matching outward code.\nOutward code is the first half of a postcode. For instance, the outward code of `SW1A 2AA` is `SW1A`",
16441
16447
  "example": "SW1A"
16442
16448
  },
16443
16449
  "BiasPostcodeParam": {
package/dist/openapi.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
- version: 3.7.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"
@@ -2496,7 +2510,8 @@ components:
2496
2510
  maxLength: 30
2497
2511
  type: string
2498
2512
  description: |
2499
- **Filter by Town or City"
2513
+ **Filter by Town or City**
2514
+
2500
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.
2501
2516
  example: London
2502
2517
  paf_postcode:
@@ -2589,7 +2604,7 @@ components:
2589
2604
  paf_dependant_thoroughfare:
2590
2605
  title: Dependant Thoroughfare
2591
2606
  type: string
2592
- 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.
2593
2608
  maxLength: 80
2594
2609
  example: ''
2595
2610
  paf_building_number:
@@ -5543,7 +5558,7 @@ components:
5543
5558
  gaeltacht:
5544
5559
  type: boolean
5545
5560
  description: |-
5546
- 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.
5547
5562
 
5548
5563
  Returns `true` if address is in a Gaeltacht area and `false` if not.
5549
5564
  address_type:
@@ -11616,9 +11631,9 @@ components:
11616
11631
  - Key has no lookups remaining
11617
11632
  - Daily limit has been reached on the key
11618
11633
  - Daily individual limit has been reached
11619
- - Key is not being used via an authorised URL
11634
+ - Key is not being used via an authorized URL
11620
11635
  - (Sublicensed key only) Key has a valid licensee attached
11621
- - (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
11622
11637
  type: boolean
11623
11638
  example: true
11624
11639
  ApiKeyResponse:
@@ -11982,6 +11997,7 @@ components:
11982
11997
  - automated_topups
11983
11998
  - current_purchases
11984
11999
  - ip_forwarding
12000
+ - premier_support
11985
12001
  - datasets
11986
12002
  properties:
11987
12003
  name:
@@ -12025,6 +12041,10 @@ components:
12025
12041
  type: boolean
12026
12042
  default: false
12027
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.
12028
12048
  ApiKeyDetailsResponse:
12029
12049
  title: API Key Details Response
12030
12050
  type: object
@@ -14155,7 +14175,7 @@ components:
14155
14175
  minimum: 0
14156
14176
  type: number
14157
14177
  format: int32
14158
- 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`
14159
14179
  updatedAt:
14160
14180
  type: string
14161
14181
  example: '2016-08-05T16:43:28.865Z'
@@ -14238,7 +14258,7 @@ components:
14238
14258
  type: string
14239
14259
  minimum: 0
14240
14260
  maximum: 4096
14241
- description: A serialised payload of up to `4096` characters
14261
+ description: A serialized payload of up to `4096` characters
14242
14262
  ConfigsResponse:
14243
14263
  title: Config List Response
14244
14264
  type: object
@@ -14288,7 +14308,7 @@ components:
14288
14308
  type: string
14289
14309
  minimum: 0
14290
14310
  maximum: 4096
14291
- description: A serialised payload of up to `4096` characters
14311
+ description: A serialized payload of up to `4096` characters
14292
14312
  ConfigResponse:
14293
14313
  title: Config Response
14294
14314
  type: object
@@ -14337,7 +14357,7 @@ components:
14337
14357
  type: string
14338
14358
  minimum: 0
14339
14359
  maximum: 4096
14340
- description: A serialised payload of up to `4096` characters
14360
+ description: A serialized payload of up to `4096` characters
14341
14361
  Email:
14342
14362
  title: Email Object
14343
14363
  type: object
@@ -14836,7 +14856,8 @@ components:
14836
14856
  schema:
14837
14857
  type: string
14838
14858
  description: |
14839
- ** Tags **
14859
+ **Tags**
14860
+
14840
14861
  A comma separated list of tags to query over.
14841
14862
 
14842
14863
  Useful if you want to specify the circumstances in which the request was made.
@@ -14868,9 +14889,9 @@ components:
14868
14889
 
14869
14890
  A secret key used for sensitive operations on your account and API Keys.
14870
14891
 
14871
- 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).
14872
14893
 
14873
- Typically beings `uk_...`
14894
+ Typically begins `uk_...`
14874
14895
  example: uk_B59ScW1p1HHouf1VqclEPZUx
14875
14896
  StartParam:
14876
14897
  name: start
@@ -14996,7 +15017,7 @@ components:
14996
15017
  description: |
14997
15018
  **Filter by Bounding Box**
14998
15019
 
14999
- 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.
15000
15021
  Only one geospatial box can be provided.
15001
15022
  example: 2.095,57.15,-2.096,57.14
15002
15023
  PostcodeOutwardParam:
@@ -15122,7 +15143,7 @@ components:
15122
15143
  description: |-
15123
15144
  **Bias by Outward Code**
15124
15145
  Boosts addresses with a matching outward code.
15125
- 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`
15126
15147
  example: SW1A
15127
15148
  BiasPostcodeParam:
15128
15149
  name: bias_postcode
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
  *
@@ -7674,6 +7688,11 @@ export interface components {
7674
7688
  * @default false
7675
7689
  */
7676
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;
7677
7696
  };
7678
7697
  /** API Key Details Response */
7679
7698
  ApiKeyDetailsResponse: {
@@ -10624,9 +10643,23 @@ export interface operations {
10624
10643
  *
10625
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.
10626
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
+ *
10627
10660
  * ## Data Redaction
10628
10661
  *
10629
- * 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.
10630
10663
  *
10631
10664
  * By default, PII will be redacted if it is older than 21 days. This timeframe can be configured from your dashboard.
10632
10665
  *
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.7.0",
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.7.2",
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": "tsgo --noEmit",
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",