@seed-hypermedia/client 0.0.98 → 0.0.100

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 +2 -2
  3. package/dist/capability.mjs +2 -2
  4. package/dist/{chunk-6YBRBK6F.mjs → chunk-73AJU7X4.mjs} +1 -1
  5. package/dist/{chunk-AUY42GMB.mjs → chunk-DTGWQF2V.mjs} +1 -1
  6. package/dist/{chunk-BGXPPECP.mjs → chunk-E2T47UJW.mjs} +1 -1
  7. package/dist/{chunk-FLUWADFC.mjs → chunk-EYZ2ASKH.mjs} +1 -1
  8. package/dist/{chunk-HJ4ACOMW.mjs → chunk-IBCBCFHK.mjs} +1 -1
  9. package/dist/{chunk-KD3ZIXZV.mjs → chunk-JSOVDI7M.mjs} +2 -2
  10. package/dist/{chunk-XHF4IQ4R.mjs → chunk-MEQO52BY.mjs} +1 -1
  11. package/dist/{chunk-CVHEDNGU.mjs → chunk-OJZMPYIA.mjs} +1 -1
  12. package/dist/{chunk-2KOZBPIM.mjs → chunk-QVT252PP.mjs} +15 -2
  13. package/dist/{chunk-CTJU7XIA.mjs → chunk-RPDVEULA.mjs} +1 -1
  14. package/dist/{chunk-GRBJUKWS.mjs → chunk-SHO3IZ52.mjs} +3 -3
  15. package/dist/{chunk-JKXO3OWO.mjs → chunk-UQV5WEK6.mjs} +1 -1
  16. package/dist/{chunk-F72LNF4Q.mjs → chunk-WDFJI6D6.mjs} +1 -1
  17. package/dist/{chunk-6YGIRB3K.mjs → chunk-YYC5H3AY.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/explore-query.d.ts +28 -1
  23. package/dist/explore-query.mjs +51 -0
  24. package/dist/hm-resolver.mjs +2 -2
  25. package/dist/hm-types.d.ts +157 -36
  26. package/dist/hm-types.mjs +5 -1
  27. package/dist/hmblock-to-editorblock.mjs +2 -2
  28. package/dist/index.mjs +13 -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-KD3ZIXZV.mjs";
7
+ } from "./chunk-JSOVDI7M.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-CTJU7XIA.mjs";
10
+ import "./chunk-RPDVEULA.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
- import "./chunk-2KOZBPIM.mjs";
13
+ import "./chunk-QVT252PP.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-E2T47UJW.mjs";
11
+ import "./chunk-QVT252PP.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-UQV5WEK6.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-QVT252PP.mjs";
9
9
  import "./chunk-3TPCJCVO.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
11
11
  export {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-2KOZBPIM.mjs";
12
+ } from "./chunk-QVT252PP.mjs";
13
13
 
14
14
  // src/comment.ts
15
15
  import { decode as cborDecode, encode as cborEncode } from "@ipld/dag-cbor";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-HJ4ACOMW.mjs";
3
+ } from "./chunk-IBCBCFHK.mjs";
4
4
  import {
5
5
  embeddedPdfToBlocks
6
6
  } from "./chunk-2FJBS3V7.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  normalizeQuerySort,
3
3
  unpackHmId
4
- } from "./chunk-2KOZBPIM.mjs";
4
+ } from "./chunk-QVT252PP.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
  isSurrogate
3
- } from "./chunk-2KOZBPIM.mjs";
3
+ } from "./chunk-QVT252PP.mjs";
4
4
 
5
5
  // src/hmblock-to-editorblock.ts
6
6
  function toEditorBlockType(hmBlockType) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  codePointLength
3
- } from "./chunk-2KOZBPIM.mjs";
3
+ } from "./chunk-QVT252PP.mjs";
4
4
 
5
5
  // src/tei-to-blocks.ts
6
6
  function generateBlockId() {
@@ -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-RPDVEULA.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
14
14
  unpackHmId
15
- } from "./chunk-2KOZBPIM.mjs";
15
+ } from "./chunk-QVT252PP.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-QVT252PP.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
@@ -2,7 +2,7 @@ import {
2
2
  entityQueryPathToHmIdPath,
3
3
  parseFragment,
4
4
  unpackHmId
5
- } from "./chunk-2KOZBPIM.mjs";
5
+ } from "./chunk-QVT252PP.mjs";
6
6
 
7
7
  // src/hm-resolver.ts
8
8
  async function resolveHypermediaUrl(url, opts) {
@@ -905,6 +905,7 @@ var HMDocumentFilterComparisonOperatorSchema = z.enum([
905
905
  "GREATER_THAN",
906
906
  "GREATER_THAN_OR_EQUAL"
907
907
  ]);
908
+ var HMDocumentTimeFieldSchema = z.enum(["CREATE_TIME", "UPDATE_TIME"]);
908
909
  var HMDocumentFilterSchema = z.lazy(
909
910
  () => z.object({
910
911
  and: z.object({ filters: z.array(HMDocumentFilterSchema) }).optional(),
@@ -921,7 +922,9 @@ var HMDocumentFilterSchema = z.lazy(
921
922
  }).optional(),
922
923
  urlMatch: z.object({ url: z.string(), prefix: z.boolean().optional() }).optional(),
923
924
  spaceMatch: z.object({ space: z.string() }).optional(),
924
- pathMatch: z.object({ path: z.string(), prefix: z.boolean().optional() }).optional()
925
+ pathMatch: z.object({ path: z.string(), prefix: z.boolean().optional() }).optional(),
926
+ authorMatch: z.object({ author: z.string() }).optional(),
927
+ timeRange: z.object({ field: HMDocumentTimeFieldSchema, start: z.string().optional(), end: z.string().optional() }).optional()
925
928
  }).strict()
926
929
  );
