@kubb/ast 5.9.6 → 5.10.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/dist/index.d.ts CHANGED
@@ -1084,6 +1084,10 @@ type OperationNodeBase = BaseNode & {
1084
1084
  * Operation responses.
1085
1085
  */
1086
1086
  responses: Array<ResponseNode>;
1087
+ /**
1088
+ * Vendor extensions (`x-*` keys) from the source operation, copied as-is. Absent when the source has none.
1089
+ */
1090
+ extensions?: Record<string, unknown>;
1087
1091
  };
1088
1092
  /**
1089
1093
  * Operation served over HTTP. `method` and `path` are guaranteed.
@@ -1796,9 +1800,22 @@ declare function createFile<TMeta extends object = object>(input: UserFileNode<T
1796
1800
  /**
1797
1801
  * A server from the source document, with `{variable}` placeholders filled from their defaults.
1798
1802
  */
1803
+ /**
1804
+ * A variable declared by a server URL template.
1805
+ */
1806
+ type InputServerVariable = {
1807
+ default?: string;
1808
+ enum?: Array<string>;
1809
+ description?: string;
1810
+ };
1799
1811
  type InputServer = {
1800
1812
  url: string;
1801
1813
  description?: string;
1814
+ /**
1815
+ * Variables of the source URL template, copied as-is. `url` already has their defaults filled in, so
1816
+ * this tells a templated server apart from a literal one. Absent when the server declares none.
1817
+ */
1818
+ variables?: Record<string, InputServerVariable>;
1802
1819
  };
1803
1820
  /**
1804
1821
  * An authentication scheme from the source document, keyed by `name`. `parameterName` is the header, query, or cookie name of an `apiKey`.
@@ -1843,6 +1860,10 @@ type InputMeta = {
1843
1860
  baseURL?: string | null;
1844
1861
  servers?: Array<InputServer>;
1845
1862
  securitySchemes?: Array<InputSecurityScheme>;
1863
+ /**
1864
+ * Vendor extensions (`x-*` keys) from the document root, copied as-is. Absent when the root has none.
1865
+ */
1866
+ extensions?: Record<string, unknown>;
1846
1867
  /**
1847
1868
  * Names of schemas that participate in a circular reference chain.
1848
1869
  * Computed once during the adapter pre-scan, so a generator never has to