@breadstone/archipel-mcp 0.0.7 → 0.0.9
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/data/packages/index.md +13 -6
- package/data/packages/platform-analytics/api/Class.AppInsightsAnalyticsClient.md +7 -7
- package/data/packages/platform-analytics/api/Class.DatadogAnalyticsClient.md +7 -7
- package/data/packages/platform-analytics/api/Class.SentryAnalyticsClient.md +7 -7
- package/data/packages/platform-authentication/api/{Class.AppleStrategy.md → Class.AppleConnector.md} +18 -12
- package/data/packages/platform-authentication/api/Class.AuthModule.md +3 -3
- package/data/packages/platform-authentication/api/Class.ChallengeService.md +6 -6
- package/data/packages/platform-authentication/api/Class.GithubConnector.md +79 -0
- package/data/packages/platform-authentication/api/{Class.GoogleStrategy.md → Class.GoogleConnector.md} +18 -12
- package/data/packages/platform-authentication/api/Class.MfaService.md +11 -11
- package/data/packages/platform-authentication/api/{Class.MicrosoftStrategy.md → Class.MicrosoftConnector.md} +18 -12
- package/data/packages/platform-authentication/api/Class.TotpMfaChannel.md +145 -0
- package/data/packages/platform-authentication/api/Class.VerificationService.md +7 -7
- package/data/packages/platform-authentication/api/Interface.IAuthModuleOptions.md +38 -8
- package/data/packages/platform-authentication/api/Interface.IMfaChallengeState.md +12 -12
- package/data/packages/platform-authentication/api/Variable.APPLE_AUTH_CONFIG_ENTRIES.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_CALLBACK_URL.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_CLIENT_ID.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_KEY_ID.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_PRIVATE_KEY.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_SCOPE.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_APPLE_TEAM_ID.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_CALLBACK_URL.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_CLIENT_ID.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_CLIENT_SECRET.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GITHUB_SCOPE.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GOOGLE_CALLBACK_URL.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GOOGLE_CLIENT_ID.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GOOGLE_CLIENT_SECRET.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_GOOGLE_SCOPE.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MFA_EMAIL_CODE_TTL.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MFA_EMAIL_MIN_RESEND.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MFA_ISSUER.md +15 -0
- package/data/packages/platform-authentication/api/Variable.AUTH_MFA_PUSH_CODE_TTL.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MFA_PUSH_MIN_RESEND.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MFA_SMS_CODE_TTL.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MFA_SMS_MIN_RESEND.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_CALLBACK_URL.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_CLIENT_ID.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_CLIENT_SECRET.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_SCOPE.md +1 -1
- package/data/packages/platform-authentication/api/Variable.AUTH_MICROSOFT_TENANT.md +1 -1
- package/data/packages/platform-authentication/api/Variable.GITHUB_AUTH_CONFIG_ENTRIES.md +1 -1
- package/data/packages/platform-authentication/api/Variable.GOOGLE_AUTH_CONFIG_ENTRIES.md +1 -1
- package/data/packages/platform-authentication/api/Variable.MICROSOFT_AUTH_CONFIG_ENTRIES.md +1 -1
- package/data/packages/platform-authentication/api/Variable.PLATFORM_AUTHENTICATION_CONFIG_ENTRIES.md +1 -1
- package/data/packages/platform-authentication/api/Variable.SEED_ANONYMOUS_USERNAME.md +1 -1
- package/data/packages/platform-authentication/api/Variable.TOTP_MFA_PROVIDERS.md +30 -0
- package/data/packages/platform-authentication/api/index.md +7 -4
- package/data/packages/platform-blob-storage/api/Class.BlobModule.md +2 -2
- package/data/packages/platform-blob-storage/api/Interface.IAwsS3BlobProviderRegistration.md +3 -3
- package/data/packages/platform-blob-storage/api/Interface.IAzureBlobProviderRegistration.md +3 -3
- package/data/packages/platform-blob-storage/api/Interface.IBlobModuleOptions.md +5 -5
- package/data/packages/platform-blob-storage/api/Interface.ICustomBlobProviderRegistration.md +3 -3
- package/data/packages/platform-blob-storage/api/Interface.IVercelBlobProviderRegistration.md +3 -3
- package/data/packages/platform-blob-storage/api/TypeAlias.IBlobProviderRegistration.md +1 -1
- package/data/packages/{platform-core → platform-caching}/api/Class.MemoryLayeredCache.md +41 -33
- package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +158 -0
- package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +296 -0
- package/data/packages/platform-caching/api/Interface.ICacheMetricsRecorder.md +122 -0
- package/data/packages/platform-caching/api/Interface.ICacheStats.md +71 -0
- package/data/packages/platform-caching/api/Interface.ILayeredCache.md +199 -0
- package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +76 -0
- package/data/packages/platform-caching/api/Interface.IRedisLayeredCacheOptions.md +122 -0
- package/data/packages/platform-caching/api/index.md +25 -0
- package/data/packages/platform-caching/index.md +116 -0
- package/data/packages/platform-core/api/Class.AppHealthIndicator.md +3 -3
- package/data/packages/platform-core/api/Class.ErrorTemplateService.md +5 -5
- package/data/packages/platform-core/api/Class.HostService.md +8 -8
- package/data/packages/platform-core/api/Class.ResourceManager.md +19 -19
- package/data/packages/platform-core/api/Interface.IErrorPageParams.md +10 -10
- package/data/packages/platform-core/api/Interface.IHostContentParams.md +10 -10
- package/data/packages/platform-core/api/Interface.IResourceManagerConfig.md +4 -4
- package/data/packages/platform-core/api/Variable.APP_NAME.md +15 -0
- package/data/packages/platform-core/api/Variable.GIT_COMMIT.md +15 -0
- package/data/packages/platform-core/api/Variable.INTELLIGENCE_MAX_OUTPUT_TOKENS.md +1 -1
- package/data/packages/platform-core/api/Variable.INTELLIGENCE_MODEL.md +1 -1
- package/data/packages/platform-core/api/Variable.INTELLIGENCE_TEMPERATURE.md +1 -1
- package/data/packages/platform-core/api/Variable.INTELLIGENCE_TOP_P.md +1 -1
- package/data/packages/platform-core/api/Variable.NODE_ENV.md +1 -1
- package/data/packages/platform-core/api/Variable.PLATFORM_CORE_CONFIG_ENTRIES.md +1 -1
- package/data/packages/platform-core/api/index.md +106 -150
- package/data/packages/platform-core/index.md +5 -3
- package/data/packages/platform-cryptography/api/Class.BcryptService.md +73 -0
- package/data/packages/platform-cryptography/api/Class.CryptoService.md +52 -0
- package/data/packages/{platform-core → platform-cryptography}/api/Class.OtpService.md +8 -4
- package/data/packages/{platform-core → platform-cryptography}/api/Interface.IOtpService.md +8 -4
- package/data/packages/platform-cryptography/api/Interface.IOtpUriOptions.md +47 -0
- package/data/packages/{platform-core → platform-cryptography}/api/Variable.OTP_SERVICE_TOKEN.md +1 -1
- package/data/packages/{platform-core → platform-cryptography}/api/Variable.TOTP_EPOCH_TOLERANCE.md +1 -1
- package/data/packages/platform-cryptography/api/index.md +29 -0
- package/data/packages/platform-cryptography/index.md +132 -0
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistrarBase.md +7 -5
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceCapabilityRegistry.md +19 -15
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceModule.md +1 -1
- package/data/packages/{platform-core → platform-intelligence}/api/Class.IntelligenceTextGenerator.md +7 -7
- package/data/packages/platform-intelligence/api/Function.createProviderOptions.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadAnthropicLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadGoogleLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadGrokLanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadOpenAILanguageModel.md +27 -0
- package/data/packages/platform-intelligence/api/Function.loadProviderFactory.md +32 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceArtifact.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapability.md +72 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityMetadata.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityPayload.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityRegistry.md +79 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCapabilityResult.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceCompletionUsage.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceContext.md +73 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceContextBuilder.md +36 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationMessageSnapshot.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceConversationSnapshot.md +59 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceFollowUpQuestion.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntent.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceIntentEntity.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessageModel.md +71 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceMessagePayload.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePrompt.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligencePromptMessage.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceProviderConfiguration.md +95 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceResponseMessage.md +35 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextCompletion.md +61 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerationOptions.md +47 -0
- package/data/packages/platform-intelligence/api/Interface.IIntelligenceTextGenerator.md +54 -0
- package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceConversationMessageRole.md +1 -1
- package/data/packages/platform-intelligence/api/TypeAlias.IntelligenceLanguageModelLoader.md +25 -0
- package/data/packages/{platform-core → platform-intelligence}/api/TypeAlias.IntelligenceProviderName.md +1 -1
- package/data/packages/{platform-core → platform-intelligence}/api/Variable.IntelligenceConversationMessageRoles.md +6 -6
- package/data/packages/platform-intelligence/api/Variable.IntelligenceProviderNames.md +29 -0
- package/data/packages/platform-intelligence/api/index.md +70 -0
- package/data/packages/platform-intelligence/index.md +131 -0
- package/data/packages/platform-mailing/api/Class.MailService.md +4 -4
- package/data/packages/platform-mailing/api/Class.MailVerificationService.md +4 -4
- package/data/packages/platform-mailing/api/Class.MailgunDeliveryStrategy.md +3 -3
- package/data/packages/platform-mailing/api/Class.PostmarkDeliveryStrategy.md +3 -3
- package/data/packages/platform-mailing/api/Class.ResendDeliveryStrategy.md +3 -3
- package/data/packages/platform-mailing/api/Class.SendGridDeliveryStrategy.md +3 -3
- package/data/packages/platform-mailing/api/Class.SmtpDeliveryStrategy.md +3 -3
- package/data/packages/platform-openapi/api/Function.SwaggerFeature.md +1 -1
- package/data/packages/platform-payments/api/Class.LemonSqueezyClient.md +6 -6
- package/data/packages/platform-payments/api/Class.MollieClient.md +6 -6
- package/data/packages/platform-payments/api/Class.PaddleClient.md +6 -6
- package/data/packages/platform-payments/api/Class.StripeClient.md +6 -6
- package/data/packages/platform-telemetry/api/Class.TelemetryCacheMetricsRecorder.md +15 -15
- package/package.json +1 -1
- package/data/packages/platform-authentication/api/Class.GithubStrategy.md +0 -73
- package/data/packages/platform-core/api/Class.BcryptService.md +0 -69
- package/data/packages/platform-core/api/Class.CryptoService.md +0 -50
- package/data/packages/platform-core/api/Class.NoopCacheMetricsRecorder.md +0 -157
- package/data/packages/platform-core/api/Class.RedisLayeredCache.md +0 -275
- package/data/packages/platform-core/api/Interface.ICacheMetricsRecorder.md +0 -121
- package/data/packages/platform-core/api/Interface.ICacheStats.md +0 -71
- package/data/packages/platform-core/api/Interface.IIntelligenceArtifact.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceCapability.md +0 -62
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityMetadata.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityPayload.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityRegistry.md +0 -69
- package/data/packages/platform-core/api/Interface.IIntelligenceCapabilityResult.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceCompletionUsage.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceContext.md +0 -63
- package/data/packages/platform-core/api/Interface.IIntelligenceContextBuilder.md +0 -32
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationMessageSnapshot.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceConversationSnapshot.md +0 -51
- package/data/packages/platform-core/api/Interface.IIntelligenceFollowUpQuestion.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceIntent.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceIntentEntity.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceMessageModel.md +0 -61
- package/data/packages/platform-core/api/Interface.IIntelligenceMessagePayload.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligencePrompt.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligencePromptMessage.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceProviderConfiguration.md +0 -81
- package/data/packages/platform-core/api/Interface.IIntelligenceResponseMessage.md +0 -31
- package/data/packages/platform-core/api/Interface.IIntelligenceTextCompletion.md +0 -53
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerationOptions.md +0 -41
- package/data/packages/platform-core/api/Interface.IIntelligenceTextGenerator.md +0 -46
- package/data/packages/platform-core/api/Interface.ILayeredCache.md +0 -194
- package/data/packages/platform-core/api/Interface.ILayeredCacheOptions.md +0 -71
- package/data/packages/platform-core/api/Interface.IOtpUriOptions.md +0 -47
- package/data/packages/platform-core/api/Interface.IRedisLayeredCacheOptions.md +0 -108
- package/data/packages/platform-core/api/Variable.IntelligenceProviderNames.md +0 -29
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '@breadstone/archipel-platform-intelligence'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# @breadstone/archipel-platform-intelligence
|
|
8
|
+
|
|
9
|
+
## Classes
|
|
10
|
+
|
|
11
|
+
| Class | Description |
|
|
12
|
+
| -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
13
|
+
| [IntelligenceCapabilityRegistrarBase](Class.IntelligenceCapabilityRegistrarBase) | Provides a reusable registration flow that allows feature modules to contribute capabilities to the global intelligence registry while keeping their implementation details private. |
|
|
14
|
+
| [IntelligenceCapabilityRegistry](Class.IntelligenceCapabilityRegistry) | Central registry responsible for resolving intelligence capabilities based on intent metadata. |
|
|
15
|
+
| [IntelligenceModule](Class.IntelligenceModule) | Core module exposing the shared intelligence infrastructure to feature modules. |
|
|
16
|
+
| [IntelligenceTextGenerator](Class.IntelligenceTextGenerator) | Executes text completions using the configured intelligence provider. |
|
|
17
|
+
|
|
18
|
+
## Interfaces
|
|
19
|
+
|
|
20
|
+
| Interface | Description |
|
|
21
|
+
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
22
|
+
| [IIntelligenceArtifact](Interface.IIntelligenceArtifact) | Represents a structured artifact returned by a capability. |
|
|
23
|
+
| [IIntelligenceCapability](Interface.IIntelligenceCapability) | Abstraction implemented by all capability providers. |
|
|
24
|
+
| [IIntelligenceCapabilityMetadata](Interface.IIntelligenceCapabilityMetadata) | Metadata describing a capability for orchestration and analytics purposes. |
|
|
25
|
+
| [IIntelligenceCapabilityPayload](Interface.IIntelligenceCapabilityPayload) | Payload forwarded to capabilities for execution. |
|
|
26
|
+
| [IIntelligenceCapabilityRegistry](Interface.IIntelligenceCapabilityRegistry) | Registry abstraction responsible for resolving capabilities. |
|
|
27
|
+
| [IIntelligenceCapabilityResult](Interface.IIntelligenceCapabilityResult) | Represents the outcome produced by a capability execution. |
|
|
28
|
+
| [IIntelligenceCompletionUsage](Interface.IIntelligenceCompletionUsage) | Captures usage telemetry returned by the intelligence provider. |
|
|
29
|
+
| [IIntelligenceContext](Interface.IIntelligenceContext) | Describes the context aggregated before routing a request to a capability. |
|
|
30
|
+
| [IIntelligenceContextBuilder](Interface.IIntelligenceContextBuilder) | Responsible for composing the context supplied to capabilities. |
|
|
31
|
+
| [IIntelligenceConversationMessageSnapshot](Interface.IIntelligenceConversationMessageSnapshot) | Represents a single message returned within a conversation snapshot. |
|
|
32
|
+
| [IIntelligenceConversationSnapshot](Interface.IIntelligenceConversationSnapshot) | Represents a lightweight snapshot of a conversation used for context building. |
|
|
33
|
+
| [IIntelligenceFollowUpQuestion](Interface.IIntelligenceFollowUpQuestion) | Represents a follow-up question suggested to keep the dialogue active. |
|
|
34
|
+
| [IIntelligenceIntent](Interface.IIntelligenceIntent) | Represents the structured intent resolved from a user message. |
|
|
35
|
+
| [IIntelligenceIntentEntity](Interface.IIntelligenceIntentEntity) | Represents an entity extracted from a resolved intelligence intent. |
|
|
36
|
+
| [IIntelligenceMessageModel](Interface.IIntelligenceMessageModel) | Represents a normalized message stored in persistence. |
|
|
37
|
+
| [IIntelligenceMessagePayload](Interface.IIntelligenceMessagePayload) | Carries the payload submitted when messaging the intelligence entrypoint. |
|
|
38
|
+
| [IIntelligencePrompt](Interface.IIntelligencePrompt) | Represents the input supplied to the intelligence text generator. |
|
|
39
|
+
| [IIntelligencePromptMessage](Interface.IIntelligencePromptMessage) | Describes a normalized message used for text generation prompts. |
|
|
40
|
+
| [IIntelligenceProviderConfiguration](Interface.IIntelligenceProviderConfiguration) | Describes the resolved configuration for the intelligence provider. |
|
|
41
|
+
| [IIntelligenceResponseMessage](Interface.IIntelligenceResponseMessage) | Represents a single assistant message returned by a capability. |
|
|
42
|
+
| [IIntelligenceTextCompletion](Interface.IIntelligenceTextCompletion) | Represents the normalized completion result produced by the intelligence provider. |
|
|
43
|
+
| [IIntelligenceTextGenerationOptions](Interface.IIntelligenceTextGenerationOptions) | Options that can be supplied when generating text with the intelligence provider. |
|
|
44
|
+
| [IIntelligenceTextGenerator](Interface.IIntelligenceTextGenerator) | Abstraction responsible for executing text completions using the configured provider. |
|
|
45
|
+
|
|
46
|
+
## Type Aliases
|
|
47
|
+
|
|
48
|
+
| Type Alias | Description |
|
|
49
|
+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
|
|
50
|
+
| [IntelligenceConversationMessageRole](TypeAlias.IntelligenceConversationMessageRole) | Represents the union of supported conversation message roles. |
|
|
51
|
+
| [IntelligenceLanguageModelLoader](TypeAlias.IntelligenceLanguageModelLoader) | Represents a factory responsible for resolving a configured language model instance. |
|
|
52
|
+
| [IntelligenceProviderName](TypeAlias.IntelligenceProviderName) | Represents the union of supported intelligence provider identifiers. |
|
|
53
|
+
|
|
54
|
+
## Variables
|
|
55
|
+
|
|
56
|
+
| Variable | Description |
|
|
57
|
+
| ------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
|
|
58
|
+
| [IntelligenceConversationMessageRoles](Variable.IntelligenceConversationMessageRoles) | Enumerates the conversation roles used for contextual snapshots and messages. |
|
|
59
|
+
| [IntelligenceProviderNames](Variable.IntelligenceProviderNames) | Enumerates the supported model providers powering the intelligence pipeline. |
|
|
60
|
+
|
|
61
|
+
## Functions
|
|
62
|
+
|
|
63
|
+
| Function | Description |
|
|
64
|
+
| ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
|
65
|
+
| [createProviderOptions](Function.createProviderOptions) | Creates the provider options object consumed by the AI SDK model factories. |
|
|
66
|
+
| [loadAnthropicLanguageModel](Function.loadAnthropicLanguageModel) | Loads the Anthropic language model based on the resolved provider configuration. |
|
|
67
|
+
| [loadGoogleLanguageModel](Function.loadGoogleLanguageModel) | Loads the Google (Gemini) language model based on the resolved provider configuration. |
|
|
68
|
+
| [loadGrokLanguageModel](Function.loadGrokLanguageModel) | Loads the Grok (xAI) language model based on the resolved provider configuration. |
|
|
69
|
+
| [loadOpenAILanguageModel](Function.loadOpenAILanguageModel) | Loads the OpenAI compatible language model based on the resolved provider configuration. |
|
|
70
|
+
| [loadProviderFactory](Function.loadProviderFactory) | Dynamically loads an AI SDK provider factory and returns the exported function reference. |
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: platform-intelligence
|
|
3
|
+
description: Multi-provider AI text generation with capability registry and intent-based orchestration.
|
|
4
|
+
order: 16
|
|
5
|
+
tags: [intelligence, ai, openai, anthropic, google, grok, text-generation, capability-registry]
|
|
6
|
+
package: '@breadstone/archipel-platform-intelligence'
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# platform-intelligence
|
|
10
|
+
|
|
11
|
+
Multi-provider AI text generation library supporting OpenAI, Anthropic, Google Generative AI, and Grok. Features a capability registry that maps business intents to provider-specific configurations, enabling intent-based orchestration without coupling consumers to a specific LLM.
|
|
12
|
+
|
|
13
|
+
**Package:** `@breadstone/archipel-platform-intelligence`
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { Module } from '@nestjs/common';
|
|
19
|
+
import { IntelligenceModule } from '@breadstone/archipel-platform-intelligence';
|
|
20
|
+
|
|
21
|
+
@Module({
|
|
22
|
+
imports: [IntelligenceModule],
|
|
23
|
+
})
|
|
24
|
+
export class AppModule {}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Provider Packages
|
|
30
|
+
|
|
31
|
+
Install only the providers you need:
|
|
32
|
+
|
|
33
|
+
| Provider | Package |
|
|
34
|
+
| --------- | ------------------------------------------------------ |
|
|
35
|
+
| OpenAI | `@breadstone/archipel-platform-intelligence/openai` |
|
|
36
|
+
| Anthropic | `@breadstone/archipel-platform-intelligence/anthropic` |
|
|
37
|
+
| Google | `@breadstone/archipel-platform-intelligence/google` |
|
|
38
|
+
| Grok | `@breadstone/archipel-platform-intelligence/grok` |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Text Generation
|
|
43
|
+
|
|
44
|
+
Inject `IntelligenceTextGenerator` and call `generateText()`:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
import { Injectable } from '@nestjs/common';
|
|
48
|
+
import { IntelligenceTextGenerator, IIntelligencePrompt } from '@breadstone/archipel-platform-intelligence';
|
|
49
|
+
|
|
50
|
+
@Injectable()
|
|
51
|
+
export class SummaryService {
|
|
52
|
+
constructor(private readonly _textGenerator: IntelligenceTextGenerator) {}
|
|
53
|
+
|
|
54
|
+
async summarize(content: string): Promise<string> {
|
|
55
|
+
const prompt: IIntelligencePrompt = {
|
|
56
|
+
system: 'You are a concise summarizer.',
|
|
57
|
+
messages: [{ role: 'user', content }],
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
const result = await this._textGenerator.generateText(prompt, {
|
|
61
|
+
provider: 'openai',
|
|
62
|
+
model: 'gpt-4o',
|
|
63
|
+
temperature: 0.3,
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
return result.text;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Capability Registry
|
|
74
|
+
|
|
75
|
+
The capability registry decouples consumers from specific providers and models by mapping business intents to configurations.
|
|
76
|
+
|
|
77
|
+
### Defining Capabilities
|
|
78
|
+
|
|
79
|
+
```typescript
|
|
80
|
+
import { IIntelligenceCapability } from '@breadstone/archipel-platform-intelligence';
|
|
81
|
+
|
|
82
|
+
const SUMMARIZE_CAPABILITY: IIntelligenceCapability = {
|
|
83
|
+
intent: 'summarize',
|
|
84
|
+
provider: 'openai',
|
|
85
|
+
model: 'gpt-4o',
|
|
86
|
+
temperature: 0.3,
|
|
87
|
+
maxTokens: 1024,
|
|
88
|
+
};
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Registering via IntelligenceCapabilityRegistrarBase
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
import { Injectable } from '@nestjs/common';
|
|
95
|
+
import {
|
|
96
|
+
IntelligenceCapabilityRegistrarBase,
|
|
97
|
+
IIntelligenceCapabilityRegistry,
|
|
98
|
+
} from '@breadstone/archipel-platform-intelligence';
|
|
99
|
+
|
|
100
|
+
@Injectable()
|
|
101
|
+
export class AppCapabilityRegistrar extends IntelligenceCapabilityRegistrarBase {
|
|
102
|
+
protected registerCapabilities(registry: IIntelligenceCapabilityRegistry): void {
|
|
103
|
+
registry.register(SUMMARIZE_CAPABILITY);
|
|
104
|
+
registry.register(TRANSLATE_CAPABILITY);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Resolving at Runtime
|
|
110
|
+
|
|
111
|
+
```typescript
|
|
112
|
+
const capability = this._registry.resolve('summarize');
|
|
113
|
+
const result = await this._textGenerator.generateText(prompt, capability);
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Environment Variables
|
|
119
|
+
|
|
120
|
+
| Variable | Description | Required |
|
|
121
|
+
| -------------------------------- | ---------------------------- | ------------------ |
|
|
122
|
+
| `INTELLIGENCE_OPENAI_API_KEY` | OpenAI API key | If using OpenAI |
|
|
123
|
+
| `INTELLIGENCE_ANTHROPIC_API_KEY` | Anthropic API key | If using Anthropic |
|
|
124
|
+
| `INTELLIGENCE_GOOGLE_API_KEY` | Google Generative AI API key | If using Google |
|
|
125
|
+
| `INTELLIGENCE_GROK_API_KEY` | Grok / xAI API key | If using Grok |
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## API Reference
|
|
130
|
+
|
|
131
|
+
See the full [API documentation](./api/) for all exported types, interfaces, and classes.
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: MailService
|
|
8
8
|
|
|
9
|
-
Defined in: [platform-mailing/src/services/MailService.ts:
|
|
9
|
+
Defined in: [platform-mailing/src/services/MailService.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailService.ts#L18)
|
|
10
10
|
|
|
11
11
|
Represents the `MailService` class.
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ new MailService(
|
|
|
21
21
|
deliveryStrategy): MailService;
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
Defined in: [platform-mailing/src/services/MailService.ts:
|
|
24
|
+
Defined in: [platform-mailing/src/services/MailService.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailService.ts#L35)
|
|
25
25
|
|
|
26
26
|
Constructs a new instance of the `MailService` class.
|
|
27
27
|
|
|
@@ -48,7 +48,7 @@ send(
|
|
|
48
48
|
isHtml): Promise<void>;
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
Defined in: [platform-mailing/src/services/MailService.ts:
|
|
51
|
+
Defined in: [platform-mailing/src/services/MailService.ts:65](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailService.ts#L65)
|
|
52
52
|
|
|
53
53
|
Sends an email with either plain text or HTML content.
|
|
54
54
|
|
|
@@ -75,7 +75,7 @@ Sends an email with either plain text or HTML content.
|
|
|
75
75
|
sendTemplate(mailOptions, templateOptions): Promise<void>;
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
Defined in: [platform-mailing/src/services/MailService.ts:
|
|
78
|
+
Defined in: [platform-mailing/src/services/MailService.ts:94](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailService.ts#L94)
|
|
79
79
|
|
|
80
80
|
Sends an email using a predefined template (HTML or text).
|
|
81
81
|
Automatically uses the template format (either 'html' or 'txt') based on the environment variable.
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: MailVerificationService
|
|
8
8
|
|
|
9
|
-
Defined in: [platform-mailing/src/services/MailVerificationService.ts:
|
|
9
|
+
Defined in: [platform-mailing/src/services/MailVerificationService.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailVerificationService.ts#L16)
|
|
10
10
|
|
|
11
11
|
Represents the `MailVerificationService` class.
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Represents the `MailVerificationService` class.
|
|
|
18
18
|
new MailVerificationService(configService): MailVerificationService;
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
Defined in: [platform-mailing/src/services/MailVerificationService.ts:
|
|
21
|
+
Defined in: [platform-mailing/src/services/MailVerificationService.ts:30](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailVerificationService.ts#L30)
|
|
22
22
|
|
|
23
23
|
Constructs a new instance of the `MailVerificationService` class.
|
|
24
24
|
|
|
@@ -44,7 +44,7 @@ sendTestEmail(
|
|
|
44
44
|
text): Promise<void>;
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
Defined in: [platform-mailing/src/services/MailVerificationService.ts:
|
|
47
|
+
Defined in: [platform-mailing/src/services/MailVerificationService.ts:71](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailVerificationService.ts#L71)
|
|
48
48
|
|
|
49
49
|
Send an email for testing purposes or verification
|
|
50
50
|
|
|
@@ -69,7 +69,7 @@ Send an email for testing purposes or verification
|
|
|
69
69
|
verifyEmail(email): Promise<boolean>;
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
-
Defined in: [platform-mailing/src/services/MailVerificationService.ts:
|
|
72
|
+
Defined in: [platform-mailing/src/services/MailVerificationService.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/MailVerificationService.ts#L49)
|
|
73
73
|
|
|
74
74
|
Verifies if the email address is valid and reachable.
|
|
75
75
|
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: MailgunDeliveryStrategy
|
|
8
8
|
|
|
9
|
-
Defined in: [platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts:
|
|
9
|
+
Defined in: [platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts:18](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts#L18)
|
|
10
10
|
|
|
11
11
|
Delivers emails via the Mailgun API.
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ Delivers emails via the Mailgun API.
|
|
|
22
22
|
new MailgunDeliveryStrategy(configService): MailgunDeliveryStrategy;
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Defined in: [platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts:
|
|
25
|
+
Defined in: [platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts:34](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts#L34)
|
|
26
26
|
|
|
27
27
|
Constructs a new instance of the `MailgunDeliveryStrategy` class.
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@ send(
|
|
|
53
53
|
isHtml): Promise<void>;
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Defined in: [platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts:
|
|
56
|
+
Defined in: [platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts:59](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/MailgunDeliveryStrategy.ts#L59)
|
|
57
57
|
|
|
58
58
|
Sends an email using the Mailgun transport.
|
|
59
59
|
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: PostmarkDeliveryStrategy
|
|
8
8
|
|
|
9
|
-
Defined in: [platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts:
|
|
9
|
+
Defined in: [platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts#L16)
|
|
10
10
|
|
|
11
11
|
The `PostmarkDeliveryStrategy` class.
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ The `PostmarkDeliveryStrategy` class.
|
|
|
22
22
|
new PostmarkDeliveryStrategy(configService): PostmarkDeliveryStrategy;
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Defined in: [platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts:
|
|
25
|
+
Defined in: [platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts:31](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts#L31)
|
|
26
26
|
|
|
27
27
|
Constructs a new instance of the `PostmarkDeliveryStrategy` class.
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@ send(
|
|
|
53
53
|
isHtml): Promise<void>;
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Defined in: [platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts:
|
|
56
|
+
Defined in: [platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts:51](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/PostmarkDeliveryStrategy.ts#L51)
|
|
57
57
|
|
|
58
58
|
Sends an email using the Postmark transport.
|
|
59
59
|
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: ResendDeliveryStrategy
|
|
8
8
|
|
|
9
|
-
Defined in: [platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts:
|
|
9
|
+
Defined in: [platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts#L16)
|
|
10
10
|
|
|
11
11
|
Delivers emails via the Resend API.
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ Delivers emails via the Resend API.
|
|
|
22
22
|
new ResendDeliveryStrategy(configService): ResendDeliveryStrategy;
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Defined in: [platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts:
|
|
25
|
+
Defined in: [platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts:31](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts#L31)
|
|
26
26
|
|
|
27
27
|
Constructs a new instance of the `ResendDeliveryStrategy` class.
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@ send(
|
|
|
53
53
|
isHtml): Promise<void>;
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Defined in: [platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts:
|
|
56
|
+
Defined in: [platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts:51](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/ResendDeliveryStrategy.ts#L51)
|
|
57
57
|
|
|
58
58
|
Sends an email using the Resend transport.
|
|
59
59
|
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: SendGridDeliveryStrategy
|
|
8
8
|
|
|
9
|
-
Defined in: [platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts:
|
|
9
|
+
Defined in: [platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts#L16)
|
|
10
10
|
|
|
11
11
|
Delivers emails via the SendGrid API.
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ Delivers emails via the SendGrid API.
|
|
|
22
22
|
new SendGridDeliveryStrategy(configService): SendGridDeliveryStrategy;
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Defined in: [platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts:
|
|
25
|
+
Defined in: [platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts:30](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts#L30)
|
|
26
26
|
|
|
27
27
|
Constructs a new instance of the `SendGridDeliveryStrategy` class.
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@ send(
|
|
|
53
53
|
isHtml): Promise<void>;
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Defined in: [platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts:
|
|
56
|
+
Defined in: [platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts:50](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/SendGridDeliveryStrategy.ts#L50)
|
|
57
57
|
|
|
58
58
|
Sends an email using the SendGrid transport.
|
|
59
59
|
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: SmtpDeliveryStrategy
|
|
8
8
|
|
|
9
|
-
Defined in: [platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts:
|
|
9
|
+
Defined in: [platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts:16](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts#L16)
|
|
10
10
|
|
|
11
11
|
The `SmtpDeliveryStrategy` class.
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ The `SmtpDeliveryStrategy` class.
|
|
|
22
22
|
new SmtpDeliveryStrategy(configService): SmtpDeliveryStrategy;
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
Defined in: [platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts:
|
|
25
|
+
Defined in: [platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts:31](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts#L31)
|
|
26
26
|
|
|
27
27
|
Constructs a new instance of the `LogDelivery` class.
|
|
28
28
|
|
|
@@ -53,7 +53,7 @@ send(
|
|
|
53
53
|
isHtml): Promise<void>;
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
Defined in: [platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts:
|
|
56
|
+
Defined in: [platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts:61](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mailing/src/services/strategies/SmtpDeliveryStrategy.ts#L61)
|
|
57
57
|
|
|
58
58
|
Sends an email using the SMTP transport.
|
|
59
59
|
|
|
@@ -30,7 +30,7 @@ This allows the SwaggerMultiDocumentService to automatically discover and create
|
|
|
30
30
|
```typescript
|
|
31
31
|
@SwaggerFeature({
|
|
32
32
|
name: 'tip',
|
|
33
|
-
title: '
|
|
33
|
+
title: 'My App API - Tips',
|
|
34
34
|
description: 'API endpoints for tip management',
|
|
35
35
|
tag: 'Tip',
|
|
36
36
|
})
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: LemonSqueezyClient
|
|
8
8
|
|
|
9
|
-
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:
|
|
9
|
+
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:30](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/lemonsqueezy/LemonSqueezyClient.ts#L30)
|
|
10
10
|
|
|
11
11
|
LemonSqueezy implementation of the [PaymentClientPort](Class.PaymentClientPort).
|
|
12
12
|
Uses the official `@lemonsqueezy/lemonsqueezy.js` SDK.
|
|
@@ -23,7 +23,7 @@ Uses the official `@lemonsqueezy/lemonsqueezy.js` SDK.
|
|
|
23
23
|
new LemonSqueezyClient(configService): LemonSqueezyClient;
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:
|
|
26
|
+
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:40](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/lemonsqueezy/LemonSqueezyClient.ts#L40)
|
|
27
27
|
|
|
28
28
|
#### Parameters
|
|
29
29
|
|
|
@@ -47,7 +47,7 @@ Defined in: [lemonsqueezy/LemonSqueezyClient.ts:39](https://github.com/RueDeRenn
|
|
|
47
47
|
constructWebhookEvent(payload, signature): INormalizedWebhookEvent;
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:
|
|
50
|
+
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:143](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/lemonsqueezy/LemonSqueezyClient.ts#L143)
|
|
51
51
|
|
|
52
52
|
Construct and normalize a webhook event from raw payload.
|
|
53
53
|
|
|
@@ -80,7 +80,7 @@ createCheckoutSession(
|
|
|
80
80
|
userId?): Promise<INormalizedCheckoutSession>;
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:
|
|
83
|
+
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:78](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/lemonsqueezy/LemonSqueezyClient.ts#L78)
|
|
84
84
|
|
|
85
85
|
Create a checkout session.
|
|
86
86
|
|
|
@@ -111,7 +111,7 @@ Normalized checkout session.
|
|
|
111
111
|
fetchPrices(productId): Promise<INormalizedPrice[]>;
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:
|
|
114
|
+
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:56](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/lemonsqueezy/LemonSqueezyClient.ts#L56)
|
|
115
115
|
|
|
116
116
|
Fetch all active prices for a product.
|
|
117
117
|
|
|
@@ -141,7 +141,7 @@ fetchSubscription(subscriptionId): Promise<
|
|
|
141
141
|
| null>;
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:
|
|
144
|
+
Defined in: [lemonsqueezy/LemonSqueezyClient.ts:124](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/lemonsqueezy/LemonSqueezyClient.ts#L124)
|
|
145
145
|
|
|
146
146
|
Retrieve subscription details.
|
|
147
147
|
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: MollieClient
|
|
8
8
|
|
|
9
|
-
Defined in: [mollie/MollieClient.ts:
|
|
9
|
+
Defined in: [mollie/MollieClient.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/mollie/MollieClient.ts#L24)
|
|
10
10
|
|
|
11
11
|
Mollie implementation of the [PaymentClientPort](Class.PaymentClientPort).
|
|
12
12
|
Uses the official `@mollie/api-client` to interact with the Mollie API.
|
|
@@ -23,7 +23,7 @@ Uses the official `@mollie/api-client` to interact with the Mollie API.
|
|
|
23
23
|
new MollieClient(configService): MollieClient;
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Defined in: [mollie/MollieClient.ts:
|
|
26
|
+
Defined in: [mollie/MollieClient.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/mollie/MollieClient.ts#L35)
|
|
27
27
|
|
|
28
28
|
#### Parameters
|
|
29
29
|
|
|
@@ -47,7 +47,7 @@ Defined in: [mollie/MollieClient.ts:34](https://github.com/RueDeRennes/archipel/
|
|
|
47
47
|
constructWebhookEvent(payload, signature): INormalizedWebhookEvent;
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Defined in: [mollie/MollieClient.ts:
|
|
50
|
+
Defined in: [mollie/MollieClient.ts:123](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/mollie/MollieClient.ts#L123)
|
|
51
51
|
|
|
52
52
|
Construct and normalize a webhook event from raw payload.
|
|
53
53
|
|
|
@@ -80,7 +80,7 @@ createCheckoutSession(
|
|
|
80
80
|
userId?): Promise<INormalizedCheckoutSession>;
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
Defined in: [mollie/MollieClient.ts:
|
|
83
|
+
Defined in: [mollie/MollieClient.ts:60](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/mollie/MollieClient.ts#L60)
|
|
84
84
|
|
|
85
85
|
Create a checkout session.
|
|
86
86
|
|
|
@@ -111,7 +111,7 @@ Normalized checkout session.
|
|
|
111
111
|
fetchPrices(_productId): Promise<INormalizedPrice[]>;
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
Defined in: [mollie/MollieClient.ts:
|
|
114
|
+
Defined in: [mollie/MollieClient.ts:49](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/mollie/MollieClient.ts#L49)
|
|
115
115
|
|
|
116
116
|
Fetch all active prices for a product.
|
|
117
117
|
|
|
@@ -141,7 +141,7 @@ fetchSubscription(subscriptionId): Promise<
|
|
|
141
141
|
| null>;
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
Defined in: [mollie/MollieClient.ts:
|
|
144
|
+
Defined in: [mollie/MollieClient.ts:97](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/mollie/MollieClient.ts#L97)
|
|
145
145
|
|
|
146
146
|
Retrieve subscription details.
|
|
147
147
|
|
|
@@ -6,7 +6,7 @@ editUrl: false
|
|
|
6
6
|
|
|
7
7
|
# Class: PaddleClient
|
|
8
8
|
|
|
9
|
-
Defined in: [paddle/PaddleClient.ts:
|
|
9
|
+
Defined in: [paddle/PaddleClient.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/paddle/PaddleClient.ts#L24)
|
|
10
10
|
|
|
11
11
|
Paddle implementation of the [PaymentClientPort](Class.PaymentClientPort).
|
|
12
12
|
Uses the official `@paddle/paddle-node-sdk` to interact with the Paddle Billing API.
|
|
@@ -23,7 +23,7 @@ Uses the official `@paddle/paddle-node-sdk` to interact with the Paddle Billing
|
|
|
23
23
|
new PaddleClient(configService): PaddleClient;
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Defined in: [paddle/PaddleClient.ts:
|
|
26
|
+
Defined in: [paddle/PaddleClient.ts:35](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/paddle/PaddleClient.ts#L35)
|
|
27
27
|
|
|
28
28
|
#### Parameters
|
|
29
29
|
|
|
@@ -47,7 +47,7 @@ Defined in: [paddle/PaddleClient.ts:34](https://github.com/RueDeRennes/archipel/
|
|
|
47
47
|
constructWebhookEvent(payload, signature): Promise<INormalizedWebhookEvent>;
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Defined in: [paddle/PaddleClient.ts:
|
|
50
|
+
Defined in: [paddle/PaddleClient.ts:121](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/paddle/PaddleClient.ts#L121)
|
|
51
51
|
|
|
52
52
|
Construct and normalize a webhook event from raw payload.
|
|
53
53
|
|
|
@@ -80,7 +80,7 @@ createCheckoutSession(
|
|
|
80
80
|
userId?): Promise<INormalizedCheckoutSession>;
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
Defined in: [paddle/PaddleClient.ts:
|
|
83
|
+
Defined in: [paddle/PaddleClient.ts:72](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/paddle/PaddleClient.ts#L72)
|
|
84
84
|
|
|
85
85
|
Create a checkout session.
|
|
86
86
|
|
|
@@ -111,7 +111,7 @@ Normalized checkout session.
|
|
|
111
111
|
fetchPrices(productId): Promise<INormalizedPrice[]>;
|
|
112
112
|
```
|
|
113
113
|
|
|
114
|
-
Defined in: [paddle/PaddleClient.ts:
|
|
114
|
+
Defined in: [paddle/PaddleClient.ts:52](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/paddle/PaddleClient.ts#L52)
|
|
115
115
|
|
|
116
116
|
Fetch all active prices for a product.
|
|
117
117
|
|
|
@@ -141,7 +141,7 @@ fetchSubscription(subscriptionId): Promise<
|
|
|
141
141
|
| null>;
|
|
142
142
|
```
|
|
143
143
|
|
|
144
|
-
Defined in: [paddle/PaddleClient.ts:
|
|
144
|
+
Defined in: [paddle/PaddleClient.ts:106](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/paddle/PaddleClient.ts#L106)
|
|
145
145
|
|
|
146
146
|
Retrieve subscription details.
|
|
147
147
|
|