@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.
Files changed (73) hide show
  1. package/dist/client.d.ts +39 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +52 -0
  4. package/dist/client.js.map +1 -1
  5. package/dist/index.d.ts +26 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +27 -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/billing.d.ts +49 -0
  18. package/dist/resources/billing.d.ts.map +1 -0
  19. package/dist/resources/billing.js +82 -0
  20. package/dist/resources/billing.js.map +1 -0
  21. package/dist/resources/browser.d.ts +55 -0
  22. package/dist/resources/browser.d.ts.map +1 -0
  23. package/dist/resources/browser.js +59 -0
  24. package/dist/resources/browser.js.map +1 -0
  25. package/dist/resources/byollm.d.ts +2 -0
  26. package/dist/resources/byollm.d.ts.map +1 -1
  27. package/dist/resources/byollm.js +4 -0
  28. package/dist/resources/byollm.js.map +1 -1
  29. package/dist/resources/creative.d.ts +63 -0
  30. package/dist/resources/creative.d.ts.map +1 -0
  31. package/dist/resources/creative.js +58 -0
  32. package/dist/resources/creative.js.map +1 -0
  33. package/dist/resources/cybersecurity.d.ts +81 -0
  34. package/dist/resources/cybersecurity.d.ts.map +1 -0
  35. package/dist/resources/cybersecurity.js +88 -0
  36. package/dist/resources/cybersecurity.js.map +1 -0
  37. package/dist/resources/design.d.ts +61 -0
  38. package/dist/resources/design.d.ts.map +1 -0
  39. package/dist/resources/design.js +70 -0
  40. package/dist/resources/design.js.map +1 -0
  41. package/dist/resources/health.d.ts +52 -0
  42. package/dist/resources/health.d.ts.map +1 -0
  43. package/dist/resources/health.js +50 -0
  44. package/dist/resources/health.js.map +1 -0
  45. package/dist/resources/integrations.d.ts +65 -0
  46. package/dist/resources/integrations.d.ts.map +1 -0
  47. package/dist/resources/integrations.js +70 -0
  48. package/dist/resources/integrations.js.map +1 -0
  49. package/dist/resources/marketing.d.ts +65 -0
  50. package/dist/resources/marketing.d.ts.map +1 -0
  51. package/dist/resources/marketing.js +63 -0
  52. package/dist/resources/marketing.js.map +1 -0
  53. package/dist/resources/memory.d.ts +82 -0
  54. package/dist/resources/memory.d.ts.map +1 -0
  55. package/dist/resources/memory.js +82 -0
  56. package/dist/resources/memory.js.map +1 -0
  57. package/dist/resources/oilgas.d.ts +108 -0
  58. package/dist/resources/oilgas.d.ts.map +1 -0
  59. package/dist/resources/oilgas.js +86 -0
  60. package/dist/resources/oilgas.js.map +1 -0
  61. package/dist/resources/terminal.d.ts +74 -0
  62. package/dist/resources/terminal.d.ts.map +1 -0
  63. package/dist/resources/terminal.js +73 -0
  64. package/dist/resources/terminal.js.map +1 -0
  65. package/dist/resources/toolbuilder.d.ts +39 -0
  66. package/dist/resources/toolbuilder.d.ts.map +1 -0
  67. package/dist/resources/toolbuilder.js +34 -0
  68. package/dist/resources/toolbuilder.js.map +1 -0
  69. package/dist/types/billing.d.ts +150 -0
  70. package/dist/types/billing.d.ts.map +1 -0
  71. package/dist/types/billing.js +4 -0
  72. package/dist/types/billing.js.map +1 -0
  73. package/package.json +1 -1
