@viu/emporix-sdk 2.20.0 → 2.21.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/dist/availability.d.cts +1 -1
  3. package/dist/availability.d.ts +1 -1
  4. package/dist/cart.cjs +23 -8
  5. package/dist/cart.cjs.map +1 -1
  6. package/dist/cart.d.cts +13 -3
  7. package/dist/cart.d.ts +13 -3
  8. package/dist/cart.js +1 -1
  9. package/dist/category.d.cts +1 -1
  10. package/dist/category.d.ts +1 -1
  11. package/dist/checkout.d.cts +1 -1
  12. package/dist/checkout.d.ts +1 -1
  13. package/dist/{chunk-BNX3JULF.js → chunk-44F52KRE.js} +7 -5
  14. package/dist/chunk-44F52KRE.js.map +1 -0
  15. package/dist/{chunk-NEXUWPHW.js → chunk-HBEQEIT6.js} +5 -5
  16. package/dist/chunk-HBEQEIT6.js.map +1 -0
  17. package/dist/{chunk-EAWGUZHS.js → chunk-HD5RBCM6.js} +7 -5
  18. package/dist/chunk-HD5RBCM6.js.map +1 -0
  19. package/dist/{chunk-PAT4CS36.js → chunk-HUEMYP2L.js} +25 -10
  20. package/dist/chunk-HUEMYP2L.js.map +1 -0
  21. package/dist/{chunk-DUVIIWFG.js → chunk-IAOWDMTA.js} +7 -5
  22. package/dist/chunk-IAOWDMTA.js.map +1 -0
  23. package/dist/companies.cjs +5 -3
  24. package/dist/companies.cjs.map +1 -1
  25. package/dist/companies.d.cts +5 -3
  26. package/dist/companies.d.ts +5 -3
  27. package/dist/companies.js +1 -1
  28. package/dist/contacts.cjs +5 -3
  29. package/dist/contacts.cjs.map +1 -1
  30. package/dist/contacts.d.cts +5 -3
  31. package/dist/contacts.d.ts +5 -3
  32. package/dist/contacts.js +1 -1
  33. package/dist/{context-Dawv2AtS.d.cts → context-CfXJcYKP.d.cts} +1 -1
  34. package/dist/{context-Dawv2AtS.d.ts → context-CfXJcYKP.d.ts} +1 -1
  35. package/dist/customer-groups.d.cts +1 -1
  36. package/dist/customer-groups.d.ts +1 -1
  37. package/dist/customer.cjs +3 -3
  38. package/dist/customer.cjs.map +1 -1
  39. package/dist/customer.d.cts +1 -1
  40. package/dist/customer.d.ts +1 -1
  41. package/dist/customer.js +1 -1
  42. package/dist/index.cjs +687 -235
  43. package/dist/index.cjs.map +1 -1
  44. package/dist/index.d.cts +2167 -149
  45. package/dist/index.d.ts +2167 -149
  46. package/dist/index.js +655 -226
  47. package/dist/index.js.map +1 -1
  48. package/dist/locations.cjs +5 -3
  49. package/dist/locations.cjs.map +1 -1
  50. package/dist/locations.d.cts +5 -3
  51. package/dist/locations.d.ts +5 -3
  52. package/dist/locations.js +1 -1
  53. package/dist/media.d.cts +1 -1
  54. package/dist/media.d.ts +1 -1
  55. package/dist/orders.d.cts +1 -1
  56. package/dist/orders.d.ts +1 -1
  57. package/dist/payment.d.cts +1 -1
  58. package/dist/payment.d.ts +1 -1
  59. package/dist/price.d.cts +6 -6
  60. package/dist/price.d.ts +6 -6
  61. package/dist/product.d.cts +1 -1
  62. package/dist/product.d.ts +1 -1
  63. package/dist/segment.d.cts +1 -1
  64. package/dist/segment.d.ts +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunk-BNX3JULF.js.map +0 -1
  67. package/dist/chunk-DUVIIWFG.js.map +0 -1
  68. package/dist/chunk-EAWGUZHS.js.map +0 -1
  69. package/dist/chunk-NEXUWPHW.js.map +0 -1
  70. package/dist/chunk-PAT4CS36.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { LocationsService } from './chunk-DUVIIWFG.js';
2
- export { LocationsService } from './chunk-DUVIIWFG.js';
1
+ import { LocationsService } from './chunk-IAOWDMTA.js';
2
+ export { LocationsService } from './chunk-IAOWDMTA.js';
3
3
  import { MediaService } from './chunk-OTG2S2L4.js';
4
4
  export { MediaService } from './chunk-OTG2S2L4.js';
5
5
  import { OrdersService, SalesOrdersService } from './chunk-36T4YPQJ.js';
@@ -14,8 +14,8 @@ import { SegmentService } from './chunk-NE7MIZPR.js';
14
14
  export { SegmentService } from './chunk-NE7MIZPR.js';
15
15
  import { AvailabilityService } from './chunk-IVCCGJN5.js';
16
16
  export { AvailabilityService } from './chunk-IVCCGJN5.js';
17
- import { CartService } from './chunk-PAT4CS36.js';
18
- export { CartService } from './chunk-PAT4CS36.js';
17
+ import { CartService } from './chunk-HUEMYP2L.js';
18
+ export { CartService } from './chunk-HUEMYP2L.js';
19
19
  import { CategoryService } from './chunk-ZNLHLFQM.js';
20
20
  export { CategoryService } from './chunk-ZNLHLFQM.js';
21
21
  export { iterateAll } from './chunk-GWJ2U2CP.js';
@@ -23,14 +23,14 @@ import { resolveQuery } from './chunk-S5HEIQDK.js';
23
23
  export { resolveQuery } from './chunk-S5HEIQDK.js';
24
24
  import { CheckoutService } from './chunk-RYQVMR26.js';
25
25
  export { CheckoutService } from './chunk-RYQVMR26.js';
26
- import { CompaniesService } from './chunk-BNX3JULF.js';
27
- export { CompaniesService } from './chunk-BNX3JULF.js';
28
- import { ContactsService } from './chunk-EAWGUZHS.js';
29
- export { ContactsService } from './chunk-EAWGUZHS.js';
26
+ import { CompaniesService } from './chunk-44F52KRE.js';
27
+ export { CompaniesService } from './chunk-44F52KRE.js';
28
+ import { ContactsService } from './chunk-HD5RBCM6.js';
29
+ export { ContactsService } from './chunk-HD5RBCM6.js';
30
30
  import { CustomerGroupsService } from './chunk-3BTPX7IJ.js';
31
31
  export { CustomerGroupsService } from './chunk-3BTPX7IJ.js';
32
- import { CustomerService } from './chunk-NEXUWPHW.js';
33
- export { CustomerService } from './chunk-NEXUWPHW.js';
32
+ import { CustomerService } from './chunk-HBEQEIT6.js';
33
+ export { CustomerService } from './chunk-HBEQEIT6.js';
34
34
  import './chunk-3BDDYX3V.js';
35
35
  import { EmporixTimeoutError, EmporixNetworkError, errorFromResponse, EmporixNotFoundError, EmporixError } from './chunk-UWGGF4MC.js';
36
36
  export { EmporixAuthError, EmporixError, EmporixForbiddenError, EmporixInsufficientScopeError, EmporixNetworkError, EmporixNotFoundError, EmporixServerError, EmporixTimeoutError, EmporixValidationError, errorFromResponse } from './chunk-UWGGF4MC.js';
@@ -591,7 +591,7 @@ var HttpClient = class {
591
591
  };
592
592
 
593
593
  // package.json
594
- var version = "2.20.0";
594
+ var version = "2.21.0";
595
595
 
596
596
  // src/version.ts
597
597
  var SDK_VERSION = version;
@@ -1647,8 +1647,165 @@ var SchemaService = class {
1647
1647
  }
1648
1648
  };
1649
1649
 
1650
- // src/services/ai.ts
1650
+ // src/services/ai-resources.ts
1651
1651
  var SERVICE8 = { kind: "service" };
