@eigenpal/sdk 0.10.3 → 0.10.5
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/CHANGELOG.md +6 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/src/generated/types.gen.ts +39 -9
- package/src/telemetry.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @eigenpal/sdk
|
|
2
2
|
|
|
3
|
+
## 0.10.5
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- d3a8b79: Run start types now model file inputs explicitly. SDK users can pass reusable file handles with `$fileId` or inline file bytes with `$inline`, matching the public API behavior for file-backed workflow runs.
|
|
8
|
+
|
|
3
9
|
## 0.10.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -80,14 +80,14 @@ Use `client.files` for reusable upload-first blobs. When referenced by a run inp
|
|
|
80
80
|
const uploaded = await client.files.upload(file);
|
|
81
81
|
|
|
82
82
|
const started = await client.run('workflows.extract-invoice', {
|
|
83
|
-
contract_document: { fileId: uploaded.id },
|
|
83
|
+
contract_document: { $fileId: uploaded.id },
|
|
84
84
|
});
|
|
85
85
|
|
|
86
86
|
const artifacts = await client.runs.artifacts.list(started.id);
|
|
87
87
|
const pdf = await client.runs.artifacts.download(started.id, artifacts.artifacts[0].path);
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
You can also pass a `File`, `Blob`, or `{ content, filename, mimeType }` directly to `client.run`; the SDK sends multipart form data automatically.
|
|
90
|
+
You can also pass a `File`, `Blob`, or `{ content, filename, mimeType }` directly to `client.run`; the SDK sends multipart form data automatically. Durable run inputs and dataset examples store scoped `{ "$file": "input/..." }` artifact refs after ingestion.
|
|
91
91
|
|
|
92
92
|
## Errors
|
|
93
93
|
|
package/package.json
CHANGED
|
@@ -173,19 +173,49 @@ export type RunStartBody = {
|
|
|
173
173
|
[key: string]: unknown;
|
|
174
174
|
};
|
|
175
175
|
/**
|
|
176
|
-
* File inputs as references (`{ fileId
|
|
176
|
+
* File inputs as ingress references (`{ "$fileId": "file_..." }` or `{ "$inline": { filename, mimeType, base64 } }`). Upload bytes via multipart `files.<fieldName>` parts instead.
|
|
177
177
|
*/
|
|
178
178
|
files?: {
|
|
179
179
|
[key: string]: {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
/**
|
|
181
|
+
* Reusable file-pool id to materialize
|
|
182
|
+
*/
|
|
183
|
+
$fileId: string;
|
|
184
|
+
} | {
|
|
185
|
+
$inline: {
|
|
186
|
+
/**
|
|
187
|
+
* Original filename for the materialized artifact
|
|
188
|
+
*/
|
|
189
|
+
filename: string;
|
|
190
|
+
/**
|
|
191
|
+
* MIME type for the materialized artifact
|
|
192
|
+
*/
|
|
193
|
+
mimeType: string;
|
|
194
|
+
/**
|
|
195
|
+
* Base64-encoded file bytes
|
|
196
|
+
*/
|
|
197
|
+
base64: string;
|
|
198
|
+
};
|
|
184
199
|
} | Array<{
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Reusable file-pool id to materialize
|
|
202
|
+
*/
|
|
203
|
+
$fileId: string;
|
|
204
|
+
} | {
|
|
205
|
+
$inline: {
|
|
206
|
+
/**
|
|
207
|
+
* Original filename for the materialized artifact
|
|
208
|
+
*/
|
|
209
|
+
filename: string;
|
|
210
|
+
/**
|
|
211
|
+
* MIME type for the materialized artifact
|
|
212
|
+
*/
|
|
213
|
+
mimeType: string;
|
|
214
|
+
/**
|
|
215
|
+
* Base64-encoded file bytes
|
|
216
|
+
*/
|
|
217
|
+
base64: string;
|
|
218
|
+
};
|
|
189
219
|
}>;
|
|
190
220
|
};
|
|
191
221
|
/**
|
package/src/telemetry.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
export const SDK_LANGUAGE = 'typescript';
|
|
20
20
|
// Rewritten at publish time by scripts/render-sdk-versions.sh.
|
|
21
21
|
// Keep this string literal exactly stable — sed matches on it.
|
|
22
|
-
export const SDK_VERSION = '0.10.
|
|
22
|
+
export const SDK_VERSION = '0.10.5';
|
|
23
23
|
|
|
24
24
|
function detectRuntime(): string {
|
|
25
25
|
const g = globalThis as unknown as {
|