@fungi.computer/darkroom 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 (80) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +315 -2
  3. package/dist/app-media-contracts.d.ts +499 -0
  4. package/dist/app-media-contracts.js +98 -0
  5. package/dist/browser-failure.d.ts +40 -0
  6. package/dist/browser-failure.js +39 -0
  7. package/dist/browser.d.ts +2 -0
  8. package/dist/browser.js +1 -0
  9. package/dist/cloudflare/provider.d.ts +13 -0
  10. package/dist/cloudflare/provider.js +140 -0
  11. package/dist/cloudflare/reference-images.d.ts +42 -0
  12. package/dist/cloudflare/reference-images.js +102 -0
  13. package/dist/cloudflare.d.ts +6 -0
  14. package/dist/cloudflare.js +4 -0
  15. package/dist/cost-estimate.d.ts +22 -0
  16. package/dist/cost-estimate.js +76 -0
  17. package/dist/effect.d.ts +2 -0
  18. package/dist/effect.js +2 -0
  19. package/dist/execution-error.d.ts +54 -0
  20. package/dist/execution-error.js +62 -0
  21. package/dist/failure.d.ts +2 -0
  22. package/dist/failure.js +8 -0
  23. package/dist/gateway-models.d.ts +23 -0
  24. package/dist/gateway-models.js +77 -0
  25. package/dist/gateway-wire.d.ts +16 -0
  26. package/dist/gateway-wire.js +22 -0
  27. package/dist/index.d.ts +361 -0
  28. package/dist/index.js +611 -0
  29. package/dist/media-binding.d.ts +291 -0
  30. package/dist/media-binding.js +146 -0
  31. package/dist/media-generation.d.ts +10 -0
  32. package/dist/media-generation.js +110 -0
  33. package/dist/media-operation-contract.d.ts +104 -0
  34. package/dist/media-operation-contract.js +29 -0
  35. package/dist/media-operation-do.d.ts +55 -0
  36. package/dist/media-operation-do.js +105 -0
  37. package/dist/media-operation-owner.d.ts +301 -0
  38. package/dist/media-operation-owner.js +903 -0
  39. package/dist/media-operation-storage.d.ts +81 -0
  40. package/dist/media-operation-storage.js +1 -0
  41. package/dist/media-operation.d.ts +33 -0
  42. package/dist/media-operation.js +230 -0
  43. package/dist/model-catalog.d.ts +456 -0
  44. package/dist/model-catalog.js +565 -0
  45. package/dist/neurons.d.ts +4 -0
  46. package/dist/neurons.js +4 -0
  47. package/dist/provenance-bytes.d.ts +3 -0
  48. package/dist/provenance-bytes.js +15 -0
  49. package/dist/provenance-export.d.ts +23 -0
  50. package/dist/provenance-export.js +103 -0
  51. package/dist/provenance-jpeg.d.ts +3 -0
  52. package/dist/provenance-jpeg.js +76 -0
  53. package/dist/provenance-png.d.ts +1 -0
  54. package/dist/provenance-png.js +21 -0
  55. package/dist/provenance-xmp.d.ts +2 -0
  56. package/dist/provenance-xmp.js +54 -0
  57. package/dist/provenance.d.ts +20 -0
  58. package/dist/provenance.js +58 -0
  59. package/dist/server.d.ts +158 -0
  60. package/dist/server.js +207 -0
  61. package/dist/video-providers/index.d.ts +14 -0
  62. package/dist/video-providers/index.js +14 -0
  63. package/dist/video-providers/minimax.d.ts +25 -0
  64. package/dist/video-providers/minimax.js +63 -0
  65. package/dist/video-providers/reference-encoding.d.ts +4 -0
  66. package/dist/video-providers/reference-encoding.js +11 -0
  67. package/dist/video-providers/types.d.ts +28 -0
  68. package/dist/video-providers/types.js +1 -0
  69. package/dist/video-providers/unified.d.ts +18 -0
  70. package/dist/video-providers/unified.js +52 -0
  71. package/docs/api/README.md +16 -0
  72. package/docs/api/app-media-contracts.md +507 -0
  73. package/docs/api/browser.md +126 -0
  74. package/docs/api/cloudflare.md +678 -0
  75. package/docs/api/effect.md +39 -0
  76. package/docs/api/index.md +1775 -0
  77. package/docs/api/modules.md +19 -0
  78. package/docs/api/provenance-export.md +114 -0
  79. package/docs/api/server.md +1672 -0
  80. package/package.json +110 -3
