mezon-js-protobuf 1.6.62 → 1.6.64

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.
package/api/api.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v1.181.1
4
- // protoc v5.27.2
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc v4.25.2
5
5
  // source: api/api.proto
6
6
 
7
7
  /* eslint-disable */
@@ -2989,7 +2989,7 @@ export interface DeleteCategoryOrderRequest {
2989
2989
  clan_id: string;
2990
2990
  }
2991
2991
 
2992
- export interface OssrsHttpCallbackRequest {
2992
+ export interface StreamHttpCallbackRequest {
2993
2993
  action: string;
2994
2994
  client_id: string;
2995
2995
  ip: string;
@@ -3005,7 +3005,7 @@ export interface OssrsHttpCallbackRequest {
3005
3005
  service_id: string | undefined;
3006
3006
  }
3007
3007
 
3008
- export interface OssrsHttpCallbackResponse {
3008
+ export interface StreamHttpCallbackResponse {
3009
3009
  code: number | undefined;
3010
3010
  msg: string;
3011
3011
  }
@@ -3470,6 +3470,7 @@ export interface AuditLog {
3470
3470
  details: string;
3471
3471
  time_log: Date | undefined;
3472
3472
  channel_id: string;
3473
+ channel_label: string;
3473
3474
  }
3474
3475
 
3475
3476
  export interface ListAuditLog {
@@ -28441,7 +28442,7 @@ export const DeleteCategoryOrderRequest = {
28441
28442
  },
28442
28443
  };
28443
28444
 
28444
- function createBaseOssrsHttpCallbackRequest(): OssrsHttpCallbackRequest {
28445
+ function createBaseStreamHttpCallbackRequest(): StreamHttpCallbackRequest {
28445
28446
  return {
28446
28447
  action: "",
28447
28448
  client_id: "",
@@ -28459,8 +28460,8 @@ function createBaseOssrsHttpCallbackRequest(): OssrsHttpCallbackRequest {
28459
28460
  };
28460
28461
  }
28461
28462
 
28462
- export const OssrsHttpCallbackRequest = {
28463
- encode(message: OssrsHttpCallbackRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28463
+ export const StreamHttpCallbackRequest = {
28464
+ encode(message: StreamHttpCallbackRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28464
28465
  if (message.action !== "") {
28465
28466
  writer.uint32(10).string(message.action);
28466
28467
  }
@@ -28503,10 +28504,10 @@ export const OssrsHttpCallbackRequest = {
28503
28504
  return writer;
28504
28505
  },
28505
28506
 
28506
- decode(input: _m0.Reader | Uint8Array, length?: number): OssrsHttpCallbackRequest {
28507
+ decode(input: _m0.Reader | Uint8Array, length?: number): StreamHttpCallbackRequest {
28507
28508
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
28508
28509
  let end = length === undefined ? reader.len : reader.pos + length;
28509
- const message = createBaseOssrsHttpCallbackRequest();
28510
+ const message = createBaseStreamHttpCallbackRequest();
28510
28511
  while (reader.pos < end) {
28511
28512
  const tag = reader.uint32();
28512
28513
  switch (tag >>> 3) {
@@ -28610,7 +28611,7 @@ export const OssrsHttpCallbackRequest = {
28610
28611
  return message;
28611
28612
  },
28612
28613
 
28613
- fromJSON(object: any): OssrsHttpCallbackRequest {
28614
+ fromJSON(object: any): StreamHttpCallbackRequest {
28614
28615
  return {
28615
28616
  action: isSet(object.action) ? globalThis.String(object.action) : "",
28616
28617
  client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
@@ -28628,7 +28629,7 @@ export const OssrsHttpCallbackRequest = {
28628
28629
  };
28629
28630
  },
28630
28631
 
28631
- toJSON(message: OssrsHttpCallbackRequest): unknown {
28632
+ toJSON(message: StreamHttpCallbackRequest): unknown {
28632
28633
  const obj: any = {};
28633
28634
  if (message.action !== "") {
28634
28635
  obj.action = message.action;
@@ -28672,11 +28673,11 @@ export const OssrsHttpCallbackRequest = {
28672
28673
  return obj;
28673
28674
  },
28674
28675
 
28675
- create<I extends Exact<DeepPartial<OssrsHttpCallbackRequest>, I>>(base?: I): OssrsHttpCallbackRequest {
28676
- return OssrsHttpCallbackRequest.fromPartial(base ?? ({} as any));
28676
+ create<I extends Exact<DeepPartial<StreamHttpCallbackRequest>, I>>(base?: I): StreamHttpCallbackRequest {
28677
+ return StreamHttpCallbackRequest.fromPartial(base ?? ({} as any));
28677
28678
  },
28678
- fromPartial<I extends Exact<DeepPartial<OssrsHttpCallbackRequest>, I>>(object: I): OssrsHttpCallbackRequest {
28679
- const message = createBaseOssrsHttpCallbackRequest();
28679
+ fromPartial<I extends Exact<DeepPartial<StreamHttpCallbackRequest>, I>>(object: I): StreamHttpCallbackRequest {
28680
+ const message = createBaseStreamHttpCallbackRequest();
28680
28681
  message.action = object.action ?? "";
28681
28682
  message.client_id = object.client_id ?? "";
28682
28683
  message.ip = object.ip ?? "";
@@ -28694,12 +28695,12 @@ export const OssrsHttpCallbackRequest = {
28694
28695
  },
28695
28696
  };
28696
28697
 
28697
- function createBaseOssrsHttpCallbackResponse(): OssrsHttpCallbackResponse {
28698
+ function createBaseStreamHttpCallbackResponse(): StreamHttpCallbackResponse {
28698
28699
  return { code: undefined, msg: "" };
28699
28700
  }
28700
28701
 
28701
- export const OssrsHttpCallbackResponse = {
28702
- encode(message: OssrsHttpCallbackResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28702
+ export const StreamHttpCallbackResponse = {
28703
+ encode(message: StreamHttpCallbackResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28703
28704
  if (message.code !== undefined) {
28704
28705
  Int32Value.encode({ value: message.code! }, writer.uint32(10).fork()).ldelim();
28705
28706
  }
@@ -28709,10 +28710,10 @@ export const OssrsHttpCallbackResponse = {
28709
28710
  return writer;
28710
28711
  },
28711
28712
 
28712
- decode(input: _m0.Reader | Uint8Array, length?: number): OssrsHttpCallbackResponse {
28713
+ decode(input: _m0.Reader | Uint8Array, length?: number): StreamHttpCallbackResponse {
28713
28714
  const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
28714
28715
  let end = length === undefined ? reader.len : reader.pos + length;
28715
- const message = createBaseOssrsHttpCallbackResponse();
28716
+ const message = createBaseStreamHttpCallbackResponse();
28716
28717
  while (reader.pos < end) {
28717
28718
  const tag = reader.uint32();
28718
28719
  switch (tag >>> 3) {
@@ -28739,14 +28740,14 @@ export const OssrsHttpCallbackResponse = {
28739
28740
  return message;
28740
28741
  },
28741
28742
 
28742
- fromJSON(object: any): OssrsHttpCallbackResponse {
28743
+ fromJSON(object: any): StreamHttpCallbackResponse {
28743
28744
  return {
28744
28745
  code: isSet(object.code) ? Number(object.code) : undefined,
28745
28746
  msg: isSet(object.msg) ? globalThis.String(object.msg) : "",
28746
28747
  };
28747
28748
  },
28748
28749
 
28749
- toJSON(message: OssrsHttpCallbackResponse): unknown {
28750
+ toJSON(message: StreamHttpCallbackResponse): unknown {
28750
28751
  const obj: any = {};
28751
28752
  if (message.code !== undefined) {
28752
28753
  obj.code = message.code;
@@ -28757,11 +28758,11 @@ export const OssrsHttpCallbackResponse = {
28757
28758
  return obj;
28758
28759
  },
28759
28760
 
28760
- create<I extends Exact<DeepPartial<OssrsHttpCallbackResponse>, I>>(base?: I): OssrsHttpCallbackResponse {
28761
- return OssrsHttpCallbackResponse.fromPartial(base ?? ({} as any));
28761
+ create<I extends Exact<DeepPartial<StreamHttpCallbackResponse>, I>>(base?: I): StreamHttpCallbackResponse {
28762
+ return StreamHttpCallbackResponse.fromPartial(base ?? ({} as any));
28762
28763
  },
28763
- fromPartial<I extends Exact<DeepPartial<OssrsHttpCallbackResponse>, I>>(object: I): OssrsHttpCallbackResponse {
28764
- const message = createBaseOssrsHttpCallbackResponse();
28764
+ fromPartial<I extends Exact<DeepPartial<StreamHttpCallbackResponse>, I>>(object: I): StreamHttpCallbackResponse {
28765
+ const message = createBaseStreamHttpCallbackResponse();
28765
28766
  message.code = object.code ?? undefined;
28766
28767
  message.msg = object.msg ?? "";
28767
28768
  return message;
@@ -33393,6 +33394,7 @@ function createBaseAuditLog(): AuditLog {
33393
33394
  details: "",
33394
33395
  time_log: undefined,
33395
33396
  channel_id: "",
33397
+ channel_label: "",
33396
33398
  };
33397
33399
  }
33398
33400
 
@@ -33425,6 +33427,9 @@ export const AuditLog = {
33425
33427
  if (message.channel_id !== "") {
33426
33428
  writer.uint32(74).string(message.channel_id);
33427
33429
  }
33430
+ if (message.channel_label !== "") {
33431
+ writer.uint32(82).string(message.channel_label);
33432
+ }
33428
33433
  return writer;
33429
33434
  },
33430
33435
 
@@ -33498,6 +33503,13 @@ export const AuditLog = {
33498
33503
 
33499
33504
  message.channel_id = reader.string();
33500
33505
  continue;
33506
+ case 10:
33507
+ if (tag !== 82) {
33508
+ break;
33509
+ }
33510
+
33511
+ message.channel_label = reader.string();
33512
+ continue;
33501
33513
  }
33502
33514
  if ((tag & 7) === 4 || tag === 0) {
33503
33515
  break;
@@ -33518,6 +33530,7 @@ export const AuditLog = {
33518
33530
  details: isSet(object.details) ? globalThis.String(object.details) : "",
33519
33531
  time_log: isSet(object.time_log) ? fromJsonTimestamp(object.time_log) : undefined,
33520
33532
  channel_id: isSet(object.channel_id) ? globalThis.String(object.channel_id) : "",
33533
+ channel_label: isSet(object.channel_label) ? globalThis.String(object.channel_label) : "",
33521
33534
  };
33522
33535
  },
33523
33536
 
@@ -33550,6 +33563,9 @@ export const AuditLog = {
33550
33563
  if (message.channel_id !== "") {
33551
33564
  obj.channel_id = message.channel_id;
33552
33565
  }
33566
+ if (message.channel_label !== "") {
33567
+ obj.channel_label = message.channel_label;
33568
+ }
33553
33569
  return obj;
33554
33570
  },
33555
33571
 
@@ -33567,6 +33583,7 @@ export const AuditLog = {
33567
33583
  message.details = object.details ?? "";
33568
33584
  message.time_log = object.time_log ?? undefined;
33569
33585
  message.channel_id = object.channel_id ?? "";
33586
+ message.channel_label = object.channel_label ?? "";
33570
33587
  return message;
33571
33588
  },
33572
33589
  };
@@ -2356,7 +2356,7 @@ export interface GetSystemMessage {
2356
2356
  export interface DeleteCategoryOrderRequest {
2357
2357
  clan_id: string;
2358
2358
  }
2359
- export interface OssrsHttpCallbackRequest {
2359
+ export interface StreamHttpCallbackRequest {
2360
2360
  action: string;
2361
2361
  client_id: string;
2362
2362
  ip: string;
@@ -2371,7 +2371,7 @@ export interface OssrsHttpCallbackRequest {
2371
2371
  tcUrl: string | undefined;
2372
2372
  service_id: string | undefined;
2373
2373
  }
2374
- export interface OssrsHttpCallbackResponse {
2374
+ export interface StreamHttpCallbackResponse {
2375
2375
  code: number | undefined;
2376
2376
  msg: string;
2377
2377
  }
@@ -2769,6 +2769,7 @@ export interface AuditLog {
2769
2769
  details: string;
2770
2770
  time_log: Date | undefined;
2771
2771
  channel_id: string;
2772
+ channel_label: string;
2772
2773
  }
2773
2774
  export interface ListAuditLog {
2774
2775
  total_count: number;
@@ -16187,11 +16188,11 @@ export declare const DeleteCategoryOrderRequest: {
16187
16188
  clan_id?: string | undefined;
16188
16189
  } & { [K_1 in Exclude<keyof I_1, "clan_id">]: never; }>(object: I_1): DeleteCategoryOrderRequest;
16189
16190
  };
16190
- export declare const OssrsHttpCallbackRequest: {
16191
- encode(message: OssrsHttpCallbackRequest, writer?: _m0.Writer): _m0.Writer;
16192
- decode(input: _m0.Reader | Uint8Array, length?: number): OssrsHttpCallbackRequest;
16193
- fromJSON(object: any): OssrsHttpCallbackRequest;
16194
- toJSON(message: OssrsHttpCallbackRequest): unknown;
16191
+ export declare const StreamHttpCallbackRequest: {
16192
+ encode(message: StreamHttpCallbackRequest, writer?: _m0.Writer): _m0.Writer;
16193
+ decode(input: _m0.Reader | Uint8Array, length?: number): StreamHttpCallbackRequest;
16194
+ fromJSON(object: any): StreamHttpCallbackRequest;
16195
+ toJSON(message: StreamHttpCallbackRequest): unknown;
16195
16196
  create<I extends {
16196
16197
  action?: string | undefined;
16197
16198
  client_id?: string | undefined;
@@ -16220,7 +16221,7 @@ export declare const OssrsHttpCallbackRequest: {
16220
16221
  page_url?: string | undefined;
16221
16222
  tcUrl?: string | undefined;
16222
16223
  service_id?: string | undefined;
16223
- } & { [K in Exclude<keyof I, keyof OssrsHttpCallbackRequest>]: never; }>(base?: I | undefined): OssrsHttpCallbackRequest;
16224
+ } & { [K in Exclude<keyof I, keyof StreamHttpCallbackRequest>]: never; }>(base?: I | undefined): StreamHttpCallbackRequest;
16224
16225
  fromPartial<I_1 extends {
16225
16226
  action?: string | undefined;
16226
16227
  client_id?: string | undefined;
@@ -16249,27 +16250,27 @@ export declare const OssrsHttpCallbackRequest: {
16249
16250
  page_url?: string | undefined;
16250
16251
  tcUrl?: string | undefined;
16251
16252
  service_id?: string | undefined;
16252
- } & { [K_1 in Exclude<keyof I_1, keyof OssrsHttpCallbackRequest>]: never; }>(object: I_1): OssrsHttpCallbackRequest;
16253
+ } & { [K_1 in Exclude<keyof I_1, keyof StreamHttpCallbackRequest>]: never; }>(object: I_1): StreamHttpCallbackRequest;
16253
16254
  };
16254
- export declare const OssrsHttpCallbackResponse: {
16255
- encode(message: OssrsHttpCallbackResponse, writer?: _m0.Writer): _m0.Writer;
16256
- decode(input: _m0.Reader | Uint8Array, length?: number): OssrsHttpCallbackResponse;
16257
- fromJSON(object: any): OssrsHttpCallbackResponse;
16258
- toJSON(message: OssrsHttpCallbackResponse): unknown;
16255
+ export declare const StreamHttpCallbackResponse: {
16256
+ encode(message: StreamHttpCallbackResponse, writer?: _m0.Writer): _m0.Writer;
16257
+ decode(input: _m0.Reader | Uint8Array, length?: number): StreamHttpCallbackResponse;
16258
+ fromJSON(object: any): StreamHttpCallbackResponse;
16259
+ toJSON(message: StreamHttpCallbackResponse): unknown;
16259
16260
  create<I extends {
16260
16261
  code?: number | undefined;
16261
16262
  msg?: string | undefined;
16262
16263
  } & {
16263
16264
  code?: number | undefined;
16264
16265
  msg?: string | undefined;
16265
- } & { [K in Exclude<keyof I, keyof OssrsHttpCallbackResponse>]: never; }>(base?: I | undefined): OssrsHttpCallbackResponse;
16266
+ } & { [K in Exclude<keyof I, keyof StreamHttpCallbackResponse>]: never; }>(base?: I | undefined): StreamHttpCallbackResponse;
16266
16267
  fromPartial<I_1 extends {
16267
16268
  code?: number | undefined;
16268
16269
  msg?: string | undefined;
16269
16270
  } & {
16270
16271
  code?: number | undefined;
16271
16272
  msg?: string | undefined;
16272
- } & { [K_1 in Exclude<keyof I_1, keyof OssrsHttpCallbackResponse>]: never; }>(object: I_1): OssrsHttpCallbackResponse;
16273
+ } & { [K_1 in Exclude<keyof I_1, keyof StreamHttpCallbackResponse>]: never; }>(object: I_1): StreamHttpCallbackResponse;
16273
16274
  };
16274
16275
  export declare const StreamingChannelUser: {
16275
16276
  encode(message: StreamingChannelUser, writer?: _m0.Writer): _m0.Writer;
@@ -19216,6 +19217,7 @@ export declare const AuditLog: {
19216
19217
  details?: string | undefined;
19217
19218
  time_log?: Date | undefined;
19218
19219
  channel_id?: string | undefined;
19220
+ channel_label?: string | undefined;
19219
19221
  } & {
19220
19222
  id?: string | undefined;
19221
19223
  user_id?: string | undefined;
@@ -19226,6 +19228,7 @@ export declare const AuditLog: {
19226
19228
  details?: string | undefined;
19227
19229
  time_log?: Date | undefined;
19228
19230
  channel_id?: string | undefined;
19231
+ channel_label?: string | undefined;
19229
19232
  } & { [K in Exclude<keyof I, keyof AuditLog>]: never; }>(base?: I | undefined): AuditLog;
19230
19233
  fromPartial<I_1 extends {
19231
19234
  id?: string | undefined;
@@ -19237,6 +19240,7 @@ export declare const AuditLog: {
19237
19240
  details?: string | undefined;
19238
19241
  time_log?: Date | undefined;
19239
19242
  channel_id?: string | undefined;
19243
+ channel_label?: string | undefined;
19240
19244
  } & {
19241
19245
  id?: string | undefined;
19242
19246
  user_id?: string | undefined;
@@ -19247,6 +19251,7 @@ export declare const AuditLog: {
19247
19251
  details?: string | undefined;
19248
19252
  time_log?: Date | undefined;
19249
19253
  channel_id?: string | undefined;
19254
+ channel_label?: string | undefined;
19250
19255
  } & { [K_1 in Exclude<keyof I_1, keyof AuditLog>]: never; }>(object: I_1): AuditLog;
19251
19256
  };
19252
19257
  export declare const ListAuditLog: {
@@ -19267,6 +19272,7 @@ export declare const ListAuditLog: {
19267
19272
  details?: string | undefined;
19268
19273
  time_log?: Date | undefined;
19269
19274
  channel_id?: string | undefined;
19275
+ channel_label?: string | undefined;
19270
19276
  }[] | undefined;
19271
19277
  } & {
19272
19278
  total_count?: number | undefined;
@@ -19281,6 +19287,7 @@ export declare const ListAuditLog: {
19281
19287
  details?: string | undefined;
19282
19288
  time_log?: Date | undefined;
19283
19289
  channel_id?: string | undefined;
19290
+ channel_label?: string | undefined;
19284
19291
  }[] & ({
19285
19292
  id?: string | undefined;
19286
19293
  user_id?: string | undefined;
@@ -19291,6 +19298,7 @@ export declare const ListAuditLog: {
19291
19298
  details?: string | undefined;
19292
19299
  time_log?: Date | undefined;
19293
19300
  channel_id?: string | undefined;
19301
+ channel_label?: string | undefined;
19294
19302
  } & {
19295
19303
  id?: string | undefined;
19296
19304
  user_id?: string | undefined;
@@ -19301,6 +19309,7 @@ export declare const ListAuditLog: {
19301
19309
  details?: string | undefined;
19302
19310
  time_log?: Date | undefined;
19303
19311
  channel_id?: string | undefined;
19312
+ channel_label?: string | undefined;
19304
19313
  } & { [K in Exclude<keyof I["logs"][number], keyof AuditLog>]: never; })[] & { [K_1 in Exclude<keyof I["logs"], keyof {
19305
19314
  id?: string | undefined;
19306
19315
  user_id?: string | undefined;
@@ -19311,6 +19320,7 @@ export declare const ListAuditLog: {
19311
19320
  details?: string | undefined;
19312
19321
  time_log?: Date | undefined;
19313
19322
  channel_id?: string | undefined;
19323
+ channel_label?: string | undefined;
19314
19324
  }[]>]: never; }) | undefined;
19315
19325
  } & { [K_2 in Exclude<keyof I, keyof ListAuditLog>]: never; }>(base?: I | undefined): ListAuditLog;
19316
19326
  fromPartial<I_1 extends {
@@ -19326,6 +19336,7 @@ export declare const ListAuditLog: {
19326
19336
  details?: string | undefined;
19327
19337
  time_log?: Date | undefined;
19328
19338
  channel_id?: string | undefined;
19339
+ channel_label?: string | undefined;
19329
19340
  }[] | undefined;
19330
19341
  } & {
19331
19342
  total_count?: number | undefined;
@@ -19340,6 +19351,7 @@ export declare const ListAuditLog: {
19340
19351
  details?: string | undefined;
19341
19352
  time_log?: Date | undefined;
19342
19353
  channel_id?: string | undefined;
19354
+ channel_label?: string | undefined;
19343
19355
  }[] & ({
19344
19356
  id?: string | undefined;
19345
19357
  user_id?: string | undefined;
@@ -19350,6 +19362,7 @@ export declare const ListAuditLog: {
19350
19362
  details?: string | undefined;
19351
19363
  time_log?: Date | undefined;
19352
19364
  channel_id?: string | undefined;
19365
+ channel_label?: string | undefined;
19353
19366
  } & {
19354
19367
  id?: string | undefined;
19355
19368
  user_id?: string | undefined;
@@ -19360,6 +19373,7 @@ export declare const ListAuditLog: {
19360
19373
  details?: string | undefined;
19361
19374
  time_log?: Date | undefined;
19362
19375
  channel_id?: string | undefined;
19376
+ channel_label?: string | undefined;
19363
19377
  } & { [K_3 in Exclude<keyof I_1["logs"][number], keyof AuditLog>]: never; })[] & { [K_4 in Exclude<keyof I_1["logs"], keyof {
19364
19378
  id?: string | undefined;
19365
19379
  user_id?: string | undefined;
@@ -19370,6 +19384,7 @@ export declare const ListAuditLog: {
19370
19384
  details?: string | undefined;
19371
19385
  time_log?: Date | undefined;
19372
19386
  channel_id?: string | undefined;
19387
+ channel_label?: string | undefined;
19373
19388
  }[]>]: never; }) | undefined;
19374
19389
  } & { [K_5 in Exclude<keyof I_1, keyof ListAuditLog>]: never; }>(object: I_1): ListAuditLog;
19375
19390
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mezon-js-protobuf",
3
- "version": "1.6.62",
3
+ "version": "1.6.64",
4
4
  "description": "Websocket adapter adding protocol buffer support to the Mezon Javascript client.",
5
5
  "main": "dist/mezon-js-protobuf.cjs.js",
6
6
  "module": "dist/mezon-js-protobuf.esm.mjs",