@flashbacktech/flashbackclient 0.2.29 → 0.2.31

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.
@@ -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>;
@@ -203,6 +204,7 @@ export declare class ApiClient implements IApiClient {
203
204
  removeUserFromWorkspace: (workspaceId: string, userId: string) => Promise<WorkspaceTypes.RemoveUserFromWorkspaceResponse>;
204
205
  getOrganizationUsers: () => Promise<ListOrgUsersResponse>;
205
206
  createOrganizationUser: (request: CreateOrgUserRequest) => Promise<CreateOrgUserResponse>;
207
+ resendTeamUserInvitation: (userId: string) => Promise<ActionResponse>;
206
208
  getOrganizationUser: (userId: string) => Promise<OrgUserResponse | {
207
209
  success: false;
208
210
  message: string;
@@ -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
  };
@@ -491,6 +494,9 @@ class ApiClient {
491
494
  this.createOrganizationUser = async (request) => {
492
495
  return this.makeRequest('organization/users', 'POST', request);
493
496
  };
497
+ this.resendTeamUserInvitation = async (userId) => {
498
+ return this.makeRequest(`organization/users/${userId}/resend-invitation`, 'POST', null);
499
+ };
494
500
  this.getOrganizationUser = async (userId) => {
495
501
  return this.makeRequest(`organization/users/${userId}`, 'GET', null);
496
502
  };
@@ -7,3 +7,9 @@ export interface UserUpdateResponse {
7
7
  success: boolean;
8
8
  message: string;
9
9
  }
10
+ export interface PreVerifyEmailResponse {
11
+ success: boolean;
12
+ message: string;
13
+ authMethod: string;
14
+ hasPassword: boolean;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashbacktech/flashbackclient",
3
- "version": "0.2.29",
3
+ "version": "0.2.31",
4
4
  "type": "commonjs",
5
5
  "publishConfig": {
6
6
  "access": "public"