@addresszen/openapi 3.8.0 → 4.0.1

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/aliases.ts ADDED
@@ -0,0 +1,25 @@
1
+ // Deprecated aliases for schema names removed in the v4 spec, when the
2
+ // per-dataset address shapes collapsed into the flat `Address` record and the
3
+ // per-status error schemas into `ErrorResponse`. Hand-authored - openapi.ts is
4
+ // generated and must not carry edits.
5
+ //
6
+ // No alias is kept for `UspsAddress`: the v4 spec reuses that name for the
7
+ // native USPS record under `Address.native`, a different shape from the flat
8
+ // address it used to name, and an alias would hide that. The removed UK
9
+ // schemas get no alias either - their endpoints are gone from this spec.
10
+ import type { components } from "./openapi.js";
11
+
12
+ type Schemas = components["schemas"];
13
+
14
+ export type Address = Schemas["Address"];
15
+
16
+ /** @deprecated Use `Address` (`components["schemas"]["Address"]`). */
17
+ export type UsaGlobalAddress = Address;
18
+ /** @deprecated Use `components["schemas"]["AddressSuggestion"]`. */
19
+ export type UkAddressSuggestion = Schemas["AddressSuggestion"];
20
+ /** @deprecated Use `components["schemas"]["ErrorResponse"]`. */
21
+ export type BadRequestResponse = Schemas["ErrorResponse"];
22
+ /** @deprecated Use `components["schemas"]["ErrorResponse"]`. */
23
+ export type UnauthorizedResponse = Schemas["ErrorResponse"];
24
+ /** @deprecated Use `components["schemas"]["ErrorResponse"]`. */
25
+ export type RateLimitedResponse = Schemas["ErrorResponse"];
@@ -13,7 +13,7 @@ var __copyProps = (to, from, except, desc) => {
13
13
  };
14
14
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
15
 
16
- // openapi.ts
17
- var openapi_exports = {};
18
- module.exports = __toCommonJS(openapi_exports);
19
- //# sourceMappingURL=openapi.cjs.map
16
+ // index.ts
17
+ var index_exports = {};
18
+ module.exports = __toCommonJS(index_exports);
19
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../index.ts"],"sourcesContent":["export * from \"./openapi.js\";\nexport * from \"./aliases.js\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}