@in-human-resources/backend-proto 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -63
- package/api/v1/README.md +282 -0
- package/api/v1/auth.proto +228 -0
- package/api/v1/candidate.proto +203 -0
- package/api/v1/common.proto +66 -0
- package/api/v1/company.proto +203 -0
- package/auth/v1/service.proto +824 -0
- package/buf.gen.yaml +5 -2
- package/common/v1/common.proto +10 -0
- package/gen/ts/api/v1/auth_connect.ts +21 -3
- package/gen/ts/api/v1/auth_pb.ts +90 -2
- package/gen/ts/api/v1/candidate_connect.ts +3 -3
- package/gen/ts/api/v1/candidate_pb.ts +1 -1
- package/gen/ts/api/v1/common_pb.ts +1 -1
- package/gen/ts/api/v1/company_connect.ts +12 -3
- package/gen/ts/api/v1/company_pb.ts +125 -1
- package/gen/ts/auth/v1/service_connect.ts +29 -2
- package/gen/ts/auth/v1/service_pb.ts +286 -2
- package/gen/ts/common/v1/common_pb.ts +1 -1
- package/package.json +4 -1
package/buf.gen.yaml
CHANGED
|
@@ -11,7 +11,10 @@ plugins:
|
|
|
11
11
|
out: gen/ts
|
|
12
12
|
opt:
|
|
13
13
|
- target=ts
|
|
14
|
-
|
|
14
|
+
# Extensionless imports: package ships .ts only; .js in paths breaks Turbopack/Next.
|
|
15
|
+
- import_extension=none
|
|
15
16
|
- local: protoc-gen-connect-es
|
|
16
17
|
out: gen/ts
|
|
17
|
-
opt:
|
|
18
|
+
opt:
|
|
19
|
+
- target=ts
|
|
20
|
+
- import_extension=none
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file api/v1/auth.proto (package api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { ChangePasswordRequest, GetProfileRequest, GetProfileResponse, LinkOAuthAccountRequest, ListSessionsRequest, ListSessionsResponse, LoginRequest, LoginResponse, LogoutRequest, OAuthCallbackRequest, OAuthCallbackResponse, OAuthLoginRequest, OAuthLoginResponse, RefreshTokenRequest, RefreshTokenResponse, RegisterRequest, RegisterResponse, RequestPasswordResetRequest, ResendVerificationEmailRequest, ResetPasswordRequest, RevokeAllSessionsRequest, RevokeSessionRequest, UnlinkOAuthAccountRequest, UpdateProfileRequest, VerifyEmailRequest } from "./auth_pb
|
|
6
|
+
import { ChangePasswordRequest, GetProfileRequest, GetProfileResponse, LinkOAuthAccountRequest, ListSessionsRequest, ListSessionsResponse, LoginRequest, LoginResponse, LogoutRequest, OAuthCallbackRequest, OAuthCallbackResponse, OAuthLoginRequest, OAuthLoginResponse, RefreshTokenRequest, RefreshTokenResponse, RegisterRequest, RegisterResponse, RequestPasswordResetRequest, ResendVerificationEmailRequest, ResetPasswordRequest, RevokeAllSessionsRequest, RevokeSessionRequest, SendEmailVerificationOtpRequest, UnlinkOAuthAccountRequest, UpdateProfileRequest, VerifyEmailRequest, VerifyEmailWithOtpRequest } from "./auth_pb";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
-
import { Empty } from "./common_pb
|
|
8
|
+
import { Empty } from "./common_pb";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* AuthService is the client-facing authentication service.
|
|
@@ -74,6 +74,24 @@ export const AuthService = {
|
|
|
74
74
|
O: Empty,
|
|
75
75
|
kind: MethodKind.Unary,
|
|
76
76
|
},
|
|
77
|
+
/**
|
|
78
|
+
* @generated from rpc api.v1.AuthService.SendEmailVerificationOtp
|
|
79
|
+
*/
|
|
80
|
+
sendEmailVerificationOtp: {
|
|
81
|
+
name: "SendEmailVerificationOtp",
|
|
82
|
+
I: SendEmailVerificationOtpRequest,
|
|
83
|
+
O: Empty,
|
|
84
|
+
kind: MethodKind.Unary,
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* @generated from rpc api.v1.AuthService.VerifyEmailWithOtp
|
|
88
|
+
*/
|
|
89
|
+
verifyEmailWithOtp: {
|
|
90
|
+
name: "VerifyEmailWithOtp",
|
|
91
|
+
I: VerifyEmailWithOtpRequest,
|
|
92
|
+
O: Empty,
|
|
93
|
+
kind: MethodKind.Unary,
|
|
94
|
+
},
|
|
77
95
|
/**
|
|
78
96
|
* Password management
|
|
79
97
|
*
|
package/gen/ts/api/v1/auth_pb.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file api/v1/auth.proto (package api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
-
import { ProfileCompletion, RequestContext, SessionInfo } from "./common_pb
|
|
8
|
+
import { ProfileCompletion, RequestContext, SessionInfo } from "./common_pb";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @generated from message api.v1.RegisterRequest
|
|
@@ -40,6 +40,13 @@ export class RegisterRequest extends Message<RegisterRequest> {
|
|
|
40
40
|
*/
|
|
41
41
|
professionalHeadline = "";
|
|
42
42
|
|
|
43
|
+
/**
|
|
44
|
+
* optional; company invites when user_type=company
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: string company_invite_token = 6;
|
|
47
|
+
*/
|
|
48
|
+
companyInviteToken = "";
|
|
49
|
+
|
|
43
50
|
/**
|
|
44
51
|
* @generated from field: api.v1.RequestContext context = 10;
|
|
45
52
|
*/
|
|
@@ -58,6 +65,7 @@ export class RegisterRequest extends Message<RegisterRequest> {
|
|
|
58
65
|
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
59
66
|
{ no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
67
|
{ no: 5, name: "professional_headline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
68
|
+
{ no: 6, name: "company_invite_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
61
69
|
{ no: 10, name: "context", kind: "message", T: RequestContext },
|
|
62
70
|
]);
|
|
63
71
|
|
|
@@ -544,6 +552,86 @@ export class ResendVerificationEmailRequest extends Message<ResendVerificationEm
|
|
|
544
552
|
}
|
|
545
553
|
}
|
|
546
554
|
|
|
555
|
+
/**
|
|
556
|
+
* @generated from message api.v1.SendEmailVerificationOtpRequest
|
|
557
|
+
*/
|
|
558
|
+
export class SendEmailVerificationOtpRequest extends Message<SendEmailVerificationOtpRequest> {
|
|
559
|
+
/**
|
|
560
|
+
* @generated from field: string email = 1;
|
|
561
|
+
*/
|
|
562
|
+
email = "";
|
|
563
|
+
|
|
564
|
+
constructor(data?: PartialMessage<SendEmailVerificationOtpRequest>) {
|
|
565
|
+
super();
|
|
566
|
+
proto3.util.initPartial(data, this);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
570
|
+
static readonly typeName = "api.v1.SendEmailVerificationOtpRequest";
|
|
571
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
572
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
573
|
+
]);
|
|
574
|
+
|
|
575
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendEmailVerificationOtpRequest {
|
|
576
|
+
return new SendEmailVerificationOtpRequest().fromBinary(bytes, options);
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendEmailVerificationOtpRequest {
|
|
580
|
+
return new SendEmailVerificationOtpRequest().fromJson(jsonValue, options);
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendEmailVerificationOtpRequest {
|
|
584
|
+
return new SendEmailVerificationOtpRequest().fromJsonString(jsonString, options);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
static equals(a: SendEmailVerificationOtpRequest | PlainMessage<SendEmailVerificationOtpRequest> | undefined, b: SendEmailVerificationOtpRequest | PlainMessage<SendEmailVerificationOtpRequest> | undefined): boolean {
|
|
588
|
+
return proto3.util.equals(SendEmailVerificationOtpRequest, a, b);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* @generated from message api.v1.VerifyEmailWithOtpRequest
|
|
594
|
+
*/
|
|
595
|
+
export class VerifyEmailWithOtpRequest extends Message<VerifyEmailWithOtpRequest> {
|
|
596
|
+
/**
|
|
597
|
+
* @generated from field: string email = 1;
|
|
598
|
+
*/
|
|
599
|
+
email = "";
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* @generated from field: string code = 2;
|
|
603
|
+
*/
|
|
604
|
+
code = "";
|
|
605
|
+
|
|
606
|
+
constructor(data?: PartialMessage<VerifyEmailWithOtpRequest>) {
|
|
607
|
+
super();
|
|
608
|
+
proto3.util.initPartial(data, this);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
612
|
+
static readonly typeName = "api.v1.VerifyEmailWithOtpRequest";
|
|
613
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
614
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
615
|
+
{ no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
616
|
+
]);
|
|
617
|
+
|
|
618
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyEmailWithOtpRequest {
|
|
619
|
+
return new VerifyEmailWithOtpRequest().fromBinary(bytes, options);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyEmailWithOtpRequest {
|
|
623
|
+
return new VerifyEmailWithOtpRequest().fromJson(jsonValue, options);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyEmailWithOtpRequest {
|
|
627
|
+
return new VerifyEmailWithOtpRequest().fromJsonString(jsonString, options);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
static equals(a: VerifyEmailWithOtpRequest | PlainMessage<VerifyEmailWithOtpRequest> | undefined, b: VerifyEmailWithOtpRequest | PlainMessage<VerifyEmailWithOtpRequest> | undefined): boolean {
|
|
631
|
+
return proto3.util.equals(VerifyEmailWithOtpRequest, a, b);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
547
635
|
/**
|
|
548
636
|
* @generated from message api.v1.RequestPasswordResetRequest
|
|
549
637
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file api/v1/candidate.proto (package api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { AddCandidateExperienceRequest, CandidateProfileResponse, CheckApplicationReadyRequest, CheckApplicationReadyResponse, DeleteCandidateExperienceRequest, GetCandidateOnboardingStatusRequest, GetCandidateProfileRequest, SubmitCandidateBasicProfileRequest, SubmitCandidateExperienceRequest, SubmitCandidatePreferencesRequest, SubmitCandidateResumeRequest, SubmitCandidateSkillsRequest, UpdateCandidateExperienceRequest, UpdateCandidatePreferencesRequest, UpdateCandidateProfileRequest, UpdateCandidateSkillsRequest } from "./candidate_pb
|
|
6
|
+
import { AddCandidateExperienceRequest, CandidateProfileResponse, CheckApplicationReadyRequest, CheckApplicationReadyResponse, DeleteCandidateExperienceRequest, GetCandidateOnboardingStatusRequest, GetCandidateProfileRequest, SubmitCandidateBasicProfileRequest, SubmitCandidateExperienceRequest, SubmitCandidatePreferencesRequest, SubmitCandidateResumeRequest, SubmitCandidateSkillsRequest, UpdateCandidateExperienceRequest, UpdateCandidatePreferencesRequest, UpdateCandidateProfileRequest, UpdateCandidateSkillsRequest } from "./candidate_pb";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
-
import { CompleteOnboardingRequest, OnboardingStatusResponse, SkipOnboardingStepRequest } from "./common_pb
|
|
8
|
+
import { CompleteOnboardingRequest, OnboardingStatusResponse, SkipOnboardingStepRequest } from "./common_pb";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* CandidateService is the client-facing candidate profile service.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file api/v1/candidate.proto (package api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file api/v1/common.proto (package api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file api/v1/company.proto (package api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { CompanyMemberInfo, CompanyProfileResponse, GetCompanyOnboardingStatusRequest, GetCompanyRequest, GetCompanyResponse, GetMyCompanyMembershipRequest, GetMyCompanyRequest, InviteCompanyMemberRequest, ListCompanyMembersRequest, ListCompanyMembersResponse, RemoveCompanyMemberRequest, SubmitAccountSetupRequest, SubmitCompanyBrandingRequest, SubmitCompanyDetailsRequest, SubmitCompanyInfoRequest, SubmitCompanyInviteTeamRequest, UpdateCompanyMemberRoleRequest, UpdateCompanyProfileRequest } from "./company_pb
|
|
6
|
+
import { AcceptCompanyInvitationRequest, AcceptCompanyInvitationResponse, CompanyMemberInfo, CompanyProfileResponse, GetCompanyOnboardingStatusRequest, GetCompanyRequest, GetCompanyResponse, GetMyCompanyMembershipRequest, GetMyCompanyRequest, InviteCompanyMemberRequest, ListCompanyMembersRequest, ListCompanyMembersResponse, RemoveCompanyMemberRequest, SubmitAccountSetupRequest, SubmitCompanyBrandingRequest, SubmitCompanyDetailsRequest, SubmitCompanyInfoRequest, SubmitCompanyInviteTeamRequest, UpdateCompanyMemberRoleRequest, UpdateCompanyProfileRequest } from "./company_pb";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
|
-
import { CompleteOnboardingRequest, Empty, OnboardingStatusResponse, SkipOnboardingStepRequest } from "./common_pb
|
|
8
|
+
import { CompleteOnboardingRequest, Empty, OnboardingStatusResponse, SkipOnboardingStepRequest } from "./common_pb";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* CompanyService is the client-facing company management service.
|
|
@@ -73,6 +73,15 @@ export const CompanyService = {
|
|
|
73
73
|
O: Empty,
|
|
74
74
|
kind: MethodKind.Unary,
|
|
75
75
|
},
|
|
76
|
+
/**
|
|
77
|
+
* @generated from rpc api.v1.CompanyService.AcceptCompanyInvitation
|
|
78
|
+
*/
|
|
79
|
+
acceptCompanyInvitation: {
|
|
80
|
+
name: "AcceptCompanyInvitation",
|
|
81
|
+
I: AcceptCompanyInvitationRequest,
|
|
82
|
+
O: AcceptCompanyInvitationResponse,
|
|
83
|
+
kind: MethodKind.Unary,
|
|
84
|
+
},
|
|
76
85
|
/**
|
|
77
86
|
* @generated from rpc api.v1.CompanyService.RemoveCompanyMember
|
|
78
87
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file api/v1/company.proto (package api.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
@@ -672,6 +672,130 @@ export class InviteCompanyMemberRequest extends Message<InviteCompanyMemberReque
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
|
|
675
|
+
/**
|
|
676
|
+
* @generated from message api.v1.AcceptCompanyInvitationRequest
|
|
677
|
+
*/
|
|
678
|
+
export class AcceptCompanyInvitationRequest extends Message<AcceptCompanyInvitationRequest> {
|
|
679
|
+
/**
|
|
680
|
+
* User ID extracted from auth token
|
|
681
|
+
*
|
|
682
|
+
* @generated from field: string token = 1;
|
|
683
|
+
*/
|
|
684
|
+
token = "";
|
|
685
|
+
|
|
686
|
+
constructor(data?: PartialMessage<AcceptCompanyInvitationRequest>) {
|
|
687
|
+
super();
|
|
688
|
+
proto3.util.initPartial(data, this);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
692
|
+
static readonly typeName = "api.v1.AcceptCompanyInvitationRequest";
|
|
693
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
694
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
695
|
+
]);
|
|
696
|
+
|
|
697
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptCompanyInvitationRequest {
|
|
698
|
+
return new AcceptCompanyInvitationRequest().fromBinary(bytes, options);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationRequest {
|
|
702
|
+
return new AcceptCompanyInvitationRequest().fromJson(jsonValue, options);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationRequest {
|
|
706
|
+
return new AcceptCompanyInvitationRequest().fromJsonString(jsonString, options);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
static equals(a: AcceptCompanyInvitationRequest | PlainMessage<AcceptCompanyInvitationRequest> | undefined, b: AcceptCompanyInvitationRequest | PlainMessage<AcceptCompanyInvitationRequest> | undefined): boolean {
|
|
710
|
+
return proto3.util.equals(AcceptCompanyInvitationRequest, a, b);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* @generated from message api.v1.AcceptCompanyInvitationResponse
|
|
716
|
+
*/
|
|
717
|
+
export class AcceptCompanyInvitationResponse extends Message<AcceptCompanyInvitationResponse> {
|
|
718
|
+
/**
|
|
719
|
+
* @generated from field: string access_token = 1;
|
|
720
|
+
*/
|
|
721
|
+
accessToken = "";
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* @generated from field: string refresh_token = 2;
|
|
725
|
+
*/
|
|
726
|
+
refreshToken = "";
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* @generated from field: string user_type = 3;
|
|
730
|
+
*/
|
|
731
|
+
userType = "";
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* @generated from field: bool email_verified = 4;
|
|
735
|
+
*/
|
|
736
|
+
emailVerified = false;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* @generated from field: string onboarding_step = 5;
|
|
740
|
+
*/
|
|
741
|
+
onboardingStep = "";
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* @generated from field: bool onboarding_complete = 6;
|
|
745
|
+
*/
|
|
746
|
+
onboardingComplete = false;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* @generated from field: string company_id = 7;
|
|
750
|
+
*/
|
|
751
|
+
companyId = "";
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* @generated from field: string hierarchy_level = 8;
|
|
755
|
+
*/
|
|
756
|
+
hierarchyLevel = "";
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* @generated from field: string department = 9;
|
|
760
|
+
*/
|
|
761
|
+
department = "";
|
|
762
|
+
|
|
763
|
+
constructor(data?: PartialMessage<AcceptCompanyInvitationResponse>) {
|
|
764
|
+
super();
|
|
765
|
+
proto3.util.initPartial(data, this);
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
769
|
+
static readonly typeName = "api.v1.AcceptCompanyInvitationResponse";
|
|
770
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
771
|
+
{ no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
772
|
+
{ no: 2, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
773
|
+
{ no: 3, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
774
|
+
{ no: 4, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
775
|
+
{ no: 5, name: "onboarding_step", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
776
|
+
{ no: 6, name: "onboarding_complete", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
777
|
+
{ no: 7, name: "company_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
778
|
+
{ no: 8, name: "hierarchy_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
779
|
+
{ no: 9, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
780
|
+
]);
|
|
781
|
+
|
|
782
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptCompanyInvitationResponse {
|
|
783
|
+
return new AcceptCompanyInvitationResponse().fromBinary(bytes, options);
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationResponse {
|
|
787
|
+
return new AcceptCompanyInvitationResponse().fromJson(jsonValue, options);
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationResponse {
|
|
791
|
+
return new AcceptCompanyInvitationResponse().fromJsonString(jsonString, options);
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
static equals(a: AcceptCompanyInvitationResponse | PlainMessage<AcceptCompanyInvitationResponse> | undefined, b: AcceptCompanyInvitationResponse | PlainMessage<AcceptCompanyInvitationResponse> | undefined): boolean {
|
|
795
|
+
return proto3.util.equals(AcceptCompanyInvitationResponse, a, b);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
675
799
|
/**
|
|
676
800
|
* @generated from message api.v1.RemoveCompanyMemberRequest
|
|
677
801
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file auth/v1/service.proto (package auth.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { AddCandidateExperienceRequest, CandidateProfileResponse, ChangePasswordRequest, ChangePasswordResponse, CheckApplicationReadyRequest, CheckApplicationReadyResponse, CheckPermissionRequest, CheckPermissionResponse, CompanyProfileResponse, CompleteCompanyProfileRequest, CompleteCompanyProfileResponse, CompleteOnboardingRequest, CreateCompanyRequest, CreateCompanyResponse, DeleteCandidateExperienceRequest, GetCandidateOnboardingStatusRequest, GetCandidateProfileRequest, GetCompanyOnboardingStatusRequest, GetCompanyProfileRequest, GetCompanyRequest, GetCompanyResponse, GetMyCompanyForUserRequest, GetMyCompanyMembershipRequest, GetMyCompanyMembershipResponse, GetOnboardingStatusRequest, GetOnboardingStatusResponse, GetProfileRequest, GetProfileResponse, InviteCompanyMemberRequest, InviteCompanyMemberResponse, LinkOAuthAccountRequest, LinkOAuthAccountResponse, ListCompanyMembersRequest, ListCompanyMembersResponse, ListSessionsRequest, ListSessionsResponse, LoginRequest, LoginResponse, LogoutRequest, LogoutResponse, OAuthCallbackRequest, OAuthCallbackResponse, OAuthLoginRequest, OAuthLoginResponse, OnboardingStatusResponse, RefreshTokenRequest, RefreshTokenResponse, RegisterRequest, RegisterResponse, RemoveCompanyMemberRequest, RemoveCompanyMemberResponse, RequestPasswordResetRequest, RequestPasswordResetResponse, ResendVerificationEmailRequest, ResendVerificationEmailResponse, ResetPasswordRequest, ResetPasswordResponse, RevokeAllSessionsRequest, RevokeAllSessionsResponse, RevokeSessionRequest, RevokeSessionResponse, SkipOnboardingStepRequest, SkipTeamInviteRequest, SkipTeamInviteResponse, SubmitAccountSetupRequest, SubmitCandidateBasicProfileRequest, SubmitCandidateExperienceRequest, SubmitCandidatePreferencesRequest, SubmitCandidateResumeRequest, SubmitCandidateSkillsRequest, SubmitCompanyBrandingRequest, SubmitCompanyDetailsRequest, SubmitCompanyInfoRequest, SubmitCompanyInviteTeamRequest, UnlinkOAuthAccountRequest, UnlinkOAuthAccountResponse, UpdateCandidateExperienceRequest, UpdateCandidatePreferencesRequest, UpdateCandidateProfileRequest, UpdateCandidateSkillsRequest, UpdateCompanyMemberRoleRequest, UpdateCompanyMemberRoleResponse, UpdateCompanyProfileRequest, UpdateCompanyProtoRequest, UpdateCompanyResponse, UpdateProfileRequest, UpdateProfileResponse, VerifyEmailRequest, VerifyEmailResponse, VerifyTokenRequest, VerifyTokenResponse } from "./service_pb
|
|
6
|
+
import { AcceptCompanyInvitationRequest, AcceptCompanyInvitationResponse, AddCandidateExperienceRequest, CandidateProfileResponse, ChangePasswordRequest, ChangePasswordResponse, CheckApplicationReadyRequest, CheckApplicationReadyResponse, CheckPermissionRequest, CheckPermissionResponse, CompanyProfileResponse, CompleteCompanyProfileRequest, CompleteCompanyProfileResponse, CompleteOnboardingRequest, CreateCompanyRequest, CreateCompanyResponse, DeleteCandidateExperienceRequest, GetCandidateOnboardingStatusRequest, GetCandidateProfileRequest, GetCompanyOnboardingStatusRequest, GetCompanyProfileRequest, GetCompanyRequest, GetCompanyResponse, GetMyCompanyForUserRequest, GetMyCompanyMembershipRequest, GetMyCompanyMembershipResponse, GetOnboardingStatusRequest, GetOnboardingStatusResponse, GetProfileRequest, GetProfileResponse, InviteCompanyMemberRequest, InviteCompanyMemberResponse, LinkOAuthAccountRequest, LinkOAuthAccountResponse, ListCompanyMembersRequest, ListCompanyMembersResponse, ListSessionsRequest, ListSessionsResponse, LoginRequest, LoginResponse, LogoutRequest, LogoutResponse, OAuthCallbackRequest, OAuthCallbackResponse, OAuthLoginRequest, OAuthLoginResponse, OnboardingStatusResponse, RefreshTokenRequest, RefreshTokenResponse, RegisterRequest, RegisterResponse, RemoveCompanyMemberRequest, RemoveCompanyMemberResponse, RequestPasswordResetRequest, RequestPasswordResetResponse, ResendVerificationEmailRequest, ResendVerificationEmailResponse, ResetPasswordRequest, ResetPasswordResponse, RevokeAllSessionsRequest, RevokeAllSessionsResponse, RevokeSessionRequest, RevokeSessionResponse, SendEmailVerificationOtpRequest, SendEmailVerificationOtpResponse, SkipOnboardingStepRequest, SkipTeamInviteRequest, SkipTeamInviteResponse, SubmitAccountSetupRequest, SubmitCandidateBasicProfileRequest, SubmitCandidateExperienceRequest, SubmitCandidatePreferencesRequest, SubmitCandidateResumeRequest, SubmitCandidateSkillsRequest, SubmitCompanyBrandingRequest, SubmitCompanyDetailsRequest, SubmitCompanyInfoRequest, SubmitCompanyInviteTeamRequest, UnlinkOAuthAccountRequest, UnlinkOAuthAccountResponse, UpdateCandidateExperienceRequest, UpdateCandidatePreferencesRequest, UpdateCandidateProfileRequest, UpdateCandidateSkillsRequest, UpdateCompanyMemberRoleRequest, UpdateCompanyMemberRoleResponse, UpdateCompanyProfileRequest, UpdateCompanyProtoRequest, UpdateCompanyResponse, UpdateProfileRequest, UpdateProfileResponse, VerifyEmailRequest, VerifyEmailResponse, VerifyEmailWithOtpRequest, VerifyEmailWithOtpResponse, VerifyTokenRequest, VerifyTokenResponse } from "./service_pb";
|
|
7
7
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -79,6 +79,24 @@ export const AuthService = {
|
|
|
79
79
|
O: ResendVerificationEmailResponse,
|
|
80
80
|
kind: MethodKind.Unary,
|
|
81
81
|
},
|
|
82
|
+
/**
|
|
83
|
+
* @generated from rpc auth.v1.AuthService.SendEmailVerificationOtp
|
|
84
|
+
*/
|
|
85
|
+
sendEmailVerificationOtp: {
|
|
86
|
+
name: "SendEmailVerificationOtp",
|
|
87
|
+
I: SendEmailVerificationOtpRequest,
|
|
88
|
+
O: SendEmailVerificationOtpResponse,
|
|
89
|
+
kind: MethodKind.Unary,
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* @generated from rpc auth.v1.AuthService.VerifyEmailWithOtp
|
|
93
|
+
*/
|
|
94
|
+
verifyEmailWithOtp: {
|
|
95
|
+
name: "VerifyEmailWithOtp",
|
|
96
|
+
I: VerifyEmailWithOtpRequest,
|
|
97
|
+
O: VerifyEmailWithOtpResponse,
|
|
98
|
+
kind: MethodKind.Unary,
|
|
99
|
+
},
|
|
82
100
|
/**
|
|
83
101
|
* Password management
|
|
84
102
|
*
|
|
@@ -275,6 +293,15 @@ export const AuthService = {
|
|
|
275
293
|
O: InviteCompanyMemberResponse,
|
|
276
294
|
kind: MethodKind.Unary,
|
|
277
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* @generated from rpc auth.v1.AuthService.AcceptCompanyInvitation
|
|
298
|
+
*/
|
|
299
|
+
acceptCompanyInvitation: {
|
|
300
|
+
name: "AcceptCompanyInvitation",
|
|
301
|
+
I: AcceptCompanyInvitationRequest,
|
|
302
|
+
O: AcceptCompanyInvitationResponse,
|
|
303
|
+
kind: MethodKind.Unary,
|
|
304
|
+
},
|
|
278
305
|
/**
|
|
279
306
|
* @generated from rpc auth.v1.AuthService.RemoveCompanyMember
|
|
280
307
|
*/
|