@maxim_mazurok/gapi.client.digitalassetlinks-v1 0.1.20260310 → 0.2.20260314

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 +45 -12
  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://digitalassetlinks.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260310
12
+ // Revision: 20260314
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -54,7 +54,18 @@ declare namespace gapi.client {
54
54
  }
55
55
  interface BulkCheckResponse {
56
56
  /** Error code for the entire request. Present only if the entire request failed. Individual check errors will not trigger the presence of this field. */
57
- bulkErrorCode?: string;
57
+ bulkErrorCode?:
58
+ | 'ERROR_CODE_UNSPECIFIED'
59
+ | 'ERROR_CODE_INVALID_QUERY'
60
+ | 'ERROR_CODE_FETCH_ERROR'
61
+ | 'ERROR_CODE_FAILED_SSL_VALIDATION'
62
+ | 'ERROR_CODE_REDIRECT'
63
+ | 'ERROR_CODE_TOO_LARGE'
64
+ | 'ERROR_CODE_MALFORMED_HTTP_RESPONSE'
65
+ | 'ERROR_CODE_WRONG_CONTENT_TYPE'
66
+ | 'ERROR_CODE_MALFORMED_CONTENT'
67
+ | 'ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE'
68
+ | 'ERROR_CODE_FETCH_BUDGET_EXHAUSTED';
58
69
  /** List of results for each check request. Results are returned in the same order in which they were sent in the request. */
59
70
  checkResults?: CheckResponse[];
60
71
  }
