File size: 809 Bytes
4c921aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Original file: proto/protoc-gen-validate/validate/validate.proto

/**
 * WellKnownRegex contain some well-known patterns.
 */
export const KnownRegex = {
  UNKNOWN: 'UNKNOWN',
  /**
   * HTTP header name as defined by RFC 7230.
   */
  HTTP_HEADER_NAME: 'HTTP_HEADER_NAME',
  /**
   * HTTP header value as defined by RFC 7230.
   */
  HTTP_HEADER_VALUE: 'HTTP_HEADER_VALUE',
} as const;

/**
 * WellKnownRegex contain some well-known patterns.
 */
export type KnownRegex =
  | 'UNKNOWN'
  | 0
  /**
   * HTTP header name as defined by RFC 7230.
   */
  | 'HTTP_HEADER_NAME'
  | 1
  /**
   * HTTP header value as defined by RFC 7230.
   */
  | 'HTTP_HEADER_VALUE'
  | 2

/**
 * WellKnownRegex contain some well-known patterns.
 */
export type KnownRegex__Output = typeof KnownRegex[keyof typeof KnownRegex]