@atproto/bsync 0.0.25 → 0.0.26-next.0

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 (130) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/bin/migration-create.ts +1 -1
  3. package/dist/client.d.ts +1 -1
  4. package/dist/client.d.ts.map +1 -1
  5. package/dist/client.js +7 -12
  6. package/dist/client.js.map +1 -1
  7. package/dist/config.js +16 -24
  8. package/dist/config.js.map +1 -1
  9. package/dist/context.d.ts +6 -6
  10. package/dist/context.d.ts.map +1 -1
  11. package/dist/context.js +8 -36
  12. package/dist/context.js.map +1 -1
  13. package/dist/db/index.d.ts +6 -4
  14. package/dist/db/index.d.ts.map +1 -1
  15. package/dist/db/index.js +26 -101
  16. package/dist/db/index.js.map +1 -1
  17. package/dist/db/migrations/20240108T220751294Z-init.js +4 -8
  18. package/dist/db/migrations/20240108T220751294Z-init.js.map +1 -1
  19. package/dist/db/migrations/20240717T224303472Z-notif-ops.js +4 -8
  20. package/dist/db/migrations/20240717T224303472Z-notif-ops.js.map +1 -1
  21. package/dist/db/migrations/20250527T022203400Z-add-operation.js +5 -9
  22. package/dist/db/migrations/20250527T022203400Z-add-operation.js.map +1 -1
  23. package/dist/db/migrations/20250603T163446567Z-alter-operation.js +2 -6
  24. package/dist/db/migrations/20250603T163446567Z-alter-operation.js.map +1 -1
  25. package/dist/db/migrations/index.d.ts +4 -4
  26. package/dist/db/migrations/index.d.ts.map +1 -1
  27. package/dist/db/migrations/index.js +4 -40
  28. package/dist/db/migrations/index.js.map +1 -1
  29. package/dist/db/migrations/provider.js +2 -11
  30. package/dist/db/migrations/provider.js.map +1 -1
  31. package/dist/db/schema/index.d.ts +5 -5
  32. package/dist/db/schema/index.d.ts.map +1 -1
  33. package/dist/db/schema/index.js +1 -2
  34. package/dist/db/schema/index.js.map +1 -1
  35. package/dist/db/schema/mute_item.js +1 -4
  36. package/dist/db/schema/mute_item.js.map +1 -1
  37. package/dist/db/schema/mute_op.d.ts +1 -1
  38. package/dist/db/schema/mute_op.d.ts.map +1 -1
  39. package/dist/db/schema/mute_op.js +2 -5
  40. package/dist/db/schema/mute_op.js.map +1 -1
  41. package/dist/db/schema/notif_item.js +1 -4
  42. package/dist/db/schema/notif_item.js.map +1 -1
  43. package/dist/db/schema/notif_op.js +2 -5
  44. package/dist/db/schema/notif_op.js.map +1 -1
  45. package/dist/db/schema/operation.d.ts +2 -2
  46. package/dist/db/schema/operation.d.ts.map +1 -1
  47. package/dist/db/schema/operation.js +2 -5
  48. package/dist/db/schema/operation.js.map +1 -1
  49. package/dist/db/types.d.ts +3 -1
  50. package/dist/db/types.d.ts.map +1 -1
  51. package/dist/db/types.js +1 -2
  52. package/dist/db/types.js.map +1 -1
  53. package/dist/index.d.ts +7 -7
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +37 -88
  56. package/dist/index.js.map +1 -1
  57. package/dist/logger.js +8 -11
  58. package/dist/logger.js.map +1 -1
  59. package/dist/proto/bsync_connect.d.ts +1 -1
  60. package/dist/proto/bsync_connect.d.ts.map +1 -1
  61. package/dist/proto/bsync_connect.js +27 -30
  62. package/dist/proto/bsync_connect.js.map +1 -1
  63. package/dist/proto/bsync_pb.js +215 -747
  64. package/dist/proto/bsync_pb.js.map +1 -1
  65. package/dist/routes/add-mute-operation.d.ts +2 -2
  66. package/dist/routes/add-mute-operation.d.ts.map +1 -1
  67. package/dist/routes/add-mute-operation.js +28 -30
  68. package/dist/routes/add-mute-operation.js.map +1 -1
  69. package/dist/routes/add-notif-operation.d.ts +2 -2
  70. package/dist/routes/add-notif-operation.d.ts.map +1 -1
  71. package/dist/routes/add-notif-operation.js +14 -16
  72. package/dist/routes/add-notif-operation.js.map +1 -1
  73. package/dist/routes/auth.d.ts +1 -1
  74. package/dist/routes/auth.d.ts.map +1 -1
  75. package/dist/routes/auth.js +4 -8
  76. package/dist/routes/auth.js.map +1 -1
  77. package/dist/routes/delete-operations.d.ts +2 -2
  78. package/dist/routes/delete-operations.d.ts.map +1 -1
  79. package/dist/routes/delete-operations.js +11 -13
  80. package/dist/routes/delete-operations.js.map +1 -1
  81. package/dist/routes/index.d.ts +1 -1
  82. package/dist/routes/index.d.ts.map +1 -1
  83. package/dist/routes/index.js +19 -24
  84. package/dist/routes/index.js.map +1 -1
  85. package/dist/routes/put-operation.d.ts +2 -2
  86. package/dist/routes/put-operation.d.ts.map +1 -1
  87. package/dist/routes/put-operation.js +25 -27
  88. package/dist/routes/put-operation.js.map +1 -1
  89. package/dist/routes/scan-mute-operations.d.ts +2 -2
  90. package/dist/routes/scan-mute-operations.d.ts.map +1 -1
  91. package/dist/routes/scan-mute-operations.js +13 -15
  92. package/dist/routes/scan-mute-operations.js.map +1 -1
  93. package/dist/routes/scan-notif-operations.d.ts +2 -2
  94. package/dist/routes/scan-notif-operations.d.ts.map +1 -1
  95. package/dist/routes/scan-notif-operations.js +13 -15
  96. package/dist/routes/scan-notif-operations.js.map +1 -1
  97. package/dist/routes/scan-operations.d.ts +2 -2
  98. package/dist/routes/scan-operations.d.ts.map +1 -1
  99. package/dist/routes/scan-operations.js +13 -15
  100. package/dist/routes/scan-operations.js.map +1 -1
  101. package/dist/routes/util.js +12 -20
  102. package/dist/routes/util.js.map +1 -1
  103. package/{jest.config.js → jest.config.cjs} +8 -1
  104. package/package.json +14 -9
  105. package/src/client.ts +1 -1
  106. package/src/context.ts +7 -7
  107. package/src/db/index.ts +12 -8
  108. package/src/db/migrations/index.ts +4 -4
  109. package/src/db/schema/index.ts +5 -5
  110. package/src/db/schema/mute_op.ts +1 -1
  111. package/src/db/schema/operation.ts +2 -2
  112. package/src/db/types.ts +3 -1
  113. package/src/index.ts +17 -13
  114. package/src/proto/bsync_connect.ts +1 -1
  115. package/src/routes/add-mute-operation.ts +10 -7
  116. package/src/routes/add-notif-operation.ts +7 -7
  117. package/src/routes/auth.ts +1 -1
  118. package/src/routes/delete-operations.ts +5 -5
  119. package/src/routes/index.ts +9 -9
  120. package/src/routes/put-operation.ts +11 -8
  121. package/src/routes/scan-mute-operations.ts +6 -6
  122. package/src/routes/scan-notif-operations.ts +6 -6
  123. package/src/routes/scan-operations.ts +6 -6
  124. package/tests/delete-operations.test.ts +2 -2
  125. package/tests/mutes.test.ts +2 -2
  126. package/tests/notifications.test.ts +2 -2
  127. package/tests/operations.test.ts +2 -2
  128. package/tsconfig.build.json +1 -1
  129. package/tsconfig.build.tsbuildinfo +1 -1
  130. package/tsconfig.tests.json +1 -1
