@googleapis/discoveryengine 37.0.0 → 37.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.
@@ -2378,6 +2378,12 @@ export declare namespace discoveryengine_v1alpha {
2378
2378
  * Reasons for not answering the assist call.
2379
2379
  */
2380
2380
  assistSkippedReasons?: string[] | null;
2381
+ /**
2382
+ * Output only. Maps an internal connector agent name (the machine identifier embedded in tool names, e.g. `custom_mcp__agent`) to the connector's human-readable display name. Populated at serving time for custom MCP / agent gateway connectors so user-facing surfaces (e.g. the tool-call chip) can show the connector name instead of its internal identifier. Empty when there are no such connectors.
2383
+ */
2384
+ connectorDisplayNames?: {
2385
+ [key: string]: string;
2386
+ } | null;
2381
2387
  /**
2382
2388
  * Optional. The field contains information about the various policy checks' results like the banned phrases or the Model Armor checks. This field is populated only if the assist call was skipped due to a policy violation.
2383
2389
  */
@@ -2503,7 +2509,7 @@ export declare namespace discoveryengine_v1alpha {
2503
2509
  */
2504
2510
  generationConfig?: Schema$GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig;
2505
2511
  /**
2506
- * Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data.
2512
+ * Optional. Indicates whether Knowledge Catalog is enabled for this specific assistant. When enabled, it powers discovery context using organizational data. If unspecified, defaults to true.
2507
2513
  */
2508
2514
  knowledgeCatalogEnabled?: boolean | null;
2509
2515
  /**
@@ -2879,6 +2885,10 @@ export declare namespace discoveryengine_v1alpha {
2879
2885
  * Required. The URI the user is directed to when they need to authorize. Should include everything required for a successful authorization: OAuth ID, extra flags, etc. Example: `https://accounts.google.com/o/oauth2/v2/auth?client_id=OAUTH_ID&scope=https://www.googleapis.com/auth/calendar.events&response_type=code&access_type=offline&prompt=consent` The `redirect_uri` parameter will be overwritten by the Vertex AI Search frontend.
2880
2886
  */
2881
2887
  authorizationUri?: string | null;
2888
+ /**
2889
+ * Optional. Whether the OAuth token exchange uses HTTP Basic authentication (`client_secret_basic`) instead of sending the client credentials in the request body (`client_secret_post`). When `true`, the credentials (`client_id:client_secret`) are Base64 encoded and sent in the `Authorization` header. Some OAuth providers (e.g. Splunk) require `client_secret_basic`. When `false` or unset, the default `client_secret_post` is used.
2890
+ */
2891
+ basicAuthenticationEnabled?: boolean | null;
2882
2892
  /**
2883
2893
  * Required. The OAuth2 client ID.
2884
2894
  */
@@ -3880,7 +3890,7 @@ export declare namespace discoveryengine_v1alpha {
3880
3890
  */
3881
3891
  selectedPosition?: number | null;
3882
3892
  /**
3883
- * End user selected CompleteQueryResponse.QuerySuggestion.suggestion.
3893
+ * Optional. End user selected CompleteQueryResponse.QuerySuggestion.suggestion.
3884
3894
  */
3885
3895
  selectedSuggestion?: string | null;
3886
3896
  }
@@ -4695,7 +4705,7 @@ export declare namespace discoveryengine_v1alpha {
4695
4705
  */
4696
4706
  syncMode?: string | null;
4697
4707
  /**
4698
- * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
4708
+ * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. If the caller omits `tag`, the server auto-derives one from the collection_id (falling back to data_source, else a time-based `t-` sentinel). The auto-derived tag is subject to the same immutability guarantee as a caller-supplied one, so callers who care about the exact tag value should provide it explicitly rather than relying on the server default. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
4699
4709
  */
4700
4710
  tag?: string | null;
4701
4711
  /**
@@ -6195,6 +6205,10 @@ export declare namespace discoveryengine_v1alpha {
6195
6205
  * Required. The output location of the data.
6196
6206
  */
6197
6207
  outputConfig?: Schema$GoogleCloudDiscoveryengineV1alphaOutputConfig;
6208
+ /**
6209
+ * Optional. The earliest date (inclusive), interpreted in the UTC time zone, whose metrics are included in the export. If unset, defaults to 30 days before the current UTC date. The value must be a valid calendar date that is not in the future and not older than 180 days (the source data retention window); otherwise the request fails with `INVALID_ARGUMENT`.
6210
+ */
6211
+ startDate?: Schema$GoogleTypeDate;
6198
6212
  }
6199
6213
  /**
6200
6214
  * Response of the ExportMetricsRequest. If the long running operation was successful, then this message is returned by the google.longrunning.Operations.response field.
@@ -7346,6 +7360,10 @@ export declare namespace discoveryengine_v1alpha {
7346
7360
  * Optional. Whether the license config should be auto renewed when it reaches the end date.
7347
7361
  */
7348
7362
  autoRenew?: boolean | null;
7363
+ /**
7364
+ * Output only. The name of the BillingAccountLicenseConfig from which this LicenseConfig is assigned, if this field is set.
7365
+ */
7366
+ billingAccountLicenseConfig?: string | null;
7349
7367
  /**
7350
7368
  * Output only. Indication of whether the subscription is terminated earlier than the expiration date. This is usually terminated by pipeline once the subscription gets terminated from subsv3.
7351
7369
  */
@@ -8166,6 +8184,10 @@ export declare namespace discoveryengine_v1alpha {
8166
8184
  * Optional. Configuration for NotebookLM settings.
8167
8185
  */
8168
8186
  notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigNotebooklmConfig;
8187
+ /**
8188
+ * Optional. Resource-level access control config for Gemini Enterprise users.
8189
+ */
8190
+ resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig;
8169
8191
  }
8170
8192
  /**
8171
8193
  * Configuration for NotebookLM.
@@ -8219,6 +8241,15 @@ export declare namespace discoveryengine_v1alpha {
8219
8241
  */
8220
8242
  userPromptTemplate?: string | null;
8221
8243
  }
8244
+ /**
8245
+ * Controls resource-level access control for Gemini Enterprise users.
8246
+ */
8247
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaProjectCustomerProvidedConfigResourceAccessControlConfig {
8248
+ /**
8249
+ * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.
8250
+ */
8251
+ dataStoreAccessControlEnabled?: boolean | null;
8252
+ }
8222
8253
  /**
8223
8254
  * Metadata about the terms of service.
8224
8255
  */
@@ -8625,6 +8656,10 @@ export declare namespace discoveryengine_v1alpha {
8625
8656
  * This field is expected to be a ui message in JSON format. As of Q1 2026, ui_json_payload is only supported for A2UI messages.
8626
8657
  */
8627
8658
  uiJsonPayload?: string | null;
8659
+ /**
8660
+ * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. See `UserSuppliedSobiArtifactReference` above.
8661
+ */
8662
+ userSuppliedSobiArtifactReference?: Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference;
8628
8663
  }
8629
8664
  /**
8630
8665
  * Represents a document reference.
@@ -8717,6 +8752,19 @@ export declare namespace discoveryengine_v1alpha {
8717
8752
  */
8718
8753
  personId?: string | null;
8719
8754
  }
8755
+ /**
8756
+ * Reference to a user-supplied file attached to a long-running-agent (Sobi) task. Rendered by the client as an attachment chip on the user turn's bubble. The file itself is stored on the task's `AgentArtifact` list; the client resolves full metadata (source URI, size, ...) for download or preview by calling `GetTask` on the Sobi Task API and matching `AgentArtifact.name` against `file_name`. Only `file_name` and `mime_type` appear on this wire deliberately: the backing `gs://` or Drive URI is not exposed to conversation-history readers. Same variant is used for both byte-uploaded and Drive-picked files -- "user attached a file" is one concept regardless of source.
8757
+ */
8758
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaQueryPartUserSuppliedSobiArtifactReference {
8759
+ /**
8760
+ * Required. Client-supplied filename. Unique per task within the user-supplied artifact set (UI dedupes before upload). Doubles as the artifact identifier used to look up the artifact on `Task.artifacts`. The `_name` suffix is deliberate and the AIP-122 lint is suppressed: this field is not a resource name (which is what AIP-122 reserves the bare `name` for). It is the literal filename, and it serves as the join key against `AgentArtifact.name` on the backing Sobi task -- a structural role that `title` or `display_name` would not communicate to a client picking what to send. The internal mirror (`cloud/ml/discoveryengine/schema/assistant.proto`) uses the same field name so the round-trip converter stays name-for-name.
8761
+ */
8762
+ fileName?: string | null;
8763
+ /**
8764
+ * Optional. IANA MIME type. Used for icon/preview rendering.
8765
+ */
8766
+ mimeType?: string | null;
8767
+ }
8720
8768
  /**
8721
8769
  * Record message for RankService.Rank method.
8722
8770
  */
@@ -9406,7 +9454,7 @@ export declare namespace discoveryengine_v1alpha {
9406
9454
  */
9407
9455
  orderBy?: string | null;
9408
9456
  /**
9409
- * The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
9457
+ * Optional. The user's search query. See SearchRequest.query for definition. The value must be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At least one of search_query or PageInfo.page_category is required for `search` events. Other event types should not set this field. Otherwise, an `INVALID_ARGUMENT` error is returned.
9410
9458
  */
9411
9459
  searchQuery?: string | null;
9412
9460
  }
