@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.
@@ -141,6 +141,35 @@
141
141
  }
142
142
  }
143
143
  },
144
+ {
145
+ "type": "function",
146
+ "function": {
147
+ "name": "clear_content",
148
+ "description": "Clear all document body content, leaving a single empty paragraph.",
149
+ "parameters": {
150
+ "type": "object",
151
+ "properties": {
152
+ "doc": {
153
+ "type": "string"
154
+ },
155
+ "sessionId": {
156
+ "type": "string"
157
+ },
158
+ "force": {
159
+ "type": "boolean"
160
+ },
161
+ "changeMode": {
162
+ "type": "string",
163
+ "enum": [
164
+ "direct",
165
+ "tracked"
166
+ ]
167
+ }
168
+ },
169
+ "additionalProperties": false
170
+ }
171
+ }
172
+ },
144
173
  {
145
174
  "type": "function",
146
175
  "function": {
@@ -16978,6 +17007,566 @@
16978
17007
  }
16979
17008
  }
16980
17009
  },
17010
+ {
17011
+ "type": "function",
17012
+ "function": {
17013
+ "name": "scale_image",
17014
+ "description": "Scale an image by a uniform factor applied to both dimensions.",
17015
+ "parameters": {
17016
+ "type": "object",
17017
+ "properties": {
17018
+ "doc": {
17019
+ "type": "string"
17020
+ },
17021
+ "sessionId": {
17022
+ "type": "string"
17023
+ },
17024
+ "force": {
17025
+ "type": "boolean"
17026
+ },
17027
+ "changeMode": {
17028
+ "type": "string",
17029
+ "enum": [
17030
+ "direct",
17031
+ "tracked"
17032
+ ]
17033
+ },
17034
+ "imageId": {
17035
+ "type": "string"
17036
+ },
17037
+ "factor": {
17038
+ "type": "number"
17039
+ }
17040
+ },
17041
+ "required": [
17042
+ "imageId",
17043
+ "factor"
17044
+ ],
17045
+ "additionalProperties": false
17046
+ }
17047
+ }
17048
+ },
17049
+ {
17050
+ "type": "function",
17051
+ "function": {
17052
+ "name": "set_image_lock_aspect_ratio",
17053
+ "description": "Lock or unlock the aspect ratio for an image.",
17054
+ "parameters": {
17055
+ "type": "object",
17056
+ "properties": {
17057
+ "doc": {
17058
+ "type": "string"
17059
+ },
17060
+ "sessionId": {
17061
+ "type": "string"
17062
+ },
17063
+ "force": {
17064
+ "type": "boolean"
17065
+ },
17066
+ "changeMode": {
17067
+ "type": "string",
17068
+ "enum": [
17069
+ "direct",
17070
+ "tracked"
17071
+ ]
17072
+ },
17073
+ "imageId": {
17074
+ "type": "string"
17075
+ },
17076
+ "locked": {
17077
+ "type": "boolean"
17078
+ }
17079
+ },
17080
+ "required": [
17081
+ "imageId",
17082
+ "locked"
17083
+ ],
17084
+ "additionalProperties": false
17085
+ }
17086
+ }
17087
+ },
17088
+ {
17089
+ "type": "function",
17090
+ "function": {
17091
+ "name": "rotate_image",
17092
+ "description": "Set the absolute rotation angle for an image.",
17093
+ "parameters": {
17094
+ "type": "object",
17095
+ "properties": {
17096
+ "doc": {
17097
+ "type": "string"
17098
+ },
17099
+ "sessionId": {
17100
+ "type": "string"
17101
+ },
17102
+ "force": {
17103
+ "type": "boolean"
17104
+ },
17105
+ "changeMode": {
17106
+ "type": "string",
17107
+ "enum": [
17108
+ "direct",
17109
+ "tracked"
17110
+ ]
17111
+ },
17112
+ "imageId": {
17113
+ "type": "string"
17114
+ },
17115
+ "angle": {
17116
+ "type": "number"
17117
+ }
17118
+ },
17119
+ "required": [
17120
+ "imageId",
17121
+ "angle"
17122
+ ],
17123
+ "additionalProperties": false
17124
+ }
17125
+ }
17126
+ },
17127
+ {
17128
+ "type": "function",
17129
+ "function": {
17130
+ "name": "flip_image",
17131
+ "description": "Set horizontal and/or vertical flip state for an image.",
17132
+ "parameters": {
17133
+ "type": "object",
17134
+ "properties": {
17135
+ "doc": {
17136
+ "type": "string"
17137
+ },
17138
+ "sessionId": {
17139
+ "type": "string"
17140
+ },
17141
+ "force": {
17142
+ "type": "boolean"
17143
+ },
17144
+ "changeMode": {
17145
+ "type": "string",
17146
+ "enum": [
17147
+ "direct",
17148
+ "tracked"
17149
+ ]
17150
+ },
17151
+ "imageId": {
17152
+ "type": "string"
17153
+ },
17154
+ "horizontal": {
17155
+ "type": "boolean"
17156
+ },
17157
+ "vertical": {
17158
+ "type": "boolean"
17159
+ }
17160
+ },
17161
+ "required": [
17162
+ "imageId"
17163
+ ],
17164
+ "additionalProperties": false
17165
+ }
17166
+ }
17167
+ },
17168
+ {
17169
+ "type": "function",
17170
+ "function": {
17171
+ "name": "crop_image",
17172
+ "description": "Apply rectangular edge-percentage crop to an image.",
17173
+ "parameters": {
17174
+ "type": "object",
17175
+ "properties": {
17176
+ "doc": {
17177
+ "type": "string"
17178
+ },
17179
+ "sessionId": {
17180
+ "type": "string"
17181
+ },
17182
+ "force": {
17183
+ "type": "boolean"
17184
+ },
17185
+ "changeMode": {
17186
+ "type": "string",
17187
+ "enum": [
17188
+ "direct",
17189
+ "tracked"
17190
+ ]
17191
+ },
17192
+ "imageId": {
17193
+ "type": "string"
17194
+ },
17195
+ "crop": {
17196
+ "type": "object",
17197
+ "properties": {
17198
+ "left": {
17199
+ "type": "number"
17200
+ },
17201
+ "top": {
17202
+ "type": "number"
17203
+ },
17204
+ "right": {
17205
+ "type": "number"
17206
+ },
17207
+ "bottom": {
17208
+ "type": "number"
17209
+ }
17210
+ }
17211
+ }
17212
+ },
17213
+ "required": [
17214
+ "imageId",
17215
+ "crop"
17216
+ ],
17217
+ "additionalProperties": false
17218
+ }
17219
+ }
17220
+ },
17221
+ {
17222
+ "type": "function",
17223
+ "function": {
17224
+ "name": "reset_image_crop",
17225
+ "description": "Remove all cropping from an image.",
17226
+ "parameters": {
17227
+ "type": "object",
17228
+ "properties": {
17229
+ "doc": {
17230
+ "type": "string"
17231
+ },
17232
+ "sessionId": {
17233
+ "type": "string"
17234
+ },
17235
+ "force": {
17236
+ "type": "boolean"
17237
+ },
17238
+ "changeMode": {
17239
+ "type": "string",
17240
+ "enum": [
17241
+ "direct",
17242
+ "tracked"
17243
+ ]
17244
+ },
17245
+ "imageId": {
17246
+ "type": "string"
17247
+ }
17248
+ },
17249
+ "required": [
17250
+ "imageId"
17251
+ ],
17252
+ "additionalProperties": false
17253
+ }
17254
+ }
17255
+ },
17256
+ {
17257
+ "type": "function",
17258
+ "function": {
17259
+ "name": "replace_image_source",
17260
+ "description": "Replace the image source while preserving identity and placement.",
17261
+ "parameters": {
17262
+ "type": "object",
17263
+ "properties": {
17264
+ "doc": {
17265
+ "type": "string"
17266
+ },
17267
+ "sessionId": {
17268
+ "type": "string"
17269
+ },
17270
+ "force": {
17271
+ "type": "boolean"
17272
+ },
17273
+ "changeMode": {
17274
+ "type": "string",
17275
+ "enum": [
17276
+ "direct",
17277
+ "tracked"
17278
+ ]
17279
+ },
17280
+ "imageId": {
17281
+ "type": "string"
17282
+ },
17283
+ "src": {
17284
+ "type": "string"
17285
+ },
17286
+ "resetSize": {
17287
+ "type": "boolean"
17288
+ }
17289
+ },
17290
+ "required": [
17291
+ "imageId",
17292
+ "src"
17293
+ ],
17294
+ "additionalProperties": false
17295
+ }
17296
+ }
17297
+ },
17298
+ {
17299
+ "type": "function",
17300
+ "function": {
17301
+ "name": "set_image_alt_text",
17302
+ "description": "Set the accessibility description (alt text) for an image.",
17303
+ "parameters": {
17304
+ "type": "object",
17305
+ "properties": {
17306
+ "doc": {
17307
+ "type": "string"
17308
+ },
17309
+ "sessionId": {
17310
+ "type": "string"
17311
+ },
17312
+ "force": {
17313
+ "type": "boolean"
17314
+ },
17315
+ "changeMode": {
17316
+ "type": "string",
17317
+ "enum": [
17318
+ "direct",
17319
+ "tracked"
17320
+ ]
17321
+ },
17322
+ "imageId": {
17323
+ "type": "string"
17324
+ },
17325
+ "description": {
17326
+ "type": "string"
17327
+ }
17328
+ },
17329
+ "required": [
17330
+ "imageId",
17331
+ "description"
17332
+ ],
17333
+ "additionalProperties": false
17334
+ }
17335
+ }
17336
+ },
17337
+ {
17338
+ "type": "function",
17339
+ "function": {
17340
+ "name": "set_image_decorative",
17341
+ "description": "Mark or unmark an image as decorative.",
17342
+ "parameters": {
17343
+ "type": "object",
17344
+ "properties": {
17345
+ "doc": {
17346
+ "type": "string"
17347
+ },
17348
+ "sessionId": {
17349
+ "type": "string"
17350
+ },
17351
+ "force": {
17352
+ "type": "boolean"
17353
+ },
17354
+ "changeMode": {
17355
+ "type": "string",
17356
+ "enum": [
17357
+ "direct",
17358
+ "tracked"
17359
+ ]
17360
+ },
17361
+ "imageId": {
17362
+ "type": "string"
17363
+ },
17364
+ "decorative": {
17365
+ "type": "boolean"
17366
+ }
17367
+ },
17368
+ "required": [
17369
+ "imageId",
17370
+ "decorative"
17371
+ ],
17372
+ "additionalProperties": false
17373
+ }
17374
+ }
17375
+ },
17376
+ {
17377
+ "type": "function",
17378
+ "function": {
17379
+ "name": "set_image_name",
17380
+ "description": "Set the object name for an image.",
17381
+ "parameters": {
17382
+ "type": "object",
17383
+ "properties": {
17384
+ "doc": {
17385
+ "type": "string"
17386
+ },
17387
+ "sessionId": {
17388
+ "type": "string"
17389
+ },
17390
+ "force": {
17391
+ "type": "boolean"
17392
+ },
17393
+ "changeMode": {
17394
+ "type": "string",
17395
+ "enum": [
17396
+ "direct",
17397
+ "tracked"
17398
+ ]
17399
+ },
17400
+ "imageId": {
17401
+ "type": "string"
17402
+ },
17403
+ "name": {
17404
+ "type": "string"
17405
+ }
17406
+ },
17407
+ "required": [
17408
+ "imageId",
17409
+ "name"
17410
+ ],
17411
+ "additionalProperties": false
17412
+ }
17413
+ }
17414
+ },
17415
+ {
17416
+ "type": "function",
17417
+ "function": {
17418
+ "name": "set_image_hyperlink",
17419
+ "description": "Set or remove the hyperlink attached to an image.",
17420
+ "parameters": {
17421
+ "type": "object",
17422
+ "properties": {
17423
+ "doc": {
17424
+ "type": "string"
17425
+ },
17426
+ "sessionId": {
17427
+ "type": "string"
17428
+ },
17429
+ "force": {
17430
+ "type": "boolean"
17431
+ },
17432
+ "changeMode": {
17433
+ "type": "string",
17434
+ "enum": [
17435
+ "direct",
17436
+ "tracked"
17437
+ ]
17438
+ },
17439
+ "imageId": {
17440
+ "type": "string"
17441
+ },
17442
+ "url": {
17443
+ "type": "object"
17444
+ },
17445
+ "tooltip": {
17446
+ "type": "string"
17447
+ }
17448
+ },
17449
+ "required": [
17450
+ "imageId",
17451
+ "url"
17452
+ ],
17453
+ "additionalProperties": false
17454
+ }
17455
+ }
17456
+ },
17457
+ {
17458
+ "type": "function",
17459
+ "function": {
17460
+ "name": "insert_image_caption",
17461
+ "description": "Insert a caption paragraph below the image.",
17462
+ "parameters": {
17463
+ "type": "object",
17464
+ "properties": {
17465
+ "doc": {
17466
+ "type": "string"
17467
+ },
17468
+ "sessionId": {
17469
+ "type": "string"
17470
+ },
17471
+ "force": {
17472
+ "type": "boolean"
17473
+ },
17474
+ "changeMode": {
17475
+ "type": "string",
17476
+ "enum": [
17477
+ "direct",
17478
+ "tracked"
17479
+ ]
17480
+ },
17481
+ "imageId": {
17482
+ "type": "string"
17483
+ },
17484
+ "text": {
17485
+ "type": "string"
17486
+ }
17487
+ },
17488
+ "required": [
17489
+ "imageId",
17490
+ "text"
17491
+ ],
17492
+ "additionalProperties": false
17493
+ }
17494
+ }
17495
+ },
17496
+ {
17497
+ "type": "function",
17498
+ "function": {
17499
+ "name": "update_image_caption",
17500
+ "description": "Update the text of an existing caption paragraph.",
17501
+ "parameters": {
17502
+ "type": "object",
17503
+ "properties": {
17504
+ "doc": {
17505
+ "type": "string"
17506
+ },
17507
+ "sessionId": {
17508
+ "type": "string"
17509
+ },
17510
+ "force": {
17511
+ "type": "boolean"
17512
+ },
17513
+ "changeMode": {
17514
+ "type": "string",
17515
+ "enum": [
17516
+ "direct",
17517
+ "tracked"
17518
+ ]
17519
+ },
17520
+ "imageId": {
17521
+ "type": "string"
17522
+ },
17523
+ "text": {
17524
+ "type": "string"
17525
+ }
17526
+ },
17527
+ "required": [
17528
+ "imageId",
17529
+ "text"
17530
+ ],
17531
+ "additionalProperties": false
17532
+ }
17533
+ }
17534
+ },
17535
+ {
17536
+ "type": "function",
17537
+ "function": {
17538
+ "name": "remove_image_caption",
17539
+ "description": "Remove the caption paragraph from below the image.",
17540
+ "parameters": {
17541
+ "type": "object",
17542
+ "properties": {
17543
+ "doc": {
17544
+ "type": "string"
17545
+ },
17546
+ "sessionId": {
17547
+ "type": "string"
17548
+ },
17549
+ "force": {
17550
+ "type": "boolean"
17551
+ },
17552
+ "changeMode": {
17553
+ "type": "string",
17554
+ "enum": [
17555
+ "direct",
17556
+ "tracked"
17557
+ ]
17558
+ },
17559
+ "imageId": {
17560
+ "type": "string"
17561
+ }
17562
+ },
17563
+ "required": [
17564
+ "imageId"
17565
+ ],
17566
+ "additionalProperties": false
17567
+ }
17568
+ }
17569
+ },
16981
17570
  {
16982
17571
  "type": "function",
16983
17572
  "function": {