Skip to content

Commit

Permalink
push latest version of APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
rig-bot committed Jan 3, 2024
1 parent e125d49 commit aeca0cd
Show file tree
Hide file tree
Showing 8 changed files with 564 additions and 1,092 deletions.
54 changes: 1 addition & 53 deletions api/v1/authentication/service_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { UserIdentifier, UserInfo } from "../../../model/user_pb.js";
import { OauthProvider, Token } from "./user_pb.js";
import { Token } from "./user_pb.js";
import { LoginType } from "../../../model/auth_pb.js";

/**
Expand All @@ -25,11 +25,6 @@ export class VerifyEmailRequest extends Message<VerifyEmailRequest> {
*/
email = "";

/**
* @generated from field: string project_id = 3;
*/
projectId = "";

constructor(data?: PartialMessage<VerifyEmailRequest>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -40,7 +35,6 @@ export class VerifyEmailRequest extends Message<VerifyEmailRequest> {
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyEmailRequest {
Expand Down Expand Up @@ -109,11 +103,6 @@ export class VerifyPhoneNumberRequest extends Message<VerifyPhoneNumberRequest>
*/
phoneNumber = "";

/**
* @generated from field: string project_id = 3;
*/
projectId = "";

constructor(data?: PartialMessage<VerifyPhoneNumberRequest>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -124,7 +113,6 @@ export class VerifyPhoneNumberRequest extends Message<VerifyPhoneNumberRequest>
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "phone_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyPhoneNumberRequest {
Expand Down Expand Up @@ -191,11 +179,6 @@ export class UserPassword extends Message<UserPassword> {
*/
password = "";

/**
* @generated from field: string project_id = 3;
*/
projectId = "";

constructor(data?: PartialMessage<UserPassword>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -206,7 +189,6 @@ export class UserPassword extends Message<UserPassword> {
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "identifier", kind: "message", T: UserIdentifier },
{ no: 2, name: "password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPassword {
Expand Down Expand Up @@ -621,11 +603,6 @@ export class SendPasswordResetRequest extends Message<SendPasswordResetRequest>
*/
identifier?: UserIdentifier;

/**
* @generated from field: string project_id = 2;
*/
projectId = "";

constructor(data?: PartialMessage<SendPasswordResetRequest>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -635,7 +612,6 @@ export class SendPasswordResetRequest extends Message<SendPasswordResetRequest>
static readonly typeName = "api.v1.authentication.SendPasswordResetRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "identifier", kind: "message", T: UserIdentifier },
{ no: 2, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendPasswordResetRequest {
Expand Down Expand Up @@ -707,11 +683,6 @@ export class ResetPasswordRequest extends Message<ResetPasswordRequest> {
*/
identifier?: UserIdentifier;

/**
* @generated from field: string project_id = 4;
*/
projectId = "";

constructor(data?: PartialMessage<ResetPasswordRequest>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -723,7 +694,6 @@ export class ResetPasswordRequest extends Message<ResetPasswordRequest> {
{ no: 1, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "new_password", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "identifier", kind: "message", T: UserIdentifier },
{ no: 4, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResetPasswordRequest {
Expand Down Expand Up @@ -928,18 +898,6 @@ export class RefreshTokenResponse extends Message<RefreshTokenResponse> {
* @generated from message api.v1.authentication.GetAuthConfigRequest
*/
export class GetAuthConfigRequest extends Message<GetAuthConfigRequest> {
/**
* Optional redirect address for OAuth2
*
* @generated from field: string redirect_addr = 1;
*/
redirectAddr = "";

/**
* @generated from field: string project_id = 2;
*/
projectId = "";

constructor(data?: PartialMessage<GetAuthConfigRequest>) {
super();
proto3.util.initPartial(data, this);
Expand All @@ -948,8 +906,6 @@ export class GetAuthConfigRequest extends Message<GetAuthConfigRequest> {
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.authentication.GetAuthConfigRequest";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "redirect_addr", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "project_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetAuthConfigRequest {
Expand Down Expand Up @@ -1003,13 +959,6 @@ export class GetAuthConfigResponse extends Message<GetAuthConfigResponse> {
*/
loginTypes: LoginType[] = [];

/**
* Array of supported oauth providers.
*
* @generated from field: repeated api.v1.authentication.OauthProvider oauth_providers = 5;
*/
oauthProviders: OauthProvider[] = [];

/**
* True if new users can sign up.
*
Expand All @@ -1029,7 +978,6 @@ export class GetAuthConfigResponse extends Message<GetAuthConfigResponse> {
{ no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 3, name: "validate_password", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
{ no: 4, name: "login_types", kind: "enum", T: proto3.getEnumType(LoginType), repeated: true },
{ no: 5, name: "oauth_providers", kind: "message", T: OauthProvider, repeated: true },
{ no: 7, name: "allows_register", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
]);

Expand Down
43 changes: 0 additions & 43 deletions api/v1/authentication/user_pb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,6 @@
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";

/**
* @generated from message api.v1.authentication.OauthProvider
*/
export class OauthProvider extends Message<OauthProvider> {
/**
* @generated from field: string name = 1;
*/
name = "";

/**
* @generated from field: string provider_url = 2;
*/
providerUrl = "";

constructor(data?: PartialMessage<OauthProvider>) {
super();
proto3.util.initPartial(data, this);
}

static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.v1.authentication.OauthProvider";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
{ no: 2, name: "provider_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);

static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OauthProvider {
return new OauthProvider().fromBinary(bytes, options);
}

static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OauthProvider {
return new OauthProvider().fromJson(jsonValue, options);
}

static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OauthProvider {
return new OauthProvider().fromJsonString(jsonString, options);
}

static equals(a: OauthProvider | PlainMessage<OauthProvider> | undefined, b: OauthProvider | PlainMessage<OauthProvider> | undefined): boolean {
return proto3.util.equals(OauthProvider, a, b);
}
}

/**
* @generated from message api.v1.authentication.Token
*/
Expand Down
Loading

0 comments on commit aeca0cd

Please sign in to comment.