@seed-hypermedia/client 0.0.97 → 0.0.99

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 (37) hide show
  1. package/dist/auto-link.mjs +3 -3
  2. package/dist/blocks-to-markdown.mjs +2 -2
  3. package/dist/capability.mjs +2 -2
  4. package/dist/{chunk-CVHEDNGU.mjs → chunk-4HRE5RLC.mjs} +1 -1
  5. package/dist/{chunk-JKXO3OWO.mjs → chunk-7WWI7MDG.mjs} +1 -1
  6. package/dist/{chunk-CTJU7XIA.mjs → chunk-AN7IS7UT.mjs} +1 -1
  7. package/dist/{chunk-F72LNF4Q.mjs → chunk-FCOBC7SH.mjs} +1 -1
  8. package/dist/{chunk-Y3HCUNXC.mjs → chunk-HUGY2OQM.mjs} +16 -7
  9. package/dist/{chunk-2KOZBPIM.mjs → chunk-IW3I7TQJ.mjs} +10 -1
  10. package/dist/{chunk-HJ4ACOMW.mjs → chunk-IXYSNJ4P.mjs} +1 -1
  11. package/dist/{chunk-QVRJGK77.mjs → chunk-K5NYTWBJ.mjs} +30 -1
  12. package/dist/{chunk-FLUWADFC.mjs → chunk-LXN2DFPO.mjs} +1 -1
  13. package/dist/{chunk-GRBJUKWS.mjs → chunk-O6WMVXYX.mjs} +3 -3
  14. package/dist/{chunk-6YGIRB3K.mjs → chunk-PLHPUUUF.mjs} +1 -1
  15. package/dist/{chunk-BGXPPECP.mjs → chunk-RS4GOQBZ.mjs} +1 -1
  16. package/dist/{chunk-AUY42GMB.mjs → chunk-SD5QINAJ.mjs} +1 -1
  17. package/dist/{chunk-KD3ZIXZV.mjs → chunk-TWX7MSMH.mjs} +2 -2
  18. package/dist/{chunk-XHF4IQ4R.mjs → chunk-XL2DYLXF.mjs} +1 -1
  19. package/dist/client.mjs +2 -2
  20. package/dist/comment.mjs +2 -2
  21. package/dist/document-state.mjs +2 -2
  22. package/dist/editorblock-to-hmblock.mjs +2 -2
  23. package/dist/hm-resolver.mjs +2 -2
  24. package/dist/hm-types.d.ts +146 -34
  25. package/dist/hm-types.mjs +3 -1
  26. package/dist/hmblock-to-editorblock.mjs +2 -2
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.mjs +16 -14
  29. package/dist/markdown-to-blocks.d.ts +10 -0
  30. package/dist/markdown-to-blocks.mjs +3 -1
  31. package/dist/pdf-to-blocks.mjs +3 -3
  32. package/dist/resource-read.mjs +4 -4
  33. package/dist/schema-resolve.mjs +2 -2
  34. package/dist/schema-subtypes.mjs +2 -2
  35. package/dist/tei-to-blocks.mjs +2 -2
  36. package/dist/unicode.mjs +1 -1
  37. package/package.json +1 -1
@@ -4,13 +4,13 @@ import {
4
4
  documentContainsLinkToChild,
5
5
  documentHasSelfQuery,
6
6
  shouldAutoLinkParent
7
- } from "./chunk-KD3ZIXZV.mjs";
7
+ } from "./chunk-TWX7MSMH.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-CTJU7XIA.mjs";
10
+ import "./chunk-AN7IS7UT.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
- import "./chunk-2KOZBPIM.mjs";
13
+ import "./chunk-IW3I7TQJ.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-BGXPPECP.mjs";
11
- import "./chunk-2KOZBPIM.mjs";
10
+ } from "./chunk-RS4GOQBZ.mjs";
11
+ import "./chunk-IW3I7TQJ.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-JKXO3OWO.mjs";
4
+ } from "./chunk-7WWI7MDG.mjs";
5
5
  import "./chunk-LVAHHQIK.mjs";
6
6
  import "./chunk-NBCHK76Q.mjs";
7
7
  import "./chunk-DR3HJ6BV.mjs";
8
- import "./chunk-2KOZBPIM.mjs";
8
+ import "./chunk-IW3I7TQJ.mjs";
9
9
  import "./chunk-3TPCJCVO.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
11
11
  export {
@@ -2,7 +2,7 @@ import {
2
2
  entityQueryPathToHmIdPath,
3
3
  parseFragment,
4
4
  unpackHmId
5
- } from "./chunk-2KOZBPIM.mjs";
5
+ } from "./chunk-IW3I7TQJ.mjs";
6
6
 
7
7
  // src/hm-resolver.ts
8
8
  async function resolveHypermediaUrl(url, opts) {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-2KOZBPIM.mjs";
10
+ } from "./chunk-IW3I7TQJ.mjs";
11
11
 
12
12
  // src/capability.ts
13
13
  import { base58btc } from "multiformats/bases/base58";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  packHmId,
3
3
  unpackHmId
4
- } from "./chunk-2KOZBPIM.mjs";
4
+ } from "./chunk-IW3I7TQJ.mjs";
5
5
 
6
6
  // src/document-state.ts
7
7
  async function resolveDocumentState(client, targetId) {
@@ -6,7 +6,7 @@ import {
6
6
  HMBlockSchema,
7
7
  codePointLength,
8
8
  toNumber
9
- } from "./chunk-2KOZBPIM.mjs";
9
+ } from "./chunk-IW3I7TQJ.mjs";
10
10
 
11
11
  // src/editorblock-to-hmblock.ts
12
12
  function toHMBlockType(editorBlockType) {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-2KOZBPIM.mjs";
12
+ } from "./chunk-IW3I7TQJ.mjs";
13
13
 
14
14
  // src/comment.ts
15
15
  import { decode as cborDecode, encode as cborEncode } from "@ipld/dag-cbor";