@@ -10088,6 +10136,27 @@ export declare namespace discoveryengine_v1alpha {
10088
10136
  * The condition under which search as you type should occur. Default to Condition.DISABLED.
10089
10137
  */
10090
10138
  condition?: string | null;
10139
+ /**
10140
+ * Optional. The list of fields to be used for Search As You Type scoring.
10141
+ */
10142
+ fields?: Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField[];
10143
+ /**
10144
+ * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`.
10145
+ */
10146
+ scoreThreshold?: number | null;
10147
+ }
10148
+ /**
10149
+ * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.
10150
+ */
10151
+ export interface Schema$GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAsYouTypeSpecField {
10152
+ /**
10153
+ * Required. A field key that has been indexed for Search As You Type.
10154
+ */
10155
+ key?: string | null;
10156
+ /**
10157
+ * Optional. Weight for scores from this field. Defaults to 1.0 if not specified.
10158
+ */
10159
+ weight?: number | null;
10091
10160
  }
10092
10161
  /**
10093
10162
  * Session specification.
@@ -11654,7 +11723,7 @@ export declare namespace discoveryengine_v1alpha {
11654
11723
  */
11655
11724
  export interface Schema$GoogleCloudDiscoveryengineV1alphaUserEvent {
11656
11725
  /**
11657
- * Extra user event features to include in the recommendation model. These attributes must NOT contain data that needs to be parsed or processed further, e.g. JSON or other encodings. If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be consistent between imported events and events provided with prediction requests. This lets the Discovery Engine API use those custom attributes when training models and serving predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8 encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is `traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.
11726
+ * Optional. Extra user event features to include in the recommendation model. These attributes must NOT contain data that needs to be parsed or processed further, e.g. JSON or other encodings. If you provide custom attributes for ingested user events, also include them in the user events that you associate with prediction requests. Custom attribute formatting must be consistent between imported events and events provided with prediction requests. This lets the Discovery Engine API use those custom attributes when training models and serving predictions, which helps improve recommendation quality. This field needs to pass all below criteria, otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8 encoded string with a length limit of 5,000 characters. * For text attributes, at most 400 values are allowed. Empty values are not allowed. Each value must be a UTF-8 encoded string with a length limit of 256 characters. * For number attributes, at most 400 values are allowed. For product recommendations, an example of extra user information is `traffic_channel`, which is how a user arrives at the site. Users can arrive at the site by coming to the site directly, coming through Google search, or in other ways.
11658
11727
  */
11659
11728
  attributes?: {
11660
11729
  [key: string]: Schema$GoogleCloudDiscoveryengineV1alphaCustomAttribute;
@@ -12155,6 +12224,10 @@ export declare namespace discoveryengine_v1alpha {
12155
12224
  * The name of the collection. It should be collection resource name. Format: `projects/{project\}/locations/{location\}/collections/{collection_id\}`. For APIs under WidgetService, such as WidgetService.LookupWidgetConfig, the project number and location part is erased in this field. For synthetic placeholder entries (see message-level comment) this carries a synthetic placeholder collection id that does not correspond to a real collection. Callers must not attempt to resolve / GET this resource until the user authorizes the connector.
12156
12225
  */
12157
12226
  name?: string | null;
12227
+ /**
12228
+ * Output only. The version-independent label of the connector backing this collection, mirroring `DataConnector.tag`. Unlike the version-pinned data store id it survives a connector version upgrade, so an upgraded connector keeps the same tag. Not a unique key. As `DataConnector.tag` documents, several connectors may share a tag under the same (project, location, collection, data_source), and tag-based lookup resolves to the one with the greatest create_time. Clients must not treat this as a connector identifier. Empty when the connector was created before the tag-write launch, and for synthetic placeholder entries, which have no underlying `DataConnector`. Populated only when `ConnectorsFeature.enable_connector_tag` is on.
12229
+ */
12230
+ tag?: string | null;
12158
12231
  }
12159
12232
  /**
12160
12233
  * Read-only connector in CollectionComponent auth state.
@@ -12512,6 +12585,10 @@ export declare namespace discoveryengine_v1alpha {
12512
12585
  * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request.
12513
12586
  */
12514
12587
  displayName?: string | null;
12588
+ /**
12589
+ * Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group. Compared for equality only -- never parsed, and never shown to a user, so it is not localized.
12590
+ */
12591
+ family?: string | null;
12515
12592
  /**
12516
12593
  * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, `graph_5`).
12517
12594
  */
@@ -14685,6 +14762,10 @@ export declare namespace discoveryengine_v1alpha {
14685
14762
  * Optional. Configuration for NotebookLM settings.
14686
14763
  */
14687
14764
  notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigNotebooklmConfig;
14765
+ /**
14766
+ * Optional. Resource-level access control config for Gemini Enterprise users.
14767
+ */
14768
+ resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig;
14688
14769
  }
14689
14770
  /**
14690
14771
  * Configuration for NotebookLM.
@@ -14738,6 +14819,15 @@ export declare namespace discoveryengine_v1alpha {
14738
14819
  */
14739
14820
  userPromptTemplate?: string | null;
14740
14821
  }
14822
+ /**
14823
+ * Controls resource-level access control for Gemini Enterprise users.
14824
+ */
14825
+ export interface Schema$GoogleCloudDiscoveryengineV1betaProjectCustomerProvidedConfigResourceAccessControlConfig {
14826
+ /**
14827
+ * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.
14828
+ */
14829
+ dataStoreAccessControlEnabled?: boolean | null;
14830
+ }
14741
14831
  /**
14742
14832
  * Metadata about the terms of service.
14743
14833
  */
@@ -15593,6 +15683,27 @@ export declare namespace discoveryengine_v1alpha {
15593
15683
  * The condition under which search as you type should occur. Default to Condition.DISABLED.
15594
15684
  */
15595
15685
  condition?: string | null;
15686
+ /**
15687
+ * Optional. The list of fields to be used for Search As You Type scoring.
15688
+ */
15689
+ fields?: Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField[];
15690
+ /**
15691
+ * Optional. Search As You Type score threshold for filtering purpose. We keep the result if `score` \>= `score_threshold`.
15692
+ */
15693
+ scoreThreshold?: number | null;
15694
+ }
15695
+ /**
15696
+ * A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.
15697
+ */
15698
+ export interface Schema$GoogleCloudDiscoveryengineV1betaSearchRequestSearchAsYouTypeSpecField {
15699
+ /**
15700
+ * Required. A field key that has been indexed for Search As You Type.
15701
+ */
15702
+ key?: string | null;
15703
+ /**
15704
+ * Optional. Weight for scores from this field. Defaults to 1.0 if not specified.
15705
+ */
15706
+ weight?: number | null;
15596
15707
  }
15597
15708
  /**
15598
15709
  * Session specification.
@@ -16469,7 +16580,7 @@ export declare namespace discoveryengine_v1alpha {
16469
16580
  */
16470
16581
  syncMode?: string | null;
16471
16582
  /**
16472
- * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
16583
+ * Optional. Immutable. User-facing, version-independent label for this connector. May be shared by multiple connectors under the same (project, location, collection, data_source); tag-based lookup returns the one with the greatest create_time. Optional at Create time. If the caller omits `tag`, the server auto-derives one from the collection_id (falling back to data_source, else a time-based `t-` sentinel). The auto-derived tag is subject to the same immutability guarantee as a caller-supplied one, so callers who care about the exact tag value should provide it explicitly rather than relying on the server default. Agent Designer resolves connectors via (data_source, tag) when set, falling back to the legacy resource-name lookup when unset, so connectors created before the tag-write launch continue to work without a backfill.
16473
16584
  */
16474
16585
  tag?: string | null;
16475
16586
  /**
@@ -17902,6 +18013,10 @@ export declare namespace discoveryengine_v1alpha {
17902
18013
  * Optional. Configuration for NotebookLM settings.
17903
18014
  */
17904
18015
  notebooklmConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigNotebooklmConfig;
18016
+ /**
18017
+ * Optional. Resource-level access control config for Gemini Enterprise users.
18018
+ */
18019
+ resourceAccessControlConfig?: Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig;
17905
18020
  }
17906
18021
  /**
17907
18022
  * Configuration for NotebookLM.
@@ -17955,6 +18070,15 @@ export declare namespace discoveryengine_v1alpha {
17955
18070
  */
17956
18071
  userPromptTemplate?: string | null;
17957
18072
  }
18073
+ /**
18074
+ * Controls resource-level access control for Gemini Enterprise users.
18075
+ */
18076
+ export interface Schema$GoogleCloudDiscoveryengineV1ProjectCustomerProvidedConfigResourceAccessControlConfig {
18077
+ /**
18078
+ * Optional. If `true`, the data stores and data connectors shown to Gemini Enterprise users are filtered to those the user has the required resource-level `.get` IAM permission on.
18079
+ */
18080
+ dataStoreAccessControlEnabled?: boolean | null;
18081
+ }
17958
18082
  /**
17959
18083
  * Metadata about the terms of service.
17960
18084
  */
