@types/k6 0.45.2 → 0.46.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,9 +8,9 @@ This package contains type definitions for k6 (https://k6.io/docs/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Wed, 09 Aug 2023 21:02:51 GMT
11
+ * Last updated: Mon, 14 Aug 2023 14:32:49 GMT
12
12
  * Dependencies: none
13
13
  * Global values: none
14
14
 
15
15
  # Credits
16
- These definitions were written by [na--](https://github.com/na--), [Mihail Stoykov](https://github.com/MStoykov), [Ivan](https://github.com/codebien), [Ivan Mirić](https://github.com/imiric), [Théo Crevon](https://github.com/oleiade), [Oleg Bespalov](https://github.com/olegbespalov), [Pepe Cano](https://github.com/ppcano), [Nicole van der Hoeven](https://github.com/nicolevanderhoeven), and [Ankur Agarwal](https://github.com/ankur22).
16
+ These definitions were written by [Mihail Stoykov](https://github.com/MStoykov), [Ivan](https://github.com/codebien), [Théo Crevon](https://github.com/oleiade), [Oleg Bespalov](https://github.com/olegbespalov), [Pepe Cano](https://github.com/ppcano), [Nicole van der Hoeven](https://github.com/nicolevanderhoeven), and [Ankur Agarwal](https://github.com/ankur22).
k6/experimental/grpc.d.ts CHANGED
@@ -17,15 +17,58 @@ export interface Response {
17
17
  }
18
18
 
19
19
  export interface ConnectParams {
20
+ /**
21
+ * If `true` will connect to the gRPC server using plaintext i.e. insecure.
22
+ */
20
23
  plaintext?: boolean;
21
24
 
25
+ /**
26
+ * If `true` connection will try to use the gRPC server reflection protocol.
27
+ * https://github.com/grpc/grpc/blob/master/doc/server-reflection.md
28
+ */
22
29
  reflect?: boolean;
23
30
 
31
+ /**
32
+ * Connection timeout to use.
33
+ */
24
34
  timeout?: string | number;
25
35
 
36
+ /**
37
+ * Maximum message size in bytes the client can receive.
38
+ */
26
39
  maxReceiveSize?: number;
27
40
 
41
+ /**
42
+ * Maximum message size in bytes the client can send.
43
+ */
28
44
  maxSendSize?: number;
45
+
46
+ /**
47
+ * TLS settings of the connection.
48
+ */
49
+ tls?: TLSParams;
50
+ }
51
+
52
+ export interface TLSParams {
53
+ /**
54
+ * PEM formatted client certificate.
55
+ */
56
+ cert: string;
57
+
58
+ /**
59
+ * PEM formatted client private key.
60
+ */
61
+ key: string;
62
+
63
+ /**
64
+ * Password for decrypting the client's private key.
65
+ */
66
+ password?: string;
67
+
68
+ /**
69
+ * PEM formatted string/strings of the certificate authorities.
70
+ */
71
+ cacerts?: string | string[];
29
72
  }
30
73
 
31
74
  export interface Params {
@@ -81,22 +124,21 @@ declare namespace grpc {
81
124
  * StreamEvent describes the possible events that can be emitted
82
125
  * by a gRPC stream.
83
126
  */
84
- enum StreamEvent {
127
+ type StreamEvent =
85
128
  /**
86
129
  * Event fired when data has been received from the server.
87
130
  */
88
- Data = 'data',
131
+ | 'data'
89
132
 
90
133
  /**
91
134
  * Event fired when a stream has been closed due to an error.
92
135
  */
93
- Error = 'error',
136
+ | 'error'
94
137
 
95
138
  /**
96
139
  * Event fired when the stream closes.
97
140
  */
98
- End = 'end',
99
- }
141
+ | 'end';
100
142
 
101
143
  /**
102
144
  * Stream allows you to use streaming RPCs.
k6/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- // Type definitions for k6 0.45
1
+ // Type definitions for k6 0.46
2
2
  // Project: https://k6.io/docs/
3
- // Definitions by: na-- <https://github.com/na-->
4
- // Mihail Stoykov <https://github.com/MStoykov>
3
+ // Definitions by: Mihail Stoykov <https://github.com/MStoykov>
5
4
  // Ivan <https://github.com/codebien>
6
- // Ivan Mirić <https://github.com/imiric>
7
5
  // Théo Crevon <https://github.com/oleiade>
8
6
  // Oleg Bespalov <https://github.com/olegbespalov>
9
7
  // Pepe Cano <https://github.com/ppcano>
k6/net/grpc.d.ts CHANGED
@@ -17,15 +17,58 @@ export interface Response {
17
17
  }
18
18
 
19
19
  export interface ConnectParams {
20
+ /**
21
+ * If `true` will connect to the gRPC server using plaintext i.e. insecure.
22
+ */
20
23
  plaintext?: boolean;
21
24
 
25
+ /**
26
+ * If `true` connection will try to use the gRPC server reflection protocol.
27
+ * https://github.com/grpc/grpc/blob/master/doc/server-reflection.md
28
+ */
22
29
  reflect?: boolean;
23
30
 
31
+ /**
32
+ * Connection timeout to use.
33
+ */
24
34
  timeout?: string | number;
25
35
 
36
+ /**
37
+ * Maximum message size in bytes the client can receive.
38
+ */
26
39
  maxReceiveSize?: number;
27
40
 
41
+ /**
42
+ * Maximum message size in bytes the client can send.
43
+ */
28
44
  maxSendSize?: number;
45
+
46
+ /**
47
+ * TLS settings of the connection.
48
+ */
49
+ tls?: TLSParams;
50
+ }
51
+
52
+ export interface TLSParams {
53
+ /**
54
+ * PEM formatted client certificate.
55
+ */
56
+ cert: string;
57
+
58
+ /**
59
+ * PEM formatted client private key.
60
+ */
61
+ key: string;
62
+
63
+ /**
64
+ * Password for decrypting the client's private key.
65
+ */
66
+ password?: string;
67
+
68
+ /**
69
+ * PEM formatted string/strings of the certificate authorities.
70
+ */
71
+ cacerts?: string | string[];
29
72
  }
30
73
 
31
74
  export interface Params {
k6/package.json CHANGED
@@ -1,15 +1,10 @@
1
1
  {
2
2
  "name": "@types/k6",
3
- "version": "0.45.2",
3
+ "version": "0.46.0",
4
4
  "description": "TypeScript definitions for k6",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/k6",
6
6
  "license": "MIT",
7
7
  "contributors": [
8
- {
9
- "name": "na--",
10
- "url": "https://github.com/na--",
11
- "githubUsername": "na--"
12
- },
13
8
  {
14
9
  "name": "Mihail Stoykov",
15
10
  "url": "https://github.com/MStoykov",
@@ -20,11 +15,6 @@
20
15
  "url": "https://github.com/codebien",
21
16
  "githubUsername": "codebien"
22
17
  },
23
- {
24
- "name": "Ivan Mirić",
25
- "url": "https://github.com/imiric",
26
- "githubUsername": "imiric"
27
- },
28
18
  {
29
19
  "name": "Théo Crevon",
30
20
  "url": "https://github.com/oleiade",
@@ -60,6 +50,6 @@
60
50
  },
61
51
  "scripts": {},
62
52
  "dependencies": {},
63
- "typesPublisherContentHash": "92c632f3fe1de47b5cec0048fe136df4d6f4f41ced7636f993826d78fac18d0d",
53
+ "typesPublisherContentHash": "9d8a1f6f6665369822b90965c9d93ab0ff48f65051e9c708d52202e154d1e45a",
64
54
  "typeScriptVersion": "4.3"
65
55
  }