@octelium/apis 1.0.2 → 1.0.4

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.
@@ -268,6 +268,14 @@ export interface ConnectRequest_Initialize {
268
268
  * @generated from protobuf field: int32 eSSHPort = 7
269
269
  */
270
270
  eSSHPort: number;
271
+ /**
272
+ * @generated from protobuf field: bool eSOCKS5Enable = 8
273
+ */
274
+ eSOCKS5Enable: boolean;
275
+ /**
276
+ * @generated from protobuf field: int32 eSOCKS5Port = 9
277
+ */
278
+ eSOCKS5Port: number;
271
279
  }
272
280
  /**
273
281
  * @generated from protobuf message octelium.api.main.user.v1.ConnectRequest.Initialize.ServiceOptions
@@ -880,6 +888,10 @@ export interface ListServiceOptions {
880
888
  * @generated from protobuf field: string namespace = 2
881
889
  */
882
890
  namespace: string;
891
+ /**
892
+ * @generated from protobuf field: octelium.api.main.user.v1.Service.Spec.Type type = 3
893
+ */
894
+ type: Service_Spec_Type;
883
895
  }
884
896
  /**
885
897
  * @generated from protobuf message octelium.api.main.user.v1.ListNamespaceOptions
@@ -1864,7 +1876,9 @@ class ConnectRequest_Initialize$Type extends MessageType<ConnectRequest_Initiali
1864
1876
  { no: 4, name: "publishedServices", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ConnectRequest_Initialize_PublishedService },
1865
1877
  { no: 5, name: "ignoreDNS", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1866
1878
  { no: 6, name: "eSSHEnable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1867
- { no: 7, name: "eSSHPort", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
1879
+ { no: 7, name: "eSSHPort", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
1880
+ { no: 8, name: "eSOCKS5Enable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
1881
+ { no: 9, name: "eSOCKS5Port", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
1868
1882
  ]);
1869
1883
  }
1870
1884
  create(value?: PartialMessage<ConnectRequest_Initialize>): ConnectRequest_Initialize {
@@ -1875,6 +1889,8 @@ class ConnectRequest_Initialize$Type extends MessageType<ConnectRequest_Initiali
1875
1889
  message.ignoreDNS = false;
1876
1890
  message.eSSHEnable = false;
1877
1891
  message.eSSHPort = 0;
1892
+ message.eSOCKS5Enable = false;
1893
+ message.eSOCKS5Port = 0;
1878
1894
  if (value !== undefined)
1879
1895
  reflectionMergePartial<ConnectRequest_Initialize>(this, message, value);
1880
1896
  return message;
@@ -1905,6 +1921,12 @@ class ConnectRequest_Initialize$Type extends MessageType<ConnectRequest_Initiali
1905
1921
  case /* int32 eSSHPort */ 7:
1906
1922
  message.eSSHPort = reader.int32();
1907
1923
  break;
1924
+ case /* bool eSOCKS5Enable */ 8:
1925
+ message.eSOCKS5Enable = reader.bool();
1926
+ break;
1927
+ case /* int32 eSOCKS5Port */ 9:
1928
+ message.eSOCKS5Port = reader.int32();
1929
+ break;
1908
1930
  default:
1909
1931
  let u = options.readUnknownField;
1910
1932
  if (u === "throw")
@@ -1938,6 +1960,12 @@ class ConnectRequest_Initialize$Type extends MessageType<ConnectRequest_Initiali
1938
1960
  /* int32 eSSHPort = 7; */
1939
1961
  if (message.eSSHPort !== 0)
1940
1962
  writer.tag(7, WireType.Varint).int32(message.eSSHPort);
1963
+ /* bool eSOCKS5Enable = 8; */
1964
+ if (message.eSOCKS5Enable !== false)
1965
+ writer.tag(8, WireType.Varint).bool(message.eSOCKS5Enable);
1966
+ /* int32 eSOCKS5Port = 9; */
1967
+ if (message.eSOCKS5Port !== 0)
1968
+ writer.tag(9, WireType.Varint).int32(message.eSOCKS5Port);
1941
1969
  let u = options.writeUnknownFields;
1942
1970
  if (u !== false)
1943
1971
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3194,12 +3222,14 @@ class ListServiceOptions$Type extends MessageType<ListServiceOptions> {
3194
3222
  constructor() {
3195
3223
  super("octelium.api.main.user.v1.ListServiceOptions", [
3196
3224
  { no: 1, name: "common", kind: "message", T: () => CommonListOptions },
3197
- { no: 2, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
3225
+ { no: 2, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3226
+ { no: 3, name: "type", kind: "enum", T: () => ["octelium.api.main.user.v1.Service.Spec.Type", Service_Spec_Type] }
3198
3227
  ]);
3199
3228
  }
3200
3229
  create(value?: PartialMessage<ListServiceOptions>): ListServiceOptions {
3201
3230
  const message = globalThis.Object.create((this.messagePrototype!));
3202
3231
  message.namespace = "";
3232
+ message.type = 0;
3203
3233
  if (value !== undefined)
3204
3234
  reflectionMergePartial<ListServiceOptions>(this, message, value);
3205
3235
  return message;
@@ -3215,6 +3245,9 @@ class ListServiceOptions$Type extends MessageType<ListServiceOptions> {
3215
3245
  case /* string namespace */ 2:
3216
3246
  message.namespace = reader.string();
3217
3247
  break;
3248
+ case /* octelium.api.main.user.v1.Service.Spec.Type type */ 3:
3249
+ message.type = reader.int32();
3250
+ break;
3218
3251
  default:
3219
3252
  let u = options.readUnknownField;
3220
3253
  if (u === "throw")
@@ -3233,6 +3266,9 @@ class ListServiceOptions$Type extends MessageType<ListServiceOptions> {
3233
3266
  /* string namespace = 2; */
3234
3267
  if (message.namespace !== "")
3235
3268
  writer.tag(2, WireType.LengthDelimited).string(message.namespace);
3269
+ /* octelium.api.main.user.v1.Service.Spec.Type type = 3; */
3270
+ if (message.type !== 0)
3271
+ writer.tag(3, WireType.Varint).int32(message.type);
3236
3272
  let u = options.writeUnknownFields;
3237
3273
  if (u !== false)
3238
3274
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octelium/apis",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Octelium Protobuf APIs",
5
5
  "author": "Octelium <contact@octelium.com>",
6
6
  "license": "Apache-2.0",