@seed-hypermedia/client 0.0.114 → 0.0.116

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/auto-link.mjs +3 -3
  2. package/dist/blocks-to-markdown.mjs +3 -3
  3. package/dist/capability.mjs +2 -2
  4. package/dist/{chunk-2NMNRO4D.mjs → chunk-53V3XTMB.mjs} +1 -1
  5. package/dist/{chunk-IIH2GY7Y.mjs → chunk-5LHO2KV6.mjs} +61 -2
  6. package/dist/{chunk-SOYMAPYD.mjs → chunk-5RJBMYBL.mjs} +2 -2
  7. package/dist/{chunk-O4WGAS2C.mjs → chunk-7IKOUDLO.mjs} +1 -1
  8. package/dist/{chunk-MPZWQQ4T.mjs → chunk-ASEEN3OZ.mjs} +2 -2
  9. package/dist/{chunk-GMSNTW7N.mjs → chunk-EBP7SWTZ.mjs} +3 -11
  10. package/dist/{chunk-ZQZF75CE.mjs → chunk-EKRKNALC.mjs} +5 -37
  11. package/dist/{chunk-XHMBAW2Z.mjs → chunk-EWFGDYXF.mjs} +1 -1
  12. package/dist/{chunk-3IWI5CPN.mjs → chunk-LOAGYTC2.mjs} +1 -1
  13. package/dist/{chunk-QMWFLXP7.mjs → chunk-M2LRSKSU.mjs} +1 -1
  14. package/dist/{chunk-PODYPZBY.mjs → chunk-PJI7DMX3.mjs} +1 -1
  15. package/dist/{chunk-DQPKO37T.mjs → chunk-SJLLXOSE.mjs} +1 -1
  16. package/dist/{chunk-VYZX3LHX.mjs → chunk-X6SZZ5HV.mjs} +1 -1
  17. package/dist/{chunk-VUQJUPXS.mjs → chunk-YVM3WBZH.mjs} +1 -1
  18. package/dist/client.mjs +2 -2
  19. package/dist/comment.mjs +2 -2
  20. package/dist/document-state.mjs +2 -2
  21. package/dist/editorblock-to-hmblock.mjs +2 -2
  22. package/dist/hm-resolver.d.ts +11 -0
  23. package/dist/hm-resolver.mjs +4 -2
  24. package/dist/hm-types.d.ts +5 -381
  25. package/dist/hm-types.mjs +1 -3
  26. package/dist/hmblock-to-editorblock.mjs +2 -2
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.mjs +15 -13
  29. package/dist/pdf-to-blocks.mjs +3 -3
  30. package/dist/resource-read.mjs +4 -4
  31. package/dist/schema-resolve.mjs +2 -2
  32. package/dist/schema-subtypes.mjs +2 -2
  33. package/dist/tei-to-blocks.mjs +2 -2
  34. package/dist/unicode.mjs +1 -1
  35. package/package.json +1 -1
@@ -4,13 +4,13 @@ import {
4
4
  documentContainsLinkToChild,
5
5
  documentHasSelfQuery,
6
6
  shouldAutoLinkParent
7
- } from "./chunk-SOYMAPYD.mjs";
7
+ } from "./chunk-5RJBMYBL.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-XHMBAW2Z.mjs";
10
+ import "./chunk-EWFGDYXF.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
- import "./chunk-GMSNTW7N.mjs";
13
+ import "./chunk-EBP7SWTZ.mjs";
14
14
  import "./chunk-AHQWDCHV.mjs";
15
15
  import "./chunk-7P6ASYW6.mjs";
16
16
  export {
@@ -7,9 +7,9 @@ import {
7
7
  emitFrontmatter,
8
8
  parseDraftFilename,
9
9
  slugify
10
- } from "./chunk-MPZWQQ4T.mjs";
11
- import "./chunk-IIH2GY7Y.mjs";
12
- import "./chunk-GMSNTW7N.mjs";
10
+ } from "./chunk-ASEEN3OZ.mjs";
11
+ import "./chunk-5LHO2KV6.mjs";
12
+ import "./chunk-EBP7SWTZ.mjs";
13
13
  import "./chunk-AHQWDCHV.mjs";
14
14
  import "./chunk-7P6ASYW6.mjs";
15
15
  export {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createCapability,
3
3
  resolveCapability
4
- } from "./chunk-VUQJUPXS.mjs";
4
+ } from "./chunk-YVM3WBZH.mjs";
5
5
  import "./chunk-LVAHHQIK.mjs";
6
6
  import "./chunk-NBCHK76Q.mjs";
7
7
  import "./chunk-DR3HJ6BV.mjs";
8
- import "./chunk-GMSNTW7N.mjs";
8
+ import "./chunk-EBP7SWTZ.mjs";
9
9
  import "./chunk-AHQWDCHV.mjs";
10
10
  import "./chunk-3TPCJCVO.mjs";
11
11
  import "./chunk-7P6ASYW6.mjs";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  packHmId,
22
22
  unpackHmId
23
- } from "./chunk-GMSNTW7N.mjs";
23
+ } from "./chunk-EBP7SWTZ.mjs";
24
24
 
25
25
  // src/schema-resolve.ts
26
26
  var DAG_CBOR_CODE = 113;
@@ -2,7 +2,7 @@ import {
2
2
  entityQueryPathToHmIdPath,
3
3
  parseFragment,
4
4
  unpackHmId
5
- } from "./chunk-GMSNTW7N.mjs";
5
+ } from "./chunk-EBP7SWTZ.mjs";
6
6
  import {
7
7
  pageParamsFromUrl
8
8
  } from "./chunk-AHQWDCHV.mjs";
@@ -213,9 +213,68 @@ function resolveProfilePath(siteUid, pathSegments) {
213
213
  path: [":profile"]
214
214
  };
215
215
  }
216
+ var COMMENT_VIEW_TERMS = /* @__PURE__ */ new Set([":comments", ":comment", ":discussions"]);
217
+ var COMMENT_PANEL_PREFIXES = /* @__PURE__ */ new Set(["comments", "comment", "discussions"]);
218
+ function extractCommentIdFromPanel(panel) {
219
+ if (!panel) return null;
220
+ const [viewTerm, first, second] = panel.split("/");
221
+ if (!viewTerm || !COMMENT_PANEL_PREFIXES.has(viewTerm)) return null;
222
+ if (first && second) return `${first}/${second}`;
223
+ return null;
224
+ }
225
+ function extractCommentIdFromPath(pathParts) {
226
+ if (pathParts.length >= 3) {
227
+ const thirdToLast = pathParts[pathParts.length - 3];
228
+ if (thirdToLast && COMMENT_VIEW_TERMS.has(thirdToLast)) {
229
+ return `${pathParts[pathParts.length - 2]}/${pathParts[pathParts.length - 1]}`;
230
+ }
231
+ }
232
+ if (pathParts.length >= 2) {
233
+ const secondToLast = pathParts[pathParts.length - 2];
234
+ if (secondToLast && COMMENT_VIEW_TERMS.has(secondToLast)) return pathParts[pathParts.length - 1] || null;
235
+ }
236
+ return null;
237
+ }
238
+ function parseReplyCommentId(reply) {
239
+ if (!reply) return null;
240
+ const [first, second] = reply.split("/");
241
+ if (first && second) return `${first}/${second}`;
242
+ return null;
243
+ }
244
+ function extractCommentIdFromUrl(url) {
245
+ const isWeb = url.startsWith("http://") || url.startsWith("https://");
246
+ let panelCommentId = null;
247
+ let pathCommentId = null;
248
+ let reply = null;
249
+ if (isWeb) {
250
+ let parsedUrl;
251
+ try {
252
+ parsedUrl = new URL(url);
253
+ } catch {
254
+ return null;
255
+ }
256
+ panelCommentId = extractCommentIdFromPanel(parsedUrl.searchParams.get("panel"));
257
+ reply = parseReplyCommentId(parsedUrl.searchParams.get("reply"));
258
+ const unpacked = unpackHmId(url);
259
+ const pathParts = (unpacked == null ? void 0 : unpacked.path) ?? parsedUrl.pathname.split("/").filter(Boolean);
260
+ pathCommentId = extractCommentIdFromPath(pathParts);
261
+ } else {
262
+ const [withoutHash] = url.split("#");
263
+ const [withoutQuery, queryString] = withoutHash.split("?");
264
+ const searchParams = new URLSearchParams(queryString);
265
+ panelCommentId = extractCommentIdFromPanel(searchParams.get("panel"));
266
+ reply = parseReplyCommentId(searchParams.get("reply"));
267
+ const parsed = unpackHmId(withoutQuery);
268
+ pathCommentId = (parsed == null ? void 0 : parsed.path) ? extractCommentIdFromPath(parsed.path) : null;
269
+ }
270
+ const threadCommentId = panelCommentId || pathCommentId;
271
+ if (!threadCommentId) return null;
272
+ return reply ?? threadCommentId;
273
+ }
216
274
 
