mezon-js-protobuf 1.6.64 → 1.6.65
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 +63 -2
- package/dist/mezon-js-protobuf/api/api.d.ts +19 -0
- package/package.json +1 -1
- package/rtapi/realtime.ts +11497 -11497
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.
|
|
4
|
-
// protoc
|
|
3
|
+
// protoc-gen-ts_proto v1.181.1
|
|
4
|
+
// protoc v5.27.2
|
|
5
5
|
// source: api/api.proto
|
|
6
6
|
|
|
7
7
|
/* eslint-disable */
|
|
@@ -3819,6 +3819,10 @@ export interface ListSdTopicRequest {
|
|
|
3819
3819
|
limit: number;
|
|
3820
3820
|
}
|
|
3821
3821
|
|
|
3822
|
+
export interface SdTopicDetailRequest {
|
|
3823
|
+
topic_id: string;
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3822
3826
|
export interface DeleteSdTopicRequest {
|
|
3823
3827
|
channel_id: string;
|
|
3824
3828
|
id: string;
|
|
@@ -37150,6 +37154,63 @@ export const ListSdTopicRequest = {
|
|
|
37150
37154
|
},
|
|
37151
37155
|
};
|
|
37152
37156
|
|
|
37157
|
+
function createBaseSdTopicDetailRequest(): SdTopicDetailRequest {
|
|
37158
|
+
return { topic_id: "" };
|
|
37159
|
+
}
|
|
37160
|
+
|
|
37161
|
+
export const SdTopicDetailRequest = {
|
|
37162
|
+
encode(message: SdTopicDetailRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
37163
|
+
if (message.topic_id !== "") {
|
|
37164
|
+
writer.uint32(10).string(message.topic_id);
|
|
37165
|
+
}
|
|
37166
|
+
return writer;
|
|
37167
|
+
},
|
|
37168
|
+
|
|
37169
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicDetailRequest {
|
|
37170
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
37171
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
37172
|
+
const message = createBaseSdTopicDetailRequest();
|
|
37173
|
+
while (reader.pos < end) {
|
|
37174
|
+
const tag = reader.uint32();
|
|
37175
|
+
switch (tag >>> 3) {
|
|
37176
|
+
case 1:
|
|
37177
|
+
if (tag !== 10) {
|
|
37178
|
+
break;
|
|
37179
|
+
}
|
|
37180
|
+
|
|
37181
|
+
message.topic_id = reader.string();
|
|
37182
|
+
continue;
|
|
37183
|
+
}
|
|
37184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37185
|
+
break;
|
|
37186
|
+
}
|
|
37187
|
+
reader.skipType(tag & 7);
|
|
37188
|
+
}
|
|
37189
|
+
return message;
|
|
37190
|
+
},
|
|
37191
|
+
|
|
37192
|
+
fromJSON(object: any): SdTopicDetailRequest {
|
|
37193
|
+
return { topic_id: isSet(object.topic_id) ? globalThis.String(object.topic_id) : "" };
|
|
37194
|
+
},
|
|
37195
|
+
|
|
37196
|
+
toJSON(message: SdTopicDetailRequest): unknown {
|
|
37197
|
+
const obj: any = {};
|
|
37198
|
+
if (message.topic_id !== "") {
|
|
37199
|
+
obj.topic_id = message.topic_id;
|
|
37200
|
+
}
|
|
37201
|
+
return obj;
|
|
37202
|
+
},
|
|
37203
|
+
|
|
37204
|
+
create<I extends Exact<DeepPartial<SdTopicDetailRequest>, I>>(base?: I): SdTopicDetailRequest {
|
|
37205
|
+
return SdTopicDetailRequest.fromPartial(base ?? ({} as any));
|
|
37206
|
+
},
|
|
37207
|
+
fromPartial<I extends Exact<DeepPartial<SdTopicDetailRequest>, I>>(object: I): SdTopicDetailRequest {
|
|
37208
|
+
const message = createBaseSdTopicDetailRequest();
|
|
37209
|
+
message.topic_id = object.topic_id ?? "";
|
|
37210
|
+
return message;
|
|
37211
|
+
},
|
|
37212
|
+
};
|
|
37213
|
+
|
|
37153
37214
|
function createBaseDeleteSdTopicRequest(): DeleteSdTopicRequest {
|
|
37154
37215
|
return { channel_id: "", id: "", clan_id: "" };
|
|
37155
37216
|
}
|
|
@@ -3067,6 +3067,9 @@ export interface ListSdTopicRequest {
|
|
|
3067
3067
|
channel_id: string;
|
|
3068
3068
|
limit: number;
|
|
3069
3069
|
}
|
|
3070
|
+
export interface SdTopicDetailRequest {
|
|
3071
|
+
topic_id: string;
|
|
3072
|
+
}
|
|
3070
3073
|
export interface DeleteSdTopicRequest {
|
|
3071
3074
|
channel_id: string;
|
|
3072
3075
|
id: string;
|
|
@@ -21340,6 +21343,22 @@ export declare const ListSdTopicRequest: {
|
|
|
21340
21343
|
limit?: number | undefined;
|
|
21341
21344
|
} & { [K_1 in Exclude<keyof I_1, keyof ListSdTopicRequest>]: never; }>(object: I_1): ListSdTopicRequest;
|
|
21342
21345
|
};
|
|
21346
|
+
export declare const SdTopicDetailRequest: {
|
|
21347
|
+
encode(message: SdTopicDetailRequest, writer?: _m0.Writer): _m0.Writer;
|
|
21348
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): SdTopicDetailRequest;
|
|
21349
|
+
fromJSON(object: any): SdTopicDetailRequest;
|
|
21350
|
+
toJSON(message: SdTopicDetailRequest): unknown;
|
|
21351
|
+
create<I extends {
|
|
21352
|
+
topic_id?: string | undefined;
|
|
21353
|
+
} & {
|
|
21354
|
+
topic_id?: string | undefined;
|
|
21355
|
+
} & { [K in Exclude<keyof I, "topic_id">]: never; }>(base?: I | undefined): SdTopicDetailRequest;
|
|
21356
|
+
fromPartial<I_1 extends {
|
|
21357
|
+
topic_id?: string | undefined;
|
|
21358
|
+
} & {
|
|
21359
|
+
topic_id?: string | undefined;
|
|
21360
|
+
} & { [K_1 in Exclude<keyof I_1, "topic_id">]: never; }>(object: I_1): SdTopicDetailRequest;
|
|
21361
|
+
};
|
|
21343
21362
|
export declare const DeleteSdTopicRequest: {
|
|
21344
21363
|
encode(message: DeleteSdTopicRequest, writer?: _m0.Writer): _m0.Writer;
|
|
21345
21364
|
decode(input: _m0.Reader | Uint8Array, length?: number): DeleteSdTopicRequest;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mezon-js-protobuf",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.65",
|
|
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",
|