vellum-ai 1.2.0 → 1.2.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.d.ts +3 -0
- package/Client.js +54 -49
- package/api/errors/TooManyRequestsError.d.ts +9 -0
- package/api/errors/TooManyRequestsError.js +52 -0
- package/api/errors/UnauthorizedError.d.ts +9 -0
- package/api/errors/UnauthorizedError.js +52 -0
- package/api/errors/index.d.ts +2 -0
- package/api/errors/index.js +2 -0
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/containerImages/client/Client.js +4 -4
- 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.d.ts +69 -0
- package/api/resources/events/client/Client.js +179 -0
- package/api/resources/events/client/index.d.ts +1 -0
- package/api/resources/events/client/index.js +2 -0
- package/api/resources/events/index.d.ts +1 -0
- package/api/resources/events/index.js +17 -0
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- 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.js +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/ErrorDetailResponse.d.ts +7 -0
- package/api/types/ErrorDetailResponse.js +5 -0
- package/api/types/EventCreateResponse.d.ts +10 -0
- package/api/types/EventCreateResponse.js +5 -0
- package/api/types/ExecutionThinkingVellumValue.d.ts +1 -1
- package/api/types/ThinkingVellumValue.d.ts +1 -1
- package/api/types/ThinkingVellumValueRequest.d.ts +1 -1
- package/api/types/WorkflowEvent.d.ts +5 -0
- package/api/types/WorkflowEvent.js +5 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +54 -49
- package/dist/api/errors/TooManyRequestsError.d.ts +9 -0
- package/dist/api/errors/TooManyRequestsError.js +52 -0
- package/dist/api/errors/UnauthorizedError.d.ts +9 -0
- package/dist/api/errors/UnauthorizedError.js +52 -0
- package/dist/api/errors/index.d.ts +2 -0
- package/dist/api/errors/index.js +2 -0
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- 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.d.ts +69 -0
- package/dist/api/resources/events/client/Client.js +179 -0
- package/dist/api/resources/events/client/index.d.ts +1 -0
- package/dist/api/resources/events/client/index.js +2 -0
- package/dist/api/resources/events/index.d.ts +1 -0
- package/dist/api/resources/events/index.js +17 -0
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- 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.js +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/ErrorDetailResponse.d.ts +7 -0
- package/dist/api/types/ErrorDetailResponse.js +5 -0
- package/dist/api/types/EventCreateResponse.d.ts +10 -0
- package/dist/api/types/EventCreateResponse.js +5 -0
- package/dist/api/types/ExecutionThinkingVellumValue.d.ts +1 -1
- package/dist/api/types/ThinkingVellumValue.d.ts +1 -1
- package/dist/api/types/ThinkingVellumValueRequest.d.ts +1 -1
- package/dist/api/types/WorkflowEvent.d.ts +5 -0
- package/dist/api/types/WorkflowEvent.js +5 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/types/ErrorDetailResponse.d.ts +12 -0
- package/dist/serialization/types/ErrorDetailResponse.js +43 -0
- package/dist/serialization/types/EventCreateResponse.d.ts +12 -0
- package/dist/serialization/types/EventCreateResponse.js +43 -0
- package/dist/serialization/types/ExecutionThinkingVellumValue.d.ts +1 -1
- package/dist/serialization/types/ExecutionThinkingVellumValue.js +1 -1
- package/dist/serialization/types/ThinkingVellumValue.d.ts +1 -1
- package/dist/serialization/types/ThinkingVellumValue.js +1 -1
- package/dist/serialization/types/ThinkingVellumValueRequest.d.ts +1 -1
- package/dist/serialization/types/ThinkingVellumValueRequest.js +1 -1
- package/dist/serialization/types/WorkflowEvent.d.ts +23 -0
- package/dist/serialization/types/WorkflowEvent.js +68 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +83 -0
- package/serialization/types/ErrorDetailResponse.d.ts +12 -0
- package/serialization/types/ErrorDetailResponse.js +43 -0
- package/serialization/types/EventCreateResponse.d.ts +12 -0
- package/serialization/types/EventCreateResponse.js +43 -0
- package/serialization/types/ExecutionThinkingVellumValue.d.ts +1 -1
- package/serialization/types/ExecutionThinkingVellumValue.js +1 -1
- package/serialization/types/ThinkingVellumValue.d.ts +1 -1
- package/serialization/types/ThinkingVellumValue.js +1 -1
- package/serialization/types/ThinkingVellumValueRequest.d.ts +1 -1
- package/serialization/types/ThinkingVellumValueRequest.js +1 -1
- package/serialization/types/WorkflowEvent.d.ts +23 -0
- package/serialization/types/WorkflowEvent.js +68 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -95,9 +95,11 @@ export * from "./EntityVisibility";
|
|
|
95
95
|
export * from "./EnvironmentEnum";
|
|
96
96
|
export * from "./EphemeralPromptCacheConfig";
|
|
97
97
|
export * from "./EphemeralPromptCacheConfigTypeEnum";
|
|
98
|
+
export * from "./ErrorDetailResponse";
|
|
98
99
|
export * from "./ErrorInput";
|
|
99
100
|
export * from "./ErrorVellumValue";
|
|
100
101
|
export * from "./ErrorVellumValueRequest";
|
|
102
|
+
export * from "./EventCreateResponse";
|
|
101
103
|
export * from "./ExecuteApiResponseJson";
|
|
102
104
|
export * from "./ExecuteApiResponse";
|
|
103
105
|
export * from "./ExecutePromptEvent";
|
|
@@ -535,6 +537,7 @@ export * from "./WorkflowDeploymentRelease";
|
|
|
535
537
|
export * from "./WorkflowDeploymentReleaseWorkflowDeployment";
|
|
536
538
|
export * from "./WorkflowDeploymentReleaseWorkflowVersion";
|
|
537
539
|
export * from "./WorkflowError";
|
|
540
|
+
export * from "./WorkflowEvent";
|
|
538
541
|
export * from "./WorkflowEventError";
|
|
539
542
|
export * from "./WorkflowEventExecutionRead";
|
|
540
543
|
export * from "./WorkflowExecutionActual";
|
|
@@ -111,9 +111,11 @@ __exportStar(require("./EntityVisibility"), exports);
|
|
|
111
111
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
112
112
|
__exportStar(require("./EphemeralPromptCacheConfig"), exports);
|
|
113
113
|
__exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
|
|
114
|
+
__exportStar(require("./ErrorDetailResponse"), exports);
|
|
114
115
|
__exportStar(require("./ErrorInput"), exports);
|
|
115
116
|
__exportStar(require("./ErrorVellumValue"), exports);
|
|
116
117
|
__exportStar(require("./ErrorVellumValueRequest"), exports);
|
|
118
|
+
__exportStar(require("./EventCreateResponse"), exports);
|
|
117
119
|
__exportStar(require("./ExecuteApiResponseJson"), exports);
|
|
118
120
|
__exportStar(require("./ExecuteApiResponse"), exports);
|
|
119
121
|
__exportStar(require("./ExecutePromptEvent"), exports);
|
|
@@ -551,6 +553,7 @@ __exportStar(require("./WorkflowDeploymentRelease"), exports);
|
|
|
551
553
|
__exportStar(require("./WorkflowDeploymentReleaseWorkflowDeployment"), exports);
|
|
552
554
|
__exportStar(require("./WorkflowDeploymentReleaseWorkflowVersion"), exports);
|
|
553
555
|
__exportStar(require("./WorkflowError"), exports);
|
|
556
|
+
__exportStar(require("./WorkflowEvent"), exports);
|
|
554
557
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
555
558
|
__exportStar(require("./WorkflowEventExecutionRead"), exports);
|
|
556
559
|
__exportStar(require("./WorkflowExecutionActual"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.1";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -76,6 +76,89 @@ await client.submitWorkflowExecutionActuals({
|
|
|
76
76
|
|
|
77
77
|
##
|
|
78
78
|
|
|
79
|
+
## Events
|
|
80
|
+
|
|
81
|
+
<details><summary><code>client.events.<a href="/src/api/resources/events/client/Client.ts">create</a>({ ...params }) -> Vellum.EventCreateResponse</code></summary>
|
|
82
|
+
<dl>
|
|
83
|
+
<dd>
|
|
84
|
+
|
|
85
|
+
#### 📝 Description
|
|
86
|
+
|
|
87
|
+
<dl>
|
|
88
|
+
<dd>
|
|
89
|
+
|
|
90
|
+
<dl>
|
|
91
|
+
<dd>
|
|
92
|
+
|
|
93
|
+
Accept an event and publish it to ClickHouse for analytics processing.
|
|
94
|
+
|
|
95
|
+
</dd>
|
|
96
|
+
</dl>
|
|
97
|
+
</dd>
|
|
98
|
+
</dl>
|
|
99
|
+
|
|
100
|
+
#### 🔌 Usage
|
|
101
|
+
|
|
102
|
+
<dl>
|
|
103
|
+
<dd>
|
|
104
|
+
|
|
105
|
+
<dl>
|
|
106
|
+
<dd>
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
await client.events.create({
|
|
110
|
+
name: "node.execution.initiated",
|
|
111
|
+
body: {
|
|
112
|
+
nodeDefinition: {
|
|
113
|
+
name: "name",
|
|
114
|
+
module: ["module", "module"],
|
|
115
|
+
id: "id",
|
|
116
|
+
},
|
|
117
|
+
inputs: {
|
|
118
|
+
inputs: {
|
|
119
|
+
key: "value",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
id: "id",
|
|
124
|
+
timestamp: "2024-01-15T09:30:00Z",
|
|
125
|
+
traceId: "trace_id",
|
|
126
|
+
spanId: "span_id",
|
|
127
|
+
});
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
</dd>
|
|
131
|
+
</dl>
|
|
132
|
+
</dd>
|
|
133
|
+
</dl>
|
|
134
|
+
|
|
135
|
+
#### ⚙️ Parameters
|
|
136
|
+
|
|
137
|
+
<dl>
|
|
138
|
+
<dd>
|
|
139
|
+
|
|
140
|
+
<dl>
|
|
141
|
+
<dd>
|
|
142
|
+
|
|
143
|
+
**request:** `Vellum.WorkflowEvent`
|
|
144
|
+
|
|
145
|
+
</dd>
|
|
146
|
+
</dl>
|
|
147
|
+
|
|
148
|
+
<dl>
|
|
149
|
+
<dd>
|
|
150
|
+
|
|
151
|
+
**requestOptions:** `Events.RequestOptions`
|
|
152
|
+
|
|
153
|
+
</dd>
|
|
154
|
+
</dl>
|
|
155
|
+
</dd>
|
|
156
|
+
</dl>
|
|
157
|
+
|
|
158
|
+
</dd>
|
|
159
|
+
</dl>
|
|
160
|
+
</details>
|
|
161
|
+
|
|
79
162
|
## AdHoc
|
|
80
163
|
|
|
81
164
|
<details><summary><code>client.adHoc.<a href="/src/api/resources/adHoc/client/Client.ts">adhocExecutePrompt</a>({ ...params }) -> Vellum.AdHocExecutePromptEvent</code></summary>
|
|
@@ -0,0 +1,12 @@
|
|
|
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 ErrorDetailResponse: core.serialization.ObjectSchema<serializers.ErrorDetailResponse.Raw, Vellum.ErrorDetailResponse>;
|
|
8
|
+
export declare namespace ErrorDetailResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
detail: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ErrorDetailResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.ErrorDetailResponse = core.serialization.object({
|
|
42
|
+
detail: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
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 EventCreateResponse: core.serialization.ObjectSchema<serializers.EventCreateResponse.Raw, Vellum.EventCreateResponse>;
|
|
8
|
+
export declare namespace EventCreateResponse {
|
|
9
|
+
interface Raw {
|
|
10
|
+
success?: boolean | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.EventCreateResponse = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
exports.EventCreateResponse = core.serialization.object({
|
|
42
|
+
success: core.serialization.boolean().optional(),
|
|
43
|
+
});
|
|
@@ -43,5 +43,5 @@ exports.ExecutionThinkingVellumValue = core.serialization.object({
|
|
|
43
43
|
id: core.serialization.string(),
|
|
44
44
|
name: core.serialization.string(),
|
|
45
45
|
type: core.serialization.stringLiteral("THINKING"),
|
|
46
|
-
value: StringVellumValue_1.StringVellumValue,
|
|
46
|
+
value: StringVellumValue_1.StringVellumValue.optionalNullable(),
|
|
47
47
|
});
|
|
@@ -41,5 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const StringVellumValue_1 = require("./StringVellumValue");
|
|
42
42
|
exports.ThinkingVellumValue = core.serialization.object({
|
|
43
43
|
type: core.serialization.stringLiteral("THINKING"),
|
|
44
|
-
value: StringVellumValue_1.StringVellumValue,
|
|
44
|
+
value: StringVellumValue_1.StringVellumValue.optionalNullable(),
|
|
45
45
|
});
|
|
@@ -9,6 +9,6 @@ export declare const ThinkingVellumValueRequest: core.serialization.ObjectSchema
|
|
|
9
9
|
export declare namespace ThinkingVellumValueRequest {
|
|
10
10
|
interface Raw {
|
|
11
11
|
type: "THINKING";
|
|
12
|
-
value
|
|
12
|
+
value?: (StringVellumValueRequest.Raw | null) | null;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -41,5 +41,5 @@ const core = __importStar(require("../../core"));
|
|
|
41
41
|
const StringVellumValueRequest_1 = require("./StringVellumValueRequest");
|
|
42
42
|
exports.ThinkingVellumValueRequest = core.serialization.object({
|
|
43
43
|
type: core.serialization.stringLiteral("THINKING"),
|
|
44
|
-
value: StringVellumValueRequest_1.StringVellumValueRequest,
|
|
44
|
+
value: StringVellumValueRequest_1.StringVellumValueRequest.optionalNullable(),
|
|
45
45
|
});
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import { NodeExecutionInitiatedEvent } from "./NodeExecutionInitiatedEvent";
|
|
8
|
+
import { NodeExecutionStreamingEvent } from "./NodeExecutionStreamingEvent";
|
|
9
|
+
import { NodeExecutionFulfilledEvent } from "./NodeExecutionFulfilledEvent";
|
|
10
|
+
import { NodeExecutionRejectedEvent } from "./NodeExecutionRejectedEvent";
|
|
11
|
+
import { NodeExecutionPausedEvent } from "./NodeExecutionPausedEvent";
|
|
12
|
+
import { NodeExecutionResumedEvent } from "./NodeExecutionResumedEvent";
|
|
13
|
+
import { WorkflowExecutionInitiatedEvent } from "./WorkflowExecutionInitiatedEvent";
|
|
14
|
+
import { WorkflowExecutionStreamingEvent } from "./WorkflowExecutionStreamingEvent";
|
|
15
|
+
import { WorkflowExecutionRejectedEvent } from "./WorkflowExecutionRejectedEvent";
|
|
16
|
+
import { WorkflowExecutionFulfilledEvent } from "./WorkflowExecutionFulfilledEvent";
|
|
17
|
+
import { WorkflowExecutionPausedEvent } from "./WorkflowExecutionPausedEvent";
|
|
18
|
+
import { WorkflowExecutionResumedEvent } from "./WorkflowExecutionResumedEvent";
|
|
19
|
+
import { WorkflowExecutionSnapshottedEvent } from "./WorkflowExecutionSnapshottedEvent";
|
|
20
|
+
export declare const WorkflowEvent: core.serialization.Schema<serializers.WorkflowEvent.Raw, Vellum.WorkflowEvent>;
|
|
21
|
+
export declare namespace WorkflowEvent {
|
|
22
|
+
type Raw = NodeExecutionInitiatedEvent.Raw | NodeExecutionStreamingEvent.Raw | NodeExecutionFulfilledEvent.Raw | NodeExecutionRejectedEvent.Raw | NodeExecutionPausedEvent.Raw | NodeExecutionResumedEvent.Raw | WorkflowExecutionInitiatedEvent.Raw | WorkflowExecutionStreamingEvent.Raw | WorkflowExecutionRejectedEvent.Raw | WorkflowExecutionFulfilledEvent.Raw | WorkflowExecutionPausedEvent.Raw | WorkflowExecutionResumedEvent.Raw | WorkflowExecutionSnapshottedEvent.Raw;
|
|
23
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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.WorkflowEvent = void 0;
|
|
40
|
+
const core = __importStar(require("../../core"));
|
|
41
|
+
const NodeExecutionInitiatedEvent_1 = require("./NodeExecutionInitiatedEvent");
|
|
42
|
+
const NodeExecutionStreamingEvent_1 = require("./NodeExecutionStreamingEvent");
|
|
43
|
+
const NodeExecutionFulfilledEvent_1 = require("./NodeExecutionFulfilledEvent");
|
|
44
|
+
const NodeExecutionRejectedEvent_1 = require("./NodeExecutionRejectedEvent");
|
|
45
|
+
const NodeExecutionPausedEvent_1 = require("./NodeExecutionPausedEvent");
|
|
46
|
+
const NodeExecutionResumedEvent_1 = require("./NodeExecutionResumedEvent");
|
|
47
|
+
const WorkflowExecutionInitiatedEvent_1 = require("./WorkflowExecutionInitiatedEvent");
|
|
48
|
+
const WorkflowExecutionStreamingEvent_1 = require("./WorkflowExecutionStreamingEvent");
|
|
49
|
+
const WorkflowExecutionRejectedEvent_1 = require("./WorkflowExecutionRejectedEvent");
|
|
50
|
+
const WorkflowExecutionFulfilledEvent_1 = require("./WorkflowExecutionFulfilledEvent");
|
|
51
|
+
const WorkflowExecutionPausedEvent_1 = require("./WorkflowExecutionPausedEvent");
|
|
52
|
+
const WorkflowExecutionResumedEvent_1 = require("./WorkflowExecutionResumedEvent");
|
|
53
|
+
const WorkflowExecutionSnapshottedEvent_1 = require("./WorkflowExecutionSnapshottedEvent");
|
|
54
|
+
exports.WorkflowEvent = core.serialization.undiscriminatedUnion([
|
|
55
|
+
NodeExecutionInitiatedEvent_1.NodeExecutionInitiatedEvent,
|
|
56
|
+
NodeExecutionStreamingEvent_1.NodeExecutionStreamingEvent,
|
|
57
|
+
NodeExecutionFulfilledEvent_1.NodeExecutionFulfilledEvent,
|
|
58
|
+
NodeExecutionRejectedEvent_1.NodeExecutionRejectedEvent,
|
|
59
|
+
NodeExecutionPausedEvent_1.NodeExecutionPausedEvent,
|
|
60
|
+
NodeExecutionResumedEvent_1.NodeExecutionResumedEvent,
|
|
61
|
+
WorkflowExecutionInitiatedEvent_1.WorkflowExecutionInitiatedEvent,
|
|
62
|
+
WorkflowExecutionStreamingEvent_1.WorkflowExecutionStreamingEvent,
|
|
63
|
+
WorkflowExecutionRejectedEvent_1.WorkflowExecutionRejectedEvent,
|
|
64
|
+
WorkflowExecutionFulfilledEvent_1.WorkflowExecutionFulfilledEvent,
|
|
65
|
+
WorkflowExecutionPausedEvent_1.WorkflowExecutionPausedEvent,
|
|
66
|
+
WorkflowExecutionResumedEvent_1.WorkflowExecutionResumedEvent,
|
|
67
|
+
WorkflowExecutionSnapshottedEvent_1.WorkflowExecutionSnapshottedEvent,
|
|
68
|
+
]);
|
|
@@ -95,9 +95,11 @@ export * from "./EntityVisibility";
|
|
|
95
95
|
export * from "./EnvironmentEnum";
|
|
96
96
|
export * from "./EphemeralPromptCacheConfig";
|
|
97
97
|
export * from "./EphemeralPromptCacheConfigTypeEnum";
|
|
98
|
+
export * from "./ErrorDetailResponse";
|
|
98
99
|
export * from "./ErrorInput";
|
|
99
100
|
export * from "./ErrorVellumValue";
|
|
100
101
|
export * from "./ErrorVellumValueRequest";
|
|
102
|
+
export * from "./EventCreateResponse";
|
|
101
103
|
export * from "./ExecuteApiResponseJson";
|
|
102
104
|
export * from "./ExecuteApiResponse";
|
|
103
105
|
export * from "./ExecutePromptEvent";
|
|
@@ -535,6 +537,7 @@ export * from "./WorkflowDeploymentRelease";
|
|
|
535
537
|
export * from "./WorkflowDeploymentReleaseWorkflowDeployment";
|
|
536
538
|
export * from "./WorkflowDeploymentReleaseWorkflowVersion";
|
|
537
539
|
export * from "./WorkflowError";
|
|
540
|
+
export * from "./WorkflowEvent";
|
|
538
541
|
export * from "./WorkflowEventError";
|
|
539
542
|
export * from "./WorkflowEventExecutionRead";
|
|
540
543
|
export * from "./WorkflowExecutionActual";
|
|
@@ -111,9 +111,11 @@ __exportStar(require("./EntityVisibility"), exports);
|
|
|
111
111
|
__exportStar(require("./EnvironmentEnum"), exports);
|
|
112
112
|
__exportStar(require("./EphemeralPromptCacheConfig"), exports);
|
|
113
113
|
__exportStar(require("./EphemeralPromptCacheConfigTypeEnum"), exports);
|
|
114
|
+
__exportStar(require("./ErrorDetailResponse"), exports);
|
|
114
115
|
__exportStar(require("./ErrorInput"), exports);
|
|
115
116
|
__exportStar(require("./ErrorVellumValue"), exports);
|
|
116
117
|
__exportStar(require("./ErrorVellumValueRequest"), exports);
|
|
118
|
+
__exportStar(require("./EventCreateResponse"), exports);
|
|
117
119
|
__exportStar(require("./ExecuteApiResponseJson"), exports);
|
|
118
120
|
__exportStar(require("./ExecuteApiResponse"), exports);
|
|
119
121
|
__exportStar(require("./ExecutePromptEvent"), exports);
|
|
@@ -551,6 +553,7 @@ __exportStar(require("./WorkflowDeploymentRelease"), exports);
|
|
|
551
553
|
__exportStar(require("./WorkflowDeploymentReleaseWorkflowDeployment"), exports);
|
|
552
554
|
__exportStar(require("./WorkflowDeploymentReleaseWorkflowVersion"), exports);
|
|
553
555
|
__exportStar(require("./WorkflowError"), exports);
|
|
556
|
+
__exportStar(require("./WorkflowEvent"), exports);
|
|
554
557
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
555
558
|
__exportStar(require("./WorkflowEventExecutionRead"), exports);
|
|
556
559
|
__exportStar(require("./WorkflowExecutionActual"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.1";
|
package/version.js
CHANGED