@fungi.computer/darkroom 0.4.0 → 0.4.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.
- package/README.md +2 -3
- package/dist/execution-error.d.ts +1 -1
- package/docs/api/server.md +1 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -113,9 +113,8 @@ save fails. An ambiguous provider execution is never silently dispatched again.
|
|
|
113
113
|
|
|
114
114
|
Declare `metering: "unmetered"` when your host pays its provider directly. A
|
|
115
115
|
metered host supplies idempotent `admit` and `settle` functions plus its own
|
|
116
|
-
`refusalMessages` for insufficient credit
|
|
117
|
-
|
|
118
|
-
settlement.
|
|
116
|
+
`refusalMessages` for insufficient credit and denied spending. Quotes are
|
|
117
|
+
estimates. Your metering owner decides the customer price and settlement.
|
|
119
118
|
|
|
120
119
|
A recognized provider safety refusal returns HTTP 400 with
|
|
121
120
|
`code: "SAFETY_FILTER_REFUSED"`, `stage: "provider"`, and `retryable: false`.
|
|
@@ -51,7 +51,7 @@ export declare class MediaSafetyFilterRefusal extends MediaExecutionError {
|
|
|
51
51
|
constructor(options?: MediaExecutionErrorOptions);
|
|
52
52
|
}
|
|
53
53
|
/** Why the host's billing owner refused to admit a new generation. */
|
|
54
|
-
export type MediaBillingRefusalCode = "insufficient_credits" | "
|
|
54
|
+
export type MediaBillingRefusalCode = "insufficient_credits" | "denied";
|
|
55
55
|
/** A definitive billing refusal before dispatch; nothing was generated or charged. */
|
|
56
56
|
export declare class MediaBillingRefusal extends Error {
|
|
57
57
|
/** Bounded refusal or failure reason. */
|
package/docs/api/server.md
CHANGED
|
@@ -798,8 +798,7 @@ Private cause plus an independently decoded, safe provider diagnostic.
|
|
|
798
798
|
### MediaBillingRefusalCode
|
|
799
799
|
|
|
800
800
|
```ts
|
|
801
|
-
type MediaBillingRefusalCode =
|
|
802
|
-
"insufficient_credits" | "daily_limit_reached" | "denied";
|
|
801
|
+
type MediaBillingRefusalCode = "insufficient_credits" | "denied";
|
|
803
802
|
```
|
|
804
803
|
|
|
805
804
|
Why the host's billing owner refused to admit a new generation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/darkroom",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"description": "Media generation, durable output retention and provenance with host-owned authority and billing",
|
|
6
6
|
"type": "module",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"exifreader": "4.46.0",
|
|
60
60
|
"@fungi.computer/ts-webp": "0.1.6",
|
|
61
61
|
"@xmldom/xmldom": "0.9.12",
|
|
62
|
-
"@fungi.computer/agar": "0.6.
|
|
62
|
+
"@fungi.computer/agar": "0.6.1",
|
|
63
63
|
"@fungi.computer/capnweb": "0.12.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|