@flashbacktech/flashbackclient 0.2.28 → 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateRepoRequest, CreateRepoResponse, CreateRepoKeyRequest, CreateRepoKeyResponse, GetReposResponse, GetRepoKeysResponse, ActionResponse, UpdateRepoRequest, UpdateRepoResponse, UpdateRepoKeyRequest, UpdateRepoKeyResponse, ValidateRepoUnitsRequest, ValidateRepoUnitsResponse, CreateBucketRequest, CreateBucketResponse, UpdateBucketRequest, UpdateBucketResponse, ValidateBucketRequest, ValidateBucketResponse, StorageBucket, GetBucketsResponse, StorageBucketStatusResponse, GetBucketNodeStatsRequest, GetBucketNodeStatsResponse, CreateRepoWithBucketsRequest, UpdateRepoWithBucketsRequest, ValidateRepoBucketsRequest, ValidateRepoBucketsResponse } from './types/storage/storage';
|
|
2
2
|
import { IApiClient, ProviderType } from './interfaces';
|
|
3
|
-
import { ActivateUserRequest, ActivateUserResponse, DeactivateResponse, DemoRequestBody, DemoRequestResponse, LoginBody, LoginResponse, LogoutResponse, OAuth2ResponseDTO, RefreshTokenErrorResponse, RefreshTokenResponse, RegisterBody, RegisterResponse, ResetPasswordBody, Web3RegisterBody } from './types/platform/auth';
|
|
3
|
+
import { ActivateUserRequest, ActivateUserResponse, DeactivateResponse, DemoRequestBody, DemoRequestResponse, LoginBody, LoginResponse, LogoutResponse, OAuth2ResponseDTO, RefreshTokenErrorResponse, RefreshTokenResponse, RegisterBody, RegisterResponse, ResendVerificationEmailResponse, ResetPasswordBody, Web3RegisterBody } from './types/platform/auth';
|
|
4
4
|
import { StatsQueryParams, StatsResponse, NodeStatsMinuteResponse, NodeStatsDailyResponse, NodeStatsQueryParams, UnitStatsResponse, RepoStatsResponse, NodeStatsDailyQueryParams, BucketStatsResponse, StatsQueryWithBucketParams, NodeStatsQueryWithBucketParams, NodeStatsDailyQueryWithBucketParams } from './types/storage/stats';
|
|
5
5
|
import { NodeInfoResponse, RegisterRequest } from './types/storage/bridge';
|
|
6
6
|
import { GetOrganizationKeysResponse } from './types/storage/noderegistration';
|
|
@@ -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,7 +90,9 @@ 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>;
|
|
95
|
+
resendVerificationEmail: (verificationTokenId: string) => Promise<ResendVerificationEmailResponse>;
|
|
94
96
|
userLogin: (data: LoginBody) => Promise<LoginResponse>;
|
|
95
97
|
userRefresh: (refreshToken: string) => Promise<RefreshTokenResponse | RefreshTokenErrorResponse>;
|
|
96
98
|
userLogout: (refreshToken: string) => Promise<LogoutResponse>;
|
package/dist/api/client.js
CHANGED
|
@@ -210,9 +210,15 @@ 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
|
};
|
|
219
|
+
this.resendVerificationEmail = async (verificationTokenId) => {
|
|
220
|
+
return this.makeRequest(`user/resend-verification/${verificationTokenId}`, 'POST', null);
|
|
221
|
+
};
|
|
216
222
|
this.userLogin = async (data) => {
|
|
217
223
|
return this.makeRequest('user/login', 'POST', data);
|
|
218
224
|
};
|
|
@@ -83,6 +83,7 @@ export interface RegisterResponse {
|
|
|
83
83
|
};
|
|
84
84
|
error_code?: string;
|
|
85
85
|
message?: string;
|
|
86
|
+
verificationTokenId?: string;
|
|
86
87
|
}
|
|
87
88
|
export interface LoginResponse extends RegisterResponse {
|
|
88
89
|
}
|
|
@@ -96,6 +97,11 @@ export interface ActivateResponse {
|
|
|
96
97
|
error_code?: string;
|
|
97
98
|
message?: string;
|
|
98
99
|
}
|
|
100
|
+
export interface ResendVerificationEmailResponse {
|
|
101
|
+
success: boolean;
|
|
102
|
+
error_code?: string;
|
|
103
|
+
message?: string;
|
|
104
|
+
}
|
|
99
105
|
export interface DeactivateResponse {
|
|
100
106
|
success: boolean;
|
|
101
107
|
error_code?: string;
|