@40rty/ams-sdk 0.5.0 → 0.5.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/index.js +639 -496
- package/dist/types/sdk/src/host/host-modules.d.ts +41 -0
- package/dist/types/spacestation/src/attachment/attachment.d.ts +8 -5
- package/dist/types/spacestation/src/catalog/wire/index.d.ts +2 -0
- package/dist/types/spacestation/src/catalog/wire/package-bundle-ref.d.ts +30 -0
- package/dist/types/spacestation/src/catalog/wire/package-release.d.ts +10 -0
- package/dist/types/spacestation/src/catalog/wire/sdk-compat.d.ts +43 -0
- package/dist/types/spacestation/src/contracts/socket-ticket-param.d.ts +9 -0
- package/dist/types/spacestation/src/contracts/wire-protocol.d.ts +25 -0
- package/dist/types/spacestation/src/index.d.ts +3 -1
- package/dist/types/spacestation/src/trace/trace-events.d.ts +1 -0
- package/dist/types/spacestation/src/widgets/presence/index.d.ts +1 -1
- package/dist/types/spacestation/src/widgets/presence/scan.d.ts +21 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -149,11 +149,13 @@ __export(src_exports3, {
|
|
|
149
149
|
LlmUsageDailySchema: () => LlmUsageDailySchema,
|
|
150
150
|
MAX_ATTACHMENT_BYTES: () => MAX_ATTACHMENT_BYTES,
|
|
151
151
|
MAX_VISITOR_PROMPT_CHARS: () => MAX_VISITOR_PROMPT_CHARS,
|
|
152
|
+
MIN_WIRE_PROTOCOL_VERSION: () => MIN_WIRE_PROTOCOL_VERSION,
|
|
152
153
|
MOBILE_VIEWPORT_MAX: () => MOBILE_VIEWPORT_MAX,
|
|
153
154
|
MoneySchema: () => MoneySchema,
|
|
154
155
|
NAVIGATE_SIGNAL: () => NAVIGATE_SIGNAL,
|
|
155
156
|
NavigatePayloadSchema: () => NavigatePayloadSchema,
|
|
156
157
|
NullComponent: () => NullComponent,
|
|
158
|
+
OLDEST_SUPPORTED_SDK: () => OLDEST_SUPPORTED_SDK,
|
|
157
159
|
PRESENCE_CANVAS_REFRESH_SIGNAL: () => PRESENCE_CANVAS_REFRESH_SIGNAL,
|
|
158
160
|
PRESENCE_FACT_DISMISS_SIGNAL: () => PRESENCE_FACT_DISMISS_SIGNAL,
|
|
159
161
|
PRESENCE_FLOW: () => PRESENCE_FLOW,
|
|
@@ -164,6 +166,7 @@ __export(src_exports3, {
|
|
|
164
166
|
PRODUCT_SELECT_OPTION_SIGNAL: () => PRODUCT_SELECT_OPTION_SIGNAL,
|
|
165
167
|
PRODUCT_VARIANTS_SCOPE: () => PRODUCT_VARIANTS_SCOPE,
|
|
166
168
|
PROJECTION_SET_SIGNAL: () => PROJECTION_SET_SIGNAL,
|
|
169
|
+
PackageBundleRefSchema: () => PackageBundleRefSchema,
|
|
167
170
|
PackageLookupProvider: () => PackageLookupProvider,
|
|
168
171
|
PackageReleaseSchema: () => PackageReleaseSchema,
|
|
169
172
|
PageSchema: () => PageSchema,
|
|
@@ -190,13 +193,17 @@ __export(src_exports3, {
|
|
|
190
193
|
ReviewAggregateSchema: () => ReviewAggregateSchema,
|
|
191
194
|
ReviewSchema: () => ReviewSchema,
|
|
192
195
|
SCANNING_FORM: () => SCANNING_FORM,
|
|
196
|
+
SDK_SHIMS: () => SDK_SHIMS,
|
|
197
|
+
SDK_VERSION_PATTERN: () => SDK_VERSION_PATTERN,
|
|
193
198
|
SELECTION_ORIGIN_VISITOR: () => SELECTION_ORIGIN_VISITOR,
|
|
194
199
|
SIGNAL_PATCH_PREFIX: () => SIGNAL_PATCH_PREFIX,
|
|
200
|
+
SOCKET_TICKET_PARAM: () => SOCKET_TICKET_PARAM,
|
|
195
201
|
STRUCTURAL_BASELINE_CATALOG: () => STRUCTURAL_BASELINE_CATALOG,
|
|
196
202
|
STRUCTURAL_BASELINE_TYPES: () => STRUCTURAL_BASELINE_TYPES,
|
|
197
203
|
SURFACES: () => SURFACES,
|
|
198
204
|
SURFACE_DISPOSITION: () => SURFACE_DISPOSITION,
|
|
199
205
|
ScrollContainerProvider: () => ScrollContainerProvider,
|
|
206
|
+
SdkVersionSchema: () => SdkVersionSchema,
|
|
200
207
|
SelectedOptionSchema: () => SelectedOptionSchema,
|
|
201
208
|
SessionActivityEventSchema: () => SessionActivityEventSchema,
|
|
202
209
|
SessionActivitySchema: () => SessionActivitySchema,
|
|
@@ -260,6 +267,9 @@ __export(src_exports3, {
|
|
|
260
267
|
ViewportWindowContext: () => ViewportWindowContext,
|
|
261
268
|
ViewportWindowProvider: () => ViewportWindowProvider,
|
|
262
269
|
VisitorIdDurabilitySchema: () => VisitorIdDurabilitySchema,
|
|
270
|
+
WIRE_PROTOCOL_PARAM: () => WIRE_PROTOCOL_PARAM,
|
|
271
|
+
WIRE_PROTOCOL_UNSUPPORTED_CLOSE: () => WIRE_PROTOCOL_UNSUPPORTED_CLOSE,
|
|
272
|
+
WIRE_PROTOCOL_VERSION: () => WIRE_PROTOCOL_VERSION,
|
|
263
273
|
WORKSPACE_THEME_PACKAGES: () => WORKSPACE_THEME_PACKAGES,
|
|
264
274
|
WireCatalogEntrySchema: () => WireCatalogEntrySchema,
|
|
265
275
|
WireCatalogSchema: () => WireCatalogSchema,
|
|
@@ -307,6 +317,7 @@ __export(src_exports3, {
|
|
|
307
317
|
collectLayoutGids: () => collectLayoutGids,
|
|
308
318
|
collectPlacedEntityRefs: () => collectPlacedEntityRefs,
|
|
309
319
|
colorHexOf: () => colorHexOf,
|
|
320
|
+
compareSdkVersions: () => compareSdkVersions,
|
|
310
321
|
compressArray: () => compressArray,
|
|
311
322
|
compressString: () => compressString,
|
|
312
323
|
computeActiveChips: () => computeActiveChips,
|
|
@@ -471,6 +482,8 @@ __export(src_exports3, {
|
|
|
471
482
|
scopedAttributeKey: () => scopedAttributeKey,
|
|
472
483
|
scrollEventTarget: () => scrollEventTarget,
|
|
473
484
|
scrollPaddingTopOf: () => scrollPaddingTopOf,
|
|
485
|
+
sdkShimsFor: () => sdkShimsFor,
|
|
486
|
+
sdkWindowProblem: () => sdkWindowProblem,
|
|
474
487
|
selectItemVariants: () => selectItemVariants,
|
|
475
488
|
selectedOptionsToRecord: () => selectedOptionsToRecord,
|
|
476
489
|
serverState: () => serverState,
|
|
@@ -1465,15 +1478,18 @@ __export(src_exports, {
|
|
|
1465
1478
|
LlmUsageDailySchema: () => LlmUsageDailySchema,
|
|
1466
1479
|
MAX_ATTACHMENT_BYTES: () => MAX_ATTACHMENT_BYTES,
|
|
1467
1480
|
MAX_VISITOR_PROMPT_CHARS: () => MAX_VISITOR_PROMPT_CHARS,
|
|
1481
|
+
MIN_WIRE_PROTOCOL_VERSION: () => MIN_WIRE_PROTOCOL_VERSION,
|
|
1468
1482
|
MOBILE_VIEWPORT_MAX: () => MOBILE_VIEWPORT_MAX,
|
|
1469
1483
|
NAVIGATE_SIGNAL: () => NAVIGATE_SIGNAL,
|
|
1470
1484
|
NavigatePayloadSchema: () => NavigatePayloadSchema,
|
|
1485
|
+
OLDEST_SUPPORTED_SDK: () => OLDEST_SUPPORTED_SDK,
|
|
1471
1486
|
PRESENCE_CANVAS_REFRESH_SIGNAL: () => PRESENCE_CANVAS_REFRESH_SIGNAL,
|
|
1472
1487
|
PRESENCE_FACT_DISMISS_SIGNAL: () => PRESENCE_FACT_DISMISS_SIGNAL,
|
|
1473
1488
|
PRESENCE_FLOW: () => PRESENCE_FLOW,
|
|
1474
1489
|
PRESENCE_OPTIMISTIC_FACTS_FLOW: () => PRESENCE_OPTIMISTIC_FACTS_FLOW,
|
|
1475
1490
|
PRODUCT_SELECT_OPTION_SIGNAL: () => PRODUCT_SELECT_OPTION_SIGNAL,
|
|
1476
1491
|
PROJECTION_SET_SIGNAL: () => PROJECTION_SET_SIGNAL,
|
|
1492
|
+
PackageBundleRefSchema: () => PackageBundleRefSchema,
|
|
1477
1493
|
PackageReleaseSchema: () => PackageReleaseSchema,
|
|
1478
1494
|
PageSchema: () => PageSchema,
|
|
1479
1495
|
PatchSchema: () => PatchSchema,
|
|
@@ -1485,11 +1501,15 @@ __export(src_exports, {
|
|
|
1485
1501
|
RESERVED_ID_SET: () => RESERVED_ID_SET,
|
|
1486
1502
|
RecordVerdictInputSchema: () => RecordVerdictInputSchema,
|
|
1487
1503
|
RecordableVerdictSchema: () => RecordableVerdictSchema,
|
|
1504
|
+
SDK_SHIMS: () => SDK_SHIMS,
|
|
1505
|
+
SDK_VERSION_PATTERN: () => SDK_VERSION_PATTERN,
|
|
1488
1506
|
SELECTION_ORIGIN_VISITOR: () => SELECTION_ORIGIN_VISITOR,
|
|
1489
1507
|
SIGNAL_PATCH_PREFIX: () => SIGNAL_PATCH_PREFIX,
|
|
1508
|
+
SOCKET_TICKET_PARAM: () => SOCKET_TICKET_PARAM,
|
|
1490
1509
|
STRUCTURAL_BASELINE_CATALOG: () => STRUCTURAL_BASELINE_CATALOG,
|
|
1491
1510
|
STRUCTURAL_BASELINE_TYPES: () => STRUCTURAL_BASELINE_TYPES,
|
|
1492
1511
|
SURFACES: () => SURFACES,
|
|
1512
|
+
SdkVersionSchema: () => SdkVersionSchema,
|
|
1493
1513
|
SessionActivityEventSchema: () => SessionActivityEventSchema,
|
|
1494
1514
|
SessionActivitySchema: () => SessionActivitySchema,
|
|
1495
1515
|
SessionArrivalSchema: () => SessionArrivalSchema,
|
|
@@ -1539,6 +1559,9 @@ __export(src_exports, {
|
|
|
1539
1559
|
ViewSchema: () => ViewSchema,
|
|
1540
1560
|
ViewportFocusSchema: () => ViewportFocusSchema,
|
|
1541
1561
|
VisitorIdDurabilitySchema: () => VisitorIdDurabilitySchema,
|
|
1562
|
+
WIRE_PROTOCOL_PARAM: () => WIRE_PROTOCOL_PARAM,
|
|
1563
|
+
WIRE_PROTOCOL_UNSUPPORTED_CLOSE: () => WIRE_PROTOCOL_UNSUPPORTED_CLOSE,
|
|
1564
|
+
WIRE_PROTOCOL_VERSION: () => WIRE_PROTOCOL_VERSION,
|
|
1542
1565
|
WORKSPACE_THEME_PACKAGES: () => WORKSPACE_THEME_PACKAGES,
|
|
1543
1566
|
WireCatalogEntrySchema: () => WireCatalogEntrySchema,
|
|
1544
1567
|
WireCatalogSchema: () => WireCatalogSchema,
|
|
@@ -1554,6 +1577,7 @@ __export(src_exports, {
|
|
|
1554
1577
|
catalogToWire: () => catalogToWire,
|
|
1555
1578
|
collectElementEntityRefs: () => collectElementEntityRefs,
|
|
1556
1579
|
collectPlacedEntityRefs: () => collectPlacedEntityRefs,
|
|
1580
|
+
compareSdkVersions: () => compareSdkVersions,
|
|
1557
1581
|
compressArray: () => compressArray,
|
|
1558
1582
|
compressString: () => compressString,
|
|
1559
1583
|
createTokenOverlapScorer: () => createTokenOverlapScorer,
|
|
@@ -1604,6 +1628,8 @@ __export(src_exports, {
|
|
|
1604
1628
|
schemaToWire: () => schemaToWire,
|
|
1605
1629
|
scopeOfAttributeKey: () => scopeOfAttributeKey,
|
|
1606
1630
|
scopedAttributeKey: () => scopedAttributeKey,
|
|
1631
|
+
sdkShimsFor: () => sdkShimsFor,
|
|
1632
|
+
sdkWindowProblem: () => sdkWindowProblem,
|
|
1607
1633
|
settledBlocks: () => settledBlocks,
|
|
1608
1634
|
splitSentences: () => splitSentences,
|
|
1609
1635
|
stateSnapshotSignal: () => stateSnapshotSignal,
|
|
@@ -2162,8 +2188,8 @@ var MIN_CHOICE_ANSWERS = 2;
|
|
|
2162
2188
|
var MAX_CHOICE_ANSWERS = 4;
|
|
2163
2189
|
var AnswerPartSchema = z14.object({ answer: z14.string().trim().min(1) });
|
|
2164
2190
|
var PartSchema = z14.union([z14.string(), AnswerPartSchema]);
|
|
2165
|
-
function partsText(
|
|
2166
|
-
return
|
|
2191
|
+
function partsText(parts2) {
|
|
2192
|
+
return parts2.map((p) => typeof p === "string" ? p : p.answer).join("");
|
|
2167
2193
|
}
|
|
2168
2194
|
var ModelTurnAskSchema = z14.object({
|
|
2169
2195
|
kind: z14.enum(["choice", "open"]),
|
|
@@ -3312,7 +3338,7 @@ function catalogFromWire(wire) {
|
|
|
3312
3338
|
}
|
|
3313
3339
|
|
|
3314
3340
|
// ../spacestation/src/catalog/wire/package-release.ts
|
|
3315
|
-
import { z as
|
|
3341
|
+
import { z as z27 } from "zod";
|
|
3316
3342
|
|
|
3317
3343
|
// ../spacestation/src/catalog/wire/brand-mark.ts
|
|
3318
3344
|
import { z as z25 } from "zod";
|
|
@@ -3333,20 +3359,76 @@ var BrandMarkSchema = z25.object({ square: BrandMarkFileSchema.optional(), wordm
|
|
|
3333
3359
|
var BrandMarkImageSchema = z25.object({ src: z25.string().min(1), type: z25.enum(BRAND_MARK_TYPES) }).strict();
|
|
3334
3360
|
var SpaceBrandMarkSchema = z25.object({ square: BrandMarkImageSchema.nullable(), wordmark: BrandMarkImageSchema.nullable() }).strict();
|
|
3335
3361
|
|
|
3362
|
+
// ../spacestation/src/catalog/wire/sdk-compat.ts
|
|
3363
|
+
import { z as z26 } from "zod";
|
|
3364
|
+
var SDK_VERSION_PATTERN = /^\d{1,4}\.\d{1,4}\.\d{1,4}(-[0-9A-Za-z.]{1,32})?$/;
|
|
3365
|
+
var SdkVersionSchema = z26.string().regex(SDK_VERSION_PATTERN, "an sdk version is major.minor.patch");
|
|
3366
|
+
var OLDEST_SUPPORTED_SDK = "0.3.0";
|
|
3367
|
+
var SDK_SHIMS = {
|
|
3368
|
+
/** sdk ≤ 0.3 called the vertical verbs on `useCanvasActions()` — `legacy-canvas-actions.ts`. */
|
|
3369
|
+
legacyCanvasActions: { below: "0.4.0" }
|
|
3370
|
+
};
|
|
3371
|
+
function parts(version2) {
|
|
3372
|
+
const dash = version2.indexOf("-");
|
|
3373
|
+
const core = (dash === -1 ? version2 : version2.slice(0, dash)).split(".").map(Number);
|
|
3374
|
+
return { core, pre: dash === -1 ? null : version2.slice(dash + 1) };
|
|
3375
|
+
}
|
|
3376
|
+
function compareSdkVersions(a, b) {
|
|
3377
|
+
const pa = parts(a);
|
|
3378
|
+
const pb = parts(b);
|
|
3379
|
+
for (let i = 0; i < 3; i++) {
|
|
3380
|
+
const diff = pa.core[i] - pb.core[i];
|
|
3381
|
+
if (diff !== 0) return diff;
|
|
3382
|
+
}
|
|
3383
|
+
if (pa.pre === pb.pre) return 0;
|
|
3384
|
+
if (pa.pre === null) return 1;
|
|
3385
|
+
if (pb.pre === null) return -1;
|
|
3386
|
+
return pa.pre.localeCompare(pb.pre, "en", { numeric: true });
|
|
3387
|
+
}
|
|
3388
|
+
function sdkShimsFor(builtWithSdk) {
|
|
3389
|
+
const out = [];
|
|
3390
|
+
for (const shim of Object.keys(SDK_SHIMS)) {
|
|
3391
|
+
if (!isSdkShim(shim)) continue;
|
|
3392
|
+
if (builtWithSdk === void 0 || compareSdkVersions(builtWithSdk, SDK_SHIMS[shim].below) < 0) out.push(shim);
|
|
3393
|
+
}
|
|
3394
|
+
return out;
|
|
3395
|
+
}
|
|
3396
|
+
function isSdkShim(key) {
|
|
3397
|
+
return key in SDK_SHIMS;
|
|
3398
|
+
}
|
|
3399
|
+
function sdkWindowProblem(builtWithSdk, platformSdk) {
|
|
3400
|
+
if (builtWithSdk === void 0) return null;
|
|
3401
|
+
if (compareSdkVersions(builtWithSdk, OLDEST_SUPPORTED_SDK) < 0) {
|
|
3402
|
+
return `built with @40rty/ams-sdk ${builtWithSdk}; this platform hosts ${OLDEST_SUPPORTED_SDK} to ${platformSdk} \u2014 upgrade @40rty/ams-sdk and publish again`;
|
|
3403
|
+
}
|
|
3404
|
+
if (compareSdkVersions(builtWithSdk, platformSdk) > 0) {
|
|
3405
|
+
return `built with @40rty/ams-sdk ${builtWithSdk}, newer than the ${platformSdk} this platform serves \u2014 build against ${platformSdk} or older`;
|
|
3406
|
+
}
|
|
3407
|
+
return null;
|
|
3408
|
+
}
|
|
3409
|
+
|
|
3336
3410
|
// ../spacestation/src/catalog/wire/package-release.ts
|
|
3337
3411
|
var RESERVED_SCOPES = ["@fourty/", "@40rty/"];
|
|
3338
3412
|
var BUNDLE_ASSET_PATH = /^assets\/[A-Za-z0-9_-]+\.(woff2?|ttf|otf|png|jpe?g|svg|gif|webp)$/;
|
|
3339
|
-
var PackageReleaseSchema =
|
|
3413
|
+
var PackageReleaseSchema = z27.object({
|
|
3340
3414
|
/** The id spaces name in `componentSources` — an npm-style package name. */
|
|
3341
|
-
sourceId:
|
|
3342
|
-
label:
|
|
3415
|
+
sourceId: z27.string().regex(/^(@[a-z0-9][a-z0-9-]*\/)?[a-z0-9][a-z0-9-]*$/, "sourceId must be an npm-style package name").refine((id) => !RESERVED_SCOPES.some((scope2) => id.startsWith(scope2)), `the ${RESERVED_SCOPES.join(" and ")} scopes are reserved`),
|
|
3416
|
+
label: z27.string().min(1).max(120),
|
|
3343
3417
|
/** The package's own version, as its repository states it — shown in the console. */
|
|
3344
|
-
version:
|
|
3418
|
+
version: z27.string().min(1).max(40),
|
|
3345
3419
|
/** What this release changed, in the publisher's words (`forty publish --message`) — shown in the console's version list. */
|
|
3346
|
-
description:
|
|
3420
|
+
description: z27.string().min(1).max(500).optional(),
|
|
3421
|
+
/**
|
|
3422
|
+
* The `@40rty/ams-sdk` version the brand project resolved when `forty
|
|
3423
|
+
* publish` built this release. A bundle takes the sdk from the page at
|
|
3424
|
+
* runtime, so this is what tells the platform which compat shims it needs
|
|
3425
|
+
* and whether it can host it at all (`sdk-compat.ts`). Absent on releases
|
|
3426
|
+
* published before the stamp existed — those are legacy.
|
|
3427
|
+
*/
|
|
3428
|
+
builtWithSdk: SdkVersionSchema.optional(),
|
|
3347
3429
|
catalog: WireCatalogSchema,
|
|
3348
3430
|
/** Component manifests by path under `catalogs/`, e.g. `catalogs/product/productGrid.md`. */
|
|
3349
|
-
manifests:
|
|
3431
|
+
manifests: z27.record(z27.string().regex(/^catalogs\/.+\.md$/, "a manifest path is catalogs/<\u2026>.md"), z27.string()),
|
|
3350
3432
|
/**
|
|
3351
3433
|
* The brand's components, built — present when the PLATFORM hosts this
|
|
3352
3434
|
* brand's spacefront, absent when the brand hosts it in its own app. One
|
|
@@ -3355,17 +3437,17 @@ var PackageReleaseSchema = z26.object({
|
|
|
3355
3437
|
* images — base64, keyed by the path the stylesheet's `url()` names, beside
|
|
3356
3438
|
* it). It is served to browsers; the platform's servers never run it.
|
|
3357
3439
|
*/
|
|
3358
|
-
bundle:
|
|
3359
|
-
js:
|
|
3360
|
-
css:
|
|
3361
|
-
assets:
|
|
3440
|
+
bundle: z27.object({
|
|
3441
|
+
js: z27.string().min(1),
|
|
3442
|
+
css: z27.string(),
|
|
3443
|
+
assets: z27.record(z27.string().regex(BUNDLE_ASSET_PATH, "an asset is assets/<name>.<font or image extension>"), z27.string().base64()).optional()
|
|
3362
3444
|
}).strict().optional(),
|
|
3363
3445
|
/**
|
|
3364
3446
|
* The class the spacefront root carries while this package is the space's.
|
|
3365
3447
|
* The package's own stylesheet styles under it. Absent = the platform's
|
|
3366
3448
|
* default theme class.
|
|
3367
3449
|
*/
|
|
3368
|
-
theme:
|
|
3450
|
+
theme: z27.object({ themeClass: z27.string().regex(/^[a-z][a-z0-9-]*$/, "a theme class is lowercase letters, digits and hyphens") }).strict().optional(),
|
|
3369
3451
|
/**
|
|
3370
3452
|
* The brand's mark (`brand-mark.ts`). Sent as the files themselves; the
|
|
3371
3453
|
* platform stores them content-addressed at ingest and keeps only their
|
|
@@ -3378,17 +3460,17 @@ var PackageReleaseSchema = z26.object({
|
|
|
3378
3460
|
* The package's own composition guidance for its own components — prompt
|
|
3379
3461
|
* markdown the agent reads, gated on the capabilities it names (`requires`).
|
|
3380
3462
|
*/
|
|
3381
|
-
promptSections:
|
|
3463
|
+
promptSections: z27.array(z27.object({ id: z27.string().regex(/^[a-z0-9-]+$/), order: z27.number().int(), content: z27.string().min(1).max(2e4), requires: z27.array(z27.string()) }).strict()).max(10).optional(),
|
|
3382
3464
|
/**
|
|
3383
3465
|
* Opaque per-vertical extension data (`BrandDefinition.config`): the
|
|
3384
3466
|
* platform stays vertical-agnostic and the vertical's own code reads its keys.
|
|
3385
3467
|
*/
|
|
3386
|
-
config:
|
|
3468
|
+
config: z27.record(z27.string(), z27.unknown()).optional(),
|
|
3387
3469
|
/**
|
|
3388
3470
|
* Set by the platform, never by a publisher: this release is a DRAFT of the
|
|
3389
3471
|
* package `of`, previewed on the space `space`. See `draftSourceId`.
|
|
3390
3472
|
*/
|
|
3391
|
-
draft:
|
|
3473
|
+
draft: z27.object({ of: z27.string().min(1), space: z27.string().min(1) }).strict().optional()
|
|
3392
3474
|
}).strict();
|
|
3393
3475
|
var DRAFT_SEPARATOR = "--";
|
|
3394
3476
|
function draftSourceId(sourceId, spaceSlug, developer) {
|
|
@@ -3406,37 +3488,50 @@ function parseReleasePreview(id) {
|
|
|
3406
3488
|
return { sourceId: match[1], release: Number(match[2]) };
|
|
3407
3489
|
}
|
|
3408
3490
|
|
|
3491
|
+
// ../spacestation/src/catalog/wire/package-bundle-ref.ts
|
|
3492
|
+
import { z as z28 } from "zod";
|
|
3493
|
+
var PackageBundleRefSchema = z28.object({
|
|
3494
|
+
sourceId: z28.string(),
|
|
3495
|
+
js: z28.string(),
|
|
3496
|
+
css: z28.string(),
|
|
3497
|
+
/** The brand's name for itself, and its package's version. */
|
|
3498
|
+
label: z28.string(),
|
|
3499
|
+
version: z28.string(),
|
|
3500
|
+
/** The sdk the bundle was built against (`PackageRelease.builtWithSdk`) — absent for a legacy release. Picks its compat shims. */
|
|
3501
|
+
builtWithSdk: SdkVersionSchema.optional()
|
|
3502
|
+
});
|
|
3503
|
+
|
|
3409
3504
|
// ../spacestation/src/projection/projection.ts
|
|
3410
|
-
import { z as
|
|
3411
|
-
var LateBoundValueSchema =
|
|
3412
|
-
var DirectiveValueSchema =
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3505
|
+
import { z as z29 } from "zod";
|
|
3506
|
+
var LateBoundValueSchema = z29.object({ fact: z29.literal(true) });
|
|
3507
|
+
var DirectiveValueSchema = z29.union([
|
|
3508
|
+
z29.string(),
|
|
3509
|
+
z29.number(),
|
|
3510
|
+
z29.boolean(),
|
|
3416
3511
|
LateBoundValueSchema
|
|
3417
3512
|
]);
|
|
3418
3513
|
function isLateBound(v) {
|
|
3419
3514
|
return typeof v === "object" && v !== null && "fact" in v;
|
|
3420
3515
|
}
|
|
3421
|
-
var ProjectionDirectiveSchema =
|
|
3516
|
+
var ProjectionDirectiveSchema = z29.object({
|
|
3422
3517
|
/** Keep only items whose axis values all match. Keyed by axis name
|
|
3423
3518
|
* (e.g. `Size`); value is a literal or the `{fact:true}` marker. */
|
|
3424
|
-
isolateTo:
|
|
3519
|
+
isolateTo: z29.record(DirectiveValueSchema).optional(),
|
|
3425
3520
|
/** Isolate to EVERY axis the visitor has a stored fact for. The agent
|
|
3426
3521
|
* emits this (it is vertical-agnostic — it cannot name axes); the
|
|
3427
3522
|
* entity binding expands it against the entity's own axes + facts. */
|
|
3428
|
-
isolateToFacts:
|
|
3523
|
+
isolateToFacts: z29.boolean().optional(),
|
|
3429
3524
|
/** Keep only items the entity binding reports as available. */
|
|
3430
|
-
availableOnly:
|
|
3525
|
+
availableOnly: z29.boolean().optional(),
|
|
3431
3526
|
/** Cap the rendered count after filtering. */
|
|
3432
|
-
limit:
|
|
3527
|
+
limit: z29.number().int().positive().optional()
|
|
3433
3528
|
});
|
|
3434
|
-
var ProjectionPreferencesSchema =
|
|
3435
|
-
|
|
3529
|
+
var ProjectionPreferencesSchema = z29.record(
|
|
3530
|
+
z29.union([ProjectionDirectiveSchema, z29.null()])
|
|
3436
3531
|
);
|
|
3437
3532
|
var PROJECTION_SET_SIGNAL = "projection.set";
|
|
3438
|
-
var ProjectionSetPayloadSchema =
|
|
3439
|
-
setAll:
|
|
3533
|
+
var ProjectionSetPayloadSchema = z29.object({
|
|
3534
|
+
setAll: z29.union([ProjectionDirectiveSchema, z29.null()]).optional(),
|
|
3440
3535
|
set: ProjectionPreferencesSchema.optional()
|
|
3441
3536
|
});
|
|
3442
3537
|
function norm(v) {
|
|
@@ -3470,23 +3565,23 @@ function isActiveDirective(directive) {
|
|
|
3470
3565
|
}
|
|
3471
3566
|
|
|
3472
3567
|
// ../spacestation/src/focus/focus.ts
|
|
3473
|
-
import { z as
|
|
3568
|
+
import { z as z30 } from "zod";
|
|
3474
3569
|
var VIEW_FOCUS_ELEMENT_SIGNAL = "view.focus.element";
|
|
3475
|
-
var FocusElementPayloadSchema =
|
|
3476
|
-
elementId:
|
|
3570
|
+
var FocusElementPayloadSchema = z30.object({
|
|
3571
|
+
elementId: z30.string().min(1)
|
|
3477
3572
|
});
|
|
3478
3573
|
|
|
3479
3574
|
// ../spacestation/src/view/continuation.ts
|
|
3480
|
-
import { z as
|
|
3575
|
+
import { z as z31 } from "zod";
|
|
3481
3576
|
var VIEW_EXTEND_SIGNAL = "view.extend";
|
|
3482
|
-
var ViewExtendPayloadSchema =
|
|
3483
|
-
reason:
|
|
3577
|
+
var ViewExtendPayloadSchema = z31.object({
|
|
3578
|
+
reason: z31.enum(["scroll_near_bottom"])
|
|
3484
3579
|
});
|
|
3485
3580
|
var VIEW_EXHAUSTED_SIGNAL = "view.exhausted";
|
|
3486
3581
|
var CONTINUATION_ENABLED = false;
|
|
3487
3582
|
|
|
3488
3583
|
// ../spacestation/src/attachment/attachment.ts
|
|
3489
|
-
import { z as
|
|
3584
|
+
import { z as z32 } from "zod";
|
|
3490
3585
|
var ALLOWED_ATTACHMENT_TYPES = [
|
|
3491
3586
|
"image/jpeg",
|
|
3492
3587
|
"image/png",
|
|
@@ -3501,34 +3596,36 @@ function isAllowedAttachmentType(mime) {
|
|
|
3501
3596
|
function isImageAttachment(mime) {
|
|
3502
3597
|
return mime.startsWith("image/");
|
|
3503
3598
|
}
|
|
3504
|
-
var AttachmentRefSchema =
|
|
3505
|
-
|
|
3506
|
-
|
|
3599
|
+
var AttachmentRefSchema = z32.object({
|
|
3600
|
+
// A UUID, as `storeAttachment` mints it: the id becomes a storage path segment,
|
|
3601
|
+
// so nothing else — no `/`, no `..` — may reach that lookup.
|
|
3602
|
+
id: z32.string().uuid(),
|
|
3603
|
+
mimeType: z32.string().refine(isAllowedAttachmentType, {
|
|
3507
3604
|
message: "mimeType not on the attachment allow-list"
|
|
3508
3605
|
}),
|
|
3509
|
-
name:
|
|
3510
|
-
size:
|
|
3511
|
-
url:
|
|
3606
|
+
name: z32.string().min(1),
|
|
3607
|
+
size: z32.number().int().positive().max(MAX_ATTACHMENT_BYTES),
|
|
3608
|
+
url: z32.string().min(1)
|
|
3512
3609
|
});
|
|
3513
|
-
var AttachmentRefsSchema =
|
|
3610
|
+
var AttachmentRefsSchema = z32.array(AttachmentRefSchema);
|
|
3514
3611
|
|
|
3515
3612
|
// ../spacestation/src/contracts/entry-context.ts
|
|
3516
|
-
import { z as
|
|
3613
|
+
import { z as z33 } from "zod";
|
|
3517
3614
|
var ENTRY_CONTEXT_MAX_VALUE_CHARS = 200;
|
|
3518
3615
|
var ENTRY_CONTEXT_MAX_KEYS = 12;
|
|
3519
3616
|
var ENTRY_CONTEXT_MAX_NAMESPACES = 8;
|
|
3520
3617
|
var ENTRY_CONTEXT_MAX_NAME_CHARS = 64;
|
|
3521
|
-
var EntryContextValueSchema =
|
|
3522
|
-
var EntryContextNameSchema =
|
|
3523
|
-
var EntryContextNamespaceSchema =
|
|
3618
|
+
var EntryContextValueSchema = z33.string().trim().min(1).max(ENTRY_CONTEXT_MAX_VALUE_CHARS);
|
|
3619
|
+
var EntryContextNameSchema = z33.string().trim().min(1).max(ENTRY_CONTEXT_MAX_NAME_CHARS);
|
|
3620
|
+
var EntryContextNamespaceSchema = z33.record(EntryContextNameSchema, EntryContextValueSchema).refine((entries3) => Object.keys(entries3).length <= ENTRY_CONTEXT_MAX_KEYS, {
|
|
3524
3621
|
message: `at most ${ENTRY_CONTEXT_MAX_KEYS} entries per namespace`
|
|
3525
3622
|
});
|
|
3526
|
-
var EntryContextSchema =
|
|
3623
|
+
var EntryContextSchema = z33.record(EntryContextNameSchema, EntryContextNamespaceSchema).refine((namespaces) => Object.keys(namespaces).length <= ENTRY_CONTEXT_MAX_NAMESPACES, {
|
|
3527
3624
|
message: `at most ${ENTRY_CONTEXT_MAX_NAMESPACES} entry-context namespaces`
|
|
3528
3625
|
});
|
|
3529
3626
|
|
|
3530
3627
|
// ../spacestation/src/contracts/session-arrival.ts
|
|
3531
|
-
import { z as
|
|
3628
|
+
import { z as z34 } from "zod";
|
|
3532
3629
|
var SURFACES = [
|
|
3533
3630
|
"spacefront",
|
|
3534
3631
|
"embed",
|
|
@@ -3538,11 +3635,11 @@ var SURFACES = [
|
|
|
3538
3635
|
"playground",
|
|
3539
3636
|
"automation"
|
|
3540
3637
|
];
|
|
3541
|
-
var SurfaceSchema =
|
|
3638
|
+
var SurfaceSchema = z34.enum(SURFACES);
|
|
3542
3639
|
var CLICK_ID_KINDS = ["gclid", "fbclid", "msclkid", "wbraid", "gbraid"];
|
|
3543
|
-
var ClickIdKindSchema =
|
|
3640
|
+
var ClickIdKindSchema = z34.enum(CLICK_ID_KINDS);
|
|
3544
3641
|
var VISITOR_ID_DURABILITIES = ["persisted", "ephemeral", "host_supplied"];
|
|
3545
|
-
var VisitorIdDurabilitySchema =
|
|
3642
|
+
var VisitorIdDurabilitySchema = z34.enum(VISITOR_ID_DURABILITIES);
|
|
3546
3643
|
var TRAFFIC_BUCKETS = [
|
|
3547
3644
|
"paid_google",
|
|
3548
3645
|
"paid_meta",
|
|
@@ -3554,10 +3651,10 @@ var TRAFFIC_BUCKETS = [
|
|
|
3554
3651
|
"direct",
|
|
3555
3652
|
"unknown"
|
|
3556
3653
|
];
|
|
3557
|
-
var TrafficBucketSchema =
|
|
3654
|
+
var TrafficBucketSchema = z34.enum(TRAFFIC_BUCKETS);
|
|
3558
3655
|
var ARRIVAL_MAX_VALUE_CHARS = 200;
|
|
3559
|
-
var ArrivalValueSchema =
|
|
3560
|
-
var SessionArrivalSchema =
|
|
3656
|
+
var ArrivalValueSchema = z34.string().trim().min(1).max(ARRIVAL_MAX_VALUE_CHARS);
|
|
3657
|
+
var SessionArrivalSchema = z34.object({
|
|
3561
3658
|
utmSource: ArrivalValueSchema.optional(),
|
|
3562
3659
|
utmMedium: ArrivalValueSchema.optional(),
|
|
3563
3660
|
utmCampaign: ArrivalValueSchema.optional(),
|
|
@@ -3643,37 +3740,46 @@ function arrivalToParams(arrival, into) {
|
|
|
3643
3740
|
if (arrival.visitorIdDurability !== void 0) into.set("visitorIdDurability", arrival.visitorIdDurability);
|
|
3644
3741
|
}
|
|
3645
3742
|
|
|
3743
|
+
// ../spacestation/src/contracts/socket-ticket-param.ts
|
|
3744
|
+
var SOCKET_TICKET_PARAM = "ticket";
|
|
3745
|
+
|
|
3746
|
+
// ../spacestation/src/contracts/wire-protocol.ts
|
|
3747
|
+
var WIRE_PROTOCOL_VERSION = 1;
|
|
3748
|
+
var MIN_WIRE_PROTOCOL_VERSION = 1;
|
|
3749
|
+
var WIRE_PROTOCOL_PARAM = "protocol";
|
|
3750
|
+
var WIRE_PROTOCOL_UNSUPPORTED_CLOSE = 4426;
|
|
3751
|
+
|
|
3646
3752
|
// ../spacestation/src/catalog/attribute-registry.ts
|
|
3647
|
-
import { z as
|
|
3648
|
-
var AttributeScopeBucketSchema =
|
|
3649
|
-
scope:
|
|
3650
|
-
needles:
|
|
3651
|
-
label:
|
|
3753
|
+
import { z as z35 } from "zod";
|
|
3754
|
+
var AttributeScopeBucketSchema = z35.object({
|
|
3755
|
+
scope: z35.string(),
|
|
3756
|
+
needles: z35.array(z35.string()).readonly(),
|
|
3757
|
+
label: z35.string().optional()
|
|
3652
3758
|
});
|
|
3653
|
-
var AttributeScopeConfigSchema =
|
|
3654
|
-
facet:
|
|
3655
|
-
buckets:
|
|
3656
|
-
emptyScope:
|
|
3657
|
-
noMatchScope:
|
|
3658
|
-
ignoreValues:
|
|
3659
|
-
emptyScopeLabel:
|
|
3660
|
-
noMatchScopeLabel:
|
|
3759
|
+
var AttributeScopeConfigSchema = z35.object({
|
|
3760
|
+
facet: z35.string(),
|
|
3761
|
+
buckets: z35.array(AttributeScopeBucketSchema).readonly(),
|
|
3762
|
+
emptyScope: z35.string(),
|
|
3763
|
+
noMatchScope: z35.string(),
|
|
3764
|
+
ignoreValues: z35.array(z35.string()).readonly(),
|
|
3765
|
+
emptyScopeLabel: z35.string().optional(),
|
|
3766
|
+
noMatchScopeLabel: z35.string().optional()
|
|
3661
3767
|
});
|
|
3662
|
-
var AttributeDefBaseSchema =
|
|
3663
|
-
description:
|
|
3664
|
-
durable:
|
|
3665
|
-
label:
|
|
3768
|
+
var AttributeDefBaseSchema = z35.object({
|
|
3769
|
+
description: z35.string().optional(),
|
|
3770
|
+
durable: z35.boolean().optional(),
|
|
3771
|
+
label: z35.string().optional()
|
|
3666
3772
|
});
|
|
3667
|
-
var AttributeDefSchema =
|
|
3668
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3669
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3670
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3671
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3773
|
+
var AttributeDefSchema = z35.discriminatedUnion("kind", [
|
|
3774
|
+
AttributeDefBaseSchema.extend({ kind: z35.literal("enum"), values: z35.array(z35.string()) }),
|
|
3775
|
+
AttributeDefBaseSchema.extend({ kind: z35.literal("free_text") }),
|
|
3776
|
+
AttributeDefBaseSchema.extend({ kind: z35.literal("date_or_season") }),
|
|
3777
|
+
AttributeDefBaseSchema.extend({ kind: z35.literal("money_or_band") }),
|
|
3672
3778
|
AttributeDefBaseSchema.extend({
|
|
3673
|
-
kind:
|
|
3674
|
-
min:
|
|
3675
|
-
max:
|
|
3676
|
-
unit:
|
|
3779
|
+
kind: z35.literal("number"),
|
|
3780
|
+
min: z35.number().optional(),
|
|
3781
|
+
max: z35.number().optional(),
|
|
3782
|
+
unit: z35.string().optional()
|
|
3677
3783
|
})
|
|
3678
3784
|
]);
|
|
3679
3785
|
var EXTRAS_PREFIX = "extras.";
|
|
@@ -3773,30 +3879,30 @@ function hostingAllows(hosting, surface) {
|
|
|
3773
3879
|
}
|
|
3774
3880
|
|
|
3775
3881
|
// ../spacestation/src/space/trace.ts
|
|
3776
|
-
import { z as
|
|
3777
|
-
var RunTokenUsageSchema =
|
|
3778
|
-
input_tokens:
|
|
3779
|
-
output_tokens:
|
|
3780
|
-
cache_read_tokens:
|
|
3882
|
+
import { z as z36 } from "zod";
|
|
3883
|
+
var RunTokenUsageSchema = z36.object({
|
|
3884
|
+
input_tokens: z36.number().optional(),
|
|
3885
|
+
output_tokens: z36.number().optional(),
|
|
3886
|
+
cache_read_tokens: z36.number().optional()
|
|
3781
3887
|
});
|
|
3782
|
-
var TraceRecordSchema =
|
|
3783
|
-
id:
|
|
3784
|
-
spaceId:
|
|
3785
|
-
sessionId:
|
|
3888
|
+
var TraceRecordSchema = z36.object({
|
|
3889
|
+
id: z36.string().uuid(),
|
|
3890
|
+
spaceId: z36.string().uuid().nullable(),
|
|
3891
|
+
sessionId: z36.string(),
|
|
3786
3892
|
/** OTP-verified visitor email the session was unlocked with, or `null`
|
|
3787
3893
|
* for an unlocked space / anonymous unlock. */
|
|
3788
|
-
visitorEmail:
|
|
3789
|
-
userPrompt:
|
|
3790
|
-
branch:
|
|
3791
|
-
responseText:
|
|
3792
|
-
layout:
|
|
3793
|
-
phaseTimings:
|
|
3794
|
-
tokensByModel:
|
|
3795
|
-
toolCalls:
|
|
3796
|
-
diagnostics:
|
|
3797
|
-
latencyFirstText:
|
|
3798
|
-
latencyFirstPatch:
|
|
3799
|
-
latencyTotal:
|
|
3894
|
+
visitorEmail: z36.string().nullable(),
|
|
3895
|
+
userPrompt: z36.string(),
|
|
3896
|
+
branch: z36.string().nullable(),
|
|
3897
|
+
responseText: z36.string().nullable(),
|
|
3898
|
+
layout: z36.unknown().nullable(),
|
|
3899
|
+
phaseTimings: z36.record(z36.number()).nullable(),
|
|
3900
|
+
tokensByModel: z36.record(RunTokenUsageSchema).nullable(),
|
|
3901
|
+
toolCalls: z36.array(z36.unknown()).nullable(),
|
|
3902
|
+
diagnostics: z36.array(z36.unknown()).nullable(),
|
|
3903
|
+
latencyFirstText: z36.number().int().nullable(),
|
|
3904
|
+
latencyFirstPatch: z36.number().int().nullable(),
|
|
3905
|
+
latencyTotal: z36.number().int().nullable(),
|
|
3800
3906
|
/**
|
|
3801
3907
|
* The CLIENT's turn id for this run, or `null`.
|
|
3802
3908
|
*
|
|
@@ -3812,29 +3918,29 @@ var TraceRecordSchema = z34.object({
|
|
|
3812
3918
|
* a turn whose ack the client never saw — none of which is evidence that a
|
|
3813
3919
|
* visitor asked something and got nothing.
|
|
3814
3920
|
*/
|
|
3815
|
-
turnId:
|
|
3921
|
+
turnId: z36.string().nullable(),
|
|
3816
3922
|
/** Serialized `TraceTracker.exportState()` payload (parsed object) —
|
|
3817
3923
|
* lets the inspector rehydrate this run verbatim after a reload. */
|
|
3818
|
-
trackerState:
|
|
3819
|
-
createdAt:
|
|
3924
|
+
trackerState: z36.unknown().nullable(),
|
|
3925
|
+
createdAt: z36.string()
|
|
3820
3926
|
});
|
|
3821
|
-
var MillisecondsSchema =
|
|
3822
|
-
var CreateTraceInputSchema =
|
|
3823
|
-
spaceId:
|
|
3824
|
-
sessionId:
|
|
3825
|
-
visitorEmail:
|
|
3826
|
-
userPrompt:
|
|
3827
|
-
branch:
|
|
3828
|
-
responseText:
|
|
3829
|
-
layout:
|
|
3830
|
-
phaseTimings:
|
|
3831
|
-
tokensByModel:
|
|
3832
|
-
toolCalls:
|
|
3833
|
-
diagnostics:
|
|
3927
|
+
var MillisecondsSchema = z36.number().nullable().transform((v) => v === null ? null : Math.round(v));
|
|
3928
|
+
var CreateTraceInputSchema = z36.object({
|
|
3929
|
+
spaceId: z36.string().uuid().nullable(),
|
|
3930
|
+
sessionId: z36.string(),
|
|
3931
|
+
visitorEmail: z36.string().nullable(),
|
|
3932
|
+
userPrompt: z36.string(),
|
|
3933
|
+
branch: z36.string().nullable(),
|
|
3934
|
+
responseText: z36.string().nullable(),
|
|
3935
|
+
layout: z36.unknown().nullable(),
|
|
3936
|
+
phaseTimings: z36.record(z36.number()).nullable(),
|
|
3937
|
+
tokensByModel: z36.record(RunTokenUsageSchema).nullable(),
|
|
3938
|
+
toolCalls: z36.array(z36.unknown()).nullable(),
|
|
3939
|
+
diagnostics: z36.array(z36.unknown()).nullable(),
|
|
3834
3940
|
latencyFirstText: MillisecondsSchema,
|
|
3835
3941
|
latencyFirstPatch: MillisecondsSchema,
|
|
3836
3942
|
latencyTotal: MillisecondsSchema,
|
|
3837
|
-
trackerState:
|
|
3943
|
+
trackerState: z36.unknown().nullable(),
|
|
3838
3944
|
/**
|
|
3839
3945
|
* The CLIENT's turn id for this run, or `null`.
|
|
3840
3946
|
*
|
|
@@ -3850,37 +3956,37 @@ var CreateTraceInputSchema = z34.object({
|
|
|
3850
3956
|
* a turn whose ack the client never saw — none of which is evidence that a
|
|
3851
3957
|
* visitor asked something and got nothing.
|
|
3852
3958
|
*/
|
|
3853
|
-
turnId:
|
|
3959
|
+
turnId: z36.string().nullable()
|
|
3854
3960
|
});
|
|
3855
|
-
var AgentSessionSummarySchema =
|
|
3856
|
-
sessionId:
|
|
3961
|
+
var AgentSessionSummarySchema = z36.object({
|
|
3962
|
+
sessionId: z36.string(),
|
|
3857
3963
|
/** Turn rows only; background/secondary runs are excluded by the aggregate. */
|
|
3858
|
-
turnCount:
|
|
3964
|
+
turnCount: z36.number().int(),
|
|
3859
3965
|
/** The session's opening prompt — titles the row in the UI. */
|
|
3860
|
-
firstPrompt:
|
|
3861
|
-
startedAt:
|
|
3862
|
-
lastRunAt:
|
|
3966
|
+
firstPrompt: z36.string(),
|
|
3967
|
+
startedAt: z36.string(),
|
|
3968
|
+
lastRunAt: z36.string(),
|
|
3863
3969
|
/** Summed `latency_total` across the session's turns. */
|
|
3864
|
-
totalLatencyMs:
|
|
3970
|
+
totalLatencyMs: z36.number().int()
|
|
3865
3971
|
});
|
|
3866
|
-
var SessionTurnSchema =
|
|
3867
|
-
id:
|
|
3868
|
-
userPrompt:
|
|
3869
|
-
responseText:
|
|
3972
|
+
var SessionTurnSchema = z36.object({
|
|
3973
|
+
id: z36.string().uuid(),
|
|
3974
|
+
userPrompt: z36.string(),
|
|
3975
|
+
responseText: z36.string().nullable(),
|
|
3870
3976
|
/** Full cumulative Spec committed by this turn — never a patch delta. */
|
|
3871
|
-
layout:
|
|
3872
|
-
createdAt:
|
|
3873
|
-
latencyTotal:
|
|
3874
|
-
phaseTimings:
|
|
3875
|
-
tokensByModel:
|
|
3876
|
-
input_tokens:
|
|
3877
|
-
output_tokens:
|
|
3977
|
+
layout: z36.unknown().nullable(),
|
|
3978
|
+
createdAt: z36.string(),
|
|
3979
|
+
latencyTotal: z36.number().int().nullable(),
|
|
3980
|
+
phaseTimings: z36.record(z36.number()).nullable(),
|
|
3981
|
+
tokensByModel: z36.record(z36.object({
|
|
3982
|
+
input_tokens: z36.number().optional(),
|
|
3983
|
+
output_tokens: z36.number().optional()
|
|
3878
3984
|
})).nullable(),
|
|
3879
|
-
toolCalls:
|
|
3880
|
-
diagnostics:
|
|
3985
|
+
toolCalls: z36.array(z36.unknown()).nullable(),
|
|
3986
|
+
diagnostics: z36.array(z36.unknown()).nullable()
|
|
3881
3987
|
});
|
|
3882
|
-
var SessionReplaySchema =
|
|
3883
|
-
turns:
|
|
3988
|
+
var SessionReplaySchema = z36.object({
|
|
3989
|
+
turns: z36.array(SessionTurnSchema),
|
|
3884
3990
|
/**
|
|
3885
3991
|
* The session's own last-committed layout, read straight off the durable
|
|
3886
3992
|
* session record (`sessions.blob.layout`) rather than derived from `turns`.
|
|
@@ -3891,20 +3997,20 @@ var SessionReplaySchema = z34.object({
|
|
|
3891
3997
|
* a perfectly real layout; only this field can show it. Null exclusively
|
|
3892
3998
|
* when the durable session row itself could not be read.
|
|
3893
3999
|
*/
|
|
3894
|
-
sessionLayout:
|
|
4000
|
+
sessionLayout: z36.record(z36.string(), z36.unknown()).nullable()
|
|
3895
4001
|
});
|
|
3896
|
-
var SessionTraceSchema =
|
|
3897
|
-
trackerState:
|
|
4002
|
+
var SessionTraceSchema = z36.object({
|
|
4003
|
+
trackerState: z36.string().nullable()
|
|
3898
4004
|
});
|
|
3899
|
-
var LlmUsageDailySchema =
|
|
3900
|
-
day:
|
|
4005
|
+
var LlmUsageDailySchema = z36.object({
|
|
4006
|
+
day: z36.string(),
|
|
3901
4007
|
/** Deployment that made the call — 'production', 'staging', 'pr-123', 'development'. */
|
|
3902
|
-
environment:
|
|
3903
|
-
feature:
|
|
3904
|
-
model:
|
|
3905
|
-
provider:
|
|
4008
|
+
environment: z36.string(),
|
|
4009
|
+
feature: z36.string(),
|
|
4010
|
+
model: z36.string(),
|
|
4011
|
+
provider: z36.string(),
|
|
3906
4012
|
/** Masked tail of the key actually billed, or null when unknown/non-Google. */
|
|
3907
|
-
keyFingerprint:
|
|
4013
|
+
keyFingerprint: z36.string().nullable(),
|
|
3908
4014
|
/**
|
|
3909
4015
|
* The space the call served, or null when it served none.
|
|
3910
4016
|
*
|
|
@@ -3913,91 +4019,91 @@ var LlmUsageDailySchema = z34.object({
|
|
|
3913
4019
|
* report that share rather than dropping it, or a per-space total reads as
|
|
3914
4020
|
* the platform total.
|
|
3915
4021
|
*/
|
|
3916
|
-
spaceId:
|
|
4022
|
+
spaceId: z36.string().nullable(),
|
|
3917
4023
|
/**
|
|
3918
4024
|
* The surface of the session the call served (`sessions.surface`), or null
|
|
3919
4025
|
* when it served no session or the session predates surface recording.
|
|
3920
4026
|
* `automation` is the eval harness — the signal that files an ordinary
|
|
3921
4027
|
* `agent-turn` as testing spend rather than as a visitor's.
|
|
3922
4028
|
*/
|
|
3923
|
-
surface:
|
|
3924
|
-
inputTokens:
|
|
3925
|
-
outputTokens:
|
|
4029
|
+
surface: z36.string().nullable(),
|
|
4030
|
+
inputTokens: z36.number(),
|
|
4031
|
+
outputTokens: z36.number(),
|
|
3926
4032
|
/** Subset of inputTokens, never additional to it. */
|
|
3927
|
-
cachedInputTokens:
|
|
3928
|
-
reasoningTokens:
|
|
3929
|
-
callCount:
|
|
3930
|
-
errorCount:
|
|
3931
|
-
estimatedCostUsd:
|
|
4033
|
+
cachedInputTokens: z36.number(),
|
|
4034
|
+
reasoningTokens: z36.number(),
|
|
4035
|
+
callCount: z36.number(),
|
|
4036
|
+
errorCount: z36.number(),
|
|
4037
|
+
estimatedCostUsd: z36.number().nullable()
|
|
3932
4038
|
});
|
|
3933
|
-
var LlmUsageBySessionSchema =
|
|
3934
|
-
sessionId:
|
|
3935
|
-
environment:
|
|
3936
|
-
model:
|
|
4039
|
+
var LlmUsageBySessionSchema = z36.object({
|
|
4040
|
+
sessionId: z36.string(),
|
|
4041
|
+
environment: z36.string(),
|
|
4042
|
+
model: z36.string(),
|
|
3937
4043
|
/** The space this session belongs to, or null for a session with no space. */
|
|
3938
|
-
spaceId:
|
|
4044
|
+
spaceId: z36.string().nullable(),
|
|
3939
4045
|
/** The session's surface — see `LlmUsageDailySchema.surface`. */
|
|
3940
|
-
surface:
|
|
4046
|
+
surface: z36.string().nullable(),
|
|
3941
4047
|
/** Label only — the first feature seen in the session. */
|
|
3942
|
-
firstFeature:
|
|
3943
|
-
startedAt:
|
|
3944
|
-
endedAt:
|
|
3945
|
-
inputTokens:
|
|
3946
|
-
outputTokens:
|
|
3947
|
-
cachedInputTokens:
|
|
3948
|
-
reasoningTokens:
|
|
3949
|
-
callCount:
|
|
3950
|
-
errorCount:
|
|
4048
|
+
firstFeature: z36.string(),
|
|
4049
|
+
startedAt: z36.string(),
|
|
4050
|
+
endedAt: z36.string(),
|
|
4051
|
+
inputTokens: z36.number(),
|
|
4052
|
+
outputTokens: z36.number(),
|
|
4053
|
+
cachedInputTokens: z36.number(),
|
|
4054
|
+
reasoningTokens: z36.number(),
|
|
4055
|
+
callCount: z36.number(),
|
|
4056
|
+
errorCount: z36.number(),
|
|
3951
4057
|
/** Priced server-side, like the daily rollup — the browser never carries a
|
|
3952
4058
|
* rate table, so there is exactly one place a price can be wrong. Null when
|
|
3953
4059
|
* the model is unpriced; never 0, which would read as free. */
|
|
3954
|
-
estimatedCostUsd:
|
|
4060
|
+
estimatedCostUsd: z36.number().nullable()
|
|
3955
4061
|
});
|
|
3956
|
-
var LlmSessionsDailySchema =
|
|
3957
|
-
day:
|
|
3958
|
-
environment:
|
|
3959
|
-
sessionCount:
|
|
4062
|
+
var LlmSessionsDailySchema = z36.object({
|
|
4063
|
+
day: z36.string(),
|
|
4064
|
+
environment: z36.string(),
|
|
4065
|
+
sessionCount: z36.number()
|
|
3960
4066
|
});
|
|
3961
4067
|
|
|
3962
4068
|
// ../spacestation/src/space/session-queue.ts
|
|
3963
|
-
import { z as
|
|
4069
|
+
import { z as z38 } from "zod";
|
|
3964
4070
|
|
|
3965
4071
|
// ../spacestation/src/space/session-activity.ts
|
|
3966
|
-
import { z as
|
|
3967
|
-
var SessionActivityEventSchema =
|
|
3968
|
-
id:
|
|
3969
|
-
kind:
|
|
3970
|
-
occurredAt:
|
|
3971
|
-
source:
|
|
3972
|
-
surface:
|
|
3973
|
-
payload:
|
|
4072
|
+
import { z as z37 } from "zod";
|
|
4073
|
+
var SessionActivityEventSchema = z37.object({
|
|
4074
|
+
id: z37.string(),
|
|
4075
|
+
kind: z37.string(),
|
|
4076
|
+
occurredAt: z37.string(),
|
|
4077
|
+
source: z37.string(),
|
|
4078
|
+
surface: z37.string(),
|
|
4079
|
+
payload: z37.record(z37.unknown())
|
|
3974
4080
|
});
|
|
3975
|
-
var SessionActivitySchema =
|
|
3976
|
-
events:
|
|
3977
|
-
hasMore:
|
|
4081
|
+
var SessionActivitySchema = z37.object({
|
|
4082
|
+
events: z37.array(SessionActivityEventSchema),
|
|
4083
|
+
hasMore: z37.boolean()
|
|
3978
4084
|
});
|
|
3979
4085
|
|
|
3980
4086
|
// ../spacestation/src/space/session-queue.ts
|
|
3981
|
-
var SessionVerdictSchema =
|
|
3982
|
-
var RecordableVerdictSchema =
|
|
3983
|
-
var SessionReviewEventSchema =
|
|
3984
|
-
id:
|
|
4087
|
+
var SessionVerdictSchema = z38.enum(["unreviewed", "viewed", "bug"]);
|
|
4088
|
+
var RecordableVerdictSchema = z38.enum(["viewed", "bug"]);
|
|
4089
|
+
var SessionReviewEventSchema = z38.object({
|
|
4090
|
+
id: z38.string().uuid(),
|
|
3985
4091
|
verdict: RecordableVerdictSchema,
|
|
3986
4092
|
/** Account email of the operator who judged it. Attribution is the reason the
|
|
3987
4093
|
* log is append-only rather than a mutable current-state row. */
|
|
3988
|
-
reviewer:
|
|
3989
|
-
note:
|
|
3990
|
-
createdAt:
|
|
4094
|
+
reviewer: z38.string(),
|
|
4095
|
+
note: z38.string().nullable(),
|
|
4096
|
+
createdAt: z38.string()
|
|
3991
4097
|
});
|
|
3992
|
-
var BugSeveritySchema =
|
|
3993
|
-
var BugLocationSchema =
|
|
3994
|
-
elementId:
|
|
4098
|
+
var BugSeveritySchema = z38.enum(["high", "medium", "low"]);
|
|
4099
|
+
var BugLocationSchema = z38.object({
|
|
4100
|
+
elementId: z38.string().nullable(),
|
|
3995
4101
|
/** Display only — the catalog component type, e.g. "productGrid". Null
|
|
3996
4102
|
* alongside a null `elementId`. */
|
|
3997
|
-
elementType:
|
|
4103
|
+
elementType: z38.string().nullable(),
|
|
3998
4104
|
/** Fraction of the ELEMENT's own box. Null for a page anchor. */
|
|
3999
|
-
offsetXPct:
|
|
4000
|
-
offsetYPct:
|
|
4105
|
+
offsetXPct: z38.number().min(0).max(100).nullable(),
|
|
4106
|
+
offsetYPct: z38.number().min(0).max(100).nullable(),
|
|
4001
4107
|
/**
|
|
4002
4108
|
* ABSOLUTE document pixels, for a pin with no element under it. Null for an
|
|
4003
4109
|
* element anchor.
|
|
@@ -4008,8 +4114,8 @@ var BugLocationSchema = z36.object({
|
|
|
4008
4114
|
* on the page with it. Measured before this was fixed: growing the page 9%
|
|
4009
4115
|
* slid a pin 32px, so a pin ran away from the cursor reaching for it.
|
|
4010
4116
|
*/
|
|
4011
|
-
pageX:
|
|
4012
|
-
pageY:
|
|
4117
|
+
pageX: z38.number().nullable(),
|
|
4118
|
+
pageY: z38.number().nullable()
|
|
4013
4119
|
}).refine(
|
|
4014
4120
|
(loc) => {
|
|
4015
4121
|
const hasOffsets = loc.offsetXPct !== null && loc.offsetYPct !== null;
|
|
@@ -4023,24 +4129,24 @@ var BugLocationSchema = z36.object({
|
|
|
4023
4129
|
message: "location must be one complete anchor: an element (elementId + elementType + both offsets), a page position (pageX + pageY), or a legacy page fraction (both offsets)"
|
|
4024
4130
|
}
|
|
4025
4131
|
);
|
|
4026
|
-
var SessionBugSchema =
|
|
4027
|
-
id:
|
|
4132
|
+
var SessionBugSchema = z38.object({
|
|
4133
|
+
id: z38.string().uuid(),
|
|
4028
4134
|
/** 1-based turn the fault was observed on; null when the fault is session-wide. */
|
|
4029
|
-
turnIndex:
|
|
4135
|
+
turnIndex: z38.number().int().nullable(),
|
|
4030
4136
|
/** Where on that turn's canvas the pin was dropped; null for a bug filed
|
|
4031
4137
|
* without pinning a spot. */
|
|
4032
4138
|
location: BugLocationSchema.nullable(),
|
|
4033
|
-
provider:
|
|
4034
|
-
issueKey:
|
|
4035
|
-
issueUrl:
|
|
4139
|
+
provider: z38.string(),
|
|
4140
|
+
issueKey: z38.string().nullable(),
|
|
4141
|
+
issueUrl: z38.string().nullable(),
|
|
4036
4142
|
/** The tracker's own state word ('Todo', 'Done', …) — their vocabulary, so
|
|
4037
4143
|
* open text. Null until first synced. */
|
|
4038
|
-
issueState:
|
|
4039
|
-
title:
|
|
4040
|
-
body:
|
|
4144
|
+
issueState: z38.string().nullable(),
|
|
4145
|
+
title: z38.string(),
|
|
4146
|
+
body: z38.string(),
|
|
4041
4147
|
severity: BugSeveritySchema,
|
|
4042
|
-
createdBy:
|
|
4043
|
-
createdAt:
|
|
4148
|
+
createdBy: z38.string(),
|
|
4149
|
+
createdAt: z38.string(),
|
|
4044
4150
|
/**
|
|
4045
4151
|
* When this bug was resolved from the console; null means still OPEN.
|
|
4046
4152
|
*
|
|
@@ -4049,60 +4155,60 @@ var SessionBugSchema = z36.object({
|
|
|
4049
4155
|
* whether a particular fault is still live. The timestamp IS the state, so
|
|
4050
4156
|
* no boolean can contradict it.
|
|
4051
4157
|
*/
|
|
4052
|
-
resolvedAt:
|
|
4053
|
-
resolvedBy:
|
|
4158
|
+
resolvedAt: z38.string().nullable(),
|
|
4159
|
+
resolvedBy: z38.string().nullable()
|
|
4054
4160
|
});
|
|
4055
|
-
var SpaceBugSchema = SessionBugSchema.extend({ sessionId:
|
|
4056
|
-
var SessionCommentSchema =
|
|
4057
|
-
id:
|
|
4161
|
+
var SpaceBugSchema = SessionBugSchema.extend({ sessionId: z38.string() });
|
|
4162
|
+
var SessionCommentSchema = z38.object({
|
|
4163
|
+
id: z38.string().uuid(),
|
|
4058
4164
|
/** Set = a reply in that bug's thread. Null = a standalone comment pin. */
|
|
4059
|
-
bugId:
|
|
4165
|
+
bugId: z38.string().uuid().nullable(),
|
|
4060
4166
|
/** 1-based turn the comment was left on; null for a reply (it reads its
|
|
4061
4167
|
* parent bug's turn). */
|
|
4062
|
-
turnIndex:
|
|
4168
|
+
turnIndex: z38.number().int().nullable(),
|
|
4063
4169
|
/** The canvas anchor for a STANDALONE comment's own pin; null for a reply. */
|
|
4064
4170
|
location: BugLocationSchema.nullable(),
|
|
4065
|
-
body:
|
|
4066
|
-
createdBy:
|
|
4067
|
-
createdAt:
|
|
4171
|
+
body: z38.string(),
|
|
4172
|
+
createdBy: z38.string(),
|
|
4173
|
+
createdAt: z38.string()
|
|
4068
4174
|
});
|
|
4069
|
-
var CreateCommentInputSchema =
|
|
4070
|
-
bugId:
|
|
4071
|
-
turnIndex:
|
|
4175
|
+
var CreateCommentInputSchema = z38.object({
|
|
4176
|
+
bugId: z38.string().uuid().nullable(),
|
|
4177
|
+
turnIndex: z38.number().int().positive().nullable(),
|
|
4072
4178
|
location: BugLocationSchema.nullable(),
|
|
4073
4179
|
// Trimmed, so whitespace is not content: `.min(1)` alone accepted a comment
|
|
4074
4180
|
// of three spaces, which renders as an empty bubble nobody can interpret.
|
|
4075
|
-
body:
|
|
4181
|
+
body: z38.string().trim().min(1)
|
|
4076
4182
|
}).refine((input) => input.bugId === null !== (input.location === null), {
|
|
4077
4183
|
message: "a comment is either a reply (bugId, no location) or a standalone pin (location, no bugId)"
|
|
4078
4184
|
});
|
|
4079
|
-
var UpdateCommentInputSchema =
|
|
4080
|
-
body:
|
|
4081
|
-
bugId:
|
|
4185
|
+
var UpdateCommentInputSchema = z38.object({
|
|
4186
|
+
body: z38.string().trim().min(1).optional(),
|
|
4187
|
+
bugId: z38.string().uuid().nullable().optional(),
|
|
4082
4188
|
location: BugLocationSchema.nullable().optional()
|
|
4083
4189
|
});
|
|
4084
4190
|
var MOBILE_VIEWPORT_MAX = 720;
|
|
4085
|
-
var SessionFormFactorSchema =
|
|
4191
|
+
var SessionFormFactorSchema = z38.enum(["mobile", "desktop"]).nullable();
|
|
4086
4192
|
function formFactorFromViewport(width) {
|
|
4087
4193
|
if (width === null) return null;
|
|
4088
4194
|
return width <= MOBILE_VIEWPORT_MAX ? "mobile" : "desktop";
|
|
4089
4195
|
}
|
|
4090
|
-
var SessionSummarySchema =
|
|
4091
|
-
sessionId:
|
|
4196
|
+
var SessionSummarySchema = z38.object({
|
|
4197
|
+
sessionId: z38.string(),
|
|
4092
4198
|
/** Stable per-browser id — the join key across a visitor's sessions. Null when
|
|
4093
4199
|
* the session row is gone (pruned) or predates the `sessions` table. */
|
|
4094
|
-
visitorId:
|
|
4200
|
+
visitorId: z38.string().nullable(),
|
|
4095
4201
|
/** Provider-qualified identity anchor, present only once the visitor
|
|
4096
4202
|
* identified themselves. Both null together means "not identified yet". */
|
|
4097
|
-
identityProvider:
|
|
4098
|
-
identityKey:
|
|
4203
|
+
identityProvider: z38.string().nullable(),
|
|
4204
|
+
identityKey: z38.string().nullable(),
|
|
4099
4205
|
/** Team/test traffic. The queue hides these by default. */
|
|
4100
|
-
isInternal:
|
|
4206
|
+
isInternal: z38.boolean(),
|
|
4101
4207
|
/** Build that served the session. Null = not captured; a version filter must
|
|
4102
4208
|
* therefore EXCLUDE it rather than let it match an arbitrary bucket. */
|
|
4103
|
-
clientVersion:
|
|
4209
|
+
clientVersion: z38.string().nullable(),
|
|
4104
4210
|
/** Commit-shaped interaction signals, counted, keyed by open `SignalType`. */
|
|
4105
|
-
signalCounts:
|
|
4211
|
+
signalCounts: z38.record(z38.number()),
|
|
4106
4212
|
/**
|
|
4107
4213
|
* Did this conversation ACQUIRE anything, and how many times?
|
|
4108
4214
|
*
|
|
@@ -4119,7 +4225,7 @@ var SessionSummarySchema = z36.object({
|
|
|
4119
4225
|
* predates the column — and renders as no mark at all. It never means zero:
|
|
4120
4226
|
* zero is a real, recorded answer and the rail reports it as one.
|
|
4121
4227
|
*/
|
|
4122
|
-
conversionAttempts:
|
|
4228
|
+
conversionAttempts: z38.number().int().nullable(),
|
|
4123
4229
|
/**
|
|
4124
4230
|
* The same attempts split by EVENT KIND, keyed by the kind's own name
|
|
4125
4231
|
* (`commerce.cart_line_added`, `commerce.registry_clicked`), counted distinct
|
|
@@ -4135,7 +4241,7 @@ var SessionSummarySchema = z36.object({
|
|
|
4135
4241
|
* kinds together, and one attempt id appearing under both would be counted
|
|
4136
4242
|
* once there and twice here.
|
|
4137
4243
|
*/
|
|
4138
|
-
conversionKinds:
|
|
4244
|
+
conversionKinds: z38.record(z38.number()),
|
|
4139
4245
|
/**
|
|
4140
4246
|
* Every analytics funnel step this session reached, in funnel order — the
|
|
4141
4247
|
* dashboard's own step ids, read by the same per-step predicates, so a queue
|
|
@@ -4143,20 +4249,20 @@ var SessionSummarySchema = z36.object({
|
|
|
4143
4249
|
* set of strings for the reason `conversionKinds` is: the contract does not
|
|
4144
4250
|
* learn what a step means. Empty only when read from a pre-column database.
|
|
4145
4251
|
*/
|
|
4146
|
-
funnelSteps:
|
|
4252
|
+
funnelSteps: z38.array(z38.string()),
|
|
4147
4253
|
/**
|
|
4148
4254
|
* The connector's opaque handle for what this session produced in its back
|
|
4149
4255
|
* office — present only once a checkout actually reached the platform. The
|
|
4150
4256
|
* console hands it to the back-office link registry; nothing else reads it.
|
|
4151
4257
|
*/
|
|
4152
|
-
backOfficeRef:
|
|
4258
|
+
backOfficeRef: z38.string().nullable(),
|
|
4153
4259
|
/**
|
|
4154
4260
|
* The order this session produced, when the connector's back office reported
|
|
4155
4261
|
* it (`session_orders`): its opaque id and the back office's own name for it.
|
|
4156
4262
|
* Both null when no order is known — the cart handle above is then the door.
|
|
4157
4263
|
*/
|
|
4158
|
-
orderRef:
|
|
4159
|
-
orderLabel:
|
|
4264
|
+
orderRef: z38.string().nullable(),
|
|
4265
|
+
orderLabel: z38.string().nullable(),
|
|
4160
4266
|
/**
|
|
4161
4267
|
* Which shell this session rendered — the one thing about the CAPTURE a list
|
|
4162
4268
|
* needs.
|
|
@@ -4169,12 +4275,12 @@ var SessionSummarySchema = z36.object({
|
|
|
4169
4275
|
* on a desktop are not the same session.
|
|
4170
4276
|
*/
|
|
4171
4277
|
formFactor: SessionFormFactorSchema,
|
|
4172
|
-
turnCount:
|
|
4278
|
+
turnCount: z38.number().int(),
|
|
4173
4279
|
/** The visitor's opening message — the single most informative field for
|
|
4174
4280
|
* deciding whether a session is worth opening, hence the widest column. */
|
|
4175
|
-
firstPrompt:
|
|
4176
|
-
startedAt:
|
|
4177
|
-
lastRunAt:
|
|
4281
|
+
firstPrompt: z38.string(),
|
|
4282
|
+
startedAt: z38.string(),
|
|
4283
|
+
lastRunAt: z38.string(),
|
|
4178
4284
|
/**
|
|
4179
4285
|
* The VISITOR's own IANA zone (`America/New_York`), read from their browser
|
|
4180
4286
|
* at session create — what the two timestamps above should be read in.
|
|
@@ -4202,7 +4308,7 @@ var SessionSummarySchema = z36.object({
|
|
|
4202
4308
|
* Client-asserted and never validated against a zone table, so every consumer
|
|
4203
4309
|
* must tolerate an unknown name: `Intl` throws a RangeError on one.
|
|
4204
4310
|
*/
|
|
4205
|
-
visitorTimeZone:
|
|
4311
|
+
visitorTimeZone: z38.string().nullable(),
|
|
4206
4312
|
/**
|
|
4207
4313
|
* Mean TIME TO FIRST PATCH, over the turns that recorded one — the first
|
|
4208
4314
|
* layout op reaching the visitor, and THE latency the project is managed on.
|
|
@@ -4210,31 +4316,31 @@ var SessionSummarySchema = z36.object({
|
|
|
4210
4316
|
* `totalLatencyMs` carries the chip-gen tail that runs after the visitor is
|
|
4211
4317
|
* already reading. Null when no turn in the session recorded a patch.
|
|
4212
4318
|
*/
|
|
4213
|
-
avgTtftMs:
|
|
4319
|
+
avgTtftMs: z38.number().int().nullable(),
|
|
4214
4320
|
/** Mean `main_done_ms` — layout + prose complete. Context for the TTFT, not
|
|
4215
4321
|
* a budget: null on sessions older than the mark's recording. */
|
|
4216
|
-
avgMainDoneMs:
|
|
4322
|
+
avgMainDoneMs: z38.number().int().nullable(),
|
|
4217
4323
|
/** Mean `chip_gen_ms` — the pass that runs AFTER mainDone and is out of the
|
|
4218
4324
|
* budget. On the row only to explain the gap to `totalLatencyMs`. */
|
|
4219
|
-
avgChipGenMs:
|
|
4220
|
-
totalLatencyMs:
|
|
4221
|
-
durationMs:
|
|
4325
|
+
avgChipGenMs: z38.number().int().nullable(),
|
|
4326
|
+
totalLatencyMs: z38.number().int(),
|
|
4327
|
+
durationMs: z38.number().int(),
|
|
4222
4328
|
/** Inferred from recent activity — nothing writes a session-end marker. A
|
|
4223
4329
|
* live session streams and cannot be given a verdict until it ends. */
|
|
4224
|
-
isLive:
|
|
4330
|
+
isLive: z38.boolean(),
|
|
4225
4331
|
verdict: SessionVerdictSchema,
|
|
4226
|
-
reviewedBy:
|
|
4227
|
-
reviewedAt:
|
|
4332
|
+
reviewedBy: z38.string().nullable(),
|
|
4333
|
+
reviewedAt: z38.string().nullable(),
|
|
4228
4334
|
/** Latest filed bug, flattened onto the row so the queue can show its live
|
|
4229
4335
|
* state without a second request. */
|
|
4230
|
-
bugIssueKey:
|
|
4231
|
-
bugIssueUrl:
|
|
4232
|
-
bugIssueState:
|
|
4336
|
+
bugIssueKey: z38.string().nullable(),
|
|
4337
|
+
bugIssueUrl: z38.string().nullable(),
|
|
4338
|
+
bugIssueState: z38.string().nullable()
|
|
4233
4339
|
});
|
|
4234
|
-
var SessionQueuePageSchema =
|
|
4235
|
-
sessions:
|
|
4236
|
-
totalCount:
|
|
4237
|
-
hiddenInternalCount:
|
|
4340
|
+
var SessionQueuePageSchema = z38.object({
|
|
4341
|
+
sessions: z38.array(SessionSummarySchema),
|
|
4342
|
+
totalCount: z38.number().int(),
|
|
4343
|
+
hiddenInternalCount: z38.number().int(),
|
|
4238
4344
|
/**
|
|
4239
4345
|
* Bounced sessions the queue left out — no turn and no add, the default.
|
|
4240
4346
|
*
|
|
@@ -4244,61 +4350,61 @@ var SessionQueuePageSchema = z36.object({
|
|
|
4244
4350
|
* `totalCount + hiddenBouncedCount` is that population, and this count is the
|
|
4245
4351
|
* analytics dashboard's bounce over the same window.
|
|
4246
4352
|
*/
|
|
4247
|
-
hiddenBouncedCount:
|
|
4353
|
+
hiddenBouncedCount: z38.number().int()
|
|
4248
4354
|
});
|
|
4249
|
-
var SessionQueueFacetsSchema =
|
|
4250
|
-
review:
|
|
4251
|
-
version:
|
|
4252
|
-
turns:
|
|
4253
|
-
durationS:
|
|
4355
|
+
var SessionQueueFacetsSchema = z38.object({
|
|
4356
|
+
review: z38.record(z38.number()),
|
|
4357
|
+
version: z38.record(z38.number()),
|
|
4358
|
+
turns: z38.record(z38.number()),
|
|
4359
|
+
durationS: z38.record(z38.number()),
|
|
4254
4360
|
/** Sessions per funnel step reached — a session counts under every step it reached. */
|
|
4255
|
-
funnel:
|
|
4361
|
+
funnel: z38.record(z38.number())
|
|
4256
4362
|
});
|
|
4257
|
-
var SessionCaptureSchema =
|
|
4258
|
-
viewportWidth:
|
|
4259
|
-
viewportHeight:
|
|
4260
|
-
userAgent:
|
|
4261
|
-
locale:
|
|
4363
|
+
var SessionCaptureSchema = z38.object({
|
|
4364
|
+
viewportWidth: z38.number().int().nullable(),
|
|
4365
|
+
viewportHeight: z38.number().int().nullable(),
|
|
4366
|
+
userAgent: z38.string().nullable(),
|
|
4367
|
+
locale: z38.string().nullable(),
|
|
4262
4368
|
/** Referrer at session create — separates agentic traffic from organic. */
|
|
4263
|
-
referrer:
|
|
4369
|
+
referrer: z38.string().nullable()
|
|
4264
4370
|
});
|
|
4265
|
-
var SessionCaptureInputSchema =
|
|
4266
|
-
viewportWidth:
|
|
4267
|
-
viewportHeight:
|
|
4268
|
-
userAgent:
|
|
4269
|
-
locale:
|
|
4371
|
+
var SessionCaptureInputSchema = z38.object({
|
|
4372
|
+
viewportWidth: z38.number().int().positive().max(2e4).optional(),
|
|
4373
|
+
viewportHeight: z38.number().int().positive().max(2e4).optional(),
|
|
4374
|
+
userAgent: z38.string().max(1e3).optional(),
|
|
4375
|
+
locale: z38.string().max(35).optional(),
|
|
4270
4376
|
/** IANA zone name from the visitor's browser. Bounded rather than validated:
|
|
4271
4377
|
* the zone database grows, and refusing a name this build has not heard of
|
|
4272
4378
|
* would drop a real session's capture over a table that is out of date. */
|
|
4273
|
-
timeZone:
|
|
4274
|
-
referrer:
|
|
4275
|
-
clientVersion:
|
|
4276
|
-
isInternal:
|
|
4379
|
+
timeZone: z38.string().max(64).optional(),
|
|
4380
|
+
referrer: z38.string().max(2048).optional(),
|
|
4381
|
+
clientVersion: z38.string().max(100).optional(),
|
|
4382
|
+
isInternal: z38.boolean().optional()
|
|
4277
4383
|
});
|
|
4278
|
-
var SessionDetailSchema =
|
|
4384
|
+
var SessionDetailSchema = z38.object({
|
|
4279
4385
|
session: SessionSummarySchema,
|
|
4280
4386
|
capture: SessionCaptureSchema,
|
|
4281
4387
|
/** Full verdict history, newest first. Verdicts are revisable, and a session
|
|
4282
4388
|
* re-judged after a fix is the evidence the fix worked. */
|
|
4283
|
-
reviews:
|
|
4284
|
-
bugs:
|
|
4285
|
-
comments:
|
|
4389
|
+
reviews: z38.array(SessionReviewEventSchema),
|
|
4390
|
+
bugs: z38.array(SessionBugSchema),
|
|
4391
|
+
comments: z38.array(SessionCommentSchema),
|
|
4286
4392
|
/** Optional during API/console rolling deployment. Absent is unavailable,
|
|
4287
4393
|
* not evidence of zero visitor activity. */
|
|
4288
4394
|
activity: SessionActivitySchema.optional()
|
|
4289
4395
|
});
|
|
4290
|
-
var RecordVerdictInputSchema =
|
|
4396
|
+
var RecordVerdictInputSchema = z38.object({
|
|
4291
4397
|
verdict: RecordableVerdictSchema,
|
|
4292
|
-
note:
|
|
4398
|
+
note: z38.string().max(2e3).optional()
|
|
4293
4399
|
});
|
|
4294
|
-
var FileBugInputSchema =
|
|
4295
|
-
turnIndex:
|
|
4400
|
+
var FileBugInputSchema = z38.object({
|
|
4401
|
+
turnIndex: z38.number().int().positive().nullable(),
|
|
4296
4402
|
/** Optional — a bug filed without dropping a pin has no location. */
|
|
4297
4403
|
location: BugLocationSchema.nullable().optional(),
|
|
4298
|
-
title:
|
|
4299
|
-
body:
|
|
4404
|
+
title: z38.string().min(1).max(300),
|
|
4405
|
+
body: z38.string().min(1),
|
|
4300
4406
|
severity: BugSeveritySchema,
|
|
4301
|
-
payload:
|
|
4407
|
+
payload: z38.record(z38.unknown())
|
|
4302
4408
|
});
|
|
4303
4409
|
|
|
4304
4410
|
// ../spacestation/src/contracts/retrieval/ecommerce/option-values.ts
|
|
@@ -4578,60 +4684,60 @@ __export(src_exports2, {
|
|
|
4578
4684
|
});
|
|
4579
4685
|
|
|
4580
4686
|
// ../ecommerce/src/commerce-schemas.ts
|
|
4581
|
-
import { z as
|
|
4582
|
-
var MoneySchema =
|
|
4583
|
-
amount:
|
|
4584
|
-
currencyCode:
|
|
4687
|
+
import { z as z39 } from "zod";
|
|
4688
|
+
var MoneySchema = z39.object({
|
|
4689
|
+
amount: z39.number(),
|
|
4690
|
+
currencyCode: z39.string()
|
|
4585
4691
|
});
|
|
4586
|
-
var ImageSchema =
|
|
4587
|
-
url:
|
|
4588
|
-
altText:
|
|
4589
|
-
width:
|
|
4590
|
-
height:
|
|
4692
|
+
var ImageSchema = z39.object({
|
|
4693
|
+
url: z39.string(),
|
|
4694
|
+
altText: z39.string(),
|
|
4695
|
+
width: z39.number().optional(),
|
|
4696
|
+
height: z39.number().optional(),
|
|
4591
4697
|
/** Responsive candidate set, resolved at the commerce-adapter boundary —
|
|
4592
4698
|
* never computed in a component. Renderers use it as `<img srcSet>` paired
|
|
4593
4699
|
* with a layout `sizes`. Absent for non-CDN / unsizable images. */
|
|
4594
|
-
srcSet:
|
|
4700
|
+
srcSet: z39.string().optional()
|
|
4595
4701
|
});
|
|
4596
|
-
var AssetSchema =
|
|
4702
|
+
var AssetSchema = z39.object({
|
|
4597
4703
|
/** Opaque asset id — the `resolved()` ref the agent emitted. */
|
|
4598
|
-
id:
|
|
4599
|
-
url:
|
|
4600
|
-
altText:
|
|
4601
|
-
srcSet:
|
|
4704
|
+
id: z39.string(),
|
|
4705
|
+
url: z39.string(),
|
|
4706
|
+
altText: z39.string(),
|
|
4707
|
+
srcSet: z39.string().optional()
|
|
4602
4708
|
});
|
|
4603
|
-
var SelectedOptionSchema =
|
|
4604
|
-
name:
|
|
4605
|
-
value:
|
|
4709
|
+
var SelectedOptionSchema = z39.object({
|
|
4710
|
+
name: z39.string(),
|
|
4711
|
+
value: z39.string()
|
|
4606
4712
|
});
|
|
4607
|
-
var VideoSourceSchema =
|
|
4608
|
-
url:
|
|
4609
|
-
mimeType:
|
|
4610
|
-
width:
|
|
4611
|
-
height:
|
|
4713
|
+
var VideoSourceSchema = z39.object({
|
|
4714
|
+
url: z39.string(),
|
|
4715
|
+
mimeType: z39.string(),
|
|
4716
|
+
width: z39.number().optional(),
|
|
4717
|
+
height: z39.number().optional()
|
|
4612
4718
|
});
|
|
4613
|
-
var ProductVideoSchema =
|
|
4614
|
-
kind:
|
|
4719
|
+
var ProductVideoSchema = z39.object({
|
|
4720
|
+
kind: z39.enum(["hosted", "external"]),
|
|
4615
4721
|
previewImage: ImageSchema.optional(),
|
|
4616
|
-
altText:
|
|
4722
|
+
altText: z39.string().default(""),
|
|
4617
4723
|
/** `kind: 'hosted'` only — empty for external embeds. */
|
|
4618
|
-
sources:
|
|
4724
|
+
sources: z39.array(VideoSourceSchema).default([]),
|
|
4619
4725
|
/** `kind: 'external'` only — iframe embed URL. */
|
|
4620
|
-
embedUrl:
|
|
4726
|
+
embedUrl: z39.string().optional(),
|
|
4621
4727
|
/** `kind: 'external'` only — e.g. `YOUTUBE` | `VIMEO`. */
|
|
4622
|
-
host:
|
|
4728
|
+
host: z39.string().optional()
|
|
4623
4729
|
});
|
|
4624
|
-
var AvailabilityStatusSchema =
|
|
4730
|
+
var AvailabilityStatusSchema = z39.enum([
|
|
4625
4731
|
"in_stock",
|
|
4626
4732
|
"backorder",
|
|
4627
4733
|
"preorder",
|
|
4628
4734
|
"out_of_stock",
|
|
4629
4735
|
"discontinued"
|
|
4630
4736
|
]);
|
|
4631
|
-
var ProductVariantSchema =
|
|
4632
|
-
id:
|
|
4633
|
-
title:
|
|
4634
|
-
available:
|
|
4737
|
+
var ProductVariantSchema = z39.object({
|
|
4738
|
+
id: z39.string(),
|
|
4739
|
+
title: z39.string(),
|
|
4740
|
+
available: z39.boolean(),
|
|
4635
4741
|
/**
|
|
4636
4742
|
* Qualifies `available` with the fulfillment state behind it. Absent means
|
|
4637
4743
|
* the backend did not say — which is NOT the same as in stock, and must not
|
|
@@ -4646,7 +4752,7 @@ var ProductVariantSchema = z37.object({
|
|
|
4646
4752
|
availabilityStatus: AvailabilityStatusSchema.optional(),
|
|
4647
4753
|
price: MoneySchema,
|
|
4648
4754
|
compareAtPrice: MoneySchema.optional(),
|
|
4649
|
-
selectedOptions:
|
|
4755
|
+
selectedOptions: z39.array(SelectedOptionSchema).optional(),
|
|
4650
4756
|
image: ImageSchema.optional()
|
|
4651
4757
|
});
|
|
4652
4758
|
var MP4_MIME = "video/mp4";
|
|
@@ -4657,34 +4763,34 @@ function orderedVideoSources(video) {
|
|
|
4657
4763
|
const hls = video.sources.filter((s) => s.mimeType === HLS_MIME);
|
|
4658
4764
|
return [...mp4, ...hls];
|
|
4659
4765
|
}
|
|
4660
|
-
var SiblingProductSchema =
|
|
4661
|
-
id:
|
|
4662
|
-
handle:
|
|
4663
|
-
title:
|
|
4766
|
+
var SiblingProductSchema = z39.object({
|
|
4767
|
+
id: z39.string(),
|
|
4768
|
+
handle: z39.string(),
|
|
4769
|
+
title: z39.string(),
|
|
4664
4770
|
/** The differentiating value across siblings — typically the color
|
|
4665
4771
|
* label ("OLIVE", "STONE"). Rendered next to the swatch row. */
|
|
4666
|
-
color:
|
|
4772
|
+
color: z39.string(),
|
|
4667
4773
|
/** Swatch artwork. Hydrators populate from the sibling product's
|
|
4668
4774
|
* first image; renderers crop / fit to the swatch tile. */
|
|
4669
4775
|
swatchImage: ImageSchema.optional(),
|
|
4670
|
-
available:
|
|
4776
|
+
available: z39.boolean().default(true),
|
|
4671
4777
|
/** Marks the sibling that IS the currently-rendered product. The
|
|
4672
4778
|
* picker uses this to highlight the active swatch without an
|
|
4673
4779
|
* external id comparison. */
|
|
4674
|
-
current:
|
|
4780
|
+
current: z39.boolean().default(false)
|
|
4675
4781
|
});
|
|
4676
|
-
var ProductSchema =
|
|
4677
|
-
id:
|
|
4678
|
-
handle:
|
|
4679
|
-
title:
|
|
4680
|
-
description:
|
|
4681
|
-
descriptionHtml:
|
|
4682
|
-
vendor:
|
|
4683
|
-
productType:
|
|
4684
|
-
tags:
|
|
4782
|
+
var ProductSchema = z39.object({
|
|
4783
|
+
id: z39.string(),
|
|
4784
|
+
handle: z39.string().default(""),
|
|
4785
|
+
title: z39.string(),
|
|
4786
|
+
description: z39.string().default(""),
|
|
4787
|
+
descriptionHtml: z39.string().optional(),
|
|
4788
|
+
vendor: z39.string().default(""),
|
|
4789
|
+
productType: z39.string().optional(),
|
|
4790
|
+
tags: z39.array(z39.string()).default([]),
|
|
4685
4791
|
price: MoneySchema.default({ amount: 0, currencyCode: "USD" }),
|
|
4686
4792
|
compareAtPrice: MoneySchema.optional(),
|
|
4687
|
-
images:
|
|
4793
|
+
images: z39.array(ImageSchema).default([]),
|
|
4688
4794
|
/**
|
|
4689
4795
|
* Product videos (`Video` + `ExternalVideo` media). Shopify's MCP
|
|
4690
4796
|
* catalog drops video media — it only surfaces through the Storefront
|
|
@@ -4692,21 +4798,21 @@ var ProductSchema = z37.object({
|
|
|
4692
4798
|
* boundary. Default `[]` so renderers gate on `length > 0` without a
|
|
4693
4799
|
* presence guard.
|
|
4694
4800
|
*/
|
|
4695
|
-
videos:
|
|
4696
|
-
variants:
|
|
4697
|
-
availableForSale:
|
|
4698
|
-
options:
|
|
4699
|
-
name:
|
|
4700
|
-
values:
|
|
4801
|
+
videos: z39.array(ProductVideoSchema).default([]),
|
|
4802
|
+
variants: z39.array(ProductVariantSchema).default([]),
|
|
4803
|
+
availableForSale: z39.boolean().default(true),
|
|
4804
|
+
options: z39.array(z39.object({
|
|
4805
|
+
name: z39.string(),
|
|
4806
|
+
values: z39.array(z39.string())
|
|
4701
4807
|
})).optional(),
|
|
4702
|
-
collections:
|
|
4808
|
+
collections: z39.array(z39.string()).optional(),
|
|
4703
4809
|
/** See `SiblingProductSchema`. Default `[]` so renderers can check
|
|
4704
4810
|
* `length > 1` to decide whether to draw the swatch row without a
|
|
4705
4811
|
* presence guard. */
|
|
4706
|
-
colorVariants:
|
|
4707
|
-
rating:
|
|
4708
|
-
value:
|
|
4709
|
-
count:
|
|
4812
|
+
colorVariants: z39.array(SiblingProductSchema).default([]),
|
|
4813
|
+
rating: z39.object({
|
|
4814
|
+
value: z39.number(),
|
|
4815
|
+
count: z39.number()
|
|
4710
4816
|
}).optional(),
|
|
4711
4817
|
/**
|
|
4712
4818
|
* Product reviews surfaced from the brand's review store. SDK
|
|
@@ -4715,12 +4821,12 @@ var ProductSchema = z37.object({
|
|
|
4715
4821
|
* review bodies. Renderers (`Reviews` component, `ProductDetail`,
|
|
4716
4822
|
* etc.) consume directly.
|
|
4717
4823
|
*/
|
|
4718
|
-
reviews:
|
|
4719
|
-
author:
|
|
4720
|
-
rating:
|
|
4721
|
-
content:
|
|
4722
|
-
date:
|
|
4723
|
-
verified:
|
|
4824
|
+
reviews: z39.array(z39.object({
|
|
4825
|
+
author: z39.string(),
|
|
4826
|
+
rating: z39.number(),
|
|
4827
|
+
content: z39.string(),
|
|
4828
|
+
date: z39.string(),
|
|
4829
|
+
verified: z39.boolean().optional()
|
|
4724
4830
|
})).optional(),
|
|
4725
4831
|
/**
|
|
4726
4832
|
* Ghost-entity flag — `true` when the Storefront API could not hydrate
|
|
@@ -4732,7 +4838,7 @@ var ProductSchema = z37.object({
|
|
|
4732
4838
|
* Set exclusively by `createUnavailableProduct()` — never by the
|
|
4733
4839
|
* Storefront mapper.
|
|
4734
4840
|
*/
|
|
4735
|
-
unavailable:
|
|
4841
|
+
unavailable: z39.boolean().default(false)
|
|
4736
4842
|
});
|
|
4737
4843
|
function createUnavailableProduct(gid) {
|
|
4738
4844
|
return {
|
|
@@ -4754,68 +4860,68 @@ function createUnavailableProduct(gid) {
|
|
|
4754
4860
|
function isGhostEntity(value) {
|
|
4755
4861
|
return typeof value === "object" && value !== null && "unavailable" in value && value.unavailable === true;
|
|
4756
4862
|
}
|
|
4757
|
-
var ReviewSchema =
|
|
4758
|
-
id:
|
|
4759
|
-
productId:
|
|
4760
|
-
author:
|
|
4761
|
-
rating:
|
|
4762
|
-
text:
|
|
4763
|
-
date:
|
|
4764
|
-
verified:
|
|
4863
|
+
var ReviewSchema = z39.object({
|
|
4864
|
+
id: z39.string(),
|
|
4865
|
+
productId: z39.string(),
|
|
4866
|
+
author: z39.string(),
|
|
4867
|
+
rating: z39.number(),
|
|
4868
|
+
text: z39.string(),
|
|
4869
|
+
date: z39.string(),
|
|
4870
|
+
verified: z39.boolean()
|
|
4765
4871
|
});
|
|
4766
|
-
var ArticleSchema =
|
|
4767
|
-
id:
|
|
4768
|
-
handle:
|
|
4769
|
-
title:
|
|
4770
|
-
excerpt:
|
|
4771
|
-
content:
|
|
4772
|
-
contentHtml:
|
|
4773
|
-
author:
|
|
4774
|
-
publishedAt:
|
|
4872
|
+
var ArticleSchema = z39.object({
|
|
4873
|
+
id: z39.string(),
|
|
4874
|
+
handle: z39.string().default(""),
|
|
4875
|
+
title: z39.string(),
|
|
4876
|
+
excerpt: z39.string().default(""),
|
|
4877
|
+
content: z39.string().default(""),
|
|
4878
|
+
contentHtml: z39.string().optional(),
|
|
4879
|
+
author: z39.string().default(""),
|
|
4880
|
+
publishedAt: z39.string().default(""),
|
|
4775
4881
|
image: ImageSchema.optional(),
|
|
4776
|
-
blogHandle:
|
|
4777
|
-
tags:
|
|
4882
|
+
blogHandle: z39.string().default(""),
|
|
4883
|
+
tags: z39.array(z39.string()).default([])
|
|
4778
4884
|
});
|
|
4779
|
-
var CmsPageSchema =
|
|
4780
|
-
id:
|
|
4781
|
-
handle:
|
|
4782
|
-
title:
|
|
4783
|
-
body:
|
|
4784
|
-
bodyHtml:
|
|
4785
|
-
bodySummary:
|
|
4786
|
-
updatedAt:
|
|
4787
|
-
seoTitle:
|
|
4788
|
-
seoDescription:
|
|
4885
|
+
var CmsPageSchema = z39.object({
|
|
4886
|
+
id: z39.string(),
|
|
4887
|
+
handle: z39.string().default(""),
|
|
4888
|
+
title: z39.string(),
|
|
4889
|
+
body: z39.string().default(""),
|
|
4890
|
+
bodyHtml: z39.string().optional(),
|
|
4891
|
+
bodySummary: z39.string().default(""),
|
|
4892
|
+
updatedAt: z39.string().default(""),
|
|
4893
|
+
seoTitle: z39.string().optional(),
|
|
4894
|
+
seoDescription: z39.string().optional()
|
|
4789
4895
|
});
|
|
4790
|
-
var CmsPolicySchema =
|
|
4791
|
-
id:
|
|
4896
|
+
var CmsPolicySchema = z39.object({
|
|
4897
|
+
id: z39.string(),
|
|
4792
4898
|
/** Stable policy slot identifier: 'refund' | 'privacy' | 'terms' |
|
|
4793
4899
|
* 'shipping' | 'subscription' | 'warranty' | custom string. Open so
|
|
4794
4900
|
* platforms with custom policy types can extend. */
|
|
4795
|
-
kind:
|
|
4901
|
+
kind: z39.string(),
|
|
4796
4902
|
/** Slug-shaped handle the platform exposes for storefront URLs
|
|
4797
4903
|
* (e.g. `refund-policy`). Empty string when the backend doesn't
|
|
4798
4904
|
* surface one. */
|
|
4799
|
-
handle:
|
|
4800
|
-
title:
|
|
4801
|
-
body:
|
|
4802
|
-
bodyHtml:
|
|
4803
|
-
url:
|
|
4905
|
+
handle: z39.string().default(""),
|
|
4906
|
+
title: z39.string(),
|
|
4907
|
+
body: z39.string().default(""),
|
|
4908
|
+
bodyHtml: z39.string().optional(),
|
|
4909
|
+
url: z39.string().default("")
|
|
4804
4910
|
});
|
|
4805
|
-
var CollectionSchema =
|
|
4806
|
-
id:
|
|
4807
|
-
handle:
|
|
4808
|
-
title:
|
|
4809
|
-
description:
|
|
4911
|
+
var CollectionSchema = z39.object({
|
|
4912
|
+
id: z39.string(),
|
|
4913
|
+
handle: z39.string().default(""),
|
|
4914
|
+
title: z39.string(),
|
|
4915
|
+
description: z39.string().default(""),
|
|
4810
4916
|
image: ImageSchema.optional(),
|
|
4811
|
-
productCount:
|
|
4917
|
+
productCount: z39.number().int().nonnegative().optional()
|
|
4812
4918
|
});
|
|
4813
|
-
var CartLineSchema =
|
|
4814
|
-
id:
|
|
4815
|
-
merchandiseId:
|
|
4816
|
-
productId:
|
|
4817
|
-
title:
|
|
4818
|
-
variantTitle:
|
|
4919
|
+
var CartLineSchema = z39.object({
|
|
4920
|
+
id: z39.string(),
|
|
4921
|
+
merchandiseId: z39.string(),
|
|
4922
|
+
productId: z39.string(),
|
|
4923
|
+
title: z39.string(),
|
|
4924
|
+
variantTitle: z39.string().optional(),
|
|
4819
4925
|
/**
|
|
4820
4926
|
* The variant's option axes as structured pairs (e.g.
|
|
4821
4927
|
* `[{name:'Size', value:'7'}]`). The machine-readable counterpart of
|
|
@@ -4824,10 +4930,10 @@ var CartLineSchema = z37.object({
|
|
|
4824
4930
|
* single-variant products (the degenerate `Title: Default Title` axis
|
|
4825
4931
|
* is normalized away at the adapter boundary).
|
|
4826
4932
|
*/
|
|
4827
|
-
selectedOptions:
|
|
4828
|
-
vendor:
|
|
4829
|
-
sku:
|
|
4830
|
-
quantity:
|
|
4933
|
+
selectedOptions: z39.array(SelectedOptionSchema).optional(),
|
|
4934
|
+
vendor: z39.string().optional(),
|
|
4935
|
+
sku: z39.string().optional(),
|
|
4936
|
+
quantity: z39.number().int().positive(),
|
|
4831
4937
|
unitPrice: MoneySchema,
|
|
4832
4938
|
totalPrice: MoneySchema,
|
|
4833
4939
|
image: ImageSchema.optional(),
|
|
@@ -4847,26 +4953,26 @@ var CartLineSchema = z37.object({
|
|
|
4847
4953
|
* client-minted id the backend rejects, line-tap navigation is
|
|
4848
4954
|
* suppressed, and the money never folds into a settled-looking total.
|
|
4849
4955
|
*/
|
|
4850
|
-
pending:
|
|
4956
|
+
pending: z39.boolean().optional()
|
|
4851
4957
|
});
|
|
4852
4958
|
function isPendingCartLine(line) {
|
|
4853
4959
|
return line.pending === true;
|
|
4854
4960
|
}
|
|
4855
|
-
var CartDiscountCodeSchema =
|
|
4856
|
-
code:
|
|
4857
|
-
applicable:
|
|
4961
|
+
var CartDiscountCodeSchema = z39.object({
|
|
4962
|
+
code: z39.string(),
|
|
4963
|
+
applicable: z39.boolean()
|
|
4858
4964
|
});
|
|
4859
|
-
var CartMessageSchema =
|
|
4860
|
-
kind:
|
|
4965
|
+
var CartMessageSchema = z39.object({
|
|
4966
|
+
kind: z39.enum(["error", "warning", "info"]),
|
|
4861
4967
|
/** Machine code for branching; opaque and backend-defined. */
|
|
4862
|
-
code:
|
|
4968
|
+
code: z39.string(),
|
|
4863
4969
|
/** Human-readable text, meant to be shown as-is. */
|
|
4864
|
-
content:
|
|
4970
|
+
content: z39.string()
|
|
4865
4971
|
});
|
|
4866
|
-
var CartSchema =
|
|
4867
|
-
id:
|
|
4868
|
-
lines:
|
|
4869
|
-
totalQuantity:
|
|
4972
|
+
var CartSchema = z39.object({
|
|
4973
|
+
id: z39.string(),
|
|
4974
|
+
lines: z39.array(CartLineSchema),
|
|
4975
|
+
totalQuantity: z39.number().int().nonnegative(),
|
|
4870
4976
|
subtotal: MoneySchema,
|
|
4871
4977
|
/**
|
|
4872
4978
|
* Cart total after discounts (pre-shipping/tax). Absent when the
|
|
@@ -4876,11 +4982,11 @@ var CartSchema = z37.object({
|
|
|
4876
4982
|
*/
|
|
4877
4983
|
total: MoneySchema.optional(),
|
|
4878
4984
|
/** Discount codes currently attached to the cart. */
|
|
4879
|
-
discountCodes:
|
|
4985
|
+
discountCodes: z39.array(CartDiscountCodeSchema).default([]),
|
|
4880
4986
|
/** Notices the backend attached to this cart — see `CartMessageSchema`.
|
|
4881
4987
|
* Empty when the backend said nothing or does not report them. */
|
|
4882
|
-
messages:
|
|
4883
|
-
checkoutUrl:
|
|
4988
|
+
messages: z39.array(CartMessageSchema).default([]),
|
|
4989
|
+
checkoutUrl: z39.string().optional(),
|
|
4884
4990
|
/**
|
|
4885
4991
|
* Opaque handle this cart is known by in the connector's BACK OFFICE — the
|
|
4886
4992
|
* value a space owner searches there to find the order this cart became.
|
|
@@ -4893,14 +4999,14 @@ var CartSchema = z37.object({
|
|
|
4893
4999
|
* Absent when the platform has no such handle, or while the cart is still the
|
|
4894
5000
|
* client's optimistic paint and its id is client-minted.
|
|
4895
5001
|
*/
|
|
4896
|
-
backOfficeRef:
|
|
5002
|
+
backOfficeRef: z39.string().optional(),
|
|
4897
5003
|
/**
|
|
4898
5004
|
* URL that recreates this cart on the merchant's own store website
|
|
4899
5005
|
* (replace semantics — overwrites any cart the visitor already has
|
|
4900
5006
|
* there). Populated by platform adapters that support it; absent when
|
|
4901
5007
|
* the cart is empty or the URL cannot be built.
|
|
4902
5008
|
*/
|
|
4903
|
-
storeCartUrl:
|
|
5009
|
+
storeCartUrl: z39.string().optional(),
|
|
4904
5010
|
/**
|
|
4905
5011
|
* True while this cart exists only in the client's optimistic paint —
|
|
4906
5012
|
* no backend cart has been created yet, so its `id` is client-minted and
|
|
@@ -4908,7 +5014,7 @@ var CartSchema = z37.object({
|
|
|
4908
5014
|
* `CartLineSchema.pending`: the adapter never sets it, and callers that
|
|
4909
5015
|
* need a real cart id read THIS rather than sniffing the id's shape.
|
|
4910
5016
|
*/
|
|
4911
|
-
pending:
|
|
5017
|
+
pending: z39.boolean().optional()
|
|
4912
5018
|
});
|
|
4913
5019
|
function settledCart(cart) {
|
|
4914
5020
|
if (cart === null || cart === void 0) return null;
|
|
@@ -4916,27 +5022,27 @@ function settledCart(cart) {
|
|
|
4916
5022
|
}
|
|
4917
5023
|
|
|
4918
5024
|
// ../ecommerce/src/review-schemas.ts
|
|
4919
|
-
import { z as
|
|
5025
|
+
import { z as z40 } from "zod";
|
|
4920
5026
|
var PRODUCT_REVIEWS_RESOLVER_KEY = "productReviews";
|
|
4921
|
-
var ProductReviewItemSchema =
|
|
4922
|
-
author:
|
|
4923
|
-
rating:
|
|
5027
|
+
var ProductReviewItemSchema = z40.object({
|
|
5028
|
+
author: z40.string(),
|
|
5029
|
+
rating: z40.number(),
|
|
4924
5030
|
/** The reviewer's own headline ("love"), when they wrote one — the site shows it above `content`. */
|
|
4925
|
-
title:
|
|
4926
|
-
content:
|
|
4927
|
-
date:
|
|
4928
|
-
verified:
|
|
5031
|
+
title: z40.string().optional(),
|
|
5032
|
+
content: z40.string(),
|
|
5033
|
+
date: z40.string(),
|
|
5034
|
+
verified: z40.boolean().optional(),
|
|
4929
5035
|
/**
|
|
4930
5036
|
* Non-empty when the review was written for a grouped SIBLING product rather
|
|
4931
5037
|
* than this one (brands pool reviews across a product line). A surface can
|
|
4932
5038
|
* attribute it; empty / absent ⇒ the product's own review.
|
|
4933
5039
|
*/
|
|
4934
|
-
writtenFor:
|
|
5040
|
+
writtenFor: z40.string().optional()
|
|
4935
5041
|
});
|
|
4936
5042
|
var ProductReviewHighlightSchema = ProductReviewItemSchema.extend({
|
|
4937
5043
|
/** The sentence(s) the ranking fired on. Descriptive — it is what the matcher
|
|
4938
5044
|
* scored, NOT necessarily text that occurs in `content`. */
|
|
4939
|
-
highlight:
|
|
5045
|
+
highlight: z40.string().optional(),
|
|
4940
5046
|
/**
|
|
4941
5047
|
* `highlight` resolved back into `content` as a VERBATIM substring, so a
|
|
4942
5048
|
* surface can mark it with a plain `indexOf` and no matcher of its own.
|
|
@@ -4951,29 +5057,29 @@ var ProductReviewHighlightSchema = ProductReviewItemSchema.extend({
|
|
|
4951
5057
|
* Absent when the passage genuinely has no home in the body (one cut from the
|
|
4952
5058
|
* title). A surface then marks NOTHING rather than guessing at a span.
|
|
4953
5059
|
*/
|
|
4954
|
-
mark:
|
|
5060
|
+
mark: z40.string().optional()
|
|
4955
5061
|
});
|
|
4956
|
-
var ReviewAggregateSchema =
|
|
4957
|
-
value:
|
|
4958
|
-
count:
|
|
5062
|
+
var ReviewAggregateSchema = z40.object({
|
|
5063
|
+
value: z40.number(),
|
|
5064
|
+
count: z40.number()
|
|
4959
5065
|
});
|
|
4960
|
-
var ProductReviewDataSchema =
|
|
4961
|
-
id:
|
|
5066
|
+
var ProductReviewDataSchema = z40.object({
|
|
5067
|
+
id: z40.string(),
|
|
4962
5068
|
/** The product's FULL retrieved set — what a filterable list renders. */
|
|
4963
|
-
reviews:
|
|
5069
|
+
reviews: z40.array(ProductReviewItemSchema).default([]),
|
|
4964
5070
|
aggregate: ReviewAggregateSchema.default({ value: 0, count: 0 }),
|
|
4965
5071
|
/** 5★→1★ star COUNTS over the full set (index 0 = 5-star). */
|
|
4966
|
-
distribution:
|
|
5072
|
+
distribution: z40.array(z40.number()).default([]),
|
|
4967
5073
|
/**
|
|
4968
5074
|
* The reviews that ANSWER the surface's intent, best first. Empty when no
|
|
4969
5075
|
* intent was asked for — never a silent copy of `reviews`.
|
|
4970
5076
|
*/
|
|
4971
|
-
highlights:
|
|
5077
|
+
highlights: z40.array(ProductReviewHighlightSchema).default([]),
|
|
4972
5078
|
/**
|
|
4973
5079
|
* True when the review provider could not be read and nothing is indexed —
|
|
4974
5080
|
* the empty lists mean "not loaded", NOT "this product has no reviews".
|
|
4975
5081
|
*/
|
|
4976
|
-
unavailable:
|
|
5082
|
+
unavailable: z40.boolean().optional()
|
|
4977
5083
|
});
|
|
4978
5084
|
var ProductReviewPayloadSchema = ProductReviewDataSchema.omit({ id: true });
|
|
4979
5085
|
|
|
@@ -5267,9 +5373,9 @@ function readPdpCompanions(config) {
|
|
|
5267
5373
|
}
|
|
5268
5374
|
|
|
5269
5375
|
// ../ecommerce/src/base-attributes.ts
|
|
5270
|
-
import { z as
|
|
5376
|
+
import { z as z41 } from "zod";
|
|
5271
5377
|
var BASE_ATTRIBUTES_CONFIG_KEY = "baseAttributes";
|
|
5272
|
-
var BaseAttributesRecordSchema =
|
|
5378
|
+
var BaseAttributesRecordSchema = z41.record(z41.string(), AttributeDefSchema);
|
|
5273
5379
|
function buildBaseAttributesConfig(attributes) {
|
|
5274
5380
|
return { [BASE_ATTRIBUTES_CONFIG_KEY]: attributes };
|
|
5275
5381
|
}
|
|
@@ -5280,9 +5386,9 @@ function readBaseAttributesConfig(config) {
|
|
|
5280
5386
|
}
|
|
5281
5387
|
|
|
5282
5388
|
// ../ecommerce/src/bucket-labels.ts
|
|
5283
|
-
import { z as
|
|
5389
|
+
import { z as z42 } from "zod";
|
|
5284
5390
|
var BUCKET_LABELS_CONFIG_KEY = "bucketLabels";
|
|
5285
|
-
var BucketLabelsRecordSchema =
|
|
5391
|
+
var BucketLabelsRecordSchema = z42.record(z42.string(), z42.string());
|
|
5286
5392
|
function buildBucketLabelsConfig(labels) {
|
|
5287
5393
|
return { [BUCKET_LABELS_CONFIG_KEY]: labels };
|
|
5288
5394
|
}
|
|
@@ -6295,7 +6401,8 @@ __export(presence_exports, {
|
|
|
6295
6401
|
SCANNING_FORM: () => SCANNING_FORM,
|
|
6296
6402
|
deriveSourceElement: () => deriveSourceElement,
|
|
6297
6403
|
isPresenceStreamArtifact: () => isPresenceStreamArtifact,
|
|
6298
|
-
pendingSourceElement: () => pendingSourceElement
|
|
6404
|
+
pendingSourceElement: () => pendingSourceElement,
|
|
6405
|
+
projectSourceOutput: () => projectSourceOutput
|
|
6299
6406
|
});
|
|
6300
6407
|
|
|
6301
6408
|
// ../spacestation/src/widgets/presence/frame.ts
|
|
@@ -6346,7 +6453,7 @@ function imageOf(record2) {
|
|
|
6346
6453
|
function metaOf(record2) {
|
|
6347
6454
|
const meta = {};
|
|
6348
6455
|
for (const [key, value] of Object.entries(record2)) {
|
|
6349
|
-
if (key === "id" || SCAN_IMAGE_KEYS.includes(key)) continue;
|
|
6456
|
+
if (key === "id" || key.startsWith("__") || SCAN_IMAGE_KEYS.includes(key)) continue;
|
|
6350
6457
|
if (typeof value === "number" || typeof value === "boolean") {
|
|
6351
6458
|
meta[key] = value;
|
|
6352
6459
|
continue;
|
|
@@ -6407,6 +6514,29 @@ function deriveSourceElement(input) {
|
|
|
6407
6514
|
}
|
|
6408
6515
|
return element;
|
|
6409
6516
|
}
|
|
6517
|
+
function projectSourceOutput(output) {
|
|
6518
|
+
const records = recordsOf(output);
|
|
6519
|
+
if (records === void 0) return void 0;
|
|
6520
|
+
const results = [];
|
|
6521
|
+
for (const record2 of records) {
|
|
6522
|
+
if (typeof record2 !== "object" || record2 === null) continue;
|
|
6523
|
+
const projected = {};
|
|
6524
|
+
const id = Reflect.get(record2, "id");
|
|
6525
|
+
if (typeof id === "string") projected.id = id;
|
|
6526
|
+
const imageUrl = imageOf(record2);
|
|
6527
|
+
if (imageUrl !== void 0) projected.imageUrl = imageUrl;
|
|
6528
|
+
const meta = metaOf(record2);
|
|
6529
|
+
if (meta !== void 0) Object.assign(projected, meta);
|
|
6530
|
+
results.push(projected);
|
|
6531
|
+
}
|
|
6532
|
+
const projection = { results };
|
|
6533
|
+
const parsed = parse(output);
|
|
6534
|
+
if (typeof parsed === "object" && parsed !== null) {
|
|
6535
|
+
const total = Reflect.get(parsed, "total");
|
|
6536
|
+
if (typeof total === "number") projection.total = total;
|
|
6537
|
+
}
|
|
6538
|
+
return projection;
|
|
6539
|
+
}
|
|
6410
6540
|
|
|
6411
6541
|
// ../spacestation/src/widgets/presence/element.ts
|
|
6412
6542
|
function isPresenceStreamArtifact(value) {
|
|
@@ -6432,8 +6562,8 @@ var PRESENCE_LIFECYCLE = {
|
|
|
6432
6562
|
};
|
|
6433
6563
|
|
|
6434
6564
|
// ../spacestation/src/widgets/presence/profile.ts
|
|
6435
|
-
import { z as
|
|
6436
|
-
var PresenceProfileSchema =
|
|
6565
|
+
import { z as z43 } from "zod";
|
|
6566
|
+
var PresenceProfileSchema = z43.object({
|
|
6437
6567
|
/**
|
|
6438
6568
|
* How much the agent SPEAKS in presence.
|
|
6439
6569
|
* - 'off' the faculty generates no prose at all. Zero tokens, and
|
|
@@ -6443,14 +6573,14 @@ var PresenceProfileSchema = z41.object({
|
|
|
6443
6573
|
* - 'terse' one lead line per turn. The default — see below.
|
|
6444
6574
|
* - 'full' a lead line plus asides beside individual elements.
|
|
6445
6575
|
*/
|
|
6446
|
-
voice:
|
|
6576
|
+
voice: z43.enum(["off", "terse", "full"]),
|
|
6447
6577
|
/**
|
|
6448
6578
|
* Which source kinds this space surfaces. 'all' = every tool that declares a
|
|
6449
6579
|
* `sourceKind`. An explicit list lets a space stay quiet about lookups its
|
|
6450
6580
|
* visitors would find uninteresting (policy checks on a fashion space)
|
|
6451
6581
|
* without the tool having to lie about what it is.
|
|
6452
6582
|
*/
|
|
6453
|
-
sources:
|
|
6583
|
+
sources: z43.union([z43.array(z43.string()), z43.literal("all")]),
|
|
6454
6584
|
/**
|
|
6455
6585
|
* Which facts render.
|
|
6456
6586
|
* - 'inferred-only' hides `provenance: 'stated'` facts. The default and the
|
|
@@ -6459,7 +6589,7 @@ var PresenceProfileSchema = z41.object({
|
|
|
6459
6589
|
* - 'all' shows stated facts too — for spaces where confirming the brief
|
|
6460
6590
|
* back is itself the product (intake, configuration).
|
|
6461
6591
|
*/
|
|
6462
|
-
facts:
|
|
6592
|
+
facts: z43.enum(["inferred-only", "all"])
|
|
6463
6593
|
});
|
|
6464
6594
|
var DEFAULT_PRESENCE_PROFILE = {
|
|
6465
6595
|
voice: "terse",
|
|
@@ -8389,22 +8519,22 @@ function buildComponentLibrary(catalog, componentMap) {
|
|
|
8389
8519
|
}
|
|
8390
8520
|
|
|
8391
8521
|
// src/catalog/define.ts
|
|
8392
|
-
import { z as
|
|
8522
|
+
import { z as z44 } from "zod";
|
|
8393
8523
|
function entity(resolverKey, opts) {
|
|
8394
|
-
return resolved(
|
|
8524
|
+
return resolved(z44.string(), resolverKey, opts);
|
|
8395
8525
|
}
|
|
8396
|
-
var text = prose(
|
|
8526
|
+
var text = prose(z44.string());
|
|
8397
8527
|
function plain() {
|
|
8398
|
-
return
|
|
8528
|
+
return z44.string();
|
|
8399
8529
|
}
|
|
8400
8530
|
function token(values) {
|
|
8401
|
-
return
|
|
8531
|
+
return z44.enum(values);
|
|
8402
8532
|
}
|
|
8403
8533
|
function catalogComponent(meta, render) {
|
|
8404
8534
|
const { props, requires, ...rest } = meta;
|
|
8405
8535
|
return {
|
|
8406
8536
|
...rest,
|
|
8407
|
-
propsSchema:
|
|
8537
|
+
propsSchema: z44.object(props),
|
|
8408
8538
|
...requires !== void 0 ? { requires } : {},
|
|
8409
8539
|
component: adaptComponent(render)
|
|
8410
8540
|
};
|
|
@@ -8956,10 +9086,10 @@ function presenceFactShape(fact) {
|
|
|
8956
9086
|
const value = fact.value.trim();
|
|
8957
9087
|
if (value.length === 0) return FACT_SHAPE.plain;
|
|
8958
9088
|
if (colorHexOf(value) !== null) return FACT_SHAPE.color;
|
|
8959
|
-
const
|
|
8960
|
-
if (
|
|
8961
|
-
const alone =
|
|
8962
|
-
if (alone && BARE_NUMERAL.test(
|
|
9089
|
+
const parts2 = factFigureParts(fact);
|
|
9090
|
+
if (parts2 === null) return FACT_SHAPE.plain;
|
|
9091
|
+
const alone = parts2.before.length === 0 && parts2.after.length === 0;
|
|
9092
|
+
if (alone && BARE_NUMERAL.test(parts2.figure)) return FACT_SHAPE.figure;
|
|
8963
9093
|
return FACT_SHAPE.measure;
|
|
8964
9094
|
}
|
|
8965
9095
|
|
|
@@ -10440,18 +10570,18 @@ __export(ecommerce_exports, {
|
|
|
10440
10570
|
});
|
|
10441
10571
|
|
|
10442
10572
|
// ../spacestation/src/analytics/ecommerce/surfacing.ts
|
|
10443
|
-
import { z as
|
|
10573
|
+
import { z as z45 } from "zod";
|
|
10444
10574
|
var PRODUCTS_SURFACED = defineEventKind(
|
|
10445
10575
|
"commerce.products_surfaced",
|
|
10446
10576
|
"client",
|
|
10447
|
-
|
|
10577
|
+
z45.object({
|
|
10448
10578
|
/** The turn whose commit this describes. Minted where the prompt signal
|
|
10449
10579
|
* is built and shared with `agent_runs`, so the read layer can line a
|
|
10450
10580
|
* surfacing up against the prompt that asked for it. */
|
|
10451
|
-
turnId:
|
|
10581
|
+
turnId: z45.string().min(1).max(128),
|
|
10452
10582
|
/** Distinct entity refs this turn placed that were not on the canvas
|
|
10453
10583
|
* before it. ZERO IS A REAL VALUE — see the header. */
|
|
10454
|
-
productCount:
|
|
10584
|
+
productCount: z45.number().int().nonnegative()
|
|
10455
10585
|
}).strict()
|
|
10456
10586
|
);
|
|
10457
10587
|
|
|
@@ -11951,7 +12081,7 @@ function useContentActions() {
|
|
|
11951
12081
|
import { useEffect as useEffect19, useState as useState18 } from "react";
|
|
11952
12082
|
|
|
11953
12083
|
// package.json
|
|
11954
|
-
var version = "0.5.
|
|
12084
|
+
var version = "0.5.1";
|
|
11955
12085
|
|
|
11956
12086
|
// src/host/host-modules.ts
|
|
11957
12087
|
import * as react from "react";
|
|
@@ -12038,7 +12168,7 @@ function Spacefront(props) {
|
|
|
12038
12168
|
}
|
|
12039
12169
|
|
|
12040
12170
|
// src/npm.ts
|
|
12041
|
-
import { z as
|
|
12171
|
+
import { z as z47 } from "zod";
|
|
12042
12172
|
export {
|
|
12043
12173
|
ACQUISITION_KIND_LABELS,
|
|
12044
12174
|
ACTIVE_PANEL_ATTR,
|
|
@@ -12181,11 +12311,13 @@ export {
|
|
|
12181
12311
|
LlmUsageDailySchema,
|
|
12182
12312
|
MAX_ATTACHMENT_BYTES,
|
|
12183
12313
|
MAX_VISITOR_PROMPT_CHARS,
|
|
12314
|
+
MIN_WIRE_PROTOCOL_VERSION,
|
|
12184
12315
|
MOBILE_VIEWPORT_MAX,
|
|
12185
12316
|
MoneySchema,
|
|
12186
12317
|
NAVIGATE_SIGNAL,
|
|
12187
12318
|
NavigatePayloadSchema,
|
|
12188
12319
|
NullComponent,
|
|
12320
|
+
OLDEST_SUPPORTED_SDK,
|
|
12189
12321
|
PRESENCE_CANVAS_REFRESH_SIGNAL,
|
|
12190
12322
|
PRESENCE_FACT_DISMISS_SIGNAL,
|
|
12191
12323
|
PRESENCE_FLOW,
|
|
@@ -12196,6 +12328,7 @@ export {
|
|
|
12196
12328
|
PRODUCT_SELECT_OPTION_SIGNAL,
|
|
12197
12329
|
PRODUCT_VARIANTS_SCOPE,
|
|
12198
12330
|
PROJECTION_SET_SIGNAL,
|
|
12331
|
+
PackageBundleRefSchema,
|
|
12199
12332
|
PackageLookupProvider,
|
|
12200
12333
|
PackageReleaseSchema,
|
|
12201
12334
|
PageSchema,
|
|
@@ -12222,13 +12355,17 @@ export {
|
|
|
12222
12355
|
ReviewAggregateSchema,
|
|
12223
12356
|
ReviewSchema,
|
|
12224
12357
|
SCANNING_FORM,
|
|
12358
|
+
SDK_SHIMS,
|
|
12359
|
+
SDK_VERSION_PATTERN,
|
|
12225
12360
|
SELECTION_ORIGIN_VISITOR,
|
|
12226
12361
|
SIGNAL_PATCH_PREFIX,
|
|
12362
|
+
SOCKET_TICKET_PARAM,
|
|
12227
12363
|
STRUCTURAL_BASELINE_CATALOG,
|
|
12228
12364
|
STRUCTURAL_BASELINE_TYPES,
|
|
12229
12365
|
SURFACES,
|
|
12230
12366
|
SURFACE_DISPOSITION,
|
|
12231
12367
|
ScrollContainerProvider,
|
|
12368
|
+
SdkVersionSchema,
|
|
12232
12369
|
SelectedOptionSchema,
|
|
12233
12370
|
SessionActivityEventSchema,
|
|
12234
12371
|
SessionActivitySchema,
|
|
@@ -12293,6 +12430,9 @@ export {
|
|
|
12293
12430
|
ViewportWindowContext,
|
|
12294
12431
|
ViewportWindowProvider,
|
|
12295
12432
|
VisitorIdDurabilitySchema,
|
|
12433
|
+
WIRE_PROTOCOL_PARAM,
|
|
12434
|
+
WIRE_PROTOCOL_UNSUPPORTED_CLOSE,
|
|
12435
|
+
WIRE_PROTOCOL_VERSION,
|
|
12296
12436
|
WORKSPACE_THEME_PACKAGES,
|
|
12297
12437
|
WireCatalogEntrySchema,
|
|
12298
12438
|
WireCatalogSchema,
|
|
@@ -12340,6 +12480,7 @@ export {
|
|
|
12340
12480
|
collectLayoutGids,
|
|
12341
12481
|
collectPlacedEntityRefs,
|
|
12342
12482
|
colorHexOf,
|
|
12483
|
+
compareSdkVersions,
|
|
12343
12484
|
compressArray,
|
|
12344
12485
|
compressString,
|
|
12345
12486
|
computeActiveChips,
|
|
@@ -12505,6 +12646,8 @@ export {
|
|
|
12505
12646
|
scopedAttributeKey,
|
|
12506
12647
|
scrollEventTarget,
|
|
12507
12648
|
scrollPaddingTopOf,
|
|
12649
|
+
sdkShimsFor,
|
|
12650
|
+
sdkWindowProblem,
|
|
12508
12651
|
selectItemVariants,
|
|
12509
12652
|
selectedOptionsToRecord,
|
|
12510
12653
|
serverState,
|
|
@@ -12689,5 +12832,5 @@ export {
|
|
|
12689
12832
|
wipeProfile,
|
|
12690
12833
|
withCartActorOrigin,
|
|
12691
12834
|
withInteractionTracking,
|
|
12692
|
-
|
|
12835
|
+
z47 as z
|
|
12693
12836
|
};
|