@lumeweb/sia-testing 0.0.0-stage → 0.0.1

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 (90) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +210 -2
  3. package/dist/esm/client.d.ts +8 -0
  4. package/dist/esm/client.js +6 -0
  5. package/dist/esm/http.d.ts +3 -0
  6. package/dist/esm/http.js +3 -0
  7. package/dist/esm/mock.d.ts +8 -0
  8. package/dist/esm/mock.js +7 -0
  9. package/dist/esm/model/index.js +509 -0
  10. package/dist/esm/model/state.js +188 -0
  11. package/dist/esm/msw.d.ts +2 -0
  12. package/dist/esm/msw.js +3 -0
  13. package/dist/esm/node.d.ts +4 -0
  14. package/dist/esm/node.js +4 -0
  15. package/dist/esm/node_modules/.pnpm/@noble_hashes@2.4.0/node_modules/@noble/hashes/_md.js +169 -0
  16. package/dist/esm/node_modules/.pnpm/@noble_hashes@2.4.0/node_modules/@noble/hashes/_u64.js +12 -0
  17. package/dist/esm/node_modules/.pnpm/@noble_hashes@2.4.0/node_modules/@noble/hashes/sha2.js +199 -0
  18. package/dist/esm/node_modules/.pnpm/@noble_hashes@2.4.0/node_modules/@noble/hashes/utils.js +220 -0
  19. package/dist/esm/sdk/abort.js +23 -0
  20. package/dist/esm/sdk/control.js +129 -0
  21. package/dist/esm/sdk/index.js +454 -0
  22. package/dist/esm/sdk/link.js +55 -0
  23. package/dist/esm/sdk/object.js +24 -0
  24. package/dist/esm/sdk/payload-store.d.ts +9 -0
  25. package/dist/esm/sdk/payload-store.js +67 -0
  26. package/dist/esm/sdk/state.js +74 -0
  27. package/dist/esm/testing/application-client.d.ts +8 -0
  28. package/dist/esm/testing/application-client.js +295 -0
  29. package/dist/esm/testing/application-metadata.js +17 -0
  30. package/dist/esm/testing/application-transport.js +363 -0
  31. package/dist/esm/testing/auth-client.d.ts +20 -0
  32. package/dist/esm/testing/auth-client.js +63 -0
  33. package/dist/esm/testing/authentication.js +48 -0
  34. package/dist/esm/testing/byte-view.js +28 -0
  35. package/dist/esm/testing/chunked-files.d.ts +12 -0
  36. package/dist/esm/testing/chunked-files.js +50 -0
  37. package/dist/esm/testing/client.d.ts +8 -0
  38. package/dist/esm/testing/client.js +105 -0
  39. package/dist/esm/testing/controls.d.ts +44 -0
  40. package/dist/esm/testing/controls.js +255 -0
  41. package/dist/esm/testing/diagnostics.js +55 -0
  42. package/dist/esm/testing/files.d.ts +9 -0
  43. package/dist/esm/testing/files.js +86 -0
  44. package/dist/esm/testing/http-body.js +33 -0
  45. package/dist/esm/testing/http.d.ts +14 -0
  46. package/dist/esm/testing/http.js +181 -0
  47. package/dist/esm/testing/live/agent.d.ts +1 -0
  48. package/dist/esm/testing/live/agent.js +211 -0
  49. package/dist/esm/testing/live/approval.js +42 -0
  50. package/dist/esm/testing/live/cleanup.js +74 -0
  51. package/dist/esm/testing/live/journal.js +180 -0
  52. package/dist/esm/testing/live/lease.js +56 -0
  53. package/dist/esm/testing/live/private-files.js +50 -0
  54. package/dist/esm/testing/live/process.js +208 -0
  55. package/dist/esm/testing/live/profile.js +214 -0
  56. package/dist/esm/testing/live/recovery.js +164 -0
  57. package/dist/esm/testing/live/resource-limits.js +9 -0
  58. package/dist/esm/testing/live/run.js +390 -0
  59. package/dist/esm/testing/live/session.js +93 -0
  60. package/dist/esm/testing/live/types.d.ts +8 -0
  61. package/dist/esm/testing/mock.d.ts +8 -0
  62. package/dist/esm/testing/mock.js +1364 -0
  63. package/dist/esm/testing/msw.d.ts +21 -0
  64. package/dist/esm/testing/msw.js +61 -0
  65. package/dist/esm/testing/mutations.d.ts +59 -0
  66. package/dist/esm/testing/mutations.js +58 -0
  67. package/dist/esm/testing/node-payload-store.js +353 -0
  68. package/dist/esm/testing/node.d.ts +40 -0
  69. package/dist/esm/testing/node.js +148 -0
  70. package/dist/esm/testing/owner-client.d.ts +9 -0
  71. package/dist/esm/testing/owner-client.js +101 -0
  72. package/dist/esm/testing/owner-shares.js +80 -0
  73. package/dist/esm/testing/packed.d.ts +46 -0
  74. package/dist/esm/testing/packed.js +326 -0
  75. package/dist/esm/testing/reader-lifetime.js +40 -0
  76. package/dist/esm/testing/reply-loss.js +14 -0
  77. package/dist/esm/testing/runtime.d.ts +7 -0
  78. package/dist/esm/testing/runtime.js +13 -0
  79. package/dist/esm/testing/sdk-upload.d.ts +45 -0
  80. package/dist/esm/testing/sdk-upload.js +198 -0
  81. package/dist/esm/testing/streaming-source.js +72 -0
  82. package/dist/esm/testing/transport.d.ts +22 -0
  83. package/dist/esm/testing/transport.js +238 -0
  84. package/dist/esm/testing/types.d.ts +276 -0
  85. package/dist/esm/vitest.d.ts +23 -0
  86. package/dist/esm/vitest.js +34 -0
  87. package/docs/live-auth.md +154 -0
  88. package/docs/live-runs.md +188 -0
  89. package/docs/mock-contracts.md +647 -0
  90. package/package.json +90 -3