@@ -66,7 +77,18 @@ declare namespace gapi.client {
66
77
  /** Human-readable message containing information intended to help end users understand, reproduce and debug the result. The message will be in English and we are currently not planning to offer any translations. Please note that no guarantees are made about the contents or format of this string. Any aspect of it may be subject to change without notice. You should not attempt to programmatically parse this data. For programmatic access, use the error_code field below. */
67
78
  debugString?: string;
68
79
  /** Error codes that describe the result of the Check operation. NOTE: Error codes may be populated even when `linked` is true. The error codes do not necessarily imply that the request failed, but rather, specify any errors encountered in the statements file(s) which may or may not impact whether the server determines the requested source and target to be linked. */
69
- errorCode?: string[];
80
+ errorCode?:
81
+ | 'ERROR_CODE_UNSPECIFIED'
82
+ | 'ERROR_CODE_INVALID_QUERY'
83
+ | 'ERROR_CODE_FETCH_ERROR'
84
+ | 'ERROR_CODE_FAILED_SSL_VALIDATION'
85
+ | 'ERROR_CODE_REDIRECT'
86
+ | 'ERROR_CODE_TOO_LARGE'
87
+ | 'ERROR_CODE_MALFORMED_HTTP_RESPONSE'
88
+ | 'ERROR_CODE_WRONG_CONTENT_TYPE'
89
+ | 'ERROR_CODE_MALFORMED_CONTENT'
90
+ | 'ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE'
91
+ | 'ERROR_CODE_FETCH_BUDGET_EXHAUSTED'[];
70
92
  /** Set to true if the assets specified in the request are linked by the relation specified in the request. */
71
93
  linked?: boolean;
72
94
  /** From serving time, how much longer the response should be considered valid barring further updates. REQUIRED */
@@ -78,7 +100,18 @@ declare namespace gapi.client {
78
100
  /** Human-readable message containing information intended to help end users understand, reproduce and debug the result. The message will be in English and we are currently not planning to offer any translations. Please note that no guarantees are made about the contents or format of this string. Any aspect of it may be subject to change without notice. You should not attempt to programmatically parse this data. For programmatic access, use the error_code field below. */
79
101
  debugString?: string;
80
102
  /** Error codes that describe the result of the List operation. */
81
- errorCode?: string[];
103
+ errorCode?:
104
+ | 'ERROR_CODE_UNSPECIFIED'
105
+ | 'ERROR_CODE_INVALID_QUERY'
106
+ | 'ERROR_CODE_FETCH_ERROR'
107
+ | 'ERROR_CODE_FAILED_SSL_VALIDATION'
108
+ | 'ERROR_CODE_REDIRECT'
109
+ | 'ERROR_CODE_TOO_LARGE'
110
+ | 'ERROR_CODE_MALFORMED_HTTP_RESPONSE'
111
+ | 'ERROR_CODE_WRONG_CONTENT_TYPE'
112
+ | 'ERROR_CODE_MALFORMED_CONTENT'
113
+ | 'ERROR_CODE_SECURE_ASSET_INCLUDES_INSECURE'
114
+ | 'ERROR_CODE_FETCH_BUDGET_EXHAUSTED'[];
82
115
  /** From serving time, how much longer the response should be considered valid barring further updates. REQUIRED */
83
116
  maxAge?: string;
84
117
  /** A list of all the matching statements that have been found. */
@@ -110,11 +143,11 @@ declare namespace gapi.client {
110
143
  /** Send a bundle of statement checks in a single RPC to minimize latency and service load. Statements need not be all for the same source and/or target. We recommend using this method when you need to check more than one statement in a short period of time. */
111
144
  bulkCheck(request: {
112
145
  /** V1 error format. */
113
- '$.xgafv'?: string;
146
+ '$.xgafv'?: '1' | '2';
114
147
  /** OAuth access token. */
115
148
  access_token?: string;
116
149
  /** Data format for response. */
117
- alt?: string;
150
+ alt?: 'json' | 'media' | 'proto';
118
151
  /** JSONP */
119
152
  callback?: string;
120
153
  /** Selector specifying which fields to include in a partial response. */
@@ -137,11 +170,11 @@ declare namespace gapi.client {
137
170
  bulkCheck(
138
171
  request: {
139
172
  /** V1 error format. */
140
- '$.xgafv'?: string;
173
+ '$.xgafv'?: '1' | '2';
141
174
  /** OAuth access token. */
142
175
  access_token?: string;
143
176
  /** Data format for response. */
144
- alt?: string;
177
+ alt?: 'json' | 'media' | 'proto';
145
178
  /** JSONP */
146
179
  callback?: string;
147
180
  /** Selector specifying which fields to include in a partial response. */
@@ -164,11 +197,11 @@ declare namespace gapi.client {
164
197
  /** Determines whether the specified (directional) relationship exists between the specified source and target assets. The relation describes the intent of the link between the two assets as claimed by the source asset. An example for such relationships is the delegation of privileges or permissions. This command is most often used by infrastructure systems to check preconditions for an action. For example, a client may want to know if it is OK to send a web URL to a particular mobile app instead. The client can check for the relevant asset link from the website to the mobile app to decide if the operation should be allowed. A note about security: if you specify a secure asset as the source, such as an HTTPS website or an Android app, the API will ensure that any statements used to generate the response have been made in a secure way by the owner of that asset. Conversely, if the source asset is an insecure HTTP website (that is, the URL starts with `http://` instead of `https://`), the API cannot verify its statements securely, and it is not possible to ensure that the website's statements have not been altered by a third party. For more information, see the [Digital Asset Links technical design specification](https://github.com/google/digitalassetlinks/blob/master/well-known/details.md). */
165
198
  check(request?: {
166
199
  /** V1 error format. */
167
- '$.xgafv'?: string;
200
+ '$.xgafv'?: '1' | '2';
168
201
  /** OAuth access token. */
169
202
  access_token?: string;
170
203
  /** Data format for response. */
171
- alt?: string;
204
+ alt?: 'json' | 'media' | 'proto';
172
205
  /** JSONP */
173
206
  callback?: string;
174
207
  /** Selector specifying which fields to include in a partial response. */
@@ -207,11 +240,11 @@ declare namespace gapi.client {
207
240
  /** Retrieves a list of all statements from a given source that match the specified target and statement string. The API guarantees that all statements with secure source assets, such as HTTPS websites or Android apps, have been made in a secure way by the owner of those assets, as described in the [Digital Asset Links technical design specification](https://github.com/google/digitalassetlinks/blob/master/well-known/details.md). Specifically, you should consider that for insecure websites (that is, where the URL starts with `http://` instead of `https://`), this guarantee cannot be made. The `List` command is most useful in cases where the API client wants to know all the ways in which two assets are related, or enumerate all the relationships from a particular source asset. Example: a feature that helps users navigate to related items. When a mobile app is running on a device, the feature would make it easy to navigate to the corresponding web site or Google+ profile. */
208
241
  list(request?: {
209
242
  /** V1 error format. */
210
- '$.xgafv'?: string;
243
+ '$.xgafv'?: '1' | '2';
211
244
  /** OAuth access token. */
212
245
  access_token?: string;
213
246
  /** Data format for response. */
214
- alt?: string;
247
+ alt?: 'json' | 'media' | 'proto';
215
248
  /** JSONP */
216
249
  callback?: string;
217
250
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.digitalassetlinks-v1",
3
- "version": "0.1.20260310",
3
+ "version": "0.2.20260314",
4
4
  "description": "TypeScript typings for Digital Asset Links API v1",
5
5
  "repository": {
6
6
  "type": "git",