// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.ts" // @generated from file auth.proto (package auth.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * @generated from message auth.v1.ValidateSessionRequest */ export class ValidateSessionRequest extends Message { /** * @generated from field: string token = 1; */ token = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "auth.v1.ValidateSessionRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary( bytes: Uint8Array, options?: Partial, ): ValidateSessionRequest { return new ValidateSessionRequest().fromBinary(bytes, options); } static fromJson( jsonValue: JsonValue, options?: Partial, ): ValidateSessionRequest { return new ValidateSessionRequest().fromJson(jsonValue, options); } static fromJsonString( jsonString: string, options?: Partial, ): ValidateSessionRequest { return new ValidateSessionRequest().fromJsonString(jsonString, options); } static equals( a: | ValidateSessionRequest | PlainMessage | undefined, b: | ValidateSessionRequest | PlainMessage | undefined, ): boolean { return proto3.util.equals(ValidateSessionRequest, a, b); } } /** * @generated from message auth.v1.ValidateSessionResponse */ export class ValidateSessionResponse extends Message { /** * @generated from field: bool valid = 1; */ valid = false; /** * @generated from field: string uuid = 2; */ uuid = ""; /** * @generated from field: repeated string scopes = 3; */ scopes: string[] = []; /** * @generated from field: string error = 4; */ error = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "auth.v1.ValidateSessionResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "valid", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 2, name: "uuid", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "scopes", kind: "scalar", T: 9, /* ScalarType.STRING */ repeated: true, }, { no: 4, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary( bytes: Uint8Array, options?: Partial, ): ValidateSessionResponse { return new ValidateSessionResponse().fromBinary(bytes, options); } static fromJson( jsonValue: JsonValue, options?: Partial, ): ValidateSessionResponse { return new ValidateSessionResponse().fromJson(jsonValue, options); } static fromJsonString( jsonString: string, options?: Partial, ): ValidateSessionResponse { return new ValidateSessionResponse().fromJsonString(jsonString, options); } static equals( a: | ValidateSessionResponse | PlainMessage | undefined, b: | ValidateSessionResponse | PlainMessage | undefined, ): boolean { return proto3.util.equals(ValidateSessionResponse, a, b); } }