927
930
  var HMBuiltinSortAttributeSchema = z.enum([
@@ -1055,7 +1058,7 @@ var HMQueryBlockInputSchema = z.object({
1055
1058
  filters: z.array(
1056
1059
  z.object({
1057
1060
  columnId: z.string(),
1058
- operator: z.enum(["contains", "equals", "greaterThan", "lessThan"]),
1061
+ operator: z.enum(["contains", "equals", "notEquals", "greaterThan", "lessThan"]),
1059
1062
  value: z.string()
1060
1063
  })
1061
1064
  ).optional()
@@ -1295,11 +1298,19 @@ var HMQueryBlockItemSummarySchema = z.object({
1295
1298
  children: z.number().optional(),
1296
1299
  authorUids: z.array(z.string()).default([])
1297
1300
  });
1301
+ var HMQueryBlockFilterOptionsSchema = z.record(
1302
+ z.string(),
1303
+ z.object({
1304
+ values: z.array(z.string()),
1305
+ type: z.enum(["text", "number", "boolean", "date", "list"])
1306
+ })
1307
+ );
1298
1308
  var HMQueryBlockPayloadSchema = z.object({
1299
1309
  queryTargetName: z.string(),
1300
1310
  in: unpackedHmIdSchema,
1301
1311
  results: z.array(HMDocumentInfoSchema),
1302
1312
  totalMatches: z.number().optional(),
1313
+ filterOptions: HMQueryBlockFilterOptionsSchema.optional(),
1303
1314
  mode: z.union([z.literal("Children"), z.literal("AllDescendants")]).optional(),
1304
1315
  interactionSummaries: z.record(z.string(), HMQueryBlockItemSummarySchema),
1305
1316
  accountsMetadata: HMAccountsMetadataSchema
@@ -1781,6 +1792,7 @@ export {
1781
1792
  HMSearchRequestSchema,
1782
1793
  HMAttributeValueSchema,
1783
1794
  HMDocumentFilterComparisonOperatorSchema,
1795
+ HMDocumentTimeFieldSchema,
1784
1796
  HMDocumentFilterSchema,
1785
1797
  HMBuiltinSortAttributeSchema,
1786
1798
  HMDocumentSortSchema,
@@ -1845,6 +1857,7 @@ export {
1845
1857
  HMInteractionSummaryOutputSchema,
1846
1858
  HMInteractionSummaryRequestSchema,
1847
1859
  HMQueryBlockItemSummarySchema,
1860
+ HMQueryBlockFilterOptionsSchema,
1848
1861
  HMQueryBlockPayloadSchema,
1849
1862
  HMQueryBlockRequestSchema,
1850
1863
  HMPublishBlobsOutputSchema,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  packHmId,
3
3
  unpackHmId
4
- } from "./chunk-2KOZBPIM.mjs";
4
+ } from "./chunk-QVT252PP.mjs";
5
5
 
6
6
  // src/document-state.ts
7
7
  async function resolveDocumentState(client, targetId) {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  resolveId
3
- } from "./chunk-CVHEDNGU.mjs";
3
+ } from "./chunk-OJZMPYIA.mjs";
4
4
  import {
5
5
  createSeedClient
6
- } from "./chunk-XHF4IQ4R.mjs";
6
+ } from "./chunk-MEQO52BY.mjs";
7
7
  import {
8
8
  unpackHmId
9
- } from "./chunk-2KOZBPIM.mjs";
9
+ } from "./chunk-QVT252PP.mjs";
10
10
 
11
11
  // src/resource-read.ts
12
12
  async function resolveIdWithClient(rawId, options = {}) {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-2KOZBPIM.mjs";
10
+ } from "./chunk-QVT252PP.mjs";
11
11
 
12
12
  // src/capability.ts
13
13
  import { base58btc } from "multiformats/bases/base58";
@@ -6,7 +6,7 @@ import {
6
6
  HMBlockSchema,
7
7
  codePointLength,
8
8
  toNumber
9
- } from "./chunk-2KOZBPIM.mjs";
9
+ } from "./chunk-QVT252PP.mjs";
10
10
 
11
11
  // src/editorblock-to-hmblock.ts
12
12
  function toHMBlockType(editorBlockType) {
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  packHmId,
22
22
  unpackHmId
23
- } from "./chunk-2KOZBPIM.mjs";
23
+ } from "./chunk-QVT252PP.mjs";
24
24
 
25
25
  // src/schema-resolve.ts
26
26
  var DAG_CBOR_CODE = 113;
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-MEQO52BY.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-QVT252PP.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-6YBRBK6F.mjs";
7
+ } from "./chunk-73AJU7X4.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-QVT252PP.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-RPDVEULA.mjs";
8
+ import "./chunk-QVT252PP.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-WDFJI6D6.mjs";
5
5
  import "./chunk-JKKS35IS.mjs";
6
- import "./chunk-2KOZBPIM.mjs";
6
+ import "./chunk-QVT252PP.mjs";
7
7
  import "./chunk-7P6ASYW6.mjs";
8
8
  export {
9
9
  editorBlockToHMBlock,
@@ -30,11 +30,28 @@ export type ExploreScopePredicate = {
30
30
  value: string;
31
31
  prefix: boolean;
32
32
  };
33
+ /** Built-in document timestamps a time predicate can test. */
34
+ export type ExploreTimeField = 'created' | 'updated';
35
+ /** Comparisons a time predicate accepts; equality has no useful meaning against a millisecond clock. */
36
+ export type ExploreTimeComparison = '<' | '<=' | '>' | '>=';
37
+ /**
38
+ * A bound on a document's creation or last-update time. `value` is an ISO date (`2026-09-01`,
39
+ * compared by whole UTC days) or an ISO date-time (compared exactly).
40
+ */
41
+ export type ExploreTimePredicate = {
42
+ kind: 'time';
43
+ field: ExploreTimeField;
44
+ comparison: ExploreTimeComparison;
45
+ value: string;
46
+ };
33
47
  /** Leaf predicates in the Explore query AST. */
34
48
  export type ExplorePredicate = ExploreAttributePredicate | ExploreScopePredicate | {
35
49
  kind: 'type';
36
50
  value: HMExploreResultType;
37
- };
51
+ } | {
52
+ kind: 'author';
53
+ value: string;
54
+ } | ExploreTimePredicate;
38
55
  /** Boolean Explore query AST. */
