mezon-js-protobuf 1.7.13 → 1.7.14
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.
|
@@ -631,6 +631,8 @@ export interface ChannelCreatedEvent {
|
|
|
631
631
|
status: number;
|
|
632
632
|
/** app url */
|
|
633
633
|
app_url: string;
|
|
634
|
+
/** clan_name */
|
|
635
|
+
clan_name: string;
|
|
634
636
|
}
|
|
635
637
|
export interface RoleEvent {
|
|
636
638
|
role: Role | undefined;
|
|
@@ -1432,6 +1434,7 @@ export declare const Envelope: {
|
|
|
1432
1434
|
channel_type?: number | undefined;
|
|
1433
1435
|
status?: number | undefined;
|
|
1434
1436
|
app_url?: string | undefined;
|
|
1437
|
+
clan_name?: string | undefined;
|
|
1435
1438
|
} | undefined;
|
|
1436
1439
|
channel_deleted_event?: {
|
|
1437
1440
|
clan_id?: string | undefined;
|
|
@@ -3311,6 +3314,7 @@ export declare const Envelope: {
|
|
|
3311
3314
|
channel_type?: number | undefined;
|
|
3312
3315
|
status?: number | undefined;
|
|
3313
3316
|
app_url?: string | undefined;
|
|
3317
|
+
clan_name?: string | undefined;
|
|
3314
3318
|
} & {
|
|
3315
3319
|
clan_id?: string | undefined;
|
|
3316
3320
|
category_id?: string | undefined;
|
|
@@ -3322,6 +3326,7 @@ export declare const Envelope: {
|
|
|
3322
3326
|
channel_type?: number | undefined;
|
|
3323
3327
|
status?: number | undefined;
|
|
3324
3328
|
app_url?: string | undefined;
|
|
3329
|
+
clan_name?: string | undefined;
|
|
3325
3330
|
} & { [K_77 in Exclude<keyof I["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
3326
3331
|
channel_deleted_event?: ({
|
|
3327
3332
|
clan_id?: string | undefined;
|
|
@@ -4999,6 +5004,7 @@ export declare const Envelope: {
|
|
|
4999
5004
|
channel_type?: number | undefined;
|
|
5000
5005
|
status?: number | undefined;
|
|
5001
5006
|
app_url?: string | undefined;
|
|
5007
|
+
clan_name?: string | undefined;
|
|
5002
5008
|
} | undefined;
|
|
5003
5009
|
channel_deleted_event?: {
|
|
5004
5010
|
clan_id?: string | undefined;
|
|
@@ -6878,6 +6884,7 @@ export declare const Envelope: {
|
|
|
6878
6884
|
channel_type?: number | undefined;
|
|
6879
6885
|
status?: number | undefined;
|
|
6880
6886
|
app_url?: string | undefined;
|
|
6887
|
+
clan_name?: string | undefined;
|
|
6881
6888
|
} & {
|
|
6882
6889
|
clan_id?: string | undefined;
|
|
6883
6890
|
category_id?: string | undefined;
|
|
@@ -6889,6 +6896,7 @@ export declare const Envelope: {
|
|
|
6889
6896
|
channel_type?: number | undefined;
|
|
6890
6897
|
status?: number | undefined;
|
|
6891
6898
|
app_url?: string | undefined;
|
|
6899
|
+
clan_name?: string | undefined;
|
|
6892
6900
|
} & { [K_247 in Exclude<keyof I_1["channel_created_event"], keyof ChannelCreatedEvent>]: never; }) | undefined;
|
|
6893
6901
|
channel_deleted_event?: ({
|
|
6894
6902
|
clan_id?: string | undefined;
|
|
@@ -11254,6 +11262,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
11254
11262
|
channel_type?: number | undefined;
|
|
11255
11263
|
status?: number | undefined;
|
|
11256
11264
|
app_url?: string | undefined;
|
|
11265
|
+
clan_name?: string | undefined;
|
|
11257
11266
|
} & {
|
|
11258
11267
|
clan_id?: string | undefined;
|
|
11259
11268
|
category_id?: string | undefined;
|
|
@@ -11265,6 +11274,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
11265
11274
|
channel_type?: number | undefined;
|
|
11266
11275
|
status?: number | undefined;
|
|
11267
11276
|
app_url?: string | undefined;
|
|
11277
|
+
clan_name?: string | undefined;
|
|
11268
11278
|
} & { [K in Exclude<keyof I, keyof ChannelCreatedEvent>]: never; }>(base?: I | undefined): ChannelCreatedEvent;
|
|
11269
11279
|
fromPartial<I_1 extends {
|
|
11270
11280
|
clan_id?: string | undefined;
|
|
@@ -11277,6 +11287,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
11277
11287
|
channel_type?: number | undefined;
|
|
11278
11288
|
status?: number | undefined;
|
|
11279
11289
|
app_url?: string | undefined;
|
|
11290
|
+
clan_name?: string | undefined;
|
|
11280
11291
|
} & {
|
|
11281
11292
|
clan_id?: string | undefined;
|
|
11282
11293
|
category_id?: string | undefined;
|
|
@@ -11288,6 +11299,7 @@ export declare const ChannelCreatedEvent: {
|
|
|
11288
11299
|
channel_type?: number | undefined;
|
|
11289
11300
|
status?: number | undefined;
|
|
11290
11301
|
app_url?: string | undefined;
|
|
11302
|
+
clan_name?: string | undefined;
|
|
11291
11303
|
} & { [K_1 in Exclude<keyof I_1, keyof ChannelCreatedEvent>]: never; }>(object: I_1): ChannelCreatedEvent;
|
|
11292
11304
|
};
|
|
11293
11305
|
export declare const RoleEvent: {
|
|
@@ -11014,7 +11014,8 @@ function createBaseChannelCreatedEvent() {
|
|
|
11014
11014
|
channel_private: 0,
|
|
11015
11015
|
channel_type: void 0,
|
|
11016
11016
|
status: 0,
|
|
11017
|
-
app_url: ""
|
|
11017
|
+
app_url: "",
|
|
11018
|
+
clan_name: ""
|
|
11018
11019
|
};
|
|
11019
11020
|
}
|
|
11020
11021
|
var ChannelCreatedEvent = {
|
|
@@ -11049,6 +11050,9 @@ var ChannelCreatedEvent = {
|
|
|
11049
11050
|
if (message.app_url !== "") {
|
|
11050
11051
|
writer.uint32(82).string(message.app_url);
|
|
11051
11052
|
}
|
|
11053
|
+
if (message.clan_name !== "") {
|
|
11054
|
+
writer.uint32(90).string(message.clan_name);
|
|
11055
|
+
}
|
|
11052
11056
|
return writer;
|
|
11053
11057
|
},
|
|
11054
11058
|
decode(input, length) {
|
|
@@ -11118,6 +11122,12 @@ var ChannelCreatedEvent = {
|
|
|
11118
11122
|
}
|
|
11119
11123
|
message.app_url = reader.string();
|
|
11120
11124
|
continue;
|
|
11125
|
+
case 11:
|
|
11126
|
+
if (tag !== 90) {
|
|
11127
|
+
break;
|
|
11128
|
+
}
|
|
11129
|
+
message.clan_name = reader.string();
|
|
11130
|
+
continue;
|
|
11121
11131
|
}
|
|
11122
11132
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11123
11133
|
break;
|
|
@@ -11137,7 +11147,8 @@ var ChannelCreatedEvent = {
|
|
|
11137
11147
|
channel_private: isSet4(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
11138
11148
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
11139
11149
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
11140
|
-
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : ""
|
|
11150
|
+
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
11151
|
+
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
|
|
11141
11152
|
};
|
|
11142
11153
|
},
|
|
11143
11154
|
toJSON(message) {
|
|
@@ -11172,13 +11183,16 @@ var ChannelCreatedEvent = {
|
|
|
11172
11183
|
if (message.app_url !== "") {
|
|
11173
11184
|
obj.app_url = message.app_url;
|
|
11174
11185
|
}
|
|
11186
|
+
if (message.clan_name !== "") {
|
|
11187
|
+
obj.clan_name = message.clan_name;
|
|
11188
|
+
}
|
|
11175
11189
|
return obj;
|
|
11176
11190
|
},
|
|
11177
11191
|
create(base) {
|
|
11178
11192
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
11179
11193
|
},
|
|
11180
11194
|
fromPartial(object) {
|
|
11181
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
11195
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
11182
11196
|
const message = createBaseChannelCreatedEvent();
|
|
11183
11197
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
11184
11198
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -11190,6 +11204,7 @@ var ChannelCreatedEvent = {
|
|
|
11190
11204
|
message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
|
|
11191
11205
|
message.status = (_i = object.status) != null ? _i : 0;
|
|
11192
11206
|
message.app_url = (_j = object.app_url) != null ? _j : "";
|
|
11207
|
+
message.clan_name = (_k = object.clan_name) != null ? _k : "";
|
|
11193
11208
|
return message;
|
|
11194
11209
|
}
|
|
11195
11210
|
};
|
|
@@ -11001,7 +11001,8 @@ function createBaseChannelCreatedEvent() {
|
|
|
11001
11001
|
channel_private: 0,
|
|
11002
11002
|
channel_type: void 0,
|
|
11003
11003
|
status: 0,
|
|
11004
|
-
app_url: ""
|
|
11004
|
+
app_url: "",
|
|
11005
|
+
clan_name: ""
|
|
11005
11006
|
};
|
|
11006
11007
|
}
|
|
11007
11008
|
var ChannelCreatedEvent = {
|
|
@@ -11036,6 +11037,9 @@ var ChannelCreatedEvent = {
|
|
|
11036
11037
|
if (message.app_url !== "") {
|
|
11037
11038
|
writer.uint32(82).string(message.app_url);
|
|
11038
11039
|
}
|
|
11040
|
+
if (message.clan_name !== "") {
|
|
11041
|
+
writer.uint32(90).string(message.clan_name);
|
|
11042
|
+
}
|
|
11039
11043
|
return writer;
|
|
11040
11044
|
},
|
|
11041
11045
|
decode(input, length) {
|
|
@@ -11105,6 +11109,12 @@ var ChannelCreatedEvent = {
|
|
|
11105
11109
|
}
|
|
11106
11110
|
message.app_url = reader.string();
|
|
11107
11111
|
continue;
|
|
11112
|
+
case 11:
|
|
11113
|
+
if (tag !== 90) {
|
|
11114
|
+
break;
|
|
11115
|
+
}
|
|
11116
|
+
message.clan_name = reader.string();
|
|
11117
|
+
continue;
|
|
11108
11118
|
}
|
|
11109
11119
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11110
11120
|
break;
|
|
@@ -11124,7 +11134,8 @@ var ChannelCreatedEvent = {
|
|
|
11124
11134
|
channel_private: isSet4(object.channel_private) ? globalThis.Number(object.channel_private) : 0,
|
|
11125
11135
|
channel_type: isSet4(object.channel_type) ? Number(object.channel_type) : void 0,
|
|
11126
11136
|
status: isSet4(object.status) ? globalThis.Number(object.status) : 0,
|
|
11127
|
-
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : ""
|
|
11137
|
+
app_url: isSet4(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
11138
|
+
clan_name: isSet4(object.clan_name) ? globalThis.String(object.clan_name) : ""
|
|
11128
11139
|
};
|
|
11129
11140
|
},
|
|
11130
11141
|
toJSON(message) {
|
|
@@ -11159,13 +11170,16 @@ var ChannelCreatedEvent = {
|
|
|
11159
11170
|
if (message.app_url !== "") {
|
|
11160
11171
|
obj.app_url = message.app_url;
|
|
11161
11172
|
}
|
|
11173
|
+
if (message.clan_name !== "") {
|
|
11174
|
+
obj.clan_name = message.clan_name;
|
|
11175
|
+
}
|
|
11162
11176
|
return obj;
|
|
11163
11177
|
},
|
|
11164
11178
|
create(base) {
|
|
11165
11179
|
return ChannelCreatedEvent.fromPartial(base != null ? base : {});
|
|
11166
11180
|
},
|
|
11167
11181
|
fromPartial(object) {
|
|
11168
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
11182
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
11169
11183
|
const message = createBaseChannelCreatedEvent();
|
|
11170
11184
|
message.clan_id = (_a = object.clan_id) != null ? _a : "";
|
|
11171
11185
|
message.category_id = (_b = object.category_id) != null ? _b : "";
|
|
@@ -11177,6 +11191,7 @@ var ChannelCreatedEvent = {
|
|
|
11177
11191
|
message.channel_type = (_h = object.channel_type) != null ? _h : void 0;
|
|
11178
11192
|
message.status = (_i = object.status) != null ? _i : 0;
|
|
11179
11193
|
message.app_url = (_j = object.app_url) != null ? _j : "";
|
|
11194
|
+
message.clan_name = (_k = object.clan_name) != null ? _k : "";
|
|
11180
11195
|
return message;
|
|
11181
11196
|
}
|
|
11182
11197
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.14",
|
|
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",
|
package/rtapi/realtime.ts
CHANGED
|
@@ -907,6 +907,8 @@ export interface ChannelCreatedEvent {
|
|
|
907
907
|
status: number;
|
|
908
908
|
/** app url */
|
|
909
909
|
app_url: string;
|
|
910
|
+
/** clan_name */
|
|
911
|
+
clan_name: string;
|
|
910
912
|
}
|
|
911
913
|
|
|
912
914
|
export interface RoleEvent {
|
|
@@ -7258,6 +7260,7 @@ function createBaseChannelCreatedEvent(): ChannelCreatedEvent {
|
|
|
7258
7260
|
channel_type: undefined,
|
|
7259
7261
|
status: 0,
|
|
7260
7262
|
app_url: "",
|
|
7263
|
+
clan_name: "",
|
|
7261
7264
|
};
|
|
7262
7265
|
}
|
|
7263
7266
|
|
|
@@ -7293,6 +7296,9 @@ export const ChannelCreatedEvent = {
|
|
|
7293
7296
|
if (message.app_url !== "") {
|
|
7294
7297
|
writer.uint32(82).string(message.app_url);
|
|
7295
7298
|
}
|
|
7299
|
+
if (message.clan_name !== "") {
|
|
7300
|
+
writer.uint32(90).string(message.clan_name);
|
|
7301
|
+
}
|
|
7296
7302
|
return writer;
|
|
7297
7303
|
},
|
|
7298
7304
|
|
|
@@ -7373,6 +7379,13 @@ export const ChannelCreatedEvent = {
|
|
|
7373
7379
|
|
|
7374
7380
|
message.app_url = reader.string();
|
|
7375
7381
|
continue;
|
|
7382
|
+
case 11:
|
|
7383
|
+
if (tag !== 90) {
|
|
7384
|
+
break;
|
|
7385
|
+
}
|
|
7386
|
+
|
|
7387
|
+
message.clan_name = reader.string();
|
|
7388
|
+
continue;
|
|
7376
7389
|
}
|
|
7377
7390
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7378
7391
|
break;
|
|
@@ -7394,6 +7407,7 @@ export const ChannelCreatedEvent = {
|
|
|
7394
7407
|
channel_type: isSet(object.channel_type) ? Number(object.channel_type) : undefined,
|
|
7395
7408
|
status: isSet(object.status) ? globalThis.Number(object.status) : 0,
|
|
7396
7409
|
app_url: isSet(object.app_url) ? globalThis.String(object.app_url) : "",
|
|
7410
|
+
clan_name: isSet(object.clan_name) ? globalThis.String(object.clan_name) : "",
|
|
7397
7411
|
};
|
|
7398
7412
|
},
|
|
7399
7413
|
|
|
@@ -7429,6 +7443,9 @@ export const ChannelCreatedEvent = {
|
|
|
7429
7443
|
if (message.app_url !== "") {
|
|
7430
7444
|
obj.app_url = message.app_url;
|
|
7431
7445
|
}
|
|
7446
|
+
if (message.clan_name !== "") {
|
|
7447
|
+
obj.clan_name = message.clan_name;
|
|
7448
|
+
}
|
|
7432
7449
|
return obj;
|
|
7433
7450
|
},
|
|
7434
7451
|
|
|
@@ -7447,6 +7464,7 @@ export const ChannelCreatedEvent = {
|
|
|
7447
7464
|
message.channel_type = object.channel_type ?? undefined;
|
|
7448
7465
|
message.status = object.status ?? 0;
|
|
7449
7466
|
message.app_url = object.app_url ?? "";
|
|
7467
|
+
message.clan_name = object.clan_name ?? "";
|
|
7450
7468
|
return message;
|
|
7451
7469
|
},
|
|
7452
7470
|
};
|