@types/k6 2.3.1 → 2.4.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.
k6/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for k6 (https://grafana.com/docs/k6/lates
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 26 Oct 2026 18:50:21 GMT
11
+ * Last updated: Mon, 23 Nov 2026 22:02:20 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
k6/browser/index.d.ts CHANGED
@@ -1186,7 +1186,7 @@ export interface MetricMessage {
1186
1186
  * it's not set it will group all metrics regardless of the method
1187
1187
  * tag.
1188
1188
  */
1189
- method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD" | "TRACE" | "CONNECT" | "QUERY";
1189
+ method?: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD" | "TRACE" | "CONNECT";
1190
1190
  }>;
1191
1191
  }): void;
1192
1192
  }
k6/http/index.d.ts CHANGED
@@ -626,6 +626,7 @@ export type CipherSuite =
626
626
  | "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
627
627
  | "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
628
628
  | "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
629
+ | "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"
629
630
  | "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA"
630
631
  | "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"
631
632
  | "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
@@ -633,6 +634,7 @@ export type CipherSuite =
633
634
  | "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
634
635
  | "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
635
636
  | "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305"
637
+ | "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
636
638
  | "TLS_AES_128_GCM_SHA256"
637
639
  | "TLS_AES_256_GCM_SHA384"
638
640
  | "TLS_CHACHA20_POLY1305_SHA256";
k6/net/grpc/index.d.ts CHANGED
@@ -13,7 +13,20 @@ export interface Response {
13
13
 
14
14
  trailers: object;
15
15
 
16
- error: object;
16
+ error: ResponseStatus | null;
17
+ }
18
+
19
+ /** Structured status returned for a failed unary gRPC invocation. */
20
+ export interface ResponseStatus {
21
+ code: number;
22
+ message: string;
23
+ details: ResponseStatusDetail[];
24
+ }
25
+
26
+ /** A protobuf Any detail, including fields from custom message types. */
27
+ export interface ResponseStatusDetail {
28
+ "@type": string;
29
+ [field: string]: unknown;
17
30
  }
18
31
 
19
32
  export interface ConnectParams {
k6/options/index.d.ts CHANGED
@@ -59,6 +59,12 @@ export interface Options {
59
59
  /** Log all HTTP requests and responses. */
60
60
  httpDebug?: string;
61
61
 
62
+ /**
63
+ * Mask credential headers in HTTP debug output and gRPC metadata.
64
+ * Disabled by default. Does not redact bodies or URL query parameters.
65
+ */
66
+ httpDebugRedact?: boolean;
67
+
62
68
  /** Disable TLS verification. Insecure. */
63
69
  insecureSkipTLSVerify?: boolean;
64
70
 
k6/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "2.3.1",
3
+ "version": "2.4.0",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
@@ -83,6 +83,6 @@
83
83
  "scripts": {},
84
84
  "dependencies": {},
85
85
  "peerDependencies": {},
86
- "typesPublisherContentHash": "a59d6cbb0574d4d9e82b12cdd3a8d86027b7ad64df90b9791d5ded3b0a5505f3",
86
+ "typesPublisherContentHash": "9e771623a1d4c9e721d94af96021a0ae29cd1d51ee4b735417a0d48b5cd2f123",
87
87
  "typeScriptVersion": "5.6"
88
88
  }