@seed-hypermedia/client 0.0.95 → 0.0.97

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 (36) 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-3NYKSLJ4.mjs → chunk-2KOZBPIM.mjs} +1 -1
  5. package/dist/{chunk-BBJCA2PR.mjs → chunk-6YGIRB3K.mjs} +2 -2
  6. package/dist/{chunk-JUXVJ5TO.mjs → chunk-AUY42GMB.mjs} +1 -1
  7. package/dist/{chunk-LFY2IN4N.mjs → chunk-BGXPPECP.mjs} +1 -1
  8. package/dist/{chunk-X3WUOOPH.mjs → chunk-CTJU7XIA.mjs} +1 -1
  9. package/dist/{chunk-X3636TQF.mjs → chunk-CVHEDNGU.mjs} +1 -1
  10. package/dist/{chunk-JSA5TYHQ.mjs → chunk-F72LNF4Q.mjs} +1 -1
  11. package/dist/{chunk-JSNDXUPG.mjs → chunk-FFH7G6KW.mjs} +2 -1
  12. package/dist/{chunk-MO524BCL.mjs → chunk-FLUWADFC.mjs} +1 -1
  13. package/dist/{chunk-6JS7R6XP.mjs → chunk-GRBJUKWS.mjs} +3 -3
  14. package/dist/{chunk-2JLNS6YU.mjs → chunk-HJ4ACOMW.mjs} +1 -1
  15. package/dist/{chunk-Y4P6H3KD.mjs → chunk-JKXO3OWO.mjs} +1 -1
  16. package/dist/{chunk-32JNJI2C.mjs → chunk-KD3ZIXZV.mjs} +2 -2
  17. package/dist/{chunk-5YWGB4XU.mjs → chunk-XHF4IQ4R.mjs} +1 -1
  18. package/dist/{chunk-F6A7GGKJ.mjs → chunk-Y3HCUNXC.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 +29 -29
  25. package/dist/hm-types.mjs +1 -1
  26. package/dist/hmblock-to-editorblock.mjs +2 -2
  27. package/dist/index.mjs +13 -13
  28. package/dist/pdf-to-blocks.mjs +3 -3
  29. package/dist/resource-read.mjs +4 -4
  30. package/dist/schema-engine.mjs +1 -1
  31. package/dist/schema-resolve.mjs +3 -3
  32. package/dist/schema-subtypes.mjs +3 -3
  33. package/dist/signed-blob.mjs +1 -1
  34. package/dist/tei-to-blocks.mjs +2 -2
  35. package/dist/unicode.mjs +1 -1
  36. package/package.json +1 -1
@@ -4,13 +4,13 @@ import {
4
4
  documentContainsLinkToChild,
5
5
  documentHasSelfQuery,
6
6
  shouldAutoLinkParent
7
- } from "./chunk-32JNJI2C.mjs";
7
+ } from "./chunk-KD3ZIXZV.mjs";
8
8
  import "./chunk-O5MHN2EO.mjs";
9
9
  import "./chunk-PJ2RFT5A.mjs";
10
- import "./chunk-X3WUOOPH.mjs";
10
+ import "./chunk-CTJU7XIA.mjs";
11
11
  import "./chunk-LVAHHQIK.mjs";
12
12
  import "./chunk-DR3HJ6BV.mjs";
13
- import "./chunk-3NYKSLJ4.mjs";
13
+ import "./chunk-2KOZBPIM.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-LFY2IN4N.mjs";
11
- import "./chunk-3NYKSLJ4.mjs";
10
+ } from "./chunk-BGXPPECP.mjs";
11
+ import "./chunk-2KOZBPIM.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-Y4P6H3KD.mjs";
4
+ } from "./chunk-JKXO3OWO.mjs";
5
5
  import "./chunk-LVAHHQIK.mjs";
6
6
  import "./chunk-NBCHK76Q.mjs";
7
7
  import "./chunk-DR3HJ6BV.mjs";
