@mochabug/adapt-web 0.0.19 → 0.0.21
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.
- package/dist/genproto/buf/validate/validate_pb.d.ts +99 -150
- package/dist/genproto/buf/validate/validate_pb.js +5 -20
- package/dist/genproto/buf/validate/validate_pb.js.map +1 -1
- package/dist/genproto/google/api/annotations_pb.js +1 -1
- package/dist/genproto/google/api/client_pb.d.ts +40 -0
- package/dist/genproto/google/api/client_pb.js +2 -2
- package/dist/genproto/google/api/client_pb.js.map +1 -1
- package/dist/genproto/google/api/http_pb.js +2 -2
- package/dist/genproto/google/api/http_pb.js.map +1 -1
- package/dist/genproto/google/api/launch_stage_pb.js +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.d.ts +12 -0
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.js +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/transceiver_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.d.ts +50 -7
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.js +38 -2
- package/dist/genproto/mochabugapis/adapt/graph/transmitter_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/graph/{vertex_config_pb.d.ts → vertex_metadata_pb.d.ts} +15 -27
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.js +28 -0
- package/dist/genproto/mochabugapis/adapt/graph/vertex_metadata_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.d.ts +61 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.js +25 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/file_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.d.ts +222 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.js +28 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/manifest_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.d.ts +714 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js +184 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oauth2_service_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.d.ts +91 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.js +27 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/oneof_service_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.d.ts +72 -1254
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js +10 -249
- package/dist/genproto/mochabugapis/adapt/plugins/v1/plugins_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.d.ts +133 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.js +30 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_binding_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.d.ts +115 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.js +28 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/service_definition_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.d.ts +158 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.js +61 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/tls_service_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.d.ts +59 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.js +27 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/variable_service_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.d.ts +223 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.js +77 -0
- package/dist/genproto/mochabugapis/adapt/plugins/v1/vertex_pb.js.map +1 -0
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.d.ts +20 -108
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js +7 -17
- package/dist/genproto/mochabugapis/adapt/runtime/v1/incoming_pb.js.map +1 -1
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.d.ts +295 -301
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js +76 -81
- package/dist/genproto/mochabugapis/adapt/runtime/v1/runtime_pb.js.map +1 -1
- package/package.json +4 -4
- package/dist/genproto/mochabugapis/adapt/graph/vertex_config_pb.js +0 -28
- package/dist/genproto/mochabugapis/adapt/graph/vertex_config_pb.js.map +0 -1
|
@@ -463,20 +463,6 @@ export type FieldConstraints = Message<"buf.validate.FieldConstraints"> & {
|
|
|
463
463
|
case: undefined;
|
|
464
464
|
value?: undefined;
|
|
465
465
|
};
|
|
466
|
-
/**
|
|
467
|
-
* DEPRECATED: use ignore=IGNORE_ALWAYS instead. TODO: remove this field pre-v1.
|
|
468
|
-
*
|
|
469
|
-
* @generated from field: optional bool skipped = 24 [deprecated = true];
|
|
470
|
-
* @deprecated
|
|
471
|
-
*/
|
|
472
|
-
skipped: boolean;
|
|
473
|
-
/**
|
|
474
|
-
* DEPRECATED: use ignore=IGNORE_IF_UNPOPULATED instead. TODO: remove this field pre-v1.
|
|
475
|
-
*
|
|
476
|
-
* @generated from field: optional bool ignore_empty = 26 [deprecated = true];
|
|
477
|
-
* @deprecated
|
|
478
|
-
*/
|
|
479
|
-
ignoreEmpty: boolean;
|
|
480
466
|
};
|
|
481
467
|
/**
|
|
482
468
|
* FieldConstraints encapsulates the rules for each type of field. Depending on
|
|
@@ -634,20 +620,6 @@ export type FieldConstraintsJson = {
|
|
|
634
620
|
* @generated from field: buf.validate.TimestampRules timestamp = 22;
|
|
635
621
|
*/
|
|
636
622
|
timestamp?: TimestampRulesJson;
|
|
637
|
-
/**
|
|
638
|
-
* DEPRECATED: use ignore=IGNORE_ALWAYS instead. TODO: remove this field pre-v1.
|
|
639
|
-
*
|
|
640
|
-
* @generated from field: optional bool skipped = 24 [deprecated = true];
|
|
641
|
-
* @deprecated
|
|
642
|
-
*/
|
|
643
|
-
skipped?: boolean;
|
|
644
|
-
/**
|
|
645
|
-
* DEPRECATED: use ignore=IGNORE_IF_UNPOPULATED instead. TODO: remove this field pre-v1.
|
|
646
|
-
*
|
|
647
|
-
* @generated from field: optional bool ignore_empty = 26 [deprecated = true];
|
|
648
|
-
* @deprecated
|
|
649
|
-
*/
|
|
650
|
-
ignoreEmpty?: boolean;
|
|
651
623
|
};
|
|
652
624
|
/**
|
|
653
625
|
* Describes the message buf.validate.FieldConstraints.
|
|
@@ -840,7 +812,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
840
812
|
* ```proto
|
|
841
813
|
* message MyFloat {
|
|
842
814
|
* // value must be in list [1.0, 2.0, 3.0]
|
|
843
|
-
*
|
|
815
|
+
* float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
|
|
844
816
|
* }
|
|
845
817
|
* ```
|
|
846
818
|
*
|
|
@@ -855,7 +827,7 @@ export type FloatRules = Message<"buf.validate.FloatRules"> & {
|
|
|
855
827
|
* ```proto
|
|
856
828
|
* message MyFloat {
|
|
857
829
|
* // value must not be in list [1.0, 2.0, 3.0]
|
|
858
|
-
*
|
|
830
|
+
* float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
|
|
859
831
|
* }
|
|
860
832
|
* ```
|
|
861
833
|
*
|
|
@@ -992,7 +964,7 @@ export type FloatRulesJson = {
|
|
|
992
964
|
* ```proto
|
|
993
965
|
* message MyFloat {
|
|
994
966
|
* // value must be in list [1.0, 2.0, 3.0]
|
|
995
|
-
*
|
|
967
|
+
* float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }];
|
|
996
968
|
* }
|
|
997
969
|
* ```
|
|
998
970
|
*
|
|
@@ -1007,7 +979,7 @@ export type FloatRulesJson = {
|
|
|
1007
979
|
* ```proto
|
|
1008
980
|
* message MyFloat {
|
|
1009
981
|
* // value must not be in list [1.0, 2.0, 3.0]
|
|
1010
|
-
*
|
|
982
|
+
* float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }];
|
|
1011
983
|
* }
|
|
1012
984
|
* ```
|
|
1013
985
|
*
|
|
@@ -1171,7 +1143,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
|
|
|
1171
1143
|
* ```proto
|
|
1172
1144
|
* message MyDouble {
|
|
1173
1145
|
* // value must be in list [1.0, 2.0, 3.0]
|
|
1174
|
-
*
|
|
1146
|
+
* double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
|
|
1175
1147
|
* }
|
|
1176
1148
|
* ```
|
|
1177
1149
|
*
|
|
@@ -1186,7 +1158,7 @@ export type DoubleRules = Message<"buf.validate.DoubleRules"> & {
|
|
|
1186
1158
|
* ```proto
|
|
1187
1159
|
* message MyDouble {
|
|
1188
1160
|
* // value must not be in list [1.0, 2.0, 3.0]
|
|
1189
|
-
*
|
|
1161
|
+
* double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
|
|
1190
1162
|
* }
|
|
1191
1163
|
* ```
|
|
1192
1164
|
*
|
|
@@ -1323,7 +1295,7 @@ export type DoubleRulesJson = {
|
|
|
1323
1295
|
* ```proto
|
|
1324
1296
|
* message MyDouble {
|
|
1325
1297
|
* // value must be in list [1.0, 2.0, 3.0]
|
|
1326
|
-
*
|
|
1298
|
+
* double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }];
|
|
1327
1299
|
* }
|
|
1328
1300
|
* ```
|
|
1329
1301
|
*
|
|
@@ -1338,7 +1310,7 @@ export type DoubleRulesJson = {
|
|
|
1338
1310
|
* ```proto
|
|
1339
1311
|
* message MyDouble {
|
|
1340
1312
|
* // value must not be in list [1.0, 2.0, 3.0]
|
|
1341
|
-
*
|
|
1313
|
+
* double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }];
|
|
1342
1314
|
* }
|
|
1343
1315
|
* ```
|
|
1344
1316
|
*
|
|
@@ -1502,7 +1474,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
|
|
|
1502
1474
|
* ```proto
|
|
1503
1475
|
* message MyInt32 {
|
|
1504
1476
|
* // value must be in list [1, 2, 3]
|
|
1505
|
-
*
|
|
1477
|
+
* int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
|
|
1506
1478
|
* }
|
|
1507
1479
|
* ```
|
|
1508
1480
|
*
|
|
@@ -1517,7 +1489,7 @@ export type Int32Rules = Message<"buf.validate.Int32Rules"> & {
|
|
|
1517
1489
|
* ```proto
|
|
1518
1490
|
* message MyInt32 {
|
|
1519
1491
|
* // value must not be in list [1, 2, 3]
|
|
1520
|
-
*
|
|
1492
|
+
* int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
|
|
1521
1493
|
* }
|
|
1522
1494
|
* ```
|
|
1523
1495
|
*
|
|
@@ -1647,7 +1619,7 @@ export type Int32RulesJson = {
|
|
|
1647
1619
|
* ```proto
|
|
1648
1620
|
* message MyInt32 {
|
|
1649
1621
|
* // value must be in list [1, 2, 3]
|
|
1650
|
-
*
|
|
1622
|
+
* int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }];
|
|
1651
1623
|
* }
|
|
1652
1624
|
* ```
|
|
1653
1625
|
*
|
|
@@ -1662,7 +1634,7 @@ export type Int32RulesJson = {
|
|
|
1662
1634
|
* ```proto
|
|
1663
1635
|
* message MyInt32 {
|
|
1664
1636
|
* // value must not be in list [1, 2, 3]
|
|
1665
|
-
*
|
|
1637
|
+
* int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }];
|
|
1666
1638
|
* }
|
|
1667
1639
|
* ```
|
|
1668
1640
|
*
|
|
@@ -1819,7 +1791,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
|
|
|
1819
1791
|
* ```proto
|
|
1820
1792
|
* message MyInt64 {
|
|
1821
1793
|
* // value must be in list [1, 2, 3]
|
|
1822
|
-
*
|
|
1794
|
+
* int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
|
|
1823
1795
|
* }
|
|
1824
1796
|
* ```
|
|
1825
1797
|
*
|
|
@@ -1834,7 +1806,7 @@ export type Int64Rules = Message<"buf.validate.Int64Rules"> & {
|
|
|
1834
1806
|
* ```proto
|
|
1835
1807
|
* message MyInt64 {
|
|
1836
1808
|
* // value must not be in list [1, 2, 3]
|
|
1837
|
-
*
|
|
1809
|
+
* int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
|
|
1838
1810
|
* }
|
|
1839
1811
|
* ```
|
|
1840
1812
|
*
|
|
@@ -1964,7 +1936,7 @@ export type Int64RulesJson = {
|
|
|
1964
1936
|
* ```proto
|
|
1965
1937
|
* message MyInt64 {
|
|
1966
1938
|
* // value must be in list [1, 2, 3]
|
|
1967
|
-
*
|
|
1939
|
+
* int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }];
|
|
1968
1940
|
* }
|
|
1969
1941
|
* ```
|
|
1970
1942
|
*
|
|
@@ -1979,7 +1951,7 @@ export type Int64RulesJson = {
|
|
|
1979
1951
|
* ```proto
|
|
1980
1952
|
* message MyInt64 {
|
|
1981
1953
|
* // value must not be in list [1, 2, 3]
|
|
1982
|
-
*
|
|
1954
|
+
* int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }];
|
|
1983
1955
|
* }
|
|
1984
1956
|
* ```
|
|
1985
1957
|
*
|
|
@@ -2136,7 +2108,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
|
|
|
2136
2108
|
* ```proto
|
|
2137
2109
|
* message MyUInt32 {
|
|
2138
2110
|
* // value must be in list [1, 2, 3]
|
|
2139
|
-
*
|
|
2111
|
+
* uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
|
|
2140
2112
|
* }
|
|
2141
2113
|
* ```
|
|
2142
2114
|
*
|
|
@@ -2151,7 +2123,7 @@ export type UInt32Rules = Message<"buf.validate.UInt32Rules"> & {
|
|
|
2151
2123
|
* ```proto
|
|
2152
2124
|
* message MyUInt32 {
|
|
2153
2125
|
* // value must not be in list [1, 2, 3]
|
|
2154
|
-
*
|
|
2126
|
+
* uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
|
|
2155
2127
|
* }
|
|
2156
2128
|
* ```
|
|
2157
2129
|
*
|
|
@@ -2281,7 +2253,7 @@ export type UInt32RulesJson = {
|
|
|
2281
2253
|
* ```proto
|
|
2282
2254
|
* message MyUInt32 {
|
|
2283
2255
|
* // value must be in list [1, 2, 3]
|
|
2284
|
-
*
|
|
2256
|
+
* uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }];
|
|
2285
2257
|
* }
|
|
2286
2258
|
* ```
|
|
2287
2259
|
*
|
|
@@ -2296,7 +2268,7 @@ export type UInt32RulesJson = {
|
|
|
2296
2268
|
* ```proto
|
|
2297
2269
|
* message MyUInt32 {
|
|
2298
2270
|
* // value must not be in list [1, 2, 3]
|
|
2299
|
-
*
|
|
2271
|
+
* uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }];
|
|
2300
2272
|
* }
|
|
2301
2273
|
* ```
|
|
2302
2274
|
*
|
|
@@ -2453,7 +2425,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
2453
2425
|
* ```proto
|
|
2454
2426
|
* message MyUInt64 {
|
|
2455
2427
|
* // value must be in list [1, 2, 3]
|
|
2456
|
-
*
|
|
2428
|
+
* uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
|
|
2457
2429
|
* }
|
|
2458
2430
|
* ```
|
|
2459
2431
|
*
|
|
@@ -2468,7 +2440,7 @@ export type UInt64Rules = Message<"buf.validate.UInt64Rules"> & {
|
|
|
2468
2440
|
* ```proto
|
|
2469
2441
|
* message MyUInt64 {
|
|
2470
2442
|
* // value must not be in list [1, 2, 3]
|
|
2471
|
-
*
|
|
2443
|
+
* uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
|
|
2472
2444
|
* }
|
|
2473
2445
|
* ```
|
|
2474
2446
|
*
|
|
@@ -2598,7 +2570,7 @@ export type UInt64RulesJson = {
|
|
|
2598
2570
|
* ```proto
|
|
2599
2571
|
* message MyUInt64 {
|
|
2600
2572
|
* // value must be in list [1, 2, 3]
|
|
2601
|
-
*
|
|
2573
|
+
* uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }];
|
|
2602
2574
|
* }
|
|
2603
2575
|
* ```
|
|
2604
2576
|
*
|
|
@@ -2613,7 +2585,7 @@ export type UInt64RulesJson = {
|
|
|
2613
2585
|
* ```proto
|
|
2614
2586
|
* message MyUInt64 {
|
|
2615
2587
|
* // value must not be in list [1, 2, 3]
|
|
2616
|
-
*
|
|
2588
|
+
* uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }];
|
|
2617
2589
|
* }
|
|
2618
2590
|
* ```
|
|
2619
2591
|
*
|
|
@@ -2769,7 +2741,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
|
|
|
2769
2741
|
* ```proto
|
|
2770
2742
|
* message MySInt32 {
|
|
2771
2743
|
* // value must be in list [1, 2, 3]
|
|
2772
|
-
*
|
|
2744
|
+
* sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
|
|
2773
2745
|
* }
|
|
2774
2746
|
* ```
|
|
2775
2747
|
*
|
|
@@ -2784,7 +2756,7 @@ export type SInt32Rules = Message<"buf.validate.SInt32Rules"> & {
|
|
|
2784
2756
|
* ```proto
|
|
2785
2757
|
* message MySInt32 {
|
|
2786
2758
|
* // value must not be in list [1, 2, 3]
|
|
2787
|
-
*
|
|
2759
|
+
* sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
|
|
2788
2760
|
* }
|
|
2789
2761
|
* ```
|
|
2790
2762
|
*
|
|
@@ -2913,7 +2885,7 @@ export type SInt32RulesJson = {
|
|
|
2913
2885
|
* ```proto
|
|
2914
2886
|
* message MySInt32 {
|
|
2915
2887
|
* // value must be in list [1, 2, 3]
|
|
2916
|
-
*
|
|
2888
|
+
* sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }];
|
|
2917
2889
|
* }
|
|
2918
2890
|
* ```
|
|
2919
2891
|
*
|
|
@@ -2928,7 +2900,7 @@ export type SInt32RulesJson = {
|
|
|
2928
2900
|
* ```proto
|
|
2929
2901
|
* message MySInt32 {
|
|
2930
2902
|
* // value must not be in list [1, 2, 3]
|
|
2931
|
-
*
|
|
2903
|
+
* sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }];
|
|
2932
2904
|
* }
|
|
2933
2905
|
* ```
|
|
2934
2906
|
*
|
|
@@ -3084,7 +3056,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
|
|
|
3084
3056
|
* ```proto
|
|
3085
3057
|
* message MySInt64 {
|
|
3086
3058
|
* // value must be in list [1, 2, 3]
|
|
3087
|
-
*
|
|
3059
|
+
* sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
|
|
3088
3060
|
* }
|
|
3089
3061
|
* ```
|
|
3090
3062
|
*
|
|
@@ -3099,7 +3071,7 @@ export type SInt64Rules = Message<"buf.validate.SInt64Rules"> & {
|
|
|
3099
3071
|
* ```proto
|
|
3100
3072
|
* message MySInt64 {
|
|
3101
3073
|
* // value must not be in list [1, 2, 3]
|
|
3102
|
-
*
|
|
3074
|
+
* sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
|
|
3103
3075
|
* }
|
|
3104
3076
|
* ```
|
|
3105
3077
|
*
|
|
@@ -3228,7 +3200,7 @@ export type SInt64RulesJson = {
|
|
|
3228
3200
|
* ```proto
|
|
3229
3201
|
* message MySInt64 {
|
|
3230
3202
|
* // value must be in list [1, 2, 3]
|
|
3231
|
-
*
|
|
3203
|
+
* sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }];
|
|
3232
3204
|
* }
|
|
3233
3205
|
* ```
|
|
3234
3206
|
*
|
|
@@ -3243,7 +3215,7 @@ export type SInt64RulesJson = {
|
|
|
3243
3215
|
* ```proto
|
|
3244
3216
|
* message MySInt64 {
|
|
3245
3217
|
* // value must not be in list [1, 2, 3]
|
|
3246
|
-
*
|
|
3218
|
+
* sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }];
|
|
3247
3219
|
* }
|
|
3248
3220
|
* ```
|
|
3249
3221
|
*
|
|
@@ -3399,7 +3371,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
|
|
|
3399
3371
|
* ```proto
|
|
3400
3372
|
* message MyFixed32 {
|
|
3401
3373
|
* // value must be in list [1, 2, 3]
|
|
3402
|
-
*
|
|
3374
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
|
|
3403
3375
|
* }
|
|
3404
3376
|
* ```
|
|
3405
3377
|
*
|
|
@@ -3414,7 +3386,7 @@ export type Fixed32Rules = Message<"buf.validate.Fixed32Rules"> & {
|
|
|
3414
3386
|
* ```proto
|
|
3415
3387
|
* message MyFixed32 {
|
|
3416
3388
|
* // value must not be in list [1, 2, 3]
|
|
3417
|
-
*
|
|
3389
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
|
|
3418
3390
|
* }
|
|
3419
3391
|
* ```
|
|
3420
3392
|
*
|
|
@@ -3543,7 +3515,7 @@ export type Fixed32RulesJson = {
|
|
|
3543
3515
|
* ```proto
|
|
3544
3516
|
* message MyFixed32 {
|
|
3545
3517
|
* // value must be in list [1, 2, 3]
|
|
3546
|
-
*
|
|
3518
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }];
|
|
3547
3519
|
* }
|
|
3548
3520
|
* ```
|
|
3549
3521
|
*
|
|
@@ -3558,7 +3530,7 @@ export type Fixed32RulesJson = {
|
|
|
3558
3530
|
* ```proto
|
|
3559
3531
|
* message MyFixed32 {
|
|
3560
3532
|
* // value must not be in list [1, 2, 3]
|
|
3561
|
-
*
|
|
3533
|
+
* fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }];
|
|
3562
3534
|
* }
|
|
3563
3535
|
* ```
|
|
3564
3536
|
*
|
|
@@ -3714,7 +3686,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
|
|
|
3714
3686
|
* ```proto
|
|
3715
3687
|
* message MyFixed64 {
|
|
3716
3688
|
* // value must be in list [1, 2, 3]
|
|
3717
|
-
*
|
|
3689
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
|
|
3718
3690
|
* }
|
|
3719
3691
|
* ```
|
|
3720
3692
|
*
|
|
@@ -3729,7 +3701,7 @@ export type Fixed64Rules = Message<"buf.validate.Fixed64Rules"> & {
|
|
|
3729
3701
|
* ```proto
|
|
3730
3702
|
* message MyFixed64 {
|
|
3731
3703
|
* // value must not be in list [1, 2, 3]
|
|
3732
|
-
*
|
|
3704
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
|
|
3733
3705
|
* }
|
|
3734
3706
|
* ```
|
|
3735
3707
|
*
|
|
@@ -3858,7 +3830,7 @@ export type Fixed64RulesJson = {
|
|
|
3858
3830
|
* ```proto
|
|
3859
3831
|
* message MyFixed64 {
|
|
3860
3832
|
* // value must be in list [1, 2, 3]
|
|
3861
|
-
*
|
|
3833
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }];
|
|
3862
3834
|
* }
|
|
3863
3835
|
* ```
|
|
3864
3836
|
*
|
|
@@ -3873,7 +3845,7 @@ export type Fixed64RulesJson = {
|
|
|
3873
3845
|
* ```proto
|
|
3874
3846
|
* message MyFixed64 {
|
|
3875
3847
|
* // value must not be in list [1, 2, 3]
|
|
3876
|
-
*
|
|
3848
|
+
* fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }];
|
|
3877
3849
|
* }
|
|
3878
3850
|
* ```
|
|
3879
3851
|
*
|
|
@@ -4029,7 +4001,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
|
|
|
4029
4001
|
* ```proto
|
|
4030
4002
|
* message MySFixed32 {
|
|
4031
4003
|
* // value must be in list [1, 2, 3]
|
|
4032
|
-
*
|
|
4004
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
|
|
4033
4005
|
* }
|
|
4034
4006
|
* ```
|
|
4035
4007
|
*
|
|
@@ -4044,7 +4016,7 @@ export type SFixed32Rules = Message<"buf.validate.SFixed32Rules"> & {
|
|
|
4044
4016
|
* ```proto
|
|
4045
4017
|
* message MySFixed32 {
|
|
4046
4018
|
* // value must not be in list [1, 2, 3]
|
|
4047
|
-
*
|
|
4019
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
|
|
4048
4020
|
* }
|
|
4049
4021
|
* ```
|
|
4050
4022
|
*
|
|
@@ -4173,7 +4145,7 @@ export type SFixed32RulesJson = {
|
|
|
4173
4145
|
* ```proto
|
|
4174
4146
|
* message MySFixed32 {
|
|
4175
4147
|
* // value must be in list [1, 2, 3]
|
|
4176
|
-
*
|
|
4148
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }];
|
|
4177
4149
|
* }
|
|
4178
4150
|
* ```
|
|
4179
4151
|
*
|
|
@@ -4188,7 +4160,7 @@ export type SFixed32RulesJson = {
|
|
|
4188
4160
|
* ```proto
|
|
4189
4161
|
* message MySFixed32 {
|
|
4190
4162
|
* // value must not be in list [1, 2, 3]
|
|
4191
|
-
*
|
|
4163
|
+
* sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }];
|
|
4192
4164
|
* }
|
|
4193
4165
|
* ```
|
|
4194
4166
|
*
|
|
@@ -4344,7 +4316,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
|
|
|
4344
4316
|
* ```proto
|
|
4345
4317
|
* message MySFixed64 {
|
|
4346
4318
|
* // value must be in list [1, 2, 3]
|
|
4347
|
-
*
|
|
4319
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
|
|
4348
4320
|
* }
|
|
4349
4321
|
* ```
|
|
4350
4322
|
*
|
|
@@ -4359,7 +4331,7 @@ export type SFixed64Rules = Message<"buf.validate.SFixed64Rules"> & {
|
|
|
4359
4331
|
* ```proto
|
|
4360
4332
|
* message MySFixed64 {
|
|
4361
4333
|
* // value must not be in list [1, 2, 3]
|
|
4362
|
-
*
|
|
4334
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
|
|
4363
4335
|
* }
|
|
4364
4336
|
* ```
|
|
4365
4337
|
*
|
|
@@ -4488,7 +4460,7 @@ export type SFixed64RulesJson = {
|
|
|
4488
4460
|
* ```proto
|
|
4489
4461
|
* message MySFixed64 {
|
|
4490
4462
|
* // value must be in list [1, 2, 3]
|
|
4491
|
-
*
|
|
4463
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }];
|
|
4492
4464
|
* }
|
|
4493
4465
|
* ```
|
|
4494
4466
|
*
|
|
@@ -4503,7 +4475,7 @@ export type SFixed64RulesJson = {
|
|
|
4503
4475
|
* ```proto
|
|
4504
4476
|
* message MySFixed64 {
|
|
4505
4477
|
* // value must not be in list [1, 2, 3]
|
|
4506
|
-
*
|
|
4478
|
+
* sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }];
|
|
4507
4479
|
* }
|
|
4508
4480
|
* ```
|
|
4509
4481
|
*
|
|
@@ -4816,7 +4788,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4816
4788
|
* ```proto
|
|
4817
4789
|
* message MyString {
|
|
4818
4790
|
* // value must be in list ["apple", "banana"]
|
|
4819
|
-
*
|
|
4791
|
+
* string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
|
|
4820
4792
|
* }
|
|
4821
4793
|
* ```
|
|
4822
4794
|
*
|
|
@@ -4830,7 +4802,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4830
4802
|
* ```proto
|
|
4831
4803
|
* message MyString {
|
|
4832
4804
|
* // value must not be in list ["orange", "grape"]
|
|
4833
|
-
*
|
|
4805
|
+
* string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
|
|
4834
4806
|
* }
|
|
4835
4807
|
* ```
|
|
4836
4808
|
*
|
|
@@ -4846,7 +4818,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4846
4818
|
wellKnown: {
|
|
4847
4819
|
/**
|
|
4848
4820
|
* `email` specifies that the field value must be a valid email address
|
|
4849
|
-
* (addr-spec only) as defined by [RFC 5322](https://
|
|
4821
|
+
* (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
|
|
4850
4822
|
* If the field value isn't a valid email address, an error message will be generated.
|
|
4851
4823
|
*
|
|
4852
4824
|
* ```proto
|
|
@@ -4863,7 +4835,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4863
4835
|
} | {
|
|
4864
4836
|
/**
|
|
4865
4837
|
* `hostname` specifies that the field value must be a valid
|
|
4866
|
-
* hostname as defined by [RFC 1034](https://
|
|
4838
|
+
* hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
|
|
4867
4839
|
* internationalized domain names (IDNs). If the field value isn't a
|
|
4868
4840
|
* valid hostname, an error message will be generated.
|
|
4869
4841
|
*
|
|
@@ -4932,9 +4904,10 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4932
4904
|
case: "ipv6";
|
|
4933
4905
|
} | {
|
|
4934
4906
|
/**
|
|
4935
|
-
* `uri` specifies that the field value must be a valid
|
|
4936
|
-
*
|
|
4937
|
-
*
|
|
4907
|
+
* `uri` specifies that the field value must be a valid URI as defined by
|
|
4908
|
+
* [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
|
|
4909
|
+
*
|
|
4910
|
+
* If the field value isn't a valid URI, an error message will be generated.
|
|
4938
4911
|
*
|
|
4939
4912
|
* ```proto
|
|
4940
4913
|
* message MyString {
|
|
@@ -4949,13 +4922,18 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4949
4922
|
case: "uri";
|
|
4950
4923
|
} | {
|
|
4951
4924
|
/**
|
|
4952
|
-
* `uri_ref` specifies that the field value must be a valid URI
|
|
4953
|
-
*
|
|
4954
|
-
*
|
|
4925
|
+
* `uri_ref` specifies that the field value must be a valid URI Reference as
|
|
4926
|
+
* defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
|
|
4927
|
+
*
|
|
4928
|
+
* A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
|
|
4929
|
+
* or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
|
|
4930
|
+
*
|
|
4931
|
+
* If the field value isn't a valid URI Reference, an error message will be
|
|
4932
|
+
* generated.
|
|
4955
4933
|
*
|
|
4956
4934
|
* ```proto
|
|
4957
4935
|
* message MyString {
|
|
4958
|
-
* // value must be a valid URI
|
|
4936
|
+
* // value must be a valid URI Reference
|
|
4959
4937
|
* string value = 1 [(buf.validate.field).string.uri_ref = true];
|
|
4960
4938
|
* }
|
|
4961
4939
|
* ```
|
|
@@ -4967,7 +4945,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4967
4945
|
} | {
|
|
4968
4946
|
/**
|
|
4969
4947
|
* `address` specifies that the field value must be either a valid hostname
|
|
4970
|
-
* as defined by [RFC 1034](https://
|
|
4948
|
+
* as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
|
|
4971
4949
|
* (which doesn't support internationalized domain names or IDNs) or a valid
|
|
4972
4950
|
* IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
|
|
4973
4951
|
* message will be generated.
|
|
@@ -4986,7 +4964,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
4986
4964
|
} | {
|
|
4987
4965
|
/**
|
|
4988
4966
|
* `uuid` specifies that the field value must be a valid UUID as defined by
|
|
4989
|
-
* [RFC 4122](https://
|
|
4967
|
+
* [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
|
|
4990
4968
|
* field value isn't a valid UUID, an error message will be generated.
|
|
4991
4969
|
*
|
|
4992
4970
|
* ```proto
|
|
@@ -5003,7 +4981,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5003
4981
|
} | {
|
|
5004
4982
|
/**
|
|
5005
4983
|
* `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
|
|
5006
|
-
* defined by [RFC 4122](https://
|
|
4984
|
+
* defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
|
|
5007
4985
|
* omitted. If the field value isn't a valid UUID without dashes, an error message
|
|
5008
4986
|
* will be generated.
|
|
5009
4987
|
*
|
|
@@ -5157,8 +5135,8 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5157
5135
|
* | Name | Number | Description |
|
|
5158
5136
|
* |-------------------------------|--------|-------------------------------------------|
|
|
5159
5137
|
* | KNOWN_REGEX_UNSPECIFIED | 0 | |
|
|
5160
|
-
* | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://
|
|
5161
|
-
* | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://
|
|
5138
|
+
* | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2) |
|
|
5139
|
+
* | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
|
|
5162
5140
|
*
|
|
5163
5141
|
* @generated from field: buf.validate.KnownRegex well_known_regex = 24;
|
|
5164
5142
|
*/
|
|
@@ -5171,7 +5149,7 @@ export type StringRules = Message<"buf.validate.StringRules"> & {
|
|
|
5171
5149
|
/**
|
|
5172
5150
|
* This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
|
|
5173
5151
|
* enable strict header validation. By default, this is true, and HTTP header
|
|
5174
|
-
* validations are [RFC-compliant](https://
|
|
5152
|
+
* validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
|
|
5175
5153
|
* validations that only disallow `\r\n\0` characters, which can be used to
|
|
5176
5154
|
* bypass header matching rules.
|
|
5177
5155
|
*
|
|
@@ -5403,7 +5381,7 @@ export type StringRulesJson = {
|
|
|
5403
5381
|
* ```proto
|
|
5404
5382
|
* message MyString {
|
|
5405
5383
|
* // value must be in list ["apple", "banana"]
|
|
5406
|
-
*
|
|
5384
|
+
* string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"];
|
|
5407
5385
|
* }
|
|
5408
5386
|
* ```
|
|
5409
5387
|
*
|
|
@@ -5417,7 +5395,7 @@ export type StringRulesJson = {
|
|
|
5417
5395
|
* ```proto
|
|
5418
5396
|
* message MyString {
|
|
5419
5397
|
* // value must not be in list ["orange", "grape"]
|
|
5420
|
-
*
|
|
5398
|
+
* string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"];
|
|
5421
5399
|
* }
|
|
5422
5400
|
* ```
|
|
5423
5401
|
*
|
|
@@ -5426,7 +5404,7 @@ export type StringRulesJson = {
|
|
|
5426
5404
|
notIn?: string[];
|
|
5427
5405
|
/**
|
|
5428
5406
|
* `email` specifies that the field value must be a valid email address
|
|
5429
|
-
* (addr-spec only) as defined by [RFC 5322](https://
|
|
5407
|
+
* (addr-spec only) as defined by [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322#section-3.4.1).
|
|
5430
5408
|
* If the field value isn't a valid email address, an error message will be generated.
|
|
5431
5409
|
*
|
|
5432
5410
|
* ```proto
|
|
@@ -5441,7 +5419,7 @@ export type StringRulesJson = {
|
|
|
5441
5419
|
email?: boolean;
|
|
5442
5420
|
/**
|
|
5443
5421
|
* `hostname` specifies that the field value must be a valid
|
|
5444
|
-
* hostname as defined by [RFC 1034](https://
|
|
5422
|
+
* hostname as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5). This constraint doesn't support
|
|
5445
5423
|
* internationalized domain names (IDNs). If the field value isn't a
|
|
5446
5424
|
* valid hostname, an error message will be generated.
|
|
5447
5425
|
*
|
|
@@ -5502,9 +5480,10 @@ export type StringRulesJson = {
|
|
|
5502
5480
|
*/
|
|
5503
5481
|
ipv6?: boolean;
|
|
5504
5482
|
/**
|
|
5505
|
-
* `uri` specifies that the field value must be a valid
|
|
5506
|
-
*
|
|
5507
|
-
*
|
|
5483
|
+
* `uri` specifies that the field value must be a valid URI as defined by
|
|
5484
|
+
* [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-3).
|
|
5485
|
+
*
|
|
5486
|
+
* If the field value isn't a valid URI, an error message will be generated.
|
|
5508
5487
|
*
|
|
5509
5488
|
* ```proto
|
|
5510
5489
|
* message MyString {
|
|
@@ -5517,13 +5496,18 @@ export type StringRulesJson = {
|
|
|
5517
5496
|
*/
|
|
5518
5497
|
uri?: boolean;
|
|
5519
5498
|
/**
|
|
5520
|
-
* `uri_ref` specifies that the field value must be a valid URI
|
|
5521
|
-
*
|
|
5522
|
-
*
|
|
5499
|
+
* `uri_ref` specifies that the field value must be a valid URI Reference as
|
|
5500
|
+
* defined by [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986#section-4.1).
|
|
5501
|
+
*
|
|
5502
|
+
* A URI Reference is either a [URI](https://datatracker.ietf.org/doc/html/rfc3986#section-3),
|
|
5503
|
+
* or a [Relative Reference](https://datatracker.ietf.org/doc/html/rfc3986#section-4.2).
|
|
5504
|
+
*
|
|
5505
|
+
* If the field value isn't a valid URI Reference, an error message will be
|
|
5506
|
+
* generated.
|
|
5523
5507
|
*
|
|
5524
5508
|
* ```proto
|
|
5525
5509
|
* message MyString {
|
|
5526
|
-
* // value must be a valid URI
|
|
5510
|
+
* // value must be a valid URI Reference
|
|
5527
5511
|
* string value = 1 [(buf.validate.field).string.uri_ref = true];
|
|
5528
5512
|
* }
|
|
5529
5513
|
* ```
|
|
@@ -5533,7 +5517,7 @@ export type StringRulesJson = {
|
|
|
5533
5517
|
uriRef?: boolean;
|
|
5534
5518
|
/**
|
|
5535
5519
|
* `address` specifies that the field value must be either a valid hostname
|
|
5536
|
-
* as defined by [RFC 1034](https://
|
|
5520
|
+
* as defined by [RFC 1034](https://datatracker.ietf.org/doc/html/rfc1034#section-3.5)
|
|
5537
5521
|
* (which doesn't support internationalized domain names or IDNs) or a valid
|
|
5538
5522
|
* IP (v4 or v6). If the field value isn't a valid hostname or IP, an error
|
|
5539
5523
|
* message will be generated.
|
|
@@ -5550,7 +5534,7 @@ export type StringRulesJson = {
|
|
|
5550
5534
|
address?: boolean;
|
|
5551
5535
|
/**
|
|
5552
5536
|
* `uuid` specifies that the field value must be a valid UUID as defined by
|
|
5553
|
-
* [RFC 4122](https://
|
|
5537
|
+
* [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the
|
|
5554
5538
|
* field value isn't a valid UUID, an error message will be generated.
|
|
5555
5539
|
*
|
|
5556
5540
|
* ```proto
|
|
@@ -5565,7 +5549,7 @@ export type StringRulesJson = {
|
|
|
5565
5549
|
uuid?: boolean;
|
|
5566
5550
|
/**
|
|
5567
5551
|
* `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as
|
|
5568
|
-
* defined by [RFC 4122](https://
|
|
5552
|
+
* defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes
|
|
5569
5553
|
* omitted. If the field value isn't a valid UUID without dashes, an error message
|
|
5570
5554
|
* will be generated.
|
|
5571
5555
|
*
|
|
@@ -5703,8 +5687,8 @@ export type StringRulesJson = {
|
|
|
5703
5687
|
* | Name | Number | Description |
|
|
5704
5688
|
* |-------------------------------|--------|-------------------------------------------|
|
|
5705
5689
|
* | KNOWN_REGEX_UNSPECIFIED | 0 | |
|
|
5706
|
-
* | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://
|
|
5707
|
-
* | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://
|
|
5690
|
+
* | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2) |
|
|
5691
|
+
* | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) |
|
|
5708
5692
|
*
|
|
5709
5693
|
* @generated from field: buf.validate.KnownRegex well_known_regex = 24;
|
|
5710
5694
|
*/
|
|
@@ -5712,7 +5696,7 @@ export type StringRulesJson = {
|
|
|
5712
5696
|
/**
|
|
5713
5697
|
* This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to
|
|
5714
5698
|
* enable strict header validation. By default, this is true, and HTTP header
|
|
5715
|
-
* validations are [RFC-compliant](https://
|
|
5699
|
+
* validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser
|
|
5716
5700
|
* validations that only disallow `\r\n\0` characters, which can be used to
|
|
5717
5701
|
* bypass header matching rules.
|
|
5718
5702
|
*
|
|
@@ -7537,16 +7521,6 @@ export type Violation = Message<"buf.validate.Violation"> & {
|
|
|
7537
7521
|
* @generated from field: optional buf.validate.FieldPath rule = 6;
|
|
7538
7522
|
*/
|
|
7539
7523
|
rule?: FieldPath;
|
|
7540
|
-
/**
|
|
7541
|
-
* `field_path` is a human-readable identifier that points to the specific field that failed the validation.
|
|
7542
|
-
* This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
|
|
7543
|
-
*
|
|
7544
|
-
* Deprecated: use the `field` instead.
|
|
7545
|
-
*
|
|
7546
|
-
* @generated from field: optional string field_path = 1 [deprecated = true];
|
|
7547
|
-
* @deprecated
|
|
7548
|
-
*/
|
|
7549
|
-
fieldPath: string;
|
|
7550
7524
|
/**
|
|
7551
7525
|
* `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
|
|
7552
7526
|
* This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
|
|
@@ -7642,16 +7616,6 @@ export type ViolationJson = {
|
|
|
7642
7616
|
* @generated from field: optional buf.validate.FieldPath rule = 6;
|
|
7643
7617
|
*/
|
|
7644
7618
|
rule?: FieldPathJson;
|
|
7645
|
-
/**
|
|
7646
|
-
* `field_path` is a human-readable identifier that points to the specific field that failed the validation.
|
|
7647
|
-
* This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation.
|
|
7648
|
-
*
|
|
7649
|
-
* Deprecated: use the `field` instead.
|
|
7650
|
-
*
|
|
7651
|
-
* @generated from field: optional string field_path = 1 [deprecated = true];
|
|
7652
|
-
* @deprecated
|
|
7653
|
-
*/
|
|
7654
|
-
fieldPath?: string;
|
|
7655
7619
|
/**
|
|
7656
7620
|
* `constraint_id` is the unique identifier of the `Constraint` that was not fulfilled.
|
|
7657
7621
|
* This is the same `id` that was specified in the `Constraint` message, allowing easy tracing of which rule was violated.
|
|
@@ -7950,8 +7914,7 @@ export declare enum Ignore {
|
|
|
7950
7914
|
UNSPECIFIED = 0,
|
|
7951
7915
|
/**
|
|
7952
7916
|
* Validation is skipped if the field is unpopulated. This rule is redundant
|
|
7953
|
-
* if the field is already nullable.
|
|
7954
|
-
* deprecated ignore_empty rule.
|
|
7917
|
+
* if the field is already nullable.
|
|
7955
7918
|
*
|
|
7956
7919
|
* ```proto
|
|
7957
7920
|
* syntax="proto3
|
|
@@ -8068,21 +8031,7 @@ export declare enum Ignore {
|
|
|
8068
8031
|
*
|
|
8069
8032
|
* @generated from enum value: IGNORE_ALWAYS = 3;
|
|
8070
8033
|
*/
|
|
8071
|
-
ALWAYS = 3
|
|
8072
|
-
/**
|
|
8073
|
-
* Deprecated: Use IGNORE_IF_UNPOPULATED instead. TODO: Remove this value pre-v1.
|
|
8074
|
-
*
|
|
8075
|
-
* @generated from enum value: IGNORE_EMPTY = 1 [deprecated = true];
|
|
8076
|
-
* @deprecated
|
|
8077
|
-
*/
|
|
8078
|
-
EMPTY = 1,
|
|
8079
|
-
/**
|
|
8080
|
-
* Deprecated: Use IGNORE_IF_DEFAULT_VALUE. TODO: Remove this value pre-v1.
|
|
8081
|
-
*
|
|
8082
|
-
* @generated from enum value: IGNORE_DEFAULT = 2 [deprecated = true];
|
|
8083
|
-
* @deprecated
|
|
8084
|
-
*/
|
|
8085
|
-
DEFAULT = 2
|
|
8034
|
+
ALWAYS = 3
|
|
8086
8035
|
}
|
|
8087
8036
|
/**
|
|
8088
8037
|
* Specifies how FieldConstraints.ignore behaves. See the documentation for
|
|
@@ -8090,7 +8039,7 @@ export declare enum Ignore {
|
|
|
8090
8039
|
*
|
|
8091
8040
|
* @generated from enum buf.validate.Ignore
|
|
8092
8041
|
*/
|
|
8093
|
-
export type IgnoreJson = "IGNORE_UNSPECIFIED" | "IGNORE_IF_UNPOPULATED" | "IGNORE_IF_DEFAULT_VALUE" | "IGNORE_ALWAYS"
|
|
8042
|
+
export type IgnoreJson = "IGNORE_UNSPECIFIED" | "IGNORE_IF_UNPOPULATED" | "IGNORE_IF_DEFAULT_VALUE" | "IGNORE_ALWAYS";
|
|
8094
8043
|
/**
|
|
8095
8044
|
* Describes the enum buf.validate.Ignore.
|
|
8096
8045
|
*/
|
|
@@ -8106,13 +8055,13 @@ export declare enum KnownRegex {
|
|
|
8106
8055
|
*/
|
|
8107
8056
|
UNSPECIFIED = 0,
|
|
8108
8057
|
/**
|
|
8109
|
-
* HTTP header name as defined by [RFC 7230](https://
|
|
8058
|
+
* HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2).
|
|
8110
8059
|
*
|
|
8111
8060
|
* @generated from enum value: KNOWN_REGEX_HTTP_HEADER_NAME = 1;
|
|
8112
8061
|
*/
|
|
8113
8062
|
HTTP_HEADER_NAME = 1,
|
|
8114
8063
|
/**
|
|
8115
|
-
* HTTP header value as defined by [RFC 7230](https://
|
|
8064
|
+
* HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4).
|
|
8116
8065
|
*
|
|
8117
8066
|
* @generated from enum value: KNOWN_REGEX_HTTP_HEADER_VALUE = 2;
|
|
8118
8067
|
*/
|