@indexnetwork/protocol 16.1.1-rc.478.1 → 17.0.0-rc.479.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 (53) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/chat/chat.agent.js +0 -1
  3. package/dist/chat/negotiator.persona.d.ts +1 -1
  4. package/dist/chat/negotiator.persona.js +1 -4
  5. package/dist/chat/negotiator.prompt.js +1 -2
  6. package/dist/chat/onboarding.persona.js +0 -1
  7. package/dist/chat/reporter.persona.js +0 -1
  8. package/dist/chat/signal.persona.js +0 -1
  9. package/dist/contacts/application/contact.tools.d.ts +6 -9
  10. package/dist/contacts/application/contact.tools.js +11 -92
  11. package/dist/contacts/application/index.d.ts +2 -14
  12. package/dist/contacts/application/index.js +2 -13
  13. package/dist/contacts/domain/contact.types.d.ts +0 -23
  14. package/dist/contacts/domain/index.d.ts +2 -6
  15. package/dist/contacts/index.d.ts +1 -1
  16. package/dist/contacts/index.js +1 -1
  17. package/dist/contacts/ports/contact.repository.port.d.ts +5 -12
  18. package/dist/contacts/ports/contact.repository.port.js +4 -6
  19. package/dist/contacts/ports/contact.tools.port.d.ts +1 -3
  20. package/dist/contacts/ports/contact.tools.port.js +1 -2
  21. package/dist/contacts/ports/index.d.ts +1 -1
  22. package/dist/contacts/ports/index.js +1 -1
  23. package/dist/index.d.ts +0 -2
  24. package/dist/index.js +0 -1
  25. package/dist/mcp/mcp.server.js +2 -4
  26. package/dist/shared/agent/tool.factory.js +0 -8
  27. package/dist/shared/agent/tool.helpers.d.ts +0 -45
  28. package/dist/shared/agent/tool.helpers.js +1 -2
  29. package/dist/shared/agent/tool.registry.js +1 -3
  30. package/dist/shared/agent/tool.runtime.js +0 -2
  31. package/dist/shared/agent/utility.tools.js +9 -13
  32. package/dist/shared/interfaces/database.member-queries.d.ts +1 -8
  33. package/package.json +1 -1
  34. package/dist/contacts/application/contact.inviter.d.ts +0 -49
  35. package/dist/contacts/application/contact.inviter.js +0 -64
  36. package/dist/integrations/application/index.d.ts +0 -14
  37. package/dist/integrations/application/index.js +0 -14
  38. package/dist/integrations/application/integration.tools.d.ts +0 -27
  39. package/dist/integrations/application/integration.tools.js +0 -98
  40. package/dist/integrations/domain/index.d.ts +0 -16
  41. package/dist/integrations/domain/index.js +0 -1
  42. package/dist/integrations/domain/integration.types.d.ts +0 -51
  43. package/dist/integrations/domain/integration.types.js +0 -9
  44. package/dist/integrations/index.d.ts +0 -10
  45. package/dist/integrations/index.js +0 -8
  46. package/dist/integrations/ports/index.d.ts +0 -25
  47. package/dist/integrations/ports/index.js +0 -23
  48. package/dist/integrations/ports/integration.adapter.port.d.ts +0 -62
  49. package/dist/integrations/ports/integration.adapter.port.js +0 -15
  50. package/dist/integrations/ports/integration.importer.port.d.ts +0 -31
  51. package/dist/integrations/ports/integration.importer.port.js +0 -15
  52. package/dist/integrations/ports/integration.tools.port.d.ts +0 -25
  53. package/dist/integrations/ports/integration.tools.port.js +0 -18
