@maxim_mazurok/gapi.client.securesourcemanager-v1 0.31.0 → 0.33.0

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 +17 -3
  2. package/package.json +1 -1
  3. package/readme.md +17 -0
package/index.d.ts CHANGED
@@ -473,6 +473,10 @@ declare namespace gapi.client {
473
473
  instance?: string;
474
474
  /** Identifier. A unique identifier for a repository. The name should be of the format: `projects/{project}/locations/{location_id}/repositories/{repository_id}` */
475
475
  name?: string;
476
+ /** Optional. Provides configuration for scanning. */
477
+ scanConfig?: ScanConfig;
478
+ /** Optional. Repository level service account (BYOSA). */
479
+ serviceAccount?: string;
476
480
  /** Output only. Unique identifier of the repository. */
477
481
  uid?: string;
478
482
  /** Output only. Update timestamp. */
@@ -502,6 +506,16 @@ declare namespace gapi.client {
502
506
  /** Output only. The effective commit sha this review is pointing to. */
503
507
  effectiveCommitSha?: string;
504
508
  }
509
+ interface ScanConfig {
510
+ /** Optional. Configuration for secret scanning. */
511
+ secretScanConfig?: SecretScanConfig;
512
+ }
513
+ interface SecretScanConfig {
514
+ /** Optional. Enables secret scanning for the repository. */
515
+ enabled?: boolean;
516
+ /** Optional. The DLP inspect template to use for secret scanning. */
517
+ inspectTemplate?: string;
518
+ }
505
519
  interface SetIamPolicyRequest {
506
520
  /** REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them. */
507
521
  policy?: Policy;
@@ -512,7 +526,7 @@ declare namespace gapi.client {
512
526
  /** The status code, which should be an enum value of google.rpc.Code. */
513
527
  code?: number;
514
528
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
515
- details?: Array<{[P in string]: any}>;
529
+ details?: {[P in string]: any}[];
516
530
  /** A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */
517
531
  message?: string;
518
532
  }
@@ -3087,7 +3101,7 @@ declare namespace gapi.client {
3087
3101
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3088
3102
  uploadType?: string;
3089
3103
  }): Request<Location>;
3090
- /** Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include public locations as well as private or other locations specifically visible to the project. */
3104
+ /** Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version. */
3091
3105
  list(request?: {
3092
3106
  /** V1 error format. */
3093
3107
  '$.xgafv'?: '1' | '2';
@@ -3097,7 +3111,7 @@ declare namespace gapi.client {
3097
3111
  alt?: 'json' | 'media' | 'proto';
3098
3112
  /** JSONP */
3099
3113
  callback?: string;
3100
- /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage. */
3114
+ /** Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage. */
3101
3115
  extraLocationTypes?: string | string[];
3102
3116
  /** Selector specifying which fields to include in a partial response. */
3103
3117
  fields?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.securesourcemanager-v1",
3
- "version": "0.31.0",
3
+ "version": "0.33.0",
4
4
  "description": "TypeScript typings for Secure Source Manager API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,23 @@ Install typings for Secure Source Manager API:
11
11
  npm install @types/gapi.client.securesourcemanager-v1 --save-dev
12
12
  ```
13
13
 
14
+ ## TypeScript 6.0+
15
+
16
+ TypeScript 6.0 changed `types` to default to `[]`. You must now explicitly list type packages in `tsconfig.json`:
17
+
18
+ ```json
19
+ {
20
+ "compilerOptions": {
21
+ "types": [
22
+ "gapi",
23
+ "gapi.auth2",
24
+ "gapi.client",
25
+ "gapi.client.securesourcemanager-v1"
26
+ ]
27
+ }
28
+ }
29
+ ```
30
+
14
31
  ## Usage
15
32
 
16
33
  You need to initialize Google API client in your code: