@maxim_mazurok/gapi.client.cloudtrace-v1 0.1.20260309 → 0.1.20260601

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 +11 -11
  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://cloudtrace.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20260309
12
+ // Revision: 20260601
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -47,7 +47,7 @@ declare namespace gapi.client {
47
47
  /** End time of the span in seconds and nanoseconds from the UNIX epoch. */
48
48
  endTime?: string;
49
49
  /** Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify queueing latency associated with the span. */
50
- kind?: string;
50
+ kind?: 'SPAN_KIND_UNSPECIFIED' | 'RPC_SERVER' | 'RPC_CLIENT';
51
51
  /** Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 KiB. Some keys might have predefined meaning, and you can also create your own. For more information, see [Cloud Trace labels](https://cloud.google.com/trace/docs/trace-labels). */
52
52
  labels?: {[P in string]: string};
53
53
  /** Name of the span. Must be less than 128 bytes. The span name is sanitized and displayed in the Trace tool in the Google Cloud Platform Console. The name may be a method name or some other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans. */
@@ -63,11 +63,11 @@ declare namespace gapi.client {
63
63
  /** Gets a single trace by its ID. */
64
64
  get(request?: {
65
65
  /** V1 error format. */
66
- '$.xgafv'?: string;
66
+ '$.xgafv'?: '1' | '2';
67
67
  /** OAuth access token. */
68
68
  access_token?: string;
69
69
  /** Data format for response. */
70
- alt?: string;
70
+ alt?: 'json' | 'media' | 'proto';
71
71
  /** JSONP */
72
72
  callback?: string;
73
73
  /** Selector specifying which fields to include in a partial response. */
@@ -92,11 +92,11 @@ declare namespace gapi.client {
92
92
  /** Returns a list of traces that match the specified filter conditions. */
93
93
  list(request?: {
94
94
  /** V1 error format. */
95
- '$.xgafv'?: string;
95
+ '$.xgafv'?: '1' | '2';
96
96
  /** OAuth access token. */
97
97
  access_token?: string;
98
98
  /** Data format for response. */
99
- alt?: string;
99
+ alt?: 'json' | 'media' | 'proto';
100
100
  /** JSONP */
101
101
  callback?: string;
102
102
  /** End of the time interval (inclusive) during which the trace data was collected from the application. */
@@ -128,18 +128,18 @@ declare namespace gapi.client {
128
128
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
129
129
  uploadType?: string;
130
130
  /** Optional. Type of data returned for traces in the list. Default is `MINIMAL`. */
131
- view?: string;
131
+ view?: 'VIEW_TYPE_UNSPECIFIED' | 'MINIMAL' | 'ROOTSPAN' | 'COMPLETE';
132
132
  }): Request<ListTracesResponse>;
133
133
  }
134
134
  interface ProjectsResource {
135
135
  /** Sends trace spans to Cloud Trace. Spans cannot be updated. If the trace ID and span ID already exist, an additional copy of the span will be stored. */
136
136
  patchTraces(request: {
137
137
  /** V1 error format. */
138
- '$.xgafv'?: string;
138
+ '$.xgafv'?: '1' | '2';
139
139
  /** OAuth access token. */
140
140
  access_token?: string;
141
141
  /** Data format for response. */
142
- alt?: string;
142
+ alt?: 'json' | 'media' | 'proto';
143
143
  /** JSONP */
144
144
  callback?: string;
145
145
  /** Selector specifying which fields to include in a partial response. */
@@ -164,11 +164,11 @@ declare namespace gapi.client {
164
164
  patchTraces(
165
165
  request: {
166
166
  /** V1 error format. */
167
- '$.xgafv'?: string;
167
+ '$.xgafv'?: '1' | '2';
168
168
  /** OAuth access token. */
169
169
  access_token?: string;
170
170
  /** Data format for response. */
171
- alt?: string;
171
+ alt?: 'json' | 'media' | 'proto';
172
172
  /** JSONP */
173
173
  callback?: string;
174
174
  /** Selector specifying which fields to include in a partial response. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtrace-v1",
3
- "version": "0.1.20260309",
3
+ "version": "0.1.20260601",
4
4
  "description": "TypeScript typings for Cloud Trace API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -11,6 +11,18 @@ Install typings for Cloud Trace API:
11
11
  npm install @types/gapi.client.cloudtrace-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": ["gapi", "gapi.auth2", "gapi.client", "gapi.client.cloudtrace-v1"]
22
+ }
23
+ }
24
+ ```
25
+
14
26
  ## Usage
15
27
 
16
28
  You need to initialize Google API client in your code: