@in-human-resources/backend-proto 0.1.2 → 0.1.4

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/buf.gen.yaml CHANGED
@@ -11,7 +11,10 @@ plugins:
11
11
  out: gen/ts
12
12
  opt:
13
13
  - target=ts
14
- - import_extension=.js
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: target=ts
18
+ opt:
19
+ - target=ts
20
+ - import_extension=none
@@ -1,10 +1,10 @@
1
- syntax = "proto3";
2
-
3
- package common.v1;
4
-
5
- option go_package = "github.com/InHuman-Resources/Backend/Go/proto/gen/common/v1;commonv1";
6
-
7
- message RequestMeta {
8
- string idempotency_key = 1;
9
- map<string, string> tags = 2;
10
- }
1
+ syntax = "proto3";
2
+
3
+ package common.v1;
4
+
5
+ option go_package = "github.com/InHuman-Resources/Backend/Go/proto/gen/common/v1;commonv1";
6
+
7
+ message RequestMeta {
8
+ string idempotency_key = 1;
9
+ map<string, string> tags = 2;
10
+ }
@@ -1,15 +1,21 @@
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, SendEmailVerificationOtpRequest, UnlinkOAuthAccountRequest, UpdateProfileRequest, VerifyEmailRequest, VerifyEmailWithOtpRequest } from "./auth_pb.js";
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.js";
8
+ import { Empty } from "./common_pb";
9
9
 
10
10
  /**
11
- * AuthService is the client-facing authentication service.
12
- * Mobile and web clients call these RPCs directly.
11
+ * AuthService public identity and session edge for product clients.
12
+ *
13
+ * Business context: registration and login (credentials + OAuth), email verification,
14
+ * password lifecycle, session listing/revocation, and basic profile reads/updates on the
15
+ * gateway. Permission and role truth beyond the token remains in auth-service; hiring
16
+ * and other domains enforce their own authorization.
17
+ *
18
+ * Clients call only through the API gateway with Bearer tokens on protected RPCs.
13
19
  *
14
20
  * @generated from service api.v1.AuthService
15
21
  */
@@ -1,11 +1,11 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
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.js";
8
+ import { ProfileCompletion, RequestContext, SessionInfo } from "./common_pb";
9
9
 
10
10
  /**
11
11
  * @generated from message api.v1.RegisterRequest
@@ -1,14 +1,19 @@
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.js";
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.js";
8
+ import { CompleteOnboardingRequest, OnboardingStatusResponse, SkipOnboardingStepRequest } from "./common_pb";
9
9
 
10
10
  /**
11
- * CandidateService is the client-facing candidate profile service.
11
+ * CandidateService candidate profile, skills, experience, and onboarding.
12
+ *
13
+ * Business context: profile CRUD, application-readiness hints, and step-based candidate
14
+ * onboarding. Canonical hiring applications and stages live under HiringService, not here.
15
+ * Next upgrades: richer profile or assessment-prep fields should be additive; hiring
16
+ * artifacts (applications) stay on HiringService.
12
17
  *
13
18
  * @generated from service api.v1.CandidateService
14
19
  */
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
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=.js"
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,14 +1,19 @@
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 { AcceptCompanyInvitationRequest, AcceptCompanyInvitationResponse, CompanyMemberInfo, CompanyProfileResponse, GetCompanyOnboardingStatusRequest, GetCompanyRequest, GetCompanyResponse, GetMyCompanyMembershipRequest, GetMyCompanyRequest, InviteCompanyMemberRequest, ListCompanyMembersRequest, ListCompanyMembersResponse, RemoveCompanyMemberRequest, SubmitAccountSetupRequest, SubmitCompanyBrandingRequest, SubmitCompanyDetailsRequest, SubmitCompanyInfoRequest, SubmitCompanyInviteTeamRequest, UpdateCompanyMemberRoleRequest, UpdateCompanyProfileRequest } from "./company_pb.js";
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.js";
8
+ import { CompleteOnboardingRequest, Empty, OnboardingStatusResponse, SkipOnboardingStepRequest } from "./common_pb";
9
9
 