39
56
  export type ExploreQueryNode = {
40
57
  kind: 'text';
@@ -85,6 +102,16 @@ export type ExploreQueryContext = {
85
102
  type: 'site';
86
103
  url: string;
87
104
  };
105
+ /**
106
+ * The half-open `[start, end)` range a time predicate selects, as the ISO instants the daemon's
107
+ * `TimeRange` takes; undefined when the value is not a date. A bare date covers its whole UTC day,
108
+ * so `$created<=2026-09-01` includes the 1st and `$created>2026-09-01` starts on the 2nd. A
109
+ * date-time is compared to the millisecond.
110
+ */
111
+ export declare function exploreTimeBounds(predicate: ExploreTimePredicate): {
112
+ start?: string;
113
+ end?: string;
114
+ } | undefined;
88
115
  /** Quotes a value for the grammar when it contains whitespace, parentheses, quotes, or operators. */
89
116
  export declare function quoteExploreValue(value: string): string;
90
117
  /** Parses an Explore query into a forgiving boolean AST and presentation directives. */
@@ -3,6 +3,31 @@ import "./chunk-7P6ASYW6.mjs";
3
3
  // src/explore-query.ts
4
4
  var resultTypes = /* @__PURE__ */ new Set(["document", "block", "comment", "space", "contact"]);
5
5
  var comparisonOperators = /* @__PURE__ */ new Set(["=", "!=", "<", "<=", ">", ">="]);
6
+ var AUTHOR_KEY = "$author";
7
+ var timeKeys = /* @__PURE__ */ new Map([
8
+ ["$created", "created"],
9
+ ["$updated", "updated"]
10
+ ]);
11
+ var timeComparisons = /* @__PURE__ */ new Set(["<", "<=", ">", ">="]);
12
+ var DAY_MS = 24 * 60 * 60 * 1e3;
13
+ function exploreTimeBounds(predicate) {
14
+ const dayOnly = /^\d{4}-\d{2}-\d{2}$/.test(predicate.value);
15
+ if (!dayOnly && !/^\d{4}-\d{2}-\d{2}T/.test(predicate.value)) return void 0;
16
+ const instant = Date.parse(dayOnly ? `${predicate.value}T00:00:00Z` : predicate.value);
17
+ if (Number.isNaN(instant)) return void 0;
18
+ const step = dayOnly ? DAY_MS : 1;
19
+ const iso = (ms) => new Date(ms).toISOString();
20
+ switch (predicate.comparison) {
21
+ case ">=":
22
+ return { start: iso(instant) };
23
+ case ">":
24
+ return { start: iso(instant + step) };
25
+ case "<":
26
+ return { end: iso(instant) };
27
+ case "<=":
28
+ return { end: iso(instant + step) };
29
+ }
30
+ }
6
31
  function diagnostic(message, start, end, severity = "warning") {
7
32
  return { message, start, end, severity };
8
33
  }
@@ -229,6 +254,23 @@ var ExploreParser = class {
229
254
  predicate: { kind: "scope", scope: "path", value: prefix ? value.slice(0, -2) : value, prefix }
230
255
  };
231
256
  }
