@samva/cli 0.5.0 → 0.6.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.
package/dist/bin.mjs CHANGED
@@ -13567,7 +13567,7 @@ var layer12 = /* @__PURE__ */ layer.pipe(/* @__PURE__ */ provideMerge(/* @__PURE
13567
13567
  // package.json
13568
13568
  var package_default = {
13569
13569
  name: "@samva/cli",
13570
- version: "0.5.0",
13570
+ version: "0.6.0",
13571
13571
  description: "Samva CLI \u2014 email and platform operations from your terminal",
13572
13572
  keywords: [
13573
13573
  "cli",
@@ -13615,20 +13615,20 @@ var package_default = {
13615
13615
  devDependencies: {
13616
13616
  "@effect/platform-bun": "catalog:effect",
13617
13617
  "@effect/vitest": "catalog:effect",
13618
- "@samva/markup": "workspace:0.9.0",
13619
- "@samva/vite": "workspace:0.9.0",
13618
+ "@samva/markup": "workspace:0.10.0",
13619
+ "@samva/vite": "workspace:0.10.0",
13620
13620
  "@types/node": "catalog:",
13621
13621
  "better-auth": "catalog:",
13622
13622
  effect: "catalog:effect",
13623
- samva: "workspace:0.8.0",
13623
+ samva: "workspace:0.9.0",
13624
13624
  typescript: "catalog:",
13625
13625
  vitest: "catalog:"
13626
13626
  },
13627
13627
  optionalDependencies: {
13628
- "@samva/cli-darwin-arm64": "workspace:0.5.0",
13629
- "@samva/cli-darwin-x64": "workspace:0.5.0",
13630
- "@samva/cli-linux-arm64": "workspace:0.5.0",
13631
- "@samva/cli-linux-x64": "workspace:0.5.0"
13628
+ "@samva/cli-darwin-arm64": "workspace:0.6.0",
13629
+ "@samva/cli-darwin-x64": "workspace:0.6.0",
13630
+ "@samva/cli-linux-arm64": "workspace:0.6.0",
13631
+ "@samva/cli-linux-x64": "workspace:0.6.0"
13632
13632
  },
13633
13633
  engines: {
13634
13634
  node: ">=18"
@@ -18532,472 +18532,6 @@ var AGENT_AUTH_HINT = "For CI and agents, set SAMVA_API_KEY instead of samva log
18532
18532
 
18533
18533
  // src/commands/brands.ts
18534
18534
  import { join as join3, relative, resolve as resolve5 } from "path";
18535
-
18536
- // ../markup/dist/diagnostics.js
18537
- var buildLineMap = (source) => {
18538
- const lineStarts = [0];
18539
- for (let index = 0;index < source.length; index++) {
18540
- const code = source.charCodeAt(index);
18541
- if (code === 10 || code === 13 && source.charCodeAt(index + 1) !== 10 || code === 8232 || code === 8233)
18542
- lineStarts.push(index + 1);
18543
- }
18544
- return lineStarts;
18545
- };
18546
- var lineColumn = (lineMap, offset) => {
18547
- let low = 0;
18548
- let high = lineMap.length - 1;
18549
- while (low < high) {
18550
- const middle = low + high + 1 >> 1;
18551
- if (lineMap[middle] <= offset)
18552
- low = middle;
18553
- else
18554
- high = middle - 1;
18555
- }
18556
- return {
18557
- line: low + 1,
18558
- column: offset - lineMap[low] + 1
18559
- };
18560
- };
18561
-
18562
- // ../../node_modules/.bun/better-result@3.0.1/node_modules/better-result/dist/index.mjs
18563
- function e(e, t) {
18564
- return e === 2 ? (...e) => e.length >= 2 ? t(e[0], e[1]) : (n) => t(n, e[0]) : e === 3 ? (...e) => e.length >= 3 ? t(e[0], e[1], e[2]) : (n) => t(n, e[0], e[1]) : e === 4 ? (...e) => e.length >= 4 ? t(e[0], e[1], e[2], e[3]) : (n) => t(n, e[0], e[1], e[2]) : (...n) => n.length >= e ? t(...n) : (e) => t(e, ...n);
18565
- }
18566
- var t = (e) => e instanceof Error ? { name: e.name, message: e.message, stack: e.stack } : e;
18567
- var n = class e extends Error {
18568
- _tag = `Panic`;
18569
- static is(t) {
18570
- return t instanceof e;
18571
- }
18572
- constructor(e) {
18573
- if (super(e.message, e.cause === undefined ? undefined : { cause: e.cause }), Object.assign(this, e), Object.setPrototypeOf(this, new.target.prototype), this.name = `Panic`, e.cause instanceof Error && e.cause.stack) {
18574
- let t = e.cause.stack.replace(/\n/g, `
18575
- `);
18576
- this.stack = `${this.stack}
18577
- Caused by: ${t}`;
18578
- }
18579
- }
18580
- toJSON() {
18581
- return { ...this, _tag: this._tag, name: this.name, message: this.message, cause: t(this.cause), stack: this.stack };
18582
- }
18583
- *[Symbol.iterator]() {
18584
- return yield* d(this), i(`Unreachable: Err yielded in Panic but generator continued`, this);
18585
- }
18586
- };
18587
- var i = (e, t) => {
18588
- throw new n({ message: e, cause: t });
18589
- };
18590
- var a = (e, t) => {
18591
- try {
18592
- return e();
18593
- } catch (e) {
18594
- throw i(t, e);
18595
- }
18596
- };
18597
- var o = async (e, t) => {
18598
- try {
18599
- return await e();
18600
- } catch (e) {
18601
- throw i(t, e);
18602
- }
18603
- };
18604
- var s = class e {
18605
- status = `ok`;
18606
- constructor(e) {
18607
- this.value = e;
18608
- }
18609
- isOk() {
18610
- return true;
18611
- }
18612
- isErr() {
18613
- return false;
18614
- }
18615
- map(t) {
18616
- return a(() => new e(t(this.value)), `map callback threw`);
18617
- }
18618
- mapError(e) {
18619
- return this;
18620
- }
18621
- tryRecover(e) {
18622
- return this;
18623
- }
18624
- tryRecoverAsync(e) {
18625
- return Promise.resolve(this);
18626
- }
18627
- andThen(e) {
18628
- return a(() => e(this.value), `andThen callback threw`);
18629
- }
18630
- andThenAsync(e) {
18631
- return o(() => e(this.value), `andThenAsync callback threw`);
18632
- }
18633
- match(e) {
18634
- return a(() => e.ok(this.value), `match ok handler threw`);
18635
- }
18636
- unwrap(e) {
18637
- return this.value;
18638
- }
18639
- unwrapOr(e) {
18640
- return this.value;
18641
- }
18642
- tap(e) {
18643
- return a(() => (e(this.value), this), `tap callback threw`);
18644
- }
18645
- tapAsync(e) {
18646
- return o(async () => (await e(this.value), this), `tapAsync callback threw`);
18647
- }
18648
- tapError(e) {
18649
- return this;
18650
- }
18651
- tapErrorAsync(e) {
18652
- return Promise.resolve(this);
18653
- }
18654
- tapBoth(e) {
18655
- return a(() => (e.ok(this.value), this), `tapBoth ok callback threw`);
18656
- }
18657
- tapBothAsync(e) {
18658
- return o(async () => (await e.ok(this.value), this), `tapBothAsync ok callback threw`);
18659
- }
18660
- *[Symbol.iterator]() {
18661
- return this.value;
18662
- }
18663
- };
18664
- var c = class e {
18665
- status = `error`;
18666
- constructor(e) {
18667
- this.error = e;
18668
- }
18669
- isOk() {
18670
- return false;
18671
- }
18672
- isErr() {
18673
- return true;
18674
- }
18675
- map(e) {
18676
- return this;
18677
- }
18678
- mapError(t) {
18679
- return a(() => new e(t(this.error)), `mapError callback threw`);
18680
- }
18681
- tryRecover(e) {
18682
- return a(() => e(this.error), `tryRecover callback threw`);
18683
- }
18684
- tryRecoverAsync(e) {
18685
- return o(() => e(this.error), `tryRecoverAsync callback threw`);
18686
- }
18687
- andThen(e) {
18688
- return this;
18689
- }
18690
- andThenAsync(e) {
18691
- return Promise.resolve(this);
18692
- }
18693
- match(e) {
18694
- return a(() => e.err(this.error), `match err handler threw`);
18695
- }
18696
- unwrap(e) {
18697
- return i(e ?? `Unwrap called on Err: ${String(this.error)}`, this.error);
18698
- }
18699
- unwrapOr(e) {
18700
- return e;
18701
- }
18702
- tap(e) {
18703
- return this;
18704
- }
18705
- tapError(e) {
18706
- return a(() => (e(this.error), this), `tapError callback threw`);
18707
- }
18708
- tapAsync(e) {
18709
- return Promise.resolve(this);
18710
- }
18711
- tapErrorAsync(e) {
18712
- return o(async () => (await e(this.error), this), `tapErrorAsync callback threw`);
18713
- }
18714
- tapBoth(e) {
18715
- return a(() => (e.err(this.error), this), `tapBoth err callback threw`);
18716
- }
18717
- tapBothAsync(e) {
18718
- return o(async () => (await e.err(this.error), this), `tapBothAsync err callback threw`);
18719
- }
18720
- *[Symbol.iterator]() {
18721
- return yield this, i(`Unreachable: Err yielded in Result.gen but generator continued`, this.error);
18722
- }
18723
- };
18724
- function l(e) {
18725
- return new s(e);
18726
- }
18727
- var u = (e) => e.status === `ok`;
18728
- var d = (e) => new c(e);
18729
- var f = (e) => e.status === `error`;
18730
- var p = (e) => e instanceof Error ? { name: e.name, message: e.message, stack: e.stack } : e;
18731
- var m = (e) => e instanceof Error && (`_tag` in e) && typeof e._tag == `string` && (`toJSON` in e) && typeof e.toJSON == `function`;
18732
- var h = (e) => {
18733
-
18734
- class t extends Error {
18735
- _tag = e;
18736
- constructor(t) {
18737
- let n = t && `message` in t && typeof t.message == `string` ? t.message : undefined, r = t && `cause` in t ? t.cause : undefined;
18738
- if (super(n, r === undefined ? undefined : { cause: r }), t && Object.assign(this, t), Object.setPrototypeOf(this, new.target.prototype), this.name = e, r instanceof Error && r.stack) {
18739
- let e2 = r.stack.replace(/\n/g, `
18740
- `);
18741
- this.stack = `${this.stack}
18742
- Caused by: ${e2}`;
18743
- }
18744
- }
18745
- toJSON() {
18746
- return { ...this, _tag: this._tag, name: this.name, message: this.message, cause: p(this.cause), stack: this.stack };
18747
- }
18748
- match(e2) {
18749
- return g(this, e2);
18750
- }
18751
- *[Symbol.iterator]() {
18752
- return yield* d(this), i(`Unreachable: Err yielded in TaggedError but generator continued`, this);
18753
- }
18754
- static is(e2) {
18755
- return e2 instanceof this;
18756
- }
18757
- }
18758
- return t;
18759
- };
18760
- h.is = m;
18761
- var g = e(2, (e, t) => {
18762
- let n = t[e._tag];
18763
- try {
18764
- return n(e);
18765
- } catch (e) {
18766
- return i(`matchError handler threw`, e);
18767
- }
18768
- });
18769
- var x = class extends h(`UnhandledException`) {
18770
- constructor(e) {
18771
- let t = e.cause instanceof Error ? `Unhandled exception: ${e.cause.message}` : `Unhandled exception: ${String(e.cause)}`;
18772
- super({ message: t, cause: e.cause });
18773
- }
18774
- };
18775
- var S = class extends h(`ResultDeserializationError`) {
18776
- constructor(e) {
18777
- super({ message: e.issues ? `Failed to deserialize Result payload` : `Failed to deserialize value as Result: expected { status: "ok", value } or { status: "error", error }`, value: e.value, issues: e.issues });
18778
- }
18779
- };
18780
- var C = class extends h(`ResultSerializationError`) {
18781
- constructor(e) {
18782
- super({ message: `Failed to serialize Result payload`, value: e.value, issues: e.issues });
18783
- }
18784
- };
18785
- var w = (e, t) => {
18786
- try {
18787
- return e();
18788
- } catch (e) {
18789
- throw i(t, e);
18790
- }
18791
- };
18792
- var T = (e, t) => {
18793
- let n = (t) => {
18794
- if (typeof e == `function`)
18795
- try {
18796
- return l(e(t));
18797
- } catch (e) {
18798
- return d(new x({ cause: e }));
18799
- }
18800
- try {
18801
- return l(e.try(t));
18802
- } catch (t) {
18803
- try {
18804
- return d(e.catch(t));
18805
- } catch (e) {
18806
- throw i(`Result.try catch handler threw`, e);
18807
- }
18808
- }
18809
- }, r = t?.retry?.times ?? 0, a = 1, o = n({ attempt: a });
18810
- for (let e = 0;e < r && o.status === `error`; e++)
18811
- a++, o = n({ attempt: a });
18812
- return o;
18813
- };
18814
- var E = async (e, t) => {
18815
- let n = async (t) => {
18816
- if (typeof e == `function`)
18817
- try {
18818
- return l(await e(t));
18819
- } catch (e) {
18820
- return d(new x({ cause: e }));
18821
- }
18822
- try {
18823
- return l(await e.try(t));
18824
- } catch (t) {
18825
- try {
18826
- return d(await e.catch(t));
18827
- } catch (e) {
18828
- throw i(`Result.tryPromise catch handler threw`, e);
18829
- }
18830
- }
18831
- }, r = t?.retry;
18832
- if (!r)
18833
- return n({ attempt: 1, signal: t?.signal });
18834
- let a = (e, t, n) => {
18835
- switch (t) {
18836
- case `constant`:
18837
- return e;
18838
- case `linear`:
18839
- return e * (n + 1);
18840
- case `exponential`:
18841
- return e * 2 ** n;
18842
- }
18843
- }, o = r.jitter ?? false;
18844
- if (typeof o == `number` && (!Number.isFinite(o) || o < 0 || o > 1))
18845
- throw i(`Result.tryPromise retry jitter must be a finite number between 0 and 1`);
18846
- let s = o === true ? 1 : o === false ? 0 : o, c = (e) => s === 0 ? e : e * (1 - s + Math.random() * s), u = (e, t) => new Promise((n) => {
18847
- if (t?.aborted) {
18848
- n(false);
18849
- return;
18850
- }
18851
- let r = () => {
18852
- clearTimeout(i), n(false);
18853
- }, i = setTimeout(() => {
18854
- t?.removeEventListener(`abort`, r), n(true);
18855
- }, e);
18856
- t?.addEventListener(`abort`, r, { once: true });
18857
- }), f = { attempt: 1, signal: t.signal }, p = await n(f), m = r.shouldRetry ?? (() => true);
18858
- for (let e = 0;e < r.times && !(p.status !== `error` || f.signal?.aborted); e++) {
18859
- let o = p.error;
18860
- if (!w(() => m(o, f), `shouldRetry predicate threw`))
18861
- break;
18862
- let s;
18863
- if (typeof r.delayMs == `function`) {
18864
- let e = r.delayMs;
18865
- s = w(() => e(o, f), `Result.tryPromise delayMs callback threw`);
18866
- } else {
18867
- if (r.backoff === undefined)
18868
- throw i(`Result.tryPromise static retry delay requires backoff`);
18869
- s = c(a(r.delayMs, r.backoff, e));
18870
- }
18871
- if (!await u(s, f.signal) || f.signal?.aborted)
18872
- break;
18873
- f = { attempt: f.attempt + 1, signal: t.signal }, p = await n(f);
18874
- }
18875
- return p;
18876
- };
18877
- var D = e(2, (e, t) => e.map(t));
18878
- var O = e(2, (e, t) => e.mapError(t));
18879
- var k = e(2, (e, t) => e.tryRecover(t));
18880
- var A = e(2, (e, t) => e.andThen(t));
18881
- var ee = e(2, (e, t) => e.tryRecoverAsync(t));
18882
- var te = e(2, (e, t) => e.andThenAsync(t));
18883
- var ne = e(2, (e, t) => e.match(t));
18884
- var j = e(2, (e, t) => e.tap(t));
18885
- var M = e(2, (e, t) => e.tapAsync(t));
18886
- var N = e(2, (e, t) => e.tapError(t));
18887
- var P = e(2, (e, t) => e.tapErrorAsync(t));
18888
- var F = e(2, (e, t) => e.tapBoth(t));
18889
- var I = e(2, (e, t) => e.tapBothAsync(t));
18890
- var L = (e, t) => e.unwrap(t);
18891
- function R(e) {
18892
- if (!(typeof e == `object` && e && (`status` in e) && (e.status === `ok` || e.status === `error`)))
18893
- return i(`Result.gen body must return Result.ok() or Result.err(), got: ` + (e === null ? `null` : typeof e == `object` ? JSON.stringify(e) : String(e)));
18894
- }
18895
- var z = e(2, (e, t) => e.unwrapOr(t));
18896
- var B = (e, t) => {
18897
- let n = e.call(t);
18898
- if (Symbol.asyncIterator in n)
18899
- return (async () => {
18900
- let e = n, t;
18901
- try {
18902
- t = await e.next();
18903
- } catch (e) {
18904
- throw i(`generator body threw`, e);
18905
- }
18906
- if (R(t.value), !t.done)
18907
- try {
18908
- await e.return?.(undefined);
18909
- } catch (e) {
18910
- throw i(`generator cleanup threw`, e);
18911
- }
18912
- return t.value;
18913
- })();
18914
- let r = n, a;
18915
- try {
18916
- a = r.next();
18917
- } catch (e) {
18918
- throw i(`generator body threw`, e);
18919
- }
18920
- if (R(a.value), !a.done)
18921
- try {
18922
- r.return?.(undefined);
18923
- } catch (e) {
18924
- throw i(`generator cleanup threw`, e);
18925
- }
18926
- return a.value;
18927
- };
18928
- async function* V(e) {
18929
- return yield* await e;
18930
- }
18931
- function H(e) {
18932
- return typeof e == `object` && !!e && `status` in e && (e.status === `ok` || e.status === `error`);
18933
- }
18934
- var U = (e) => typeof e == `object` && !!e && (`then` in e) && typeof e.then == `function`;
18935
- var W = (e, t) => w(e, t);
18936
- var G = (e, t, n) => U(e) ? Promise.resolve(e).catch((e) => {
18937
- throw i(t, e);
18938
- }).then(n) : n(e);
18939
- var K = (e, t) => (`issues` in e) && e.issues ? d(t(e.issues)) : l(e.value);
18940
- var q = (e, t) => G(W(() => e[`~standard`].validate(t), `Result.codec serialize schema threw`), `Result.codec serialize schema threw`, (e) => K(e, (e) => new C({ value: t, issues: e })));
18941
- var J = (e, t) => G(W(() => e[`~standard`].validate(t), `Result.codec deserialize schema threw`), `Result.codec deserialize schema threw`, (e) => K(e, (e) => new S({ value: t, issues: e })));
18942
- var Y = (e, t) => U(e) ? Promise.resolve(e).then((e) => e.unwrap(t)) : e.unwrap(t);
18943
- var X = (e) => {
18944
- let t = (e) => e.status === `ok` ? l(e.value) : S.is(e.error) ? e.unwrap(`Result.codec deserializeUnsafe failed`) : d(e.error);
18945
- return U(e) ? Promise.resolve(e).then(t) : t(e);
18946
- };
18947
- var re = (e) => {
18948
- let t = (e) => e.status === `error` ? d(e.error) : l({ status: `ok`, value: e.value }), n = (e) => e.status === `error` ? d(e.error) : l({ status: `error`, error: e.value });
18949
- function r(r) {
18950
- if (r.status === `ok`) {
18951
- let n = q(e.serialize.ok, r.value);
18952
- return U(n) ? Promise.resolve(n).then(t) : t(n);
18953
- }
18954
- let i = q(e.serialize.err, r.error);
18955
- return U(i) ? Promise.resolve(i).then(n) : n(i);
18956
- }
18957
- let i = (e) => e.status === `error` ? d(e.error) : l(e.value), a = (e) => e.status === `error` ? d(e.error) : d(e.value);
18958
- function o(t) {
18959
- if (!H(t))
18960
- return d(new S({ value: t }));
18961
- if (t.status === `ok`) {
18962
- let n = J(e.deserialize.ok, t.value);
18963
- return U(n) ? Promise.resolve(n).then(i) : i(n);
18964
- }
18965
- let n = J(e.deserialize.err, t.error);
18966
- return U(n) ? Promise.resolve(n).then(a) : a(n);
18967
- }
18968
- function s(e) {
18969
- return Y(r(e), `Result.codec serializeUnsafe failed`);
18970
- }
18971
- function c(e) {
18972
- return X(o(e));
18973
- }
18974
- return { serialize: r, serializeUnsafe: s, deserialize: o, deserializeUnsafe: c };
18975
- };
18976
- var Z = async (e, t) => {
18977
- try {
18978
- return await Promise.all(e);
18979
- } catch (e) {
18980
- return i(t, e);
18981
- }
18982
- };
18983
- var Q = (e) => {
18984
- let t = [];
18985
- for (let n of e) {
18986
- if (n.status === `error`)
18987
- return n;
18988
- t.push(n.value);
18989
- }
18990
- return l(t);
18991
- };
18992
- var ie = async (e) => Q(await Z(e, `Result.allAsync input promise rejected`));
18993
- var $ = (e) => {
18994
- let t = [], n = [];
18995
- for (let r of e)
18996
- r.status === `ok` ? t.push(r.value) : n.push(r.error);
18997
- return [t, n];
18998
- };
18999
- var ae = { ok: l, isOk: u, err: d, isError: f, try: T, tryPromise: E, map: D, mapError: O, tryRecover: k, andThen: A, tryRecoverAsync: ee, andThenAsync: te, match: ne, tap: j, tapAsync: M, tapError: N, tapErrorAsync: P, tapBoth: F, tapBothAsync: I, unwrap: L, unwrapOr: z, gen: B, await: V, codec: re, all: Q, allAsync: ie, partition: $, partitionAsync: async (e) => $(await Z(e, `Result.partitionAsync input promise rejected`)), flatten: (e) => e.status === `ok` ? e.value : e };
19000
-
19001
18535
  // ../../node_modules/.bun/css-tree@3.2.1/node_modules/css-tree/lib/tokenizer/types.js
19002
18536
  var EOF = 0;
19003
18537
  var Ident = 1;
@@ -19296,9 +18830,9 @@ function adoptBuffer(buffer = null, size) {
19296
18830
  }
19297
18831
 
19298
18832
  // ../../node_modules/.bun/css-tree@3.2.1/node_modules/css-tree/lib/tokenizer/OffsetToLocation.js
19299
- var N2 = 10;
19300
- var F2 = 12;
19301
- var R2 = 13;
18833
+ var N = 10;
18834
+ var F = 12;
18835
+ var R = 13;
19302
18836
  function computeLinesAndColumns(host) {
19303
18837
  const source = host.source;
19304
18838
  const sourceLength = source.length;
@@ -19311,8 +18845,8 @@ function computeLinesAndColumns(host) {
19311
18845
  const code = source.charCodeAt(i);
19312
18846
  lines[i] = line;
19313
18847
  columns[i] = column++;
19314
- if (code === N2 || code === R2 || code === F2) {
19315
- if (code === R2 && i + 1 < sourceLength && source.charCodeAt(i + 1) === N2) {
18848
+ if (code === N || code === R || code === F) {
18849
+ if (code === R && i + 1 < sourceLength && source.charCodeAt(i + 1) === N) {
19316
18850
  i++;
19317
18851
  lines[i] = line;
19318
18852
  columns[i] = column;
@@ -21711,7 +21245,7 @@ var cssWideKeywords = [
21711
21245
  // ../../node_modules/.bun/css-tree@3.2.1/node_modules/css-tree/lib/lexer/generic-an-plus-b.js
21712
21246
  var PLUSSIGN2 = 43;
21713
21247
  var HYPHENMINUS3 = 45;
21714
- var N3 = 110;
21248
+ var N2 = 110;
21715
21249
  var DISALLOW_SIGN = true;
21716
21250
  var ALLOW_SIGN = false;
21717
21251
  function isDelim(token, code) {
@@ -21776,7 +21310,7 @@ function anPlusB(token, getNextToken) {
21776
21310
  if (token.type === Number8) {
21777
21311
  return checkInteger(token, 0, ALLOW_SIGN, offset);
21778
21312
  } else if (token.type === Ident && token.value.charCodeAt(0) === HYPHENMINUS3) {
21779
- if (!cmpChar(token.value, 1, N3)) {
21313
+ if (!cmpChar(token.value, 1, N2)) {
21780
21314
  return 0;
21781
21315
  }
21782
21316
  switch (token.value.length) {
@@ -21799,7 +21333,7 @@ function anPlusB(token, getNextToken) {
21799
21333
  if (token.type !== Ident) {
21800
21334
  token = getNextToken(++offset);
21801
21335
  }
21802
- if (token === null || !cmpChar(token.value, 0, N3)) {
21336
+ if (token === null || !cmpChar(token.value, 0, N2)) {
21803
21337
  return 0;
21804
21338
  }
21805
21339
  switch (token.value.length) {
@@ -21830,7 +21364,7 @@ function anPlusB(token, getNextToken) {
21830
21364
  if (i === sign) {
21831
21365
  return 0;
21832
21366
  }
21833
- if (!cmpChar(token.value, i, N3)) {
21367
+ if (!cmpChar(token.value, i, N2)) {
21834
21368
  return 0;
21835
21369
  }
21836
21370
  if (i + 1 === token.value.length) {
@@ -21855,7 +21389,7 @@ function anPlusB(token, getNextToken) {
21855
21389
  var PLUSSIGN3 = 43;
21856
21390
  var HYPHENMINUS4 = 45;
21857
21391
  var QUESTIONMARK = 63;
21858
- var U2 = 117;
21392
+ var U = 117;
21859
21393
  function isDelim2(token, code) {
21860
21394
  return token !== null && token.type === Delim && token.value.charCodeAt(0) === code;
21861
21395
  }
@@ -21893,7 +21427,7 @@ function withQuestionMarkSequence(consumed, length, getNextToken) {
21893
21427
  }
21894
21428
  function urange(token, getNextToken) {
21895
21429
  let length = 0;
21896
- if (token === null || token.type !== Ident || !cmpChar(token.value, 0, U2)) {
21430
+ if (token === null || token.type !== Ident || !cmpChar(token.value, 0, U)) {
21897
21431
  return 0;
21898
21432
  }
21899
21433
  token = getNextToken(++length);
@@ -22488,9 +22022,9 @@ function SyntaxError3(message, input, offset) {
22488
22022
  }
22489
22023
  // ../../node_modules/.bun/css-tree@3.2.1/node_modules/css-tree/lib/definition-syntax/scanner.js
22490
22024
  var TAB = 9;
22491
- var N4 = 10;
22492
- var F3 = 12;
22493
- var R3 = 13;
22025
+ var N3 = 10;
22026
+ var F2 = 12;
22027
+ var R2 = 13;
22494
22028
  var SPACE = 32;
22495
22029
  var NAME_CHAR = new Uint8Array(128).map((_, idx) => /[a-zA-Z0-9\-]/.test(String.fromCharCode(idx)) ? 1 : 0);
22496
22030
 
@@ -22520,7 +22054,7 @@ class Scanner {
22520
22054
  findWsEnd(pos) {
22521
22055
  for (;pos < this.str.length; pos++) {
22522
22056
  const code = this.str.charCodeAt(pos);
22523
- if (code !== R3 && code !== N4 && code !== F3 && code !== SPACE && code !== TAB) {
22057
+ if (code !== R2 && code !== N3 && code !== F2 && code !== SPACE && code !== TAB) {
22524
22058
  break;
22525
22059
  }
22526
22060
  }
@@ -22582,9 +22116,9 @@ class Scanner {
22582
22116
 
22583
22117
  // ../../node_modules/.bun/css-tree@3.2.1/node_modules/css-tree/lib/definition-syntax/parse.js
22584
22118
  var TAB2 = 9;
22585
- var N5 = 10;
22586
- var F4 = 12;
22587
- var R4 = 13;
22119
+ var N4 = 10;
22120
+ var F3 = 12;
22121
+ var R3 = 13;
22588
22122
  var SPACE2 = 32;
22589
22123
  var EXCLAMATIONMARK2 = 33;
22590
22124
  var NUMBERSIGN2 = 35;
@@ -22957,9 +22491,9 @@ function peek(scanner) {
22957
22491
  });
22958
22492
  case SPACE2:
22959
22493
  case TAB2:
22960
- case N5:
22961
- case R4:
22962
- case F4:
22494
+ case N4:
22495
+ case R3:
22496
+ case F3:
22963
22497
  return {
22964
22498
  type: "Spaces",
22965
22499
  value: scanner.scanSpaces()
@@ -39197,7 +38731,7 @@ __export(exports_AnPlusB, {
39197
38731
  });
39198
38732
  var PLUSSIGN5 = 43;
39199
38733
  var HYPHENMINUS5 = 45;
39200
- var N6 = 110;
38734
+ var N5 = 110;
39201
38735
  var DISALLOW_SIGN2 = true;
39202
38736
  var ALLOW_SIGN2 = false;
39203
38737
  function checkInteger2(offset, disallowSign) {
@@ -39222,7 +38756,7 @@ function expectCharCode(offset, code) {
39222
38756
  if (!this.cmpChar(this.tokenStart + offset, code)) {
39223
38757
  let msg = "";
39224
38758
  switch (code) {
39225
- case N6:
38759
+ case N5:
39226
38760
  msg = "N is expected";
39227
38761
  break;
39228
38762
  case HYPHENMINUS5:
@@ -39279,7 +38813,7 @@ function parse2() {
39279
38813
  b = this.consume(Number8);
39280
38814
  } else if (this.tokenType === Ident && this.cmpChar(this.tokenStart, HYPHENMINUS5)) {
39281
38815
  a = "-1";
39282
- expectCharCode.call(this, 1, N6);
38816
+ expectCharCode.call(this, 1, N5);
39283
38817
  switch (this.tokenEnd - this.tokenStart) {
39284
38818
  case 2:
39285
38819
  this.next();
@@ -39305,7 +38839,7 @@ function parse2() {
39305
38839
  sign = 1;
39306
38840
  this.next();
39307
38841
  }
39308
- expectCharCode.call(this, 0, N6);
38842
+ expectCharCode.call(this, 0, N5);
39309
38843
  switch (this.tokenEnd - this.tokenStart) {
39310
38844
  case 1:
39311
38845
  this.next();
@@ -39336,7 +38870,7 @@ function parse2() {
39336
38870
  if (i === this.tokenStart + sign) {
39337
38871
  this.error("Integer is expected", this.tokenStart + sign);
39338
38872
  }
39339
- expectCharCode.call(this, i - this.tokenStart, N6);
38873
+ expectCharCode.call(this, i - this.tokenStart, N5);
39340
38874
  a = this.substring(start, i);
39341
38875
  if (i + 1 === this.tokenEnd) {
39342
38876
  this.next();
@@ -41783,7 +41317,7 @@ var ASTERISK6 = 42;
41783
41317
  var PLUSSIGN9 = 43;
41784
41318
  var HYPHENMINUS7 = 45;
41785
41319
  var SOLIDUS7 = 47;
41786
- var U3 = 117;
41320
+ var U2 = 117;
41787
41321
  function defaultRecognizer(context) {
41788
41322
  switch (this.tokenType) {
41789
41323
  case Hash:
@@ -41807,7 +41341,7 @@ function defaultRecognizer(context) {
41807
41341
  case Url:
41808
41342
  return this.Url();
41809
41343
  case Ident:
41810
- if (this.cmpChar(this.tokenStart, U3) && this.cmpChar(this.tokenStart + 1, PLUSSIGN9)) {
41344
+ if (this.cmpChar(this.tokenStart, U2) && this.cmpChar(this.tokenStart + 1, PLUSSIGN9)) {
41811
41345
  return this.UnicodeRange();
41812
41346
  } else {
41813
41347
  return this.Identifier();
@@ -42331,7 +41865,446 @@ var {
42331
41865
  fork
42332
41866
  } = syntax_default;
42333
41867
 
42334
- // ../markup/dist/theme-css-hFqcPSar.js
41868
+ // ../../node_modules/.bun/better-result@3.0.1/node_modules/better-result/dist/index.mjs
41869
+ function e(e, t) {
41870
+ return e === 2 ? (...e) => e.length >= 2 ? t(e[0], e[1]) : (n) => t(n, e[0]) : e === 3 ? (...e) => e.length >= 3 ? t(e[0], e[1], e[2]) : (n) => t(n, e[0], e[1]) : e === 4 ? (...e) => e.length >= 4 ? t(e[0], e[1], e[2], e[3]) : (n) => t(n, e[0], e[1], e[2]) : (...n) => n.length >= e ? t(...n) : (e) => t(e, ...n);
41871
+ }
41872
+ var t = (e) => e instanceof Error ? { name: e.name, message: e.message, stack: e.stack } : e;
41873
+ var n = class e extends Error {
41874
+ _tag = `Panic`;
41875
+ static is(t) {
41876
+ return t instanceof e;
41877
+ }
41878
+ constructor(e) {
41879
+ if (super(e.message, e.cause === undefined ? undefined : { cause: e.cause }), Object.assign(this, e), Object.setPrototypeOf(this, new.target.prototype), this.name = `Panic`, e.cause instanceof Error && e.cause.stack) {
41880
+ let t = e.cause.stack.replace(/\n/g, `
41881
+ `);
41882
+ this.stack = `${this.stack}
41883
+ Caused by: ${t}`;
41884
+ }
41885
+ }
41886
+ toJSON() {
41887
+ return { ...this, _tag: this._tag, name: this.name, message: this.message, cause: t(this.cause), stack: this.stack };
41888
+ }
41889
+ *[Symbol.iterator]() {
41890
+ return yield* d(this), i(`Unreachable: Err yielded in Panic but generator continued`, this);
41891
+ }
41892
+ };
41893
+ var i = (e, t) => {
41894
+ throw new n({ message: e, cause: t });
41895
+ };
41896
+ var a = (e, t) => {
41897
+ try {
41898
+ return e();
41899
+ } catch (e) {
41900
+ throw i(t, e);
41901
+ }
41902
+ };
41903
+ var o = async (e, t) => {
41904
+ try {
41905
+ return await e();
41906
+ } catch (e) {
41907
+ throw i(t, e);
41908
+ }
41909
+ };
41910
+ var s = class e {
41911
+ status = `ok`;
41912
+ constructor(e) {
41913
+ this.value = e;
41914
+ }
41915
+ isOk() {
41916
+ return true;
41917
+ }
41918
+ isErr() {
41919
+ return false;
41920
+ }
41921
+ map(t) {
41922
+ return a(() => new e(t(this.value)), `map callback threw`);
41923
+ }
41924
+ mapError(e) {
41925
+ return this;
41926
+ }
41927
+ tryRecover(e) {
41928
+ return this;
41929
+ }
41930
+ tryRecoverAsync(e) {
41931
+ return Promise.resolve(this);
41932
+ }
41933
+ andThen(e) {
41934
+ return a(() => e(this.value), `andThen callback threw`);
41935
+ }
41936
+ andThenAsync(e) {
41937
+ return o(() => e(this.value), `andThenAsync callback threw`);
41938
+ }
41939
+ match(e) {
41940
+ return a(() => e.ok(this.value), `match ok handler threw`);
41941
+ }
41942
+ unwrap(e) {
41943
+ return this.value;
41944
+ }
41945
+ unwrapOr(e) {
41946
+ return this.value;
41947
+ }
41948
+ tap(e) {
41949
+ return a(() => (e(this.value), this), `tap callback threw`);
41950
+ }
41951
+ tapAsync(e) {
41952
+ return o(async () => (await e(this.value), this), `tapAsync callback threw`);
41953
+ }
41954
+ tapError(e) {
41955
+ return this;
41956
+ }
41957
+ tapErrorAsync(e) {
41958
+ return Promise.resolve(this);
41959
+ }
41960
+ tapBoth(e) {
41961
+ return a(() => (e.ok(this.value), this), `tapBoth ok callback threw`);
41962
+ }
41963
+ tapBothAsync(e) {
41964
+ return o(async () => (await e.ok(this.value), this), `tapBothAsync ok callback threw`);
41965
+ }
41966
+ *[Symbol.iterator]() {
41967
+ return this.value;
41968
+ }
41969
+ };
41970
+ var c = class e {
41971
+ status = `error`;
41972
+ constructor(e) {
41973
+ this.error = e;
41974
+ }
41975
+ isOk() {
41976
+ return false;
41977
+ }
41978
+ isErr() {
41979
+ return true;
41980
+ }
41981
+ map(e) {
41982
+ return this;
41983
+ }
41984
+ mapError(t) {
41985
+ return a(() => new e(t(this.error)), `mapError callback threw`);
41986
+ }
41987
+ tryRecover(e) {
41988
+ return a(() => e(this.error), `tryRecover callback threw`);
41989
+ }
41990
+ tryRecoverAsync(e) {
41991
+ return o(() => e(this.error), `tryRecoverAsync callback threw`);
41992
+ }
41993
+ andThen(e) {
41994
+ return this;
41995
+ }
41996
+ andThenAsync(e) {
41997
+ return Promise.resolve(this);
41998
+ }
41999
+ match(e) {
42000
+ return a(() => e.err(this.error), `match err handler threw`);
42001
+ }
42002
+ unwrap(e) {
42003
+ return i(e ?? `Unwrap called on Err: ${String(this.error)}`, this.error);
42004
+ }
42005
+ unwrapOr(e) {
42006
+ return e;
42007
+ }
42008
+ tap(e) {
42009
+ return this;
42010
+ }
42011
+ tapError(e) {
42012
+ return a(() => (e(this.error), this), `tapError callback threw`);
42013
+ }
42014
+ tapAsync(e) {
42015
+ return Promise.resolve(this);
42016
+ }
42017
+ tapErrorAsync(e) {
42018
+ return o(async () => (await e(this.error), this), `tapErrorAsync callback threw`);
42019
+ }
42020
+ tapBoth(e) {
42021
+ return a(() => (e.err(this.error), this), `tapBoth err callback threw`);
42022
+ }
42023
+ tapBothAsync(e) {
42024
+ return o(async () => (await e.err(this.error), this), `tapBothAsync err callback threw`);
42025
+ }
42026
+ *[Symbol.iterator]() {
42027
+ return yield this, i(`Unreachable: Err yielded in Result.gen but generator continued`, this.error);
42028
+ }
42029
+ };
42030
+ function l(e) {
42031
+ return new s(e);
42032
+ }
42033
+ var u = (e) => e.status === `ok`;
42034
+ var d = (e) => new c(e);
42035
+ var f = (e) => e.status === `error`;
42036
+ var p = (e) => e instanceof Error ? { name: e.name, message: e.message, stack: e.stack } : e;
42037
+ var m = (e) => e instanceof Error && (`_tag` in e) && typeof e._tag == `string` && (`toJSON` in e) && typeof e.toJSON == `function`;
42038
+ var h = (e) => {
42039
+
42040
+ class t extends Error {
42041
+ _tag = e;
42042
+ constructor(t) {
42043
+ let n = t && `message` in t && typeof t.message == `string` ? t.message : undefined, r = t && `cause` in t ? t.cause : undefined;
42044
+ if (super(n, r === undefined ? undefined : { cause: r }), t && Object.assign(this, t), Object.setPrototypeOf(this, new.target.prototype), this.name = e, r instanceof Error && r.stack) {
42045
+ let e2 = r.stack.replace(/\n/g, `
42046
+ `);
42047
+ this.stack = `${this.stack}
42048
+ Caused by: ${e2}`;
42049
+ }
42050
+ }
42051
+ toJSON() {
42052
+ return { ...this, _tag: this._tag, name: this.name, message: this.message, cause: p(this.cause), stack: this.stack };
42053
+ }
42054
+ match(e2) {
42055
+ return g(this, e2);
42056
+ }
42057
+ *[Symbol.iterator]() {
42058
+ return yield* d(this), i(`Unreachable: Err yielded in TaggedError but generator continued`, this);
42059
+ }
42060
+ static is(e2) {
42061
+ return e2 instanceof this;
42062
+ }
42063
+ }
42064
+ return t;
42065
+ };
42066
+ h.is = m;
42067
+ var g = e(2, (e, t) => {
42068
+ let n = t[e._tag];
42069
+ try {
42070
+ return n(e);
42071
+ } catch (e) {
42072
+ return i(`matchError handler threw`, e);
42073
+ }
42074
+ });
42075
+ var x = class extends h(`UnhandledException`) {
42076
+ constructor(e) {
42077
+ let t = e.cause instanceof Error ? `Unhandled exception: ${e.cause.message}` : `Unhandled exception: ${String(e.cause)}`;
42078
+ super({ message: t, cause: e.cause });
42079
+ }
42080
+ };
42081
+ var S = class extends h(`ResultDeserializationError`) {
42082
+ constructor(e) {
42083
+ super({ message: e.issues ? `Failed to deserialize Result payload` : `Failed to deserialize value as Result: expected { status: "ok", value } or { status: "error", error }`, value: e.value, issues: e.issues });
42084
+ }
42085
+ };
42086
+ var C = class extends h(`ResultSerializationError`) {
42087
+ constructor(e) {
42088
+ super({ message: `Failed to serialize Result payload`, value: e.value, issues: e.issues });
42089
+ }
42090
+ };
42091
+ var w = (e, t) => {
42092
+ try {
42093
+ return e();
42094
+ } catch (e) {
42095
+ throw i(t, e);
42096
+ }
42097
+ };
42098
+ var T = (e, t) => {
42099
+ let n = (t) => {
42100
+ if (typeof e == `function`)
42101
+ try {
42102
+ return l(e(t));
42103
+ } catch (e) {
42104
+ return d(new x({ cause: e }));
42105
+ }
42106
+ try {
42107
+ return l(e.try(t));
42108
+ } catch (t) {
42109
+ try {
42110
+ return d(e.catch(t));
42111
+ } catch (e) {
42112
+ throw i(`Result.try catch handler threw`, e);
42113
+ }
42114
+ }
42115
+ }, r = t?.retry?.times ?? 0, a = 1, o = n({ attempt: a });
42116
+ for (let e = 0;e < r && o.status === `error`; e++)
42117
+ a++, o = n({ attempt: a });
42118
+ return o;
42119
+ };
42120
+ var E = async (e, t) => {
42121
+ let n = async (t) => {
42122
+ if (typeof e == `function`)
42123
+ try {
42124
+ return l(await e(t));
42125
+ } catch (e) {
42126
+ return d(new x({ cause: e }));
42127
+ }
42128
+ try {
42129
+ return l(await e.try(t));
42130
+ } catch (t) {
42131
+ try {
42132
+ return d(await e.catch(t));
42133
+ } catch (e) {
42134
+ throw i(`Result.tryPromise catch handler threw`, e);
42135
+ }
42136
+ }
42137
+ }, r = t?.retry;
42138
+ if (!r)
42139
+ return n({ attempt: 1, signal: t?.signal });
42140
+ let a = (e, t, n) => {
42141
+ switch (t) {
42142
+ case `constant`:
42143
+ return e;
42144
+ case `linear`:
42145
+ return e * (n + 1);
42146
+ case `exponential`:
42147
+ return e * 2 ** n;
42148
+ }
42149
+ }, o = r.jitter ?? false;
42150
+ if (typeof o == `number` && (!Number.isFinite(o) || o < 0 || o > 1))
42151
+ throw i(`Result.tryPromise retry jitter must be a finite number between 0 and 1`);
42152
+ let s = o === true ? 1 : o === false ? 0 : o, c = (e) => s === 0 ? e : e * (1 - s + Math.random() * s), u = (e, t) => new Promise((n) => {
42153
+ if (t?.aborted) {
42154
+ n(false);
42155
+ return;
42156
+ }
42157
+ let r = () => {
42158
+ clearTimeout(i), n(false);
42159
+ }, i = setTimeout(() => {
42160
+ t?.removeEventListener(`abort`, r), n(true);
42161
+ }, e);
42162
+ t?.addEventListener(`abort`, r, { once: true });
42163
+ }), f = { attempt: 1, signal: t.signal }, p = await n(f), m = r.shouldRetry ?? (() => true);
42164
+ for (let e = 0;e < r.times && !(p.status !== `error` || f.signal?.aborted); e++) {
42165
+ let o = p.error;
42166
+ if (!w(() => m(o, f), `shouldRetry predicate threw`))
42167
+ break;
42168
+ let s;
42169
+ if (typeof r.delayMs == `function`) {
42170
+ let e = r.delayMs;
42171
+ s = w(() => e(o, f), `Result.tryPromise delayMs callback threw`);
42172
+ } else {
42173
+ if (r.backoff === undefined)
42174
+ throw i(`Result.tryPromise static retry delay requires backoff`);
42175
+ s = c(a(r.delayMs, r.backoff, e));
42176
+ }
42177
+ if (!await u(s, f.signal) || f.signal?.aborted)
42178
+ break;
42179
+ f = { attempt: f.attempt + 1, signal: t.signal }, p = await n(f);
42180
+ }
42181
+ return p;
42182
+ };
42183
+ var D = e(2, (e, t) => e.map(t));
42184
+ var O = e(2, (e, t) => e.mapError(t));
42185
+ var k = e(2, (e, t) => e.tryRecover(t));
42186
+ var A = e(2, (e, t) => e.andThen(t));
42187
+ var ee = e(2, (e, t) => e.tryRecoverAsync(t));
42188
+ var te = e(2, (e, t) => e.andThenAsync(t));
42189
+ var ne = e(2, (e, t) => e.match(t));
42190
+ var j = e(2, (e, t) => e.tap(t));
42191
+ var M = e(2, (e, t) => e.tapAsync(t));
42192
+ var N6 = e(2, (e, t) => e.tapError(t));
42193
+ var P = e(2, (e, t) => e.tapErrorAsync(t));
42194
+ var F4 = e(2, (e, t) => e.tapBoth(t));
42195
+ var I = e(2, (e, t) => e.tapBothAsync(t));
42196
+ var L = (e, t) => e.unwrap(t);
42197
+ function R4(e) {
42198
+ if (!(typeof e == `object` && e && (`status` in e) && (e.status === `ok` || e.status === `error`)))
42199
+ return i(`Result.gen body must return Result.ok() or Result.err(), got: ` + (e === null ? `null` : typeof e == `object` ? JSON.stringify(e) : String(e)));
42200
+ }
42201
+ var z = e(2, (e, t) => e.unwrapOr(t));
42202
+ var B = (e, t) => {
42203
+ let n = e.call(t);
42204
+ if (Symbol.asyncIterator in n)
42205
+ return (async () => {
42206
+ let e = n, t;
42207
+ try {
42208
+ t = await e.next();
42209
+ } catch (e) {
42210
+ throw i(`generator body threw`, e);
42211
+ }
42212
+ if (R4(t.value), !t.done)
42213
+ try {
42214
+ await e.return?.(undefined);
42215
+ } catch (e) {
42216
+ throw i(`generator cleanup threw`, e);
42217
+ }
42218
+ return t.value;
42219
+ })();
42220
+ let r = n, a;
42221
+ try {
42222
+ a = r.next();
42223
+ } catch (e) {
42224
+ throw i(`generator body threw`, e);
42225
+ }
42226
+ if (R4(a.value), !a.done)
42227
+ try {
42228
+ r.return?.(undefined);
42229
+ } catch (e) {
42230
+ throw i(`generator cleanup threw`, e);
42231
+ }
42232
+ return a.value;
42233
+ };
42234
+ async function* V(e) {
42235
+ return yield* await e;
42236
+ }
42237
+ function H(e) {
42238
+ return typeof e == `object` && !!e && `status` in e && (e.status === `ok` || e.status === `error`);
42239
+ }
42240
+ var U3 = (e) => typeof e == `object` && !!e && (`then` in e) && typeof e.then == `function`;
42241
+ var W = (e, t) => w(e, t);
42242
+ var G = (e, t, n) => U3(e) ? Promise.resolve(e).catch((e) => {
42243
+ throw i(t, e);
42244
+ }).then(n) : n(e);
42245
+ var K = (e, t) => (`issues` in e) && e.issues ? d(t(e.issues)) : l(e.value);
42246
+ var q = (e, t) => G(W(() => e[`~standard`].validate(t), `Result.codec serialize schema threw`), `Result.codec serialize schema threw`, (e) => K(e, (e) => new C({ value: t, issues: e })));
42247
+ var J = (e, t) => G(W(() => e[`~standard`].validate(t), `Result.codec deserialize schema threw`), `Result.codec deserialize schema threw`, (e) => K(e, (e) => new S({ value: t, issues: e })));
42248
+ var Y = (e, t) => U3(e) ? Promise.resolve(e).then((e) => e.unwrap(t)) : e.unwrap(t);
42249
+ var X = (e) => {
42250
+ let t = (e) => e.status === `ok` ? l(e.value) : S.is(e.error) ? e.unwrap(`Result.codec deserializeUnsafe failed`) : d(e.error);
42251
+ return U3(e) ? Promise.resolve(e).then(t) : t(e);
42252
+ };
42253
+ var re = (e) => {
42254
+ let t = (e) => e.status === `error` ? d(e.error) : l({ status: `ok`, value: e.value }), n = (e) => e.status === `error` ? d(e.error) : l({ status: `error`, error: e.value });
42255
+ function r(r) {
42256
+ if (r.status === `ok`) {
42257
+ let n = q(e.serialize.ok, r.value);
42258
+ return U3(n) ? Promise.resolve(n).then(t) : t(n);
42259
+ }
42260
+ let i = q(e.serialize.err, r.error);
42261
+ return U3(i) ? Promise.resolve(i).then(n) : n(i);
42262
+ }
42263
+ let i = (e) => e.status === `error` ? d(e.error) : l(e.value), a = (e) => e.status === `error` ? d(e.error) : d(e.value);
42264
+ function o(t) {
42265
+ if (!H(t))
42266
+ return d(new S({ value: t }));
42267
+ if (t.status === `ok`) {
42268
+ let n = J(e.deserialize.ok, t.value);
42269
+ return U3(n) ? Promise.resolve(n).then(i) : i(n);
42270
+ }
42271
+ let n = J(e.deserialize.err, t.error);
42272
+ return U3(n) ? Promise.resolve(n).then(a) : a(n);
42273
+ }
42274
+ function s(e) {
42275
+ return Y(r(e), `Result.codec serializeUnsafe failed`);
42276
+ }
42277
+ function c(e) {
42278
+ return X(o(e));
42279
+ }
42280
+ return { serialize: r, serializeUnsafe: s, deserialize: o, deserializeUnsafe: c };
42281
+ };
42282
+ var Z = async (e, t) => {
42283
+ try {
42284
+ return await Promise.all(e);
42285
+ } catch (e) {
42286
+ return i(t, e);
42287
+ }
42288
+ };
42289
+ var Q = (e) => {
42290
+ let t = [];
42291
+ for (let n of e) {
42292
+ if (n.status === `error`)
42293
+ return n;
42294
+ t.push(n.value);
42295
+ }
42296
+ return l(t);
42297
+ };
42298
+ var ie = async (e) => Q(await Z(e, `Result.allAsync input promise rejected`));
42299
+ var $ = (e) => {
42300
+ let t = [], n = [];
42301
+ for (let r of e)
42302
+ r.status === `ok` ? t.push(r.value) : n.push(r.error);
42303
+ return [t, n];
42304
+ };
42305
+ var ae = { ok: l, isOk: u, err: d, isError: f, try: T, tryPromise: E, map: D, mapError: O, tryRecover: k, andThen: A, tryRecoverAsync: ee, andThenAsync: te, match: ne, tap: j, tapAsync: M, tapError: N6, tapErrorAsync: P, tapBoth: F4, tapBothAsync: I, unwrap: L, unwrapOr: z, gen: B, await: V, codec: re, all: Q, allAsync: ie, partition: $, partitionAsync: async (e) => $(await Z(e, `Result.partitionAsync input promise rejected`)), flatten: (e) => e.status === `ok` ? e.value : e };
42306
+
42307
+ // ../markup/dist/theme-css-JtRCm1fb.js
42335
42308
  var BRAND_NAMESPACES = [
42336
42309
  "--color-",
42337
42310
  "--font-",
@@ -42524,6 +42497,429 @@ var parseBrandCss = (css) => {
42524
42497
  fontFaces
42525
42498
  });
42526
42499
  };
42500
+ // ../markup/dist/diagnostic-model-DJtqbETd.js
42501
+ var buildLineMap = (source) => {
42502
+ const lineStarts = [0];
42503
+ for (let index = 0;index < source.length; index++) {
42504
+ const code = source.charCodeAt(index);
42505
+ if (code === 10 || code === 13 && source.charCodeAt(index + 1) !== 10 || code === 8232 || code === 8233)
42506
+ lineStarts.push(index + 1);
42507
+ }
42508
+ return lineStarts;
42509
+ };
42510
+ var lineColumn = (lineMap, offset) => {
42511
+ let low = 0;
42512
+ let high = lineMap.length - 1;
42513
+ while (low < high) {
42514
+ const middle = low + high + 1 >> 1;
42515
+ if (lineMap[middle] <= offset)
42516
+ low = middle;
42517
+ else
42518
+ high = middle - 1;
42519
+ }
42520
+ return {
42521
+ line: low + 1,
42522
+ column: offset - lineMap[low] + 1
42523
+ };
42524
+ };
42525
+
42526
+ // ../markup/dist/diagnostics.js
42527
+ var codes = (table) => table;
42528
+ var DIAGNOSTIC_CODES = codes({
42529
+ "no-template": {
42530
+ summary: "The entry does not default-export a template.",
42531
+ fix: "Default-export defineTemplate({ ... }) imported from @samva/markup."
42532
+ },
42533
+ "legacy-definition": {
42534
+ summary: "The entry default-exports something other than defineTemplate.",
42535
+ fix: 'Import { defineTemplate } from "@samva/markup" and default-export defineTemplate({ ... }).',
42536
+ upgrade: [
42537
+ 'Read the entry and its imports without executing them. For a default-exported defineEmail definition, import defineTemplate from "@samva/markup" and replace the definition call.',
42538
+ "Preserve the entry path, template id, schema, named fixtures, content, design, bindings, conditions, project partials, assets, theme and brand imports. Replace render(input) returning { subject, preheader?, body } with email: { subject: (input) => ..., preheader: (input) => ..., body: (input) => ... }, retaining its parameter bindings and each returned expression; omit preheader when absent.",
42539
+ "Inline module constants only when they are literal strings, numbers or booleans and their bindings are unambiguous; never substitute a fixture value for an input binding. Keep each channel function a single static-profile expression, and keep subject and preheader off <Email>.",
42540
+ "Helper calls, `Math.*`, general arithmetic, render statements, spreads, computed properties and runtime clock or seed have no direct conversion. Rewrite with static-profile bindings, conditions, .map, .filter, project partials or `fmt.*` where equivalent; arithmetic is allowed only in formatter arguments and conditions. Otherwise compute the value in the sender, declare a payload field in the schema and every fixture, and explain the required sender change. Never guess time, randomness or computed data.",
42541
+ "Explicit text has no email-channel field: plain text is derived from the body. If deriving it changes intended content, or another construct cannot be preserved, explain the tradeoff and ask rather than silently discard it. Do not drop fixtures, weaken validation or hide diagnostics.",
42542
+ "Convert every affected entry in the project at its existing path, including emails/ entries. Compile each entry, render every declared fixture and inspect the affected output. Resolve errors before requesting one saved version for the whole project, approved by the user; do not publish."
42543
+ ].join(`
42544
+
42545
+ `)
42546
+ },
42547
+ "dynamic-definition": {
42548
+ summary: "A definition field is spread or computed instead of written out.",
42549
+ fix: "Write each field as name: value."
42550
+ },
42551
+ "invalid-template-id": {
42552
+ summary: "The template id is not a lowercase kebab-case string literal.",
42553
+ fix: 'Write id: "order-shipped".'
42554
+ },
42555
+ "missing-schema": {
42556
+ summary: "The template declares no input schema.",
42557
+ fix: "Add schema: jsonSchema<Input>({ ... })."
42558
+ },
42559
+ "schema-not-static": {
42560
+ summary: "The schema cannot be read without running code.",
42561
+ fix: "Write the schema as a literal jsonSchema<Input>({ type: 'object', ... })."
42562
+ },
42563
+ "invalid-schema": {
42564
+ summary: "The schema uses JSON Schema keywords the compiler cannot validate against.",
42565
+ fix: "Use only the JSON Schema keywords the package README lists."
42566
+ },
42567
+ "missing-fixtures": {
42568
+ summary: "The template declares no fixtures.",
42569
+ fix: "Add fixtures: { default: { ... } } with at least one valid payload."
42570
+ },
42571
+ "fixtures-not-static": {
42572
+ summary: "A fixture is computed instead of written as data.",
42573
+ fix: "Write each fixture as a literal object; an imported asset is allowed."
42574
+ },
42575
+ "invalid-fixture-name": {
42576
+ summary: "A fixture key is not a single path segment.",
42577
+ fix: "Use letters, digits, '.', '_' and '-', starting with a letter or digit."
42578
+ },
42579
+ "fixture-invalid": {
42580
+ summary: "A fixture does not match the schema.",
42581
+ fix: "Change the fixture, or the schema, so every fixture is a payload a send could carry."
42582
+ },
42583
+ "invalid-locale": {
42584
+ summary: "The template's default locale is not a string literal.",
42585
+ fix: 'Write locale: "en-US".'
42586
+ },
42587
+ "no-channel": {
42588
+ summary: "The template declares no channel body.",
42589
+ fix: "Add an email body."
42590
+ },
42591
+ "invalid-channel": {
42592
+ summary: "A channel field is not shaped as the channel requires.",
42593
+ fix: "Write email: { subject, preheader?, body } with each a function of the input."
42594
+ },
42595
+ "not-a-function": {
42596
+ summary: "A channel field is not a function of the input.",
42597
+ fix: "Write (input) => ... in place or declare the function in the project."
42598
+ },
42599
+ "missing-subject": {
42600
+ summary: "The email channel has no subject.",
42601
+ fix: "Add subject: (input) => ...."
42602
+ },
42603
+ "missing-body": {
42604
+ summary: "The email channel has no body.",
42605
+ fix: "Add body: (input) => (<Email>...</Email>)."
42606
+ },
42607
+ "multiple-roots": {
42608
+ summary: "The body renders nothing or more than one root.",
42609
+ fix: "Wrap the body in a single element such as <Email>."
42610
+ },
42611
+ "preheader-without-shell": {
42612
+ summary: "A preheader is set but the body has no <Email> shell to hold it.",
42613
+ fix: "Wrap the body in <Email>."
42614
+ },
42615
+ "wrong-channel": {
42616
+ summary: "A channel body does not return its own channel component.",
42617
+ fix: "Return one element imported from the channel package.",
42618
+ channelOnly: true
42619
+ },
42620
+ "syntax-error": {
42621
+ summary: "A project file does not parse as TSX.",
42622
+ fix: "Fix the syntax at the reported location."
42623
+ },
42624
+ "non-project-import": {
42625
+ summary: "The file imports something other than @samva/markup or a project file.",
42626
+ fix: "Remove the import, or copy the code you need into a project file."
42627
+ },
42628
+ "moved-import": {
42629
+ summary: "The file imports an @samva/markup entry that moved.",
42630
+ fix: 'Import email components from "@samva/markup/email".',
42631
+ upgrade: ['Replace every import from "@samva/markup/email/components" with "@samva/markup/email" in every project file, templates and partials alike. The imported names are unchanged; change only the specifier.', "Compile each entry and render every declared fixture to confirm the output is unchanged. Resolve errors before requesting one saved version for the whole project, approved by the user; do not publish."].join(`
42632
+
42633
+ `)
42634
+ },
42635
+ "unresolved-import": {
42636
+ summary: "An import names no file in the project.",
42637
+ fix: "Check the path and the file extension."
42638
+ },
42639
+ "recursive-partial": {
42640
+ summary: "A partial renders itself; partials are inlined at compile time.",
42641
+ fix: "Flatten the recursion, or repeat the structure with .map."
42642
+ },
42643
+ "nesting-limit": {
42644
+ summary: "The template nests deeper than the compiler reads.",
42645
+ fix: "Flatten the structure."
42646
+ },
42647
+ "dynamic-expression": {
42648
+ summary: "An expression outside the static profile: a call other than fmt.* and .map, a computed value, or a spread.",
42649
+ fix: "Compute the value where the message is sent and bind it from the payload."
42650
+ },
42651
+ "statement-in-body": {
42652
+ summary: "A body contains a statement (const, if, a loop); a body is one expression.",
42653
+ fix: "Use cond && <X />, cond ? <A /> : <B /> and .map, or send the computed value in the payload."
42654
+ },
42655
+ "unsupported-pattern": {
42656
+ summary: "A parameter pattern or default value the profile cannot bind.",
42657
+ fix: "Use plain names or destructuring without defaults; declare the field required or guard it."
42658
+ },
42659
+ "hook-call": {
42660
+ summary: "A hook was called; templates have no state, effects or context.",
42661
+ fix: "Read the input through the function's parameter and send anything else in the payload."
42662
+ },
42663
+ "unknown-formatter": {
42664
+ summary: "fmt.<name> is not a formatter.",
42665
+ fix: "Use fmt.money, number, date, time, plural or list."
42666
+ },
42667
+ "formatter-arguments": {
42668
+ summary: "A formatter got the wrong number of arguments.",
42669
+ fix: "Match the formatter's signature in the contract."
42670
+ },
42671
+ "reserved-character": {
42672
+ summary: "Text contains a private-use character the compiler reserves.",
42673
+ fix: "Remove the characters U+E000 to U+E003."
42674
+ },
42675
+ "reserved-url": {
42676
+ summary: "A URL is the unsubscribe placeholder only BrandFooter can write.",
42677
+ fix: "Render <BrandFooter /> instead."
42678
+ },
42679
+ "reserved-attribute": {
42680
+ summary: "An attribute is written only by a brand component.",
42681
+ fix: "Render BrandFooter from samva:brand instead of marking an element as the footer."
42682
+ },
42683
+ "dynamic-class": {
42684
+ summary: "A class name is built at run time, and Tailwind cannot see it.",
42685
+ fix: 'Write classes literally, or choose between literal lists: input.vip ? "bg-amber-100" : "bg-white".'
42686
+ },
42687
+ "too-many-class-variants": {
42688
+ summary: "A class list chooses between more literal lists than the compiler resolves.",
42689
+ fix: "Split the choice into fewer conditions, or move part of it to a partial."
42690
+ },
42691
+ "invalid-style": {
42692
+ summary: "A style prop is not a static property object.",
42693
+ fix: 'Write style={{ backgroundColor: "#fff" }} with literal values, or use classes.'
42694
+ },
42695
+ "unknown-field": {
42696
+ summary: "A binding names a field the schema does not declare.",
42697
+ fix: "Add the field to the schema, or bind a field it declares (the message suggests the nearest)."
42698
+ },
42699
+ "unguarded-optional": {
42700
+ summary: "An optional field is read outside a guard, so a send without it would render a blank.",
42701
+ fix: "Guard it with {input.field && ...}, or make the field required."
42702
+ },
42703
+ "invalid-binding-type": {
42704
+ summary: "A binding has the wrong type for where it is used.",
42705
+ fix: "Bind a field of the type the position needs, or send it in that type."
42706
+ },
42707
+ "unknown-component": {
42708
+ summary: "A component the profile cannot read.",
42709
+ fix: "Import components from @samva/markup/email, samva:brand, or the project."
42710
+ },
42711
+ "dynamic-numeric-prop": {
42712
+ summary: "A prop that sizes layout at compile time is not a number literal.",
42713
+ fix: "Write the number literally, for example height={44}."
42714
+ },
42715
+ "button-dynamic-label": {
42716
+ summary: "A Button label is read at render time, so classic Outlook cannot size it.",
42717
+ fix: "Give the button a width: <Button width={200}>."
42718
+ },
42719
+ "invalid-columns-each": {
42720
+ summary: "<Columns each> is not a list from the input.",
42721
+ fix: "Write each={input.items} with a callback returning <Column>."
42722
+ },
42723
+ "invalid-columns-per": {
42724
+ summary: "<Columns per> is not a positive integer literal.",
42725
+ fix: "Write per={2}."
42726
+ },
42727
+ "invalid-button-number": {
42728
+ summary: "A Button size prop is not a finite number.",
42729
+ fix: "Pass a finite number."
42730
+ },
42731
+ "unsupported-element": {
42732
+ summary: "An element outside the supported email vocabulary.",
42733
+ fix: "Use an element from the contract's element table."
42734
+ },
42735
+ "unsupported-attribute": {
42736
+ summary: "An attribute the element does not support.",
42737
+ fix: "Use a supported attribute, or data-* and aria-*."
42738
+ },
42739
+ "missing-attribute": {
42740
+ summary: "An element is missing a required attribute.",
42741
+ fix: "Add the attribute, for example alt on img."
42742
+ },
42743
+ "invalid-attribute-value": {
42744
+ summary: "An attribute value is not a string or number, or contains control characters.",
42745
+ fix: "Pass plain text."
42746
+ },
42747
+ "duplicate-attribute": {
42748
+ summary: "An attribute is written twice.",
42749
+ fix: "Keep one."
42750
+ },
42751
+ "invalid-content": {
42752
+ summary: "An element holds content its content model does not allow.",
42753
+ fix: "Move the child to a parent that accepts it."
42754
+ },
42755
+ "void-element-children": {
42756
+ summary: "A void element has children.",
42757
+ fix: "Remove the children."
42758
+ },
42759
+ "event-handler": {
42760
+ summary: "An event handler; email clients strip scripting.",
42761
+ fix: "Remove the handler; use a link for interaction."
42762
+ },
42763
+ "dangerous-html": {
42764
+ summary: "dangerouslySetInnerHTML; there is no raw-HTML escape hatch.",
42765
+ fix: "Write the markup as JSX."
42766
+ },
42767
+ "unsafe-url": {
42768
+ summary: "A URL uses a scheme email cannot send safely.",
42769
+ fix: "Use an https URL, a mailto: or tel: link, or a bound URL."
42770
+ },
42771
+ "unsafe-raw-text": {
42772
+ summary: "Raw text content contains markup that could end its element.",
42773
+ fix: "Remove the offending sequence."
42774
+ },
42775
+ "unsupported-style-property": {
42776
+ summary: "A style property name is not a CSS property.",
42777
+ fix: "Write camelCase (backgroundColor) or a custom property (--brand)."
42778
+ },
42779
+ "invalid-style-value": {
42780
+ summary: "A style value is not a string or number.",
42781
+ fix: "Pass a string or number."
42782
+ },
42783
+ "unsafe-style-value": {
42784
+ summary: "A style value contains CSS that could break out of its declaration.",
42785
+ fix: "Remove the offending characters."
42786
+ },
42787
+ "missing-head": {
42788
+ summary: "Styles that cannot be inlined need a <head> to live in.",
42789
+ fix: "Wrap the message in <Email>, or write those declarations inline."
42790
+ },
42791
+ "invalid-subject": {
42792
+ summary: "The subject is not one line of text.",
42793
+ fix: "Return a single-line string."
42794
+ },
42795
+ "invalid-preheader": {
42796
+ summary: "The preheader is not a string.",
42797
+ fix: "Return a string."
42798
+ },
42799
+ "invalid-text": {
42800
+ summary: "The plain-text body is not a string.",
42801
+ fix: "Return a string."
42802
+ },
42803
+ "button-outlook-fallback": {
42804
+ summary: "Classic Outlook needs a height and a plain string label to draw the button.",
42805
+ fix: "Give <Button> a height and a string label."
42806
+ },
42807
+ "unmatched-class": {
42808
+ summary: "A class produced no styles.",
42809
+ fix: "Use a class the theme or Tailwind defines, or write the style inline."
42810
+ },
42811
+ "tailwind-dynamic-class": {
42812
+ summary: "A class list is assembled at run time.",
42813
+ fix: "Write the classes literally."
42814
+ },
42815
+ "css-parse-error": {
42816
+ summary: "A stylesheet does not parse.",
42817
+ fix: "Fix the CSS at the reported location."
42818
+ },
42819
+ "css-import-unresolved": {
42820
+ summary: "A stylesheet @import cannot be resolved.",
42821
+ fix: "Import the stylesheet from the template module, or use the theme.css layers."
42822
+ },
42823
+ "css-unsupported-at-rule": {
42824
+ summary: "An at-rule is not applied to email output.",
42825
+ fix: "Remove it or move the declarations into a class rule."
42826
+ },
42827
+ "css-conditional-variable": {
42828
+ summary: "A custom property is redefined inside a conditional at-rule.",
42829
+ fix: "Keep the override on a class rule."
42830
+ },
42831
+ "email-font-fallback": {
42832
+ summary: "A font stack names a project font without a generic fallback.",
42833
+ fix: "End the stack with sans-serif, serif or monospace."
42834
+ },
42835
+ "email-font-family": {
42836
+ summary: "@font-face declares no font-family.",
42837
+ fix: "Add font-family."
42838
+ },
42839
+ "email-font-src": {
42840
+ summary: "@font-face declares no usable url() src.",
42841
+ fix: "Add a url() pointing at a .woff2 file."
42842
+ },
42843
+ "email-font-format": {
42844
+ summary: "@font-face uses a format other than WOFF2.",
42845
+ fix: "Convert the file to .woff2."
42846
+ },
42847
+ "email-font-missing": {
42848
+ summary: "@font-face names a file the project does not hold.",
42849
+ fix: "Add the file; paths resolve from the stylesheet's directory."
42850
+ },
42851
+ "invalid-asset-base": {
42852
+ summary: "The asset base is not an https URL or a path.",
42853
+ fix: "Use an https URL, an absolute path, or a relative path."
42854
+ },
42855
+ "brand-unavailable": {
42856
+ summary: "The build has no brand to resolve a samva:brand import.",
42857
+ fix: "Create or select the brand the import names."
42858
+ },
42859
+ "brand-import-conflict": {
42860
+ summary: "The project imports two different brands.",
42861
+ fix: "Import one brand specifier everywhere."
42862
+ },
42863
+ "caniemail/unknown-coverage": {
42864
+ summary: "A feature has no client-support data.",
42865
+ fix: "Verify it in the target clients."
42866
+ },
42867
+ "invalid-attribute": {
42868
+ summary: "A channel component attribute has a value the channel does not accept.",
42869
+ fix: "Use one of the listed values.",
42870
+ channelOnly: true
42871
+ },
42872
+ "unknown-attribute": {
42873
+ summary: "A channel component attribute the component does not have.",
42874
+ fix: "Use one of the listed attributes.",
42875
+ channelOnly: true
42876
+ },
42877
+ "sms-markup": {
42878
+ summary: "An SMS body contains an element; SMS is plain text.",
42879
+ fix: "Write text and bindings, with a newline for a line break.",
42880
+ channelOnly: true
42881
+ },
42882
+ "whatsapp-structure": {
42883
+ summary: "WhatsApp content sits outside Header, Body, Footer or Buttons.",
42884
+ fix: "Move it into <WhatsApp.Body>.",
42885
+ channelOnly: true
42886
+ },
42887
+ "whatsapp-body-required": {
42888
+ summary: "A WhatsApp template has no body.",
42889
+ fix: "Add <WhatsApp.Body>...</WhatsApp.Body>.",
42890
+ channelOnly: true
42891
+ },
42892
+ "whatsapp-conditional": {
42893
+ summary: "A WhatsApp part branches or contains elements; Meta registers its text once.",
42894
+ fix: "Choose the wording in the payload, or write separate templates.",
42895
+ channelOnly: true
42896
+ },
42897
+ "whatsapp-header-media": {
42898
+ summary: "A WhatsApp media header is not exactly one URL.",
42899
+ fix: "Write the URL as the only child: a literal or one binding.",
42900
+ channelOnly: true
42901
+ },
42902
+ "whatsapp-header-variables": {
42903
+ summary: "A WhatsApp header text takes more than one variable.",
42904
+ fix: "Keep one binding in the header and move the rest to the body.",
42905
+ channelOnly: true
42906
+ },
42907
+ "whatsapp-length": {
42908
+ summary: "A WhatsApp part exceeds Meta's length limit.",
42909
+ fix: "Shorten the text.",
42910
+ channelOnly: true
42911
+ },
42912
+ "whatsapp-button-text": {
42913
+ summary: "A WhatsApp button has no label or value between its tags.",
42914
+ fix: "Write the label or value as text between the tags.",
42915
+ channelOnly: true
42916
+ },
42917
+ "whatsapp-button-limit": {
42918
+ summary: "The conditions can produce more buttons of a kind than Meta allows.",
42919
+ fix: "Remove buttons, or split the template.",
42920
+ channelOnly: true
42921
+ }
42922
+ });
42527
42923
 
42528
42924
  // ../sdk/dist/normalize-B79uJIeb.js
42529
42925
  function toRecipientArray(recipient) {
@@ -42594,8 +42990,8 @@ function buildMessagesSendPayload(input) {
42594
42990
  };
42595
42991
  }
42596
42992
 
42597
- // ../sdk/dist/client-attribution-N5A784Zo.js
42598
- var SDK_VERSION = "0.8.0";
42993
+ // ../sdk/dist/client-attribution-vK1yjEdG.js
42994
+ var SDK_VERSION = "0.9.0";
42599
42995
  var CLIENT_ATTRIBUTION_HEADER = "x-samva-client";
42600
42996
  var clientAttribution = (surface) => `${surface}/${SDK_VERSION}`;
42601
42997
  // ../../node_modules/.bun/effect@4.0.0-rc.117/node_modules/effect/dist/ChannelSchema.js
@@ -44919,7 +45315,7 @@ var fetch2 = /* @__PURE__ */ make32((request, url, signal, fiber) => {
44919
45315
  });
44920
45316
  var layer15 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
44921
45317
 
44922
- // ../sdk/dist/client-ByJHYp7r.js
45318
+ // ../sdk/dist/client-DB7zbTti.js
44923
45319
  var Sensitive = (schema) => RedactedFromValue(schema);
44924
45320
  var SensitiveString = Sensitive(String4);
44925
45321
  var ABSOLUTE_ISO_INSTANT_PATTERN = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{1,9}))?)?(Z|([+-])(\d{2}):(\d{2}))$/;
