@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240224 → 0.0.20240227
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 +139 -1
- 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: 20240227
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -82,6 +82,12 @@ declare namespace gapi.client {
|
|
|
82
82
|
/** Human-readable name of a function or method—for example, `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`. */
|
|
83
83
|
functionName?: string;
|
|
84
84
|
}
|
|
85
|
+
interface GoogleCloudDiscoveryengineV1alphaAclConfig {
|
|
86
|
+
/** Identity provider config. */
|
|
87
|
+
idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
|
|
88
|
+
/** Immutable. The full resource name of the acl configuration. Format: `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
89
|
+
name?: string;
|
|
90
|
+
}
|
|
85
91
|
interface GoogleCloudDiscoveryengineV1alphaAdditionalParams {
|
|
86
92
|
/** Token that used for non-human user check. */
|
|
87
93
|
token?: string;
|
|
@@ -244,6 +250,8 @@ declare namespace gapi.client {
|
|
|
244
250
|
enableSearchAdaptor?: boolean;
|
|
245
251
|
}
|
|
246
252
|
interface GoogleCloudDiscoveryengineV1alphaDataStore {
|
|
253
|
+
/** Immutable. Whether data in the DataStore has ACL information. If set to `true`, the source data must have ACL. ACL will be ingested when data is ingested by DocumentService.ImportDocuments methods. When ACL is enabled for the DataStore, Document can't be accessed by calling DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE` content config. */
|
|
254
|
+
aclEnabled?: boolean;
|
|
247
255
|
/** Immutable. The content config of the data store. If this field is unset, the server behavior defaults to ContentConfig.NO_CONTENT. */
|
|
248
256
|
contentConfig?: string;
|
|
249
257
|
/** Output only. Timestamp the DataStore was created at. */
|
|
@@ -254,6 +262,8 @@ declare namespace gapi.client {
|
|
|
254
262
|
displayName?: string;
|
|
255
263
|
/** Configuration for Document understanding and enrichment. */
|
|
256
264
|
documentProcessingConfig?: GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig;
|
|
265
|
+
/** Output only. Data store level identity provider config. */
|
|
266
|
+
idpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfig;
|
|
257
267
|
/** Immutable. The industry vertical that the data store registers. */
|
|
258
268
|
industryVertical?: string;
|
|
259
269
|
/** Immutable. The full resource name of the data store. Format: `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
@@ -297,6 +307,8 @@ declare namespace gapi.client {
|
|
|
297
307
|
interface GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest {}
|
|
298
308
|
interface GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse {}
|
|
299
309
|
interface GoogleCloudDiscoveryengineV1alphaDocument {
|
|
310
|
+
/** Access control information for the document. */
|
|
311
|
+
aclInfo?: GoogleCloudDiscoveryengineV1alphaDocumentAclInfo;
|
|
300
312
|
/** The unstructured data linked to this document. Content must be set if this document is under a `CONTENT_REQUIRED` data store. */
|
|
301
313
|
content?: GoogleCloudDiscoveryengineV1alphaDocumentContent;
|
|
302
314
|
/** Output only. This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */
|
|
@@ -316,6 +328,13 @@ declare namespace gapi.client {
|
|
|
316
328
|
/** The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */
|
|
317
329
|
structData?: {[P in string]: any};
|
|
318
330
|
}
|
|
331
|
+
interface GoogleCloudDiscoveryengineV1alphaDocumentAclInfo {
|
|
332
|
+
readers?: GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction[];
|
|
333
|
+
}
|
|
334
|
+
interface GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction {
|
|
335
|
+
/** List of principals. */
|
|
336
|
+
principals?: GoogleCloudDiscoveryengineV1alphaPrincipal[];
|
|
337
|
+
}
|
|
319
338
|
interface GoogleCloudDiscoveryengineV1alphaDocumentContent {
|
|
320
339
|
/** The MIME type of the content. Supported types: * `application/pdf` (PDF, only native PDFs are supported for now) * `text/html` (HTML) * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) * `text/plain` (TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml. */
|
|
321
340
|
mimeType?: string;
|
|
@@ -373,6 +392,8 @@ declare namespace gapi.client {
|
|
|
373
392
|
interface GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest {}
|
|
374
393
|
interface GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse {}
|
|
375
394
|
interface GoogleCloudDiscoveryengineV1alphaEngine {
|
|
395
|
+
/** Whether the search engine can associate with multiple data stores. If true, the generic search engine can associate with one or more data stores. This is an input-only field. */
|
|
396
|
+
allowMultipleDataStoresSearchEngine?: boolean;
|
|
376
397
|
/** Configurations for the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. */
|
|
377
398
|
chatEngineConfig?: GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig;
|
|
378
399
|
/** Output only. Additional information of the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. */
|
|
@@ -535,6 +556,16 @@ declare namespace gapi.client {
|
|
|
535
556
|
/** Max number of related questions to be returned. The valid range is [1, 5]. If enable_related_questions is true, the default value is 3. */
|
|
536
557
|
maxRelatedQuestions?: number;
|
|
537
558
|
}
|
|
559
|
+
interface GoogleCloudDiscoveryengineV1alphaIdpConfig {
|
|
560
|
+
/** External Identity provider config. */
|
|
561
|
+
externalIdpConfig?: GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig;
|
|
562
|
+
/** Identity provider type configured. */
|
|
563
|
+
idpType?: string;
|
|
564
|
+
}
|
|
565
|
+
interface GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig {
|
|
566
|
+
/** Workforce pool name. Example: "locations/global/workforcePools/pool_id" */
|
|
567
|
+
workforcePoolName?: string;
|
|
568
|
+
}
|
|
538
569
|
interface GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata {
|
|
539
570
|
/** Operation create time. */
|
|
540
571
|
createTime?: string;
|
|
@@ -737,6 +768,12 @@ declare namespace gapi.client {
|
|
|
737
768
|
totalPanels?: number;
|
|
738
769
|
}
|
|
739
770
|
interface GoogleCloudDiscoveryengineV1alphaPauseEngineRequest {}
|
|
771
|
+
interface GoogleCloudDiscoveryengineV1alphaPrincipal {
|
|
772
|
+
/** Group identifier. For Google Workspace user account, group_id should be the google workspace group email. For non-google identity provider user account, group_id is the mapped group identifier configured during the workforcepool config. */
|
|
773
|
+
groupId?: string;
|
|
774
|
+
/** User identifier. For Google Workspace user account, user_id should be the google workspace user email. For non-google identity provider user account, user_id is the mapped user identifier configured during the workforcepool config. */
|
|
775
|
+
userId?: string;
|
|
776
|
+
}
|
|
740
777
|
interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata {
|
|
741
778
|
/** Operation create time. */
|
|
742
779
|
createTime?: string;
|
|
@@ -750,10 +787,14 @@ declare namespace gapi.client {
|
|
|
750
787
|
updateTime?: string;
|
|
751
788
|
}
|
|
752
789
|
interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest {
|
|
790
|
+
/** The desired location of errors incurred during the purge. */
|
|
791
|
+
errorConfig?: GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig;
|
|
753
792
|
/** Required. Filter matching documents to purge. Only currently supported value is `*` (all items). */
|
|
754
793
|
filter?: string;
|
|
755
794
|
/** Actually performs the purge. If `force` is set to false, return the expected purge count without deleting any documents. */
|
|
756
795
|
force?: boolean;
|
|
796
|
+
/** Cloud Storage location for the input content. Supported `data_schema`: * `document_id`: One valid Document.id per line. */
|
|
797
|
+
gcsSource?: GoogleCloudDiscoveryengineV1alphaGcsSource;
|
|
757
798
|
}
|
|
758
799
|
interface GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse {
|
|
759
800
|
/** The total count of documents purged as a result of the operation. */
|
|
@@ -761,6 +802,10 @@ declare namespace gapi.client {
|
|
|
761
802
|
/** A sample of document names that will be deleted. Only populated if `force` is set to false. A max of 100 names will be returned and the names are chosen at random. */
|
|
762
803
|
purgeSample?: string[];
|
|
763
804
|
}
|
|
805
|
+
interface GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig {
|
|
806
|
+
/** Cloud Storage prefix for purge errors. This must be an empty, existing Cloud Storage directory. Purge errors are written to sharded files in this directory, one per line, as a JSON-encoded `google.rpc.Status` message. */
|
|
807
|
+
gcsPrefix?: string;
|
|
808
|
+
}
|
|
764
809
|
interface GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata {
|
|
765
810
|
/** Operation create time. */
|
|
766
811
|
createTime?: string;
|
|
@@ -2696,6 +2741,8 @@ declare namespace gapi.client {
|
|
|
2696
2741
|
prettyPrint?: boolean;
|
|
2697
2742
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2698
2743
|
quotaUser?: string;
|
|
2744
|
+
/** Indicates which fields in the provided imported 'document' to update. If not set, will by default update all fields. */
|
|
2745
|
+
updateMask?: string;
|
|
2699
2746
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2700
2747
|
upload_protocol?: string;
|
|
2701
2748
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
@@ -2727,6 +2774,8 @@ declare namespace gapi.client {
|
|
|
2727
2774
|
prettyPrint?: boolean;
|
|
2728
2775
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
2729
2776
|
quotaUser?: string;
|
|
2777
|
+
/** Indicates which fields in the provided imported 'document' to update. If not set, will by default update all fields. */
|
|
2778
|
+
updateMask?: string;
|
|
2730
2779
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
2731
2780
|
upload_protocol?: string;
|
|
2732
2781
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
@@ -6439,6 +6488,8 @@ declare namespace gapi.client {
|
|
|
6439
6488
|
prettyPrint?: boolean;
|
|
6440
6489
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
6441
6490
|
quotaUser?: string;
|
|
6491
|
+
/** Indicates which fields in the provided imported 'document' to update. If not set, will by default update all fields. */
|
|
6492
|
+
updateMask?: string;
|
|
6442
6493
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6443
6494
|
upload_protocol?: string;
|
|
6444
6495
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
@@ -6470,6 +6521,8 @@ declare namespace gapi.client {
|
|
|
6470
6521
|
prettyPrint?: boolean;
|
|
6471
6522
|
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
6472
6523
|
quotaUser?: string;
|
|
6524
|
+
/** Indicates which fields in the provided imported 'document' to update. If not set, will by default update all fields. */
|
|
6525
|
+
updateMask?: string;
|
|
6473
6526
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
6474
6527
|
upload_protocol?: string;
|
|
6475
6528
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
@@ -8710,6 +8763,91 @@ declare namespace gapi.client {
|
|
|
8710
8763
|
},
|
|
8711
8764
|
body: GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
|
|
8712
8765
|
): Request<GoogleLongrunningOperation>;
|
|
8766
|
+
/** Gets the AclConfig. */
|
|
8767
|
+
getAclConfig(request?: {
|
|
8768
|
+
/** V1 error format. */
|
|
8769
|
+
'$.xgafv'?: string;
|
|
8770
|
+
/** OAuth access token. */
|
|
8771
|
+
access_token?: string;
|
|
8772
|
+
/** Data format for response. */
|
|
8773
|
+
alt?: string;
|
|
8774
|
+
/** JSONP */
|
|
8775
|
+
callback?: string;
|
|
8776
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8777
|
+
fields?: string;
|
|
8778
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8779
|
+
key?: string;
|
|
8780
|
+
/** Required. Resource name of AclConfig, such as `projects/*/locations/*/aclConfig`. If the caller does not have permission to access the AclConfig, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. */
|
|
8781
|
+
name: string;
|
|
8782
|
+
/** OAuth 2.0 token for the current user. */
|
|
8783
|
+
oauth_token?: string;
|
|
8784
|
+
/** Returns response with indentations and line breaks. */
|
|
8785
|
+
prettyPrint?: boolean;
|
|
8786
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8787
|
+
quotaUser?: string;
|
|
8788
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8789
|
+
upload_protocol?: string;
|
|
8790
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8791
|
+
uploadType?: string;
|
|
8792
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaAclConfig>;
|
|
8793
|
+
/** Default Acl Configuration for use in a location of a customer's project. Updates will only reflect to new data stores. Existing data stores will still use the old value. */
|
|
8794
|
+
updateAclConfig(request: {
|
|
8795
|
+
/** V1 error format. */
|
|
8796
|
+
'$.xgafv'?: string;
|
|
8797
|
+
/** OAuth access token. */
|
|
8798
|
+
access_token?: string;
|
|
8799
|
+
/** Data format for response. */
|
|
8800
|
+
alt?: string;
|
|
8801
|
+
/** JSONP */
|
|
8802
|
+
callback?: string;
|
|
8803
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8804
|
+
fields?: string;
|
|
8805
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8806
|
+
key?: string;
|
|
8807
|
+
/** Immutable. The full resource name of the acl configuration. Format: `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
8808
|
+
name: string;
|
|
8809
|
+
/** OAuth 2.0 token for the current user. */
|
|
8810
|
+
oauth_token?: string;
|
|
8811
|
+
/** Returns response with indentations and line breaks. */
|
|
8812
|
+
prettyPrint?: boolean;
|
|
8813
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8814
|
+
quotaUser?: string;
|
|
8815
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8816
|
+
upload_protocol?: string;
|
|
8817
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8818
|
+
uploadType?: string;
|
|
8819
|
+
/** Request body */
|
|
8820
|
+
resource: GoogleCloudDiscoveryengineV1alphaAclConfig;
|
|
8821
|
+
}): Request<GoogleCloudDiscoveryengineV1alphaAclConfig>;
|
|
8822
|
+
updateAclConfig(
|
|
8823
|
+
request: {
|
|
8824
|
+
/** V1 error format. */
|
|
8825
|
+
'$.xgafv'?: string;
|
|
8826
|
+
/** OAuth access token. */
|
|
8827
|
+
access_token?: string;
|
|
8828
|
+
/** Data format for response. */
|
|
8829
|
+
alt?: string;
|
|
8830
|
+
/** JSONP */
|
|
8831
|
+
callback?: string;
|
|
8832
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8833
|
+
fields?: string;
|
|
8834
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8835
|
+
key?: string;
|
|
8836
|
+
/** Immutable. The full resource name of the acl configuration. Format: `projects/{project}/locations/{location}/aclConfig`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */
|
|
8837
|
+
name: string;
|
|
8838
|
+
/** OAuth 2.0 token for the current user. */
|
|
8839
|
+
oauth_token?: string;
|
|
8840
|
+
/** Returns response with indentations and line breaks. */
|
|
8841
|
+
prettyPrint?: boolean;
|
|
8842
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8843
|
+
quotaUser?: string;
|
|
8844
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8845
|
+
upload_protocol?: string;
|
|
8846
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8847
|
+
uploadType?: string;
|
|
8848
|
+
},
|
|
8849
|
+
body: GoogleCloudDiscoveryengineV1alphaAclConfig
|
|
8850
|
+
): Request<GoogleCloudDiscoveryengineV1alphaAclConfig>;
|
|
8713
8851
|
collections: CollectionsResource;
|
|
8714
8852
|
dataStores: DataStoresResource;
|
|
8715
8853
|
operations: OperationsResource;
|