@gitbook/api 0.0.0 → 0.2.0
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/client.d.ts +2335 -133
- package/dist/index.d.ts +5 -0
- package/dist/index.js +801 -43
- package/package.json +12 -5
- package/spec/openapi.json +7998 -484
- package/spec/openapi.yaml +5039 -352
- package/spec/openapi.dereference.json +0 -2648
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const GITBOOK_DEFAULT_ENDPOINT = "https://api.gitbook.com";
|
|
|
4
4
|
export declare class GitBookAPI extends Api<{
|
|
5
5
|
authToken?: string;
|
|
6
6
|
}> {
|
|
7
|
+
private endpoint;
|
|
7
8
|
constructor(options?: {
|
|
8
9
|
/**
|
|
9
10
|
* API endpoint to use.
|
|
@@ -15,4 +16,8 @@ export declare class GitBookAPI extends Api<{
|
|
|
15
16
|
*/
|
|
16
17
|
authToken?: string;
|
|
17
18
|
});
|
|
19
|
+
/**
|
|
20
|
+
* Create a new API client, authenticated as an installation.
|
|
21
|
+
*/
|
|
22
|
+
createInstallationClient(integrationName: string, installationId: string): Promise<GitBookAPI>;
|
|
18
23
|
}
|