@seed-hypermedia/client 0.0.99 → 0.0.101

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-O6WMVXYX.mjs → chunk-5ECP2AA6.mjs} +3 -3
  5. package/dist/{chunk-IXYSNJ4P.mjs → chunk-7DXNZGR5.mjs} +1 -1
  6. package/dist/{chunk-AN7IS7UT.mjs → chunk-AVFMKA27.mjs} +1 -1
  7. package/dist/{chunk-HUGY2OQM.mjs → chunk-GCBKFXKL.mjs} +1 -1
  8. package/dist/{chunk-SD5QINAJ.mjs → chunk-GJ3L3MYM.mjs} +1 -1
  9. package/dist/{chunk-LXN2DFPO.mjs → chunk-KUCHTHLG.mjs} +1 -1
  10. package/dist/{chunk-7WWI7MDG.mjs → chunk-OAIUNL5V.mjs} +1 -1
  11. package/dist/{chunk-XL2DYLXF.mjs → chunk-PO3UBPBJ.mjs} +1 -1
  12. package/dist/{chunk-FCOBC7SH.mjs → chunk-QRXNROVO.mjs} +1 -1
  13. package/dist/{chunk-IW3I7TQJ.mjs → chunk-RBX7IGCN.mjs} +6 -2
  14. package/dist/{chunk-4HRE5RLC.mjs → chunk-TJFFZMRI.mjs} +1 -1
  15. package/dist/{chunk-TWX7MSMH.mjs → chunk-TQLNIME2.mjs} +2 -2
  16. package/dist/{chunk-PLHPUUUF.mjs → chunk-VPEN5FUU.mjs} +1 -1
  17. package/dist/{chunk-RS4GOQBZ.mjs → chunk-YLWLQUUZ.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 +14 -2
  26. package/dist/hm-types.mjs +3 -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-TWX7MSMH.mjs";
7
+ } from "./chunk-TQLNIME2.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-AN7IS7UT.mjs";
10
+ import "./chunk-AVFMKA27.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
- import "./chunk-IW3I7TQJ.mjs";
13
+ import "./chunk-RBX7IGCN.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-RS4GOQBZ.mjs";
11
- import "./chunk-IW3I7TQJ.mjs";
10
+ } from "./chunk-YLWLQUUZ.mjs";
11
+ import "./chunk-RBX7IGCN.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-7WWI7MDG.mjs";
4
+ } from "./chunk-OAIUNL5V.mjs";
5
5
  import "./chunk-LVAHHQIK.mjs";
6
6
  import "./chunk-NBCHK76Q.mjs";
7
7
  import "./chunk-DR3HJ6BV.mjs";
8
- import "./chunk-IW3I7TQJ.mjs";
8
+ import "./chunk-RBX7IGCN.mjs";
9
9
  import "./chunk-3TPCJCVO.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
11
11
  export {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  resolveId
3
- } from "./chunk-4HRE5RLC.mjs";
3
+ } from "./chunk-TJFFZMRI.mjs";
4
4
  import {
5
5
  createSeedClient
6
- } from "./chunk-XL2DYLXF.mjs";
6
+ } from "./chunk-PO3UBPBJ.mjs";
7
7
  import {
8
8
  unpackHmId
9
- } from "./chunk-IW3I7TQJ.mjs";
9
+ } from "./chunk-RBX7IGCN.mjs";
10
10
 
11
11
  // src/resource-read.ts
12
12
  async function resolveIdWithClient(rawId, options = {}) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  codePointLength
3
- } from "./chunk-IW3I7TQJ.mjs";
3
+ } from "./chunk-RBX7IGCN.mjs";
4
4
 
5
5
  // src/tei-to-blocks.ts
6
6
  function generateBlockId() {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  packHmId,
3
3
  unpackHmId
4
- } from "./chunk-IW3I7TQJ.mjs";
4
+ } from "./chunk-RBX7IGCN.mjs";
5
5
 
6
6
  // src/document-state.ts
7
7
  async function resolveDocumentState(client, targetId) {
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-IW3I7TQJ.mjs";
12
+ } from "./chunk-RBX7IGCN.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-IXYSNJ4P.mjs";
3
+ } from "./chunk-7DXNZGR5.mjs";
4
4
  import {
5
5
  embeddedPdfToBlocks
6
6
  } from "./chunk-2FJBS3V7.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSurrogate
3
- } from "./chunk-IW3I7TQJ.mjs";
3
+ } from "./chunk-RBX7IGCN.mjs";
4
4
 
5
5
  // src/hmblock-to-editorblock.ts
