mirror of https://github.com/grpc/grpc-node.git
39 lines
809 B
TypeScript
39 lines
809 B
TypeScript
// 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]
|