217
275
  export {
218
276
  hmDomainUrlToWebUrl,
219
277
  resolveHypermediaUrl,
220
- resolveId
278
+ resolveId,
279
+ extractCommentIdFromUrl
221
280
  };
@@ -7,12 +7,12 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-XHMBAW2Z.mjs";
10
+ } from "./chunk-EWFGDYXF.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
14
14
  unpackHmId
15
- } from "./chunk-GMSNTW7N.mjs";
15
+ } from "./chunk-EBP7SWTZ.mjs";
16
16
 
17
17
  // src/auto-link.ts
18
18
  import { CID } from "multiformats/cid";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  codePointLength
3
- } from "./chunk-GMSNTW7N.mjs";
3
+ } from "./chunk-EBP7SWTZ.mjs";
4
4
 
5
5
  // src/tei-to-blocks.ts
6
6
  function generateBlockId() {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveId
3
- } from "./chunk-IIH2GY7Y.mjs";
3
+ } from "./chunk-5LHO2KV6.mjs";
4
4
  import {
5
5
  normalizeQuerySort,
6
6
  unpackHmId
7
- } from "./chunk-GMSNTW7N.mjs";
7
+ } from "./chunk-EBP7SWTZ.mjs";
8
8
 
9
9
  // src/blocks-to-markdown.ts
10
10
  import { stringify as stringifyYaml } from "yaml";
@@ -403,13 +403,6 @@ var HMCommentGroupSchema = z.object({
403
403
  id: z.string(),
404
404
  type: z.literal("commentGroup")
405
405
  });
406
- var HMExternalCommentGroupSchema = z.object({
407
- comments: z.array(HMCommentSchema),
408
- moreCommentsCount: z.number(),
409
- id: z.string(),
410
- target: z.lazy(() => HMMetadataPayloadSchema),
411
- type: z.literal("externalCommentGroup")
412
- });
413
406
  var HMActivitySummarySchema = z.object({
414
407
  latestCommentTime: HMTimestampSchema.optional(),
415
408
  latestCommentId: z.string(),
@@ -1115,8 +1108,7 @@ var HMListDiscussionsInputSchema = z.object({
1115
1108
  });
1116
1109
  var HMListDiscussionsOutputSchema = z.object({
1117
1110
  discussions: z.array(HMCommentGroupSchema),
1118
- authors: z.record(z.string(), HMMetadataPayloadSchema),
1119
- citingDiscussions: z.array(HMExternalCommentGroupSchema)
1111
+ authors: z.record(z.string(), HMMetadataPayloadSchema)
1120
1112
  });
1121
1113
  var HMListDiscussionsRequestSchema = z.object({
1122
1114
  key: z.literal("ListDiscussions"),
@@ -1342,7 +1334,8 @@ var HMQueryBlockFilterOptionsSchema = z.record(
1342
1334
  z.string(),
1343
1335
  z.object({
1344
1336
  values: z.array(z.string()),
1345
- type: z.enum(["text", "number", "boolean", "date", "list"])
1337
+ type: z.enum(["text", "number", "boolean", "date", "list"]),
1338
+ labels: z.record(z.string(), z.string()).optional()
1346
1339
  })
1347
1340
  );
1348
1341
  var HMQueryBlockPayloadSchema = z.object({
@@ -1780,7 +1773,6 @@ export {
1780
1773
  HMCommentSchema,
1781
1774
  HMBreadcrumbSchema,
1782
1775
  HMCommentGroupSchema,
1783
- HMExternalCommentGroupSchema,
1784
1776
  HMActivitySummarySchema,
1785
1777
  HMGenerationInfoSchema,
1786
1778
  HMRedirectInfoSchema,
@@ -1,17 +1,18 @@
1
1
  import {
2
2
  createSeedClient
3
- } from "./chunk-QMWFLXP7.mjs";
3
+ } from "./chunk-M2LRSKSU.mjs";
4
4
  import {
5
+ extractCommentIdFromUrl,
5
6
  hmDomainUrlToWebUrl,
6
7
  resolveId
7
- } from "./chunk-IIH2GY7Y.mjs";
8
+ } from "./chunk-5LHO2KV6.mjs";
8
9
  import {
9
10
  unpackHmId
10
- } from "./chunk-GMSNTW7N.mjs";
11
+ } from "./chunk-EBP7SWTZ.mjs";
11
12
 
12
13
  // src/resource-read.ts
13
14
  async function resolveIdWithClient(rawId, options = {}) {
14
- const commentId = extractCommentIdFromReadableUrl(rawId);
15
+ const commentId = extractCommentIdFromUrl(rawId);
15
16
  if (!commentId && hmDomainUrlToWebUrl(rawId)) {
16
17
  const id2 = await resolveId(rawId, { domainResolver: options.domainResolver });
17
18
  const client = options.client ?? createSeedClient(normalizeServerUrl(options.serverUrl || "https://hyper.media"));
@@ -30,39 +31,6 @@ async function resolveIdWithClient(rawId, options = {}) {
30
31
  const origin = new URL(rawId).origin;
31
32
  return { id, client: createSeedClient(origin), serverUrl: origin };
32
33
  }
33
- var COMMENT_VIEW_TERMS = /* @__PURE__ */ new Set([":comments", ":comment", ":discussions"]);
34
- function extractCommentIdFromReadableUrl(rawId) {
35
- if (isWebUrl(rawId)) {
36
- const url = new URL(rawId);
37
- const panelCommentId = extractCommentIdFromPanel(url.searchParams.get("panel"));
38
- if (panelCommentId) return panelCommentId;
39
- return extractCommentIdFromPath(url.pathname.split("/").filter(Boolean));
40
- }
41
- const [withoutHash] = rawId.split("#");
42
- const [withoutQuery] = withoutHash.split("?");
43
- const parsed = unpackHmId(withoutQuery);
44
- return (parsed == null ? void 0 : parsed.path) ? extractCommentIdFromPath(parsed.path) : null;
45
- }
46
- function extractCommentIdFromPanel(panel) {
47
- if (!panel) return null;
48
- const [viewTerm, first, second] = panel.split("/");
49
- if (viewTerm !== "comments" && viewTerm !== "comment" && viewTerm !== "discussions") return null;
50
- if (first && second) return `${first}/${second}`;
51
- return first || null;
52
- }
53
- function extractCommentIdFromPath(pathParts) {
54
- if (pathParts.length >= 3) {
55
- const thirdToLast = pathParts[pathParts.length - 3];
56
- if (thirdToLast && COMMENT_VIEW_TERMS.has(thirdToLast)) {
57
- return `${pathParts[pathParts.length - 2]}/${pathParts[pathParts.length - 1]}`;
58
- }
59
- }
60
- if (pathParts.length >= 2) {
61
- const secondToLast = pathParts[pathParts.length - 2];
62
- if (secondToLast && COMMENT_VIEW_TERMS.has(secondToLast)) return pathParts[pathParts.length - 1] || null;
63
- }
64
- return null;
65
- }
66
34
  function commentIdToHmId(commentId) {
67
35
  const parsed = unpackHmId(`hm://${commentId}`);
68
36
  if (!parsed) throw new Error(`Invalid comment ID: ${commentId}`);
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  packHmId,
3
3
  unpackHmId
4
- } from "./chunk-GMSNTW7N.mjs";
4
+ } from "./chunk-EBP7SWTZ.mjs";
5
5
 
6
6
  // src/document-state.ts
7
7
  async function resolveDocumentState(client, targetId) {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-GMSNTW7N.mjs";
12
+ } from "./chunk-EBP7SWTZ.mjs";
13
13
 
14
14
  // src/comment.ts
15
15
  import { decode as cborDecode, encode as cborEncode } from "@ipld/dag-cbor";
@@ -15,7 +15,7 @@ import {
15
15
  HMActionSchema,
16
16
  HMRequestSchema,
17
17
  packHmId
18
- } from "./chunk-GMSNTW7N.mjs";
18
+ } from "./chunk-EBP7SWTZ.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getSupportedHMQueryFilters,
3
3
  isSurrogate
4
- } from "./chunk-GMSNTW7N.mjs";
4
+ } from "./chunk-EBP7SWTZ.mjs";
5
5
 
6
6
  // src/hmblock-to-editorblock.ts
7
7
  function toEditorBlockType(hmBlockType) {
@@ -7,7 +7,7 @@ import {
7
7
  codePointLength,
8
8
  parseHMQueryFiltersJSON,
9
9
  toNumber
10
- } from "./chunk-GMSNTW7N.mjs";
10
+ } from "./chunk-EBP7SWTZ.mjs";
11
11
 
12
12
  // src/editorblock-to-hmblock.ts
13
13
  function toHMBlockType(editorBlockType) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-O4WGAS2C.mjs";
3
+ } from "./chunk-7IKOUDLO.mjs";
4
4
  import {
5
5
  embeddedPdfToBlocks
6
6
  } from "./chunk-2FJBS3V7.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-GMSNTW7N.mjs";
10
+ } from "./chunk-EBP7SWTZ.mjs";
11
11
 
