@seed-hypermedia/client 0.0.1
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/LICENSE +201 -0
- package/dist/capability.d.ts +21 -0
- package/dist/change.d.ts +129 -0
- package/dist/chunk-YUKHBJYL.mjs +1044 -0
- package/dist/client.d.ts +37 -0
- package/dist/comment.d.ts +43 -0
- package/dist/contact.d.ts +42 -0
- package/dist/errors.d.ts +11 -0
- package/dist/hm-types.d.ts +43109 -0
- package/dist/hm-types.mjs +272 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.mjs +891 -0
- package/dist/ref.d.ts +65 -0
- package/dist/signing.d.ts +16 -0
- package/package.json +43 -0
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlockRangeSchema,
|
|
3
|
+
BoldAnnotationSchema,
|
|
4
|
+
CodeAnnotationSchema,
|
|
5
|
+
HMAccountContactsRequestSchema,
|
|
6
|
+
HMAccountNotFoundSchema,
|
|
7
|
+
HMAccountPayloadSchema,
|
|
8
|
+
HMAccountRequestSchema,
|
|
9
|
+
HMAccountResultSchema,
|
|
10
|
+
HMAccountsMetadataSchema,
|
|
11
|
+
HMActionSchema,
|
|
12
|
+
HMActivitySummarySchema,
|
|
13
|
+
HMAnnotationSchema,
|
|
14
|
+
HMAnnotationsSchema,
|
|
15
|
+
HMBlockButtonAlignmentSchema,
|
|
16
|
+
HMBlockButtonSchema,
|
|
17
|
+
HMBlockChildrenTypeSchema,
|
|
18
|
+
HMBlockCodeSchema,
|
|
19
|
+
HMBlockEmbedSchema,
|
|
20
|
+
HMBlockFileSchema,
|
|
21
|
+
HMBlockGroupSchema,
|
|
22
|
+
HMBlockHeadingSchema,
|
|
23
|
+
HMBlockImageSchema,
|
|
24
|
+
HMBlockKnownSchema,
|
|
25
|
+
HMBlockLinkSchema,
|
|
26
|
+
HMBlockMathSchema,
|
|
27
|
+
HMBlockNodeSchema,
|
|
28
|
+
HMBlockNostrSchema,
|
|
29
|
+
HMBlockParagraphSchema,
|
|
30
|
+
HMBlockQuerySchema,
|
|
31
|
+
HMBlockSchema,
|
|
32
|
+
HMBlockUnknownSchema,
|
|
33
|
+
HMBlockVideoSchema,
|
|
34
|
+
HMBlockWebEmbedSchema,
|
|
35
|
+
HMBreadcrumbSchema,
|
|
36
|
+
HMCommentGroupSchema,
|
|
37
|
+
HMCommentRequestSchema,
|
|
38
|
+
HMCommentSchema,
|
|
39
|
+
HMContactRecordSchema,
|
|
40
|
+
HMDocumentInfoSchema,
|
|
41
|
+
HMDocumentMetadataSchema,
|
|
42
|
+
HMDocumentSchema,
|
|
43
|
+
HMEmbedViewSchema,
|
|
44
|
+
HMExternalCommentGroupSchema,
|
|
45
|
+
HMGenerationInfoSchema,
|
|
46
|
+
HMGetCIDInputSchema,
|
|
47
|
+
HMGetCIDOutputSchema,
|
|
48
|
+
HMGetCIDRequestSchema,
|
|
49
|
+
HMGetCommentReplyCountInputSchema,
|
|
50
|
+
HMGetCommentReplyCountRequestSchema,
|
|
51
|
+
HMGetRequestSchema,
|
|
52
|
+
HMInteractionSummaryInputSchema,
|
|
53
|
+
HMInteractionSummaryOutputSchema,
|
|
54
|
+
HMInteractionSummaryRequestSchema,
|
|
55
|
+
HMListAccountsInputSchema,
|
|
56
|
+
HMListAccountsOutputSchema,
|
|
57
|
+
HMListAccountsRequestSchema,
|
|
58
|
+
HMListCapabilitiesInputSchema,
|
|
59
|
+
HMListCapabilitiesOutputSchema,
|
|
60
|
+
HMListCapabilitiesRequestSchema,
|
|
61
|
+
HMListChangesInputSchema,
|
|
62
|
+
HMListChangesOutputSchema,
|
|
63
|
+
HMListChangesRequestSchema,
|
|
64
|
+
HMListCitationsInputSchema,
|
|
65
|
+
HMListCitationsOutputSchema,
|
|
66
|
+
HMListCitationsRequestSchema,
|
|
67
|
+
HMListCommentsByAuthorInputSchema,
|
|
68
|
+
HMListCommentsByAuthorOutputSchema,
|
|
69
|
+
HMListCommentsByAuthorRequestSchema,
|
|
70
|
+
HMListCommentsByReferenceInputSchema,
|
|
71
|
+
HMListCommentsByReferenceRequestSchema,
|
|
72
|
+
HMListCommentsInputSchema,
|
|
73
|
+
HMListCommentsOutputSchema,
|
|
74
|
+
HMListCommentsRequestSchema,
|
|
75
|
+
HMListDiscussionsInputSchema,
|
|
76
|
+
HMListDiscussionsOutputSchema,
|
|
77
|
+
HMListDiscussionsRequestSchema,
|
|
78
|
+
HMListEventsInputSchema,
|
|
79
|
+
HMListEventsOutputSchema,
|
|
80
|
+
HMListEventsRequestSchema,
|
|
81
|
+
HMLoadedEventSchema,
|
|
82
|
+
HMMetadataPayloadSchema,
|
|
83
|
+
HMPrepareDocumentChangeInputSchema,
|
|
84
|
+
HMPrepareDocumentChangeOutputSchema,
|
|
85
|
+
HMPrepareDocumentChangeRequestSchema,
|
|
86
|
+
HMPublishBlobsInputSchema,
|
|
87
|
+
HMPublishBlobsOutputSchema,
|
|
88
|
+
HMPublishBlobsRequestSchema,
|
|
89
|
+
HMQueryInclusionSchema,
|
|
90
|
+
HMQueryRequestSchema,
|
|
91
|
+
HMQueryResultSchema,
|
|
92
|
+
HMQuerySchema,
|
|
93
|
+
HMQuerySortSchema,
|
|
94
|
+
HMQueryStyleSchema,
|
|
95
|
+
HMRawCapabilitySchema,
|
|
96
|
+
HMRawDocumentChangeSchema,
|
|
97
|
+
HMRawMentionSchema,
|
|
98
|
+
HMRedirectInfoSchema,
|
|
99
|
+
HMRequestSchema,
|
|
100
|
+
HMResolvedResourceSchema,
|
|
101
|
+
HMResourceCommentSchema,
|
|
102
|
+
HMResourceDocumentSchema,
|
|
103
|
+
HMResourceErrorSchema,
|
|
104
|
+
HMResourceMetadataRequestSchema,
|
|
105
|
+
HMResourceNotFoundSchema,
|
|
106
|
+
HMResourceRedirectSchema,
|
|
107
|
+
HMResourceRequestSchema,
|
|
108
|
+
HMResourceSchema,
|
|
109
|
+
HMResourceTombstoneSchema,
|
|
110
|
+
HMResourceVisibilitySchema,
|
|
111
|
+
HMRoleSchema,
|
|
112
|
+
HMSearchInputSchema,
|
|
113
|
+
HMSearchPayloadSchema,
|
|
114
|
+
HMSearchRequestSchema,
|
|
115
|
+
HMSearchResultItemSchema,
|
|
116
|
+
HMSubjectContactsRequestSchema,
|
|
117
|
+
HMTimestampSchema,
|
|
118
|
+
HYPERMEDIA_SCHEME,
|
|
119
|
+
HighlightAnnotationSchema,
|
|
120
|
+
InlineEmbedAnnotationSchema,
|
|
121
|
+
ItalicAnnotationSchema,
|
|
122
|
+
LinkAnnotationSchema,
|
|
123
|
+
StrikeAnnotationSchema,
|
|
124
|
+
UnderlineAnnotationSchema,
|
|
125
|
+
entityQueryPathToHmIdPath,
|
|
126
|
+
getHMQueryString,
|
|
127
|
+
hmIdPathToEntityQueryPath,
|
|
128
|
+
hmMetadataJsonCorrection,
|
|
129
|
+
isKnownBlockType,
|
|
130
|
+
knownBlockTypes,
|
|
131
|
+
packBaseId,
|
|
132
|
+
packHmId,
|
|
133
|
+
serializeBlockRange,
|
|
134
|
+
toNumber,
|
|
135
|
+
unpackedHmIdSchema
|
|
136
|
+
} from "./chunk-YUKHBJYL.mjs";
|
|
137
|
+
export {
|
|
138
|
+
BlockRangeSchema,
|
|
139
|
+
BoldAnnotationSchema,
|
|
140
|
+
CodeAnnotationSchema,
|
|
141
|
+
HMAccountContactsRequestSchema,
|
|
142
|
+
HMAccountNotFoundSchema,
|
|
143
|
+
HMAccountPayloadSchema,
|
|
144
|
+
HMAccountRequestSchema,
|
|
145
|
+
HMAccountResultSchema,
|
|
146
|
+
HMAccountsMetadataSchema,
|
|
147
|
+
HMActionSchema,
|
|
148
|
+
HMActivitySummarySchema,
|
|
149
|
+
HMAnnotationSchema,
|
|
150
|
+
HMAnnotationsSchema,
|
|
151
|
+
HMBlockButtonAlignmentSchema,
|
|
152
|
+
HMBlockButtonSchema,
|
|
153
|
+
HMBlockChildrenTypeSchema,
|
|
154
|
+
HMBlockCodeSchema,
|
|
155
|
+
HMBlockEmbedSchema,
|
|
156
|
+
HMBlockFileSchema,
|
|
157
|
+
HMBlockGroupSchema,
|
|
158
|
+
HMBlockHeadingSchema,
|
|
159
|
+
HMBlockImageSchema,
|
|
160
|
+
HMBlockKnownSchema,
|
|
161
|
+
HMBlockLinkSchema,
|
|
162
|
+
HMBlockMathSchema,
|
|
163
|
+
HMBlockNodeSchema,
|
|
164
|
+
HMBlockNostrSchema,
|
|
165
|
+
HMBlockParagraphSchema,
|
|
166
|
+
HMBlockQuerySchema,
|
|
167
|
+
HMBlockSchema,
|
|
168
|
+
HMBlockUnknownSchema,
|
|
169
|
+
HMBlockVideoSchema,
|
|
170
|
+
HMBlockWebEmbedSchema,
|
|
171
|
+
HMBreadcrumbSchema,
|
|
172
|
+
HMCommentGroupSchema,
|
|
173
|
+
HMCommentRequestSchema,
|
|
174
|
+
HMCommentSchema,
|
|
175
|
+
HMContactRecordSchema,
|
|
176
|
+
HMDocumentInfoSchema,
|
|
177
|
+
HMDocumentMetadataSchema,
|
|
178
|
+
HMDocumentSchema,
|
|
179
|
+
HMEmbedViewSchema,
|
|
180
|
+
HMExternalCommentGroupSchema,
|
|
181
|
+
HMGenerationInfoSchema,
|
|
182
|
+
HMGetCIDInputSchema,
|
|
183
|
+
HMGetCIDOutputSchema,
|
|
184
|
+
HMGetCIDRequestSchema,
|
|
185
|
+
HMGetCommentReplyCountInputSchema,
|
|
186
|
+
HMGetCommentReplyCountRequestSchema,
|
|
187
|
+
HMGetRequestSchema,
|
|
188
|
+
HMInteractionSummaryInputSchema,
|
|
189
|
+
HMInteractionSummaryOutputSchema,
|
|
190
|
+
HMInteractionSummaryRequestSchema,
|
|
191
|
+
HMListAccountsInputSchema,
|
|
192
|
+
HMListAccountsOutputSchema,
|
|
193
|
+
HMListAccountsRequestSchema,
|
|
194
|
+
HMListCapabilitiesInputSchema,
|
|
195
|
+
HMListCapabilitiesOutputSchema,
|
|
196
|
+
HMListCapabilitiesRequestSchema,
|
|
197
|
+
HMListChangesInputSchema,
|
|
198
|
+
HMListChangesOutputSchema,
|
|
199
|
+
HMListChangesRequestSchema,
|
|
200
|
+
HMListCitationsInputSchema,
|
|
201
|
+
HMListCitationsOutputSchema,
|
|
202
|
+
HMListCitationsRequestSchema,
|
|
203
|
+
HMListCommentsByAuthorInputSchema,
|
|
204
|
+
HMListCommentsByAuthorOutputSchema,
|
|
205
|
+
HMListCommentsByAuthorRequestSchema,
|
|
206
|
+
HMListCommentsByReferenceInputSchema,
|
|
207
|
+
HMListCommentsByReferenceRequestSchema,
|
|
208
|
+
HMListCommentsInputSchema,
|
|
209
|
+
HMListCommentsOutputSchema,
|
|
210
|
+
HMListCommentsRequestSchema,
|
|
211
|
+
HMListDiscussionsInputSchema,
|
|
212
|
+
HMListDiscussionsOutputSchema,
|
|
213
|
+
HMListDiscussionsRequestSchema,
|
|
214
|
+
HMListEventsInputSchema,
|
|
215
|
+
HMListEventsOutputSchema,
|
|
216
|
+
HMListEventsRequestSchema,
|
|
217
|
+
HMLoadedEventSchema,
|
|
218
|
+
HMMetadataPayloadSchema,
|
|
219
|
+
HMPrepareDocumentChangeInputSchema,
|
|
220
|
+
HMPrepareDocumentChangeOutputSchema,
|
|
221
|
+
HMPrepareDocumentChangeRequestSchema,
|
|
222
|
+
HMPublishBlobsInputSchema,
|
|
223
|
+
HMPublishBlobsOutputSchema,
|
|
224
|
+
HMPublishBlobsRequestSchema,
|
|
225
|
+
HMQueryInclusionSchema,
|
|
226
|
+
HMQueryRequestSchema,
|
|
227
|
+
HMQueryResultSchema,
|
|
228
|
+
HMQuerySchema,
|
|
229
|
+
HMQuerySortSchema,
|
|
230
|
+
HMQueryStyleSchema,
|
|
231
|
+
HMRawCapabilitySchema,
|
|
232
|
+
HMRawDocumentChangeSchema,
|
|
233
|
+
HMRawMentionSchema,
|
|
234
|
+
HMRedirectInfoSchema,
|
|
235
|
+
HMRequestSchema,
|
|
236
|
+
HMResolvedResourceSchema,
|
|
237
|
+
HMResourceCommentSchema,
|
|
238
|
+
HMResourceDocumentSchema,
|
|
239
|
+
HMResourceErrorSchema,
|
|
240
|
+
HMResourceMetadataRequestSchema,
|
|
241
|
+
HMResourceNotFoundSchema,
|
|
242
|
+
HMResourceRedirectSchema,
|
|
243
|
+
HMResourceRequestSchema,
|
|
244
|
+
HMResourceSchema,
|
|
245
|
+
HMResourceTombstoneSchema,
|
|
246
|
+
HMResourceVisibilitySchema,
|
|
247
|
+
HMRoleSchema,
|
|
248
|
+
HMSearchInputSchema,
|
|
249
|
+
HMSearchPayloadSchema,
|
|
250
|
+
HMSearchRequestSchema,
|
|
251
|
+
HMSearchResultItemSchema,
|
|
252
|
+
HMSubjectContactsRequestSchema,
|
|
253
|
+
HMTimestampSchema,
|
|
254
|
+
HYPERMEDIA_SCHEME,
|
|
255
|
+
HighlightAnnotationSchema,
|
|
256
|
+
InlineEmbedAnnotationSchema,
|
|
257
|
+
ItalicAnnotationSchema,
|
|
258
|
+
LinkAnnotationSchema,
|
|
259
|
+
StrikeAnnotationSchema,
|
|
260
|
+
UnderlineAnnotationSchema,
|
|
261
|
+
entityQueryPathToHmIdPath,
|
|
262
|
+
getHMQueryString,
|
|
263
|
+
hmIdPathToEntityQueryPath,
|
|
264
|
+
hmMetadataJsonCorrection,
|
|
265
|
+
isKnownBlockType,
|
|
266
|
+
knownBlockTypes,
|
|
267
|
+
packBaseId,
|
|
268
|
+
packHmId,
|
|
269
|
+
serializeBlockRange,
|
|
270
|
+
toNumber,
|
|
271
|
+
unpackedHmIdSchema
|
|
272
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
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';
|
|
13
|
+
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';
|
|
16
|
+
export { trimTrailingEmptyBlocks } from './comment';
|