@indexnetwork/protocol 0.3.3 → 0.4.0-rc.12.1

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 (71) hide show
  1. package/README.md +8 -3
  2. package/dist/contact/contact.tools.d.ts.map +1 -1
  3. package/dist/contact/contact.tools.js +37 -22
  4. package/dist/contact/contact.tools.js.map +1 -1
  5. package/dist/index.d.ts +3 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/integration/integration.tools.d.ts.map +1 -1
  9. package/dist/integration/integration.tools.js +10 -8
  10. package/dist/integration/integration.tools.js.map +1 -1
  11. package/dist/intent/intent.tools.d.ts.map +1 -1
  12. package/dist/intent/intent.tools.js +112 -23
  13. package/dist/intent/intent.tools.js.map +1 -1
  14. package/dist/mcp/mcp.server.d.ts.map +1 -1
  15. package/dist/mcp/mcp.server.js +2 -1
  16. package/dist/mcp/mcp.server.js.map +1 -1
  17. package/dist/negotiation/negotiation.graph.d.ts +37 -1
  18. package/dist/negotiation/negotiation.graph.d.ts.map +1 -1
  19. package/dist/negotiation/negotiation.graph.js +48 -6
  20. package/dist/negotiation/negotiation.graph.js.map +1 -1
  21. package/dist/negotiation/negotiation.state.d.ts +12 -0
  22. package/dist/negotiation/negotiation.state.d.ts.map +1 -1
  23. package/dist/negotiation/negotiation.state.js +16 -0
  24. package/dist/negotiation/negotiation.state.js.map +1 -1
  25. package/dist/negotiation/negotiation.tools.d.ts +7 -0
  26. package/dist/negotiation/negotiation.tools.d.ts.map +1 -0
  27. package/dist/negotiation/negotiation.tools.js +547 -0
  28. package/dist/negotiation/negotiation.tools.js.map +1 -0
  29. package/dist/network/network.tools.d.ts.map +1 -1
  30. package/dist/network/network.tools.js +65 -21
  31. package/dist/network/network.tools.js.map +1 -1
  32. package/dist/opportunity/opportunity.graph.d.ts.map +1 -1
  33. package/dist/opportunity/opportunity.graph.js +4 -2
  34. package/dist/opportunity/opportunity.graph.js.map +1 -1
  35. package/dist/opportunity/opportunity.tools.d.ts.map +1 -1
  36. package/dist/opportunity/opportunity.tools.js +50 -26
  37. package/dist/opportunity/opportunity.tools.js.map +1 -1
  38. package/dist/profile/profile.graph.d.ts +12 -12
  39. package/dist/profile/profile.graph.d.ts.map +1 -1
  40. package/dist/profile/profile.graph.js +22 -15
  41. package/dist/profile/profile.graph.js.map +1 -1
  42. package/dist/profile/profile.tools.d.ts.map +1 -1
  43. package/dist/profile/profile.tools.js +50 -18
  44. package/dist/profile/profile.tools.js.map +1 -1
  45. package/dist/shared/agent/tool.factory.d.ts.map +1 -1
  46. package/dist/shared/agent/tool.factory.js +12 -1
  47. package/dist/shared/agent/tool.factory.js.map +1 -1
  48. package/dist/shared/agent/tool.helpers.d.ts +22 -0
  49. package/dist/shared/agent/tool.helpers.d.ts.map +1 -1
  50. package/dist/shared/agent/tool.helpers.js.map +1 -1
  51. package/dist/shared/agent/tool.registry.d.ts.map +1 -1
  52. package/dist/shared/agent/tool.registry.js +4 -0
  53. package/dist/shared/agent/tool.registry.js.map +1 -1
  54. package/dist/shared/agent/utility.tools.d.ts.map +1 -1
  55. package/dist/shared/agent/utility.tools.js +215 -46
  56. package/dist/shared/agent/utility.tools.js.map +1 -1
  57. package/dist/shared/interfaces/database.interface.d.ts +52 -0
  58. package/dist/shared/interfaces/database.interface.d.ts.map +1 -1
  59. package/dist/shared/interfaces/negotiation-events.interface.d.ts +58 -0
  60. package/dist/shared/interfaces/negotiation-events.interface.d.ts.map +1 -0
  61. package/dist/shared/interfaces/negotiation-events.interface.js +7 -0
  62. package/dist/shared/interfaces/negotiation-events.interface.js.map +1 -0
  63. package/dist/shared/interfaces/webhook.interface.d.ts +25 -0
  64. package/dist/shared/interfaces/webhook.interface.d.ts.map +1 -0
  65. package/dist/shared/interfaces/webhook.interface.js +2 -0
  66. package/dist/shared/interfaces/webhook.interface.js.map +1 -0
  67. package/dist/webhook/webhook.tools.d.ts +7 -0
  68. package/dist/webhook/webhook.tools.d.ts.map +1 -0
  69. package/dist/webhook/webhook.tools.js +127 -0
  70. package/dist/webhook/webhook.tools.js.map +1 -0
  71. package/package.json +4 -2
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Webhook adapter interface for the protocol layer.
3
+ * Implemented by the host application and injected via ProtocolDeps.
4
+ */
5
+ export interface WebhookAdapter {
6
+ create(userId: string, url: string, events: string[], description?: string): Promise<{
7
+ id: string;
8
+ secret: string;
9
+ }>;
10
+ list(userId: string): Promise<Array<{
11
+ id: string;
12
+ url: string;
13
+ events: string[];
14
+ active: boolean;
15
+ description?: string | null;
16
+ failureCount: number;
17
+ createdAt: Date;
18
+ }>>;
19
+ delete(userId: string, webhookId: string): Promise<void>;
20
+ test(userId: string, webhookId: string): Promise<{
21
+ success: boolean;
22
+ }>;
23
+ listEvents(): string[];
24
+ }
25
+ //# sourceMappingURL=webhook.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.interface.d.ts","sourceRoot":"","sources":["../../../src/shared/interfaces/webhook.interface.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrH,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;QAClC,EAAE,EAAE,MAAM,CAAC;QACX,GAAG,EAAE,MAAM,CAAC;QACZ,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,IAAI,CAAC;KACjB,CAAC,CAAC,CAAC;IACJ,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACvE,UAAU,IAAI,MAAM,EAAE,CAAC;CACxB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=webhook.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.interface.js","sourceRoot":"","sources":["../../../src/shared/interfaces/webhook.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { DefineTool, ToolDeps } from '../shared/agent/tool.helpers.js';
2
+ /**
3
+ * Creates webhook management tools for the chat agent.
4
+ * Enables registering, listing, deleting, and testing webhook subscriptions.
5
+ */
6
+ export declare function createWebhookTools(defineTool: DefineTool, deps: ToolDeps): any[];
7
+ //# sourceMappingURL=webhook.tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.tools.d.ts","sourceRoot":"","sources":["../../src/webhook/webhook.tools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAG5E;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,SA4HxE"}
@@ -0,0 +1,127 @@
1
+ import { z } from 'zod';
2
+ import { success, error } from '../shared/agent/tool.helpers.js';
3
+ /**
4
+ * Creates webhook management tools for the chat agent.
5
+ * Enables registering, listing, deleting, and testing webhook subscriptions.
6
+ */
7
+ export function createWebhookTools(defineTool, deps) {
8
+ const { webhook } = deps;
9
+ const register_webhook = defineTool({
10
+ name: 'register_webhook',
11
+ description: 'Register a webhook URL to receive push notifications when events occur. ' +
12
+ 'The webhook will receive HTTP POST requests with a JSON payload signed with HMAC-SHA256. ' +
13
+ 'Use list_webhook_events to discover available event names before registering.',
14
+ querySchema: z.object({
15
+ url: z.string().describe('The HTTPS URL to receive webhook POST requests'),
16
+ events: z.array(z.string()).describe('Array of event names to subscribe to (e.g. ["opportunity.created"])'),
17
+ description: z.string().optional().describe('Optional human-readable description of this webhook'),
18
+ }),
19
+ handler: async ({ context, query }) => {
20
+ if (!webhook) {
21
+ return error('Webhook functionality is not available');
22
+ }
23
+ try {
24
+ const result = await webhook.create(context.userId, query.url, query.events, query.description);
25
+ return success({
26
+ message: 'Webhook registered successfully. Save the secret for verifying signatures.',
27
+ id: result.id,
28
+ secret: result.secret,
29
+ });
30
+ }
31
+ catch (err) {
32
+ return error(`Failed to register webhook: ${err instanceof Error ? err.message : String(err)}`);
33
+ }
34
+ },
35
+ });
36
+ const list_webhooks = defineTool({
37
+ name: 'list_webhooks',
38
+ description: "List all webhooks registered by the authenticated user. " +
39
+ "Secrets are masked for security (only last 4 characters shown).",
40
+ querySchema: z.object({}),
41
+ handler: async ({ context }) => {
42
+ if (!webhook) {
43
+ return error('Webhook functionality is not available');
44
+ }
45
+ try {
46
+ const webhooks = await webhook.list(context.userId);
47
+ return success({
48
+ count: webhooks.length,
49
+ webhooks: webhooks.map(w => ({
50
+ id: w.id,
51
+ url: w.url,
52
+ events: w.events,
53
+ active: w.active,
54
+ description: w.description,
55
+ failureCount: w.failureCount,
56
+ createdAt: w.createdAt,
57
+ })),
58
+ });
59
+ }
60
+ catch (err) {
61
+ return error(`Failed to list webhooks: ${err instanceof Error ? err.message : String(err)}`);
62
+ }
63
+ },
64
+ });
65
+ const delete_webhook = defineTool({
66
+ name: 'delete_webhook',
67
+ description: 'Delete a webhook registration by its ID. Only the owner can delete their webhooks.',
68
+ querySchema: z.object({
69
+ webhookId: z.string().describe('The ID of the webhook to delete'),
70
+ }),
71
+ handler: async ({ context, query }) => {
72
+ if (!webhook) {
73
+ return error('Webhook functionality is not available');
74
+ }
75
+ try {
76
+ await webhook.delete(context.userId, query.webhookId);
77
+ return success({ message: 'Webhook deleted successfully' });
78
+ }
79
+ catch (err) {
80
+ return error(`Failed to delete webhook: ${err instanceof Error ? err.message : String(err)}`);
81
+ }
82
+ },
83
+ });
84
+ const test_webhook = defineTool({
85
+ name: 'test_webhook',
86
+ description: 'Send a test payload to a webhook URL to verify it is working correctly. ' +
87
+ 'The test delivery is enqueued and processed asynchronously.',
88
+ querySchema: z.object({
89
+ webhookId: z.string().describe('The ID of the webhook to test'),
90
+ }),
91
+ handler: async ({ context, query }) => {
92
+ if (!webhook) {
93
+ return error('Webhook functionality is not available');
94
+ }
95
+ try {
96
+ const result = await webhook.test(context.userId, query.webhookId);
97
+ return success({
98
+ message: 'Test webhook delivery enqueued. Check your endpoint for the test payload.',
99
+ success: result.success,
100
+ });
101
+ }
102
+ catch (err) {
103
+ return error(`Failed to test webhook: ${err instanceof Error ? err.message : String(err)}`);
104
+ }
105
+ },
106
+ });
107
+ const list_webhook_events = defineTool({
108
+ name: 'list_webhook_events',
109
+ description: 'List all available webhook event names that can be subscribed to. ' +
110
+ 'Use these event names when registering a webhook with register_webhook.',
111
+ querySchema: z.object({}),
112
+ handler: async () => {
113
+ if (!webhook) {
114
+ return error('Webhook functionality is not available');
115
+ }
116
+ try {
117
+ const events = webhook.listEvents();
118
+ return success({ events });
119
+ }
120
+ catch (err) {
121
+ return error(`Failed to list webhook events: ${err instanceof Error ? err.message : String(err)}`);
122
+ }
123
+ },
124
+ });
125
+ return [register_webhook, list_webhooks, delete_webhook, test_webhook, list_webhook_events];
126
+ }
127
+ //# sourceMappingURL=webhook.tools.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webhook.tools.js","sourceRoot":"","sources":["../../src/webhook/webhook.tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAEjE;;;GA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EAAE,2EAA2E;oBACpF,OAAO,EAAE,MAAM,CAAC,OAAO;iBACxB,CAAC,CAAC;YACL,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,KAAK,CAAC,2BAA2B,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC9F,CAAC;QACH,CAAC;KACF,CAAC,CAAC;IAEH,MAAM,mBAAmB,GAAG,UAAU,CAAC;QACrC,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EACT,oEAAoE;YACpE,yEAAyE;QAC3E,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACzB,OAAO,EAAE,KAAK,IAAI,EAAE;YAClB,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,OAAO,KAAK,CAAC,wCAAwC,CAAC,CAAC;YACzD,CAAC;YACD,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;gBACpC,OAAO,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;YAC7B,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,KAAK,CAAC,kCAAkC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACrG,CAAC;QACH,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,CAAC,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,mBAAmB,CAAC,CAAC;AAC9F,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/protocol",
3
- "version": "0.3.3",
3
+ "version": "0.4.0-rc.12.1",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -10,7 +10,9 @@
10
10
  "types": "./dist/index.d.ts"
11
11
  }
12
12
  },
13
- "files": ["dist"],
13
+ "files": [
14
+ "dist"
15
+ ],
14
16
  "scripts": {
15
17
  "build": "tsc",
16
18
  "dev": "tsc --watch",