@@ -43,7 +43,7 @@ function resolveQuotingTarget(input) {
43
43
  function annotationsToPublishable(annotations) {
44
44
  validateExclusiveAnnotations(annotations);
45
45
  return annotations.map((annotation) => {
46
- var _a, _b, _c, _d;
46
+ var _a, _b, _c, _d, _e;
47
47
  const { type, starts, ends } = annotation;
48
48
  if (type === "Bold") return { type: "Bold", starts, ends };
49
49
  if (type === "Italic") return { type: "Italic", starts, ends };
@@ -51,20 +51,29 @@ function annotationsToPublishable(annotations) {
51
51
  if (type === "Strike") return { type: "Strike", starts, ends };
52
52
  if (type === "Code") return { type: "Code", starts, ends };
53
53
  if (type === "Link") return { type: "Link", starts, ends, link: annotation.link || "" };
54
- if (type === "Embed") return { type: "Embed", starts, ends, link: annotation.link || "" };
54
+ if (type === "Embed") {
55
+ const mentionKind = (_a = annotation.attributes) == null ? void 0 : _a.mentionKind;
56
+ return {
57
+ type: "Embed",
58
+ starts,
59
+ ends,
60
+ link: annotation.link || "",
61
+ ...mentionKind === "account" || mentionKind === "document" ? { attributes: { mentionKind } } : {}
62
+ };
63
+ }
55
64
  if (type === "TextColor")
56
- return { type: "TextColor", starts, ends, attributes: { value: ((_a = annotation.attributes) == null ? void 0 : _a.value) || "" } };
65
+ return { type: "TextColor", starts, ends, attributes: { value: ((_b = annotation.attributes) == null ? void 0 : _b.value) || "" } };
57
66
  if (type === "BackgroundColor")
58
67
  return {
59
68
  type: "BackgroundColor",
60
69
  starts,
61
70
  ends,
62
- attributes: { value: ((_b = annotation.attributes) == null ? void 0 : _b.value) || "" }
71
+ attributes: { value: ((_c = annotation.attributes) == null ? void 0 : _c.value) || "" }
63
72
  };
64
73
  if (type === "TextSize")
65
- return { type: "TextSize", starts, ends, attributes: { value: ((_c = annotation.attributes) == null ? void 0 : _c.value) || "" } };
74
+ return { type: "TextSize", starts, ends, attributes: { value: ((_d = annotation.attributes) == null ? void 0 : _d.value) || "" } };
66
75
  if (type === "TextFamily")
67
- return { type: "TextFamily", starts, ends, attributes: { value: ((_d = annotation.attributes) == null ? void 0 : _d.value) || "" } };
76
+ return { type: "TextFamily", starts, ends, attributes: { value: ((_e = annotation.attributes) == null ? void 0 : _e.value) || "" } };
68
77
  throw new Error(`Unsupported annotation type: ${type}`);
69
78
  });
70
79
  }
@@ -1055,7 +1055,7 @@ var HMQueryBlockInputSchema = z.object({
1055
1055
  filters: z.array(
1056
1056
  z.object({
1057
1057
  columnId: z.string(),
1058
- operator: z.enum(["contains", "equals", "greaterThan", "lessThan"]),
1058
+ operator: z.enum(["contains", "equals", "notEquals", "greaterThan", "lessThan"]),
1059
1059
  value: z.string()
1060
1060
  })
1061
1061
  ).optional()
@@ -1295,11 +1295,19 @@ var HMQueryBlockItemSummarySchema = z.object({
1295
1295
  children: z.number().optional(),
1296
1296
  authorUids: z.array(z.string()).default([])
1297
1297
  });
1298
+ var HMQueryBlockFilterOptionsSchema = z.record(
1299
+ z.string(),
1300
+ z.object({
1301
+ values: z.array(z.string()),
1302
+ type: z.enum(["text", "number", "boolean", "date", "list"])
1303
+ })
1304
+ );
1298
1305
  var HMQueryBlockPayloadSchema = z.object({
1299
1306
  queryTargetName: z.string(),
1300
1307
  in: unpackedHmIdSchema,
1301
1308
  results: z.array(HMDocumentInfoSchema),
1302
1309
  totalMatches: z.number().optional(),
1310
+ filterOptions: HMQueryBlockFilterOptionsSchema.optional(),
1303
1311
  mode: z.union([z.literal("Children"), z.literal("AllDescendants")]).optional(),
1304
1312
  interactionSummaries: z.record(z.string(), HMQueryBlockItemSummarySchema),
1305
1313
  accountsMetadata: HMAccountsMetadataSchema
@@ -1845,6 +1853,7 @@ export {
1845
1853
  HMInteractionSummaryOutputSchema,
1846
1854
  HMInteractionSummaryRequestSchema,
1847
1855
  HMQueryBlockItemSummarySchema,
1856
+ HMQueryBlockFilterOptionsSchema,
1848
1857
  HMQueryBlockPayloadSchema,
1849
1858
  HMQueryBlockRequestSchema,
1850
1859
  HMPublishBlobsOutputSchema,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  codePointLength
3
- } from "./chunk-2KOZBPIM.mjs";
3
+ } from "./chunk-IW3I7TQJ.mjs";
4
4
 
5
5
  // src/tei-to-blocks.ts
6
6
  function generateBlockId() {
@@ -134,8 +134,16 @@ function parseInlineFormatting(raw) {
134
134
  if (/^[a-zA-Z][a-zA-Z0-9+.-]*:\S*$/.test(inner) && !/[\s<>]/.test(inner)) {
135
135
  const start = text.length;
136
136
  if (inner.startsWith("hm://")) {
137
+ if (text.endsWith("@")) text = text.slice(0, -1);
138
+ const mentionStart = text.length;
137
139
  text += "\uFFFC";
138
- annotations.push({ type: "Embed", starts: [start], ends: [text.length], link: inner });
140
+ annotations.push({
141
+ type: "Embed",
142
+ starts: [mentionStart],
143
+ ends: [text.length],
144
+ link: inner,
145
+ ...hmAccountMentionUid(inner) ? { attributes: { mentionKind: "account" } } : {}
146
+ });
139
147
  } else {
140
148
  text += inner;
141
149
  annotations.push({ type: "Link", starts: [start], ends: [text.length], link: inner });
@@ -157,6 +165,19 @@ function parseInlineFormatting(raw) {
157
165
  if (ch === "[") {
158
166
  const link = readLink(raw, i);
159
167
  if (link) {
168
+ if (isMentionLabel(link.label) && /^hm:\/\//.test(link.url.trim())) {
169
+ const start2 = text.length;
170
+ text += "\uFFFC";
171
+ annotations.push({
172
+ type: "Embed",
173
+ starts: [start2],
174
+ ends: [text.length],
175
+ link: link.url.trim(),
176
+ attributes: { mentionKind: hmAccountMentionUid(link.url) ? "account" : "document" }
177
+ });
178
+ i = link.end;
179
+ continue;
180
+ }
160
181
  const parsed = parseInlineFormatting(link.label);
161
182
  const start = text.length;
162
183
  appendParsed(parsed);
@@ -202,6 +223,13 @@ function findBacktickRun(s, from, n) {
202
223
  }
203
224
  return -1;
204
225
  }
226
+ function hmAccountMentionUid(url) {
227
+ const match = /^hm:\/\/([A-Za-z0-9]+)(?:\/(?::profile\/?)?)?$/.exec(url.trim());
228
+ return match ? match[1] : null;
229
+ }
230
+ function isMentionLabel(label) {
231
+ return /^\s*@/.test(label);
232
+ }
205
233
  function readLink(s, open) {
206
234
  let depth = 0;
207
235
  let i = open;
@@ -864,6 +892,7 @@ function flattenToOperations(tree, parentId = "") {
864
892
 
865
893
  export {
866
894
  parseInlineFormatting,
895
+ hmAccountMentionUid,
867
896
  mergeAdjacentAnnotations,
868
897
  parseFrontmatter,
869
898
  parseMarkdown,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSurrogate
3
- } from "./chunk-2KOZBPIM.mjs";
3
+ } from "./chunk-IW3I7TQJ.mjs";
4
4
 
5
5
  // src/hmblock-to-editorblock.ts
6
6
  function toEditorBlockType(hmBlockType) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  resolveId
3
- } from "./chunk-CVHEDNGU.mjs";
3
+ } from "./chunk-4HRE5RLC.mjs";
4
4
  import {
5
5
  createSeedClient
6
- } from "./chunk-XHF4IQ4R.mjs";
6
+ } from "./chunk-XL2DYLXF.mjs";
7
7
  import {
8
8
  unpackHmId
9
- } from "./chunk-2KOZBPIM.mjs";
9
+ } from "./chunk-IW3I7TQJ.mjs";
10
10
 
11
11
  // src/resource-read.ts
12
12
  async function resolveIdWithClient(rawId, options = {}) {
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  packHmId,
22
22
  unpackHmId
23
- } from "./chunk-2KOZBPIM.mjs";
23
+ } from "./chunk-IW3I7TQJ.mjs";
24
24
 
25
25
  // src/schema-resolve.ts
26
26
  var DAG_CBOR_CODE = 113;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  normalizeQuerySort,
3
3
  unpackHmId
4
- } from "./chunk-2KOZBPIM.mjs";
4
+ } from "./chunk-IW3I7TQJ.mjs";
5
5
 
6
6
  // src/blocks-to-markdown.ts
7
7
  import { stringify as stringifyYaml } from "yaml";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-HJ4ACOMW.mjs";
3
+ } from "./chunk-IXYSNJ4P.mjs";
4
4
  import {
5
5
  embeddedPdfToBlocks
6
6
  } from "./chunk-2FJBS3V7.mjs";
@@ -7,12 +7,12 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-CTJU7XIA.mjs";
10
+ } from "./chunk-AN7IS7UT.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
14
14
  unpackHmId
15
- } from "./chunk-2KOZBPIM.mjs";
15
+ } from "./chunk-IW3I7TQJ.mjs";
16
16
 
17
17
  // src/auto-link.ts
18
18
  import { CID } from "multiformats/cid";
@@ -15,7 +15,7 @@ import {
15
15
  HMActionSchema,
16
16
  HMRequestSchema,
17
17
  packHmId
18
- } from "./chunk-2KOZBPIM.mjs";
18
+ } from "./chunk-IW3I7TQJ.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
package/dist/client.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createSeedClient,
3
3
  deserializeQueryString
