@superdoc-dev/sdk 1.16.0-next.36 → 1.16.0-next.38

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.
@@ -115,6 +115,7 @@ function createDocApi(runtime) {
115
115
  setMarkRunProps: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.setMarkRunProps"], params, options), "result"),
116
116
  setDirection: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.setDirection"], params, options), "result"),
117
117
  clearDirection: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.clearDirection"], params, options), "result"),
118
+ setNumbering: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.setNumbering"], params, options), "result"),
118
119
  },
119
120
  },
120
121
  styles: {
@@ -653,6 +654,7 @@ function createBoundDocApi(runtime) {
653
654
  setMarkRunProps: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.setMarkRunProps"], params, options), "result"),
654
655
  setDirection: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.setDirection"], params, options), "result"),
655
656
  clearDirection: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.clearDirection"], params, options), "result"),
657
+ setNumbering: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.format.paragraph.setNumbering"], params, options), "result"),
656
658
  },
657
659
  },
658
660
  styles: {
@@ -14370,6 +14370,124 @@ export interface DocFormatParagraphClearDirectionParams {
14370
14370
  });
14371
14371
  blockId?: string;
14372
14372
  }
14373
+ export interface DocFormatParagraphSetNumberingParams {
14374
+ doc?: string;
14375
+ sessionId?: string;
14376
+ out?: string;
14377
+ force?: boolean;
14378
+ expectedRevision?: number;
14379
+ changeMode?: string;
14380
+ dryRun?: boolean;
14381
+ target?: ({
14382
+ kind: "block";
14383
+ nodeType: "paragraph";
14384
+ nodeId: string;
14385
+ story?: ({
14386
+ kind: "story";
14387
+ storyType: "body";
14388
+ }) | ({
14389
+ kind: "story";
14390
+ storyType: "headerFooterSlot";
14391
+ section: {
14392
+ kind: "section";
14393
+ sectionId: string;
14394
+ };
14395
+ headerFooterKind: "header" | "footer";
14396
+ variant: "default" | "first" | "even";
14397
+ resolution?: "effective" | "explicit";
14398
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
14399
+ }) | ({
14400
+ kind: "story";
14401
+ storyType: "headerFooterPart";
14402
+ refId: string;
14403
+ }) | ({
14404
+ kind: "story";
14405
+ storyType: "footnote";
14406
+ noteId: string;
14407
+ }) | ({
14408
+ kind: "story";
14409
+ storyType: "endnote";
14410
+ noteId: string;
14411
+ }) | ({
14412
+ kind: "story";
14413
+ storyType: "textbox";
14414
+ textboxId: string;
14415
+ });
14416
+ }) | ({
14417
+ kind: "block";
14418
+ nodeType: "heading";
14419
+ nodeId: string;
14420
+ story?: ({
14421
+ kind: "story";
14422
+ storyType: "body";
14423
+ }) | ({
14424
+ kind: "story";
14425
+ storyType: "headerFooterSlot";
14426
+ section: {
14427
+ kind: "section";
14428
+ sectionId: string;
14429
+ };
14430
+ headerFooterKind: "header" | "footer";
14431
+ variant: "default" | "first" | "even";
14432
+ resolution?: "effective" | "explicit";
14433
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
14434
+ }) | ({
14435
+ kind: "story";
14436
+ storyType: "headerFooterPart";
14437
+ refId: string;
14438
+ }) | ({
14439
+ kind: "story";
14440
+ storyType: "footnote";
14441
+ noteId: string;
14442
+ }) | ({
14443
+ kind: "story";
14444
+ storyType: "endnote";
14445
+ noteId: string;
14446
+ }) | ({
14447
+ kind: "story";
14448
+ storyType: "textbox";
14449
+ textboxId: string;
14450
+ });
14451
+ }) | ({
14452
+ kind: "block";
14453
+ nodeType: "listItem";
14454
+ nodeId: string;
14455
+ story?: ({
14456
+ kind: "story";
14457
+ storyType: "body";
14458
+ }) | ({
14459
+ kind: "story";
14460
+ storyType: "headerFooterSlot";
14461
+ section: {
14462
+ kind: "section";
14463
+ sectionId: string;
14464
+ };
14465
+ headerFooterKind: "header" | "footer";
14466
+ variant: "default" | "first" | "even";
14467
+ resolution?: "effective" | "explicit";
14468
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
14469
+ }) | ({
14470
+ kind: "story";
14471
+ storyType: "headerFooterPart";
14472
+ refId: string;
14473
+ }) | ({
14474
+ kind: "story";
14475
+ storyType: "footnote";
14476
+ noteId: string;
14477
+ }) | ({
14478
+ kind: "story";
14479
+ storyType: "endnote";
14480
+ noteId: string;
14481
+ }) | ({
14482
+ kind: "story";
14483
+ storyType: "textbox";
14484
+ textboxId: string;
14485
+ });
14486
+ });
14487
+ numId?: number;
14488
+ level?: number;
14489
+ blockId?: string;
14490
+ }
14373
14491
  export interface DocListsListParams {
14374
14492
  doc?: string;
14375
14493
  sessionId?: string;
@@ -28714,6 +28832,10 @@ export type DocBlocksListResult = {
28714
28832
  color?: string;
28715
28833
  alignment?: string;
28716
28834
  headingLevel?: number;
28835
+ paragraphNumbering?: {
28836
+ numId?: number;
28837
+ level?: number;
28838
+ };
28717
28839
  ref?: string;
28718
28840
  }>;
28719
28841
  revision: string;
@@ -52685,6 +52807,223 @@ export type DocFormatParagraphClearDirectionResult = {
52685
52807
  });
