@stll/folio-agents 0.6.1 → 0.8.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.
- package/dist/execute.js +50 -5
- package/dist/operation-schema.d.ts +615 -25
- package/dist/operation-schema.js +154 -8
- package/dist/parse.d.ts +14 -1
- package/dist/parse.js +149 -10
- package/dist/tools.js +52 -21
- package/dist/types.d.ts +14 -4
- package/package.json +2 -2
|
@@ -43,9 +43,29 @@ declare const FOLIO_TEXT_RANGE_JSON_SCHEMA: {
|
|
|
43
43
|
readonly required: readonly ["type", "story", "blockId", "startOffset", "endOffset", "selectedTextHash"];
|
|
44
44
|
readonly additionalProperties: false;
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* JSON Schema for the contract's optional `precondition` guard: `{
|
|
48
|
+
* blockTextHash }`, echoed from a `blockTextHash` returned by a document
|
|
49
|
+
* read (`read_document`, `read_section`, `find_text`). Exported so
|
|
50
|
+
* `tools.ts` can attach the same shape to `suggest_changes` and
|
|
51
|
+
* `add_comment` without redeclaring it.
|
|
52
|
+
*/
|
|
53
|
+
declare const FOLIO_PRECONDITION_JSON_SCHEMA: {
|
|
54
|
+
readonly type: "object";
|
|
55
|
+
readonly description: string;
|
|
56
|
+
readonly properties: {
|
|
57
|
+
readonly blockTextHash: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
60
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly required: readonly ["blockTextHash"];
|
|
64
|
+
readonly additionalProperties: false;
|
|
65
|
+
};
|
|
46
66
|
/**
|
|
47
67
|
* JSON Schema (draft-07 compatible) for ONE document operation: the full
|
|
48
|
-
*
|
|
68
|
+
* thirteen-variant union accepted by `parseFolioDocumentOperationBatch` in
|
|
49
69
|
* `@stll/folio-core`, one `oneOf` variant per entry in
|
|
50
70
|
* `FOLIO_DOCUMENT_OPERATION_TYPES`. Intended for LLM tool definitions and
|
|
51
71
|
* other consumers that need the contract's wire shape without re-declaring
|
|
@@ -106,7 +126,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
106
126
|
readonly blockTextHash: {
|
|
107
127
|
readonly type: "string";
|
|
108
128
|
readonly pattern: "^h[0-9a-z]+$";
|
|
109
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
129
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
110
130
|
};
|
|
111
131
|
};
|
|
112
132
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -193,7 +213,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
193
213
|
readonly blockTextHash: {
|
|
194
214
|
readonly type: "string";
|
|
195
215
|
readonly pattern: "^h[0-9a-z]+$";
|
|
196
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
216
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
197
217
|
};
|
|
198
218
|
};
|
|
199
219
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -276,7 +296,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
276
296
|
readonly blockTextHash: {
|
|
277
297
|
readonly type: "string";
|
|
278
298
|
readonly pattern: "^h[0-9a-z]+$";
|
|
279
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
299
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
280
300
|
};
|
|
281
301
|
};
|
|
282
302
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -287,7 +307,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
287
307
|
readonly additionalProperties: false;
|
|
288
308
|
}, {
|
|
289
309
|
readonly type: "object";
|
|
290
|
-
readonly description:
|
|
310
|
+
readonly description: "Apply inline formatting to the text covered by a range handle in direct or tracked mode.";
|
|
291
311
|
readonly properties: {
|
|
292
312
|
readonly type: {
|
|
293
313
|
readonly type: "string";
|
|
@@ -364,7 +384,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
364
384
|
readonly blockTextHash: {
|
|
365
385
|
readonly type: "string";
|
|
366
386
|
readonly pattern: "^h[0-9a-z]+$";
|
|
367
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
387
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
368
388
|
};
|
|
369
389
|
};
|
|
370
390
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -433,7 +453,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
433
453
|
readonly blockTextHash: {
|
|
434
454
|
readonly type: "string";
|
|
435
455
|
readonly pattern: "^h[0-9a-z]+$";
|
|
436
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
456
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
437
457
|
};
|
|
438
458
|
};
|
|
439
459
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -502,7 +522,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
502
522
|
readonly blockTextHash: {
|
|
503
523
|
readonly type: "string";
|
|
504
524
|
readonly pattern: "^h[0-9a-z]+$";
|
|
505
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
525
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
506
526
|
};
|
|
507
527
|
};
|
|
508
528
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -567,7 +587,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
567
587
|
readonly blockTextHash: {
|
|
568
588
|
readonly type: "string";
|
|
569
589
|
readonly pattern: "^h[0-9a-z]+$";
|
|
570
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
590
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
571
591
|
};
|
|
572
592
|
};
|
|
573
593
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -620,7 +640,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
620
640
|
readonly blockTextHash: {
|
|
621
641
|
readonly type: "string";
|
|
622
642
|
readonly pattern: "^h[0-9a-z]+$";
|
|
623
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
643
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
624
644
|
};
|
|
625
645
|
};
|
|
626
646
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -677,7 +697,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
677
697
|
readonly blockTextHash: {
|
|
678
698
|
readonly type: "string";
|
|
679
699
|
readonly pattern: "^h[0-9a-z]+$";
|
|
680
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
700
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
681
701
|
};
|
|
682
702
|
};
|
|
683
703
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -758,7 +778,7 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
758
778
|
readonly blockTextHash: {
|
|
759
779
|
readonly type: "string";
|
|
760
780
|
readonly pattern: "^h[0-9a-z]+$";
|
|
761
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
781
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
762
782
|
};
|
|
763
783
|
};
|
|
764
784
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -767,6 +787,291 @@ declare const FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA: {
|
|
|
767
787
|
};
|
|
768
788
|
readonly required: readonly ["id", "type", "blockId", "parties"];
|
|
769
789
|
readonly additionalProperties: false;
|
|
790
|
+
}, {
|
|
791
|
+
readonly type: "object";
|
|
792
|
+
readonly description: "Insert a row next to the row containing the anchor block.";
|
|
793
|
+
readonly properties: {
|
|
794
|
+
readonly type: {
|
|
795
|
+
readonly type: "string";
|
|
796
|
+
readonly enum: readonly ["insertTableRow"];
|
|
797
|
+
};
|
|
798
|
+
readonly blockId: {
|
|
799
|
+
readonly type: "string";
|
|
800
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
801
|
+
};
|
|
802
|
+
readonly position: {
|
|
803
|
+
readonly type: "string";
|
|
804
|
+
readonly enum: readonly ["after", "before"];
|
|
805
|
+
readonly description: "Insert after the anchor row (default) or before it. Defaults to \"after\".";
|
|
806
|
+
};
|
|
807
|
+
readonly cellTexts: {
|
|
808
|
+
readonly type: "array";
|
|
809
|
+
readonly description: "Initial text for physical cells in source order; omitted cells stay empty.";
|
|
810
|
+
readonly items: {
|
|
811
|
+
readonly type: "string";
|
|
812
|
+
};
|
|
813
|
+
};
|
|
814
|
+
readonly id: {
|
|
815
|
+
readonly type: "string";
|
|
816
|
+
readonly description: string;
|
|
817
|
+
};
|
|
818
|
+
readonly severity: {
|
|
819
|
+
readonly type: "string";
|
|
820
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
821
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
822
|
+
};
|
|
823
|
+
readonly area: {
|
|
824
|
+
readonly type: "string";
|
|
825
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
826
|
+
};
|
|
827
|
+
readonly precondition: {
|
|
828
|
+
readonly type: "object";
|
|
829
|
+
readonly description: string;
|
|
830
|
+
readonly properties: {
|
|
831
|
+
readonly blockTextHash: {
|
|
832
|
+
readonly type: "string";
|
|
833
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
834
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
readonly required: readonly ["blockTextHash"];
|
|
838
|
+
readonly additionalProperties: false;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
842
|
+
readonly additionalProperties: false;
|
|
843
|
+
}, {
|
|
844
|
+
readonly type: "object";
|
|
845
|
+
readonly description: "Delete the row containing the anchor block.";
|
|
846
|
+
readonly properties: {
|
|
847
|
+
readonly type: {
|
|
848
|
+
readonly type: "string";
|
|
849
|
+
readonly enum: readonly ["deleteTableRow"];
|
|
850
|
+
};
|
|
851
|
+
readonly blockId: {
|
|
852
|
+
readonly type: "string";
|
|
853
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
854
|
+
};
|
|
855
|
+
readonly id: {
|
|
856
|
+
readonly type: "string";
|
|
857
|
+
readonly description: string;
|
|
858
|
+
};
|
|
859
|
+
readonly severity: {
|
|
860
|
+
readonly type: "string";
|
|
861
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
862
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
863
|
+
};
|
|
864
|
+
readonly area: {
|
|
865
|
+
readonly type: "string";
|
|
866
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
867
|
+
};
|
|
868
|
+
readonly precondition: {
|
|
869
|
+
readonly type: "object";
|
|
870
|
+
readonly description: string;
|
|
871
|
+
readonly properties: {
|
|
872
|
+
readonly blockTextHash: {
|
|
873
|
+
readonly type: "string";
|
|
874
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
875
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
readonly required: readonly ["blockTextHash"];
|
|
879
|
+
readonly additionalProperties: false;
|
|
880
|
+
};
|
|
881
|
+
};
|
|
882
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
883
|
+
readonly additionalProperties: false;
|
|
884
|
+
}, {
|
|
885
|
+
readonly type: "object";
|
|
886
|
+
readonly description: "Insert a column next to the column containing the anchor block.";
|
|
887
|
+
readonly properties: {
|
|
888
|
+
readonly type: {
|
|
889
|
+
readonly type: "string";
|
|
890
|
+
readonly enum: readonly ["insertTableColumn"];
|
|
891
|
+
};
|
|
892
|
+
readonly blockId: {
|
|
893
|
+
readonly type: "string";
|
|
894
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
895
|
+
};
|
|
896
|
+
readonly position: {
|
|
897
|
+
readonly type: "string";
|
|
898
|
+
readonly enum: readonly ["after", "before"];
|
|
899
|
+
readonly description: "Insert after the anchor column (default) or before it. Defaults to \"after\".";
|
|
900
|
+
};
|
|
901
|
+
readonly cellTexts: {
|
|
902
|
+
readonly type: "array";
|
|
903
|
+
readonly description: "Initial text for newly created physical cells in row order.";
|
|
904
|
+
readonly items: {
|
|
905
|
+
readonly type: "string";
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
readonly id: {
|
|
909
|
+
readonly type: "string";
|
|
910
|
+
readonly description: string;
|
|
911
|
+
};
|
|
912
|
+
readonly severity: {
|
|
913
|
+
readonly type: "string";
|
|
914
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
915
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
916
|
+
};
|
|
917
|
+
readonly area: {
|
|
918
|
+
readonly type: "string";
|
|
919
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
920
|
+
};
|
|
921
|
+
readonly precondition: {
|
|
922
|
+
readonly type: "object";
|
|
923
|
+
readonly description: string;
|
|
924
|
+
readonly properties: {
|
|
925
|
+
readonly blockTextHash: {
|
|
926
|
+
readonly type: "string";
|
|
927
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
928
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
929
|
+
};
|
|
930
|
+
};
|
|
931
|
+
readonly required: readonly ["blockTextHash"];
|
|
932
|
+
readonly additionalProperties: false;
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
936
|
+
readonly additionalProperties: false;
|
|
937
|
+
}, {
|
|
938
|
+
readonly type: "object";
|
|
939
|
+
readonly description: "Delete the column containing the anchor block.";
|
|
940
|
+
readonly properties: {
|
|
941
|
+
readonly type: {
|
|
942
|
+
readonly type: "string";
|
|
943
|
+
readonly enum: readonly ["deleteTableColumn"];
|
|
944
|
+
};
|
|
945
|
+
readonly blockId: {
|
|
946
|
+
readonly type: "string";
|
|
947
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
948
|
+
};
|
|
949
|
+
readonly id: {
|
|
950
|
+
readonly type: "string";
|
|
951
|
+
readonly description: string;
|
|
952
|
+
};
|
|
953
|
+
readonly severity: {
|
|
954
|
+
readonly type: "string";
|
|
955
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
956
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
957
|
+
};
|
|
958
|
+
readonly area: {
|
|
959
|
+
readonly type: "string";
|
|
960
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
961
|
+
};
|
|
962
|
+
readonly precondition: {
|
|
963
|
+
readonly type: "object";
|
|
964
|
+
readonly description: string;
|
|
965
|
+
readonly properties: {
|
|
966
|
+
readonly blockTextHash: {
|
|
967
|
+
readonly type: "string";
|
|
968
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
969
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
readonly required: readonly ["blockTextHash"];
|
|
973
|
+
readonly additionalProperties: false;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
977
|
+
readonly additionalProperties: false;
|
|
978
|
+
}, {
|
|
979
|
+
readonly type: "object";
|
|
980
|
+
readonly description: "Merge a region targeted by an opposite-cell anchor or a downward row count. Tracked mode supports vertical-only regions with empty continuation cells.";
|
|
981
|
+
readonly properties: {
|
|
982
|
+
readonly type: {
|
|
983
|
+
readonly type: "string";
|
|
984
|
+
readonly enum: readonly ["mergeTableCells"];
|
|
985
|
+
};
|
|
986
|
+
readonly blockId: {
|
|
987
|
+
readonly type: "string";
|
|
988
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
989
|
+
};
|
|
990
|
+
readonly endBlockId: {
|
|
991
|
+
readonly type: "string";
|
|
992
|
+
readonly minLength: 1;
|
|
993
|
+
readonly description: "Stable paragraph anchor inside the opposite corner cell.";
|
|
994
|
+
};
|
|
995
|
+
readonly rowCount: {
|
|
996
|
+
readonly type: "integer";
|
|
997
|
+
readonly minimum: 2;
|
|
998
|
+
readonly description: "Number of grid rows to merge downward from the anchored cell.";
|
|
999
|
+
};
|
|
1000
|
+
readonly id: {
|
|
1001
|
+
readonly type: "string";
|
|
1002
|
+
readonly description: string;
|
|
1003
|
+
};
|
|
1004
|
+
readonly severity: {
|
|
1005
|
+
readonly type: "string";
|
|
1006
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
1007
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
1008
|
+
};
|
|
1009
|
+
readonly area: {
|
|
1010
|
+
readonly type: "string";
|
|
1011
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
1012
|
+
};
|
|
1013
|
+
readonly precondition: {
|
|
1014
|
+
readonly type: "object";
|
|
1015
|
+
readonly description: string;
|
|
1016
|
+
readonly properties: {
|
|
1017
|
+
readonly blockTextHash: {
|
|
1018
|
+
readonly type: "string";
|
|
1019
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
1020
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1021
|
+
};
|
|
1022
|
+
};
|
|
1023
|
+
readonly required: readonly ["blockTextHash"];
|
|
1024
|
+
readonly additionalProperties: false;
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
1028
|
+
readonly oneOf: readonly [{
|
|
1029
|
+
readonly required: readonly ["endBlockId"];
|
|
1030
|
+
}, {
|
|
1031
|
+
readonly required: readonly ["rowCount"];
|
|
1032
|
+
}];
|
|
1033
|
+
readonly additionalProperties: false;
|
|
1034
|
+
}, {
|
|
1035
|
+
readonly type: "object";
|
|
1036
|
+
readonly description: "Split one spanned table cell into individual cells. Tracked mode supports vertical-only spans.";
|
|
1037
|
+
readonly properties: {
|
|
1038
|
+
readonly type: {
|
|
1039
|
+
readonly type: "string";
|
|
1040
|
+
readonly enum: readonly ["splitTableCell"];
|
|
1041
|
+
};
|
|
1042
|
+
readonly blockId: {
|
|
1043
|
+
readonly type: "string";
|
|
1044
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
1045
|
+
};
|
|
1046
|
+
readonly id: {
|
|
1047
|
+
readonly type: "string";
|
|
1048
|
+
readonly description: string;
|
|
1049
|
+
};
|
|
1050
|
+
readonly severity: {
|
|
1051
|
+
readonly type: "string";
|
|
1052
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
1053
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
1054
|
+
};
|
|
1055
|
+
readonly area: {
|
|
1056
|
+
readonly type: "string";
|
|
1057
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
1058
|
+
};
|
|
1059
|
+
readonly precondition: {
|
|
1060
|
+
readonly type: "object";
|
|
1061
|
+
readonly description: string;
|
|
1062
|
+
readonly properties: {
|
|
1063
|
+
readonly blockTextHash: {
|
|
1064
|
+
readonly type: "string";
|
|
1065
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
1066
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1067
|
+
};
|
|
1068
|
+
};
|
|
1069
|
+
readonly required: readonly ["blockTextHash"];
|
|
1070
|
+
readonly additionalProperties: false;
|
|
1071
|
+
};
|
|
1072
|
+
};
|
|
1073
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
1074
|
+
readonly additionalProperties: false;
|
|
770
1075
|
}];
|
|
771
1076
|
};
|
|
772
1077
|
/**
|
|
@@ -843,7 +1148,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
843
1148
|
readonly blockTextHash: {
|
|
844
1149
|
readonly type: "string";
|
|
845
1150
|
readonly pattern: "^h[0-9a-z]+$";
|
|
846
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1151
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
847
1152
|
};
|
|
848
1153
|
};
|
|
849
1154
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -930,7 +1235,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
930
1235
|
readonly blockTextHash: {
|
|
931
1236
|
readonly type: "string";
|
|
932
1237
|
readonly pattern: "^h[0-9a-z]+$";
|
|
933
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1238
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
934
1239
|
};
|
|
935
1240
|
};
|
|
936
1241
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1013,7 +1318,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1013
1318
|
readonly blockTextHash: {
|
|
1014
1319
|
readonly type: "string";
|
|
1015
1320
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1016
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1321
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1017
1322
|
};
|
|
1018
1323
|
};
|
|
1019
1324
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1024,7 +1329,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1024
1329
|
readonly additionalProperties: false;
|
|
1025
1330
|
}, {
|
|
1026
1331
|
readonly type: "object";
|
|
1027
|
-
readonly description:
|
|
1332
|
+
readonly description: "Apply inline formatting to the text covered by a range handle in direct or tracked mode.";
|
|
1028
1333
|
readonly properties: {
|
|
1029
1334
|
readonly type: {
|
|
1030
1335
|
readonly type: "string";
|
|
@@ -1101,7 +1406,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1101
1406
|
readonly blockTextHash: {
|
|
1102
1407
|
readonly type: "string";
|
|
1103
1408
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1104
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1409
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1105
1410
|
};
|
|
1106
1411
|
};
|
|
1107
1412
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1170,7 +1475,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1170
1475
|
readonly blockTextHash: {
|
|
1171
1476
|
readonly type: "string";
|
|
1172
1477
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1173
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1478
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1174
1479
|
};
|
|
1175
1480
|
};
|
|
1176
1481
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1239,7 +1544,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1239
1544
|
readonly blockTextHash: {
|
|
1240
1545
|
readonly type: "string";
|
|
1241
1546
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1242
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1547
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1243
1548
|
};
|
|
1244
1549
|
};
|
|
1245
1550
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1304,7 +1609,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1304
1609
|
readonly blockTextHash: {
|
|
1305
1610
|
readonly type: "string";
|
|
1306
1611
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1307
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1612
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1308
1613
|
};
|
|
1309
1614
|
};
|
|
1310
1615
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1357,7 +1662,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1357
1662
|
readonly blockTextHash: {
|
|
1358
1663
|
readonly type: "string";
|
|
1359
1664
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1360
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1665
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1361
1666
|
};
|
|
1362
1667
|
};
|
|
1363
1668
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1414,7 +1719,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1414
1719
|
readonly blockTextHash: {
|
|
1415
1720
|
readonly type: "string";
|
|
1416
1721
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1417
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1722
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1418
1723
|
};
|
|
1419
1724
|
};
|
|
1420
1725
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1495,7 +1800,7 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1495
1800
|
readonly blockTextHash: {
|
|
1496
1801
|
readonly type: "string";
|
|
1497
1802
|
readonly pattern: "^h[0-9a-z]+$";
|
|
1498
|
-
readonly description: "Normalized hash of the target block's text.";
|
|
1803
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1499
1804
|
};
|
|
1500
1805
|
};
|
|
1501
1806
|
readonly required: readonly ["blockTextHash"];
|
|
@@ -1504,12 +1809,297 @@ declare const FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA: {
|
|
|
1504
1809
|
};
|
|
1505
1810
|
readonly required: readonly ["id", "type", "blockId", "parties"];
|
|
1506
1811
|
readonly additionalProperties: false;
|
|
1812
|
+
}, {
|
|
1813
|
+
readonly type: "object";
|
|
1814
|
+
readonly description: "Insert a row next to the row containing the anchor block.";
|
|
1815
|
+
readonly properties: {
|
|
1816
|
+
readonly type: {
|
|
1817
|
+
readonly type: "string";
|
|
1818
|
+
readonly enum: readonly ["insertTableRow"];
|
|
1819
|
+
};
|
|
1820
|
+
readonly blockId: {
|
|
1821
|
+
readonly type: "string";
|
|
1822
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
1823
|
+
};
|
|
1824
|
+
readonly position: {
|
|
1825
|
+
readonly type: "string";
|
|
1826
|
+
readonly enum: readonly ["after", "before"];
|
|
1827
|
+
readonly description: "Insert after the anchor row (default) or before it. Defaults to \"after\".";
|
|
1828
|
+
};
|
|
1829
|
+
readonly cellTexts: {
|
|
1830
|
+
readonly type: "array";
|
|
1831
|
+
readonly description: "Initial text for physical cells in source order; omitted cells stay empty.";
|
|
1832
|
+
readonly items: {
|
|
1833
|
+
readonly type: "string";
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1836
|
+
readonly id: {
|
|
1837
|
+
readonly type: "string";
|
|
1838
|
+
readonly description: string;
|
|
1839
|
+
};
|
|
1840
|
+
readonly severity: {
|
|
1841
|
+
readonly type: "string";
|
|
1842
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
1843
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
1844
|
+
};
|
|
1845
|
+
readonly area: {
|
|
1846
|
+
readonly type: "string";
|
|
1847
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
1848
|
+
};
|
|
1849
|
+
readonly precondition: {
|
|
1850
|
+
readonly type: "object";
|
|
1851
|
+
readonly description: string;
|
|
1852
|
+
readonly properties: {
|
|
1853
|
+
readonly blockTextHash: {
|
|
1854
|
+
readonly type: "string";
|
|
1855
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
1856
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1859
|
+
readonly required: readonly ["blockTextHash"];
|
|
1860
|
+
readonly additionalProperties: false;
|
|
1861
|
+
};
|
|
1862
|
+
};
|
|
1863
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
1864
|
+
readonly additionalProperties: false;
|
|
1865
|
+
}, {
|
|
1866
|
+
readonly type: "object";
|
|
1867
|
+
readonly description: "Delete the row containing the anchor block.";
|
|
1868
|
+
readonly properties: {
|
|
1869
|
+
readonly type: {
|
|
1870
|
+
readonly type: "string";
|
|
1871
|
+
readonly enum: readonly ["deleteTableRow"];
|
|
1872
|
+
};
|
|
1873
|
+
readonly blockId: {
|
|
1874
|
+
readonly type: "string";
|
|
1875
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
1876
|
+
};
|
|
1877
|
+
readonly id: {
|
|
1878
|
+
readonly type: "string";
|
|
1879
|
+
readonly description: string;
|
|
1880
|
+
};
|
|
1881
|
+
readonly severity: {
|
|
1882
|
+
readonly type: "string";
|
|
1883
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
1884
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
1885
|
+
};
|
|
1886
|
+
readonly area: {
|
|
1887
|
+
readonly type: "string";
|
|
1888
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
1889
|
+
};
|
|
1890
|
+
readonly precondition: {
|
|
1891
|
+
readonly type: "object";
|
|
1892
|
+
readonly description: string;
|
|
1893
|
+
readonly properties: {
|
|
1894
|
+
readonly blockTextHash: {
|
|
1895
|
+
readonly type: "string";
|
|
1896
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
1897
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1898
|
+
};
|
|
1899
|
+
};
|
|
1900
|
+
readonly required: readonly ["blockTextHash"];
|
|
1901
|
+
readonly additionalProperties: false;
|
|
1902
|
+
};
|
|
1903
|
+
};
|
|
1904
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
1905
|
+
readonly additionalProperties: false;
|
|
1906
|
+
}, {
|
|
1907
|
+
readonly type: "object";
|
|
1908
|
+
readonly description: "Insert a column next to the column containing the anchor block.";
|
|
1909
|
+
readonly properties: {
|
|
1910
|
+
readonly type: {
|
|
1911
|
+
readonly type: "string";
|
|
1912
|
+
readonly enum: readonly ["insertTableColumn"];
|
|
1913
|
+
};
|
|
1914
|
+
readonly blockId: {
|
|
1915
|
+
readonly type: "string";
|
|
1916
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
1917
|
+
};
|
|
1918
|
+
readonly position: {
|
|
1919
|
+
readonly type: "string";
|
|
1920
|
+
readonly enum: readonly ["after", "before"];
|
|
1921
|
+
readonly description: "Insert after the anchor column (default) or before it. Defaults to \"after\".";
|
|
1922
|
+
};
|
|
1923
|
+
readonly cellTexts: {
|
|
1924
|
+
readonly type: "array";
|
|
1925
|
+
readonly description: "Initial text for newly created physical cells in row order.";
|
|
1926
|
+
readonly items: {
|
|
1927
|
+
readonly type: "string";
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
readonly id: {
|
|
1931
|
+
readonly type: "string";
|
|
1932
|
+
readonly description: string;
|
|
1933
|
+
};
|
|
1934
|
+
readonly severity: {
|
|
1935
|
+
readonly type: "string";
|
|
1936
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
1937
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
1938
|
+
};
|
|
1939
|
+
readonly area: {
|
|
1940
|
+
readonly type: "string";
|
|
1941
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
1942
|
+
};
|
|
1943
|
+
readonly precondition: {
|
|
1944
|
+
readonly type: "object";
|
|
1945
|
+
readonly description: string;
|
|
1946
|
+
readonly properties: {
|
|
1947
|
+
readonly blockTextHash: {
|
|
1948
|
+
readonly type: "string";
|
|
1949
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
1950
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1951
|
+
};
|
|
1952
|
+
};
|
|
1953
|
+
readonly required: readonly ["blockTextHash"];
|
|
1954
|
+
readonly additionalProperties: false;
|
|
1955
|
+
};
|
|
1956
|
+
};
|
|
1957
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
1958
|
+
readonly additionalProperties: false;
|
|
1959
|
+
}, {
|
|
1960
|
+
readonly type: "object";
|
|
1961
|
+
readonly description: "Delete the column containing the anchor block.";
|
|
1962
|
+
readonly properties: {
|
|
1963
|
+
readonly type: {
|
|
1964
|
+
readonly type: "string";
|
|
1965
|
+
readonly enum: readonly ["deleteTableColumn"];
|
|
1966
|
+
};
|
|
1967
|
+
readonly blockId: {
|
|
1968
|
+
readonly type: "string";
|
|
1969
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
1970
|
+
};
|
|
1971
|
+
readonly id: {
|
|
1972
|
+
readonly type: "string";
|
|
1973
|
+
readonly description: string;
|
|
1974
|
+
};
|
|
1975
|
+
readonly severity: {
|
|
1976
|
+
readonly type: "string";
|
|
1977
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
1978
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
1979
|
+
};
|
|
1980
|
+
readonly area: {
|
|
1981
|
+
readonly type: "string";
|
|
1982
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
1983
|
+
};
|
|
1984
|
+
readonly precondition: {
|
|
1985
|
+
readonly type: "object";
|
|
1986
|
+
readonly description: string;
|
|
1987
|
+
readonly properties: {
|
|
1988
|
+
readonly blockTextHash: {
|
|
1989
|
+
readonly type: "string";
|
|
1990
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
1991
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
1992
|
+
};
|
|
1993
|
+
};
|
|
1994
|
+
readonly required: readonly ["blockTextHash"];
|
|
1995
|
+
readonly additionalProperties: false;
|
|
1996
|
+
};
|
|
1997
|
+
};
|
|
1998
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
1999
|
+
readonly additionalProperties: false;
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly type: "object";
|
|
2002
|
+
readonly description: "Merge a region targeted by an opposite-cell anchor or a downward row count. Tracked mode supports vertical-only regions with empty continuation cells.";
|
|
2003
|
+
readonly properties: {
|
|
2004
|
+
readonly type: {
|
|
2005
|
+
readonly type: "string";
|
|
2006
|
+
readonly enum: readonly ["mergeTableCells"];
|
|
2007
|
+
};
|
|
2008
|
+
readonly blockId: {
|
|
2009
|
+
readonly type: "string";
|
|
2010
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
2011
|
+
};
|
|
2012
|
+
readonly endBlockId: {
|
|
2013
|
+
readonly type: "string";
|
|
2014
|
+
readonly minLength: 1;
|
|
2015
|
+
readonly description: "Stable paragraph anchor inside the opposite corner cell.";
|
|
2016
|
+
};
|
|
2017
|
+
readonly rowCount: {
|
|
2018
|
+
readonly type: "integer";
|
|
2019
|
+
readonly minimum: 2;
|
|
2020
|
+
readonly description: "Number of grid rows to merge downward from the anchored cell.";
|
|
2021
|
+
};
|
|
2022
|
+
readonly id: {
|
|
2023
|
+
readonly type: "string";
|
|
2024
|
+
readonly description: string;
|
|
2025
|
+
};
|
|
2026
|
+
readonly severity: {
|
|
2027
|
+
readonly type: "string";
|
|
2028
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
2029
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
2030
|
+
};
|
|
2031
|
+
readonly area: {
|
|
2032
|
+
readonly type: "string";
|
|
2033
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
2034
|
+
};
|
|
2035
|
+
readonly precondition: {
|
|
2036
|
+
readonly type: "object";
|
|
2037
|
+
readonly description: string;
|
|
2038
|
+
readonly properties: {
|
|
2039
|
+
readonly blockTextHash: {
|
|
2040
|
+
readonly type: "string";
|
|
2041
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
2042
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
2043
|
+
};
|
|
2044
|
+
};
|
|
2045
|
+
readonly required: readonly ["blockTextHash"];
|
|
2046
|
+
readonly additionalProperties: false;
|
|
2047
|
+
};
|
|
2048
|
+
};
|
|
2049
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
2050
|
+
readonly oneOf: readonly [{
|
|
2051
|
+
readonly required: readonly ["endBlockId"];
|
|
2052
|
+
}, {
|
|
2053
|
+
readonly required: readonly ["rowCount"];
|
|
2054
|
+
}];
|
|
2055
|
+
readonly additionalProperties: false;
|
|
2056
|
+
}, {
|
|
2057
|
+
readonly type: "object";
|
|
2058
|
+
readonly description: "Split one spanned table cell into individual cells. Tracked mode supports vertical-only spans.";
|
|
2059
|
+
readonly properties: {
|
|
2060
|
+
readonly type: {
|
|
2061
|
+
readonly type: "string";
|
|
2062
|
+
readonly enum: readonly ["splitTableCell"];
|
|
2063
|
+
};
|
|
2064
|
+
readonly blockId: {
|
|
2065
|
+
readonly type: "string";
|
|
2066
|
+
readonly description: "Id of the target block, from a prior document read.";
|
|
2067
|
+
};
|
|
2068
|
+
readonly id: {
|
|
2069
|
+
readonly type: "string";
|
|
2070
|
+
readonly description: string;
|
|
2071
|
+
};
|
|
2072
|
+
readonly severity: {
|
|
2073
|
+
readonly type: "string";
|
|
2074
|
+
readonly enum: readonly ["low", "medium", "high"];
|
|
2075
|
+
readonly description: "Optional review severity for structured-review workflows.";
|
|
2076
|
+
};
|
|
2077
|
+
readonly area: {
|
|
2078
|
+
readonly type: "string";
|
|
2079
|
+
readonly description: "Optional review area label (e.g. \"Penalty\") for structured-review workflows.";
|
|
2080
|
+
};
|
|
2081
|
+
readonly precondition: {
|
|
2082
|
+
readonly type: "object";
|
|
2083
|
+
readonly description: string;
|
|
2084
|
+
readonly properties: {
|
|
2085
|
+
readonly blockTextHash: {
|
|
2086
|
+
readonly type: "string";
|
|
2087
|
+
readonly pattern: "^h[0-9a-z]+$";
|
|
2088
|
+
readonly description: "Normalized hash of the target block's text, from a prior document read.";
|
|
2089
|
+
};
|
|
2090
|
+
};
|
|
2091
|
+
readonly required: readonly ["blockTextHash"];
|
|
2092
|
+
readonly additionalProperties: false;
|
|
2093
|
+
};
|
|
2094
|
+
};
|
|
2095
|
+
readonly required: readonly ["id", "type", "blockId"];
|
|
2096
|
+
readonly additionalProperties: false;
|
|
1507
2097
|
}];
|
|
1508
2098
|
};
|
|
1509
2099
|
};
|
|
1510
2100
|
readonly mode: {
|
|
1511
2101
|
readonly type: "string";
|
|
1512
|
-
readonly enum: readonly ["direct", "tracked-changes"];
|
|
2102
|
+
readonly enum: readonly ["direct", "tracked-changes", "suggested"];
|
|
1513
2103
|
readonly description: string;
|
|
1514
2104
|
};
|
|
1515
2105
|
readonly atomic: {
|
|
@@ -1573,4 +2163,4 @@ type FolioDocumentOperationBatchSchema = StandardSchemaV1<unknown, FolioDocument
|
|
|
1573
2163
|
*/
|
|
1574
2164
|
declare const folioDocumentOperationBatchSchema: FolioDocumentOperationBatchSchema;
|
|
1575
2165
|
//#endregion
|
|
1576
|
-
export { FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA, FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA, FOLIO_TEXT_RANGE_JSON_SCHEMA, folioDocumentOperationBatchSchema };
|
|
2166
|
+
export { FOLIO_DOCUMENT_OPERATION_BATCH_JSON_SCHEMA, FOLIO_DOCUMENT_OPERATION_JSON_SCHEMA, FOLIO_PRECONDITION_JSON_SCHEMA, FOLIO_TEXT_RANGE_JSON_SCHEMA, folioDocumentOperationBatchSchema };
|