12
12
  // src/capability.ts
13
13
  import { base58btc } from "multiformats/bases/base58";
package/dist/client.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createSeedClient,
3
3
  deserializeQueryString
4
- } from "./chunk-QMWFLXP7.mjs";
4
+ } from "./chunk-M2LRSKSU.mjs";
5
5
  import "./chunk-CBELM7KX.mjs";
6
6
  import "./chunk-O5MHN2EO.mjs";
7
7
  import "./chunk-PJ2RFT5A.mjs";
8
8
  import "./chunk-LVAHHQIK.mjs";
9
9
  import "./chunk-DR3HJ6BV.mjs";
10
- import "./chunk-GMSNTW7N.mjs";
10
+ import "./chunk-EBP7SWTZ.mjs";
11
11
  import "./chunk-AHQWDCHV.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
package/dist/comment.mjs CHANGED
@@ -4,11 +4,11 @@ import {
4
4
  deleteComment,
5
5
  trimTrailingEmptyBlocks,
6
6
  updateComment
7
- } from "./chunk-3IWI5CPN.mjs";
7
+ } from "./chunk-LOAGYTC2.mjs";
8
8
  import "./chunk-JKKS35IS.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-GMSNTW7N.mjs";
11
+ import "./chunk-EBP7SWTZ.mjs";
12
12
  import "./chunk-AHQWDCHV.mjs";
13
13
  import "./chunk-7P6ASYW6.mjs";
14
14
  export {
@@ -4,8 +4,8 @@ import {
4
4
  followToDocument,
5
5
  resolveDocumentState,
6
6
  resolveEditableDocument
7
- } from "./chunk-XHMBAW2Z.mjs";
8
- import "./chunk-GMSNTW7N.mjs";
7
+ } from "./chunk-EWFGDYXF.mjs";
8
+ import "./chunk-EBP7SWTZ.mjs";
9
9
  import "./chunk-AHQWDCHV.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
11
11
  export {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  editorBlockToHMBlock,
3
3
  editorBlocksToHMBlockNodes
4
- } from "./chunk-DQPKO37T.mjs";
4
+ } from "./chunk-SJLLXOSE.mjs";
5
5
  import "./chunk-JKKS35IS.mjs";
6
- import "./chunk-GMSNTW7N.mjs";
6
+ import "./chunk-EBP7SWTZ.mjs";
7
7
  import "./chunk-AHQWDCHV.mjs";
8
8
  import "./chunk-7P6ASYW6.mjs";
9
9
  export {
@@ -44,3 +44,14 @@ export declare function resolveHypermediaUrl(url: string, opts?: ResolveOptions)
44
44
  * back to an OPTIONS request for web URLs.
45
45
  */
46
46
  export declare function resolveId(input: string, opts?: ResolveOptions): Promise<UnpackedHypermediaId>;
47
+ /**
48
+ * The comment a Hypermedia URL addresses, as `<author uid>/<tsid>`, or null when the URL
49
+ * addresses no single comment.
50
+ *
51
+ * A comment appears in a URL as the `/:comments/<uid>/<tsid>` main view or the
52
+ * `?panel=comments/<uid>/<tsid>` side panel, either of which may carry
53
+ * `?reply=<uid>/<tsid>`. A selected reply is the comment the URL is about, so it wins over
54
+ * the thread root. `?panel=comments/<block id>` opens a block's discussion rather than a
55
+ * comment, so only the two-segment comment-id form resolves from the panel parameter.
56
+ */
57
+ export declare function extractCommentIdFromUrl(url: string): string | null;
@@ -1,12 +1,14 @@
1
1
  import {
2
+ extractCommentIdFromUrl,
2
3
  hmDomainUrlToWebUrl,
3
4
  resolveHypermediaUrl,
4
5
  resolveId
5
- } from "./chunk-IIH2GY7Y.mjs";
6
- import "./chunk-GMSNTW7N.mjs";
6
+ } from "./chunk-5LHO2KV6.mjs";
7
+ import "./chunk-EBP7SWTZ.mjs";
7
8
  import "./chunk-AHQWDCHV.mjs";
8
9
  import "./chunk-7P6ASYW6.mjs";
