@lssm/lib.contracts 0.0.0-canary-20251217052941 → 0.0.0-canary-20251217060433
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/app-config/app-config.feature.d.ts +11 -0
- package/dist/app-config/branding.d.ts +55 -0
- package/dist/app-config/contracts.d.ts +244 -0
- package/dist/app-config/docs/app-config.docblock.d.ts +6 -0
- package/dist/app-config/events.d.ts +122 -0
- package/dist/app-config/index.d.ts +9 -0
- package/dist/app-config/lifecycle-contracts.d.ts +382 -0
- package/dist/app-config/lifecycle.d.ts +27 -0
- package/dist/app-config/runtime.d.ts +114 -0
- package/dist/app-config/spec.d.ts +175 -0
- package/dist/app-config/validation.d.ts +47 -0
- package/dist/capabilities/docs/capabilities.docblock.d.ts +6 -0
- package/dist/capabilities/openbanking.d.ts +9 -0
- package/dist/capabilities.d.ts +48 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/react/drivers/rn-reusables.d.ts +22 -0
- package/dist/client/react/drivers/shadcn.d.ts +12 -0
- package/dist/client/react/feature-render.d.ts +19 -0
- package/dist/client/react/form-render.d.ts +91 -0
- package/dist/client/react/index.d.ts +5 -0
- package/dist/contract-registry/index.d.ts +3 -0
- package/dist/contract-registry/schemas.d.ts +124 -0
- package/dist/contract-registry/types.d.ts +46 -0
- package/dist/contracts-adapter-hydration.d.ts +15 -0
- package/dist/contracts-adapter-input.d.ts +10 -0
- package/dist/data-views/docs/data-views.docblock.d.ts +6 -0
- package/dist/data-views/query-generator.d.ts +39 -0
- package/dist/data-views/runtime.d.ts +26 -0
- package/dist/data-views.d.ts +131 -0
- package/dist/docs/PUBLISHING.docblock.d.ts +6 -0
- package/dist/docs/accessibility_wcag_compliance_specs.docblock.d.ts +6 -0
- package/dist/docs/index.d.ts +6 -0
- package/dist/docs/meta.docs.d.ts +6 -0
- package/dist/docs/presentations.d.ts +33 -0
- package/dist/docs/registry.d.ts +24 -0
- package/dist/docs/tech/PHASE_1_QUICKSTART.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_2_AI_NATIVE_OPERATIONS.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_3_AUTO_EVOLUTION.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_4_PERSONALIZATION_ENGINE.docblock.d.ts +6 -0
- package/dist/docs/tech/PHASE_5_ZERO_TOUCH_OPERATIONS.docblock.d.ts +6 -0
- package/dist/docs/tech/auth/better-auth-nextjs.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/README.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/create-subscription.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/graphql-typed-outputs.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/migrations.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/openapi-export.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/ops-to-presentation-linking.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/overlays.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/tests.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/themes.docblock.d.ts +6 -0
- package/dist/docs/tech/contracts/vertical-pocket-family-office.docblock.d.ts +6 -0
- package/dist/docs/tech/lifecycle-stage-system.docblock.d.ts +6 -0
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +7 -0
- package/dist/docs/tech/mcp-endpoints.docblock.d.ts +6 -0
- package/dist/docs/tech/presentation-runtime.docblock.d.ts +6 -0
- package/dist/docs/tech/schema/README.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-events.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/learning-journeys.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/platform-admin-panel.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-access-teams.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/project-routing.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/sandbox-unlogged.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/team-invitations.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspace-ops.docblock.d.ts +6 -0
- package/dist/docs/tech/studio/workspaces.docblock.d.ts +6 -0
- package/dist/docs/tech/telemetry-ingest.docblock.d.ts +6 -0
- package/dist/docs/tech/templates/runtime.docblock.d.ts +6 -0
- package/dist/docs/tech/vscode-extension.docblock.d.ts +6 -0
- package/dist/docs/tech/workflows/overview.docblock.d.ts +6 -0
- package/dist/docs/tech-contracts.docs.d.ts +6 -0
- package/dist/docs/types.d.ts +41 -0
- package/dist/events.d.ts +47 -0
- package/dist/experiments/docs/experiments.docblock.d.ts +6 -0
- package/dist/experiments/evaluator.d.ts +37 -0
- package/dist/experiments/spec-resolver.d.ts +16 -0
- package/dist/experiments/spec.d.ts +89 -0
- package/dist/features.d.ts +96 -0
- package/dist/forms/docs/forms.docblock.d.ts +6 -0
- package/dist/forms.d.ts +258 -0
- package/dist/index.d.ts +127 -0
- package/dist/install.d.ts +76 -0
- package/dist/integrations/binding.d.ts +17 -0
- package/dist/integrations/connection.d.ts +51 -0
- package/dist/integrations/contracts.d.ts +435 -0
- package/dist/integrations/docs/integrations.docblock.d.ts +6 -0
- package/dist/integrations/health.d.ts +21 -0
- package/dist/integrations/index.d.ts +34 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +287 -0
- package/dist/integrations/openbanking/contracts/balances.d.ts +163 -0
- package/dist/integrations/openbanking/contracts/index.d.ts +10 -0
- package/dist/integrations/openbanking/contracts/transactions.d.ts +211 -0
- package/dist/integrations/openbanking/guards.d.ts +12 -0
- package/dist/integrations/openbanking/models.d.ts +228 -0
- package/dist/integrations/openbanking/openbanking.feature.d.ts +11 -0
- package/dist/integrations/openbanking/telemetry.d.ts +15 -0
- package/dist/integrations/providers/calendar.d.ts +78 -0
- package/dist/integrations/providers/elevenlabs.d.ts +7 -0
- package/dist/integrations/providers/email.d.ts +86 -0
- package/dist/integrations/providers/embedding.d.ts +24 -0
- package/dist/integrations/providers/gcs-storage.d.ts +7 -0
- package/dist/integrations/providers/gmail.d.ts +7 -0
- package/dist/integrations/providers/google-calendar.d.ts +7 -0
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +20 -0
- package/dist/integrations/providers/impls/gcs-storage.d.ts +24 -0
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +26 -0
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +18 -0
- package/dist/integrations/providers/impls/google-calendar.d.ts +23 -0
- package/dist/integrations/providers/impls/index.d.ts +15 -0
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +23 -0
- package/dist/integrations/providers/impls/mistral-llm.d.ts +31 -0
- package/dist/integrations/providers/impls/postmark-email.d.ts +19 -0
- package/dist/integrations/providers/impls/powens-client.d.ts +124 -0
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +27 -0
- package/dist/integrations/providers/impls/provider-factory.d.ts +26 -0
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +24 -0
- package/dist/integrations/providers/impls/stripe-payments.d.ts +28 -0
- package/dist/integrations/providers/impls/twilio-sms.d.ts +20 -0
- package/dist/integrations/providers/index.d.ts +22 -0
- package/dist/integrations/providers/llm.d.ts +82 -0
- package/dist/integrations/providers/mistral.d.ts +7 -0
- package/dist/integrations/providers/openbanking.d.ts +128 -0
- package/dist/integrations/providers/payments.d.ts +109 -0
- package/dist/integrations/providers/postmark.d.ts +7 -0
- package/dist/integrations/providers/powens.d.ts +7 -0
- package/dist/integrations/providers/qdrant.d.ts +7 -0
- package/dist/integrations/providers/registry.d.ts +11 -0
- package/dist/integrations/providers/sms.d.ts +34 -0
- package/dist/integrations/providers/storage.d.ts +60 -0
- package/dist/integrations/providers/stripe.d.ts +7 -0
- package/dist/integrations/providers/twilio-sms.d.ts +7 -0
- package/dist/integrations/providers/vector-store.d.ts +43 -0
- package/dist/integrations/providers/voice.d.ts +34 -0
- package/dist/integrations/runtime.d.ts +99 -0
- package/dist/integrations/secrets/aws-secret-manager.d.ts +31 -0
- package/dist/integrations/secrets/env-secret-provider.d.ts +31 -0
- package/dist/integrations/secrets/gcp-secret-manager.d.ts +32 -0
- package/dist/integrations/secrets/gcp-secret-manager.js +1 -1
- package/dist/integrations/secrets/index.d.ts +7 -0
- package/dist/integrations/secrets/manager.d.ts +47 -0
- package/dist/integrations/secrets/provider.d.ts +52 -0
- package/dist/integrations/secrets/scaleway-secret-manager.d.ts +38 -0
- package/dist/integrations/spec.d.ts +79 -0
- package/dist/jobs/define-job.d.ts +18 -0
- package/dist/jobs/gcp-cloud-tasks.d.ts +41 -0
- package/dist/jobs/gcp-pubsub.d.ts +25 -0
- package/dist/jobs/handlers/gmail-sync-handler.d.ts +9 -0
- package/dist/jobs/handlers/index.d.ts +9 -0
- package/dist/jobs/handlers/ping-handler.d.ts +10 -0
- package/dist/jobs/handlers/storage-document-handler.d.ts +12 -0
- package/dist/jobs/index.d.ts +3 -0
- package/dist/jobs/memory-queue.d.ts +18 -0
- package/dist/jobs/queue.d.ts +131 -0
- package/dist/jobs/scaleway-sqs-queue.d.ts +30 -0
- package/dist/jsonschema.d.ts +27 -0
- package/dist/knowledge/binding.d.ts +25 -0
- package/dist/knowledge/contracts.d.ts +316 -0
- package/dist/knowledge/docs/knowledge.docblock.d.ts +6 -0
- package/dist/knowledge/index.d.ts +10 -0
- package/dist/knowledge/ingestion/document-processor.d.ts +24 -0
- package/dist/knowledge/ingestion/embedding-service.d.ts +12 -0
- package/dist/knowledge/ingestion/gmail-adapter.d.ts +18 -0
- package/dist/knowledge/ingestion/index.d.ts +6 -0
- package/dist/knowledge/ingestion/storage-adapter.d.ts +15 -0
- package/dist/knowledge/ingestion/vector-indexer.d.ts +18 -0
- package/dist/knowledge/query/index.d.ts +2 -0
- package/dist/knowledge/query/service.d.ts +29 -0
- package/dist/knowledge/runtime.d.ts +32 -0
- package/dist/knowledge/source.d.ts +32 -0
- package/dist/knowledge/spaces/email-threads.d.ts +7 -0
- package/dist/knowledge/spaces/financial-docs.d.ts +7 -0
- package/dist/knowledge/spaces/financial-overview.d.ts +7 -0
- package/dist/knowledge/spaces/index.d.ts +7 -0
- package/dist/knowledge/spaces/product-canon.d.ts +7 -0
- package/dist/knowledge/spaces/support-faq.d.ts +7 -0
- package/dist/knowledge/spaces/uploaded-docs.d.ts +7 -0
- package/dist/knowledge/spec.d.ts +52 -0
- package/dist/llm/exporters.d.ts +67 -0
- package/dist/llm/index.d.ts +4 -0
- package/dist/llm/prompts.d.ts +51 -0
- package/dist/llm/types.d.ts +213 -0
- package/dist/markdown.d.ts +21 -0
- package/dist/migrations.d.ts +52 -0
- package/dist/onboarding-base.d.ts +137 -0
- package/dist/openapi.d.ts +31 -0
- package/dist/openbanking/docs/openbanking.docblock.d.ts +6 -0
- package/dist/ownership.d.ts +75 -0
- package/dist/policy/docs/policy.docblock.d.ts +6 -0
- package/dist/policy/engine.d.ts +39 -0
- package/dist/policy/opa-adapter.d.ts +45 -0
- package/dist/policy/spec.d.ts +114 -0
- package/dist/presentations/docs/presentations-conventions.docblock.d.ts +6 -0
- package/dist/presentations.backcompat.d.ts +7 -0
- package/dist/presentations.d.ts +98 -0
- package/dist/presentations.v2.d.ts +114 -0
- package/dist/prompt.d.ts +60 -0
- package/dist/promptRegistry.d.ts +15 -0
- package/dist/regenerator/adapters.d.ts +19 -0
- package/dist/regenerator/docs/regenerator.docblock.d.ts +6 -0
- package/dist/regenerator/executor.d.ts +70 -0
- package/dist/regenerator/index.d.ts +7 -0
- package/dist/regenerator/service.d.ts +33 -0
- package/dist/regenerator/sinks.d.ts +26 -0
- package/dist/regenerator/types.d.ts +107 -0
- package/dist/regenerator/utils.d.ts +9 -0
- package/dist/registry.d.ts +73 -0
- package/dist/resources.d.ts +64 -0
- package/dist/schema-to-markdown.d.ts +54 -0
- package/dist/server/graphql-pothos.d.ts +27 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/mcp/createMcpServer.d.ts +15 -0
- package/dist/server/mcp/mcpTypes.d.ts +29 -0
- package/dist/server/mcp/registerPresentations.d.ts +7 -0
- package/dist/server/mcp/registerPrompts.d.ts +8 -0
- package/dist/server/mcp/registerResources.d.ts +8 -0
- package/dist/server/mcp/registerTools.d.ts +8 -0
- package/dist/server/provider-mcp.d.ts +2 -0
- package/dist/server/rest-elysia.d.ts +40 -0
- package/dist/server/rest-express.d.ts +16 -0
- package/dist/server/rest-generic.d.ts +32 -0
- package/dist/server/rest-next-app.d.ts +35 -0
- package/dist/server/rest-next-mcp.d.ts +11 -0
- package/dist/server/rest-next-pages.d.ts +9 -0
- package/dist/spec.d.ts +195 -0
- package/dist/telemetry/anomaly.d.ts +27 -0
- package/dist/telemetry/docs/telemetry.docblock.d.ts +6 -0
- package/dist/telemetry/index.d.ts +4 -0
- package/dist/telemetry/spec.d.ts +98 -0
- package/dist/telemetry/tracker.d.ts +51 -0
- package/dist/tests/index.d.ts +3 -0
- package/dist/tests/runner.d.ts +43 -0
- package/dist/tests/spec.d.ts +89 -0
- package/dist/themes.d.ts +55 -0
- package/dist/translations/catalog.d.ts +28 -0
- package/dist/translations/tenant.d.ts +15 -0
- package/dist/types/all.d.ts +60 -0
- package/dist/types.d.ts +88 -0
- package/dist/workflow/adapters/db-adapter.d.ts +34 -0
- package/dist/workflow/adapters/file-adapter.d.ts +14 -0
- package/dist/workflow/adapters/index.d.ts +4 -0
- package/dist/workflow/adapters/memory-store.d.ts +18 -0
- package/dist/workflow/expression.d.ts +9 -0
- package/dist/workflow/index.d.ts +10 -0
- package/dist/workflow/runner.d.ts +74 -0
- package/dist/workflow/sla-monitor.d.ts +20 -0
- package/dist/workflow/spec.d.ts +99 -0
- package/dist/workflow/state.d.ts +35 -0
- package/dist/workflow/validation.d.ts +28 -0
- package/package.json +250 -250
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult } from "../email.js";
|
|
2
|
+
import { ServerClient } from "postmark";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/impls/postmark-email.d.ts
|
|
5
|
+
interface PostmarkEmailProviderOptions {
|
|
6
|
+
serverToken: string;
|
|
7
|
+
defaultFromEmail?: string;
|
|
8
|
+
messageStream?: string;
|
|
9
|
+
client?: ServerClient;
|
|
10
|
+
}
|
|
11
|
+
declare class PostmarkEmailProvider implements EmailOutboundProvider {
|
|
12
|
+
private readonly client;
|
|
13
|
+
private readonly defaultFromEmail?;
|
|
14
|
+
private readonly messageStream?;
|
|
15
|
+
constructor(options: PostmarkEmailProviderOptions);
|
|
16
|
+
sendEmail(message: EmailOutboundMessage): Promise<EmailOutboundResult>;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { PostmarkEmailProvider, PostmarkEmailProviderOptions };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
//#region src/integrations/providers/impls/powens-client.d.ts
|
|
2
|
+
type PowensEnvironment = 'sandbox' | 'production';
|
|
3
|
+
interface PowensClientOptions {
|
|
4
|
+
clientId: string;
|
|
5
|
+
clientSecret: string;
|
|
6
|
+
apiKey?: string;
|
|
7
|
+
environment: PowensEnvironment;
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
fetchImpl?: typeof fetch;
|
|
10
|
+
defaultTimeoutMs?: number;
|
|
11
|
+
logger?: {
|
|
12
|
+
debug?: (...args: unknown[]) => void;
|
|
13
|
+
warn?: (...args: unknown[]) => void;
|
|
14
|
+
error?: (...args: unknown[]) => void;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
interface PowensAccount {
|
|
18
|
+
uuid: string;
|
|
19
|
+
reference: string;
|
|
20
|
+
userUuid: string;
|
|
21
|
+
institution: {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
logoUrl?: string;
|
|
25
|
+
};
|
|
26
|
+
name: string;
|
|
27
|
+
iban?: string;
|
|
28
|
+
bic?: string;
|
|
29
|
+
currency?: string;
|
|
30
|
+
balance?: number;
|
|
31
|
+
availableBalance?: number;
|
|
32
|
+
type?: string;
|
|
33
|
+
status?: string;
|
|
34
|
+
metadata?: Record<string, unknown>;
|
|
35
|
+
}
|
|
36
|
+
interface PowensAccountListResponse {
|
|
37
|
+
accounts: PowensAccount[];
|
|
38
|
+
pagination?: {
|
|
39
|
+
nextCursor?: string;
|
|
40
|
+
hasMore?: boolean;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
interface PowensTransaction {
|
|
44
|
+
uuid: string;
|
|
45
|
+
accountUuid: string;
|
|
46
|
+
amount: number;
|
|
47
|
+
currency: string;
|
|
48
|
+
direction: 'credit' | 'debit';
|
|
49
|
+
description?: string;
|
|
50
|
+
category?: string;
|
|
51
|
+
rawLabel?: string;
|
|
52
|
+
bookingDate?: string;
|
|
53
|
+
valueDate?: string;
|
|
54
|
+
status?: string;
|
|
55
|
+
merchantName?: string;
|
|
56
|
+
merchantCategoryCode?: string;
|
|
57
|
+
counterpartyName?: string;
|
|
58
|
+
counterpartyAccount?: string;
|
|
59
|
+
metadata?: Record<string, unknown>;
|
|
60
|
+
}
|
|
61
|
+
interface PowensTransactionListResponse {
|
|
62
|
+
transactions: PowensTransaction[];
|
|
63
|
+
pagination?: {
|
|
64
|
+
nextCursor?: string;
|
|
65
|
+
hasMore?: boolean;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
interface PowensBalance {
|
|
69
|
+
accountUuid: string;
|
|
70
|
+
type: string;
|
|
71
|
+
amount: number;
|
|
72
|
+
currency: string;
|
|
73
|
+
updatedAt: string;
|
|
74
|
+
metadata?: Record<string, unknown>;
|
|
75
|
+
}
|
|
76
|
+
interface PowensConnectionStatusResponse {
|
|
77
|
+
connectionUuid: string;
|
|
78
|
+
status: 'healthy' | 'error' | 'revoked' | 'pending';
|
|
79
|
+
lastAttemptAt?: string;
|
|
80
|
+
errorCode?: string;
|
|
81
|
+
errorMessage?: string;
|
|
82
|
+
metadata?: Record<string, unknown>;
|
|
83
|
+
}
|
|
84
|
+
declare class PowensClientError extends Error {
|
|
85
|
+
readonly status: number;
|
|
86
|
+
readonly code?: string;
|
|
87
|
+
readonly requestId?: string;
|
|
88
|
+
readonly response?: unknown;
|
|
89
|
+
constructor(message: string, status: number, code?: string, requestId?: string, response?: unknown);
|
|
90
|
+
}
|
|
91
|
+
declare class PowensClient {
|
|
92
|
+
private readonly clientId;
|
|
93
|
+
private readonly clientSecret;
|
|
94
|
+
private readonly apiKey?;
|
|
95
|
+
private readonly fetchImpl;
|
|
96
|
+
private readonly logger?;
|
|
97
|
+
private readonly defaultTimeoutMs;
|
|
98
|
+
private token?;
|
|
99
|
+
private readonly baseUrl;
|
|
100
|
+
constructor(options: PowensClientOptions);
|
|
101
|
+
listAccounts(params: {
|
|
102
|
+
userUuid: string;
|
|
103
|
+
cursor?: string;
|
|
104
|
+
limit?: number;
|
|
105
|
+
includeBalances?: boolean;
|
|
106
|
+
institutionUuid?: string;
|
|
107
|
+
}): Promise<PowensAccountListResponse>;
|
|
108
|
+
getAccount(accountUuid: string): Promise<PowensAccount>;
|
|
109
|
+
listTransactions(params: {
|
|
110
|
+
accountUuid: string;
|
|
111
|
+
cursor?: string;
|
|
112
|
+
limit?: number;
|
|
113
|
+
from?: string;
|
|
114
|
+
to?: string;
|
|
115
|
+
includePending?: boolean;
|
|
116
|
+
}): Promise<PowensTransactionListResponse>;
|
|
117
|
+
getBalances(accountUuid: string): Promise<PowensBalance[]>;
|
|
118
|
+
getConnectionStatus(connectionUuid: string): Promise<PowensConnectionStatusResponse>;
|
|
119
|
+
private request;
|
|
120
|
+
private ensureAccessToken;
|
|
121
|
+
private fetchAccessToken;
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
export { PowensAccount, PowensAccountListResponse, PowensBalance, PowensClient, PowensClientError, PowensClientOptions, PowensConnectionStatusResponse, PowensEnvironment, PowensTransaction, PowensTransactionListResponse };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingConnectionStatus, OpenBankingGetAccountDetailsParams, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider } from "../openbanking.js";
|
|
2
|
+
import { PowensClientOptions } from "./powens-client.js";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/impls/powens-openbanking.d.ts
|
|
5
|
+
interface PowensOpenBankingProviderOptions extends PowensClientOptions {}
|
|
6
|
+
declare class PowensOpenBankingProvider implements OpenBankingProvider {
|
|
7
|
+
private readonly client;
|
|
8
|
+
private readonly logger?;
|
|
9
|
+
constructor(options: PowensOpenBankingProviderOptions);
|
|
10
|
+
listAccounts(params: OpenBankingListAccountsParams): Promise<OpenBankingListAccountsResult>;
|
|
11
|
+
getAccountDetails(params: OpenBankingGetAccountDetailsParams): Promise<OpenBankingAccountDetails>;
|
|
12
|
+
listTransactions(params: OpenBankingListTransactionsParams): Promise<OpenBankingListTransactionsResult>;
|
|
13
|
+
getBalances(params: OpenBankingGetBalancesParams): Promise<OpenBankingAccountBalance[]>;
|
|
14
|
+
getConnectionStatus(params: OpenBankingGetConnectionStatusParams): Promise<OpenBankingConnectionStatus>;
|
|
15
|
+
private mapAccount;
|
|
16
|
+
private mapAccountDetails;
|
|
17
|
+
private mapTransaction;
|
|
18
|
+
private mapBalance;
|
|
19
|
+
private toContext;
|
|
20
|
+
private mapOwnership;
|
|
21
|
+
private mapAccountStatus;
|
|
22
|
+
private mapTransactionStatus;
|
|
23
|
+
private mapConnectionStatus;
|
|
24
|
+
private handleError;
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { PowensOpenBankingProvider, PowensOpenBankingProviderOptions };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PaymentsProvider } from "../payments.js";
|
|
2
|
+
import { LLMProvider } from "../llm.js";
|
|
3
|
+
import { EmbeddingProvider } from "../embedding.js";
|
|
4
|
+
import { VectorStoreProvider } from "../vector-store.js";
|
|
5
|
+
import { EmailOutboundProvider } from "../email.js";
|
|
6
|
+
import { SmsProvider } from "../sms.js";
|
|
7
|
+
import { VoiceProvider } from "../voice.js";
|
|
8
|
+
import { ObjectStorageProvider } from "../storage.js";
|
|
9
|
+
import { OpenBankingProvider } from "../openbanking.js";
|
|
10
|
+
import { IntegrationContext } from "../../runtime.js";
|
|
11
|
+
|
|
12
|
+
//#region src/integrations/providers/impls/provider-factory.d.ts
|
|
13
|
+
declare class IntegrationProviderFactory {
|
|
14
|
+
createPaymentsProvider(context: IntegrationContext): Promise<PaymentsProvider>;
|
|
15
|
+
createEmailOutboundProvider(context: IntegrationContext): Promise<EmailOutboundProvider>;
|
|
16
|
+
createSmsProvider(context: IntegrationContext): Promise<SmsProvider>;
|
|
17
|
+
createVectorStoreProvider(context: IntegrationContext): Promise<VectorStoreProvider>;
|
|
18
|
+
createObjectStorageProvider(context: IntegrationContext): Promise<ObjectStorageProvider>;
|
|
19
|
+
createVoiceProvider(context: IntegrationContext): Promise<VoiceProvider>;
|
|
20
|
+
createLlmProvider(context: IntegrationContext): Promise<LLMProvider>;
|
|
21
|
+
createEmbeddingProvider(context: IntegrationContext): Promise<EmbeddingProvider>;
|
|
22
|
+
createOpenBankingProvider(context: IntegrationContext): Promise<OpenBankingProvider>;
|
|
23
|
+
private loadSecrets;
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { IntegrationProviderFactory };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VectorDeleteRequest, VectorSearchQuery, VectorSearchResult, VectorStoreProvider, VectorUpsertRequest } from "../vector-store.js";
|
|
2
|
+
import { QdrantClient, QdrantClientParams } from "@qdrant/js-client-rest";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/impls/qdrant-vector.d.ts
|
|
5
|
+
interface QdrantVectorProviderOptions {
|
|
6
|
+
url: string;
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
client?: QdrantClient;
|
|
9
|
+
createCollectionIfMissing?: boolean;
|
|
10
|
+
distance?: 'Cosine' | 'Euclid' | 'Dot' | 'Manhattan';
|
|
11
|
+
clientParams?: Omit<QdrantClientParams, 'url' | 'apiKey'>;
|
|
12
|
+
}
|
|
13
|
+
declare class QdrantVectorProvider implements VectorStoreProvider {
|
|
14
|
+
private readonly client;
|
|
15
|
+
private readonly createCollectionIfMissing;
|
|
16
|
+
private readonly distance;
|
|
17
|
+
constructor(options: QdrantVectorProviderOptions);
|
|
18
|
+
upsert(request: VectorUpsertRequest): Promise<void>;
|
|
19
|
+
search(query: VectorSearchQuery): Promise<VectorSearchResult[]>;
|
|
20
|
+
delete(request: VectorDeleteRequest): Promise<void>;
|
|
21
|
+
private ensureCollection;
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { QdrantVectorProvider, QdrantVectorProviderOptions };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, ListInvoicesQuery, ListTransactionsQuery, PaymentCustomer, PaymentIntent, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, RefundPaymentInput } from "../payments.js";
|
|
2
|
+
import Stripe from "stripe";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/impls/stripe-payments.d.ts
|
|
5
|
+
interface StripePaymentsProviderOptions {
|
|
6
|
+
apiKey: string;
|
|
7
|
+
stripe?: Stripe;
|
|
8
|
+
}
|
|
9
|
+
declare class StripePaymentsProvider implements PaymentsProvider {
|
|
10
|
+
private readonly stripe;
|
|
11
|
+
constructor(options: StripePaymentsProviderOptions);
|
|
12
|
+
createCustomer(input: CreateCustomerInput): Promise<PaymentCustomer>;
|
|
13
|
+
getCustomer(customerId: string): Promise<PaymentCustomer | null>;
|
|
14
|
+
createPaymentIntent(input: CreatePaymentIntentInput): Promise<PaymentIntent>;
|
|
15
|
+
capturePayment(paymentIntentId: string, input?: CapturePaymentInput): Promise<PaymentIntent>;
|
|
16
|
+
cancelPaymentIntent(paymentIntentId: string): Promise<PaymentIntent>;
|
|
17
|
+
refundPayment(input: RefundPaymentInput): Promise<PaymentRefund>;
|
|
18
|
+
listInvoices(query?: ListInvoicesQuery): Promise<PaymentInvoice[]>;
|
|
19
|
+
listTransactions(query?: ListTransactionsQuery): Promise<PaymentTransaction[]>;
|
|
20
|
+
private toCustomer;
|
|
21
|
+
private toPaymentIntent;
|
|
22
|
+
private toInvoice;
|
|
23
|
+
private toMoney;
|
|
24
|
+
private toMetadata;
|
|
25
|
+
private mergeMetadata;
|
|
26
|
+
}
|
|
27
|
+
//#endregion
|
|
28
|
+
export { StripePaymentsProvider, StripePaymentsProviderOptions };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SendSmsInput, SmsDeliveryStatus, SmsMessage, SmsProvider } from "../sms.js";
|
|
2
|
+
import Twilio from "twilio";
|
|
3
|
+
|
|
4
|
+
//#region src/integrations/providers/impls/twilio-sms.d.ts
|
|
5
|
+
type TwilioClient = ReturnType<typeof Twilio>;
|
|
6
|
+
interface TwilioSmsProviderOptions {
|
|
7
|
+
accountSid: string;
|
|
8
|
+
authToken: string;
|
|
9
|
+
fromNumber?: string;
|
|
10
|
+
client?: TwilioClient;
|
|
11
|
+
}
|
|
12
|
+
declare class TwilioSmsProvider implements SmsProvider {
|
|
13
|
+
private readonly client;
|
|
14
|
+
private readonly fromNumber?;
|
|
15
|
+
constructor(options: TwilioSmsProviderOptions);
|
|
16
|
+
sendSms(input: SendSmsInput): Promise<SmsMessage>;
|
|
17
|
+
getDeliveryStatus(messageId: string): Promise<SmsDeliveryStatus>;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { TwilioSmsProvider, TwilioSmsProviderOptions };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, ListInvoicesQuery, ListTransactionsQuery, Money, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, RefundPaymentInput } from "./payments.js";
|
|
2
|
+
import { LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, TokenCountResult } from "./llm.js";
|
|
3
|
+
import { EmbeddingDocument, EmbeddingProvider, EmbeddingResult, EmbeddingVector } from "./embedding.js";
|
|
4
|
+
import { VectorDeleteRequest, VectorDocument, VectorSearchQuery, VectorSearchResult, VectorStoreProvider, VectorUpsertRequest } from "./vector-store.js";
|
|
5
|
+
import { EmailAddress, EmailAttachment, EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult, EmailThread, EmailThreadListQuery } from "./email.js";
|
|
6
|
+
import { CalendarAttendee, CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider, CalendarReminder } from "./calendar.js";
|
|
7
|
+
import { SendSmsInput, SmsDeliveryStatus, SmsMessage, SmsProvider } from "./sms.js";
|
|
8
|
+
import { Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult } from "./voice.js";
|
|
9
|
+
import { DeleteObjectInput, GetObjectResult, ListObjectsQuery, ListObjectsResult, ObjectStorageProvider, PutObjectInput, SignedUrlOptions, StorageObjectBody, StorageObjectMetadata } from "./storage.js";
|
|
10
|
+
import { registerStripeIntegration, stripeIntegrationSpec } from "./stripe.js";
|
|
11
|
+
import { postmarkIntegrationSpec, registerPostmarkIntegration } from "./postmark.js";
|
|
12
|
+
import { qdrantIntegrationSpec, registerQdrantIntegration } from "./qdrant.js";
|
|
13
|
+
import { mistralIntegrationSpec, registerMistralIntegration } from "./mistral.js";
|
|
14
|
+
import { elevenLabsIntegrationSpec, registerElevenLabsIntegration } from "./elevenlabs.js";
|
|
15
|
+
import { gmailIntegrationSpec, registerGmailIntegration } from "./gmail.js";
|
|
16
|
+
import { googleCalendarIntegrationSpec, registerGoogleCalendarIntegration } from "./google-calendar.js";
|
|
17
|
+
import { registerTwilioSmsIntegration, twilioSmsIntegrationSpec } from "./twilio-sms.js";
|
|
18
|
+
import { gcsStorageIntegrationSpec, registerGcsStorageIntegration } from "./gcs-storage.js";
|
|
19
|
+
import { powensIntegrationSpec, registerPowensIntegration } from "./powens.js";
|
|
20
|
+
import { OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingGetAccountDetailsParams, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingTransaction } from "./openbanking.js";
|
|
21
|
+
import { createDefaultIntegrationSpecRegistry } from "./registry.js";
|
|
22
|
+
export { CalendarAttendee, CalendarEvent, CalendarEventInput, CalendarEventUpdateInput, CalendarListEventsQuery, CalendarListEventsResult, CalendarProvider, CalendarReminder, CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, DeleteObjectInput, EmailAddress, EmailAttachment, EmailInboundProvider, EmailMessage, EmailMessagesSinceQuery, EmailOutboundMessage, EmailOutboundProvider, EmailOutboundResult, EmailThread, EmailThreadListQuery, EmbeddingDocument, EmbeddingProvider, EmbeddingResult, EmbeddingVector, GetObjectResult, LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, ListInvoicesQuery, ListObjectsQuery, ListObjectsResult, ListTransactionsQuery, Money, ObjectStorageProvider, OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingGetAccountDetailsParams, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingTransaction, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, PutObjectInput, RefundPaymentInput, SendSmsInput, SignedUrlOptions, SmsDeliveryStatus, SmsMessage, SmsProvider, StorageObjectBody, StorageObjectMetadata, TokenCountResult, VectorDeleteRequest, VectorDocument, VectorSearchQuery, VectorSearchResult, VectorStoreProvider, VectorUpsertRequest, Voice, VoiceProvider, VoiceSynthesisInput, VoiceSynthesisResult, createDefaultIntegrationSpecRegistry, elevenLabsIntegrationSpec, gcsStorageIntegrationSpec, gmailIntegrationSpec, googleCalendarIntegrationSpec, mistralIntegrationSpec, postmarkIntegrationSpec, powensIntegrationSpec, qdrantIntegrationSpec, registerElevenLabsIntegration, registerGcsStorageIntegration, registerGmailIntegration, registerGoogleCalendarIntegration, registerMistralIntegration, registerPostmarkIntegration, registerPowensIntegration, registerQdrantIntegration, registerStripeIntegration, registerTwilioSmsIntegration, stripeIntegrationSpec, twilioSmsIntegrationSpec };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//#region src/integrations/providers/llm.d.ts
|
|
2
|
+
type LLMRole = 'system' | 'user' | 'assistant' | 'tool';
|
|
3
|
+
interface LLMTextPart {
|
|
4
|
+
type: 'text';
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
interface LLMToolCallPart {
|
|
8
|
+
type: 'tool-call';
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
arguments: string;
|
|
12
|
+
}
|
|
13
|
+
interface LLMToolResultPart {
|
|
14
|
+
type: 'tool-result';
|
|
15
|
+
toolCallId: string;
|
|
16
|
+
output: string;
|
|
17
|
+
}
|
|
18
|
+
type LLMContentPart = LLMTextPart | LLMToolCallPart | LLMToolResultPart;
|
|
19
|
+
interface LLMMessage {
|
|
20
|
+
role: LLMRole;
|
|
21
|
+
content: LLMContentPart[];
|
|
22
|
+
name?: string;
|
|
23
|
+
toolCallId?: string;
|
|
24
|
+
metadata?: Record<string, string>;
|
|
25
|
+
}
|
|
26
|
+
interface LLMToolDefinition {
|
|
27
|
+
name: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
inputSchema: unknown;
|
|
30
|
+
}
|
|
31
|
+
interface LLMTokenUsage {
|
|
32
|
+
promptTokens: number;
|
|
33
|
+
completionTokens: number;
|
|
34
|
+
totalTokens: number;
|
|
35
|
+
}
|
|
36
|
+
interface LLMChatOptions {
|
|
37
|
+
model?: string;
|
|
38
|
+
temperature?: number;
|
|
39
|
+
topP?: number;
|
|
40
|
+
maxOutputTokens?: number;
|
|
41
|
+
stopSequences?: string[];
|
|
42
|
+
responseFormat?: 'text' | 'json';
|
|
43
|
+
tools?: LLMToolDefinition[];
|
|
44
|
+
userId?: string;
|
|
45
|
+
metadata?: Record<string, string>;
|
|
46
|
+
timeoutMs?: number;
|
|
47
|
+
signal?: AbortSignal;
|
|
48
|
+
}
|
|
49
|
+
interface LLMResponse {
|
|
50
|
+
message: LLMMessage;
|
|
51
|
+
usage?: LLMTokenUsage;
|
|
52
|
+
finishReason?: 'stop' | 'length' | 'tool_call' | 'content_filter';
|
|
53
|
+
raw?: unknown;
|
|
54
|
+
}
|
|
55
|
+
type LLMStreamChunk = {
|
|
56
|
+
type: 'message_delta';
|
|
57
|
+
delta: LLMContentPart;
|
|
58
|
+
index: number;
|
|
59
|
+
} | {
|
|
60
|
+
type: 'tool_call';
|
|
61
|
+
call: LLMToolCallPart;
|
|
62
|
+
index: number;
|
|
63
|
+
} | {
|
|
64
|
+
type: 'usage';
|
|
65
|
+
usage: LLMTokenUsage;
|
|
66
|
+
} | {
|
|
67
|
+
type: 'error';
|
|
68
|
+
error: Error;
|
|
69
|
+
} | {
|
|
70
|
+
type: 'end';
|
|
71
|
+
response: LLMResponse;
|
|
72
|
+
};
|
|
73
|
+
interface TokenCountResult {
|
|
74
|
+
promptTokens: number;
|
|
75
|
+
}
|
|
76
|
+
interface LLMProvider {
|
|
77
|
+
chat(messages: LLMMessage[], options?: LLMChatOptions): Promise<LLMResponse>;
|
|
78
|
+
stream(messages: LLMMessage[], options?: LLMChatOptions): AsyncIterable<LLMStreamChunk>;
|
|
79
|
+
countTokens(messages: LLMMessage[]): Promise<TokenCountResult>;
|
|
80
|
+
}
|
|
81
|
+
//#endregion
|
|
82
|
+
export { LLMChatOptions, LLMContentPart, LLMMessage, LLMProvider, LLMResponse, LLMRole, LLMStreamChunk, LLMTextPart, LLMTokenUsage, LLMToolCallPart, LLMToolDefinition, LLMToolResultPart, TokenCountResult };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/mistral.d.ts
|
|
4
|
+
declare const mistralIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerMistralIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { mistralIntegrationSpec, registerMistralIntegration };
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
//#region src/integrations/providers/openbanking.d.ts
|
|
2
|
+
type OpenBankingAccountOwnership = 'individual' | 'joint' | 'business' | 'unknown';
|
|
3
|
+
interface OpenBankingAccountSummary {
|
|
4
|
+
id: string;
|
|
5
|
+
externalId: string;
|
|
6
|
+
tenantId: string;
|
|
7
|
+
connectionId: string;
|
|
8
|
+
userId?: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
institutionId: string;
|
|
11
|
+
institutionName: string;
|
|
12
|
+
institutionLogoUrl?: string;
|
|
13
|
+
accountType: string;
|
|
14
|
+
iban?: string;
|
|
15
|
+
bic?: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
accountNumberMasked?: string;
|
|
18
|
+
ownership?: OpenBankingAccountOwnership;
|
|
19
|
+
status?: 'active' | 'inactive' | 'closed' | 'suspended';
|
|
20
|
+
lastSyncedAt?: string;
|
|
21
|
+
metadata?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
interface OpenBankingAccountDetails extends OpenBankingAccountSummary {
|
|
24
|
+
productCode?: string;
|
|
25
|
+
openedAt?: string;
|
|
26
|
+
closedAt?: string;
|
|
27
|
+
availableBalance?: number;
|
|
28
|
+
currentBalance?: number;
|
|
29
|
+
creditLimit?: number;
|
|
30
|
+
customFields?: Record<string, unknown>;
|
|
31
|
+
}
|
|
32
|
+
interface OpenBankingTransaction {
|
|
33
|
+
id: string;
|
|
34
|
+
externalId: string;
|
|
35
|
+
tenantId: string;
|
|
36
|
+
accountId: string;
|
|
37
|
+
connectionId: string;
|
|
38
|
+
amount: number;
|
|
39
|
+
currency: string;
|
|
40
|
+
direction: 'debit' | 'credit';
|
|
41
|
+
description?: string;
|
|
42
|
+
bookingDate?: string;
|
|
43
|
+
valueDate?: string;
|
|
44
|
+
postedAt?: string;
|
|
45
|
+
category?: string;
|
|
46
|
+
rawCategory?: string;
|
|
47
|
+
merchantName?: string;
|
|
48
|
+
merchantCategoryCode?: string;
|
|
49
|
+
counterpartyName?: string;
|
|
50
|
+
counterpartyAccount?: string;
|
|
51
|
+
reference?: string;
|
|
52
|
+
status?: 'pending' | 'booked' | 'cancelled';
|
|
53
|
+
metadata?: Record<string, unknown>;
|
|
54
|
+
}
|
|
55
|
+
type OpenBankingBalanceType = 'current' | 'available' | 'authorised' | 'uncleared' | 'credit' | (string & {});
|
|
56
|
+
interface OpenBankingAccountBalance {
|
|
57
|
+
accountId: string;
|
|
58
|
+
connectionId: string;
|
|
59
|
+
tenantId: string;
|
|
60
|
+
type: OpenBankingBalanceType;
|
|
61
|
+
currency: string;
|
|
62
|
+
amount: number;
|
|
63
|
+
lastUpdatedAt: string;
|
|
64
|
+
metadata?: Record<string, unknown>;
|
|
65
|
+
}
|
|
66
|
+
interface OpenBankingConnectionStatus {
|
|
67
|
+
connectionId: string;
|
|
68
|
+
tenantId: string;
|
|
69
|
+
status: 'healthy' | 'degraded' | 'error' | 'disconnected';
|
|
70
|
+
lastCheckedAt?: string;
|
|
71
|
+
errorCode?: string;
|
|
72
|
+
errorMessage?: string;
|
|
73
|
+
details?: Record<string, unknown>;
|
|
74
|
+
}
|
|
75
|
+
interface OpenBankingListAccountsParams {
|
|
76
|
+
tenantId: string;
|
|
77
|
+
connectionId: string;
|
|
78
|
+
userId?: string;
|
|
79
|
+
cursor?: string;
|
|
80
|
+
pageSize?: number;
|
|
81
|
+
includeBalances?: boolean;
|
|
82
|
+
institutionId?: string;
|
|
83
|
+
}
|
|
84
|
+
interface OpenBankingListAccountsResult {
|
|
85
|
+
accounts: OpenBankingAccountSummary[];
|
|
86
|
+
nextCursor?: string;
|
|
87
|
+
hasMore?: boolean;
|
|
88
|
+
}
|
|
89
|
+
interface OpenBankingGetAccountDetailsParams {
|
|
90
|
+
tenantId: string;
|
|
91
|
+
accountId: string;
|
|
92
|
+
connectionId: string;
|
|
93
|
+
includeBalances?: boolean;
|
|
94
|
+
}
|
|
95
|
+
interface OpenBankingListTransactionsParams {
|
|
96
|
+
tenantId: string;
|
|
97
|
+
accountId: string;
|
|
98
|
+
connectionId: string;
|
|
99
|
+
from?: string;
|
|
100
|
+
to?: string;
|
|
101
|
+
cursor?: string;
|
|
102
|
+
pageSize?: number;
|
|
103
|
+
includePending?: boolean;
|
|
104
|
+
}
|
|
105
|
+
interface OpenBankingListTransactionsResult {
|
|
106
|
+
transactions: OpenBankingTransaction[];
|
|
107
|
+
nextCursor?: string;
|
|
108
|
+
hasMore?: boolean;
|
|
109
|
+
}
|
|
110
|
+
interface OpenBankingGetBalancesParams {
|
|
111
|
+
tenantId: string;
|
|
112
|
+
accountId: string;
|
|
113
|
+
connectionId: string;
|
|
114
|
+
balanceTypes?: OpenBankingBalanceType[];
|
|
115
|
+
}
|
|
116
|
+
interface OpenBankingGetConnectionStatusParams {
|
|
117
|
+
tenantId: string;
|
|
118
|
+
connectionId: string;
|
|
119
|
+
}
|
|
120
|
+
interface OpenBankingProvider {
|
|
121
|
+
listAccounts(params: OpenBankingListAccountsParams): Promise<OpenBankingListAccountsResult>;
|
|
122
|
+
getAccountDetails(params: OpenBankingGetAccountDetailsParams): Promise<OpenBankingAccountDetails>;
|
|
123
|
+
listTransactions(params: OpenBankingListTransactionsParams): Promise<OpenBankingListTransactionsResult>;
|
|
124
|
+
getBalances(params: OpenBankingGetBalancesParams): Promise<OpenBankingAccountBalance[]>;
|
|
125
|
+
getConnectionStatus(params: OpenBankingGetConnectionStatusParams): Promise<OpenBankingConnectionStatus>;
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
export { OpenBankingAccountBalance, OpenBankingAccountDetails, OpenBankingAccountOwnership, OpenBankingAccountSummary, OpenBankingBalanceType, OpenBankingConnectionStatus, OpenBankingGetAccountDetailsParams, OpenBankingGetBalancesParams, OpenBankingGetConnectionStatusParams, OpenBankingListAccountsParams, OpenBankingListAccountsResult, OpenBankingListTransactionsParams, OpenBankingListTransactionsResult, OpenBankingProvider, OpenBankingTransaction };
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
//#region src/integrations/providers/payments.d.ts
|
|
2
|
+
interface Money {
|
|
3
|
+
/** Amount denominated in the smallest currency unit (e.g., cents). */
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
}
|
|
7
|
+
type PaymentIntentStatus = 'requires_payment_method' | 'requires_confirmation' | 'requires_action' | 'processing' | 'succeeded' | 'canceled';
|
|
8
|
+
interface PaymentCustomer {
|
|
9
|
+
id: string;
|
|
10
|
+
email?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
metadata?: Record<string, string>;
|
|
13
|
+
createdAt?: Date;
|
|
14
|
+
updatedAt?: Date;
|
|
15
|
+
}
|
|
16
|
+
interface CreateCustomerInput {
|
|
17
|
+
email?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
metadata?: Record<string, string>;
|
|
21
|
+
}
|
|
22
|
+
interface PaymentIntent {
|
|
23
|
+
id: string;
|
|
24
|
+
amount: Money;
|
|
25
|
+
status: PaymentIntentStatus;
|
|
26
|
+
customerId?: string;
|
|
27
|
+
clientSecret?: string;
|
|
28
|
+
description?: string;
|
|
29
|
+
metadata?: Record<string, string>;
|
|
30
|
+
createdAt?: Date;
|
|
31
|
+
updatedAt?: Date;
|
|
32
|
+
}
|
|
33
|
+
interface CreatePaymentIntentInput {
|
|
34
|
+
amount: Money;
|
|
35
|
+
customerId?: string;
|
|
36
|
+
confirmationMethod?: 'automatic' | 'manual';
|
|
37
|
+
captureMethod?: 'automatic' | 'manual';
|
|
38
|
+
description?: string;
|
|
39
|
+
metadata?: Record<string, string>;
|
|
40
|
+
statementDescriptor?: string;
|
|
41
|
+
returnUrl?: string;
|
|
42
|
+
}
|
|
43
|
+
interface CapturePaymentInput {
|
|
44
|
+
amount?: Money;
|
|
45
|
+
receiptEmail?: string;
|
|
46
|
+
metadata?: Record<string, string>;
|
|
47
|
+
}
|
|
48
|
+
interface PaymentRefund {
|
|
49
|
+
id: string;
|
|
50
|
+
paymentIntentId: string;
|
|
51
|
+
amount: Money;
|
|
52
|
+
status: 'pending' | 'succeeded' | 'failed' | 'canceled';
|
|
53
|
+
reason?: string;
|
|
54
|
+
metadata?: Record<string, string>;
|
|
55
|
+
createdAt?: Date;
|
|
56
|
+
}
|
|
57
|
+
interface RefundPaymentInput {
|
|
58
|
+
paymentIntentId: string;
|
|
59
|
+
amount?: Money;
|
|
60
|
+
reason?: string;
|
|
61
|
+
metadata?: Record<string, string>;
|
|
62
|
+
}
|
|
63
|
+
interface PaymentInvoice {
|
|
64
|
+
id: string;
|
|
65
|
+
number?: string;
|
|
66
|
+
status: 'draft' | 'open' | 'paid' | 'uncollectible' | 'void' | 'deleted';
|
|
67
|
+
amountDue: Money;
|
|
68
|
+
amountPaid?: Money;
|
|
69
|
+
customerId?: string;
|
|
70
|
+
dueDate?: Date;
|
|
71
|
+
hostedInvoiceUrl?: string;
|
|
72
|
+
metadata?: Record<string, string>;
|
|
73
|
+
createdAt?: Date;
|
|
74
|
+
updatedAt?: Date;
|
|
75
|
+
}
|
|
76
|
+
interface ListInvoicesQuery {
|
|
77
|
+
customerId?: string;
|
|
78
|
+
status?: PaymentInvoice['status'][];
|
|
79
|
+
limit?: number;
|
|
80
|
+
startingAfter?: string;
|
|
81
|
+
}
|
|
82
|
+
interface PaymentTransaction {
|
|
83
|
+
id: string;
|
|
84
|
+
paymentIntentId?: string;
|
|
85
|
+
amount: Money;
|
|
86
|
+
type: 'capture' | 'refund' | 'payout';
|
|
87
|
+
status: 'pending' | 'succeeded' | 'failed';
|
|
88
|
+
description?: string;
|
|
89
|
+
createdAt: Date;
|
|
90
|
+
metadata?: Record<string, string>;
|
|
91
|
+
}
|
|
92
|
+
interface ListTransactionsQuery {
|
|
93
|
+
customerId?: string;
|
|
94
|
+
paymentIntentId?: string;
|
|
95
|
+
limit?: number;
|
|
96
|
+
startingAfter?: string;
|
|
97
|
+
}
|
|
98
|
+
interface PaymentsProvider {
|
|
99
|
+
createCustomer(input: CreateCustomerInput): Promise<PaymentCustomer>;
|
|
100
|
+
getCustomer(customerId: string): Promise<PaymentCustomer | null>;
|
|
101
|
+
createPaymentIntent(input: CreatePaymentIntentInput): Promise<PaymentIntent>;
|
|
102
|
+
capturePayment(paymentIntentId: string, input?: CapturePaymentInput): Promise<PaymentIntent>;
|
|
103
|
+
cancelPaymentIntent(paymentIntentId: string): Promise<PaymentIntent>;
|
|
104
|
+
refundPayment(input: RefundPaymentInput): Promise<PaymentRefund>;
|
|
105
|
+
listInvoices(query?: ListInvoicesQuery): Promise<PaymentInvoice[]>;
|
|
106
|
+
listTransactions(query?: ListTransactionsQuery): Promise<PaymentTransaction[]>;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
109
|
+
export { CapturePaymentInput, CreateCustomerInput, CreatePaymentIntentInput, ListInvoicesQuery, ListTransactionsQuery, Money, PaymentCustomer, PaymentIntent, PaymentIntentStatus, PaymentInvoice, PaymentRefund, PaymentTransaction, PaymentsProvider, RefundPaymentInput };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/postmark.d.ts
|
|
4
|
+
declare const postmarkIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerPostmarkIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { postmarkIntegrationSpec, registerPostmarkIntegration };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/powens.d.ts
|
|
4
|
+
declare const powensIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerPowensIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { powensIntegrationSpec, registerPowensIntegration };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IntegrationSpec, IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/qdrant.d.ts
|
|
4
|
+
declare const qdrantIntegrationSpec: IntegrationSpec;
|
|
5
|
+
declare function registerQdrantIntegration(registry: IntegrationSpecRegistry): IntegrationSpecRegistry;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { qdrantIntegrationSpec, registerQdrantIntegration };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IntegrationSpecRegistry } from "../spec.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/registry.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Creates a registry containing all IntegrationSpec providers shipped by
|
|
7
|
+
* `@lssm/lib.contracts`.
|
|
8
|
+
*/
|
|
9
|
+
declare function createDefaultIntegrationSpecRegistry(): IntegrationSpecRegistry;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { createDefaultIntegrationSpecRegistry };
|