@zero-transfer/core 0.1.0-alpha.0 → 0.1.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.
- package/README.md +123 -15
- package/dist/index.cjs +35 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +2 -2
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
# @zero-transfer/core
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
> **Alpha umbrella package.** This package currently re-exports the entire
|
|
6
|
-
> [`@zero-transfer/sdk`](https://www.npmjs.com/package/@zero-transfer/sdk)
|
|
7
|
-
> public surface. Future releases will narrow this package to only its
|
|
8
|
-
> dedicated subset (see the
|
|
9
|
-
> [ZeroTransfer remake plan](https://github.com/tonywied17/zero-transfer/blob/main/zero-transfer-remake.md#future-monorepo-shape)).
|
|
10
|
-
> If you want every provider in one install today, depend on
|
|
11
|
-
> `@zero-transfer/sdk` directly.
|
|
3
|
+
> Provider-neutral contracts, transfer engine, queue, profiles, and errors.
|
|
12
4
|
|
|
13
5
|
## Install
|
|
14
6
|
|
|
@@ -16,17 +8,133 @@ Core ZeroTransfer contracts (TransferClient, providers, profiles, errors).
|
|
|
16
8
|
npm install @zero-transfer/core
|
|
17
9
|
```
|
|
18
10
|
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
The provider-neutral foundation: `TransferClient`, `createTransferClient`, the provider registry, capability sets, transfer engine, queue, planning primitives, profile resolution, secret redaction, structured logging, and typed errors. Every other scoped package builds on this surface.
|
|
14
|
+
|
|
19
15
|
## Usage
|
|
20
16
|
|
|
21
17
|
```ts
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
const client = createTransferClient();
|
|
18
|
+
import { createLocalProviderFactory } from "@zero-transfer/core";
|
|
25
19
|
```
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
## Public surface
|
|
22
|
+
|
|
23
|
+
This package narrows [`@zero-transfer/sdk`](https://www.npmjs.com/package/@zero-transfer/sdk) to **92** exports. Every symbol is re-exported from the SDK; the table below links into the full API reference:
|
|
24
|
+
|
|
25
|
+
| Symbol | Kind | Notes |
|
|
26
|
+
| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | ------------------ |
|
|
27
|
+
| [`TransferClient`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/classes/TransferClient.md) | Class | See API reference. |
|
|
28
|
+
| [`TransferClientOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferClientOptions.md) | Interface | See API reference. |
|
|
29
|
+
| [`createTransferClient`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createTransferClient.md) | Function | See API reference. |
|
|
30
|
+
| [`ProviderRegistry`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/classes/ProviderRegistry.md) | Class | See API reference. |
|
|
31
|
+
| [`TransferSession`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferSession.md) | Interface | See API reference. |
|
|
32
|
+
| [`TransferProvider`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferProvider.md) | Interface | See API reference. |
|
|
33
|
+
| `ProviderCapabilities` | _unresolved_ | — |
|
|
34
|
+
| [`ProviderFactory`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ProviderFactory.md) | Interface | See API reference. |
|
|
35
|
+
| [`ProviderTransferOperations`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ProviderTransferOperations.md) | Interface | See API reference. |
|
|
36
|
+
| [`RemoteFileSystem`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteFileSystem.md) | Interface | See API reference. |
|
|
37
|
+
| [`CapabilitySet`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/CapabilitySet.md) | Interface | See API reference. |
|
|
38
|
+
| [`AuthenticationCapability`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/AuthenticationCapability.md) | Type | See API reference. |
|
|
39
|
+
| [`ChecksumCapability`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/ChecksumCapability.md) | Type | See API reference. |
|
|
40
|
+
| [`MetadataCapability`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/MetadataCapability.md) | Type | See API reference. |
|
|
41
|
+
| [`BuiltInProviderId`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/BuiltInProviderId.md) | Type | See API reference. |
|
|
42
|
+
| [`ProviderId`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/ProviderId.md) | Type | See API reference. |
|
|
43
|
+
| [`ProviderSelection`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ProviderSelection.md) | Interface | See API reference. |
|
|
44
|
+
| [`TransferEngine`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/classes/TransferEngine.md) | Class | See API reference. |
|
|
45
|
+
| [`TransferQueue`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/classes/TransferQueue.md) | Class | See API reference. |
|
|
46
|
+
| [`TransferJob`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferJob.md) | Interface | See API reference. |
|
|
47
|
+
| [`TransferPlan`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferPlan.md) | Interface | See API reference. |
|
|
48
|
+
| [`TransferReceipt`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferReceipt.md) | Interface | See API reference. |
|
|
49
|
+
| [`TransferEndpoint`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferEndpoint.md) | Interface | See API reference. |
|
|
50
|
+
| [`TransferOperation`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/TransferOperation.md) | Type | See API reference. |
|
|
51
|
+
| [`TransferAttempt`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferAttempt.md) | Interface | See API reference. |
|
|
52
|
+
| [`TransferRetryPolicy`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferRetryPolicy.md) | Interface | See API reference. |
|
|
53
|
+
| [`TransferTimeoutPolicy`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferTimeoutPolicy.md) | Interface | See API reference. |
|
|
54
|
+
| [`TransferBandwidthLimit`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferBandwidthLimit.md) | Interface | See API reference. |
|
|
55
|
+
| [`TransferVerificationResult`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/TransferVerificationResult.md) | Interface | See API reference. |
|
|
56
|
+
| [`ProviderTransferSessionResolver`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/ProviderTransferSessionResolver.md) | Type | See API reference. |
|
|
57
|
+
| [`ProviderTransferSessionResolverInput`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ProviderTransferSessionResolverInput.md) | Interface | See API reference. |
|
|
58
|
+
| [`createBandwidthThrottle`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createBandwidthThrottle.md) | Function | See API reference. |
|
|
59
|
+
| [`createProviderTransferExecutor`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createProviderTransferExecutor.md) | Function | See API reference. |
|
|
60
|
+
| [`createTransferJobsFromPlan`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createTransferJobsFromPlan.md) | Function | See API reference. |
|
|
61
|
+
| [`createTransferPlan`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createTransferPlan.md) | Function | See API reference. |
|
|
62
|
+
| [`summarizeTransferPlan`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/summarizeTransferPlan.md) | Function | See API reference. |
|
|
63
|
+
| [`throttleByteIterable`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/throttleByteIterable.md) | Function | See API reference. |
|
|
64
|
+
| [`copyBetween`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/copyBetween.md) | Function | See API reference. |
|
|
65
|
+
| [`uploadFile`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/uploadFile.md) | Function | See API reference. |
|
|
66
|
+
| [`downloadFile`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/downloadFile.md) | Function | See API reference. |
|
|
67
|
+
| [`CopyBetweenOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/CopyBetweenOptions.md) | Interface | See API reference. |
|
|
68
|
+
| [`UploadFileOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/UploadFileOptions.md) | Interface | See API reference. |
|
|
69
|
+
| [`DownloadFileOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/DownloadFileOptions.md) | Interface | See API reference. |
|
|
70
|
+
| [`FriendlyTransferOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/FriendlyTransferOptions.md) | Type | See API reference. |
|
|
71
|
+
| [`RemoteFileEndpoint`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteFileEndpoint.md) | Interface | See API reference. |
|
|
72
|
+
| [`runConnectionDiagnostics`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/runConnectionDiagnostics.md) | Function | See API reference. |
|
|
73
|
+
| [`summarizeClientDiagnostics`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/summarizeClientDiagnostics.md) | Function | See API reference. |
|
|
74
|
+
| [`ClientDiagnostics`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ClientDiagnostics.md) | Interface | See API reference. |
|
|
75
|
+
| [`ConnectionDiagnosticsResult`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ConnectionDiagnosticsResult.md) | Interface | See API reference. |
|
|
76
|
+
| [`ConnectionDiagnosticTimings`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ConnectionDiagnosticTimings.md) | Interface | See API reference. |
|
|
77
|
+
| [`RunConnectionDiagnosticsOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RunConnectionDiagnosticsOptions.md) | Interface | See API reference. |
|
|
78
|
+
| [`createLocalProviderFactory`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createLocalProviderFactory.md) | Function | See API reference. |
|
|
79
|
+
| [`LocalProviderOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/LocalProviderOptions.md) | Interface | See API reference. |
|
|
80
|
+
| [`createMemoryProviderFactory`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createMemoryProviderFactory.md) | Function | See API reference. |
|
|
81
|
+
| [`MemoryProviderOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/MemoryProviderOptions.md) | Interface | See API reference. |
|
|
82
|
+
| [`MemoryProviderEntry`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/MemoryProviderEntry.md) | Interface | See API reference. |
|
|
83
|
+
| [`createSyncPlan`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createSyncPlan.md) | Function | See API reference. |
|
|
84
|
+
| [`CreateSyncPlanOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/CreateSyncPlanOptions.md) | Interface | See API reference. |
|
|
85
|
+
| [`diffRemoteTrees`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/diffRemoteTrees.md) | Function | See API reference. |
|
|
86
|
+
| [`DiffRemoteTreesOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/DiffRemoteTreesOptions.md) | Interface | See API reference. |
|
|
87
|
+
| [`RemoteTreeDiff`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteTreeDiff.md) | Interface | See API reference. |
|
|
88
|
+
| [`RemoteTreeDiffEntry`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteTreeDiffEntry.md) | Interface | See API reference. |
|
|
89
|
+
| [`RemoteTreeDiffSummary`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteTreeDiffSummary.md) | Interface | See API reference. |
|
|
90
|
+
| [`createAtomicDeployPlan`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createAtomicDeployPlan.md) | Function | See API reference. |
|
|
91
|
+
| [`AtomicDeployPlan`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/AtomicDeployPlan.md) | Interface | See API reference. |
|
|
92
|
+
| [`AtomicDeployActivateStep`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/AtomicDeployActivateStep.md) | Interface | See API reference. |
|
|
93
|
+
| [`AtomicDeployActivateOperation`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/AtomicDeployActivateOperation.md) | Type | See API reference. |
|
|
94
|
+
| [`AtomicDeployPruneStep`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/AtomicDeployPruneStep.md) | Interface | See API reference. |
|
|
95
|
+
| [`AtomicDeployStrategy`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/AtomicDeployStrategy.md) | Type | See API reference. |
|
|
96
|
+
| [`CreateAtomicDeployPlanOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/CreateAtomicDeployPlanOptions.md) | Interface | See API reference. |
|
|
97
|
+
| [`walkRemoteTree`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/walkRemoteTree.md) | Function | See API reference. |
|
|
98
|
+
| [`WalkRemoteTreeOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/WalkRemoteTreeOptions.md) | Interface | See API reference. |
|
|
99
|
+
| [`createRemoteBrowser`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createRemoteBrowser.md) | Function | See API reference. |
|
|
100
|
+
| [`RemoteBrowser`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteBrowser.md) | Interface | See API reference. |
|
|
101
|
+
| [`RemoteBrowserSnapshot`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteBrowserSnapshot.md) | Interface | See API reference. |
|
|
102
|
+
| [`ConnectionProfile`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ConnectionProfile.md) | Interface | See API reference. |
|
|
103
|
+
| [`RemoteEntry`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/RemoteEntry.md) | Interface | See API reference. |
|
|
104
|
+
| [`RemoteEntryType`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/RemoteEntryType.md) | Type | See API reference. |
|
|
105
|
+
| [`RemoteProtocol`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/RemoteProtocol.md) | Type | See API reference. |
|
|
106
|
+
| [`ListOptions`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ListOptions.md) | Interface | See API reference. |
|
|
107
|
+
| [`validateConnectionProfile`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/validateConnectionProfile.md) | Function | See API reference. |
|
|
108
|
+
| [`resolveConnectionProfileSecrets`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/resolveConnectionProfileSecrets.md) | Function | See API reference. |
|
|
109
|
+
| [`redactConnectionProfile`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/redactConnectionProfile.md) | Function | See API reference. |
|
|
110
|
+
| [`redactSecretSource`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/redactSecretSource.md) | Function | See API reference. |
|
|
111
|
+
| [`resolveSecret`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/resolveSecret.md) | Function | See API reference. |
|
|
112
|
+
| [`createOAuthTokenSecretSource`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/createOAuthTokenSecretSource.md) | Function | See API reference. |
|
|
113
|
+
| [`ResolvedConnectionProfile`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ResolvedConnectionProfile.md) | Interface | See API reference. |
|
|
114
|
+
| [`SecretSource`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/type-aliases/SecretSource.md) | Type | See API reference. |
|
|
115
|
+
| [`ZeroTransferError`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/classes/ZeroTransferError.md) | Class | See API reference. |
|
|
116
|
+
| [`ZeroTransferLogger`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/interfaces/ZeroTransferLogger.md) | Interface | See API reference. |
|
|
117
|
+
| [`noopLogger`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/variables/noopLogger.md) | Variable | See API reference. |
|
|
118
|
+
| [`emitLog`](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/functions/emitLog.md) | Function | See API reference. |
|
|
119
|
+
|
|
120
|
+
## Examples
|
|
121
|
+
|
|
122
|
+
| Example | What it shows |
|
|
123
|
+
| -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
|
|
124
|
+
| [`examples/local-copy-file.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/local-copy-file.ts) | Local-to-local file copy example. |
|
|
125
|
+
| [`examples/ftp-basic.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/ftp-basic.ts) | Basic FTP upload + download example. |
|
|
126
|
+
| [`examples/transfer-queue.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/transfer-queue.ts) | Transfer queue with concurrency, progress, and per-job receipts. |
|
|
127
|
+
| [`examples/dry-run-sync.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/dry-run-sync.ts) | Dry-run sync planner. |
|
|
128
|
+
| [`examples/diagnose-connection.ts`](https://github.com/tonywied17/zero-transfer/blob/main/examples/diagnose-connection.ts) | Diagnose a connection without exposing secrets. |
|
|
129
|
+
|
|
130
|
+
## Documentation
|
|
131
|
+
|
|
132
|
+
- [Scope page](https://github.com/tonywied17/zero-transfer/blob/main/docs/scopes/core.md)
|
|
133
|
+
- [Top-level README](https://github.com/tonywied17/zero-transfer/blob/main/README.md)
|
|
134
|
+
- [Full API reference](https://github.com/tonywied17/zero-transfer/blob/main/docs/api-md/README.md)
|
|
135
|
+
- [Capability matrix](https://github.com/tonywied17/zero-transfer/blob/main/README.md#capability-matrix)
|
|
136
|
+
- [Examples](https://github.com/tonywied17/zero-transfer/tree/main/examples)
|
|
29
137
|
|
|
30
138
|
## License
|
|
31
139
|
|
|
32
|
-
MIT © Tony Wiedman
|
|
140
|
+
MIT © [Tony Wiedman](https://github.com/tonywied17)
|
package/dist/index.cjs
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
// AUTO-GENERATED
|
|
1
|
+
// AUTO-GENERATED. Edit scripts/scope-manifest.mjs and re-run packages:generate.
|
|
2
2
|
"use strict";
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const sdk = require("@zero-transfer/sdk");
|
|
5
|
+
Object.defineProperty(exports, "TransferClient", { enumerable: true, get: () => sdk["TransferClient"] });
|
|
6
|
+
Object.defineProperty(exports, "createTransferClient", { enumerable: true, get: () => sdk["createTransferClient"] });
|
|
7
|
+
Object.defineProperty(exports, "ProviderRegistry", { enumerable: true, get: () => sdk["ProviderRegistry"] });
|
|
8
|
+
Object.defineProperty(exports, "TransferEngine", { enumerable: true, get: () => sdk["TransferEngine"] });
|
|
9
|
+
Object.defineProperty(exports, "TransferQueue", { enumerable: true, get: () => sdk["TransferQueue"] });
|
|
10
|
+
Object.defineProperty(exports, "createBandwidthThrottle", { enumerable: true, get: () => sdk["createBandwidthThrottle"] });
|
|
11
|
+
Object.defineProperty(exports, "createProviderTransferExecutor", { enumerable: true, get: () => sdk["createProviderTransferExecutor"] });
|
|
12
|
+
Object.defineProperty(exports, "createTransferJobsFromPlan", { enumerable: true, get: () => sdk["createTransferJobsFromPlan"] });
|
|
13
|
+
Object.defineProperty(exports, "createTransferPlan", { enumerable: true, get: () => sdk["createTransferPlan"] });
|
|
14
|
+
Object.defineProperty(exports, "summarizeTransferPlan", { enumerable: true, get: () => sdk["summarizeTransferPlan"] });
|
|
15
|
+
Object.defineProperty(exports, "throttleByteIterable", { enumerable: true, get: () => sdk["throttleByteIterable"] });
|
|
16
|
+
Object.defineProperty(exports, "copyBetween", { enumerable: true, get: () => sdk["copyBetween"] });
|
|
17
|
+
Object.defineProperty(exports, "uploadFile", { enumerable: true, get: () => sdk["uploadFile"] });
|
|
18
|
+
Object.defineProperty(exports, "downloadFile", { enumerable: true, get: () => sdk["downloadFile"] });
|
|
19
|
+
Object.defineProperty(exports, "runConnectionDiagnostics", { enumerable: true, get: () => sdk["runConnectionDiagnostics"] });
|
|
20
|
+
Object.defineProperty(exports, "summarizeClientDiagnostics", { enumerable: true, get: () => sdk["summarizeClientDiagnostics"] });
|
|
21
|
+
Object.defineProperty(exports, "createLocalProviderFactory", { enumerable: true, get: () => sdk["createLocalProviderFactory"] });
|
|
22
|
+
Object.defineProperty(exports, "createMemoryProviderFactory", { enumerable: true, get: () => sdk["createMemoryProviderFactory"] });
|
|
23
|
+
Object.defineProperty(exports, "createSyncPlan", { enumerable: true, get: () => sdk["createSyncPlan"] });
|
|
24
|
+
Object.defineProperty(exports, "diffRemoteTrees", { enumerable: true, get: () => sdk["diffRemoteTrees"] });
|
|
25
|
+
Object.defineProperty(exports, "createAtomicDeployPlan", { enumerable: true, get: () => sdk["createAtomicDeployPlan"] });
|
|
26
|
+
Object.defineProperty(exports, "walkRemoteTree", { enumerable: true, get: () => sdk["walkRemoteTree"] });
|
|
27
|
+
Object.defineProperty(exports, "createRemoteBrowser", { enumerable: true, get: () => sdk["createRemoteBrowser"] });
|
|
28
|
+
Object.defineProperty(exports, "validateConnectionProfile", { enumerable: true, get: () => sdk["validateConnectionProfile"] });
|
|
29
|
+
Object.defineProperty(exports, "resolveConnectionProfileSecrets", { enumerable: true, get: () => sdk["resolveConnectionProfileSecrets"] });
|
|
30
|
+
Object.defineProperty(exports, "redactConnectionProfile", { enumerable: true, get: () => sdk["redactConnectionProfile"] });
|
|
31
|
+
Object.defineProperty(exports, "redactSecretSource", { enumerable: true, get: () => sdk["redactSecretSource"] });
|
|
32
|
+
Object.defineProperty(exports, "resolveSecret", { enumerable: true, get: () => sdk["resolveSecret"] });
|
|
33
|
+
Object.defineProperty(exports, "createOAuthTokenSecretSource", { enumerable: true, get: () => sdk["createOAuthTokenSecretSource"] });
|
|
34
|
+
Object.defineProperty(exports, "ZeroTransferError", { enumerable: true, get: () => sdk["ZeroTransferError"] });
|
|
35
|
+
Object.defineProperty(exports, "noopLogger", { enumerable: true, get: () => sdk["noopLogger"] });
|
|
36
|
+
Object.defineProperty(exports, "emitLog", { enumerable: true, get: () => sdk["emitLog"] });
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
// AUTO-GENERATED
|
|
2
|
-
export
|
|
1
|
+
// AUTO-GENERATED. Edit scripts/scope-manifest.mjs and re-run packages:generate.
|
|
2
|
+
export { TransferClient, createTransferClient, ProviderRegistry, TransferEngine, TransferQueue, createBandwidthThrottle, createProviderTransferExecutor, createTransferJobsFromPlan, createTransferPlan, summarizeTransferPlan, throttleByteIterable, copyBetween, uploadFile, downloadFile, runConnectionDiagnostics, summarizeClientDiagnostics, createLocalProviderFactory, createMemoryProviderFactory, createSyncPlan, diffRemoteTrees, createAtomicDeployPlan, walkRemoteTree, createRemoteBrowser, validateConnectionProfile, resolveConnectionProfileSecrets, redactConnectionProfile, redactSecretSource, resolveSecret, createOAuthTokenSecretSource, ZeroTransferError, noopLogger, emitLog } from "@zero-transfer/sdk";
|
|
3
|
+
export type { TransferClientOptions, TransferSession, TransferProvider, ProviderCapabilities, ProviderFactory, ProviderTransferOperations, RemoteFileSystem, CapabilitySet, AuthenticationCapability, ChecksumCapability, MetadataCapability, BuiltInProviderId, ProviderId, ProviderSelection, TransferJob, TransferPlan, TransferReceipt, TransferEndpoint, TransferOperation, TransferAttempt, TransferRetryPolicy, TransferTimeoutPolicy, TransferBandwidthLimit, TransferVerificationResult, ProviderTransferSessionResolver, ProviderTransferSessionResolverInput, CopyBetweenOptions, UploadFileOptions, DownloadFileOptions, FriendlyTransferOptions, RemoteFileEndpoint, ClientDiagnostics, ConnectionDiagnosticsResult, ConnectionDiagnosticTimings, RunConnectionDiagnosticsOptions, LocalProviderOptions, MemoryProviderOptions, MemoryProviderEntry, CreateSyncPlanOptions, DiffRemoteTreesOptions, RemoteTreeDiff, RemoteTreeDiffEntry, RemoteTreeDiffSummary, AtomicDeployPlan, AtomicDeployActivateStep, AtomicDeployActivateOperation, AtomicDeployPruneStep, AtomicDeployStrategy, CreateAtomicDeployPlanOptions, WalkRemoteTreeOptions, RemoteBrowser, RemoteBrowserSnapshot, ConnectionProfile, RemoteEntry, RemoteEntryType, RemoteProtocol, ListOptions, ResolvedConnectionProfile, SecretSource, ZeroTransferLogger } from "@zero-transfer/sdk";
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
// AUTO-GENERATED
|
|
2
|
-
export
|
|
1
|
+
// AUTO-GENERATED. Edit scripts/scope-manifest.mjs and re-run packages:generate.
|
|
2
|
+
export { TransferClient, createTransferClient, ProviderRegistry, TransferEngine, TransferQueue, createBandwidthThrottle, createProviderTransferExecutor, createTransferJobsFromPlan, createTransferPlan, summarizeTransferPlan, throttleByteIterable, copyBetween, uploadFile, downloadFile, runConnectionDiagnostics, summarizeClientDiagnostics, createLocalProviderFactory, createMemoryProviderFactory, createSyncPlan, diffRemoteTrees, createAtomicDeployPlan, walkRemoteTree, createRemoteBrowser, validateConnectionProfile, resolveConnectionProfileSecrets, redactConnectionProfile, redactSecretSource, resolveSecret, createOAuthTokenSecretSource, ZeroTransferError, noopLogger, emitLog } from "@zero-transfer/sdk";
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zero-transfer/core",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Provider-neutral contracts, transfer engine, queue, profiles, and errors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zero-transfer",
|
|
7
|
-
"transfer",
|
|
8
7
|
"core",
|
|
8
|
+
"core",
|
|
9
|
+
"transfer-client",
|
|
9
10
|
"sdk"
|
|
10
11
|
],
|
|
11
12
|
"author": "Tony Wiedman",
|
|
@@ -34,7 +35,7 @@
|
|
|
34
35
|
"bugs": {
|
|
35
36
|
"url": "https://github.com/tonywied17/zero-transfer/issues"
|
|
36
37
|
},
|
|
37
|
-
"homepage": "https://github.com/tonywied17/zero-transfer#readme",
|
|
38
|
+
"homepage": "https://github.com/tonywied17/zero-transfer/tree/main/packages/core#readme",
|
|
38
39
|
"engines": {
|
|
39
40
|
"node": ">=20.0.0"
|
|
40
41
|
},
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"access": "public"
|
|
45
46
|
},
|
|
46
47
|
"sideEffects": false,
|
|
47
|
-
"
|
|
48
|
-
"@zero-transfer/sdk": "0.1.
|
|
48
|
+
"peerDependencies": {
|
|
49
|
+
"@zero-transfer/sdk": "0.1.2"
|
|
49
50
|
}
|
|
50
51
|
}
|