9
10
  export {
11
+ extractCommentIdFromUrl,
10
12
  hmDomainUrlToWebUrl,
11
13
  resolveHypermediaUrl,
12
14
  resolveId
@@ -964,83 +964,6 @@ export declare const HMCommentGroupSchema: z.ZodObject<{
964
964
  type: z.ZodLiteral<"commentGroup">;
965
965
  }, z.z.core.$strip>;
966
966
  export type HMCommentGroup = z.infer<typeof HMCommentGroupSchema>;
967
- export declare const HMExternalCommentGroupSchema: z.ZodObject<{
968
- comments: z.ZodArray<z.ZodObject<{
969
- id: z.ZodString;
970
- version: z.ZodString;
971
- author: z.ZodString;
972
- targetAccount: z.ZodString;
973
- targetPath: z.ZodOptional<z.ZodString>;
974
- targetVersion: z.ZodString;
975
- replyParent: z.ZodOptional<z.ZodString>;
976
- replyParentVersion: z.ZodOptional<z.ZodString>;
977
- threadRoot: z.ZodOptional<z.ZodString>;
978
- threadRootVersion: z.ZodOptional<z.ZodString>;
979
- capability: z.ZodOptional<z.ZodString>;
980
- content: z.ZodArray<z.ZodType<HMBlockNode, unknown, z.z.core.$ZodTypeInternals<HMBlockNode, unknown>>>;
981
- createTime: z.ZodUnion<[z.ZodObject<{
982
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
983
- nanos: z.ZodNumber;
984
- }, z.z.core.$strict>, z.ZodString]>;
985
- updateTime: z.ZodUnion<[z.ZodObject<{
986
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
987
- nanos: z.ZodNumber;
988
- }, z.z.core.$strict>, z.ZodString]>;
989
- visibility: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<"PUBLIC" | "PRIVATE", string | number>>;
990
- }, z.z.core.$strip>>;
991
- moreCommentsCount: z.ZodNumber;
992
- id: z.ZodString;
993
- target: z.ZodLazy<z.ZodObject<{
994
- id: z.ZodObject<{
995
- id: z.ZodString;
996
- uid: z.ZodString;
997
- path: z.ZodNullable<z.ZodArray<z.ZodString>>;
998
- version: z.ZodNullable<z.ZodString>;
999
- blockRef: z.ZodNullable<z.ZodString>;
1000
- blockRange: z.ZodNullable<z.ZodObject<{
1001
- start: z.ZodOptional<z.ZodNumber>;
1002
- end: z.ZodOptional<z.ZodNumber>;
1003
- expanded: z.ZodOptional<z.ZodBoolean>;
1004
- }, z.z.core.$strip>>;
1005
- hostname: z.ZodNullable<z.ZodString>;
1006
- scheme: z.ZodNullable<z.ZodString>;
1007
- latest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1008
- pageParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1009
- targetDocUid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
- targetDocPath: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1011
- }, z.z.core.$strip>;
1012
- metadata: z.ZodUnion<[z.ZodObject<{
1013
- name: z.ZodOptional<z.ZodString>;
1014
- summary: z.ZodOptional<z.ZodString>;
1015
- icon: z.ZodOptional<z.ZodString>;
1016
- thumbnail: z.ZodOptional<z.ZodString>;
1017
- cover: z.ZodOptional<z.ZodString>;
1018
- siteUrl: z.ZodOptional<z.ZodString>;
1019
- agentServerUrl: z.ZodOptional<z.ZodString>;
1020
- type: z.ZodOptional<z.ZodString>;
1021
- html: z.ZodOptional<z.ZodString>;
1022
- inputSchema: z.ZodOptional<z.ZodString>;
1023
- layout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Seed/Experimental/Newspaper">, z.ZodLiteral<"">]>>;
1024
- displayPublishTime: z.ZodOptional<z.ZodString>;
1025
- displayAuthor: z.ZodOptional<z.ZodString>;
1026
- seedExperimentalLogo: z.ZodOptional<z.ZodString>;
1027
- seedExperimentalHomeOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"UpdatedFirst">, z.ZodLiteral<"CreatedFirst">]>>;
1028
- showOutline: z.ZodOptional<z.ZodBoolean>;
1029
- showActivity: z.ZodOptional<z.ZodBoolean>;
1030
- contentWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"S">, z.ZodLiteral<"M">, z.ZodLiteral<"L">]>>;
1031
- childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
1032
- theme: z.ZodOptional<z.ZodObject<{
1033
- headerLayout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Center">, z.ZodLiteral<"">]>>;
1034
- }, z.z.core.$strip>>;
1035
- importCategories: z.ZodOptional<z.ZodString>;
1036
- importTags: z.ZodOptional<z.ZodString>;
1037
- schemaDefinition: z.ZodOptional<z.ZodString>;
1038
- }, z.z.core.$loose>, z.ZodNull]>;
1039
- hasSite: z.ZodOptional<z.ZodBoolean>;
1040
- }, z.z.core.$strict>>;
1041
- type: z.ZodLiteral<"externalCommentGroup">;
1042
- }, z.z.core.$strip>;
1043
- export type HMExternalCommentGroup = z.infer<typeof HMExternalCommentGroupSchema>;
1044
967
  export type HMBlockType = HMBlock['type'];
1045
968
  export declare const HMActivitySummarySchema: z.ZodObject<{
1046
969
  latestCommentTime: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
@@ -5604,82 +5527,6 @@ export declare const HMListDiscussionsOutputSchema: z.ZodObject<{
5604
5527
  }, z.z.core.$loose>, z.ZodNull]>;
5605
5528
  hasSite: z.ZodOptional<z.ZodBoolean>;
5606
5529
  }, z.z.core.$strict>>;
5607
- citingDiscussions: z.ZodArray<z.ZodObject<{
5608
- comments: z.ZodArray<z.ZodObject<{
5609
- id: z.ZodString;
5610
- version: z.ZodString;
5611
- author: z.ZodString;
5612
- targetAccount: z.ZodString;
5613
- targetPath: z.ZodOptional<z.ZodString>;
5614
- targetVersion: z.ZodString;
5615
- replyParent: z.ZodOptional<z.ZodString>;
5616
- replyParentVersion: z.ZodOptional<z.ZodString>;
5617
- threadRoot: z.ZodOptional<z.ZodString>;
5618
- threadRootVersion: z.ZodOptional<z.ZodString>;
5619
- capability: z.ZodOptional<z.ZodString>;
5620
- content: z.ZodArray<z.ZodType<HMBlockNode, unknown, z.z.core.$ZodTypeInternals<HMBlockNode, unknown>>>;
5621
- createTime: z.ZodUnion<[z.ZodObject<{
5622
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
5623
- nanos: z.ZodNumber;
5624
- }, z.z.core.$strict>, z.ZodString]>;
5625
- updateTime: z.ZodUnion<[z.ZodObject<{
5626
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
5627
- nanos: z.ZodNumber;
5628
- }, z.z.core.$strict>, z.ZodString]>;
5629
- visibility: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<"PUBLIC" | "PRIVATE", string | number>>;
5630
- }, z.z.core.$strip>>;
5631
- moreCommentsCount: z.ZodNumber;
5632
- id: z.ZodString;
5633
- target: z.ZodLazy<z.ZodObject<{
5634
- id: z.ZodObject<{
5635
- id: z.ZodString;
5636
- uid: z.ZodString;
5637
- path: z.ZodNullable<z.ZodArray<z.ZodString>>;
5638
- version: z.ZodNullable<z.ZodString>;
5639
- blockRef: z.ZodNullable<z.ZodString>;
5640
- blockRange: z.ZodNullable<z.ZodObject<{
5641
- start: z.ZodOptional<z.ZodNumber>;
5642
- end: z.ZodOptional<z.ZodNumber>;
5643
- expanded: z.ZodOptional<z.ZodBoolean>;
5644
- }, z.z.core.$strip>>;
5645
- hostname: z.ZodNullable<z.ZodString>;
5646
- scheme: z.ZodNullable<z.ZodString>;
5647
- latest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5648
- pageParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5649
- targetDocUid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5650
- targetDocPath: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
5651
- }, z.z.core.$strip>;
5652
- metadata: z.ZodUnion<[z.ZodObject<{
5653
- name: z.ZodOptional<z.ZodString>;
5654
- summary: z.ZodOptional<z.ZodString>;
5655
- icon: z.ZodOptional<z.ZodString>;
5656
- thumbnail: z.ZodOptional<z.ZodString>;
5657
- cover: z.ZodOptional<z.ZodString>;
5658
- siteUrl: z.ZodOptional<z.ZodString>;
5659
- agentServerUrl: z.ZodOptional<z.ZodString>;
5660
- type: z.ZodOptional<z.ZodString>;
5661
- html: z.ZodOptional<z.ZodString>;
5662
- inputSchema: z.ZodOptional<z.ZodString>;
5663
- layout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Seed/Experimental/Newspaper">, z.ZodLiteral<"">]>>;
5664
- displayPublishTime: z.ZodOptional<z.ZodString>;
5665
- displayAuthor: z.ZodOptional<z.ZodString>;
5666
- seedExperimentalLogo: z.ZodOptional<z.ZodString>;
5667
- seedExperimentalHomeOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"UpdatedFirst">, z.ZodLiteral<"CreatedFirst">]>>;
5668
- showOutline: z.ZodOptional<z.ZodBoolean>;
5669
- showActivity: z.ZodOptional<z.ZodBoolean>;
5670
- contentWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"S">, z.ZodLiteral<"M">, z.ZodLiteral<"L">]>>;
5671
- childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
5672
- theme: z.ZodOptional<z.ZodObject<{
5673
- headerLayout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Center">, z.ZodLiteral<"">]>>;
5674
- }, z.z.core.$strip>>;
5675
- importCategories: z.ZodOptional<z.ZodString>;
5676
- importTags: z.ZodOptional<z.ZodString>;
5677
- schemaDefinition: z.ZodOptional<z.ZodString>;
5678
- }, z.z.core.$loose>, z.ZodNull]>;
5679
- hasSite: z.ZodOptional<z.ZodBoolean>;
5680
- }, z.z.core.$strict>>;
5681
- type: z.ZodLiteral<"externalCommentGroup">;
5682
- }, z.z.core.$strip>>;
5683
5530
  }, z.z.core.$strip>;
