@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.1.20251030 → 0.1.20251109

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.
Files changed (2) hide show
  1. package/index.d.ts +370 -2
  2. 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: 20251030
12
+ // Revision: 20251109
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -588,6 +588,8 @@ declare namespace gapi.client {
588
588
  name?: string;
589
589
  /** Output only. The reason why the agent was rejected. Only set if the state is PRIVATE, and got there via rejection. */
590
590
  rejectionReason?: string;
591
+ /** Optional. The sharing config of the agent. */
592
+ sharingConfig?: GoogleCloudDiscoveryengineV1alphaAgentSharingConfig;
591
593
  /** Optional. The starter prompt suggestions to show the user on the landing page of the agent. */
592
594
  starterPrompts?: GoogleCloudDiscoveryengineV1alphaAgentStarterPrompt[];
593
595
  /** Output only. The lifecycle state of the agent. */
@@ -611,10 +613,66 @@ declare namespace gapi.client {
611
613
  /** Image URI. */
612
614
  uri?: string;
613
615
  }
616
+ interface GoogleCloudDiscoveryengineV1alphaAgentSharingConfig {
617
+ /** Optional. The sharing scope of the agent. */
618
+ scope?: string;
619
+ }
614
620
  interface GoogleCloudDiscoveryengineV1alphaAgentStarterPrompt {
615
621
  /** Required. The text of the starter prompt. */
616
622
  text?: string;
617
623
  }
624
+ interface GoogleCloudDiscoveryengineV1alphaAgentView {
625
+ /** Immutable. The origin of the Agent. */
626
+ agentOrigin?: string;
627
+ /** Output only. The sharing state of the agent. */
628
+ agentSharingState?: string;
629
+ /** Output only. The type of the agent. */
630
+ agentType?: string;
631
+ /** The custom placeholder text that appears in the text box before the user enters any text. */
632
+ customPlaceholderText?: string;
633
+ /** The reason why the agent deployment failed. Only set if the state is DEPLOYMENT_FAILED. */
634
+ deploymentFailureReason?: string;
635
+ /** Required. Human-readable description of the agent. This might be used by an LLM to automatically select an agent to respond to a user query and to generate the first version of the steps for the agent that can be modified by the user. The language of this is either Agent.language_code, or ListAvailableAgentViewsRequest.language_code if translations are enabled. */
636
+ description?: string;
637
+ /** Required. Display name of the agent. The language of this is either Agent.language_code, or ListAvailableAgentViewsRequest.language_code if translations are enabled. */
638
+ displayName?: string;
639
+ /** Optional. The icon that represents the agent on the UI. */
640
+ icon?: GoogleCloudDiscoveryengineV1alphaAgentImage;
641
+ /** Resource name of the agent. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` */
642
+ name?: string;
643
+ /** The reason why the agent was rejected. Only set if the state is PRIVATE, and got there via rejection. */
644
+ rejectionReason?: string;
645
+ /** Output only. The state of the Agent. */
646
+ state?: string;
647
+ /** Optional. The suggested prompts for the agent, to be shown on the agent landing page. */
648
+ suggestedPrompts?: GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt[];
649
+ /** The reason why the agent was suspended. Only set if the state is SUSPENDED. */
650
+ suspensionReason?: string;
651
+ /** Optional. Per-user annotations of the current caller for the agent. */
652
+ userAnnotations?: GoogleCloudDiscoveryengineV1alphaUserAnnotations;
653
+ /** The permissions of the user for this Agent. */
654
+ userPermissions?: GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions;
655
+ }
656
+ interface GoogleCloudDiscoveryengineV1alphaAgentViewSuggestedPrompt {
657
+ /** Required. The text of the suggested prompt. The language of this is either Agent.language_code, or ListAvailableAgentViewsRequest.language_code if translations are enabled. */
658
+ text?: string;
659
+ }
660
+ interface GoogleCloudDiscoveryengineV1alphaAgentViewUserPermissions {
661
+ /** If the user can delete this Agent. */
662
+ canDelete?: boolean;
663
+ /** If the user can edit this Agent. */
664
+ canEdit?: boolean;
665
+ /** If the user can propose other users to share the Agent with. */
666
+ canProposeUsers?: boolean;
667
+ /** If the user can request a review for this Agent. */
668
+ canRequestReview?: boolean;
669
+ /** If the user can run this Agent. */
670
+ canRun?: boolean;
671
+ /** If the user can view the source of this Agent. */
672
+ canView?: boolean;
673
+ /** If the user can withdraw this Agent. */
674
+ canWithdraw?: boolean;
675
+ }
618
676
  interface GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig {
619
677
  /** Optional. The enrollment states of each alert. */
620
678
  alertEnrollments?: GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment[];
@@ -2443,6 +2501,8 @@ declare namespace gapi.client {
2443
2501
  enableGetProcessedDocument?: boolean;
2444
2502
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
2445
2503
  enableImageAnnotation?: boolean;
2504
+ /** Optional. If true, the pdf layout will be refined using an LLM. */
2505
+ enableLlmLayoutParsing?: boolean;
2446
2506
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
2447
2507
  enableTableAnnotation?: boolean;
2448
2508
  /** Optional. List of HTML classes to exclude from the parsed content. */
@@ -2483,6 +2543,8 @@ declare namespace gapi.client {
2483
2543
  chatEngineConfig?: GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig;
2484
2544
  /** Output only. Additional information of the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. */
2485
2545
  chatEngineMetadata?: GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata;
2546
+ /** Output only. CMEK-related information for the Engine. */
2547
+ cmekConfig?: GoogleCloudDiscoveryengineV1alphaCmekConfig;
2486
2548
  /** Common config spec that specifies the metadata of the engine. */
2487
2549
  commonConfig?: GoogleCloudDiscoveryengineV1alphaEngineCommonConfig;
2488
2550
  /** Optional. Configuration for configurable billing approach. */
@@ -2501,6 +2563,8 @@ declare namespace gapi.client {
2501
2563
  industryVertical?: string;
2502
2564
  /** Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. */
2503
2565
  mediaRecommendationEngineConfig?: GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig;
2566
+ /** Optional. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin. When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it. */
2567
+ modelConfigs?: {[P in string]: string};
2504
2568
  /** Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*‍/. Otherwise, an INVALID_ARGUMENT error is returned. */
2505
2569
  name?: string;
2506
2570
  /** Output only. Additional information of a recommendation engine. Only applicable if solution_type is SOLUTION_TYPE_RECOMMENDATION. */
@@ -2796,6 +2860,10 @@ declare namespace gapi.client {
2796
2860
  /** Required. Cloud Storage URIs to input files. Each URI can be up to 2000 characters long. URIs can match the full object path (for example, `gs://bucket/directory/object.json`) or a pattern matching one or more files, such as `gs://bucket/directory/*.json`. A request can contain at most 100 files (or 100,000 files if `data_schema` is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is `content`). */
2797
2861
  inputUris?: string[];
2798
2862
  }
2863
+ interface GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse {
2864
+ /** The data for displaying an Agent. */
2865
+ agentView?: GoogleCloudDiscoveryengineV1alphaAgentView;
2866
+ }
2799
2867
  interface GoogleCloudDiscoveryengineV1alphaGetConnectorSecretResponse {
2800
2868
  /** The app name of the associated Connector. */
2801
2869
  app?: string;
@@ -3136,6 +3204,12 @@ declare namespace gapi.client {
3136
3204
  /** Required. Subscription tier information for the license config. */
3137
3205
  subscriptionTier?: string;
3138
3206
  }
3207
+ interface GoogleCloudDiscoveryengineV1alphaLicenseConfigUsageStats {
3208
+ /** Required. The LicenseConfig name. */
3209
+ licenseConfig?: string;
3210
+ /** Required. The number of licenses used. */
3211
+ usedLicenseCount?: string;
3212
+ }
3139
3213
  interface GoogleCloudDiscoveryengineV1alphaListAgentsResponse {
3140
3214
  /** The agents visible to the caller under the parent Assistant. */
3141
3215
  agents?: GoogleCloudDiscoveryengineV1alphaAgent[];
@@ -3148,6 +3222,12 @@ declare namespace gapi.client {
3148
3222
  /** A token that can be sent as ListAuthorizationsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
3149
3223
  nextPageToken?: string;
3150
3224
  }
3225
+ interface GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse {
3226
+ /** The agent sources visible to the caller under the parent Assistant. */
3227
+ agentViews?: GoogleCloudDiscoveryengineV1alphaAgentView[];
3228
+ /** A token that can be sent as ListAvailableAgentViewsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
3229
+ nextPageToken?: string;
3230
+ }
3151
3231
  interface GoogleCloudDiscoveryengineV1alphaListBillingAccountLicenseConfigsResponse {
3152
3232
  /** All BillingAccountLicenseConfigs for the given billing account. */
3153
3233
  billingAccountLicenseConfigs?: GoogleCloudDiscoveryengineV1alphaBillingAccountLicenseConfig[];
@@ -3256,6 +3336,10 @@ declare namespace gapi.client {
3256
3336
  /** A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. */
3257
3337
  nextPageToken?: string;
3258
3338
  }
3339
+ interface GoogleCloudDiscoveryengineV1alphaListLicenseConfigsUsageStatsResponse {
3340
+ /** All the customer's LicenseConfigUsageStats. */
3341
+ licenseConfigUsageStats?: GoogleCloudDiscoveryengineV1alphaLicenseConfigUsageStats[];
3342
+ }
3259
3343
  interface GoogleCloudDiscoveryengineV1alphaListSampleQueriesResponse {
3260
3344
  /** A token that can be sent as ListSampleQueriesRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. */
3261
3345
  nextPageToken?: string;
@@ -4830,6 +4914,12 @@ declare namespace gapi.client {
4830
4914
  /** Media upload response metadata. */
4831
4915
  mediaResponseInfo?: ApiservingMediaResponseInfo;
4832
4916
  }
4917
+ interface GoogleCloudDiscoveryengineV1alphaUserAnnotations {
4918
+ /** Optional. Whether the agent is pinned, pinned agent will be displayed on the top of the agent list. */
4919
+ pinned?: boolean;
4920
+ /** Optional. Whether the agent has been viewed by the user. */
4921
+ viewed?: boolean;
4922
+ }
4833
4923
  interface GoogleCloudDiscoveryengineV1alphaUserEvent {
4834
4924
  /** 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. */
4835
4925
  attributes?: {
@@ -5139,6 +5229,8 @@ declare namespace gapi.client {
5139
5229
  generativeAnswerConfig?: GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsGenerativeAnswerConfig;
5140
5230
  /** Describes widget (or web app) interaction type */
5141
5231
  interactionType?: string;
5232
+ /** Output only. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin. When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it. */
5233
+ modelConfigs?: {[P in string]: string};
5142
5234
  /** Controls whether result extract is display and how (snippet or extractive answer). Default to no result if unspecified. */
5143
5235
  resultDescriptionType?: string;
5144
5236
  /** Optional. SearchAddonSpec is used to disable add-ons for search. This field is only supported for search requests. */
@@ -5636,6 +5728,8 @@ declare namespace gapi.client {
5636
5728
  enableGetProcessedDocument?: boolean;
5637
5729
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
5638
5730
  enableImageAnnotation?: boolean;
5731
+ /** Optional. If true, the pdf layout will be refined using an LLM. */
5732
+ enableLlmLayoutParsing?: boolean;
5639
5733
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
5640
5734
  enableTableAnnotation?: boolean;
5641
5735
  /** Optional. List of HTML classes to exclude from the parsed content. */
@@ -5667,6 +5761,8 @@ declare namespace gapi.client {
5667
5761
  chatEngineConfig?: GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig;
5668
5762
  /** Output only. Additional information of the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. */
5669
5763
  chatEngineMetadata?: GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata;
5764
+ /** Output only. CMEK-related information for the Engine. */
5765
+ cmekConfig?: GoogleCloudDiscoveryengineV1betaCmekConfig;
5670
5766
  /** Common config spec that specifies the metadata of the engine. */
5671
5767
  commonConfig?: GoogleCloudDiscoveryengineV1betaEngineCommonConfig;
5672
5768
  /** Optional. Configuration for configurable billing approach. */
@@ -5685,6 +5781,8 @@ declare namespace gapi.client {
5685
5781
  industryVertical?: string;
5686
5782
  /** Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. */
5687
5783
  mediaRecommendationEngineConfig?: GoogleCloudDiscoveryengineV1betaEngineMediaRecommendationEngineConfig;
5784
+ /** Optional. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin. When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it. */
5785
+ modelConfigs?: {[P in string]: string};
5688
5786
  /** Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*‍/. Otherwise, an INVALID_ARGUMENT error is returned. */
5689
5787
  name?: string;
5690
5788
  /** Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. */
@@ -6967,6 +7065,8 @@ declare namespace gapi.client {
6967
7065
  enableGetProcessedDocument?: boolean;
6968
7066
  /** Optional. If true, the LLM based annotation is added to the image during parsing. */
6969
7067
  enableImageAnnotation?: boolean;
7068
+ /** Optional. If true, the pdf layout will be refined using an LLM. */
7069
+ enableLlmLayoutParsing?: boolean;
6970
7070
  /** Optional. If true, the LLM based annotation is added to the table during parsing. */
6971
7071
  enableTableAnnotation?: boolean;
6972
7072
  /** Optional. List of HTML classes to exclude from the parsed content. */
@@ -6998,6 +7098,8 @@ declare namespace gapi.client {
6998
7098
  chatEngineConfig?: GoogleCloudDiscoveryengineV1EngineChatEngineConfig;
6999
7099
  /** Output only. Additional information of the Chat Engine. Only applicable if solution_type is SOLUTION_TYPE_CHAT. */
7000
7100
  chatEngineMetadata?: GoogleCloudDiscoveryengineV1EngineChatEngineMetadata;
7101
+ /** Output only. CMEK-related information for the Engine. */
7102
+ cmekConfig?: GoogleCloudDiscoveryengineV1CmekConfig;
7001
7103
  /** Common config spec that specifies the metadata of the engine. */
7002
7104
  commonConfig?: GoogleCloudDiscoveryengineV1EngineCommonConfig;
7003
7105
  /** Optional. Configuration for configurable billing approach. */
@@ -7016,6 +7118,8 @@ declare namespace gapi.client {
7016
7118
  industryVertical?: string;
7017
7119
  /** Configurations for the Media Engine. Only applicable on the data stores with solution_type SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical. */
7018
7120
  mediaRecommendationEngineConfig?: GoogleCloudDiscoveryengineV1EngineMediaRecommendationEngineConfig;
7121
+ /** Optional. Maps a model name to its specific configuration for this engine. This allows admin users to turn on/off individual models. This only stores models whose states are overridden by the admin. When the state is unspecified, or model_configs is empty for this model, the system will decide if this model should be available or not based on the default configuration. For example, a preview model should be disabled by default if the admin has not chosen to enable it. */
7122
+ modelConfigs?: {[P in string]: string};
7019
7123
  /** Immutable. Identifier. The fully qualified resource name of the engine. This field must be a UTF-8 encoded string with a length limit of 1024 characters. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` engine should be 1-63 characters, and valid characters are /a-z0-9*‍/. Otherwise, an INVALID_ARGUMENT error is returned. */
7020
7124
  name?: string;
7021
7125
  /** Configurations for the Search Engine. Only applicable if solution_type is SOLUTION_TYPE_SEARCH. */
@@ -7859,6 +7963,26 @@ declare namespace gapi.client {
7859
7963
  /** Output only. The id of the youtube video. */
7860
7964
  videoId?: string;
7861
7965
  }
7966
+ interface GoogleIamV1Binding {
7967
+ /** The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
7968
+ condition?: GoogleTypeExpr;
7969
+ /** Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}/*`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/subject/{subject_attribute_value}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribute.{attribute_name}/{attribute_value}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id}/*`: All identities in a workload identity pool. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. */
7970
+ members?: string[];
7971
+ /** Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). */
7972
+ role?: string;
7973
+ }
7974
+ interface GoogleIamV1Policy {
7975
+ /** Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. */
7976
+ bindings?: GoogleIamV1Binding[];
7977
+ /** `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. */
7978
+ etag?: string;
7979
+ /** Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
7980
+ version?: number;
7981
+ }
7982
+ interface GoogleIamV1SetIamPolicyRequest {
7983
+ /** REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them. */
7984
+ policy?: GoogleIamV1Policy;
7985
+ }
7862
7986
  interface GoogleLongrunningCancelOperationRequest {}
7863
7987
  interface GoogleLongrunningListOperationsResponse {
7864
7988
  /** The standard List next-page token. */
@@ -13207,6 +13331,60 @@ declare namespace gapi.client {
13207
13331
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13208
13332
  uploadType?: string;
13209
13333
  }): Request<GoogleLongrunningOperation>;
13334
+ /** Disables an Agent. The `state` of the Agent becomes `DISABLED`. Can be called on an Agent in the state `ENABLED` or`SUSPENDED`, otherwise it returns an error. */
13335
+ disableAgent(request?: {
13336
+ /** V1 error format. */
13337
+ '$.xgafv'?: string;
13338
+ /** OAuth access token. */
13339
+ access_token?: string;
13340
+ /** Data format for response. */
13341
+ alt?: string;
13342
+ /** JSONP */
13343
+ callback?: string;
13344
+ /** Selector specifying which fields to include in a partial response. */
13345
+ fields?: string;
13346
+ /** 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. */
13347
+ key?: string;
13348
+ /** Required. The name of the Agent to disable. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` */
13349
+ name: string;
13350
+ /** OAuth 2.0 token for the current user. */
13351
+ oauth_token?: string;
13352
+ /** Returns response with indentations and line breaks. */
13353
+ prettyPrint?: boolean;
13354
+ /** 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. */
13355
+ quotaUser?: string;
13356
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13357
+ upload_protocol?: string;
13358
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13359
+ uploadType?: string;
13360
+ }): Request<GoogleCloudDiscoveryengineV1alphaAgent>;
13361
+ /** Enables an Agent. The `state` of the Agent becomes `ENABLED`. Can be called on an Agent in the state `DISABLED` or 'SUSPENDED', otherwise it returns an error. */
13362
+ enableAgent(request?: {
13363
+ /** V1 error format. */
13364
+ '$.xgafv'?: string;
13365
+ /** OAuth access token. */
13366
+ access_token?: string;
13367
+ /** Data format for response. */
13368
+ alt?: string;
13369
+ /** JSONP */
13370
+ callback?: string;
13371
+ /** Selector specifying which fields to include in a partial response. */
13372
+ fields?: string;
13373
+ /** 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. */
13374
+ key?: string;
13375
+ /** Required. The name of the Agent to enable. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` */
13376
+ name: string;
13377
+ /** OAuth 2.0 token for the current user. */
13378
+ oauth_token?: string;
13379
+ /** Returns response with indentations and line breaks. */
13380
+ prettyPrint?: boolean;
13381
+ /** 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. */
13382
+ quotaUser?: string;
13383
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13384
+ upload_protocol?: string;
13385
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13386
+ uploadType?: string;
13387
+ }): Request<GoogleCloudDiscoveryengineV1alphaAgent>;
13210
13388
  /** Gets an Agent. */
13211
13389
  get(request?: {
13212
13390
  /** V1 error format. */
@@ -13234,6 +13412,66 @@ declare namespace gapi.client {
13234
13412
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13235
13413
  uploadType?: string;
13236
13414
  }): Request<GoogleCloudDiscoveryengineV1alphaAgent>;
13415
+ /** Returns a AgentView for a given Agent, which contains additional information about the Agent. */
13416
+ getAgentView(request?: {
13417
+ /** V1 error format. */
13418
+ '$.xgafv'?: string;
13419
+ /** OAuth access token. */
13420
+ access_token?: string;
13421
+ /** Data format for response. */
13422
+ alt?: string;
13423
+ /** JSONP */
13424
+ callback?: string;
13425
+ /** Selector specifying which fields to include in a partial response. */
13426
+ fields?: string;
13427
+ /** 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. */
13428
+ key?: string;
13429
+ /** Optional. The UI language currently shown to the user. Specifying this field request that the texts in the AgentView in the response should be translated to this language. */
13430
+ languageCode?: string;
13431
+ /** Optional. The maximum number of suggested prompts to return per agent. */
13432
+ maxSuggestedPrompts?: number;
13433
+ /** Required. The name of the Agent to get. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` */
13434
+ name: string;
13435
+ /** OAuth 2.0 token for the current user. */
13436
+ oauth_token?: string;
13437
+ /** Returns response with indentations and line breaks. */
13438
+ prettyPrint?: boolean;
13439
+ /** 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. */
13440
+ quotaUser?: string;
13441
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13442
+ upload_protocol?: string;
13443
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13444
+ uploadType?: string;
13445
+ }): Request<GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse>;
13446
+ /** Gets the access control policy for an agent resource. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. */
13447
+ getIamPolicy(request?: {
13448
+ /** V1 error format. */
13449
+ '$.xgafv'?: string;
13450
+ /** OAuth access token. */
13451
+ access_token?: string;
13452
+ /** Data format for response. */
13453
+ alt?: string;
13454
+ /** JSONP */
13455
+ callback?: string;
13456
+ /** Selector specifying which fields to include in a partial response. */
13457
+ fields?: string;
13458
+ /** 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. */
13459
+ key?: string;
13460
+ /** OAuth 2.0 token for the current user. */
13461
+ oauth_token?: string;
13462
+ /** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */
13463
+ 'options.requestedPolicyVersion'?: number;
13464
+ /** Returns response with indentations and line breaks. */
13465
+ prettyPrint?: boolean;
13466
+ /** 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. */
13467
+ quotaUser?: string;
13468
+ /** REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
13469
+ resource: string;
13470
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13471
+ upload_protocol?: string;
13472
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13473
+ uploadType?: string;
13474
+ }): Request<GoogleIamV1Policy>;
13237
13475
  /** Lists all Agents under an Assistant which were created by the caller. */
13238
13476
  list(request?: {
13239
13477
  /** V1 error format. */
@@ -13329,6 +13567,65 @@ declare namespace gapi.client {
13329
13567
  },
13330
13568
  body: GoogleCloudDiscoveryengineV1alphaAgent,
13331
13569
  ): Request<GoogleCloudDiscoveryengineV1alphaAgent>;
13570
+ /** Sets the access control policy for an agent resource. A `NOT_FOUND` error is returned if the resource does not exist. Policy can only contain `roles/discoveryengine.agentUser`, `roles/discoveryengine.agentViewer` and `roles/discoveryengine.agentEditor` roles. */
13571
+ setIamPolicy(
13572
+ request: {
13573
+ /** V1 error format. */
13574
+ '$.xgafv'?: string;
13575
+ /** OAuth access token. */
13576
+ access_token?: string;
13577
+ /** Data format for response. */
13578
+ alt?: string;
13579
+ /** JSONP */
13580
+ callback?: string;
13581
+ /** Selector specifying which fields to include in a partial response. */
13582
+ fields?: string;
13583
+ /** 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. */
13584
+ key?: string;
13585
+ /** OAuth 2.0 token for the current user. */
13586
+ oauth_token?: string;
13587
+ /** Returns response with indentations and line breaks. */
13588
+ prettyPrint?: boolean;
13589
+ /** 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. */
13590
+ quotaUser?: string;
13591
+ /** REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. */
13592
+ resource: string;
13593
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13594
+ upload_protocol?: string;
13595
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13596
+ uploadType?: string;
13597
+ },
13598
+ body: GoogleIamV1SetIamPolicyRequest,
13599
+ ): Request<GoogleIamV1Policy>;
13600
+ /** Suspends an Agent. It is still available for viewing but not for use. The `state` of the Agent becomes `SUSPENDED`. Can be called on an Agent in the state `ENABLED`, otherwise it returns an error. */
13601
+ suspendAgent(request?: {
13602
+ /** V1 error format. */
13603
+ '$.xgafv'?: string;
13604
+ /** OAuth access token. */
13605
+ access_token?: string;
13606
+ /** Data format for response. */
13607
+ alt?: string;
13608
+ /** JSONP */
13609
+ callback?: string;
13610
+ /** Selector specifying which fields to include in a partial response. */
13611
+ fields?: string;
13612
+ /** 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. */
13613
+ key?: string;
13614
+ /** Required. The name of the Agent to suspend. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}` */
13615
+ name: string;
13616
+ /** OAuth 2.0 token for the current user. */
13617
+ oauth_token?: string;
13618
+ /** Returns response with indentations and line breaks. */
13619
+ prettyPrint?: boolean;
13620
+ /** 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. */
13621
+ quotaUser?: string;
13622
+ /** Required. The reason for suspending the Agent. This will be shown to the users of the Agent. */
13623
+ suspensionReason?: string;
13624
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13625
+ upload_protocol?: string;
13626
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13627
+ uploadType?: string;
13628
+ }): Request<GoogleCloudDiscoveryengineV1alphaAgent>;
13332
13629
  files: FilesResource;
13333
13630
  }
13334
13631
  interface CannedQueriesResource {
@@ -13572,6 +13869,47 @@ declare namespace gapi.client {
13572
13869
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13573
13870
  uploadType?: string;
13574
13871
  }): Request<GoogleCloudDiscoveryengineV1alphaAssistant>;
13872
+ /** Lists the data for displaying the Agents under an Assistant which are available to the caller. */
13873
+ listAvailableAgentViews(request?: {
13874
+ /** V1 error format. */
13875
+ '$.xgafv'?: string;
13876
+ /** OAuth access token. */
13877
+ access_token?: string;
13878
+ /** Optional. The origin of the Agent. */
13879
+ agentOrigin?: string;
13880
+ /** Data format for response. */
13881
+ alt?: string;
13882
+ /** JSONP */
13883
+ callback?: string;
13884
+ /** Selector specifying which fields to include in a partial response. */
13885
+ fields?: string;
13886
+ /** Optional. The filter syntax consists of an expression language for constructing a predicate from one or more fields of the files being filtered. Filter expression is case-sensitive. Allowed fields are: * `display_name` * `state` Some examples of filters would be: * `display_name = 'agent_1'` * `display_name = 'agent_1' AND state = ENABLED` For a full description of the filter format, please see https://google.aip.dev/160. */
13887
+ filter?: string;
13888
+ /** 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. */
13889
+ key?: string;
13890
+ /** Optional. The UI language currently shown to the user. Specifying this field request that the texts in the AgentViews in the response should be translated to this language. */
13891
+ languageCode?: string;
13892
+ /** Optional. The maximum number of suggested prompts to return per agent. */
13893
+ maxSuggestedPrompts?: number;
13894
+ /** OAuth 2.0 token for the current user. */
13895
+ oauth_token?: string;
13896
+ /** Optional. Maximum number of AgentViewss to return. If unspecified, defaults to 100. The maximum allowed value is 1000; anything above that will be coerced down to 1000. */
13897
+ pageSize?: number;
13898
+ /** Optional. A page token ListAvailableAgentViewsResponse.next_page_token, received from a previous AgentService.ListAvailableAgentViews call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListAvailableAgentViews must match the call that provided the page token. */
13899
+ pageToken?: string;
13900
+ /** Required. The parent resource name. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` */
13901
+ parent: string;
13902
+ /** Returns response with indentations and line breaks. */
13903
+ prettyPrint?: boolean;
13904
+ /** 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. */
13905
+ quotaUser?: string;
13906
+ /** Optional. The field to sort by. Can have the following values: - display-name: The display name of the agent. - description: The description of the agent. - create-time: The creation time of the agent. - state: The state of the agent. */
13907
+ sortBy?: string;
13908
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
13909
+ upload_protocol?: string;
13910
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
13911
+ uploadType?: string;
13912
+ }): Request<GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse>;
13575
13913
  /** Updates an Assistant */
13576
13914
  patch(request: {
13577
13915
  /** V1 error format. */
@@ -21723,6 +22061,35 @@ declare namespace gapi.client {
21723
22061
  body: GoogleCloudDiscoveryengineV1alphaUserEvent,
21724
22062
  ): Request<GoogleCloudDiscoveryengineV1alphaUserEvent>;
21725
22063
  }
22064
+ interface LicenseConfigsUsageStatsResource {
22065
+ /** Lists all the LicenseConfigUsageStatss associated with the project. */
22066
+ list(request?: {
22067
+ /** V1 error format. */
22068
+ '$.xgafv'?: string;
22069
+ /** OAuth access token. */
22070
+ access_token?: string;
22071
+ /** Data format for response. */
22072
+ alt?: string;
22073
+ /** JSONP */
22074
+ callback?: string;
22075
+ /** Selector specifying which fields to include in a partial response. */
22076
+ fields?: string;
22077
+ /** 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. */
22078
+ key?: string;
22079
+ /** OAuth 2.0 token for the current user. */
22080
+ oauth_token?: string;
22081
+ /** Required. The parent branch resource name, such as `projects/{project}/locations/{location}/userStores/{user_store_id}`. */
22082
+ parent: string;
22083
+ /** Returns response with indentations and line breaks. */
22084
+ prettyPrint?: boolean;
22085
+ /** 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. */
22086
+ quotaUser?: string;
22087
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
22088
+ upload_protocol?: string;
22089
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
22090
+ uploadType?: string;
22091
+ }): Request<GoogleCloudDiscoveryengineV1alphaListLicenseConfigsUsageStatsResponse>;
22092
+ }
21726
22093
  interface OperationsResource {
21727
22094
  /** 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. */
21728
22095
  get(request?: {
@@ -21800,7 +22167,7 @@ declare namespace gapi.client {
21800
22167
  callback?: string;
21801
22168
  /** Selector specifying which fields to include in a partial response. */
21802
22169
  fields?: string;
21803
- /** Optional. Filter for the list request. Supported fields: * `license_assignment_state` Examples: * `license_assignment_state = ASSIGNED` to list assigned user licenses. * `license_assignment_state = NO_LICENSE` to list not licensed users. * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users who attempted login but no license assigned. * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter out users who attempted login but no license assigned. */
22170
+ /** Optional. Filter for the list request. Supported fields: * `license`_`assignment`_`state` * `user_principal` * `user_profile` Examples: * `license`_`assignment`_`state = ASSIGNED` to list assigned user licenses. * `license`_`assignment`_`state = NO_LICENSE` to list not licensed users. * `license`_`assignment`_`state = NO_LICENSE_ATTEMPTED_LOGIN` to list users who attempted login but no license assigned. * `license`_`assignment`_`state != NO_LICENSE_ATTEMPTED_LOGIN` to filter out users who attempted login but no license assigned. */
21804
22171
  filter?: string;
21805
22172
  /** 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. */
21806
22173
  key?: string;
@@ -22059,6 +22426,7 @@ declare namespace gapi.client {
22059
22426
  },
22060
22427
  body: GoogleCloudDiscoveryengineV1alphaUserStore,
22061
22428
  ): Request<GoogleCloudDiscoveryengineV1alphaUserStore>;
22429
+ licenseConfigsUsageStats: LicenseConfigsUsageStatsResource;
22062
22430
  operations: OperationsResource;
22063
22431
  userLicenses: UserLicensesResource;
22064
22432
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.1.20251030",
3
+ "version": "0.1.20251109",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",