@maxim_mazurok/gapi.client.discoveryengine-v1alpha 0.0.20240530 → 0.0.20240607

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 +257 -1
  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: 20240530
12
+ // Revision: 20240607
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,6 +28,64 @@ declare namespace gapi.client {
28
28
  ): void;
29
29
 
30
30
  namespace discoveryengine {
31
+ interface GoogleApiDistribution {
32
+ /** The number of values in each bucket of the histogram, as described in `bucket_options`. If the distribution does not have a histogram, then omit this field. If there is a histogram, then the sum of the values in `bucket_counts` must equal the value in the `count` field of the distribution. If present, `bucket_counts` should contain N values, where N is the number of buckets specified in `bucket_options`. If you supply fewer than N values, the remaining values are assumed to be 0. The order of the values in `bucket_counts` follows the bucket numbering schemes described for the three bucket types. The first value must be the count for the underflow bucket (number 0). The next N-2 values are the counts for the finite buckets (number 1 through N-2). The N'th value in `bucket_counts` is the count for the overflow bucket (number N-1). */
33
+ bucketCounts?: string[];
34
+ /** Defines the histogram bucket boundaries. If the distribution does not contain a histogram, then omit this field. */
35
+ bucketOptions?: GoogleApiDistributionBucketOptions;
36
+ /** The number of values in the population. Must be non-negative. This value must equal the sum of the values in `bucket_counts` if a histogram is provided. */
37
+ count?: string;
38
+ /** Must be in increasing order of `value` field. */
39
+ exemplars?: GoogleApiDistributionExemplar[];
40
+ /** The arithmetic mean of the values in the population. If `count` is zero then this field must be zero. */
41
+ mean?: number;
42
+ /** If specified, contains the range of the population values. The field must not be present if the `count` is zero. */
43
+ range?: GoogleApiDistributionRange;
44
+ /** The sum of squared deviations from the mean of the values in the population. For values x_i this is: Sum[i=1..n]((x_i - mean)^2) Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition describes Welford's method for accumulating this sum in one pass. If `count` is zero then this field must be zero. */
45
+ sumOfSquaredDeviation?: number;
46
+ }
47
+ interface GoogleApiDistributionBucketOptions {
48
+ /** The explicit buckets. */
49
+ explicitBuckets?: GoogleApiDistributionBucketOptionsExplicit;
50
+ /** The exponential buckets. */
51
+ exponentialBuckets?: GoogleApiDistributionBucketOptionsExponential;
52
+ /** The linear bucket. */
53
+ linearBuckets?: GoogleApiDistributionBucketOptionsLinear;
54
+ }
55
+ interface GoogleApiDistributionBucketOptionsExplicit {
56
+ /** The values must be monotonically increasing. */
57
+ bounds?: number[];
58
+ }
59
+ interface GoogleApiDistributionBucketOptionsExponential {
60
+ /** Must be greater than 1. */
61
+ growthFactor?: number;
62
+ /** Must be greater than 0. */
63
+ numFiniteBuckets?: number;
64
+ /** Must be greater than 0. */
65
+ scale?: number;
66
+ }
67
+ interface GoogleApiDistributionBucketOptionsLinear {
68
+ /** Must be greater than 0. */
69
+ numFiniteBuckets?: number;
70
+ /** Lower bound of the first bucket. */
71
+ offset?: number;
72
+ /** Must be greater than 0. */
73
+ width?: number;
74
+ }
75
+ interface GoogleApiDistributionExemplar {
76
+ /** Contextual information about the example value. Examples are: Trace: type.googleapis.com/google.monitoring.v3.SpanContext Literal string: type.googleapis.com/google.protobuf.StringValue Labels dropped during aggregation: type.googleapis.com/google.monitoring.v3.DroppedLabels There may be only a single attachment of any given message type in a single exemplar, and this is enforced by the system. */
77
+ attachments?: Array<{[P in string]: any}>;
78
+ /** The observation (sampling) time of the above value. */
79
+ timestamp?: string;
80
+ /** Value of the exemplar point. This value determines to which bucket the exemplar belongs. */
81
+ value?: number;
82
+ }
83
+ interface GoogleApiDistributionRange {
84
+ /** The maximum of the population values. */
85
+ max?: number;
86
+ /** The minimum of the population values. */
87
+ min?: number;
88
+ }
31
89
  interface GoogleApiHttpBody {
32
90
  /** The HTTP Content-Type header value specifying the content type of the body. */
33
91
  contentType?: string;
@@ -36,6 +94,12 @@ declare namespace gapi.client {
36
94
  /** Application specific response metadata. Must be set in the first response for streaming APIs. */
37
95
  extensions?: Array<{[P in string]: any}>;
38
96
  }
97
+ interface GoogleApiMonitoredResource {
98
+ /** Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels `"project_id"`, `"instance_id"`, and `"zone"`. */
99
+ labels?: {[P in string]: string};
100
+ /** Required. The monitored resource type. This field must match the `type` field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is `gce_instance`. Some descriptors include the service name in the type; for example, the type of a Datastream stream is `datastream.googleapis.com/Stream`. */
101
+ type?: string;
102
+ }
39
103
  interface GoogleCloudDiscoveryengineLoggingErrorContext {
40
104
  /** The HTTP request which was processed when the error was triggered. */
41
105
  httpRequest?: GoogleCloudDiscoveryengineLoggingHttpRequestContext;
@@ -493,6 +557,36 @@ declare namespace gapi.client {
493
557
  /** The threshold (in [0,1]) used for determining whether a fact must be cited for a claim in the answer candidate. Choosing a higher threshold will lead to fewer but very strong citations, while choosing a lower threshold may lead to more but somewhat weaker citations. If unset, the threshold will default to 0.6. */
494
558
  citationThreshold?: number;
495
559
  }
560
+ interface GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest {
561
+ /** A Requirement.type specifying the requirement to check. */
562
+ requirementType?: string;
563
+ /** The resources to be checked for this requirement. */
564
+ resources?: GoogleApiMonitoredResource[];
565
+ }
566
+ interface GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse {
567
+ /** Metric results. */
568
+ metricResults?: GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult[];
569
+ /** Timestamp of the oldest calculated metric (i.e. the most stale metric). Indicates that the `requirement_result` may not accurately reflect any Event and Product Catalog updates performed after this time. */
570
+ oldestMetricTimestamp?: string;
571
+ /** Requirement definition. */
572
+ requirement?: GoogleCloudDiscoveryengineV1alphaRequirement;
573
+ /** The condition for evaluating the requirement result. */
574
+ requirementCondition?: GoogleTypeExpr;
575
+ /** Requirement result, e.g. pass or fail. */
576
+ requirementResult?: string;
577
+ }
578
+ interface GoogleCloudDiscoveryengineV1alphaCheckRequirementResponseMetricQueryResult {
579
+ /** Type identifier of the metric corresponding to this query result. */
580
+ metricType?: string;
581
+ /** This metric query name is mapping to variables in the requirement_condition. */
582
+ name?: string;
583
+ /** Time corresponding to when this metric value was calculated. */
584
+ timestamp?: string;
585
+ /** The unit in which this metric is reported. Follows [The Unified Code for Units of Measure](https://unitsofmeasure.org/ucum.html) standard. */
586
+ unit?: string;
587
+ /** Value of the metric query. */
588
+ value?: GoogleMonitoringV3TypedValue;
589
+ }
496
590
  interface GoogleCloudDiscoveryengineV1alphaChunk {
497
591
  /** Output only. Metadata of the current chunk. */
498
592
  chunkMetadata?: GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata;
@@ -1559,6 +1653,52 @@ declare namespace gapi.client {
1559
1653
  /** Required. The version string of the terms of service to update. */
1560
1654
  serviceTermVersion?: string;
1561
1655
  }
1656
+ interface GoogleCloudDiscoveryengineV1alphaRequirement {
1657
+ /** The condition for evaluating the requirement result. Variables in the expression should be provided by `metrics_bindings` or `threshold_bindings`. Where `metrics_bindings` are used for computed metrics and `threshold_bindings` are used to define thresholds for corresponding `metric_bindings`. */
1658
+ condition?: GoogleTypeExpr;
1659
+ /** The description of the requirement. */
1660
+ description?: string;
1661
+ /** The name of the requirement. */
1662
+ displayName?: string;
1663
+ /** A list of the metric bindings to be used in `condition`. */
1664
+ metricBindings?: GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding[];
1665
+ /** A list of threshold bindings to be used in `condition`. */
1666
+ thresholdBindings?: GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding[];
1667
+ /** The requirement type, used as an identifier. Must be unique. The type should prefix with service name to avoid possible collision. It's encoraged to use natural hierarchical grouping for similar requirements. Examples: * `library.googleapis.com/books/min_available_books` * `discoveryengine.googleapis.com/media_rec/recommended_for_you/conversion_rate` */
1668
+ type?: string;
1669
+ /** A list of the metric bindings to be used in `condition`. */
1670
+ violationSamplesBindings?: GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding[];
1671
+ }
1672
+ interface GoogleCloudDiscoveryengineV1alphaRequirementMetricBinding {
1673
+ /** The category of the metric's target resource. Example: "Events" */
1674
+ category?: string;
1675
+ /** Human readable description of the corresponding metric filter. */
1676
+ description?: string;
1677
+ /** The filter string used for metrics query. Example: "metric.type = \"discoveryengine.googleapis.com/events/day_count\" AND " "metric.conditions.time_range = \"NINETY_DAYS\"" */
1678
+ metricFilter?: string;
1679
+ /** The resource being monitored for the metric. */
1680
+ resourceType?: string;
1681
+ /** The variable id to be referenced in `condition`. */
1682
+ variableId?: string;
1683
+ }
1684
+ interface GoogleCloudDiscoveryengineV1alphaRequirementThresholdBinding {
1685
+ /** Threshold to trigger a blocking failure. If not met, the requirement will evaluate as a `FAILURE`. */
1686
+ blockingThreshold?: number;
1687
+ /** Human readable description of the corresponding threshold and sub-requirement. */
1688
+ description?: string;
1689
+ /** The variable id to be referenced in `condition`. Must be unique across all `metric_bindings` and `threshold_bindings`. */
1690
+ variableId?: string;
1691
+ /** Threshold to trigger a warning. If not met, the requirement will evaluate as a `WARNING`. */
1692
+ warningThreshold?: number;
1693
+ }
1694
+ interface GoogleCloudDiscoveryengineV1alphaRequirementViolationSamplesBinding {
1695
+ /** Description of this sample binding. Used by the UI to render user friendly descriptions for each requirement condition. Should be less than 128 characters long. */
1696
+ description?: string;
1697
+ /** The filter string used for samples query. Example: "sample.type = \"retail.googleapis.com/user_event\" AND " "sample.labels.event_type = \"PURCHASE\" " */
1698
+ sampleFilter?: string;
1699
+ /** The variable id to be referenced in `condition`. */
1700
+ variableId?: string;
1701
+ }
1562
1702
  interface GoogleCloudDiscoveryengineV1alphaResumeEngineRequest {}
1563
1703
  interface GoogleCloudDiscoveryengineV1alphaSchema {
1564
1704
  /** Output only. Configurations for fields of the schema. */
@@ -3053,6 +3193,18 @@ declare namespace gapi.client {
3053
3193
  /** The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */
3054
3194
  response?: {[P in string]: any};
3055
3195
  }
3196
+ interface GoogleMonitoringV3TypedValue {
3197
+ /** A Boolean value: `true` or `false`. */
3198
+ boolValue?: boolean;
3199
+ /** A distribution value. */
3200
+ distributionValue?: GoogleApiDistribution;
3201
+ /** A 64-bit double-precision floating-point number. Its magnitude is approximately ±10±300 and it has 16 significant digits of precision. */
3202
+ doubleValue?: number;
3203
+ /** A 64-bit integer. Its range is approximately ±9.2x1018. */
3204
+ int64Value?: string;
3205
+ /** A variable-length string value. */
3206
+ stringValue?: string;
3207
+ }
3056
3208
  interface GoogleProtobufEmpty {}
3057
3209
  interface GoogleRpcStatus {
3058
3210
  /** The status code, which should be an enum value of google.rpc.Code. */
@@ -3070,6 +3222,16 @@ declare namespace gapi.client {
3070
3222
  /** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
3071
3223
  year?: number;
3072
3224
  }
3225
+ interface GoogleTypeExpr {
3226
+ /** Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */
3227
+ description?: string;
3228
+ /** Textual representation of an expression in Common Expression Language syntax. */
3229
+ expression?: string;
3230
+ /** Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */
3231
+ location?: string;
3232
+ /** Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */
3233
+ title?: string;
3234
+ }
3073
3235
  interface OperationsResource {
3074
3236
  /** 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. */
3075
3237
  get(request?: {
@@ -11360,6 +11522,66 @@ declare namespace gapi.client {
11360
11522
  body: GoogleCloudDiscoveryengineV1alphaRankRequest
11361
11523
  ): Request<GoogleCloudDiscoveryengineV1alphaRankResponse>;
11362
11524
  }
11525
+ interface RequirementsResource {
11526
+ /** Check a particular requirement. */
11527
+ checkRequirement(request: {
11528
+ /** V1 error format. */
11529
+ '$.xgafv'?: string;
11530
+ /** OAuth access token. */
11531
+ access_token?: string;
11532
+ /** Data format for response. */
11533
+ alt?: string;
11534
+ /** JSONP */
11535
+ callback?: string;
11536
+ /** Selector specifying which fields to include in a partial response. */
11537
+ fields?: string;
11538
+ /** 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. */
11539
+ key?: string;
11540
+ /** Required. Full resource name of the location. Format `projects/{project_number_or_id}/locations/{location}` */
11541
+ location: string;
11542
+ /** OAuth 2.0 token for the current user. */
11543
+ oauth_token?: string;
11544
+ /** Returns response with indentations and line breaks. */
11545
+ prettyPrint?: boolean;
11546
+ /** 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. */
11547
+ quotaUser?: string;
11548
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11549
+ upload_protocol?: string;
11550
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11551
+ uploadType?: string;
11552
+ /** Request body */
11553
+ resource: GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest;
11554
+ }): Request<GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse>;
11555
+ checkRequirement(
11556
+ request: {
11557
+ /** V1 error format. */
11558
+ '$.xgafv'?: string;
11559
+ /** OAuth access token. */
11560
+ access_token?: string;
11561
+ /** Data format for response. */
11562
+ alt?: string;
11563
+ /** JSONP */
11564
+ callback?: string;
11565
+ /** Selector specifying which fields to include in a partial response. */
11566
+ fields?: string;
11567
+ /** 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. */
11568
+ key?: string;
11569
+ /** Required. Full resource name of the location. Format `projects/{project_number_or_id}/locations/{location}` */
11570
+ location: string;
11571
+ /** OAuth 2.0 token for the current user. */
11572
+ oauth_token?: string;
11573
+ /** Returns response with indentations and line breaks. */
11574
+ prettyPrint?: boolean;
11575
+ /** 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. */
11576
+ quotaUser?: string;
11577
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11578
+ upload_protocol?: string;
11579
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11580
+ uploadType?: string;
11581
+ },
11582
+ body: GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest
11583
+ ): Request<GoogleCloudDiscoveryengineV1alphaCheckRequirementResponse>;
11584
+ }
11363
11585
  interface OperationsResource {
11364
11586
  /** 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. */
11365
11587
  get(request?: {
@@ -11393,6 +11615,39 @@ declare namespace gapi.client {
11393
11615
  operations: OperationsResource;
11394
11616
  }
11395
11617
  interface UserEventsResource {
11618
+ /** Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a third-party domain. This method is used only by the Discovery Engine API JavaScript pixel and Google Tag Manager. Users should not call this method directly. */
11619
+ collect(request?: {
11620
+ /** V1 error format. */
11621
+ '$.xgafv'?: string;
11622
+ /** OAuth access token. */
11623
+ access_token?: string;
11624
+ /** Data format for response. */
11625
+ alt?: string;
11626
+ /** JSONP */
11627
+ callback?: string;
11628
+ /** The event timestamp in milliseconds. This prevents browser caching of otherwise identical get requests. The name is abbreviated to reduce the payload bytes. */
11629
+ ets?: string;
11630
+ /** Selector specifying which fields to include in a partial response. */
11631
+ fields?: string;
11632
+ /** 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. */
11633
+ key?: string;
11634
+ /** OAuth 2.0 token for the current user. */
11635
+ oauth_token?: string;
11636
+ /** Required. The parent DataStore resource name, such as `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. */
11637
+ parent: string;
11638
+ /** Returns response with indentations and line breaks. */
11639
+ prettyPrint?: boolean;
11640
+ /** 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. */
11641
+ quotaUser?: string;
11642
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
11643
+ upload_protocol?: string;
11644
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
11645
+ uploadType?: string;
11646
+ /** The URL including cgi-parameters but excluding the hash fragment with a length limit of 5,000 characters. This is often more useful than the referer URL, because many browsers only send the domain for third-party requests. */
11647
+ uri?: string;
11648
+ /** Required. URL encoded UserEvent proto with a length limit of 2,000,000 characters. */
11649
+ userEvent?: string;
11650
+ }): Request<GoogleApiHttpBody>;
11396
11651
  /** Writes a single user event. */
11397
11652
  write(request: {
11398
11653
  /** V1 error format. */
@@ -11606,6 +11861,7 @@ declare namespace gapi.client {
11606
11861
  groundingConfigs: GroundingConfigsResource;
11607
11862
  operations: OperationsResource;
11608
11863
  rankingConfigs: RankingConfigsResource;
11864
+ requirements: RequirementsResource;
11609
11865
  sampleQuerySets: SampleQuerySetsResource;
11610
11866
  userEvents: UserEventsResource;
11611
11867
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.discoveryengine-v1alpha",
3
- "version": "0.0.20240530",
3
+ "version": "0.0.20240607",
4
4
  "description": "TypeScript typings for Discovery Engine API v1alpha",
5
5
  "repository": {
6
6
  "type": "git",