@daocloud-proto/zestu 0.14.0-dev-50bb2d74 → 0.14.0-dev-0dc4e7b1
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/package.json +1 -1
- package/validate/validate.pb.ts +266 -0
package/package.json
CHANGED
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as GoogleProtobufDuration from "../google/protobuf/duration.pb"
|
|
8
|
+
import * as GoogleProtobufTimestamp from "../google/protobuf/timestamp.pb"
|
|
9
|
+
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
19
|
+
export enum KnownRegex {
|
|
20
|
+
UNKNOWN = "UNKNOWN",
|
|
21
|
+
HTTP_HEADER_NAME = "HTTP_HEADER_NAME",
|
|
22
|
+
HTTP_HEADER_VALUE = "HTTP_HEADER_VALUE",
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
type BaseFieldRules = {
|
|
27
|
+
message?: MessageRules
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type FieldRules = BaseFieldRules
|
|
31
|
+
& OneOf<{ float: FloatRules; double: DoubleRules; int32: Int32Rules; int64: Int64Rules; uint32: UInt32Rules; uint64: UInt64Rules; sint32: SInt32Rules; sint64: SInt64Rules; fixed32: Fixed32Rules; fixed64: Fixed64Rules; sfixed32: SFixed32Rules; sfixed64: SFixed64Rules; bool: BoolRules; string: StringRules; bytes: BytesRules; enum: EnumRules; repeated: RepeatedRules; map: MapRules; any: AnyRules; duration: DurationRules; timestamp: TimestampRules }>
|
|
32
|
+
|
|
33
|
+
export type FloatRules = {
|
|
34
|
+
const?: number
|
|
35
|
+
lt?: number
|
|
36
|
+
lte?: number
|
|
37
|
+
gt?: number
|
|
38
|
+
gte?: number
|
|
39
|
+
in?: number[]
|
|
40
|
+
notIn?: number[]
|
|
41
|
+
ignoreEmpty?: boolean
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type DoubleRules = {
|
|
45
|
+
const?: number
|
|
46
|
+
lt?: number
|
|
47
|
+
lte?: number
|
|
48
|
+
gt?: number
|
|
49
|
+
gte?: number
|
|
50
|
+
in?: number[]
|
|
51
|
+
notIn?: number[]
|
|
52
|
+
ignoreEmpty?: boolean
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type Int32Rules = {
|
|
56
|
+
const?: number
|
|
57
|
+
lt?: number
|
|
58
|
+
lte?: number
|
|
59
|
+
gt?: number
|
|
60
|
+
gte?: number
|
|
61
|
+
in?: number[]
|
|
62
|
+
notIn?: number[]
|
|
63
|
+
ignoreEmpty?: boolean
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Int64Rules = {
|
|
67
|
+
const?: string
|
|
68
|
+
lt?: string
|
|
69
|
+
lte?: string
|
|
70
|
+
gt?: string
|
|
71
|
+
gte?: string
|
|
72
|
+
in?: string[]
|
|
73
|
+
notIn?: string[]
|
|
74
|
+
ignoreEmpty?: boolean
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type UInt32Rules = {
|
|
78
|
+
const?: number
|
|
79
|
+
lt?: number
|
|
80
|
+
lte?: number
|
|
81
|
+
gt?: number
|
|
82
|
+
gte?: number
|
|
83
|
+
in?: number[]
|
|
84
|
+
notIn?: number[]
|
|
85
|
+
ignoreEmpty?: boolean
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type UInt64Rules = {
|
|
89
|
+
const?: string
|
|
90
|
+
lt?: string
|
|
91
|
+
lte?: string
|
|
92
|
+
gt?: string
|
|
93
|
+
gte?: string
|
|
94
|
+
in?: string[]
|
|
95
|
+
notIn?: string[]
|
|
96
|
+
ignoreEmpty?: boolean
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type SInt32Rules = {
|
|
100
|
+
const?: number
|
|
101
|
+
lt?: number
|
|
102
|
+
lte?: number
|
|
103
|
+
gt?: number
|
|
104
|
+
gte?: number
|
|
105
|
+
in?: number[]
|
|
106
|
+
notIn?: number[]
|
|
107
|
+
ignoreEmpty?: boolean
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type SInt64Rules = {
|
|
111
|
+
const?: string
|
|
112
|
+
lt?: string
|
|
113
|
+
lte?: string
|
|
114
|
+
gt?: string
|
|
115
|
+
gte?: string
|
|
116
|
+
in?: string[]
|
|
117
|
+
notIn?: string[]
|
|
118
|
+
ignoreEmpty?: boolean
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type Fixed32Rules = {
|
|
122
|
+
const?: number
|
|
123
|
+
lt?: number
|
|
124
|
+
lte?: number
|
|
125
|
+
gt?: number
|
|
126
|
+
gte?: number
|
|
127
|
+
in?: number[]
|
|
128
|
+
notIn?: number[]
|
|
129
|
+
ignoreEmpty?: boolean
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type Fixed64Rules = {
|
|
133
|
+
const?: string
|
|
134
|
+
lt?: string
|
|
135
|
+
lte?: string
|
|
136
|
+
gt?: string
|
|
137
|
+
gte?: string
|
|
138
|
+
in?: string[]
|
|
139
|
+
notIn?: string[]
|
|
140
|
+
ignoreEmpty?: boolean
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type SFixed32Rules = {
|
|
144
|
+
const?: number
|
|
145
|
+
lt?: number
|
|
146
|
+
lte?: number
|
|
147
|
+
gt?: number
|
|
148
|
+
gte?: number
|
|
149
|
+
in?: number[]
|
|
150
|
+
notIn?: number[]
|
|
151
|
+
ignoreEmpty?: boolean
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type SFixed64Rules = {
|
|
155
|
+
const?: string
|
|
156
|
+
lt?: string
|
|
157
|
+
lte?: string
|
|
158
|
+
gt?: string
|
|
159
|
+
gte?: string
|
|
160
|
+
in?: string[]
|
|
161
|
+
notIn?: string[]
|
|
162
|
+
ignoreEmpty?: boolean
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type BoolRules = {
|
|
166
|
+
const?: boolean
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
type BaseStringRules = {
|
|
171
|
+
const?: string
|
|
172
|
+
len?: string
|
|
173
|
+
minLen?: string
|
|
174
|
+
maxLen?: string
|
|
175
|
+
lenBytes?: string
|
|
176
|
+
minBytes?: string
|
|
177
|
+
maxBytes?: string
|
|
178
|
+
pattern?: string
|
|
179
|
+
prefix?: string
|
|
180
|
+
suffix?: string
|
|
181
|
+
contains?: string
|
|
182
|
+
notContains?: string
|
|
183
|
+
in?: string[]
|
|
184
|
+
notIn?: string[]
|
|
185
|
+
strict?: boolean
|
|
186
|
+
ignoreEmpty?: boolean
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type StringRules = BaseStringRules
|
|
190
|
+
& OneOf<{ email: boolean; hostname: boolean; ip: boolean; ipv4: boolean; ipv6: boolean; uri: boolean; uriRef: boolean; address: boolean; uuid: boolean; wellKnownRegex: KnownRegex }>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
type BaseBytesRules = {
|
|
194
|
+
const?: Uint8Array
|
|
195
|
+
len?: string
|
|
196
|
+
minLen?: string
|
|
197
|
+
maxLen?: string
|
|
198
|
+
pattern?: string
|
|
199
|
+
prefix?: Uint8Array
|
|
200
|
+
suffix?: Uint8Array
|
|
201
|
+
contains?: Uint8Array
|
|
202
|
+
in?: Uint8Array[]
|
|
203
|
+
notIn?: Uint8Array[]
|
|
204
|
+
ignoreEmpty?: boolean
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export type BytesRules = BaseBytesRules
|
|
208
|
+
& OneOf<{ ip: boolean; ipv4: boolean; ipv6: boolean }>
|
|
209
|
+
|
|
210
|
+
export type EnumRules = {
|
|
211
|
+
const?: number
|
|
212
|
+
definedOnly?: boolean
|
|
213
|
+
in?: number[]
|
|
214
|
+
notIn?: number[]
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export type MessageRules = {
|
|
218
|
+
skip?: boolean
|
|
219
|
+
required?: boolean
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export type RepeatedRules = {
|
|
223
|
+
minItems?: string
|
|
224
|
+
maxItems?: string
|
|
225
|
+
unique?: boolean
|
|
226
|
+
items?: FieldRules
|
|
227
|
+
ignoreEmpty?: boolean
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export type MapRules = {
|
|
231
|
+
minPairs?: string
|
|
232
|
+
maxPairs?: string
|
|
233
|
+
noSparse?: boolean
|
|
234
|
+
keys?: FieldRules
|
|
235
|
+
values?: FieldRules
|
|
236
|
+
ignoreEmpty?: boolean
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type AnyRules = {
|
|
240
|
+
required?: boolean
|
|
241
|
+
in?: string[]
|
|
242
|
+
notIn?: string[]
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export type DurationRules = {
|
|
246
|
+
required?: boolean
|
|
247
|
+
const?: GoogleProtobufDuration.Duration
|
|
248
|
+
lt?: GoogleProtobufDuration.Duration
|
|
249
|
+
lte?: GoogleProtobufDuration.Duration
|
|
250
|
+
gt?: GoogleProtobufDuration.Duration
|
|
251
|
+
gte?: GoogleProtobufDuration.Duration
|
|
252
|
+
in?: GoogleProtobufDuration.Duration[]
|
|
253
|
+
notIn?: GoogleProtobufDuration.Duration[]
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export type TimestampRules = {
|
|
257
|
+
required?: boolean
|
|
258
|
+
const?: GoogleProtobufTimestamp.Timestamp
|
|
259
|
+
lt?: GoogleProtobufTimestamp.Timestamp
|
|
260
|
+
lte?: GoogleProtobufTimestamp.Timestamp
|
|
261
|
+
gt?: GoogleProtobufTimestamp.Timestamp
|
|
262
|
+
gte?: GoogleProtobufTimestamp.Timestamp
|
|
263
|
+
ltNow?: boolean
|
|
264
|
+
gtNow?: boolean
|
|
265
|
+
within?: GoogleProtobufDuration.Duration
|
|
266
|
+
}
|