5684
5531
  export type HMListDiscussionsOutput = z.infer<typeof HMListDiscussionsOutputSchema>;
5685
5532
  export declare const HMListDiscussionsRequestSchema: z.ZodObject<{
@@ -5782,82 +5629,6 @@ export declare const HMListDiscussionsRequestSchema: z.ZodObject<{
5782
5629
  }, z.z.core.$loose>, z.ZodNull]>;
5783
5630
  hasSite: z.ZodOptional<z.ZodBoolean>;
5784
5631
  }, z.z.core.$strict>>;
5785
- citingDiscussions: z.ZodArray<z.ZodObject<{
5786
- comments: z.ZodArray<z.ZodObject<{
5787
- id: z.ZodString;
5788
- version: z.ZodString;
5789
- author: z.ZodString;
5790
- targetAccount: z.ZodString;
5791
- targetPath: z.ZodOptional<z.ZodString>;
5792
- targetVersion: z.ZodString;
5793
- replyParent: z.ZodOptional<z.ZodString>;
5794
- replyParentVersion: z.ZodOptional<z.ZodString>;
5795
- threadRoot: z.ZodOptional<z.ZodString>;
5796
- threadRootVersion: z.ZodOptional<z.ZodString>;
5797
- capability: z.ZodOptional<z.ZodString>;
5798
- content: z.ZodArray<z.ZodType<HMBlockNode, unknown, z.z.core.$ZodTypeInternals<HMBlockNode, unknown>>>;
5799
- createTime: z.ZodUnion<[z.ZodObject<{
5800
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
5801
- nanos: z.ZodNumber;
5802
- }, z.z.core.$strict>, z.ZodString]>;
5803
- updateTime: z.ZodUnion<[z.ZodObject<{
5804
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
5805
- nanos: z.ZodNumber;
5806
- }, z.z.core.$strict>, z.ZodString]>;
5807
- visibility: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<"PUBLIC" | "PRIVATE", string | number>>;
5808
- }, z.z.core.$strip>>;
5809
- moreCommentsCount: z.ZodNumber;
5810
- id: z.ZodString;
5811
- target: z.ZodLazy<z.ZodObject<{
5812
- id: z.ZodObject<{
5813
- id: z.ZodString;
5814
- uid: z.ZodString;
5815
- path: z.ZodNullable<z.ZodArray<z.ZodString>>;
5816
- version: z.ZodNullable<z.ZodString>;
5817
- blockRef: z.ZodNullable<z.ZodString>;
5818
- blockRange: z.ZodNullable<z.ZodObject<{
5819
- start: z.ZodOptional<z.ZodNumber>;
5820
- end: z.ZodOptional<z.ZodNumber>;
5821
- expanded: z.ZodOptional<z.ZodBoolean>;
5822
- }, z.z.core.$strip>>;
5823
- hostname: z.ZodNullable<z.ZodString>;
5824
- scheme: z.ZodNullable<z.ZodString>;
5825
- latest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
5826
- pageParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
5827
- targetDocUid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5828
- targetDocPath: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
5829
- }, z.z.core.$strip>;
5830
- metadata: z.ZodUnion<[z.ZodObject<{
5831
- name: z.ZodOptional<z.ZodString>;
5832
- summary: z.ZodOptional<z.ZodString>;
5833
- icon: z.ZodOptional<z.ZodString>;
5834
- thumbnail: z.ZodOptional<z.ZodString>;
5835
- cover: z.ZodOptional<z.ZodString>;
5836
- siteUrl: z.ZodOptional<z.ZodString>;
5837
- agentServerUrl: z.ZodOptional<z.ZodString>;
5838
- type: z.ZodOptional<z.ZodString>;
5839
- html: z.ZodOptional<z.ZodString>;
5840
- inputSchema: z.ZodOptional<z.ZodString>;
5841
- layout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Seed/Experimental/Newspaper">, z.ZodLiteral<"">]>>;
5842
- displayPublishTime: z.ZodOptional<z.ZodString>;
5843
- displayAuthor: z.ZodOptional<z.ZodString>;
5844
- seedExperimentalLogo: z.ZodOptional<z.ZodString>;
5845
- seedExperimentalHomeOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"UpdatedFirst">, z.ZodLiteral<"CreatedFirst">]>>;
5846
- showOutline: z.ZodOptional<z.ZodBoolean>;
5847
- showActivity: z.ZodOptional<z.ZodBoolean>;
5848
- contentWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"S">, z.ZodLiteral<"M">, z.ZodLiteral<"L">]>>;
5849
- childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
5850
- theme: z.ZodOptional<z.ZodObject<{
5851
- headerLayout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Center">, z.ZodLiteral<"">]>>;
5852
- }, z.z.core.$strip>>;
5853
- importCategories: z.ZodOptional<z.ZodString>;
5854
- importTags: z.ZodOptional<z.ZodString>;
5855
- schemaDefinition: z.ZodOptional<z.ZodString>;
5856
- }, z.z.core.$loose>, z.ZodNull]>;
5857
- hasSite: z.ZodOptional<z.ZodBoolean>;
5858
- }, z.z.core.$strict>>;
5859
- type: z.ZodLiteral<"externalCommentGroup">;
5860
- }, z.z.core.$strip>>;
5861
5632
  }, z.z.core.$strip>;
5862
5633
  }, z.z.core.$strip>;
5863
5634
  export type HMListDiscussionsRequest = z.infer<typeof HMListDiscussionsRequestSchema>;
