@seed-hypermedia/client 0.0.4 → 0.0.5
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/{chunk-YIND2WNJ.mjs → chunk-B5WCMFR5.mjs} +18 -1
- package/dist/comment.d.ts +13 -0
- package/dist/hm-types.d.ts +939 -0
- package/dist/hm-types.mjs +7 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +29 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
|
@@ -264,6 +264,7 @@ var HMCommentSchema = z.object({
|
|
|
264
264
|
targetPath: z.string().optional(),
|
|
265
265
|
targetVersion: z.string(),
|
|
266
266
|
replyParent: z.string().optional(),
|
|
267
|
+
replyParentVersion: z.string().optional(),
|
|
267
268
|
threadRoot: z.string().optional(),
|
|
268
269
|
threadRootVersion: z.string().optional(),
|
|
269
270
|
capability: z.string().optional(),
|
|
@@ -929,6 +930,17 @@ var HMPrepareDocumentChangeRequestSchema = z.object({
|
|
|
929
930
|
input: HMPrepareDocumentChangeInputSchema,
|
|
930
931
|
output: HMPrepareDocumentChangeOutputSchema
|
|
931
932
|
});
|
|
933
|
+
var HMListCommentVersionsInputSchema = z.object({
|
|
934
|
+
id: z.string()
|
|
935
|
+
});
|
|
936
|
+
var HMListCommentVersionsOutputSchema = z.object({
|
|
937
|
+
versions: z.array(HMCommentSchema)
|
|
938
|
+
});
|
|
939
|
+
var HMListCommentVersionsRequestSchema = z.object({
|
|
940
|
+
key: z.literal("ListCommentVersions"),
|
|
941
|
+
input: HMListCommentVersionsInputSchema,
|
|
942
|
+
output: HMListCommentVersionsOutputSchema
|
|
943
|
+
});
|
|
932
944
|
var HMGetRequestSchema = z.discriminatedUnion("key", [
|
|
933
945
|
HMResourceRequestSchema,
|
|
934
946
|
HMResourceMetadataRequestSchema,
|
|
@@ -949,7 +961,8 @@ var HMGetRequestSchema = z.discriminatedUnion("key", [
|
|
|
949
961
|
HMListCitationsRequestSchema,
|
|
950
962
|
HMListChangesRequestSchema,
|
|
951
963
|
HMListCapabilitiesRequestSchema,
|
|
952
|
-
HMInteractionSummaryRequestSchema
|
|
964
|
+
HMInteractionSummaryRequestSchema,
|
|
965
|
+
HMListCommentVersionsRequestSchema
|
|
953
966
|
]);
|
|
954
967
|
var HMActionSchema = z.discriminatedUnion("key", [
|
|
955
968
|
HMPublishBlobsRequestSchema,
|
|
@@ -976,6 +989,7 @@ var HMRequestSchema = z.discriminatedUnion("key", [
|
|
|
976
989
|
HMListChangesRequestSchema,
|
|
977
990
|
HMListCapabilitiesRequestSchema,
|
|
978
991
|
HMInteractionSummaryRequestSchema,
|
|
992
|
+
HMListCommentVersionsRequestSchema,
|
|
979
993
|
HMPublishBlobsRequestSchema,
|
|
980
994
|
HMPrepareDocumentChangeRequestSchema
|
|
981
995
|
]);
|
|
@@ -1278,6 +1292,9 @@ export {
|
|
|
1278
1292
|
HMPrepareDocumentChangeInputSchema,
|
|
1279
1293
|
HMPrepareDocumentChangeOutputSchema,
|
|
1280
1294
|
HMPrepareDocumentChangeRequestSchema,
|
|
1295
|
+
HMListCommentVersionsInputSchema,
|
|
1296
|
+
HMListCommentVersionsOutputSchema,
|
|
1297
|
+
HMListCommentVersionsRequestSchema,
|
|
1281
1298
|
HMGetRequestSchema,
|
|
1282
1299
|
HMActionSchema,
|
|
1283
1300
|
HMRequestSchema,
|
package/dist/comment.d.ts
CHANGED
|
@@ -40,6 +40,19 @@ export type DeleteCommentInput = {
|
|
|
40
40
|
visibility?: 'Private' | '';
|
|
41
41
|
};
|
|
42
42
|
export declare function deleteComment(input: DeleteCommentInput, signer: HMSigner): Promise<HMPublishBlobsInput>;
|
|
43
|
+
/** Input for updating an existing comment. */
|
|
44
|
+
export type UpdateCommentInput = {
|
|
45
|
+
commentId: string;
|
|
46
|
+
targetAccount: string;
|
|
47
|
+
targetPath: string;
|
|
48
|
+
targetVersion: string;
|
|
49
|
+
content: HMBlockNode[];
|
|
50
|
+
replyParentVersion?: string | null;
|
|
51
|
+
rootReplyCommentVersion?: string | null;
|
|
52
|
+
visibility?: 'Private' | '';
|
|
53
|
+
};
|
|
54
|
+
/** Creates a signed update blob for an existing comment. */
|
|
55
|
+
export declare function updateComment(input: UpdateCommentInput, signer: HMSigner): Promise<HMPublishBlobsInput>;
|
|
43
56
|
/**
|
|
44
57
|
* Compute the record ID ("authority/tsid") from raw CBOR-encoded comment blob bytes.
|
|
45
58
|
* The TSID is a 10-byte base58btc value: 6 bytes ms timestamp + 4 bytes SHA256 prefix.
|