theragist-ts 1.0.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/dist/auth/message.d.ts +242 -0
- package/dist/auth/message.js +2980 -0
- package/dist/auth/service.d.ts +239 -0
- package/dist/auth/service.js +963 -0
- package/dist/booking/message.d.ts +109 -0
- package/dist/booking/message.js +1263 -0
- package/dist/booking/service.d.ts +69 -0
- package/dist/booking/service.js +230 -0
- package/dist/common.d.ts +81 -0
- package/dist/common.js +641 -0
- package/dist/community/message.d.ts +67 -0
- package/dist/community/message.js +646 -0
- package/dist/community/service.d.ts +57 -0
- package/dist/community/service.js +213 -0
- package/dist/google/api/annotations.d.ts +1 -0
- package/dist/google/api/annotations.js +10 -0
- package/dist/google/api/http.d.ts +371 -0
- package/dist/google/api/http.js +360 -0
- package/dist/google/protobuf/descriptor.d.ts +884 -0
- package/dist/google/protobuf/descriptor.js +3595 -0
- package/dist/google/protobuf/struct.d.ts +107 -0
- package/dist/google/protobuf/struct.js +461 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +192 -0
- package/dist/lookup/message.d.ts +128 -0
- package/dist/lookup/message.js +1498 -0
- package/dist/lookup/service.d.ts +93 -0
- package/dist/lookup/service.js +334 -0
- package/dist/therapist/message.d.ts +67 -0
- package/dist/therapist/message.js +679 -0
- package/dist/therapist/service.d.ts +47 -0
- package/dist/therapist/service.js +159 -0
- package/dist/user/message.d.ts +114 -0
- package/dist/user/message.js +1342 -0
- package/dist/user/service.d.ts +172 -0
- package/dist/user/service.js +1041 -0
- package/package.json +43 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Session, User } from "../user/message";
|
|
3
|
+
export declare const protobufPackage = "pb";
|
|
4
|
+
export interface SignUpRequest {
|
|
5
|
+
fullName: string;
|
|
6
|
+
email: string;
|
|
7
|
+
password: string;
|
|
8
|
+
}
|
|
9
|
+
export interface SignUpResponse {
|
|
10
|
+
user: User | undefined;
|
|
11
|
+
session: Session | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface LoginRequest {
|
|
14
|
+
email: string;
|
|
15
|
+
password: string;
|
|
16
|
+
}
|
|
17
|
+
export interface LoginResponse {
|
|
18
|
+
user: User | undefined;
|
|
19
|
+
session: Session | undefined;
|
|
20
|
+
}
|
|
21
|
+
export interface RefreshTokenRequest {
|
|
22
|
+
refreshToken: string;
|
|
23
|
+
}
|
|
24
|
+
export interface RefreshTokenResponse {
|
|
25
|
+
accessToken: string;
|
|
26
|
+
refreshToken: string;
|
|
27
|
+
}
|
|
28
|
+
export interface LogoutRequest {
|
|
29
|
+
refreshToken: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ForgotPasswordRequest {
|
|
32
|
+
email: string;
|
|
33
|
+
}
|
|
34
|
+
export interface ResetPasswordRequest {
|
|
35
|
+
resetToken: string;
|
|
36
|
+
newPassword: string;
|
|
37
|
+
}
|
|
38
|
+
export interface VerifyEmailRequest {
|
|
39
|
+
email: string;
|
|
40
|
+
secretCode: string;
|
|
41
|
+
}
|
|
42
|
+
export interface VerifyEmailResponse {
|
|
43
|
+
userId: string;
|
|
44
|
+
isEmailVerified: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface ResendEmailVerificationRequest {
|
|
47
|
+
email: string;
|
|
48
|
+
}
|
|
49
|
+
export interface ResendEmailVerificationResponse {
|
|
50
|
+
success: boolean;
|
|
51
|
+
message: string;
|
|
52
|
+
}
|
|
53
|
+
export interface SocialLoginRequest {
|
|
54
|
+
/** "google", "facebook", "apple" */
|
|
55
|
+
provider: string;
|
|
56
|
+
idToken: string;
|
|
57
|
+
/** "individual" or "organization" (for new signups) */
|
|
58
|
+
accountType: string;
|
|
59
|
+
deviceInfo: DeviceInfo | undefined;
|
|
60
|
+
}
|
|
61
|
+
export interface DeviceInfo {
|
|
62
|
+
/** "ios", "android", "web" */
|
|
63
|
+
platform: string;
|
|
64
|
+
appVersion: string;
|
|
65
|
+
}
|
|
66
|
+
export interface SocialLoginResponse {
|
|
67
|
+
user: User | undefined;
|
|
68
|
+
session: Session | undefined;
|
|
69
|
+
authProvider: string;
|
|
70
|
+
}
|
|
71
|
+
export interface SocialLinkRequest {
|
|
72
|
+
provider: string;
|
|
73
|
+
idToken: string;
|
|
74
|
+
}
|
|
75
|
+
export interface SocialLinkResponse {
|
|
76
|
+
userId: string;
|
|
77
|
+
linkedProviders: string[];
|
|
78
|
+
}
|
|
79
|
+
export interface SocialUnlinkRequest {
|
|
80
|
+
provider: string;
|
|
81
|
+
}
|
|
82
|
+
export interface SocialUnlinkResponse {
|
|
83
|
+
userId: string;
|
|
84
|
+
linkedProviders: string[];
|
|
85
|
+
}
|
|
86
|
+
export interface GetOnboardingRequest {
|
|
87
|
+
}
|
|
88
|
+
export interface GetOnboardingResponse {
|
|
89
|
+
userId: string;
|
|
90
|
+
role: string;
|
|
91
|
+
onboardingStatus: string;
|
|
92
|
+
currentStep: number;
|
|
93
|
+
totalSteps: number;
|
|
94
|
+
completedSteps: string[];
|
|
95
|
+
pendingSteps: string[];
|
|
96
|
+
data: {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
} | undefined;
|
|
99
|
+
}
|
|
100
|
+
export interface UpdateOnboardingStepRequest {
|
|
101
|
+
stepKey: string;
|
|
102
|
+
payload: {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
} | undefined;
|
|
105
|
+
}
|
|
106
|
+
export interface UpdateOnboardingStepResponse {
|
|
107
|
+
userId: string;
|
|
108
|
+
onboardingStatus: string;
|
|
109
|
+
currentStep: number;
|
|
110
|
+
completedSteps: string[];
|
|
111
|
+
message: string;
|
|
112
|
+
}
|
|
113
|
+
export interface CompleteOnboardingRequest {
|
|
114
|
+
}
|
|
115
|
+
export interface CompleteOnboardingResponse {
|
|
116
|
+
userId: string;
|
|
117
|
+
onboardingStatus: string;
|
|
118
|
+
message: string;
|
|
119
|
+
welcomeCopy: string;
|
|
120
|
+
}
|
|
121
|
+
/** Therapist onboarding messages */
|
|
122
|
+
export interface GetTherapistOnboardingRequest {
|
|
123
|
+
}
|
|
124
|
+
export interface GetTherapistOnboardingResponse {
|
|
125
|
+
therapistId: string;
|
|
126
|
+
onboardingStatus: string;
|
|
127
|
+
currentStep: number;
|
|
128
|
+
totalSteps: number;
|
|
129
|
+
completedSteps: string[];
|
|
130
|
+
pendingSteps: string[];
|
|
131
|
+
kycStatus: string;
|
|
132
|
+
data: {
|
|
133
|
+
[key: string]: any;
|
|
134
|
+
} | undefined;
|
|
135
|
+
}
|
|
136
|
+
export interface UpdateTherapistOnboardingStepRequest {
|
|
137
|
+
stepKey: string;
|
|
138
|
+
payload: {
|
|
139
|
+
[key: string]: any;
|
|
140
|
+
} | undefined;
|
|
141
|
+
}
|
|
142
|
+
export interface UpdateTherapistOnboardingStepResponse {
|
|
143
|
+
therapistId: string;
|
|
144
|
+
onboardingStatus: string;
|
|
145
|
+
currentStep: number;
|
|
146
|
+
completedSteps: string[];
|
|
147
|
+
message: string;
|
|
148
|
+
}
|
|
149
|
+
export interface GetKycStatusRequest {
|
|
150
|
+
}
|
|
151
|
+
export interface KycDocument {
|
|
152
|
+
documentType: string;
|
|
153
|
+
label: string;
|
|
154
|
+
required: boolean;
|
|
155
|
+
uploadedAt: string;
|
|
156
|
+
status: string;
|
|
157
|
+
fileId: string;
|
|
158
|
+
uploadGuidelines: string;
|
|
159
|
+
rejectionReason: string;
|
|
160
|
+
}
|
|
161
|
+
export interface GetKycStatusResponse {
|
|
162
|
+
kycStatus: string;
|
|
163
|
+
documents: KycDocument[];
|
|
164
|
+
verificationProgress: string;
|
|
165
|
+
}
|
|
166
|
+
export interface UploadKycDocumentRequest {
|
|
167
|
+
documentType: string;
|
|
168
|
+
licenseNumber: string;
|
|
169
|
+
fileData: Uint8Array;
|
|
170
|
+
fileName: string;
|
|
171
|
+
contentType: string;
|
|
172
|
+
}
|
|
173
|
+
export interface UploadKycDocumentResponse {
|
|
174
|
+
documentId: string;
|
|
175
|
+
documentType: string;
|
|
176
|
+
status: string;
|
|
177
|
+
uploadedAt: string;
|
|
178
|
+
message: string;
|
|
179
|
+
}
|
|
180
|
+
export interface SubmitKycRequest {
|
|
181
|
+
}
|
|
182
|
+
export interface SubmitKycResponse {
|
|
183
|
+
kycStatus: string;
|
|
184
|
+
message: string;
|
|
185
|
+
submittedAt: string;
|
|
186
|
+
}
|
|
187
|
+
export declare const SignUpRequest: MessageFns<SignUpRequest>;
|
|
188
|
+
export declare const SignUpResponse: MessageFns<SignUpResponse>;
|
|
189
|
+
export declare const LoginRequest: MessageFns<LoginRequest>;
|
|
190
|
+
export declare const LoginResponse: MessageFns<LoginResponse>;
|
|
191
|
+
export declare const RefreshTokenRequest: MessageFns<RefreshTokenRequest>;
|
|
192
|
+
export declare const RefreshTokenResponse: MessageFns<RefreshTokenResponse>;
|
|
193
|
+
export declare const LogoutRequest: MessageFns<LogoutRequest>;
|
|
194
|
+
export declare const ForgotPasswordRequest: MessageFns<ForgotPasswordRequest>;
|
|
195
|
+
export declare const ResetPasswordRequest: MessageFns<ResetPasswordRequest>;
|
|
196
|
+
export declare const VerifyEmailRequest: MessageFns<VerifyEmailRequest>;
|
|
197
|
+
export declare const VerifyEmailResponse: MessageFns<VerifyEmailResponse>;
|
|
198
|
+
export declare const ResendEmailVerificationRequest: MessageFns<ResendEmailVerificationRequest>;
|
|
199
|
+
export declare const ResendEmailVerificationResponse: MessageFns<ResendEmailVerificationResponse>;
|
|
200
|
+
export declare const SocialLoginRequest: MessageFns<SocialLoginRequest>;
|
|
201
|
+
export declare const DeviceInfo: MessageFns<DeviceInfo>;
|
|
202
|
+
export declare const SocialLoginResponse: MessageFns<SocialLoginResponse>;
|
|
203
|
+
export declare const SocialLinkRequest: MessageFns<SocialLinkRequest>;
|
|
204
|
+
export declare const SocialLinkResponse: MessageFns<SocialLinkResponse>;
|
|
205
|
+
export declare const SocialUnlinkRequest: MessageFns<SocialUnlinkRequest>;
|
|
206
|
+
export declare const SocialUnlinkResponse: MessageFns<SocialUnlinkResponse>;
|
|
207
|
+
export declare const GetOnboardingRequest: MessageFns<GetOnboardingRequest>;
|
|
208
|
+
export declare const GetOnboardingResponse: MessageFns<GetOnboardingResponse>;
|
|
209
|
+
export declare const UpdateOnboardingStepRequest: MessageFns<UpdateOnboardingStepRequest>;
|
|
210
|
+
export declare const UpdateOnboardingStepResponse: MessageFns<UpdateOnboardingStepResponse>;
|
|
211
|
+
export declare const CompleteOnboardingRequest: MessageFns<CompleteOnboardingRequest>;
|
|
212
|
+
export declare const CompleteOnboardingResponse: MessageFns<CompleteOnboardingResponse>;
|
|
213
|
+
export declare const GetTherapistOnboardingRequest: MessageFns<GetTherapistOnboardingRequest>;
|
|
214
|
+
export declare const GetTherapistOnboardingResponse: MessageFns<GetTherapistOnboardingResponse>;
|
|
215
|
+
export declare const UpdateTherapistOnboardingStepRequest: MessageFns<UpdateTherapistOnboardingStepRequest>;
|
|
216
|
+
export declare const UpdateTherapistOnboardingStepResponse: MessageFns<UpdateTherapistOnboardingStepResponse>;
|
|
217
|
+
export declare const GetKycStatusRequest: MessageFns<GetKycStatusRequest>;
|
|
218
|
+
export declare const KycDocument: MessageFns<KycDocument>;
|
|
219
|
+
export declare const GetKycStatusResponse: MessageFns<GetKycStatusResponse>;
|
|
220
|
+
export declare const UploadKycDocumentRequest: MessageFns<UploadKycDocumentRequest>;
|
|
221
|
+
export declare const UploadKycDocumentResponse: MessageFns<UploadKycDocumentResponse>;
|
|
222
|
+
export declare const SubmitKycRequest: MessageFns<SubmitKycRequest>;
|
|
223
|
+
export declare const SubmitKycResponse: MessageFns<SubmitKycResponse>;
|
|
224
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
225
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
226
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
227
|
+
} : Partial<T>;
|
|
228
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
229
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
230
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
231
|
+
} & {
|
|
232
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
233
|
+
};
|
|
234
|
+
export interface MessageFns<T> {
|
|
235
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
236
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
237
|
+
fromJSON(object: any): T;
|
|
238
|
+
toJSON(message: T): unknown;
|
|
239
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
240
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
241
|
+
}
|
|
242
|
+
export {};
|