auth-yes/sdk/gen/auth_pb.ts

101 lines
3.6 KiB
TypeScript

// @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<ValidateSessionRequest> {
/**
* @generated from field: string token = 1;
*/
token = "";
constructor(data?: PartialMessage<ValidateSessionRequest>) {
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<BinaryReadOptions>): ValidateSessionRequest {
return new ValidateSessionRequest().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValidateSessionRequest {
return new ValidateSessionRequest().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValidateSessionRequest {
return new ValidateSessionRequest().fromJsonString(jsonString, options);
}
static equals(a: ValidateSessionRequest | PlainMessage<ValidateSessionRequest> | undefined, b: ValidateSessionRequest | PlainMessage<ValidateSessionRequest> | undefined): boolean {
return proto3.util.equals(ValidateSessionRequest, a, b);
}
}
/**
* @generated from message auth.v1.ValidateSessionResponse
*/
export class ValidateSessionResponse extends Message<ValidateSessionResponse> {
/**
* @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<ValidateSessionResponse>) {
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<BinaryReadOptions>): ValidateSessionResponse {
return new ValidateSessionResponse().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ValidateSessionResponse {
return new ValidateSessionResponse().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ValidateSessionResponse {
return new ValidateSessionResponse().fromJsonString(jsonString, options);
}
static equals(a: ValidateSessionResponse | PlainMessage<ValidateSessionResponse> | undefined, b: ValidateSessionResponse | PlainMessage<ValidateSessionResponse> | undefined): boolean {
return proto3.util.equals(ValidateSessionResponse, a, b);
}
}