4
- } from "./chunk-XHF4IQ4R.mjs";
4
+ } from "./chunk-XL2DYLXF.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-2KOZBPIM.mjs";
10
+ import "./chunk-IW3I7TQJ.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-Y3HCUNXC.mjs";
7
+ } from "./chunk-HUGY2OQM.mjs";
8
8
  import "./chunk-JKKS35IS.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-2KOZBPIM.mjs";
11
+ import "./chunk-IW3I7TQJ.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
14
14
  commentRecordIdFromBlob,
@@ -4,8 +4,8 @@ import {
4
4
  followToDocument,
5
5
  resolveDocumentState,
6
6
  resolveEditableDocument
7
- } from "./chunk-CTJU7XIA.mjs";
8
- import "./chunk-2KOZBPIM.mjs";
7
+ } from "./chunk-AN7IS7UT.mjs";
8
+ import "./chunk-IW3I7TQJ.mjs";
9
9
  import "./chunk-7P6ASYW6.mjs";
10
10
  export {
11
11
  describeRedirect,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  editorBlockToHMBlock,
3
3
  editorBlocksToHMBlockNodes
4
- } from "./chunk-F72LNF4Q.mjs";
4
+ } from "./chunk-FCOBC7SH.mjs";
5
5
  import "./chunk-JKKS35IS.mjs";
6
- import "./chunk-2KOZBPIM.mjs";
6
+ import "./chunk-IW3I7TQJ.mjs";
7
7
  import "./chunk-7P6ASYW6.mjs";
8
8
  export {
9
9
  editorBlockToHMBlock,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  resolveHypermediaUrl,
3
3
  resolveId
4
- } from "./chunk-CVHEDNGU.mjs";
5
- import "./chunk-2KOZBPIM.mjs";
4
+ } from "./chunk-4HRE5RLC.mjs";
5
+ import "./chunk-IW3I7TQJ.mjs";
6
6
  import "./chunk-7P6ASYW6.mjs";
