@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.2.20260317 → 0.2.20260606
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.d.ts +646 -56
- package/package.json +1 -1
- package/readme.md +20 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,23 @@ Install typings for Discovery Engine API:
|
|
|
11
11
|
npm install @types/gapi.client.discoveryengine-v1alpha --save-dev
|
|
12
12
|
```
|
|
13
13
|
|
|
14
|
+
## TypeScript 6.0+
|
|
15
|
+
|
|
16
|
+
TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"compilerOptions": {
|
|
21
|
+
"types": [
|
|
22
|
+
"gapi",
|
|
23
|
+
"gapi.auth2",
|
|
24
|
+
"gapi.client",
|
|
25
|
+
"gapi.client.discoveryengine-v1alpha"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
14
31
|
## Usage
|
|
15
32
|
|
|
16
33
|
You need to initialize Google API client in your code:
|
|
@@ -59,6 +76,9 @@ var client_id = '',
|
|
|
59
76
|
|
|
60
77
|
// View, edit, create, and delete all your data associated with any Discovery Engine API product, such as Agentspace, Vertex AI Search, or NotebookLM Enterprise, including both end user data and administration or configuration data.
|
|
61
78
|
'https://www.googleapis.com/auth/discoveryengine.readwrite',
|
|
79
|
+
|
|
80
|
+
// Interact with Discovery Engine API products, such as Agentspace, Vertex AI Search, or NotebookLM Enterprise, on your behalf. It will also allow the app to view all data that you have access to when you use or interact with a Discovery Engine API product.
|
|
81
|
+
'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
|
|
62
82
|
],
|
|
63
83
|
immediate = true;
|
|
64
84
|
// ...
|