257
+ if (operator.value === ":" && token.value === AUTHOR_KEY) {
258
+ return { kind: "predicate", predicate: { kind: "author", value } };
259
+ }
260
+ const timeField = timeKeys.get(token.value);
261
+ if (timeField) {
262
+ const predicate = {
263
+ kind: "time",
264
+ field: timeField,
265
+ comparison: operator.value,
266
+ value
267
+ };
268
+ if (timeComparisons.has(operator.value) && exploreTimeBounds(predicate)) return { kind: "predicate", predicate };
269
+ this.diagnostics.push(
270
+ diagnostic(`"${token.value}" takes <, <=, > or >= and a date such as 2026-09-01.`, token.start, valueToken.end)
271
+ );
272
+ return { kind: "text", value: `${token.value}${operator.value}${value}`, phrase: false };
273
+ }
232
274
  if ((token.value === "has" || token.value === "missing") && operator.value === ":") {
233
275
  return {
234
276
  kind: "predicate",
@@ -274,6 +316,8 @@ function nodePrecedence(node) {
274
316
  }
275
317
  function serializePredicate(predicate) {
276
318
  if (predicate.kind === "type") return `type:${predicate.value}`;
319
+ if (predicate.kind === "author") return `${AUTHOR_KEY}:${predicate.value}`;
320
+ if (predicate.kind === "time") return `$${predicate.field}${predicate.comparison}${predicate.value}`;
277
321
  if (predicate.kind === "scope") {
278
322
  if (predicate.scope === "space" || predicate.scope === "url") return `in:${predicate.value}`;
279
323
  const pathPredicate = predicate;
@@ -327,6 +371,12 @@ function comparisonOperatorJson(operator) {
327
371
  }
328
372
  function predicateFilter(predicate) {
329
373
  if (predicate.kind === "type") return void 0;
374
+ if (predicate.kind === "author") return { authorMatch: { author: predicate.value } };
375
+ if (predicate.kind === "time") {
376
+ const bounds = exploreTimeBounds(predicate);
377
+ if (!bounds) return void 0;
378
+ return { timeRange: { field: predicate.field === "created" ? "CREATE_TIME" : "UPDATE_TIME", ...bounds } };
379
+ }
330
380
  if (predicate.kind === "scope") {
331
381
  if (predicate.scope === "space") return { spaceMatch: { space: predicate.value } };
332
382
  if (predicate.scope === "url") return { urlMatch: { url: predicate.value, prefix: true } };
@@ -449,6 +499,7 @@ function compileExploreQuery(parsed, context) {
449
499
  }
450
500
  export {
451
501
  compileExploreQuery,
502
+ exploreTimeBounds,
452
503
  parseExploreQuery,
453
504
  quoteExploreValue,
454
505
  serializeExploreQuery
@@ -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-OJZMPYIA.mjs";
5
+ import "./chunk-QVT252PP.mjs";
6
6
  import "./chunk-7P6ASYW6.mjs";
7
7
  export {
8
8
  resolveHypermediaUrl,
@@ -22803,11 +22803,15 @@ export declare const HMAttributeValueSchema: z.ZodObject<{
22803
22803
  export type HMAttributeValue = z.infer<typeof HMAttributeValueSchema>;
22804
22804
  export declare const HMDocumentFilterComparisonOperatorSchema: z.ZodEnum<["EQUAL", "NOT_EQUAL", "LESS_THAN", "LESS_THAN_OR_EQUAL", "GREATER_THAN", "GREATER_THAN_OR_EQUAL"]>;
22805
22805
  export type HMDocumentFilterComparisonOperator = z.infer<typeof HMDocumentFilterComparisonOperatorSchema>;
22806
+ /** A built-in document timestamp a timeRange filter can test. */
22807
+ export declare const HMDocumentTimeFieldSchema: z.ZodEnum<["CREATE_TIME", "UPDATE_TIME"]>;
22808
+ export type HMDocumentTimeField = z.infer<typeof HMDocumentTimeFieldSchema>;
22806
22809
  /**
22807
22810
  * A recursive predicate over document attributes and built-in fields (proto `DocumentFilter`):
22808
22811
  * exactly one of `and`, `or`, `not`, `comparison`, `exists`, `missing`, `stringMatch`, `urlMatch`,
22809
- * `spaceMatch`, `pathMatch`. Attribute keys are dotted paths into the document's metadata
22810
- * (`status`, `address.city`, `attributesSchema`).
22812
+ * `spaceMatch`, `pathMatch`, `authorMatch`, `timeRange`. Attribute keys are dotted paths into the
22813
+ * document's metadata (`status`, `address.city`, `attributesSchema`). `timeRange` bounds are
22814
+ * RFC 3339 instants: `start` inclusive, `end` exclusive, either may be omitted.
22811
22815
  */
22812
22816
  export type HMDocumentFilter = {
22813
22817
  and?: {
@@ -22847,6 +22851,14 @@ export type HMDocumentFilter = {
22847
22851
  path: string;
22848
22852
  prefix?: boolean;
22849
22853
  };
22854
+ authorMatch?: {
22855
+ author: string;
22856
+ };
22857
+ timeRange?: {
22858
+ field: HMDocumentTimeField;
22859
+ start?: string;
22860
+ end?: string;
22861
+ };
22850
22862
  };
22851
22863
  export declare const HMDocumentFilterSchema: z.ZodType<HMDocumentFilter>;
22852
22864
  export declare const HMBuiltinSortAttributeSchema: z.ZodEnum<["BUILTIN_SORT_ATTRIBUTE_NAME", "BUILTIN_SORT_ATTRIBUTE_PATH", "BUILTIN_SORT_ATTRIBUTE_CREATE_TIME", "BUILTIN_SORT_ATTRIBUTE_UPDATE_TIME", "BUILTIN_SORT_ATTRIBUTE_ACTIVITY_TIME", "BUILTIN_SORT_ATTRIBUTE_COMMENT_COUNT"]>;
@@ -25742,30 +25754,30 @@ export declare const HMQueryBlockInputSchema: z.ZodObject<{
25742
25754
  search: z.ZodOptional<z.ZodString>;
25743
25755
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
25744
25756
  columnId: z.ZodString;
25745
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
25757
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
25746
25758
  value: z.ZodString;
25747
25759
  }, "strip", z.ZodTypeAny, {
25748
25760
  value: string;
25749
25761
  columnId: string;
25750
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25762
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25751
25763
  }, {
25752
25764
  value: string;
25753
25765
  columnId: string;
25754
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25766
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25755
25767
  }>, "many">>;
25756
25768
  }, "strip", z.ZodTypeAny, {
25757
25769
  search?: string | undefined;
25758
25770
  filters?: {
25759
25771
  value: string;
25760
25772
  columnId: string;
25761
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25773
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25762
25774
  }[] | undefined;
25763
25775
  }, {
25764
25776
  search?: string | undefined;
25765
25777
  filters?: {
25766
25778
  value: string;
25767
25779
  columnId: string;
25768
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25780
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25769
25781
  }[] | undefined;
25770
25782
  }>>;
25771
25783
  }, "strip", z.ZodTypeAny, {
@@ -25786,7 +25798,7 @@ export declare const HMQueryBlockInputSchema: z.ZodObject<{
25786
25798
  filters?: {
25787
25799
  value: string;
25788
25800
  columnId: string;
25789
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25801
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25790
25802
  }[] | undefined;
25791
25803
  } | undefined;
25792
25804
  }, {
@@ -25807,7 +25819,7 @@ export declare const HMQueryBlockInputSchema: z.ZodObject<{
25807
25819
  filters?: {
25808
25820
  value: string;
25809
25821
  columnId: string;
25810
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
25822
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
25811
25823
  }[] | undefined;
25812
25824
  } | undefined;
25813
25825
  }>;
@@ -40239,6 +40251,19 @@ export declare const HMQueryBlockItemSummarySchema: z.ZodObject<{
40239
40251
  authorUids?: string[] | undefined;
40240
40252
  }>;
40241
40253
  export type HMQueryBlockItemSummary = z.infer<typeof HMQueryBlockItemSummarySchema>;
40254
+ /** Existing filter values and inferred column types from the full collection scope. */
40255
+ export declare const HMQueryBlockFilterOptionsSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
40256
+ values: z.ZodArray<z.ZodString, "many">;
40257
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
40258
+ }, "strip", z.ZodTypeAny, {
40259
+ values: string[];
40260
+ type: "number" | "boolean" | "date" | "text" | "list";
40261
+ }, {
40262
+ values: string[];
40263
+ type: "number" | "boolean" | "date" | "text" | "list";
40264
+ }>>;
40265
+ /** Filter choices available before viewer search, filters, and display limits. */
40266
+ export type HMQueryBlockFilterOptions = z.infer<typeof HMQueryBlockFilterOptionsSchema>;
40242
40267
  export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
40243
40268
  queryTargetName: z.ZodString;
40244
40269
  in: z.ZodObject<{
@@ -40798,6 +40823,16 @@ export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
40798
40823
  firstImageInContent?: string | undefined;
40799
40824
  }>, "many">;
40800
40825
  totalMatches: z.ZodOptional<z.ZodNumber>;
40826
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
40827
+ values: z.ZodArray<z.ZodString, "many">;
40828
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
40829
+ }, "strip", z.ZodTypeAny, {
40830
+ values: string[];
40831
+ type: "number" | "boolean" | "date" | "text" | "list";
40832
+ }, {
40833
+ values: string[];
40834
+ type: "number" | "boolean" | "date" | "text" | "list";
40835
+ }>>>;
40801
40836
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
40802
40837
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
40803
40838
  comments: z.ZodNumber;
@@ -41333,6 +41368,10 @@ export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
41333
41368
  }>;
41334
41369
  mode?: "Children" | "AllDescendants" | undefined;
41335
41370
  totalMatches?: number | undefined;
41371
+ filterOptions?: Record<string, {
41372
+ values: string[];
41373
+ type: "number" | "boolean" | "date" | "text" | "list";
41374
+ }> | undefined;
41336
41375
  }, {
41337
41376
  in: {
41338
41377
  path: string[] | null;
@@ -41518,6 +41557,10 @@ export declare const HMQueryBlockPayloadSchema: z.ZodObject<{
41518
41557
  }>;
41519
41558
  mode?: "Children" | "AllDescendants" | undefined;
41520
41559
  totalMatches?: number | undefined;
41560
+ filterOptions?: Record<string, {
41561
+ values: string[];
41562
+ type: "number" | "boolean" | "date" | "text" | "list";
41563
+ }> | undefined;
41521
41564
  }>;
41522
41565
  export type HMQueryBlockPayload = z.infer<typeof HMQueryBlockPayloadSchema>;
41523
41566
  export declare const HMQueryBlockRequestSchema: z.ZodObject<{
@@ -41581,30 +41624,30 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
41581
41624
  search: z.ZodOptional<z.ZodString>;
41582
41625
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
41583
41626
  columnId: z.ZodString;
41584
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
41627
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
41585
41628
  value: z.ZodString;
41586
41629
  }, "strip", z.ZodTypeAny, {
41587
41630
  value: string;
41588
41631
  columnId: string;
41589
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41632
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41590
41633
  }, {
41591
41634
  value: string;
41592
41635
  columnId: string;
41593
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41636
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41594
41637
  }>, "many">>;
41595
41638
  }, "strip", z.ZodTypeAny, {
41596
41639
  search?: string | undefined;
41597
41640
  filters?: {
41598
41641
  value: string;
41599
41642
  columnId: string;
41600
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41643
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41601
41644
  }[] | undefined;
41602
41645
  }, {
41603
41646
  search?: string | undefined;
41604
41647
  filters?: {
41605
41648
  value: string;
41606
41649
  columnId: string;
41607
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41650
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41608
41651
  }[] | undefined;
41609
41652
  }>>;
41610
41653
  }, "strip", z.ZodTypeAny, {
@@ -41625,7 +41668,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
41625
41668
  filters?: {
41626
41669
  value: string;
41627
41670
  columnId: string;
41628
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41671
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41629
41672
  }[] | undefined;
41630
41673
  } | undefined;
41631
41674
  }, {
@@ -41646,7 +41689,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
41646
41689
  filters?: {
41647
41690
  value: string;
41648
41691
  columnId: string;
41649
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
41692
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
41650
41693
  }[] | undefined;
41651
41694
  } | undefined;
41652
41695
  }>;
@@ -42209,6 +42252,16 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42209
42252
  firstImageInContent?: string | undefined;
42210
42253
  }>, "many">;
