@novalabai/adk 2.3.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.
Files changed (65) hide show
  1. package/dist/client.d.ts +36 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +48 -0
  4. package/dist/client.js.map +1 -1
  5. package/dist/index.d.ts +24 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +25 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/resources/accounting.d.ts +50 -0
  10. package/dist/resources/accounting.d.ts.map +1 -0
  11. package/dist/resources/accounting.js +47 -0
  12. package/dist/resources/accounting.js.map +1 -0
  13. package/dist/resources/agents.d.ts +0 -4
  14. package/dist/resources/agents.d.ts.map +1 -1
  15. package/dist/resources/agents.js +0 -8
  16. package/dist/resources/agents.js.map +1 -1
  17. package/dist/resources/browser.d.ts +55 -0
  18. package/dist/resources/browser.d.ts.map +1 -0
  19. package/dist/resources/browser.js +59 -0
  20. package/dist/resources/browser.js.map +1 -0
  21. package/dist/resources/byollm.d.ts +2 -0
  22. package/dist/resources/byollm.d.ts.map +1 -1
  23. package/dist/resources/byollm.js +4 -0
  24. package/dist/resources/byollm.js.map +1 -1
  25. package/dist/resources/creative.d.ts +63 -0
  26. package/dist/resources/creative.d.ts.map +1 -0
  27. package/dist/resources/creative.js +58 -0
  28. package/dist/resources/creative.js.map +1 -0
  29. package/dist/resources/cybersecurity.d.ts +81 -0
  30. package/dist/resources/cybersecurity.d.ts.map +1 -0
  31. package/dist/resources/cybersecurity.js +88 -0
  32. package/dist/resources/cybersecurity.js.map +1 -0
  33. package/dist/resources/design.d.ts +61 -0
  34. package/dist/resources/design.d.ts.map +1 -0
  35. package/dist/resources/design.js +70 -0
  36. package/dist/resources/design.js.map +1 -0
  37. package/dist/resources/health.d.ts +52 -0
  38. package/dist/resources/health.d.ts.map +1 -0
  39. package/dist/resources/health.js +50 -0
  40. package/dist/resources/health.js.map +1 -0
  41. package/dist/resources/integrations.d.ts +65 -0
  42. package/dist/resources/integrations.d.ts.map +1 -0
  43. package/dist/resources/integrations.js +70 -0
  44. package/dist/resources/integrations.js.map +1 -0
  45. package/dist/resources/marketing.d.ts +65 -0
  46. package/dist/resources/marketing.d.ts.map +1 -0
  47. package/dist/resources/marketing.js +63 -0
  48. package/dist/resources/marketing.js.map +1 -0
  49. package/dist/resources/memory.d.ts +82 -0
  50. package/dist/resources/memory.d.ts.map +1 -0
  51. package/dist/resources/memory.js +82 -0
  52. package/dist/resources/memory.js.map +1 -0
  53. package/dist/resources/oilgas.d.ts +108 -0
  54. package/dist/resources/oilgas.d.ts.map +1 -0
  55. package/dist/resources/oilgas.js +86 -0
  56. package/dist/resources/oilgas.js.map +1 -0
  57. package/dist/resources/terminal.d.ts +74 -0
  58. package/dist/resources/terminal.d.ts.map +1 -0
  59. package/dist/resources/terminal.js +73 -0
  60. package/dist/resources/terminal.js.map +1 -0
  61. package/dist/resources/toolbuilder.d.ts +39 -0
  62. package/dist/resources/toolbuilder.d.ts.map +1 -0
  63. package/dist/resources/toolbuilder.js +34 -0
  64. package/dist/resources/toolbuilder.js.map +1 -0
  65. package/package.json +1 -1
@@ -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,G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,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,q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OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMlE,kCAAkC;IAC5B,iBAAiB,CAAC,MAAM,SAA6B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI1H,gCAAgC;IAC1B,eAAe,CAAC,MAAM,SAA+B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI1H,qCAAqC;IAC/B,WAAW,CAAC,MAAM,SAAmC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAI1H,0CAA0C;IACpC,UAAU,CAAC,MAAM,SAAwC,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,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,CAAC,UAAU,CAAC,MAAqC;QACpD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE;YAC5C,MAAM,E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,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,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,cAAc;IACb,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,4CAA4C;IACtC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAO3E,uDAAuD;IACjD,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIxE,0DAA0D;IACpD,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIxF,mCAAmC;IAC7B,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIjE,iDAAiD;IAC3C,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIhE,6CAA6C;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIjG,wCAAwC;IAClC,MAAM,CAAC,SAAS,EAAE,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":"","s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C,SAAiB,EAAE,QAAgB;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,SAAS,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,4CAA4C;IAC5C,KAAK,CAAC,OAAO,CAAC,MAAc;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,+CAA+C;IAC/C,KAAK,CAAC,UAAU,CAAC,SAAiB,EAAE,WAAsB;QACxD,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,SAAS,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAlDD,wCAkDC"}
@@ -0,0 +1,52 @@
1
+ import type { HttpClient } from '../core/http.js';
2
+ /** Supported health calculators */
3
+ export type HealthCalculator = 'bmi' | 'bmr' | 'tdee';
4
+ export interface HealthSearchParams {
5
+ query: string;
6
+ max_results?: number;
7
+ }
8
+ export interface HealthCalculateParams {
9
+ calculator: HealthCalculator | string;
10
+ params: Record<string, unknown>;
11
+ }
12
+ export interface HealthAnalyzeParams {
13
+ message: string;
14
+ task_type?: string;
15
+ }
16
+ export interface HealthResult {
17
+ output: string;
18
+ source: string;
19
+ [key: string]: unknown;
20
+ }
21
+ /**
22
+ * AI-powered health study agent — medical research search, health calculators,
23
+ * and health data analysis.
24
+ *
25
+ * @example
26
+ * ```typescript
27
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
28
+ *
29
+ * // Search health studies
30
+ * const studies = await nova.health.search('effects of intermittent fasting', 10);
31
+ *
32
+ * // Calculate BMI
33
+ * const bmi = await nova.health.calculate('bmi', { weight: 75, height: 1.80 });
34
+ *
35
+ * // Calculate BMR
36
+ * const bmr = await nova.health.calculate('bmr', { weight: 75, height: 180, age: 30, gender: 'male' });
37
+ *
38
+ * // Analyze health data
39
+ * const analysis = await nova.health.analyze('Review patient vitals trend');
40
+ * ```
41
+ */
42
+ export declare class HealthResource {
43
+ private http;
44
+ constructor(http: HttpClient);
45
+ /** Search health studies and research papers */
46
+ search(query: string, maxResults?: number): Promise<Record<string, unknown>>;
47
+ /** Run a health calculation using a specific calculator */
48
+ calculate(calculator: HealthCalculator | string, params: Record<string, unknown>): Promise<Record<string, unknown>>;
49
+ /** Run a health AI analysis workflow */
50
+ analyze(message: string, taskType?: string): Promise<HealthResult>;
51
+ }
52
+ //# sourceMappingURL=health.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../src/resources/health.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,mCAAmC;AACnC,MAAM,MAAM,gBAAgB,GACxB,KAAK,GACL,KAAK,GACL,MAAM,CAAC;AAEX,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,gBAAgB,GAAG,MAAM,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,cAAc;IACb,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,gDAAgD;IAC1C,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMlF,2DAA2D;IACrD,SAAS,CAAC,UAAU,EAAE,gBAAgB,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIzH,wCAAwC;IAClC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;CAKzE"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HealthResource = void 0;
4
+ /**
5
+ * AI-powered health study agent — medical research search, health calculators,
6
+ * and health data analysis.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
11
+ *
12
+ * // Search health studies
13
+ * const studies = await nova.health.search('effects of intermittent fasting', 10);
14
+ *
15
+ * // Calculate BMI
16
+ * const bmi = await nova.health.calculate('bmi', { weight: 75, height: 1.80 });
17
+ *
18
+ * // Calculate BMR
19
+ * const bmr = await nova.health.calculate('bmr', { weight: 75, height: 180, age: 30, gender: 'male' });
20
+ *
21
+ * // Analyze health data
22
+ * const analysis = await nova.health.analyze('Review patient vitals trend');
23
+ * ```
24
+ */
25
+ class HealthResource {
26
+ http;
27
+ constructor(http) {
28
+ this.http = http;
29
+ }
30
+ /** Search health studies and research papers */
31
+ async search(query, maxResults) {
32
+ const payload = { query };
33
+ if (maxResults !== undefined)
34
+ payload.max_results = maxResults;
35
+ return this.http.post('/health-study/search', payload);
36
+ }
37
+ /** Run a health calculation using a specific calculator */
38
+ async calculate(calculator, params) {
39
+ return this.http.post('/health-study/calculate', { calculator, params });
40
+ }
41
+ /** Run a health AI analysis workflow */
42
+ async analyze(message, taskType) {
43
+ const payload = { message };
44
+ if (taskType)
45
+ payload.task_type = taskType;
46
+ return this.http.post('/health-study/analyze', payload);
47
+ }
48
+ }
49
+ exports.HealthResource = HealthResource;
50
+ //# sourceMappingURL=health.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"health.js","sourceRoot":"","sources":["../../src/resources/health.ts"],"names":[],"mappings":";;;AA6BA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,gDAAgD;IAChD,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,UAAmB;QAC7C,MAAM,OAAO,GAA4B,EAAE,KAAK,EAAE,CAAC;QACnD,IAAI,UAAU,KAAK,SAAS;YAAE,OAAO,CAAC,WAAW,GAAG,UAAU,CAAC;QAC/D,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,2DAA2D;IAC3D,KAAK,CAAC,SAAS,CAAC,UAAqC,EAAE,MAA+B;QACpF,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,yBAAyB,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,wCAAwC;IACxC,KAAK,CAAC,OAAO,CAAC,OAAe,EAAE,QAAiB;QAC9C,MAAM,OAAO,GAA4B,EAAE,OAAO,EAAE,CAAC;QACrD,IAAI,QAAQ;YAAE,OAAO,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC3C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;CACF;AArBD,wCAqBC"}
@@ -0,0 +1,65 @@
1
+ import type { HttpClient } from '../core/http.js';
2
+ export interface IntegrationConnectParams {
3
+ service: string;
4
+ credentials: Record<string, unknown>;
5
+ }
6
+ export interface IntegrationExecuteParams {
7
+ service: string;
8
+ method: string;
9
+ endpoint: string;
10
+ body?: Record<string, unknown>;
11
+ }
12
+ export interface IntegrationCodeParams {
13
+ service: string;
14
+ language?: string;
15
+ action?: string;
16
+ }
17
+ export interface IntegrationResult {
18
+ output: string;
19
+ source: string;
20
+ [key: string]: unknown;
21
+ }
22
+ /**
23
+ * AI-powered integration agent — discover, connect, and execute third-party
24
+ * service integrations with auto-generated code and documentation.
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
29
+ *
30
+ * // Discover integration capabilities
31
+ * const info = await nova.integrations.discover('stripe');
32
+ *
33
+ * // Connect to a service
34
+ * const conn = await nova.integrations.connect('stripe', { api_key: 'sk_...' });
35
+ *
36
+ * // Execute an API call
37
+ * const result = await nova.integrations.execute('stripe', 'GET', '/v1/customers');
38
+ *
39
+ * // Get documentation
40
+ * const docs = await nova.integrations.docs('stripe');
41
+ *
42
+ * // Generate integration code
43
+ * const code = await nova.integrations.code('stripe', 'python', 'list_customers');
44
+ *
45
+ * // List all available services
46
+ * const services = await nova.integrations.services();
47
+ * ```
48
+ */
49
+ export declare class IntegrationsResource {
50
+ private http;
51
+ constructor(http: HttpClient);
52
+ /** Discover integration capabilities for a service */
53
+ discover(service: string): Promise<Record<string, unknown>>;
54
+ /** Connect to a third-party service */
55
+ connect(service: string, credentials: Record<string, unknown>): Promise<Record<string, unknown>>;
56
+ /** Execute an API call against a connected service */
57
+ execute(service: string, method: string, endpoint: string, body?: Record<string, unknown>): Promise<Record<string, unknown>>;
58
+ /** Get documentation for a service integration */
59
+ docs(service: string): Promise<Record<string, unknown>>;
60
+ /** Generate integration code for a service */
61
+ code(service: string, language?: string, action?: string): Promise<Record<string, unknown>>;
62
+ /** List all available integration services */
63
+ services(): Promise<Record<string, unknown>>;
64
+ }
65
+ //# sourceMappingURL=integrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/resources/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EA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