@@ -18689,6 +18813,32 @@ export declare namespace discoveryengine_v1alpha {
18689
18813
  */
18690
18814
  type?: string | null;
18691
18815
  }
18816
+ /**
18817
+ * Account and role information.
18818
+ */
18819
+ export interface Schema$GoogleCloudNotebooklmV1alphaAccountAndRole {
18820
+ /**
18821
+ * Required. The email address associated with the account.
18822
+ */
18823
+ email?: string | null;
18824
+ /**
18825
+ * Required. The role in the notebook.
18826
+ */
18827
+ role?: string | null;
18828
+ }
18829
+ /**
18830
+ * Metadata about an agentspace source.
18831
+ */
18832
+ export interface Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata {
18833
+ /**
18834
+ * Output only. The full document name in Agentspace.
18835
+ */
18836
+ documentName?: string | null;
18837
+ /**
18838
+ * Output only. The title of the document.
18839
+ */
18840
+ documentTitle?: string | null;
18841
+ }
18692
18842
  /**
18693
18843
  * An audio overview of a notebook. This is a summary of the notebook in audio format.
18694
18844
  */
@@ -18735,6 +18885,51 @@ export declare namespace discoveryengine_v1alpha {
18735
18885
  */
18736
18886
  sourceIds?: Schema$GoogleCloudNotebooklmV1alphaSourceId[];
18737
18887
  }
18888
+ /**
18889
+ * Request for SourceService.BatchCreateSources method.
18890
+ */
18891
+ export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest {
18892
+ /**
18893
+ * Required. The UserContents to be uploaded.
18894
+ */
18895
+ userContents?: Schema$GoogleCloudNotebooklmV1alphaUserContent[];
18896
+ }
18897
+ /**
18898
+ * Response for SourceService.BatchCreateSources method.
18899
+ */
18900
+ export interface Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse {
18901
+ /**
18902
+ * The Sources.
18903
+ */
18904
+ sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
18905
+ }
18906
+ /**
18907
+ * Request for NotebookService.BatchDeleteNotebooks method.
18908
+ */
18909
+ export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest {
18910
+ /**
18911
+ * Required. Full resource names of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
18912
+ */
18913
+ names?: string[] | null;
18914
+ }
18915
+ /**
18916
+ * Request for BatchDeleteSourcesRequest method.
18917
+ */
18918
+ export interface Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest {
18919
+ /**
18920
+ * Required. Names of sources to be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
18921
+ */
18922
+ names?: string[] | null;
18923
+ }
18924
+ /**
18925
+ * Customer-managed encryption configuration for Notebooks.
18926
+ */
18927
+ export interface Schema$GoogleCloudNotebooklmV1alphaCmekConfig {
18928
+ /**
18929
+ * Required. KMS key resource name which will be used to encrypt resources `projects/{project\}/locations/{location\}/keyRings/{keyRing\}/cryptoKeys/{keyId\}`.
18930
+ */
18931
+ kmsKey?: string | null;
18932
+ }
18738
18933
  /**
18739
18934
  * Request for AudioOverviewService.CreateAudioOverview method.
18740
18935
  */
@@ -18753,6 +18948,308 @@ export declare namespace discoveryengine_v1alpha {
18753
18948
  */
18754
18949
  audioOverview?: Schema$GoogleCloudNotebooklmV1alphaAudioOverview;
18755
18950
  }
18951
+ /**
18952
+ * Failure reason containing details about why a source failed to ingest.
18953
+ */
18954
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReason {
18955
+ /**
18956
+ * An audio file transcription specific error.
18957
+ */
18958
+ audioTranscriptionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError;
18959
+ /**
18960
+ * Error if the user tries to add a source from a blocked domain.
18961
+ */
18962
+ domainBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked;
18963
+ /**
18964
+ * A google drive specific error.
18965
+ */
18966
+ googleDriveError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError;
18967
+ /**
18968
+ * Indicates an error occurred while ingesting the source.
18969
+ */
18970
+ ingestionError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError;
18971
+ /**
18972
+ * Indicates that the source MIME type is blocked.
18973
+ */
18974
+ mimeTypeBlocked?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked;
18975
+ /**
18976
+ * Indicates that the source is paywalled and cannot be ingested.
18977
+ */
18978
+ paywallError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError;
18979
+ /**
18980
+ * Indicates that the policy check failed.
18981
+ */
18982
+ policyCheckFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed;
18983
+ /**
18984
+ * Indicates that the source is empty.
18985
+ */
18986
+ sourceEmpty?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty;
18987
+ /**
18988
+ * Error if the user tries to update beyond their limits.
18989
+ */
18990
+ sourceLimitExceeded?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded;
18991
+ /**
18992
+ * Indicates source word count exceeded the user's limit.
18993
+ */
18994
+ sourceTooLong?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong;
18995
+ /**
18996
+ * Indicates that the source is unreachable.
18997
+ */
18998
+ sourceUnreachable?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable;
18999
+ /**
19000
+ * Indicates an unknown error occurred.
19001
+ */
19002
+ unknown?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown;
19003
+ /**
19004
+ * Indicates an error occurred while uploading the source.
19005
+ */
19006
+ uploadError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError;
19007
+ /**
19008
+ * A youtube specific error.
19009
+ */
19010
+ youtubeError?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError;
19011
+ }
19012
+ /**
19013
+ * An audio file transcription specific error.
19014
+ */
19015
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionError {
19016
+ /**
19017
+ * Could not detect language of the file (it may not be speech).
19018
+ */
19019
+ languageDetectionFailed?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed;
19020
+ /**
19021
+ * No audio was detected in the input file (it may have been a video).
19022
+ */
19023
+ noAudioDetected?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected;
19024
+ }
19025
+ /**
19026
+ * Could not detect language of the file (it may not be speech).
19027
+ */
19028
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorLanguageDetectionFailed {
19029
+ }
19030
+ /**
19031
+ * No audio was detected in the input file.
19032
+ */
19033
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonAudioTranscriptionErrorNoAudioDetected {
19034
+ }
19035
+ /**
19036
+ * Error to indicate that the source was removed because the domain was blocked.
19037
+ */
19038
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonDomainBlocked {
19039
+ }
19040
+ /**
19041
+ * A google drive specific error.
19042
+ */
19043
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveError {
19044
+ /**
19045
+ * The user was prevented from downloading the file.
19046
+ */
19047
+ downloadPrevented?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented;
19048
+ }
19049
+ /**
19050
+ * The user was prevented from downloading the file.
19051
+ */
19052
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonGoogleDriveErrorDownloadPrevented {
19053
+ }
19054
+ /**
19055
+ * Indicates an error occurred while ingesting the source.
19056
+ */
19057
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonIngestionError {
19058
+ }
19059
+ /**
19060
+ * Indicates that the source MIME type is blocked.
19061
+ */
19062
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonMimeTypeBlocked {
19063
+ }
19064
+ /**
19065
+ * Indicates that the source is paywalled and cannot be ingested.
19066
+ */
19067
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPaywallError {
19068
+ }
19069
+ /**
19070
+ * Indicates that the policy check failed.
19071
+ */
19072
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonPolicyCheckFailed {
19073
+ }
19074
+ /**
19075
+ * Indicates that the source is empty.
19076
+ */
19077
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceEmpty {
19078
+ }
19079
+ /**
19080
+ * Indicates that the user does not have space for this source.
19081
+ */
19082
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceLimitExceeded {
19083
+ }
19084
+ /**
19085
+ * Indicates source word count exceeded the user's limit.
19086
+ */
19087
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceTooLong {
19088
+ /**
19089
+ * The number of words in the source.
19090
+ */
19091
+ wordCount?: number | null;
19092
+ /**
19093
+ * The word count limit for the current user at the time of the upload.
19094
+ */
19095
+ wordLimit?: number | null;
19096
+ }
19097
+ /**
19098
+ * Indicates that the source is unreachable. This is primarily used for sources that are added via URL.
19099
+ */
19100
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonSourceUnreachable {
19101
+ /**
19102
+ * Describes why the source is unreachable.
19103
+ */
19104
+ errorDetails?: string | null;
19105
+ }
19106
+ /**
19107
+ * Indicates an unknown error occurred.
19108
+ */
19109
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUnknown {
19110
+ }
19111
+ /**
19112
+ * Indicates an error occurred while uploading the source.
19113
+ */
19114
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonUploadError {
19115
+ }
19116
+ /**
19117
+ * A youtube specific error.
19118
+ */
19119
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeError {
19120
+ /**
19121
+ * Error to indicate that the source was removed because the video was deleted.
19122
+ */
19123
+ videoDeleted?: Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted;
19124
+ }
19125
+ /**
19126
+ * Error to indicate that the source was removed because the video was deleted.
19127
+ */
19128
+ export interface Schema$GoogleCloudNotebooklmV1alphaFailureReasonYoutubeErrorVideoDeleted {
19129
+ }
19130
+ /**
19131
+ * Metadata about a google doc source.
19132
+ */
19133
+ export interface Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata {
19134
+ /**
19135
+ * Output only. The document id of the google doc.
19136
+ */
19137
+ documentId?: string | null;
19138
+ /**
19139
+ * Output only. Revision id for the doc.
19140
+ */
19141
+ revisionId?: string | null;
19142
+ }
19143
+ /**
19144
+ * Response for NotebookService.ListRecentlyViewedNotebooks method.
19145
+ */
19146
+ export interface Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse {
19147
+ /**
19148
+ * The page token, provide this to retrieve the subsequent page.
19149
+ */
19150
+ nextPageToken?: string | null;
19151
+ /**
19152
+ * The list of recently viewed notebooks.
19153
+ */
19154
+ notebooks?: Schema$GoogleCloudNotebooklmV1alphaNotebook[];
19155
+ }
19156
+ /**
19157
+ * Notebook is a resource where users can store their content (as sources) and interacts with the content.
19158
+ */
19159
+ export interface Schema$GoogleCloudNotebooklmV1alphaNotebook {
19160
+ /**
19161
+ * Output only. CMEK-related information for the Notebook.
19162
+ */
19163
+ cmekConfig?: Schema$GoogleCloudNotebooklmV1alphaCmekConfig;
19164
+ /**
19165
+ * Output only. The emoji of the notebook.
19166
+ */
19167
+ emoji?: string | null;
19168
+ /**
19169
+ * Output only. The metadata of the notebook.
19170
+ */
19171
+ metadata?: Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata;
19172
+ /**
19173
+ * Identifier. The identifier of the notebook. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`. This field must be a UTF-8 encoded string.
19174
+ */
19175
+ name?: string | null;
19176
+ /**
19177
+ * Output only. Notebook id, which is the last segment of the notebook's resource name.
19178
+ */
19179
+ notebookId?: string | null;
19180
+ /**
19181
+ * Output only. List of sources in the notebook. This is an output only field.
19182
+ */
19183
+ sources?: Schema$GoogleCloudNotebooklmV1alphaSource[];
19184
+ /**
19185
+ * Optional. The title of the notebook.
19186
+ */
19187
+ title?: string | null;
19188
+ }
19189
+ /**
19190
+ * Metadata for a notebook.
19191
+ */
19192
+ export interface Schema$GoogleCloudNotebooklmV1alphaNotebookMetadata {
19193
+ /**
19194
+ * The time at which this project was created.
19195
+ */
19196
+ createTime?: string | null;
19197
+ /**
19198
+ * True if the project is shareable.
19199
+ */
19200
+ isShareable?: boolean | null;
19201
+ /**
19202
+ * True if this project is currently shared with other people, false otherwise.
19203
+ */
19204
+ isShared?: boolean | null;
19205
+ /**
19206
+ * A timestamp indicating the time that the current in session user has last viewed the project.
19207
+ */
19208
+ lastViewed?: string | null;
19209
+ }
19210
+ /**
19211
+ * Request for NotebookService.ShareNotebook method.
19212
+ */
19213
+ export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest {
19214
+ /**
19215
+ * Required. The list of accounts and roles to share the notebook with.
19216
+ */
19217
+ accountAndRoles?: Schema$GoogleCloudNotebooklmV1alphaAccountAndRole[];
19218
+ /**
19219
+ * Required. Whether to notify the shared users via email.
19220
+ */
19221
+ notifyViaEmail?: boolean | null;
19222
+ }
19223
+ /**
19224
+ * Response for NotebookService.ShareNotebook method.
19225
+ */
19226
+ export interface Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse {
19227
+ }
19228
+ /**
19229
+ * Source represents a single source of content.
19230
+ */
19231
+ export interface Schema$GoogleCloudNotebooklmV1alphaSource {
19232
+ /**
19233
+ * Output only. Metadata about the source.
19234
+ */
19235
+ metadata?: Schema$GoogleCloudNotebooklmV1alphaSourceMetadata;
19236
+ /**
19237
+ * Identifier. The full resource name of the source. Format: `projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source_id\}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters.
19238
+ */
19239
+ name?: string | null;
19240
+ /**
19241
+ * Output only. Status of the source, and any failure reasons.
19242
+ */
19243
+ settings?: Schema$GoogleCloudNotebooklmV1alphaSourceSettings;
19244
+ /**
19245
+ * Optional. Output only. Source id, which is the last segment of the source's resource name.
19246
+ */
19247
+ sourceId?: Schema$GoogleCloudNotebooklmV1alphaSourceId;
19248
+ /**
19249
+ * Optional. Title of the source.
19250
+ */
19251
+ title?: string | null;
19252
+ }
18756
19253
  /**
18757
19254
  * SourceId is the last segment of the source's resource name.
18758
19255
  */
