@superdoc-dev/sdk 1.0.0-alpha.32 → 1.0.0-alpha.34

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.
@@ -5,6 +5,7 @@
5
5
  "get_document_markdown": "doc.getMarkdown",
6
6
  "get_document_html": "doc.getHtml",
7
7
  "get_document_info": "doc.info",
8
+ "clear_content": "doc.clearContent",
8
9
  "insert_content": "doc.insert",
9
10
  "replace_content": "doc.replace",
10
11
  "delete_content": "doc.delete",
@@ -162,6 +163,20 @@
162
163
  "set_image_position": "doc.images.setPosition",
163
164
  "set_image_anchor_options": "doc.images.setAnchorOptions",
164
165
  "set_image_z_order": "doc.images.setZOrder",
166
+ "scale_image": "doc.images.scale",
167
+ "set_image_lock_aspect_ratio": "doc.images.setLockAspectRatio",
168
+ "rotate_image": "doc.images.rotate",
169
+ "flip_image": "doc.images.flip",
170
+ "crop_image": "doc.images.crop",
171
+ "reset_image_crop": "doc.images.resetCrop",
172
+ "replace_image_source": "doc.images.replaceSource",
173
+ "set_image_alt_text": "doc.images.setAltText",
174
+ "set_image_decorative": "doc.images.setDecorative",
175
+ "set_image_name": "doc.images.setName",
176
+ "set_image_hyperlink": "doc.images.setHyperlink",
177
+ "insert_image_caption": "doc.images.insertCaption",
178
+ "update_image_caption": "doc.images.updateCaption",
179
+ "remove_image_caption": "doc.images.removeCaption",
165
180
  "list_hyperlinks": "doc.hyperlinks.list",
166
181
  "get_hyperlink": "doc.hyperlinks.get",
167
182
  "wrap_hyperlink": "doc.hyperlinks.wrap",
@@ -93,5 +93,5 @@
93
93
  ]
94
94
  }
95
95
  },
96
- "contractHash": "628c99fc8d67fba6"
96
+ "contractHash": "a5bfa5af6ae6288e"
97
97
  }
@@ -123,6 +123,32 @@
123
123
  "additionalProperties": false
124
124
  }
125
125
  },
126
+ {
127
+ "name": "clear_content",
128
+ "description": "Clear all document body content, leaving a single empty paragraph.",
129
+ "input_schema": {
130
+ "type": "object",
131
+ "properties": {
132
+ "doc": {
133
+ "type": "string"
134
+ },
135
+ "sessionId": {
136
+ "type": "string"
137
+ },
138
+ "force": {
139
+ "type": "boolean"
140
+ },
141
+ "changeMode": {
142
+ "type": "string",
143
+ "enum": [
144
+ "direct",
145
+ "tracked"
146
+ ]
147
+ }
148
+ },
149
+ "additionalProperties": false
150
+ }
151
+ },
126
152
  {
127
153
  "name": "insert_content",
128
154
  "description": "Insert content at a target position, or at the end of the document when target is omitted. Supports text (default), markdown, and html content types via the `type` field.",
@@ -16489,6 +16515,524 @@
16489
16515
  "additionalProperties": false
16490
16516
  }
16491
16517
  },