6
6
  function toEditorBlockType(hmBlockType) {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-IW3I7TQJ.mjs";
10
+ } from "./chunk-RBX7IGCN.mjs";
11
11
 
12
12
  // src/capability.ts
13
13
  import { base58btc } from "multiformats/bases/base58";
@@ -15,7 +15,7 @@ import {
15
15
  HMActionSchema,
16
16
  HMRequestSchema,
17
17
  packHmId
18
- } from "./chunk-IW3I7TQJ.mjs";
18
+ } from "./chunk-RBX7IGCN.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
@@ -6,7 +6,7 @@ import {
6
6
  HMBlockSchema,
7
7
  codePointLength,
8
8
  toNumber
9
- } from "./chunk-IW3I7TQJ.mjs";
9
+ } from "./chunk-RBX7IGCN.mjs";
10
10
 
11
11
  // src/editorblock-to-hmblock.ts
12
12
  function toHMBlockType(editorBlockType) {
@@ -308,7 +308,7 @@ var HMDocumentMetadataSchema = z.object({
308
308
  // Import taxonomy fields (comma-separated values from external sources like WordPress)
309
309
  importCategories: z.string().optional(),
310
310
  importTags: z.string().optional(),
311
- // JSON-stringified schema definition; present iff this document describes a schema (see notes/schema-as-document.md).
311
+ // `ipfs://<cid>` of the schema blob this document defines; present iff this document is a schema's home page (see hypermedia/schema/typed-documents.md).
312
312
  schemaDefinition: z.string().optional()
313
313
  }).passthrough();
314
314
  function hmMetadataJsonCorrection(metadata) {
@@ -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([
@@ -1789,6 +1792,7 @@ export {
1789
1792
  HMSearchRequestSchema,
1790
1793
  HMAttributeValueSchema,
1791
1794
  HMDocumentFilterComparisonOperatorSchema,
1795
+ HMDocumentTimeFieldSchema,
1792
1796
  HMDocumentFilterSchema,
1793
1797
  HMBuiltinSortAttributeSchema,
1794
1798
  HMDocumentSortSchema,
@@ -2,7 +2,7 @@ import {
2
2
  entityQueryPathToHmIdPath,
3
3
  parseFragment,
4
4
  unpackHmId
5
- } from "./chunk-IW3I7TQJ.mjs";
5
+ } from "./chunk-RBX7IGCN.mjs";
6
6
 
7
7
  // src/hm-resolver.ts
8
8
  async function resolveHypermediaUrl(url, opts) {
@@ -7,12 +7,12 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-AN7IS7UT.mjs";
10
+ } from "./chunk-AVFMKA27.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
14
14
  unpackHmId
15
- } from "./chunk-IW3I7TQJ.mjs";
15
+ } from "./chunk-RBX7IGCN.mjs";
16
16
 
17
17
  // src/auto-link.ts
18
18
  import { CID } from "multiformats/cid";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  packHmId,
22
22
  unpackHmId
23
- } from "./chunk-IW3I7TQJ.mjs";
23
+ } from "./chunk-RBX7IGCN.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-IW3I7TQJ.mjs";
4
+ } from "./chunk-RBX7IGCN.mjs";
5
5
 
6
6
  // src/blocks-to-markdown.ts
7
7
  import { stringify as stringifyYaml } from "yaml";
package/dist/client.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createSeedClient,
3
3
  deserializeQueryString
4
- } from "./chunk-XL2DYLXF.mjs";
4
+ } from "./chunk-PO3UBPBJ.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-IW3I7TQJ.mjs";
10
+ import "./chunk-RBX7IGCN.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-HUGY2OQM.mjs";
7
+ } from "./chunk-GCBKFXKL.mjs";
8
8
  import "./chunk-JKKS35IS.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-IW3I7TQJ.mjs";
11
+ import "./chunk-RBX7IGCN.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-AN7IS7UT.mjs";
8
- import "./chunk-IW3I7TQJ.mjs";
7
+ } from "./chunk-AVFMKA27.mjs";
8
+ import "./chunk-RBX7IGCN.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-FCOBC7SH.mjs";
4
+ } from "./chunk-QRXNROVO.mjs";
5
5
  import "./chunk-JKKS35IS.mjs";
6
- import "./chunk-IW3I7TQJ.mjs";
6
+ import "./chunk-RBX7IGCN.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-4HRE5RLC.mjs";
5
- import "./chunk-IW3I7TQJ.mjs";
4
+ } from "./chunk-TJFFZMRI.mjs";
5
+ import "./chunk-RBX7IGCN.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"]>;
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,
@@ -211,7 +212,7 @@ import {
211
212
  toNumber,
212
213
  unpackHmId,
213
214
  unpackedHmIdSchema
214
- } from "./chunk-IW3I7TQJ.mjs";
215
+ } from "./chunk-RBX7IGCN.mjs";
215
216
  import "./chunk-7P6ASYW6.mjs";