@@ -1,15 +1,12 @@
1
- "use strict";
2
1
  // @generated by protoc-gen-es v1.6.0 with parameter "target=ts,import_extension="
3
2
  // @generated from file bsync.proto (package bsync, syntax proto3)
4
3
  /* eslint-disable */
5
4
  // @ts-nocheck
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.PingResponse = exports.PingRequest = exports.DeleteOperationsByActorAndNamespaceResponse = exports.DeleteOperationsByActorAndNamespaceRequest = exports.ScanOperationsResponse = exports.ScanOperationsRequest = exports.PutOperationResponse = exports.PutOperationRequest = exports.Operation = exports.ScanNotifOperationsResponse = exports.ScanNotifOperationsRequest = exports.AddNotifOperationResponse = exports.AddNotifOperationRequest = exports.NotifOperation = exports.ScanMuteOperationsResponse = exports.ScanMuteOperationsRequest = exports.AddMuteOperationResponse = exports.AddMuteOperationRequest = exports.MuteOperation_Type = exports.MuteOperation = exports.Method = void 0;
8
- const protobuf_1 = require("@bufbuild/protobuf");
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
9
6
  /**
10
7
  * @generated from enum bsync.Method
11
8
  */
12
- var Method;
9
+ export var Method;
13
10
  (function (Method) {
14
11
  /**
15
12
  * @generated from enum value: METHOD_UNSPECIFIED = 0;
@@ -27,9 +24,9 @@ var Method;
27
24
  * @generated from enum value: METHOD_DELETE = 3;
28
25
  */
29
26
  Method[Method["DELETE"] = 3] = "DELETE";
30
- })(Method || (exports.Method = Method = {}));
27
+ })(Method || (Method = {}));
31
28
  // Retrieve enum metadata with: proto3.getEnumType(Method)
