@ixo/editor 3.0.0-beta.2 → 3.0.0-beta.20

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,2592 @@
1
+ import * as _blocknote_core from '@blocknote/core';
2
+ import { BlockSchemaFromSpecs, InlineContentSchema, StyleSchema, BlockNoteEditor, PartialBlock } from '@blocknote/core';
3
+ import { MatrixClient } from 'matrix-js-sdk';
4
+ import { Map, Array as Array$1 } from 'yjs';
5
+
6
+ declare const blockSpecs: {
7
+ checkbox: {
8
+ config: {
9
+ readonly type: "checkbox";
10
+ readonly propSchema: {
11
+ readonly checked: {
12
+ readonly default: false;
13
+ };
14
+ readonly allowedCheckers: {
15
+ readonly default: "all";
16
+ };
17
+ readonly initialChecked: {
18
+ readonly default: false;
19
+ };
20
+ readonly title: {
21
+ readonly default: "";
22
+ };
23
+ readonly description: {
24
+ readonly default: "";
25
+ };
26
+ readonly icon: {
27
+ readonly default: "square-check";
28
+ };
29
+ readonly conditions: {
30
+ readonly default: "";
31
+ };
32
+ readonly ttlAbsoluteDueDate: {
33
+ readonly default: "";
34
+ };
35
+ readonly ttlFromEnablement: {
36
+ readonly default: "";
37
+ };
38
+ readonly ttlFromCommitment: {
39
+ readonly default: "";
40
+ };
41
+ readonly skill: {
42
+ readonly default: "";
43
+ };
44
+ };
45
+ readonly content: "none";
46
+ };
47
+ implementation: _blocknote_core.TiptapBlockImplementation<{
48
+ readonly type: "checkbox";
49
+ readonly propSchema: {
50
+ readonly checked: {
51
+ readonly default: false;
52
+ };
53
+ readonly allowedCheckers: {
54
+ readonly default: "all";
55
+ };
56
+ readonly initialChecked: {
57
+ readonly default: false;
58
+ };
59
+ readonly title: {
60
+ readonly default: "";
61
+ };
62
+ readonly description: {
63
+ readonly default: "";
64
+ };
65
+ readonly icon: {
66
+ readonly default: "square-check";
67
+ };
68
+ readonly conditions: {
69
+ readonly default: "";
70
+ };
71
+ readonly ttlAbsoluteDueDate: {
72
+ readonly default: "";
73
+ };
74
+ readonly ttlFromEnablement: {
75
+ readonly default: "";
76
+ };
77
+ readonly ttlFromCommitment: {
78
+ readonly default: "";
79
+ };
80
+ readonly skill: {
81
+ readonly default: "";
82
+ };
83
+ };
84
+ readonly content: "none";
85
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
86
+ };
87
+ list: {
88
+ config: {
89
+ readonly type: "list";
90
+ readonly propSchema: {
91
+ readonly listType: {
92
+ readonly default: "";
93
+ };
94
+ readonly sort: {
95
+ readonly default: "{}";
96
+ };
97
+ readonly filter: {
98
+ readonly default: "{}";
99
+ };
100
+ readonly filterOptions: {
101
+ readonly default: "{}";
102
+ };
103
+ readonly sortOptions: {
104
+ readonly default: "{}";
105
+ };
106
+ readonly listConfig: {
107
+ readonly default: "{}";
108
+ };
109
+ readonly icon: {
110
+ readonly default: "📋";
111
+ };
112
+ readonly skill: {
113
+ readonly default: "";
114
+ };
115
+ };
116
+ readonly content: "none";
117
+ };
118
+ implementation: _blocknote_core.TiptapBlockImplementation<{
119
+ readonly type: "list";
120
+ readonly propSchema: {
121
+ readonly listType: {
122
+ readonly default: "";
123
+ };
124
+ readonly sort: {
125
+ readonly default: "{}";
126
+ };
127
+ readonly filter: {
128
+ readonly default: "{}";
129
+ };
130
+ readonly filterOptions: {
131
+ readonly default: "{}";
132
+ };
133
+ readonly sortOptions: {
134
+ readonly default: "{}";
135
+ };
136
+ readonly listConfig: {
137
+ readonly default: "{}";
138
+ };
139
+ readonly icon: {
140
+ readonly default: "📋";
141
+ };
142
+ readonly skill: {
143
+ readonly default: "";
144
+ };
145
+ };
146
+ readonly content: "none";
147
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
148
+ };
149
+ enumChecklist: {
150
+ config: {
151
+ readonly type: "enumChecklist";
152
+ readonly propSchema: {
153
+ readonly listType: {
154
+ readonly default: "";
155
+ };
156
+ readonly listConfig: {
157
+ readonly default: "{}";
158
+ };
159
+ readonly selectedIds: {
160
+ readonly default: "[]";
161
+ };
162
+ readonly skill: {
163
+ readonly default: "";
164
+ };
165
+ };
166
+ readonly content: "none";
167
+ };
168
+ implementation: _blocknote_core.TiptapBlockImplementation<{
169
+ readonly type: "enumChecklist";
170
+ readonly propSchema: {
171
+ readonly listType: {
172
+ readonly default: "";
173
+ };
174
+ readonly listConfig: {
175
+ readonly default: "{}";
176
+ };
177
+ readonly selectedIds: {
178
+ readonly default: "[]";
179
+ };
180
+ readonly skill: {
181
+ readonly default: "";
182
+ };
183
+ };
184
+ readonly content: "none";
185
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
186
+ };
187
+ overview: {
188
+ config: {
189
+ readonly type: "overview";
190
+ readonly propSchema: {
191
+ readonly skill: {
192
+ readonly default: "";
193
+ };
194
+ };
195
+ readonly content: "none";
196
+ };
197
+ implementation: _blocknote_core.TiptapBlockImplementation<{
198
+ readonly type: "overview";
199
+ readonly propSchema: {
200
+ readonly skill: {
201
+ readonly default: "";
202
+ };
203
+ };
204
+ readonly content: "none";
205
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
206
+ };
207
+ proposal: {
208
+ config: {
209
+ readonly type: "proposal";
210
+ readonly propSchema: {
211
+ readonly status: {
212
+ readonly default: "draft";
213
+ readonly values: readonly ["draft", "open", "passed", "rejected", "executed", "closed", "execution_failed", "veto_timelock"];
214
+ };
215
+ readonly title: {
216
+ readonly default: "";
217
+ };
218
+ readonly description: {
219
+ readonly default: "";
220
+ };
221
+ readonly icon: {
222
+ readonly default: "file-text";
223
+ };
224
+ readonly proposalId: {
225
+ readonly default: "";
226
+ };
227
+ readonly actions: {
228
+ readonly default: "[]";
229
+ };
230
+ readonly voteEnabled: {
231
+ readonly default: true;
232
+ };
233
+ readonly voteTitle: {
234
+ readonly default: "";
235
+ };
236
+ readonly voteSubtitle: {
237
+ readonly default: "";
238
+ };
239
+ readonly voteIcon: {
240
+ readonly default: "checklist";
241
+ };
242
+ readonly daysLeft: {
243
+ readonly default: 0;
244
+ };
245
+ readonly proposalContractAddress: {
246
+ readonly default: "";
247
+ };
248
+ readonly coreAddress: {
249
+ readonly default: "";
250
+ };
251
+ readonly conditions: {
252
+ readonly default: "";
253
+ };
254
+ readonly ttlAbsoluteDueDate: {
255
+ readonly default: "";
256
+ };
257
+ readonly ttlFromEnablement: {
258
+ readonly default: "";
259
+ };
260
+ readonly ttlFromCommitment: {
261
+ readonly default: "";
262
+ };
263
+ readonly skill: {
264
+ readonly default: "";
265
+ };
266
+ };
267
+ readonly content: "none";
268
+ };
269
+ implementation: _blocknote_core.TiptapBlockImplementation<{
270
+ readonly type: "proposal";
271
+ readonly propSchema: {
272
+ readonly status: {
273
+ readonly default: "draft";
274
+ readonly values: readonly ["draft", "open", "passed", "rejected", "executed", "closed", "execution_failed", "veto_timelock"];
275
+ };
276
+ readonly title: {
277
+ readonly default: "";
278
+ };
279
+ readonly description: {
280
+ readonly default: "";
281
+ };
282
+ readonly icon: {
283
+ readonly default: "file-text";
284
+ };
285
+ readonly proposalId: {
286
+ readonly default: "";
287
+ };
288
+ readonly actions: {
289
+ readonly default: "[]";
290
+ };
291
+ readonly voteEnabled: {
292
+ readonly default: true;
293
+ };
294
+ readonly voteTitle: {
295
+ readonly default: "";
296
+ };
297
+ readonly voteSubtitle: {
298
+ readonly default: "";
299
+ };
300
+ readonly voteIcon: {
301
+ readonly default: "checklist";
302
+ };
303
+ readonly daysLeft: {
304
+ readonly default: 0;
305
+ };
306
+ readonly proposalContractAddress: {
307
+ readonly default: "";
308
+ };
309
+ readonly coreAddress: {
310
+ readonly default: "";
311
+ };
312
+ readonly conditions: {
313
+ readonly default: "";
314
+ };
315
+ readonly ttlAbsoluteDueDate: {
316
+ readonly default: "";
317
+ };
318
+ readonly ttlFromEnablement: {
319
+ readonly default: "";
320
+ };
321
+ readonly ttlFromCommitment: {
322
+ readonly default: "";
323
+ };
324
+ readonly skill: {
325
+ readonly default: "";
326
+ };
327
+ };
328
+ readonly content: "none";
329
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
330
+ };
331
+ apiRequest: {
332
+ config: {
333
+ readonly type: "apiRequest";
334
+ readonly propSchema: {
335
+ readonly title: {
336
+ readonly default: "";
337
+ };
338
+ readonly description: {
339
+ readonly default: "";
340
+ };
341
+ readonly icon: {
342
+ readonly default: "square-check";
343
+ };
344
+ readonly endpoint: {
345
+ readonly default: "";
346
+ };
347
+ readonly method: {
348
+ readonly default: "GET";
349
+ };
350
+ readonly headers: {
351
+ readonly default: "[]";
352
+ };
353
+ readonly body: {
354
+ readonly default: "[]";
355
+ };
356
+ readonly response: {
357
+ readonly default: "";
358
+ };
359
+ readonly status: {
360
+ readonly default: "idle";
361
+ };
362
+ readonly responseSchema: {
363
+ readonly default: "";
364
+ };
365
+ readonly conditions: {
366
+ readonly default: "";
367
+ };
368
+ readonly ttlAbsoluteDueDate: {
369
+ readonly default: "";
370
+ };
371
+ readonly ttlFromEnablement: {
372
+ readonly default: "";
373
+ };
374
+ readonly ttlFromCommitment: {
375
+ readonly default: "";
376
+ };
377
+ readonly assignment: {
378
+ readonly default: string;
379
+ };
380
+ readonly commitment: {
381
+ readonly default: string;
382
+ };
383
+ readonly skill: {
384
+ readonly default: "";
385
+ };
386
+ };
387
+ readonly content: "none";
388
+ };
389
+ implementation: _blocknote_core.TiptapBlockImplementation<{
390
+ readonly type: "apiRequest";
391
+ readonly propSchema: {
392
+ readonly title: {
393
+ readonly default: "";
394
+ };
395
+ readonly description: {
396
+ readonly default: "";
397
+ };
398
+ readonly icon: {
399
+ readonly default: "square-check";
400
+ };
401
+ readonly endpoint: {
402
+ readonly default: "";
403
+ };
404
+ readonly method: {
405
+ readonly default: "GET";
406
+ };
407
+ readonly headers: {
408
+ readonly default: "[]";
409
+ };
410
+ readonly body: {
411
+ readonly default: "[]";
412
+ };
413
+ readonly response: {
414
+ readonly default: "";
415
+ };
416
+ readonly status: {
417
+ readonly default: "idle";
418
+ };
419
+ readonly responseSchema: {
420
+ readonly default: "";
421
+ };
422
+ readonly conditions: {
423
+ readonly default: "";
424
+ };
425
+ readonly ttlAbsoluteDueDate: {
426
+ readonly default: "";
427
+ };
428
+ readonly ttlFromEnablement: {
429
+ readonly default: "";
430
+ };
431
+ readonly ttlFromCommitment: {
432
+ readonly default: "";
433
+ };
434
+ readonly assignment: {
435
+ readonly default: string;
436
+ };
437
+ readonly commitment: {
438
+ readonly default: string;
439
+ };
440
+ readonly skill: {
441
+ readonly default: "";
442
+ };
443
+ };
444
+ readonly content: "none";
445
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
446
+ };
447
+ notify: {
448
+ config: {
449
+ readonly type: "notify";
450
+ readonly propSchema: {
451
+ readonly title: {
452
+ readonly default: "";
453
+ };
454
+ readonly description: {
455
+ readonly default: "";
456
+ };
457
+ readonly icon: {
458
+ readonly default: "bell";
459
+ };
460
+ readonly channel: {
461
+ readonly default: "email";
462
+ };
463
+ readonly to: {
464
+ readonly default: "[]";
465
+ };
466
+ readonly cc: {
467
+ readonly default: "[]";
468
+ };
469
+ readonly bcc: {
470
+ readonly default: "[]";
471
+ };
472
+ readonly subject: {
473
+ readonly default: "";
474
+ };
475
+ readonly body: {
476
+ readonly default: "";
477
+ };
478
+ readonly bodyType: {
479
+ readonly default: "text";
480
+ };
481
+ readonly from: {
482
+ readonly default: "";
483
+ };
484
+ readonly replyTo: {
485
+ readonly default: "";
486
+ };
487
+ readonly templateId: {
488
+ readonly default: "";
489
+ };
490
+ readonly templateVariables: {
491
+ readonly default: "{}";
492
+ };
493
+ readonly status: {
494
+ readonly default: "idle";
495
+ };
496
+ readonly messageId: {
497
+ readonly default: "";
498
+ };
499
+ readonly sentAt: {
500
+ readonly default: "";
501
+ };
502
+ readonly errorMessage: {
503
+ readonly default: "";
504
+ };
505
+ readonly conditions: {
506
+ readonly default: "";
507
+ };
508
+ readonly skill: {
509
+ readonly default: "";
510
+ };
511
+ };
512
+ readonly content: "none";
513
+ };
514
+ implementation: _blocknote_core.TiptapBlockImplementation<{
515
+ readonly type: "notify";
516
+ readonly propSchema: {
517
+ readonly title: {
518
+ readonly default: "";
519
+ };
520
+ readonly description: {
521
+ readonly default: "";
522
+ };
523
+ readonly icon: {
524
+ readonly default: "bell";
525
+ };
526
+ readonly channel: {
527
+ readonly default: "email";
528
+ };
529
+ readonly to: {
530
+ readonly default: "[]";
531
+ };
532
+ readonly cc: {
533
+ readonly default: "[]";
534
+ };
535
+ readonly bcc: {
536
+ readonly default: "[]";
537
+ };
538
+ readonly subject: {
539
+ readonly default: "";
540
+ };
541
+ readonly body: {
542
+ readonly default: "";
543
+ };
544
+ readonly bodyType: {
545
+ readonly default: "text";
546
+ };
547
+ readonly from: {
548
+ readonly default: "";
549
+ };
550
+ readonly replyTo: {
551
+ readonly default: "";
552
+ };
553
+ readonly templateId: {
554
+ readonly default: "";
555
+ };
556
+ readonly templateVariables: {
557
+ readonly default: "{}";
558
+ };
559
+ readonly status: {
560
+ readonly default: "idle";
561
+ };
562
+ readonly messageId: {
563
+ readonly default: "";
564
+ };
565
+ readonly sentAt: {
566
+ readonly default: "";
567
+ };
568
+ readonly errorMessage: {
569
+ readonly default: "";
570
+ };
571
+ readonly conditions: {
572
+ readonly default: "";
573
+ };
574
+ readonly skill: {
575
+ readonly default: "";
576
+ };
577
+ };
578
+ readonly content: "none";
579
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
580
+ };
581
+ claim: {
582
+ config: {
583
+ readonly type: "claim";
584
+ readonly propSchema: {
585
+ readonly title: {
586
+ readonly default: "";
587
+ };
588
+ readonly description: {
589
+ readonly default: "";
590
+ };
591
+ readonly icon: {
592
+ readonly default: "square-check";
593
+ };
594
+ readonly deedDid: {
595
+ readonly default: "";
596
+ };
597
+ readonly selectedCollections: {
598
+ readonly default: "[]";
599
+ };
600
+ readonly adminAddress: {
601
+ readonly default: "";
602
+ };
603
+ readonly claimCollectionId: {
604
+ readonly default: "";
605
+ };
606
+ readonly parentCapability: {
607
+ readonly default: "";
608
+ };
609
+ readonly authorisedActors: {
610
+ readonly default: "";
611
+ };
612
+ readonly linkedClaimCollectionId: {
613
+ readonly default: "";
614
+ };
615
+ readonly ttlAbsoluteDueDate: {
616
+ readonly default: "";
617
+ };
618
+ readonly ttlFromEnablement: {
619
+ readonly default: "";
620
+ };
621
+ readonly ttlFromCommitment: {
622
+ readonly default: "";
623
+ };
624
+ readonly activationUpstreamNodeId: {
625
+ readonly default: "";
626
+ };
627
+ readonly activationRequiredStatus: {
628
+ readonly default: "";
629
+ };
630
+ readonly activationRequireAuthorisedActor: {
631
+ readonly default: false;
632
+ };
633
+ readonly assignment: {
634
+ readonly default: string;
635
+ };
636
+ readonly commitment: {
637
+ readonly default: string;
638
+ };
639
+ readonly skill: {
640
+ readonly default: "";
641
+ };
642
+ };
643
+ readonly content: "none";
644
+ };
645
+ implementation: _blocknote_core.TiptapBlockImplementation<{
646
+ readonly type: "claim";
647
+ readonly propSchema: {
648
+ readonly title: {
649
+ readonly default: "";
650
+ };
651
+ readonly description: {
652
+ readonly default: "";
653
+ };
654
+ readonly icon: {
655
+ readonly default: "square-check";
656
+ };
657
+ readonly deedDid: {
658
+ readonly default: "";
659
+ };
660
+ readonly selectedCollections: {
661
+ readonly default: "[]";
662
+ };
663
+ readonly adminAddress: {
664
+ readonly default: "";
665
+ };
666
+ readonly claimCollectionId: {
667
+ readonly default: "";
668
+ };
669
+ readonly parentCapability: {
670
+ readonly default: "";
671
+ };
672
+ readonly authorisedActors: {
673
+ readonly default: "";
674
+ };
675
+ readonly linkedClaimCollectionId: {
676
+ readonly default: "";
677
+ };
678
+ readonly ttlAbsoluteDueDate: {
679
+ readonly default: "";
680
+ };
681
+ readonly ttlFromEnablement: {
682
+ readonly default: "";
683
+ };
684
+ readonly ttlFromCommitment: {
685
+ readonly default: "";
686
+ };
687
+ readonly activationUpstreamNodeId: {
688
+ readonly default: "";
689
+ };
690
+ readonly activationRequiredStatus: {
691
+ readonly default: "";
692
+ };
693
+ readonly activationRequireAuthorisedActor: {
694
+ readonly default: false;
695
+ };
696
+ readonly assignment: {
697
+ readonly default: string;
698
+ };
699
+ readonly commitment: {
700
+ readonly default: string;
701
+ };
702
+ readonly skill: {
703
+ readonly default: "";
704
+ };
705
+ };
706
+ readonly content: "none";
707
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
708
+ };
709
+ evaluator: {
710
+ config: {
711
+ readonly type: "evaluator";
712
+ readonly propSchema: {
713
+ readonly title: {
714
+ readonly default: "";
715
+ };
716
+ readonly description: {
717
+ readonly default: "";
718
+ };
719
+ readonly icon: {
720
+ readonly default: "checklist";
721
+ };
722
+ readonly deedDid: {
723
+ readonly default: "";
724
+ };
725
+ readonly selectedCollections: {
726
+ readonly default: "[]";
727
+ };
728
+ readonly adminAddress: {
729
+ readonly default: "";
730
+ };
731
+ readonly ttlAbsoluteDueDate: {
732
+ readonly default: "";
733
+ };
734
+ readonly ttlFromEnablement: {
735
+ readonly default: "";
736
+ };
737
+ readonly ttlFromCommitment: {
738
+ readonly default: "";
739
+ };
740
+ readonly assignment: {
741
+ readonly default: string;
742
+ };
743
+ readonly commitment: {
744
+ readonly default: string;
745
+ };
746
+ readonly skill: {
747
+ readonly default: "";
748
+ };
749
+ };
750
+ readonly content: "none";
751
+ };
752
+ implementation: _blocknote_core.TiptapBlockImplementation<{
753
+ readonly type: "evaluator";
754
+ readonly propSchema: {
755
+ readonly title: {
756
+ readonly default: "";
757
+ };
758
+ readonly description: {
759
+ readonly default: "";
760
+ };
761
+ readonly icon: {
762
+ readonly default: "checklist";
763
+ };
764
+ readonly deedDid: {
765
+ readonly default: "";
766
+ };
767
+ readonly selectedCollections: {
768
+ readonly default: "[]";
769
+ };
770
+ readonly adminAddress: {
771
+ readonly default: "";
772
+ };
773
+ readonly ttlAbsoluteDueDate: {
774
+ readonly default: "";
775
+ };
776
+ readonly ttlFromEnablement: {
777
+ readonly default: "";
778
+ };
779
+ readonly ttlFromCommitment: {
780
+ readonly default: "";
781
+ };
782
+ readonly assignment: {
783
+ readonly default: string;
784
+ };
785
+ readonly commitment: {
786
+ readonly default: string;
787
+ };
788
+ readonly skill: {
789
+ readonly default: "";
790
+ };
791
+ };
792
+ readonly content: "none";
793
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
794
+ };
795
+ domainCreator: {
796
+ config: {
797
+ readonly type: "domainCreator";
798
+ readonly propSchema: {
799
+ readonly title: {
800
+ readonly default: "";
801
+ };
802
+ readonly description: {
803
+ readonly default: "";
804
+ };
805
+ readonly icon: {
806
+ readonly default: "file-text";
807
+ };
808
+ readonly surveySchema: {
809
+ readonly default: "";
810
+ };
811
+ readonly answers: {
812
+ readonly default: "";
813
+ };
814
+ readonly lastSubmission: {
815
+ readonly default: "";
816
+ };
817
+ readonly entityDid: {
818
+ readonly default: "";
819
+ };
820
+ readonly entityType: {
821
+ readonly default: "";
822
+ };
823
+ readonly skill: {
824
+ readonly default: "";
825
+ };
826
+ };
827
+ readonly content: "none";
828
+ };
829
+ implementation: _blocknote_core.TiptapBlockImplementation<{
830
+ readonly type: "domainCreator";
831
+ readonly propSchema: {
832
+ readonly title: {
833
+ readonly default: "";
834
+ };
835
+ readonly description: {
836
+ readonly default: "";
837
+ };
838
+ readonly icon: {
839
+ readonly default: "file-text";
840
+ };
841
+ readonly surveySchema: {
842
+ readonly default: "";
843
+ };
844
+ readonly answers: {
845
+ readonly default: "";
846
+ };
847
+ readonly lastSubmission: {
848
+ readonly default: "";
849
+ };
850
+ readonly entityDid: {
851
+ readonly default: "";
852
+ };
853
+ readonly entityType: {
854
+ readonly default: "";
855
+ };
856
+ readonly skill: {
857
+ readonly default: "";
858
+ };
859
+ };
860
+ readonly content: "none";
861
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
862
+ };
863
+ email: {
864
+ config: {
865
+ readonly type: "email";
866
+ readonly propSchema: {
867
+ readonly templateName: {
868
+ readonly default: "";
869
+ };
870
+ readonly templateVersion: {
871
+ readonly default: "";
872
+ };
873
+ readonly to: {
874
+ readonly default: "";
875
+ };
876
+ readonly cc: {
877
+ readonly default: "";
878
+ };
879
+ readonly bcc: {
880
+ readonly default: "";
881
+ };
882
+ readonly subject: {
883
+ readonly default: "";
884
+ };
885
+ readonly replyTo: {
886
+ readonly default: "";
887
+ };
888
+ readonly variables: {
889
+ readonly default: "{}";
890
+ };
891
+ readonly extractedVariables: {
892
+ readonly default: "[]";
893
+ };
894
+ readonly title: {
895
+ readonly default: "Send Email";
896
+ };
897
+ readonly description: {
898
+ readonly default: "";
899
+ };
900
+ readonly icon: {
901
+ readonly default: "mail";
902
+ };
903
+ readonly buttonLabel: {
904
+ readonly default: "Send Email";
905
+ };
906
+ readonly status: {
907
+ readonly default: "idle";
908
+ };
909
+ readonly lastSentAt: {
910
+ readonly default: "";
911
+ };
912
+ readonly lastMessageId: {
913
+ readonly default: "";
914
+ };
915
+ readonly error: {
916
+ readonly default: "";
917
+ };
918
+ readonly conditions: {
919
+ readonly default: "";
920
+ };
921
+ readonly skill: {
922
+ readonly default: "";
923
+ };
924
+ };
925
+ readonly content: "none";
926
+ };
927
+ implementation: _blocknote_core.TiptapBlockImplementation<{
928
+ readonly type: "email";
929
+ readonly propSchema: {
930
+ readonly templateName: {
931
+ readonly default: "";
932
+ };
933
+ readonly templateVersion: {
934
+ readonly default: "";
935
+ };
936
+ readonly to: {
937
+ readonly default: "";
938
+ };
939
+ readonly cc: {
940
+ readonly default: "";
941
+ };
942
+ readonly bcc: {
943
+ readonly default: "";
944
+ };
945
+ readonly subject: {
946
+ readonly default: "";
947
+ };
948
+ readonly replyTo: {
949
+ readonly default: "";
950
+ };
951
+ readonly variables: {
952
+ readonly default: "{}";
953
+ };
954
+ readonly extractedVariables: {
955
+ readonly default: "[]";
956
+ };
957
+ readonly title: {
958
+ readonly default: "Send Email";
959
+ };
960
+ readonly description: {
961
+ readonly default: "";
962
+ };
963
+ readonly icon: {
964
+ readonly default: "mail";
965
+ };
966
+ readonly buttonLabel: {
967
+ readonly default: "Send Email";
968
+ };
969
+ readonly status: {
970
+ readonly default: "idle";
971
+ };
972
+ readonly lastSentAt: {
973
+ readonly default: "";
974
+ };
975
+ readonly lastMessageId: {
976
+ readonly default: "";
977
+ };
978
+ readonly error: {
979
+ readonly default: "";
980
+ };
981
+ readonly conditions: {
982
+ readonly default: "";
983
+ };
984
+ readonly skill: {
985
+ readonly default: "";
986
+ };
987
+ };
988
+ readonly content: "none";
989
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
990
+ };
991
+ visualization: {
992
+ config: {
993
+ readonly type: "visualization";
994
+ readonly propSchema: {
995
+ readonly vizType: {
996
+ readonly default: "";
997
+ };
998
+ readonly config: {
999
+ readonly default: "{}";
1000
+ };
1001
+ readonly title: {
1002
+ readonly default: "";
1003
+ };
1004
+ readonly preferences: {
1005
+ readonly default: "{}";
1006
+ };
1007
+ readonly skill: {
1008
+ readonly default: "";
1009
+ };
1010
+ };
1011
+ readonly content: "none";
1012
+ };
1013
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1014
+ readonly type: "visualization";
1015
+ readonly propSchema: {
1016
+ readonly vizType: {
1017
+ readonly default: "";
1018
+ };
1019
+ readonly config: {
1020
+ readonly default: "{}";
1021
+ };
1022
+ readonly title: {
1023
+ readonly default: "";
1024
+ };
1025
+ readonly preferences: {
1026
+ readonly default: "{}";
1027
+ };
1028
+ readonly skill: {
1029
+ readonly default: "";
1030
+ };
1031
+ };
1032
+ readonly content: "none";
1033
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1034
+ };
1035
+ dynamicList: {
1036
+ config: {
1037
+ readonly type: "dynamicList";
1038
+ readonly propSchema: {
1039
+ readonly listId: {
1040
+ readonly default: "";
1041
+ };
1042
+ readonly title: {
1043
+ readonly default: "";
1044
+ };
1045
+ readonly columns: {
1046
+ readonly default: "[]";
1047
+ };
1048
+ readonly dataSource: {
1049
+ readonly default: "{}";
1050
+ };
1051
+ readonly snapshot: {
1052
+ readonly default: "";
1053
+ };
1054
+ readonly snapshotTimestamp: {
1055
+ readonly default: "";
1056
+ };
1057
+ readonly panelDescription: {
1058
+ readonly default: "";
1059
+ };
1060
+ readonly actions: {
1061
+ readonly default: "[]";
1062
+ };
1063
+ readonly skill: {
1064
+ readonly default: "";
1065
+ };
1066
+ };
1067
+ readonly content: "none";
1068
+ };
1069
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1070
+ readonly type: "dynamicList";
1071
+ readonly propSchema: {
1072
+ readonly listId: {
1073
+ readonly default: "";
1074
+ };
1075
+ readonly title: {
1076
+ readonly default: "";
1077
+ };
1078
+ readonly columns: {
1079
+ readonly default: "[]";
1080
+ };
1081
+ readonly dataSource: {
1082
+ readonly default: "{}";
1083
+ };
1084
+ readonly snapshot: {
1085
+ readonly default: "";
1086
+ };
1087
+ readonly snapshotTimestamp: {
1088
+ readonly default: "";
1089
+ };
1090
+ readonly panelDescription: {
1091
+ readonly default: "";
1092
+ };
1093
+ readonly actions: {
1094
+ readonly default: "[]";
1095
+ };
1096
+ readonly skill: {
1097
+ readonly default: "";
1098
+ };
1099
+ };
1100
+ readonly content: "none";
1101
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1102
+ };
1103
+ protocolSelector: {
1104
+ config: {
1105
+ readonly type: "protocolSelector";
1106
+ readonly propSchema: {
1107
+ readonly title: {
1108
+ readonly default: "";
1109
+ };
1110
+ readonly description: {
1111
+ readonly default: "";
1112
+ };
1113
+ readonly icon: {
1114
+ readonly default: "git-branch";
1115
+ };
1116
+ readonly protocolDids: {
1117
+ readonly default: "[]";
1118
+ };
1119
+ readonly selectedProtocolDid: {
1120
+ readonly default: "";
1121
+ };
1122
+ readonly selectedProtocolName: {
1123
+ readonly default: "";
1124
+ };
1125
+ readonly selectedProtocolType: {
1126
+ readonly default: "";
1127
+ };
1128
+ readonly status: {
1129
+ readonly default: "pending";
1130
+ };
1131
+ readonly conditions: {
1132
+ readonly default: "";
1133
+ };
1134
+ readonly skill: {
1135
+ readonly default: "";
1136
+ };
1137
+ };
1138
+ readonly content: "none";
1139
+ };
1140
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1141
+ readonly type: "protocolSelector";
1142
+ readonly propSchema: {
1143
+ readonly title: {
1144
+ readonly default: "";
1145
+ };
1146
+ readonly description: {
1147
+ readonly default: "";
1148
+ };
1149
+ readonly icon: {
1150
+ readonly default: "git-branch";
1151
+ };
1152
+ readonly protocolDids: {
1153
+ readonly default: "[]";
1154
+ };
1155
+ readonly selectedProtocolDid: {
1156
+ readonly default: "";
1157
+ };
1158
+ readonly selectedProtocolName: {
1159
+ readonly default: "";
1160
+ };
1161
+ readonly selectedProtocolType: {
1162
+ readonly default: "";
1163
+ };
1164
+ readonly status: {
1165
+ readonly default: "pending";
1166
+ };
1167
+ readonly conditions: {
1168
+ readonly default: "";
1169
+ };
1170
+ readonly skill: {
1171
+ readonly default: "";
1172
+ };
1173
+ };
1174
+ readonly content: "none";
1175
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1176
+ };
1177
+ form: {
1178
+ config: {
1179
+ readonly type: "form";
1180
+ readonly propSchema: {
1181
+ readonly title: {
1182
+ readonly default: "";
1183
+ };
1184
+ readonly description: {
1185
+ readonly default: "";
1186
+ };
1187
+ readonly icon: {
1188
+ readonly default: "checklist";
1189
+ };
1190
+ readonly surveySchema: {
1191
+ readonly default: "";
1192
+ };
1193
+ readonly answers: {
1194
+ readonly default: "";
1195
+ };
1196
+ readonly status: {
1197
+ readonly default: "pending";
1198
+ };
1199
+ readonly completedAt: {
1200
+ readonly default: "";
1201
+ };
1202
+ readonly skill: {
1203
+ readonly default: "";
1204
+ };
1205
+ };
1206
+ readonly content: "none";
1207
+ };
1208
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1209
+ readonly type: "form";
1210
+ readonly propSchema: {
1211
+ readonly title: {
1212
+ readonly default: "";
1213
+ };
1214
+ readonly description: {
1215
+ readonly default: "";
1216
+ };
1217
+ readonly icon: {
1218
+ readonly default: "checklist";
1219
+ };
1220
+ readonly surveySchema: {
1221
+ readonly default: "";
1222
+ };
1223
+ readonly answers: {
1224
+ readonly default: "";
1225
+ };
1226
+ readonly status: {
1227
+ readonly default: "pending";
1228
+ };
1229
+ readonly completedAt: {
1230
+ readonly default: "";
1231
+ };
1232
+ readonly skill: {
1233
+ readonly default: "";
1234
+ };
1235
+ };
1236
+ readonly content: "none";
1237
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1238
+ };
1239
+ domainCreatorSign: {
1240
+ config: {
1241
+ readonly type: "domainCreatorSign";
1242
+ readonly propSchema: {
1243
+ readonly title: {
1244
+ readonly default: "";
1245
+ };
1246
+ readonly description: {
1247
+ readonly default: "";
1248
+ };
1249
+ readonly icon: {
1250
+ readonly default: "feather";
1251
+ };
1252
+ readonly domainCardData: {
1253
+ readonly default: "{}";
1254
+ };
1255
+ readonly entityType: {
1256
+ readonly default: "";
1257
+ };
1258
+ readonly status: {
1259
+ readonly default: "pending";
1260
+ };
1261
+ readonly entityDid: {
1262
+ readonly default: "";
1263
+ };
1264
+ readonly transactionHash: {
1265
+ readonly default: "";
1266
+ };
1267
+ readonly errorMessage: {
1268
+ readonly default: "";
1269
+ };
1270
+ readonly linkedEntities: {
1271
+ readonly default: "[]";
1272
+ };
1273
+ readonly ttlAbsoluteDueDate: {
1274
+ readonly default: "";
1275
+ };
1276
+ readonly ttlFromEnablement: {
1277
+ readonly default: "";
1278
+ };
1279
+ readonly ttlFromCommitment: {
1280
+ readonly default: "";
1281
+ };
1282
+ readonly assignment: {
1283
+ readonly default: string;
1284
+ };
1285
+ readonly commitment: {
1286
+ readonly default: string;
1287
+ };
1288
+ readonly skill: {
1289
+ readonly default: "";
1290
+ };
1291
+ };
1292
+ readonly content: "none";
1293
+ };
1294
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1295
+ readonly type: "domainCreatorSign";
1296
+ readonly propSchema: {
1297
+ readonly title: {
1298
+ readonly default: "";
1299
+ };
1300
+ readonly description: {
1301
+ readonly default: "";
1302
+ };
1303
+ readonly icon: {
1304
+ readonly default: "feather";
1305
+ };
1306
+ readonly domainCardData: {
1307
+ readonly default: "{}";
1308
+ };
1309
+ readonly entityType: {
1310
+ readonly default: "";
1311
+ };
1312
+ readonly status: {
1313
+ readonly default: "pending";
1314
+ };
1315
+ readonly entityDid: {
1316
+ readonly default: "";
1317
+ };
1318
+ readonly transactionHash: {
1319
+ readonly default: "";
1320
+ };
1321
+ readonly errorMessage: {
1322
+ readonly default: "";
1323
+ };
1324
+ readonly linkedEntities: {
1325
+ readonly default: "[]";
1326
+ };
1327
+ readonly ttlAbsoluteDueDate: {
1328
+ readonly default: "";
1329
+ };
1330
+ readonly ttlFromEnablement: {
1331
+ readonly default: "";
1332
+ };
1333
+ readonly ttlFromCommitment: {
1334
+ readonly default: "";
1335
+ };
1336
+ readonly assignment: {
1337
+ readonly default: string;
1338
+ };
1339
+ readonly commitment: {
1340
+ readonly default: string;
1341
+ };
1342
+ readonly skill: {
1343
+ readonly default: "";
1344
+ };
1345
+ };
1346
+ readonly content: "none";
1347
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1348
+ };
1349
+ domainCardViewer: {
1350
+ config: {
1351
+ readonly type: "domainCardViewer";
1352
+ readonly propSchema: {
1353
+ readonly title: {
1354
+ readonly default: "";
1355
+ };
1356
+ readonly description: {
1357
+ readonly default: "";
1358
+ };
1359
+ readonly icon: {
1360
+ readonly default: "dots-circle";
1361
+ };
1362
+ readonly domainPreviewData: {
1363
+ readonly default: "{}";
1364
+ };
1365
+ readonly domainCardData: {
1366
+ readonly default: "{}";
1367
+ };
1368
+ readonly status: {
1369
+ readonly default: "pending";
1370
+ };
1371
+ readonly loadingMessage: {
1372
+ readonly default: "";
1373
+ };
1374
+ readonly errorMessage: {
1375
+ readonly default: "";
1376
+ };
1377
+ readonly skill: {
1378
+ readonly default: "";
1379
+ };
1380
+ };
1381
+ readonly content: "none";
1382
+ };
1383
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1384
+ readonly type: "domainCardViewer";
1385
+ readonly propSchema: {
1386
+ readonly title: {
1387
+ readonly default: "";
1388
+ };
1389
+ readonly description: {
1390
+ readonly default: "";
1391
+ };
1392
+ readonly icon: {
1393
+ readonly default: "dots-circle";
1394
+ };
1395
+ readonly domainPreviewData: {
1396
+ readonly default: "{}";
1397
+ };
1398
+ readonly domainCardData: {
1399
+ readonly default: "{}";
1400
+ };
1401
+ readonly status: {
1402
+ readonly default: "pending";
1403
+ };
1404
+ readonly loadingMessage: {
1405
+ readonly default: "";
1406
+ };
1407
+ readonly errorMessage: {
1408
+ readonly default: "";
1409
+ };
1410
+ readonly skill: {
1411
+ readonly default: "";
1412
+ };
1413
+ };
1414
+ readonly content: "none";
1415
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1416
+ };
1417
+ governanceGroup: {
1418
+ config: {
1419
+ readonly type: "governanceGroup";
1420
+ readonly propSchema: {
1421
+ readonly title: {
1422
+ readonly default: "";
1423
+ };
1424
+ readonly description: {
1425
+ readonly default: "";
1426
+ };
1427
+ readonly icon: {
1428
+ readonly default: "users";
1429
+ };
1430
+ readonly groupType: {
1431
+ readonly default: "";
1432
+ };
1433
+ readonly surveySchema: {
1434
+ readonly default: "";
1435
+ };
1436
+ readonly answers: {
1437
+ readonly default: "";
1438
+ };
1439
+ readonly lastSubmission: {
1440
+ readonly default: "";
1441
+ };
1442
+ readonly coreAddress: {
1443
+ readonly default: "";
1444
+ };
1445
+ readonly groupAddress: {
1446
+ readonly default: "";
1447
+ };
1448
+ readonly afterCreate: {
1449
+ readonly default: "";
1450
+ };
1451
+ readonly hookedActions: {
1452
+ readonly default: "";
1453
+ };
1454
+ readonly skill: {
1455
+ readonly default: "";
1456
+ };
1457
+ };
1458
+ readonly content: "none";
1459
+ };
1460
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1461
+ readonly type: "governanceGroup";
1462
+ readonly propSchema: {
1463
+ readonly title: {
1464
+ readonly default: "";
1465
+ };
1466
+ readonly description: {
1467
+ readonly default: "";
1468
+ };
1469
+ readonly icon: {
1470
+ readonly default: "users";
1471
+ };
1472
+ readonly groupType: {
1473
+ readonly default: "";
1474
+ };
1475
+ readonly surveySchema: {
1476
+ readonly default: "";
1477
+ };
1478
+ readonly answers: {
1479
+ readonly default: "";
1480
+ };
1481
+ readonly lastSubmission: {
1482
+ readonly default: "";
1483
+ };
1484
+ readonly coreAddress: {
1485
+ readonly default: "";
1486
+ };
1487
+ readonly groupAddress: {
1488
+ readonly default: "";
1489
+ };
1490
+ readonly afterCreate: {
1491
+ readonly default: "";
1492
+ };
1493
+ readonly hookedActions: {
1494
+ readonly default: "";
1495
+ };
1496
+ readonly skill: {
1497
+ readonly default: "";
1498
+ };
1499
+ };
1500
+ readonly content: "none";
1501
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1502
+ };
1503
+ flowLink: {
1504
+ config: {
1505
+ readonly type: "flowLink";
1506
+ readonly propSchema: {
1507
+ readonly title: {
1508
+ readonly default: "";
1509
+ };
1510
+ readonly description: {
1511
+ readonly default: "";
1512
+ };
1513
+ readonly icon: {
1514
+ readonly default: "external-link";
1515
+ };
1516
+ readonly links: {
1517
+ readonly default: "[]";
1518
+ };
1519
+ readonly conditions: {
1520
+ readonly default: "";
1521
+ };
1522
+ readonly skill: {
1523
+ readonly default: "";
1524
+ };
1525
+ };
1526
+ readonly content: "none";
1527
+ };
1528
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1529
+ readonly type: "flowLink";
1530
+ readonly propSchema: {
1531
+ readonly title: {
1532
+ readonly default: "";
1533
+ };
1534
+ readonly description: {
1535
+ readonly default: "";
1536
+ };
1537
+ readonly icon: {
1538
+ readonly default: "external-link";
1539
+ };
1540
+ readonly links: {
1541
+ readonly default: "[]";
1542
+ };
1543
+ readonly conditions: {
1544
+ readonly default: "";
1545
+ };
1546
+ readonly skill: {
1547
+ readonly default: "";
1548
+ };
1549
+ };
1550
+ readonly content: "none";
1551
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1552
+ };
1553
+ action: {
1554
+ config: {
1555
+ readonly type: "action";
1556
+ readonly propSchema: {
1557
+ readonly title: {
1558
+ readonly default: "";
1559
+ };
1560
+ readonly description: {
1561
+ readonly default: "";
1562
+ };
1563
+ readonly icon: {
1564
+ readonly default: "bolt";
1565
+ };
1566
+ readonly actionType: {
1567
+ readonly default: "";
1568
+ };
1569
+ readonly inputs: {
1570
+ readonly default: "{}";
1571
+ };
1572
+ readonly requiresConfirmation: {
1573
+ readonly default: "";
1574
+ };
1575
+ readonly skill: {
1576
+ readonly default: "";
1577
+ };
1578
+ readonly conditions: {
1579
+ readonly default: "";
1580
+ };
1581
+ readonly parentCapability: {
1582
+ readonly default: "";
1583
+ };
1584
+ readonly authorisedActors: {
1585
+ readonly default: "";
1586
+ };
1587
+ readonly activationUpstreamNodeId: {
1588
+ readonly default: "";
1589
+ };
1590
+ readonly activationRequiredStatus: {
1591
+ readonly default: "";
1592
+ };
1593
+ readonly activationRequireAuthorisedActor: {
1594
+ readonly default: false;
1595
+ };
1596
+ readonly ttlAbsoluteDueDate: {
1597
+ readonly default: "";
1598
+ };
1599
+ readonly ttlFromEnablement: {
1600
+ readonly default: "";
1601
+ };
1602
+ readonly ttlFromCommitment: {
1603
+ readonly default: "";
1604
+ };
1605
+ readonly assignment: {
1606
+ readonly default: string;
1607
+ };
1608
+ readonly commitment: {
1609
+ readonly default: string;
1610
+ };
1611
+ readonly paymentStatus: {
1612
+ readonly default: "";
1613
+ };
1614
+ readonly transactionId: {
1615
+ readonly default: "";
1616
+ };
1617
+ readonly paymentProposal: {
1618
+ readonly default: "";
1619
+ };
1620
+ readonly paymentSummary: {
1621
+ readonly default: "";
1622
+ };
1623
+ readonly paymentError: {
1624
+ readonly default: "";
1625
+ };
1626
+ };
1627
+ readonly content: "none";
1628
+ };
1629
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1630
+ readonly type: "action";
1631
+ readonly propSchema: {
1632
+ readonly title: {
1633
+ readonly default: "";
1634
+ };
1635
+ readonly description: {
1636
+ readonly default: "";
1637
+ };
1638
+ readonly icon: {
1639
+ readonly default: "bolt";
1640
+ };
1641
+ readonly actionType: {
1642
+ readonly default: "";
1643
+ };
1644
+ readonly inputs: {
1645
+ readonly default: "{}";
1646
+ };
1647
+ readonly requiresConfirmation: {
1648
+ readonly default: "";
1649
+ };
1650
+ readonly skill: {
1651
+ readonly default: "";
1652
+ };
1653
+ readonly conditions: {
1654
+ readonly default: "";
1655
+ };
1656
+ readonly parentCapability: {
1657
+ readonly default: "";
1658
+ };
1659
+ readonly authorisedActors: {
1660
+ readonly default: "";
1661
+ };
1662
+ readonly activationUpstreamNodeId: {
1663
+ readonly default: "";
1664
+ };
1665
+ readonly activationRequiredStatus: {
1666
+ readonly default: "";
1667
+ };
1668
+ readonly activationRequireAuthorisedActor: {
1669
+ readonly default: false;
1670
+ };
1671
+ readonly ttlAbsoluteDueDate: {
1672
+ readonly default: "";
1673
+ };
1674
+ readonly ttlFromEnablement: {
1675
+ readonly default: "";
1676
+ };
1677
+ readonly ttlFromCommitment: {
1678
+ readonly default: "";
1679
+ };
1680
+ readonly assignment: {
1681
+ readonly default: string;
1682
+ };
1683
+ readonly commitment: {
1684
+ readonly default: string;
1685
+ };
1686
+ readonly paymentStatus: {
1687
+ readonly default: "";
1688
+ };
1689
+ readonly transactionId: {
1690
+ readonly default: "";
1691
+ };
1692
+ readonly paymentProposal: {
1693
+ readonly default: "";
1694
+ };
1695
+ readonly paymentSummary: {
1696
+ readonly default: "";
1697
+ };
1698
+ readonly paymentError: {
1699
+ readonly default: "";
1700
+ };
1701
+ };
1702
+ readonly content: "none";
1703
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1704
+ };
1705
+ location: {
1706
+ config: {
1707
+ readonly type: "location";
1708
+ readonly propSchema: {
1709
+ readonly title: {
1710
+ readonly default: "";
1711
+ };
1712
+ readonly description: {
1713
+ readonly default: "";
1714
+ };
1715
+ readonly latitude: {
1716
+ readonly default: "";
1717
+ };
1718
+ readonly longitude: {
1719
+ readonly default: "";
1720
+ };
1721
+ readonly skill: {
1722
+ readonly default: "";
1723
+ };
1724
+ };
1725
+ readonly content: "none";
1726
+ };
1727
+ implementation: _blocknote_core.TiptapBlockImplementation<{
1728
+ readonly type: "location";
1729
+ readonly propSchema: {
1730
+ readonly title: {
1731
+ readonly default: "";
1732
+ };
1733
+ readonly description: {
1734
+ readonly default: "";
1735
+ };
1736
+ readonly latitude: {
1737
+ readonly default: "";
1738
+ };
1739
+ readonly longitude: {
1740
+ readonly default: "";
1741
+ };
1742
+ readonly skill: {
1743
+ readonly default: "";
1744
+ };
1745
+ };
1746
+ readonly content: "none";
1747
+ }, any, _blocknote_core.InlineContentSchema, _blocknote_core.StyleSchema>;
1748
+ };
1749
+ };
1750
+ declare const getExtraSlashMenuItems: (editor: any) => {
1751
+ title: string;
1752
+ onItemClick: () => void;
1753
+ aliases: string[];
1754
+ group: string;
1755
+ subtext: string;
1756
+ }[];
1757
+
1758
+ /**
1759
+ * Page metadata stored in Matrix state events
1760
+ * Now stores only URL strings in separate events
1761
+ */
1762
+ interface PageMetadata {
1763
+ /** Cover image URL */
1764
+ cover?: string;
1765
+ /** Icon/logo image URL */
1766
+ icon?: string;
1767
+ /** Cover image vertical position (0-100 percentage) */
1768
+ coverPosition?: number;
1769
+ }
1770
+ /**
1771
+ * Callback type for metadata change subscriptions
1772
+ */
1773
+ type MetadataChangeCallback = (metadata: PageMetadata) => void;
1774
+ /**
1775
+ * Manager for Matrix state events containing page metadata (cover, icon)
1776
+ *
1777
+ * Stores cover and icon as separate state events, each containing only the URL string.
1778
+ */
1779
+ declare class MatrixMetadataManager {
1780
+ private matrixClient;
1781
+ private roomId;
1782
+ private subscribers;
1783
+ private eventHandler;
1784
+ constructor(matrixClient: MatrixClient, roomId: string);
1785
+ /**
1786
+ * Set up Matrix event listener for real-time updates
1787
+ */
1788
+ private setupEventListener;
1789
+ /**
1790
+ * Notify all subscribers of metadata changes
1791
+ */
1792
+ private notifySubscribers;
1793
+ /**
1794
+ * Send metadata to Matrix state events (separate events for cover and icon)
1795
+ *
1796
+ * @param metadata - The metadata to store (only URL strings)
1797
+ * @param permissions - Permission check object
1798
+ * @returns Promise that resolves when state events are sent
1799
+ */
1800
+ setMetadata(metadata: PageMetadata, permissions: {
1801
+ write: boolean;
1802
+ }): Promise<void>;
1803
+ /**
1804
+ * Get current metadata from Matrix state (reads from separate events)
1805
+ *
1806
+ * @returns Current metadata or null if not set
1807
+ */
1808
+ getMetadata(): PageMetadata | null;
1809
+ /**
1810
+ * Subscribe to metadata changes
1811
+ *
1812
+ * @param callback - Function to call when metadata changes
1813
+ * @returns Unsubscribe function
1814
+ */
1815
+ subscribe(callback: MetadataChangeCallback): () => void;
1816
+ /**
1817
+ * Clean up event listeners and subscriptions
1818
+ * Call this when the manager is no longer needed
1819
+ */
1820
+ dispose(): void;
1821
+ }
1822
+
1823
+ type CapabilityURI = string;
1824
+ type DID = string;
1825
+ type ClaimCollectionURI = string;
1826
+ type EvaluationStatus = 'pending' | 'approved' | 'rejected';
1827
+ interface LinkedClaim {
1828
+ collectionId: ClaimCollectionURI;
1829
+ }
1830
+ interface ActivationCondition {
1831
+ upstreamNodeId: string;
1832
+ requiredStatus: EvaluationStatus;
1833
+ requireAuthorisedActor?: boolean;
1834
+ }
1835
+ interface FlowNodeAuthzExtension {
1836
+ parentCapability?: CapabilityURI;
1837
+ authorisedActors?: DID[];
1838
+ linkedClaim?: LinkedClaim;
1839
+ activationCondition?: ActivationCondition;
1840
+ }
1841
+ type NodeState = 'idle' | 'running' | 'completed' | 'failed' | 'cancelled';
1842
+ interface FlowNodeRuntimeState {
1843
+ state?: NodeState;
1844
+ output?: Record<string, any>;
1845
+ executedByDid?: DID;
1846
+ executedAt?: number;
1847
+ invocations?: string[];
1848
+ lastInvocationCid?: string;
1849
+ assignments?: Array<{
1850
+ actorDid: DID;
1851
+ assignedByDid?: DID;
1852
+ at: number;
1853
+ status: 'assigned' | 'accepted' | 'declined';
1854
+ }>;
1855
+ commitments?: Array<{
1856
+ actorDid: DID;
1857
+ at: number;
1858
+ expiresAt?: number;
1859
+ }>;
1860
+ proposals?: Array<{
1861
+ id: string;
1862
+ proposedByDid: DID;
1863
+ proposedAt: number;
1864
+ mode: 'inputs_patch' | 'output_patch';
1865
+ patch: any;
1866
+ rationale?: string;
1867
+ status: 'open' | 'accepted' | 'rejected';
1868
+ decidedByDid?: DID;
1869
+ decidedAt?: number;
1870
+ acceptanceInvocationCid?: string;
1871
+ }>;
1872
+ error?: {
1873
+ message: string;
1874
+ code?: string;
1875
+ at: number;
1876
+ data?: any;
1877
+ };
1878
+ claimId?: string;
1879
+ submittedByDid?: DID;
1880
+ evaluationStatus?: EvaluationStatus;
1881
+ executionTimestamp?: number;
1882
+ derivedUcan?: string;
1883
+ authorisedActorsSnapshot?: DID[];
1884
+ }
1885
+ interface FlowNodeBase {
1886
+ id: string;
1887
+ type: string;
1888
+ props: Record<string, any>;
1889
+ }
1890
+ type FlowNode = FlowNodeBase & FlowNodeAuthzExtension;
1891
+
1892
+ /**
1893
+ * UCAN types for @ixo/ucan integration
1894
+ *
1895
+ * These types support the new invocation-based execution model where:
1896
+ * - Delegations grant permissions (stored as Base64 CAR)
1897
+ * - Invocations exercise permissions (stored for audit trail)
1898
+ */
1899
+ /**
1900
+ * Caveats/constraints for a capability
1901
+ */
1902
+ interface CapabilityCaveats {
1903
+ /** Intent - user-provided description of the purpose of this capability */
1904
+ int?: string;
1905
+ /** Additional custom caveats */
1906
+ [key: string]: unknown;
1907
+ }
1908
+ /**
1909
+ * Capability definition aligned with @ixo/ucan
1910
+ */
1911
+ interface UcanCapability {
1912
+ /** Action that can be performed, e.g., "flow/execute", "flow/block/execute" */
1913
+ can: string;
1914
+ /** Resource URI, e.g., "ixo:flow:abc123", "ixo:flow:abc123:blockId" */
1915
+ with: string;
1916
+ /** Additional constraints/caveats (optional) */
1917
+ nb?: CapabilityCaveats;
1918
+ }
1919
+ /**
1920
+ * Stored delegation in new CAR format or legacy JSON format
1921
+ */
1922
+ interface StoredDelegation {
1923
+ /** CID of the delegation (content-addressed ID) */
1924
+ cid: string;
1925
+ /** Base64-encoded CAR bytes (for 'car' format) or empty string for legacy */
1926
+ delegation: string;
1927
+ /** Issuer DID (for quick lookup without parsing) */
1928
+ issuerDid: string;
1929
+ /** Audience DID (for quick lookup without parsing) */
1930
+ audienceDid: string;
1931
+ /** Capabilities granted (for quick lookup without parsing) */
1932
+ capabilities: UcanCapability[];
1933
+ /** Expiration timestamp in milliseconds (for quick expiry checks) */
1934
+ expiration?: number;
1935
+ /** When this delegation was created (milliseconds) */
1936
+ createdAt: number;
1937
+ /** Format indicator: 'car' for new format, 'legacy' for old JSON format */
1938
+ format: 'car' | 'legacy';
1939
+ /** CIDs of proof delegations in the chain */
1940
+ proofCids: string[];
1941
+ }
1942
+ /**
1943
+ * Stored invocation for audit trail and replay protection
1944
+ */
1945
+ interface StoredInvocation {
1946
+ /** CID of the invocation (content-addressed ID) */
1947
+ cid: string;
1948
+ /** Base64-encoded CAR bytes */
1949
+ invocation: string;
1950
+ /** DID of the invoker */
1951
+ invokerDid: string;
1952
+ /** Capability being invoked */
1953
+ capability: UcanCapability;
1954
+ /** When this invocation was executed (milliseconds) */
1955
+ executedAt: number;
1956
+ /** Flow ID context */
1957
+ flowId: string;
1958
+ /** Block ID if block-level execution */
1959
+ blockId?: string;
1960
+ /** Execution result */
1961
+ result: 'success' | 'failure';
1962
+ /** Error message if failed */
1963
+ error?: string;
1964
+ /** CIDs of the proof delegation chain */
1965
+ proofCids: string[];
1966
+ /** Linked claim ID if this invocation created a claim */
1967
+ claimId?: string;
1968
+ /** Transaction hash if submitted to blockchain */
1969
+ transactionHash?: string;
1970
+ }
1971
+ /**
1972
+ * Request to create an invocation (before execution)
1973
+ */
1974
+ interface InvocationRequest {
1975
+ /** Capability to invoke */
1976
+ capability: UcanCapability;
1977
+ /** CIDs of proof delegations */
1978
+ proofs: string[];
1979
+ /** Additional facts/context for the invocation */
1980
+ facts?: Record<string, unknown>;
1981
+ }
1982
+ /**
1983
+ * Result of creating and validating an invocation
1984
+ */
1985
+ interface InvocationResult {
1986
+ /** CID of the created invocation */
1987
+ cid: string;
1988
+ /** Serialized invocation (Base64 CAR) */
1989
+ invocation: string;
1990
+ /** Whether validation passed */
1991
+ valid: boolean;
1992
+ /** Error message if validation failed */
1993
+ error?: string;
1994
+ }
1995
+ /**
1996
+ * Result of executing with an invocation
1997
+ */
1998
+ interface ExecutionWithInvocationResult {
1999
+ /** Whether execution succeeded */
2000
+ success: boolean;
2001
+ /** CID of the invocation used */
2002
+ invocationCid: string;
2003
+ /** Action result if successful */
2004
+ result?: unknown;
2005
+ /** Error message if failed */
2006
+ error?: string;
2007
+ }
2008
+ /**
2009
+ * Result of validating a delegation chain
2010
+ */
2011
+ interface DelegationChainValidationResult {
2012
+ /** Whether the chain is valid */
2013
+ valid: boolean;
2014
+ /** The proof chain from root to actor (if valid) */
2015
+ proofChain?: StoredDelegation[];
2016
+ /** Error message if invalid */
2017
+ error?: string;
2018
+ }
2019
+ /**
2020
+ * Result of finding valid proofs for an actor
2021
+ */
2022
+ interface FindProofsResult {
2023
+ /** Whether valid proofs were found */
2024
+ found: boolean;
2025
+ /** CIDs of proof delegations (if found) */
2026
+ proofCids?: string[];
2027
+ /** Error message if not found */
2028
+ error?: string;
2029
+ }
2030
+ /**
2031
+ * Report from migrating legacy delegations
2032
+ */
2033
+ interface MigrationReport {
2034
+ /** Total number of legacy delegations found */
2035
+ total: number;
2036
+ /** Number successfully migrated */
2037
+ migrated: number;
2038
+ /** Number that failed migration */
2039
+ failed: number;
2040
+ /** Details of failures */
2041
+ errors: Array<{
2042
+ id: string;
2043
+ error: string;
2044
+ }>;
2045
+ }
2046
+ /**
2047
+ * Parameters for creating a root delegation
2048
+ */
2049
+ interface CreateRootDelegationParams {
2050
+ /** DID of the flow owner (issuer and audience for root) */
2051
+ flowOwnerDid: string;
2052
+ /** Type of issuer for signing */
2053
+ issuerType: 'entity' | 'user';
2054
+ /** Entity room ID if signing as entity */
2055
+ entityRoomId?: string;
2056
+ /** Full flow URI, e.g., "ixo:flow:abc123" */
2057
+ flowUri: string;
2058
+ /** PIN for signing */
2059
+ pin: string;
2060
+ }
2061
+ /**
2062
+ * Parameters for creating a delegation
2063
+ */
2064
+ interface CreateDelegationParams {
2065
+ /** DID of the issuer */
2066
+ issuerDid: string;
2067
+ /** Type of issuer for signing */
2068
+ issuerType: 'entity' | 'user';
2069
+ /** Entity room ID if signing as entity */
2070
+ entityRoomId?: string;
2071
+ /** DID of the audience (recipient) */
2072
+ audience: string;
2073
+ /** Capabilities to grant */
2074
+ capabilities: UcanCapability[];
2075
+ /** CIDs of proof delegations */
2076
+ proofs?: string[];
2077
+ /** Expiration timestamp in milliseconds */
2078
+ expiration?: number;
2079
+ /** PIN for signing */
2080
+ pin: string;
2081
+ }
2082
+ /**
2083
+ * Parameters for creating an invocation
2084
+ */
2085
+ interface CreateInvocationParams {
2086
+ /** DID of the invoker */
2087
+ invokerDid: string;
2088
+ /** Type of invoker for signing */
2089
+ invokerType: 'entity' | 'user';
2090
+ /** Entity room ID if signing as entity */
2091
+ entityRoomId?: string;
2092
+ /** Capability to invoke */
2093
+ capability: UcanCapability;
2094
+ /** CIDs of proof delegations */
2095
+ proofs: string[];
2096
+ /** Additional facts/context */
2097
+ facts?: Record<string, unknown>;
2098
+ /** PIN for signing */
2099
+ pin: string;
2100
+ }
2101
+
2102
+ /**
2103
+ * Capability types for UCAN-based authorization
2104
+ *
2105
+ * NOTE: This module contains legacy types for backward compatibility.
2106
+ * For new code, prefer using types from './ucan.ts' which align with @ixo/ucan.
2107
+ */
2108
+
2109
+ /**
2110
+ * @deprecated Use UcanCapability from './ucan' for new code
2111
+ */
2112
+ interface Capability {
2113
+ /** Action that can be performed, e.g., "flow/execute", "flow/block/execute" */
2114
+ can: string;
2115
+ /** Resource URI, e.g., "ixo:flow:abc123", "ixo:flow:abc123:blockId" */
2116
+ with: string;
2117
+ /** Additional constraints/caveats (optional) */
2118
+ nb?: CapabilityCaveats;
2119
+ }
2120
+ /**
2121
+ * @deprecated Use StoredDelegation from './ucan' for new code.
2122
+ * SignedCapability uses JSON format; StoredDelegation uses CAR format.
2123
+ */
2124
+ interface SignedCapability {
2125
+ /** Unique identifier (CID or generated ID) */
2126
+ id: string;
2127
+ /** DID of the issuer (entity or user who signed) */
2128
+ issuer: string;
2129
+ /** DID of the recipient */
2130
+ audience: string;
2131
+ /** Capabilities being granted */
2132
+ capabilities: Capability[];
2133
+ /** IDs of parent capabilities in the chain (empty for root) */
2134
+ proofs: string[];
2135
+ /** Unix timestamp when capability expires (optional) */
2136
+ expiration?: number;
2137
+ /** ISO timestamp when created */
2138
+ issuedAt: string;
2139
+ /** Base64 encoded signature */
2140
+ signature: string;
2141
+ }
2142
+ interface CapabilityValidationResult {
2143
+ valid: boolean;
2144
+ error?: string;
2145
+ /** The full chain from root to the validated capability */
2146
+ chain?: SignedCapability[];
2147
+ }
2148
+ interface DelegationGrant {
2149
+ /** DID of recipient */
2150
+ audience: string;
2151
+ /** Display name of recipient (for UI) */
2152
+ audienceDisplayName?: string;
2153
+ /** Capabilities to grant */
2154
+ capabilities: Capability[];
2155
+ /** IDs of proof capabilities */
2156
+ proofs: string[];
2157
+ /** Expiration timestamp (optional) */
2158
+ expiration?: number;
2159
+ /** Whether recipient can further delegate */
2160
+ canDelegate?: boolean;
2161
+ }
2162
+
2163
+ /**
2164
+ * UCAN Delegation Store with dual-mode support for CAR and legacy JSON formats
2165
+ */
2166
+ interface UcanDelegationStore {
2167
+ get: (cid: string) => StoredDelegation | null;
2168
+ set: (delegation: StoredDelegation) => void;
2169
+ remove: (cid: string) => void;
2170
+ has: (cid: string) => boolean;
2171
+ getRoot: () => StoredDelegation | null;
2172
+ setRootCid: (cid: string) => void;
2173
+ getRootCid: () => string | null;
2174
+ getAll: () => StoredDelegation[];
2175
+ getByAudience: (audienceDid: string) => StoredDelegation[];
2176
+ getByIssuer: (issuerDid: string) => StoredDelegation[];
2177
+ findByCapability: (can: string, withUri: string) => StoredDelegation[];
2178
+ getVersion: () => number;
2179
+ setVersion: (version: number) => void;
2180
+ getLegacy: (id: string) => SignedCapability | null;
2181
+ hasLegacy: (id: string) => boolean;
2182
+ getAllLegacy: () => SignedCapability[];
2183
+ convertLegacyToStored: (legacy: SignedCapability) => StoredDelegation;
2184
+ }
2185
+ /**
2186
+ * Create a UCAN delegation store backed by Y.Map with dual-mode support
2187
+ */
2188
+ declare const createUcanDelegationStore: (yMap: Map<unknown>) => UcanDelegationStore;
2189
+ /**
2190
+ * Create an in-memory UCAN delegation store (for testing)
2191
+ */
2192
+ declare const createMemoryUcanDelegationStore: () => UcanDelegationStore;
2193
+
2194
+ /**
2195
+ * Invocation Store for storing and querying invocations
2196
+ *
2197
+ * Invocations are stored for:
2198
+ * - Audit trail: Cryptographic proof of who did what, when, with what authority
2199
+ * - Replay protection: Prevent same invocation being used twice
2200
+ * - Dispute resolution: Evidence if actions are contested
2201
+ * - Blockchain submission: Submit proofs to chain for immutable record
2202
+ * - Analytics: Understand flow execution patterns
2203
+ */
2204
+ interface InvocationStore {
2205
+ add: (invocation: StoredInvocation) => void;
2206
+ get: (cid: string) => StoredInvocation | null;
2207
+ remove: (cid: string) => void;
2208
+ getAll: () => StoredInvocation[];
2209
+ getByInvoker: (invokerDid: string) => StoredInvocation[];
2210
+ getByFlow: (flowId: string) => StoredInvocation[];
2211
+ getByBlock: (flowId: string, blockId: string) => StoredInvocation[];
2212
+ getByCapability: (can: string, withUri: string) => StoredInvocation[];
2213
+ hasBeenInvoked: (cid: string) => boolean;
2214
+ getInDateRange: (startMs: number, endMs: number) => StoredInvocation[];
2215
+ getSuccessful: () => StoredInvocation[];
2216
+ getFailures: () => StoredInvocation[];
2217
+ getPendingSubmission: () => StoredInvocation[];
2218
+ markSubmitted: (cid: string, transactionHash: string) => void;
2219
+ getCount: () => number;
2220
+ getCountByResult: () => {
2221
+ success: number;
2222
+ failure: number;
2223
+ };
2224
+ }
2225
+ /**
2226
+ * Create an invocation store backed by Y.Map
2227
+ */
2228
+ declare const createInvocationStore: (yMap: Map<unknown>) => InvocationStore;
2229
+ /**
2230
+ * Create an in-memory invocation store (for testing)
2231
+ */
2232
+ declare const createMemoryInvocationStore: () => InvocationStore;
2233
+
2234
+ /**
2235
+ * The schema type for the IXO editor, derived from block specs
2236
+ */
2237
+ type IxoBlockSchema = BlockSchemaFromSpecs<typeof blockSpecs>;
2238
+ /**
2239
+ * Editor mode representing different use cases
2240
+ */
2241
+ type EditorMode = 'flow' | 'template' | 'readonly';
2242
+ /**
2243
+ * Flow metadata stored in the Y.Doc root map
2244
+ */
2245
+ interface FlowMetadata {
2246
+ '@context': string;
2247
+ _type: string;
2248
+ schema_version: string;
2249
+ doc_id: string;
2250
+ title: string;
2251
+ createdAt: string;
2252
+ createdBy: string;
2253
+ /** DID of the flow owner who has root signing authority */
2254
+ flowOwnerDid: string;
2255
+ /** Custom flow settings set by template creators (e.g. protocolDid) */
2256
+ [key: string]: any;
2257
+ }
2258
+ /**
2259
+ * Image data returned from publicFileUpload handler
2260
+ */
2261
+ interface ImageData {
2262
+ url: string;
2263
+ cid: string;
2264
+ encrypted: string;
2265
+ proof: string;
2266
+ serviceEndpoint: string;
2267
+ mxc: string;
2268
+ }
2269
+ /**
2270
+ * Extended editor type that augments BlockNoteEditor with IXO-specific properties
2271
+ * and methods. This type should be used throughout the application instead of
2272
+ * the base BlockNoteEditor type.
2273
+ *
2274
+ * Type Parameters:
2275
+ * - BSchema: The block schema (defaults to IxoBlockSchema)
2276
+ * - ISchema: The inline content schema (uses BlockNote defaults)
2277
+ * - SSchema: The style schema (uses BlockNote defaults)
2278
+ */
2279
+ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema extends InlineContentSchema = InlineContentSchema, SSchema extends StyleSchema = StyleSchema> extends BlockNoteEditor<BSchema, ISchema, SSchema> {
2280
+ /**
2281
+ * Configuration options for the editor
2282
+ * @internal
2283
+ */
2284
+ _ixoConfig: IxoEditorConfig;
2285
+ /**
2286
+ * Y.Doc root map for collaborative metadata storage
2287
+ * @internal
2288
+ */
2289
+ _yRoot?: Map<any>;
2290
+ /**
2291
+ * Y.Array for flow-specific structured block storage
2292
+ * @internal
2293
+ */
2294
+ _yFlow?: Array$1<any>;
2295
+ /**
2296
+ * Y.Map for runtime per-node state (claim status, timestamps, etc.)
2297
+ * @internal
2298
+ */
2299
+ _yRuntime?: Map<any>;
2300
+ /**
2301
+ * Y.Map for storing capability delegations
2302
+ * @internal
2303
+ */
2304
+ _yDelegations?: Map<any>;
2305
+ /**
2306
+ * Y.Map for storing invocations (audit trail)
2307
+ * @internal
2308
+ */
2309
+ _yInvocations?: Map<any>;
2310
+ /**
2311
+ * UCAN delegation store (new @ixo/ucan integration)
2312
+ * Supports both CAR format (new) and JSON format (legacy)
2313
+ * @internal
2314
+ */
2315
+ _ucanDelegationStore?: UcanDelegationStore;
2316
+ /**
2317
+ * Invocation store for audit trail and replay protection
2318
+ * @internal
2319
+ */
2320
+ _invocationStore?: InvocationStore;
2321
+ /**
2322
+ * Current editor mode (flow, template, readonly)
2323
+ */
2324
+ mode?: EditorMode;
2325
+ /**
2326
+ * Current user information (for collaborative editing)
2327
+ */
2328
+ user?: IxoCollaborativeUser;
2329
+ /**
2330
+ * Document type (template, flow, page)
2331
+ * This is a local prop-based value, NOT synced via CRDT
2332
+ */
2333
+ docType?: 'template' | 'flow' | 'page';
2334
+ /**
2335
+ * Get user-specific properties for a block
2336
+ * @param block - The block to get user properties for
2337
+ * @returns User-specific properties object
2338
+ */
2339
+ getUserProps?: (block: any) => Record<string, any>;
2340
+ /**
2341
+ * Update user-specific properties for a block
2342
+ * @param block - The block to update
2343
+ * @param updates - Properties to update
2344
+ */
2345
+ updateUserProps?: (block: any, updates: Record<string, any>) => void;
2346
+ /**
2347
+ * Get flow-level metadata
2348
+ * @returns Flow metadata object
2349
+ */
2350
+ getFlowMetadata?: () => FlowMetadata;
2351
+ /**
2352
+ * Matrix room ID where this document is synced
2353
+ */
2354
+ getRoomId?: () => string;
2355
+ /**
2356
+ * Get Matrix client
2357
+ * @returns Matrix client
2358
+ */
2359
+ getMatrixClient?: () => MatrixClient;
2360
+ /**
2361
+ * Get flow-level metadata
2362
+ * @returns Flow metadata object
2363
+ */
2364
+ getCollaborativeUsers?: () => unknown[];
2365
+ /**
2366
+ * Update flow-level metadata
2367
+ * @param updates - Metadata fields to update
2368
+ */
2369
+ updateFlowMetadata?: (updates: Partial<FlowMetadata>) => void;
2370
+ /**
2371
+ * Get the DID of the flow owner (who has root signing authority)
2372
+ * @returns Flow owner DID or empty string if not set
2373
+ */
2374
+ getFlowOwnerDid?: () => string;
2375
+ /**
2376
+ * Get the flow array (structured block storage)
2377
+ * @returns Array of flow blocks
2378
+ */
2379
+ getFlow?: () => any[];
2380
+ /**
2381
+ * Retrieve a flow node by id from the structured flow array if available.
2382
+ */
2383
+ getFlowNode?: (nodeId: string) => FlowNode | null;
2384
+ /**
2385
+ * Get a delegation by ID
2386
+ */
2387
+ getDelegation?: (capabilityId: string) => SignedCapability | null;
2388
+ /**
2389
+ * Store a delegation
2390
+ */
2391
+ setDelegation?: (capability: SignedCapability) => void;
2392
+ /**
2393
+ * Get the root capability for this flow
2394
+ */
2395
+ getRootCapability?: () => SignedCapability | null;
2396
+ /**
2397
+ * Set the root capability ID
2398
+ */
2399
+ setRootCapabilityId?: (capabilityId: string) => void;
2400
+ /**
2401
+ * Get all delegations as array
2402
+ */
2403
+ getAllDelegations?: () => SignedCapability[];
2404
+ /**
2405
+ * Remove a delegation (revoke)
2406
+ */
2407
+ removeDelegation?: (capabilityId: string) => void;
2408
+ /**
2409
+ * Add an invocation to the store (audit trail)
2410
+ */
2411
+ addInvocation?: (invocation: StoredInvocation) => void;
2412
+ /**
2413
+ * Get an invocation by CID
2414
+ */
2415
+ getInvocation?: (cid: string) => StoredInvocation | null;
2416
+ /**
2417
+ * Get all invocations
2418
+ */
2419
+ getAllInvocations?: () => StoredInvocation[];
2420
+ /**
2421
+ * Get invocations for a specific block
2422
+ */
2423
+ getInvocationsByBlock?: (flowId: string, blockId: string) => StoredInvocation[];
2424
+ /**
2425
+ * Check if an invocation has already been used (replay protection)
2426
+ */
2427
+ hasBeenInvoked?: (cid: string) => boolean;
2428
+ /**
2429
+ * Matrix metadata manager for page metadata (cover, icon)
2430
+ * @internal
2431
+ */
2432
+ _metadataManager?: MatrixMetadataManager;
2433
+ /**
2434
+ * Set page metadata (cover image and/or icon)
2435
+ * @param metadata - Partial metadata to update (merges with existing)
2436
+ * @returns Promise that resolves when metadata is updated
2437
+ */
2438
+ setPageMetadata?: (metadata: Partial<PageMetadata>) => Promise<void>;
2439
+ /**
2440
+ * Get current page metadata (cover image and icon)
2441
+ * @returns Current metadata or null if not set
2442
+ */
2443
+ getPageMetadata?: () => PageMetadata | null;
2444
+ /**
2445
+ * @deprecated Use setPageMetadata({ cover: imageData }) instead
2446
+ */
2447
+ setCoverImage?: (imageData?: ImageData) => void;
2448
+ /**
2449
+ * @deprecated Use getPageMetadata()?.cover instead
2450
+ */
2451
+ getCoverImage?: () => ImageData | undefined;
2452
+ /**
2453
+ * @deprecated Use setPageMetadata({ icon: imageData }) instead
2454
+ */
2455
+ setLogo?: (imageData?: ImageData) => void;
2456
+ /**
2457
+ * @deprecated Use getPageMetadata()?.icon instead
2458
+ */
2459
+ getLogo?: () => ImageData | undefined;
2460
+ /**
2461
+ * Set the active block for presence awareness
2462
+ * Updates local awareness state so other users can see which block this user is working on
2463
+ * @param blockId - The block ID to mark as active, or null to clear
2464
+ */
2465
+ setActiveBlock?: (blockId: string | null) => void;
2466
+ /**
2467
+ * Get the Yjs awareness instance for presence tracking
2468
+ * @returns Awareness instance or null if not available
2469
+ */
2470
+ getAwarenessInstance?: () => any;
2471
+ }
2472
+ /**
2473
+ * Re-map BlockNote renderer props to use IxoEditorType instead of BlockNoteEditor.
2474
+ * This is used in block renderers to ensure they receive the augmented editor type.
2475
+ *
2476
+ * @example
2477
+ * ```typescript
2478
+ * export function MyBlock(props: IxoBlockProps) {
2479
+ * const { block, editor } = props;
2480
+ * // editor is now IxoEditorType with full type safety
2481
+ * console.log(editor.user?.name);
2482
+ * }
2483
+ * ```
2484
+ */
2485
+ interface IxoBlockProps<TBlock = any> {
2486
+ editor: IxoEditorType;
2487
+ block: TBlock;
2488
+ }
2489
+
2490
+ type IxoEditorTheme = 'light' | 'dark';
2491
+ interface IxoEditorOptions {
2492
+ /**
2493
+ * The color theme for the editor
2494
+ * @default 'light'
2495
+ */
2496
+ theme?: IxoEditorTheme;
2497
+ /**
2498
+ * Function to handle file uploads
2499
+ */
2500
+ uploadFile?: (file: File) => Promise<string>;
2501
+ /**
2502
+ * Initial content for the editor
2503
+ */
2504
+ initialContent?: PartialBlock[];
2505
+ /**
2506
+ * Whether the editor is editable
2507
+ * @default true
2508
+ */
2509
+ editable?: boolean;
2510
+ /**
2511
+ * Whether to show the side menu (drag handle, plus button)
2512
+ * @default true
2513
+ */
2514
+ sideMenu?: boolean;
2515
+ /**
2516
+ * Whether to enable the slash menu
2517
+ * @default true
2518
+ */
2519
+ slashMenu?: boolean;
2520
+ /**
2521
+ * Whether to show the formatting toolbar
2522
+ * @default true
2523
+ */
2524
+ formattingToolbar?: boolean;
2525
+ /**
2526
+ * Whether to show the link toolbar
2527
+ * @default true
2528
+ */
2529
+ linkToolbar?: boolean;
2530
+ /**
2531
+ * Whether to show the file panel
2532
+ * @default true
2533
+ */
2534
+ filePanel?: boolean;
2535
+ /**
2536
+ * Whether to show table handles
2537
+ * @default true
2538
+ */
2539
+ tableHandles?: boolean;
2540
+ /**
2541
+ * Document type (template, flow, page)
2542
+ * This is a local prop and NOT synced via CRDT
2543
+ * @default 'flow'
2544
+ */
2545
+ docType?: 'template' | 'flow' | 'page';
2546
+ }
2547
+ interface IxoCollaborativeUser {
2548
+ name: string;
2549
+ color: string;
2550
+ accessToken: string;
2551
+ address: string;
2552
+ id: string;
2553
+ /** Optional avatar image URL for presence indicators */
2554
+ avatar?: string;
2555
+ }
2556
+ interface IxoCollaborativeEditorPermissions {
2557
+ /**
2558
+ * Whether the user has write permissions
2559
+ * @default false
2560
+ */
2561
+ write: boolean;
2562
+ }
2563
+ interface IxoCollaborativeEditorOptions extends IxoEditorOptions {
2564
+ user: IxoCollaborativeUser;
2565
+ matrixClient: MatrixClient;
2566
+ roomId: string;
2567
+ /**
2568
+ * User permissions for the collaborative document
2569
+ * @default { write: false }
2570
+ */
2571
+ permissions?: IxoCollaborativeEditorPermissions;
2572
+ /**
2573
+ * Unique identifier for the document/flow
2574
+ */
2575
+ docId?: string;
2576
+ /**
2577
+ * Title of the flow document
2578
+ */
2579
+ title?: string;
2580
+ }
2581
+ interface IxoEditorConfig {
2582
+ theme: IxoEditorTheme;
2583
+ editable: boolean;
2584
+ sideMenu: boolean;
2585
+ slashMenu: boolean;
2586
+ formattingToolbar: boolean;
2587
+ linkToolbar: boolean;
2588
+ filePanel: boolean;
2589
+ tableHandles: boolean;
2590
+ }
2591
+
2592
+ export { type ActivationCondition as A, type CreateRootDelegationParams as B, type Capability as C, type DelegationGrant as D, type EvaluationStatus as E, type FlowNodeAuthzExtension as F, type CreateDelegationParams as G, type CreateInvocationParams as H, type IxoEditorOptions as I, type IxoEditorType as J, type IxoBlockProps as K, type LinkedClaim as L, type MigrationReport as M, type NodeState as N, type SignedCapability as S, type UcanDelegationStore as U, type CapabilityValidationResult as a, type IxoEditorTheme as b, type IxoEditorConfig as c, type IxoCollaborativeUser as d, type IxoCollaborativeEditorOptions as e, blockSpecs as f, getExtraSlashMenuItems as g, createUcanDelegationStore as h, createMemoryUcanDelegationStore as i, createInvocationStore as j, createMemoryInvocationStore as k, type InvocationStore as l, type CapabilityURI as m, type DID as n, type ClaimCollectionURI as o, type FlowNodeRuntimeState as p, type FlowNodeBase as q, type FlowNode as r, type UcanCapability as s, type StoredDelegation as t, type StoredInvocation as u, type InvocationRequest as v, type InvocationResult as w, type ExecutionWithInvocationResult as x, type DelegationChainValidationResult as y, type FindProofsResult as z };