@nodaro/sdk 2.65.1 → 2.66.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/dist/{chunk-UIM5SLPP.cjs → chunk-3G65RIZS.cjs} +4 -4
- package/dist/{chunk-UIM5SLPP.cjs.map → chunk-3G65RIZS.cjs.map} +1 -1
- package/dist/{chunk-P2JYDWZT.cjs → chunk-4AD3CBDK.cjs} +14 -11
- package/dist/chunk-4AD3CBDK.cjs.map +1 -0
- package/dist/{chunk-GKTZHICS.cjs → chunk-4AZB4MN7.cjs} +5 -5
- package/dist/{chunk-GKTZHICS.cjs.map → chunk-4AZB4MN7.cjs.map} +1 -1
- package/dist/{chunk-T23YD5BR.js → chunk-4IXVKTA4.js} +5 -5
- package/dist/{chunk-T23YD5BR.js.map → chunk-4IXVKTA4.js.map} +1 -1
- package/dist/{chunk-JOXZ4ZIF.cjs → chunk-7BMKQ36V.cjs} +2 -2
- package/dist/{chunk-JOXZ4ZIF.cjs.map → chunk-7BMKQ36V.cjs.map} +1 -1
- package/dist/{chunk-4BAHF762.cjs → chunk-7FLTDTHR.cjs} +2 -2
- package/dist/chunk-7FLTDTHR.cjs.map +1 -0
- package/dist/{chunk-SVWEWBXI.js → chunk-ADW6LPRT.js} +17 -2
- package/dist/chunk-ADW6LPRT.js.map +1 -0
- package/dist/{chunk-HW6U7WXU.js → chunk-AKKCS7MF.js} +4 -4
- package/dist/{chunk-HW6U7WXU.js.map → chunk-AKKCS7MF.js.map} +1 -1
- package/dist/{chunk-YLXCXVYF.cjs → chunk-BETFYVOR.cjs} +5 -5
- package/dist/{chunk-YLXCXVYF.cjs.map → chunk-BETFYVOR.cjs.map} +1 -1
- package/dist/{chunk-MQRPXZW5.js → chunk-CCXY4ZJM.js} +3 -3
- package/dist/{chunk-MQRPXZW5.js.map → chunk-CCXY4ZJM.js.map} +1 -1
- package/dist/{chunk-E37CVHWW.js → chunk-CNST37UF.js} +2 -2
- package/dist/chunk-CNST37UF.js.map +1 -0
- package/dist/{chunk-K2QVR3LG.js → chunk-CYEIT3FA.js} +24 -20
- package/dist/chunk-CYEIT3FA.js.map +1 -0
- package/dist/{chunk-KP2DIIKO.cjs → chunk-EJJIA765.cjs} +5 -5
- package/dist/{chunk-KP2DIIKO.cjs.map → chunk-EJJIA765.cjs.map} +1 -1
- package/dist/{chunk-7QK2NXJA.js → chunk-F3AV3TC7.js} +2 -2
- package/dist/chunk-F3AV3TC7.js.map +1 -0
- package/dist/{chunk-UPGZTLK7.cjs → chunk-F6KAMECM.cjs} +6 -3
- package/dist/chunk-F6KAMECM.cjs.map +1 -0
- package/dist/{chunk-3HL3IHVE.js → chunk-FFT2YPB4.js} +3 -3
- package/dist/{chunk-3HL3IHVE.js.map → chunk-FFT2YPB4.js.map} +1 -1
- package/dist/{chunk-P6E4QDJN.js → chunk-GG7DOKTH.js} +2 -2
- package/dist/chunk-GG7DOKTH.js.map +1 -0
- package/dist/chunk-HADYBDBT.js +19 -0
- package/dist/chunk-HADYBDBT.js.map +1 -0
- package/dist/chunk-HFDTOEAL.cjs +21 -0
- package/dist/chunk-HFDTOEAL.cjs.map +1 -0
- package/dist/{chunk-WNXX3B2A.js → chunk-IJAJTVEW.js} +14 -11
- package/dist/chunk-IJAJTVEW.js.map +1 -0
- package/dist/{chunk-SS3B6PHT.cjs → chunk-ITQB5ADE.cjs} +2 -2
- package/dist/chunk-ITQB5ADE.cjs.map +1 -0
- package/dist/{chunk-CRIQLLR2.js → chunk-JZO5WWKX.js} +51 -7
- package/dist/chunk-JZO5WWKX.js.map +1 -0
- package/dist/{chunk-Y6V6CBY5.js → chunk-KNNSGWHO.js} +2 -2
- package/dist/{chunk-Y6V6CBY5.js.map → chunk-KNNSGWHO.js.map} +1 -1
- package/dist/{chunk-HW3CSUVC.cjs → chunk-LCQIQFWD.cjs} +17 -2
- package/dist/chunk-LCQIQFWD.cjs.map +1 -0
- package/dist/{chunk-3TRBBYSN.js → chunk-LQMJFFST.js} +6 -4
- package/dist/chunk-LQMJFFST.js.map +1 -0
- package/dist/{chunk-JDEZHITT.js → chunk-MC77SD42.js} +2 -2
- package/dist/chunk-MC77SD42.js.map +1 -0
- package/dist/chunk-N4FKPJ7J.cjs +4 -0
- package/dist/chunk-N4FKPJ7J.cjs.map +1 -0
- package/dist/{chunk-BYFLERF3.cjs → chunk-OET5W4QZ.cjs} +40 -36
- package/dist/chunk-OET5W4QZ.cjs.map +1 -0
- package/dist/{chunk-2DZWWIJ4.cjs → chunk-OI4RCW2J.cjs} +2 -2
- package/dist/chunk-OI4RCW2J.cjs.map +1 -0
- package/dist/{chunk-7LODCIQK.js → chunk-OJHJBNJZ.js} +2 -2
- package/dist/{chunk-7LODCIQK.js.map → chunk-OJHJBNJZ.js.map} +1 -1
- package/dist/{chunk-L3RTC4FL.js → chunk-RBUISD4V.js} +3 -3
- package/dist/chunk-RBUISD4V.js.map +1 -0
- package/dist/{chunk-7QOCWJKD.cjs → chunk-RPV4QBHS.cjs} +2 -2
- package/dist/{chunk-7QOCWJKD.cjs.map → chunk-RPV4QBHS.cjs.map} +1 -1
- package/dist/chunk-RQ6GE7KG.js +3 -0
- package/dist/chunk-RQ6GE7KG.js.map +1 -0
- package/dist/{chunk-C3LJ7HIH.cjs → chunk-S5BOU6JG.cjs} +6 -4
- package/dist/chunk-S5BOU6JG.cjs.map +1 -0
- package/dist/{chunk-3CB4WYEY.cjs → chunk-S5VSDJAM.cjs} +51 -7
- package/dist/chunk-S5VSDJAM.cjs.map +1 -0
- package/dist/{chunk-A75Q7UEU.js → chunk-SZ67PDKE.js} +3 -3
- package/dist/{chunk-A75Q7UEU.js.map → chunk-SZ67PDKE.js.map} +1 -1
- package/dist/{chunk-TBFA6QPH.cjs → chunk-TQLOD7OL.cjs} +4 -4
- package/dist/{chunk-TBFA6QPH.cjs.map → chunk-TQLOD7OL.cjs.map} +1 -1
- package/dist/{chunk-GRATHB3C.cjs → chunk-W4KKCHJA.cjs} +11 -11
- package/dist/{chunk-GRATHB3C.cjs.map → chunk-W4KKCHJA.cjs.map} +1 -1
- package/dist/{chunk-WUKIJJG2.cjs → chunk-W63ZKKYT.cjs} +2 -2
- package/dist/chunk-W63ZKKYT.cjs.map +1 -0
- package/dist/{chunk-DR5WM36L.cjs → chunk-XRYSHC2O.cjs} +22 -22
- package/dist/chunk-XRYSHC2O.cjs.map +1 -0
- package/dist/{chunk-A5UGBCAW.js → chunk-YE6X5BQ2.js} +3 -3
- package/dist/{chunk-A5UGBCAW.js.map → chunk-YE6X5BQ2.js.map} +1 -1
- package/dist/{chunk-P2C33IOF.js → chunk-YEOK5A5H.js} +6 -3
- package/dist/chunk-YEOK5A5H.js.map +1 -0
- package/dist/entries/apps.cjs +2 -2
- package/dist/entries/apps.d.cts +2 -1
- package/dist/entries/apps.d.ts +2 -1
- package/dist/entries/apps.js +1 -1
- package/dist/entries/cast-swap.cjs +2 -2
- package/dist/entries/cast-swap.d.cts +16 -12
- package/dist/entries/cast-swap.d.ts +16 -12
- package/dist/entries/cast-swap.js +1 -1
- package/dist/entries/characters.d.cts +1 -1
- package/dist/entries/characters.d.ts +1 -1
- package/dist/entries/client.cjs +27 -26
- package/dist/entries/client.d.cts +4 -1
- package/dist/entries/client.d.ts +4 -1
- package/dist/entries/client.js +22 -21
- package/dist/entries/copilot.cjs +4 -4
- package/dist/entries/copilot.js +3 -3
- package/dist/entries/core.cjs +6 -6
- package/dist/entries/core.js +2 -2
- package/dist/entries/creatures.d.cts +1 -1
- package/dist/entries/creatures.d.ts +1 -1
- package/dist/entries/credits.cjs +2 -2
- package/dist/entries/credits.d.cts +89 -1
- package/dist/entries/credits.d.ts +89 -1
- package/dist/entries/credits.js +1 -1
- package/dist/entries/edit.cjs +7 -7
- package/dist/entries/edit.d.cts +2 -2
- package/dist/entries/edit.d.ts +2 -2
- package/dist/entries/edit.js +2 -2
- package/dist/entries/errors.cjs +28 -28
- package/dist/entries/errors.d.cts +11 -6
- package/dist/entries/errors.d.ts +11 -6
- package/dist/entries/errors.js +1 -1
- package/dist/entries/gallery.cjs +2 -2
- package/dist/entries/gallery.d.cts +5 -0
- package/dist/entries/gallery.d.ts +5 -0
- package/dist/entries/gallery.js +1 -1
- package/dist/entries/jobs.cjs +2 -2
- package/dist/entries/jobs.d.cts +26 -1
- package/dist/entries/jobs.d.ts +26 -1
- package/dist/entries/jobs.js +1 -1
- package/dist/entries/library.cjs +2 -2
- package/dist/entries/library.d.cts +6 -0
- package/dist/entries/library.d.ts +6 -0
- package/dist/entries/library.js +1 -1
- package/dist/entries/llm.cjs +2 -2
- package/dist/entries/llm.d.cts +1 -1
- package/dist/entries/llm.d.ts +1 -1
- package/dist/entries/llm.js +1 -1
- package/dist/entries/locations.d.cts +1 -1
- package/dist/entries/locations.d.ts +1 -1
- package/dist/entries/media.cjs +4 -4
- package/dist/entries/media.js +3 -3
- package/dist/entries/models.cjs +2 -2
- package/dist/entries/models.d.cts +2 -0
- package/dist/entries/models.d.ts +2 -0
- package/dist/entries/models.js +1 -1
- package/dist/entries/nodes.cjs +3 -3
- package/dist/entries/nodes.d.cts +1 -1
- package/dist/entries/nodes.d.ts +1 -1
- package/dist/entries/nodes.js +2 -2
- package/dist/entries/objects.d.cts +1 -1
- package/dist/entries/objects.d.ts +1 -1
- package/dist/entries/scene3d.d.cts +2 -2
- package/dist/entries/scene3d.d.ts +2 -2
- package/dist/entries/studio.cjs +5 -5
- package/dist/entries/studio.js +2 -2
- package/dist/entries/surface.cjs +13 -0
- package/dist/entries/surface.cjs.map +1 -0
- package/dist/entries/surface.d.cts +47 -0
- package/dist/entries/surface.d.ts +47 -0
- package/dist/entries/surface.js +4 -0
- package/dist/entries/surface.js.map +1 -0
- package/dist/entries/uploads.cjs +2 -2
- package/dist/entries/uploads.d.cts +4 -1
- package/dist/entries/uploads.d.ts +4 -1
- package/dist/entries/uploads.js +1 -1
- package/dist/entries/voices.cjs +2 -2
- package/dist/entries/voices.d.cts +32 -9
- package/dist/entries/voices.d.ts +32 -9
- package/dist/entries/voices.js +1 -1
- package/dist/index.cjs +91 -85
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +25 -23
- package/dist/{nodes-BXL3qXlY.d.ts → nodes-CBWTkR37.d.ts} +18 -2
- package/dist/{nodes-Dx8rpU12.d.cts → nodes-YwzFHsJH.d.cts} +18 -2
- package/dist/supabase-browser.cjs +43 -5
- package/dist/supabase-browser.cjs.map +1 -1
- package/dist/supabase-browser.d.cts +11 -0
- package/dist/supabase-browser.d.ts +11 -0
- package/dist/supabase-browser.js +43 -5
- package/dist/supabase-browser.js.map +1 -1
- package/package.json +8 -3
- package/dist/chunk-2DZWWIJ4.cjs.map +0 -1
- package/dist/chunk-3CB4WYEY.cjs.map +0 -1
- package/dist/chunk-3TRBBYSN.js.map +0 -1
- package/dist/chunk-4BAHF762.cjs.map +0 -1
- package/dist/chunk-7QK2NXJA.js.map +0 -1
- package/dist/chunk-BYFLERF3.cjs.map +0 -1
- package/dist/chunk-C3LJ7HIH.cjs.map +0 -1
- package/dist/chunk-CRIQLLR2.js.map +0 -1
- package/dist/chunk-DR5WM36L.cjs.map +0 -1
- package/dist/chunk-E37CVHWW.js.map +0 -1
- package/dist/chunk-HW3CSUVC.cjs.map +0 -1
- package/dist/chunk-JDEZHITT.js.map +0 -1
- package/dist/chunk-K2QVR3LG.js.map +0 -1
- package/dist/chunk-L3RTC4FL.js.map +0 -1
- package/dist/chunk-P2C33IOF.js.map +0 -1
- package/dist/chunk-P2JYDWZT.cjs.map +0 -1
- package/dist/chunk-P6E4QDJN.js.map +0 -1
- package/dist/chunk-SS3B6PHT.cjs.map +0 -1
- package/dist/chunk-SVWEWBXI.js.map +0 -1
- package/dist/chunk-UPGZTLK7.cjs.map +0 -1
- package/dist/chunk-WNXX3B2A.js.map +0 -1
- package/dist/chunk-WUKIJJG2.cjs.map +0 -1
|
@@ -45,6 +45,87 @@ interface UserBalance {
|
|
|
45
45
|
* offer switched on — absent means "no popup, no banner, no block".
|
|
46
46
|
*/
|
|
47
47
|
welcomeOffer?: WelcomeOfferState;
|
|
48
|
+
/**
|
|
49
|
+
* A deployment with a single payer only: the caller's own allowance, in
|
|
50
|
+
* credits — the figure to show there, since `total` is the personal balance,
|
|
51
|
+
* which does not fund runs on such a deployment. `null` for the billing
|
|
52
|
+
* account itself, or when the figure could not be read (never treat it as 0).
|
|
53
|
+
* Absent on every other deployment.
|
|
54
|
+
*/
|
|
55
|
+
allowance?: BalanceAllowance | null;
|
|
56
|
+
/**
|
|
57
|
+
* The same credit figures in the deployment's own unit, converted by the
|
|
58
|
+
* server — present only on a deployment that shows its own unit instead of
|
|
59
|
+
* credits. Render these as they are; never convert credits yourself. Absent
|
|
60
|
+
* for the billing account's own read on a deployment with a single payer:
|
|
61
|
+
* its balance is the deployment's pool, which stays in credits.
|
|
62
|
+
*/
|
|
63
|
+
display?: BalanceDisplay;
|
|
64
|
+
}
|
|
65
|
+
/** `UserBalance.allowance` — a deployment with a single payer: the caller's own allowance, in credits. */
|
|
66
|
+
interface BalanceAllowance {
|
|
67
|
+
/** Credits the caller was granted. */
|
|
68
|
+
granted: number;
|
|
69
|
+
/** Credits the caller has left of it. */
|
|
70
|
+
remaining: number;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the deployment refuses a run beyond the allowance. `false` = the
|
|
73
|
+
* allowance is shown, not enforced: gate a run on `remaining` only when true.
|
|
74
|
+
*/
|
|
75
|
+
enforced: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The unit a `display` object is in. A deployment can show its own unit
|
|
79
|
+
* instead of credits; its figures are then converted by the server, so a
|
|
80
|
+
* client renders them as they are and never multiplies by a rate.
|
|
81
|
+
*/
|
|
82
|
+
interface DisplayUnitInfo {
|
|
83
|
+
/** The unit's label — what the deployment calls its credits. */
|
|
84
|
+
unit: string;
|
|
85
|
+
/** Decimal places the converted figures carry (0–4). */
|
|
86
|
+
decimals: number;
|
|
87
|
+
/**
|
|
88
|
+
* The unit's word per interface language, when the deployment gives one per
|
|
89
|
+
* language (locale id → word, e.g. `{ en: "points", he: "נקודות" }`). Show
|
|
90
|
+
* `unitLabels[locale] ?? unit`; a language without an entry uses `unit`.
|
|
91
|
+
* The server does not know the viewer's interface language, so it sends the
|
|
92
|
+
* words and the client picks.
|
|
93
|
+
*/
|
|
94
|
+
unitLabels?: Record<string, string>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* `UserBalance.display` — the balance's credit figures in the deployment's own
|
|
98
|
+
* unit, converted by the server. `null` = the figure is unavailable (show an em
|
|
99
|
+
* dash, never 0). The optional keys are present exactly when the raw
|
|
100
|
+
* `allowance`, `externalWallet` and `welcomeOffer` are.
|
|
101
|
+
*/
|
|
102
|
+
interface BalanceDisplay extends DisplayUnitInfo {
|
|
103
|
+
total: number | null;
|
|
104
|
+
subscription: number | null;
|
|
105
|
+
topup: number | null;
|
|
106
|
+
dailySpent: number | null;
|
|
107
|
+
dailyLimit: number | null;
|
|
108
|
+
monthlyAllocation: number | null;
|
|
109
|
+
appCreditsAllowance: number | null;
|
|
110
|
+
allowance?: {
|
|
111
|
+
granted: number | null;
|
|
112
|
+
remaining: number | null;
|
|
113
|
+
} | null;
|
|
114
|
+
externalWallet?: {
|
|
115
|
+
available: number | null;
|
|
116
|
+
};
|
|
117
|
+
welcomeOffer?: {
|
|
118
|
+
credits: number | null;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/** `ModelCostsResult.display` — each priced identifier's credits, in the deployment's own unit. */
|
|
122
|
+
interface ModelCostsDisplay extends DisplayUnitInfo {
|
|
123
|
+
/** The same identifiers as `data`, converted. An id in `estimates` is an estimate here too. */
|
|
124
|
+
data: Record<string, number | null>;
|
|
125
|
+
}
|
|
126
|
+
/** `ModelCostResult.display` — the one identifier's credits, in the deployment's own unit. */
|
|
127
|
+
interface ModelCostDisplay extends DisplayUnitInfo {
|
|
128
|
+
creditCost: number | null;
|
|
48
129
|
}
|
|
49
130
|
/** Where an account's free signup grant stands. */
|
|
50
131
|
type FreeGrantState = "unclaimed" | "granted" | "withheld" | "revoked";
|
|
@@ -124,6 +205,11 @@ interface ModelCostsResult {
|
|
|
124
205
|
* price for it.
|
|
125
206
|
*/
|
|
126
207
|
estimates?: string[];
|
|
208
|
+
/**
|
|
209
|
+
* The same prices in the deployment's own unit, converted by the server —
|
|
210
|
+
* present only on a deployment that shows its own unit instead of credits.
|
|
211
|
+
*/
|
|
212
|
+
display?: ModelCostsDisplay;
|
|
127
213
|
}
|
|
128
214
|
/** {@link ModelCostsResult.errorCodes} — why an identifier has no price. */
|
|
129
215
|
interface ModelCostError {
|
|
@@ -141,6 +227,8 @@ interface ModelCostResult {
|
|
|
141
227
|
model: string;
|
|
142
228
|
creditCost: number;
|
|
143
229
|
estimate?: true;
|
|
230
|
+
/** `creditCost` in the deployment's own unit, converted by the server — present only where one is configured. */
|
|
231
|
+
display?: ModelCostDisplay;
|
|
144
232
|
}
|
|
145
233
|
/**
|
|
146
234
|
* The two browser signals a claim reports — SHA-256 hex digests computed by
|
|
@@ -447,4 +535,4 @@ declare class CreditsResource {
|
|
|
447
535
|
markWelcomeOfferSeen(): Promise<WelcomeOfferSeenResult>;
|
|
448
536
|
}
|
|
449
537
|
|
|
450
|
-
export { type CreditHistoryEntry, type CreditHistoryFilters, type CreditHistoryJob, type CreditHistoryKind, type CreditHistoryOptions, type CreditHistoryPage, type CreditTransaction, type CreditTransactionsOptions, type CreditTransactionsPage, CreditsResource, type FreeGrantState, type ModelCostError, type ModelCostResult, type ModelCostsResult, type SignupGrantClaimResult, type SignupKeys, type UsageByCategory, type UsageByGroup, type UsageByModel, type UsageOverTime, type UsageSummary, type UsageSummaryBucket, type UsageSummaryOptions, type UsageSummaryTotals, type UserBalance, type WelcomeOfferClaimInput, type WelcomeOfferClaimResult, type WelcomeOfferSeenResult, type WelcomeOfferState };
|
|
538
|
+
export { type BalanceAllowance, type BalanceDisplay, type CreditHistoryEntry, type CreditHistoryFilters, type CreditHistoryJob, type CreditHistoryKind, type CreditHistoryOptions, type CreditHistoryPage, type CreditTransaction, type CreditTransactionsOptions, type CreditTransactionsPage, CreditsResource, type DisplayUnitInfo, type FreeGrantState, type ModelCostDisplay, type ModelCostError, type ModelCostResult, type ModelCostsDisplay, type ModelCostsResult, type SignupGrantClaimResult, type SignupKeys, type UsageByCategory, type UsageByGroup, type UsageByModel, type UsageOverTime, type UsageSummary, type UsageSummaryBucket, type UsageSummaryOptions, type UsageSummaryTotals, type UserBalance, type WelcomeOfferClaimInput, type WelcomeOfferClaimResult, type WelcomeOfferSeenResult, type WelcomeOfferState };
|
|
@@ -45,6 +45,87 @@ interface UserBalance {
|
|
|
45
45
|
* offer switched on — absent means "no popup, no banner, no block".
|
|
46
46
|
*/
|
|
47
47
|
welcomeOffer?: WelcomeOfferState;
|
|
48
|
+
/**
|
|
49
|
+
* A deployment with a single payer only: the caller's own allowance, in
|
|
50
|
+
* credits — the figure to show there, since `total` is the personal balance,
|
|
51
|
+
* which does not fund runs on such a deployment. `null` for the billing
|
|
52
|
+
* account itself, or when the figure could not be read (never treat it as 0).
|
|
53
|
+
* Absent on every other deployment.
|
|
54
|
+
*/
|
|
55
|
+
allowance?: BalanceAllowance | null;
|
|
56
|
+
/**
|
|
57
|
+
* The same credit figures in the deployment's own unit, converted by the
|
|
58
|
+
* server — present only on a deployment that shows its own unit instead of
|
|
59
|
+
* credits. Render these as they are; never convert credits yourself. Absent
|
|
60
|
+
* for the billing account's own read on a deployment with a single payer:
|
|
61
|
+
* its balance is the deployment's pool, which stays in credits.
|
|
62
|
+
*/
|
|
63
|
+
display?: BalanceDisplay;
|
|
64
|
+
}
|
|
65
|
+
/** `UserBalance.allowance` — a deployment with a single payer: the caller's own allowance, in credits. */
|
|
66
|
+
interface BalanceAllowance {
|
|
67
|
+
/** Credits the caller was granted. */
|
|
68
|
+
granted: number;
|
|
69
|
+
/** Credits the caller has left of it. */
|
|
70
|
+
remaining: number;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the deployment refuses a run beyond the allowance. `false` = the
|
|
73
|
+
* allowance is shown, not enforced: gate a run on `remaining` only when true.
|
|
74
|
+
*/
|
|
75
|
+
enforced: boolean;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The unit a `display` object is in. A deployment can show its own unit
|
|
79
|
+
* instead of credits; its figures are then converted by the server, so a
|
|
80
|
+
* client renders them as they are and never multiplies by a rate.
|
|
81
|
+
*/
|
|
82
|
+
interface DisplayUnitInfo {
|
|
83
|
+
/** The unit's label — what the deployment calls its credits. */
|
|
84
|
+
unit: string;
|
|
85
|
+
/** Decimal places the converted figures carry (0–4). */
|
|
86
|
+
decimals: number;
|
|
87
|
+
/**
|
|
88
|
+
* The unit's word per interface language, when the deployment gives one per
|
|
89
|
+
* language (locale id → word, e.g. `{ en: "points", he: "נקודות" }`). Show
|
|
90
|
+
* `unitLabels[locale] ?? unit`; a language without an entry uses `unit`.
|
|
91
|
+
* The server does not know the viewer's interface language, so it sends the
|
|
92
|
+
* words and the client picks.
|
|
93
|
+
*/
|
|
94
|
+
unitLabels?: Record<string, string>;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* `UserBalance.display` — the balance's credit figures in the deployment's own
|
|
98
|
+
* unit, converted by the server. `null` = the figure is unavailable (show an em
|
|
99
|
+
* dash, never 0). The optional keys are present exactly when the raw
|
|
100
|
+
* `allowance`, `externalWallet` and `welcomeOffer` are.
|
|
101
|
+
*/
|
|
102
|
+
interface BalanceDisplay extends DisplayUnitInfo {
|
|
103
|
+
total: number | null;
|
|
104
|
+
subscription: number | null;
|
|
105
|
+
topup: number | null;
|
|
106
|
+
dailySpent: number | null;
|
|
107
|
+
dailyLimit: number | null;
|
|
108
|
+
monthlyAllocation: number | null;
|
|
109
|
+
appCreditsAllowance: number | null;
|
|
110
|
+
allowance?: {
|
|
111
|
+
granted: number | null;
|
|
112
|
+
remaining: number | null;
|
|
113
|
+
} | null;
|
|
114
|
+
externalWallet?: {
|
|
115
|
+
available: number | null;
|
|
116
|
+
};
|
|
117
|
+
welcomeOffer?: {
|
|
118
|
+
credits: number | null;
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
/** `ModelCostsResult.display` — each priced identifier's credits, in the deployment's own unit. */
|
|
122
|
+
interface ModelCostsDisplay extends DisplayUnitInfo {
|
|
123
|
+
/** The same identifiers as `data`, converted. An id in `estimates` is an estimate here too. */
|
|
124
|
+
data: Record<string, number | null>;
|
|
125
|
+
}
|
|
126
|
+
/** `ModelCostResult.display` — the one identifier's credits, in the deployment's own unit. */
|
|
127
|
+
interface ModelCostDisplay extends DisplayUnitInfo {
|
|
128
|
+
creditCost: number | null;
|
|
48
129
|
}
|
|
49
130
|
/** Where an account's free signup grant stands. */
|
|
50
131
|
type FreeGrantState = "unclaimed" | "granted" | "withheld" | "revoked";
|
|
@@ -124,6 +205,11 @@ interface ModelCostsResult {
|
|
|
124
205
|
* price for it.
|
|
125
206
|
*/
|
|
126
207
|
estimates?: string[];
|
|
208
|
+
/**
|
|
209
|
+
* The same prices in the deployment's own unit, converted by the server —
|
|
210
|
+
* present only on a deployment that shows its own unit instead of credits.
|
|
211
|
+
*/
|
|
212
|
+
display?: ModelCostsDisplay;
|
|
127
213
|
}
|
|
128
214
|
/** {@link ModelCostsResult.errorCodes} — why an identifier has no price. */
|
|
129
215
|
interface ModelCostError {
|
|
@@ -141,6 +227,8 @@ interface ModelCostResult {
|
|
|
141
227
|
model: string;
|
|
142
228
|
creditCost: number;
|
|
143
229
|
estimate?: true;
|
|
230
|
+
/** `creditCost` in the deployment's own unit, converted by the server — present only where one is configured. */
|
|
231
|
+
display?: ModelCostDisplay;
|
|
144
232
|
}
|
|
145
233
|
/**
|
|
146
234
|
* The two browser signals a claim reports — SHA-256 hex digests computed by
|
|
@@ -447,4 +535,4 @@ declare class CreditsResource {
|
|
|
447
535
|
markWelcomeOfferSeen(): Promise<WelcomeOfferSeenResult>;
|
|
448
536
|
}
|
|
449
537
|
|
|
450
|
-
export { type CreditHistoryEntry, type CreditHistoryFilters, type CreditHistoryJob, type CreditHistoryKind, type CreditHistoryOptions, type CreditHistoryPage, type CreditTransaction, type CreditTransactionsOptions, type CreditTransactionsPage, CreditsResource, type FreeGrantState, type ModelCostError, type ModelCostResult, type ModelCostsResult, type SignupGrantClaimResult, type SignupKeys, type UsageByCategory, type UsageByGroup, type UsageByModel, type UsageOverTime, type UsageSummary, type UsageSummaryBucket, type UsageSummaryOptions, type UsageSummaryTotals, type UserBalance, type WelcomeOfferClaimInput, type WelcomeOfferClaimResult, type WelcomeOfferSeenResult, type WelcomeOfferState };
|
|
538
|
+
export { type BalanceAllowance, type BalanceDisplay, type CreditHistoryEntry, type CreditHistoryFilters, type CreditHistoryJob, type CreditHistoryKind, type CreditHistoryOptions, type CreditHistoryPage, type CreditTransaction, type CreditTransactionsOptions, type CreditTransactionsPage, CreditsResource, type DisplayUnitInfo, type FreeGrantState, type ModelCostDisplay, type ModelCostError, type ModelCostResult, type ModelCostsDisplay, type ModelCostsResult, type SignupGrantClaimResult, type SignupKeys, type UsageByCategory, type UsageByGroup, type UsageByModel, type UsageOverTime, type UsageSummary, type UsageSummaryBucket, type UsageSummaryOptions, type UsageSummaryTotals, type UserBalance, type WelcomeOfferClaimInput, type WelcomeOfferClaimResult, type WelcomeOfferSeenResult, type WelcomeOfferState };
|
package/dist/entries/credits.js
CHANGED
package/dist/entries/edit.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk6T54F65Q_cjs = require('../chunk-6T54F65Q.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
4
|
+
var chunkW4KKCHJA_cjs = require('../chunk-W4KKCHJA.cjs');
|
|
5
|
+
require('../chunk-4AD3CBDK.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,23 +12,23 @@ Object.defineProperty(exports, "unwrapEditPlanOutput", {
|
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "CLIP_PACK_MAX_TARGET_SEC", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkW4KKCHJA_cjs.CLIP_PACK_MAX_TARGET_SEC; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "CLIP_PACK_MIN_TARGET_SEC", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkW4KKCHJA_cjs.CLIP_PACK_MIN_TARGET_SEC; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "EditResource", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkW4KKCHJA_cjs.EditResource; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "TRAILER_FORMATS", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkW4KKCHJA_cjs.TRAILER_FORMATS; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "USE_CASE_NODE_TYPES", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkW4KKCHJA_cjs.USE_CASE_NODE_TYPES; }
|
|
32
32
|
});
|
|
33
33
|
//# sourceMappingURL=edit.cjs.map
|
|
34
34
|
//# sourceMappingURL=edit.cjs.map
|
package/dist/entries/edit.d.cts
CHANGED
|
@@ -798,8 +798,8 @@ declare class EditResource {
|
|
|
798
798
|
editPlan(input: EditPlanInput): Promise<EditJobResult>;
|
|
799
799
|
/**
|
|
800
800
|
* Camera Switch (podcast B5): choose which camera shows each cut of `edl`
|
|
801
|
-
* by who is speaking — the sound never changes.
|
|
802
|
-
* price. The finished job's `output_data.json` is the switched EDL (feed it
|
|
801
|
+
* by who is speaking — the sound never changes. Runs on nodaro.ai (a
|
|
802
|
+
* connected self-hosted install relays it); a flat price. The finished job's `output_data.json` is the switched EDL (feed it
|
|
803
803
|
* to {@link applyEdl}) and `output_data.transcript` the transcript with
|
|
804
804
|
* `speakerNames` applied. A transcript with no speaker labels rejects with
|
|
805
805
|
* a {@link NodaroError} (`code: "no_speakers"`) before any request or charge.
|
package/dist/entries/edit.d.ts
CHANGED
|
@@ -798,8 +798,8 @@ declare class EditResource {
|
|
|
798
798
|
editPlan(input: EditPlanInput): Promise<EditJobResult>;
|
|
799
799
|
/**
|
|
800
800
|
* Camera Switch (podcast B5): choose which camera shows each cut of `edl`
|
|
801
|
-
* by who is speaking — the sound never changes.
|
|
802
|
-
* price. The finished job's `output_data.json` is the switched EDL (feed it
|
|
801
|
+
* by who is speaking — the sound never changes. Runs on nodaro.ai (a
|
|
802
|
+
* connected self-hosted install relays it); a flat price. The finished job's `output_data.json` is the switched EDL (feed it
|
|
803
803
|
* to {@link applyEdl}) and `output_data.transcript` the transcript with
|
|
804
804
|
* `speakerNames` applied. A transcript with no speaker labels rejects with
|
|
805
805
|
* a {@link NodaroError} (`code: "no_speakers"`) before any request or charge.
|
package/dist/entries/edit.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { unwrapEditPlanOutput } from '../chunk-UKB64254.js';
|
|
2
|
-
export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
2
|
+
export { CLIP_PACK_MAX_TARGET_SEC, CLIP_PACK_MIN_TARGET_SEC, EditResource, TRAILER_FORMATS, USE_CASE_NODE_TYPES } from '../chunk-4IXVKTA4.js';
|
|
3
|
+
import '../chunk-IJAJTVEW.js';
|
|
4
4
|
//# sourceMappingURL=edit.js.map
|
|
5
5
|
//# sourceMappingURL=edit.js.map
|
package/dist/entries/errors.cjs
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-A2ZAFAWC.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunk4AD3CBDK_cjs = require('../chunk-4AD3CBDK.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "AlreadyRunningError", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk4AD3CBDK_cjs.AlreadyRunningError; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "AppRunVersionChangedError", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk4AD3CBDK_cjs.AppRunVersionChangedError; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CREDIT_CAP_CODES", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk4AD3CBDK_cjs.CREDIT_CAP_CODES; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ContinuationPreviewPendingError", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk4AD3CBDK_cjs.ContinuationPreviewPendingError; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ContinuationRefusedError", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk4AD3CBDK_cjs.ContinuationRefusedError; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "CreditCapExceededError", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunk4AD3CBDK_cjs.CreditCapExceededError; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk4AD3CBDK_cjs.ForbiddenError; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "IMPORT_REFUSAL_CODES", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk4AD3CBDK_cjs.IMPORT_REFUSAL_CODES; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "ImportRefusedError", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk4AD3CBDK_cjs.ImportRefusedError; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "InsufficientCreditsError", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk4AD3CBDK_cjs.InsufficientCreditsError; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "JobAbortedError", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunk4AD3CBDK_cjs.JobAbortedError; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "JobBlockedError", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunk4AD3CBDK_cjs.JobBlockedError; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "JobFailedError", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk4AD3CBDK_cjs.JobFailedError; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "JobHeldError", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk4AD3CBDK_cjs.JobHeldError; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "JobTimeoutError", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk4AD3CBDK_cjs.JobTimeoutError; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "MODEL_UNAVAILABLE_CODES", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk4AD3CBDK_cjs.MODEL_UNAVAILABLE_CODES; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "ModelUnavailableError", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk4AD3CBDK_cjs.ModelUnavailableError; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "NodaroError", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk4AD3CBDK_cjs.NodaroError; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "NotFoundError", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk4AD3CBDK_cjs.NotFoundError; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "RateLimitedError", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk4AD3CBDK_cjs.RateLimitedError; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "StorageExceededError", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk4AD3CBDK_cjs.StorageExceededError; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "StudioOpError", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk4AD3CBDK_cjs.StudioOpError; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "StudioPreviewAppliedError", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk4AD3CBDK_cjs.StudioPreviewAppliedError; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "StudioPreviewUnavailable", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk4AD3CBDK_cjs.StudioPreviewUnavailable; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "UnauthorizedError", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk4AD3CBDK_cjs.UnauthorizedError; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "WorkflowConflictError", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk4AD3CBDK_cjs.WorkflowConflictError; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "throwFromResponse", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk4AD3CBDK_cjs.throwFromResponse; }
|
|
115
115
|
});
|
|
116
116
|
//# sourceMappingURL=errors.cjs.map
|
|
117
117
|
//# sourceMappingURL=errors.cjs.map
|
|
@@ -21,7 +21,7 @@ declare class UnauthorizedError extends NodaroError {
|
|
|
21
21
|
}
|
|
22
22
|
declare class ForbiddenError extends NodaroError {
|
|
23
23
|
readonly missingScope?: string | undefined;
|
|
24
|
-
/** `code`
|
|
24
|
+
/** `code` is the server's own (`node_not_available`, `insufficient_scope`, …), `"forbidden"` when it sent none. */
|
|
25
25
|
constructor(message?: string, missingScope?: string | undefined, code?: string);
|
|
26
26
|
}
|
|
27
27
|
type ModelUnavailableCode = "model_not_available" | "model_disabled";
|
|
@@ -47,13 +47,14 @@ declare class ModelUnavailableError extends ForbiddenError {
|
|
|
47
47
|
readonly code: ModelUnavailableCode;
|
|
48
48
|
constructor(code: ModelUnavailableCode, message?: string);
|
|
49
49
|
}
|
|
50
|
-
type ImportRefusalCode = "imports_blocked" | "import_source_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
|
|
50
|
+
type ImportRefusalCode = "imports_blocked" | "import_source_disabled" | "link_imports_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
|
|
51
51
|
/**
|
|
52
52
|
* The 403 codes {@link ImportRefusedError} carries: imports of links are
|
|
53
53
|
* blocked on the account, or the account is closed, under the deployment's
|
|
54
54
|
* repeat-infringer policy (`imports_blocked`; the message says until when),
|
|
55
55
|
* the link's site is disabled by an administrator (`import_source_disabled`),
|
|
56
|
-
*
|
|
56
|
+
* the deployment turned link imports off (`link_imports_disabled`), or the
|
|
57
|
+
* content rights confirmation is missing while the deployment requires
|
|
57
58
|
* one (`rights_confirmation_required`; for an import through an API key or an
|
|
58
59
|
* AI agent with no standing authorization, `rights_authorization_required`),
|
|
59
60
|
* does not exist, is for another link or account, was made under an older
|
|
@@ -72,17 +73,21 @@ declare const IMPORT_REFUSAL_CODES: ReadonlySet<ImportRefusalCode>;
|
|
|
72
73
|
* their own session); `imports_blocked` lasts until the date its message names
|
|
73
74
|
* or until an administrator lifts it, and the account's owner reads why in
|
|
74
75
|
* their settings; an `import_source_disabled` site has no remedy on the
|
|
75
|
-
* caller's side, and the message names no site
|
|
76
|
+
* caller's side, and the message names no site; `link_imports_disabled` means
|
|
77
|
+
* a link to another site is refused on this deployment altogether (upload the
|
|
78
|
+
* file instead).
|
|
76
79
|
*/
|
|
77
80
|
declare class ImportRefusedError extends ForbiddenError {
|
|
78
81
|
readonly code: ImportRefusalCode;
|
|
79
82
|
constructor(code: ImportRefusalCode, message?: string);
|
|
80
83
|
}
|
|
81
84
|
declare class NotFoundError extends NodaroError {
|
|
82
|
-
|
|
85
|
+
/** `code` is the server's own (`continuation_not_found`, …), `"not_found"` when it sent none. */
|
|
86
|
+
constructor(message?: string, code?: string);
|
|
83
87
|
}
|
|
84
88
|
declare class RateLimitedError extends NodaroError {
|
|
85
|
-
|
|
89
|
+
/** `code` is the server's own (`rate_limit_exceeded`, …), `"rate_limited"` when it sent none. */
|
|
90
|
+
constructor(message?: string, code?: string);
|
|
86
91
|
}
|
|
87
92
|
/**
|
|
88
93
|
* HTTP 402: the run costs more than the caller may spend. `code` is the
|
package/dist/entries/errors.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ declare class UnauthorizedError extends NodaroError {
|
|
|
21
21
|
}
|
|
22
22
|
declare class ForbiddenError extends NodaroError {
|
|
23
23
|
readonly missingScope?: string | undefined;
|
|
24
|
-
/** `code`
|
|
24
|
+
/** `code` is the server's own (`node_not_available`, `insufficient_scope`, …), `"forbidden"` when it sent none. */
|
|
25
25
|
constructor(message?: string, missingScope?: string | undefined, code?: string);
|
|
26
26
|
}
|
|
27
27
|
type ModelUnavailableCode = "model_not_available" | "model_disabled";
|
|
@@ -47,13 +47,14 @@ declare class ModelUnavailableError extends ForbiddenError {
|
|
|
47
47
|
readonly code: ModelUnavailableCode;
|
|
48
48
|
constructor(code: ModelUnavailableCode, message?: string);
|
|
49
49
|
}
|
|
50
|
-
type ImportRefusalCode = "imports_blocked" | "import_source_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
|
|
50
|
+
type ImportRefusalCode = "imports_blocked" | "import_source_disabled" | "link_imports_disabled" | "rights_confirmation_required" | "rights_authorization_required" | "rights_confirmation_not_found" | "rights_confirmation_mismatch" | "rights_confirmation_stale" | "rights_confirmation_expired" | "rights_confirmation_used";
|
|
51
51
|
/**
|
|
52
52
|
* The 403 codes {@link ImportRefusedError} carries: imports of links are
|
|
53
53
|
* blocked on the account, or the account is closed, under the deployment's
|
|
54
54
|
* repeat-infringer policy (`imports_blocked`; the message says until when),
|
|
55
55
|
* the link's site is disabled by an administrator (`import_source_disabled`),
|
|
56
|
-
*
|
|
56
|
+
* the deployment turned link imports off (`link_imports_disabled`), or the
|
|
57
|
+
* content rights confirmation is missing while the deployment requires
|
|
57
58
|
* one (`rights_confirmation_required`; for an import through an API key or an
|
|
58
59
|
* AI agent with no standing authorization, `rights_authorization_required`),
|
|
59
60
|
* does not exist, is for another link or account, was made under an older
|
|
@@ -72,17 +73,21 @@ declare const IMPORT_REFUSAL_CODES: ReadonlySet<ImportRefusalCode>;
|
|
|
72
73
|
* their own session); `imports_blocked` lasts until the date its message names
|
|
73
74
|
* or until an administrator lifts it, and the account's owner reads why in
|
|
74
75
|
* their settings; an `import_source_disabled` site has no remedy on the
|
|
75
|
-
* caller's side, and the message names no site
|
|
76
|
+
* caller's side, and the message names no site; `link_imports_disabled` means
|
|
77
|
+
* a link to another site is refused on this deployment altogether (upload the
|
|
78
|
+
* file instead).
|
|
76
79
|
*/
|
|
77
80
|
declare class ImportRefusedError extends ForbiddenError {
|
|
78
81
|
readonly code: ImportRefusalCode;
|
|
79
82
|
constructor(code: ImportRefusalCode, message?: string);
|
|
80
83
|
}
|
|
81
84
|
declare class NotFoundError extends NodaroError {
|
|
82
|
-
|
|
85
|
+
/** `code` is the server's own (`continuation_not_found`, …), `"not_found"` when it sent none. */
|
|
86
|
+
constructor(message?: string, code?: string);
|
|
83
87
|
}
|
|
84
88
|
declare class RateLimitedError extends NodaroError {
|
|
85
|
-
|
|
89
|
+
/** `code` is the server's own (`rate_limit_exceeded`, …), `"rate_limited"` when it sent none. */
|
|
90
|
+
constructor(message?: string, code?: string);
|
|
86
91
|
}
|
|
87
92
|
/**
|
|
88
93
|
* HTTP 402: the run costs more than the caller may spend. `code` is the
|
package/dist/entries/errors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../chunk-CJFIOVBA.js';
|
|
2
|
-
export { AlreadyRunningError, AppRunVersionChangedError, CREDIT_CAP_CODES, ContinuationPreviewPendingError, ContinuationRefusedError, CreditCapExceededError, ForbiddenError, IMPORT_REFUSAL_CODES, ImportRefusedError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, MODEL_UNAVAILABLE_CODES, ModelUnavailableError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictError, throwFromResponse } from '../chunk-
|
|
2
|
+
export { AlreadyRunningError, AppRunVersionChangedError, CREDIT_CAP_CODES, ContinuationPreviewPendingError, ContinuationRefusedError, CreditCapExceededError, ForbiddenError, IMPORT_REFUSAL_CODES, ImportRefusedError, InsufficientCreditsError, JobAbortedError, JobBlockedError, JobFailedError, JobHeldError, JobTimeoutError, MODEL_UNAVAILABLE_CODES, ModelUnavailableError, NodaroError, NotFoundError, RateLimitedError, StorageExceededError, StudioOpError, StudioPreviewAppliedError, StudioPreviewUnavailable, UnauthorizedError, WorkflowConflictError, throwFromResponse } from '../chunk-IJAJTVEW.js';
|
|
3
3
|
//# sourceMappingURL=errors.js.map
|
|
4
4
|
//# sourceMappingURL=errors.js.map
|
package/dist/entries/gallery.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-KAIE6WJB.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkW63ZKKYT_cjs = require('../chunk-W63ZKKYT.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "GalleryResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkW63ZKKYT_cjs.GalleryResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=gallery.cjs.map
|
|
13
13
|
//# sourceMappingURL=gallery.cjs.map
|
|
@@ -19,6 +19,11 @@ interface GalleryItem {
|
|
|
19
19
|
readonly createdAt: string;
|
|
20
20
|
readonly prompt: string | null;
|
|
21
21
|
readonly model: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* The owner's own name for the job (`client.jobs.rename`), or `null` until
|
|
24
|
+
* named. Public like the prompt beside it. Absent from an older server.
|
|
25
|
+
*/
|
|
26
|
+
readonly title?: string | null;
|
|
22
27
|
/** A private 720p Preview render (Apply EDL at proxy quality). Present only when true. */
|
|
23
28
|
readonly preview?: true;
|
|
24
29
|
}
|
|
@@ -19,6 +19,11 @@ interface GalleryItem {
|
|
|
19
19
|
readonly createdAt: string;
|
|
20
20
|
readonly prompt: string | null;
|
|
21
21
|
readonly model: string | null;
|
|
22
|
+
/**
|
|
23
|
+
* The owner's own name for the job (`client.jobs.rename`), or `null` until
|
|
24
|
+
* named. Public like the prompt beside it. Absent from an older server.
|
|
25
|
+
*/
|
|
26
|
+
readonly title?: string | null;
|
|
22
27
|
/** A private 720p Preview render (Apply EDL at proxy quality). Present only when true. */
|
|
23
28
|
readonly preview?: true;
|
|
24
29
|
}
|
package/dist/entries/gallery.js
CHANGED
package/dist/entries/jobs.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('../chunk-EHRWTYGR.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkLCQIQFWD_cjs = require('../chunk-LCQIQFWD.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "JobsResource", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkLCQIQFWD_cjs.JobsResource; }
|
|
11
11
|
});
|
|
12
12
|
//# sourceMappingURL=jobs.cjs.map
|
|
13
13
|
//# sourceMappingURL=jobs.cjs.map
|