@riverbankcms/sdk 0.4.2 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -0
- package/dist/cli/index.js +3104 -120
- package/dist/cli/index.js.map +1 -1
- package/dist/client/analytics.js +1 -1
- package/dist/client/analytics.js.map +1 -1
- package/dist/client/analytics.mjs +1 -1
- package/dist/client/analytics.mjs.map +1 -1
- package/dist/client/bookings.js +6 -6
- package/dist/client/bookings.js.map +1 -1
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/bookings.mjs.map +1 -1
- package/dist/client/client.d.mts +2 -2
- package/dist/client/client.d.ts +2 -2
- package/dist/client/client.js +1368 -520
- package/dist/client/client.js.map +1 -1
- package/dist/client/client.mjs +1368 -520
- package/dist/client/client.mjs.map +1 -1
- package/dist/client/hooks.d.mts +2 -2
- package/dist/client/hooks.d.ts +2 -2
- package/dist/client/hooks.js +26 -11
- package/dist/client/hooks.js.map +1 -1
- package/dist/client/hooks.mjs +26 -11
- package/dist/client/hooks.mjs.map +1 -1
- package/dist/client/rendering/client.js +24 -14
- package/dist/client/rendering/client.js.map +1 -1
- package/dist/client/rendering/client.mjs +24 -14
- package/dist/client/rendering/client.mjs.map +1 -1
- package/dist/client/usePage--fGlyrgj.d.mts +6439 -0
- package/dist/client/usePage-BTPnCuWC.d.mts +6511 -0
- package/dist/client/usePage-BafOS9UT.d.mts +6512 -0
- package/dist/client/usePage-Bnx-kA6x.d.mts +6670 -0
- package/dist/client/usePage-CE7X5NcN.d.ts +6439 -0
- package/dist/client/usePage-DoPI6b8V.d.ts +6511 -0
- package/dist/client/usePage-QNWArrVO.d.ts +6670 -0
- package/dist/client/usePage-fBgPB6Oq.d.ts +6512 -0
- package/dist/server/{Layout-kRv5sU81.d.ts → Layout-B-q2Py4v.d.ts} +4 -4
- package/dist/server/{Layout-ByUnm35V.d.mts → Layout-Cc5HUXAH.d.mts} +4 -4
- package/dist/server/{chunk-6JBKKV3G.js → chunk-2KCF2DNK.js} +30 -10
- package/dist/server/chunk-2KCF2DNK.js.map +1 -0
- package/dist/server/{chunk-N3PX76AP.mjs → chunk-4HIRA33Z.mjs} +247 -135
- package/dist/server/chunk-4HIRA33Z.mjs.map +1 -0
- package/dist/server/chunk-5STV4MWD.js +189 -0
- package/dist/server/chunk-5STV4MWD.js.map +1 -0
- package/dist/server/{chunk-R5B6IOFQ.js → chunk-6OSNCH4F.js} +247 -135
- package/dist/server/chunk-6OSNCH4F.js.map +1 -0
- package/dist/server/{chunk-TKMA6D6U.js → chunk-7UPVCT3K.js} +1215 -497
- package/dist/server/chunk-7UPVCT3K.js.map +1 -0
- package/dist/server/{chunk-7DS4Q3GA.mjs → chunk-AEFWG657.mjs} +3 -3
- package/dist/server/chunk-AEFWG657.mjs.map +1 -0
- package/dist/server/{chunk-USQF2XTU.mjs → chunk-BYBJA6SP.mjs} +26 -11
- package/dist/server/chunk-BYBJA6SP.mjs.map +1 -0
- package/dist/server/{chunk-ZEAJW6T3.mjs → chunk-C6FIJC7T.mjs} +4 -3
- package/dist/server/chunk-C6FIJC7T.mjs.map +1 -0
- package/dist/server/{chunk-TO7FD6TQ.js → chunk-I2D7KOEA.js} +4 -4
- package/dist/server/{chunk-TO7FD6TQ.js.map → chunk-I2D7KOEA.js.map} +1 -1
- package/dist/server/chunk-KFLZGNPO.mjs +189 -0
- package/dist/server/chunk-KFLZGNPO.mjs.map +1 -0
- package/dist/server/chunk-L5EA4FXU.mjs +134 -0
- package/dist/server/chunk-L5EA4FXU.mjs.map +1 -0
- package/dist/server/{chunk-TNRADRPH.mjs → chunk-LNOUXALA.mjs} +1137 -419
- package/dist/server/chunk-LNOUXALA.mjs.map +1 -0
- package/dist/server/{chunk-SPXMMX3C.mjs → chunk-OSF34JTQ.mjs} +4 -4
- package/dist/server/{chunk-SWPHIUVE.js → chunk-P3NNN73G.js} +5 -4
- package/dist/server/chunk-P3NNN73G.js.map +1 -0
- package/dist/server/{chunk-I6K5REFT.mjs → chunk-P4K63SBZ.mjs} +24 -4
- package/dist/server/chunk-P4K63SBZ.mjs.map +1 -0
- package/dist/server/{chunk-HOY77YBF.js → chunk-RVDS7VSP.js} +5 -5
- package/dist/server/chunk-RVDS7VSP.js.map +1 -0
- package/dist/server/{chunk-NW5KHH4A.js → chunk-TT5JWA4X.js} +9 -9
- package/dist/server/{chunk-NW5KHH4A.js.map → chunk-TT5JWA4X.js.map} +1 -1
- package/dist/server/chunk-VSFQRHYZ.js +134 -0
- package/dist/server/chunk-VSFQRHYZ.js.map +1 -0
- package/dist/server/{chunk-EGTDJ4PL.js → chunk-YYO3RIFO.js} +26 -11
- package/dist/server/chunk-YYO3RIFO.js.map +1 -0
- package/dist/server/{chunk-OP2GHK27.mjs → chunk-Z5ZA6Q4D.mjs} +2 -2
- package/dist/server/{components-D1Z2mSDr.d.ts → components-CU46ZkAv.d.mts} +20 -75
- package/dist/server/{components-CY8jDQjv.d.mts → components-DvozDwRN.d.ts} +20 -75
- package/dist/server/components.d.mts +11 -8
- package/dist/server/components.d.ts +11 -8
- package/dist/server/components.js +5 -4
- package/dist/server/components.js.map +1 -1
- package/dist/server/components.mjs +4 -3
- package/dist/server/config-validation.d.mts +3 -3
- package/dist/server/config-validation.d.ts +3 -3
- package/dist/server/config-validation.js +9 -5
- package/dist/server/config-validation.js.map +1 -1
- package/dist/server/config-validation.mjs +8 -4
- package/dist/server/config.d.mts +243 -5
- package/dist/server/config.d.ts +243 -5
- package/dist/server/config.js +72 -5
- package/dist/server/config.js.map +1 -1
- package/dist/server/config.mjs +72 -5
- package/dist/server/config.mjs.map +1 -1
- package/dist/server/core-DsNWrl3o.d.mts +44 -0
- package/dist/server/core-DsNWrl3o.d.ts +44 -0
- package/dist/server/data.d.mts +4 -3
- package/dist/server/data.d.ts +4 -3
- package/dist/server/data.js +3 -3
- package/dist/server/data.mjs +2 -2
- package/dist/server/{index-DCIz9Ptv.d.ts → index-CJfMXZQr.d.ts} +2 -1
- package/dist/server/{index-DFQwtj3J.d.mts → index-Q7RLMAQ6.d.mts} +2 -1
- package/dist/server/index.d.mts +63 -6
- package/dist/server/index.d.ts +63 -6
- package/dist/server/index.js +91 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +90 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/link-DjxLyC82.d.mts +23 -0
- package/dist/server/link-DjxLyC82.d.ts +23 -0
- package/dist/server/{loadContent-CWuE8FCx.d.mts → loadContent-DgpSKWqY.d.mts} +4 -4
- package/dist/server/{loadContent-DynBuR5f.d.ts → loadContent-GPvUI1bN.d.ts} +4 -4
- package/dist/server/{loadPage-B8RmlYgV.d.mts → loadPage-DGnIK7s4.d.mts} +17 -47
- package/dist/server/loadPage-DNQTTRHL.mjs +11 -0
- package/dist/server/{loadPage-BTkKpizX.d.ts → loadPage-DW9WB-u9.d.ts} +17 -47
- package/dist/server/loadPage-IDGVDFBB.js +11 -0
- package/dist/server/{loadPage-DUHBXDEW.js.map → loadPage-IDGVDFBB.js.map} +1 -1
- package/dist/server/metadata.d.mts +6 -4
- package/dist/server/metadata.d.ts +6 -4
- package/dist/server/navigation.d.mts +199 -29
- package/dist/server/navigation.d.ts +199 -29
- package/dist/server/navigation.js +27 -43
- package/dist/server/navigation.js.map +1 -1
- package/dist/server/navigation.mjs +20 -36
- package/dist/server/navigation.mjs.map +1 -1
- package/dist/server/rendering/server.d.mts +8 -6
- package/dist/server/rendering/server.d.ts +8 -6
- package/dist/server/rendering/server.js +7 -6
- package/dist/server/rendering/server.js.map +1 -1
- package/dist/server/rendering/server.mjs +6 -5
- package/dist/server/rendering.d.mts +14 -10
- package/dist/server/rendering.d.ts +14 -10
- package/dist/server/rendering.js +9 -8
- package/dist/server/rendering.js.map +1 -1
- package/dist/server/rendering.mjs +8 -7
- package/dist/server/richTextSchema-DURiozvD.d.mts +62 -0
- package/dist/server/richTextSchema-DURiozvD.d.ts +62 -0
- package/dist/server/routing.d.mts +178 -11
- package/dist/server/routing.d.ts +178 -11
- package/dist/server/routing.js +95 -2
- package/dist/server/routing.js.map +1 -1
- package/dist/server/routing.mjs +94 -1
- package/dist/server/routing.mjs.map +1 -1
- package/dist/server/{schema-Bpy9N5ZI.d.ts → schema-Z6-afHJG.d.mts} +1 -1
- package/dist/server/{schema-Bpy9N5ZI.d.mts → schema-Z6-afHJG.d.ts} +1 -1
- package/dist/server/server.d.mts +9 -7
- package/dist/server/server.d.ts +9 -7
- package/dist/server/server.js +6 -6
- package/dist/server/server.mjs +5 -5
- package/dist/server/theme-bridge.js +8 -8
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/{types-oCM-fw4O.d.ts → types-0f4PIlgx.d.mts} +55 -2
- package/dist/server/{types-txWsSxN7.d.mts → types-BjgZt8xJ.d.mts} +63 -2
- package/dist/server/{types-BiRZnxDx.d.ts → types-C28kMfa1.d.ts} +256 -82
- package/dist/server/{types-CL916r6x.d.ts → types-DLBhEPSt.d.ts} +63 -2
- package/dist/server/{types-CdrJqlKx.d.mts → types-DuzJZKJI.d.mts} +256 -82
- package/dist/server/{types-DkKEctWn.d.mts → types-kOQyCFXO.d.ts} +55 -2
- package/dist/server/{validation-DzvDwwRo.d.mts → validation-BGuRo8P1.d.mts} +18 -5
- package/dist/server/{validation-CoU8uAiu.d.ts → validation-DU2YE7u5.d.ts} +18 -5
- package/package.json +5 -3
- package/dist/server/chunk-6JBKKV3G.js.map +0 -1
- package/dist/server/chunk-7BOIO2S7.mjs +0 -833
- package/dist/server/chunk-7BOIO2S7.mjs.map +0 -1
- package/dist/server/chunk-7DS4Q3GA.mjs.map +0 -1
- package/dist/server/chunk-BLKVTULP.js +0 -833
- package/dist/server/chunk-BLKVTULP.js.map +0 -1
- package/dist/server/chunk-EGTDJ4PL.js.map +0 -1
- package/dist/server/chunk-HOY77YBF.js.map +0 -1
- package/dist/server/chunk-I6K5REFT.mjs.map +0 -1
- package/dist/server/chunk-N3PX76AP.mjs.map +0 -1
- package/dist/server/chunk-R5B6IOFQ.js.map +0 -1
- package/dist/server/chunk-SWPHIUVE.js.map +0 -1
- package/dist/server/chunk-TKMA6D6U.js.map +0 -1
- package/dist/server/chunk-TNRADRPH.mjs.map +0 -1
- package/dist/server/chunk-USQF2XTU.mjs.map +0 -1
- package/dist/server/chunk-ZEAJW6T3.mjs.map +0 -1
- package/dist/server/loadPage-DUHBXDEW.js +0 -11
- package/dist/server/loadPage-LYVKY3WZ.mjs +0 -11
- /package/dist/server/{chunk-SPXMMX3C.mjs.map → chunk-OSF34JTQ.mjs.map} +0 -0
- /package/dist/server/{chunk-OP2GHK27.mjs.map → chunk-Z5ZA6Q4D.mjs.map} +0 -0
- /package/dist/server/{loadPage-LYVKY3WZ.mjs.map → loadPage-DNQTTRHL.mjs.map} +0 -0
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { AIChatMessage } from '@riverbankcms/ai';
|
|
2
|
-
import { S as SdkCustomBlock } from './schema-
|
|
2
|
+
import { S as SdkCustomBlock } from './schema-Z6-afHJG.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
+
import { L as LinkValue } from './link-DjxLyC82.js';
|
|
4
5
|
import { ListMediaAssetsResult, MediaAssetWithLabels } from '@riverbankcms/media-storage-supabase';
|
|
5
6
|
import { ImpersonationScope, DbRow, CamelizeKeys, DbJson, DbDatabase } from '@riverbankcms/db';
|
|
6
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Common types shared between public and internal API modules.
|
|
10
|
+
* These types form the foundation of the API type system.
|
|
11
|
+
*/
|
|
12
|
+
type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD';
|
|
13
|
+
type ApiResponseKind = 'json' | 'stream' | 'text' | 'void';
|
|
14
|
+
type ApiAuthRequirement = 'public' | 'user' | 'admin' | 'service';
|
|
15
|
+
|
|
7
16
|
type BillingInterval = 'monthly' | 'annual';
|
|
8
17
|
type FeatureKey = 'sites.multiple' | 'ai.workflows' | 'support.priority' | 'themes.advanced' | 'limits.highUsage' | 'collaboration.admin' | 'collaboration.editor';
|
|
9
18
|
|
|
@@ -143,153 +152,181 @@ declare const themeSchema: z.ZodObject<{
|
|
|
143
152
|
normal: "normal";
|
|
144
153
|
smallCaps: "smallCaps";
|
|
145
154
|
}>>;
|
|
155
|
+
italic: z.ZodNullable<z.ZodBoolean>;
|
|
146
156
|
}, z.core.$strip>;
|
|
147
157
|
h1: z.ZodObject<{
|
|
148
|
-
weight: z.ZodNullable<z.ZodEnum<{
|
|
158
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
149
159
|
bold: "bold";
|
|
150
160
|
medium: "medium";
|
|
151
161
|
light: "light";
|
|
152
162
|
regular: "regular";
|
|
153
163
|
semibold: "semibold";
|
|
154
|
-
}
|
|
155
|
-
letterSpacing: z.ZodNullable<z.ZodEnum<{
|
|
164
|
+
}>>>;
|
|
165
|
+
letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
156
166
|
normal: "normal";
|
|
157
167
|
loose: "loose";
|
|
158
168
|
tight: "tight";
|
|
159
|
-
}
|
|
160
|
-
size: z.ZodNullable<z.ZodEnum<{
|
|
169
|
+
}>>>;
|
|
170
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
171
|
+
xs: "xs";
|
|
172
|
+
sm: "sm";
|
|
161
173
|
md: "md";
|
|
162
174
|
lg: "lg";
|
|
163
175
|
xl: "xl";
|
|
164
|
-
|
|
165
|
-
|
|
176
|
+
"2xl": "2xl";
|
|
177
|
+
}>>>;
|
|
178
|
+
lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
166
179
|
normal: "normal";
|
|
167
180
|
loose: "loose";
|
|
168
181
|
relaxed: "relaxed";
|
|
169
|
-
}
|
|
182
|
+
}>>>;
|
|
183
|
+
italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
170
184
|
}, z.core.$strip>;
|
|
171
185
|
h2: z.ZodObject<{
|
|
172
|
-
weight: z.ZodNullable<z.ZodEnum<{
|
|
186
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
173
187
|
bold: "bold";
|
|
174
188
|
medium: "medium";
|
|
175
189
|
light: "light";
|
|
176
190
|
regular: "regular";
|
|
177
191
|
semibold: "semibold";
|
|
178
|
-
}
|
|
179
|
-
letterSpacing: z.ZodNullable<z.ZodEnum<{
|
|
192
|
+
}>>>;
|
|
193
|
+
letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
180
194
|
normal: "normal";
|
|
181
195
|
loose: "loose";
|
|
182
196
|
tight: "tight";
|
|
183
|
-
}
|
|
184
|
-
size: z.ZodNullable<z.ZodEnum<{
|
|
197
|
+
}>>>;
|
|
198
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
199
|
+
xs: "xs";
|
|
200
|
+
sm: "sm";
|
|
185
201
|
md: "md";
|
|
186
202
|
lg: "lg";
|
|
187
203
|
xl: "xl";
|
|
188
|
-
|
|
189
|
-
|
|
204
|
+
"2xl": "2xl";
|
|
205
|
+
}>>>;
|
|
206
|
+
lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
190
207
|
normal: "normal";
|
|
191
208
|
loose: "loose";
|
|
192
209
|
relaxed: "relaxed";
|
|
193
|
-
}
|
|
210
|
+
}>>>;
|
|
211
|
+
italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
194
212
|
}, z.core.$strip>;
|
|
195
213
|
h3: z.ZodObject<{
|
|
196
|
-
weight: z.ZodNullable<z.ZodEnum<{
|
|
214
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
197
215
|
bold: "bold";
|
|
198
216
|
medium: "medium";
|
|
199
217
|
light: "light";
|
|
200
218
|
regular: "regular";
|
|
201
219
|
semibold: "semibold";
|
|
202
|
-
}
|
|
203
|
-
letterSpacing: z.ZodNullable<z.ZodEnum<{
|
|
220
|
+
}>>>;
|
|
221
|
+
letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
204
222
|
normal: "normal";
|
|
205
223
|
loose: "loose";
|
|
206
224
|
tight: "tight";
|
|
207
|
-
}
|
|
208
|
-
size: z.ZodNullable<z.ZodEnum<{
|
|
225
|
+
}>>>;
|
|
226
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
227
|
+
xs: "xs";
|
|
228
|
+
sm: "sm";
|
|
209
229
|
md: "md";
|
|
210
230
|
lg: "lg";
|
|
211
231
|
xl: "xl";
|
|
212
|
-
|
|
213
|
-
|
|
232
|
+
"2xl": "2xl";
|
|
233
|
+
}>>>;
|
|
234
|
+
lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
214
235
|
normal: "normal";
|
|
215
236
|
loose: "loose";
|
|
216
237
|
relaxed: "relaxed";
|
|
217
|
-
}
|
|
238
|
+
}>>>;
|
|
239
|
+
italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
218
240
|
}, z.core.$strip>;
|
|
219
241
|
h4: z.ZodOptional<z.ZodObject<{
|
|
220
|
-
weight: z.ZodNullable<z.ZodEnum<{
|
|
242
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
221
243
|
bold: "bold";
|
|
222
244
|
medium: "medium";
|
|
223
245
|
light: "light";
|
|
224
246
|
regular: "regular";
|
|
225
247
|
semibold: "semibold";
|
|
226
|
-
}
|
|
227
|
-
letterSpacing: z.ZodNullable<z.ZodEnum<{
|
|
248
|
+
}>>>;
|
|
249
|
+
letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
228
250
|
normal: "normal";
|
|
229
251
|
loose: "loose";
|
|
230
252
|
tight: "tight";
|
|
231
|
-
}
|
|
232
|
-
size: z.ZodNullable<z.ZodEnum<{
|
|
253
|
+
}>>>;
|
|
254
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
255
|
+
xs: "xs";
|
|
256
|
+
sm: "sm";
|
|
233
257
|
md: "md";
|
|
234
258
|
lg: "lg";
|
|
235
259
|
xl: "xl";
|
|
236
|
-
|
|
237
|
-
|
|
260
|
+
"2xl": "2xl";
|
|
261
|
+
}>>>;
|
|
262
|
+
lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
238
263
|
normal: "normal";
|
|
239
264
|
loose: "loose";
|
|
240
265
|
relaxed: "relaxed";
|
|
241
|
-
}
|
|
266
|
+
}>>>;
|
|
267
|
+
italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
242
268
|
}, z.core.$strip>>;
|
|
243
269
|
h5: z.ZodOptional<z.ZodObject<{
|
|
244
|
-
weight: z.ZodNullable<z.ZodEnum<{
|
|
270
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
245
271
|
bold: "bold";
|
|
246
272
|
medium: "medium";
|
|
247
273
|
light: "light";
|
|
248
274
|
regular: "regular";
|
|
249
275
|
semibold: "semibold";
|
|
250
|
-
}
|
|
251
|
-
letterSpacing: z.ZodNullable<z.ZodEnum<{
|
|
276
|
+
}>>>;
|
|
277
|
+
letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
252
278
|
normal: "normal";
|
|
253
279
|
loose: "loose";
|
|
254
280
|
tight: "tight";
|
|
255
|
-
}
|
|
256
|
-
size: z.ZodNullable<z.ZodEnum<{
|
|
281
|
+
}>>>;
|
|
282
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
283
|
+
xs: "xs";
|
|
284
|
+
sm: "sm";
|
|
257
285
|
md: "md";
|
|
258
286
|
lg: "lg";
|
|
259
287
|
xl: "xl";
|
|
260
|
-
|
|
261
|
-
|
|
288
|
+
"2xl": "2xl";
|
|
289
|
+
}>>>;
|
|
290
|
+
lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
262
291
|
normal: "normal";
|
|
263
292
|
loose: "loose";
|
|
264
293
|
relaxed: "relaxed";
|
|
265
|
-
}
|
|
294
|
+
}>>>;
|
|
295
|
+
italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
266
296
|
}, z.core.$strip>>;
|
|
267
297
|
h6: z.ZodOptional<z.ZodObject<{
|
|
268
|
-
weight: z.ZodNullable<z.ZodEnum<{
|
|
298
|
+
weight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
269
299
|
bold: "bold";
|
|
270
300
|
medium: "medium";
|
|
271
301
|
light: "light";
|
|
272
302
|
regular: "regular";
|
|
273
303
|
semibold: "semibold";
|
|
274
|
-
}
|
|
275
|
-
letterSpacing: z.ZodNullable<z.ZodEnum<{
|
|
304
|
+
}>>>;
|
|
305
|
+
letterSpacing: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
276
306
|
normal: "normal";
|
|
277
307
|
loose: "loose";
|
|
278
308
|
tight: "tight";
|
|
279
|
-
}
|
|
280
|
-
size: z.ZodNullable<z.ZodEnum<{
|
|
309
|
+
}>>>;
|
|
310
|
+
size: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
311
|
+
xs: "xs";
|
|
312
|
+
sm: "sm";
|
|
281
313
|
md: "md";
|
|
282
314
|
lg: "lg";
|
|
283
315
|
xl: "xl";
|
|
284
|
-
|
|
285
|
-
|
|
316
|
+
"2xl": "2xl";
|
|
317
|
+
}>>>;
|
|
318
|
+
lineHeight: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
286
319
|
normal: "normal";
|
|
287
320
|
loose: "loose";
|
|
288
321
|
relaxed: "relaxed";
|
|
289
|
-
}
|
|
322
|
+
}>>>;
|
|
323
|
+
italic: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
290
324
|
}, z.core.$strip>>;
|
|
291
325
|
}, z.core.$strip>;
|
|
292
326
|
scale: z.ZodEnum<{
|
|
327
|
+
compact: "compact";
|
|
328
|
+
spacious: "spacious";
|
|
329
|
+
balanced: "balanced";
|
|
293
330
|
minorThird: "minorThird";
|
|
294
331
|
majorThird: "majorThird";
|
|
295
332
|
perfectFourth: "perfectFourth";
|
|
@@ -438,6 +475,7 @@ declare const themeSchema: z.ZodObject<{
|
|
|
438
475
|
}, z.core.$strip>>>;
|
|
439
476
|
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
440
477
|
}, z.core.$strip>>;
|
|
478
|
+
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
441
479
|
navStyle: z.ZodEnum<{
|
|
442
480
|
solid: "solid";
|
|
443
481
|
underline: "underline";
|
|
@@ -522,6 +560,56 @@ declare const themeSchema: z.ZodObject<{
|
|
|
522
560
|
tint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
523
561
|
opacity: z.ZodDefault<z.ZodNumber>;
|
|
524
562
|
}, z.core.$strip>>;
|
|
563
|
+
navLinkStyle: z.ZodOptional<z.ZodObject<{
|
|
564
|
+
colorToken: z.ZodDefault<z.ZodString>;
|
|
565
|
+
hoverColorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
566
|
+
padding: z.ZodDefault<z.ZodEnum<{
|
|
567
|
+
default: "default";
|
|
568
|
+
none: "none";
|
|
569
|
+
compact: "compact";
|
|
570
|
+
}>>;
|
|
571
|
+
borderRadius: z.ZodDefault<z.ZodEnum<{
|
|
572
|
+
full: "full";
|
|
573
|
+
none: "none";
|
|
574
|
+
sm: "sm";
|
|
575
|
+
md: "md";
|
|
576
|
+
}>>;
|
|
577
|
+
effects: z.ZodOptional<z.ZodObject<{
|
|
578
|
+
base: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
579
|
+
effectId: z.ZodString;
|
|
580
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
581
|
+
}, z.core.$strip>>>;
|
|
582
|
+
hover: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
583
|
+
effectId: z.ZodString;
|
|
584
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
585
|
+
}, z.core.$strip>>>;
|
|
586
|
+
active: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
587
|
+
effectId: z.ZodString;
|
|
588
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
589
|
+
}, z.core.$strip>>>;
|
|
590
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
591
|
+
effectId: z.ZodString;
|
|
592
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
593
|
+
}, z.core.$strip>>>;
|
|
594
|
+
}, z.core.$strip>>;
|
|
595
|
+
typography: z.ZodDefault<z.ZodEnum<{
|
|
596
|
+
heading: "heading";
|
|
597
|
+
body: "body";
|
|
598
|
+
}>>;
|
|
599
|
+
fontWeight: z.ZodDefault<z.ZodEnum<{
|
|
600
|
+
bold: "bold";
|
|
601
|
+
medium: "medium";
|
|
602
|
+
regular: "regular";
|
|
603
|
+
semibold: "semibold";
|
|
604
|
+
}>>;
|
|
605
|
+
textTransform: z.ZodDefault<z.ZodEnum<{
|
|
606
|
+
none: "none";
|
|
607
|
+
uppercase: "uppercase";
|
|
608
|
+
capitalize: "capitalize";
|
|
609
|
+
}>>;
|
|
610
|
+
italic: z.ZodDefault<z.ZodBoolean>;
|
|
611
|
+
name: z.ZodOptional<z.ZodString>;
|
|
612
|
+
}, z.core.$strip>>;
|
|
525
613
|
}, z.core.$strip>;
|
|
526
614
|
footer: z.ZodObject<{
|
|
527
615
|
variant: z.ZodEnum<{
|
|
@@ -576,6 +664,72 @@ declare const themeSchema: z.ZodObject<{
|
|
|
576
664
|
}, z.core.$strip>>>;
|
|
577
665
|
textColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
578
666
|
}, z.core.$strip>>;
|
|
667
|
+
navStyle: z.ZodDefault<z.ZodEnum<{
|
|
668
|
+
solid: "solid";
|
|
669
|
+
underline: "underline";
|
|
670
|
+
scale: "scale";
|
|
671
|
+
minimal: "minimal";
|
|
672
|
+
"underline-grow": "underline-grow";
|
|
673
|
+
capsule: "capsule";
|
|
674
|
+
frosted: "frosted";
|
|
675
|
+
}>>;
|
|
676
|
+
navColor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
677
|
+
navWeight: z.ZodDefault<z.ZodEnum<{
|
|
678
|
+
bold: "bold";
|
|
679
|
+
medium: "medium";
|
|
680
|
+
regular: "regular";
|
|
681
|
+
semibold: "semibold";
|
|
682
|
+
}>>;
|
|
683
|
+
navLinkStyle: z.ZodOptional<z.ZodObject<{
|
|
684
|
+
colorToken: z.ZodDefault<z.ZodString>;
|
|
685
|
+
hoverColorToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
686
|
+
padding: z.ZodDefault<z.ZodEnum<{
|
|
687
|
+
default: "default";
|
|
688
|
+
none: "none";
|
|
689
|
+
compact: "compact";
|
|
690
|
+
}>>;
|
|
691
|
+
borderRadius: z.ZodDefault<z.ZodEnum<{
|
|
692
|
+
full: "full";
|
|
693
|
+
none: "none";
|
|
694
|
+
sm: "sm";
|
|
695
|
+
md: "md";
|
|
696
|
+
}>>;
|
|
697
|
+
effects: z.ZodOptional<z.ZodObject<{
|
|
698
|
+
base: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
699
|
+
effectId: z.ZodString;
|
|
700
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
701
|
+
}, z.core.$strip>>>;
|
|
702
|
+
hover: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
703
|
+
effectId: z.ZodString;
|
|
704
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
705
|
+
}, z.core.$strip>>>;
|
|
706
|
+
active: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
707
|
+
effectId: z.ZodString;
|
|
708
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
709
|
+
}, z.core.$strip>>>;
|
|
710
|
+
focus: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
711
|
+
effectId: z.ZodString;
|
|
712
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
713
|
+
}, z.core.$strip>>>;
|
|
714
|
+
}, z.core.$strip>>;
|
|
715
|
+
typography: z.ZodDefault<z.ZodEnum<{
|
|
716
|
+
heading: "heading";
|
|
717
|
+
body: "body";
|
|
718
|
+
}>>;
|
|
719
|
+
fontWeight: z.ZodDefault<z.ZodEnum<{
|
|
720
|
+
bold: "bold";
|
|
721
|
+
medium: "medium";
|
|
722
|
+
regular: "regular";
|
|
723
|
+
semibold: "semibold";
|
|
724
|
+
}>>;
|
|
725
|
+
textTransform: z.ZodDefault<z.ZodEnum<{
|
|
726
|
+
none: "none";
|
|
727
|
+
uppercase: "uppercase";
|
|
728
|
+
capitalize: "capitalize";
|
|
729
|
+
}>>;
|
|
730
|
+
italic: z.ZodDefault<z.ZodBoolean>;
|
|
731
|
+
name: z.ZodOptional<z.ZodString>;
|
|
732
|
+
}, z.core.$strip>>;
|
|
579
733
|
}, z.core.$strip>;
|
|
580
734
|
buttons: z.ZodOptional<z.ZodObject<{
|
|
581
735
|
global: z.ZodObject<{
|
|
@@ -599,6 +753,16 @@ declare const themeSchema: z.ZodObject<{
|
|
|
599
753
|
}>;
|
|
600
754
|
fontWeight: z.ZodUnion<readonly [z.ZodLiteral<500>, z.ZodLiteral<600>, z.ZodLiteral<700>]>;
|
|
601
755
|
borderWidth: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
756
|
+
typography: z.ZodOptional<z.ZodEnum<{
|
|
757
|
+
heading: "heading";
|
|
758
|
+
body: "body";
|
|
759
|
+
}>>;
|
|
760
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
761
|
+
paddingPreset: z.ZodOptional<z.ZodEnum<{
|
|
762
|
+
default: "default";
|
|
763
|
+
compact: "compact";
|
|
764
|
+
spacious: "spacious";
|
|
765
|
+
}>>;
|
|
602
766
|
hoverTransform: z.ZodEnum<{
|
|
603
767
|
none: "none";
|
|
604
768
|
scale: "scale";
|
|
@@ -607,10 +771,12 @@ declare const themeSchema: z.ZodObject<{
|
|
|
607
771
|
}>;
|
|
608
772
|
hoverColor: z.ZodEnum<{
|
|
609
773
|
none: "none";
|
|
774
|
+
token: "token";
|
|
610
775
|
darken: "darken";
|
|
611
776
|
brighten: "brighten";
|
|
612
777
|
saturate: "saturate";
|
|
613
778
|
}>;
|
|
779
|
+
hoverColorToken: z.ZodOptional<z.ZodString>;
|
|
614
780
|
gradientStyle: z.ZodOptional<z.ZodEnum<{
|
|
615
781
|
linear: "linear";
|
|
616
782
|
radial: "radial";
|
|
@@ -672,6 +838,7 @@ declare const themeSchema: z.ZodObject<{
|
|
|
672
838
|
}, z.core.$strip>>;
|
|
673
839
|
padding: z.ZodOptional<z.ZodString>;
|
|
674
840
|
fontSize: z.ZodOptional<z.ZodString>;
|
|
841
|
+
hoverBackgroundToken: z.ZodOptional<z.ZodString>;
|
|
675
842
|
effects: z.ZodOptional<z.ZodObject<{
|
|
676
843
|
base: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
677
844
|
effectId: z.ZodString;
|
|
@@ -935,28 +1102,6 @@ type HydratedTheme = Omit<Theme, 'palette'> & {
|
|
|
935
1102
|
|
|
936
1103
|
type SiteHeaderContent = Record<string, never>;
|
|
937
1104
|
|
|
938
|
-
type InternalLinkValue = {
|
|
939
|
-
kind: 'internal';
|
|
940
|
-
routeId: string;
|
|
941
|
-
entityId: string;
|
|
942
|
-
entityType: 'page' | 'content';
|
|
943
|
-
href: string;
|
|
944
|
-
title: string;
|
|
945
|
-
typeLabel: string;
|
|
946
|
-
contentTypeKey?: string | null;
|
|
947
|
-
contentTypeName?: string | null;
|
|
948
|
-
updatedAt?: string | null;
|
|
949
|
-
};
|
|
950
|
-
type ExternalLinkValue = {
|
|
951
|
-
kind: 'external';
|
|
952
|
-
href: string;
|
|
953
|
-
};
|
|
954
|
-
type CustomLinkValue = {
|
|
955
|
-
kind: 'url';
|
|
956
|
-
href: string;
|
|
957
|
-
};
|
|
958
|
-
type LinkValue = InternalLinkValue | ExternalLinkValue | CustomLinkValue;
|
|
959
|
-
|
|
960
1105
|
type SiteFooterLink = {
|
|
961
1106
|
label: string;
|
|
962
1107
|
link: LinkValue | null;
|
|
@@ -1105,9 +1250,6 @@ interface RiverbankSiteConfig {
|
|
|
1105
1250
|
customBlocks?: SdkCustomBlock[];
|
|
1106
1251
|
blockFieldOptions?: SdkBlockFieldOptionsMap;
|
|
1107
1252
|
}
|
|
1108
|
-
type HTTPMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD";
|
|
1109
|
-
type ApiResponseKind = 'json' | 'stream' | 'text' | 'void';
|
|
1110
|
-
type ApiAuthRequirement = 'public' | 'user' | 'admin' | 'service';
|
|
1111
1253
|
|
|
1112
1254
|
type APIEndpoint<TBody = unknown, TQuery = unknown, TResponse = unknown> = {
|
|
1113
1255
|
path: string;
|
|
@@ -2293,6 +2435,8 @@ type SiteBySlugResponse = {
|
|
|
2293
2435
|
layout: SiteLayoutResolvedPayload;
|
|
2294
2436
|
customDomain: string | null;
|
|
2295
2437
|
sdkConfig?: RiverbankSiteConfig | null;
|
|
2438
|
+
/** Supabase storage URL for direct image access (SDK sites use this instead of env var) */
|
|
2439
|
+
supabaseUrl?: string;
|
|
2296
2440
|
};
|
|
2297
2441
|
type BlockWithContentResponse = {
|
|
2298
2442
|
id: string;
|
|
@@ -2334,6 +2478,7 @@ type CreateManualSiteRequest = {
|
|
|
2334
2478
|
scaffoldContact?: boolean;
|
|
2335
2479
|
scaffoldBlog?: boolean;
|
|
2336
2480
|
invitees?: SiteInvitee[];
|
|
2481
|
+
userId?: string;
|
|
2337
2482
|
};
|
|
2338
2483
|
type CreateManualSiteResponse = {
|
|
2339
2484
|
siteId: string;
|
|
@@ -3286,6 +3431,21 @@ type APIEndpoints = {
|
|
|
3286
3431
|
address: string | null;
|
|
3287
3432
|
} | null;
|
|
3288
3433
|
}>>;
|
|
3434
|
+
resolveEventOccurrence: APIEndpoint<never, {
|
|
3435
|
+
siteId: string;
|
|
3436
|
+
entryId: string;
|
|
3437
|
+
segment: string;
|
|
3438
|
+
}, {
|
|
3439
|
+
occurrence: {
|
|
3440
|
+
id: string;
|
|
3441
|
+
seriesId: string;
|
|
3442
|
+
startsAt: string;
|
|
3443
|
+
endsAt: string;
|
|
3444
|
+
status: string;
|
|
3445
|
+
capacityOverride: number | null;
|
|
3446
|
+
overridesJson: Record<string, unknown>;
|
|
3447
|
+
} | null;
|
|
3448
|
+
}>;
|
|
3289
3449
|
registerForEvent: APIEndpoint<{
|
|
3290
3450
|
occurrenceId: string;
|
|
3291
3451
|
email: string;
|
|
@@ -3451,7 +3611,7 @@ type APIEndpoints = {
|
|
|
3451
3611
|
}, DeleteBlackoutResponse>;
|
|
3452
3612
|
getAvailableSlots: APIEndpoint<GetAvailableSlotsQuery, {
|
|
3453
3613
|
siteId: string;
|
|
3454
|
-
}
|
|
3614
|
+
}, GetAvailableSlotsResponse>;
|
|
3455
3615
|
createAppointment: APIEndpoint<CreateAppointmentRequest, {
|
|
3456
3616
|
siteId: string;
|
|
3457
3617
|
}, CreateAppointmentResponse>;
|
|
@@ -3503,26 +3663,40 @@ type APIEndpoints = {
|
|
|
3503
3663
|
previewBackup: APIEndpoint<FormData, never, BackupPreviewResponse>;
|
|
3504
3664
|
importBackupAsNewSite: APIEndpoint<FormData, never, ImportBackupAsNewSiteResponse>;
|
|
3505
3665
|
};
|
|
3666
|
+
type RequiredKeys<T> = {
|
|
3667
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
|
|
3668
|
+
}[keyof T];
|
|
3669
|
+
type HasRequiredKeys<T> = RequiredKeys<T> extends never ? false : true;
|
|
3670
|
+
type IsNonEmptyQuery<T> = [
|
|
3671
|
+
T
|
|
3672
|
+
] extends [never] ? false : T extends undefined ? false : keyof T extends never ? false : true;
|
|
3673
|
+
type QueryToStringParams<T> = {
|
|
3674
|
+
[K in keyof T]: string;
|
|
3675
|
+
};
|
|
3676
|
+
type ParamsPart<E extends keyof APIEndpoints> = IsNonEmptyQuery<APIEndpoints[E]['query']> extends false ? {
|
|
3677
|
+
params?: Record<string, string>;
|
|
3678
|
+
} : HasRequiredKeys<APIEndpoints[E]['query']> extends true ? {
|
|
3679
|
+
params: QueryToStringParams<APIEndpoints[E]['query']>;
|
|
3680
|
+
} : {
|
|
3681
|
+
params?: QueryToStringParams<APIEndpoints[E]['query']>;
|
|
3682
|
+
};
|
|
3506
3683
|
type APICallParams<E extends keyof APIEndpoints> = APIEndpoints[E] extends {
|
|
3507
3684
|
method: 'GET';
|
|
3508
3685
|
} ? {
|
|
3509
3686
|
endpoint: E;
|
|
3510
3687
|
body?: APIEndpoints[E]['body'];
|
|
3511
|
-
params?: APIEndpoints[E]['query'] extends Record<string, any> ? Record<keyof APIEndpoints[E]['query'], string> : Record<string, string>;
|
|
3512
3688
|
options?: RequestInit;
|
|
3513
|
-
} : APIEndpoints[E] extends {
|
|
3689
|
+
} & ParamsPart<E> : APIEndpoints[E] extends {
|
|
3514
3690
|
method: 'POST' | 'PUT' | 'PATCH';
|
|
3515
3691
|
} ? {
|
|
3516
3692
|
endpoint: E;
|
|
3517
3693
|
body: APIEndpoints[E]['body'];
|
|
3518
|
-
params?: APIEndpoints[E]['query'] extends Record<string, any> ? Record<keyof APIEndpoints[E]['query'], string> : Record<string, string>;
|
|
3519
3694
|
options?: RequestInit;
|
|
3520
|
-
} : {
|
|
3695
|
+
} & ParamsPart<E> : {
|
|
3521
3696
|
endpoint: E;
|
|
3522
3697
|
body?: APIEndpoints[E]['body'];
|
|
3523
|
-
params?: APIEndpoints[E]['query'] extends Record<string, any> ? Record<keyof APIEndpoints[E]['query'], string> : Record<string, string>;
|
|
3524
3698
|
options?: RequestInit;
|
|
3525
|
-
}
|
|
3699
|
+
} & ParamsPart<E>;
|
|
3526
3700
|
type AiPatchPageMetaOp = {
|
|
3527
3701
|
type: 'pageMeta';
|
|
3528
3702
|
set: {
|
|
@@ -4053,4 +4227,4 @@ type ImportBackupAsNewSiteResponse = {
|
|
|
4053
4227
|
code?: string;
|
|
4054
4228
|
};
|
|
4055
4229
|
|
|
4056
|
-
export type { APIEndpoints as A,
|
|
4230
|
+
export type { APIEndpoints as A, ExpandedPalette as E, HydratedTheme as H, LinkPayload as L, NavigationMenuWithItems as N, SiteHeaderContent as S, Theme as T, NavigationItemRecord as a, APICallParams as b, SiteFooterContent as c };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FieldDefinition, S as SdkCustomBlock } from './schema-
|
|
1
|
+
import { F as FieldDefinition, S as SdkCustomBlock } from './schema-Z6-afHJG.js';
|
|
2
2
|
import { B as BlockKind } from './blockKinds-B6MWzNWp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -482,6 +482,27 @@ interface BlockFieldExtension {
|
|
|
482
482
|
* ```
|
|
483
483
|
*/
|
|
484
484
|
type BlockFieldExtensionsMap = Record<string, BlockFieldExtension>;
|
|
485
|
+
/**
|
|
486
|
+
* Sync behavior configuration for CLI push operations.
|
|
487
|
+
*
|
|
488
|
+
* Controls how the SDK CLI handles content synchronization.
|
|
489
|
+
*/
|
|
490
|
+
interface SyncConfig {
|
|
491
|
+
/**
|
|
492
|
+
* How to handle existing entries during push.
|
|
493
|
+
* - 'skip': Only create new entries, never update existing
|
|
494
|
+
* - 'update': Create new entries and update existing ones
|
|
495
|
+
* @default 'skip'
|
|
496
|
+
*/
|
|
497
|
+
existingEntries?: 'skip' | 'update';
|
|
498
|
+
/**
|
|
499
|
+
* Target for content updates.
|
|
500
|
+
* - 'draft': Updates save as draft (unpublished changes)
|
|
501
|
+
* - 'publish': Updates are published immediately
|
|
502
|
+
* @default 'draft'
|
|
503
|
+
*/
|
|
504
|
+
contentTarget?: 'draft' | 'publish';
|
|
505
|
+
}
|
|
485
506
|
/**
|
|
486
507
|
* Top-level SDK site configuration.
|
|
487
508
|
*
|
|
@@ -530,6 +551,20 @@ type BlockFieldExtensionsMap = Record<string, BlockFieldExtension>;
|
|
|
530
551
|
interface RiverbankSiteConfig {
|
|
531
552
|
/** Site UUID from the dashboard - identifies which site this config belongs to */
|
|
532
553
|
siteId: string;
|
|
554
|
+
/**
|
|
555
|
+
* Preview URL for this SDK site.
|
|
556
|
+
* Used by dashboard preview buttons to open the site's preview/staging environment.
|
|
557
|
+
* If not provided, preview buttons will be hidden for SDK sites.
|
|
558
|
+
* @example 'https://staging.mysite.com'
|
|
559
|
+
*/
|
|
560
|
+
previewUrl?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Live/production URL for this SDK site.
|
|
563
|
+
* Used by "View live site" links in the dashboard.
|
|
564
|
+
* If not provided, live site links will be hidden for SDK sites.
|
|
565
|
+
* @example 'https://mysite.com'
|
|
566
|
+
*/
|
|
567
|
+
liveUrl?: string;
|
|
533
568
|
/** SDK-defined theme with color palette for token resolution */
|
|
534
569
|
theme?: SdkThemeConfig;
|
|
535
570
|
/** Style configuration for curating editor options */
|
|
@@ -612,6 +647,32 @@ interface RiverbankSiteConfig {
|
|
|
612
647
|
* ```
|
|
613
648
|
*/
|
|
614
649
|
content?: ContentConfig;
|
|
650
|
+
/**
|
|
651
|
+
* Content directory path for CLI operations.
|
|
652
|
+
*
|
|
653
|
+
* When using `riverbankcms push` or `riverbankcms pull`, content is
|
|
654
|
+
* read from or written to this directory. JSON files in this directory
|
|
655
|
+
* are the source of truth for content.
|
|
656
|
+
*
|
|
657
|
+
* @default './content'
|
|
658
|
+
* @example './src/content'
|
|
659
|
+
*/
|
|
660
|
+
contentDir?: string;
|
|
661
|
+
/**
|
|
662
|
+
* Sync behavior configuration for CLI push operations.
|
|
663
|
+
*
|
|
664
|
+
* Controls how the SDK CLI handles content synchronization when
|
|
665
|
+
* pushing content from local files to the CMS.
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* ```typescript
|
|
669
|
+
* sync: {
|
|
670
|
+
* existingEntries: 'update', // Update existing entries
|
|
671
|
+
* contentTarget: 'draft', // Keep updates as drafts
|
|
672
|
+
* }
|
|
673
|
+
* ```
|
|
674
|
+
*/
|
|
675
|
+
sync?: SyncConfig;
|
|
615
676
|
}
|
|
616
677
|
|
|
617
|
-
export type { BlockFieldConfig as B,
|
|
678
|
+
export type { BlockFieldConfig as B, ContentTypeConfig as C, EntryConfig as E, FieldSelectOption as F, NavigationMenuConfig as N, PageConfig as P, RiverbankSiteConfig as R, SiteStyleConfig as S, ContentConfig as a, SectionBackground as b, SectionOptionsConfig as c, ContainerOptionsConfig as d, SectionSpacing as e, ContainerMaxWidth as f, ContainerAlignment as g, SdkThemeConfig as h, SdkThemePalette as i, BlockFieldOptionsMap as j, BlockFieldExtension as k, BlockFieldExtensionsMap as l, BlockConfig as m, NavigationItemConfig as n, NavigationLinkType as o, SiteSettingsConfig as p, SyncConfig as q };
|