@revoengine/sdk 1.5.5 → 1.5.6
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 +12 -5
- package/dist/{errors-BmtftjgL.d.cts → errors-XTYAxN-H.d.cts} +23 -62
- package/dist/{errors-BmtftjgL.d.ts → errors-XTYAxN-H.d.ts} +23 -62
- package/dist/hosted.cjs +303 -513
- 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 +303 -513
- package/dist/hosted.js.map +1 -1
- package/dist/index.cjs +305 -513
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +285 -473
- package/dist/index.d.ts +285 -473
- package/dist/index.js +305 -513
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# @revoengine/sdk
|
|
2
2
|
|
|
3
3
|
Official Node.js SDK for RevoEngine. It provides the modern `api`, `utils`,
|
|
4
|
-
`storage`, and `agents` namespaces, top-level `execute()`, and the `batch` controller in both
|
|
4
|
+
`storage`, `transport`, and `agents` namespaces, top-level `execute()`, and the `batch` controller in both
|
|
5
5
|
Revo-hosted `CUSTOM_NODEJS` components and standalone Node.js applications.
|
|
6
6
|
|
|
7
7
|
Requirements: Node.js 22 or newer.
|
|
8
8
|
|
|
9
|
-
## SDK
|
|
9
|
+
## SDK 1.5.6 compatibility
|
|
10
10
|
|
|
11
|
-
This
|
|
11
|
+
This release synchronizes the complete public SDK contract with the current
|
|
12
12
|
platform low-code declarations. Remote calls require a platform runtime that admits
|
|
13
13
|
the bundled contract revision; publishing the SDK alone does not deploy that runtime.
|
|
14
14
|
Use SDK 1.0.1 with older deployments until their platform contract is upgraded.
|
|
@@ -21,6 +21,13 @@ network or hosted bridge dispatch. Automation schedules use `{ scheduleFor }`
|
|
|
21
21
|
options instead of positional dates. Regenerated types also include the current
|
|
22
22
|
Storage and database contracts; use those declarations when migrating callers.
|
|
23
23
|
|
|
24
|
+
The `transport` namespace exposes `sftpImport`, `sftpExport`, and `sftpCommands`
|
|
25
|
+
with active Secret names or IDs instead of inline credentials. Storage references
|
|
26
|
+
use the same namespace and effective access rules as other file operations.
|
|
27
|
+
Legacy SFTP helpers and the removed thread-goal methods are not exposed by the
|
|
28
|
+
current SDK contract. Refer to the [transfer guide](https://docs.revoengine.com/build/transport)
|
|
29
|
+
for Secret formats and file-transfer examples.
|
|
30
|
+
|
|
24
31
|
## Choose your runtime
|
|
25
32
|
|
|
26
33
|
| Environment | How to start | Authentication |
|
|
@@ -28,7 +35,7 @@ Storage and database contracts; use those declarations when migrating callers.
|
|
|
28
35
|
| Revo-hosted `CUSTOM_NODEJS` | Export `async function init(runtime)` | Revo injects an execution-bound runtime; user code receives no API key. |
|
|
29
36
|
| Standalone Node.js | Create `new RevoClient(options)` | Supply a RevoEngine API key explicitly or through an environment variable. |
|
|
30
37
|
|
|
31
|
-
Both modes expose the same `api`, `utils`, `storage`, `agents`, `execute`, and `batch`
|
|
38
|
+
Both modes expose the same `api`, `utils`, `storage`, `transport`, `agents`, `execute`, and `batch`
|
|
32
39
|
properties, but return types reflect where the work happens:
|
|
33
40
|
|
|
34
41
|
| Call kind | Revo-hosted | Standalone |
|
|
@@ -52,7 +59,7 @@ RevoEngine pins that version again in the deployment package and injects the
|
|
|
52
59
|
runtime into the component entrypoint. Component code does not construct a
|
|
53
60
|
`RevoClient`.
|
|
54
61
|
|
|
55
|
-
The platform chooses the hosted package version; publishing SDK
|
|
62
|
+
The platform chooses the hosted package version; publishing SDK 1.5.6 does not
|
|
56
63
|
upgrade existing hosted deployments or their generated package pins.
|
|
57
64
|
|
|
58
65
|
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
|
|
|
3
|
-
declare const SDK_VERSION: "1.5.
|
|
3
|
+
declare const SDK_VERSION: "1.5.6";
|
|
4
4
|
declare const PROTOCOL_VERSION: 1;
|
|
5
|
-
declare const CONTRACT_REVISION: "
|
|
6
|
-
type RuntimeSurfaceName = 'api' | 'storage' | 'agents' | 'lowCode';
|
|
5
|
+
declare const CONTRACT_REVISION: "8a1f8936cd7f3b2e9d418a0676e02024b3dd54c3d2aa721d698b0c3ea66bbf04";
|
|
6
|
+
type RuntimeSurfaceName = 'api' | 'storage' | 'transport' | 'agents' | 'lowCode';
|
|
7
7
|
|
|
8
8
|
// AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY.
|
|
9
9
|
// Sources: api.swagger-contracts.generated.d.ts, api.public.d.ts
|
|
@@ -922,20 +922,6 @@ interface StorageEntryUpdateInput {
|
|
|
922
922
|
/** Current entity version. */
|
|
923
923
|
"version"?: number;
|
|
924
924
|
}
|
|
925
|
-
interface AssistantThreadGoalInput {
|
|
926
|
-
/** Durable thread-level objective used to validate assistant completion across turns, tool loops, approval resumes, and compaction. */
|
|
927
|
-
"objective": string;
|
|
928
|
-
/** Optional concrete criteria the goal reviewer should require before marking the goal satisfied. */
|
|
929
|
-
"successCriteria"?: Array<string>;
|
|
930
|
-
/** Optional exclusions that should not be treated as required work for this goal. */
|
|
931
|
-
"nonGoals"?: Array<string>;
|
|
932
|
-
/** Optional evidence the reviewer should expect, such as tests, lint, screenshots, API results, or changed resources. */
|
|
933
|
-
"requiredEvidence"?: Array<string>;
|
|
934
|
-
/** Optional validation commands or checks relevant to this goal. */
|
|
935
|
-
"validationCommands"?: Array<string>;
|
|
936
|
-
/** Optional concise definition of done used by the reviewer when evaluating candidate completion. */
|
|
937
|
-
"doneDefinition"?: string;
|
|
938
|
-
}
|
|
939
925
|
interface AssistantThreadTitleInput {
|
|
940
926
|
/** New user-defined title for the thread. */
|
|
941
927
|
"title": string;
|
|
@@ -2098,26 +2084,22 @@ interface InstanceData {
|
|
|
2098
2084
|
id: string;
|
|
2099
2085
|
};
|
|
2100
2086
|
}
|
|
2101
|
-
interface SFTPClient {
|
|
2102
|
-
host: string;
|
|
2103
|
-
port: number;
|
|
2104
|
-
username: string;
|
|
2105
|
-
password?: string;
|
|
2106
|
-
privateKey?: string;
|
|
2107
|
-
passphrase?: string;
|
|
2108
|
-
}
|
|
2109
2087
|
interface StorageFileTargetRequest extends Omit<StorageUploadSessionInput, 'replaceStorageEntryId' | 'uploadMode'> {
|
|
2110
2088
|
name: string;
|
|
2111
2089
|
}
|
|
2112
|
-
|
|
2090
|
+
/** Storage destination for transport.sftpImport. Uses the same namespace and ACL contract as storage.* and HTTP targets. */
|
|
2091
|
+
type SFTPImportStorage = (StorageFileTargetRequest & {
|
|
2092
|
+
namespace?: string;
|
|
2093
|
+
}) | {
|
|
2113
2094
|
storageEntryId: string;
|
|
2095
|
+
namespace?: string;
|
|
2096
|
+
replace: true;
|
|
2114
2097
|
};
|
|
2115
|
-
|
|
2098
|
+
/** Existing Storage file used by transport.sftpExport. */
|
|
2099
|
+
interface SFTPExportStorage {
|
|
2116
2100
|
storageEntryId: string;
|
|
2117
|
-
|
|
2118
|
-
}
|
|
2119
|
-
storage: StorageFileTargetRequest;
|
|
2120
|
-
};
|
|
2101
|
+
namespace?: string;
|
|
2102
|
+
}
|
|
2121
2103
|
interface JWTHeader {
|
|
2122
2104
|
alg: string | 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'none';
|
|
2123
2105
|
typ?: string | undefined;
|
|
@@ -2592,7 +2574,6 @@ interface AssistantThread {
|
|
|
2592
2574
|
actionRequired?: AssistantActionRequired | null;
|
|
2593
2575
|
executionPlan?: AssistantPublicExecutionPlan | null;
|
|
2594
2576
|
workerProgress?: AssistantWorkerProgress[] | null;
|
|
2595
|
-
goal?: AssistantThreadGoal | null;
|
|
2596
2577
|
share?: AssistantThreadShare | null;
|
|
2597
2578
|
createdBy?: string;
|
|
2598
2579
|
createdAt?: Date | string;
|
|
@@ -2602,23 +2583,6 @@ interface AssistantThread {
|
|
|
2602
2583
|
deletedAt?: Date | string | null;
|
|
2603
2584
|
version?: number;
|
|
2604
2585
|
}
|
|
2605
|
-
interface AssistantThreadGoal {
|
|
2606
|
-
version: 1;
|
|
2607
|
-
assistantThreadId: string;
|
|
2608
|
-
revision: number;
|
|
2609
|
-
status: 'active' | 'paused' | 'completed' | 'blocked' | 'cleared';
|
|
2610
|
-
objective: string | null;
|
|
2611
|
-
source: 'user' | 'api' | 'message' | 'system';
|
|
2612
|
-
createdAt: string;
|
|
2613
|
-
updatedAt: string;
|
|
2614
|
-
updatedBy: string | null;
|
|
2615
|
-
validation: {
|
|
2616
|
-
status: 'satisfied' | 'unsatisfied' | 'partial' | 'skipped';
|
|
2617
|
-
reviewedAt: string;
|
|
2618
|
-
rationale: string | null;
|
|
2619
|
-
evidenceRefs?: string[];
|
|
2620
|
-
} | null;
|
|
2621
|
-
}
|
|
2622
2586
|
interface AssistantMessage {
|
|
2623
2587
|
assistantMessageId: string;
|
|
2624
2588
|
assistantThreadId: string;
|
|
@@ -2635,7 +2599,6 @@ interface AssistantThreadState {
|
|
|
2635
2599
|
actionRequired: AssistantActionRequired | null;
|
|
2636
2600
|
executionPlan: AssistantPublicExecutionPlan | null;
|
|
2637
2601
|
workerProgress?: AssistantWorkerProgress[] | null;
|
|
2638
|
-
goal?: AssistantThreadGoal | null;
|
|
2639
2602
|
}
|
|
2640
2603
|
interface AssistantThreadShare {
|
|
2641
2604
|
shareId: string;
|
|
@@ -2809,12 +2772,6 @@ interface RevoApi {
|
|
|
2809
2772
|
};
|
|
2810
2773
|
};
|
|
2811
2774
|
}>;
|
|
2812
|
-
sftpExec(commands: any[], config: SFTPClient): Promise<any>;
|
|
2813
|
-
sftpPut(source: SFTPFileSourceRef, path: string, config: SFTPClient): Promise<void>;
|
|
2814
|
-
sftpGet(target: SFTPFileTargetRef, path: string, config: SFTPClient): Promise<void | {
|
|
2815
|
-
session: StorageUploadSession;
|
|
2816
|
-
entry: StorageEntryView;
|
|
2817
|
-
}>;
|
|
2818
2775
|
}
|
|
2819
2776
|
interface RevoStorage {
|
|
2820
2777
|
explore(query?: StorageExploreRequest): Promise<StorageExploreResult>;
|
|
@@ -2876,6 +2833,14 @@ interface RevoStorage {
|
|
|
2876
2833
|
getDocument(storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
2877
2834
|
getDocument(namespace: string, storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
2878
2835
|
}
|
|
2836
|
+
interface RevoTransport {
|
|
2837
|
+
sftpImport(path: string, storage: SFTPImportStorage, secretNameOrId: string): Promise<{
|
|
2838
|
+
session: StorageUploadSession;
|
|
2839
|
+
entry: StorageEntryView;
|
|
2840
|
+
}>;
|
|
2841
|
+
sftpExport(path: string, storage: SFTPExportStorage, secretNameOrId: string): Promise<void>;
|
|
2842
|
+
sftpCommands(commands: any[], secretNameOrId: string): Promise<any>;
|
|
2843
|
+
}
|
|
2879
2844
|
interface RevoAgents {
|
|
2880
2845
|
list(): Promise<Agent[]>;
|
|
2881
2846
|
get(agentId: string): Promise<Agent>;
|
|
@@ -2903,11 +2868,6 @@ interface RevoAgents {
|
|
|
2903
2868
|
hideDeleted?: boolean;
|
|
2904
2869
|
}): Promise<AssistantThread>;
|
|
2905
2870
|
getThreadState(assistantThreadId: string): Promise<AssistantThreadState>;
|
|
2906
|
-
getThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal | null>;
|
|
2907
|
-
setThreadGoal(assistantThreadId: string, data: AssistantThreadGoalInput): Promise<AssistantThreadGoal>;
|
|
2908
|
-
pauseThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal>;
|
|
2909
|
-
resumeThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal>;
|
|
2910
|
-
clearThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal>;
|
|
2911
2871
|
getThreadShare(assistantThreadId: string): Promise<AssistantThreadShare | null>;
|
|
2912
2872
|
enableThreadShare(assistantThreadId: string): Promise<AssistantThreadShare>;
|
|
2913
2873
|
disableThreadShare(assistantThreadId: string): Promise<AssistantThreadShare>;
|
|
@@ -3119,6 +3079,7 @@ interface RevoRuntime {
|
|
|
3119
3079
|
readonly api: RevoApi;
|
|
3120
3080
|
readonly utils: RevoUtils;
|
|
3121
3081
|
readonly storage: RevoStorage;
|
|
3082
|
+
readonly transport: RevoTransport;
|
|
3122
3083
|
readonly agents: RevoAgents;
|
|
3123
3084
|
readonly execute: RevoExecute;
|
|
3124
3085
|
readonly batch: RevoBatchController;
|
|
@@ -3216,4 +3177,4 @@ declare class RevoHttpResponseError extends RevoError {
|
|
|
3216
3177
|
constructor(statusCode: number, body?: unknown);
|
|
3217
3178
|
}
|
|
3218
3179
|
|
|
3219
|
-
export {
|
|
3180
|
+
export { RevoRuntimeContextUnavailableError as A, type BatchFailureMode as B, CONTRACT_REVISION as C, RevoTransportError as D, type RuntimeBatchRequest as E, type RuntimeBatchResponse as F, type RuntimeCall as G, type HostedRuntimeBootstrap as H, type RuntimeCallResult as I, type SerializedRevoError as J, PROTOCOL_VERSION as P, type RevoRuntime as R, SDK_VERSION as S, RevoExecutionExit as a, RevoHttpResponseError as b, type RevoRuntimeBridgeRequest as c, type RevoRuntimeBridgeResponse as d, type RevoRuntimeBridgeTransportError as e, type RevoStandaloneApi as f, type RevoUtils as g, type RevoStorage as h, type RevoTransport as i, type RevoAgents as j, type RevoExecute as k, type RevoBatchController as l, type RevoClientOptions as m, type RevoApi as n, RevoAuthenticationError as o, RevoBatchConfigurationError as p, RevoBatchLimitError as q, type RevoBatchLimits as r, type RevoBatchOptions as s, RevoConfigurationError as t, RevoError as u, type RevoExecuteOptions as v, type RevoExecutionDefaults as w, RevoPermissionDeniedError as x, RevoProtocolError as y, RevoRemoteError as z };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as node_worker_threads from 'node:worker_threads';
|
|
2
2
|
|
|
3
|
-
declare const SDK_VERSION: "1.5.
|
|
3
|
+
declare const SDK_VERSION: "1.5.6";
|
|
4
4
|
declare const PROTOCOL_VERSION: 1;
|
|
5
|
-
declare const CONTRACT_REVISION: "
|
|
6
|
-
type RuntimeSurfaceName = 'api' | 'storage' | 'agents' | 'lowCode';
|
|
5
|
+
declare const CONTRACT_REVISION: "8a1f8936cd7f3b2e9d418a0676e02024b3dd54c3d2aa721d698b0c3ea66bbf04";
|
|
6
|
+
type RuntimeSurfaceName = 'api' | 'storage' | 'transport' | 'agents' | 'lowCode';
|
|
7
7
|
|
|
8
8
|
// AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY.
|
|
9
9
|
// Sources: api.swagger-contracts.generated.d.ts, api.public.d.ts
|
|
@@ -922,20 +922,6 @@ interface StorageEntryUpdateInput {
|
|
|
922
922
|
/** Current entity version. */
|
|
923
923
|
"version"?: number;
|
|
924
924
|
}
|
|
925
|
-
interface AssistantThreadGoalInput {
|
|
926
|
-
/** Durable thread-level objective used to validate assistant completion across turns, tool loops, approval resumes, and compaction. */
|
|
927
|
-
"objective": string;
|
|
928
|
-
/** Optional concrete criteria the goal reviewer should require before marking the goal satisfied. */
|
|
929
|
-
"successCriteria"?: Array<string>;
|
|
930
|
-
/** Optional exclusions that should not be treated as required work for this goal. */
|
|
931
|
-
"nonGoals"?: Array<string>;
|
|
932
|
-
/** Optional evidence the reviewer should expect, such as tests, lint, screenshots, API results, or changed resources. */
|
|
933
|
-
"requiredEvidence"?: Array<string>;
|
|
934
|
-
/** Optional validation commands or checks relevant to this goal. */
|
|
935
|
-
"validationCommands"?: Array<string>;
|
|
936
|
-
/** Optional concise definition of done used by the reviewer when evaluating candidate completion. */
|
|
937
|
-
"doneDefinition"?: string;
|
|
938
|
-
}
|
|
939
925
|
interface AssistantThreadTitleInput {
|
|
940
926
|
/** New user-defined title for the thread. */
|
|
941
927
|
"title": string;
|
|
@@ -2098,26 +2084,22 @@ interface InstanceData {
|
|
|
2098
2084
|
id: string;
|
|
2099
2085
|
};
|
|
2100
2086
|
}
|
|
2101
|
-
interface SFTPClient {
|
|
2102
|
-
host: string;
|
|
2103
|
-
port: number;
|
|
2104
|
-
username: string;
|
|
2105
|
-
password?: string;
|
|
2106
|
-
privateKey?: string;
|
|
2107
|
-
passphrase?: string;
|
|
2108
|
-
}
|
|
2109
2087
|
interface StorageFileTargetRequest extends Omit<StorageUploadSessionInput, 'replaceStorageEntryId' | 'uploadMode'> {
|
|
2110
2088
|
name: string;
|
|
2111
2089
|
}
|
|
2112
|
-
|
|
2090
|
+
/** Storage destination for transport.sftpImport. Uses the same namespace and ACL contract as storage.* and HTTP targets. */
|
|
2091
|
+
type SFTPImportStorage = (StorageFileTargetRequest & {
|
|
2092
|
+
namespace?: string;
|
|
2093
|
+
}) | {
|
|
2113
2094
|
storageEntryId: string;
|
|
2095
|
+
namespace?: string;
|
|
2096
|
+
replace: true;
|
|
2114
2097
|
};
|
|
2115
|
-
|
|
2098
|
+
/** Existing Storage file used by transport.sftpExport. */
|
|
2099
|
+
interface SFTPExportStorage {
|
|
2116
2100
|
storageEntryId: string;
|
|
2117
|
-
|
|
2118
|
-
}
|
|
2119
|
-
storage: StorageFileTargetRequest;
|
|
2120
|
-
};
|
|
2101
|
+
namespace?: string;
|
|
2102
|
+
}
|
|
2121
2103
|
interface JWTHeader {
|
|
2122
2104
|
alg: string | 'HS256' | 'HS384' | 'HS512' | 'RS256' | 'RS384' | 'RS512' | 'ES256' | 'ES384' | 'ES512' | 'PS256' | 'PS384' | 'PS512' | 'none';
|
|
2123
2105
|
typ?: string | undefined;
|
|
@@ -2592,7 +2574,6 @@ interface AssistantThread {
|
|
|
2592
2574
|
actionRequired?: AssistantActionRequired | null;
|
|
2593
2575
|
executionPlan?: AssistantPublicExecutionPlan | null;
|
|
2594
2576
|
workerProgress?: AssistantWorkerProgress[] | null;
|
|
2595
|
-
goal?: AssistantThreadGoal | null;
|
|
2596
2577
|
share?: AssistantThreadShare | null;
|
|
2597
2578
|
createdBy?: string;
|
|
2598
2579
|
createdAt?: Date | string;
|
|
@@ -2602,23 +2583,6 @@ interface AssistantThread {
|
|
|
2602
2583
|
deletedAt?: Date | string | null;
|
|
2603
2584
|
version?: number;
|
|
2604
2585
|
}
|
|
2605
|
-
interface AssistantThreadGoal {
|
|
2606
|
-
version: 1;
|
|
2607
|
-
assistantThreadId: string;
|
|
2608
|
-
revision: number;
|
|
2609
|
-
status: 'active' | 'paused' | 'completed' | 'blocked' | 'cleared';
|
|
2610
|
-
objective: string | null;
|
|
2611
|
-
source: 'user' | 'api' | 'message' | 'system';
|
|
2612
|
-
createdAt: string;
|
|
2613
|
-
updatedAt: string;
|
|
2614
|
-
updatedBy: string | null;
|
|
2615
|
-
validation: {
|
|
2616
|
-
status: 'satisfied' | 'unsatisfied' | 'partial' | 'skipped';
|
|
2617
|
-
reviewedAt: string;
|
|
2618
|
-
rationale: string | null;
|
|
2619
|
-
evidenceRefs?: string[];
|
|
2620
|
-
} | null;
|
|
2621
|
-
}
|
|
2622
2586
|
interface AssistantMessage {
|
|
2623
2587
|
assistantMessageId: string;
|
|
2624
2588
|
assistantThreadId: string;
|
|
@@ -2635,7 +2599,6 @@ interface AssistantThreadState {
|
|
|
2635
2599
|
actionRequired: AssistantActionRequired | null;
|
|
2636
2600
|
executionPlan: AssistantPublicExecutionPlan | null;
|
|
2637
2601
|
workerProgress?: AssistantWorkerProgress[] | null;
|
|
2638
|
-
goal?: AssistantThreadGoal | null;
|
|
2639
2602
|
}
|
|
2640
2603
|
interface AssistantThreadShare {
|
|
2641
2604
|
shareId: string;
|
|
@@ -2809,12 +2772,6 @@ interface RevoApi {
|
|
|
2809
2772
|
};
|
|
2810
2773
|
};
|
|
2811
2774
|
}>;
|
|
2812
|
-
sftpExec(commands: any[], config: SFTPClient): Promise<any>;
|
|
2813
|
-
sftpPut(source: SFTPFileSourceRef, path: string, config: SFTPClient): Promise<void>;
|
|
2814
|
-
sftpGet(target: SFTPFileTargetRef, path: string, config: SFTPClient): Promise<void | {
|
|
2815
|
-
session: StorageUploadSession;
|
|
2816
|
-
entry: StorageEntryView;
|
|
2817
|
-
}>;
|
|
2818
2775
|
}
|
|
2819
2776
|
interface RevoStorage {
|
|
2820
2777
|
explore(query?: StorageExploreRequest): Promise<StorageExploreResult>;
|
|
@@ -2876,6 +2833,14 @@ interface RevoStorage {
|
|
|
2876
2833
|
getDocument(storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
2877
2834
|
getDocument(namespace: string, storageEntryId: string, options?: StorageDocumentReadOptions): Promise<StorageDocument>;
|
|
2878
2835
|
}
|
|
2836
|
+
interface RevoTransport {
|
|
2837
|
+
sftpImport(path: string, storage: SFTPImportStorage, secretNameOrId: string): Promise<{
|
|
2838
|
+
session: StorageUploadSession;
|
|
2839
|
+
entry: StorageEntryView;
|
|
2840
|
+
}>;
|
|
2841
|
+
sftpExport(path: string, storage: SFTPExportStorage, secretNameOrId: string): Promise<void>;
|
|
2842
|
+
sftpCommands(commands: any[], secretNameOrId: string): Promise<any>;
|
|
2843
|
+
}
|
|
2879
2844
|
interface RevoAgents {
|
|
2880
2845
|
list(): Promise<Agent[]>;
|
|
2881
2846
|
get(agentId: string): Promise<Agent>;
|
|
@@ -2903,11 +2868,6 @@ interface RevoAgents {
|
|
|
2903
2868
|
hideDeleted?: boolean;
|
|
2904
2869
|
}): Promise<AssistantThread>;
|
|
2905
2870
|
getThreadState(assistantThreadId: string): Promise<AssistantThreadState>;
|
|
2906
|
-
getThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal | null>;
|
|
2907
|
-
setThreadGoal(assistantThreadId: string, data: AssistantThreadGoalInput): Promise<AssistantThreadGoal>;
|
|
2908
|
-
pauseThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal>;
|
|
2909
|
-
resumeThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal>;
|
|
2910
|
-
clearThreadGoal(assistantThreadId: string): Promise<AssistantThreadGoal>;
|
|
2911
2871
|
getThreadShare(assistantThreadId: string): Promise<AssistantThreadShare | null>;
|
|
2912
2872
|
enableThreadShare(assistantThreadId: string): Promise<AssistantThreadShare>;
|
|
2913
2873
|
disableThreadShare(assistantThreadId: string): Promise<AssistantThreadShare>;
|
|
@@ -3119,6 +3079,7 @@ interface RevoRuntime {
|
|
|
3119
3079
|
readonly api: RevoApi;
|
|
3120
3080
|
readonly utils: RevoUtils;
|
|
3121
3081
|
readonly storage: RevoStorage;
|
|
3082
|
+
readonly transport: RevoTransport;
|
|
3122
3083
|
readonly agents: RevoAgents;
|
|
3123
3084
|
readonly execute: RevoExecute;
|
|
3124
3085
|
readonly batch: RevoBatchController;
|
|
@@ -3216,4 +3177,4 @@ declare class RevoHttpResponseError extends RevoError {
|
|
|
3216
3177
|
constructor(statusCode: number, body?: unknown);
|
|
3217
3178
|
}
|
|
3218
3179
|
|
|
3219
|
-
export {
|
|
3180
|
+
export { RevoRuntimeContextUnavailableError as A, type BatchFailureMode as B, CONTRACT_REVISION as C, RevoTransportError as D, type RuntimeBatchRequest as E, type RuntimeBatchResponse as F, type RuntimeCall as G, type HostedRuntimeBootstrap as H, type RuntimeCallResult as I, type SerializedRevoError as J, PROTOCOL_VERSION as P, type RevoRuntime as R, SDK_VERSION as S, RevoExecutionExit as a, RevoHttpResponseError as b, type RevoRuntimeBridgeRequest as c, type RevoRuntimeBridgeResponse as d, type RevoRuntimeBridgeTransportError as e, type RevoStandaloneApi as f, type RevoUtils as g, type RevoStorage as h, type RevoTransport as i, type RevoAgents as j, type RevoExecute as k, type RevoBatchController as l, type RevoClientOptions as m, type RevoApi as n, RevoAuthenticationError as o, RevoBatchConfigurationError as p, RevoBatchLimitError as q, type RevoBatchLimits as r, type RevoBatchOptions as s, RevoConfigurationError as t, RevoError as u, type RevoExecuteOptions as v, type RevoExecutionDefaults as w, RevoPermissionDeniedError as x, RevoProtocolError as y, RevoRemoteError as z };
|