@@ -0,0 +1,19 @@
1
+ <!-- Generated by Botanical API docs (TypeDoc + typedoc-plugin-markdown). Do not edit. -->
2
+
3
+ [**@fungi.computer/darkroom**](README.md)
4
+
5
+ ---
6
+
7
+ # @fungi.computer/darkroom
8
+
9
+ ## Modules
10
+
11
+ | Module | Description |
12
+ | --------------------------------------------- | ----------- |
13
+ | [app-media-contracts](app-media-contracts.md) | - |
14
+ | [browser](browser.md) | - |
15
+ | [cloudflare](cloudflare.md) | - |
16
+ | [effect](effect.md) | - |
17
+ | [index](index.md) | - |
18
+ | [provenance-export](provenance-export.md) | - |
19
+ | [server](server.md) | - |
@@ -0,0 +1,114 @@
1
+ <!-- Generated by Botanical API docs (TypeDoc + typedoc-plugin-markdown). Do not edit. -->
2
+
3
+ [**@fungi.computer/darkroom**](README.md)
4
+
5
+ ---
6
+
7
+ [@fungi.computer/darkroom](modules.md) / provenance-export
8
+
9
+ # provenance-export
10
+
11
+ ## Classes
12
+
13
+ ### ProvenanceExportError
14
+
15
+ A refusal to export unsafe, unsupported or oversized image bytes.
16
+
17
+ #### Extends
18
+
19
+ - `Error`
20
+
21
+ #### Constructors
22
+
23
+ ##### Constructor
24
+
25
+ ```ts
26
+ new ProvenanceExportError(reason, options?): ProvenanceExportError;
27
+ ```
28
+
29
+ ###### Parameters
30
+
31
+ | Parameter | Type | Description |
32
+ | ---------- | ----------------------------------------------------- | ----------------------- |
33
+ | `reason` | [`ProvenanceExportFailure`](#provenanceexportfailure) | Bounded refusal reason. |
34
+ | `options?` | `ErrorOptions` | - |
35
+
36
+ ###### Returns
37
+
38
+ [`ProvenanceExportError`](#provenanceexporterror)
39
+
40
+ ###### Overrides
41
+
42
+ ```ts
43
+ Error.constructor;
44
+ ```
45
+
46
+ #### Properties
47
+
48
+ ##### name
49
+
50
+ ```ts
51
+ readonly name: "ProvenanceExportError" = "ProvenanceExportError";
52
+ ```
53
+
54
+ Stable export refusal name.
55
+
56
+ ###### Overrides
57
+
58
+ ```ts
59
+ Error.name;
60
+ ```
61
+
62
+ ##### reason
63
+
64
+ ```ts
65
+ readonly reason: ProvenanceExportFailure;
66
+ ```
67
+
68
+ Bounded refusal reason.
69
+
70
+ ## Type Aliases
71
+
72
+ ### ProvenanceExportFailure
73
+
74
+ ```ts
75
+ type ProvenanceExportFailure =
76
+ "too-large" | "signed-image" | "invalid-image" | "unsupported-format";
77
+ ```
78
+
79
+ Why a lossless public image export was refused.
80
+
81
+ ## Variables
82
+
83
+ ### maximumPrintDownloadBytes
84
+
85
+ ```ts
86
+ const maximumPrintDownloadBytes: number;
87
+ ```
88
+
89
+ The admitted Computer file read and generated output share this launch bound.
90
+
91
+ ## Functions
92
+
93
+ ### stripPrivateProvenance()
94
+
95
+ ```ts
96
+ function stripPrivateProvenance(bytes): Promise<{
97
+ bytes: Uint8Array;
98
+ type: string;
99
+ extension: string;
100
+ }>;
101
+ ```
102
+
103
+ Lossless browser export. Never mutates the input or falls back to private bytes.
104
+
105
+ #### Parameters
106
+
107
+ | Parameter | Type |
108
+ | --------- | ------------ |
109
+ | `bytes` | `Uint8Array` |
110
+
111
+ #### Returns
112
+
113
+ `Promise`\<\{ `bytes`: `Uint8Array`; `type`: `string`; `extension`: `string`;
114
+ \}\>