@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20250728 → 0.0.20250810
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 +105 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://discoveryengine.googleapis.com/$discovery/rest?version=v1alpha
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20250810
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -408,6 +408,8 @@ declare namespace gapi.client {
|
|
|
408
408
|
isActionConfigured?: boolean;
|
|
409
409
|
/** Optional. The Service Directory resource name (projects/*/locations/*/namespaces/*/services/*) representing a VPC network endpoint used to connect to the data source's `instance_uri`, defined in DataConnector.params. Required when VPC Service Controls are enabled. */
|
|
410
410
|
serviceName?: string;
|
|
411
|
+
/** Optional. Whether to use static secrets for the connector. If true, the secrets provided in the action_params will be ignored. */
|
|
412
|
+
useStaticSecrets?: boolean;
|
|
411
413
|
}
|
|
412
414
|
interface GoogleCloudDiscoveryengineV1alphaAdvancedCompleteQueryRequest {
|
|
413
415
|
/** Optional. Specification to boost suggestions matching the condition. */
|
|
@@ -980,8 +982,18 @@ declare namespace gapi.client {
|
|
|
980
982
|
groundedContent?: GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent;
|
|
981
983
|
}
|
|
982
984
|
interface GoogleCloudDiscoveryengineV1alphaAssistant {
|
|
985
|
+
/** Optional. Customer policy for the assistant. */
|
|
986
|
+
customerPolicy?: GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicy;
|
|
987
|
+
/** Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] } */
|
|
988
|
+
enabledTools?: {
|
|
989
|
+
[P in string]: GoogleCloudDiscoveryengineV1alphaAssistantToolList;
|
|
990
|
+
};
|
|
991
|
+
/** Optional. Configuration for the generation of the assistant response. */
|
|
992
|
+
generationConfig?: GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig;
|
|
983
993
|
/** Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` It must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
984
994
|
name?: string;
|
|
995
|
+
/** Optional. The type of web grounding to use. */
|
|
996
|
+
webGroundingType?: string;
|
|
985
997
|
}
|
|
986
998
|
interface GoogleCloudDiscoveryengineV1alphaAssistantContent {
|
|
987
999
|
/** Result of executing an ExecutableCode. */
|
|
@@ -1021,6 +1033,28 @@ declare namespace gapi.client {
|
|
|
1021
1033
|
/** Required. The media type (MIME type) of the file. */
|
|
1022
1034
|
mimeType?: string;
|
|
1023
1035
|
}
|
|
1036
|
+
interface GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicy {
|
|
1037
|
+
/** Optional. List of banned phrases. */
|
|
1038
|
+
bannedPhrases?: GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicyBannedPhrase[];
|
|
1039
|
+
}
|
|
1040
|
+
interface GoogleCloudDiscoveryengineV1alphaAssistantCustomerPolicyBannedPhrase {
|
|
1041
|
+
/** Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned phrases. For example, "cafe" would match "café". */
|
|
1042
|
+
ignoreDiacritics?: boolean;
|
|
1043
|
+
/** Optional. Match type for the banned phrase. */
|
|
1044
|
+
matchType?: string;
|
|
1045
|
+
/** Required. The raw string content to be banned. */
|
|
1046
|
+
phrase?: string;
|
|
1047
|
+
}
|
|
1048
|
+
interface GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfig {
|
|
1049
|
+
/** The default language to use for the generation of the assistant response. Use an ISO 639-1 language code such as `en`. If not specified, the language will be automatically detected. */
|
|
1050
|
+
defaultLanguage?: string;
|
|
1051
|
+
/** System instruction, also known as the prompt preamble for LLM calls. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions */
|
|
1052
|
+
systemInstruction?: GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfigSystemInstruction;
|
|
1053
|
+
}
|
|
1054
|
+
interface GoogleCloudDiscoveryengineV1alphaAssistantGenerationConfigSystemInstruction {
|
|
1055
|
+
/** Optional. Additional system instruction that will be added to the default system instruction. */
|
|
1056
|
+
additionalSystemInstruction?: string;
|
|
1057
|
+
}
|
|
1024
1058
|
interface GoogleCloudDiscoveryengineV1alphaAssistantGroundedContent {
|
|
1025
1059
|
/** The content. */
|
|
1026
1060
|
content?: GoogleCloudDiscoveryengineV1alphaAssistantContent;
|
|
@@ -1063,6 +1097,16 @@ declare namespace gapi.client {
|
|
|
1063
1097
|
/** The text segment itself. */
|
|
1064
1098
|
text?: string;
|
|
1065
1099
|
}
|
|
1100
|
+
interface GoogleCloudDiscoveryengineV1alphaAssistantToolInfo {
|
|
1101
|
+
/** The display name of the tool. */
|
|
1102
|
+
toolDisplayName?: string;
|
|
1103
|
+
/** The name of the tool as defined by DataConnectorService.QueryAvailableActions. Note: it's using `action` in the DataConnectorService apis, but they are the same as the `tool` here. */
|
|
1104
|
+
toolName?: string;
|
|
1105
|
+
}
|
|
1106
|
+
interface GoogleCloudDiscoveryengineV1alphaAssistantToolList {
|
|
1107
|
+
/** The list of tools with corresponding tool information. */
|
|
1108
|
+
toolInfo?: GoogleCloudDiscoveryengineV1alphaAssistantToolInfo[];
|
|
1109
|
+
}
|
|
1066
1110
|
interface GoogleCloudDiscoveryengineV1alphaAssistUserMetadata {
|
|
1067
1111
|
/** Optional. Preferred language to be used for answering if language detection fails. Also used as the language of error messages created by actions, regardless of language detection results. */
|
|
1068
1112
|
preferredLanguageCode?: string;
|
|
@@ -1305,6 +1349,8 @@ declare namespace gapi.client {
|
|
|
1305
1349
|
previousChunks?: GoogleCloudDiscoveryengineV1alphaChunk[];
|
|
1306
1350
|
}
|
|
1307
1351
|
interface GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata {
|
|
1352
|
+
/** The mime type of the document. https://www.iana.org/assignments/media-types/media-types.xhtml. */
|
|
1353
|
+
mimeType?: string;
|
|
1308
1354
|
/** Data representation. The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
1309
1355
|
structData?: {[P in string]: any};
|
|
1310
1356
|
/** Title of the document. */
|
|
@@ -2805,7 +2851,7 @@ declare namespace gapi.client {
|
|
|
2805
2851
|
interface GoogleCloudDiscoveryengineV1alphaListSessionsRequest {
|
|
2806
2852
|
/** A comma-separated list of fields to filter by, in EBNF grammar. The supported fields are: * `user_pseudo_id` * `state` * `display_name` * `starred` * `is_pinned` * `labels` * `create_time` * `update_time` Examples: * `user_pseudo_id = some_id` * `display_name = "some_name"` * `starred = true` * `is_pinned=true AND (NOT labels:hidden)` * `create_time > "1970-01-01T12:00:00Z"` */
|
|
2807
2853
|
filter?: string;
|
|
2808
|
-
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: *
|
|
2854
|
+
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: * `update_time desc` * `create_time` * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then by update_time. */
|
|
2809
2855
|
orderBy?: string;
|
|
2810
2856
|
/** Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000. */
|
|
2811
2857
|
pageSize?: number;
|
|
@@ -4433,6 +4479,8 @@ declare namespace gapi.client {
|
|
|
4433
4479
|
workforceIdentityPoolProvider?: string;
|
|
4434
4480
|
}
|
|
4435
4481
|
interface GoogleCloudDiscoveryengineV1alphaWidgetConfigAssistantSettings {
|
|
4482
|
+
/** Output only. This field controls the default web grounding toggle for end users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web grounding enabled by default on UI. If true, grounding toggle will be disabled by default on UI. End users can still enable web grounding in the UI if web grounding is enabled. */
|
|
4483
|
+
defaultWebGroundingToggleOff?: boolean;
|
|
4436
4484
|
/** Whether or not the Google search grounding toggle is shown. Deprecated. Use web_grounding_type instead. */
|
|
4437
4485
|
googleSearchGroundingEnabled?: boolean;
|
|
4438
4486
|
/** Optional. The type of web grounding to use. */
|
|
@@ -4601,8 +4649,50 @@ declare namespace gapi.client {
|
|
|
4601
4649
|
topP?: number;
|
|
4602
4650
|
}
|
|
4603
4651
|
interface GoogleCloudDiscoveryengineV1Assistant {
|
|
4652
|
+
/** Optional. Customer policy for the assistant. */
|
|
4653
|
+
customerPolicy?: GoogleCloudDiscoveryengineV1AssistantCustomerPolicy;
|
|
4654
|
+
/** Optional. Note: not implemented yet. Use enabled_actions instead. The enabled tools on this assistant. The keys are connector name, for example "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector The values consist of admin enabled tools towards the connector instance. Admin can selectively enable multiple tools on any of the connector instances that they created in the project. For example {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, "transferTicket")], "gmail1ConnectorName": [(toolId3, "sendEmail"),..] } */
|
|
4655
|
+
enabledTools?: {
|
|
4656
|
+
[P in string]: GoogleCloudDiscoveryengineV1AssistantToolList;
|
|
4657
|
+
};
|
|
4658
|
+
/** Optional. Configuration for the generation of the assistant response. */
|
|
4659
|
+
generationConfig?: GoogleCloudDiscoveryengineV1AssistantGenerationConfig;
|
|
4604
4660
|
/** Immutable. Resource name of the assistant. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` It must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
4605
4661
|
name?: string;
|
|
4662
|
+
/** Optional. The type of web grounding to use. */
|
|
4663
|
+
webGroundingType?: string;
|
|
4664
|
+
}
|
|
4665
|
+
interface GoogleCloudDiscoveryengineV1AssistantCustomerPolicy {
|
|
4666
|
+
/** Optional. List of banned phrases. */
|
|
4667
|
+
bannedPhrases?: GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase[];
|
|
4668
|
+
}
|
|
4669
|
+
interface GoogleCloudDiscoveryengineV1AssistantCustomerPolicyBannedPhrase {
|
|
4670
|
+
/** Optional. If true, diacritical marks (e.g., accents, umlauts) are ignored when matching banned phrases. For example, "cafe" would match "café". */
|
|
4671
|
+
ignoreDiacritics?: boolean;
|
|
4672
|
+
/** Optional. Match type for the banned phrase. */
|
|
4673
|
+
matchType?: string;
|
|
4674
|
+
/** Required. The raw string content to be banned. */
|
|
4675
|
+
phrase?: string;
|
|
4676
|
+
}
|
|
4677
|
+
interface GoogleCloudDiscoveryengineV1AssistantGenerationConfig {
|
|
4678
|
+
/** The default language to use for the generation of the assistant response. Use an ISO 639-1 language code such as `en`. If not specified, the language will be automatically detected. */
|
|
4679
|
+
defaultLanguage?: string;
|
|
4680
|
+
/** System instruction, also known as the prompt preamble for LLM calls. See also https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions */
|
|
4681
|
+
systemInstruction?: GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction;
|
|
4682
|
+
}
|
|
4683
|
+
interface GoogleCloudDiscoveryengineV1AssistantGenerationConfigSystemInstruction {
|
|
4684
|
+
/** Optional. Additional system instruction that will be added to the default system instruction. */
|
|
4685
|
+
additionalSystemInstruction?: string;
|
|
4686
|
+
}
|
|
4687
|
+
interface GoogleCloudDiscoveryengineV1AssistantToolInfo {
|
|
4688
|
+
/** The display name of the tool. */
|
|
4689
|
+
toolDisplayName?: string;
|
|
4690
|
+
/** The name of the tool as defined by DataConnectorService.QueryAvailableActions. Note: it's using `action` in the DataConnectorService apis, but they are the same as the `tool` here. */
|
|
4691
|
+
toolName?: string;
|
|
4692
|
+
}
|
|
4693
|
+
interface GoogleCloudDiscoveryengineV1AssistantToolList {
|
|
4694
|
+
/** The list of tools with corresponding tool information. */
|
|
4695
|
+
toolInfo?: GoogleCloudDiscoveryengineV1AssistantToolInfo[];
|
|
4606
4696
|
}
|
|
4607
4697
|
interface GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata {
|
|
4608
4698
|
/** Operation create time. */
|
|
@@ -6586,6 +6676,10 @@ declare namespace gapi.client {
|
|
|
6586
6676
|
/** The Sources. */
|
|
6587
6677
|
sources?: GoogleCloudNotebooklmV1alphaSource[];
|
|
6588
6678
|
}
|
|
6679
|
+
interface GoogleCloudNotebooklmV1alphaCmekConfig {
|
|
6680
|
+
/** Required. KMS key resource name which will be used to encrypt resources `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. */
|
|
6681
|
+
kmsKey?: string;
|
|
6682
|
+
}
|
|
6589
6683
|
interface GoogleCloudNotebooklmV1alphaListRecentlyViewedNotebooksResponse {
|
|
6590
6684
|
/** The page token, provide this to retrieve the subsequent page. */
|
|
6591
6685
|
nextPageToken?: string;
|
|
@@ -6593,6 +6687,8 @@ declare namespace gapi.client {
|
|
|
6593
6687
|
notebooks?: GoogleCloudNotebooklmV1alphaNotebook[];
|
|
6594
6688
|
}
|
|
6595
6689
|
interface GoogleCloudNotebooklmV1alphaNotebook {
|
|
6690
|
+
/** Output only. CMEK-related information for the Notebook. */
|
|
6691
|
+
cmekConfig?: GoogleCloudNotebooklmV1alphaCmekConfig;
|
|
6596
6692
|
/** Output only. The emoji of the notebook. */
|
|
6597
6693
|
emoji?: string;
|
|
6598
6694
|
/** The metadata of the notebook. */
|
|
@@ -9442,7 +9538,7 @@ declare namespace gapi.client {
|
|
|
9442
9538
|
key?: string;
|
|
9443
9539
|
/** OAuth 2.0 token for the current user. */
|
|
9444
9540
|
oauth_token?: string;
|
|
9445
|
-
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: *
|
|
9541
|
+
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: * `update_time desc` * `create_time` * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then by update_time. */
|
|
9446
9542
|
orderBy?: string;
|
|
9447
9543
|
/** Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000. */
|
|
9448
9544
|
pageSize?: number;
|
|
@@ -12675,7 +12771,7 @@ declare namespace gapi.client {
|
|
|
12675
12771
|
key?: string;
|
|
12676
12772
|
/** OAuth 2.0 token for the current user. */
|
|
12677
12773
|
oauth_token?: string;
|
|
12678
|
-
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: *
|
|
12774
|
+
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: * `update_time desc` * `create_time` * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then by update_time. */
|
|
12679
12775
|
orderBy?: string;
|
|
12680
12776
|
/** Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000. */
|
|
12681
12777
|
pageSize?: number;
|
|
@@ -15644,7 +15740,7 @@ declare namespace gapi.client {
|
|
|
15644
15740
|
key?: string;
|
|
15645
15741
|
/** OAuth 2.0 token for the current user. */
|
|
15646
15742
|
oauth_token?: string;
|
|
15647
|
-
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: *
|
|
15743
|
+
/** A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields: * `update_time` * `create_time` * `session_name` * `is_pinned` Example: * `update_time desc` * `create_time` * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then by update_time. */
|
|
15648
15744
|
orderBy?: string;
|
|
15649
15745
|
/** Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000. */
|
|
15650
15746
|
pageSize?: number;
|
|
@@ -17169,9 +17265,9 @@ declare namespace gapi.client {
|
|
|
17169
17265
|
key?: string;
|
|
17170
17266
|
/** OAuth 2.0 token for the current user. */
|
|
17171
17267
|
oauth_token?: string;
|
|
17172
|
-
/** Maximum number of Evaluations to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
|
|
17268
|
+
/** Optional. Maximum number of Evaluations to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
|
|
17173
17269
|
pageSize?: number;
|
|
17174
|
-
/** A page token ListEvaluationsResponse.next_page_token, received from a previous EvaluationService.ListEvaluations call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to EvaluationService.ListEvaluations must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
17270
|
+
/** Optional. A page token ListEvaluationsResponse.next_page_token, received from a previous EvaluationService.ListEvaluations call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to EvaluationService.ListEvaluations must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
17175
17271
|
pageToken?: string;
|
|
17176
17272
|
/** Required. The parent location resource name, such as `projects/{project}/locations/{location}`. If the caller does not have permission to list Evaluations under this location, regardless of whether or not this location exists, a `PERMISSION_DENIED` error is returned. */
|
|
17177
17273
|
parent: string;
|
|
@@ -17202,9 +17298,9 @@ declare namespace gapi.client {
|
|
|
17202
17298
|
key?: string;
|
|
17203
17299
|
/** OAuth 2.0 token for the current user. */
|
|
17204
17300
|
oauth_token?: string;
|
|
17205
|
-
/** Maximum number of ListEvaluationResultsResponse.EvaluationResult to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
|
|
17301
|
+
/** Optional. Maximum number of ListEvaluationResultsResponse.EvaluationResult to return. If unspecified, defaults to 100. The maximum allowed value is 1000. Values above 1000 will be coerced to 1000. If this field is negative, an `INVALID_ARGUMENT` error is returned. */
|
|
17206
17302
|
pageSize?: number;
|
|
17207
|
-
/** A page token ListEvaluationResultsResponse.next_page_token, received from a previous EvaluationService.ListEvaluationResults call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to EvaluationService.ListEvaluationResults must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
17303
|
+
/** Optional. A page token ListEvaluationResultsResponse.next_page_token, received from a previous EvaluationService.ListEvaluationResults call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to EvaluationService.ListEvaluationResults must match the call that provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned. */
|
|
17208
17304
|
pageToken?: string;
|
|
17209
17305
|
/** Returns response with indentations and line breaks. */
|
|
17210
17306
|
prettyPrint?: boolean;
|