@superdoc-dev/sdk 1.15.0-next.2 → 1.15.0-next.21
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/generated/client.cjs +6 -0
- package/dist/generated/client.d.ts +112 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +6 -0
- package/dist/generated/contract.cjs +1266 -265
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +1266 -265
- package/package.json +6 -6
- package/tools/__pycache__/__init__.cpython-312.pyc +0 -0
- package/tools/__pycache__/intent_dispatch_generated.cpython-312.pyc +0 -0
- package/tools/tools-policy.json +1 -1
|
@@ -120,6 +120,9 @@ function createDocApi(runtime) {
|
|
|
120
120
|
clearStyle: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.styles.paragraph.clearStyle"], params, options), "result"),
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
|
+
templates: {
|
|
124
|
+
apply: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.templates.apply"], params, options), "receipt"),
|
|
125
|
+
},
|
|
123
126
|
create: {
|
|
124
127
|
paragraph: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.create.paragraph"], params, options), "result"),
|
|
125
128
|
heading: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.create.heading"], params, options), "result"),
|
|
@@ -642,6 +645,9 @@ function createBoundDocApi(runtime) {
|
|
|
642
645
|
clearStyle: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.styles.paragraph.clearStyle"], params, options), "result"),
|
|
643
646
|
},
|
|
644
647
|
},
|
|
648
|
+
templates: {
|
|
649
|
+
apply: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.templates.apply"], params, options), "receipt"),
|
|
650
|
+
},
|
|
645
651
|
create: {
|
|
646
652
|
paragraph: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.create.paragraph"], params, options), "result"),
|
|
647
653
|
heading: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.create.heading"], params, options), "result"),
|
|
@@ -2962,6 +2962,24 @@ export interface DocStylesApplyParams {
|
|
|
2962
2962
|
}>;
|
|
2963
2963
|
});
|
|
2964
2964
|
}
|
|
2965
|
+
export interface DocTemplatesApplyParams {
|
|
2966
|
+
doc?: string;
|
|
2967
|
+
sessionId?: string;
|
|
2968
|
+
out?: string;
|
|
2969
|
+
force?: boolean;
|
|
2970
|
+
expectedRevision?: number;
|
|
2971
|
+
changeMode?: string;
|
|
2972
|
+
dryRun?: boolean;
|
|
2973
|
+
source: ({
|
|
2974
|
+
kind: "path";
|
|
2975
|
+
path: string;
|
|
2976
|
+
}) | ({
|
|
2977
|
+
kind: "base64";
|
|
2978
|
+
data: string;
|
|
2979
|
+
filename?: string;
|
|
2980
|
+
});
|
|
2981
|
+
bodyPolicy?: "preserve";
|
|
2982
|
+
}
|
|
2965
2983
|
export interface DocCreateParagraphParams {
|
|
2966
2984
|
doc?: string;
|
|
2967
2985
|
sessionId?: string;
|
|
@@ -3243,6 +3261,8 @@ export interface DocSectionsSetPageNumberingParams {
|
|
|
3243
3261
|
};
|
|
3244
3262
|
start?: number;
|
|
3245
3263
|
format?: string;
|
|
3264
|
+
chapterStyle?: number;
|
|
3265
|
+
chapterSeparator?: string;
|
|
3246
3266
|
}
|
|
3247
3267
|
export interface DocSectionsSetTitlePageParams {
|
|
3248
3268
|
doc?: string;
|
|
@@ -18620,6 +18640,64 @@ export type DocStylesApplyResult = {
|
|
|
18620
18640
|
tabStops?: Array<unknown> | "inherit";
|
|
18621
18641
|
};
|
|
18622
18642
|
};
|
|
18643
|
+
export type DocTemplatesApplyResult = {
|
|
18644
|
+
success: true;
|
|
18645
|
+
changed: boolean;
|
|
18646
|
+
dryRun: boolean;
|
|
18647
|
+
bodyPolicy: "preserve";
|
|
18648
|
+
source: {
|
|
18649
|
+
kind: "path" | "base64";
|
|
18650
|
+
fingerprint: string;
|
|
18651
|
+
partCount: number;
|
|
18652
|
+
};
|
|
18653
|
+
detectedScopes: Array<{
|
|
18654
|
+
scope: "styles" | "numbering" | "settings" | "theme" | "fontTable" | "webSettings" | "headersFooters" | "sectionDefaults";
|
|
18655
|
+
part: string;
|
|
18656
|
+
detail?: string;
|
|
18657
|
+
}>;
|
|
18658
|
+
appliedScopes: Array<{
|
|
18659
|
+
scope: "styles" | "numbering" | "settings" | "theme" | "fontTable" | "webSettings" | "headersFooters" | "sectionDefaults";
|
|
18660
|
+
part: string;
|
|
18661
|
+
detail?: string;
|
|
18662
|
+
}>;
|
|
18663
|
+
skippedScopes: Array<{
|
|
18664
|
+
scope: string;
|
|
18665
|
+
part?: string;
|
|
18666
|
+
reason: "NOT_PRESENT_IN_SOURCE" | "OUT_OF_SCOPE" | "NO_CHANGE" | "CAPABILITY_UNAVAILABLE";
|
|
18667
|
+
message: string;
|
|
18668
|
+
}>;
|
|
18669
|
+
unsupportedItems: Array<{
|
|
18670
|
+
part: string;
|
|
18671
|
+
category: string;
|
|
18672
|
+
reason: string;
|
|
18673
|
+
}>;
|
|
18674
|
+
changedParts: Array<{
|
|
18675
|
+
part: string;
|
|
18676
|
+
scope: "styles" | "numbering" | "settings" | "theme" | "fontTable" | "webSettings" | "headersFooters" | "sectionDefaults" | "package";
|
|
18677
|
+
change: "created" | "replaced" | "merged" | "imported";
|
|
18678
|
+
}>;
|
|
18679
|
+
idMappings: {
|
|
18680
|
+
styles?: Array<{
|
|
18681
|
+
kind: "style" | "numbering" | "relationship";
|
|
18682
|
+
from: string;
|
|
18683
|
+
to: string;
|
|
18684
|
+
}>;
|
|
18685
|
+
numbering?: Array<{
|
|
18686
|
+
kind: "style" | "numbering" | "relationship";
|
|
18687
|
+
from: string;
|
|
18688
|
+
to: string;
|
|
18689
|
+
}>;
|
|
18690
|
+
relationships?: Array<{
|
|
18691
|
+
kind: "style" | "numbering" | "relationship";
|
|
18692
|
+
from: string;
|
|
18693
|
+
to: string;
|
|
18694
|
+
}>;
|
|
18695
|
+
};
|
|
18696
|
+
warnings: Array<{
|
|
18697
|
+
code: string;
|
|
18698
|
+
message: string;
|
|
18699
|
+
}>;
|
|
18700
|
+
};
|
|
18623
18701
|
export type DocCreateParagraphResult = {
|
|
18624
18702
|
success: true;
|
|
18625
18703
|
paragraph: {
|
|
@@ -18782,6 +18860,8 @@ export type DocSectionsListResult = {
|
|
|
18782
18860
|
pageNumbering?: {
|
|
18783
18861
|
start?: number;
|
|
18784
18862
|
format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash";
|
|
18863
|
+
chapterStyle?: number;
|
|
18864
|
+
chapterSeparator?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
|
|
18785
18865
|
};
|
|
18786
18866
|
titlePage?: boolean;
|
|
18787
18867
|
oddEvenHeadersFooters?: boolean;
|
|
@@ -18848,6 +18928,8 @@ export type DocSectionsGetResult = {
|
|
|
18848
18928
|
pageNumbering?: {
|
|
18849
18929
|
start?: number;
|
|
18850
18930
|
format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash";
|
|
18931
|
+
chapterStyle?: number;
|
|
18932
|
+
chapterSeparator?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
|
|
18851
18933
|
};
|
|
18852
18934
|
titlePage?: boolean;
|
|
18853
18935
|
oddEvenHeadersFooters?: boolean;
|
|
@@ -21768,6 +21850,12 @@ export type DocCapabilitiesGetResult = {
|
|
|
21768
21850
|
dryRun: boolean;
|
|
21769
21851
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
21770
21852
|
};
|
|
21853
|
+
"templates.apply": {
|
|
21854
|
+
available: boolean;
|
|
21855
|
+
tracked: boolean;
|
|
21856
|
+
dryRun: boolean;
|
|
21857
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
21858
|
+
};
|
|
21771
21859
|
"create.paragraph": {
|
|
21772
21860
|
available: boolean;
|
|
21773
21861
|
tracked: boolean;
|
|
@@ -30544,6 +30632,22 @@ export interface DocStylesApplyBoundParams {
|
|
|
30544
30632
|
}>;
|
|
30545
30633
|
});
|
|
30546
30634
|
}
|
|
30635
|
+
export interface DocTemplatesApplyBoundParams {
|
|
30636
|
+
out?: string;
|
|
30637
|
+
force?: boolean;
|
|
30638
|
+
expectedRevision?: number;
|
|
30639
|
+
changeMode?: string;
|
|
30640
|
+
dryRun?: boolean;
|
|
30641
|
+
source: ({
|
|
30642
|
+
kind: "path";
|
|
30643
|
+
path: string;
|
|
30644
|
+
}) | ({
|
|
30645
|
+
kind: "base64";
|
|
30646
|
+
data: string;
|
|
30647
|
+
filename?: string;
|
|
30648
|
+
});
|
|
30649
|
+
bodyPolicy?: "preserve";
|
|
30650
|
+
}
|
|
30547
30651
|
export interface DocCreateParagraphBoundParams {
|
|
30548
30652
|
out?: string;
|
|
30549
30653
|
force?: boolean;
|
|
@@ -30801,6 +30905,8 @@ export interface DocSectionsSetPageNumberingBoundParams {
|
|
|
30801
30905
|
};
|
|
30802
30906
|
start?: number;
|
|
30803
30907
|
format?: string;
|
|
30908
|
+
chapterStyle?: number;
|
|
30909
|
+
chapterSeparator?: string;
|
|
30804
30910
|
}
|
|
30805
30911
|
export interface DocSectionsSetTitlePageBoundParams {
|
|
30806
30912
|
out?: string;
|
|
@@ -37474,6 +37580,9 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
|
|
|
37474
37580
|
clearStyle: (params: DocStylesParagraphClearStyleParams, options?: InvokeOptions) => Promise<DocStylesParagraphClearStyleResult>;
|
|
37475
37581
|
};
|
|
37476
37582
|
};
|
|
37583
|
+
templates: {
|
|
37584
|
+
apply: (params: DocTemplatesApplyParams, options?: InvokeOptions) => Promise<DocTemplatesApplyResult>;
|
|
37585
|
+
};
|
|
37477
37586
|
create: {
|
|
37478
37587
|
paragraph: (params?: DocCreateParagraphParams, options?: InvokeOptions) => Promise<DocCreateParagraphResult>;
|
|
37479
37588
|
heading: (params?: DocCreateHeadingParams, options?: InvokeOptions) => Promise<DocCreateHeadingResult>;
|
|
@@ -37992,6 +38101,9 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
|
|
|
37992
38101
|
clearStyle: (params: DocStylesParagraphClearStyleBoundParams, options?: InvokeOptions) => Promise<DocStylesParagraphClearStyleResult>;
|
|
37993
38102
|
};
|
|
37994
38103
|
};
|
|
38104
|
+
templates: {
|
|
38105
|
+
apply: (params: DocTemplatesApplyBoundParams, options?: InvokeOptions) => Promise<DocTemplatesApplyResult>;
|
|
38106
|
+
};
|
|
37995
38107
|
create: {
|
|
37996
38108
|
paragraph: (params?: DocCreateParagraphBoundParams, options?: InvokeOptions) => Promise<DocCreateParagraphResult>;
|
|
37997
38109
|
heading: (params?: DocCreateHeadingBoundParams, options?: InvokeOptions) => Promise<DocCreateHeadingResult>;
|