@novalabai/adk 2.2.0 → 2.4.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/dist/client.d.ts +39 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +52 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/accounting.d.ts +50 -0
- package/dist/resources/accounting.d.ts.map +1 -0
- package/dist/resources/accounting.js +47 -0
- package/dist/resources/accounting.js.map +1 -0
- package/dist/resources/agents.d.ts +0 -4
- package/dist/resources/agents.d.ts.map +1 -1
- package/dist/resources/agents.js +0 -8
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/billing.d.ts +49 -0
- package/dist/resources/billing.d.ts.map +1 -0
- package/dist/resources/billing.js +82 -0
- package/dist/resources/billing.js.map +1 -0
- package/dist/resources/browser.d.ts +55 -0
- package/dist/resources/browser.d.ts.map +1 -0
- package/dist/resources/browser.js +59 -0
- package/dist/resources/browser.js.map +1 -0
- package/dist/resources/byollm.d.ts +2 -0
- package/dist/resources/byollm.d.ts.map +1 -1
- package/dist/resources/byollm.js +4 -0
- package/dist/resources/byollm.js.map +1 -1
- package/dist/resources/creative.d.ts +63 -0
- package/dist/resources/creative.d.ts.map +1 -0
- package/dist/resources/creative.js +58 -0
- package/dist/resources/creative.js.map +1 -0
- package/dist/resources/cybersecurity.d.ts +81 -0
- package/dist/resources/cybersecurity.d.ts.map +1 -0
- package/dist/resources/cybersecurity.js +88 -0
- package/dist/resources/cybersecurity.js.map +1 -0
- package/dist/resources/design.d.ts +61 -0
- package/dist/resources/design.d.ts.map +1 -0
- package/dist/resources/design.js +70 -0
- package/dist/resources/design.js.map +1 -0
- package/dist/resources/health.d.ts +52 -0
- package/dist/resources/health.d.ts.map +1 -0
- package/dist/resources/health.js +50 -0
- package/dist/resources/health.js.map +1 -0
- package/dist/resources/integrations.d.ts +65 -0
- package/dist/resources/integrations.d.ts.map +1 -0
- package/dist/resources/integrations.js +70 -0
- package/dist/resources/integrations.js.map +1 -0
- package/dist/resources/marketing.d.ts +65 -0
- package/dist/resources/marketing.d.ts.map +1 -0
- package/dist/resources/marketing.js +63 -0
- package/dist/resources/marketing.js.map +1 -0
- package/dist/resources/memory.d.ts +82 -0
- package/dist/resources/memory.d.ts.map +1 -0
- package/dist/resources/memory.js +82 -0
- package/dist/resources/memory.js.map +1 -0
- package/dist/resources/oilgas.d.ts +108 -0
- package/dist/resources/oilgas.d.ts.map +1 -0
- package/dist/resources/oilgas.js +86 -0
- package/dist/resources/oilgas.js.map +1 -0
- package/dist/resources/terminal.d.ts +74 -0
- package/dist/resources/terminal.d.ts.map +1 -0
- package/dist/resources/terminal.js +73 -0
- package/dist/resources/terminal.js.map +1 -0
- package/dist/resources/toolbuilder.d.ts +39 -0
- package/dist/resources/toolbuilder.d.ts.map +1 -0
- package/dist/resources/toolbuilder.js +34 -0
- package/dist/resources/toolbuilder.js.map +1 -0
- package/dist/types/billing.d.ts +150 -0
- package/dist/types/billing.d.ts.map +1 -0
- package/dist/types/billing.js +4 -0
- package/dist/types/billing.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
export interface BrowserBrowseParams {
|
|
3
|
+
url: string;
|
|
4
|
+
actions?: Record<string, unknown>[];
|
|
5
|
+
}
|
|
6
|
+
export interface BrowserScreenshotParams {
|
|
7
|
+
url: string;
|
|
8
|
+
options?: Record<string, unknown>;
|
|
9
|
+
}
|
|
10
|
+
export interface BrowserScrapeParams {
|
|
11
|
+
url: string;
|
|
12
|
+
selectors?: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface BrowserTestParams {
|
|
15
|
+
url: string;
|
|
16
|
+
checks?: Record<string, unknown>[];
|
|
17
|
+
}
|
|
18
|
+
export interface BrowserResult {
|
|
19
|
+
output: string;
|
|
20
|
+
source: string;
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* AI-powered browser automation — browsing, screenshots, scraping, and testing.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
29
|
+
*
|
|
30
|
+
* // Browse a URL with optional actions
|
|
31
|
+
* const result = await nova.browser.browse('https://example.com', [{ click: '#btn' }]);
|
|
32
|
+
*
|
|
33
|
+
* // Take a screenshot
|
|
34
|
+
* const shot = await nova.browser.screenshot('https://example.com', { fullPage: true });
|
|
35
|
+
*
|
|
36
|
+
* // Scrape content
|
|
37
|
+
* const data = await nova.browser.scrape('https://example.com', ['h1', '.content']);
|
|
38
|
+
*
|
|
39
|
+
* // Run tests
|
|
40
|
+
* const test = await nova.browser.test('https://example.com', [{ status: 200 }]);
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export declare class BrowserResource {
|
|
44
|
+
private http;
|
|
45
|
+
constructor(http: HttpClient);
|
|
46
|
+
/** Browse a URL with optional actions */
|
|
47
|
+
browse(url: string, actions?: Record<string, unknown>[]): Promise<BrowserResult>;
|
|
48
|
+
/** Take a screenshot of a URL */
|
|
49
|
+
screenshot(url: string, options?: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
50
|
+
/** Scrape content from a URL using CSS selectors */
|
|
51
|
+
scrape(url: string, selectors?: string[]): Promise<Record<string, unknown>>;
|
|
52
|
+
/** Run automated tests against a URL */
|
|
53
|
+
test(url: string, checks?: Record<string, unknown>[]): Promise<Record<string, unknown>>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=browser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/resources/browser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,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AwC;IAClC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAK9F"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrowserResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered browser automation — browsing, screenshots, scraping, and testing.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
10
|
+
*
|
|
11
|
+
* // Browse a URL with optional actions
|
|
12
|
+
* const result = await nova.browser.browse('https://example.com', [{ click: '#btn' }]);
|
|
13
|
+
*
|
|
14
|
+
* // Take a screenshot
|
|
15
|
+
* const shot = await nova.browser.screenshot('https://example.com', { fullPage: true });
|
|
16
|
+
*
|
|
17
|
+
* // Scrape content
|
|
18
|
+
* const data = await nova.browser.scrape('https://example.com', ['h1', '.content']);
|
|
19
|
+
*
|
|
20
|
+
* // Run tests
|
|
21
|
+
* const test = await nova.browser.test('https://example.com', [{ status: 200 }]);
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
class BrowserResource {
|
|
25
|
+
http;
|
|
26
|
+
constructor(http) {
|
|
27
|
+
this.http = http;
|
|
28
|
+
}
|
|
29
|
+
/** Browse a URL with optional actions */
|
|
30
|
+
async browse(url, actions) {
|
|
31
|
+
const payload = { url };
|
|
32
|
+
if (actions)
|
|
33
|
+
payload.actions = actions;
|
|
34
|
+
return this.http.post('/browser/browse', payload);
|
|
35
|
+
}
|
|
36
|
+
/** Take a screenshot of a URL */
|
|
37
|
+
async screenshot(url, options) {
|
|
38
|
+
const payload = { url };
|
|
39
|
+
if (options)
|
|
40
|
+
payload.options = options;
|
|
41
|
+
return this.http.post('/browser/screenshot', payload);
|
|
42
|
+
}
|
|
43
|
+
/** Scrape content from a URL using CSS selectors */
|
|
44
|
+
async scrape(url, selectors) {
|
|
45
|
+
const payload = { url };
|
|
46
|
+
if (selectors)
|
|
47
|
+
payload.selectors = selectors;
|
|
48
|
+
return this.http.post('/browser/scrape', payload);
|
|
49
|
+
}
|
|
50
|
+
/** Run automated tests against a URL */
|
|
51
|
+
async test(url, checks) {
|
|
52
|
+
const payload = { url };
|
|
53
|
+
if (checks)
|
|
54
|
+
payload.checks = checks;
|
|
55
|
+
return this.http.post('/browser/test', payload);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.BrowserResource = BrowserResource;
|
|
59
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/resources/browser.ts"],"names":[],"mappings":";;;AA4BA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,eAAe;IACN;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,yCAAyC;IACzC,KAAK,CAAC,MAAM,CAAC,GAAW,EAAE,OAAmC;QAC3D,MAAM,OAAO,GAA4B,EAAE,GAAG,EAAE,CAAC;QACjD,IAAI,OAAO;YAAE,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,iCAAiC;IACjC,KAAK,CAAC,UAAU,CAAC,GAAW,EAAE,OAAiC;QAC7D,MAAM,OAAO,GAA4B,EAAE,GAAG,EAAE,CAAC;QACjD,IAAI,OAAO;YAAE,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,oDAAoD;IACpD,KAAK,CAAC,MAAM,CAAC,GAAW,EAAE,SAAoB;QAC5C,MAAM,OAAO,GAA4B,EAAE,GAAG,EAAE,CAAC;QACjD,IAAI,SAAS;YAAE,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;QAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED,wCAAwC;IACxC,KAAK,CAAC,IAAI,CAAC,GAAW,EAAE,MAAkC;QACxD,MAAM,OAAO,GAA4B,EAAE,GAAG,EAAE,CAAC;QACjD,IAAI,MAAM;YAAE,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;CACF;AA9BD,0CA8BC"}
|
|
@@ -7,6 +7,8 @@ export declare class ByollmResource {
|
|
|
7
7
|
register(params: ByollmRegisterParams): Promise<ByollmConfig>;
|
|
8
8
|
/** List all registered LLMs. */
|
|
9
9
|
list(): Promise<ByollmListResult>;
|
|
10
|
+
/** Get a registered LLM by ID. */
|
|
11
|
+
get(llmId: string): Promise<ByollmConfig>;
|
|
10
12
|
/** Delete a registered LLM by ID. */
|
|
11
13
|
delete(id: string): Promise<void>;
|
|
12
14
|
/** Test connection to a registered LLM. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"byollm.d.ts","sourceRoot":"","sources":["../../src/resources/byollm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EACV,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAE5B,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;gBAEtB,IAAI,EAAE,UAAU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AE,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;CAGzE"}
|
package/dist/resources/byollm.js
CHANGED
|
@@ -14,6 +14,10 @@ class ByollmResource {
|
|
|
14
14
|
async list() {
|
|
15
15
|
return this.http.get('/llms');
|
|
16
16
|
}
|
|
17
|
+
/** Get a registered LLM by ID. */
|
|
18
|
+
async get(llmId) {
|
|
19
|
+
return this.http.get(`/llms/${llmId}`);
|
|
20
|
+
}
|
|
17
21
|
/** Delete a registered LLM by ID. */
|
|
18
22
|
async delete(id) {
|
|
19
23
|
return this.http.delete(`/llms/${id}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"byollm.js","sourceRoot":"","sources":["../../src/resources/byollm.ts"],"names":[],"mappings":";;;AAUA,MAAa,cAAc;IACR,IAAI,CAAa;IAElC,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,6BAA6B;IAC7B,KAAK,CAAC,QAAQ,CAAC,MAA4B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,gCAAgC;IAChC,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,2CAA2C;IAC3C,KAAK,CAAC,IAAI,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,oDAAoD;IACpD,KAAK,CAAC,GAAG,CAAC,EAAU,EAAE,MAAuB;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"byollm.js","sourceRoot":"","sources":["../../src/resources/byollm.ts"],"names":[],"mappings":";;;AAUA,MAAa,cAAc;IACR,IAAI,CAAa;IAElC,YAAY,IAAgB;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,6BAA6B;IAC7B,KAAK,CAAC,QAAQ,CAAC,MAA4B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,gCAAgC;IAChC,KAAK,CAAC,IAAI;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;IAED,kCAAkC;IAClC,KAAK,CAAC,GAAG,CAAC,KAAa;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,2CAA2C;IAC3C,KAAK,CAAC,IAAI,CAAC,EAAU;QACnB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5C,CAAC;IAED,oDAAoD;IACpD,KAAK,CAAC,GAAG,CAAC,EAAU,EAAE,MAAuB;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;CACF;AApCD,wCAoCC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
/** Creative content type hint */
|
|
3
|
+
export type CreativeContentType = 'tagline' | 'story' | 'poem' | 'script' | 'blog' | string;
|
|
4
|
+
/** Image style */
|
|
5
|
+
export type CreativeImageStyle = 'auto' | 'photorealistic' | 'illustration' | '3d' | 'cartoon' | string;
|
|
6
|
+
/** Marketing content type */
|
|
7
|
+
export type CreativeMarketingType = 'auto' | 'social_media' | 'email' | 'ad_copy' | 'landing_page' | 'blog_post' | string;
|
|
8
|
+
export interface CreativeGenerateParams {
|
|
9
|
+
prompt: string;
|
|
10
|
+
type?: CreativeContentType;
|
|
11
|
+
}
|
|
12
|
+
export interface CreativeImageParams {
|
|
13
|
+
prompt: string;
|
|
14
|
+
style?: CreativeImageStyle;
|
|
15
|
+
size?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CreativeVideoParams {
|
|
18
|
+
prompt: string;
|
|
19
|
+
duration?: number;
|
|
20
|
+
fps?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface CreativeMarketingParams {
|
|
23
|
+
prompt: string;
|
|
24
|
+
content_type?: CreativeMarketingType;
|
|
25
|
+
}
|
|
26
|
+
export interface CreativeResult {
|
|
27
|
+
output: string;
|
|
28
|
+
source: string;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* AI-powered creative content generation — text, images, video, and marketing content.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```typescript
|
|
36
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
37
|
+
*
|
|
38
|
+
* // Generate creative content
|
|
39
|
+
* const result = await nova.creative.generate({ prompt: 'Write a tagline for an eco-friendly water bottle' });
|
|
40
|
+
*
|
|
41
|
+
* // Generate an image
|
|
42
|
+
* const image = await nova.creative.image({ prompt: 'A futuristic city at sunset', style: 'photorealistic' });
|
|
43
|
+
*
|
|
44
|
+
* // Generate a short video
|
|
45
|
+
* const video = await nova.creative.video({ prompt: 'Product reveal animation', duration: 10 });
|
|
46
|
+
*
|
|
47
|
+
* // Generate marketing content
|
|
48
|
+
* const marketing = await nova.creative.marketing({ prompt: 'Launch campaign for a fitness app' });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare class CreativeResource {
|
|
52
|
+
private http;
|
|
53
|
+
constructor(http: HttpClient);
|
|
54
|
+
/** Generate creative content using AI */
|
|
55
|
+
generate(params: CreativeGenerateParams): Promise<CreativeResult>;
|
|
56
|
+
/** Generate an AI image */
|
|
57
|
+
image(params: CreativeImageParams): Promise<Record<string, unknown>>;
|
|
58
|
+
/** Generate an AI video clip */
|
|
59
|
+
video(params: CreativeVideoParams): Promise<Record<string, unknown>>;
|
|
60
|
+
/** Generate marketing content */
|
|
61
|
+
marketing(params: CreativeMarketingParams): Promise<CreativeResult>;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=creative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creative.d.ts","sourceRoot":"","sources":["../../src/resources/creative.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,iCAAiC;AACjC,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5F,kBAAkB;AAClB,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,gBAAgB,GAAG,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAAC;AAExG,6BAA6B;AAC7B,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;AAE1H,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,qBAAqB,CAAC;CACtC;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,gBAAgB;IACf,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,yCAAyC;IACnC,QAAQ,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,cAAc,CAAC;IAIvE,2BAA2B;IACrB,KAAK,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQ1E,gCAAgC;IAC1B,KAAK,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQ1E,iCAAiC;IAC3B,SAAS,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,cAAc,CAAC;CAM1E"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreativeResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered creative content generation — text, images, video, and marketing content.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
10
|
+
*
|
|
11
|
+
* // Generate creative content
|
|
12
|
+
* const result = await nova.creative.generate({ prompt: 'Write a tagline for an eco-friendly water bottle' });
|
|
13
|
+
*
|
|
14
|
+
* // Generate an image
|
|
15
|
+
* const image = await nova.creative.image({ prompt: 'A futuristic city at sunset', style: 'photorealistic' });
|
|
16
|
+
*
|
|
17
|
+
* // Generate a short video
|
|
18
|
+
* const video = await nova.creative.video({ prompt: 'Product reveal animation', duration: 10 });
|
|
19
|
+
*
|
|
20
|
+
* // Generate marketing content
|
|
21
|
+
* const marketing = await nova.creative.marketing({ prompt: 'Launch campaign for a fitness app' });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
class CreativeResource {
|
|
25
|
+
http;
|
|
26
|
+
constructor(http) {
|
|
27
|
+
this.http = http;
|
|
28
|
+
}
|
|
29
|
+
/** Generate creative content using AI */
|
|
30
|
+
async generate(params) {
|
|
31
|
+
return this.http.post('/creative/generate', params);
|
|
32
|
+
}
|
|
33
|
+
/** Generate an AI image */
|
|
34
|
+
async image(params) {
|
|
35
|
+
return this.http.post('/creative/image', {
|
|
36
|
+
prompt: params.prompt,
|
|
37
|
+
style: params.style ?? 'auto',
|
|
38
|
+
size: params.size ?? '1024x1024',
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
/** Generate an AI video clip */
|
|
42
|
+
async video(params) {
|
|
43
|
+
return this.http.post('/creative/video', {
|
|
44
|
+
prompt: params.prompt,
|
|
45
|
+
duration: params.duration ?? 10,
|
|
46
|
+
fps: params.fps ?? 2,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/** Generate marketing content */
|
|
50
|
+
async marketing(params) {
|
|
51
|
+
return this.http.post('/creative/marketing', {
|
|
52
|
+
prompt: params.prompt,
|
|
53
|
+
content_type: params.content_type ?? 'auto',
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.CreativeResource = CreativeResource;
|
|
58
|
+
//# sourceMappingURL=creative.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"creative.js","sourceRoot":"","sources":["../../src/resources/creative.ts"],"names":[],"mappings":";;;AAuCA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,yCAAyC;IACzC,KAAK,CAAC,QAAQ,CAAC,MAA8B;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,2BAA2B;IAC3B,KAAK,CAAC,KAAK,CAAC,MAA2B;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YACvC,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,MAAM;YAC7B,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,WAAW;SACjC,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC;IAChC,KAAK,CAAC,KAAK,CAAC,MAA2B;QACrC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YACvC,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE;YAC/B,GAAG,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;SACrB,CAAC,CAAC;IACL,CAAC;IAED,iCAAiC;IACjC,KAAK,CAAC,SAAS,CAAC,MAA+B;QAC7C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE;YAC3C,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,YAAY,EAAE,MAAM,CAAC,YAAY,IAAI,MAAM;SAC5C,CAAC,CAAC;IACL,CAAC;CACF;AAjCD,4CAiCC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
/** Cybersecurity task types */
|
|
3
|
+
export type CybersecurityTaskType = 'vulnerability_scan' | 'dependency_audit' | 'pentest_plan' | 'cloud_audit' | 'incident_response' | 'api_security' | 'compliance_check' | 'threat_intel';
|
|
4
|
+
/** Compliance frameworks */
|
|
5
|
+
export type ComplianceFramework = 'soc2' | 'hipaa' | 'gdpr' | 'pci_dss' | 'iso27001' | 'nist';
|
|
6
|
+
export interface CybersecurityAnalyzeParams {
|
|
7
|
+
prompt: string;
|
|
8
|
+
task_type?: CybersecurityTaskType;
|
|
9
|
+
data?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
export interface CybersecurityResult {
|
|
12
|
+
output: string;
|
|
13
|
+
source: string;
|
|
14
|
+
task_type: string;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
export interface CybersecurityScanParams {
|
|
18
|
+
code_or_prompt: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CybersecurityComplianceParams {
|
|
21
|
+
prompt: string;
|
|
22
|
+
framework?: ComplianceFramework | string;
|
|
23
|
+
}
|
|
24
|
+
export interface CybersecurityWorkflow {
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
icon: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* AI-powered cybersecurity workflows — vulnerability scanning, compliance,
|
|
31
|
+
* threat intelligence, incident response, and more.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```typescript
|
|
35
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
36
|
+
*
|
|
37
|
+
* // Run security analysis
|
|
38
|
+
* const result = await nova.cybersecurity.analyze({
|
|
39
|
+
* prompt: 'Review this API endpoint for OWASP Top 10',
|
|
40
|
+
* task_type: 'vulnerability_scan'
|
|
41
|
+
* });
|
|
42
|
+
*
|
|
43
|
+
* // Scan code
|
|
44
|
+
* const scan = await nova.cybersecurity.scan('SELECT * FROM users WHERE id = ' + userId);
|
|
45
|
+
*
|
|
46
|
+
* // Compliance check
|
|
47
|
+
* const compliance = await nova.cybersecurity.compliance({ prompt: 'Review auth flow', framework: 'soc2' });
|
|
48
|
+
*
|
|
49
|
+
* // Threat intel
|
|
50
|
+
* const intel = await nova.cybersecurity.threatIntel('CVE-2024-1234');
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
export declare class CybersecurityResource {
|
|
54
|
+
private http;
|
|
55
|
+
constructor(http: HttpClient);
|
|
56
|
+
/** Run a cybersecurity AI analysis workflow */
|
|
57
|
+
analyze(params: CybersecurityAnalyzeParams): Promise<CybersecurityResult>;
|
|
58
|
+
/** List available cybersecurity AI workflows */
|
|
59
|
+
workflows(): Promise<Record<string, CybersecurityWorkflow>>;
|
|
60
|
+
/** Scan code or a description for security vulnerabilities */
|
|
61
|
+
scan(codeOrPrompt: string): Promise<Record<string, unknown>>;
|
|
62
|
+
/** Run a compliance check against a security framework */
|
|
63
|
+
compliance(params: CybersecurityComplianceParams): Promise<Record<string, unknown>>;
|
|
64
|
+
/** Generate a security report */
|
|
65
|
+
report(prompt: string): Promise<Record<string, unknown>>;
|
|
66
|
+
/** Query threat intelligence */
|
|
67
|
+
threatIntel(query: string): Promise<Record<string, unknown>>;
|
|
68
|
+
/** Vulnerability scan shortcut */
|
|
69
|
+
vulnerabilityScan(prompt?: string, data?: Record<string, unknown>): Promise<CybersecurityResult>;
|
|
70
|
+
/** Dependency audit shortcut */
|
|
71
|
+
dependencyAudit(prompt?: string, data?: Record<string, unknown>): Promise<CybersecurityResult>;
|
|
72
|
+
/** Penetration test plan shortcut */
|
|
73
|
+
pentestPlan(prompt?: string, data?: Record<string, unknown>): Promise<CybersecurityResult>;
|
|
74
|
+
/** Cloud infrastructure audit shortcut */
|
|
75
|
+
cloudAudit(prompt?: string, data?: Record<string, unknown>): Promise<CybersecurityResult>;
|
|
76
|
+
/** Incident response playbook shortcut */
|
|
77
|
+
incidentResponse(prompt?: string, data?: Record<string, unknown>): Promise<CybersecurityResult>;
|
|
78
|
+
/** API security assessment shortcut */
|
|
79
|
+
apiSecurity(prompt?: string, data?: Record<string, unknown>): Promise<CybersecurityResult>;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=cybersecurity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cybersecurity.d.ts","sourceRoot":"","sources":["../../src/resources/cybersecurity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,+BAA+B;AAC/B,MAAM,MAAM,qBAAqB,GAC7B,oBAAoB,GACpB,kBAAkB,GAClB,cAAc,GACd,aAAa,GACb,mBAAmB,GACnB,cAAc,GACd,kBAAkB,GAClB,cAAc,CAAC;AAEnB,4BAA4B;AAC5B,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,OAAO,GACP,MAAM,GACN,SAAS,GACT,UAAU,GACV,MAAM,CAAC;AAEX,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAAC;CAC1C;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;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AAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI9H,0CAA0C;IACpC,gBAAgB,CAAC,MAAM,SAAwC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIpI,uCAAuC;IACjC,WAAW,CAAC,MAAM,SAAwB,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAGhH"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CybersecurityResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered cybersecurity workflows — vulnerability scanning, compliance,
|
|
6
|
+
* threat intelligence, incident response, and more.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
11
|
+
*
|
|
12
|
+
* // Run security analysis
|
|
13
|
+
* const result = await nova.cybersecurity.analyze({
|
|
14
|
+
* prompt: 'Review this API endpoint for OWASP Top 10',
|
|
15
|
+
* task_type: 'vulnerability_scan'
|
|
16
|
+
* });
|
|
17
|
+
*
|
|
18
|
+
* // Scan code
|
|
19
|
+
* const scan = await nova.cybersecurity.scan('SELECT * FROM users WHERE id = ' + userId);
|
|
20
|
+
*
|
|
21
|
+
* // Compliance check
|
|
22
|
+
* const compliance = await nova.cybersecurity.compliance({ prompt: 'Review auth flow', framework: 'soc2' });
|
|
23
|
+
*
|
|
24
|
+
* // Threat intel
|
|
25
|
+
* const intel = await nova.cybersecurity.threatIntel('CVE-2024-1234');
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
class CybersecurityResource {
|
|
29
|
+
http;
|
|
30
|
+
constructor(http) {
|
|
31
|
+
this.http = http;
|
|
32
|
+
}
|
|
33
|
+
/** Run a cybersecurity AI analysis workflow */
|
|
34
|
+
async analyze(params) {
|
|
35
|
+
return this.http.post('/security/analyze', params);
|
|
36
|
+
}
|
|
37
|
+
/** List available cybersecurity AI workflows */
|
|
38
|
+
async workflows() {
|
|
39
|
+
const result = await this.http.get('/security/workflows');
|
|
40
|
+
return result.workflows ?? {};
|
|
41
|
+
}
|
|
42
|
+
/** Scan code or a description for security vulnerabilities */
|
|
43
|
+
async scan(codeOrPrompt) {
|
|
44
|
+
return this.http.post('/security/scan', { code_or_prompt: codeOrPrompt });
|
|
45
|
+
}
|
|
46
|
+
/** Run a compliance check against a security framework */
|
|
47
|
+
async compliance(params) {
|
|
48
|
+
return this.http.post('/security/compliance', {
|
|
49
|
+
prompt: params.prompt,
|
|
50
|
+
framework: params.framework ?? 'soc2',
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
/** Generate a security report */
|
|
54
|
+
async report(prompt) {
|
|
55
|
+
return this.http.post('/security/report', { prompt });
|
|
56
|
+
}
|
|
57
|
+
/** Query threat intelligence */
|
|
58
|
+
async threatIntel(query) {
|
|
59
|
+
return this.http.post('/security/threat-intel', { query });
|
|
60
|
+
}
|
|
61
|
+
// ── Convenience shortcuts ──
|
|
62
|
+
/** Vulnerability scan shortcut */
|
|
63
|
+
async vulnerabilityScan(prompt = 'Run a vulnerability scan', data) {
|
|
64
|
+
return this.analyze({ prompt, task_type: 'vulnerability_scan', data });
|
|
65
|
+
}
|
|
66
|
+
/** Dependency audit shortcut */
|
|
67
|
+
async dependencyAudit(prompt = 'Audit project dependencies', data) {
|
|
68
|
+
return this.analyze({ prompt, task_type: 'dependency_audit', data });
|
|
69
|
+
}
|
|
70
|
+
/** Penetration test plan shortcut */
|
|
71
|
+
async pentestPlan(prompt = 'Generate penetration test plan', data) {
|
|
72
|
+
return this.analyze({ prompt, task_type: 'pentest_plan', data });
|
|
73
|
+
}
|
|
74
|
+
/** Cloud infrastructure audit shortcut */
|
|
75
|
+
async cloudAudit(prompt = 'Audit cloud infrastructure security', data) {
|
|
76
|
+
return this.analyze({ prompt, task_type: 'cloud_audit', data });
|
|
77
|
+
}
|
|
78
|
+
/** Incident response playbook shortcut */
|
|
79
|
+
async incidentResponse(prompt = 'Generate incident response playbook', data) {
|
|
80
|
+
return this.analyze({ prompt, task_type: 'incident_response', data });
|
|
81
|
+
}
|
|
82
|
+
/** API security assessment shortcut */
|
|
83
|
+
async apiSecurity(prompt = 'Assess API security', data) {
|
|
84
|
+
return this.analyze({ prompt, task_type: 'api_security', data });
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.CybersecurityResource = CybersecurityResource;
|
|
88
|
+
//# sourceMappingURL=cybersecurity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cybersecurity.js","sourceRoot":"","sources":["../../src/resources/cybersecurity.ts"],"names":[],"mappings":";;;AAkDA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,qBAAqB;IACZ;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,+CAA+C;IAC/C,KAAK,CAAC,OAAO,CAAC,MAAkC;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,gDAAgD;IAChD,KAAK,CAAC,SAAS;QACb,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAC1D,OAAQ,MAAc,CAAC,SAAS,IAAI,EAAE,CAAC;IACzC,CAAC;IAED,8DAA8D;IAC9D,KAAK,CAAC,IAAI,CAAC,YAAoB;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,cAAc,EAAE,YAAY,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,0DAA0D;IAC1D,KAAK,C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AM,EAAE,SAAS,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,0CAA0C;IAC1C,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,qCAAqC,EAAE,IAA8B;QACnG,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,uCAAuC;IACvC,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,qBAAqB,EAAE,IAA8B;QAC9E,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC;CACF;AApED,sDAoEC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
export interface DesignGenerateParams {
|
|
3
|
+
prompt: string;
|
|
4
|
+
num_screens?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface DesignGenerateResult {
|
|
7
|
+
project_id: string;
|
|
8
|
+
screens: DesignScreen[];
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface DesignScreen {
|
|
12
|
+
screen_id: number;
|
|
13
|
+
html: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* AI-powered UI/UX design generation — screens, mockups, and exports.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
23
|
+
*
|
|
24
|
+
* // Generate a design
|
|
25
|
+
* const result = await nova.design.generate({ prompt: 'Dashboard for SaaS analytics', num_screens: 3 });
|
|
26
|
+
*
|
|
27
|
+
* // Retrieve a screen
|
|
28
|
+
* const screen = await nova.design.screen(result.project_id, 1);
|
|
29
|
+
*
|
|
30
|
+
* // Get screen image
|
|
31
|
+
* const image = await nova.design.screenImage(result.project_id, 1);
|
|
32
|
+
*
|
|
33
|
+
* // Export the project
|
|
34
|
+
* const exported = await nova.design.export(result.project_id);
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class DesignResource {
|
|
38
|
+
private http;
|
|
39
|
+
constructor(http: HttpClient);
|
|
40
|
+
/** Generate a UI/UX design from a prompt */
|
|
41
|
+
generate(params: DesignGenerateParams): Promise<DesignGenerateResult>;
|
|
42
|
+
/** Retrieve a specific screen from a design project */
|
|
43
|
+
screen(projectId: string, screenId: number): Promise<DesignScreen>;
|
|
44
|
+
/** Get the rendered image/preview of a specific screen */
|
|
45
|
+
screenImage(projectId: string, screenId: number): Promise<Record<string, unknown>>;
|
|
46
|
+
/** Export a full design project */
|
|
47
|
+
export(projectId: string): Promise<Record<string, unknown>>;
|
|
48
|
+
/** Get the design quality score for a project */
|
|
49
|
+
score(projectId: string): Promise<Record<string, unknown>>;
|
|
50
|
+
/** Generate design variants for a project */
|
|
51
|
+
variants(projectId: string, options?: {
|
|
52
|
+
count?: number;
|
|
53
|
+
}): Promise<Record<string, unknown>>;
|
|
54
|
+
/** Refine a design based on feedback */
|
|
55
|
+
refine(projectId: string, feedback: string): Promise<Record<string, unknown>>;
|
|
56
|
+
/** Generate a user journey from a prompt */
|
|
57
|
+
journey(prompt: string): Promise<Record<string, unknown>>;
|
|
58
|
+
/** Generate responsive versions of a design */
|
|
59
|
+
responsive(projectId: string, breakpoints?: string[]): Promise<Record<string, unknown>>;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=design.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.d.ts","sourceRoot":"","sources":["../../src/resources/design.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,W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AAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAInF,4CAA4C;IACtC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAI/D,+CAA+C;IACzC,UAAU,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAG9F"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DesignResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered UI/UX design generation — screens, mockups, and exports.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
10
|
+
*
|
|
11
|
+
* // Generate a design
|
|
12
|
+
* const result = await nova.design.generate({ prompt: 'Dashboard for SaaS analytics', num_screens: 3 });
|
|
13
|
+
*
|
|
14
|
+
* // Retrieve a screen
|
|
15
|
+
* const screen = await nova.design.screen(result.project_id, 1);
|
|
16
|
+
*
|
|
17
|
+
* // Get screen image
|
|
18
|
+
* const image = await nova.design.screenImage(result.project_id, 1);
|
|
19
|
+
*
|
|
20
|
+
* // Export the project
|
|
21
|
+
* const exported = await nova.design.export(result.project_id);
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
class DesignResource {
|
|
25
|
+
http;
|
|
26
|
+
constructor(http) {
|
|
27
|
+
this.http = http;
|
|
28
|
+
}
|
|
29
|
+
/** Generate a UI/UX design from a prompt */
|
|
30
|
+
async generate(params) {
|
|
31
|
+
return this.http.post('/design/generate', {
|
|
32
|
+
prompt: params.prompt,
|
|
33
|
+
num_screens: params.num_screens ?? 1,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/** Retrieve a specific screen from a design project */
|
|
37
|
+
async screen(projectId, screenId) {
|
|
38
|
+
return this.http.get(`/design/screens/${projectId}/${screenId}`);
|
|
39
|
+
}
|
|
40
|
+
/** Get the rendered image/preview of a specific screen */
|
|
41
|
+
async screenImage(projectId, screenId) {
|
|
42
|
+
return this.http.get(`/design/screens/${projectId}/${screenId}/image`);
|
|
43
|
+
}
|
|
44
|
+
/** Export a full design project */
|
|
45
|
+
async export(projectId) {
|
|
46
|
+
return this.http.get(`/design/export/${projectId}`);
|
|
47
|
+
}
|
|
48
|
+
/** Get the design quality score for a project */
|
|
49
|
+
async score(projectId) {
|
|
50
|
+
return this.http.get(`/design/score/${projectId}`);
|
|
51
|
+
}
|
|
52
|
+
/** Generate design variants for a project */
|
|
53
|
+
async variants(projectId, options) {
|
|
54
|
+
return this.http.post(`/design/variants/${projectId}`, options);
|
|
55
|
+
}
|
|
56
|
+
/** Refine a design based on feedback */
|
|
57
|
+
async refine(projectId, feedback) {
|
|
58
|
+
return this.http.post(`/design/refine/${projectId}`, { feedback });
|
|
59
|
+
}
|
|
60
|
+
/** Generate a user journey from a prompt */
|
|
61
|
+
async journey(prompt) {
|
|
62
|
+
return this.http.post('/design/journey', { prompt });
|
|
63
|
+
}
|
|
64
|
+
/** Generate responsive versions of a design */
|
|
65
|
+
async responsive(projectId, breakpoints) {
|
|
66
|
+
return this.http.post(`/design/responsive/${projectId}`, { breakpoints });
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.DesignResource = DesignResource;
|
|
70
|
+
//# sourceMappingURL=design.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design.js","sourceRoot":"","sources":["../../src/resources/design.ts"],"names":[],"mappings":";;;AAoBA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,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