@@ -50827,328 +51223,57 @@ var TemplatesCheckWorkspace200 = Struct({
50827
51223
  title: String4
50828
51224
  }), Null2]))
50829
51225
  })),
50830
- incompatibilities: ArraySchema(Struct({
50831
- code: String4,
50832
- severity: Literals([
50833
- "error",
50834
- "warning",
50835
- "info"
50836
- ]),
50837
- message: String4,
50838
- origins: ArraySchema(Struct({
50839
- fileName: String4,
50840
- lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50841
- columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
50842
- })),
50843
- clients: optionalKey2(Union2([ArraySchema(String4), Null2])),
50844
- notes: optionalKey2(Union2([String4, Null2])),
50845
- provenance: optionalKey2(Union2([String4, Null2])),
50846
- fixtures: optionalKey2(Union2([ArraySchema(String4), Null2])),
50847
- occurrences: optionalKey2(Union2([ArraySchema(ArraySchema(Struct({
50848
- fileName: String4,
50849
- lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50850
- columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
50851
- }))), Null2])),
50852
- compatibility: optionalKey2(Union2([Struct({
50853
- assessment: Literals([
50854
- "risk",
50855
- "degradation",
50856
- "unverified",
50857
- "not-applicable"
50858
- ]),
50859
- title: String4
50860
- }), Null2]))
50861
- }))
50862
- });
50863
- var TemplatesCheckWorkspace401 = UnauthorizedError;
50864
- var TemplatesCheckWorkspace403 = ForbiddenError;
50865
- var TemplatesCheckWorkspace404 = ResourceNotFoundError;
50866
- var TemplatesCheckWorkspace409 = ConflictError;
50867
- var TemplatesCheckWorkspace500 = InternalError;
50868
- var TemplatesCheckWorkspace504 = GatewayTimeoutError;
50869
- var TemplatesResolveWorkspaceConflictPathParams = Struct({ id: TemplateId });
50870
- var TemplatesResolveWorkspaceConflictRequestJson = Struct({
50871
- expectedRevision: String4,
50872
- path: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
50873
- resolution: Union2([
50874
- Literal2("draft"),
50875
- Literal2("main"),
50876
- Struct({ content: Union2([String4, Null2]) })
50877
- ]),
50878
- idempotencyKey: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
50879
- });
50880
- var TemplatesResolveWorkspaceConflict200 = Struct({
50881
- workspace: Struct({
50882
- projectId: TemplateProjectId,
50883
- organizationId: Union2([OrganizationId, Null2]),
50884
- ownerEpoch: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(0).annotate({ expected: "a value greater than or equal to 0" })),
50885
- repositoryName: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$" })),
50886
- defaultBranch: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(255).annotate({ expected: "a value with a length of at most 255" })),
50887
- baseCommit: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
50888
- remoteHead: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
50889
- pendingRemoteHead: Union2([String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Null2]),
50890
- revision: String4,
50891
- overlay: Record(String4, Union2([String4, Null2])),
50892
- assetChanges: ArraySchema(Struct({
50893
- path: String4,
50894
- status: Literals([
50895
- "added",
50896
- "modified",
50897
- "deleted"
50898
- ])
50899
- })),
50900
- conflicts: ArraySchema(Struct({
50901
- path: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
50902
- base: Union2([String4, Null2]),
50903
- draft: Union2([String4, Null2]),
50904
- main: Union2([String4, Null2])
50905
- })),
50906
- provenance: Struct({ references: ArraySchema(Struct({
50907
- kind: String4,
50908
- digest: String4,
50909
- locator: optionalKey2(String4)
50910
- })) }),
50911
- mounts: ArraySchema(Union2([
50912
- Struct({
50913
- kind: Literal2("project"),
50914
- root: Literal2("/project"),
50915
- access: Literal2("read-write")
50916
- }),
50917
- Struct({
50918
- root: String4.check(isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(isPattern2(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
50919
- digest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
50920
- fileCount: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50921
- byteSize: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50922
- kind: Literal2("started-from"),
50923
- access: Literal2("read-only"),
50924
- templateId: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
50925
- slug: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
50926
- name: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
50927
- }),
50928
- Struct({
50929
- root: String4.check(isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(isPattern2(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
50930
- digest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
50931
- fileCount: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50932
- byteSize: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50933
- kind: Literal2("resource"),
50934
- access: Literal2("read-only"),
50935
- resourceId: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[A-Za-z0-9._-]{1,128}$")).annotate({ expected: "a string matching the RegExp ^[A-Za-z0-9._-]{1,128}$" })),
50936
- name: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
50937
- }),
50938
- Struct({
50939
- root: String4.check(isMaxLength(2048).annotate({ expected: "a value with a length of at most 2048" })).check(isPattern2(/* @__PURE__ */ new RegExp("^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$")).annotate({ expected: "a string matching the RegExp ^\\/(?:project|references\\/started-from\\/[a-f0-9]{64}|resources\\/[A-Za-z0-9._-]+\\/[a-f0-9]{64}|library\\/templates\\/[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-f0-9]{64})(?:\\/(?!\\.{1,2}(?:\\/|$)|\\.git(?:\\/|$))[^\\\\/]+)*$" })),
50940
- digest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
50941
- fileCount: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50942
- byteSize: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
50943
- kind: Literal2("library-template"),
50944
- access: Literal2("read-only"),
50945
- templateId: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
50946
- slug: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-z0-9]+(?:-[a-z0-9]+)*$")).annotate({ expected: "a string matching the RegExp ^[a-z0-9]+(?:-[a-z0-9]+)*$" })),
50947
- name: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(256).annotate({ expected: "a value with a length of at most 256" }))
50948
- })
50949
- ])),
50950
- libraryManifestDigest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
50951
- createdAt: String4,
50952
- updatedAt: String4,
50953
- createdBy: Struct({
50954
- userId: UserId,
50955
- via: Literals([
50956
- "api",
50957
- "mcp",
50958
- "agent"
50959
- ])
50960
- }),
50961
- updatedBy: Struct({
50962
- userId: UserId,
50963
- via: Literals([
50964
- "api",
50965
- "mcp",
50966
- "agent"
50967
- ])
50968
- })
50969
- }),
50970
- files: Record(String4, String4)
50971
- });
50972
- var TemplatesResolveWorkspaceConflict401 = UnauthorizedError;
50973
- var TemplatesResolveWorkspaceConflict403 = ForbiddenError;
50974
- var TemplatesResolveWorkspaceConflict404 = ResourceNotFoundError;
50975
- var TemplatesResolveWorkspaceConflict409 = ConflictError;
50976
- var TemplatesResolveWorkspaceConflict500 = InternalError;
50977
- var TemplatesResolveWorkspaceConflict504 = GatewayTimeoutError;
50978
- var TemplatesDiffWorkspacePathParams = Struct({ id: TemplateId });
50979
- var TemplatesDiffWorkspaceRequestJson = Struct({ expectedRevision: String4 });
50980
- var TemplatesDiffWorkspace200 = Struct({
50981
- projectId: TemplateProjectId,
50982
- baseCommit: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
50983
- revision: String4,
50984
- changes: ArraySchema(Struct({
50985
- path: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
50986
- before: Union2([String4.check(isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Null2]),
50987
- after: Union2([String4.check(isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Null2]),
50988
- status: Literals([
50989
- "added",
50990
- "modified",
50991
- "deleted"
50992
- ])
50993
- })),
50994
- assetChanges: ArraySchema(Struct({
50995
- path: String4,
50996
- status: Literals([
50997
- "added",
50998
- "modified",
50999
- "deleted"
51000
- ])
51001
- }))
51002
- });
51003
- var TemplatesDiffWorkspace401 = UnauthorizedError;
51004
- var TemplatesDiffWorkspace403 = ForbiddenError;
51005
- var TemplatesDiffWorkspace404 = ResourceNotFoundError;
51006
- var TemplatesDiffWorkspace409 = ConflictError;
51007
- var TemplatesDiffWorkspace500 = InternalError;
51008
- var TemplatesDiffWorkspace504 = GatewayTimeoutError;
51009
- var TemplatesRenderWorkspaceFixturePathParams = Struct({ id: TemplateId });
51010
- var TemplatesRenderWorkspaceFixtureRequestJson = Struct({
51011
- expectedRevision: String4,
51012
- fixture: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" }))
51013
- });
51014
- var TemplatesRenderWorkspaceFixture200 = Struct({
51015
- projectId: TemplateProjectId,
51016
- revision: String4,
51017
- entryPath: String4.check(isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(isPattern2(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
51018
- declaration: Union2([Struct({
51019
- codeDigest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
51020
- templateId: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
51021
- input: Struct({
51022
- schema: Record(String4, JsonValue),
51023
- schemaDigest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
51024
- contractDigest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
51025
- }),
51026
- fixtures: ArraySchema(String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
51027
- }), Null2]),
51028
- diagnostics: ArraySchema(Struct({
51029
- code: String4,
51030
- severity: Literals([
51031
- "error",
51032
- "warning",
51033
- "info"
51034
- ]),
51035
- message: String4,
51036
- origins: ArraySchema(Struct({
51037
- fileName: String4,
51038
- lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51039
- columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51040
- })),
51041
- clients: optionalKey2(Union2([ArraySchema(String4), Null2])),
51042
- notes: optionalKey2(Union2([String4, Null2])),
51043
- provenance: optionalKey2(Union2([String4, Null2])),
51044
- fixtures: optionalKey2(Union2([ArraySchema(String4), Null2])),
51045
- occurrences: optionalKey2(Union2([ArraySchema(ArraySchema(Struct({
51046
- fileName: String4,
51047
- lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51048
- columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51049
- }))), Null2])),
51050
- compatibility: optionalKey2(Union2([Struct({
51051
- assessment: Literals([
51052
- "risk",
51053
- "degradation",
51054
- "unverified",
51055
- "not-applicable"
51056
- ]),
51057
- title: String4
51058
- }), Null2]))
51059
- })),
51060
- incompatibilities: ArraySchema(Struct({
51061
- code: String4,
51062
- severity: Literals([
51063
- "error",
51064
- "warning",
51065
- "info"
51066
- ]),
51067
- message: String4,
51068
- origins: ArraySchema(Struct({
51069
- fileName: String4,
51070
- lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51071
- columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51072
- })),
51073
- clients: optionalKey2(Union2([ArraySchema(String4), Null2])),
51074
- notes: optionalKey2(Union2([String4, Null2])),
51075
- provenance: optionalKey2(Union2([String4, Null2])),
51076
- fixtures: optionalKey2(Union2([ArraySchema(String4), Null2])),
51077
- occurrences: optionalKey2(Union2([ArraySchema(ArraySchema(Struct({
51078
- fileName: String4,
51079
- lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51080
- columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51081
- }))), Null2])),
51082
- compatibility: optionalKey2(Union2([Struct({
51083
- assessment: Literals([
51084
- "risk",
51085
- "degradation",
51086
- "unverified",
51087
- "not-applicable"
51088
- ]),
51089
- title: String4
51090
- }), Null2]))
51091
- })),
51092
- fixture: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
51093
- rendered: Union2([Struct({
51094
- subject: String4,
51095
- preheader: optionalKey2(String4),
51096
- html: String4.check(isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
51097
- text: String4.check(isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
51098
- selections: ArraySchema(Struct({
51099
- instancePath: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
51100
- tag: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
51101
- origins: ArraySchema(Struct({
51102
- fileName: String4,
51103
- lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51104
- columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51105
- })),
51106
- authored: Boolean3,
51107
- occurrence: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51108
- occurrences: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51109
- parentPath: optionalKey2(String4),
51110
- start: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(0).annotate({ expected: "a value greater than or equal to 0" })),
51111
- end: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(0).annotate({ expected: "a value greater than or equal to 0" }))
51112
- }))
51113
- }), Null2])
51114
- });
51115
- var TemplatesRenderWorkspaceFixture401 = UnauthorizedError;
51116
- var TemplatesRenderWorkspaceFixture403 = ForbiddenError;
51117
- var TemplatesRenderWorkspaceFixture404 = ResourceNotFoundError;
51118
- var TemplatesRenderWorkspaceFixture409 = ConflictError;
51119
- var TemplatesRenderWorkspaceFixture500 = InternalError;
51120
- var TemplatesRenderWorkspaceFixture504 = GatewayTimeoutError;
51121
- var TemplatesWorkspaceHistoryPathParams = Struct({ id: TemplateId });
51122
- var TemplatesWorkspaceHistoryQuery = Struct({ limit: optionalKey2(Union2([String4, Null2])) });
51123
- var TemplatesWorkspaceHistory200 = Struct({
51124
- projectId: TemplateProjectId,
51125
- head: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
51126
- commits: ArraySchema(Struct({
51127
- commit: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
51128
- tree: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
51129
- parentCommit: Union2([String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Null2]),
51226
+ incompatibilities: ArraySchema(Struct({
51227
+ code: String4,
51228
+ severity: Literals([
51229
+ "error",
51230
+ "warning",
51231
+ "info"
51232
+ ]),
51130
51233
  message: String4,
51131
- committedAt: String4
51132
- })),
51133
- publication: Union2([Struct({
51134
- id: TemplatePublicationId,
51135
- commit: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
51136
- }), Null2])
51234
+ origins: ArraySchema(Struct({
51235
+ fileName: String4,
51236
+ lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51237
+ columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51238
+ })),
51239
+ clients: optionalKey2(Union2([ArraySchema(String4), Null2])),
51240
+ notes: optionalKey2(Union2([String4, Null2])),
51241
+ provenance: optionalKey2(Union2([String4, Null2])),
51242
+ fixtures: optionalKey2(Union2([ArraySchema(String4), Null2])),
51243
+ occurrences: optionalKey2(Union2([ArraySchema(ArraySchema(Struct({
51244
+ fileName: String4,
51245
+ lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51246
+ columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51247
+ }))), Null2])),
51248
+ compatibility: optionalKey2(Union2([Struct({
51249
+ assessment: Literals([
51250
+ "risk",
51251
+ "degradation",
51252
+ "unverified",
51253
+ "not-applicable"
51254
+ ]),
51255
+ title: String4
51256
+ }), Null2]))
51257
+ }))
51137
51258
  });
51138
- var TemplatesWorkspaceHistory401 = UnauthorizedError;
51139
- var TemplatesWorkspaceHistory403 = ForbiddenError;
51140
- var TemplatesWorkspaceHistory404 = ResourceNotFoundError;
51141
- var TemplatesWorkspaceHistory409 = ConflictError;
51142
- var TemplatesWorkspaceHistory500 = InternalError;
51143
- var TemplatesWorkspaceHistory504 = GatewayTimeoutError;
51144
- var TemplatesReconcileWorkspacePathParams = Struct({ id: TemplateId });
51145
- var TemplatesReconcileWorkspaceRequestJson = Struct({
51259
+ var TemplatesCheckWorkspace401 = UnauthorizedError;
51260
+ var TemplatesCheckWorkspace403 = ForbiddenError;
51261
+ var TemplatesCheckWorkspace404 = ResourceNotFoundError;
51262
+ var TemplatesCheckWorkspace409 = ConflictError;
51263
+ var TemplatesCheckWorkspace500 = InternalError;
51264
+ var TemplatesCheckWorkspace504 = GatewayTimeoutError;
51265
+ var TemplatesResolveWorkspaceConflictPathParams = Struct({ id: TemplateId });
51266
+ var TemplatesResolveWorkspaceConflictRequestJson = Struct({
51146
51267
  expectedRevision: String4,
51147
- assetResolution: optionalKey2(Literals(["draft", "remote"])),
51148
- expectedRemoteHead: optionalKey2(String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))),
51268
+ path: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
51269
+ resolution: Union2([
51270
+ Literal2("draft"),
51271
+ Literal2("main"),
51272
+ Struct({ content: Union2([String4, Null2]) })
51273
+ ]),
51149
51274
  idempotencyKey: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(255).annotate({ expected: "a value with a length of at most 255" }))
51150
51275
  });
51151
- var TemplatesReconcileWorkspace200 = Struct({
51276
+ var TemplatesResolveWorkspaceConflict200 = Struct({
51152
51277
  workspace: Struct({
51153
51278
  projectId: TemplateProjectId,
51154
51279
  organizationId: Union2([OrganizationId, Null2]),
@@ -51240,12 +51365,178 @@ var TemplatesReconcileWorkspace200 = Struct({
51240
51365
  }),
51241
51366
  files: Record(String4, String4)
51242
51367
  });
51243
- var TemplatesReconcileWorkspace401 = UnauthorizedError;
51244
- var TemplatesReconcileWorkspace403 = ForbiddenError;
51245
- var TemplatesReconcileWorkspace404 = ResourceNotFoundError;
51246
- var TemplatesReconcileWorkspace409 = ConflictError;
51247
- var TemplatesReconcileWorkspace500 = InternalError;
51248
- var TemplatesReconcileWorkspace504 = GatewayTimeoutError;
51368
+ var TemplatesResolveWorkspaceConflict401 = UnauthorizedError;
51369
+ var TemplatesResolveWorkspaceConflict403 = ForbiddenError;
51370
+ var TemplatesResolveWorkspaceConflict404 = ResourceNotFoundError;
51371
+ var TemplatesResolveWorkspaceConflict409 = ConflictError;
51372
+ var TemplatesResolveWorkspaceConflict500 = InternalError;
51373
+ var TemplatesResolveWorkspaceConflict504 = GatewayTimeoutError;
51374
+ var TemplatesDiffWorkspacePathParams = Struct({ id: TemplateId });
51375
+ var TemplatesDiffWorkspaceRequestJson = Struct({ expectedRevision: String4 });
51376
+ var TemplatesDiffWorkspace200 = Struct({
51377
+ projectId: TemplateProjectId,
51378
+ baseCommit: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
51379
+ revision: String4,
51380
+ changes: ArraySchema(Struct({
51381
+ path: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$)).{1,1024}$" })),
51382
+ before: Union2([String4.check(isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Null2]),
51383
+ after: Union2([String4.check(isMaxLength(1048576).annotate({ expected: "a value with a length of at most 1048576" })), Null2]),
51384
+ status: Literals([
51385
+ "added",
51386
+ "modified",
51387
+ "deleted"
51388
+ ])
51389
+ })),
51390
+ assetChanges: ArraySchema(Struct({
51391
+ path: String4,
51392
+ status: Literals([
51393
+ "added",
51394
+ "modified",
51395
+ "deleted"
51396
+ ])
51397
+ }))
51398
+ });
51399
+ var TemplatesDiffWorkspace401 = UnauthorizedError;
51400
+ var TemplatesDiffWorkspace403 = ForbiddenError;
51401
+ var TemplatesDiffWorkspace404 = ResourceNotFoundError;
51402
+ var TemplatesDiffWorkspace409 = ConflictError;
51403
+ var TemplatesDiffWorkspace500 = InternalError;
51404
+ var TemplatesDiffWorkspace504 = GatewayTimeoutError;
51405
+ var TemplatesRenderWorkspaceFixturePathParams = Struct({ id: TemplateId });
51406
+ var TemplatesRenderWorkspaceFixtureRequestJson = Struct({
51407
+ expectedRevision: String4,
51408
+ fixture: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" }))
51409
+ });
51410
+ var TemplatesRenderWorkspaceFixture200 = Struct({
51411
+ projectId: TemplateProjectId,
51412
+ revision: String4,
51413
+ entryPath: String4.check(isMaxLength(1024).annotate({ expected: "a value with a length of at most 1024" })).check(isPattern2(/* @__PURE__ */ new RegExp("^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$")).annotate({ expected: "a string matching the RegExp ^(?!\\/)(?!.*\\\\)(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))(?!.*(?:^|\\/)\\.git(?:\\/|$))(?:templates|emails)\\/.+\\.tsx$" })),
51414
+ declaration: Union2([Struct({
51415
+ codeDigest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
51416
+ templateId: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
51417
+ input: Struct({
51418
+ schema: Record(String4, JsonValue),
51419
+ schemaDigest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" })),
51420
+ contractDigest: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{64}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{64}$" }))
51421
+ }),
51422
+ fixtures: ArraySchema(String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })))
51423
+ }), Null2]),
51424
+ diagnostics: ArraySchema(Struct({
51425
+ code: String4,
51426
+ severity: Literals([
51427
+ "error",
51428
+ "warning",
51429
+ "info"
51430
+ ]),
51431
+ message: String4,
51432
+ origins: ArraySchema(Struct({
51433
+ fileName: String4,
51434
+ lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51435
+ columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51436
+ })),
51437
+ clients: optionalKey2(Union2([ArraySchema(String4), Null2])),
51438
+ notes: optionalKey2(Union2([String4, Null2])),
51439
+ provenance: optionalKey2(Union2([String4, Null2])),
51440
+ fixtures: optionalKey2(Union2([ArraySchema(String4), Null2])),
51441
+ occurrences: optionalKey2(Union2([ArraySchema(ArraySchema(Struct({
51442
+ fileName: String4,
51443
+ lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51444
+ columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51445
+ }))), Null2])),
51446
+ compatibility: optionalKey2(Union2([Struct({
51447
+ assessment: Literals([
51448
+ "risk",
51449
+ "degradation",
51450
+ "unverified",
51451
+ "not-applicable"
51452
+ ]),
51453
+ title: String4
51454
+ }), Null2]))
51455
+ })),
51456
+ incompatibilities: ArraySchema(Struct({
51457
+ code: String4,
51458
+ severity: Literals([
51459
+ "error",
51460
+ "warning",
51461
+ "info"
51462
+ ]),
51463
+ message: String4,
51464
+ origins: ArraySchema(Struct({
51465
+ fileName: String4,
51466
+ lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51467
+ columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51468
+ })),
51469
+ clients: optionalKey2(Union2([ArraySchema(String4), Null2])),
51470
+ notes: optionalKey2(Union2([String4, Null2])),
51471
+ provenance: optionalKey2(Union2([String4, Null2])),
51472
+ fixtures: optionalKey2(Union2([ArraySchema(String4), Null2])),
51473
+ occurrences: optionalKey2(Union2([ArraySchema(ArraySchema(Struct({
51474
+ fileName: String4,
51475
+ lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51476
+ columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51477
+ }))), Null2])),
51478
+ compatibility: optionalKey2(Union2([Struct({
51479
+ assessment: Literals([
51480
+ "risk",
51481
+ "degradation",
51482
+ "unverified",
51483
+ "not-applicable"
51484
+ ]),
51485
+ title: String4
51486
+ }), Null2]))
51487
+ })),
51488
+ fixture: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })).check(isMaxLength(128).annotate({ expected: "a value with a length of at most 128" })),
51489
+ rendered: Union2([Struct({
51490
+ subject: String4,
51491
+ preheader: optionalKey2(String4),
51492
+ html: String4.check(isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
51493
+ text: String4.check(isMaxLength(2097152).annotate({ expected: "a value with a length of at most 2097152" })),
51494
+ selections: ArraySchema(Struct({
51495
+ instancePath: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
51496
+ tag: String4.check(isMinLength(1).annotate({ expected: "a value with a length of at least 1" })),
51497
+ origins: ArraySchema(Struct({
51498
+ fileName: String4,
51499
+ lineNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51500
+ columnNumber: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" }))
51501
+ })),
51502
+ authored: Boolean3,
51503
+ occurrence: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51504
+ occurrences: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(1).annotate({ expected: "a value greater than or equal to 1" })),
51505
+ parentPath: optionalKey2(String4),
51506
+ start: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(0).annotate({ expected: "a value greater than or equal to 0" })),
51507
+ end: Finite.check(isInt().annotate({ expected: "an integer" })).check(isGreaterThanOrEqualTo2(0).annotate({ expected: "a value greater than or equal to 0" }))
51508
+ }))
51509
+ }), Null2])
51510
+ });
51511
+ var TemplatesRenderWorkspaceFixture401 = UnauthorizedError;
51512
+ var TemplatesRenderWorkspaceFixture403 = ForbiddenError;
51513
+ var TemplatesRenderWorkspaceFixture404 = ResourceNotFoundError;
51514
+ var TemplatesRenderWorkspaceFixture409 = ConflictError;
51515
+ var TemplatesRenderWorkspaceFixture500 = InternalError;
51516
+ var TemplatesRenderWorkspaceFixture504 = GatewayTimeoutError;
51517
+ var TemplatesWorkspaceHistoryPathParams = Struct({ id: TemplateId });
51518
+ var TemplatesWorkspaceHistoryQuery = Struct({ limit: optionalKey2(Union2([String4, Null2])) });
51519
+ var TemplatesWorkspaceHistory200 = Struct({
51520
+ projectId: TemplateProjectId,
51521
+ head: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
51522
+ commits: ArraySchema(Struct({
51523
+ commit: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
51524
+ tree: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })),
51525
+ parentCommit: Union2([String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" })), Null2]),
51526
+ message: String4,
51527
+ committedAt: String4
51528
+ })),
51529
+ publication: Union2([Struct({
51530
+ id: TemplatePublicationId,
51531
+ commit: String4.check(isPattern2(/* @__PURE__ */ new RegExp("^[a-f0-9]{40}$")).annotate({ expected: "a string matching the RegExp ^[a-f0-9]{40}$" }))
51532
+ }), Null2])
51533
+ });
51534
+ var TemplatesWorkspaceHistory401 = UnauthorizedError;
51535
+ var TemplatesWorkspaceHistory403 = ForbiddenError;
51536
+ var TemplatesWorkspaceHistory404 = ResourceNotFoundError;
51537
+ var TemplatesWorkspaceHistory409 = ConflictError;
51538
+ var TemplatesWorkspaceHistory500 = InternalError;
51539
+ var TemplatesWorkspaceHistory504 = GatewayTimeoutError;
51249
51540
  var TemplatesAttachWorkspaceResourcePathParams = Struct({ id: TemplateId });
51250
51541
  var TemplatesAttachWorkspaceResourceRequestJson = Struct({
51251
51542
  expectedRevision: String4,
@@ -54093,19 +54384,7 @@ var TemplatesGroup = class extends make36("Templates").add(get5("templatesList",
54093
54384
  TemplatesWorkspaceHistory500,
54094
54385
  TemplatesWorkspaceHistory504.pipe(status(504))
54095
54386
  ]
54096
- }).middleware(ApiKeySecurityMiddleware).annotate(Identifier, "templates.workspaceHistory").annotate(Summary, "List template project commit history").annotate(Description, "Returns recent history from the template repository's default branch."), post("templatesReconcileWorkspace", "/v1/templates/:id/workspace/reconcile", {
54097
- params: TemplatesReconcileWorkspacePathParams,
54098
- payload: TemplatesReconcileWorkspaceRequestJson,
54099
- success: TemplatesReconcileWorkspace200,
54100
- error: [
54101
- TemplatesReconcileWorkspace401.pipe(status(401)),
54102
- TemplatesReconcileWorkspace403.pipe(status(403)),
54103
- TemplatesReconcileWorkspace404.pipe(status(404)),
54104
- TemplatesReconcileWorkspace409.pipe(status(409)),
54105
- TemplatesReconcileWorkspace500,
54106
- TemplatesReconcileWorkspace504.pipe(status(504))
54107
- ]
54108
- }).middleware(ApiKeySecurityMiddleware).annotate(Identifier, "templates.reconcileWorkspace").annotate(Summary, "Reconcile a template project workspace").annotate(Description, "Fast-forwards or rebases the workspace onto the latest saved version, retaining file conflicts for explicit resolution."), post("templatesAttachWorkspaceResource", "/v1/templates/:id/workspace/resources", {
54387
+ }).middleware(ApiKeySecurityMiddleware).annotate(Identifier, "templates.workspaceHistory").annotate(Summary, "List template project commit history").annotate(Description, "Returns recent history from the template repository's default branch."), post("templatesAttachWorkspaceResource", "/v1/templates/:id/workspace/resources", {
54109
54388
  params: TemplatesAttachWorkspaceResourcePathParams,
54110
54389
  payload: TemplatesAttachWorkspaceResourceRequestJson,
54111
54390
  success: TemplatesAttachWorkspaceResource200,
@@ -54662,7 +54941,7 @@ var generateIdempotencyKey = gen2(function* () {
54662
54941
  return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
54663
54942
  });
54664
54943
 
54665
- // ../sdk/dist/operation-D2nEeKBD.js
54944
+ // ../sdk/dist/operation-Cdp1EI_1.js
54666
54945
  var SDK_OPERATION_CALLS = {
54667
54946
  brandsList: { kind: "none" },
54668
54947
  brandsCreate: { kind: "payload" },
@@ -55103,10 +55382,6 @@ var SDK_OPERATION_CALLS = {
55103
55382
  kind: "pathPayload",
55104
55383
  paths: ["id"]
55105
55384
  },
55106
- templatesReconcileWorkspace: {
55107
- kind: "pathPayload",
55108
- paths: ["id"]
55109
- },
55110
55385
  templatesRestoreWorkspace: {
55111
55386
  kind: "pathPayload",
55112
55387
  paths: ["id"]
@@ -55666,7 +55941,6 @@ var putWorkspaceAsset = make38("templatesPutWorkspaceAsset");
55666
55941
  var resolveWorkspaceConflict = make38("templatesResolveWorkspaceConflict");
55667
55942
  var attachWorkspaceResource = make38("templatesAttachWorkspaceResource");
55668
55943
  var removeWorkspaceResource = make38("templatesRemoveWorkspaceResource");
55669
- var reconcileWorkspace = make38("templatesReconcileWorkspace");
55670
55944
  var restoreWorkspace = make38("templatesRestoreWorkspace");
55671
55945
  var saveWorkspace = make38("templatesSaveWorkspace");
55672
55946
  var checkWorkspace = make38("templatesCheckWorkspace");