@@ -7212,6 +6983,7 @@ export declare const HMQueryBlockFilterOptionsSchema: z.ZodRecord<z.ZodString, z
7212
6983
  text: "text";
7213
6984
  list: "list";
7214
6985
  }>;
6986
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7215
6987
  }, z.z.core.$strip>>;
7216
6988
  /** Filter choices available before viewer search, filters, and display limits. */
7217
6989
  export type HMQueryBlockFilterOptions = z.infer<typeof HMQueryBlockFilterOptionsSchema>;
@@ -7337,6 +7109,7 @@ export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
7337
7109
  text: "text";
7338
7110
  list: "list";
7339
7111
  }>;
7112
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7340
7113
  }, z.z.core.$strip>>>;
7341
7114
  mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
7342
7115
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -7556,6 +7329,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
7556
7329
  text: "text";
7557
7330
  list: "list";
7558
7331
  }>;
7332
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7559
7333
  }, z.z.core.$strip>>>;
7560
7334
  mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
7561
7335
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -8801,6 +8575,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8801
8575
  text: "text";
8802
8576
  list: "list";
8803
8577
  }>;
8578
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
8804
8579
  }, z.z.core.$strip>>>;
8805
8580
  mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
8806
8581
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -9096,82 +8871,6 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9096
8871
  }, z.z.core.$loose>, z.ZodNull]>;
9097
8872
  hasSite: z.ZodOptional<z.ZodBoolean>;
9098
8873
  }, z.z.core.$strict>>;
9099
- citingDiscussions: z.ZodArray<z.ZodObject<{
9100
- comments: z.ZodArray<z.ZodObject<{
9101
- id: z.ZodString;
9102
- version: z.ZodString;
9103
- author: z.ZodString;
9104
- targetAccount: z.ZodString;
9105
- targetPath: z.ZodOptional<z.ZodString>;
9106
- targetVersion: z.ZodString;
9107
- replyParent: z.ZodOptional<z.ZodString>;
9108
- replyParentVersion: z.ZodOptional<z.ZodString>;
9109
- threadRoot: z.ZodOptional<z.ZodString>;
9110
- threadRootVersion: z.ZodOptional<z.ZodString>;
9111
- capability: z.ZodOptional<z.ZodString>;
9112
- content: z.ZodArray<z.ZodType<HMBlockNode, unknown, z.z.core.$ZodTypeInternals<HMBlockNode, unknown>>>;
9113
- createTime: z.ZodUnion<[z.ZodObject<{
9114
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
9115
- nanos: z.ZodNumber;
9116
- }, z.z.core.$strict>, z.ZodString]>;
9117
- updateTime: z.ZodUnion<[z.ZodObject<{
9118
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
9119
- nanos: z.ZodNumber;
9120
- }, z.z.core.$strict>, z.ZodString]>;
9121
- visibility: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<"PUBLIC" | "PRIVATE", string | number>>;
9122
- }, z.z.core.$strip>>;
9123
- moreCommentsCount: z.ZodNumber;
9124
- id: z.ZodString;
9125
- target: z.ZodLazy<z.ZodObject<{
9126
- id: z.ZodObject<{
9127
- id: z.ZodString;
9128
- uid: z.ZodString;
9129
- path: z.ZodNullable<z.ZodArray<z.ZodString>>;
9130
- version: z.ZodNullable<z.ZodString>;
9131
- blockRef: z.ZodNullable<z.ZodString>;
9132
- blockRange: z.ZodNullable<z.ZodObject<{
9133
- start: z.ZodOptional<z.ZodNumber>;
9134
- end: z.ZodOptional<z.ZodNumber>;
9135
- expanded: z.ZodOptional<z.ZodBoolean>;
9136
- }, z.z.core.$strip>>;
9137
- hostname: z.ZodNullable<z.ZodString>;
9138
- scheme: z.ZodNullable<z.ZodString>;
9139
- latest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
9140
- pageParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
9141
- targetDocUid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9142
- targetDocPath: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
9143
- }, z.z.core.$strip>;
9144
- metadata: z.ZodUnion<[z.ZodObject<{
9145
- name: z.ZodOptional<z.ZodString>;
9146
- summary: z.ZodOptional<z.ZodString>;
9147
- icon: z.ZodOptional<z.ZodString>;
9148
- thumbnail: z.ZodOptional<z.ZodString>;
9149
- cover: z.ZodOptional<z.ZodString>;
9150
- siteUrl: z.ZodOptional<z.ZodString>;
9151
- agentServerUrl: z.ZodOptional<z.ZodString>;
9152
- type: z.ZodOptional<z.ZodString>;
9153
- html: z.ZodOptional<z.ZodString>;
9154
- inputSchema: z.ZodOptional<z.ZodString>;
9155
- layout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Seed/Experimental/Newspaper">, z.ZodLiteral<"">]>>;
9156
- displayPublishTime: z.ZodOptional<z.ZodString>;
9157
- displayAuthor: z.ZodOptional<z.ZodString>;
9158
- seedExperimentalLogo: z.ZodOptional<z.ZodString>;
9159
- seedExperimentalHomeOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"UpdatedFirst">, z.ZodLiteral<"CreatedFirst">]>>;
9160
- showOutline: z.ZodOptional<z.ZodBoolean>;
9161
- showActivity: z.ZodOptional<z.ZodBoolean>;
9162
- contentWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"S">, z.ZodLiteral<"M">, z.ZodLiteral<"L">]>>;
9163
- childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
9164
- theme: z.ZodOptional<z.ZodObject<{
9165
- headerLayout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Center">, z.ZodLiteral<"">]>>;
9166
- }, z.z.core.$strip>>;
9167
- importCategories: z.ZodOptional<z.ZodString>;
9168
- importTags: z.ZodOptional<z.ZodString>;
9169
- schemaDefinition: z.ZodOptional<z.ZodString>;
9170
- }, z.z.core.$loose>, z.ZodNull]>;
9171
- hasSite: z.ZodOptional<z.ZodBoolean>;
9172
- }, z.z.core.$strict>>;
9173
- type: z.ZodLiteral<"externalCommentGroup">;
9174
- }, z.z.core.$strip>>;
9175
8874
  }, z.z.core.$strip>;
9176
8875
  }, z.z.core.$strip>, z.ZodObject<{
9177
8876
  key: z.ZodLiteral<"ListCommentsByReference">;
@@ -11017,6 +10716,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11017
10716
  text: "text";
11018
10717
  list: "list";
11019
10718
  }>;
10719
+ labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11020
10720
  }, z.z.core.$strip>>>;
11021
10721
  mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
11022
10722
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -11312,82 +11012,6 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11312
11012
  }, z.z.core.$loose>, z.ZodNull]>;
11313
11013
  hasSite: z.ZodOptional<z.ZodBoolean>;
11314
11014
  }, z.z.core.$strict>>;
