@buildinternet/releases-api-types 0.58.0 → 0.58.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/package.json +2 -2
- package/src/api-types.ts +2 -2
- package/src/schemas/collections.ts +13 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildinternet/releases-api-types",
|
|
3
|
-
"version": "0.58.
|
|
4
|
-
"description": "Wire protocol — request/response types for the Releases
|
|
3
|
+
"version": "0.58.1",
|
|
4
|
+
"description": "Wire protocol — request/response types for the Releases Index API. Shared by web, workers, and clients.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
package/src/api-types.ts
CHANGED
|
@@ -2018,8 +2018,8 @@ export interface Session {
|
|
|
2018
2018
|
* it must never be reported as `"haiku"`. Surfaces on the detail GET.
|
|
2019
2019
|
*
|
|
2020
2020
|
* This is a logical role label, not the runtime model identifier. The
|
|
2021
|
-
* resolved Anthropic model string (e.g. `claude-sonnet-5`,
|
|
2022
|
-
* `claude-haiku-
|
|
2021
|
+
* resolved Anthropic model string (e.g. `claude-sonnet-5-5`,
|
|
2022
|
+
* `claude-haiku-5-5`) lives on `usage.model` when the session reported
|
|
2023
2023
|
* one — consult that field for the concrete model.
|
|
2024
2024
|
*/
|
|
2025
2025
|
agent?: "sonnet" | "haiku" | "coordinator" | "deterministic";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ImportanceScoreSchema, ReleaseItemSchema } from "./shared.js";
|
|
2
|
+
import { ImportanceScoreSchema, ReleaseCompositionSchema, ReleaseItemSchema } from "./shared.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* One org as it appears inside a collection's preview list or detail page.
|
|
@@ -291,6 +291,18 @@ export const DigestCoveredReleaseSchema = z.object({
|
|
|
291
291
|
* marker on the collapsed "Releases covered" list.
|
|
292
292
|
*/
|
|
293
293
|
importance: ImportanceScoreSchema,
|
|
294
|
+
/**
|
|
295
|
+
* Per-category item counts from the AI release-content pass. Null when the
|
|
296
|
+
* row hasn't been summarized; optional for older servers. Powers the
|
|
297
|
+
* digest page's week-at-a-glance treemap.
|
|
298
|
+
*/
|
|
299
|
+
composition: ReleaseCompositionSchema.nullable().optional(),
|
|
300
|
+
/**
|
|
301
|
+
* ISO publish timestamp, as stored. Null when the source gave none;
|
|
302
|
+
* optional for older servers. A date-only source is stored at exactly
|
|
303
|
+
* `T00:00:00.000Z`. Powers the digest week replay's day placement.
|
|
304
|
+
*/
|
|
305
|
+
publishedAt: z.string().nullable().optional(),
|
|
294
306
|
});
|
|
295
307
|
|
|
296
308
|
/** One `###` section of a digest body, parsed server-side. */
|