generated from interop-alliance/isomorphic-lib-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
395 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,7 +84,6 @@ typings/ | |
|
||
# Nuxt.js build / generate output | ||
.nuxt | ||
dist | ||
|
||
# Gatsby files | ||
.cache/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import cjsModule from "../index.js"; | ||
export const exportActorProfile = cjsModule.exportActorProfile; | ||
export const importActorProfile = cjsModule.importActorProfile; | ||
export const validateExportStream = cjsModule.validateExportStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"type": "module" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*! | ||
* Copyright (c) 2024 Interop Alliance and Dmitri Zagidulin. All rights reserved. | ||
*/ | ||
import * as tar from 'tar-stream'; | ||
import { type Readable } from 'stream'; | ||
export interface ActorProfileOptions { | ||
actorProfile?: any; | ||
outbox?: any; | ||
followers?: any; | ||
followingAccounts?: any; | ||
lists?: any; | ||
bookmarks?: any; | ||
likes?: any; | ||
blockedAccounts?: any; | ||
blockedDomains?: any; | ||
mutedAccounts?: any; | ||
} | ||
export declare function exportActorProfile({ actorProfile, outbox, followers, followingAccounts, lists, bookmarks, likes, blockedAccounts, blockedDomains, mutedAccounts }: ActorProfileOptions & { | ||
media?: File[]; | ||
}): Promise<{ | ||
addMediaFile: (fileName: string, buffer: ArrayBuffer, contentType: string) => void; | ||
finalize: () => tar.Pack; | ||
}>; | ||
/** | ||
* Imports an ActivityPub profile from a .tar archive stream. | ||
* @param tarStream - A ReadableStream containing the .tar archive. | ||
* @returns A promise that resolves to the parsed profile data. | ||
*/ | ||
export declare function importActorProfile(tarStream: Readable): Promise<Record<string, any>>; | ||
export * from './verify'; | ||
//# sourceMappingURL=index.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { type Readable } from 'stream'; | ||
/** | ||
* Validates the structure and content of an exported ActivityPub tarball. | ||
* @param tarStream - A ReadableStream containing the .tar archive. | ||
* @returns A promise that resolves to an object with `valid` (boolean) and `errors` (string[]). | ||
*/ | ||
export declare function validateExportStream(tarStream: Readable): Promise<{ | ||
valid: boolean; | ||
errors: string[]; | ||
}>; | ||
//# sourceMappingURL=verify.d.ts.map |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.