16518
+ {
16519
+ "name": "scale_image",
16520
+ "description": "Scale an image by a uniform factor applied to both dimensions.",
16521
+ "input_schema": {
16522
+ "type": "object",
16523
+ "properties": {
16524
+ "doc": {
16525
+ "type": "string"
16526
+ },
16527
+ "sessionId": {
16528
+ "type": "string"
16529
+ },
16530
+ "force": {
16531
+ "type": "boolean"
16532
+ },
16533
+ "changeMode": {
16534
+ "type": "string",
16535
+ "enum": [
16536
+ "direct",
16537
+ "tracked"
16538
+ ]
16539
+ },
16540
+ "imageId": {
16541
+ "type": "string"
16542
+ },
16543
+ "factor": {
16544
+ "type": "number"
16545
+ }
16546
+ },
16547
+ "required": [
16548
+ "imageId",
16549
+ "factor"
16550
+ ],
16551
+ "additionalProperties": false
16552
+ }
16553
+ },
16554
+ {
16555
+ "name": "set_image_lock_aspect_ratio",
16556
+ "description": "Lock or unlock the aspect ratio for an image.",
16557
+ "input_schema": {
16558
+ "type": "object",
16559
+ "properties": {
16560
+ "doc": {
16561
+ "type": "string"
16562
+ },
16563
+ "sessionId": {
16564
+ "type": "string"
16565
+ },
16566
+ "force": {
16567
+ "type": "boolean"
16568
+ },
16569
+ "changeMode": {
16570
+ "type": "string",
16571
+ "enum": [
16572
+ "direct",
16573
+ "tracked"
16574
+ ]
16575
+ },
16576
+ "imageId": {
16577
+ "type": "string"
16578
+ },
16579
+ "locked": {
16580
+ "type": "boolean"
16581
+ }
16582
+ },
16583
+ "required": [
16584
+ "imageId",
16585
+ "locked"
16586
+ ],
16587
+ "additionalProperties": false
16588
+ }
16589
+ },
16590
+ {
16591
+ "name": "rotate_image",
16592
+ "description": "Set the absolute rotation angle for an image.",
16593
+ "input_schema": {
16594
+ "type": "object",
16595
+ "properties": {
16596
+ "doc": {
16597
+ "type": "string"
16598
+ },
16599
+ "sessionId": {
16600
+ "type": "string"
16601
+ },
16602
+ "force": {
16603
+ "type": "boolean"
16604
+ },
16605
+ "changeMode": {
16606
+ "type": "string",
16607
+ "enum": [
16608
+ "direct",
16609
+ "tracked"
16610
+ ]
16611
+ },
16612
+ "imageId": {
16613
+ "type": "string"
16614
+ },
16615
+ "angle": {
16616
+ "type": "number"
16617
+ }
16618
+ },
16619
+ "required": [
16620
+ "imageId",
16621
+ "angle"
16622
+ ],
16623
+ "additionalProperties": false
16624
+ }
16625
+ },
16626
+ {
16627
+ "name": "flip_image",
16628
+ "description": "Set horizontal and/or vertical flip state for an image.",
16629
+ "input_schema": {
16630
+ "type": "object",
16631
+ "properties": {
16632
+ "doc": {
16633
+ "type": "string"
16634
+ },
16635
+ "sessionId": {
16636
+ "type": "string"
16637
+ },
16638
+ "force": {
16639
+ "type": "boolean"
16640
+ },
16641
+ "changeMode": {
16642
+ "type": "string",
16643
+ "enum": [
16644
+ "direct",
16645
+ "tracked"
16646
+ ]
16647
+ },
16648
+ "imageId": {
16649
+ "type": "string"
16650
+ },
16651
+ "horizontal": {
16652
+ "type": "boolean"
16653
+ },
16654
+ "vertical": {
16655
+ "type": "boolean"
16656
+ }
16657
+ },
16658
+ "required": [
16659
+ "imageId"
16660
+ ],
16661
+ "additionalProperties": false
16662
+ }
16663
+ },
16664
+ {
16665
+ "name": "crop_image",
16666
+ "description": "Apply rectangular edge-percentage crop to an image.",
16667
+ "input_schema": {
16668
+ "type": "object",
16669
+ "properties": {
16670
+ "doc": {
16671
+ "type": "string"
16672
+ },
16673
+ "sessionId": {
16674
+ "type": "string"
16675
+ },
16676
+ "force": {
16677
+ "type": "boolean"
16678
+ },
16679
+ "changeMode": {
16680
+ "type": "string",
16681
+ "enum": [
16682
+ "direct",
16683
+ "tracked"
16684
+ ]
16685
+ },
16686
+ "imageId": {
16687
+ "type": "string"
16688
+ },
16689
+ "crop": {
16690
+ "type": "object",
16691
+ "properties": {
16692
+ "left": {
16693
+ "type": "number"
16694
+ },
16695
+ "top": {
16696
+ "type": "number"
16697
+ },
16698
+ "right": {
16699
+ "type": "number"
16700
+ },
16701
+ "bottom": {
16702
+ "type": "number"
16703
+ }
16704
+ }
16705
+ }
16706
+ },
16707
+ "required": [
16708
+ "imageId",
16709
+ "crop"
16710
+ ],
16711
+ "additionalProperties": false
16712
+ }
16713
+ },
16714
+ {
16715
+ "name": "reset_image_crop",
16716
+ "description": "Remove all cropping from an image.",
16717
+ "input_schema": {
16718
+ "type": "object",
16719
+ "properties": {
16720
+ "doc": {
16721
+ "type": "string"
16722
+ },
16723
+ "sessionId": {
16724
+ "type": "string"
16725
+ },
16726
+ "force": {
16727
+ "type": "boolean"
16728
+ },
16729
+ "changeMode": {
16730
+ "type": "string",
16731
+ "enum": [
16732
+ "direct",
16733
+ "tracked"
16734
+ ]
16735
+ },
16736
+ "imageId": {
16737
+ "type": "string"
16738
+ }
16739
+ },
16740
+ "required": [
16741
+ "imageId"
16742
+ ],
16743
+ "additionalProperties": false
16744
+ }
16745
+ },
16746
+ {
16747
+ "name": "replace_image_source",
16748
+ "description": "Replace the image source while preserving identity and placement.",
16749
+ "input_schema": {
16750
+ "type": "object",
16751
+ "properties": {
16752
+ "doc": {
16753
+ "type": "string"
16754
+ },
16755
+ "sessionId": {
16756
+ "type": "string"
16757
+ },
16758
+ "force": {
16759
+ "type": "boolean"
16760
+ },
16761
+ "changeMode": {
16762
+ "type": "string",
16763
+ "enum": [
16764
+ "direct",
16765
+ "tracked"
16766
+ ]
16767
+ },
16768
+ "imageId": {
16769
+ "type": "string"
16770
+ },
16771
+ "src": {
16772
+ "type": "string"
16773
+ },
16774
+ "resetSize": {
16775
+ "type": "boolean"
16776
+ }
16777
+ },
16778
+ "required": [
16779
+ "imageId",
16780
+ "src"
16781
+ ],
16782
+ "additionalProperties": false
16783
+ }
16784
+ },
16785
+ {
16786
+ "name": "set_image_alt_text",
16787
+ "description": "Set the accessibility description (alt text) for an image.",
16788
+ "input_schema": {
16789
+ "type": "object",
16790
+ "properties": {
16791
+ "doc": {
16792
+ "type": "string"
16793
+ },
16794
+ "sessionId": {
16795
+ "type": "string"
16796
+ },
16797
+ "force": {
16798
+ "type": "boolean"
16799
+ },
16800
+ "changeMode": {
16801
+ "type": "string",
16802
+ "enum": [
16803
+ "direct",
16804
+ "tracked"
16805
+ ]
16806
+ },
16807
+ "imageId": {
16808
+ "type": "string"
16809
+ },
16810
+ "description": {
16811
+ "type": "string"
16812
+ }
16813
+ },
16814
+ "required": [
16815
+ "imageId",
16816
+ "description"
16817
+ ],
16818
+ "additionalProperties": false
16819
+ }
16820
+ },
16821
+ {
16822
+ "name": "set_image_decorative",
16823
+ "description": "Mark or unmark an image as decorative.",
16824
+ "input_schema": {
16825
+ "type": "object",
16826
+ "properties": {
16827
+ "doc": {
16828
+ "type": "string"
16829
+ },
16830
+ "sessionId": {
16831
+ "type": "string"
16832
+ },
16833
+ "force": {
16834
+ "type": "boolean"
16835
+ },
16836
+ "changeMode": {
16837
+ "type": "string",
16838
+ "enum": [
16839
+ "direct",
16840
+ "tracked"
16841
+ ]
16842
+ },
16843
+ "imageId": {
16844
+ "type": "string"
16845
+ },
16846
+ "decorative": {
16847
+ "type": "boolean"
16848
+ }
16849
+ },
16850
+ "required": [
16851
+ "imageId",
16852
+ "decorative"
16853
+ ],
16854
+ "additionalProperties": false
16855
+ }
16856
+ },
16857
+ {
16858
+ "name": "set_image_name",
16859
+ "description": "Set the object name for an image.",
16860
+ "input_schema": {
16861
+ "type": "object",
16862
+ "properties": {
16863
+ "doc": {
16864
+ "type": "string"
16865
+ },
16866
+ "sessionId": {
16867
+ "type": "string"
16868
+ },
16869
+ "force": {
16870
+ "type": "boolean"
16871
+ },
16872
+ "changeMode": {
16873
+ "type": "string",
16874
+ "enum": [
16875
+ "direct",
16876
+ "tracked"
16877
+ ]
16878
+ },
16879
+ "imageId": {
16880
+ "type": "string"
16881
+ },
16882
+ "name": {
16883
+ "type": "string"
16884
+ }
16885
+ },
16886
+ "required": [
16887
+ "imageId",
16888
+ "name"
16889
+ ],
16890
+ "additionalProperties": false
16891
+ }
16892
+ },
16893
+ {
16894
+ "name": "set_image_hyperlink",
16895
+ "description": "Set or remove the hyperlink attached to an image.",
16896
+ "input_schema": {
16897
+ "type": "object",
16898
+ "properties": {
16899
+ "doc": {
16900
+ "type": "string"
16901
+ },
16902
+ "sessionId": {
16903
+ "type": "string"
16904
+ },
16905
+ "force": {
16906
+ "type": "boolean"
16907
+ },
16908
+ "changeMode": {
16909
+ "type": "string",
16910
+ "enum": [
16911
+ "direct",
16912
+ "tracked"
16913
+ ]
16914
+ },
16915
+ "imageId": {
16916
+ "type": "string"
16917
+ },
16918
+ "url": {
16919
+ "type": "object"
16920
+ },
16921
+ "tooltip": {
16922
+ "type": "string"
16923
+ }
16924
+ },
16925
+ "required": [
16926
+ "imageId",
16927
+ "url"
16928
+ ],
16929
+ "additionalProperties": false
16930
+ }
16931
+ },
16932
+ {
16933
+ "name": "insert_image_caption",
16934
+ "description": "Insert a caption paragraph below the image.",
16935
+ "input_schema": {
16936
+ "type": "object",
16937
+ "properties": {
16938
+ "doc": {
16939
+ "type": "string"
16940
+ },
16941
+ "sessionId": {
16942
+ "type": "string"
16943
+ },
16944
+ "force": {
16945
+ "type": "boolean"
16946
+ },
16947
+ "changeMode": {
16948
+ "type": "string",
16949
+ "enum": [
16950
+ "direct",
16951
+ "tracked"
16952
+ ]
16953
+ },
16954
+ "imageId": {
16955
+ "type": "string"
16956
+ },
16957
+ "text": {
16958
+ "type": "string"
16959
+ }
16960
+ },
16961
+ "required": [
16962
+ "imageId",
16963
+ "text"
16964
+ ],
16965
+ "additionalProperties": false
16966
+ }
16967
+ },
16968
+ {
16969
+ "name": "update_image_caption",
16970
+ "description": "Update the text of an existing caption paragraph.",
16971
+ "input_schema": {
16972
+ "type": "object",
16973
+ "properties": {
16974
+ "doc": {
16975
+ "type": "string"
16976
+ },
16977
+ "sessionId": {
16978
+ "type": "string"
16979
+ },
16980
+ "force": {
16981
+ "type": "boolean"
16982
+ },
16983
+ "changeMode": {
16984
+ "type": "string",
16985
+ "enum": [
16986
+ "direct",
16987
+ "tracked"
16988
+ ]
16989
+ },
16990
+ "imageId": {
16991
+ "type": "string"
16992
+ },
16993
+ "text": {
16994
+ "type": "string"
16995
+ }
16996
+ },
16997
+ "required": [
16998
+ "imageId",
16999
+ "text"
17000
+ ],
17001
+ "additionalProperties": false
17002
+ }
17003
+ },
17004
+ {
17005
+ "name": "remove_image_caption",
17006
+ "description": "Remove the caption paragraph from below the image.",
17007
+ "input_schema": {
17008
+ "type": "object",
17009
+ "properties": {
17010
+ "doc": {
17011
+ "type": "string"
17012
+ },
17013
+ "sessionId": {
17014
+ "type": "string"
17015
+ },
17016
+ "force": {
17017
+ "type": "boolean"
17018
+ },
17019
+ "changeMode": {
17020
+ "type": "string",
17021
+ "enum": [
17022
+ "direct",
17023
+ "tracked"
17024
+ ]
17025
+ },
17026
+ "imageId": {
17027
+ "type": "string"
17028
+ }
17029
+ },
17030
+ "required": [
17031
+ "imageId"
17032
+ ],
17033
+ "additionalProperties": false
17034
+ }
17035
+ },
16492
17036
  {
16493
17037
  "name": "list_hyperlinks",
16494
17038
  "description": "List all hyperlinks in the document, with optional filtering by href, anchor, or display text.",