@superdoc-dev/sdk 1.15.0-next.3 → 1.15.0-next.31
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 +123 -7
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +6 -0
- package/dist/generated/contract.cjs +1307 -274
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +1309 -275
- 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/catalog.json +7 -2
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +7 -2
- package/tools/tools.generic.json +7 -2
- package/tools/tools.openai.json +7 -2
- package/tools/tools.vercel.json +7 -2
|
@@ -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;
|
|
@@ -4989,6 +5009,7 @@ export interface DocTrackChangesDecideParams {
|
|
|
4989
5009
|
storyType: "endnote";
|
|
4990
5010
|
noteId: string;
|
|
4991
5011
|
});
|
|
5012
|
+
range?: Record<string, unknown>;
|
|
4992
5013
|
}) | ({
|
|
4993
5014
|
kind: "range";
|
|
4994
5015
|
range: {
|
|
@@ -10709,7 +10730,7 @@ export type DocExtractResult = {
|
|
|
10709
10730
|
}>;
|
|
10710
10731
|
trackedChanges: Array<{
|
|
10711
10732
|
entityId: string;
|
|
10712
|
-
type: "insert" | "delete" | "replacement" | "format";
|
|
10733
|
+
type: "insert" | "delete" | "replacement" | "format" | "structural";
|
|
10713
10734
|
blockIds?: Array<string>;
|
|
10714
10735
|
wordRevisionIds?: {
|
|
10715
10736
|
insert?: string;
|
|
@@ -18620,6 +18641,64 @@ export type DocStylesApplyResult = {
|
|
|
18620
18641
|
tabStops?: Array<unknown> | "inherit";
|
|
18621
18642
|
};
|
|
18622
18643
|
};
|
|
18644
|
+
export type DocTemplatesApplyResult = {
|
|
18645
|
+
success: true;
|
|
18646
|
+
changed: boolean;
|
|
18647
|
+
dryRun: boolean;
|
|
18648
|
+
bodyPolicy: "preserve";
|
|
18649
|
+
source: {
|
|
18650
|
+
kind: "path" | "base64";
|
|
18651
|
+
fingerprint: string;
|
|
18652
|
+
partCount: number;
|
|
18653
|
+
};
|
|
18654
|
+
detectedScopes: Array<{
|
|
18655
|
+
scope: "styles" | "numbering" | "settings" | "theme" | "fontTable" | "webSettings" | "headersFooters" | "sectionDefaults";
|
|
18656
|
+
part: string;
|
|
18657
|
+
detail?: string;
|
|
18658
|
+
}>;
|
|
18659
|
+
appliedScopes: Array<{
|
|
18660
|
+
scope: "styles" | "numbering" | "settings" | "theme" | "fontTable" | "webSettings" | "headersFooters" | "sectionDefaults";
|
|
18661
|
+
part: string;
|
|
18662
|
+
detail?: string;
|
|
18663
|
+
}>;
|
|
18664
|
+
skippedScopes: Array<{
|
|
18665
|
+
scope: string;
|
|
18666
|
+
part?: string;
|
|
18667
|
+
reason: "NOT_PRESENT_IN_SOURCE" | "OUT_OF_SCOPE" | "NO_CHANGE" | "CAPABILITY_UNAVAILABLE";
|
|
18668
|
+
message: string;
|
|
18669
|
+
}>;
|
|
18670
|
+
unsupportedItems: Array<{
|
|
18671
|
+
part: string;
|
|
18672
|
+
category: string;
|
|
18673
|
+
reason: string;
|
|
18674
|
+
}>;
|
|
18675
|
+
changedParts: Array<{
|
|
18676
|
+
part: string;
|
|
18677
|
+
scope: "styles" | "numbering" | "settings" | "theme" | "fontTable" | "webSettings" | "headersFooters" | "sectionDefaults" | "package";
|
|
18678
|
+
change: "created" | "replaced" | "merged" | "imported";
|
|
18679
|
+
}>;
|
|
18680
|
+
idMappings: {
|
|
18681
|
+
styles?: Array<{
|
|
18682
|
+
kind: "style" | "numbering" | "relationship";
|
|
18683
|
+
from: string;
|
|
18684
|
+
to: string;
|
|
18685
|
+
}>;
|
|
18686
|
+
numbering?: Array<{
|
|
18687
|
+
kind: "style" | "numbering" | "relationship";
|
|
18688
|
+
from: string;
|
|
18689
|
+
to: string;
|
|
18690
|
+
}>;
|
|
18691
|
+
relationships?: Array<{
|
|
18692
|
+
kind: "style" | "numbering" | "relationship";
|
|
18693
|
+
from: string;
|
|
18694
|
+
to: string;
|
|
18695
|
+
}>;
|
|
18696
|
+
};
|
|
18697
|
+
warnings: Array<{
|
|
18698
|
+
code: string;
|
|
18699
|
+
message: string;
|
|
18700
|
+
}>;
|
|
18701
|
+
};
|
|
18623
18702
|
export type DocCreateParagraphResult = {
|
|
18624
18703
|
success: true;
|
|
18625
18704
|
paragraph: {
|
|
@@ -18782,6 +18861,8 @@ export type DocSectionsListResult = {
|
|
|
18782
18861
|
pageNumbering?: {
|
|
18783
18862
|
start?: number;
|
|
18784
18863
|
format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash";
|
|
18864
|
+
chapterStyle?: number;
|
|
18865
|
+
chapterSeparator?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
|
|
18785
18866
|
};
|
|
18786
18867
|
titlePage?: boolean;
|
|
18787
18868
|
oddEvenHeadersFooters?: boolean;
|
|
@@ -18848,6 +18929,8 @@ export type DocSectionsGetResult = {
|
|
|
18848
18929
|
pageNumbering?: {
|
|
18849
18930
|
start?: number;
|
|
18850
18931
|
format?: "decimal" | "lowerLetter" | "upperLetter" | "lowerRoman" | "upperRoman" | "numberInDash";
|
|
18932
|
+
chapterStyle?: number;
|
|
18933
|
+
chapterSeparator?: "hyphen" | "period" | "colon" | "emDash" | "enDash";
|
|
18851
18934
|
};
|
|
18852
18935
|
titlePage?: boolean;
|
|
18853
18936
|
oddEvenHeadersFooters?: boolean;
|
|
@@ -20398,7 +20481,7 @@ export type DocCommentsGetResult = {
|
|
|
20398
20481
|
creatorName?: string;
|
|
20399
20482
|
creatorEmail?: string;
|
|
20400
20483
|
trackedChange?: boolean;
|
|
20401
|
-
trackedChangeType?: "insert" | "delete" | "replacement" | "format";
|
|
20484
|
+
trackedChangeType?: "insert" | "delete" | "replacement" | "format" | "structural";
|
|
20402
20485
|
trackedChangeDisplayType?: unknown;
|
|
20403
20486
|
trackedChangeStory?: (({
|
|
20404
20487
|
kind: "story";
|
|
@@ -20432,7 +20515,7 @@ export type DocCommentsGetResult = {
|
|
|
20432
20515
|
deletedText?: unknown;
|
|
20433
20516
|
trackedChangeLink?: ({
|
|
20434
20517
|
trackedChange?: true;
|
|
20435
|
-
trackedChangeType?: "insert" | "delete" | "replacement" | "format";
|
|
20518
|
+
trackedChangeType?: "insert" | "delete" | "replacement" | "format" | "structural";
|
|
20436
20519
|
trackedChangeDisplayType?: unknown;
|
|
20437
20520
|
trackedChangeStory?: (({
|
|
20438
20521
|
kind: "story";
|
|
@@ -20528,7 +20611,7 @@ export type DocCommentsListResult = {
|
|
|
20528
20611
|
creatorName?: string;
|
|
20529
20612
|
creatorEmail?: string;
|
|
20530
20613
|
trackedChange?: boolean;
|
|
20531
|
-
trackedChangeType?: "insert" | "delete" | "replacement" | "format";
|
|
20614
|
+
trackedChangeType?: "insert" | "delete" | "replacement" | "format" | "structural";
|
|
20532
20615
|
trackedChangeDisplayType?: unknown;
|
|
20533
20616
|
trackedChangeStory?: (({
|
|
20534
20617
|
kind: "story";
|
|
@@ -20562,7 +20645,7 @@ export type DocCommentsListResult = {
|
|
|
20562
20645
|
deletedText?: unknown;
|
|
20563
20646
|
trackedChangeLink?: ({
|
|
20564
20647
|
trackedChange?: true;
|
|
20565
|
-
trackedChangeType?: "insert" | "delete" | "replacement" | "format";
|
|
20648
|
+
trackedChangeType?: "insert" | "delete" | "replacement" | "format" | "structural";
|
|
20566
20649
|
trackedChangeDisplayType?: unknown;
|
|
20567
20650
|
trackedChangeStory?: (({
|
|
20568
20651
|
kind: "story";
|
|
@@ -20644,7 +20727,8 @@ export type DocTrackChangesListResult = {
|
|
|
20644
20727
|
noteId: string;
|
|
20645
20728
|
});
|
|
20646
20729
|
};
|
|
20647
|
-
type: "insert" | "delete" | "replacement" | "format";
|
|
20730
|
+
type: "insert" | "delete" | "replacement" | "format" | "structural";
|
|
20731
|
+
subtype?: "table-insert" | "table-delete";
|
|
20648
20732
|
grouping?: "standalone" | "replacement-pair" | "unknown";
|
|
20649
20733
|
pairedWithChangeId?: unknown;
|
|
20650
20734
|
wordRevisionIds?: {
|
|
@@ -20700,7 +20784,8 @@ export type DocTrackChangesGetResult = {
|
|
|
20700
20784
|
});
|
|
20701
20785
|
};
|
|
20702
20786
|
id: string;
|
|
20703
|
-
type: "insert" | "delete" | "replacement" | "format";
|
|
20787
|
+
type: "insert" | "delete" | "replacement" | "format" | "structural";
|
|
20788
|
+
subtype?: "table-insert" | "table-delete";
|
|
20704
20789
|
grouping?: "standalone" | "replacement-pair" | "unknown";
|
|
20705
20790
|
pairedWithChangeId?: unknown;
|
|
20706
20791
|
wordRevisionIds?: {
|
|
@@ -21768,6 +21853,12 @@ export type DocCapabilitiesGetResult = {
|
|
|
21768
21853
|
dryRun: boolean;
|
|
21769
21854
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
21770
21855
|
};
|
|
21856
|
+
"templates.apply": {
|
|
21857
|
+
available: boolean;
|
|
21858
|
+
tracked: boolean;
|
|
21859
|
+
dryRun: boolean;
|
|
21860
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
21861
|
+
};
|
|
21771
21862
|
"create.paragraph": {
|
|
21772
21863
|
available: boolean;
|
|
21773
21864
|
tracked: boolean;
|
|
@@ -30544,6 +30635,22 @@ export interface DocStylesApplyBoundParams {
|
|
|
30544
30635
|
}>;
|
|
30545
30636
|
});
|
|
30546
30637
|
}
|
|
30638
|
+
export interface DocTemplatesApplyBoundParams {
|
|
30639
|
+
out?: string;
|
|
30640
|
+
force?: boolean;
|
|
30641
|
+
expectedRevision?: number;
|
|
30642
|
+
changeMode?: string;
|
|
30643
|
+
dryRun?: boolean;
|
|
30644
|
+
source: ({
|
|
30645
|
+
kind: "path";
|
|
30646
|
+
path: string;
|
|
30647
|
+
}) | ({
|
|
30648
|
+
kind: "base64";
|
|
30649
|
+
data: string;
|
|
30650
|
+
filename?: string;
|
|
30651
|
+
});
|
|
30652
|
+
bodyPolicy?: "preserve";
|
|
30653
|
+
}
|
|
30547
30654
|
export interface DocCreateParagraphBoundParams {
|
|
30548
30655
|
out?: string;
|
|
30549
30656
|
force?: boolean;
|
|
@@ -30801,6 +30908,8 @@ export interface DocSectionsSetPageNumberingBoundParams {
|
|
|
30801
30908
|
};
|
|
30802
30909
|
start?: number;
|
|
30803
30910
|
format?: string;
|
|
30911
|
+
chapterStyle?: number;
|
|
30912
|
+
chapterSeparator?: string;
|
|
30804
30913
|
}
|
|
30805
30914
|
export interface DocSectionsSetTitlePageBoundParams {
|
|
30806
30915
|
out?: string;
|
|
@@ -32393,6 +32502,7 @@ export interface DocTrackChangesDecideBoundParams {
|
|
|
32393
32502
|
storyType: "endnote";
|
|
32394
32503
|
noteId: string;
|
|
32395
32504
|
});
|
|
32505
|
+
range?: Record<string, unknown>;
|
|
32396
32506
|
}) | ({
|
|
32397
32507
|
kind: "range";
|
|
32398
32508
|
range: {
|
|
@@ -37474,6 +37584,9 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
|
|
|
37474
37584
|
clearStyle: (params: DocStylesParagraphClearStyleParams, options?: InvokeOptions) => Promise<DocStylesParagraphClearStyleResult>;
|
|
37475
37585
|
};
|
|
37476
37586
|
};
|
|
37587
|
+
templates: {
|
|
37588
|
+
apply: (params: DocTemplatesApplyParams, options?: InvokeOptions) => Promise<DocTemplatesApplyResult>;
|
|
37589
|
+
};
|
|
37477
37590
|
create: {
|
|
37478
37591
|
paragraph: (params?: DocCreateParagraphParams, options?: InvokeOptions) => Promise<DocCreateParagraphResult>;
|
|
37479
37592
|
heading: (params?: DocCreateHeadingParams, options?: InvokeOptions) => Promise<DocCreateHeadingResult>;
|
|
@@ -37992,6 +38105,9 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
|
|
|
37992
38105
|
clearStyle: (params: DocStylesParagraphClearStyleBoundParams, options?: InvokeOptions) => Promise<DocStylesParagraphClearStyleResult>;
|
|
37993
38106
|
};
|
|
37994
38107
|
};
|
|
38108
|
+
templates: {
|
|
38109
|
+
apply: (params: DocTemplatesApplyBoundParams, options?: InvokeOptions) => Promise<DocTemplatesApplyResult>;
|
|
38110
|
+
};
|
|
37995
38111
|
create: {
|
|
37996
38112
|
paragraph: (params?: DocCreateParagraphBoundParams, options?: InvokeOptions) => Promise<DocCreateParagraphResult>;
|
|
37997
38113
|
heading: (params?: DocCreateHeadingBoundParams, options?: InvokeOptions) => Promise<DocCreateHeadingResult>;
|