New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nuclia/core

Package Overview
Dependencies
Maintainers
3
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuclia/core - npm Package Compare versions

Comparing version 1.11.8 to 1.12.0

12

CHANGELOG.md

@@ -1,5 +0,15 @@

# 1.11.8 (unreleased)
# 1.12.0 (2024-02-22)
### Breaking changes
- `getLearningConfigurations` is now replaced by `getLearningSchema` method which is requiring account id and zone for Cloud accounts.
### Improvements
- New `getLearningSchema` method in KB (do the same as db’s `getLearningConfigurations`, as KB endpoint is proxying db one internally).
# 1.11.8 (2024-02-21)
### Improvements
- Support `all`, `any`, `none` and `not_all` operators in `filters` parameter

@@ -6,0 +16,0 @@

@@ -175,4 +175,10 @@ import { Observable } from 'rxjs';

deleteNUAClient(accountId: string, client_id: string, zone: string): Observable<void>;
getLearningConfigurations(): Observable<LearningConfigurations>;
/**
* Get learning configuration schema.
* When used on Cloud account, this method is requiring account id and zone parameters.
* When used on standalone, this method doesn't take any parameter
*/
getLearningSchema(): Observable<LearningConfigurations>;
getLearningSchema(accountId: string, zone: string): Observable<LearningConfigurations>;
/**
* Extract NER tokens from a text.

@@ -179,0 +185,0 @@ */

@@ -182,2 +182,3 @@ export type AccountTypes = 'stash-trial' | 'v3starter' | 'v3fly' | 'v3growth' | 'v3enterprise' | 'stash-basic' | 'stash-team' | 'stash-startup' | 'stash-starter' | 'stash-growth' | 'stash-enterprise' | 'stash-developer' | 'stash-business';

}
export declare function normalizeSchemaProperty(config: LearningConfigurations): LearningConfigurations;
export declare const USER_PROMPTS = "user_prompts";

@@ -184,0 +185,0 @@ export declare const SUMMARY_PROMPT = "summary_prompt";

3

esm/libs/sdk-core/src/lib/db/kb/kb.d.ts

@@ -9,3 +9,3 @@ import { Observable } from 'rxjs';

import { Training } from '../training';
import { ResourceProperties } from '../db.models';
import { LearningConfigurations, ResourceProperties } from '../db.models';
import { NotificationMessage } from '../notifications';

@@ -240,2 +240,3 @@ export interface KnowledgeBox extends IKnowledgeBox {

}>;
getLearningSchema(): Observable<LearningConfigurations>;
getUsers(accountSlug: string): Observable<FullKbUser[]>;

@@ -242,0 +243,0 @@ getInvites(): Observable<KbInvite[]>;

@@ -6,3 +6,3 @@ import type { Observable } from 'rxjs';

import type { IErrorResponse } from '../../models';
import type { ResourceProperties } from '../db.models';
import { LearningConfigurations, ResourceProperties } from '../db.models';
import { NotificationMessage, NotificationOperation } from '../notifications';

@@ -100,2 +100,3 @@ export type KBStates = 'PUBLISHED' | 'PRIVATE';

}>;
getLearningSchema(): Observable<LearningConfigurations>;
getUsers(accountSlug: string): Observable<FullKbUser[]>;

@@ -102,0 +103,0 @@ listenToAllNotifications(): Observable<NotificationMessage[]>;

