Skip to content

Commit 374167b

Browse files
fix: pin @sinonjs/fake-timers to unblock build in bigquery (#8121)
* fix: upgrade @types/sinon to unblock build in bigquery * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update dependency formatting * chore: revert accidental changes to types.d.ts * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2be8a3f commit 374167b

2 files changed

Lines changed: 227 additions & 6 deletions

File tree

handwritten/bigquery/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"stream-events": "^1.0.5"
6565
},
6666
"overrides": {
67+
"@sinonjs/fake-timers": "15.1.1",
6768
"@google-cloud/common": {
6869
"google-auth-library": "10.3.0"
6970
}

handwritten/bigquery/src/types.d.ts

Lines changed: 226 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
/**
16-
* Discovery Revision: 20260118
16+
* Discovery Revision: 20260408
1717
*/
1818

1919
/**
@@ -892,7 +892,7 @@ declare namespace bigquery {
892892
};
893893

894894
/**
895-
* Data policy option. For more information, see [Mask data by applying data policies to a column](https://cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column/).
895+
* Data policy option. For more information, see [Mask data by applying data policies to a column](https://docs.cloud.google.com/bigquery/docs/column-data-masking#data-policies-on-column).
896896
*/
897897
type IDataPolicyOption = {
898898
/**
@@ -968,6 +968,10 @@ declare namespace bigquery {
968968
*/
969969
view?: ITableReference;
970970
}>;
971+
/**
972+
* Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery Dataset * BIGLAKE - Dataset is backed by a namespace stored natively in Biglake
973+
*/
974+
catalogSource?: string;
971975
/**
972976
* Output only. The time when this dataset was created, in milliseconds since the epoch.
973977
*/
@@ -1096,7 +1100,7 @@ declare namespace bigquery {
10961100
tagValue?: string;
10971101
}>;
10981102
/**
1099-
* Output only. Same as `type` in `ListFormatDataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog.
1103+
* Output only. Same as `type` in `ListFormatDataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog, * BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API, * BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API.
11001104
*/
11011105
type?: string;
11021106
};
@@ -1123,6 +1127,10 @@ declare namespace bigquery {
11231127
* An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project.
11241128
*/
11251129
datasets?: Array<{
1130+
/**
1131+
* Output only. The origin of the dataset, one of: * (Unset) - Native BigQuery Dataset. * BIGLAKE - Dataset is backed by a namespace stored natively in Biglake.
1132+
*/
1133+
catalogSource?: string;
11261134
/**
11271135
* The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID.
11281136
*/
@@ -1151,6 +1159,10 @@ declare namespace bigquery {
11511159
* The geographic location where the dataset resides.
11521160
*/
11531161
location?: string;
1162+
/**
1163+
* Output only. Same as `type` in `Dataset`. The type of the dataset, one of: * DEFAULT - only accessible by owner and authorized accounts, * PUBLIC - accessible by everyone, * LINKED - linked dataset, * EXTERNAL - dataset with definition in external metadata catalog, * BIGLAKE_ICEBERG - a Biglake dataset accessible through the Iceberg API, * BIGLAKE_HIVE - a Biglake dataset accessible through the Hive API.
1164+
*/
1165+
type?: string;
11541166
}>;
11551167
/**
11561168
* Output only. A hash value of the results page. You can use this property to determine if the page has changed since the last request.
@@ -1262,6 +1274,21 @@ declare namespace bigquery {
12621274
* Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements.
12631275
*/
12641276
deletedRowCount?: string;
1277+
/**
1278+
* Output only. DML mode used.
1279+
*/
1280+
dmlMode?:
1281+
| 'DML_MODE_UNSPECIFIED'
1282+
| 'COARSE_GRAINED_DML'
1283+
| 'FINE_GRAINED_DML';
1284+
/**
1285+
* Output only. Reason for disabling fine-grained DML if applicable.
1286+
*/
1287+
fineGrainedDmlUnusedReason?:
1288+
| 'FINE_GRAINED_DML_UNUSED_REASON_UNSPECIFIED'
1289+
| 'MAX_PARTITION_SIZE_EXCEEDED'
1290+
| 'TABLE_NOT_ENROLLED'
1291+
| 'DML_IN_MULTI_STATEMENT_TRANSACTION';
12651292
/**
12661293
* Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements
12671294
*/
@@ -1729,7 +1756,7 @@ declare namespace bigquery {
17291756
*/
17301757
timestampFormat?: string;
17311758
/**
1732-
* Precisions (maximum number of total digits in base 10) for seconds of TIMESTAMP types that are allowed to the destination table for autodetection mode. Available for the formats: CSV. For the CSV Format, Possible values include: Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have less than 6 digits of subseconds. timestamp(12) for all auto detected TIMESTAMP columns that have more than 6 digits of subseconds. [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of the elements in this array is ignored. Inputs that have higher precision than the highest target precision in this array will be truncated.
1759+
* Precisions (maximum number of total digits in base 10) for seconds of TIMESTAMP types that are allowed to the destination table for autodetection mode. Available for the formats: CSV, PARQUET, and AVRO. Possible values include: Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have less than 6 digits of subseconds. timestamp(12) for all auto detected TIMESTAMP columns that have more than 6 digits of subseconds. [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of the elements in this array is ignored. Inputs that have higher precision than the highest target precision in this array will be truncated.
17331760
*/
17341761
timestampTargetPrecision?: Array<number>;
17351762
};
@@ -1846,6 +1873,119 @@ declare namespace bigquery {
18461873
query?: string;
18471874
};
18481875

1876+
/**
1877+
* Provides error statistics for the query job across all AI function calls.
1878+
*/
1879+
type IGenAiErrorStats = {
1880+
/**
1881+
* A list of unique errors at query level (up to 5, truncated to 100 chars)
1882+
*/
1883+
errors?: Array<string>;
1884+
};
1885+
1886+
/**
1887+
* Provides cost optimization statistics for a GenAi function call.
1888+
*/
1889+
type IGenAiFunctionCostOptimizationStats = {
1890+
/**
1891+
* System generated message to provide insights into cost optimization state.
1892+
*/
1893+
message?: string;
1894+
/**
1895+
* Number of rows inferred via cost optimized workflow.
1896+
*/
1897+
numCostOptimizedRows?: string;
1898+
};
1899+
1900+
/**
1901+
* Provides error statistics for a GenAi function call.
1902+
*/
1903+
type IGenAiFunctionErrorStats = {
1904+
/**
1905+
* A list of unique errors at function level (up to 5, truncated to 100 chars).
1906+
*/
1907+
errors?: Array<string>;
1908+
/**
1909+
* Number of failed rows processed by the function
1910+
*/
1911+
numFailedRows?: string;
1912+
};
1913+
1914+
/**
1915+
* Provides statistics for each Ai function call within a query.
1916+
*/
1917+
type IGenAiFunctionStats = {
1918+
/**
1919+
* Cost optimization stats if applied on the rows processed by the function.
1920+
*/
1921+
costOptimizationStats?: IGenAiFunctionCostOptimizationStats;
1922+
/**
1923+
* Error stats for the function.
1924+
*/
1925+
errorStats?: IGenAiFunctionErrorStats;
1926+
/**
1927+
* Name of the function.
1928+
*/
1929+
functionName?: string;
1930+
/**
1931+
* Number of rows processed by this GenAi function. This includes all cost_optimized, llm_inferred and failed_rows.
1932+
*/
1933+
numProcessedRows?: string;
1934+
/**
1935+
* User input prompt of the function (truncated to 20 chars).
1936+
*/
1937+
prompt?: string;
1938+
};
1939+
1940+
/**
1941+
* GenAi stats for the query job.
1942+
*/
1943+
type IGenAiStats = {
1944+
/**
1945+
* Job level error stats across all GenAi functions
1946+
*/
1947+
errorStats?: IGenAiErrorStats;
1948+
/**
1949+
* Function level stats for GenAi Functions. See https://docs.cloud.google.com/bigquery/docs/generative-ai-overview
1950+
*/
1951+
functionStats?: Array<IGenAiFunctionStats>;
1952+
};
1953+
1954+
/**
1955+
* Optional. Definition of how values are generated for the field. Only valid for top-level schema fields (not nested fields).
1956+
*/
1957+
type IGeneratedColumn = {
1958+
/**
1959+
* Definition of the expression used to generate the field.
1960+
*/
1961+
generatedExpressionInfo?: IGeneratedExpressionInfo;
1962+
/**
1963+
* Optional. Dictates when system generated values are used to populate the field.
1964+
*/
1965+
generatedMode?:
1966+
| 'GENERATED_MODE_UNSPECIFIED'
1967+
| 'GENERATED_ALWAYS'
1968+
| 'GENERATED_BY_DEFAULT';
1969+
};
1970+
1971+
/**
1972+
* Definition of the expression used to generate the field.
1973+
*/
1974+
type IGeneratedExpressionInfo = {
1975+
/**
1976+
* Optional. Whether the column generation is done asynchronously.
1977+
*/
1978+
asynchronous?: boolean;
1979+
/**
1980+
* Optional. The generation expression (e.g. AI.EMBED(...)) used to generated the field.
1981+
*/
1982+
generationExpression?: string;
1983+
/**
1984+
* Optional. Whether the generated column is stored in the table.
1985+
*/
1986+
stored?: boolean;
1987+
};
1988+
18491989
/**
18501990
* Request message for `GetIamPolicy` method.
18511991
*/
@@ -2164,6 +2304,22 @@ declare namespace bigquery {
21642304
| 'DISABLED_REASON_UNSPECIFIED'
21652305
| 'OTHER'
21662306
| 'UNSUPPORTED_OPERATOR';
2307+
/**
2308+
* Output only. Additional human-readable clarification, if available, for DisabledReason.
2309+
*/
2310+
disabledReasonDetails?: string;
2311+
/**
2312+
* Output only. The time at which the first incremental result was written. If the query needed to restart internally, this only describes the final attempt.
2313+
*/
2314+
firstIncrementalRowTime?: string;
2315+
/**
2316+
* Output only. Number of rows that were in the latest result set before query completion.
2317+
*/
2318+
incrementalRowCount?: string;
2319+
/**
2320+
* Output only. The time at which the last incremental result was written. Does not include the final result written after query completion.
2321+
*/
2322+
lastIncrementalRowTime?: string;
21672323
/**
21682324
* Output only. The time at which the result table's contents were modified. May be absent if no results have been written or the query has completed.
21692325
*/
@@ -2677,7 +2833,7 @@ declare namespace bigquery {
26772833
*/
26782834
timestampFormat?: string;
26792835
/**
2680-
* Precisions (maximum number of total digits in base 10) for seconds of TIMESTAMP types that are allowed to the destination table for autodetection mode. Available for the formats: CSV. For the CSV Format, Possible values include: Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have less than 6 digits of subseconds. timestamp(12) for all auto detected TIMESTAMP columns that have more than 6 digits of subseconds. [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of the elements in this array is ignored. Inputs that have higher precision than the highest target precision in this array will be truncated.
2836+
* Precisions (maximum number of total digits in base 10) for seconds of TIMESTAMP types that are allowed to the destination table for autodetection mode. Available for the formats: CSV, PARQUET, and AVRO. Possible values include: Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have less than 6 digits of subseconds. timestamp(12) for all auto detected TIMESTAMP columns that have more than 6 digits of subseconds. [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of the elements in this array is ignored. Inputs that have higher precision than the highest target precision in this array will be truncated.
26812837
*/
26822838
timestampTargetPrecision?: Array<number>;
26832839
/**
@@ -3134,6 +3290,10 @@ declare namespace bigquery {
31343290
* Output only. Job cost breakdown as bigquery internal cost and external service costs.
31353291
*/
31363292
externalServiceCosts?: Array<IExternalServiceCost>;
3293+
/**
3294+
* Output only. Statistics related to GenAI usage in the query.
3295+
*/
3296+
genAiStats?: IGenAiStats;
31373297
/**
31383298
* Output only. Statistics related to incremental query results, if enabled for the query. This feature is not yet available.
31393299
*/
@@ -3182,6 +3342,10 @@ declare namespace bigquery {
31823342
* Output only. Describes execution plan for the query.
31833343
*/
31843344
queryPlan?: Array<IExplainQueryStage>;
3345+
/**
3346+
* Output only. Referenced property graphs for the job. Queries that reference more than 50 property graphs will not have a complete list.
3347+
*/
3348+
referencedPropertyGraphs?: Array<IPropertyGraphReference>;
31853349
/**
31863350
* Output only. Referenced routines for the job.
31873351
*/
@@ -3944,7 +4108,7 @@ declare namespace bigquery {
39444108
*/
39454109
nextPageToken?: string;
39464110
/**
3947-
* Projects to which the user has at least READ access.
4111+
* Projects to which the user has at least READ access. This field can be omitted if `totalItems` is 0.
39484112
*/
39494113
projects?: Array<{
39504114
/**
@@ -3984,6 +4148,24 @@ declare namespace bigquery {
39844148
projectId?: string;
39854149
};
39864150

4151+
/**
4152+
* Id path of a property graph.
4153+
*/
4154+
type IPropertyGraphReference = {
4155+
/**
4156+
* Required. The ID of the dataset containing this property graph.
4157+
*/
4158+
datasetId?: string;
4159+
/**
4160+
* Required. The ID of the project containing this property graph.
4161+
*/
4162+
projectId?: string;
4163+
/**
4164+
* Required. The ID of the property graph. The ID must contain only letters (a-z, A-Z), numbers (0-9), or underscores (_). The maximum length is 256 characters.
4165+
*/
4166+
propertyGraphId?: string;
4167+
};
4168+
39874169
/**
39884170
* The column metadata index pruning statistics.
39894171
*/
@@ -4493,6 +4675,10 @@ declare namespace bigquery {
44934675
* Optional.
44944676
*/
44954677
arguments?: Array<IArgument>;
4678+
/**
4679+
* Output only. The build status of the routine. This field is only applicable to Python UDFs. [Preview](https://cloud.google.com/products/#product-launch-stages)
4680+
*/
4681+
buildStatus?: IRoutineBuildStatus;
44964682
/**
44974683
* Output only. The time when this routine was created, in milliseconds since the epoch.
44984684
*/
@@ -4585,6 +4771,36 @@ declare namespace bigquery {
45854771
strictMode?: boolean;
45864772
};
45874773

4774+
/**
4775+
* The status of a routine build.
4776+
*/
4777+
type IRoutineBuildStatus = {
4778+
/**
4779+
* Output only. The time taken for the image build. Populated only after the build succeeds or fails.
4780+
*/
4781+
buildDuration?: string;
4782+
/**
4783+
* Output only. The current build state of the routine.
4784+
*/
4785+
buildState?:
4786+
| 'BUILD_STATE_UNSPECIFIED'
4787+
| 'IN_PROGRESS'
4788+
| 'SUCCEEDED'
4789+
| 'FAILED';
4790+
/**
4791+
* Output only. The time when the build state was updated last.
4792+
*/
4793+
buildStateUpdateTime?: string;
4794+
/**
4795+
* Output only. A result object that will be present only if the build has failed.
4796+
*/
4797+
errorResult?: IErrorProto;
4798+
/**
4799+
* Output only. The size of the image in bytes. Populated only after the build succeeds.
4800+
*/
4801+
imageSizeBytes?: string;
4802+
};
4803+
45884804
/**
45894805
* Id path of a routine.
45904806
*/
@@ -5521,6 +5737,10 @@ declare namespace bigquery {
55215737
* Optional. Definition of the foreign data type. Only valid for top-level schema fields (not nested fields). If the type is FOREIGN, this field is required.
55225738
*/
55235739
foreignTypeDefinition?: string;
5740+
/**
5741+
* Optional. Definition of how values are generated for the field. Only valid for top-level schema fields (not nested fields).
5742+
*/
5743+
generatedColumn?: IGeneratedColumn;
55245744
/**
55255745
* Optional. Maximum length of values of this field for STRINGS or BYTES. If max_length is not specified, no maximum length constraint is imposed on this field. If type = "STRING", then max_length represents the maximum UTF-8 length of strings in this field. If type = "BYTES", then max_length represents the maximum number of bytes in this field. It is invalid to set this field if type ≠ "STRING" and ≠ "BYTES".
55265746
*/

0 commit comments

Comments
 (0)