@nmtjs/protocol 0.15.0-beta.53 → 0.15.0-beta.54

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.
@@ -11,9 +11,9 @@ export declare class ProtocolVersion1 extends ProtocolVersionInterface {
11
11
  result?: undefined;
12
12
  nonce?: undefined;
13
13
  size?: undefined;
14
- reason?: undefined;
15
- streamId?: undefined;
16
14
  chunk?: undefined;
15
+ streamId?: undefined;
16
+ reason?: undefined;
17
17
  } | {
18
18
  type: ServerMessageType.RpcResponse;
19
19
  callId: number;
@@ -21,9 +21,9 @@ export declare class ProtocolVersion1 extends ProtocolVersionInterface {
21
21
  error?: undefined;
22
22
  nonce?: undefined;
23
23
  size?: undefined;
24
- reason?: undefined;
25
- streamId?: undefined;
26
24
  chunk?: undefined;
25
+ streamId?: undefined;
26
+ reason?: undefined;
27
27
  } | {
28
28
  result?: undefined;
29
29
  type: ServerMessageType.RpcStreamResponse;
@@ -31,9 +31,9 @@ export declare class ProtocolVersion1 extends ProtocolVersionInterface {
31
31
  error: BaseProtocolError | undefined;
32
32
  nonce?: undefined;
33
33
  size?: undefined;
34
- reason?: undefined;
35
- streamId?: undefined;
36
34
  chunk?: undefined;
35
+ streamId?: undefined;
36
+ reason?: undefined;
37
37
  } | {
38
38
  result?: undefined;
39
39
  error?: undefined;
@@ -42,8 +42,8 @@ export declare class ProtocolVersion1 extends ProtocolVersionInterface {
42
42
  chunk: Uint8Array<ArrayBufferLike>;
43
43
  nonce?: undefined;
44
44
  size?: undefined;
45
- reason?: undefined;
46
45
  streamId?: undefined;
46
+ reason?: undefined;
47
47
  } | {
48
48
  result?: undefined;
49
49
  error?: undefined;
@@ -51,9 +51,9 @@ export declare class ProtocolVersion1 extends ProtocolVersionInterface {
51
51
  callId: number;
52
52
  nonce?: undefined;
53
53
  size?: undefined;
54
- reason?: undefined;
55
- streamId?: undefined;
56
54
  chunk?: undefined;
55
+ streamId?: undefined;
56
+ reason?: undefined;
57
57
  } | {
58
58
  result?: undefined;
59
59
  error?: undefined;
@@ -62,78 +62,78 @@ export declare class ProtocolVersion1 extends ProtocolVersionInterface {
62
62
  reason: string | undefined;
63
63
  nonce?: undefined;
64
64
  size?: undefined;
65
- streamId?: undefined;
66
65
  chunk?: undefined;
66
+ streamId?: undefined;
67
67
  } | {
68
68
  result?: undefined;
69
69
  error?: undefined;
70
+ callId?: undefined;
70
71
  type: ServerMessageType.Pong;
71
72
  nonce: number;
72
- callId?: undefined;
73
73
  size?: undefined;
74
- reason?: undefined;
75
- streamId?: undefined;
76
74
  chunk?: undefined;
75
+ streamId?: undefined;
76
+ reason?: undefined;
77
77
  } | {
78
78
  result?: undefined;
79
79
  error?: undefined;
80
+ callId?: undefined;
80
81
  type: ServerMessageType.Ping;
81
82
  nonce: number;
82
- callId?: undefined;
83
83
  size?: undefined;
84
- reason?: undefined;
85
- streamId?: undefined;
86
84
  chunk?: undefined;
85
+ streamId?: undefined;
86
+ reason?: undefined;
87
87
  } | {
88
88
  result?: undefined;
89
89
  error?: undefined;
90
+ callId?: undefined;
91
+ nonce?: undefined;
90
92
  type: ServerMessageType.ClientStreamPull;
91
93
  streamId: number;
92
94
  size: number;
93
- callId?: undefined;
94
- nonce?: undefined;
95
- reason?: undefined;
96
95
  chunk?: undefined;
96
+ reason?: undefined;
97
97
  } | {
98
98
  result?: undefined;
99
99
  error?: undefined;
100
- type: ServerMessageType.ClientStreamAbort;
101
- streamId: number;
102
- reason: string | undefined;
103
100
  callId?: undefined;
104
101
  nonce?: undefined;
105
102
  size?: undefined;
103
+ type: ServerMessageType.ClientStreamAbort;
104
+ streamId: number;
105
+ reason: string | undefined;
106
106
  chunk?: undefined;
107
107
  } | {
108
108
  result?: undefined;
109
109
  error?: undefined;
110
- type: ServerMessageType.ServerStreamPush;
111
- streamId: number;
112
- chunk: Uint8Array<ArrayBufferLike>;
113
110
  callId?: undefined;
114
111
  nonce?: undefined;
115
112
  size?: undefined;
113
+ type: ServerMessageType.ServerStreamPush;
114
+ streamId: number;
115
+ chunk: Uint8Array<ArrayBufferLike>;
116
116
  reason?: undefined;
117
117
  } | {
118
118
  result?: undefined;
119
119
  error?: undefined;
120
- type: ServerMessageType.ServerStreamEnd;
121
- streamId: number;
122
- reason: string | undefined;
123
120
  callId?: undefined;
124
121
  nonce?: undefined;
125
122
  size?: undefined;
126
123
  chunk?: undefined;
124
+ type: ServerMessageType.ServerStreamEnd;
125
+ streamId: number;
126
+ reason: string | undefined;
127
127
  } | {
128
128
  result?: undefined;
129
129
  error?: undefined;
130
- type: ServerMessageType.ServerStreamAbort;
131
- streamId: number;
132
- reason: string | undefined;
133
130
  callId?: undefined;
134
131
  nonce?: undefined;
135
132
  size?: undefined;
136
133
  chunk?: undefined;
134
+ type: ServerMessageType.ServerStreamAbort;
135
+ streamId: number;
136
+ reason: string | undefined;
137
137
  };
138
138
  encodeMessage<T extends ClientMessageType>(context: MessageContext, messageType: T, payload: ClientMessageTypePayload[T]): Uint8Array<ArrayBuffer>;
139
139
  }
@@ -5,87 +5,87 @@ import { ProtocolVersionInterface } from '../protocol.ts';
5
5
  export declare class ProtocolVersion1 extends ProtocolVersionInterface {
6
6
  version: ProtocolVersion;
7
7
  decodeMessage(context: MessageContext, buffer: Buffer): {
8
+ callId?: undefined;
9
+ nonce?: undefined;
10
+ size?: undefined;
11
+ chunk?: undefined;
12
+ streamId?: undefined;
13
+ reason?: undefined;
8
14
  type: ClientMessageType.Rpc;
9
15
  rpc: {
10
16
  callId: number;
11
17
  procedure: string;
12
18
  payload: unknown;
13
19
  };
14
- callId?: undefined;
20
+ } | {
15
21
  nonce?: undefined;
16
22
  size?: undefined;
17
- reason?: undefined;
18
- streamId?: undefined;
19
23
  chunk?: undefined;
20
- } | {
24
+ streamId?: undefined;
21
25
  rpc?: undefined;
22
26
  type: ClientMessageType.RpcAbort;
23
27
  callId: number;
24
28
  reason: string | undefined;
25
- nonce?: undefined;
29
+ } | {
30
+ callId?: undefined;
26
31
  size?: undefined;
27
- streamId?: undefined;
28
32
  chunk?: undefined;
29
- } | {
33
+ streamId?: undefined;
34
+ reason?: undefined;
30
35
  rpc?: undefined;
31
- callId?: undefined;
32
36
  type: ClientMessageType.Ping;
33
37
  nonce: number;
38
+ } | {
39
+ callId?: undefined;
34
40
  size?: undefined;
35
- reason?: undefined;
36
- streamId?: undefined;
37
41
  chunk?: undefined;
38
- } | {
42
+ streamId?: undefined;
43
+ reason?: undefined;
39
44
  rpc?: undefined;
40
- callId?: undefined;
41
45
  type: ClientMessageType.Pong;
42
46
  nonce: number;
43
- size?: undefined;
44
- reason?: undefined;
45
- streamId?: undefined;
46
- chunk?: undefined;
47
47
  } | {
48
- rpc?: undefined;
49
48
  callId?: undefined;
50
49
  nonce?: undefined;
50
+ size?: undefined;
51
+ chunk?: undefined;
52
+ rpc?: undefined;
51
53
  type: ClientMessageType.ServerStreamAbort;
52
54
  streamId: number;
53
55
  reason: string | undefined;
54
- size?: undefined;
55
- chunk?: undefined;
56
56
  } | {
57
- rpc?: undefined;
58
57
  callId?: undefined;
59
58
  nonce?: undefined;
59
+ chunk?: undefined;
60
+ reason?: undefined;
61
+ rpc?: undefined;
60
62
  type: ClientMessageType.ServerStreamPull;
61
63
  streamId: number;
62
64
  size: number;
63
- reason?: undefined;
64
- chunk?: undefined;
65
65
  } | {
66
- rpc?: undefined;
67
66
  callId?: undefined;
68
67
  nonce?: undefined;
69
68
  size?: undefined;
69
+ chunk?: undefined;
70
+ rpc?: undefined;
70
71
  type: ClientMessageType.ClientStreamAbort;
71
72
  streamId: number;
72
73
  reason: string | undefined;
73
- chunk?: undefined;
74
74
  } | {
75
- rpc?: undefined;
76
75
  callId?: undefined;
77
76
  nonce?: undefined;
78
77
  size?: undefined;
78
+ chunk?: undefined;
79
79
  reason?: undefined;
80
+ rpc?: undefined;
80
81
  type: ClientMessageType.ClientStreamEnd;
81
82
  streamId: number;
82
- chunk?: undefined;
83
83
  } | {
84
- rpc?: undefined;
85
84
  callId?: undefined;
86
85
  nonce?: undefined;
87
86
  size?: undefined;
88
87
  reason?: undefined;
88
+ rpc?: undefined;
89
89
  type: ClientMessageType.ClientStreamPush;
90
90
  streamId: number;
91
91
  chunk: Buffer<ArrayBufferLike>;
package/package.json CHANGED
@@ -21,18 +21,18 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "hookable": "6.0.0-rc.1",
24
- "@nmtjs/common": "0.15.0-beta.53",
25
- "@nmtjs/type": "0.15.0-beta.53",
26
- "@nmtjs/contract": "0.15.0-beta.53"
24
+ "@nmtjs/common": "0.15.0-beta.54",
25
+ "@nmtjs/type": "0.15.0-beta.54",
26
+ "@nmtjs/contract": "0.15.0-beta.54"
27
27
  },
28
28
  "devDependencies": {
29
- "@nmtjs/core": "0.15.0-beta.53"
29
+ "@nmtjs/core": "0.15.0-beta.54"
30
30
  },
31
31
  "peerDependencies": {
32
- "@nmtjs/common": "0.15.0-beta.53",
33
- "@nmtjs/core": "0.15.0-beta.53",
34
- "@nmtjs/type": "0.15.0-beta.53",
35
- "@nmtjs/contract": "0.15.0-beta.53"
32
+ "@nmtjs/common": "0.15.0-beta.54",
33
+ "@nmtjs/core": "0.15.0-beta.54",
34
+ "@nmtjs/contract": "0.15.0-beta.54",
35
+ "@nmtjs/type": "0.15.0-beta.54"
36
36
  },
37
37
  "files": [
38
38
  "dist",
@@ -40,7 +40,7 @@
40
40
  "LICENSE.md",
41
41
  "README.md"
42
42
  ],
43
- "version": "0.15.0-beta.53",
43
+ "version": "0.15.0-beta.54",
44
44
  "scripts": {
45
45
  "clean-build": "rm -rf ./dist"
46
46
  }