@ekhein/lamda-node-sdk 2.0.5 → 2.0.7

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.
@@ -1,14 +1,17 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export const protobufPackage = "google.protobuf";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Empty = exports.protobufPackage = void 0;
4
+ const wire_1 = require("@bufbuild/protobuf/wire");
5
+ exports.protobufPackage = "google.protobuf";
3
6
  function createBaseEmpty() {
4
7
  return {};
5
8
  }
6
- export const Empty = {
7
- encode(_, writer = new BinaryWriter()) {
9
+ exports.Empty = {
10
+ encode(_, writer = new wire_1.BinaryWriter()) {
8
11
  return writer;
9
12
  },
10
13
  decode(input, length) {
11
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
14
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
12
15
  let end = length === undefined ? reader.len : reader.pos + length;
13
16
  const message = createBaseEmpty();
14
17
  while (reader.pos < end) {
@@ -30,7 +33,7 @@ export const Empty = {
30
33
  return obj;
31
34
  },
32
35
  create(base) {
33
- return Empty.fromPartial(base ?? {});
36
+ return exports.Empty.fromPartial(base ?? {});
34
37
  },
35
38
  fromPartial(_) {
36
39
  const message = createBaseEmpty();
@@ -1,11 +1,16 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export const protobufPackage = "google.protobuf";
3
- export var NullValue;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListValue = exports.Value = exports.Struct_FieldsEntry = exports.Struct = exports.NullValue = exports.protobufPackage = void 0;
4
+ exports.nullValueFromJSON = nullValueFromJSON;
5
+ exports.nullValueToJSON = nullValueToJSON;
6
+ const wire_1 = require("@bufbuild/protobuf/wire");
7
+ exports.protobufPackage = "google.protobuf";
8
+ var NullValue;
4
9
  (function (NullValue) {
5
10
  NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
6
11
  NullValue[NullValue["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
7
- })(NullValue || (NullValue = {}));
8
- export function nullValueFromJSON(object) {
12
+ })(NullValue || (exports.NullValue = NullValue = {}));
13
+ function nullValueFromJSON(object) {
9
14
  switch (object) {
10
15
  case 0:
11
16
  case "NULL_VALUE":
@@ -16,7 +21,7 @@ export function nullValueFromJSON(object) {
16
21
  return NullValue.UNRECOGNIZED;
17
22
  }
18
23
  }
19
- export function nullValueToJSON(object) {
24
+ function nullValueToJSON(object) {
20
25
  switch (object) {
21
26
  case NullValue.NULL_VALUE:
22
27
  return "NULL_VALUE";
@@ -28,17 +33,17 @@ export function nullValueToJSON(object) {
28
33
  function createBaseStruct() {
29
34
  return { fields: {} };
30
35
  }
31
- export const Struct = {
32
- encode(message, writer = new BinaryWriter()) {
36
+ exports.Struct = {
37
+ encode(message, writer = new wire_1.BinaryWriter()) {
33
38
  Object.entries(message.fields).forEach(([key, value]) => {
34
39
  if (value !== undefined) {
35
- Struct_FieldsEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
40
+ exports.Struct_FieldsEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
36
41
  }
37
42
  });
38
43
  return writer;
39
44
  },
40
45
  decode(input, length) {
41
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
46
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
42
47
  let end = length === undefined ? reader.len : reader.pos + length;
43
48
  const message = createBaseStruct();
44
49
  while (reader.pos < end) {
@@ -48,7 +53,7 @@ export const Struct = {
48
53
  if (tag !== 10) {
49
54
  break;
50
55
  }
51
- const entry1 = Struct_FieldsEntry.decode(reader, reader.uint32());
56
+ const entry1 = exports.Struct_FieldsEntry.decode(reader, reader.uint32());
52
57
  if (entry1.value !== undefined) {
53
58
  message.fields[entry1.key] = entry1.value;
54
59
  }
@@ -86,7 +91,7 @@ export const Struct = {
86
91
  return obj;
87
92
  },
88
93
  create(base) {
89
- return Struct.fromPartial(base ?? {});
94
+ return exports.Struct.fromPartial(base ?? {});
90
95
  },
91
96
  fromPartial(object) {
92
97
  const message = createBaseStruct();
@@ -120,18 +125,18 @@ export const Struct = {
120
125
  function createBaseStruct_FieldsEntry() {
121
126
  return { key: "", value: undefined };
122
127
  }
123
- export const Struct_FieldsEntry = {
124
- encode(message, writer = new BinaryWriter()) {
128
+ exports.Struct_FieldsEntry = {
129
+ encode(message, writer = new wire_1.BinaryWriter()) {
125
130
  if (message.key !== "") {
126
131
  writer.uint32(10).string(message.key);
127
132
  }
128
133
  if (message.value !== undefined) {
129
- Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).join();
134
+ exports.Value.encode(exports.Value.wrap(message.value), writer.uint32(18).fork()).join();
130
135
  }
131
136
  return writer;
132
137
  },
133
138
  decode(input, length) {
134
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
139
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
135
140
  let end = length === undefined ? reader.len : reader.pos + length;
136
141
  const message = createBaseStruct_FieldsEntry();
137
142
  while (reader.pos < end) {
@@ -148,7 +153,7 @@ export const Struct_FieldsEntry = {
148
153
  if (tag !== 18) {
149
154
  break;
150
155
  }
151
- message.value = Value.unwrap(Value.decode(reader, reader.uint32()));
156
+ message.value = exports.Value.unwrap(exports.Value.decode(reader, reader.uint32()));
152
157
  continue;
153
158
  }
154
159
  }
@@ -176,7 +181,7 @@ export const Struct_FieldsEntry = {
176
181
  return obj;
177
182
  },
178
183
  create(base) {
179
- return Struct_FieldsEntry.fromPartial(base ?? {});
184
+ return exports.Struct_FieldsEntry.fromPartial(base ?? {});
180
185
  },
181
186
  fromPartial(object) {
182
187
  const message = createBaseStruct_FieldsEntry();
@@ -195,8 +200,8 @@ function createBaseValue() {
195
200
  listValue: undefined,
196
201
  };
197
202
  }
198
- export const Value = {
199
- encode(message, writer = new BinaryWriter()) {
203
+ exports.Value = {
204
+ encode(message, writer = new wire_1.BinaryWriter()) {
200
205
  if (message.nullValue !== undefined) {
201
206
  writer.uint32(8).int32(message.nullValue);
202
207
  }
@@ -210,15 +215,15 @@ export const Value = {
210
215
  writer.uint32(32).bool(message.boolValue);
211
216
  }
212
217
  if (message.structValue !== undefined) {
213
- Struct.encode(Struct.wrap(message.structValue), writer.uint32(42).fork()).join();
218
+ exports.Struct.encode(exports.Struct.wrap(message.structValue), writer.uint32(42).fork()).join();
214
219
  }
215
220
  if (message.listValue !== undefined) {
216
- ListValue.encode(ListValue.wrap(message.listValue), writer.uint32(50).fork()).join();
221
+ exports.ListValue.encode(exports.ListValue.wrap(message.listValue), writer.uint32(50).fork()).join();
217
222
  }
218
223
  return writer;
219
224
  },
220
225
  decode(input, length) {
221
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
226
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
222
227
  let end = length === undefined ? reader.len : reader.pos + length;
223
228
  const message = createBaseValue();
224
229
  while (reader.pos < end) {
@@ -256,14 +261,14 @@ export const Value = {
256
261
  if (tag !== 42) {
257
262
  break;
258
263
  }
259
- message.structValue = Struct.unwrap(Struct.decode(reader, reader.uint32()));
264
+ message.structValue = exports.Struct.unwrap(exports.Struct.decode(reader, reader.uint32()));
260
265
  continue;
261
266
  }
262
267
  case 6: {
263
268
  if (tag !== 50) {
264
269
  break;
265
270
  }
266
- message.listValue = ListValue.unwrap(ListValue.decode(reader, reader.uint32()));
271
+ message.listValue = exports.ListValue.unwrap(exports.ListValue.decode(reader, reader.uint32()));
267
272
  continue;
268
273
  }
269
274
  }
@@ -307,7 +312,7 @@ export const Value = {
307
312
  return obj;
308
313
  },
309
314
  create(base) {
310
- return Value.fromPartial(base ?? {});
315
+ return exports.Value.fromPartial(base ?? {});
311
316
  },
312
317
  fromPartial(object) {
313
318
  const message = createBaseValue();
@@ -369,15 +374,15 @@ export const Value = {
369
374
  function createBaseListValue() {
370
375
  return { values: [] };
371
376
  }
372
- export const ListValue = {
373
- encode(message, writer = new BinaryWriter()) {
377
+ exports.ListValue = {
378
+ encode(message, writer = new wire_1.BinaryWriter()) {
374
379
  for (const v of message.values) {
375
- Value.encode(Value.wrap(v), writer.uint32(10).fork()).join();
380
+ exports.Value.encode(exports.Value.wrap(v), writer.uint32(10).fork()).join();
376
381
  }
377
382
  return writer;
378
383
  },
379
384
  decode(input, length) {
380
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
385
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
381
386
  let end = length === undefined ? reader.len : reader.pos + length;
382
387
  const message = createBaseListValue();
383
388
  while (reader.pos < end) {
@@ -387,7 +392,7 @@ export const ListValue = {
387
392
  if (tag !== 10) {
388
393
  break;
389
394
  }
390
- message.values.push(Value.unwrap(Value.decode(reader, reader.uint32())));
395
+ message.values.push(exports.Value.unwrap(exports.Value.decode(reader, reader.uint32())));
391
396
  continue;
392
397
  }
393
398
  }
@@ -409,7 +414,7 @@ export const ListValue = {
409
414
  return obj;
410
415
  },
411
416
  create(base) {
412
- return ListValue.fromPartial(base ?? {});
417
+ return exports.ListValue.fromPartial(base ?? {});
413
418
  },
414
419
  fromPartial(object) {
415
420
  const message = createBaseListValue();
@@ -1,10 +1,13 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- export const protobufPackage = "lamda.rpc";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelinuxPolicyRequest = exports.protobufPackage = void 0;
4
+ const wire_1 = require("@bufbuild/protobuf/wire");
5
+ exports.protobufPackage = "lamda.rpc";
3
6
  function createBaseSelinuxPolicyRequest() {
4
7
  return { source: "", target: "", tclass: "", action: "" };
5
8
  }
6
- export const SelinuxPolicyRequest = {
7
- encode(message, writer = new BinaryWriter()) {
9
+ exports.SelinuxPolicyRequest = {
10
+ encode(message, writer = new wire_1.BinaryWriter()) {
8
11
  if (message.source !== "") {
9
12
  writer.uint32(10).string(message.source);
10
13
  }
@@ -20,7 +23,7 @@ export const SelinuxPolicyRequest = {
20
23
  return writer;
21
24
  },
22
25
  decode(input, length) {
23
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
26
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
24
27
  let end = length === undefined ? reader.len : reader.pos + length;
25
28
  const message = createBaseSelinuxPolicyRequest();
26
29
  while (reader.pos < end) {
@@ -87,7 +90,7 @@ export const SelinuxPolicyRequest = {
87
90
  return obj;
88
91
  },
89
92
  create(base) {
90
- return SelinuxPolicyRequest.fromPartial(base ?? {});
93
+ return exports.SelinuxPolicyRequest.fromPartial(base ?? {});
91
94
  },
92
95
  fromPartial(object) {
93
96
  const message = createBaseSelinuxPolicyRequest();
package/dist/rpc/proxy.js CHANGED
@@ -1,14 +1,29 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { ApplicationInfo } from "./application";
3
- export const protobufPackage = "lamda.rpc";
4
- export var GproxyType;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OpenVPNConfigRequest = exports.GproxyConfigRequest = exports.OpenVPNEncryption = exports.OpenVPNKeyDirection = exports.OpenVPNCipher = exports.OpenVPNAuth = exports.OpenVPNProto = exports.GproxyType = exports.protobufPackage = void 0;
4
+ exports.gproxyTypeFromJSON = gproxyTypeFromJSON;
5
+ exports.gproxyTypeToJSON = gproxyTypeToJSON;
6
+ exports.openVPNProtoFromJSON = openVPNProtoFromJSON;
7
+ exports.openVPNProtoToJSON = openVPNProtoToJSON;
8
+ exports.openVPNAuthFromJSON = openVPNAuthFromJSON;
9
+ exports.openVPNAuthToJSON = openVPNAuthToJSON;
10
+ exports.openVPNCipherFromJSON = openVPNCipherFromJSON;
11
+ exports.openVPNCipherToJSON = openVPNCipherToJSON;
12
+ exports.openVPNKeyDirectionFromJSON = openVPNKeyDirectionFromJSON;
13
+ exports.openVPNKeyDirectionToJSON = openVPNKeyDirectionToJSON;
14
+ exports.openVPNEncryptionFromJSON = openVPNEncryptionFromJSON;
15
+ exports.openVPNEncryptionToJSON = openVPNEncryptionToJSON;
16
+ const wire_1 = require("@bufbuild/protobuf/wire");
17
+ const application_1 = require("./application");
18
+ exports.protobufPackage = "lamda.rpc";
19
+ var GproxyType;
5
20
  (function (GproxyType) {
6
21
  GproxyType[GproxyType["SOCKS5"] = 0] = "SOCKS5";
7
22
  GproxyType[GproxyType["HTTP_CONNECT"] = 1] = "HTTP_CONNECT";
8
23
  GproxyType[GproxyType["HTTP_RELAY"] = 2] = "HTTP_RELAY";
9
24
  GproxyType[GproxyType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
10
- })(GproxyType || (GproxyType = {}));
11
- export function gproxyTypeFromJSON(object) {
25
+ })(GproxyType || (exports.GproxyType = GproxyType = {}));
26
+ function gproxyTypeFromJSON(object) {
12
27
  switch (object) {
13
28
  case 0:
14
29
  case "SOCKS5":
@@ -25,7 +40,7 @@ export function gproxyTypeFromJSON(object) {
25
40
  return GproxyType.UNRECOGNIZED;
26
41
  }
27
42
  }
28
- export function gproxyTypeToJSON(object) {
43
+ function gproxyTypeToJSON(object) {
29
44
  switch (object) {
30
45
  case GproxyType.SOCKS5:
31
46
  return "SOCKS5";
@@ -38,13 +53,13 @@ export function gproxyTypeToJSON(object) {
38
53
  return "UNRECOGNIZED";
39
54
  }
40
55
  }
41
- export var OpenVPNProto;
56
+ var OpenVPNProto;
42
57
  (function (OpenVPNProto) {
43
58
  OpenVPNProto[OpenVPNProto["TCP"] = 0] = "TCP";
44
59
  OpenVPNProto[OpenVPNProto["UDP"] = 1] = "UDP";
45
60
  OpenVPNProto[OpenVPNProto["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
46
- })(OpenVPNProto || (OpenVPNProto = {}));
47
- export function openVPNProtoFromJSON(object) {
61
+ })(OpenVPNProto || (exports.OpenVPNProto = OpenVPNProto = {}));
62
+ function openVPNProtoFromJSON(object) {
48
63
  switch (object) {
49
64
  case 0:
50
65
  case "TCP":
@@ -58,7 +73,7 @@ export function openVPNProtoFromJSON(object) {
58
73
  return OpenVPNProto.UNRECOGNIZED;
59
74
  }
60
75
  }
61
- export function openVPNProtoToJSON(object) {
76
+ function openVPNProtoToJSON(object) {
62
77
  switch (object) {
63
78
  case OpenVPNProto.TCP:
64
79
  return "TCP";
@@ -69,7 +84,7 @@ export function openVPNProtoToJSON(object) {
69
84
  return "UNRECOGNIZED";
70
85
  }
71
86
  }
72
- export var OpenVPNAuth;
87
+ var OpenVPNAuth;
73
88
  (function (OpenVPNAuth) {
74
89
  OpenVPNAuth[OpenVPNAuth["SHA1"] = 0] = "SHA1";
75
90
  OpenVPNAuth[OpenVPNAuth["SHA224"] = 1] = "SHA224";
@@ -84,8 +99,8 @@ export var OpenVPNAuth;
84
99
  OpenVPNAuth[OpenVPNAuth["RSA_SHA512"] = 10] = "RSA_SHA512";
85
100
  OpenVPNAuth[OpenVPNAuth["RSA_RIPEMD160"] = 11] = "RSA_RIPEMD160";
86
101
  OpenVPNAuth[OpenVPNAuth["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
87
- })(OpenVPNAuth || (OpenVPNAuth = {}));
88
- export function openVPNAuthFromJSON(object) {
102
+ })(OpenVPNAuth || (exports.OpenVPNAuth = OpenVPNAuth = {}));
103
+ function openVPNAuthFromJSON(object) {
89
104
  switch (object) {
90
105
  case 0:
91
106
  case "SHA1":
@@ -129,7 +144,7 @@ export function openVPNAuthFromJSON(object) {
129
144
  return OpenVPNAuth.UNRECOGNIZED;
130
145
  }
131
146
  }
132
- export function openVPNAuthToJSON(object) {
147
+ function openVPNAuthToJSON(object) {
133
148
  switch (object) {
134
149
  case OpenVPNAuth.SHA1:
135
150
  return "SHA1";
@@ -160,7 +175,7 @@ export function openVPNAuthToJSON(object) {
160
175
  return "UNRECOGNIZED";
161
176
  }
162
177
  }
163
- export var OpenVPNCipher;
178
+ var OpenVPNCipher;
164
179
  (function (OpenVPNCipher) {
165
180
  OpenVPNCipher[OpenVPNCipher["AES_128_GCM"] = 0] = "AES_128_GCM";
166
181
  OpenVPNCipher[OpenVPNCipher["AES_256_GCM"] = 1] = "AES_256_GCM";
@@ -168,8 +183,8 @@ export var OpenVPNCipher;
168
183
  OpenVPNCipher[OpenVPNCipher["AES_128_CBC"] = 3] = "AES_128_CBC";
169
184
  OpenVPNCipher[OpenVPNCipher["AES_256_CBC"] = 4] = "AES_256_CBC";
170
185
  OpenVPNCipher[OpenVPNCipher["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
171
- })(OpenVPNCipher || (OpenVPNCipher = {}));
172
- export function openVPNCipherFromJSON(object) {
186
+ })(OpenVPNCipher || (exports.OpenVPNCipher = OpenVPNCipher = {}));
187
+ function openVPNCipherFromJSON(object) {
173
188
  switch (object) {
174
189
  case 0:
175
190
  case "AES_128_GCM":
@@ -192,7 +207,7 @@ export function openVPNCipherFromJSON(object) {
192
207
  return OpenVPNCipher.UNRECOGNIZED;
193
208
  }
194
209
  }
195
- export function openVPNCipherToJSON(object) {
210
+ function openVPNCipherToJSON(object) {
196
211
  switch (object) {
197
212
  case OpenVPNCipher.AES_128_GCM:
198
213
  return "AES_128_GCM";
@@ -209,14 +224,14 @@ export function openVPNCipherToJSON(object) {
209
224
  return "UNRECOGNIZED";
210
225
  }
211
226
  }
212
- export var OpenVPNKeyDirection;
227
+ var OpenVPNKeyDirection;
213
228
  (function (OpenVPNKeyDirection) {
214
229
  OpenVPNKeyDirection[OpenVPNKeyDirection["KEY_DIRECTION_NONE"] = 0] = "KEY_DIRECTION_NONE";
215
230
  OpenVPNKeyDirection[OpenVPNKeyDirection["KEY_DIRECTION_0"] = 1] = "KEY_DIRECTION_0";
216
231
  OpenVPNKeyDirection[OpenVPNKeyDirection["KEY_DIRECTION_1"] = 2] = "KEY_DIRECTION_1";
217
232
  OpenVPNKeyDirection[OpenVPNKeyDirection["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
218
- })(OpenVPNKeyDirection || (OpenVPNKeyDirection = {}));
219
- export function openVPNKeyDirectionFromJSON(object) {
233
+ })(OpenVPNKeyDirection || (exports.OpenVPNKeyDirection = OpenVPNKeyDirection = {}));
234
+ function openVPNKeyDirectionFromJSON(object) {
220
235
  switch (object) {
221
236
  case 0:
222
237
  case "KEY_DIRECTION_NONE":
@@ -233,7 +248,7 @@ export function openVPNKeyDirectionFromJSON(object) {
233
248
  return OpenVPNKeyDirection.UNRECOGNIZED;
234
249
  }
235
250
  }
236
- export function openVPNKeyDirectionToJSON(object) {
251
+ function openVPNKeyDirectionToJSON(object) {
237
252
  switch (object) {
238
253
  case OpenVPNKeyDirection.KEY_DIRECTION_NONE:
239
254
  return "KEY_DIRECTION_NONE";
@@ -246,15 +261,15 @@ export function openVPNKeyDirectionToJSON(object) {
246
261
  return "UNRECOGNIZED";
247
262
  }
248
263
  }
249
- export var OpenVPNEncryption;
264
+ var OpenVPNEncryption;
250
265
  (function (OpenVPNEncryption) {
251
266
  OpenVPNEncryption[OpenVPNEncryption["TLS_NONE"] = 0] = "TLS_NONE";
252
267
  OpenVPNEncryption[OpenVPNEncryption["TLS_AUTH"] = 1] = "TLS_AUTH";
253
268
  OpenVPNEncryption[OpenVPNEncryption["TLS_CRYPT"] = 2] = "TLS_CRYPT";
254
269
  OpenVPNEncryption[OpenVPNEncryption["TLS_CRYPT_V2"] = 3] = "TLS_CRYPT_V2";
255
270
  OpenVPNEncryption[OpenVPNEncryption["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
256
- })(OpenVPNEncryption || (OpenVPNEncryption = {}));
257
- export function openVPNEncryptionFromJSON(object) {
271
+ })(OpenVPNEncryption || (exports.OpenVPNEncryption = OpenVPNEncryption = {}));
272
+ function openVPNEncryptionFromJSON(object) {
258
273
  switch (object) {
259
274
  case 0:
260
275
  case "TLS_NONE":
@@ -274,7 +289,7 @@ export function openVPNEncryptionFromJSON(object) {
274
289
  return OpenVPNEncryption.UNRECOGNIZED;
275
290
  }
276
291
  }
277
- export function openVPNEncryptionToJSON(object) {
292
+ function openVPNEncryptionToJSON(object) {
278
293
  switch (object) {
279
294
  case OpenVPNEncryption.TLS_NONE:
280
295
  return "TLS_NONE";
@@ -304,10 +319,10 @@ function createBaseGproxyConfigRequest() {
304
319
  dnsProxy: false,
305
320
  };
306
321
  }
307
- export const GproxyConfigRequest = {
308
- encode(message, writer = new BinaryWriter()) {
322
+ exports.GproxyConfigRequest = {
323
+ encode(message, writer = new wire_1.BinaryWriter()) {
309
324
  if (message.application !== undefined) {
310
- ApplicationInfo.encode(message.application, writer.uint32(10).fork()).join();
325
+ application_1.ApplicationInfo.encode(message.application, writer.uint32(10).fork()).join();
311
326
  }
312
327
  if (message.type !== 0) {
313
328
  writer.uint32(16).int32(message.type);
@@ -342,7 +357,7 @@ export const GproxyConfigRequest = {
342
357
  return writer;
343
358
  },
344
359
  decode(input, length) {
345
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
360
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
346
361
  let end = length === undefined ? reader.len : reader.pos + length;
347
362
  const message = createBaseGproxyConfigRequest();
348
363
  while (reader.pos < end) {
@@ -352,7 +367,7 @@ export const GproxyConfigRequest = {
352
367
  if (tag !== 10) {
353
368
  break;
354
369
  }
355
- message.application = ApplicationInfo.decode(reader, reader.uint32());
370
+ message.application = application_1.ApplicationInfo.decode(reader, reader.uint32());
356
371
  continue;
357
372
  }
358
373
  case 2: {
@@ -435,7 +450,7 @@ export const GproxyConfigRequest = {
435
450
  },
436
451
  fromJSON(object) {
437
452
  return {
438
- application: isSet(object.application) ? ApplicationInfo.fromJSON(object.application) : undefined,
453
+ application: isSet(object.application) ? application_1.ApplicationInfo.fromJSON(object.application) : undefined,
439
454
  type: isSet(object.type) ? gproxyTypeFromJSON(object.type) : 0,
440
455
  nameserver: isSet(object.nameserver) ? globalThis.String(object.nameserver) : "",
441
456
  login: isSet(object.login) ? globalThis.String(object.login) : "",
@@ -451,7 +466,7 @@ export const GproxyConfigRequest = {
451
466
  toJSON(message) {
452
467
  const obj = {};
453
468
  if (message.application !== undefined) {
454
- obj.application = ApplicationInfo.toJSON(message.application);
469
+ obj.application = application_1.ApplicationInfo.toJSON(message.application);
455
470
  }
456
471
  if (message.type !== 0) {
457
472
  obj.type = gproxyTypeToJSON(message.type);
@@ -486,12 +501,12 @@ export const GproxyConfigRequest = {
486
501
  return obj;
487
502
  },
488
503
  create(base) {
489
- return GproxyConfigRequest.fromPartial(base ?? {});
504
+ return exports.GproxyConfigRequest.fromPartial(base ?? {});
490
505
  },
491
506
  fromPartial(object) {
492
507
  const message = createBaseGproxyConfigRequest();
493
508
  message.application = (object.application !== undefined && object.application !== null)
494
- ? ApplicationInfo.fromPartial(object.application)
509
+ ? application_1.ApplicationInfo.fromPartial(object.application)
495
510
  : undefined;
496
511
  message.type = object.type ?? 0;
497
512
  message.nameserver = object.nameserver ?? "";
@@ -524,8 +539,8 @@ function createBaseOpenVPNConfigRequest() {
524
539
  password: "",
525
540
  };
526
541
  }
527
- export const OpenVPNConfigRequest = {
528
- encode(message, writer = new BinaryWriter()) {
542
+ exports.OpenVPNConfigRequest = {
543
+ encode(message, writer = new wire_1.BinaryWriter()) {
529
544
  if (message.allTraffic !== false) {
530
545
  writer.uint32(8).bool(message.allTraffic);
531
546
  }
@@ -571,7 +586,7 @@ export const OpenVPNConfigRequest = {
571
586
  return writer;
572
587
  },
573
588
  decode(input, length) {
574
- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
589
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
575
590
  let end = length === undefined ? reader.len : reader.pos + length;
576
591
  const message = createBaseOpenVPNConfigRequest();
577
592
  while (reader.pos < end) {
@@ -748,7 +763,7 @@ export const OpenVPNConfigRequest = {
748
763
  return obj;
749
764
  },
750
765
  create(base) {
751
- return OpenVPNConfigRequest.fromPartial(base ?? {});
766
+ return exports.OpenVPNConfigRequest.fromPartial(base ?? {});
752
767
  },
753
768
  fromPartial(object) {
754
769
  const message = createBaseOpenVPNConfigRequest();