@le-space/core 0.3.0 → 0.3.3

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.
@@ -0,0 +1,407 @@
1
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/cryptoNode.js
2
+ import * as nc from "crypto";
3
+ var crypto = nc && typeof nc === "object" && "webcrypto" in nc ? nc.webcrypto : nc && typeof nc === "object" && "randomBytes" in nc ? nc : void 0;
4
+
5
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
6
+ function isBytes(a) {
7
+ return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
8
+ }
9
+ function anumber(n) {
10
+ if (!Number.isSafeInteger(n) || n < 0)
11
+ throw new Error("positive integer expected, got " + n);
12
+ }
13
+ function abytes(b, ...lengths) {
14
+ if (!isBytes(b))
15
+ throw new Error("Uint8Array expected");
16
+ if (lengths.length > 0 && !lengths.includes(b.length))
17
+ throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b.length);
18
+ }
19
+ function ahash(h) {
20
+ if (typeof h !== "function" || typeof h.create !== "function")
21
+ throw new Error("Hash should be wrapped by utils.createHasher");
22
+ anumber(h.outputLen);
23
+ anumber(h.blockLen);
24
+ }
25
+ function aexists(instance, checkFinished = true) {
26
+ if (instance.destroyed)
27
+ throw new Error("Hash instance has been destroyed");
28
+ if (checkFinished && instance.finished)
29
+ throw new Error("Hash#digest() has already been called");
30
+ }
31
+ function aoutput(out, instance) {
32
+ abytes(out);
33
+ const min = instance.outputLen;
34
+ if (out.length < min) {
35
+ throw new Error("digestInto() expects output buffer of length at least " + min);
36
+ }
37
+ }
38
+ function u32(arr) {
39
+ return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
40
+ }
41
+ function clean(...arrays) {
42
+ for (let i = 0; i < arrays.length; i++) {
43
+ arrays[i].fill(0);
44
+ }
45
+ }
46
+ function createView(arr) {
47
+ return new DataView(arr.buffer, arr.byteOffset, arr.byteLength);
48
+ }
49
+ function rotr(word, shift) {
50
+ return word << 32 - shift | word >>> shift;
51
+ }
52
+ var isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
53
+ function byteSwap(word) {
54
+ return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
55
+ }
56
+ function byteSwap32(arr) {
57
+ for (let i = 0; i < arr.length; i++) {
58
+ arr[i] = byteSwap(arr[i]);
59
+ }
60
+ return arr;
61
+ }
62
+ var swap32IfBE = isLE ? (u) => u : byteSwap32;
63
+ function utf8ToBytes(str) {
64
+ if (typeof str !== "string")
65
+ throw new Error("string expected");
66
+ return new Uint8Array(new TextEncoder().encode(str));
67
+ }
68
+ function toBytes(data) {
69
+ if (typeof data === "string")
70
+ data = utf8ToBytes(data);
71
+ abytes(data);
72
+ return data;
73
+ }
74
+ function concatBytes(...arrays) {
75
+ let sum = 0;
76
+ for (let i = 0; i < arrays.length; i++) {
77
+ const a = arrays[i];
78
+ abytes(a);
79
+ sum += a.length;
80
+ }
81
+ const res = new Uint8Array(sum);
82
+ for (let i = 0, pad = 0; i < arrays.length; i++) {
83
+ const a = arrays[i];
84
+ res.set(a, pad);
85
+ pad += a.length;
86
+ }
87
+ return res;
88
+ }
89
+ var Hash = class {
90
+ };
91
+ function createHasher(hashCons) {
92
+ const hashC = (msg) => hashCons().update(toBytes(msg)).digest();
93
+ const tmp = hashCons();
94
+ hashC.outputLen = tmp.outputLen;
95
+ hashC.blockLen = tmp.blockLen;
96
+ hashC.create = () => hashCons();
97
+ return hashC;
98
+ }
99
+ function randomBytes(bytesLength = 32) {
100
+ if (crypto && typeof crypto.getRandomValues === "function") {
101
+ return crypto.getRandomValues(new Uint8Array(bytesLength));
102
+ }
103
+ if (crypto && typeof crypto.randomBytes === "function") {
104
+ return Uint8Array.from(crypto.randomBytes(bytesLength));
105
+ }
106
+ throw new Error("crypto.getRandomValues must be defined");
107
+ }
108
+
109
+ // ../../node_modules/.pnpm/@noble+curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js
110
+ var _0n = /* @__PURE__ */ BigInt(0);
111
+ var _1n = /* @__PURE__ */ BigInt(1);
112
+ function isBytes2(a) {
113
+ return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
114
+ }
115
+ function abytes2(item) {
116
+ if (!isBytes2(item))
117
+ throw new Error("Uint8Array expected");
118
+ }
119
+ function abool(title, value) {
120
+ if (typeof value !== "boolean")
121
+ throw new Error(title + " boolean expected, got " + value);
122
+ }
123
+ function numberToHexUnpadded(num) {
124
+ const hex = num.toString(16);
125
+ return hex.length & 1 ? "0" + hex : hex;
126
+ }
127
+ function hexToNumber(hex) {
128
+ if (typeof hex !== "string")
129
+ throw new Error("hex string expected, got " + typeof hex);
130
+ return hex === "" ? _0n : BigInt("0x" + hex);
131
+ }
132
+ var hasHexBuiltin = (
133
+ // @ts-ignore
134
+ typeof Uint8Array.from([]).toHex === "function" && typeof Uint8Array.fromHex === "function"
135
+ );
136
+ var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, "0"));
137
+ function bytesToHex(bytes) {
138
+ abytes2(bytes);
139
+ if (hasHexBuiltin)
140
+ return bytes.toHex();
141
+ let hex = "";
142
+ for (let i = 0; i < bytes.length; i++) {
143
+ hex += hexes[bytes[i]];
144
+ }
145
+ return hex;
146
+ }
147
+ var asciis = { _0: 48, _9: 57, A: 65, F: 70, a: 97, f: 102 };
148
+ function asciiToBase16(ch) {
149
+ if (ch >= asciis._0 && ch <= asciis._9)
150
+ return ch - asciis._0;
151
+ if (ch >= asciis.A && ch <= asciis.F)
152
+ return ch - (asciis.A - 10);
153
+ if (ch >= asciis.a && ch <= asciis.f)
154
+ return ch - (asciis.a - 10);
155
+ return;
156
+ }
157
+ function hexToBytes(hex) {
158
+ if (typeof hex !== "string")
159
+ throw new Error("hex string expected, got " + typeof hex);
160
+ if (hasHexBuiltin)
161
+ return Uint8Array.fromHex(hex);
162
+ const hl = hex.length;
163
+ const al = hl / 2;
164
+ if (hl % 2)
165
+ throw new Error("hex string expected, got unpadded hex of length " + hl);
166
+ const array = new Uint8Array(al);
167
+ for (let ai = 0, hi = 0; ai < al; ai++, hi += 2) {
168
+ const n1 = asciiToBase16(hex.charCodeAt(hi));
169
+ const n2 = asciiToBase16(hex.charCodeAt(hi + 1));
170
+ if (n1 === void 0 || n2 === void 0) {
171
+ const char = hex[hi] + hex[hi + 1];
172
+ throw new Error('hex string expected, got non-hex character "' + char + '" at index ' + hi);
173
+ }
174
+ array[ai] = n1 * 16 + n2;
175
+ }
176
+ return array;
177
+ }
178
+ function bytesToNumberBE(bytes) {
179
+ return hexToNumber(bytesToHex(bytes));
180
+ }
181
+ function bytesToNumberLE(bytes) {
182
+ abytes2(bytes);
183
+ return hexToNumber(bytesToHex(Uint8Array.from(bytes).reverse()));
184
+ }
185
+ function numberToBytesBE(n, len) {
186
+ return hexToBytes(n.toString(16).padStart(len * 2, "0"));
187
+ }
188
+ function numberToBytesLE(n, len) {
189
+ return numberToBytesBE(n, len).reverse();
190
+ }
191
+ function ensureBytes(title, hex, expectedLength) {
192
+ let res;
193
+ if (typeof hex === "string") {
194
+ try {
195
+ res = hexToBytes(hex);
196
+ } catch (e) {
197
+ throw new Error(title + " must be hex string or Uint8Array, cause: " + e);
198
+ }
199
+ } else if (isBytes2(hex)) {
200
+ res = Uint8Array.from(hex);
201
+ } else {
202
+ throw new Error(title + " must be hex string or Uint8Array");
203
+ }
204
+ const len = res.length;
205
+ if (typeof expectedLength === "number" && len !== expectedLength)
206
+ throw new Error(title + " of length " + expectedLength + " expected, got " + len);
207
+ return res;
208
+ }
209
+ function concatBytes2(...arrays) {
210
+ let sum = 0;
211
+ for (let i = 0; i < arrays.length; i++) {
212
+ const a = arrays[i];
213
+ abytes2(a);
214
+ sum += a.length;
215
+ }
216
+ const res = new Uint8Array(sum);
217
+ for (let i = 0, pad = 0; i < arrays.length; i++) {
218
+ const a = arrays[i];
219
+ res.set(a, pad);
220
+ pad += a.length;
221
+ }
222
+ return res;
223
+ }
224
+ function utf8ToBytes2(str) {
225
+ if (typeof str !== "string")
226
+ throw new Error("string expected");
227
+ return new Uint8Array(new TextEncoder().encode(str));
228
+ }
229
+ var isPosBig = (n) => typeof n === "bigint" && _0n <= n;
230
+ function inRange(n, min, max) {
231
+ return isPosBig(n) && isPosBig(min) && isPosBig(max) && min <= n && n < max;
232
+ }
233
+ function aInRange(title, n, min, max) {
234
+ if (!inRange(n, min, max))
235
+ throw new Error("expected valid " + title + ": " + min + " <= n < " + max + ", got " + n);
236
+ }
237
+ function bitLen(n) {
238
+ let len;
239
+ for (len = 0; n > _0n; n >>= _1n, len += 1)
240
+ ;
241
+ return len;
242
+ }
243
+ var bitMask = (n) => (_1n << BigInt(n)) - _1n;
244
+ var u8n = (len) => new Uint8Array(len);
245
+ var u8fr = (arr) => Uint8Array.from(arr);
246
+ function createHmacDrbg(hashLen, qByteLen, hmacFn) {
247
+ if (typeof hashLen !== "number" || hashLen < 2)
248
+ throw new Error("hashLen must be a number");
249
+ if (typeof qByteLen !== "number" || qByteLen < 2)
250
+ throw new Error("qByteLen must be a number");
251
+ if (typeof hmacFn !== "function")
252
+ throw new Error("hmacFn must be a function");
253
+ let v = u8n(hashLen);
254
+ let k = u8n(hashLen);
255
+ let i = 0;
256
+ const reset = () => {
257
+ v.fill(1);
258
+ k.fill(0);
259
+ i = 0;
260
+ };
261
+ const h = (...b) => hmacFn(k, v, ...b);
262
+ const reseed = (seed = u8n(0)) => {
263
+ k = h(u8fr([0]), seed);
264
+ v = h();
265
+ if (seed.length === 0)
266
+ return;
267
+ k = h(u8fr([1]), seed);
268
+ v = h();
269
+ };
270
+ const gen = () => {
271
+ if (i++ >= 1e3)
272
+ throw new Error("drbg: tried 1000 values");
273
+ let len = 0;
274
+ const out = [];
275
+ while (len < qByteLen) {
276
+ v = h();
277
+ const sl = v.slice();
278
+ out.push(sl);
279
+ len += v.length;
280
+ }
281
+ return concatBytes2(...out);
282
+ };
283
+ const genUntil = (seed, pred) => {
284
+ reset();
285
+ reseed(seed);
286
+ let res = void 0;
287
+ while (!(res = pred(gen())))
288
+ reseed();
289
+ reset();
290
+ return res;
291
+ };
292
+ return genUntil;
293
+ }
294
+ var validatorFns = {
295
+ bigint: (val) => typeof val === "bigint",
296
+ function: (val) => typeof val === "function",
297
+ boolean: (val) => typeof val === "boolean",
298
+ string: (val) => typeof val === "string",
299
+ stringOrUint8Array: (val) => typeof val === "string" || isBytes2(val),
300
+ isSafeInteger: (val) => Number.isSafeInteger(val),
301
+ array: (val) => Array.isArray(val),
302
+ field: (val, object) => object.Fp.isValid(val),
303
+ hash: (val) => typeof val === "function" && Number.isSafeInteger(val.outputLen)
304
+ };
305
+ function validateObject(object, validators, optValidators = {}) {
306
+ const checkField = (fieldName, type, isOptional) => {
307
+ const checkVal = validatorFns[type];
308
+ if (typeof checkVal !== "function")
309
+ throw new Error("invalid validator function");
310
+ const val = object[fieldName];
311
+ if (isOptional && val === void 0)
312
+ return;
313
+ if (!checkVal(val, object)) {
314
+ throw new Error("param " + String(fieldName) + " is invalid. Expected " + type + ", got " + val);
315
+ }
316
+ };
317
+ for (const [fieldName, type] of Object.entries(validators))
318
+ checkField(fieldName, type, false);
319
+ for (const [fieldName, type] of Object.entries(optValidators))
320
+ checkField(fieldName, type, true);
321
+ return object;
322
+ }
323
+ function memoized(fn) {
324
+ const map = /* @__PURE__ */ new WeakMap();
325
+ return (arg, ...args) => {
326
+ const val = map.get(arg);
327
+ if (val !== void 0)
328
+ return val;
329
+ const computed = fn(arg, ...args);
330
+ map.set(arg, computed);
331
+ return computed;
332
+ };
333
+ }
334
+
335
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
336
+ var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
337
+ var _32n = /* @__PURE__ */ BigInt(32);
338
+ function fromBig(n, le = false) {
339
+ if (le)
340
+ return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
341
+ return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
342
+ }
343
+ function split(lst, le = false) {
344
+ const len = lst.length;
345
+ let Ah = new Uint32Array(len);
346
+ let Al = new Uint32Array(len);
347
+ for (let i = 0; i < len; i++) {
348
+ const { h, l } = fromBig(lst[i], le);
349
+ [Ah[i], Al[i]] = [h, l];
350
+ }
351
+ return [Ah, Al];
352
+ }
353
+ var rotlSH = (h, l, s) => h << s | l >>> 32 - s;
354
+ var rotlSL = (h, l, s) => l << s | h >>> 32 - s;
355
+ var rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
356
+ var rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
357
+
358
+ export {
359
+ split,
360
+ rotlSH,
361
+ rotlSL,
362
+ rotlBH,
363
+ rotlBL,
364
+ anumber,
365
+ abytes,
366
+ ahash,
367
+ aexists,
368
+ aoutput,
369
+ u32,
370
+ clean,
371
+ createView,
372
+ rotr,
373
+ swap32IfBE,
374
+ toBytes,
375
+ concatBytes,
376
+ Hash,
377
+ createHasher,
378
+ randomBytes,
379
+ isBytes2 as isBytes,
380
+ abytes2,
381
+ abool,
382
+ numberToHexUnpadded,
383
+ bytesToHex,
384
+ hexToBytes,
385
+ bytesToNumberBE,
386
+ bytesToNumberLE,
387
+ numberToBytesBE,
388
+ numberToBytesLE,
389
+ ensureBytes,
390
+ concatBytes2,
391
+ utf8ToBytes2 as utf8ToBytes,
392
+ inRange,
393
+ aInRange,
394
+ bitLen,
395
+ bitMask,
396
+ createHmacDrbg,
397
+ validateObject,
398
+ memoized
399
+ };
400
+ /*! Bundled license information:
401
+
402
+ @noble/hashes/esm/utils.js:
403
+ (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
404
+
405
+ @noble/curves/esm/abstract/utils.js:
406
+ (*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
407
+ */
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __commonJS = (cb, mod) => function __require2() {
14
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
+ };
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+
37
+ export {
38
+ __require,
39
+ __commonJS,
40
+ __export,
41
+ __toESM
42
+ };
package/index.d.ts CHANGED
@@ -151,6 +151,7 @@ declare function normalizeMessageStatus(status: unknown): MessageStatus;
151
151
  declare function normalizeProxyUrl(value: unknown): string | null;
