@cloudpdf/sdk 3.0.0-next.8 → 3.0.0-next.9
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/doc/resources/pages/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/Client.js +182 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/requests/ExtractPagesRequest.d.ts +20 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/requests/ExtractPagesRequest.js +3 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/requests/InsertBlankPagesRequest.d.ts +18 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/requests/InsertBlankPagesRequest.js +3 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/requests/InsertPagesRequest.d.ts +16 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/requests/InsertPagesRequest.js +3 -0
- package/dist/cjs/api/resources/doc/resources/pages/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/types/DocPagesExtract400Response.d.ts +34 -0
- package/dist/cjs/api/types/DocPagesExtract400Response.js +31 -0
- package/dist/cjs/api/types/DocPagesExtract404Response.d.ts +34 -0
- package/dist/cjs/api/types/DocPagesExtract404Response.js +31 -0
- package/dist/cjs/api/types/DocPagesExtractRequest.d.ts +1 -0
- package/dist/cjs/api/types/DocPagesExtractRequest.js +3 -0
- package/dist/cjs/api/types/DocPagesInsert200Response.d.ts +49 -0
- package/dist/cjs/api/types/DocPagesInsert200Response.js +3 -0
- package/dist/cjs/api/types/DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.d.ts +11 -0
- package/dist/cjs/api/types/DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.js +3 -0
- package/dist/cjs/api/types/DocPagesInsert400Response.d.ts +34 -0
- package/dist/cjs/api/types/DocPagesInsert400Response.js +31 -0
- package/dist/cjs/api/types/DocPagesInsert404Response.d.ts +34 -0
- package/dist/cjs/api/types/DocPagesInsert404Response.js +31 -0
- package/dist/cjs/api/types/DocPagesInsertBlank200Response.d.ts +49 -0
- package/dist/cjs/api/types/DocPagesInsertBlank200Response.js +3 -0
- package/dist/cjs/api/types/DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.d.ts +11 -0
- package/dist/cjs/api/types/DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.js +3 -0
- package/dist/cjs/api/types/DocPagesInsertBlank400Response.d.ts +34 -0
- package/dist/cjs/api/types/DocPagesInsertBlank400Response.js +31 -0
- package/dist/cjs/api/types/DocPagesInsertBlank404Response.d.ts +34 -0
- package/dist/cjs/api/types/DocPagesInsertBlank404Response.js +31 -0
- package/dist/cjs/api/types/DocPagesInsertBlankRequest.d.ts +1 -0
- package/dist/cjs/api/types/DocPagesInsertBlankRequest.js +3 -0
- package/dist/cjs/api/types/index.d.ts +12 -0
- package/dist/cjs/api/types/index.js +12 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/doc/resources/pages/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/doc/resources/pages/client/Client.mjs +182 -0
- package/dist/esm/api/resources/doc/resources/pages/client/requests/ExtractPagesRequest.d.mts +20 -0
- package/dist/esm/api/resources/doc/resources/pages/client/requests/ExtractPagesRequest.mjs +2 -0
- package/dist/esm/api/resources/doc/resources/pages/client/requests/InsertBlankPagesRequest.d.mts +18 -0
- package/dist/esm/api/resources/doc/resources/pages/client/requests/InsertBlankPagesRequest.mjs +2 -0
- package/dist/esm/api/resources/doc/resources/pages/client/requests/InsertPagesRequest.d.mts +16 -0
- package/dist/esm/api/resources/doc/resources/pages/client/requests/InsertPagesRequest.mjs +2 -0
- package/dist/esm/api/resources/doc/resources/pages/client/requests/index.d.mts +3 -0
- package/dist/esm/api/types/DocPagesExtract400Response.d.mts +34 -0
- package/dist/esm/api/types/DocPagesExtract400Response.mjs +28 -0
- package/dist/esm/api/types/DocPagesExtract404Response.d.mts +34 -0
- package/dist/esm/api/types/DocPagesExtract404Response.mjs +28 -0
- package/dist/esm/api/types/DocPagesExtractRequest.d.mts +1 -0
- package/dist/esm/api/types/DocPagesExtractRequest.mjs +2 -0
- package/dist/esm/api/types/DocPagesInsert200Response.d.mts +49 -0
- package/dist/esm/api/types/DocPagesInsert200Response.mjs +2 -0
- package/dist/esm/api/types/DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.d.mts +11 -0
- package/dist/esm/api/types/DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs +2 -0
- package/dist/esm/api/types/DocPagesInsert400Response.d.mts +34 -0
- package/dist/esm/api/types/DocPagesInsert400Response.mjs +28 -0
- package/dist/esm/api/types/DocPagesInsert404Response.d.mts +34 -0
- package/dist/esm/api/types/DocPagesInsert404Response.mjs +28 -0
- package/dist/esm/api/types/DocPagesInsertBlank200Response.d.mts +49 -0
- package/dist/esm/api/types/DocPagesInsertBlank200Response.mjs +2 -0
- package/dist/esm/api/types/DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.d.mts +11 -0
- package/dist/esm/api/types/DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs +2 -0
- package/dist/esm/api/types/DocPagesInsertBlank400Response.d.mts +34 -0
- package/dist/esm/api/types/DocPagesInsertBlank400Response.mjs +28 -0
- package/dist/esm/api/types/DocPagesInsertBlank404Response.d.mts +34 -0
- package/dist/esm/api/types/DocPagesInsertBlank404Response.mjs +28 -0
- package/dist/esm/api/types/DocPagesInsertBlankRequest.d.mts +1 -0
- package/dist/esm/api/types/DocPagesInsertBlankRequest.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +12 -0
- package/dist/esm/api/types/index.mjs +12 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +207 -0
package/dist/esm/api/resources/doc/resources/pages/client/requests/InsertBlankPagesRequest.d.mts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as CloudPDF from "../../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* docId: "docId",
|
|
6
|
+
* layerName: "layerName",
|
|
7
|
+
* body: {
|
|
8
|
+
* "key": "value"
|
|
9
|
+
* }
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface InsertBlankPagesRequest {
|
|
13
|
+
docId: string;
|
|
14
|
+
layerName: string;
|
|
15
|
+
/** Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. */
|
|
16
|
+
"X-Document-Password"?: string;
|
|
17
|
+
body: CloudPDF.DocPagesInsertBlankRequest;
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as core from "../../../../../../../core/index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* file: fs.createReadStream("/path/to/your/file"),
|
|
6
|
+
* docId: "docId",
|
|
7
|
+
* layerName: "layerName"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface InsertPagesRequest {
|
|
11
|
+
docId: string;
|
|
12
|
+
layerName: string;
|
|
13
|
+
/** Base64-encoded password for an encrypted document. Valid only with the API token (403 anywhere else). An encrypted document answers 422 DocPasswordRequired when the header is absent. Viewer doc JWTs use the SDK password-session flow instead. */
|
|
14
|
+
"X-Document-Password"?: string;
|
|
15
|
+
file: core.file.Uploadable;
|
|
16
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export type { DeletePagesRequest } from "./DeletePagesRequest.mjs";
|
|
2
|
+
export type { ExtractPagesRequest } from "./ExtractPagesRequest.mjs";
|
|
2
3
|
export type { FlattenPagesRequest } from "./FlattenPagesRequest.mjs";
|
|
4
|
+
export type { InsertBlankPagesRequest } from "./InsertBlankPagesRequest.mjs";
|
|
5
|
+
export type { InsertPagesRequest } from "./InsertPagesRequest.mjs";
|
|
3
6
|
export type { MovePagesRequest } from "./MovePagesRequest.mjs";
|
|
4
7
|
export type { RotatePagesRequest } from "./RotatePagesRequest.mjs";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DocPagesExtract400Response {
|
|
2
|
+
name: DocPagesExtract400Response.Name;
|
|
3
|
+
code: DocPagesExtract400Response.Code;
|
|
4
|
+
message: string;
|
|
5
|
+
details?: Record<string, unknown> | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesExtract400Response {
|
|
8
|
+
const Name: {
|
|
9
|
+
readonly EngineError: "EngineError";
|
|
10
|
+
};
|
|
11
|
+
type Name = (typeof Name)[keyof typeof Name];
|
|
12
|
+
const Code: {
|
|
13
|
+
readonly Unknown: "Unknown";
|
|
14
|
+
readonly InvalidArg: "InvalidArg";
|
|
15
|
+
readonly DocNotOpen: "DocNotOpen";
|
|
16
|
+
readonly DocOpenFailed: "DocOpenFailed";
|
|
17
|
+
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
18
|
+
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
19
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
20
|
+
readonly Aborted: "Aborted";
|
|
21
|
+
readonly Network: "Network";
|
|
22
|
+
readonly Unauthenticated: "Unauthenticated";
|
|
23
|
+
readonly Forbidden: "Forbidden";
|
|
24
|
+
readonly NotFound: "NotFound";
|
|
25
|
+
readonly WireFormat: "WireFormat";
|
|
26
|
+
readonly RuntimeUnavailable: "RuntimeUnavailable";
|
|
27
|
+
readonly InvalidReference: "InvalidReference";
|
|
28
|
+
readonly WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict";
|
|
29
|
+
readonly LayerVersionConflict: "LayerVersionConflict";
|
|
30
|
+
readonly NotImplemented: "NotImplemented";
|
|
31
|
+
readonly MalformedPdf: "MalformedPdf";
|
|
32
|
+
};
|
|
33
|
+
type Code = (typeof Code)[keyof typeof Code];
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var DocPagesExtract400Response;
|
|
3
|
+
(function (DocPagesExtract400Response) {
|
|
4
|
+
DocPagesExtract400Response.Name = {
|
|
5
|
+
EngineError: "EngineError",
|
|
6
|
+
};
|
|
7
|
+
DocPagesExtract400Response.Code = {
|
|
8
|
+
Unknown: "Unknown",
|
|
9
|
+
InvalidArg: "InvalidArg",
|
|
10
|
+
DocNotOpen: "DocNotOpen",
|
|
11
|
+
DocOpenFailed: "DocOpenFailed",
|
|
12
|
+
DocPasswordRequired: "DocPasswordRequired",
|
|
13
|
+
DocPasswordIncorrect: "DocPasswordIncorrect",
|
|
14
|
+
SharePasswordRequired: "SharePasswordRequired",
|
|
15
|
+
Aborted: "Aborted",
|
|
16
|
+
Network: "Network",
|
|
17
|
+
Unauthenticated: "Unauthenticated",
|
|
18
|
+
Forbidden: "Forbidden",
|
|
19
|
+
NotFound: "NotFound",
|
|
20
|
+
WireFormat: "WireFormat",
|
|
21
|
+
RuntimeUnavailable: "RuntimeUnavailable",
|
|
22
|
+
InvalidReference: "InvalidReference",
|
|
23
|
+
WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict",
|
|
24
|
+
LayerVersionConflict: "LayerVersionConflict",
|
|
25
|
+
NotImplemented: "NotImplemented",
|
|
26
|
+
MalformedPdf: "MalformedPdf",
|
|
27
|
+
};
|
|
28
|
+
})(DocPagesExtract400Response || (DocPagesExtract400Response = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DocPagesExtract404Response {
|
|
2
|
+
name: DocPagesExtract404Response.Name;
|
|
3
|
+
code: DocPagesExtract404Response.Code;
|
|
4
|
+
message: string;
|
|
5
|
+
details?: Record<string, unknown> | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesExtract404Response {
|
|
8
|
+
const Name: {
|
|
9
|
+
readonly EngineError: "EngineError";
|
|
10
|
+
};
|
|
11
|
+
type Name = (typeof Name)[keyof typeof Name];
|
|
12
|
+
const Code: {
|
|
13
|
+
readonly Unknown: "Unknown";
|
|
14
|
+
readonly InvalidArg: "InvalidArg";
|
|
15
|
+
readonly DocNotOpen: "DocNotOpen";
|
|
16
|
+
readonly DocOpenFailed: "DocOpenFailed";
|
|
17
|
+
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
18
|
+
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
19
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
20
|
+
readonly Aborted: "Aborted";
|
|
21
|
+
readonly Network: "Network";
|
|
22
|
+
readonly Unauthenticated: "Unauthenticated";
|
|
23
|
+
readonly Forbidden: "Forbidden";
|
|
24
|
+
readonly NotFound: "NotFound";
|
|
25
|
+
readonly WireFormat: "WireFormat";
|
|
26
|
+
readonly RuntimeUnavailable: "RuntimeUnavailable";
|
|
27
|
+
readonly InvalidReference: "InvalidReference";
|
|
28
|
+
readonly WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict";
|
|
29
|
+
readonly LayerVersionConflict: "LayerVersionConflict";
|
|
30
|
+
readonly NotImplemented: "NotImplemented";
|
|
31
|
+
readonly MalformedPdf: "MalformedPdf";
|
|
32
|
+
};
|
|
33
|
+
type Code = (typeof Code)[keyof typeof Code];
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var DocPagesExtract404Response;
|
|
3
|
+
(function (DocPagesExtract404Response) {
|
|
4
|
+
DocPagesExtract404Response.Name = {
|
|
5
|
+
EngineError: "EngineError",
|
|
6
|
+
};
|
|
7
|
+
DocPagesExtract404Response.Code = {
|
|
8
|
+
Unknown: "Unknown",
|
|
9
|
+
InvalidArg: "InvalidArg",
|
|
10
|
+
DocNotOpen: "DocNotOpen",
|
|
11
|
+
DocOpenFailed: "DocOpenFailed",
|
|
12
|
+
DocPasswordRequired: "DocPasswordRequired",
|
|
13
|
+
DocPasswordIncorrect: "DocPasswordIncorrect",
|
|
14
|
+
SharePasswordRequired: "SharePasswordRequired",
|
|
15
|
+
Aborted: "Aborted",
|
|
16
|
+
Network: "Network",
|
|
17
|
+
Unauthenticated: "Unauthenticated",
|
|
18
|
+
Forbidden: "Forbidden",
|
|
19
|
+
NotFound: "NotFound",
|
|
20
|
+
WireFormat: "WireFormat",
|
|
21
|
+
RuntimeUnavailable: "RuntimeUnavailable",
|
|
22
|
+
InvalidReference: "InvalidReference",
|
|
23
|
+
WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict",
|
|
24
|
+
LayerVersionConflict: "LayerVersionConflict",
|
|
25
|
+
NotImplemented: "NotImplemented",
|
|
26
|
+
MalformedPdf: "MalformedPdf",
|
|
27
|
+
};
|
|
28
|
+
})(DocPagesExtract404Response || (DocPagesExtract404Response = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DocPagesExtractRequest = Record<string, unknown>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type * as CloudPDF from "../index.mjs";
|
|
2
|
+
export interface DocPagesInsert200Response {
|
|
3
|
+
meta: DocPagesInsert200Response.Meta;
|
|
4
|
+
/** Accepts any additional properties */
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesInsert200Response {
|
|
8
|
+
interface Meta {
|
|
9
|
+
affectedPages: Meta.AffectedPages.Item[];
|
|
10
|
+
cacheDelta: Meta.CacheDelta | null;
|
|
11
|
+
}
|
|
12
|
+
namespace Meta {
|
|
13
|
+
type AffectedPages = AffectedPages.Item[];
|
|
14
|
+
namespace AffectedPages {
|
|
15
|
+
interface Item {
|
|
16
|
+
pageObjectNumber: number;
|
|
17
|
+
revision: Item.Revision;
|
|
18
|
+
weakAnnotationState: CloudPDF.DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState;
|
|
19
|
+
}
|
|
20
|
+
namespace Item {
|
|
21
|
+
interface Revision {
|
|
22
|
+
docSessionId: string;
|
|
23
|
+
pageObjectNumber: number;
|
|
24
|
+
generation: number;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
interface CacheDelta {
|
|
29
|
+
previousDocVersion: number;
|
|
30
|
+
docVersion: number;
|
|
31
|
+
pages: CacheDelta.Pages.Item[];
|
|
32
|
+
}
|
|
33
|
+
namespace CacheDelta {
|
|
34
|
+
type Pages = Pages.Item[];
|
|
35
|
+
namespace Pages {
|
|
36
|
+
interface Item {
|
|
37
|
+
pageObjectNumber: number;
|
|
38
|
+
cache: Item.Cache;
|
|
39
|
+
}
|
|
40
|
+
namespace Item {
|
|
41
|
+
interface Cache {
|
|
42
|
+
contentVersion: number;
|
|
43
|
+
annotationVersion: number;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
package/dist/esm/api/types/DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as CloudPDF from "../index.mjs";
|
|
2
|
+
export type DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState = CloudPDF.DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.Unknown | CloudPDF.DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.Known;
|
|
3
|
+
export declare namespace DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState {
|
|
4
|
+
interface Unknown {
|
|
5
|
+
kind: "unknown";
|
|
6
|
+
}
|
|
7
|
+
interface Known {
|
|
8
|
+
kind: "known";
|
|
9
|
+
hasAnyWeakAnnotations: boolean;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DocPagesInsert400Response {
|
|
2
|
+
name: DocPagesInsert400Response.Name;
|
|
3
|
+
code: DocPagesInsert400Response.Code;
|
|
4
|
+
message: string;
|
|
5
|
+
details?: Record<string, unknown> | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesInsert400Response {
|
|
8
|
+
const Name: {
|
|
9
|
+
readonly EngineError: "EngineError";
|
|
10
|
+
};
|
|
11
|
+
type Name = (typeof Name)[keyof typeof Name];
|
|
12
|
+
const Code: {
|
|
13
|
+
readonly Unknown: "Unknown";
|
|
14
|
+
readonly InvalidArg: "InvalidArg";
|
|
15
|
+
readonly DocNotOpen: "DocNotOpen";
|
|
16
|
+
readonly DocOpenFailed: "DocOpenFailed";
|
|
17
|
+
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
18
|
+
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
19
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
20
|
+
readonly Aborted: "Aborted";
|
|
21
|
+
readonly Network: "Network";
|
|
22
|
+
readonly Unauthenticated: "Unauthenticated";
|
|
23
|
+
readonly Forbidden: "Forbidden";
|
|
24
|
+
readonly NotFound: "NotFound";
|
|
25
|
+
readonly WireFormat: "WireFormat";
|
|
26
|
+
readonly RuntimeUnavailable: "RuntimeUnavailable";
|
|
27
|
+
readonly InvalidReference: "InvalidReference";
|
|
28
|
+
readonly WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict";
|
|
29
|
+
readonly LayerVersionConflict: "LayerVersionConflict";
|
|
30
|
+
readonly NotImplemented: "NotImplemented";
|
|
31
|
+
readonly MalformedPdf: "MalformedPdf";
|
|
32
|
+
};
|
|
33
|
+
type Code = (typeof Code)[keyof typeof Code];
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var DocPagesInsert400Response;
|
|
3
|
+
(function (DocPagesInsert400Response) {
|
|
4
|
+
DocPagesInsert400Response.Name = {
|
|
5
|
+
EngineError: "EngineError",
|
|
6
|
+
};
|
|
7
|
+
DocPagesInsert400Response.Code = {
|
|
8
|
+
Unknown: "Unknown",
|
|
9
|
+
InvalidArg: "InvalidArg",
|
|
10
|
+
DocNotOpen: "DocNotOpen",
|
|
11
|
+
DocOpenFailed: "DocOpenFailed",
|
|
12
|
+
DocPasswordRequired: "DocPasswordRequired",
|
|
13
|
+
DocPasswordIncorrect: "DocPasswordIncorrect",
|
|
14
|
+
SharePasswordRequired: "SharePasswordRequired",
|
|
15
|
+
Aborted: "Aborted",
|
|
16
|
+
Network: "Network",
|
|
17
|
+
Unauthenticated: "Unauthenticated",
|
|
18
|
+
Forbidden: "Forbidden",
|
|
19
|
+
NotFound: "NotFound",
|
|
20
|
+
WireFormat: "WireFormat",
|
|
21
|
+
RuntimeUnavailable: "RuntimeUnavailable",
|
|
22
|
+
InvalidReference: "InvalidReference",
|
|
23
|
+
WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict",
|
|
24
|
+
LayerVersionConflict: "LayerVersionConflict",
|
|
25
|
+
NotImplemented: "NotImplemented",
|
|
26
|
+
MalformedPdf: "MalformedPdf",
|
|
27
|
+
};
|
|
28
|
+
})(DocPagesInsert400Response || (DocPagesInsert400Response = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DocPagesInsert404Response {
|
|
2
|
+
name: DocPagesInsert404Response.Name;
|
|
3
|
+
code: DocPagesInsert404Response.Code;
|
|
4
|
+
message: string;
|
|
5
|
+
details?: Record<string, unknown> | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesInsert404Response {
|
|
8
|
+
const Name: {
|
|
9
|
+
readonly EngineError: "EngineError";
|
|
10
|
+
};
|
|
11
|
+
type Name = (typeof Name)[keyof typeof Name];
|
|
12
|
+
const Code: {
|
|
13
|
+
readonly Unknown: "Unknown";
|
|
14
|
+
readonly InvalidArg: "InvalidArg";
|
|
15
|
+
readonly DocNotOpen: "DocNotOpen";
|
|
16
|
+
readonly DocOpenFailed: "DocOpenFailed";
|
|
17
|
+
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
18
|
+
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
19
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
20
|
+
readonly Aborted: "Aborted";
|
|
21
|
+
readonly Network: "Network";
|
|
22
|
+
readonly Unauthenticated: "Unauthenticated";
|
|
23
|
+
readonly Forbidden: "Forbidden";
|
|
24
|
+
readonly NotFound: "NotFound";
|
|
25
|
+
readonly WireFormat: "WireFormat";
|
|
26
|
+
readonly RuntimeUnavailable: "RuntimeUnavailable";
|
|
27
|
+
readonly InvalidReference: "InvalidReference";
|
|
28
|
+
readonly WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict";
|
|
29
|
+
readonly LayerVersionConflict: "LayerVersionConflict";
|
|
30
|
+
readonly NotImplemented: "NotImplemented";
|
|
31
|
+
readonly MalformedPdf: "MalformedPdf";
|
|
32
|
+
};
|
|
33
|
+
type Code = (typeof Code)[keyof typeof Code];
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var DocPagesInsert404Response;
|
|
3
|
+
(function (DocPagesInsert404Response) {
|
|
4
|
+
DocPagesInsert404Response.Name = {
|
|
5
|
+
EngineError: "EngineError",
|
|
6
|
+
};
|
|
7
|
+
DocPagesInsert404Response.Code = {
|
|
8
|
+
Unknown: "Unknown",
|
|
9
|
+
InvalidArg: "InvalidArg",
|
|
10
|
+
DocNotOpen: "DocNotOpen",
|
|
11
|
+
DocOpenFailed: "DocOpenFailed",
|
|
12
|
+
DocPasswordRequired: "DocPasswordRequired",
|
|
13
|
+
DocPasswordIncorrect: "DocPasswordIncorrect",
|
|
14
|
+
SharePasswordRequired: "SharePasswordRequired",
|
|
15
|
+
Aborted: "Aborted",
|
|
16
|
+
Network: "Network",
|
|
17
|
+
Unauthenticated: "Unauthenticated",
|
|
18
|
+
Forbidden: "Forbidden",
|
|
19
|
+
NotFound: "NotFound",
|
|
20
|
+
WireFormat: "WireFormat",
|
|
21
|
+
RuntimeUnavailable: "RuntimeUnavailable",
|
|
22
|
+
InvalidReference: "InvalidReference",
|
|
23
|
+
WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict",
|
|
24
|
+
LayerVersionConflict: "LayerVersionConflict",
|
|
25
|
+
NotImplemented: "NotImplemented",
|
|
26
|
+
MalformedPdf: "MalformedPdf",
|
|
27
|
+
};
|
|
28
|
+
})(DocPagesInsert404Response || (DocPagesInsert404Response = {}));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type * as CloudPDF from "../index.mjs";
|
|
2
|
+
export interface DocPagesInsertBlank200Response {
|
|
3
|
+
meta: DocPagesInsertBlank200Response.Meta;
|
|
4
|
+
/** Accepts any additional properties */
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesInsertBlank200Response {
|
|
8
|
+
interface Meta {
|
|
9
|
+
affectedPages: Meta.AffectedPages.Item[];
|
|
10
|
+
cacheDelta: Meta.CacheDelta | null;
|
|
11
|
+
}
|
|
12
|
+
namespace Meta {
|
|
13
|
+
type AffectedPages = AffectedPages.Item[];
|
|
14
|
+
namespace AffectedPages {
|
|
15
|
+
interface Item {
|
|
16
|
+
pageObjectNumber: number;
|
|
17
|
+
revision: Item.Revision;
|
|
18
|
+
weakAnnotationState: CloudPDF.DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState;
|
|
19
|
+
}
|
|
20
|
+
namespace Item {
|
|
21
|
+
interface Revision {
|
|
22
|
+
docSessionId: string;
|
|
23
|
+
pageObjectNumber: number;
|
|
24
|
+
generation: number;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
interface CacheDelta {
|
|
29
|
+
previousDocVersion: number;
|
|
30
|
+
docVersion: number;
|
|
31
|
+
pages: CacheDelta.Pages.Item[];
|
|
32
|
+
}
|
|
33
|
+
namespace CacheDelta {
|
|
34
|
+
type Pages = Pages.Item[];
|
|
35
|
+
namespace Pages {
|
|
36
|
+
interface Item {
|
|
37
|
+
pageObjectNumber: number;
|
|
38
|
+
cache: Item.Cache;
|
|
39
|
+
}
|
|
40
|
+
namespace Item {
|
|
41
|
+
interface Cache {
|
|
42
|
+
contentVersion: number;
|
|
43
|
+
annotationVersion: number;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as CloudPDF from "../index.mjs";
|
|
2
|
+
export type DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState = CloudPDF.DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.Unknown | CloudPDF.DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.Known;
|
|
3
|
+
export declare namespace DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState {
|
|
4
|
+
interface Unknown {
|
|
5
|
+
kind: "unknown";
|
|
6
|
+
}
|
|
7
|
+
interface Known {
|
|
8
|
+
kind: "known";
|
|
9
|
+
hasAnyWeakAnnotations: boolean;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DocPagesInsertBlank400Response {
|
|
2
|
+
name: DocPagesInsertBlank400Response.Name;
|
|
3
|
+
code: DocPagesInsertBlank400Response.Code;
|
|
4
|
+
message: string;
|
|
5
|
+
details?: Record<string, unknown> | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesInsertBlank400Response {
|
|
8
|
+
const Name: {
|
|
9
|
+
readonly EngineError: "EngineError";
|
|
10
|
+
};
|
|
11
|
+
type Name = (typeof Name)[keyof typeof Name];
|
|
12
|
+
const Code: {
|
|
13
|
+
readonly Unknown: "Unknown";
|
|
14
|
+
readonly InvalidArg: "InvalidArg";
|
|
15
|
+
readonly DocNotOpen: "DocNotOpen";
|
|
16
|
+
readonly DocOpenFailed: "DocOpenFailed";
|
|
17
|
+
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
18
|
+
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
19
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
20
|
+
readonly Aborted: "Aborted";
|
|
21
|
+
readonly Network: "Network";
|
|
22
|
+
readonly Unauthenticated: "Unauthenticated";
|
|
23
|
+
readonly Forbidden: "Forbidden";
|
|
24
|
+
readonly NotFound: "NotFound";
|
|
25
|
+
readonly WireFormat: "WireFormat";
|
|
26
|
+
readonly RuntimeUnavailable: "RuntimeUnavailable";
|
|
27
|
+
readonly InvalidReference: "InvalidReference";
|
|
28
|
+
readonly WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict";
|
|
29
|
+
readonly LayerVersionConflict: "LayerVersionConflict";
|
|
30
|
+
readonly NotImplemented: "NotImplemented";
|
|
31
|
+
readonly MalformedPdf: "MalformedPdf";
|
|
32
|
+
};
|
|
33
|
+
type Code = (typeof Code)[keyof typeof Code];
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var DocPagesInsertBlank400Response;
|
|
3
|
+
(function (DocPagesInsertBlank400Response) {
|
|
4
|
+
DocPagesInsertBlank400Response.Name = {
|
|
5
|
+
EngineError: "EngineError",
|
|
6
|
+
};
|
|
7
|
+
DocPagesInsertBlank400Response.Code = {
|
|
8
|
+
Unknown: "Unknown",
|
|
9
|
+
InvalidArg: "InvalidArg",
|
|
10
|
+
DocNotOpen: "DocNotOpen",
|
|
11
|
+
DocOpenFailed: "DocOpenFailed",
|
|
12
|
+
DocPasswordRequired: "DocPasswordRequired",
|
|
13
|
+
DocPasswordIncorrect: "DocPasswordIncorrect",
|
|
14
|
+
SharePasswordRequired: "SharePasswordRequired",
|
|
15
|
+
Aborted: "Aborted",
|
|
16
|
+
Network: "Network",
|
|
17
|
+
Unauthenticated: "Unauthenticated",
|
|
18
|
+
Forbidden: "Forbidden",
|
|
19
|
+
NotFound: "NotFound",
|
|
20
|
+
WireFormat: "WireFormat",
|
|
21
|
+
RuntimeUnavailable: "RuntimeUnavailable",
|
|
22
|
+
InvalidReference: "InvalidReference",
|
|
23
|
+
WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict",
|
|
24
|
+
LayerVersionConflict: "LayerVersionConflict",
|
|
25
|
+
NotImplemented: "NotImplemented",
|
|
26
|
+
MalformedPdf: "MalformedPdf",
|
|
27
|
+
};
|
|
28
|
+
})(DocPagesInsertBlank400Response || (DocPagesInsertBlank400Response = {}));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface DocPagesInsertBlank404Response {
|
|
2
|
+
name: DocPagesInsertBlank404Response.Name;
|
|
3
|
+
code: DocPagesInsertBlank404Response.Code;
|
|
4
|
+
message: string;
|
|
5
|
+
details?: Record<string, unknown> | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace DocPagesInsertBlank404Response {
|
|
8
|
+
const Name: {
|
|
9
|
+
readonly EngineError: "EngineError";
|
|
10
|
+
};
|
|
11
|
+
type Name = (typeof Name)[keyof typeof Name];
|
|
12
|
+
const Code: {
|
|
13
|
+
readonly Unknown: "Unknown";
|
|
14
|
+
readonly InvalidArg: "InvalidArg";
|
|
15
|
+
readonly DocNotOpen: "DocNotOpen";
|
|
16
|
+
readonly DocOpenFailed: "DocOpenFailed";
|
|
17
|
+
readonly DocPasswordRequired: "DocPasswordRequired";
|
|
18
|
+
readonly DocPasswordIncorrect: "DocPasswordIncorrect";
|
|
19
|
+
readonly SharePasswordRequired: "SharePasswordRequired";
|
|
20
|
+
readonly Aborted: "Aborted";
|
|
21
|
+
readonly Network: "Network";
|
|
22
|
+
readonly Unauthenticated: "Unauthenticated";
|
|
23
|
+
readonly Forbidden: "Forbidden";
|
|
24
|
+
readonly NotFound: "NotFound";
|
|
25
|
+
readonly WireFormat: "WireFormat";
|
|
26
|
+
readonly RuntimeUnavailable: "RuntimeUnavailable";
|
|
27
|
+
readonly InvalidReference: "InvalidReference";
|
|
28
|
+
readonly WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict";
|
|
29
|
+
readonly LayerVersionConflict: "LayerVersionConflict";
|
|
30
|
+
readonly NotImplemented: "NotImplemented";
|
|
31
|
+
readonly MalformedPdf: "MalformedPdf";
|
|
32
|
+
};
|
|
33
|
+
type Code = (typeof Code)[keyof typeof Code];
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var DocPagesInsertBlank404Response;
|
|
3
|
+
(function (DocPagesInsertBlank404Response) {
|
|
4
|
+
DocPagesInsertBlank404Response.Name = {
|
|
5
|
+
EngineError: "EngineError",
|
|
6
|
+
};
|
|
7
|
+
DocPagesInsertBlank404Response.Code = {
|
|
8
|
+
Unknown: "Unknown",
|
|
9
|
+
InvalidArg: "InvalidArg",
|
|
10
|
+
DocNotOpen: "DocNotOpen",
|
|
11
|
+
DocOpenFailed: "DocOpenFailed",
|
|
12
|
+
DocPasswordRequired: "DocPasswordRequired",
|
|
13
|
+
DocPasswordIncorrect: "DocPasswordIncorrect",
|
|
14
|
+
SharePasswordRequired: "SharePasswordRequired",
|
|
15
|
+
Aborted: "Aborted",
|
|
16
|
+
Network: "Network",
|
|
17
|
+
Unauthenticated: "Unauthenticated",
|
|
18
|
+
Forbidden: "Forbidden",
|
|
19
|
+
NotFound: "NotFound",
|
|
20
|
+
WireFormat: "WireFormat",
|
|
21
|
+
RuntimeUnavailable: "RuntimeUnavailable",
|
|
22
|
+
InvalidReference: "InvalidReference",
|
|
23
|
+
WeakAnnotationSessionConflict: "WeakAnnotationSessionConflict",
|
|
24
|
+
LayerVersionConflict: "LayerVersionConflict",
|
|
25
|
+
NotImplemented: "NotImplemented",
|
|
26
|
+
MalformedPdf: "MalformedPdf",
|
|
27
|
+
};
|
|
28
|
+
})(DocPagesInsertBlank404Response || (DocPagesInsertBlank404Response = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DocPagesInsertBlankRequest = Record<string, unknown>;
|
|
@@ -112,11 +112,23 @@ export * from "./DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationSta
|
|
|
112
112
|
export * from "./DocPagesDelete400Response.mjs";
|
|
113
113
|
export * from "./DocPagesDelete404Response.mjs";
|
|
114
114
|
export * from "./DocPagesDeleteRequest.mjs";
|
|
115
|
+
export * from "./DocPagesExtract400Response.mjs";
|
|
116
|
+
export * from "./DocPagesExtract404Response.mjs";
|
|
117
|
+
export * from "./DocPagesExtractRequest.mjs";
|
|
115
118
|
export * from "./DocPagesFlatten200Response.mjs";
|
|
116
119
|
export * from "./DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
117
120
|
export * from "./DocPagesFlatten400Response.mjs";
|
|
118
121
|
export * from "./DocPagesFlatten404Response.mjs";
|
|
119
122
|
export * from "./DocPagesFlattenRequest.mjs";
|
|
123
|
+
export * from "./DocPagesInsert200Response.mjs";
|
|
124
|
+
export * from "./DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
125
|
+
export * from "./DocPagesInsert400Response.mjs";
|
|
126
|
+
export * from "./DocPagesInsert404Response.mjs";
|
|
127
|
+
export * from "./DocPagesInsertBlank200Response.mjs";
|
|
128
|
+
export * from "./DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
129
|
+
export * from "./DocPagesInsertBlank400Response.mjs";
|
|
130
|
+
export * from "./DocPagesInsertBlank404Response.mjs";
|
|
131
|
+
export * from "./DocPagesInsertBlankRequest.mjs";
|
|
120
132
|
export * from "./DocPagesMove200Response.mjs";
|
|
121
133
|
export * from "./DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
122
134
|
export * from "./DocPagesMove400Response.mjs";
|
|
@@ -112,11 +112,23 @@ export * from "./DocPagesDelete200ResponseMetaAffectedPagesItemWeakAnnotationSta
|
|
|
112
112
|
export * from "./DocPagesDelete400Response.mjs";
|
|
113
113
|
export * from "./DocPagesDelete404Response.mjs";
|
|
114
114
|
export * from "./DocPagesDeleteRequest.mjs";
|
|
115
|
+
export * from "./DocPagesExtract400Response.mjs";
|
|
116
|
+
export * from "./DocPagesExtract404Response.mjs";
|
|
117
|
+
export * from "./DocPagesExtractRequest.mjs";
|
|
115
118
|
export * from "./DocPagesFlatten200Response.mjs";
|
|
116
119
|
export * from "./DocPagesFlatten200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
117
120
|
export * from "./DocPagesFlatten400Response.mjs";
|
|
118
121
|
export * from "./DocPagesFlatten404Response.mjs";
|
|
119
122
|
export * from "./DocPagesFlattenRequest.mjs";
|
|
123
|
+
export * from "./DocPagesInsert200Response.mjs";
|
|
124
|
+
export * from "./DocPagesInsert200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
125
|
+
export * from "./DocPagesInsert400Response.mjs";
|
|
126
|
+
export * from "./DocPagesInsert404Response.mjs";
|
|
127
|
+
export * from "./DocPagesInsertBlank200Response.mjs";
|
|
128
|
+
export * from "./DocPagesInsertBlank200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
129
|
+
export * from "./DocPagesInsertBlank400Response.mjs";
|
|
130
|
+
export * from "./DocPagesInsertBlank404Response.mjs";
|
|
131
|
+
export * from "./DocPagesInsertBlankRequest.mjs";
|
|
120
132
|
export * from "./DocPagesMove200Response.mjs";
|
|
121
133
|
export * from "./DocPagesMove200ResponseMetaAffectedPagesItemWeakAnnotationState.mjs";
|
|
122
134
|
export * from "./DocPagesMove400Response.mjs";
|