@maxim_mazurok/gapi.client.developerconnect-v1 0.0.20250120 → 0.0.20250202

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 +174 -12
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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://developerconnect.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20250120
12
+ // Revision: 20250202
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Developer Connect API v1 */
18
18
  function load(
19
- urlOrObject: 'https://developerconnect.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://developerconnect.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'developerconnect', version: 'v1'): Promise<void>;
@@ -24,14 +24,44 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'developerconnect',
26
26
  version: 'v1',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace developerconnect {
31
+ interface BitbucketCloudConfig {
32
+ /** Required. An access token with the minimum `repository`, `pullrequest` and `webhook` scope access. It can either be a workspace, project or repository access token. This is needed to create webhooks. It's recommended to use a system account to generate these credentials. */
33
+ authorizerCredential?: UserCredential;
34
+ /** Required. An access token with the minimum `repository` access. It can either be a workspace, project or repository access token. It's recommended to use a system account to generate the credentials. */
35
+ readAuthorizerCredential?: UserCredential;
36
+ /** Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as `projects/*‍/secrets/*‍/versions/*`. This is used to validate and create webhooks. */
37
+ webhookSecretSecretVersion?: string;
38
+ /** Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud Platform. */
39
+ workspace?: string;
40
+ }
41
+ interface BitbucketDataCenterConfig {
42
+ /** Required. An http access token with the minimum `Repository admin` scope access. This is needed to create webhooks. It's recommended to use a system account to generate these credentials. */
43
+ authorizerCredential?: UserCredential;
44
+ /** Required. The URI of the Bitbucket Data Center host this connection is for. */
45
+ hostUri?: string;
46
+ /** Required. An http access token with the minimum `Repository read` access. It's recommended to use a system account to generate the credentials. */
47
+ readAuthorizerCredential?: UserCredential;
48
+ /** Output only. Version of the Bitbucket Data Center server running on the `host_uri`. */
49
+ serverVersion?: string;
50
+ /** Optional. Configuration for using Service Directory to privately connect to a Bitbucket Data Center instance. This should only be set if the Bitbucket Data Center is hosted on-premises and not reachable by public internet. If this field is left empty, calls to the Bitbucket Data Center will be made over the public internet. */
51
+ serviceDirectoryConfig?: ServiceDirectoryConfig;
52
+ /** Optional. SSL certificate authority to trust when making requests to Bitbucket Data Center. */
53
+ sslCaCertificate?: string;
54
+ /** Required. Immutable. SecretManager resource containing the webhook secret used to verify webhook events, formatted as `projects/*‍/secrets/*‍/versions/*`. This is used to validate webhooks. */
55
+ webhookSecretSecretVersion?: string;
56
+ }
31
57
  interface CancelOperationRequest {}
32
58
  interface Connection {
33
59
  /** Optional. Allows clients to store small amounts of arbitrary data. */
34
60
  annotations?: {[P in string]: string};
61
+ /** Configuration for connections to an instance of Bitbucket Clouds. */
62
+ bitbucketCloudConfig?: BitbucketCloudConfig;
63
+ /** Configuration for connections to an instance of Bitbucket Data Center. */
64
+ bitbucketDataCenterConfig?: BitbucketDataCenterConfig;
35
65
  /** Output only. [Output only] Create timestamp */
36
66
  createTime?: string;
37
67
  /** Optional. The crypto key configuration. This field is used by the Customer-Managed Encryption Keys (CMEK) feature. */
@@ -50,6 +80,8 @@ declare namespace gapi.client {
50
80
  gitlabConfig?: GitLabConfig;
51
81
  /** Configuration for connections to an instance of GitLab Enterprise. */
52
82
  gitlabEnterpriseConfig?: GitLabEnterpriseConfig;
83
+ /** Optional. Configuration for the git proxy feature. Enabling the git proxy allows clients to perform git operations on the repositories linked in the connection. */
84
+ gitProxyConfig?: GitProxyConfig;
53
85
  /** Output only. Installation state of the Connection. */
54
86
  installationState?: InstallationState;
55
87
  /** Optional. Labels as key value pairs */
@@ -158,6 +190,10 @@ declare namespace gapi.client {
158
190
  /** Required. Immutable. SecretManager resource containing the webhook secret of a GitLab project, formatted as `projects/*‍/secrets/*‍/versions/*`. This is used to validate webhooks. */
159
191
  webhookSecretSecretVersion?: string;
160
192
  }
193
+ interface GitProxyConfig {
194
+ /** Optional. Setting this to true allows the git proxy to be used for performing git operations on the repositories linked in the connection. */
195
+ enabled?: boolean;
196
+ }
161
197
  interface GitRepositoryLink {
162
198
  /** Optional. Allows clients to store small amounts of arbitrary data. */
163
199
  annotations?: {[P in string]: string};
@@ -169,6 +205,8 @@ declare namespace gapi.client {
169
205
  deleteTime?: string;
170
206
  /** Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. */
171
207
  etag?: string;
208
+ /** Output only. URI to access the linked repository through the Git Proxy. This field is only populated if the git proxy is enabled for the connection. */
209
+ gitProxyUri?: string;
172
210
  /** Optional. Labels as key value pairs */
173
211
  labels?: {[P in string]: string};
174
212
  /** Identifier. Resource name of the repository, in the format `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
@@ -284,6 +322,14 @@ declare namespace gapi.client {
284
322
  /** Output only. Name of the verb executed by the operation. */
285
323
  verb?: string;
286
324
  }
325
+ interface ProcessBitbucketCloudWebhookRequest {
326
+ /** Required. HTTP request body. */
327
+ body?: HttpBody;
328
+ }
329
+ interface ProcessBitbucketDataCenterWebhookRequest {
330
+ /** Required. HTTP request body. */
331
+ body?: HttpBody;
332
+ }
287
333
  interface ProcessGitHubEnterpriseWebhookRequest {
288
334
  /** Required. HTTP request body. */
289
335
  body?: HttpBody;
@@ -383,7 +429,7 @@ declare namespace gapi.client {
383
429
  /** Optional. If set, validate the request, but do not actually post it. */
384
430
  validateOnly?: boolean;
385
431
  },
386
- body: GitRepositoryLink
432
+ body: GitRepositoryLink,
387
433
  ): Request<Operation>;
388
434
  /** Deletes a single GitRepositoryLink. */
389
435
  delete(request?: {
@@ -507,7 +553,7 @@ declare namespace gapi.client {
507
553
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
508
554
  uploadType?: string;
509
555
  },
510
- body: FetchReadTokenRequest
556
+ body: FetchReadTokenRequest,
511
557
  ): Request<FetchReadTokenResponse>;
512
558
  /** Fetches read/write token of a given gitRepositoryLink. */
513
559
  fetchReadWriteToken(request: {
@@ -565,7 +611,7 @@ declare namespace gapi.client {
565
611
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
566
612
  uploadType?: string;
567
613
  },
568
- body: FetchReadWriteTokenRequest
614
+ body: FetchReadWriteTokenRequest,
569
615
  ): Request<FetchReadWriteTokenResponse>;
570
616
  /** Gets details of a single GitRepositoryLink. */
571
617
  get(request?: {
@@ -629,6 +675,122 @@ declare namespace gapi.client {
629
675
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
630
676
  uploadType?: string;
631
677
  }): Request<ListGitRepositoryLinksResponse>;
678
+ /** ProcessBitbucketCloudWebhook is called by the external Bitbucket Cloud instances for notifying events. */
679
+ processBitbucketCloudWebhook(request: {
680
+ /** V1 error format. */
681
+ '$.xgafv'?: string;
682
+ /** OAuth access token. */
683
+ access_token?: string;
684
+ /** Data format for response. */
685
+ alt?: string;
686
+ /** JSONP */
687
+ callback?: string;
688
+ /** Selector specifying which fields to include in a partial response. */
689
+ fields?: string;
690
+ /** 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. */
691
+ key?: string;
692
+ /** Required. The GitRepositoryLink where the webhook will be received. Format: `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
693
+ name: string;
694
+ /** OAuth 2.0 token for the current user. */
695
+ oauth_token?: string;
696
+ /** Returns response with indentations and line breaks. */
697
+ prettyPrint?: boolean;
698
+ /** 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. */
699
+ quotaUser?: string;
700
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
701
+ upload_protocol?: string;
702
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
703
+ uploadType?: string;
704
+ /** Request body */
705
+ resource: ProcessBitbucketCloudWebhookRequest;
706
+ }): Request<{}>;
707
+ processBitbucketCloudWebhook(
708
+ request: {
709
+ /** V1 error format. */
710
+ '$.xgafv'?: string;
711
+ /** OAuth access token. */
712
+ access_token?: string;
713
+ /** Data format for response. */
714
+ alt?: string;
715
+ /** JSONP */
716
+ callback?: string;
717
+ /** Selector specifying which fields to include in a partial response. */
718
+ fields?: string;
719
+ /** 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. */
720
+ key?: string;
721
+ /** Required. The GitRepositoryLink where the webhook will be received. Format: `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
722
+ name: string;
723
+ /** OAuth 2.0 token for the current user. */
724
+ oauth_token?: string;
725
+ /** Returns response with indentations and line breaks. */
726
+ prettyPrint?: boolean;
727
+ /** 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. */
728
+ quotaUser?: string;
729
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
730
+ upload_protocol?: string;
731
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
732
+ uploadType?: string;
733
+ },
734
+ body: ProcessBitbucketCloudWebhookRequest,
735
+ ): Request<{}>;
736
+ /** ProcessBitbucketDataCenterWebhook is called by the external Bitbucket Data Center instances for notifying events. */
737
+ processBitbucketDataCenterWebhook(request: {
738
+ /** V1 error format. */
739
+ '$.xgafv'?: string;
740
+ /** OAuth access token. */
741
+ access_token?: string;
742
+ /** Data format for response. */
743
+ alt?: string;
744
+ /** JSONP */
745
+ callback?: string;
746
+ /** Selector specifying which fields to include in a partial response. */
747
+ fields?: string;
748
+ /** 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. */
749
+ key?: string;
750
+ /** Required. The GitRepositoryLink where the webhook will be received. Format: `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
751
+ name: string;
752
+ /** OAuth 2.0 token for the current user. */
753
+ oauth_token?: string;
754
+ /** Returns response with indentations and line breaks. */
755
+ prettyPrint?: boolean;
756
+ /** 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. */
757
+ quotaUser?: string;
758
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
759
+ upload_protocol?: string;
760
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
761
+ uploadType?: string;
762
+ /** Request body */
763
+ resource: ProcessBitbucketDataCenterWebhookRequest;
764
+ }): Request<{}>;
765
+ processBitbucketDataCenterWebhook(
766
+ request: {
767
+ /** V1 error format. */
768
+ '$.xgafv'?: string;
769
+ /** OAuth access token. */
770
+ access_token?: string;
771
+ /** Data format for response. */
772
+ alt?: string;
773
+ /** JSONP */
774
+ callback?: string;
775
+ /** Selector specifying which fields to include in a partial response. */
776
+ fields?: string;
777
+ /** 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. */
778
+ key?: string;
779
+ /** Required. The GitRepositoryLink where the webhook will be received. Format: `projects/*‍/locations/*‍/connections/*‍/gitRepositoryLinks/*`. */
780
+ name: string;
781
+ /** OAuth 2.0 token for the current user. */
782
+ oauth_token?: string;
783
+ /** Returns response with indentations and line breaks. */
784
+ prettyPrint?: boolean;
785
+ /** 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. */
786
+ quotaUser?: string;
787
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
788
+ upload_protocol?: string;
789
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
790
+ uploadType?: string;
791
+ },
792
+ body: ProcessBitbucketDataCenterWebhookRequest,
793
+ ): Request<{}>;
632
794
  /** ProcessGitLabEnterpriseWebhook is called by the external GitLab Enterprise instances for notifying events. */
633
795
  processGitLabEnterpriseWebhook(request: {
634
796
  /** V1 error format. */
@@ -685,7 +847,7 @@ declare namespace gapi.client {
685
847
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
686
848
  uploadType?: string;
687
849
  },
688
- body: ProcessGitLabEnterpriseWebhookRequest
850
+ body: ProcessGitLabEnterpriseWebhookRequest,
689
851
  ): Request<{}>;
690
852
  /** ProcessGitLabWebhook is called by the GitLab.com for notifying events. */
691
853
  processGitLabWebhook(request: {
@@ -743,7 +905,7 @@ declare namespace gapi.client {
743
905
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
744
906
  uploadType?: string;
745
907
  },
746
- body: ProcessGitLabWebhookRequest
908
+ body: ProcessGitLabWebhookRequest,
747
909
  ): Request<{}>;
748
910
  }
749
911
  interface ConnectionsResource {
@@ -815,7 +977,7 @@ declare namespace gapi.client {
815
977
  /** Optional. If set, validate the request, but do not actually post it. */
816
978
  validateOnly?: boolean;
817
979
  },
818
- body: Connection
980
+ body: Connection,
819
981
  ): Request<Operation>;
820
982
  /** Deletes a single Connection. */
821
983
  delete(request?: {
@@ -1042,7 +1204,7 @@ declare namespace gapi.client {
1042
1204
  /** Optional. If set, validate the request, but do not actually post it. */
1043
1205
  validateOnly?: boolean;
1044
1206
  },
1045
- body: Connection
1207
+ body: Connection,
1046
1208
  ): Request<Operation>;
1047
1209
  /** ProcessGitHubEnterpriseWebhook is called by the external GitHub Enterprise instances for notifying events. */
1048
1210
  processGitHubEnterpriseWebhook(request: {
@@ -1100,7 +1262,7 @@ declare namespace gapi.client {
1100
1262
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1101
1263
  uploadType?: string;
1102
1264
  },
1103
- body: ProcessGitHubEnterpriseWebhookRequest
1265
+ body: ProcessGitHubEnterpriseWebhookRequest,
1104
1266
  ): Request<{}>;
1105
1267
  gitRepositoryLinks: GitRepositoryLinksResource;
1106
1268
  }
@@ -1161,7 +1323,7 @@ declare namespace gapi.client {
1161
1323
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1162
1324
  uploadType?: string;
1163
1325
  },
1164
- body: CancelOperationRequest
1326
+ body: CancelOperationRequest,
1165
1327
  ): Request<{}>;
1166
1328
  /** Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. */
1167
1329
  delete(request?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.developerconnect-v1",
3
- "version": "0.0.20250120",
3
+ "version": "0.0.20250202",
4
4
  "description": "TypeScript typings for Developer Connect API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.developerconnect
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -62,7 +62,7 @@ gapi.auth.authorize(
62
62
  } else {
63
63
  /* handle authorization error */
64
64
  }
65
- }
65
+ },
66
66
  );
67
67
  ```
68
68