@@ -18762,6 +19259,155 @@ export declare namespace discoveryengine_v1alpha {
18762
19259
  */
18763
19260
  id?: string | null;
18764
19261
  }
19262
+ /**
19263
+ * Represents the metadata of a source and some additional information.
19264
+ */
19265
+ export interface Schema$GoogleCloudNotebooklmV1alphaSourceMetadata {
19266
+ /**
19267
+ * Metadata for an agentspace source.
19268
+ */
19269
+ agentspaceMetadata?: Schema$GoogleCloudNotebooklmV1alphaAgentspaceMetadata;
19270
+ /**
19271
+ * Metadata for a google doc source.
19272
+ */
19273
+ googleDocsMetadata?: Schema$GoogleCloudNotebooklmV1alphaGoogleDocsSourceMetadata;
19274
+ /**
19275
+ * The timestamp the source was added.
19276
+ */
19277
+ sourceAddedTimestamp?: string | null;
19278
+ /**
19279
+ * The number of tokens in the source.
19280
+ */
19281
+ tokenCount?: number | null;
19282
+ /**
19283
+ * The word count of the source.
19284
+ */
19285
+ wordCount?: number | null;
19286
+ /**
19287
+ * Metadata for a youtube video source.
19288
+ */
19289
+ youtubeMetadata?: Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata;
19290
+ }
19291
+ /**
19292
+ * Allows extension of Source Settings in the BatchCreateSources (Formerly AddSource request).
19293
+ */
19294
+ export interface Schema$GoogleCloudNotebooklmV1alphaSourceSettings {
19295
+ /**
19296
+ * Failure reason containing details about why a source failed to ingest.
19297
+ */
19298
+ failureReason?: Schema$GoogleCloudNotebooklmV1alphaFailureReason;
19299
+ /**
19300
+ * Status of the source.
19301
+ */
19302
+ status?: string | null;
19303
+ }
19304
+ /**
19305
+ * The "Content" messages refer to data the user wants to upload.
19306
+ */
19307
+ export interface Schema$GoogleCloudNotebooklmV1alphaUserContent {
19308
+ /**
19309
+ * Agentspace content uploaded as source.
19310
+ */
19311
+ agentspaceContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent;
19312
+ /**
19313
+ * The content from Google Drive.
19314
+ */
19315
+ googleDriveContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent;
19316
+ /**
19317
+ * The text content uploaded as source.
19318
+ */
19319
+ textContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent;
19320
+ /**
19321
+ * The video content uploaded as source.
19322
+ */
19323
+ videoContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent;
19324
+ /**
19325
+ * The web content uploaded as source.
19326
+ */
19327
+ webContent?: Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent;
19328
+ }
19329
+ /**
19330
+ * Agentspace content uploaded as source.
19331
+ */
19332
+ export interface Schema$GoogleCloudNotebooklmV1alphaUserContentAgentspaceContent {
19333
+ /**
19334
+ * Optional. The full resource name of the Agentspace document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/dataStores/{data_store\}/branches/{branch\}/documents/{document_id\}`.
19335
+ */
19336
+ documentName?: string | null;
19337
+ /**
19338
+ * Optional. Engine to verify the permission of the document. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}`.
19339
+ */
19340
+ engineName?: string | null;
19341
+ /**
19342
+ * Optional. Resource name of the idea forge instance. Format: `projects/{project\}/locations/{location\}/collections/{collection\}/engines/{engine\}/sessions/{session\}/ideaForgeInstances/{instance\}`
19343
+ */
19344
+ ideaforgeIdeaName?: string | null;
19345
+ }
19346
+ /**
19347
+ * The content from Google Drive.
19348
+ */
19349
+ export interface Schema$GoogleCloudNotebooklmV1alphaUserContentGoogleDriveContent {
19350
+ /**
19351
+ * The document id of the selected document.
19352
+ */
19353
+ documentId?: string | null;
19354
+ /**
19355
+ * The mime type of the selected document. This can be used to differentiate type of content selected in the drive picker. Use application/vnd.google-apps.document for Google Docs or application/vnd.google-apps.presentation for Google Slides.
19356
+ */
19357
+ mimeType?: string | null;
19358
+ /**
19359
+ * The name to be displayed for the source.
19360
+ */
19361
+ sourceName?: string | null;
19362
+ }
19363
+ /**
19364
+ * The text content uploaded as source.
19365
+ */
19366
+ export interface Schema$GoogleCloudNotebooklmV1alphaUserContentTextContent {
19367
+ /**
19368
+ * The name to be displayed for the source.
19369
+ */
19370
+ content?: string | null;
19371
+ /**
19372
+ * The display name of the text source.
19373
+ */
19374
+ sourceName?: string | null;
19375
+ }
19376
+ /**
19377
+ * Video content uploaded as source.
19378
+ */
19379
+ export interface Schema$GoogleCloudNotebooklmV1alphaUserContentVideoContent {
19380
+ /**
19381
+ * The youtube url of the video content.
19382
+ */
19383
+ youtubeUrl?: string | null;
19384
+ }
19385
+ /**
19386
+ * The web content uploaded as source.
19387
+ */
19388
+ export interface Schema$GoogleCloudNotebooklmV1alphaUserContentWebContent {
19389
+ /**
19390
+ * The name to be displayed for the source.
19391
+ */
19392
+ sourceName?: string | null;
19393
+ /**
19394
+ * If URL is supplied, will fetch the webpage in the backend.
19395
+ */
19396
+ url?: string | null;
19397
+ }
19398
+ /**
19399
+ * Metadata about a youtube video source.
19400
+ */
19401
+ export interface Schema$GoogleCloudNotebooklmV1alphaYoutubeMetadata {
19402
+ /**
19403
+ * Output only. The channel name of the youtube video.
19404
+ */
19405
+ channelName?: string | null;
19406
+ /**
19407
+ * Output only. The id of the youtube video.
19408
+ */
19409
+ videoId?: string | null;
19410
+ }
18765
19411
  /**
18766
19412
  * Associates `members`, or principals, with a `role`.
18767
19413
  */
