@becomposable/common
Advanced tools
Comparing version 0.30.1 to 0.31.0
@@ -8,3 +8,26 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AccessControlledResource = void 0; | ||
exports.AccessControlledResource = exports.Permission = void 0; | ||
var Permission; | ||
(function (Permission) { | ||
Permission["int_read"] = "interaction:read"; | ||
Permission["int_write"] = "interaction:write"; | ||
Permission["int_delete"] = "interaction:delete"; | ||
Permission["int_execute"] = "interaction:execute"; | ||
Permission["run_read"] = "run:read"; | ||
Permission["run_write"] = "run:write"; | ||
Permission["env_manage"] = "environment:manage"; | ||
Permission["project_manage"] = "project:manage"; | ||
Permission["project_key_create"] = "project:key:create"; | ||
Permission["project_key_read"] = "project:key:read"; | ||
Permission["account_read"] = "account:read"; | ||
Permission["account_manage"] = "account:manage"; | ||
Permission["manage_billing"] = "account:billing"; | ||
Permission["content_read"] = "content:read"; | ||
Permission["content_create"] = "content:create"; | ||
Permission["content_update"] = "content:update"; | ||
Permission["content_delete"] = "content:delete"; | ||
Permission["content_admin"] = "content:admin"; | ||
Permission["workflow_run"] = "workflow:run"; | ||
Permission["access_protected"] = "access_protected"; | ||
})(Permission || (exports.Permission = Permission = {})); | ||
var AccessControlledResource; | ||
@@ -11,0 +34,0 @@ (function (AccessControlledResource) { |
@@ -24,4 +24,4 @@ "use strict"; | ||
'openai': { | ||
id: 'openai', | ||
name: SupportedProviders.openai, | ||
id: SupportedProviders.openai, | ||
name: "OpenAI", | ||
requiresApiKey: true, | ||
@@ -32,4 +32,4 @@ requiresEndpointUrl: false, | ||
'azure_openai': { | ||
id: 'azure_openai', | ||
name: SupportedProviders.azure_openai, | ||
id: SupportedProviders.azure_openai, | ||
name: "Azure OpenAI", | ||
requiresApiKey: false, | ||
@@ -40,4 +40,4 @@ requiresEndpointUrl: true, | ||
'huggingface_ie': { | ||
id: 'huggingface_ie', | ||
name: SupportedProviders.huggingface_ie, | ||
id: SupportedProviders.huggingface_ie, | ||
name: "HuggingFace Inference Endpoint", | ||
requiresApiKey: true, | ||
@@ -47,4 +47,4 @@ requiresEndpointUrl: true, | ||
'replicate': { | ||
id: 'replicate', | ||
name: SupportedProviders.replicate, | ||
id: SupportedProviders.replicate, | ||
name: "Repicate", | ||
requiresApiKey: true, | ||
@@ -55,4 +55,4 @@ requiresEndpointUrl: false, | ||
'bedrock': { | ||
id: 'bedrock', | ||
name: SupportedProviders.bedrock, | ||
id: SupportedProviders.bedrock, | ||
name: "AWS Bedrock", | ||
requiresApiKey: false, | ||
@@ -63,4 +63,4 @@ requiresEndpointUrl: false, | ||
vertexai: { | ||
id: 'vertexai', | ||
name: SupportedProviders.vertexai, | ||
id: SupportedProviders.vertexai, | ||
name: "Google Vertex AI", | ||
requiresApiKey: false, | ||
@@ -71,4 +71,4 @@ requiresEndpointUrl: false, | ||
togetherai: { | ||
id: 'togetherai', | ||
name: SupportedProviders.togetherai, | ||
id: SupportedProviders.togetherai, | ||
name: "Together AI", | ||
requiresApiKey: false, | ||
@@ -79,4 +79,4 @@ requiresEndpointUrl: false, | ||
mistralai: { | ||
id: 'mistralai', | ||
name: SupportedProviders.mistralai, | ||
id: SupportedProviders.mistralai, | ||
name: "Mistral AI", | ||
requiresApiKey: false, | ||
@@ -87,4 +87,4 @@ requiresEndpointUrl: false, | ||
groq: { | ||
id: 'groq', | ||
name: SupportedProviders.groq, | ||
id: SupportedProviders.groq, | ||
name: "Groq Cloud", | ||
requiresApiKey: false, | ||
@@ -95,4 +95,4 @@ requiresEndpointUrl: false, | ||
watsonx: { | ||
id: 'watsonx', | ||
name: SupportedProviders.watsonx, | ||
id: SupportedProviders.watsonx, | ||
name: "IBM WatsonX", | ||
requiresApiKey: true, | ||
@@ -102,12 +102,5 @@ requiresEndpointUrl: true, | ||
}, | ||
/*'cohere': { | ||
id: 'cohere', | ||
name: SupportedProviders.cohere, | ||
requiresApiKey: true, | ||
requiresEndpointUrl: false, | ||
supportSearch: false, | ||
},*/ | ||
'virtual_lb': { | ||
id: 'virtual_lb', | ||
name: SupportedProviders.virtual_lb, | ||
id: SupportedProviders.virtual_lb, | ||
name: "Virtual - Load Balancer", | ||
requiresApiKey: false, | ||
@@ -118,4 +111,4 @@ requiresEndpointUrl: false, | ||
'virtual_mediator': { | ||
id: 'virtual_mediator', | ||
name: SupportedProviders.virtual_mediator, | ||
id: SupportedProviders.virtual_mediator, | ||
name: "Virtual - Mediator", | ||
requiresApiKey: false, | ||
@@ -126,4 +119,4 @@ requiresEndpointUrl: false, | ||
'test': { | ||
id: 'test', | ||
name: SupportedProviders.test, | ||
id: SupportedProviders.test, | ||
name: "Test LLM", | ||
requiresApiKey: false, | ||
@@ -130,0 +123,0 @@ requiresEndpointUrl: false, |
@@ -9,2 +9,3 @@ "use strict"; | ||
ProjectRoles["admin"] = "admin"; | ||
ProjectRoles["project_admin"] = "project_admin"; | ||
ProjectRoles["developer"] = "developer"; | ||
@@ -15,2 +16,3 @@ ProjectRoles["application"] = "application"; | ||
ProjectRoles["billing"] = "billing"; | ||
ProjectRoles["member"] = "member"; | ||
})(ProjectRoles || (exports.ProjectRoles = ProjectRoles = {})); | ||
@@ -17,0 +19,0 @@ function isRoleIncludedIn(role, includingRole) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AccountRefPopulate = exports.UserRefPopulate = void 0; | ||
exports.AccountRefPopulate = exports.Datacenters = exports.UserRefPopulate = void 0; | ||
exports.UserRefPopulate = "id name email picture"; | ||
var Datacenters; | ||
(function (Datacenters) { | ||
Datacenters["aws"] = "aws"; | ||
Datacenters["gcp"] = "gcp"; | ||
Datacenters["azure"] = "azure"; | ||
})(Datacenters || (exports.Datacenters = Datacenters = {})); | ||
exports.AccountRefPopulate = "id name"; | ||
//# sourceMappingURL=user.js.map |
@@ -6,2 +6,25 @@ /** | ||
*/ | ||
export var Permission; | ||
(function (Permission) { | ||
Permission["int_read"] = "interaction:read"; | ||
Permission["int_write"] = "interaction:write"; | ||
Permission["int_delete"] = "interaction:delete"; | ||
Permission["int_execute"] = "interaction:execute"; | ||
Permission["run_read"] = "run:read"; | ||
Permission["run_write"] = "run:write"; | ||
Permission["env_manage"] = "environment:manage"; | ||
Permission["project_manage"] = "project:manage"; | ||
Permission["project_key_create"] = "project:key:create"; | ||
Permission["project_key_read"] = "project:key:read"; | ||
Permission["account_read"] = "account:read"; | ||
Permission["account_manage"] = "account:manage"; | ||
Permission["manage_billing"] = "account:billing"; | ||
Permission["content_read"] = "content:read"; | ||
Permission["content_create"] = "content:create"; | ||
Permission["content_update"] = "content:update"; | ||
Permission["content_delete"] = "content:delete"; | ||
Permission["content_admin"] = "content:admin"; | ||
Permission["workflow_run"] = "workflow:run"; | ||
Permission["access_protected"] = "access_protected"; | ||
})(Permission || (Permission = {})); | ||
export var AccessControlledResource; | ||
@@ -8,0 +31,0 @@ (function (AccessControlledResource) { |
@@ -21,4 +21,4 @@ export var SupportedProviders; | ||
'openai': { | ||
id: 'openai', | ||
name: SupportedProviders.openai, | ||
id: SupportedProviders.openai, | ||
name: "OpenAI", | ||
requiresApiKey: true, | ||
@@ -29,4 +29,4 @@ requiresEndpointUrl: false, | ||
'azure_openai': { | ||
id: 'azure_openai', | ||
name: SupportedProviders.azure_openai, | ||
id: SupportedProviders.azure_openai, | ||
name: "Azure OpenAI", | ||
requiresApiKey: false, | ||
@@ -37,4 +37,4 @@ requiresEndpointUrl: true, | ||
'huggingface_ie': { | ||
id: 'huggingface_ie', | ||
name: SupportedProviders.huggingface_ie, | ||
id: SupportedProviders.huggingface_ie, | ||
name: "HuggingFace Inference Endpoint", | ||
requiresApiKey: true, | ||
@@ -44,4 +44,4 @@ requiresEndpointUrl: true, | ||
'replicate': { | ||
id: 'replicate', | ||
name: SupportedProviders.replicate, | ||
id: SupportedProviders.replicate, | ||
name: "Repicate", | ||
requiresApiKey: true, | ||
@@ -52,4 +52,4 @@ requiresEndpointUrl: false, | ||
'bedrock': { | ||
id: 'bedrock', | ||
name: SupportedProviders.bedrock, | ||
id: SupportedProviders.bedrock, | ||
name: "AWS Bedrock", | ||
requiresApiKey: false, | ||
@@ -60,4 +60,4 @@ requiresEndpointUrl: false, | ||
vertexai: { | ||
id: 'vertexai', | ||
name: SupportedProviders.vertexai, | ||
id: SupportedProviders.vertexai, | ||
name: "Google Vertex AI", | ||
requiresApiKey: false, | ||
@@ -68,4 +68,4 @@ requiresEndpointUrl: false, | ||
togetherai: { | ||
id: 'togetherai', | ||
name: SupportedProviders.togetherai, | ||
id: SupportedProviders.togetherai, | ||
name: "Together AI", | ||
requiresApiKey: false, | ||
@@ -76,4 +76,4 @@ requiresEndpointUrl: false, | ||
mistralai: { | ||
id: 'mistralai', | ||
name: SupportedProviders.mistralai, | ||
id: SupportedProviders.mistralai, | ||
name: "Mistral AI", | ||
requiresApiKey: false, | ||
@@ -84,4 +84,4 @@ requiresEndpointUrl: false, | ||
groq: { | ||
id: 'groq', | ||
name: SupportedProviders.groq, | ||
id: SupportedProviders.groq, | ||
name: "Groq Cloud", | ||
requiresApiKey: false, | ||
@@ -92,4 +92,4 @@ requiresEndpointUrl: false, | ||
watsonx: { | ||
id: 'watsonx', | ||
name: SupportedProviders.watsonx, | ||
id: SupportedProviders.watsonx, | ||
name: "IBM WatsonX", | ||
requiresApiKey: true, | ||
@@ -99,12 +99,5 @@ requiresEndpointUrl: true, | ||
}, | ||
/*'cohere': { | ||
id: 'cohere', | ||
name: SupportedProviders.cohere, | ||
requiresApiKey: true, | ||
requiresEndpointUrl: false, | ||
supportSearch: false, | ||
},*/ | ||
'virtual_lb': { | ||
id: 'virtual_lb', | ||
name: SupportedProviders.virtual_lb, | ||
id: SupportedProviders.virtual_lb, | ||
name: "Virtual - Load Balancer", | ||
requiresApiKey: false, | ||
@@ -115,4 +108,4 @@ requiresEndpointUrl: false, | ||
'virtual_mediator': { | ||
id: 'virtual_mediator', | ||
name: SupportedProviders.virtual_mediator, | ||
id: SupportedProviders.virtual_mediator, | ||
name: "Virtual - Mediator", | ||
requiresApiKey: false, | ||
@@ -123,4 +116,4 @@ requiresEndpointUrl: false, | ||
'test': { | ||
id: 'test', | ||
name: SupportedProviders.test, | ||
id: SupportedProviders.test, | ||
name: "Test LLM", | ||
requiresApiKey: false, | ||
@@ -127,0 +120,0 @@ requiresEndpointUrl: false, |
@@ -5,2 +5,3 @@ export var ProjectRoles; | ||
ProjectRoles["admin"] = "admin"; | ||
ProjectRoles["project_admin"] = "project_admin"; | ||
ProjectRoles["developer"] = "developer"; | ||
@@ -11,2 +12,3 @@ ProjectRoles["application"] = "application"; | ||
ProjectRoles["billing"] = "billing"; | ||
ProjectRoles["member"] = "member"; | ||
})(ProjectRoles || (ProjectRoles = {})); | ||
@@ -13,0 +15,0 @@ export function isRoleIncludedIn(role, includingRole) { |
export const UserRefPopulate = "id name email picture"; | ||
export var Datacenters; | ||
(function (Datacenters) { | ||
Datacenters["aws"] = "aws"; | ||
Datacenters["gcp"] = "gcp"; | ||
Datacenters["azure"] = "azure"; | ||
})(Datacenters || (Datacenters = {})); | ||
export const AccountRefPopulate = "id name"; | ||
//# sourceMappingURL=user.js.map |
@@ -7,2 +7,24 @@ /** | ||
import { ProjectRoles } from "./project.js"; | ||
export declare enum Permission { | ||
int_read = "interaction:read", | ||
int_write = "interaction:write", | ||
int_delete = "interaction:delete", | ||
int_execute = "interaction:execute", | ||
run_read = "run:read", | ||
run_write = "run:write", | ||
env_manage = "environment:manage", | ||
project_manage = "project:manage", | ||
project_key_create = "project:key:create", | ||
project_key_read = "project:key:read", | ||
account_read = "account:read", | ||
account_manage = "account:manage", | ||
manage_billing = "account:billing", | ||
content_read = "content:read", | ||
content_create = "content:create", | ||
content_update = "content:update", | ||
content_delete = "content:delete", | ||
content_admin = "content:admin",//manage schemas, workflows, rules | ||
workflow_run = "workflow:run", | ||
access_protected = "access_protected" | ||
} | ||
export declare enum AccessControlledResource { | ||
@@ -9,0 +31,0 @@ project = "project", |
@@ -42,6 +42,6 @@ import { ProjectRef, ProjectRoles } from "./project.js"; | ||
account: AccountRef; | ||
account_roles: ProjectRoles[]; | ||
accounts: AccountRef[]; | ||
project?: ProjectRef; | ||
projects: ProjectRef[]; | ||
role?: string; | ||
project_roles?: ProjectRoles[]; | ||
iss: string; | ||
@@ -48,0 +48,0 @@ aud: string; |
@@ -18,4 +18,4 @@ import { AIModel } from "@llumiverse/core"; | ||
export interface SupportedProviderParams { | ||
id: string; | ||
name: SupportedProviders; | ||
id: SupportedProviders; | ||
name: string; | ||
requiresApiKey: boolean; | ||
@@ -22,0 +22,0 @@ requiresEndpointUrl: boolean; |
@@ -174,2 +174,6 @@ import type { JSONObject } from "@llumiverse/core"; | ||
} | ||
export interface GenerateInteractionPayload { | ||
description: string; | ||
config: InteractionExecutionConfiguration; | ||
} | ||
export interface GenerateTestDataPayload { | ||
@@ -176,0 +180,0 @@ message?: string; |
@@ -0,3 +1,5 @@ | ||
import { AccountRef } from "./user.js"; | ||
export interface ICreateProjectPayload { | ||
name: string; | ||
namespace: string; | ||
description?: string; | ||
@@ -7,3 +9,4 @@ } | ||
owner = "owner",// all permissions | ||
admin = "admin",// all permissions but manage_account | ||
admin = "admin",// all permissions | ||
project_admin = "project_admin",// all permissions but manage_account, manage_billing | ||
developer = "developer",// all permissions but manage_account, manage_billing, manage_roles, delete | ||
@@ -13,5 +16,11 @@ application = "application",// executor + request_pk | ||
reader = "reader",// can only read (browse) | ||
billing = "billing" | ||
billing = "billing",// can only manage billings | ||
member = "member" | ||
} | ||
export declare function isRoleIncludedIn(role: string, includingRole: string): boolean; | ||
export interface PopulatedProjectRef { | ||
id: string; | ||
name: string; | ||
account: AccountRef; | ||
} | ||
export interface ProjectRef { | ||
@@ -33,2 +42,4 @@ id: string; | ||
embeddings?: ProjectConfigurationEmbeddings; | ||
datacenter?: string; | ||
storage_bucket?: string; | ||
} | ||
@@ -44,2 +55,3 @@ export interface ProjectConfigurationEmbeddings { | ||
name: string; | ||
namespace: string; | ||
description?: string; | ||
@@ -46,0 +58,0 @@ account: string; |
@@ -0,1 +1,2 @@ | ||
import { ProjectRoles } from "./project.js"; | ||
import { AccountRef } from "./user.js"; | ||
@@ -19,4 +20,5 @@ export declare enum TransientTokenType { | ||
email: string; | ||
role: string; | ||
role: ProjectRoles; | ||
account: AccountRef; | ||
projects?: string[]; | ||
invitedBy: { | ||
@@ -23,0 +25,0 @@ name: string; |
@@ -25,2 +25,7 @@ import { ApiKey } from "./apikey.js"; | ||
export declare const UserRefPopulate = "id name email picture"; | ||
export declare enum Datacenters { | ||
aws = "aws", | ||
gcp = "gcp", | ||
azure = "azure" | ||
} | ||
export interface Account { | ||
@@ -38,2 +43,3 @@ id: string; | ||
}; | ||
datacenter: string; | ||
created_by: string; | ||
@@ -56,2 +62,3 @@ updated_by: string; | ||
role: ProjectRoles; | ||
projects?: string[]; | ||
} | ||
@@ -58,0 +65,0 @@ export interface InviteUserResponsePayload { |
{ | ||
"name": "@becomposable/common", | ||
"version": "0.30.1", | ||
"type": "module", | ||
"name": "@becomposable/common", | ||
"version": "0.31.0", | ||
"type": "module", | ||
"types": "./lib/types/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"exports": { | ||
"types": "./lib/types/index.d.ts", | ||
"files": [ | ||
"lib", | ||
"src" | ||
], | ||
"scripts": { | ||
"test": "vitest run", | ||
"build": "tsmod build", | ||
"clean": "rimraf ./node_modules ./lib ./tsconfig.tsbuildinfo" | ||
}, | ||
"exports": { | ||
"types": "./lib/types/index.d.ts", | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
}, | ||
"devDependencies": { | ||
"ts-dual-module": "^0.6.3", | ||
"typescript": "^5.0.2", | ||
"vitest": "^1.4.0" | ||
}, | ||
"dependencies": { | ||
"@llumiverse/core": "^0.13.0", | ||
"ajv": "^8.16.0", | ||
"json-schema": "^0.4.0" | ||
}, | ||
"ts_dual_module": { | ||
"outDir": "lib" | ||
} | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js" | ||
}, | ||
"devDependencies": { | ||
"@types/json-schema": "^7.0.15", | ||
"ts-dual-module": "^0.6.3", | ||
"typescript": "^5.0.2", | ||
"vitest": "^1.4.0" | ||
}, | ||
"dependencies": { | ||
"ajv": "^8.16.0", | ||
"json-schema": "^0.4.0", | ||
"@llumiverse/core": "0.14.0" | ||
}, | ||
"ts_dual_module": { | ||
"outDir": "lib" | ||
}, | ||
"scripts": { | ||
"preinstall": "npx only-allow pnpm", | ||
"test": "vitest run", | ||
"build": "npx tsmod build", | ||
"clean": "rimraf ./node_modules ./lib ./tsconfig.tsbuildinfo" | ||
} | ||
} |
@@ -9,3 +9,34 @@ /** | ||
export enum Permission { | ||
int_read = "interaction:read", | ||
int_write = "interaction:write", | ||
int_delete = "interaction:delete", | ||
int_execute = "interaction:execute", | ||
run_read = "run:read", | ||
run_write = "run:write", | ||
env_manage = "environment:manage", | ||
project_manage = "project:manage", | ||
project_key_create = "project:key:create", | ||
project_key_read = "project:key:read", | ||
account_read = "account:read", | ||
account_manage = "account:manage", | ||
manage_billing = "account:billing", | ||
content_read = "content:read", | ||
content_create = "content:create", | ||
content_update = "content:update", | ||
content_delete = "content:delete", | ||
content_admin = "content:admin", //manage schemas, workflows, rules | ||
workflow_run = "workflow:run", | ||
access_protected = "access_protected", | ||
} | ||
export enum AccessControlledResource { | ||
@@ -32,3 +63,3 @@ project = "project", | ||
export interface ACECreatePayload extends | ||
Omit<AccessControlEntry, "created_at" | "updated_at" | "id" > { | ||
Omit<AccessControlEntry, "created_at" | "updated_at" | "id"> { | ||
} | ||
@@ -47,3 +78,3 @@ | ||
type?: AccessControlledResource | ||
} |
@@ -53,6 +53,6 @@ import { ProjectRef, ProjectRoles } from "./project.js"; | ||
account: AccountRef; | ||
account_roles: ProjectRoles[]; | ||
accounts: AccountRef[]; | ||
project?: ProjectRef; | ||
projects: ProjectRef[]; | ||
role?: string; | ||
project_roles?: ProjectRoles[]; | ||
@@ -59,0 +59,0 @@ iss: string; //issuer |
@@ -23,4 +23,4 @@ import { AIModel } from "@llumiverse/core"; | ||
export interface SupportedProviderParams { | ||
id: string; | ||
name: SupportedProviders; | ||
id: SupportedProviders; | ||
name: string; | ||
requiresApiKey: boolean; | ||
@@ -34,4 +34,4 @@ requiresEndpointUrl: boolean; | ||
{ | ||
id: 'openai', | ||
name: SupportedProviders.openai, | ||
id: SupportedProviders.openai, | ||
name: "OpenAI", | ||
requiresApiKey: true, | ||
@@ -43,4 +43,4 @@ requiresEndpointUrl: false, | ||
{ | ||
id: 'azure_openai', | ||
name: SupportedProviders.azure_openai, | ||
id: SupportedProviders.azure_openai, | ||
name: "Azure OpenAI", | ||
requiresApiKey: false, | ||
@@ -52,4 +52,4 @@ requiresEndpointUrl: true, | ||
{ | ||
id: 'huggingface_ie', | ||
name: SupportedProviders.huggingface_ie, | ||
id: SupportedProviders.huggingface_ie, | ||
name: "HuggingFace Inference Endpoint", | ||
requiresApiKey: true, | ||
@@ -60,4 +60,4 @@ requiresEndpointUrl: true, | ||
{ | ||
id: 'replicate', | ||
name: SupportedProviders.replicate, | ||
id: SupportedProviders.replicate, | ||
name: "Repicate", | ||
requiresApiKey: true, | ||
@@ -69,4 +69,4 @@ requiresEndpointUrl: false, | ||
{ | ||
id: 'bedrock', | ||
name: SupportedProviders.bedrock, | ||
id: SupportedProviders.bedrock, | ||
name: "AWS Bedrock", | ||
requiresApiKey: false, | ||
@@ -77,4 +77,4 @@ requiresEndpointUrl: false, | ||
vertexai: { | ||
id: 'vertexai', | ||
name: SupportedProviders.vertexai, | ||
id: SupportedProviders.vertexai, | ||
name: "Google Vertex AI", | ||
requiresApiKey: false, | ||
@@ -85,4 +85,4 @@ requiresEndpointUrl: false, | ||
togetherai: { | ||
id: 'togetherai', | ||
name: SupportedProviders.togetherai, | ||
id: SupportedProviders.togetherai, | ||
name: "Together AI", | ||
requiresApiKey: false, | ||
@@ -93,4 +93,4 @@ requiresEndpointUrl: false, | ||
mistralai: { | ||
id: 'mistralai', | ||
name: SupportedProviders.mistralai, | ||
id: SupportedProviders.mistralai, | ||
name: "Mistral AI", | ||
requiresApiKey: false, | ||
@@ -101,4 +101,4 @@ requiresEndpointUrl: false, | ||
groq: { | ||
id: 'groq', | ||
name: SupportedProviders.groq, | ||
id: SupportedProviders.groq, | ||
name: "Groq Cloud", | ||
requiresApiKey: false, | ||
@@ -109,4 +109,4 @@ requiresEndpointUrl: false, | ||
watsonx: { | ||
id: 'watsonx', | ||
name: SupportedProviders.watsonx, | ||
id: SupportedProviders.watsonx, | ||
name: "IBM WatsonX", | ||
requiresApiKey: true, | ||
@@ -116,13 +116,6 @@ requiresEndpointUrl: true, | ||
}, | ||
/*'cohere': { | ||
id: 'cohere', | ||
name: SupportedProviders.cohere, | ||
requiresApiKey: true, | ||
requiresEndpointUrl: false, | ||
supportSearch: false, | ||
},*/ | ||
'virtual_lb': | ||
{ | ||
id: 'virtual_lb', | ||
name: SupportedProviders.virtual_lb, | ||
id: SupportedProviders.virtual_lb, | ||
name: "Virtual - Load Balancer", | ||
requiresApiKey: false, | ||
@@ -134,4 +127,4 @@ requiresEndpointUrl: false, | ||
{ | ||
id: 'virtual_mediator', | ||
name: SupportedProviders.virtual_mediator, | ||
id: SupportedProviders.virtual_mediator, | ||
name: "Virtual - Mediator", | ||
requiresApiKey: false, | ||
@@ -142,4 +135,4 @@ requiresEndpointUrl: false, | ||
'test': { | ||
id: 'test', | ||
name: SupportedProviders.test, | ||
id: SupportedProviders.test, | ||
name: "Test LLM", | ||
requiresApiKey: false, | ||
@@ -146,0 +139,0 @@ requiresEndpointUrl: false, |
@@ -224,2 +224,7 @@ import type { JSONObject } from "@llumiverse/core"; | ||
export interface GenerateInteractionPayload { | ||
description: string; | ||
config: InteractionExecutionConfiguration; | ||
} | ||
export interface GenerateTestDataPayload { | ||
@@ -226,0 +231,0 @@ message?: string; |
@@ -0,3 +1,6 @@ | ||
import { AccountRef } from "./user.js"; | ||
export interface ICreateProjectPayload { | ||
name: string; | ||
namespace: string; | ||
description?: string; | ||
@@ -7,3 +10,4 @@ } | ||
owner = "owner", // all permissions | ||
admin = "admin", // all permissions but manage_account | ||
admin = "admin", // all permissions | ||
project_admin = "project_admin", // all permissions but manage_account, manage_billing | ||
developer = "developer", // all permissions but manage_account, manage_billing, manage_roles, delete | ||
@@ -14,2 +18,3 @@ application = "application", // executor + request_pk | ||
billing = "billing", // can only manage billings | ||
member = "member", // can only access, but no specific permissions | ||
} | ||
@@ -32,2 +37,8 @@ | ||
export interface PopulatedProjectRef { | ||
id: string; | ||
name: string; | ||
account: AccountRef | ||
} | ||
export interface ProjectRef { | ||
@@ -54,12 +65,14 @@ id: string; | ||
generate_embeddings: boolean; | ||
embeddings?: ProjectConfigurationEmbeddings | ||
datacenter?: string; | ||
storage_bucket?: string; | ||
} | ||
export interface ProjectConfigurationEmbeddings { | ||
environment: string; | ||
max_tokens: number; | ||
dimensions: number; | ||
model?: string; | ||
environment: string; | ||
max_tokens: number; | ||
dimensions: number; | ||
model?: string; | ||
} | ||
@@ -70,2 +83,3 @@ | ||
name: string; | ||
namespace: string; | ||
description?: string; | ||
@@ -99,2 +113,2 @@ account: string; | ||
[string: string]: any; | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
import { ProjectRoles } from "./project.js"; | ||
import { AccountRef } from "./user.js"; | ||
@@ -25,5 +26,6 @@ | ||
email: string; | ||
role: string; | ||
role: ProjectRoles; | ||
account: AccountRef; | ||
projects?: string[]; | ||
invitedBy: { name: string, email: string; }; | ||
} |
@@ -28,2 +28,8 @@ import { ApiKey } from "./apikey.js"; | ||
export enum Datacenters { | ||
aws = 'aws', | ||
gcp = 'gcp', | ||
azure = 'azure' | ||
} | ||
export interface Account { | ||
@@ -44,4 +50,6 @@ id: string; | ||
created_by: string, | ||
updated_by: string, | ||
datacenter: string; | ||
created_by: string; | ||
updated_by: string; | ||
created_at: string; | ||
@@ -66,2 +74,3 @@ updated_at: string; | ||
role: ProjectRoles; | ||
projects?: string[]; | ||
} | ||
@@ -68,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
172
0
4072
223108
4
1
+ Added@llumiverse/core@0.14.0(transitive)
+ Added@types/node@22.10.1(transitive)
+ Addedajv-formats@3.0.1(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@llumiverse/core@0.13.0(transitive)
Updated@llumiverse/core@0.14.0