@read-frog/api-contract 0.27.0 → 0.28.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/index.d.ts +0 -67
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/schemas/hosted-ai.ts +0 -17
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@read-frog/api-contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@orpc/contract": "^1.16.1",
|
|
28
|
-
"@read-frog/definitions": "0.15.
|
|
28
|
+
"@read-frog/definitions": "0.15.1",
|
|
29
29
|
"zod": "^4.6.7"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
package/src/schemas/hosted-ai.ts
CHANGED
|
@@ -280,14 +280,6 @@ export const HostedAiTierStatusSchema = z.strictObject({
|
|
|
280
280
|
* signing in. Clients badge an option with it and offer that plan.
|
|
281
281
|
*/
|
|
282
282
|
upgradeTo: HostedAiUpgradePlanSchema.nullable(),
|
|
283
|
-
/**
|
|
284
|
-
* @deprecated Read `upgradeTo`. Viewer-independent product fact: no
|
|
285
|
-
* non-Ultra account can ever use this feature/tier. Extensions released
|
|
286
|
-
* before `upgradeTo` badge options with it, including for Ultra accounts.
|
|
287
|
-
*
|
|
288
|
-
* TODO(2026-11-21): remove once those extensions have drained (#710).
|
|
289
|
-
*/
|
|
290
|
-
requiresUltra: z.boolean(),
|
|
291
283
|
modelRevision: z.string().trim().min(1),
|
|
292
284
|
});
|
|
293
285
|
|
|
@@ -297,15 +289,6 @@ export const HostedAiFeatureStatusSchema = z.strictObject({
|
|
|
297
289
|
});
|
|
298
290
|
|
|
299
291
|
export const HostedAiStatusOutputSchema = z.strictObject({
|
|
300
|
-
/**
|
|
301
|
-
* @deprecated Read `pools`. This lists the recurring pools only, never a
|
|
302
|
-
* one-time one: extensions released before mengxi-ream/read-frog#2395 look
|
|
303
|
-
* up a label for every entry's `periodKind`, and one they do not know
|
|
304
|
-
* crashes their usage page. They also throw if the field is missing.
|
|
305
|
-
*
|
|
306
|
-
* TODO(2026-11-07): remove once those extensions have drained (#710).
|
|
307
|
-
*/
|
|
308
|
-
credits: z.array(HostedAiRecurringCreditStatusSchema),
|
|
309
292
|
/**
|
|
310
293
|
* Everything that can pay for a feature, in the order the server draws on it:
|
|
311
294
|
* the plan's recurring pools first, then one-time pools by soonest expiry. A
|