@ixo/editor 3.0.0-beta.9 → 3.1.0

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