152
152
  declare function messageTypeFromEnvelope(payload: MessageEnvelope$1 | null): string | null;
153
153
  declare function extractReferenceHashes(details: unknown): string[];
154
+ declare function extractInsufficientBalanceMessage(details: unknown): string | null;
154
155
  declare function describeRejectedDeployment(payload: MessageEnvelope$1, references: MessageReference[], rootfsRef?: string): string;
155
156
  declare function extractProxyUrl(item: CrnExecutionV2Payload, networking: CrnExecutionV2Payload['networking']): string | null;
156
157
  declare function normalizeExecution(item: CrnExecutionV1Payload | CrnExecutionV2Payload, crnUrl: string): InstanceExecution;
@@ -586,6 +587,12 @@ declare function configureUcGoPeer(args: {
586
587
  quicPort?: number | null;
587
588
  webrtcPort?: number | null;
588
589
  proxyUrl?: string | null;
590
+ bootstrapPublisherPrivateKey?: string | null;
591
+ bootstrapPublisherLibp2pIdentityBase64?: string | null;
592
+ bootstrapOwnerPrivateKey?: string | null;
593
+ bootstrapOwnerAuthorizationBase64?: string | null;
594
+ bootstrapRegistrationId?: string | null;
595
+ noStart?: boolean;
589
596
  fetch: FetchLike;
590
597
  timeoutMs?: number;
591
598
  }): Promise<unknown>;
