mezon-js 2.14.50 → 2.14.52
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 +18 -18
- package/api.gen.ts +108 -108
- package/dist/api/api.d.ts +10 -10
- package/dist/api.gen.d.ts +4 -4
- package/dist/mezon-js.cjs.js +16 -16
- package/dist/mezon-js.esm.mjs +16 -16
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -2602,7 +2602,7 @@ export interface SystemMessageRequest {
|
|
|
2602
2602
|
/** Setup tips */
|
|
2603
2603
|
setup_tips: string;
|
|
2604
2604
|
/** Hide audit log */
|
|
2605
|
-
hide_audit_log:
|
|
2605
|
+
hide_audit_log: boolean;
|
|
2606
2606
|
}
|
|
2607
2607
|
|
|
2608
2608
|
/** Request to delete a system message by clan ID. */
|
|
@@ -2932,7 +2932,7 @@ export interface ChannelCanvasListResponse {
|
|
|
2932
2932
|
/** channel doc item */
|
|
2933
2933
|
channel_canvases: ChannelCanvasItem[];
|
|
2934
2934
|
/** */
|
|
2935
|
-
count:
|
|
2935
|
+
count: number;
|
|
2936
2936
|
}
|
|
2937
2937
|
|
|
2938
2938
|
export interface ChannelCanvasDetailRequest {
|
|
@@ -27026,7 +27026,7 @@ function createBaseSystemMessageRequest(): SystemMessageRequest {
|
|
|
27026
27026
|
welcome_sticker: "",
|
|
27027
27027
|
boost_message: "",
|
|
27028
27028
|
setup_tips: "",
|
|
27029
|
-
hide_audit_log:
|
|
27029
|
+
hide_audit_log: false,
|
|
27030
27030
|
};
|
|
27031
27031
|
}
|
|
27032
27032
|
|
|
@@ -27050,8 +27050,8 @@ export const SystemMessageRequest = {
|
|
|
27050
27050
|
if (message.setup_tips !== "") {
|
|
27051
27051
|
writer.uint32(50).string(message.setup_tips);
|
|
27052
27052
|
}
|
|
27053
|
-
if (message.hide_audit_log !==
|
|
27054
|
-
writer.uint32(
|
|
27053
|
+
if (message.hide_audit_log !== false) {
|
|
27054
|
+
writer.uint32(56).bool(message.hide_audit_log);
|
|
27055
27055
|
}
|
|
27056
27056
|
return writer;
|
|
27057
27057
|
},
|
|
@@ -27106,11 +27106,11 @@ export const SystemMessageRequest = {
|
|
|
27106
27106
|
message.setup_tips = reader.string();
|
|
27107
27107
|
continue;
|
|
27108
27108
|
case 7:
|
|
27109
|
-
if (tag !==
|
|
27109
|
+
if (tag !== 56) {
|
|
27110
27110
|
break;
|
|
27111
27111
|
}
|
|
27112
27112
|
|
|
27113
|
-
message.hide_audit_log = reader.
|
|
27113
|
+
message.hide_audit_log = reader.bool();
|
|
27114
27114
|
continue;
|
|
27115
27115
|
}
|
|
27116
27116
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -27129,7 +27129,7 @@ export const SystemMessageRequest = {
|
|
|
27129
27129
|
welcome_sticker: isSet(object.welcome_sticker) ? globalThis.String(object.welcome_sticker) : "",
|
|
27130
27130
|
boost_message: isSet(object.boost_message) ? globalThis.String(object.boost_message) : "",
|
|
27131
27131
|
setup_tips: isSet(object.setup_tips) ? globalThis.String(object.setup_tips) : "",
|
|
27132
|
-
hide_audit_log: isSet(object.hide_audit_log) ? globalThis.
|
|
27132
|
+
hide_audit_log: isSet(object.hide_audit_log) ? globalThis.Boolean(object.hide_audit_log) : false,
|
|
27133
27133
|
};
|
|
27134
27134
|
},
|
|
27135
27135
|
|
|
@@ -27153,7 +27153,7 @@ export const SystemMessageRequest = {
|
|
|
27153
27153
|
if (message.setup_tips !== "") {
|
|
27154
27154
|
obj.setup_tips = message.setup_tips;
|
|
27155
27155
|
}
|
|
27156
|
-
if (message.hide_audit_log !==
|
|
27156
|
+
if (message.hide_audit_log !== false) {
|
|
27157
27157
|
obj.hide_audit_log = message.hide_audit_log;
|
|
27158
27158
|
}
|
|
27159
27159
|
return obj;
|
|
@@ -27170,7 +27170,7 @@ export const SystemMessageRequest = {
|
|
|
27170
27170
|
message.welcome_sticker = object.welcome_sticker ?? "";
|
|
27171
27171
|
message.boost_message = object.boost_message ?? "";
|
|
27172
27172
|
message.setup_tips = object.setup_tips ?? "";
|
|
27173
|
-
message.hide_audit_log = object.hide_audit_log ??
|
|
27173
|
+
message.hide_audit_log = object.hide_audit_log ?? false;
|
|
27174
27174
|
return message;
|
|
27175
27175
|
},
|
|
27176
27176
|
};
|
|
@@ -30287,7 +30287,7 @@ export const ChannelCanvasItem = {
|
|
|
30287
30287
|
};
|
|
30288
30288
|
|
|
30289
30289
|
function createBaseChannelCanvasListResponse(): ChannelCanvasListResponse {
|
|
30290
|
-
return { clan_id: "0", channel_id: "0", channel_canvases: [], count:
|
|
30290
|
+
return { clan_id: "0", channel_id: "0", channel_canvases: [], count: 0 };
|
|
30291
30291
|
}
|
|
30292
30292
|
|
|
30293
30293
|
export const ChannelCanvasListResponse = {
|
|
@@ -30301,8 +30301,8 @@ export const ChannelCanvasListResponse = {
|
|
|
30301
30301
|
for (const v of message.channel_canvases) {
|
|
30302
30302
|
ChannelCanvasItem.encode(v!, writer.uint32(26).fork()).ldelim();
|
|
30303
30303
|
}
|
|
30304
|
-
if (message.count !==
|
|
30305
|
-
writer.uint32(32).
|
|
30304
|
+
if (message.count !== 0) {
|
|
30305
|
+
writer.uint32(32).int32(message.count);
|
|
30306
30306
|
}
|
|
30307
30307
|
return writer;
|
|
30308
30308
|
},
|
|
@@ -30340,7 +30340,7 @@ export const ChannelCanvasListResponse = {
|
|
|
30340
30340
|
break;
|
|
30341
30341
|
}
|
|
30342
30342
|
|
|
30343
|
-
message.count =
|
|
30343
|
+
message.count = reader.int32();
|
|
30344
30344
|
continue;
|
|
30345
30345
|
}
|
|
30346
30346
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -30358,7 +30358,7 @@ export const ChannelCanvasListResponse = {
|
|
|
30358
30358
|
channel_canvases: globalThis.Array.isArray(object?.channel_canvases)
|
|
30359
30359
|
? object.channel_canvases.map((e: any) => ChannelCanvasItem.fromJSON(e))
|
|
30360
30360
|
: [],
|
|
30361
|
-
count: isSet(object.count) ? globalThis.
|
|
30361
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
30362
30362
|
};
|
|
30363
30363
|
},
|
|
30364
30364
|
|
|
@@ -30373,8 +30373,8 @@ export const ChannelCanvasListResponse = {
|
|
|
30373
30373
|
if (message.channel_canvases?.length) {
|
|
30374
30374
|
obj.channel_canvases = message.channel_canvases.map((e) => ChannelCanvasItem.toJSON(e));
|
|
30375
30375
|
}
|
|
30376
|
-
if (message.count !==
|
|
30377
|
-
obj.count = message.count;
|
|
30376
|
+
if (message.count !== 0) {
|
|
30377
|
+
obj.count = Math.round(message.count);
|
|
30378
30378
|
}
|
|
30379
30379
|
return obj;
|
|
30380
30380
|
},
|
|
@@ -30387,7 +30387,7 @@ export const ChannelCanvasListResponse = {
|
|
|
30387
30387
|
message.clan_id = object.clan_id ?? "0";
|
|
30388
30388
|
message.channel_id = object.channel_id ?? "0";
|
|
30389
30389
|
message.channel_canvases = object.channel_canvases?.map((e) => ChannelCanvasItem.fromPartial(e)) || [];
|
|
30390
|
-
message.count = object.count ??
|
|
30390
|
+
message.count = object.count ?? 0;
|
|
30391
30391
|
return message;
|
|
30392
30392
|
},
|
|
30393
30393
|
};
|