@voltro/api-client 0.86.0 → 0.88.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.
@@ -1,6 +1,6 @@
1
1
  # Third-Party Notices — @voltro/api-client
2
2
 
3
- This package uses the open-source software listed below. Each is the
3
+ This package uses the third-party software listed below. Each is the
4
4
  property of its respective copyright holders and is used under the terms of
5
5
  its license. This file is provided for attribution; it grants no rights in
6
6
  @voltro/api-client itself, which is proprietary (see LICENSE).
@@ -0,0 +1,107 @@
1
+ // src/apiRoleEndpoints.ts
2
+ var e = (e, t) => {
3
+ if (!e || typeof e != "object" || Array.isArray(e) || ![Object.prototype, null].includes(Object.getPrototypeOf(e))) throw Error("Invalid role endpoint object");
4
+ let n = Object.create(null);
5
+ for (let r of Reflect.ownKeys(e)) {
6
+ let i = Object.getOwnPropertyDescriptor(e, r);
7
+ if (typeof r != "string" || !t.includes(r) || !i.enumerable || !("value" in i)) throw Error("Invalid role endpoint field");
8
+ n[r] = i.value;
9
+ }
10
+ return n;
11
+ }, t = (e, t, n = !1) => {
12
+ if (!Array.isArray(e) || e.length < +!n || e.length > t || Reflect.ownKeys(e).length !== e.length + 1) throw Error("Invalid role endpoint list");
13
+ let r = [];
14
+ for (let t = 0; t < e.length; t++) {
15
+ let n = Object.getOwnPropertyDescriptor(e, String(t));
16
+ if (!n?.enumerable || !("value" in n)) throw Error("Invalid role endpoint list item");
17
+ r.push(n.value);
18
+ }
19
+ return r;
20
+ }, n = /^(?:[A-Za-z][A-Za-z0-9_-]*\.)*[A-Za-z][A-Za-z0-9_-]*$/, r = /^(?:[A-Za-z_][A-Za-z0-9_-]*\.)*[A-Za-z_][A-Za-z0-9_-]*$/, i = [
21
+ "rpc",
22
+ "subscriptions",
23
+ "events",
24
+ "presence",
25
+ "workflows",
26
+ "schedules",
27
+ "directors",
28
+ "drainers",
29
+ "reapers",
30
+ "retention",
31
+ "rest",
32
+ "webhooks",
33
+ "inspect",
34
+ "cdc"
35
+ ], a = (r) => {
36
+ let a = e(r, [
37
+ "version",
38
+ "transport",
39
+ "roles"
40
+ ]);
41
+ if (a.version !== 1 || a.transport !== "compose-nginx" && a.transport !== "kubernetes-nginx") throw Error("Unknown role endpoint protocol");
42
+ let o = /* @__PURE__ */ new Set(), s = t(a.roles, 32, !0).map((r) => {
43
+ let a = e(r, [
44
+ "role",
45
+ "routes",
46
+ "workloads",
47
+ "httpPath",
48
+ "webSocketPath"
49
+ ]), s = a.role;
50
+ if (typeof s != "string" || !/^[a-z][a-z0-9-]{0,63}$/.test(s) || o.has(s)) throw Error("Invalid or duplicate endpoint role");
51
+ o.add(s);
52
+ let c = t(a.workloads, 14).map((e) => {
53
+ if (typeof e != "string" || !i.includes(e)) throw Error("Unknown endpoint workload");
54
+ return e;
55
+ });
56
+ if (new Set(c).size !== c.length) throw Error("Duplicate endpoint workload");
57
+ let l = a.routes === null ? null : t(a.routes, 128).map((e) => {
58
+ if (typeof e != "string" || e.length > 191 || !n.test(e.endsWith(".*") ? e.slice(0, -2) : e)) throw Error("Invalid endpoint tag filter");
59
+ return e;
60
+ });
61
+ if (l && new Set(l).size !== l.length) throw Error("Duplicate endpoint tag filter");
62
+ let u = "/_voltro/roles/" + s;
63
+ if (a.webSocketPath !== u + "/ws" || a.httpPath !== (c.includes("rpc") ? u + "/rpc" : null)) throw Error("Role endpoints must use canonical same-origin paths");
64
+ return Object.freeze({
65
+ role: s,
66
+ routes: l && Object.freeze(l),
67
+ workloads: Object.freeze(c),
68
+ httpPath: a.httpPath,
69
+ webSocketPath: a.webSocketPath
70
+ });
71
+ });
72
+ return Object.freeze({
73
+ version: 1,
74
+ transport: a.transport,
75
+ roles: Object.freeze(s)
76
+ });
77
+ }, o = (e, t, n) => {
78
+ if (t.length > 191 || !r.test(t) || ![
79
+ "rpc",
80
+ "subscriptions",
81
+ "events"
82
+ ].includes(n)) throw Error("Invalid role endpoint request");
83
+ let i, a = -1, o = !1;
84
+ for (let r of e.roles) {
85
+ if (!r.workloads.includes(n)) continue;
86
+ let e = r.routes === null ? 0 : Math.max(-1, ...r.routes.map((e) => e.endsWith(".*") ? t.startsWith(e.slice(0, -1)) ? e.length : -1 : e === t ? 1024 + e.length : -1));
87
+ e > a ? (i = r, a = e, o = !1) : e >= 0 && e === a && (o = !0);
88
+ }
89
+ if (!i || o) throw Error(o ? "Ambiguous role endpoint" : "No role endpoint owns this tag and workload");
90
+ return i;
91
+ }, s = (e) => {
92
+ if (!/^[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}$/.test(e)) throw Error("Invalid role proxy API name");
93
+ return `/_voltro/role-api/api-${e}/ws`;
94
+ }, c = (e, t, n) => {
95
+ if (!/^[a-z][a-z0-9-]{0,63}$/.test(t.role) || !["http", "websocket"].includes(n)) throw Error("Invalid role transport");
96
+ let r = new URL(e);
97
+ if (![
98
+ "http:",
99
+ "https:",
100
+ "ws:",
101
+ "wss:"
102
+ ].includes(r.protocol) || r.username || r.password) throw Error("Invalid role endpoint origin");
103
+ let i = n === "http" ? t.httpPath : t.webSocketPath;
104
+ if (!i || i !== "/_voltro/roles/" + t.role + (n === "http" ? "/rpc" : "/ws")) throw Error("Missing or noncanonical role transport");
105
+ return r.protocol = n === "http" ? r.protocol === "https:" || r.protocol === "wss:" ? "https:" : "http:" : r.protocol === "https:" || r.protocol === "wss:" ? "wss:" : "ws:", r.pathname = (/^\/_voltro\/role-api\/api-[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}\/ws$/.test(r.pathname) ? r.pathname.slice(0, -3) : "") + i, r.search = "", r.hash = "", r.toString();
106
+ };
107
+ export { c as apiRoleEndpointUrl, s as apiRoleProxyBasePath, a as captureApiRoleEndpoints, o as selectApiRoleEndpoint };
package/dist/client.js CHANGED
@@ -1,8 +1,9 @@
1
1
  import { splitTag as e } from "./manifest.js";