10
10
  /**
11
- * CompanyService is the client-facing company management service.
11
+ * CompanyService company profile, membership, and onboarding for company users.
12
+ *
13
+ * Business context: company record updates, member invites and roles, and step-based
14
+ * company onboarding aligned with auth-owned onboarding state. Not hiring pipeline data.
15
+ * Next upgrades: new onboarding steps or compliance fields should be added as optional
16
+ * fields or new RPCs; avoid breaking existing mobile/web clients without a version bump plan.
12
17
  *
13
18
  * @generated from service api.v1.CompanyService
14
19
  */
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
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
@@ -0,0 +1,235 @@
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts,import_extension=none"
2
+ // @generated from file api/v1/hiring.proto (package api.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+
6
+ import { ApplyToJobRequest, ApplyToJobResponse, CloseJobRequest, CloseJobResponse, CreateJobRequest, CreateJobResponse, GetApplicationRequest, GetApplicationResponse, GetJobRequest, GetJobResponse, LinkAssessmentRequest, LinkAssessmentResponse, ListApplicationEventsRequest, ListApplicationEventsResponse, ListApplicationsForJobRequest, ListApplicationsForJobResponse, ListApplicationsRequest, ListApplicationsResponse, ListJobsRequest, ListJobsResponse, ListMyApplicationsRequest, ListMyApplicationsResponse, PublishJobRequest, PublishJobResponse, RecordInterviewRequest, RecordInterviewResponse, RecordOfferRequest, RecordOfferResponse, RecordRecruiterDecisionRequest, RecordRecruiterDecisionResponse, RecordScreeningResultRequest, RecordScreeningResultResponse, SearchJobsRequest, SearchJobsResponse, TransitionApplicationStageRequest, TransitionApplicationStageResponse, UpdateJobRequest, UpdateJobResponse } from "./hiring_pb";
7
+ import { MethodKind } from "@bufbuild/protobuf";
8
+
9
+ /**
10
+ * HiringService — public hiring surface for the product.
11
+ *
12
+ * Business context: companies create and publish jobs; candidates discover open
13
+ * roles and apply; recruiters manage the pipeline (stages, decisions, screening
14
+ * outcomes, interviews, assessment links, offers). Authoritative state lives in the
15
+ * hiring service; the gateway authenticates and forwards; authorization is enforced
16
+ * downstream (company tenant vs candidate).
17
+ *
18
+ * @generated from service api.v1.HiringService
19
+ */
20
+ export const HiringService = {
21
+ typeName: "api.v1.HiringService",
22
+ methods: {
23
+ /**
24
+ * Recruiter: create an internal draft job for the authenticated company.
25
+ *
26
+ * @generated from rpc api.v1.HiringService.CreateJob
27
+ */
28
+ createJob: {
29
+ name: "CreateJob",
30
+ I: CreateJobRequest,
31
+ O: CreateJobResponse,
32
+ kind: MethodKind.Unary,
33
+ },
34
+ /**
35
+ * Recruiter: make a draft job visible to candidates (requires public_slug set server-side).
36
+ *
37
+ * @generated from rpc api.v1.HiringService.PublishJob
38
+ */
39
+ publishJob: {
40
+ name: "PublishJob",
41
+ I: PublishJobRequest,
42
+ O: PublishJobResponse,
43
+ kind: MethodKind.Unary,
44
+ },
45
+ /**
46
+ * Candidate: submit an application to a published job (idempotent per candidate+job server-side).
47
+ *
48
+ * @generated from rpc api.v1.HiringService.ApplyToJob
49
+ */
50
+ applyToJob: {
51
+ name: "ApplyToJob",
52
+ I: ApplyToJobRequest,
53
+ O: ApplyToJobResponse,
54
+ kind: MethodKind.Unary,
55
+ },
56
+ /**
57
+ * Read job details. Published jobs are visible broadly; drafts only to owning company.
58
+ *
59
+ * @generated from rpc api.v1.HiringService.GetJob
60
+ */
61
+ getJob: {
62
+ name: "GetJob",
63
+ I: GetJobRequest,
64
+ O: GetJobResponse,
65
+ kind: MethodKind.Unary,
66
+ },
67
+ /**
68
+ * Read application — candidate sees own; company sees applications for their jobs.
69
+ *
70
+ * @generated from rpc api.v1.HiringService.GetApplication
71
+ */
72
+ getApplication: {
73
+ name: "GetApplication",
74
+ I: GetApplicationRequest,
75
+ O: GetApplicationResponse,
76
+ kind: MethodKind.Unary,
77
+ },
78
+ /**
79
+ * Recruiter: paginated jobs for the current company (optional status filter).
80
+ *
81
+ * @generated from rpc api.v1.HiringService.ListJobs
82
+ */
83
+ listJobs: {
84
+ name: "ListJobs",
85
+ I: ListJobsRequest,
86
+ O: ListJobsResponse,
87
+ kind: MethodKind.Unary,
88
+ },
89
+ /**
90
+ * Published job search (e.g. job board). Authenticated; filter by query string.
91
+ *
92
+ * @generated from rpc api.v1.HiringService.SearchJobs
93
+ */
94
+ searchJobs: {
95
+ name: "SearchJobs",
96
+ I: SearchJobsRequest,
97
+ O: SearchJobsResponse,
98
+ kind: MethodKind.Unary,
99
+ },
100
+ /**
101
+ * Recruiter: update editable fields on a company-owned job.
102
+ *
103
+ * @generated from rpc api.v1.HiringService.UpdateJob
104
+ */
105
+ updateJob: {
106
+ name: "UpdateJob",
107
+ I: UpdateJobRequest,
108
+ O: UpdateJobResponse,
109
+ kind: MethodKind.Unary,
110
+ },
111
+ /**
112
+ * Recruiter: stop accepting new applications for a job.
113
+ *
114
+ * @generated from rpc api.v1.HiringService.CloseJob
115
+ */
116
+ closeJob: {
117
+ name: "CloseJob",
118
+ I: CloseJobRequest,
119
+ O: CloseJobResponse,
120
+ kind: MethodKind.Unary,
121
+ },
122
+ /**
123
+ * Candidate: all applications for the token user (pagination).
124
+ *
125
+ * @generated from rpc api.v1.HiringService.ListMyApplications
126
+ */
127
+ listMyApplications: {
128
+ name: "ListMyApplications",
129
+ I: ListMyApplicationsRequest,
130
+ O: ListMyApplicationsResponse,
131
+ kind: MethodKind.Unary,
132
+ },
133
+ /**
134
+ * Recruiter: company-wide application inbox across jobs (filters optional).
135
+ *
136
+ * @generated from rpc api.v1.HiringService.ListApplications
137
+ */
138
+ listApplications: {
139
+ name: "ListApplications",
140
+ I: ListApplicationsRequest,
141
+ O: ListApplicationsResponse,
142
+ kind: MethodKind.Unary,
143
+ },
144
+ /**
145
+ * Recruiter: applications for one job (must own the job).
146
+ *
147
+ * @generated from rpc api.v1.HiringService.ListApplicationsForJob
148
+ */
149
+ listApplicationsForJob: {
150
+ name: "ListApplicationsForJob",
151
+ I: ListApplicationsForJobRequest,
152
+ O: ListApplicationsForJobResponse,
153
+ kind: MethodKind.Unary,
154
+ },
155
+ /**
156
+ * Recruiter: move pipeline stage following the server’s allowed transition graph; append-only audit.
157
+ * Future: gateway may also trigger workflow signals; hiring remains source of truth for stage.
158
+ *
159
+ * @generated from rpc api.v1.HiringService.TransitionApplicationStage
160
+ */
161
+ transitionApplicationStage: {
162
+ name: "TransitionApplicationStage",
163
+ I: TransitionApplicationStageRequest,
164
+ O: TransitionApplicationStageResponse,
165
+ kind: MethodKind.Unary,
166
+ },
167
+ /**
168
+ * Recruiter: record a structured human decision (approve/reject/etc.) with reasoning.
169
+ *
170
+ * @generated from rpc api.v1.HiringService.RecordRecruiterDecision
171
+ */
172
+ recordRecruiterDecision: {
173
+ name: "RecordRecruiterDecision",
174
+ I: RecordRecruiterDecisionRequest,
175
+ O: RecordRecruiterDecisionResponse,
176
+ kind: MethodKind.Unary,
177
+ },
178
+ /**
179
+ * Recruiter: store hiring-owned screening summary (scores/explanation/skills); not the AI model.
180
+ *
181
+ * @generated from rpc api.v1.HiringService.RecordScreeningResult
182
+ */
183
+ recordScreeningResult: {
184
+ name: "RecordScreeningResult",
185
+ I: RecordScreeningResultRequest,
186
+ O: RecordScreeningResultResponse,
187
+ kind: MethodKind.Unary,
188
+ },
189
+ /**
190
+ * Recruiter: attach interview facts (times, notes, transcript ref, structured scores JSON).
191
+ *
192
+ * @generated from rpc api.v1.HiringService.RecordInterview
193
+ */
194
+ recordInterview: {
195
+ name: "RecordInterview",
196
+ I: RecordInterviewRequest,
197
+ O: RecordInterviewResponse,
198
+ kind: MethodKind.Unary,
199
+ },
200
+ /**
201
+ * Recruiter: link an external assessment id and status/score summary; assessment content lives elsewhere.
202
+ *
203
+ * @generated from rpc api.v1.HiringService.LinkAssessment
204
+ */
205
+ linkAssessment: {
206
+ name: "LinkAssessment",
207
+ I: LinkAssessmentRequest,
208
+ O: LinkAssessmentResponse,
209
+ kind: MethodKind.Unary,
210
+ },
211
+ /**
212
+ * Recruiter: create/update offer terms and status for an application.
213
+ *
214
+ * @generated from rpc api.v1.HiringService.RecordOffer
215
+ */
216
+ recordOffer: {
217
+ name: "RecordOffer",
218
+ I: RecordOfferRequest,
219
+ O: RecordOfferResponse,
220
+ kind: MethodKind.Unary,
221
+ },
222
+ /**
223
+ * Audit/history timeline for one application (candidate or owning company).
224
+ *
225
+ * @generated from rpc api.v1.HiringService.ListApplicationEvents
226
+ */
227
+ listApplicationEvents: {
228
+ name: "ListApplicationEvents",
229
+ I: ListApplicationEventsRequest,
230
+ O: ListApplicationEventsResponse,
231
+ kind: MethodKind.Unary,
232
+ },
233
+ }
234
+ } as const;
235
+