8
- import "./chunk-3NYKSLJ4.mjs";
8
+ import "./chunk-2KOZBPIM.mjs";
9
9
  import "./chunk-3TPCJCVO.mjs";
10
10
  import "./chunk-7P6ASYW6.mjs";
11
11
  export {
@@ -879,7 +879,7 @@ var HMSearchResultItemSchema = z.object({
879
879
  parentNames: z.array(z.string()),
880
880
  versionTime: z.string().optional(),
881
881
  searchQuery: z.string(),
882
- type: z.enum(["document", "contact", "comment"])
882
+ type: z.enum(["document", "profile", "contact", "comment"])
883
883
  });
884
884
  var HMSearchPayloadSchema = z.object({
885
885
  entities: z.array(HMSearchResultItemSchema),
@@ -10,7 +10,7 @@ import {
10
10
  schemaForCid,
11
11
  structFields,
12
12
  validate
13
- } from "./chunk-JSNDXUPG.mjs";
13
+ } from "./chunk-FFH7G6KW.mjs";
14
14
  import {
15
15
  HM_SCHEMAS
16
16
  } from "./chunk-ZWKMAGDU.mjs";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  packHmId,
22
22
  unpackHmId
23
- } from "./chunk-3NYKSLJ4.mjs";
23
+ } from "./chunk-2KOZBPIM.mjs";
24
24
 
25
25
  // src/schema-resolve.ts
26
26
  var DAG_CBOR_CODE = 113;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-2JLNS6YU.mjs";
3
+ } from "./chunk-HJ4ACOMW.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-3NYKSLJ4.mjs";
4
+ } from "./chunk-2KOZBPIM.mjs";
5
5
 
6
6
  // src/blocks-to-markdown.ts
7
7
  import { stringify as stringifyYaml } from "yaml";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  packHmId,
3
3
  unpackHmId
4
- } from "./chunk-3NYKSLJ4.mjs";
4
+ } from "./chunk-2KOZBPIM.mjs";
5
5
 
6
6
  // src/document-state.ts
7
7
  async function resolveDocumentState(client, targetId) {
@@ -2,7 +2,7 @@ import {
2
2
  entityQueryPathToHmIdPath,
3
3
  parseFragment,
4
4
  unpackHmId
5
- } from "./chunk-3NYKSLJ4.mjs";
5
+ } from "./chunk-2KOZBPIM.mjs";
6
6
 
7
7
  // src/hm-resolver.ts
8
8
  async function resolveHypermediaUrl(url, opts) {
@@ -6,7 +6,7 @@ import {
6
6
  HMBlockSchema,
7
7
  codePointLength,
8
8
  toNumber
9
- } from "./chunk-3NYKSLJ4.mjs";
9
+ } from "./chunk-2KOZBPIM.mjs";
10
10
 
11
11
  // src/editorblock-to-hmblock.ts
12
12
  function toHMBlockType(editorBlockType) {
@@ -6,6 +6,7 @@ import {
6
6
 
7
7
  // src/schema-engine.ts
8
8
  var LIBRARY_AUTHORITY = "hyper.media";
9
+ var LEGACY_LIBRARY_AUTHORITIES = /* @__PURE__ */ new Set(["seed.hyper.media", "example.com"]);
9
10
  var KINDS = ["null", "boolean", "integer", "float", "string", "bytes", "list", "map", "struct", "link"];
10
11
  var LIBRARY_CORE = new Set(
11
12
  [
@@ -34,7 +35,7 @@ function refToName(ref) {
34
35
  const m = /^hm:\/\/([^/]+)\/(.+)$/.exec(ref);
35
36
  if (!m) return ref.replace(/\.schema\.json$|\.json$/, "");
36
37
  const [, auth = "", name = ""] = m;
37
- return auth === LIBRARY_AUTHORITY ? name : ref;
38
+ return auth === LIBRARY_AUTHORITY || LEGACY_LIBRARY_AUTHORITIES.has(auth) ? name : ref;
38
39
  }
39
40
  function nameToUrl(name) {
40
41
  return `hm://${LIBRARY_AUTHORITY}/${name}`;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSurrogate
3
- } from "./chunk-3NYKSLJ4.mjs";
3
+ } from "./chunk-2KOZBPIM.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-X3636TQF.mjs";
3
+ } from "./chunk-CVHEDNGU.mjs";
4
4
  import {
5
5
  createSeedClient
6
- } from "./chunk-5YWGB4XU.mjs";
6
+ } from "./chunk-XHF4IQ4R.mjs";
7
7
  import {
8
8
  unpackHmId
9
- } from "./chunk-3NYKSLJ4.mjs";
9
+ } from "./chunk-2KOZBPIM.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-3NYKSLJ4.mjs";
3
+ } from "./chunk-2KOZBPIM.mjs";
4
4
 