2
2
  import { makeRestCore as t } from "./rest.js";
3
3
  import { openLiveQueries as n } from "./live.js";
4
- //#region src/client.ts
5
- var r = (t) => {
4
+ import { apiRoleEndpointUrl as r, captureApiRoleEndpoints as i, selectApiRoleEndpoint as a } from "./apiRoleEndpoints.js";
5
+ // src/client.ts
6
+ var o = (t) => {
6
7
  let n = {};
7
8
  for (let r of t.manifest.projections) {
8
9
  let i = Object.assign((e, n) => t.call(r.tag, e, n), {
@@ -18,7 +19,7 @@ var r = (t) => {
18
19
  s[o] = i, n[a] = s;
19
20
  }
20
21
  return n;
21
- }, i = (e, t, n, r) => ({ async *[Symbol.asyncIterator]() {
22
+ }, s = (e, t, n, r) => ({ async *[Symbol.asyncIterator]() {
22
23
  let i;
23
24
  for (;;) {
24
25
  let a = await e(i === void 0 ? n : {
@@ -28,27 +29,39 @@ var r = (t) => {
28
29
  if (yield a.value, a.nextCursor === void 0) return;
29
30
  i = a.nextCursor;
30
31
  }
31
- } }), a = (e, r = {}) => {
32
- let a = t(e.manifest, e.errors, r), o = e.manifest.profile.cursorParam, s, c = () => s ??= n(e.manifest, e.errors, a.baseUrl, {
33
- token: r.token,
34
- tenant: r.tenant,
35
- headers: r.headers,
36
- ...r.subscriptions ?? {}
37
- });
32
+ } }), c = (e, o = {}) => {
33
+ let c = t(e.manifest, e.errors, o), l = e.manifest.profile.cursorParam, u = o.roleEndpoints === void 0 ? void 0 : i(o.roleEndpoints);
34
+ if (u && o.subscriptions?.wsUrl !== void 0) throw Error("Role endpoints and a fixed subscription URL are mutually exclusive");
35
+ let d = /* @__PURE__ */ new Map(), f = !1, p = (t) => {
36
+ if (f) throw Error("API client is closed");
37
+ let i = u && a(u, t, "subscriptions"), s = i?.role ?? "default", l = d.get(s);
38
+ return l || (l = n(e.manifest, e.errors, c.baseUrl, {
39
+ token: o.token,
40
+ tenant: o.tenant,
41
+ headers: o.headers,
42
+ ...o.subscriptions ?? {},
43
+ ...i ? { wsUrl: r(c.baseUrl, i, "websocket") } : {}
44
+ }), d.set(s, l)), l;
45
+ };
38
46
  return {
39
47
  manifest: e.manifest,
40
48
  errors: e.errors,
41
- call: async (e, t = {}, n) => (await a.call(e, t, n)).value,
42
- callRaw: (e, t = {}, n) => a.call(e, t, n),
43
- pages: (e, t = {}, n) => i((t, n) => a.call(e, t, n), o, t, n),
44
- subscribe: (e, t = {}) => c().subscribe(e, t),
49
+ call: async (e, t = {}, n) => (await c.call(e, t, n)).value,
50
+ callRaw: (e, t = {}, n) => c.call(e, t, n),
51
+ pages: (e, t = {}, n) => s((t, n) => c.call(e, t, n), l, t, n),
52
+ subscribe: (e, t = {}) => {
53
+ let n = p(e);
54
+ return { [Symbol.asyncIterator]: () => {
55
+ if (f) throw Error("API client is closed");
56
+ return n.subscribe(e, t)[Symbol.asyncIterator]();
57
+ } };
58
+ },
45
59
  close: async () => {
46
- await s?.close();
60
+ f = !0, await Promise.all([...d.values()].map((e) => e.close())), d.clear();
47
61
  }
48
62
  };
49
- }, o = (e, t = {}) => {
50
- let n = a(e, t);
51
- return Object.assign(r(n), n);
63
+ }, l = (e, t = {}) => {
64
+ let n = c(e, t);
65
+ return Object.assign(o(n), n);
52
66
  };
53
- //#endregion
54
- export { r as buildNamespaces, o as createClient, a as createPromiseClient, i as pagesOf };
67
+ export { o as buildNamespaces, l as createClient, c as createPromiseClient, s as pagesOf };
package/dist/errors.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/errors.ts
1
+ // src/errors.ts
2
2
  var e = class extends Error {
3
3
  status;
4
4
  requestId;
@@ -73,5 +73,4 @@ var e = class extends Error {
73
73
  }
74
74
  return Object.defineProperty(t, "name", { value: e }), t;
75
75
  };
76
- //#endregion
77
76
  export { e as ApiClientError, n as ApiHttpError, o as DeclaredError, a as InputEncodeError, i as ProfileMismatchError, r as RateLimitedError, t as TransportError, s as defineError };
package/dist/index.d.ts CHANGED
@@ -8,6 +8,8 @@ export declare interface ApiClientConfig extends RestClientConfig {
8
8
  /** The socket the live queries ride — derived from `baseUrl` by default,
9
9
  * opened on the first `subscribe`. */
10
10
  readonly subscriptions?: LiveQueriesConfig | undefined;
11
+ /** Captured role-endpoints.json; live subscriptions use a separate socket per role. */
12
+ readonly roleEndpoints?: unknown;
11
13
  }
12
14
 
13
15
  /** The base of every error the client raises: a `_tag`, the HTTP `status`
@@ -44,6 +46,27 @@ export declare class ApiHttpError extends ApiClientError {
44
46
  });
45
47
  }
46
48
 
49
+ export declare interface ApiRoleEndpoint {
50
+ readonly role: string;
51
+ readonly routes: ReadonlyArray<string> | null;
52
+ readonly workloads: ReadonlyArray<string>;
53
+ readonly httpPath: string | null;
54
+ readonly webSocketPath: string;
55
+ }
56
+
57
+ export declare interface ApiRoleEndpoints {
58
+ readonly version: 1;
59
+ readonly transport: 'compose-nginx' | 'kubernetes-nginx';
60
+ readonly roles: ReadonlyArray<ApiRoleEndpoint>;
61
+ }
62
+
63
+ export declare const apiRoleEndpointUrl: (baseUrl: string, endpoint: ApiRoleEndpoint, transport: "http" | "websocket") => string;
64
+
65
+ /** Reserved web proxy base; the API name isolates identical role names. */
66
+ export declare const apiRoleProxyBasePath: (apiName: string) => string;
67
+
68
+ export declare type ApiRoleRpcWorkload = 'rpc' | 'subscriptions' | 'events';
69
+
47
70
  /**
48
71
  * Apply a patch to `prev`: `add`/`replace` set the id's row, `mergeCells`
49
72
  * folds columns into it, and null order preserves the previous ID sequence.
@@ -79,6 +102,8 @@ export declare interface CallResult<A = unknown> {
79
102
  readonly fromCache: boolean;
80
103
  }
81
104
 
105
+ export declare const captureApiRoleEndpoints: (value: unknown) => ApiRoleEndpoints;
106
+
82
107
  export declare interface ClientManifest {
83
108
  /** The generated package's name and version — the `User-Agent` line. */
84
109
  readonly name?: string;
@@ -135,6 +160,9 @@ export declare interface ClientProjection {
135
160
  /** The typed errors the projection answers with, by tag, and the status
136
161
  * each is answered with. */
137
162
  readonly errorStatus?: Readonly<Record<string, number>>;
163
+ /** Other documented statuses for the same typed error; the primary mapping
164
+ * above remains stable. Response decoding uses the actual HTTP response. */
165
+ readonly additionalErrorStatuses?: Readonly<Record<string, ReadonlyArray<number>>>;
138
166
  /** Whether the output carries the profile's cursor field — the route can
139
167
  * answer with a next page. */
140
168
  readonly paginates: boolean;
@@ -436,6 +464,10 @@ export declare type RowPatchOp = {
436
464
  /** The codec options of the rpc socket: the schema's own date forms, no renaming. */
437
465
  export declare const rpcCodec: (models: Readonly<Record<string, WireType>>) => WireCodecOptions;
438
466
 
467
+ /** Exact tags outrank namespace filters; deeper namespaces outrank broader ones.
468
+ * Equal specificity is an ambiguity, never an implicit failover/credential hop. */
469
+ export declare const selectApiRoleEndpoint: (endpoints: ApiRoleEndpoints, tag: string, workload: ApiRoleRpcWorkload) => ApiRoleEndpoint;
470
+
439
471
  /** `teams.getById` → `{ namespace: 'teams', method: 'getById' }`; a tag
440
472
  * without a dot lives at the root. The tag prefix is the namespace, like the
441
473
  * OpenAPI tag group. */
@@ -514,8 +546,12 @@ export declare interface WireProcedure {
514
546
  readonly errors?: Readonly<Record<string, WireType>> | undefined;
515
547
  }
516
548
 
517
- export declare type WireType = {
549
+ export declare type WireType =
550
+ /** Native source may retain the actual byte transformation's encoded form.
551
+ * Ordinary TypeScript wire generation and string values are unchanged. */
552
+ {
518
553
  readonly kind: 'string';
554
+ readonly byteEncoding?: 'base64';
519
555
  } | {
520
556
  readonly kind: 'number';
521
557
  } | {
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { ApiClientError as s, ApiHttpError as c, DeclaredError as l, InputEncode
4
4
  import { cursorFromLink as h, declaredErrorOf as g, makeRestCore as _, uuidV7 as v } from "./rest.js";
5
5
  import { applyRowPatch as y, pathToId as b } from "./rowPatch.js";
6
6
  import { openLiveQueries as x, wsUrlFromBase as S } from "./live.js";
7
- import { buildNamespaces as C, createClient as w, createPromiseClient as T, pagesOf as E } from "./client.js";
8
- import { createMockClient as D } from "./mock.js";
9
- export { s as ApiClientError, c as ApiHttpError, l as DeclaredError, u as InputEncodeError, d as ProfileMismatchError, f as RateLimitedError, p as TransportError, y as applyRowPatch, C as buildNamespaces, w as createClient, D as createMockClient, T as createPromiseClient, h as cursorFromLink, g as declaredErrorOf, n as decodeWire, m as defineError, r as encodeWire, i as hasRequiredField, _ as makeRestCore, x as openLiveQueries, E as pagesOf, b as pathToId, e as projectionOf, a as rpcCodec, t as splitTag, o as toSnakeCase, v as uuidV7, S as wsUrlFromBase };
7
+ import { apiRoleEndpointUrl as C, apiRoleProxyBasePath as w, captureApiRoleEndpoints as T, selectApiRoleEndpoint as E } from "./apiRoleEndpoints.js";
8
+ import { buildNamespaces as D, createClient as O, createPromiseClient as k, pagesOf as A } from "./client.js";
9
+ import { createMockClient as j } from "./mock.js";
10
+ export { s as ApiClientError, c as ApiHttpError, l as DeclaredError, u as InputEncodeError, d as ProfileMismatchError, f as RateLimitedError, p as TransportError, C as apiRoleEndpointUrl, w as apiRoleProxyBasePath, y as applyRowPatch, D as buildNamespaces, T as captureApiRoleEndpoints, O as createClient, j as createMockClient, k as createPromiseClient, h as cursorFromLink, g as declaredErrorOf, n as decodeWire, m as defineError, r as encodeWire, i as hasRequiredField, _ as makeRestCore, x as openLiveQueries, A as pagesOf, b as pathToId, e as projectionOf, a as rpcCodec, E as selectApiRoleEndpoint, t as splitTag, o as toSnakeCase, v as uuidV7, S as wsUrlFromBase };
package/dist/live.js CHANGED
@@ -3,7 +3,7 @@ import { decodeWire as t, encodeWire as n, rpcCodec as r } from "./wire.js";
3
3
  import { TransportError as i } from "./errors.js";
4
4
  import { declaredErrorOf as a } from "./rest.js";
5
5
  import { createRowPatchApplier as o } from "./rowPatch.js";
6
- //#region src/live.ts
6
+ // src/live.ts
7
7
  var s = (e) => {
8
8
  let t = new URL(e);
9
9
  return t.protocol = t.protocol === "https:" ? "wss:" : "ws:", t.pathname = "/ws", t.search = "", t.toString();
@@ -226,5 +226,4 @@ var s = (e) => {
226
226
  }
227
227
  };
228
228
  };
229
- //#endregion
230
229
  export { l as openLiveQueries, s as wsUrlFromBase };
package/dist/manifest.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/manifest.ts
1
+ // src/manifest.ts
2
2
  var e = (e) => {
3
3
  let t = e.indexOf(".");
4
4
  return t < 0 ? {
@@ -13,5 +13,4 @@ var e = (e) => {
13
13
  if (n === void 0) throw Error(`@voltro/api-client: no projection for tag '${t}' in the manifest (${e.projections.length} projection(s))`);
14
14
  return n;
15
15
  };
16
- //#endregion
17
16
  export { t as projectionOf, e as splitTag };
package/dist/mock.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { buildNamespaces as e } from "./client.js";
2
- //#region src/mock.ts
2
+ // src/mock.ts
3
3
  var t = (e) => e instanceof Error || typeof e == "object" && !!e && "_tag" in e && typeof e._tag == "string" && e._tag.endsWith("Error"), n = (n, r = {}) => {
4
4
  let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), c = [], l = async (e, t) => {
5
5
  c.push({
@@ -87,5 +87,4 @@ var t = (e) => e instanceof Error || typeof e == "object" && !!e && "_tag" in e
87
87
  };
88
88
  return Object.assign(e(u), u);
89
89
  };
90
- //#endregion
91
90
  export { n as createMockClient };
package/dist/rest.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { projectionOf as e } from "./manifest.js";
2
2
  import { decodeWire as t, encodeWire as n } from "./wire.js";
3
3
  import { ApiHttpError as r, InputEncodeError as i, ProfileMismatchError as a, RateLimitedError as o, TransportError as s } from "./errors.js";
4
- //#region src/rest.ts
4
+ // src/rest.ts
5
5
  var c = (e = Date.now()) => {
6
6
  let t = /* @__PURE__ */ new Uint8Array(16);
7
7
  crypto.getRandomValues(t);
@@ -129,7 +129,7 @@ var c = (e = Date.now()) => {
129
129
  };
130
130
  L !== void 0 && (R.authorization = `Bearer ${L}`), v.tenant !== void 0 && (R["x-tenant"] = v.tenant), k !== void 0 && (R["user-agent"] = k);
131
131
  let z = v.traceparent?.();
132
- z !== void 0 && (R.traceparent = z), P || (R["content-type"] = "application/json"), !P && (m.idempotent === !0 || l.idempotencyKey !== void 0) && (R["idempotency-key"] = l.idempotencyKey ?? c(S()));
132
+ z !== void 0 && (R.traceparent = z), P || (R["content-type"] = "application/json"), P || m.idempotent !== !0 && l.idempotencyKey === void 0 || (R["idempotency-key"] = l.idempotencyKey ?? c(S()));
133
133
  let B = P && w ? T.get(I) : void 0;
134
134
  B !== void 0 && (R["if-none-match"] = B.etag);
135
135
  let V = async (e) => {
@@ -155,7 +155,7 @@ var c = (e = Date.now()) => {
155
155
  actual: f
156
156
  });
157
157
  let h = i.headers.get("sunset"), g = i.headers.get("deprecation");
158
- if ((h !== null || g !== null) && !E.has(n) && (E.add(n), D({
158
+ if (h === null && g === null || E.has(n) || (E.add(n), D({
159
159
  tag: n,
160
160
  path: m.path,
161
161
  sunset: h ?? m.sunset,
@@ -236,5 +236,4 @@ var c = (e = Date.now()) => {
236
236
  baseUrl: b
237
237
  };
238
238
  };
239
- //#endregion
240
239
  export { d as cursorFromLink, g as declaredErrorOf, _ as makeRestCore, c as uuidV7 };
package/dist/rowPatch.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/rowPatch.ts
1
+ // src/rowPatch.ts
2
2
  var e = (e) => (e.startsWith("/") ? e.slice(1) : e).replace(/~1/g, "/").replace(/~0/g, "~"), t = (e, t, r = {}) => {
3
3
  let i = /* @__PURE__ */ new Map();
4
4
  for (let t of e) i.set(t.id, t);
@@ -72,5 +72,4 @@ var e = (e) => (e.startsWith("/") ? e.slice(1) : e).replace(/~1/g, "/").replace(
72
72
  }
73
73
  };
74
74
  };
75
- //#endregion
76
75
  export { t as applyRowPatch, r as createRowPatchApplier, e as pathToId };
package/dist/wire.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/wire.ts
1
+ // src/wire.ts
2
2
  var e = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toLowerCase(), t = (e) => ({
3
3
  dates: "rpc",
4
4
  naming: "camelCase",
@@ -97,5 +97,4 @@ var e = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a
97
97
  let r = n(e, t);
98
98
  return r.kind === "object" ? r.fields.some((e) => !e.optional) : r.kind !== "undefined";
99
99
  };
100
- //#endregion
101
100
  export { d as decodeWire, u as encodeWire, f as hasRequiredField, t as rpcCodec, e as toSnakeCase };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/api-client",
3
- "version": "0.86.0",
3
+ "version": "0.88.0",
4
4
  "description": "The runtime of a generated TypeScript client for a Voltro public API (`voltro build api --target typescript`): the REST surface spoken profile-aware — typed errors as plain classes, dates, envelopes, pagination, a 429 as a wait, idempotency keys — with no dependencies, not on a schema library and not on Effect. Runs in Node, Bun, Deno and the browser. The Effect flavor is `@voltro/api-client-effect`.",
5
5
  "keywords": [
6
6
  "voltro",