7
7
  export {
8
8
  resolveHypermediaUrl,
@@ -2740,6 +2740,9 @@ export type HMPublishableAnnotation = {
2740
2740
  starts: number[];
2741
2741
  ends: number[];
2742
2742
  link: string;
2743
+ attributes?: {
2744
+ mentionKind?: 'account' | 'document';
2745
+ };
2743
2746
  } | {
2744
2747
  type: 'TextColor' | 'BackgroundColor' | 'TextSize' | 'TextFamily';
2745
2748
  starts: number[];
@@ -25739,30 +25742,30 @@ export declare const HMQueryBlockInputSchema: z.ZodObject<{
25739
25742
  search: z.ZodOptional<z.ZodString>;
25740
25743
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
25741
25744
  columnId: z.ZodString;
25742
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
25745
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
25743
25746
  value: z.ZodString;
25744
25747
  }, "strip", z.ZodTypeAny, {
25745
25748
  value: string;
25746
25749
  columnId: string;
25747
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25750
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25748
25751
  }, {
25749
25752
  value: string;
25750
25753
  columnId: string;
25751
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25754
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25752
25755
  }>, "many">>;
25753
25756
  }, "strip", z.ZodTypeAny, {
25754
25757
  search?: string | undefined;
25755
25758
  filters?: {
25756
25759
  value: string;
25757
25760
  columnId: string;
25758
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25761
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25759
25762
  }[] | undefined;
25760
25763
  }, {
25761
25764
  search?: string | undefined;
25762
25765
  filters?: {
25763
25766
  value: string;
25764
25767
  columnId: string;
25765
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25768
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25766
25769
  }[] | undefined;
25767
25770
  }>>;
25768
25771
  }, "strip", z.ZodTypeAny, {
@@ -25783,7 +25786,7 @@ export declare const HMQueryBlockInputSchema: z.ZodObject<{
25783
25786
  filters?: {
25784
25787
  value: string;
25785
25788
  columnId: string;
25786
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25789
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25787
25790
  }[] | undefined;
25788
25791
  } | undefined;
25789
25792
  }, {
@@ -25804,7 +25807,7 @@ export declare const HMQueryBlockInputSchema: z.ZodObject<{
25804
25807
  filters?: {
25805
25808
  value: string;
25806
25809
  columnId: string;
25807
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25810
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25808
25811
  }[] | undefined;
25809
25812
  } | undefined;
25810
25813
  }>;
@@ -40236,6 +40239,19 @@ export declare const HMQueryBlockItemSummarySchema: z.ZodObject<{
40236
40239
  authorUids?: string[] | undefined;
40237
40240
  }>;
40238
40241
  export type HMQueryBlockItemSummary = z.infer<typeof HMQueryBlockItemSummarySchema>;
40242
+ /** Existing filter values and inferred column types from the full collection scope. */
40243
+ export declare const HMQueryBlockFilterOptionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40244
+ values: z.ZodArray<z.ZodString, "many">;
40245
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
40246
+ }, "strip", z.ZodTypeAny, {
40247
+ values: string[];
40248
+ type: "number" | "boolean" | "date" | "text" | "list";
40249
+ }, {
40250
+ values: string[];
40251
+ type: "number" | "boolean" | "date" | "text" | "list";
40252
+ }>>;
40253
+ /** Filter choices available before viewer search, filters, and display limits. */
40254
+ export type HMQueryBlockFilterOptions = z.infer<typeof HMQueryBlockFilterOptionsSchema>;
40239
40255
  export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
40240
40256
  queryTargetName: z.ZodString;
40241
40257
  in: z.ZodObject<{
@@ -40795,6 +40811,16 @@ export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
40795
40811
  firstImageInContent?: string | undefined;
40796
40812
  }>, "many">;
40797
40813
  totalMatches: z.ZodOptional<z.ZodNumber>;
40814
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
40815
+ values: z.ZodArray<z.ZodString, "many">;
40816
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
40817
+ }, "strip", z.ZodTypeAny, {
40818
+ values: string[];
40819
+ type: "number" | "boolean" | "date" | "text" | "list";
40820
+ }, {
40821
+ values: string[];
40822
+ type: "number" | "boolean" | "date" | "text" | "list";
40823
+ }>>>;
40798
40824
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
40799
40825
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
40800
40826
  comments: z.ZodNumber;
@@ -41330,6 +41356,10 @@ export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
41330
41356
  }>;
41331
41357
  mode?: "Children" | "AllDescendants" | undefined;
41332
41358
  totalMatches?: number | undefined;
41359
+ filterOptions?: Record<string, {
41360
+ values: string[];
41361
+ type: "number" | "boolean" | "date" | "text" | "list";
41362
+ }> | undefined;
41333
41363
  }, {
41334
41364
  in: {
41335
41365
  path: string[] | null;
@@ -41515,6 +41545,10 @@ export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
41515
41545
  }>;
41516
41546
  mode?: "Children" | "AllDescendants" | undefined;
41517
41547
  totalMatches?: number | undefined;
41548
+ filterOptions?: Record<string, {
41549
+ values: string[];
41550
+ type: "number" | "boolean" | "date" | "text" | "list";
41551
+ }> | undefined;
41518
41552
  }>;
41519
41553
  export type HMQueryBlockPayload = z.infer<typeof HMQueryBlockPayloadSchema>;
41520
41554
  export declare const HMQueryBlockRequestSchema: z.ZodObject<{
@@ -41578,30 +41612,30 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
41578
41612
  search: z.ZodOptional<z.ZodString>;
41579
41613
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
41580
41614
  columnId: z.ZodString;
41581
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
41615
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
41582
41616
  value: z.ZodString;
41583
41617
  }, "strip", z.ZodTypeAny, {
41584
41618
  value: string;
41585
41619
  columnId: string;
41586
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41620
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41587
41621
  }, {
41588
41622
  value: string;
41589
41623
  columnId: string;
41590
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41624
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41591
41625
  }>, "many">>;
41592
41626
  }, "strip", z.ZodTypeAny, {
41593
41627
  search?: string | undefined;
41594
41628
  filters?: {
41595
41629
  value: string;
41596
41630
  columnId: string;
41597
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41631
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41598
41632
  }[] | undefined;
41599
41633
  }, {
41600
41634
  search?: string | undefined;
41601
41635
  filters?: {
41602
41636
  value: string;
41603
41637
  columnId: string;
41604
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41638
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41605
41639
  }[] | undefined;
41606
41640
  }>>;
41607
41641
  }, "strip", z.ZodTypeAny, {
@@ -41622,7 +41656,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
41622
41656
  filters?: {
41623
41657
  value: string;
41624
41658
  columnId: string;
41625
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41659
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41626
41660
  }[] | undefined;
41627
41661
  } | undefined;
41628
41662
  }, {
@@ -41643,7 +41677,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
41643
41677
  filters?: {
41644
41678
  value: string;
41645
41679
  columnId: string;
41646
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41680
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41647
41681
  }[] | undefined;
41648
41682
  } | undefined;
