@maxim_mazurok/gapi.client.cloudtrace-v2 0.1.20260306 → 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.
- package/index.d.ts +19 -13
- package/package.json +1 -1
- 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=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260601
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -57,7 +57,7 @@ declare namespace gapi.client {
|
|
|
57
57
|
/** The `[TRACE_ID]` for a trace within a project. */
|
|
58
58
|
traceId?: string;
|
|
59
59
|
/** The relationship of the current span relative to the linked span. */
|
|
60
|
-
type?:
|
|
60
|
+
type?: 'TYPE_UNSPECIFIED' | 'CHILD_LINKED_SPAN' | 'PARENT_LINKED_SPAN';
|
|
61
61
|
}
|
|
62
62
|
interface Links {
|
|
63
63
|
/** The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped. */
|
|
@@ -71,7 +71,7 @@ declare namespace gapi.client {
|
|
|
71
71
|
/** An identifier for the MessageEvent's message that can be used to match `SENT` and `RECEIVED` MessageEvents. */
|
|
72
72
|
id?: string;
|
|
73
73
|
/** Type of MessageEvent. Indicates whether the message was sent or received. */
|
|
74
|
-
type?:
|
|
74
|
+
type?: 'TYPE_UNSPECIFIED' | 'SENT' | 'RECEIVED';
|
|
75
75
|
/** The number of uncompressed bytes sent or received. */
|
|
76
76
|
uncompressedSizeBytes?: string;
|
|
77
77
|
}
|
|
@@ -101,7 +101,13 @@ declare namespace gapi.client {
|
|
|
101
101
|
/** Required. The `[SPAN_ID]` portion of the span's resource name. */
|
|
102
102
|
spanId?: string;
|
|
103
103
|
/** Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee) to identify an RPC call. */
|
|
104
|
-
spanKind?:
|
|
104
|
+
spanKind?:
|
|
105
|
+
| 'SPAN_KIND_UNSPECIFIED'
|
|
106
|
+
| 'INTERNAL'
|
|
107
|
+
| 'SERVER'
|
|
108
|
+
| 'CLIENT'
|
|
109
|
+
| 'PRODUCER'
|
|
110
|
+
| 'CONSUMER';
|
|
105
111
|
/** Stack trace captured at the start of the span. */
|
|
106
112
|
stackTrace?: StackTrace;
|
|
107
113
|
/** Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the server's application handler starts running. */
|
|
@@ -143,7 +149,7 @@ declare namespace gapi.client {
|
|
|
143
149
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
144
150
|
code?: number;
|
|
145
151
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
146
|
-
details?:
|
|
152
|
+
details?: {[P in string]: any}[];
|
|
147
153
|
/** 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. */
|
|
148
154
|
message?: string;
|
|
149
155
|
}
|
|
@@ -173,11 +179,11 @@ declare namespace gapi.client {
|
|
|
173
179
|
/** Creates a new span. If a span ID already exists, an additional copy of the span will be stored. */
|
|
174
180
|
createSpan(request: {
|
|
175
181
|
/** V1 error format. */
|
|
176
|
-
'$.xgafv'?:
|
|
182
|
+
'$.xgafv'?: '1' | '2';
|
|
177
183
|
/** OAuth access token. */
|
|
178
184
|
access_token?: string;
|
|
179
185
|
/** Data format for response. */
|
|
180
|
-
alt?:
|
|
186
|
+
alt?: 'json' | 'media' | 'proto';
|
|
181
187
|
/** JSONP */
|
|
182
188
|
callback?: string;
|
|
183
189
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -202,11 +208,11 @@ declare namespace gapi.client {
|
|
|
202
208
|
createSpan(
|
|
203
209
|
request: {
|
|
204
210
|
/** V1 error format. */
|
|
205
|
-
'$.xgafv'?:
|
|
211
|
+
'$.xgafv'?: '1' | '2';
|
|
206
212
|
/** OAuth access token. */
|
|
207
213
|
access_token?: string;
|
|
208
214
|
/** Data format for response. */
|
|
209
|
-
alt?:
|
|
215
|
+
alt?: 'json' | 'media' | 'proto';
|
|
210
216
|
/** JSONP */
|
|
211
217
|
callback?: string;
|
|
212
218
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -233,11 +239,11 @@ declare namespace gapi.client {
|
|
|
233
239
|
/** Batch writes new spans to new or existing traces. You cannot update existing spans. If a span ID already exists, an additional copy of the span will be stored. */
|
|
234
240
|
batchWrite(request: {
|
|
235
241
|
/** V1 error format. */
|
|
236
|
-
'$.xgafv'?:
|
|
242
|
+
'$.xgafv'?: '1' | '2';
|
|
237
243
|
/** OAuth access token. */
|
|
238
244
|
access_token?: string;
|
|
239
245
|
/** Data format for response. */
|
|
240
|
-
alt?:
|
|
246
|
+
alt?: 'json' | 'media' | 'proto';
|
|
241
247
|
/** JSONP */
|
|
242
248
|
callback?: string;
|
|
243
249
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -262,11 +268,11 @@ declare namespace gapi.client {
|
|
|
262
268
|
batchWrite(
|
|
263
269
|
request: {
|
|
264
270
|
/** V1 error format. */
|
|
265
|
-
'$.xgafv'?:
|
|
271
|
+
'$.xgafv'?: '1' | '2';
|
|
266
272
|
/** OAuth access token. */
|
|
267
273
|
access_token?: string;
|
|
268
274
|
/** Data format for response. */
|
|
269
|
-
alt?:
|
|
275
|
+
alt?: 'json' | 'media' | 'proto';
|
|
270
276
|
/** JSONP */
|
|
271
277
|
callback?: string;
|
|
272
278
|
/** Selector specifying which fields to include in a partial response. */
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,6 +11,18 @@ Install typings for Cloud Trace API:
|
|
|
11
11
|
npm install @types/gapi.client.cloudtrace-v2 --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-v2"]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
```
|
|
25
|
+
|
|
14
26
|
## Usage
|
|
15
27
|
|
|
16
28
|
You need to initialize Google API client in your code:
|