@seed-hypermedia/client 0.0.70 → 0.0.71

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.
@@ -4,13 +4,13 @@ import {
4
4
  documentContainsLinkToChild,
5
5
  documentHasSelfQuery,
6
6
  shouldAutoLinkParent
7
- } from "./chunk-EU36RFR3.mjs";
7
+ } from "./chunk-X6OJRM5W.mjs";
8
8
  import "./chunk-JT57MV7Y.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-HBIVZA6C.mjs";
10
+ import "./chunk-AOB3PMFZ.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
- import "./chunk-SQEUO7FO.mjs";
13
+ import "./chunk-W3FLBRBH.mjs";
14
14
  import "./chunk-7P6ASYW6.mjs";
15
15
  export {
16
16
  autoLinkChildToParent,
@@ -7,8 +7,8 @@ import {
7
7
  emitFrontmatter,
8
8
  parseDraftFilename,
9
9
  slugify
10
- } from "./chunk-T5BTAJPW.mjs";
11
- import "./chunk-SQEUO7FO.mjs";
10
+ } from "./chunk-ALT5YCCW.mjs";
11
+ import "./chunk-W3FLBRBH.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
14
14
  blocksToMarkdown,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createCapability,
3
3
  resolveCapability
4
- } from "./chunk-BUPMCRR4.mjs";
4
+ } from "./chunk-RL3OEUFZ.mjs";
5
5
  import "./chunk-LVAHHQIK.mjs";
6
6
  import "./chunk-IT5LLTMP.mjs";
7
7
  import "./chunk-DR3HJ6BV.mjs";
8
- import "./chunk-SQEUO7FO.mjs";
8
+ import "./chunk-W3FLBRBH.mjs";
9
9
  import "./chunk-3TPCJCVO.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
11
11
  export {
@@ -6,7 +6,7 @@ import {
6
6
  HMBlockSchema,
7
7
  codePointLength,
8
8
  toNumber
9
- } from "./chunk-SQEUO7FO.mjs";
9
+ } from "./chunk-W3FLBRBH.mjs";
10
10
 
11
11
  // src/editorblock-to-hmblock.ts
12
12
  function toHMBlockType(editorBlockType) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpackHmId
3
- } from "./chunk-SQEUO7FO.mjs";
3
+ } from "./chunk-W3FLBRBH.mjs";
4
4
 
5
5
  // src/blocks-to-markdown.ts
6
6
  var FM_STRING_KEYS = [
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  unpackHmId
3
- } from "./chunk-SQEUO7FO.mjs";
3
+ } from "./chunk-W3FLBRBH.mjs";
4
4
 
5
5
  // src/document-state.ts
6
6
  async function resolveDocumentState(client, targetId) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-S2PVJK2P.mjs";
3
+ } from "./chunk-H34UYMNW.mjs";
4
4
  import {
5
5
  embeddedPdfToBlocks
6
6
  } from "./chunk-52P3E6H6.mjs";
@@ -15,7 +15,7 @@ import {
15
15
  HMActionSchema,
16
16
  HMRequestSchema,
17
17
  packHmId
18
- } from "./chunk-SQEUO7FO.mjs";
18
+ } from "./chunk-W3FLBRBH.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  codePointLength
3
- } from "./chunk-SQEUO7FO.mjs";
3
+ } from "./chunk-W3FLBRBH.mjs";
4
4
 
5
5
  // src/tei-to-blocks.ts
6
6
  function generateBlockId() {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-SQEUO7FO.mjs";
12
+ } from "./chunk-W3FLBRBH.mjs";
13
13
 
14
14
  // src/comment.ts
15
15
  import { decode as cborDecode, encode as cborEncode } from "@ipld/dag-cbor";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSurrogate
3
- } from "./chunk-SQEUO7FO.mjs";
3
+ } from "./chunk-W3FLBRBH.mjs";
4
4
 
5
5
  // src/hmblock-to-editorblock.ts
6
6
  function toEditorBlockType(hmBlockType) {
@@ -2,7 +2,7 @@ import {
2
2
  entityQueryPathToHmIdPath,
3
3
  parseFragment,
4
4
  unpackHmId
5
- } from "./chunk-SQEUO7FO.mjs";
5
+ } from "./chunk-W3FLBRBH.mjs";
6
6
 
7
7
  // src/hm-resolver.ts
8
8
  async function resolveHypermediaUrl(url, opts) {
@@ -32,14 +32,14 @@ async function resolveHypermediaUrl(url, opts) {
32
32
  }
33
33
  if ((opts == null ? void 0 : opts.domainResolver) && parsedUrl) {
34
34
  try {
35
- const uid = await opts.domainResolver(parsedUrl.hostname);
36
- if (uid) {
37
- return buildResolvedUrlFromDomainUid(parsedUrl, uid, {
38
- latest,
39
- blockRef,
40
- blockRange,
41
- panel
42
- });
35
+ const resolved = await resolveFromDomainResolver(opts.domainResolver, url, parsedUrl, {
36
+ latest,
37
+ blockRef,
38
+ blockRange,
39
+ panel
40
+ });
41
+ if (resolved) {
42
+ return resolved;
43
43
  }
44
44
  } catch {
45
45
  }
@@ -52,14 +52,14 @@ async function resolveHypermediaUrl(url, opts) {
52
52
  } catch (error) {
53
53
  if ((opts == null ? void 0 : opts.domainResolver) && parsedUrl) {
54
54
  try {
55
- const uid = await opts.domainResolver(parsedUrl.hostname);
56
- if (uid) {
57
- return buildResolvedUrlFromDomainUid(parsedUrl, uid, {
58
- latest,
59
- blockRef,
60
- blockRange,
61
- panel
62
- });
55
+ const resolved = await resolveFromDomainResolver(opts.domainResolver, url, parsedUrl, {
56
+ latest,
57
+ blockRef,
58
+ blockRange,
59
+ panel
60
+ });
61
+ if (resolved) {
62
+ return resolved;
63
63
  }
64
64
  } catch {
65
65
  }
@@ -123,6 +123,26 @@ async function resolveId(input, opts) {
123
123
  }
124
124
  throw new Error(`Invalid Hypermedia ID: ${input}`);
125
125
  }
126
+ async function resolveFromDomainResolver(domainResolver, url, parsedUrl, opts) {
127
+ const domainResolution = await domainResolver(parsedUrl.hostname);
128
+ const uid = typeof domainResolution === "string" ? domainResolution : (domainResolution == null ? void 0 : domainResolution.registeredAccountUid) ?? null;
129
+ if (!uid) return null;
130
+ const isGateway = typeof domainResolution === "object" && !!(domainResolution == null ? void 0 : domainResolution.isGateway);
131
+ const gatewayHmId = isGateway && parsedUrl.pathname.startsWith("/hm/") ? unpackHmId(url) : null;
132
+ if (gatewayHmId) {
133
+ return {
134
+ id: gatewayHmId.id,
135
+ hmId: gatewayHmId,
136
+ version: gatewayHmId.version,
137
+ title: null,
138
+ target: null,
139
+ authors: null,
140
+ type: null,
141
+ panel: opts.panel
142
+ };
143
+ }
144
+ return buildResolvedUrlFromDomainUid(parsedUrl, uid, opts);
145
+ }
126
146
  function buildResolvedUrlFromDomainUid(parsedUrl, uid, {
127
147
  latest,
128
148
  blockRef,
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-SQEUO7FO.mjs";
10
+ } from "./chunk-W3FLBRBH.mjs";
11
11
 
12
12
  // src/capability.ts
13
13
  import { base58btc } from "multiformats/bases/base58";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  resolveId
3
- } from "./chunk-YNVFRCUH.mjs";
3
+ } from "./chunk-QYA75XPV.mjs";
4
4
  import {
5
5
  createSeedClient
6
- } from "./chunk-3KESF5XJ.mjs";
6
+ } from "./chunk-FUSG27NF.mjs";
7
7
  import {
8
8
  unpackHmId
9
- } from "./chunk-SQEUO7FO.mjs";
9
+ } from "./chunk-W3FLBRBH.mjs";
10
10
 
11
11
  // src/resource-read.ts
12
12
  async function resolveIdWithClient(rawId, options = {}) {
@@ -1135,6 +1135,7 @@ var HMDomainInfoSchema = z.object({
1135
1135
  lastSuccess: z.date().nullable(),
1136
1136
  registeredAccountUid: z.string().nullable(),
1137
1137
  peerId: z.string().nullable(),
1138
+ isGateway: z.boolean(),
1138
1139
  lastError: z.string().nullable()
1139
1140
  });
1140
1141
  var HMGetDomainInputSchema = z.object({
@@ -7,12 +7,12 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-HBIVZA6C.mjs";
10
+ } from "./chunk-AOB3PMFZ.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
14
14
  unpackHmId
15
- } from "./chunk-SQEUO7FO.mjs";
15
+ } from "./chunk-W3FLBRBH.mjs";
16
16
 
17
17
  // src/auto-link.ts
18
18
  import { CID } from "multiformats/cid";
package/dist/client.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createSeedClient,
3
3
  deserializeQueryString
4
- } from "./chunk-3KESF5XJ.mjs";
4
+ } from "./chunk-FUSG27NF.mjs";
5
5
  import "./chunk-CBELM7KX.mjs";
6
6
  import "./chunk-JT57MV7Y.mjs";
7
7
  import "./chunk-PJ2RFT5A.mjs";
8
8
  import "./chunk-LVAHHQIK.mjs";
9
9
  import "./chunk-DR3HJ6BV.mjs";
10
- import "./chunk-SQEUO7FO.mjs";
10
+ import "./chunk-W3FLBRBH.mjs";
11
11
  import "./chunk-7P6ASYW6.mjs";
12
12
  export {
13
13
  createSeedClient,
package/dist/comment.mjs CHANGED
@@ -4,11 +4,11 @@ import {
4
4
  deleteComment,
5
5
  trimTrailingEmptyBlocks,
6
6
  updateComment
7
- } from "./chunk-NYWCMQTH.mjs";
7
+ } from "./chunk-KY6WRGXY.mjs";
8
8
  import "./chunk-N3P7S5YZ.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-SQEUO7FO.mjs";
11
+ import "./chunk-W3FLBRBH.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
14
14
  commentRecordIdFromBlob,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveDocumentState
3
- } from "./chunk-HBIVZA6C.mjs";
4
- import "./chunk-SQEUO7FO.mjs";
3
+ } from "./chunk-AOB3PMFZ.mjs";
4
+ import "./chunk-W3FLBRBH.mjs";
5
5
  import "./chunk-7P6ASYW6.mjs";
6
6
  export {
7
7
  resolveDocumentState
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  editorBlockToHMBlock,
3
3
  editorBlocksToHMBlockNodes
4
- } from "./chunk-NPG76WUS.mjs";
4
+ } from "./chunk-4L2LE3JW.mjs";
5
5
  import "./chunk-N3P7S5YZ.mjs";
6
- import "./chunk-SQEUO7FO.mjs";
6
+ import "./chunk-W3FLBRBH.mjs";
7
7
  import "./chunk-7P6ASYW6.mjs";