52686
52808
  };
52687
52809
  };
52810
+ export type DocFormatParagraphSetNumberingResult = {
52811
+ success: true;
52812
+ target: ({
52813
+ kind: "block";
52814
+ nodeType: "paragraph";
52815
+ nodeId: string;
52816
+ story?: ({
52817
+ kind: "story";
52818
+ storyType: "body";
52819
+ }) | ({
52820
+ kind: "story";
52821
+ storyType: "headerFooterSlot";
52822
+ section: {
52823
+ kind: "section";
52824
+ sectionId: string;
52825
+ };
52826
+ headerFooterKind: "header" | "footer";
52827
+ variant: "default" | "first" | "even";
52828
+ resolution?: "effective" | "explicit";
52829
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
52830
+ }) | ({
52831
+ kind: "story";
52832
+ storyType: "headerFooterPart";
52833
+ refId: string;
52834
+ }) | ({
52835
+ kind: "story";
52836
+ storyType: "footnote";
52837
+ noteId: string;
52838
+ }) | ({
52839
+ kind: "story";
52840
+ storyType: "endnote";
52841
+ noteId: string;
52842
+ }) | ({
52843
+ kind: "story";
52844
+ storyType: "textbox";
52845
+ textboxId: string;
52846
+ });
52847
+ }) | ({
52848
+ kind: "block";
52849
+ nodeType: "heading";
52850
+ nodeId: string;
52851
+ story?: ({
52852
+ kind: "story";
52853
+ storyType: "body";
52854
+ }) | ({
52855
+ kind: "story";
52856
+ storyType: "headerFooterSlot";
52857
+ section: {
52858
+ kind: "section";
52859
+ sectionId: string;
52860
+ };
52861
+ headerFooterKind: "header" | "footer";
52862
+ variant: "default" | "first" | "even";
52863
+ resolution?: "effective" | "explicit";
52864
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
52865
+ }) | ({
52866
+ kind: "story";
52867
+ storyType: "headerFooterPart";
52868
+ refId: string;
52869
+ }) | ({
52870
+ kind: "story";
52871
+ storyType: "footnote";
52872
+ noteId: string;
52873
+ }) | ({
52874
+ kind: "story";
52875
+ storyType: "endnote";
52876
+ noteId: string;
52877
+ }) | ({
52878
+ kind: "story";
52879
+ storyType: "textbox";
52880
+ textboxId: string;
52881
+ });
52882
+ }) | ({
52883
+ kind: "block";
52884
+ nodeType: "listItem";
52885
+ nodeId: string;
52886
+ story?: ({
52887
+ kind: "story";
52888
+ storyType: "body";
52889
+ }) | ({
52890
+ kind: "story";
52891
+ storyType: "headerFooterSlot";
52892
+ section: {
52893
+ kind: "section";
52894
+ sectionId: string;
52895
+ };
52896
+ headerFooterKind: "header" | "footer";
52897
+ variant: "default" | "first" | "even";
52898
+ resolution?: "effective" | "explicit";
52899
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
52900
+ }) | ({
52901
+ kind: "story";
52902
+ storyType: "headerFooterPart";
52903
+ refId: string;
52904
+ }) | ({
52905
+ kind: "story";
52906
+ storyType: "footnote";
52907
+ noteId: string;
52908
+ }) | ({
52909
+ kind: "story";
52910
+ storyType: "endnote";
52911
+ noteId: string;
52912
+ }) | ({
52913
+ kind: "story";
52914
+ storyType: "textbox";
52915
+ textboxId: string;
52916
+ });
52917
+ });
52918
+ resolution: {
52919
+ target: ({
52920
+ kind: "block";
52921
+ nodeType: "paragraph";
52922
+ nodeId: string;
52923
+ story?: ({
52924
+ kind: "story";
52925
+ storyType: "body";
52926
+ }) | ({
52927
+ kind: "story";
52928
+ storyType: "headerFooterSlot";
52929
+ section: {
52930
+ kind: "section";
52931
+ sectionId: string;
52932
+ };
52933
+ headerFooterKind: "header" | "footer";
52934
+ variant: "default" | "first" | "even";
52935
+ resolution?: "effective" | "explicit";
52936
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
52937
+ }) | ({
52938
+ kind: "story";
52939
+ storyType: "headerFooterPart";
52940
+ refId: string;
52941
+ }) | ({
52942
+ kind: "story";
52943
+ storyType: "footnote";
52944
+ noteId: string;
52945
+ }) | ({
52946
+ kind: "story";
52947
+ storyType: "endnote";
52948
+ noteId: string;
52949
+ }) | ({
52950
+ kind: "story";
52951
+ storyType: "textbox";
52952
+ textboxId: string;
52953
+ });
52954
+ }) | ({
52955
+ kind: "block";
52956
+ nodeType: "heading";
52957
+ nodeId: string;
52958
+ story?: ({
52959
+ kind: "story";
52960
+ storyType: "body";
52961
+ }) | ({
52962
+ kind: "story";
52963
+ storyType: "headerFooterSlot";
52964
+ section: {
52965
+ kind: "section";
52966
+ sectionId: string;
52967
+ };
52968
+ headerFooterKind: "header" | "footer";
52969
+ variant: "default" | "first" | "even";
52970
+ resolution?: "effective" | "explicit";
52971
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
52972
+ }) | ({
52973
+ kind: "story";
52974
+ storyType: "headerFooterPart";
52975
+ refId: string;
52976
+ }) | ({
52977
+ kind: "story";
52978
+ storyType: "footnote";
52979
+ noteId: string;
52980
+ }) | ({
52981
+ kind: "story";
52982
+ storyType: "endnote";
52983
+ noteId: string;
52984
+ }) | ({
52985
+ kind: "story";
52986
+ storyType: "textbox";
52987
+ textboxId: string;
52988
+ });
52989
+ }) | ({
52990
+ kind: "block";
52991
+ nodeType: "listItem";
52992
+ nodeId: string;
52993
+ story?: ({
52994
+ kind: "story";
52995
+ storyType: "body";
52996
+ }) | ({
52997
+ kind: "story";
52998
+ storyType: "headerFooterSlot";
52999
+ section: {
53000
+ kind: "section";
53001
+ sectionId: string;
53002
+ };
53003
+ headerFooterKind: "header" | "footer";
53004
+ variant: "default" | "first" | "even";
53005
+ resolution?: "effective" | "explicit";
53006
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
53007
+ }) | ({
53008
+ kind: "story";
53009
+ storyType: "headerFooterPart";
53010
+ refId: string;
53011
+ }) | ({
53012
+ kind: "story";
53013
+ storyType: "footnote";
53014
+ noteId: string;
53015
+ }) | ({
53016
+ kind: "story";
53017
+ storyType: "endnote";
53018
+ noteId: string;
53019
+ }) | ({
53020
+ kind: "story";
53021
+ storyType: "textbox";
53022
+ textboxId: string;
53023
+ });
53024
+ });
53025
+ };
53026
+ };
52688
53027
  export type DocListsListResult = {
52689
53028
  evaluatedRevision: string;
52690
53029
  total: number;
@@ -58228,6 +58567,12 @@ export type DocCapabilitiesGetResult = {
58228
58567
  dryRun: boolean;
58229
58568
  reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
58230
58569
  };
58570
+ "format.paragraph.setNumbering": {
58571
+ available: boolean;
58572
+ tracked: boolean;
58573
+ dryRun: boolean;
58574
+ reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
58575
+ };
58231
58576
  "lists.list": {
58232
58577
  available: boolean;
58233
58578
  tracked: boolean;
@@ -79450,6 +79795,122 @@ export interface DocFormatParagraphClearDirectionBoundParams {
79450
79795
  });
79451
79796
  blockId?: string;
79452
79797
  }