41649
41683
  }>;
@@ -42206,6 +42240,16 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42206
42240
  firstImageInContent?: string | undefined;
42207
42241
  }>, "many">;
42208
42242
  totalMatches: z.ZodOptional<z.ZodNumber>;
42243
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
42244
+ values: z.ZodArray<z.ZodString, "many">;
42245
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
42246
+ }, "strip", z.ZodTypeAny, {
42247
+ values: string[];
42248
+ type: "number" | "boolean" | "date" | "text" | "list";
42249
+ }, {
42250
+ values: string[];
42251
+ type: "number" | "boolean" | "date" | "text" | "list";
42252
+ }>>>;
42209
42253
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
42210
42254
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
42211
42255
  comments: z.ZodNumber;
@@ -42741,6 +42785,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42741
42785
  }>;
42742
42786
  mode?: "Children" | "AllDescendants" | undefined;
42743
42787
  totalMatches?: number | undefined;
42788
+ filterOptions?: Record<string, {
42789
+ values: string[];
42790
+ type: "number" | "boolean" | "date" | "text" | "list";
42791
+ }> | undefined;
42744
42792
  }, {
42745
42793
  in: {
42746
42794
  path: string[] | null;
@@ -42926,6 +42974,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42926
42974
  }>;
42927
42975
  mode?: "Children" | "AllDescendants" | undefined;
42928
42976
  totalMatches?: number | undefined;
42977
+ filterOptions?: Record<string, {
42978
+ values: string[];
42979
+ type: "number" | "boolean" | "date" | "text" | "list";
42980
+ }> | undefined;
42929
42981
  }>>;
42930
42982
  }, "strip", z.ZodTypeAny, {
42931
42983
  key: "QueryBlock";
@@ -42947,7 +42999,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42947
42999
  filters?: {
42948
43000
  value: string;
42949
43001
  columnId: string;
42950
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
43002
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
42951
43003
  }[] | undefined;
42952
43004
  } | undefined;
42953
43005
  };
@@ -43136,6 +43188,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
43136
43188
  }>;
43137
43189
  mode?: "Children" | "AllDescendants" | undefined;
43138
43190
  totalMatches?: number | undefined;
43191
+ filterOptions?: Record<string, {
43192
+ values: string[];
43193
+ type: "number" | "boolean" | "date" | "text" | "list";
43194
+ }> | undefined;
43139
43195
  } | null;
43140
43196
  }, {
43141
43197
  key: "QueryBlock";
@@ -43157,7 +43213,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
43157
43213
  filters?: {
43158
43214
  value: string;
43159
43215
  columnId: string;
43160
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
43216
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
43161
43217
  }[] | undefined;
43162
43218
  } | undefined;
43163
43219
  };
@@ -43346,6 +43402,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
43346
43402
  }>;
43347
43403
  mode?: "Children" | "AllDescendants" | undefined;
43348
43404
  totalMatches?: number | undefined;
43405
+ filterOptions?: Record<string, {
43406
+ values: string[];
43407
+ type: "number" | "boolean" | "date" | "text" | "list";
43408
+ }> | undefined;
43349
43409
  } | null;
43350
43410
  }>;
43351
43411
  export type HMQueryBlockRequest = z.infer<typeof HMQueryBlockRequestSchema>;
@@ -50675,30 +50735,30 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
50675
50735
  search: z.ZodOptional<z.ZodString>;
50676
50736
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
50677
50737
  columnId: z.ZodString;
50678
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
50738
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
50679
50739
  value: z.ZodString;
50680
50740
  }, "strip", z.ZodTypeAny, {
50681
50741
  value: string;
50682
50742
  columnId: string;
50683
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50743
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50684
50744
  }, {
50685
50745
  value: string;
50686
50746
  columnId: string;
50687
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50747
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50688
50748
  }>, "many">>;
50689
50749
  }, "strip", z.ZodTypeAny, {
50690
50750
  search?: string | undefined;
50691
50751
  filters?: {
50692
50752
  value: string;
50693
50753
  columnId: string;
50694
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50754
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50695
50755
  }[] | undefined;
50696
50756
  }, {
50697
50757
  search?: string | undefined;
50698
50758
  filters?: {
50699
50759
  value: string;
50700
50760
  columnId: string;
50701
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50761
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50702
50762
  }[] | undefined;
50703
50763
  }>>;
50704
50764
  }, "strip", z.ZodTypeAny, {
@@ -50719,7 +50779,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
50719
50779
  filters?: {
50720
50780
  value: string;
50721
50781
  columnId: string;
50722
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50782
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50723
50783
  }[] | undefined;
50724
50784
  } | undefined;
50725
50785
  }, {
@@ -50740,7 +50800,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
50740
50800
  filters?: {
50741
50801
  value: string;
50742
50802
  columnId: string;
50743
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50803
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50744
50804
  }[] | undefined;
50745
50805
  } | undefined;
50746
50806
  }>;
@@ -51303,6 +51363,16 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
51303
51363
  firstImageInContent?: string | undefined;
51304
51364
  }>, "many">;
51305
51365
  totalMatches: z.ZodOptional<z.ZodNumber>;
51366
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
51367
+ values: z.ZodArray<z.ZodString, "many">;
51368
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
51369
+ }, "strip", z.ZodTypeAny, {
51370
+ values: string[];
51371
+ type: "number" | "boolean" | "date" | "text" | "list";
51372
+ }, {
51373
+ values: string[];
51374
+ type: "number" | "boolean" | "date" | "text" | "list";
51375
+ }>>>;
51306
51376
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
51307
51377
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
51308
51378
  comments: z.ZodNumber;
@@ -51838,6 +51908,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
51838
51908
  }>;
51839
51909
  mode?: "Children" | "AllDescendants" | undefined;
51840
51910
  totalMatches?: number | undefined;
51911
+ filterOptions?: Record<string, {
51912
+ values: string[];
51913
+ type: "number" | "boolean" | "date" | "text" | "list";
51914
+ }> | undefined;
51841
51915
  }, {
51842
51916
  in: {
51843
51917
  path: string[] | null;
@@ -52023,6 +52097,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52023
52097
  }>;
52024
52098
  mode?: "Children" | "AllDescendants" | undefined;
52025
52099
  totalMatches?: number | undefined;
52100
+ filterOptions?: Record<string, {
52101
+ values: string[];
52102
+ type: "number" | "boolean" | "date" | "text" | "list";
52103
+ }> | undefined;
52026
52104
  }>>;