@@ -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,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,oBAAoB;IACnB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,sDAAsD;IAChD,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIjE,uCAAuC;IACjC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAItG,sDAAsD;IAChD,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMlI,kDAAkD;IAC5C,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAI7D,8CAA8C;IACxC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAOjG,8CAA8C;IACxC,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAGnD"}
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IntegrationsResource = void 0;
4
+ /**
5
+ * AI-powered integration agent — discover, connect, and execute third-party
6
+ * service integrations with auto-generated code and documentation.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
11
+ *
12
+ * // Discover integration capabilities
13
+ * const info = await nova.integrations.discover('stripe');
14
+ *
15
+ * // Connect to a service
16
+ * const conn = await nova.integrations.connect('stripe', { api_key: 'sk_...' });
17
+ *
18
+ * // Execute an API call
19
+ * const result = await nova.integrations.execute('stripe', 'GET', '/v1/customers');
20
+ *
21
+ * // Get documentation
22
+ * const docs = await nova.integrations.docs('stripe');
23
+ *
24
+ * // Generate integration code
25
+ * const code = await nova.integrations.code('stripe', 'python', 'list_customers');
26
+ *
27
+ * // List all available services
28
+ * const services = await nova.integrations.services();
29
+ * ```
30
+ */
31
+ class IntegrationsResource {
32
+ http;
33
+ constructor(http) {
34
+ this.http = http;
35
+ }
36
+ /** Discover integration capabilities for a service */
37
+ async discover(service) {
38
+ return this.http.get('/integrations/discover', { service });
39
+ }
40
+ /** Connect to a third-party service */
41
+ async connect(service, credentials) {
42
+ return this.http.post('/integrations/connect', { service, credentials });
43
+ }
44
+ /** Execute an API call against a connected service */
45
+ async execute(service, method, endpoint, body) {
46
+ const payload = { service, method, endpoint };
47
+ if (body)
48
+ payload.body = body;
49
+ return this.http.post('/integrations/execute', payload);
50
+ }
51
+ /** Get documentation for a service integration */
52
+ async docs(service) {
53
+ return this.http.get('/integrations/docs', { service });
54
+ }
55
+ /** Generate integration code for a service */
56
+ async code(service, language, action) {
57
+ const params = { service };
58
+ if (language)
59
+ params.language = language;
60
+ if (action)
61
+ params.action = action;
62
+ return this.http.get('/integrations/code', params);
63
+ }
64
+ /** List all available integration services */
65
+ async services() {
66
+ return this.http.get('/integrations/services');
67
+ }
68
+ }
69
+ exports.IntegrationsResource = IntegrationsResource;
70
+ //# sourceMappingURL=integrations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/resources/integrations.ts"],"names":[],"mappings":";;;AA0BA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,oBAAoB;IACX;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,sDAAsD;IACtD,KAAK,CAAC,QAAQ,CAAC,OAAe;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,wBAAwB,EAAE,EAAE,OAAO,EAAE,CAAC,C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string;
4
+ name: string;
5
+ description: string;
6
+ [key: string]: unknown;
7
+ }
8
+ export interface MarketingDetectResult {
9
+ skill: string;
10
+ confidence: number;
11
+ [key: string]: unknown;
12
+ }
13
+ export interface MarketingRunParams {
14
+ skill: string;
15
+ message: string;
16
+ }
17
+ export interface MarketingResult {
18
+ output: string;
19
+ source: string;
20
+ [key: string]: unknown;
21
+ }
22
+ /**
23
+ * AI-powered marketing agent — skill discovery, intent detection, campaign
24
+ * execution, and conversational marketing AI.
25
+ *
26
+ * @example
27
+ * ```typescript
28
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
29
+ *
30
+ * // List available marketing skills
31
+ * const skills = await nova.marketing.skills();
32
+ *
33
+ * // Get a specific skill
34
+ * const skill = await nova.marketing.skill('seo-audit');
35
+ *
36
+ * // Detect marketing intent
37
+ * const detected = await nova.marketing.detect('I need help with SEO');
38
+ *
39
+ * // Run a marketing skill
40
+ * const result = await nova.marketing.run('seo-audit', 'Analyze example.com');
41
+ *
42
+ * // Chat with marketing AI
43
+ * const chat = await nova.marketing.chat('Help me plan a product launch');
44
+ *
45
+ * // Get tools registry
46
+ * const tools = await nova.marketing.toolsRegistry();
47
+ * ```
48
+ */
49
+ export declare class MarketingResource {
50
+ private http;
51
+ constructor(http: HttpClient);
52
+ /** List all available marketing skills */
53
+ skills(): Promise<MarketingSkill[]>;
54
+ /** Get details of a specific marketing skill */
55
+ skill(slug: string): Promise<MarketingSkill>;
56
+ /** Detect marketing intent from a message */
57
+ detect(message: string): Promise<MarketingDetectResult>;
58
+ /** Run a specific marketing skill with a message */
59
+ run(skill: string, message: string): Promise<MarketingResult>;
60
+ /** Chat with the marketing AI assistant */
61
+ chat(message: string): Promise<MarketingResult>;
62
+ /** Get the marketing tools registry */
63
+ toolsRegistry(): Promise<Record<string, unknown>>;
64
+ }
65
+ //# sourceMappingURL=marketing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketing.d.ts","sourceRoot":"","sources":["../../src/resources/market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xD"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketingResource = void 0;
4
+ /**
5
+ * AI-powered marketing agent — skill discovery, intent detection, campaign
6
+ * execution, and conversational marketing AI.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
11
+ *
12
+ * // List available marketing skills
13
+ * const skills = await nova.marketing.skills();
14
+ *
15
+ * // Get a specific skill
16
+ * const skill = await nova.marketing.skill('seo-audit');
17
+ *
18
+ * // Detect marketing intent
19
+ * const detected = await nova.marketing.detect('I need help with SEO');
20
+ *
21
+ * // Run a marketing skill
22
+ * const result = await nova.marketing.run('seo-audit', 'Analyze example.com');
23
+ *
24
+ * // Chat with marketing AI
25
+ * const chat = await nova.marketing.chat('Help me plan a product launch');
26
+ *
27
+ * // Get tools registry
28
+ * const tools = await nova.marketing.toolsRegistry();
29
+ * ```
30
+ */
31
+ class MarketingResource {
32
+ http;
33
+ constructor(http) {
34
+ this.http = http;
35
+ }
36
+ /** List all available marketing skills */
37
+ async skills() {
38
+ const result = await this.http.get('/marketing/skills');
39
+ return result.skills ?? result;
40
+ }
41
+ /** Get details of a specific marketing skill */
42
+ async skill(slug) {
43
+ return this.http.get(`/marketing/skills/${slug}`);
44
+ }
45
+ /** Detect marketing intent from a message */
46
+ async detect(message) {
47
+ return this.http.post('/marketing/detect', { message });
48
+ }
49
+ /** Run a specific marketing skill with a message */
50
+ async run(skill, message) {
51
+ return this.http.post('/marketing/run', { skill, message });
52
+ }
53
+ /** Chat with the marketing AI assistant */
54
+ async chat(message) {
55
+ return this.http.post('/marketing/chat', { message });
56
+ }
57
+ /** Get the marketing tools registry */
58
+ async toolsRegistry() {
59
+ return this.http.get('/marketing/tools-registry');
60
+ }
61
+ }
62
+ exports.MarketingResource = MarketingResource;
63
+ //# sourceMappingURL=marketing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketing.js","sourceRoot":"","sources":["../../src/resources/marketing.ts"],"names":[],"mappings":";;;AA0BA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,iBAAiB;IACR;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,0CAA0C;IAC1C,KAAK,CAAC,MAAM;QACV,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACxD,OAAQ,MAAc,CAAC,MAAM,IAAI,MAAM,CAAC;IAC1C,CAAC;IAED,gDAAgD;IAChD,KAAK,CAAC,KAAK,CAAC,IAAY;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,6CAA6C;IAC7C,KAAK,CAAC,MAAM,CAAC,OAAe;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,oDAAoD;IACpD,KAAK,CAAC,GAAG,CAAC,KAAa,EAAE,OAAe;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,2CAA2C;IAC3C,KAAK,CAAC,IAAI,CAAC,OAAe;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,uCAAuC;IACvC,KAAK,CAAC,aAAa;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACpD,CAAC;CACF;AAjCD,8CAiCC"}
@@ -0,0 +1,82 @@
1
+ import type { HttpClient } from '../core/http.js';
2
+ export interface MemorySearchParams {
3
+ q: string;
4
+ wing?: string;
5
+ room?: string;
6
+ limit?: number;
7
+ }
8
+ export interface MemoryStoreParams {
9
+ content: string;
10
+ wing: string;
11
+ room: string;
12
+ source?: string;
13
+ }
14
+ export interface MemoryKgAddParams {
15
+ subject: string;
16
+ predicate: string;
17
+ object: string;
18
+ valid_from?: string;
19
+ }
20
+ export interface MemoryAutoSaveParams {
21
+ session_id: string;
22
+ messages: Record<string, unknown>[];
23
+ }
24
+ export interface MemoryStatusResult {
25
+ wings: number;
26
+ rooms: number;
27
+ memories: number;
28
+ [key: string]: unknown;
29
+ }
30
+ export interface MemorySearchResult {
31
+ results: Record<string, unknown>[];
32
+ [key: string]: unknown;
33
+ }
34
+ /**
35
+ * AI-powered memory palace (MemPalace) — semantic search, structured storage,
36
+ * knowledge graphs, and automatic session saving.
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
41
+ *
42
+ * // Search memories
43
+ * const results = await nova.memory.search('project deadlines', 'work', 'projects', 5);
44
+ *
45
+ * // Store a memory
46
+ * await nova.memory.store('Meeting notes from standup', 'work', 'meetings');
47
+ *
48
+ * // Get memory status
49
+ * const status = await nova.memory.status();
50
+ *
51
+ * // Add a knowledge graph triple
52
+ * await nova.memory.kgAdd('ProjectX', 'deadline', '2025-03-01');
53
+ *
54
+ * // Query knowledge graph
55
+ * const kg = await nova.memory.kgQuery('ProjectX');
56
+ *
57
+ * // Get entity timeline
58
+ * const timeline = await nova.memory.kgTimeline('ProjectX');
59
+ *
60
+ * // Auto-save session messages
61
+ * await nova.memory.autoSave('sess_123', messages);
62
+ * ```
63
+ */
64
+ export declare class MemoryResource {
65
+ private http;
66
+ constructor(http: HttpClient);
67
+ /** Search memories using semantic search */
68
+ search(query: string, wing?: string, room?: string, limit?: number): Promise<MemorySearchResult>;
69
+ /** Store a new memory in the palace */
70
+ store(content: string, wing: string, room: string, source?: string): Promise<Record<string, unknown>>;
71
+ /** Get memory palace status and statistics */
72
+ status(): Promise<MemoryStatusResult>;
73
+ /** Add a triple to the knowledge graph */
74
+ kgAdd(subject: string, predicate: string, object: string, validFrom?: string): Promise<Record<string, unknown>>;
75
+ /** Query the knowledge graph for an entity */
76
+ kgQuery(entity: string): Promise<Record<string, unknown>>;
77
+ /** Get the timeline for a knowledge graph entity */
78
+ kgTimeline(entity: string): Promise<Record<string, unknown>>;
79
+ /** Auto-save session messages to memory */
80
+ autoSave(sessionId: string, messages: Record<string, unknown>[]): Promise<Record<string, unknown>>;
81
+ }
82
+ //# sourceMappingURL=memory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/resources/memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACrC;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,G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AE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAGzG"}
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MemoryResource = void 0;
4
+ /**
5
+ * AI-powered memory palace (MemPalace) — semantic search, structured storage,
6
+ * knowledge graphs, and automatic session saving.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * const nova = new NovaClient({ apiKey: 'nova_xxx' });
11
+ *
12
+ * // Search memories
13
+ * const results = await nova.memory.search('project deadlines', 'work', 'projects', 5);
14
+ *
15
+ * // Store a memory
16
+ * await nova.memory.store('Meeting notes from standup', 'work', 'meetings');
17
+ *
18
+ * // Get memory status
19
+ * const status = await nova.memory.status();
20
+ *
21
+ * // Add a knowledge graph triple
22
+ * await nova.memory.kgAdd('ProjectX', 'deadline', '2025-03-01');
23
+ *
24
+ * // Query knowledge graph
25
+ * const kg = await nova.memory.kgQuery('ProjectX');
26
+ *
27
+ * // Get entity timeline
28
+ * const timeline = await nova.memory.kgTimeline('ProjectX');
29
+ *
30
+ * // Auto-save session messages
31
+ * await nova.memory.autoSave('sess_123', messages);
32
+ * ```
33
+ */
34
+ class MemoryResource {
35
+ http;
36
+ constructor(http) {
37
+ this.http = http;
38
+ }
39
+ /** Search memories using semantic search */
40
+ async search(query, wing, room, limit) {
41
+ const params = { q: query };
42
+ if (wing)
43
+ params.wing = wing;
44
+ if (room)
45
+ params.room = room;
46
+ if (limit !== undefined)
47
+ params.limit = limit;
48
+ return this.http.get('/memory/search', params);
49
+ }
50
+ /** Store a new memory in the palace */
51
+ async store(content, wing, room, source) {
52
+ const payload = { content, wing, room };
53
+ if (source)
54
+ payload.source = source;
55
+ return this.http.post('/memory/store', payload);
56
+ }
57
+ /** Get memory palace status and statistics */
58
+ async status() {
59
+ return this.http.get('/memory/status');
60
+ }
61
+ /** Add a triple to the knowledge graph */
62
+ async kgAdd(subject, predicate, object, validFrom) {
63
+ const payload = { subject, predicate, object };
64
+ if (validFrom)
65
+ payload.valid_from = validFrom;
66
+ return this.http.post('/memory/kg/add', payload);
67
+ }
68
+ /** Query the knowledge graph for an entity */
69
+ async kgQuery(entity) {
70
+ return this.http.get('/memory/kg/query', { entity });
71
+ }
72
+ /** Get the timeline for a knowledge graph entity */
73
+ async kgTimeline(entity) {
74
+ return this.http.get('/memory/kg/timeline', { entity });
75
+ }
76
+ /** Auto-save session messages to memory */
77
+ async autoSave(sessionId, messages) {
78
+ return this.http.post('/memory/auto-save', { session_id: sessionId, messages });
79
+ }
80
+ }
81
+ exports.MemoryResource = MemoryResource;
82
+ //# sourceMappingURL=memory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/resources/memory.ts"],"names":[],"mappings":";;;AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,4CAA4C;IAC5C,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,IAAa,EAAE,IAAa,EAAE,KAAc;QACtE,MAAM,MAAM,GAAoC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;QAC7D,IAAI,IAAI;YAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;QAC7B,IAAI,IAAI;YAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;QAC7B,IAAI,KAAK,KAAK,SAAS;YAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,uCAAuC;IACvC,KAAK,CAAC,KAAK,CAAC,OAAe,EAAE,IAAY,EAAE,IAAY,EAAE,MAAe;QACtE,MAAM,OAAO,GAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC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