@flashbacktech/flashbackclient 0.2.13 → 0.2.15
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 +48 -15
- package/dist/api/client.js +114 -0
- package/dist/api/index.d.ts +20 -17
- package/dist/api/index.js +23 -17
- package/dist/api/interfaces.d.ts +4 -4
- package/dist/api/types/ai/aiapikey.d.ts +36 -0
- package/dist/api/types/ai/aillm.d.ts +79 -0
- package/dist/api/types/ai/aillm.js +11 -0
- package/dist/api/types/ai/policy.d.ts +87 -0
- package/dist/api/types/ai/policy.js +9 -0
- package/dist/api/types/{auth.d.ts → platform/auth.d.ts} +1 -1
- package/dist/api/types/{systemEvent.d.ts → platform/systemevent.d.ts} +1 -1
- package/dist/api/types/{systemEvent.js → platform/systemevent.js} +4 -1
- package/dist/api/types/storage/stats.js +2 -0
- package/dist/api/types/{storage.d.ts → storage/storage.d.ts} +5 -0
- package/package.json +1 -1
- /package/dist/api/types/{auth.js → ai/aiapikey.js} +0 -0
- /package/dist/api/types/{email.js → platform/auth.js} +0 -0
- /package/dist/api/types/{device.d.ts → platform/device.d.ts} +0 -0
- /package/dist/api/types/{device.js → platform/device.js} +0 -0
- /package/dist/api/types/{email.d.ts → platform/email.d.ts} +0 -0
- /package/dist/api/types/{organization.js → platform/email.js} +0 -0
- /package/dist/api/types/{mfa.d.ts → platform/mfa.d.ts} +0 -0
- /package/dist/api/types/{mfa.js → platform/mfa.js} +0 -0
- /package/dist/api/types/{organization.d.ts → platform/organization.d.ts} +0 -0
- /package/dist/api/types/{stats.js → platform/organization.js} +0 -0
- /package/dist/api/types/{quota.d.ts → platform/quota.d.ts} +0 -0
- /package/dist/api/types/{quota.js → platform/quota.js} +0 -0
- /package/dist/api/types/{roles.d.ts → platform/roles.d.ts} +0 -0
- /package/dist/api/types/{roles.js → platform/roles.js} +0 -0
- /package/dist/api/types/{settings.d.ts → platform/settings.d.ts} +0 -0
- /package/dist/api/types/{settings.js → platform/settings.js} +0 -0
- /package/dist/api/types/{subscriptions.d.ts → platform/subscriptions.d.ts} +0 -0
- /package/dist/api/types/{subscriptions.js → platform/subscriptions.js} +0 -0
- /package/dist/api/types/{user.d.ts → platform/user.d.ts} +0 -0
- /package/dist/api/types/{user.js → platform/user.js} +0 -0
- /package/dist/api/types/{workspace.d.ts → platform/workspace.d.ts} +0 -0
- /package/dist/api/types/{workspace.js → platform/workspace.js} +0 -0
- /package/dist/api/types/{bridge.d.ts → storage/bridge.d.ts} +0 -0
- /package/dist/api/types/{bridge.js → storage/bridge.js} +0 -0
- /package/dist/api/types/{noderegistration.d.ts → storage/noderegistration.d.ts} +0 -0
- /package/dist/api/types/{noderegistration.js → storage/noderegistration.js} +0 -0
- /package/dist/api/types/{stats.d.ts → storage/stats.d.ts} +0 -0
- /package/dist/api/types/{storage.js → storage/storage.js} +0 -0
package/dist/api/client.d.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
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';
|
|
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 { ActivateResponse, DeactivateResponse, LoginBody, LoginResponse, LogoutResponse, OAuth2ResponseDTO, RefreshTokenErrorResponse, RefreshTokenResponse, RegisterBody, RegisterResponse, ResetPasswordBody, Web3RegisterBody } from './types/auth';
|
|
4
|
-
import { StatsQueryParams, StatsResponse, NodeStatsMinuteResponse, NodeStatsDailyResponse, NodeStatsQueryParams, UnitStatsResponse, RepoStatsResponse, NodeStatsDailyQueryParams, BucketStatsResponse, StatsQueryWithBucketParams, NodeStatsQueryWithBucketParams, NodeStatsDailyQueryWithBucketParams } from './types/stats';
|
|
5
|
-
import { NodeInfoResponse, RegisterRequest } from './types/bridge';
|
|
6
|
-
import { GetOrganizationKeysResponse } from './types/noderegistration';
|
|
7
|
-
import { QuotaResponse } from './types/quota';
|
|
8
|
-
import { DeviceListResponse, DeviceDetailsResponse, SessionListResponse, TrustDeviceRequest, TrustDeviceResponse, UntrustDeviceResponse, RemoveDeviceResponse, RevokeSessionResponse, RevokeAllSessionsResponse, SessionHeartbeatResponse, DeviceInfo } from './types/device';
|
|
9
|
-
import { BuySubscriptionRequest, BuySubscriptionResponse, GetSubscriptionsResponse, MySubscriptionResponse, PaymentsListResponse, PaymentsQueryParams, CancelSubscriptionResponse, GetCheckoutSessionStatusResponse, CreateBillingPortalResponse, GetPendingPaymentResponse, CancelPendingPaymentResponse } from './types/subscriptions';
|
|
3
|
+
import { ActivateResponse, DeactivateResponse, LoginBody, LoginResponse, LogoutResponse, OAuth2ResponseDTO, RefreshTokenErrorResponse, RefreshTokenResponse, RegisterBody, RegisterResponse, ResetPasswordBody, Web3RegisterBody } from './types/platform/auth';
|
|
4
|
+
import { StatsQueryParams, StatsResponse, NodeStatsMinuteResponse, NodeStatsDailyResponse, NodeStatsQueryParams, UnitStatsResponse, RepoStatsResponse, NodeStatsDailyQueryParams, BucketStatsResponse, StatsQueryWithBucketParams, NodeStatsQueryWithBucketParams, NodeStatsDailyQueryWithBucketParams } from './types/storage/stats';
|
|
5
|
+
import { NodeInfoResponse, RegisterRequest } from './types/storage/bridge';
|
|
6
|
+
import { GetOrganizationKeysResponse } from './types/storage/noderegistration';
|
|
7
|
+
import { QuotaResponse } from './types/platform/quota';
|
|
8
|
+
import { DeviceListResponse, DeviceDetailsResponse, SessionListResponse, TrustDeviceRequest, TrustDeviceResponse, UntrustDeviceResponse, RemoveDeviceResponse, RevokeSessionResponse, RevokeAllSessionsResponse, SessionHeartbeatResponse, DeviceInfo } from './types/platform/device';
|
|
9
|
+
import { BuySubscriptionRequest, BuySubscriptionResponse, GetSubscriptionsResponse, MySubscriptionResponse, PaymentsListResponse, PaymentsQueryParams, CancelSubscriptionResponse, GetCheckoutSessionStatusResponse, CreateBillingPortalResponse, GetPendingPaymentResponse, CancelPendingPaymentResponse } from './types/platform/subscriptions';
|
|
10
10
|
import { WorkspaceTypes } from '.';
|
|
11
|
-
import { MFAMethodsResponse, MFASetupRequest, MFASetupResponse, MFAStatusResponse, MFAVerificationSetupRequest, MFAVerificationSetupResponse, MFAEnableRequest, MFAEnableResponse, MFADisableResponse, MFAPrimaryRequest, MFAPrimaryResponse, MFAResetResponse, MFAOrganizationEnforceRequest, MFAOrganizationEnforceResponse, MagicLinkActivationRequest, MagicLinkActivationResponse, MagicLinkSendResponse, PasskeyAuthOptionsResult, PasskeyCompleteRegistrationRequest, PasskeyCompleteRegistrationResponse, MFAVerificationRequest, MFAVerificationLoginResponse, MFAResetRequest } from './types/mfa';
|
|
12
|
-
import { DeleteSettingsRequest, GetSettingsResponse, PartialUpdateSettingsRequest, UpdateSettingsRequest } from './types/settings';
|
|
13
|
-
import { UpdateUserRoleResponse, UserRoleResponse } from './types/roles';
|
|
14
|
-
import { UserProfileResponse } from './types/roles';
|
|
15
|
-
import { CreateOrgUserRequest, CreateOrgUserResponse, DeleteOrgUserResponse, GetOrganizationResponse, ListOrgUsersResponse, OrgUserResponse, UpdateOrganizationBody, UpdateOrganizationResponse, UpdateOrgUserRequest, UpdateOrgUserResponse } from './types/organization';
|
|
16
|
-
import { SystemEventQueryRequest, SystemEventQueryResponse } from './types/
|
|
17
|
-
import { UserUpdateRequest, UserUpdateResponse } from './types/user';
|
|
11
|
+
import { MFAMethodsResponse, MFASetupRequest, MFASetupResponse, MFAStatusResponse, MFAVerificationSetupRequest, MFAVerificationSetupResponse, MFAEnableRequest, MFAEnableResponse, MFADisableResponse, MFAPrimaryRequest, MFAPrimaryResponse, MFAResetResponse, MFAOrganizationEnforceRequest, MFAOrganizationEnforceResponse, MagicLinkActivationRequest, MagicLinkActivationResponse, MagicLinkSendResponse, PasskeyAuthOptionsResult, PasskeyCompleteRegistrationRequest, PasskeyCompleteRegistrationResponse, MFAVerificationRequest, MFAVerificationLoginResponse, MFAResetRequest } from './types/platform/mfa';
|
|
12
|
+
import { DeleteSettingsRequest, GetSettingsResponse, PartialUpdateSettingsRequest, UpdateSettingsRequest } from './types/platform/settings';
|
|
13
|
+
import { UpdateUserRoleResponse, UserRoleResponse } from './types/platform/roles';
|
|
14
|
+
import { UserProfileResponse } from './types/platform/roles';
|
|
15
|
+
import { CreateOrgUserRequest, CreateOrgUserResponse, DeleteOrgUserResponse, GetOrganizationResponse, ListOrgUsersResponse, OrgUserResponse, UpdateOrganizationBody, UpdateOrganizationResponse, UpdateOrgUserRequest, UpdateOrgUserResponse } from './types/platform/organization';
|
|
16
|
+
import { SystemEventQueryRequest, SystemEventQueryResponse } from './types/platform/systemevent';
|
|
17
|
+
import { UserUpdateRequest, UserUpdateResponse } from './types/platform/user';
|
|
18
|
+
import { CreateRepoAiApiKeyRequest, CreateRepoAiApiKeyResponse, DeleteRepoAiApiKeyResponse, GetRepoAiApiKeysResponse, UpdateRepoAiApiKeyRequest, UpdateRepoAiApiKeyResponse } from './types/ai/aiapikey';
|
|
19
|
+
import { AiLlmStatsResponse, CreateAiLlmRequest, CreateAiLlmResponse, DeleteAiLlmResponse, GetAiLlmsResponse, UpdateAiLlmRequest, UpdateAiLlmResponse, ValidateAiLlmResponse } from './types/ai/aillm';
|
|
20
|
+
import { CreatePolicyRequest, GetPoliciesQuery, GetPolicyViolationsQuery, GetPolicyViolationsResponse, PolicyDTO, UpdatePolicyRequest } from './types/ai/policy';
|
|
18
21
|
interface ErrorResponse {
|
|
19
22
|
message?: string;
|
|
20
23
|
[key: string]: any;
|
|
@@ -216,5 +219,35 @@ export declare class ApiClient implements IApiClient {
|
|
|
216
219
|
nodeRegister: (data: RegisterRequest) => Promise<RegisterResponse>;
|
|
217
220
|
nodeUnregister: (data: RegisterRequest) => Promise<RegisterResponse>;
|
|
218
221
|
getSystemEvents: (data: SystemEventQueryRequest) => Promise<SystemEventQueryResponse>;
|
|
222
|
+
createAiLlm: (data: CreateAiLlmRequest) => Promise<CreateAiLlmResponse>;
|
|
223
|
+
getAiLlms: (workspaceId?: string) => Promise<GetAiLlmsResponse>;
|
|
224
|
+
getAiLlmStats: (aiLlmId?: string) => Promise<AiLlmStatsResponse>;
|
|
225
|
+
getAvailableAiLlms: () => Promise<GetAiLlmsResponse>;
|
|
226
|
+
updateAiLlm: (id: string, data: UpdateAiLlmRequest) => Promise<UpdateAiLlmResponse>;
|
|
227
|
+
deleteAiLlm: (id: string) => Promise<DeleteAiLlmResponse>;
|
|
228
|
+
validateAiLlm: (id: string) => Promise<ValidateAiLlmResponse>;
|
|
229
|
+
createRepoAiApiKey: (repoId: string, data: CreateRepoAiApiKeyRequest) => Promise<CreateRepoAiApiKeyResponse>;
|
|
230
|
+
getRepoAiApiKeys: (repoId: string) => Promise<GetRepoAiApiKeysResponse>;
|
|
231
|
+
updateRepoAiApiKey: (repoId: string, apikeyId: string, data: UpdateRepoAiApiKeyRequest) => Promise<UpdateRepoAiApiKeyResponse>;
|
|
232
|
+
deleteRepoAiApiKey: (repoId: string, apikeyId: string) => Promise<DeleteRepoAiApiKeyResponse>;
|
|
233
|
+
createPolicy: (data: CreatePolicyRequest) => Promise<{
|
|
234
|
+
success: boolean;
|
|
235
|
+
policy: PolicyDTO;
|
|
236
|
+
}>;
|
|
237
|
+
getPolicies: (query: GetPoliciesQuery) => Promise<{
|
|
238
|
+
success: boolean;
|
|
239
|
+
policies: PolicyDTO[];
|
|
240
|
+
}>;
|
|
241
|
+
getPolicy: (policyId: string) => Promise<{
|
|
242
|
+
success: boolean;
|
|
243
|
+
policy: PolicyDTO;
|
|
244
|
+
}>;
|
|
245
|
+
updatePolicy: (policyId: string, data: UpdatePolicyRequest) => Promise<{
|
|
246
|
+
success: boolean;
|
|
247
|
+
policy: PolicyDTO;
|
|
248
|
+
}>;
|
|
249
|
+
deletePolicy: (policyId: string) => Promise<ActionResponse>;
|
|
250
|
+
getPolicyViolations: (query: GetPolicyViolationsQuery) => Promise<GetPolicyViolationsResponse>;
|
|
251
|
+
getPolicyViolationsByPolicyId: (policyId: string, query: Omit<GetPolicyViolationsQuery, "policyId">) => Promise<GetPolicyViolationsResponse>;
|
|
219
252
|
}
|
|
220
253
|
export {};
|
package/dist/api/client.js
CHANGED
|
@@ -496,6 +496,120 @@ class ApiClient {
|
|
|
496
496
|
this.getSystemEvents = async (data) => {
|
|
497
497
|
return this.makeRequest('systemevent', 'POST', data);
|
|
498
498
|
};
|
|
499
|
+
////// AI LLM API calls
|
|
500
|
+
this.createAiLlm = async (data) => {
|
|
501
|
+
return this.makeRequest('ai/llm', 'POST', data);
|
|
502
|
+
};
|
|
503
|
+
this.getAiLlms = async (workspaceId) => {
|
|
504
|
+
const queryParams = new URLSearchParams();
|
|
505
|
+
if (workspaceId) {
|
|
506
|
+
queryParams.append('workspaceId', workspaceId);
|
|
507
|
+
}
|
|
508
|
+
return this.makeRequest(`ai/llm${queryParams.toString() ? `?${queryParams.toString()}` : ''}`, 'GET', null);
|
|
509
|
+
};
|
|
510
|
+
this.getAiLlmStats = async (aiLlmId) => {
|
|
511
|
+
const queryParams = new URLSearchParams();
|
|
512
|
+
if (aiLlmId) {
|
|
513
|
+
queryParams.append('aiLlmId', aiLlmId);
|
|
514
|
+
}
|
|
515
|
+
return this.makeRequest(`ai/llm/stats${queryParams.toString() ? `?${queryParams.toString()}` : ''}`, 'GET', null);
|
|
516
|
+
};
|
|
517
|
+
this.getAvailableAiLlms = async () => {
|
|
518
|
+
return this.makeRequest('ai/llm/available', 'GET', null);
|
|
519
|
+
};
|
|
520
|
+
this.updateAiLlm = async (id, data) => {
|
|
521
|
+
return this.makeRequest(`ai/llm/${id}`, 'PUT', data);
|
|
522
|
+
};
|
|
523
|
+
this.deleteAiLlm = async (id) => {
|
|
524
|
+
return this.makeRequest(`ai/llm/${id}`, 'DELETE', null);
|
|
525
|
+
};
|
|
526
|
+
this.validateAiLlm = async (id) => {
|
|
527
|
+
return this.makeRequest(`ai/llm/${id}/validate`, 'POST', null);
|
|
528
|
+
};
|
|
529
|
+
////// AI API Key API calls
|
|
530
|
+
this.createRepoAiApiKey = async (repoId, data) => {
|
|
531
|
+
return this.makeRequest(`repo/${repoId}/ai/apikey`, 'POST', data);
|
|
532
|
+
};
|
|
533
|
+
this.getRepoAiApiKeys = async (repoId) => {
|
|
534
|
+
return this.makeRequest(`repo/${repoId}/ai/apikey`, 'GET', null);
|
|
535
|
+
};
|
|
536
|
+
this.updateRepoAiApiKey = async (repoId, apikeyId, data) => {
|
|
537
|
+
return this.makeRequest(`repo/${repoId}/ai/apikey/${apikeyId}`, 'PUT', data);
|
|
538
|
+
};
|
|
539
|
+
this.deleteRepoAiApiKey = async (repoId, apikeyId) => {
|
|
540
|
+
return this.makeRequest(`repo/${repoId}/ai/apikey/${apikeyId}`, 'DELETE', null);
|
|
541
|
+
};
|
|
542
|
+
////// Policy API calls
|
|
543
|
+
this.createPolicy = async (data) => {
|
|
544
|
+
return this.makeRequest('policy', 'POST', data);
|
|
545
|
+
};
|
|
546
|
+
this.getPolicies = async (query) => {
|
|
547
|
+
const queryParams = new URLSearchParams();
|
|
548
|
+
queryParams.append('orgId', query.orgId);
|
|
549
|
+
if (query.workspaceId) {
|
|
550
|
+
queryParams.append('workspaceId', query.workspaceId);
|
|
551
|
+
}
|
|
552
|
+
if (query.repoId) {
|
|
553
|
+
queryParams.append('repoId', query.repoId);
|
|
554
|
+
}
|
|
555
|
+
return this.makeRequest(`policy?${queryParams.toString()}`, 'GET', null);
|
|
556
|
+
};
|
|
557
|
+
this.getPolicy = async (policyId) => {
|
|
558
|
+
return this.makeRequest(`policy/${policyId}`, 'GET', null);
|
|
559
|
+
};
|
|
560
|
+
this.updatePolicy = async (policyId, data) => {
|
|
561
|
+
return this.makeRequest(`policy/${policyId}`, 'PUT', data);
|
|
562
|
+
};
|
|
563
|
+
this.deletePolicy = async (policyId) => {
|
|
564
|
+
return this.makeRequest(`policy/${policyId}`, 'DELETE', null);
|
|
565
|
+
};
|
|
566
|
+
this.getPolicyViolations = async (query) => {
|
|
567
|
+
const queryParams = new URLSearchParams();
|
|
568
|
+
if (query.workspaceId) {
|
|
569
|
+
queryParams.append('workspaceId', query.workspaceId);
|
|
570
|
+
}
|
|
571
|
+
if (query.repoId) {
|
|
572
|
+
queryParams.append('repoId', query.repoId);
|
|
573
|
+
}
|
|
574
|
+
if (query.policyId) {
|
|
575
|
+
queryParams.append('policyId', query.policyId);
|
|
576
|
+
}
|
|
577
|
+
if (query.from) {
|
|
578
|
+
queryParams.append('from', query.from);
|
|
579
|
+
}
|
|
580
|
+
if (query.to) {
|
|
581
|
+
queryParams.append('to', query.to);
|
|
582
|
+
}
|
|
583
|
+
if (query.take !== undefined) {
|
|
584
|
+
queryParams.append('take', query.take.toString());
|
|
585
|
+
}
|
|
586
|
+
if (query.skip !== undefined) {
|
|
587
|
+
queryParams.append('skip', query.skip.toString());
|
|
588
|
+
}
|
|
589
|
+
return this.makeRequest(`policy/violations?${queryParams.toString()}`, 'GET', null);
|
|
590
|
+
};
|
|
591
|
+
this.getPolicyViolationsByPolicyId = async (policyId, query) => {
|
|
592
|
+
const queryParams = new URLSearchParams();
|
|
593
|
+
if (query.workspaceId) {
|
|
594
|
+
queryParams.append('workspaceId', query.workspaceId);
|
|
595
|
+
}
|
|
596
|
+
if (query.repoId) {
|
|
597
|
+
queryParams.append('repoId', query.repoId);
|
|
598
|
+
}
|
|
599
|
+
if (query.from) {
|
|
600
|
+
queryParams.append('from', query.from);
|
|
601
|
+
}
|
|
602
|
+
if (query.to) {
|
|
603
|
+
queryParams.append('to', query.to);
|
|
604
|
+
}
|
|
605
|
+
if (query.take !== undefined) {
|
|
606
|
+
queryParams.append('take', query.take.toString());
|
|
607
|
+
}
|
|
608
|
+
if (query.skip !== undefined) {
|
|
609
|
+
queryParams.append('skip', query.skip.toString());
|
|
610
|
+
}
|
|
611
|
+
return this.makeRequest(`policy/${policyId}/violations${queryParams.toString() ? `?${queryParams.toString()}` : ''}`, 'GET', null);
|
|
612
|
+
};
|
|
499
613
|
this.baseURL = baseURL;
|
|
500
614
|
this.headers = {};
|
|
501
615
|
this.debug = false;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { ApiClient, HttpError } from './client';
|
|
2
|
-
import * as ApiTypes from './types/storage';
|
|
3
|
-
import * as AuthTypes from './types/auth';
|
|
4
|
-
import * as StatsTypes from './types/stats';
|
|
2
|
+
import * as ApiTypes from './types/storage/storage';
|
|
3
|
+
import * as AuthTypes from './types/platform/auth';
|
|
4
|
+
import * as StatsTypes from './types/storage/stats';
|
|
5
5
|
import * as ApiInterfaces from './interfaces';
|
|
6
|
-
import * as BridgeTypes from './types/bridge';
|
|
7
|
-
import * as EmailTypes from './types/email';
|
|
8
|
-
import * as QuotaTypes from './types/quota';
|
|
9
|
-
import * as SubscriptionTypes from './types/subscriptions';
|
|
10
|
-
import * as DeviceTypes from './types/device';
|
|
11
|
-
import * as MFATypes from './types/mfa';
|
|
12
|
-
import * as SettingsTypes from './types/settings';
|
|
13
|
-
import * as RolesTypes from './types/roles';
|
|
14
|
-
import * as WorkspaceTypes from './types/workspace';
|
|
15
|
-
import * as OrganizationTypes from './types/organization';
|
|
16
|
-
import * as NodeRegistrationTypes from './types/noderegistration';
|
|
17
|
-
import * as SystemEventTypes from './types/
|
|
18
|
-
import * as UserTypes from './types/user';
|
|
19
|
-
|
|
6
|
+
import * as BridgeTypes from './types/storage/bridge';
|
|
7
|
+
import * as EmailTypes from './types/platform/email';
|
|
8
|
+
import * as QuotaTypes from './types/platform/quota';
|
|
9
|
+
import * as SubscriptionTypes from './types/platform/subscriptions';
|
|
10
|
+
import * as DeviceTypes from './types/platform/device';
|
|
11
|
+
import * as MFATypes from './types/platform/mfa';
|
|
12
|
+
import * as SettingsTypes from './types/platform/settings';
|
|
13
|
+
import * as RolesTypes from './types/platform/roles';
|
|
14
|
+
import * as WorkspaceTypes from './types/platform/workspace';
|
|
15
|
+
import * as OrganizationTypes from './types/platform/organization';
|
|
16
|
+
import * as NodeRegistrationTypes from './types/storage/noderegistration';
|
|
17
|
+
import * as SystemEventTypes from './types/platform/systemevent';
|
|
18
|
+
import * as UserTypes from './types/platform/user';
|
|
19
|
+
import * as AiApiKeyTypes from './types/ai/aiapikey';
|
|
20
|
+
import * as AiLlmTypes from './types/ai/aillm';
|
|
21
|
+
import * as PolicyTypes from './types/ai/policy';
|
|
22
|
+
export { ApiClient, ApiTypes, AuthTypes, StatsTypes, ApiInterfaces, HttpError, BridgeTypes, EmailTypes, QuotaTypes, SubscriptionTypes, DeviceTypes, MFATypes, SettingsTypes, RolesTypes, WorkspaceTypes, OrganizationTypes, NodeRegistrationTypes, SystemEventTypes, UserTypes, AiApiKeyTypes, AiLlmTypes, PolicyTypes };
|
package/dist/api/index.js
CHANGED
|
@@ -33,41 +33,47 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.UserTypes = exports.SystemEventTypes = exports.NodeRegistrationTypes = exports.OrganizationTypes = exports.WorkspaceTypes = exports.RolesTypes = exports.SettingsTypes = exports.MFATypes = exports.DeviceTypes = exports.SubscriptionTypes = exports.QuotaTypes = exports.EmailTypes = exports.BridgeTypes = exports.HttpError = exports.ApiInterfaces = exports.StatsTypes = exports.AuthTypes = exports.ApiTypes = exports.ApiClient = void 0;
|
|
36
|
+
exports.PolicyTypes = exports.AiLlmTypes = exports.AiApiKeyTypes = exports.UserTypes = exports.SystemEventTypes = exports.NodeRegistrationTypes = exports.OrganizationTypes = exports.WorkspaceTypes = exports.RolesTypes = exports.SettingsTypes = exports.MFATypes = exports.DeviceTypes = exports.SubscriptionTypes = exports.QuotaTypes = exports.EmailTypes = exports.BridgeTypes = exports.HttpError = exports.ApiInterfaces = exports.StatsTypes = exports.AuthTypes = exports.ApiTypes = exports.ApiClient = void 0;
|
|
37
37
|
const client_1 = require("./client");
|
|
38
38
|
Object.defineProperty(exports, "ApiClient", { enumerable: true, get: function () { return client_1.ApiClient; } });
|
|
39
39
|
Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return client_1.HttpError; } });
|
|
40
|
-
const ApiTypes = __importStar(require("./types/storage"));
|
|
40
|
+
const ApiTypes = __importStar(require("./types/storage/storage"));
|
|
41
41
|
exports.ApiTypes = ApiTypes;
|
|
42
|
-
const AuthTypes = __importStar(require("./types/auth"));
|
|
42
|
+
const AuthTypes = __importStar(require("./types/platform/auth"));
|
|
43
43
|
exports.AuthTypes = AuthTypes;
|
|
44
|
-
const StatsTypes = __importStar(require("./types/stats"));
|
|
44
|
+
const StatsTypes = __importStar(require("./types/storage/stats"));
|
|
45
45
|
exports.StatsTypes = StatsTypes;
|
|
46
46
|
const ApiInterfaces = __importStar(require("./interfaces"));
|
|
47
47
|
exports.ApiInterfaces = ApiInterfaces;
|
|
48
|
-
const BridgeTypes = __importStar(require("./types/bridge"));
|
|
48
|
+
const BridgeTypes = __importStar(require("./types/storage/bridge"));
|
|
49
49
|
exports.BridgeTypes = BridgeTypes;
|
|
50
|
-
const EmailTypes = __importStar(require("./types/email"));
|
|
50
|
+
const EmailTypes = __importStar(require("./types/platform/email"));
|
|
51
51
|
exports.EmailTypes = EmailTypes;
|
|
52
|
-
const QuotaTypes = __importStar(require("./types/quota"));
|
|
52
|
+
const QuotaTypes = __importStar(require("./types/platform/quota"));
|
|
53
53
|
exports.QuotaTypes = QuotaTypes;
|
|
54
|
-
const SubscriptionTypes = __importStar(require("./types/subscriptions"));
|
|
54
|
+
const SubscriptionTypes = __importStar(require("./types/platform/subscriptions"));
|
|
55
55
|
exports.SubscriptionTypes = SubscriptionTypes;
|
|
56
|
-
const DeviceTypes = __importStar(require("./types/device"));
|
|
56
|
+
const DeviceTypes = __importStar(require("./types/platform/device"));
|
|
57
57
|
exports.DeviceTypes = DeviceTypes;
|
|
58
|
-
const MFATypes = __importStar(require("./types/mfa"));
|
|
58
|
+
const MFATypes = __importStar(require("./types/platform/mfa"));
|
|
59
59
|
exports.MFATypes = MFATypes;
|
|
60
|
-
const SettingsTypes = __importStar(require("./types/settings"));
|
|
60
|
+
const SettingsTypes = __importStar(require("./types/platform/settings"));
|
|
61
61
|
exports.SettingsTypes = SettingsTypes;
|
|
62
|
-
const RolesTypes = __importStar(require("./types/roles"));
|
|
62
|
+
const RolesTypes = __importStar(require("./types/platform/roles"));
|
|
63
63
|
exports.RolesTypes = RolesTypes;
|
|
64
|
-
const WorkspaceTypes = __importStar(require("./types/workspace"));
|
|
64
|
+
const WorkspaceTypes = __importStar(require("./types/platform/workspace"));
|
|
65
65
|
exports.WorkspaceTypes = WorkspaceTypes;
|
|
66
|
-
const OrganizationTypes = __importStar(require("./types/organization"));
|
|
66
|
+
const OrganizationTypes = __importStar(require("./types/platform/organization"));
|
|
67
67
|
exports.OrganizationTypes = OrganizationTypes;
|
|
68
|
-
const NodeRegistrationTypes = __importStar(require("./types/noderegistration"));
|
|
68
|
+
const NodeRegistrationTypes = __importStar(require("./types/storage/noderegistration"));
|
|
69
69
|
exports.NodeRegistrationTypes = NodeRegistrationTypes;
|
|
70
|
-
const SystemEventTypes = __importStar(require("./types/
|
|
70
|
+
const SystemEventTypes = __importStar(require("./types/platform/systemevent"));
|
|
71
71
|
exports.SystemEventTypes = SystemEventTypes;
|
|
72
|
-
const UserTypes = __importStar(require("./types/user"));
|
|
72
|
+
const UserTypes = __importStar(require("./types/platform/user"));
|
|
73
73
|
exports.UserTypes = UserTypes;
|
|
74
|
+
const AiApiKeyTypes = __importStar(require("./types/ai/aiapikey"));
|
|
75
|
+
exports.AiApiKeyTypes = AiApiKeyTypes;
|
|
76
|
+
const AiLlmTypes = __importStar(require("./types/ai/aillm"));
|
|
77
|
+
exports.AiLlmTypes = AiLlmTypes;
|
|
78
|
+
const PolicyTypes = __importStar(require("./types/ai/policy"));
|
|
79
|
+
exports.PolicyTypes = PolicyTypes;
|
package/dist/api/interfaces.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CreateRepoRequest, CreateRepoResponse, CreateRepoKeyRequest, CreateRepoKeyResponse, GetReposResponse, GetRepoKeysResponse, ActionResponse, UpdateRepoResponse, UpdateRepoRequest, UpdateRepoKeyRequest, UpdateRepoKeyResponse, ValidateRepoUnitsRequest, ValidateRepoUnitsResponse, GetBucketsResponse, CreateBucketRequest, CreateBucketResponse, UpdateBucketRequest, UpdateBucketResponse, ValidateBucketRequest, ValidateBucketResponse } from './types/storage';
|
|
2
|
-
import { RegisterBody, LoginBody, RegisterResponse, LoginResponse, LogoutResponse, ActivateResponse, DeactivateResponse, RefreshTokenResponse, RefreshTokenErrorResponse } from './types/auth';
|
|
3
|
-
import { StatsQueryParams, StatsResponse, NodeStatsMinuteResponse, NodeStatsDailyResponse, NodeStatsQueryParams } from './types/stats';
|
|
4
|
-
import { BuySubscriptionRequest, BuySubscriptionResponse, GetSubscriptionsResponse, MySubscriptionResponse, PaymentsListResponse, PaymentsQueryParams, CancelSubscriptionResponse } from './types/subscriptions';
|
|
1
|
+
import { CreateRepoRequest, CreateRepoResponse, CreateRepoKeyRequest, CreateRepoKeyResponse, GetReposResponse, GetRepoKeysResponse, ActionResponse, UpdateRepoResponse, UpdateRepoRequest, UpdateRepoKeyRequest, UpdateRepoKeyResponse, ValidateRepoUnitsRequest, ValidateRepoUnitsResponse, GetBucketsResponse, CreateBucketRequest, CreateBucketResponse, UpdateBucketRequest, UpdateBucketResponse, ValidateBucketRequest, ValidateBucketResponse } from './types/storage/storage';
|
|
2
|
+
import { RegisterBody, LoginBody, RegisterResponse, LoginResponse, LogoutResponse, ActivateResponse, DeactivateResponse, RefreshTokenResponse, RefreshTokenErrorResponse } from './types/platform/auth';
|
|
3
|
+
import { StatsQueryParams, StatsResponse, NodeStatsMinuteResponse, NodeStatsDailyResponse, NodeStatsQueryParams } from './types/storage/stats';
|
|
4
|
+
import { BuySubscriptionRequest, BuySubscriptionResponse, GetSubscriptionsResponse, MySubscriptionResponse, PaymentsListResponse, PaymentsQueryParams, CancelSubscriptionResponse } from './types/platform/subscriptions';
|
|
5
5
|
export declare enum ProviderType {
|
|
6
6
|
GOOGLE = "GOOGLE",
|
|
7
7
|
GITHUB = "GITHUB",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AiType } from './aillm';
|
|
2
|
+
export interface CreateRepoAiApiKeyRequest {
|
|
3
|
+
name: string;
|
|
4
|
+
aiType: AiType;
|
|
5
|
+
}
|
|
6
|
+
export interface UpdateRepoAiApiKeyRequest {
|
|
7
|
+
name?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CreateRepoAiApiKeyResponse {
|
|
10
|
+
success: boolean;
|
|
11
|
+
id: string;
|
|
12
|
+
key: string;
|
|
13
|
+
secret: string;
|
|
14
|
+
message?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface RepoAiApiKeyDTO {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
repoId: string;
|
|
20
|
+
key: string | null;
|
|
21
|
+
aiType: AiType;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
deletedAt: Date | null;
|
|
24
|
+
}
|
|
25
|
+
export interface GetRepoAiApiKeysResponse {
|
|
26
|
+
success: boolean;
|
|
27
|
+
apiKeys: RepoAiApiKeyDTO[];
|
|
28
|
+
}
|
|
29
|
+
export interface UpdateRepoAiApiKeyResponse {
|
|
30
|
+
success: boolean;
|
|
31
|
+
message: string;
|
|
32
|
+
}
|
|
33
|
+
export interface DeleteRepoAiApiKeyResponse {
|
|
34
|
+
success: boolean;
|
|
35
|
+
message: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
declare enum AiType {
|
|
2
|
+
OPENAI = "OPENAI",
|
|
3
|
+
GOOGLE = "GOOGLE",
|
|
4
|
+
ANTHROPIC = "ANTHROPIC",
|
|
5
|
+
AWS = "AWS",
|
|
6
|
+
OTHER = "OTHER"
|
|
7
|
+
}
|
|
8
|
+
export { AiType };
|
|
9
|
+
export interface CreateAiLlmRequest {
|
|
10
|
+
name: string;
|
|
11
|
+
aiType: AiType;
|
|
12
|
+
endpoint: string;
|
|
13
|
+
key?: string | null;
|
|
14
|
+
secret: string;
|
|
15
|
+
workspaceId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface UpdateAiLlmRequest {
|
|
18
|
+
name?: string;
|
|
19
|
+
aiType?: AiType;
|
|
20
|
+
endpoint?: string;
|
|
21
|
+
key?: string | null;
|
|
22
|
+
secret?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface AiLlmDTO {
|
|
25
|
+
id: string;
|
|
26
|
+
orgId: string;
|
|
27
|
+
workspaceId: string;
|
|
28
|
+
userId: string;
|
|
29
|
+
name: string;
|
|
30
|
+
aiType: AiType;
|
|
31
|
+
endpoint: string;
|
|
32
|
+
key: string | null;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
repos?: {
|
|
35
|
+
id: string;
|
|
36
|
+
name: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
export interface GetAiLlmsResponse {
|
|
41
|
+
success: boolean;
|
|
42
|
+
aiLlms: AiLlmDTO[];
|
|
43
|
+
}
|
|
44
|
+
export interface CreateAiLlmResponse {
|
|
45
|
+
success: boolean;
|
|
46
|
+
aiLlmId: string;
|
|
47
|
+
message?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface UpdateAiLlmResponse {
|
|
50
|
+
success: boolean;
|
|
51
|
+
aiLlmId: string;
|
|
52
|
+
message?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface DeleteAiLlmResponse {
|
|
55
|
+
success: boolean;
|
|
56
|
+
message?: string;
|
|
57
|
+
}
|
|
58
|
+
export interface ValidateAiLlmResponse {
|
|
59
|
+
success: boolean;
|
|
60
|
+
message: string;
|
|
61
|
+
}
|
|
62
|
+
export interface AiLlmStatsResponse {
|
|
63
|
+
success: boolean;
|
|
64
|
+
stats: {
|
|
65
|
+
aiLlmId: string;
|
|
66
|
+
totalApiCalls: string;
|
|
67
|
+
totalTokensIn: string;
|
|
68
|
+
totalTokensOut: string;
|
|
69
|
+
totalLlmTokensIn: string;
|
|
70
|
+
totalLlmTokensOut: string;
|
|
71
|
+
totalPolicyViolations: string;
|
|
72
|
+
totalAlerts: string;
|
|
73
|
+
totalBlocks: string;
|
|
74
|
+
}[];
|
|
75
|
+
}
|
|
76
|
+
export interface RepoAiLlmInfo {
|
|
77
|
+
aiLlmId?: string;
|
|
78
|
+
aiLlm?: AiLlmDTO;
|
|
79
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AiType = void 0;
|
|
4
|
+
var AiType;
|
|
5
|
+
(function (AiType) {
|
|
6
|
+
AiType["OPENAI"] = "OPENAI";
|
|
7
|
+
AiType["GOOGLE"] = "GOOGLE";
|
|
8
|
+
AiType["ANTHROPIC"] = "ANTHROPIC";
|
|
9
|
+
AiType["AWS"] = "AWS";
|
|
10
|
+
AiType["OTHER"] = "OTHER";
|
|
11
|
+
})(AiType || (exports.AiType = AiType = {}));
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare enum RiskType {
|
|
2
|
+
LOW = "LOW",
|
|
3
|
+
MEDIUM = "MEDIUM",
|
|
4
|
+
HIGH = "HIGH"
|
|
5
|
+
}
|
|
6
|
+
export interface CreatePolicyRequest {
|
|
7
|
+
name: string;
|
|
8
|
+
content: string;
|
|
9
|
+
riskType: RiskType;
|
|
10
|
+
actionType: number;
|
|
11
|
+
orgId: string;
|
|
12
|
+
workspaceId?: string | null;
|
|
13
|
+
repoId?: string | null;
|
|
14
|
+
}
|
|
15
|
+
export interface UpdatePolicyRequest {
|
|
16
|
+
name?: string;
|
|
17
|
+
content?: string;
|
|
18
|
+
riskType?: RiskType;
|
|
19
|
+
actionType?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface GetPoliciesQuery {
|
|
22
|
+
orgId: string;
|
|
23
|
+
workspaceId?: string | null;
|
|
24
|
+
repoId?: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface PolicyDTO {
|
|
27
|
+
id: string;
|
|
28
|
+
orgId: string;
|
|
29
|
+
name: string;
|
|
30
|
+
content: string;
|
|
31
|
+
riskType: RiskType;
|
|
32
|
+
actionType: number;
|
|
33
|
+
createdBy: {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
lastName: string;
|
|
37
|
+
email: string;
|
|
38
|
+
};
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
lastUpdatedBy: {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
lastName: string;
|
|
44
|
+
email: string;
|
|
45
|
+
};
|
|
46
|
+
lastUpdatedAt: Date;
|
|
47
|
+
workspaceId: string | null;
|
|
48
|
+
repoId: string | null;
|
|
49
|
+
workspace?: {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
} | null;
|
|
53
|
+
repo?: {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
} | null;
|
|
57
|
+
}
|
|
58
|
+
export interface GetPolicyViolationsQuery {
|
|
59
|
+
workspaceId?: string;
|
|
60
|
+
repoId?: string;
|
|
61
|
+
policyId?: string;
|
|
62
|
+
from?: string;
|
|
63
|
+
to?: string;
|
|
64
|
+
take?: number;
|
|
65
|
+
skip?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface PolicyViolationDTO {
|
|
68
|
+
id: string;
|
|
69
|
+
policyId: string;
|
|
70
|
+
policyName: string;
|
|
71
|
+
timestamp: Date;
|
|
72
|
+
explanation: string;
|
|
73
|
+
conversationId: string | null;
|
|
74
|
+
repoId: string;
|
|
75
|
+
repoName: string;
|
|
76
|
+
userId: string;
|
|
77
|
+
userName: string;
|
|
78
|
+
repoAiApiKeyId: string;
|
|
79
|
+
repoAiApiKeyName: string;
|
|
80
|
+
}
|
|
81
|
+
export interface GetPolicyViolationsResponse {
|
|
82
|
+
success: boolean;
|
|
83
|
+
violations: PolicyViolationDTO[];
|
|
84
|
+
total: number;
|
|
85
|
+
skip: number;
|
|
86
|
+
take: number;
|
|
87
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RiskType = void 0;
|
|
4
|
+
var RiskType;
|
|
5
|
+
(function (RiskType) {
|
|
6
|
+
RiskType["LOW"] = "LOW";
|
|
7
|
+
RiskType["MEDIUM"] = "MEDIUM";
|
|
8
|
+
RiskType["HIGH"] = "HIGH";
|
|
9
|
+
})(RiskType || (exports.RiskType = RiskType = {}));
|
|
@@ -28,7 +28,7 @@ export interface SystemEventQueryResponse {
|
|
|
28
28
|
take: number;
|
|
29
29
|
}
|
|
30
30
|
export declare class ContextTypeHelper {
|
|
31
|
-
static readonly contextTypes: readonly ["workspace", "bucket", "repo", "user", "org", "workspaceuser", "apikey", "usersettings", "orgsettings", "flashbacknode", "orgkey"];
|
|
31
|
+
static readonly contextTypes: readonly ["workspace", "bucket", "repo", "user", "org", "workspaceuser", "apikey", "usersettings", "orgsettings", "flashbacknode", "orgkey", "aillm", "aillmapikey", "conversation"];
|
|
32
32
|
/**
|
|
33
33
|
* Convert context text to 0-based index
|
|
34
34
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { NodeStatusInfo, NodeStatusType } from './bridge';
|
|
2
|
+
import { RepoAiLlmInfo } from '../ai/aillm';
|
|
2
3
|
export declare enum StorageType {
|
|
3
4
|
S3 = "S3",
|
|
4
5
|
GCS = "GCS",
|
|
@@ -65,6 +66,7 @@ export interface CreateRepoRequest {
|
|
|
65
66
|
storageType: StorageType;
|
|
66
67
|
mode: ModeType;
|
|
67
68
|
repoUnits: RepoUnitInfo[];
|
|
69
|
+
repoAiLlms?: RepoAiLlmInfo[];
|
|
68
70
|
workspaceId: string;
|
|
69
71
|
}
|
|
70
72
|
export interface CreateRepoResponse {
|
|
@@ -100,6 +102,7 @@ export interface StorageRepo {
|
|
|
100
102
|
storageType: StorageType;
|
|
101
103
|
mode: ModeType;
|
|
102
104
|
units: RepoUnitInfo[];
|
|
105
|
+
aiLlms?: RepoAiLlmInfo[];
|
|
103
106
|
apiKeys?: ApiKey[];
|
|
104
107
|
createdAt: string;
|
|
105
108
|
disabled?: boolean;
|
|
@@ -223,6 +226,7 @@ export interface CreateRepoWithBucketsRequest {
|
|
|
223
226
|
storageType: StorageType;
|
|
224
227
|
mode: ModeType;
|
|
225
228
|
repoBuckets: RepoBucketInfo[];
|
|
229
|
+
repoAiLlms?: RepoAiLlmInfo[];
|
|
226
230
|
workspaceId: string;
|
|
227
231
|
}
|
|
228
232
|
export interface UpdateRepoWithBucketsRequest extends CreateRepoWithBucketsRequest {
|
|
@@ -234,6 +238,7 @@ export interface StorageRepoWithBuckets {
|
|
|
234
238
|
mode: ModeType;
|
|
235
239
|
workspaceId: string;
|
|
236
240
|
buckets: RepoBucketInfo[];
|
|
241
|
+
aiLlms?: RepoAiLlmInfo[];
|
|
237
242
|
apiKeys?: ApiKey[];
|
|
238
243
|
createdAt: string;
|
|
239
244
|
disabled?: boolean;
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|