@acedatacloud/sdk 2026.627.0 → 2026.716.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/README.md +2 -0
- package/dist/index.d.mts +54 -3
- package/dist/index.d.ts +54 -3
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +57 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +6 -0
- package/src/resources/face.ts +46 -0
- package/src/resources/shorturl.ts +14 -0
- package/src/resources/veo.ts +3 -3
package/README.md
CHANGED
|
@@ -49,6 +49,8 @@ for await (const chunk of stream) {
|
|
|
49
49
|
| `client.audio` | Music generation (Suno) |
|
|
50
50
|
| `client.video` | Video generation (Luma, Sora, Veo, etc.) |
|
|
51
51
|
| `client.search` | Web search (Google SERP) |
|
|
52
|
+
| `client.face` | Face analysis & transformation (swap, beautify, age, cartoon) |
|
|
53
|
+
| `client.shorturl` | Short URL creation |
|
|
52
54
|
| `client.tasks` | Cross-service async task polling |
|
|
53
55
|
| `client.files` | File uploads |
|
|
54
56
|
| `client.platform` | Applications, credentials, models management |
|
package/dist/index.d.mts
CHANGED
|
@@ -502,7 +502,7 @@ declare class Glm {
|
|
|
502
502
|
|
|
503
503
|
/** Veo-specific video generation and editing resources. */
|
|
504
504
|
|
|
505
|
-
type VeoModel = '
|
|
505
|
+
type VeoModel = 'veo3' | 'veo3-fast' | 'veo31-fast' | 'veo31' | 'veo31-fast-ingredients' | (string & {});
|
|
506
506
|
declare class Veo {
|
|
507
507
|
private transport;
|
|
508
508
|
constructor(transport: Transport);
|
|
@@ -512,8 +512,8 @@ declare class Veo {
|
|
|
512
512
|
model?: VeoModel;
|
|
513
513
|
resolution?: '4k' | '1080p' | 'gif';
|
|
514
514
|
videoId?: string;
|
|
515
|
-
translation?:
|
|
516
|
-
aspectRatio?: '
|
|
515
|
+
translation?: boolean;
|
|
516
|
+
aspectRatio?: '16:9' | '9:16';
|
|
517
517
|
imageUrls?: string[];
|
|
518
518
|
callbackUrl?: string;
|
|
519
519
|
async?: boolean;
|
|
@@ -626,6 +626,55 @@ declare class WebExtrator {
|
|
|
626
626
|
}): Promise<Record<string, unknown>>;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
+
/** Face transformation resources (`/face/*`). */
|
|
630
|
+
|
|
631
|
+
declare class Face {
|
|
632
|
+
private transport;
|
|
633
|
+
constructor(transport: Transport);
|
|
634
|
+
private call;
|
|
635
|
+
analyze(opts: {
|
|
636
|
+
imageUrl: string;
|
|
637
|
+
[key: string]: unknown;
|
|
638
|
+
}): Promise<Record<string, unknown>>;
|
|
639
|
+
beautify(opts: {
|
|
640
|
+
imageUrl: string;
|
|
641
|
+
[key: string]: unknown;
|
|
642
|
+
}): Promise<Record<string, unknown>>;
|
|
643
|
+
changeAge(opts: {
|
|
644
|
+
imageUrl: string;
|
|
645
|
+
[key: string]: unknown;
|
|
646
|
+
}): Promise<Record<string, unknown>>;
|
|
647
|
+
changeGender(opts: {
|
|
648
|
+
imageUrl: string;
|
|
649
|
+
[key: string]: unknown;
|
|
650
|
+
}): Promise<Record<string, unknown>>;
|
|
651
|
+
detectLive(opts: {
|
|
652
|
+
imageUrl: string;
|
|
653
|
+
[key: string]: unknown;
|
|
654
|
+
}): Promise<Record<string, unknown>>;
|
|
655
|
+
swap(opts: {
|
|
656
|
+
sourceImageUrl: string;
|
|
657
|
+
targetImageUrl: string;
|
|
658
|
+
[key: string]: unknown;
|
|
659
|
+
}): Promise<Record<string, unknown>>;
|
|
660
|
+
cartoon(opts: {
|
|
661
|
+
imageUrl: string;
|
|
662
|
+
[key: string]: unknown;
|
|
663
|
+
}): Promise<Record<string, unknown>>;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/** Short URL resource (`/shorturl`). */
|
|
667
|
+
|
|
668
|
+
declare class ShortUrl {
|
|
669
|
+
private transport;
|
|
670
|
+
constructor(transport: Transport);
|
|
671
|
+
create(opts: {
|
|
672
|
+
url: string;
|
|
673
|
+
slug?: string;
|
|
674
|
+
[key: string]: unknown;
|
|
675
|
+
}): Promise<Record<string, unknown>>;
|
|
676
|
+
}
|
|
677
|
+
|
|
629
678
|
/** Top-level AceDataCloud client for TypeScript. */
|
|
630
679
|
|
|
631
680
|
interface AceDataCloudOptions {
|
|
@@ -657,6 +706,8 @@ declare class AceDataCloud {
|
|
|
657
706
|
readonly veo: Veo;
|
|
658
707
|
readonly kling: Kling;
|
|
659
708
|
readonly webextrator: WebExtrator;
|
|
709
|
+
readonly face: Face;
|
|
710
|
+
readonly shorturl: ShortUrl;
|
|
660
711
|
private transport;
|
|
661
712
|
constructor(opts?: AceDataCloudOptions);
|
|
662
713
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ declare class Glm {
|
|
|
502
502
|
|
|
503
503
|
/** Veo-specific video generation and editing resources. */
|
|
504
504
|
|
|
505
|
-
type VeoModel = '
|
|
505
|
+
type VeoModel = 'veo3' | 'veo3-fast' | 'veo31-fast' | 'veo31' | 'veo31-fast-ingredients' | (string & {});
|
|
506
506
|
declare class Veo {
|
|
507
507
|
private transport;
|
|
508
508
|
constructor(transport: Transport);
|
|
@@ -512,8 +512,8 @@ declare class Veo {
|
|
|
512
512
|
model?: VeoModel;
|
|
513
513
|
resolution?: '4k' | '1080p' | 'gif';
|
|
514
514
|
videoId?: string;
|
|
515
|
-
translation?:
|
|
516
|
-
aspectRatio?: '
|
|
515
|
+
translation?: boolean;
|
|
516
|
+
aspectRatio?: '16:9' | '9:16';
|
|
517
517
|
imageUrls?: string[];
|
|
518
518
|
callbackUrl?: string;
|
|
519
519
|
async?: boolean;
|
|
@@ -626,6 +626,55 @@ declare class WebExtrator {
|
|
|
626
626
|
}): Promise<Record<string, unknown>>;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
+
/** Face transformation resources (`/face/*`). */
|
|
630
|
+
|
|
631
|
+
declare class Face {
|
|
632
|
+
private transport;
|
|
633
|
+
constructor(transport: Transport);
|
|
634
|
+
private call;
|
|
635
|
+
analyze(opts: {
|
|
636
|
+
imageUrl: string;
|
|
637
|
+
[key: string]: unknown;
|
|
638
|
+
}): Promise<Record<string, unknown>>;
|
|
639
|
+
beautify(opts: {
|
|
640
|
+
imageUrl: string;
|
|
641
|
+
[key: string]: unknown;
|
|
642
|
+
}): Promise<Record<string, unknown>>;
|
|
643
|
+
changeAge(opts: {
|
|
644
|
+
imageUrl: string;
|
|
645
|
+
[key: string]: unknown;
|
|
646
|
+
}): Promise<Record<string, unknown>>;
|
|
647
|
+
changeGender(opts: {
|
|
648
|
+
imageUrl: string;
|
|
649
|
+
[key: string]: unknown;
|
|
650
|
+
}): Promise<Record<string, unknown>>;
|
|
651
|
+
detectLive(opts: {
|
|
652
|
+
imageUrl: string;
|
|
653
|
+
[key: string]: unknown;
|
|
654
|
+
}): Promise<Record<string, unknown>>;
|
|
655
|
+
swap(opts: {
|
|
656
|
+
sourceImageUrl: string;
|
|
657
|
+
targetImageUrl: string;
|
|
658
|
+
[key: string]: unknown;
|
|
659
|
+
}): Promise<Record<string, unknown>>;
|
|
660
|
+
cartoon(opts: {
|
|
661
|
+
imageUrl: string;
|
|
662
|
+
[key: string]: unknown;
|
|
663
|
+
}): Promise<Record<string, unknown>>;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/** Short URL resource (`/shorturl`). */
|
|
667
|
+
|
|
668
|
+
declare class ShortUrl {
|
|
669
|
+
private transport;
|
|
670
|
+
constructor(transport: Transport);
|
|
671
|
+
create(opts: {
|
|
672
|
+
url: string;
|
|
673
|
+
slug?: string;
|
|
674
|
+
[key: string]: unknown;
|
|
675
|
+
}): Promise<Record<string, unknown>>;
|
|
676
|
+
}
|
|
677
|
+
|
|
629
678
|
/** Top-level AceDataCloud client for TypeScript. */
|
|
630
679
|
|
|
631
680
|
interface AceDataCloudOptions {
|
|
@@ -657,6 +706,8 @@ declare class AceDataCloud {
|
|
|
657
706
|
readonly veo: Veo;
|
|
658
707
|
readonly kling: Kling;
|
|
659
708
|
readonly webextrator: WebExtrator;
|
|
709
|
+
readonly face: Face;
|
|
710
|
+
readonly shorturl: ShortUrl;
|
|
660
711
|
private transport;
|
|
661
712
|
constructor(opts?: AceDataCloudOptions);
|
|
662
713
|
}
|
package/dist/index.js
CHANGED
|
@@ -999,6 +999,59 @@ var WebExtrator = class {
|
|
|
999
999
|
}
|
|
1000
1000
|
};
|
|
1001
1001
|
|
|
1002
|
+
// src/resources/face.ts
|
|
1003
|
+
var Face = class {
|
|
1004
|
+
constructor(transport) {
|
|
1005
|
+
this.transport = transport;
|
|
1006
|
+
}
|
|
1007
|
+
transport;
|
|
1008
|
+
call(action, body) {
|
|
1009
|
+
return this.transport.request("POST", `/face/${action}`, { json: body });
|
|
1010
|
+
}
|
|
1011
|
+
analyze(opts) {
|
|
1012
|
+
const { imageUrl, ...rest } = opts;
|
|
1013
|
+
return this.call("analyze", { image_url: imageUrl, ...rest });
|
|
1014
|
+
}
|
|
1015
|
+
beautify(opts) {
|
|
1016
|
+
const { imageUrl, ...rest } = opts;
|
|
1017
|
+
return this.call("beautify", { image_url: imageUrl, ...rest });
|
|
1018
|
+
}
|
|
1019
|
+
changeAge(opts) {
|
|
1020
|
+
const { imageUrl, ...rest } = opts;
|
|
1021
|
+
return this.call("change-age", { image_url: imageUrl, ...rest });
|
|
1022
|
+
}
|
|
1023
|
+
changeGender(opts) {
|
|
1024
|
+
const { imageUrl, ...rest } = opts;
|
|
1025
|
+
return this.call("change-gender", { image_url: imageUrl, ...rest });
|
|
1026
|
+
}
|
|
1027
|
+
detectLive(opts) {
|
|
1028
|
+
const { imageUrl, ...rest } = opts;
|
|
1029
|
+
return this.call("detect-live", { image_url: imageUrl, ...rest });
|
|
1030
|
+
}
|
|
1031
|
+
swap(opts) {
|
|
1032
|
+
const { sourceImageUrl, targetImageUrl, ...rest } = opts;
|
|
1033
|
+
return this.call("swap", { source_image_url: sourceImageUrl, target_image_url: targetImageUrl, ...rest });
|
|
1034
|
+
}
|
|
1035
|
+
cartoon(opts) {
|
|
1036
|
+
const { imageUrl, ...rest } = opts;
|
|
1037
|
+
return this.call("cartoon", { image_url: imageUrl, ...rest });
|
|
1038
|
+
}
|
|
1039
|
+
};
|
|
1040
|
+
|
|
1041
|
+
// src/resources/shorturl.ts
|
|
1042
|
+
var ShortUrl = class {
|
|
1043
|
+
constructor(transport) {
|
|
1044
|
+
this.transport = transport;
|
|
1045
|
+
}
|
|
1046
|
+
transport;
|
|
1047
|
+
async create(opts) {
|
|
1048
|
+
const { url, slug, ...rest } = opts;
|
|
1049
|
+
const body = { url, ...rest };
|
|
1050
|
+
if (slug !== void 0) body.slug = slug;
|
|
1051
|
+
return this.transport.request("POST", "/shorturl", { json: body });
|
|
1052
|
+
}
|
|
1053
|
+
};
|
|
1054
|
+
|
|
1002
1055
|
// src/client.ts
|
|
1003
1056
|
var AceDataCloud = class {
|
|
1004
1057
|
aichat;
|
|
@@ -1015,6 +1068,8 @@ var AceDataCloud = class {
|
|
|
1015
1068
|
veo;
|
|
1016
1069
|
kling;
|
|
1017
1070
|
webextrator;
|
|
1071
|
+
face;
|
|
1072
|
+
shorturl;
|
|
1018
1073
|
transport;
|
|
1019
1074
|
constructor(opts = {}) {
|
|
1020
1075
|
this.transport = new Transport({
|
|
@@ -1040,6 +1095,8 @@ var AceDataCloud = class {
|
|
|
1040
1095
|
this.veo = new Veo(this.transport);
|
|
1041
1096
|
this.kling = new Kling(this.transport);
|
|
1042
1097
|
this.webextrator = new WebExtrator(this.transport);
|
|
1098
|
+
this.face = new Face(this.transport);
|
|
1099
|
+
this.shorturl = new ShortUrl(this.transport);
|
|
1043
1100
|
}
|
|
1044
1101
|
};
|
|
1045
1102
|
// Annotate the CommonJS export names for ESM import in node:
|