@kernelminds/scailo-sdk 0.0.110 → 0.0.112

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 (43) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +148 -0
  3. package/lib/cjs/index.js +0 -1
  4. package/lib/cjs/src/magic_links.scailo_pb.js +7 -0
  5. package/lib/cjs/src/users.scailo_connect.js +12 -0
  6. package/lib/cjs/src/vault_commons.scailo_pb.js +2 -2
  7. package/lib/cjs/types/index.d.ts +0 -1
  8. package/lib/cjs/types/index.d.ts.map +1 -1
  9. package/lib/cjs/types/src/magic_links.scailo_pb.d.ts +7 -1
  10. package/lib/cjs/types/src/magic_links.scailo_pb.d.ts.map +1 -1
  11. package/lib/cjs/types/src/users.scailo_connect.d.ts +12 -0
  12. package/lib/cjs/types/src/users.scailo_connect.d.ts.map +1 -1
  13. package/lib/cjs/types/src/vault_commons.scailo_pb.d.ts +2 -2
  14. package/lib/esm/index.js +0 -1
  15. package/lib/esm/src/magic_links.scailo_pb.js +7 -0
  16. package/lib/esm/src/users.scailo_connect.js +12 -0
  17. package/lib/esm/src/vault_commons.scailo_pb.js +2 -2
  18. package/lib/esm/types/index.d.ts +0 -1
  19. package/lib/esm/types/index.d.ts.map +1 -1
  20. package/lib/esm/types/src/magic_links.scailo_pb.d.ts +7 -1
  21. package/lib/esm/types/src/magic_links.scailo_pb.d.ts.map +1 -1
  22. package/lib/esm/types/src/users.scailo_connect.d.ts +12 -0
  23. package/lib/esm/types/src/users.scailo_connect.d.ts.map +1 -1
  24. package/lib/esm/types/src/vault_commons.scailo_pb.d.ts +2 -2
  25. package/package.json +6 -6
  26. package/lib/cjs/src/genesis.validate.scailo_pb.js +0 -1141
  27. package/lib/cjs/src/google/protobuf/duration_pb.js +0 -183
  28. package/lib/cjs/src/google/protobuf/timestamp_pb.js +0 -227
  29. package/lib/cjs/types/src/genesis.validate.scailo_pb.d.ts +0 -1796
  30. package/lib/cjs/types/src/genesis.validate.scailo_pb.d.ts.map +0 -1
  31. package/lib/cjs/types/src/google/protobuf/duration_pb.d.ts +0 -97
  32. package/lib/cjs/types/src/google/protobuf/duration_pb.d.ts.map +0 -1
  33. package/lib/cjs/types/src/google/protobuf/timestamp_pb.d.ts +0 -129
  34. package/lib/cjs/types/src/google/protobuf/timestamp_pb.d.ts.map +0 -1
  35. package/lib/esm/src/genesis.validate.scailo_pb.js +0 -2045
  36. package/lib/esm/src/google/protobuf/duration_pb.js +0 -183
  37. package/lib/esm/src/google/protobuf/timestamp_pb.js +0 -227
  38. package/lib/esm/types/src/genesis.validate.scailo_pb.d.ts +0 -1796
  39. package/lib/esm/types/src/genesis.validate.scailo_pb.d.ts.map +0 -1
  40. package/lib/esm/types/src/google/protobuf/duration_pb.d.ts +0 -97
  41. package/lib/esm/types/src/google/protobuf/duration_pb.d.ts.map +0 -1
  42. package/lib/esm/types/src/google/protobuf/timestamp_pb.d.ts +0 -129
  43. package/lib/esm/types/src/google/protobuf/timestamp_pb.d.ts.map +0 -1
