@breeze.blue/sdk 0.11.0 → 0.12.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 +6 -0
- package/README.md +13 -0
- package/dist/client.d.ts +3 -1
- package/dist/client.js +4 -2
- package/dist/types.d.ts +6 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
- Voice listings preserve the `created_at_unix desc` default and support the
|
|
6
|
+
shared Daily Trend with `{ sort: "trend", voiceType: "default" }`, signed
|
|
7
|
+
snapshot pagination, and language/category/gender/age/tone/accent filters.
|
|
8
|
+
|
|
3
9
|
## 0.11.0
|
|
4
10
|
|
|
5
11
|
- Added canonical Voice `tags`, personal tag overrides, favorite management,
|
package/README.md
CHANGED
|
@@ -406,6 +406,14 @@ or voice ID.
|
|
|
406
406
|
|
|
407
407
|
```ts
|
|
408
408
|
const voices = await client.voices.search({ search: "calm documentary narrator" });
|
|
409
|
+
const newestFirst = await client.voices.search();
|
|
410
|
+
const dailyTrend = await client.voices.search({
|
|
411
|
+
voiceType: "default",
|
|
412
|
+
sort: "trend",
|
|
413
|
+
languageCode: "zh",
|
|
414
|
+
gender: ["female", "neutral"],
|
|
415
|
+
tone: ["warm"],
|
|
416
|
+
});
|
|
409
417
|
const taggedFavorites = await client.voices.search({
|
|
410
418
|
favoritesOnly: true,
|
|
411
419
|
tags: ["narration", "novel=三体"],
|
|
@@ -424,6 +432,11 @@ console.log(metadataOptions.languageCodes);
|
|
|
424
432
|
console.log(metadataOptions.accentCodesByLanguage.en);
|
|
425
433
|
```
|
|
426
434
|
|
|
435
|
+
Voice listings keep the published default of stable creation-time order from
|
|
436
|
+
newest to oldest. Use `{ sort: "trend", voiceType: "default" }` for the shared
|
|
437
|
+
Daily Trend order. Search queries remain relevance-ranked; Trend is only a
|
|
438
|
+
weak prior within the same relevance tier.
|
|
439
|
+
|
|
427
440
|
Breeze voice creation is always two steps: produce a **preview**, let the
|
|
428
441
|
user accept it, then **save the preview** as a real voice. Two ways to
|
|
429
442
|
produce a preview:
|
package/dist/client.d.ts
CHANGED
|
@@ -207,7 +207,9 @@ declare class VoicesResource {
|
|
|
207
207
|
/**
|
|
208
208
|
* Search every voice visible to the account. Catalog results use hybrid
|
|
209
209
|
* semantic and text relevance; personal voices match by name, description,
|
|
210
|
-
* or identifier.
|
|
210
|
+
* or identifier. Listings default to stable creation-time order from newest
|
|
211
|
+
* to oldest. Pass sort: "trend" with voiceType: "default" for the shared
|
|
212
|
+
* Daily Trend order.
|
|
211
213
|
*/
|
|
212
214
|
search(params?: VoiceSearchParams, options?: RequestOptions): Promise<VoiceList>;
|
|
213
215
|
get(voiceId: string, options?: RequestOptions): Promise<Voice>;
|
package/dist/client.js
CHANGED
|
@@ -1492,10 +1492,12 @@ class VoicesResource {
|
|
|
1492
1492
|
/**
|
|
1493
1493
|
* Search every voice visible to the account. Catalog results use hybrid
|
|
1494
1494
|
* semantic and text relevance; personal voices match by name, description,
|
|
1495
|
-
* or identifier.
|
|
1495
|
+
* or identifier. Listings default to stable creation-time order from newest
|
|
1496
|
+
* to oldest. Pass sort: "trend" with voiceType: "default" for the shared
|
|
1497
|
+
* Daily Trend order.
|
|
1496
1498
|
*/
|
|
1497
1499
|
async search(params = {}, options) {
|
|
1498
|
-
const result = await this.client.requestJson("GET", "/v1/voices", params, undefined, options);
|
|
1500
|
+
const result = await this.client.requestJson("GET", "/v1/voices", { sort: "created_at_unix", sortDirection: "desc", ...params }, undefined, options);
|
|
1499
1501
|
return Array.isArray(result.voices)
|
|
1500
1502
|
? { ...result, voices: result.voices.map(stripHiddenVoiceFields) }
|
|
1501
1503
|
: result;
|
package/dist/types.d.ts
CHANGED
|
@@ -354,9 +354,14 @@ export interface VoiceMetadataOptions {
|
|
|
354
354
|
export interface VoiceSearchParams {
|
|
355
355
|
search?: string;
|
|
356
356
|
languageCode?: VoiceLanguageCode;
|
|
357
|
+
primaryCategoryCode?: string;
|
|
358
|
+
gender?: VoiceGender[];
|
|
359
|
+
age?: VoiceAge[];
|
|
360
|
+
tone?: VoiceTone[];
|
|
361
|
+
accent?: VoiceAccent;
|
|
357
362
|
origin?: "designed" | "cloned" | string;
|
|
358
363
|
voiceType?: "all" | "default" | "personal" | string;
|
|
359
|
-
sort?: "created_at_unix" | "name" | string;
|
|
364
|
+
sort?: "created_at_unix" | "name" | "trend" | string;
|
|
360
365
|
sortDirection?: "asc" | "desc";
|
|
361
366
|
nextPageToken?: string;
|
|
362
367
|
page?: number;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.12.0";
|
|
2
2
|
export declare const SDK_NAME = "@breeze.blue/sdk";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.
|
|
1
|
+
export const SDK_VERSION = "0.12.0";
|
|
2
2
|
export const SDK_NAME = "@breeze.blue/sdk";
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeze.blue/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"description": "ESM-first TypeScript SDK for the Breeze Blue Developer API.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"author": "Breeze Blue <support@
|
|
6
|
+
"author": "Breeze Blue <support@breezeblue.ai>",
|
|
7
7
|
"homepage": "https://breezeblue.ai",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|