@superdoc-dev/sdk 1.0.0-alpha.29 → 1.0.0-alpha.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.
@@ -148,6 +148,17 @@ function createDocApi(runtime) {
148
148
  canContinuePrevious: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.canContinuePrevious"], params, options),
149
149
  setLevelRestart: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelRestart"], params, options),
150
150
  convertToText: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.convertToText"], params, options),
151
+ applyTemplate: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.applyTemplate"], params, options),
152
+ applyPreset: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.applyPreset"], params, options),
153
+ captureTemplate: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.captureTemplate"], params, options),
154
+ setLevelNumbering: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelNumbering"], params, options),
155
+ setLevelBullet: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelBullet"], params, options),
156
+ setLevelPictureBullet: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelPictureBullet"], params, options),
157
+ setLevelAlignment: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelAlignment"], params, options),
158
+ setLevelIndents: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelIndents"], params, options),
159
+ setLevelTrailingCharacter: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelTrailingCharacter"], params, options),
160
+ setLevelMarkerFont: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.setLevelMarkerFont"], params, options),
161
+ clearLevelOverrides: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.lists.clearLevelOverrides"], params, options),
151
162
  },
152
163
  comments: {
153
164
  create: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.comments.create"], params, options),
@@ -2346,6 +2346,207 @@ export interface DocListsConvertToTextParams {
2346
2346
  input?: Record<string, unknown> | unknown[];
2347
2347
  nodeId?: string;
2348
2348
  }
2349
+ export interface DocListsApplyTemplateParams {
2350
+ doc?: string;
2351
+ sessionId?: string;
2352
+ out?: string;
2353
+ force?: boolean;
2354
+ expectedRevision?: number;
2355
+ changeMode?: string;
2356
+ dryRun?: boolean;
2357
+ target?: {
2358
+ kind: "block";
2359
+ nodeType: "listItem";
2360
+ nodeId: string;
2361
+ };
2362
+ template?: {
2363
+ version: 1;
2364
+ levels: Array<{
2365
+ level: number;
2366
+ numFmt?: string;
2367
+ lvlText?: string;
2368
+ start?: number;
2369
+ alignment?: "left" | "center" | "right";
2370
+ indents?: {
2371
+ left?: number;
2372
+ hanging?: number;
2373
+ firstLine?: number;
2374
+ };
2375
+ trailingCharacter?: "tab" | "space" | "nothing";
2376
+ markerFont?: string;
2377
+ pictureBulletId?: number;
2378
+ }>;
2379
+ };
2380
+ levels?: Array<number>;
2381
+ input?: Record<string, unknown> | unknown[];
2382
+ }
2383
+ export interface DocListsApplyPresetParams {
2384
+ doc?: string;
2385
+ sessionId?: string;
2386
+ out?: string;
2387
+ force?: boolean;
2388
+ expectedRevision?: number;
2389
+ changeMode?: string;
2390
+ dryRun?: boolean;
2391
+ target?: {
2392
+ kind: "block";
2393
+ nodeType: "listItem";
2394
+ nodeId: string;
2395
+ };
2396
+ preset?: string;
2397
+ levels?: Array<number>;
2398
+ input?: Record<string, unknown> | unknown[];
2399
+ }
2400
+ export interface DocListsCaptureTemplateParams {
2401
+ doc?: string;
2402
+ sessionId?: string;
2403
+ target?: {
2404
+ kind: "block";
2405
+ nodeType: "listItem";
2406
+ nodeId: string;
2407
+ };
2408
+ levels?: Array<number>;
2409
+ input?: Record<string, unknown> | unknown[];
2410
+ }
2411
+ export interface DocListsSetLevelNumberingParams {
2412
+ doc?: string;
2413
+ sessionId?: string;
2414
+ out?: string;
2415
+ force?: boolean;
2416
+ expectedRevision?: number;
2417
+ changeMode?: string;
2418
+ dryRun?: boolean;
2419
+ target?: {
2420
+ kind: "block";
2421
+ nodeType: "listItem";
2422
+ nodeId: string;
2423
+ };
2424
+ level?: number;
2425
+ numFmt?: string;
2426
+ lvlText?: string;
2427
+ start?: number;
2428
+ input?: Record<string, unknown> | unknown[];
2429
+ }
2430
+ export interface DocListsSetLevelBulletParams {
2431
+ doc?: string;
2432
+ sessionId?: string;
2433
+ out?: string;
2434
+ force?: boolean;
2435
+ expectedRevision?: number;
2436
+ changeMode?: string;
2437
+ dryRun?: boolean;
2438
+ target?: {
2439
+ kind: "block";
2440
+ nodeType: "listItem";
2441
+ nodeId: string;
2442
+ };
2443
+ level?: number;
2444
+ markerText?: string;
2445
+ input?: Record<string, unknown> | unknown[];
2446
+ }
2447
+ export interface DocListsSetLevelPictureBulletParams {
2448
+ doc?: string;
2449
+ sessionId?: string;
2450
+ out?: string;
2451
+ force?: boolean;
2452
+ expectedRevision?: number;
2453
+ changeMode?: string;
2454
+ dryRun?: boolean;
2455
+ target?: {
2456
+ kind: "block";
2457
+ nodeType: "listItem";
2458
+ nodeId: string;
2459
+ };
2460
+ level?: number;
2461
+ pictureBulletId?: number;
2462
+ input?: Record<string, unknown> | unknown[];
2463
+ }
2464
+ export interface DocListsSetLevelAlignmentParams {
2465
+ doc?: string;
2466
+ sessionId?: string;
2467
+ out?: string;
2468
+ force?: boolean;
2469
+ expectedRevision?: number;
2470
+ changeMode?: string;
2471
+ dryRun?: boolean;
2472
+ target?: {
2473
+ kind: "block";
2474
+ nodeType: "listItem";
2475
+ nodeId: string;
2476
+ };
2477
+ level?: number;
2478
+ alignment?: string;
2479
+ input?: Record<string, unknown> | unknown[];
2480
+ }
2481
+ export interface DocListsSetLevelIndentsParams {
2482
+ doc?: string;
2483
+ sessionId?: string;
2484
+ out?: string;
2485
+ force?: boolean;
2486
+ expectedRevision?: number;
2487
+ changeMode?: string;
2488
+ dryRun?: boolean;
2489
+ target?: {
2490
+ kind: "block";
2491
+ nodeType: "listItem";
2492
+ nodeId: string;
2493
+ };
2494
+ level?: number;
2495
+ left?: number;
2496
+ hanging?: number;
2497
+ firstLine?: number;
2498
+ input?: Record<string, unknown> | unknown[];
2499
+ }
2500
+ export interface DocListsSetLevelTrailingCharacterParams {
2501
+ doc?: string;
2502
+ sessionId?: string;
2503
+ out?: string;
2504
+ force?: boolean;
2505
+ expectedRevision?: number;
2506
+ changeMode?: string;
2507
+ dryRun?: boolean;
2508
+ target?: {
2509
+ kind: "block";
2510
+ nodeType: "listItem";
2511
+ nodeId: string;
2512
+ };
2513
+ level?: number;
2514
+ trailingCharacter?: string;
2515
+ input?: Record<string, unknown> | unknown[];
2516
+ }
2517
+ export interface DocListsSetLevelMarkerFontParams {
2518
+ doc?: string;
2519
+ sessionId?: string;
2520
+ out?: string;
2521
+ force?: boolean;
2522
+ expectedRevision?: number;
2523
+ changeMode?: string;
2524
+ dryRun?: boolean;
2525
+ target?: {
2526
+ kind: "block";
2527
+ nodeType: "listItem";
2528
+ nodeId: string;
2529
+ };
2530
+ level?: number;
2531
+ fontFamily?: string;
2532
+ input?: Record<string, unknown> | unknown[];
2533
+ }
2534
+ export interface DocListsClearLevelOverridesParams {
2535
+ doc?: string;
2536
+ sessionId?: string;
2537
+ out?: string;
2538
+ force?: boolean;
2539
+ expectedRevision?: number;
2540
+ changeMode?: string;
2541
+ dryRun?: boolean;
2542
+ target?: {
2543
+ kind: "block";
2544
+ nodeType: "listItem";
2545
+ nodeId: string;
2546
+ };
2547
+ level?: number;
2548
+ input?: Record<string, unknown> | unknown[];
2549
+ }
2349
2550
  export interface DocCommentsCreateParams {
2350
2551
  doc?: string;
2351
2552
  sessionId?: string;
@@ -4448,6 +4649,67 @@ export type DocListsConvertToTextResult = {
4448
4649
  paragraph: unknown;
4449
4650
  success: true;
4450
4651
  };
4652
+ export type DocListsApplyTemplateResult = {
4653
+ item: unknown;
4654
+ success: true;
4655
+ };
4656
+ export type DocListsApplyPresetResult = {
4657
+ item: unknown;
4658
+ success: true;
4659
+ };
4660
+ export type DocListsCaptureTemplateResult = {
4661
+ success: true;
4662
+ template: {
4663
+ levels: Array<{
4664
+ alignment?: "left" | "center" | "right";
4665
+ indents?: {
4666
+ firstLine?: number;
4667
+ hanging?: number;
4668
+ left?: number;
4669
+ };
4670
+ level: number;
4671
+ lvlText?: string;
4672
+ markerFont?: string;
4673
+ numFmt?: string;
4674
+ pictureBulletId?: number;
4675
+ start?: number;
4676
+ trailingCharacter?: "tab" | "space" | "nothing";
4677
+ }>;
4678
+ version: 1;
4679
+ };
4680
+ };
4681
+ export type DocListsSetLevelNumberingResult = {
4682
+ item: unknown;
4683
+ success: true;
4684
+ };
4685
+ export type DocListsSetLevelBulletResult = {
4686
+ item: unknown;
4687
+ success: true;
4688
+ };
4689
+ export type DocListsSetLevelPictureBulletResult = {
4690
+ item: unknown;
4691
+ success: true;
4692
+ };
4693
+ export type DocListsSetLevelAlignmentResult = {
4694
+ item: unknown;
4695
+ success: true;
4696
+ };
4697
+ export type DocListsSetLevelIndentsResult = {
4698
+ item: unknown;
4699
+ success: true;
4700
+ };
4701
+ export type DocListsSetLevelTrailingCharacterResult = {
4702
+ item: unknown;
4703
+ success: true;
4704
+ };
4705
+ export type DocListsSetLevelMarkerFontResult = {
4706
+ item: unknown;
4707
+ success: true;
4708
+ };
4709
+ export type DocListsClearLevelOverridesResult = {
4710
+ item: unknown;
4711
+ success: true;
4712
+ };
4451
4713
  export type DocCommentsCreateResult = unknown;
4452
4714
  export type DocCommentsPatchResult = unknown;
4453
4715
  export type DocCommentsDeleteResult = unknown;
@@ -5432,6 +5694,18 @@ export type DocCapabilitiesGetResult = {
5432
5694
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5433
5695
  tracked: boolean;
5434
5696
  };
5697
+ "lists.applyPreset": {
5698
+ available: boolean;
5699
+ dryRun: boolean;
5700
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5701
+ tracked: boolean;
5702
+ };
5703
+ "lists.applyTemplate": {
5704
+ available: boolean;
5705
+ dryRun: boolean;
5706
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5707
+ tracked: boolean;
5708
+ };
5435
5709
  "lists.attach": {
5436
5710
  available: boolean;
5437
5711
  dryRun: boolean;
@@ -5450,6 +5724,18 @@ export type DocCapabilitiesGetResult = {
5450
5724
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5451
5725
  tracked: boolean;
5452
5726
  };
5727
+ "lists.captureTemplate": {
5728
+ available: boolean;
5729
+ dryRun: boolean;
5730
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5731
+ tracked: boolean;
5732
+ };
5733
+ "lists.clearLevelOverrides": {
5734
+ available: boolean;
5735
+ dryRun: boolean;
5736
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5737
+ tracked: boolean;
5738
+ };
5453
5739
  "lists.continuePrevious": {
5454
5740
  available: boolean;
5455
5741
  dryRun: boolean;
@@ -5522,12 +5808,54 @@ export type DocCapabilitiesGetResult = {
5522
5808
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5523
5809
  tracked: boolean;
5524
5810
  };
5811
+ "lists.setLevelAlignment": {
5812
+ available: boolean;
5813
+ dryRun: boolean;
5814
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5815
+ tracked: boolean;
5816
+ };
5817
+ "lists.setLevelBullet": {
5818
+ available: boolean;
5819
+ dryRun: boolean;
5820
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5821
+ tracked: boolean;
5822
+ };
5823
+ "lists.setLevelIndents": {
5824
+ available: boolean;
5825
+ dryRun: boolean;
5826
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5827
+ tracked: boolean;
5828
+ };
5829
+ "lists.setLevelMarkerFont": {
5830
+ available: boolean;
5831
+ dryRun: boolean;
5832
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5833
+ tracked: boolean;
5834
+ };
5835
+ "lists.setLevelNumbering": {
5836
+ available: boolean;
5837
+ dryRun: boolean;
5838
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5839
+ tracked: boolean;
5840
+ };
5841
+ "lists.setLevelPictureBullet": {
5842
+ available: boolean;
5843
+ dryRun: boolean;
5844
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5845
+ tracked: boolean;
5846
+ };
5525
5847
  "lists.setLevelRestart": {
5526
5848
  available: boolean;
5527
5849
  dryRun: boolean;
5528
5850
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5529
5851
  tracked: boolean;
5530
5852
  };
5853
+ "lists.setLevelTrailingCharacter": {
5854
+ available: boolean;
5855
+ dryRun: boolean;
5856
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
5857
+ tracked: boolean;
5858
+ };
5531
5859
  "lists.setValue": {
5532
5860
  available: boolean;
5533
5861
  dryRun: boolean;
@@ -6706,6 +7034,17 @@ export declare function createDocApi(runtime: SuperDocRuntime): {
6706
7034
  canContinuePrevious: (params?: DocListsCanContinuePreviousParams, options?: InvokeOptions) => Promise<DocListsCanContinuePreviousResult>;
6707
7035
  setLevelRestart: (params?: DocListsSetLevelRestartParams, options?: InvokeOptions) => Promise<DocListsSetLevelRestartResult>;
6708
7036
  convertToText: (params?: DocListsConvertToTextParams, options?: InvokeOptions) => Promise<DocListsConvertToTextResult>;
7037
+ applyTemplate: (params?: DocListsApplyTemplateParams, options?: InvokeOptions) => Promise<DocListsApplyTemplateResult>;
7038
+ applyPreset: (params?: DocListsApplyPresetParams, options?: InvokeOptions) => Promise<DocListsApplyPresetResult>;
7039
+ captureTemplate: (params?: DocListsCaptureTemplateParams, options?: InvokeOptions) => Promise<DocListsCaptureTemplateResult>;
7040
+ setLevelNumbering: (params?: DocListsSetLevelNumberingParams, options?: InvokeOptions) => Promise<DocListsSetLevelNumberingResult>;
7041
+ setLevelBullet: (params?: DocListsSetLevelBulletParams, options?: InvokeOptions) => Promise<DocListsSetLevelBulletResult>;
7042
+ setLevelPictureBullet: (params?: DocListsSetLevelPictureBulletParams, options?: InvokeOptions) => Promise<DocListsSetLevelPictureBulletResult>;
7043
+ setLevelAlignment: (params?: DocListsSetLevelAlignmentParams, options?: InvokeOptions) => Promise<DocListsSetLevelAlignmentResult>;
7044
+ setLevelIndents: (params?: DocListsSetLevelIndentsParams, options?: InvokeOptions) => Promise<DocListsSetLevelIndentsResult>;
7045
+ setLevelTrailingCharacter: (params?: DocListsSetLevelTrailingCharacterParams, options?: InvokeOptions) => Promise<DocListsSetLevelTrailingCharacterResult>;
7046
+ setLevelMarkerFont: (params?: DocListsSetLevelMarkerFontParams, options?: InvokeOptions) => Promise<DocListsSetLevelMarkerFontResult>;
7047
+ clearLevelOverrides: (params?: DocListsClearLevelOverridesParams, options?: InvokeOptions) => Promise<DocListsClearLevelOverridesResult>;
6709
7048
  };
6710
7049
  comments: {
6711
7050
  create: (params?: DocCommentsCreateParams, options?: InvokeOptions) => Promise<unknown>;