@control_yourself/contracts 0.3.1 → 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 +36 -0
- package/dist/generated/messenger_pb.js +7 -2
- package/dist/generated/messenger_pb.js.map +1 -1
- package/dist/generated-grpc/messenger.d.ts +57 -0
- package/dist/generated-grpc/messenger.js +448 -1
- package/dist/generated-grpc/messenger.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/messenger_pb.ts +122 -1
- package/generated-grpc/messenger.ts +559 -0
- package/package.json +1 -1
- package/protos/messenger.proto +29 -1
|
@@ -4,13 +4,15 @@
|
|
|
4
4
|
|
|
5
5
|
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
6
6
|
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
7
|
+
import type { EmptySchema } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt";
|
|
7
9
|
import type { Message } from "@bufbuild/protobuf";
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Describes the file messenger.proto.
|
|
11
13
|
*/
|
|
12
14
|
export const file_messenger: GenFile = /*@__PURE__*/
|
|
13
|
-
fileDesc("
|
|
15
|
+
fileDesc("Cg9tZXNzZW5nZXIucHJvdG8SDG1lc3Nlbmdlci52MSIuChtHZW5lcmF0ZVRlbGVncmFtTGlua1JlcXVlc3QSDwoHdXNlcl9pZBgBIAEoBSIsChxHZW5lcmF0ZVRlbGVncmFtTGlua1Jlc3BvbnNlEgwKBGxpbmsYASABKAkiMgohTGlua1RlbGVncmFtQWNjb3VudFJlcXVlc3RQYXlsb2FkEg0KBXRva2VuGAEgASgJIm4KIkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZVBheWxvYWQSNwoGc3RhdHVzGAEgASgOMicubWV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a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJKChdHZXRJbnRlZ3JhdGlvbnNSZXNwb25zZRIvCgxpbnRlZ3JhdGlvbnMYASADKAsyGS5tZXNzZW5nZXIudjEuSW50ZWdyYXRpb24iJgoYUmVtb3ZlSW50ZWdyYXRpb25SZXF1ZXN0EgoKAmlkGAEgASgFKnMKGUxpbmtUZWxlZ3JhbUFjY291bnRTdGF0dXMSFgoSU1RBVFVTX1VOU1BFQ0lGSUVEEAASFAoQU1RBVFVTX0NPTVBMRVRFRBABEhUKEVNUQVRVU19QUk9DRVNTSU5HEAISEQoNU1RBVFVTX0ZBSUxFRBADMqIDChBNZXNzZW5nZXJTZXJ2aWNlEm0KFEdlbmVyYXRlVGVsZWdyYW1MaW5rEikubWVzc2VuZ2VyLnYxLkdlbmVyYXRlVGVsZWdyYW1MaW5rUmVxdWVzdBoqLm1lc3Nlbmdlci52MS5HZW5lcmF0ZVRlbGVncmFtTGlua1Jlc3BvbnNlEmoKE0xpbmtUZWxlZ3JhbUFjY291bnQSKC5tZXNzZW5nZXIudjEuTGlua1RlbGVncmFtQWNjb3VudFJlcXVlc3QaKS5tZXNzZW5nZXIudjEuTGlua1RlbGVncmFtQWNjb3VudFJlc3BvbnNlEl4KD0dldEludGVncmF0aW9ucxIkLm1lc3Nlbmdlci52MS5HZXRJbnRlZ3JhdGlvbnNSZXF1ZXN0GiUubWVzc2VuZ2VyLnYxLkdldEludGVncmF0aW9uc1Jlc3BvbnNlElMKEVJlbW92ZUludGVncmF0aW9uEiYubWVzc2VuZ2VyLnYxLlJlbW92ZUludGVncmF0aW9uUmVxdWVzdBoWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eWIGcHJvdG8z", [file_google_protobuf_empty]);
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* @generated from message messenger.v1.GenerateTelegramLinkRequest
|
|
@@ -166,6 +168,109 @@ export type LinkTelegramAccountResponse = Message<"messenger.v1.LinkTelegramAcco
|
|
|
166
168
|
export const LinkTelegramAccountResponseSchema: GenMessage<LinkTelegramAccountResponse> = /*@__PURE__*/
|
|
167
169
|
messageDesc(file_messenger, 6);
|
|
168
170
|
|
|
171
|
+
/**
|
|
172
|
+
* @generated from message messenger.v1.GetIntegrationsRequest
|
|
173
|
+
*/
|
|
174
|
+
export type GetIntegrationsRequest = Message<"messenger.v1.GetIntegrationsRequest"> & {
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: int32 user_id = 1;
|
|
177
|
+
*/
|
|
178
|
+
userId: number;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Describes the message messenger.v1.GetIntegrationsRequest.
|
|
183
|
+
* Use `create(GetIntegrationsRequestSchema)` to create a new message.
|
|
184
|
+
*/
|
|
185
|
+
export const GetIntegrationsRequestSchema: GenMessage<GetIntegrationsRequest> = /*@__PURE__*/
|
|
186
|
+
messageDesc(file_messenger, 7);
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @generated from message messenger.v1.Integration
|
|
190
|
+
*/
|
|
191
|
+
export type Integration = Message<"messenger.v1.Integration"> & {
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: int32 id = 1;
|
|
194
|
+
*/
|
|
195
|
+
id: number;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @generated from field: map<string, string> meta = 2;
|
|
199
|
+
*/
|
|
200
|
+
meta: { [key: string]: string };
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @generated from field: string messenger = 3;
|
|
204
|
+
*/
|
|
205
|
+
messenger: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @generated from field: string messenger_id = 4;
|
|
209
|
+
*/
|
|
210
|
+
messengerId: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @generated from field: int32 user_id = 5;
|
|
214
|
+
*/
|
|
215
|
+
userId: number;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @generated from field: int32 created_at = 6;
|
|
219
|
+
*/
|
|
220
|
+
createdAt: number;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from field: int32 updated_at = 7;
|
|
224
|
+
*/
|
|
225
|
+
updatedAt: number;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @generated from field: int32 deleted_at = 8;
|
|
229
|
+
*/
|
|
230
|
+
deletedAt: number;
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Describes the message messenger.v1.Integration.
|
|
235
|
+
* Use `create(IntegrationSchema)` to create a new message.
|
|
236
|
+
*/
|
|
237
|
+
export const IntegrationSchema: GenMessage<Integration> = /*@__PURE__*/
|
|
238
|
+
messageDesc(file_messenger, 8);
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @generated from message messenger.v1.GetIntegrationsResponse
|
|
242
|
+
*/
|
|
243
|
+
export type GetIntegrationsResponse = Message<"messenger.v1.GetIntegrationsResponse"> & {
|
|
244
|
+
/**
|
|
245
|
+
* @generated from field: repeated messenger.v1.Integration integrations = 1;
|
|
246
|
+
*/
|
|
247
|
+
integrations: Integration[];
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Describes the message messenger.v1.GetIntegrationsResponse.
|
|
252
|
+
* Use `create(GetIntegrationsResponseSchema)` to create a new message.
|
|
253
|
+
*/
|
|
254
|
+
export const GetIntegrationsResponseSchema: GenMessage<GetIntegrationsResponse> = /*@__PURE__*/
|
|
255
|
+
messageDesc(file_messenger, 9);
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @generated from message messenger.v1.RemoveIntegrationRequest
|
|
259
|
+
*/
|
|
260
|
+
export type RemoveIntegrationRequest = Message<"messenger.v1.RemoveIntegrationRequest"> & {
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: int32 id = 1;
|
|
263
|
+
*/
|
|
264
|
+
id: number;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Describes the message messenger.v1.RemoveIntegrationRequest.
|
|
269
|
+
* Use `create(RemoveIntegrationRequestSchema)` to create a new message.
|
|
270
|
+
*/
|
|
271
|
+
export const RemoveIntegrationRequestSchema: GenMessage<RemoveIntegrationRequest> = /*@__PURE__*/
|
|
272
|
+
messageDesc(file_messenger, 10);
|
|
273
|
+
|
|
169
274
|
/**
|
|
170
275
|
* @generated from enum messenger.v1.LinkTelegramAccountStatus
|
|
171
276
|
*/
|
|
@@ -217,6 +322,22 @@ export const MessengerService: GenService<{
|
|
|
217
322
|
input: typeof LinkTelegramAccountRequestSchema;
|
|
218
323
|
output: typeof LinkTelegramAccountResponseSchema;
|
|
219
324
|
},
|
|
325
|
+
/**
|
|
326
|
+
* @generated from rpc messenger.v1.MessengerService.GetIntegrations
|
|
327
|
+
*/
|
|
328
|
+
getIntegrations: {
|
|
329
|
+
methodKind: "unary";
|
|
330
|
+
input: typeof GetIntegrationsRequestSchema;
|
|
331
|
+
output: typeof GetIntegrationsResponseSchema;
|
|
332
|
+
},
|
|
333
|
+
/**
|
|
334
|
+
* @generated from rpc messenger.v1.MessengerService.RemoveIntegration
|
|
335
|
+
*/
|
|
336
|
+
removeIntegration: {
|
|
337
|
+
methodKind: "unary";
|
|
338
|
+
input: typeof RemoveIntegrationRequestSchema;
|
|
339
|
+
output: typeof EmptySchema;
|
|
340
|
+
},
|
|
220
341
|
}> = /*@__PURE__*/
|
|
221
342
|
serviceDesc(file_messenger, 0);
|
|
222
343
|
|