@or-sdk/knowledge-models 0.25.9-beta.4275.0 → 0.26.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.26.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/knowledge-models@0.25.8...@or-sdk/knowledge-models@0.26.0) (2026-08-05)
7
+
8
+
9
+ ### Features
10
+
11
+ * **packages:** add package descriptions and published files metadata ([801f823](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/801f823034717ef8b961405a73d51ebc2ec07649))
12
+
13
+
14
+
6
15
  ## [0.25.8](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/knowledge-models@0.25.4...@or-sdk/knowledge-models@0.25.8) (2026-08-04)
7
16
 
8
17
  **Note:** Version bump only for package @or-sdk/knowledge-models
package/README.md CHANGED
@@ -64,3 +64,61 @@ const knowledgeModels = new KnowledgeModels({
64
64
  ## More detail
65
65
 
66
66
  Full signatures and exported types are available in `src/` and `dist/types/`.
67
+
68
+
69
+ ## Additional API reference
70
+
71
+ Methods below were missing from the package guide. Signatures and return types are taken directly from the exported source API.
72
+
73
+ ### `KnowledgeModels`
74
+
75
+ | Method | Returns | Purpose |
76
+ |---|---|---|
77
+ | `listIntentsLabels({ appId, kbId }: { appId: string; kbId: string; })` | `Promise<IntentLabelsResponse>` | List intents labels |
78
+ | `listUtterances({ kbId, limit, ...query }: { kbId: string; limit?: number; query?: { [key: string]: unknown; }; })` | `Promise<List<Utterance>>` | List utterances |
79
+ | `listPatterns({ kbId, limit, ...query }: { kbId: string; limit?: number; query?: { [key: string]: unknown; }; })` | `Promise<List<Pattern>>` | List patterns |
80
+ | `listPrebuiltModels({ limit, ...query }: { limit?: number; query?: { [key: string]: unknown; }; } = {})` | `Promise<List<PrebuiltModel>>` | List prebuilt models |
81
+ | `removePrebuiltModelFromKM({ prebuiltModelId, kbId, }: { prebuiltModelId: string; kbId: string; })` | `Promise<void>` | Remove prebuilt model from knowledge model |
82
+ | `addPrebuiltModelToKM({ kbId, prebuiltModelId, appId, appName, shouldCreateNewApplication, responses, entities, }: { kbId: string; prebuiltModelId: string; appId: string; appName: string; shouldCreateNewApplication: boolean; responses: string[]; entities: string[]; })` | `Promise<Application>` | Add prebuilt model to knowledge model |
83
+ | `getPrebuiltModelDetails({ kbId, prebuiltModelId, }: { kbId: string; prebuiltModelId: string; })` | `Promise<PrebuiltModelDetails>` | Get prebuilt models details |
84
+ | `createApplication({ kbId, name, desc, culture, model_features, }: { kbId: string; name: string; desc: string; culture: string; model_features: string[]; })` | `Promise<Application>` | Create application |
85
+ | `createIntent({ name, type, kbId, appId, postprocessFlows, customData, features, }: { name: string; type: string; kbId: string; appId: string; postprocessFlows: string[]; customData?: { [key: string]: unknown; }; features: string[]; })` | `Promise<Intent>` | Create intent |
86
+ | `createUtterance({ appId, kbId, autoGenerated, text, intent, entities, }: { appId: string; kbId: string; autoGenerated?: boolean; text: string; intent: string; entities: UtteranceEntity[]; })` | `Promise<Utterance>` | Create utterance |
87
+ | `createPattern({ appId, kbId, pattern, intent, entities, }: { appId: string; kbId: string; pattern: string; intent: string; entities: PatternEntity[]; })` | `Promise<Pattern>` | Create pattern |
88
+ | `createPair({ kbId, applicationName, intentName, intentType, utteranceText, }: { kbId: string; applicationName: string; intentName: string; intentType: string; utteranceText: string; })` | `Promise<Pair>` | Create pair |
89
+ | `batchCreatePairs({ kbId, utterances, }: { kbId: string; utterances: { text: string; intent: string; intentType: string; application: string; }[]; })` | `Promise<CreatePairsResponse>` | Batch create pairs |
90
+ | `batchCreatePairsFile({ kbId, fileUrl, }: { kbId: string; fileUrl: string; })` | `Promise<CreatePairsResponse>` | Batch create pairs from file |
91
+ | `createPatternPair({ kbId, applicationName, intentName, intentType, patternText, patternEntities, }: { kbId: string; applicationName: string; intentName: string; intentType: string; patternText: string; patternEntities: PatternEntity[]; })` | `Promise<Pair>` | Create pattern pair |
92
+ | `createPairsCsv({ kbId, fileUrl, applicationName, delimiter, }: { kbId: string; fileUrl: string; applicationName: string; delimiter: string; })` | `Promise<CreatePairsResponse>` | Create pairs from csv |
93
+ | `createEntity({ type, kbId, name, roles, ...rest }: { type: string; kbId: string; name: string; roles: unknown[]; rest?: { [key: string]: unknown; }; })` | `Promise<Entity>` | Create entity |
94
+ | `createFeature({ kbId, name, mode, words, enabledForAllModels, }: { kbId: string; name: string; mode: boolean; words: string[]; enabledForAllModels: boolean; })` | `Promise<Feature>` | Create feature |
95
+ | `updateApplication({ kbId, id, name, desc, model_features, }: { kbId: string; id: string; name?: string; desc?: string; model_features?: string[]; })` | `Promise<Application>` | Update application |
96
+ | `updateIntent({ name, type, id, appId, kbId, postprocessFlows, customData, features, }: { name?: string; type?: string; id: string; appId: string; kbId: string; postprocessFlows?: string[]; customData?: { [key: string]: unknown; }; features?: string[]; })` | `Promise<Intent>` | Update intent |
97
+ | `updateUtterance({ appId, kbId, utterance, }: { appId: string; kbId: string; utterance: Utterance; })` | `Promise<Utterance>` | Update utterance |
98
+ | `updatePattern({ appId, kbId, pattern, }: { appId: string; kbId: string; pattern: Pattern; })` | `Promise<Pattern>` | Update pattern |
99
+ | `updatePair({ kbId, applicationName, intentName, intentType, utterance, }: { kbId: string; applicationName: string; intentName: string; intentType: string; utterance: Utterance; })` | `Promise<void>` | Update pair |
100
+ | `batchUpdatePairs({ kbId, utterances, }: { kbId: string; utterances: Utterance[]; })` | `Promise<UpdatedPairsResponse>` | Batch update pairs |
101
+ | `updateEntity({ type, id, kbId, name, roles, ...rest }: { type: string; id: string; kbId: string; name?: string; roles?: string[]; rest?: { [key: string]: unknown; }; })` | `Promise<Entity>` | Update entity |
102
+ | `updateFeature({ kbId, id, name, mode, words, enabledForAllModels, activated = true, }: { kbId: string; id: string; name: string; mode: boolean; words: string[]; enabledForAllModels: boolean; activated: boolean; })` | `Promise<Feature>` | Update feature |
103
+ | `updatePrebuiltEntities({ kbId, id, entity, }: { kbId: string; id: string; entity: { name: string; roles: string[]; }; })` | `Promise<Entity>` | Update prebuilt entities |
104
+ | `deleteKnowledgeBase({ id }: { id: string; })` | `Promise<void>` | Delete knowledge base |
105
+ | `deleteApplication({ kbId, appId }: { kbId: string; appId: string; })` | `Promise<void>` | Delete application |
106
+ | `deleteIntent({ id, appId, kbId }: { id: string; appId: string; kbId: string; })` | `Promise<void>` | Delete intent |
107
+ | `deleteUtterance({ id, kbId }: { id: string; kbId: string; })` | `Promise<void>` | Delete utterance |
108
+ | `batchDeleteUtterances({ ids, kbId }: { ids: string[]; kbId: string; })` | `Promise<void>` | Batch delete utterances |
109
+ | `deletePattern({ id, kbId }: { id: string; kbId: string; })` | `Promise<void>` | Delete pattern |
110
+ | `deleteEntity({ type, id, kbId }: { type: string; id: string; kbId: string; })` | `Promise<void>` | Delete entity |
111
+ | `deleteFeature({ id, kbId }: { id: string; kbId: string; })` | `Promise<void>` | Delete feature |
112
+ | `getTrainStatus({ kbId, versionId = null, }: { kbId: string; versionId: string \| null; })` | `Promise<TrainStatusResponse>` | Get training status |
113
+ | `train({ kbId, flowId, phraseId, sessionId, autoPublish, }: { kbId: string; flowId?: string; phraseId?: string; sessionId?: string; autoPublish: boolean; })` | `Promise<TrainResponse>` | Start training |
114
+ | `trainForTest({ kbId, flowId, phraseId, sessionId, }: { kbId: string; flowId?: string; phraseId?: string; sessionId?: string; })` | `Promise<TrainResponse>` | Start training for test |
115
+ | `publish({ kbId, versionId = null, }: { kbId: string; versionId?: string \| null; })` | `Promise<PublishResponse>` | Publish knowledge model |
116
+ | `recover({ kbId, versionId }: { kbId: string; versionId: string; })` | `Promise<void>` | Recover knowledge model version |
117
+ | `deleteVersion({ kbId, versionId }: { kbId: string; versionId: string; })` | `Promise<void>` | Delete knowledge model version |
118
+ | `clone({ kbId, newName }: { kbId: string; newName: string; })` | `Promise<CloneResponse>` | Clone knowledge model |
119
+ | `export({ kbId, isPublic }: { kbId: string; isPublic?: boolean; })` | `Promise<string>` | Export knowledge model |
120
+ | `import({ fileUrl, knowledgeBase, }: { fileUrl: string; knowledgeBase: KnowledgeModelCreateParams; })` | `Promise<ImportResponse>` | Import knowledge model |
121
+ | `importJson(data: string)` | `Promise<ImportResponse>` | Import knowledge model from JSON |
122
+ | `importCsv({ fileUrl, knowledgeBase, applicationName, delimiter, }: { fileUrl: string; knowledgeBase: KnowledgeModelCreateParams; applicationName?: string; delimiter?: string; })` | `Promise<ImportResponse>` | Import knowledge model from csv |
123
+ | `meaning(data: { q: string; appId: string; kbId: string; suggestedConfidenceRange?: [number, number]; unrecognizedConfidenceRange?: [number, number]; allowSuggested: boolean; allowUnrecognized: boolean; spellCheckEnabled?: boolean; phraseId: string; sessionId: string; flowId: string; })` | `Promise<MeaningResponse>` | meaning |
124
+ | `testMeaning({ q, appId, kbId }: { q: string; appId: string; kbId: string; })` | `Promise<MeaningResponse>` | Test meaning |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@or-sdk/knowledge-models",
3
- "version": "0.25.9-beta.4275.0",
3
+ "version": "0.26.0",
4
4
  "description": "OneReach SDK client for Knowledge Models",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/cjs/index.js",
@@ -33,5 +33,6 @@
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
- }
36
+ },
37
+ "gitHead": "6dc62c7c3a3a05b2dfc5a1c7c9bfd4c5e8eb0b99"
37
38
  }