@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.
@@ -0,0 +1,147 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts"
2
+ // @generated from file integration.proto (package integration.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
6
+ import { 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";
9
+ import type { Message } from "@bufbuild/protobuf";
10
+
11
+ /**
12
+ * Describes the file integration.proto.
13
+ */
14
+ export const file_integration: GenFile = /*@__PURE__*/
15
+ fileDesc("ChFpbnRlZ3JhdGlvbi5wcm90bxIOaW50ZWdyYXRpb24udjEiKQoWR2V0SW50ZWdyYXRpb25zUmVxdWVzdBIPCgd1c2VyX2lkGAEgASgFIvEBCgtJbnRlZ3JhdGlvbhIKCgJpZBgBIAEoBRIzCgRtZXRhGAIgAygLMiUuaW50ZWdyYXRpb24udjEuSW50ZWdyYXRpb24uTWV0YUVudHJ5EhEKCW1lc3NlbmdlchgDIAEoCRIUCgxtZXNzZW5nZXJfaWQYBCABKAkSDwoHdXNlcl9pZBgFIAEoBRISCgpjcmVhdGVkX2F0GAYgASgFEhIKCnVwZGF0ZWRfYXQYByABKAUSEgoKZGVsZXRlZF9hdBgIIAEoBRorCglNZXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJMChdHZXRJbnRlZ3JhdGlvbnNSZXNwb25zZRIxCgxpbnRlZ3JhdGlvbnMYASADKAsyGy5pbnRlZ3JhdGlvbi52MS5JbnRlZ3JhdGlvbiJDChhSZW1vdmVJbnRlZ3JhdGlvblJlcXVlc3QSFgoOaW50ZWdyYXRpb25faWQYASABKAUSDwoHdXNlcl9pZBgCIAEoBTLNAQoQTWVzc2VuZ2VyU2VydmljZRJiCg9HZXRJbnRlZ3JhdGlvbnMSJi5pbnRlZ3JhdGlvbi52MS5HZXRJbnRlZ3JhdGlvbnNSZXF1ZXN0GicuaW50ZWdyYXRpb24udjEuR2V0SW50ZWdyYXRpb25zUmVzcG9uc2USVQoRUmVtb3ZlSW50ZWdyYXRpb24SKC5pbnRlZ3JhdGlvbi52MS5SZW1vdmVJbnRlZ3JhdGlvblJlcXVlc3QaFi5nb29nbGUucHJvdG9idWYuRW1wdHliBnByb3RvMw", [file_google_protobuf_empty]);
16
+
17
+ /**
18
+ * @generated from message integration.v1.GetIntegrationsRequest
19
+ */
20
+ export type GetIntegrationsRequest = Message<"integration.v1.GetIntegrationsRequest"> & {
21
+ /**
22
+ * @generated from field: int32 user_id = 1;
23
+ */
24
+ userId: number;
25
+ };
26
+
27
+ /**
28
+ * Describes the message integration.v1.GetIntegrationsRequest.
29
+ * Use `create(GetIntegrationsRequestSchema)` to create a new message.
30
+ */
31
+ export const GetIntegrationsRequestSchema: GenMessage<GetIntegrationsRequest> = /*@__PURE__*/
32
+ messageDesc(file_integration, 0);
33
+
34
+ /**
35
+ * @generated from message integration.v1.Integration
36
+ */
37
+ export type Integration = Message<"integration.v1.Integration"> & {
38
+ /**
39
+ * @generated from field: int32 id = 1;
40
+ */
41
+ id: number;
42
+
43
+ /**
44
+ * @generated from field: map<string, string> meta = 2;
45
+ */
46
+ meta: { [key: string]: string };
47
+
48
+ /**
49
+ * @generated from field: string messenger = 3;
50
+ */
51
+ messenger: string;
52
+
53
+ /**
54
+ * @generated from field: string messenger_id = 4;
55
+ */
56
+ messengerId: string;
57
+
58
+ /**
59
+ * @generated from field: int32 user_id = 5;
60
+ */
61
+ userId: number;
62
+
63
+ /**
64
+ * @generated from field: int32 created_at = 6;
65
+ */
66
+ createdAt: number;
67
+
68
+ /**
69
+ * @generated from field: int32 updated_at = 7;
70
+ */
71
+ updatedAt: number;
72
+
73
+ /**
74
+ * @generated from field: int32 deleted_at = 8;
75
+ */
76
+ deletedAt: number;
77
+ };
78
+
79
+ /**
80
+ * Describes the message integration.v1.Integration.
81
+ * Use `create(IntegrationSchema)` to create a new message.
82
+ */
83
+ export const IntegrationSchema: GenMessage<Integration> = /*@__PURE__*/
84
+ messageDesc(file_integration, 1);
85
+
86
+ /**
87
+ * @generated from message integration.v1.GetIntegrationsResponse
88
+ */
89
+ export type GetIntegrationsResponse = Message<"integration.v1.GetIntegrationsResponse"> & {
90
+ /**
91
+ * @generated from field: repeated integration.v1.Integration integrations = 1;
92
+ */
93
+ integrations: Integration[];
94
+ };
95
+
96
+ /**
97
+ * Describes the message integration.v1.GetIntegrationsResponse.
98
+ * Use `create(GetIntegrationsResponseSchema)` to create a new message.
99
+ */
100
+ export const GetIntegrationsResponseSchema: GenMessage<GetIntegrationsResponse> = /*@__PURE__*/
101
+ messageDesc(file_integration, 2);
102
+
103
+ /**
104
+ * @generated from message integration.v1.RemoveIntegrationRequest
105
+ */
106
+ export type RemoveIntegrationRequest = Message<"integration.v1.RemoveIntegrationRequest"> & {
107
+ /**
108
+ * @generated from field: int32 integration_id = 1;
109
+ */
110
+ integrationId: number;
111
+
112
+ /**
113
+ * @generated from field: int32 user_id = 2;
114
+ */
115
+ userId: number;
116
+ };
117
+
118
+ /**
119
+ * Describes the message integration.v1.RemoveIntegrationRequest.
120
+ * Use `create(RemoveIntegrationRequestSchema)` to create a new message.
121
+ */
122
+ export const RemoveIntegrationRequestSchema: GenMessage<RemoveIntegrationRequest> = /*@__PURE__*/
123
+ messageDesc(file_integration, 3);
124
+
125
+ /**
126
+ * @generated from service integration.v1.MessengerService
127
+ */
128
+ export const MessengerService: GenService<{
129
+ /**
130
+ * @generated from rpc integration.v1.MessengerService.GetIntegrations
131
+ */
132
+ getIntegrations: {
133
+ methodKind: "unary";
134
+ input: typeof GetIntegrationsRequestSchema;
135
+ output: typeof GetIntegrationsResponseSchema;
136
+ },
137
+ /**
138
+ * @generated from rpc integration.v1.MessengerService.RemoveIntegration
139
+ */
140
+ removeIntegration: {
141
+ methodKind: "unary";
142
+ input: typeof RemoveIntegrationRequestSchema;
143
+ output: typeof EmptySchema;
144
+ },
145
+ }> = /*@__PURE__*/
146
+ serviceDesc(file_integration, 0);
147
+
@@ -4,15 +4,13 @@
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";
9
7
  import type { Message } from "@bufbuild/protobuf";
10
8
 
11
9
  /**
12
10
  * Describes the file messenger.proto.
13
11
  */
14
12
  export const file_messenger: GenFile = /*@__PURE__*/
15
- fileDesc("Cg9tZXNzZW5nZXIucHJvdG8SDG1lc3Nlbmdlci52MSIuChtHZW5lcmF0ZVRlbGVncmFtTGlua1JlcXVlc3QSDwoHdXNlcl9pZBgBIAEoBSIsChxHZW5lcmF0ZVRlbGVncmFtTGlua1Jlc3BvbnNlEgwKBGxpbmsYASABKAkiMgohTGlua1RlbGVncmFtQWNjb3VudFJlcXVlc3RQYXlsb2FkEg0KBXRva2VuGAEgASgJIm4KIkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZVBheWxvYWQSNwoGc3RhdHVzGAEgASgOMicubWVzc2VuZ2VyLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRTdGF0dXMSDwoHbWVzc2FnZRgCIAEoCSLOAQoMVGVsZWdyYW1NZXRhEhEKCXRpbWVzdGFtcBgBIAEoAxIWCg5jb3JyZWxhdGlvbl9pZBgCIAEoCRIYChB0ZWxlZ3JhbV91c2VyX2lkGAMgASgDEg8KB2NoYXRfaWQYBCABKAMSOAoHaGVhZGVycxgFIAMoCzInLm1lc3Nlbmdlci52MS5UZWxlZ3JhbU1ldGEuSGV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yLnYxLkxpbmtUZWxlZ3JhbUFjY291bnRSZXNwb25zZWIGcHJvdG8z");
16
14
 
17
15
  /**
18
16
  * @generated from message messenger.v1.GenerateTelegramLinkRequest
@@ -168,109 +166,6 @@ export type LinkTelegramAccountResponse = Message<"messenger.v1.LinkTelegramAcco
168
166
  export const LinkTelegramAccountResponseSchema: GenMessage<LinkTelegramAccountResponse> = /*@__PURE__*/
169
167
  messageDesc(file_messenger, 6);
170
168
 
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
-
274
169
  /**
275
170
  * @generated from enum messenger.v1.LinkTelegramAccountStatus
276
171
  */
@@ -322,22 +217,6 @@ export const MessengerService: GenService<{
322
217
  input: typeof LinkTelegramAccountRequestSchema;
323
218
  output: typeof LinkTelegramAccountResponseSchema;
324
219
  },
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
- },
341
220
  }> = /*@__PURE__*/
342
221
  serviceDesc(file_messenger, 0);
343
222