@lumeweb/sia-testing 0.0.0-stage → 0.0.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.
Files changed (90) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +202 -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 +91 -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,203 @@
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. A managed run owns the synthetic fixture objects and sharing keys, and your application code receives restricted ports instead of 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`, and 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, so the empty metadata above is intentional rather than a usable file record for every application.
50
+
51
+ 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; [the packed simulation contract](https://github.com/LumeWeb/web/blob/develop/libs/sia-testing/docs/mock-contracts.md#direct-sdk-shaped-packed-simulation) covers platform signatures, partial results and its non-cryptographic `seal` behavior. For individual SDK 0.2 uploads, `mock.uploadSdk` accepts `MockPinnedObject` handles; [the direct upload contract](https://github.com/LumeWeb/web/blob/develop/libs/sia-testing/docs/mock-contracts.md#direct-sdk-02-upload-simulation) covers those.
52
+
53
+ `fileFixture(path)` from `/node` streams a local file and records its digest, so an 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, and deletion does not refund those allowances.
54
+
55
+ Applications can edit mock shares only through explicit per-share grants. `run.shares.grant` binds an actor, label, and permitted operations; install the handle with `shareGrants` on `mock.application` or an endpoint connection. `ApplicationPort.shares` lists granted targets, inspects lifecycle and membership, and supports Add, Remove, and End. End withdraws sharing without deleting owned payloads. [Share grant contracts](https://github.com/LumeWeb/web/blob/develop/libs/sia-testing/docs/mock-contracts.md#edit-an-explicitly-granted-share) describe the deadlines, cancellation, and cleanup.
56
+
57
+ ## Choose an entry
58
+
59
+ | Entry | Use it for |
60
+ | --------- | ------------------------------------------------------------------------ |
61
+ | `/mock` | Portable byte fixtures, direct application ports, and driver controls |
62
+ | `/node` | Owned callback runs, local files, and explicitly consented live profiles |
63
+ | `/vitest` | Native Vitest fixtures with a portable mock run per using test |
64
+ | `/client` | Fetch-backed application ports and mock sign-in |
65
+ | `/http` | An optional owned loopback listener over a mock |
66
+ | `/msw` | An optional interceptor at an explicit base URL over a mock |
67
+
68
+ No Vitest plugin is required, and 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.
69
+
70
+ ## Select a simulated DOM environment
71
+
72
+ The 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 you choose that environment, and install the optional `msw` peer for MSW-backed Fetch tests. No package plugin or global shims are needed.
73
+
74
+ 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.
75
+
76
+ ## Use the Vitest factory for direct controls
77
+
78
+ Save this complete recipe in its own test file. Each test, including concurrent tests, gets a separate mock and run.
79
+
80
+ ```ts recipe=fixture
81
+ import { expect } from "vitest";
82
+ import { bytesFixture } from "@lumeweb/sia-testing/mock";
83
+ import { createSiaTest } from "@lumeweb/sia-testing/vitest";
84
+
85
+ const siaTest = createSiaTest({
86
+ backend: {
87
+ kind: "mock",
88
+ app: {
89
+ id: "b".repeat(64),
90
+ name: "Fixture tests",
91
+ description: "Isolated application fixtures",
92
+ serviceUrl: "https://example.invalid",
93
+ },
94
+ },
95
+ });
96
+
97
+ for (const label of ["left", "right"]) {
98
+ siaTest.concurrent(`isolates ${label}'s objects`, async ({ sia }) => {
99
+ const file = await bytesFixture({ name: label, bytes: Uint8Array.of(3) });
100
+ const object = await sia.objects.upload({ file, metadata: new Uint8Array() });
101
+ const actor = sia.mock.actor(label);
102
+ const reader = sia.mock.reader({ access: sia.ownerAccess, as: actor });
103
+ try {
104
+ const hold = sia.mock.faults.hold({ actor, operation: "objects" });
105
+ const reading = reader.objects({ offset: 0, limit: 10 });
106
+ await hold.started();
107
+ hold.release();
108
+ expect((await reading).objects.map((item) => item.id)).toEqual([object.id]);
109
+ } finally {
110
+ await reader.close();
111
+ }
112
+ });
113
+ }
114
+ ```
115
+
116
+ The factory combines the runner cancellation signal with the optional external `signal`. An already-aborted signal prevents setup, and sharing an external signal cancels every test that uses it. `onTestFinished` closes the mock after a failure or timeout, including a failed dependent teardown, and `finally` also closes it after a dynamic skip. Repeated cleanup shares one promise. Run cleanup closes retained ports before deleting fixture state, including after assertion failures.
117
+
118
+ Caller-created controllers can cancel individual reads without closing the reader or run. The packed Vitest checks cover the 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.
119
+
120
+ Cancellation cannot force an unrelated user promise to settle, so 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, because backend teardown cannot synchronously stop collection in a remote client.
121
+
122
+ ## Test in a browser
123
+
124
+ Playwright tests compose the public `/node` `withSiaRun` with `/http` `startMockServer` through `test.extend`. There is no Playwright entry point in this package.
125
+
126
+ Create contexts with your own context options, base URL, proxy, service-worker settings, and empty storage state. Obtain credentials from `endpoint.connection({ access, as })` and install them before navigation. Close contexts before the endpoint, and the endpoint before `withSiaRun` returns, using nested `try/finally` blocks so a partial setup failure still cleans up. The portable Vitest fixture owns no browser contexts or navigation.
127
+
128
+ Node tests that need `backend.payloadStorage: { kind: "temporary-files", limits }` keep using `/node` `withSiaRun` inside a native Vitest fixture or callback. That storage mode supports direct Node calls only and rejects HTTP and browser use. `createSiaTest` accepts portable `MockOptions` and has no payload-storage option.
129
+
130
+ ## Publish application writes
131
+
132
+ 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.
133
+
134
+ ```ts recipe=publication
135
+ import { expect, test } from "vitest";
136
+ import { bytesFixture, createMockSia } from "@lumeweb/sia-testing/mock";
137
+
138
+ test("publishes a pinned application object explicitly", async ({ signal }) => {
139
+ const mock = createMockSia({ clock: { start: "2026-01-01T00:00:00Z" } });
140
+ try {
141
+ await mock.run(
142
+ {
143
+ app: {
144
+ id: "c".repeat(64),
145
+ name: "Publication tests",
146
+ description: "Staged application uploads",
147
+ serviceUrl: "https://example.invalid",
148
+ },
149
+ signal,
150
+ },
151
+ async (run) => {
152
+ const writer = mock.application({ access: run.ownerAccess, as: mock.actor("uploader") });
153
+ try {
154
+ const file = await bytesFixture({ name: "document", bytes: Uint8Array.of(4) });
155
+ const pending = await writer.upload({ file, metadata: new Uint8Array() });
156
+ expect(await writer.inspect(pending)).toBe("uploaded");
157
+ const selected = new TextEncoder().encode('{"name":"chosen-at-pin"}');
158
+ await writer.pin(pending, { metadata: selected });
159
+ const reader = mock.reader({ access: run.ownerAccess, as: mock.actor("owner-reader") });
160
+ try {
161
+ expect([...(await reader.object(pending.id)).metadata]).toEqual([...selected]);
162
+ } finally {
163
+ await reader.close();
164
+ }
165
+ expect(await writer.inspect(pending)).toBe("pinned");
166
+ expect((await writer.events({ cursor: null, limit: 10 })).events).toEqual([]);
167
+ mock.advanceTime(1000);
168
+ await mock.publish({ access: run.ownerAccess });
169
+ expect((await writer.events({ cursor: null, limit: 10 })).events).toEqual([expect.objectContaining({ id: pending.id, deleted: false })]);
170
+ } finally {
171
+ await writer.close();
172
+ }
173
+ },
174
+ );
175
+ } finally {
176
+ await mock.close();
177
+ }
178
+ });
179
+ ```
180
+
181
+ `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, and losing a reply after commit keeps the replacement. Reads return detached copies. Concurrent pins follow actual commit order, and `inspect` reports membership only, not which metadata update won. Events need explicit publication. This option is mock-only and adds no native storage capability.
182
+
183
+ Handles and actors grant authority by their original reference, not by copied fields or equal labels. Recipient reads check current attachments and keys. Revocation blocks fresh reads but cannot erase downloaded plaintext. The package provides no automatic retries and no idempotency guarantee.
184
+
185
+ A lost acknowledgement can follow a committed effect. Reconcile with `inspect` rather than a blind retry. For a share Add, Remove, or End, use explicit `shares.inspect` under a still-valid grant; inspection reports current state, not which request committed. Publication stays explicit after reconciliation.
186
+
187
+ A lost upload acknowledgement can leave no application handle. Staged bytes and committed charges remain run-owned until cleanup, and no inspection, ID, receipt or fresh client can recover the handle. Upload never pins or publishes implicitly, so another explicit upload is another attempt.
188
+
189
+ [Mock application contracts](https://github.com/LumeWeb/web/blob/develop/libs/sia-testing/docs/mock-contracts.md) covers pagination, lost replies, diagnostics, and transport upload limits. [Live runs](https://github.com/LumeWeb/web/blob/develop/libs/sia-testing/docs/live-runs.md) and [live authentication](https://github.com/LumeWeb/web/blob/develop/libs/sia-testing/docs/live-auth.md) describe owner-only external profiles and acknowledged-resource recovery. Nonempty live transfers and real-server compatibility have not been verified.
190
+
191
+ ## Checks
192
+
193
+ ```sh
194
+ pnpm --filter @lumeweb/sia-testing test
195
+ pnpm --filter @lumeweb/sia-testing check-types
196
+ pnpm --filter @lumeweb/sia-testing lint
197
+ pnpm --filter @lumeweb/sia-testing test:package
198
+ pnpm --filter @lumeweb/sia-testing test:consumers
199
+ ```
200
+
201
+ 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, covering the recipes, assertion-failure cleanup, and one Fetch and MSW transport smoke, then two expected timeout failures that 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.
202
+
203
+ 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 rather than the packed exports, and 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 };