@chaty-app/proto 0.1.42 → 0.1.43

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 (41) hide show
  1. package/dist/node/service/v1/channels_db.d.ts +1 -12
  2. package/dist/node/service/v1/channels_db.d.ts.map +1 -1
  3. package/dist/node/service/v1/channels_db.js +1 -68
  4. package/dist/node/service/v1/channels_db.js.map +1 -1
  5. package/dist/node/service/v1/index.d.ts +2 -0
  6. package/dist/node/service/v1/index.d.ts.map +1 -1
  7. package/dist/node/service/v1/index.js +2 -0
  8. package/dist/node/service/v1/index.js.map +1 -1
  9. package/dist/node/service/v1/messages_db.d.ts +7 -6
  10. package/dist/node/service/v1/messages_db.d.ts.map +1 -1
  11. package/dist/node/service/v1/messages_db.js +44 -28
  12. package/dist/node/service/v1/messages_db.js.map +1 -1
  13. package/dist/node/service/v1/roles_db.d.ts +47 -0
  14. package/dist/node/service/v1/roles_db.d.ts.map +1 -0
  15. package/dist/node/service/v1/roles_db.js +195 -0
  16. package/dist/node/service/v1/roles_db.js.map +1 -0
  17. package/dist/node/service/v1/servers_db.d.ts +89 -0
  18. package/dist/node/service/v1/servers_db.d.ts.map +1 -0
  19. package/dist/node/service/v1/servers_db.js +690 -0
  20. package/dist/node/service/v1/servers_db.js.map +1 -0
  21. package/dist/web/service/v1/channels_db_pb.d.ts +1 -26
  22. package/dist/web/service/v1/channels_db_pb.d.ts.map +1 -1
  23. package/dist/web/service/v1/channels_db_pb.js +7 -11
  24. package/dist/web/service/v1/channels_db_pb.js.map +1 -1
  25. package/dist/web/service/v1/index.d.ts +2 -0
  26. package/dist/web/service/v1/index.d.ts.map +1 -1
  27. package/dist/web/service/v1/index.js +2 -0
  28. package/dist/web/service/v1/index.js.map +1 -1
  29. package/dist/web/service/v1/messages_db_pb.d.ts +16 -12
  30. package/dist/web/service/v1/messages_db_pb.d.ts.map +1 -1
  31. package/dist/web/service/v1/messages_db_pb.js +1 -1
  32. package/dist/web/service/v1/messages_db_pb.js.map +1 -1
  33. package/dist/web/service/v1/roles_db_pb.d.ts +73 -0
  34. package/dist/web/service/v1/roles_db_pb.d.ts.map +1 -0
  35. package/dist/web/service/v1/roles_db_pb.js +20 -0
  36. package/dist/web/service/v1/roles_db_pb.js.map +1 -0
  37. package/dist/web/service/v1/servers_db_pb.d.ts +197 -0
  38. package/dist/web/service/v1/servers_db_pb.d.ts.map +1 -0
  39. package/dist/web/service/v1/servers_db_pb.js +32 -0
  40. package/dist/web/service/v1/servers_db_pb.js.map +1 -0
  41. package/package.json +1 -1
