@docmana/sdk 0.47.0 → 0.49.0

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/reviews.d.ts CHANGED
@@ -86,6 +86,21 @@ export interface DocumentPreviewManifest {
86
86
  height?: number;
87
87
  }>;
88
88
  retryAfterMs: number;
89
+ requestedLanguage?: string;
90
+ servedLanguage?: string | null;
91
+ variant?: DocumentVariant;
92
+ fallback?: boolean;
93
+ translationState?: DocumentTranslationState;
94
+ }
95
+ export type DocumentVariant = "original" | "translation";
96
+ export type DocumentTranslationState = "absent" | "preparing" | "ready" | "failed" | "unsupported";
97
+ export interface DocumentTranslation {
98
+ status: 200 | 202;
99
+ requestedLanguage: string;
100
+ servedLanguage: string | null;
101
+ variant: DocumentVariant;
102
+ fallback: boolean;
103
+ translationState: DocumentTranslationState;
89
104
  }
90
105
  export interface ReviewItem {
91
106
  itemId: string;
@@ -226,6 +241,7 @@ export interface ReviewReadOptions {
226
241
  export interface ReviewDocumentOptions extends ReviewReadOptions {
227
242
  version?: string;
228
243
  size?: "full" | "thumb";
244
+ language?: string;
229
245
  range?: string;
230
246
  ifRange?: string;
231
247
  ifNoneMatch?: string;
@@ -275,4 +291,5 @@ export declare class Reviews {
275
291
  document(executionId: string, docKey: string, resource: "content" | "locations" | "preview" | {
276
292
  page: number;
277
293
  }, options: ReviewDocumentOptions): Promise<Response>;
294
+ requestDocumentTranslation(executionId: string, docKey: string, language: string, options: ReviewReadOptions): Promise<DocumentTranslation>;
278
295
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docmana/sdk",
3
- "version": "0.47.0",
3
+ "version": "0.49.0",
4
4
  "description": "Official Docmana SDK — run document-analysis flows with a single call.",
5
5
  "license": "MIT",
6
6
  "type": "module",