notebooklm-api 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/CHANGELOG.md +42 -0
- package/LICENSE +21 -0
- package/README.md +113 -0
- package/dist/api/artifacts.d.ts +155 -0
- package/dist/api/artifacts.d.ts.map +1 -0
- package/dist/api/chat.d.ts +63 -0
- package/dist/api/chat.d.ts.map +1 -0
- package/dist/api/notebooks.d.ts +91 -0
- package/dist/api/notebooks.d.ts.map +1 -0
- package/dist/api/notes.d.ts +56 -0
- package/dist/api/notes.d.ts.map +1 -0
- package/dist/api/research.d.ts +63 -0
- package/dist/api/research.d.ts.map +1 -0
- package/dist/api/sources.d.ts +136 -0
- package/dist/api/sources.d.ts.map +1 -0
- package/dist/auth.d.ts +82 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/cli/commands/chat.d.ts +7 -0
- package/dist/cli/commands/chat.d.ts.map +1 -0
- package/dist/cli/commands/generate.d.ts +6 -0
- package/dist/cli/commands/generate.d.ts.map +1 -0
- package/dist/cli/commands/login.d.ts +8 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/notebook.d.ts +8 -0
- package/dist/cli/commands/notebook.d.ts.map +1 -0
- package/dist/cli/commands/research.d.ts +6 -0
- package/dist/cli/commands/research.d.ts.map +1 -0
- package/dist/cli/commands/source.d.ts +6 -0
- package/dist/cli/commands/source.d.ts.map +1 -0
- package/dist/cli/helpers.d.ts +55 -0
- package/dist/cli/helpers.d.ts.map +1 -0
- package/dist/cli/index.d.ts +8 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +18930 -0
- package/dist/client.d.ts +134 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/core.d.ts +65 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/errors.d.ts +68 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15519 -0
- package/dist/logger.d.ts +28 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/paths.d.ts +36 -0
- package/dist/paths.d.ts.map +1 -0
- package/dist/rpc/decoder.d.ts +81 -0
- package/dist/rpc/decoder.d.ts.map +1 -0
- package/dist/rpc/encoder.d.ts +48 -0
- package/dist/rpc/encoder.d.ts.map +1 -0
- package/dist/rpc/index.d.ts +7 -0
- package/dist/rpc/index.d.ts.map +1 -0
- package/dist/rpc/types.d.ts +148 -0
- package/dist/rpc/types.d.ts.map +1 -0
- package/dist/types.d.ts +226 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +63 -0
package/dist/logger.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Logging Module for NotebookLM Client
|
|
3
|
+
*/
|
|
4
|
+
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
5
|
+
/**
|
|
6
|
+
* Sets the global log level
|
|
7
|
+
*/
|
|
8
|
+
export declare function setLogLevel(level: LogLevel): void;
|
|
9
|
+
/**
|
|
10
|
+
* Gets the current log level
|
|
11
|
+
*/
|
|
12
|
+
export declare function getLogLevel(): LogLevel;
|
|
13
|
+
/**
|
|
14
|
+
* Creates a logger with a specific prefix
|
|
15
|
+
*/
|
|
16
|
+
export declare function createLogger(prefix: string): {
|
|
17
|
+
debug(message: string, ...args: unknown[]): void;
|
|
18
|
+
info(message: string, ...args: unknown[]): void;
|
|
19
|
+
warn(message: string, ...args: unknown[]): void;
|
|
20
|
+
error(message: string, ...args: unknown[]): void;
|
|
21
|
+
};
|
|
22
|
+
export declare const logger: {
|
|
23
|
+
debug(message: string, ...args: unknown[]): void;
|
|
24
|
+
info(message: string, ...args: unknown[]): void;
|
|
25
|
+
warn(message: string, ...args: unknown[]): void;
|
|
26
|
+
error(message: string, ...args: unknown[]): void;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAW3D;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,IAAI,CAEjD;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,QAAQ,CAEtC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM;mBAWxB,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;kBAMlC,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;kBAMjC,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;mBAMhC,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;EAMnD;AAGD,eAAO,MAAM,MAAM;mBA3BA,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;kBAMlC,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;kBAMjC,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;mBAMhC,MAAM,WAAW,OAAO,EAAE,GAAG,IAAI;CASJ,CAAC"}
|
package/dist/paths.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Path Management for NotebookLM Client
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Default directory for storing NotebookLM data
|
|
6
|
+
*/
|
|
7
|
+
export declare const DEFAULT_DATA_DIR: string;
|
|
8
|
+
/**
|
|
9
|
+
* Default path for Playwright storage state (authentication)
|
|
10
|
+
*/
|
|
11
|
+
export declare const DEFAULT_STORAGE_PATH: string;
|
|
12
|
+
/**
|
|
13
|
+
* Default path for configuration file
|
|
14
|
+
*/
|
|
15
|
+
export declare const DEFAULT_CONFIG_PATH: string;
|
|
16
|
+
/**
|
|
17
|
+
* Default path for conversation cache
|
|
18
|
+
*/
|
|
19
|
+
export declare const DEFAULT_CACHE_PATH: string;
|
|
20
|
+
/**
|
|
21
|
+
* Ensures the data directory exists
|
|
22
|
+
*/
|
|
23
|
+
export declare function ensureDataDir(): Promise<void>;
|
|
24
|
+
/**
|
|
25
|
+
* Gets the storage path from environment or default
|
|
26
|
+
*/
|
|
27
|
+
export declare function getStoragePath(): string;
|
|
28
|
+
/**
|
|
29
|
+
* Validates that a path doesn't contain traversal attempts
|
|
30
|
+
*/
|
|
31
|
+
export declare function validatePath(path: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Gets the download directory for artifacts
|
|
34
|
+
*/
|
|
35
|
+
export declare function getDownloadDir(notebookId?: string): string;
|
|
36
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../src/paths.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAiC,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,oBAAoB,QAA+C,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,mBAAmB,QAAwC,CAAC;AAEzE;;GAEG;AACH,eAAO,MAAM,kBAAkB,QAAkC,CAAC;AAElE;;GAEG;AACH,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAGnD;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAevC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAYlD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAM1D"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPC Response Decoder for NotebookLM API
|
|
3
|
+
*
|
|
4
|
+
* Handles decoding of responses from Google's batchexecute API.
|
|
5
|
+
*/
|
|
6
|
+
import type { RPCMethod } from './types.ts';
|
|
7
|
+
/**
|
|
8
|
+
* RPC Error class for general RPC failures
|
|
9
|
+
*/
|
|
10
|
+
export declare class RPCError extends Error {
|
|
11
|
+
readonly rpcId?: string | undefined;
|
|
12
|
+
readonly errorCode?: number | undefined;
|
|
13
|
+
readonly rawResponse?: unknown | undefined;
|
|
14
|
+
constructor(message: string, rpcId?: string | undefined, errorCode?: number | undefined, rawResponse?: unknown | undefined);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Auth Error class for authentication-specific failures
|
|
18
|
+
*/
|
|
19
|
+
export declare class AuthError extends RPCError {
|
|
20
|
+
constructor(message: string, rpcId?: string);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Strips the anti-XSSI prefix from API responses.
|
|
24
|
+
*
|
|
25
|
+
* Google adds ")]}'" prefix to prevent XSSI attacks.
|
|
26
|
+
*/
|
|
27
|
+
export declare function stripAntiXssi(response: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Parses a chunked response from batchexecute.
|
|
30
|
+
*
|
|
31
|
+
* The format alternates between byte counts and JSON payloads:
|
|
32
|
+
* ```
|
|
33
|
+
* 123
|
|
34
|
+
* ["response data"]
|
|
35
|
+
* 456
|
|
36
|
+
* ["more data"]
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare function parseChunkedResponse(response: string): unknown[];
|
|
40
|
+
/**
|
|
41
|
+
* Extracts the RPC result for a specific method from parsed chunks.
|
|
42
|
+
*
|
|
43
|
+
* @param chunks - Parsed response chunks
|
|
44
|
+
* @param method - The RPC method ID to look for
|
|
45
|
+
* @returns The extracted result data
|
|
46
|
+
*/
|
|
47
|
+
export declare function extractRpcResult(chunks: unknown[], method: RPCMethod): unknown;
|
|
48
|
+
/**
|
|
49
|
+
* Checks if an error indicates an authentication failure.
|
|
50
|
+
*/
|
|
51
|
+
export declare function isAuthError(error: unknown): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Decodes a complete batchexecute response.
|
|
54
|
+
*
|
|
55
|
+
* @param response - Raw response text from the API
|
|
56
|
+
* @param method - The RPC method that was called
|
|
57
|
+
* @returns The extracted and parsed result
|
|
58
|
+
*/
|
|
59
|
+
export declare function decodeResponse(response: string, method: RPCMethod): unknown;
|
|
60
|
+
/**
|
|
61
|
+
* Extracts nested data from a deeply nested array structure.
|
|
62
|
+
* NotebookLM responses often have data buried in nested arrays.
|
|
63
|
+
*
|
|
64
|
+
* @param data - The data structure to search
|
|
65
|
+
* @param indices - Array of indices to follow
|
|
66
|
+
* @returns The extracted value or undefined
|
|
67
|
+
*/
|
|
68
|
+
export declare function extractNested(data: unknown, indices: number[]): unknown;
|
|
69
|
+
/**
|
|
70
|
+
* Recursively searches for a value in nested arrays.
|
|
71
|
+
*
|
|
72
|
+
* @param data - Data structure to search
|
|
73
|
+
* @param predicate - Function to test values
|
|
74
|
+
* @returns First matching value or undefined
|
|
75
|
+
*/
|
|
76
|
+
export declare function findInNested(data: unknown, predicate: (value: unknown) => boolean): unknown;
|
|
77
|
+
/**
|
|
78
|
+
* Extracts all UUIDs from a nested data structure.
|
|
79
|
+
*/
|
|
80
|
+
export declare function extractUuids(data: unknown): string[];
|
|
81
|
+
//# sourceMappingURL=decoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decoder.d.ts","sourceRoot":"","sources":["../../src/rpc/decoder.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAK5C;;GAEG;AACH,qBAAa,QAAS,SAAQ,KAAK;aAGf,KAAK,CAAC,EAAE,MAAM;aACd,SAAS,CAAC,EAAE,MAAM;aAClB,WAAW,CAAC,EAAE,OAAO;gBAHrC,OAAO,EAAE,MAAM,EACC,KAAK,CAAC,EAAE,MAAM,YAAA,EACd,SAAS,CAAC,EAAE,MAAM,YAAA,EAClB,WAAW,CAAC,EAAE,OAAO,YAAA;CAKxC;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,QAAQ;gBACzB,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;CAI5C;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAStD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,EAAE,CA6BhE;AAoBD;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,EAAE,EACjB,MAAM,EAAE,SAAS,GAChB,OAAO,CAoDT;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAOnD;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,SAAS,GAChB,OAAO,CAaT;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAST;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,OAAO,EACb,SAAS,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,GACrC,OAAO,CAWT;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,EAAE,CAgBpD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPC Request Encoder for NotebookLM API
|
|
3
|
+
*
|
|
4
|
+
* Handles encoding of RPC requests to the batchexecute format
|
|
5
|
+
* expected by Google's API.
|
|
6
|
+
*/
|
|
7
|
+
import { type RPCMethod, type RPCParams } from './types.ts';
|
|
8
|
+
/**
|
|
9
|
+
* Encodes an RPC request into the nested array format.
|
|
10
|
+
*
|
|
11
|
+
* The format is: [[[rpc_id, json_params, null, "generic"]]]
|
|
12
|
+
*/
|
|
13
|
+
export declare function encodeRpcRequest(method: RPCMethod, params: RPCParams): string;
|
|
14
|
+
/**
|
|
15
|
+
* Builds the HTTP request body for batchexecute.
|
|
16
|
+
*
|
|
17
|
+
* @param encodedRequest - The encoded RPC request from encodeRpcRequest()
|
|
18
|
+
* @param csrfToken - CSRF token (SNlM0e) for authentication
|
|
19
|
+
* @returns URL-encoded form body with trailing &
|
|
20
|
+
*/
|
|
21
|
+
export declare function buildRequestBody(encodedRequest: string, csrfToken?: string): string;
|
|
22
|
+
/**
|
|
23
|
+
* Builds URL query parameters for the batchexecute endpoint.
|
|
24
|
+
*
|
|
25
|
+
* @param method - The RPC method being called
|
|
26
|
+
* @param sessionId - Session ID (FdrFJe) from page load
|
|
27
|
+
* @param sourcePath - Source path for the request (default: "/")
|
|
28
|
+
* @returns Query string parameters
|
|
29
|
+
*/
|
|
30
|
+
export declare function buildUrlParams(method: RPCMethod, sessionId?: string, sourcePath?: string): URLSearchParams;
|
|
31
|
+
/**
|
|
32
|
+
* Builds the full URL for an RPC call.
|
|
33
|
+
*/
|
|
34
|
+
export declare function buildRpcUrl(baseUrl: string, method: RPCMethod, sessionId?: string): string;
|
|
35
|
+
/**
|
|
36
|
+
* Encodes a file upload request for resumable upload protocol.
|
|
37
|
+
*
|
|
38
|
+
* @param _filename - Name of the file being uploaded (reserved for future use)
|
|
39
|
+
* @param contentType - MIME type of the file
|
|
40
|
+
* @param fileSize - Size of the file in bytes
|
|
41
|
+
* @returns Headers and metadata for initiating upload
|
|
42
|
+
*/
|
|
43
|
+
export declare function buildUploadHeaders(_filename: string, contentType: string, fileSize: number): Record<string, string>;
|
|
44
|
+
/**
|
|
45
|
+
* Encodes upload metadata for source file uploads.
|
|
46
|
+
*/
|
|
47
|
+
export declare function buildUploadMetadata(notebookId: string, filename: string): string;
|
|
48
|
+
//# sourceMappingURL=encoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"encoder.d.ts","sourceRoot":"","sources":["../../src/rpc/encoder.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,GAChB,MAAM,CAKR;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,cAAc,EAAE,MAAM,EACtB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAYR;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,SAAS,EACjB,SAAS,CAAC,EAAE,MAAM,EAClB,UAAU,SAAM,GACf,eAAe,CAYjB;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,EACjB,SAAS,CAAC,EAAE,MAAM,GACjB,MAAM,CAGR;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQxB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rpc/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPC Types and Constants for NotebookLM API
|
|
3
|
+
*/
|
|
4
|
+
export declare const API_ENDPOINTS: {
|
|
5
|
+
readonly BATCH_EXECUTE: "https://notebooklm.google.com/_/LabsTailwindUi/data/batchexecute";
|
|
6
|
+
readonly QUERY: "https://notebooklm.google.com/_/LabsTailwindUi/data/google.internal.labs.tailwind.orchestration.v1.LabsTailwindOrchestrationService/GenerateFreeFormStreamed";
|
|
7
|
+
readonly UPLOAD: "https://notebooklm.google.com/upload/_/";
|
|
8
|
+
readonly HOME: "https://notebooklm.google.com";
|
|
9
|
+
};
|
|
10
|
+
export declare enum RPCMethod {
|
|
11
|
+
LIST_NOTEBOOKS = "wXbhsf",
|
|
12
|
+
CREATE_NOTEBOOK = "CCqFvf",
|
|
13
|
+
GET_NOTEBOOK = "rLM1Ne",
|
|
14
|
+
RENAME_NOTEBOOK = "s0tc2d",
|
|
15
|
+
DELETE_NOTEBOOK = "WWINqb",
|
|
16
|
+
REMOVE_FROM_RECENT = "fejl7e",
|
|
17
|
+
GET_NOTEBOOK_DESCRIPTION = "VfAZjd",// SUMMARIZE
|
|
18
|
+
ADD_URL_SOURCE = "izAoDd",
|
|
19
|
+
ADD_FILE_SOURCE = "o4cbdc",
|
|
20
|
+
ADD_TEXT_SOURCE = "izAoDd",// Same as ADD_URL_SOURCE with different params
|
|
21
|
+
DELETE_SOURCE = "tGMBJ",
|
|
22
|
+
GET_SOURCE = "hizoJc",
|
|
23
|
+
REFRESH_SOURCE = "FLmJqe",
|
|
24
|
+
UPDATE_SOURCE = "b7Wfje",
|
|
25
|
+
RENAME_SOURCE = "b7Wfje",// Same as UPDATE_SOURCE
|
|
26
|
+
GET_SOURCE_GUIDE = "tr032e",
|
|
27
|
+
GET_SOURCE_FULLTEXT = "hizoJc",// Same as GET_SOURCE
|
|
28
|
+
DISCOVER_SOURCES = "qXyaNe",
|
|
29
|
+
ASK = "QUERY_ENDPOINT",// Special endpoint
|
|
30
|
+
GET_CHAT_HISTORY = "hPTbtc",
|
|
31
|
+
CONFIGURE_CHAT = "QUERY_ENDPOINT",
|
|
32
|
+
LIST_ARTIFACTS = "gArtLc",
|
|
33
|
+
CREATE_ARTIFACT = "xpWGLf",
|
|
34
|
+
GET_ARTIFACT = "BnLyuf",
|
|
35
|
+
RENAME_ARTIFACT = "rc3d8d",
|
|
36
|
+
DELETE_ARTIFACT = "V5N4be",
|
|
37
|
+
GET_GENERATION_STATUS = "gArtLc",// POLL_STUDIO
|
|
38
|
+
EXPORT_TO_DOCS = "Krh3pd",
|
|
39
|
+
EXPORT_TO_SHEETS = "Krh3pd",
|
|
40
|
+
GET_INTERACTIVE_HTML = "v9rmvd",
|
|
41
|
+
CREATE_AUDIO = "AHyHrd",
|
|
42
|
+
GET_AUDIO = "VUsiyb",
|
|
43
|
+
DELETE_AUDIO = "sJDbic",
|
|
44
|
+
CREATE_VIDEO = "R7cb6c",
|
|
45
|
+
START_FAST_RESEARCH = "Ljjv0c",
|
|
46
|
+
START_DEEP_RESEARCH = "QA9ei",
|
|
47
|
+
POLL_RESEARCH = "e3bVqc",
|
|
48
|
+
IMPORT_RESEARCH_SOURCES = "LBwxtb",
|
|
49
|
+
SHARE_ARTIFACT = "RGP97b",
|
|
50
|
+
SHARE_NOTEBOOK = "QDyure",
|
|
51
|
+
GET_SHARE_STATUS = "JFMDGd",
|
|
52
|
+
CREATE_NOTE = "CYK0Xb",
|
|
53
|
+
GET_NOTES = "cFji9",
|
|
54
|
+
UPDATE_NOTE = "cYAfTb",
|
|
55
|
+
DELETE_NOTE = "AH0mwd",
|
|
56
|
+
GENERATE_MIND_MAP = "yyryJe"
|
|
57
|
+
}
|
|
58
|
+
export declare enum StudioContentType {
|
|
59
|
+
AUDIO = 1,
|
|
60
|
+
REPORT = 2,
|
|
61
|
+
VIDEO = 3,
|
|
62
|
+
QUIZ = 4,// Also used for flashcards (variant distinction)
|
|
63
|
+
MIND_MAP = 5,
|
|
64
|
+
INFOGRAPHIC = 6,
|
|
65
|
+
SLIDE_DECK = 7,
|
|
66
|
+
DATA_TABLE = 8
|
|
67
|
+
}
|
|
68
|
+
export declare enum AudioFormat {
|
|
69
|
+
MP3 = 1,
|
|
70
|
+
WAV = 2
|
|
71
|
+
}
|
|
72
|
+
export declare enum AudioLength {
|
|
73
|
+
SHORT = 1,// ~5 minutes
|
|
74
|
+
MEDIUM = 2,// ~15 minutes
|
|
75
|
+
LONG = 3
|
|
76
|
+
}
|
|
77
|
+
export declare enum VideoFormat {
|
|
78
|
+
MP4 = 1,
|
|
79
|
+
WEBM = 2
|
|
80
|
+
}
|
|
81
|
+
export declare enum VideoStyle {
|
|
82
|
+
AUTO = 1,
|
|
83
|
+
DOCUMENTARY = 2,
|
|
84
|
+
EDUCATIONAL = 3,
|
|
85
|
+
PRESENTATION = 4,
|
|
86
|
+
STORYTELLING = 5,
|
|
87
|
+
WHITEBOARD = 6,
|
|
88
|
+
PAPER_CRAFT = 7
|
|
89
|
+
}
|
|
90
|
+
export declare enum QuizDifficulty {
|
|
91
|
+
EASY = 1,
|
|
92
|
+
MEDIUM = 2,
|
|
93
|
+
HARD = 3
|
|
94
|
+
}
|
|
95
|
+
export declare enum ReportFormat {
|
|
96
|
+
BRIEFING_DOC = 1,
|
|
97
|
+
STUDY_GUIDE = 2,
|
|
98
|
+
BLOG_POST = 3,
|
|
99
|
+
CUSTOM = 4
|
|
100
|
+
}
|
|
101
|
+
export declare enum InfographicOrientation {
|
|
102
|
+
PORTRAIT = 1,
|
|
103
|
+
LANDSCAPE = 2
|
|
104
|
+
}
|
|
105
|
+
export declare enum ChatMode {
|
|
106
|
+
DEFAULT = 0,
|
|
107
|
+
GUIDED = 1,
|
|
108
|
+
CRITICAL = 2
|
|
109
|
+
}
|
|
110
|
+
export declare enum ResponseLength {
|
|
111
|
+
CONCISE = 1,
|
|
112
|
+
BALANCED = 2,
|
|
113
|
+
COMPREHENSIVE = 3
|
|
114
|
+
}
|
|
115
|
+
export declare enum ResearchSourceType {
|
|
116
|
+
WEB = 1,
|
|
117
|
+
DRIVE = 2
|
|
118
|
+
}
|
|
119
|
+
export declare enum ResearchMode {
|
|
120
|
+
FAST = 1,
|
|
121
|
+
DEEP = 2
|
|
122
|
+
}
|
|
123
|
+
export declare enum SourceStatus {
|
|
124
|
+
PROCESSING = 1,
|
|
125
|
+
READY = 2,
|
|
126
|
+
ERROR = 3
|
|
127
|
+
}
|
|
128
|
+
export declare enum GenerationStatusCode {
|
|
129
|
+
PENDING = 0,
|
|
130
|
+
IN_PROGRESS = 1,
|
|
131
|
+
COMPLETED = 2,
|
|
132
|
+
ERROR = 3
|
|
133
|
+
}
|
|
134
|
+
export declare enum DriveDocType {
|
|
135
|
+
DOCUMENT = 1,
|
|
136
|
+
SPREADSHEET = 2,
|
|
137
|
+
PRESENTATION = 3,
|
|
138
|
+
PDF = 4
|
|
139
|
+
}
|
|
140
|
+
export declare enum ExportDestination {
|
|
141
|
+
GOOGLE_DOCS = 1,
|
|
142
|
+
GOOGLE_SHEETS = 2
|
|
143
|
+
}
|
|
144
|
+
export declare function getSourceStatusString(code: number): string;
|
|
145
|
+
export declare function getGenerationStatusString(code: number): string;
|
|
146
|
+
export type RPCParams = (string | number | boolean | null | RPCParams)[];
|
|
147
|
+
export declare const BUILD_LABEL = "ProjectMakiServiceUi_20240101.00_p0";
|
|
148
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/rpc/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,eAAO,MAAM,aAAa;;;;;CAKhB,CAAC;AAGX,oBAAY,SAAS;IAEnB,cAAc,WAAW;IACzB,eAAe,WAAW;IAC1B,YAAY,WAAW;IACvB,eAAe,WAAW;IAC1B,eAAe,WAAW;IAC1B,kBAAkB,WAAW;IAC7B,wBAAwB,WAAW,CAAE,YAAY;IAGjD,cAAc,WAAW;IACzB,eAAe,WAAW;IAC1B,eAAe,WAAW,CAAE,+CAA+C;IAC3E,aAAa,UAAU;IACvB,UAAU,WAAW;IACrB,cAAc,WAAW;IACzB,aAAa,WAAW;IACxB,aAAa,WAAW,CAAE,wBAAwB;IAClD,gBAAgB,WAAW;IAC3B,mBAAmB,WAAW,CAAE,q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I;CACT;AAGD,oBAAY,YAAY;IACtB,YAAY,IAAI;IAChB,WAAW,IAAI;IACf,SAAS,IAAI;IACb,MAAM,IAAI;CACX;AAGD,oBAAY,sBAAsB;IAChC,QAAQ,IAAI;IACZ,SAAS,IAAI;CACd;AAGD,oBAAY,QAAQ;IAClB,OAAO,IAAI;IACX,MAAM,IAAI;IACV,QAAQ,IAAI;CACb;AAGD,oBAAY,cAAc;IACxB,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,aAAa,IAAI;CAClB;AAGD,oBAAY,kBAAkB;IAC5B,GAAG,IAAI;IACP,KAAK,IAAI;CACV;AAGD,oBAAY,YAAY;IACtB,IAAI,IAAI;IACR,IAAI,IAAI;CACT;AAGD,oBAAY,YAAY;IACtB,UAAU,IAAI;IACd,KAAK,IAAI;IACT,KAAK,IAAI;CACV;AAGD,oBAAY,oBAAoB;IAC9B,OAAO,IAAI;IACX,WAAW,IAAI;IACf,SAAS,IAAI;IACb,KAAK,IAAI;CACV;AAGD,oBAAY,YAAY;IACtB,QAAQ,IAAI;IACZ,WAAW,IAAI;IACf,YAAY,IAAI;IAChB,GAAG,IAAI;CACR;AAGD,oBAAY,iBAAiB;IAC3B,WAAW,IAAI;IACf,aAAa,IAAI;CAClB;AAGD,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAW1D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAa9D;AAGD,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;AAGzE,eAAO,MAAM,WAAW,wCAAwC,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for NotebookLM Client
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { StudioContentType, AudioFormat, VideoFormat, QuizDifficulty, ReportFormat, ChatMode, ResponseLength } from './rpc/types.ts';
|
|
6
|
+
export { StudioContentType, AudioFormat, AudioLength, VideoFormat, VideoStyle, QuizDifficulty, ReportFormat, InfographicOrientation, ChatMode, ResponseLength, ResearchSourceType, ResearchMode, SourceStatus, GenerationStatusCode, DriveDocType, ExportDestination, } from './rpc/types.ts';
|
|
7
|
+
export interface Notebook {
|
|
8
|
+
id: string;
|
|
9
|
+
title: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
isOwner: boolean;
|
|
13
|
+
sourceCount?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface NotebookDescription {
|
|
16
|
+
summary: string;
|
|
17
|
+
suggestedTopics: SuggestedTopic[];
|
|
18
|
+
}
|
|
19
|
+
export interface SuggestedTopic {
|
|
20
|
+
question: string;
|
|
21
|
+
prompt: string;
|
|
22
|
+
}
|
|
23
|
+
export interface Source {
|
|
24
|
+
id: string;
|
|
25
|
+
notebookId: string;
|
|
26
|
+
title: string;
|
|
27
|
+
type: SourceType;
|
|
28
|
+
url?: string;
|
|
29
|
+
status: 'processing' | 'ready' | 'error';
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
wordCount?: number;
|
|
32
|
+
errorMessage?: string;
|
|
33
|
+
}
|
|
34
|
+
export type SourceType = 'url' | 'youtube' | 'text' | 'file' | 'drive' | 'unknown';
|
|
35
|
+
export interface SourceFulltext {
|
|
36
|
+
sourceId: string;
|
|
37
|
+
title: string;
|
|
38
|
+
content: string;
|
|
39
|
+
sections: SourceSection[];
|
|
40
|
+
}
|
|
41
|
+
export interface SourceSection {
|
|
42
|
+
title?: string;
|
|
43
|
+
content: string;
|
|
44
|
+
startIndex: number;
|
|
45
|
+
endIndex: number;
|
|
46
|
+
}
|
|
47
|
+
export interface SourceGuide {
|
|
48
|
+
sourceId: string;
|
|
49
|
+
summary: string;
|
|
50
|
+
keywords: string[];
|
|
51
|
+
}
|
|
52
|
+
export interface AskResult {
|
|
53
|
+
answer: string;
|
|
54
|
+
references: ChatReference[];
|
|
55
|
+
conversationId: string;
|
|
56
|
+
}
|
|
57
|
+
export interface ChatReference {
|
|
58
|
+
sourceId: string;
|
|
59
|
+
sourceTitle: string;
|
|
60
|
+
text: string;
|
|
61
|
+
startChar: number;
|
|
62
|
+
endChar: number;
|
|
63
|
+
}
|
|
64
|
+
export interface ConversationTurn {
|
|
65
|
+
id: string;
|
|
66
|
+
question: string;
|
|
67
|
+
answer: string;
|
|
68
|
+
references: ChatReference[];
|
|
69
|
+
timestamp: Date;
|
|
70
|
+
}
|
|
71
|
+
export interface ChatConfig {
|
|
72
|
+
mode: ChatMode;
|
|
73
|
+
responseLength: ResponseLength;
|
|
74
|
+
persona?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface Artifact {
|
|
77
|
+
id: string;
|
|
78
|
+
notebookId: string;
|
|
79
|
+
title: string;
|
|
80
|
+
type: StudioContentType;
|
|
81
|
+
status: 'pending' | 'in_progress' | 'completed' | 'error';
|
|
82
|
+
createdAt: Date;
|
|
83
|
+
url?: string;
|
|
84
|
+
errorMessage?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface GenerationStatus {
|
|
87
|
+
artifactId: string;
|
|
88
|
+
status: 'pending' | 'in_progress' | 'completed' | 'error';
|
|
89
|
+
progress?: number;
|
|
90
|
+
url?: string;
|
|
91
|
+
errorMessage?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface AudioOptions {
|
|
94
|
+
format?: AudioFormat;
|
|
95
|
+
language?: string;
|
|
96
|
+
instructions?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface VideoOptions {
|
|
99
|
+
format?: VideoFormat;
|
|
100
|
+
language?: string;
|
|
101
|
+
instructions?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface ReportOptions {
|
|
104
|
+
format?: ReportFormat;
|
|
105
|
+
customPrompt?: string;
|
|
106
|
+
includeSourceRefs?: boolean;
|
|
107
|
+
}
|
|
108
|
+
export interface QuizOptions {
|
|
109
|
+
questionCount?: number;
|
|
110
|
+
difficulty?: QuizDifficulty;
|
|
111
|
+
instructions?: string;
|
|
112
|
+
}
|
|
113
|
+
export interface FlashcardOptions {
|
|
114
|
+
cardCount?: number;
|
|
115
|
+
instructions?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface MindMapOptions {
|
|
118
|
+
instructions?: string;
|
|
119
|
+
}
|
|
120
|
+
export interface InfographicOptions {
|
|
121
|
+
instructions?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface SlideOptions {
|
|
124
|
+
instructions?: string;
|
|
125
|
+
}
|
|
126
|
+
export interface DataTableOptions {
|
|
127
|
+
instructions?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface ResearchTask {
|
|
130
|
+
taskId: string;
|
|
131
|
+
reportId: string;
|
|
132
|
+
query: string;
|
|
133
|
+
source: 'web' | 'drive';
|
|
134
|
+
mode: 'fast' | 'deep';
|
|
135
|
+
}
|
|
136
|
+
export interface ResearchResult {
|
|
137
|
+
taskId: string;
|
|
138
|
+
status: 'in_progress' | 'completed';
|
|
139
|
+
summary?: string;
|
|
140
|
+
sources: ResearchSource[];
|
|
141
|
+
}
|
|
142
|
+
export interface ResearchSource {
|
|
143
|
+
url: string;
|
|
144
|
+
title: string;
|
|
145
|
+
snippet?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface Note {
|
|
148
|
+
id: string;
|
|
149
|
+
notebookId: string;
|
|
150
|
+
title: string;
|
|
151
|
+
content: string;
|
|
152
|
+
createdAt: Date;
|
|
153
|
+
updatedAt: Date;
|
|
154
|
+
}
|
|
155
|
+
export interface AuthTokens {
|
|
156
|
+
cookies: Cookie[];
|
|
157
|
+
csrfToken: string;
|
|
158
|
+
sessionId: string;
|
|
159
|
+
}
|
|
160
|
+
export interface Cookie {
|
|
161
|
+
name: string;
|
|
162
|
+
value: string;
|
|
163
|
+
domain: string;
|
|
164
|
+
path: string;
|
|
165
|
+
expires?: number;
|
|
166
|
+
httpOnly?: boolean;
|
|
167
|
+
secure?: boolean;
|
|
168
|
+
sameSite?: 'Strict' | 'Lax' | 'None';
|
|
169
|
+
}
|
|
170
|
+
export declare const NotebookSchema: z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
title: z.ZodString;
|
|
173
|
+
createdAt: z.ZodDate;
|
|
174
|
+
updatedAt: z.ZodDate;
|
|
175
|
+
isOwner: z.ZodBoolean;
|
|
176
|
+
sourceCount: z.ZodOptional<z.ZodNumber>;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
export declare const SourceSchema: z.ZodObject<{
|
|
179
|
+
id: z.ZodString;
|
|
180
|
+
notebookId: z.ZodString;
|
|
181
|
+
title: z.ZodString;
|
|
182
|
+
type: z.ZodEnum<{
|
|
183
|
+
unknown: "unknown";
|
|
184
|
+
url: "url";
|
|
185
|
+
youtube: "youtube";
|
|
186
|
+
text: "text";
|
|
187
|
+
file: "file";
|
|
188
|
+
drive: "drive";
|
|
189
|
+
}>;
|
|
190
|
+
url: z.ZodOptional<z.ZodString>;
|
|
191
|
+
status: z.ZodEnum<{
|
|
192
|
+
processing: "processing";
|
|
193
|
+
ready: "ready";
|
|
194
|
+
error: "error";
|
|
195
|
+
}>;
|
|
196
|
+
createdAt: z.ZodDate;
|
|
197
|
+
wordCount: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
199
|
+
}, z.core.$strip>;
|
|
200
|
+
export declare const AskResultSchema: z.ZodObject<{
|
|
201
|
+
answer: z.ZodString;
|
|
202
|
+
references: z.ZodArray<z.ZodObject<{
|
|
203
|
+
sourceId: z.ZodString;
|
|
204
|
+
sourceTitle: z.ZodString;
|
|
205
|
+
text: z.ZodString;
|
|
206
|
+
startChar: z.ZodNumber;
|
|
207
|
+
endChar: z.ZodNumber;
|
|
208
|
+
}, z.core.$strip>>;
|
|
209
|
+
conversationId: z.ZodString;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export declare const ArtifactSchema: z.ZodObject<{
|
|
212
|
+
id: z.ZodString;
|
|
213
|
+
notebookId: z.ZodString;
|
|
214
|
+
title: z.ZodString;
|
|
215
|
+
type: z.ZodEnum<typeof StudioContentType>;
|
|
216
|
+
status: z.ZodEnum<{
|
|
217
|
+
error: "error";
|
|
218
|
+
pending: "pending";
|
|
219
|
+
in_progress: "in_progress";
|
|
220
|
+
completed: "completed";
|
|
221
|
+
}>;
|
|
222
|
+
createdAt: z.ZodDate;
|
|
223
|
+
url: z.ZodOptional<z.ZodString>;
|
|
224
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,EACf,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAMxB,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB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,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACjB;AAMD,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;CACtC;AAMD,eAAO,MAAM,cAAc;;;;;;;iBAOzB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;iBAUvB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;iBAU1B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBASzB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "notebooklm-api",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Unofficial TypeScript/JavaScript client and CLI for Google NotebookLM API",
|
|
5
|
+
"author": "e-yc",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/e-yc/notebooklm-api.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/e-yc/notebooklm-api#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/e-yc/notebooklm-api/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"notebooklm",
|
|
17
|
+
"google",
|
|
18
|
+
"ai",
|
|
19
|
+
"notebook",
|
|
20
|
+
"podcast",
|
|
21
|
+
"audio",
|
|
22
|
+
"video",
|
|
23
|
+
"slide-deck",
|
|
24
|
+
"api",
|
|
25
|
+
"client",
|
|
26
|
+
"typescript",
|
|
27
|
+
"cli"
|
|
28
|
+
],
|
|
29
|
+
"type": "module",
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"module": "./dist/index.js",
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"exports": {
|
|
34
|
+
".": {
|
|
35
|
+
"import": "./dist/index.js",
|
|
36
|
+
"types": "./dist/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./cli": {
|
|
39
|
+
"import": "./dist/cli/index.js",
|
|
40
|
+
"types": "./dist/cli/index.d.ts"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"bin": {
|
|
44
|
+
"notebooklm": "./dist/cli/index.js"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"dist",
|
|
48
|
+
"README.md",
|
|
49
|
+
"LICENSE",
|
|
50
|
+
"CHANGELOG.md"
|
|
51
|
+
],
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"chalk": "^5.4.1",
|
|
54
|
+
"commander": "^13.0.0",
|
|
55
|
+
"zod": "^4.3.5"
|
|
56
|
+
},
|
|
57
|
+
"optionalDependencies": {
|
|
58
|
+
"playwright": "^1.52.0"
|
|
59
|
+
},
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": ">=18.0.0"
|
|
62
|
+
}
|
|
63
|
+
}
|