@decaf-ts/integrations 0.1.3 → 0.2.0

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 (172) hide show
  1. package/dist/integrations.cjs +1 -1
  2. package/docker/azure-blob-compose.yml +21 -0
  3. package/docker/gcs-blob-compose.yml +21 -0
  4. package/docker/ipfs-compose.yml +25 -0
  5. package/docker/minio-compose.yml +25 -0
  6. package/lib/cjs/blob/azure/AzureBlobStoreService.cjs +293 -0
  7. package/lib/cjs/blob/azure/AzureBlobStoreService.cjs.map +1 -0
  8. package/lib/cjs/blob/azure/index.cjs +24 -0
  9. package/lib/cjs/blob/azure/index.cjs.map +1 -0
  10. package/lib/cjs/blob/core/BlobErrors.cjs +74 -0
  11. package/lib/cjs/blob/core/BlobErrors.cjs.map +1 -0
  12. package/lib/cjs/blob/core/BlobKey.cjs +37 -0
  13. package/lib/cjs/blob/core/BlobKey.cjs.map +1 -0
  14. package/lib/cjs/blob/core/BlobStoreFactory.cjs +57 -0
  15. package/lib/cjs/blob/core/BlobStoreFactory.cjs.map +1 -0
  16. package/lib/cjs/blob/core/BlobStoreService.cjs +42 -0
  17. package/lib/cjs/blob/core/BlobStoreService.cjs.map +1 -0
  18. package/lib/cjs/blob/core/BlobTypes.cjs +4 -0
  19. package/lib/cjs/blob/core/BlobTypes.cjs.map +1 -0
  20. package/lib/cjs/blob/core/BlobValue.cjs +72 -0
  21. package/lib/cjs/blob/core/BlobValue.cjs.map +1 -0
  22. package/lib/cjs/blob/core/index.cjs +29 -0
  23. package/lib/cjs/blob/core/index.cjs.map +1 -0
  24. package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs +272 -0
  25. package/lib/cjs/blob/gcp/GcsBlobStoreService.cjs.map +1 -0
  26. package/lib/cjs/blob/gcp/index.cjs +24 -0
  27. package/lib/cjs/blob/gcp/index.cjs.map +1 -0
  28. package/lib/cjs/blob/index.cjs +25 -0
  29. package/lib/cjs/blob/index.cjs.map +1 -0
  30. package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs +182 -0
  31. package/lib/cjs/blob/ipfs/IpfsBlobStoreService.cjs.map +1 -0
  32. package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs +27 -0
  33. package/lib/cjs/blob/ipfs/IpfsKeyIndex.cjs.map +1 -0
  34. package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs +35 -0
  35. package/lib/cjs/blob/ipfs/LocalJsonIpfsKeyIndex.cjs.map +1 -0
  36. package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs +45 -0
  37. package/lib/cjs/blob/ipfs/MemoryIpfsKeyIndex.cjs.map +1 -0
  38. package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs +35 -0
  39. package/lib/cjs/blob/ipfs/PostgresIpfsKeyIndex.cjs.map +1 -0
  40. package/lib/cjs/blob/ipfs/index.cjs +28 -0
  41. package/lib/cjs/blob/ipfs/index.cjs.map +1 -0
  42. package/lib/cjs/blob/local/LocalBlobStoreService.cjs +288 -0
  43. package/lib/cjs/blob/local/LocalBlobStoreService.cjs.map +1 -0
  44. package/lib/cjs/blob/local/index.cjs +24 -0
  45. package/lib/cjs/blob/local/index.cjs.map +1 -0
  46. package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs +146 -0
  47. package/lib/cjs/blob/memory/MemoryBlobStoreService.cjs.map +1 -0
  48. package/lib/cjs/blob/memory/index.cjs +24 -0
  49. package/lib/cjs/blob/memory/index.cjs.map +1 -0
  50. package/lib/cjs/blob/s3/MinioBlobStoreService.cjs +14 -0
  51. package/lib/cjs/blob/s3/MinioBlobStoreService.cjs.map +1 -0
  52. package/lib/cjs/blob/s3/R2BlobStoreService.cjs +14 -0
  53. package/lib/cjs/blob/s3/R2BlobStoreService.cjs.map +1 -0
  54. package/lib/cjs/blob/s3/S3BlobStoreService.cjs +322 -0
  55. package/lib/cjs/blob/s3/S3BlobStoreService.cjs.map +1 -0
  56. package/lib/cjs/blob/s3/index.cjs +26 -0
  57. package/lib/cjs/blob/s3/index.cjs.map +1 -0
  58. package/lib/cjs/docker/DockerComposeService.cjs +2 -2
  59. package/lib/cjs/docker/DockerComposeService.cjs.map +1 -1
  60. package/lib/cjs/index.cjs +3 -3
  61. package/lib/esm/blob/azure/AzureBlobStoreService.js +288 -0
  62. package/lib/esm/blob/azure/AzureBlobStoreService.js.map +1 -0
  63. package/lib/esm/blob/azure/index.js +7 -0
  64. package/lib/esm/blob/azure/index.js.map +1 -0
  65. package/lib/esm/blob/core/BlobErrors.js +61 -0
  66. package/lib/esm/blob/core/BlobErrors.js.map +1 -0
  67. package/lib/esm/blob/core/BlobKey.js +32 -0
  68. package/lib/esm/blob/core/BlobKey.js.map +1 -0
  69. package/lib/esm/blob/core/BlobStoreFactory.js +52 -0
  70. package/lib/esm/blob/core/BlobStoreFactory.js.map +1 -0
  71. package/lib/esm/blob/core/BlobStoreService.js +37 -0
  72. package/lib/esm/blob/core/BlobStoreService.js.map +1 -0
  73. package/lib/esm/blob/core/BlobTypes.js +2 -0
  74. package/lib/esm/blob/core/BlobTypes.js.map +1 -0
  75. package/lib/esm/blob/core/BlobValue.js +66 -0
  76. package/lib/esm/blob/core/BlobValue.js.map +1 -0
  77. package/lib/esm/blob/core/index.js +12 -0
  78. package/lib/esm/blob/core/index.js.map +1 -0
  79. package/lib/esm/blob/gcp/GcsBlobStoreService.js +267 -0
  80. package/lib/esm/blob/gcp/GcsBlobStoreService.js.map +1 -0
  81. package/lib/esm/blob/gcp/index.js +7 -0
  82. package/lib/esm/blob/gcp/index.js.map +1 -0
  83. package/lib/esm/blob/index.js +8 -0
  84. package/lib/esm/blob/index.js.map +1 -0
  85. package/lib/esm/blob/ipfs/IpfsBlobStoreService.js +177 -0
  86. package/lib/esm/blob/ipfs/IpfsBlobStoreService.js.map +1 -0
  87. package/lib/esm/blob/ipfs/IpfsKeyIndex.js +23 -0
  88. package/lib/esm/blob/ipfs/IpfsKeyIndex.js.map +1 -0
  89. package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js +30 -0
  90. package/lib/esm/blob/ipfs/LocalJsonIpfsKeyIndex.js.map +1 -0
  91. package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js +40 -0
  92. package/lib/esm/blob/ipfs/MemoryIpfsKeyIndex.js.map +1 -0
  93. package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js +30 -0
  94. package/lib/esm/blob/ipfs/PostgresIpfsKeyIndex.js.map +1 -0
  95. package/lib/esm/blob/ipfs/index.js +11 -0
  96. package/lib/esm/blob/ipfs/index.js.map +1 -0
  97. package/lib/esm/blob/local/LocalBlobStoreService.js +283 -0
  98. package/lib/esm/blob/local/LocalBlobStoreService.js.map +1 -0
  99. package/lib/esm/blob/local/index.js +7 -0
  100. package/lib/esm/blob/local/index.js.map +1 -0
  101. package/lib/esm/blob/memory/MemoryBlobStoreService.js +141 -0
  102. package/lib/esm/blob/memory/MemoryBlobStoreService.js.map +1 -0
  103. package/lib/esm/blob/memory/index.js +7 -0
  104. package/lib/esm/blob/memory/index.js.map +1 -0
  105. package/lib/esm/blob/s3/MinioBlobStoreService.js +9 -0
  106. package/lib/esm/blob/s3/MinioBlobStoreService.js.map +1 -0
  107. package/lib/esm/blob/s3/R2BlobStoreService.js +9 -0
  108. package/lib/esm/blob/s3/R2BlobStoreService.js.map +1 -0
  109. package/lib/esm/blob/s3/S3BlobStoreService.js +317 -0
  110. package/lib/esm/blob/s3/S3BlobStoreService.js.map +1 -0
  111. package/lib/esm/blob/s3/index.js +9 -0
  112. package/lib/esm/blob/s3/index.js.map +1 -0
  113. package/lib/esm/docker/DockerComposeService.js +2 -2
  114. package/lib/esm/docker/DockerComposeService.js.map +1 -1
  115. package/lib/esm/index.js +3 -3
  116. package/lib/types/blob/azure/AzureBlobStoreService.d.cts +25 -0
  117. package/lib/types/blob/azure/AzureBlobStoreService.d.mts +25 -0
  118. package/lib/types/blob/azure/index.d.cts +6 -0
  119. package/lib/types/blob/azure/index.d.mts +6 -0
  120. package/lib/types/blob/core/BlobErrors.d.cts +14 -0
  121. package/lib/types/blob/core/BlobErrors.d.mts +14 -0
  122. package/lib/types/blob/core/BlobKey.d.cts +9 -0
  123. package/lib/types/blob/core/BlobKey.d.mts +9 -0
  124. package/lib/types/blob/core/BlobStoreFactory.d.cts +5 -0
  125. package/lib/types/blob/core/BlobStoreFactory.d.mts +5 -0
  126. package/lib/types/blob/core/BlobStoreService.d.cts +28 -0
  127. package/lib/types/blob/core/BlobStoreService.d.mts +28 -0
  128. package/lib/types/blob/core/BlobTypes.d.cts +122 -0
  129. package/lib/types/blob/core/BlobTypes.d.mts +122 -0
  130. package/lib/types/blob/core/BlobValue.d.cts +13 -0
  131. package/lib/types/blob/core/BlobValue.d.mts +13 -0
  132. package/lib/types/blob/core/index.d.cts +11 -0
  133. package/lib/types/blob/core/index.d.mts +11 -0
  134. package/lib/types/blob/gcp/GcsBlobStoreService.d.cts +25 -0
  135. package/lib/types/blob/gcp/GcsBlobStoreService.d.mts +25 -0
  136. package/lib/types/blob/gcp/index.d.cts +6 -0
  137. package/lib/types/blob/gcp/index.d.mts +6 -0
  138. package/lib/types/blob/index.d.cts +7 -0
  139. package/lib/types/blob/index.d.mts +7 -0
  140. package/lib/types/blob/ipfs/IpfsBlobStoreService.d.cts +26 -0
  141. package/lib/types/blob/ipfs/IpfsBlobStoreService.d.mts +26 -0
  142. package/lib/types/blob/ipfs/IpfsKeyIndex.d.cts +9 -0
  143. package/lib/types/blob/ipfs/IpfsKeyIndex.d.mts +9 -0
  144. package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.cts +11 -0
  145. package/lib/types/blob/ipfs/LocalJsonIpfsKeyIndex.d.mts +11 -0
  146. package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.cts +15 -0
  147. package/lib/types/blob/ipfs/MemoryIpfsKeyIndex.d.mts +15 -0
  148. package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.cts +11 -0
  149. package/lib/types/blob/ipfs/PostgresIpfsKeyIndex.d.mts +11 -0
  150. package/lib/types/blob/ipfs/index.d.cts +10 -0
  151. package/lib/types/blob/ipfs/index.d.mts +10 -0
  152. package/lib/types/blob/local/LocalBlobStoreService.d.cts +30 -0
  153. package/lib/types/blob/local/LocalBlobStoreService.d.mts +30 -0
  154. package/lib/types/blob/local/index.d.cts +6 -0
  155. package/lib/types/blob/local/index.d.mts +6 -0
  156. package/lib/types/blob/memory/MemoryBlobStoreService.d.cts +28 -0
  157. package/lib/types/blob/memory/MemoryBlobStoreService.d.mts +28 -0
  158. package/lib/types/blob/memory/index.d.cts +6 -0
  159. package/lib/types/blob/memory/index.d.mts +6 -0
  160. package/lib/types/blob/s3/MinioBlobStoreService.d.cts +8 -0
  161. package/lib/types/blob/s3/MinioBlobStoreService.d.mts +8 -0
  162. package/lib/types/blob/s3/R2BlobStoreService.d.cts +8 -0
  163. package/lib/types/blob/s3/R2BlobStoreService.d.mts +8 -0
  164. package/lib/types/blob/s3/S3BlobStoreService.d.cts +25 -0
  165. package/lib/types/blob/s3/S3BlobStoreService.d.mts +25 -0
  166. package/lib/types/blob/s3/index.d.cts +8 -0
  167. package/lib/types/blob/s3/index.d.mts +8 -0
  168. package/lib/types/docker/DockerComposeService.d.cts +6 -0
  169. package/lib/types/docker/DockerComposeService.d.mts +6 -0
  170. package/lib/types/index.d.cts +2 -2
  171. package/lib/types/index.d.mts +2 -2
  172. package/package.json +88 -6
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @module integrations/blob/memory/service
3
+ * @summary In-memory blob store service.
4
+ * @description Process-local Map-backed blob store for tests and examples. No SDK dependency.
5
+ */
6
+ import { type ContextualArgs, type MaybeContextualArg } from "@decaf-ts/core";
7
+ import { BlobStoreService } from "../core/BlobStoreService.d.cts";
8
+ import type { BlobGetOptions, BlobGetResult, BlobKey, BlobListOptions, BlobListResult, BlobMetadata, BlobPutOptions, BlobPutResult, BlobStoreServiceConfig, BlobUrlOptions, BlobUrlResult, BlobValue } from "../core/BlobTypes.d.cts";
9
+ interface MemoryEntry {
10
+ value: Buffer;
11
+ metadata: BlobMetadata;
12
+ }
13
+ export declare class MemoryBlobStoreService extends BlobStoreService<Map<string, MemoryEntry>, BlobStoreServiceConfig> {
14
+ initialize(...args: ContextualArgs<any>): Promise<{
15
+ config: BlobStoreServiceConfig;
16
+ client: Map<string, MemoryEntry>;
17
+ }>;
18
+ put(key: BlobKey, value: BlobValue, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
19
+ get(key: BlobKey, options?: BlobGetOptions, ...args: MaybeContextualArg<any>): Promise<BlobGetResult>;
20
+ has(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<boolean>;
21
+ stat(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<BlobMetadata>;
22
+ delete(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<void>;
23
+ copy(fromKey: BlobKey, toKey: BlobKey, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
24
+ list(options?: BlobListOptions, ...args: MaybeContextualArg<any>): Promise<BlobListResult>;
25
+ url(key: BlobKey, options?: BlobUrlOptions, ...args: MaybeContextualArg<any>): Promise<BlobUrlResult>;
26
+ protected parseError(error: unknown): Error;
27
+ }
28
+ export {};
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @module integrations/blob/memory/service
3
+ * @summary In-memory blob store service.
4
+ * @description Process-local Map-backed blob store for tests and examples. No SDK dependency.
5
+ */
6
+ import { type ContextualArgs, type MaybeContextualArg } from "@decaf-ts/core";
7
+ import { BlobStoreService } from "../core/BlobStoreService.d.mts";
8
+ import type { BlobGetOptions, BlobGetResult, BlobKey, BlobListOptions, BlobListResult, BlobMetadata, BlobPutOptions, BlobPutResult, BlobStoreServiceConfig, BlobUrlOptions, BlobUrlResult, BlobValue } from "../core/BlobTypes.d.mts";
9
+ interface MemoryEntry {
10
+ value: Buffer;
11
+ metadata: BlobMetadata;
12
+ }
13
+ export declare class MemoryBlobStoreService extends BlobStoreService<Map<string, MemoryEntry>, BlobStoreServiceConfig> {
14
+ initialize(...args: ContextualArgs<any>): Promise<{
15
+ config: BlobStoreServiceConfig;
16
+ client: Map<string, MemoryEntry>;
17
+ }>;
18
+ put(key: BlobKey, value: BlobValue, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
19
+ get(key: BlobKey, options?: BlobGetOptions, ...args: MaybeContextualArg<any>): Promise<BlobGetResult>;
20
+ has(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<boolean>;
21
+ stat(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<BlobMetadata>;
22
+ delete(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<void>;
23
+ copy(fromKey: BlobKey, toKey: BlobKey, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
24
+ list(options?: BlobListOptions, ...args: MaybeContextualArg<any>): Promise<BlobListResult>;
25
+ url(key: BlobKey, options?: BlobUrlOptions, ...args: MaybeContextualArg<any>): Promise<BlobUrlResult>;
26
+ protected parseError(error: unknown): Error;
27
+ }
28
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module integrations/blob/memory
3
+ * @summary In-memory blob store exports.
4
+ * @description Re-exports the in-memory blob store service.
5
+ */
6
+ export * from "./MemoryBlobStoreService.d.cts";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @module integrations/blob/memory
3
+ * @summary In-memory blob store exports.
4
+ * @description Re-exports the in-memory blob store service.
5
+ */
6
+ export * from "./MemoryBlobStoreService.d.mts";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module integrations/blob/s3/minio
3
+ * @summary MinIO blob store service.
4
+ * @description S3-compatible blob store for MinIO. Extends S3BlobStoreService.
5
+ */
6
+ import { S3BlobStoreService } from "./S3BlobStoreService.d.cts";
7
+ export declare class MinioBlobStoreService extends S3BlobStoreService {
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module integrations/blob/s3/minio
3
+ * @summary MinIO blob store service.
4
+ * @description S3-compatible blob store for MinIO. Extends S3BlobStoreService.
5
+ */
6
+ import { S3BlobStoreService } from "./S3BlobStoreService.d.mts";
7
+ export declare class MinioBlobStoreService extends S3BlobStoreService {
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module integrations/blob/s3/r2
3
+ * @summary Cloudflare R2 blob store service.
4
+ * @description S3-compatible blob store for Cloudflare R2. Extends S3BlobStoreService.
5
+ */
6
+ import { S3BlobStoreService } from "./S3BlobStoreService.d.cts";
7
+ export declare class R2BlobStoreService extends S3BlobStoreService {
8
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module integrations/blob/s3/r2
3
+ * @summary Cloudflare R2 blob store service.
4
+ * @description S3-compatible blob store for Cloudflare R2. Extends S3BlobStoreService.
5
+ */
6
+ import { S3BlobStoreService } from "./S3BlobStoreService.d.mts";
7
+ export declare class R2BlobStoreService extends S3BlobStoreService {
8
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @module integrations/blob/s3/service
3
+ * @summary S3-compatible blob store service.
4
+ * @description Blob store backed by AWS S3, MinIO, and Cloudflare R2 via the AWS SDK v3 S3Client.
5
+ */
6
+ import { S3Client } from "@aws-sdk/client-s3";
7
+ import { type ContextualArgs, type MaybeContextualArg } from "@decaf-ts/core";
8
+ import { BlobStoreService } from "../core/BlobStoreService.d.cts";
9
+ import type { BlobGetOptions, BlobGetResult, BlobKey, BlobListOptions, BlobListResult, BlobMetadata, BlobPutOptions, BlobPutResult, BlobUrlOptions, BlobUrlResult, BlobValue, S3BlobStoreServiceConfig } from "../core/BlobTypes.d.cts";
10
+ export declare class S3BlobStoreService extends BlobStoreService<S3Client, S3BlobStoreServiceConfig> {
11
+ initialize(...args: ContextualArgs<any>): Promise<{
12
+ config: S3BlobStoreServiceConfig;
13
+ client: S3Client;
14
+ }>;
15
+ put(key: BlobKey, value: BlobValue, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
16
+ get(key: BlobKey, options?: BlobGetOptions, ...args: MaybeContextualArg<any>): Promise<BlobGetResult>;
17
+ has(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<boolean>;
18
+ stat(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<BlobMetadata>;
19
+ delete(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<void>;
20
+ copy(fromKey: BlobKey, toKey: BlobKey, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
21
+ list(options?: BlobListOptions, ...args: MaybeContextualArg<any>): Promise<BlobListResult>;
22
+ url(key: BlobKey, options?: BlobUrlOptions, ...args: MaybeContextualArg<any>): Promise<BlobUrlResult>;
23
+ protected parseError(error: unknown): Error;
24
+ private ensureBucket;
25
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @module integrations/blob/s3/service
3
+ * @summary S3-compatible blob store service.
4
+ * @description Blob store backed by AWS S3, MinIO, and Cloudflare R2 via the AWS SDK v3 S3Client.
5
+ */
6
+ import { S3Client } from "@aws-sdk/client-s3";
7
+ import { type ContextualArgs, type MaybeContextualArg } from "@decaf-ts/core";
8
+ import { BlobStoreService } from "../core/BlobStoreService.d.mts";
9
+ import type { BlobGetOptions, BlobGetResult, BlobKey, BlobListOptions, BlobListResult, BlobMetadata, BlobPutOptions, BlobPutResult, BlobUrlOptions, BlobUrlResult, BlobValue, S3BlobStoreServiceConfig } from "../core/BlobTypes.d.mts";
10
+ export declare class S3BlobStoreService extends BlobStoreService<S3Client, S3BlobStoreServiceConfig> {
11
+ initialize(...args: ContextualArgs<any>): Promise<{
12
+ config: S3BlobStoreServiceConfig;
13
+ client: S3Client;
14
+ }>;
15
+ put(key: BlobKey, value: BlobValue, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
16
+ get(key: BlobKey, options?: BlobGetOptions, ...args: MaybeContextualArg<any>): Promise<BlobGetResult>;
17
+ has(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<boolean>;
18
+ stat(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<BlobMetadata>;
19
+ delete(key: BlobKey, ...args: MaybeContextualArg<any>): Promise<void>;
20
+ copy(fromKey: BlobKey, toKey: BlobKey, options?: BlobPutOptions, ...args: MaybeContextualArg<any>): Promise<BlobPutResult>;
21
+ list(options?: BlobListOptions, ...args: MaybeContextualArg<any>): Promise<BlobListResult>;
22
+ url(key: BlobKey, options?: BlobUrlOptions, ...args: MaybeContextualArg<any>): Promise<BlobUrlResult>;
23
+ protected parseError(error: unknown): Error;
24
+ private ensureBucket;
25
+ }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module integrations/blob/s3
3
+ * @summary S3-compatible blob store exports.
4
+ * @description Re-exports the S3, MinIO, and R2 blob store services.
5
+ */
6
+ export * from "./S3BlobStoreService.d.cts";
7
+ export * from "./MinioBlobStoreService.d.cts";
8
+ export * from "./R2BlobStoreService.d.cts";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module integrations/blob/s3
3
+ * @summary S3-compatible blob store exports.
4
+ * @description Re-exports the S3, MinIO, and R2 blob store services.
5
+ */
6
+ export * from "./S3BlobStoreService.d.mts";
7
+ export * from "./MinioBlobStoreService.d.mts";
8
+ export * from "./R2BlobStoreService.d.mts";
@@ -6,6 +6,12 @@ interface DockerComposeServiceConfig {
6
6
  interface DockerHealthCheckOptions {
7
7
  maxAttempts?: number;
8
8
  interval?: number;
9
+ /**
10
+ * When true (default), only HTTP 2xx responses count as healthy.
11
+ * When false, any HTTP response (i.e. the port is accepting connections) counts as healthy.
12
+ * Set to false for emulators that do not expose an unauthenticated 2xx health endpoint.
13
+ */
14
+ requireOk?: boolean;
9
15
  }
10
16
  export declare class DockerComposeService extends ClientBasedService<void, DockerComposeServiceConfig> {
11
17
  constructor();
@@ -6,6 +6,12 @@ interface DockerComposeServiceConfig {
6
6
  interface DockerHealthCheckOptions {
7
7
  maxAttempts?: number;
8
8
  interval?: number;
9
+ /**
10
+ * When true (default), only HTTP 2xx responses count as healthy.
11
+ * When false, any HTTP response (i.e. the port is accepting connections) counts as healthy.
12
+ * Set to false for emulators that do not expose an unauthenticated 2xx health endpoint.
13
+ */
14
+ requireOk?: boolean;
9
15
  }
10
16
  export declare class DockerComposeService extends ClientBasedService<void, DockerComposeServiceConfig> {
11
17
  constructor();
@@ -5,6 +5,6 @@
5
5
  */
6
6
  export * from "./utils.d.cts";
7
7
  export declare const VERSION: string;
8
- export declare const COMMIT = "770d2e2";
9
- export declare const FULL_VERSION = "0.1.2-770d2e2";
8
+ export declare const COMMIT = "96f5884";
9
+ export declare const FULL_VERSION = "0.1.4-96f5884";
10
10
  export declare const PACKAGE_NAME: string;
@@ -5,6 +5,6 @@
5
5
  */
6
6
  export * from "./utils.d.mts";
7
7
  export declare const VERSION: string;
8
- export declare const COMMIT = "770d2e2";
9
- export declare const FULL_VERSION = "0.1.2-770d2e2";
8
+ export declare const COMMIT = "96f5884";
9
+ export declare const FULL_VERSION = "0.1.4-96f5884";
10
10
  export declare const PACKAGE_NAME: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/integrations",
3
- "version": "0.1.3",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.mts",
@@ -125,6 +125,83 @@
125
125
  "default": "./lib/cjs/secrets/vault/index.cjs"
126
126
  },
127
127
  "default": "./lib/esm/secrets/vault/index.js"
128
+ },
129
+ "./blob": {
130
+ "import": {
131
+ "types": "./lib/types/blob/index.d.mts",
132
+ "default": "./lib/esm/blob/index.js"
133
+ },
134
+ "require": {
135
+ "types": "./lib/types/blob/index.d.cts",
136
+ "default": "./lib/cjs/blob/index.cjs"
137
+ },
138
+ "default": "./lib/esm/blob/index.js"
139
+ },
140
+ "./blob/s3": {
141
+ "import": {
142
+ "types": "./lib/types/blob/s3/index.d.mts",
143
+ "default": "./lib/esm/blob/s3/index.js"
144
+ },
145
+ "require": {
146
+ "types": "./lib/types/blob/s3/index.d.cts",
147
+ "default": "./lib/cjs/blob/s3/index.cjs"
148
+ },
149
+ "default": "./lib/esm/blob/s3/index.js"
150
+ },
151
+ "./blob/azure": {
152
+ "import": {
153
+ "types": "./lib/types/blob/azure/index.d.mts",
154
+ "default": "./lib/esm/blob/azure/index.js"
155
+ },
156
+ "require": {
157
+ "types": "./lib/types/blob/azure/index.d.cts",
158
+ "default": "./lib/cjs/blob/azure/index.cjs"
159
+ },
160
+ "default": "./lib/esm/blob/azure/index.js"
161
+ },
162
+ "./blob/gcp": {
163
+ "import": {
164
+ "types": "./lib/types/blob/gcp/index.d.mts",
165
+ "default": "./lib/esm/blob/gcp/index.js"
166
+ },
167
+ "require": {
168
+ "types": "./lib/types/blob/gcp/index.d.cts",
169
+ "default": "./lib/cjs/blob/gcp/index.cjs"
170
+ },
171
+ "default": "./lib/esm/blob/gcp/index.js"
172
+ },
173
+ "./blob/local": {
174
+ "import": {
175
+ "types": "./lib/types/blob/local/index.d.mts",
176
+ "default": "./lib/esm/blob/local/index.js"
177
+ },
178
+ "require": {
179
+ "types": "./lib/types/blob/local/index.d.cts",
180
+ "default": "./lib/cjs/blob/local/index.cjs"
181
+ },
182
+ "default": "./lib/esm/blob/local/index.js"
183
+ },
184
+ "./blob/ipfs": {
185
+ "import": {
186
+ "types": "./lib/types/blob/ipfs/index.d.mts",
187
+ "default": "./lib/esm/blob/ipfs/index.js"
188
+ },
189
+ "require": {
190
+ "types": "./lib/types/blob/ipfs/index.d.cts",
191
+ "default": "./lib/cjs/blob/ipfs/index.cjs"
192
+ },
193
+ "default": "./lib/esm/blob/ipfs/index.js"
194
+ },
195
+ "./blob/memory": {
196
+ "import": {
197
+ "types": "./lib/types/blob/memory/index.d.mts",
198
+ "default": "./lib/esm/blob/memory/index.js"
199
+ },
200
+ "require": {
201
+ "types": "./lib/types/blob/memory/index.d.cts",
202
+ "default": "./lib/cjs/blob/memory/index.cjs"
203
+ },
204
+ "default": "./lib/esm/blob/memory/index.js"
128
205
  }
129
206
  },
130
207
  "scripts": {
@@ -137,11 +214,11 @@
137
214
  "reset": "rm -rf * && git checkout . && git pull && npm run do-install",
138
215
  "build": "build-scripts --dev",
139
216
  "build:prod": "build-scripts --prod",
140
- "test": "npm run build && jest --runInBand --coverage --detectOpenHandles",
141
- "test:unit": "jest --testPathPatterns=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
142
- "test:integration": "jest --testPathPatterns=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles",
143
- "test:e2e": "jest --testPathPatterns=\"/tests/(e2e)\" --passWithNoTests --detectOpenHandles",
144
- "test:all": "jest --testPathPatterns=\"/tests\" --passWithNoTests",
217
+ "test": "npm run build && NODE_OPTIONS=\"--experimental-vm-modules\" jest --runInBand --coverage --detectOpenHandles",
218
+ "test:unit": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --testPathPatterns=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
219
+ "test:integration": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --testPathPatterns=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles",
220
+ "test:e2e": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --testPathPatterns=\"/tests/(e2e)\" --passWithNoTests --detectOpenHandles",
221
+ "test:all": "NODE_OPTIONS=\"--experimental-vm-modules\" jest --runInBand --testPathPatterns=\"/tests\" --passWithNoTests",
145
222
  "test:circular": "dpdm -T --no-warning --no-tree ./src/index.ts",
146
223
  "coverage": "rimraf ./workdocs/reports/data/*.json && npm run test:all -- --coverage --config=./workdocs/reports/jest.coverage.config.cjs",
147
224
  "lint": "eslint .",
@@ -183,13 +260,18 @@
183
260
  "js-yaml": "^4.2.0"
184
261
  },
185
262
  "optionalDependencies": {
263
+ "@aws-sdk/client-s3": "^3.1075.0",
186
264
  "@aws-sdk/client-secrets-manager": "^3.758.0",
265
+ "@aws-sdk/s3-request-presigner": "^3.1075.0",
187
266
  "@azure/identity": "^4.13.1",
188
267
  "@azure/keyvault-secrets": "^4.9.0",
268
+ "@azure/storage-blob": "^12.33.0",
189
269
  "@google-cloud/secret-manager": "^5.6.0",
270
+ "@google-cloud/storage": "^7.21.0",
190
271
  "aws-sdk": "^2.1691.0",
191
272
  "hashicorp-vault": "^0.1.0",
192
273
  "keycloak-admin": "^24.0.5",
274
+ "kubo-rpc-client": "^7.1.0",
193
275
  "onelogin-node": "^0.1.0"
194
276
  }
195
277
  }