@@ -600,6 +607,12 @@ declare function configureOrbitdbRelaySetup(args: {
600
607
  webrtcPort?: number | null;
601
608
  quicPort?: number | null;
602
609
  proxyUrl?: string | null;
610
+ bootstrapPublisherPrivateKey?: string | null;
611
+ bootstrapPublisherLibp2pIdentityHex?: string | null;
612
+ bootstrapOwnerPrivateKey?: string | null;
613
+ bootstrapOwnerAuthorizationBase64?: string | null;
614
+ bootstrapRegistrationId?: string | null;
615
+ noStart?: boolean;
603
616
  fetch: FetchLike;
604
617
  timeoutMs?: number;
605
618
  }): Promise<unknown>;
@@ -629,6 +642,38 @@ declare function verifyUcGoPeerReachability(args: {
629
642
  checks: Record<string, Record<string, unknown>>;
630
643
  }>;
631
644
 
645
+ interface RelayBootstrapAuthorizationPayload {
646
+ ownerAddress: string;
647
+ publisherAddress: string;
648
+ peerId: string;
649
+ registrationId?: string;
650
+ profile?: string;
651
+ version?: string;
652
+ instanceItemHash?: string;
653
+ issuedAt: number;
654
+ expiresAt?: number;
655
+ }
656
+ interface RelayBootstrapAuthorizationRecord {
657
+ scheme: string;
658
+ payload: RelayBootstrapAuthorizationPayload;
659
+ signature: string;
660
+ }
661
+ interface RelayBootstrapProofPayload {
662
+ peerId: string;
663
+ multiaddrs: string[];
664
+ browserMultiaddrs?: string[];
665
+ registrationId?: string;
666
+ profile?: string;
667
+ version?: string;
668
+ updatedAt: number;
669
+ }
670
+ interface RelayBootstrapProofRecord {
671
+ scheme: string;
672
+ payload: RelayBootstrapProofPayload;
673
+ signature: string;
674
+ }
675
+ type RelayBootstrapProofSigner = (address: string, payload: string) => Promise<string>;
676
+
632
677
  interface RelayBootstrapPublicationResult {
633
678
  status: "published" | "skipped";
634
679
  reason?: string;
@@ -638,6 +683,8 @@ interface RelayBootstrapPublicationResult {
638
683
  httpStatus?: number;
639
684
  publishedMultiaddrs?: string[];
640
685
  publishedBrowserMultiaddrs?: string[];
686
+ forgottenHashes?: string[];
687
+ forgetResult?: Awaited<ReturnType<typeof forgetAlephMessages>>;
641
688
  }
642
689
  declare function publishRelayBootstrapRegistration(args: {
643
690
  sender: string;
@@ -647,14 +694,26 @@ declare function publishRelayBootstrapRegistration(args: {
647
694
  peerId: string;
648
695
  multiaddrs: string[];
649
696
  browserMultiaddrs?: string[];
697
+ registrationId?: string;
650
698
  apiHost?: string;
651
699
  channel?: string;
652
700
  ref?: string;
653
701
  postType?: string;
654
702
  profile?: string;
655
703
  version?: string;
704
+ ownerAddress?: string;
705
+ publisherAddress?: string;
706
+ ownerSigner?: RelayBootstrapProofSigner;
707
+ publisherSigner?: RelayBootstrapProofSigner;
708
+ ownerAuthorization?: RelayBootstrapAuthorizationRecord;
709
+ relayProof?: RelayBootstrapProofRecord;
710
+ authorizationIssuedAt?: number;
711
+ authorizationExpiresAt?: number;
712
+ instanceItemHash?: string;
713
+ forgetPrevious?: boolean;
714
+ forgetPreviousReason?: string;
656
715
  sync?: boolean;
657
716
  now?: number;
658
717
  }): Promise<RelayBootstrapPublicationResult>;
659
718
 
660
- export { type CrnCapacitySpec, DEFAULT_ALEPH_API_HOST, DEFAULT_ALEPH_CHANNEL, DEFAULT_COUNTRY_LOOKUP_BASE_URL, DEFAULT_CRN_LIST_URL, DEFAULT_DNS_RESOLVE_URL, DEFAULT_INSTANCE_PORT_FORWARDS, DEFAULT_IPFS_GATEWAY_BASE_URL, DEFAULT_SCHEDULER_ALLOCATION_URL, DEFAULT_TWO_N_SIX_HASH_URL, type FetchLike, type FetchLikeResponse, type HttpProbeResult, ITEM_HASH_RE, type JsonFetchLike, type JsonFetchLikeResponse, type PaymentQuote, type RelayBootstrapPublicationResult, type RetentionRecord, SSH_PUBLIC_KEY_PATTERN, SUCCESSFUL_DEPLOYMENTS_AGGREGATE_KEY, type TcpProbeResult, type TierSpec, broadcastAlephMessage, buildPaymentQuote, cleanupFailedDeployment, configureOrbitdbRelaySetup, configureUcGoPeer, createDeploymentIntent, createInstanceContent, createPortForwardAggregateContent, createReleaseMetadata, createUnsignedAggregateMessage, createUnsignedForgetMessage, createUnsignedInstanceMessage, deployInstance, describeRejectedDeployment, describeRuntimeAvailability, enrichCrnsWithGeo, ensureInstancePortForwards, extractProxyUrl, extractReferenceHashes, fetch2n6WebAccessUrl, fetchAggregateKey, fetchCrnExecutionMap, fetchCrns, fetchMessageEnvelope, fetchPortForwardAggregate, fetchSchedulerAllocation, fetchUcGoPeerMetadata, fetchVmRuntime, filterDeployableCrns, findCrnByHash, forgetAlephMessages, inspectDeploymentResult, inspectMessageResult, isInvalidMessageFormatResponse, isRetryableBroadcastFailure, isValidSshPublicKey, listGeocodedCrns, mergePortFlagMaps, mergeRequiredPortForwards, messageTypeFromEnvelope, normalizeBroadcastStatus, normalizeExecution, normalizeExistingPortForwardEntry, normalizeMessageStatus, normalizeProxyUrl, normalizeSshPublicKey, notifyCrnAllocation, notifyCrnAllocationWithRetry, portForwardLabel, postBroadcastPayload, probeRootfsGateway, publishAggregateKey, publishRelayBootstrapRegistration, quoteRequiredBudgetUnits, rankCandidateCrns, requestedPortFlags, requiredInstancePortForwards, resolveRootfsReference, retainSuccessfulDeployments, selectPreferredCrn, selectedTier, signAlephMessage, signaturePayload, tierSpec, validateRootfsManifest, verifyRootfsExists, verifyUcGoPeerReachability, waitForDeploymentResult, waitForSetupEndpoint, waitForVmRuntime };
719
+ export { type CrnCapacitySpec, DEFAULT_ALEPH_API_HOST, DEFAULT_ALEPH_CHANNEL, DEFAULT_COUNTRY_LOOKUP_BASE_URL, DEFAULT_CRN_LIST_URL, DEFAULT_DNS_RESOLVE_URL, DEFAULT_INSTANCE_PORT_FORWARDS, DEFAULT_IPFS_GATEWAY_BASE_URL, DEFAULT_SCHEDULER_ALLOCATION_URL, DEFAULT_TWO_N_SIX_HASH_URL, type FetchLike, type FetchLikeResponse, type HttpProbeResult, ITEM_HASH_RE, type JsonFetchLike, type JsonFetchLikeResponse, type PaymentQuote, type RelayBootstrapPublicationResult, type RetentionRecord, SSH_PUBLIC_KEY_PATTERN, SUCCESSFUL_DEPLOYMENTS_AGGREGATE_KEY, type TcpProbeResult, type TierSpec, broadcastAlephMessage, buildPaymentQuote, cleanupFailedDeployment, configureOrbitdbRelaySetup, configureUcGoPeer, createDeploymentIntent, createInstanceContent, createPortForwardAggregateContent, createReleaseMetadata, createUnsignedAggregateMessage, createUnsignedForgetMessage, createUnsignedInstanceMessage, deployInstance, describeRejectedDeployment, describeRuntimeAvailability, enrichCrnsWithGeo, ensureInstancePortForwards, extractInsufficientBalanceMessage, extractProxyUrl, extractReferenceHashes, fetch2n6WebAccessUrl, fetchAggregateKey, fetchCrnExecutionMap, fetchCrns, fetchMessageEnvelope, fetchPortForwardAggregate, fetchSchedulerAllocation, fetchUcGoPeerMetadata, fetchVmRuntime, filterDeployableCrns, findCrnByHash, forgetAlephMessages, inspectDeploymentResult, inspectMessageResult, isInvalidMessageFormatResponse, isRetryableBroadcastFailure, isValidSshPublicKey, listGeocodedCrns, mergePortFlagMaps, mergeRequiredPortForwards, messageTypeFromEnvelope, normalizeBroadcastStatus, normalizeExecution, normalizeExistingPortForwardEntry, normalizeMessageStatus, normalizeProxyUrl, normalizeSshPublicKey, notifyCrnAllocation, notifyCrnAllocationWithRetry, portForwardLabel, postBroadcastPayload, probeRootfsGateway, publishAggregateKey, publishRelayBootstrapRegistration, quoteRequiredBudgetUnits, rankCandidateCrns, requestedPortFlags, requiredInstancePortForwards, resolveRootfsReference, retainSuccessfulDeployments, selectPreferredCrn, selectedTier, signAlephMessage, signaturePayload, tierSpec, validateRootfsManifest, verifyRootfsExists, verifyUcGoPeerReachability, waitForDeploymentResult, waitForSetupEndpoint, waitForVmRuntime };