@maxim_mazurok/gapi.client.chromewebstore-v2 0.0.20251022 → 0.0.20251026

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 +2 -189
  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://chromewebstore.googleapis.com/$discovery/rest?version=v2
12
- // Revision: 20251022
12
+ // Revision: 20251026
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -28,108 +28,18 @@ declare namespace gapi.client {
28
28
  ): void;
29
29
 
30
30
  namespace chromewebstore {
31
- interface Blobstore2Info {
32
- /** The blob generation id. */
33
- blobGeneration?: string;
34
- /** The blob id, e.g., /blobstore/prod/playground/scotty */
35
- blobId?: string;
36
- /** Read handle passed from Bigstore -> Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads. */
37
- downloadReadHandle?: string;
38
- /** The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call. */
39
- readToken?: string;
40
- /** Metadata passed from Blobstore -> Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads. */
41
- uploadMetadataContainer?: string;
42
- }
43
31
  interface CancelSubmissionRequest {}
44
32
  interface CancelSubmissionResponse {}
45
- interface CompositeMedia {
46
- /** Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. */
47
- blobRef?: string;
48
- /** Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. */
49
- blobstore2Info?: Blobstore2Info;
50
- /** A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field. */
51
- cosmoBinaryReference?: string;
52
- /** crc32.c hash for the payload. */
53
- crc32cHash?: number;
54
- /** Media data, set if reference_type is INLINE */
55
- inline?: string;
56
- /** Size of the data, in bytes */
57
- length?: string;
58
- /** MD5 hash for the payload. */
59
- md5Hash?: string;
60
- /** Reference to a TI Blob, set if reference_type is BIGSTORE_REF. */
61
- objectId?: ObjectId;
62
- /** Path to the data, set if reference_type is PATH */
63
- path?: string;
64
- /** Describes what the field reference contains. */
65
- referenceType?: string;
66
- /** SHA-1 hash for the payload. */
67
- sha1Hash?: string;
68
- }
69
- interface ContentTypeInfo {
70
- /** Scotty's best guess of what the content type of the file is. */
71
- bestGuess?: string;
72
- /** The content type of the file derived by looking at specific bytes (i.e. "magic bytes") of the actual file. */
73
- fromBytes?: string;
74
- /** The content type of the file derived from the file extension of the original file name used by the client. */
75
- fromFileName?: string;
76
- /** The content type of the file as specified in the request headers, multipart headers, or RUPIO start request. */
77
- fromHeader?: string;
78
- /** The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API). */
79
- fromUrlPath?: string;
80
- }
81
33
  interface DeployInfo {
82
34
  /** Required. The current deploy percentage for the release channel (nonnegative number between 0 and 100). */
83
35
  deployPercentage?: number;
84
36
  }
85
- interface DiffChecksumsResponse {
86
- /** Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol. */
87
- checksumsLocation?: CompositeMedia;
88
- /** The chunk size of checksums. Must be a multiple of 256KB. */
89
- chunkSizeBytes?: string;
90
- /** If set, calculate the checksums based on the contents and return them to the caller. */
91
- objectLocation?: CompositeMedia;
92
- /** The total size of the server object. */
93
- objectSizeBytes?: string;
94
- /** The object version of the object the checksums are being returned for. */
95
- objectVersion?: string;
96
- }
97
- interface DiffDownloadResponse {
98
- /** The original object location. */
99
- objectLocation?: CompositeMedia;
100
- }
101
- interface DiffUploadRequest {
102
- /** The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol. */
103
- checksumsInfo?: CompositeMedia;
104
- /** The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. */
105
- objectInfo?: CompositeMedia;
106
- /** The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in. */
107
- objectVersion?: string;
108
- }
109
- interface DiffUploadResponse {
110
- /** The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload. */
111
- objectVersion?: string;
112
- /** The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification. */
113
- originalObject?: CompositeMedia;
114
- }
115
- interface DiffVersionResponse {
116
- /** The total size of the server object. */
117
- objectSizeBytes?: string;
118
- /** The version of the object stored at the server. */
119
- objectVersion?: string;
120
- }
121
37
  interface DistributionChannel {
122
38
  /** The extension version provided in the manifest of the uploaded package. */
123
39
  crxVersion?: string;
124
40
  /** The current deploy percentage for the release channel (nonnegative number between 0 and 100). */
125
41
  deployPercentage?: number;
126
42
  }
127
- interface DownloadParameters {
128
- /** A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client. */
129
- allowGzipCompression?: boolean;
130
- /** Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty. */
131
- ignoreRange?: boolean;
132
- }
133
43
  interface FetchItemStatusResponse {
134
44
  /** Output only. The ID of the item. */
135
45
  itemId?: string;
@@ -154,98 +64,6 @@ declare namespace gapi.client {
154
64
  /** Output only. Current state of the item */
155
65
  state?: string;
156
66
  }
157
- interface Media {
158
- /** Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, "MD5" is the only possible value for this field. New values may be added at any time. */
159
- algorithm?: string;
160
- /** Use object_id instead. */
161
- bigstoreObjectRef?: string;
162
- /** Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef. */
163
- blobRef?: string;
164
- /** Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob. */
165
- blobstore2Info?: Blobstore2Info;
166
- /** A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified. */
167
- compositeMedia?: CompositeMedia[];
168
- /** MIME type of the data */
169
- contentType?: string;
170
- /** Extended content type information provided for Scotty uploads. */
171
- contentTypeInfo?: ContentTypeInfo;
172
- /** A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field. */
173
- cosmoBinaryReference?: string;
174
- /** For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported. */
175
- crc32cHash?: number;
176
- /** Set if reference_type is DIFF_CHECKSUMS_RESPONSE. */
177
- diffChecksumsResponse?: DiffChecksumsResponse;
178
- /** Set if reference_type is DIFF_DOWNLOAD_RESPONSE. */
179
- diffDownloadResponse?: DiffDownloadResponse;
180
- /** Set if reference_type is DIFF_UPLOAD_REQUEST. */
181
- diffUploadRequest?: DiffUploadRequest;
182
- /** Set if reference_type is DIFF_UPLOAD_RESPONSE. */
183
- diffUploadResponse?: DiffUploadResponse;
184
- /** Set if reference_type is DIFF_VERSION_RESPONSE. */
185
- diffVersionResponse?: DiffVersionResponse;
186
- /** Parameters for a media download. */
187
- downloadParameters?: DownloadParameters;
188
- /** Original file name */
189
- filename?: string;
190
- /** Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media. */
191
- hash?: string;
192
- /** For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification. */
193
- hashVerified?: boolean;
194
- /** Media data, set if reference_type is INLINE */
195
- inline?: string;
196
- /** |is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence. */
197
- isPotentialRetry?: boolean;
198
- /** Size of the data, in bytes */
199
- length?: string;
200
- /** Scotty-provided MD5 hash for an upload. */
201
- md5Hash?: string;
202
- /** Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA. */
203
- mediaId?: string;
204
- /** Reference to a TI Blob, set if reference_type is BIGSTORE_REF. */
205
- objectId?: ObjectId;
206
- /** Path to the data, set if reference_type is PATH */
207
- path?: string;
208
- /** Describes what the field reference contains. */
209
- referenceType?: string;
210
- /** Scotty-provided SHA1 hash for an upload. */
211
- sha1Hash?: string;
212
- /** Scotty-provided SHA256 hash for an upload. */
213
- sha256Hash?: string;
214
- /** Time at which the media data was last updated, in milliseconds since UNIX epoch */
215
- timestamp?: string;
216
- /** A unique fingerprint/version id for the media data */
217
- token?: string;
218
- }
219
- interface MediaRequestInfo {
220
- /** The number of current bytes uploaded or downloaded. */
221
- currentBytes?: string;
222
- /** Data to be copied to backend requests. Custom data is returned to Scotty in the agent_state field, which Scotty will then provide in subsequent upload notifications. */
223
- customData?: string;
224
- /** Set if the http request info is diff encoded. The value of this field is the version number of the base revision. This is corresponding to Apiary's mediaDiffObjectVersion (//depot/google3/java/com/google/api/server/media/variable/DiffObjectVersionVariable.java). See go/esf-scotty-diff-upload for more information. */
225
- diffObjectVersion?: string;
226
- /** The existence of the final_status field indicates that this is the last call to the agent for this request_id. http://google3/uploader/agent/scotty_agent.proto?l=737&rcl=347601929 */
227
- finalStatus?: number;
228
- /** The type of notification received from Scotty. */
229
- notificationType?: string;
230
- /** The physical headers provided by RequestReceivedParameters in Scotty request. type is uploader_service.KeyValuePairs. */
231
- physicalHeaders?: string;
232
- /** The Scotty request ID. */
233
- requestId?: string;
234
- /** The partition of the Scotty server handling this request. type is uploader_service.RequestReceivedParamsServingInfo LINT.IfChange(request_received_params_serving_info_annotations) LINT.ThenChange() */
235
- requestReceivedParamsServingInfo?: string;
236
- /** The total size of the file. */
237
- totalBytes?: string;
238
- /** Whether the total bytes field contains an estimated data. */
239
- totalBytesIsEstimated?: boolean;
240
- }
241
- interface ObjectId {
242
- /** The name of the bucket to which this object belongs. */
243
- bucketName?: string;
244
- /** Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions */
245
- generation?: string;
246
- /** The name of the object. */
247
- objectName?: string;
248
- }
249
67
  interface PublishItemRequest {
250
68
  /** Optional. Additional deploy information including the desired initial percentage rollout. Defaults to the current value saved in the developer dashboard if unset. */
251
69
  deployInfos?: DeployInfo[];
@@ -267,12 +85,7 @@ declare namespace gapi.client {
267
85
  deployPercentage?: number;
268
86
  }
269
87
  interface SetPublishedDeployPercentageResponse {}
270
- interface UploadItemPackageRequest {
271
- /** Reference to the uploaded media. */
272
- blob?: Media;
273
- /** Info about the media upload request. */
274
- mediaRequestInfo?: MediaRequestInfo;
275
- }
88
+ interface UploadItemPackageRequest {}
276
89
  interface UploadItemPackageResponse {
277
90
  /** The extension version provided in the manifest of the uploaded package. This will not be set if the upload is still in progress (`upload_state` is `UPLOAD_IN_PROGRESS`). */
278
91
  crxVersion?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.chromewebstore-v2",
3
- "version": "0.0.20251022",
3
+ "version": "0.0.20251026",
4
4
  "description": "TypeScript typings for Chrome Web Store API v2",
5
5
  "repository": {
6
6
  "type": "git",