42211
42254
  totalMatches: z.ZodOptional<z.ZodNumber>;
42255
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
42256
+ values: z.ZodArray<z.ZodString, "many">;
42257
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
42258
+ }, "strip", z.ZodTypeAny, {
42259
+ values: string[];
42260
+ type: "number" | "boolean" | "date" | "text" | "list";
42261
+ }, {
42262
+ values: string[];
42263
+ type: "number" | "boolean" | "date" | "text" | "list";
42264
+ }>>>;
42212
42265
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
42213
42266
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
42214
42267
  comments: z.ZodNumber;
@@ -42744,6 +42797,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42744
42797
  }>;
42745
42798
  mode?: "Children" | "AllDescendants" | undefined;
42746
42799
  totalMatches?: number | undefined;
42800
+ filterOptions?: Record<string, {
42801
+ values: string[];
42802
+ type: "number" | "boolean" | "date" | "text" | "list";
42803
+ }> | undefined;
42747
42804
  }, {
42748
42805
  in: {
42749
42806
  path: string[] | null;
@@ -42929,6 +42986,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42929
42986
  }>;
42930
42987
  mode?: "Children" | "AllDescendants" | undefined;
42931
42988
  totalMatches?: number | undefined;
42989
+ filterOptions?: Record<string, {
42990
+ values: string[];
42991
+ type: "number" | "boolean" | "date" | "text" | "list";
42992
+ }> | undefined;
42932
42993
  }>>;
42933
42994
  }, "strip", z.ZodTypeAny, {
42934
42995
  key: "QueryBlock";
@@ -42950,7 +43011,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
42950
43011
  filters?: {
42951
43012
  value: string;
42952
43013
  columnId: string;
42953
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
43014
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
42954
43015
  }[] | undefined;
42955
43016
  } | undefined;
42956
43017
  };
@@ -43139,6 +43200,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
43139
43200
  }>;
43140
43201
  mode?: "Children" | "AllDescendants" | undefined;
43141
43202
  totalMatches?: number | undefined;
43203
+ filterOptions?: Record<string, {
43204
+ values: string[];
43205
+ type: "number" | "boolean" | "date" | "text" | "list";
43206
+ }> | undefined;
43142
43207
  } | null;
43143
43208
  }, {
43144
43209
  key: "QueryBlock";
@@ -43160,7 +43225,7 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
43160
43225
  filters?: {
43161
43226
  value: string;
43162
43227
  columnId: string;
43163
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
43228
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
43164
43229
  }[] | undefined;
43165
43230
  } | undefined;