1652
+ var AgenticCrudResource = class {
1653
+ constructor(ctx, path) {
1654
+ this.ctx = ctx;
1655
+ this.path = path;
1656
+ }
1657
+ ctx;
1658
+ path;
1659
+ item(id) {
1660
+ return `${this.path}/${encodeURIComponent(id)}`;
1661
+ }
1662
+ /** List the collection (`GET {path}`). Optional `q`/paging/sort/fields/expand. */
1663
+ list(query = {}, auth2 = SERVICE8) {
1664
+ return this.ctx.http.request({ method: "GET", path: this.path, auth: auth2, query: { ...query } });
1665
+ }
1666
+ /** Structured search (`POST {path}/search`). Body is `{ q? }`. */
1667
+ search(query, auth2 = SERVICE8) {
1668
+ return this.ctx.http.request({ method: "POST", path: `${this.path}/search`, auth: auth2, body: query });
1669
+ }
1670
+ /** Retrieve one entry by id (`GET {path}/{id}`). */
1671
+ get(id, opts = {}, auth2 = SERVICE8) {
1672
+ return this.ctx.http.request({ method: "GET", path: this.item(id), auth: auth2, query: { ...opts } });
1673
+ }
1674
+ /**
1675
+ * Create-or-replace by id (`PUT {path}/{id}`). Resolves to `{ id }` on create
1676
+ * (HTTP 201) and `undefined` on update (HTTP 204). `{ force: true }`
1677
+ * cascade-disables dependents.
1678
+ */
1679
+ upsert(id, body, opts = {}, auth2 = SERVICE8) {
1680
+ return this.ctx.http.request({
1681
+ method: "PUT",
1682
+ path: this.item(id),
1683
+ auth: auth2,
1684
+ body,
1685
+ ...opts.force ? { query: { force: "true" } } : {}
1686
+ });
1687
+ }
1688
+ /**
1689
+ * Partial update with an op array (`PATCH {path}/{id}`, 204). `ops` use the
1690
+ * upstream UPPERCASE enum (`ADD | REMOVE | REPLACE`), sent verbatim.
1691
+ */
1692
+ async patch(id, ops, auth2 = SERVICE8) {
1693
+ await this.ctx.http.request({ method: "PATCH", path: this.item(id), auth: auth2, body: ops });
1694
+ }
1695
+ /** Delete by id (`DELETE {path}/{id}`). `{ force: true }` removes even if referenced. */
1696
+ async delete(id, opts = {}, auth2 = SERVICE8) {
1697
+ await this.ctx.http.request({
1698
+ method: "DELETE",
1699
+ path: this.item(id),
1700
+ auth: auth2,
1701
+ ...opts.force ? { query: { force: "true" } } : {}
1702
+ });
1703
+ }
1704
+ };
1705
+ var JobsResource = class {
1706
+ constructor(ctx, base) {
1707
+ this.ctx = ctx;
1708
+ this.base = base;
1709
+ }
1710
+ ctx;
1711
+ base;
1712
+ /** List jobs (`GET /jobs`). */
1713
+ list(query = {}, auth2 = SERVICE8) {
1714
+ return this.ctx.http.request({ method: "GET", path: `${this.base}/jobs`, auth: auth2, query: { ...query } });
1715
+ }
1716
+ /** Structured job search (`POST /jobs/search`). */
1717
+ search(query, auth2 = SERVICE8) {
1718
+ return this.ctx.http.request({ method: "POST", path: `${this.base}/jobs/search`, auth: auth2, body: query });
1719
+ }
1720
+ /** Retrieve one job (`GET /jobs/{jobId}`). */
1721
+ get(jobId, auth2 = SERVICE8) {
1722
+ return this.ctx.http.request({ method: "GET", path: `${this.base}/jobs/${encodeURIComponent(jobId)}`, auth: auth2 });
1723
+ }
1724
+ /** Delete one job (`DELETE /jobs/{jobId}`). */
1725
+ async delete(jobId, auth2 = SERVICE8) {
1726
+ await this.ctx.http.request({ method: "DELETE", path: `${this.base}/jobs/${encodeURIComponent(jobId)}`, auth: auth2 });
1727
+ }
1728
+ };
1729
+ var TemplatesResource = class {
1730
+ constructor(ctx, path) {
1731
+ this.ctx = ctx;
1732
+ this.path = path;
1733
+ }
1734
+ ctx;
1735
+ path;
1736
+ /** List available templates (`GET /agentic/templates`). */
1737
+ list(query = {}, auth2 = SERVICE8) {
1738
+ return this.ctx.http.request({ method: "GET", path: this.path, auth: auth2, query: { ...query } });
1739
+ }
1740
+ /** Structured template search (`POST /agentic/templates/search`). */
1741
+ search(query, auth2 = SERVICE8) {
1742
+ return this.ctx.http.request({ method: "POST", path: `${this.path}/search`, auth: auth2, body: query });
1743
+ }
1744
+ /**
1745
+ * Instantiate a new agent from a template
1746
+ * (`POST /agentic/templates/{templateId}/agents`, HTTP 201). Returns the
1747
+ * created agent's id.
1748
+ */
1749
+ clone(templateId, body, auth2 = SERVICE8) {
1750
+ return this.ctx.http.request({
1751
+ method: "POST",
1752
+ path: `${this.path}/${encodeURIComponent(templateId)}/agents`,
1753
+ auth: auth2,
1754
+ body
1755
+ });
1756
+ }
1757
+ };
1758
+ var LogsResource = class {
1759
+ constructor(ctx, path) {
1760
+ this.ctx = ctx;
1761
+ this.path = path;
1762
+ }
1763
+ ctx;
1764
+ path;
1765
+ /** List request logs (`GET /agentic/logs/requests`). */
1766
+ listRequests(query = {}, auth2 = SERVICE8) {
1767
+ return this.ctx.http.request({ method: "GET", path: `${this.path}/requests`, auth: auth2, query: { ...query } });
1768
+ }
1769
+ /** Retrieve one request log (`GET /agentic/logs/requests/{requestId}`). */
1770
+ getRequest(requestId, auth2 = SERVICE8) {
1771
+ return this.ctx.http.request({ method: "GET", path: `${this.path}/requests/${encodeURIComponent(requestId)}`, auth: auth2 });
1772
+ }
1773
+ /** Structured request-log search (`POST /agentic/logs/requests/search`). */
1774
+ searchRequests(query, auth2 = SERVICE8) {
1775
+ return this.ctx.http.request({ method: "POST", path: `${this.path}/requests/search`, auth: auth2, body: query });
1776
+ }
1777
+ /** List session logs (`GET /agentic/logs/sessions`). */
1778
+ listSessions(query = {}, auth2 = SERVICE8) {
1779
+ return this.ctx.http.request({ method: "GET", path: `${this.path}/sessions`, auth: auth2, query: { ...query } });
1780
+ }
1781
+ /** Retrieve one session log (`GET /agentic/logs/sessions/{sessionId}`). */
1782
+ getSession(sessionId, auth2 = SERVICE8) {
1783
+ return this.ctx.http.request({ method: "GET", path: `${this.path}/sessions/${encodeURIComponent(sessionId)}`, auth: auth2 });
1784
+ }
1785
+ /** Structured session-log search (`POST /agentic/logs/sessions/search`). */
1786
+ searchSessions(query, auth2 = SERVICE8) {
1787
+ return this.ctx.http.request({ method: "POST", path: `${this.path}/sessions/search`, auth: auth2, body: query });
1788
+ }
1789
+ };
1790
+ var AnalyticsResource = class {
1791
+ constructor(ctx, path) {
1792
+ this.ctx = ctx;
1793
+ this.path = path;
1794
+ }
1795
+ ctx;
1796
+ path;
1797
+ /** Aggregated metrics (`GET /agentic/analytics`); scope with `agentId`. */
1798
+ get(opts = {}, auth2 = SERVICE8) {
1799
+ return this.ctx.http.request({ method: "GET", path: this.path, auth: auth2, query: { ...opts } });
1800
+ }
1801
+ /** Per-agent execution counts (`GET /agentic/analytics/executions`). `agentIds` required. */
1802
+ executions(query, auth2 = SERVICE8) {
1803
+ return this.ctx.http.request({ method: "GET", path: `${this.path}/executions`, auth: auth2, query: { ...query } });
1804
+ }
1805
+ };
1806
+
1807
+ // src/services/ai.ts
1808
+ var SERVICE9 = { kind: "service" };
1652
1809
  var AiService = class {
1653
1810
  constructor(ctx) {
1654
1811
  this.ctx = ctx;
@@ -1658,8 +1815,49 @@ var AiService = class {
1658
1815
  base() {
1659
1816
  return `/ai-service/${this.ctx.tenant}`;
1660
1817
  }
1818
+ // --- Agentic building blocks (CRUD sub-resources) ----------------------
1819
+ _oauths;
1820
+ /** OAuth 2.0 client-credentials configs (`/agentic/oauths`). CRUD sub-resource. */
1821
+ get oauths() {
1822
+ return this._oauths ??= new AgenticCrudResource(this.ctx, `${this.base()}/agentic/oauths`);
1823
+ }
1824
+ _tools;
1825
+ /** Agentic tools (`/agentic/tools`). CRUD sub-resource. */
1826
+ get tools() {
1827
+ return this._tools ??= new AgenticCrudResource(this.ctx, `${this.base()}/agentic/tools`);
1828
+ }
1829
+ _tokens;
1830
+ /** Stored tokens (`/agentic/tokens`) — an OAuth config's client secret. CRUD sub-resource. */
1831
+ get tokens() {
1832
+ return this._tokens ??= new AgenticCrudResource(this.ctx, `${this.base()}/agentic/tokens`);
1833
+ }
1834
+ _mcpServers;
1835
+ /** MCP-server configs (`/agentic/mcp-servers`). CRUD sub-resource. */
1836
+ get mcpServers() {
1837
+ return this._mcpServers ??= new AgenticCrudResource(this.ctx, `${this.base()}/agentic/mcp-servers`);
1838
+ }
1839
+ _jobs;
1840
+ /** AI async jobs (`/jobs`). `list · search · get · delete`. */
1841
+ get jobs() {
1842
+ return this._jobs ??= new JobsResource(this.ctx, this.base());
1843
+ }
1844
+ _templates;
1845
+ /** Agent templates (`/agentic/templates`). `list · search · clone`. */
1846
+ get templates() {
1847
+ return this._templates ??= new TemplatesResource(this.ctx, `${this.base()}/agentic/templates`);
1848
+ }
1849
+ _logs;
1850
+ /** Agent logs (`/agentic/logs`): request + session logs. */
1851
+ get logs() {
1852
+ return this._logs ??= new LogsResource(this.ctx, `${this.base()}/agentic/logs`);
1853
+ }
1854
+ _analytics;
1855
+ /** Agent analytics (`/agentic/analytics`). `get · executions`. */
1856
+ get analytics() {
1857
+ return this._analytics ??= new AnalyticsResource(this.ctx, `${this.base()}/agentic/analytics`);
1858
+ }
1661
1859
  /** Generate text from a single prompt (`POST /texts`). Honors `maxTokens`. */
1662
- async generateText(input, auth2 = SERVICE8) {
1860
+ async generateText(input, auth2 = SERVICE9) {
1663
1861
  return this.ctx.http.request({
1664
1862
  method: "POST",
1665
1863
  path: `${this.base()}/texts`,
@@ -1668,7 +1866,7 @@ var AiService = class {
1668
1866
  });
1669
1867
  }
1670
1868
  /** Run a chat completion over a message list (`POST /completions`). No `maxTokens`. */
1671
- async complete(input, auth2 = SERVICE8) {
1869
+ async complete(input, auth2 = SERVICE9) {
1672
1870
  return this.ctx.http.request({
1673
1871
  method: "POST",
1674
1872
  path: `${this.base()}/completions`,
@@ -1677,7 +1875,7 @@ var AiService = class {
1677
1875
  });
1678
1876
  }
1679
1877
  /** List all agentic agents. */
1680
- async listAgents(auth2 = SERVICE8) {
1878
+ async listAgents(auth2 = SERVICE9) {
1681
1879
  return this.ctx.http.request({
1682
1880
  method: "GET",
1683
1881
  path: `${this.base()}/agentic/agents`,
@@ -1685,7 +1883,7 @@ var AiService = class {
1685
1883
  });
1686
1884
  }
1687
1885
  /** Retrieve one agent by id. */
1688
- async getAgent(id, auth2 = SERVICE8) {
1886
+ async getAgent(id, auth2 = SERVICE9) {
1689
1887
  return this.ctx.http.request({
1690
1888
  method: "GET",
1691
1889
  path: `${this.base()}/agentic/agents/${encodeURIComponent(id)}`,
@@ -1693,7 +1891,7 @@ var AiService = class {
1693
1891
  });
1694
1892
  }
1695
1893
  /** Create-or-replace an agent by id (`PUT`). Takes the agent write shape. */
1696
- async upsertAgent(id, agent, auth2 = SERVICE8) {
1894
+ async upsertAgent(id, agent, auth2 = SERVICE9) {
1697
1895
  return this.ctx.http.request({
1698
1896
  method: "PUT",
1699
1897
  path: `${this.base()}/agentic/agents/${encodeURIComponent(id)}`,
@@ -1706,7 +1904,7 @@ var AiService = class {
1706
1904
  * UPPERCASE enum (`ADD | REMOVE | REPLACE`) and are sent verbatim — this is
1707
1905
  * NOT RFC-6902 JSON-Patch.
1708
1906
  */
1709
- async patchAgent(id, ops, auth2 = SERVICE8) {
1907
+ async patchAgent(id, ops, auth2 = SERVICE9) {
1710
1908
  return this.ctx.http.request({
1711
1909
  method: "PATCH",
1712
1910
  path: `${this.base()}/agentic/agents/${encodeURIComponent(id)}`,
@@ -1718,7 +1916,7 @@ var AiService = class {
1718
1916
  * Delete an agent by id. Pass `{ force: true }` to delete an agent that is
1719
1917
  * still referenced elsewhere (`?force=true`).
1720
1918
  */
1721
- async deleteAgent(id, auth2 = SERVICE8, opts = {}) {
1919
+ async deleteAgent(id, auth2 = SERVICE9, opts = {}) {
1722
1920
  await this.ctx.http.request({
1723
1921
  method: "DELETE",
1724
1922
  path: `${this.base()}/agentic/agents/${encodeURIComponent(id)}`,
@@ -1727,7 +1925,7 @@ var AiService = class {
1727
1925
  });
1728
1926
  }
1729
1927
  /** Server-side agent search (`POST /agentic/agents/search`). */
1730
- async searchAgents(query, auth2 = SERVICE8) {
1928
+ async searchAgents(query, auth2 = SERVICE9) {
1731
1929
  return this.ctx.http.request({
1732
1930
  method: "POST",
1733
1931
  path: `${this.base()}/agentic/agents/search`,
@@ -1739,7 +1937,7 @@ var AiService = class {
1739
1937
  * Synchronous agent chat (`POST /agentic/chat`). Returns the response
1740
1938
  * ARRAY verbatim (the upstream contract is an array, not a single object).
1741
1939
  */
1742
- async chat(input, auth2 = SERVICE8) {
1940
+ async chat(input, auth2 = SERVICE9) {
1743
1941
  return this.ctx.http.request({
1744
1942
  method: "POST",
1745
1943
  path: `${this.base()}/agentic/chat`,
@@ -1751,7 +1949,7 @@ var AiService = class {
1751
1949
  * Fire-and-forget agent chat (`POST /agentic/chat-async`, HTTP 201).
1752
1950
  * Returns the job-id ARRAY verbatim.
1753
1951
  */
1754
- async chatAsync(input, auth2 = SERVICE8) {
1952
+ async chatAsync(input, auth2 = SERVICE9) {
1755
1953
  return this.ctx.http.request({
1756
1954
  method: "POST",
1757
1955
  path: `${this.base()}/agentic/chat-async`,
@@ -1765,7 +1963,7 @@ var AiService = class {
1765
1963
  * stream body as an opaque string, so chunks are raw strings, not parsed
1766
1964
  * objects. Consume with `for await`.
1767
1965
  */
1768
- async *chatStream(input, opts = {}, auth2 = SERVICE8) {
1966
+ async *chatStream(input, opts = {}, auth2 = SERVICE9) {
1769
1967
  const events = this.ctx.http.requestStream({
1770
1968
  method: "POST",
1771
1969
  path: `${this.base()}/agentic/chat-stream`,
@@ -1776,7 +1974,7 @@ var AiService = class {
1776
1974
  for await (const ev of events) yield ev.data;
1777
1975
  }
1778
1976
  /** List stored agentic conversations (`GET /agentic/conversations`). */
1779
- async listConversations(auth2 = SERVICE8) {
1977
+ async listConversations(auth2 = SERVICE9) {
1780
1978
  return this.ctx.http.request({
1781
1979
  method: "GET",
1782
1980
  path: `${this.base()}/agentic/conversations`,
@@ -1784,7 +1982,7 @@ var AiService = class {
1784
1982
  });
1785
1983
  }
1786
1984
  /** Server-side conversation search (`POST /agentic/conversations/search`). */
1787
- async searchConversations(query, auth2 = SERVICE8) {
1985
+ async searchConversations(query, auth2 = SERVICE9) {
1788
1986
  return this.ctx.http.request({
1789
1987
  method: "POST",
1790
1988
  path: `${this.base()}/agentic/conversations/search`,
@@ -1792,10 +1990,62 @@ var AiService = class {
1792
1990
  body: query
1793
1991
  });
1794
1992
  }
1993
+ // --- Standalone agentic reads / bulk operations ------------------------
1994
+ /** List models available to the tenant, grouped by provider (`GET /agentic/models`). */
1995
+ async listModels(auth2 = SERVICE9) {
1996
+ return this.ctx.http.request({
1997
+ method: "GET",
1998
+ path: `${this.base()}/agentic/models`,
1999
+ auth: auth2
2000
+ });
2001
+ }
2002
+ /** List commerce events available to agent triggers (`GET /agentic/commerce-events`). */
2003
+ async listCommerceEvents(auth2 = SERVICE9) {
2004
+ return this.ctx.http.request({
2005
+ method: "GET",
2006
+ path: `${this.base()}/agentic/commerce-events`,
2007
+ auth: auth2
2008
+ });
2009
+ }
2010
+ /**
2011
+ * Upload a chat attachment for an agent
2012
+ * (`POST /agentic/{agentId}/attachments`, multipart, HTTP 201). The response
2013
+ * `sessionId` must be threaded into subsequent chat calls to bind the file.
2014
+ * Pass `opts.sessionId` to attach to an existing session.
2015
+ */
2016
+ async uploadAttachment(agentId, attachment, opts = {}, auth2 = SERVICE9) {
2017
+ const form = new FormData();
2018
+ form.append("attachment", attachment);
2019
+ return this.ctx.http.request({
2020
+ method: "POST",
2021
+ path: `${this.base()}/agentic/${encodeURIComponent(agentId)}/attachments`,
2022
+ auth: auth2,
2023
+ body: form,
2024
+ ...opts.sessionId ? { headers: { "session-id": opts.sessionId } } : {}
2025
+ });
2026
+ }
2027
+ /** Export agents + components as a base64/checksum blob (`POST /agentic/agents/export`). */
2028
+ async exportAgents(body, auth2 = SERVICE9) {
2029
+ return this.ctx.http.request({
2030
+ method: "POST",
2031
+ path: `${this.base()}/agentic/agents/export`,
2032
+ auth: auth2,
2033
+ body
2034
+ });
2035
+ }
2036
+ /** Import previously-exported agents (`POST /agentic/agents/import`). */
2037
+ async importAgents(body, auth2 = SERVICE9) {
2038
+ return this.ctx.http.request({
2039
+ method: "POST",
2040
+ path: `${this.base()}/agentic/agents/import`,
2041
+ auth: auth2,
2042
+ body
2043
+ });
2044
+ }
1795
2045
  };
1796
2046
 
1797
2047
  // src/services/tax.ts
1798
- var SERVICE9 = { kind: "service" };
2048
+ var SERVICE10 = { kind: "service" };
1799
2049
  var TaxService = class {
1800
2050
  constructor(ctx) {
1801
2051
  this.ctx = ctx;
@@ -1806,7 +2056,7 @@ var TaxService = class {
1806
2056
  return `/tax/${this.ctx.tenant}`;
1807
2057
  }
1808
2058
  /** List all per-location tax configurations. */
1809
- async listTaxConfigs(auth2 = SERVICE9) {
2059
+ async listTaxConfigs(auth2 = SERVICE10) {
1810
2060
  return this.ctx.http.request({
1811
2061
  method: "GET",
1812
2062
  path: `${this.base()}/taxes`,
@@ -1814,7 +2064,7 @@ var TaxService = class {
1814
2064
  });
1815
2065
  }
1816
2066
  /** Retrieve one tax configuration by its location (country) code. */
1817
- async getTaxConfig(locationCode, auth2 = SERVICE9) {
2067
+ async getTaxConfig(locationCode, auth2 = SERVICE10) {
1818
2068
  return this.ctx.http.request({
1819
2069
  method: "GET",
1820
2070
  path: `${this.base()}/taxes/${encodeURIComponent(locationCode)}`,
@@ -1822,7 +2072,7 @@ var TaxService = class {
1822
2072
  });
1823
2073
  }
1824
2074
  /** Create a tax configuration (`POST`). Returns the created `{ locationCode }`. */
1825
- async createTaxConfig(input, auth2 = SERVICE9) {
2075
+ async createTaxConfig(input, auth2 = SERVICE10) {
1826
2076
  return this.ctx.http.request({
1827
2077
  method: "POST",
1828
2078
  path: `${this.base()}/taxes`,
@@ -1834,7 +2084,7 @@ var TaxService = class {
1834
2084
  * Update a tax configuration by location code (`PUT`). `metadata.version` is
1835
2085
  * required (optimistic locking — a stale version yields 409).
1836
2086
  */
1837
- async updateTaxConfig(locationCode, input, auth2 = SERVICE9) {
2087
+ async updateTaxConfig(locationCode, input, auth2 = SERVICE10) {
1838
2088
  return this.ctx.http.request({
1839
2089
  method: "PUT",
1840
2090
  path: `${this.base()}/taxes/${encodeURIComponent(locationCode)}`,
@@ -1843,7 +2093,7 @@ var TaxService = class {
1843
2093
  });
1844
2094
  }
1845
2095
  /** Delete a tax configuration by location code. */
1846
- async deleteTaxConfig(locationCode, auth2 = SERVICE9) {
2096
+ async deleteTaxConfig(locationCode, auth2 = SERVICE10) {
1847
2097
  await this.ctx.http.request({
1848
2098
  method: "DELETE",
1849
2099
  path: `${this.base()}/taxes/${encodeURIComponent(locationCode)}`,
@@ -1854,7 +2104,7 @@ var TaxService = class {
1854
2104
  * Calculate net/gross values for a price (`PUT /taxes/calculation-commands`).
1855
2105
  * Single command in, single result out.
1856
2106
  */
1857
- async calculateTax(request, auth2 = SERVICE9) {
2107
+ async calculateTax(request, auth2 = SERVICE10) {
1858
2108
  return this.ctx.http.request({
1859
2109
  method: "PUT",
1860
2110
  path: `${this.base()}/taxes/calculation-commands`,
@@ -1865,7 +2115,7 @@ var TaxService = class {
1865
2115
  };
1866
2116
 
1867
2117
  // src/services/coupon.ts
1868
- var SERVICE10 = { kind: "service" };
2118
+ var SERVICE11 = { kind: "service" };
1869
2119
  var CouponService = class {
1870
2120
  constructor(ctx) {
1871
2121
  this.ctx = ctx;
@@ -1876,7 +2126,7 @@ var CouponService = class {
1876
2126
  return `/coupon/${this.ctx.tenant}`;
1877
2127
  }
1878
2128
  /** List coupons by criteria. Returns a plain array. */
1879
- async listCoupons(query = {}, auth2 = SERVICE10) {
2129
+ async listCoupons(query = {}, auth2 = SERVICE11) {
1880
2130
  return this.ctx.http.request({
1881
2131
  method: "GET",
1882
2132
  path: `${this.base()}/coupons`,
@@ -1885,7 +2135,7 @@ var CouponService = class {
1885
2135
  });
1886
2136
  }
1887
2137
  /** Retrieve one coupon by code. */
1888
- async getCoupon(code, auth2 = SERVICE10) {
2138
+ async getCoupon(code, auth2 = SERVICE11) {
1889
2139
  return this.ctx.http.request({
1890
2140
  method: "GET",
1891
2141
  path: `${this.base()}/coupons/${encodeURIComponent(code)}`,
@@ -1893,7 +2143,7 @@ var CouponService = class {
1893
2143
  });
1894
2144
  }
1895
2145
  /** Create a coupon (`POST`, HTTP 201). Returns the created resource's `{ id?, yrn? }`. */
1896
- async createCoupon(input, auth2 = SERVICE10) {
2146
+ async createCoupon(input, auth2 = SERVICE11) {
1897
2147
  return this.ctx.http.request({
1898
2148
  method: "POST",
1899
2149
  path: `${this.base()}/coupons`,
@@ -1902,7 +2152,7 @@ var CouponService = class {
1902
2152
  });
1903
2153
  }
1904
2154
  /** Replace a coupon by code (`PUT`). Resolves once the update is accepted. */
1905
- async updateCoupon(code, input, auth2 = SERVICE10) {
2155
+ async updateCoupon(code, input, auth2 = SERVICE11) {
1906
2156
  await this.ctx.http.request({
1907
2157
  method: "PUT",
1908
2158
  path: `${this.base()}/coupons/${encodeURIComponent(code)}`,
@@ -1911,7 +2161,7 @@ var CouponService = class {
1911
2161
  });
1912
2162
  }
1913
2163
  /** Partially update a coupon by code (`PATCH` merge body). */
1914
- async patchCoupon(code, patch, auth2 = SERVICE10) {
2164
+ async patchCoupon(code, patch, auth2 = SERVICE11) {
1915
2165
  await this.ctx.http.request({
1916
2166
  method: "PATCH",
1917
2167
  path: `${this.base()}/coupons/${encodeURIComponent(code)}`,
@@ -1920,7 +2170,7 @@ var CouponService = class {
1920
2170
  });
1921
2171
  }
1922
2172
  /** Delete a coupon by code. */
1923
- async deleteCoupon(code, auth2 = SERVICE10) {
2173
+ async deleteCoupon(code, auth2 = SERVICE11) {
1924
2174
  await this.ctx.http.request({
1925
2175
  method: "DELETE",
1926
2176
  path: `${this.base()}/coupons/${encodeURIComponent(code)}`,
@@ -1931,7 +2181,7 @@ var CouponService = class {
1931
2181
  * Check whether a coupon can be redeemed (`POST /validation`). Resolves when
1932
2182
  * redeemable; throws an `EmporixError` otherwise (no response body).
1933
2183
  */
1934
- async validateCoupon(code, redemption, auth2 = SERVICE10) {
2184
+ async validateCoupon(code, redemption, auth2 = SERVICE11) {
1935
2185
  await this.ctx.http.request({
1936
2186
  method: "POST",
1937
2187
  path: `${this.base()}/coupons/${encodeURIComponent(code)}/validation`,
@@ -1940,7 +2190,7 @@ var CouponService = class {
1940
2190
  });
1941
2191
  }
1942
2192
  /** List a coupon's redemptions by criteria. */
1943
- async listRedemptions(code, query = {}, auth2 = SERVICE10) {
2193
+ async listRedemptions(code, query = {}, auth2 = SERVICE11) {
1944
2194
  return this.ctx.http.request({
1945
2195
  method: "GET",
1946
2196
  path: `${this.base()}/coupons/${encodeURIComponent(code)}/redemptions`,
@@ -1949,7 +2199,7 @@ var CouponService = class {
1949
2199
  });
1950
2200
  }
1951
2201
  /** Redeem a coupon by creating a redemption (`POST`, HTTP 201). Returns the resource location. */
1952
- async redeemCoupon(code, redemption, auth2 = SERVICE10) {
2202
+ async redeemCoupon(code, redemption, auth2 = SERVICE11) {
1953
2203
  return this.ctx.http.request({
1954
2204
  method: "POST",
1955
2205
  path: `${this.base()}/coupons/${encodeURIComponent(code)}/redemptions`,
@@ -1958,7 +2208,7 @@ var CouponService = class {
1958
2208
  });
1959
2209
  }
1960
2210
  /** Retrieve one redemption by id. */
1961
- async getRedemption(code, id, auth2 = SERVICE10) {
2211
+ async getRedemption(code, id, auth2 = SERVICE11) {
1962
2212
  return this.ctx.http.request({
1963
2213
  method: "GET",
1964
2214
  path: `${this.base()}/coupons/${encodeURIComponent(code)}/redemptions/${encodeURIComponent(id)}`,
@@ -1966,7 +2216,7 @@ var CouponService = class {
1966
2216
  });
1967
2217
  }
1968
2218
  /** Delete a redemption by id. */
1969
- async deleteRedemption(code, id, auth2 = SERVICE10) {
2219
+ async deleteRedemption(code, id, auth2 = SERVICE11) {
1970
2220
  await this.ctx.http.request({
1971
2221
  method: "DELETE",
1972
2222
  path: `${this.base()}/coupons/${encodeURIComponent(code)}/redemptions/${encodeURIComponent(id)}`,
@@ -1974,7 +2224,7 @@ var CouponService = class {
1974
2224
  });
1975
2225
  }
1976
2226
  /** Retrieve a customer's referral coupon (resolves to an empty body when none exists). */
1977
- async getReferralCoupon(customerNumber, auth2 = SERVICE10) {
2227
+ async getReferralCoupon(customerNumber, auth2 = SERVICE11) {
1978
2228
  return this.ctx.http.request({
1979
2229
  method: "GET",
1980
2230
  path: `${this.base()}/referral-coupons/${encodeURIComponent(customerNumber)}`,
@@ -1982,7 +2232,7 @@ var CouponService = class {
1982
2232
  });
1983
2233
  }
1984
2234
  /** Create a referral coupon code for a customer (no request body). */
1985
- async createReferralCoupon(customerNumber, auth2 = SERVICE10) {
2235
+ async createReferralCoupon(customerNumber, auth2 = SERVICE11) {
1986
2236
  return this.ctx.http.request({
1987
2237
  method: "POST",
1988
2238
  path: `${this.base()}/referral-coupons/${encodeURIComponent(customerNumber)}`,
@@ -1992,7 +2242,7 @@ var CouponService = class {
1992
2242
  };
1993
2243
 
1994
2244
  // src/services/reward-points.ts
1995
- var SERVICE11 = { kind: "service" };
2245
+ var SERVICE12 = { kind: "service" };
1996
2246
  var RewardPointsService = class {
1997
2247
  constructor(ctx) {
1998
2248
  this.ctx = ctx;
@@ -2009,7 +2259,7 @@ var RewardPointsService = class {
2009
2259
  }
2010
2260
  // --- Admin: customer points management (service token) ---
2011
2261
  /** Batch summary across all customers. */
2012
- async listAllSummaries(query = {}, auth2 = SERVICE11) {
2262
+ async listAllSummaries(query = {}, auth2 = SERVICE12) {
2013
2263
  return this.ctx.http.request({
2014
2264
  method: "GET",
2015
2265
  path: `${this.base()}/summaryBatch`,
@@ -2018,7 +2268,7 @@ var RewardPointsService = class {
2018
2268
  });
2019
2269
  }
2020
2270
  /** Retrieve one customer's reward-points balance. */
2021
- async getCustomerPoints(customerId, auth2 = SERVICE11) {
2271
+ async getCustomerPoints(customerId, auth2 = SERVICE12) {
2022
2272
  return this.ctx.http.request({
2023
2273
  method: "GET",
2024
2274
  path: `${this.base()}/customer/${encodeURIComponent(customerId)}`,
@@ -2026,7 +2276,7 @@ var RewardPointsService = class {
2026
2276
  });
2027
2277
  }
2028
2278
  /** Create a reward-points entry for a customer. */
2029
- async createCustomerPoints(customerId, input, auth2 = SERVICE11) {
2279
+ async createCustomerPoints(customerId, input, auth2 = SERVICE12) {
2030
2280
  await this.ctx.http.request({
2031
2281
  method: "POST",
2032
2282
  path: `${this.base()}/customer/${encodeURIComponent(customerId)}`,
@@ -2035,7 +2285,7 @@ var RewardPointsService = class {
2035
2285
  });
2036
2286
  }
2037
2287
  /** Delete a customer's reward points. */
2038
- async deleteCustomerPoints(customerId, auth2 = SERVICE11) {
2288
+ async deleteCustomerPoints(customerId, auth2 = SERVICE12) {
2039
2289
  await this.ctx.http.request({
2040
2290
  method: "DELETE",
2041
2291
  path: `${this.base()}/customer/${encodeURIComponent(customerId)}`,
@@ -2043,7 +2293,7 @@ var RewardPointsService = class {
2043
2293
  });
2044
2294
  }
2045
2295
  /** Retrieve a reward-points summary for one customer. */
2046
- async getCustomerSummary(customerId, auth2 = SERVICE11) {
2296
+ async getCustomerSummary(customerId, auth2 = SERVICE12) {
2047
2297
  return this.ctx.http.request({
2048
2298
  method: "GET",
2049
2299
  path: `${this.base()}/customer/${encodeURIComponent(customerId)}/summary`,
@@ -2051,7 +2301,7 @@ var RewardPointsService = class {
2051
2301
  });
2052
2302
  }
2053
2303
  /** Add reward points for a customer. */
2054
- async addPoints(customerId, input, auth2 = SERVICE11) {
2304
+ async addPoints(customerId, input, auth2 = SERVICE12) {
2055
2305
  await this.ctx.http.request({
2056
2306
  method: "POST",
2057
2307
  path: `${this.base()}/customer/${encodeURIComponent(customerId)}/addPoints`,
@@ -2060,7 +2310,7 @@ var RewardPointsService = class {
2060
2310
  });
2061
2311
  }
2062
2312
  /** Redeem a customer's reward points (on behalf). */
2063
- async redeemPoints(customerId, input, auth2 = SERVICE11) {
2313
+ async redeemPoints(customerId, input, auth2 = SERVICE12) {
2064
2314
  await this.ctx.http.request({
2065
2315
  method: "POST",
2066
2316
  path: `${this.base()}/customer/${encodeURIComponent(customerId)}/redeemPoints`,
@@ -2111,7 +2361,7 @@ var RewardPointsService = class {
2111
2361
  }
2112
2362
  // --- Redeem options (tenant-scoped; read open to customer, management service-only) ---
2113
2363
  /** List redeem options. Defaults to the service token; pass a customer `auth` for storefront reads. */
2114
- async listRedeemOptions(auth2 = SERVICE11) {
2364
+ async listRedeemOptions(auth2 = SERVICE12) {
2115
2365
  return this.ctx.http.request({
2116
2366
  method: "GET",
2117
2367
  path: `${this.tenantBase()}/redeemOptions`,
@@ -2119,7 +2369,7 @@ var RewardPointsService = class {
2119
2369
  });
2120
2370
  }
2121
2371
  /** Create a redeem option. Returns the updated options list. */
2122
- async createRedeemOption(input, auth2 = SERVICE11) {
2372
+ async createRedeemOption(input, auth2 = SERVICE12) {
2123
2373
  return this.ctx.http.request({
2124
2374
  method: "POST",
2125
2375
  path: `${this.tenantBase()}/redeemOptions`,
@@ -2128,7 +2378,7 @@ var RewardPointsService = class {
2128
2378
  });
2129
2379
  }
2130
2380
  /** Update a redeem option by id. Resolves once accepted (no response body). */
2131
- async updateRedeemOption(redeemOptionId, input, auth2 = SERVICE11) {
2381
+ async updateRedeemOption(redeemOptionId, input, auth2 = SERVICE12) {
2132
2382
  await this.ctx.http.request({
2133
2383
  method: "PUT",
2134
2384
  path: `${this.tenantBase()}/redeemOptions/${encodeURIComponent(redeemOptionId)}`,
@@ -2137,7 +2387,7 @@ var RewardPointsService = class {
2137
2387
  });
2138
2388
  }
2139
2389
  /** Delete a redeem option by id. */
2140
- async deleteRedeemOption(redeemOptionId, auth2 = SERVICE11) {
2390
+ async deleteRedeemOption(redeemOptionId, auth2 = SERVICE12) {
2141
2391
  await this.ctx.http.request({
2142
2392
  method: "DELETE",
2143
2393
  path: `${this.tenantBase()}/redeemOptions/${encodeURIComponent(redeemOptionId)}`,
@@ -2147,7 +2397,7 @@ var RewardPointsService = class {
2147
2397
  };
2148
2398
 
2149
2399
  // src/services/brand.ts
2150
- var SERVICE12 = { kind: "service" };
2400
+ var SERVICE13 = { kind: "service" };
2151
2401
  var BrandService = class {
2152
2402
  constructor(ctx) {
2153
2403
  this.ctx = ctx;
@@ -2158,7 +2408,7 @@ var BrandService = class {
2158
2408
  return `/brand/brands`;
2159
2409
  }
2160
2410
  /** List all brands. */
2161
- async listBrands(query = {}, auth2 = SERVICE12) {
2411
+ async listBrands(query = {}, auth2 = SERVICE13) {
2162
2412
  return this.ctx.http.request({
2163
2413
  method: "GET",
2164
2414
  path: this.base(),
@@ -2167,7 +2417,7 @@ var BrandService = class {
2167
2417
  });
2168
2418
  }
2169
2419
  /** Retrieve one brand by id. */
2170
- async getBrand(brandId, auth2 = SERVICE12) {
2420
+ async getBrand(brandId, auth2 = SERVICE13) {
2171
2421
  return this.ctx.http.request({
2172
2422
  method: "GET",
2173
2423
  path: `${this.base()}/${encodeURIComponent(brandId)}`,
@@ -2175,7 +2425,7 @@ var BrandService = class {
2175
2425
  });
2176
2426
  }
2177
2427
  /** Create a brand. */
2178
- async createBrand(input, auth2 = SERVICE12) {
2428
+ async createBrand(input, auth2 = SERVICE13) {
2179
2429
  return this.ctx.http.request({
2180
2430
  method: "POST",
2181
2431
  path: this.base(),
@@ -2184,7 +2434,7 @@ var BrandService = class {
2184
2434
  });
2185
2435
  }
2186
2436
  /** Replace a brand by id. */
2187
- async updateBrand(brandId, input, auth2 = SERVICE12) {
2437
+ async updateBrand(brandId, input, auth2 = SERVICE13) {
2188
2438
  return this.ctx.http.request({
2189
2439
  method: "PUT",
2190
2440
  path: `${this.base()}/${encodeURIComponent(brandId)}`,
@@ -2193,7 +2443,7 @@ var BrandService = class {
2193
2443
  });
2194
2444
  }
2195
2445
  /** Partially update a brand by id. */
2196
- async patchBrand(brandId, patch, auth2 = SERVICE12) {
2446
+ async patchBrand(brandId, patch, auth2 = SERVICE13) {
2197
2447
  return this.ctx.http.request({
2198
2448
  method: "PATCH",
2199
2449
  path: `${this.base()}/${encodeURIComponent(brandId)}`,
@@ -2202,7 +2452,7 @@ var BrandService = class {
2202
2452
  });
2203
2453
  }
2204
2454
  /** Delete a brand by id. */
2205
- async deleteBrand(brandId, auth2 = SERVICE12) {
2455
+ async deleteBrand(brandId, auth2 = SERVICE13) {
2206
2456
  await this.ctx.http.request({
2207
2457
  method: "DELETE",
2208
2458
  path: `${this.base()}/${encodeURIComponent(brandId)}`,
@@ -2212,7 +2462,7 @@ var BrandService = class {
2212
2462
  };
2213
2463
 
2214
2464
  // src/services/label.ts
2215
- var SERVICE13 = { kind: "service" };
2465
+ var SERVICE14 = { kind: "service" };
2216
2466
  var LabelService = class {
2217
2467
  constructor(ctx) {
2218
2468
  this.ctx = ctx;
@@ -2223,7 +2473,7 @@ var LabelService = class {
2223
2473
  return `/label/labels`;
2224
2474
  }
2225
2475
  /** List all labels. */
2226
- async listLabels(query = {}, auth2 = SERVICE13) {
2476
+ async listLabels(query = {}, auth2 = SERVICE14) {
2227
2477
  return this.ctx.http.request({
2228
2478
  method: "GET",
2229
2479
  path: this.base(),
@@ -2232,7 +2482,7 @@ var LabelService = class {
2232
2482
  });
2233
2483
  }
2234
2484
  /** Retrieve one label by id. */
2235
- async getLabel(labelId, auth2 = SERVICE13) {
2485
+ async getLabel(labelId, auth2 = SERVICE14) {
2236
2486
  return this.ctx.http.request({
2237
2487
  method: "GET",
2238
2488
  path: `${this.base()}/${encodeURIComponent(labelId)}`,
@@ -2240,7 +2490,7 @@ var LabelService = class {
2240
2490
  });
2241
2491
  }
2242
2492
  /** Create a label. */
2243
- async createLabel(input, auth2 = SERVICE13) {
2493
+ async createLabel(input, auth2 = SERVICE14) {
2244
2494
  return this.ctx.http.request({
2245
2495
  method: "POST",
2246
2496
  path: this.base(),
@@ -2249,7 +2499,7 @@ var LabelService = class {
2249
2499
  });
2250
2500
  }
2251
2501
  /** Replace a label by id. */
2252
- async updateLabel(labelId, input, auth2 = SERVICE13) {
2502
+ async updateLabel(labelId, input, auth2 = SERVICE14) {
2253
2503
  return this.ctx.http.request({
2254
2504
  method: "PUT",
2255
2505
  path: `${this.base()}/${encodeURIComponent(labelId)}`,
@@ -2258,7 +2508,7 @@ var LabelService = class {
2258
2508
  });
2259
2509
  }
2260
2510
  /** Partially update a label by id. */
2261
- async patchLabel(labelId, patch, auth2 = SERVICE13) {
2511
+ async patchLabel(labelId, patch, auth2 = SERVICE14) {
2262
2512
  return this.ctx.http.request({
2263
2513
  method: "PATCH",
2264
2514
  path: `${this.base()}/${encodeURIComponent(labelId)}`,
@@ -2267,7 +2517,7 @@ var LabelService = class {
2267
2517
  });
2268
2518
  }
2269
2519
  /** Delete a label by id. */
2270
- async deleteLabel(labelId, auth2 = SERVICE13) {
2520
+ async deleteLabel(labelId, auth2 = SERVICE14) {
2271
2521
  await this.ctx.http.request({
2272
2522
  method: "DELETE",
2273
2523
  path: `${this.base()}/${encodeURIComponent(labelId)}`,
@@ -2277,7 +2527,7 @@ var LabelService = class {
2277
2527
  };
2278
2528
 
2279
2529
  // src/services/country.ts
2280
- var SERVICE14 = { kind: "service" };
2530
+ var SERVICE15 = { kind: "service" };
2281
2531
  var CountryService = class {
2282
2532
  constructor(ctx) {
2283
2533
  this.ctx = ctx;
@@ -2288,7 +2538,7 @@ var CountryService = class {
2288
2538
  return `/country/${this.ctx.tenant}`;
2289
2539
  }
2290
2540
  /** List all countries. */
2291
- async listCountries(query = {}, auth2 = SERVICE14) {
2541
+ async listCountries(query = {}, auth2 = SERVICE15) {
2292
2542
  return this.ctx.http.request({
2293
2543
  method: "GET",
2294
2544
  path: `${this.base()}/countries`,
@@ -2297,7 +2547,7 @@ var CountryService = class {
2297
2547
  });
2298
2548
  }
2299
2549
  /** Retrieve one country by code. */
2300
- async getCountry(countryCode, auth2 = SERVICE14) {
2550
+ async getCountry(countryCode, auth2 = SERVICE15) {
2301
2551
  return this.ctx.http.request({
2302
2552
  method: "GET",
2303
2553
  path: `${this.base()}/countries/${encodeURIComponent(countryCode)}`,
@@ -2305,7 +2555,7 @@ var CountryService = class {
2305
2555
  });
2306
2556
  }
2307
2557
  /** Partially update a country by code. Resolves once accepted (no response body). */
2308
- async patchCountry(countryCode, patch, auth2 = SERVICE14) {
2558
+ async patchCountry(countryCode, patch, auth2 = SERVICE15) {
2309
2559
  await this.ctx.http.request({
2310
2560
  method: "PATCH",
2311
2561
  path: `${this.base()}/countries/${encodeURIComponent(countryCode)}`,
@@ -2314,7 +2564,7 @@ var CountryService = class {
2314
2564
  });
2315
2565
  }
2316
2566
  /** List all regions. */
2317
- async listRegions(query = {}, auth2 = SERVICE14) {
2567
+ async listRegions(query = {}, auth2 = SERVICE15) {
2318
2568
  return this.ctx.http.request({
2319
2569
  method: "GET",
2320
2570
  path: `${this.base()}/regions`,
@@ -2323,7 +2573,7 @@ var CountryService = class {
2323
2573
  });
2324
2574
  }
2325
2575
  /** Retrieve one region by code. */
2326
- async getRegion(regionCode, auth2 = SERVICE14) {
2576
+ async getRegion(regionCode, auth2 = SERVICE15) {
2327
2577
  return this.ctx.http.request({
2328
2578
  method: "GET",
2329
2579
  path: `${this.base()}/regions/${encodeURIComponent(regionCode)}`,
@@ -2333,7 +2583,7 @@ var CountryService = class {
2333
2583
  };
2334
2584
 
2335
2585
  // src/services/currency.ts
2336
- var SERVICE15 = { kind: "service" };
2586
+ var SERVICE16 = { kind: "service" };
2337
2587
  var CurrencyService = class {
2338
2588
  constructor(ctx) {
2339
2589
  this.ctx = ctx;
@@ -2345,7 +2595,7 @@ var CurrencyService = class {
2345
2595
  }
2346
2596
  // --- Currencies ---
2347
2597
  /** List all currencies. */
2348
- async listCurrencies(query = {}, auth2 = SERVICE15) {
2598
+ async listCurrencies(query = {}, auth2 = SERVICE16) {
2349
2599
  return this.ctx.http.request({
2350
2600
  method: "GET",
2351
2601
  path: `${this.base()}/currencies`,
@@ -2354,7 +2604,7 @@ var CurrencyService = class {
2354
2604
  });
2355
2605
  }
2356
2606
  /** Retrieve one currency by code. */
2357
- async getCurrency(code, auth2 = SERVICE15) {
2607
+ async getCurrency(code, auth2 = SERVICE16) {
2358
2608
  return this.ctx.http.request({
2359
2609
  method: "GET",
2360
2610
  path: `${this.base()}/currencies/${encodeURIComponent(code)}`,
@@ -2362,7 +2612,7 @@ var CurrencyService = class {
2362
2612
  });
2363
2613
  }
2364
2614
  /** Create a currency. */
2365
- async createCurrency(input, auth2 = SERVICE15) {
2615
+ async createCurrency(input, auth2 = SERVICE16) {
2366
2616
  return this.ctx.http.request({
2367
2617
  method: "POST",
2368
2618
  path: `${this.base()}/currencies`,
@@ -2371,7 +2621,7 @@ var CurrencyService = class {
2371
2621
  });
2372
2622
  }
2373
2623
  /** Update a currency by code. */
2374
- async updateCurrency(code, input, auth2 = SERVICE15) {
2624
+ async updateCurrency(code, input, auth2 = SERVICE16) {
2375
2625
  return this.ctx.http.request({
2376
2626
  method: "PUT",
2377
2627
  path: `${this.base()}/currencies/${encodeURIComponent(code)}`,
@@ -2380,7 +2630,7 @@ var CurrencyService = class {
2380
2630
  });
2381
2631
  }
2382
2632
  /** Delete a currency by code. */
2383
- async deleteCurrency(code, auth2 = SERVICE15) {
2633
+ async deleteCurrency(code, auth2 = SERVICE16) {
2384
2634
  await this.ctx.http.request({
2385
2635
  method: "DELETE",
2386
2636
  path: `${this.base()}/currencies/${encodeURIComponent(code)}`,
@@ -2389,7 +2639,7 @@ var CurrencyService = class {
2389
2639
  }
2390
2640
  // --- Exchange rates ---
2391
2641
  /** List all exchange rates. */
2392
- async listExchangeRates(query = {}, auth2 = SERVICE15) {
2642
+ async listExchangeRates(query = {}, auth2 = SERVICE16) {
2393
2643
  return this.ctx.http.request({
2394
2644
  method: "GET",
2395
2645
  path: `${this.base()}/exchanges`,
@@ -2398,7 +2648,7 @@ var CurrencyService = class {
2398
2648
  });
2399
2649
  }
2400
2650
  /** Retrieve one exchange rate by code. */
2401
- async getExchangeRate(code, auth2 = SERVICE15) {
2651
+ async getExchangeRate(code, auth2 = SERVICE16) {
2402
2652
  return this.ctx.http.request({
2403
2653
  method: "GET",
2404
2654
  path: `${this.base()}/exchanges/${encodeURIComponent(code)}`,
@@ -2406,7 +2656,7 @@ var CurrencyService = class {
2406
2656
  });
2407
2657
  }
2408
2658
  /** Create an exchange rate. */
2409
- async createExchangeRate(input, auth2 = SERVICE15) {
2659
+ async createExchangeRate(input, auth2 = SERVICE16) {
2410
2660
  return this.ctx.http.request({
2411
2661
  method: "POST",
2412
2662
  path: `${this.base()}/exchanges`,
@@ -2415,7 +2665,7 @@ var CurrencyService = class {
2415
2665
  });
2416
2666
  }
2417
2667
  /** Update an exchange rate by code. */
2418
- async updateExchangeRate(code, input, auth2 = SERVICE15) {
2668
+ async updateExchangeRate(code, input, auth2 = SERVICE16) {
2419
2669
  return this.ctx.http.request({
2420
2670
  method: "PUT",
2421
2671
  path: `${this.base()}/exchanges/${encodeURIComponent(code)}`,
@@ -2424,7 +2674,7 @@ var CurrencyService = class {
2424
2674
  });
2425
2675
  }
2426
2676
  /** Delete an exchange rate by code. */
2427
- async deleteExchangeRate(code, auth2 = SERVICE15) {
2677
+ async deleteExchangeRate(code, auth2 = SERVICE16) {
2428
2678
  await this.ctx.http.request({
2429
2679
  method: "DELETE",
2430
2680
  path: `${this.base()}/exchanges/${encodeURIComponent(code)}`,
@@ -2434,7 +2684,7 @@ var CurrencyService = class {
2434
2684
  };
2435
2685
 
2436
2686
  // src/services/shipping.ts
2437
- var SERVICE16 = { kind: "service" };
2687
+ var SERVICE17 = { kind: "service" };
2438
2688
  var ShippingService = class {
2439
2689
  constructor(ctx) {
2440
2690
  this.ctx = ctx;
@@ -2449,7 +2699,7 @@ var ShippingService = class {
2449
2699
  }
2450
2700
  // --- Sites ---
2451
2701
  /** Find shipping-related sites by postal code (`POST /findSite`). */
2452
- async findSites(input, auth2 = SERVICE16) {
2702
+ async findSites(input, auth2 = SERVICE17) {
2453
2703
  return this.ctx.http.request({
2454
2704
  method: "POST",
2455
2705
  path: `${this.base()}/findSite`,
@@ -2459,7 +2709,7 @@ var ShippingService = class {
2459
2709
  }
2460
2710
  // --- Zones ---
2461
2711
  /** List shipping zones for a site. */
2462
- async listZones(site, query = {}, auth2 = SERVICE16) {
2712
+ async listZones(site, query = {}, auth2 = SERVICE17) {
2463
2713
  return this.ctx.http.request({
2464
2714
  method: "GET",
2465
2715
  path: `${this.siteBase(site)}/zones`,
@@ -2468,7 +2718,7 @@ var ShippingService = class {
2468
2718
  });
2469
2719
  }
2470
2720
  /** Retrieve one shipping zone. */
2471
- async getZone(site, zoneId, auth2 = SERVICE16) {
2721
+ async getZone(site, zoneId, auth2 = SERVICE17) {
2472
2722
  return this.ctx.http.request({
2473
2723
  method: "GET",
2474
2724
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}`,
@@ -2476,7 +2726,7 @@ var ShippingService = class {
2476
2726
  });
2477
2727
  }
2478
2728
  /** Create a shipping zone. */
2479
- async createZone(site, zone, auth2 = SERVICE16) {
2729
+ async createZone(site, zone, auth2 = SERVICE17) {
2480
2730
  return this.ctx.http.request({
2481
2731
  method: "POST",
2482
2732
  path: `${this.siteBase(site)}/zones`,
@@ -2485,7 +2735,7 @@ var ShippingService = class {
2485
2735
  });
2486
2736
  }
2487
2737
  /** Replace a shipping zone. */
2488
- async updateZone(site, zoneId, zone, auth2 = SERVICE16) {
2738
+ async updateZone(site, zoneId, zone, auth2 = SERVICE17) {
2489
2739
  await this.ctx.http.request({
2490
2740
  method: "PUT",
2491
2741
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}`,
@@ -2494,7 +2744,7 @@ var ShippingService = class {
2494
2744
  });
2495
2745
  }
2496
2746
  /** Partially update a shipping zone. */
2497
- async patchZone(site, zoneId, patch, auth2 = SERVICE16) {
2747
+ async patchZone(site, zoneId, patch, auth2 = SERVICE17) {
2498
2748
  await this.ctx.http.request({
2499
2749
  method: "PATCH",
2500
2750
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}`,
@@ -2503,7 +2753,7 @@ var ShippingService = class {
2503
2753
  });
2504
2754
  }
2505
2755
  /** Delete a shipping zone. */
2506
- async deleteZone(site, zoneId, auth2 = SERVICE16) {
2756
+ async deleteZone(site, zoneId, auth2 = SERVICE17) {
2507
2757
  await this.ctx.http.request({
2508
2758
  method: "DELETE",
2509
2759
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}`,
@@ -2512,7 +2762,7 @@ var ShippingService = class {
2512
2762
  }
2513
2763
  // --- Methods (per zone) ---
2514
2764
  /** List shipping methods of a zone. */
2515
- async listMethods(site, zoneId, query = {}, auth2 = SERVICE16) {
2765
+ async listMethods(site, zoneId, query = {}, auth2 = SERVICE17) {
2516
2766
  return this.ctx.http.request({
2517
2767
  method: "GET",
2518
2768
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}/methods`,
@@ -2521,7 +2771,7 @@ var ShippingService = class {
2521
2771
  });
2522
2772
  }
2523
2773
  /** Retrieve one shipping method. */
2524
- async getMethod(site, zoneId, methodId, auth2 = SERVICE16) {
2774
+ async getMethod(site, zoneId, methodId, auth2 = SERVICE17) {
2525
2775
  return this.ctx.http.request({
2526
2776
  method: "GET",
2527
2777
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}/methods/${encodeURIComponent(methodId)}`,
@@ -2529,7 +2779,7 @@ var ShippingService = class {
2529
2779
  });
2530
2780
  }
2531
2781
  /** Create a shipping method in a zone. */
2532
- async createMethod(site, zoneId, method, auth2 = SERVICE16) {
2782
+ async createMethod(site, zoneId, method, auth2 = SERVICE17) {
2533
2783
  return this.ctx.http.request({
2534
2784
  method: "POST",
2535
2785
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}/methods`,
@@ -2538,7 +2788,7 @@ var ShippingService = class {
2538
2788
  });
2539
2789
  }
2540
2790
  /** Replace a shipping method. */
2541
- async updateMethod(site, zoneId, methodId, method, auth2 = SERVICE16) {
2791
+ async updateMethod(site, zoneId, methodId, method, auth2 = SERVICE17) {
2542
2792
  await this.ctx.http.request({
2543
2793
  method: "PUT",
2544
2794
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}/methods/${encodeURIComponent(methodId)}`,
@@ -2547,7 +2797,7 @@ var ShippingService = class {
2547
2797
  });
2548
2798
  }
2549
2799
  /** Partially update a shipping method. */
2550
- async patchMethod(site, zoneId, methodId, patch, auth2 = SERVICE16) {
2800
+ async patchMethod(site, zoneId, methodId, patch, auth2 = SERVICE17) {
2551
2801
  await this.ctx.http.request({
2552
2802
  method: "PATCH",
2553
2803
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}/methods/${encodeURIComponent(methodId)}`,
@@ -2556,7 +2806,7 @@ var ShippingService = class {
2556
2806
  });
2557
2807
  }
2558
2808
  /** Delete a shipping method. */
2559
- async deleteMethod(site, zoneId, methodId, auth2 = SERVICE16) {
2809
+ async deleteMethod(site, zoneId, methodId, auth2 = SERVICE17) {
2560
2810
  await this.ctx.http.request({
2561
2811
  method: "DELETE",
2562
2812
  path: `${this.siteBase(site)}/zones/${encodeURIComponent(zoneId)}/methods/${encodeURIComponent(methodId)}`,
@@ -2565,7 +2815,7 @@ var ShippingService = class {
2565
2815
  }
2566
2816
  // --- Cost / quote ---
2567
2817
  /** Calculate the final shipping cost (`POST /quote`). */
2568
- async quote(site, input, auth2 = SERVICE16) {
2818
+ async quote(site, input, auth2 = SERVICE17) {
2569
2819
  return this.ctx.http.request({
2570
2820
  method: "POST",
2571
2821
  path: `${this.siteBase(site)}/quote`,
@@ -2574,7 +2824,7 @@ var ShippingService = class {
2574
2824
  });
2575
2825
  }
2576
2826
  /** Calculate the minimum shipping cost (`POST /quote/minimum`). */
2577
- async quoteMinimum(site, input, auth2 = SERVICE16) {
2827
+ async quoteMinimum(site, input, auth2 = SERVICE17) {
2578
2828
  return this.ctx.http.request({
2579
2829
  method: "POST",
2580
2830
  path: `${this.siteBase(site)}/quote/minimum`,
@@ -2583,7 +2833,7 @@ var ShippingService = class {
2583
2833
  });
2584
2834
  }
2585
2835
  /** Calculate the shipping cost for a given slot (`POST /quote/slot`). */
2586
- async quoteSlot(site, input, auth2 = SERVICE16) {
2836
+ async quoteSlot(site, input, auth2 = SERVICE17) {
2587
2837
  return this.ctx.http.request({
2588
2838
  method: "POST",
2589
2839
  path: `${this.siteBase(site)}/quote/slot`,
@@ -2593,7 +2843,7 @@ var ShippingService = class {
2593
2843
  }
2594
2844
  // --- Groups ---
2595
2845
  /** List shipping groups for a site. */
2596
- async listGroups(site, query = {}, auth2 = SERVICE16) {
2846
+ async listGroups(site, query = {}, auth2 = SERVICE17) {
2597
2847
  return this.ctx.http.request({
2598
2848
  method: "GET",
2599
2849
  path: `${this.siteBase(site)}/groups`,
@@ -2602,7 +2852,7 @@ var ShippingService = class {
2602
2852
  });
2603
2853
  }
2604
2854
  /** Retrieve one shipping group. */
2605
- async getGroup(site, groupId, auth2 = SERVICE16) {
2855
+ async getGroup(site, groupId, auth2 = SERVICE17) {
2606
2856
  return this.ctx.http.request({
2607
2857
  method: "GET",
2608
2858
  path: `${this.siteBase(site)}/groups/${encodeURIComponent(groupId)}`,
@@ -2610,7 +2860,7 @@ var ShippingService = class {
2610
2860
  });
2611
2861
  }
2612
2862
  /** Create a shipping group. */
2613
- async createGroup(site, group, auth2 = SERVICE16) {
2863
+ async createGroup(site, group, auth2 = SERVICE17) {
2614
2864
  return this.ctx.http.request({
2615
2865
  method: "POST",
2616
2866
  path: `${this.siteBase(site)}/groups`,
@@ -2619,7 +2869,7 @@ var ShippingService = class {
2619
2869
  });
2620
2870
  }
2621
2871
  /** Replace a shipping group. */
2622
- async updateGroup(site, groupId, group, auth2 = SERVICE16) {
2872
+ async updateGroup(site, groupId, group, auth2 = SERVICE17) {
2623
2873
  await this.ctx.http.request({
2624
2874
  method: "PUT",
2625
2875
  path: `${this.siteBase(site)}/groups/${encodeURIComponent(groupId)}`,
@@ -2628,7 +2878,7 @@ var ShippingService = class {
2628
2878
  });
2629
2879
  }
2630
2880
  /** Delete a shipping group. */
2631
- async deleteGroup(site, groupId, auth2 = SERVICE16) {
2881
+ async deleteGroup(site, groupId, auth2 = SERVICE17) {
2632
2882
  await this.ctx.http.request({
2633
2883
  method: "DELETE",
2634
2884
  path: `${this.siteBase(site)}/groups/${encodeURIComponent(groupId)}`,
@@ -2637,7 +2887,7 @@ var ShippingService = class {
2637
2887
  }
2638
2888
  // --- Customer-group relations ---
2639
2889
  /** List customer-group relations for a site. */
2640
- async listCgRelations(site, query = {}, auth2 = SERVICE16) {
2890
+ async listCgRelations(site, query = {}, auth2 = SERVICE17) {
2641
2891
  return this.ctx.http.request({
2642
2892
  method: "GET",
2643
2893
  path: `${this.siteBase(site)}/cgrelations`,
@@ -2646,7 +2896,7 @@ var ShippingService = class {
2646
2896
  });
2647
2897
  }
2648
2898
  /** Retrieve a customer's customer-group relations. */
2649
- async getCgRelations(site, customerId, auth2 = SERVICE16) {
2899
+ async getCgRelations(site, customerId, auth2 = SERVICE17) {
2650
2900
  return this.ctx.http.request({
2651
2901
  method: "GET",
2652
2902
  path: `${this.siteBase(site)}/cgrelations/${encodeURIComponent(customerId)}`,
@@ -2654,7 +2904,7 @@ var ShippingService = class {
2654
2904
  });
2655
2905
  }
2656
2906
  /** Create a customer-group relation. */
2657
- async createCgRelation(site, relation, auth2 = SERVICE16) {
2907
+ async createCgRelation(site, relation, auth2 = SERVICE17) {
2658
2908
  return this.ctx.http.request({
2659
2909
  method: "POST",
2660
2910
  path: `${this.siteBase(site)}/cgrelations`,
@@ -2663,7 +2913,7 @@ var ShippingService = class {
2663
2913
  });
2664
2914
  }
2665
2915
  /** Update a customer's customer-group relations. */
2666
- async updateCgRelations(site, customerId, relation, auth2 = SERVICE16) {
2916
+ async updateCgRelations(site, customerId, relation, auth2 = SERVICE17) {
2667
2917
  await this.ctx.http.request({
2668
2918
  method: "PUT",
2669
2919
  path: `${this.siteBase(site)}/cgrelations/${encodeURIComponent(customerId)}`,
@@ -2672,7 +2922,7 @@ var ShippingService = class {
2672
2922
  });
2673
2923
  }
2674
2924
  /** Delete a customer's customer-group relation. */
2675
- async deleteCgRelation(site, customerId, auth2 = SERVICE16) {
2925
+ async deleteCgRelation(site, customerId, auth2 = SERVICE17) {
2676
2926
  await this.ctx.http.request({
2677
2927
  method: "DELETE",
2678
2928
  path: `${this.siteBase(site)}/cgrelations/${encodeURIComponent(customerId)}`,
@@ -2681,7 +2931,7 @@ var ShippingService = class {
2681
2931
  }
2682
2932
  // --- Phase 2: delivery windows ---
2683
2933
  /** Retrieve delivery windows for a delivery area + cart. */
2684
- async getAreaDeliveryWindows(deliveryAreaId, cartId, auth2 = SERVICE16) {
2934
+ async getAreaDeliveryWindows(deliveryAreaId, cartId, auth2 = SERVICE17) {
2685
2935
  return this.ctx.http.request({
2686
2936
  method: "GET",
2687
2937
  path: `${this.base()}/areaDeliveryTimes/${encodeURIComponent(deliveryAreaId)}/${encodeURIComponent(cartId)}`,
@@ -2689,7 +2939,7 @@ var ShippingService = class {
2689
2939
  });
2690
2940
  }
2691
2941
  /** Retrieve delivery windows for a cart. */
2692
- async getCartDeliveryWindows(cartId, auth2 = SERVICE16) {
2942
+ async getCartDeliveryWindows(cartId, auth2 = SERVICE17) {
2693
2943
  return this.ctx.http.request({
2694
2944
  method: "GET",
2695
2945
  path: `${this.base()}/actualDeliveryWindows/${encodeURIComponent(cartId)}`,
@@ -2697,7 +2947,7 @@ var ShippingService = class {
2697
2947
  });
2698
2948
  }
2699
2949
  /** Increment the delivery-window counter. */
2700
- async incrementDeliveryWindowCounter(input, auth2 = SERVICE16) {
2950
+ async incrementDeliveryWindowCounter(input, auth2 = SERVICE17) {
2701
2951
  await this.ctx.http.request({
2702
2952
  method: "POST",
2703
2953
  path: `${this.base()}/actualDeliveryWindows/incrementCounter`,
@@ -2706,7 +2956,7 @@ var ShippingService = class {
2706
2956
  });
2707
2957
  }
2708
2958
  /** Validate a delivery window. Resolves when valid; throws otherwise. */
2709
- async validateDeliveryWindow(input, auth2 = SERVICE16) {
2959
+ async validateDeliveryWindow(input, auth2 = SERVICE17) {
2710
2960
  await this.ctx.http.request({
2711
2961
  method: "POST",
2712
2962
  path: `${this.base()}/deliveryWindowValidation`,
@@ -2716,7 +2966,7 @@ var ShippingService = class {
2716
2966
  }
2717
2967
  // --- Phase 2: delivery times ---
2718
2968
  /** List all delivery times. */
2719
- async listDeliveryTimes(query = {}, auth2 = SERVICE16) {
2969
+ async listDeliveryTimes(query = {}, auth2 = SERVICE17) {
2720
2970
  return this.ctx.http.request({
2721
2971
  method: "GET",
2722
2972
  path: `${this.base()}/delivery-times`,
@@ -2725,7 +2975,7 @@ var ShippingService = class {
2725
2975
  });
2726
2976
  }
2727
2977
  /** Retrieve one delivery time. */
2728
- async getDeliveryTime(deliveryTimeId, auth2 = SERVICE16) {
2978
+ async getDeliveryTime(deliveryTimeId, auth2 = SERVICE17) {
2729
2979
  return this.ctx.http.request({
2730
2980
  method: "GET",
2731
2981
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}`,
@@ -2733,7 +2983,7 @@ var ShippingService = class {
2733
2983
  });
2734
2984
  }
2735
2985
  /** Create a delivery time. */
2736
- async createDeliveryTime(input, auth2 = SERVICE16) {
2986
+ async createDeliveryTime(input, auth2 = SERVICE17) {
2737
2987
  return this.ctx.http.request({
2738
2988
  method: "POST",
2739
2989
  path: `${this.base()}/delivery-times`,
@@ -2742,7 +2992,7 @@ var ShippingService = class {
2742
2992
  });
2743
2993
  }
2744
2994
  /** Create multiple delivery times (`POST /delivery-times/bulk`). */
2745
- async createDeliveryTimesBulk(inputs, auth2 = SERVICE16) {
2995
+ async createDeliveryTimesBulk(inputs, auth2 = SERVICE17) {
2746
2996
  return this.ctx.http.request({
2747
2997
  method: "POST",
2748
2998
  path: `${this.base()}/delivery-times/bulk`,
@@ -2751,7 +3001,7 @@ var ShippingService = class {
2751
3001
  });
2752
3002
  }
2753
3003
  /** Replace a delivery time. */
2754
- async updateDeliveryTime(deliveryTimeId, input, auth2 = SERVICE16) {
3004
+ async updateDeliveryTime(deliveryTimeId, input, auth2 = SERVICE17) {
2755
3005
  await this.ctx.http.request({
2756
3006
  method: "PUT",
2757
3007
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}`,
@@ -2760,7 +3010,7 @@ var ShippingService = class {
2760
3010
  });
2761
3011
  }
2762
3012
  /** Partially update a delivery time (JSON-Patch op array). */
2763
- async patchDeliveryTime(deliveryTimeId, ops, auth2 = SERVICE16) {
3013
+ async patchDeliveryTime(deliveryTimeId, ops, auth2 = SERVICE17) {
2764
3014
  await this.ctx.http.request({
2765
3015
  method: "PATCH",
2766
3016
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}`,
@@ -2769,7 +3019,7 @@ var ShippingService = class {
2769
3019
  });
2770
3020
  }
2771
3021
  /** Delete a delivery time. */
2772
- async deleteDeliveryTime(deliveryTimeId, auth2 = SERVICE16) {
3022
+ async deleteDeliveryTime(deliveryTimeId, auth2 = SERVICE17) {
2773
3023
  await this.ctx.http.request({
2774
3024
  method: "DELETE",
2775
3025
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}`,
@@ -2778,7 +3028,7 @@ var ShippingService = class {
2778
3028
  }
2779
3029
  // --- Phase 2: delivery time slots ---
2780
3030
  /** List slots of a delivery time. */
2781
- async listSlots(deliveryTimeId, auth2 = SERVICE16) {
3031
+ async listSlots(deliveryTimeId, auth2 = SERVICE17) {
2782
3032
  return this.ctx.http.request({
2783
3033
  method: "GET",
2784
3034
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}/slots`,
@@ -2786,7 +3036,7 @@ var ShippingService = class {
2786
3036
  });
2787
3037
  }
2788
3038
  /** Retrieve one slot. */
2789
- async getSlot(deliveryTimeId, slotId, auth2 = SERVICE16) {
3039
+ async getSlot(deliveryTimeId, slotId, auth2 = SERVICE17) {
2790
3040
  return this.ctx.http.request({
2791
3041
  method: "GET",
2792
3042
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}/slots/${encodeURIComponent(slotId)}`,
@@ -2794,7 +3044,7 @@ var ShippingService = class {
2794
3044
  });
2795
3045
  }
2796
3046
  /** Create a slot in a delivery time. */
2797
- async createSlot(deliveryTimeId, input, auth2 = SERVICE16) {
3047
+ async createSlot(deliveryTimeId, input, auth2 = SERVICE17) {
2798
3048
  return this.ctx.http.request({
2799
3049
  method: "POST",
2800
3050
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}/slots`,
@@ -2803,7 +3053,7 @@ var ShippingService = class {
2803
3053
  });
2804
3054
  }
2805
3055
  /** Replace a slot. */
2806
- async updateSlot(deliveryTimeId, slotId, input, auth2 = SERVICE16) {
3056
+ async updateSlot(deliveryTimeId, slotId, input, auth2 = SERVICE17) {
2807
3057
  await this.ctx.http.request({
2808
3058
  method: "PUT",
2809
3059
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}/slots/${encodeURIComponent(slotId)}`,
@@ -2812,7 +3062,7 @@ var ShippingService = class {
2812
3062
  });
2813
3063
  }
2814
3064
  /** Partially update a slot (JSON-Patch op array). */
2815
- async patchSlot(deliveryTimeId, slotId, ops, auth2 = SERVICE16) {
3065
+ async patchSlot(deliveryTimeId, slotId, ops, auth2 = SERVICE17) {
2816
3066
  await this.ctx.http.request({
2817
3067
  method: "PATCH",
2818
3068
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}/slots/${encodeURIComponent(slotId)}`,
@@ -2821,7 +3071,7 @@ var ShippingService = class {
2821
3071
  });
2822
3072
  }
2823
3073
  /** Delete a slot. */
2824
- async deleteSlot(deliveryTimeId, slotId, auth2 = SERVICE16) {
3074
+ async deleteSlot(deliveryTimeId, slotId, auth2 = SERVICE17) {
2825
3075
  await this.ctx.http.request({
2826
3076
  method: "DELETE",
2827
3077
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}/slots/${encodeURIComponent(slotId)}`,
@@ -2829,7 +3079,7 @@ var ShippingService = class {
2829
3079
  });
2830
3080
  }
2831
3081
  /** Delete all slots of a delivery time. */
2832
- async deleteAllSlots(deliveryTimeId, auth2 = SERVICE16) {
3082
+ async deleteAllSlots(deliveryTimeId, auth2 = SERVICE17) {
2833
3083
  await this.ctx.http.request({
2834
3084
  method: "DELETE",
2835
3085
  path: `${this.base()}/delivery-times/${encodeURIComponent(deliveryTimeId)}/slots`,
@@ -2838,7 +3088,7 @@ var ShippingService = class {
2838
3088
  }
2839
3089
  // --- Phase 2: delivery cycles ---
2840
3090
  /** Generate a delivery cycle (`POST /delivery-cycles/generate`). Returns the cycle id. */
2841
- async generateDeliveryCycle(input, auth2 = SERVICE16) {
3091
+ async generateDeliveryCycle(input, auth2 = SERVICE17) {
2842
3092
  return this.ctx.http.request({
2843
3093
  method: "POST",
2844
3094
  path: `${this.base()}/delivery-cycles/generate`,
@@ -2848,8 +3098,183 @@ var ShippingService = class {
2848
3098
  }
2849
3099
  };
2850
3100
 
3101
+ // src/services/invoice.ts
3102
+ var SERVICE18 = { kind: "service" };
3103
+ var InvoiceService = class {
3104
+ constructor(ctx) {
3105
+ this.ctx = ctx;
3106
+ }
3107
+ ctx;
3108
+ static channel = "invoice";
3109
+ base() {
3110
+ return `/invoice/${this.ctx.tenant}/jobs/invoices`;
3111
+ }
3112
+ /** Create an invoice-generation job (`POST …/jobs/invoices`, 201). */
3113
+ async createJob(draft, auth2 = SERVICE18) {
3114
+ return this.ctx.http.request({
3115
+ method: "POST",
3116
+ path: this.base(),
3117
+ auth: auth2,
3118
+ body: draft
3119
+ });
3120
+ }
3121
+ /** Retrieve a job and its per-order results (`GET …/jobs/invoices/{jobId}`). */
3122
+ async getJob(jobId, auth2 = SERVICE18) {
3123
+ return this.ctx.http.request({
3124
+ method: "GET",
3125
+ path: `${this.base()}/${encodeURIComponent(jobId)}`,
3126
+ auth: auth2
3127
+ });
3128
+ }
3129
+ };
3130
+
3131
+ // src/services/quote.ts
3132
+ var QuoteService = class {
3133
+ constructor(ctx) {
3134
+ this.ctx = ctx;
3135
+ }
3136
+ ctx;
3137
+ static channel = "quote";
3138
+ quotesBase() {
3139
+ return `/quote/${this.ctx.tenant}/quotes`;
3140
+ }
3141
+ _reasons;
3142
+ /** Quote reasons config (`/quote-reasons`). CRUD sub-resource. */
3143
+ get reasons() {
3144
+ return this._reasons ??= new QuoteReasonsResource(this.ctx);
3145
+ }
3146
+ /** List quotes, wrapped in {@link PaginatedItems}. Pass `{}` for no filter. */
3147
+ async list(query, auth2) {
3148
+ const pageNumber = query.pageNumber ?? 1;
3149
+ const pageSize = query.pageSize ?? 60;
3150
+ const q = { pageNumber, pageSize };
3151
+ if (query.q) q.q = query.q;
3152
+ if (query.sort) q.sort = query.sort;
3153
+ const items = await this.ctx.http.request({
3154
+ method: "GET",
3155
+ path: this.quotesBase(),
3156
+ auth: auth2,
3157
+ query: q
3158
+ });
3159
+ return { items, pageNumber, pageSize, hasNextPage: items.length === pageSize };
3160
+ }
3161
+ /** Create a quote (`POST /quotes`, 201). */
3162
+ async create(draft, auth2) {
3163
+ return this.ctx.http.request({
3164
+ method: "POST",
3165
+ path: this.quotesBase(),
3166
+ auth: auth2,
3167
+ body: draft
3168
+ });
3169
+ }
3170
+ /** Retrieve one quote by id. */
3171
+ async get(quoteId, auth2) {
3172
+ return this.ctx.http.request({
3173
+ method: "GET",
3174
+ path: `${this.quotesBase()}/${encodeURIComponent(quoteId)}`,
3175
+ auth: auth2
3176
+ });
3177
+ }
3178
+ /** Apply an update-op array to a quote (`PATCH /quotes/{id}`, 204). */
3179
+ async update(quoteId, update, auth2) {
3180
+ await this.ctx.http.request({
3181
+ method: "PATCH",
3182
+ path: `${this.quotesBase()}/${encodeURIComponent(quoteId)}`,
3183
+ auth: auth2,
3184
+ body: update
3185
+ });
3186
+ }
3187
+ /** Delete a quote (`DELETE /quotes/{id}`). Requires the admin `quote_manage` scope. */
3188
+ async delete(quoteId, auth2) {
3189
+ await this.ctx.http.request({
3190
+ method: "DELETE",
3191
+ path: `${this.quotesBase()}/${encodeURIComponent(quoteId)}`,
3192
+ auth: auth2
3193
+ });
3194
+ }
3195
+ /** Retrieve a quote's change history (`GET /quotes/{id}/history`). */
3196
+ async history(quoteId, auth2) {
3197
+ return this.ctx.http.request({
3198
+ method: "GET",
3199
+ path: `${this.quotesBase()}/${encodeURIComponent(quoteId)}/history`,
3200
+ auth: auth2
3201
+ });
3202
+ }
3203
+ /**
3204
+ * Generate a quote PDF (`POST /quotes/{id}/pdf`). Returns the raw PDF bytes.
3205
+ * Uses `requestRaw` (no typed-error mapping) — a non-2xx is thrown explicitly.
3206
+ */
3207
+ async generatePdf(quoteId, auth2) {
3208
+ const path = `${this.quotesBase()}/${encodeURIComponent(quoteId)}/pdf`;
3209
+ const res = await this.ctx.http.requestRaw({ method: "POST", path, auth: auth2 });
3210
+ if (!res.ok) {
3211
+ const body = await res.text();
3212
+ throw errorFromResponse(res.status, `POST ${path} failed: ${res.status}`, body);
3213
+ }
3214
+ return await res.blob();
3215
+ }
3216
+ };
3217
+ var QuoteReasonsResource = class {
3218
+ constructor(ctx) {
3219
+ this.ctx = ctx;
3220
+ }
3221
+ ctx;
3222
+ base() {
3223
+ return `/quote/${this.ctx.tenant}/quote-reasons`;
3224
+ }
3225
+ /** List reasons, wrapped in {@link PaginatedItems}. Pass `{}` for no paging override. */
3226
+ async list(query, auth2) {
3227
+ const pageNumber = query.pageNumber ?? 1;
3228
+ const pageSize = query.pageSize ?? 60;
3229
+ const items = await this.ctx.http.request({
3230
+ method: "GET",
3231
+ path: this.base(),
3232
+ auth: auth2,
3233
+ query: { pageNumber, pageSize }
3234
+ });
3235
+ return { items, pageNumber, pageSize, hasNextPage: items.length === pageSize };
3236
+ }
3237
+ /** Retrieve one reason by id. */
3238
+ async get(reasonId, auth2) {
3239
+ return this.ctx.http.request({
3240
+ method: "GET",
3241
+ path: `${this.base()}/${encodeURIComponent(reasonId)}`,
3242
+ auth: auth2
3243
+ });
3244
+ }
3245
+ /** Create a reason (`POST /quote-reasons`). Requires the admin `quote_manage` scope. */
3246
+ async create(draft, auth2) {
3247
+ return this.ctx.http.request({
3248
+ method: "POST",
3249
+ path: this.base(),
3250
+ auth: auth2,
3251
+ body: draft
3252
+ });
3253
+ }
3254
+ /**
3255
+ * Replace a reason (`PUT /quote-reasons/{id}`, 204). `draft.metadata.version`
3256
+ * is required for optimistic locking. Requires the admin `quote_manage` scope.
3257
+ */
3258
+ async update(reasonId, draft, auth2) {
3259
+ await this.ctx.http.request({
3260
+ method: "PUT",
3261
+ path: `${this.base()}/${encodeURIComponent(reasonId)}`,
3262
+ auth: auth2,
3263
+ body: draft
3264
+ });
3265
+ }
3266
+ /** Delete a reason (`DELETE /quote-reasons/{id}`). Requires the admin `quote_manage` scope. */
3267
+ async delete(reasonId, auth2) {
3268
+ await this.ctx.http.request({
3269
+ method: "DELETE",
3270
+ path: `${this.base()}/${encodeURIComponent(reasonId)}`,
3271
+ auth: auth2
3272
+ });
3273
+ }
3274
+ };
3275
+
2851
3276
  // src/services/returns.ts
2852
- var SERVICE17 = { kind: "service" };
3277
+ var SERVICE19 = { kind: "service" };
2853
3278
  var ReturnsService = class {
2854
3279
  constructor(ctx) {
2855
3280
  this.ctx = ctx;
@@ -2860,7 +3285,7 @@ var ReturnsService = class {
2860
3285
  return `/return/${this.ctx.tenant}/returns`;
2861
3286
  }
2862
3287
  /** List returns (paged; supports `pageSize`/`pageNumber`/`sort`/`q`). */
2863
- async listReturns(query = {}, auth2 = SERVICE17) {
3288
+ async listReturns(query = {}, auth2 = SERVICE19) {
2864
3289
  return this.ctx.http.request({
2865
3290
  method: "GET",
2866
3291
  path: this.base(),
@@ -2869,7 +3294,7 @@ var ReturnsService = class {
2869
3294
  });
2870
3295
  }
2871
3296
  /** Retrieve one return by id. */
2872
- async getReturn(returnId, auth2 = SERVICE17) {
3297
+ async getReturn(returnId, auth2 = SERVICE19) {
2873
3298
  return this.ctx.http.request({
2874
3299
  method: "GET",
2875
3300
  path: `${this.base()}/${encodeURIComponent(returnId)}`,
@@ -2877,7 +3302,7 @@ var ReturnsService = class {
2877
3302
  });
2878
3303
  }
2879
3304
  /** Create a return. Returns the created `{ id }`. */
2880
- async createReturn(input, auth2 = SERVICE17) {
3305
+ async createReturn(input, auth2 = SERVICE19) {
2881
3306
  return this.ctx.http.request({
2882
3307
  method: "POST",
2883
3308
  path: this.base(),
@@ -2886,7 +3311,7 @@ var ReturnsService = class {
2886
3311
  });
2887
3312
  }
2888
3313
  /** Replace a return by id (`PUT`). */
2889
- async updateReturn(returnId, input, auth2 = SERVICE17) {
3314
+ async updateReturn(returnId, input, auth2 = SERVICE19) {
2890
3315
  await this.ctx.http.request({
2891
3316
  method: "PUT",
2892
3317
  path: `${this.base()}/${encodeURIComponent(returnId)}`,
@@ -2895,7 +3320,7 @@ var ReturnsService = class {
2895
3320
  });
2896
3321
  }
2897
3322
  /** Partially update a return by id (`PATCH`, JSON-Patch op-array). */
2898
- async patchReturn(returnId, ops, auth2 = SERVICE17) {
3323
+ async patchReturn(returnId, ops, auth2 = SERVICE19) {
2899
3324
  await this.ctx.http.request({
2900
3325
  method: "PATCH",
2901
3326
  path: `${this.base()}/${encodeURIComponent(returnId)}`,
@@ -2904,7 +3329,7 @@ var ReturnsService = class {
2904
3329
  });
2905
3330
  }
2906
3331
  /** Delete a return by id. */
2907
- async deleteReturn(returnId, auth2 = SERVICE17) {
3332
+ async deleteReturn(returnId, auth2 = SERVICE19) {
2908
3333
  await this.ctx.http.request({
2909
3334
  method: "DELETE",
2910
3335
  path: `${this.base()}/${encodeURIComponent(returnId)}`,
@@ -2914,7 +3339,7 @@ var ReturnsService = class {
2914
3339
  };
2915
3340
 
2916
3341
  // src/services/sepa-export.ts
2917
- var SERVICE18 = { kind: "service" };
3342
+ var SERVICE20 = { kind: "service" };
2918
3343
  var SepaExportService = class {
2919
3344
  constructor(ctx) {
2920
3345
  this.ctx = ctx;
@@ -2925,7 +3350,7 @@ var SepaExportService = class {
2925
3350
  return `/sepa-export/${this.ctx.tenant}`;
2926
3351
  }
2927
3352
  /** Retrieve a SEPA export file by id. Returns the raw file content (text). */
2928
- async getFile(fileId, auth2 = SERVICE18) {
3353
+ async getFile(fileId, auth2 = SERVICE20) {
2929
3354
  const path = `${this.base()}/files/${encodeURIComponent(fileId)}`;
2930
3355
  const res = await this.ctx.http.requestRaw({ method: "GET", path, auth: auth2 });
2931
3356
  if (!res.ok) {
@@ -2935,7 +3360,7 @@ var SepaExportService = class {
2935
3360
  return res.text();
2936
3361
  }
2937
3362
  /** List export jobs. */
2938
- async listJobs(query = {}, auth2 = SERVICE18) {
3363
+ async listJobs(query = {}, auth2 = SERVICE20) {
2939
3364
  return this.ctx.http.request({
2940
3365
  method: "GET",
2941
3366
  path: `${this.base()}/jobs`,
@@ -2944,7 +3369,7 @@ var SepaExportService = class {
2944
3369
  });
2945
3370
  }
2946
3371
  /** Create an export job. */
2947
- async createJob(input, auth2 = SERVICE18) {
3372
+ async createJob(input, auth2 = SERVICE20) {
2948
3373
  return this.ctx.http.request({
2949
3374
  method: "POST",
2950
3375
  path: `${this.base()}/jobs`,
@@ -2955,7 +3380,7 @@ var SepaExportService = class {
2955
3380
  };
2956
3381
 
2957
3382
  // src/services/indexing.ts
2958
- var SERVICE19 = { kind: "service" };
3383
+ var SERVICE21 = { kind: "service" };
2959
3384
  var IndexingService = class {
2960
3385
  constructor(ctx) {
2961
3386
  this.ctx = ctx;
@@ -2966,11 +3391,11 @@ var IndexingService = class {
2966
3391
  return `/indexing/${this.ctx.tenant}`;
2967
3392
  }
2968
3393
  /** List indexing configurations. */
2969
- async listConfigurations(auth2 = SERVICE19) {
3394
+ async listConfigurations(auth2 = SERVICE21) {
2970
3395
  return this.ctx.http.request({ method: "GET", path: `${this.base()}/configurations`, auth: auth2 });
2971
3396
  }
2972
3397
  /** Get a configuration by provider name. */
2973
- async getConfiguration(provider, auth2 = SERVICE19) {
3398
+ async getConfiguration(provider, auth2 = SERVICE21) {
2974
3399
  return this.ctx.http.request({
2975
3400
  method: "GET",
2976
3401
  path: `${this.base()}/configurations/${encodeURIComponent(provider)}`,
@@ -2978,7 +3403,7 @@ var IndexingService = class {
2978
3403
  });
2979
3404
  }
2980
3405
  /** Create a configuration. */
2981
- async createConfiguration(input, auth2 = SERVICE19) {
3406
+ async createConfiguration(input, auth2 = SERVICE21) {
2982
3407
  return this.ctx.http.request({
2983
3408
  method: "POST",
2984
3409
  path: `${this.base()}/configurations`,
@@ -2987,7 +3412,7 @@ var IndexingService = class {
2987
3412
  });
2988
3413
  }
2989
3414
  /** Update a configuration by provider name. */
2990
- async updateConfiguration(provider, input, auth2 = SERVICE19) {
3415
+ async updateConfiguration(provider, input, auth2 = SERVICE21) {
2991
3416
  await this.ctx.http.request({
2992
3417
  method: "PUT",
2993
3418
  path: `${this.base()}/configurations/${encodeURIComponent(provider)}`,
@@ -2996,7 +3421,7 @@ var IndexingService = class {
2996
3421
  });
2997
3422
  }
2998
3423
  /** Delete a configuration by provider name. */
2999
- async deleteConfiguration(provider, auth2 = SERVICE19) {
3424
+ async deleteConfiguration(provider, auth2 = SERVICE21) {
3000
3425
  await this.ctx.http.request({
3001
3426
  method: "DELETE",
3002
3427
  path: `${this.base()}/configurations/${encodeURIComponent(provider)}`,
@@ -3004,11 +3429,11 @@ var IndexingService = class {
3004
3429
  });
3005
3430
  }
3006
3431
  /** List public indexing configurations. */
3007
- async listPublicConfigurations(auth2 = SERVICE19) {
3432
+ async listPublicConfigurations(auth2 = SERVICE21) {
3008
3433
  return this.ctx.http.request({ method: "GET", path: `${this.base()}/public/configurations`, auth: auth2 });
3009
3434
  }
3010
3435
  /** Get a public configuration by provider name. */
3011
- async getPublicConfiguration(provider, auth2 = SERVICE19) {
3436
+ async getPublicConfiguration(provider, auth2 = SERVICE21) {
3012
3437
  return this.ctx.http.request({
3013
3438
  method: "GET",
3014
3439
  path: `${this.base()}/public/configurations/${encodeURIComponent(provider)}`,
@@ -3021,7 +3446,7 @@ var IndexingService = class {
3021
3446
  * (PRODUCT only). Resolves to the created job (`201`) or, when a job for that
3022
3447
  * `entityType` is already `IN_PROGRESS`, that running job (`200`).
3023
3448
  */
3024
- async createReindexJob(input, auth2 = SERVICE19) {
3449
+ async createReindexJob(input, auth2 = SERVICE21) {
3025
3450
  return this.ctx.http.request({
3026
3451
  method: "POST",
3027
3452
  path: `${this.base()}/reindex-jobs`,
@@ -3030,7 +3455,7 @@ var IndexingService = class {
3030
3455
  });
3031
3456
  }
3032
3457
  /** List reindex jobs (paginated). */
3033
- async listReindexJobs(opts = {}, auth2 = SERVICE19) {
3458
+ async listReindexJobs(opts = {}, auth2 = SERVICE21) {
3034
3459
  const pageNumber = opts.pageNumber ?? 1;
3035
3460
  const pageSize = opts.pageSize ?? 50;
3036
3461
  const query = { pageNumber, pageSize };
@@ -3044,7 +3469,7 @@ var IndexingService = class {
3044
3469
  return { items, pageNumber, pageSize, hasNextPage: items.length === pageSize };
3045
3470
  }
3046
3471
  /** Fetch one reindex job by id. */
3047
- async getReindexJob(reindexJobId, auth2 = SERVICE19) {
3472
+ async getReindexJob(reindexJobId, auth2 = SERVICE21) {
3048
3473
  return this.ctx.http.request({
3049
3474
  method: "GET",
3050
3475
  path: `${this.base()}/reindex-jobs/${encodeURIComponent(reindexJobId)}`,
@@ -3056,13 +3481,13 @@ var IndexingService = class {
3056
3481
  * @deprecated since 2026-06-18, removal 2026-12-01 — use {@link createReindexJob}
3057
3482
  * (`createReindexJob({ entityType: "PRODUCT" })`), which returns a trackable job.
3058
3483
  */
3059
- async reindex(input, auth2 = SERVICE19) {
3484
+ async reindex(input, auth2 = SERVICE21) {
3060
3485
  await this.ctx.http.request({ method: "POST", path: `${this.base()}/reindex`, auth: auth2, body: input });
3061
3486
  }
3062
3487
  };
3063
3488
 
3064
3489
  // src/services/unit-handling.ts
3065
- var SERVICE20 = { kind: "service" };
3490
+ var SERVICE22 = { kind: "service" };
3066
3491
  var UnitHandlingService = class {
3067
3492
  constructor(ctx) {
3068
3493
  this.ctx = ctx;
@@ -3073,7 +3498,7 @@ var UnitHandlingService = class {
3073
3498
  return `/unit-handling/${this.ctx.tenant}`;
3074
3499
  }
3075
3500
  /** Find units (filter/sort/page). */
3076
- async listUnits(query = {}, auth2 = SERVICE20) {
3501
+ async listUnits(query = {}, auth2 = SERVICE22) {
3077
3502
  return this.ctx.http.request({
3078
3503
  method: "GET",
3079
3504
  path: `${this.base()}/units`,
@@ -3082,7 +3507,7 @@ var UnitHandlingService = class {
3082
3507
  });
3083
3508
  }
3084
3509
  /** Retrieve a unit by code. */
3085
- async getUnit(unitCode, auth2 = SERVICE20) {
3510
+ async getUnit(unitCode, auth2 = SERVICE22) {
3086
3511
  return this.ctx.http.request({
3087
3512
  method: "GET",
3088
3513
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -3090,11 +3515,11 @@ var UnitHandlingService = class {
3090
3515
  });
3091
3516
  }
3092
3517
  /** Add a new unit. */
3093
- async createUnit(input, auth2 = SERVICE20) {
3518
+ async createUnit(input, auth2 = SERVICE22) {
3094
3519
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/units`, auth: auth2, body: input });
3095
3520
  }
3096
3521
  /** Update a unit by code. */
3097
- async updateUnit(unitCode, input, auth2 = SERVICE20) {
3522
+ async updateUnit(unitCode, input, auth2 = SERVICE22) {
3098
3523
  await this.ctx.http.request({
3099
3524
  method: "PUT",
3100
3525
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -3103,7 +3528,7 @@ var UnitHandlingService = class {
3103
3528
  });
3104
3529
  }
3105
3530
  /** Delete a unit by code. */
3106
- async deleteUnit(unitCode, auth2 = SERVICE20) {
3531
+ async deleteUnit(unitCode, auth2 = SERVICE22) {
3107
3532
  await this.ctx.http.request({
3108
3533
  method: "DELETE",
3109
3534
  path: `${this.base()}/units/${encodeURIComponent(unitCode)}`,
@@ -3111,7 +3536,7 @@ var UnitHandlingService = class {
3111
3536
  });
3112
3537
  }
3113
3538
  /** Delete multiple units by code (bulk). The codes are sent as the request body. */
3114
- async deleteUnits(codes, auth2 = SERVICE20) {
3539
+ async deleteUnits(codes, auth2 = SERVICE22) {
3115
3540
  await this.ctx.http.request({
3116
3541
  method: "DELETE",
3117
3542
  path: `${this.base()}/units`,
@@ -3120,7 +3545,7 @@ var UnitHandlingService = class {
3120
3545
  });
3121
3546
  }
3122
3547
  /** Fetch a conversion factor (`PUT /units/conversion-factor-commands`). */
3123
- async getConversionFactor(input, auth2 = SERVICE20) {
3548
+ async getConversionFactor(input, auth2 = SERVICE22) {
3124
3549
  return this.ctx.http.request({
3125
3550
  method: "PUT",
3126
3551
  path: `${this.base()}/units/conversion-factor-commands`,
@@ -3129,7 +3554,7 @@ var UnitHandlingService = class {
3129
3554
  });
3130
3555
  }
3131
3556
  /** Convert a value between units (`PUT /units/convert-unit-commands`). */
3132
- async convertUnit(input, auth2 = SERVICE20) {
3557
+ async convertUnit(input, auth2 = SERVICE22) {
3133
3558
  return this.ctx.http.request({
3134
3559
  method: "PUT",
3135
3560
  path: `${this.base()}/units/convert-unit-commands`,
@@ -3138,13 +3563,13 @@ var UnitHandlingService = class {
3138
3563
  });
3139
3564
  }
3140
3565
  /** List all unit types. */
3141
- async listUnitTypes(auth2 = SERVICE20) {
3566
+ async listUnitTypes(auth2 = SERVICE22) {
3142
3567
  return this.ctx.http.request({ method: "GET", path: `${this.base()}/types`, auth: auth2 });
3143
3568
  }
3144
3569
  };
3145
3570
 
3146
3571
  // src/services/catalog.ts
3147
- var SERVICE21 = { kind: "service" };
3572
+ var SERVICE23 = { kind: "service" };
3148
3573
  var CatalogService = class {
3149
3574
  constructor(ctx) {
3150
3575
  this.ctx = ctx;
@@ -3155,7 +3580,7 @@ var CatalogService = class {
3155
3580
  return `/catalog/${this.ctx.tenant}/catalogs`;
3156
3581
  }
3157
3582
  /** List catalogs (filtered/sorted). */
3158
- async listCatalogs(query = {}, auth2 = SERVICE21) {
3583
+ async listCatalogs(query = {}, auth2 = SERVICE23) {
3159
3584
  return this.ctx.http.request({
3160
3585
  method: "GET",
3161
3586
  path: this.base(),
@@ -3164,7 +3589,7 @@ var CatalogService = class {
3164
3589
  });
3165
3590
  }
3166
3591
  /** Retrieve a catalog by id. */
3167
- async getCatalog(catalogId, auth2 = SERVICE21) {
3592
+ async getCatalog(catalogId, auth2 = SERVICE23) {
3168
3593
  return this.ctx.http.request({
3169
3594
  method: "GET",
3170
3595
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -3172,7 +3597,7 @@ var CatalogService = class {
3172
3597
  });
3173
3598
  }
3174
3599
  /** Retrieve all catalogs that contain a category. */
3175
- async getCatalogsForCategory(categoryId, auth2 = SERVICE21) {
3600
+ async getCatalogsForCategory(categoryId, auth2 = SERVICE23) {
3176
3601
  return this.ctx.http.request({
3177
3602
  method: "GET",
3178
3603
  path: `${this.base()}/categories/${encodeURIComponent(categoryId)}`,
@@ -3180,11 +3605,11 @@ var CatalogService = class {
3180
3605
  });
3181
3606
  }
3182
3607
  /** Create a catalog. */
3183
- async createCatalog(input, auth2 = SERVICE21) {
3608
+ async createCatalog(input, auth2 = SERVICE23) {
3184
3609
  return this.ctx.http.request({ method: "POST", path: this.base(), auth: auth2, body: input });
3185
3610
  }
3186
3611
  /** Upsert a catalog by id (`PUT`). */
3187
- async updateCatalog(catalogId, input, auth2 = SERVICE21) {
3612
+ async updateCatalog(catalogId, input, auth2 = SERVICE23) {
3188
3613
  return this.ctx.http.request({
3189
3614
  method: "PUT",
3190
3615
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -3193,7 +3618,7 @@ var CatalogService = class {
3193
3618
  });
3194
3619
  }
3195
3620
  /** Partially update a catalog by id (`PATCH`). */
3196
- async patchCatalog(catalogId, patch, auth2 = SERVICE21) {
3621
+ async patchCatalog(catalogId, patch, auth2 = SERVICE23) {
3197
3622
  await this.ctx.http.request({
3198
3623
  method: "PATCH",
3199
3624
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -3202,7 +3627,7 @@ var CatalogService = class {
3202
3627
  });
3203
3628
  }
3204
3629
  /** Remove a catalog by id. */
3205
- async deleteCatalog(catalogId, auth2 = SERVICE21) {
3630
+ async deleteCatalog(catalogId, auth2 = SERVICE23) {
3206
3631
  await this.ctx.http.request({
3207
3632
  method: "DELETE",
3208
3633
  path: `${this.base()}/${encodeURIComponent(catalogId)}`,
@@ -3212,7 +3637,7 @@ var CatalogService = class {
3212
3637
  };
3213
3638
 
3214
3639
  // src/services/vendor.ts
3215
- var SERVICE22 = { kind: "service" };
3640
+ var SERVICE24 = { kind: "service" };
3216
3641
  var VendorService = class {
3217
3642
  constructor(ctx) {
3218
3643
  this.ctx = ctx;
@@ -3224,7 +3649,7 @@ var VendorService = class {
3224
3649
  }
3225
3650
  // --- Vendors ---
3226
3651
  /** List all vendors. */
3227
- async listVendors(query = {}, auth2 = SERVICE22) {
3652
+ async listVendors(query = {}, auth2 = SERVICE24) {
3228
3653
  return this.ctx.http.request({
3229
3654
  method: "GET",
3230
3655
  path: `${this.base()}/vendors`,
@@ -3233,7 +3658,7 @@ var VendorService = class {
3233
3658
  });
3234
3659
  }
3235
3660
  /** Retrieve a vendor by id. */
3236
- async getVendor(vendorId, auth2 = SERVICE22) {
3661
+ async getVendor(vendorId, auth2 = SERVICE24) {
3237
3662
  return this.ctx.http.request({
3238
3663
  method: "GET",
3239
3664
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -3241,7 +3666,7 @@ var VendorService = class {
3241
3666
  });
3242
3667
  }
3243
3668
  /** Search vendors (`POST /vendors/search`). A built filter in `q` is resolved to a string. */
3244
- async searchVendors(query, auth2 = SERVICE22) {
3669
+ async searchVendors(query, auth2 = SERVICE24) {
3245
3670
  const body = query.q !== void 0 ? { ...query, q: resolveQuery(query.q, { compoundLogicalQuery: false }) } : query;
3246
3671
  return this.ctx.http.request({
3247
3672
  method: "POST",
@@ -3251,11 +3676,11 @@ var VendorService = class {
3251
3676
  });
3252
3677
  }
3253
3678
  /** Create a vendor. */
3254
- async createVendor(input, auth2 = SERVICE22) {
3679
+ async createVendor(input, auth2 = SERVICE24) {
3255
3680
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/vendors`, auth: auth2, body: input });
3256
3681
  }
3257
3682
  /** Upsert a vendor by id (`PUT`). */
3258
- async updateVendor(vendorId, input, auth2 = SERVICE22) {
3683
+ async updateVendor(vendorId, input, auth2 = SERVICE24) {
3259
3684
  await this.ctx.http.request({
3260
3685
  method: "PUT",
3261
3686
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -3264,7 +3689,7 @@ var VendorService = class {
3264
3689
  });
3265
3690
  }
3266
3691
  /** Delete a vendor by id. */
3267
- async deleteVendor(vendorId, auth2 = SERVICE22) {
3692
+ async deleteVendor(vendorId, auth2 = SERVICE24) {
3268
3693
  await this.ctx.http.request({
3269
3694
  method: "DELETE",
3270
3695
  path: `${this.base()}/vendors/${encodeURIComponent(vendorId)}`,
@@ -3273,7 +3698,7 @@ var VendorService = class {
3273
3698
  }
3274
3699
  // --- Vendor locations ---
3275
3700
  /** List all vendor locations. */
3276
- async listVendorLocations(query = {}, auth2 = SERVICE22) {
3701
+ async listVendorLocations(query = {}, auth2 = SERVICE24) {
3277
3702
  return this.ctx.http.request({
3278
3703
  method: "GET",
3279
3704
  path: `${this.base()}/locations`,
@@ -3282,7 +3707,7 @@ var VendorService = class {
3282
3707
  });
3283
3708
  }
3284
3709
  /** Retrieve a vendor location by id. */
3285
- async getVendorLocation(locationId, auth2 = SERVICE22) {
3710
+ async getVendorLocation(locationId, auth2 = SERVICE24) {
3286
3711
  return this.ctx.http.request({
3287
3712
  method: "GET",
3288
3713
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -3290,11 +3715,11 @@ var VendorService = class {
3290
3715
  });
3291
3716
  }
3292
3717
  /** Create a vendor location. */
3293
- async createVendorLocation(input, auth2 = SERVICE22) {
3718
+ async createVendorLocation(input, auth2 = SERVICE24) {
3294
3719
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/locations`, auth: auth2, body: input });
3295
3720
  }
3296
3721
  /** Upsert a vendor location by id (`PUT`). */
3297
- async updateVendorLocation(locationId, input, auth2 = SERVICE22) {
3722
+ async updateVendorLocation(locationId, input, auth2 = SERVICE24) {
3298
3723
  await this.ctx.http.request({
3299
3724
  method: "PUT",
3300
3725
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -3303,7 +3728,7 @@ var VendorService = class {
3303
3728
  });
3304
3729
  }
3305
3730
  /** Delete a vendor location by id. */
3306
- async deleteVendorLocation(locationId, auth2 = SERVICE22) {
3731
+ async deleteVendorLocation(locationId, auth2 = SERVICE24) {
3307
3732
  await this.ctx.http.request({
3308
3733
  method: "DELETE",
3309
3734
  path: `${this.base()}/locations/${encodeURIComponent(locationId)}`,
@@ -3313,7 +3738,7 @@ var VendorService = class {
3313
3738
  };
3314
3739
 
3315
3740
  // src/services/pick-pack.ts
3316
- var SERVICE23 = { kind: "service" };
3741
+ var SERVICE25 = { kind: "service" };
3317
3742
  var PickPackService = class {
3318
3743
  constructor(ctx) {
3319
3744
  this.ctx = ctx;
@@ -3327,7 +3752,7 @@ var PickPackService = class {
3327
3752
  return `${this.base()}/orders/${encodeURIComponent(orderId)}`;
3328
3753
  }
3329
3754
  /** List packlist orders. */
3330
- async listOrders(query = {}, auth2 = SERVICE23) {
3755
+ async listOrders(query = {}, auth2 = SERVICE25) {
3331
3756
  return this.ctx.http.request({
3332
3757
  method: "GET",
3333
3758
  path: `${this.base()}/orders`,
@@ -3336,19 +3761,19 @@ var PickPackService = class {
3336
3761
  });
3337
3762
  }
3338
3763
  /** Retrieve a packlist order by id. */
3339
- async getOrder(orderId, auth2 = SERVICE23) {
3764
+ async getOrder(orderId, auth2 = SERVICE25) {
3340
3765
  return this.ctx.http.request({ method: "GET", path: this.orderPath(orderId), auth: auth2 });
3341
3766
  }
3342
3767
  /** Update an order's status (`PATCH`). Returns an acknowledgement. */
3343
- async updateOrder(orderId, change, auth2 = SERVICE23) {
3768
+ async updateOrder(orderId, change, auth2 = SERVICE25) {
3344
3769
  return this.ctx.http.request({ method: "PATCH", path: this.orderPath(orderId), auth: auth2, body: change });
3345
3770
  }
3346
3771
  /** Finish an order. Returns an acknowledgement. */
3347
- async finishOrder(orderId, auth2 = SERVICE23) {
3772
+ async finishOrder(orderId, auth2 = SERVICE25) {
3348
3773
  return this.ctx.http.request({ method: "POST", path: `${this.orderPath(orderId)}/finish`, auth: auth2 });
3349
3774
  }
3350
3775
  /** List order cycles (ids). */
3351
- async listOrderCycles(query = {}, auth2 = SERVICE23) {
3776
+ async listOrderCycles(query = {}, auth2 = SERVICE25) {
3352
3777
  return this.ctx.http.request({
3353
3778
  method: "GET",
3354
3779
  path: `${this.base()}/orderCycles`,
@@ -3357,11 +3782,11 @@ var PickPackService = class {
3357
3782
  });
3358
3783
  }
3359
3784
  /** Add an assignee to an order. Returns an acknowledgement. */
3360
- async addAssignee(orderId, assignee, auth2 = SERVICE23) {
3785
+ async addAssignee(orderId, assignee, auth2 = SERVICE25) {
3361
3786
  return this.ctx.http.request({ method: "POST", path: `${this.orderPath(orderId)}/assignees`, auth: auth2, body: assignee });
3362
3787
  }
3363
3788
  /** Remove an assignee from an order. */
3364
- async removeAssignee(orderId, assigneeId, auth2 = SERVICE23) {
3789
+ async removeAssignee(orderId, assigneeId, auth2 = SERVICE25) {
3365
3790
  await this.ctx.http.request({
3366
3791
  method: "DELETE",
3367
3792
  path: `${this.orderPath(orderId)}/assignees/${encodeURIComponent(assigneeId)}`,
@@ -3369,15 +3794,15 @@ var PickPackService = class {
3369
3794
  });
3370
3795
  }
3371
3796
  /** Update packaging products for an order (`PUT`). Returns an acknowledgement. */
3372
- async updatePackaging(orderId, change, auth2 = SERVICE23) {
3797
+ async updatePackaging(orderId, change, auth2 = SERVICE25) {
3373
3798
  return this.ctx.http.request({ method: "PUT", path: `${this.orderPath(orderId)}/packaging`, auth: auth2, body: change });
3374
3799
  }
3375
3800
  /** Create a packing event. Returns an acknowledgement. */
3376
- async createEvent(event, auth2 = SERVICE23) {
3801
+ async createEvent(event, auth2 = SERVICE25) {
3377
3802
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/events`, auth: auth2, body: event });
3378
3803
  }
3379
3804
  /** List packing events. */
3380
- async listEvents(query = {}, auth2 = SERVICE23) {
3805
+ async listEvents(query = {}, auth2 = SERVICE25) {
3381
3806
  return this.ctx.http.request({
3382
3807
  method: "GET",
3383
3808
  path: `${this.base()}/events`,
@@ -3386,7 +3811,7 @@ var PickPackService = class {
3386
3811
  });
3387
3812
  }
3388
3813
  /** Trigger an order recalculation. Returns the created job's id. */
3389
- async triggerRecalculation(input, auth2 = SERVICE23) {
3814
+ async triggerRecalculation(input, auth2 = SERVICE25) {
3390
3815
  return this.ctx.http.request({
3391
3816
  method: "POST",
3392
3817
  path: `${this.base()}/jobs/recalculations`,
@@ -3395,7 +3820,7 @@ var PickPackService = class {
3395
3820
  });
3396
3821
  }
3397
3822
  /** Retrieve a recalculation job by id. */
3398
- async getRecalculationJob(jobId, auth2 = SERVICE23) {
3823
+ async getRecalculationJob(jobId, auth2 = SERVICE25) {
3399
3824
  return this.ctx.http.request({
3400
3825
  method: "GET",
3401
3826
  path: `${this.base()}/jobs/recalculations/${encodeURIComponent(jobId)}`,
@@ -3405,7 +3830,7 @@ var PickPackService = class {
3405
3830
  };
3406
3831
 
3407
3832
  // src/services/customer-admin.ts
3408
- var SERVICE24 = { kind: "service" };
3833
+ var SERVICE26 = { kind: "service" };
3409
3834
  var CustomerAdminService = class {
3410
3835
  constructor(ctx) {
3411
3836
  this.ctx = ctx;
@@ -3423,7 +3848,7 @@ var CustomerAdminService = class {
3423
3848
  }
3424
3849
  // --- Customers ---
3425
3850
  /** List customers. */
3426
- async listCustomers(query = {}, auth2 = SERVICE24) {
3851
+ async listCustomers(query = {}, auth2 = SERVICE26) {
3427
3852
  return this.ctx.http.request({
3428
3853
  method: "GET",
3429
3854
  path: this.base(),
@@ -3432,33 +3857,33 @@ var CustomerAdminService = class {
3432
3857
  });
3433
3858
  }
3434
3859
  /** Search customers (`POST /customers/search`). A built filter in `q` is resolved to a string. */
3435
- async searchCustomers(query, auth2 = SERVICE24) {
3860
+ async searchCustomers(query, auth2 = SERVICE26) {
3436
3861
  const body = query.q !== void 0 ? { ...query, q: resolveQuery(query.q, { compoundLogicalQuery: false }) } : query;
3437
3862
  return this.ctx.http.request({ method: "POST", path: `${this.base()}/search`, auth: auth2, body });
3438
3863
  }
3439
3864
  /** Retrieve a customer profile by number. */
3440
- async getCustomer(customerNumber, auth2 = SERVICE24) {
3865
+ async getCustomer(customerNumber, auth2 = SERVICE26) {
3441
3866
  return this.ctx.http.request({ method: "GET", path: this.customerPath(customerNumber), auth: auth2 });
3442
3867
  }
3443
3868
  /** Create a customer. */
3444
- async createCustomer(input, auth2 = SERVICE24) {
3869
+ async createCustomer(input, auth2 = SERVICE26) {
3445
3870
  return this.ctx.http.request({ method: "POST", path: this.base(), auth: auth2, body: input });
3446
3871
  }
3447
3872
  /** Upsert a customer profile by number (`PUT`). */
3448
- async upsertCustomer(customerNumber, input, auth2 = SERVICE24) {
3873
+ async upsertCustomer(customerNumber, input, auth2 = SERVICE26) {
3449
3874
  return this.ctx.http.request({ method: "PUT", path: this.customerPath(customerNumber), auth: auth2, body: input });
3450
3875
  }
3451
3876
  /** Partially update a customer profile (`PATCH`). */
3452
- async patchCustomer(customerNumber, patch, auth2 = SERVICE24) {
3877
+ async patchCustomer(customerNumber, patch, auth2 = SERVICE26) {
3453
3878
  await this.ctx.http.request({ method: "PATCH", path: this.customerPath(customerNumber), auth: auth2, body: patch });
3454
3879
  }
3455
3880
  /** Delete a customer profile. */
3456
- async deleteCustomer(customerNumber, auth2 = SERVICE24) {
3881
+ async deleteCustomer(customerNumber, auth2 = SERVICE26) {
3457
3882
  await this.ctx.http.request({ method: "DELETE", path: this.customerPath(customerNumber), auth: auth2 });
3458
3883
  }
3459
3884
  // --- Addresses ---
3460
3885
  /** List a customer's addresses. */
3461
- async listAddresses(customerNumber, auth2 = SERVICE24) {
3886
+ async listAddresses(customerNumber, auth2 = SERVICE26) {
3462
3887
  return this.ctx.http.request({
3463
3888
  method: "GET",
3464
3889
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -3466,11 +3891,11 @@ var CustomerAdminService = class {
3466
3891
  });
3467
3892
  }
3468
3893
  /** Retrieve one address. */
3469
- async getAddress(customerNumber, addressId, auth2 = SERVICE24) {
3894
+ async getAddress(customerNumber, addressId, auth2 = SERVICE26) {
3470
3895
  return this.ctx.http.request({ method: "GET", path: this.addressPath(customerNumber, addressId), auth: auth2 });
3471
3896
  }
3472
3897
  /** Add an address. */
3473
- async addAddress(customerNumber, input, auth2 = SERVICE24) {
3898
+ async addAddress(customerNumber, input, auth2 = SERVICE26) {
3474
3899
  return this.ctx.http.request({
3475
3900
  method: "POST",
3476
3901
  path: `${this.customerPath(customerNumber)}/addresses`,
@@ -3479,19 +3904,19 @@ var CustomerAdminService = class {
3479
3904
  });
3480
3905
  }
3481
3906
  /** Upsert an address by id (`PUT`). */
3482
- async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE24) {
3907
+ async upsertAddress(customerNumber, addressId, input, auth2 = SERVICE26) {
3483
3908
  return this.ctx.http.request({ method: "PUT", path: this.addressPath(customerNumber, addressId), auth: auth2, body: input });
3484
3909
  }
3485
3910
  /** Partially update an address by id (`PATCH`). */
3486
- async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE24) {
3911
+ async patchAddress(customerNumber, addressId, patch, auth2 = SERVICE26) {
3487
3912
  await this.ctx.http.request({ method: "PATCH", path: this.addressPath(customerNumber, addressId), auth: auth2, body: patch });
3488
3913
  }
3489
3914
  /** Delete an address by id. */
3490
- async deleteAddress(customerNumber, addressId, auth2 = SERVICE24) {
3915
+ async deleteAddress(customerNumber, addressId, auth2 = SERVICE26) {
3491
3916
  await this.ctx.http.request({ method: "DELETE", path: this.addressPath(customerNumber, addressId), auth: auth2 });
3492
3917
  }
3493
3918
  /** Add tags to an address (`?tags=` query). */
3494
- async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE24) {
3919
+ async addAddressTags(customerNumber, addressId, tags, auth2 = SERVICE26) {
3495
3920
  await this.ctx.http.request({
3496
3921
  method: "POST",
3497
3922
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -3500,7 +3925,7 @@ var CustomerAdminService = class {
3500
3925
  });
3501
3926
  }
3502
3927
  /** Remove tags from an address (`?tags=` query). */
3503
- async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE24) {
3928
+ async removeAddressTags(customerNumber, addressId, tags, auth2 = SERVICE26) {
3504
3929
  await this.ctx.http.request({
3505
3930
  method: "DELETE",
3506
3931
  path: `${this.addressPath(customerNumber, addressId)}/tags`,
@@ -3511,7 +3936,7 @@ var CustomerAdminService = class {
3511
3936
  };
3512
3937
 
3513
3938
  // src/services/approval.ts
3514
- var SERVICE25 = { kind: "service" };
3939
+ var SERVICE27 = { kind: "service" };
3515
3940
  var ApprovalService = class {
3516
3941
  constructor(ctx) {
3517
3942
  this.ctx = ctx;
@@ -3522,7 +3947,7 @@ var ApprovalService = class {
3522
3947
  return `/approval/${this.ctx.tenant}`;
3523
3948
  }
3524
3949
  /** List approvals (paged via `pageNumber`/`pageSize`/`sort`/`q`). Returns an array. */
3525
- async listApprovals(query = {}, auth2 = SERVICE25) {
3950
+ async listApprovals(query = {}, auth2 = SERVICE27) {
3526
3951
  return this.ctx.http.request({
3527
3952
  method: "GET",
3528
3953
  path: `${this.base()}/approvals`,
@@ -3531,7 +3956,7 @@ var ApprovalService = class {
3531
3956
  });
3532
3957
  }
3533
3958
  /** Retrieve a single approval by id. */
3534
- async getApproval(approvalId, auth2 = SERVICE25) {
3959
+ async getApproval(approvalId, auth2 = SERVICE27) {
3535
3960
  return this.ctx.http.request({
3536
3961
  method: "GET",
3537
3962
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -3539,7 +3964,7 @@ var ApprovalService = class {
3539
3964
  });
3540
3965
  }
3541
3966
  /** Create an approval request (cart or quote). Returns the created `{ id }`. */
3542
- async createApproval(input, auth2 = SERVICE25) {
3967
+ async createApproval(input, auth2 = SERVICE27) {
3543
3968
  return this.ctx.http.request({
3544
3969
  method: "POST",
3545
3970
  path: `${this.base()}/approvals`,
@@ -3548,7 +3973,7 @@ var ApprovalService = class {
3548
3973
  });
3549
3974
  }
3550
3975
  /** Approve/reject/amend an approval via a JSON-Patch op-array (`PATCH`). */
3551
- async updateApproval(approvalId, ops, auth2 = SERVICE25) {
3976
+ async updateApproval(approvalId, ops, auth2 = SERVICE27) {
3552
3977
  await this.ctx.http.request({
3553
3978
  method: "PATCH",
3554
3979
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -3557,7 +3982,7 @@ var ApprovalService = class {
3557
3982
  });
3558
3983
  }
3559
3984
  /** Delete an approval by id. */
3560
- async deleteApproval(approvalId, auth2 = SERVICE25) {
3985
+ async deleteApproval(approvalId, auth2 = SERVICE27) {
3561
3986
  await this.ctx.http.request({
3562
3987
  method: "DELETE",
3563
3988
  path: `${this.base()}/approvals/${encodeURIComponent(approvalId)}`,
@@ -3565,7 +3990,7 @@ var ApprovalService = class {
3565
3990
  });
3566
3991
  }
3567
3992
  /** Check whether an operation on a resource is permitted / needs approval. */
3568
- async checkPermitted(input, auth2 = SERVICE25) {
3993
+ async checkPermitted(input, auth2 = SERVICE27) {
3569
3994
  return this.ctx.http.request({
3570
3995
  method: "POST",
3571
3996
  path: `${this.base()}/approval/permitted`,
@@ -3574,7 +3999,7 @@ var ApprovalService = class {
3574
3999
  });
3575
4000
  }
3576
4001
  /** Search for users eligible to approve a resource. Returns an array. */
3577
- async searchApprovers(input, auth2 = SERVICE25) {
4002
+ async searchApprovers(input, auth2 = SERVICE27) {
3578
4003
  return this.ctx.http.request({
3579
4004
  method: "POST",
3580
4005
  path: `${this.base()}/search/users`,
@@ -3622,6 +4047,8 @@ var EmporixClient = class {
3622
4047
  countries;
3623
4048
  currencies;
3624
4049
  shipping;
4050
+ invoices;
4051
+ quotes;
3625
4052
  returns;
3626
4053
  sepaExport;
3627
4054
  indexing;
@@ -3693,6 +4120,8 @@ var EmporixClient = class {
3693
4120
  this.countries = new CountryService(mk(CountryService.channel));
3694
4121
  this.currencies = new CurrencyService(mk(CurrencyService.channel));
3695
4122
  this.shipping = new ShippingService(mk(ShippingService.channel));
4123
+ this.invoices = new InvoiceService(mk(InvoiceService.channel));
4124
+ this.quotes = new QuoteService(mk(QuoteService.channel));
3696
4125
  this.returns = new ReturnsService(mk(ReturnsService.channel));
3697
4126
  this.sepaExport = new SepaExportService(mk(SepaExportService.channel));
3698
4127
  this.indexing = new IndexingService(mk(IndexingService.channel));
@@ -3766,6 +4195,6 @@ function productIdFromYrn(yrn) {
3766
4195
  return semi >= 0 ? yrn.slice(semi + 1) : "";
3767
4196
  }
3768
4197
 
3769
- export { AiService, ApprovalService, BrandService, CatalogService, ClientConfigService, CloudFunctionsService, CountryService, CouponService, CurrencyService, CustomerAdminService, DEFAULT_HOST, EmporixClient, FeeService, HttpClient, IndexingService, LEVEL, LabelService, LevelResolver, PickPackService, RagIndexerService, ReturnsService, RewardPointsService, SchemaService, SepaExportService, SequentialIdService, SessionContextService, ShippingService, ShoppingListService, SiteService, TaxService, TenantConfigService, UnitHandlingService, VendorService, WebhookService, createConsoleLogger, createCore, createEmporixClient, createNoopLogger, productIdFromYrn, redact, validateConfig };
4198
+ export { AiService, ApprovalService, BrandService, CatalogService, ClientConfigService, CloudFunctionsService, CountryService, CouponService, CurrencyService, CustomerAdminService, DEFAULT_HOST, EmporixClient, FeeService, HttpClient, IndexingService, InvoiceService, LEVEL, LabelService, LevelResolver, PickPackService, QuoteService, RagIndexerService, ReturnsService, RewardPointsService, SchemaService, SepaExportService, SequentialIdService, SessionContextService, ShippingService, ShoppingListService, SiteService, TaxService, TenantConfigService, UnitHandlingService, VendorService, WebhookService, createConsoleLogger, createCore, createEmporixClient, createNoopLogger, productIdFromYrn, redact, validateConfig };
3770
4199
  //# sourceMappingURL=index.js.map
3771
4200
  //# sourceMappingURL=index.js.map