File tree 3 files changed +32
-14
lines changed
3 files changed +32
-14
lines changed Original file line number Diff line number Diff line change 26
26
"exports" : {
27
27
"." : {
28
28
"require" : " ./dist/index.js" ,
29
- "import" : " ./dist/esm/index.js"
29
+ "import" : " ./dist/esm/index.js" ,
30
+ "types" : " ./dist/index.d.ts"
30
31
},
31
32
"./package.json" : " ./package.json"
32
33
},
Original file line number Diff line number Diff line change
1
+ import { Pack } from 'tar-stream'
2
+ import { Buffer } from 'buffer'
3
+
4
+ export interface ActorProfileOptions {
5
+ actorProfile ?: any
6
+ outbox ?: any
7
+ followers ?: any
8
+ followingAccounts ?: any
9
+ lists ?: any
10
+ bookmarks ?: any
11
+ likes ?: any
12
+ blockedAccounts ?: any
13
+ blockedDomains ?: any
14
+ mutedAccounts ?: any
15
+ }
16
+
17
+ /**
18
+ * Exports an actor profile and associated data as a tarball.
19
+ * @param options - The options for the actor profile.
20
+ * @returns A tar-stream Pack object containing the exported data.
21
+ */
22
+ export function exportActorProfile ( options : ActorProfileOptions ) : Pack
23
+
24
+ /**
25
+ * Imports an actor profile from a tarball buffer.
26
+ * @param tarBuffer - The tarball buffer containing the actor profile.
27
+ * @returns A promise resolving to the imported actor profile data.
28
+ */
29
+ export function importActorProfile ( tarBuffer : Buffer ) : Promise < any >
Original file line number Diff line number Diff line change @@ -5,19 +5,7 @@ import * as tar from 'tar-stream'
5
5
import { type Pack } from 'tar-stream'
6
6
import YAML from 'yaml'
7
7
import { Readable } from 'stream'
8
-
9
- export interface ActorProfileOptions {
10
- actorProfile ?: any
11
- outbox ?: any
12
- followers ?: any
13
- followingAccounts ?: any
14
- lists ?: any
15
- bookmarks ?: any
16
- likes ?: any
17
- blockedAccounts ?: any
18
- blockedDomains ?: any
19
- mutedAccounts ?: any
20
- }
8
+ import { ActorProfileOptions } from './index.d'
21
9
22
10
export function exportActorProfile ( {
23
11
actorProfile,
You can’t perform that action at this time.
0 commit comments