|
1 | | -/* eslint-disable @typescript-eslint/ban-types */ |
2 | 1 | /* eslint-disable @typescript-eslint/no-explicit-any */ |
3 | 2 | export type JSONValue = |
4 | 3 | | string |
@@ -70,7 +69,7 @@ export interface HTTPResponse { |
70 | 69 | /** |
71 | 70 | * Http Body |
72 | 71 | */ |
73 | | - body: string | Buffer | NodeJS.ReadableStream; |
| 72 | + body: string | Buffer | ReadableStream; |
74 | 73 | /** |
75 | 74 | * If true, issue the response when the promise returned is resolved, otherwise issue |
76 | 75 | * the response at the end of the workflow execution |
@@ -115,13 +114,13 @@ export interface IApi { |
115 | 114 |
|
116 | 115 | export interface IFile { |
117 | 116 | delete(): Promise<void>; |
118 | | - createReadStream(): Promise<NodeJS.ReadableStream>; |
119 | | - createWriteStream(contentType?: string, contentLength?: number): Promise<NodeJS.WritableStream>; |
| 117 | + createReadStream(): Promise<ReadableStream>; |
| 118 | + createWriteStream(contentType?: string, contentLength?: number): Promise<WritableStream>; |
120 | 119 | toEncodedString(encoding?: string, start?: number, end?: number): Promise<string>; |
121 | 120 | toUrl(): Promise<string>; |
122 | 121 | toFile(localFilePath: string): Promise<void>; |
123 | 122 | toBuffer(): Promise<Buffer>; |
124 | | - fromReadableStream(readableStream: NodeJS.ReadableStream, contentType?: string, contentSize?: number): Promise<IFile>; |
| 123 | + fromReadableStream(readableStream: ReadableStream, contentType?: string, contentSize?: number): Promise<IFile>; |
125 | 124 | fromFile(localFilePath: string, contentType?: string): Promise<IFile>; |
126 | 125 | fromUrl(url: string, options?: any): Promise<IFile>; |
127 | 126 | toJSON(): any; |
@@ -384,6 +383,12 @@ export interface Action< |
384 | 383 | type: "action"; |
385 | 384 | methods?: Methods & ThisType<PropThis<ActionPropDefinitions> & Methods>; |
386 | 385 | props?: ActionPropDefinitions; |
| 386 | + annotations?: { |
| 387 | + destructiveHint?: boolean; |
| 388 | + idempotentHint?: boolean; |
| 389 | + openWorldHint?: boolean; |
| 390 | + readOnlyHint?: boolean; |
| 391 | + } |
387 | 392 | additionalProps?: ( |
388 | 393 | previousPropDefs: ActionPropDefinitions |
389 | 394 | ) => Promise<ActionPropDefinitions>; |
|
0 commit comments