@types/k6 2.3.0 → 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: Tue, 29 Sep 2026 02:43:36 GMT
11
+ * Last updated: Mon, 23 Nov 2026 22:02:20 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
k6/http/index.d.ts CHANGED
@@ -89,6 +89,23 @@ export function post<RT extends ResponseType | undefined>(
89
89
  params?: RefinedParams<RT> | null,
90
90
  ): RefinedResponse<RT>;
91
91
 
92
+ /**
93
+ * Make QUERY request (RFC 10008).
94
+ * https://grafana.com/docs/k6/latest/javascript-api/k6-http/query/
95
+ * @param url - Request URL.
96
+ * @param body - Request body. Object form encoded.
97
+ * @param params - Request parameters.
98
+ * @returns Resulting response.
99
+ * @example
100
+ * let headers = { 'Content-Type': 'application/json' };
101
+ * http.query(url, JSON.stringify({ filter: 'all' }), { headers: headers });
102
+ */
103
+ export function query<RT extends ResponseType | undefined>(
104
+ url: string | HttpURL,
105
+ body?: RequestBody | null,
106
+ params?: RefinedParams<RT> | null,
107
+ ): RefinedResponse<RT>;
108
+
92
109
  /**
93
110
  * Make PUT request.
94
111
  * https://grafana.com/docs/k6/latest/javascript-api/k6-http/put/
@@ -609,6 +626,7 @@ export type CipherSuite =
609
626
  | "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256"
610
627
  | "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
611
628
  | "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"
629
+ | "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256"
612
630
  | "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA"
613
631
  | "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA"
614
632
  | "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256"
@@ -616,6 +634,7 @@ export type CipherSuite =
616
634
  | "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256"
617
635
  | "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384"
618
636
  | "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305"
637
+ | "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256"
619
638
  | "TLS_AES_128_GCM_SHA256"
620
639
  | "TLS_AES_256_GCM_SHA384"
621
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.0",
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": "13b252b0400d0e312551111e925b2604eba606d754637fdf79f7894274f352b9",
86
+ "typesPublisherContentHash": "9e771623a1d4c9e721d94af96021a0ae29cd1d51ee4b735417a0d48b5cd2f123",
87
87
  "typeScriptVersion": "5.6"
88
88
  }