@control_yourself/contracts 0.3.2 → 0.3.4
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/integration_pb.d.ts +42 -0
- package/dist/generated/integration_pb.js +12 -0
- package/dist/generated/integration_pb.js.map +1 -0
- package/dist/generated/messenger_pb.d.ts +0 -36
- package/dist/generated/messenger_pb.js +2 -7
- package/dist/generated/messenger_pb.js.map +1 -1
- package/dist/generated-grpc/integration.d.ts +92 -0
- package/dist/generated-grpc/integration.js +488 -0
- package/dist/generated-grpc/integration.js.map +1 -0
- package/dist/generated-grpc/messenger.d.ts +0 -57
- package/dist/generated-grpc/messenger.js +1 -448
- package/dist/generated-grpc/messenger.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/integration_pb.ts +147 -0
- package/generated/messenger_pb.ts +1 -122
- package/generated-grpc/integration.ts +656 -0
- package/generated-grpc/messenger.ts +0 -559
- package/package.json +1 -1
- package/protos/integration.proto +33 -0
- package/protos/messenger.proto +1 -27
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
3
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
4
|
+
export declare const file_integration: GenFile;
|
|
5
|
+
export type GetIntegrationsRequest = Message<"integration.v1.GetIntegrationsRequest"> & {
|
|
6
|
+
userId: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const GetIntegrationsRequestSchema: GenMessage<GetIntegrationsRequest>;
|
|
9
|
+
export type Integration = Message<"integration.v1.Integration"> & {
|
|
10
|
+
id: number;
|
|
11
|
+
meta: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
messenger: string;
|
|
15
|
+
messengerId: string;
|
|
16
|
+
userId: number;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
deletedAt: number;
|
|
20
|
+
};
|
|
21
|
+
export declare const IntegrationSchema: GenMessage<Integration>;
|
|
22
|
+
export type GetIntegrationsResponse = Message<"integration.v1.GetIntegrationsResponse"> & {
|
|
23
|
+
integrations: Integration[];
|
|
24
|
+
};
|
|
25
|
+
export declare const GetIntegrationsResponseSchema: GenMessage<GetIntegrationsResponse>;
|
|
26
|
+
export type RemoveIntegrationRequest = Message<"integration.v1.RemoveIntegrationRequest"> & {
|
|
27
|
+
integrationId: number;
|
|
28
|
+
userId: number;
|
|
29
|
+
};
|
|
30
|
+
export declare const RemoveIntegrationRequestSchema: GenMessage<RemoveIntegrationRequest>;
|
|
31
|
+
export declare const MessengerService: GenService<{
|
|
32
|
+
getIntegrations: {
|
|
33
|
+
methodKind: "unary";
|
|
34
|
+
input: typeof GetIntegrationsRequestSchema;
|
|
35
|
+
output: typeof GetIntegrationsResponseSchema;
|
|
36
|
+
};
|
|
37
|
+
removeIntegration: {
|
|
38
|
+
methodKind: "unary";
|
|
39
|
+
input: typeof RemoveIntegrationRequestSchema;
|
|
40
|
+
output: typeof EmptySchema;
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MessengerService = exports.RemoveIntegrationRequestSchema = exports.GetIntegrationsResponseSchema = exports.IntegrationSchema = exports.GetIntegrationsRequestSchema = exports.file_integration = void 0;
|
|
4
|
+
const codegenv2_1 = require("@bufbuild/protobuf/codegenv2");
|
|
5
|
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
|
6
|
+
exports.file_integration = (0, codegenv2_1.fileDesc)("ChFpbnRlZ3JhdGlvbi5wcm90bxIOaW50ZWdyYXRpb24udjEiKQoWR2V0SW50ZWdyYXRpb25zUmVxdWVzdBIPCgd1c2VyX2lkGAEgASgFIvEBCgtJbnRlZ3JhdGlvbhIKCgJpZBgBIAEoBRIzCgRtZXRhGAIgAygLMiUuaW50ZWdyYXRpb24udjEuSW50ZWdyYXRpb24uTWV0YUVudHJ5EhEKCW1lc3NlbmdlchgDIAEoCRIUCgxtZXNzZW5nZXJfaWQYBCABKAkSDwoHdXNlcl9pZBgFIAEoBRISCgpjcmVhdGVkX2F0GAYgASgFEhIKCnVwZGF0ZWRfYXQYByABKAUSEgoKZGVsZXRlZF9hdBgIIAEoBRorCglNZXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJMChdHZXRJbnRlZ3JhdGlvbnNSZXNwb25zZRIxCgxpbnRlZ3JhdGlvbnMYASADKAsyGy5pbnRlZ3JhdGlvbi52MS5JbnRlZ3JhdGlvbiJDChhSZW1vdmVJbnRlZ3JhdGlvblJlcXVlc3QSFgoOaW50ZWdyYXRpb25faWQYASABKAUSDwoHdXNlcl9pZBgCIAEoBTLNAQoQTWVzc2VuZ2VyU2VydmljZRJiCg9HZXRJbnRlZ3JhdGlvbnMSJi5pbnRlZ3JhdGlvbi52MS5HZXRJbnRlZ3JhdGlvbnNSZXF1ZXN0GicuaW50ZWdyYXRpb24udjEuR2V0SW50ZWdyYXRpb25zUmVzcG9uc2USVQoRUmVtb3ZlSW50ZWdyYXRpb24SKC5pbnRlZ3JhdGlvbi52MS5SZW1vdmVJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHliBnByb3RvMw", [wkt_1.file_google_protobuf_empty]);
|
|
7
|
+
exports.GetIntegrationsRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_integration, 0);
|
|
8
|
+
exports.IntegrationSchema = (0, codegenv2_1.messageDesc)(exports.file_integration, 1);
|
|
9
|
+
exports.GetIntegrationsResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_integration, 2);
|
|
10
|
+
exports.RemoveIntegrationRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_integration, 3);
|
|
11
|
+
exports.MessengerService = (0, codegenv2_1.serviceDesc)(exports.file_integration, 0);
|
|
12
|
+
//# sourceMappingURL=integration_pb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integration_pb.js","sourceRoot":"/","sources":["generated/integration_pb.ts"],"names":[],"mappings":";;;AAKA,4DAAkF;AAElF,gDAAoE;AAMvD,QAAA,gBAAgB,GAC3B,IAAA,oBAAQ,EAAC,o5BAAo5B,EAAE,CAAC,gCAA0B,CAAC,CAAC,CAAC;AAgBl7B,QAAA,4BAA4B,GACvC,IAAA,uBAAW,EAAC,wBAAgB,EAAE,CAAC,CAAC,CAAC;AAmDtB,QAAA,iBAAiB,GAC5B,IAAA,uBAAW,EAAC,wBAAgB,EAAE,CAAC,CAAC,CAAC;AAgBtB,QAAA,6BAA6B,GACxC,IAAA,uBAAW,EAAC,wBAAgB,EAAE,CAAC,CAAC,CAAC;AAqBtB,QAAA,8BAA8B,GACzC,IAAA,uBAAW,EAAC,wBAAgB,EAAE,CAAC,CAAC,CAAC;AAKtB,QAAA,gBAAgB,GAkB3B,IAAA,uBAAW,EAAC,wBAAgB,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
-
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
3
2
|
import type { Message } from "@bufbuild/protobuf";
|
|
4
3
|
export declare const file_messenger: GenFile;
|
|
5
4
|
export type GenerateTelegramLinkRequest = Message<"messenger.v1.GenerateTelegramLinkRequest"> & {
|
|
@@ -39,31 +38,6 @@ export type LinkTelegramAccountResponse = Message<"messenger.v1.LinkTelegramAcco
|
|
|
39
38
|
payload?: LinkTelegramAccountResponsePayload;
|
|
40
39
|
};
|
|
41
40
|
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
41
|
export declare enum LinkTelegramAccountStatus {
|
|
68
42
|
STATUS_UNSPECIFIED = 0,
|
|
69
43
|
STATUS_COMPLETED = 1,
|
|
@@ -82,14 +56,4 @@ export declare const MessengerService: GenService<{
|
|
|
82
56
|
input: typeof LinkTelegramAccountRequestSchema;
|
|
83
57
|
output: typeof LinkTelegramAccountResponseSchema;
|
|
84
58
|
};
|
|
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
|
-
};
|
|
95
59
|
}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MessengerService = exports.LinkTelegramAccountStatusSchema = exports.LinkTelegramAccountStatus = exports.
|
|
3
|
+
exports.MessengerService = exports.LinkTelegramAccountStatusSchema = exports.LinkTelegramAccountStatus = 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
|
-
|
|
6
|
-
exports.file_messenger = (0, codegenv2_1.fileDesc)("Cg9tZXNzZW5nZXIucHJvdG8SDG1lc3Nlbmdlci52MSIuChtHZW5lcmF0ZVRlbGVncmFtTGlua1JlcXVlc3QSDwoHdXNlcl9pZBgBIAEoBSIsChxHZW5lcmF0ZVRlbGVncmFtTGlua1Jlc3BvbnNlEgwKBGxpbmsYASABKAkiMgohTGlua1RlbGVncmFtQWNjb3VudFJlcXVlc3RQYXlsb2FkEg0KBXRva2VuGAEgASgJIm4KIkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZVBheWxvYWQSNwoGc3RhdHVzGAEgASgOMicubWVzc2VuZ2VyLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRTdGF0dXMSDwoHbWVzc2FnZRgCIAEoCSLOAQoMVGVsZWdyYW1NZXRhEhEKCXRpbWVzdGFtcBgBIAEoAxIWCg5jb3JyZWxhdGlvbl9pZBgCIAEoCRIYChB0ZWxlZ3JhbV91c2VyX2lkGAMgASgDEg8KB2NoYXRfaWQYBCABKAMSOAoHaGVhZGVycxgFIAMoCzInLm1lc3Nlbmdlci52MS5UZWxlZ3JhbU1ldGEuSGVhZGVyc0VudHJ5Gi4KDEhlYWR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c2VuZ2VyLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZWIGcHJvdG8z");
|
|
7
6
|
exports.GenerateTelegramLinkRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 0);
|
|
8
7
|
exports.GenerateTelegramLinkResponseSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 1);
|
|
9
8
|
exports.LinkTelegramAccountRequestPayloadSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 2);
|
|
@@ -11,10 +10,6 @@ exports.LinkTelegramAccountResponsePayloadSchema = (0, codegenv2_1.messageDesc)(
|
|
|
11
10
|
exports.TelegramMetaSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 4);
|
|
12
11
|
exports.LinkTelegramAccountRequestSchema = (0, codegenv2_1.messageDesc)(exports.file_messenger, 5);
|
|
13
12
|
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
13
|
var LinkTelegramAccountStatus;
|
|
19
14
|
(function (LinkTelegramAccountStatus) {
|
|
20
15
|
LinkTelegramAccountStatus[LinkTelegramAccountStatus["STATUS_UNSPECIFIED"] = 0] = "STATUS_UNSPECIFIED";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messenger_pb.js","sourceRoot":"/","sources":["generated/messenger_pb.ts"],"names":[],"mappings":";;;AAKA,4DAA4F;
|
|
1
|
+
{"version":3,"file":"messenger_pb.js","sourceRoot":"/","sources":["generated/messenger_pb.ts"],"names":[],"mappings":";;;AAKA,4DAA4F;AAM/E,QAAA,cAAc,GACzB,IAAA,oBAAQ,EAAC,s/CAAs/C,CAAC,CAAC;AAgBt/C,QAAA,iCAAiC,GAC5C,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAgBpB,QAAA,kCAAkC,GAC7C,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAgBpB,QAAA,uCAAuC,GAClD,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAqBpB,QAAA,wCAAwC,GACnD,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAoCpB,QAAA,kBAAkB,GAC7B,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAqBpB,QAAA,gCAAgC,GAC3C,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAqBpB,QAAA,iCAAiC,GAC5C,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAKjC,IAAY,yBAoBX;AApBD,WAAY,yBAAyB;IAInC,qGAAsB,CAAA;IAKtB,iGAAoB,CAAA;IAKpB,mGAAqB,CAAA;IAKrB,2FAAiB,CAAA;AACnB,CAAC,EApBW,yBAAyB,yCAAzB,yBAAyB,QAoBpC;AAKY,QAAA,+BAA+B,GAC1C,IAAA,oBAAQ,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC;AAKjB,QAAA,gBAAgB,GAkB3B,IAAA,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
import { Empty } from "./google/protobuf/empty";
|
|
4
|
+
export declare const protobufPackage = "integration.v1";
|
|
5
|
+
export interface GetIntegrationsRequest {
|
|
6
|
+
userId: number;
|
|
7
|
+
}
|
|
8
|
+
export interface Integration {
|
|
9
|
+
id: number;
|
|
10
|
+
meta: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
messenger: string;
|
|
14
|
+
messengerId: string;
|
|
15
|
+
userId: number;
|
|
16
|
+
createdAt: number;
|
|
17
|
+
updatedAt: number;
|
|
18
|
+
deletedAt: number;
|
|
19
|
+
}
|
|
20
|
+
export interface Integration_MetaEntry {
|
|
21
|
+
key: string;
|
|
22
|
+
value: string;
|
|
23
|
+
}
|
|
24
|
+
export interface GetIntegrationsResponse {
|
|
25
|
+
integrations: Integration[];
|
|
26
|
+
}
|
|
27
|
+
export interface RemoveIntegrationRequest {
|
|
28
|
+
integrationId: number;
|
|
29
|
+
userId: number;
|
|
30
|
+
}
|
|
31
|
+
export declare const GetIntegrationsRequest: MessageFns<GetIntegrationsRequest>;
|
|
32
|
+
export declare const Integration: MessageFns<Integration>;
|
|
33
|
+
export declare const Integration_MetaEntry: MessageFns<Integration_MetaEntry>;
|
|
34
|
+
export declare const GetIntegrationsResponse: MessageFns<GetIntegrationsResponse>;
|
|
35
|
+
export declare const RemoveIntegrationRequest: MessageFns<RemoveIntegrationRequest>;
|
|
36
|
+
export type MessengerServiceService = typeof MessengerServiceService;
|
|
37
|
+
export declare const MessengerServiceService: {
|
|
38
|
+
readonly getIntegrations: {
|
|
39
|
+
readonly path: "/integration.v1.MessengerService/GetIntegrations";
|
|
40
|
+
readonly requestStream: false;
|
|
41
|
+
readonly responseStream: false;
|
|
42
|
+
readonly requestSerialize: (value: GetIntegrationsRequest) => Buffer;
|
|
43
|
+
readonly requestDeserialize: (value: Buffer) => GetIntegrationsRequest;
|
|
44
|
+
readonly responseSerialize: (value: GetIntegrationsResponse) => Buffer;
|
|
45
|
+
readonly responseDeserialize: (value: Buffer) => GetIntegrationsResponse;
|
|
46
|
+
};
|
|
47
|
+
readonly removeIntegration: {
|
|
48
|
+
readonly path: "/integration.v1.MessengerService/RemoveIntegration";
|
|
49
|
+
readonly requestStream: false;
|
|
50
|
+
readonly responseStream: false;
|
|
51
|
+
readonly requestSerialize: (value: RemoveIntegrationRequest) => Buffer;
|
|
52
|
+
readonly requestDeserialize: (value: Buffer) => RemoveIntegrationRequest;
|
|
53
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
54
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
export interface MessengerServiceServer extends UntypedServiceImplementation {
|
|
58
|
+
getIntegrations: handleUnaryCall<GetIntegrationsRequest, GetIntegrationsResponse>;
|
|
59
|
+
removeIntegration: handleUnaryCall<RemoveIntegrationRequest, Empty>;
|
|
60
|
+
}
|
|
61
|
+
export interface MessengerServiceClient extends Client {
|
|
62
|
+
getIntegrations(request: GetIntegrationsRequest, callback: (error: ServiceError | null, response: GetIntegrationsResponse) => void): ClientUnaryCall;
|
|
63
|
+
getIntegrations(request: GetIntegrationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetIntegrationsResponse) => void): ClientUnaryCall;
|
|
64
|
+
getIntegrations(request: GetIntegrationsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetIntegrationsResponse) => void): ClientUnaryCall;
|
|
65
|
+
removeIntegration(request: RemoveIntegrationRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
66
|
+
removeIntegration(request: RemoveIntegrationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
67
|
+
removeIntegration(request: RemoveIntegrationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
68
|
+
}
|
|
69
|
+
export declare const MessengerServiceClient: {
|
|
70
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): MessengerServiceClient;
|
|
71
|
+
service: typeof MessengerServiceService;
|
|
72
|
+
serviceName: string;
|
|
73
|
+
};
|
|
74
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
75
|
+
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 {} ? {
|
|
76
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
77
|
+
} : Partial<T>;
|
|
78
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
79
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
80
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
81
|
+
} & {
|
|
82
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
83
|
+
};
|
|
84
|
+
export interface MessageFns<T> {
|
|
85
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
86
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
87
|
+
fromJSON(object: any): T;
|
|
88
|
+
toJSON(message: T): unknown;
|
|
89
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
90
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
91
|
+
}
|
|
92
|
+
export {};
|