52027
52105
  }, "strip", z.ZodTypeAny, {
52028
52106
  key: "QueryBlock";
@@ -52044,7 +52122,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52044
52122
  filters?: {
52045
52123
  value: string;
52046
52124
  columnId: string;
52047
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
52125
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
52048
52126
  }[] | undefined;
52049
52127
  } | undefined;
52050
52128
  };
@@ -52233,6 +52311,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52233
52311
  }>;
52234
52312
  mode?: "Children" | "AllDescendants" | undefined;
52235
52313
  totalMatches?: number | undefined;
52314
+ filterOptions?: Record<string, {
52315
+ values: string[];
52316
+ type: "number" | "boolean" | "date" | "text" | "list";
52317
+ }> | undefined;
52236
52318
  } | null;
52237
52319
  }, {
52238
52320
  key: "QueryBlock";
@@ -52254,7 +52336,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52254
52336
  filters?: {
52255
52337
  value: string;
52256
52338
  columnId: string;
52257
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
52339
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
52258
52340
  }[] | undefined;
52259
52341
  } | undefined;
52260
52342
  };
@@ -52443,6 +52525,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52443
52525
  }>;
52444
52526
  mode?: "Children" | "AllDescendants" | undefined;
52445
52527
  totalMatches?: number | undefined;
52528
+ filterOptions?: Record<string, {
52529
+ values: string[];
52530
+ type: "number" | "boolean" | "date" | "text" | "list";
52531
+ }> | undefined;
52446
52532
  } | null;
52447
52533
  }>, z.ZodObject<{
52448
52534
  key: z.ZodLiteral<"AccountContacts">;
@@ -68776,30 +68862,30 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
68776
68862
  search: z.ZodOptional<z.ZodString>;
68777
68863
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
68778
68864
  columnId: z.ZodString;
68779
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
68865
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
68780
68866
  value: z.ZodString;
68781
68867
  }, "strip", z.ZodTypeAny, {
68782
68868
  value: string;
68783
68869
  columnId: string;
68784
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68870
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68785
68871
  }, {
68786
68872
  value: string;
68787
68873
  columnId: string;
68788
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68874
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68789
68875
  }>, "many">>;
68790
68876
  }, "strip", z.ZodTypeAny, {
68791
68877
  search?: string | undefined;
68792
68878
  filters?: {
68793
68879
  value: string;
68794
68880
  columnId: string;
68795
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68881
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68796
68882
  }[] | undefined;
68797
68883
  }, {
68798
68884
  search?: string | undefined;
68799
68885
  filters?: {
68800
68886
  value: string;
68801
68887
  columnId: string;
68802
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68888
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68803
68889
  }[] | undefined;
68804
68890
  }>>;
68805
68891
  }, "strip", z.ZodTypeAny, {
@@ -68820,7 +68906,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
68820
68906
  filters?: {
68821
68907
  value: string;
68822
68908
  columnId: string;
68823
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68909
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68824
68910
  }[] | undefined;
68825
68911
  } | undefined;
68826
68912
  }, {
@@ -68841,7 +68927,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
68841
68927
  filters?: {
68842
68928
  value: string;
68843
68929
  columnId: string;
68844
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68930
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68845
68931
  }[] | undefined;
68846
68932
  } | undefined;
68847
68933
  }>;
@@ -69404,6 +69490,16 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
69404
69490
  firstImageInContent?: string | undefined;
69405
69491
  }>, "many">;
69406
69492
  totalMatches: z.ZodOptional<z.ZodNumber>;
69493
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
69494
+ values: z.ZodArray<z.ZodString, "many">;
69495
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
69496
+ }, "strip", z.ZodTypeAny, {
69497
+ values: string[];
69498
+ type: "number" | "boolean" | "date" | "text" | "list";
69499
+ }, {
69500
+ values: string[];
69501
+ type: "number" | "boolean" | "date" | "text" | "list";
69502
+ }>>>;
69407
69503
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
69408
69504
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
69409
69505
  comments: z.ZodNumber;
@@ -69939,6 +70035,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
69939
70035
  }>;
69940
70036
  mode?: "Children" | "AllDescendants" | undefined;
69941
70037
  totalMatches?: number | undefined;
70038
+ filterOptions?: Record<string, {
70039
+ values: string[];
70040
+ type: "number" | "boolean" | "date" | "text" | "list";
70041
+ }> | undefined;
69942
70042
  }, {
69943
70043
  in: {
69944
70044
  path: string[] | null;
@@ -70124,6 +70224,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70124
70224
  }>;
70125
70225
  mode?: "Children" | "AllDescendants" | undefined;
70126
70226
  totalMatches?: number | undefined;
70227
+ filterOptions?: Record<string, {
70228
+ values: string[];
70229
+ type: "number" | "boolean" | "date" | "text" | "list";
70230
+ }> | undefined;
70127
70231
  }>>;
70128
70232
  }, "strip", z.ZodTypeAny, {
70129
70233
  key: "QueryBlock";
@@ -70145,7 +70249,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70145
70249
  filters?: {
70146
70250
  value: string;
70147
70251
  columnId: string;
70148
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
70252
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
70149
70253
  }[] | undefined;
70150
70254
  } | undefined;
70151
70255
  };
@@ -70334,6 +70438,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70334
70438
  }>;
70335
70439
  mode?: "Children" | "AllDescendants" | undefined;
70336
70440
  totalMatches?: number | undefined;
70441
+ filterOptions?: Record<string, {
70442
+ values: string[];
70443
+ type: "number" | "boolean" | "date" | "text" | "list";
70444
+ }> | undefined;
70337
70445
  } | null;
70338
70446
  }, {
70339
70447
  key: "QueryBlock";
@@ -70355,7 +70463,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70355
70463
  filters?: {
70356
70464
  value: string;
70357
70465
  columnId: string;
70358
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
70466
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
70359
70467
  }[] | undefined;
70360
70468
  } | undefined;
70361
70469
  };
@@ -70544,6 +70652,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70544
70652
  }>;
70545
70653
  mode?: "Children" | "AllDescendants" | undefined;
70546
70654
  totalMatches?: number | undefined;
