@breadstone/archipel-mcp 0.0.23 → 0.0.25
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/guides/caching.md +33 -0
- package/data/guides/email-delivery.md +27 -1
- package/data/guides/esigning-integration.md +11 -5
- package/data/guides/health-indicators.md +220 -0
- package/data/guides/index.md +2 -0
- package/data/guides/queue-infrastructure.md +329 -0
- package/data/guides/telemetry-and-observability.md +20 -0
- package/data/packages/platform-analytics/api/Class.AnalyticsClientPort.md +20 -0
- package/data/packages/platform-analytics/api/Class.AnalyticsHealthIndicator.md +78 -0
- package/data/packages/platform-analytics/api/Class.AppInsightsAnalyticsClient.md +24 -0
- package/data/packages/platform-analytics/api/Class.DatadogAnalyticsClient.md +24 -0
- package/data/packages/platform-analytics/api/Class.NoopAnalyticsClient.md +24 -0
- package/data/packages/platform-analytics/api/Class.SentryAnalyticsClient.md +24 -0
- package/data/packages/platform-analytics/api/index.md +1 -0
- package/data/packages/platform-analytics/index.md +25 -1
- package/data/packages/platform-authentication/api/Class.AuthenticationHealthIndicator.md +68 -0
- package/data/packages/platform-authentication/api/index.md +1 -0
- package/data/packages/platform-authentication/index.md +25 -1
- package/data/packages/platform-blob-storage/api/Class.BlobHealthIndicator.md +7 -7
- 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-blob-storage/api/index.md +1 -1
- package/data/packages/platform-blob-storage/index.md +19 -14
- package/data/packages/platform-caching/api/Class.MemoryLayeredCache.md +10 -10
- package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +6 -6
- package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +10 -10
- package/data/packages/platform-caching/api/Interface.ILayeredCache.md +9 -9
- package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +6 -6
- package/data/packages/platform-caching/api/Variable.CACHE_DEFAULT_TTL_MS.md +14 -0
- package/data/packages/platform-caching/api/Variable.CACHE_MAX_ENTRIES.md +14 -0
- package/data/packages/platform-caching/api/Variable.CACHE_STALE_WHILE_REVALIDATE.md +14 -0
- package/data/packages/platform-caching/api/Variable.PLATFORM_CACHING_CONFIG_ENTRIES.md +14 -0
- package/data/packages/platform-caching/api/Variable.REDIS_CONFIG_ENTRIES.md +14 -0
- package/data/packages/platform-caching/api/Variable.REDIS_KEY_PREFIX.md +14 -0
- package/data/packages/platform-caching/api/Variable.REDIS_TTL_SECONDS.md +14 -0
- package/data/packages/platform-caching/api/Variable.REDIS_URL.md +14 -0
- package/data/packages/platform-caching/api/index.md +13 -0
- package/data/packages/platform-caching/index.md +47 -1
- package/data/packages/platform-configuration/api/Function.createConfigKey.md +1 -1
- package/data/packages/platform-core/api/Class.HttpLoggerMiddleware.md +3 -3
- package/data/packages/platform-core/api/Function.maskSensitive.md +26 -0
- package/data/packages/platform-core/api/Function.maskSensitiveFields.md +26 -0
- package/data/packages/platform-core/api/index.md +2 -0
- package/data/packages/platform-core/index.md +11 -0
- package/data/packages/platform-database/api/Class.DatabaseHealthIndicator.md +8 -6
- package/data/packages/platform-database/api/Class.DatabaseModule.md +3 -3
- package/data/packages/platform-database/api/Class.RepositoryBase.md +20 -20
- package/data/packages/platform-database/api/Function.paginator.md +1 -1
- package/data/packages/platform-database/api/Interface.IDatabaseModuleConfig.md +3 -3
- package/data/packages/platform-database/api/TypeAlias.DelegateArgs.md +1 -1
- package/data/packages/platform-database/api/TypeAlias.DelegateReturnTypes.md +1 -1
- package/data/packages/platform-database/api/TypeAlias.PaginateFunction.md +1 -1
- package/data/packages/platform-database/api/Variable.DATABASE_MODULE_CONFIG.md +1 -1
- package/data/packages/platform-database/index.md +17 -5
- package/data/packages/platform-documents/api/Class.DocumentEngine.md +9 -5
- package/data/packages/platform-documents/index.md +1 -1
- package/data/packages/platform-esigning/api/Class.AdobeSignEsigningProvider.md +24 -0
- package/data/packages/platform-esigning/api/Class.DocuSignEsigningProvider.md +24 -0
- package/data/packages/platform-esigning/api/Class.DropboxSignEsigningProvider.md +24 -0
- package/data/packages/platform-esigning/api/Class.EsigningClientPort.md +20 -0
- package/data/packages/platform-esigning/api/Class.EsigningHealthIndicator.md +78 -0
- package/data/packages/platform-esigning/api/Class.InternalEsigningProvider.md +24 -0
- package/data/packages/platform-esigning/api/index.md +1 -0
- package/data/packages/platform-esigning/index.md +26 -2
- package/data/packages/platform-health/api/Class.HealthModule.md +42 -0
- package/data/packages/platform-health/api/Class.HealthOrchestrator.md +64 -0
- package/data/packages/platform-health/api/Interface.IHealthCheckResult.md +46 -0
- package/data/packages/platform-health/api/Interface.IHealthIndicator.md +41 -0
- package/data/packages/platform-health/api/Variable.HEALTH_INDICATORS_TOKEN.md +14 -0
- package/data/packages/platform-health/api/index.md +26 -0
- package/data/packages/platform-health/index.md +18 -7
- package/data/packages/platform-intelligence/api/Class.IntelligenceHealthIndicator.md +78 -0
- package/data/packages/platform-intelligence/api/index.md +1 -0
- package/data/packages/platform-intelligence/index.md +24 -1
- package/data/packages/platform-logging/api/Class.ContextLogger.md +152 -0
- package/data/packages/platform-logging/api/Class.LoggerModule.md +8 -2
- package/data/packages/platform-logging/api/Class.RequestContextStore.md +90 -0
- package/data/packages/platform-logging/api/Class.RequestIdMiddleware.md +68 -0
- package/data/packages/platform-logging/api/Interface.IRequestContext.md +34 -0
- package/data/packages/platform-logging/api/Variable.REQUEST_ID_HEADER.md +14 -0
- package/data/packages/platform-logging/api/index.md +11 -1
- package/data/packages/platform-logging/index.md +89 -7
- package/data/packages/platform-mailing/api/Class.MailHealthIndicator.md +5 -5
- package/data/packages/platform-mailing/api/Class.MailModule.md +28 -1
- package/data/packages/platform-mailing/api/Class.MailVerificationService.md +49 -16
- package/data/packages/platform-mailing/api/Class.SmtpConnectionVerifier.md +84 -0
- package/data/packages/platform-mailing/api/Interface.IMailModuleOptions.md +36 -0
- package/data/packages/platform-mailing/api/index.md +3 -1
- package/data/packages/platform-mailing/index.md +64 -8
- package/data/packages/platform-mapping/api/Class.MappingBuilder.md +110 -0
- package/data/packages/platform-mapping/api/Class.MappingError.md +56 -0
- package/data/packages/platform-mapping/api/Class.MappingModule.md +46 -0
- package/data/packages/platform-mapping/api/Class.MappingNotRegisteredError.md +52 -0
- package/data/packages/platform-mapping/api/Class.MappingProfileBase.md +52 -0
- package/data/packages/platform-mapping/api/Class.MappingService.md +284 -0
- package/data/packages/platform-mapping/api/Class.TypeMappingNotRegisteredError.md +53 -0
- package/data/packages/platform-mapping/api/Function.createMappingKey.md +39 -0
- package/data/packages/platform-mapping/api/Interface.IMappingBuilder.md +76 -0
- package/data/packages/platform-mapping/api/Interface.IMappingKey.md +58 -0
- package/data/packages/platform-mapping/api/Interface.IMappingProfile.md +32 -0
- package/data/packages/platform-mapping/api/TypeAlias.Constructor.md +28 -0
- package/data/packages/platform-mapping/api/index.md +38 -0
- package/data/packages/platform-mcp/api/Class.McpHealthIndicator.md +78 -0
- package/data/packages/platform-mcp/api/index.md +1 -0
- package/data/packages/platform-mcp/index.md +24 -1
- package/data/packages/platform-openapi/api/Function.SwaggerFeature.md +2 -2
- package/data/packages/platform-openapi/api/Function.getSwaggerFeatureMetadata.md +2 -2
- package/data/packages/platform-payments/api/Class.LemonSqueezyClient.md +24 -0
- package/data/packages/platform-payments/api/Class.MollieClient.md +24 -0
- package/data/packages/platform-payments/api/Class.PaddleClient.md +24 -0
- package/data/packages/platform-payments/api/Class.PaymentClientPort.md +20 -0
- package/data/packages/platform-payments/api/Class.PaymentHealthIndicator.md +78 -0
- package/data/packages/platform-payments/api/Class.StripeClient.md +28 -4
- package/data/packages/platform-payments/api/index.md +1 -0
- package/data/packages/platform-payments/index.md +26 -2
- package/data/packages/platform-queue/api/Class.AzureQueue.md +221 -0
- package/data/packages/platform-queue/api/Class.BullMqQueue.md +220 -0
- package/data/packages/platform-queue/api/Class.MemoryQueue.md +194 -0
- package/data/packages/platform-queue/api/Class.QueueError.md +51 -0
- package/data/packages/platform-queue/api/Class.QueueHealthIndicator.md +68 -0
- package/data/packages/platform-queue/api/Class.QueueJobNotFoundError.md +43 -0
- package/data/packages/platform-queue/api/Class.QueueJobStateError.md +48 -0
- package/data/packages/platform-queue/api/Class.QueueValidationError.md +43 -0
- package/data/packages/platform-queue/api/Interface.IAzureQueueOptions.md +48 -0
- package/data/packages/platform-queue/api/Interface.IBullMqQueueOptions.md +45 -0
- package/data/packages/platform-queue/api/Interface.IMemoryQueueOptions.md +32 -0
- package/data/packages/platform-queue/api/Interface.IQueue.md +173 -0
- package/data/packages/platform-queue/api/Interface.IQueueJob.md +139 -0
- package/data/packages/platform-queue/api/TypeAlias.QueueJobStatus.md +14 -0
- package/data/packages/platform-queue/api/Variable.AZURE_CONFIG_ENTRIES.md +17 -0
- package/data/packages/platform-queue/api/Variable.AZURE_CONNECTION_STRING.md +14 -0
- package/data/packages/platform-queue/api/Variable.AZURE_RECEIVE_WAIT_MS.md +21 -0
- package/data/packages/platform-queue/api/Variable.BULLMQ_CONFIG_ENTRIES.md +17 -0
- package/data/packages/platform-queue/api/Variable.BULLMQ_PREFIX.md +18 -0
- package/data/packages/platform-queue/api/Variable.BULLMQ_REDIS_URL.md +21 -0
- package/data/packages/platform-queue/api/Variable.PLATFORM_QUEUE_CONFIG_ENTRIES.md +17 -0
- package/data/packages/platform-queue/api/Variable.QUEUE_JOB_STATUS.md +30 -0
- package/data/packages/platform-queue/api/Variable.QUEUE_MAX_JOBS.md +21 -0
- package/data/packages/platform-queue/api/index.md +49 -0
- package/data/packages/platform-queue/index.md +168 -0
- package/data/packages/platform-resources/api/Class.BlobResourceStrategy.md +195 -0
- package/data/packages/platform-resources/api/Class.EmbeddedResourceStrategy.md +215 -0
- package/data/packages/platform-resources/api/Class.FileResourceStrategy.md +190 -0
- package/data/packages/platform-resources/api/Class.ResourceManager.md +477 -0
- package/data/packages/platform-resources/api/Class.ResourceModule.md +46 -0
- package/data/packages/platform-resources/api/Class.ResourceNotFoundError.md +60 -0
- package/data/packages/platform-resources/api/Interface.IBlobResourceStrategyConfig.md +28 -0
- package/data/packages/platform-resources/api/Interface.IBlobServiceAdapter.md +40 -0
- package/data/packages/platform-resources/api/Interface.IFileResourceStrategyConfig.md +72 -0
- package/data/packages/platform-resources/api/Interface.IResourceManagerConfig.md +89 -0
- package/data/packages/platform-resources/api/Interface.IResourceMetadata.md +94 -0
- package/data/packages/platform-resources/api/Interface.IResourceResult.md +34 -0
- package/data/packages/platform-resources/api/Interface.IResourceStrategy.md +134 -0
- package/data/packages/platform-resources/api/index.md +29 -0
- package/data/packages/platform-telemetry/api/Class.OtelSdkHolder.md +20 -2
- package/data/packages/platform-telemetry/api/Class.TelemetryHealthIndicator.md +78 -0
- package/data/packages/platform-telemetry/api/index.md +1 -0
- package/data/packages/platform-telemetry/index.md +25 -1
- package/data/patterns/config-pattern.md +3 -1
- package/package.json +1 -1
|
@@ -204,6 +204,30 @@ The signing request with current status.
|
|
|
204
204
|
|
|
205
205
|
***
|
|
206
206
|
|
|
207
|
+
### ping()
|
|
208
|
+
|
|
209
|
+
```ts
|
|
210
|
+
ping(): Promise<boolean>;
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
Defined in: [contracts/EsigningClientPort.ts:97](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-esigning/src/contracts/EsigningClientPort.ts#L97)
|
|
214
|
+
|
|
215
|
+
Lightweight connectivity check for the e-signing provider.
|
|
216
|
+
Override in adapters to perform a real API call (e.g. account info).
|
|
217
|
+
Defaults to `true` if not overridden.
|
|
218
|
+
|
|
219
|
+
#### Returns
|
|
220
|
+
|
|
221
|
+
`Promise`\<`boolean`\>
|
|
222
|
+
|
|
223
|
+
`true` if the provider is reachable.
|
|
224
|
+
|
|
225
|
+
#### Inherited from
|
|
226
|
+
|
|
227
|
+
[`EsigningClientPort`](Class.EsigningClientPort).[`ping`](Class.EsigningClientPort#ping)
|
|
228
|
+
|
|
229
|
+
***
|
|
230
|
+
|
|
207
231
|
### verifyWebhook()
|
|
208
232
|
|
|
209
233
|
```ts
|
|
@@ -163,6 +163,26 @@ The signing request with current status.
|
|
|
163
163
|
|
|
164
164
|
***
|
|
165
165
|
|
|
166
|
+
### ping()
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
ping(): Promise<boolean>;
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
Defined in: [contracts/EsigningClientPort.ts:97](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-esigning/src/contracts/EsigningClientPort.ts#L97)
|
|
173
|
+
|
|
174
|
+
Lightweight connectivity check for the e-signing provider.
|
|
175
|
+
Override in adapters to perform a real API call (e.g. account info).
|
|
176
|
+
Defaults to `true` if not overridden.
|
|
177
|
+
|
|
178
|
+
#### Returns
|
|
179
|
+
|
|
180
|
+
`Promise`\<`boolean`\>
|
|
181
|
+
|
|
182
|
+
`true` if the provider is reachable.
|
|
183
|
+
|
|
184
|
+
***
|
|
185
|
+
|
|
166
186
|
### verifyWebhook()
|
|
167
187
|
|
|
168
188
|
```ts
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: EsigningHealthIndicator'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Class: EsigningHealthIndicator
|
|
7
|
+
|
|
8
|
+
Defined in: health/EsigningHealthIndicator.ts:17
|
|
9
|
+
|
|
10
|
+
Health indicator for the e-signing infrastructure.
|
|
11
|
+
Calls [EsigningClientPort.ping](Class.EsigningClientPort#ping) to verify provider connectivity.
|
|
12
|
+
|
|
13
|
+
## Implements
|
|
14
|
+
|
|
15
|
+
- `IHealthIndicator`
|
|
16
|
+
|
|
17
|
+
## Constructors
|
|
18
|
+
|
|
19
|
+
### Constructor
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
new EsigningHealthIndicator(esigningClient?): EsigningHealthIndicator;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Defined in: health/EsigningHealthIndicator.ts:27
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
| Parameter | Type |
|
|
30
|
+
| ------ | ------ |
|
|
31
|
+
| `esigningClient?` | [`EsigningClientPort`](Class.EsigningClientPort) |
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
`EsigningHealthIndicator`
|
|
36
|
+
|
|
37
|
+
## Properties
|
|
38
|
+
|
|
39
|
+
### key
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly key: string = 'esigning';
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: health/EsigningHealthIndicator.ts:35
|
|
46
|
+
|
|
47
|
+
Unique key identifying the indicator
|
|
48
|
+
|
|
49
|
+
#### Implementation of
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
IHealthIndicator.key
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Methods
|
|
56
|
+
|
|
57
|
+
### check()
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
check(): Promise<HealthIndicatorResult<string>>;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Defined in: health/EsigningHealthIndicator.ts:48
|
|
64
|
+
|
|
65
|
+
Pings the e-signing provider to verify connectivity.
|
|
66
|
+
Returns disabled status when no client is configured.
|
|
67
|
+
|
|
68
|
+
#### Returns
|
|
69
|
+
|
|
70
|
+
`Promise`\<`HealthIndicatorResult`\<`string`\>\>
|
|
71
|
+
|
|
72
|
+
The health indicator result.
|
|
73
|
+
|
|
74
|
+
#### Implementation of
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
IHealthIndicator.check
|
|
78
|
+
```
|
|
@@ -221,6 +221,30 @@ The signing request with current status.
|
|
|
221
221
|
|
|
222
222
|
***
|
|
223
223
|
|
|
224
|
+
### ping()
|
|
225
|
+
|
|
226
|
+
```ts
|
|
227
|
+
ping(): Promise<boolean>;
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Defined in: [contracts/EsigningClientPort.ts:97](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-esigning/src/contracts/EsigningClientPort.ts#L97)
|
|
231
|
+
|
|
232
|
+
Lightweight connectivity check for the e-signing provider.
|
|
233
|
+
Override in adapters to perform a real API call (e.g. account info).
|
|
234
|
+
Defaults to `true` if not overridden.
|
|
235
|
+
|
|
236
|
+
#### Returns
|
|
237
|
+
|
|
238
|
+
`Promise`\<`boolean`\>
|
|
239
|
+
|
|
240
|
+
`true` if the provider is reachable.
|
|
241
|
+
|
|
242
|
+
#### Inherited from
|
|
243
|
+
|
|
244
|
+
[`EsigningClientPort`](Class.EsigningClientPort).[`ping`](Class.EsigningClientPort#ping)
|
|
245
|
+
|
|
246
|
+
***
|
|
247
|
+
|
|
224
248
|
### verifyWebhook()
|
|
225
249
|
|
|
226
250
|
```ts
|
|
@@ -14,6 +14,7 @@ editUrl: false
|
|
|
14
14
|
| [DropboxSignEsigningProvider](Class.DropboxSignEsigningProvider) | Dropbox Sign (HelloSign) e-signing provider. Integrates with the Dropbox Sign API v3 via the official `@dropbox/sign` Node.js SDK. |
|
|
15
15
|
| [EsigningClientPort](Class.EsigningClientPort) | Abstract port for e-signing provider clients. Each provider (DocuSign, Adobe Sign, Dropbox Sign, Internal) must implement this contract so that the consuming application can switch providers without changing business logic. |
|
|
16
16
|
| [EsigningError](Class.EsigningError) | Base error for all e-signing related failures. |
|
|
17
|
+
| [EsigningHealthIndicator](Class.EsigningHealthIndicator) | Health indicator for the e-signing infrastructure. Calls [EsigningClientPort.ping](Class.EsigningClientPort#ping) to verify provider connectivity. |
|
|
17
18
|
| [EsigningModule](Class.EsigningModule) | NestJS module providing generic e-signing infrastructure. Exposes a configurable signing client and optional persistence tracking. The specific e-signing provider is selected via the options. |
|
|
18
19
|
| [EsigningPersistencePort](Class.EsigningPersistencePort) | Abstract port for persisting signing request state. Implement this port in the consuming application to track signing requests in a database. |
|
|
19
20
|
| [EsigningService](Class.EsigningService) | Application-level service for e-signing operations. Delegates to the configured [EsigningClientPort](Class.EsigningClientPort) and optionally invokes the [EsigningPersistencePort](Class.EsigningPersistencePort) for state tracking. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: platform-esigning
|
|
3
3
|
description: Provider-agnostic e-signing infrastructure with support for DocuSign, Adobe Sign, Dropbox Sign, and a built-in internal provider.
|
|
4
4
|
order: 5
|
|
5
|
-
tags: [esigning, docusign, adobe-sign, dropbox-sign, digital-signatures, ports-and-adapters, webhooks]
|
|
5
|
+
tags: [esigning, docusign, adobe-sign, dropbox-sign, digital-signatures, ports-and-adapters, webhooks, health]
|
|
6
6
|
package: '@breadstone/archipel-platform-esigning'
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -147,7 +147,7 @@ import { DOCUSIGN_CONFIG_ENTRIES } from '@breadstone/archipel-platform-esigning/
|
|
|
147
147
|
| `ADOBE_SIGN_INTEGRATION_KEY` | Adobe Sign integration key | Yes |
|
|
148
148
|
| `ADOBE_SIGN_CLIENT_SECRET` | Adobe Sign client secret | Yes |
|
|
149
149
|
| `ADOBE_SIGN_BASE_URL` | Adobe Sign base URL | Yes |
|
|
150
|
-
| `ADOBE_SIGN_WEBHOOK_CLIENT_ID` | Adobe Sign webhook client ID for verification |
|
|
150
|
+
| `ADOBE_SIGN_WEBHOOK_CLIENT_ID` | Adobe Sign webhook client ID for verification | Yes |
|
|
151
151
|
|
|
152
152
|
```typescript
|
|
153
153
|
import { ADOBE_SIGN_CONFIG_ENTRIES } from '@breadstone/archipel-platform-esigning/adobe-sign';
|
|
@@ -649,6 +649,29 @@ EsigningModule.register({
|
|
|
649
649
|
|
|
650
650
|
---
|
|
651
651
|
|
|
652
|
+
## Health Check
|
|
653
|
+
|
|
654
|
+
The `EsigningHealthIndicator` verifies that an `EsigningClientPort` is injected. If no e-signing client is registered, it reports `disabled: true`. Import it from the `/health` subpath:
|
|
655
|
+
|
|
656
|
+
```typescript
|
|
657
|
+
import { EsigningHealthIndicator } from '@breadstone/archipel-platform-esigning/health';
|
|
658
|
+
import { HealthModule } from '@breadstone/archipel-platform-health';
|
|
659
|
+
|
|
660
|
+
@Module({
|
|
661
|
+
imports: [
|
|
662
|
+
EsigningModule.register({ /* ... */ }),
|
|
663
|
+
HealthModule.withIndicators([EsigningHealthIndicator]),
|
|
664
|
+
],
|
|
665
|
+
})
|
|
666
|
+
export class AppModule {}
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
| Key | Check | Dependencies |
|
|
670
|
+
| --- | ----- | ------------ |
|
|
671
|
+
| `esigning` | `up` if `EsigningClientPort` injected, else `disabled` | `@Optional() EsigningClientPort` |
|
|
672
|
+
|
|
673
|
+
---
|
|
674
|
+
|
|
652
675
|
## Exports Summary
|
|
653
676
|
|
|
654
677
|
| Export | Type | Description |
|
|
@@ -682,3 +705,4 @@ EsigningModule.register({
|
|
|
682
705
|
| `ESIGNING_API_KEY` | Config Key | Generic API key config |
|
|
683
706
|
| `ESIGNING_WEBHOOK_SECRET` | Config Key | Generic webhook secret config |
|
|
684
707
|
| `ESIGNING_API_BASE_URL` | Config Key | Generic base URL config |
|
|
708
|
+
| `EsigningHealthIndicator` | Health | E-signing readiness check (`/health` subpath) |
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: HealthModule'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Class: HealthModule
|
|
7
|
+
|
|
8
|
+
Defined in: [HealthModule.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthModule.ts#L15)
|
|
9
|
+
|
|
10
|
+
## Constructors
|
|
11
|
+
|
|
12
|
+
### Constructor
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
new HealthModule(): HealthModule;
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
#### Returns
|
|
19
|
+
|
|
20
|
+
`HealthModule`
|
|
21
|
+
|
|
22
|
+
## Methods
|
|
23
|
+
|
|
24
|
+
### withIndicators()
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
static withIndicators(indicators): DynamicModule;
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Defined in: [HealthModule.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthModule.ts#L21)
|
|
31
|
+
|
|
32
|
+
Registers additional health indicators.
|
|
33
|
+
|
|
34
|
+
#### Parameters
|
|
35
|
+
|
|
36
|
+
| Parameter | Type | Description |
|
|
37
|
+
| ------ | ------ | ------ |
|
|
38
|
+
| `indicators` | `Type`\<[`IHealthIndicator`](Interface.IHealthIndicator)\>[] | Array of indicator classes implementing IHealthIndicator |
|
|
39
|
+
|
|
40
|
+
#### Returns
|
|
41
|
+
|
|
42
|
+
`DynamicModule`
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: HealthOrchestrator'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Class: HealthOrchestrator
|
|
7
|
+
|
|
8
|
+
Defined in: [HealthOrchestrator.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L15)
|
|
9
|
+
|
|
10
|
+
Orchestrates execution of all registered health indicators and aggregates their results.
|
|
11
|
+
|
|
12
|
+
## Constructors
|
|
13
|
+
|
|
14
|
+
### Constructor
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
new HealthOrchestrator(): HealthOrchestrator;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [HealthOrchestrator.ts:27](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L27)
|
|
21
|
+
|
|
22
|
+
#### Returns
|
|
23
|
+
|
|
24
|
+
`HealthOrchestrator`
|
|
25
|
+
|
|
26
|
+
## Methods
|
|
27
|
+
|
|
28
|
+
### check()
|
|
29
|
+
|
|
30
|
+
```ts
|
|
31
|
+
check(): Promise<IHealthCheckResult[]>;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Defined in: [HealthOrchestrator.ts:67](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L67)
|
|
35
|
+
|
|
36
|
+
Executes all registered health indicators and aggregates their results.
|
|
37
|
+
|
|
38
|
+
#### Returns
|
|
39
|
+
|
|
40
|
+
`Promise`\<[`IHealthCheckResult`](Interface.IHealthCheckResult)[]\>
|
|
41
|
+
|
|
42
|
+
The aggregated health check results.
|
|
43
|
+
|
|
44
|
+
***
|
|
45
|
+
|
|
46
|
+
### registerIndicator()
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
registerIndicator(indicator): void;
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Defined in: [HealthOrchestrator.ts:41](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/HealthOrchestrator.ts#L41)
|
|
53
|
+
|
|
54
|
+
Registers a health indicator.
|
|
55
|
+
|
|
56
|
+
#### Parameters
|
|
57
|
+
|
|
58
|
+
| Parameter | Type | Description |
|
|
59
|
+
| ------ | ------ | ------ |
|
|
60
|
+
| `indicator` | [`IHealthIndicator`](Interface.IHealthIndicator) | The health indicator to register. |
|
|
61
|
+
|
|
62
|
+
#### Returns
|
|
63
|
+
|
|
64
|
+
`void`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IHealthCheckResult'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IHealthCheckResult
|
|
7
|
+
|
|
8
|
+
Defined in: [IHealthCheckResult.ts:6](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L6)
|
|
9
|
+
|
|
10
|
+
Represents the result of a health check indicator.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### details?
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
optional details?: Record<string, unknown>;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [IHealthCheckResult.ts:20](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L20)
|
|
21
|
+
|
|
22
|
+
Optional additional details about the health check.
|
|
23
|
+
|
|
24
|
+
***
|
|
25
|
+
|
|
26
|
+
### name
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
name: string;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Defined in: [IHealthCheckResult.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L10)
|
|
33
|
+
|
|
34
|
+
The name of the health indicator (e.g., 'database', 'app').
|
|
35
|
+
|
|
36
|
+
***
|
|
37
|
+
|
|
38
|
+
### status
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
status: "up" | "down";
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Defined in: [IHealthCheckResult.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthCheckResult.ts#L15)
|
|
45
|
+
|
|
46
|
+
The status of the health indicator ('up', 'down').
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Interface: IHealthIndicator'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Interface: IHealthIndicator
|
|
7
|
+
|
|
8
|
+
Defined in: [IHealthIndicator.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthIndicator.ts#L12)
|
|
9
|
+
|
|
10
|
+
Defines the contract for a health indicator that can be orchestrated.
|
|
11
|
+
|
|
12
|
+
## Properties
|
|
13
|
+
|
|
14
|
+
### key
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
readonly key: string;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Defined in: [IHealthIndicator.ts:14](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthIndicator.ts#L14)
|
|
21
|
+
|
|
22
|
+
Unique key identifying the indicator
|
|
23
|
+
|
|
24
|
+
## Methods
|
|
25
|
+
|
|
26
|
+
### check()
|
|
27
|
+
|
|
28
|
+
```ts
|
|
29
|
+
check():
|
|
30
|
+
| HealthIndicatorResult<string>
|
|
31
|
+
| Promise<HealthIndicatorResult<string>>;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Defined in: [IHealthIndicator.ts:17](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/IHealthIndicator.ts#L17)
|
|
35
|
+
|
|
36
|
+
Performs the health check and returns a result keyed by the indicator key
|
|
37
|
+
|
|
38
|
+
#### Returns
|
|
39
|
+
|
|
40
|
+
\| `HealthIndicatorResult`\<`string`\>
|
|
41
|
+
\| `Promise`\<`HealthIndicatorResult`\<`string`\>\>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Variable: HEALTH\_INDICATORS\_TOKEN'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Variable: HEALTH\_INDICATORS\_TOKEN
|
|
7
|
+
|
|
8
|
+
```ts
|
|
9
|
+
const HEALTH_INDICATORS_TOKEN: typeof HEALTH_INDICATORS_TOKEN;
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Defined in: [tokens/HealthTokens.ts:2](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-health/src/tokens/HealthTokens.ts#L2)
|
|
13
|
+
|
|
14
|
+
Injection token for registered health indicators
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: '@breadstone/archipel-platform-health'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# @breadstone/archipel-platform-health
|
|
7
|
+
|
|
8
|
+
## Classes
|
|
9
|
+
|
|
10
|
+
| Class | Description |
|
|
11
|
+
| ------ | ------ |
|
|
12
|
+
| [HealthModule](Class.HealthModule) | - |
|
|
13
|
+
| [HealthOrchestrator](Class.HealthOrchestrator) | Orchestrates execution of all registered health indicators and aggregates their results. |
|
|
14
|
+
|
|
15
|
+
## Interfaces
|
|
16
|
+
|
|
17
|
+
| Interface | Description |
|
|
18
|
+
| ------ | ------ |
|
|
19
|
+
| [IHealthCheckResult](Interface.IHealthCheckResult) | Represents the result of a health check indicator. |
|
|
20
|
+
| [IHealthIndicator](Interface.IHealthIndicator) | Defines the contract for a health indicator that can be orchestrated. |
|
|
21
|
+
|
|
22
|
+
## Variables
|
|
23
|
+
|
|
24
|
+
| Variable | Description |
|
|
25
|
+
| ------ | ------ |
|
|
26
|
+
| [HEALTH\_INDICATORS\_TOKEN](Variable.HEALTH_INDICATORS_TOKEN) | Injection token for registered health indicators |
|
|
@@ -90,13 +90,24 @@ export class HealthController {
|
|
|
90
90
|
|
|
91
91
|
## Built-in Consumers
|
|
92
92
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
| Library
|
|
96
|
-
|
|
|
97
|
-
| `platform-database`
|
|
98
|
-
| `platform-blob-storage
|
|
99
|
-
| `platform-mailing`
|
|
93
|
+
All Archipel platform libraries provide health indicators via their `/health` subpath export. Register them with `HealthModule.withIndicators()`:
|
|
94
|
+
|
|
95
|
+
| Library | Indicator | Key | Check |
|
|
96
|
+
| ------------------------ | ------------------------------ | ---------------- | --------------------------------------------------------- |
|
|
97
|
+
| `platform-database` | `DatabaseHealthIndicator` | `database` | Prisma `SELECT 1` ping |
|
|
98
|
+
| `platform-blob-storage` | `BlobHealthIndicator` | `blob` | HTTP ping to blob URL (or disabled if unconfigured) |
|
|
99
|
+
| `platform-mailing` | `MailHealthIndicator` | `mail` | Validates mail host, user, and port config |
|
|
100
|
+
| `platform-caching` | `CachingHealthIndicator` | `caching` | Always `up` |
|
|
101
|
+
| `platform-queue` | `QueueHealthIndicator` | `queue` | Always `up` |
|
|
102
|
+
| `platform-payments` | `PaymentHealthIndicator` | `payment` | `up` if `PaymentClientPort` injected, else `disabled` |
|
|
103
|
+
| `platform-esigning` | `EsigningHealthIndicator` | `esigning` | `up` if `EsigningClientPort` injected, else `disabled` |
|
|
104
|
+
| `platform-intelligence` | `IntelligenceHealthIndicator` | `intelligence` | `up` if `IntelligenceCapabilityRegistry` injected, else `disabled` |
|
|
105
|
+
| `platform-analytics` | `AnalyticsHealthIndicator` | `analytics` | `up` if `AnalyticsClientPort` injected, else `disabled` |
|
|
106
|
+
| `platform-telemetry` | `TelemetryHealthIndicator` | `telemetry` | `up` if `OtelSdkHolder` injected, else `disabled` |
|
|
107
|
+
| `platform-authentication`| `AuthenticationHealthIndicator`| `authentication` | Always `up` |
|
|
108
|
+
| `platform-mcp` | `McpHealthIndicator` | `mcp` | `up` if `McpRegistryService` injected, else `disabled` |
|
|
109
|
+
|
|
110
|
+
See the [Health Indicators guide](../../guides/health-indicators) for full setup instructions.
|
|
100
111
|
|
|
101
112
|
---
|
|
102
113
|
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 'Class: IntelligenceHealthIndicator'
|
|
3
|
+
generated: true
|
|
4
|
+
editUrl: false
|
|
5
|
+
---
|
|
6
|
+
# Class: IntelligenceHealthIndicator
|
|
7
|
+
|
|
8
|
+
Defined in: health/IntelligenceHealthIndicator.ts:17
|
|
9
|
+
|
|
10
|
+
Health indicator for the intelligence infrastructure.
|
|
11
|
+
Verifies that at least one intelligence capability is registered.
|
|
12
|
+
|
|
13
|
+
## Implements
|
|
14
|
+
|
|
15
|
+
- `IHealthIndicator`
|
|
16
|
+
|
|
17
|
+
## Constructors
|
|
18
|
+
|
|
19
|
+
### Constructor
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
new IntelligenceHealthIndicator(registry?): IntelligenceHealthIndicator;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Defined in: health/IntelligenceHealthIndicator.ts:26
|
|
26
|
+
|
|
27
|
+
#### Parameters
|
|
28
|
+
|
|
29
|
+
| Parameter | Type |
|
|
30
|
+
| ------ | ------ |
|
|
31
|
+
| `registry?` | [`IntelligenceCapabilityRegistry`](Class.IntelligenceCapabilityRegistry) |
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
`IntelligenceHealthIndicator`
|
|
36
|
+
|
|
37
|
+
## Properties
|
|
38
|
+
|
|
39
|
+
### key
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
readonly key: string = 'intelligence';
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Defined in: health/IntelligenceHealthIndicator.ts:34
|
|
46
|
+
|
|
47
|
+
Unique key identifying the indicator
|
|
48
|
+
|
|
49
|
+
#### Implementation of
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
IHealthIndicator.key
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Methods
|
|
56
|
+
|
|
57
|
+
### check()
|
|
58
|
+
|
|
59
|
+
```ts
|
|
60
|
+
check(): HealthIndicatorResult<string>;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Defined in: health/IntelligenceHealthIndicator.ts:47
|
|
64
|
+
|
|
65
|
+
Verifies that the capability registry contains at least one registered capability.
|
|
66
|
+
Returns disabled status when no registry is configured.
|
|
67
|
+
|
|
68
|
+
#### Returns
|
|
69
|
+
|
|
70
|
+
`HealthIndicatorResult`\<`string`\>
|
|
71
|
+
|
|
72
|
+
The health indicator result.
|
|
73
|
+
|
|
74
|
+
#### Implementation of
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
IHealthIndicator.check
|
|
78
|
+
```
|
|
@@ -12,6 +12,7 @@ editUrl: false
|
|
|
12
12
|
| [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. |
|
|
13
13
|
| [IntelligenceCapabilityRegistry](Class.IntelligenceCapabilityRegistry) | Central registry responsible for resolving intelligence capabilities based on intent metadata. |
|
|
14
14
|
| [IntelligenceConfigurationError](Class.IntelligenceConfigurationError) | Error thrown when an intelligence provider configuration is invalid or missing. |
|
|
15
|
+
| [IntelligenceHealthIndicator](Class.IntelligenceHealthIndicator) | Health indicator for the intelligence infrastructure. Verifies that at least one intelligence capability is registered. |
|
|
15
16
|
| [IntelligenceModule](Class.IntelligenceModule) | Core module exposing the shared intelligence infrastructure to feature modules. |
|
|
16
17
|
| [IntelligenceProviderError](Class.IntelligenceProviderError) | Error thrown when an intelligence provider call fails. |
|
|
17
18
|
| [IntelligenceTextGenerator](Class.IntelligenceTextGenerator) | Executes text completions using the configured intelligence provider. |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
title: platform-intelligence
|
|
3
3
|
description: Multi-provider AI text generation with capability registry and intent-based orchestration.
|
|
4
4
|
order: 16
|
|
5
|
-
tags: [intelligence, ai, openai, anthropic, google, grok, text-generation, capability-registry]
|
|
5
|
+
tags: [intelligence, ai, openai, anthropic, google, grok, text-generation, capability-registry, health]
|
|
6
6
|
package: '@breadstone/archipel-platform-intelligence'
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -182,6 +182,29 @@ import {
|
|
|
182
182
|
|
|
183
183
|
---
|
|
184
184
|
|
|
185
|
+
## Health Check
|
|
186
|
+
|
|
187
|
+
The `IntelligenceHealthIndicator` verifies that an `IntelligenceCapabilityRegistry` is injected. If no registry is available, it reports `disabled: true`. Import it from the `/health` subpath:
|
|
188
|
+
|
|
189
|
+
```typescript
|
|
190
|
+
import { IntelligenceHealthIndicator } from '@breadstone/archipel-platform-intelligence/health';
|
|
191
|
+
import { HealthModule } from '@breadstone/archipel-platform-health';
|
|
192
|
+
|
|
193
|
+
@Module({
|
|
194
|
+
imports: [
|
|
195
|
+
IntelligenceModule.register({ /* ... */ }),
|
|
196
|
+
HealthModule.withIndicators([IntelligenceHealthIndicator]),
|
|
197
|
+
],
|
|
198
|
+
})
|
|
199
|
+
export class AppModule {}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
| Key | Check | Dependencies |
|
|
203
|
+
| --- | ----- | ------------ |
|
|
204
|
+
| `intelligence` | `up` if `IntelligenceCapabilityRegistry` injected, else `disabled` | `@Optional() IntelligenceCapabilityRegistry` |
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
185
208
|
## API Reference
|
|
186
209
|
|
|
187
210
|
See the full [API documentation](./api/) for all exported types, interfaces, and classes.
|