@riverbankcms/sdk 0.60.7 → 0.60.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/_dts/api/src/navigation/linkValue.d.ts +1 -1
- package/dist/_dts/blocks/src/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/manifest/fieldValidation/index.d.ts +185 -0
- package/dist/_dts/blocks/src/system/manifest/index.d.ts +1 -0
- package/dist/_dts/blocks/src/system/manifest/validation.d.ts +2 -84
- package/dist/_dts/blocks/src/system/types/link.d.ts +93 -1
- package/dist/_dts/db/src/schemas/forms.d.ts +24 -3
- package/dist/_dts/editor-blocks/src/widgets/link/LinkSummary.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/LinkWidget.d.ts +1 -1
- package/dist/_dts/editor-blocks/src/widgets/link/utils.d.ts +1 -1
- package/dist/_dts/sdk/src/config/typed-entries.d.ts +36 -1
- package/dist/_dts/sdk/src/contracts/content.d.ts +6 -1
- package/dist/_dts/sdk/src/contracts/index.d.ts +1 -1
- package/dist/_dts/sdk/src/contracts/system-block-content.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/cli/index.mjs +676 -428
- package/dist/client/client.mjs +39991 -39754
- package/dist/client/hooks.mjs +1737 -1735
- package/dist/client/rendering.mjs +1463 -1226
- package/dist/preview-next/client/runtime.mjs +1052 -799
- package/dist/server/components.mjs +2983 -2745
- package/dist/server/config-validation.mjs +1727 -1725
- package/dist/server/config.mjs +1727 -1725
- package/dist/server/data.mjs +1737 -1735
- package/dist/server/index.mjs +1 -1
- package/dist/server/next.mjs +3026 -2788
- package/dist/server/page-converter.mjs +10 -10
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2996 -2758
- package/dist/server/rendering.mjs +2996 -2758
- package/dist/server/routing.mjs +256 -285
- package/dist/server/server.mjs +1738 -1736
- package/package.json +1 -1
package/dist/server/routing.mjs
CHANGED
|
@@ -8418,233 +8418,6 @@ var init_visibility = __esm({
|
|
|
8418
8418
|
}
|
|
8419
8419
|
});
|
|
8420
8420
|
|
|
8421
|
-
// ../api/src/navigation/linkValue.ts
|
|
8422
|
-
var init_linkValue = __esm({
|
|
8423
|
-
"../api/src/navigation/linkValue.ts"() {
|
|
8424
|
-
"use strict";
|
|
8425
|
-
init_routableLink();
|
|
8426
|
-
}
|
|
8427
|
-
});
|
|
8428
|
-
|
|
8429
|
-
// ../api/src/redirects.ts
|
|
8430
|
-
var init_redirects = __esm({
|
|
8431
|
-
"../api/src/redirects.ts"() {
|
|
8432
|
-
"use strict";
|
|
8433
|
-
init_envelope();
|
|
8434
|
-
init_error_propagation();
|
|
8435
|
-
}
|
|
8436
|
-
});
|
|
8437
|
-
|
|
8438
|
-
// ../api/src/billing.ts
|
|
8439
|
-
var init_billing = __esm({
|
|
8440
|
-
"../api/src/billing.ts"() {
|
|
8441
|
-
"use strict";
|
|
8442
|
-
init_envelope();
|
|
8443
|
-
init_error_propagation();
|
|
8444
|
-
}
|
|
8445
|
-
});
|
|
8446
|
-
|
|
8447
|
-
// ../api/src/aiPatch.ts
|
|
8448
|
-
var init_aiPatch = __esm({
|
|
8449
|
-
"../api/src/aiPatch.ts"() {
|
|
8450
|
-
"use strict";
|
|
8451
|
-
init_envelope();
|
|
8452
|
-
}
|
|
8453
|
-
});
|
|
8454
|
-
|
|
8455
|
-
// ../api/src/aiPlayground.ts
|
|
8456
|
-
import { z as z8 } from "zod";
|
|
8457
|
-
var Rfc6902PatchOp, PlaygroundProposeRequest, MultiPagePatchEnvelope, MultiPageUpdateResponse;
|
|
8458
|
-
var init_aiPlayground = __esm({
|
|
8459
|
-
"../api/src/aiPlayground.ts"() {
|
|
8460
|
-
"use strict";
|
|
8461
|
-
Rfc6902PatchOp = z8.discriminatedUnion("op", [
|
|
8462
|
-
// Standard RFC-6902 operations
|
|
8463
|
-
z8.object({
|
|
8464
|
-
op: z8.literal("add"),
|
|
8465
|
-
path: z8.string(),
|
|
8466
|
-
value: z8.unknown()
|
|
8467
|
-
}),
|
|
8468
|
-
z8.object({
|
|
8469
|
-
op: z8.literal("remove"),
|
|
8470
|
-
path: z8.string()
|
|
8471
|
-
}),
|
|
8472
|
-
z8.object({
|
|
8473
|
-
op: z8.literal("replace"),
|
|
8474
|
-
path: z8.string(),
|
|
8475
|
-
value: z8.unknown()
|
|
8476
|
-
}),
|
|
8477
|
-
z8.object({
|
|
8478
|
-
op: z8.literal("move"),
|
|
8479
|
-
from: z8.string(),
|
|
8480
|
-
path: z8.string()
|
|
8481
|
-
}),
|
|
8482
|
-
z8.object({
|
|
8483
|
-
op: z8.literal("copy"),
|
|
8484
|
-
from: z8.string(),
|
|
8485
|
-
path: z8.string()
|
|
8486
|
-
}),
|
|
8487
|
-
// Block-level operations (Phase 2)
|
|
8488
|
-
z8.object({
|
|
8489
|
-
op: z8.literal("add_block"),
|
|
8490
|
-
blockKind: z8.string(),
|
|
8491
|
-
afterBlockId: z8.string().nullable(),
|
|
8492
|
-
content: z8.record(z8.string(), z8.unknown()),
|
|
8493
|
-
rationale: z8.string()
|
|
8494
|
-
}),
|
|
8495
|
-
z8.object({
|
|
8496
|
-
op: z8.literal("delete_block"),
|
|
8497
|
-
blockId: z8.string(),
|
|
8498
|
-
rationale: z8.string()
|
|
8499
|
-
}),
|
|
8500
|
-
z8.object({
|
|
8501
|
-
op: z8.literal("reorder_block"),
|
|
8502
|
-
blockId: z8.string(),
|
|
8503
|
-
afterBlockId: z8.string().nullable(),
|
|
8504
|
-
rationale: z8.string()
|
|
8505
|
-
})
|
|
8506
|
-
]);
|
|
8507
|
-
PlaygroundProposeRequest = z8.object({
|
|
8508
|
-
request: z8.string().min(1).max(2e3)
|
|
8509
|
-
});
|
|
8510
|
-
MultiPagePatchEnvelope = z8.object({
|
|
8511
|
-
pageId: z8.string(),
|
|
8512
|
-
blockId: z8.string().optional(),
|
|
8513
|
-
// Not present for page-level ops
|
|
8514
|
-
blockKind: z8.string().optional(),
|
|
8515
|
-
blockPurpose: z8.string().optional().nullable(),
|
|
8516
|
-
ops: z8.array(Rfc6902PatchOp),
|
|
8517
|
-
rationale: z8.string(),
|
|
8518
|
-
currentContent: z8.record(z8.string(), z8.unknown()).optional()
|
|
8519
|
-
});
|
|
8520
|
-
MultiPageUpdateResponse = z8.object({
|
|
8521
|
-
patches: z8.array(MultiPagePatchEnvelope),
|
|
8522
|
-
assistantMessage: z8.string(),
|
|
8523
|
-
pagesModified: z8.number(),
|
|
8524
|
-
toolCallsUsed: z8.number()
|
|
8525
|
-
});
|
|
8526
|
-
}
|
|
8527
|
-
});
|
|
8528
|
-
|
|
8529
|
-
// ../api/src/seo.ts
|
|
8530
|
-
var init_seo = __esm({
|
|
8531
|
-
"../api/src/seo.ts"() {
|
|
8532
|
-
"use strict";
|
|
8533
|
-
init_envelope();
|
|
8534
|
-
}
|
|
8535
|
-
});
|
|
8536
|
-
|
|
8537
|
-
// ../api/src/performance.ts
|
|
8538
|
-
var init_performance = __esm({
|
|
8539
|
-
"../api/src/performance.ts"() {
|
|
8540
|
-
"use strict";
|
|
8541
|
-
init_envelope();
|
|
8542
|
-
}
|
|
8543
|
-
});
|
|
8544
|
-
|
|
8545
|
-
// ../api/src/contentTypes.ts
|
|
8546
|
-
var init_contentTypes = __esm({
|
|
8547
|
-
"../api/src/contentTypes.ts"() {
|
|
8548
|
-
"use strict";
|
|
8549
|
-
init_envelope();
|
|
8550
|
-
init_error_propagation();
|
|
8551
|
-
}
|
|
8552
|
-
});
|
|
8553
|
-
|
|
8554
|
-
// ../api/src/domains.ts
|
|
8555
|
-
var init_domains = __esm({
|
|
8556
|
-
"../api/src/domains.ts"() {
|
|
8557
|
-
"use strict";
|
|
8558
|
-
init_envelope();
|
|
8559
|
-
init_error_propagation();
|
|
8560
|
-
}
|
|
8561
|
-
});
|
|
8562
|
-
|
|
8563
|
-
// ../api/src/admin.ts
|
|
8564
|
-
var init_admin = __esm({
|
|
8565
|
-
"../api/src/admin.ts"() {
|
|
8566
|
-
"use strict";
|
|
8567
|
-
init_envelope();
|
|
8568
|
-
init_error_propagation();
|
|
8569
|
-
}
|
|
8570
|
-
});
|
|
8571
|
-
|
|
8572
|
-
// ../api/src/auth.ts
|
|
8573
|
-
var init_auth = __esm({
|
|
8574
|
-
"../api/src/auth.ts"() {
|
|
8575
|
-
"use strict";
|
|
8576
|
-
init_request();
|
|
8577
|
-
init_envelope();
|
|
8578
|
-
init_error_propagation();
|
|
8579
|
-
}
|
|
8580
|
-
});
|
|
8581
|
-
|
|
8582
|
-
// ../api/src/index.ts
|
|
8583
|
-
var init_src3 = __esm({
|
|
8584
|
-
"../api/src/index.ts"() {
|
|
8585
|
-
"use strict";
|
|
8586
|
-
init_endpoints();
|
|
8587
|
-
init_media();
|
|
8588
|
-
init_contracts();
|
|
8589
|
-
init_contracts2();
|
|
8590
|
-
init_sdkContracts();
|
|
8591
|
-
init_incrementalJson();
|
|
8592
|
-
init_launchReadiness();
|
|
8593
|
-
init_url();
|
|
8594
|
-
init_envelope();
|
|
8595
|
-
init_request();
|
|
8596
|
-
init_env();
|
|
8597
|
-
init_bookingRefundOutcomes();
|
|
8598
|
-
init_customerMembershipOutcomes();
|
|
8599
|
-
init_bookingVerticals();
|
|
8600
|
-
init_appointmentSetup();
|
|
8601
|
-
init_bookings();
|
|
8602
|
-
init_cache_tags();
|
|
8603
|
-
init_streamReader();
|
|
8604
|
-
init_siteAnalytics();
|
|
8605
|
-
init_types2();
|
|
8606
|
-
init_eventAttendanceLabels();
|
|
8607
|
-
init_siteBanner();
|
|
8608
|
-
init_siteOnboarding();
|
|
8609
|
-
init_privacyPolicy();
|
|
8610
|
-
init_analytics();
|
|
8611
|
-
init_publicProducts();
|
|
8612
|
-
init_contentEntries();
|
|
8613
|
-
init_blocks();
|
|
8614
|
-
init_blocksKeys();
|
|
8615
|
-
init_contentKeys();
|
|
8616
|
-
init_pages();
|
|
8617
|
-
init_routes();
|
|
8618
|
-
init_bookings();
|
|
8619
|
-
init_emailSettings();
|
|
8620
|
-
init_eventEmailTemplates();
|
|
8621
|
-
init_resources();
|
|
8622
|
-
init_services();
|
|
8623
|
-
init_availability();
|
|
8624
|
-
init_calendar();
|
|
8625
|
-
init_navigation();
|
|
8626
|
-
init_navigationMenuValidation();
|
|
8627
|
-
init_routableLink();
|
|
8628
|
-
init_linkResolver();
|
|
8629
|
-
init_matcher();
|
|
8630
|
-
init_visibility();
|
|
8631
|
-
init_linkValue();
|
|
8632
|
-
init_redirects();
|
|
8633
|
-
init_billing();
|
|
8634
|
-
init_aiPatch();
|
|
8635
|
-
init_aiPlayground();
|
|
8636
|
-
init_seo();
|
|
8637
|
-
init_performance();
|
|
8638
|
-
init_contentTypes();
|
|
8639
|
-
init_analytics();
|
|
8640
|
-
init_siteMembers();
|
|
8641
|
-
init_domains();
|
|
8642
|
-
init_admin();
|
|
8643
|
-
init_auth();
|
|
8644
|
-
init_types2();
|
|
8645
|
-
}
|
|
8646
|
-
});
|
|
8647
|
-
|
|
8648
8421
|
// ../blocks/src/system/manifest/augmentManifest.ts
|
|
8649
8422
|
function augmentManifest(manifest) {
|
|
8650
8423
|
let augmentedFields = manifest.fields ?? [];
|
|
@@ -8704,6 +8477,14 @@ var init_fieldPath = __esm({
|
|
|
8704
8477
|
}
|
|
8705
8478
|
});
|
|
8706
8479
|
|
|
8480
|
+
// ../blocks/src/system/manifest/fieldValidation/index.ts
|
|
8481
|
+
import { z as z8 } from "zod";
|
|
8482
|
+
var init_fieldValidation = __esm({
|
|
8483
|
+
"../blocks/src/system/manifest/fieldValidation/index.ts"() {
|
|
8484
|
+
"use strict";
|
|
8485
|
+
}
|
|
8486
|
+
});
|
|
8487
|
+
|
|
8707
8488
|
// ../blocks/src/system/manifest/registry.ts
|
|
8708
8489
|
function registerManifest(manifest) {
|
|
8709
8490
|
manifestStore.set(manifest.name, manifest);
|
|
@@ -8720,62 +8501,11 @@ var init_registry = __esm({
|
|
|
8720
8501
|
}
|
|
8721
8502
|
});
|
|
8722
8503
|
|
|
8723
|
-
// ../blocks/src/lib/typeGuards.ts
|
|
8724
|
-
function isRecord2(value) {
|
|
8725
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
8726
|
-
}
|
|
8727
|
-
function isObjectRecord(value) {
|
|
8728
|
-
return typeof value === "object" && value !== null;
|
|
8729
|
-
}
|
|
8730
|
-
var init_typeGuards = __esm({
|
|
8731
|
-
"../blocks/src/lib/typeGuards.ts"() {
|
|
8732
|
-
"use strict";
|
|
8733
|
-
}
|
|
8734
|
-
});
|
|
8735
|
-
|
|
8736
8504
|
// ../blocks/src/system/manifest/validation.ts
|
|
8737
8505
|
import { z as z9 } from "zod";
|
|
8738
|
-
var nullableString, internalLinkSchema, externalLinkSchema2, customLinkSchema2, pageLinkSchema2, entryLinkSchema2, linkSchema;
|
|
8739
8506
|
var init_validation = __esm({
|
|
8740
8507
|
"../blocks/src/system/manifest/validation.ts"() {
|
|
8741
8508
|
"use strict";
|
|
8742
|
-
nullableString = z9.union([z9.string().min(1), z9.null()]);
|
|
8743
|
-
internalLinkSchema = z9.object({
|
|
8744
|
-
kind: z9.literal("internal"),
|
|
8745
|
-
routeId: z9.string().min(1),
|
|
8746
|
-
entityId: z9.string().min(1).optional(),
|
|
8747
|
-
entityType: z9.enum(["page", "content"]).optional(),
|
|
8748
|
-
href: nullableString.optional(),
|
|
8749
|
-
title: nullableString.optional(),
|
|
8750
|
-
typeLabel: nullableString.optional(),
|
|
8751
|
-
contentTypeKey: nullableString.optional(),
|
|
8752
|
-
contentTypeName: nullableString.optional(),
|
|
8753
|
-
updatedAt: nullableString.optional()
|
|
8754
|
-
}).passthrough();
|
|
8755
|
-
externalLinkSchema2 = z9.object({
|
|
8756
|
-
kind: z9.literal("external"),
|
|
8757
|
-
href: z9.string().min(1)
|
|
8758
|
-
}).passthrough();
|
|
8759
|
-
customLinkSchema2 = z9.object({
|
|
8760
|
-
kind: z9.literal("url"),
|
|
8761
|
-
href: z9.string().min(1)
|
|
8762
|
-
}).passthrough();
|
|
8763
|
-
pageLinkSchema2 = z9.object({
|
|
8764
|
-
kind: z9.literal("page"),
|
|
8765
|
-
identifier: z9.string().min(1)
|
|
8766
|
-
}).passthrough();
|
|
8767
|
-
entryLinkSchema2 = z9.object({
|
|
8768
|
-
kind: z9.literal("entry"),
|
|
8769
|
-
contentType: z9.string().min(1),
|
|
8770
|
-
identifier: z9.string().min(1)
|
|
8771
|
-
}).passthrough();
|
|
8772
|
-
linkSchema = z9.union([
|
|
8773
|
-
internalLinkSchema,
|
|
8774
|
-
externalLinkSchema2,
|
|
8775
|
-
customLinkSchema2,
|
|
8776
|
-
pageLinkSchema2,
|
|
8777
|
-
entryLinkSchema2
|
|
8778
|
-
]);
|
|
8779
8509
|
}
|
|
8780
8510
|
});
|
|
8781
8511
|
|
|
@@ -8792,6 +8522,7 @@ var init_manifest = __esm({
|
|
|
8792
8522
|
"use strict";
|
|
8793
8523
|
init_augmentManifest();
|
|
8794
8524
|
init_fieldPath();
|
|
8525
|
+
init_fieldValidation();
|
|
8795
8526
|
init_registry();
|
|
8796
8527
|
init_schema2();
|
|
8797
8528
|
init_validation();
|
|
@@ -19061,14 +18792,14 @@ var init_runtime = __esm({
|
|
|
19061
18792
|
});
|
|
19062
18793
|
|
|
19063
18794
|
// ../blocks/src/contracts/islands.ts
|
|
19064
|
-
function
|
|
18795
|
+
function isObjectRecord(value) {
|
|
19065
18796
|
return typeof value === "object" && value !== null;
|
|
19066
18797
|
}
|
|
19067
18798
|
function pickRecordKeys(source, keys) {
|
|
19068
18799
|
return Object.fromEntries(keys.map((key) => [key, source[key]]));
|
|
19069
18800
|
}
|
|
19070
18801
|
function expectEncodedRecord(value, label) {
|
|
19071
|
-
if (
|
|
18802
|
+
if (isObjectRecord(value)) {
|
|
19072
18803
|
return value;
|
|
19073
18804
|
}
|
|
19074
18805
|
throw new Error(`Expected ${label} codec to encode an object`);
|
|
@@ -19100,7 +18831,7 @@ function createInteractiveIslandCodec(options) {
|
|
|
19100
18831
|
};
|
|
19101
18832
|
},
|
|
19102
18833
|
decode: (input) => {
|
|
19103
|
-
if (!
|
|
18834
|
+
if (!isObjectRecord(input)) {
|
|
19104
18835
|
return decodeFailure([{ path: [], message: "Expected island props object" }]);
|
|
19105
18836
|
}
|
|
19106
18837
|
const metaResult = options.meta.decode(pickRecordKeys(input, options.metaKeys));
|
|
@@ -19112,7 +18843,7 @@ function createInteractiveIslandCodec(options) {
|
|
|
19112
18843
|
});
|
|
19113
18844
|
}
|
|
19114
18845
|
const renderInput = input.render;
|
|
19115
|
-
if (!
|
|
18846
|
+
if (!isObjectRecord(renderInput)) {
|
|
19116
18847
|
renderIssues.push({
|
|
19117
18848
|
path: ["render"],
|
|
19118
18849
|
message: "Expected render object"
|
|
@@ -20564,6 +20295,19 @@ var init_media3 = __esm({
|
|
|
20564
20295
|
}
|
|
20565
20296
|
});
|
|
20566
20297
|
|
|
20298
|
+
// ../blocks/src/lib/typeGuards.ts
|
|
20299
|
+
function isRecord2(value) {
|
|
20300
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20301
|
+
}
|
|
20302
|
+
function isObjectRecord2(value) {
|
|
20303
|
+
return typeof value === "object" && value !== null;
|
|
20304
|
+
}
|
|
20305
|
+
var init_typeGuards = __esm({
|
|
20306
|
+
"../blocks/src/lib/typeGuards.ts"() {
|
|
20307
|
+
"use strict";
|
|
20308
|
+
}
|
|
20309
|
+
});
|
|
20310
|
+
|
|
20567
20311
|
// ../blocks/src/system/transforms/registry/content.ts
|
|
20568
20312
|
import { z as z39 } from "zod";
|
|
20569
20313
|
function getSiteName(context) {
|
|
@@ -31221,10 +30965,10 @@ function normalizeDataLoaders(def) {
|
|
|
31221
30965
|
}
|
|
31222
30966
|
function normalizeContent(block) {
|
|
31223
30967
|
const source = block.draftContent ?? block.content ?? block.publishedContent ?? {};
|
|
31224
|
-
if (!
|
|
30968
|
+
if (!isObjectRecord2(source)) return {};
|
|
31225
30969
|
if ("data" in source) {
|
|
31226
30970
|
const data = source.data;
|
|
31227
|
-
if (
|
|
30971
|
+
if (isObjectRecord2(data)) {
|
|
31228
30972
|
return data;
|
|
31229
30973
|
}
|
|
31230
30974
|
if (data === null || data === void 0) {
|
|
@@ -31363,7 +31107,7 @@ var init_prefetchBlockData = __esm({
|
|
|
31363
31107
|
|
|
31364
31108
|
// ../blocks/src/system/data/normalizeLoaderParams.ts
|
|
31365
31109
|
function toStringParams(value) {
|
|
31366
|
-
if (!
|
|
31110
|
+
if (!isObjectRecord2(value)) return {};
|
|
31367
31111
|
const out = {};
|
|
31368
31112
|
for (const [k, v] of Object.entries(value)) {
|
|
31369
31113
|
if (typeof v === "string") out[k] = v;
|
|
@@ -31436,6 +31180,233 @@ var init_data = __esm({
|
|
|
31436
31180
|
}
|
|
31437
31181
|
});
|
|
31438
31182
|
|
|
31183
|
+
// ../api/src/navigation/linkValue.ts
|
|
31184
|
+
var init_linkValue = __esm({
|
|
31185
|
+
"../api/src/navigation/linkValue.ts"() {
|
|
31186
|
+
"use strict";
|
|
31187
|
+
init_routableLink();
|
|
31188
|
+
}
|
|
31189
|
+
});
|
|
31190
|
+
|
|
31191
|
+
// ../api/src/redirects.ts
|
|
31192
|
+
var init_redirects = __esm({
|
|
31193
|
+
"../api/src/redirects.ts"() {
|
|
31194
|
+
"use strict";
|
|
31195
|
+
init_envelope();
|
|
31196
|
+
init_error_propagation();
|
|
31197
|
+
}
|
|
31198
|
+
});
|
|
31199
|
+
|
|
31200
|
+
// ../api/src/billing.ts
|
|
31201
|
+
var init_billing = __esm({
|
|
31202
|
+
"../api/src/billing.ts"() {
|
|
31203
|
+
"use strict";
|
|
31204
|
+
init_envelope();
|
|
31205
|
+
init_error_propagation();
|
|
31206
|
+
}
|
|
31207
|
+
});
|
|
31208
|
+
|
|
31209
|
+
// ../api/src/aiPatch.ts
|
|
31210
|
+
var init_aiPatch = __esm({
|
|
31211
|
+
"../api/src/aiPatch.ts"() {
|
|
31212
|
+
"use strict";
|
|
31213
|
+
init_envelope();
|
|
31214
|
+
}
|
|
31215
|
+
});
|
|
31216
|
+
|
|
31217
|
+
// ../api/src/aiPlayground.ts
|
|
31218
|
+
import { z as z63 } from "zod";
|
|
31219
|
+
var Rfc6902PatchOp, PlaygroundProposeRequest, MultiPagePatchEnvelope, MultiPageUpdateResponse;
|
|
31220
|
+
var init_aiPlayground = __esm({
|
|
31221
|
+
"../api/src/aiPlayground.ts"() {
|
|
31222
|
+
"use strict";
|
|
31223
|
+
Rfc6902PatchOp = z63.discriminatedUnion("op", [
|
|
31224
|
+
// Standard RFC-6902 operations
|
|
31225
|
+
z63.object({
|
|
31226
|
+
op: z63.literal("add"),
|
|
31227
|
+
path: z63.string(),
|
|
31228
|
+
value: z63.unknown()
|
|
31229
|
+
}),
|
|
31230
|
+
z63.object({
|
|
31231
|
+
op: z63.literal("remove"),
|
|
31232
|
+
path: z63.string()
|
|
31233
|
+
}),
|
|
31234
|
+
z63.object({
|
|
31235
|
+
op: z63.literal("replace"),
|
|
31236
|
+
path: z63.string(),
|
|
31237
|
+
value: z63.unknown()
|
|
31238
|
+
}),
|
|
31239
|
+
z63.object({
|
|
31240
|
+
op: z63.literal("move"),
|
|
31241
|
+
from: z63.string(),
|
|
31242
|
+
path: z63.string()
|
|
31243
|
+
}),
|
|
31244
|
+
z63.object({
|
|
31245
|
+
op: z63.literal("copy"),
|
|
31246
|
+
from: z63.string(),
|
|
31247
|
+
path: z63.string()
|
|
31248
|
+
}),
|
|
31249
|
+
// Block-level operations (Phase 2)
|
|
31250
|
+
z63.object({
|
|
31251
|
+
op: z63.literal("add_block"),
|
|
31252
|
+
blockKind: z63.string(),
|
|
31253
|
+
afterBlockId: z63.string().nullable(),
|
|
31254
|
+
content: z63.record(z63.string(), z63.unknown()),
|
|
31255
|
+
rationale: z63.string()
|
|
31256
|
+
}),
|
|
31257
|
+
z63.object({
|
|
31258
|
+
op: z63.literal("delete_block"),
|
|
31259
|
+
blockId: z63.string(),
|
|
31260
|
+
rationale: z63.string()
|
|
31261
|
+
}),
|
|
31262
|
+
z63.object({
|
|
31263
|
+
op: z63.literal("reorder_block"),
|
|
31264
|
+
blockId: z63.string(),
|
|
31265
|
+
afterBlockId: z63.string().nullable(),
|
|
31266
|
+
rationale: z63.string()
|
|
31267
|
+
})
|
|
31268
|
+
]);
|
|
31269
|
+
PlaygroundProposeRequest = z63.object({
|
|
31270
|
+
request: z63.string().min(1).max(2e3)
|
|
31271
|
+
});
|
|
31272
|
+
MultiPagePatchEnvelope = z63.object({
|
|
31273
|
+
pageId: z63.string(),
|
|
31274
|
+
blockId: z63.string().optional(),
|
|
31275
|
+
// Not present for page-level ops
|
|
31276
|
+
blockKind: z63.string().optional(),
|
|
31277
|
+
blockPurpose: z63.string().optional().nullable(),
|
|
31278
|
+
ops: z63.array(Rfc6902PatchOp),
|
|
31279
|
+
rationale: z63.string(),
|
|
31280
|
+
currentContent: z63.record(z63.string(), z63.unknown()).optional()
|
|
31281
|
+
});
|
|
31282
|
+
MultiPageUpdateResponse = z63.object({
|
|
31283
|
+
patches: z63.array(MultiPagePatchEnvelope),
|
|
31284
|
+
assistantMessage: z63.string(),
|
|
31285
|
+
pagesModified: z63.number(),
|
|
31286
|
+
toolCallsUsed: z63.number()
|
|
31287
|
+
});
|
|
31288
|
+
}
|
|
31289
|
+
});
|
|
31290
|
+
|
|
31291
|
+
// ../api/src/seo.ts
|
|
31292
|
+
var init_seo = __esm({
|
|
31293
|
+
"../api/src/seo.ts"() {
|
|
31294
|
+
"use strict";
|
|
31295
|
+
init_envelope();
|
|
31296
|
+
}
|
|
31297
|
+
});
|
|
31298
|
+
|
|
31299
|
+
// ../api/src/performance.ts
|
|
31300
|
+
var init_performance = __esm({
|
|
31301
|
+
"../api/src/performance.ts"() {
|
|
31302
|
+
"use strict";
|
|
31303
|
+
init_envelope();
|
|
31304
|
+
}
|
|
31305
|
+
});
|
|
31306
|
+
|
|
31307
|
+
// ../api/src/contentTypes.ts
|
|
31308
|
+
var init_contentTypes = __esm({
|
|
31309
|
+
"../api/src/contentTypes.ts"() {
|
|
31310
|
+
"use strict";
|
|
31311
|
+
init_envelope();
|
|
31312
|
+
init_error_propagation();
|
|
31313
|
+
}
|
|
31314
|
+
});
|
|
31315
|
+
|
|
31316
|
+
// ../api/src/domains.ts
|
|
31317
|
+
var init_domains = __esm({
|
|
31318
|
+
"../api/src/domains.ts"() {
|
|
31319
|
+
"use strict";
|
|
31320
|
+
init_envelope();
|
|
31321
|
+
init_error_propagation();
|
|
31322
|
+
}
|
|
31323
|
+
});
|
|
31324
|
+
|
|
31325
|
+
// ../api/src/admin.ts
|
|
31326
|
+
var init_admin = __esm({
|
|
31327
|
+
"../api/src/admin.ts"() {
|
|
31328
|
+
"use strict";
|
|
31329
|
+
init_envelope();
|
|
31330
|
+
init_error_propagation();
|
|
31331
|
+
}
|
|
31332
|
+
});
|
|
31333
|
+
|
|
31334
|
+
// ../api/src/auth.ts
|
|
31335
|
+
var init_auth = __esm({
|
|
31336
|
+
"../api/src/auth.ts"() {
|
|
31337
|
+
"use strict";
|
|
31338
|
+
init_request();
|
|
31339
|
+
init_envelope();
|
|
31340
|
+
init_error_propagation();
|
|
31341
|
+
}
|
|
31342
|
+
});
|
|
31343
|
+
|
|
31344
|
+
// ../api/src/index.ts
|
|
31345
|
+
var init_src3 = __esm({
|
|
31346
|
+
"../api/src/index.ts"() {
|
|
31347
|
+
"use strict";
|
|
31348
|
+
init_endpoints();
|
|
31349
|
+
init_media();
|
|
31350
|
+
init_contracts();
|
|
31351
|
+
init_contracts2();
|
|
31352
|
+
init_sdkContracts();
|
|
31353
|
+
init_incrementalJson();
|
|
31354
|
+
init_launchReadiness();
|
|
31355
|
+
init_url();
|
|
31356
|
+
init_envelope();
|
|
31357
|
+
init_request();
|
|
31358
|
+
init_env();
|
|
31359
|
+
init_bookingRefundOutcomes();
|
|
31360
|
+
init_customerMembershipOutcomes();
|
|
31361
|
+
init_bookingVerticals();
|
|
31362
|
+
init_appointmentSetup();
|
|
31363
|
+
init_bookings();
|
|
31364
|
+
init_cache_tags();
|
|
31365
|
+
init_streamReader();
|
|
31366
|
+
init_siteAnalytics();
|
|
31367
|
+
init_types2();
|
|
31368
|
+
init_eventAttendanceLabels();
|
|
31369
|
+
init_siteBanner();
|
|
31370
|
+
init_siteOnboarding();
|
|
31371
|
+
init_privacyPolicy();
|
|
31372
|
+
init_analytics();
|
|
31373
|
+
init_publicProducts();
|
|
31374
|
+
init_contentEntries();
|
|
31375
|
+
init_blocks();
|
|
31376
|
+
init_blocksKeys();
|
|
31377
|
+
init_contentKeys();
|
|
31378
|
+
init_pages();
|
|
31379
|
+
init_routes();
|
|
31380
|
+
init_bookings();
|
|
31381
|
+
init_emailSettings();
|
|
31382
|
+
init_eventEmailTemplates();
|
|
31383
|
+
init_resources();
|
|
31384
|
+
init_services();
|
|
31385
|
+
init_availability();
|
|
31386
|
+
init_calendar();
|
|
31387
|
+
init_navigation();
|
|
31388
|
+
init_navigationMenuValidation();
|
|
31389
|
+
init_routableLink();
|
|
31390
|
+
init_linkResolver();
|
|
31391
|
+
init_matcher();
|
|
31392
|
+
init_visibility();
|
|
31393
|
+
init_linkValue();
|
|
31394
|
+
init_redirects();
|
|
31395
|
+
init_billing();
|
|
31396
|
+
init_aiPatch();
|
|
31397
|
+
init_aiPlayground();
|
|
31398
|
+
init_seo();
|
|
31399
|
+
init_performance();
|
|
31400
|
+
init_contentTypes();
|
|
31401
|
+
init_analytics();
|
|
31402
|
+
init_siteMembers();
|
|
31403
|
+
init_domains();
|
|
31404
|
+
init_admin();
|
|
31405
|
+
init_auth();
|
|
31406
|
+
init_types2();
|
|
31407
|
+
}
|
|
31408
|
+
});
|
|
31409
|
+
|
|
31439
31410
|
// src/data/prefetchBlockData.ts
|
|
31440
31411
|
function isSupportedLoaderEndpoint(endpoint) {
|
|
31441
31412
|
return SUPPORTED_LOADER_ENDPOINTS2.includes(endpoint);
|