@seed-hypermedia/client 0.0.69 → 0.0.70
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/auth.mjs +3 -2
- package/dist/auto-link.d.ts +3 -2
- package/dist/auto-link.mjs +5 -4
- package/dist/blobs.d.ts +6 -4
- package/dist/blobs.mjs +2 -1
- package/dist/capability.d.ts +7 -2
- package/dist/capability.mjs +5 -2
- package/dist/change.d.ts +8 -7
- package/dist/change.mjs +4 -3
- package/dist/{chunk-NX7YFFRX.mjs → chunk-37WRGUK4.mjs} +5 -4
- package/dist/{chunk-MKUWQB5W.mjs → chunk-3KESF5XJ.mjs} +2 -2
- package/dist/{chunk-GKGWSN6J.mjs → chunk-4Q3SAL5R.mjs} +1 -1
- package/dist/{chunk-W4OGV22Y.mjs → chunk-BUPMCRR4.mjs} +14 -23
- package/dist/{chunk-5EWV4OPF.mjs → chunk-DBHL3BYB.mjs} +8 -13
- package/dist/chunk-DR3HJ6BV.mjs +25 -0
- package/dist/{chunk-WJQSJ6UM.mjs → chunk-EU36RFR3.mjs} +2 -2
- package/dist/{chunk-FYUZZ3HT.mjs → chunk-IT5LLTMP.mjs} +15 -5
- package/dist/{chunk-I3YUHKYW.mjs → chunk-JT57MV7Y.mjs} +6 -5
- package/dist/{chunk-YZX54L3G.mjs → chunk-LVAHHQIK.mjs} +8 -0
- package/dist/{chunk-QS7TPMYT.mjs → chunk-NYWCMQTH.mjs} +5 -4
- package/dist/{chunk-XI2LXZM7.mjs → chunk-PJ2RFT5A.mjs} +5 -4
- package/dist/{chunk-DXDF36H5.mjs → chunk-SHOAYNJY.mjs} +1 -1
- package/dist/client.d.ts +3 -2
- package/dist/client.mjs +5 -4
- package/dist/comment.d.ts +5 -4
- package/dist/comment.mjs +3 -2
- package/dist/contact.d.ts +5 -4
- package/dist/contact.mjs +3 -2
- package/dist/hm-types.d.ts +566 -566
- package/dist/hmauth.mjs +3 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +17 -9
- package/dist/ref.d.ts +5 -4
- package/dist/ref.mjs +3 -2
- package/dist/resource-read.mjs +6 -5
- package/dist/signer.d.ts +42 -0
- package/dist/signer.mjs +9 -0
- package/dist/signing.d.ts +10 -2
- package/dist/signing.mjs +4 -1
- package/dist/vault-local.mjs +4 -1
- package/dist/vault.d.ts +14 -4
- package/dist/vault.mjs +4 -1
- package/package.json +1 -1
package/dist/client.mjs
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createSeedClient,
|
|
3
3
|
deserializeQueryString
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3KESF5XJ.mjs";
|
|
5
5
|
import "./chunk-CBELM7KX.mjs";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-JT57MV7Y.mjs";
|
|
7
|
+
import "./chunk-PJ2RFT5A.mjs";
|
|
8
|
+
import "./chunk-LVAHHQIK.mjs";
|
|
9
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
9
10
|
import "./chunk-SQEUO7FO.mjs";
|
|
10
11
|
import "./chunk-7P6ASYW6.mjs";
|
|
11
12
|
export {
|
package/dist/comment.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { HMBlockNode, HMPublishBlobsInput,
|
|
1
|
+
import type { HMBlockNode, HMPublishBlobsInput, UnpackedHypermediaId } from './hm-types';
|
|
2
|
+
import type { AnySigner } from './signer';
|
|
2
3
|
/**
|
|
3
4
|
* Removes trailing empty blocks from comment content before publishing.
|
|
4
5
|
* The editor always keeps a trailing empty paragraph for UX, but we
|
|
@@ -46,7 +47,7 @@ export type CreateCommentInput = (CreateCommentBaseInput & {
|
|
|
46
47
|
}>;
|
|
47
48
|
prepareAttachments?: PrepareAttachments;
|
|
48
49
|
});
|
|
49
|
-
export declare function createComment(input: CreateCommentInput, signer:
|
|
50
|
+
export declare function createComment(input: CreateCommentInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
|
50
51
|
export type DeleteCommentInput = {
|
|
51
52
|
commentId: string;
|
|
52
53
|
targetAccount: string;
|
|
@@ -54,7 +55,7 @@ export type DeleteCommentInput = {
|
|
|
54
55
|
targetVersion: string;
|
|
55
56
|
visibility?: 'Private' | '';
|
|
56
57
|
};
|
|
57
|
-
export declare function deleteComment(input: DeleteCommentInput, signer:
|
|
58
|
+
export declare function deleteComment(input: DeleteCommentInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
|
58
59
|
/** Input for updating an existing comment. */
|
|
59
60
|
export type UpdateCommentInput = {
|
|
60
61
|
commentId: string;
|
|
@@ -67,7 +68,7 @@ export type UpdateCommentInput = {
|
|
|
67
68
|
visibility?: 'Private' | '';
|
|
68
69
|
};
|
|
69
70
|
/** Creates a signed update blob for an existing comment. */
|
|
70
|
-
export declare function updateComment(input: UpdateCommentInput, signer:
|
|
71
|
+
export declare function updateComment(input: UpdateCommentInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
|
71
72
|
/**
|
|
72
73
|
* Compute the record ID ("authority/tsid") from raw CBOR-encoded comment blob bytes.
|
|
73
74
|
* The TSID is a 10-byte base58btc value: 6 bytes ms timestamp + 4 bytes SHA256 prefix.
|
package/dist/comment.mjs
CHANGED
|
@@ -4,9 +4,10 @@ import {
|
|
|
4
4
|
deleteComment,
|
|
5
5
|
trimTrailingEmptyBlocks,
|
|
6
6
|
updateComment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NYWCMQTH.mjs";
|
|
8
8
|
import "./chunk-N3P7S5YZ.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-LVAHHQIK.mjs";
|
|
10
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
10
11
|
import "./chunk-SQEUO7FO.mjs";
|
|
11
12
|
import "./chunk-7P6ASYW6.mjs";
|
|
12
13
|
export {
|
package/dist/contact.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { HMPublishBlobsInput
|
|
1
|
+
import type { HMPublishBlobsInput } from './hm-types';
|
|
2
|
+
import type { AnySigner } from './signer';
|
|
2
3
|
export type ContactSubscribe = {
|
|
3
4
|
site?: boolean;
|
|
4
5
|
profile?: boolean;
|
|
@@ -39,16 +40,16 @@ export type CreateContactResult = HMPublishBlobsInput & {
|
|
|
39
40
|
* Create a new contact blob and compute its record ID.
|
|
40
41
|
* Returns the publish input plus a `recordId` in "authority/tsid" format.
|
|
41
42
|
*/
|
|
42
|
-
export declare function createContact(input: CreateContactInput, signer:
|
|
43
|
+
export declare function createContact(input: CreateContactInput, signer: AnySigner): Promise<CreateContactResult>;
|
|
43
44
|
/**
|
|
44
45
|
* Update an existing contact blob. Reuses the original TSID.
|
|
45
46
|
*/
|
|
46
|
-
export declare function updateContact(input: UpdateContactInput, signer:
|
|
47
|
+
export declare function updateContact(input: UpdateContactInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
|
47
48
|
/**
|
|
48
49
|
* Delete a contact by publishing a tombstone blob.
|
|
49
50
|
* A tombstone has the same TSID but no subject and no name.
|
|
50
51
|
*/
|
|
51
|
-
export declare function deleteContact(input: DeleteContactInput, signer:
|
|
52
|
+
export declare function deleteContact(input: DeleteContactInput, signer: AnySigner): Promise<HMPublishBlobsInput>;
|
|
52
53
|
/**
|
|
53
54
|
* Compute the record ID ("authority/tsid") from raw CBOR-encoded contact blob bytes.
|
|
54
55
|
* Useful for resolving a CID to a record ID after fetching the blob.
|
package/dist/contact.mjs
CHANGED
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
createContact,
|
|
4
4
|
deleteContact,
|
|
5
5
|
updateContact
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-37WRGUK4.mjs";
|
|
7
|
+
import "./chunk-LVAHHQIK.mjs";
|
|
8
|
+
import "./chunk-DR3HJ6BV.mjs";
|
|
8
9
|
import "./chunk-7P6ASYW6.mjs";
|
|
9
10
|
export {
|
|
10
11
|
contactRecordIdFromBlob,
|