Protobuf .proto to TypeScript Interfaces & Enums Converter
Parse Protocol Buffers (proto2 & proto3) message definitions, enums, and nested fields into clean TypeScript interfaces.
/**
* Generated by ToolsAA Protobuf to TypeScript Converter
* Syntax: proto3 | Package: identity.v1
* 100% Client-Side Pure Execution
*/
export enum AccountStatus {
ACCOUNT_STATUS_UNSPECIFIED = 0,
ACCOUNT_STATUS_ACTIVE = 1,
ACCOUNT_STATUS_PENDING_VERIFY = 2,
ACCOUNT_STATUS_SUSPENDED = 3,
ACCOUNT_STATUS_ARCHIVED = 4
}
export type UserProfileAuthCredential =
| { case: 'passwordHash'; value: string }
| { case: 'oauthProviderId'; value: string }
| { case: 'webauthnPublicKey'; value: Uint8Array }
| { case: undefined; value?: undefined };
export interface UserProfile {
/** @field 6 */
metadata: Record<string, string>;
/** @field 1 */
userId: string;
/** @field 2 */
email: string;
/** @field 3 */
displayName?: string;
/** @field 4 */
status?: AccountStatus;
/** @field 5 */
roles: string[];
/** @field 7 */
createdAt: string;
/** @field 8 */
lastLoginAt: string;
/** @oneof auth_credential */
authCredential?: UserProfileAuthCredential;
}
export interface GetUserRequest {
/** @field 1 */
userId: string;
}
export interface ListUsersRequest {
/** @field 1 */
pageSize: number;
/** @field 2 */
pageToken: string;
}
export interface UpdateUserRequest {
/** @field 1 */
user?: UserProfile;
}
Client-side lexical scanner supporting proto2 and proto3 syntax trees without server round-trips
Outputs native TypeScript interfaces, enums, discriminated oneof unions, and runtime Zod validation schemas
100% in-browser evaluation; proprietary schemas and internal enterprise contracts never leave your device
Native Proto3 & Proto2 AST Compiler
Client-side lexical parsing transforms messages, enums, nested types, and package namespaces into clean TypeScript declarations with strict type-safety.
Zero Data Transmission & Privacy Shield
100% browser-based conversion guarantees proprietary gRPC schemas and internal enterprise contracts never touch remote servers or third-party networks.
Production Code Gen with gRPC & Zod Ecosystem
Generates export-ready .ts files with JSDoc field numbers, configurable 64-bit integer mappings, discriminated oneof unions, and Zod runtime validators.