43166
43231
  };
@@ -43349,6 +43414,10 @@ export declare const HMQueryBlockRequestSchema: z.ZodObject<{
43349
43414
  }>;
43350
43415
  mode?: "Children" | "AllDescendants" | undefined;
43351
43416
  totalMatches?: number | undefined;
43417
+ filterOptions?: Record<string, {
43418
+ values: string[];
43419
+ type: "number" | "boolean" | "date" | "text" | "list";
43420
+ }> | undefined;
43352
43421
  } | null;
43353
43422
  }>;
43354
43423
  export type HMQueryBlockRequest = z.infer<typeof HMQueryBlockRequestSchema>;
@@ -50678,30 +50747,30 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
50678
50747
  search: z.ZodOptional<z.ZodString>;
50679
50748
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
50680
50749
  columnId: z.ZodString;
50681
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
50750
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
50682
50751
  value: z.ZodString;
50683
50752
  }, "strip", z.ZodTypeAny, {
50684
50753
  value: string;
50685
50754
  columnId: string;
50686
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50755
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50687
50756
  }, {
50688
50757
  value: string;
50689
50758
  columnId: string;
50690
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50759
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50691
50760
  }>, "many">>;
50692
50761
  }, "strip", z.ZodTypeAny, {
50693
50762
  search?: string | undefined;
50694
50763
  filters?: {
50695
50764
  value: string;
50696
50765
  columnId: string;
50697
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50766
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50698
50767
  }[] | undefined;
50699
50768
  }, {
50700
50769
  search?: string | undefined;
50701
50770
  filters?: {
50702
50771
  value: string;
50703
50772
  columnId: string;
50704
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50773
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50705
50774
  }[] | undefined;
50706
50775
  }>>;
50707
50776
  }, "strip", z.ZodTypeAny, {
@@ -50722,7 +50791,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
50722
50791
  filters?: {
50723
50792
  value: string;
50724
50793
  columnId: string;
50725
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50794
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50726
50795
  }[] | undefined;
50727
50796
  } | undefined;
50728
50797
  }, {
@@ -50743,7 +50812,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
50743
50812
  filters?: {
50744
50813
  value: string;
50745
50814
  columnId: string;
50746
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
50815
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
50747
50816
  }[] | undefined;
50748
50817
  } | undefined;
50749
50818
  }>;
@@ -51306,6 +51375,16 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
51306
51375
  firstImageInContent?: string | undefined;
51307
51376
  }>, "many">;
51308
51377
  totalMatches: z.ZodOptional<z.ZodNumber>;
51378
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
51379
+ values: z.ZodArray<z.ZodString, "many">;
51380
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
51381
+ }, "strip", z.ZodTypeAny, {
51382
+ values: string[];
51383
+ type: "number" | "boolean" | "date" | "text" | "list";
51384
+ }, {
51385
+ values: string[];
51386
+ type: "number" | "boolean" | "date" | "text" | "list";
51387
+ }>>>;
51309
51388
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
51310
51389
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
51311
51390
  comments: z.ZodNumber;
@@ -51841,6 +51920,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
51841
51920
  }>;
51842
51921
  mode?: "Children" | "AllDescendants" | undefined;
51843
51922
  totalMatches?: number | undefined;
51923
+ filterOptions?: Record<string, {
51924
+ values: string[];
51925
+ type: "number" | "boolean" | "date" | "text" | "list";
51926
+ }> | undefined;
51844
51927
  }, {
51845
51928
  in: {
51846
51929
  path: string[] | null;
@@ -52026,6 +52109,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52026
52109
  }>;
52027
52110
  mode?: "Children" | "AllDescendants" | undefined;
52028
52111
  totalMatches?: number | undefined;
52112
+ filterOptions?: Record<string, {
52113
+ values: string[];
52114
+ type: "number" | "boolean" | "date" | "text" | "list";
52115
+ }> | undefined;
52029
52116
  }>>;
52030
52117
  }, "strip", z.ZodTypeAny, {
52031
52118
  key: "QueryBlock";
@@ -52047,7 +52134,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52047
52134
  filters?: {
52048
52135
  value: string;
52049
52136
  columnId: string;
52050
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
52137
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
52051
52138
  }[] | undefined;
52052
52139
  } | undefined;
52053
52140
  };
@@ -52236,6 +52323,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52236
52323
  }>;
52237
52324
  mode?: "Children" | "AllDescendants" | undefined;
52238
52325
  totalMatches?: number | undefined;
52326
+ filterOptions?: Record<string, {
52327
+ values: string[];
52328
+ type: "number" | "boolean" | "date" | "text" | "list";
52329
+ }> | undefined;
52239
52330
  } | null;
52240
52331
  }, {
52241
52332
  key: "QueryBlock";
@@ -52257,7 +52348,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52257
52348
  filters?: {
52258
52349
  value: string;
52259
52350
  columnId: string;
52260
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
52351
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
52261
52352
  }[] | undefined;
52262
52353
  } | undefined;
52263
52354
  };
@@ -52446,6 +52537,10 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
52446
52537
  }>;
52447
52538
  mode?: "Children" | "AllDescendants" | undefined;
52448
52539
  totalMatches?: number | undefined;
52540
+ filterOptions?: Record<string, {
52541
+ values: string[];
52542
+ type: "number" | "boolean" | "date" | "text" | "list";
52543
+ }> | undefined;
52449
52544
  } | null;
52450
52545
  }>, z.ZodObject<{
52451
52546
  key: z.ZodLiteral<"AccountContacts">;
@@ -68779,30 +68874,30 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
68779
68874
  search: z.ZodOptional<z.ZodString>;
68780
68875
  filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
68781
68876
  columnId: z.ZodString;
68782
- operator: z.ZodEnum<["contains", "equals", "greaterThan", "lessThan"]>;
68877
+ operator: z.ZodEnum<["contains", "equals", "notEquals", "greaterThan", "lessThan"]>;
68783
68878
  value: z.ZodString;
68784
68879
  }, "strip", z.ZodTypeAny, {
68785
68880
  value: string;
68786
68881
  columnId: string;
68787
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68882
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68788
68883
  }, {
68789
68884
  value: string;
68790
68885
  columnId: string;
68791
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68886
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68792
68887
  }>, "many">>;