@@ -1,1141 +0,0 @@
1
- "use strict";
2
- // @generated by protoc-gen-es v1.5.1 with parameter "target=ts"
3
- // @generated from file genesis.validate.scailo.proto (package genesis_validate, syntax proto2)
4
- /* eslint-disable */
5
- // @ts-nocheck
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.TimestampRules = exports.DurationRules = exports.AnyRules = exports.MapRules = exports.RepeatedRules = exports.MessageRules = exports.EnumRules = exports.BytesRules = exports.StringRules = exports.BoolRules = exports.SFixed64Rules = exports.SFixed32Rules = exports.Fixed64Rules = exports.Fixed32Rules = exports.SInt64Rules = exports.SInt32Rules = exports.UInt64Rules = exports.UInt32Rules = exports.Int64Rules = exports.Int32Rules = exports.DoubleRules = exports.FloatRules = exports.FieldRules = exports.KnownRegex = void 0;
8
- const protobuf_1 = require("@bufbuild/protobuf");
9
- const duration_pb_js_1 = require("./google/protobuf/duration_pb.js");
10
- const timestamp_pb_js_1 = require("./google/protobuf/timestamp_pb.js");
11
- /**
12
- * WellKnownRegex contain some well-known patterns.
13
- *
14
- * @generated from enum genesis_validate.KnownRegex
15
- */
16
- var KnownRegex;
17
- (function (KnownRegex) {
18
- /**
19
- * @generated from enum value: UNKNOWN = 0;
20
- */
21
- KnownRegex[KnownRegex["UNKNOWN"] = 0] = "UNKNOWN";
22
- /**
23
- * HTTP header name as defined by RFC 7230.
24
- *
25
- * @generated from enum value: HTTP_HEADER_NAME = 1;
26
- */
27
- KnownRegex[KnownRegex["HTTP_HEADER_NAME"] = 1] = "HTTP_HEADER_NAME";
28
- /**
29
- * HTTP header value as defined by RFC 7230.
30
- *
31
- * @generated from enum value: HTTP_HEADER_VALUE = 2;
32
- */
33
- KnownRegex[KnownRegex["HTTP_HEADER_VALUE"] = 2] = "HTTP_HEADER_VALUE";
34
- })(KnownRegex || (exports.KnownRegex = KnownRegex = {}));
35
- // Retrieve enum metadata with: proto2.getEnumType(KnownRegex)
36
- protobuf_1.proto2.util.setEnumType(KnownRegex, "genesis_validate.KnownRegex", [
37
- { no: 0, name: "UNKNOWN" },
38
- { no: 1, name: "HTTP_HEADER_NAME" },
39
- { no: 2, name: "HTTP_HEADER_VALUE" },
40
- ]);
41
- /**
42
- * FieldRules encapsulates the rules for each type of field. Depending on the
43
- * field, the correct set should be used to ensure proper validations.
44
- *
45
- * @generated from message genesis_validate.FieldRules
46
- */
47
- class FieldRules extends protobuf_1.Message {
48
- constructor(data) {
49
- super();
50
- /**
51
- * @generated from oneof genesis_validate.FieldRules.type
52
- */
53
- this.type = { case: undefined };
54
- protobuf_1.proto2.util.initPartial(data, this);
55
- }
56
- static fromBinary(bytes, options) {
57
- return new FieldRules().fromBinary(bytes, options);
58
- }
59
- static fromJson(jsonValue, options) {
60
- return new FieldRules().fromJson(jsonValue, options);
61
- }
62
- static fromJsonString(jsonString, options) {
63
- return new FieldRules().fromJsonString(jsonString, options);
64
- }
65
- static equals(a, b) {
66
- return protobuf_1.proto2.util.equals(FieldRules, a, b);
67
- }
68
- }
69
- exports.FieldRules = FieldRules;
70
- FieldRules.runtime = protobuf_1.proto2;
71
- FieldRules.typeName = "genesis_validate.FieldRules";
72
- FieldRules.fields = protobuf_1.proto2.util.newFieldList(() => [
73
- { no: 17, name: "message", kind: "message", T: MessageRules, opt: true },
74
- { no: 1, name: "float", kind: "message", T: FloatRules, oneof: "type" },
75
- { no: 2, name: "double", kind: "message", T: DoubleRules, oneof: "type" },
76
- { no: 3, name: "int32", kind: "message", T: Int32Rules, oneof: "type" },
77
- { no: 4, name: "int64", kind: "message", T: Int64Rules, oneof: "type" },
78
- { no: 5, name: "uint32", kind: "message", T: UInt32Rules, oneof: "type" },
79
- { no: 6, name: "uint64", kind: "message", T: UInt64Rules, oneof: "type" },
80
- { no: 7, name: "sint32", kind: "message", T: SInt32Rules, oneof: "type" },
81
- { no: 8, name: "sint64", kind: "message", T: SInt64Rules, oneof: "type" },
82
- { no: 9, name: "fixed32", kind: "message", T: Fixed32Rules, oneof: "type" },
83
- { no: 10, name: "fixed64", kind: "message", T: Fixed64Rules, oneof: "type" },
84
- { no: 11, name: "sfixed32", kind: "message", T: SFixed32Rules, oneof: "type" },
85
- { no: 12, name: "sfixed64", kind: "message", T: SFixed64Rules, oneof: "type" },
86
- { no: 13, name: "bool", kind: "message", T: BoolRules, oneof: "type" },
87
- { no: 14, name: "string", kind: "message", T: StringRules, oneof: "type" },
88
- { no: 15, name: "bytes", kind: "message", T: BytesRules, oneof: "type" },
89
- { no: 16, name: "enum", kind: "message", T: EnumRules, oneof: "type" },
90
- { no: 18, name: "repeated", kind: "message", T: RepeatedRules, oneof: "type" },
91
- { no: 19, name: "map", kind: "message", T: MapRules, oneof: "type" },
92
- { no: 20, name: "any", kind: "message", T: AnyRules, oneof: "type" },
93
- { no: 21, name: "duration", kind: "message", T: DurationRules, oneof: "type" },
94
- { no: 22, name: "timestamp", kind: "message", T: TimestampRules, oneof: "type" },
95
- ]);
96
- /**
97
- * FloatRules describes the constraints applied to `float` values
98
- *
99
- * @generated from message genesis_validate.FloatRules
100
- */
101
- class FloatRules extends protobuf_1.Message {
102
- constructor(data) {
103
- super();
104
- /**
105
- * In specifies that this field must be equal to one of the specified
106
- * values
107
- *
108
- * @generated from field: repeated float in = 6;
109
- */
110
- this.in = [];
111
- /**
112
- * NotIn specifies that this field cannot be equal to one of the specified
113
- * values
114
- *
115
- * @generated from field: repeated float not_in = 7;
116
- */
117
- this.notIn = [];
118
- protobuf_1.proto2.util.initPartial(data, this);
119
- }
120
- static fromBinary(bytes, options) {
121
- return new FloatRules().fromBinary(bytes, options);
122
- }
123
- static fromJson(jsonValue, options) {
124
- return new FloatRules().fromJson(jsonValue, options);
125
- }
126
- static fromJsonString(jsonString, options) {
127
- return new FloatRules().fromJsonString(jsonString, options);
128
- }
129
- static equals(a, b) {
130
- return protobuf_1.proto2.util.equals(FloatRules, a, b);
131
- }
132
- }
133
- exports.FloatRules = FloatRules;
134
- FloatRules.runtime = protobuf_1.proto2;
135
- FloatRules.typeName = "genesis_validate.FloatRules";
136
- FloatRules.fields = protobuf_1.proto2.util.newFieldList(() => [
137
- { no: 1, name: "const", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
138
- { no: 2, name: "lt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
139
- { no: 3, name: "lte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
140
- { no: 4, name: "gt", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
141
- { no: 5, name: "gte", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
142
- { no: 6, name: "in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
143
- { no: 7, name: "not_in", kind: "scalar", T: 2 /* ScalarType.FLOAT */, repeated: true },
144
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
145
- ]);
146
- /**
147
- * DoubleRules describes the constraints applied to `double` values
148
- *
149
- * @generated from message genesis_validate.DoubleRules
150
- */
151
- class DoubleRules extends protobuf_1.Message {
152
- constructor(data) {
153
- super();
154
- /**
155
- * In specifies that this field must be equal to one of the specified
156
- * values
157
- *
158
- * @generated from field: repeated double in = 6;
159
- */
160
- this.in = [];
161
- /**
162
- * NotIn specifies that this field cannot be equal to one of the specified
163
- * values
164
- *
165
- * @generated from field: repeated double not_in = 7;
166
- */
167
- this.notIn = [];
168
- protobuf_1.proto2.util.initPartial(data, this);
169
- }
170
- static fromBinary(bytes, options) {
171
- return new DoubleRules().fromBinary(bytes, options);
172
- }
173
- static fromJson(jsonValue, options) {
174
- return new DoubleRules().fromJson(jsonValue, options);
175
- }
176
- static fromJsonString(jsonString, options) {
177
- return new DoubleRules().fromJsonString(jsonString, options);
178
- }
179
- static equals(a, b) {
180
- return protobuf_1.proto2.util.equals(DoubleRules, a, b);
181
- }
182
- }
183
- exports.DoubleRules = DoubleRules;
184
- DoubleRules.runtime = protobuf_1.proto2;
185
- DoubleRules.typeName = "genesis_validate.DoubleRules";
186
- DoubleRules.fields = protobuf_1.proto2.util.newFieldList(() => [
187
- { no: 1, name: "const", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
188
- { no: 2, name: "lt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
189
- { no: 3, name: "lte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
190
- { no: 4, name: "gt", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
191
- { no: 5, name: "gte", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
192
- { no: 6, name: "in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
193
- { no: 7, name: "not_in", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, repeated: true },
194
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
195
- ]);
196
- /**
197
- * Int32Rules describes the constraints applied to `int32` values
198
- *
199
- * @generated from message genesis_validate.Int32Rules
200
- */
201
- class Int32Rules extends protobuf_1.Message {
202
- constructor(data) {
203
- super();
204
- /**
205
- * In specifies that this field must be equal to one of the specified
206
- * values
207
- *
208
- * @generated from field: repeated int32 in = 6;
209
- */
210
- this.in = [];
211
- /**
212
- * NotIn specifies that this field cannot be equal to one of the specified
213
- * values
214
- *
215
- * @generated from field: repeated int32 not_in = 7;
216
- */
217
- this.notIn = [];
218
- protobuf_1.proto2.util.initPartial(data, this);
219
- }
220
- static fromBinary(bytes, options) {
221
- return new Int32Rules().fromBinary(bytes, options);
222
- }
223
- static fromJson(jsonValue, options) {
224
- return new Int32Rules().fromJson(jsonValue, options);
225
- }
226
- static fromJsonString(jsonString, options) {
227
- return new Int32Rules().fromJsonString(jsonString, options);
228
- }
229
- static equals(a, b) {
230
- return protobuf_1.proto2.util.equals(Int32Rules, a, b);
231
- }
232
- }
233
- exports.Int32Rules = Int32Rules;
234
- Int32Rules.runtime = protobuf_1.proto2;
235
- Int32Rules.typeName = "genesis_validate.Int32Rules";
236
- Int32Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
237
- { no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
238
- { no: 2, name: "lt", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
239
- { no: 3, name: "lte", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
240
- { no: 4, name: "gt", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
241
- { no: 5, name: "gte", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
242
- { no: 6, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
243
- { no: 7, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
244
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
245
- ]);
246
- /**
247
- * Int64Rules describes the constraints applied to `int64` values
248
- *
249
- * @generated from message genesis_validate.Int64Rules
250
- */
251
- class Int64Rules extends protobuf_1.Message {
252
- constructor(data) {
253
- super();
254
- /**
255
- * In specifies that this field must be equal to one of the specified
256
- * values
257
- *
258
- * @generated from field: repeated int64 in = 6;
259
- */
260
- this.in = [];
261
- /**
262
- * NotIn specifies that this field cannot be equal to one of the specified
263
- * values
264
- *
265
- * @generated from field: repeated int64 not_in = 7;
266
- */
267
- this.notIn = [];
268
- protobuf_1.proto2.util.initPartial(data, this);
269
- }
270
- static fromBinary(bytes, options) {
271
- return new Int64Rules().fromBinary(bytes, options);
272
- }
273
- static fromJson(jsonValue, options) {
274
- return new Int64Rules().fromJson(jsonValue, options);
275
- }
276
- static fromJsonString(jsonString, options) {
277
- return new Int64Rules().fromJsonString(jsonString, options);
278
- }
279
- static equals(a, b) {
280
- return protobuf_1.proto2.util.equals(Int64Rules, a, b);
281
- }
282
- }
283
- exports.Int64Rules = Int64Rules;
284
- Int64Rules.runtime = protobuf_1.proto2;
285
- Int64Rules.typeName = "genesis_validate.Int64Rules";
286
- Int64Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
287
- { no: 1, name: "const", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
288
- { no: 2, name: "lt", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
289
- { no: 3, name: "lte", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
290
- { no: 4, name: "gt", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
291
- { no: 5, name: "gte", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
292
- { no: 6, name: "in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
293
- { no: 7, name: "not_in", kind: "scalar", T: 3 /* ScalarType.INT64 */, repeated: true },
294
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
295
- ]);
296
- /**
297
- * UInt32Rules describes the constraints applied to `uint32` values
298
- *
299
- * @generated from message genesis_validate.UInt32Rules
300
- */
301
- class UInt32Rules extends protobuf_1.Message {
302
- constructor(data) {
303
- super();
304
- /**
305
- * In specifies that this field must be equal to one of the specified
306
- * values
307
- *
308
- * @generated from field: repeated uint32 in = 6;
309
- */
310
- this.in = [];
311
- /**
312
- * NotIn specifies that this field cannot be equal to one of the specified
313
- * values
314
- *
315
- * @generated from field: repeated uint32 not_in = 7;
316
- */
317
- this.notIn = [];
318
- protobuf_1.proto2.util.initPartial(data, this);
319
- }
320
- static fromBinary(bytes, options) {
321
- return new UInt32Rules().fromBinary(bytes, options);
322
- }
323
- static fromJson(jsonValue, options) {
324
- return new UInt32Rules().fromJson(jsonValue, options);
325
- }
326
- static fromJsonString(jsonString, options) {
327
- return new UInt32Rules().fromJsonString(jsonString, options);
328
- }
329
- static equals(a, b) {
330
- return protobuf_1.proto2.util.equals(UInt32Rules, a, b);
331
- }
332
- }
333
- exports.UInt32Rules = UInt32Rules;
334
- UInt32Rules.runtime = protobuf_1.proto2;
335
- UInt32Rules.typeName = "genesis_validate.UInt32Rules";
336
- UInt32Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
337
- { no: 1, name: "const", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
338
- { no: 2, name: "lt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
339
- { no: 3, name: "lte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
340
- { no: 4, name: "gt", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
341
- { no: 5, name: "gte", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
342
- { no: 6, name: "in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
343
- { no: 7, name: "not_in", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
344
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
345
- ]);
346
- /**
347
- * UInt64Rules describes the constraints applied to `uint64` values
348
- *
349
- * @generated from message genesis_validate.UInt64Rules
350
- */
351
- class UInt64Rules extends protobuf_1.Message {
352
- constructor(data) {
353
- super();
354
- /**
355
- * In specifies that this field must be equal to one of the specified
356
- * values
357
- *
358
- * @generated from field: repeated uint64 in = 6;
359
- */
360
- this.in = [];
361
- /**
362
- * NotIn specifies that this field cannot be equal to one of the specified
363
- * values
364
- *
365
- * @generated from field: repeated uint64 not_in = 7;
366
- */
367
- this.notIn = [];
368
- protobuf_1.proto2.util.initPartial(data, this);
369
- }
370
- static fromBinary(bytes, options) {
371
- return new UInt64Rules().fromBinary(bytes, options);
372
- }
373
- static fromJson(jsonValue, options) {
374
- return new UInt64Rules().fromJson(jsonValue, options);
375
- }
376
- static fromJsonString(jsonString, options) {
377
- return new UInt64Rules().fromJsonString(jsonString, options);
378
- }
379
- static equals(a, b) {
380
- return protobuf_1.proto2.util.equals(UInt64Rules, a, b);
381
- }
382
- }
383
- exports.UInt64Rules = UInt64Rules;
384
- UInt64Rules.runtime = protobuf_1.proto2;
385
- UInt64Rules.typeName = "genesis_validate.UInt64Rules";
386
- UInt64Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
387
- { no: 1, name: "const", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
388
- { no: 2, name: "lt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
389
- { no: 3, name: "lte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
390
- { no: 4, name: "gt", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
391
- { no: 5, name: "gte", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
392
- { no: 6, name: "in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
393
- { no: 7, name: "not_in", kind: "scalar", T: 4 /* ScalarType.UINT64 */, repeated: true },
394
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
395
- ]);
396
- /**
397
- * SInt32Rules describes the constraints applied to `sint32` values
398
- *
399
- * @generated from message genesis_validate.SInt32Rules
400
- */
401
- class SInt32Rules extends protobuf_1.Message {
402
- constructor(data) {
403
- super();
404
- /**
405
- * In specifies that this field must be equal to one of the specified
406
- * values
407
- *
408
- * @generated from field: repeated sint32 in = 6;
409
- */
410
- this.in = [];
411
- /**
412
- * NotIn specifies that this field cannot be equal to one of the specified
413
- * values
414
- *
415
- * @generated from field: repeated sint32 not_in = 7;
416
- */
417
- this.notIn = [];
418
- protobuf_1.proto2.util.initPartial(data, this);
419
- }
420
- static fromBinary(bytes, options) {
421
- return new SInt32Rules().fromBinary(bytes, options);
422
- }
423
- static fromJson(jsonValue, options) {
424
- return new SInt32Rules().fromJson(jsonValue, options);
425
- }
426
- static fromJsonString(jsonString, options) {
427
- return new SInt32Rules().fromJsonString(jsonString, options);
428
- }
429
- static equals(a, b) {
430
- return protobuf_1.proto2.util.equals(SInt32Rules, a, b);
431
- }
432
- }
433
- exports.SInt32Rules = SInt32Rules;
434
- SInt32Rules.runtime = protobuf_1.proto2;
435
- SInt32Rules.typeName = "genesis_validate.SInt32Rules";
436
- SInt32Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
437
- { no: 1, name: "const", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
438
- { no: 2, name: "lt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
439
- { no: 3, name: "lte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
440
- { no: 4, name: "gt", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
441
- { no: 5, name: "gte", kind: "scalar", T: 17 /* ScalarType.SINT32 */, opt: true },
442
- { no: 6, name: "in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
443
- { no: 7, name: "not_in", kind: "scalar", T: 17 /* ScalarType.SINT32 */, repeated: true },
444
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
445
- ]);
446
- /**
447
- * SInt64Rules describes the constraints applied to `sint64` values
448
- *
449
- * @generated from message genesis_validate.SInt64Rules
450
- */
451
- class SInt64Rules extends protobuf_1.Message {
452
- constructor(data) {
453
- super();
454
- /**
455
- * In specifies that this field must be equal to one of the specified
456
- * values
457
- *
458
- * @generated from field: repeated sint64 in = 6;
459
- */
460
- this.in = [];
461
- /**
462
- * NotIn specifies that this field cannot be equal to one of the specified
463
- * values
464
- *
465
- * @generated from field: repeated sint64 not_in = 7;
466
- */
467
- this.notIn = [];
468
- protobuf_1.proto2.util.initPartial(data, this);
469
- }
470
- static fromBinary(bytes, options) {
471
- return new SInt64Rules().fromBinary(bytes, options);
472
- }
473
- static fromJson(jsonValue, options) {
474
- return new SInt64Rules().fromJson(jsonValue, options);
475
- }
476
- static fromJsonString(jsonString, options) {
477
- return new SInt64Rules().fromJsonString(jsonString, options);
478
- }
479
- static equals(a, b) {
480
- return protobuf_1.proto2.util.equals(SInt64Rules, a, b);
481
- }
482
- }
483
- exports.SInt64Rules = SInt64Rules;
484
- SInt64Rules.runtime = protobuf_1.proto2;
485
- SInt64Rules.typeName = "genesis_validate.SInt64Rules";
486
- SInt64Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
487
- { no: 1, name: "const", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
488
- { no: 2, name: "lt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
489
- { no: 3, name: "lte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
490
- { no: 4, name: "gt", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
491
- { no: 5, name: "gte", kind: "scalar", T: 18 /* ScalarType.SINT64 */, opt: true },
492
- { no: 6, name: "in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
493
- { no: 7, name: "not_in", kind: "scalar", T: 18 /* ScalarType.SINT64 */, repeated: true },
494
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
495
- ]);
496
- /**
497
- * Fixed32Rules describes the constraints applied to `fixed32` values
498
- *
499
- * @generated from message genesis_validate.Fixed32Rules
500
- */
501
- class Fixed32Rules extends protobuf_1.Message {
502
- constructor(data) {
503
- super();
504
- /**
505
- * In specifies that this field must be equal to one of the specified
506
- * values
507
- *
508
- * @generated from field: repeated fixed32 in = 6;
509
- */
510
- this.in = [];
511
- /**
512
- * NotIn specifies that this field cannot be equal to one of the specified
513
- * values
514
- *
515
- * @generated from field: repeated fixed32 not_in = 7;
516
- */
517
- this.notIn = [];
518
- protobuf_1.proto2.util.initPartial(data, this);
519
- }
520
- static fromBinary(bytes, options) {
521
- return new Fixed32Rules().fromBinary(bytes, options);
522
- }
523
- static fromJson(jsonValue, options) {
524
- return new Fixed32Rules().fromJson(jsonValue, options);
525
- }
526
- static fromJsonString(jsonString, options) {
527
- return new Fixed32Rules().fromJsonString(jsonString, options);
528
- }
529
- static equals(a, b) {
530
- return protobuf_1.proto2.util.equals(Fixed32Rules, a, b);
531
- }
532
- }
533
- exports.Fixed32Rules = Fixed32Rules;
534
- Fixed32Rules.runtime = protobuf_1.proto2;
535
- Fixed32Rules.typeName = "genesis_validate.Fixed32Rules";
536
- Fixed32Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
537
- { no: 1, name: "const", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
538
- { no: 2, name: "lt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
539
- { no: 3, name: "lte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
540
- { no: 4, name: "gt", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
541
- { no: 5, name: "gte", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, opt: true },
542
- { no: 6, name: "in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
543
- { no: 7, name: "not_in", kind: "scalar", T: 7 /* ScalarType.FIXED32 */, repeated: true },
544
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
545
- ]);
546
- /**
547
- * Fixed64Rules describes the constraints applied to `fixed64` values
548
- *
549
- * @generated from message genesis_validate.Fixed64Rules
550
- */
551
- class Fixed64Rules extends protobuf_1.Message {
552
- constructor(data) {
553
- super();
554
- /**
555
- * In specifies that this field must be equal to one of the specified
556
- * values
557
- *
558
- * @generated from field: repeated fixed64 in = 6;
559
- */
560
- this.in = [];
561
- /**
562
- * NotIn specifies that this field cannot be equal to one of the specified
563
- * values
564
- *
565
- * @generated from field: repeated fixed64 not_in = 7;
566
- */
567
- this.notIn = [];
568
- protobuf_1.proto2.util.initPartial(data, this);
569
- }
570
- static fromBinary(bytes, options) {
571
- return new Fixed64Rules().fromBinary(bytes, options);
572
- }
573
- static fromJson(jsonValue, options) {
574
- return new Fixed64Rules().fromJson(jsonValue, options);
575
- }
576
- static fromJsonString(jsonString, options) {
577
- return new Fixed64Rules().fromJsonString(jsonString, options);
578
- }
579
- static equals(a, b) {
580
- return protobuf_1.proto2.util.equals(Fixed64Rules, a, b);
581
- }
582
- }
583
- exports.Fixed64Rules = Fixed64Rules;
584
- Fixed64Rules.runtime = protobuf_1.proto2;
585
- Fixed64Rules.typeName = "genesis_validate.Fixed64Rules";
586
- Fixed64Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
587
- { no: 1, name: "const", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
588
- { no: 2, name: "lt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
589
- { no: 3, name: "lte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
590
- { no: 4, name: "gt", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
591
- { no: 5, name: "gte", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, opt: true },
592
- { no: 6, name: "in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
593
- { no: 7, name: "not_in", kind: "scalar", T: 6 /* ScalarType.FIXED64 */, repeated: true },
594
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
595
- ]);
596
- /**
597
- * SFixed32Rules describes the constraints applied to `sfixed32` values
598
- *
599
- * @generated from message genesis_validate.SFixed32Rules
600
- */
601
- class SFixed32Rules extends protobuf_1.Message {
602
- constructor(data) {
603
- super();
604
- /**
605
- * In specifies that this field must be equal to one of the specified
606
- * values
607
- *
608
- * @generated from field: repeated sfixed32 in = 6;
609
- */
610
- this.in = [];
611
- /**
612
- * NotIn specifies that this field cannot be equal to one of the specified
613
- * values
614
- *
615
- * @generated from field: repeated sfixed32 not_in = 7;
616
- */
617
- this.notIn = [];
618
- protobuf_1.proto2.util.initPartial(data, this);
619
- }
620
- static fromBinary(bytes, options) {
621
- return new SFixed32Rules().fromBinary(bytes, options);
622
- }
623
- static fromJson(jsonValue, options) {
624
- return new SFixed32Rules().fromJson(jsonValue, options);
625
- }
626
- static fromJsonString(jsonString, options) {
627
- return new SFixed32Rules().fromJsonString(jsonString, options);
628
- }
629
- static equals(a, b) {
630
- return protobuf_1.proto2.util.equals(SFixed32Rules, a, b);
631
- }
632
- }
633
- exports.SFixed32Rules = SFixed32Rules;
634
- SFixed32Rules.runtime = protobuf_1.proto2;
635
- SFixed32Rules.typeName = "genesis_validate.SFixed32Rules";
636
- SFixed32Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
637
- { no: 1, name: "const", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
638
- { no: 2, name: "lt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
639
- { no: 3, name: "lte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
640
- { no: 4, name: "gt", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
641
- { no: 5, name: "gte", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, opt: true },
642
- { no: 6, name: "in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
643
- { no: 7, name: "not_in", kind: "scalar", T: 15 /* ScalarType.SFIXED32 */, repeated: true },
644
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
645
- ]);
646
- /**
647
- * SFixed64Rules describes the constraints applied to `sfixed64` values
648
- *
649
- * @generated from message genesis_validate.SFixed64Rules
650
- */
651
- class SFixed64Rules extends protobuf_1.Message {
652
- constructor(data) {
653
- super();
654
- /**
655
- * In specifies that this field must be equal to one of the specified
656
- * values
657
- *
658
- * @generated from field: repeated sfixed64 in = 6;
659
- */
660
- this.in = [];
661
- /**
662
- * NotIn specifies that this field cannot be equal to one of the specified
663
- * values
664
- *
665
- * @generated from field: repeated sfixed64 not_in = 7;
666
- */
667
- this.notIn = [];
668
- protobuf_1.proto2.util.initPartial(data, this);
669
- }
670
- static fromBinary(bytes, options) {
671
- return new SFixed64Rules().fromBinary(bytes, options);
672
- }
673
- static fromJson(jsonValue, options) {
674
- return new SFixed64Rules().fromJson(jsonValue, options);
675
- }
676
- static fromJsonString(jsonString, options) {
677
- return new SFixed64Rules().fromJsonString(jsonString, options);
678
- }
679
- static equals(a, b) {
680
- return protobuf_1.proto2.util.equals(SFixed64Rules, a, b);
681
- }
682
- }
683
- exports.SFixed64Rules = SFixed64Rules;
684
- SFixed64Rules.runtime = protobuf_1.proto2;
685
- SFixed64Rules.typeName = "genesis_validate.SFixed64Rules";
686
- SFixed64Rules.fields = protobuf_1.proto2.util.newFieldList(() => [
687
- { no: 1, name: "const", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
688
- { no: 2, name: "lt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
689
- { no: 3, name: "lte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
690
- { no: 4, name: "gt", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
691
- { no: 5, name: "gte", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, opt: true },
692
- { no: 6, name: "in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
693
- { no: 7, name: "not_in", kind: "scalar", T: 16 /* ScalarType.SFIXED64 */, repeated: true },
694
- { no: 8, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
695
- ]);
696
- /**
697
- * BoolRules describes the constraints applied to `bool` values
698
- *
699
- * @generated from message genesis_validate.BoolRules
700
- */
701
- class BoolRules extends protobuf_1.Message {
702
- constructor(data) {
703
- super();
704
- protobuf_1.proto2.util.initPartial(data, this);
705
- }
706
- static fromBinary(bytes, options) {
707
- return new BoolRules().fromBinary(bytes, options);
708
- }
709
- static fromJson(jsonValue, options) {
710
- return new BoolRules().fromJson(jsonValue, options);
711
- }
712
- static fromJsonString(jsonString, options) {
713
- return new BoolRules().fromJsonString(jsonString, options);
714
- }
715
- static equals(a, b) {
716
- return protobuf_1.proto2.util.equals(BoolRules, a, b);
717
- }
718
- }
719
- exports.BoolRules = BoolRules;
720
- BoolRules.runtime = protobuf_1.proto2;
721
- BoolRules.typeName = "genesis_validate.BoolRules";
722
- BoolRules.fields = protobuf_1.proto2.util.newFieldList(() => [
723
- { no: 1, name: "const", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
724
- ]);
725
- /**
726
- * StringRules describe the constraints applied to `string` values
727
- *
728
- * @generated from message genesis_validate.StringRules
729
- */
730
- class StringRules extends protobuf_1.Message {
731
- constructor(data) {
732
- super();
733
- /**
734
- * In specifies that this field must be equal to one of the specified
735
- * values
736
- *
737
- * @generated from field: repeated string in = 10;
738
- */
739
- this.in = [];
740
- /**
741
- * NotIn specifies that this field cannot be equal to one of the specified
742
- * values
743
- *
744
- * @generated from field: repeated string not_in = 11;
745
- */
746
- this.notIn = [];
747
- /**
748
- * WellKnown rules provide advanced constraints against common string
749
- * patterns
750
- *
751
- * @generated from oneof genesis_validate.StringRules.well_known
752
- */
753
- this.wellKnown = { case: undefined };
754
- protobuf_1.proto2.util.initPartial(data, this);
755
- }
756
- static fromBinary(bytes, options) {
757
- return new StringRules().fromBinary(bytes, options);
758
- }
759
- static fromJson(jsonValue, options) {
760
- return new StringRules().fromJson(jsonValue, options);
761
- }
762
- static fromJsonString(jsonString, options) {
763
- return new StringRules().fromJsonString(jsonString, options);
764
- }
765
- static equals(a, b) {
766
- return protobuf_1.proto2.util.equals(StringRules, a, b);
767
- }
768
- }
769
- exports.StringRules = StringRules;
770
- StringRules.runtime = protobuf_1.proto2;
771
- StringRules.typeName = "genesis_validate.StringRules";
772
- StringRules.fields = protobuf_1.proto2.util.newFieldList(() => [
773
- { no: 1, name: "const", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
774
- { no: 19, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
775
- { no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
776
- { no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
777
- { no: 20, name: "len_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
778
- { no: 4, name: "min_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
779
- { no: 5, name: "max_bytes", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
780
- { no: 6, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
781
- { no: 7, name: "prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
782
- { no: 8, name: "suffix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
783
- { no: 9, name: "contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
784
- { no: 23, name: "not_contains", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
785
- { no: 10, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
786
- { no: 11, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
787
- { no: 12, name: "email", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
788
- { no: 13, name: "hostname", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
789
- { no: 14, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
790
- { no: 15, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
791
- { no: 16, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
792
- { no: 17, name: "uri", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
793
- { no: 18, name: "uri_ref", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
794
- { no: 21, name: "address", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
795
- { no: 22, name: "uuid", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
796
- { no: 24, name: "well_known_regex", kind: "enum", T: protobuf_1.proto2.getEnumType(KnownRegex), oneof: "well_known" },
797
- { no: 25, name: "strict", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: true },
798
- { no: 26, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
799
- ]);
800
- /**
801
- * BytesRules describe the constraints applied to `bytes` values
802
- *
803
- * @generated from message genesis_validate.BytesRules
804
- */
805
- class BytesRules extends protobuf_1.Message {
806
- constructor(data) {
807
- super();
808
- /**
809
- * In specifies that this field must be equal to one of the specified
810
- * values
811
- *
812
- * @generated from field: repeated bytes in = 8;
813
- */
814
- this.in = [];
815
- /**
816
- * NotIn specifies that this field cannot be equal to one of the specified
817
- * values
818
- *
819
- * @generated from field: repeated bytes not_in = 9;
820
- */
821
- this.notIn = [];
822
- /**
823
- * WellKnown rules provide advanced constraints against common byte
824
- * patterns
825
- *
826
- * @generated from oneof genesis_validate.BytesRules.well_known
827
- */
828
- this.wellKnown = { case: undefined };
829
- protobuf_1.proto2.util.initPartial(data, this);
830
- }
831
- static fromBinary(bytes, options) {
832
- return new BytesRules().fromBinary(bytes, options);
833
- }
834
- static fromJson(jsonValue, options) {
835
- return new BytesRules().fromJson(jsonValue, options);
836
- }
837
- static fromJsonString(jsonString, options) {
838
- return new BytesRules().fromJsonString(jsonString, options);
839
- }
840
- static equals(a, b) {
841
- return protobuf_1.proto2.util.equals(BytesRules, a, b);
842
- }
843
- }
844
- exports.BytesRules = BytesRules;
845
- BytesRules.runtime = protobuf_1.proto2;
846
- BytesRules.typeName = "genesis_validate.BytesRules";
847
- BytesRules.fields = protobuf_1.proto2.util.newFieldList(() => [
848
- { no: 1, name: "const", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
849
- { no: 13, name: "len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
850
- { no: 2, name: "min_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
851
- { no: 3, name: "max_len", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
852
- { no: 4, name: "pattern", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
853
- { no: 5, name: "prefix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
854
- { no: 6, name: "suffix", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
855
- { no: 7, name: "contains", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
856
- { no: 8, name: "in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
857
- { no: 9, name: "not_in", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true },
858
- { no: 10, name: "ip", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
859
- { no: 11, name: "ipv4", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
860
- { no: 12, name: "ipv6", kind: "scalar", T: 8 /* ScalarType.BOOL */, oneof: "well_known" },
861
- { no: 14, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
862
- ]);
863
- /**
864
- * EnumRules describe the constraints applied to enum values
865
- *
866
- * @generated from message genesis_validate.EnumRules
867
- */
868
- class EnumRules extends protobuf_1.Message {
869
- constructor(data) {
870
- super();
871
- /**
872
- * In specifies that this field must be equal to one of the specified
873
- * values
874
- *
875
- * @generated from field: repeated int32 in = 3;
876
- */
877
- this.in = [];
878
- /**
879
- * NotIn specifies that this field cannot be equal to one of the specified
880
- * values
881
- *
882
- * @generated from field: repeated int32 not_in = 4;
883
- */
884
- this.notIn = [];
885
- protobuf_1.proto2.util.initPartial(data, this);
886
- }
887
- static fromBinary(bytes, options) {
888
- return new EnumRules().fromBinary(bytes, options);
889
- }
890
- static fromJson(jsonValue, options) {
891
- return new EnumRules().fromJson(jsonValue, options);
892
- }
893
- static fromJsonString(jsonString, options) {
894
- return new EnumRules().fromJsonString(jsonString, options);
895
- }
896
- static equals(a, b) {
897
- return protobuf_1.proto2.util.equals(EnumRules, a, b);
898
- }
899
- }
900
- exports.EnumRules = EnumRules;
901
- EnumRules.runtime = protobuf_1.proto2;
902
- EnumRules.typeName = "genesis_validate.EnumRules";
903
- EnumRules.fields = protobuf_1.proto2.util.newFieldList(() => [
904
- { no: 1, name: "const", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
905
- { no: 2, name: "defined_only", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
906
- { no: 3, name: "in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
907
- { no: 4, name: "not_in", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
908
- ]);
909
- /**
910
- * MessageRules describe the constraints applied to embedded message values.
911
- * For message-type fields, validation is performed recursively.
912
- *
913
- * @generated from message genesis_validate.MessageRules
914
- */
915
- class MessageRules extends protobuf_1.Message {
916
- constructor(data) {
917
- super();
918
- protobuf_1.proto2.util.initPartial(data, this);
919
- }
920
- static fromBinary(bytes, options) {
921
- return new MessageRules().fromBinary(bytes, options);
922
- }
923
- static fromJson(jsonValue, options) {
924
- return new MessageRules().fromJson(jsonValue, options);
925
- }
926
- static fromJsonString(jsonString, options) {
927
- return new MessageRules().fromJsonString(jsonString, options);
928
- }
929
- static equals(a, b) {
930
- return protobuf_1.proto2.util.equals(MessageRules, a, b);
931
- }
932
- }
933
- exports.MessageRules = MessageRules;
934
- MessageRules.runtime = protobuf_1.proto2;
935
- MessageRules.typeName = "genesis_validate.MessageRules";
936
- MessageRules.fields = protobuf_1.proto2.util.newFieldList(() => [
937
- { no: 1, name: "skip", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
938
- { no: 2, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
939
- ]);
940
- /**
941
- * RepeatedRules describe the constraints applied to `repeated` values
942
- *
943
- * @generated from message genesis_validate.RepeatedRules
944
- */
945
- class RepeatedRules extends protobuf_1.Message {
946
- constructor(data) {
947
- super();
948
- protobuf_1.proto2.util.initPartial(data, this);
949
- }
950
- static fromBinary(bytes, options) {
951
- return new RepeatedRules().fromBinary(bytes, options);
952
- }
953
- static fromJson(jsonValue, options) {
954
- return new RepeatedRules().fromJson(jsonValue, options);
955
- }
956
- static fromJsonString(jsonString, options) {
957
- return new RepeatedRules().fromJsonString(jsonString, options);
958
- }
959
- static equals(a, b) {
960
- return protobuf_1.proto2.util.equals(RepeatedRules, a, b);
961
- }
962
- }
963
- exports.RepeatedRules = RepeatedRules;
964
- RepeatedRules.runtime = protobuf_1.proto2;
965
- RepeatedRules.typeName = "genesis_validate.RepeatedRules";
966
- RepeatedRules.fields = protobuf_1.proto2.util.newFieldList(() => [
967
- { no: 1, name: "min_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
968
- { no: 2, name: "max_items", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
969
- { no: 3, name: "unique", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
970
- { no: 4, name: "items", kind: "message", T: FieldRules, opt: true },
971
- { no: 5, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
972
- ]);
973
- /**
974
- * MapRules describe the constraints applied to `map` values
975
- *
976
- * @generated from message genesis_validate.MapRules
977
- */
978
- class MapRules extends protobuf_1.Message {
979
- constructor(data) {
980
- super();
981
- protobuf_1.proto2.util.initPartial(data, this);
982
- }
983
- static fromBinary(bytes, options) {
984
- return new MapRules().fromBinary(bytes, options);
985
- }
986
- static fromJson(jsonValue, options) {
987
- return new MapRules().fromJson(jsonValue, options);
988
- }
989
- static fromJsonString(jsonString, options) {
990
- return new MapRules().fromJsonString(jsonString, options);
991
- }
992
- static equals(a, b) {
993
- return protobuf_1.proto2.util.equals(MapRules, a, b);
994
- }
995
- }
996
- exports.MapRules = MapRules;
997
- MapRules.runtime = protobuf_1.proto2;
998
- MapRules.typeName = "genesis_validate.MapRules";
999
- MapRules.fields = protobuf_1.proto2.util.newFieldList(() => [
1000
- { no: 1, name: "min_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1001
- { no: 2, name: "max_pairs", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
1002
- { no: 3, name: "no_sparse", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1003
- { no: 4, name: "keys", kind: "message", T: FieldRules, opt: true },
1004
- { no: 5, name: "values", kind: "message", T: FieldRules, opt: true },
1005
- { no: 6, name: "ignore_empty", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1006
- ]);
1007
- /**
1008
- * AnyRules describe constraints applied exclusively to the
1009
- * `google.protobuf.Any` well-known type
1010
- *
1011
- * @generated from message genesis_validate.AnyRules
1012
- */
1013
- class AnyRules extends protobuf_1.Message {
1014
- constructor(data) {
1015
- super();
1016
- /**
1017
- * In specifies that this field's `type_url` must be equal to one of the
1018
- * specified values.
1019
- *
1020
- * @generated from field: repeated string in = 2;
1021
- */
1022
- this.in = [];
1023
- /**
1024
- * NotIn specifies that this field's `type_url` must not be equal to any of
1025
- * the specified values.
1026
- *
1027
- * @generated from field: repeated string not_in = 3;
1028
- */
1029
- this.notIn = [];
1030
- protobuf_1.proto2.util.initPartial(data, this);
1031
- }
1032
- static fromBinary(bytes, options) {
1033
- return new AnyRules().fromBinary(bytes, options);
1034
- }
1035
- static fromJson(jsonValue, options) {
1036
- return new AnyRules().fromJson(jsonValue, options);
1037
- }
1038
- static fromJsonString(jsonString, options) {
1039
- return new AnyRules().fromJsonString(jsonString, options);
1040
- }
1041
- static equals(a, b) {
1042
- return protobuf_1.proto2.util.equals(AnyRules, a, b);
1043
- }
1044
- }
1045
- exports.AnyRules = AnyRules;
1046
- AnyRules.runtime = protobuf_1.proto2;
1047
- AnyRules.typeName = "genesis_validate.AnyRules";
1048
- AnyRules.fields = protobuf_1.proto2.util.newFieldList(() => [
1049
- { no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1050
- { no: 2, name: "in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1051
- { no: 3, name: "not_in", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1052
- ]);
1053
- /**
1054
- * DurationRules describe the constraints applied exclusively to the
1055
- * `google.protobuf.Duration` well-known type
1056
- *
1057
- * @generated from message genesis_validate.DurationRules
1058
- */
1059
- class DurationRules extends protobuf_1.Message {
1060
- constructor(data) {
1061
- super();
1062
- /**
1063
- * In specifies that this field must be equal to one of the specified
1064
- * values
1065
- *
1066
- * @generated from field: repeated google.protobuf.Duration in = 7;
1067
- */
1068
- this.in = [];
1069
- /**
1070
- * NotIn specifies that this field cannot be equal to one of the specified
1071
- * values
1072
- *
1073
- * @generated from field: repeated google.protobuf.Duration not_in = 8;
1074
- */
1075
- this.notIn = [];
1076
- protobuf_1.proto2.util.initPartial(data, this);
1077
- }
1078
- static fromBinary(bytes, options) {
1079
- return new DurationRules().fromBinary(bytes, options);
1080
- }
1081
- static fromJson(jsonValue, options) {
1082
- return new DurationRules().fromJson(jsonValue, options);
1083
- }
1084
- static fromJsonString(jsonString, options) {
1085
- return new DurationRules().fromJsonString(jsonString, options);
1086
- }
1087
- static equals(a, b) {
1088
- return protobuf_1.proto2.util.equals(DurationRules, a, b);
1089
- }
1090
- }
1091
- exports.DurationRules = DurationRules;
1092
- DurationRules.runtime = protobuf_1.proto2;
1093
- DurationRules.typeName = "genesis_validate.DurationRules";
1094
- DurationRules.fields = protobuf_1.proto2.util.newFieldList(() => [
1095
- { no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1096
- { no: 2, name: "const", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1097
- { no: 3, name: "lt", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1098
- { no: 4, name: "lte", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1099
- { no: 5, name: "gt", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1100
- { no: 6, name: "gte", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1101
- { no: 7, name: "in", kind: "message", T: duration_pb_js_1.Duration, repeated: true },
1102
- { no: 8, name: "not_in", kind: "message", T: duration_pb_js_1.Duration, repeated: true },
1103
- ]);
1104
- /**
1105
- * TimestampRules describe the constraints applied exclusively to the
1106
- * `google.protobuf.Timestamp` well-known type
1107
- *
1108
- * @generated from message genesis_validate.TimestampRules
1109
- */
1110
- class TimestampRules extends protobuf_1.Message {
1111
- constructor(data) {
1112
- super();
1113
- protobuf_1.proto2.util.initPartial(data, this);
1114
- }
1115
- static fromBinary(bytes, options) {
1116
- return new TimestampRules().fromBinary(bytes, options);
1117
- }
1118
- static fromJson(jsonValue, options) {
1119
- return new TimestampRules().fromJson(jsonValue, options);
1120
- }
1121
- static fromJsonString(jsonString, options) {
1122
- return new TimestampRules().fromJsonString(jsonString, options);
1123
- }
1124
- static equals(a, b) {
1125
- return protobuf_1.proto2.util.equals(TimestampRules, a, b);
1126
- }
1127
- }
1128
- exports.TimestampRules = TimestampRules;
1129
- TimestampRules.runtime = protobuf_1.proto2;
1130
- TimestampRules.typeName = "genesis_validate.TimestampRules";
1131
- TimestampRules.fields = protobuf_1.proto2.util.newFieldList(() => [
1132
- { no: 1, name: "required", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1133
- { no: 2, name: "const", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
1134
- { no: 3, name: "lt", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
1135
- { no: 4, name: "lte", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
1136
- { no: 5, name: "gt", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
1137
- { no: 6, name: "gte", kind: "message", T: timestamp_pb_js_1.Timestamp, opt: true },
1138
- { no: 7, name: "lt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1139
- { no: 8, name: "gt_now", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1140
- { no: 9, name: "within", kind: "message", T: duration_pb_js_1.Duration, opt: true },
1141
- ]);