@control_yourself/contracts 0.3.1 → 0.3.3
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 +37 -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 +58 -0
- package/dist/generated-grpc/messenger.js +473 -1
- package/dist/generated-grpc/messenger.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/messenger_pb.ts +127 -1
- package/generated-grpc/messenger.ts +586 -0
- package/package.json +1 -1
- package/protos/messenger.proto +30 -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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a2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJKChdHZXRJbnRlZ3JhdGlvbnNSZXNwb25zZRIvCgxpbnRlZ3JhdGlvbnMYASADKAsyGS5tZXNzZW5nZXIudjEuSW50ZWdyYXRpb24iQwoYUmVtb3ZlSW50ZWdyYXRpb25SZXF1ZXN0EhYKDmludGVncmF0aW9uX2lkGAEgASgFEg8KB3VzZXJfaWQYAiABKAUqcwoZTGlua1RlbGVncmFtQWNjb3VudFN0YXR1cxIWChJTVEFUVVNfVU5TUEVDSUZJRUQQABIUChBTVEFUVVNfQ09NUExFVEVEEAESFQoRU1RBVFVTX1BST0NFU1NJTkcQAhIRCg1TVEFUVVNfRkFJTEVEEAMyogMKEE1lc3NlbmdlclNlcnZpY2USbQoUR2VuZXJhdGVUZWxlZ3JhbUxpbmsSKS5tZXNzZW5nZXIudjEuR2VuZXJhdGVUZWxlZ3JhbUxpbmtSZXF1ZXN0GioubWVzc2VuZ2VyLnYxLkdlbmVyYXRlVGVsZWdyYW1MaW5rUmVzcG9uc2USagoTTGlua1RlbGVncmFtQWNjb3VudBIoLm1lc3Nlbmdlci52MS5MaW5rVGVsZWdyYW1BY2NvdW50UmVxdWVzdBopLm1lc3Nlbmdlci52MS5MaW5rVGVsZWdyYW1BY2NvdW50UmVzcG9uc2USXgoPR2V0SW50ZWdyYXRpb25zEiQubWVzc2VuZ2VyLnYxLkdldEludGVncmF0aW9uc1JlcXVlc3QaJS5tZXNzZW5nZXIudjEuR2V0SW50ZWdyYXRpb25zUmVzcG9uc2USUwoRUmVtb3ZlSW50ZWdyYXRpb24SJi5tZXNzZW5nZXIudjEuUmVtb3ZlSW50ZWdyYXRpb25SZXF1ZXN0GhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5YgZwcm90bzM", [file_google_protobuf_empty]);
|
|
14
16
|
|
|
15
17
|
/**
|
|
16
18
|
* @generated from message messenger.v1.GenerateTelegramLinkRequest
|
|
@@ -166,6 +168,114 @@ 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 integration_id = 1;
|
|
263
|
+
*/
|
|
264
|
+
integrationId: number;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* @generated from field: int32 user_id = 2;
|
|
268
|
+
*/
|
|
269
|
+
userId: number;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Describes the message messenger.v1.RemoveIntegrationRequest.
|
|
274
|
+
* Use `create(RemoveIntegrationRequestSchema)` to create a new message.
|
|
275
|
+
*/
|
|
276
|
+
export const RemoveIntegrationRequestSchema: GenMessage<RemoveIntegrationRequest> = /*@__PURE__*/
|
|
277
|
+
messageDesc(file_messenger, 10);
|
|
278
|
+
|
|
169
279
|
/**
|
|
170
280
|
* @generated from enum messenger.v1.LinkTelegramAccountStatus
|
|
171
281
|
*/
|
|
@@ -217,6 +327,22 @@ export const MessengerService: GenService<{
|
|
|
217
327
|
input: typeof LinkTelegramAccountRequestSchema;
|
|
218
328
|
output: typeof LinkTelegramAccountResponseSchema;
|
|
219
329
|
},
|
|
330
|
+
/**
|
|
331
|
+
* @generated from rpc messenger.v1.MessengerService.GetIntegrations
|
|
332
|
+
*/
|
|
333
|
+
getIntegrations: {
|
|
334
|
+
methodKind: "unary";
|
|
335
|
+
input: typeof GetIntegrationsRequestSchema;
|
|
336
|
+
output: typeof GetIntegrationsResponseSchema;
|
|
337
|
+
},
|
|
338
|
+
/**
|
|
339
|
+
* @generated from rpc messenger.v1.MessengerService.RemoveIntegration
|
|
340
|
+
*/
|
|
341
|
+
removeIntegration: {
|
|
342
|
+
methodKind: "unary";
|
|
343
|
+
input: typeof RemoveIntegrationRequestSchema;
|
|
344
|
+
output: typeof EmptySchema;
|
|
345
|
+
},
|
|
220
346
|
}> = /*@__PURE__*/
|
|
221
347
|
serviceDesc(file_messenger, 0);
|
|
222
348
|
|