@control_yourself/contracts 0.3.3 → 0.3.5

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,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 IntegrationService: 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.IntegrationService = 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)("ChFpbnRlZ3JhdGlvbi5wcm90bxIOaW50ZWdyYXRpb24udjEiKQoWR2V0SW50ZWdyYXRpb25zUmVxdWVzdBIPCgd1c2VyX2lkGAEgASgFIvEBCgtJbnRlZ3JhdGlvbhIKCgJpZBgBIAEoBRIzCgRtZXRhGAIgAygLMiUuaW50ZWdyYXRpb24udjEuSW50ZWdyYXRpb24uTWV0YUVudHJ5EhEKCW1lc3NlbmdlchgDIAEoCRIUCgxtZXNzZW5nZXJfaWQYBCABKAkSDwoHdXNlcl9pZBgFIAEoBRISCgpjcmVhdGVkX2F0GAYgASgFEhIKCnVwZGF0ZWRfYXQYByABKAUSEgoKZGVsZXRlZF9hdBgIIAEoBRorCglNZXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJMChdHZXRJbnRlZ3JhdGlvbnNSZXNwb25zZRIxCgxpbnRlZ3JhdGlvbnMYASADKAsyGy5pbnRlZ3JhdGlvbi52MS5JbnRlZ3JhdGlvbiJDChhSZW1vdmVJbnRlZ3JhdGlvblJlcXVlc3QSFgoOaW50ZWdyYXRpb25faWQYASABKAUSDwoHdXNlcl9pZBgCIAEoBTLPAQoSSW50ZWdyYXRpb25TZXJ2aWNlEmIKD0dldEludGVncmF0aW9ucxImLmludGVncmF0aW9uLnYxLkdldEludGVncmF0aW9uc1JlcXVlc3QaJy5pbnRlZ3JhdGlvbi52MS5HZXRJbnRlZ3JhdGlvbnNSZXNwb25zZRJVChFSZW1vdmVJbnRlZ3JhdGlvbhIoLmludGVncmF0aW9uLnYxLlJlbW92ZUludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eWIGcHJvdG8z", [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.IntegrationService = (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,s5BAAs5B,EAAE,CAAC,gCAA0B,CAAC,CAAC,CAAC;AAgBp7B,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,kBAAkB,GAkB7B,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,32 +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
- integrationId: number;
65
- userId: number;
66
- };
67
- export declare const RemoveIntegrationRequestSchema: GenMessage<RemoveIntegrationRequest>;
68
41
  export declare enum LinkTelegramAccountStatus {
69
42
  STATUS_UNSPECIFIED = 0,
70
43
  STATUS_COMPLETED = 1,
@@ -83,14 +56,4 @@ export declare const MessengerService: GenService<{
83
56
  input: typeof LinkTelegramAccountRequestSchema;
84
57
  output: typeof LinkTelegramAccountResponseSchema;
85
58
  };
86
- getIntegrations: {
87
- methodKind: "unary";
88
- input: typeof GetIntegrationsRequestSchema;
89
- output: typeof GetIntegrationsResponseSchema;
90
- };
91
- removeIntegration: {
92
- methodKind: "unary";
93
- input: typeof RemoveIntegrationRequestSchema;
94
- output: typeof EmptySchema;
95
- };
96
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.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;
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
- const wkt_1 = require("@bufbuild/protobuf/wkt");
6
- exports.file_messenger = (0, codegenv2_1.fileDesc)("Cg9tZXNzZW5nZXIucHJvdG8SDG1lc3Nlbmdlci52MSIuChtHZW5lcmF0ZVRlbGVncmFtTGlua1JlcXVlc3QSDwoHdXNlcl9pZBgBIAEoBSIsChxHZW5lcmF0ZVRlbGVncmFtTGlua1Jlc3BvbnNlEgwKBGxpbmsYASABKAkiMgohTGlua1RlbGVncmFtQWNjb3VudFJlcXVlc3RQYXlsb2FkEg0KBXRva2VuGAEgASgJIm4KIkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZVBheWxvYWQSNwoGc3RhdHVzGAEgASgOMicubWVzc2VuZ2VyLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRTdGF0dXMSDwoHbWVzc2FnZRgCIAEoCSLOAQoMVGVsZWdyYW1NZXRhEhEKCXRpbWVzdGFtcBgBIAEoAxIWCg5jb3JyZWxhdGlvbl9pZBgCIAEoCRIYChB0ZWxlZ3JhbV91c2VyX2lkGAMgASgDEg8KB2NoYXRfaWQYB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GVUZWxlZ3JhbUxpbmtSZXNwb25zZRJqChNMaW5rVGVsZWdyYW1BY2NvdW50EigubWVzc2VuZ2VyLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRSZXF1ZXN0GikubWVzc2VuZ2VyLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZWIGcHJvdG8z");
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;AAE5F,gDAAoE;AAMvD,QAAA,cAAc,GACzB,IAAA,oBAAQ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A,uBAAW,EAAC,sBAAc,EAAE,CAAC,CAAC,CAAC"}
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 IntegrationServiceService = typeof IntegrationServiceService;
37
+ export declare const IntegrationServiceService: {
38
+ readonly getIntegrations: {
39
+ readonly path: "/integration.v1.IntegrationService/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.IntegrationService/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 IntegrationServiceServer extends UntypedServiceImplementation {
58
+ getIntegrations: handleUnaryCall<GetIntegrationsRequest, GetIntegrationsResponse>;
59
+ removeIntegration: handleUnaryCall<RemoveIntegrationRequest, Empty>;
60
+ }
61
+ export interface IntegrationServiceClient 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 IntegrationServiceClient: {
70
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): IntegrationServiceClient;
71
+ service: typeof IntegrationServiceService;
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 {};