70655
+ filterOptions?: Record<string, {
70656
+ values: string[];
70657
+ type: "number" | "boolean" | "date" | "text" | "list";
70658
+ }> | undefined;
70547
70659
  } | null;
70548
70660
  }>, z.ZodObject<{
70549
70661
  key: z.ZodLiteral<"AccountContacts">;
package/dist/hm-types.mjs CHANGED
@@ -139,6 +139,7 @@ import {
139
139
  HMPublishBlobsInputSchema,
140
140
  HMPublishBlobsOutputSchema,
141
141
  HMPublishBlobsRequestSchema,
142
+ HMQueryBlockFilterOptionsSchema,
142
143
  HMQueryBlockInputSchema,
143
144
  HMQueryBlockItemSummarySchema,
144
145
  HMQueryBlockPayloadSchema,
@@ -210,7 +211,7 @@ import {
210
211
  toNumber,
211
212
  unpackHmId,
212
213
  unpackedHmIdSchema
213
- } from "./chunk-2KOZBPIM.mjs";
214
+ } from "./chunk-IW3I7TQJ.mjs";
214
215
  import "./chunk-7P6ASYW6.mjs";
215
216
  export {
216
217
  BUILTIN_METADATA_KEYS,
@@ -353,6 +354,7 @@ export {
353
354
  HMPublishBlobsInputSchema,
354
355
  HMPublishBlobsOutputSchema,
355
356
  HMPublishBlobsRequestSchema,
357
+ HMQueryBlockFilterOptionsSchema,
356
358
  HMQueryBlockInputSchema,
357
359
  HMQueryBlockItemSummarySchema,
358
360
  HMQueryBlockPayloadSchema,
@@ -2,8 +2,8 @@ import {
2
2
  annotationContains,
3
3
  hmBlockToEditorBlock,
4
4
  hmBlocksToEditorContent
5
- } from "./chunk-FLUWADFC.mjs";
6
- import "./chunk-2KOZBPIM.mjs";
5
+ } from "./chunk-LXN2DFPO.mjs";
6
+ import "./chunk-IW3I7TQJ.mjs";
7
7
  import "./chunk-7P6ASYW6.mjs";
8
8
  export {
9
9
  annotationContains,
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ export { resolveIdWithClient } from './resource-read';
31
31
  export type { ResolveIdWithClientOptions, ResolvedIdWithClient } from './resource-read';
32
32
  export { fileToIpfsBlobs, filesToIpfsBlobs, resolveFileLinksInBlocks, hasFileLinks } from './file-to-ipfs';
33
33
  export type { CollectedBlob } from './file-to-ipfs';
34
- export { parseMarkdown, flattenToOperations, parseInlineFormatting, parseFrontmatter, markdownBlockNodesToHMBlockNodes, } from './markdown-to-blocks';
34
+ export { parseMarkdown, flattenToOperations, parseInlineFormatting, parseFrontmatter, markdownBlockNodesToHMBlockNodes, hmAccountMentionUid, } from './markdown-to-blocks';
35
35
  export type { BlockNode, SeedBlock, Annotation } from './markdown-to-blocks';
36
36
  export { blocksToMarkdown, emitFrontmatter, slugify, draftFilename, parseDraftFilename, documentToResolvedMarkdown, commentToResolvedMarkdown, contentToResolvedMarkdown, } from './blocks-to-markdown';
37
37
  export type { ResolvedMarkdownOptions } from './blocks-to-markdown';
package/dist/index.mjs CHANGED
@@ -1,34 +1,35 @@
1
1
  import {
2
2
  resolveIdWithClient
3
- } from "./chunk-GRBJUKWS.mjs";
3
+ } from "./chunk-O6WMVXYX.mjs";
4
4
  import {
5
5
  annotationContains,
6
6
  hmBlockToEditorBlock,
7
7
  hmBlocksToEditorContent
8
- } from "./chunk-FLUWADFC.mjs";
8
+ } from "./chunk-LXN2DFPO.mjs";
9
9
  import {
10
10
  keyfile_exports
11
11
  } from "./chunk-EY6RQVAP.mjs";
12
12
  import {
13
13
  flattenToOperations,
14
+ hmAccountMentionUid,
14
15
  markdownBlockNodesToHMBlockNodes,
15
16
  parseFrontmatter,
16
17
  parseInlineFormatting,
17
18
  parseMarkdown
18
- } from "./chunk-QVRJGK77.mjs";
19
+ } from "./chunk-K5NYTWBJ.mjs";
19
20
  import {
20
21
  pdfToBlocks
21
- } from "./chunk-AUY42GMB.mjs";
22
+ } from "./chunk-SD5QINAJ.mjs";
22
23
  import {
23
24
  teiToBlocks
24
- } from "./chunk-HJ4ACOMW.mjs";
25
+ } from "./chunk-IXYSNJ4P.mjs";
25
26
  import {
26
27
  embeddedPdfToBlocks
27
28
  } from "./chunk-2FJBS3V7.mjs";
28
29
  import {
29
30
  editorBlockToHMBlock,
30
31
  editorBlocksToHMBlockNodes
31
- } from "./chunk-F72LNF4Q.mjs";
32
+ } from "./chunk-FCOBC7SH.mjs";
32
33
  import {
33
34
  encryption_exports
34
35
  } from "./chunk-UOL3F6XQ.mjs";
@@ -46,10 +47,10 @@ import {
46
47
  import {
47
48
  resolveHypermediaUrl,
48
49
  resolveId
49
- } from "./chunk-CVHEDNGU.mjs";
50
+ } from "./chunk-4HRE5RLC.mjs";
50
51
  import {
51
52
  createSeedClient
52
- } from "./chunk-XHF4IQ4R.mjs";
53
+ } from "./chunk-XL2DYLXF.mjs";
53
54
  import {
54
55
  SeedClientError,
55
56
  SeedNetworkError,
@@ -61,7 +62,7 @@ import {
61
62
  deleteComment,
62
63
  trimTrailingEmptyBlocks,
63
64
  updateComment
64
- } from "./chunk-Y3HCUNXC.mjs";
65
+ } from "./chunk-HUGY2OQM.mjs";
65
66
  import {
66
67
  AnnotationSet,
67
68
  addSpanToAnnotation,
@@ -82,7 +83,7 @@ import {
82
83
  documentContainsLinkToChild,
83
84
  documentHasSelfQuery,
84
85
  shouldAutoLinkParent
85
- } from "./chunk-KD3ZIXZV.mjs";
86
+ } from "./chunk-TWX7MSMH.mjs";
86
87
  import {
87
88
  createChange,
88
89
  createChangeOps,
@@ -104,7 +105,7 @@ import {
104
105
  followToDocument,
105
106
  resolveDocumentState,
106
107
  resolveEditableDocument
107
- } from "./chunk-CTJU7XIA.mjs";
108
+ } from "./chunk-AN7IS7UT.mjs";
108
109
  import "./chunk-2MD3FXKB.mjs";