@@ -33341,6 +33987,7 @@ export declare namespace discoveryengine_v1alpha {
33341
33987
  context: APIRequestContext;
33342
33988
  analytics: Resource$Projects$Locations$Collections$Engines$Analytics;
33343
33989
  assistants: Resource$Projects$Locations$Collections$Engines$Assistants;
33990
+ collaborativeProjects: Resource$Projects$Locations$Collections$Engines$Collaborativeprojects;
33344
33991
  completionConfig: Resource$Projects$Locations$Collections$Engines$Completionconfig;
33345
33992
  controls: Resource$Projects$Locations$Collections$Engines$Controls;
33346
33993
  conversations: Resource$Projects$Locations$Collections$Engines$Conversations;
@@ -34659,7 +35306,8 @@ export declare namespace discoveryengine_v1alpha {
34659
35306
  * requestBody: {
34660
35307
  * // request body parameters
34661
35308
  * // {
34662
- * // "outputConfig": {}
35309
+ * // "outputConfig": {},
35310
+ * // "startDate": {}
34663
35311
  * // }
34664
35312
  * },
34665
35313
  * },
@@ -36618,6 +37266,97 @@ export declare namespace discoveryengine_v1alpha {
36618
37266
  */
36619
37267
  requestBody?: Schema$GoogleCloudDiscoveryengineV1alphaCannedQuery;
36620
37268
  }
37269
+ export class Resource$Projects$Locations$Collections$Engines$Collaborativeprojects {
37270
+ context: APIRequestContext;
37271
+ knowledgeSpaces: Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces;
37272
+ constructor(context: APIRequestContext);
37273
+ }
37274
+ export class Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces {
37275
+ context: APIRequestContext;
37276
+ operations: Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations;
37277
+ constructor(context: APIRequestContext);
37278
+ }
37279
+ export class Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations {
37280
+ context: APIRequestContext;
37281
+ constructor(context: APIRequestContext);
37282
+ /**
37283
+ * Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
37284
+ * @example
37285
+ * ```js
37286
+ * // Before running the sample:
37287
+ * // - Enable the API at:
37288
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
37289
+ * // - Login into gcloud by running:
37290
+ * // ```sh
37291
+ * // $ gcloud auth application-default login
37292
+ * // ```
37293
+ * // - Install the npm module by running:
37294
+ * // ```sh
37295
+ * // $ npm install googleapis
37296
+ * // ```
37297
+ *
37298
+ * const {google} = require('googleapis');
37299
+ * const discoveryengine = google.discoveryengine('v1alpha');
37300
+ *
37301
+ * async function main() {
37302
+ * const auth = new google.auth.GoogleAuth({
37303
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
37304
+ * scopes: [
37305
+ * 'https://www.googleapis.com/auth/cloud-platform',
37306
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
37307
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
37308
+ * ],
37309
+ * });
37310
+ *
37311
+ * // Acquire an auth client, and bind it to all future calls
37312
+ * const authClient = await auth.getClient();
37313
+ * google.options({auth: authClient});
37314
+ *
37315
+ * // Do the magic
37316
+ * const res =
37317
+ * await discoveryengine.projects.locations.collections.engines.collaborativeProjects.knowledgeSpaces.operations.get(
37318
+ * {
37319
+ * // The name of the operation resource.
37320
+ * name: 'projects/my-project/locations/my-location/collections/my-collection/engines/my-engine/collaborativeProjects/my-collaborativeProject/knowledgeSpaces/my-knowledgeSpace/operations/my-operation',
37321
+ * },
37322
+ * );
37323
+ * console.log(res.data);
37324
+ *
37325
+ * // Example response
37326
+ * // {
37327
+ * // "done": false,
37328
+ * // "error": {},
37329
+ * // "metadata": {},
37330
+ * // "name": "my_name",
37331
+ * // "response": {}
37332
+ * // }
37333
+ * }
37334
+ *
37335
+ * main().catch(e => {
37336
+ * console.error(e);
37337
+ * throw e;
37338
+ * });
37339
+ *
37340
+ * ```
37341
+ *
37342
+ * @param params - Parameters for request
37343
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
37344
+ * @param callback - Optional callback that handles the response.
37345
+ * @returns A promise if used with async/await, or void if used with a callback.
37346
+ */
37347
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
37348
+ get(params?: Params$Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleLongrunningOperation>>;
37349
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
37350
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleLongrunningOperation>, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
37351
+ get(params: Params$Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations$Get, callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
37352
+ get(callback: BodyResponseCallback<Schema$GoogleLongrunningOperation>): void;
37353
+ }
37354
+ export interface Params$Resource$Projects$Locations$Collections$Engines$Collaborativeprojects$Knowledgespaces$Operations$Get extends StandardParameters {
37355
+ /**
37356
+ * The name of the operation resource.
37357
+ */
37358
+ name?: string;
37359
+ }
36621
37360
  export class Resource$Projects$Locations$Collections$Engines$Completionconfig {
36622
37361
  context: APIRequestContext;
36623
37362
  constructor(context: APIRequestContext);
@@ -51557,6 +52296,7 @@ export declare namespace discoveryengine_v1alpha {
51557
52296
  * // {
51558
52297
  * // "alertPolicyResourceConfig": {},
51559
52298
  * // "autoRenew": false,
52299
+ * // "billingAccountLicenseConfig": "my_billingAccountLicenseConfig",
51560
52300
  * // "earlyTerminated": false,
51561
52301
  * // "earlyTerminationDate": {},
51562
52302
  * // "endDate": {},
@@ -51578,6 +52318,7 @@ export declare namespace discoveryengine_v1alpha {
51578
52318
  * // {
51579
52319
  * // "alertPolicyResourceConfig": {},
51580
52320
  * // "autoRenew": false,
52321
+ * // "billingAccountLicenseConfig": "my_billingAccountLicenseConfig",
51581
52322
  * // "earlyTerminated": false,
51582
52323
  * // "earlyTerminationDate": {},
51583
52324
  * // "endDate": {},
@@ -51655,6 +52396,7 @@ export declare namespace discoveryengine_v1alpha {
51655
52396
  * // {
51656
52397
  * // "alertPolicyResourceConfig": {},
51657
52398
  * // "autoRenew": false,
52399
+ * // "billingAccountLicenseConfig": "my_billingAccountLicenseConfig",
51658
52400
  * // "earlyTerminated": false,
51659
52401
  * // "earlyTerminationDate": {},
51660
52402
  * // "endDate": {},
@@ -51805,6 +52547,7 @@ export declare namespace discoveryengine_v1alpha {
51805
52547
  * // {
51806
52548
  * // "alertPolicyResourceConfig": {},
51807
52549
  * // "autoRenew": false,
52550
+ * // "billingAccountLicenseConfig": "my_billingAccountLicenseConfig",
51808
52551
  * // "earlyTerminated": false,
51809
52552
  * // "earlyTerminationDate": {},
51810
52553
  * // "endDate": {},
@@ -51826,6 +52569,7 @@ export declare namespace discoveryengine_v1alpha {
51826
52569
  * // {
51827
52570
  * // "alertPolicyResourceConfig": {},
51828
52571
  * // "autoRenew": false,
52572
+ * // "billingAccountLicenseConfig": "my_billingAccountLicenseConfig",
51829
52573
  * // "earlyTerminated": false,
51830
52574
  * // "earlyTerminationDate": {},
51831
52575
  * // "endDate": {},
@@ -51915,13 +52659,10 @@ export declare namespace discoveryengine_v1alpha {
51915
52659
  export class Resource$Projects$Locations$Notebooks {
51916
52660
  context: APIRequestContext;
51917
52661
  audioOverviews: Resource$Projects$Locations$Notebooks$Audiooverviews;
51918
- constructor(context: APIRequestContext);
51919
- }
51920
- export class Resource$Projects$Locations$Notebooks$Audiooverviews {
51921
- context: APIRequestContext;
52662
+ sources: Resource$Projects$Locations$Notebooks$Sources;
51922
52663
  constructor(context: APIRequestContext);
51923
52664
  /**
51924
- * Generates a new audio overview.
52665
+ * Batch deletes Notebooks.
51925
52666
  * @example
51926
52667
  * ```js
51927
52668
  * // Before running the sample:
@@ -51954,24 +52695,245 @@ export declare namespace discoveryengine_v1alpha {
51954
52695
  * google.options({auth: authClient});
51955
52696
  *
51956
52697
  * // Do the magic
51957
- * const res =
51958
- * await discoveryengine.projects.locations.notebooks.audioOverviews.create({
51959
- * // Required. The parent resource where this notebook will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
51960
- * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
52698
+ * const res = await discoveryengine.projects.locations.notebooks.batchDelete({
52699
+ * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
52700
+ * parent: 'projects/my-project/locations/my-location',
51961
52701
  *
51962
- * // Request body metadata
51963
- * requestBody: {
51964
- * // request body parameters
51965
- * // {
51966
- * // "generationOptions": {}
51967
- * // }
51968
- * },
52702
+ * // Request body metadata
52703
+ * requestBody: {
52704
+ * // request body parameters
52705
+ * // {
52706
+ * // "names": []
52707
+ * // }
52708
+ * },
52709
+ * });
52710
+ * console.log(res.data);
52711
+ *
52712
+ * // Example response
52713
+ * // {}
52714
+ * }
52715
+ *
52716
+ * main().catch(e => {
52717
+ * console.error(e);
52718
+ * throw e;
52719
+ * });
52720
+ *
52721
+ * ```
52722
+ *
52723
+ * @param params - Parameters for request
52724
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
52725
+ * @param callback - Optional callback that handles the response.
52726
+ * @returns A promise if used with async/await, or void if used with a callback.
52727
+ */
52728
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52729
+ batchDelete(params?: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
52730
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52731
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
52732
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Batchdelete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
52733
+ batchDelete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
52734
+ /**
52735
+ * Creates a notebook.
52736
+ * @example
52737
+ * ```js
52738
+ * // Before running the sample:
52739
+ * // - Enable the API at:
52740
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52741
+ * // - Login into gcloud by running:
52742
+ * // ```sh
52743
+ * // $ gcloud auth application-default login
52744
+ * // ```
52745
+ * // - Install the npm module by running:
52746
+ * // ```sh
52747
+ * // $ npm install googleapis
52748
+ * // ```
52749
+ *
52750
+ * const {google} = require('googleapis');
52751
+ * const discoveryengine = google.discoveryengine('v1alpha');
52752
+ *
52753
+ * async function main() {
52754
+ * const auth = new google.auth.GoogleAuth({
52755
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
52756
+ * scopes: [
52757
+ * 'https://www.googleapis.com/auth/cloud-platform',
52758
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52759
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52760
+ * ],
52761
+ * });
52762
+ *
52763
+ * // Acquire an auth client, and bind it to all future calls
52764
+ * const authClient = await auth.getClient();
52765
+ * google.options({auth: authClient});
52766
+ *
52767
+ * // Do the magic
52768
+ * const res = await discoveryengine.projects.locations.notebooks.create({
52769
+ * // Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
52770
+ * parent: 'projects/my-project/locations/my-location',
52771
+ *
52772
+ * // Request body metadata
52773
+ * requestBody: {
52774
+ * // request body parameters
52775
+ * // {
52776
+ * // "cmekConfig": {},
52777
+ * // "emoji": "my_emoji",
52778
+ * // "metadata": {},
52779
+ * // "name": "my_name",
52780
+ * // "notebookId": "my_notebookId",
52781
+ * // "sources": [],
52782
+ * // "title": "my_title"
52783
+ * // }
52784
+ * },
52785
+ * });
52786
+ * console.log(res.data);
52787
+ *
52788
+ * // Example response
52789
+ * // {
52790
+ * // "cmekConfig": {},
52791
+ * // "emoji": "my_emoji",
52792
+ * // "metadata": {},
52793
+ * // "name": "my_name",
52794
+ * // "notebookId": "my_notebookId",
52795
+ * // "sources": [],
52796
+ * // "title": "my_title"
52797
+ * // }
52798
+ * }
52799
+ *
52800
+ * main().catch(e => {
52801
+ * console.error(e);
52802
+ * throw e;
52803
+ * });
52804
+ *
52805
+ * ```
52806
+ *
52807
+ * @param params - Parameters for request
52808
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
52809
+ * @param callback - Optional callback that handles the response.
52810
+ * @returns A promise if used with async/await, or void if used with a callback.
52811
+ */
52812
+ create(params: Params$Resource$Projects$Locations$Notebooks$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52813
+ create(params?: Params$Resource$Projects$Locations$Notebooks$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>>;
52814
+ create(params: Params$Resource$Projects$Locations$Notebooks$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52815
+ create(params: Params$Resource$Projects$Locations$Notebooks$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
52816
+ create(params: Params$Resource$Projects$Locations$Notebooks$Create, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
52817
+ create(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
52818
+ /**
52819
+ * Gets a notebook.
52820
+ * @example
52821
+ * ```js
52822
+ * // Before running the sample:
52823
+ * // - Enable the API at:
52824
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52825
+ * // - Login into gcloud by running:
52826
+ * // ```sh
52827
+ * // $ gcloud auth application-default login
52828
+ * // ```
52829
+ * // - Install the npm module by running:
52830
+ * // ```sh
52831
+ * // $ npm install googleapis
52832
+ * // ```
52833
+ *
52834
+ * const {google} = require('googleapis');
52835
+ * const discoveryengine = google.discoveryengine('v1alpha');
52836
+ *
52837
+ * async function main() {
52838
+ * const auth = new google.auth.GoogleAuth({
52839
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
52840
+ * scopes: [
52841
+ * 'https://www.googleapis.com/auth/cloud-platform',
52842
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52843
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52844
+ * ],
52845
+ * });
52846
+ *
52847
+ * // Acquire an auth client, and bind it to all future calls
52848
+ * const authClient = await auth.getClient();
52849
+ * google.options({auth: authClient});
52850
+ *
52851
+ * // Do the magic
52852
+ * const res = await discoveryengine.projects.locations.notebooks.get({
52853
+ * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
52854
+ * name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
52855
+ * });
52856
+ * console.log(res.data);
52857
+ *
52858
+ * // Example response
52859
+ * // {
52860
+ * // "cmekConfig": {},
52861
+ * // "emoji": "my_emoji",
52862
+ * // "metadata": {},
52863
+ * // "name": "my_name",
52864
+ * // "notebookId": "my_notebookId",
52865
+ * // "sources": [],
52866
+ * // "title": "my_title"
52867
+ * // }
52868
+ * }
52869
+ *
52870
+ * main().catch(e => {
52871
+ * console.error(e);
52872
+ * throw e;
52873
+ * });
52874
+ *
52875
+ * ```
52876
+ *
52877
+ * @param params - Parameters for request
52878
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
52879
+ * @param callback - Optional callback that handles the response.
52880
+ * @returns A promise if used with async/await, or void if used with a callback.
52881
+ */
52882
+ get(params: Params$Resource$Projects$Locations$Notebooks$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52883
+ get(params?: Params$Resource$Projects$Locations$Notebooks$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaNotebook>>;
52884
+ get(params: Params$Resource$Projects$Locations$Notebooks$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52885
+ get(params: Params$Resource$Projects$Locations$Notebooks$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
52886
+ get(params: Params$Resource$Projects$Locations$Notebooks$Get, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
52887
+ get(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaNotebook>): void;
52888
+ /**
52889
+ * Lists the notebooks ordered by last view time.
52890
+ * @example
52891
+ * ```js
52892
+ * // Before running the sample:
52893
+ * // - Enable the API at:
52894
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52895
+ * // - Login into gcloud by running:
52896
+ * // ```sh
52897
+ * // $ gcloud auth application-default login
52898
+ * // ```
52899
+ * // - Install the npm module by running:
52900
+ * // ```sh
52901
+ * // $ npm install googleapis
52902
+ * // ```
52903
+ *
52904
+ * const {google} = require('googleapis');
52905
+ * const discoveryengine = google.discoveryengine('v1alpha');
52906
+ *
52907
+ * async function main() {
52908
+ * const auth = new google.auth.GoogleAuth({
52909
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
52910
+ * scopes: [
52911
+ * 'https://www.googleapis.com/auth/cloud-platform',
52912
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52913
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52914
+ * ],
52915
+ * });
52916
+ *
52917
+ * // Acquire an auth client, and bind it to all future calls
52918
+ * const authClient = await auth.getClient();
52919
+ * google.options({auth: authClient});
52920
+ *
52921
+ * // Do the magic
52922
+ * const res =
52923
+ * await discoveryengine.projects.locations.notebooks.listRecentlyViewed({
52924
+ * // Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value.
52925
+ * pageSize: 'placeholder-value',
52926
+ * // Optional. The page token, provide this to retrieve the subsequent page.
52927
+ * pageToken: 'placeholder-value',
52928
+ * // Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
52929
+ * parent: 'projects/my-project/locations/my-location',
51969
52930
  * });
51970
52931
  * console.log(res.data);
51971
52932
  *
51972
52933
  * // Example response
51973
52934
  * // {
51974
- * // "audioOverview": {}
52935
+ * // "nextPageToken": "my_nextPageToken",
52936
+ * // "notebooks": []
51975
52937
  * // }
51976
52938
  * }
51977
52939
  *
@@ -51987,14 +52949,212 @@ export declare namespace discoveryengine_v1alpha {
51987
52949
  * @param callback - Optional callback that handles the response.
51988
52950
  * @returns A promise if used with async/await, or void if used with a callback.
51989
52951
  */
51990
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
51991
- create(params?: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>>;
51992
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
51993
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
51994
- create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
51995
- create(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
52952
+ listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
52953
+ listRecentlyViewed(params?: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>>;
52954
+ listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
52955
+ listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>): void;
52956
+ listRecentlyViewed(params: Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>): void;
52957
+ listRecentlyViewed(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse>): void;
51996
52958
  /**
51997
- * Deletes an audio overview.
52959
+ * Shares a notebook to other accounts.
52960
+ * @example
52961
+ * ```js
52962
+ * // Before running the sample:
52963
+ * // - Enable the API at:
52964
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
52965
+ * // - Login into gcloud by running:
52966
+ * // ```sh
52967
+ * // $ gcloud auth application-default login
52968
+ * // ```
52969
+ * // - Install the npm module by running:
52970
+ * // ```sh
52971
+ * // $ npm install googleapis
52972
+ * // ```
52973
+ *
52974
+ * const {google} = require('googleapis');
52975
+ * const discoveryengine = google.discoveryengine('v1alpha');
52976
+ *
52977
+ * async function main() {
52978
+ * const auth = new google.auth.GoogleAuth({
52979
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
52980
+ * scopes: [
52981
+ * 'https://www.googleapis.com/auth/cloud-platform',
52982
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
52983
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
52984
+ * ],
52985
+ * });
52986
+ *
52987
+ * // Acquire an auth client, and bind it to all future calls
52988
+ * const authClient = await auth.getClient();
52989
+ * google.options({auth: authClient});
52990
+ *
52991
+ * // Do the magic
52992
+ * const res = await discoveryengine.projects.locations.notebooks.share({
52993
+ * // Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
52994
+ * name: 'projects/my-project/locations/my-location/notebooks/my-notebook',
52995
+ *
52996
+ * // Request body metadata
52997
+ * requestBody: {
52998
+ * // request body parameters
52999
+ * // {
53000
+ * // "accountAndRoles": [],
53001
+ * // "notifyViaEmail": false
53002
+ * // }
53003
+ * },
53004
+ * });
53005
+ * console.log(res.data);
53006
+ *
53007
+ * // Example response
53008
+ * // {}
53009
+ * }
53010
+ *
53011
+ * main().catch(e => {
53012
+ * console.error(e);
53013
+ * throw e;
53014
+ * });
53015
+ *
53016
+ * ```
53017
+ *
53018
+ * @param params - Parameters for request
53019
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
53020
+ * @param callback - Optional callback that handles the response.
53021
+ * @returns A promise if used with async/await, or void if used with a callback.
53022
+ */
53023
+ share(params: Params$Resource$Projects$Locations$Notebooks$Share, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
53024
+ share(params?: Params$Resource$Projects$Locations$Notebooks$Share, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>>;
53025
+ share(params: Params$Resource$Projects$Locations$Notebooks$Share, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
53026
+ share(params: Params$Resource$Projects$Locations$Notebooks$Share, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>): void;
53027
+ share(params: Params$Resource$Projects$Locations$Notebooks$Share, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>): void;
53028
+ share(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaShareNotebookResponse>): void;
53029
+ }
53030
+ export interface Params$Resource$Projects$Locations$Notebooks$Batchdelete extends StandardParameters {
53031
+ /**
53032
+ * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
53033
+ */
53034
+ parent?: string;
53035
+ /**
53036
+ * Request body metadata
53037
+ */
53038
+ requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteNotebooksRequest;
53039
+ }
53040
+ export interface Params$Resource$Projects$Locations$Notebooks$Create extends StandardParameters {
53041
+ /**
53042
+ * Required. The parent resource name, such as `projects/{project\}/locations/{location\}`.
53043
+ */
53044
+ parent?: string;
53045
+ /**
53046
+ * Request body metadata
53047
+ */
53048
+ requestBody?: Schema$GoogleCloudNotebooklmV1alphaNotebook;
53049
+ }
53050
+ export interface Params$Resource$Projects$Locations$Notebooks$Get extends StandardParameters {
53051
+ /**
53052
+ * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
53053
+ */
53054
+ name?: string;
53055
+ }
53056
+ export interface Params$Resource$Projects$Locations$Notebooks$Listrecentlyviewed extends StandardParameters {
53057
+ /**
53058
+ * Optional. Maximum number of Notebooks to return. If unspecified, defaults to "500". The maximum allowed value is "500". If this field is negative, will use the default value.
53059
+ */
53060
+ pageSize?: number;
53061
+ /**
53062
+ * Optional. The page token, provide this to retrieve the subsequent page.
53063
+ */
53064
+ pageToken?: string;
53065
+ /**
53066
+ * Required. The parent branch resource name, such as `projects/{project\}/locations/{location\}`.
53067
+ */
53068
+ parent?: string;
53069
+ }
53070
+ export interface Params$Resource$Projects$Locations$Notebooks$Share extends StandardParameters {
53071
+ /**
53072
+ * Required. Full resource name of Notebook, such as `projects/{project\}/locations/{location\}/notebooks/{notebook_id\}`.
53073
+ */
53074
+ name?: string;
53075
+ /**
53076
+ * Request body metadata
53077
+ */
53078
+ requestBody?: Schema$GoogleCloudNotebooklmV1alphaShareNotebookRequest;
53079
+ }
53080
+ export class Resource$Projects$Locations$Notebooks$Audiooverviews {
53081
+ context: APIRequestContext;
53082
+ constructor(context: APIRequestContext);
53083
+ /**
53084
+ * Generates a new audio overview.
53085
+ * @example
53086
+ * ```js
53087
+ * // Before running the sample:
53088
+ * // - Enable the API at:
53089
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
53090
+ * // - Login into gcloud by running:
53091
+ * // ```sh
53092
+ * // $ gcloud auth application-default login
53093
+ * // ```
53094
+ * // - Install the npm module by running:
53095
+ * // ```sh
53096
+ * // $ npm install googleapis
53097
+ * // ```
53098
+ *
53099
+ * const {google} = require('googleapis');
53100
+ * const discoveryengine = google.discoveryengine('v1alpha');
53101
+ *
53102
+ * async function main() {
53103
+ * const auth = new google.auth.GoogleAuth({
53104
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
53105
+ * scopes: [
53106
+ * 'https://www.googleapis.com/auth/cloud-platform',
53107
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
53108
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
53109
+ * ],
53110
+ * });
53111
+ *
53112
+ * // Acquire an auth client, and bind it to all future calls
53113
+ * const authClient = await auth.getClient();
53114
+ * google.options({auth: authClient});
53115
+ *
53116
+ * // Do the magic
53117
+ * const res =
53118
+ * await discoveryengine.projects.locations.notebooks.audioOverviews.create({
53119
+ * // Required. The parent resource where this notebook will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
53120
+ * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
53121
+ *
53122
+ * // Request body metadata
53123
+ * requestBody: {
53124
+ * // request body parameters
53125
+ * // {
53126
+ * // "generationOptions": {}
53127
+ * // }
53128
+ * },
53129
+ * });
53130
+ * console.log(res.data);
53131
+ *
53132
+ * // Example response
53133
+ * // {
53134
+ * // "audioOverview": {}
53135
+ * // }
53136
+ * }
53137
+ *
53138
+ * main().catch(e => {
53139
+ * console.error(e);
53140
+ * throw e;
53141
+ * });
53142
+ *
53143
+ * ```
53144
+ *
53145
+ * @param params - Parameters for request
53146
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
53147
+ * @param callback - Optional callback that handles the response.
53148
+ * @returns A promise if used with async/await, or void if used with a callback.
53149
+ */
53150
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
53151
+ create(params?: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>>;
53152
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
53153
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
53154
+ create(params: Params$Resource$Projects$Locations$Notebooks$Audiooverviews$Create, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
53155
+ create(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaCreateAudioOverviewResponse>): void;
53156
+ /**
53157
+ * Deletes an audio overview.
51998
53158
  * @example
51999
53159
  * ```js
52000
53160
  * // Before running the sample:
@@ -52073,6 +53233,249 @@ export declare namespace discoveryengine_v1alpha {
52073
53233
  */
52074
53234
  name?: string;
52075
53235
  }
53236
+ export class Resource$Projects$Locations$Notebooks$Sources {
53237
+ context: APIRequestContext;
53238
+ constructor(context: APIRequestContext);
53239
+ /**
53240
+ * Creates a list of Sources.
53241
+ * @example
53242
+ * ```js
53243
+ * // Before running the sample:
53244
+ * // - Enable the API at:
53245
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
53246
+ * // - Login into gcloud by running:
53247
+ * // ```sh
53248
+ * // $ gcloud auth application-default login
53249
+ * // ```
53250
+ * // - Install the npm module by running:
53251
+ * // ```sh
53252
+ * // $ npm install googleapis
53253
+ * // ```
53254
+ *
53255
+ * const {google} = require('googleapis');
53256
+ * const discoveryengine = google.discoveryengine('v1alpha');
53257
+ *
53258
+ * async function main() {
53259
+ * const auth = new google.auth.GoogleAuth({
53260
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
53261
+ * scopes: [
53262
+ * 'https://www.googleapis.com/auth/cloud-platform',
53263
+ * 'https://www.googleapis.com/auth/discoveryengine.assist.readwrite',
53264
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
53265
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
53266
+ * ],
53267
+ * });
53268
+ *
53269
+ * // Acquire an auth client, and bind it to all future calls
53270
+ * const authClient = await auth.getClient();
53271
+ * google.options({auth: authClient});
53272
+ *
53273
+ * // Do the magic
53274
+ * const res =
53275
+ * await discoveryengine.projects.locations.notebooks.sources.batchCreate({
53276
+ * // Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
53277
+ * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
53278
+ *
53279
+ * // Request body metadata
53280
+ * requestBody: {
53281
+ * // request body parameters
53282
+ * // {
53283
+ * // "userContents": []
53284
+ * // }
53285
+ * },
53286
+ * });
53287
+ * console.log(res.data);
53288
+ *
53289
+ * // Example response
53290
+ * // {
53291
+ * // "sources": []
53292
+ * // }
53293
+ * }
53294
+ *
53295
+ * main().catch(e => {
53296
+ * console.error(e);
53297
+ * throw e;
53298
+ * });
53299
+ *
53300
+ * ```
53301
+ *
53302
+ * @param params - Parameters for request
53303
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
53304
+ * @param callback - Optional callback that handles the response.
53305
+ * @returns A promise if used with async/await, or void if used with a callback.
53306
+ */
53307
+ batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
53308
+ batchCreate(params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>>;
53309
+ batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
53310
+ batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>): void;
53311
+ batchCreate(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>): void;
53312
+ batchCreate(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesResponse>): void;
53313
+ /**
53314
+ * Deletes multiple sources
53315
+ * @example
53316
+ * ```js
53317
+ * // Before running the sample:
53318
+ * // - Enable the API at:
53319
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
53320
+ * // - Login into gcloud by running:
53321
+ * // ```sh
53322
+ * // $ gcloud auth application-default login
53323
+ * // ```
53324
+ * // - Install the npm module by running:
53325
+ * // ```sh
53326
+ * // $ npm install googleapis
53327
+ * // ```
53328
+ *
53329
+ * const {google} = require('googleapis');
53330
+ * const discoveryengine = google.discoveryengine('v1alpha');
53331
+ *
53332
+ * async function main() {
53333
+ * const auth = new google.auth.GoogleAuth({
53334
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
53335
+ * scopes: [
53336
+ * 'https://www.googleapis.com/auth/cloud-platform',
53337
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
53338
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
53339
+ * ],
53340
+ * });
53341
+ *
53342
+ * // Acquire an auth client, and bind it to all future calls
53343
+ * const authClient = await auth.getClient();
53344
+ * google.options({auth: authClient});
53345
+ *
53346
+ * // Do the magic
53347
+ * const res =
53348
+ * await discoveryengine.projects.locations.notebooks.sources.batchDelete({
53349
+ * // Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
53350
+ * parent: 'projects/my-project/locations/my-location/notebooks/my-notebook',
53351
+ *
53352
+ * // Request body metadata
53353
+ * requestBody: {
53354
+ * // request body parameters
53355
+ * // {
53356
+ * // "names": []
53357
+ * // }
53358
+ * },
53359
+ * });
53360
+ * console.log(res.data);
53361
+ *
53362
+ * // Example response
53363
+ * // {}
53364
+ * }
53365
+ *
53366
+ * main().catch(e => {
53367
+ * console.error(e);
53368
+ * throw e;
53369
+ * });
53370
+ *
53371
+ * ```
53372
+ *
53373
+ * @param params - Parameters for request
53374
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
53375
+ * @param callback - Optional callback that handles the response.
53376
+ * @returns A promise if used with async/await, or void if used with a callback.
53377
+ */
53378
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
53379
+ batchDelete(params?: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleProtobufEmpty>>;
53380
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
53381
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, options: MethodOptions | BodyResponseCallback<Schema$GoogleProtobufEmpty>, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
53382
+ batchDelete(params: Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete, callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
53383
+ batchDelete(callback: BodyResponseCallback<Schema$GoogleProtobufEmpty>): void;
53384
+ /**
53385
+ * Gets a Source.
53386
+ * @example
53387
+ * ```js
53388
+ * // Before running the sample:
53389
+ * // - Enable the API at:
53390
+ * // https://console.developers.google.com/apis/api/discoveryengine.googleapis.com
53391
+ * // - Login into gcloud by running:
53392
+ * // ```sh
53393
+ * // $ gcloud auth application-default login
53394
+ * // ```
53395
+ * // - Install the npm module by running:
53396
+ * // ```sh
53397
+ * // $ npm install googleapis
53398
+ * // ```
53399
+ *
53400
+ * const {google} = require('googleapis');
53401
+ * const discoveryengine = google.discoveryengine('v1alpha');
53402
+ *
53403
+ * async function main() {
53404
+ * const auth = new google.auth.GoogleAuth({
53405
+ * // Scopes can be specified either as an array or as a single, space-delimited string.
53406
+ * scopes: [
53407
+ * 'https://www.googleapis.com/auth/cloud-platform',
53408
+ * 'https://www.googleapis.com/auth/discoveryengine.readwrite',
53409
+ * 'https://www.googleapis.com/auth/discoveryengine.serving.readwrite',
53410
+ * ],
53411
+ * });
53412
+ *
53413
+ * // Acquire an auth client, and bind it to all future calls
53414
+ * const authClient = await auth.getClient();
53415
+ * google.options({auth: authClient});
53416
+ *
53417
+ * // Do the magic
53418
+ * const res = await discoveryengine.projects.locations.notebooks.sources.get({
53419
+ * // Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
53420
+ * name: 'projects/my-project/locations/my-location/notebooks/my-notebook/sources/my-source',
53421
+ * });
53422
+ * console.log(res.data);
53423
+ *
53424
+ * // Example response
53425
+ * // {
53426
+ * // "metadata": {},
53427
+ * // "name": "my_name",
53428
+ * // "settings": {},
53429
+ * // "sourceId": {},
53430
+ * // "title": "my_title"
53431
+ * // }
53432
+ * }
53433
+ *
53434
+ * main().catch(e => {
53435
+ * console.error(e);
53436
+ * throw e;
53437
+ * });
53438
+ *
53439
+ * ```
53440
+ *
53441
+ * @param params - Parameters for request
53442
+ * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
53443
+ * @param callback - Optional callback that handles the response.
53444
+ * @returns A promise if used with async/await, or void if used with a callback.
53445
+ */
53446
+ get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
53447
+ get(params?: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$GoogleCloudNotebooklmV1alphaSource>>;
53448
+ get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
53449
+ get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, options: MethodOptions | BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
53450
+ get(params: Params$Resource$Projects$Locations$Notebooks$Sources$Get, callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
53451
+ get(callback: BodyResponseCallback<Schema$GoogleCloudNotebooklmV1alphaSource>): void;
53452
+ }
53453
+ export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchcreate extends StandardParameters {
53454
+ /**
53455
+ * Required. The parent resource where the sources will be created. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
53456
+ */
53457
+ parent?: string;
53458
+ /**
53459
+ * Request body metadata
53460
+ */
53461
+ requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchCreateSourcesRequest;
53462
+ }
53463
+ export interface Params$Resource$Projects$Locations$Notebooks$Sources$Batchdelete extends StandardParameters {
53464
+ /**
53465
+ * Required. The parent resource where the sources will be deleted. Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}
53466
+ */
53467
+ parent?: string;
53468
+ /**
53469
+ * Request body metadata
53470
+ */
53471
+ requestBody?: Schema$GoogleCloudNotebooklmV1alphaBatchDeleteSourcesRequest;
53472
+ }
53473
+ export interface Params$Resource$Projects$Locations$Notebooks$Sources$Get extends StandardParameters {
53474
+ /**
53475
+ * Required. The resource name for source Format: projects/{project\}/locations/{location\}/notebooks/{notebook\}/sources/{source\}
53476
+ */
53477
+ name?: string;
53478
+ }
52076
53479
  export class Resource$Projects$Locations$Operations {
52077
53480
  context: APIRequestContext;
52078
53481
  constructor(context: APIRequestContext);