@synonymdev/pubky 0.5.0-rc.2 → 0.5.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/index.cjs +60 -61
- package/index.js +65 -66
- package/package.json +1 -1
- package/pubky.d.ts +12 -12
- package/pubky_bg.wasm +0 -0
package/package.json
CHANGED
package/pubky.d.ts
CHANGED
|
@@ -62,6 +62,17 @@ export class AuthRequest {
|
|
|
62
62
|
}
|
|
63
63
|
export class Client {
|
|
64
64
|
free(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Returns a list of Pubky urls (as strings).
|
|
67
|
+
*
|
|
68
|
+
* - `url`: The Pubky url (string) to the directory you want to list its content.
|
|
69
|
+
* - `cursor`: Either a full `pubky://` Url (from previous list response),
|
|
70
|
+
* or a path (to a file or directory) relative to the `url`
|
|
71
|
+
* - `reverse`: List in reverse order
|
|
72
|
+
* - `limit` Limit the number of urls in the response
|
|
73
|
+
* - `shallow`: List directories and files, instead of flat list of files.
|
|
74
|
+
*/
|
|
75
|
+
list(url: string, cursor?: string | null, reverse?: boolean | null, limit?: number | null, shallow?: boolean | null): Promise<Array<any>>;
|
|
65
76
|
/**
|
|
66
77
|
* Signup to a homeserver and update Pkarr accordingly.
|
|
67
78
|
*
|
|
@@ -118,6 +129,7 @@ export class Client {
|
|
|
118
129
|
* manager should always attempt to republish the last known homeserver.
|
|
119
130
|
*/
|
|
120
131
|
republishHomeserver(keypair: Keypair, host: PublicKey): Promise<void>;
|
|
132
|
+
fetch(url: string, request_init?: any | null): Promise<Promise<any>>;
|
|
121
133
|
/**
|
|
122
134
|
* Create a new Pubky Client with an optional configuration.
|
|
123
135
|
*/
|
|
@@ -129,18 +141,6 @@ export class Client {
|
|
|
129
141
|
* and read the homeserver HTTP port from the [reserved service parameter key](pubky_common::constants::reserved_param_keys::HTTP_PORT)
|
|
130
142
|
*/
|
|
131
143
|
static testnet(): Client;
|
|
132
|
-
fetch(url: string, request_init?: any | null): Promise<Promise<any>>;
|
|
133
|
-
/**
|
|
134
|
-
* Returns a list of Pubky urls (as strings).
|
|
135
|
-
*
|
|
136
|
-
* - `url`: The Pubky url (string) to the directory you want to list its content.
|
|
137
|
-
* - `cursor`: Either a full `pubky://` Url (from previous list response),
|
|
138
|
-
* or a path (to a file or directory) relative to the `url`
|
|
139
|
-
* - `reverse`: List in reverse order
|
|
140
|
-
* - `limit` Limit the number of urls in the response
|
|
141
|
-
* - `shallow`: List directories and files, instead of flat list of files.
|
|
142
|
-
*/
|
|
143
|
-
list(url: string, cursor?: string | null, reverse?: boolean | null, limit?: number | null, shallow?: boolean | null): Promise<Array<any>>;
|
|
144
144
|
}
|
|
145
145
|
export class Keypair {
|
|
146
146
|
private constructor();
|
package/pubky_bg.wasm
CHANGED
|
Binary file
|