import type { Observable } from 'rxjs';
import type { AuthTokens, JwtUser } from './auth';
import { Account, AccountCreation, AccountModification, AccountStatus, AccountTypes, EventList, IKnowledgeBoxItem, IStandaloneKb, KnowledgeBox, KnowledgeBoxCreation, LearningConfigurations, NUAClient, NUAClientPayload, PredictedToken, ProcessingPullResponse, ProcessingPushResponse, ProcessingStat, ProcessingStatusResponse, StatsPeriod, StatsRange, StatsType, Welcome, WritableKnowledgeBox } from './db';
import { KbIndex } from './db';
import { Account, AccountCreation, AccountModification, AccountStatus, AccountTypes, EventList, IKnowledgeBoxItem, IStandaloneKb, KbIndex, KnowledgeBox, KnowledgeBoxCreation, LearningConfigurations, NUAClient, NUAClientPayload, PredictedToken, ProcessingPullResponse, ProcessingPushResponse, ProcessingStat, ProcessingStatusResponse, StatsPeriod, StatsRange, StatsType, Welcome, WritableKnowledgeBox } from './db';
export interface INuclia {

@@ -119,3 +118,4 @@ options: NucliaOptions;

getNUAActivity(accountId: string, client_id: string, zoneSlug: string, pageIndex?: number): Observable<EventList>;
getLearningConfigurations(): Observable<LearningConfigurations>;
getLearningSchema(): Observable<LearningConfigurations>;
getLearningSchema(accountId: string, zone: string): Observable<LearningConfigurations>;
predictTokens(text: string): Observable<PredictedToken[]>;

@@ -122,0 +122,0 @@ predictAnswer(question: string, context: string[], model?: string): Observable<string>;

{
"name": "@nuclia/core",
"version": "1.11.8",
"version": "1.12.0",
"description": "SDK allowing to integrate Nuclia services in your frontend application",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -175,4 +175,10 @@ import { Observable } from 'rxjs';

deleteNUAClient(accountId: string, client_id: string, zone: string): Observable<void>;
getLearningConfigurations(): Observable<LearningConfigurations>;
/**
* Get learning configuration schema.
* When used on Cloud account, this method is requiring account id and zone parameters.
* When used on standalone, this method doesn't take any parameter
*/
getLearningSchema(): Observable<LearningConfigurations>;
getLearningSchema(accountId: string, zone: string): Observable<LearningConfigurations>;
/**
* Extract NER tokens from a text.

@@ -179,0 +185,0 @@ */

@@ -182,2 +182,3 @@ export type AccountTypes = 'stash-trial' | 'v3starter' | 'v3fly' | 'v3growth' | 'v3enterprise' | 'stash-basic' | 'stash-team' | 'stash-startup' | 'stash-starter' | 'stash-growth' | 'stash-enterprise' | 'stash-developer' | 'stash-business';

}
export declare function normalizeSchemaProperty(config: LearningConfigurations): LearningConfigurations;
export declare const USER_PROMPTS = "user_prompts";

@@ -184,0 +185,0 @@ export declare const SUMMARY_PROMPT = "summary_prompt";

@@ -9,3 +9,3 @@ import { Observable } from 'rxjs';

import { Training } from '../training';
import { ResourceProperties } from '../db.models';
import { LearningConfigurations, ResourceProperties } from '../db.models';
import { NotificationMessage } from '../notifications';

@@ -240,2 +240,3 @@ export interface KnowledgeBox extends IKnowledgeBox {

}>;
getLearningSchema(): Observable<LearningConfigurations>;
getUsers(accountSlug: string): Observable<FullKbUser[]>;

@@ -242,0 +243,0 @@ getInvites(): Observable<KbInvite[]>;

@@ -6,3 +6,3 @@ import type { Observable } from 'rxjs';

import type { IErrorResponse } from '../../models';
import type { ResourceProperties } from '../db.models';
import { LearningConfigurations, ResourceProperties } from '../db.models';
import { NotificationMessage, NotificationOperation } from '../notifications';

@@ -100,2 +100,3 @@ export type KBStates = 'PUBLISHED' | 'PRIVATE';

}>;
getLearningSchema(): Observable<LearningConfigurations>;
getUsers(accountSlug: string): Observable<FullKbUser[]>;

@@ -102,0 +103,0 @@ listenToAllNotifications(): Observable<NotificationMessage[]>;

import type { Observable } from 'rxjs';
import type { AuthTokens, JwtUser } from './auth';
import { Account, AccountCreation, AccountModification, AccountStatus, AccountTypes, EventList, IKnowledgeBoxItem, IStandaloneKb, KnowledgeBox, KnowledgeBoxCreation, LearningConfigurations, NUAClient, NUAClientPayload, PredictedToken, ProcessingPullResponse, ProcessingPushResponse, ProcessingStat, ProcessingStatusResponse, StatsPeriod, StatsRange, StatsType, Welcome, WritableKnowledgeBox } from './db';
import { KbIndex } from './db';
import { Account, AccountCreation, AccountModification, AccountStatus, AccountTypes, EventList, IKnowledgeBoxItem, IStandaloneKb, KbIndex, KnowledgeBox, KnowledgeBoxCreation, LearningConfigurations, NUAClient, NUAClientPayload, PredictedToken, ProcessingPullResponse, ProcessingPushResponse, ProcessingStat, ProcessingStatusResponse, StatsPeriod, StatsRange, StatsType, Welcome, WritableKnowledgeBox } from './db';
export interface INuclia {

@@ -119,3 +118,4 @@ options: NucliaOptions;

getNUAActivity(accountId: string, client_id: string, zoneSlug: string, pageIndex?: number): Observable<EventList>;
getLearningConfigurations(): Observable<LearningConfigurations>;
getLearningSchema(): Observable<LearningConfigurations>;
getLearningSchema(accountId: string, zone: string): Observable<LearningConfigurations>;
predictTokens(text: string): Observable<PredictedToken[]>;

@@ -122,0 +122,0 @@ predictAnswer(question: string, context: string[], model?: string): Observable<string>;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc