@breadstone/archipel-mcp 0.0.22 → 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.
Files changed (180) hide show
  1. package/README.md +32 -13
  2. package/data/guides/ai-text-generation.md +16 -24
  3. package/data/guides/caching.md +33 -0
  4. package/data/guides/email-delivery.md +27 -1
  5. package/data/guides/email-templates.md +49 -39
  6. package/data/guides/esigning-integration.md +11 -5
  7. package/data/guides/health-indicators.md +220 -0
  8. package/data/guides/index.md +2 -0
  9. package/data/guides/queue-infrastructure.md +329 -0
  10. package/data/guides/telemetry-and-observability.md +20 -0
  11. package/data/packages/platform-analytics/api/Class.AnalyticsClientPort.md +20 -0
  12. package/data/packages/platform-analytics/api/Class.AnalyticsHealthIndicator.md +78 -0
  13. package/data/packages/platform-analytics/api/Class.AppInsightsAnalyticsClient.md +24 -0
  14. package/data/packages/platform-analytics/api/Class.DatadogAnalyticsClient.md +24 -0
  15. package/data/packages/platform-analytics/api/Class.NoopAnalyticsClient.md +24 -0
  16. package/data/packages/platform-analytics/api/Class.SentryAnalyticsClient.md +24 -0
  17. package/data/packages/platform-analytics/api/index.md +1 -0
  18. package/data/packages/platform-analytics/index.md +25 -1
  19. package/data/packages/platform-authentication/api/Class.AuthenticationHealthIndicator.md +68 -0
  20. package/data/packages/platform-authentication/api/Interface.IMfaSubjectUpdate.md +1 -1
  21. package/data/packages/platform-authentication/api/index.md +2 -1
  22. package/data/packages/platform-authentication/index.md +25 -1
  23. package/data/packages/platform-blob-storage/api/Class.BlobHealthIndicator.md +7 -7
  24. package/data/packages/platform-blob-storage/api/Class.BlobModule.md +2 -2
  25. package/data/packages/platform-blob-storage/api/Interface.IAwsS3BlobProviderRegistration.md +3 -3
  26. package/data/packages/platform-blob-storage/api/Interface.IAzureBlobProviderRegistration.md +3 -3
  27. package/data/packages/platform-blob-storage/api/Interface.IBlobModuleOptions.md +5 -5
  28. package/data/packages/platform-blob-storage/api/Interface.ICustomBlobProviderRegistration.md +3 -3
  29. package/data/packages/platform-blob-storage/api/Interface.IVercelBlobProviderRegistration.md +3 -3
  30. package/data/packages/platform-blob-storage/api/TypeAlias.IBlobProviderRegistration.md +1 -1
  31. package/data/packages/platform-blob-storage/api/index.md +1 -1
  32. package/data/packages/platform-blob-storage/index.md +19 -14
  33. package/data/packages/platform-caching/api/Class.MemoryLayeredCache.md +10 -10
  34. package/data/packages/platform-caching/api/Class.NoopCacheMetricsRecorder.md +6 -6
  35. package/data/packages/platform-caching/api/Class.RedisLayeredCache.md +13 -13
  36. package/data/packages/platform-caching/api/Interface.ILayeredCache.md +9 -9
  37. package/data/packages/platform-caching/api/Interface.ILayeredCacheOptions.md +6 -6
  38. package/data/packages/platform-caching/api/Variable.CACHE_DEFAULT_TTL_MS.md +14 -0
  39. package/data/packages/platform-caching/api/Variable.CACHE_MAX_ENTRIES.md +14 -0
  40. package/data/packages/platform-caching/api/Variable.CACHE_STALE_WHILE_REVALIDATE.md +14 -0
  41. package/data/packages/platform-caching/api/Variable.PLATFORM_CACHING_CONFIG_ENTRIES.md +14 -0
  42. package/data/packages/platform-caching/api/Variable.REDIS_CONFIG_ENTRIES.md +14 -0
  43. package/data/packages/platform-caching/api/Variable.REDIS_KEY_PREFIX.md +14 -0
  44. package/data/packages/platform-caching/api/Variable.REDIS_TTL_SECONDS.md +14 -0
  45. package/data/packages/platform-caching/api/Variable.REDIS_URL.md +14 -0
  46. package/data/packages/platform-caching/api/index.md +13 -0
  47. package/data/packages/platform-caching/index.md +47 -1
  48. package/data/packages/platform-configuration/api/Function.createConfigKey.md +1 -1
  49. package/data/packages/platform-core/api/Class.HttpLoggerMiddleware.md +3 -3
  50. package/data/packages/platform-core/api/Function.maskSensitive.md +26 -0
  51. package/data/packages/platform-core/api/Function.maskSensitiveFields.md +26 -0
  52. package/data/packages/platform-core/api/index.md +2 -0
  53. package/data/packages/platform-core/index.md +11 -0
  54. package/data/packages/platform-database/api/Class.DatabaseHealthIndicator.md +8 -6
  55. package/data/packages/platform-database/api/Class.DatabaseModule.md +3 -3
  56. package/data/packages/platform-database/api/Class.RepositoryBase.md +20 -20
  57. package/data/packages/platform-database/api/Function.paginator.md +1 -1
  58. package/data/packages/platform-database/api/Interface.IDatabaseModuleConfig.md +3 -3
  59. package/data/packages/platform-database/api/TypeAlias.DelegateArgs.md +1 -1
  60. package/data/packages/platform-database/api/TypeAlias.DelegateReturnTypes.md +1 -1
  61. package/data/packages/platform-database/api/TypeAlias.PaginateFunction.md +1 -1
  62. package/data/packages/platform-database/api/Variable.DATABASE_MODULE_CONFIG.md +1 -1
  63. package/data/packages/platform-database/index.md +17 -5
  64. package/data/packages/platform-documents/api/Class.DocumentEngine.md +9 -5
  65. package/data/packages/platform-documents/index.md +1 -1
  66. package/data/packages/platform-esigning/api/Class.AdobeSignEsigningProvider.md +24 -0
  67. package/data/packages/platform-esigning/api/Class.DocuSignEsigningProvider.md +24 -0
  68. package/data/packages/platform-esigning/api/Class.DropboxSignEsigningProvider.md +24 -0
  69. package/data/packages/platform-esigning/api/Class.EsigningClientPort.md +20 -0
  70. package/data/packages/platform-esigning/api/Class.EsigningHealthIndicator.md +78 -0
  71. package/data/packages/platform-esigning/api/Class.InternalEsigningProvider.md +24 -0
  72. package/data/packages/platform-esigning/api/index.md +1 -0
  73. package/data/packages/platform-esigning/index.md +26 -2
  74. package/data/packages/platform-health/api/Class.HealthModule.md +42 -0
  75. package/data/packages/platform-health/api/Class.HealthOrchestrator.md +64 -0
  76. package/data/packages/platform-health/api/Interface.IHealthCheckResult.md +46 -0
  77. package/data/packages/platform-health/api/Interface.IHealthIndicator.md +41 -0
  78. package/data/packages/platform-health/api/Variable.HEALTH_INDICATORS_TOKEN.md +14 -0
  79. package/data/packages/platform-health/api/index.md +26 -0
  80. package/data/packages/platform-health/index.md +19 -8
  81. package/data/packages/platform-intelligence/api/Class.IntelligenceHealthIndicator.md +78 -0
  82. package/data/packages/platform-intelligence/api/index.md +1 -0
  83. package/data/packages/platform-intelligence/index.md +24 -1
  84. package/data/packages/platform-logging/api/Class.ContextLogger.md +152 -0
  85. package/data/packages/platform-logging/api/Class.LoggerModule.md +8 -2
  86. package/data/packages/platform-logging/api/Class.RequestContextStore.md +90 -0
  87. package/data/packages/platform-logging/api/Class.RequestIdMiddleware.md +68 -0
  88. package/data/packages/platform-logging/api/Interface.IRequestContext.md +34 -0
  89. package/data/packages/platform-logging/api/Variable.REQUEST_ID_HEADER.md +14 -0
  90. package/data/packages/platform-logging/api/index.md +11 -1
  91. package/data/packages/platform-logging/index.md +89 -7
  92. package/data/packages/platform-mailing/api/Class.MailHealthIndicator.md +5 -5
  93. package/data/packages/platform-mailing/api/Class.MailModule.md +28 -1
  94. package/data/packages/platform-mailing/api/Class.MailVerificationService.md +49 -16
  95. package/data/packages/platform-mailing/api/Class.SmtpConnectionVerifier.md +84 -0
  96. package/data/packages/platform-mailing/api/Interface.IMailModuleOptions.md +36 -0
  97. package/data/packages/platform-mailing/api/index.md +3 -1
  98. package/data/packages/platform-mailing/index.md +64 -8
  99. package/data/packages/platform-mapping/api/Class.MappingBuilder.md +110 -0
  100. package/data/packages/platform-mapping/api/Class.MappingError.md +56 -0
  101. package/data/packages/platform-mapping/api/Class.MappingModule.md +46 -0
  102. package/data/packages/platform-mapping/api/Class.MappingNotRegisteredError.md +52 -0
  103. package/data/packages/platform-mapping/api/Class.MappingProfileBase.md +52 -0
  104. package/data/packages/platform-mapping/api/Class.MappingService.md +284 -0
  105. package/data/packages/platform-mapping/api/Class.TypeMappingNotRegisteredError.md +53 -0
  106. package/data/packages/platform-mapping/api/Function.createMappingKey.md +39 -0
  107. package/data/packages/platform-mapping/api/Interface.IMappingBuilder.md +76 -0
  108. package/data/packages/platform-mapping/api/Interface.IMappingKey.md +58 -0
  109. package/data/packages/platform-mapping/api/Interface.IMappingProfile.md +32 -0
  110. package/data/packages/platform-mapping/api/TypeAlias.Constructor.md +28 -0
  111. package/data/packages/platform-mapping/api/index.md +38 -0
  112. package/data/packages/platform-mapping/index.md +1 -1
  113. package/data/packages/platform-mcp/api/Class.McpHealthIndicator.md +78 -0
  114. package/data/packages/platform-mcp/api/index.md +1 -0
  115. package/data/packages/platform-mcp/index.md +24 -1
  116. package/data/packages/platform-openapi/api/Function.SwaggerFeature.md +2 -2
  117. package/data/packages/platform-openapi/api/Function.getSwaggerFeatureMetadata.md +2 -2
  118. package/data/packages/platform-payments/api/Class.LemonSqueezyClient.md +24 -0
  119. package/data/packages/platform-payments/api/Class.MollieClient.md +24 -0
  120. package/data/packages/platform-payments/api/Class.PaddleClient.md +24 -0
  121. package/data/packages/platform-payments/api/Class.PaymentClientPort.md +20 -0
  122. package/data/packages/platform-payments/api/Class.PaymentHealthIndicator.md +78 -0
  123. package/data/packages/platform-payments/api/Class.StripeClient.md +28 -4
  124. package/data/packages/platform-payments/api/index.md +1 -0
  125. package/data/packages/platform-payments/index.md +26 -2
  126. package/data/packages/platform-queue/api/Class.AzureQueue.md +221 -0
  127. package/data/packages/platform-queue/api/Class.BullMqQueue.md +220 -0
  128. package/data/packages/platform-queue/api/Class.MemoryQueue.md +194 -0
  129. package/data/packages/platform-queue/api/Class.QueueError.md +51 -0
  130. package/data/packages/platform-queue/api/Class.QueueHealthIndicator.md +68 -0
  131. package/data/packages/platform-queue/api/Class.QueueJobNotFoundError.md +43 -0
  132. package/data/packages/platform-queue/api/Class.QueueJobStateError.md +48 -0
  133. package/data/packages/platform-queue/api/Class.QueueValidationError.md +43 -0
  134. package/data/packages/platform-queue/api/Interface.IAzureQueueOptions.md +48 -0
  135. package/data/packages/platform-queue/api/Interface.IBullMqQueueOptions.md +45 -0
  136. package/data/packages/platform-queue/api/Interface.IMemoryQueueOptions.md +32 -0
  137. package/data/packages/platform-queue/api/Interface.IQueue.md +173 -0
  138. package/data/packages/platform-queue/api/Interface.IQueueJob.md +139 -0
  139. package/data/packages/platform-queue/api/TypeAlias.QueueJobStatus.md +14 -0
  140. package/data/packages/platform-queue/api/Variable.AZURE_CONFIG_ENTRIES.md +17 -0
  141. package/data/packages/platform-queue/api/Variable.AZURE_CONNECTION_STRING.md +14 -0
  142. package/data/packages/platform-queue/api/Variable.AZURE_RECEIVE_WAIT_MS.md +21 -0
  143. package/data/packages/platform-queue/api/Variable.BULLMQ_CONFIG_ENTRIES.md +17 -0
  144. package/data/packages/platform-queue/api/Variable.BULLMQ_PREFIX.md +18 -0
  145. package/data/packages/platform-queue/api/Variable.BULLMQ_REDIS_URL.md +21 -0
  146. package/data/packages/platform-queue/api/Variable.PLATFORM_QUEUE_CONFIG_ENTRIES.md +17 -0
  147. package/data/packages/platform-queue/api/Variable.QUEUE_JOB_STATUS.md +30 -0
  148. package/data/packages/platform-queue/api/Variable.QUEUE_MAX_JOBS.md +21 -0
  149. package/data/packages/platform-queue/api/index.md +49 -0
  150. package/data/packages/platform-queue/index.md +168 -0
  151. package/data/packages/platform-resources/api/Class.BlobResourceStrategy.md +195 -0
  152. package/data/packages/platform-resources/api/Class.EmbeddedResourceStrategy.md +215 -0
  153. package/data/packages/platform-resources/api/Class.FileResourceStrategy.md +190 -0
  154. package/data/packages/platform-resources/api/Class.ResourceManager.md +477 -0
  155. package/data/packages/platform-resources/api/Class.ResourceModule.md +46 -0
  156. package/data/packages/platform-resources/api/Class.ResourceNotFoundError.md +60 -0
  157. package/data/packages/platform-resources/api/Interface.IBlobResourceStrategyConfig.md +28 -0
  158. package/data/packages/platform-resources/api/Interface.IBlobServiceAdapter.md +40 -0
  159. package/data/packages/platform-resources/api/Interface.IFileResourceStrategyConfig.md +72 -0
  160. package/data/packages/platform-resources/api/Interface.IResourceManagerConfig.md +89 -0
  161. package/data/packages/platform-resources/api/Interface.IResourceMetadata.md +94 -0
  162. package/data/packages/platform-resources/api/Interface.IResourceResult.md +34 -0
  163. package/data/packages/platform-resources/api/Interface.IResourceStrategy.md +134 -0
  164. package/data/packages/platform-resources/api/index.md +29 -0
  165. package/data/packages/platform-resources/index.md +1 -1
  166. package/data/packages/platform-telemetry/api/Class.OtelSdkHolder.md +21 -3
  167. package/data/packages/platform-telemetry/api/Class.TelemetryHealthIndicator.md +78 -0
  168. package/data/packages/platform-telemetry/api/index.md +1 -0
  169. package/data/packages/platform-telemetry/index.md +25 -1
  170. package/data/patterns/config-pattern.md +5 -3
  171. package/package.json +2 -2
  172. package/src/tools/registerGetConfigPatternTool.js +1 -1
  173. package/src/tools/registerGetDtoPatternTool.js +1 -1
  174. package/src/tools/registerGetErrorHandlingPatternTool.js +1 -1
  175. package/src/tools/registerGetGuardPatternTool.js +1 -1
  176. package/src/tools/registerGetMappingPatternTool.js +1 -1
  177. package/src/tools/registerGetModulePatternTool.js +1 -1
  178. package/src/tools/registerGetQueryPatternTool.js +1 -1
  179. package/src/tools/registerGetRepositoryPatternTool.js +1 -1
  180. package/src/tools/registerGetTestingPatternTool.js +1 -1