5
5
  // src/tei-to-blocks.ts
6
6
  function generateBlockId() {
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  entityQueryPathToHmIdPath,
9
9
  packBaseId
10
- } from "./chunk-3NYKSLJ4.mjs";
10
+ } from "./chunk-2KOZBPIM.mjs";
11
11
 
12
12
  // src/capability.ts
13
13
  import { base58btc } from "multiformats/bases/base58";
@@ -7,12 +7,12 @@ import {
7
7
  } from "./chunk-PJ2RFT5A.mjs";
8
8
  import {
9
9
  resolveDocumentState
10
- } from "./chunk-X3WUOOPH.mjs";
10
+ } from "./chunk-CTJU7XIA.mjs";
11
11
  import {
12
12
  entityQueryPathToHmIdPath,
13
13
  packHmId,
14
14
  unpackHmId
15
- } from "./chunk-3NYKSLJ4.mjs";
15
+ } from "./chunk-2KOZBPIM.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-3NYKSLJ4.mjs";
18
+ } from "./chunk-2KOZBPIM.mjs";
19
19
 
20
20
  // src/client.ts
21
21
  import { encode as cborEncode } from "@ipld/dag-cbor";
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  hmIdPathToEntityQueryPath,
11
11
  packHmId
12
- } from "./chunk-3NYKSLJ4.mjs";
12
+ } from "./chunk-2KOZBPIM.mjs";
13
13
 
14
14
  // src/comment.ts
15
15
  import { decode as cborDecode, 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-5YWGB4XU.mjs";
4
+ } from "./chunk-XHF4IQ4R.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-3NYKSLJ4.mjs";
10
+ import "./chunk-2KOZBPIM.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-F6A7GGKJ.mjs";
7
+ } from "./chunk-Y3HCUNXC.mjs";
8
8
  import "./chunk-JKKS35IS.mjs";
9
9
  import "./chunk-LVAHHQIK.mjs";
10
10
  import "./chunk-DR3HJ6BV.mjs";
11
- import "./chunk-3NYKSLJ4.mjs";
11
+ import "./chunk-2KOZBPIM.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-X3WUOOPH.mjs";
8
- import "./chunk-3NYKSLJ4.mjs";
7
+ } from "./chunk-CTJU7XIA.mjs";
8
+ import "./chunk-2KOZBPIM.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-JSA5TYHQ.mjs";
4
+ } from "./chunk-F72LNF4Q.mjs";
5
5
  import "./chunk-JKKS35IS.mjs";
6
- import "./chunk-3NYKSLJ4.mjs";
6
+ import "./chunk-2KOZBPIM.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-X3636TQF.mjs";
5
- import "./chunk-3NYKSLJ4.mjs";
4
+ } from "./chunk-CVHEDNGU.mjs";
5
+ import "./chunk-2KOZBPIM.mjs";
6
6
  import "./chunk-7P6ASYW6.mjs";