package/LICENSE ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 Hammer Technologies LLC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,211 @@
1
- # Temporary Holding Version
1
+ # Sia testing
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Test Sia application behavior without a server. Managed runs own synthetic fixture objects and sharing keys; application code receives restricted ports, not fixture or publication controls.
4
+
5
+ ## Write a Vitest test
6
+
7
+ Install `@lumeweb/sia-testing` and Vitest as development dependencies. Save this as `sia.test.ts` and run `pnpm exec vitest run sia.test.ts --environment node`:
8
+
9
+ ```ts recipe=ordinary
10
+ import { expect, test } from "vitest";
11
+ import { bytesFixture, type ReadPort } from "@lumeweb/sia-testing/mock";
12
+ import { withSiaRun } from "@lumeweb/sia-testing/node";
13
+
14
+ async function applicationSize(reader: ReadPort, id: string) {
15
+ return (await reader.object(id)).sizeBytes;
16
+ }
17
+
18
+ test("the recipient reads a managed fixture", async ({ signal }) => {
19
+ const result = await withSiaRun(
20
+ {
21
+ backend: {
22
+ kind: "mock",
23
+ app: {
24
+ id: "a".repeat(64),
25
+ name: "Document tests",
26
+ description: "Synthetic document fixtures",
27
+ serviceUrl: "https://example.invalid",
28
+ },
29
+ },
30
+ signal,
31
+ },
32
+ async (run) => {
33
+ const file = await bytesFixture({ name: "document", bytes: Uint8Array.of(1, 2) });
34
+ const object = await run.objects.upload({ file, metadata: new Uint8Array() });
35
+ const share = await run.shares.create({ objects: [object] });
36
+ const reader = run.mock.reader({ access: share.access, as: run.mock.actor("recipient") });
37
+ try {
38
+ return await applicationSize(reader, object.id);
39
+ } finally {
40
+ await reader.close();
41
+ }
42
+ },
43
+ );
44
+ expect(result.value).toBe(2);
45
+ expect(result.summary.cleanup).toBe("clean");
46
+ });
47
+ ```
48
+
49
+ The test driver owns the fixtures. `run.objects.upload` uploads and pins before returning. An application's `ApplicationPort.upload` stages bytes until the application calls `pin`; publication is a separate driver action. The optional upload `name` defaults to the snapshotted `TestFile.name` label; it does not set an application filename. Metadata stays required and is passed through as opaque bytes. Empty metadata is intentional here, not a usable file record for every application. These synthetic ports do not replace the full storage SDK or model native packed finalization. A separate direct `mock.packedSdk` surface consumes bounded streams through SDK 0.2-shaped packed calls; see [the packed simulation contract](docs/mock-contracts.md#direct-sdk-shaped-packed-simulation) for platform signatures, partial results and its non-cryptographic `seal` behavior. For individual SDK 0.2 uploads, `mock.uploadSdk` accepts `MockPinnedObject` handles; see [the direct upload contract](docs/mock-contracts.md#direct-sdk-02-upload-simulation).
50
+
51
+ `fileFixture(path)` from `/node` streams a local file and records its digest. Upload rejects changed bytes. Files are limited to 16 MiB. Mock runs default to 8 object reservations, 8 share reservations, and 16 MiB of logical uploads. Deletion does not refund these allowances.
52
+
53
+ Applications can edit mock shares only through explicit per-share grants.
54
+ `run.shares.grant` binds an actor, label, and permitted operations; install the
55
+ handle with `shareGrants` on `mock.application` or an endpoint connection.
56
+ `ApplicationPort.shares` lists granted targets, inspects lifecycle and membership,
57
+ and supports Add, Remove, and End. End withdraws sharing without deleting owned
58
+ payloads. [Share grant contracts](docs/mock-contracts.md#edit-an-explicitly-granted-share)
59
+ describe deadlines, cancellation, and cleanup.
60
+
61
+ ## Choose an entry
62
+
63
+ | Entry | Use it for |
64
+ | ------------- | ------------------------------------------------------------------------ |
65
+ | `/mock` | Portable byte fixtures, direct application ports, and driver controls |
66
+ | `/node` | Owned callback runs, local files, and explicitly consented live profiles |
67
+ | `/vitest` | Native Vitest fixtures with a portable mock run per using test |
68
+ | `/client` | Fetch-backed application ports and mock sign-in |
69
+ | `/http` | An optional owned loopback listener over a mock |
70
+ | `/msw` | An optional interceptor at an explicit base URL over a mock |
71
+
72
+ No Vitest plugin is required. MSW and Vitest are optional peers. Portable mock and client imports contain no Node, test-runner, or storage SDK runtime. HTTP and MSW speak a synthetic fixture protocol, not native Indexd. The package does not deploy services or fund accounts.
73
+
74
+ ## Select a simulated DOM environment
75
+
76
+ The complete tests on this page also run with `--environment jsdom` or `--environment happy-dom` instead of `--environment node`. Install `jsdom` or `happy-dom` yourself as a development dependency when choosing that environment. For MSW-backed Fetch tests, install the optional `msw` peer too. No package plugin or global shims are needed.
77
+
78
+ These environments simulate a DOM inside Node; they are not Vitest browser providers. Compare opaque metadata by byte contents, as in the publication recipe, because typed arrays can come from different realms.
79
+
80
+ ## Use the Vitest factory for direct controls
81
+
82
+ Save this complete recipe in its own test file. Each test, including concurrent tests, gets a separate mock and run.
83
+
84
+ ```ts recipe=fixture
85
+ import { expect } from "vitest";
86
+ import { bytesFixture } from "@lumeweb/sia-testing/mock";
87
+ import { createSiaTest } from "@lumeweb/sia-testing/vitest";
88
+
89
+ const siaTest = createSiaTest({
90
+ backend: {
91
+ kind: "mock",
92
+ app: {
93
+ id: "b".repeat(64),
94
+ name: "Fixture tests",
95
+ description: "Isolated application fixtures",
96
+ serviceUrl: "https://example.invalid",
97
+ },
98
+ },
99
+ });
100
+
101
+ for (const label of ["left", "right"]) {
102
+ siaTest.concurrent(`isolates ${label}'s objects`, async ({ sia }) => {
103
+ const file = await bytesFixture({ name: label, bytes: Uint8Array.of(3) });
104
+ const object = await sia.objects.upload({ file, metadata: new Uint8Array() });
105
+ const actor = sia.mock.actor(label);
106
+ const reader = sia.mock.reader({ access: sia.ownerAccess, as: actor });
107
+ try {
108
+ const hold = sia.mock.faults.hold({ actor, operation: "objects" });
109
+ const reading = reader.objects({ offset: 0, limit: 10 });
110
+ await hold.started();
111
+ hold.release();
112
+ expect((await reading).objects.map((item) => item.id)).toEqual([object.id]);
113
+ } finally {
114
+ await reader.close();
115
+ }
116
+ });
117
+ }
118
+ ```
119
+
120
+ The factory combines the runner cancellation signal with the optional external `signal`. An already-aborted signal prevents setup; sharing an external signal cancels every test using it. `onTestFinished` closes the mock after failure or timeout, including failed dependent teardown; `finally` also closes it after dynamic skip. Repeated cleanup shares one promise. Run cleanup closes retained ports before deleting fixture state, including after assertion failures.
121
+
122
+ Caller-created controllers can cancel individual reads without closing the reader or run. The packed Vitest checks cover current-global `AbortController` in Node, jsdom, and happy-dom, plus `window.AbortController` in both DOM environments, through direct readers and MSW-backed Fetch readers. In the tested versions, those DOM environments expose the same constructors through `globalThis` and `window`; these checks do not establish compatibility between Node signals and a separately created jsdom window's signal implementation.
123
+
124
+ Cancellation cannot force an unrelated user promise to settle. Await your work and make callbacks cooperate with cancellation. Application and owner-share ports cancel and join their pending calls on close. For both direct and fetch-backed readers, `close()` aborts requests without waiting for those calls to settle. Close a fetch application client in `finally` to join its local upload collector; backend teardown cannot synchronously stop collection in a remote client.
125
+
126
+ ## Migrate Playwright tests
127
+
128
+ `/playwright`, `BrowserRun`, `BrowserBinding`, and `sia.browser.open` were removed.
129
+ Use Playwright's `test.extend` to compose public `/node` `withSiaRun` and `/http`
130
+ `startMockServer`. Create contexts with your context options, base URL, proxy,
131
+ service-worker settings and empty storage state. Obtain credentials from
132
+ `endpoint.connection({ access, as })` and install them before navigation.
133
+ Use nested `try/finally` blocks to close contexts before the endpoint, and the
134
+ endpoint before returning from `withSiaRun`, including partial setup failures.
135
+ The portable Vitest fixture owns no browser contexts or navigation.
136
+
137
+ Node tests needing `backend.payloadStorage: { kind: "temporary-files", limits }`
138
+ keep using `/node` `withSiaRun` inside a native Vitest fixture or callback. This
139
+ storage mode supports direct Node calls only; it rejects HTTP and browser use.
140
+ `createSiaTest` accepts portable `MockOptions` and has no payload-storage option.
141
+
142
+ ## Publish application writes
143
+
144
+ Construct a manual clock before calling `advanceTime`. Pinning does not publish an event; the driver controls when a staged application write becomes visible in the feed.
145
+
146
+ ```ts recipe=publication
147
+ import { expect, test } from "vitest";
148
+ import { bytesFixture, createMockSia } from "@lumeweb/sia-testing/mock";
149
+
150
+ test("publishes a pinned application object explicitly", async ({ signal }) => {
151
+ const mock = createMockSia({ clock: { start: "2026-01-01T00:00:00Z" } });
152
+ try {
153
+ await mock.run(
154
+ {
155
+ app: {
156
+ id: "c".repeat(64),
157
+ name: "Publication tests",
158
+ description: "Staged application uploads",
159
+ serviceUrl: "https://example.invalid",
160
+ },
161
+ signal,
162
+ },
163
+ async (run) => {
164
+ const writer = mock.application({ access: run.ownerAccess, as: mock.actor("uploader") });
165
+ try {
166
+ const file = await bytesFixture({ name: "document", bytes: Uint8Array.of(4) });
167
+ const pending = await writer.upload({ file, metadata: new Uint8Array() });
168
+ expect(await writer.inspect(pending)).toBe("uploaded");
169
+ const selected = new TextEncoder().encode('{"name":"chosen-at-pin"}');
170
+ await writer.pin(pending, { metadata: selected });
171
+ const reader = mock.reader({ access: run.ownerAccess, as: mock.actor("owner-reader") });
172
+ try {
173
+ expect([...(await reader.object(pending.id)).metadata]).toEqual([...selected]);
174
+ } finally {
175
+ await reader.close();
176
+ }
177
+ expect(await writer.inspect(pending)).toBe("pinned");
178
+ expect((await writer.events({ cursor: null, limit: 10 })).events).toEqual([]);
179
+ mock.advanceTime(1000);
180
+ await mock.publish({ access: run.ownerAccess });
181
+ expect((await writer.events({ cursor: null, limit: 10 })).events).toEqual([expect.objectContaining({ id: pending.id, deleted: false })]);
182
+ } finally {
183
+ await writer.close();
184
+ }
185
+ },
186
+ );
187
+ } finally {
188
+ await mock.close();
189
+ }
190
+ });
191
+ ```
192
+
193
+ `pin(object, { metadata })` snapshots up to 1024 opaque bytes at invocation. Upload metadata remains required. Omitted or explicit `undefined` metadata preserves the last committed value; an empty `Uint8Array` clears it. Successful repins replace metadata at the same effect as pin membership. Failure or cancellation before commit leaves the prior value unchanged; losing a reply after commit retains the replacement. Reads return detached copies. Concurrent pins follow actual commit order, and `inspect` reports membership only, not which metadata update won. Events still need explicit publication. This option is mock-only and adds no native storage capability.
194
+
195
+ Handles and actors grant authority by their original reference, not copied fields or equal labels. Recipient reads check current attachments and keys. Revocation blocks fresh reads but cannot erase downloaded plaintext. No automatic retries or idempotency guarantee is provided. A lost pin or delete acknowledgement can follow a committed effect: reconcile with `inspect`, not a blind retry. Share Add/Remove/End losses use explicit `shares.inspect` under a still-valid grant. Inspection reports current state, not which request committed. Publication remains explicit after reconciliation. A lost upload acknowledgement can leave no application handle: staged bytes and committed charges remain run-owned until cleanup, but no inspection, ID, receipt or fresh client can recover the handle. Upload never pins or publishes implicitly; another explicit upload is another attempt.
196
+
197
+ [Mock application contracts](docs/mock-contracts.md) covers pagination, lost replies, diagnostics, and transport upload limits. [Live runs](docs/live-runs.md) and [live authentication](docs/live-auth.md) describe owner-only external profiles and acknowledged-resource recovery. Nonempty live transfers and real-server compatibility have not been verified.
198
+
199
+ ## Checks
200
+
201
+ ```sh
202
+ pnpm --filter @lumeweb/sia-testing test
203
+ pnpm --filter @lumeweb/sia-testing check-types
204
+ pnpm --filter @lumeweb/sia-testing lint
205
+ pnpm --filter @lumeweb/sia-testing test:package
206
+ pnpm --filter @lumeweb/sia-testing test:consumers
207
+ ```
208
+
209
+ Consumer checks extract and execute the complete README tests against the packed public exports in `node`, `jsdom`, and `happy-dom`. Each environment runs six ordinary tests (the recipes, assertion-failure cleanup, and one Fetch/MSW transport smoke), then two expected timeout failures to check cancellation and cleanup. The checked combination is Node 26.13.0, Vitest 4.1.9, jsdom 29.1.1, happy-dom 20.10.6, and MSW 2.14.6. These checks do not certify other versions, browser providers, or native storage compatibility.
210
+
211
+ The scoped Chromium tests also exercise same-origin iframe-created byte views and abort signals. They check fixture bytes, managed metadata, application upload metadata acceptance, pin metadata capture, and held-read cancellation before reader cleanup through direct mocks and loopback Fetch. These tests import the public source facades through Vite, not the packed exports. The empty scoped page does not initialize the storage SDK. This coverage does not establish other browser families, workers, cross-origin frames, or native storage behavior.
@@ -0,0 +1,8 @@
1
+ import { ApplicationObject, ApplicationPort, ApplicationShareRef, ApplicationShareTarget, ApplicationShares, EventPage, ObjectCursor, ObjectEvent, OwnerShareDetails, OwnerSharePort, OwnerShareRef, PageRequest, ReadObject, ReadPage, ReadPort, ShareInspection, ShareOperation, TestFile } from "./testing/types.js";
2
+ import { MockCredential } from "./testing/runtime.js";
3
+ import { MockConnection } from "./testing/transport.js";
4
+ import { createMockApplication } from "./testing/application-client.js";
5
+ import { MockAuthRequest, createMockAuth } from "./testing/auth-client.js";
6
+ import { createMockReader } from "./testing/client.js";
7
+ import { createMockOwnerShares } from "./testing/owner-client.js";
8
+ export { type ApplicationObject, type ApplicationPort, type ApplicationShareRef, type ApplicationShareTarget, type ApplicationShares, type EventPage, type MockAuthRequest, type MockConnection, type MockCredential, type ObjectCursor, type ObjectEvent, type OwnerShareDetails, type OwnerSharePort, type OwnerShareRef, type PageRequest, type ReadObject, type ReadPage, type ReadPort, type ShareInspection, type ShareOperation, type TestFile, createMockApplication, createMockAuth, createMockOwnerShares, createMockReader };
@@ -0,0 +1,6 @@
1
+ import { createMockReader } from "./testing/client.js";
2
+ import { createMockApplication } from "./testing/application-client.js";
3
+ import { createMockAuth } from "./testing/auth-client.js";
4
+ import { createMockOwnerShares } from "./testing/owner-client.js";
5
+
6
+ export { createMockApplication, createMockAuth, createMockOwnerShares, createMockReader };
@@ -0,0 +1,3 @@
1
+ import { MockConnection, MockEndpoint } from "./testing/transport.js";
2
+ import { startMockServer } from "./testing/http.js";
3
+ export { type MockConnection, type MockEndpoint, startMockServer };
@@ -0,0 +1,3 @@
1
+ import { startMockServer } from "./testing/http.js";
2
+
3
+ export { startMockServer };
@@ -0,0 +1,8 @@
1
+ import { PackedAppKey, PackedFinalizeError, PackedObject, PackedOptions, PackedSdk, PackedSdkOptions, PackedUpload } from "./testing/packed.js";
2
+ import { MockPinnedObject, UploadSdk, UploadSdkOptions } from "./testing/sdk-upload.js";
3
+ import { MutationReplySelector, PinReplySelector } from "./testing/mutations.js";
4
+ import { ActorRef, AppDefinition, ApplicationObject, ApplicationPort, ApplicationShareRef, ApplicationShareTarget, ApplicationShares, BrowserAccess, EventPage, MockManagedShares, MockOptions, MockRun, MockRunOptions, MockShareGrant, MockSia, ObjectCursor, ObjectEvent, OwnerShareDetails, OwnerSharePort, OwnerShareRef, PageRequest, ReadObject, ReadPage, ReadPort, RunLimits, ShareInspection, ShareOperation, TestFile, TestObject, TestShare } from "./testing/types.js";
5
+ import { chunkedFixture } from "./testing/chunked-files.js";
6
+ import { bytesFixture } from "./testing/files.js";
7
+ import { createMockSia } from "./testing/mock.js";
8
+ export { type ActorRef, type AppDefinition, type ApplicationObject, type ApplicationPort, type ApplicationShareRef, type ApplicationShareTarget, type ApplicationShares, type BrowserAccess, type EventPage, type MockManagedShares, type MockOptions, MockPinnedObject, type MockRun, type MockRunOptions, type MockShareGrant, type MockSia, type MutationReplySelector, type ObjectCursor, type ObjectEvent, type OwnerShareDetails, type OwnerSharePort, type OwnerShareRef, type PackedAppKey, PackedFinalizeError, type PackedObject, type PackedOptions, type PackedSdk, type PackedSdkOptions, type PackedUpload, type PageRequest, type PinReplySelector, type ReadObject, type ReadPage, type ReadPort, type RunLimits, type ShareInspection, type ShareOperation, type TestFile, type TestObject, type TestShare, type UploadSdk, type UploadSdkOptions, bytesFixture, chunkedFixture, createMockSia };
@@ -0,0 +1,7 @@
1
+ import { chunkedFixture } from "./testing/chunked-files.js";
2
+ import { bytesFixture } from "./testing/files.js";
3
+ import { PackedFinalizeError } from "./testing/packed.js";
4
+ import { MockPinnedObject } from "./testing/sdk-upload.js";
5
+ import { createMockSia } from "./testing/mock.js";
6
+
7
+ export { MockPinnedObject, PackedFinalizeError, bytesFixture, chunkedFixture, createMockSia };