@@ -0,0 +1,197 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Role } from "./roles_db_pb.js";
3
+ import type { File } from "../../shared/v1/files_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file service/v1/servers_db.proto.
7
+ */
8
+ export declare const file_service_v1_servers_db: GenFile;
9
+ /**
10
+ * @generated from message service.v1.Server
11
+ */
12
+ export type Server = Message<"service.v1.Server"> & {
13
+ /**
14
+ * @generated from field: string id = 1;
15
+ */
16
+ id: string;
17
+ /**
18
+ * @generated from field: string owner_id = 2;
19
+ */
20
+ ownerId: string;
21
+ /**
22
+ * @generated from field: string name = 3;
23
+ */
24
+ name: string;
25
+ /**
26
+ * Description for the server
27
+ *
28
+ * @generated from field: optional string description = 4;
29
+ */
30
+ description?: string;
31
+ /**
32
+ * Default set of server and channel permissions
33
+ *
34
+ * @generated from field: int64 default_permissions = 5;
35
+ */
36
+ defaultPermissions: bigint;
37
+ /**
38
+ * Icon attachment
39
+ *
40
+ * @generated from field: optional shared.v1.File icon = 6;
41
+ */
42
+ icon?: File;
43
+ /**
44
+ * Banner attachment
45
+ *
46
+ * @generated from field: optional shared.v1.File banner = 7;
47
+ */
48
+ banner?: File;
49
+ /**
50
+ * Bitfield of server flags
51
+ *
52
+ * @generated from field: optional int32 flags = 8;
53
+ */
54
+ flags?: number;
55
+ /**
56
+ * Whether this server is flagged as not safe for work
57
+ *
58
+ * @generated from field: bool nsfw = 9;
59
+ */
60
+ nsfw: boolean;
61
+ /**
62
+ * Whether to enable analytics
63
+ *
64
+ * @generated from field: bool analytics = 10;
65
+ */
66
+ analytics: boolean;
67
+ /**
68
+ * Whether this server should be publicly discoverable
69
+ *
70
+ * @generated from field: bool discoverable = 11;
71
+ */
72
+ discoverable: boolean;
73
+ /**
74
+ * Roles for this server
75
+ *
76
+ * @generated from field: map<string, service.v1.Role> roles = 12;
77
+ */
78
+ roles: {
79
+ [key: string]: Role;
80
+ };
81
+ /**
82
+ * Categories for this server
83
+ *
84
+ * @generated from field: repeated service.v1.Category categories = 13;
85
+ */
86
+ categories: Category[];
87
+ /**
88
+ * Configuration for sending system event messages
89
+ *
90
+ * @generated from field: optional service.v1.ServerSystemMessagesChannels system_messages = 14;
91
+ */
92
+ systemMessages?: ServerSystemMessagesChannels;
93
+ /**
94
+ * @generated from field: service.v1.ServerStats stats = 15;
95
+ */
96
+ stats?: ServerStats;
97
+ /**
98
+ * Channels within this server
99
+ *
100
+ * @generated from field: repeated string channels = 16;
101
+ */
102
+ channels: string[];
103
+ /**
104
+ * @generated from field: int64 created_at = 17;
105
+ */
106
+ createdAt: bigint;
107
+ /**
108
+ * @generated from field: int64 updated_at = 18;
109
+ */
110
+ updatedAt: bigint;
111
+ };
112
+ /**
113
+ * Describes the message service.v1.Server.
114
+ * Use `create(ServerSchema)` to create a new message.
115
+ */
116
+ export declare const ServerSchema: GenMessage<Server>;
117
+ /**
118
+ * @generated from message service.v1.Category
119
+ */
120
+ export type Category = Message<"service.v1.Category"> & {
121
+ /**
122
+ * Unique ID for this category (1-32 chars)
123
+ *
124
+ * @generated from field: string id = 1;
125
+ */
126
+ id: string;
127
+ /**
128
+ * Title for this category (1-32 chars)
129
+ *
130
+ * @generated from field: string title = 2;
131
+ */
132
+ title: string;
133
+ /**
134
+ * Channels in this category
135
+ *
136
+ * @generated from field: repeated string channels = 3;
137
+ */
138
+ channels: string[];
139
+ };
140
+ /**
141
+ * Describes the message service.v1.Category.
142
+ * Use `create(CategorySchema)` to create a new message.
143
+ */
144
+ export declare const CategorySchema: GenMessage<Category>;
145
+ /**
146
+ * @generated from message service.v1.ServerSystemMessagesChannels
147
+ */
148
+ export type ServerSystemMessagesChannels = Message<"service.v1.ServerSystemMessagesChannels"> & {
149
+ /**
150
+ * ID of channel to send user join messages in (optional)
151
+ *
152
+ * @generated from field: optional string user_joined = 1;
153
+ */
154
+ userJoined?: string;
155
+ /**
156
+ * ID of channel to send user left messages in (optional)
157
+ *
158
+ * @generated from field: optional string user_left = 2;
159
+ */
160
+ userLeft?: string;
161
+ /**
162
+ * ID of channel to send user kicked messages in (optional)
163
+ *
164
+ * @generated from field: optional string user_kicked = 3;
165
+ */
166
+ userKicked?: string;
167
+ /**
168
+ * ID of channel to send user banned messages in (optional)
169
+ *
170
+ * @generated from field: optional string user_banned = 4;
171
+ */
172
+ userBanned?: string;
173
+ };
174
+ /**
175
+ * Describes the message service.v1.ServerSystemMessagesChannels.
176
+ * Use `create(ServerSystemMessagesChannelsSchema)` to create a new message.
177
+ */
178
+ export declare const ServerSystemMessagesChannelsSchema: GenMessage<ServerSystemMessagesChannels>;
179
+ /**
180
+ * @generated from message service.v1.ServerStats
181
+ */
182
+ export type ServerStats = Message<"service.v1.ServerStats"> & {
183
+ /**
184
+ * @generated from field: int32 members_count = 1;
185
+ */
186
+ membersCount: number;
187
+ /**
188
+ * @generated from field: int32 channels_count = 2;
189
+ */
190
+ channelsCount: number;
191
+ };
192
+ /**
193
+ * Describes the message service.v1.ServerStats.
194
+ * Use `create(ServerStatsSchema)` to create a new message.
195
+ */
196
+ export declare const ServerStatsSchema: GenMessage<ServerStats>;
197
+ //# sourceMappingURL=servers_db_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"servers_db_pb.d.ts","sourceRoot":"","sources":["../../../../src/web/service/v1/servers_db_pb.ts"],"names":[],"mappings":"AAIA,OA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OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,MAAM,CACA,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC,qBAAqB,CAAC,GAAG;IACtD;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,QAAQ,CACJ,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,OAAO,CAAC,yCAAyC,CAAC,GAAG;IAC9F;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kCAAkC,EAAE,UAAU,CAAC,4BAA4B,CAC5C,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,wBAAwB,CAAC,GAAG;IAC5D;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,WAAW,CACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-es v2.10.2 with parameter "target=ts,import_extension=js"
2
+ // @generated from file service/v1/servers_db.proto (package service.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_service_v1_roles_db } from "./roles_db_pb.js";
6
+ import { file_shared_v1_error } from "../../shared/v1/error_pb.js";
7
+ import { file_shared_v1_files } from "../../shared/v1/files_pb.js";
8
+ /**
9
+ * Describes the file service/v1/servers_db.proto.
10
+ */
11
+ export const file_service_v1_servers_db = /*@__PURE__*/ fileDesc("ChtzZXJ2aWNlL3YxL3NlcnZlcnNfZGIucHJvdG8SCnNlcnZpY2UudjEihAUKBlNlcnZlchIKCgJpZBgBIAEoCRIQCghvd25lcl9pZBgCIAEoCRIMCgRuYW1lGAMgASgJEhgKC2Rlc2NyaXB0aW9uGAQgASgJSACIAQESGwoTZGVmYXVsdF9wZXJtaXNzaW9ucxgFIAEoAxIiCgRpY29uGAYgASgLMg8uc2hhcmVkLnYxLkZpbGVIAYgBARIkCgZiYW5uZXIYByABKAsyDy5zaGFyZWQudjEuRmlsZUgCiAEBEhIKBWZsYWdzGAggASgFSAOIAQESDAoEbnNmdxgJIAEoCBIRCglhbmFseXRpY3MYCiABKAgSFAoMZGlzY292ZXJhYmxlGAsgASgIEiwKBXJvbGVzGAwgAygLMh0uc2VydmljZS52MS5TZXJ2ZXIuUm9sZXNFbnRyeRIoCgpjYXRlZ29yaWVzGA0gAygLMhQuc2VydmljZS52MS5DYXRlZ29yeRJGCg9zeXN0ZW1fbWVzc2FnZXMYDiABKAsyKC5zZXJ2aWNlLnYxLlNlcnZlclN5c3RlbU1lc3NhZ2VzQ2hhbm5lbHNIBIgBARImCgVzdGF0cxgPIAEoCzIXLnNlcnZpY2UudjEuU2VydmVyU3RhdHMSEAoIY2hhbm5lbHMYECADKAkSEgoKY3JlYXRlZF9hdBgRIAEoAxISCgp1cGRhdGVkX2F0GBIgASgDGj4KClJvbGVzRW50cnkSCwoDa2V5GAEgASgJEh8KBXZhbHVlGAIgASgLMhAuc2VydmljZS52MS5Sb2xlOgI4AUIOCgxfZGVzY3JpcHRpb25CBwoFX2ljb25CCQoHX2Jhbm5lckIICgZfZmxhZ3NCEgoQX3N5c3RlbV9tZXNzYWdlcyI3CghDYXRlZ29yeRIKCgJpZBgBIAEoCRINCgV0aXRsZRgCIAEoCRIQCghjaGFubmVscxgDIAMoCSLCAQocU2VydmVyU3lzdGVtTWVzc2FnZXNDaGFubmVscxIYCgt1c2VyX2pvaW5lZBgBIAEoCUgAiAEBEhYKCXVzZXJfbGVmdBgCIAEoCUgBiAEBEhgKC3VzZXJfa2lja2VkGAMgASgJSAKIAQESGAoLdXNlcl9iYW5uZWQYBCABKAlIA4gBAUIOCgxfdXNlcl9qb2luZWRCDAoKX3VzZXJfbGVmdEIOCgxfdXNlcl9raWNrZWRCDgoMX3VzZXJfYmFubmVkIjwKC1NlcnZlclN0YXRzEhUKDW1lbWJlcnNfY291bnQYASABKAUSFgoOY2hhbm5lbHNfY291bnQYAiABKAViBnByb3RvMw", [file_service_v1_roles_db, file_shared_v1_error, file_shared_v1_files]);
12
+ /**
13
+ * Describes the message service.v1.Server.
14
+ * Use `create(ServerSchema)` to create a new message.
15
+ */
16
+ export const ServerSchema = /*@__PURE__*/ messageDesc(file_service_v1_servers_db, 0);
17
+ /**
18
+ * Describes the message service.v1.Category.
19
+ * Use `create(CategorySchema)` to create a new message.
20
+ */
21
+ export const CategorySchema = /*@__PURE__*/ messageDesc(file_service_v1_servers_db, 1);
22
+ /**
23
+ * Describes the message service.v1.ServerSystemMessagesChannels.
24
+ * Use `create(ServerSystemMessagesChannelsSchema)` to create a new message.
25
+ */
26
+ export const ServerSystemMessagesChannelsSchema = /*@__PURE__*/ messageDesc(file_service_v1_servers_db, 2);
27
+ /**
28
+ * Describes the message service.v1.ServerStats.
29
+ * Use `create(ServerStatsSchema)` to create a new message.
30
+ */
31
+ export const ServerStatsSchema = /*@__PURE__*/ messageDesc(file_service_v1_servers_db, 3);
32
+ //# sourceMappingURL=servers_db_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"servers_db_pb.js","sourceRoot":"","sources":["../../../../src/web/service/v1/servers_db_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,uFAAuF;AACvF,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAErE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAY,aAAa,CAC9D,QAAQ,CAAC,w0CAAw0C,EAAE,CAAC,wBAAwB,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC,CAAC;AAyH75C;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAuB,aAAa,CAC3D,WAAW,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC;AA4B7C;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAyB,aAAa,CAC/D,WAAW,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC;AAmC7C;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAA6C,aAAa,CACvG,WAAW,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC;AAiB7C;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA4B,aAAa,CACrE,WAAW,CAAC,0BAA0B,EAAE,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaty-app/proto",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "TypeScript Protobuf bindings for Chaty (Pure ESM)",
5
5
  "license": "MIT",
6
6
  "type": "module",