vellum-ai 1.6.4 → 1.7.1
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/Client.js +11 -11
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +1 -0
- package/api/resources/deployments/client/Client.js +8 -8
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/integrationAuthConfigs/client/Client.js +1 -1
- package/api/resources/integrationProviders/client/Client.js +2 -2
- package/api/resources/integrations/client/Client.js +4 -4
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/client/Client.js +1 -1
- package/api/resources/prompts/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +9 -9
- package/api/resources/workflowExecutions/client/Client.js +1 -1
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.d.ts +13 -0
- package/api/resources/workflows/client/Client.js +70 -3
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/WorkflowResolvedState.d.ts +16 -0
- package/api/types/WorkflowResolvedState.js +5 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.js +11 -11
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +1 -0
- package/dist/api/resources/deployments/client/Client.js +8 -8
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/events/client/Client.js +1 -1
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/integrationAuthConfigs/client/Client.js +1 -1
- package/dist/api/resources/integrationProviders/client/Client.js +2 -2
- package/dist/api/resources/integrations/client/Client.js +4 -4
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/client/Client.js +1 -1
- package/dist/api/resources/prompts/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +9 -9
- package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.d.ts +13 -0
- package/dist/api/resources/workflows/client/Client.js +70 -3
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/WorkflowResolvedState.d.ts +16 -0
- package/dist/api/types/WorkflowResolvedState.js +5 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +1 -0
- package/dist/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +1 -0
- package/dist/serialization/types/WorkflowResolvedState.d.ts +19 -0
- package/dist/serialization/types/WorkflowResolvedState.js +50 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +65 -0
- package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.d.ts +1 -0
- package/serialization/resources/containerImages/client/requests/PushContainerImageRequest.js +1 -0
- package/serialization/types/WorkflowResolvedState.d.ts +19 -0
- package/serialization/types/WorkflowResolvedState.js +50 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -97,7 +97,7 @@ class WorkflowDeployments {
|
|
|
97
97
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
98
98
|
unrecognizedObjectKeys: "strip",
|
|
99
99
|
})
|
|
100
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
100
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
101
101
|
contentType: "application/json",
|
|
102
102
|
queryParameters: _queryParams,
|
|
103
103
|
requestType: "json",
|
|
@@ -163,7 +163,7 @@ class WorkflowDeployments {
|
|
|
163
163
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
164
164
|
unrecognizedObjectKeys: "strip",
|
|
165
165
|
})
|
|
166
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
166
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -241,7 +241,7 @@ class WorkflowDeployments {
|
|
|
241
241
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
242
242
|
unrecognizedObjectKeys: "strip",
|
|
243
243
|
})
|
|
244
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
244
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
245
245
|
contentType: "application/json",
|
|
246
246
|
queryParameters: _queryParams,
|
|
247
247
|
requestType: "json",
|
|
@@ -306,7 +306,7 @@ class WorkflowDeployments {
|
|
|
306
306
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
307
307
|
unrecognizedObjectKeys: "strip",
|
|
308
308
|
})
|
|
309
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
309
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
310
310
|
contentType: "application/json",
|
|
311
311
|
requestType: "json",
|
|
312
312
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -373,7 +373,7 @@ class WorkflowDeployments {
|
|
|
373
373
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
374
374
|
unrecognizedObjectKeys: "strip",
|
|
375
375
|
})
|
|
376
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
376
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
377
377
|
contentType: "application/json",
|
|
378
378
|
requestType: "json",
|
|
379
379
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -455,7 +455,7 @@ class WorkflowDeployments {
|
|
|
455
455
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
456
456
|
unrecognizedObjectKeys: "strip",
|
|
457
457
|
})
|
|
458
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
458
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
459
459
|
contentType: "application/json",
|
|
460
460
|
queryParameters: _queryParams,
|
|
461
461
|
requestType: "json",
|
|
@@ -522,7 +522,7 @@ class WorkflowDeployments {
|
|
|
522
522
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
523
523
|
unrecognizedObjectKeys: "strip",
|
|
524
524
|
})
|
|
525
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
525
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
526
526
|
contentType: "application/json",
|
|
527
527
|
requestType: "json",
|
|
528
528
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -589,7 +589,7 @@ class WorkflowDeployments {
|
|
|
589
589
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
590
590
|
unrecognizedObjectKeys: "strip",
|
|
591
591
|
})
|
|
592
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
592
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
593
593
|
contentType: "application/json",
|
|
594
594
|
requestType: "json",
|
|
595
595
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -658,7 +658,7 @@ class WorkflowDeployments {
|
|
|
658
658
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
659
659
|
unrecognizedObjectKeys: "strip",
|
|
660
660
|
})
|
|
661
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
661
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
662
662
|
contentType: "application/json",
|
|
663
663
|
requestType: "json",
|
|
664
664
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -88,7 +88,7 @@ class WorkflowExecutions {
|
|
|
88
88
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
89
89
|
unrecognizedObjectKeys: "strip",
|
|
90
90
|
})
|
|
91
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
91
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
92
92
|
contentType: "application/json",
|
|
93
93
|
queryParameters: _queryParams,
|
|
94
94
|
requestType: "json",
|
|
@@ -80,7 +80,7 @@ class WorkflowSandboxes {
|
|
|
80
80
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
81
81
|
unrecognizedObjectKeys: "strip",
|
|
82
82
|
})
|
|
83
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
83
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
requestType: "json",
|
|
86
86
|
body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -162,7 +162,7 @@ class WorkflowSandboxes {
|
|
|
162
162
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
163
163
|
unrecognizedObjectKeys: "strip",
|
|
164
164
|
})
|
|
165
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
165
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
166
166
|
contentType: "application/json",
|
|
167
167
|
queryParameters: _queryParams,
|
|
168
168
|
requestType: "json",
|
|
@@ -37,6 +37,19 @@ export declare class Workflows {
|
|
|
37
37
|
*/
|
|
38
38
|
pull(id: string, request?: Vellum.WorkflowsPullRequest, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<stream.Readable>;
|
|
39
39
|
private __pull;
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve the current state of a workflow execution.
|
|
42
|
+
*
|
|
43
|
+
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
44
|
+
*
|
|
45
|
+
* @param {string} spanId - The span ID of the workflow execution to retrieve state for
|
|
46
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.workflows.retrieveState("span_id")
|
|
50
|
+
*/
|
|
51
|
+
retrieveState(spanId: string, requestOptions?: Workflows.RequestOptions): core.HttpResponsePromise<Vellum.WorkflowResolvedState>;
|
|
52
|
+
private __retrieveState;
|
|
40
53
|
/**
|
|
41
54
|
* @param {File | fs.ReadStream | Blob | undefined} artifact
|
|
42
55
|
* @param {Vellum.WorkflowPushRequest} request
|
|
@@ -100,7 +100,7 @@ class Workflows {
|
|
|
100
100
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
101
101
|
unrecognizedObjectKeys: "strip",
|
|
102
102
|
})
|
|
103
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
103
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
104
104
|
contentType: "application/json",
|
|
105
105
|
queryParameters: _queryParams,
|
|
106
106
|
requestType: "json",
|
|
@@ -141,6 +141,73 @@ class Workflows {
|
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Retrieve the current state of a workflow execution.
|
|
146
|
+
*
|
|
147
|
+
* **Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
148
|
+
*
|
|
149
|
+
* @param {string} spanId - The span ID of the workflow execution to retrieve state for
|
|
150
|
+
* @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* await client.workflows.retrieveState("span_id")
|
|
154
|
+
*/
|
|
155
|
+
retrieveState(spanId, requestOptions) {
|
|
156
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieveState(spanId, requestOptions));
|
|
157
|
+
}
|
|
158
|
+
__retrieveState(spanId, requestOptions) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
var _a, _b;
|
|
161
|
+
const _response = yield core.fetcher({
|
|
162
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
|
|
163
|
+
.predict, `v1/workflows/${encodeURIComponent(spanId)}/state`),
|
|
164
|
+
method: "GET",
|
|
165
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
166
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
167
|
+
unrecognizedObjectKeys: "strip",
|
|
168
|
+
})
|
|
169
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
170
|
+
contentType: "application/json",
|
|
171
|
+
requestType: "json",
|
|
172
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
173
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
174
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
175
|
+
});
|
|
176
|
+
if (_response.ok) {
|
|
177
|
+
return {
|
|
178
|
+
data: serializers.WorkflowResolvedState.parseOrThrow(_response.body, {
|
|
179
|
+
unrecognizedObjectKeys: "passthrough",
|
|
180
|
+
allowUnrecognizedUnionMembers: true,
|
|
181
|
+
allowUnrecognizedEnumValues: true,
|
|
182
|
+
breadcrumbsPrefix: ["response"],
|
|
183
|
+
}),
|
|
184
|
+
rawResponse: _response.rawResponse,
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
if (_response.error.reason === "status-code") {
|
|
188
|
+
throw new errors.VellumError({
|
|
189
|
+
statusCode: _response.error.statusCode,
|
|
190
|
+
body: _response.error.body,
|
|
191
|
+
rawResponse: _response.rawResponse,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
switch (_response.error.reason) {
|
|
195
|
+
case "non-json":
|
|
196
|
+
throw new errors.VellumError({
|
|
197
|
+
statusCode: _response.error.statusCode,
|
|
198
|
+
body: _response.error.rawBody,
|
|
199
|
+
rawResponse: _response.rawResponse,
|
|
200
|
+
});
|
|
201
|
+
case "timeout":
|
|
202
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /v1/workflows/{span_id}/state.");
|
|
203
|
+
case "unknown":
|
|
204
|
+
throw new errors.VellumError({
|
|
205
|
+
message: _response.error.errorMessage,
|
|
206
|
+
rawResponse: _response.rawResponse,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
144
211
|
/**
|
|
145
212
|
* @param {File | fs.ReadStream | Blob | undefined} artifact
|
|
146
213
|
* @param {Vellum.WorkflowPushRequest} request
|
|
@@ -180,7 +247,7 @@ class Workflows {
|
|
|
180
247
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
181
248
|
unrecognizedObjectKeys: "strip",
|
|
182
249
|
})
|
|
183
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
250
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
184
251
|
requestType: "file",
|
|
185
252
|
duplex: _maybeEncodedRequest.duplex,
|
|
186
253
|
body: _maybeEncodedRequest.body,
|
|
@@ -252,7 +319,7 @@ class Workflows {
|
|
|
252
319
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
253
320
|
unrecognizedObjectKeys: "strip",
|
|
254
321
|
})
|
|
255
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
322
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
256
323
|
contentType: "application/json",
|
|
257
324
|
requestType: "json",
|
|
258
325
|
body: serializers.SerializeWorkflowFilesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -81,7 +81,7 @@ class WorkspaceSecrets {
|
|
|
81
81
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
82
82
|
unrecognizedObjectKeys: "strip",
|
|
83
83
|
})
|
|
84
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
84
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -147,7 +147,7 @@ class WorkspaceSecrets {
|
|
|
147
147
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
148
148
|
unrecognizedObjectKeys: "strip",
|
|
149
149
|
})
|
|
150
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
150
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
151
151
|
contentType: "application/json",
|
|
152
152
|
requestType: "json",
|
|
153
153
|
body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
|
|
@@ -80,7 +80,7 @@ class Workspaces {
|
|
|
80
80
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
81
81
|
unrecognizedObjectKeys: "strip",
|
|
82
82
|
})
|
|
83
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
83
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.7.1", "User-Agent": "vellum-ai/1.7.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
requestType: "json",
|
|
86
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* The latest execution state of a given Workflow Execution
|
|
6
|
+
*/
|
|
7
|
+
export interface WorkflowResolvedState {
|
|
8
|
+
traceId: string;
|
|
9
|
+
timestamp: Date;
|
|
10
|
+
spanId: string;
|
|
11
|
+
state: Record<string, unknown>;
|
|
12
|
+
previousSpanId?: string | null;
|
|
13
|
+
previousTraceId?: string | null;
|
|
14
|
+
rootSpanId?: string | null;
|
|
15
|
+
rootTraceId?: string | null;
|
|
16
|
+
}
|
|
@@ -671,6 +671,7 @@ export * from "./WorkflowRequestJsonInputRequest";
|
|
|
671
671
|
export * from "./WorkflowRequestNumberInputRequest";
|
|
672
672
|
export * from "./WorkflowRequestStringInputRequest";
|
|
673
673
|
export * from "./WorkflowRequestVideoInputRequest";
|
|
674
|
+
export * from "./WorkflowResolvedState";
|
|
674
675
|
export * from "./WorkflowResultEvent";
|
|
675
676
|
export * from "./WorkflowResultEventOutputData";
|
|
676
677
|
export * from "./WorkflowResultEventOutputDataArray";
|
package/dist/api/types/index.js
CHANGED
|
@@ -687,6 +687,7 @@ __exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
|
|
|
687
687
|
__exportStar(require("./WorkflowRequestNumberInputRequest"), exports);
|
|
688
688
|
__exportStar(require("./WorkflowRequestStringInputRequest"), exports);
|
|
689
689
|
__exportStar(require("./WorkflowRequestVideoInputRequest"), exports);
|
|
690
|
+
__exportStar(require("./WorkflowResolvedState"), exports);
|
|
690
691
|
__exportStar(require("./WorkflowResultEvent"), exports);
|
|
691
692
|
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
|
692
693
|
__exportStar(require("./WorkflowResultEventOutputDataArray"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WorkflowResolvedState: core.serialization.ObjectSchema<serializers.WorkflowResolvedState.Raw, Vellum.WorkflowResolvedState>;
|
|
8
|
+
export declare namespace WorkflowResolvedState {
|
|
9
|
+
interface Raw {
|
|
10
|
+
trace_id: string;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
span_id: string;
|
|
13
|
+
state: Record<string, unknown>;
|
|
14
|
+
previous_span_id?: (string | null) | null;
|
|
15
|
+
previous_trace_id?: (string | null) | null;
|
|
16
|
+
root_span_id?: (string | null) | null;
|
|
17
|
+
root_trace_id?: (string | null) | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WorkflowResolvedState = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WorkflowResolvedState = core.serialization.object({
|
|
42
|
+
traceId: core.serialization.property("trace_id", core.serialization.string()),
|
|
43
|
+
timestamp: core.serialization.date(),
|
|
44
|
+
spanId: core.serialization.property("span_id", core.serialization.string()),
|
|
45
|
+
state: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
46
|
+
previousSpanId: core.serialization.property("previous_span_id", core.serialization.string().optionalNullable()),
|
|
47
|
+
previousTraceId: core.serialization.property("previous_trace_id", core.serialization.string().optionalNullable()),
|
|
48
|
+
rootSpanId: core.serialization.property("root_span_id", core.serialization.string().optionalNullable()),
|
|
49
|
+
rootTraceId: core.serialization.property("root_trace_id", core.serialization.string().optionalNullable()),
|
|
50
|
+
});
|
|
@@ -671,6 +671,7 @@ export * from "./WorkflowRequestJsonInputRequest";
|
|
|
671
671
|
export * from "./WorkflowRequestNumberInputRequest";
|
|
672
672
|
export * from "./WorkflowRequestStringInputRequest";
|
|
673
673
|
export * from "./WorkflowRequestVideoInputRequest";
|
|
674
|
+
export * from "./WorkflowResolvedState";
|
|
674
675
|
export * from "./WorkflowResultEvent";
|
|
675
676
|
export * from "./WorkflowResultEventOutputData";
|
|
676
677
|
export * from "./WorkflowResultEventOutputDataArray";
|
|
@@ -687,6 +687,7 @@ __exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
|
|
|
687
687
|
__exportStar(require("./WorkflowRequestNumberInputRequest"), exports);
|
|
688
688
|
__exportStar(require("./WorkflowRequestStringInputRequest"), exports);
|
|
689
689
|
__exportStar(require("./WorkflowRequestVideoInputRequest"), exports);
|
|
690
|
+
__exportStar(require("./WorkflowResolvedState"), exports);
|
|
690
691
|
__exportStar(require("./WorkflowResultEvent"), exports);
|
|
691
692
|
__exportStar(require("./WorkflowResultEventOutputData"), exports);
|
|
692
693
|
__exportStar(require("./WorkflowResultEventOutputDataArray"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.7.1";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4595,6 +4595,71 @@ await client.workflowSandboxes.listWorkflowSandboxExamples();
|
|
|
4595
4595
|
|
|
4596
4596
|
## Workflows
|
|
4597
4597
|
|
|
4598
|
+
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">retrieveState</a>(spanId) -> Vellum.WorkflowResolvedState</code></summary>
|
|
4599
|
+
<dl>
|
|
4600
|
+
<dd>
|
|
4601
|
+
|
|
4602
|
+
#### 📝 Description
|
|
4603
|
+
|
|
4604
|
+
<dl>
|
|
4605
|
+
<dd>
|
|
4606
|
+
|
|
4607
|
+
<dl>
|
|
4608
|
+
<dd>
|
|
4609
|
+
|
|
4610
|
+
Retrieve the current state of a workflow execution.
|
|
4611
|
+
|
|
4612
|
+
**Note:** Uses a base url of `https://predict.vellum.ai`.
|
|
4613
|
+
|
|
4614
|
+
</dd>
|
|
4615
|
+
</dl>
|
|
4616
|
+
</dd>
|
|
4617
|
+
</dl>
|
|
4618
|
+
|
|
4619
|
+
#### 🔌 Usage
|
|
4620
|
+
|
|
4621
|
+
<dl>
|
|
4622
|
+
<dd>
|
|
4623
|
+
|
|
4624
|
+
<dl>
|
|
4625
|
+
<dd>
|
|
4626
|
+
|
|
4627
|
+
```typescript
|
|
4628
|
+
await client.workflows.retrieveState("span_id");
|
|
4629
|
+
```
|
|
4630
|
+
|
|
4631
|
+
</dd>
|
|
4632
|
+
</dl>
|
|
4633
|
+
</dd>
|
|
4634
|
+
</dl>
|
|
4635
|
+
|
|
4636
|
+
#### ⚙️ Parameters
|
|
4637
|
+
|
|
4638
|
+
<dl>
|
|
4639
|
+
<dd>
|
|
4640
|
+
|
|
4641
|
+
<dl>
|
|
4642
|
+
<dd>
|
|
4643
|
+
|
|
4644
|
+
**spanId:** `string` — The span ID of the workflow execution to retrieve state for
|
|
4645
|
+
|
|
4646
|
+
</dd>
|
|
4647
|
+
</dl>
|
|
4648
|
+
|
|
4649
|
+
<dl>
|
|
4650
|
+
<dd>
|
|
4651
|
+
|
|
4652
|
+
**requestOptions:** `Workflows.RequestOptions`
|
|
4653
|
+
|
|
4654
|
+
</dd>
|
|
4655
|
+
</dl>
|
|
4656
|
+
</dd>
|
|
4657
|
+
</dl>
|
|
4658
|
+
|
|
4659
|
+
</dd>
|
|
4660
|
+
</dl>
|
|
4661
|
+
</details>
|
|
4662
|
+
|
|
4598
4663
|
<details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">serializeWorkflowFiles</a>({ ...params }) -> Record<string, unknown></code></summary>
|
|
4599
4664
|
<dl>
|
|
4600
4665
|
<dd>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const WorkflowResolvedState: core.serialization.ObjectSchema<serializers.WorkflowResolvedState.Raw, Vellum.WorkflowResolvedState>;
|
|
8
|
+
export declare namespace WorkflowResolvedState {
|
|
9
|
+
interface Raw {
|
|
10
|
+
trace_id: string;
|
|
11
|
+
timestamp: string;
|
|
12
|
+
span_id: string;
|
|
13
|
+
state: Record<string, unknown>;
|
|
14
|
+
previous_span_id?: (string | null) | null;
|
|
15
|
+
previous_trace_id?: (string | null) | null;
|
|
16
|
+
root_span_id?: (string | null) | null;
|
|
17
|
+
root_trace_id?: (string | null) | null;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WorkflowResolvedState = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.WorkflowResolvedState = core.serialization.object({
|
|
42
|
+
traceId: core.serialization.property("trace_id", core.serialization.string()),
|
|
43
|
+
timestamp: core.serialization.date(),
|
|
44
|
+
spanId: core.serialization.property("span_id", core.serialization.string()),
|
|
45
|
+
state: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
|
|
46
|
+
previousSpanId: core.serialization.property("previous_span_id", core.serialization.string().optionalNullable()),
|
|
47
|
+
previousTraceId: core.serialization.property("previous_trace_id", core.serialization.string().optionalNullable()),
|
|
48
|
+
rootSpanId: core.serialization.property("root_span_id", core.serialization.string().optionalNullable()),
|
|
49
|
+
rootTraceId: core.serialization.property("root_trace_id", core.serialization.string().optionalNullable()),
|
|
50
|
+
});
|
|
@@ -671,6 +671,7 @@ export * from "./WorkflowRequestJsonInputRequest";
|
|
|
671
671
|
export * from "./WorkflowRequestNumberInputRequest";
|
|
672
672
|
export * from "./WorkflowRequestStringInputRequest";
|
|
673
673
|
export * from "./WorkflowRequestVideoInputRequest";
|
|
674
|
+
export * from "./WorkflowResolvedState";
|
|
674
675
|
export * from "./WorkflowResultEvent";
|
|
675
676
|
export * from "./WorkflowResultEventOutputData";
|
|
676
677
|
export * from "./WorkflowResultEventOutputDataArray";
|