@maxim_mazurok/gapi.client.androidpublisher-v3 0.5.20260813 → 0.5.20260818

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 (3) hide show
  1. package/index.d.ts +183 -1
  2. package/package.json +1 -1
  3. package/readme.md +12 -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://androidpublisher.googleapis.com/$discovery/rest?version=v3
12
- // Revision: 20260813
12
+ // Revision: 20260818
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -604,6 +604,24 @@ declare namespace gapi.client {
604
604
  /** The target SDK version for the app. */
605
605
  targetSdkVersion?: string;
606
606
  }
607
+ interface CertificateHashes {
608
+ /** Hex-encoded MD5 hash of the certificate. example: `43:51:43:A1:B5:FC:8B:B7:0A:3A:A9:B1:0F:66:73:A8` */
609
+ certificateHashMd5?: string;
610
+ /** Hex-encoded SHA1 hash of the certificate. example: `86:61:97:1A:D5:EF:E5:74:1E:A7:5B:84:7C:68:37:65:CD:94:16:DE` */
611
+ certificateHashSha1?: string;
612
+ /** Hex-encoded SHA256 hash of the certificate. example: `94:49:C7:F3:A9:3C:F0:C5:5A:67:5D:DF:1C:83:73:2D:87:D5:62:55:E7:0B:15:0D:9E:6F:3C:F8:63:BB:7F:C1` */
613
+ certificateHashSha256?: string;
614
+ }
615
+ interface CloudKmsKey {
616
+ /** Required. Resource identifier of the private key hosted in Google Cloud KMS. The Google Play service account must be granted Decrypt and Sign permissions on this resource. Format: projects//locations//keyRings//cryptoKeys//cryptoKeyVersions/ */
617
+ cryptoKeyVersionResource?: string;
618
+ }
619
+ interface CloudKmsKeyAndCert {
620
+ /** Required. Cloud KMS key. */
621
+ cloudKmsKey?: CloudKmsKey;
622
+ /** Required. Certificate associated with the key. The bytes must contain the certificate in PEM format. */
623
+ pemCertificate?: string;
624
+ }
607
625
  interface CoarseLocation {
608
626
  /** Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated. */
609
627
  administrativeArea?: string;
@@ -994,6 +1012,28 @@ declare namespace gapi.client {
994
1012
  /** Device tiers belonging to the set. */
995
1013
  deviceTiers?: DeviceTier[];
996
1014
  }
1015
+ interface EnrollAppRequest {
1016
+ /** Enrolls an existing app into Play signing using an external Cloud KMS key. */
1017
+ enrollExistingApp?: EnrollExistingApp;
1018
+ /** Changes the signing key of a new app to an external Cloud KMS key. The app must not have published to Open testing or Production tracks. */
1019
+ enrollNewApp?: EnrollNewApp;
1020
+ /** The certificate associated with the upload key, in PEM format. */
1021
+ pemUploadCertificate?: string;
1022
+ }
1023
+ interface EnrollAppResponse {
1024
+ /** The signing certificate hashes for the app. Always set. */
1025
+ signingCertificate?: CertificateHashes;
1026
+ /** The upload certificate hashes for the app. Set iff pem_upload_certificate was set in the request. */
1027
+ uploadCertificate?: CertificateHashes;
1028
+ }
1029
+ interface EnrollExistingApp {
1030
+ /** Required. Self-hosted key. Once enrolled, this key will be used to sign your app. */
1031
+ cloudKmsKey?: CloudKmsKey;
1032
+ }
1033
+ interface EnrollNewApp {
1034
+ /** Required. Self-hosted key. Once enrolled, this key will be used to sign your app. */
1035
+ cloudKmsKeyAndCert?: CloudKmsKeyAndCert;
1036
+ }
997
1037
  interface ExpansionFile {
998
1038
  /** If set, this field indicates that this APK has an expansion file uploaded to it: this APK does not reference another APK's expansion file. The field's value is the size of the uploaded expansion file in bytes. */
999
1039
  fileSize?: string;
@@ -2440,6 +2480,28 @@ declare namespace gapi.client {
2440
2480
  revocationContext?: RevocationContext;
2441
2481
  }
2442
2482
  interface RevokeSubscriptionPurchaseResponse {}
2483
+ interface RotateAppSigningKeyRequest {
2484
+ /** Required. Reason for rotating the app key. */
2485
+ keyRotationReason?:
2486
+ | 'KEY_ROTATION_REASON_UNSPECIFIED'
2487
+ | 'COMPROMISED_KEY'
2488
+ | 'USE_STRONGER_KEY'
2489
+ | 'USE_SAME_KEY_FOR_MULTIPLE_APPS'
2490
+ | 'ROUTINE_KEY_UPGRADE'
2491
+ | 'OTHER';
2492
+ /** Required. Self-hosted Cloud KMS key. */
2493
+ rotatedCloudKmsKey?: RotatedCloudKmsKey;
2494
+ }
2495
+ interface RotateAppSigningKeyResponse {
2496
+ /** The rotated key certificate hashes for the app. Always set. */
2497
+ rotatedKeyCertificate?: CertificateHashes;
2498
+ }
2499
+ interface RotatedCloudKmsKey {
2500
+ /** Required. Cloud KMS key and the certificate associated with the key. */
2501
+ cloudKmsKeyAndCert?: CloudKmsKeyAndCert;
2502
+ /** Required. Proof-of-rotation. See [creating signing certificate lineages](https://developer.android.com/studio/command-line/apksigner#rotate_signing_keys_2). */
2503
+ signingCertificateLineage?: string;
2504
+ }
2443
2505
  interface SafetyLabelsUpdateRequest {
2444
2506
  /** Required. Contents of the CSV file containing Data Safety responses. For the format of this file, see the Help Center documentation at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cunderstand-the-csv-format To download an up to date template, follow the steps at https://support.google.com/googleplay/android-developer/answer/10787469?#zippy=%2Cexport-to-a-csv-file */
2445
2507
  safetyLabels?: string;
@@ -3677,6 +3739,124 @@ declare namespace gapi.client {
3677
3739
  versionCode?: string;
3678
3740
  }): Request<ListAppRecoveriesResponse>;
3679
3741
  }
3742
+ interface AppsigningResource {
3743
+ /** Enrolls an app in Play App Signing using a self-hosted Google Cloud KMS key. Warning: Do not use this method for standard Play App Signing enrollment. * Standard enrollment with Google-generated or Google-managed keys cannot be done via API. * This advanced API is strictly for enterprise organizations with mandatory compliance, regulatory, or policy requirements to retain key custody in an external Google Cloud KMS instance. * Prerequisites: Requires an active, properly configured Google Cloud KMS key with appropriate IAM permissions granted to Google Play before calling this method. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756 */
3744
+ enrollApp(request: {
3745
+ /** V1 error format. */
3746
+ '$.xgafv'?: '1' | '2';
3747
+ /** OAuth access token. */
3748
+ access_token?: string;
3749
+ /** Data format for response. */
3750
+ alt?: 'json' | 'media' | 'proto';
3751
+ /** JSONP */
3752
+ callback?: string;
3753
+ /** Selector specifying which fields to include in a partial response. */
3754
+ fields?: string;
3755
+ /** 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. */
3756
+ key?: string;
3757
+ /** Required. Either package name or app ID of the app enrolling in Play Signing. */
3758
+ name: string;
3759
+ /** OAuth 2.0 token for the current user. */
3760
+ oauth_token?: string;
3761
+ /** Returns response with indentations and line breaks. */
3762
+ prettyPrint?: boolean;
3763
+ /** 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. */
3764
+ quotaUser?: string;
3765
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3766
+ upload_protocol?: string;
3767
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3768
+ uploadType?: string;
3769
+ /** Request body */
3770
+ resource: EnrollAppRequest;
3771
+ }): Request<EnrollAppResponse>;
3772
+ enrollApp(
3773
+ request: {
3774
+ /** V1 error format. */
3775
+ '$.xgafv'?: '1' | '2';
3776
+ /** OAuth access token. */
3777
+ access_token?: string;
3778
+ /** Data format for response. */
3779
+ alt?: 'json' | 'media' | 'proto';
3780
+ /** JSONP */
3781
+ callback?: string;
3782
+ /** Selector specifying which fields to include in a partial response. */
3783
+ fields?: string;
3784
+ /** 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. */
3785
+ key?: string;
3786
+ /** Required. Either package name or app ID of the app enrolling in Play Signing. */
3787
+ name: string;
3788
+ /** OAuth 2.0 token for the current user. */
3789
+ oauth_token?: string;
3790
+ /** Returns response with indentations and line breaks. */
3791
+ prettyPrint?: boolean;
3792
+ /** 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. */
3793
+ quotaUser?: string;
3794
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3795
+ upload_protocol?: string;
3796
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3797
+ uploadType?: string;
3798
+ },
3799
+ body: EnrollAppRequest,
3800
+ ): Request<EnrollAppResponse>;
3801
+ /** Rotates an app's signing key to a new self-hosted Google Cloud KMS key. Warning: This method only applies to apps enrolled with self-hosted Cloud KMS keys. For apps using standard Google-managed Play App Signing, key rotation requests must be initiated through the Google Play Console UI. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756 */
3802
+ rotateAppSigningKey(request: {
3803
+ /** V1 error format. */
3804
+ '$.xgafv'?: '1' | '2';
3805
+ /** OAuth access token. */
3806
+ access_token?: string;
3807
+ /** Data format for response. */
3808
+ alt?: 'json' | 'media' | 'proto';
3809
+ /** JSONP */
3810
+ callback?: string;
3811
+ /** Selector specifying which fields to include in a partial response. */
3812
+ fields?: string;
3813
+ /** 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. */
3814
+ key?: string;
3815
+ /** Required. Either package name or app ID of the app rotating the signing key. */
3816
+ name: string;
3817
+ /** OAuth 2.0 token for the current user. */
3818
+ oauth_token?: string;
3819
+ /** Returns response with indentations and line breaks. */
3820
+ prettyPrint?: boolean;
3821
+ /** 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. */
3822
+ quotaUser?: string;
3823
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3824
+ upload_protocol?: string;
3825
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3826
+ uploadType?: string;
3827
+ /** Request body */
3828
+ resource: RotateAppSigningKeyRequest;
3829
+ }): Request<RotateAppSigningKeyResponse>;
3830
+ rotateAppSigningKey(
3831
+ request: {
3832
+ /** V1 error format. */
3833
+ '$.xgafv'?: '1' | '2';
3834
+ /** OAuth access token. */
3835
+ access_token?: string;
3836
+ /** Data format for response. */
3837
+ alt?: 'json' | 'media' | 'proto';
3838
+ /** JSONP */
3839
+ callback?: string;
3840
+ /** Selector specifying which fields to include in a partial response. */
3841
+ fields?: string;
3842
+ /** 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. */
3843
+ key?: string;
3844
+ /** Required. Either package name or app ID of the app rotating the signing key. */
3845
+ name: string;
3846
+ /** OAuth 2.0 token for the current user. */
3847
+ oauth_token?: string;
3848
+ /** Returns response with indentations and line breaks. */
3849
+ prettyPrint?: boolean;
3850
+ /** 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. */
3851
+ quotaUser?: string;
3852
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
3853
+ upload_protocol?: string;
3854
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3855
+ uploadType?: string;
3856
+ },
3857
+ body: RotateAppSigningKeyRequest,
3858
+ ): Request<RotateAppSigningKeyResponse>;
3859
+ }
3680
3860
  interface AppstoreappsreviewResource {
3681
3861
  /** Creates an app store hosted app. This must be called before any other RPCs for this hosted app. */
3682
3862
  createappstorehostedapp(request: {
@@ -10256,6 +10436,8 @@ declare namespace gapi.client {
10256
10436
 
10257
10437
  const apprecovery: ApprecoveryResource;
10258
10438
 
10439
+ const appsigning: AppsigningResource;
10440
+
10259
10441
  const appstoreappsreview: AppstoreappsreviewResource;
10260
10442
 
10261
10443
  const appstorecatalog: AppstorecatalogResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.androidpublisher-v3",
3
- "version": "0.5.20260813",
3
+ "version": "0.5.20260818",
4
4
  "description": "TypeScript typings for Google Play Android Developer API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -131,6 +131,18 @@ await gapi.client.androidpublisher.apprecovery.list({
131
131
  packageName: 'packageName',
132
132
  });
133
133
 
134
+ /*
135
+ Enrolls an app in Play App Signing using a self-hosted Google Cloud KMS key. Warning: Do not use this method for standard Play App Signing enrollment. * Standard enrollment with Google-generated or Google-managed keys cannot be done via API. * This advanced API is strictly for enterprise organizations with mandatory compliance, regulatory, or policy requirements to retain key custody in an external Google Cloud KMS instance. * Prerequisites: Requires an active, properly configured Google Cloud KMS key with appropriate IAM permissions granted to Google Play before calling this method. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756
136
+ */
137
+ await gapi.client.androidpublisher.appsigning.enrollApp({name: 'name'});
138
+
139
+ /*
140
+ Rotates an app's signing key to a new self-hosted Google Cloud KMS key. Warning: This method only applies to apps enrolled with self-hosted Cloud KMS keys. For apps using standard Google-managed Play App Signing, key rotation requests must be initiated through the Google Play Console UI. See Help Center: https://support.google.com/googleplay/android-developer/answer/9842756
141
+ */
142
+ await gapi.client.androidpublisher.appsigning.rotateAppSigningKey({
143
+ name: 'name',
144
+ });
145
+
134
146
  /*
135
147
  Creates an app store hosted app. This must be called before any other RPCs for this hosted app.
136
148
  */