216
217
  export {
217
218
  BUILTIN_METADATA_KEYS,
@@ -277,6 +278,7 @@ export {
277
278
  HMDocumentMetadataSchema,
278
279
  HMDocumentSchema,
279
280
  HMDocumentSortSchema,
281
+ HMDocumentTimeFieldSchema,
280
282
  HMDomainInfoSchema,
281
283
  HMDraftContentSchema,
282
284
  HMDraftMetaSchema,
@@ -2,8 +2,8 @@ import {
2
2
  annotationContains,
3
3
  hmBlockToEditorBlock,
4
4
  hmBlocksToEditorContent
5
- } from "./chunk-LXN2DFPO.mjs";
6
- import "./chunk-IW3I7TQJ.mjs";
5
+ } from "./chunk-KUCHTHLG.mjs";
6
+ import "./chunk-RBX7IGCN.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-O6WMVXYX.mjs";
3
+ } from "./chunk-5ECP2AA6.mjs";
4
4
  import {
5
5
  annotationContains,
6
6
  hmBlockToEditorBlock,
7
7
  hmBlocksToEditorContent
8
- } from "./chunk-LXN2DFPO.mjs";
8
+ } from "./chunk-KUCHTHLG.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-SD5QINAJ.mjs";
22
+ } from "./chunk-GJ3L3MYM.mjs";
23
23
  import {
24
24
  teiToBlocks
25
- } from "./chunk-IXYSNJ4P.mjs";
25
+ } from "./chunk-7DXNZGR5.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-FCOBC7SH.mjs";
32
+ } from "./chunk-QRXNROVO.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-4HRE5RLC.mjs";
50
+ } from "./chunk-TJFFZMRI.mjs";
51
51
  import {
52
52
  createSeedClient
53
- } from "./chunk-XL2DYLXF.mjs";
53
+ } from "./chunk-PO3UBPBJ.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-HUGY2OQM.mjs";
65
+ } from "./chunk-GCBKFXKL.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-TWX7MSMH.mjs";
86
+ } from "./chunk-TQLNIME2.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-AN7IS7UT.mjs";
108
+ } from "./chunk-AVFMKA27.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-RS4GOQBZ.mjs";
127
+ } from "./chunk-YLWLQUUZ.mjs";
128
128
  import {
129
129
  createCapability,
130
130
  resolveCapability
131
- } from "./chunk-7WWI7MDG.mjs";
131
+ } from "./chunk-OAIUNL5V.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-IW3I7TQJ.mjs";
151
+ } from "./chunk-RBX7IGCN.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-SD5QINAJ.mjs";
4
- import "./chunk-IXYSNJ4P.mjs";
3
+ } from "./chunk-GJ3L3MYM.mjs";
4
+ import "./chunk-7DXNZGR5.mjs";
5
5
  import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-IW3I7TQJ.mjs";
7
+ import "./chunk-RBX7IGCN.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-O6WMVXYX.mjs";
4
- import "./chunk-4HRE5RLC.mjs";
5
- import "./chunk-XL2DYLXF.mjs";
3
+ } from "./chunk-5ECP2AA6.mjs";
4
+ import "./chunk-TJFFZMRI.mjs";
5
+ import "./chunk-PO3UBPBJ.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-IW3I7TQJ.mjs";
11
+ import "./chunk-RBX7IGCN.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-PLHPUUUF.mjs";
20
+ } from "./chunk-VPEN5FUU.mjs";
21
21
  import "./chunk-FFH7G6KW.mjs";
22
22
  import "./chunk-ZWKMAGDU.mjs";
23
23
  import "./chunk-VWSAFDOL.mjs";
24
- import "./chunk-IW3I7TQJ.mjs";
24
+ import "./chunk-RBX7IGCN.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-PLHPUUUF.mjs";
3
+ } from "./chunk-VPEN5FUU.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-IW3I7TQJ.mjs";
16
+ } from "./chunk-RBX7IGCN.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-IXYSNJ4P.mjs";
4
- import "./chunk-IW3I7TQJ.mjs";
3
+ } from "./chunk-7DXNZGR5.mjs";
4
+ import "./chunk-RBX7IGCN.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-IW3I7TQJ.mjs";
10
+ } from "./chunk-RBX7IGCN.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.99",
3
+ "version": "0.0.101",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",