@superdoc-dev/sdk 1.4.0 → 1.5.1-next.1
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 +2 -0
- package/dist/generated/client.d.ts +38 -0
- package/dist/generated/client.d.ts.map +1 -1
- package/dist/generated/client.js +2 -0
- package/dist/generated/contract.cjs +199 -0
- package/dist/generated/contract.d.ts.map +1 -1
- package/dist/generated/contract.js +199 -0
- package/dist/generated/intent-dispatch.generated.cjs +1 -0
- package/dist/generated/intent-dispatch.generated.d.ts.map +1 -1
- package/dist/generated/intent-dispatch.generated.js +1 -0
- 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 +6 -1
- package/tools/intent_dispatch_generated.py +2 -0
- package/tools/tools-policy.json +1 -1
- package/tools/tools.anthropic.json +2 -1
- package/tools/tools.generic.json +4 -2
- package/tools/tools.openai.json +2 -1
- package/tools/tools.vercel.json +2 -1
|
@@ -35,6 +35,7 @@ function createDocApi(runtime) {
|
|
|
35
35
|
getHtml: async (params = {}, options) => unwrapStringEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.getHtml"], params, options), "html"),
|
|
36
36
|
markdownToFragment: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.markdownToFragment"], params, options), "result"),
|
|
37
37
|
info: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.info"], params, options),
|
|
38
|
+
extract: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.extract"], params, options),
|
|
38
39
|
clearContent: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.clearContent"], params, options), "receipt"),
|
|
39
40
|
insert: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.insert"], params, options),
|
|
40
41
|
replace: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.replace"], params, options),
|
|
@@ -530,6 +531,7 @@ function createBoundDocApi(runtime) {
|
|
|
530
531
|
getHtml: async (params = {}, options) => unwrapStringEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.getHtml"], params, options), "html"),
|
|
531
532
|
markdownToFragment: async (params, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.markdownToFragment"], params, options), "result"),
|
|
532
533
|
info: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.info"], params, options),
|
|
534
|
+
extract: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.extract"], params, options),
|
|
533
535
|
clearContent: async (params = {}, options) => unwrapEnvelope(await runtime.invoke(contract.CONTRACT.operations["doc.clearContent"], params, options), "receipt"),
|
|
534
536
|
insert: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.insert"], params, options),
|
|
535
537
|
replace: (params = {}, options) => runtime.invoke(contract.CONTRACT.operations["doc.replace"], params, options),
|
|
@@ -197,6 +197,10 @@ export interface DocInfoParams {
|
|
|
197
197
|
doc?: string;
|
|
198
198
|
sessionId?: string;
|
|
199
199
|
}
|
|
200
|
+
export interface DocExtractParams {
|
|
201
|
+
doc?: string;
|
|
202
|
+
sessionId?: string;
|
|
203
|
+
}
|
|
200
204
|
export interface DocClearContentParams {
|
|
201
205
|
doc?: string;
|
|
202
206
|
sessionId?: string;
|
|
@@ -9458,6 +9462,30 @@ export type DocInfoResult = {
|
|
|
9458
9462
|
styleId?: string;
|
|
9459
9463
|
};
|
|
9460
9464
|
};
|
|
9465
|
+
export type DocExtractResult = {
|
|
9466
|
+
blocks: Array<{
|
|
9467
|
+
nodeId: string;
|
|
9468
|
+
type: string;
|
|
9469
|
+
text: string;
|
|
9470
|
+
headingLevel?: number;
|
|
9471
|
+
}>;
|
|
9472
|
+
comments: Array<{
|
|
9473
|
+
entityId: string;
|
|
9474
|
+
text?: string;
|
|
9475
|
+
anchoredText?: string;
|
|
9476
|
+
blockId?: string;
|
|
9477
|
+
status: "open" | "resolved";
|
|
9478
|
+
author?: string;
|
|
9479
|
+
}>;
|
|
9480
|
+
trackedChanges: Array<{
|
|
9481
|
+
entityId: string;
|
|
9482
|
+
type: "insert" | "delete" | "format";
|
|
9483
|
+
excerpt?: string;
|
|
9484
|
+
author?: string;
|
|
9485
|
+
date?: string;
|
|
9486
|
+
}>;
|
|
9487
|
+
revision: string;
|
|
9488
|
+
};
|
|
9461
9489
|
export type DocClearContentResult = {
|
|
9462
9490
|
success: true;
|
|
9463
9491
|
inserted?: Array<({
|
|
@@ -15572,6 +15600,12 @@ export type DocCapabilitiesGetResult = {
|
|
|
15572
15600
|
dryRun: boolean;
|
|
15573
15601
|
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
15574
15602
|
};
|
|
15603
|
+
extract: {
|
|
15604
|
+
available: boolean;
|
|
15605
|
+
tracked: boolean;
|
|
15606
|
+
dryRun: boolean;
|
|
15607
|
+
reasons?: Array<"COMMAND_UNAVAILABLE" | "HELPER_UNAVAILABLE" | "OPERATION_UNAVAILABLE" | "TRACKED_MODE_UNAVAILABLE" | "DRY_RUN_UNAVAILABLE" | "NAMESPACE_UNAVAILABLE" | "STYLES_PART_MISSING" | "COLLABORATION_ACTIVE">;
|
|
15608
|
+
};
|
|
15575
15609
|
clearContent: {
|
|
15576
15610
|
available: boolean;
|
|
15577
15611
|
tracked: boolean;
|
|
@@ -20608,6 +20642,8 @@ export interface DocMarkdownToFragmentBoundParams {
|
|
|
20608
20642
|
}
|
|
20609
20643
|
export interface DocInfoBoundParams {
|
|
20610
20644
|
}
|
|
20645
|
+
export interface DocExtractBoundParams {
|
|
20646
|
+
}
|
|
20611
20647
|
export interface DocClearContentBoundParams {
|
|
20612
20648
|
out?: string;
|
|
20613
20649
|
force?: boolean;
|
|
@@ -28935,6 +28971,7 @@ export declare function createDocApi(runtime: RuntimeInvoker): {
|
|
|
28935
28971
|
getHtml: (params?: DocGetHtmlParams, options?: InvokeOptions) => Promise<DocGetHtmlResult>;
|
|
28936
28972
|
markdownToFragment: (params: DocMarkdownToFragmentParams, options?: InvokeOptions) => Promise<DocMarkdownToFragmentResult>;
|
|
28937
28973
|
info: (params?: DocInfoParams, options?: InvokeOptions) => Promise<DocInfoResult>;
|
|
28974
|
+
extract: (params?: DocExtractParams, options?: InvokeOptions) => Promise<DocExtractResult>;
|
|
28938
28975
|
clearContent: (params?: DocClearContentParams, options?: InvokeOptions) => Promise<DocClearContentResult>;
|
|
28939
28976
|
insert: (params?: DocInsertParams, options?: InvokeOptions) => Promise<DocInsertResult>;
|
|
28940
28977
|
replace: (params?: DocReplaceParams, options?: InvokeOptions) => Promise<DocReplaceResult>;
|
|
@@ -29426,6 +29463,7 @@ export declare function createBoundDocApi(runtime: RuntimeInvoker): {
|
|
|
29426
29463
|
getHtml: (params?: DocGetHtmlBoundParams, options?: InvokeOptions) => Promise<DocGetHtmlResult>;
|
|
29427
29464
|
markdownToFragment: (params: DocMarkdownToFragmentBoundParams, options?: InvokeOptions) => Promise<DocMarkdownToFragmentResult>;
|
|
29428
29465
|
info: (params?: DocInfoBoundParams, options?: InvokeOptions) => Promise<DocInfoResult>;
|
|
29466
|
+
extract: (params?: DocExtractBoundParams, options?: InvokeOptions) => Promise<DocExtractResult>;
|
|
29429
29467
|
clearContent: (params?: DocClearContentBoundParams, options?: InvokeOptions) => Promise<DocClearContentResult>;
|
|
29430
29468
|
insert: (params?: DocInsertBoundParams, options?: InvokeOptions) => Promise<DocInsertResult>;
|
|
29431
29469
|
replace: (params?: DocReplaceBoundParams, options?: InvokeOptions) => Promise<DocReplaceResult>;
|