@@ -0,0 +1,53 @@
1
+ ---
2
+ title: 'Class: TypeMappingNotRegisteredError'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: TypeMappingNotRegisteredError
7
+
8
+ Defined in: [errors/TypeMappingNotRegisteredError.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/errors/TypeMappingNotRegisteredError.ts#L12)
9
+
10
+ Thrown when a type mapping is requested but not registered.
11
+
12
+ ## Extends
13
+
14
+ - [`MappingError`](Class.MappingError)
15
+
16
+ ## Constructors
17
+
18
+ ### Constructor
19
+
20
+ ```ts
21
+ new TypeMappingNotRegisteredError(source, destination): TypeMappingNotRegisteredError;
22
+ ```
23
+
24
+ Defined in: [errors/TypeMappingNotRegisteredError.ts:15](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/errors/TypeMappingNotRegisteredError.ts#L15)
25
+
26
+ #### Parameters
27
+
28
+ | Parameter | Type |
29
+ | ------ | ------ |
30
+ | `source` | `string` |
31
+ | `destination` | `string` |
32
+
33
+ #### Returns
34
+
35
+ `TypeMappingNotRegisteredError`
36
+
37
+ #### Overrides
38
+
39
+ [`MappingError`](Class.MappingError).[`constructor`](Class.MappingError#constructor)
40
+
41
+ ## Properties
42
+
43
+ ### code
44
+
45
+ ```ts
46
+ readonly code: string;
47
+ ```
48
+
49
+ Defined in: [errors/MappingError.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/errors/MappingError.ts#L10)
50
+
51
+ #### Inherited from
52
+
53
+ [`MappingError`](Class.MappingError).[`code`](Class.MappingError#code)
@@ -0,0 +1,39 @@
1
+ ---
2
+ title: 'Function: createMappingKey()'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Function: createMappingKey()
7
+
8
+ ```ts
9
+ function createMappingKey<TInput, TOutput>(key): IMappingKey<TInput, TOutput>;
10
+ ```
11
+
12
+ Defined in: [types/MappingKey.ts:28](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/types/MappingKey.ts#L28)
13
+
14
+ Creates a type-safe mapping key.
15
+
16
+ ## Type Parameters
17
+
18
+ | Type Parameter |
19
+ | ------ |
20
+ | `TInput` |
21
+ | `TOutput` |
22
+
23
+ ## Parameters
24
+
25
+ | Parameter | Type | Description |
26
+ | ------ | ------ | ------ |
27
+ | `key` | `string` | The unique string identifier for the mapping. |
28
+
29
+ ## Returns
30
+
31
+ [`IMappingKey`](Interface.IMappingKey)\<`TInput`, `TOutput`\>
32
+
33
+ A branded mapping key that encodes the input and output types.
34
+
35
+ ## Example
36
+
37
+ ```typescript
38
+ export const PRODUCT_MAPPING_KEY = createMappingKey<IProductMappingInput, ProductResponse>('food.product');
39
+ ```
@@ -0,0 +1,76 @@
1
+ ---
2
+ title: 'Interface: IMappingBuilder'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Interface: IMappingBuilder
7
+
8
+ Defined in: [builder/interfaces/IMappingBuilder.ts:24](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/builder/interfaces/IMappingBuilder.ts#L24)
9
+
10
+ Defines the interface for a mapping builder.
11
+
12
+ ## Methods
13
+
14
+ ### createKeyedMap()
15
+
16
+ ```ts
17
+ createKeyedMap<TInput, TOutput>(key, fn): this;
18
+ ```
19
+
20
+ Defined in: [builder/interfaces/IMappingBuilder.ts:50](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/builder/interfaces/IMappingBuilder.ts#L50)
21
+
22
+ Creates a keyed mapping between two types with full type safety.
23
+ The mapping key encodes both input and output types at compile time.
24
+
25
+ #### Type Parameters
26
+
27
+ | Type Parameter |
28
+ | ------ |
29
+ | `TInput` |
30
+ | `TOutput` |
31
+
32
+ #### Parameters
33
+
34
+ | Parameter | Type | Description |
35
+ | ------ | ------ | ------ |
36
+ | `key` | [`IMappingKey`](Interface.IMappingKey)\<`TInput`, `TOutput`\> | The type-safe mapping key. |
37
+ | `fn` | (`source`) => `MappingCompatible`\<`TInput`, `TOutput`\> & `TOutput` | The mapping function that must return a valid destination. |
38
+
39
+ #### Returns
40
+
41
+ `this`
42
+
43
+ ***
44
+
45
+ ### createMap()
46
+
47
+ ```ts
48
+ createMap<TSource, TDestination>(
49
+ source,
50
+ destination,
51
+ fn): this;
52
+ ```
53
+
54
+ Defined in: [builder/interfaces/IMappingBuilder.ts:36](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/builder/interfaces/IMappingBuilder.ts#L36)
55
+
56
+ Creates a mapping between two types.
57
+ Ensures compile-time type compatibility between source and destination.
58
+
59
+ #### Type Parameters
60
+
61
+ | Type Parameter |
62
+ | ------ |
63
+ | `TSource` |
64
+ | `TDestination` |
65
+
66
+ #### Parameters
67
+
68
+ | Parameter | Type | Description |
69
+ | ------ | ------ | ------ |
70
+ | `source` | [`Constructor`](TypeAlias.Constructor)\<`TSource`\> | The source type. |
71
+ | `destination` | [`Constructor`](TypeAlias.Constructor)\<`TDestination`\> | The destination type. |
72
+ | `fn` | (`source`) => `MappingCompatible`\<`TSource`, `TDestination`\> & `TDestination` | The mapping function that must return a valid destination. |
73
+
74
+ #### Returns
75
+
76
+ `this`
@@ -0,0 +1,58 @@
1
+ ---
2
+ title: 'Interface: IMappingKey\<TInput, TOutput\>'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Interface: IMappingKey\<TInput, TOutput\>
7
+
8
+ Defined in: [types/MappingKey.ts:9](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/types/MappingKey.ts#L9)
9
+
10
+ Type-safe mapping key that encodes both input and output types.
11
+ This ensures compile-time type safety when using the mapping service.
12
+
13
+ ## Type Parameters
14
+
15
+ | Type Parameter | Description |
16
+ | ------ | ------ |
17
+ | `TInput` | The input type for the mapping. |
18
+ | `TOutput` | The output type for the mapping. |
19
+
20
+ ## Properties
21
+
22
+ ### \_brand
23
+
24
+ ```ts
25
+ readonly _brand: "MappingKey";
26
+ ```
27
+
28
+ Defined in: [types/MappingKey.ts:10](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/types/MappingKey.ts#L10)
29
+
30
+ ***
31
+
32
+ ### \_input
33
+
34
+ ```ts
35
+ readonly _input: TInput;
36
+ ```
37
+
38
+ Defined in: [types/MappingKey.ts:11](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/types/MappingKey.ts#L11)
39
+
40
+ ***
41
+
42
+ ### \_output
43
+
44
+ ```ts
45
+ readonly _output: TOutput;
46
+ ```
47
+
48
+ Defined in: [types/MappingKey.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/types/MappingKey.ts#L12)
49
+
50
+ ***
51
+
52
+ ### key
53
+
54
+ ```ts
55
+ readonly key: string;
56
+ ```
57
+
58
+ Defined in: [types/MappingKey.ts:13](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/types/MappingKey.ts#L13)
@@ -0,0 +1,32 @@
1
+ ---
2
+ title: 'Interface: IMappingProfile'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Interface: IMappingProfile
7
+
8
+ Defined in: [profile/interfaces/IMappingProfile.ts:12](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/profile/interfaces/IMappingProfile.ts#L12)
9
+
10
+ Defines the interface for a mapping profile.
11
+
12
+ ## Methods
13
+
14
+ ### configure()
15
+
16
+ ```ts
17
+ configure(builder): void;
18
+ ```
19
+
20
+ Defined in: [profile/interfaces/IMappingProfile.ts:21](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/profile/interfaces/IMappingProfile.ts#L21)
21
+
22
+ Configures the mapping profile.
23
+
24
+ #### Parameters
25
+
26
+ | Parameter | Type | Description |
27
+ | ------ | ------ | ------ |
28
+ | `builder` | [`IMappingBuilder`](Interface.IMappingBuilder) | The mapping builder. |
29
+
30
+ #### Returns
31
+
32
+ `void`
@@ -0,0 +1,28 @@
1
+ ---
2
+ title: 'Type Alias: Constructor\<T\>'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Type Alias: Constructor\<T\>
7
+
8
+ ```ts
9
+ type Constructor<T> = (...args) => T;
10
+ ```
11
+
12
+ Defined in: [types/Constructor.ts:1](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-mapping/src/types/Constructor.ts#L1)
13
+
14
+ ## Type Parameters
15
+
16
+ | Type Parameter |
17
+ | ------ |
18
+ | `T` |
19
+
20
+ ## Parameters
21
+
22
+ | Parameter | Type |
23
+ | ------ | ------ |
24
+ | ...`args` | `unknown`[] |
25
+
26
+ ## Returns
27
+
28
+ `T`
@@ -0,0 +1,38 @@
1
+ ---
2
+ title: '@breadstone/archipel-platform-mapping'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # @breadstone/archipel-platform-mapping
7
+
8
+ ## Classes
9
+
10
+ | Class | Description |
11
+ | ------ | ------ |
12
+ | [MappingBuilder](Class.MappingBuilder) | A mapping builder that uses the mapping service to register maps. |
13
+ | [MappingError](Class.MappingError) | Base class for mapping related domain errors. |
14
+ | [MappingModule](Class.MappingModule) | Module that provides mapping services and allows registration of mapping profiles. |
15
+ | [MappingNotRegisteredError](Class.MappingNotRegisteredError) | Thrown when a keyed mapping is requested but not registered. |
16
+ | [MappingProfileBase](Class.MappingProfileBase) | Base class for mapping profiles to simplify implementation. |
17
+ | [MappingService](Class.MappingService) | Central mapping registry supporting keyed & type-based mappings. |
18
+ | [TypeMappingNotRegisteredError](Class.TypeMappingNotRegisteredError) | Thrown when a type mapping is requested but not registered. |
19
+
20
+ ## Interfaces
21
+
22
+ | Interface | Description |
23
+ | ------ | ------ |
24
+ | [IMappingBuilder](Interface.IMappingBuilder) | Defines the interface for a mapping builder. |
25
+ | [IMappingKey](Interface.IMappingKey) | Type-safe mapping key that encodes both input and output types. This ensures compile-time type safety when using the mapping service. |
26
+ | [IMappingProfile](Interface.IMappingProfile) | Defines the interface for a mapping profile. |
27
+
28
+ ## Type Aliases
29
+
30
+ | Type Alias | Description |
31
+ | ------ | ------ |
32
+ | [Constructor](TypeAlias.Constructor) | - |
33
+
34
+ ## Functions
35
+
36
+ | Function | Description |
37
+ | ------ | ------ |
38
+ | [createMappingKey](Function.createMappingKey) | Creates a type-safe mapping key. |
@@ -118,4 +118,4 @@ export class UserController {
118
118
 
119
119
  ## API Reference
120
120
 
121
- See the auto-generated [API Reference](./api/) for full details on all exported classes, interfaces, and types.
121
+ The auto-generated API reference is published when API docs are generated for this package.
@@ -0,0 +1,78 @@
1
+ ---
2
+ title: 'Class: McpHealthIndicator'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: McpHealthIndicator
7
+
8
+ Defined in: health/McpHealthIndicator.ts:17
9
+
10
+ Health indicator for the MCP server infrastructure.
11
+ Verifies that at least one tool, resource, or prompt handler is registered.
12
+
13
+ ## Implements
14
+
15
+ - `IHealthIndicator`
16
+
17
+ ## Constructors
18
+
19
+ ### Constructor
20
+
21
+ ```ts
22
+ new McpHealthIndicator(registry?): McpHealthIndicator;
23
+ ```
24
+
25
+ Defined in: health/McpHealthIndicator.ts:26
26
+
27
+ #### Parameters
28
+
29
+ | Parameter | Type |
30
+ | ------ | ------ |
31
+ | `registry?` | [`McpRegistryService`](Class.McpRegistryService) |
32
+
33
+ #### Returns
34
+
35
+ `McpHealthIndicator`
36
+
37
+ ## Properties
38
+
39
+ ### key
40
+
41
+ ```ts
42
+ readonly key: string = 'mcp';
43
+ ```
44
+
45
+ Defined in: health/McpHealthIndicator.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/McpHealthIndicator.ts:47
64
+
65
+ Verifies that the MCP registry has at least one registered handler.
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
+ ```
@@ -10,6 +10,7 @@ editUrl: false
10
10
  | Class | Description |
11
11
  | ------ | ------ |
12
12
  | [McpDiscoveryService](Class.McpDiscoveryService) | Discovers all NestJS providers that have methods decorated with `@McpTool`, `@McpResource`, or `@McpPrompt` and registers them in the [McpRegistryService](Class.McpRegistryService). |
13
+ | [McpHealthIndicator](Class.McpHealthIndicator) | Health indicator for the MCP server infrastructure. Verifies that at least one tool, resource, or prompt handler is registered. |
13
14
  | [McpModule](Class.McpModule) | NestJS dynamic module that bootstraps an MCP server. |
14
15
  | [McpRegistryService](Class.McpRegistryService) | Central registry that stores all MCP tool, resource, and prompt handlers discovered from NestJS providers. |
15
16
  | [McpServerService](Class.McpServerService) | Manages the MCP server lifecycle. Creates the `McpServer` instance, registers all discovered handlers from the registry, and provides methods to connect various transports. |
@@ -2,7 +2,7 @@
2
2
  title: platform-mcp
3
3
  description: Reusable NestJS module for building Model Context Protocol (MCP) servers with decorator-driven handler registration and multi-transport support.
4
4
  order: 13
5
- tags: [mcp, model-context-protocol, tools, resources, prompts, transports]
5
+ tags: [mcp, model-context-protocol, tools, resources, prompts, transports, health]
6
6
  package: '@breadstone/archipel-platform-mcp'
7
7
  ---
8
8
 
@@ -300,6 +300,29 @@ graph TD
300
300
 
301
301
  ---
302
302
 
303
+ ## Health Check
304
+
305
+ The `McpHealthIndicator` verifies that the `McpRegistryService` is injected. If no MCP registry is available, it reports `disabled: true`. Import it from the `/health` subpath:
306
+
307
+ ```typescript
308
+ import { McpHealthIndicator } from '@breadstone/archipel-platform-mcp/health';
309
+ import { HealthModule } from '@breadstone/archipel-platform-health';
310
+
311
+ @Module({
312
+ imports: [
313
+ McpModule.register({ /* ... */ }),
314
+ HealthModule.withIndicators([McpHealthIndicator]),
315
+ ],
316
+ })
317
+ export class AppModule {}
318
+ ```
319
+
320
+ | Key | Check | Dependencies |
321
+ | --- | ----- | ------------ |
322
+ | `mcp` | `up` if `McpRegistryService` injected, else `disabled` | `@Optional() McpRegistryService` |
323
+
324
+ ---
325
+
303
326
  ## Resource Limits & Shutdown
304
327
 
305
328
  | Limit | Value | Description |
@@ -6,7 +6,7 @@ editUrl: false
6
6
  # Function: SwaggerFeature()
7
7
 
8
8
  ```ts
9
- function SwaggerFeature(metadata): (target) => any;
9
+ function SwaggerFeature(metadata): (target) => (...args) => object;
10
10
  ```
11
11
 
12
12
  Defined in: [decorators/SwaggerFeature.ts:92](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-openapi/src/decorators/SwaggerFeature.ts#L92)
@@ -22,7 +22,7 @@ This allows the SwaggerMultiDocumentService to automatically discover and create
22
22
 
23
23
  ## Returns
24
24
 
25
- (`target`) => `any`
25
+ (`target`) => (...`args`) => `object`
26
26
 
27
27
  ## Example
28
28
 
@@ -11,7 +11,7 @@ function getSwaggerFeatureMetadata(target):
11
11
  | undefined;
12
12
  ```
13
13
 
14
- Defined in: [decorators/SwaggerFeature.ts:113](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-openapi/src/decorators/SwaggerFeature.ts#L113)
14
+ Defined in: [decorators/SwaggerFeature.ts:111](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-openapi/src/decorators/SwaggerFeature.ts#L111)
15
15
 
16
16
  Get the Swagger feature metadata from a module class
17
17
 
@@ -19,7 +19,7 @@ Get the Swagger feature metadata from a module class
19
19
 
20
20
  | Parameter | Type |
21
21
  | ------ | ------ |
22
- | `target` | `any` |
22
+ | `target` | (...`args`) => `object` |
23
23
 
24
24
  ## Returns
25
25
 
@@ -161,3 +161,27 @@ Normalized subscription or `null` if not found.
161
161
  #### Overrides
162
162
 
163
163
  [`PaymentClientPort`](Class.PaymentClientPort).[`fetchSubscription`](Class.PaymentClientPort#fetchsubscription)
164
+
165
+ ***
166
+
167
+ ### ping()
168
+
169
+ ```ts
170
+ ping(): Promise<boolean>;
171
+ ```
172
+
173
+ Defined in: [contracts/PaymentClientPort.ts:76](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/contracts/PaymentClientPort.ts#L76)
174
+
175
+ Lightweight connectivity check for the payment provider.
176
+ Override in adapters to perform a real API call (e.g. list products).
177
+ Defaults to `true` if not overridden.
178
+
179
+ #### Returns
180
+
181
+ `Promise`\<`boolean`\>
182
+
183
+ `true` if the provider is reachable.
184
+
185
+ #### Inherited from
186
+
187
+ [`PaymentClientPort`](Class.PaymentClientPort).[`ping`](Class.PaymentClientPort#ping)
@@ -164,3 +164,27 @@ Normalized subscription or `null` if not found.
164
164
  #### Overrides
165
165
 
166
166
  [`PaymentClientPort`](Class.PaymentClientPort).[`fetchSubscription`](Class.PaymentClientPort#fetchsubscription)
167
+
168
+ ***
169
+
170
+ ### ping()
171
+
172
+ ```ts
173
+ ping(): Promise<boolean>;
174
+ ```
175
+
176
+ Defined in: [contracts/PaymentClientPort.ts:76](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/contracts/PaymentClientPort.ts#L76)
177
+
178
+ Lightweight connectivity check for the payment provider.
179
+ Override in adapters to perform a real API call (e.g. list products).
180
+ Defaults to `true` if not overridden.
181
+
182
+ #### Returns
183
+
184
+ `Promise`\<`boolean`\>
185
+
186
+ `true` if the provider is reachable.
187
+
188
+ #### Inherited from
189
+
190
+ [`PaymentClientPort`](Class.PaymentClientPort).[`ping`](Class.PaymentClientPort#ping)
@@ -161,3 +161,27 @@ Normalized subscription or `null` if not found.
161
161
  #### Overrides
162
162
 
163
163
  [`PaymentClientPort`](Class.PaymentClientPort).[`fetchSubscription`](Class.PaymentClientPort#fetchsubscription)
164
+
165
+ ***
166
+
167
+ ### ping()
168
+
169
+ ```ts
170
+ ping(): Promise<boolean>;
171
+ ```
172
+
173
+ Defined in: [contracts/PaymentClientPort.ts:76](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/contracts/PaymentClientPort.ts#L76)
174
+
175
+ Lightweight connectivity check for the payment provider.
176
+ Override in adapters to perform a real API call (e.g. list products).
177
+ Defaults to `true` if not overridden.
178
+
179
+ #### Returns
180
+
181
+ `Promise`\<`boolean`\>
182
+
183
+ `true` if the provider is reachable.
184
+
185
+ #### Inherited from
186
+
187
+ [`PaymentClientPort`](Class.PaymentClientPort).[`ping`](Class.PaymentClientPort#ping)
@@ -140,3 +140,23 @@ Retrieve subscription details.
140
140
  \| `null`\>
141
141
 
142
142
  Normalized subscription or `null` if not found.
143
+
144
+ ***
145
+
146
+ ### ping()
147
+
148
+ ```ts
149
+ ping(): Promise<boolean>;
150
+ ```
151
+
152
+ Defined in: [contracts/PaymentClientPort.ts:76](https://github.com/RueDeRennes/archipel/blob/main/libs/platform-payments/src/contracts/PaymentClientPort.ts#L76)
153
+
154
+ Lightweight connectivity check for the payment provider.
155
+ Override in adapters to perform a real API call (e.g. list products).
156
+ Defaults to `true` if not overridden.
157
+
158
+ #### Returns
159
+
160
+ `Promise`\<`boolean`\>
161
+
162
+ `true` if the provider is reachable.
@@ -0,0 +1,78 @@
1
+ ---
2
+ title: 'Class: PaymentHealthIndicator'
3
+ generated: true
4
+ editUrl: false
5
+ ---
6
+ # Class: PaymentHealthIndicator
7
+
8
+ Defined in: health/PaymentHealthIndicator.ts:17
9
+
10
+ Health indicator for the payment infrastructure.
11
+ Calls [PaymentClientPort.ping](Class.PaymentClientPort#ping) to verify provider connectivity.
12
+
13
+ ## Implements
14
+
15
+ - `IHealthIndicator`
16
+
17
+ ## Constructors
18
+
19
+ ### Constructor
20
+
21
+ ```ts
22
+ new PaymentHealthIndicator(paymentClient?): PaymentHealthIndicator;
23
+ ```
24
+
25
+ Defined in: health/PaymentHealthIndicator.ts:27
26
+
27
+ #### Parameters
28
+
29
+ | Parameter | Type |
30
+ | ------ | ------ |
31
+ | `paymentClient?` | [`PaymentClientPort`](Class.PaymentClientPort) |
32
+
33
+ #### Returns
34
+
35
+ `PaymentHealthIndicator`
36
+
37
+ ## Properties
38
+
39
+ ### key
40
+
41
+ ```ts
42
+ readonly key: string = 'payment';
43
+ ```
44
+
45
+ Defined in: health/PaymentHealthIndicator.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/PaymentHealthIndicator.ts:48
64
+
65
+ Pings the payment 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
+ ```