create-svc 0.1.10 → 0.1.12

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.
Files changed (171) hide show
  1. package/README.md +51 -47
  2. package/index.ts +2 -2
  3. package/package.json +10 -9
  4. package/src/cli.test.ts +28 -10
  5. package/src/cli.ts +196 -33
  6. package/src/git-bootstrap.test.ts +40 -0
  7. package/src/git-bootstrap.ts +110 -0
  8. package/src/naming.test.ts +1 -0
  9. package/src/naming.ts +23 -0
  10. package/src/post-scaffold.test.ts +19 -0
  11. package/src/post-scaffold.ts +17 -4
  12. package/src/profiles.ts +2 -5
  13. package/src/scaffold.test.ts +232 -41
  14. package/src/scaffold.ts +81 -36
  15. package/src/service.test.ts +30 -0
  16. package/src/service.ts +65 -0
  17. package/src/vault.test.ts +61 -1
  18. package/src/vault.ts +77 -15
  19. package/templates/shared/.github/workflows/ci.yml +2 -1
  20. package/templates/shared/.github/workflows/deploy.yml +2 -0
  21. package/templates/shared/README.md +124 -47
  22. package/templates/shared/grafana/alerts.yaml +54 -0
  23. package/templates/shared/grafana/waitlist-dashboard.json +63 -0
  24. package/templates/shared/scripts/authctl.ts +231 -0
  25. package/templates/shared/scripts/cloudrun/bootstrap.ts +14 -5
  26. package/templates/shared/scripts/cloudrun/cleanup.ts +64 -4
  27. package/templates/shared/scripts/cloudrun/cli.ts +329 -7
  28. package/templates/shared/scripts/cloudrun/config.ts +11 -4
  29. package/templates/shared/scripts/cloudrun/deploy.ts +0 -4
  30. package/templates/shared/scripts/cloudrun/lib.ts +174 -41
  31. package/templates/shared/scripts/cloudrun/neon.ts +45 -0
  32. package/templates/shared/scripts/dev.ts +22 -0
  33. package/templates/shared/scripts/ensure-local-db.ts +3 -0
  34. package/templates/shared/scripts/local-docker.ts +63 -0
  35. package/templates/shared/scripts/local-env.ts +27 -0
  36. package/templates/shared/scripts/seed.ts +73 -0
  37. package/templates/shared/scripts/wait-for-db.ts +32 -0
  38. package/templates/shared/service.config.ts +59 -0
  39. package/templates/shared/service.yaml +24 -44
  40. package/templates/targets/workers/.github/workflows/ci.yml +19 -0
  41. package/templates/targets/workers/.github/workflows/deploy.yml +19 -0
  42. package/templates/targets/workers/Makefile +33 -0
  43. package/templates/targets/workers/README.md +75 -0
  44. package/templates/targets/workers/package.json +35 -0
  45. package/templates/targets/workers/scripts/workers/cli.ts +402 -0
  46. package/templates/targets/workers/src/auth.ts +178 -0
  47. package/templates/targets/workers/src/index.ts +198 -0
  48. package/templates/targets/workers/src/storage.ts +370 -0
  49. package/templates/targets/workers/test/app.test.ts +108 -0
  50. package/templates/targets/workers/tsconfig.json +11 -0
  51. package/templates/targets/workers/wrangler.toml +24 -0
  52. package/templates/variants/bun-connectrpc/Makefile +14 -8
  53. package/templates/variants/bun-connectrpc/gen/protos/waitlist/v1/waitlist_pb.ts +424 -0
  54. package/templates/variants/bun-connectrpc/migrations/0000_init.sql +12 -55
  55. package/templates/variants/bun-connectrpc/package.json +12 -5
  56. package/templates/variants/bun-connectrpc/protos/waitlist/v1/waitlist.proto +91 -0
  57. package/templates/variants/bun-connectrpc/scripts/codegen.ts +1 -1
  58. package/templates/variants/bun-connectrpc/scripts/migrate.ts +4 -1
  59. package/templates/variants/bun-connectrpc/src/auth.ts +200 -0
  60. package/templates/variants/bun-connectrpc/src/db/repository.ts +67 -420
  61. package/templates/variants/bun-connectrpc/src/db/schema.ts +15 -64
  62. package/templates/variants/bun-connectrpc/src/index.ts +76 -176
  63. package/templates/variants/bun-connectrpc/src/temporal/activities.ts +14 -0
  64. package/templates/variants/bun-connectrpc/src/temporal/worker.ts +38 -0
  65. package/templates/variants/bun-connectrpc/src/temporal/workflows.ts +10 -0
  66. package/templates/variants/bun-connectrpc/src/waitlist/service.ts +172 -0
  67. package/templates/variants/bun-connectrpc/src/waitlist/types.ts +45 -0
  68. package/templates/variants/bun-connectrpc/test/app.test.ts +4 -4
  69. package/templates/variants/bun-connectrpc/test/waitlist.integration.test.ts +71 -0
  70. package/templates/variants/bun-hono/Makefile +14 -8
  71. package/templates/variants/bun-hono/migrations/0000_init.sql +12 -55
  72. package/templates/variants/bun-hono/package.json +12 -5
  73. package/templates/variants/bun-hono/scripts/migrate.ts +4 -1
  74. package/templates/variants/bun-hono/src/auth.ts +181 -0
  75. package/templates/variants/bun-hono/src/db/repository.ts +68 -421
  76. package/templates/variants/bun-hono/src/db/schema.ts +15 -64
  77. package/templates/variants/bun-hono/src/index.ts +65 -180
  78. package/templates/variants/bun-hono/src/temporal/activities.ts +14 -0
  79. package/templates/variants/bun-hono/src/temporal/worker.ts +38 -0
  80. package/templates/variants/bun-hono/src/temporal/workflows.ts +10 -0
  81. package/templates/variants/bun-hono/src/waitlist/service.ts +166 -0
  82. package/templates/variants/bun-hono/src/waitlist/types.ts +50 -0
  83. package/templates/variants/bun-hono/test/app.test.ts +72 -41
  84. package/templates/variants/bun-hono/test/waitlist.integration.test.ts +102 -0
  85. package/templates/variants/go-chi/Makefile +27 -11
  86. package/templates/variants/go-chi/atlas.hcl +8 -0
  87. package/templates/variants/go-chi/cmd/server/main.go +21 -10
  88. package/templates/variants/go-chi/go.mod +1 -3
  89. package/templates/variants/go-chi/internal/app/service.go +202 -685
  90. package/templates/variants/go-chi/internal/auth/middleware.go +289 -0
  91. package/templates/variants/go-chi/internal/auth/middleware_test.go +38 -0
  92. package/templates/variants/go-chi/internal/config/config.go +27 -11
  93. package/templates/variants/go-chi/internal/httpapi/routes.go +78 -157
  94. package/templates/variants/go-chi/internal/httpapi/waitlist_integration_test.go +199 -0
  95. package/templates/variants/go-chi/internal/temporal/activities.go +27 -0
  96. package/templates/variants/go-chi/internal/temporal/worker.go +42 -0
  97. package/templates/variants/go-chi/internal/temporal/workflows.go +18 -0
  98. package/templates/variants/go-chi/migrations/0000_init.sql +12 -55
  99. package/templates/variants/go-chi/migrations/atlas.sum +2 -0
  100. package/templates/variants/go-chi/package.json +7 -1
  101. package/templates/variants/go-connectrpc/Makefile +26 -9
  102. package/templates/variants/go-connectrpc/atlas.hcl +8 -0
  103. package/templates/variants/go-connectrpc/buf.gen.yaml +2 -2
  104. package/templates/variants/go-connectrpc/cmd/server/main.go +23 -12
  105. package/templates/variants/go-connectrpc/gen/waitlist/v1/waitlist.pb.go +960 -0
  106. package/templates/variants/go-connectrpc/gen/waitlist/v1/waitlistv1connect/waitlist.connect.go +283 -0
  107. package/templates/variants/go-connectrpc/go.mod +1 -1
  108. package/templates/variants/go-connectrpc/internal/app/service.go +202 -685
  109. package/templates/variants/go-connectrpc/internal/auth/middleware.go +289 -0
  110. package/templates/variants/go-connectrpc/internal/auth/middleware_test.go +38 -0
  111. package/templates/variants/go-connectrpc/internal/config/config.go +27 -11
  112. package/templates/variants/go-connectrpc/internal/connectapi/handler.go +78 -201
  113. package/templates/variants/go-connectrpc/internal/connectapi/waitlist_integration_test.go +122 -0
  114. package/templates/variants/go-connectrpc/internal/httpapi/routes.go +147 -9
  115. package/templates/variants/go-connectrpc/internal/temporal/activities.go +27 -0
  116. package/templates/variants/go-connectrpc/internal/temporal/worker.go +42 -0
  117. package/templates/variants/go-connectrpc/internal/temporal/workflows.go +18 -0
  118. package/templates/variants/go-connectrpc/migrations/0000_init.sql +12 -55
  119. package/templates/variants/go-connectrpc/migrations/atlas.sum +2 -0
  120. package/templates/variants/go-connectrpc/package.json +7 -1
  121. package/templates/variants/go-connectrpc/protos/waitlist/v1/waitlist.proto +93 -0
  122. package/templates/root/.github/workflows/buf-publish.yml +0 -19
  123. package/templates/root/.github/workflows/ci.yml +0 -26
  124. package/templates/root/.github/workflows/deploy.yml +0 -22
  125. package/templates/root/Dockerfile +0 -23
  126. package/templates/root/README.md +0 -69
  127. package/templates/root/buf.gen.yaml +0 -10
  128. package/templates/root/buf.yaml +0 -9
  129. package/templates/root/cmd/server/main.go +0 -44
  130. package/templates/root/gen/dns/v1/dns.pb.go +0 -623
  131. package/templates/root/gen/dns/v1/dnsv1connect/dns.connect.go +0 -192
  132. package/templates/root/go.mod +0 -10
  133. package/templates/root/internal/app/service.go +0 -152
  134. package/templates/root/internal/app/token_source.go +0 -50
  135. package/templates/root/internal/cloudflare/client.go +0 -160
  136. package/templates/root/internal/config/config.go +0 -55
  137. package/templates/root/internal/connectapi/handler.go +0 -79
  138. package/templates/root/internal/httpapi/routes.go +0 -93
  139. package/templates/root/internal/vault/client.go +0 -148
  140. package/templates/root/package.json +0 -12
  141. package/templates/root/protos/dns/v1/dns.proto +0 -58
  142. package/templates/root/scripts/cloudrun/bootstrap.ts +0 -65
  143. package/templates/root/scripts/cloudrun/config.ts +0 -50
  144. package/templates/root/scripts/cloudrun/deploy.ts +0 -41
  145. package/templates/root/scripts/cloudrun/lib.ts +0 -244
  146. package/templates/root/service.yaml +0 -50
  147. package/templates/root/test/go.test.ts +0 -19
  148. package/templates/shared/scripts/cloudrun/integrations.ts +0 -111
  149. package/templates/variants/bun-connectrpc/gen/protos/chat/v1/chat_pb.ts +0 -1078
  150. package/templates/variants/bun-connectrpc/protos/chat/v1/chat.proto +0 -228
  151. package/templates/variants/bun-connectrpc/src/chat/service.ts +0 -384
  152. package/templates/variants/bun-connectrpc/src/chat/types.ts +0 -142
  153. package/templates/variants/bun-connectrpc/src/storage.ts +0 -72
  154. package/templates/variants/bun-connectrpc/src/webhooks.ts +0 -35
  155. package/templates/variants/bun-connectrpc/test/list-messages.integration.test.ts +0 -182
  156. package/templates/variants/bun-hono/src/chat/service.ts +0 -384
  157. package/templates/variants/bun-hono/src/chat/types.ts +0 -142
  158. package/templates/variants/bun-hono/src/storage.ts +0 -72
  159. package/templates/variants/bun-hono/src/webhooks.ts +0 -35
  160. package/templates/variants/bun-hono/test/list-messages.integration.test.ts +0 -256
  161. package/templates/variants/go-chi/buf.gen.yaml +0 -12
  162. package/templates/variants/go-chi/buf.yaml +0 -9
  163. package/templates/variants/go-chi/cmd/migrate/main.go +0 -101
  164. package/templates/variants/go-chi/internal/httpapi/list_messages_integration_test.go +0 -298
  165. package/templates/variants/go-chi/protos/chat/v1/chat.proto +0 -219
  166. package/templates/variants/go-connectrpc/cmd/migrate/main.go +0 -101
  167. package/templates/variants/go-connectrpc/gen/chat/v1/chat.pb.go +0 -2512
  168. package/templates/variants/go-connectrpc/gen/chat/v1/chatv1connect/chat.connect.go +0 -571
  169. package/templates/variants/go-connectrpc/internal/connectapi/list_messages_integration_test.go +0 -216
  170. package/templates/variants/go-connectrpc/protos/chat/v1/chat.proto +0 -232
  171. /package/bin/{create-svc.mjs → service.mjs} +0 -0
@@ -1,1078 +0,0 @@
1
- // @generated by protoc-gen-es v2.12.0 with parameter "target=ts"
2
- // @generated from file protos/chat/v1/chat.proto (package chat.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 { Message as Message$1 } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * Describes the file protos/chat/v1/chat.proto.
11
- */
12
- export const file_protos_chat_v1_chat: GenFile = /*@__PURE__*/
13
- fileDesc("Chlwcm90b3MvY2hhdC92MS9jaGF0LnByb3RvEgdjaGF0LnYxImIKBFVzZXISCgoCaWQYASABKAkSEAoIdXNlcm5hbWUYAiABKAkSFAoMZGlzcGxheV9uYW1lGAMgASgJEhIKCmNyZWF0ZWRfYXQYBCABKAkSEgoKdXBkYXRlZF9hdBgFIAEoCSKSAQoMQ29udmVyc2F0aW9uEgoKAmlkGAEgASgJEg0KBXRpdGxlGAIgASgJEhoKEmNyZWF0ZWRfYnlfdXNlcl9pZBgDIAEoCRIjCgxwYXJ0aWNpcGFudHMYBCADKAsyDS5jaGF0LnYxLlVzZXISEgoKY3JlYXRlZF9hdBgFIAEoCRISCgp1cGRhdGVkX2F0GAYgASgJIrkBCgdNZXNzYWdlEgoKAmlkGAEgASgJEhcKD2NvbnZlcnNhdGlvbl9pZBgCIAEoCRIPCgd1c2VyX2lkGAMgASgJEgwKBGJvZHkYBCABKAkSEQoJZW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ChZDcmVhdGVBdHRhY2htZW50VXBsb2FkEiYuY2hhdC52MS5DcmVhdGVBdHRhY2htZW50VXBsb2FkUmVxdWVzdBonLmNoYXQudjEuQ3JlYXRlQXR0YWNobWVudFVwbG9hZFJlc3BvbnNlIgASXwoSRmluYWxpemVBdHRhY2htZW50EiIuY2hhdC52MS5GaW5hbGl6ZUF0dGFjaG1lbnRSZXF1ZXN0GiMuY2hhdC52MS5GaW5hbGl6ZUF0dGFjaG1lbnRSZXNwb25zZSIAElAKDUdldEF0dGFjaG1lbnQSHS5jaGF0LnYxLkdldEF0dGFjaG1lbnRSZXF1ZXN0Gh4uY2hhdC52MS5HZXRBdHRhY2htZW50UmVzcG9uc2UiABJZChBEZWxldGVBdHRhY2htZW50EiAuY2hhdC52MS5EZWxldGVBdHRhY2htZW50UmVxdWVzdBohLmNoYXQudjEuRGVsZXRlQXR0YWNobWVudFJlc3BvbnNlIgBCJFoie3tNT0RVTEVfUEFUSH19L2dlbi9jaGF0L3YxO2NoYXR2MWIGcHJvdG8z");
14
-
15
- /**
16
- * @generated from message chat.v1.User
17
- */
18
- export type User = Message$1<"chat.v1.User"> & {
19
- /**
20
- * @generated from field: string id = 1;
21
- */
22
- id: string;
23
-
24
- /**
25
- * @generated from field: string username = 2;
26
- */
27
- username: string;
28
-
29
- /**
30
- * @generated from field: string display_name = 3;
31
- */
32
- displayName: string;
33
-
34
- /**
35
- * @generated from field: string created_at = 4;
36
- */
37
- createdAt: string;
38
-
39
- /**
40
- * @generated from field: string updated_at = 5;
41
- */
42
- updatedAt: string;
43
- };
44
-
45
- /**
46
- * Describes the message chat.v1.User.
47
- * Use `create(UserSchema)` to create a new message.
48
- */
49
- export const UserSchema: GenMessage<User> = /*@__PURE__*/
50
- messageDesc(file_protos_chat_v1_chat, 0);
51
-
52
- /**
53
- * @generated from message chat.v1.Conversation
54
- */
55
- export type Conversation = Message$1<"chat.v1.Conversation"> & {
56
- /**
57
- * @generated from field: string id = 1;
58
- */
59
- id: string;
60
-
61
- /**
62
- * @generated from field: string title = 2;
63
- */
64
- title: string;
65
-
66
- /**
67
- * @generated from field: string created_by_user_id = 3;
68
- */
69
- createdByUserId: string;
70
-
71
- /**
72
- * @generated from field: repeated chat.v1.User participants = 4;
73
- */
74
- participants: User[];
75
-
76
- /**
77
- * @generated from field: string created_at = 5;
78
- */
79
- createdAt: string;
80
-
81
- /**
82
- * @generated from field: string updated_at = 6;
83
- */
84
- updatedAt: string;
85
- };
86
-
87
- /**
88
- * Describes the message chat.v1.Conversation.
89
- * Use `create(ConversationSchema)` to create a new message.
90
- */
91
- export const ConversationSchema: GenMessage<Conversation> = /*@__PURE__*/
92
- messageDesc(file_protos_chat_v1_chat, 1);
93
-
94
- /**
95
- * @generated from message chat.v1.Message
96
- */
97
- export type Message = Message$1<"chat.v1.Message"> & {
98
- /**
99
- * @generated from field: string id = 1;
100
- */
101
- id: string;
102
-
103
- /**
104
- * @generated from field: string conversation_id = 2;
105
- */
106
- conversationId: string;
107
-
108
- /**
109
- * @generated from field: string user_id = 3;
110
- */
111
- userId: string;
112
-
113
- /**
114
- * @generated from field: string body = 4;
115
- */
116
- body: string;
117
-
118
- /**
119
- * @generated from field: string edited_at = 5;
120
- */
121
- editedAt: string;
122
-
123
- /**
124
- * @generated from field: string created_at = 6;
125
- */
126
- createdAt: string;
127
-
128
- /**
129
- * @generated from field: string updated_at = 7;
130
- */
131
- updatedAt: string;
132
-
133
- /**
134
- * @generated from field: repeated chat.v1.MessageAttachment attachments = 8;
135
- */
136
- attachments: MessageAttachment[];
137
- };
138
-
139
- /**
140
- * Describes the message chat.v1.Message.
141
- * Use `create(MessageSchema)` to create a new message.
142
- */
143
- export const MessageSchema: GenMessage<Message> = /*@__PURE__*/
144
- messageDesc(file_protos_chat_v1_chat, 2);
145
-
146
- /**
147
- * @generated from message chat.v1.MessageAttachment
148
- */
149
- export type MessageAttachment = Message$1<"chat.v1.MessageAttachment"> & {
150
- /**
151
- * @generated from field: string id = 1;
152
- */
153
- id: string;
154
-
155
- /**
156
- * @generated from field: string filename = 2;
157
- */
158
- filename: string;
159
-
160
- /**
161
- * @generated from field: string content_type = 3;
162
- */
163
- contentType: string;
164
-
165
- /**
166
- * @generated from field: int64 byte_size = 4;
167
- */
168
- byteSize: bigint;
169
-
170
- /**
171
- * @generated from field: string status = 5;
172
- */
173
- status: string;
174
-
175
- /**
176
- * @generated from field: string public_url = 6;
177
- */
178
- publicUrl: string;
179
- };
180
-
181
- /**
182
- * Describes the message chat.v1.MessageAttachment.
183
- * Use `create(MessageAttachmentSchema)` to create a new message.
184
- */
185
- export const MessageAttachmentSchema: GenMessage<MessageAttachment> = /*@__PURE__*/
186
- messageDesc(file_protos_chat_v1_chat, 3);
187
-
188
- /**
189
- * @generated from message chat.v1.Attachment
190
- */
191
- export type Attachment = Message$1<"chat.v1.Attachment"> & {
192
- /**
193
- * @generated from field: string id = 1;
194
- */
195
- id: string;
196
-
197
- /**
198
- * @generated from field: string conversation_id = 2;
199
- */
200
- conversationId: string;
201
-
202
- /**
203
- * @generated from field: string message_id = 3;
204
- */
205
- messageId: string;
206
-
207
- /**
208
- * @generated from field: string uploaded_by_user_id = 4;
209
- */
210
- uploadedByUserId: string;
211
-
212
- /**
213
- * @generated from field: string storage_bucket = 5;
214
- */
215
- storageBucket: string;
216
-
217
- /**
218
- * @generated from field: string storage_key = 6;
219
- */
220
- storageKey: string;
221
-
222
- /**
223
- * @generated from field: string content_type = 7;
224
- */
225
- contentType: string;
226
-
227
- /**
228
- * @generated from field: int64 byte_size = 8;
229
- */
230
- byteSize: bigint;
231
-
232
- /**
233
- * @generated from field: string filename = 9;
234
- */
235
- filename: string;
236
-
237
- /**
238
- * @generated from field: string status = 10;
239
- */
240
- status: string;
241
-
242
- /**
243
- * @generated from field: string public_url = 11;
244
- */
245
- publicUrl: string;
246
-
247
- /**
248
- * @generated from field: string created_at = 12;
249
- */
250
- createdAt: string;
251
-
252
- /**
253
- * @generated from field: string updated_at = 13;
254
- */
255
- updatedAt: string;
256
- };
257
-
258
- /**
259
- * Describes the message chat.v1.Attachment.
260
- * Use `create(AttachmentSchema)` to create a new message.
261
- */
262
- export const AttachmentSchema: GenMessage<Attachment> = /*@__PURE__*/
263
- messageDesc(file_protos_chat_v1_chat, 4);
264
-
265
- /**
266
- * @generated from message chat.v1.UploadTarget
267
- */
268
- export type UploadTarget = Message$1<"chat.v1.UploadTarget"> & {
269
- /**
270
- * @generated from field: string method = 1;
271
- */
272
- method: string;
273
-
274
- /**
275
- * @generated from field: string url = 2;
276
- */
277
- url: string;
278
-
279
- /**
280
- * @generated from field: map<string, string> headers = 3;
281
- */
282
- headers: { [key: string]: string };
283
- };
284
-
285
- /**
286
- * Describes the message chat.v1.UploadTarget.
287
- * Use `create(UploadTargetSchema)` to create a new message.
288
- */
289
- export const UploadTargetSchema: GenMessage<UploadTarget> = /*@__PURE__*/
290
- messageDesc(file_protos_chat_v1_chat, 5);
291
-
292
- /**
293
- * @generated from message chat.v1.CreateUserRequest
294
- */
295
- export type CreateUserRequest = Message$1<"chat.v1.CreateUserRequest"> & {
296
- /**
297
- * @generated from field: string username = 1;
298
- */
299
- username: string;
300
-
301
- /**
302
- * @generated from field: string display_name = 2;
303
- */
304
- displayName: string;
305
- };
306
-
307
- /**
308
- * Describes the message chat.v1.CreateUserRequest.
309
- * Use `create(CreateUserRequestSchema)` to create a new message.
310
- */
311
- export const CreateUserRequestSchema: GenMessage<CreateUserRequest> = /*@__PURE__*/
312
- messageDesc(file_protos_chat_v1_chat, 6);
313
-
314
- /**
315
- * @generated from message chat.v1.CreateUserResponse
316
- */
317
- export type CreateUserResponse = Message$1<"chat.v1.CreateUserResponse"> & {
318
- /**
319
- * @generated from field: chat.v1.User user = 1;
320
- */
321
- user?: User | undefined;
322
- };
323
-
324
- /**
325
- * Describes the message chat.v1.CreateUserResponse.
326
- * Use `create(CreateUserResponseSchema)` to create a new message.
327
- */
328
- export const CreateUserResponseSchema: GenMessage<CreateUserResponse> = /*@__PURE__*/
329
- messageDesc(file_protos_chat_v1_chat, 7);
330
-
331
- /**
332
- * @generated from message chat.v1.GetUserRequest
333
- */
334
- export type GetUserRequest = Message$1<"chat.v1.GetUserRequest"> & {
335
- /**
336
- * @generated from field: string user_id = 1;
337
- */
338
- userId: string;
339
- };
340
-
341
- /**
342
- * Describes the message chat.v1.GetUserRequest.
343
- * Use `create(GetUserRequestSchema)` to create a new message.
344
- */
345
- export const GetUserRequestSchema: GenMessage<GetUserRequest> = /*@__PURE__*/
346
- messageDesc(file_protos_chat_v1_chat, 8);
347
-
348
- /**
349
- * @generated from message chat.v1.GetUserByUsernameRequest
350
- */
351
- export type GetUserByUsernameRequest = Message$1<"chat.v1.GetUserByUsernameRequest"> & {
352
- /**
353
- * @generated from field: string username = 1;
354
- */
355
- username: string;
356
- };
357
-
358
- /**
359
- * Describes the message chat.v1.GetUserByUsernameRequest.
360
- * Use `create(GetUserByUsernameRequestSchema)` to create a new message.
361
- */
362
- export const GetUserByUsernameRequestSchema: GenMessage<GetUserByUsernameRequest> = /*@__PURE__*/
363
- messageDesc(file_protos_chat_v1_chat, 9);
364
-
365
- /**
366
- * @generated from message chat.v1.GetUserResponse
367
- */
368
- export type GetUserResponse = Message$1<"chat.v1.GetUserResponse"> & {
369
- /**
370
- * @generated from field: chat.v1.User user = 1;
371
- */
372
- user?: User | undefined;
373
- };
374
-
375
- /**
376
- * Describes the message chat.v1.GetUserResponse.
377
- * Use `create(GetUserResponseSchema)` to create a new message.
378
- */
379
- export const GetUserResponseSchema: GenMessage<GetUserResponse> = /*@__PURE__*/
380
- messageDesc(file_protos_chat_v1_chat, 10);
381
-
382
- /**
383
- * @generated from message chat.v1.CreateConversationRequest
384
- */
385
- export type CreateConversationRequest = Message$1<"chat.v1.CreateConversationRequest"> & {
386
- /**
387
- * @generated from field: string created_by_user_id = 1;
388
- */
389
- createdByUserId: string;
390
-
391
- /**
392
- * @generated from field: string title = 2;
393
- */
394
- title: string;
395
-
396
- /**
397
- * @generated from field: repeated string participant_user_ids = 3;
398
- */
399
- participantUserIds: string[];
400
- };
401
-
402
- /**
403
- * Describes the message chat.v1.CreateConversationRequest.
404
- * Use `create(CreateConversationRequestSchema)` to create a new message.
405
- */
406
- export const CreateConversationRequestSchema: GenMessage<CreateConversationRequest> = /*@__PURE__*/
407
- messageDesc(file_protos_chat_v1_chat, 11);
408
-
409
- /**
410
- * @generated from message chat.v1.CreateConversationResponse
411
- */
412
- export type CreateConversationResponse = Message$1<"chat.v1.CreateConversationResponse"> & {
413
- /**
414
- * @generated from field: chat.v1.Conversation conversation = 1;
415
- */
416
- conversation?: Conversation | undefined;
417
- };
418
-
419
- /**
420
- * Describes the message chat.v1.CreateConversationResponse.
421
- * Use `create(CreateConversationResponseSchema)` to create a new message.
422
- */
423
- export const CreateConversationResponseSchema: GenMessage<CreateConversationResponse> = /*@__PURE__*/
424
- messageDesc(file_protos_chat_v1_chat, 12);
425
-
426
- /**
427
- * @generated from message chat.v1.GetConversationRequest
428
- */
429
- export type GetConversationRequest = Message$1<"chat.v1.GetConversationRequest"> & {
430
- /**
431
- * @generated from field: string conversation_id = 1;
432
- */
433
- conversationId: string;
434
- };
435
-
436
- /**
437
- * Describes the message chat.v1.GetConversationRequest.
438
- * Use `create(GetConversationRequestSchema)` to create a new message.
439
- */
440
- export const GetConversationRequestSchema: GenMessage<GetConversationRequest> = /*@__PURE__*/
441
- messageDesc(file_protos_chat_v1_chat, 13);
442
-
443
- /**
444
- * @generated from message chat.v1.GetConversationResponse
445
- */
446
- export type GetConversationResponse = Message$1<"chat.v1.GetConversationResponse"> & {
447
- /**
448
- * @generated from field: chat.v1.Conversation conversation = 1;
449
- */
450
- conversation?: Conversation | undefined;
451
- };
452
-
453
- /**
454
- * Describes the message chat.v1.GetConversationResponse.
455
- * Use `create(GetConversationResponseSchema)` to create a new message.
456
- */
457
- export const GetConversationResponseSchema: GenMessage<GetConversationResponse> = /*@__PURE__*/
458
- messageDesc(file_protos_chat_v1_chat, 14);
459
-
460
- /**
461
- * @generated from message chat.v1.UpdateConversationRequest
462
- */
463
- export type UpdateConversationRequest = Message$1<"chat.v1.UpdateConversationRequest"> & {
464
- /**
465
- * @generated from field: string conversation_id = 1;
466
- */
467
- conversationId: string;
468
-
469
- /**
470
- * @generated from field: string title = 2;
471
- */
472
- title: string;
473
- };
474
-
475
- /**
476
- * Describes the message chat.v1.UpdateConversationRequest.
477
- * Use `create(UpdateConversationRequestSchema)` to create a new message.
478
- */
479
- export const UpdateConversationRequestSchema: GenMessage<UpdateConversationRequest> = /*@__PURE__*/
480
- messageDesc(file_protos_chat_v1_chat, 15);
481
-
482
- /**
483
- * @generated from message chat.v1.UpdateConversationResponse
484
- */
485
- export type UpdateConversationResponse = Message$1<"chat.v1.UpdateConversationResponse"> & {
486
- /**
487
- * @generated from field: chat.v1.Conversation conversation = 1;
488
- */
489
- conversation?: Conversation | undefined;
490
- };
491
-
492
- /**
493
- * Describes the message chat.v1.UpdateConversationResponse.
494
- * Use `create(UpdateConversationResponseSchema)` to create a new message.
495
- */
496
- export const UpdateConversationResponseSchema: GenMessage<UpdateConversationResponse> = /*@__PURE__*/
497
- messageDesc(file_protos_chat_v1_chat, 16);
498
-
499
- /**
500
- * @generated from message chat.v1.DeleteConversationRequest
501
- */
502
- export type DeleteConversationRequest = Message$1<"chat.v1.DeleteConversationRequest"> & {
503
- /**
504
- * @generated from field: string conversation_id = 1;
505
- */
506
- conversationId: string;
507
- };
508
-
509
- /**
510
- * Describes the message chat.v1.DeleteConversationRequest.
511
- * Use `create(DeleteConversationRequestSchema)` to create a new message.
512
- */
513
- export const DeleteConversationRequestSchema: GenMessage<DeleteConversationRequest> = /*@__PURE__*/
514
- messageDesc(file_protos_chat_v1_chat, 17);
515
-
516
- /**
517
- * @generated from message chat.v1.DeleteConversationResponse
518
- */
519
- export type DeleteConversationResponse = Message$1<"chat.v1.DeleteConversationResponse"> & {
520
- };
521
-
522
- /**
523
- * Describes the message chat.v1.DeleteConversationResponse.
524
- * Use `create(DeleteConversationResponseSchema)` to create a new message.
525
- */
526
- export const DeleteConversationResponseSchema: GenMessage<DeleteConversationResponse> = /*@__PURE__*/
527
- messageDesc(file_protos_chat_v1_chat, 18);
528
-
529
- /**
530
- * @generated from message chat.v1.AddConversationParticipantRequest
531
- */
532
- export type AddConversationParticipantRequest = Message$1<"chat.v1.AddConversationParticipantRequest"> & {
533
- /**
534
- * @generated from field: string conversation_id = 1;
535
- */
536
- conversationId: string;
537
-
538
- /**
539
- * @generated from field: string user_id = 2;
540
- */
541
- userId: string;
542
- };
543
-
544
- /**
545
- * Describes the message chat.v1.AddConversationParticipantRequest.
546
- * Use `create(AddConversationParticipantRequestSchema)` to create a new message.
547
- */
548
- export const AddConversationParticipantRequestSchema: GenMessage<AddConversationParticipantRequest> = /*@__PURE__*/
549
- messageDesc(file_protos_chat_v1_chat, 19);
550
-
551
- /**
552
- * @generated from message chat.v1.AddConversationParticipantResponse
553
- */
554
- export type AddConversationParticipantResponse = Message$1<"chat.v1.AddConversationParticipantResponse"> & {
555
- /**
556
- * @generated from field: chat.v1.Conversation conversation = 1;
557
- */
558
- conversation?: Conversation | undefined;
559
- };
560
-
561
- /**
562
- * Describes the message chat.v1.AddConversationParticipantResponse.
563
- * Use `create(AddConversationParticipantResponseSchema)` to create a new message.
564
- */
565
- export const AddConversationParticipantResponseSchema: GenMessage<AddConversationParticipantResponse> = /*@__PURE__*/
566
- messageDesc(file_protos_chat_v1_chat, 20);
567
-
568
- /**
569
- * @generated from message chat.v1.RemoveConversationParticipantRequest
570
- */
571
- export type RemoveConversationParticipantRequest = Message$1<"chat.v1.RemoveConversationParticipantRequest"> & {
572
- /**
573
- * @generated from field: string conversation_id = 1;
574
- */
575
- conversationId: string;
576
-
577
- /**
578
- * @generated from field: string user_id = 2;
579
- */
580
- userId: string;
581
- };
582
-
583
- /**
584
- * Describes the message chat.v1.RemoveConversationParticipantRequest.
585
- * Use `create(RemoveConversationParticipantRequestSchema)` to create a new message.
586
- */
587
- export const RemoveConversationParticipantRequestSchema: GenMessage<RemoveConversationParticipantRequest> = /*@__PURE__*/
588
- messageDesc(file_protos_chat_v1_chat, 21);
589
-
590
- /**
591
- * @generated from message chat.v1.RemoveConversationParticipantResponse
592
- */
593
- export type RemoveConversationParticipantResponse = Message$1<"chat.v1.RemoveConversationParticipantResponse"> & {
594
- };
595
-
596
- /**
597
- * Describes the message chat.v1.RemoveConversationParticipantResponse.
598
- * Use `create(RemoveConversationParticipantResponseSchema)` to create a new message.
599
- */
600
- export const RemoveConversationParticipantResponseSchema: GenMessage<RemoveConversationParticipantResponse> = /*@__PURE__*/
601
- messageDesc(file_protos_chat_v1_chat, 22);
602
-
603
- /**
604
- * @generated from message chat.v1.ListMessagesRequest
605
- */
606
- export type ListMessagesRequest = Message$1<"chat.v1.ListMessagesRequest"> & {
607
- /**
608
- * @generated from field: string conversation_id = 1;
609
- */
610
- conversationId: string;
611
-
612
- /**
613
- * @generated from field: string cursor = 2;
614
- */
615
- cursor: string;
616
-
617
- /**
618
- * @generated from field: int32 limit = 3;
619
- */
620
- limit: number;
621
- };
622
-
623
- /**
624
- * Describes the message chat.v1.ListMessagesRequest.
625
- * Use `create(ListMessagesRequestSchema)` to create a new message.
626
- */
627
- export const ListMessagesRequestSchema: GenMessage<ListMessagesRequest> = /*@__PURE__*/
628
- messageDesc(file_protos_chat_v1_chat, 23);
629
-
630
- /**
631
- * @generated from message chat.v1.ListMessagesResponse
632
- */
633
- export type ListMessagesResponse = Message$1<"chat.v1.ListMessagesResponse"> & {
634
- /**
635
- * @generated from field: repeated chat.v1.Message messages = 1;
636
- */
637
- messages: Message[];
638
-
639
- /**
640
- * @generated from field: string next_cursor = 2;
641
- */
642
- nextCursor: string;
643
- };
644
-
645
- /**
646
- * Describes the message chat.v1.ListMessagesResponse.
647
- * Use `create(ListMessagesResponseSchema)` to create a new message.
648
- */
649
- export const ListMessagesResponseSchema: GenMessage<ListMessagesResponse> = /*@__PURE__*/
650
- messageDesc(file_protos_chat_v1_chat, 24);
651
-
652
- /**
653
- * @generated from message chat.v1.CreateMessageRequest
654
- */
655
- export type CreateMessageRequest = Message$1<"chat.v1.CreateMessageRequest"> & {
656
- /**
657
- * @generated from field: string conversation_id = 1;
658
- */
659
- conversationId: string;
660
-
661
- /**
662
- * @generated from field: string user_id = 2;
663
- */
664
- userId: string;
665
-
666
- /**
667
- * @generated from field: string body = 3;
668
- */
669
- body: string;
670
- };
671
-
672
- /**
673
- * Describes the message chat.v1.CreateMessageRequest.
674
- * Use `create(CreateMessageRequestSchema)` to create a new message.
675
- */
676
- export const CreateMessageRequestSchema: GenMessage<CreateMessageRequest> = /*@__PURE__*/
677
- messageDesc(file_protos_chat_v1_chat, 25);
678
-
679
- /**
680
- * @generated from message chat.v1.CreateMessageResponse
681
- */
682
- export type CreateMessageResponse = Message$1<"chat.v1.CreateMessageResponse"> & {
683
- /**
684
- * @generated from field: chat.v1.Message message = 1;
685
- */
686
- message?: Message | undefined;
687
- };
688
-
689
- /**
690
- * Describes the message chat.v1.CreateMessageResponse.
691
- * Use `create(CreateMessageResponseSchema)` to create a new message.
692
- */
693
- export const CreateMessageResponseSchema: GenMessage<CreateMessageResponse> = /*@__PURE__*/
694
- messageDesc(file_protos_chat_v1_chat, 26);
695
-
696
- /**
697
- * @generated from message chat.v1.UpdateMessageRequest
698
- */
699
- export type UpdateMessageRequest = Message$1<"chat.v1.UpdateMessageRequest"> & {
700
- /**
701
- * @generated from field: string conversation_id = 1;
702
- */
703
- conversationId: string;
704
-
705
- /**
706
- * @generated from field: string message_id = 2;
707
- */
708
- messageId: string;
709
-
710
- /**
711
- * @generated from field: string body = 3;
712
- */
713
- body: string;
714
- };
715
-
716
- /**
717
- * Describes the message chat.v1.UpdateMessageRequest.
718
- * Use `create(UpdateMessageRequestSchema)` to create a new message.
719
- */
720
- export const UpdateMessageRequestSchema: GenMessage<UpdateMessageRequest> = /*@__PURE__*/
721
- messageDesc(file_protos_chat_v1_chat, 27);
722
-
723
- /**
724
- * @generated from message chat.v1.UpdateMessageResponse
725
- */
726
- export type UpdateMessageResponse = Message$1<"chat.v1.UpdateMessageResponse"> & {
727
- /**
728
- * @generated from field: chat.v1.Message message = 1;
729
- */
730
- message?: Message | undefined;
731
- };
732
-
733
- /**
734
- * Describes the message chat.v1.UpdateMessageResponse.
735
- * Use `create(UpdateMessageResponseSchema)` to create a new message.
736
- */
737
- export const UpdateMessageResponseSchema: GenMessage<UpdateMessageResponse> = /*@__PURE__*/
738
- messageDesc(file_protos_chat_v1_chat, 28);
739
-
740
- /**
741
- * @generated from message chat.v1.DeleteMessageRequest
742
- */
743
- export type DeleteMessageRequest = Message$1<"chat.v1.DeleteMessageRequest"> & {
744
- /**
745
- * @generated from field: string conversation_id = 1;
746
- */
747
- conversationId: string;
748
-
749
- /**
750
- * @generated from field: string message_id = 2;
751
- */
752
- messageId: string;
753
- };
754
-
755
- /**
756
- * Describes the message chat.v1.DeleteMessageRequest.
757
- * Use `create(DeleteMessageRequestSchema)` to create a new message.
758
- */
759
- export const DeleteMessageRequestSchema: GenMessage<DeleteMessageRequest> = /*@__PURE__*/
760
- messageDesc(file_protos_chat_v1_chat, 29);
761
-
762
- /**
763
- * @generated from message chat.v1.DeleteMessageResponse
764
- */
765
- export type DeleteMessageResponse = Message$1<"chat.v1.DeleteMessageResponse"> & {
766
- };
767
-
768
- /**
769
- * Describes the message chat.v1.DeleteMessageResponse.
770
- * Use `create(DeleteMessageResponseSchema)` to create a new message.
771
- */
772
- export const DeleteMessageResponseSchema: GenMessage<DeleteMessageResponse> = /*@__PURE__*/
773
- messageDesc(file_protos_chat_v1_chat, 30);
774
-
775
- /**
776
- * @generated from message chat.v1.CreateAttachmentUploadRequest
777
- */
778
- export type CreateAttachmentUploadRequest = Message$1<"chat.v1.CreateAttachmentUploadRequest"> & {
779
- /**
780
- * @generated from field: string conversation_id = 1;
781
- */
782
- conversationId: string;
783
-
784
- /**
785
- * @generated from field: string user_id = 2;
786
- */
787
- userId: string;
788
-
789
- /**
790
- * @generated from field: string filename = 3;
791
- */
792
- filename: string;
793
-
794
- /**
795
- * @generated from field: string content_type = 4;
796
- */
797
- contentType: string;
798
-
799
- /**
800
- * @generated from field: int64 byte_size = 5;
801
- */
802
- byteSize: bigint;
803
- };
804
-
805
- /**
806
- * Describes the message chat.v1.CreateAttachmentUploadRequest.
807
- * Use `create(CreateAttachmentUploadRequestSchema)` to create a new message.
808
- */
809
- export const CreateAttachmentUploadRequestSchema: GenMessage<CreateAttachmentUploadRequest> = /*@__PURE__*/
810
- messageDesc(file_protos_chat_v1_chat, 31);
811
-
812
- /**
813
- * @generated from message chat.v1.CreateAttachmentUploadResponse
814
- */
815
- export type CreateAttachmentUploadResponse = Message$1<"chat.v1.CreateAttachmentUploadResponse"> & {
816
- /**
817
- * @generated from field: chat.v1.Attachment attachment = 1;
818
- */
819
- attachment?: Attachment | undefined;
820
-
821
- /**
822
- * @generated from field: chat.v1.UploadTarget upload = 2;
823
- */
824
- upload?: UploadTarget | undefined;
825
- };
826
-
827
- /**
828
- * Describes the message chat.v1.CreateAttachmentUploadResponse.
829
- * Use `create(CreateAttachmentUploadResponseSchema)` to create a new message.
830
- */
831
- export const CreateAttachmentUploadResponseSchema: GenMessage<CreateAttachmentUploadResponse> = /*@__PURE__*/
832
- messageDesc(file_protos_chat_v1_chat, 32);
833
-
834
- /**
835
- * @generated from message chat.v1.FinalizeAttachmentRequest
836
- */
837
- export type FinalizeAttachmentRequest = Message$1<"chat.v1.FinalizeAttachmentRequest"> & {
838
- /**
839
- * @generated from field: string attachment_id = 1;
840
- */
841
- attachmentId: string;
842
-
843
- /**
844
- * @generated from field: string message_id = 2;
845
- */
846
- messageId: string;
847
- };
848
-
849
- /**
850
- * Describes the message chat.v1.FinalizeAttachmentRequest.
851
- * Use `create(FinalizeAttachmentRequestSchema)` to create a new message.
852
- */
853
- export const FinalizeAttachmentRequestSchema: GenMessage<FinalizeAttachmentRequest> = /*@__PURE__*/
854
- messageDesc(file_protos_chat_v1_chat, 33);
855
-
856
- /**
857
- * @generated from message chat.v1.FinalizeAttachmentResponse
858
- */
859
- export type FinalizeAttachmentResponse = Message$1<"chat.v1.FinalizeAttachmentResponse"> & {
860
- /**
861
- * @generated from field: chat.v1.Attachment attachment = 1;
862
- */
863
- attachment?: Attachment | undefined;
864
- };
865
-
866
- /**
867
- * Describes the message chat.v1.FinalizeAttachmentResponse.
868
- * Use `create(FinalizeAttachmentResponseSchema)` to create a new message.
869
- */
870
- export const FinalizeAttachmentResponseSchema: GenMessage<FinalizeAttachmentResponse> = /*@__PURE__*/
871
- messageDesc(file_protos_chat_v1_chat, 34);
872
-
873
- /**
874
- * @generated from message chat.v1.GetAttachmentRequest
875
- */
876
- export type GetAttachmentRequest = Message$1<"chat.v1.GetAttachmentRequest"> & {
877
- /**
878
- * @generated from field: string attachment_id = 1;
879
- */
880
- attachmentId: string;
881
- };
882
-
883
- /**
884
- * Describes the message chat.v1.GetAttachmentRequest.
885
- * Use `create(GetAttachmentRequestSchema)` to create a new message.
886
- */
887
- export const GetAttachmentRequestSchema: GenMessage<GetAttachmentRequest> = /*@__PURE__*/
888
- messageDesc(file_protos_chat_v1_chat, 35);
889
-
890
- /**
891
- * @generated from message chat.v1.GetAttachmentResponse
892
- */
893
- export type GetAttachmentResponse = Message$1<"chat.v1.GetAttachmentResponse"> & {
894
- /**
895
- * @generated from field: chat.v1.Attachment attachment = 1;
896
- */
897
- attachment?: Attachment | undefined;
898
- };
899
-
900
- /**
901
- * Describes the message chat.v1.GetAttachmentResponse.
902
- * Use `create(GetAttachmentResponseSchema)` to create a new message.
903
- */
904
- export const GetAttachmentResponseSchema: GenMessage<GetAttachmentResponse> = /*@__PURE__*/
905
- messageDesc(file_protos_chat_v1_chat, 36);
906
-
907
- /**
908
- * @generated from message chat.v1.DeleteAttachmentRequest
909
- */
910
- export type DeleteAttachmentRequest = Message$1<"chat.v1.DeleteAttachmentRequest"> & {
911
- /**
912
- * @generated from field: string attachment_id = 1;
913
- */
914
- attachmentId: string;
915
- };
916
-
917
- /**
918
- * Describes the message chat.v1.DeleteAttachmentRequest.
919
- * Use `create(DeleteAttachmentRequestSchema)` to create a new message.
920
- */
921
- export const DeleteAttachmentRequestSchema: GenMessage<DeleteAttachmentRequest> = /*@__PURE__*/
922
- messageDesc(file_protos_chat_v1_chat, 37);
923
-
924
- /**
925
- * @generated from message chat.v1.DeleteAttachmentResponse
926
- */
927
- export type DeleteAttachmentResponse = Message$1<"chat.v1.DeleteAttachmentResponse"> & {
928
- };
929
-
930
- /**
931
- * Describes the message chat.v1.DeleteAttachmentResponse.
932
- * Use `create(DeleteAttachmentResponseSchema)` to create a new message.
933
- */
934
- export const DeleteAttachmentResponseSchema: GenMessage<DeleteAttachmentResponse> = /*@__PURE__*/
935
- messageDesc(file_protos_chat_v1_chat, 38);
936
-
937
- /**
938
- * @generated from service chat.v1.ChatService
939
- */
940
- export const ChatService: GenService<{
941
- /**
942
- * @generated from rpc chat.v1.ChatService.CreateUser
943
- */
944
- createUser: {
945
- methodKind: "unary";
946
- input: typeof CreateUserRequestSchema;
947
- output: typeof CreateUserResponseSchema;
948
- },
949
- /**
950
- * @generated from rpc chat.v1.ChatService.GetUser
951
- */
952
- getUser: {
953
- methodKind: "unary";
954
- input: typeof GetUserRequestSchema;
955
- output: typeof GetUserResponseSchema;
956
- },
957
- /**
958
- * @generated from rpc chat.v1.ChatService.GetUserByUsername
959
- */
960
- getUserByUsername: {
961
- methodKind: "unary";
962
- input: typeof GetUserByUsernameRequestSchema;
963
- output: typeof GetUserResponseSchema;
964
- },
965
- /**
966
- * @generated from rpc chat.v1.ChatService.CreateConversation
967
- */
968
- createConversation: {
969
- methodKind: "unary";
970
- input: typeof CreateConversationRequestSchema;
971
- output: typeof CreateConversationResponseSchema;
972
- },
973
- /**
974
- * @generated from rpc chat.v1.ChatService.GetConversation
975
- */
976
- getConversation: {
977
- methodKind: "unary";
978
- input: typeof GetConversationRequestSchema;
979
- output: typeof GetConversationResponseSchema;
980
- },
981
- /**
982
- * @generated from rpc chat.v1.ChatService.UpdateConversation
983
- */
984
- updateConversation: {
985
- methodKind: "unary";
986
- input: typeof UpdateConversationRequestSchema;
987
- output: typeof UpdateConversationResponseSchema;
988
- },
989
- /**
990
- * @generated from rpc chat.v1.ChatService.DeleteConversation
991
- */
992
- deleteConversation: {
993
- methodKind: "unary";
994
- input: typeof DeleteConversationRequestSchema;
995
- output: typeof DeleteConversationResponseSchema;
996
- },
997
- /**
998
- * @generated from rpc chat.v1.ChatService.AddConversationParticipant
999
- */
1000
- addConversationParticipant: {
1001
- methodKind: "unary";
1002
- input: typeof AddConversationParticipantRequestSchema;
1003
- output: typeof AddConversationParticipantResponseSchema;
1004
- },
1005
- /**
1006
- * @generated from rpc chat.v1.ChatService.RemoveConversationParticipant
1007
- */
1008
- removeConversationParticipant: {
1009
- methodKind: "unary";
1010
- input: typeof RemoveConversationParticipantRequestSchema;
1011
- output: typeof RemoveConversationParticipantResponseSchema;
1012
- },
1013
- /**
1014
- * @generated from rpc chat.v1.ChatService.ListMessages
1015
- */
1016
- listMessages: {
1017
- methodKind: "unary";
1018
- input: typeof ListMessagesRequestSchema;
1019
- output: typeof ListMessagesResponseSchema;
1020
- },
1021
- /**
1022
- * @generated from rpc chat.v1.ChatService.CreateMessage
1023
- */
1024
- createMessage: {
1025
- methodKind: "unary";
1026
- input: typeof CreateMessageRequestSchema;
1027
- output: typeof CreateMessageResponseSchema;
1028
- },
1029
- /**
1030
- * @generated from rpc chat.v1.ChatService.UpdateMessage
1031
- */
1032
- updateMessage: {
1033
- methodKind: "unary";
1034
- input: typeof UpdateMessageRequestSchema;
1035
- output: typeof UpdateMessageResponseSchema;
1036
- },
1037
- /**
1038
- * @generated from rpc chat.v1.ChatService.DeleteMessage
1039
- */
1040
- deleteMessage: {
1041
- methodKind: "unary";
1042
- input: typeof DeleteMessageRequestSchema;
1043
- output: typeof DeleteMessageResponseSchema;
1044
- },
1045
- /**
1046
- * @generated from rpc chat.v1.ChatService.CreateAttachmentUpload
1047
- */
1048
- createAttachmentUpload: {
1049
- methodKind: "unary";
1050
- input: typeof CreateAttachmentUploadRequestSchema;
1051
- output: typeof CreateAttachmentUploadResponseSchema;
1052
- },
1053
- /**
1054
- * @generated from rpc chat.v1.ChatService.FinalizeAttachment
1055
- */
1056
- finalizeAttachment: {
1057
- methodKind: "unary";
1058
- input: typeof FinalizeAttachmentRequestSchema;
1059
- output: typeof FinalizeAttachmentResponseSchema;
1060
- },
1061
- /**
1062
- * @generated from rpc chat.v1.ChatService.GetAttachment
1063
- */
1064
- getAttachment: {
1065
- methodKind: "unary";
1066
- input: typeof GetAttachmentRequestSchema;
1067
- output: typeof GetAttachmentResponseSchema;
1068
- },
1069
- /**
1070
- * @generated from rpc chat.v1.ChatService.DeleteAttachment
1071
- */
1072
- deleteAttachment: {
1073
- methodKind: "unary";
1074
- input: typeof DeleteAttachmentRequestSchema;
1075
- output: typeof DeleteAttachmentResponseSchema;
1076
- },
1077
- }> = /*@__PURE__*/
1078
- serviceDesc(file_protos_chat_v1_chat, 0);