8
8
  export {
9
9
  editorBlockToHMBlock,
@@ -1,9 +1,13 @@
1
1
  import { type UnpackedHypermediaId } from './hm-types';
2
2
  /**
3
- * A domain resolver function that maps a hostname to an account UID
4
- * using the daemon's domain store. Returns the UID if cached, or null.
3
+ * Domain metadata from the daemon's domain store. The string form is kept
4
+ * for older/simple resolvers that only return an account UID.
5
5
  */
6
- export type DomainResolverFn = (hostname: string) => Promise<string | null>;
6
+ export type DomainResolution = string | {
7
+ registeredAccountUid: string;
8
+ isGateway?: boolean;
9
+ } | null;
10
+ export type DomainResolverFn = (hostname: string) => Promise<DomainResolution>;
7
11
  /**
8
12
  * Callback fired when a background domain check detects that a domain
9
13
  * now points to a different account UID than what was cached.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  resolveHypermediaUrl,
3
3
  resolveId
4
- } from "./chunk-YNVFRCUH.mjs";
5
- import "./chunk-SQEUO7FO.mjs";
4
+ } from "./chunk-QYA75XPV.mjs";
5
+ import "./chunk-W3FLBRBH.mjs";
6
6
  import "./chunk-7P6ASYW6.mjs";
7
7
  export {
8
8
  resolveHypermediaUrl,
@@ -36388,11 +36388,13 @@ export declare const HMDomainInfoSchema: z.ZodObject<{
36388
36388
  lastSuccess: z.ZodNullable<z.ZodDate>;
36389
36389
  registeredAccountUid: z.ZodNullable<z.ZodString>;
36390
36390
  peerId: z.ZodNullable<z.ZodString>;
36391
+ isGateway: z.ZodBoolean;
36391
36392
  lastError: z.ZodNullable<z.ZodString>;
36392
36393
  }, "strip", z.ZodTypeAny, {
36393
36394
  status: string;
36394
36395
  peerId: string | null;
36395
36396
  registeredAccountUid: string | null;
36397
+ isGateway: boolean;
36396
36398
  domain: string;
36397
36399
  lastCheck: Date | null;
36398
36400
  lastSuccess: Date | null;
@@ -36401,6 +36403,7 @@ export declare const HMDomainInfoSchema: z.ZodObject<{
36401
36403
  status: string;
36402
36404
  peerId: string | null;
36403
36405
  registeredAccountUid: string | null;
36406
+ isGateway: boolean;
36404
36407
  domain: string;
36405
36408
  lastCheck: Date | null;
36406
36409
  lastSuccess: Date | null;
@@ -36439,11 +36442,13 @@ export declare const HMGetDomainRequestSchema: z.ZodObject<{
36439
36442
  lastSuccess: z.ZodNullable<z.ZodDate>;
36440
36443
  registeredAccountUid: z.ZodNullable<z.ZodString>;
36441
36444
  peerId: z.ZodNullable<z.ZodString>;
36445
+ isGateway: z.ZodBoolean;
36442
36446
  lastError: z.ZodNullable<z.ZodString>;
36443
36447
  }, "strip", z.ZodTypeAny, {
36444
36448
  status: string;
36445
36449
  peerId: string | null;
36446
36450
  registeredAccountUid: string | null;
36451
+ isGateway: boolean;
36447
36452
  domain: string;
36448
36453
  lastCheck: Date | null;
36449
36454
  lastSuccess: Date | null;
@@ -36452,6 +36457,7 @@ export declare const HMGetDomainRequestSchema: z.ZodObject<{
36452
36457
  status: string;
36453
36458
  peerId: string | null;
36454
36459
  registeredAccountUid: string | null;
36460
+ isGateway: boolean;
36455
36461
  domain: string;
36456
36462
  lastCheck: Date | null;
36457
36463
  lastSuccess: Date | null;
@@ -36467,6 +36473,7 @@ export declare const HMGetDomainRequestSchema: z.ZodObject<{
36467
36473
  status: string;
36468
36474
  peerId: string | null;
36469
36475
  registeredAccountUid: string | null;
36476
+ isGateway: boolean;
36470
36477
  domain: string;
36471
36478
  lastCheck: Date | null;
36472
36479
  lastSuccess: Date | null;
@@ -36482,6 +36489,7 @@ export declare const HMGetDomainRequestSchema: z.ZodObject<{
36482
36489
  status: string;
36483
36490
  peerId: string | null;
36484
36491
  registeredAccountUid: string | null;
36492
+ isGateway: boolean;
36485
36493
  domain: string;
36486
36494
  lastCheck: Date | null;
36487
36495
  lastSuccess: Date | null;
@@ -36499,11 +36507,13 @@ export declare const HMListDomainsOutputSchema: z.ZodObject<{
36499
36507
  lastSuccess: z.ZodNullable<z.ZodDate>;
36500
36508
  registeredAccountUid: z.ZodNullable<z.ZodString>;
36501
36509
  peerId: z.ZodNullable<z.ZodString>;
36510
+ isGateway: z.ZodBoolean;
36502
36511
  lastError: z.ZodNullable<z.ZodString>;
36503
36512
  }, "strip", z.ZodTypeAny, {
36504
36513
  status: string;
36505
36514
  peerId: string | null;
36506
36515
  registeredAccountUid: string | null;
36516
+ isGateway: boolean;
36507
36517
  domain: string;
36508
36518
  lastCheck: Date | null;
36509
36519
  lastSuccess: Date | null;
@@ -36512,6 +36522,7 @@ export declare const HMListDomainsOutputSchema: z.ZodObject<{
36512
36522
  status: string;
36513
36523
  peerId: string | null;
36514
36524
  registeredAccountUid: string | null;
36525
+ isGateway: boolean;
36515
36526
  domain: string;
36516
36527
  lastCheck: Date | null;
36517
36528
  lastSuccess: Date | null;
@@ -36522,6 +36533,7 @@ export declare const HMListDomainsOutputSchema: z.ZodObject<{
36522
36533
  status: string;
36523
36534
  peerId: string | null;
36524
36535
  registeredAccountUid: string | null;
36536
+ isGateway: boolean;
36525
36537
  domain: string;
36526
36538
  lastCheck: Date | null;
36527
36539
  lastSuccess: Date | null;
@@ -36532,6 +36544,7 @@ export declare const HMListDomainsOutputSchema: z.ZodObject<{
36532
36544
  status: string;
36533
36545
  peerId: string | null;
36534
36546
  registeredAccountUid: string | null;
36547
+ isGateway: boolean;
36535
36548
  domain: string;
36536
36549
  lastCheck: Date | null;
36537
36550
  lastSuccess: Date | null;
@@ -36550,11 +36563,13 @@ export declare const HMListDomainsRequestSchema: z.ZodObject<{
36550
36563
  lastSuccess: z.ZodNullable<z.ZodDate>;
36551
36564
  registeredAccountUid: z.ZodNullable<z.ZodString>;
36552
36565
  peerId: z.ZodNullable<z.ZodString>;
36566
+ isGateway: z.ZodBoolean;
36553
36567
  lastError: z.ZodNullable<z.ZodString>;
36554
36568
  }, "strip", z.ZodTypeAny, {
36555
36569
  status: string;
36556
36570
  peerId: string | null;
36557
36571
  registeredAccountUid: string | null;
36572
+ isGateway: boolean;
36558
36573
  domain: string;
36559
36574
  lastCheck: Date | null;
36560
36575
  lastSuccess: Date | null;
@@ -36563,6 +36578,7 @@ export declare const HMListDomainsRequestSchema: z.ZodObject<{
36563
36578
  status: string;
36564
36579
  peerId: string | null;
36565
36580
  registeredAccountUid: string | null;
36581
+ isGateway: boolean;
36566
36582
  domain: string;
36567
36583
  lastCheck: Date | null;
36568
36584
  lastSuccess: Date | null;
@@ -36573,6 +36589,7 @@ export declare const HMListDomainsRequestSchema: z.ZodObject<{
36573
36589
  status: string;
36574
36590
  peerId: string | null;
36575
36591
  registeredAccountUid: string | null;
36592
+ isGateway: boolean;
36576
36593
  domain: string;
36577
36594
  lastCheck: Date | null;
36578
36595
  lastSuccess: Date | null;
@@ -36583,6 +36600,7 @@ export declare const HMListDomainsRequestSchema: z.ZodObject<{
36583
36600
  status: string;
36584
36601
  peerId: string | null;
36585
36602
  registeredAccountUid: string | null;
36603
+ isGateway: boolean;
36586
36604
  domain: string;
36587
36605
  lastCheck: Date | null;
36588
36606
  lastSuccess: Date | null;
@@ -36597,6 +36615,7 @@ export declare const HMListDomainsRequestSchema: z.ZodObject<{
36597
36615
  status: string;
36598
36616
  peerId: string | null;
36599
36617
  registeredAccountUid: string | null;
36618
+ isGateway: boolean;
36600
36619
  domain: string;
36601
36620
  lastCheck: Date | null;
36602
36621
  lastSuccess: Date | null;
@@ -36611,6 +36630,7 @@ export declare const HMListDomainsRequestSchema: z.ZodObject<{
36611
36630
  status: string;
36612
36631
  peerId: string | null;
36613
36632
  registeredAccountUid: string | null;
36633
+ isGateway: boolean;
36614
36634
  domain: string;
36615
36635
  lastCheck: Date | null;
36616
36636
  lastSuccess: Date | null;
@@ -49288,11 +49308,13 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49288
49308
  lastSuccess: z.ZodNullable<z.ZodDate>;
49289
49309
  registeredAccountUid: z.ZodNullable<z.ZodString>;
49290
49310
  peerId: z.ZodNullable<z.ZodString>;
49311
+ isGateway: z.ZodBoolean;
49291
49312
  lastError: z.ZodNullable<z.ZodString>;
49292
49313
  }, "strip", z.ZodTypeAny, {
49293
49314
  status: string;
49294
49315
  peerId: string | null;
49295
49316
  registeredAccountUid: string | null;
49317
+ isGateway: boolean;
49296
49318
  domain: string;
49297
49319
  lastCheck: Date | null;
49298
49320
  lastSuccess: Date | null;
@@ -49301,6 +49323,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49301
49323
  status: string;
49302
49324
  peerId: string | null;
49303
49325
  registeredAccountUid: string | null;
49326
+ isGateway: boolean;
49304
49327
  domain: string;
49305
49328
  lastCheck: Date | null;
49306
49329
  lastSuccess: Date | null;
@@ -49316,6 +49339,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49316
49339
  status: string;
49317
49340
  peerId: string | null;
49318
49341
  registeredAccountUid: string | null;
49342
+ isGateway: boolean;
49319
49343
  domain: string;
49320
49344
  lastCheck: Date | null;
49321
49345
  lastSuccess: Date | null;
@@ -49331,6 +49355,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49331
49355
  status: string;
49332
49356
  peerId: string | null;
49333
49357
  registeredAccountUid: string | null;
49358
+ isGateway: boolean;
49334
49359
  domain: string;
49335
49360
  lastCheck: Date | null;
49336
49361
  lastSuccess: Date | null;
@@ -49347,11 +49372,13 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49347
49372
  lastSuccess: z.ZodNullable<z.ZodDate>;
49348
49373
  registeredAccountUid: z.ZodNullable<z.ZodString>;
49349
49374
  peerId: z.ZodNullable<z.ZodString>;
49375
+ isGateway: z.ZodBoolean;
49350
49376
  lastError: z.ZodNullable<z.ZodString>;
49351
49377
  }, "strip", z.ZodTypeAny, {
49352
49378
  status: string;
49353
49379
  peerId: string | null;
49354
49380
  registeredAccountUid: string | null;
49381
+ isGateway: boolean;
49355
49382
  domain: string;
49356
49383
  lastCheck: Date | null;
49357
49384
  lastSuccess: Date | null;
@@ -49360,6 +49387,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49360
49387
  status: string;
49361
49388
  peerId: string | null;
49362
49389
  registeredAccountUid: string | null;
49390
+ isGateway: boolean;
49363
49391
  domain: string;
49364
49392
  lastCheck: Date | null;
49365
49393
  lastSuccess: Date | null;
@@ -49370,6 +49398,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49370
49398
  status: string;
49371
49399
  peerId: string | null;
49372
49400
  registeredAccountUid: string | null;
49401
+ isGateway: boolean;
49373
49402
  domain: string;
49374
49403
  lastCheck: Date | null;
49375
49404
  lastSuccess: Date | null;
@@ -49380,6 +49409,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49380
49409
  status: string;
49381
49410
  peerId: string | null;
49382
49411
  registeredAccountUid: string | null;
49412
+ isGateway: boolean;
49383
49413
  domain: string;
49384
49414
  lastCheck: Date | null;
49385
49415
  lastSuccess: Date | null;
@@ -49394,6 +49424,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49394
49424
  status: string;
49395
49425
  peerId: string | null;
49396
49426
  registeredAccountUid: string | null;
49427
+ isGateway: boolean;
49397
49428
  domain: string;
49398
49429
  lastCheck: Date | null;
49399
49430
  lastSuccess: Date | null;
@@ -49408,6 +49439,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
49408
49439
  status: string;
49409
49440
  peerId: string | null;
49410
49441
  registeredAccountUid: string | null;
49442
+ isGateway: boolean;
49411
49443
  domain: string;
49412
49444
  lastCheck: Date | null;
49413
49445
  lastSuccess: Date | null;
@@ -62821,11 +62853,13 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62821
62853
  lastSuccess: z.ZodNullable<z.ZodDate>;
62822
62854
  registeredAccountUid: z.ZodNullable<z.ZodString>;
62823
62855
  peerId: z.ZodNullable<z.ZodString>;
62856
+ isGateway: z.ZodBoolean;
62824
62857
  lastError: z.ZodNullable<z.ZodString>;
62825
62858
  }, "strip", z.ZodTypeAny, {
62826
62859
  status: string;
62827
62860
  peerId: string | null;
62828
62861
  registeredAccountUid: string | null;
62862
+ isGateway: boolean;
62829
62863
  domain: string;
62830
62864
  lastCheck: Date | null;
62831
62865
  lastSuccess: Date | null;
@@ -62834,6 +62868,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62834
62868
  status: string;
62835
62869
  peerId: string | null;
62836
62870
  registeredAccountUid: string | null;
62871
+ isGateway: boolean;
62837
62872
  domain: string;
62838
62873
  lastCheck: Date | null;
62839
62874
  lastSuccess: Date | null;
@@ -62849,6 +62884,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62849
62884
  status: string;
62850
62885
  peerId: string | null;
62851
62886
  registeredAccountUid: string | null;
62887
+ isGateway: boolean;
62852
62888
  domain: string;
62853
62889
  lastCheck: Date | null;
62854
62890
  lastSuccess: Date | null;
@@ -62864,6 +62900,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62864
62900
  status: string;
62865
62901
  peerId: string | null;
62866
62902
  registeredAccountUid: string | null;
62903
+ isGateway: boolean;
62867
62904
  domain: string;
62868
62905
  lastCheck: Date | null;
62869
62906
  lastSuccess: Date | null;
@@ -62880,11 +62917,13 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62880
62917
  lastSuccess: z.ZodNullable<z.ZodDate>;
62881
62918
  registeredAccountUid: z.ZodNullable<z.ZodString>;
62882
62919
  peerId: z.ZodNullable<z.ZodString>;
62920
+ isGateway: z.ZodBoolean;
62883
62921
  lastError: z.ZodNullable<z.ZodString>;
62884
62922
  }, "strip", z.ZodTypeAny, {
62885
62923
  status: string;
62886
62924
  peerId: string | null;
62887
62925
  registeredAccountUid: string | null;
62926
+ isGateway: boolean;
62888
62927
  domain: string;
62889
62928
  lastCheck: Date | null;
62890
62929
  lastSuccess: Date | null;
@@ -62893,6 +62932,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62893
62932
  status: string;
62894
62933
  peerId: string | null;
62895
62934
  registeredAccountUid: string | null;
62935
+ isGateway: boolean;
62896
62936
  domain: string;
62897
62937
  lastCheck: Date | null;
62898
62938
  lastSuccess: Date | null;
@@ -62903,6 +62943,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62903
62943
  status: string;
62904
62944
  peerId: string | null;
62905
62945
  registeredAccountUid: string | null;
62946
+ isGateway: boolean;
62906
62947
  domain: string;
62907
62948
  lastCheck: Date | null;
62908
62949
  lastSuccess: Date | null;
@@ -62913,6 +62954,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62913
62954
  status: string;
62914
62955
  peerId: string | null;
62915
62956
  registeredAccountUid: string | null;
62957
+ isGateway: boolean;
62916
62958
  domain: string;
62917
62959
  lastCheck: Date | null;
62918
62960
  lastSuccess: Date | null;
@@ -62927,6 +62969,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62927
62969
  status: string;
62928
62970
  peerId: string | null;
62929
62971
  registeredAccountUid: string | null;
62972
+ isGateway: boolean;
62930
62973
  domain: string;
62931
62974
  lastCheck: Date | null;
62932
62975
  lastSuccess: Date | null;
@@ -62941,6 +62984,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
62941
62984
  status: string;
62942
62985
  peerId: string | null;
62943
62986
  registeredAccountUid: string | null;
62987
+ isGateway: boolean;
62944
62988
  domain: string;
62945
62989
  lastCheck: Date | null;
62946
62990
  lastSuccess: Date | null;
package/dist/hm-types.mjs CHANGED
@@ -185,7 +185,7 @@ import {
185
185
  toNumber,
186
186
  unpackHmId,
187
187
  unpackedHmIdSchema
188
- } from "./chunk-SQEUO7FO.mjs";
188
+ } from "./chunk-W3FLBRBH.mjs";
189
189
  import "./chunk-7P6ASYW6.mjs";
190
190
  export {
191
191
  BUILTIN_METADATA_KEYS,
@@ -2,8 +2,8 @@ import {
2
2
  annotationContains,
3
3
  hmBlockToEditorBlock,
4
4
  hmBlocksToEditorContent
5
- } from "./chunk-KO4XH5L2.mjs";
6
- import "./chunk-SQEUO7FO.mjs";
5
+ } from "./chunk-NUIZU7KO.mjs";
6
+ import "./chunk-W3FLBRBH.mjs";
7
7
  import "./chunk-7P6ASYW6.mjs";
8
8
  export {
9
9
  annotationContains,
package/dist/index.mjs CHANGED
@@ -10,16 +10,16 @@ import {
10
10
  } from "./chunk-H7L4TI6X.mjs";
11
11
  import {
12
12
  pdfToBlocks
13
- } from "./chunk-LYECQKZE.mjs";
13
+ } from "./chunk-FNETXNBK.mjs";
14
14
  import {
15
15
  teiToBlocks
16
- } from "./chunk-S2PVJK2P.mjs";
16
+ } from "./chunk-H34UYMNW.mjs";
17
17
  import {
18
18
  embeddedPdfToBlocks
19
19
  } from "./chunk-52P3E6H6.mjs";
20
20
  import {
21
21
  resolveIdWithClient
22
- } from "./chunk-4Q3SAL5R.mjs";
22
+ } from "./chunk-TXVEL22U.mjs";
23
23
  import {
24
24
  fileToIpfsBlobs,
25
25
  filesToIpfsBlobs,
@@ -34,15 +34,15 @@ import {
34
34
  import {
35
35
  resolveHypermediaUrl,
36
36
  resolveId
37
- } from "./chunk-YNVFRCUH.mjs";
37
+ } from "./chunk-QYA75XPV.mjs";
38
38
  import {
39
39
  annotationContains,
40
40
  hmBlockToEditorBlock,
41
41
  hmBlocksToEditorContent
42
- } from "./chunk-KO4XH5L2.mjs";
42
+ } from "./chunk-NUIZU7KO.mjs";
43
43
  import {
44
44
  createSeedClient
45
- } from "./chunk-3KESF5XJ.mjs";
45
+ } from "./chunk-FUSG27NF.mjs";
46
46
  import {
47
47
  SeedClientError,
48
48
  SeedNetworkError,
@@ -54,7 +54,7 @@ import {
54
54
  deleteComment,
55
55
  trimTrailingEmptyBlocks,
56
56
  updateComment
57
- } from "./chunk-NYWCMQTH.mjs";
57
+ } from "./chunk-KY6WRGXY.mjs";
58
58
  import {
59
59
  contactRecordIdFromBlob,
60
60
  createContact,
@@ -64,7 +64,7 @@ import {
64
64
  import {
65
65
  editorBlockToHMBlock,
66
66
  editorBlocksToHMBlockNodes
67
- } from "./chunk-NPG76WUS.mjs";
67
+ } from "./chunk-4L2LE3JW.mjs";
68
68
  import {
69
69
  AnnotationSet,
70
70
  addSpanToAnnotation,
@@ -79,7 +79,7 @@ import {
79
79
  documentContainsLinkToChild,
80
80
  documentHasSelfQuery,
81
81
  shouldAutoLinkParent
82
- } from "./chunk-EU36RFR3.mjs";
82
+ } from "./chunk-X6OJRM5W.mjs";
83
83
  import {
84
84
  createChange,
85
85
  createChangeOps,
@@ -96,7 +96,7 @@ import {
96
96
  } from "./chunk-PJ2RFT5A.mjs";
97
97
  import {
98
98
  resolveDocumentState
99
- } from "./chunk-HBIVZA6C.mjs";
99
+ } from "./chunk-AOB3PMFZ.mjs";
100
100
  import "./chunk-2MD3FXKB.mjs";
101
101
  import {
102
102
  computeReplaceOps,
@@ -115,11 +115,11 @@ import {
115
115
  emitFrontmatter,
116
116
  parseDraftFilename,
117
117
  slugify
118
- } from "./chunk-T5BTAJPW.mjs";
118
+ } from "./chunk-ALT5YCCW.mjs";
119
119
  import {
120
120
  createCapability,
121
121
  resolveCapability
122
- } from "./chunk-BUPMCRR4.mjs";
122
+ } from "./chunk-RL3OEUFZ.mjs";
123
123
  import "./chunk-LVAHHQIK.mjs";
124
124
  import "./chunk-IT5LLTMP.mjs";
125
125
  import {
@@ -139,7 +139,7 @@ import {
139
139
  parseFragment,
140
140
  serializeBlockRange,
141
141
  unpackHmId
142
- } from "./chunk-SQEUO7FO.mjs";
142
+ } from "./chunk-W3FLBRBH.mjs";
143
143
  import "./chunk-3TPCJCVO.mjs";
144
144
  import "./chunk-7P6ASYW6.mjs";
145
145
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-LYECQKZE.mjs";
4
- import "./chunk-S2PVJK2P.mjs";
3
+ } from "./chunk-FNETXNBK.mjs";
4
+ import "./chunk-H34UYMNW.mjs";
5
5
  import "./chunk-52P3E6H6.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-SQEUO7FO.mjs";
7
+ import "./chunk-W3FLBRBH.mjs";
8
8
  import "./chunk-7P6ASYW6.mjs";
9
9
  export {
10
10
  pdfToBlocks
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveIdWithClient
3
- } from "./chunk-4Q3SAL5R.mjs";
4
- import "./chunk-YNVFRCUH.mjs";
5
- import "./chunk-3KESF5XJ.mjs";
3
+ } from "./chunk-TXVEL22U.mjs";
4
+ import "./chunk-QYA75XPV.mjs";
5
+ import "./chunk-FUSG27NF.mjs";
6
6
  import "./chunk-CBELM7KX.mjs";
7
7
  import "./chunk-JT57MV7Y.mjs";
8
8
  import "./chunk-PJ2RFT5A.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-SQEUO7FO.mjs";
11
+ import "./chunk-W3FLBRBH.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
14
14
  resolveIdWithClient
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-S2PVJK2P.mjs";
4
- import "./chunk-SQEUO7FO.mjs";
3
+ } from "./chunk-H34UYMNW.mjs";
4
+ import "./chunk-W3FLBRBH.mjs";
5
5
  import "./chunk-7P6ASYW6.mjs";
6
6
  export {
7
7
  teiToBlocks
package/dist/unicode.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  codePointLength,
9
9
  isSurrogate
10
- } from "./chunk-SQEUO7FO.mjs";
10
+ } from "./chunk-W3FLBRBH.mjs";
11
11
  import "./chunk-7P6ASYW6.mjs";
12
12
  export {
13
13
  AnnotationSet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",