@flashbacktech/flashbackclient 0.2.29 → 0.2.30
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/api/client.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { UpdateUserRoleResponse, UserRoleResponse } from './types/platform/roles
|
|
|
14
14
|
import { UserProfileResponse } from './types/platform/roles';
|
|
15
15
|
import { CreateOrgUserRequest, CreateOrgUserResponse, DeleteOrgUserResponse, GetOrganizationResponse, ListOrgUsersResponse, OrgUserResponse, UpdateOrganizationBody, UpdateOrganizationResponse, UpdateOrgUserRequest, UpdateOrgUserResponse } from './types/platform/organization';
|
|
16
16
|
import { SystemEventQueryRequest, SystemEventQueryResponse } from './types/platform/systemevent';
|
|
17
|
-
import { UserUpdateRequest, UserUpdateResponse } from './types/platform/user';
|
|
17
|
+
import { PreVerifyEmailResponse, UserUpdateRequest, UserUpdateResponse } from './types/platform/user';
|
|
18
18
|
import { CreateRepoAiApiKeyRequest, CreateRepoAiApiKeyResponse, DeleteRepoAiApiKeyResponse, GetRepoAiApiKeysResponse, UpdateRepoAiApiKeyRequest, UpdateRepoAiApiKeyResponse } from './types/ai/aiapikey';
|
|
19
19
|
import { AiLlmStatsResponse, CreateAiLlmRequest, CreateAiLlmResponse, DeleteAiLlmResponse, GetAiLlmsResponse, UpdateAiLlmRequest, UpdateAiLlmResponse, ValidateAiLlmResponse } from './types/ai/aillm';
|
|
20
20
|
import { CreatePolicyRequest, GetPoliciesQuery, GetPolicyViolationsQuery, GetPolicyViolationsResponse, PolicyDTO, UpdatePolicyRequest, PolicyValidationRequest, PolicyValidationResponse, PolicyRecommendationRequest, PolicyRecommendationResponse } from './types/ai/policy';
|
|
@@ -90,6 +90,7 @@ export declare class ApiClient implements IApiClient {
|
|
|
90
90
|
updateRepoKey: (repoId: string, keyId: string, data: UpdateRepoKeyRequest) => Promise<UpdateRepoKeyResponse>;
|
|
91
91
|
deleteRepoKey: (repoId: string, keyId: string) => Promise<ActionResponse>;
|
|
92
92
|
userRegister: (data: RegisterBody) => Promise<RegisterResponse>;
|
|
93
|
+
preVerifyEmail: (token: string) => Promise<PreVerifyEmailResponse>;
|
|
93
94
|
validateRegistration: (token: string) => Promise<RegisterResponse>;
|
|
94
95
|
resendVerificationEmail: (verificationTokenId: string) => Promise<ResendVerificationEmailResponse>;
|
|
95
96
|
userLogin: (data: LoginBody) => Promise<LoginResponse>;
|
package/dist/api/client.js
CHANGED
|
@@ -210,6 +210,9 @@ class ApiClient {
|
|
|
210
210
|
this.userRegister = async (data) => {
|
|
211
211
|
return this.makeRequest('user/register', 'POST', data);
|
|
212
212
|
};
|
|
213
|
+
this.preVerifyEmail = async (token) => {
|
|
214
|
+
return this.makeRequest('user/pre-verify-email', 'POST', { token });
|
|
215
|
+
};
|
|
213
216
|
this.validateRegistration = async (token) => {
|
|
214
217
|
return this.makeRequest('/user/verify-email', 'POST', { token });
|
|
215
218
|
};
|