Skip to content

Commit b280e5a

Browse files
committed
chore(release): dashscope-sdk-official v1.25.2
Re-export BaseResult, GenerationResult, EmbeddingResult, MultiModalEmbeddingResult, and types AsyncTaskResult, RecognitionResult from the package entry for legacy deep imports and typing. CHANGELOG documents Node-only changes for this release. Made-with: Cursor
1 parent 7805a1b commit b280e5a

4 files changed

Lines changed: 21 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
44
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
## [Unreleased](https://github.com/dashscope/dashscope-sdk-nodejs/compare/v1.25.1...HEAD)
6+
## [Unreleased](https://github.com/dashscope/dashscope-sdk-nodejs/compare/v1.25.2...HEAD)
7+
8+
## [1.25.2](https://github.com/dashscope/dashscope-sdk-nodejs/releases/tag/v1.25.2) - 2026-04-07
9+
10+
Re-export result types and classes from the package entry for migration from legacy deep imports and typing: `BaseResult`, `GenerationResult`, `EmbeddingResult`, `MultiModalEmbeddingResult`, `AsyncTaskResult`, `RecognitionResult`.
711

812
## [1.25.1](https://github.com/dashscope/dashscope-sdk-nodejs/releases/tag/v1.25.1) - 2026-04-03
913

10-
First open-source release on GitHub and npm as **`dashscope-sdk-official`**, migrated from the internal **`@ali/dashscope-sdk`** package. Aligned with [dashscope-sdk-python](https://github.com/dashscope/dashscope-sdk-python) **v1.25.15** (tag `v1.25.15`).
14+
First open-source release on GitHub and npm as **`dashscope-sdk-official`**, migrated from the internal **`@ali/dashscope-sdk`** package.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dashscope-sdk-official",
3-
"version": "1.25.1",
3+
"version": "1.25.2",
44
"description": "Official Node.js SDK for Alibaba Cloud Model Studio (DashScope) APIs",
55
"keywords": [
66
"dashscope-sdk-official",

src/index.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
1+
import BaseResult from './common/baseResult';
2+
import type { AsyncTaskResult } from './common/asyncTask';
13
import DashscopeApi from './dashscopeApi';
24
import Configuration from './configuration';
35
import File from './file';
46
import FineTune from './finetune';
57
import Generation from './aigc/generation';
8+
import GenerationResult from './aigc/generation/result';
69
import ChatCompletion from './aigc/chatCompletion';
710
import ImageSynthesis from './aigc/imageSynthesis';
811
import VideoSynthesis, { VideoSynthesisMediaType } from './aigc/videoSynthesis';
912
import MultiModalConversation from './aigc/multimodalConversation';
1013
import CodeGeneration from './aigc/codeGeneration';
1114
import Transcription from './audio/asr/transcription';
12-
import Recognition from './audio/asr/recognition';
15+
import Recognition, { type RecognitionResult } from './audio/asr/recognition';
1316
import TranslationRecognizer from './audio/asr/translationRecognizer';
1417
import Vocabulary, { VocabularyServiceException } from './audio/asr/vocabulary';
1518
import AsrPhraseManager from './audio/asr/asrPhraseManager';
1619
import SpeechSynthesizer, { SpeechSynthesisResult, SpeechSynthesisResponse } from './audio/tts/speechSynthesizer';
1720
import QwenTtsSynthesizer from './audio/qwenTts/speechSynthesizer';
1821
import TextEmbedding from './embeddings/text-embedding';
22+
import EmbeddingResult from './embeddings/text-embedding/result';
1923
import BatchTextEmbedding from './embeddings/batchTextEmbedding';
2024
import MultiModalEmbedding from './embeddings/multimodalEmbedding';
25+
import MultiModalEmbeddingResult from './embeddings/multimodalEmbedding/result';
2126
import Understanding from './nlp/understanding';
2227
import TextReRank from './rerank/textRerank';
2328
import Models from './models';
@@ -28,11 +33,14 @@ import Messages from './threads/messages';
2833
import Runs from './threads/runs';
2934

3035
export {
36+
type AsyncTaskResult,
37+
BaseResult,
3138
DashscopeApi,
3239
Configuration,
3340
File,
3441
FineTune,
3542
Generation,
43+
GenerationResult,
3644
ChatCompletion,
3745
ImageSynthesis,
3846
VideoSynthesis,
@@ -41,6 +49,7 @@ export {
4149
CodeGeneration,
4250
Transcription,
4351
Recognition,
52+
type RecognitionResult,
4453
TranslationRecognizer,
4554
Vocabulary,
4655
VocabularyServiceException,
@@ -51,7 +60,9 @@ export {
5160
SpeechSynthesisResponse,
5261
TextEmbedding,
5362
BatchTextEmbedding,
63+
EmbeddingResult,
5464
MultiModalEmbedding,
65+
MultiModalEmbeddingResult,
5566
Understanding,
5667
TextReRank,
5768
Models,

0 commit comments

Comments
 (0)