@atproto/bsync 0.0.0-spaces-alpha-20260818021221

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 (132) hide show
  1. package/CHANGELOG.md +339 -0
  2. package/LICENSE.txt +7 -0
  3. package/README.md +15 -0
  4. package/dist/client.d.ts +7 -0
  5. package/dist/client.d.ts.map +1 -0
  6. package/dist/client.js +12 -0
  7. package/dist/client.js.map +1 -0
  8. package/dist/config.d.ts +37 -0
  9. package/dist/config.d.ts.map +1 -0
  10. package/dist/config.js +45 -0
  11. package/dist/config.js.map +1 -0
  12. package/dist/context.d.ts +25 -0
  13. package/dist/context.d.ts.map +1 -0
  14. package/dist/context.js +21 -0
  15. package/dist/context.js.map +1 -0
  16. package/dist/db/index.d.ts +32 -0
  17. package/dist/db/index.d.ts.map +1 -0
  18. package/dist/db/index.js +150 -0
  19. package/dist/db/index.js.map +1 -0
  20. package/dist/db/migrations/20240108T220751294Z-init.d.ts +4 -0
  21. package/dist/db/migrations/20240108T220751294Z-init.d.ts.map +1 -0
  22. package/dist/db/migrations/20240108T220751294Z-init.js +23 -0
  23. package/dist/db/migrations/20240108T220751294Z-init.js.map +1 -0
  24. package/dist/db/migrations/20240717T224303472Z-notif-ops.d.ts +4 -0
  25. package/dist/db/migrations/20240717T224303472Z-notif-ops.d.ts.map +1 -0
  26. package/dist/db/migrations/20240717T224303472Z-notif-ops.js +21 -0
  27. package/dist/db/migrations/20240717T224303472Z-notif-ops.js.map +1 -0
  28. package/dist/db/migrations/20250527T022203400Z-add-operation.d.ts +4 -0
  29. package/dist/db/migrations/20250527T022203400Z-add-operation.d.ts.map +1 -0
  30. package/dist/db/migrations/20250527T022203400Z-add-operation.js +17 -0
  31. package/dist/db/migrations/20250527T022203400Z-add-operation.js.map +1 -0
  32. package/dist/db/migrations/20250603T163446567Z-alter-operation.d.ts +4 -0
  33. package/dist/db/migrations/20250603T163446567Z-alter-operation.d.ts.map +1 -0
  34. package/dist/db/migrations/20250603T163446567Z-alter-operation.js +15 -0
  35. package/dist/db/migrations/20250603T163446567Z-alter-operation.js.map +1 -0
  36. package/dist/db/migrations/20260618T200000000Z-add-mute-scope.d.ts +4 -0
  37. package/dist/db/migrations/20260618T200000000Z-add-mute-scope.d.ts.map +1 -0
  38. package/dist/db/migrations/20260618T200000000Z-add-mute-scope.js +27 -0
  39. package/dist/db/migrations/20260618T200000000Z-add-mute-scope.js.map +1 -0
  40. package/dist/db/migrations/index.d.ts +6 -0
  41. package/dist/db/migrations/index.d.ts.map +1 -0
  42. package/dist/db/migrations/index.js +9 -0
  43. package/dist/db/migrations/index.js.map +1 -0
  44. package/dist/db/migrations/provider.d.ts +7 -0
  45. package/dist/db/migrations/provider.d.ts.map +1 -0
  46. package/dist/db/migrations/provider.js +9 -0
  47. package/dist/db/migrations/provider.js.map +1 -0
  48. package/dist/db/schema/index.d.ts +9 -0
  49. package/dist/db/schema/index.d.ts.map +1 -0
  50. package/dist/db/schema/index.js +2 -0
  51. package/dist/db/schema/index.js.map +1 -0
  52. package/dist/db/schema/mute_item.d.ts +14 -0
  53. package/dist/db/schema/mute_item.d.ts.map +1 -0
  54. package/dist/db/schema/mute_item.js +2 -0
  55. package/dist/db/schema/mute_item.js.map +1 -0
  56. package/dist/db/schema/mute_op.d.ts +18 -0
  57. package/dist/db/schema/mute_op.d.ts.map +1 -0
  58. package/dist/db/schema/mute_op.js +3 -0
  59. package/dist/db/schema/mute_op.js.map +1 -0
  60. package/dist/db/schema/notif_item.d.ts +12 -0
  61. package/dist/db/schema/notif_item.d.ts.map +1 -0
  62. package/dist/db/schema/notif_item.js +2 -0
  63. package/dist/db/schema/notif_item.js.map +1 -0
  64. package/dist/db/schema/notif_op.d.ts +14 -0
  65. package/dist/db/schema/notif_op.d.ts.map +1 -0
  66. package/dist/db/schema/notif_op.js +3 -0
  67. package/dist/db/schema/notif_op.js.map +1 -0
  68. package/dist/db/schema/operation.d.ts +18 -0
  69. package/dist/db/schema/operation.d.ts.map +1 -0
  70. package/dist/db/schema/operation.js +3 -0
  71. package/dist/db/schema/operation.js.map +1 -0
  72. package/dist/db/types.d.ts +15 -0
  73. package/dist/db/types.d.ts.map +1 -0
  74. package/dist/db/types.js +2 -0
  75. package/dist/db/types.js.map +1 -0
  76. package/dist/index.d.ts +26 -0
  77. package/dist/index.d.ts.map +1 -0
  78. package/dist/index.js +106 -0
  79. package/dist/index.js.map +1 -0
  80. package/dist/logger.d.ts +6 -0
  81. package/dist/logger.d.ts.map +1 -0
  82. package/dist/logger.js +22 -0
  83. package/dist/logger.js.map +1 -0
  84. package/dist/proto/bsync_connect.d.ts +87 -0
  85. package/dist/proto/bsync_connect.d.ts.map +1 -0
  86. package/dist/proto/bsync_connect.js +91 -0
  87. package/dist/proto/bsync_connect.js.map +1 -0
  88. package/dist/proto/bsync_pb.d.ts +481 -0
  89. package/dist/proto/bsync_pb.d.ts.map +1 -0
  90. package/dist/proto/bsync_pb.js +751 -0
  91. package/dist/proto/bsync_pb.js.map +1 -0
  92. package/dist/routes/add-mute-operation.d.ts +6 -0
  93. package/dist/routes/add-mute-operation.d.ts.map +1 -0
  94. package/dist/routes/add-mute-operation.js +128 -0
  95. package/dist/routes/add-mute-operation.js.map +1 -0
  96. package/dist/routes/add-notif-operation.d.ts +6 -0
  97. package/dist/routes/add-notif-operation.d.ts.map +1 -0
  98. package/dist/routes/add-notif-operation.js +61 -0
  99. package/dist/routes/add-notif-operation.js.map +1 -0
  100. package/dist/routes/auth.d.ts +4 -0
  101. package/dist/routes/auth.d.ts.map +1 -0
  102. package/dist/routes/auth.js +13 -0
  103. package/dist/routes/auth.js.map +1 -0
  104. package/dist/routes/delete-operations.d.ts +6 -0
  105. package/dist/routes/delete-operations.d.ts.map +1 -0
  106. package/dist/routes/delete-operations.js +36 -0
  107. package/dist/routes/delete-operations.js.map +1 -0
  108. package/dist/routes/index.d.ts +5 -0
  109. package/dist/routes/index.d.ts.map +1 -0
  110. package/dist/routes/index.js +26 -0
  111. package/dist/routes/index.js.map +1 -0
  112. package/dist/routes/put-operation.d.ts +6 -0
  113. package/dist/routes/put-operation.d.ts.map +1 -0
  114. package/dist/routes/put-operation.js +78 -0
  115. package/dist/routes/put-operation.js.map +1 -0
  116. package/dist/routes/scan-mute-operations.d.ts +6 -0
  117. package/dist/routes/scan-mute-operations.d.ts.map +1 -0
  118. package/dist/routes/scan-mute-operations.js +57 -0
  119. package/dist/routes/scan-mute-operations.js.map +1 -0
  120. package/dist/routes/scan-notif-operations.d.ts +6 -0
  121. package/dist/routes/scan-notif-operations.d.ts.map +1 -0
  122. package/dist/routes/scan-notif-operations.js +54 -0
  123. package/dist/routes/scan-notif-operations.js.map +1 -0
  124. package/dist/routes/scan-operations.d.ts +6 -0
  125. package/dist/routes/scan-operations.d.ts.map +1 -0
  126. package/dist/routes/scan-operations.js +57 -0
  127. package/dist/routes/scan-operations.js.map +1 -0
  128. package/dist/routes/util.d.ts +6 -0
  129. package/dist/routes/util.d.ts.map +1 -0
  130. package/dist/routes/util.js +58 -0
  131. package/dist/routes/util.js.map +1 -0
  132. package/package.json +61 -0
