@40rty/ams-sdk 0.5.7 → 0.5.9
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 +615 -529
- package/dist/types/ecommerce/src/index.d.ts +1 -0
- package/dist/types/ecommerce/src/store-theme.d.ts +45 -0
- package/dist/types/sdk/src/host/host-modules.d.ts +13 -0
- package/dist/types/spacestation/src/catalog/wire/host-imports.d.ts +15 -0
- package/dist/types/spacestation/src/catalog/wire/index.d.ts +2 -1
- package/dist/types/spacestation/src/catalog/wire/package-release.d.ts +19 -0
- package/dist/types/spacestation/src/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -142,6 +142,8 @@ __export(src_exports3, {
|
|
|
142
142
|
HOST_CLEARED: () => HOST_CLEARED,
|
|
143
143
|
HandlerRegistryContext: () => HandlerRegistryContext,
|
|
144
144
|
HostClearedSchema: () => HostClearedSchema,
|
|
145
|
+
HostExportsSchema: () => HostExportsSchema,
|
|
146
|
+
HostImportsSchema: () => HostImportsSchema,
|
|
145
147
|
HostPayloadSchema: () => HostPayloadSchema,
|
|
146
148
|
HydrationNoticeProvider: () => HydrationNoticeProvider,
|
|
147
149
|
HydrationStateContext: () => HydrationStateContext,
|
|
@@ -199,11 +201,13 @@ __export(src_exports3, {
|
|
|
199
201
|
ProjectionSignalBridge: () => ProjectionSignalBridge,
|
|
200
202
|
REFERRER_HOST_PARAM: () => REFERRER_HOST_PARAM,
|
|
201
203
|
REGISTRY_CLICKED: () => REGISTRY_CLICKED,
|
|
204
|
+
RELEASE_MESSAGE_MAX: () => RELEASE_MESSAGE_MAX,
|
|
202
205
|
RESERVED_IDS: () => RESERVED_IDS,
|
|
203
206
|
RESERVED_ID_SET: () => RESERVED_ID_SET,
|
|
204
207
|
RecordVerdictInputSchema: () => RecordVerdictInputSchema,
|
|
205
208
|
RecordableVerdictSchema: () => RecordableVerdictSchema,
|
|
206
209
|
RegistryProvider: () => RegistryProvider,
|
|
210
|
+
ReleaseMessageSchema: () => ReleaseMessageSchema,
|
|
207
211
|
ReorderAgentDirectivesInputSchema: () => ReorderAgentDirectivesInputSchema,
|
|
208
212
|
ReviewAggregateSchema: () => ReviewAggregateSchema,
|
|
209
213
|
ReviewSchema: () => ReviewSchema,
|
|
@@ -254,6 +258,7 @@ __export(src_exports3, {
|
|
|
254
258
|
SpacefrontPreviewProvider: () => SpacefrontPreviewProvider,
|
|
255
259
|
SpecSchema: () => SpecSchema,
|
|
256
260
|
StateSnapshotFrameSchema: () => StateSnapshotFrameSchema,
|
|
261
|
+
StoreThemeAccessError: () => StoreThemeAccessError,
|
|
257
262
|
SuggestionActionSchema: () => SuggestionActionSchema,
|
|
258
263
|
SuggestionActionsSchema: () => SuggestionActionsSchema,
|
|
259
264
|
SurfaceSchema: () => SurfaceSchema,
|
|
@@ -334,6 +339,7 @@ __export(src_exports3, {
|
|
|
334
339
|
clearCartActionFailures: () => clearCartActionFailures,
|
|
335
340
|
clearCodeDiscountSources: () => clearCodeDiscountSources,
|
|
336
341
|
clearProductNameLookups: () => clearProductNameLookups,
|
|
342
|
+
clearStoreThemeSources: () => clearStoreThemeSources,
|
|
337
343
|
clearVariantChoice: () => clearVariantChoice,
|
|
338
344
|
clientStateEntries: () => clientStateEntries,
|
|
339
345
|
clientStateVector: () => clientStateVector,
|
|
@@ -395,6 +401,8 @@ __export(src_exports3, {
|
|
|
395
401
|
hapticCue: () => hapticCue,
|
|
396
402
|
hasProse: () => hasProse,
|
|
397
403
|
hostFillsPage: () => hostFillsPage,
|
|
404
|
+
hostImportProblems: () => hostImportProblems,
|
|
405
|
+
hostImportsRefusal: () => hostImportsRefusal,
|
|
398
406
|
hostPlace: () => hostPlace,
|
|
399
407
|
hostingAllows: () => hostingAllows,
|
|
400
408
|
injectGoogleFonts: () => injectGoogleFonts,
|
|
@@ -484,6 +492,7 @@ __export(src_exports3, {
|
|
|
484
492
|
registerProductNameLookup: () => registerProductNameLookup,
|
|
485
493
|
registerServiceHydrators: () => registerServiceHydrators,
|
|
486
494
|
registerSessionScopedClear: () => registerSessionScopedClear,
|
|
495
|
+
registerStoreThemeSource: () => registerStoreThemeSource,
|
|
487
496
|
registeredPageKinds: () => registeredPageKinds,
|
|
488
497
|
registeredPresenceFactForms: () => registeredPresenceFactForms,
|
|
489
498
|
registeredPresenceForms: () => registeredPresenceForms,
|
|
@@ -506,6 +515,7 @@ __export(src_exports3, {
|
|
|
506
515
|
resolveServiceHydrators: () => resolveServiceHydrators,
|
|
507
516
|
resolveStanding: () => resolveStanding,
|
|
508
517
|
resolveStorage: () => resolveStorage,
|
|
518
|
+
resolveStoreThemeSource: () => resolveStoreThemeSource,
|
|
509
519
|
resolveSwatchColor: () => resolveSwatchColor,
|
|
510
520
|
resolveType: () => resolveType,
|
|
511
521
|
resolved: () => resolved,
|
|
@@ -1551,6 +1561,8 @@ __export(src_exports, {
|
|
|
1551
1561
|
FocusElementPayloadSchema: () => FocusElementPayloadSchema,
|
|
1552
1562
|
HOST_CLEARED: () => HOST_CLEARED,
|
|
1553
1563
|
HostClearedSchema: () => HostClearedSchema,
|
|
1564
|
+
HostExportsSchema: () => HostExportsSchema,
|
|
1565
|
+
HostImportsSchema: () => HostImportsSchema,
|
|
1554
1566
|
HostPayloadSchema: () => HostPayloadSchema,
|
|
1555
1567
|
InteractionSignalSchema: () => InteractionSignalSchema,
|
|
1556
1568
|
JSON_PATCH_OPS: () => JSON_PATCH_OPS,
|
|
@@ -1583,10 +1595,12 @@ __export(src_exports, {
|
|
|
1583
1595
|
ProjectionPreferencesSchema: () => ProjectionPreferencesSchema,
|
|
1584
1596
|
ProjectionSetPayloadSchema: () => ProjectionSetPayloadSchema,
|
|
1585
1597
|
REFERRER_HOST_PARAM: () => REFERRER_HOST_PARAM,
|
|
1598
|
+
RELEASE_MESSAGE_MAX: () => RELEASE_MESSAGE_MAX,
|
|
1586
1599
|
RESERVED_IDS: () => RESERVED_IDS,
|
|
1587
1600
|
RESERVED_ID_SET: () => RESERVED_ID_SET,
|
|
1588
1601
|
RecordVerdictInputSchema: () => RecordVerdictInputSchema,
|
|
1589
1602
|
RecordableVerdictSchema: () => RecordableVerdictSchema,
|
|
1603
|
+
ReleaseMessageSchema: () => ReleaseMessageSchema,
|
|
1590
1604
|
ReorderAgentDirectivesInputSchema: () => ReorderAgentDirectivesInputSchema,
|
|
1591
1605
|
SDK_SHIMS: () => SDK_SHIMS,
|
|
1592
1606
|
SDK_VERSION_PATTERN: () => SDK_VERSION_PATTERN,
|
|
@@ -1687,6 +1701,8 @@ __export(src_exports, {
|
|
|
1687
1701
|
getProsePaths: () => getProsePaths,
|
|
1688
1702
|
getResolvedPaths: () => getResolvedPaths,
|
|
1689
1703
|
hostFillsPage: () => hostFillsPage,
|
|
1704
|
+
hostImportProblems: () => hostImportProblems,
|
|
1705
|
+
hostImportsRefusal: () => hostImportsRefusal,
|
|
1690
1706
|
hostPlace: () => hostPlace,
|
|
1691
1707
|
hostingAllows: () => hostingAllows,
|
|
1692
1708
|
isActiveDirective: () => isActiveDirective,
|
|
@@ -3469,7 +3485,7 @@ function catalogFromWire(wire) {
|
|
|
3469
3485
|
}
|
|
3470
3486
|
|
|
3471
3487
|
// ../spacestation/src/catalog/wire/package-release.ts
|
|
3472
|
-
import { z as
|
|
3488
|
+
import { z as z28 } from "zod";
|
|
3473
3489
|
|
|
3474
3490
|
// ../spacestation/src/catalog/wire/brand-mark.ts
|
|
3475
3491
|
import { z as z25 } from "zod";
|
|
@@ -3538,17 +3554,42 @@ function sdkWindowProblem(builtWithSdk, platformSdk) {
|
|
|
3538
3554
|
return null;
|
|
3539
3555
|
}
|
|
3540
3556
|
|
|
3557
|
+
// ../spacestation/src/catalog/wire/host-imports.ts
|
|
3558
|
+
import { z as z27 } from "zod";
|
|
3559
|
+
var SpecifierSchema = z27.string().min(1).max(200);
|
|
3560
|
+
var HostImportsSchema = z27.record(SpecifierSchema, z27.array(z27.string().min(1).max(200)).max(5e3));
|
|
3561
|
+
var HostExportsSchema = z27.record(SpecifierSchema, z27.array(z27.string()));
|
|
3562
|
+
function hostImportProblems(imports, provided) {
|
|
3563
|
+
const problems = [];
|
|
3564
|
+
for (const [specifier, names] of Object.entries(imports)) {
|
|
3565
|
+
const exported = Object.hasOwn(provided, specifier) ? provided[specifier] : void 0;
|
|
3566
|
+
if (exported === void 0) {
|
|
3567
|
+
problems.push(`${specifier} (not provided)`);
|
|
3568
|
+
continue;
|
|
3569
|
+
}
|
|
3570
|
+
const have = new Set(exported);
|
|
3571
|
+
for (const name of names) if (!have.has(name)) problems.push(`${specifier} \u2192 ${name}`);
|
|
3572
|
+
}
|
|
3573
|
+
return problems;
|
|
3574
|
+
}
|
|
3575
|
+
function hostImportsRefusal(commit) {
|
|
3576
|
+
const where = commit === null ? "this deployment" : `this deployment (commit ${commit.slice(0, 12)})`;
|
|
3577
|
+
return `The bundle imports what ${where} does not provide \u2014 build against the @40rty/ams-* versions it serves, or wait for the platform to ship them`;
|
|
3578
|
+
}
|
|
3579
|
+
|
|
3541
3580
|
// ../spacestation/src/catalog/wire/package-release.ts
|
|
3542
3581
|
var RESERVED_SCOPES = ["@fourty/", "@40rty/"];
|
|
3543
3582
|
var BUNDLE_ASSET_PATH = /^assets\/[A-Za-z0-9_-]+\.(woff2?|ttf|otf|png|jpe?g|svg|gif|webp)$/;
|
|
3544
|
-
var
|
|
3583
|
+
var RELEASE_MESSAGE_MAX = 140;
|
|
3584
|
+
var ReleaseMessageSchema = z28.string().trim().min(1, "say what this release changes").max(RELEASE_MESSAGE_MAX, `keep the message to one line of ${RELEASE_MESSAGE_MAX} characters or fewer`);
|
|
3585
|
+
var PackageReleaseSchema = z28.object({
|
|
3545
3586
|
/** The id spaces name in `componentSources` — an npm-style package name. */
|
|
3546
|
-
sourceId:
|
|
3547
|
-
label:
|
|
3587
|
+
sourceId: z28.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`),
|
|
3588
|
+
label: z28.string().min(1).max(120),
|
|
3548
3589
|
/** The package's own version, as its repository states it — shown in the console. */
|
|
3549
|
-
version:
|
|
3590
|
+
version: z28.string().min(1).max(40),
|
|
3550
3591
|
/** What this release changed, in the publisher's words (`forty publish --message`) — shown in the console's version list. */
|
|
3551
|
-
description:
|
|
3592
|
+
description: z28.string().min(1).max(500).optional(),
|
|
3552
3593
|
/**
|
|
3553
3594
|
* The `@40rty/ams-sdk` version the brand project resolved when `forty
|
|
3554
3595
|
* publish` built this release. A bundle takes the sdk from the page at
|
|
@@ -3557,9 +3598,18 @@ var PackageReleaseSchema = z27.object({
|
|
|
3557
3598
|
* published before the stamp existed — those are legacy.
|
|
3558
3599
|
*/
|
|
3559
3600
|
builtWithSdk: SdkVersionSchema.optional(),
|
|
3601
|
+
/**
|
|
3602
|
+
* Every name the bundle reads from each module it takes from the page
|
|
3603
|
+
* (`host-imports.ts`) — what lets the platform refuse a bundle it cannot
|
|
3604
|
+
* run. Sent by `forty publish` / `forty dev` with every bundle; absent on
|
|
3605
|
+
* releases built before it existed, which are admitted (and logged). Kept
|
|
3606
|
+
* beside the release, not in the bundle, so a rollback can check it without
|
|
3607
|
+
* fetching the components.
|
|
3608
|
+
*/
|
|
3609
|
+
hostImports: HostImportsSchema.optional(),
|
|
3560
3610
|
catalog: WireCatalogSchema,
|
|
3561
3611
|
/** Component manifests by path under `catalogs/`, e.g. `catalogs/product/productGrid.md`. */
|
|
3562
|
-
manifests:
|
|
3612
|
+
manifests: z28.record(z28.string().regex(/^catalogs\/.+\.md$/, "a manifest path is catalogs/<\u2026>.md"), z28.string()),
|
|
3563
3613
|
/**
|
|
3564
3614
|
* The brand's components, built — present when the PLATFORM hosts this
|
|
3565
3615
|
* brand's spacefront, absent when the brand hosts it in its own app. One
|
|
@@ -3568,17 +3618,17 @@ var PackageReleaseSchema = z27.object({
|
|
|
3568
3618
|
* images — base64, keyed by the path the stylesheet's `url()` names, beside
|
|
3569
3619
|
* it). It is served to browsers; the platform's servers never run it.
|
|
3570
3620
|
*/
|
|
3571
|
-
bundle:
|
|
3572
|
-
js:
|
|
3573
|
-
css:
|
|
3574
|
-
assets:
|
|
3621
|
+
bundle: z28.object({
|
|
3622
|
+
js: z28.string().min(1),
|
|
3623
|
+
css: z28.string(),
|
|
3624
|
+
assets: z28.record(z28.string().regex(BUNDLE_ASSET_PATH, "an asset is assets/<name>.<font or image extension>"), z28.string().base64()).optional()
|
|
3575
3625
|
}).strict().optional(),
|
|
3576
3626
|
/**
|
|
3577
3627
|
* The class the spacefront root carries while this package is the space's.
|
|
3578
3628
|
* The package's own stylesheet styles under it. Absent = the platform's
|
|
3579
3629
|
* default theme class.
|
|
3580
3630
|
*/
|
|
3581
|
-
theme:
|
|
3631
|
+
theme: z28.object({ themeClass: z28.string().regex(/^[a-z][a-z0-9-]*$/, "a theme class is lowercase letters, digits and hyphens") }).strict().optional(),
|
|
3582
3632
|
/**
|
|
3583
3633
|
* The brand's mark (`brand-mark.ts`). Sent as the files themselves; the
|
|
3584
3634
|
* platform stores them content-addressed at ingest and keeps only their
|
|
@@ -3591,7 +3641,7 @@ var PackageReleaseSchema = z27.object({
|
|
|
3591
3641
|
* The package's own composition guidance for its own components — prompt
|
|
3592
3642
|
* markdown the agent reads, gated on the capabilities it names (`requires`).
|
|
3593
3643
|
*/
|
|
3594
|
-
promptSections:
|
|
3644
|
+
promptSections: z28.array(z28.object({ id: z28.string().regex(/^[a-z0-9-]+$/), order: z28.number().int(), content: z28.string().min(1).max(2e4), requires: z28.array(z28.string()) }).strict()).max(10).optional(),
|
|
3595
3645
|
/**
|
|
3596
3646
|
* The brand's SPACE prompt — its `prompts/space.md`, verbatim: sections split
|
|
3597
3647
|
* by `<!-- section:<id> -->` markers, the same format as the platform's
|
|
@@ -3599,17 +3649,17 @@ var PackageReleaseSchema = z27.object({
|
|
|
3599
3649
|
* package. How the brand speaks, what it sells and what it never claims ship
|
|
3600
3650
|
* with the brand, and a release changes them with no platform deploy.
|
|
3601
3651
|
*/
|
|
3602
|
-
spacePrompt:
|
|
3652
|
+
spacePrompt: z28.string().min(1).max(2e5).optional(),
|
|
3603
3653
|
/**
|
|
3604
3654
|
* Opaque per-vertical extension data (`BrandDefinition.config`): the
|
|
3605
3655
|
* platform stays vertical-agnostic and the vertical's own code reads its keys.
|
|
3606
3656
|
*/
|
|
3607
|
-
config:
|
|
3657
|
+
config: z28.record(z28.string(), z28.unknown()).optional(),
|
|
3608
3658
|
/**
|
|
3609
3659
|
* Set by the platform, never by a publisher: this release is a DRAFT of the
|
|
3610
3660
|
* package `of`, previewed on the space `space`. See `draftSourceId`.
|
|
3611
3661
|
*/
|
|
3612
|
-
draft:
|
|
3662
|
+
draft: z28.object({ of: z28.string().min(1), space: z28.string().min(1) }).strict().optional()
|
|
3613
3663
|
}).strict();
|
|
3614
3664
|
var DRAFT_SEPARATOR = "--";
|
|
3615
3665
|
function draftSourceId(sourceId, spaceSlug, developer) {
|
|
@@ -3628,49 +3678,49 @@ function parseReleasePreview(id) {
|
|
|
3628
3678
|
}
|
|
3629
3679
|
|
|
3630
3680
|
// ../spacestation/src/catalog/wire/package-bundle-ref.ts
|
|
3631
|
-
import { z as
|
|
3632
|
-
var PackageBundleRefSchema =
|
|
3633
|
-
sourceId:
|
|
3634
|
-
js:
|
|
3635
|
-
css:
|
|
3681
|
+
import { z as z29 } from "zod";
|
|
3682
|
+
var PackageBundleRefSchema = z29.object({
|
|
3683
|
+
sourceId: z29.string(),
|
|
3684
|
+
js: z29.string(),
|
|
3685
|
+
css: z29.string(),
|
|
3636
3686
|
/** The brand's name for itself, and its package's version. */
|
|
3637
|
-
label:
|
|
3638
|
-
version:
|
|
3687
|
+
label: z29.string(),
|
|
3688
|
+
version: z29.string(),
|
|
3639
3689
|
/** The sdk the bundle was built against (`PackageRelease.builtWithSdk`) — absent for a legacy release. Picks its compat shims. */
|
|
3640
3690
|
builtWithSdk: SdkVersionSchema.optional()
|
|
3641
3691
|
});
|
|
3642
3692
|
|
|
3643
3693
|
// ../spacestation/src/projection/projection.ts
|
|
3644
|
-
import { z as
|
|
3645
|
-
var LateBoundValueSchema =
|
|
3646
|
-
var DirectiveValueSchema =
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3694
|
+
import { z as z30 } from "zod";
|
|
3695
|
+
var LateBoundValueSchema = z30.object({ fact: z30.literal(true) });
|
|
3696
|
+
var DirectiveValueSchema = z30.union([
|
|
3697
|
+
z30.string(),
|
|
3698
|
+
z30.number(),
|
|
3699
|
+
z30.boolean(),
|
|
3650
3700
|
LateBoundValueSchema
|
|
3651
3701
|
]);
|
|
3652
3702
|
function isLateBound(v) {
|
|
3653
3703
|
return typeof v === "object" && v !== null && "fact" in v;
|
|
3654
3704
|
}
|
|
3655
|
-
var ProjectionDirectiveSchema =
|
|
3705
|
+
var ProjectionDirectiveSchema = z30.object({
|
|
3656
3706
|
/** Keep only items whose axis values all match. Keyed by axis name
|
|
3657
3707
|
* (e.g. `Size`); value is a literal or the `{fact:true}` marker. */
|
|
3658
|
-
isolateTo:
|
|
3708
|
+
isolateTo: z30.record(DirectiveValueSchema).optional(),
|
|
3659
3709
|
/** Isolate to EVERY axis the visitor has a stored fact for. The agent
|
|
3660
3710
|
* emits this (it is vertical-agnostic — it cannot name axes); the
|
|
3661
3711
|
* entity binding expands it against the entity's own axes + facts. */
|
|
3662
|
-
isolateToFacts:
|
|
3712
|
+
isolateToFacts: z30.boolean().optional(),
|
|
3663
3713
|
/** Keep only items the entity binding reports as available. */
|
|
3664
|
-
availableOnly:
|
|
3714
|
+
availableOnly: z30.boolean().optional(),
|
|
3665
3715
|
/** Cap the rendered count after filtering. */
|
|
3666
|
-
limit:
|
|
3716
|
+
limit: z30.number().int().positive().optional()
|
|
3667
3717
|
});
|
|
3668
|
-
var ProjectionPreferencesSchema =
|
|
3669
|
-
|
|
3718
|
+
var ProjectionPreferencesSchema = z30.record(
|
|
3719
|
+
z30.union([ProjectionDirectiveSchema, z30.null()])
|
|
3670
3720
|
);
|
|
3671
3721
|
var PROJECTION_SET_SIGNAL = "projection.set";
|
|
3672
|
-
var ProjectionSetPayloadSchema =
|
|
3673
|
-
setAll:
|
|
3722
|
+
var ProjectionSetPayloadSchema = z30.object({
|
|
3723
|
+
setAll: z30.union([ProjectionDirectiveSchema, z30.null()]).optional(),
|
|
3674
3724
|
set: ProjectionPreferencesSchema.optional()
|
|
3675
3725
|
});
|
|
3676
3726
|
function norm(v) {
|
|
@@ -3704,14 +3754,14 @@ function isActiveDirective(directive) {
|
|
|
3704
3754
|
}
|
|
3705
3755
|
|
|
3706
3756
|
// ../spacestation/src/host/host-page.ts
|
|
3707
|
-
import { z as
|
|
3757
|
+
import { z as z31 } from "zod";
|
|
3708
3758
|
var VIEW_HOST_SIGNAL = "view.host";
|
|
3709
|
-
var HostPayloadSchema =
|
|
3759
|
+
var HostPayloadSchema = z31.object({
|
|
3710
3760
|
page: PageSchema.nullable(),
|
|
3711
|
-
maxSections:
|
|
3712
|
-
surface:
|
|
3761
|
+
maxSections: z31.number().int().positive().nullable(),
|
|
3762
|
+
surface: z31.enum(["page", "slot"])
|
|
3713
3763
|
});
|
|
3714
|
-
var HostClearedSchema =
|
|
3764
|
+
var HostClearedSchema = z31.object({ cleared: z31.literal(true) });
|
|
3715
3765
|
var HOST_CLEARED = { cleared: true };
|
|
3716
3766
|
function hostFillsPage(host) {
|
|
3717
3767
|
return host.surface === "page";
|
|
@@ -3725,23 +3775,23 @@ function pagePlace(page) {
|
|
|
3725
3775
|
}
|
|
3726
3776
|
|
|
3727
3777
|
// ../spacestation/src/focus/focus.ts
|
|
3728
|
-
import { z as
|
|
3778
|
+
import { z as z32 } from "zod";
|
|
3729
3779
|
var VIEW_FOCUS_ELEMENT_SIGNAL = "view.focus.element";
|
|
3730
|
-
var FocusElementPayloadSchema =
|
|
3731
|
-
elementId:
|
|
3780
|
+
var FocusElementPayloadSchema = z32.object({
|
|
3781
|
+
elementId: z32.string().min(1)
|
|
3732
3782
|
});
|
|
3733
3783
|
|
|
3734
3784
|
// ../spacestation/src/view/continuation.ts
|
|
3735
|
-
import { z as
|
|
3785
|
+
import { z as z33 } from "zod";
|
|
3736
3786
|
var VIEW_EXTEND_SIGNAL = "view.extend";
|
|
3737
|
-
var ViewExtendPayloadSchema =
|
|
3738
|
-
reason:
|
|
3787
|
+
var ViewExtendPayloadSchema = z33.object({
|
|
3788
|
+
reason: z33.enum(["scroll_near_bottom"])
|
|
3739
3789
|
});
|
|
3740
3790
|
var VIEW_EXHAUSTED_SIGNAL = "view.exhausted";
|
|
3741
3791
|
var CONTINUATION_ENABLED = false;
|
|
3742
3792
|
|
|
3743
3793
|
// ../spacestation/src/attachment/attachment.ts
|
|
3744
|
-
import { z as
|
|
3794
|
+
import { z as z34 } from "zod";
|
|
3745
3795
|
var ALLOWED_ATTACHMENT_TYPES = [
|
|
3746
3796
|
"image/jpeg",
|
|
3747
3797
|
"image/png",
|
|
@@ -3756,18 +3806,18 @@ function isAllowedAttachmentType(mime) {
|
|
|
3756
3806
|
function isImageAttachment(mime) {
|
|
3757
3807
|
return mime.startsWith("image/");
|
|
3758
3808
|
}
|
|
3759
|
-
var AttachmentRefSchema =
|
|
3809
|
+
var AttachmentRefSchema = z34.object({
|
|
3760
3810
|
// A UUID, as `storeAttachment` mints it: the id becomes a storage path segment,
|
|
3761
3811
|
// so nothing else — no `/`, no `..` — may reach that lookup.
|
|
3762
|
-
id:
|
|
3763
|
-
mimeType:
|
|
3812
|
+
id: z34.string().uuid(),
|
|
3813
|
+
mimeType: z34.string().refine(isAllowedAttachmentType, {
|
|
3764
3814
|
message: "mimeType not on the attachment allow-list"
|
|
3765
3815
|
}),
|
|
3766
|
-
name:
|
|
3767
|
-
size:
|
|
3768
|
-
url:
|
|
3816
|
+
name: z34.string().min(1),
|
|
3817
|
+
size: z34.number().int().positive().max(MAX_ATTACHMENT_BYTES),
|
|
3818
|
+
url: z34.string().min(1)
|
|
3769
3819
|
});
|
|
3770
|
-
var AttachmentRefsSchema =
|
|
3820
|
+
var AttachmentRefsSchema = z34.array(AttachmentRefSchema);
|
|
3771
3821
|
|
|
3772
3822
|
// ../spacestation/src/attachment/attachment-failure.ts
|
|
3773
3823
|
var MAX_ATTACHMENT_MB = Math.round(MAX_ATTACHMENT_BYTES / (1024 * 1024));
|
|
@@ -3786,22 +3836,22 @@ function attachmentFailureOfStatus(status, mimeType) {
|
|
|
3786
3836
|
}
|
|
3787
3837
|
|
|
3788
3838
|
// ../spacestation/src/contracts/entry-context.ts
|
|
3789
|
-
import { z as
|
|
3839
|
+
import { z as z35 } from "zod";
|
|
3790
3840
|
var ENTRY_CONTEXT_MAX_VALUE_CHARS = 200;
|
|
3791
3841
|
var ENTRY_CONTEXT_MAX_KEYS = 12;
|
|
3792
3842
|
var ENTRY_CONTEXT_MAX_NAMESPACES = 8;
|
|
3793
3843
|
var ENTRY_CONTEXT_MAX_NAME_CHARS = 64;
|
|
3794
|
-
var EntryContextValueSchema =
|
|
3795
|
-
var EntryContextNameSchema =
|
|
3796
|
-
var EntryContextNamespaceSchema =
|
|
3844
|
+
var EntryContextValueSchema = z35.string().trim().min(1).max(ENTRY_CONTEXT_MAX_VALUE_CHARS);
|
|
3845
|
+
var EntryContextNameSchema = z35.string().trim().min(1).max(ENTRY_CONTEXT_MAX_NAME_CHARS);
|
|
3846
|
+
var EntryContextNamespaceSchema = z35.record(EntryContextNameSchema, EntryContextValueSchema).refine((entries3) => Object.keys(entries3).length <= ENTRY_CONTEXT_MAX_KEYS, {
|
|
3797
3847
|
message: `at most ${ENTRY_CONTEXT_MAX_KEYS} entries per namespace`
|
|
3798
3848
|
});
|
|
3799
|
-
var EntryContextSchema =
|
|
3849
|
+
var EntryContextSchema = z35.record(EntryContextNameSchema, EntryContextNamespaceSchema).refine((namespaces) => Object.keys(namespaces).length <= ENTRY_CONTEXT_MAX_NAMESPACES, {
|
|
3800
3850
|
message: `at most ${ENTRY_CONTEXT_MAX_NAMESPACES} entry-context namespaces`
|
|
3801
3851
|
});
|
|
3802
3852
|
|
|
3803
3853
|
// ../spacestation/src/contracts/session-arrival.ts
|
|
3804
|
-
import { z as
|
|
3854
|
+
import { z as z36 } from "zod";
|
|
3805
3855
|
var SURFACES = [
|
|
3806
3856
|
"spacefront",
|
|
3807
3857
|
"embed",
|
|
@@ -3811,11 +3861,11 @@ var SURFACES = [
|
|
|
3811
3861
|
"playground",
|
|
3812
3862
|
"automation"
|
|
3813
3863
|
];
|
|
3814
|
-
var SurfaceSchema =
|
|
3864
|
+
var SurfaceSchema = z36.enum(SURFACES);
|
|
3815
3865
|
var CLICK_ID_KINDS = ["gclid", "fbclid", "msclkid", "wbraid", "gbraid"];
|
|
3816
|
-
var ClickIdKindSchema =
|
|
3866
|
+
var ClickIdKindSchema = z36.enum(CLICK_ID_KINDS);
|
|
3817
3867
|
var VISITOR_ID_DURABILITIES = ["persisted", "ephemeral", "host_supplied"];
|
|
3818
|
-
var VisitorIdDurabilitySchema =
|
|
3868
|
+
var VisitorIdDurabilitySchema = z36.enum(VISITOR_ID_DURABILITIES);
|
|
3819
3869
|
var TRAFFIC_BUCKETS = [
|
|
3820
3870
|
"paid_google",
|
|
3821
3871
|
"paid_meta",
|
|
@@ -3827,10 +3877,10 @@ var TRAFFIC_BUCKETS = [
|
|
|
3827
3877
|
"direct",
|
|
3828
3878
|
"unknown"
|
|
3829
3879
|
];
|
|
3830
|
-
var TrafficBucketSchema =
|
|
3880
|
+
var TrafficBucketSchema = z36.enum(TRAFFIC_BUCKETS);
|
|
3831
3881
|
var ARRIVAL_MAX_VALUE_CHARS = 200;
|
|
3832
|
-
var ArrivalValueSchema =
|
|
3833
|
-
var SessionArrivalSchema =
|
|
3882
|
+
var ArrivalValueSchema = z36.string().trim().min(1).max(ARRIVAL_MAX_VALUE_CHARS);
|
|
3883
|
+
var SessionArrivalSchema = z36.object({
|
|
3834
3884
|
utmSource: ArrivalValueSchema.optional(),
|
|
3835
3885
|
utmMedium: ArrivalValueSchema.optional(),
|
|
3836
3886
|
utmCampaign: ArrivalValueSchema.optional(),
|
|
@@ -3926,36 +3976,36 @@ var WIRE_PROTOCOL_PARAM = "protocol";
|
|
|
3926
3976
|
var WIRE_PROTOCOL_UNSUPPORTED_CLOSE = 4426;
|
|
3927
3977
|
|
|
3928
3978
|
// ../spacestation/src/catalog/attribute-registry.ts
|
|
3929
|
-
import { z as
|
|
3930
|
-
var AttributeScopeBucketSchema =
|
|
3931
|
-
scope:
|
|
3932
|
-
needles:
|
|
3933
|
-
label:
|
|
3979
|
+
import { z as z37 } from "zod";
|
|
3980
|
+
var AttributeScopeBucketSchema = z37.object({
|
|
3981
|
+
scope: z37.string(),
|
|
3982
|
+
needles: z37.array(z37.string()).readonly(),
|
|
3983
|
+
label: z37.string().optional()
|
|
3934
3984
|
});
|
|
3935
|
-
var AttributeScopeConfigSchema =
|
|
3936
|
-
facet:
|
|
3937
|
-
buckets:
|
|
3938
|
-
emptyScope:
|
|
3939
|
-
noMatchScope:
|
|
3940
|
-
ignoreValues:
|
|
3941
|
-
emptyScopeLabel:
|
|
3942
|
-
noMatchScopeLabel:
|
|
3985
|
+
var AttributeScopeConfigSchema = z37.object({
|
|
3986
|
+
facet: z37.string(),
|
|
3987
|
+
buckets: z37.array(AttributeScopeBucketSchema).readonly(),
|
|
3988
|
+
emptyScope: z37.string(),
|
|
3989
|
+
noMatchScope: z37.string(),
|
|
3990
|
+
ignoreValues: z37.array(z37.string()).readonly(),
|
|
3991
|
+
emptyScopeLabel: z37.string().optional(),
|
|
3992
|
+
noMatchScopeLabel: z37.string().optional()
|
|
3943
3993
|
});
|
|
3944
|
-
var AttributeDefBaseSchema =
|
|
3945
|
-
description:
|
|
3946
|
-
durable:
|
|
3947
|
-
label:
|
|
3994
|
+
var AttributeDefBaseSchema = z37.object({
|
|
3995
|
+
description: z37.string().optional(),
|
|
3996
|
+
durable: z37.boolean().optional(),
|
|
3997
|
+
label: z37.string().optional()
|
|
3948
3998
|
});
|
|
3949
|
-
var AttributeDefSchema =
|
|
3950
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3951
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3952
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3953
|
-
AttributeDefBaseSchema.extend({ kind:
|
|
3999
|
+
var AttributeDefSchema = z37.discriminatedUnion("kind", [
|
|
4000
|
+
AttributeDefBaseSchema.extend({ kind: z37.literal("enum"), values: z37.array(z37.string()) }),
|
|
4001
|
+
AttributeDefBaseSchema.extend({ kind: z37.literal("free_text") }),
|
|
4002
|
+
AttributeDefBaseSchema.extend({ kind: z37.literal("date_or_season") }),
|
|
4003
|
+
AttributeDefBaseSchema.extend({ kind: z37.literal("money_or_band") }),
|
|
3954
4004
|
AttributeDefBaseSchema.extend({
|
|
3955
|
-
kind:
|
|
3956
|
-
min:
|
|
3957
|
-
max:
|
|
3958
|
-
unit:
|
|
4005
|
+
kind: z37.literal("number"),
|
|
4006
|
+
min: z37.number().optional(),
|
|
4007
|
+
max: z37.number().optional(),
|
|
4008
|
+
unit: z37.string().optional()
|
|
3959
4009
|
})
|
|
3960
4010
|
]);
|
|
3961
4011
|
var EXTRAS_PREFIX = "extras.";
|
|
@@ -3994,52 +4044,52 @@ function scopeOfAttributeKey(config, key) {
|
|
|
3994
4044
|
}
|
|
3995
4045
|
|
|
3996
4046
|
// ../spacestation/src/space/agent-directive.ts
|
|
3997
|
-
import { z as
|
|
4047
|
+
import { z as z38 } from "zod";
|
|
3998
4048
|
var MAX_ACTIVE_AGENT_DIRECTIVES = 12;
|
|
3999
4049
|
var AGENT_DIRECTIVE_KINDS = ["preference", "pairing", "order of things", "promise", "threshold"];
|
|
4000
4050
|
var AGENT_DIRECTIVE_SEVERITIES = ["a missed opportunity", "a problem", "unacceptable"];
|
|
4001
4051
|
var AGENT_DIRECTIVE_SOURCES = ["owner", "operator", "session-lesson"];
|
|
4002
4052
|
var AGENT_DIRECTIVE_STATUSES = ["proposed", "active", "rejected", "retired"];
|
|
4003
|
-
var AgentDirectiveSchema =
|
|
4004
|
-
name:
|
|
4005
|
-
kind:
|
|
4006
|
-
severity:
|
|
4053
|
+
var AgentDirectiveSchema = z38.object({
|
|
4054
|
+
name: z38.string().trim().min(1).max(80),
|
|
4055
|
+
kind: z38.enum(AGENT_DIRECTIVE_KINDS),
|
|
4056
|
+
severity: z38.enum(AGENT_DIRECTIVE_SEVERITIES),
|
|
4007
4057
|
/** No bare URL: a URL is a hallucination surface, and a handle is not a
|
|
4008
4058
|
* product name. */
|
|
4009
|
-
text:
|
|
4059
|
+
text: z38.string().trim().min(1).max(1e3).refine((t) => !/https?:\/\//.test(t), "a directive names things by name, never by URL")
|
|
4010
4060
|
}).strict();
|
|
4011
|
-
var SpaceAgentDirectiveSchema =
|
|
4012
|
-
id:
|
|
4013
|
-
position:
|
|
4014
|
-
name:
|
|
4015
|
-
kind:
|
|
4016
|
-
severity:
|
|
4017
|
-
text:
|
|
4018
|
-
source:
|
|
4019
|
-
status:
|
|
4061
|
+
var SpaceAgentDirectiveSchema = z38.object({
|
|
4062
|
+
id: z38.string(),
|
|
4063
|
+
position: z38.number().int(),
|
|
4064
|
+
name: z38.string(),
|
|
4065
|
+
kind: z38.enum(AGENT_DIRECTIVE_KINDS),
|
|
4066
|
+
severity: z38.enum(AGENT_DIRECTIVE_SEVERITIES),
|
|
4067
|
+
text: z38.string(),
|
|
4068
|
+
source: z38.enum(AGENT_DIRECTIVE_SOURCES),
|
|
4069
|
+
status: z38.enum(AGENT_DIRECTIVE_STATUSES),
|
|
4020
4070
|
/** Who wrote it; null for a lesson the system proposed. */
|
|
4021
|
-
createdBy:
|
|
4071
|
+
createdBy: z38.string().nullable(),
|
|
4022
4072
|
/** Why a mined lesson was proposed; null for a directive a person wrote. */
|
|
4023
|
-
evidence:
|
|
4024
|
-
decidedBy:
|
|
4025
|
-
decidedAt:
|
|
4026
|
-
createdAt:
|
|
4073
|
+
evidence: z38.record(z38.unknown()).nullable(),
|
|
4074
|
+
decidedBy: z38.string().nullable(),
|
|
4075
|
+
decidedAt: z38.string().nullable(),
|
|
4076
|
+
createdAt: z38.string()
|
|
4027
4077
|
});
|
|
4028
|
-
var OutcomeTallySchema =
|
|
4078
|
+
var OutcomeTallySchema = z38.object({ turns: z38.number().int(), acted: z38.number().int() });
|
|
4029
4079
|
var SpaceAgentDirectiveListItemSchema = SpaceAgentDirectiveSchema.extend({
|
|
4030
|
-
impact:
|
|
4080
|
+
impact: z38.object({ before: OutcomeTallySchema, after: OutcomeTallySchema }).nullable()
|
|
4031
4081
|
});
|
|
4032
|
-
var UpdateAgentDirectiveInputSchema =
|
|
4082
|
+
var UpdateAgentDirectiveInputSchema = z38.object({
|
|
4033
4083
|
name: AgentDirectiveSchema.shape.name.optional(),
|
|
4034
4084
|
kind: AgentDirectiveSchema.shape.kind.optional(),
|
|
4035
4085
|
severity: AgentDirectiveSchema.shape.severity.optional(),
|
|
4036
4086
|
text: AgentDirectiveSchema.shape.text.optional(),
|
|
4037
|
-
status:
|
|
4087
|
+
status: z38.enum(AGENT_DIRECTIVE_STATUSES).optional()
|
|
4038
4088
|
}).strict();
|
|
4039
|
-
var ReorderAgentDirectivesInputSchema =
|
|
4089
|
+
var ReorderAgentDirectivesInputSchema = z38.object({ ids: z38.array(z38.string()).min(1) }).strict();
|
|
4040
4090
|
|
|
4041
4091
|
// ../spacestation/src/space/space-locale.ts
|
|
4042
|
-
import { z as
|
|
4092
|
+
import { z as z39 } from "zod";
|
|
4043
4093
|
var DEFAULT_SPACE_LOCALE = "en-US";
|
|
4044
4094
|
function isBcp47(tag) {
|
|
4045
4095
|
try {
|
|
@@ -4049,7 +4099,7 @@ function isBcp47(tag) {
|
|
|
4049
4099
|
throw err;
|
|
4050
4100
|
}
|
|
4051
4101
|
}
|
|
4052
|
-
var SpaceLocaleSchema =
|
|
4102
|
+
var SpaceLocaleSchema = z39.string().refine(isBcp47, { message: "locale must be a BCP 47 language tag, e.g. he-IL" });
|
|
4053
4103
|
var RTL_SCRIPTS = /* @__PURE__ */ new Set(["Arab", "Hebr", "Thaa", "Syrc", "Nkoo", "Adlm", "Rohg", "Mand", "Samr"]);
|
|
4054
4104
|
var RTL_LANGUAGES = /* @__PURE__ */ new Set(["ar", "he", "iw", "fa", "ur", "ps", "sd", "ug", "yi", "dv", "ckb", "syr"]);
|
|
4055
4105
|
function textDirectionOf(locale) {
|
|
@@ -4139,30 +4189,30 @@ function hostingAllows(hosting, surface) {
|
|
|
4139
4189
|
}
|
|
4140
4190
|
|
|
4141
4191
|
// ../spacestation/src/space/trace.ts
|
|
4142
|
-
import { z as
|
|
4143
|
-
var RunTokenUsageSchema =
|
|
4144
|
-
input_tokens:
|
|
4145
|
-
output_tokens:
|
|
4146
|
-
cache_read_tokens:
|
|
4192
|
+
import { z as z40 } from "zod";
|
|
4193
|
+
var RunTokenUsageSchema = z40.object({
|
|
4194
|
+
input_tokens: z40.number().optional(),
|
|
4195
|
+
output_tokens: z40.number().optional(),
|
|
4196
|
+
cache_read_tokens: z40.number().optional()
|
|
4147
4197
|
});
|
|
4148
|
-
var TraceRecordSchema =
|
|
4149
|
-
id:
|
|
4150
|
-
spaceId:
|
|
4151
|
-
sessionId:
|
|
4198
|
+
var TraceRecordSchema = z40.object({
|
|
4199
|
+
id: z40.string().uuid(),
|
|
4200
|
+
spaceId: z40.string().uuid().nullable(),
|
|
4201
|
+
sessionId: z40.string(),
|
|
4152
4202
|
/** OTP-verified visitor email the session was unlocked with, or `null`
|
|
4153
4203
|
* for an unlocked space / anonymous unlock. */
|
|
4154
|
-
visitorEmail:
|
|
4155
|
-
userPrompt:
|
|
4156
|
-
branch:
|
|
4157
|
-
responseText:
|
|
4158
|
-
layout:
|
|
4159
|
-
phaseTimings:
|
|
4160
|
-
tokensByModel:
|
|
4161
|
-
toolCalls:
|
|
4162
|
-
diagnostics:
|
|
4163
|
-
latencyFirstText:
|
|
4164
|
-
latencyFirstPatch:
|
|
4165
|
-
latencyTotal:
|
|
4204
|
+
visitorEmail: z40.string().nullable(),
|
|
4205
|
+
userPrompt: z40.string(),
|
|
4206
|
+
branch: z40.string().nullable(),
|
|
4207
|
+
responseText: z40.string().nullable(),
|
|
4208
|
+
layout: z40.unknown().nullable(),
|
|
4209
|
+
phaseTimings: z40.record(z40.number()).nullable(),
|
|
4210
|
+
tokensByModel: z40.record(RunTokenUsageSchema).nullable(),
|
|
4211
|
+
toolCalls: z40.array(z40.unknown()).nullable(),
|
|
4212
|
+
diagnostics: z40.array(z40.unknown()).nullable(),
|
|
4213
|
+
latencyFirstText: z40.number().int().nullable(),
|
|
4214
|
+
latencyFirstPatch: z40.number().int().nullable(),
|
|
4215
|
+
latencyTotal: z40.number().int().nullable(),
|
|
4166
4216
|
/**
|
|
4167
4217
|
* The CLIENT's turn id for this run, or `null`.
|
|
4168
4218
|
*
|
|
@@ -4178,29 +4228,29 @@ var TraceRecordSchema = z39.object({
|
|
|
4178
4228
|
* a turn whose ack the client never saw — none of which is evidence that a
|
|
4179
4229
|
* visitor asked something and got nothing.
|
|
4180
4230
|
*/
|
|
4181
|
-
turnId:
|
|
4231
|
+
turnId: z40.string().nullable(),
|
|
4182
4232
|
/** Serialized `TraceTracker.exportState()` payload (parsed object) —
|
|
4183
4233
|
* lets the inspector rehydrate this run verbatim after a reload. */
|
|
4184
|
-
trackerState:
|
|
4185
|
-
createdAt:
|
|
4234
|
+
trackerState: z40.unknown().nullable(),
|
|
4235
|
+
createdAt: z40.string()
|
|
4186
4236
|
});
|
|
4187
|
-
var MillisecondsSchema =
|
|
4188
|
-
var CreateTraceInputSchema =
|
|
4189
|
-
spaceId:
|
|
4190
|
-
sessionId:
|
|
4191
|
-
visitorEmail:
|
|
4192
|
-
userPrompt:
|
|
4193
|
-
branch:
|
|
4194
|
-
responseText:
|
|
4195
|
-
layout:
|
|
4196
|
-
phaseTimings:
|
|
4197
|
-
tokensByModel:
|
|
4198
|
-
toolCalls:
|
|
4199
|
-
diagnostics:
|
|
4237
|
+
var MillisecondsSchema = z40.number().nullable().transform((v) => v === null ? null : Math.round(v));
|
|
4238
|
+
var CreateTraceInputSchema = z40.object({
|
|
4239
|
+
spaceId: z40.string().uuid().nullable(),
|
|
4240
|
+
sessionId: z40.string(),
|
|
4241
|
+
visitorEmail: z40.string().nullable(),
|
|
4242
|
+
userPrompt: z40.string(),
|
|
4243
|
+
branch: z40.string().nullable(),
|
|
4244
|
+
responseText: z40.string().nullable(),
|
|
4245
|
+
layout: z40.unknown().nullable(),
|
|
4246
|
+
phaseTimings: z40.record(z40.number()).nullable(),
|
|
4247
|
+
tokensByModel: z40.record(RunTokenUsageSchema).nullable(),
|
|
4248
|
+
toolCalls: z40.array(z40.unknown()).nullable(),
|
|
4249
|
+
diagnostics: z40.array(z40.unknown()).nullable(),
|
|
4200
4250
|
latencyFirstText: MillisecondsSchema,
|
|
4201
4251
|
latencyFirstPatch: MillisecondsSchema,
|
|
4202
4252
|
latencyTotal: MillisecondsSchema,
|
|
4203
|
-
trackerState:
|
|
4253
|
+
trackerState: z40.unknown().nullable(),
|
|
4204
4254
|
/**
|
|
4205
4255
|
* The CLIENT's turn id for this run, or `null`.
|
|
4206
4256
|
*
|
|
@@ -4216,37 +4266,37 @@ var CreateTraceInputSchema = z39.object({
|
|
|
4216
4266
|
* a turn whose ack the client never saw — none of which is evidence that a
|
|
4217
4267
|
* visitor asked something and got nothing.
|
|
4218
4268
|
*/
|
|
4219
|
-
turnId:
|
|
4269
|
+
turnId: z40.string().nullable()
|
|
4220
4270
|
});
|
|
4221
|
-
var AgentSessionSummarySchema =
|
|
4222
|
-
sessionId:
|
|
4271
|
+
var AgentSessionSummarySchema = z40.object({
|
|
4272
|
+
sessionId: z40.string(),
|
|
4223
4273
|
/** Turn rows only; background/secondary runs are excluded by the aggregate. */
|
|
4224
|
-
turnCount:
|
|
4274
|
+
turnCount: z40.number().int(),
|
|
4225
4275
|
/** The session's opening prompt — titles the row in the UI. */
|
|
4226
|
-
firstPrompt:
|
|
4227
|
-
startedAt:
|
|
4228
|
-
lastRunAt:
|
|
4276
|
+
firstPrompt: z40.string(),
|
|
4277
|
+
startedAt: z40.string(),
|
|
4278
|
+
lastRunAt: z40.string(),
|
|
4229
4279
|
/** Summed `latency_total` across the session's turns. */
|
|
4230
|
-
totalLatencyMs:
|
|
4280
|
+
totalLatencyMs: z40.number().int()
|
|
4231
4281
|
});
|
|
4232
|
-
var SessionTurnSchema =
|
|
4233
|
-
id:
|
|
4234
|
-
userPrompt:
|
|
4235
|
-
responseText:
|
|
4282
|
+
var SessionTurnSchema = z40.object({
|
|
4283
|
+
id: z40.string().uuid(),
|
|
4284
|
+
userPrompt: z40.string(),
|
|
4285
|
+
responseText: z40.string().nullable(),
|
|
4236
4286
|
/** Full cumulative Spec committed by this turn — never a patch delta. */
|
|
4237
|
-
layout:
|
|
4238
|
-
createdAt:
|
|
4239
|
-
latencyTotal:
|
|
4240
|
-
phaseTimings:
|
|
4241
|
-
tokensByModel:
|
|
4242
|
-
input_tokens:
|
|
4243
|
-
output_tokens:
|
|
4287
|
+
layout: z40.unknown().nullable(),
|
|
4288
|
+
createdAt: z40.string(),
|
|
4289
|
+
latencyTotal: z40.number().int().nullable(),
|
|
4290
|
+
phaseTimings: z40.record(z40.number()).nullable(),
|
|
4291
|
+
tokensByModel: z40.record(z40.object({
|
|
4292
|
+
input_tokens: z40.number().optional(),
|
|
4293
|
+
output_tokens: z40.number().optional()
|
|
4244
4294
|
})).nullable(),
|
|
4245
|
-
toolCalls:
|
|
4246
|
-
diagnostics:
|
|
4295
|
+
toolCalls: z40.array(z40.unknown()).nullable(),
|
|
4296
|
+
diagnostics: z40.array(z40.unknown()).nullable()
|
|
4247
4297
|
});
|
|
4248
|
-
var SessionReplaySchema =
|
|
4249
|
-
turns:
|
|
4298
|
+
var SessionReplaySchema = z40.object({
|
|
4299
|
+
turns: z40.array(SessionTurnSchema),
|
|
4250
4300
|
/**
|
|
4251
4301
|
* The session's own last-committed layout, read straight off the durable
|
|
4252
4302
|
* session record (`sessions.blob.layout`) rather than derived from `turns`.
|
|
@@ -4257,20 +4307,20 @@ var SessionReplaySchema = z39.object({
|
|
|
4257
4307
|
* a perfectly real layout; only this field can show it. Null exclusively
|
|
4258
4308
|
* when the durable session row itself could not be read.
|
|
4259
4309
|
*/
|
|
4260
|
-
sessionLayout:
|
|
4310
|
+
sessionLayout: z40.record(z40.string(), z40.unknown()).nullable()
|
|
4261
4311
|
});
|
|
4262
|
-
var SessionTraceSchema =
|
|
4263
|
-
trackerState:
|
|
4312
|
+
var SessionTraceSchema = z40.object({
|
|
4313
|
+
trackerState: z40.string().nullable()
|
|
4264
4314
|
});
|
|
4265
|
-
var LlmUsageDailySchema =
|
|
4266
|
-
day:
|
|
4315
|
+
var LlmUsageDailySchema = z40.object({
|
|
4316
|
+
day: z40.string(),
|
|
4267
4317
|
/** Deployment that made the call — 'production', 'staging', 'pr-123', 'development'. */
|
|
4268
|
-
environment:
|
|
4269
|
-
feature:
|
|
4270
|
-
model:
|
|
4271
|
-
provider:
|
|
4318
|
+
environment: z40.string(),
|
|
4319
|
+
feature: z40.string(),
|
|
4320
|
+
model: z40.string(),
|
|
4321
|
+
provider: z40.string(),
|
|
4272
4322
|
/** Masked tail of the key actually billed, or null when unknown/non-Google. */
|
|
4273
|
-
keyFingerprint:
|
|
4323
|
+
keyFingerprint: z40.string().nullable(),
|
|
4274
4324
|
/**
|
|
4275
4325
|
* The space the call served, or null when it served none.
|
|
4276
4326
|
*
|
|
@@ -4279,91 +4329,91 @@ var LlmUsageDailySchema = z39.object({
|
|
|
4279
4329
|
* report that share rather than dropping it, or a per-space total reads as
|
|
4280
4330
|
* the platform total.
|
|
4281
4331
|
*/
|
|
4282
|
-
spaceId:
|
|
4332
|
+
spaceId: z40.string().nullable(),
|
|
4283
4333
|
/**
|
|
4284
4334
|
* The surface of the session the call served (`sessions.surface`), or null
|
|
4285
4335
|
* when it served no session or the session predates surface recording.
|
|
4286
4336
|
* `automation` is the eval harness — the signal that files an ordinary
|
|
4287
4337
|
* `agent-turn` as testing spend rather than as a visitor's.
|
|
4288
4338
|
*/
|
|
4289
|
-
surface:
|
|
4290
|
-
inputTokens:
|
|
4291
|
-
outputTokens:
|
|
4339
|
+
surface: z40.string().nullable(),
|
|
4340
|
+
inputTokens: z40.number(),
|
|
4341
|
+
outputTokens: z40.number(),
|
|
4292
4342
|
/** Subset of inputTokens, never additional to it. */
|
|
4293
|
-
cachedInputTokens:
|
|
4294
|
-
reasoningTokens:
|
|
4295
|
-
callCount:
|
|
4296
|
-
errorCount:
|
|
4297
|
-
estimatedCostUsd:
|
|
4343
|
+
cachedInputTokens: z40.number(),
|
|
4344
|
+
reasoningTokens: z40.number(),
|
|
4345
|
+
callCount: z40.number(),
|
|
4346
|
+
errorCount: z40.number(),
|
|
4347
|
+
estimatedCostUsd: z40.number().nullable()
|
|
4298
4348
|
});
|
|
4299
|
-
var LlmUsageBySessionSchema =
|
|
4300
|
-
sessionId:
|
|
4301
|
-
environment:
|
|
4302
|
-
model:
|
|
4349
|
+
var LlmUsageBySessionSchema = z40.object({
|
|
4350
|
+
sessionId: z40.string(),
|
|
4351
|
+
environment: z40.string(),
|
|
4352
|
+
model: z40.string(),
|
|
4303
4353
|
/** The space this session belongs to, or null for a session with no space. */
|
|
4304
|
-
spaceId:
|
|
4354
|
+
spaceId: z40.string().nullable(),
|
|
4305
4355
|
/** The session's surface — see `LlmUsageDailySchema.surface`. */
|
|
4306
|
-
surface:
|
|
4356
|
+
surface: z40.string().nullable(),
|
|
4307
4357
|
/** Label only — the first feature seen in the session. */
|
|
4308
|
-
firstFeature:
|
|
4309
|
-
startedAt:
|
|
4310
|
-
endedAt:
|
|
4311
|
-
inputTokens:
|
|
4312
|
-
outputTokens:
|
|
4313
|
-
cachedInputTokens:
|
|
4314
|
-
reasoningTokens:
|
|
4315
|
-
callCount:
|
|
4316
|
-
errorCount:
|
|
4358
|
+
firstFeature: z40.string(),
|
|
4359
|
+
startedAt: z40.string(),
|
|
4360
|
+
endedAt: z40.string(),
|
|
4361
|
+
inputTokens: z40.number(),
|
|
4362
|
+
outputTokens: z40.number(),
|
|
4363
|
+
cachedInputTokens: z40.number(),
|
|
4364
|
+
reasoningTokens: z40.number(),
|
|
4365
|
+
callCount: z40.number(),
|
|
4366
|
+
errorCount: z40.number(),
|
|
4317
4367
|
/** Priced server-side, like the daily rollup — the browser never carries a
|
|
4318
4368
|
* rate table, so there is exactly one place a price can be wrong. Null when
|
|
4319
4369
|
* the model is unpriced; never 0, which would read as free. */
|
|
4320
|
-
estimatedCostUsd:
|
|
4370
|
+
estimatedCostUsd: z40.number().nullable()
|
|
4321
4371
|
});
|
|
4322
|
-
var LlmSessionsDailySchema =
|
|
4323
|
-
day:
|
|
4324
|
-
environment:
|
|
4325
|
-
sessionCount:
|
|
4372
|
+
var LlmSessionsDailySchema = z40.object({
|
|
4373
|
+
day: z40.string(),
|
|
4374
|
+
environment: z40.string(),
|
|
4375
|
+
sessionCount: z40.number()
|
|
4326
4376
|
});
|
|
4327
4377
|
|
|
4328
4378
|
// ../spacestation/src/space/session-queue.ts
|
|
4329
|
-
import { z as
|
|
4379
|
+
import { z as z42 } from "zod";
|
|
4330
4380
|
|
|
4331
4381
|
// ../spacestation/src/space/session-activity.ts
|
|
4332
|
-
import { z as
|
|
4333
|
-
var SessionActivityEventSchema =
|
|
4334
|
-
id:
|
|
4335
|
-
kind:
|
|
4336
|
-
occurredAt:
|
|
4337
|
-
source:
|
|
4338
|
-
surface:
|
|
4339
|
-
payload:
|
|
4382
|
+
import { z as z41 } from "zod";
|
|
4383
|
+
var SessionActivityEventSchema = z41.object({
|
|
4384
|
+
id: z41.string(),
|
|
4385
|
+
kind: z41.string(),
|
|
4386
|
+
occurredAt: z41.string(),
|
|
4387
|
+
source: z41.string(),
|
|
4388
|
+
surface: z41.string(),
|
|
4389
|
+
payload: z41.record(z41.unknown())
|
|
4340
4390
|
});
|
|
4341
|
-
var SessionActivitySchema =
|
|
4342
|
-
events:
|
|
4343
|
-
hasMore:
|
|
4391
|
+
var SessionActivitySchema = z41.object({
|
|
4392
|
+
events: z41.array(SessionActivityEventSchema),
|
|
4393
|
+
hasMore: z41.boolean()
|
|
4344
4394
|
});
|
|
4345
4395
|
|
|
4346
4396
|
// ../spacestation/src/space/session-queue.ts
|
|
4347
|
-
var SessionVerdictSchema =
|
|
4348
|
-
var RecordableVerdictSchema =
|
|
4349
|
-
var SessionReviewEventSchema =
|
|
4350
|
-
id:
|
|
4397
|
+
var SessionVerdictSchema = z42.enum(["unreviewed", "viewed", "bug"]);
|
|
4398
|
+
var RecordableVerdictSchema = z42.enum(["viewed", "bug"]);
|
|
4399
|
+
var SessionReviewEventSchema = z42.object({
|
|
4400
|
+
id: z42.string().uuid(),
|
|
4351
4401
|
verdict: RecordableVerdictSchema,
|
|
4352
4402
|
/** Account email of the operator who judged it. Attribution is the reason the
|
|
4353
4403
|
* log is append-only rather than a mutable current-state row. */
|
|
4354
|
-
reviewer:
|
|
4355
|
-
note:
|
|
4356
|
-
createdAt:
|
|
4404
|
+
reviewer: z42.string(),
|
|
4405
|
+
note: z42.string().nullable(),
|
|
4406
|
+
createdAt: z42.string()
|
|
4357
4407
|
});
|
|
4358
|
-
var BugSeveritySchema =
|
|
4359
|
-
var BugLocationSchema =
|
|
4360
|
-
elementId:
|
|
4408
|
+
var BugSeveritySchema = z42.enum(["high", "medium", "low"]);
|
|
4409
|
+
var BugLocationSchema = z42.object({
|
|
4410
|
+
elementId: z42.string().nullable(),
|
|
4361
4411
|
/** Display only — the catalog component type, e.g. "productGrid". Null
|
|
4362
4412
|
* alongside a null `elementId`. */
|
|
4363
|
-
elementType:
|
|
4413
|
+
elementType: z42.string().nullable(),
|
|
4364
4414
|
/** Fraction of the ELEMENT's own box. Null for a page anchor. */
|
|
4365
|
-
offsetXPct:
|
|
4366
|
-
offsetYPct:
|
|
4415
|
+
offsetXPct: z42.number().min(0).max(100).nullable(),
|
|
4416
|
+
offsetYPct: z42.number().min(0).max(100).nullable(),
|
|
4367
4417
|
/**
|
|
4368
4418
|
* ABSOLUTE document pixels, for a pin with no element under it. Null for an
|
|
4369
4419
|
* element anchor.
|
|
@@ -4374,8 +4424,8 @@ var BugLocationSchema = z41.object({
|
|
|
4374
4424
|
* on the page with it. Measured before this was fixed: growing the page 9%
|
|
4375
4425
|
* slid a pin 32px, so a pin ran away from the cursor reaching for it.
|
|
4376
4426
|
*/
|
|
4377
|
-
pageX:
|
|
4378
|
-
pageY:
|
|
4427
|
+
pageX: z42.number().nullable(),
|
|
4428
|
+
pageY: z42.number().nullable()
|
|
4379
4429
|
}).refine(
|
|
4380
4430
|
(loc) => {
|
|
4381
4431
|
const hasOffsets = loc.offsetXPct !== null && loc.offsetYPct !== null;
|
|
@@ -4389,24 +4439,24 @@ var BugLocationSchema = z41.object({
|
|
|
4389
4439
|
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)"
|
|
4390
4440
|
}
|
|
4391
4441
|
);
|
|
4392
|
-
var SessionBugSchema =
|
|
4393
|
-
id:
|
|
4442
|
+
var SessionBugSchema = z42.object({
|
|
4443
|
+
id: z42.string().uuid(),
|
|
4394
4444
|
/** 1-based turn the fault was observed on; null when the fault is session-wide. */
|
|
4395
|
-
turnIndex:
|
|
4445
|
+
turnIndex: z42.number().int().nullable(),
|
|
4396
4446
|
/** Where on that turn's canvas the pin was dropped; null for a bug filed
|
|
4397
4447
|
* without pinning a spot. */
|
|
4398
4448
|
location: BugLocationSchema.nullable(),
|
|
4399
|
-
provider:
|
|
4400
|
-
issueKey:
|
|
4401
|
-
issueUrl:
|
|
4449
|
+
provider: z42.string(),
|
|
4450
|
+
issueKey: z42.string().nullable(),
|
|
4451
|
+
issueUrl: z42.string().nullable(),
|
|
4402
4452
|
/** The tracker's own state word ('Todo', 'Done', …) — their vocabulary, so
|
|
4403
4453
|
* open text. Null until first synced. */
|
|
4404
|
-
issueState:
|
|
4405
|
-
title:
|
|
4406
|
-
body:
|
|
4454
|
+
issueState: z42.string().nullable(),
|
|
4455
|
+
title: z42.string(),
|
|
4456
|
+
body: z42.string(),
|
|
4407
4457
|
severity: BugSeveritySchema,
|
|
4408
|
-
createdBy:
|
|
4409
|
-
createdAt:
|
|
4458
|
+
createdBy: z42.string(),
|
|
4459
|
+
createdAt: z42.string(),
|
|
4410
4460
|
/**
|
|
4411
4461
|
* When this bug was resolved from the console; null means still OPEN.
|
|
4412
4462
|
*
|
|
@@ -4415,60 +4465,60 @@ var SessionBugSchema = z41.object({
|
|
|
4415
4465
|
* whether a particular fault is still live. The timestamp IS the state, so
|
|
4416
4466
|
* no boolean can contradict it.
|
|
4417
4467
|
*/
|
|
4418
|
-
resolvedAt:
|
|
4419
|
-
resolvedBy:
|
|
4468
|
+
resolvedAt: z42.string().nullable(),
|
|
4469
|
+
resolvedBy: z42.string().nullable()
|
|
4420
4470
|
});
|
|
4421
|
-
var SpaceBugSchema = SessionBugSchema.extend({ sessionId:
|
|
4422
|
-
var SessionCommentSchema =
|
|
4423
|
-
id:
|
|
4471
|
+
var SpaceBugSchema = SessionBugSchema.extend({ sessionId: z42.string() });
|
|
4472
|
+
var SessionCommentSchema = z42.object({
|
|
4473
|
+
id: z42.string().uuid(),
|
|
4424
4474
|
/** Set = a reply in that bug's thread. Null = a standalone comment pin. */
|
|
4425
|
-
bugId:
|
|
4475
|
+
bugId: z42.string().uuid().nullable(),
|
|
4426
4476
|
/** 1-based turn the comment was left on; null for a reply (it reads its
|
|
4427
4477
|
* parent bug's turn). */
|
|
4428
|
-
turnIndex:
|
|
4478
|
+
turnIndex: z42.number().int().nullable(),
|
|
4429
4479
|
/** The canvas anchor for a STANDALONE comment's own pin; null for a reply. */
|
|
4430
4480
|
location: BugLocationSchema.nullable(),
|
|
4431
|
-
body:
|
|
4432
|
-
createdBy:
|
|
4433
|
-
createdAt:
|
|
4481
|
+
body: z42.string(),
|
|
4482
|
+
createdBy: z42.string(),
|
|
4483
|
+
createdAt: z42.string()
|
|
4434
4484
|
});
|
|
4435
|
-
var CreateCommentInputSchema =
|
|
4436
|
-
bugId:
|
|
4437
|
-
turnIndex:
|
|
4485
|
+
var CreateCommentInputSchema = z42.object({
|
|
4486
|
+
bugId: z42.string().uuid().nullable(),
|
|
4487
|
+
turnIndex: z42.number().int().positive().nullable(),
|
|
4438
4488
|
location: BugLocationSchema.nullable(),
|
|
4439
4489
|
// Trimmed, so whitespace is not content: `.min(1)` alone accepted a comment
|
|
4440
4490
|
// of three spaces, which renders as an empty bubble nobody can interpret.
|
|
4441
|
-
body:
|
|
4491
|
+
body: z42.string().trim().min(1)
|
|
4442
4492
|
}).refine((input) => input.bugId === null !== (input.location === null), {
|
|
4443
4493
|
message: "a comment is either a reply (bugId, no location) or a standalone pin (location, no bugId)"
|
|
4444
4494
|
});
|
|
4445
|
-
var UpdateCommentInputSchema =
|
|
4446
|
-
body:
|
|
4447
|
-
bugId:
|
|
4495
|
+
var UpdateCommentInputSchema = z42.object({
|
|
4496
|
+
body: z42.string().trim().min(1).optional(),
|
|
4497
|
+
bugId: z42.string().uuid().nullable().optional(),
|
|
4448
4498
|
location: BugLocationSchema.nullable().optional()
|
|
4449
4499
|
});
|
|
4450
4500
|
var MOBILE_VIEWPORT_MAX = 720;
|
|
4451
|
-
var SessionFormFactorSchema =
|
|
4501
|
+
var SessionFormFactorSchema = z42.enum(["mobile", "desktop"]).nullable();
|
|
4452
4502
|
function formFactorFromViewport(width) {
|
|
4453
4503
|
if (width === null) return null;
|
|
4454
4504
|
return width <= MOBILE_VIEWPORT_MAX ? "mobile" : "desktop";
|
|
4455
4505
|
}
|
|
4456
|
-
var SessionSummarySchema =
|
|
4457
|
-
sessionId:
|
|
4506
|
+
var SessionSummarySchema = z42.object({
|
|
4507
|
+
sessionId: z42.string(),
|
|
4458
4508
|
/** Stable per-browser id — the join key across a visitor's sessions. Null when
|
|
4459
4509
|
* the session row is gone (pruned) or predates the `sessions` table. */
|
|
4460
|
-
visitorId:
|
|
4510
|
+
visitorId: z42.string().nullable(),
|
|
4461
4511
|
/** Provider-qualified identity anchor, present only once the visitor
|
|
4462
4512
|
* identified themselves. Both null together means "not identified yet". */
|
|
4463
|
-
identityProvider:
|
|
4464
|
-
identityKey:
|
|
4513
|
+
identityProvider: z42.string().nullable(),
|
|
4514
|
+
identityKey: z42.string().nullable(),
|
|
4465
4515
|
/** Team/test traffic. The queue hides these by default. */
|
|
4466
|
-
isInternal:
|
|
4516
|
+
isInternal: z42.boolean(),
|
|
4467
4517
|
/** Build that served the session. Null = not captured; a version filter must
|
|
4468
4518
|
* therefore EXCLUDE it rather than let it match an arbitrary bucket. */
|
|
4469
|
-
clientVersion:
|
|
4519
|
+
clientVersion: z42.string().nullable(),
|
|
4470
4520
|
/** Commit-shaped interaction signals, counted, keyed by open `SignalType`. */
|
|
4471
|
-
signalCounts:
|
|
4521
|
+
signalCounts: z42.record(z42.number()),
|
|
4472
4522
|
/**
|
|
4473
4523
|
* Did this conversation ACQUIRE anything, and how many times?
|
|
4474
4524
|
*
|
|
@@ -4485,7 +4535,7 @@ var SessionSummarySchema = z41.object({
|
|
|
4485
4535
|
* predates the column — and renders as no mark at all. It never means zero:
|
|
4486
4536
|
* zero is a real, recorded answer and the rail reports it as one.
|
|
4487
4537
|
*/
|
|
4488
|
-
conversionAttempts:
|
|
4538
|
+
conversionAttempts: z42.number().int().nullable(),
|
|
4489
4539
|
/**
|
|
4490
4540
|
* The same attempts split by EVENT KIND, keyed by the kind's own name
|
|
4491
4541
|
* (`commerce.cart_line_added`, `commerce.registry_clicked`), counted distinct
|
|
@@ -4501,7 +4551,7 @@ var SessionSummarySchema = z41.object({
|
|
|
4501
4551
|
* kinds together, and one attempt id appearing under both would be counted
|
|
4502
4552
|
* once there and twice here.
|
|
4503
4553
|
*/
|
|
4504
|
-
conversionKinds:
|
|
4554
|
+
conversionKinds: z42.record(z42.number()),
|
|
4505
4555
|
/**
|
|
4506
4556
|
* Every analytics funnel step this session reached, in funnel order — the
|
|
4507
4557
|
* dashboard's own step ids, read by the same per-step predicates, so a queue
|
|
@@ -4509,20 +4559,20 @@ var SessionSummarySchema = z41.object({
|
|
|
4509
4559
|
* set of strings for the reason `conversionKinds` is: the contract does not
|
|
4510
4560
|
* learn what a step means. Empty only when read from a pre-column database.
|
|
4511
4561
|
*/
|
|
4512
|
-
funnelSteps:
|
|
4562
|
+
funnelSteps: z42.array(z42.string()),
|
|
4513
4563
|
/**
|
|
4514
4564
|
* The connector's opaque handle for what this session produced in its back
|
|
4515
4565
|
* office — present only once a checkout actually reached the platform. The
|
|
4516
4566
|
* console hands it to the back-office link registry; nothing else reads it.
|
|
4517
4567
|
*/
|
|
4518
|
-
backOfficeRef:
|
|
4568
|
+
backOfficeRef: z42.string().nullable(),
|
|
4519
4569
|
/**
|
|
4520
4570
|
* The order this session produced, when the connector's back office reported
|
|
4521
4571
|
* it (`session_orders`): its opaque id and the back office's own name for it.
|
|
4522
4572
|
* Both null when no order is known — the cart handle above is then the door.
|
|
4523
4573
|
*/
|
|
4524
|
-
orderRef:
|
|
4525
|
-
orderLabel:
|
|
4574
|
+
orderRef: z42.string().nullable(),
|
|
4575
|
+
orderLabel: z42.string().nullable(),
|
|
4526
4576
|
/**
|
|
4527
4577
|
* Which shell this session rendered — the one thing about the CAPTURE a list
|
|
4528
4578
|
* needs.
|
|
@@ -4535,12 +4585,12 @@ var SessionSummarySchema = z41.object({
|
|
|
4535
4585
|
* on a desktop are not the same session.
|
|
4536
4586
|
*/
|
|
4537
4587
|
formFactor: SessionFormFactorSchema,
|
|
4538
|
-
turnCount:
|
|
4588
|
+
turnCount: z42.number().int(),
|
|
4539
4589
|
/** The visitor's opening message — the single most informative field for
|
|
4540
4590
|
* deciding whether a session is worth opening, hence the widest column. */
|
|
4541
|
-
firstPrompt:
|
|
4542
|
-
startedAt:
|
|
4543
|
-
lastRunAt:
|
|
4591
|
+
firstPrompt: z42.string(),
|
|
4592
|
+
startedAt: z42.string(),
|
|
4593
|
+
lastRunAt: z42.string(),
|
|
4544
4594
|
/**
|
|
4545
4595
|
* The VISITOR's own IANA zone (`America/New_York`), read from their browser
|
|
4546
4596
|
* at session create — what the two timestamps above should be read in.
|
|
@@ -4568,7 +4618,7 @@ var SessionSummarySchema = z41.object({
|
|
|
4568
4618
|
* Client-asserted and never validated against a zone table, so every consumer
|
|
4569
4619
|
* must tolerate an unknown name: `Intl` throws a RangeError on one.
|
|
4570
4620
|
*/
|
|
4571
|
-
visitorTimeZone:
|
|
4621
|
+
visitorTimeZone: z42.string().nullable(),
|
|
4572
4622
|
/**
|
|
4573
4623
|
* Mean TIME TO FIRST PATCH, over the turns that recorded one — the first
|
|
4574
4624
|
* layout op reaching the visitor, and THE latency the project is managed on.
|
|
@@ -4576,31 +4626,31 @@ var SessionSummarySchema = z41.object({
|
|
|
4576
4626
|
* `totalLatencyMs` carries the chip-gen tail that runs after the visitor is
|
|
4577
4627
|
* already reading. Null when no turn in the session recorded a patch.
|
|
4578
4628
|
*/
|
|
4579
|
-
avgTtftMs:
|
|
4629
|
+
avgTtftMs: z42.number().int().nullable(),
|
|
4580
4630
|
/** Mean `main_done_ms` — layout + prose complete. Context for the TTFT, not
|
|
4581
4631
|
* a budget: null on sessions older than the mark's recording. */
|
|
4582
|
-
avgMainDoneMs:
|
|
4632
|
+
avgMainDoneMs: z42.number().int().nullable(),
|
|
4583
4633
|
/** Mean `chip_gen_ms` — the pass that runs AFTER mainDone and is out of the
|
|
4584
4634
|
* budget. On the row only to explain the gap to `totalLatencyMs`. */
|
|
4585
|
-
avgChipGenMs:
|
|
4586
|
-
totalLatencyMs:
|
|
4587
|
-
durationMs:
|
|
4635
|
+
avgChipGenMs: z42.number().int().nullable(),
|
|
4636
|
+
totalLatencyMs: z42.number().int(),
|
|
4637
|
+
durationMs: z42.number().int(),
|
|
4588
4638
|
/** Inferred from recent activity — nothing writes a session-end marker. A
|
|
4589
4639
|
* live session streams and cannot be given a verdict until it ends. */
|
|
4590
|
-
isLive:
|
|
4640
|
+
isLive: z42.boolean(),
|
|
4591
4641
|
verdict: SessionVerdictSchema,
|
|
4592
|
-
reviewedBy:
|
|
4593
|
-
reviewedAt:
|
|
4642
|
+
reviewedBy: z42.string().nullable(),
|
|
4643
|
+
reviewedAt: z42.string().nullable(),
|
|
4594
4644
|
/** Latest filed bug, flattened onto the row so the queue can show its live
|
|
4595
4645
|
* state without a second request. */
|
|
4596
|
-
bugIssueKey:
|
|
4597
|
-
bugIssueUrl:
|
|
4598
|
-
bugIssueState:
|
|
4646
|
+
bugIssueKey: z42.string().nullable(),
|
|
4647
|
+
bugIssueUrl: z42.string().nullable(),
|
|
4648
|
+
bugIssueState: z42.string().nullable()
|
|
4599
4649
|
});
|
|
4600
|
-
var SessionQueuePageSchema =
|
|
4601
|
-
sessions:
|
|
4602
|
-
totalCount:
|
|
4603
|
-
hiddenInternalCount:
|
|
4650
|
+
var SessionQueuePageSchema = z42.object({
|
|
4651
|
+
sessions: z42.array(SessionSummarySchema),
|
|
4652
|
+
totalCount: z42.number().int(),
|
|
4653
|
+
hiddenInternalCount: z42.number().int(),
|
|
4604
4654
|
/**
|
|
4605
4655
|
* Bounced sessions the queue left out — no turn and no add, the default.
|
|
4606
4656
|
*
|
|
@@ -4610,61 +4660,61 @@ var SessionQueuePageSchema = z41.object({
|
|
|
4610
4660
|
* `totalCount + hiddenBouncedCount` is that population, and this count is the
|
|
4611
4661
|
* analytics dashboard's bounce over the same window.
|
|
4612
4662
|
*/
|
|
4613
|
-
hiddenBouncedCount:
|
|
4663
|
+
hiddenBouncedCount: z42.number().int()
|
|
4614
4664
|
});
|
|
4615
|
-
var SessionQueueFacetsSchema =
|
|
4616
|
-
review:
|
|
4617
|
-
version:
|
|
4618
|
-
turns:
|
|
4619
|
-
durationS:
|
|
4665
|
+
var SessionQueueFacetsSchema = z42.object({
|
|
4666
|
+
review: z42.record(z42.number()),
|
|
4667
|
+
version: z42.record(z42.number()),
|
|
4668
|
+
turns: z42.record(z42.number()),
|
|
4669
|
+
durationS: z42.record(z42.number()),
|
|
4620
4670
|
/** Sessions per funnel step reached — a session counts under every step it reached. */
|
|
4621
|
-
funnel:
|
|
4671
|
+
funnel: z42.record(z42.number())
|
|
4622
4672
|
});
|
|
4623
|
-
var SessionCaptureSchema =
|
|
4624
|
-
viewportWidth:
|
|
4625
|
-
viewportHeight:
|
|
4626
|
-
userAgent:
|
|
4627
|
-
locale:
|
|
4673
|
+
var SessionCaptureSchema = z42.object({
|
|
4674
|
+
viewportWidth: z42.number().int().nullable(),
|
|
4675
|
+
viewportHeight: z42.number().int().nullable(),
|
|
4676
|
+
userAgent: z42.string().nullable(),
|
|
4677
|
+
locale: z42.string().nullable(),
|
|
4628
4678
|
/** Referrer at session create — separates agentic traffic from organic. */
|
|
4629
|
-
referrer:
|
|
4679
|
+
referrer: z42.string().nullable()
|
|
4630
4680
|
});
|
|
4631
|
-
var SessionCaptureInputSchema =
|
|
4632
|
-
viewportWidth:
|
|
4633
|
-
viewportHeight:
|
|
4634
|
-
userAgent:
|
|
4635
|
-
locale:
|
|
4681
|
+
var SessionCaptureInputSchema = z42.object({
|
|
4682
|
+
viewportWidth: z42.number().int().positive().max(2e4).optional(),
|
|
4683
|
+
viewportHeight: z42.number().int().positive().max(2e4).optional(),
|
|
4684
|
+
userAgent: z42.string().max(1e3).optional(),
|
|
4685
|
+
locale: z42.string().max(35).optional(),
|
|
4636
4686
|
/** IANA zone name from the visitor's browser. Bounded rather than validated:
|
|
4637
4687
|
* the zone database grows, and refusing a name this build has not heard of
|
|
4638
4688
|
* would drop a real session's capture over a table that is out of date. */
|
|
4639
|
-
timeZone:
|
|
4640
|
-
referrer:
|
|
4641
|
-
clientVersion:
|
|
4642
|
-
isInternal:
|
|
4689
|
+
timeZone: z42.string().max(64).optional(),
|
|
4690
|
+
referrer: z42.string().max(2048).optional(),
|
|
4691
|
+
clientVersion: z42.string().max(100).optional(),
|
|
4692
|
+
isInternal: z42.boolean().optional()
|
|
4643
4693
|
});
|
|
4644
|
-
var SessionDetailSchema =
|
|
4694
|
+
var SessionDetailSchema = z42.object({
|
|
4645
4695
|
session: SessionSummarySchema,
|
|
4646
4696
|
capture: SessionCaptureSchema,
|
|
4647
4697
|
/** Full verdict history, newest first. Verdicts are revisable, and a session
|
|
4648
4698
|
* re-judged after a fix is the evidence the fix worked. */
|
|
4649
|
-
reviews:
|
|
4650
|
-
bugs:
|
|
4651
|
-
comments:
|
|
4699
|
+
reviews: z42.array(SessionReviewEventSchema),
|
|
4700
|
+
bugs: z42.array(SessionBugSchema),
|
|
4701
|
+
comments: z42.array(SessionCommentSchema),
|
|
4652
4702
|
/** Optional during API/console rolling deployment. Absent is unavailable,
|
|
4653
4703
|
* not evidence of zero visitor activity. */
|
|
4654
4704
|
activity: SessionActivitySchema.optional()
|
|
4655
4705
|
});
|
|
4656
|
-
var RecordVerdictInputSchema =
|
|
4706
|
+
var RecordVerdictInputSchema = z42.object({
|
|
4657
4707
|
verdict: RecordableVerdictSchema,
|
|
4658
|
-
note:
|
|
4708
|
+
note: z42.string().max(2e3).optional()
|
|
4659
4709
|
});
|
|
4660
|
-
var FileBugInputSchema =
|
|
4661
|
-
turnIndex:
|
|
4710
|
+
var FileBugInputSchema = z42.object({
|
|
4711
|
+
turnIndex: z42.number().int().positive().nullable(),
|
|
4662
4712
|
/** Optional — a bug filed without dropping a pin has no location. */
|
|
4663
4713
|
location: BugLocationSchema.nullable().optional(),
|
|
4664
|
-
title:
|
|
4665
|
-
body:
|
|
4714
|
+
title: z42.string().min(1).max(300),
|
|
4715
|
+
body: z42.string().min(1),
|
|
4666
4716
|
severity: BugSeveritySchema,
|
|
4667
|
-
payload:
|
|
4717
|
+
payload: z42.record(z42.unknown())
|
|
4668
4718
|
});
|
|
4669
4719
|
|
|
4670
4720
|
// ../spacestation/src/contracts/retrieval/ecommerce/option-values.ts
|
|
@@ -4951,6 +5001,7 @@ __export(src_exports2, {
|
|
|
4951
5001
|
ReviewSchema: () => ReviewSchema,
|
|
4952
5002
|
SelectedOptionSchema: () => SelectedOptionSchema,
|
|
4953
5003
|
SiblingProductSchema: () => SiblingProductSchema,
|
|
5004
|
+
StoreThemeAccessError: () => StoreThemeAccessError,
|
|
4954
5005
|
VideoSourceSchema: () => VideoSourceSchema,
|
|
4955
5006
|
buildBaseAttributesConfig: () => buildBaseAttributesConfig,
|
|
4956
5007
|
buildBucketLabelsConfig: () => buildBucketLabelsConfig,
|
|
@@ -4960,6 +5011,7 @@ __export(src_exports2, {
|
|
|
4960
5011
|
cartLinesForProduct: () => cartLinesForProduct,
|
|
4961
5012
|
clearCodeDiscountSources: () => clearCodeDiscountSources,
|
|
4962
5013
|
clearProductNameLookups: () => clearProductNameLookups,
|
|
5014
|
+
clearStoreThemeSources: () => clearStoreThemeSources,
|
|
4963
5015
|
createUnavailableProduct: () => createUnavailableProduct,
|
|
4964
5016
|
entityProjections: () => entityProjections,
|
|
4965
5017
|
formatVariantValue: () => formatVariantValue,
|
|
@@ -4978,68 +5030,70 @@ __export(src_exports2, {
|
|
|
4978
5030
|
readPdpCompanions: () => readPdpCompanions,
|
|
4979
5031
|
registerCodeDiscountSource: () => registerCodeDiscountSource,
|
|
4980
5032
|
registerProductNameLookup: () => registerProductNameLookup,
|
|
5033
|
+
registerStoreThemeSource: () => registerStoreThemeSource,
|
|
4981
5034
|
resolveCodeDiscountSource: () => resolveCodeDiscountSource,
|
|
4982
5035
|
resolveProductNameLookup: () => resolveProductNameLookup,
|
|
5036
|
+
resolveStoreThemeSource: () => resolveStoreThemeSource,
|
|
4983
5037
|
scopedAttributeKey: () => scopedAttributeKey,
|
|
4984
5038
|
selectedOptionsToRecord: () => selectedOptionsToRecord,
|
|
4985
5039
|
settledCart: () => settledCart
|
|
4986
5040
|
});
|
|
4987
5041
|
|
|
4988
5042
|
// ../ecommerce/src/commerce-schemas.ts
|
|
4989
|
-
import { z as
|
|
4990
|
-
var MoneySchema =
|
|
4991
|
-
amount:
|
|
4992
|
-
currencyCode:
|
|
5043
|
+
import { z as z43 } from "zod";
|
|
5044
|
+
var MoneySchema = z43.object({
|
|
5045
|
+
amount: z43.number(),
|
|
5046
|
+
currencyCode: z43.string()
|
|
4993
5047
|
});
|
|
4994
|
-
var ImageSchema =
|
|
4995
|
-
url:
|
|
4996
|
-
altText:
|
|
4997
|
-
width:
|
|
4998
|
-
height:
|
|
5048
|
+
var ImageSchema = z43.object({
|
|
5049
|
+
url: z43.string(),
|
|
5050
|
+
altText: z43.string(),
|
|
5051
|
+
width: z43.number().optional(),
|
|
5052
|
+
height: z43.number().optional(),
|
|
4999
5053
|
/** Responsive candidate set, resolved at the commerce-adapter boundary —
|
|
5000
5054
|
* never computed in a component. Renderers use it as `<img srcSet>` paired
|
|
5001
5055
|
* with a layout `sizes`. Absent for non-CDN / unsizable images. */
|
|
5002
|
-
srcSet:
|
|
5056
|
+
srcSet: z43.string().optional()
|
|
5003
5057
|
});
|
|
5004
|
-
var AssetSchema =
|
|
5058
|
+
var AssetSchema = z43.object({
|
|
5005
5059
|
/** Opaque asset id — the `resolved()` ref the agent emitted. */
|
|
5006
|
-
id:
|
|
5007
|
-
url:
|
|
5008
|
-
altText:
|
|
5009
|
-
srcSet:
|
|
5060
|
+
id: z43.string(),
|
|
5061
|
+
url: z43.string(),
|
|
5062
|
+
altText: z43.string(),
|
|
5063
|
+
srcSet: z43.string().optional()
|
|
5010
5064
|
});
|
|
5011
|
-
var SelectedOptionSchema =
|
|
5012
|
-
name:
|
|
5013
|
-
value:
|
|
5065
|
+
var SelectedOptionSchema = z43.object({
|
|
5066
|
+
name: z43.string(),
|
|
5067
|
+
value: z43.string()
|
|
5014
5068
|
});
|
|
5015
|
-
var VideoSourceSchema =
|
|
5016
|
-
url:
|
|
5017
|
-
mimeType:
|
|
5018
|
-
width:
|
|
5019
|
-
height:
|
|
5069
|
+
var VideoSourceSchema = z43.object({
|
|
5070
|
+
url: z43.string(),
|
|
5071
|
+
mimeType: z43.string(),
|
|
5072
|
+
width: z43.number().optional(),
|
|
5073
|
+
height: z43.number().optional()
|
|
5020
5074
|
});
|
|
5021
|
-
var ProductVideoSchema =
|
|
5022
|
-
kind:
|
|
5075
|
+
var ProductVideoSchema = z43.object({
|
|
5076
|
+
kind: z43.enum(["hosted", "external"]),
|
|
5023
5077
|
previewImage: ImageSchema.optional(),
|
|
5024
|
-
altText:
|
|
5078
|
+
altText: z43.string().default(""),
|
|
5025
5079
|
/** `kind: 'hosted'` only — empty for external embeds. */
|
|
5026
|
-
sources:
|
|
5080
|
+
sources: z43.array(VideoSourceSchema).default([]),
|
|
5027
5081
|
/** `kind: 'external'` only — iframe embed URL. */
|
|
5028
|
-
embedUrl:
|
|
5082
|
+
embedUrl: z43.string().optional(),
|
|
5029
5083
|
/** `kind: 'external'` only — e.g. `YOUTUBE` | `VIMEO`. */
|
|
5030
|
-
host:
|
|
5084
|
+
host: z43.string().optional()
|
|
5031
5085
|
});
|
|
5032
|
-
var AvailabilityStatusSchema =
|
|
5086
|
+
var AvailabilityStatusSchema = z43.enum([
|
|
5033
5087
|
"in_stock",
|
|
5034
5088
|
"backorder",
|
|
5035
5089
|
"preorder",
|
|
5036
5090
|
"out_of_stock",
|
|
5037
5091
|
"discontinued"
|
|
5038
5092
|
]);
|
|
5039
|
-
var ProductVariantSchema =
|
|
5040
|
-
id:
|
|
5041
|
-
title:
|
|
5042
|
-
available:
|
|
5093
|
+
var ProductVariantSchema = z43.object({
|
|
5094
|
+
id: z43.string(),
|
|
5095
|
+
title: z43.string(),
|
|
5096
|
+
available: z43.boolean(),
|
|
5043
5097
|
/**
|
|
5044
5098
|
* Qualifies `available` with the fulfillment state behind it. Absent means
|
|
5045
5099
|
* the backend did not say — which is NOT the same as in stock, and must not
|
|
@@ -5054,10 +5108,10 @@ var ProductVariantSchema = z42.object({
|
|
|
5054
5108
|
availabilityStatus: AvailabilityStatusSchema.optional(),
|
|
5055
5109
|
price: MoneySchema,
|
|
5056
5110
|
compareAtPrice: MoneySchema.optional(),
|
|
5057
|
-
selectedOptions:
|
|
5111
|
+
selectedOptions: z43.array(SelectedOptionSchema).optional(),
|
|
5058
5112
|
image: ImageSchema.optional(),
|
|
5059
5113
|
/** The merchant's stock-keeping code. Absent when the backend has none. */
|
|
5060
|
-
sku:
|
|
5114
|
+
sku: z43.string().optional()
|
|
5061
5115
|
});
|
|
5062
5116
|
var MP4_MIME = "video/mp4";
|
|
5063
5117
|
var HLS_MIME = "application/x-mpegURL";
|
|
@@ -5067,34 +5121,34 @@ function orderedVideoSources(video) {
|
|
|
5067
5121
|
const hls = video.sources.filter((s) => s.mimeType === HLS_MIME);
|
|
5068
5122
|
return [...mp4, ...hls];
|
|
5069
5123
|
}
|
|
5070
|
-
var SiblingProductSchema =
|
|
5071
|
-
id:
|
|
5072
|
-
handle:
|
|
5073
|
-
title:
|
|
5124
|
+
var SiblingProductSchema = z43.object({
|
|
5125
|
+
id: z43.string(),
|
|
5126
|
+
handle: z43.string(),
|
|
5127
|
+
title: z43.string(),
|
|
5074
5128
|
/** The differentiating value across siblings — typically the color
|
|
5075
5129
|
* label ("OLIVE", "STONE"). Rendered next to the swatch row. */
|
|
5076
|
-
color:
|
|
5130
|
+
color: z43.string(),
|
|
5077
5131
|
/** Swatch artwork. Hydrators populate from the sibling product's
|
|
5078
5132
|
* first image; renderers crop / fit to the swatch tile. */
|
|
5079
5133
|
swatchImage: ImageSchema.optional(),
|
|
5080
|
-
available:
|
|
5134
|
+
available: z43.boolean().default(true),
|
|
5081
5135
|
/** Marks the sibling that IS the currently-rendered product. The
|
|
5082
5136
|
* picker uses this to highlight the active swatch without an
|
|
5083
5137
|
* external id comparison. */
|
|
5084
|
-
current:
|
|
5138
|
+
current: z43.boolean().default(false)
|
|
5085
5139
|
});
|
|
5086
|
-
var ProductSchema =
|
|
5087
|
-
id:
|
|
5088
|
-
handle:
|
|
5089
|
-
title:
|
|
5090
|
-
description:
|
|
5091
|
-
descriptionHtml:
|
|
5092
|
-
vendor:
|
|
5093
|
-
productType:
|
|
5094
|
-
tags:
|
|
5140
|
+
var ProductSchema = z43.object({
|
|
5141
|
+
id: z43.string(),
|
|
5142
|
+
handle: z43.string().default(""),
|
|
5143
|
+
title: z43.string(),
|
|
5144
|
+
description: z43.string().default(""),
|
|
5145
|
+
descriptionHtml: z43.string().optional(),
|
|
5146
|
+
vendor: z43.string().default(""),
|
|
5147
|
+
productType: z43.string().optional(),
|
|
5148
|
+
tags: z43.array(z43.string()).default([]),
|
|
5095
5149
|
price: MoneySchema.default({ amount: 0, currencyCode: "USD" }),
|
|
5096
5150
|
compareAtPrice: MoneySchema.optional(),
|
|
5097
|
-
images:
|
|
5151
|
+
images: z43.array(ImageSchema).default([]),
|
|
5098
5152
|
/**
|
|
5099
5153
|
* Product videos (`Video` + `ExternalVideo` media). Shopify's MCP
|
|
5100
5154
|
* catalog drops video media — it only surfaces through the Storefront
|
|
@@ -5102,21 +5156,21 @@ var ProductSchema = z42.object({
|
|
|
5102
5156
|
* boundary. Default `[]` so renderers gate on `length > 0` without a
|
|
5103
5157
|
* presence guard.
|
|
5104
5158
|
*/
|
|
5105
|
-
videos:
|
|
5106
|
-
variants:
|
|
5107
|
-
availableForSale:
|
|
5108
|
-
options:
|
|
5109
|
-
name:
|
|
5110
|
-
values:
|
|
5159
|
+
videos: z43.array(ProductVideoSchema).default([]),
|
|
5160
|
+
variants: z43.array(ProductVariantSchema).default([]),
|
|
5161
|
+
availableForSale: z43.boolean().default(true),
|
|
5162
|
+
options: z43.array(z43.object({
|
|
5163
|
+
name: z43.string(),
|
|
5164
|
+
values: z43.array(z43.string())
|
|
5111
5165
|
})).optional(),
|
|
5112
|
-
collections:
|
|
5166
|
+
collections: z43.array(z43.string()).optional(),
|
|
5113
5167
|
/** See `SiblingProductSchema`. Default `[]` so renderers can check
|
|
5114
5168
|
* `length > 1` to decide whether to draw the swatch row without a
|
|
5115
5169
|
* presence guard. */
|
|
5116
|
-
colorVariants:
|
|
5117
|
-
rating:
|
|
5118
|
-
value:
|
|
5119
|
-
count:
|
|
5170
|
+
colorVariants: z43.array(SiblingProductSchema).default([]),
|
|
5171
|
+
rating: z43.object({
|
|
5172
|
+
value: z43.number(),
|
|
5173
|
+
count: z43.number()
|
|
5120
5174
|
}).optional(),
|
|
5121
5175
|
/**
|
|
5122
5176
|
* Product reviews surfaced from the brand's review store. SDK
|
|
@@ -5125,12 +5179,12 @@ var ProductSchema = z42.object({
|
|
|
5125
5179
|
* review bodies. Renderers (`Reviews` component, `ProductDetail`,
|
|
5126
5180
|
* etc.) consume directly.
|
|
5127
5181
|
*/
|
|
5128
|
-
reviews:
|
|
5129
|
-
author:
|
|
5130
|
-
rating:
|
|
5131
|
-
content:
|
|
5132
|
-
date:
|
|
5133
|
-
verified:
|
|
5182
|
+
reviews: z43.array(z43.object({
|
|
5183
|
+
author: z43.string(),
|
|
5184
|
+
rating: z43.number(),
|
|
5185
|
+
content: z43.string(),
|
|
5186
|
+
date: z43.string(),
|
|
5187
|
+
verified: z43.boolean().optional()
|
|
5134
5188
|
})).optional(),
|
|
5135
5189
|
/**
|
|
5136
5190
|
* Ghost-entity flag — `true` when the Storefront API could not hydrate
|
|
@@ -5142,7 +5196,7 @@ var ProductSchema = z42.object({
|
|
|
5142
5196
|
* Set exclusively by `createUnavailableProduct()` — never by the
|
|
5143
5197
|
* Storefront mapper.
|
|
5144
5198
|
*/
|
|
5145
|
-
unavailable:
|
|
5199
|
+
unavailable: z43.boolean().default(false)
|
|
5146
5200
|
});
|
|
5147
5201
|
function createUnavailableProduct(gid) {
|
|
5148
5202
|
return {
|
|
@@ -5164,68 +5218,68 @@ function createUnavailableProduct(gid) {
|
|
|
5164
5218
|
function isGhostEntity(value) {
|
|
5165
5219
|
return typeof value === "object" && value !== null && "unavailable" in value && value.unavailable === true;
|
|
5166
5220
|
}
|
|
5167
|
-
var ReviewSchema =
|
|
5168
|
-
id:
|
|
5169
|
-
productId:
|
|
5170
|
-
author:
|
|
5171
|
-
rating:
|
|
5172
|
-
text:
|
|
5173
|
-
date:
|
|
5174
|
-
verified:
|
|
5221
|
+
var ReviewSchema = z43.object({
|
|
5222
|
+
id: z43.string(),
|
|
5223
|
+
productId: z43.string(),
|
|
5224
|
+
author: z43.string(),
|
|
5225
|
+
rating: z43.number(),
|
|
5226
|
+
text: z43.string(),
|
|
5227
|
+
date: z43.string(),
|
|
5228
|
+
verified: z43.boolean()
|
|
5175
5229
|
});
|
|
5176
|
-
var ArticleSchema =
|
|
5177
|
-
id:
|
|
5178
|
-
handle:
|
|
5179
|
-
title:
|
|
5180
|
-
excerpt:
|
|
5181
|
-
content:
|
|
5182
|
-
contentHtml:
|
|
5183
|
-
author:
|
|
5184
|
-
publishedAt:
|
|
5230
|
+
var ArticleSchema = z43.object({
|
|
5231
|
+
id: z43.string(),
|
|
5232
|
+
handle: z43.string().default(""),
|
|
5233
|
+
title: z43.string(),
|
|
5234
|
+
excerpt: z43.string().default(""),
|
|
5235
|
+
content: z43.string().default(""),
|
|
5236
|
+
contentHtml: z43.string().optional(),
|
|
5237
|
+
author: z43.string().default(""),
|
|
5238
|
+
publishedAt: z43.string().default(""),
|
|
5185
5239
|
image: ImageSchema.optional(),
|
|
5186
|
-
blogHandle:
|
|
5187
|
-
tags:
|
|
5240
|
+
blogHandle: z43.string().default(""),
|
|
5241
|
+
tags: z43.array(z43.string()).default([])
|
|
5188
5242
|
});
|
|
5189
|
-
var CmsPageSchema =
|
|
5190
|
-
id:
|
|
5191
|
-
handle:
|
|
5192
|
-
title:
|
|
5193
|
-
body:
|
|
5194
|
-
bodyHtml:
|
|
5195
|
-
bodySummary:
|
|
5196
|
-
updatedAt:
|
|
5197
|
-
seoTitle:
|
|
5198
|
-
seoDescription:
|
|
5243
|
+
var CmsPageSchema = z43.object({
|
|
5244
|
+
id: z43.string(),
|
|
5245
|
+
handle: z43.string().default(""),
|
|
5246
|
+
title: z43.string(),
|
|
5247
|
+
body: z43.string().default(""),
|
|
5248
|
+
bodyHtml: z43.string().optional(),
|
|
5249
|
+
bodySummary: z43.string().default(""),
|
|
5250
|
+
updatedAt: z43.string().default(""),
|
|
5251
|
+
seoTitle: z43.string().optional(),
|
|
5252
|
+
seoDescription: z43.string().optional()
|
|
5199
5253
|
});
|
|
5200
|
-
var CmsPolicySchema =
|
|
5201
|
-
id:
|
|
5254
|
+
var CmsPolicySchema = z43.object({
|
|
5255
|
+
id: z43.string(),
|
|
5202
5256
|
/** Stable policy slot identifier: 'refund' | 'privacy' | 'terms' |
|
|
5203
5257
|
* 'shipping' | 'subscription' | 'warranty' | custom string. Open so
|
|
5204
5258
|
* platforms with custom policy types can extend. */
|
|
5205
|
-
kind:
|
|
5259
|
+
kind: z43.string(),
|
|
5206
5260
|
/** Slug-shaped handle the platform exposes for storefront URLs
|
|
5207
5261
|
* (e.g. `refund-policy`). Empty string when the backend doesn't
|
|
5208
5262
|
* surface one. */
|
|
5209
|
-
handle:
|
|
5210
|
-
title:
|
|
5211
|
-
body:
|
|
5212
|
-
bodyHtml:
|
|
5213
|
-
url:
|
|
5263
|
+
handle: z43.string().default(""),
|
|
5264
|
+
title: z43.string(),
|
|
5265
|
+
body: z43.string().default(""),
|
|
5266
|
+
bodyHtml: z43.string().optional(),
|
|
5267
|
+
url: z43.string().default("")
|
|
5214
5268
|
});
|
|
5215
|
-
var CollectionSchema =
|
|
5216
|
-
id:
|
|
5217
|
-
handle:
|
|
5218
|
-
title:
|
|
5219
|
-
description:
|
|
5269
|
+
var CollectionSchema = z43.object({
|
|
5270
|
+
id: z43.string(),
|
|
5271
|
+
handle: z43.string().default(""),
|
|
5272
|
+
title: z43.string(),
|
|
5273
|
+
description: z43.string().default(""),
|
|
5220
5274
|
image: ImageSchema.optional(),
|
|
5221
|
-
productCount:
|
|
5275
|
+
productCount: z43.number().int().nonnegative().optional()
|
|
5222
5276
|
});
|
|
5223
|
-
var CartLineSchema =
|
|
5224
|
-
id:
|
|
5225
|
-
merchandiseId:
|
|
5226
|
-
productId:
|
|
5227
|
-
title:
|
|
5228
|
-
variantTitle:
|
|
5277
|
+
var CartLineSchema = z43.object({
|
|
5278
|
+
id: z43.string(),
|
|
5279
|
+
merchandiseId: z43.string(),
|
|
5280
|
+
productId: z43.string(),
|
|
5281
|
+
title: z43.string(),
|
|
5282
|
+
variantTitle: z43.string().optional(),
|
|
5229
5283
|
/**
|
|
5230
5284
|
* The variant's option axes as structured pairs (e.g.
|
|
5231
5285
|
* `[{name:'Size', value:'7'}]`). The machine-readable counterpart of
|
|
@@ -5234,10 +5288,10 @@ var CartLineSchema = z42.object({
|
|
|
5234
5288
|
* single-variant products (the degenerate `Title: Default Title` axis
|
|
5235
5289
|
* is normalized away at the adapter boundary).
|
|
5236
5290
|
*/
|
|
5237
|
-
selectedOptions:
|
|
5238
|
-
vendor:
|
|
5239
|
-
sku:
|
|
5240
|
-
quantity:
|
|
5291
|
+
selectedOptions: z43.array(SelectedOptionSchema).optional(),
|
|
5292
|
+
vendor: z43.string().optional(),
|
|
5293
|
+
sku: z43.string().optional(),
|
|
5294
|
+
quantity: z43.number().int().positive(),
|
|
5241
5295
|
unitPrice: MoneySchema,
|
|
5242
5296
|
totalPrice: MoneySchema,
|
|
5243
5297
|
image: ImageSchema.optional(),
|
|
@@ -5257,26 +5311,26 @@ var CartLineSchema = z42.object({
|
|
|
5257
5311
|
* client-minted id the backend rejects, line-tap navigation is
|
|
5258
5312
|
* suppressed, and the money never folds into a settled-looking total.
|
|
5259
5313
|
*/
|
|
5260
|
-
pending:
|
|
5314
|
+
pending: z43.boolean().optional()
|
|
5261
5315
|
});
|
|
5262
5316
|
function isPendingCartLine(line) {
|
|
5263
5317
|
return line.pending === true;
|
|
5264
5318
|
}
|
|
5265
|
-
var CartDiscountCodeSchema =
|
|
5266
|
-
code:
|
|
5267
|
-
applicable:
|
|
5319
|
+
var CartDiscountCodeSchema = z43.object({
|
|
5320
|
+
code: z43.string(),
|
|
5321
|
+
applicable: z43.boolean()
|
|
5268
5322
|
});
|
|
5269
|
-
var CartMessageSchema =
|
|
5270
|
-
kind:
|
|
5323
|
+
var CartMessageSchema = z43.object({
|
|
5324
|
+
kind: z43.enum(["error", "warning", "info"]),
|
|
5271
5325
|
/** Machine code for branching; opaque and backend-defined. */
|
|
5272
|
-
code:
|
|
5326
|
+
code: z43.string(),
|
|
5273
5327
|
/** Human-readable text, meant to be shown as-is. */
|
|
5274
|
-
content:
|
|
5328
|
+
content: z43.string()
|
|
5275
5329
|
});
|
|
5276
|
-
var CartSchema =
|
|
5277
|
-
id:
|
|
5278
|
-
lines:
|
|
5279
|
-
totalQuantity:
|
|
5330
|
+
var CartSchema = z43.object({
|
|
5331
|
+
id: z43.string(),
|
|
5332
|
+
lines: z43.array(CartLineSchema),
|
|
5333
|
+
totalQuantity: z43.number().int().nonnegative(),
|
|
5280
5334
|
subtotal: MoneySchema,
|
|
5281
5335
|
/**
|
|
5282
5336
|
* Cart total after discounts (pre-shipping/tax). Absent when the
|
|
@@ -5286,11 +5340,11 @@ var CartSchema = z42.object({
|
|
|
5286
5340
|
*/
|
|
5287
5341
|
total: MoneySchema.optional(),
|
|
5288
5342
|
/** Discount codes currently attached to the cart. */
|
|
5289
|
-
discountCodes:
|
|
5343
|
+
discountCodes: z43.array(CartDiscountCodeSchema).default([]),
|
|
5290
5344
|
/** Notices the backend attached to this cart — see `CartMessageSchema`.
|
|
5291
5345
|
* Empty when the backend said nothing or does not report them. */
|
|
5292
|
-
messages:
|
|
5293
|
-
checkoutUrl:
|
|
5346
|
+
messages: z43.array(CartMessageSchema).default([]),
|
|
5347
|
+
checkoutUrl: z43.string().optional(),
|
|
5294
5348
|
/**
|
|
5295
5349
|
* Opaque handle this cart is known by in the connector's BACK OFFICE — the
|
|
5296
5350
|
* value a space owner searches there to find the order this cart became.
|
|
@@ -5303,14 +5357,14 @@ var CartSchema = z42.object({
|
|
|
5303
5357
|
* Absent when the platform has no such handle, or while the cart is still the
|
|
5304
5358
|
* client's optimistic paint and its id is client-minted.
|
|
5305
5359
|
*/
|
|
5306
|
-
backOfficeRef:
|
|
5360
|
+
backOfficeRef: z43.string().optional(),
|
|
5307
5361
|
/**
|
|
5308
5362
|
* URL that recreates this cart on the merchant's own store website
|
|
5309
5363
|
* (replace semantics — overwrites any cart the visitor already has
|
|
5310
5364
|
* there). Populated by platform adapters that support it; absent when
|
|
5311
5365
|
* the cart is empty or the URL cannot be built.
|
|
5312
5366
|
*/
|
|
5313
|
-
storeCartUrl:
|
|
5367
|
+
storeCartUrl: z43.string().optional(),
|
|
5314
5368
|
/**
|
|
5315
5369
|
* True while this cart exists only in the client's optimistic paint —
|
|
5316
5370
|
* no backend cart has been created yet, so its `id` is client-minted and
|
|
@@ -5318,7 +5372,7 @@ var CartSchema = z42.object({
|
|
|
5318
5372
|
* `CartLineSchema.pending`: the adapter never sets it, and callers that
|
|
5319
5373
|
* need a real cart id read THIS rather than sniffing the id's shape.
|
|
5320
5374
|
*/
|
|
5321
|
-
pending:
|
|
5375
|
+
pending: z43.boolean().optional()
|
|
5322
5376
|
});
|
|
5323
5377
|
function settledCart(cart) {
|
|
5324
5378
|
if (cart === null || cart === void 0) return null;
|
|
@@ -5326,27 +5380,27 @@ function settledCart(cart) {
|
|
|
5326
5380
|
}
|
|
5327
5381
|
|
|
5328
5382
|
// ../ecommerce/src/review-schemas.ts
|
|
5329
|
-
import { z as
|
|
5383
|
+
import { z as z44 } from "zod";
|
|
5330
5384
|
var PRODUCT_REVIEWS_RESOLVER_KEY = "productReviews";
|
|
5331
|
-
var ProductReviewItemSchema =
|
|
5332
|
-
author:
|
|
5333
|
-
rating:
|
|
5385
|
+
var ProductReviewItemSchema = z44.object({
|
|
5386
|
+
author: z44.string(),
|
|
5387
|
+
rating: z44.number(),
|
|
5334
5388
|
/** The reviewer's own headline ("love"), when they wrote one — the site shows it above `content`. */
|
|
5335
|
-
title:
|
|
5336
|
-
content:
|
|
5337
|
-
date:
|
|
5338
|
-
verified:
|
|
5389
|
+
title: z44.string().optional(),
|
|
5390
|
+
content: z44.string(),
|
|
5391
|
+
date: z44.string(),
|
|
5392
|
+
verified: z44.boolean().optional(),
|
|
5339
5393
|
/**
|
|
5340
5394
|
* Non-empty when the review was written for a grouped SIBLING product rather
|
|
5341
5395
|
* than this one (brands pool reviews across a product line). A surface can
|
|
5342
5396
|
* attribute it; empty / absent ⇒ the product's own review.
|
|
5343
5397
|
*/
|
|
5344
|
-
writtenFor:
|
|
5398
|
+
writtenFor: z44.string().optional()
|
|
5345
5399
|
});
|
|
5346
5400
|
var ProductReviewHighlightSchema = ProductReviewItemSchema.extend({
|
|
5347
5401
|
/** The sentence(s) the ranking fired on. Descriptive — it is what the matcher
|
|
5348
5402
|
* scored, NOT necessarily text that occurs in `content`. */
|
|
5349
|
-
highlight:
|
|
5403
|
+
highlight: z44.string().optional(),
|
|
5350
5404
|
/**
|
|
5351
5405
|
* `highlight` resolved back into `content` as a VERBATIM substring, so a
|
|
5352
5406
|
* surface can mark it with a plain `indexOf` and no matcher of its own.
|
|
@@ -5361,29 +5415,29 @@ var ProductReviewHighlightSchema = ProductReviewItemSchema.extend({
|
|
|
5361
5415
|
* Absent when the passage genuinely has no home in the body (one cut from the
|
|
5362
5416
|
* title). A surface then marks NOTHING rather than guessing at a span.
|
|
5363
5417
|
*/
|
|
5364
|
-
mark:
|
|
5418
|
+
mark: z44.string().optional()
|
|
5365
5419
|
});
|
|
5366
|
-
var ReviewAggregateSchema =
|
|
5367
|
-
value:
|
|
5368
|
-
count:
|
|
5420
|
+
var ReviewAggregateSchema = z44.object({
|
|
5421
|
+
value: z44.number(),
|
|
5422
|
+
count: z44.number()
|
|
5369
5423
|
});
|
|
5370
|
-
var ProductReviewDataSchema =
|
|
5371
|
-
id:
|
|
5424
|
+
var ProductReviewDataSchema = z44.object({
|
|
5425
|
+
id: z44.string(),
|
|
5372
5426
|
/** The product's FULL retrieved set — what a filterable list renders. */
|
|
5373
|
-
reviews:
|
|
5427
|
+
reviews: z44.array(ProductReviewItemSchema).default([]),
|
|
5374
5428
|
aggregate: ReviewAggregateSchema.default({ value: 0, count: 0 }),
|
|
5375
5429
|
/** 5★→1★ star COUNTS over the full set (index 0 = 5-star). */
|
|
5376
|
-
distribution:
|
|
5430
|
+
distribution: z44.array(z44.number()).default([]),
|
|
5377
5431
|
/**
|
|
5378
5432
|
* The reviews that ANSWER the surface's intent, best first. Empty when no
|
|
5379
5433
|
* intent was asked for — never a silent copy of `reviews`.
|
|
5380
5434
|
*/
|
|
5381
|
-
highlights:
|
|
5435
|
+
highlights: z44.array(ProductReviewHighlightSchema).default([]),
|
|
5382
5436
|
/**
|
|
5383
5437
|
* True when the review provider could not be read and nothing is indexed —
|
|
5384
5438
|
* the empty lists mean "not loaded", NOT "this product has no reviews".
|
|
5385
5439
|
*/
|
|
5386
|
-
unavailable:
|
|
5440
|
+
unavailable: z44.boolean().optional()
|
|
5387
5441
|
});
|
|
5388
5442
|
var ProductReviewPayloadSchema = ProductReviewDataSchema.omit({ id: true });
|
|
5389
5443
|
|
|
@@ -5677,9 +5731,9 @@ function readPdpCompanions(config) {
|
|
|
5677
5731
|
}
|
|
5678
5732
|
|
|
5679
5733
|
// ../ecommerce/src/base-attributes.ts
|
|
5680
|
-
import { z as
|
|
5734
|
+
import { z as z45 } from "zod";
|
|
5681
5735
|
var BASE_ATTRIBUTES_CONFIG_KEY = "baseAttributes";
|
|
5682
|
-
var BaseAttributesRecordSchema =
|
|
5736
|
+
var BaseAttributesRecordSchema = z45.record(z45.string(), AttributeDefSchema);
|
|
5683
5737
|
function buildBaseAttributesConfig(attributes) {
|
|
5684
5738
|
return { [BASE_ATTRIBUTES_CONFIG_KEY]: attributes };
|
|
5685
5739
|
}
|
|
@@ -5690,9 +5744,9 @@ function readBaseAttributesConfig(config) {
|
|
|
5690
5744
|
}
|
|
5691
5745
|
|
|
5692
5746
|
// ../ecommerce/src/bucket-labels.ts
|
|
5693
|
-
import { z as
|
|
5747
|
+
import { z as z46 } from "zod";
|
|
5694
5748
|
var BUCKET_LABELS_CONFIG_KEY = "bucketLabels";
|
|
5695
|
-
var BucketLabelsRecordSchema =
|
|
5749
|
+
var BucketLabelsRecordSchema = z46.record(z46.string(), z46.string());
|
|
5696
5750
|
function buildBucketLabelsConfig(labels) {
|
|
5697
5751
|
return { [BUCKET_LABELS_CONFIG_KEY]: labels };
|
|
5698
5752
|
}
|
|
@@ -5734,6 +5788,28 @@ function clearCodeDiscountSources() {
|
|
|
5734
5788
|
factories2.length = 0;
|
|
5735
5789
|
}
|
|
5736
5790
|
|
|
5791
|
+
// ../ecommerce/src/store-theme.ts
|
|
5792
|
+
var StoreThemeAccessError = class extends Error {
|
|
5793
|
+
constructor(message) {
|
|
5794
|
+
super(message);
|
|
5795
|
+
this.name = "StoreThemeAccessError";
|
|
5796
|
+
}
|
|
5797
|
+
};
|
|
5798
|
+
var factories3 = [];
|
|
5799
|
+
function registerStoreThemeSource(factory) {
|
|
5800
|
+
factories3.push(factory);
|
|
5801
|
+
}
|
|
5802
|
+
function resolveStoreThemeSource(options) {
|
|
5803
|
+
for (const factory of factories3) {
|
|
5804
|
+
const source = factory(options);
|
|
5805
|
+
if (source !== void 0) return source;
|
|
5806
|
+
}
|
|
5807
|
+
return void 0;
|
|
5808
|
+
}
|
|
5809
|
+
function clearStoreThemeSources() {
|
|
5810
|
+
factories3.length = 0;
|
|
5811
|
+
}
|
|
5812
|
+
|
|
5737
5813
|
// src/session/visitor-locale.ts
|
|
5738
5814
|
var cached = null;
|
|
5739
5815
|
function getVisitorLocale() {
|
|
@@ -6906,8 +6982,8 @@ var PRESENCE_LIFECYCLE = {
|
|
|
6906
6982
|
};
|
|
6907
6983
|
|
|
6908
6984
|
// ../spacestation/src/widgets/presence/profile.ts
|
|
6909
|
-
import { z as
|
|
6910
|
-
var PresenceProfileSchema =
|
|
6985
|
+
import { z as z47 } from "zod";
|
|
6986
|
+
var PresenceProfileSchema = z47.object({
|
|
6911
6987
|
/**
|
|
6912
6988
|
* How much the agent SPEAKS in presence.
|
|
6913
6989
|
* - 'off' the faculty generates no prose at all. Zero tokens, and
|
|
@@ -6917,14 +6993,14 @@ var PresenceProfileSchema = z46.object({
|
|
|
6917
6993
|
* - 'terse' one lead line per turn. The default — see below.
|
|
6918
6994
|
* - 'full' a lead line plus asides beside individual elements.
|
|
6919
6995
|
*/
|
|
6920
|
-
voice:
|
|
6996
|
+
voice: z47.enum(["off", "terse", "full"]),
|
|
6921
6997
|
/**
|
|
6922
6998
|
* Which source kinds this space surfaces. 'all' = every tool that declares a
|
|
6923
6999
|
* `sourceKind`. An explicit list lets a space stay quiet about lookups its
|
|
6924
7000
|
* visitors would find uninteresting (policy checks on a fashion space)
|
|
6925
7001
|
* without the tool having to lie about what it is.
|
|
6926
7002
|
*/
|
|
6927
|
-
sources:
|
|
7003
|
+
sources: z47.union([z47.array(z47.string()), z47.literal("all")]),
|
|
6928
7004
|
/**
|
|
6929
7005
|
* Which facts render.
|
|
6930
7006
|
* - 'inferred-only' hides `provenance: 'stated'` facts. The default and the
|
|
@@ -6933,7 +7009,7 @@ var PresenceProfileSchema = z46.object({
|
|
|
6933
7009
|
* - 'all' shows stated facts too — for spaces where confirming the brief
|
|
6934
7010
|
* back is itself the product (intake, configuration).
|
|
6935
7011
|
*/
|
|
6936
|
-
facts:
|
|
7012
|
+
facts: z47.enum(["inferred-only", "all"])
|
|
6937
7013
|
});
|
|
6938
7014
|
var DEFAULT_PRESENCE_PROFILE = {
|
|
6939
7015
|
voice: "terse",
|
|
@@ -8885,23 +8961,23 @@ function buildComponentLibrary(catalog, componentMap) {
|
|
|
8885
8961
|
}
|
|
8886
8962
|
|
|
8887
8963
|
// src/catalog/define.ts
|
|
8888
|
-
import { z as
|
|
8889
|
-
var HYDRATED_ENTITY =
|
|
8964
|
+
import { z as z48 } from "zod";
|
|
8965
|
+
var HYDRATED_ENTITY = z48.object({}).passthrough();
|
|
8890
8966
|
function entity(resolverKey, opts) {
|
|
8891
8967
|
return resolved(HYDRATED_ENTITY, resolverKey, opts);
|
|
8892
8968
|
}
|
|
8893
|
-
var text = prose(
|
|
8969
|
+
var text = prose(z48.string());
|
|
8894
8970
|
function plain() {
|
|
8895
|
-
return
|
|
8971
|
+
return z48.string();
|
|
8896
8972
|
}
|
|
8897
8973
|
function token(values) {
|
|
8898
|
-
return
|
|
8974
|
+
return z48.enum(values);
|
|
8899
8975
|
}
|
|
8900
8976
|
function catalogComponent(meta, render) {
|
|
8901
8977
|
const { props, requires, ...rest } = meta;
|
|
8902
8978
|
return {
|
|
8903
8979
|
...rest,
|
|
8904
|
-
propsSchema:
|
|
8980
|
+
propsSchema: z48.object(props),
|
|
8905
8981
|
...requires !== void 0 ? { requires } : {},
|
|
8906
8982
|
component: adaptComponent(render)
|
|
8907
8983
|
};
|
|
@@ -10944,18 +11020,18 @@ __export(ecommerce_exports, {
|
|
|
10944
11020
|
});
|
|
10945
11021
|
|
|
10946
11022
|
// ../spacestation/src/analytics/ecommerce/surfacing.ts
|
|
10947
|
-
import { z as
|
|
11023
|
+
import { z as z49 } from "zod";
|
|
10948
11024
|
var PRODUCTS_SURFACED = defineEventKind(
|
|
10949
11025
|
"commerce.products_surfaced",
|
|
10950
11026
|
"client",
|
|
10951
|
-
|
|
11027
|
+
z49.object({
|
|
10952
11028
|
/** The turn whose commit this describes. Minted where the prompt signal
|
|
10953
11029
|
* is built and shared with `agent_runs`, so the read layer can line a
|
|
10954
11030
|
* surfacing up against the prompt that asked for it. */
|
|
10955
|
-
turnId:
|
|
11031
|
+
turnId: z49.string().min(1).max(128),
|
|
10956
11032
|
/** Distinct entity refs this turn placed that were not on the canvas
|
|
10957
11033
|
* before it. ZERO IS A REAL VALUE — see the header. */
|
|
10958
|
-
productCount:
|
|
11034
|
+
productCount: z49.number().int().nonnegative()
|
|
10959
11035
|
}).strict()
|
|
10960
11036
|
);
|
|
10961
11037
|
|
|
@@ -12457,7 +12533,7 @@ function useContentActions() {
|
|
|
12457
12533
|
import { useEffect as useEffect19, useState as useState18 } from "react";
|
|
12458
12534
|
|
|
12459
12535
|
// package.json
|
|
12460
|
-
var version = "0.5.
|
|
12536
|
+
var version = "0.5.9";
|
|
12461
12537
|
|
|
12462
12538
|
// src/host/host-modules.ts
|
|
12463
12539
|
import * as react from "react";
|
|
@@ -12544,7 +12620,7 @@ function Spacefront(props) {
|
|
|
12544
12620
|
}
|
|
12545
12621
|
|
|
12546
12622
|
// src/npm.ts
|
|
12547
|
-
import { z as
|
|
12623
|
+
import { z as z51 } from "zod";
|
|
12548
12624
|
export {
|
|
12549
12625
|
ACQUISITION_KIND_LABELS,
|
|
12550
12626
|
ACTIVE_PANEL_ATTR,
|
|
@@ -12680,6 +12756,8 @@ export {
|
|
|
12680
12756
|
HOST_MODULE_SPECIFIERS,
|
|
12681
12757
|
HandlerRegistryContext,
|
|
12682
12758
|
HostClearedSchema,
|
|
12759
|
+
HostExportsSchema,
|
|
12760
|
+
HostImportsSchema,
|
|
12683
12761
|
HostPayloadSchema,
|
|
12684
12762
|
HydrationNoticeProvider,
|
|
12685
12763
|
HydrationStateContext,
|
|
@@ -12737,11 +12815,13 @@ export {
|
|
|
12737
12815
|
ProjectionSignalBridge,
|
|
12738
12816
|
REFERRER_HOST_PARAM,
|
|
12739
12817
|
REGISTRY_CLICKED,
|
|
12818
|
+
RELEASE_MESSAGE_MAX,
|
|
12740
12819
|
RESERVED_IDS,
|
|
12741
12820
|
RESERVED_ID_SET,
|
|
12742
12821
|
RecordVerdictInputSchema,
|
|
12743
12822
|
RecordableVerdictSchema,
|
|
12744
12823
|
RegistryProvider,
|
|
12824
|
+
ReleaseMessageSchema,
|
|
12745
12825
|
ReorderAgentDirectivesInputSchema,
|
|
12746
12826
|
ReviewAggregateSchema,
|
|
12747
12827
|
ReviewSchema,
|
|
@@ -12793,6 +12873,7 @@ export {
|
|
|
12793
12873
|
SpacefrontPreviewProvider,
|
|
12794
12874
|
SpecSchema,
|
|
12795
12875
|
StateSnapshotFrameSchema,
|
|
12876
|
+
StoreThemeAccessError,
|
|
12796
12877
|
SuggestionActionSchema,
|
|
12797
12878
|
SuggestionActionsSchema,
|
|
12798
12879
|
SurfaceSchema,
|
|
@@ -12873,6 +12954,7 @@ export {
|
|
|
12873
12954
|
clearCartActionFailures,
|
|
12874
12955
|
clearCodeDiscountSources,
|
|
12875
12956
|
clearProductNameLookups,
|
|
12957
|
+
clearStoreThemeSources,
|
|
12876
12958
|
clearVariantChoice,
|
|
12877
12959
|
clientStateEntries,
|
|
12878
12960
|
clientStateVector,
|
|
@@ -12934,6 +13016,8 @@ export {
|
|
|
12934
13016
|
hapticCue,
|
|
12935
13017
|
hasProse,
|
|
12936
13018
|
hostFillsPage,
|
|
13019
|
+
hostImportProblems,
|
|
13020
|
+
hostImportsRefusal,
|
|
12937
13021
|
hostPlace,
|
|
12938
13022
|
hostingAllows,
|
|
12939
13023
|
injectGoogleFonts,
|
|
@@ -13024,6 +13108,7 @@ export {
|
|
|
13024
13108
|
registerProductNameLookup,
|
|
13025
13109
|
registerServiceHydrators,
|
|
13026
13110
|
registerSessionScopedClear,
|
|
13111
|
+
registerStoreThemeSource,
|
|
13027
13112
|
registeredPageKinds,
|
|
13028
13113
|
registeredPresenceFactForms,
|
|
13029
13114
|
registeredPresenceForms,
|
|
@@ -13046,6 +13131,7 @@ export {
|
|
|
13046
13131
|
resolveServiceHydrators,
|
|
13047
13132
|
resolveStanding,
|
|
13048
13133
|
resolveStorage,
|
|
13134
|
+
resolveStoreThemeSource,
|
|
13049
13135
|
resolveSwatchColor,
|
|
13050
13136
|
resolveType,
|
|
13051
13137
|
resolved,
|
|
@@ -13252,5 +13338,5 @@ export {
|
|
|
13252
13338
|
withCartActorOrigin,
|
|
13253
13339
|
withInteractionTracking,
|
|
13254
13340
|
withSignalTurn,
|
|
13255
|
-
|
|
13341
|
+
z51 as z
|
|
13256
13342
|
};
|