@seed-hypermedia/client 0.0.1 → 0.0.2

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.
package/dist/hm-types.mjs CHANGED
@@ -2,6 +2,7 @@ import {
2
2
  BlockRangeSchema,
3
3
  BoldAnnotationSchema,
4
4
  CodeAnnotationSchema,
5
+ DeviceLinkSessionSchema,
5
6
  HMAccountContactsRequestSchema,
6
7
  HMAccountNotFoundSchema,
7
8
  HMAccountPayloadSchema,
@@ -33,13 +34,21 @@ import {
33
34
  HMBlockVideoSchema,
34
35
  HMBlockWebEmbedSchema,
35
36
  HMBreadcrumbSchema,
37
+ HMCapabilitySchema,
38
+ HMCitationSchema,
39
+ HMCommentDraftSchema,
36
40
  HMCommentGroupSchema,
37
41
  HMCommentRequestSchema,
38
42
  HMCommentSchema,
43
+ HMContactItemSchema,
39
44
  HMContactRecordSchema,
45
+ HMContactSchema,
46
+ HMContactSubscribeSchema,
40
47
  HMDocumentInfoSchema,
41
48
  HMDocumentMetadataSchema,
42
49
  HMDocumentSchema,
50
+ HMDraftContentSchema,
51
+ HMDraftMetaSchema,
43
52
  HMEmbedViewSchema,
44
53
  HMExternalCommentGroupSchema,
45
54
  HMGenerationInfoSchema,
@@ -49,6 +58,7 @@ import {
49
58
  HMGetCommentReplyCountInputSchema,
50
59
  HMGetCommentReplyCountRequestSchema,
51
60
  HMGetRequestSchema,
61
+ HMHostConfigSchema,
52
62
  HMInteractionSummaryInputSchema,
53
63
  HMInteractionSummaryOutputSchema,
54
64
  HMInteractionSummaryRequestSchema,
@@ -78,8 +88,13 @@ import {
78
88
  HMListEventsInputSchema,
79
89
  HMListEventsOutputSchema,
80
90
  HMListEventsRequestSchema,
91
+ HMListedCommentDraftSchema,
92
+ HMListedDraftReadSchema,
93
+ HMListedDraftSchema,
81
94
  HMLoadedEventSchema,
82
95
  HMMetadataPayloadSchema,
96
+ HMNavigationItemSchema,
97
+ HMPeerConnectionRequestSchema,
83
98
  HMPrepareDocumentChangeInputSchema,
84
99
  HMPrepareDocumentChangeOutputSchema,
85
100
  HMPrepareDocumentChangeRequestSchema,
@@ -113,6 +128,7 @@ import {
113
128
  HMSearchPayloadSchema,
114
129
  HMSearchRequestSchema,
115
130
  HMSearchResultItemSchema,
131
+ HMSiteMemberSchema,
116
132
  HMSubjectContactsRequestSchema,
117
133
  HMTimestampSchema,
118
134
  HYPERMEDIA_SCHEME,
@@ -120,24 +136,32 @@ import {
120
136
  InlineEmbedAnnotationSchema,
121
137
  ItalicAnnotationSchema,
122
138
  LinkAnnotationSchema,
139
+ ParsedFragmentSchema,
123
140
  StrikeAnnotationSchema,
124
141
  UnderlineAnnotationSchema,
142
+ codePointLength,
125
143
  entityQueryPathToHmIdPath,
126
144
  getHMQueryString,
127
145
  hmIdPathToEntityQueryPath,
128
146
  hmMetadataJsonCorrection,
129
147
  isKnownBlockType,
148
+ isSurrogate,
130
149
  knownBlockTypes,
131
150
  packBaseId,
132
151
  packHmId,
152
+ parseCustomURL,
153
+ parseFragment,
133
154
  serializeBlockRange,
155
+ siteDiscoverRequestSchema,
134
156
  toNumber,
157
+ unpackHmId,
135
158
  unpackedHmIdSchema
136
- } from "./chunk-YUKHBJYL.mjs";
159
+ } from "./chunk-PPK3SKPV.mjs";
137
160
  export {
138
161
  BlockRangeSchema,
139
162
  BoldAnnotationSchema,
140
163
  CodeAnnotationSchema,
164
+ DeviceLinkSessionSchema,
141
165
  HMAccountContactsRequestSchema,
142
166
  HMAccountNotFoundSchema,
143
167
  HMAccountPayloadSchema,
@@ -169,13 +193,21 @@ export {
169
193
  HMBlockVideoSchema,
170
194
  HMBlockWebEmbedSchema,
171
195
  HMBreadcrumbSchema,
196
+ HMCapabilitySchema,
197
+ HMCitationSchema,
198
+ HMCommentDraftSchema,
172
199
  HMCommentGroupSchema,
173
200
  HMCommentRequestSchema,
174
201
  HMCommentSchema,
202
+ HMContactItemSchema,
175
203
  HMContactRecordSchema,
204
+ HMContactSchema,
205
+ HMContactSubscribeSchema,
176
206
  HMDocumentInfoSchema,
177
207
  HMDocumentMetadataSchema,
178
208
  HMDocumentSchema,
209
+ HMDraftContentSchema,
210
+ HMDraftMetaSchema,
179
211
  HMEmbedViewSchema,
180
212
  HMExternalCommentGroupSchema,
181
213
  HMGenerationInfoSchema,
@@ -185,6 +217,7 @@ export {
185
217
  HMGetCommentReplyCountInputSchema,
186
218
  HMGetCommentReplyCountRequestSchema,
187
219
  HMGetRequestSchema,
220
+ HMHostConfigSchema,
188
221
  HMInteractionSummaryInputSchema,
189
222
  HMInteractionSummaryOutputSchema,
190
223
  HMInteractionSummaryRequestSchema,
@@ -214,8 +247,13 @@ export {
214
247
  HMListEventsInputSchema,
215
248
  HMListEventsOutputSchema,
216
249
  HMListEventsRequestSchema,
250
+ HMListedCommentDraftSchema,
251
+ HMListedDraftReadSchema,
252
+ HMListedDraftSchema,
217
253
  HMLoadedEventSchema,
218
254
  HMMetadataPayloadSchema,
255
+ HMNavigationItemSchema,
256
+ HMPeerConnectionRequestSchema,
219
257
  HMPrepareDocumentChangeInputSchema,
220
258
  HMPrepareDocumentChangeOutputSchema,
221
259
  HMPrepareDocumentChangeRequestSchema,
@@ -249,6 +287,7 @@ export {
249
287
  HMSearchPayloadSchema,
250
288
  HMSearchRequestSchema,
251
289
  HMSearchResultItemSchema,
290
+ HMSiteMemberSchema,
252
291
  HMSubjectContactsRequestSchema,
253
292
  HMTimestampSchema,
254
293
  HYPERMEDIA_SCHEME,
@@ -256,17 +295,24 @@ export {
256
295
  InlineEmbedAnnotationSchema,
257
296
  ItalicAnnotationSchema,
258
297
  LinkAnnotationSchema,
298
+ ParsedFragmentSchema,
259
299
  StrikeAnnotationSchema,
260
300
  UnderlineAnnotationSchema,
301
+ codePointLength,
261
302
  entityQueryPathToHmIdPath,
262
303
  getHMQueryString,
263
304
  hmIdPathToEntityQueryPath,
264
305
  hmMetadataJsonCorrection,
265
306
  isKnownBlockType,
307
+ isSurrogate,
266
308
  knownBlockTypes,
267
309
  packBaseId,
268
310
  packHmId,
311
+ parseCustomURL,
312
+ parseFragment,
269
313
  serializeBlockRange,
314
+ siteDiscoverRequestSchema,
270
315
  toNumber,
316
+ unpackHmId,
271
317
  unpackedHmIdSchema
272
318
  };
package/dist/index.d.ts CHANGED
@@ -1,16 +1,36 @@
1
- export { createChangeOps, createChange, signPreparedChange, signDocumentChange, createGenesisChange, createDocumentChange, createDocumentChangeFromOps, } from './change';
2
- export type { CreateChangeOpsInput, SignDocumentChangeInput, CreateDocumentChangeInput, CreateDocumentChangeFromOpsInput, DocumentOperation, } from './change';
3
- export { createSeedClient } from './client';
4
- export type { SeedClient, SeedClientOptions, PublishDocumentInput } from './client';
5
- export { createComment, deleteComment } from './comment';
6
- export type { CreateCommentInput, DeleteCommentInput, CommentAttachmentBlob } from './comment';
7
- export { createContact, updateContact, deleteContact, contactRecordIdFromBlob } from './contact';
8
- export type { CreateContactInput, UpdateContactInput, DeleteContactInput, CreateContactResult } from './contact';
9
1
  export { createCapability } from './capability';
10
- export type { CreateCapabilityInput, CapabilityRole } from './capability';
11
- export { createVersionRef, createTombstoneRef, createRedirectRef } from './ref';
12
- export type { CreateVersionRefInput, CreateTombstoneRefInput, CreateRedirectRefInput } from './ref';
2
+ export type { CapabilityRole, CreateCapabilityInput } from './capability';
3
+ export { createChange, createChangeOps, createDocumentChange, createDocumentChangeFromOps, createGenesisChange, signDocumentChange, signPreparedChange, } from './change';
4
+ export type { CreateChangeOpsInput, CreateDocumentChangeFromOpsInput, CreateDocumentChangeInput, DocumentOperation, SignDocumentChangeInput, } from './change';
5
+ export { createSeedClient } from './client';
6
+ export type { PublishDocumentInput, SeedClient, SeedClientOptions } from './client';
7
+ export { commentRecordIdFromBlob, createComment, deleteComment } from './comment';
8
+ export type { CommentAttachmentBlob, CreateCommentInput, DeleteCommentInput } from './comment';
9
+ export { contactRecordIdFromBlob, createContact, deleteContact, updateContact } from './contact';
10
+ export type { CreateContactInput, CreateContactResult, DeleteContactInput, UpdateContactInput } from './contact';
13
11
  export { SeedClientError, SeedNetworkError, SeedValidationError } from './errors';
14
- export type { HMRequest, HMSigner, UnpackedHypermediaId } from './hm-types';
15
- export { packHmId, packBaseId, getHMQueryString, serializeBlockRange, HYPERMEDIA_SCHEME, hmIdPathToEntityQueryPath, entityQueryPathToHmIdPath, } from './hm-types';
12
+ export { createRedirectRef, createTombstoneRef, createVersionRef } from './ref';
13
+ export type { CreateRedirectRefInput, CreateTombstoneRefInput, CreateVersionRefInput } from './ref';
14
+ export { teiToBlocks } from './tei-to-blocks';
15
+ export type { TeiToBlocksOptions, TeiToBlocksResult, TeiFigure, FigureCoords } from './tei-to-blocks';
16
+ export { pdfToBlocks } from './pdf-to-blocks';
17
+ export type { PdfToBlocksOptions, PdfToBlocksResult } from './pdf-to-blocks';
18
+ export { isGrobidAvailable, processFulltextDocument, DEFAULT_GROBID_URL } from './grobid';
19
+ export type { GrobidOptions } from './grobid';
20
+ export { embeddedPdfToBlocks } from './pdf-to-blocks-embedded';
21
+ export type { EmbeddedPdfResult } from './pdf-to-blocks-embedded';
16
22
  export { trimTrailingEmptyBlocks } from './comment';
23
+ export { codePointLength, entityQueryPathToHmIdPath, getHMQueryString, hmIdPathToEntityQueryPath, HYPERMEDIA_SCHEME, isSurrogate, packBaseId, packHmId, parseCustomURL, parseFragment, serializeBlockRange, unpackHmId, } from './hm-types';
24
+ export type { HMRequest, HMSigner, UnpackedHypermediaId } from './hm-types';
25
+ export { fileToIpfsBlobs, filesToIpfsBlobs, resolveFileLinksInBlocks, hasFileLinks } from './file-to-ipfs';
26
+ export type { CollectedBlob } from './file-to-ipfs';
27
+ export { parseMarkdown, flattenToOperations, parseInlineFormatting, parseFrontmatter } from './markdown-to-blocks';
28
+ export type { BlockNode, SeedBlock, Annotation } from './markdown-to-blocks';
29
+ export { blocksToMarkdown, emitFrontmatter } from './blocks-to-markdown';
30
+ export type { BlocksToMarkdownOptions } from './blocks-to-markdown';
31
+ export { createBlocksMap, matchBlockIds, computeReplaceOps, hmBlockNodeToBlockNode } from './block-diff';
32
+ export type { APIBlockNode, APIBlock } from './block-diff';
33
+ export { autoLinkChildToParent, createAutoLinkOps, documentContainsLinkToChild, documentHasSelfQuery, shouldAutoLinkParent, } from './auto-link';
34
+ export type { AutoLinkChildToParentOptions } from './auto-link';
35
+ export { resolveDocumentState } from './document-state';
36
+ export type { DocumentState } from './document-state';