@byok-sdk/cloud-dataplane 0.4.0 → 0.4.2

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.
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The Worker-loadable online surface of `@byok-sdk/cloud-dataplane`.
3
+ *
4
+ * This entry is the single authority for the online request-path exports:
5
+ * the pool factory, the cloud-local stores (including the R2 blob exports),
6
+ * the core stores, and the truth committer. Everything reachable from here
7
+ * is the portable half of the package — `pg` over TCP, `aws4fetch` over
8
+ * `fetch`, and nothing else — so the same bundle loads on Cloudflare Workers
9
+ * (`nodejs_compat` + Hyperdrive, with `pg` left external to the host bundler)
10
+ * as well as on Node.
11
+ *
12
+ * The Node-only operations — `migrate`, `migrationsDir`, and the cleanup /
13
+ * maintenance composition — deliberately stay on the package root
14
+ * (`./index.ts`) and never appear here. They read migration files off disk
15
+ * and hash with `node:crypto`, none of which exists on a Worker. The host
16
+ * picks the composition explicitly at wiring time: a Worker imports
17
+ * `@byok-sdk/cloud-dataplane/runtime` and runs its migrations from a Node
18
+ * process; a resident Node service imports the root. Nothing in this package
19
+ * detects its host or falls back across the two.
20
+ *
21
+ * The build enforces the boundary: `tsup.config.ts` compiles this entry with
22
+ * `platform: 'neutral'`, so an import of a node builtin anywhere in this
23
+ * subgraph is a build failure rather than a Worker that breaks at deploy
24
+ * time. The declaration build (`tsconfig.build.json`) emits the matching
25
+ * `dist/runtime.d.ts`.
26
+ */
27
+ export { createByokPool } from './pool';
28
+ export type { ByokPoolOptions } from './pool';
29
+ export { PostgresDeviceDirectory, PostgresInboundDedupStore, PostgresNonceStore, PostgresPairingCodeStore, PostgresProofRequestReceiptStore, PostgresRequestReceiptStore, PostgresTaskAttemptStore, PostgresActivityStore, PostgresApprovalTimelineStore, createPostgresCloudStores, } from './stores/index';
30
+ export type { PostgresCloudStoreOptions, PostgresCloudStores, PostgresObjectStorageOptions, } from './stores/index';
31
+ export { DEFAULT_MAX_ATTEMPTS, DEFAULT_PRESIGN_TTL_SECONDS, DEFAULT_RETRY_DELAY_MS, MAX_PRESIGN_TTL_SECONDS, MIN_PRESIGN_TTL_SECONDS, ObjectStoreRequestError, R2_BLOB_ERROR_CODES, R2BlobStoreError, R2CloudBlobStore, R2ObjectMaintenanceStore, } from './stores/index';
32
+ export type { ObjectStoreFetch, R2BlobErrorCode, R2BlobStoreOptions } from './stores/index';
33
+ export type { R2DeleteResult, R2ListedObject, R2ObjectMaintenance, R2ObjectMaintenanceOptions, R2ObjectPage, } from './stores/index';
34
+ export { PostgresBoardStore, PostgresMailboxStore, PostgresObjectStore, PostgresPresenceStore, PostgresQuotaStore, PostgresSkillPackStore, PostgresTruthStore, createPostgresCoreStores, } from './stores/core/index';
35
+ export type { PostgresCoreStoreOptions } from './stores/core/index';
36
+ export { PostgresTruthCommitter } from './truth-committer';
37
+ export type { PostgresTruthCommitterOptions } from './truth-committer';