@maxim_mazurok/gapi.client.walletobjects-v1 0.3.20260805 → 0.3.20260806
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.
- package/index.d.ts +66 -1
- package/package.json +1 -1
- package/readme.md +5 -0
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://walletobjects.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260806
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -1393,6 +1393,10 @@ declare namespace gapi.client {
|
|
|
1393
1393
|
/** JSON web token for action S2AP. */
|
|
1394
1394
|
value?: string;
|
|
1395
1395
|
}
|
|
1396
|
+
interface JsonResource {
|
|
1397
|
+
/** Required. A JSON string representing the unencoded JWT payload for a pass of the format described at https://developers.google.com/wallet/reference/rest/v1/Jwt. This can be set to either the entire JSON representation described at this link or just the contents of the payload field holding the relevant classes and objects. */
|
|
1398
|
+
json?: string;
|
|
1399
|
+
}
|
|
1396
1400
|
interface JwtInsertResponse {
|
|
1397
1401
|
/** Data that corresponds to the ids of the provided classes and objects in the JWT. resources will only include the non-empty arrays (i.e. if the JWT only includes eventTicketObjects, then that is the only field that will be present in resources). */
|
|
1398
1402
|
resources?: Resources;
|
|
@@ -1403,6 +1407,13 @@ declare namespace gapi.client {
|
|
|
1403
1407
|
/** Required. A string representing a JWT of the format described at https://developers.google.com/wallet/reference/rest/v1/Jwt */
|
|
1404
1408
|
jwt?: string;
|
|
1405
1409
|
}
|
|
1410
|
+
interface JwtValidateRequest {
|
|
1411
|
+
/** Optional. A JSON representation of a pass to be validated. Either this or jwt_resource should be set. Requests setting both or neither will be rejected. */
|
|
1412
|
+
jsonResource?: JsonResource;
|
|
1413
|
+
/** Optional. A JWT representation of a pass to be validated. Either this or json_resource should be set. Requests setting both or neither will be rejected. */
|
|
1414
|
+
jwtResource?: JwtResource;
|
|
1415
|
+
}
|
|
1416
|
+
interface JwtValidateResponse {}
|
|
1406
1417
|
interface LabelValue {
|
|
1407
1418
|
/** The label for a specific row and column. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout. */
|
|
1408
1419
|
label?: string;
|
|
@@ -5323,6 +5334,60 @@ declare namespace gapi.client {
|
|
|
5323
5334
|
},
|
|
5324
5335
|
body: JwtResource,
|
|
5325
5336
|
): Request<JwtInsertResponse>;
|
|
5337
|
+
/** Checks that the JWT or JSON string in the request represents a valid pass to be saved. */
|
|
5338
|
+
validate(request: {
|
|
5339
|
+
/** V1 error format. */
|
|
5340
|
+
'$.xgafv'?: '1' | '2';
|
|
5341
|
+
/** OAuth access token. */
|
|
5342
|
+
access_token?: string;
|
|
5343
|
+
/** Data format for response. */
|
|
5344
|
+
alt?: 'json' | 'media' | 'proto';
|
|
5345
|
+
/** JSONP */
|
|
5346
|
+
callback?: string;
|
|
5347
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5348
|
+
fields?: string;
|
|
5349
|
+
/** 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. */
|
|
5350
|
+
key?: string;
|
|
5351
|
+
/** OAuth 2.0 token for the current user. */
|
|
5352
|
+
oauth_token?: string;
|
|
5353
|
+
/** Returns response with indentations and line breaks. */
|
|
5354
|
+
prettyPrint?: boolean;
|
|
5355
|
+
/** 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. */
|
|
5356
|
+
quotaUser?: string;
|
|
5357
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5358
|
+
upload_protocol?: string;
|
|
5359
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5360
|
+
uploadType?: string;
|
|
5361
|
+
/** Request body */
|
|
5362
|
+
resource: JwtValidateRequest;
|
|
5363
|
+
}): Request<{}>;
|
|
5364
|
+
validate(
|
|
5365
|
+
request: {
|
|
5366
|
+
/** V1 error format. */
|
|
5367
|
+
'$.xgafv'?: '1' | '2';
|
|
5368
|
+
/** OAuth access token. */
|
|
5369
|
+
access_token?: string;
|
|
5370
|
+
/** Data format for response. */
|
|
5371
|
+
alt?: 'json' | 'media' | 'proto';
|
|
5372
|
+
/** JSONP */
|
|
5373
|
+
callback?: string;
|
|
5374
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
5375
|
+
fields?: string;
|
|
5376
|
+
/** 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. */
|
|
5377
|
+
key?: string;
|
|
5378
|
+
/** OAuth 2.0 token for the current user. */
|
|
5379
|
+
oauth_token?: string;
|
|
5380
|
+
/** Returns response with indentations and line breaks. */
|
|
5381
|
+
prettyPrint?: boolean;
|
|
5382
|
+
/** 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. */
|
|
5383
|
+
quotaUser?: string;
|
|
5384
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
5385
|
+
upload_protocol?: string;
|
|
5386
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
5387
|
+
uploadType?: string;
|
|
5388
|
+
},
|
|
5389
|
+
body: JwtValidateRequest,
|
|
5390
|
+
): Request<{}>;
|
|
5326
5391
|
}
|
|
5327
5392
|
interface LoyaltyclassResource {
|
|
5328
5393
|
/** Adds a message to the loyalty class referenced by the given class ID. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -399,6 +399,11 @@ Inserts the resources in the JWT.
|
|
|
399
399
|
*/
|
|
400
400
|
await gapi.client.walletobjects.jwt.insert({});
|
|
401
401
|
|
|
402
|
+
/*
|
|
403
|
+
Checks that the JWT or JSON string in the request represents a valid pass to be saved.
|
|
404
|
+
*/
|
|
405
|
+
await gapi.client.walletobjects.jwt.validate({});
|
|
406
|
+
|
|
402
407
|
/*
|
|
403
408
|
Adds a message to the loyalty class referenced by the given class ID.
|
|
404
409
|
*/
|