109
110
  import {
110
111
  computeReplaceOps,
@@ -123,11 +124,11 @@ import {
123
124
  emitFrontmatter,
124
125
  parseDraftFilename,
125
126
  slugify
126
- } from "./chunk-BGXPPECP.mjs";
127
+ } from "./chunk-RS4GOQBZ.mjs";
127
128
  import {
128
129
  createCapability,
129
130
  resolveCapability
130
- } from "./chunk-JKXO3OWO.mjs";
131
+ } from "./chunk-7WWI7MDG.mjs";
131
132
  import "./chunk-LVAHHQIK.mjs";
132
133
  import "./chunk-NBCHK76Q.mjs";
133
134
  import {
@@ -147,7 +148,7 @@ import {
147
148
  parseFragment,
148
149
  serializeBlockRange,
149
150
  unpackHmId
150
- } from "./chunk-2KOZBPIM.mjs";
151
+ } from "./chunk-IW3I7TQJ.mjs";
151
152
  import "./chunk-3TPCJCVO.mjs";
152
153
  import "./chunk-7P6ASYW6.mjs";
153
154
  export {
@@ -202,6 +203,7 @@ export {
202
203
  followToDocument,
203
204
  getHMQueryString,
204
205
  hasFileLinks,
206
+ hmAccountMentionUid,
205
207
  hmBlockNodeToBlockNode,
206
208
  hmBlockToEditorBlock,
207
209
  hmBlocksToEditorContent,
@@ -41,6 +41,16 @@ type InlineParseResult = {
41
41
  * exactly; mis-nested hand-written input degrades gracefully.
42
42
  */
43
43
  export declare function parseInlineFormatting(raw: string): InlineParseResult;
44
+ /**
45
+ * Read a `[label](url)` starting at `open` (the `[`). Brackets balance,
46
+ * escapes and code spans are skipped, the url may be `<…>`-wrapped.
47
+ */
48
+ /**
49
+ * The account uid an `hm://` URL mentions, when it names an account itself: `hm://UID` (the
50
+ * account root) or `hm://UID/:profile`. A URL with any other path names a document, not a person,
51
+ * and returns null. Query strings and fragments are not accepted on a mention.
52
+ */
53
+ export declare function hmAccountMentionUid(url: string): string | null;
44
54
  /**
45
55
  * Merge annotations of the same kind whose ranges touch or overlap into one
46
56
  * contiguous range, and order the result deterministically. The emitter
@@ -1,14 +1,16 @@
1
1
  import {
2
2
  flattenToOperations,
3
+ hmAccountMentionUid,
3
4
  markdownBlockNodesToHMBlockNodes,
4
5
  mergeAdjacentAnnotations,
5
6
  parseFrontmatter,
6
7
  parseInlineFormatting,
7
8
  parseMarkdown
8
- } from "./chunk-QVRJGK77.mjs";
9
+ } from "./chunk-K5NYTWBJ.mjs";
9
10
  import "./chunk-7P6ASYW6.mjs";
10
11
  export {
11
12
  flattenToOperations,
13
+ hmAccountMentionUid,
12
14
  markdownBlockNodesToHMBlockNodes,
13
15
  mergeAdjacentAnnotations,
14
16
  parseFrontmatter,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-AUY42GMB.mjs";
4
- import "./chunk-HJ4ACOMW.mjs";
3
+ } from "./chunk-SD5QINAJ.mjs";
4
+ import "./chunk-IXYSNJ4P.mjs";
5
5
  import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-2KOZBPIM.mjs";
7
+ import "./chunk-IW3I7TQJ.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-GRBJUKWS.mjs";
4
- import "./chunk-CVHEDNGU.mjs";
5
- import "./chunk-XHF4IQ4R.mjs";
3
+ } from "./chunk-O6WMVXYX.mjs";
4
+ import "./chunk-4HRE5RLC.mjs";
5
+ import "./chunk-XL2DYLXF.mjs";
6
6
  import "./chunk-CBELM7KX.mjs";
7
7
  import "./chunk-O5MHN2EO.mjs";
8
8
  import "./chunk-PJ2RFT5A.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-2KOZBPIM.mjs";
11
+ import "./chunk-IW3I7TQJ.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
14
14
  resolveIdWithClient
@@ -17,11 +17,11 @@ import {
17
17
  resolveSchemaRef,
18
18
  schemaDefinitionCid,
19
19
  withoutSchemaLink
20
- } from "./chunk-6YGIRB3K.mjs";
20
+ } from "./chunk-PLHPUUUF.mjs";
21
21
  import "./chunk-FFH7G6KW.mjs";
22
22
  import "./chunk-ZWKMAGDU.mjs";
23
23
  import "./chunk-VWSAFDOL.mjs";
24
- import "./chunk-2KOZBPIM.mjs";
24
+ import "./chunk-IW3I7TQJ.mjs";
25
25
  import "./chunk-7P6ASYW6.mjs";
26
26
  export {
27
27
  bareCid,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  classifyRef
3
- } from "./chunk-6YGIRB3K.mjs";
3
+ } from "./chunk-PLHPUUUF.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-2KOZBPIM.mjs";
16
+ } from "./chunk-IW3I7TQJ.mjs";
17
17
  import "./chunk-7P6ASYW6.mjs";
18
18
 
19
19
  // src/schema-subtypes.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-HJ4ACOMW.mjs";
4
- import "./chunk-2KOZBPIM.mjs";
3
+ } from "./chunk-IXYSNJ4P.mjs";
4
+ import "./chunk-IW3I7TQJ.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-2KOZBPIM.mjs";
10
+ } from "./chunk-IW3I7TQJ.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.97",
3
+ "version": "0.0.99",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",