11315
- citingDiscussions: z.ZodArray<z.ZodObject<{
11316
- comments: z.ZodArray<z.ZodObject<{
11317
- id: z.ZodString;
11318
- version: z.ZodString;
11319
- author: z.ZodString;
11320
- targetAccount: z.ZodString;
11321
- targetPath: z.ZodOptional<z.ZodString>;
11322
- targetVersion: z.ZodString;
11323
- replyParent: z.ZodOptional<z.ZodString>;
11324
- replyParentVersion: z.ZodOptional<z.ZodString>;
11325
- threadRoot: z.ZodOptional<z.ZodString>;
11326
- threadRootVersion: z.ZodOptional<z.ZodString>;
11327
- capability: z.ZodOptional<z.ZodString>;
11328
- content: z.ZodArray<z.ZodType<HMBlockNode, unknown, z.z.core.$ZodTypeInternals<HMBlockNode, unknown>>>;
11329
- createTime: z.ZodUnion<[z.ZodObject<{
11330
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
11331
- nanos: z.ZodNumber;
11332
- }, z.z.core.$strict>, z.ZodString]>;
11333
- updateTime: z.ZodUnion<[z.ZodObject<{
11334
- seconds: z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>;
11335
- nanos: z.ZodNumber;
11336
- }, z.z.core.$strict>, z.ZodString]>;
11337
- visibility: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<"PUBLIC" | "PRIVATE", string | number>>;
11338
- }, z.z.core.$strip>>;
11339
- moreCommentsCount: z.ZodNumber;
11340
- id: z.ZodString;
11341
- target: z.ZodLazy<z.ZodObject<{
11342
- id: z.ZodObject<{
11343
- id: z.ZodString;
11344
- uid: z.ZodString;
11345
- path: z.ZodNullable<z.ZodArray<z.ZodString>>;
11346
- version: z.ZodNullable<z.ZodString>;
11347
- blockRef: z.ZodNullable<z.ZodString>;
11348
- blockRange: z.ZodNullable<z.ZodObject<{
11349
- start: z.ZodOptional<z.ZodNumber>;
11350
- end: z.ZodOptional<z.ZodNumber>;
11351
- expanded: z.ZodOptional<z.ZodBoolean>;
11352
- }, z.z.core.$strip>>;
11353
- hostname: z.ZodNullable<z.ZodString>;
11354
- scheme: z.ZodNullable<z.ZodString>;
11355
- latest: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
11356
- pageParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11357
- targetDocUid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11358
- targetDocPath: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
11359
- }, z.z.core.$strip>;
11360
- metadata: z.ZodUnion<[z.ZodObject<{
11361
- name: z.ZodOptional<z.ZodString>;
11362
- summary: z.ZodOptional<z.ZodString>;
11363
- icon: z.ZodOptional<z.ZodString>;
11364
- thumbnail: z.ZodOptional<z.ZodString>;
11365
- cover: z.ZodOptional<z.ZodString>;
11366
- siteUrl: z.ZodOptional<z.ZodString>;
11367
- agentServerUrl: z.ZodOptional<z.ZodString>;
11368
- type: z.ZodOptional<z.ZodString>;
11369
- html: z.ZodOptional<z.ZodString>;
11370
- inputSchema: z.ZodOptional<z.ZodString>;
11371
- layout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Seed/Experimental/Newspaper">, z.ZodLiteral<"">]>>;
11372
- displayPublishTime: z.ZodOptional<z.ZodString>;
11373
- displayAuthor: z.ZodOptional<z.ZodString>;
11374
- seedExperimentalLogo: z.ZodOptional<z.ZodString>;
11375
- seedExperimentalHomeOrder: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"UpdatedFirst">, z.ZodLiteral<"CreatedFirst">]>>;
11376
- showOutline: z.ZodOptional<z.ZodBoolean>;
11377
- showActivity: z.ZodOptional<z.ZodBoolean>;
11378
- contentWidth: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"S">, z.ZodLiteral<"M">, z.ZodLiteral<"L">]>>;
11379
- childrenType: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"Group">, z.ZodLiteral<"Ordered">, z.ZodLiteral<"Unordered">, z.ZodLiteral<"Blockquote">, z.ZodLiteral<"Grid">]>>>;
11380
- theme: z.ZodOptional<z.ZodObject<{
11381
- headerLayout: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"Center">, z.ZodLiteral<"">]>>;
11382
- }, z.z.core.$strip>>;
11383
- importCategories: z.ZodOptional<z.ZodString>;
11384
- importTags: z.ZodOptional<z.ZodString>;
11385
- schemaDefinition: z.ZodOptional<z.ZodString>;
11386
- }, z.z.core.$loose>, z.ZodNull]>;
11387
- hasSite: z.ZodOptional<z.ZodBoolean>;
11388
- }, z.z.core.$strict>>;
11389
- type: z.ZodLiteral<"externalCommentGroup">;
11390
- }, z.z.core.$strip>>;
11391
11015
  }, z.z.core.$strip>;
11392
11016
  }, z.z.core.$strip>, z.ZodObject<{
11393
11017
  key: z.ZodLiteral<"ListCommentsByReference">;
package/dist/hm-types.mjs CHANGED
@@ -68,7 +68,6 @@ import {
68
68
  HMDraftContentSchema,
69
69
  HMDraftMetaSchema,
70
70
  HMEmbedViewSchema,
71
- HMExternalCommentGroupSchema,
72
71
  HMGenerationInfoSchema,
73
72
  HMGetCIDInputSchema,
74
73
  HMGetCIDOutputSchema,
@@ -216,7 +215,7 @@ import {
216
215
  toNumber,
217
216
  unpackHmId,
218
217
  unpackedHmIdSchema
219
- } from "./chunk-GMSNTW7N.mjs";
218
+ } from "./chunk-EBP7SWTZ.mjs";
220
219
  import "./chunk-AHQWDCHV.mjs";
221
220
  import "./chunk-7P6ASYW6.mjs";
222
221
  export {
@@ -289,7 +288,6 @@ export {
289
288
  HMDraftContentSchema,
290
289
  HMDraftMetaSchema,
291
290
  HMEmbedViewSchema,
292
- HMExternalCommentGroupSchema,
293
291
  HMGenerationInfoSchema,
294
292
  HMGetCIDInputSchema,
295
293
  HMGetCIDOutputSchema,
@@ -2,8 +2,8 @@ import {
2
2
  annotationContains,
3
3
  hmBlockToEditorBlock,
4
4
  hmBlocksToEditorContent
5
- } from "./chunk-PODYPZBY.mjs";
6
- import "./chunk-GMSNTW7N.mjs";
5
+ } from "./chunk-PJI7DMX3.mjs";
6
+ import "./chunk-EBP7SWTZ.mjs";
7
7
  import "./chunk-AHQWDCHV.mjs";
8
8
  import "./chunk-7P6ASYW6.mjs";
9
9
  export {
package/dist/index.d.ts CHANGED
@@ -25,7 +25,7 @@ export { codePointLength, entityQueryPathToHmIdPath, getHMQueryString, hmIdPathT
25
25
  export type { HMRequest, HMSigner, UnpackedHypermediaId } from './hm-types';
26
26
  export { toHMSigner, toPrincipalSigner } from './signer';
27
27
  export type { AnySigner, PrincipalSigner } from './signer';
28
- export { resolveHypermediaUrl, resolveId, hmDomainUrlToWebUrl } from './hm-resolver';
28
+ export { resolveHypermediaUrl, resolveId, hmDomainUrlToWebUrl, extractCommentIdFromUrl } from './hm-resolver';
29
29
  export type { DomainResolverFn, DomainIdChangedCallback, ResolveOptions, ResolvedUrl } from './hm-resolver';
30
30
  export { resolveIdWithClient } from './resource-read';
31
31
  export type { ResolveIdWithClientOptions, ResolvedIdWithClient } from './resource-read';
package/dist/index.mjs CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-VYZX3LHX.mjs";
3
+ } from "./chunk-X6SZZ5HV.mjs";
4
4
  import {
5
5
  teiToBlocks
6
- } from "./chunk-O4WGAS2C.mjs";
6
+ } from "./chunk-7IKOUDLO.mjs";
7
7
  import {
8
8
  embeddedPdfToBlocks
9
9
  } from "./chunk-2FJBS3V7.mjs";
10
10
  import {
11
11
  resolveIdWithClient
12
- } from "./chunk-ZQZF75CE.mjs";
12
+ } from "./chunk-EKRKNALC.mjs";
13
13
  import {
14
14
  annotationContains,
15
15
  hmBlockToEditorBlock,
16
16
  hmBlocksToEditorContent
17
- } from "./chunk-PODYPZBY.mjs";
17
+ } from "./chunk-PJI7DMX3.mjs";
18
18
  import {
19
19
  keyfile_exports
20
20
  } from "./chunk-EY6RQVAP.mjs";
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  editorBlockToHMBlock,
38
38
  editorBlocksToHMBlockNodes
