Skip to content

Commit 7ead38b

Browse files
feat(walletobjects): update the API
#### walletobjects:v1 The following keys were added: - schemas.Image.properties.privateImageId.description - schemas.Image.properties.privateImageId.type - schemas.UploadPrivateImageRequest.description - schemas.UploadPrivateImageRequest.id - schemas.UploadPrivateImageRequest.type - schemas.UploadPrivateImageResponse.description - schemas.UploadPrivateImageResponse.id - schemas.UploadPrivateImageResponse.properties.privateImageId.description - schemas.UploadPrivateImageResponse.properties.privateImageId.type - schemas.UploadPrivateImageResponse.type The following keys were changed: - schemas.Image.properties.sourceUri.description
1 parent 815bcd4 commit 7ead38b

File tree

2 files changed

+41
-3
lines changed

2 files changed

+41
-3
lines changed

discovery/walletobjects-v1.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,7 +2711,7 @@
27112711
}
27122712
}
27132713
},
2714-
"revision": "20250506",
2714+
"revision": "20250804",
27152715
"rootUrl": "https://walletobjects.googleapis.com/",
27162716
"schemas": {
27172717
"ActivationOptions": {
@@ -6206,9 +6206,13 @@
62066206
"description": "Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#image\"`.",
62076207
"type": "string"
62086208
},
6209+
"privateImageId": {
6210+
"description": "An ID for an already uploaded private image. Either this or source_uri should be set. Requests setting both or neither will be rejected. Please contact support to use private images.",
6211+
"type": "string"
6212+
},
62096213
"sourceUri": {
62106214
"$ref": "ImageUri",
6211-
"description": "The URI for the image."
6215+
"description": "A URI for the image. Either this or private_image_id should be set. Requests setting both or neither will be rejected."
62126216
}
62136217
},
62146218
"type": "object"
@@ -9747,6 +9751,23 @@
97479751
},
97489752
"type": "object"
97499753
},
9754+
"UploadPrivateImageRequest": {
9755+
"description": "Request to upload a private image to use in a pass.",
9756+
"id": "UploadPrivateImageRequest",
9757+
"properties": {},
9758+
"type": "object"
9759+
},
9760+
"UploadPrivateImageResponse": {
9761+
"description": "Response for uploading the private image.",
9762+
"id": "UploadPrivateImageResponse",
9763+
"properties": {
9764+
"privateImageId": {
9765+
"description": "Unique ID of the uploaded image to be referenced later in Image.private_image_id.",
9766+
"type": "string"
9767+
}
9768+
},
9769+
"type": "object"
9770+
},
97509771
"Uri": {
97519772
"id": "Uri",
97529773
"properties": {

src/apis/walletobjects/v1.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,7 +2161,11 @@ export namespace walletobjects_v1 {
21612161
*/
21622162
kind?: string | null;
21632163
/**
2164-
* The URI for the image.
2164+
* An ID for an already uploaded private image. Either this or source_uri should be set. Requests setting both or neither will be rejected. Please contact support to use private images.
2165+
*/
2166+
privateImageId?: string | null;
2167+
/**
2168+
* A URI for the image. Either this or private_image_id should be set. Requests setting both or neither will be rejected.
21652169
*/
21662170
sourceUri?: Schema$ImageUri;
21672171
}
@@ -4278,6 +4282,19 @@ export namespace walletobjects_v1 {
42784282
*/
42794283
enableNotification?: boolean | null;
42804284
}
4285+
/**
4286+
* Request to upload a private image to use in a pass.
4287+
*/
4288+
export interface Schema$UploadPrivateImageRequest {}
4289+
/**
4290+
* Response for uploading the private image.
4291+
*/
4292+
export interface Schema$UploadPrivateImageResponse {
4293+
/**
4294+
* Unique ID of the uploaded image to be referenced later in Image.private_image_id.
4295+
*/
4296+
privateImageId?: string | null;
4297+
}
42814298
export interface Schema$Uri {
42824299
/**
42834300
* The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when `description` is part of an image.

0 commit comments

Comments
 (0)