@supernova-studio/client 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1409 @@
1
+ import * as _supernova_studio_model from '@supernova-studio/model';
2
+ import { PageBlockDefinition, PageBlockDefinitionRichTextPropertyStyle, PageBlockDefinitionProperty, PageBlockItemV2, PageBlockDefinitionPropertyType } from '@supernova-studio/model';
3
+ import { z } from 'zod';
4
+ import { Schema } from 'prosemirror-model';
5
+ import * as Y from 'yjs';
6
+
7
+ declare const GetBlockDefinitionsResponse: z.ZodObject<{
8
+ definitions: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodString;
10
+ name: z.ZodString;
11
+ description: z.ZodString;
12
+ category: z.ZodNativeEnum<typeof _supernova_studio_model.PageBlockCategory>;
13
+ icon: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
14
+ documentationLink: z.ZodOptional<z.ZodString>;
15
+ searchKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ item: z.ZodObject<{
17
+ properties: z.ZodArray<z.ZodObject<{
18
+ id: z.ZodString;
19
+ name: z.ZodString;
20
+ type: z.ZodNativeEnum<typeof _supernova_studio_model.PageBlockDefinitionPropertyType>;
21
+ description: z.ZodOptional<z.ZodString>;
22
+ options: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
23
+ style: z.ZodOptional<z.ZodNativeEnum<typeof _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle>>;
24
+ placeholder: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
27
+ placeholder?: string | undefined;
28
+ }, {
29
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
30
+ placeholder?: string | undefined;
31
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>>;
32
+ variantOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
33
+ style: z.ZodOptional<z.ZodNativeEnum<typeof _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle>>;
34
+ placeholder: z.ZodOptional<z.ZodString>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
37
+ placeholder?: string | undefined;
38
+ }, {
39
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
40
+ placeholder?: string | undefined;
41
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ id: string;
44
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
45
+ name: string;
46
+ description?: string | undefined;
47
+ options?: ({
48
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
49
+ placeholder?: string | undefined;
50
+ } & Record<string, any>) | undefined;
51
+ variantOptions?: Record<string, {
52
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
53
+ placeholder?: string | undefined;
54
+ } & Record<string, any>> | undefined;
55
+ }, {
56
+ id: string;
57
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
58
+ name: string;
59
+ description?: string | undefined;
60
+ options?: ({
61
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
62
+ placeholder?: string | undefined;
63
+ } & Record<string, any>) | undefined;
64
+ variantOptions?: Record<string, {
65
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
66
+ placeholder?: string | undefined;
67
+ } & Record<string, any>> | undefined;
68
+ }>, "many">;
69
+ appearance: z.ZodOptional<z.ZodObject<{
70
+ isBordered: z.ZodOptional<z.ZodBoolean>;
71
+ hasBackground: z.ZodOptional<z.ZodBoolean>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ isBordered?: boolean | undefined;
74
+ hasBackground?: boolean | undefined;
75
+ }, {
76
+ isBordered?: boolean | undefined;
77
+ hasBackground?: boolean | undefined;
78
+ }>>;
79
+ variants: z.ZodArray<z.ZodObject<{
80
+ id: z.ZodString;
81
+ name: z.ZodString;
82
+ image: z.ZodOptional<z.ZodString>;
83
+ description: z.ZodOptional<z.ZodString>;
84
+ documentationLink: z.ZodOptional<z.ZodString>;
85
+ layout: z.ZodType<_supernova_studio_model.PageBlockDefinitionLayout, z.ZodTypeDef, _supernova_studio_model.PageBlockDefinitionLayout>;
86
+ maxColumns: z.ZodOptional<z.ZodNumber>;
87
+ defaultColumns: z.ZodOptional<z.ZodNumber>;
88
+ appearance: z.ZodOptional<z.ZodObject<{
89
+ isBordered: z.ZodOptional<z.ZodBoolean>;
90
+ hasBackground: z.ZodOptional<z.ZodBoolean>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ isBordered?: boolean | undefined;
93
+ hasBackground?: boolean | undefined;
94
+ }, {
95
+ isBordered?: boolean | undefined;
96
+ hasBackground?: boolean | undefined;
97
+ }>>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ id: string;
100
+ name: string;
101
+ layout: {
102
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
103
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
104
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
105
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
106
+ } & {
107
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
108
+ };
109
+ image?: string | undefined;
110
+ description?: string | undefined;
111
+ documentationLink?: string | undefined;
112
+ maxColumns?: number | undefined;
113
+ defaultColumns?: number | undefined;
114
+ appearance?: {
115
+ isBordered?: boolean | undefined;
116
+ hasBackground?: boolean | undefined;
117
+ } | undefined;
118
+ }, {
119
+ id: string;
120
+ name: string;
121
+ layout: {
122
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
123
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
124
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
125
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
126
+ } & {
127
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
128
+ };
129
+ image?: string | undefined;
130
+ description?: string | undefined;
131
+ documentationLink?: string | undefined;
132
+ maxColumns?: number | undefined;
133
+ defaultColumns?: number | undefined;
134
+ appearance?: {
135
+ isBordered?: boolean | undefined;
136
+ hasBackground?: boolean | undefined;
137
+ } | undefined;
138
+ }>, "many">;
139
+ defaultVariantKey: z.ZodString;
140
+ }, "strip", z.ZodTypeAny, {
141
+ properties: {
142
+ id: string;
143
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
144
+ name: string;
145
+ description?: string | undefined;
146
+ options?: ({
147
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
148
+ placeholder?: string | undefined;
149
+ } & Record<string, any>) | undefined;
150
+ variantOptions?: Record<string, {
151
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
152
+ placeholder?: string | undefined;
153
+ } & Record<string, any>> | undefined;
154
+ }[];
155
+ variants: {
156
+ id: string;
157
+ name: string;
158
+ layout: {
159
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
160
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
161
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
162
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
163
+ } & {
164
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
165
+ };
166
+ image?: string | undefined;
167
+ description?: string | undefined;
168
+ documentationLink?: string | undefined;
169
+ maxColumns?: number | undefined;
170
+ defaultColumns?: number | undefined;
171
+ appearance?: {
172
+ isBordered?: boolean | undefined;
173
+ hasBackground?: boolean | undefined;
174
+ } | undefined;
175
+ }[];
176
+ defaultVariantKey: string;
177
+ appearance?: {
178
+ isBordered?: boolean | undefined;
179
+ hasBackground?: boolean | undefined;
180
+ } | undefined;
181
+ }, {
182
+ properties: {
183
+ id: string;
184
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
185
+ name: string;
186
+ description?: string | undefined;
187
+ options?: ({
188
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
189
+ placeholder?: string | undefined;
190
+ } & Record<string, any>) | undefined;
191
+ variantOptions?: Record<string, {
192
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
193
+ placeholder?: string | undefined;
194
+ } & Record<string, any>> | undefined;
195
+ }[];
196
+ variants: {
197
+ id: string;
198
+ name: string;
199
+ layout: {
200
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
201
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
202
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
203
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
204
+ } & {
205
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
206
+ };
207
+ image?: string | undefined;
208
+ description?: string | undefined;
209
+ documentationLink?: string | undefined;
210
+ maxColumns?: number | undefined;
211
+ defaultColumns?: number | undefined;
212
+ appearance?: {
213
+ isBordered?: boolean | undefined;
214
+ hasBackground?: boolean | undefined;
215
+ } | undefined;
216
+ }[];
217
+ defaultVariantKey: string;
218
+ appearance?: {
219
+ isBordered?: boolean | undefined;
220
+ hasBackground?: boolean | undefined;
221
+ } | undefined;
222
+ }>;
223
+ behavior: z.ZodObject<{
224
+ dataType: z.ZodNativeEnum<typeof _supernova_studio_model.PageBlockBehaviorDataType>;
225
+ items: z.ZodOptional<z.ZodObject<{
226
+ numberOfItems: z.ZodNumber;
227
+ allowLinks: z.ZodBoolean;
228
+ }, "strip", z.ZodTypeAny, {
229
+ numberOfItems: number;
230
+ allowLinks: boolean;
231
+ }, {
232
+ numberOfItems: number;
233
+ allowLinks: boolean;
234
+ }>>;
235
+ entities: z.ZodOptional<z.ZodObject<{
236
+ selectionType: z.ZodNativeEnum<typeof _supernova_studio_model.PageBlockBehaviorSelectionType>;
237
+ maxSelected: z.ZodNumber;
238
+ }, "strip", z.ZodTypeAny, {
239
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
240
+ maxSelected: number;
241
+ }, {
242
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
243
+ maxSelected: number;
244
+ }>>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ dataType: _supernova_studio_model.PageBlockBehaviorDataType;
247
+ items?: {
248
+ numberOfItems: number;
249
+ allowLinks: boolean;
250
+ } | undefined;
251
+ entities?: {
252
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
253
+ maxSelected: number;
254
+ } | undefined;
255
+ }, {
256
+ dataType: _supernova_studio_model.PageBlockBehaviorDataType;
257
+ items?: {
258
+ numberOfItems: number;
259
+ allowLinks: boolean;
260
+ } | undefined;
261
+ entities?: {
262
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
263
+ maxSelected: number;
264
+ } | undefined;
265
+ }>;
266
+ editorOptions: z.ZodObject<{
267
+ onboarding: z.ZodOptional<z.ZodObject<{
268
+ helpText: z.ZodString;
269
+ documentationLink: z.ZodOptional<z.ZodString>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ helpText: string;
272
+ documentationLink?: string | undefined;
273
+ }, {
274
+ helpText: string;
275
+ documentationLink?: string | undefined;
276
+ }>>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ onboarding?: {
279
+ helpText: string;
280
+ documentationLink?: string | undefined;
281
+ } | undefined;
282
+ }, {
283
+ onboarding?: {
284
+ helpText: string;
285
+ documentationLink?: string | undefined;
286
+ } | undefined;
287
+ }>;
288
+ appearance: z.ZodOptional<z.ZodObject<{
289
+ isBordered: z.ZodOptional<z.ZodBoolean>;
290
+ hasBackground: z.ZodOptional<z.ZodBoolean>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ isBordered?: boolean | undefined;
293
+ hasBackground?: boolean | undefined;
294
+ }, {
295
+ isBordered?: boolean | undefined;
296
+ hasBackground?: boolean | undefined;
297
+ }>>;
298
+ }, "strip", z.ZodTypeAny, {
299
+ id: string;
300
+ name: string;
301
+ description: string;
302
+ item: {
303
+ properties: {
304
+ id: string;
305
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
306
+ name: string;
307
+ description?: string | undefined;
308
+ options?: ({
309
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
310
+ placeholder?: string | undefined;
311
+ } & Record<string, any>) | undefined;
312
+ variantOptions?: Record<string, {
313
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
314
+ placeholder?: string | undefined;
315
+ } & Record<string, any>> | undefined;
316
+ }[];
317
+ variants: {
318
+ id: string;
319
+ name: string;
320
+ layout: {
321
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
322
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
323
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
324
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
325
+ } & {
326
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
327
+ };
328
+ image?: string | undefined;
329
+ description?: string | undefined;
330
+ documentationLink?: string | undefined;
331
+ maxColumns?: number | undefined;
332
+ defaultColumns?: number | undefined;
333
+ appearance?: {
334
+ isBordered?: boolean | undefined;
335
+ hasBackground?: boolean | undefined;
336
+ } | undefined;
337
+ }[];
338
+ defaultVariantKey: string;
339
+ appearance?: {
340
+ isBordered?: boolean | undefined;
341
+ hasBackground?: boolean | undefined;
342
+ } | undefined;
343
+ };
344
+ category: _supernova_studio_model.PageBlockCategory;
345
+ behavior: {
346
+ dataType: _supernova_studio_model.PageBlockBehaviorDataType;
347
+ items?: {
348
+ numberOfItems: number;
349
+ allowLinks: boolean;
350
+ } | undefined;
351
+ entities?: {
352
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
353
+ maxSelected: number;
354
+ } | undefined;
355
+ };
356
+ editorOptions: {
357
+ onboarding?: {
358
+ helpText: string;
359
+ documentationLink?: string | undefined;
360
+ } | undefined;
361
+ };
362
+ icon?: {} | undefined;
363
+ documentationLink?: string | undefined;
364
+ searchKeywords?: string[] | undefined;
365
+ appearance?: {
366
+ isBordered?: boolean | undefined;
367
+ hasBackground?: boolean | undefined;
368
+ } | undefined;
369
+ }, {
370
+ id: string;
371
+ name: string;
372
+ description: string;
373
+ item: {
374
+ properties: {
375
+ id: string;
376
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
377
+ name: string;
378
+ description?: string | undefined;
379
+ options?: ({
380
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
381
+ placeholder?: string | undefined;
382
+ } & Record<string, any>) | undefined;
383
+ variantOptions?: Record<string, {
384
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
385
+ placeholder?: string | undefined;
386
+ } & Record<string, any>> | undefined;
387
+ }[];
388
+ variants: {
389
+ id: string;
390
+ name: string;
391
+ layout: {
392
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
393
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
394
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
395
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
396
+ } & {
397
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
398
+ };
399
+ image?: string | undefined;
400
+ description?: string | undefined;
401
+ documentationLink?: string | undefined;
402
+ maxColumns?: number | undefined;
403
+ defaultColumns?: number | undefined;
404
+ appearance?: {
405
+ isBordered?: boolean | undefined;
406
+ hasBackground?: boolean | undefined;
407
+ } | undefined;
408
+ }[];
409
+ defaultVariantKey: string;
410
+ appearance?: {
411
+ isBordered?: boolean | undefined;
412
+ hasBackground?: boolean | undefined;
413
+ } | undefined;
414
+ };
415
+ category: _supernova_studio_model.PageBlockCategory;
416
+ behavior: {
417
+ dataType: _supernova_studio_model.PageBlockBehaviorDataType;
418
+ items?: {
419
+ numberOfItems: number;
420
+ allowLinks: boolean;
421
+ } | undefined;
422
+ entities?: {
423
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
424
+ maxSelected: number;
425
+ } | undefined;
426
+ };
427
+ editorOptions: {
428
+ onboarding?: {
429
+ helpText: string;
430
+ documentationLink?: string | undefined;
431
+ } | undefined;
432
+ };
433
+ icon?: {} | undefined;
434
+ documentationLink?: string | undefined;
435
+ searchKeywords?: string[] | undefined;
436
+ appearance?: {
437
+ isBordered?: boolean | undefined;
438
+ hasBackground?: boolean | undefined;
439
+ } | undefined;
440
+ }>, "many">;
441
+ }, "strip", z.ZodTypeAny, {
442
+ definitions: {
443
+ id: string;
444
+ name: string;
445
+ description: string;
446
+ item: {
447
+ properties: {
448
+ id: string;
449
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
450
+ name: string;
451
+ description?: string | undefined;
452
+ options?: ({
453
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
454
+ placeholder?: string | undefined;
455
+ } & Record<string, any>) | undefined;
456
+ variantOptions?: Record<string, {
457
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
458
+ placeholder?: string | undefined;
459
+ } & Record<string, any>> | undefined;
460
+ }[];
461
+ variants: {
462
+ id: string;
463
+ name: string;
464
+ layout: {
465
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
466
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
467
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
468
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
469
+ } & {
470
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
471
+ };
472
+ image?: string | undefined;
473
+ description?: string | undefined;
474
+ documentationLink?: string | undefined;
475
+ maxColumns?: number | undefined;
476
+ defaultColumns?: number | undefined;
477
+ appearance?: {
478
+ isBordered?: boolean | undefined;
479
+ hasBackground?: boolean | undefined;
480
+ } | undefined;
481
+ }[];
482
+ defaultVariantKey: string;
483
+ appearance?: {
484
+ isBordered?: boolean | undefined;
485
+ hasBackground?: boolean | undefined;
486
+ } | undefined;
487
+ };
488
+ category: _supernova_studio_model.PageBlockCategory;
489
+ behavior: {
490
+ dataType: _supernova_studio_model.PageBlockBehaviorDataType;
491
+ items?: {
492
+ numberOfItems: number;
493
+ allowLinks: boolean;
494
+ } | undefined;
495
+ entities?: {
496
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
497
+ maxSelected: number;
498
+ } | undefined;
499
+ };
500
+ editorOptions: {
501
+ onboarding?: {
502
+ helpText: string;
503
+ documentationLink?: string | undefined;
504
+ } | undefined;
505
+ };
506
+ icon?: {} | undefined;
507
+ documentationLink?: string | undefined;
508
+ searchKeywords?: string[] | undefined;
509
+ appearance?: {
510
+ isBordered?: boolean | undefined;
511
+ hasBackground?: boolean | undefined;
512
+ } | undefined;
513
+ }[];
514
+ }, {
515
+ definitions: {
516
+ id: string;
517
+ name: string;
518
+ description: string;
519
+ item: {
520
+ properties: {
521
+ id: string;
522
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
523
+ name: string;
524
+ description?: string | undefined;
525
+ options?: ({
526
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
527
+ placeholder?: string | undefined;
528
+ } & Record<string, any>) | undefined;
529
+ variantOptions?: Record<string, {
530
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
531
+ placeholder?: string | undefined;
532
+ } & Record<string, any>> | undefined;
533
+ }[];
534
+ variants: {
535
+ id: string;
536
+ name: string;
537
+ layout: {
538
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
539
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
540
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
541
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
542
+ } & {
543
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
544
+ };
545
+ image?: string | undefined;
546
+ description?: string | undefined;
547
+ documentationLink?: string | undefined;
548
+ maxColumns?: number | undefined;
549
+ defaultColumns?: number | undefined;
550
+ appearance?: {
551
+ isBordered?: boolean | undefined;
552
+ hasBackground?: boolean | undefined;
553
+ } | undefined;
554
+ }[];
555
+ defaultVariantKey: string;
556
+ appearance?: {
557
+ isBordered?: boolean | undefined;
558
+ hasBackground?: boolean | undefined;
559
+ } | undefined;
560
+ };
561
+ category: _supernova_studio_model.PageBlockCategory;
562
+ behavior: {
563
+ dataType: _supernova_studio_model.PageBlockBehaviorDataType;
564
+ items?: {
565
+ numberOfItems: number;
566
+ allowLinks: boolean;
567
+ } | undefined;
568
+ entities?: {
569
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
570
+ maxSelected: number;
571
+ } | undefined;
572
+ };
573
+ editorOptions: {
574
+ onboarding?: {
575
+ helpText: string;
576
+ documentationLink?: string | undefined;
577
+ } | undefined;
578
+ };
579
+ icon?: {} | undefined;
580
+ documentationLink?: string | undefined;
581
+ searchKeywords?: string[] | undefined;
582
+ appearance?: {
583
+ isBordered?: boolean | undefined;
584
+ hasBackground?: boolean | undefined;
585
+ } | undefined;
586
+ }[];
587
+ }>;
588
+ type GetBlockDefinitionsResponse = z.infer<typeof GetBlockDefinitionsResponse>;
589
+
590
+ declare const PageBlockEditorModel: z.ZodObject<{
591
+ id: z.ZodString;
592
+ data: z.ZodObject<{
593
+ packageId: z.ZodString;
594
+ variantId: z.ZodOptional<z.ZodString>;
595
+ indentLevel: z.ZodNumber;
596
+ appearance: z.ZodOptional<z.ZodObject<{
597
+ itemBackgroundColor: z.ZodObject<{
598
+ opacity: z.ZodObject<{
599
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
600
+ value: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodObject<{
601
+ unit: z.ZodEnum<["Raw", "Pixels"]>;
602
+ measure: z.ZodNumber;
603
+ }, "strip", z.ZodTypeAny, {
604
+ unit: "Pixels" | "Raw";
605
+ measure: number;
606
+ }, {
607
+ unit: "Pixels" | "Raw";
608
+ measure: number;
609
+ }>>>, {
610
+ unit: "Pixels" | "Raw";
611
+ measure: number;
612
+ } | undefined, {
613
+ unit: "Pixels" | "Raw";
614
+ measure: number;
615
+ } | null | undefined>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ aliasTo?: string | undefined;
618
+ value?: {
619
+ unit: "Pixels" | "Raw";
620
+ measure: number;
621
+ } | undefined;
622
+ }, {
623
+ aliasTo?: string | null | undefined;
624
+ value?: {
625
+ unit: "Pixels" | "Raw";
626
+ measure: number;
627
+ } | null | undefined;
628
+ }>;
629
+ color: z.ZodUnion<[z.ZodString, z.ZodObject<{
630
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ aliasTo?: string | undefined;
633
+ }, {
634
+ aliasTo?: string | null | undefined;
635
+ }>]>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ opacity: {
638
+ aliasTo?: string | undefined;
639
+ value?: {
640
+ unit: "Pixels" | "Raw";
641
+ measure: number;
642
+ } | undefined;
643
+ };
644
+ color: (string | {
645
+ aliasTo?: string | undefined;
646
+ }) & (string | {
647
+ aliasTo?: string | undefined;
648
+ } | undefined);
649
+ }, {
650
+ opacity: {
651
+ aliasTo?: string | null | undefined;
652
+ value?: {
653
+ unit: "Pixels" | "Raw";
654
+ measure: number;
655
+ } | null | undefined;
656
+ };
657
+ color: (string | {
658
+ aliasTo?: string | null | undefined;
659
+ }) & (string | {
660
+ aliasTo?: string | null | undefined;
661
+ } | undefined);
662
+ }>;
663
+ }, "strip", z.ZodTypeAny, {
664
+ itemBackgroundColor: {
665
+ opacity: {
666
+ aliasTo?: string | undefined;
667
+ value?: {
668
+ unit: "Pixels" | "Raw";
669
+ measure: number;
670
+ } | undefined;
671
+ };
672
+ color: (string | {
673
+ aliasTo?: string | undefined;
674
+ }) & (string | {
675
+ aliasTo?: string | undefined;
676
+ } | undefined);
677
+ };
678
+ }, {
679
+ itemBackgroundColor: {
680
+ opacity: {
681
+ aliasTo?: string | null | undefined;
682
+ value?: {
683
+ unit: "Pixels" | "Raw";
684
+ measure: number;
685
+ } | null | undefined;
686
+ };
687
+ color: (string | {
688
+ aliasTo?: string | null | undefined;
689
+ }) & (string | {
690
+ aliasTo?: string | null | undefined;
691
+ } | undefined);
692
+ };
693
+ }>>;
694
+ items: z.ZodArray<z.ZodIntersection<z.ZodObject<{
695
+ linksTo: z.ZodOptional<z.ZodObject<{
696
+ type: z.ZodEnum<["Page", "PageHeading", "Group", "Url"]>;
697
+ pageId: z.ZodOptional<z.ZodString>;
698
+ pageHeadingId: z.ZodOptional<z.ZodString>;
699
+ groupId: z.ZodOptional<z.ZodString>;
700
+ url: z.ZodOptional<z.ZodString>;
701
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ type: "Page" | "PageHeading" | "Group" | "Url";
704
+ pageId?: string | undefined;
705
+ pageHeadingId?: string | undefined;
706
+ groupId?: string | undefined;
707
+ url?: string | undefined;
708
+ openInNewTab?: boolean | undefined;
709
+ }, {
710
+ type: "Page" | "PageHeading" | "Group" | "Url";
711
+ pageId?: string | undefined;
712
+ pageHeadingId?: string | undefined;
713
+ groupId?: string | undefined;
714
+ url?: string | undefined;
715
+ openInNewTab?: boolean | undefined;
716
+ }>>;
717
+ }, "strip", z.ZodTypeAny, {
718
+ linksTo?: {
719
+ type: "Page" | "PageHeading" | "Group" | "Url";
720
+ pageId?: string | undefined;
721
+ pageHeadingId?: string | undefined;
722
+ groupId?: string | undefined;
723
+ url?: string | undefined;
724
+ openInNewTab?: boolean | undefined;
725
+ } | undefined;
726
+ }, {
727
+ linksTo?: {
728
+ type: "Page" | "PageHeading" | "Group" | "Url";
729
+ pageId?: string | undefined;
730
+ pageHeadingId?: string | undefined;
731
+ groupId?: string | undefined;
732
+ url?: string | undefined;
733
+ openInNewTab?: boolean | undefined;
734
+ } | undefined;
735
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>, "many">;
736
+ }, "strip", z.ZodTypeAny, {
737
+ items: ({
738
+ linksTo?: {
739
+ type: "Page" | "PageHeading" | "Group" | "Url";
740
+ pageId?: string | undefined;
741
+ pageHeadingId?: string | undefined;
742
+ groupId?: string | undefined;
743
+ url?: string | undefined;
744
+ openInNewTab?: boolean | undefined;
745
+ } | undefined;
746
+ } & Record<string, any>)[];
747
+ packageId: string;
748
+ indentLevel: number;
749
+ variantId?: string | undefined;
750
+ appearance?: {
751
+ itemBackgroundColor: {
752
+ opacity: {
753
+ aliasTo?: string | undefined;
754
+ value?: {
755
+ unit: "Pixels" | "Raw";
756
+ measure: number;
757
+ } | undefined;
758
+ };
759
+ color: (string | {
760
+ aliasTo?: string | undefined;
761
+ }) & (string | {
762
+ aliasTo?: string | undefined;
763
+ } | undefined);
764
+ };
765
+ } | undefined;
766
+ }, {
767
+ items: ({
768
+ linksTo?: {
769
+ type: "Page" | "PageHeading" | "Group" | "Url";
770
+ pageId?: string | undefined;
771
+ pageHeadingId?: string | undefined;
772
+ groupId?: string | undefined;
773
+ url?: string | undefined;
774
+ openInNewTab?: boolean | undefined;
775
+ } | undefined;
776
+ } & Record<string, any>)[];
777
+ packageId: string;
778
+ indentLevel: number;
779
+ variantId?: string | undefined;
780
+ appearance?: {
781
+ itemBackgroundColor: {
782
+ opacity: {
783
+ aliasTo?: string | null | undefined;
784
+ value?: {
785
+ unit: "Pixels" | "Raw";
786
+ measure: number;
787
+ } | null | undefined;
788
+ };
789
+ color: (string | {
790
+ aliasTo?: string | null | undefined;
791
+ }) & (string | {
792
+ aliasTo?: string | null | undefined;
793
+ } | undefined);
794
+ };
795
+ } | undefined;
796
+ }>;
797
+ }, "strip", z.ZodTypeAny, {
798
+ id: string;
799
+ data: {
800
+ items: ({
801
+ linksTo?: {
802
+ type: "Page" | "PageHeading" | "Group" | "Url";
803
+ pageId?: string | undefined;
804
+ pageHeadingId?: string | undefined;
805
+ groupId?: string | undefined;
806
+ url?: string | undefined;
807
+ openInNewTab?: boolean | undefined;
808
+ } | undefined;
809
+ } & Record<string, any>)[];
810
+ packageId: string;
811
+ indentLevel: number;
812
+ variantId?: string | undefined;
813
+ appearance?: {
814
+ itemBackgroundColor: {
815
+ opacity: {
816
+ aliasTo?: string | undefined;
817
+ value?: {
818
+ unit: "Pixels" | "Raw";
819
+ measure: number;
820
+ } | undefined;
821
+ };
822
+ color: (string | {
823
+ aliasTo?: string | undefined;
824
+ }) & (string | {
825
+ aliasTo?: string | undefined;
826
+ } | undefined);
827
+ };
828
+ } | undefined;
829
+ };
830
+ }, {
831
+ id: string;
832
+ data: {
833
+ items: ({
834
+ linksTo?: {
835
+ type: "Page" | "PageHeading" | "Group" | "Url";
836
+ pageId?: string | undefined;
837
+ pageHeadingId?: string | undefined;
838
+ groupId?: string | undefined;
839
+ url?: string | undefined;
840
+ openInNewTab?: boolean | undefined;
841
+ } | undefined;
842
+ } & Record<string, any>)[];
843
+ packageId: string;
844
+ indentLevel: number;
845
+ variantId?: string | undefined;
846
+ appearance?: {
847
+ itemBackgroundColor: {
848
+ opacity: {
849
+ aliasTo?: string | null | undefined;
850
+ value?: {
851
+ unit: "Pixels" | "Raw";
852
+ measure: number;
853
+ } | null | undefined;
854
+ };
855
+ color: (string | {
856
+ aliasTo?: string | null | undefined;
857
+ }) & (string | {
858
+ aliasTo?: string | null | undefined;
859
+ } | undefined);
860
+ };
861
+ } | undefined;
862
+ };
863
+ }>;
864
+ type PageBlockEditorModel = z.infer<typeof PageBlockEditorModel>;
865
+
866
+ declare const DocumentationPageEditorModel: z.ZodObject<{
867
+ blocks: z.ZodArray<z.ZodObject<{
868
+ id: z.ZodString;
869
+ data: z.ZodObject<{
870
+ packageId: z.ZodString;
871
+ variantId: z.ZodOptional<z.ZodString>;
872
+ indentLevel: z.ZodNumber;
873
+ appearance: z.ZodOptional<z.ZodObject<{
874
+ itemBackgroundColor: z.ZodObject<{
875
+ opacity: z.ZodObject<{
876
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
877
+ value: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodObject<{
878
+ unit: z.ZodEnum<["Raw", "Pixels"]>;
879
+ measure: z.ZodNumber;
880
+ }, "strip", z.ZodTypeAny, {
881
+ unit: "Pixels" | "Raw";
882
+ measure: number;
883
+ }, {
884
+ unit: "Pixels" | "Raw";
885
+ measure: number;
886
+ }>>>, {
887
+ unit: "Pixels" | "Raw";
888
+ measure: number;
889
+ } | undefined, {
890
+ unit: "Pixels" | "Raw";
891
+ measure: number;
892
+ } | null | undefined>;
893
+ }, "strip", z.ZodTypeAny, {
894
+ aliasTo?: string | undefined;
895
+ value?: {
896
+ unit: "Pixels" | "Raw";
897
+ measure: number;
898
+ } | undefined;
899
+ }, {
900
+ aliasTo?: string | null | undefined;
901
+ value?: {
902
+ unit: "Pixels" | "Raw";
903
+ measure: number;
904
+ } | null | undefined;
905
+ }>;
906
+ color: z.ZodUnion<[z.ZodString, z.ZodObject<{
907
+ aliasTo: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ aliasTo?: string | undefined;
910
+ }, {
911
+ aliasTo?: string | null | undefined;
912
+ }>]>;
913
+ }, "strip", z.ZodTypeAny, {
914
+ opacity: {
915
+ aliasTo?: string | undefined;
916
+ value?: {
917
+ unit: "Pixels" | "Raw";
918
+ measure: number;
919
+ } | undefined;
920
+ };
921
+ color: (string | {
922
+ aliasTo?: string | undefined;
923
+ }) & (string | {
924
+ aliasTo?: string | undefined;
925
+ } | undefined);
926
+ }, {
927
+ opacity: {
928
+ aliasTo?: string | null | undefined;
929
+ value?: {
930
+ unit: "Pixels" | "Raw";
931
+ measure: number;
932
+ } | null | undefined;
933
+ };
934
+ color: (string | {
935
+ aliasTo?: string | null | undefined;
936
+ }) & (string | {
937
+ aliasTo?: string | null | undefined;
938
+ } | undefined);
939
+ }>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ itemBackgroundColor: {
942
+ opacity: {
943
+ aliasTo?: string | undefined;
944
+ value?: {
945
+ unit: "Pixels" | "Raw";
946
+ measure: number;
947
+ } | undefined;
948
+ };
949
+ color: (string | {
950
+ aliasTo?: string | undefined;
951
+ }) & (string | {
952
+ aliasTo?: string | undefined;
953
+ } | undefined);
954
+ };
955
+ }, {
956
+ itemBackgroundColor: {
957
+ opacity: {
958
+ aliasTo?: string | null | undefined;
959
+ value?: {
960
+ unit: "Pixels" | "Raw";
961
+ measure: number;
962
+ } | null | undefined;
963
+ };
964
+ color: (string | {
965
+ aliasTo?: string | null | undefined;
966
+ }) & (string | {
967
+ aliasTo?: string | null | undefined;
968
+ } | undefined);
969
+ };
970
+ }>>;
971
+ items: z.ZodArray<z.ZodIntersection<z.ZodObject<{
972
+ linksTo: z.ZodOptional<z.ZodObject<{
973
+ type: z.ZodEnum<["Page", "PageHeading", "Group", "Url"]>;
974
+ pageId: z.ZodOptional<z.ZodString>;
975
+ pageHeadingId: z.ZodOptional<z.ZodString>;
976
+ groupId: z.ZodOptional<z.ZodString>;
977
+ url: z.ZodOptional<z.ZodString>;
978
+ openInNewTab: z.ZodOptional<z.ZodBoolean>;
979
+ }, "strip", z.ZodTypeAny, {
980
+ type: "Page" | "PageHeading" | "Group" | "Url";
981
+ pageId?: string | undefined;
982
+ pageHeadingId?: string | undefined;
983
+ groupId?: string | undefined;
984
+ url?: string | undefined;
985
+ openInNewTab?: boolean | undefined;
986
+ }, {
987
+ type: "Page" | "PageHeading" | "Group" | "Url";
988
+ pageId?: string | undefined;
989
+ pageHeadingId?: string | undefined;
990
+ groupId?: string | undefined;
991
+ url?: string | undefined;
992
+ openInNewTab?: boolean | undefined;
993
+ }>>;
994
+ }, "strip", z.ZodTypeAny, {
995
+ linksTo?: {
996
+ type: "Page" | "PageHeading" | "Group" | "Url";
997
+ pageId?: string | undefined;
998
+ pageHeadingId?: string | undefined;
999
+ groupId?: string | undefined;
1000
+ url?: string | undefined;
1001
+ openInNewTab?: boolean | undefined;
1002
+ } | undefined;
1003
+ }, {
1004
+ linksTo?: {
1005
+ type: "Page" | "PageHeading" | "Group" | "Url";
1006
+ pageId?: string | undefined;
1007
+ pageHeadingId?: string | undefined;
1008
+ groupId?: string | undefined;
1009
+ url?: string | undefined;
1010
+ openInNewTab?: boolean | undefined;
1011
+ } | undefined;
1012
+ }>, z.ZodRecord<z.ZodString, z.ZodAny>>, "many">;
1013
+ }, "strip", z.ZodTypeAny, {
1014
+ items: ({
1015
+ linksTo?: {
1016
+ type: "Page" | "PageHeading" | "Group" | "Url";
1017
+ pageId?: string | undefined;
1018
+ pageHeadingId?: string | undefined;
1019
+ groupId?: string | undefined;
1020
+ url?: string | undefined;
1021
+ openInNewTab?: boolean | undefined;
1022
+ } | undefined;
1023
+ } & Record<string, any>)[];
1024
+ packageId: string;
1025
+ indentLevel: number;
1026
+ variantId?: string | undefined;
1027
+ appearance?: {
1028
+ itemBackgroundColor: {
1029
+ opacity: {
1030
+ aliasTo?: string | undefined;
1031
+ value?: {
1032
+ unit: "Pixels" | "Raw";
1033
+ measure: number;
1034
+ } | undefined;
1035
+ };
1036
+ color: (string | {
1037
+ aliasTo?: string | undefined;
1038
+ }) & (string | {
1039
+ aliasTo?: string | undefined;
1040
+ } | undefined);
1041
+ };
1042
+ } | undefined;
1043
+ }, {
1044
+ items: ({
1045
+ linksTo?: {
1046
+ type: "Page" | "PageHeading" | "Group" | "Url";
1047
+ pageId?: string | undefined;
1048
+ pageHeadingId?: string | undefined;
1049
+ groupId?: string | undefined;
1050
+ url?: string | undefined;
1051
+ openInNewTab?: boolean | undefined;
1052
+ } | undefined;
1053
+ } & Record<string, any>)[];
1054
+ packageId: string;
1055
+ indentLevel: number;
1056
+ variantId?: string | undefined;
1057
+ appearance?: {
1058
+ itemBackgroundColor: {
1059
+ opacity: {
1060
+ aliasTo?: string | null | undefined;
1061
+ value?: {
1062
+ unit: "Pixels" | "Raw";
1063
+ measure: number;
1064
+ } | null | undefined;
1065
+ };
1066
+ color: (string | {
1067
+ aliasTo?: string | null | undefined;
1068
+ }) & (string | {
1069
+ aliasTo?: string | null | undefined;
1070
+ } | undefined);
1071
+ };
1072
+ } | undefined;
1073
+ }>;
1074
+ }, "strip", z.ZodTypeAny, {
1075
+ id: string;
1076
+ data: {
1077
+ items: ({
1078
+ linksTo?: {
1079
+ type: "Page" | "PageHeading" | "Group" | "Url";
1080
+ pageId?: string | undefined;
1081
+ pageHeadingId?: string | undefined;
1082
+ groupId?: string | undefined;
1083
+ url?: string | undefined;
1084
+ openInNewTab?: boolean | undefined;
1085
+ } | undefined;
1086
+ } & Record<string, any>)[];
1087
+ packageId: string;
1088
+ indentLevel: number;
1089
+ variantId?: string | undefined;
1090
+ appearance?: {
1091
+ itemBackgroundColor: {
1092
+ opacity: {
1093
+ aliasTo?: string | undefined;
1094
+ value?: {
1095
+ unit: "Pixels" | "Raw";
1096
+ measure: number;
1097
+ } | undefined;
1098
+ };
1099
+ color: (string | {
1100
+ aliasTo?: string | undefined;
1101
+ }) & (string | {
1102
+ aliasTo?: string | undefined;
1103
+ } | undefined);
1104
+ };
1105
+ } | undefined;
1106
+ };
1107
+ }, {
1108
+ id: string;
1109
+ data: {
1110
+ items: ({
1111
+ linksTo?: {
1112
+ type: "Page" | "PageHeading" | "Group" | "Url";
1113
+ pageId?: string | undefined;
1114
+ pageHeadingId?: string | undefined;
1115
+ groupId?: string | undefined;
1116
+ url?: string | undefined;
1117
+ openInNewTab?: boolean | undefined;
1118
+ } | undefined;
1119
+ } & Record<string, any>)[];
1120
+ packageId: string;
1121
+ indentLevel: number;
1122
+ variantId?: string | undefined;
1123
+ appearance?: {
1124
+ itemBackgroundColor: {
1125
+ opacity: {
1126
+ aliasTo?: string | null | undefined;
1127
+ value?: {
1128
+ unit: "Pixels" | "Raw";
1129
+ measure: number;
1130
+ } | null | undefined;
1131
+ };
1132
+ color: (string | {
1133
+ aliasTo?: string | null | undefined;
1134
+ }) & (string | {
1135
+ aliasTo?: string | null | undefined;
1136
+ } | undefined);
1137
+ };
1138
+ } | undefined;
1139
+ };
1140
+ }>, "many">;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ blocks: {
1143
+ id: string;
1144
+ data: {
1145
+ items: ({
1146
+ linksTo?: {
1147
+ type: "Page" | "PageHeading" | "Group" | "Url";
1148
+ pageId?: string | undefined;
1149
+ pageHeadingId?: string | undefined;
1150
+ groupId?: string | undefined;
1151
+ url?: string | undefined;
1152
+ openInNewTab?: boolean | undefined;
1153
+ } | undefined;
1154
+ } & Record<string, any>)[];
1155
+ packageId: string;
1156
+ indentLevel: number;
1157
+ variantId?: string | undefined;
1158
+ appearance?: {
1159
+ itemBackgroundColor: {
1160
+ opacity: {
1161
+ aliasTo?: string | undefined;
1162
+ value?: {
1163
+ unit: "Pixels" | "Raw";
1164
+ measure: number;
1165
+ } | undefined;
1166
+ };
1167
+ color: (string | {
1168
+ aliasTo?: string | undefined;
1169
+ }) & (string | {
1170
+ aliasTo?: string | undefined;
1171
+ } | undefined);
1172
+ };
1173
+ } | undefined;
1174
+ };
1175
+ }[];
1176
+ }, {
1177
+ blocks: {
1178
+ id: string;
1179
+ data: {
1180
+ items: ({
1181
+ linksTo?: {
1182
+ type: "Page" | "PageHeading" | "Group" | "Url";
1183
+ pageId?: string | undefined;
1184
+ pageHeadingId?: string | undefined;
1185
+ groupId?: string | undefined;
1186
+ url?: string | undefined;
1187
+ openInNewTab?: boolean | undefined;
1188
+ } | undefined;
1189
+ } & Record<string, any>)[];
1190
+ packageId: string;
1191
+ indentLevel: number;
1192
+ variantId?: string | undefined;
1193
+ appearance?: {
1194
+ itemBackgroundColor: {
1195
+ opacity: {
1196
+ aliasTo?: string | null | undefined;
1197
+ value?: {
1198
+ unit: "Pixels" | "Raw";
1199
+ measure: number;
1200
+ } | null | undefined;
1201
+ };
1202
+ color: (string | {
1203
+ aliasTo?: string | null | undefined;
1204
+ }) & (string | {
1205
+ aliasTo?: string | null | undefined;
1206
+ } | undefined);
1207
+ };
1208
+ } | undefined;
1209
+ };
1210
+ }[];
1211
+ }>;
1212
+ type DocumentationPageEditorModel = z.infer<typeof DocumentationPageEditorModel>;
1213
+
1214
+ declare const pmSchema: Schema<"doc" | "image" | "text" | "table" | "callout" | "paragraph" | "reactComponent" | "tableRow" | "tableCell" | "tableHeader" | "tableContainer" | "codeBlock" | "hardBreak" | "heading" | "listItem" | "orderedList" | "bulletList" | "horizontalRule" | "blockquote" | "plainSection" | "sectionItem" | "tabsSection" | "sectionItemColumn" | "blockNode", "code" | "link" | "bold" | "italic" | "strike">;
1215
+
1216
+ type ProsemirrorNode = {
1217
+ type: string;
1218
+ text?: string;
1219
+ attrs?: Record<string, any>;
1220
+ marks?: ProsemirrorMark[];
1221
+ content?: ProsemirrorNode[];
1222
+ };
1223
+ type ProsemirrorMark = {
1224
+ type: string;
1225
+ attrs: Record<string, any>;
1226
+ };
1227
+ type ProsemirrorBlockItem = {
1228
+ properties: ProsemirrorBlockItemPropertyValue[];
1229
+ };
1230
+ type ProsemirrorBlockItemPropertyValue = {
1231
+ id: string;
1232
+ data: {
1233
+ value?: string;
1234
+ };
1235
+ };
1236
+
1237
+ type Input = {
1238
+ block: PageBlockEditorModel;
1239
+ definition: PageBlockDefinition;
1240
+ richTextProperty: PageBlockDefinitionProperty;
1241
+ };
1242
+ declare function pageToYXmlFragment(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[], fragment: Y.XmlFragment): Y.XmlFragment;
1243
+ declare function pageToProsemirrorDoc(page: DocumentationPageEditorModel, definitions: PageBlockDefinition[]): ProsemirrorNode;
1244
+ declare function blockDefinitionForBlock(block: PageBlockEditorModel, definitions: PageBlockDefinition[]): {
1245
+ id: string;
1246
+ name: string;
1247
+ description: string;
1248
+ item: {
1249
+ properties: {
1250
+ id: string;
1251
+ type: _supernova_studio_model.PageBlockDefinitionPropertyType;
1252
+ name: string;
1253
+ description?: string | undefined;
1254
+ options?: ({
1255
+ style?: PageBlockDefinitionRichTextPropertyStyle | undefined;
1256
+ placeholder?: string | undefined;
1257
+ } & Record<string, any>) | undefined;
1258
+ variantOptions?: Record<string, {
1259
+ style?: PageBlockDefinitionRichTextPropertyStyle | undefined;
1260
+ placeholder?: string | undefined;
1261
+ } & Record<string, any>> | undefined;
1262
+ }[];
1263
+ variants: {
1264
+ id: string;
1265
+ name: string;
1266
+ layout: {
1267
+ type: _supernova_studio_model.PageBlockDefinitionLayoutType;
1268
+ gap?: _supernova_studio_model.PageBlockDefinitionLayoutGap | undefined;
1269
+ columnAlign?: _supernova_studio_model.PageBlockDefinitionLayoutAlign | undefined;
1270
+ columnResizing?: _supernova_studio_model.PageBlockDefinitionLayoutResizing | undefined;
1271
+ } & {
1272
+ children: (string | _supernova_studio_model.PageBlockDefinitionLayout)[];
1273
+ };
1274
+ image?: string | undefined;
1275
+ description?: string | undefined;
1276
+ documentationLink?: string | undefined;
1277
+ maxColumns?: number | undefined;
1278
+ defaultColumns?: number | undefined;
1279
+ appearance?: {
1280
+ isBordered?: boolean | undefined;
1281
+ hasBackground?: boolean | undefined;
1282
+ } | undefined;
1283
+ }[];
1284
+ defaultVariantKey: string;
1285
+ appearance?: {
1286
+ isBordered?: boolean | undefined;
1287
+ hasBackground?: boolean | undefined;
1288
+ } | undefined;
1289
+ };
1290
+ category: _supernova_studio_model.PageBlockCategory;
1291
+ behavior: {
1292
+ dataType: _supernova_studio_model.PageBlockBehaviorDataType;
1293
+ items?: {
1294
+ numberOfItems: number;
1295
+ allowLinks: boolean;
1296
+ } | undefined;
1297
+ entities?: {
1298
+ selectionType: _supernova_studio_model.PageBlockBehaviorSelectionType;
1299
+ maxSelected: number;
1300
+ } | undefined;
1301
+ };
1302
+ editorOptions: {
1303
+ onboarding?: {
1304
+ helpText: string;
1305
+ documentationLink?: string | undefined;
1306
+ } | undefined;
1307
+ };
1308
+ icon?: {} | undefined;
1309
+ documentationLink?: string | undefined;
1310
+ searchKeywords?: string[] | undefined;
1311
+ appearance?: {
1312
+ isBordered?: boolean | undefined;
1313
+ hasBackground?: boolean | undefined;
1314
+ } | undefined;
1315
+ };
1316
+ declare function blockToProsemirrorNode(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode | null;
1317
+ declare function serializeAsRichTextBlock(input: Input): ProsemirrorNode;
1318
+ declare function serializeAsCustomBlock(block: PageBlockEditorModel, definition: PageBlockDefinition): ProsemirrorNode;
1319
+
1320
+ declare function yXmlFragmetToPage(fragment: Y.XmlFragment, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
1321
+ declare function prosemirrorDocToPage(prosemirrorDoc: ProsemirrorNode, definitions: PageBlockDefinition[]): DocumentationPageEditorModel;
1322
+ declare function prosemirrorNodeToBlock(prosemirrorNode: ProsemirrorNode, definition: PageBlockDefinition): PageBlockEditorModel | null;
1323
+
1324
+ declare const SDKBlockParsingUtils: {
1325
+ singleBlockItem(block: PageBlockEditorModel): {
1326
+ linksTo?: {
1327
+ type: "Page" | "PageHeading" | "Group" | "Url";
1328
+ pageId?: string | undefined;
1329
+ pageHeadingId?: string | undefined;
1330
+ groupId?: string | undefined;
1331
+ url?: string | undefined;
1332
+ openInNewTab?: boolean | undefined;
1333
+ } | undefined;
1334
+ } & Record<string, any>;
1335
+ richTextPropertyValue(item: PageBlockItemV2, propertyKey: string): {
1336
+ spans: {
1337
+ text: string;
1338
+ attributes: {
1339
+ type: "Link" | "Code" | "Bold" | "Italic" | "Strikethrough";
1340
+ link?: string | undefined;
1341
+ documentationItemId?: string | undefined;
1342
+ openInNewWindow?: boolean | undefined;
1343
+ }[];
1344
+ }[];
1345
+ };
1346
+ objectPropertyValue(item: PageBlockItemV2, propertyKey: string): any;
1347
+ propertyValue(item: PageBlockItemV2, propertyKey: string): any;
1348
+ safePropertyValue(item: PageBlockItemV2, propertyKey: string): any;
1349
+ };
1350
+ declare const BlockDefinitionUtils: {
1351
+ firstRichTextProperty(definition: PageBlockDefinition): {
1352
+ id: string;
1353
+ type: PageBlockDefinitionPropertyType;
1354
+ name: string;
1355
+ description?: string | undefined;
1356
+ options?: ({
1357
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1358
+ placeholder?: string | undefined;
1359
+ } & Record<string, any>) | undefined;
1360
+ variantOptions?: Record<string, {
1361
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1362
+ placeholder?: string | undefined;
1363
+ } & Record<string, any>> | undefined;
1364
+ } | undefined;
1365
+ firstTableProperty(definition: PageBlockDefinition): {
1366
+ id: string;
1367
+ type: PageBlockDefinitionPropertyType;
1368
+ name: string;
1369
+ description?: string | undefined;
1370
+ options?: ({
1371
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1372
+ placeholder?: string | undefined;
1373
+ } & Record<string, any>) | undefined;
1374
+ variantOptions?: Record<string, {
1375
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1376
+ placeholder?: string | undefined;
1377
+ } & Record<string, any>> | undefined;
1378
+ } | undefined;
1379
+ richTextProperty(definition: PageBlockDefinition, propertyKey: string): {
1380
+ id: string;
1381
+ type: PageBlockDefinitionPropertyType;
1382
+ name: string;
1383
+ description?: string | undefined;
1384
+ options?: ({
1385
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1386
+ placeholder?: string | undefined;
1387
+ } & Record<string, any>) | undefined;
1388
+ variantOptions?: Record<string, {
1389
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1390
+ placeholder?: string | undefined;
1391
+ } & Record<string, any>> | undefined;
1392
+ };
1393
+ property(definition: PageBlockDefinition, propertyKey: string, expectedPropertyType?: PageBlockDefinitionPropertyType): {
1394
+ id: string;
1395
+ type: PageBlockDefinitionPropertyType;
1396
+ name: string;
1397
+ description?: string | undefined;
1398
+ options?: ({
1399
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1400
+ placeholder?: string | undefined;
1401
+ } & Record<string, any>) | undefined;
1402
+ variantOptions?: Record<string, {
1403
+ style?: _supernova_studio_model.PageBlockDefinitionRichTextPropertyStyle | undefined;
1404
+ placeholder?: string | undefined;
1405
+ } & Record<string, any>> | undefined;
1406
+ };
1407
+ };
1408
+
1409
+ export { BlockDefinitionUtils, DocumentationPageEditorModel, GetBlockDefinitionsResponse, PageBlockEditorModel, type ProsemirrorBlockItem, type ProsemirrorBlockItemPropertyValue, type ProsemirrorMark, type ProsemirrorNode, SDKBlockParsingUtils, blockDefinitionForBlock, blockToProsemirrorNode, pageToProsemirrorDoc, pageToYXmlFragment, pmSchema, prosemirrorDocToPage, prosemirrorNodeToBlock, serializeAsCustomBlock, serializeAsRichTextBlock, yXmlFragmetToPage };