39
- } from "./chunk-DQPKO37T.mjs";
39
+ } from "./chunk-SJLLXOSE.mjs";
40
40
  import {
41
41
  encryption_exports
42
42
  } from "./chunk-UOL3F6XQ.mjs";
@@ -55,7 +55,7 @@ import {
55
55
  } from "./chunk-PPAY4WZX.mjs";
56
56
  import {
57
57
  createSeedClient
58
- } from "./chunk-QMWFLXP7.mjs";
58
+ } from "./chunk-M2LRSKSU.mjs";
59
59
  import {
60
60
  SeedClientError,
61
61
  SeedNetworkError,
@@ -67,7 +67,7 @@ import {
67
67
  deleteComment,
68
68
  trimTrailingEmptyBlocks,
69
69
  updateComment
70
- } from "./chunk-3IWI5CPN.mjs";
70
+ } from "./chunk-LOAGYTC2.mjs";
71
71
  import {
72
72
  AnnotationSet,
73
73
  addSpanToAnnotation,
@@ -88,7 +88,7 @@ import {
88
88
  documentContainsLinkToChild,
89
89
  documentHasSelfQuery,
90
90
  shouldAutoLinkParent
91
- } from "./chunk-SOYMAPYD.mjs";
91
+ } from "./chunk-5RJBMYBL.mjs";
92
92
  import {
93
93
  createChange,
94
94
  createChangeOps,
@@ -110,7 +110,7 @@ import {
110
110
  followToDocument,
111
111
  resolveDocumentState,
112
112
  resolveEditableDocument
113
- } from "./chunk-XHMBAW2Z.mjs";
113
+ } from "./chunk-EWFGDYXF.mjs";
114
114
  import "./chunk-2MD3FXKB.mjs";
115
115
  import {
116
116
  computeReplaceOps,
@@ -129,16 +129,17 @@ import {
129
129
  emitFrontmatter,
130
130
  parseDraftFilename,
131
131
  slugify
132
- } from "./chunk-MPZWQQ4T.mjs";
132
+ } from "./chunk-ASEEN3OZ.mjs";
133
133
  import {
134
+ extractCommentIdFromUrl,
134
135
  hmDomainUrlToWebUrl,
135
136
  resolveHypermediaUrl,
136
137
  resolveId
137
- } from "./chunk-IIH2GY7Y.mjs";
138
+ } from "./chunk-5LHO2KV6.mjs";
138
139
  import {
139
140
  createCapability,
140
141
  resolveCapability
141
- } from "./chunk-VUQJUPXS.mjs";
142
+ } from "./chunk-YVM3WBZH.mjs";
142
143
  import "./chunk-LVAHHQIK.mjs";
143
144
  import "./chunk-NBCHK76Q.mjs";
144
145
  import {
@@ -158,7 +159,7 @@ import {
158
159
  parseFragment,
159
160
  serializeBlockRange,
160
161
  unpackHmId
161
- } from "./chunk-GMSNTW7N.mjs";
162
+ } from "./chunk-EBP7SWTZ.mjs";
162
163
  import "./chunk-AHQWDCHV.mjs";
163
164
  import "./chunk-3TPCJCVO.mjs";
164
165
  import "./chunk-7P6ASYW6.mjs";
@@ -212,6 +213,7 @@ export {
212
213
  embeddedPdfToBlocks,
213
214
  emitFrontmatter,
214
215
  entityQueryPathToHmIdPath,
216
+ extractCommentIdFromUrl,
215
217
  fileToIpfsBlobs,
216
218
  filesToIpfsBlobs,
217
219
  flattenToOperations,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-VYZX3LHX.mjs";
4
- import "./chunk-O4WGAS2C.mjs";
3
+ } from "./chunk-X6SZZ5HV.mjs";
4
+ import "./chunk-7IKOUDLO.mjs";
5
5
  import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-GMSNTW7N.mjs";
7
+ import "./chunk-EBP7SWTZ.mjs";
8
8
  import "./chunk-AHQWDCHV.mjs";
9
9
  import "./chunk-7P6ASYW6.mjs";
10
10
  export {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  resolveIdWithClient
3
- } from "./chunk-ZQZF75CE.mjs";
4
- import "./chunk-QMWFLXP7.mjs";
3
+ } from "./chunk-EKRKNALC.mjs";
4
+ import "./chunk-M2LRSKSU.mjs";
5
5
  import "./chunk-CBELM7KX.mjs";
6
6
  import "./chunk-O5MHN2EO.mjs";
7
7
  import "./chunk-PJ2RFT5A.mjs";
8
- import "./chunk-IIH2GY7Y.mjs";
8
+ import "./chunk-5LHO2KV6.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-GMSNTW7N.mjs";
11
+ import "./chunk-EBP7SWTZ.mjs";
12
12
  import "./chunk-AHQWDCHV.mjs";
13
13
  import "./chunk-7P6ASYW6.mjs";
14
14
  export {
@@ -17,11 +17,11 @@ import {
17
17
  resolveSchemaRef,
18
18
  schemaDefinitionCid,
19
19
  withoutSchemaLink
20
- } from "./chunk-2NMNRO4D.mjs";
20
+ } from "./chunk-53V3XTMB.mjs";
21
21
  import "./chunk-MZMGRUTQ.mjs";
22
22
  import "./chunk-HSDV6WEU.mjs";
23
23
  import "./chunk-VWSAFDOL.mjs";
24
- import "./chunk-GMSNTW7N.mjs";
24
+ import "./chunk-EBP7SWTZ.mjs";
25
25
  import "./chunk-AHQWDCHV.mjs";
26
26
  import "./chunk-7P6ASYW6.mjs";
27
27
  export {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  classifyRef
3
- } from "./chunk-2NMNRO4D.mjs";
3
+ } from "./chunk-53V3XTMB.mjs";
4
4
  import {
5
5
  kindOf,
6
6
  nameForCid,
@@ -13,7 +13,7 @@ import {
13
13
  import "./chunk-VWSAFDOL.mjs";
14
14
  import {
15
15
  unpackHmId
16
- } from "./chunk-GMSNTW7N.mjs";
16
+ } from "./chunk-EBP7SWTZ.mjs";
17
17
  import "./chunk-AHQWDCHV.mjs";
18
18
  import "./chunk-7P6ASYW6.mjs";
19
19
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-O4WGAS2C.mjs";
4
- import "./chunk-GMSNTW7N.mjs";
3
+ } from "./chunk-7IKOUDLO.mjs";
4
+ import "./chunk-EBP7SWTZ.mjs";
5
5
  import "./chunk-AHQWDCHV.mjs";
6
6
  import "./chunk-7P6ASYW6.mjs";
7
7
  export {
package/dist/unicode.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  codePointLength,
9
9
  isSurrogate
10
- } from "./chunk-GMSNTW7N.mjs";
10
+ } from "./chunk-EBP7SWTZ.mjs";
11
11
  import "./chunk-AHQWDCHV.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seed-hypermedia/client",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",