79798
+ export interface DocFormatParagraphSetNumberingBoundParams {
79799
+ out?: string;
79800
+ force?: boolean;
79801
+ expectedRevision?: number;
79802
+ changeMode?: string;
79803
+ dryRun?: boolean;
79804
+ target?: ({
79805
+ kind: "block";
79806
+ nodeType: "paragraph";
79807
+ nodeId: string;
79808
+ story?: ({
79809
+ kind: "story";
79810
+ storyType: "body";
79811
+ }) | ({
79812
+ kind: "story";
79813
+ storyType: "headerFooterSlot";
79814
+ section: {
79815
+ kind: "section";
79816
+ sectionId: string;
79817
+ };
79818
+ headerFooterKind: "header" | "footer";
79819
+ variant: "default" | "first" | "even";
79820
+ resolution?: "effective" | "explicit";
79821
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
79822
+ }) | ({
79823
+ kind: "story";
79824
+ storyType: "headerFooterPart";
79825
+ refId: string;
79826
+ }) | ({
79827
+ kind: "story";
79828
+ storyType: "footnote";
79829
+ noteId: string;
79830
+ }) | ({
79831
+ kind: "story";
79832
+ storyType: "endnote";
79833
+ noteId: string;
79834
+ }) | ({
79835
+ kind: "story";
79836
+ storyType: "textbox";
79837
+ textboxId: string;
79838
+ });
79839
+ }) | ({
79840
+ kind: "block";
79841
+ nodeType: "heading";
79842
+ nodeId: string;
79843
+ story?: ({
79844
+ kind: "story";
79845
+ storyType: "body";
79846
+ }) | ({
79847
+ kind: "story";
79848
+ storyType: "headerFooterSlot";
79849
+ section: {
79850
+ kind: "section";
79851
+ sectionId: string;
79852
+ };
79853
+ headerFooterKind: "header" | "footer";
79854
+ variant: "default" | "first" | "even";
79855
+ resolution?: "effective" | "explicit";
79856
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
79857
+ }) | ({
79858
+ kind: "story";
79859
+ storyType: "headerFooterPart";
79860
+ refId: string;
79861
+ }) | ({
79862
+ kind: "story";
79863
+ storyType: "footnote";
79864
+ noteId: string;
79865
+ }) | ({
79866
+ kind: "story";
79867
+ storyType: "endnote";
79868
+ noteId: string;
79869
+ }) | ({
79870
+ kind: "story";
79871
+ storyType: "textbox";
79872
+ textboxId: string;
79873
+ });
79874
+ }) | ({
79875
+ kind: "block";
79876
+ nodeType: "listItem";
79877
+ nodeId: string;
79878
+ story?: ({
79879
+ kind: "story";
79880
+ storyType: "body";
79881
+ }) | ({
79882
+ kind: "story";
79883
+ storyType: "headerFooterSlot";
79884
+ section: {
79885
+ kind: "section";
79886
+ sectionId: string;
79887
+ };
79888
+ headerFooterKind: "header" | "footer";
79889
+ variant: "default" | "first" | "even";
79890
+ resolution?: "effective" | "explicit";
79891
+ onWrite?: "materializeIfInherited" | "editResolvedPart" | "error";
79892
+ }) | ({
79893
+ kind: "story";
79894
+ storyType: "headerFooterPart";
79895
+ refId: string;
79896
+ }) | ({
79897
+ kind: "story";
79898
+ storyType: "footnote";
79899
+ noteId: string;
79900
+ }) | ({
79901
+ kind: "story";
79902
+ storyType: "endnote";
79903
+ noteId: string;
79904
+ }) | ({
79905
+ kind: "story";
79906
+ storyType: "textbox";
79907
+ textboxId: string;
79908
+ });
79909
+ });
79910
+ numId?: number;
79911
+ level?: number;
79912
+ blockId?: string;
79913
+ }
79453
79914
  export interface DocListsListBoundParams {
79454
79915
  within?: {
79455
79916
  kind: "block";
@@ -90956,6 +91417,7 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
90956
91417
  setMarkRunProps: (params?: DocFormatParagraphSetMarkRunPropsParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetMarkRunPropsResult>;
90957
91418
  setDirection: (params?: DocFormatParagraphSetDirectionParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetDirectionResult>;
90958
91419
  clearDirection: (params?: DocFormatParagraphClearDirectionParams, options?: InvokeOptions) => Promise<DocFormatParagraphClearDirectionResult>;
91420
+ setNumbering: (params?: DocFormatParagraphSetNumberingParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetNumberingResult>;
90959
91421
  };
90960
91422
  };
90961
91423
  styles: {
@@ -91490,6 +91952,7 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
91490
91952
  setMarkRunProps: (params?: DocFormatParagraphSetMarkRunPropsBoundParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetMarkRunPropsResult>;
91491
91953
  setDirection: (params?: DocFormatParagraphSetDirectionBoundParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetDirectionResult>;
91492
91954
  clearDirection: (params?: DocFormatParagraphClearDirectionBoundParams, options?: InvokeOptions) => Promise<DocFormatParagraphClearDirectionResult>;
91955
+ setNumbering: (params?: DocFormatParagraphSetNumberingBoundParams, options?: InvokeOptions) => Promise<DocFormatParagraphSetNumberingResult>;
91493
91956
  };
91494
91957
  };
91495
91958
  styles: {