@@ -1,62 +0,0 @@
1
- /**
2
- * integrations/ports — IntegrationAdapter platform adapter port.
3
- *
4
- * Injected boundary for external integration platform access (OAuth sessions,
5
- * tool execution, connection management). Implemented by the host application
6
- * and passed into the protocol layer at the composition root.
7
- *
8
- * Retains host-integration configuration/actions semantics: adapter provides
9
- * session creation, tool execution, connection listing, OAuth auth URLs, and
10
- * disconnection — all platform-agnostic operations.
11
- *
12
- * IND-549: extracted from shared/interfaces/integration.interface.ts into the
13
- * integrations capability's dedicated ports layer.
14
- */
15
- import type { IntegrationSession, IntegrationSessionOptions, ToolActionResponse, IntegrationConnection } from "../domain/index.js";
16
- /**
17
- * Adapter for external integration platforms (OAuth sessions, tool execution).
18
- *
19
- * @remarks
20
- * Implementations wrap a specific platform SDK (e.g. Composio) and expose
21
- * a platform-agnostic API for creating user sessions and executing tool actions.
22
- */
23
- export interface IntegrationAdapter {
24
- /**
25
- * Create an authenticated session for a user.
26
- * @param userId - User ID for the session
27
- * @param options - Session configuration (e.g. connection management)
28
- * @returns A session object for interacting with the platform
29
- */
30
- createSession(userId: string, options?: IntegrationSessionOptions): Promise<IntegrationSession>;
31
- /**
32
- * Execute a named tool action on behalf of a user.
33
- * @param slug - Tool action identifier (e.g. 'GMAIL_GET_CONTACTS')
34
- * @param userId - User to execute the action for
35
- * @param args - Arguments to pass to the tool action
36
- * @returns The tool execution response
37
- */
38
- executeToolAction(slug: string, userId: string, args: Record<string, unknown>): Promise<ToolActionResponse>;
39
- /**
40
- * List all connected accounts for a user.
41
- * @param userId - User to list connections for
42
- * @returns Array of connected integration accounts
43
- */
44
- listConnections(userId: string): Promise<IntegrationConnection[]>;
45
- /**
46
- * Get an OAuth authorization URL to connect a toolkit.
47
- * @param userId - User to authorize
48
- * @param toolkit - Toolkit slug (e.g. 'gmail')
49
- * @param callbackUrl - URL to redirect to after OAuth
50
- * @returns The redirect URL for OAuth
51
- */
52
- getAuthUrl(userId: string, toolkit: string, callbackUrl?: string): Promise<{
53
- redirectUrl: string;
54
- }>;
55
- /**
56
- * Disconnect (delete) a connected account.
57
- * @param connectedAccountId - The connected account ID to remove
58
- */
59
- disconnect(connectedAccountId: string): Promise<{
60
- success: boolean;
61
- }>;
62
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * integrations/ports — IntegrationAdapter platform adapter port.
3
- *
4
- * Injected boundary for external integration platform access (OAuth sessions,
5
- * tool execution, connection management). Implemented by the host application
6
- * and passed into the protocol layer at the composition root.
7
- *
8
- * Retains host-integration configuration/actions semantics: adapter provides
9
- * session creation, tool execution, connection listing, OAuth auth URLs, and
10
- * disconnection — all platform-agnostic operations.
11
- *
12
- * IND-549: extracted from shared/interfaces/integration.interface.ts into the
13
- * integrations capability's dedicated ports layer.
14
- */
15
- export {};
@@ -1,31 +0,0 @@
1
- /**
2
- * integrations/ports — IntegrationImporter bulk-import port.
3
- *
4
- * Narrow port for bulk contact import from integration toolkits (e.g. Gmail).
5
- * Implemented by the host application and injected at the composition root.
6
- *
7
- * Decoupled from IntegrationAdapter: the importer handles the full import
8
- * pipeline (fetching, deduplication, ghost creation) so tools only need to
9
- * invoke it by toolkit slug — they do not need raw toolkit access.
10
- *
11
- * IND-549: extracted from the inline `integrationImporter` type in
12
- * shared/agent/tool.helpers.ts into the integrations capability's dedicated
13
- * ports layer as a named interface.
14
- */
15
- /** Result of a bulk contact import from an integration toolkit. */
16
- export interface IntegrationImportResult {
17
- imported: number;
18
- skipped: number;
19
- newContacts: number;
20
- existingContacts: number;
21
- }
22
- /**
23
- * Bulk contact importer for integration toolkit sources.
24
- *
25
- * Implementors handle the full fetch→match→ghost-create pipeline.
26
- * The tool layer invokes importContacts with the userId and the
27
- * toolkit slug (e.g. 'gmail') and receives aggregate import statistics.
28
- */
29
- export interface IntegrationImporter {
30
- importContacts(userId: string, toolkit: string): Promise<IntegrationImportResult>;
31
- }
@@ -1,15 +0,0 @@
1
- /**
2
- * integrations/ports — IntegrationImporter bulk-import port.
3
- *
4
- * Narrow port for bulk contact import from integration toolkits (e.g. Gmail).
5
- * Implemented by the host application and injected at the composition root.
6
- *
7
- * Decoupled from IntegrationAdapter: the importer handles the full import
8
- * pipeline (fetching, deduplication, ghost creation) so tools only need to
9
- * invoke it by toolkit slug — they do not need raw toolkit access.
10
- *
11
- * IND-549: extracted from the inline `integrationImporter` type in
12
- * shared/agent/tool.helpers.ts into the integrations capability's dedicated
13
- * ports layer as a named interface.
14
- */
15
- export {};
@@ -1,25 +0,0 @@
1
- /**
2
- * integrations/ports — IntegrationToolDeps tool host port.
3
- *
4
- * Narrow port type consumed by createIntegrationTools. The host provides an
5
- * IntegrationAdapter, an IntegrationImporter, and the contactsEnabled flag
6
- * that gates the import_gmail_contacts tool (which creates ghost users).
7
- *
8
- * NOTE: This type is intentionally defined inline rather than derived from
9
- * ToolRegistryCompositionDeps, keeping the capability port independent from
10
- * the all-capability composition contract.
11
- *
12
- * Its shape remains structurally equivalent to the matching
13
- * ToolRegistryCompositionDeps fields.
14
- *
15
- * IND-549: extracted from capabilities/integrations.tools.port.ts into the
16
- * integrations capability's dedicated ports layer.
17
- */
18
- import type { IntegrationAdapter } from "./integration.adapter.port.js";
19
- import type { IntegrationImporter } from "./integration.importer.port.js";
20
- /** Host capabilities consumed by integration-backed contact import tools. */
21
- export type IntegrationToolDeps = {
22
- integration: IntegrationAdapter;
23
- integrationImporter: IntegrationImporter;
24
- contactsEnabled?: boolean;
25
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * integrations/ports — IntegrationToolDeps tool host port.
3
- *
4
- * Narrow port type consumed by createIntegrationTools. The host provides an
5
- * IntegrationAdapter, an IntegrationImporter, and the contactsEnabled flag
6
- * that gates the import_gmail_contacts tool (which creates ghost users).
7
- *
8
- * NOTE: This type is intentionally defined inline rather than derived from
9
- * ToolRegistryCompositionDeps, keeping the capability port independent from
10
- * the all-capability composition contract.
11
- *
12
- * Its shape remains structurally equivalent to the matching
13
- * ToolRegistryCompositionDeps fields.
14
- *
15
- * IND-549: extracted from capabilities/integrations.tools.port.ts into the
16
- * integrations capability's dedicated ports layer.
17
- */
18
- export {};