@docmana/sdk 0.25.0 → 0.26.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/CHANGELOG.md +5 -0
- package/README.md +4 -2
- package/dist/types.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.26.0 - 2026-09-07
|
|
6
|
+
|
|
7
|
+
- Expose the exact numeric version that a new flow execution would use through
|
|
8
|
+
`getFlowMetadata`.
|
|
9
|
+
|
|
5
10
|
## 0.25.0 - 2026-08-24
|
|
6
11
|
|
|
7
12
|
- Stream file-path inputs from disk instead of loading them completely into memory.
|
package/README.md
CHANGED
|
@@ -117,7 +117,9 @@ use `RunFlowParams` for request data:
|
|
|
117
117
|
- `listOrganizations()` calls `GET /v1/organizations` and returns
|
|
118
118
|
`{ id, name }[]` for the organizations available to the Bearer token.
|
|
119
119
|
- `getFlowMetadata(flowId)` calls `GET /v1/flows/:flowId/metadata` and returns
|
|
120
|
-
`{ flowId, name?, jsonContextSchema, languages, minScore?, documents }`.
|
|
120
|
+
`{ flowId, name?, version?, jsonContextSchema, languages, minScore?, documents }`.
|
|
121
|
+
`version` is the exact published or draft flow version that a new execution
|
|
122
|
+
would use.
|
|
121
123
|
- `getFlowDefinition(flowId)` calls `GET /v1/flows/:flowId/definition` and
|
|
122
124
|
returns the normalized flow definition `{ flowId, name?, languages, minScore?, nodes }`.
|
|
123
125
|
- `listOrganizationDocuments({ prefix? })` calls
|
|
@@ -208,7 +210,7 @@ console.log(organizations.map((org) => `${org.id}: ${org.name}`).join("\n"));
|
|
|
208
210
|
|
|
209
211
|
```ts
|
|
210
212
|
const metadata = await docmana.getFlowMetadata("<flow-id>");
|
|
211
|
-
console.log(metadata.jsonContextSchema);
|
|
213
|
+
console.log(metadata.version, metadata.jsonContextSchema);
|
|
212
214
|
|
|
213
215
|
const definition = await docmana.getFlowDefinition("<flow-id>");
|
|
214
216
|
console.log(definition.nodes.map((node) => node.label).join("\n"));
|
package/dist/types.d.ts
CHANGED
|
@@ -219,6 +219,8 @@ export interface FlowDocumentRequirement {
|
|
|
219
219
|
export interface FlowMetadata {
|
|
220
220
|
flowId: string;
|
|
221
221
|
name?: string;
|
|
222
|
+
/** Exact flow version that would be used by a new execution. */
|
|
223
|
+
version?: number;
|
|
222
224
|
jsonContextSchema: Record<string, unknown>;
|
|
223
225
|
languages: string[];
|
|
224
226
|
minScore?: number;
|