@revoengine/sdk 1.6.6 → 1.6.7
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/README.md +9 -3
- package/dist/{errors-wZ8wrU3c.d.cts → errors-Cdksdvcb.d.cts} +66 -13
- package/dist/{errors-wZ8wrU3c.d.ts → errors-Cdksdvcb.d.ts} +66 -13
- package/dist/hosted.cjs +185 -14
- package/dist/hosted.cjs.map +1 -1
- package/dist/hosted.d.cts +2 -2
- package/dist/hosted.d.ts +2 -2
- package/dist/hosted.js +185 -14
- package/dist/hosted.js.map +1 -1
- package/dist/index.cjs +185 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +169 -14
- package/dist/index.d.ts +169 -14
- package/dist/index.js +185 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,13 +8,19 @@ Requirements: Node.js 22 or newer.
|
|
|
8
8
|
|
|
9
9
|
Development and GitLab CI use Node.js 24.21.0. Run `nvm use` to select the checked-in `.nvmrc`.
|
|
10
10
|
|
|
11
|
-
## SDK 1.6.
|
|
11
|
+
## SDK 1.6.7 compatibility
|
|
12
12
|
|
|
13
13
|
This release synchronizes the complete public SDK contract with the current
|
|
14
14
|
platform low-code declarations. Remote calls require a platform runtime that admits
|
|
15
15
|
the bundled contract revision; publishing the SDK alone does not deploy that runtime.
|
|
16
16
|
Use the SDK version supported by the target platform deployment until its contract is upgraded.
|
|
17
17
|
|
|
18
|
+
Storage declarations include physical-line reads, quote-disabled CSV dialects,
|
|
19
|
+
per-record byte limits, and the opt-in `onError: 'skipRow'` read policy. That policy
|
|
20
|
+
skips records with the wrong source column count and returns bounded locations in
|
|
21
|
+
`csvReport`; syntax and record-size errors still abort. The report describes the
|
|
22
|
+
whole source and must not be summed across pages.
|
|
23
|
+
|
|
18
24
|
HTTP Storage requests/responses now use `requestType: 'storage'` and
|
|
19
25
|
`responseType: 'storage'`, with flat Storage-only `source` / `target` objects.
|
|
20
26
|
Legacy HTTP Files references and the old Storage `stream` mode are rejected.
|
|
@@ -30,7 +36,7 @@ Legacy SFTP helpers and the removed thread-goal methods are not exposed by the
|
|
|
30
36
|
current SDK contract. Refer to the [transfer guide](https://docs.revoengine.com/low-code/sftp)
|
|
31
37
|
for Secret formats and file-transfer examples.
|
|
32
38
|
|
|
33
|
-
SDK 1.6.
|
|
39
|
+
SDK 1.6.7 retains portable Component digest declarations and one readable-relation
|
|
34
40
|
contract for Databases, live Views, and Materialized Views. Use `api.exportDatabase()`
|
|
35
41
|
for all three relation types. `api.getDatabaseViewData()` remains a deprecated
|
|
36
42
|
read alias; `api.exportDatabaseView()` and separate REST View export operations
|
|
@@ -81,7 +87,7 @@ RevoEngine pins that version again in the deployment package and injects the
|
|
|
81
87
|
runtime into the component entrypoint. Component code does not construct a
|
|
82
88
|
`RevoClient`.
|
|
83
89
|
|
|
84
|
-
The platform chooses the hosted package version; publishing SDK 1.6.
|
|
90
|
+
The platform chooses the hosted package version; publishing SDK 1.6.7 does not
|
|
85
91
|
upgrade existing hosted deployments or their generated package pins.
|
|
86
92
|
|
|
87
93
|
Hosted user code receives neither a tenant API key nor the private runtime
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as node_worker_threads from 'node:worker_threads';
|
|
2
2
|
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
3
3
|
|
|
4
|
-
declare const SDK_VERSION: "1.6.
|
|
4
|
+
declare const SDK_VERSION: "1.6.7";
|
|
5
5
|
declare const PROTOCOL_VERSION: 1;
|
|
6
|
-
declare const CONTRACT_REVISION: "
|
|
6
|
+
declare const CONTRACT_REVISION: "a9de5c146fcadb896de690ab28be48926ff24e0ec0d518182763750fb8ce0453";
|
|
7
7
|
type RuntimeSurfaceName = 'api' | 'storage' | 'transport' | 'vault' | 'serviceAccount' | 'agents' | 'lowCode';
|
|
8
8
|
|
|
9
9
|
// AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY.
|
|
@@ -587,6 +587,8 @@ interface SwaggerStorageCellInputDto {
|
|
|
587
587
|
"style"?: Record<string, unknown>;
|
|
588
588
|
}
|
|
589
589
|
interface SwaggerStorageCsvOptionsDto {
|
|
590
|
+
/** CSV read/index policy. abort rejects invalid records; skipRow skips only source field-count mismatches and reports their count and locations. Syntax and oversized-record errors always abort. */
|
|
591
|
+
"onError"?: "abort" | "skipRow";
|
|
590
592
|
/** Output character encoding. Input encoding is detected when omitted. */
|
|
591
593
|
"encoding"?: string;
|
|
592
594
|
/** Emit a byte order mark at the start of the file. */
|
|
@@ -595,9 +597,11 @@ interface SwaggerStorageCsvOptionsDto {
|
|
|
595
597
|
"delimiter"?: string;
|
|
596
598
|
/** Record delimiter. */
|
|
597
599
|
"recordDelimiter"?: "\n" | "\r" | "\r\n";
|
|
598
|
-
/** Quote character. */
|
|
599
|
-
"quote"?: string;
|
|
600
|
-
/**
|
|
600
|
+
/** Quote character, default double quote. Set false to disable CSV quoting; quotes and backslashes then remain literal and escape is ignored. */
|
|
601
|
+
"quote"?: string | false;
|
|
602
|
+
/** Maximum source bytes in one logical CSV record, including multiline quoted fields. Defaults to 64 MiB; independent of callback/read batch size. Larger records reject indexing with STORAGE_CSV_INVALID and a RecordTooLarge diagnostic. */
|
|
603
|
+
"maxRecordBytes"?: number;
|
|
604
|
+
/** Quote escape character. Ignored when quote is false. */
|
|
601
605
|
"escape"?: string;
|
|
602
606
|
/** Prefix spreadsheet formula-like values to prevent CSV formula injection. */
|
|
603
607
|
"escapeFormulae"?: boolean;
|
|
@@ -654,7 +658,7 @@ interface SwaggerStorageSheetTableDto {
|
|
|
654
658
|
interface SwaggerStorageTabularSchemaPolicyDto {
|
|
655
659
|
/** How missing sheets or columns and invalid declared values are handled. fallback retains imperfect data with diagnostics; strict fails structured indexing. Defaults to fallback. */
|
|
656
660
|
"profile"?: "fallback" | "strict";
|
|
657
|
-
/** How undeclared source columns are handled. allow retains them, strip omits them from structured rows, and reject fails indexing. Defaults to allow for fallback and reject for strict.
|
|
661
|
+
/** How undeclared source columns are handled. allow retains them, strip omits them from structured rows, and reject fails indexing. Defaults to allow for fallback and reject for strict. Already committed files retain their raw bytes; synchronous validation failures before publication do not create a readable entry. */
|
|
658
662
|
"additionalProperties"?: "allow" | "strip" | "reject";
|
|
659
663
|
}
|
|
660
664
|
interface SwaggerUpdateServiceAccountAccessDto {
|
|
@@ -1939,6 +1943,10 @@ interface StorageEntryView extends StorageEntry {
|
|
|
1939
1943
|
breadcrumbs: StorageBreadcrumb[];
|
|
1940
1944
|
}
|
|
1941
1945
|
interface StorageExploreRequest {
|
|
1946
|
+
/** Disable implicit parent-folder scoping; ACL and namespace checks still apply. */
|
|
1947
|
+
flat?: boolean;
|
|
1948
|
+
filter?: SelectFilterNode;
|
|
1949
|
+
sort?: string[] | Record<string, SortDir>;
|
|
1942
1950
|
parentStorageEntryId?: string;
|
|
1943
1951
|
storageProviderConfigId?: string | null;
|
|
1944
1952
|
term?: string;
|
|
@@ -2055,7 +2063,27 @@ interface StorageDocument {
|
|
|
2055
2063
|
totalLines?: number;
|
|
2056
2064
|
truncated?: boolean;
|
|
2057
2065
|
}
|
|
2066
|
+
/** Whole-source CSV mismatch report. Repeated on pages; do not sum page reports. No raw values. */
|
|
2067
|
+
interface StorageCsvReadReport {
|
|
2068
|
+
skippedRows: number;
|
|
2069
|
+
diagnostics: Array<{
|
|
2070
|
+
code: string;
|
|
2071
|
+
recordNumber: number;
|
|
2072
|
+
lineStart: number;
|
|
2073
|
+
lineEnd: number;
|
|
2074
|
+
startByte: number;
|
|
2075
|
+
expectedFieldCount?: number;
|
|
2076
|
+
actualFieldCount?: number;
|
|
2077
|
+
message: string;
|
|
2078
|
+
}>;
|
|
2079
|
+
diagnosticsTruncated: boolean;
|
|
2080
|
+
}
|
|
2058
2081
|
interface StorageFileReadOptions {
|
|
2082
|
+
/** CSV only. Default abort. skipRow drops wrong-width source records; syntax/size errors still abort. */
|
|
2083
|
+
onError?: 'abort' | 'skipRow';
|
|
2084
|
+
/** Physical lines include headers and the trailing empty line. Defaults to records. */
|
|
2085
|
+
mode?: 'records' | 'lines';
|
|
2086
|
+
separator?: string;
|
|
2059
2087
|
batchNumber?: number;
|
|
2060
2088
|
buffer?: boolean;
|
|
2061
2089
|
start?: number;
|
|
@@ -2070,7 +2098,11 @@ interface StorageFileReadOptions {
|
|
|
2070
2098
|
encoding?: string;
|
|
2071
2099
|
delimiter?: string;
|
|
2072
2100
|
recordDelimiter?: '\n' | '\r' | '\r\n';
|
|
2073
|
-
quote
|
|
2101
|
+
/** One quote character (default double quote), or false for literal quotes/backslashes. */
|
|
2102
|
+
quote?: string | false;
|
|
2103
|
+
/** Maximum bytes in one logical CSV record; positive integer, default 64 MiB. Independent of read/callback size. */
|
|
2104
|
+
maxRecordBytes?: number;
|
|
2105
|
+
/** Quote escape character; ignored when quote is false. */
|
|
2074
2106
|
escape?: string;
|
|
2075
2107
|
/** XML record path such as `Orders/Order`; required for XML row reads. */
|
|
2076
2108
|
recordPath?: string;
|
|
@@ -2086,11 +2118,18 @@ interface StorageFileReadOptions {
|
|
|
2086
2118
|
}>;
|
|
2087
2119
|
}
|
|
2088
2120
|
interface StorageFileStatsOptions {
|
|
2121
|
+
/** CSV only. Default abort. skipRow drops wrong-width source records; syntax/size errors still abort. */
|
|
2122
|
+
onError?: 'abort' | 'skipRow';
|
|
2123
|
+
mode?: 'records' | 'lines';
|
|
2089
2124
|
separator?: string;
|
|
2090
2125
|
encoding?: string;
|
|
2091
2126
|
delimiter?: string;
|
|
2092
2127
|
recordDelimiter?: '\n' | '\r' | '\r\n';
|
|
2093
|
-
quote
|
|
2128
|
+
/** One quote character (default double quote), or false for literal quotes/backslashes. */
|
|
2129
|
+
quote?: string | false;
|
|
2130
|
+
/** Maximum bytes in one logical CSV record; positive integer, default 64 MiB. Independent of read/callback size. */
|
|
2131
|
+
maxRecordBytes?: number;
|
|
2132
|
+
/** Quote escape character; ignored when quote is false. */
|
|
2094
2133
|
escape?: string;
|
|
2095
2134
|
headerRow?: number | null;
|
|
2096
2135
|
reloadStats?: boolean;
|
|
@@ -2122,7 +2161,16 @@ interface StorageTabularSchemaResult {
|
|
|
2122
2161
|
issues: StorageTabularSchemaIssue[];
|
|
2123
2162
|
}
|
|
2124
2163
|
interface StorageFileStats {
|
|
2164
|
+
/** Present for CSV indexed with onError: skipRow; describes the entire source. */
|
|
2165
|
+
csvReport?: StorageCsvReadReport;
|
|
2166
|
+
/** Legacy physical-window count, including the terminal empty window after a delimiter. */
|
|
2125
2167
|
lineCount?: number;
|
|
2168
|
+
/** Actual physical lines, including headers, blanks and multiline CSV field lines; no terminal synthetic empty line. */
|
|
2169
|
+
physicalLineCount?: number;
|
|
2170
|
+
/** Empty physical lines, excluding the synthetic terminal empty line. */
|
|
2171
|
+
blankLineCount?: number;
|
|
2172
|
+
/** Whether the source ends in its detected or explicit record delimiter. */
|
|
2173
|
+
endsWithRecordDelimiter?: boolean;
|
|
2126
2174
|
map?: LooseObject<number>;
|
|
2127
2175
|
separator?: string;
|
|
2128
2176
|
batches?: number;
|
|
@@ -2133,7 +2181,11 @@ interface StorageFileStats {
|
|
|
2133
2181
|
bom?: boolean;
|
|
2134
2182
|
delimiter?: string;
|
|
2135
2183
|
recordDelimiter?: string;
|
|
2136
|
-
quote
|
|
2184
|
+
/** One quote character (default double quote), or false for literal quotes/backslashes. */
|
|
2185
|
+
quote?: string | false;
|
|
2186
|
+
/** Maximum bytes in one logical CSV record; positive integer, default 64 MiB. Independent of read/callback size. */
|
|
2187
|
+
maxRecordBytes?: number;
|
|
2188
|
+
/** Quote escape character; ignored when quote is false. */
|
|
2137
2189
|
escape?: string;
|
|
2138
2190
|
rowCount?: number;
|
|
2139
2191
|
headers?: StorageTabularColumn[];
|
|
@@ -2148,6 +2200,7 @@ interface StorageFileStats {
|
|
|
2148
2200
|
}>;
|
|
2149
2201
|
}
|
|
2150
2202
|
interface StorageStructuredFileDataPage {
|
|
2203
|
+
csvReport?: StorageCsvReadReport;
|
|
2151
2204
|
format: 'csv' | 'xlsx' | 'ndjson' | 'json-array' | 'xml';
|
|
2152
2205
|
sheet: string | null;
|
|
2153
2206
|
headers: StorageTabularColumn[];
|
|
@@ -3330,10 +3383,10 @@ interface RevoApi {
|
|
|
3330
3383
|
acquireIdempotencyKey(key: string, ttl: number, value?: any): Promise<boolean>;
|
|
3331
3384
|
getIdempotencyKey(key: string): Promise<any>;
|
|
3332
3385
|
releaseIdempotencyKey(key: string): Promise<void>;
|
|
3333
|
-
concurrencyLimit(key: string, limit: number, ttl: number): Promise<boolean>;
|
|
3386
|
+
concurrencyLimit(key: string, limit: number, ttl: number, leaseOwnerId?: string): Promise<boolean>;
|
|
3334
3387
|
rateLimit(key: string, limit: number, ttl: number): Promise<boolean>;
|
|
3335
3388
|
releaseRateLimit(key: string): Promise<void>;
|
|
3336
|
-
releaseConcurrencyLimit(key: string): Promise<void>;
|
|
3389
|
+
releaseConcurrencyLimit(key: string, leaseOwnerId?: string): Promise<void>;
|
|
3337
3390
|
triggerEvent(name: string, message: any, options?: TriggerEventOptions): Promise<string>;
|
|
3338
3391
|
triggerTarget(targetType: ExecutionTargetType, targetId: string, input?: Record<string, JsonValue>, options?: AutomationScheduleOptions): Promise<string>;
|
|
3339
3392
|
triggerJob(templateIdOrName: string, templateInputs?: Record<string, JsonValue>, options?: AutomationScheduleOptions): Promise<string>;
|
|
@@ -3463,8 +3516,8 @@ interface RevoStorage {
|
|
|
3463
3516
|
restoreEntry(namespace: string, storageEntryId: string, data: StorageRestoreInput): Promise<StorageEntryView>;
|
|
3464
3517
|
deleteEntry(storageEntryId: string, data: StorageVersionInput): Promise<StorageEntryView>;
|
|
3465
3518
|
deleteEntry(namespace: string, storageEntryId: string, data: StorageVersionInput): Promise<StorageEntryView>;
|
|
3466
|
-
getDownload(storageEntryId: string, preview?: boolean): Promise<StorageDownload>;
|
|
3467
|
-
getDownload(namespace: string, storageEntryId: string, preview?: boolean): Promise<StorageDownload>;
|
|
3519
|
+
getDownload(storageEntryId: string, preview?: boolean, ttlSeconds?: number): Promise<StorageDownload>;
|
|
3520
|
+
getDownload(namespace: string, storageEntryId: string, preview?: boolean, ttlSeconds?: number): Promise<StorageDownload>;
|
|
3468
3521
|
getDocument(storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
3469
3522
|
getDocument(namespace: string, storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
3470
3523
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as node_worker_threads from 'node:worker_threads';
|
|
2
2
|
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
3
3
|
|
|
4
|
-
declare const SDK_VERSION: "1.6.
|
|
4
|
+
declare const SDK_VERSION: "1.6.7";
|
|
5
5
|
declare const PROTOCOL_VERSION: 1;
|
|
6
|
-
declare const CONTRACT_REVISION: "
|
|
6
|
+
declare const CONTRACT_REVISION: "a9de5c146fcadb896de690ab28be48926ff24e0ec0d518182763750fb8ce0453";
|
|
7
7
|
type RuntimeSurfaceName = 'api' | 'storage' | 'transport' | 'vault' | 'serviceAccount' | 'agents' | 'lowCode';
|
|
8
8
|
|
|
9
9
|
// AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY.
|
|
@@ -587,6 +587,8 @@ interface SwaggerStorageCellInputDto {
|
|
|
587
587
|
"style"?: Record<string, unknown>;
|
|
588
588
|
}
|
|
589
589
|
interface SwaggerStorageCsvOptionsDto {
|
|
590
|
+
/** CSV read/index policy. abort rejects invalid records; skipRow skips only source field-count mismatches and reports their count and locations. Syntax and oversized-record errors always abort. */
|
|
591
|
+
"onError"?: "abort" | "skipRow";
|
|
590
592
|
/** Output character encoding. Input encoding is detected when omitted. */
|
|
591
593
|
"encoding"?: string;
|
|
592
594
|
/** Emit a byte order mark at the start of the file. */
|
|
@@ -595,9 +597,11 @@ interface SwaggerStorageCsvOptionsDto {
|
|
|
595
597
|
"delimiter"?: string;
|
|
596
598
|
/** Record delimiter. */
|
|
597
599
|
"recordDelimiter"?: "\n" | "\r" | "\r\n";
|
|
598
|
-
/** Quote character. */
|
|
599
|
-
"quote"?: string;
|
|
600
|
-
/**
|
|
600
|
+
/** Quote character, default double quote. Set false to disable CSV quoting; quotes and backslashes then remain literal and escape is ignored. */
|
|
601
|
+
"quote"?: string | false;
|
|
602
|
+
/** Maximum source bytes in one logical CSV record, including multiline quoted fields. Defaults to 64 MiB; independent of callback/read batch size. Larger records reject indexing with STORAGE_CSV_INVALID and a RecordTooLarge diagnostic. */
|
|
603
|
+
"maxRecordBytes"?: number;
|
|
604
|
+
/** Quote escape character. Ignored when quote is false. */
|
|
601
605
|
"escape"?: string;
|
|
602
606
|
/** Prefix spreadsheet formula-like values to prevent CSV formula injection. */
|
|
603
607
|
"escapeFormulae"?: boolean;
|
|
@@ -654,7 +658,7 @@ interface SwaggerStorageSheetTableDto {
|
|
|
654
658
|
interface SwaggerStorageTabularSchemaPolicyDto {
|
|
655
659
|
/** How missing sheets or columns and invalid declared values are handled. fallback retains imperfect data with diagnostics; strict fails structured indexing. Defaults to fallback. */
|
|
656
660
|
"profile"?: "fallback" | "strict";
|
|
657
|
-
/** How undeclared source columns are handled. allow retains them, strip omits them from structured rows, and reject fails indexing. Defaults to allow for fallback and reject for strict.
|
|
661
|
+
/** How undeclared source columns are handled. allow retains them, strip omits them from structured rows, and reject fails indexing. Defaults to allow for fallback and reject for strict. Already committed files retain their raw bytes; synchronous validation failures before publication do not create a readable entry. */
|
|
658
662
|
"additionalProperties"?: "allow" | "strip" | "reject";
|
|
659
663
|
}
|
|
660
664
|
interface SwaggerUpdateServiceAccountAccessDto {
|
|
@@ -1939,6 +1943,10 @@ interface StorageEntryView extends StorageEntry {
|
|
|
1939
1943
|
breadcrumbs: StorageBreadcrumb[];
|
|
1940
1944
|
}
|
|
1941
1945
|
interface StorageExploreRequest {
|
|
1946
|
+
/** Disable implicit parent-folder scoping; ACL and namespace checks still apply. */
|
|
1947
|
+
flat?: boolean;
|
|
1948
|
+
filter?: SelectFilterNode;
|
|
1949
|
+
sort?: string[] | Record<string, SortDir>;
|
|
1942
1950
|
parentStorageEntryId?: string;
|
|
1943
1951
|
storageProviderConfigId?: string | null;
|
|
1944
1952
|
term?: string;
|
|
@@ -2055,7 +2063,27 @@ interface StorageDocument {
|
|
|
2055
2063
|
totalLines?: number;
|
|
2056
2064
|
truncated?: boolean;
|
|
2057
2065
|
}
|
|
2066
|
+
/** Whole-source CSV mismatch report. Repeated on pages; do not sum page reports. No raw values. */
|
|
2067
|
+
interface StorageCsvReadReport {
|
|
2068
|
+
skippedRows: number;
|
|
2069
|
+
diagnostics: Array<{
|
|
2070
|
+
code: string;
|
|
2071
|
+
recordNumber: number;
|
|
2072
|
+
lineStart: number;
|
|
2073
|
+
lineEnd: number;
|
|
2074
|
+
startByte: number;
|
|
2075
|
+
expectedFieldCount?: number;
|
|
2076
|
+
actualFieldCount?: number;
|
|
2077
|
+
message: string;
|
|
2078
|
+
}>;
|
|
2079
|
+
diagnosticsTruncated: boolean;
|
|
2080
|
+
}
|
|
2058
2081
|
interface StorageFileReadOptions {
|
|
2082
|
+
/** CSV only. Default abort. skipRow drops wrong-width source records; syntax/size errors still abort. */
|
|
2083
|
+
onError?: 'abort' | 'skipRow';
|
|
2084
|
+
/** Physical lines include headers and the trailing empty line. Defaults to records. */
|
|
2085
|
+
mode?: 'records' | 'lines';
|
|
2086
|
+
separator?: string;
|
|
2059
2087
|
batchNumber?: number;
|
|
2060
2088
|
buffer?: boolean;
|
|
2061
2089
|
start?: number;
|
|
@@ -2070,7 +2098,11 @@ interface StorageFileReadOptions {
|
|
|
2070
2098
|
encoding?: string;
|
|
2071
2099
|
delimiter?: string;
|
|
2072
2100
|
recordDelimiter?: '\n' | '\r' | '\r\n';
|
|
2073
|
-
quote
|
|
2101
|
+
/** One quote character (default double quote), or false for literal quotes/backslashes. */
|
|
2102
|
+
quote?: string | false;
|
|
2103
|
+
/** Maximum bytes in one logical CSV record; positive integer, default 64 MiB. Independent of read/callback size. */
|
|
2104
|
+
maxRecordBytes?: number;
|
|
2105
|
+
/** Quote escape character; ignored when quote is false. */
|
|
2074
2106
|
escape?: string;
|
|
2075
2107
|
/** XML record path such as `Orders/Order`; required for XML row reads. */
|
|
2076
2108
|
recordPath?: string;
|
|
@@ -2086,11 +2118,18 @@ interface StorageFileReadOptions {
|
|
|
2086
2118
|
}>;
|
|
2087
2119
|
}
|
|
2088
2120
|
interface StorageFileStatsOptions {
|
|
2121
|
+
/** CSV only. Default abort. skipRow drops wrong-width source records; syntax/size errors still abort. */
|
|
2122
|
+
onError?: 'abort' | 'skipRow';
|
|
2123
|
+
mode?: 'records' | 'lines';
|
|
2089
2124
|
separator?: string;
|
|
2090
2125
|
encoding?: string;
|
|
2091
2126
|
delimiter?: string;
|
|
2092
2127
|
recordDelimiter?: '\n' | '\r' | '\r\n';
|
|
2093
|
-
quote
|
|
2128
|
+
/** One quote character (default double quote), or false for literal quotes/backslashes. */
|
|
2129
|
+
quote?: string | false;
|
|
2130
|
+
/** Maximum bytes in one logical CSV record; positive integer, default 64 MiB. Independent of read/callback size. */
|
|
2131
|
+
maxRecordBytes?: number;
|
|
2132
|
+
/** Quote escape character; ignored when quote is false. */
|
|
2094
2133
|
escape?: string;
|
|
2095
2134
|
headerRow?: number | null;
|
|
2096
2135
|
reloadStats?: boolean;
|
|
@@ -2122,7 +2161,16 @@ interface StorageTabularSchemaResult {
|
|
|
2122
2161
|
issues: StorageTabularSchemaIssue[];
|
|
2123
2162
|
}
|
|
2124
2163
|
interface StorageFileStats {
|
|
2164
|
+
/** Present for CSV indexed with onError: skipRow; describes the entire source. */
|
|
2165
|
+
csvReport?: StorageCsvReadReport;
|
|
2166
|
+
/** Legacy physical-window count, including the terminal empty window after a delimiter. */
|
|
2125
2167
|
lineCount?: number;
|
|
2168
|
+
/** Actual physical lines, including headers, blanks and multiline CSV field lines; no terminal synthetic empty line. */
|
|
2169
|
+
physicalLineCount?: number;
|
|
2170
|
+
/** Empty physical lines, excluding the synthetic terminal empty line. */
|
|
2171
|
+
blankLineCount?: number;
|
|
2172
|
+
/** Whether the source ends in its detected or explicit record delimiter. */
|
|
2173
|
+
endsWithRecordDelimiter?: boolean;
|
|
2126
2174
|
map?: LooseObject<number>;
|
|
2127
2175
|
separator?: string;
|
|
2128
2176
|
batches?: number;
|
|
@@ -2133,7 +2181,11 @@ interface StorageFileStats {
|
|
|
2133
2181
|
bom?: boolean;
|
|
2134
2182
|
delimiter?: string;
|
|
2135
2183
|
recordDelimiter?: string;
|
|
2136
|
-
quote
|
|
2184
|
+
/** One quote character (default double quote), or false for literal quotes/backslashes. */
|
|
2185
|
+
quote?: string | false;
|
|
2186
|
+
/** Maximum bytes in one logical CSV record; positive integer, default 64 MiB. Independent of read/callback size. */
|
|
2187
|
+
maxRecordBytes?: number;
|
|
2188
|
+
/** Quote escape character; ignored when quote is false. */
|
|
2137
2189
|
escape?: string;
|
|
2138
2190
|
rowCount?: number;
|
|
2139
2191
|
headers?: StorageTabularColumn[];
|
|
@@ -2148,6 +2200,7 @@ interface StorageFileStats {
|
|
|
2148
2200
|
}>;
|
|
2149
2201
|
}
|
|
2150
2202
|
interface StorageStructuredFileDataPage {
|
|
2203
|
+
csvReport?: StorageCsvReadReport;
|
|
2151
2204
|
format: 'csv' | 'xlsx' | 'ndjson' | 'json-array' | 'xml';
|
|
2152
2205
|
sheet: string | null;
|
|
2153
2206
|
headers: StorageTabularColumn[];
|
|
@@ -3330,10 +3383,10 @@ interface RevoApi {
|
|
|
3330
3383
|
acquireIdempotencyKey(key: string, ttl: number, value?: any): Promise<boolean>;
|
|
3331
3384
|
getIdempotencyKey(key: string): Promise<any>;
|
|
3332
3385
|
releaseIdempotencyKey(key: string): Promise<void>;
|
|
3333
|
-
concurrencyLimit(key: string, limit: number, ttl: number): Promise<boolean>;
|
|
3386
|
+
concurrencyLimit(key: string, limit: number, ttl: number, leaseOwnerId?: string): Promise<boolean>;
|
|
3334
3387
|
rateLimit(key: string, limit: number, ttl: number): Promise<boolean>;
|
|
3335
3388
|
releaseRateLimit(key: string): Promise<void>;
|
|
3336
|
-
releaseConcurrencyLimit(key: string): Promise<void>;
|
|
3389
|
+
releaseConcurrencyLimit(key: string, leaseOwnerId?: string): Promise<void>;
|
|
3337
3390
|
triggerEvent(name: string, message: any, options?: TriggerEventOptions): Promise<string>;
|
|
3338
3391
|
triggerTarget(targetType: ExecutionTargetType, targetId: string, input?: Record<string, JsonValue>, options?: AutomationScheduleOptions): Promise<string>;
|
|
3339
3392
|
triggerJob(templateIdOrName: string, templateInputs?: Record<string, JsonValue>, options?: AutomationScheduleOptions): Promise<string>;
|
|
@@ -3463,8 +3516,8 @@ interface RevoStorage {
|
|
|
3463
3516
|
restoreEntry(namespace: string, storageEntryId: string, data: StorageRestoreInput): Promise<StorageEntryView>;
|
|
3464
3517
|
deleteEntry(storageEntryId: string, data: StorageVersionInput): Promise<StorageEntryView>;
|
|
3465
3518
|
deleteEntry(namespace: string, storageEntryId: string, data: StorageVersionInput): Promise<StorageEntryView>;
|
|
3466
|
-
getDownload(storageEntryId: string, preview?: boolean): Promise<StorageDownload>;
|
|
3467
|
-
getDownload(namespace: string, storageEntryId: string, preview?: boolean): Promise<StorageDownload>;
|
|
3519
|
+
getDownload(storageEntryId: string, preview?: boolean, ttlSeconds?: number): Promise<StorageDownload>;
|
|
3520
|
+
getDownload(namespace: string, storageEntryId: string, preview?: boolean, ttlSeconds?: number): Promise<StorageDownload>;
|
|
3468
3521
|
getDocument(storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
3469
3522
|
getDocument(namespace: string, storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
3470
3523
|
}
|