@nodaro/sdk 2.65.1 → 2.66.0
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-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-3HL3IHVE.js → chunk-CSIPRLX3.js} +3 -3
- package/dist/{chunk-3HL3IHVE.js.map → chunk-CSIPRLX3.js.map} +1 -1
- package/dist/{chunk-KP2DIIKO.cjs → chunk-DQQRFBWY.cjs} +5 -5
- package/dist/{chunk-KP2DIIKO.cjs.map → chunk-DQQRFBWY.cjs.map} +1 -1
- package/dist/{chunk-MQRPXZW5.js → chunk-EBQXAOHW.js} +3 -3
- package/dist/{chunk-MQRPXZW5.js.map → chunk-EBQXAOHW.js.map} +1 -1
- package/dist/{chunk-DR5WM36L.cjs → chunk-EWVQFW5L.cjs} +22 -22
- package/dist/chunk-EWVQFW5L.cjs.map +1 -0
- 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-P6E4QDJN.js → chunk-GG7DOKTH.js} +2 -2
- package/dist/chunk-GG7DOKTH.js.map +1 -0
- package/dist/{chunk-HW6U7WXU.js → chunk-GQU5FXYB.js} +4 -4
- package/dist/{chunk-HW6U7WXU.js.map → chunk-GQU5FXYB.js.map} +1 -1
- 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-A75Q7UEU.js → chunk-JC66EEFI.js} +3 -3
- package/dist/{chunk-A75Q7UEU.js.map → chunk-JC66EEFI.js.map} +1 -1
- package/dist/{chunk-CRIQLLR2.js → chunk-JZO5WWKX.js} +51 -7
- package/dist/chunk-JZO5WWKX.js.map +1 -0
- package/dist/{chunk-YLXCXVYF.cjs → chunk-KAYCRIMA.cjs} +5 -5
- package/dist/{chunk-YLXCXVYF.cjs.map → chunk-KAYCRIMA.cjs.map} +1 -1
- package/dist/{chunk-L3RTC4FL.js → chunk-KEZMNVN3.js} +3 -3
- package/dist/chunk-KEZMNVN3.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-K2QVR3LG.js → chunk-LTRJNCXB.js} +22 -18
- package/dist/chunk-LTRJNCXB.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-BYFLERF3.cjs → chunk-MOGPM5RM.cjs} +36 -32
- package/dist/chunk-MOGPM5RM.cjs.map +1 -0
- package/dist/{chunk-T23YD5BR.js → chunk-MYUJEVP6.js} +3 -3
- package/dist/{chunk-T23YD5BR.js.map → chunk-MYUJEVP6.js.map} +1 -1
- package/dist/chunk-N4FKPJ7J.cjs +4 -0
- package/dist/chunk-N4FKPJ7J.cjs.map +1 -0
- package/dist/{chunk-TBFA6QPH.cjs → chunk-O6LQV6BD.cjs} +4 -4
- package/dist/{chunk-TBFA6QPH.cjs.map → chunk-O6LQV6BD.cjs.map} +1 -1
- package/dist/{chunk-2DZWWIJ4.cjs → chunk-OI4RCW2J.cjs} +2 -2
- package/dist/chunk-OI4RCW2J.cjs.map +1 -0
- package/dist/{chunk-UIM5SLPP.cjs → chunk-PHBOLYRT.cjs} +4 -4
- package/dist/{chunk-UIM5SLPP.cjs.map → chunk-PHBOLYRT.cjs.map} +1 -1
- package/dist/{chunk-A5UGBCAW.js → chunk-Q6HMDIC4.js} +3 -3
- package/dist/{chunk-A5UGBCAW.js.map → chunk-Q6HMDIC4.js.map} +1 -1
- package/dist/{chunk-P2JYDWZT.cjs → chunk-QHCVKMSF.cjs} +3 -2
- package/dist/chunk-QHCVKMSF.cjs.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-WNXX3B2A.js → chunk-SNPDM72K.js} +3 -2
- package/dist/chunk-SNPDM72K.js.map +1 -0
- package/dist/{chunk-GKTZHICS.cjs → chunk-UBZ2XVHM.cjs} +5 -5
- package/dist/{chunk-GKTZHICS.cjs.map → chunk-UBZ2XVHM.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-GRATHB3C.cjs → chunk-WSMZ3AAU.cjs} +9 -9
- package/dist/{chunk-GRATHB3C.cjs.map → chunk-WSMZ3AAU.cjs.map} +1 -1
- package/dist/{chunk-P2C33IOF.js → chunk-YEOK5A5H.js} +6 -3
- package/dist/chunk-YEOK5A5H.js.map +1 -0
- 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 +25 -24
- package/dist/entries/client.d.cts +4 -1
- package/dist/entries/client.d.ts +4 -1
- package/dist/entries/client.js +20 -19
- 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.js +2 -2
- package/dist/entries/errors.cjs +28 -28
- package/dist/entries/errors.d.cts +6 -3
- package/dist/entries/errors.d.ts +6 -3
- 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/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 +87 -81
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +23 -21
- package/dist/{nodes-BXL3qXlY.d.ts → nodes-C9O2tdGH.d.ts} +17 -1
- package/dist/{nodes-Dx8rpU12.d.cts → nodes-WkaQjuwS.d.cts} +17 -1
- 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-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-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 chunkWSMZ3AAU_cjs = require('../chunk-WSMZ3AAU.cjs');
|
|
5
|
+
require('../chunk-QHCVKMSF.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 chunkWSMZ3AAU_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 chunkWSMZ3AAU_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 chunkWSMZ3AAU_cjs.EditResource; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "TRAILER_FORMATS", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkWSMZ3AAU_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 chunkWSMZ3AAU_cjs.USE_CASE_NODE_TYPES; }
|
|
32
32
|
});
|
|
33
33
|
//# sourceMappingURL=edit.cjs.map
|
|
34
34
|
//# sourceMappingURL=edit.cjs.map
|
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-MYUJEVP6.js';
|
|
3
|
+
import '../chunk-SNPDM72K.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 chunkQHCVKMSF_cjs = require('../chunk-QHCVKMSF.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 chunkQHCVKMSF_cjs.AlreadyRunningError; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "AppRunVersionChangedError", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkQHCVKMSF_cjs.AppRunVersionChangedError; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "CREDIT_CAP_CODES", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkQHCVKMSF_cjs.CREDIT_CAP_CODES; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "ContinuationPreviewPendingError", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkQHCVKMSF_cjs.ContinuationPreviewPendingError; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ContinuationRefusedError", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkQHCVKMSF_cjs.ContinuationRefusedError; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "CreditCapExceededError", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkQHCVKMSF_cjs.CreditCapExceededError; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "ForbiddenError", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkQHCVKMSF_cjs.ForbiddenError; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "IMPORT_REFUSAL_CODES", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkQHCVKMSF_cjs.IMPORT_REFUSAL_CODES; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "ImportRefusedError", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkQHCVKMSF_cjs.ImportRefusedError; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "InsufficientCreditsError", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkQHCVKMSF_cjs.InsufficientCreditsError; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "JobAbortedError", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkQHCVKMSF_cjs.JobAbortedError; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "JobBlockedError", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkQHCVKMSF_cjs.JobBlockedError; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "JobFailedError", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkQHCVKMSF_cjs.JobFailedError; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "JobHeldError", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkQHCVKMSF_cjs.JobHeldError; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "JobTimeoutError", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkQHCVKMSF_cjs.JobTimeoutError; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "MODEL_UNAVAILABLE_CODES", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkQHCVKMSF_cjs.MODEL_UNAVAILABLE_CODES; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "ModelUnavailableError", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkQHCVKMSF_cjs.ModelUnavailableError; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "NodaroError", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkQHCVKMSF_cjs.NodaroError; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "NotFoundError", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkQHCVKMSF_cjs.NotFoundError; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "RateLimitedError", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkQHCVKMSF_cjs.RateLimitedError; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "StorageExceededError", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkQHCVKMSF_cjs.StorageExceededError; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "StudioOpError", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkQHCVKMSF_cjs.StudioOpError; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "StudioPreviewAppliedError", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkQHCVKMSF_cjs.StudioPreviewAppliedError; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "StudioPreviewUnavailable", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkQHCVKMSF_cjs.StudioPreviewUnavailable; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "UnauthorizedError", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunkQHCVKMSF_cjs.UnauthorizedError; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "WorkflowConflictError", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkQHCVKMSF_cjs.WorkflowConflictError; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "throwFromResponse", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkQHCVKMSF_cjs.throwFromResponse; }
|
|
115
115
|
});
|
|
116
116
|
//# sourceMappingURL=errors.cjs.map
|
|
117
117
|
//# sourceMappingURL=errors.cjs.map
|
|
@@ -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,7 +73,9 @@ 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;
|
package/dist/entries/errors.d.ts
CHANGED
|
@@ -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,7 +73,9 @@ 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;
|
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-SNPDM72K.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
|
package/dist/entries/jobs.d.cts
CHANGED
|
@@ -268,6 +268,13 @@ interface Job {
|
|
|
268
268
|
* unrated. Returned by `get()` and `list()`; absent like `favorited`.
|
|
269
269
|
*/
|
|
270
270
|
rating?: JobRating | null;
|
|
271
|
+
/**
|
|
272
|
+
* The owner's own name for the job ({@link JobsResource.rename}) — "Wedding
|
|
273
|
+
* toast, final" — or `null` until named. One line of plain text, up to 120
|
|
274
|
+
* characters. Returned wherever the job is: `get()`, `list()`, a session's
|
|
275
|
+
* items, the Trash. Absent from an older server.
|
|
276
|
+
*/
|
|
277
|
+
title?: string | null;
|
|
271
278
|
/**
|
|
272
279
|
* Where the job stands in line while it waits for a free slot: present on
|
|
273
280
|
* `get()` only while `status` is `queued` (never on `list()`). See
|
|
@@ -342,6 +349,13 @@ interface RateJobResult {
|
|
|
342
349
|
rating: JobRating | null;
|
|
343
350
|
};
|
|
344
351
|
}
|
|
352
|
+
/** What {@link JobsResource.rename} answers: the job's name now (`null` once cleared). */
|
|
353
|
+
interface RenameJobResult {
|
|
354
|
+
data: {
|
|
355
|
+
jobId: string;
|
|
356
|
+
title: string | null;
|
|
357
|
+
};
|
|
358
|
+
}
|
|
345
359
|
/**
|
|
346
360
|
* {@link JobsResource.fromUpload}'s body: an image edited in the browser,
|
|
347
361
|
* already stored with `client.uploads.upload`, and what it was made from.
|
|
@@ -429,6 +443,17 @@ declare class JobsResource {
|
|
|
429
443
|
* and filters {@link list}. OAuth apps need the `assets:write` scope.
|
|
430
444
|
*/
|
|
431
445
|
rate(id: string, rating: JobRating | null): Promise<RateJobResult>;
|
|
446
|
+
/**
|
|
447
|
+
* Name one of your jobs — "Wedding toast, final" on a picture, a clip, a
|
|
448
|
+
* track or a speech take — or clear its name with `null` (`PATCH
|
|
449
|
+
* /v1/jobs/:id`). Trimmed; one line of plain text, 1–120 characters, any
|
|
450
|
+
* language: a longer or multi-line name is a `NodaroError`
|
|
451
|
+
* (`validation_error`). Only the job's owner names it — anyone else's job is
|
|
452
|
+
* a `NotFoundError`. Free; any job type and status, the Trash included;
|
|
453
|
+
* nothing else about the job changes. The name reads back as `Job.title`
|
|
454
|
+
* wherever the job is returned. OAuth apps need the `assets:write` scope.
|
|
455
|
+
*/
|
|
456
|
+
rename(id: string, title: string | null): Promise<RenameJobResult>;
|
|
432
457
|
/**
|
|
433
458
|
* Get the lean status of a single job (poll-loop friendly).
|
|
434
459
|
* Hits `GET /v1/jobs/:id/status` — returns only id/status/progress/
|
|
@@ -472,4 +497,4 @@ declare class JobsResource {
|
|
|
472
497
|
}>;
|
|
473
498
|
}
|
|
474
499
|
|
|
475
|
-
export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobQueueInfo, type JobRating, type JobRatingFilter, type JobSessionRef, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type QueueTimeoutHint, type RateJobResult, type RequestRefusedHint, type SafetyBlockHint };
|
|
500
|
+
export { type CancelJobResult, type CreditStatus, type CreditsHint, type DeleteJobResult, type InputRefusedHint, type Job, type JobErrorHint, type JobFromUploadParams, type JobQueueInfo, type JobRating, type JobRatingFilter, type JobSessionRef, type JobSource, type JobStatus, type JobStatusResult, JobsResource, type ListJobsPage, type ListJobsParams, type PolicyBlockHint, type QueueTimeoutHint, type RateJobResult, type RenameJobResult, type RequestRefusedHint, type SafetyBlockHint };
|