@@ -0,0 +1,751 @@
1
+ // @generated by protoc-gen-es v1.6.0 with parameter "target=ts,import_extension="
2
+ // @generated from file bsync.proto (package bsync, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * @generated from enum bsync.Method
8
+ */
9
+ export var Method;
10
+ (function (Method) {
11
+ /**
12
+ * @generated from enum value: METHOD_UNSPECIFIED = 0;
13
+ */
14
+ Method[Method["UNSPECIFIED"] = 0] = "UNSPECIFIED";
15
+ /**
16
+ * @generated from enum value: METHOD_CREATE = 1;
17
+ */
18
+ Method[Method["CREATE"] = 1] = "CREATE";
19
+ /**
20
+ * @generated from enum value: METHOD_UPDATE = 2;
21
+ */
22
+ Method[Method["UPDATE"] = 2] = "UPDATE";
23
+ /**
24
+ * @generated from enum value: METHOD_DELETE = 3;
25
+ */
26
+ Method[Method["DELETE"] = 3] = "DELETE";
27
+ })(Method || (Method = {}));
28
+ // Retrieve enum metadata with: proto3.getEnumType(Method)
29
+ proto3.util.setEnumType(Method, "bsync.Method", [
30
+ { no: 0, name: "METHOD_UNSPECIFIED" },
31
+ { no: 1, name: "METHOD_CREATE" },
32
+ { no: 2, name: "METHOD_UPDATE" },
33
+ { no: 3, name: "METHOD_DELETE" },
34
+ ]);
35
+ /**
36
+ * @generated from message bsync.MuteOperation
37
+ */
38
+ export class MuteOperation extends Message {
39
+ constructor(data) {
40
+ super();
41
+ /**
42
+ * @generated from field: string id = 1;
43
+ */
44
+ this.id = "";
45
+ /**
46
+ * @generated from field: bsync.MuteOperation.Type type = 2;
47
+ */
48
+ this.type = MuteOperation_Type.UNSPECIFIED;
49
+ /**
50
+ * @generated from field: string actor_did = 3;
51
+ */
52
+ this.actorDid = "";
53
+ /**
54
+ * @generated from field: string subject = 4;
55
+ */
56
+ this.subject = "";
57
+ /**
58
+ * scope restrictions: when any is set, just the scoped content is muted;
59
+ * when none are set, the subject is fully muted.
60
+ *
61
+ * @generated from field: bool only_reposts = 5;
62
+ */
63
+ this.onlyReposts = false;
64
+ /**
65
+ * @generated from field: bool only_quoteposts = 6;
66
+ */
67
+ this.onlyQuoteposts = false;
68
+ proto3.util.initPartial(data, this);
69
+ }
70
+ static { this.runtime = proto3; }
71
+ static { this.typeName = "bsync.MuteOperation"; }
72
+ static { this.fields = proto3.util.newFieldList(() => [
73
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
74
+ { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(MuteOperation_Type) },
75
+ { no: 3, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
76
+ { no: 4, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
77
+ { no: 5, name: "only_reposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
78
+ { no: 6, name: "only_quoteposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
79
+ ]); }
80
+ static fromBinary(bytes, options) {
81
+ return new MuteOperation().fromBinary(bytes, options);
82
+ }
83
+ static fromJson(jsonValue, options) {
84
+ return new MuteOperation().fromJson(jsonValue, options);
85
+ }
86
+ static fromJsonString(jsonString, options) {
87
+ return new MuteOperation().fromJsonString(jsonString, options);
88
+ }
89
+ static equals(a, b) {
90
+ return proto3.util.equals(MuteOperation, a, b);
91
+ }
92
+ }
93
+ /**
94
+ * @generated from enum bsync.MuteOperation.Type
95
+ */
96
+ export var MuteOperation_Type;
97
+ (function (MuteOperation_Type) {
98
+ /**
99
+ * @generated from enum value: TYPE_UNSPECIFIED = 0;
100
+ */
101
+ MuteOperation_Type[MuteOperation_Type["UNSPECIFIED"] = 0] = "UNSPECIFIED";
102
+ /**
103
+ * @generated from enum value: TYPE_ADD = 1;
104
+ */
105
+ MuteOperation_Type[MuteOperation_Type["ADD"] = 1] = "ADD";
106
+ /**
107
+ * @generated from enum value: TYPE_REMOVE = 2;
108
+ */
109
+ MuteOperation_Type[MuteOperation_Type["REMOVE"] = 2] = "REMOVE";
110
+ /**
111
+ * @generated from enum value: TYPE_CLEAR = 3;
112
+ */
113
+ MuteOperation_Type[MuteOperation_Type["CLEAR"] = 3] = "CLEAR";
114
+ })(MuteOperation_Type || (MuteOperation_Type = {}));
115
+ // Retrieve enum metadata with: proto3.getEnumType(MuteOperation_Type)
116
+ proto3.util.setEnumType(MuteOperation_Type, "bsync.MuteOperation.Type", [
117
+ { no: 0, name: "TYPE_UNSPECIFIED" },
118
+ { no: 1, name: "TYPE_ADD" },
119
+ { no: 2, name: "TYPE_REMOVE" },
120
+ { no: 3, name: "TYPE_CLEAR" },
121
+ ]);
122
+ /**
123
+ * @generated from message bsync.AddMuteOperationRequest
124
+ */
125
+ export class AddMuteOperationRequest extends Message {
126
+ constructor(data) {
127
+ super();
128
+ /**
129
+ * @generated from field: bsync.MuteOperation.Type type = 1;
130
+ */
131
+ this.type = MuteOperation_Type.UNSPECIFIED;
132
+ /**
133
+ * @generated from field: string actor_did = 2;
134
+ */
135
+ this.actorDid = "";
136
+ /**
137
+ * @generated from field: string subject = 3;
138
+ */
139
+ this.subject = "";
140
+ /**
141
+ * scope restrictions: when any is set, just the scoped content is muted;
142
+ * when none are set, the subject is fully muted. On an add for an
143
+ * already-muted subject, the stored scope is replaced with this one.
144
+ *
145
+ * @generated from field: bool only_reposts = 4;
146
+ */
147
+ this.onlyReposts = false;
148
+ /**
149
+ * @generated from field: bool only_quoteposts = 5;
150
+ */
151
+ this.onlyQuoteposts = false;
152
+ proto3.util.initPartial(data, this);
153
+ }
154
+ static { this.runtime = proto3; }
155
+ static { this.typeName = "bsync.AddMuteOperationRequest"; }
156
+ static { this.fields = proto3.util.newFieldList(() => [
157
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(MuteOperation_Type) },
158
+ { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
159
+ { no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
160
+ { no: 4, name: "only_reposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
161
+ { no: 5, name: "only_quoteposts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
162
+ ]); }
163
+ static fromBinary(bytes, options) {
164
+ return new AddMuteOperationRequest().fromBinary(bytes, options);
165
+ }
166
+ static fromJson(jsonValue, options) {
167
+ return new AddMuteOperationRequest().fromJson(jsonValue, options);
168
+ }
169
+ static fromJsonString(jsonString, options) {
170
+ return new AddMuteOperationRequest().fromJsonString(jsonString, options);
171
+ }
172
+ static equals(a, b) {
173
+ return proto3.util.equals(AddMuteOperationRequest, a, b);
174
+ }
175
+ }
176
+ /**
177
+ * @generated from message bsync.AddMuteOperationResponse
178
+ */
179
+ export class AddMuteOperationResponse extends Message {
180
+ constructor(data) {
181
+ super();
182
+ proto3.util.initPartial(data, this);
183
+ }
184
+ static { this.runtime = proto3; }
185
+ static { this.typeName = "bsync.AddMuteOperationResponse"; }
186
+ static { this.fields = proto3.util.newFieldList(() => [
187
+ { no: 1, name: "operation", kind: "message", T: MuteOperation },
188
+ ]); }
189
+ static fromBinary(bytes, options) {
190
+ return new AddMuteOperationResponse().fromBinary(bytes, options);
191
+ }
192
+ static fromJson(jsonValue, options) {
193
+ return new AddMuteOperationResponse().fromJson(jsonValue, options);
194
+ }
195
+ static fromJsonString(jsonString, options) {
196
+ return new AddMuteOperationResponse().fromJsonString(jsonString, options);
197
+ }
198
+ static equals(a, b) {
199
+ return proto3.util.equals(AddMuteOperationResponse, a, b);
200
+ }
201
+ }
202
+ /**
203
+ * @generated from message bsync.ScanMuteOperationsRequest
204
+ */
205
+ export class ScanMuteOperationsRequest extends Message {
206
+ constructor(data) {
207
+ super();
208
+ /**
209
+ * @generated from field: string cursor = 1;
210
+ */
211
+ this.cursor = "";
212
+ /**
213
+ * @generated from field: int32 limit = 2;
214
+ */
215
+ this.limit = 0;
216
+ proto3.util.initPartial(data, this);
217
+ }
218
+ static { this.runtime = proto3; }
219
+ static { this.typeName = "bsync.ScanMuteOperationsRequest"; }
220
+ static { this.fields = proto3.util.newFieldList(() => [
221
+ { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
222
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
223
+ ]); }
224
+ static fromBinary(bytes, options) {
225
+ return new ScanMuteOperationsRequest().fromBinary(bytes, options);
226
+ }
227
+ static fromJson(jsonValue, options) {
228
+ return new ScanMuteOperationsRequest().fromJson(jsonValue, options);
229
+ }
230
+ static fromJsonString(jsonString, options) {
231
+ return new ScanMuteOperationsRequest().fromJsonString(jsonString, options);
232
+ }
233
+ static equals(a, b) {
234
+ return proto3.util.equals(ScanMuteOperationsRequest, a, b);
235
+ }
236
+ }
237
+ /**
238
+ * @generated from message bsync.ScanMuteOperationsResponse
239
+ */
240
+ export class ScanMuteOperationsResponse extends Message {
241
+ constructor(data) {
242
+ super();
243
+ /**
244
+ * @generated from field: repeated bsync.MuteOperation operations = 1;
245
+ */
246
+ this.operations = [];
247
+ /**
248
+ * @generated from field: string cursor = 2;
249
+ */
250
+ this.cursor = "";
251
+ proto3.util.initPartial(data, this);
252
+ }
253
+ static { this.runtime = proto3; }
254
+ static { this.typeName = "bsync.ScanMuteOperationsResponse"; }
255
+ static { this.fields = proto3.util.newFieldList(() => [
256
+ { no: 1, name: "operations", kind: "message", T: MuteOperation, repeated: true },
257
+ { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
258
+ ]); }
259
+ static fromBinary(bytes, options) {
260
+ return new ScanMuteOperationsResponse().fromBinary(bytes, options);
261
+ }
262
+ static fromJson(jsonValue, options) {
263
+ return new ScanMuteOperationsResponse().fromJson(jsonValue, options);
264
+ }
265
+ static fromJsonString(jsonString, options) {
266
+ return new ScanMuteOperationsResponse().fromJsonString(jsonString, options);
267
+ }
268
+ static equals(a, b) {
269
+ return proto3.util.equals(ScanMuteOperationsResponse, a, b);
270
+ }
271
+ }
272
+ /**
273
+ * @generated from message bsync.NotifOperation
274
+ */
275
+ export class NotifOperation extends Message {
276
+ constructor(data) {
277
+ super();
278
+ /**
279
+ * @generated from field: string id = 1;
280
+ */
281
+ this.id = "";
282
+ /**
283
+ * @generated from field: string actor_did = 2;
284
+ */
285
+ this.actorDid = "";
286
+ proto3.util.initPartial(data, this);
287
+ }
288
+ static { this.runtime = proto3; }
289
+ static { this.typeName = "bsync.NotifOperation"; }
290
+ static { this.fields = proto3.util.newFieldList(() => [
291
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
292
+ { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
293
+ { no: 3, name: "priority", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
294
+ ]); }
295
+ static fromBinary(bytes, options) {
296
+ return new NotifOperation().fromBinary(bytes, options);
297
+ }
298
+ static fromJson(jsonValue, options) {
299
+ return new NotifOperation().fromJson(jsonValue, options);
300
+ }
301
+ static fromJsonString(jsonString, options) {
302
+ return new NotifOperation().fromJsonString(jsonString, options);
303
+ }
304
+ static equals(a, b) {
305
+ return proto3.util.equals(NotifOperation, a, b);
306
+ }
307
+ }
308
+ /**
309
+ * @generated from message bsync.AddNotifOperationRequest
310
+ */
311
+ export class AddNotifOperationRequest extends Message {
312
+ constructor(data) {
313
+ super();
314
+ /**
315
+ * @generated from field: string actor_did = 1;
316
+ */
317
+ this.actorDid = "";
318
+ proto3.util.initPartial(data, this);
319
+ }
320
+ static { this.runtime = proto3; }
321
+ static { this.typeName = "bsync.AddNotifOperationRequest"; }
322
+ static { this.fields = proto3.util.newFieldList(() => [
323
+ { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
324
+ { no: 2, name: "priority", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
325
+ ]); }
326
+ static fromBinary(bytes, options) {
327
+ return new AddNotifOperationRequest().fromBinary(bytes, options);
328
+ }
329
+ static fromJson(jsonValue, options) {
330
+ return new AddNotifOperationRequest().fromJson(jsonValue, options);
331
+ }
332
+ static fromJsonString(jsonString, options) {
333
+ return new AddNotifOperationRequest().fromJsonString(jsonString, options);
334
+ }
335
+ static equals(a, b) {
336
+ return proto3.util.equals(AddNotifOperationRequest, a, b);
337
+ }
338
+ }
339
+ /**
340
+ * @generated from message bsync.AddNotifOperationResponse
341
+ */
342
+ export class AddNotifOperationResponse extends Message {
343
+ constructor(data) {
344
+ super();
345
+ proto3.util.initPartial(data, this);
346
+ }
347
+ static { this.runtime = proto3; }
348
+ static { this.typeName = "bsync.AddNotifOperationResponse"; }
349
+ static { this.fields = proto3.util.newFieldList(() => [
350
+ { no: 1, name: "operation", kind: "message", T: NotifOperation },
351
+ ]); }
352
+ static fromBinary(bytes, options) {
353
+ return new AddNotifOperationResponse().fromBinary(bytes, options);
354
+ }
355
+ static fromJson(jsonValue, options) {
356
+ return new AddNotifOperationResponse().fromJson(jsonValue, options);
357
+ }
358
+ static fromJsonString(jsonString, options) {
359
+ return new AddNotifOperationResponse().fromJsonString(jsonString, options);
360
+ }
361
+ static equals(a, b) {
362
+ return proto3.util.equals(AddNotifOperationResponse, a, b);
363
+ }
364
+ }
365
+ /**
366
+ * @generated from message bsync.ScanNotifOperationsRequest
367
+ */
368
+ export class ScanNotifOperationsRequest extends Message {
369
+ constructor(data) {
370
+ super();
371
+ /**
372
+ * @generated from field: string cursor = 1;
373
+ */
374
+ this.cursor = "";
375
+ /**
376
+ * @generated from field: int32 limit = 2;
377
+ */
378
+ this.limit = 0;
379
+ proto3.util.initPartial(data, this);
380
+ }
381
+ static { this.runtime = proto3; }
382
+ static { this.typeName = "bsync.ScanNotifOperationsRequest"; }
383
+ static { this.fields = proto3.util.newFieldList(() => [
384
+ { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
385
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
386
+ ]); }
387
+ static fromBinary(bytes, options) {
388
+ return new ScanNotifOperationsRequest().fromBinary(bytes, options);
389
+ }
390
+ static fromJson(jsonValue, options) {
391
+ return new ScanNotifOperationsRequest().fromJson(jsonValue, options);
392
+ }
393
+ static fromJsonString(jsonString, options) {
394
+ return new ScanNotifOperationsRequest().fromJsonString(jsonString, options);
395
+ }
396
+ static equals(a, b) {
397
+ return proto3.util.equals(ScanNotifOperationsRequest, a, b);
398
+ }
399
+ }
400
+ /**
401
+ * @generated from message bsync.ScanNotifOperationsResponse
402
+ */
403
+ export class ScanNotifOperationsResponse extends Message {
404
+ constructor(data) {
405
+ super();
406
+ /**
407
+ * @generated from field: repeated bsync.NotifOperation operations = 1;
408
+ */
409
+ this.operations = [];
410
+ /**
411
+ * @generated from field: string cursor = 2;
412
+ */
413
+ this.cursor = "";
414
+ proto3.util.initPartial(data, this);
415
+ }
416
+ static { this.runtime = proto3; }
417
+ static { this.typeName = "bsync.ScanNotifOperationsResponse"; }
418
+ static { this.fields = proto3.util.newFieldList(() => [
419
+ { no: 1, name: "operations", kind: "message", T: NotifOperation, repeated: true },
420
+ { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
421
+ ]); }
422
+ static fromBinary(bytes, options) {
423
+ return new ScanNotifOperationsResponse().fromBinary(bytes, options);
424
+ }
425
+ static fromJson(jsonValue, options) {
426
+ return new ScanNotifOperationsResponse().fromJson(jsonValue, options);
427
+ }
428
+ static fromJsonString(jsonString, options) {
429
+ return new ScanNotifOperationsResponse().fromJsonString(jsonString, options);
430
+ }
431
+ static equals(a, b) {
432
+ return proto3.util.equals(ScanNotifOperationsResponse, a, b);
433
+ }
434
+ }
435
+ /**
436
+ * @generated from message bsync.Operation
437
+ */
438
+ export class Operation extends Message {
439
+ constructor(data) {
440
+ super();
441
+ /**
442
+ * @generated from field: string id = 1;
443
+ */
444
+ this.id = "";
445
+ /**
446
+ * @generated from field: string actor_did = 2;
447
+ */
448
+ this.actorDid = "";
449
+ /**
450
+ * @generated from field: string namespace = 3;
451
+ */
452
+ this.namespace = "";
453
+ /**
454
+ * @generated from field: string key = 4;
455
+ */
456
+ this.key = "";
457
+ /**
458
+ * @generated from field: bsync.Method method = 5;
459
+ */
460
+ this.method = Method.UNSPECIFIED;
461
+ /**
462
+ * @generated from field: bytes payload = 6;
463
+ */
464
+ this.payload = new Uint8Array(0);
465
+ proto3.util.initPartial(data, this);
466
+ }
467
+ static { this.runtime = proto3; }
468
+ static { this.typeName = "bsync.Operation"; }
469
+ static { this.fields = proto3.util.newFieldList(() => [
470
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
471
+ { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
472
+ { no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
473
+ { no: 4, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
474
+ { no: 5, name: "method", kind: "enum", T: proto3.getEnumType(Method) },
475
+ { no: 6, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
476
+ ]); }
477
+ static fromBinary(bytes, options) {
478
+ return new Operation().fromBinary(bytes, options);
479
+ }
480
+ static fromJson(jsonValue, options) {
481
+ return new Operation().fromJson(jsonValue, options);
482
+ }
483
+ static fromJsonString(jsonString, options) {
484
+ return new Operation().fromJsonString(jsonString, options);
485
+ }
486
+ static equals(a, b) {
487
+ return proto3.util.equals(Operation, a, b);
488
+ }
489
+ }
490
+ /**
491
+ * @generated from message bsync.PutOperationRequest
492
+ */
493
+ export class PutOperationRequest extends Message {
494
+ constructor(data) {
495
+ super();
496
+ /**
497
+ * @generated from field: string actor_did = 1;
498
+ */
499
+ this.actorDid = "";
500
+ /**
501
+ * @generated from field: string namespace = 2;
502
+ */
503
+ this.namespace = "";
504
+ /**
505
+ * @generated from field: string key = 3;
506
+ */
507
+ this.key = "";
508
+ /**
509
+ * @generated from field: bsync.Method method = 4;
510
+ */
511
+ this.method = Method.UNSPECIFIED;
512
+ /**
513
+ * @generated from field: bytes payload = 5;
514
+ */
515
+ this.payload = new Uint8Array(0);
516
+ proto3.util.initPartial(data, this);
517
+ }
518
+ static { this.runtime = proto3; }
519
+ static { this.typeName = "bsync.PutOperationRequest"; }
520
+ static { this.fields = proto3.util.newFieldList(() => [
521
+ { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
522
+ { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
523
+ { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
524
+ { no: 4, name: "method", kind: "enum", T: proto3.getEnumType(Method) },
525
+ { no: 5, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
526
+ ]); }
527
+ static fromBinary(bytes, options) {
528
+ return new PutOperationRequest().fromBinary(bytes, options);
529
+ }
530
+ static fromJson(jsonValue, options) {
531
+ return new PutOperationRequest().fromJson(jsonValue, options);
532
+ }
533
+ static fromJsonString(jsonString, options) {
534
+ return new PutOperationRequest().fromJsonString(jsonString, options);
535
+ }
536
+ static equals(a, b) {
537
+ return proto3.util.equals(PutOperationRequest, a, b);
538
+ }
539
+ }
540
+ /**
541
+ * @generated from message bsync.PutOperationResponse
542
+ */
543
+ export class PutOperationResponse extends Message {
544
+ constructor(data) {
545
+ super();
546
+ proto3.util.initPartial(data, this);
547
+ }
548
+ static { this.runtime = proto3; }
549
+ static { this.typeName = "bsync.PutOperationResponse"; }
550
+ static { this.fields = proto3.util.newFieldList(() => [
551
+ { no: 1, name: "operation", kind: "message", T: Operation },
552
+ ]); }
553
+ static fromBinary(bytes, options) {
554
+ return new PutOperationResponse().fromBinary(bytes, options);
555
+ }
556
+ static fromJson(jsonValue, options) {
557
+ return new PutOperationResponse().fromJson(jsonValue, options);
558
+ }
559
+ static fromJsonString(jsonString, options) {
560
+ return new PutOperationResponse().fromJsonString(jsonString, options);
561
+ }
562
+ static equals(a, b) {
563
+ return proto3.util.equals(PutOperationResponse, a, b);
564
+ }
565
+ }
566
+ /**
567
+ * @generated from message bsync.ScanOperationsRequest
568
+ */
569
+ export class ScanOperationsRequest extends Message {
570
+ constructor(data) {
571
+ super();
572
+ /**
573
+ * @generated from field: string cursor = 1;
574
+ */
575
+ this.cursor = "";
576
+ /**
577
+ * @generated from field: int32 limit = 2;
578
+ */
579
+ this.limit = 0;
580
+ proto3.util.initPartial(data, this);
581
+ }
582
+ static { this.runtime = proto3; }
583
+ static { this.typeName = "bsync.ScanOperationsRequest"; }
584
+ static { this.fields = proto3.util.newFieldList(() => [
585
+ { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
586
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
587
+ ]); }
588
+ static fromBinary(bytes, options) {
589
+ return new ScanOperationsRequest().fromBinary(bytes, options);
590
+ }
591
+ static fromJson(jsonValue, options) {
592
+ return new ScanOperationsRequest().fromJson(jsonValue, options);
593
+ }
594
+ static fromJsonString(jsonString, options) {
595
+ return new ScanOperationsRequest().fromJsonString(jsonString, options);
596
+ }
597
+ static equals(a, b) {
598
+ return proto3.util.equals(ScanOperationsRequest, a, b);
599
+ }
600
+ }
601
+ /**
602
+ * @generated from message bsync.ScanOperationsResponse
603
+ */
604
+ export class ScanOperationsResponse extends Message {
605
+ constructor(data) {
606
+ super();
607
+ /**
608
+ * @generated from field: repeated bsync.Operation operations = 1;
609
+ */
610
+ this.operations = [];
611
+ /**
612
+ * @generated from field: string cursor = 2;
613
+ */
614
+ this.cursor = "";
615
+ proto3.util.initPartial(data, this);
616
+ }
617
+ static { this.runtime = proto3; }
618
+ static { this.typeName = "bsync.ScanOperationsResponse"; }
619
+ static { this.fields = proto3.util.newFieldList(() => [
620
+ { no: 1, name: "operations", kind: "message", T: Operation, repeated: true },
621
+ { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
622
+ ]); }
623
+ static fromBinary(bytes, options) {
624
+ return new ScanOperationsResponse().fromBinary(bytes, options);
625
+ }
626
+ static fromJson(jsonValue, options) {
627
+ return new ScanOperationsResponse().fromJson(jsonValue, options);
628
+ }
629
+ static fromJsonString(jsonString, options) {
630
+ return new ScanOperationsResponse().fromJsonString(jsonString, options);
631
+ }
632
+ static equals(a, b) {
633
+ return proto3.util.equals(ScanOperationsResponse, a, b);
634
+ }
635
+ }
636
+ /**
637
+ * @generated from message bsync.DeleteOperationsByActorAndNamespaceRequest
638
+ */
639
+ export class DeleteOperationsByActorAndNamespaceRequest extends Message {
640
+ constructor(data) {
641
+ super();
642
+ /**
643
+ * @generated from field: string actor_did = 1;
644
+ */
645
+ this.actorDid = "";
646
+ /**
647
+ * @generated from field: string namespace = 2;
648
+ */
649
+ this.namespace = "";
650
+ proto3.util.initPartial(data, this);
651
+ }
652
+ static { this.runtime = proto3; }
653
+ static { this.typeName = "bsync.DeleteOperationsByActorAndNamespaceRequest"; }
654
+ static { this.fields = proto3.util.newFieldList(() => [
655
+ { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
656
+ { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
657
+ ]); }
658
+ static fromBinary(bytes, options) {
659
+ return new DeleteOperationsByActorAndNamespaceRequest().fromBinary(bytes, options);
660
+ }
661
+ static fromJson(jsonValue, options) {
662
+ return new DeleteOperationsByActorAndNamespaceRequest().fromJson(jsonValue, options);
663
+ }
664
+ static fromJsonString(jsonString, options) {
665
+ return new DeleteOperationsByActorAndNamespaceRequest().fromJsonString(jsonString, options);
666
+ }
667
+ static equals(a, b) {
668
+ return proto3.util.equals(DeleteOperationsByActorAndNamespaceRequest, a, b);
669
+ }
670
+ }
671
+ /**
672
+ * @generated from message bsync.DeleteOperationsByActorAndNamespaceResponse
673
+ */
674
+ export class DeleteOperationsByActorAndNamespaceResponse extends Message {
675
+ constructor(data) {
676
+ super();
677
+ /**
678
+ * @generated from field: int32 deleted_count = 1;
679
+ */
680
+ this.deletedCount = 0;
681
+ proto3.util.initPartial(data, this);
682
+ }
683
+ static { this.runtime = proto3; }
684
+ static { this.typeName = "bsync.DeleteOperationsByActorAndNamespaceResponse"; }
685
+ static { this.fields = proto3.util.newFieldList(() => [
686
+ { no: 1, name: "deleted_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
687
+ ]); }
688
+ static fromBinary(bytes, options) {
689
+ return new DeleteOperationsByActorAndNamespaceResponse().fromBinary(bytes, options);
690
+ }
691
+ static fromJson(jsonValue, options) {
692
+ return new DeleteOperationsByActorAndNamespaceResponse().fromJson(jsonValue, options);
693
+ }
694
+ static fromJsonString(jsonString, options) {
695
+ return new DeleteOperationsByActorAndNamespaceResponse().fromJsonString(jsonString, options);
696
+ }
697
+ static equals(a, b) {
698
+ return proto3.util.equals(DeleteOperationsByActorAndNamespaceResponse, a, b);
699
+ }
700
+ }
701
+ /**
702
+ * Ping
703
+ *
704
+ * @generated from message bsync.PingRequest
705
+ */
706
+ export class PingRequest extends Message {
707
+ constructor(data) {
708
+ super();
709
+ proto3.util.initPartial(data, this);
710
+ }
711
+ static { this.runtime = proto3; }
712
+ static { this.typeName = "bsync.PingRequest"; }
713
+ static { this.fields = proto3.util.newFieldList(() => []); }
714
+ static fromBinary(bytes, options) {
715
+ return new PingRequest().fromBinary(bytes, options);
716
+ }
717
+ static fromJson(jsonValue, options) {
718
+ return new PingRequest().fromJson(jsonValue, options);
719
+ }
720
+ static fromJsonString(jsonString, options) {
721
+ return new PingRequest().fromJsonString(jsonString, options);
722
+ }
723
+ static equals(a, b) {
724
+ return proto3.util.equals(PingRequest, a, b);
725
+ }
726
+ }
727
+ /**
728
+ * @generated from message bsync.PingResponse
729
+ */
730
+ export class PingResponse extends Message {
731
+ constructor(data) {
732
+ super();
733
+ proto3.util.initPartial(data, this);
734
+ }
735
+ static { this.runtime = proto3; }
736
+ static { this.typeName = "bsync.PingResponse"; }
737
+ static { this.fields = proto3.util.newFieldList(() => []); }
738
+ static fromBinary(bytes, options) {
739
+ return new PingResponse().fromBinary(bytes, options);
740
+ }
741
+ static fromJson(jsonValue, options) {
742
+ return new PingResponse().fromJson(jsonValue, options);
743
+ }
744
+ static fromJsonString(jsonString, options) {
745
+ return new PingResponse().fromJsonString(jsonString, options);
746
+ }
747
+ static equals(a, b) {
748
+ return proto3.util.equals(PingResponse, a, b);
749
+ }
750
+ }
751
+ //# sourceMappingURL=bsync_pb.js.map