@control_yourself/contracts 0.3.0 → 0.3.2
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/dist/generated/messenger_pb.d.ts +78 -1
- package/dist/generated/messenger_pb.js +20 -2
- package/dist/generated/messenger_pb.js.map +1 -1
- package/dist/generated-grpc/messenger.d.ts +113 -0
- package/dist/generated-grpc/messenger.js +1000 -11
- package/dist/generated-grpc/messenger.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/messenger_pb.ts +283 -3
- package/generated-grpc/auth.ts +1 -1
- package/generated-grpc/google/protobuf/empty.ts +1 -1
- package/generated-grpc/messenger.ts +1248 -31
- package/package.json +1 -1
- package/protos/messenger.proto +62 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
2
3
|
import type { Message } from "@bufbuild/protobuf";
|
|
3
4
|
export declare const file_messenger: GenFile;
|
|
4
5
|
export type GenerateTelegramLinkRequest = Message<"messenger.v1.GenerateTelegramLinkRequest"> & {
|
|
@@ -9,10 +10,86 @@ export type GenerateTelegramLinkResponse = Message<"messenger.v1.GenerateTelegra
|
|
|
9
10
|
link: string;
|
|
10
11
|
};
|
|
11
12
|
export declare const GenerateTelegramLinkResponseSchema: GenMessage<GenerateTelegramLinkResponse>;
|
|
13
|
+
export type LinkTelegramAccountRequestPayload = Message<"messenger.v1.LinkTelegramAccountRequestPayload"> & {
|
|
14
|
+
token: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const LinkTelegramAccountRequestPayloadSchema: GenMessage<LinkTelegramAccountRequestPayload>;
|
|
17
|
+
export type LinkTelegramAccountResponsePayload = Message<"messenger.v1.LinkTelegramAccountResponsePayload"> & {
|
|
18
|
+
status: LinkTelegramAccountStatus;
|
|
19
|
+
message: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const LinkTelegramAccountResponsePayloadSchema: GenMessage<LinkTelegramAccountResponsePayload>;
|
|
22
|
+
export type TelegramMeta = Message<"messenger.v1.TelegramMeta"> & {
|
|
23
|
+
timestamp: bigint;
|
|
24
|
+
correlationId: string;
|
|
25
|
+
telegramUserId: bigint;
|
|
26
|
+
chatId: bigint;
|
|
27
|
+
headers: {
|
|
28
|
+
[key: string]: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export declare const TelegramMetaSchema: GenMessage<TelegramMeta>;
|
|
32
|
+
export type LinkTelegramAccountRequest = Message<"messenger.v1.LinkTelegramAccountRequest"> & {
|
|
33
|
+
meta?: TelegramMeta;
|
|
34
|
+
payload?: LinkTelegramAccountRequestPayload;
|
|
35
|
+
};
|
|
36
|
+
export declare const LinkTelegramAccountRequestSchema: GenMessage<LinkTelegramAccountRequest>;
|
|
37
|
+
export type LinkTelegramAccountResponse = Message<"messenger.v1.LinkTelegramAccountResponse"> & {
|
|
38
|
+
meta?: TelegramMeta;
|
|
39
|
+
payload?: LinkTelegramAccountResponsePayload;
|
|
40
|
+
};
|
|
41
|
+
export declare const LinkTelegramAccountResponseSchema: GenMessage<LinkTelegramAccountResponse>;
|
|
42
|
+
export type GetIntegrationsRequest = Message<"messenger.v1.GetIntegrationsRequest"> & {
|
|
43
|
+
userId: number;
|
|
44
|
+
};
|
|
45
|
+
export declare const GetIntegrationsRequestSchema: GenMessage<GetIntegrationsRequest>;
|
|
46
|
+
export type Integration = Message<"messenger.v1.Integration"> & {
|
|
47
|
+
id: number;
|
|
48
|
+
meta: {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
};
|
|
51
|
+
messenger: string;
|
|
52
|
+
messengerId: string;
|
|
53
|
+
userId: number;
|
|
54
|
+
createdAt: number;
|
|
55
|
+
updatedAt: number;
|
|
56
|
+
deletedAt: number;
|
|
57
|
+
};
|
|
58
|
+
export declare const IntegrationSchema: GenMessage<Integration>;
|
|
59
|
+
export type GetIntegrationsResponse = Message<"messenger.v1.GetIntegrationsResponse"> & {
|
|
60
|
+
integrations: Integration[];
|
|
61
|
+
};
|
|
62
|
+
export declare const GetIntegrationsResponseSchema: GenMessage<GetIntegrationsResponse>;
|
|
63
|
+
export type RemoveIntegrationRequest = Message<"messenger.v1.RemoveIntegrationRequest"> & {
|
|
64
|
+
id: number;
|
|
65
|
+
};
|
|
66
|
+
export declare const RemoveIntegrationRequestSchema: GenMessage<RemoveIntegrationRequest>;
|
|
67
|
+
export declare enum LinkTelegramAccountStatus {
|
|
68
|
+
STATUS_UNSPECIFIED = 0,
|
|
69
|
+
STATUS_COMPLETED = 1,
|
|
70
|
+
STATUS_PROCESSING = 2,
|
|
71
|
+
STATUS_FAILED = 3
|
|
72
|
+
}
|
|
73
|
+
export declare const LinkTelegramAccountStatusSchema: GenEnum<LinkTelegramAccountStatus>;
|
|
12
74
|
export declare const MessengerService: GenService<{
|
|
13
75
|
generateTelegramLink: {
|
|
14
76
|
methodKind: "unary";
|
|
15
77
|
input: typeof GenerateTelegramLinkRequestSchema;
|
|
16
78
|
output: typeof GenerateTelegramLinkResponseSchema;
|
|
17
79
|
};
|
|
80
|
+
linkTelegramAccount: {
|
|
81
|
+
methodKind: "unary";
|
|
82
|
+
input: typeof LinkTelegramAccountRequestSchema;
|
|
83
|
+
output: typeof LinkTelegramAccountResponseSchema;
|
|
84
|
+
};
|
|
85
|
+
getIntegrations: {
|
|
86
|
+
methodKind: "unary";
|
|
87
|
+
input: typeof GetIntegrationsRequestSchema;
|
|
88
|
+
output: typeof GetIntegrationsResponseSchema;
|
|
89
|
+
};
|
|
90
|
+
removeIntegration: {
|
|
91
|
+
methodKind: "unary";
|
|
92
|
+
input: typeof RemoveIntegrationRequestSchema;
|
|
93
|
+
output: typeof EmptySchema;
|
|
94
|
+
};
|
|
18
95
|
}>;
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessengerService = exports.GenerateTelegramLinkResponseSchema = exports.GenerateTelegramLinkRequestSchema = exports.file_messenger = void 0;
|
|
3
|
+
exports.MessengerService = exports.LinkTelegramAccountStatusSchema = exports.LinkTelegramAccountStatus = exports.RemoveIntegrationRequestSchema = exports.GetIntegrationsResponseSchema = exports.IntegrationSchema = exports.GetIntegrationsRequestSchema = exports.LinkTelegramAccountResponseSchema = exports.LinkTelegramAccountRequestSchema = exports.TelegramMetaSchema = exports.LinkTelegramAccountResponsePayloadSchema = exports.LinkTelegramAccountRequestPayloadSchema = exports.GenerateTelegramLinkResponseSchema = exports.GenerateTelegramLinkRequestSchema = exports.file_messenger = void 0;
|
|
4
4
|
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
5
|
-
|
|
5
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
6
|
+
exports.file_messenger = (0, codegenv2_1.fileDesc)("Cg9tZXNzZW5nZXIucHJvdG8SDG1lc3Nlbmdlci52MSIuChtHZW5lcmF0ZVRlbGVncmFtTGlua1JlcXVlc3QSDwoHdXNlcl9pZBgBIAEoBSIsChxHZW5lcmF0ZVRlbGVncmFtTGlua1Jlc3BvbnNlEgwKBGxpbmsYASABKAkiMgohTGlua1RlbGVncmFtQWNjb3VudFJlcXVlc3RQYXlsb2FkEg0KBXRva2VuGAEgASgJIm4KIkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZVBheWxvYWQSNwoGc3RhdHVzGAEgASgOMicubWVzc2VuZ2VyLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRTdGF0dXMSDwoHbWVzc2FnZRgCIAEoCSLOAQoMVGVsZWdyYW1NZXRhEhEKCXRpbWVzdGFtcBgBIAEoAxIWCg5jb3JyZWxhdGlvbl9pZBgCIAEoCRIYChB0ZWxlZ3JhbV91c2VyX2lkGAMgASgDEg8KB2NoYXRfaWQ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WxlZ3JhbUFjY291bnRTdGF0dXMSFgoSU1RBVFVTX1VOU1BFQ0lGSUVEEAASFAoQU1RBVFVTX0NPTVBMRVRFRBABEhUKEVNUQVRVU19QUk9DRVNTSU5HEAISEQoNU1RBVFVTX0ZBSUxFRBADMqIDChBNZXNzZW5nZXJTZXJ2aWNlEm0KFEdlbmVyYXRlVGVsZWdyYW1MaW5rEikubWVzc2VuZ2VyLnYxLkdlbmVyYXRlVGVsZWdyYW1MaW5rUmVxdWVzdBoqLm1lc3Nlbmdlci52MS5HZW5lcmF0ZVRlbGVncmFtTGlua1Jlc3BvbnNlEmoKE0xpbmtUZWxlZ3JhbUFjY291bnQSKC5tZXNzZW5nZXIudjEuTGlua1RlbGVncmFtQWNjb3VudFJlcXVlc3QaKS5tZXNzZW5nZXIudjEuTGlua1RlbGVncmFtQWNjb3VudFJlc3BvbnNlEl4KD0dldEludGVncmF0aW9ucxIkLm1lc3Nlbmdlci52MS5HZXRJbnRlZ3JhdGlvbnNSZXF1ZXN0GiUubWVzc2VuZ2VyLnYxLkdldEludGVncmF0aW9uc1Jlc3BvbnNlElMKEVJlbW92ZUludGVncmF0aW9uEiYubWVzc2VuZ2VyLnYxLlJlbW92ZUludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eWIGcHJvdG8z", [wkt_1.file_google_protobuf_empty]);
|
|
6
7
|
exports.GenerateTelegramLinkRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 0);
|
|
7
8
|
exports.GenerateTelegramLinkResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 1);
|
|
9
|
+
exports.LinkTelegramAccountRequestPayloadSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 2);
|
|
10
|
+
exports.LinkTelegramAccountResponsePayloadSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 3);
|
|
11
|
+
exports.TelegramMetaSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 4);
|
|
12
|
+
exports.LinkTelegramAccountRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 5);
|
|
13
|
+
exports.LinkTelegramAccountResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 6);
|
|
14
|
+
exports.GetIntegrationsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 7);
|
|
15
|
+
exports.IntegrationSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 8);
|
|
16
|
+
exports.GetIntegrationsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 9);
|
|
17
|
+
exports.RemoveIntegrationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 10);
|
|
18
|
+
var LinkTelegramAccountStatus;
|
|
19
|
+
(function (LinkTelegramAccountStatus) {
|
|
20
|
+
LinkTelegramAccountStatus[LinkTelegramAccountStatus["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
21
|
+
LinkTelegramAccountStatus[LinkTelegramAccountStatus["STATUS_COMPLETED"] = 1] = "STATUS_COMPLETED";
|
|
22
|
+
LinkTelegramAccountStatus[LinkTelegramAccountStatus["STATUS_PROCESSING"] = 2] = "STATUS_PROCESSING";
|
|
23
|
+
LinkTelegramAccountStatus[LinkTelegramAccountStatus["STATUS_FAILED"] = 3] = "STATUS_FAILED";
|
|
24
|
+
})(LinkTelegramAccountStatus || (exports.LinkTelegramAccountStatus = LinkTelegramAccountStatus = {}));
|
|
25
|
+
exports.LinkTelegramAccountStatusSchema = (0, codegenv2_1.enumDesc)(exports.file_messenger, 0);
|
|
8
26
|
exports.MessengerService = (0, codegenv2_1.serviceDesc)(exports.file_messenger, 0);
|
|
9
27
|
//# sourceMappingURL=messenger_pb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messenger_pb.js","sourceRoot":"/","sources":["generated/messenger_pb.ts"],"names":[],"mappings":";;;AAKA,
|
|
1
|
+
{"version":3,"file":"messenger_pb.js","sourceRoot":"/","s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A,+BAA+B,GAC1C,IAAA,oBAAQ,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAKjB,QAAA,gBAAgB,GAkC3B,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,14 +1,88 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
+
import { Empty } from "./google/protobuf/empty";
|
|
3
4
|
export declare const protobufPackage = "messenger.v1";
|
|
5
|
+
export declare enum LinkTelegramAccountStatus {
|
|
6
|
+
STATUS_UNSPECIFIED = 0,
|
|
7
|
+
STATUS_COMPLETED = 1,
|
|
8
|
+
STATUS_PROCESSING = 2,
|
|
9
|
+
STATUS_FAILED = 3,
|
|
10
|
+
UNRECOGNIZED = -1
|
|
11
|
+
}
|
|
12
|
+
export declare function linkTelegramAccountStatusFromJSON(object: any): LinkTelegramAccountStatus;
|
|
13
|
+
export declare function linkTelegramAccountStatusToJSON(object: LinkTelegramAccountStatus): string;
|
|
4
14
|
export interface GenerateTelegramLinkRequest {
|
|
5
15
|
userId: number;
|
|
6
16
|
}
|
|
7
17
|
export interface GenerateTelegramLinkResponse {
|
|
8
18
|
link: string;
|
|
9
19
|
}
|
|
20
|
+
export interface LinkTelegramAccountRequestPayload {
|
|
21
|
+
token: string;
|
|
22
|
+
}
|
|
23
|
+
export interface LinkTelegramAccountResponsePayload {
|
|
24
|
+
status: LinkTelegramAccountStatus;
|
|
25
|
+
message: string;
|
|
26
|
+
}
|
|
27
|
+
export interface TelegramMeta {
|
|
28
|
+
timestamp: number;
|
|
29
|
+
correlationId: string;
|
|
30
|
+
telegramUserId: number;
|
|
31
|
+
chatId: number;
|
|
32
|
+
headers: {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export interface TelegramMeta_HeadersEntry {
|
|
37
|
+
key: string;
|
|
38
|
+
value: string;
|
|
39
|
+
}
|
|
40
|
+
export interface LinkTelegramAccountRequest {
|
|
41
|
+
meta: TelegramMeta | undefined;
|
|
42
|
+
payload: LinkTelegramAccountRequestPayload | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface LinkTelegramAccountResponse {
|
|
45
|
+
meta: TelegramMeta | undefined;
|
|
46
|
+
payload: LinkTelegramAccountResponsePayload | undefined;
|
|
47
|
+
}
|
|
48
|
+
export interface GetIntegrationsRequest {
|
|
49
|
+
userId: number;
|
|
50
|
+
}
|
|
51
|
+
export interface Integration {
|
|
52
|
+
id: number;
|
|
53
|
+
meta: {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
};
|
|
56
|
+
messenger: string;
|
|
57
|
+
messengerId: string;
|
|
58
|
+
userId: number;
|
|
59
|
+
createdAt: number;
|
|
60
|
+
updatedAt: number;
|
|
61
|
+
deletedAt: number;
|
|
62
|
+
}
|
|
63
|
+
export interface Integration_MetaEntry {
|
|
64
|
+
key: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}
|
|
67
|
+
export interface GetIntegrationsResponse {
|
|
68
|
+
integrations: Integration[];
|
|
69
|
+
}
|
|
70
|
+
export interface RemoveIntegrationRequest {
|
|
71
|
+
id: number;
|
|
72
|
+
}
|
|
10
73
|
export declare const GenerateTelegramLinkRequest: MessageFns<GenerateTelegramLinkRequest>;
|
|
11
74
|
export declare const GenerateTelegramLinkResponse: MessageFns<GenerateTelegramLinkResponse>;
|
|
75
|
+
export declare const LinkTelegramAccountRequestPayload: MessageFns<LinkTelegramAccountRequestPayload>;
|
|
76
|
+
export declare const LinkTelegramAccountResponsePayload: MessageFns<LinkTelegramAccountResponsePayload>;
|
|
77
|
+
export declare const TelegramMeta: MessageFns<TelegramMeta>;
|
|
78
|
+
export declare const TelegramMeta_HeadersEntry: MessageFns<TelegramMeta_HeadersEntry>;
|
|
79
|
+
export declare const LinkTelegramAccountRequest: MessageFns<LinkTelegramAccountRequest>;
|
|
80
|
+
export declare const LinkTelegramAccountResponse: MessageFns<LinkTelegramAccountResponse>;
|
|
81
|
+
export declare const GetIntegrationsRequest: MessageFns<GetIntegrationsRequest>;
|
|
82
|
+
export declare const Integration: MessageFns<Integration>;
|
|
83
|
+
export declare const Integration_MetaEntry: MessageFns<Integration_MetaEntry>;
|
|
84
|
+
export declare const GetIntegrationsResponse: MessageFns<GetIntegrationsResponse>;
|
|
85
|
+
export declare const RemoveIntegrationRequest: MessageFns<RemoveIntegrationRequest>;
|
|
12
86
|
export type MessengerServiceService = typeof MessengerServiceService;
|
|
13
87
|
export declare const MessengerServiceService: {
|
|
14
88
|
readonly generateTelegramLink: {
|
|
@@ -20,14 +94,53 @@ export declare const MessengerServiceService: {
|
|
|
20
94
|
readonly responseSerialize: (value: GenerateTelegramLinkResponse) => Buffer;
|
|
21
95
|
readonly responseDeserialize: (value: Buffer) => GenerateTelegramLinkResponse;
|
|
22
96
|
};
|
|
97
|
+
readonly linkTelegramAccount: {
|
|
98
|
+
readonly path: "/messenger.v1.MessengerService/LinkTelegramAccount";
|
|
99
|
+
readonly requestStream: false;
|
|
100
|
+
readonly responseStream: false;
|
|
101
|
+
readonly requestSerialize: (value: LinkTelegramAccountRequest) => Buffer;
|
|
102
|
+
readonly requestDeserialize: (value: Buffer) => LinkTelegramAccountRequest;
|
|
103
|
+
readonly responseSerialize: (value: LinkTelegramAccountResponse) => Buffer;
|
|
104
|
+
readonly responseDeserialize: (value: Buffer) => LinkTelegramAccountResponse;
|
|
105
|
+
};
|
|
106
|
+
readonly getIntegrations: {
|
|
107
|
+
readonly path: "/messenger.v1.MessengerService/GetIntegrations";
|
|
108
|
+
readonly requestStream: false;
|
|
109
|
+
readonly responseStream: false;
|
|
110
|
+
readonly requestSerialize: (value: GetIntegrationsRequest) => Buffer;
|
|
111
|
+
readonly requestDeserialize: (value: Buffer) => GetIntegrationsRequest;
|
|
112
|
+
readonly responseSerialize: (value: GetIntegrationsResponse) => Buffer;
|
|
113
|
+
readonly responseDeserialize: (value: Buffer) => GetIntegrationsResponse;
|
|
114
|
+
};
|
|
115
|
+
readonly removeIntegration: {
|
|
116
|
+
readonly path: "/messenger.v1.MessengerService/RemoveIntegration";
|
|
117
|
+
readonly requestStream: false;
|
|
118
|
+
readonly responseStream: false;
|
|
119
|
+
readonly requestSerialize: (value: RemoveIntegrationRequest) => Buffer;
|
|
120
|
+
readonly requestDeserialize: (value: Buffer) => RemoveIntegrationRequest;
|
|
121
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
122
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
123
|
+
};
|
|
23
124
|
};
|
|
24
125
|
export interface MessengerServiceServer extends UntypedServiceImplementation {
|
|
25
126
|
generateTelegramLink: handleUnaryCall<GenerateTelegramLinkRequest, GenerateTelegramLinkResponse>;
|
|
127
|
+
linkTelegramAccount: handleUnaryCall<LinkTelegramAccountRequest, LinkTelegramAccountResponse>;
|
|
128
|
+
getIntegrations: handleUnaryCall<GetIntegrationsRequest, GetIntegrationsResponse>;
|
|
129
|
+
removeIntegration: handleUnaryCall<RemoveIntegrationRequest, Empty>;
|
|
26
130
|
}
|
|
27
131
|
export interface MessengerServiceClient extends Client {
|
|
28
132
|
generateTelegramLink(request: GenerateTelegramLinkRequest, callback: (error: ServiceError | null, response: GenerateTelegramLinkResponse) => void): ClientUnaryCall;
|
|
29
133
|
generateTelegramLink(request: GenerateTelegramLinkRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GenerateTelegramLinkResponse) => void): ClientUnaryCall;
|
|
30
134
|
generateTelegramLink(request: GenerateTelegramLinkRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GenerateTelegramLinkResponse) => void): ClientUnaryCall;
|
|
135
|
+
linkTelegramAccount(request: LinkTelegramAccountRequest, callback: (error: ServiceError | null, response: LinkTelegramAccountResponse) => void): ClientUnaryCall;
|
|
136
|
+
linkTelegramAccount(request: LinkTelegramAccountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: LinkTelegramAccountResponse) => void): ClientUnaryCall;
|
|
137
|
+
linkTelegramAccount(request: LinkTelegramAccountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: LinkTelegramAccountResponse) => void): ClientUnaryCall;
|
|
138
|
+
getIntegrations(request: GetIntegrationsRequest, callback: (error: ServiceError | null, response: GetIntegrationsResponse) => void): ClientUnaryCall;
|
|
139
|
+
getIntegrations(request: GetIntegrationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetIntegrationsResponse) => void): ClientUnaryCall;
|
|
140
|
+
getIntegrations(request: GetIntegrationsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetIntegrationsResponse) => void): ClientUnaryCall;
|
|
141
|
+
removeIntegration(request: RemoveIntegrationRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
142
|
+
removeIntegration(request: RemoveIntegrationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
143
|
+
removeIntegration(request: RemoveIntegrationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
31
144
|
}
|
|
32
145
|
export declare const MessengerServiceClient: {
|
|
33
146
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): MessengerServiceClient;
|