32
- protobuf_1.proto3.util.setEnumType(Method, "bsync.Method", [
29
+ proto3.util.setEnumType(Method, "bsync.Method", [
33
30
  { no: 0, name: "METHOD_UNSPECIFIED" },
34
31
  { no: 1, name: "METHOD_CREATE" },
35
32
  { no: 2, name: "METHOD_UPDATE" },
@@ -38,47 +35,35 @@ protobuf_1.proto3.util.setEnumType(Method, "bsync.Method", [
38
35
  /**
39
36
  * @generated from message bsync.MuteOperation
40
37
  */
41
- class MuteOperation extends protobuf_1.Message {
38
+ export class MuteOperation extends Message {
42
39
  constructor(data) {
43
40
  super();
44
41
  /**
45
42
  * @generated from field: string id = 1;
46
43
  */
47
- Object.defineProperty(this, "id", {
48
- enumerable: true,
49
- configurable: true,
50
- writable: true,
51
- value: ""
52
- });
44
+ this.id = "";
53
45
  /**
54
46
  * @generated from field: bsync.MuteOperation.Type type = 2;
55
47
  */
56
- Object.defineProperty(this, "type", {
57
- enumerable: true,
58
- configurable: true,
59
- writable: true,
60
- value: MuteOperation_Type.UNSPECIFIED
61
- });
48
+ this.type = MuteOperation_Type.UNSPECIFIED;
62
49
  /**
63
50
  * @generated from field: string actor_did = 3;
64
51
  */
65
- Object.defineProperty(this, "actorDid", {
66
- enumerable: true,
67
- configurable: true,
68
- writable: true,
69
- value: ""
70
- });
52
+ this.actorDid = "";
71
53
  /**
72
54
  * @generated from field: string subject = 4;
73
55
  */
74
- Object.defineProperty(this, "subject", {
75
- enumerable: true,
76
- configurable: true,
77
- writable: true,
78
- value: ""
79
- });
80
- protobuf_1.proto3.util.initPartial(data, this);
56
+ this.subject = "";
57
+ proto3.util.initPartial(data, this);
81
58
  }
59
+ static { this.runtime = proto3; }
60
+ static { this.typeName = "bsync.MuteOperation"; }
61
+ static { this.fields = proto3.util.newFieldList(() => [
62
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
63
+ { no: 2, name: "type", kind: "enum", T: proto3.getEnumType(MuteOperation_Type) },
64
+ { no: 3, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
65
+ { no: 4, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
66
+ ]); }
82
67
  static fromBinary(bytes, options) {
83
68
  return new MuteOperation().fromBinary(bytes, options);
84
69
  }
@@ -89,37 +74,13 @@ class MuteOperation extends protobuf_1.Message {
89
74
  return new MuteOperation().fromJsonString(jsonString, options);
90
75
  }
91
76
  static equals(a, b) {
92
- return protobuf_1.proto3.util.equals(MuteOperation, a, b);
77
+ return proto3.util.equals(MuteOperation, a, b);
93
78
  }
94
79
  }
95
- exports.MuteOperation = MuteOperation;
96
- Object.defineProperty(MuteOperation, "runtime", {
97
- enumerable: true,
98
- configurable: true,
99
- writable: true,
100
- value: protobuf_1.proto3
101
- });
102
- Object.defineProperty(MuteOperation, "typeName", {
103
- enumerable: true,
104
- configurable: true,
105
- writable: true,
106
- value: "bsync.MuteOperation"
107
- });
108
- Object.defineProperty(MuteOperation, "fields", {
109
- enumerable: true,
110
- configurable: true,
111
- writable: true,
112
- value: protobuf_1.proto3.util.newFieldList(() => [
113
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
114
- { no: 2, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(MuteOperation_Type) },
115
- { no: 3, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
116
- { no: 4, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
117
- ])
118
- });
119
80
  /**
120
81
  * @generated from enum bsync.MuteOperation.Type
121
82
  */
122
- var MuteOperation_Type;
83
+ export var MuteOperation_Type;
123
84
  (function (MuteOperation_Type) {
124
85
  /**
125
86
  * @generated from enum value: TYPE_UNSPECIFIED = 0;
@@ -137,9 +98,9 @@ var MuteOperation_Type;
137
98
  * @generated from enum value: TYPE_CLEAR = 3;
138
99
  */
139
100
  MuteOperation_Type[MuteOperation_Type["CLEAR"] = 3] = "CLEAR";
140
- })(MuteOperation_Type || (exports.MuteOperation_Type = MuteOperation_Type = {}));
101
+ })(MuteOperation_Type || (MuteOperation_Type = {}));
141
102
  // Retrieve enum metadata with: proto3.getEnumType(MuteOperation_Type)
142
- protobuf_1.proto3.util.setEnumType(MuteOperation_Type, "bsync.MuteOperation.Type", [
103
+ proto3.util.setEnumType(MuteOperation_Type, "bsync.MuteOperation.Type", [
143
104
  { no: 0, name: "TYPE_UNSPECIFIED" },
144
105
  { no: 1, name: "TYPE_ADD" },
145
106
  { no: 2, name: "TYPE_REMOVE" },
@@ -148,38 +109,30 @@ protobuf_1.proto3.util.setEnumType(MuteOperation_Type, "bsync.MuteOperation.Type
148
109
  /**
149
110
  * @generated from message bsync.AddMuteOperationRequest
150
111
  */
151
- class AddMuteOperationRequest extends protobuf_1.Message {
112
+ export class AddMuteOperationRequest extends Message {
152
113
  constructor(data) {
153
114
  super();
154
115
  /**
155
116
  * @generated from field: bsync.MuteOperation.Type type = 1;
156
117
  */
157
- Object.defineProperty(this, "type", {
158
- enumerable: true,
159
- configurable: true,
160
- writable: true,
161
- value: MuteOperation_Type.UNSPECIFIED
162
- });
118
+ this.type = MuteOperation_Type.UNSPECIFIED;
163
119
  /**
164
120
  * @generated from field: string actor_did = 2;
165
121
  */
166
- Object.defineProperty(this, "actorDid", {
167
- enumerable: true,
168
- configurable: true,
169
- writable: true,
170
- value: ""
171
- });
122
+ this.actorDid = "";
172
123
  /**
173
124
  * @generated from field: string subject = 3;
174
125
  */
175
- Object.defineProperty(this, "subject", {
176
- enumerable: true,
177
- configurable: true,
178
- writable: true,
179
- value: ""
180
- });
181
- protobuf_1.proto3.util.initPartial(data, this);
126
+ this.subject = "";
127
+ proto3.util.initPartial(data, this);
182
128
  }
129
+ static { this.runtime = proto3; }
130
+ static { this.typeName = "bsync.AddMuteOperationRequest"; }
131
+ static { this.fields = proto3.util.newFieldList(() => [
132
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(MuteOperation_Type) },
133
+ { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
134
+ { no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
135
+ ]); }
183
136
  static fromBinary(bytes, options) {
184
137
  return new AddMuteOperationRequest().fromBinary(bytes, options);
185
138
  }
@@ -190,49 +143,22 @@ class AddMuteOperationRequest extends protobuf_1.Message {
190
143
  return new AddMuteOperationRequest().fromJsonString(jsonString, options);
191
144
  }
192
145
  static equals(a, b) {
193
- return protobuf_1.proto3.util.equals(AddMuteOperationRequest, a, b);
146
+ return proto3.util.equals(AddMuteOperationRequest, a, b);
194
147
  }
195
148
  }
196
- exports.AddMuteOperationRequest = AddMuteOperationRequest;
197
- Object.defineProperty(AddMuteOperationRequest, "runtime", {
198
- enumerable: true,
199
- configurable: true,
200
- writable: true,
201
- value: protobuf_1.proto3
202
- });
203
- Object.defineProperty(AddMuteOperationRequest, "typeName", {
204
- enumerable: true,
205
- configurable: true,
206
- writable: true,
207
- value: "bsync.AddMuteOperationRequest"
208
- });
209
- Object.defineProperty(AddMuteOperationRequest, "fields", {
210
- enumerable: true,
211
- configurable: true,
212
- writable: true,
213
- value: protobuf_1.proto3.util.newFieldList(() => [
214
- { no: 1, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(MuteOperation_Type) },
215
- { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
216
- { no: 3, name: "subject", kind: "scalar", T: 9 /* ScalarType.STRING */ },
217
- ])
218
- });
219
149
  /**
220
150
  * @generated from message bsync.AddMuteOperationResponse
221
151
  */
222
- class AddMuteOperationResponse extends protobuf_1.Message {
152
+ export class AddMuteOperationResponse extends Message {
223
153
  constructor(data) {
224
154
  super();
225
- /**
226
- * @generated from field: bsync.MuteOperation operation = 1;
227
- */
228
- Object.defineProperty(this, "operation", {
229
- enumerable: true,
230
- configurable: true,
231
- writable: true,
232
- value: void 0
233
- });
234
- protobuf_1.proto3.util.initPartial(data, this);
155
+ proto3.util.initPartial(data, this);
235
156
  }
157
+ static { this.runtime = proto3; }
158
+ static { this.typeName = "bsync.AddMuteOperationResponse"; }
159
+ static { this.fields = proto3.util.newFieldList(() => [
160
+ { no: 1, name: "operation", kind: "message", T: MuteOperation },
161
+ ]); }
236
162
  static fromBinary(bytes, options) {
237
163
  return new AddMuteOperationResponse().fromBinary(bytes, options);
238
164
  }
@@ -243,56 +169,31 @@ class AddMuteOperationResponse extends protobuf_1.Message {
243
169
  return new AddMuteOperationResponse().fromJsonString(jsonString, options);
244
170
  }
245
171
  static equals(a, b) {
246
- return protobuf_1.proto3.util.equals(AddMuteOperationResponse, a, b);
172
+ return proto3.util.equals(AddMuteOperationResponse, a, b);
247
173
  }
248
174
  }
249
- exports.AddMuteOperationResponse = AddMuteOperationResponse;
250
- Object.defineProperty(AddMuteOperationResponse, "runtime", {
251
- enumerable: true,
252
- configurable: true,
253
- writable: true,
254
- value: protobuf_1.proto3
255
- });
256
- Object.defineProperty(AddMuteOperationResponse, "typeName", {
257
- enumerable: true,
258
- configurable: true,
259
- writable: true,
260
- value: "bsync.AddMuteOperationResponse"
261
- });
262
- Object.defineProperty(AddMuteOperationResponse, "fields", {
263
- enumerable: true,
264
- configurable: true,
265
- writable: true,
266
- value: protobuf_1.proto3.util.newFieldList(() => [
267
- { no: 1, name: "operation", kind: "message", T: MuteOperation },
268
- ])
269
- });
270
175
  /**
271
176
  * @generated from message bsync.ScanMuteOperationsRequest
272
177
  */
273
- class ScanMuteOperationsRequest extends protobuf_1.Message {
178
+ export class ScanMuteOperationsRequest extends Message {
274
179
  constructor(data) {
275
180
  super();
276
181
  /**
277
182
  * @generated from field: string cursor = 1;
278
183
  */
279
- Object.defineProperty(this, "cursor", {
280
- enumerable: true,
281
- configurable: true,
282
- writable: true,
283
- value: ""
284
- });
184
+ this.cursor = "";
285
185
  /**
286
186
  * @generated from field: int32 limit = 2;
287
187
  */
288
- Object.defineProperty(this, "limit", {
289
- enumerable: true,
290
- configurable: true,
291
- writable: true,
292
- value: 0
293
- });
294
- protobuf_1.proto3.util.initPartial(data, this);
188
+ this.limit = 0;
189
+ proto3.util.initPartial(data, this);
295
190
  }
191
+ static { this.runtime = proto3; }
192
+ static { this.typeName = "bsync.ScanMuteOperationsRequest"; }
193
+ static { this.fields = proto3.util.newFieldList(() => [
194
+ { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
196
+ ]); }
296
197
  static fromBinary(bytes, options) {
297
198
  return new ScanMuteOperationsRequest().fromBinary(bytes, options);
298
199
  }
@@ -303,57 +204,31 @@ class ScanMuteOperationsRequest extends protobuf_1.Message {
303
204
  return new ScanMuteOperationsRequest().fromJsonString(jsonString, options);
304
205
  }
305
206
  static equals(a, b) {
306
- return protobuf_1.proto3.util.equals(ScanMuteOperationsRequest, a, b);
207
+ return proto3.util.equals(ScanMuteOperationsRequest, a, b);
307
208
  }
308
209
  }
309
- exports.ScanMuteOperationsRequest = ScanMuteOperationsRequest;
310
- Object.defineProperty(ScanMuteOperationsRequest, "runtime", {
311
- enumerable: true,
312
- configurable: true,
313
- writable: true,
314
- value: protobuf_1.proto3
315
- });
316
- Object.defineProperty(ScanMuteOperationsRequest, "typeName", {
317
- enumerable: true,
318
- configurable: true,
319
- writable: true,
320
- value: "bsync.ScanMuteOperationsRequest"
321
- });
322
- Object.defineProperty(ScanMuteOperationsRequest, "fields", {
323
- enumerable: true,
324
- configurable: true,
325
- writable: true,
326
- value: protobuf_1.proto3.util.newFieldList(() => [
327
- { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
328
- { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
329
- ])
330
- });
331
210
  /**
332
211
  * @generated from message bsync.ScanMuteOperationsResponse
333
212
  */
334
- class ScanMuteOperationsResponse extends protobuf_1.Message {
213
+ export class ScanMuteOperationsResponse extends Message {
335
214
  constructor(data) {
336
215
  super();
337
216
  /**
338
217
  * @generated from field: repeated bsync.MuteOperation operations = 1;
339
218
  */
340
- Object.defineProperty(this, "operations", {
341
- enumerable: true,
342
- configurable: true,
343
- writable: true,
344
- value: []
345
- });
219
+ this.operations = [];
346
220
  /**
347
221
  * @generated from field: string cursor = 2;
348
222
  */
349
- Object.defineProperty(this, "cursor", {
350
- enumerable: true,
351
- configurable: true,
352
- writable: true,
353
- value: ""
354
- });
355
- protobuf_1.proto3.util.initPartial(data, this);
223
+ this.cursor = "";
224
+ proto3.util.initPartial(data, this);
356
225
  }
226
+ static { this.runtime = proto3; }
227
+ static { this.typeName = "bsync.ScanMuteOperationsResponse"; }
228
+ static { this.fields = proto3.util.newFieldList(() => [
229
+ { no: 1, name: "operations", kind: "message", T: MuteOperation, repeated: true },
230
+ { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
231
+ ]); }
357
232
  static fromBinary(bytes, options) {
358
233
  return new ScanMuteOperationsResponse().fromBinary(bytes, options);
359
234
  }
@@ -364,66 +239,32 @@ class ScanMuteOperationsResponse extends protobuf_1.Message {
364
239
  return new ScanMuteOperationsResponse().fromJsonString(jsonString, options);
365
240
  }
366
241
  static equals(a, b) {
367
- return protobuf_1.proto3.util.equals(ScanMuteOperationsResponse, a, b);
242
+ return proto3.util.equals(ScanMuteOperationsResponse, a, b);
368
243
  }
369
244
  }
370
- exports.ScanMuteOperationsResponse = ScanMuteOperationsResponse;
371
- Object.defineProperty(ScanMuteOperationsResponse, "runtime", {
372
- enumerable: true,
373
- configurable: true,
374
- writable: true,
375
- value: protobuf_1.proto3
376
- });
377
- Object.defineProperty(ScanMuteOperationsResponse, "typeName", {
378
- enumerable: true,
379
- configurable: true,
380
- writable: true,
381
- value: "bsync.ScanMuteOperationsResponse"
382
- });
383
- Object.defineProperty(ScanMuteOperationsResponse, "fields", {
384
- enumerable: true,
385
- configurable: true,
386
- writable: true,
387
- value: protobuf_1.proto3.util.newFieldList(() => [
388
- { no: 1, name: "operations", kind: "message", T: MuteOperation, repeated: true },
389
- { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
390
- ])
391
- });
392
245
  /**
393
246
  * @generated from message bsync.NotifOperation
394
247
  */
395
- class NotifOperation extends protobuf_1.Message {
248
+ export class NotifOperation extends Message {
396
249
  constructor(data) {
397
250
  super();
398
251
  /**
399
252
  * @generated from field: string id = 1;
400
253
  */
401
- Object.defineProperty(this, "id", {
402
- enumerable: true,
403
- configurable: true,
404
- writable: true,
405
- value: ""
406
- });
254
+ this.id = "";
407
255
  /**
408
256
  * @generated from field: string actor_did = 2;
409
257
  */
410
- Object.defineProperty(this, "actorDid", {
411
- enumerable: true,
412
- configurable: true,
413
- writable: true,
414
- value: ""
415
- });
416
- /**
417
- * @generated from field: optional bool priority = 3;
418
- */
419
- Object.defineProperty(this, "priority", {
420
- enumerable: true,
421
- configurable: true,
422
- writable: true,
423
- value: void 0
424
- });
425
- protobuf_1.proto3.util.initPartial(data, this);
258
+ this.actorDid = "";
259
+ proto3.util.initPartial(data, this);
426
260
  }
261
+ static { this.runtime = proto3; }
262
+ static { this.typeName = "bsync.NotifOperation"; }
263
+ static { this.fields = proto3.util.newFieldList(() => [
264
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
265
+ { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
266
+ { no: 3, name: "priority", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
267
+ ]); }
427
268
  static fromBinary(bytes, options) {
428
269
  return new NotifOperation().fromBinary(bytes, options);
429
270
  }
@@ -434,58 +275,27 @@ class NotifOperation extends protobuf_1.Message {
434
275
  return new NotifOperation().fromJsonString(jsonString, options);
435
276
  }
436
277
  static equals(a, b) {
437
- return protobuf_1.proto3.util.equals(NotifOperation, a, b);
278
+ return proto3.util.equals(NotifOperation, a, b);
438
279
  }
439
280
  }
440
- exports.NotifOperation = NotifOperation;
441
- Object.defineProperty(NotifOperation, "runtime", {
442
- enumerable: true,
443
- configurable: true,
444
- writable: true,
445
- value: protobuf_1.proto3
446
- });
447
- Object.defineProperty(NotifOperation, "typeName", {
448
- enumerable: true,
449
- configurable: true,
450
- writable: true,
451
- value: "bsync.NotifOperation"
452
- });
453
- Object.defineProperty(NotifOperation, "fields", {
454
- enumerable: true,
455
- configurable: true,
456
- writable: true,
457
- value: protobuf_1.proto3.util.newFieldList(() => [
458
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
459
- { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
460
- { no: 3, name: "priority", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
461
- ])
462
- });
463
281
  /**
464
282
  * @generated from message bsync.AddNotifOperationRequest
465
283
  */
466
- class AddNotifOperationRequest extends protobuf_1.Message {
284
+ export class AddNotifOperationRequest extends Message {
467
285
  constructor(data) {
468
286
  super();
469
287
  /**
470
288
  * @generated from field: string actor_did = 1;
471
289
  */
472
- Object.defineProperty(this, "actorDid", {
473
- enumerable: true,
474
- configurable: true,
475
- writable: true,
476
- value: ""
477
- });
478
- /**
479
- * @generated from field: optional bool priority = 2;
480
- */
481
- Object.defineProperty(this, "priority", {
482
- enumerable: true,
483
- configurable: true,
484
- writable: true,
485
- value: void 0
486
- });
487
- protobuf_1.proto3.util.initPartial(data, this);
290
+ this.actorDid = "";
291
+ proto3.util.initPartial(data, this);
488
292
  }
293
+ static { this.runtime = proto3; }
294
+ static { this.typeName = "bsync.AddNotifOperationRequest"; }
295
+ static { this.fields = proto3.util.newFieldList(() => [
296
+ { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
297
+ { no: 2, name: "priority", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
298
+ ]); }
489
299
  static fromBinary(bytes, options) {
490
300
  return new AddNotifOperationRequest().fromBinary(bytes, options);
491
301
  }
@@ -496,48 +306,22 @@ class AddNotifOperationRequest extends protobuf_1.Message {
496
306
  return new AddNotifOperationRequest().fromJsonString(jsonString, options);
497
307
  }
498
308
  static equals(a, b) {
499
- return protobuf_1.proto3.util.equals(AddNotifOperationRequest, a, b);
309
+ return proto3.util.equals(AddNotifOperationRequest, a, b);
500
310
  }
501
311
  }
502
- exports.AddNotifOperationRequest = AddNotifOperationRequest;
503
- Object.defineProperty(AddNotifOperationRequest, "runtime", {
504
- enumerable: true,
505
- configurable: true,
506
- writable: true,
507
- value: protobuf_1.proto3
508
- });
509
- Object.defineProperty(AddNotifOperationRequest, "typeName", {
510
- enumerable: true,
511
- configurable: true,
512
- writable: true,
513
- value: "bsync.AddNotifOperationRequest"
514
- });
515
- Object.defineProperty(AddNotifOperationRequest, "fields", {
516
- enumerable: true,
517
- configurable: true,
518
- writable: true,
519
- value: protobuf_1.proto3.util.newFieldList(() => [
520
- { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
521
- { no: 2, name: "priority", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
522
- ])
523
- });
524
312
  /**
525
313
  * @generated from message bsync.AddNotifOperationResponse
526
314
  */
527
- class AddNotifOperationResponse extends protobuf_1.Message {
315
+ export class AddNotifOperationResponse extends Message {
528
316
  constructor(data) {
529
317
  super();
530
- /**
531
- * @generated from field: bsync.NotifOperation operation = 1;
532
- */
533
- Object.defineProperty(this, "operation", {
534
- enumerable: true,
535
- configurable: true,
536
- writable: true,
537
- value: void 0
538
- });
539
- protobuf_1.proto3.util.initPartial(data, this);
318
+ proto3.util.initPartial(data, this);
540
319
  }
320
+ static { this.runtime = proto3; }
321
+ static { this.typeName = "bsync.AddNotifOperationResponse"; }
322
+ static { this.fields = proto3.util.newFieldList(() => [
323
+ { no: 1, name: "operation", kind: "message", T: NotifOperation },
324
+ ]); }
541
325
  static fromBinary(bytes, options) {
542
326
  return new AddNotifOperationResponse().fromBinary(bytes, options);
543
327
  }
@@ -548,56 +332,31 @@ class AddNotifOperationResponse extends protobuf_1.Message {
548
332
  return new AddNotifOperationResponse().fromJsonString(jsonString, options);
549
333
  }
550
334
  static equals(a, b) {
551
- return protobuf_1.proto3.util.equals(AddNotifOperationResponse, a, b);
335
+ return proto3.util.equals(AddNotifOperationResponse, a, b);
552
336
  }
553
337
  }
554
- exports.AddNotifOperationResponse = AddNotifOperationResponse;
555
- Object.defineProperty(AddNotifOperationResponse, "runtime", {
556
- enumerable: true,
557
- configurable: true,
558
- writable: true,
559
- value: protobuf_1.proto3
560
- });
561
- Object.defineProperty(AddNotifOperationResponse, "typeName", {
562
- enumerable: true,
563
- configurable: true,
564
- writable: true,
565
- value: "bsync.AddNotifOperationResponse"
566
- });
567
- Object.defineProperty(AddNotifOperationResponse, "fields", {
568
- enumerable: true,
569
- configurable: true,
570
- writable: true,
571
- value: protobuf_1.proto3.util.newFieldList(() => [
572
- { no: 1, name: "operation", kind: "message", T: NotifOperation },
573
- ])
574
- });
575
338
  /**
576
339
  * @generated from message bsync.ScanNotifOperationsRequest
577
340
  */
578
- class ScanNotifOperationsRequest extends protobuf_1.Message {
341
+ export class ScanNotifOperationsRequest extends Message {
579
342
  constructor(data) {
580
343
  super();
581
344
  /**
582
345
  * @generated from field: string cursor = 1;
583
346
  */
584
- Object.defineProperty(this, "cursor", {
585
- enumerable: true,
586
- configurable: true,
587
- writable: true,
588
- value: ""
589
- });
347
+ this.cursor = "";
590
348
  /**
591
349
  * @generated from field: int32 limit = 2;
592
350
  */
593
- Object.defineProperty(this, "limit", {
594
- enumerable: true,
595
- configurable: true,
596
- writable: true,
597
- value: 0
598
- });
599
- protobuf_1.proto3.util.initPartial(data, this);
351
+ this.limit = 0;
352
+ proto3.util.initPartial(data, this);
600
353
  }
354
+ static { this.runtime = proto3; }
355
+ static { this.typeName = "bsync.ScanNotifOperationsRequest"; }
356
+ static { this.fields = proto3.util.newFieldList(() => [
357
+ { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
358
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
359
+ ]); }
601
360
  static fromBinary(bytes, options) {
602
361
  return new ScanNotifOperationsRequest().fromBinary(bytes, options);
603
362
  }
@@ -608,57 +367,31 @@ class ScanNotifOperationsRequest extends protobuf_1.Message {
608
367
  return new ScanNotifOperationsRequest().fromJsonString(jsonString, options);
609
368
  }
610
369
  static equals(a, b) {
611
- return protobuf_1.proto3.util.equals(ScanNotifOperationsRequest, a, b);
370
+ return proto3.util.equals(ScanNotifOperationsRequest, a, b);
612
371
  }
613
372
  }
614
- exports.ScanNotifOperationsRequest = ScanNotifOperationsRequest;
615
- Object.defineProperty(ScanNotifOperationsRequest, "runtime", {
616
- enumerable: true,
617
- configurable: true,
618
- writable: true,
619
- value: protobuf_1.proto3
620
- });
621
- Object.defineProperty(ScanNotifOperationsRequest, "typeName", {
622
- enumerable: true,
623
- configurable: true,
624
- writable: true,
625
- value: "bsync.ScanNotifOperationsRequest"
626
- });
627
- Object.defineProperty(ScanNotifOperationsRequest, "fields", {
628
- enumerable: true,
629
- configurable: true,
630
- writable: true,
631
- value: protobuf_1.proto3.util.newFieldList(() => [
632
- { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
633
- { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
634
- ])
635
- });
636
373
  /**
637
374
  * @generated from message bsync.ScanNotifOperationsResponse
638
375
  */
639
- class ScanNotifOperationsResponse extends protobuf_1.Message {
376
+ export class ScanNotifOperationsResponse extends Message {
640
377
  constructor(data) {
641
378
  super();
642
379
  /**
643
380
  * @generated from field: repeated bsync.NotifOperation operations = 1;
644
381
  */
645
- Object.defineProperty(this, "operations", {
646
- enumerable: true,
647
- configurable: true,
648
- writable: true,
649
- value: []
650
- });
382
+ this.operations = [];
651
383
  /**
652
384
  * @generated from field: string cursor = 2;
653
385
  */
654
- Object.defineProperty(this, "cursor", {
655
- enumerable: true,
656
- configurable: true,
657
- writable: true,
658
- value: ""
659
- });
660
- protobuf_1.proto3.util.initPartial(data, this);
386
+ this.cursor = "";
387
+ proto3.util.initPartial(data, this);
661
388
  }
389
+ static { this.runtime = proto3; }
390
+ static { this.typeName = "bsync.ScanNotifOperationsResponse"; }
391
+ static { this.fields = proto3.util.newFieldList(() => [
392
+ { no: 1, name: "operations", kind: "message", T: NotifOperation, repeated: true },
393
+ { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
394
+ ]); }
662
395
  static fromBinary(bytes, options) {
663
396
  return new ScanNotifOperationsResponse().fromBinary(bytes, options);
664
397
  }
@@ -669,93 +402,51 @@ class ScanNotifOperationsResponse extends protobuf_1.Message {
669
402
  return new ScanNotifOperationsResponse().fromJsonString(jsonString, options);
670
403
  }
671
404
  static equals(a, b) {
672
- return protobuf_1.proto3.util.equals(ScanNotifOperationsResponse, a, b);
405
+ return proto3.util.equals(ScanNotifOperationsResponse, a, b);
673
406
  }
674
407
  }
675
- exports.ScanNotifOperationsResponse = ScanNotifOperationsResponse;
676
- Object.defineProperty(ScanNotifOperationsResponse, "runtime", {
677
- enumerable: true,
678
- configurable: true,
679
- writable: true,
680
- value: protobuf_1.proto3
681
- });
682
- Object.defineProperty(ScanNotifOperationsResponse, "typeName", {
683
- enumerable: true,
684
- configurable: true,
685
- writable: true,
686
- value: "bsync.ScanNotifOperationsResponse"
687
- });
688
- Object.defineProperty(ScanNotifOperationsResponse, "fields", {
689
- enumerable: true,
690
- configurable: true,
691
- writable: true,
692
- value: protobuf_1.proto3.util.newFieldList(() => [
693
- { no: 1, name: "operations", kind: "message", T: NotifOperation, repeated: true },
694
- { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
695
- ])
696
- });
697
408
  /**
698
409
  * @generated from message bsync.Operation
699
410
  */
700
- class Operation extends protobuf_1.Message {
411
+ export class Operation extends Message {
701
412
  constructor(data) {
702
413
  super();
703
414
  /**
704
415
  * @generated from field: string id = 1;
705
416
  */
706
- Object.defineProperty(this, "id", {
707
- enumerable: true,
708
- configurable: true,
709
- writable: true,
710
- value: ""
711
- });
417
+ this.id = "";
712
418
  /**
713
419
  * @generated from field: string actor_did = 2;
714
420
  */
715
- Object.defineProperty(this, "actorDid", {
716
- enumerable: true,
717
- configurable: true,
718
- writable: true,
719
- value: ""
720
- });
421
+ this.actorDid = "";
721
422
  /**
722
423
  * @generated from field: string namespace = 3;
723
424
  */
724
- Object.defineProperty(this, "namespace", {
725
- enumerable: true,
726
- configurable: true,
727
- writable: true,
728
- value: ""
729
- });
425
+ this.namespace = "";
730
426
  /**
731
427
  * @generated from field: string key = 4;
732
428
  */
733
- Object.defineProperty(this, "key", {
734
- enumerable: true,
735
- configurable: true,
736
- writable: true,
737
- value: ""
738
- });
429
+ this.key = "";
739
430
  /**
740
431
  * @generated from field: bsync.Method method = 5;
741
432
  */
742
- Object.defineProperty(this, "method", {
743
- enumerable: true,
744
- configurable: true,
745
- writable: true,
746
- value: Method.UNSPECIFIED
747
- });
433
+ this.method = Method.UNSPECIFIED;
748
434
  /**
749
435
  * @generated from field: bytes payload = 6;
750
436
  */
751
- Object.defineProperty(this, "payload", {
752
- enumerable: true,
753
- configurable: true,
754
- writable: true,
755
- value: new Uint8Array(0)
756
- });
757
- protobuf_1.proto3.util.initPartial(data, this);
437
+ this.payload = new Uint8Array(0);
438
+ proto3.util.initPartial(data, this);
758
439
  }
440
+ static { this.runtime = proto3; }
441
+ static { this.typeName = "bsync.Operation"; }
442
+ static { this.fields = proto3.util.newFieldList(() => [
443
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
444
+ { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
445
+ { no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
446
+ { no: 4, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
447
+ { no: 5, name: "method", kind: "enum", T: proto3.getEnumType(Method) },
448
+ { no: 6, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
449
+ ]); }
759
450
  static fromBinary(bytes, options) {
760
451
  return new Operation().fromBinary(bytes, options);
761
452
  }
@@ -766,88 +457,46 @@ class Operation extends protobuf_1.Message {
766
457
  return new Operation().fromJsonString(jsonString, options);
767
458
  }
768
459
  static equals(a, b) {
769
- return protobuf_1.proto3.util.equals(Operation, a, b);
460
+ return proto3.util.equals(Operation, a, b);
770
461
  }
771
462
  }
772
- exports.Operation = Operation;
773
- Object.defineProperty(Operation, "runtime", {
774
- enumerable: true,
775
- configurable: true,
776
- writable: true,
777
- value: protobuf_1.proto3
778
- });
779
- Object.defineProperty(Operation, "typeName", {
780
- enumerable: true,
781
- configurable: true,
782
- writable: true,
783
- value: "bsync.Operation"
784
- });
785
- Object.defineProperty(Operation, "fields", {
786
- enumerable: true,
787
- configurable: true,
788
- writable: true,
789
- value: protobuf_1.proto3.util.newFieldList(() => [
790
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
791
- { no: 2, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
792
- { no: 3, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
793
- { no: 4, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
794
- { no: 5, name: "method", kind: "enum", T: protobuf_1.proto3.getEnumType(Method) },
795
- { no: 6, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
796
- ])
797
- });
798
463
  /**
799
464
  * @generated from message bsync.PutOperationRequest
800
465
  */
801
- class PutOperationRequest extends protobuf_1.Message {
466
+ export class PutOperationRequest extends Message {
802
467
  constructor(data) {
803
468
  super();
804
469
  /**
805
470
  * @generated from field: string actor_did = 1;
806
471
  */
807
- Object.defineProperty(this, "actorDid", {
808
- enumerable: true,
809
- configurable: true,
810
- writable: true,
811
- value: ""
812
- });
472
+ this.actorDid = "";
813
473
  /**
814
474
  * @generated from field: string namespace = 2;
815
475
  */
816
- Object.defineProperty(this, "namespace", {
817
- enumerable: true,
818
- configurable: true,
819
- writable: true,
820
- value: ""
821
- });
476
+ this.namespace = "";
822
477
  /**
823
478
  * @generated from field: string key = 3;
824
479
  */
825
- Object.defineProperty(this, "key", {
826
- enumerable: true,
827
- configurable: true,
828
- writable: true,
829
- value: ""
830
- });
480
+ this.key = "";
831
481
  /**
832
482
  * @generated from field: bsync.Method method = 4;
833
483
  */
834
- Object.defineProperty(this, "method", {
835
- enumerable: true,
836
- configurable: true,
837
- writable: true,
838
- value: Method.UNSPECIFIED
839
- });
484
+ this.method = Method.UNSPECIFIED;
840
485
  /**
841
486
  * @generated from field: bytes payload = 5;
842
487
  */
843
- Object.defineProperty(this, "payload", {
844
- enumerable: true,
845
- configurable: true,
846
- writable: true,
847
- value: new Uint8Array(0)
848
- });
849
- protobuf_1.proto3.util.initPartial(data, this);
488
+ this.payload = new Uint8Array(0);
489
+ proto3.util.initPartial(data, this);
850
490
  }
491
+ static { this.runtime = proto3; }
492
+ static { this.typeName = "bsync.PutOperationRequest"; }
493
+ static { this.fields = proto3.util.newFieldList(() => [
494
+ { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
495
+ { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
496
+ { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
497
+ { no: 4, name: "method", kind: "enum", T: proto3.getEnumType(Method) },
498
+ { no: 5, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
499
+ ]); }
851
500
  static fromBinary(bytes, options) {
852
501
  return new PutOperationRequest().fromBinary(bytes, options);
853
502
  }
@@ -858,51 +507,22 @@ class PutOperationRequest extends protobuf_1.Message {
858
507
  return new PutOperationRequest().fromJsonString(jsonString, options);
859
508
  }
860
509
  static equals(a, b) {
861
- return protobuf_1.proto3.util.equals(PutOperationRequest, a, b);
510
+ return proto3.util.equals(PutOperationRequest, a, b);
862
511
  }
863
512
  }
864
- exports.PutOperationRequest = PutOperationRequest;
865
- Object.defineProperty(PutOperationRequest, "runtime", {
866
- enumerable: true,
867
- configurable: true,
868
- writable: true,
869
- value: protobuf_1.proto3
870
- });
871
- Object.defineProperty(PutOperationRequest, "typeName", {
872
- enumerable: true,
873
- configurable: true,
874
- writable: true,
875
- value: "bsync.PutOperationRequest"
876
- });
877
- Object.defineProperty(PutOperationRequest, "fields", {
878
- enumerable: true,
879
- configurable: true,
880
- writable: true,
881
- value: protobuf_1.proto3.util.newFieldList(() => [
882
- { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
883
- { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
884
- { no: 3, name: "key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
885
- { no: 4, name: "method", kind: "enum", T: protobuf_1.proto3.getEnumType(Method) },
886
- { no: 5, name: "payload", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
887
- ])
888
- });
889
513
  /**
890
514
  * @generated from message bsync.PutOperationResponse
891
515
  */
892
- class PutOperationResponse extends protobuf_1.Message {
516
+ export class PutOperationResponse extends Message {
893
517
  constructor(data) {
894
518
  super();
895
- /**
896
- * @generated from field: bsync.Operation operation = 1;
897
- */
898
- Object.defineProperty(this, "operation", {
899
- enumerable: true,
900
- configurable: true,
901
- writable: true,
902
- value: void 0
903
- });
904
- protobuf_1.proto3.util.initPartial(data, this);
519
+ proto3.util.initPartial(data, this);
905
520
  }
521
+ static { this.runtime = proto3; }
522
+ static { this.typeName = "bsync.PutOperationResponse"; }
523
+ static { this.fields = proto3.util.newFieldList(() => [
524
+ { no: 1, name: "operation", kind: "message", T: Operation },
525
+ ]); }
906
526
  static fromBinary(bytes, options) {
907
527
  return new PutOperationResponse().fromBinary(bytes, options);
908
528
  }
@@ -913,56 +533,31 @@ class PutOperationResponse extends protobuf_1.Message {
913
533
  return new PutOperationResponse().fromJsonString(jsonString, options);
914
534
  }
915
535
  static equals(a, b) {
916
- return protobuf_1.proto3.util.equals(PutOperationResponse, a, b);
536
+ return proto3.util.equals(PutOperationResponse, a, b);
917
537
  }
918
538
  }
919
- exports.PutOperationResponse = PutOperationResponse;
920
- Object.defineProperty(PutOperationResponse, "runtime", {
921
- enumerable: true,
922
- configurable: true,
923
- writable: true,
924
- value: protobuf_1.proto3
925
- });
926
- Object.defineProperty(PutOperationResponse, "typeName", {
927
- enumerable: true,
928
- configurable: true,
929
- writable: true,
930
- value: "bsync.PutOperationResponse"
931
- });
932
- Object.defineProperty(PutOperationResponse, "fields", {
933
- enumerable: true,
934
- configurable: true,
935
- writable: true,
936
- value: protobuf_1.proto3.util.newFieldList(() => [
937
- { no: 1, name: "operation", kind: "message", T: Operation },
938
- ])
939
- });
940
539
  /**
941
540
  * @generated from message bsync.ScanOperationsRequest
942
541
  */
943
- class ScanOperationsRequest extends protobuf_1.Message {
542
+ export class ScanOperationsRequest extends Message {
944
543
  constructor(data) {
945
544
  super();
946
545
  /**
947
546
  * @generated from field: string cursor = 1;
948
547
  */
949
- Object.defineProperty(this, "cursor", {
950
- enumerable: true,
951
- configurable: true,
952
- writable: true,
953
- value: ""
954
- });
548
+ this.cursor = "";
955
549
  /**
956
550
  * @generated from field: int32 limit = 2;
957
551
  */
958
- Object.defineProperty(this, "limit", {
959
- enumerable: true,
960
- configurable: true,
961
- writable: true,
962
- value: 0
963
- });
964
- protobuf_1.proto3.util.initPartial(data, this);
552
+ this.limit = 0;
553
+ proto3.util.initPartial(data, this);
965
554
  }
555
+ static { this.runtime = proto3; }
556
+ static { this.typeName = "bsync.ScanOperationsRequest"; }
557
+ static { this.fields = proto3.util.newFieldList(() => [
558
+ { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
559
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
560
+ ]); }
966
561
  static fromBinary(bytes, options) {
967
562
  return new ScanOperationsRequest().fromBinary(bytes, options);
968
563
  }
@@ -973,57 +568,31 @@ class ScanOperationsRequest extends protobuf_1.Message {
973
568
  return new ScanOperationsRequest().fromJsonString(jsonString, options);
974
569
  }
975
570
  static equals(a, b) {
976
- return protobuf_1.proto3.util.equals(ScanOperationsRequest, a, b);
571
+ return proto3.util.equals(ScanOperationsRequest, a, b);
977
572
  }
978
573
  }
979
- exports.ScanOperationsRequest = ScanOperationsRequest;
980
- Object.defineProperty(ScanOperationsRequest, "runtime", {
981
- enumerable: true,
982
- configurable: true,
983
- writable: true,
984
- value: protobuf_1.proto3
985
- });
986
- Object.defineProperty(ScanOperationsRequest, "typeName", {
987
- enumerable: true,
988
- configurable: true,
989
- writable: true,
990
- value: "bsync.ScanOperationsRequest"
991
- });
992
- Object.defineProperty(ScanOperationsRequest, "fields", {
993
- enumerable: true,
994
- configurable: true,
995
- writable: true,
996
- value: protobuf_1.proto3.util.newFieldList(() => [
997
- { no: 1, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
998
- { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
999
- ])
1000
- });
1001
574
  /**
1002
575
  * @generated from message bsync.ScanOperationsResponse
1003
576
  */
1004
- class ScanOperationsResponse extends protobuf_1.Message {
577
+ export class ScanOperationsResponse extends Message {
1005
578
  constructor(data) {
1006
579
  super();
1007
580
  /**
1008
581
  * @generated from field: repeated bsync.Operation operations = 1;
1009
582
  */
1010
- Object.defineProperty(this, "operations", {
1011
- enumerable: true,
1012
- configurable: true,
1013
- writable: true,
1014
- value: []
1015
- });
583
+ this.operations = [];
1016
584
  /**
1017
585
  * @generated from field: string cursor = 2;
1018
586
  */
1019
- Object.defineProperty(this, "cursor", {
1020
- enumerable: true,
1021
- configurable: true,
1022
- writable: true,
1023
- value: ""
1024
- });
1025
- protobuf_1.proto3.util.initPartial(data, this);
587
+ this.cursor = "";
588
+ proto3.util.initPartial(data, this);
1026
589
  }
590
+ static { this.runtime = proto3; }
591
+ static { this.typeName = "bsync.ScanOperationsResponse"; }
592
+ static { this.fields = proto3.util.newFieldList(() => [
593
+ { no: 1, name: "operations", kind: "message", T: Operation, repeated: true },
594
+ { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
595
+ ]); }
1027
596
  static fromBinary(bytes, options) {
1028
597
  return new ScanOperationsResponse().fromBinary(bytes, options);
1029
598
  }
@@ -1034,57 +603,31 @@ class ScanOperationsResponse extends protobuf_1.Message {
1034
603
  return new ScanOperationsResponse().fromJsonString(jsonString, options);
1035
604
  }
1036
605
  static equals(a, b) {
1037
- return protobuf_1.proto3.util.equals(ScanOperationsResponse, a, b);
606
+ return proto3.util.equals(ScanOperationsResponse, a, b);
1038
607
  }
1039
608
  }
1040
- exports.ScanOperationsResponse = ScanOperationsResponse;
1041
- Object.defineProperty(ScanOperationsResponse, "runtime", {
1042
- enumerable: true,
1043
- configurable: true,
1044
- writable: true,
1045
- value: protobuf_1.proto3
1046
- });
1047
- Object.defineProperty(ScanOperationsResponse, "typeName", {
1048
- enumerable: true,
1049
- configurable: true,
1050
- writable: true,
1051
- value: "bsync.ScanOperationsResponse"
1052
- });
1053
- Object.defineProperty(ScanOperationsResponse, "fields", {
1054
- enumerable: true,
1055
- configurable: true,
1056
- writable: true,
1057
- value: protobuf_1.proto3.util.newFieldList(() => [
1058
- { no: 1, name: "operations", kind: "message", T: Operation, repeated: true },
1059
- { no: 2, name: "cursor", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1060
- ])
1061
- });
1062
609
  /**
1063
610
  * @generated from message bsync.DeleteOperationsByActorAndNamespaceRequest
1064
611
  */
1065
- class DeleteOperationsByActorAndNamespaceRequest extends protobuf_1.Message {
612
+ export class DeleteOperationsByActorAndNamespaceRequest extends Message {
1066
613
  constructor(data) {
1067
614
  super();
1068
615
  /**
1069
616
  * @generated from field: string actor_did = 1;
1070
617
  */
1071
- Object.defineProperty(this, "actorDid", {
1072
- enumerable: true,
1073
- configurable: true,
1074
- writable: true,
1075
- value: ""
1076
- });
618
+ this.actorDid = "";
1077
619
  /**
1078
620
  * @generated from field: string namespace = 2;
1079
621
  */
1080
- Object.defineProperty(this, "namespace", {
1081
- enumerable: true,
1082
- configurable: true,
1083
- writable: true,
1084
- value: ""
1085
- });
1086
- protobuf_1.proto3.util.initPartial(data, this);
622
+ this.namespace = "";
623
+ proto3.util.initPartial(data, this);
1087
624
  }
625
+ static { this.runtime = proto3; }
626
+ static { this.typeName = "bsync.DeleteOperationsByActorAndNamespaceRequest"; }
627
+ static { this.fields = proto3.util.newFieldList(() => [
628
+ { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
629
+ { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
630
+ ]); }
1088
631
  static fromBinary(bytes, options) {
1089
632
  return new DeleteOperationsByActorAndNamespaceRequest().fromBinary(bytes, options);
1090
633
  }
@@ -1095,48 +638,26 @@ class DeleteOperationsByActorAndNamespaceRequest extends protobuf_1.Message {
1095
638
  return new DeleteOperationsByActorAndNamespaceRequest().fromJsonString(jsonString, options);
1096
639
  }
1097
640
  static equals(a, b) {
1098
- return protobuf_1.proto3.util.equals(DeleteOperationsByActorAndNamespaceRequest, a, b);
641
+ return proto3.util.equals(DeleteOperationsByActorAndNamespaceRequest, a, b);
1099
642
  }
1100
643
  }
1101
- exports.DeleteOperationsByActorAndNamespaceRequest = DeleteOperationsByActorAndNamespaceRequest;
1102
- Object.defineProperty(DeleteOperationsByActorAndNamespaceRequest, "runtime", {
1103
- enumerable: true,
1104
- configurable: true,
1105
- writable: true,
1106
- value: protobuf_1.proto3
1107
- });
1108
- Object.defineProperty(DeleteOperationsByActorAndNamespaceRequest, "typeName", {
1109
- enumerable: true,
1110
- configurable: true,
1111
- writable: true,
1112
- value: "bsync.DeleteOperationsByActorAndNamespaceRequest"
1113
- });
1114
- Object.defineProperty(DeleteOperationsByActorAndNamespaceRequest, "fields", {
1115
- enumerable: true,
1116
- configurable: true,
1117
- writable: true,
1118
- value: protobuf_1.proto3.util.newFieldList(() => [
1119
- { no: 1, name: "actor_did", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1120
- { no: 2, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1121
- ])
1122
- });
1123
644
  /**
1124
645
  * @generated from message bsync.DeleteOperationsByActorAndNamespaceResponse
1125
646
  */
1126
- class DeleteOperationsByActorAndNamespaceResponse extends protobuf_1.Message {
647
+ export class DeleteOperationsByActorAndNamespaceResponse extends Message {
1127
648
  constructor(data) {
1128
649
  super();
1129
650
  /**
1130
651
  * @generated from field: int32 deleted_count = 1;
1131
652
  */
1132
- Object.defineProperty(this, "deletedCount", {
1133
- enumerable: true,
1134
- configurable: true,
1135
- writable: true,
1136
- value: 0
1137
- });
1138
- protobuf_1.proto3.util.initPartial(data, this);
653
+ this.deletedCount = 0;
654
+ proto3.util.initPartial(data, this);
1139
655
  }
656
+ static { this.runtime = proto3; }
657
+ static { this.typeName = "bsync.DeleteOperationsByActorAndNamespaceResponse"; }
658
+ static { this.fields = proto3.util.newFieldList(() => [
659
+ { no: 1, name: "deleted_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
660
+ ]); }
1140
661
  static fromBinary(bytes, options) {
1141
662
  return new DeleteOperationsByActorAndNamespaceResponse().fromBinary(bytes, options);
1142
663
  }
@@ -1147,40 +668,22 @@ class DeleteOperationsByActorAndNamespaceResponse extends protobuf_1.Message {
1147
668
  return new DeleteOperationsByActorAndNamespaceResponse().fromJsonString(jsonString, options);
1148
669
  }
1149
670
  static equals(a, b) {
1150
- return protobuf_1.proto3.util.equals(DeleteOperationsByActorAndNamespaceResponse, a, b);
671
+ return proto3.util.equals(DeleteOperationsByActorAndNamespaceResponse, a, b);
1151
672
  }
1152
673
  }
1153
- exports.DeleteOperationsByActorAndNamespaceResponse = DeleteOperationsByActorAndNamespaceResponse;
1154
- Object.defineProperty(DeleteOperationsByActorAndNamespaceResponse, "runtime", {
1155
- enumerable: true,
1156
- configurable: true,
1157
- writable: true,
1158
- value: protobuf_1.proto3
1159
- });
1160
- Object.defineProperty(DeleteOperationsByActorAndNamespaceResponse, "typeName", {
1161
- enumerable: true,
1162
- configurable: true,
1163
- writable: true,
1164
- value: "bsync.DeleteOperationsByActorAndNamespaceResponse"
1165
- });
1166
- Object.defineProperty(DeleteOperationsByActorAndNamespaceResponse, "fields", {
1167
- enumerable: true,
1168
- configurable: true,
1169
- writable: true,
1170
- value: protobuf_1.proto3.util.newFieldList(() => [
1171
- { no: 1, name: "deleted_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1172
- ])
1173
- });
1174
674
  /**
1175
675
  * Ping
1176
676
  *
1177
677
  * @generated from message bsync.PingRequest
1178
678
  */
1179
- class PingRequest extends protobuf_1.Message {
679
+ export class PingRequest extends Message {
1180
680
  constructor(data) {
1181
681
  super();
1182
- protobuf_1.proto3.util.initPartial(data, this);
682
+ proto3.util.initPartial(data, this);
1183
683
  }
684
+ static { this.runtime = proto3; }
685
+ static { this.typeName = "bsync.PingRequest"; }
686
+ static { this.fields = proto3.util.newFieldList(() => []); }
1184
687
  static fromBinary(bytes, options) {
1185
688
  return new PingRequest().fromBinary(bytes, options);
1186
689
  }
@@ -1191,36 +694,20 @@ class PingRequest extends protobuf_1.Message {
1191
694
  return new PingRequest().fromJsonString(jsonString, options);
1192
695
  }
1193
696
  static equals(a, b) {
1194
- return protobuf_1.proto3.util.equals(PingRequest, a, b);
697
+ return proto3.util.equals(PingRequest, a, b);
1195
698
  }
1196
699
  }
1197
- exports.PingRequest = PingRequest;
1198
- Object.defineProperty(PingRequest, "runtime", {
1199
- enumerable: true,
1200
- configurable: true,
1201
- writable: true,
1202
- value: protobuf_1.proto3
1203
- });
1204
- Object.defineProperty(PingRequest, "typeName", {
1205
- enumerable: true,
1206
- configurable: true,
1207
- writable: true,
1208
- value: "bsync.PingRequest"
1209
- });
1210
- Object.defineProperty(PingRequest, "fields", {
1211
- enumerable: true,
1212
- configurable: true,
1213
- writable: true,
1214
- value: protobuf_1.proto3.util.newFieldList(() => [])
1215
- });
1216
700
  /**
1217
701
  * @generated from message bsync.PingResponse
1218
702
  */
1219
- class PingResponse extends protobuf_1.Message {
703
+ export class PingResponse extends Message {
1220
704
  constructor(data) {
1221
705
  super();
1222
- protobuf_1.proto3.util.initPartial(data, this);
706
+ proto3.util.initPartial(data, this);
1223
707
  }
708
+ static { this.runtime = proto3; }
709
+ static { this.typeName = "bsync.PingResponse"; }
710
+ static { this.fields = proto3.util.newFieldList(() => []); }
1224
711
  static fromBinary(bytes, options) {
1225
712
  return new PingResponse().fromBinary(bytes, options);
1226
713
  }
@@ -1231,26 +718,7 @@ class PingResponse extends protobuf_1.Message {
1231
718
  return new PingResponse().fromJsonString(jsonString, options);
1232
719
  }
1233
720
  static equals(a, b) {
1234
- return protobuf_1.proto3.util.equals(PingResponse, a, b);
721
+ return proto3.util.equals(PingResponse, a, b);
1235
722
  }
1236
723
  }
1237
- exports.PingResponse = PingResponse;
1238
- Object.defineProperty(PingResponse, "runtime", {
1239
- enumerable: true,
1240
- configurable: true,
1241
- writable: true,
1242
- value: protobuf_1.proto3
1243
- });
1244
- Object.defineProperty(PingResponse, "typeName", {
1245
- enumerable: true,
1246
- configurable: true,
1247
- writable: true,
1248
- value: "bsync.PingResponse"
1249
- });
1250
- Object.defineProperty(PingResponse, "fields", {
1251
- enumerable: true,
1252
- configurable: true,
1253
- writable: true,
1254
- value: protobuf_1.proto3.util.newFieldList(() => [])
1255
- });
1256
724
  //# sourceMappingURL=bsync_pb.js.map