7
7
  export {
8
8
  resolveHypermediaUrl,
@@ -21380,9 +21380,9 @@ export declare const HMSearchResultItemSchema: z.ZodObject<{
21380
21380
  parentNames: z.ZodArray<z.ZodString, "many">;
21381
21381
  versionTime: z.ZodOptional<z.ZodString>;
21382
21382
  searchQuery: z.ZodString;
21383
- type: z.ZodEnum<["document", "contact", "comment"]>;
21383
+ type: z.ZodEnum<["document", "profile", "contact", "comment"]>;
21384
21384
  }, "strip", z.ZodTypeAny, {
21385
- type: "document" | "comment" | "contact";
21385
+ type: "document" | "comment" | "profile" | "contact";
21386
21386
  id: {
21387
21387
  path: string[] | null;
21388
21388
  version: string | null;
@@ -21455,7 +21455,7 @@ export declare const HMSearchResultItemSchema: z.ZodObject<{
21455
21455
  commentId?: string | undefined;
21456
21456
  versionTime?: string | undefined;
21457
21457
  }, {
21458
- type: "document" | "comment" | "contact";
21458
+ type: "document" | "comment" | "profile" | "contact";
21459
21459
  id: {
21460
21460
  path: string[] | null;
21461
21461
  version: string | null;
@@ -21735,9 +21735,9 @@ export declare const HMSearchPayloadSchema: z.ZodObject<{
21735
21735
  parentNames: z.ZodArray<z.ZodString, "many">;
21736
21736
  versionTime: z.ZodOptional<z.ZodString>;
21737
21737
  searchQuery: z.ZodString;
21738
- type: z.ZodEnum<["document", "contact", "comment"]>;
21738
+ type: z.ZodEnum<["document", "profile", "contact", "comment"]>;
21739
21739
  }, "strip", z.ZodTypeAny, {
21740
- type: "document" | "comment" | "contact";
21740
+ type: "document" | "comment" | "profile" | "contact";
21741
21741
  id: {
21742
21742
  path: string[] | null;
21743
21743
  version: string | null;
@@ -21810,7 +21810,7 @@ export declare const HMSearchPayloadSchema: z.ZodObject<{
21810
21810
  commentId?: string | undefined;
21811
21811
  versionTime?: string | undefined;
21812
21812
  }, {
21813
- type: "document" | "comment" | "contact";
21813
+ type: "document" | "comment" | "profile" | "contact";
21814
21814
  id: {
21815
21815
  path: string[] | null;
21816
21816
  version: string | null;
@@ -21888,7 +21888,7 @@ export declare const HMSearchPayloadSchema: z.ZodObject<{
21888
21888
  }, "strip", z.ZodTypeAny, {
21889
21889
  searchQuery: string;
21890
21890
  entities: {
21891
- type: "document" | "comment" | "contact";
21891
+ type: "document" | "comment" | "profile" | "contact";
21892
21892
  id: {
21893
21893
  path: string[] | null;
21894
21894
  version: string | null;
@@ -21965,7 +21965,7 @@ export declare const HMSearchPayloadSchema: z.ZodObject<{
21965
21965
  }, {
21966
21966
  searchQuery: string;
21967
21967
  entities: {
21968
- type: "document" | "comment" | "contact";
21968
+ type: "document" | "comment" | "profile" | "contact";
21969
21969
  id: {
21970
21970
  path: string[] | null;
21971
21971
  version: string | null;
@@ -22287,9 +22287,9 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
22287
22287
  parentNames: z.ZodArray<z.ZodString, "many">;
22288
22288
  versionTime: z.ZodOptional<z.ZodString>;
22289
22289
  searchQuery: z.ZodString;
22290
- type: z.ZodEnum<["document", "contact", "comment"]>;
22290
+ type: z.ZodEnum<["document", "profile", "contact", "comment"]>;
22291
22291
  }, "strip", z.ZodTypeAny, {
22292
- type: "document" | "comment" | "contact";
22292
+ type: "document" | "comment" | "profile" | "contact";
22293
22293
  id: {
22294
22294
  path: string[] | null;
22295
22295
  version: string | null;
@@ -22362,7 +22362,7 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
22362
22362
  commentId?: string | undefined;
22363
22363
  versionTime?: string | undefined;
22364
22364
  }, {
22365
- type: "document" | "comment" | "contact";
22365
+ type: "document" | "comment" | "profile" | "contact";
22366
22366
  id: {
22367
22367
  path: string[] | null;
22368
22368
  version: string | null;
@@ -22440,7 +22440,7 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
22440
22440
  }, "strip", z.ZodTypeAny, {
22441
22441
  searchQuery: string;
22442
22442
  entities: {
22443
- type: "document" | "comment" | "contact";
22443
+ type: "document" | "comment" | "profile" | "contact";
22444
22444
  id: {
22445
22445
  path: string[] | null;
22446
22446
  version: string | null;
@@ -22517,7 +22517,7 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
22517
22517
  }, {
22518
22518
  searchQuery: string;
22519
22519
  entities: {
22520
- type: "document" | "comment" | "contact";
22520
+ type: "document" | "comment" | "profile" | "contact";
22521
22521
  id: {
22522
22522
  path: string[] | null;
22523
22523
  version: string | null;
@@ -22610,7 +22610,7 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
22610
22610
  output: {
22611
22611
  searchQuery: string;
22612
22612
  entities: {
22613
- type: "document" | "comment" | "contact";
22613
+ type: "document" | "comment" | "profile" | "contact";
22614
22614
  id: {
22615
22615
  path: string[] | null;
22616
22616
  version: string | null;
@@ -22703,7 +22703,7 @@ export declare const HMSearchRequestSchema: z.ZodObject<{
22703
22703
  output: {
22704
22704
  searchQuery: string;
22705
22705
  entities: {
22706
- type: "document" | "comment" | "contact";
22706
+ type: "document" | "comment" | "profile" | "contact";
22707
22707
  id: {
22708
22708
  path: string[] | null;
22709
22709
  version: string | null;
@@ -48550,9 +48550,9 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
48550
48550
  parentNames: z.ZodArray<z.ZodString, "many">;
48551
48551
  versionTime: z.ZodOptional<z.ZodString>;
48552
48552
  searchQuery: z.ZodString;
48553
- type: z.ZodEnum<["document", "contact", "comment"]>;
48553
+ type: z.ZodEnum<["document", "profile", "contact", "comment"]>;
48554
48554
  }, "strip", z.ZodTypeAny, {
48555
- type: "document" | "comment" | "contact";
48555
+ type: "document" | "comment" | "profile" | "contact";
48556
48556
  id: {
48557
48557
  path: string[] | null;
48558
48558
  version: string | null;
@@ -48625,7 +48625,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
48625
48625
  commentId?: string | undefined;
48626
48626
  versionTime?: string | undefined;
48627
48627
  }, {
48628
- type: "document" | "comment" | "contact";
48628
+ type: "document" | "comment" | "profile" | "contact";
48629
48629
  id: {
48630
48630
  path: string[] | null;
48631
48631
  version: string | null;
@@ -48703,7 +48703,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
48703
48703
  }, "strip", z.ZodTypeAny, {
48704
48704
  searchQuery: string;
48705
48705
  entities: {
48706
- type: "document" | "comment" | "contact";
48706
+ type: "document" | "comment" | "profile" | "contact";
48707
48707
  id: {
48708
48708
  path: string[] | null;
48709
48709
  version: string | null;
@@ -48780,7 +48780,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
48780
48780
  }, {
48781
48781
  searchQuery: string;
48782
48782
  entities: {
48783
- type: "document" | "comment" | "contact";
48783
+ type: "document" | "comment" | "profile" | "contact";
48784
48784
  id: {
48785
48785
  path: string[] | null;
48786
48786
  version: string | null;
@@ -48873,7 +48873,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
48873
48873
  output: {
48874
48874
  searchQuery: string;
48875
48875
  entities: {
48876
- type: "document" | "comment" | "contact";
48876
+ type: "document" | "comment" | "profile" | "contact";
48877
48877
  id: {
48878
48878
  path: string[] | null;
48879
48879
  version: string | null;
@@ -48966,7 +48966,7 @@ export declare const HMGetRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodOb
48966
48966
  output: {
48967
48967
  searchQuery: string;
48968
48968
  entities: {
48969
- type: "document" | "comment" | "contact";
48969
+ type: "document" | "comment" | "profile" | "contact";
48970
48970
  id: {
48971
48971
  path: string[] | null;
48972
48972
  version: string | null;
@@ -66651,9 +66651,9 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
66651
66651
  parentNames: z.ZodArray<z.ZodString, "many">;
66652
66652
  versionTime: z.ZodOptional<z.ZodString>;
66653
66653
  searchQuery: z.ZodString;
66654
- type: z.ZodEnum<["document", "contact", "comment"]>;
66654
+ type: z.ZodEnum<["document", "profile", "contact", "comment"]>;
66655
66655
  }, "strip", z.ZodTypeAny, {
66656
- type: "document" | "comment" | "contact";
66656
+ type: "document" | "comment" | "profile" | "contact";
66657
66657
  id: {
66658
66658
  path: string[] | null;
66659
66659
  version: string | null;
@@ -66726,7 +66726,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
66726
66726
  commentId?: string | undefined;
66727
66727
  versionTime?: string | undefined;
66728
66728
  }, {
66729
- type: "document" | "comment" | "contact";
66729
+ type: "document" | "comment" | "profile" | "contact";
66730
66730
  id: {
66731
66731
  path: string[] | null;
66732
66732
  version: string | null;
@@ -66804,7 +66804,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
66804
66804
  }, "strip", z.ZodTypeAny, {
66805
66805
  searchQuery: string;
66806
66806
  entities: {
66807
- type: "document" | "comment" | "contact";
66807
+ type: "document" | "comment" | "profile" | "contact";
66808
66808
  id: {
66809
66809
  path: string[] | null;
66810
66810
  version: string | null;
@@ -66881,7 +66881,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
66881
66881
  }, {
66882
66882
  searchQuery: string;
66883
66883
  entities: {
66884
- type: "document" | "comment" | "contact";
66884
+ type: "document" | "comment" | "profile" | "contact";
66885
66885
  id: {
66886
66886
  path: string[] | null;
66887
66887
  version: string | null;
@@ -66974,7 +66974,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
66974
66974
  output: {
66975
66975
  searchQuery: string;
66976
66976
  entities: {
66977
- type: "document" | "comment" | "contact";
66977
+ type: "document" | "comment" | "profile" | "contact";
66978
66978
  id: {
66979
66979
  path: string[] | null;
66980
66980
  version: string | null;
@@ -67067,7 +67067,7 @@ export declare const HMRequestSchema: z.ZodDiscriminatedUnion<"key", [z.ZodObjec
67067
67067
  output: {
67068
67068
  searchQuery: string;
67069
67069
  entities: {
67070
- type: "document" | "comment" | "contact";
67070
+ type: "document" | "comment" | "profile" | "contact";
67071
67071
  id: {
67072
67072
  path: string[] | null;
67073
67073
  version: string | null;
package/dist/hm-types.mjs CHANGED
@@ -210,7 +210,7 @@ import {
210
210
  toNumber,
211
211
  unpackHmId,
212
212
  unpackedHmIdSchema
213
- } from "./chunk-3NYKSLJ4.mjs";
213
+ } from "./chunk-2KOZBPIM.mjs";
214
214
  import "./chunk-7P6ASYW6.mjs";
215
215
  export {
216
216
  BUILTIN_METADATA_KEYS,
@@ -2,8 +2,8 @@ import {
2
2
  annotationContains,
3
3
  hmBlockToEditorBlock,
4
4
  hmBlocksToEditorContent
5
- } from "./chunk-MO524BCL.mjs";
6
- import "./chunk-3NYKSLJ4.mjs";
5
+ } from "./chunk-FLUWADFC.mjs";
6
+ import "./chunk-2KOZBPIM.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-6JS7R6XP.mjs";
3
+ } from "./chunk-GRBJUKWS.mjs";
4
4
  import {
5
5
  annotationContains,
6
6
  hmBlockToEditorBlock,
7
7
  hmBlocksToEditorContent
8
- } from "./chunk-MO524BCL.mjs";
8
+ } from "./chunk-FLUWADFC.mjs";
9
9
  import {
10
10
  keyfile_exports
11
11
  } from "./chunk-EY6RQVAP.mjs";
@@ -18,17 +18,17 @@ import {
18
18
  } from "./chunk-QVRJGK77.mjs";
19
19
  import {
20
20
  pdfToBlocks
21
- } from "./chunk-JUXVJ5TO.mjs";
21
+ } from "./chunk-AUY42GMB.mjs";
22
22
  import {
23
23
  teiToBlocks
24
- } from "./chunk-2JLNS6YU.mjs";
24
+ } from "./chunk-HJ4ACOMW.mjs";
25
25
  import {
26
26
  embeddedPdfToBlocks
27
27
  } from "./chunk-2FJBS3V7.mjs";
28
28
  import {
29
29
  editorBlockToHMBlock,
30
30
  editorBlocksToHMBlockNodes
31
- } from "./chunk-JSA5TYHQ.mjs";
31
+ } from "./chunk-F72LNF4Q.mjs";
32
32
  import {
33
33
  encryption_exports
34
34
  } from "./chunk-UOL3F6XQ.mjs";
@@ -46,10 +46,10 @@ import {
46
46
  import {
47
47
  resolveHypermediaUrl,
48
48
  resolveId
49
- } from "./chunk-X3636TQF.mjs";
49
+ } from "./chunk-CVHEDNGU.mjs";
50
50
  import {
51
51
  createSeedClient
52
- } from "./chunk-5YWGB4XU.mjs";
52
+ } from "./chunk-XHF4IQ4R.mjs";
53
53
  import {
54
54
  SeedClientError,
55
55
  SeedNetworkError,
@@ -61,7 +61,7 @@ import {
61
61
  deleteComment,
62
62
  trimTrailingEmptyBlocks,
63
63
  updateComment
64
- } from "./chunk-F6A7GGKJ.mjs";
64
+ } from "./chunk-Y3HCUNXC.mjs";
65
65
  import {
66
66
  AnnotationSet,
67
67
  addSpanToAnnotation,
@@ -82,7 +82,7 @@ import {
82
82
  documentContainsLinkToChild,
83
83
  documentHasSelfQuery,
84
84
  shouldAutoLinkParent
85
- } from "./chunk-32JNJI2C.mjs";
85
+ } from "./chunk-KD3ZIXZV.mjs";
86
86
  import {
87
87
  createChange,
88
88
  createChangeOps,
@@ -104,7 +104,7 @@ import {
104
104
  followToDocument,
105
105
  resolveDocumentState,
106
106
  resolveEditableDocument
107
- } from "./chunk-X3WUOOPH.mjs";
107
+ } from "./chunk-CTJU7XIA.mjs";
108
108
  import "./chunk-2MD3FXKB.mjs";
109
109
  import {
110
110
  computeReplaceOps,
@@ -123,11 +123,11 @@ import {
123
123
  emitFrontmatter,
124
124
  parseDraftFilename,
125
125
  slugify
126
- } from "./chunk-LFY2IN4N.mjs";
126
+ } from "./chunk-BGXPPECP.mjs";
127
127
  import {
128
128
  createCapability,
129
129
  resolveCapability
130
- } from "./chunk-Y4P6H3KD.mjs";
130
+ } from "./chunk-JKXO3OWO.mjs";
131
131
  import "./chunk-LVAHHQIK.mjs";
132
132
  import "./chunk-NBCHK76Q.mjs";
133
133
  import {
@@ -147,7 +147,7 @@ import {
147
147
  parseFragment,
148
148
  serializeBlockRange,
149
149
  unpackHmId
150
- } from "./chunk-3NYKSLJ4.mjs";
150
+ } from "./chunk-2KOZBPIM.mjs";
151
151
  import "./chunk-3TPCJCVO.mjs";
152
152
  import "./chunk-7P6ASYW6.mjs";
153
153
  export {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pdfToBlocks
3
- } from "./chunk-JUXVJ5TO.mjs";
4
- import "./chunk-2JLNS6YU.mjs";
3
+ } from "./chunk-AUY42GMB.mjs";
4
+ import "./chunk-HJ4ACOMW.mjs";
5
5
  import "./chunk-2FJBS3V7.mjs";
6
6
  import "./chunk-PPAY4WZX.mjs";
7
- import "./chunk-3NYKSLJ4.mjs";
7
+ import "./chunk-2KOZBPIM.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-6JS7R6XP.mjs";
4
- import "./chunk-X3636TQF.mjs";
5
- import "./chunk-5YWGB4XU.mjs";
3
+ } from "./chunk-GRBJUKWS.mjs";
4
+ import "./chunk-CVHEDNGU.mjs";
5
+ import "./chunk-XHF4IQ4R.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-3NYKSLJ4.mjs";
11
+ import "./chunk-2KOZBPIM.mjs";
12
12
  import "./chunk-7P6ASYW6.mjs";
13
13
  export {
14
14
  resolveIdWithClient
@@ -35,7 +35,7 @@ import {
35
35
  typeOf,
36
36
  validate,
37
37
  validateAdvisory
38
- } from "./chunk-JSNDXUPG.mjs";
38
+ } from "./chunk-FFH7G6KW.mjs";
39
39
  import {
40
40
  HM_SCHEMAS,
41
41
  HM_SCHEMA_MANIFEST
@@ -17,11 +17,11 @@ import {
17
17
  resolveSchemaRef,
18
18
  schemaDefinitionCid,
19
19
  withoutSchemaLink
20
- } from "./chunk-BBJCA2PR.mjs";
21
- import "./chunk-JSNDXUPG.mjs";
20
+ } from "./chunk-6YGIRB3K.mjs";
21
+ import "./chunk-FFH7G6KW.mjs";
22
22
  import "./chunk-ZWKMAGDU.mjs";
23
23
  import "./chunk-VWSAFDOL.mjs";
24
- import "./chunk-3NYKSLJ4.mjs";
24
+ import "./chunk-2KOZBPIM.mjs";
25
25
  import "./chunk-7P6ASYW6.mjs";
26
26
  export {
27
27
  bareCid,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  classifyRef
3
- } from "./chunk-BBJCA2PR.mjs";
3
+ } from "./chunk-6YGIRB3K.mjs";
4
4
  import {
5
5
  kindOf,
6
6
  nameForCid,
7
7
  nameToUrl,
8
8
  schemaCid
9
- } from "./chunk-JSNDXUPG.mjs";
9
+ } from "./chunk-FFH7G6KW.mjs";
10
10
  import {
11
11
  HM_SCHEMAS
12
12
  } from "./chunk-ZWKMAGDU.mjs";
13
13
  import "./chunk-VWSAFDOL.mjs";
14
14
  import {
15
15
  unpackHmId
16
- } from "./chunk-3NYKSLJ4.mjs";
16
+ } from "./chunk-2KOZBPIM.mjs";
17
17
  import "./chunk-7P6ASYW6.mjs";
18
18
 
19
19
  // src/schema-subtypes.ts
@@ -5,7 +5,7 @@ import {
5
5
  literalValue,
6
6
  resolveSchema,
7
7
  structFields
8
- } from "./chunk-JSNDXUPG.mjs";
8
+ } from "./chunk-FFH7G6KW.mjs";
9
9
  import "./chunk-ZWKMAGDU.mjs";
10
10
  import {
11
11
  dagJsonToIpld,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  teiToBlocks
3
- } from "./chunk-2JLNS6YU.mjs";
4
- import "./chunk-3NYKSLJ4.mjs";
3
+ } from "./chunk-HJ4ACOMW.mjs";
4
+ import "./chunk-2KOZBPIM.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-3NYKSLJ4.mjs";
10
+ } from "./chunk-2KOZBPIM.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.95",
3
+ "version": "0.0.97",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/seed-hypermedia/seed",