@i4you/proto-files 1.0.5 → 1.0.6-beta.0
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.
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
+
export declare const protobufPackage = "interaction.v1";
|
|
4
|
+
export interface GetAlreadyInteractedUsersRequest {
|
|
5
|
+
userId: string;
|
|
6
|
+
}
|
|
7
|
+
export interface GetAlreadyInteractedUsersResponse {
|
|
8
|
+
usersIds: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare const GetAlreadyInteractedUsersRequest: MessageFns<GetAlreadyInteractedUsersRequest>;
|
|
11
|
+
export declare const GetAlreadyInteractedUsersResponse: MessageFns<GetAlreadyInteractedUsersResponse>;
|
|
12
|
+
export type InteractionServiceService = typeof InteractionServiceService;
|
|
13
|
+
export declare const InteractionServiceService: {
|
|
14
|
+
readonly getAlreadyInteractedUsers: {
|
|
15
|
+
readonly path: "/interaction.v1.InteractionService/GetAlreadyInteractedUsers";
|
|
16
|
+
readonly requestStream: false;
|
|
17
|
+
readonly responseStream: false;
|
|
18
|
+
readonly requestSerialize: (value: GetAlreadyInteractedUsersRequest) => Buffer;
|
|
19
|
+
readonly requestDeserialize: (value: Buffer) => GetAlreadyInteractedUsersRequest;
|
|
20
|
+
readonly responseSerialize: (value: GetAlreadyInteractedUsersResponse) => Buffer;
|
|
21
|
+
readonly responseDeserialize: (value: Buffer) => GetAlreadyInteractedUsersResponse;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export interface InteractionServiceServer extends UntypedServiceImplementation {
|
|
25
|
+
getAlreadyInteractedUsers: handleUnaryCall<GetAlreadyInteractedUsersRequest, GetAlreadyInteractedUsersResponse>;
|
|
26
|
+
}
|
|
27
|
+
export interface InteractionServiceClient extends Client {
|
|
28
|
+
getAlreadyInteractedUsers(request: GetAlreadyInteractedUsersRequest, callback: (error: ServiceError | null, response: GetAlreadyInteractedUsersResponse) => void): ClientUnaryCall;
|
|
29
|
+
getAlreadyInteractedUsers(request: GetAlreadyInteractedUsersRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetAlreadyInteractedUsersResponse) => void): ClientUnaryCall;
|
|
30
|
+
getAlreadyInteractedUsers(request: GetAlreadyInteractedUsersRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetAlreadyInteractedUsersResponse) => void): ClientUnaryCall;
|
|
31
|
+
}
|
|
32
|
+
export declare const InteractionServiceClient: {
|
|
33
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): InteractionServiceClient;
|
|
34
|
+
service: typeof InteractionServiceService;
|
|
35
|
+
serviceName: string;
|
|
36
|
+
};
|
|
37
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
38
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
39
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
40
|
+
} : Partial<T>;
|
|
41
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
42
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
43
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
44
|
+
} & {
|
|
45
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
46
|
+
};
|
|
47
|
+
export interface MessageFns<T> {
|
|
48
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
49
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
50
|
+
fromJSON(object: any): T;
|
|
51
|
+
toJSON(message: T): unknown;
|
|
52
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
53
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
56
|
+
//# sourceMappingURL=discovery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"discovery.d.ts","sourceRoot":"","sources":["../../../generated/interaction/v1/discovery.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,MAAM,EACN,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,eAAe,EAEpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,4BAA4B,EAClC,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAEhD,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAMD,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,gCAAgC,CAwDzF,CAAC;AAMF,eAAO,MAAM,iCAAiC,EAAE,UAAU,CAAC,iCAAiC,CA0D3F,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC;AACzE,eAAO,MAAM,yBAAyB;;;;;2CAKR,gCAAgC,KAAG,MAAM;6CAEvC,MAAM,KAAG,gCAAgC;4CAE1C,iCAAiC,KAAG,MAAM;8CAExC,MAAM,KAAG,iCAAiC;;CAGjE,CAAC;AAEX,MAAM,WAAW,wBAAyB,SAAQ,4BAA4B;IAC5E,yBAAyB,EAAE,eAAe,CAAC,gCAAgC,EAAE,iCAAiC,CAAC,CAAC;CACjH;AAED,MAAM,WAAW,wBAAyB,SAAQ,M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NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.7
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: interaction/v1/discovery.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
import { makeGenericClientConstructor, } from "@grpc/grpc-js";
|
|
9
|
+
export const protobufPackage = "interaction.v1";
|
|
10
|
+
function createBaseGetAlreadyInteractedUsersRequest() {
|
|
11
|
+
return { userId: "" };
|
|
12
|
+
}
|
|
13
|
+
export const GetAlreadyInteractedUsersRequest = {
|
|
14
|
+
encode(message, writer = new BinaryWriter()) {
|
|
15
|
+
if (message.userId !== "") {
|
|
16
|
+
writer.uint32(10).string(message.userId);
|
|
17
|
+
}
|
|
18
|
+
return writer;
|
|
19
|
+
},
|
|
20
|
+
decode(input, length) {
|
|
21
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
22
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
+
const message = createBaseGetAlreadyInteractedUsersRequest();
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
case 1: {
|
|
28
|
+
if (tag !== 10) {
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
message.userId = reader.string();
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
reader.skip(tag & 7);
|
|
39
|
+
}
|
|
40
|
+
return message;
|
|
41
|
+
},
|
|
42
|
+
fromJSON(object) {
|
|
43
|
+
return { userId: isSet(object.userId) ? globalThis.String(object.userId) : "" };
|
|
44
|
+
},
|
|
45
|
+
toJSON(message) {
|
|
46
|
+
const obj = {};
|
|
47
|
+
if (message.userId !== "") {
|
|
48
|
+
obj.userId = message.userId;
|
|
49
|
+
}
|
|
50
|
+
return obj;
|
|
51
|
+
},
|
|
52
|
+
create(base) {
|
|
53
|
+
return GetAlreadyInteractedUsersRequest.fromPartial(base ?? {});
|
|
54
|
+
},
|
|
55
|
+
fromPartial(object) {
|
|
56
|
+
const message = createBaseGetAlreadyInteractedUsersRequest();
|
|
57
|
+
message.userId = object.userId ?? "";
|
|
58
|
+
return message;
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
function createBaseGetAlreadyInteractedUsersResponse() {
|
|
62
|
+
return { usersIds: [] };
|
|
63
|
+
}
|
|
64
|
+
export const GetAlreadyInteractedUsersResponse = {
|
|
65
|
+
encode(message, writer = new BinaryWriter()) {
|
|
66
|
+
for (const v of message.usersIds) {
|
|
67
|
+
writer.uint32(10).string(v);
|
|
68
|
+
}
|
|
69
|
+
return writer;
|
|
70
|
+
},
|
|
71
|
+
decode(input, length) {
|
|
72
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
73
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
74
|
+
const message = createBaseGetAlreadyInteractedUsersResponse();
|
|
75
|
+
while (reader.pos < end) {
|
|
76
|
+
const tag = reader.uint32();
|
|
77
|
+
switch (tag >>> 3) {
|
|
78
|
+
case 1: {
|
|
79
|
+
if (tag !== 10) {
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
message.usersIds.push(reader.string());
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
reader.skip(tag & 7);
|
|
90
|
+
}
|
|
91
|
+
return message;
|
|
92
|
+
},
|
|
93
|
+
fromJSON(object) {
|
|
94
|
+
return {
|
|
95
|
+
usersIds: globalThis.Array.isArray(object?.usersIds) ? object.usersIds.map((e) => globalThis.String(e)) : [],
|
|
96
|
+
};
|
|
97
|
+
},
|
|
98
|
+
toJSON(message) {
|
|
99
|
+
const obj = {};
|
|
100
|
+
if (message.usersIds?.length) {
|
|
101
|
+
obj.usersIds = message.usersIds;
|
|
102
|
+
}
|
|
103
|
+
return obj;
|
|
104
|
+
},
|
|
105
|
+
create(base) {
|
|
106
|
+
return GetAlreadyInteractedUsersResponse.fromPartial(base ?? {});
|
|
107
|
+
},
|
|
108
|
+
fromPartial(object) {
|
|
109
|
+
const message = createBaseGetAlreadyInteractedUsersResponse();
|
|
110
|
+
message.usersIds = object.usersIds?.map((e) => e) || [];
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
export const InteractionServiceService = {
|
|
115
|
+
getAlreadyInteractedUsers: {
|
|
116
|
+
path: "/interaction.v1.InteractionService/GetAlreadyInteractedUsers",
|
|
117
|
+
requestStream: false,
|
|
118
|
+
responseStream: false,
|
|
119
|
+
requestSerialize: (value) => Buffer.from(GetAlreadyInteractedUsersRequest.encode(value).finish()),
|
|
120
|
+
requestDeserialize: (value) => GetAlreadyInteractedUsersRequest.decode(value),
|
|
121
|
+
responseSerialize: (value) => Buffer.from(GetAlreadyInteractedUsersResponse.encode(value).finish()),
|
|
122
|
+
responseDeserialize: (value) => GetAlreadyInteractedUsersResponse.decode(value),
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
export const InteractionServiceClient = makeGenericClientConstructor(InteractionServiceService, "interaction.v1.InteractionService");
|
|
126
|
+
function isSet(value) {
|
|
127
|
+
return value !== null && value !== undefined;
|
|
128
|
+
}
|
package/dist/user/v2/user.js
CHANGED