@ixo/editor 3.0.0-beta.3 → 3.0.0-beta.30

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,2738 @@
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
+ /** Cover image URL */
1797
+ cover?: string;
1798
+ /** Icon/logo image URL */
1799
+ icon?: string;
1800
+ /** Cover image vertical position (0-100 percentage) */
1801
+ coverPosition?: number;
1802
+ }
1803
+ /**
1804
+ * Callback type for metadata change subscriptions
1805
+ */
1806
+ type MetadataChangeCallback = (metadata: PageMetadata) => void;
1807
+ /**
1808
+ * Manager for Matrix state events containing page metadata (cover, icon)
1809
+ *
1810
+ * Stores cover and icon as separate state events, each containing only the URL string.
1811
+ */
1812
+ declare class MatrixMetadataManager {
1813
+ private matrixClient;
1814
+ private roomId;
1815
+ private subscribers;
1816
+ private eventHandler;
1817
+ constructor(matrixClient: MatrixClient, roomId: string);
1818
+ /**
1819
+ * Set up Matrix event listener for real-time updates
1820
+ */
1821
+ private setupEventListener;
1822
+ /**
1823
+ * Notify all subscribers of metadata changes
1824
+ */
1825
+ private notifySubscribers;
1826
+ /**
1827
+ * Send metadata to Matrix state events (separate events for cover and icon)
1828
+ *
1829
+ * @param metadata - The metadata to store (only URL strings)
1830
+ * @param permissions - Permission check object
1831
+ * @returns Promise that resolves when state events are sent
1832
+ */
1833
+ setMetadata(metadata: PageMetadata, permissions: {
1834
+ write: boolean;
1835
+ }): Promise<void>;
1836
+ /**
1837
+ * Get current metadata from Matrix state (reads from separate events)
1838
+ *
1839
+ * @returns Current metadata or null if not set
1840
+ */
1841
+ getMetadata(): PageMetadata | null;
1842
+ /**
1843
+ * Subscribe to metadata changes
1844
+ *
1845
+ * @param callback - Function to call when metadata changes
1846
+ * @returns Unsubscribe function
1847
+ */
1848
+ subscribe(callback: MetadataChangeCallback): () => void;
1849
+ /**
1850
+ * Clean up event listeners and subscriptions
1851
+ * Call this when the manager is no longer needed
1852
+ */
1853
+ dispose(): void;
1854
+ }
1855
+
1856
+ type DID = string;
1857
+ type ClaimCollectionURI = string;
1858
+ type EvaluationStatus = 'pending' | 'approved' | 'rejected';
1859
+ interface LinkedClaim {
1860
+ collectionId: ClaimCollectionURI;
1861
+ }
1862
+ interface ActivationCondition {
1863
+ upstreamNodeId: string;
1864
+ requiredStatus: EvaluationStatus;
1865
+ /**
1866
+ * When true, activation requires the upstream block to have been executed
1867
+ * with a valid UCAN invocation (i.e. lastInvocationCid is set).
1868
+ */
1869
+ requireAuthorisedActor?: boolean;
1870
+ }
1871
+ interface FlowNodeAuthzExtension {
1872
+ linkedClaim?: LinkedClaim;
1873
+ activationCondition?: ActivationCondition;
1874
+ }
1875
+ type NodeState = 'idle' | 'running' | 'completed' | 'failed' | 'cancelled';
1876
+ interface FlowNodeRuntimeState {
1877
+ state?: NodeState;
1878
+ output?: Record<string, any>;
1879
+ executedByDid?: DID;
1880
+ executedAt?: number;
1881
+ /** Unix timestamp (ms) when the block first became enabled/activated */
1882
+ enabledAt?: number;
1883
+ invocations?: string[];
1884
+ lastInvocationCid?: string;
1885
+ assignments?: Array<{
1886
+ actorDid: DID;
1887
+ assignedByDid?: DID;
1888
+ at: number;
1889
+ status: 'assigned' | 'accepted' | 'declined';
1890
+ }>;
1891
+ commitments?: Array<{
1892
+ actorDid: DID;
1893
+ at: number;
1894
+ expiresAt?: number;
1895
+ }>;
1896
+ proposals?: Array<{
1897
+ id: string;
1898
+ proposedByDid: DID;
1899
+ proposedAt: number;
1900
+ mode: 'inputs_patch' | 'output_patch';
1901
+ patch: any;
1902
+ rationale?: string;
1903
+ status: 'open' | 'accepted' | 'rejected';
1904
+ decidedByDid?: DID;
1905
+ decidedAt?: number;
1906
+ acceptanceInvocationCid?: string;
1907
+ }>;
1908
+ error?: {
1909
+ message: string;
1910
+ code?: string;
1911
+ at: number;
1912
+ data?: any;
1913
+ };
1914
+ claimId?: string;
1915
+ submittedByDid?: DID;
1916
+ evaluationStatus?: EvaluationStatus;
1917
+ executionTimestamp?: number;
1918
+ }
1919
+ interface FlowNodeBase {
1920
+ id: string;
1921
+ type: string;
1922
+ props: Record<string, any>;
1923
+ }
1924
+ type FlowNode = FlowNodeBase & FlowNodeAuthzExtension;
1925
+
1926
+ /**
1927
+ * UCAN types for @ixo/ucan integration
1928
+ *
1929
+ * These types support the new invocation-based execution model where:
1930
+ * - Delegations grant permissions (stored as Base64 CAR)
1931
+ * - Invocations exercise permissions (stored for audit trail)
1932
+ */
1933
+ /**
1934
+ * Caveats/constraints for a capability
1935
+ */
1936
+ interface CapabilityCaveats {
1937
+ /** Intent - user-provided description of the purpose of this capability */
1938
+ int?: string;
1939
+ /** Additional custom caveats */
1940
+ [key: string]: unknown;
1941
+ }
1942
+ /**
1943
+ * Capability definition aligned with @ixo/ucan
1944
+ */
1945
+ interface UcanCapability {
1946
+ /** Action that can be performed, e.g., "flow/execute", "flow/block/execute" */
1947
+ can: string;
1948
+ /** Resource URI, e.g., "ixo:flow:abc123", "ixo:flow:abc123:blockId" */
1949
+ with: string;
1950
+ /** Additional constraints/caveats (optional) */
1951
+ nb?: CapabilityCaveats;
1952
+ }
1953
+ /**
1954
+ * Stored delegation in new CAR format or legacy JSON format
1955
+ */
1956
+ interface StoredDelegation {
1957
+ /** CID of the delegation (content-addressed ID) */
1958
+ cid: string;
1959
+ /** Base64-encoded CAR bytes (for 'car' format) or empty string for legacy */
1960
+ delegation: string;
1961
+ /** Issuer DID (for quick lookup without parsing) */
1962
+ issuerDid: string;
1963
+ /** Audience DID (for quick lookup without parsing) */
1964
+ audienceDid: string;
1965
+ /** Capabilities granted (for quick lookup without parsing) */
1966
+ capabilities: UcanCapability[];
1967
+ /** Expiration timestamp in milliseconds (for quick expiry checks) */
1968
+ expiration?: number;
1969
+ /** When this delegation was created (milliseconds) */
1970
+ createdAt: number;
1971
+ /** Format indicator */
1972
+ format: 'car';
1973
+ /** CIDs of proof delegations in the chain */
1974
+ proofCids: string[];
1975
+ }
1976
+ /**
1977
+ * Stored invocation for audit trail and replay protection
1978
+ */
1979
+ interface StoredInvocation {
1980
+ /** CID of the invocation (content-addressed ID) */
1981
+ cid: string;
1982
+ /** Base64-encoded CAR bytes */
1983
+ invocation: string;
1984
+ /** DID of the invoker */
1985
+ invokerDid: string;
1986
+ /** Capability being invoked */
1987
+ capability: UcanCapability;
1988
+ /** When this invocation was executed (milliseconds) */
1989
+ executedAt: number;
1990
+ /** Flow ID context */
1991
+ flowId: string;
1992
+ /** Block ID if block-level execution */
1993
+ blockId?: string;
1994
+ /** Execution result */
1995
+ result: 'success' | 'failure';
1996
+ /** Error message if failed */
1997
+ error?: string;
1998
+ /** CIDs of the proof delegation chain */
1999
+ proofCids: string[];
2000
+ /** Linked claim ID if this invocation created a claim */
2001
+ claimId?: string;
2002
+ /** Transaction hash if submitted to blockchain */
2003
+ transactionHash?: string;
2004
+ }
2005
+ /**
2006
+ * Request to create an invocation (before execution)
2007
+ */
2008
+ interface InvocationRequest {
2009
+ /** Capability to invoke */
2010
+ capability: UcanCapability;
2011
+ /** CIDs of proof delegations */
2012
+ proofs: string[];
2013
+ /** Additional facts/context for the invocation */
2014
+ facts?: Record<string, unknown>;
2015
+ }
2016
+ /**
2017
+ * Result of creating and validating an invocation
2018
+ */
2019
+ interface InvocationResult {
2020
+ /** CID of the created invocation */
2021
+ cid: string;
2022
+ /** Serialized invocation (Base64 CAR) */
2023
+ invocation: string;
2024
+ /** Whether validation passed */
2025
+ valid: boolean;
2026
+ /** Error message if validation failed */
2027
+ error?: string;
2028
+ }
2029
+ /**
2030
+ * Result of executing with an invocation
2031
+ */
2032
+ interface ExecutionWithInvocationResult {
2033
+ /** Whether execution succeeded */
2034
+ success: boolean;
2035
+ /** CID of the invocation used */
2036
+ invocationCid: string;
2037
+ /** Action result if successful */
2038
+ result?: unknown;
2039
+ /** Error message if failed */
2040
+ error?: string;
2041
+ }
2042
+ /**
2043
+ * Result of validating a delegation chain
2044
+ */
2045
+ interface DelegationChainValidationResult {
2046
+ /** Whether the chain is valid */
2047
+ valid: boolean;
2048
+ /** The proof chain from root to actor (if valid) */
2049
+ proofChain?: StoredDelegation[];
2050
+ /** Error message if invalid */
2051
+ error?: string;
2052
+ }
2053
+ /**
2054
+ * Result of finding valid proofs for an actor
2055
+ */
2056
+ interface FindProofsResult {
2057
+ /** Whether valid proofs were found */
2058
+ found: boolean;
2059
+ /** CIDs of proof delegations (if found) */
2060
+ proofCids?: string[];
2061
+ /** Error message if not found */
2062
+ error?: string;
2063
+ }
2064
+ /**
2065
+ * Parameters for creating a root delegation
2066
+ */
2067
+ interface CreateRootDelegationParams {
2068
+ /** DID of the flow owner (issuer and audience for root) */
2069
+ flowOwnerDid: string;
2070
+ /** Type of issuer for signing */
2071
+ issuerType: 'entity' | 'user';
2072
+ /** Entity room ID if signing as entity */
2073
+ entityRoomId?: string;
2074
+ /** Full flow URI, e.g., "ixo:flow:abc123" */
2075
+ flowUri: string;
2076
+ /** PIN for signing */
2077
+ pin: string;
2078
+ }
2079
+ /**
2080
+ * Parameters for creating a delegation
2081
+ */
2082
+ interface CreateDelegationParams {
2083
+ /** DID of the issuer */
2084
+ issuerDid: string;
2085
+ /** Type of issuer for signing */
2086
+ issuerType: 'entity' | 'user';
2087
+ /** Entity room ID if signing as entity */
2088
+ entityRoomId?: string;
2089
+ /** DID of the audience (recipient) */
2090
+ audience: string;
2091
+ /** Capabilities to grant */
2092
+ capabilities: UcanCapability[];
2093
+ /** CIDs of proof delegations */
2094
+ proofs?: string[];
2095
+ /** Expiration timestamp in milliseconds */
2096
+ expiration?: number;
2097
+ /** PIN for signing */
2098
+ pin: string;
2099
+ }
2100
+ /**
2101
+ * Parameters for creating an invocation
2102
+ */
2103
+ interface CreateInvocationParams {
2104
+ /** DID of the invoker */
2105
+ invokerDid: string;
2106
+ /** Type of invoker for signing */
2107
+ invokerType: 'entity' | 'user';
2108
+ /** Entity room ID if signing as entity */
2109
+ entityRoomId?: string;
2110
+ /** Capability to invoke */
2111
+ capability: UcanCapability;
2112
+ /** CIDs of proof delegations */
2113
+ proofs: string[];
2114
+ /** Additional facts/context */
2115
+ facts?: Record<string, unknown>;
2116
+ /** PIN for signing */
2117
+ pin: string;
2118
+ }
2119
+
2120
+ /**
2121
+ * UCAN Delegation Store — stores CAR-serialized delegations
2122
+ */
2123
+ interface UcanDelegationStore {
2124
+ get: (cid: string) => StoredDelegation | null;
2125
+ set: (delegation: StoredDelegation) => void;
2126
+ remove: (cid: string) => void;
2127
+ has: (cid: string) => boolean;
2128
+ getRoot: () => StoredDelegation | null;
2129
+ setRootCid: (cid: string) => void;
2130
+ getRootCid: () => string | null;
2131
+ getAll: () => StoredDelegation[];
2132
+ getByAudience: (audienceDid: string) => StoredDelegation[];
2133
+ getByIssuer: (issuerDid: string) => StoredDelegation[];
2134
+ findByCapability: (can: string, withUri: string) => StoredDelegation[];
2135
+ }
2136
+ /**
2137
+ * Create a UCAN delegation store backed by Y.Map
2138
+ */
2139
+ declare const createUcanDelegationStore: (yMap: Map<unknown>) => UcanDelegationStore;
2140
+ /**
2141
+ * Create an in-memory UCAN delegation store (for testing)
2142
+ */
2143
+ declare const createMemoryUcanDelegationStore: () => UcanDelegationStore;
2144
+
2145
+ /**
2146
+ * Invocation Store for storing and querying invocations
2147
+ *
2148
+ * Invocations are stored for:
2149
+ * - Audit trail: Cryptographic proof of who did what, when, with what authority
2150
+ * - Replay protection: Prevent same invocation being used twice
2151
+ * - Dispute resolution: Evidence if actions are contested
2152
+ * - Blockchain submission: Submit proofs to chain for immutable record
2153
+ * - Analytics: Understand flow execution patterns
2154
+ */
2155
+ interface InvocationStore {
2156
+ add: (invocation: StoredInvocation) => void;
2157
+ get: (cid: string) => StoredInvocation | null;
2158
+ remove: (cid: string) => void;
2159
+ getAll: () => StoredInvocation[];
2160
+ getByInvoker: (invokerDid: string) => StoredInvocation[];
2161
+ getByFlow: (flowId: string) => StoredInvocation[];
2162
+ getByBlock: (flowId: string, blockId: string) => StoredInvocation[];
2163
+ getByCapability: (can: string, withUri: string) => StoredInvocation[];
2164
+ hasBeenInvoked: (cid: string) => boolean;
2165
+ getInDateRange: (startMs: number, endMs: number) => StoredInvocation[];
2166
+ getSuccessful: () => StoredInvocation[];
2167
+ getFailures: () => StoredInvocation[];
2168
+ getPendingSubmission: () => StoredInvocation[];
2169
+ markSubmitted: (cid: string, transactionHash: string) => void;
2170
+ getCount: () => number;
2171
+ getCountByResult: () => {
2172
+ success: number;
2173
+ failure: number;
2174
+ };
2175
+ }
2176
+ /**
2177
+ * Create an invocation store backed by Y.Map
2178
+ */
2179
+ declare const createInvocationStore: (yMap: Map<unknown>) => InvocationStore;
2180
+ /**
2181
+ * Create an in-memory invocation store (for testing)
2182
+ */
2183
+ declare const createMemoryInvocationStore: () => InvocationStore;
2184
+
2185
+ /**
2186
+ * UCAN Service using @ixo/ucan directly
2187
+ *
2188
+ * This service provides a high-level API for:
2189
+ * - Creating and managing delegations (CAR format)
2190
+ * - Creating and validating invocations
2191
+ * - Executing actions with invocation-based authorization
2192
+ *
2193
+ * The host app only needs to provide the signer (private key) after PIN decryption.
2194
+ * All UCAN operations are performed using @ixo/ucan directly.
2195
+ */
2196
+
2197
+ /**
2198
+ * Signer session scope type
2199
+ */
2200
+ type SignerSessionScope = 'session' | 'operation';
2201
+ /**
2202
+ * Signer session returned by createSignerSession
2203
+ */
2204
+ interface SignerSessionInfo {
2205
+ sessionId: string;
2206
+ did: string;
2207
+ publicKey: string;
2208
+ keyId: string;
2209
+ expiresAt: number;
2210
+ scope: SignerSessionScope;
2211
+ }
2212
+ /**
2213
+ * Handler functions for getting signers from the host application
2214
+ * The host app handles PIN decryption and key management
2215
+ */
2216
+ interface UcanServiceHandlers {
2217
+ /**
2218
+ * Get a signer for the given DID after PIN verification
2219
+ * The host app decrypts the private key using the PIN
2220
+ *
2221
+ * @returns The private key in multibase format (for parseSigner)
2222
+ * @deprecated Prefer createSignerSession for better security
2223
+ */
2224
+ getPrivateKey?: (params: {
2225
+ did: string;
2226
+ didType: 'entity' | 'user';
2227
+ entityRoomId?: string;
2228
+ pin: string;
2229
+ }) => Promise<string>;
2230
+ /**
2231
+ * Get a signer from mnemonic (alternative to getPrivateKey)
2232
+ * The host app retrieves and decrypts the mnemonic using the PIN
2233
+ *
2234
+ * @returns The mnemonic phrase
2235
+ * @deprecated Prefer createSignerSession for better security
2236
+ */
2237
+ getMnemonic?: (params: {
2238
+ did: string;
2239
+ didType: 'entity' | 'user';
2240
+ entityRoomId?: string;
2241
+ pin: string;
2242
+ }) => Promise<string>;
2243
+ /**
2244
+ * Create a signer session that can be used for multiple sign operations.
2245
+ * The host app keeps the key material secure; the editor only receives an opaque handle.
2246
+ *
2247
+ * @param params.scope - 'session' for multiple operations, 'operation' for one-time use
2248
+ * @param params.ttlSeconds - Time-to-live for session scope (default: 300, max: 3600)
2249
+ */
2250
+ createSignerSession?: (params: {
2251
+ did: string;
2252
+ didType: 'entity' | 'user';
2253
+ entityRoomId?: string;
2254
+ pin: string;
2255
+ scope: SignerSessionScope;
2256
+ ttlSeconds?: number;
2257
+ }) => Promise<SignerSessionInfo>;
2258
+ /**
2259
+ * Sign data using an existing session.
2260
+ * For 'operation' scope, the session is automatically invalidated after this call.
2261
+ */
2262
+ signWithSession?: (params: {
2263
+ sessionId: string;
2264
+ data: string;
2265
+ algorithm?: 'Ed25519';
2266
+ }) => Promise<{
2267
+ signature: string;
2268
+ algorithm: 'Ed25519';
2269
+ keyId: string;
2270
+ }>;
2271
+ /**
2272
+ * Release a session before it expires.
2273
+ * Safe to call on already-released or expired sessions.
2274
+ */
2275
+ releaseSignerSession?: (params: {
2276
+ sessionId: string;
2277
+ }) => Promise<{
2278
+ released: boolean;
2279
+ reason?: string;
2280
+ }>;
2281
+ /**
2282
+ * Create a delegation directly in the host app.
2283
+ * The host handles all signing internally using session-based signing.
2284
+ * This is the preferred approach for security.
2285
+ */
2286
+ createDelegationWithSession?: (params: {
2287
+ sessionId: string;
2288
+ audience: string;
2289
+ capabilities: Array<{
2290
+ can: string;
2291
+ with: string;
2292
+ nb?: Record<string, unknown>;
2293
+ }>;
2294
+ proofs?: string[];
2295
+ expiration?: number;
2296
+ }) => Promise<{
2297
+ cid: string;
2298
+ delegation: string;
2299
+ }>;
2300
+ /**
2301
+ * Create an invocation directly in the host app.
2302
+ * The host handles all signing internally using session-based signing.
2303
+ * This is the preferred approach for security.
2304
+ */
2305
+ createInvocationWithSession?: (params: {
2306
+ sessionId: string;
2307
+ audience: string;
2308
+ capability: {
2309
+ can: string;
2310
+ with: string;
2311
+ nb?: Record<string, unknown>;
2312
+ };
2313
+ proofs: string[];
2314
+ }) => Promise<{
2315
+ cid: string;
2316
+ invocation: string;
2317
+ }>;
2318
+ }
2319
+ /**
2320
+ * Configuration for UcanService
2321
+ */
2322
+ interface UcanServiceConfig {
2323
+ delegationStore: UcanDelegationStore;
2324
+ invocationStore: InvocationStore;
2325
+ handlers: UcanServiceHandlers;
2326
+ flowOwnerDid: string;
2327
+ flowUri: string;
2328
+ }
2329
+ /**
2330
+ * UCAN Service interface
2331
+ */
2332
+ interface UcanService {
2333
+ createRootDelegation: (params: CreateRootDelegationParams) => Promise<StoredDelegation>;
2334
+ createDelegation: (params: CreateDelegationParams) => Promise<StoredDelegation>;
2335
+ revokeDelegation: (cid: string) => void;
2336
+ getDelegation: (cid: string) => StoredDelegation | null;
2337
+ getAllDelegations: () => StoredDelegation[];
2338
+ getRootDelegation: () => StoredDelegation | null;
2339
+ createAndValidateInvocation: (params: CreateInvocationParams, flowId: string, blockId?: string) => Promise<InvocationResult>;
2340
+ executeWithInvocation: <T>(params: CreateInvocationParams, action: () => Promise<T>, flowId: string, blockId?: string) => Promise<ExecutionWithInvocationResult & {
2341
+ actionResult?: T;
2342
+ }>;
2343
+ validateDelegationChain: (audienceDid: string, capability: UcanCapability) => Promise<DelegationChainValidationResult>;
2344
+ findValidProofs: (audienceDid: string, capability: UcanCapability) => Promise<FindProofsResult>;
2345
+ parseDelegationFromStore: (cid: string) => Promise<Delegation | null>;
2346
+ isConfigured: () => boolean;
2347
+ }
2348
+ /**
2349
+ * Create a UCAN service instance
2350
+ */
2351
+ declare const createUcanService: (config: UcanServiceConfig) => UcanService;
2352
+
2353
+ /**
2354
+ * The schema type for the IXO editor, derived from block specs
2355
+ */
2356
+ type IxoBlockSchema = BlockSchemaFromSpecs<typeof blockSpecs>;
2357
+ /**
2358
+ * Editor mode representing different use cases
2359
+ */
2360
+ type EditorMode = 'flow' | 'template' | 'readonly';
2361
+ /**
2362
+ * Flow metadata stored in the Y.Doc root map
2363
+ */
2364
+ interface FlowMetadata {
2365
+ '@context': string;
2366
+ _type: string;
2367
+ schema_version: string;
2368
+ doc_id: string;
2369
+ title: string;
2370
+ createdAt: string;
2371
+ createdBy: string;
2372
+ /** DID of the flow owner who has root signing authority */
2373
+ flowOwnerDid: string;
2374
+ /** Custom flow settings set by template creators (e.g. protocolDid) */
2375
+ [key: string]: any;
2376
+ }
2377
+ /**
2378
+ * Image data returned from publicFileUpload handler
2379
+ */
2380
+ interface ImageData {
2381
+ url: string;
2382
+ cid: string;
2383
+ encrypted: string;
2384
+ proof: string;
2385
+ serviceEndpoint: string;
2386
+ mxc: string;
2387
+ }
2388
+ /**
2389
+ * Extended editor type that augments BlockNoteEditor with IXO-specific properties
2390
+ * and methods. This type should be used throughout the application instead of
2391
+ * the base BlockNoteEditor type.
2392
+ *
2393
+ * Type Parameters:
2394
+ * - BSchema: The block schema (defaults to IxoBlockSchema)
2395
+ * - ISchema: The inline content schema (uses BlockNote defaults)
2396
+ * - SSchema: The style schema (uses BlockNote defaults)
2397
+ */
2398
+ interface IxoEditorType<BSchema extends IxoBlockSchema = IxoBlockSchema, ISchema extends InlineContentSchema = InlineContentSchema, SSchema extends StyleSchema = StyleSchema> extends BlockNoteEditor<BSchema, ISchema, SSchema> {
2399
+ /**
2400
+ * Configuration options for the editor
2401
+ * @internal
2402
+ */
2403
+ _ixoConfig: IxoEditorConfig;
2404
+ /**
2405
+ * Y.Doc root map for collaborative metadata storage
2406
+ * @internal
2407
+ */
2408
+ _yRoot?: Map<any>;
2409
+ /**
2410
+ * Y.Array for flow-specific structured block storage
2411
+ * @internal
2412
+ */
2413
+ _yFlow?: Array$1<any>;
2414
+ /**
2415
+ * Y.Map for runtime per-node state (claim status, timestamps, etc.)
2416
+ * @internal
2417
+ */
2418
+ _yRuntime?: Map<any>;
2419
+ /**
2420
+ * Y.Map for storing capability delegations
2421
+ * @internal
2422
+ */
2423
+ _yDelegations?: Map<any>;
2424
+ /**
2425
+ * Y.Map for storing invocations (audit trail)
2426
+ * @internal
2427
+ */
2428
+ _yInvocations?: Map<any>;
2429
+ /**
2430
+ * UCAN delegation store (new @ixo/ucan integration)
2431
+ * Supports both CAR format (new) and JSON format (legacy)
2432
+ * @internal
2433
+ */
2434
+ _ucanDelegationStore?: UcanDelegationStore;
2435
+ /**
2436
+ * Invocation store for audit trail and replay protection
2437
+ * @internal
2438
+ */
2439
+ _invocationStore?: InvocationStore;
2440
+ /**
2441
+ * Current editor mode (flow, template, readonly)
2442
+ */
2443
+ mode?: EditorMode;
2444
+ /**
2445
+ * Current user information (for collaborative editing)
2446
+ */
2447
+ user?: IxoCollaborativeUser;
2448
+ /**
2449
+ * Document type (template, flow, page)
2450
+ * This is a local prop-based value, NOT synced via CRDT
2451
+ */
2452
+ docType?: 'template' | 'flow' | 'page';
2453
+ /**
2454
+ * Get user-specific properties for a block
2455
+ * @param block - The block to get user properties for
2456
+ * @returns User-specific properties object
2457
+ */
2458
+ getUserProps?: (block: any) => Record<string, any>;
2459
+ /**
2460
+ * Update user-specific properties for a block
2461
+ * @param block - The block to update
2462
+ * @param updates - Properties to update
2463
+ */
2464
+ updateUserProps?: (block: any, updates: Record<string, any>) => void;
2465
+ /**
2466
+ * Get flow-level metadata
2467
+ * @returns Flow metadata object
2468
+ */
2469
+ getFlowMetadata?: () => FlowMetadata;
2470
+ /**
2471
+ * Matrix room ID where this document is synced
2472
+ */
2473
+ getRoomId?: () => string;
2474
+ /**
2475
+ * Get Matrix client
2476
+ * @returns Matrix client
2477
+ */
2478
+ getMatrixClient?: () => MatrixClient;
2479
+ /**
2480
+ * Get flow-level metadata
2481
+ * @returns Flow metadata object
2482
+ */
2483
+ getCollaborativeUsers?: () => unknown[];
2484
+ /**
2485
+ * Update flow-level metadata
2486
+ * @param updates - Metadata fields to update
2487
+ */
2488
+ updateFlowMetadata?: (updates: Partial<FlowMetadata>) => void;
2489
+ /**
2490
+ * Get the DID of the flow owner (who has root signing authority)
2491
+ * @returns Flow owner DID or empty string if not set
2492
+ */
2493
+ getFlowOwnerDid?: () => string;
2494
+ /**
2495
+ * Get the flow array (structured block storage)
2496
+ * @returns Array of flow blocks
2497
+ */
2498
+ getFlow?: () => any[];
2499
+ /**
2500
+ * Retrieve a flow node by id from the structured flow array if available.
2501
+ */
2502
+ getFlowNode?: (nodeId: string) => FlowNode | null;
2503
+ /**
2504
+ * Get the UCAN service for this flow
2505
+ */
2506
+ getUcanService?: () => UcanService | null;
2507
+ /**
2508
+ * Get a delegation by CID
2509
+ */
2510
+ getDelegation?: (cid: string) => StoredDelegation | null;
2511
+ /**
2512
+ * Store a delegation (legacy compatibility — prefers UcanService)
2513
+ */
2514
+ setDelegation?: (delegation: any) => void;
2515
+ /**
2516
+ * Get the root capability for this flow
2517
+ */
2518
+ getRootCapability?: () => any | null;
2519
+ /**
2520
+ * Set the root capability ID
2521
+ */
2522
+ setRootCapabilityId?: (capabilityId: string) => void;
2523
+ /**
2524
+ * Get all delegations as array
2525
+ */
2526
+ getAllDelegations?: () => any[];
2527
+ /**
2528
+ * Remove a delegation (revoke)
2529
+ */
2530
+ removeDelegation?: (cid: string) => void;
2531
+ /**
2532
+ * Add an invocation to the store (audit trail)
2533
+ */
2534
+ addInvocation?: (invocation: StoredInvocation) => void;
2535
+ /**
2536
+ * Get an invocation by CID
2537
+ */
2538
+ getInvocation?: (cid: string) => StoredInvocation | null;
2539
+ /**
2540
+ * Get all invocations
2541
+ */
2542
+ getAllInvocations?: () => StoredInvocation[];
2543
+ /**
2544
+ * Get invocations for a specific block
2545
+ */
2546
+ getInvocationsByBlock?: (flowId: string, blockId: string) => StoredInvocation[];
2547
+ /**
2548
+ * Check if an invocation has already been used (replay protection)
2549
+ */
2550
+ hasBeenInvoked?: (cid: string) => boolean;
2551
+ /**
2552
+ * Matrix metadata manager for page metadata (cover, icon)
2553
+ * @internal
2554
+ */
2555
+ _metadataManager?: MatrixMetadataManager;
2556
+ /**
2557
+ * Set page metadata (cover image and/or icon)
2558
+ * @param metadata - Partial metadata to update (merges with existing)
2559
+ * @returns Promise that resolves when metadata is updated
2560
+ */
2561
+ setPageMetadata?: (metadata: Partial<PageMetadata>) => Promise<void>;
2562
+ /**
2563
+ * Get current page metadata (cover image and icon)
2564
+ * @returns Current metadata or null if not set
2565
+ */
2566
+ getPageMetadata?: () => PageMetadata | null;
2567
+ /**
2568
+ * @deprecated Use setPageMetadata({ cover: imageData }) instead
2569
+ */
2570
+ setCoverImage?: (imageData?: ImageData) => void;
2571
+ /**
2572
+ * @deprecated Use getPageMetadata()?.cover instead
2573
+ */
2574
+ getCoverImage?: () => ImageData | undefined;
2575
+ /**
2576
+ * @deprecated Use setPageMetadata({ icon: imageData }) instead
2577
+ */
2578
+ setLogo?: (imageData?: ImageData) => void;
2579
+ /**
2580
+ * @deprecated Use getPageMetadata()?.icon instead
2581
+ */
2582
+ getLogo?: () => ImageData | undefined;
2583
+ /**
2584
+ * Set the active block for presence awareness
2585
+ * Updates local awareness state so other users can see which block this user is working on
2586
+ * @param blockId - The block ID to mark as active, or null to clear
2587
+ */
2588
+ setActiveBlock?: (blockId: string | null) => void;
2589
+ /**
2590
+ * Get the Yjs awareness instance for presence tracking
2591
+ * @returns Awareness instance or null if not available
2592
+ */
2593
+ getAwarenessInstance?: () => any;
2594
+ }
2595
+ /**
2596
+ * Re-map BlockNote renderer props to use IxoEditorType instead of BlockNoteEditor.
2597
+ * This is used in block renderers to ensure they receive the augmented editor type.
2598
+ *
2599
+ * @example
2600
+ * ```typescript
2601
+ * export function MyBlock(props: IxoBlockProps) {
2602
+ * const { block, editor } = props;
2603
+ * // editor is now IxoEditorType with full type safety
2604
+ * console.log(editor.user?.name);
2605
+ * }
2606
+ * ```
2607
+ */
2608
+ interface IxoBlockProps<TBlock = any> {
2609
+ editor: IxoEditorType;
2610
+ block: TBlock;
2611
+ }
2612
+
2613
+ /**
2614
+ * Capability types for UCAN-based authorization
2615
+ */
2616
+
2617
+ /**
2618
+ * Grant request for delegating capabilities to a recipient.
2619
+ * Used by the GrantPermissionPanel UI.
2620
+ */
2621
+ interface DelegationGrant {
2622
+ /** DID of recipient */
2623
+ audience: string;
2624
+ /** Display name of recipient (for UI) */
2625
+ audienceDisplayName?: string;
2626
+ /** Capabilities to grant */
2627
+ capabilities: UcanCapability[];
2628
+ /** CIDs of proof delegations */
2629
+ proofs: string[];
2630
+ /** Expiration timestamp (optional) */
2631
+ expiration?: number;
2632
+ /** Whether recipient can further delegate */
2633
+ canDelegate?: boolean;
2634
+ }
2635
+
2636
+ type IxoEditorTheme = 'light' | 'dark';
2637
+ interface IxoEditorOptions {
2638
+ /**
2639
+ * The color theme for the editor
2640
+ * @default 'light'
2641
+ */
2642
+ theme?: IxoEditorTheme;
2643
+ /**
2644
+ * Function to handle file uploads
2645
+ */
2646
+ uploadFile?: (file: File) => Promise<string>;
2647
+ /**
2648
+ * Initial content for the editor
2649
+ */
2650
+ initialContent?: PartialBlock[];
2651
+ /**
2652
+ * Whether the editor is editable
2653
+ * @default true
2654
+ */
2655
+ editable?: boolean;
2656
+ /**
2657
+ * Whether to show the side menu (drag handle, plus button)
2658
+ * @default true
2659
+ */
2660
+ sideMenu?: boolean;
2661
+ /**
2662
+ * Whether to enable the slash menu
2663
+ * @default true
2664
+ */
2665
+ slashMenu?: boolean;
2666
+ /**
2667
+ * Whether to show the formatting toolbar
2668
+ * @default true
2669
+ */
2670
+ formattingToolbar?: boolean;
2671
+ /**
2672
+ * Whether to show the link toolbar
2673
+ * @default true
2674
+ */
2675
+ linkToolbar?: boolean;
2676
+ /**
2677
+ * Whether to show the file panel
2678
+ * @default true
2679
+ */
2680
+ filePanel?: boolean;
2681
+ /**
2682
+ * Whether to show table handles
2683
+ * @default true
2684
+ */
2685
+ tableHandles?: boolean;
2686
+ /**
2687
+ * Document type (template, flow, page)
2688
+ * This is a local prop and NOT synced via CRDT
2689
+ * @default 'flow'
2690
+ */
2691
+ docType?: 'template' | 'flow' | 'page';
2692
+ }
2693
+ interface IxoCollaborativeUser {
2694
+ name: string;
2695
+ color: string;
2696
+ accessToken: string;
2697
+ address: string;
2698
+ id: string;
2699
+ /** Optional avatar image URL for presence indicators */
2700
+ avatar?: string;
2701
+ }
2702
+ interface IxoCollaborativeEditorPermissions {
2703
+ /**
2704
+ * Whether the user has write permissions
2705
+ * @default false
2706
+ */
2707
+ write: boolean;
2708
+ }
2709
+ interface IxoCollaborativeEditorOptions extends IxoEditorOptions {
2710
+ user: IxoCollaborativeUser;
2711
+ matrixClient: MatrixClient;
2712
+ roomId: string;
2713
+ /**
2714
+ * User permissions for the collaborative document
2715
+ * @default { write: false }
2716
+ */
2717
+ permissions?: IxoCollaborativeEditorPermissions;
2718
+ /**
2719
+ * Unique identifier for the document/flow
2720
+ */
2721
+ docId?: string;
2722
+ /**
2723
+ * Title of the flow document
2724
+ */
2725
+ title?: string;
2726
+ }
2727
+ interface IxoEditorConfig {
2728
+ theme: IxoEditorTheme;
2729
+ editable: boolean;
2730
+ sideMenu: boolean;
2731
+ slashMenu: boolean;
2732
+ formattingToolbar: boolean;
2733
+ linkToolbar: boolean;
2734
+ filePanel: boolean;
2735
+ tableHandles: boolean;
2736
+ }
2737
+
2738
+ 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 };