68793
68888
  }, "strip", z.ZodTypeAny, {
68794
68889
  search?: string | undefined;
68795
68890
  filters?: {
68796
68891
  value: string;
68797
68892
  columnId: string;
68798
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68893
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68799
68894
  }[] | undefined;
68800
68895
  }, {
68801
68896
  search?: string | undefined;
68802
68897
  filters?: {
68803
68898
  value: string;
68804
68899
  columnId: string;
68805
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68900
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68806
68901
  }[] | undefined;
68807
68902
  }>>;
68808
68903
  }, "strip", z.ZodTypeAny, {
@@ -68823,7 +68918,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
68823
68918
  filters?: {
68824
68919
  value: string;
68825
68920
  columnId: string;
68826
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68921
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68827
68922
  }[] | undefined;
68828
68923
  } | undefined;
68829
68924
  }, {
@@ -68844,7 +68939,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
68844
68939
  filters?: {
68845
68940
  value: string;
68846
68941
  columnId: string;
68847
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
68942
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
68848
68943
  }[] | undefined;
68849
68944
  } | undefined;
68850
68945
  }>;
@@ -69407,6 +69502,16 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
69407
69502
  firstImageInContent?: string | undefined;
69408
69503
  }>, "many">;
69409
69504
  totalMatches: z.ZodOptional<z.ZodNumber>;
69505
+ filterOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
69506
+ values: z.ZodArray<z.ZodString, "many">;
69507
+ type: z.ZodEnum<["text", "number", "boolean", "date", "list"]>;
69508
+ }, "strip", z.ZodTypeAny, {
69509
+ values: string[];
69510
+ type: "number" | "boolean" | "date" | "text" | "list";
69511
+ }, {
69512
+ values: string[];
69513
+ type: "number" | "boolean" | "date" | "text" | "list";
69514
+ }>>>;
69410
69515
  mode: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"Children">, z.ZodLiteral<"AllDescendants">]>>;
69411
69516
  interactionSummaries: z.ZodRecord<z.ZodString, z.ZodObject<{
69412
69517
  comments: z.ZodNumber;
@@ -69942,6 +70047,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
69942
70047
  }>;
69943
70048
  mode?: "Children" | "AllDescendants" | undefined;
69944
70049
  totalMatches?: number | undefined;
70050
+ filterOptions?: Record<string, {
70051
+ values: string[];
70052
+ type: "number" | "boolean" | "date" | "text" | "list";
70053
+ }> | undefined;
69945
70054
  }, {
69946
70055
  in: {
69947
70056
  path: string[] | null;
@@ -70127,6 +70236,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70127
70236
  }>;
70128
70237
  mode?: "Children" | "AllDescendants" | undefined;
70129
70238
  totalMatches?: number | undefined;
70239
+ filterOptions?: Record<string, {
70240
+ values: string[];
70241
+ type: "number" | "boolean" | "date" | "text" | "list";
70242
+ }> | undefined;
70130
70243
  }>>;
70131
70244
  }, "strip", z.ZodTypeAny, {
70132
70245
  key: "QueryBlock";
@@ -70148,7 +70261,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70148
70261
  filters?: {
70149
70262
  value: string;
70150
70263
  columnId: string;
70151
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
70264
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
70152
70265
  }[] | undefined;
70153
70266
  } | undefined;
70154
70267
  };
@@ -70337,6 +70450,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70337
70450
  }>;
70338
70451
  mode?: "Children" | "AllDescendants" | undefined;
70339
70452
  totalMatches?: number | undefined;
70453
+ filterOptions?: Record<string, {
70454
+ values: string[];
70455
+ type: "number" | "boolean" | "date" | "text" | "list";
70456
+ }> | undefined;
70340
70457
  } | null;
70341
70458
  }, {
70342
70459
  key: "QueryBlock";
@@ -70358,7 +70475,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70358
70475
  filters?: {
70359
70476
  value: string;
70360
70477
  columnId: string;
70361
- operator: "contains" | "equals" | "greaterThan" | "lessThan";
70478
+ operator: "contains" | "equals" | "notEquals" | "greaterThan" | "lessThan";
70362
70479
  }[] | undefined;
70363
70480
  } | undefined;
70364
70481
  };
@@ -70547,6 +70664,10 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
70547
70664
  }>;
70548
70665
  mode?: "Children" | "AllDescendants" | undefined;
70549
70666
  totalMatches?: number | undefined;
70667
+ filterOptions?: Record<string, {
70668
+ values: string[];
70669
+ type: "number" | "boolean" | "date" | "text" | "list";
70670
+ }> | undefined;
70550
70671
  } | null;
