@financial-times/content-curation-client 5.2.0 → 5.4.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.
@@ -1,5 +1,9 @@
1
- import { Options } from 'tsup';
1
+ import { baseObjectOutputType } from 'zod';
2
+ import { objectUtil } from 'zod';
2
3
  import { z } from 'zod';
4
+ import { ZodLiteral } from 'zod';
5
+ import { ZodNumber } from 'zod';
6
+ import { ZodString } from 'zod';
3
7
  import { ZodTypeAny } from 'zod';
4
8
 
5
9
  /**
@@ -17,7 +21,7 @@ export { ApiClient }
17
21
  export { ApiClient as ApiClient_alias_1 }
18
22
 
19
23
  /**
20
- * Configuration options for the API client
24
+ * Configuration options for the API client.
21
25
  */
22
26
  declare type ApiClientConfig = {
23
27
  baseUrl: string;
@@ -34,21 +38,73 @@ export { ApiClientConfig }
34
38
  export { ApiClientConfig as ApiClientConfig_alias_1 }
35
39
 
36
40
  /**
37
- * API-level error thrown when { status: 'error' } is returned
41
+ * Base error type for all failures surfaced by the client package.
38
42
  */
39
43
  declare class ApiClientError extends Error {
40
- payload: z.infer<typeof ApiErrorPayloadSchema>;
41
- statusCode: number;
42
- requestId?: string | undefined;
43
- code: string;
44
+ /** The machine-readable error payload exposed by the client. */
45
+ payload: ApiClientErrorPayload;
46
+ /** The machine-readable error code. */
47
+ code: ApiClientErrorPayload["code"];
48
+ /** Additional diagnostic detail captured by the client. */
44
49
  details?: string;
50
+ /** The API path associated with the failing request. */
45
51
  path?: string;
52
+ /** Optional timestamp supplied by the upstream service. */
46
53
  timestamp?: string;
47
- constructor(payload: z.infer<typeof ApiErrorPayloadSchema>, statusCode: number, requestId?: string | undefined);
54
+ /** Indicates whether the failure originated from transport, gateway, or service handling. */
55
+ origin: ApiClientErrorOrigin;
56
+ /** The fully qualified request URL, when available. */
57
+ url?: string;
58
+ /** The response content type, when a response was received. */
59
+ contentType?: string;
60
+ /** A truncated copy of the raw response body, when captured. */
61
+ bodyText?: string;
62
+ /** The upstream request identifier, when available. */
63
+ requestId?: string;
64
+ /** The HTTP status code reported by the service or gateway. */
65
+ statusCode: number;
66
+ /** The underlying thrown error, if there was one. */
67
+ cause?: unknown;
68
+ constructor(payload: ApiClientErrorPayload, statusCode: number, requestId?: string, metadata?: ApiClientErrorMetadata);
48
69
  }
49
70
  export { ApiClientError }
50
71
  export { ApiClientError as ApiClientError_alias_1 }
51
72
 
73
+ /** Machine-readable codes exposed by the client error model. */
74
+ declare type ApiClientErrorCode = ApiErrorPayload["code"] | "API_GATEWAY_ERROR" | "API_TRANSPORT_ERROR";
75
+ export { ApiClientErrorCode }
76
+ export { ApiClientErrorCode as ApiClientErrorCode_alias_1 }
77
+
78
+ declare type ApiClientErrorMetadata = {
79
+ origin: ApiClientErrorOrigin;
80
+ url?: string;
81
+ contentType?: string;
82
+ bodyText?: string;
83
+ cause?: unknown;
84
+ };
85
+
86
+ /** Where the failing request broke down. */
87
+ declare type ApiClientErrorOrigin = "transport" | "gateway" | "service";
88
+ export { ApiClientErrorOrigin }
89
+ export { ApiClientErrorOrigin as ApiClientErrorOrigin_alias_1 }
90
+
91
+ /**
92
+ * Shared error payload shape used by all client-generated errors.
93
+ *
94
+ * Service-origin errors use the validated `ApiErrorPayload` returned by the API.
95
+ * Gateway and transport errors synthesize the same top-level fields so callers
96
+ * can handle them consistently.
97
+ */
98
+ declare type ApiClientErrorPayload = {
99
+ code: ApiClientErrorCode;
100
+ message: string;
101
+ details?: string;
102
+ path?: string;
103
+ timestamp?: string;
104
+ };
105
+ export { ApiClientErrorPayload }
106
+ export { ApiClientErrorPayload as ApiClientErrorPayload_alias_1 }
107
+
52
108
  /**
53
109
  * Strongly‐typed enum for all possible API error codes.
54
110
  */
@@ -142,6 +198,18 @@ declare const ApiErrorResponseSchema: z.ZodObject<{
142
198
  export { ApiErrorResponseSchema }
143
199
  export { ApiErrorResponseSchema as ApiErrorResponseSchema_alias_1 }
144
200
 
201
+ /**
202
+ * Error raised when the request reached API Gateway but did not produce a
203
+ * valid service-level error envelope.
204
+ */
205
+ declare class ApiGatewayError extends ApiClientError {
206
+ payload: ApiClientErrorPayload;
207
+ origin: "gateway";
208
+ constructor(payload: ApiClientErrorPayload, statusCode: number, requestId?: string, metadata?: Omit<ApiClientErrorMetadata, "origin">);
209
+ }
210
+ export { ApiGatewayError }
211
+ export { ApiGatewayError as ApiGatewayError_alias_1 }
212
+
145
213
  /**
146
214
  * Union of success or error envelopes, discriminated on `status`.
147
215
  */
@@ -213,6 +281,19 @@ declare function ApiResponseSchema<T extends ZodTypeAny>(dataSchema: T): z.ZodDi
213
281
  export { ApiResponseSchema }
214
282
  export { ApiResponseSchema as ApiResponseSchema_alias_1 }
215
283
 
284
+ /**
285
+ * Error raised when the root service returns a valid JSON API error envelope,
286
+ * or when a successful response cannot be interpreted as the expected API
287
+ * success envelope.
288
+ */
289
+ declare class ApiServiceError extends ApiClientError {
290
+ payload: ApiErrorPayload;
291
+ origin: "service";
292
+ constructor(payload: ApiErrorPayload, statusCode: number, requestId?: string, metadata?: Omit<ApiClientErrorMetadata, "origin">);
293
+ }
294
+ export { ApiServiceError }
295
+ export { ApiServiceError as ApiServiceError_alias_1 }
296
+
216
297
  /**
217
298
  * Schema for a successful API response, given some data schema T.
218
299
  */
@@ -238,11 +319,40 @@ declare function ApiSuccessResponseSchema<T extends ZodTypeAny>(dataSchema: T):
238
319
  export { ApiSuccessResponseSchema }
239
320
  export { ApiSuccessResponseSchema as ApiSuccessResponseSchema_alias_1 }
240
321
 
322
+ /**
323
+ * Error raised when the request fails before any HTTP response is available.
324
+ */
325
+ declare class ApiTransportError extends ApiClientError {
326
+ payload: ApiClientErrorPayload;
327
+ origin: "transport";
328
+ /** Whether the failure was caused by an abort, timeout, or generic network problem. */
329
+ transportKind: ApiTransportKind;
330
+ constructor(payload: ApiClientErrorPayload, statusCode: number, requestId: string | undefined, metadata: ApiTransportErrorMetadata);
331
+ }
332
+ export { ApiTransportError }
333
+ export { ApiTransportError as ApiTransportError_alias_1 }
334
+
335
+ declare type ApiTransportErrorMetadata = Omit<ApiClientErrorMetadata, "origin"> & {
336
+ transportKind: ApiTransportKind;
337
+ };
338
+
339
+ /** The transport failure mode when no HTTP response was received. */
340
+ declare type ApiTransportKind = "abort" | "timeout" | "network";
341
+ export { ApiTransportKind }
342
+ export { ApiTransportKind as ApiTransportKind_alias_1 }
343
+
344
+ /**
345
+ * Shared HTTP client for Content Curation API requests.
346
+ *
347
+ * The public sub-clients delegate to this class so request validation, fetch
348
+ * execution, response parsing, and error classification all happen in one place.
349
+ */
241
350
  export declare class BaseApiClient {
242
351
  protected config: ApiClientConfig;
243
352
  constructor(config: ApiClientConfig);
244
353
  /**
245
- * Generic HTTP request to a JSON API
354
+ * Performs a request against the JSON API, validates the response envelope,
355
+ * and returns the typed `data` payload on success.
246
356
  */
247
357
  protected request<ReqSchema extends ZodTypeAny | undefined, ResponseDataSchema extends ZodTypeAny>(method: "GET" | "PUT" | "POST" | "DELETE", path: string, opts: {
248
358
  requestSchema?: ReqSchema;
@@ -250,16 +360,53 @@ export declare class BaseApiClient {
250
360
  responseDataSchema: ResponseDataSchema;
251
361
  }): Promise<z.infer<ResponseDataSchema>>;
252
362
  /**
253
- * GET convenience method inferring response type from schema
363
+ * GET convenience method inferring response type from schema.
254
364
  */
255
365
  protected get<ResponseDataSchema extends ZodTypeAny>(path: string, responseDataSchema: ResponseDataSchema): Promise<z.infer<ResponseDataSchema>>;
256
366
  /**
257
- * PUT convenience method inferring both request and response types
367
+ * PUT convenience method inferring both request and response types.
258
368
  */
259
369
  protected put<ReqSchema extends ZodTypeAny, ResponseDataSchema extends ZodTypeAny>(path: string, body: z.infer<ReqSchema>, requestSchema: ReqSchema, responseDataSchema: ResponseDataSchema): Promise<z.infer<ResponseDataSchema>>;
260
370
  }
261
371
 
262
- export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
372
+ /**
373
+ * Builds a gateway-origin client error after the caller has already decided the response does not
374
+ * represent a validated service error envelope.
375
+ */
376
+ export declare function createGatewayError(path: string, url: string, statusCode: number, options: GatewayErrorOptions): ApiGatewayError;
377
+
378
+ /**
379
+ * Classifies a non-success HTTP response as either a validated service error or
380
+ * a gateway-origin failure.
381
+ */
382
+ declare function createResponseError(path: string, url: string, response: Response, responseBody: ResponseBodyDiagnostics): ApiGatewayError | ApiServiceError;
383
+ export { createResponseError }
384
+ export { createResponseError as createResponseError_alias_1 }
385
+
386
+ /**
387
+ * Wraps a fetch failure that happened before any response was available.
388
+ */
389
+ declare function createTransportError(path: string, url: string, error: unknown): ApiTransportError;
390
+ export { createTransportError }
391
+ export { createTransportError as createTransportError_alias_1 }
392
+
393
+ /**
394
+ * Builds the fallback service error used when a 2xx response cannot be interpreted as the
395
+ * expected Content Curation API success envelope.
396
+ */
397
+ export declare function createUnexpectedServiceResponseError(path: string, url: string, options: UnexpectedServiceResponseOptions): ApiServiceError;
398
+
399
+ /**
400
+ * Builds the diagnostic detail string used when a non-success response should be treated as a
401
+ * gateway-origin failure rather than a validated service error.
402
+ */
403
+ export declare function describeGatewayResponse(statusCode: number, responseBody: ResponseBodyDiagnostics): string;
404
+
405
+ /**
406
+ * Builds the diagnostic detail string used when a 2xx response cannot be understood as the
407
+ * expected Content Curation API success envelope.
408
+ */
409
+ export declare function describeUnexpectedSuccessResponse(responseBody: ResponseBodyDiagnostics): string;
263
410
 
264
411
  declare type Draft = z.infer<typeof DraftSchema>;
265
412
  export { Draft }
@@ -676,8 +823,8 @@ declare const DraftSchema: z.ZodObject<{
676
823
  type: "strike";
677
824
  }>]>, "many">>;
678
825
  }, "strip", z.ZodTypeAny, {
679
- text: string;
680
826
  type: "text";
827
+ text: string;
681
828
  marks?: ({
682
829
  type: "link";
683
830
  attrs: {
@@ -693,8 +840,8 @@ declare const DraftSchema: z.ZodObject<{
693
840
  type: "strike";
694
841
  })[] | undefined;
695
842
  }, {
696
- text: string;
697
843
  type: "text";
844
+ text: string;
698
845
  marks?: ({
699
846
  type: "link";
700
847
  attrs: {
@@ -713,8 +860,8 @@ declare const DraftSchema: z.ZodObject<{
713
860
  }, "strip", z.ZodTypeAny, {
714
861
  type: "paragraph";
715
862
  content: {
716
- text: string;
717
863
  type: "text";
864
+ text: string;
718
865
  marks?: ({
719
866
  type: "link";
720
867
  attrs: {
@@ -733,8 +880,8 @@ declare const DraftSchema: z.ZodObject<{
733
880
  }, {
734
881
  type: "paragraph";
735
882
  content: {
736
- text: string;
737
883
  type: "text";
884
+ text: string;
738
885
  marks?: ({
739
886
  type: "link";
740
887
  attrs: {
@@ -798,8 +945,8 @@ declare const DraftSchema: z.ZodObject<{
798
945
  type: "strike";
799
946
  }>]>, "many">>;
800
947
  }, "strip", z.ZodTypeAny, {
801
- text: string;
802
948
  type: "text";
949
+ text: string;
803
950
  marks?: ({
804
951
  type: "link";
805
952
  attrs: {
@@ -815,8 +962,8 @@ declare const DraftSchema: z.ZodObject<{
815
962
  type: "strike";
816
963
  })[] | undefined;
817
964
  }, {
818
- text: string;
819
965
  type: "text";
966
+ text: string;
820
967
  marks?: ({
821
968
  type: "link";
822
969
  attrs: {
@@ -835,8 +982,8 @@ declare const DraftSchema: z.ZodObject<{
835
982
  }, "strip", z.ZodTypeAny, {
836
983
  type: "doc";
837
984
  content: ({
838
- text: string;
839
985
  type: "text";
986
+ text: string;
840
987
  marks?: ({
841
988
  type: "link";
842
989
  attrs: {
@@ -854,8 +1001,8 @@ declare const DraftSchema: z.ZodObject<{
854
1001
  } | {
855
1002
  type: "paragraph";
856
1003
  content: {
857
- text: string;
858
1004
  type: "text";
1005
+ text: string;
859
1006
  marks?: ({
860
1007
  type: "link";
861
1008
  attrs: {
@@ -875,8 +1022,8 @@ declare const DraftSchema: z.ZodObject<{
875
1022
  }, {
876
1023
  type: "doc";
877
1024
  content: ({
878
- text: string;
879
1025
  type: "text";
1026
+ text: string;
880
1027
  marks?: ({
881
1028
  type: "link";
882
1029
  attrs: {
@@ -894,8 +1041,8 @@ declare const DraftSchema: z.ZodObject<{
894
1041
  } | {
895
1042
  type: "paragraph";
896
1043
  content: {
897
- text: string;
898
1044
  type: "text";
1045
+ text: string;
899
1046
  marks?: ({
900
1047
  type: "link";
901
1048
  attrs: {
@@ -918,8 +1065,8 @@ declare const DraftSchema: z.ZodObject<{
918
1065
  description: {
919
1066
  type: "doc";
920
1067
  content: ({
921
- text: string;
922
1068
  type: "text";
1069
+ text: string;
923
1070
  marks?: ({
924
1071
  type: "link";
925
1072
  attrs: {
@@ -937,8 +1084,8 @@ declare const DraftSchema: z.ZodObject<{
937
1084
  } | {
938
1085
  type: "paragraph";
939
1086
  content: {
940
- text: string;
941
1087
  type: "text";
1088
+ text: string;
942
1089
  marks?: ({
943
1090
  type: "link";
944
1091
  attrs: {
@@ -965,8 +1112,8 @@ declare const DraftSchema: z.ZodObject<{
965
1112
  description: {
966
1113
  type: "doc";
967
1114
  content: ({
968
- text: string;
969
1115
  type: "text";
1116
+ text: string;
970
1117
  marks?: ({
971
1118
  type: "link";
972
1119
  attrs: {
@@ -984,8 +1131,8 @@ declare const DraftSchema: z.ZodObject<{
984
1131
  } | {
985
1132
  type: "paragraph";
986
1133
  content: {
987
- text: string;
988
1134
  type: "text";
1135
+ text: string;
989
1136
  marks?: ({
990
1137
  type: "link";
991
1138
  attrs: {
@@ -1017,8 +1164,8 @@ declare const DraftSchema: z.ZodObject<{
1017
1164
  description: {
1018
1165
  type: "doc";
1019
1166
  content: ({
1020
- text: string;
1021
1167
  type: "text";
1168
+ text: string;
1022
1169
  marks?: ({
1023
1170
  type: "link";
1024
1171
  attrs: {
@@ -1036,8 +1183,8 @@ declare const DraftSchema: z.ZodObject<{
1036
1183
  } | {
1037
1184
  type: "paragraph";
1038
1185
  content: {
1039
- text: string;
1040
1186
  type: "text";
1187
+ text: string;
1041
1188
  marks?: ({
1042
1189
  type: "link";
1043
1190
  attrs: {
@@ -1069,8 +1216,8 @@ declare const DraftSchema: z.ZodObject<{
1069
1216
  description: {
1070
1217
  type: "doc";
1071
1218
  content: ({
1072
- text: string;
1073
1219
  type: "text";
1220
+ text: string;
1074
1221
  marks?: ({
1075
1222
  type: "link";
1076
1223
  attrs: {
@@ -1088,8 +1235,8 @@ declare const DraftSchema: z.ZodObject<{
1088
1235
  } | {
1089
1236
  type: "paragraph";
1090
1237
  content: {
1091
- text: string;
1092
1238
  type: "text";
1239
+ text: string;
1093
1240
  marks?: ({
1094
1241
  type: "link";
1095
1242
  attrs: {
@@ -1173,6 +1320,59 @@ declare const DraftSchema: z.ZodObject<{
1173
1320
  };
1174
1321
  sliceId: string;
1175
1322
  hidden?: boolean | undefined;
1323
+ }>, z.ZodObject<{
1324
+ type: z.ZodLiteral<"StoryGroup">;
1325
+ hidden: z.ZodOptional<z.ZodBoolean>;
1326
+ properties: z.ZodObject<{
1327
+ heading: z.ZodOptional<z.ZodObject<{
1328
+ text: z.ZodString;
1329
+ href: z.ZodOptional<z.ZodString>;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ text: string;
1332
+ href?: string | undefined;
1333
+ }, {
1334
+ text: string;
1335
+ href?: string | undefined;
1336
+ }>>;
1337
+ } & {
1338
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ storySlots: [string, ...string[]];
1341
+ heading?: {
1342
+ text: string;
1343
+ href?: string | undefined;
1344
+ } | undefined;
1345
+ }, {
1346
+ storySlots: [string, ...string[]];
1347
+ heading?: {
1348
+ text: string;
1349
+ href?: string | undefined;
1350
+ } | undefined;
1351
+ }>;
1352
+ } & {
1353
+ sliceId: z.ZodString;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ type: "StoryGroup";
1356
+ properties: {
1357
+ storySlots: [string, ...string[]];
1358
+ heading?: {
1359
+ text: string;
1360
+ href?: string | undefined;
1361
+ } | undefined;
1362
+ };
1363
+ sliceId: string;
1364
+ hidden?: boolean | undefined;
1365
+ }, {
1366
+ type: "StoryGroup";
1367
+ properties: {
1368
+ storySlots: [string, ...string[]];
1369
+ heading?: {
1370
+ text: string;
1371
+ href?: string | undefined;
1372
+ } | undefined;
1373
+ };
1374
+ sliceId: string;
1375
+ hidden?: boolean | undefined;
1176
1376
  }>]>, "many">;
1177
1377
  }, "strip", z.ZodTypeAny, {
1178
1378
  type: "Page";
@@ -1242,8 +1442,8 @@ declare const DraftSchema: z.ZodObject<{
1242
1442
  description: {
1243
1443
  type: "doc";
1244
1444
  content: ({
1245
- text: string;
1246
1445
  type: "text";
1446
+ text: string;
1247
1447
  marks?: ({
1248
1448
  type: "link";
1249
1449
  attrs: {
@@ -1261,8 +1461,8 @@ declare const DraftSchema: z.ZodObject<{
1261
1461
  } | {
1262
1462
  type: "paragraph";
1263
1463
  content: {
1264
- text: string;
1265
1464
  type: "text";
1465
+ text: string;
1266
1466
  marks?: ({
1267
1467
  type: "link";
1268
1468
  attrs: {
@@ -1300,6 +1500,17 @@ declare const DraftSchema: z.ZodObject<{
1300
1500
  };
1301
1501
  sliceId: string;
1302
1502
  hidden?: boolean | undefined;
1503
+ } | {
1504
+ type: "StoryGroup";
1505
+ properties: {
1506
+ storySlots: [string, ...string[]];
1507
+ heading?: {
1508
+ text: string;
1509
+ href?: string | undefined;
1510
+ } | undefined;
1511
+ };
1512
+ sliceId: string;
1513
+ hidden?: boolean | undefined;
1303
1514
  })[];
1304
1515
  schemaVersion: number;
1305
1516
  }, {
@@ -1370,8 +1581,8 @@ declare const DraftSchema: z.ZodObject<{
1370
1581
  description: {
1371
1582
  type: "doc";
1372
1583
  content: ({
1373
- text: string;
1374
1584
  type: "text";
1585
+ text: string;
1375
1586
  marks?: ({
1376
1587
  type: "link";
1377
1588
  attrs: {
@@ -1389,8 +1600,8 @@ declare const DraftSchema: z.ZodObject<{
1389
1600
  } | {
1390
1601
  type: "paragraph";
1391
1602
  content: {
1392
- text: string;
1393
1603
  type: "text";
1604
+ text: string;
1394
1605
  marks?: ({
1395
1606
  type: "link";
1396
1607
  attrs: {
@@ -1428,6 +1639,17 @@ declare const DraftSchema: z.ZodObject<{
1428
1639
  };
1429
1640
  sliceId: string;
1430
1641
  hidden?: boolean | undefined;
1642
+ } | {
1643
+ type: "StoryGroup";
1644
+ properties: {
1645
+ storySlots: [string, ...string[]];
1646
+ heading?: {
1647
+ text: string;
1648
+ href?: string | undefined;
1649
+ } | undefined;
1650
+ };
1651
+ sliceId: string;
1652
+ hidden?: boolean | undefined;
1431
1653
  })[];
1432
1654
  schemaVersion: number;
1433
1655
  }>;
@@ -1510,8 +1732,8 @@ declare const DraftSchema: z.ZodObject<{
1510
1732
  description: {
1511
1733
  type: "doc";
1512
1734
  content: ({
1513
- text: string;
1514
1735
  type: "text";
1736
+ text: string;
1515
1737
  marks?: ({
1516
1738
  type: "link";
1517
1739
  attrs: {
@@ -1529,8 +1751,8 @@ declare const DraftSchema: z.ZodObject<{
1529
1751
  } | {
1530
1752
  type: "paragraph";
1531
1753
  content: {
1532
- text: string;
1533
1754
  type: "text";
1755
+ text: string;
1534
1756
  marks?: ({
1535
1757
  type: "link";
1536
1758
  attrs: {
@@ -1568,6 +1790,17 @@ declare const DraftSchema: z.ZodObject<{
1568
1790
  };
1569
1791
  sliceId: string;
1570
1792
  hidden?: boolean | undefined;
1793
+ } | {
1794
+ type: "StoryGroup";
1795
+ properties: {
1796
+ storySlots: [string, ...string[]];
1797
+ heading?: {
1798
+ text: string;
1799
+ href?: string | undefined;
1800
+ } | undefined;
1801
+ };
1802
+ sliceId: string;
1803
+ hidden?: boolean | undefined;
1571
1804
  })[];
1572
1805
  schemaVersion: number;
1573
1806
  };
@@ -1650,8 +1883,8 @@ declare const DraftSchema: z.ZodObject<{
1650
1883
  description: {
1651
1884
  type: "doc";
1652
1885
  content: ({
1653
- text: string;
1654
1886
  type: "text";
1887
+ text: string;
1655
1888
  marks?: ({
1656
1889
  type: "link";
1657
1890
  attrs: {
@@ -1669,8 +1902,8 @@ declare const DraftSchema: z.ZodObject<{
1669
1902
  } | {
1670
1903
  type: "paragraph";
1671
1904
  content: {
1672
- text: string;
1673
1905
  type: "text";
1906
+ text: string;
1674
1907
  marks?: ({
1675
1908
  type: "link";
1676
1909
  attrs: {
@@ -1708,6 +1941,17 @@ declare const DraftSchema: z.ZodObject<{
1708
1941
  };
1709
1942
  sliceId: string;
1710
1943
  hidden?: boolean | undefined;
1944
+ } | {
1945
+ type: "StoryGroup";
1946
+ properties: {
1947
+ storySlots: [string, ...string[]];
1948
+ heading?: {
1949
+ text: string;
1950
+ href?: string | undefined;
1951
+ } | undefined;
1952
+ };
1953
+ sliceId: string;
1954
+ hidden?: boolean | undefined;
1711
1955
  })[];
1712
1956
  schemaVersion: number;
1713
1957
  };
@@ -1850,6 +2094,24 @@ declare type ExperimentSliceType = z.infer<typeof ExperimentSlice.OutputSchema>;
1850
2094
  export { ExperimentSliceType }
1851
2095
  export { ExperimentSliceType as ExperimentSliceType_alias_1 }
1852
2096
 
2097
+ declare type GatewayErrorOptions = {
2098
+ contentType?: string;
2099
+ bodyText?: string;
2100
+ details: string;
2101
+ requestId?: string;
2102
+ cause?: unknown;
2103
+ };
2104
+
2105
+ /**
2106
+ * Extracts the response content type, if one was provided.
2107
+ */
2108
+ export declare function getResponseContentType(response: Response): string | undefined;
2109
+
2110
+ /**
2111
+ * Extracts the upstream request identifier, if one was provided.
2112
+ */
2113
+ export declare function getResponseRequestId(response: Response): string | undefined;
2114
+
1853
2115
  declare const HeroSlice: {
1854
2116
  InputSchema: z.ZodObject<{
1855
2117
  type: z.ZodLiteral<"Hero">;
@@ -2409,8 +2671,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2409
2671
  type: "strike";
2410
2672
  }>]>, "many">>;
2411
2673
  }, "strip", z.ZodTypeAny, {
2412
- text: string;
2413
2674
  type: "text";
2675
+ text: string;
2414
2676
  marks?: ({
2415
2677
  type: "link";
2416
2678
  attrs: {
@@ -2426,8 +2688,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2426
2688
  type: "strike";
2427
2689
  })[] | undefined;
2428
2690
  }, {
2429
- text: string;
2430
2691
  type: "text";
2692
+ text: string;
2431
2693
  marks?: ({
2432
2694
  type: "link";
2433
2695
  attrs: {
@@ -2446,8 +2708,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2446
2708
  }, "strip", z.ZodTypeAny, {
2447
2709
  type: "paragraph";
2448
2710
  content: {
2449
- text: string;
2450
2711
  type: "text";
2712
+ text: string;
2451
2713
  marks?: ({
2452
2714
  type: "link";
2453
2715
  attrs: {
@@ -2466,8 +2728,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2466
2728
  }, {
2467
2729
  type: "paragraph";
2468
2730
  content: {
2469
- text: string;
2470
2731
  type: "text";
2732
+ text: string;
2471
2733
  marks?: ({
2472
2734
  type: "link";
2473
2735
  attrs: {
@@ -2531,8 +2793,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2531
2793
  type: "strike";
2532
2794
  }>]>, "many">>;
2533
2795
  }, "strip", z.ZodTypeAny, {
2534
- text: string;
2535
2796
  type: "text";
2797
+ text: string;
2536
2798
  marks?: ({
2537
2799
  type: "link";
2538
2800
  attrs: {
@@ -2548,8 +2810,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2548
2810
  type: "strike";
2549
2811
  })[] | undefined;
2550
2812
  }, {
2551
- text: string;
2552
2813
  type: "text";
2814
+ text: string;
2553
2815
  marks?: ({
2554
2816
  type: "link";
2555
2817
  attrs: {
@@ -2568,8 +2830,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2568
2830
  }, "strip", z.ZodTypeAny, {
2569
2831
  type: "doc";
2570
2832
  content: ({
2571
- text: string;
2572
2833
  type: "text";
2834
+ text: string;
2573
2835
  marks?: ({
2574
2836
  type: "link";
2575
2837
  attrs: {
@@ -2587,8 +2849,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2587
2849
  } | {
2588
2850
  type: "paragraph";
2589
2851
  content: {
2590
- text: string;
2591
2852
  type: "text";
2853
+ text: string;
2592
2854
  marks?: ({
2593
2855
  type: "link";
2594
2856
  attrs: {
@@ -2608,8 +2870,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2608
2870
  }, {
2609
2871
  type: "doc";
2610
2872
  content: ({
2611
- text: string;
2612
2873
  type: "text";
2874
+ text: string;
2613
2875
  marks?: ({
2614
2876
  type: "link";
2615
2877
  attrs: {
@@ -2627,8 +2889,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2627
2889
  } | {
2628
2890
  type: "paragraph";
2629
2891
  content: {
2630
- text: string;
2631
2892
  type: "text";
2893
+ text: string;
2632
2894
  marks?: ({
2633
2895
  type: "link";
2634
2896
  attrs: {
@@ -2651,8 +2913,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2651
2913
  description: {
2652
2914
  type: "doc";
2653
2915
  content: ({
2654
- text: string;
2655
2916
  type: "text";
2917
+ text: string;
2656
2918
  marks?: ({
2657
2919
  type: "link";
2658
2920
  attrs: {
@@ -2670,8 +2932,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2670
2932
  } | {
2671
2933
  type: "paragraph";
2672
2934
  content: {
2673
- text: string;
2674
2935
  type: "text";
2936
+ text: string;
2675
2937
  marks?: ({
2676
2938
  type: "link";
2677
2939
  attrs: {
@@ -2698,8 +2960,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2698
2960
  description: {
2699
2961
  type: "doc";
2700
2962
  content: ({
2701
- text: string;
2702
2963
  type: "text";
2964
+ text: string;
2703
2965
  marks?: ({
2704
2966
  type: "link";
2705
2967
  attrs: {
@@ -2717,8 +2979,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2717
2979
  } | {
2718
2980
  type: "paragraph";
2719
2981
  content: {
2720
- text: string;
2721
2982
  type: "text";
2983
+ text: string;
2722
2984
  marks?: ({
2723
2985
  type: "link";
2724
2986
  attrs: {
@@ -2750,8 +3012,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2750
3012
  description: {
2751
3013
  type: "doc";
2752
3014
  content: ({
2753
- text: string;
2754
3015
  type: "text";
3016
+ text: string;
2755
3017
  marks?: ({
2756
3018
  type: "link";
2757
3019
  attrs: {
@@ -2769,8 +3031,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2769
3031
  } | {
2770
3032
  type: "paragraph";
2771
3033
  content: {
2772
- text: string;
2773
3034
  type: "text";
3035
+ text: string;
2774
3036
  marks?: ({
2775
3037
  type: "link";
2776
3038
  attrs: {
@@ -2802,8 +3064,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2802
3064
  description: {
2803
3065
  type: "doc";
2804
3066
  content: ({
2805
- text: string;
2806
3067
  type: "text";
3068
+ text: string;
2807
3069
  marks?: ({
2808
3070
  type: "link";
2809
3071
  attrs: {
@@ -2821,8 +3083,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2821
3083
  } | {
2822
3084
  type: "paragraph";
2823
3085
  content: {
2824
- text: string;
2825
3086
  type: "text";
3087
+ text: string;
2826
3088
  marks?: ({
2827
3089
  type: "link";
2828
3090
  attrs: {
@@ -2906,37 +3168,90 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
2906
3168
  };
2907
3169
  hidden?: boolean | undefined;
2908
3170
  sliceId?: string | undefined;
2909
- }>]>, "many">;
2910
- } & {
2911
- properties: z.ZodObject<{
2912
- title: z.ZodString;
2913
- pageId: z.ZodString;
2914
- publicationId: z.ZodString;
2915
- conceptId: z.ZodOptional<z.ZodString>;
2916
- metaDescription: z.ZodOptional<z.ZodString>;
2917
- pageTheme: z.ZodOptional<z.ZodString>;
2918
- sponsorText: z.ZodOptional<z.ZodString>;
2919
- sponsorImage: z.ZodOptional<z.ZodString>;
2920
- } & {
2921
- homepageListId: z.ZodString;
2922
- }, "strip", z.ZodTypeAny, {
2923
- title: string;
2924
- pageId: string;
2925
- publicationId: string;
2926
- homepageListId: string;
2927
- conceptId?: string | undefined;
2928
- metaDescription?: string | undefined;
2929
- pageTheme?: string | undefined;
2930
- sponsorText?: string | undefined;
2931
- sponsorImage?: string | undefined;
2932
- }, {
2933
- title: string;
2934
- pageId: string;
2935
- publicationId: string;
2936
- homepageListId: string;
2937
- conceptId?: string | undefined;
2938
- metaDescription?: string | undefined;
2939
- pageTheme?: string | undefined;
3171
+ }>, z.ZodObject<{
3172
+ type: z.ZodLiteral<"StoryGroup">;
3173
+ hidden: z.ZodOptional<z.ZodBoolean>;
3174
+ properties: z.ZodObject<{
3175
+ heading: z.ZodOptional<z.ZodObject<{
3176
+ text: z.ZodString;
3177
+ href: z.ZodOptional<z.ZodString>;
3178
+ }, "strip", z.ZodTypeAny, {
3179
+ text: string;
3180
+ href?: string | undefined;
3181
+ }, {
3182
+ text: string;
3183
+ href?: string | undefined;
3184
+ }>>;
3185
+ } & {
3186
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
3187
+ }, "strip", z.ZodTypeAny, {
3188
+ storySlots: [string, ...string[]];
3189
+ heading?: {
3190
+ text: string;
3191
+ href?: string | undefined;
3192
+ } | undefined;
3193
+ }, {
3194
+ storySlots: [string, ...string[]];
3195
+ heading?: {
3196
+ text: string;
3197
+ href?: string | undefined;
3198
+ } | undefined;
3199
+ }>;
3200
+ } & {
3201
+ sliceId: z.ZodOptional<z.ZodString>;
3202
+ }, "strip", z.ZodTypeAny, {
3203
+ type: "StoryGroup";
3204
+ properties: {
3205
+ storySlots: [string, ...string[]];
3206
+ heading?: {
3207
+ text: string;
3208
+ href?: string | undefined;
3209
+ } | undefined;
3210
+ };
3211
+ hidden?: boolean | undefined;
3212
+ sliceId?: string | undefined;
3213
+ }, {
3214
+ type: "StoryGroup";
3215
+ properties: {
3216
+ storySlots: [string, ...string[]];
3217
+ heading?: {
3218
+ text: string;
3219
+ href?: string | undefined;
3220
+ } | undefined;
3221
+ };
3222
+ hidden?: boolean | undefined;
3223
+ sliceId?: string | undefined;
3224
+ }>]>, "many">;
3225
+ } & {
3226
+ properties: z.ZodObject<{
3227
+ title: z.ZodString;
3228
+ pageId: z.ZodString;
3229
+ publicationId: z.ZodString;
3230
+ conceptId: z.ZodOptional<z.ZodString>;
3231
+ metaDescription: z.ZodOptional<z.ZodString>;
3232
+ pageTheme: z.ZodOptional<z.ZodString>;
3233
+ sponsorText: z.ZodOptional<z.ZodString>;
3234
+ sponsorImage: z.ZodOptional<z.ZodString>;
3235
+ } & {
3236
+ homepageListId: z.ZodString;
3237
+ }, "strip", z.ZodTypeAny, {
3238
+ title: string;
3239
+ pageId: string;
3240
+ publicationId: string;
3241
+ homepageListId: string;
3242
+ conceptId?: string | undefined;
3243
+ metaDescription?: string | undefined;
3244
+ pageTheme?: string | undefined;
3245
+ sponsorText?: string | undefined;
3246
+ sponsorImage?: string | undefined;
3247
+ }, {
3248
+ title: string;
3249
+ pageId: string;
3250
+ publicationId: string;
3251
+ homepageListId: string;
3252
+ conceptId?: string | undefined;
3253
+ metaDescription?: string | undefined;
3254
+ pageTheme?: string | undefined;
2940
3255
  sponsorText?: string | undefined;
2941
3256
  sponsorImage?: string | undefined;
2942
3257
  }>;
@@ -3008,8 +3323,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
3008
3323
  description: {
3009
3324
  type: "doc";
3010
3325
  content: ({
3011
- text: string;
3012
3326
  type: "text";
3327
+ text: string;
3013
3328
  marks?: ({
3014
3329
  type: "link";
3015
3330
  attrs: {
@@ -3027,8 +3342,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
3027
3342
  } | {
3028
3343
  type: "paragraph";
3029
3344
  content: {
3030
- text: string;
3031
3345
  type: "text";
3346
+ text: string;
3032
3347
  marks?: ({
3033
3348
  type: "link";
3034
3349
  attrs: {
@@ -3066,6 +3381,17 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
3066
3381
  };
3067
3382
  hidden?: boolean | undefined;
3068
3383
  sliceId?: string | undefined;
3384
+ } | {
3385
+ type: "StoryGroup";
3386
+ properties: {
3387
+ storySlots: [string, ...string[]];
3388
+ heading?: {
3389
+ text: string;
3390
+ href?: string | undefined;
3391
+ } | undefined;
3392
+ };
3393
+ hidden?: boolean | undefined;
3394
+ sliceId?: string | undefined;
3069
3395
  })[];
3070
3396
  }, {
3071
3397
  properties: {
@@ -3135,8 +3461,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
3135
3461
  description: {
3136
3462
  type: "doc";
3137
3463
  content: ({
3138
- text: string;
3139
3464
  type: "text";
3465
+ text: string;
3140
3466
  marks?: ({
3141
3467
  type: "link";
3142
3468
  attrs: {
@@ -3154,8 +3480,8 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
3154
3480
  } | {
3155
3481
  type: "paragraph";
3156
3482
  content: {
3157
- text: string;
3158
3483
  type: "text";
3484
+ text: string;
3159
3485
  marks?: ({
3160
3486
  type: "link";
3161
3487
  attrs: {
@@ -3193,6 +3519,17 @@ declare const HomepageStructureInputSchema: z.ZodObject<{
3193
3519
  };
3194
3520
  hidden?: boolean | undefined;
3195
3521
  sliceId?: string | undefined;
3522
+ } | {
3523
+ type: "StoryGroup";
3524
+ properties: {
3525
+ storySlots: [string, ...string[]];
3526
+ heading?: {
3527
+ text: string;
3528
+ href?: string | undefined;
3529
+ } | undefined;
3530
+ };
3531
+ hidden?: boolean | undefined;
3532
+ sliceId?: string | undefined;
3196
3533
  })[];
3197
3534
  }>;
3198
3535
  export { HomepageStructureInputSchema }
@@ -3513,8 +3850,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3513
3850
  type: "strike";
3514
3851
  }>]>, "many">>;
3515
3852
  }, "strip", z.ZodTypeAny, {
3516
- text: string;
3517
3853
  type: "text";
3854
+ text: string;
3518
3855
  marks?: ({
3519
3856
  type: "link";
3520
3857
  attrs: {
@@ -3530,8 +3867,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3530
3867
  type: "strike";
3531
3868
  })[] | undefined;
3532
3869
  }, {
3533
- text: string;
3534
3870
  type: "text";
3871
+ text: string;
3535
3872
  marks?: ({
3536
3873
  type: "link";
3537
3874
  attrs: {
@@ -3550,8 +3887,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3550
3887
  }, "strip", z.ZodTypeAny, {
3551
3888
  type: "paragraph";
3552
3889
  content: {
3553
- text: string;
3554
3890
  type: "text";
3891
+ text: string;
3555
3892
  marks?: ({
3556
3893
  type: "link";
3557
3894
  attrs: {
@@ -3570,8 +3907,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3570
3907
  }, {
3571
3908
  type: "paragraph";
3572
3909
  content: {
3573
- text: string;
3574
3910
  type: "text";
3911
+ text: string;
3575
3912
  marks?: ({
3576
3913
  type: "link";
3577
3914
  attrs: {
@@ -3635,8 +3972,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3635
3972
  type: "strike";
3636
3973
  }>]>, "many">>;
3637
3974
  }, "strip", z.ZodTypeAny, {
3638
- text: string;
3639
3975
  type: "text";
3976
+ text: string;
3640
3977
  marks?: ({
3641
3978
  type: "link";
3642
3979
  attrs: {
@@ -3652,8 +3989,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3652
3989
  type: "strike";
3653
3990
  })[] | undefined;
3654
3991
  }, {
3655
- text: string;
3656
3992
  type: "text";
3993
+ text: string;
3657
3994
  marks?: ({
3658
3995
  type: "link";
3659
3996
  attrs: {
@@ -3672,8 +4009,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3672
4009
  }, "strip", z.ZodTypeAny, {
3673
4010
  type: "doc";
3674
4011
  content: ({
3675
- text: string;
3676
4012
  type: "text";
4013
+ text: string;
3677
4014
  marks?: ({
3678
4015
  type: "link";
3679
4016
  attrs: {
@@ -3691,8 +4028,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3691
4028
  } | {
3692
4029
  type: "paragraph";
3693
4030
  content: {
3694
- text: string;
3695
4031
  type: "text";
4032
+ text: string;
3696
4033
  marks?: ({
3697
4034
  type: "link";
3698
4035
  attrs: {
@@ -3712,8 +4049,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3712
4049
  }, {
3713
4050
  type: "doc";
3714
4051
  content: ({
3715
- text: string;
3716
4052
  type: "text";
4053
+ text: string;
3717
4054
  marks?: ({
3718
4055
  type: "link";
3719
4056
  attrs: {
@@ -3731,8 +4068,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3731
4068
  } | {
3732
4069
  type: "paragraph";
3733
4070
  content: {
3734
- text: string;
3735
4071
  type: "text";
4072
+ text: string;
3736
4073
  marks?: ({
3737
4074
  type: "link";
3738
4075
  attrs: {
@@ -3755,8 +4092,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3755
4092
  description: {
3756
4093
  type: "doc";
3757
4094
  content: ({
3758
- text: string;
3759
4095
  type: "text";
4096
+ text: string;
3760
4097
  marks?: ({
3761
4098
  type: "link";
3762
4099
  attrs: {
@@ -3774,8 +4111,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3774
4111
  } | {
3775
4112
  type: "paragraph";
3776
4113
  content: {
3777
- text: string;
3778
4114
  type: "text";
4115
+ text: string;
3779
4116
  marks?: ({
3780
4117
  type: "link";
3781
4118
  attrs: {
@@ -3802,8 +4139,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3802
4139
  description: {
3803
4140
  type: "doc";
3804
4141
  content: ({
3805
- text: string;
3806
4142
  type: "text";
4143
+ text: string;
3807
4144
  marks?: ({
3808
4145
  type: "link";
3809
4146
  attrs: {
@@ -3821,8 +4158,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3821
4158
  } | {
3822
4159
  type: "paragraph";
3823
4160
  content: {
3824
- text: string;
3825
4161
  type: "text";
4162
+ text: string;
3826
4163
  marks?: ({
3827
4164
  type: "link";
3828
4165
  attrs: {
@@ -3854,8 +4191,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3854
4191
  description: {
3855
4192
  type: "doc";
3856
4193
  content: ({
3857
- text: string;
3858
4194
  type: "text";
4195
+ text: string;
3859
4196
  marks?: ({
3860
4197
  type: "link";
3861
4198
  attrs: {
@@ -3873,8 +4210,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3873
4210
  } | {
3874
4211
  type: "paragraph";
3875
4212
  content: {
3876
- text: string;
3877
4213
  type: "text";
4214
+ text: string;
3878
4215
  marks?: ({
3879
4216
  type: "link";
3880
4217
  attrs: {
@@ -3906,8 +4243,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3906
4243
  description: {
3907
4244
  type: "doc";
3908
4245
  content: ({
3909
- text: string;
3910
4246
  type: "text";
4247
+ text: string;
3911
4248
  marks?: ({
3912
4249
  type: "link";
3913
4250
  attrs: {
@@ -3925,8 +4262,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
3925
4262
  } | {
3926
4263
  type: "paragraph";
3927
4264
  content: {
3928
- text: string;
3929
4265
  type: "text";
4266
+ text: string;
3930
4267
  marks?: ({
3931
4268
  type: "link";
3932
4269
  attrs: {
@@ -4010,6 +4347,59 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
4010
4347
  };
4011
4348
  sliceId: string;
4012
4349
  hidden?: boolean | undefined;
4350
+ }>, z.ZodObject<{
4351
+ type: z.ZodLiteral<"StoryGroup">;
4352
+ hidden: z.ZodOptional<z.ZodBoolean>;
4353
+ properties: z.ZodObject<{
4354
+ heading: z.ZodOptional<z.ZodObject<{
4355
+ text: z.ZodString;
4356
+ href: z.ZodOptional<z.ZodString>;
4357
+ }, "strip", z.ZodTypeAny, {
4358
+ text: string;
4359
+ href?: string | undefined;
4360
+ }, {
4361
+ text: string;
4362
+ href?: string | undefined;
4363
+ }>>;
4364
+ } & {
4365
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
4366
+ }, "strip", z.ZodTypeAny, {
4367
+ storySlots: [string, ...string[]];
4368
+ heading?: {
4369
+ text: string;
4370
+ href?: string | undefined;
4371
+ } | undefined;
4372
+ }, {
4373
+ storySlots: [string, ...string[]];
4374
+ heading?: {
4375
+ text: string;
4376
+ href?: string | undefined;
4377
+ } | undefined;
4378
+ }>;
4379
+ } & {
4380
+ sliceId: z.ZodString;
4381
+ }, "strip", z.ZodTypeAny, {
4382
+ type: "StoryGroup";
4383
+ properties: {
4384
+ storySlots: [string, ...string[]];
4385
+ heading?: {
4386
+ text: string;
4387
+ href?: string | undefined;
4388
+ } | undefined;
4389
+ };
4390
+ sliceId: string;
4391
+ hidden?: boolean | undefined;
4392
+ }, {
4393
+ type: "StoryGroup";
4394
+ properties: {
4395
+ storySlots: [string, ...string[]];
4396
+ heading?: {
4397
+ text: string;
4398
+ href?: string | undefined;
4399
+ } | undefined;
4400
+ };
4401
+ sliceId: string;
4402
+ hidden?: boolean | undefined;
4013
4403
  }>]>, "many">;
4014
4404
  } & {
4015
4405
  type: z.ZodLiteral<"Homepage">;
@@ -4114,8 +4504,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
4114
4504
  description: {
4115
4505
  type: "doc";
4116
4506
  content: ({
4117
- text: string;
4118
4507
  type: "text";
4508
+ text: string;
4119
4509
  marks?: ({
4120
4510
  type: "link";
4121
4511
  attrs: {
@@ -4133,8 +4523,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
4133
4523
  } | {
4134
4524
  type: "paragraph";
4135
4525
  content: {
4136
- text: string;
4137
4526
  type: "text";
4527
+ text: string;
4138
4528
  marks?: ({
4139
4529
  type: "link";
4140
4530
  attrs: {
@@ -4172,6 +4562,17 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
4172
4562
  };
4173
4563
  sliceId: string;
4174
4564
  hidden?: boolean | undefined;
4565
+ } | {
4566
+ type: "StoryGroup";
4567
+ properties: {
4568
+ storySlots: [string, ...string[]];
4569
+ heading?: {
4570
+ text: string;
4571
+ href?: string | undefined;
4572
+ } | undefined;
4573
+ };
4574
+ sliceId: string;
4575
+ hidden?: boolean | undefined;
4175
4576
  })[];
4176
4577
  schemaVersion: number;
4177
4578
  }, {
@@ -4243,8 +4644,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
4243
4644
  description: {
4244
4645
  type: "doc";
4245
4646
  content: ({
4246
- text: string;
4247
4647
  type: "text";
4648
+ text: string;
4248
4649
  marks?: ({
4249
4650
  type: "link";
4250
4651
  attrs: {
@@ -4262,8 +4663,8 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
4262
4663
  } | {
4263
4664
  type: "paragraph";
4264
4665
  content: {
4265
- text: string;
4266
4666
  type: "text";
4667
+ text: string;
4267
4668
  marks?: ({
4268
4669
  type: "link";
4269
4670
  attrs: {
@@ -4301,6 +4702,17 @@ declare const HomepageStructureOutputSchema: z.ZodObject<{
4301
4702
  };
4302
4703
  sliceId: string;
4303
4704
  hidden?: boolean | undefined;
4705
+ } | {
4706
+ type: "StoryGroup";
4707
+ properties: {
4708
+ storySlots: [string, ...string[]];
4709
+ heading?: {
4710
+ text: string;
4711
+ href?: string | undefined;
4712
+ } | undefined;
4713
+ };
4714
+ sliceId: string;
4715
+ hidden?: boolean | undefined;
4304
4716
  })[];
4305
4717
  schemaVersion: number;
4306
4718
  }>;
@@ -4462,6 +4874,11 @@ declare type InteractiveSliceType = z.infer<typeof InteractiveSlice.OutputSchema
4462
4874
  export { InteractiveSliceType }
4463
4875
  export { InteractiveSliceType as InteractiveSliceType_alias_1 }
4464
4876
 
4877
+ /**
4878
+ * Returns `true` when a status code should always be treated as an API Gateway failure.
4879
+ */
4880
+ export declare function isGatewayStatusCode(statusCode: number): boolean;
4881
+
4465
4882
  declare type LegacyBlock = z.infer<typeof LegacyBlockSchema>;
4466
4883
  export { LegacyBlock }
4467
4884
  export { LegacyBlock as LegacyBlock_alias_1 }
@@ -4656,39 +5073,39 @@ declare const LegacyBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4656
5073
  value: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
4657
5074
  format: z.ZodOptional<z.ZodDefault<z.ZodEnum<["json"]>>>;
4658
5075
  }, "strip", z.ZodTypeAny, {
4659
- format?: "json" | undefined;
4660
5076
  value?: unknown;
4661
- }, {
4662
5077
  format?: "json" | undefined;
5078
+ }, {
4663
5079
  value?: unknown;
5080
+ format?: "json" | undefined;
4664
5081
  }>>;
4665
5082
  }, "strip", z.ZodTypeAny, {
4666
5083
  experimentName: string;
4667
5084
  id: string;
5085
+ title?: string | undefined;
4668
5086
  config?: {
4669
- format?: "json" | undefined;
4670
5087
  value?: unknown;
5088
+ format?: "json" | undefined;
4671
5089
  } | undefined;
4672
- title?: string | undefined;
4673
5090
  }, {
4674
5091
  experimentName: string;
4675
5092
  id: string;
5093
+ title?: string | undefined;
4676
5094
  config?: {
4677
- format?: "json" | undefined;
4678
5095
  value?: unknown;
5096
+ format?: "json" | undefined;
4679
5097
  } | undefined;
4680
- title?: string | undefined;
4681
5098
  }>;
4682
5099
  }, "strip", z.ZodTypeAny, {
4683
5100
  type: "experiment";
4684
5101
  properties: {
4685
5102
  experimentName: string;
4686
5103
  id: string;
5104
+ title?: string | undefined;
4687
5105
  config?: {
4688
- format?: "json" | undefined;
4689
5106
  value?: unknown;
5107
+ format?: "json" | undefined;
4690
5108
  } | undefined;
4691
- title?: string | undefined;
4692
5109
  };
4693
5110
  children: [];
4694
5111
  }, {
@@ -4696,11 +5113,11 @@ declare const LegacyBlockSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4696
5113
  properties: {
4697
5114
  experimentName: string;
4698
5115
  id: string;
5116
+ title?: string | undefined;
4699
5117
  config?: {
4700
- format?: "json" | undefined;
4701
5118
  value?: unknown;
5119
+ format?: "json" | undefined;
4702
5120
  } | undefined;
4703
- title?: string | undefined;
4704
5121
  };
4705
5122
  children: [];
4706
5123
  }>]>;
@@ -4905,39 +5322,39 @@ declare const LegacyPageStructureOutputSchema: z.ZodObject<{
4905
5322
  value: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
4906
5323
  format: z.ZodOptional<z.ZodDefault<z.ZodEnum<["json"]>>>;
4907
5324
  }, "strip", z.ZodTypeAny, {
4908
- format?: "json" | undefined;
4909
5325
  value?: unknown;
4910
- }, {
4911
5326
  format?: "json" | undefined;
5327
+ }, {
4912
5328
  value?: unknown;
5329
+ format?: "json" | undefined;
4913
5330
  }>>;
4914
5331
  }, "strip", z.ZodTypeAny, {
4915
5332
  experimentName: string;
4916
5333
  id: string;
5334
+ title?: string | undefined;
4917
5335
  config?: {
4918
- format?: "json" | undefined;
4919
5336
  value?: unknown;
5337
+ format?: "json" | undefined;
4920
5338
  } | undefined;
4921
- title?: string | undefined;
4922
5339
  }, {
4923
5340
  experimentName: string;
4924
5341
  id: string;
5342
+ title?: string | undefined;
4925
5343
  config?: {
4926
- format?: "json" | undefined;
4927
5344
  value?: unknown;
5345
+ format?: "json" | undefined;
4928
5346
  } | undefined;
4929
- title?: string | undefined;
4930
5347
  }>;
4931
5348
  }, "strip", z.ZodTypeAny, {
4932
5349
  type: "experiment";
4933
5350
  properties: {
4934
5351
  experimentName: string;
4935
5352
  id: string;
5353
+ title?: string | undefined;
4936
5354
  config?: {
4937
- format?: "json" | undefined;
4938
5355
  value?: unknown;
5356
+ format?: "json" | undefined;
4939
5357
  } | undefined;
4940
- title?: string | undefined;
4941
5358
  };
4942
5359
  children: [];
4943
5360
  }, {
@@ -4945,11 +5362,11 @@ declare const LegacyPageStructureOutputSchema: z.ZodObject<{
4945
5362
  properties: {
4946
5363
  experimentName: string;
4947
5364
  id: string;
5365
+ title?: string | undefined;
4948
5366
  config?: {
4949
- format?: "json" | undefined;
4950
5367
  value?: unknown;
5368
+ format?: "json" | undefined;
4951
5369
  } | undefined;
4952
- title?: string | undefined;
4953
5370
  };
4954
5371
  children: [];
4955
5372
  }>]>, "many">;
@@ -4998,11 +5415,11 @@ declare const LegacyPageStructureOutputSchema: z.ZodObject<{
4998
5415
  properties: {
4999
5416
  experimentName: string;
5000
5417
  id: string;
5418
+ title?: string | undefined;
5001
5419
  config?: {
5002
- format?: "json" | undefined;
5003
5420
  value?: unknown;
5421
+ format?: "json" | undefined;
5004
5422
  } | undefined;
5005
- title?: string | undefined;
5006
5423
  };
5007
5424
  children: [];
5008
5425
  })[];
@@ -5054,11 +5471,11 @@ declare const LegacyPageStructureOutputSchema: z.ZodObject<{
5054
5471
  properties: {
5055
5472
  experimentName: string;
5056
5473
  id: string;
5474
+ title?: string | undefined;
5057
5475
  config?: {
5058
- format?: "json" | undefined;
5059
5476
  value?: unknown;
5477
+ format?: "json" | undefined;
5060
5478
  } | undefined;
5061
- title?: string | undefined;
5062
5479
  };
5063
5480
  children: [];
5064
5481
  })[];
@@ -5449,8 +5866,8 @@ declare const PageDraftSchema: z.ZodObject<{
5449
5866
  type: "strike";
5450
5867
  }>]>, "many">>;
5451
5868
  }, "strip", z.ZodTypeAny, {
5452
- text: string;
5453
5869
  type: "text";
5870
+ text: string;
5454
5871
  marks?: ({
5455
5872
  type: "link";
5456
5873
  attrs: {
@@ -5466,8 +5883,8 @@ declare const PageDraftSchema: z.ZodObject<{
5466
5883
  type: "strike";
5467
5884
  })[] | undefined;
5468
5885
  }, {
5469
- text: string;
5470
5886
  type: "text";
5887
+ text: string;
5471
5888
  marks?: ({
5472
5889
  type: "link";
5473
5890
  attrs: {
@@ -5486,8 +5903,8 @@ declare const PageDraftSchema: z.ZodObject<{
5486
5903
  }, "strip", z.ZodTypeAny, {
5487
5904
  type: "paragraph";
5488
5905
  content: {
5489
- text: string;
5490
5906
  type: "text";
5907
+ text: string;
5491
5908
  marks?: ({
5492
5909
  type: "link";
5493
5910
  attrs: {
@@ -5506,8 +5923,8 @@ declare const PageDraftSchema: z.ZodObject<{
5506
5923
  }, {
5507
5924
  type: "paragraph";
5508
5925
  content: {
5509
- text: string;
5510
5926
  type: "text";
5927
+ text: string;
5511
5928
  marks?: ({
5512
5929
  type: "link";
5513
5930
  attrs: {
@@ -5571,8 +5988,8 @@ declare const PageDraftSchema: z.ZodObject<{
5571
5988
  type: "strike";
5572
5989
  }>]>, "many">>;
5573
5990
  }, "strip", z.ZodTypeAny, {
5574
- text: string;
5575
5991
  type: "text";
5992
+ text: string;
5576
5993
  marks?: ({
5577
5994
  type: "link";
5578
5995
  attrs: {
@@ -5588,8 +6005,8 @@ declare const PageDraftSchema: z.ZodObject<{
5588
6005
  type: "strike";
5589
6006
  })[] | undefined;
5590
6007
  }, {
5591
- text: string;
5592
6008
  type: "text";
6009
+ text: string;
5593
6010
  marks?: ({
5594
6011
  type: "link";
5595
6012
  attrs: {
@@ -5608,8 +6025,8 @@ declare const PageDraftSchema: z.ZodObject<{
5608
6025
  }, "strip", z.ZodTypeAny, {
5609
6026
  type: "doc";
5610
6027
  content: ({
5611
- text: string;
5612
6028
  type: "text";
6029
+ text: string;
5613
6030
  marks?: ({
5614
6031
  type: "link";
5615
6032
  attrs: {
@@ -5627,8 +6044,8 @@ declare const PageDraftSchema: z.ZodObject<{
5627
6044
  } | {
5628
6045
  type: "paragraph";
5629
6046
  content: {
5630
- text: string;
5631
6047
  type: "text";
6048
+ text: string;
5632
6049
  marks?: ({
5633
6050
  type: "link";
5634
6051
  attrs: {
@@ -5648,8 +6065,8 @@ declare const PageDraftSchema: z.ZodObject<{
5648
6065
  }, {
5649
6066
  type: "doc";
5650
6067
  content: ({
5651
- text: string;
5652
6068
  type: "text";
6069
+ text: string;
5653
6070
  marks?: ({
5654
6071
  type: "link";
5655
6072
  attrs: {
@@ -5667,8 +6084,8 @@ declare const PageDraftSchema: z.ZodObject<{
5667
6084
  } | {
5668
6085
  type: "paragraph";
5669
6086
  content: {
5670
- text: string;
5671
6087
  type: "text";
6088
+ text: string;
5672
6089
  marks?: ({
5673
6090
  type: "link";
5674
6091
  attrs: {
@@ -5691,8 +6108,8 @@ declare const PageDraftSchema: z.ZodObject<{
5691
6108
  description: {
5692
6109
  type: "doc";
5693
6110
  content: ({
5694
- text: string;
5695
6111
  type: "text";
6112
+ text: string;
5696
6113
  marks?: ({
5697
6114
  type: "link";
5698
6115
  attrs: {
@@ -5710,8 +6127,8 @@ declare const PageDraftSchema: z.ZodObject<{
5710
6127
  } | {
5711
6128
  type: "paragraph";
5712
6129
  content: {
5713
- text: string;
5714
6130
  type: "text";
6131
+ text: string;
5715
6132
  marks?: ({
5716
6133
  type: "link";
5717
6134
  attrs: {
@@ -5738,8 +6155,8 @@ declare const PageDraftSchema: z.ZodObject<{
5738
6155
  description: {
5739
6156
  type: "doc";
5740
6157
  content: ({
5741
- text: string;
5742
6158
  type: "text";
6159
+ text: string;
5743
6160
  marks?: ({
5744
6161
  type: "link";
5745
6162
  attrs: {
@@ -5757,8 +6174,8 @@ declare const PageDraftSchema: z.ZodObject<{
5757
6174
  } | {
5758
6175
  type: "paragraph";
5759
6176
  content: {
5760
- text: string;
5761
6177
  type: "text";
6178
+ text: string;
5762
6179
  marks?: ({
5763
6180
  type: "link";
5764
6181
  attrs: {
@@ -5790,8 +6207,8 @@ declare const PageDraftSchema: z.ZodObject<{
5790
6207
  description: {
5791
6208
  type: "doc";
5792
6209
  content: ({
5793
- text: string;
5794
6210
  type: "text";
6211
+ text: string;
5795
6212
  marks?: ({
5796
6213
  type: "link";
5797
6214
  attrs: {
@@ -5809,8 +6226,8 @@ declare const PageDraftSchema: z.ZodObject<{
5809
6226
  } | {
5810
6227
  type: "paragraph";
5811
6228
  content: {
5812
- text: string;
5813
6229
  type: "text";
6230
+ text: string;
5814
6231
  marks?: ({
5815
6232
  type: "link";
5816
6233
  attrs: {
@@ -5842,8 +6259,8 @@ declare const PageDraftSchema: z.ZodObject<{
5842
6259
  description: {
5843
6260
  type: "doc";
5844
6261
  content: ({
5845
- text: string;
5846
6262
  type: "text";
6263
+ text: string;
5847
6264
  marks?: ({
5848
6265
  type: "link";
5849
6266
  attrs: {
@@ -5861,8 +6278,8 @@ declare const PageDraftSchema: z.ZodObject<{
5861
6278
  } | {
5862
6279
  type: "paragraph";
5863
6280
  content: {
5864
- text: string;
5865
6281
  type: "text";
6282
+ text: string;
5866
6283
  marks?: ({
5867
6284
  type: "link";
5868
6285
  attrs: {
@@ -5946,6 +6363,59 @@ declare const PageDraftSchema: z.ZodObject<{
5946
6363
  };
5947
6364
  sliceId: string;
5948
6365
  hidden?: boolean | undefined;
6366
+ }>, z.ZodObject<{
6367
+ type: z.ZodLiteral<"StoryGroup">;
6368
+ hidden: z.ZodOptional<z.ZodBoolean>;
6369
+ properties: z.ZodObject<{
6370
+ heading: z.ZodOptional<z.ZodObject<{
6371
+ text: z.ZodString;
6372
+ href: z.ZodOptional<z.ZodString>;
6373
+ }, "strip", z.ZodTypeAny, {
6374
+ text: string;
6375
+ href?: string | undefined;
6376
+ }, {
6377
+ text: string;
6378
+ href?: string | undefined;
6379
+ }>>;
6380
+ } & {
6381
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
6382
+ }, "strip", z.ZodTypeAny, {
6383
+ storySlots: [string, ...string[]];
6384
+ heading?: {
6385
+ text: string;
6386
+ href?: string | undefined;
6387
+ } | undefined;
6388
+ }, {
6389
+ storySlots: [string, ...string[]];
6390
+ heading?: {
6391
+ text: string;
6392
+ href?: string | undefined;
6393
+ } | undefined;
6394
+ }>;
6395
+ } & {
6396
+ sliceId: z.ZodString;
6397
+ }, "strip", z.ZodTypeAny, {
6398
+ type: "StoryGroup";
6399
+ properties: {
6400
+ storySlots: [string, ...string[]];
6401
+ heading?: {
6402
+ text: string;
6403
+ href?: string | undefined;
6404
+ } | undefined;
6405
+ };
6406
+ sliceId: string;
6407
+ hidden?: boolean | undefined;
6408
+ }, {
6409
+ type: "StoryGroup";
6410
+ properties: {
6411
+ storySlots: [string, ...string[]];
6412
+ heading?: {
6413
+ text: string;
6414
+ href?: string | undefined;
6415
+ } | undefined;
6416
+ };
6417
+ sliceId: string;
6418
+ hidden?: boolean | undefined;
5949
6419
  }>]>, "many">;
5950
6420
  }, "strip", z.ZodTypeAny, {
5951
6421
  type: "Page";
@@ -6015,8 +6485,8 @@ declare const PageDraftSchema: z.ZodObject<{
6015
6485
  description: {
6016
6486
  type: "doc";
6017
6487
  content: ({
6018
- text: string;
6019
6488
  type: "text";
6489
+ text: string;
6020
6490
  marks?: ({
6021
6491
  type: "link";
6022
6492
  attrs: {
@@ -6034,8 +6504,8 @@ declare const PageDraftSchema: z.ZodObject<{
6034
6504
  } | {
6035
6505
  type: "paragraph";
6036
6506
  content: {
6037
- text: string;
6038
6507
  type: "text";
6508
+ text: string;
6039
6509
  marks?: ({
6040
6510
  type: "link";
6041
6511
  attrs: {
@@ -6073,6 +6543,17 @@ declare const PageDraftSchema: z.ZodObject<{
6073
6543
  };
6074
6544
  sliceId: string;
6075
6545
  hidden?: boolean | undefined;
6546
+ } | {
6547
+ type: "StoryGroup";
6548
+ properties: {
6549
+ storySlots: [string, ...string[]];
6550
+ heading?: {
6551
+ text: string;
6552
+ href?: string | undefined;
6553
+ } | undefined;
6554
+ };
6555
+ sliceId: string;
6556
+ hidden?: boolean | undefined;
6076
6557
  })[];
6077
6558
  schemaVersion: number;
6078
6559
  }, {
@@ -6143,8 +6624,8 @@ declare const PageDraftSchema: z.ZodObject<{
6143
6624
  description: {
6144
6625
  type: "doc";
6145
6626
  content: ({
6146
- text: string;
6147
6627
  type: "text";
6628
+ text: string;
6148
6629
  marks?: ({
6149
6630
  type: "link";
6150
6631
  attrs: {
@@ -6162,8 +6643,8 @@ declare const PageDraftSchema: z.ZodObject<{
6162
6643
  } | {
6163
6644
  type: "paragraph";
6164
6645
  content: {
6165
- text: string;
6166
6646
  type: "text";
6647
+ text: string;
6167
6648
  marks?: ({
6168
6649
  type: "link";
6169
6650
  attrs: {
@@ -6201,6 +6682,17 @@ declare const PageDraftSchema: z.ZodObject<{
6201
6682
  };
6202
6683
  sliceId: string;
6203
6684
  hidden?: boolean | undefined;
6685
+ } | {
6686
+ type: "StoryGroup";
6687
+ properties: {
6688
+ storySlots: [string, ...string[]];
6689
+ heading?: {
6690
+ text: string;
6691
+ href?: string | undefined;
6692
+ } | undefined;
6693
+ };
6694
+ sliceId: string;
6695
+ hidden?: boolean | undefined;
6204
6696
  })[];
6205
6697
  schemaVersion: number;
6206
6698
  }>;
@@ -6283,8 +6775,8 @@ declare const PageDraftSchema: z.ZodObject<{
6283
6775
  description: {
6284
6776
  type: "doc";
6285
6777
  content: ({
6286
- text: string;
6287
6778
  type: "text";
6779
+ text: string;
6288
6780
  marks?: ({
6289
6781
  type: "link";
6290
6782
  attrs: {
@@ -6302,8 +6794,8 @@ declare const PageDraftSchema: z.ZodObject<{
6302
6794
  } | {
6303
6795
  type: "paragraph";
6304
6796
  content: {
6305
- text: string;
6306
6797
  type: "text";
6798
+ text: string;
6307
6799
  marks?: ({
6308
6800
  type: "link";
6309
6801
  attrs: {
@@ -6341,6 +6833,17 @@ declare const PageDraftSchema: z.ZodObject<{
6341
6833
  };
6342
6834
  sliceId: string;
6343
6835
  hidden?: boolean | undefined;
6836
+ } | {
6837
+ type: "StoryGroup";
6838
+ properties: {
6839
+ storySlots: [string, ...string[]];
6840
+ heading?: {
6841
+ text: string;
6842
+ href?: string | undefined;
6843
+ } | undefined;
6844
+ };
6845
+ sliceId: string;
6846
+ hidden?: boolean | undefined;
6344
6847
  })[];
6345
6848
  schemaVersion: number;
6346
6849
  };
@@ -6423,8 +6926,8 @@ declare const PageDraftSchema: z.ZodObject<{
6423
6926
  description: {
6424
6927
  type: "doc";
6425
6928
  content: ({
6426
- text: string;
6427
6929
  type: "text";
6930
+ text: string;
6428
6931
  marks?: ({
6429
6932
  type: "link";
6430
6933
  attrs: {
@@ -6442,8 +6945,8 @@ declare const PageDraftSchema: z.ZodObject<{
6442
6945
  } | {
6443
6946
  type: "paragraph";
6444
6947
  content: {
6445
- text: string;
6446
6948
  type: "text";
6949
+ text: string;
6447
6950
  marks?: ({
6448
6951
  type: "link";
6449
6952
  attrs: {
@@ -6481,6 +6984,17 @@ declare const PageDraftSchema: z.ZodObject<{
6481
6984
  };
6482
6985
  sliceId: string;
6483
6986
  hidden?: boolean | undefined;
6987
+ } | {
6988
+ type: "StoryGroup";
6989
+ properties: {
6990
+ storySlots: [string, ...string[]];
6991
+ heading?: {
6992
+ text: string;
6993
+ href?: string | undefined;
6994
+ } | undefined;
6995
+ };
6996
+ sliceId: string;
6997
+ hidden?: boolean | undefined;
6484
6998
  })[];
6485
6999
  schemaVersion: number;
6486
7000
  };
@@ -6835,8 +7349,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
6835
7349
  type: "strike";
6836
7350
  }>]>, "many">>;
6837
7351
  }, "strip", z.ZodTypeAny, {
6838
- text: string;
6839
7352
  type: "text";
7353
+ text: string;
6840
7354
  marks?: ({
6841
7355
  type: "link";
6842
7356
  attrs: {
@@ -6852,8 +7366,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
6852
7366
  type: "strike";
6853
7367
  })[] | undefined;
6854
7368
  }, {
6855
- text: string;
6856
7369
  type: "text";
7370
+ text: string;
6857
7371
  marks?: ({
6858
7372
  type: "link";
6859
7373
  attrs: {
@@ -6872,8 +7386,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
6872
7386
  }, "strip", z.ZodTypeAny, {
6873
7387
  type: "paragraph";
6874
7388
  content: {
6875
- text: string;
6876
7389
  type: "text";
7390
+ text: string;
6877
7391
  marks?: ({
6878
7392
  type: "link";
6879
7393
  attrs: {
@@ -6892,8 +7406,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
6892
7406
  }, {
6893
7407
  type: "paragraph";
6894
7408
  content: {
6895
- text: string;
6896
7409
  type: "text";
7410
+ text: string;
6897
7411
  marks?: ({
6898
7412
  type: "link";
6899
7413
  attrs: {
@@ -6957,8 +7471,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
6957
7471
  type: "strike";
6958
7472
  }>]>, "many">>;
6959
7473
  }, "strip", z.ZodTypeAny, {
6960
- text: string;
6961
7474
  type: "text";
7475
+ text: string;
6962
7476
  marks?: ({
6963
7477
  type: "link";
6964
7478
  attrs: {
@@ -6974,8 +7488,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
6974
7488
  type: "strike";
6975
7489
  })[] | undefined;
6976
7490
  }, {
6977
- text: string;
6978
7491
  type: "text";
7492
+ text: string;
6979
7493
  marks?: ({
6980
7494
  type: "link";
6981
7495
  attrs: {
@@ -6994,8 +7508,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
6994
7508
  }, "strip", z.ZodTypeAny, {
6995
7509
  type: "doc";
6996
7510
  content: ({
6997
- text: string;
6998
7511
  type: "text";
7512
+ text: string;
6999
7513
  marks?: ({
7000
7514
  type: "link";
7001
7515
  attrs: {
@@ -7013,8 +7527,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7013
7527
  } | {
7014
7528
  type: "paragraph";
7015
7529
  content: {
7016
- text: string;
7017
7530
  type: "text";
7531
+ text: string;
7018
7532
  marks?: ({
7019
7533
  type: "link";
7020
7534
  attrs: {
@@ -7034,8 +7548,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7034
7548
  }, {
7035
7549
  type: "doc";
7036
7550
  content: ({
7037
- text: string;
7038
7551
  type: "text";
7552
+ text: string;
7039
7553
  marks?: ({
7040
7554
  type: "link";
7041
7555
  attrs: {
@@ -7053,8 +7567,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7053
7567
  } | {
7054
7568
  type: "paragraph";
7055
7569
  content: {
7056
- text: string;
7057
7570
  type: "text";
7571
+ text: string;
7058
7572
  marks?: ({
7059
7573
  type: "link";
7060
7574
  attrs: {
@@ -7077,8 +7591,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7077
7591
  description: {
7078
7592
  type: "doc";
7079
7593
  content: ({
7080
- text: string;
7081
7594
  type: "text";
7595
+ text: string;
7082
7596
  marks?: ({
7083
7597
  type: "link";
7084
7598
  attrs: {
@@ -7096,8 +7610,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7096
7610
  } | {
7097
7611
  type: "paragraph";
7098
7612
  content: {
7099
- text: string;
7100
7613
  type: "text";
7614
+ text: string;
7101
7615
  marks?: ({
7102
7616
  type: "link";
7103
7617
  attrs: {
@@ -7124,8 +7638,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7124
7638
  description: {
7125
7639
  type: "doc";
7126
7640
  content: ({
7127
- text: string;
7128
7641
  type: "text";
7642
+ text: string;
7129
7643
  marks?: ({
7130
7644
  type: "link";
7131
7645
  attrs: {
@@ -7143,8 +7657,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7143
7657
  } | {
7144
7658
  type: "paragraph";
7145
7659
  content: {
7146
- text: string;
7147
7660
  type: "text";
7661
+ text: string;
7148
7662
  marks?: ({
7149
7663
  type: "link";
7150
7664
  attrs: {
@@ -7176,8 +7690,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7176
7690
  description: {
7177
7691
  type: "doc";
7178
7692
  content: ({
7179
- text: string;
7180
7693
  type: "text";
7694
+ text: string;
7181
7695
  marks?: ({
7182
7696
  type: "link";
7183
7697
  attrs: {
@@ -7195,8 +7709,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7195
7709
  } | {
7196
7710
  type: "paragraph";
7197
7711
  content: {
7198
- text: string;
7199
7712
  type: "text";
7713
+ text: string;
7200
7714
  marks?: ({
7201
7715
  type: "link";
7202
7716
  attrs: {
@@ -7228,8 +7742,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7228
7742
  description: {
7229
7743
  type: "doc";
7230
7744
  content: ({
7231
- text: string;
7232
7745
  type: "text";
7746
+ text: string;
7233
7747
  marks?: ({
7234
7748
  type: "link";
7235
7749
  attrs: {
@@ -7247,8 +7761,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7247
7761
  } | {
7248
7762
  type: "paragraph";
7249
7763
  content: {
7250
- text: string;
7251
7764
  type: "text";
7765
+ text: string;
7252
7766
  marks?: ({
7253
7767
  type: "link";
7254
7768
  attrs: {
@@ -7332,6 +7846,59 @@ declare const PageStructureInputSchema: z.ZodObject<{
7332
7846
  };
7333
7847
  hidden?: boolean | undefined;
7334
7848
  sliceId?: string | undefined;
7849
+ }>, z.ZodObject<{
7850
+ type: z.ZodLiteral<"StoryGroup">;
7851
+ hidden: z.ZodOptional<z.ZodBoolean>;
7852
+ properties: z.ZodObject<{
7853
+ heading: z.ZodOptional<z.ZodObject<{
7854
+ text: z.ZodString;
7855
+ href: z.ZodOptional<z.ZodString>;
7856
+ }, "strip", z.ZodTypeAny, {
7857
+ text: string;
7858
+ href?: string | undefined;
7859
+ }, {
7860
+ text: string;
7861
+ href?: string | undefined;
7862
+ }>>;
7863
+ } & {
7864
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
7865
+ }, "strip", z.ZodTypeAny, {
7866
+ storySlots: [string, ...string[]];
7867
+ heading?: {
7868
+ text: string;
7869
+ href?: string | undefined;
7870
+ } | undefined;
7871
+ }, {
7872
+ storySlots: [string, ...string[]];
7873
+ heading?: {
7874
+ text: string;
7875
+ href?: string | undefined;
7876
+ } | undefined;
7877
+ }>;
7878
+ } & {
7879
+ sliceId: z.ZodOptional<z.ZodString>;
7880
+ }, "strip", z.ZodTypeAny, {
7881
+ type: "StoryGroup";
7882
+ properties: {
7883
+ storySlots: [string, ...string[]];
7884
+ heading?: {
7885
+ text: string;
7886
+ href?: string | undefined;
7887
+ } | undefined;
7888
+ };
7889
+ hidden?: boolean | undefined;
7890
+ sliceId?: string | undefined;
7891
+ }, {
7892
+ type: "StoryGroup";
7893
+ properties: {
7894
+ storySlots: [string, ...string[]];
7895
+ heading?: {
7896
+ text: string;
7897
+ href?: string | undefined;
7898
+ } | undefined;
7899
+ };
7900
+ hidden?: boolean | undefined;
7901
+ sliceId?: string | undefined;
7335
7902
  }>]>, "many">;
7336
7903
  }, "strip", z.ZodTypeAny, {
7337
7904
  properties: {
@@ -7400,8 +7967,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7400
7967
  description: {
7401
7968
  type: "doc";
7402
7969
  content: ({
7403
- text: string;
7404
7970
  type: "text";
7971
+ text: string;
7405
7972
  marks?: ({
7406
7973
  type: "link";
7407
7974
  attrs: {
@@ -7419,8 +7986,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7419
7986
  } | {
7420
7987
  type: "paragraph";
7421
7988
  content: {
7422
- text: string;
7423
7989
  type: "text";
7990
+ text: string;
7424
7991
  marks?: ({
7425
7992
  type: "link";
7426
7993
  attrs: {
@@ -7458,6 +8025,17 @@ declare const PageStructureInputSchema: z.ZodObject<{
7458
8025
  };
7459
8026
  hidden?: boolean | undefined;
7460
8027
  sliceId?: string | undefined;
8028
+ } | {
8029
+ type: "StoryGroup";
8030
+ properties: {
8031
+ storySlots: [string, ...string[]];
8032
+ heading?: {
8033
+ text: string;
8034
+ href?: string | undefined;
8035
+ } | undefined;
8036
+ };
8037
+ hidden?: boolean | undefined;
8038
+ sliceId?: string | undefined;
7461
8039
  })[];
7462
8040
  }, {
7463
8041
  properties: {
@@ -7526,8 +8104,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7526
8104
  description: {
7527
8105
  type: "doc";
7528
8106
  content: ({
7529
- text: string;
7530
8107
  type: "text";
8108
+ text: string;
7531
8109
  marks?: ({
7532
8110
  type: "link";
7533
8111
  attrs: {
@@ -7545,8 +8123,8 @@ declare const PageStructureInputSchema: z.ZodObject<{
7545
8123
  } | {
7546
8124
  type: "paragraph";
7547
8125
  content: {
7548
- text: string;
7549
8126
  type: "text";
8127
+ text: string;
7550
8128
  marks?: ({
7551
8129
  type: "link";
7552
8130
  attrs: {
@@ -7584,6 +8162,17 @@ declare const PageStructureInputSchema: z.ZodObject<{
7584
8162
  };
7585
8163
  hidden?: boolean | undefined;
7586
8164
  sliceId?: string | undefined;
8165
+ } | {
8166
+ type: "StoryGroup";
8167
+ properties: {
8168
+ storySlots: [string, ...string[]];
8169
+ heading?: {
8170
+ text: string;
8171
+ href?: string | undefined;
8172
+ } | undefined;
8173
+ };
8174
+ hidden?: boolean | undefined;
8175
+ sliceId?: string | undefined;
7587
8176
  })[];
7588
8177
  }>;
7589
8178
  export { PageStructureInputSchema }
@@ -7936,8 +8525,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
7936
8525
  type: "strike";
7937
8526
  }>]>, "many">>;
7938
8527
  }, "strip", z.ZodTypeAny, {
7939
- text: string;
7940
8528
  type: "text";
8529
+ text: string;
7941
8530
  marks?: ({
7942
8531
  type: "link";
7943
8532
  attrs: {
@@ -7953,8 +8542,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
7953
8542
  type: "strike";
7954
8543
  })[] | undefined;
7955
8544
  }, {
7956
- text: string;
7957
8545
  type: "text";
8546
+ text: string;
7958
8547
  marks?: ({
7959
8548
  type: "link";
7960
8549
  attrs: {
@@ -7973,8 +8562,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
7973
8562
  }, "strip", z.ZodTypeAny, {
7974
8563
  type: "paragraph";
7975
8564
  content: {
7976
- text: string;
7977
8565
  type: "text";
8566
+ text: string;
7978
8567
  marks?: ({
7979
8568
  type: "link";
7980
8569
  attrs: {
@@ -7993,8 +8582,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
7993
8582
  }, {
7994
8583
  type: "paragraph";
7995
8584
  content: {
7996
- text: string;
7997
8585
  type: "text";
8586
+ text: string;
7998
8587
  marks?: ({
7999
8588
  type: "link";
8000
8589
  attrs: {
@@ -8058,8 +8647,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8058
8647
  type: "strike";
8059
8648
  }>]>, "many">>;
8060
8649
  }, "strip", z.ZodTypeAny, {
8061
- text: string;
8062
8650
  type: "text";
8651
+ text: string;
8063
8652
  marks?: ({
8064
8653
  type: "link";
8065
8654
  attrs: {
@@ -8075,8 +8664,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8075
8664
  type: "strike";
8076
8665
  })[] | undefined;
8077
8666
  }, {
8078
- text: string;
8079
8667
  type: "text";
8668
+ text: string;
8080
8669
  marks?: ({
8081
8670
  type: "link";
8082
8671
  attrs: {
@@ -8095,8 +8684,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8095
8684
  }, "strip", z.ZodTypeAny, {
8096
8685
  type: "doc";
8097
8686
  content: ({
8098
- text: string;
8099
8687
  type: "text";
8688
+ text: string;
8100
8689
  marks?: ({
8101
8690
  type: "link";
8102
8691
  attrs: {
@@ -8114,8 +8703,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8114
8703
  } | {
8115
8704
  type: "paragraph";
8116
8705
  content: {
8117
- text: string;
8118
8706
  type: "text";
8707
+ text: string;
8119
8708
  marks?: ({
8120
8709
  type: "link";
8121
8710
  attrs: {
@@ -8135,8 +8724,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8135
8724
  }, {
8136
8725
  type: "doc";
8137
8726
  content: ({
8138
- text: string;
8139
8727
  type: "text";
8728
+ text: string;
8140
8729
  marks?: ({
8141
8730
  type: "link";
8142
8731
  attrs: {
@@ -8154,8 +8743,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8154
8743
  } | {
8155
8744
  type: "paragraph";
8156
8745
  content: {
8157
- text: string;
8158
8746
  type: "text";
8747
+ text: string;
8159
8748
  marks?: ({
8160
8749
  type: "link";
8161
8750
  attrs: {
@@ -8178,8 +8767,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8178
8767
  description: {
8179
8768
  type: "doc";
8180
8769
  content: ({
8181
- text: string;
8182
8770
  type: "text";
8771
+ text: string;
8183
8772
  marks?: ({
8184
8773
  type: "link";
8185
8774
  attrs: {
@@ -8197,8 +8786,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8197
8786
  } | {
8198
8787
  type: "paragraph";
8199
8788
  content: {
8200
- text: string;
8201
8789
  type: "text";
8790
+ text: string;
8202
8791
  marks?: ({
8203
8792
  type: "link";
8204
8793
  attrs: {
@@ -8225,8 +8814,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8225
8814
  description: {
8226
8815
  type: "doc";
8227
8816
  content: ({
8228
- text: string;
8229
8817
  type: "text";
8818
+ text: string;
8230
8819
  marks?: ({
8231
8820
  type: "link";
8232
8821
  attrs: {
@@ -8244,8 +8833,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8244
8833
  } | {
8245
8834
  type: "paragraph";
8246
8835
  content: {
8247
- text: string;
8248
8836
  type: "text";
8837
+ text: string;
8249
8838
  marks?: ({
8250
8839
  type: "link";
8251
8840
  attrs: {
@@ -8277,8 +8866,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8277
8866
  description: {
8278
8867
  type: "doc";
8279
8868
  content: ({
8280
- text: string;
8281
8869
  type: "text";
8870
+ text: string;
8282
8871
  marks?: ({
8283
8872
  type: "link";
8284
8873
  attrs: {
@@ -8296,8 +8885,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8296
8885
  } | {
8297
8886
  type: "paragraph";
8298
8887
  content: {
8299
- text: string;
8300
8888
  type: "text";
8889
+ text: string;
8301
8890
  marks?: ({
8302
8891
  type: "link";
8303
8892
  attrs: {
@@ -8329,8 +8918,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8329
8918
  description: {
8330
8919
  type: "doc";
8331
8920
  content: ({
8332
- text: string;
8333
8921
  type: "text";
8922
+ text: string;
8334
8923
  marks?: ({
8335
8924
  type: "link";
8336
8925
  attrs: {
@@ -8348,8 +8937,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8348
8937
  } | {
8349
8938
  type: "paragraph";
8350
8939
  content: {
8351
- text: string;
8352
8940
  type: "text";
8941
+ text: string;
8353
8942
  marks?: ({
8354
8943
  type: "link";
8355
8944
  attrs: {
@@ -8433,6 +9022,59 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8433
9022
  };
8434
9023
  sliceId: string;
8435
9024
  hidden?: boolean | undefined;
9025
+ }>, z.ZodObject<{
9026
+ type: z.ZodLiteral<"StoryGroup">;
9027
+ hidden: z.ZodOptional<z.ZodBoolean>;
9028
+ properties: z.ZodObject<{
9029
+ heading: z.ZodOptional<z.ZodObject<{
9030
+ text: z.ZodString;
9031
+ href: z.ZodOptional<z.ZodString>;
9032
+ }, "strip", z.ZodTypeAny, {
9033
+ text: string;
9034
+ href?: string | undefined;
9035
+ }, {
9036
+ text: string;
9037
+ href?: string | undefined;
9038
+ }>>;
9039
+ } & {
9040
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
9041
+ }, "strip", z.ZodTypeAny, {
9042
+ storySlots: [string, ...string[]];
9043
+ heading?: {
9044
+ text: string;
9045
+ href?: string | undefined;
9046
+ } | undefined;
9047
+ }, {
9048
+ storySlots: [string, ...string[]];
9049
+ heading?: {
9050
+ text: string;
9051
+ href?: string | undefined;
9052
+ } | undefined;
9053
+ }>;
9054
+ } & {
9055
+ sliceId: z.ZodString;
9056
+ }, "strip", z.ZodTypeAny, {
9057
+ type: "StoryGroup";
9058
+ properties: {
9059
+ storySlots: [string, ...string[]];
9060
+ heading?: {
9061
+ text: string;
9062
+ href?: string | undefined;
9063
+ } | undefined;
9064
+ };
9065
+ sliceId: string;
9066
+ hidden?: boolean | undefined;
9067
+ }, {
9068
+ type: "StoryGroup";
9069
+ properties: {
9070
+ storySlots: [string, ...string[]];
9071
+ heading?: {
9072
+ text: string;
9073
+ href?: string | undefined;
9074
+ } | undefined;
9075
+ };
9076
+ sliceId: string;
9077
+ hidden?: boolean | undefined;
8436
9078
  }>]>, "many">;
8437
9079
  }, "strip", z.ZodTypeAny, {
8438
9080
  type: "Page";
@@ -8502,8 +9144,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8502
9144
  description: {
8503
9145
  type: "doc";
8504
9146
  content: ({
8505
- text: string;
8506
9147
  type: "text";
9148
+ text: string;
8507
9149
  marks?: ({
8508
9150
  type: "link";
8509
9151
  attrs: {
@@ -8521,8 +9163,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8521
9163
  } | {
8522
9164
  type: "paragraph";
8523
9165
  content: {
8524
- text: string;
8525
9166
  type: "text";
9167
+ text: string;
8526
9168
  marks?: ({
8527
9169
  type: "link";
8528
9170
  attrs: {
@@ -8560,6 +9202,17 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8560
9202
  };
8561
9203
  sliceId: string;
8562
9204
  hidden?: boolean | undefined;
9205
+ } | {
9206
+ type: "StoryGroup";
9207
+ properties: {
9208
+ storySlots: [string, ...string[]];
9209
+ heading?: {
9210
+ text: string;
9211
+ href?: string | undefined;
9212
+ } | undefined;
9213
+ };
9214
+ sliceId: string;
9215
+ hidden?: boolean | undefined;
8563
9216
  })[];
8564
9217
  schemaVersion: number;
8565
9218
  }, {
@@ -8630,8 +9283,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8630
9283
  description: {
8631
9284
  type: "doc";
8632
9285
  content: ({
8633
- text: string;
8634
9286
  type: "text";
9287
+ text: string;
8635
9288
  marks?: ({
8636
9289
  type: "link";
8637
9290
  attrs: {
@@ -8649,8 +9302,8 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8649
9302
  } | {
8650
9303
  type: "paragraph";
8651
9304
  content: {
8652
- text: string;
8653
9305
  type: "text";
9306
+ text: string;
8654
9307
  marks?: ({
8655
9308
  type: "link";
8656
9309
  attrs: {
@@ -8688,12 +9341,78 @@ declare const PageStructureOutputSchema: z.ZodObject<{
8688
9341
  };
8689
9342
  sliceId: string;
8690
9343
  hidden?: boolean | undefined;
9344
+ } | {
9345
+ type: "StoryGroup";
9346
+ properties: {
9347
+ storySlots: [string, ...string[]];
9348
+ heading?: {
9349
+ text: string;
9350
+ href?: string | undefined;
9351
+ } | undefined;
9352
+ };
9353
+ sliceId: string;
9354
+ hidden?: boolean | undefined;
8691
9355
  })[];
8692
9356
  schemaVersion: number;
8693
9357
  }>;
8694
9358
  export { PageStructureOutputSchema }
8695
9359
  export { PageStructureOutputSchema as PageStructureOutputSchema_alias_1 }
8696
9360
 
9361
+ /**
9362
+ * Attempts to validate a consumed response body as a service-level error envelope.
9363
+ */
9364
+ export declare function parseApiErrorResponse(responseBody: ResponseBodyDiagnostics): {
9365
+ statusCode: number;
9366
+ requestId: string;
9367
+ status: "error";
9368
+ error: {
9369
+ code: "UNAUTHORIZED" | "NOT_FOUND" | "INTERNAL_SERVER_ERROR" | "INVALID_INPUT_DATA";
9370
+ message: string;
9371
+ path?: string | undefined;
9372
+ details?: string | undefined;
9373
+ timestamp?: string | undefined;
9374
+ };
9375
+ } | null;
9376
+
9377
+ /**
9378
+ * Attempts to validate a consumed response body as a success-or-error API envelope.
9379
+ */
9380
+ export declare function parseApiResponse<ResponseDataSchema extends ZodTypeAny>(responseDataSchema: ResponseDataSchema, responseBody: ResponseBodyDiagnostics): {
9381
+ statusCode: number;
9382
+ requestId: string;
9383
+ status: "error";
9384
+ error: {
9385
+ code: "UNAUTHORIZED" | "NOT_FOUND" | "INTERNAL_SERVER_ERROR" | "INVALID_INPUT_DATA";
9386
+ message: string;
9387
+ path?: string | undefined;
9388
+ details?: string | undefined;
9389
+ timestamp?: string | undefined;
9390
+ };
9391
+ } | (objectUtil.addQuestionMarks<baseObjectOutputType< {
9392
+ statusCode: ZodNumber;
9393
+ requestId: ZodString;
9394
+ } & {
9395
+ status: ZodLiteral<"success">;
9396
+ data: ResponseDataSchema;
9397
+ }>, any> extends infer T ? { [k in keyof T]: T[k]; } : never) | null;
9398
+
9399
+ /**
9400
+ * Validates an outbound request body when the caller supplied a schema.
9401
+ *
9402
+ * Requests without a body, or without a schema, pass through unchanged.
9403
+ */
9404
+ declare function parseRequestBody<ReqSchema extends ZodTypeAny | undefined>(requestSchema: ReqSchema | undefined, body: (ReqSchema extends ZodTypeAny ? z.infer<ReqSchema> : unknown) | undefined): (ReqSchema extends ZodTypeAny ? z.infer<ReqSchema> : unknown) | undefined;
9405
+ export { parseRequestBody }
9406
+ export { parseRequestBody as parseRequestBody_alias_1 }
9407
+
9408
+ /**
9409
+ * Interprets a successful HTTP response as either a valid Content Curation API
9410
+ * success envelope or a service-origin failure.
9411
+ */
9412
+ declare function parseSuccessfulResponse<ResponseDataSchema extends ZodTypeAny>(path: string, url: string, response: Response, responseBody: ResponseBodyDiagnostics, responseDataSchema: ResponseDataSchema): z.infer<ResponseDataSchema>;
9413
+ export { parseSuccessfulResponse }
9414
+ export { parseSuccessfulResponse as parseSuccessfulResponse_alias_1 }
9415
+
8697
9416
  declare type PersistPageDraftInput = z.infer<typeof PersistPageDraftInputSchema>;
8698
9417
  export { PersistPageDraftInput }
8699
9418
  export { PersistPageDraftInput as PersistPageDraftInput_alias_1 }
@@ -9036,8 +9755,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9036
9755
  type: "strike";
9037
9756
  }>]>, "many">>;
9038
9757
  }, "strip", z.ZodTypeAny, {
9039
- text: string;
9040
9758
  type: "text";
9759
+ text: string;
9041
9760
  marks?: ({
9042
9761
  type: "link";
9043
9762
  attrs: {
@@ -9053,8 +9772,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9053
9772
  type: "strike";
9054
9773
  })[] | undefined;
9055
9774
  }, {
9056
- text: string;
9057
9775
  type: "text";
9776
+ text: string;
9058
9777
  marks?: ({
9059
9778
  type: "link";
9060
9779
  attrs: {
@@ -9073,8 +9792,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9073
9792
  }, "strip", z.ZodTypeAny, {
9074
9793
  type: "paragraph";
9075
9794
  content: {
9076
- text: string;
9077
9795
  type: "text";
9796
+ text: string;
9078
9797
  marks?: ({
9079
9798
  type: "link";
9080
9799
  attrs: {
@@ -9093,8 +9812,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9093
9812
  }, {
9094
9813
  type: "paragraph";
9095
9814
  content: {
9096
- text: string;
9097
9815
  type: "text";
9816
+ text: string;
9098
9817
  marks?: ({
9099
9818
  type: "link";
9100
9819
  attrs: {
@@ -9158,8 +9877,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9158
9877
  type: "strike";
9159
9878
  }>]>, "many">>;
9160
9879
  }, "strip", z.ZodTypeAny, {
9161
- text: string;
9162
9880
  type: "text";
9881
+ text: string;
9163
9882
  marks?: ({
9164
9883
  type: "link";
9165
9884
  attrs: {
@@ -9175,8 +9894,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9175
9894
  type: "strike";
9176
9895
  })[] | undefined;
9177
9896
  }, {
9178
- text: string;
9179
9897
  type: "text";
9898
+ text: string;
9180
9899
  marks?: ({
9181
9900
  type: "link";
9182
9901
  attrs: {
@@ -9195,8 +9914,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9195
9914
  }, "strip", z.ZodTypeAny, {
9196
9915
  type: "doc";
9197
9916
  content: ({
9198
- text: string;
9199
9917
  type: "text";
9918
+ text: string;
9200
9919
  marks?: ({
9201
9920
  type: "link";
9202
9921
  attrs: {
@@ -9214,8 +9933,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9214
9933
  } | {
9215
9934
  type: "paragraph";
9216
9935
  content: {
9217
- text: string;
9218
9936
  type: "text";
9937
+ text: string;
9219
9938
  marks?: ({
9220
9939
  type: "link";
9221
9940
  attrs: {
@@ -9235,8 +9954,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9235
9954
  }, {
9236
9955
  type: "doc";
9237
9956
  content: ({
9238
- text: string;
9239
9957
  type: "text";
9958
+ text: string;
9240
9959
  marks?: ({
9241
9960
  type: "link";
9242
9961
  attrs: {
@@ -9254,8 +9973,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9254
9973
  } | {
9255
9974
  type: "paragraph";
9256
9975
  content: {
9257
- text: string;
9258
9976
  type: "text";
9977
+ text: string;
9259
9978
  marks?: ({
9260
9979
  type: "link";
9261
9980
  attrs: {
@@ -9278,8 +9997,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9278
9997
  description: {
9279
9998
  type: "doc";
9280
9999
  content: ({
9281
- text: string;
9282
10000
  type: "text";
10001
+ text: string;
9283
10002
  marks?: ({
9284
10003
  type: "link";
9285
10004
  attrs: {
@@ -9297,8 +10016,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9297
10016
  } | {
9298
10017
  type: "paragraph";
9299
10018
  content: {
9300
- text: string;
9301
10019
  type: "text";
10020
+ text: string;
9302
10021
  marks?: ({
9303
10022
  type: "link";
9304
10023
  attrs: {
@@ -9325,8 +10044,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9325
10044
  description: {
9326
10045
  type: "doc";
9327
10046
  content: ({
9328
- text: string;
9329
10047
  type: "text";
10048
+ text: string;
9330
10049
  marks?: ({
9331
10050
  type: "link";
9332
10051
  attrs: {
@@ -9344,8 +10063,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9344
10063
  } | {
9345
10064
  type: "paragraph";
9346
10065
  content: {
9347
- text: string;
9348
10066
  type: "text";
10067
+ text: string;
9349
10068
  marks?: ({
9350
10069
  type: "link";
9351
10070
  attrs: {
@@ -9377,8 +10096,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9377
10096
  description: {
9378
10097
  type: "doc";
9379
10098
  content: ({
9380
- text: string;
9381
10099
  type: "text";
10100
+ text: string;
9382
10101
  marks?: ({
9383
10102
  type: "link";
9384
10103
  attrs: {
@@ -9396,8 +10115,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9396
10115
  } | {
9397
10116
  type: "paragraph";
9398
10117
  content: {
9399
- text: string;
9400
10118
  type: "text";
10119
+ text: string;
9401
10120
  marks?: ({
9402
10121
  type: "link";
9403
10122
  attrs: {
@@ -9429,8 +10148,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9429
10148
  description: {
9430
10149
  type: "doc";
9431
10150
  content: ({
9432
- text: string;
9433
10151
  type: "text";
10152
+ text: string;
9434
10153
  marks?: ({
9435
10154
  type: "link";
9436
10155
  attrs: {
@@ -9448,8 +10167,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9448
10167
  } | {
9449
10168
  type: "paragraph";
9450
10169
  content: {
9451
- text: string;
9452
10170
  type: "text";
10171
+ text: string;
9453
10172
  marks?: ({
9454
10173
  type: "link";
9455
10174
  attrs: {
@@ -9533,6 +10252,59 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9533
10252
  };
9534
10253
  hidden?: boolean | undefined;
9535
10254
  sliceId?: string | undefined;
10255
+ }>, z.ZodObject<{
10256
+ type: z.ZodLiteral<"StoryGroup">;
10257
+ hidden: z.ZodOptional<z.ZodBoolean>;
10258
+ properties: z.ZodObject<{
10259
+ heading: z.ZodOptional<z.ZodObject<{
10260
+ text: z.ZodString;
10261
+ href: z.ZodOptional<z.ZodString>;
10262
+ }, "strip", z.ZodTypeAny, {
10263
+ text: string;
10264
+ href?: string | undefined;
10265
+ }, {
10266
+ text: string;
10267
+ href?: string | undefined;
10268
+ }>>;
10269
+ } & {
10270
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
10271
+ }, "strip", z.ZodTypeAny, {
10272
+ storySlots: [string, ...string[]];
10273
+ heading?: {
10274
+ text: string;
10275
+ href?: string | undefined;
10276
+ } | undefined;
10277
+ }, {
10278
+ storySlots: [string, ...string[]];
10279
+ heading?: {
10280
+ text: string;
10281
+ href?: string | undefined;
10282
+ } | undefined;
10283
+ }>;
10284
+ } & {
10285
+ sliceId: z.ZodOptional<z.ZodString>;
10286
+ }, "strip", z.ZodTypeAny, {
10287
+ type: "StoryGroup";
10288
+ properties: {
10289
+ storySlots: [string, ...string[]];
10290
+ heading?: {
10291
+ text: string;
10292
+ href?: string | undefined;
10293
+ } | undefined;
10294
+ };
10295
+ hidden?: boolean | undefined;
10296
+ sliceId?: string | undefined;
10297
+ }, {
10298
+ type: "StoryGroup";
10299
+ properties: {
10300
+ storySlots: [string, ...string[]];
10301
+ heading?: {
10302
+ text: string;
10303
+ href?: string | undefined;
10304
+ } | undefined;
10305
+ };
10306
+ hidden?: boolean | undefined;
10307
+ sliceId?: string | undefined;
9536
10308
  }>]>, "many">;
9537
10309
  }, "strip", z.ZodTypeAny, {
9538
10310
  properties: {
@@ -9601,8 +10373,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9601
10373
  description: {
9602
10374
  type: "doc";
9603
10375
  content: ({
9604
- text: string;
9605
10376
  type: "text";
10377
+ text: string;
9606
10378
  marks?: ({
9607
10379
  type: "link";
9608
10380
  attrs: {
@@ -9620,8 +10392,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9620
10392
  } | {
9621
10393
  type: "paragraph";
9622
10394
  content: {
9623
- text: string;
9624
10395
  type: "text";
10396
+ text: string;
9625
10397
  marks?: ({
9626
10398
  type: "link";
9627
10399
  attrs: {
@@ -9659,6 +10431,17 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9659
10431
  };
9660
10432
  hidden?: boolean | undefined;
9661
10433
  sliceId?: string | undefined;
10434
+ } | {
10435
+ type: "StoryGroup";
10436
+ properties: {
10437
+ storySlots: [string, ...string[]];
10438
+ heading?: {
10439
+ text: string;
10440
+ href?: string | undefined;
10441
+ } | undefined;
10442
+ };
10443
+ hidden?: boolean | undefined;
10444
+ sliceId?: string | undefined;
9662
10445
  })[];
9663
10446
  }, {
9664
10447
  properties: {
@@ -9727,8 +10510,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9727
10510
  description: {
9728
10511
  type: "doc";
9729
10512
  content: ({
9730
- text: string;
9731
10513
  type: "text";
10514
+ text: string;
9732
10515
  marks?: ({
9733
10516
  type: "link";
9734
10517
  attrs: {
@@ -9746,8 +10529,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9746
10529
  } | {
9747
10530
  type: "paragraph";
9748
10531
  content: {
9749
- text: string;
9750
10532
  type: "text";
10533
+ text: string;
9751
10534
  marks?: ({
9752
10535
  type: "link";
9753
10536
  attrs: {
@@ -9785,6 +10568,17 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9785
10568
  };
9786
10569
  hidden?: boolean | undefined;
9787
10570
  sliceId?: string | undefined;
10571
+ } | {
10572
+ type: "StoryGroup";
10573
+ properties: {
10574
+ storySlots: [string, ...string[]];
10575
+ heading?: {
10576
+ text: string;
10577
+ href?: string | undefined;
10578
+ } | undefined;
10579
+ };
10580
+ hidden?: boolean | undefined;
10581
+ sliceId?: string | undefined;
9788
10582
  })[];
9789
10583
  }>;
9790
10584
  contributor: z.ZodObject<{
@@ -9868,8 +10662,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9868
10662
  description: {
9869
10663
  type: "doc";
9870
10664
  content: ({
9871
- text: string;
9872
10665
  type: "text";
10666
+ text: string;
9873
10667
  marks?: ({
9874
10668
  type: "link";
9875
10669
  attrs: {
@@ -9887,8 +10681,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9887
10681
  } | {
9888
10682
  type: "paragraph";
9889
10683
  content: {
9890
- text: string;
9891
10684
  type: "text";
10685
+ text: string;
9892
10686
  marks?: ({
9893
10687
  type: "link";
9894
10688
  attrs: {
@@ -9926,6 +10720,17 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
9926
10720
  };
9927
10721
  hidden?: boolean | undefined;
9928
10722
  sliceId?: string | undefined;
10723
+ } | {
10724
+ type: "StoryGroup";
10725
+ properties: {
10726
+ storySlots: [string, ...string[]];
10727
+ heading?: {
10728
+ text: string;
10729
+ href?: string | undefined;
10730
+ } | undefined;
10731
+ };
10732
+ hidden?: boolean | undefined;
10733
+ sliceId?: string | undefined;
9929
10734
  })[];
9930
10735
  };
9931
10736
  contributor: {
@@ -10001,8 +10806,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
10001
10806
  description: {
10002
10807
  type: "doc";
10003
10808
  content: ({
10004
- text: string;
10005
10809
  type: "text";
10810
+ text: string;
10006
10811
  marks?: ({
10007
10812
  type: "link";
10008
10813
  attrs: {
@@ -10020,8 +10825,8 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
10020
10825
  } | {
10021
10826
  type: "paragraph";
10022
10827
  content: {
10023
- text: string;
10024
10828
  type: "text";
10829
+ text: string;
10025
10830
  marks?: ({
10026
10831
  type: "link";
10027
10832
  attrs: {
@@ -10059,6 +10864,17 @@ declare const PersistPageDraftInputSchema: z.ZodObject<{
10059
10864
  };
10060
10865
  hidden?: boolean | undefined;
10061
10866
  sliceId?: string | undefined;
10867
+ } | {
10868
+ type: "StoryGroup";
10869
+ properties: {
10870
+ storySlots: [string, ...string[]];
10871
+ heading?: {
10872
+ text: string;
10873
+ href?: string | undefined;
10874
+ } | undefined;
10875
+ };
10876
+ hidden?: boolean | undefined;
10877
+ sliceId?: string | undefined;
10062
10878
  })[];
10063
10879
  };
10064
10880
  contributor: {
@@ -10123,8 +10939,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10123
10939
  type: "strike";
10124
10940
  }>]>, "many">>;
10125
10941
  }, "strip", z.ZodTypeAny, {
10126
- text: string;
10127
10942
  type: "text";
10943
+ text: string;
10128
10944
  marks?: ({
10129
10945
  type: "link";
10130
10946
  attrs: {
@@ -10140,8 +10956,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10140
10956
  type: "strike";
10141
10957
  })[] | undefined;
10142
10958
  }, {
10143
- text: string;
10144
10959
  type: "text";
10960
+ text: string;
10145
10961
  marks?: ({
10146
10962
  type: "link";
10147
10963
  attrs: {
@@ -10160,8 +10976,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10160
10976
  }, "strip", z.ZodTypeAny, {
10161
10977
  type: "paragraph";
10162
10978
  content: {
10163
- text: string;
10164
10979
  type: "text";
10980
+ text: string;
10165
10981
  marks?: ({
10166
10982
  type: "link";
10167
10983
  attrs: {
@@ -10180,8 +10996,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10180
10996
  }, {
10181
10997
  type: "paragraph";
10182
10998
  content: {
10183
- text: string;
10184
10999
  type: "text";
11000
+ text: string;
10185
11001
  marks?: ({
10186
11002
  type: "link";
10187
11003
  attrs: {
@@ -10245,8 +11061,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10245
11061
  type: "strike";
10246
11062
  }>]>, "many">>;
10247
11063
  }, "strip", z.ZodTypeAny, {
10248
- text: string;
10249
11064
  type: "text";
11065
+ text: string;
10250
11066
  marks?: ({
10251
11067
  type: "link";
10252
11068
  attrs: {
@@ -10262,8 +11078,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10262
11078
  type: "strike";
10263
11079
  })[] | undefined;
10264
11080
  }, {
10265
- text: string;
10266
11081
  type: "text";
11082
+ text: string;
10267
11083
  marks?: ({
10268
11084
  type: "link";
10269
11085
  attrs: {
@@ -10282,8 +11098,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10282
11098
  }, "strip", z.ZodTypeAny, {
10283
11099
  type: "doc";
10284
11100
  content: ({
10285
- text: string;
10286
11101
  type: "text";
11102
+ text: string;
10287
11103
  marks?: ({
10288
11104
  type: "link";
10289
11105
  attrs: {
@@ -10301,8 +11117,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10301
11117
  } | {
10302
11118
  type: "paragraph";
10303
11119
  content: {
10304
- text: string;
10305
11120
  type: "text";
11121
+ text: string;
10306
11122
  marks?: ({
10307
11123
  type: "link";
10308
11124
  attrs: {
@@ -10322,8 +11138,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10322
11138
  }, {
10323
11139
  type: "doc";
10324
11140
  content: ({
10325
- text: string;
10326
11141
  type: "text";
11142
+ text: string;
10327
11143
  marks?: ({
10328
11144
  type: "link";
10329
11145
  attrs: {
@@ -10341,8 +11157,8 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10341
11157
  } | {
10342
11158
  type: "paragraph";
10343
11159
  content: {
10344
- text: string;
10345
11160
  type: "text";
11161
+ text: string;
10346
11162
  marks?: ({
10347
11163
  type: "link";
10348
11164
  attrs: {
@@ -10363,6 +11179,30 @@ declare const ProseMirrorDocSchema: z.ZodObject<{
10363
11179
  export { ProseMirrorDocSchema }
10364
11180
  export { ProseMirrorDocSchema as ProseMirrorDocSchema_alias_1 }
10365
11181
 
11182
+ /**
11183
+ * Consumes the HTTP response body and converts body-read failures into the same
11184
+ * client error model used for normal gateway and service failures.
11185
+ */
11186
+ declare function readApiResponseBody(path: string, url: string, response: Response): Promise<ResponseBodyDiagnostics>;
11187
+ export { readApiResponseBody }
11188
+ export { readApiResponseBody as readApiResponseBody_alias_1 }
11189
+
11190
+ /**
11191
+ * Reads a response body exactly once, truncates diagnostic text, and only parses JSON when the
11192
+ * declared content type says that is appropriate.
11193
+ */
11194
+ export declare function readResponseBody(response: Response): Promise<ResponseBodyDiagnostics>;
11195
+
11196
+ /**
11197
+ * Captured information from a response body after the client has consumed it exactly once.
11198
+ */
11199
+ export declare type ResponseBodyDiagnostics = {
11200
+ contentType?: string;
11201
+ bodyText?: string;
11202
+ json?: unknown;
11203
+ jsonParseError?: Error;
11204
+ };
11205
+
10366
11206
  /** Rich text editor TS type. */
10367
11207
  declare type RichTextEditorType = z.infer<typeof ProseMirrorDocSchema>;
10368
11208
  export { RichTextEditorType }
@@ -10685,8 +11525,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10685
11525
  type: "strike";
10686
11526
  }>]>, "many">>;
10687
11527
  }, "strip", z.ZodTypeAny, {
10688
- text: string;
10689
11528
  type: "text";
11529
+ text: string;
10690
11530
  marks?: ({
10691
11531
  type: "link";
10692
11532
  attrs: {
@@ -10702,8 +11542,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10702
11542
  type: "strike";
10703
11543
  })[] | undefined;
10704
11544
  }, {
10705
- text: string;
10706
11545
  type: "text";
11546
+ text: string;
10707
11547
  marks?: ({
10708
11548
  type: "link";
10709
11549
  attrs: {
@@ -10722,8 +11562,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10722
11562
  }, "strip", z.ZodTypeAny, {
10723
11563
  type: "paragraph";
10724
11564
  content: {
10725
- text: string;
10726
11565
  type: "text";
11566
+ text: string;
10727
11567
  marks?: ({
10728
11568
  type: "link";
10729
11569
  attrs: {
@@ -10742,8 +11582,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10742
11582
  }, {
10743
11583
  type: "paragraph";
10744
11584
  content: {
10745
- text: string;
10746
11585
  type: "text";
11586
+ text: string;
10747
11587
  marks?: ({
10748
11588
  type: "link";
10749
11589
  attrs: {
@@ -10807,8 +11647,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10807
11647
  type: "strike";
10808
11648
  }>]>, "many">>;
10809
11649
  }, "strip", z.ZodTypeAny, {
10810
- text: string;
10811
11650
  type: "text";
11651
+ text: string;
10812
11652
  marks?: ({
10813
11653
  type: "link";
10814
11654
  attrs: {
@@ -10824,8 +11664,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10824
11664
  type: "strike";
10825
11665
  })[] | undefined;
10826
11666
  }, {
10827
- text: string;
10828
11667
  type: "text";
11668
+ text: string;
10829
11669
  marks?: ({
10830
11670
  type: "link";
10831
11671
  attrs: {
@@ -10844,8 +11684,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10844
11684
  }, "strip", z.ZodTypeAny, {
10845
11685
  type: "doc";
10846
11686
  content: ({
10847
- text: string;
10848
11687
  type: "text";
11688
+ text: string;
10849
11689
  marks?: ({
10850
11690
  type: "link";
10851
11691
  attrs: {
@@ -10863,8 +11703,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10863
11703
  } | {
10864
11704
  type: "paragraph";
10865
11705
  content: {
10866
- text: string;
10867
11706
  type: "text";
11707
+ text: string;
10868
11708
  marks?: ({
10869
11709
  type: "link";
10870
11710
  attrs: {
@@ -10884,8 +11724,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10884
11724
  }, {
10885
11725
  type: "doc";
10886
11726
  content: ({
10887
- text: string;
10888
11727
  type: "text";
11728
+ text: string;
10889
11729
  marks?: ({
10890
11730
  type: "link";
10891
11731
  attrs: {
@@ -10903,8 +11743,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10903
11743
  } | {
10904
11744
  type: "paragraph";
10905
11745
  content: {
10906
- text: string;
10907
11746
  type: "text";
11747
+ text: string;
10908
11748
  marks?: ({
10909
11749
  type: "link";
10910
11750
  attrs: {
@@ -10927,8 +11767,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10927
11767
  description: {
10928
11768
  type: "doc";
10929
11769
  content: ({
10930
- text: string;
10931
11770
  type: "text";
11771
+ text: string;
10932
11772
  marks?: ({
10933
11773
  type: "link";
10934
11774
  attrs: {
@@ -10946,8 +11786,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10946
11786
  } | {
10947
11787
  type: "paragraph";
10948
11788
  content: {
10949
- text: string;
10950
11789
  type: "text";
11790
+ text: string;
10951
11791
  marks?: ({
10952
11792
  type: "link";
10953
11793
  attrs: {
@@ -10974,8 +11814,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10974
11814
  description: {
10975
11815
  type: "doc";
10976
11816
  content: ({
10977
- text: string;
10978
11817
  type: "text";
11818
+ text: string;
10979
11819
  marks?: ({
10980
11820
  type: "link";
10981
11821
  attrs: {
@@ -10993,8 +11833,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
10993
11833
  } | {
10994
11834
  type: "paragraph";
10995
11835
  content: {
10996
- text: string;
10997
11836
  type: "text";
11837
+ text: string;
10998
11838
  marks?: ({
10999
11839
  type: "link";
11000
11840
  attrs: {
@@ -11026,8 +11866,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
11026
11866
  description: {
11027
11867
  type: "doc";
11028
11868
  content: ({
11029
- text: string;
11030
11869
  type: "text";
11870
+ text: string;
11031
11871
  marks?: ({
11032
11872
  type: "link";
11033
11873
  attrs: {
@@ -11045,8 +11885,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
11045
11885
  } | {
11046
11886
  type: "paragraph";
11047
11887
  content: {
11048
- text: string;
11049
11888
  type: "text";
11889
+ text: string;
11050
11890
  marks?: ({
11051
11891
  type: "link";
11052
11892
  attrs: {
@@ -11078,8 +11918,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
11078
11918
  description: {
11079
11919
  type: "doc";
11080
11920
  content: ({
11081
- text: string;
11082
11921
  type: "text";
11922
+ text: string;
11083
11923
  marks?: ({
11084
11924
  type: "link";
11085
11925
  attrs: {
@@ -11097,8 +11937,8 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
11097
11937
  } | {
11098
11938
  type: "paragraph";
11099
11939
  content: {
11100
- text: string;
11101
11940
  type: "text";
11941
+ text: string;
11102
11942
  marks?: ({
11103
11943
  type: "link";
11104
11944
  attrs: {
@@ -11159,10 +11999,64 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
11159
11999
  } & {
11160
12000
  sliceId: z.ZodOptional<z.ZodString>;
11161
12001
  }, "strip", z.ZodTypeAny, {
11162
- type: "Hero";
12002
+ type: "Hero";
12003
+ properties: {
12004
+ listId: string;
12005
+ maxStories: number;
12006
+ heading?: {
12007
+ text: string;
12008
+ href?: string | undefined;
12009
+ } | undefined;
12010
+ };
12011
+ hidden?: boolean | undefined;
12012
+ sliceId?: string | undefined;
12013
+ }, {
12014
+ type: "Hero";
12015
+ properties: {
12016
+ listId: string;
12017
+ maxStories: number;
12018
+ heading?: {
12019
+ text: string;
12020
+ href?: string | undefined;
12021
+ } | undefined;
12022
+ };
12023
+ hidden?: boolean | undefined;
12024
+ sliceId?: string | undefined;
12025
+ }>, z.ZodObject<{
12026
+ type: z.ZodLiteral<"StoryGroup">;
12027
+ hidden: z.ZodOptional<z.ZodBoolean>;
12028
+ properties: z.ZodObject<{
12029
+ heading: z.ZodOptional<z.ZodObject<{
12030
+ text: z.ZodString;
12031
+ href: z.ZodOptional<z.ZodString>;
12032
+ }, "strip", z.ZodTypeAny, {
12033
+ text: string;
12034
+ href?: string | undefined;
12035
+ }, {
12036
+ text: string;
12037
+ href?: string | undefined;
12038
+ }>>;
12039
+ } & {
12040
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
12041
+ }, "strip", z.ZodTypeAny, {
12042
+ storySlots: [string, ...string[]];
12043
+ heading?: {
12044
+ text: string;
12045
+ href?: string | undefined;
12046
+ } | undefined;
12047
+ }, {
12048
+ storySlots: [string, ...string[]];
12049
+ heading?: {
12050
+ text: string;
12051
+ href?: string | undefined;
12052
+ } | undefined;
12053
+ }>;
12054
+ } & {
12055
+ sliceId: z.ZodOptional<z.ZodString>;
12056
+ }, "strip", z.ZodTypeAny, {
12057
+ type: "StoryGroup";
11163
12058
  properties: {
11164
- listId: string;
11165
- maxStories: number;
12059
+ storySlots: [string, ...string[]];
11166
12060
  heading?: {
11167
12061
  text: string;
11168
12062
  href?: string | undefined;
@@ -11171,10 +12065,9 @@ declare const SliceApiInputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.Z
11171
12065
  hidden?: boolean | undefined;
11172
12066
  sliceId?: string | undefined;
11173
12067
  }, {
11174
- type: "Hero";
12068
+ type: "StoryGroup";
11175
12069
  properties: {
11176
- listId: string;
11177
- maxStories: number;
12070
+ storySlots: [string, ...string[]];
11178
12071
  heading?: {
11179
12072
  text: string;
11180
12073
  href?: string | undefined;
@@ -11498,8 +12391,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11498
12391
  type: "strike";
11499
12392
  }>]>, "many">>;
11500
12393
  }, "strip", z.ZodTypeAny, {
11501
- text: string;
11502
12394
  type: "text";
12395
+ text: string;
11503
12396
  marks?: ({
11504
12397
  type: "link";
11505
12398
  attrs: {
@@ -11515,8 +12408,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11515
12408
  type: "strike";
11516
12409
  })[] | undefined;
11517
12410
  }, {
11518
- text: string;
11519
12411
  type: "text";
12412
+ text: string;
11520
12413
  marks?: ({
11521
12414
  type: "link";
11522
12415
  attrs: {
@@ -11535,8 +12428,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11535
12428
  }, "strip", z.ZodTypeAny, {
11536
12429
  type: "paragraph";
11537
12430
  content: {
11538
- text: string;
11539
12431
  type: "text";
12432
+ text: string;
11540
12433
  marks?: ({
11541
12434
  type: "link";
11542
12435
  attrs: {
@@ -11555,8 +12448,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11555
12448
  }, {
11556
12449
  type: "paragraph";
11557
12450
  content: {
11558
- text: string;
11559
12451
  type: "text";
12452
+ text: string;
11560
12453
  marks?: ({
11561
12454
  type: "link";
11562
12455
  attrs: {
@@ -11620,8 +12513,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11620
12513
  type: "strike";
11621
12514
  }>]>, "many">>;
11622
12515
  }, "strip", z.ZodTypeAny, {
11623
- text: string;
11624
12516
  type: "text";
12517
+ text: string;
11625
12518
  marks?: ({
11626
12519
  type: "link";
11627
12520
  attrs: {
@@ -11637,8 +12530,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11637
12530
  type: "strike";
11638
12531
  })[] | undefined;
11639
12532
  }, {
11640
- text: string;
11641
12533
  type: "text";
12534
+ text: string;
11642
12535
  marks?: ({
11643
12536
  type: "link";
11644
12537
  attrs: {
@@ -11657,8 +12550,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11657
12550
  }, "strip", z.ZodTypeAny, {
11658
12551
  type: "doc";
11659
12552
  content: ({
11660
- text: string;
11661
12553
  type: "text";
12554
+ text: string;
11662
12555
  marks?: ({
11663
12556
  type: "link";
11664
12557
  attrs: {
@@ -11676,8 +12569,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11676
12569
  } | {
11677
12570
  type: "paragraph";
11678
12571
  content: {
11679
- text: string;
11680
12572
  type: "text";
12573
+ text: string;
11681
12574
  marks?: ({
11682
12575
  type: "link";
11683
12576
  attrs: {
@@ -11697,8 +12590,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11697
12590
  }, {
11698
12591
  type: "doc";
11699
12592
  content: ({
11700
- text: string;
11701
12593
  type: "text";
12594
+ text: string;
11702
12595
  marks?: ({
11703
12596
  type: "link";
11704
12597
  attrs: {
@@ -11716,8 +12609,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11716
12609
  } | {
11717
12610
  type: "paragraph";
11718
12611
  content: {
11719
- text: string;
11720
12612
  type: "text";
12613
+ text: string;
11721
12614
  marks?: ({
11722
12615
  type: "link";
11723
12616
  attrs: {
@@ -11740,8 +12633,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11740
12633
  description: {
11741
12634
  type: "doc";
11742
12635
  content: ({
11743
- text: string;
11744
12636
  type: "text";
12637
+ text: string;
11745
12638
  marks?: ({
11746
12639
  type: "link";
11747
12640
  attrs: {
@@ -11759,8 +12652,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11759
12652
  } | {
11760
12653
  type: "paragraph";
11761
12654
  content: {
11762
- text: string;
11763
12655
  type: "text";
12656
+ text: string;
11764
12657
  marks?: ({
11765
12658
  type: "link";
11766
12659
  attrs: {
@@ -11787,8 +12680,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11787
12680
  description: {
11788
12681
  type: "doc";
11789
12682
  content: ({
11790
- text: string;
11791
12683
  type: "text";
12684
+ text: string;
11792
12685
  marks?: ({
11793
12686
  type: "link";
11794
12687
  attrs: {
@@ -11806,8 +12699,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11806
12699
  } | {
11807
12700
  type: "paragraph";
11808
12701
  content: {
11809
- text: string;
11810
12702
  type: "text";
12703
+ text: string;
11811
12704
  marks?: ({
11812
12705
  type: "link";
11813
12706
  attrs: {
@@ -11839,8 +12732,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11839
12732
  description: {
11840
12733
  type: "doc";
11841
12734
  content: ({
11842
- text: string;
11843
12735
  type: "text";
12736
+ text: string;
11844
12737
  marks?: ({
11845
12738
  type: "link";
11846
12739
  attrs: {
@@ -11858,8 +12751,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11858
12751
  } | {
11859
12752
  type: "paragraph";
11860
12753
  content: {
11861
- text: string;
11862
12754
  type: "text";
12755
+ text: string;
11863
12756
  marks?: ({
11864
12757
  type: "link";
11865
12758
  attrs: {
@@ -11891,8 +12784,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11891
12784
  description: {
11892
12785
  type: "doc";
11893
12786
  content: ({
11894
- text: string;
11895
12787
  type: "text";
12788
+ text: string;
11896
12789
  marks?: ({
11897
12790
  type: "link";
11898
12791
  attrs: {
@@ -11910,8 +12803,8 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11910
12803
  } | {
11911
12804
  type: "paragraph";
11912
12805
  content: {
11913
- text: string;
11914
12806
  type: "text";
12807
+ text: string;
11915
12808
  marks?: ({
11916
12809
  type: "link";
11917
12810
  attrs: {
@@ -11995,10 +12888,178 @@ declare const SliceApiOutputSchema: z.ZodDiscriminatedUnion<"type", readonly [z.
11995
12888
  };
11996
12889
  sliceId: string;
11997
12890
  hidden?: boolean | undefined;
12891
+ }>, z.ZodObject<{
12892
+ type: z.ZodLiteral<"StoryGroup">;
12893
+ hidden: z.ZodOptional<z.ZodBoolean>;
12894
+ properties: z.ZodObject<{
12895
+ heading: z.ZodOptional<z.ZodObject<{
12896
+ text: z.ZodString;
12897
+ href: z.ZodOptional<z.ZodString>;
12898
+ }, "strip", z.ZodTypeAny, {
12899
+ text: string;
12900
+ href?: string | undefined;
12901
+ }, {
12902
+ text: string;
12903
+ href?: string | undefined;
12904
+ }>>;
12905
+ } & {
12906
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
12907
+ }, "strip", z.ZodTypeAny, {
12908
+ storySlots: [string, ...string[]];
12909
+ heading?: {
12910
+ text: string;
12911
+ href?: string | undefined;
12912
+ } | undefined;
12913
+ }, {
12914
+ storySlots: [string, ...string[]];
12915
+ heading?: {
12916
+ text: string;
12917
+ href?: string | undefined;
12918
+ } | undefined;
12919
+ }>;
12920
+ } & {
12921
+ sliceId: z.ZodString;
12922
+ }, "strip", z.ZodTypeAny, {
12923
+ type: "StoryGroup";
12924
+ properties: {
12925
+ storySlots: [string, ...string[]];
12926
+ heading?: {
12927
+ text: string;
12928
+ href?: string | undefined;
12929
+ } | undefined;
12930
+ };
12931
+ sliceId: string;
12932
+ hidden?: boolean | undefined;
12933
+ }, {
12934
+ type: "StoryGroup";
12935
+ properties: {
12936
+ storySlots: [string, ...string[]];
12937
+ heading?: {
12938
+ text: string;
12939
+ href?: string | undefined;
12940
+ } | undefined;
12941
+ };
12942
+ sliceId: string;
12943
+ hidden?: boolean | undefined;
11998
12944
  }>]>;
11999
12945
  export { SliceApiOutputSchema }
12000
12946
  export { SliceApiOutputSchema as SliceApiOutputSchema_alias_1 }
12001
12947
 
12948
+ declare const StoryGroupSlice: {
12949
+ InputSchema: z.ZodObject<{
12950
+ type: z.ZodLiteral<"StoryGroup">;
12951
+ hidden: z.ZodOptional<z.ZodBoolean>;
12952
+ properties: z.ZodObject<{
12953
+ heading: z.ZodOptional<z.ZodObject<{
12954
+ text: z.ZodString;
12955
+ href: z.ZodOptional<z.ZodString>;
12956
+ }, "strip", z.ZodTypeAny, {
12957
+ text: string;
12958
+ href?: string | undefined;
12959
+ }, {
12960
+ text: string;
12961
+ href?: string | undefined;
12962
+ }>>;
12963
+ } & {
12964
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
12965
+ }, "strip", z.ZodTypeAny, {
12966
+ storySlots: [string, ...string[]];
12967
+ heading?: {
12968
+ text: string;
12969
+ href?: string | undefined;
12970
+ } | undefined;
12971
+ }, {
12972
+ storySlots: [string, ...string[]];
12973
+ heading?: {
12974
+ text: string;
12975
+ href?: string | undefined;
12976
+ } | undefined;
12977
+ }>;
12978
+ } & {
12979
+ sliceId: z.ZodOptional<z.ZodString>;
12980
+ }, "strip", z.ZodTypeAny, {
12981
+ type: "StoryGroup";
12982
+ properties: {
12983
+ storySlots: [string, ...string[]];
12984
+ heading?: {
12985
+ text: string;
12986
+ href?: string | undefined;
12987
+ } | undefined;
12988
+ };
12989
+ hidden?: boolean | undefined;
12990
+ sliceId?: string | undefined;
12991
+ }, {
12992
+ type: "StoryGroup";
12993
+ properties: {
12994
+ storySlots: [string, ...string[]];
12995
+ heading?: {
12996
+ text: string;
12997
+ href?: string | undefined;
12998
+ } | undefined;
12999
+ };
13000
+ hidden?: boolean | undefined;
13001
+ sliceId?: string | undefined;
13002
+ }>;
13003
+ OutputSchema: z.ZodObject<{
13004
+ type: z.ZodLiteral<"StoryGroup">;
13005
+ hidden: z.ZodOptional<z.ZodBoolean>;
13006
+ properties: z.ZodObject<{
13007
+ heading: z.ZodOptional<z.ZodObject<{
13008
+ text: z.ZodString;
13009
+ href: z.ZodOptional<z.ZodString>;
13010
+ }, "strip", z.ZodTypeAny, {
13011
+ text: string;
13012
+ href?: string | undefined;
13013
+ }, {
13014
+ text: string;
13015
+ href?: string | undefined;
13016
+ }>>;
13017
+ } & {
13018
+ storySlots: z.ZodArray<z.ZodString, "atleastone">;
13019
+ }, "strip", z.ZodTypeAny, {
13020
+ storySlots: [string, ...string[]];
13021
+ heading?: {
13022
+ text: string;
13023
+ href?: string | undefined;
13024
+ } | undefined;
13025
+ }, {
13026
+ storySlots: [string, ...string[]];
13027
+ heading?: {
13028
+ text: string;
13029
+ href?: string | undefined;
13030
+ } | undefined;
13031
+ }>;
13032
+ } & {
13033
+ sliceId: z.ZodString;
13034
+ }, "strip", z.ZodTypeAny, {
13035
+ type: "StoryGroup";
13036
+ properties: {
13037
+ storySlots: [string, ...string[]];
13038
+ heading?: {
13039
+ text: string;
13040
+ href?: string | undefined;
13041
+ } | undefined;
13042
+ };
13043
+ sliceId: string;
13044
+ hidden?: boolean | undefined;
13045
+ }, {
13046
+ type: "StoryGroup";
13047
+ properties: {
13048
+ storySlots: [string, ...string[]];
13049
+ heading?: {
13050
+ text: string;
13051
+ href?: string | undefined;
13052
+ } | undefined;
13053
+ };
13054
+ sliceId: string;
13055
+ hidden?: boolean | undefined;
13056
+ }>;
13057
+ };
13058
+
13059
+ declare type StoryGroupSliceType = z.infer<typeof StoryGroupSlice.OutputSchema>;
13060
+ export { StoryGroupSliceType }
13061
+ export { StoryGroupSliceType as StoryGroupSliceType_alias_1 }
13062
+
12002
13063
  declare const StripSlice: {
12003
13064
  InputSchema: z.ZodObject<{
12004
13065
  type: z.ZodLiteral<"Strip">;
@@ -12192,8 +13253,8 @@ declare const TopperSlice: {
12192
13253
  type: "strike";
12193
13254
  }>]>, "many">>;
12194
13255
  }, "strip", z.ZodTypeAny, {
12195
- text: string;
12196
13256
  type: "text";
13257
+ text: string;
12197
13258
  marks?: ({
12198
13259
  type: "link";
12199
13260
  attrs: {
@@ -12209,8 +13270,8 @@ declare const TopperSlice: {
12209
13270
  type: "strike";
12210
13271
  })[] | undefined;
12211
13272
  }, {
12212
- text: string;
12213
13273
  type: "text";
13274
+ text: string;
12214
13275
  marks?: ({
12215
13276
  type: "link";
12216
13277
  attrs: {
@@ -12229,8 +13290,8 @@ declare const TopperSlice: {
12229
13290
  }, "strip", z.ZodTypeAny, {
12230
13291
  type: "paragraph";
12231
13292
  content: {
12232
- text: string;
12233
13293
  type: "text";
13294
+ text: string;
12234
13295
  marks?: ({
12235
13296
  type: "link";
12236
13297
  attrs: {
@@ -12249,8 +13310,8 @@ declare const TopperSlice: {
12249
13310
  }, {
12250
13311
  type: "paragraph";
12251
13312
  content: {
12252
- text: string;
12253
13313
  type: "text";
13314
+ text: string;
12254
13315
  marks?: ({
12255
13316
  type: "link";
12256
13317
  attrs: {
@@ -12314,8 +13375,8 @@ declare const TopperSlice: {
12314
13375
  type: "strike";
12315
13376
  }>]>, "many">>;
12316
13377
  }, "strip", z.ZodTypeAny, {
12317
- text: string;
12318
13378
  type: "text";
13379
+ text: string;
12319
13380
  marks?: ({
12320
13381
  type: "link";
12321
13382
  attrs: {
@@ -12331,8 +13392,8 @@ declare const TopperSlice: {
12331
13392
  type: "strike";
12332
13393
  })[] | undefined;
12333
13394
  }, {
12334
- text: string;
12335
13395
  type: "text";
13396
+ text: string;
12336
13397
  marks?: ({
12337
13398
  type: "link";
12338
13399
  attrs: {
@@ -12351,8 +13412,8 @@ declare const TopperSlice: {
12351
13412
  }, "strip", z.ZodTypeAny, {
12352
13413
  type: "doc";
12353
13414
  content: ({
12354
- text: string;
12355
13415
  type: "text";
13416
+ text: string;
12356
13417
  marks?: ({
12357
13418
  type: "link";
12358
13419
  attrs: {
@@ -12370,8 +13431,8 @@ declare const TopperSlice: {
12370
13431
  } | {
12371
13432
  type: "paragraph";
12372
13433
  content: {
12373
- text: string;
12374
13434
  type: "text";
13435
+ text: string;
12375
13436
  marks?: ({
12376
13437
  type: "link";
12377
13438
  attrs: {
@@ -12391,8 +13452,8 @@ declare const TopperSlice: {
12391
13452
  }, {
12392
13453
  type: "doc";
12393
13454
  content: ({
12394
- text: string;
12395
13455
  type: "text";
13456
+ text: string;
12396
13457
  marks?: ({
12397
13458
  type: "link";
12398
13459
  attrs: {
@@ -12410,8 +13471,8 @@ declare const TopperSlice: {
12410
13471
  } | {
12411
13472
  type: "paragraph";
12412
13473
  content: {
12413
- text: string;
12414
13474
  type: "text";
13475
+ text: string;
12415
13476
  marks?: ({
12416
13477
  type: "link";
12417
13478
  attrs: {
@@ -12434,8 +13495,8 @@ declare const TopperSlice: {
12434
13495
  description: {
12435
13496
  type: "doc";
12436
13497
  content: ({
12437
- text: string;
12438
13498
  type: "text";
13499
+ text: string;
12439
13500
  marks?: ({
12440
13501
  type: "link";
12441
13502
  attrs: {
@@ -12453,8 +13514,8 @@ declare const TopperSlice: {
12453
13514
  } | {
12454
13515
  type: "paragraph";
12455
13516
  content: {
12456
- text: string;
12457
13517
  type: "text";
13518
+ text: string;
12458
13519
  marks?: ({
12459
13520
  type: "link";
12460
13521
  attrs: {
@@ -12481,8 +13542,8 @@ declare const TopperSlice: {
12481
13542
  description: {
12482
13543
  type: "doc";
12483
13544
  content: ({
12484
- text: string;
12485
13545
  type: "text";
13546
+ text: string;
12486
13547
  marks?: ({
12487
13548
  type: "link";
12488
13549
  attrs: {
@@ -12500,8 +13561,8 @@ declare const TopperSlice: {
12500
13561
  } | {
12501
13562
  type: "paragraph";
12502
13563
  content: {
12503
- text: string;
12504
13564
  type: "text";
13565
+ text: string;
12505
13566
  marks?: ({
12506
13567
  type: "link";
12507
13568
  attrs: {
@@ -12533,8 +13594,8 @@ declare const TopperSlice: {
12533
13594
  description: {
12534
13595
  type: "doc";
12535
13596
  content: ({
12536
- text: string;
12537
13597
  type: "text";
13598
+ text: string;
12538
13599
  marks?: ({
12539
13600
  type: "link";
12540
13601
  attrs: {
@@ -12552,8 +13613,8 @@ declare const TopperSlice: {
12552
13613
  } | {
12553
13614
  type: "paragraph";
12554
13615
  content: {
12555
- text: string;
12556
13616
  type: "text";
13617
+ text: string;
12557
13618
  marks?: ({
12558
13619
  type: "link";
12559
13620
  attrs: {
@@ -12585,8 +13646,8 @@ declare const TopperSlice: {
12585
13646
  description: {
12586
13647
  type: "doc";
12587
13648
  content: ({
12588
- text: string;
12589
13649
  type: "text";
13650
+ text: string;
12590
13651
  marks?: ({
12591
13652
  type: "link";
12592
13653
  attrs: {
@@ -12604,8 +13665,8 @@ declare const TopperSlice: {
12604
13665
  } | {
12605
13666
  type: "paragraph";
12606
13667
  content: {
12607
- text: string;
12608
13668
  type: "text";
13669
+ text: string;
12609
13670
  marks?: ({
12610
13671
  type: "link";
12611
13672
  attrs: {
@@ -12699,8 +13760,8 @@ declare const TopperSlice: {
12699
13760
  type: "strike";
12700
13761
  }>]>, "many">>;
12701
13762
  }, "strip", z.ZodTypeAny, {
12702
- text: string;
12703
13763
  type: "text";
13764
+ text: string;
12704
13765
  marks?: ({
12705
13766
  type: "link";
12706
13767
  attrs: {
@@ -12716,8 +13777,8 @@ declare const TopperSlice: {
12716
13777
  type: "strike";
12717
13778
  })[] | undefined;
12718
13779
  }, {
12719
- text: string;
12720
13780
  type: "text";
13781
+ text: string;
12721
13782
  marks?: ({
12722
13783
  type: "link";
12723
13784
  attrs: {
@@ -12736,8 +13797,8 @@ declare const TopperSlice: {
12736
13797
  }, "strip", z.ZodTypeAny, {
12737
13798
  type: "paragraph";
12738
13799
  content: {
12739
- text: string;
12740
13800
  type: "text";
13801
+ text: string;
12741
13802
  marks?: ({
12742
13803
  type: "link";
12743
13804
  attrs: {
@@ -12756,8 +13817,8 @@ declare const TopperSlice: {
12756
13817
  }, {
12757
13818
  type: "paragraph";
12758
13819
  content: {
12759
- text: string;
12760
13820
  type: "text";
13821
+ text: string;
12761
13822
  marks?: ({
12762
13823
  type: "link";
12763
13824
  attrs: {
@@ -12821,8 +13882,8 @@ declare const TopperSlice: {
12821
13882
  type: "strike";
12822
13883
  }>]>, "many">>;
12823
13884
  }, "strip", z.ZodTypeAny, {
12824
- text: string;
12825
13885
  type: "text";
13886
+ text: string;
12826
13887
  marks?: ({
12827
13888
  type: "link";
12828
13889
  attrs: {
@@ -12838,8 +13899,8 @@ declare const TopperSlice: {
12838
13899
  type: "strike";
12839
13900
  })[] | undefined;
12840
13901
  }, {
12841
- text: string;
12842
13902
  type: "text";
13903
+ text: string;
12843
13904
  marks?: ({
12844
13905
  type: "link";
12845
13906
  attrs: {
@@ -12858,8 +13919,8 @@ declare const TopperSlice: {
12858
13919
  }, "strip", z.ZodTypeAny, {
12859
13920
  type: "doc";
12860
13921
  content: ({
12861
- text: string;
12862
13922
  type: "text";
13923
+ text: string;
12863
13924
  marks?: ({
12864
13925
  type: "link";
12865
13926
  attrs: {
@@ -12877,8 +13938,8 @@ declare const TopperSlice: {
12877
13938
  } | {
12878
13939
  type: "paragraph";
12879
13940
  content: {
12880
- text: string;
12881
13941
  type: "text";
13942
+ text: string;
12882
13943
  marks?: ({
12883
13944
  type: "link";
12884
13945
  attrs: {
@@ -12898,8 +13959,8 @@ declare const TopperSlice: {
12898
13959
  }, {
12899
13960
  type: "doc";
12900
13961
  content: ({
12901
- text: string;
12902
13962
  type: "text";
13963
+ text: string;
12903
13964
  marks?: ({
12904
13965
  type: "link";
12905
13966
  attrs: {
@@ -12917,8 +13978,8 @@ declare const TopperSlice: {
12917
13978
  } | {
12918
13979
  type: "paragraph";
12919
13980
  content: {
12920
- text: string;
12921
13981
  type: "text";
13982
+ text: string;
12922
13983
  marks?: ({
12923
13984
  type: "link";
12924
13985
  attrs: {
@@ -12941,8 +14002,8 @@ declare const TopperSlice: {
12941
14002
  description: {
12942
14003
  type: "doc";
12943
14004
  content: ({
12944
- text: string;
12945
14005
  type: "text";
14006
+ text: string;
12946
14007
  marks?: ({
12947
14008
  type: "link";
12948
14009
  attrs: {
@@ -12960,8 +14021,8 @@ declare const TopperSlice: {
12960
14021
  } | {
12961
14022
  type: "paragraph";
12962
14023
  content: {
12963
- text: string;
12964
14024
  type: "text";
14025
+ text: string;
12965
14026
  marks?: ({
12966
14027
  type: "link";
12967
14028
  attrs: {
@@ -12988,8 +14049,8 @@ declare const TopperSlice: {
12988
14049
  description: {
12989
14050
  type: "doc";
12990
14051
  content: ({
12991
- text: string;
12992
14052
  type: "text";
14053
+ text: string;
12993
14054
  marks?: ({
12994
14055
  type: "link";
12995
14056
  attrs: {
@@ -13007,8 +14068,8 @@ declare const TopperSlice: {
13007
14068
  } | {
13008
14069
  type: "paragraph";
13009
14070
  content: {
13010
- text: string;
13011
14071
  type: "text";
14072
+ text: string;
13012
14073
  marks?: ({
13013
14074
  type: "link";
13014
14075
  attrs: {
@@ -13040,8 +14101,8 @@ declare const TopperSlice: {
13040
14101
  description: {
13041
14102
  type: "doc";
13042
14103
  content: ({
13043
- text: string;
13044
14104
  type: "text";
14105
+ text: string;
13045
14106
  marks?: ({
13046
14107
  type: "link";
13047
14108
  attrs: {
@@ -13059,8 +14120,8 @@ declare const TopperSlice: {
13059
14120
  } | {
13060
14121
  type: "paragraph";
13061
14122
  content: {
13062
- text: string;
13063
14123
  type: "text";
14124
+ text: string;
13064
14125
  marks?: ({
13065
14126
  type: "link";
13066
14127
  attrs: {
@@ -13092,8 +14153,8 @@ declare const TopperSlice: {
13092
14153
  description: {
13093
14154
  type: "doc";
13094
14155
  content: ({
13095
- text: string;
13096
14156
  type: "text";
14157
+ text: string;
13097
14158
  marks?: ({
13098
14159
  type: "link";
13099
14160
  attrs: {
@@ -13111,8 +14172,8 @@ declare const TopperSlice: {
13111
14172
  } | {
13112
14173
  type: "paragraph";
13113
14174
  content: {
13114
- text: string;
13115
14175
  type: "text";
14176
+ text: string;
13116
14177
  marks?: ({
13117
14178
  type: "link";
13118
14179
  attrs: {
@@ -13145,4 +14206,6 @@ declare type TopperSliceType = z.infer<typeof TopperSlice.OutputSchema>;
13145
14206
  export { TopperSliceType }
13146
14207
  export { TopperSliceType as TopperSliceType_alias_1 }
13147
14208
 
14209
+ declare type UnexpectedServiceResponseOptions = GatewayErrorOptions;
14210
+
13148
14211
  export { }