70551
70672
  }>, z.ZodObject<{
70552
70673
  key: z.ZodLiteral<"AccountContacts">;
package/dist/hm-types.mjs CHANGED
@@ -62,6 +62,7 @@ import {
62
62
  HMDocumentMetadataSchema,
63
63
  HMDocumentSchema,
64
64
  HMDocumentSortSchema,
65
+ HMDocumentTimeFieldSchema,
65
66
  HMDomainInfoSchema,
66
67
  HMDraftContentSchema,
67
68
  HMDraftMetaSchema,
@@ -139,6 +140,7 @@ import {
139
140
  HMPublishBlobsInputSchema,
140
141
  HMPublishBlobsOutputSchema,
141
142
  HMPublishBlobsRequestSchema,
143
+ HMQueryBlockFilterOptionsSchema,
142
144
  HMQueryBlockInputSchema,
143
145
  HMQueryBlockItemSummarySchema,
144
146
  HMQueryBlockPayloadSchema,
@@ -210,7 +212,7 @@ import {
210
212
  toNumber,
211
213
  unpackHmId,
212
214
  unpackedHmIdSchema
213
- } from "./chunk-2KOZBPIM.mjs";
215
+ } from "./chunk-QVT252PP.mjs";
214
216
  import "./chunk-7P6ASYW6.mjs";
215
217
  export {
216
218
  BUILTIN_METADATA_KEYS,
@@ -276,6 +278,7 @@ export {
276
278
  HMDocumentMetadataSchema,
277
279
  HMDocumentSchema,
278
280
  HMDocumentSortSchema,
281
+ HMDocumentTimeFieldSchema,
279
282
  HMDomainInfoSchema,
280
283
  HMDraftContentSchema,
281
284
  HMDraftMetaSchema,
@@ -353,6 +356,7 @@ export {
353
356
  HMPublishBlobsInputSchema,
354
357
  HMPublishBlobsOutputSchema,
355
358
  HMPublishBlobsRequestSchema,
359
+ HMQueryBlockFilterOptionsSchema,
356
360
  HMQueryBlockInputSchema,
357
361
  HMQueryBlockItemSummarySchema,
358
362
  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-EYZ2ASKH.mjs";
6
+ import "./chunk-QVT252PP.mjs";
7
7
  import "./chunk-7P6ASYW6.mjs";
8
8
  export {
9
9
  annotationContains,
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  resolveIdWithClient
3
- } from "./chunk-GRBJUKWS.mjs";
3
+ } from "./chunk-SHO3IZ52.mjs";
4
4
  import {
5
5
  annotationContains,
6
6
  hmBlockToEditorBlock,
7
7
  hmBlocksToEditorContent
8
- } from "./chunk-FLUWADFC.mjs";
8
+ } from "./chunk-EYZ2ASKH.mjs";
9
9
  import {
10
10
  keyfile_exports
11
11
  } from "./chunk-EY6RQVAP.mjs";
@@ -19,17 +19,17 @@ import {
19
19
  } from "./chunk-K5NYTWBJ.mjs";
20
20
  import {
21
21
  pdfToBlocks
22
- } from "./chunk-AUY42GMB.mjs";
22
+ } from "./chunk-DTGWQF2V.mjs";
23
23
  import {
24
24
  teiToBlocks
25
- } from "./chunk-HJ4ACOMW.mjs";
25
+ } from "./chunk-IBCBCFHK.mjs";
26
26
  import {
27
27
  embeddedPdfToBlocks
28
28
  } from "./chunk-2FJBS3V7.mjs";
29
29
  import {
30
30
  editorBlockToHMBlock,
31
31
  editorBlocksToHMBlockNodes
32
- } from "./chunk-F72LNF4Q.mjs";
32
+ } from "./chunk-WDFJI6D6.mjs";
33
33
  import {
34
34
  encryption_exports
35
35
  } from "./chunk-UOL3F6XQ.mjs";
@@ -47,10 +47,10 @@ import {
47
47
  import {
48
48
  resolveHypermediaUrl,
49
49
  resolveId
50
- } from "./chunk-CVHEDNGU.mjs";
50
+ } from "./chunk-OJZMPYIA.mjs";
51
51
  import {
52
52
  createSeedClient
53
- } from "./chunk-XHF4IQ4R.mjs";
53
+ } from "./chunk-MEQO52BY.mjs";
54
54
  import {
55
55
  SeedClientError,
56
56
  SeedNetworkError,
@@ -62,7 +62,7 @@ import {
62
62
  deleteComment,
63
63
  trimTrailingEmptyBlocks,
64
64
  updateComment
65
- } from "./chunk-6YBRBK6F.mjs";
65
+ } from "./chunk-73AJU7X4.mjs";
66
66
  import {
67
67
  AnnotationSet,
68
68
  addSpanToAnnotation,
@@ -83,7 +83,7 @@ import {
83
83
  documentContainsLinkToChild,
84
84
  documentHasSelfQuery,
85
85
  shouldAutoLinkParent
86
- } from "./chunk-KD3ZIXZV.mjs";
86
+ } from "./chunk-JSOVDI7M.mjs";
87
87
  import {
88
88
  createChange,
89
89
  createChangeOps,
@@ -105,7 +105,7 @@ import {
105
105
  followToDocument,
106
106
  resolveDocumentState,
107
107
  resolveEditableDocument
108
- } from "./chunk-CTJU7XIA.mjs";
108
+ } from "./chunk-RPDVEULA.mjs";
109
109
  import "./chunk-2MD3FXKB.mjs";
110
110
  import {
111
111
  computeReplaceOps,
@@ -124,11 +124,11 @@ import {
124
124
  emitFrontmatter,
125
125
  parseDraftFilename,
126
126
  slugify
127
- } from "./chunk-BGXPPECP.mjs";
127
+ } from "./chunk-E2T47UJW.mjs";
128
128
  import {
129
129
  createCapability,
130
130
  resolveCapability
131
- } from "./chunk-JKXO3OWO.mjs";
131
+ } from "./chunk-UQV5WEK6.mjs";
132
132
  import "./chunk-LVAHHQIK.mjs";
133
133
  import "./chunk-NBCHK76Q.mjs";
134
134
  import {
@@ -148,7 +148,7 @@ import {
148
148
  parseFragment,
149
149
  serializeBlockRange,
150
150
  unpackHmId
151
- } from "./chunk-2KOZBPIM.mjs";
151
+ } from "./chunk-QVT252PP.mjs";
152
152
  import "./chunk-3TPCJCVO.mjs";
153
153
  import "./chunk-7P6ASYW6.mjs";
154
154
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-AUY42GMB.mjs";
4
- import "./chunk-HJ4ACOMW.mjs";
3
+ } from "./chunk-DTGWQF2V.mjs";
4
+ import "./chunk-IBCBCFHK.mjs";
5
5
  import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-2KOZBPIM.mjs";
7
+ import "./chunk-QVT252PP.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-SHO3IZ52.mjs";
4
+ import "./chunk-OJZMPYIA.mjs";
5
+ import "./chunk-MEQO52BY.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-QVT252PP.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-YYC5H3AY.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-QVT252PP.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-YYC5H3AY.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-QVT252PP.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-IBCBCFHK.mjs";
4
+ import "./chunk-QVT252PP.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-QVT252PP.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.98",
3
+ "version": "0.0.100",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",