vellum-ai 0.0.20 → 0.0.21

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.
Files changed (95) hide show
  1. package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
  2. package/api/types/ModelVersionRead.d.ts +1 -0
  3. package/api/types/ProviderEnum.d.ts +3 -1
  4. package/api/types/ProviderEnum.js +1 -0
  5. package/api/types/WorkflowEventError.d.ts +8 -0
  6. package/api/types/WorkflowEventError.js +5 -0
  7. package/api/types/WorkflowExecutionEventErrorCode.d.ts +12 -0
  8. package/api/types/WorkflowExecutionEventErrorCode.js +10 -0
  9. package/api/types/WorkflowNodeResultEvent.d.ts +2 -2
  10. package/api/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
  11. package/{dist/api/types/WorkflowNodeResultEventStateEnum.js → api/types/WorkflowNodeResultEventState.js} +2 -2
  12. package/api/types/WorkflowResultEvent.d.ts +3 -2
  13. package/api/types/WorkflowResultEventOutputData.d.ts +16 -0
  14. package/api/types/WorkflowResultEventOutputData.js +5 -0
  15. package/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +10 -0
  16. package/api/types/WorkflowResultEventOutputDataChatHistory.js +5 -0
  17. package/api/types/WorkflowResultEventOutputDataJson.d.ts +10 -0
  18. package/api/types/WorkflowResultEventOutputDataJson.js +5 -0
  19. package/api/types/WorkflowResultEventOutputDataString.d.ts +10 -0
  20. package/api/types/WorkflowResultEventOutputDataString.js +5 -0
  21. package/api/types/index.d.ts +7 -2
  22. package/api/types/index.js +7 -2
  23. package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +1 -0
  24. package/dist/api/types/ModelVersionRead.d.ts +1 -0
  25. package/dist/api/types/ProviderEnum.d.ts +3 -1
  26. package/dist/api/types/ProviderEnum.js +1 -0
  27. package/dist/api/types/WorkflowEventError.d.ts +8 -0
  28. package/dist/api/types/WorkflowEventError.js +5 -0
  29. package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +12 -0
  30. package/dist/api/types/WorkflowExecutionEventErrorCode.js +10 -0
  31. package/dist/api/types/WorkflowNodeResultEvent.d.ts +2 -2
  32. package/dist/api/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
  33. package/{api/types/WorkflowNodeResultEventStateEnum.js → dist/api/types/WorkflowNodeResultEventState.js} +2 -2
  34. package/dist/api/types/WorkflowResultEvent.d.ts +3 -2
  35. package/dist/api/types/WorkflowResultEventOutputData.d.ts +16 -0
  36. package/dist/api/types/WorkflowResultEventOutputData.js +5 -0
  37. package/dist/api/types/WorkflowResultEventOutputDataChatHistory.d.ts +10 -0
  38. package/dist/api/types/WorkflowResultEventOutputDataChatHistory.js +5 -0
  39. package/dist/api/types/WorkflowResultEventOutputDataJson.d.ts +10 -0
  40. package/dist/api/types/WorkflowResultEventOutputDataJson.js +5 -0
  41. package/dist/api/types/WorkflowResultEventOutputDataString.d.ts +10 -0
  42. package/dist/api/types/WorkflowResultEventOutputDataString.js +5 -0
  43. package/dist/api/types/index.d.ts +7 -2
  44. package/dist/api/types/index.js +7 -2
  45. package/dist/serialization/types/ProviderEnum.d.ts +1 -1
  46. package/dist/serialization/types/ProviderEnum.js +1 -1
  47. package/dist/serialization/types/WorkflowEventError.d.ts +13 -0
  48. package/dist/serialization/types/WorkflowEventError.js +34 -0
  49. package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +10 -0
  50. package/dist/serialization/types/{WorkflowResultEventStateEnum.js → WorkflowExecutionEventErrorCode.js} +2 -2
  51. package/dist/serialization/types/WorkflowNodeResultEvent.d.ts +2 -2
  52. package/dist/serialization/types/WorkflowNodeResultEvent.js +2 -2
  53. package/dist/serialization/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
  54. package/{serialization/types/WorkflowResultEventStateEnum.js → dist/serialization/types/WorkflowNodeResultEventState.js} +2 -2
  55. package/dist/serialization/types/WorkflowResultEvent.d.ts +3 -2
  56. package/dist/serialization/types/WorkflowResultEvent.js +3 -2
  57. package/dist/serialization/types/WorkflowResultEventOutputData.d.ts +19 -0
  58. package/dist/serialization/types/WorkflowResultEventOutputData.js +40 -0
  59. package/dist/serialization/types/WorkflowResultEventOutputDataChatHistory.d.ts +15 -0
  60. package/dist/serialization/types/WorkflowResultEventOutputDataChatHistory.js +38 -0
  61. package/dist/serialization/types/WorkflowResultEventOutputDataJson.d.ts +15 -0
  62. package/dist/serialization/types/WorkflowResultEventOutputDataJson.js +36 -0
  63. package/dist/serialization/types/WorkflowResultEventOutputDataString.d.ts +15 -0
  64. package/dist/serialization/types/WorkflowResultEventOutputDataString.js +36 -0
  65. package/dist/serialization/types/index.d.ts +7 -2
  66. package/dist/serialization/types/index.js +7 -2
  67. package/package.json +1 -1
  68. package/serialization/types/ProviderEnum.d.ts +1 -1
  69. package/serialization/types/ProviderEnum.js +1 -1
  70. package/serialization/types/WorkflowEventError.d.ts +13 -0
  71. package/serialization/types/WorkflowEventError.js +34 -0
  72. package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +10 -0
  73. package/{dist/serialization/types/WorkflowNodeResultEventStateEnum.js → serialization/types/WorkflowExecutionEventErrorCode.js} +2 -2
  74. package/serialization/types/WorkflowNodeResultEvent.d.ts +2 -2
  75. package/serialization/types/WorkflowNodeResultEvent.js +2 -2
  76. package/serialization/types/{WorkflowNodeResultEventStateEnum.d.ts → WorkflowNodeResultEventState.d.ts} +2 -2
  77. package/serialization/types/{WorkflowNodeResultEventStateEnum.js → WorkflowNodeResultEventState.js} +2 -2
  78. package/serialization/types/WorkflowResultEvent.d.ts +3 -2
  79. package/serialization/types/WorkflowResultEvent.js +3 -2
  80. package/serialization/types/WorkflowResultEventOutputData.d.ts +19 -0
  81. package/serialization/types/WorkflowResultEventOutputData.js +40 -0
  82. package/serialization/types/WorkflowResultEventOutputDataChatHistory.d.ts +15 -0
  83. package/serialization/types/WorkflowResultEventOutputDataChatHistory.js +38 -0
  84. package/serialization/types/WorkflowResultEventOutputDataJson.d.ts +15 -0
  85. package/serialization/types/WorkflowResultEventOutputDataJson.js +36 -0
  86. package/serialization/types/WorkflowResultEventOutputDataString.d.ts +15 -0
  87. package/serialization/types/WorkflowResultEventOutputDataString.js +36 -0
  88. package/serialization/types/index.d.ts +7 -2
  89. package/serialization/types/index.js +7 -2
  90. package/api/types/WorkflowResultEventStateEnum.d.ts +0 -14
  91. package/api/types/WorkflowResultEventStateEnum.js +0 -11
  92. package/dist/api/types/WorkflowResultEventStateEnum.d.ts +0 -14
  93. package/dist/api/types/WorkflowResultEventStateEnum.js +0 -11
  94. package/dist/serialization/types/WorkflowResultEventStateEnum.d.ts +0 -10
  95. package/serialization/types/WorkflowResultEventStateEnum.d.ts +0 -10
@@ -17,6 +17,7 @@ export interface RegisterPromptRequestRequest {
17
17
  * * `GOOGLE` - Google
18
18
  * * `HOSTED` - Hosted
19
19
  * * `MOSAICML` - MosaicML
20
+ * * `MYSTIC` - Mystic
20
21
  * * `OPENAI` - OpenAI
21
22
  * * `PYQ` - Pyq
22
23
  */
@@ -24,6 +24,7 @@ export interface ModelVersionRead {
24
24
  * * `GOOGLE` - Google
25
25
  * * `HOSTED` - Hosted
26
26
  * * `MOSAICML` - MosaicML
27
+ * * `MYSTIC` - Mystic
27
28
  * * `OPENAI` - OpenAI
28
29
  * * `PYQ` - Pyq
29
30
  */
@@ -7,16 +7,18 @@
7
7
  * * `GOOGLE` - Google
8
8
  * * `HOSTED` - Hosted
9
9
  * * `MOSAICML` - MosaicML
10
+ * * `MYSTIC` - Mystic
10
11
  * * `OPENAI` - OpenAI
11
12
  * * `PYQ` - Pyq
12
13
  */
13
- export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "PYQ";
14
+ export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "MYSTIC" | "OPENAI" | "PYQ";
14
15
  export declare const ProviderEnum: {
15
16
  readonly Anthropic: "ANTHROPIC";
16
17
  readonly Cohere: "COHERE";
17
18
  readonly Google: "GOOGLE";
18
19
  readonly Hosted: "HOSTED";
19
20
  readonly Mosaicml: "MOSAICML";
21
+ readonly Mystic: "MYSTIC";
20
22
  readonly Openai: "OPENAI";
21
23
  readonly Pyq: "PYQ";
22
24
  };
@@ -10,6 +10,7 @@ exports.ProviderEnum = {
10
10
  Google: "GOOGLE",
11
11
  Hosted: "HOSTED",
12
12
  Mosaicml: "MOSAICML",
13
+ Mystic: "MYSTIC",
13
14
  Openai: "OPENAI",
14
15
  Pyq: "PYQ",
15
16
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowEventError {
6
+ message: string;
7
+ code: Vellum.WorkflowExecutionEventErrorCode;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * * `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
6
+ * * `NODE_EXECUTION` - NODE_EXECUTION
7
+ */
8
+ export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION";
9
+ export declare const WorkflowExecutionEventErrorCode: {
10
+ readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
11
+ readonly NodeExecution: "NODE_EXECUTION";
12
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WorkflowExecutionEventErrorCode = void 0;
7
+ exports.WorkflowExecutionEventErrorCode = {
8
+ WorkflowInitialization: "WORKFLOW_INITIALIZATION",
9
+ NodeExecution: "NODE_EXECUTION",
10
+ };
@@ -6,8 +6,8 @@ export interface WorkflowNodeResultEvent {
6
6
  id: string;
7
7
  nodeId: string;
8
8
  nodeResultId: string;
9
- state: Vellum.WorkflowNodeResultEventStateEnum;
9
+ state: Vellum.WorkflowNodeResultEventState;
10
10
  ts?: string;
11
11
  data?: Vellum.WorkflowNodeResultData;
12
- error?: string;
12
+ error?: Vellum.WorkflowEventError;
13
13
  }
@@ -7,8 +7,8 @@
7
7
  * * `FULFILLED` - FULFILLED
8
8
  * * `REJECTED` - REJECTED
9
9
  */
10
- export declare type WorkflowNodeResultEventStateEnum = "INITIATED" | "STREAMING" | "FULFILLED" | "REJECTED";
11
- export declare const WorkflowNodeResultEventStateEnum: {
10
+ export declare type WorkflowNodeResultEventState = "INITIATED" | "STREAMING" | "FULFILLED" | "REJECTED";
11
+ export declare const WorkflowNodeResultEventState: {
12
12
  readonly Initiated: "INITIATED";
13
13
  readonly Streaming: "STREAMING";
14
14
  readonly Fulfilled: "FULFILLED";
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WorkflowNodeResultEventStateEnum = void 0;
7
- exports.WorkflowNodeResultEventStateEnum = {
6
+ exports.WorkflowNodeResultEventState = void 0;
7
+ exports.WorkflowNodeResultEventState = {
8
8
  Initiated: "INITIATED",
9
9
  Streaming: "STREAMING",
10
10
  Fulfilled: "FULFILLED",
@@ -4,7 +4,8 @@
4
4
  import * as Vellum from "..";
5
5
  export interface WorkflowResultEvent {
6
6
  id: string;
7
- state: Vellum.WorkflowResultEventStateEnum;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
8
  ts: string;
9
- error?: string;
9
+ output?: Vellum.WorkflowResultEventOutputData;
10
+ error?: Vellum.WorkflowEventError;
10
11
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory;
6
+ export declare namespace WorkflowResultEventOutputData {
7
+ interface String extends Vellum.WorkflowResultEventOutputDataString {
8
+ type: "STRING";
9
+ }
10
+ interface Json extends Vellum.WorkflowResultEventOutputDataJson {
11
+ type: "JSON";
12
+ }
13
+ interface ChatHistory extends Vellum.WorkflowResultEventOutputDataChatHistory {
14
+ type: "CHAT_HISTORY";
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowResultEventOutputDataChatHistory {
6
+ name: string;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
+ nodeId: string;
9
+ value?: Vellum.ChatMessage[];
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowResultEventOutputDataJson {
6
+ name: string;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
+ nodeId: string;
9
+ value?: Record<string, unknown>;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowResultEventOutputDataString {
6
+ name: string;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
+ nodeId: string;
9
+ value?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -94,15 +94,20 @@ export * from "./TerminalNodeStringResult";
94
94
  export * from "./TestSuiteTestCase";
95
95
  export * from "./UploadDocumentErrorResponse";
96
96
  export * from "./UploadDocumentResponse";
97
+ export * from "./WorkflowEventError";
98
+ export * from "./WorkflowExecutionEventErrorCode";
97
99
  export * from "./WorkflowExecutionNodeResultEvent";
98
100
  export * from "./WorkflowExecutionWorkflowResultEvent";
99
101
  export * from "./WorkflowNodeResultData";
100
102
  export * from "./WorkflowNodeResultEvent";
101
- export * from "./WorkflowNodeResultEventStateEnum";
103
+ export * from "./WorkflowNodeResultEventState";
102
104
  export * from "./WorkflowRequestChatHistoryInputRequest";
103
105
  export * from "./WorkflowRequestInputRequest";
104
106
  export * from "./WorkflowRequestJsonInputRequest";
105
107
  export * from "./WorkflowRequestStringInputRequest";
106
108
  export * from "./WorkflowResultEvent";
107
- export * from "./WorkflowResultEventStateEnum";
109
+ export * from "./WorkflowResultEventOutputData";
110
+ export * from "./WorkflowResultEventOutputDataChatHistory";
111
+ export * from "./WorkflowResultEventOutputDataJson";
112
+ export * from "./WorkflowResultEventOutputDataString";
108
113
  export * from "./WorkflowStreamEvent";
@@ -110,15 +110,20 @@ __exportStar(require("./TerminalNodeStringResult"), exports);
110
110
  __exportStar(require("./TestSuiteTestCase"), exports);
111
111
  __exportStar(require("./UploadDocumentErrorResponse"), exports);
112
112
  __exportStar(require("./UploadDocumentResponse"), exports);
113
+ __exportStar(require("./WorkflowEventError"), exports);
114
+ __exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
113
115
  __exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
114
116
  __exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
115
117
  __exportStar(require("./WorkflowNodeResultData"), exports);
116
118
  __exportStar(require("./WorkflowNodeResultEvent"), exports);
117
- __exportStar(require("./WorkflowNodeResultEventStateEnum"), exports);
119
+ __exportStar(require("./WorkflowNodeResultEventState"), exports);
118
120
  __exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
119
121
  __exportStar(require("./WorkflowRequestInputRequest"), exports);
120
122
  __exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
121
123
  __exportStar(require("./WorkflowRequestStringInputRequest"), exports);
122
124
  __exportStar(require("./WorkflowResultEvent"), exports);
123
- __exportStar(require("./WorkflowResultEventStateEnum"), exports);
125
+ __exportStar(require("./WorkflowResultEventOutputData"), exports);
126
+ __exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
127
+ __exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
128
+ __exportStar(require("./WorkflowResultEventOutputDataString"), exports);
124
129
  __exportStar(require("./WorkflowStreamEvent"), exports);
@@ -17,6 +17,7 @@ export interface RegisterPromptRequestRequest {
17
17
  * * `GOOGLE` - Google
18
18
  * * `HOSTED` - Hosted
19
19
  * * `MOSAICML` - MosaicML
20
+ * * `MYSTIC` - Mystic
20
21
  * * `OPENAI` - OpenAI
21
22
  * * `PYQ` - Pyq
22
23
  */
@@ -24,6 +24,7 @@ export interface ModelVersionRead {
24
24
  * * `GOOGLE` - Google
25
25
  * * `HOSTED` - Hosted
26
26
  * * `MOSAICML` - MosaicML
27
+ * * `MYSTIC` - Mystic
27
28
  * * `OPENAI` - OpenAI
28
29
  * * `PYQ` - Pyq
29
30
  */
@@ -7,16 +7,18 @@
7
7
  * * `GOOGLE` - Google
8
8
  * * `HOSTED` - Hosted
9
9
  * * `MOSAICML` - MosaicML
10
+ * * `MYSTIC` - Mystic
10
11
  * * `OPENAI` - OpenAI
11
12
  * * `PYQ` - Pyq
12
13
  */
13
- export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "PYQ";
14
+ export declare type ProviderEnum = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "MYSTIC" | "OPENAI" | "PYQ";
14
15
  export declare const ProviderEnum: {
15
16
  readonly Anthropic: "ANTHROPIC";
16
17
  readonly Cohere: "COHERE";
17
18
  readonly Google: "GOOGLE";
18
19
  readonly Hosted: "HOSTED";
19
20
  readonly Mosaicml: "MOSAICML";
21
+ readonly Mystic: "MYSTIC";
20
22
  readonly Openai: "OPENAI";
21
23
  readonly Pyq: "PYQ";
22
24
  };
@@ -10,6 +10,7 @@ exports.ProviderEnum = {
10
10
  Google: "GOOGLE",
11
11
  Hosted: "HOSTED",
12
12
  Mosaicml: "MOSAICML",
13
+ Mystic: "MYSTIC",
13
14
  Openai: "OPENAI",
14
15
  Pyq: "PYQ",
15
16
  };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowEventError {
6
+ message: string;
7
+ code: Vellum.WorkflowExecutionEventErrorCode;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * * `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
6
+ * * `NODE_EXECUTION` - NODE_EXECUTION
7
+ */
8
+ export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION";
9
+ export declare const WorkflowExecutionEventErrorCode: {
10
+ readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
11
+ readonly NodeExecution: "NODE_EXECUTION";
12
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.WorkflowExecutionEventErrorCode = void 0;
7
+ exports.WorkflowExecutionEventErrorCode = {
8
+ WorkflowInitialization: "WORKFLOW_INITIALIZATION",
9
+ NodeExecution: "NODE_EXECUTION",
10
+ };
@@ -6,8 +6,8 @@ export interface WorkflowNodeResultEvent {
6
6
  id: string;
7
7
  nodeId: string;
8
8
  nodeResultId: string;
9
- state: Vellum.WorkflowNodeResultEventStateEnum;
9
+ state: Vellum.WorkflowNodeResultEventState;
10
10
  ts?: string;
11
11
  data?: Vellum.WorkflowNodeResultData;
12
- error?: string;
12
+ error?: Vellum.WorkflowEventError;
13
13
  }
@@ -7,8 +7,8 @@
7
7
  * * `FULFILLED` - FULFILLED
8
8
  * * `REJECTED` - REJECTED
9
9
  */
10
- export declare type WorkflowNodeResultEventStateEnum = "INITIATED" | "STREAMING" | "FULFILLED" | "REJECTED";
11
- export declare const WorkflowNodeResultEventStateEnum: {
10
+ export declare type WorkflowNodeResultEventState = "INITIATED" | "STREAMING" | "FULFILLED" | "REJECTED";
11
+ export declare const WorkflowNodeResultEventState: {
12
12
  readonly Initiated: "INITIATED";
13
13
  readonly Streaming: "STREAMING";
14
14
  readonly Fulfilled: "FULFILLED";
@@ -3,8 +3,8 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.WorkflowNodeResultEventStateEnum = void 0;
7
- exports.WorkflowNodeResultEventStateEnum = {
6
+ exports.WorkflowNodeResultEventState = void 0;
7
+ exports.WorkflowNodeResultEventState = {
8
8
  Initiated: "INITIATED",
9
9
  Streaming: "STREAMING",
10
10
  Fulfilled: "FULFILLED",
@@ -4,7 +4,8 @@
4
4
  import * as Vellum from "..";
5
5
  export interface WorkflowResultEvent {
6
6
  id: string;
7
- state: Vellum.WorkflowResultEventStateEnum;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
8
  ts: string;
9
- error?: string;
9
+ output?: Vellum.WorkflowResultEventOutputData;
10
+ error?: Vellum.WorkflowEventError;
10
11
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export declare type WorkflowResultEventOutputData = Vellum.WorkflowResultEventOutputData.String | Vellum.WorkflowResultEventOutputData.Json | Vellum.WorkflowResultEventOutputData.ChatHistory;
6
+ export declare namespace WorkflowResultEventOutputData {
7
+ interface String extends Vellum.WorkflowResultEventOutputDataString {
8
+ type: "STRING";
9
+ }
10
+ interface Json extends Vellum.WorkflowResultEventOutputDataJson {
11
+ type: "JSON";
12
+ }
13
+ interface ChatHistory extends Vellum.WorkflowResultEventOutputDataChatHistory {
14
+ type: "CHAT_HISTORY";
15
+ }
16
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowResultEventOutputDataChatHistory {
6
+ name: string;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
+ nodeId: string;
9
+ value?: Vellum.ChatMessage[];
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowResultEventOutputDataJson {
6
+ name: string;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
+ nodeId: string;
9
+ value?: Record<string, unknown>;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface WorkflowResultEventOutputDataString {
6
+ name: string;
7
+ state: Vellum.WorkflowNodeResultEventState;
8
+ nodeId: string;
9
+ value?: string;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -94,15 +94,20 @@ export * from "./TerminalNodeStringResult";
94
94
  export * from "./TestSuiteTestCase";
95
95
  export * from "./UploadDocumentErrorResponse";
96
96
  export * from "./UploadDocumentResponse";
97
+ export * from "./WorkflowEventError";
98
+ export * from "./WorkflowExecutionEventErrorCode";
97
99
  export * from "./WorkflowExecutionNodeResultEvent";
98
100
  export * from "./WorkflowExecutionWorkflowResultEvent";
99
101
  export * from "./WorkflowNodeResultData";
100
102
  export * from "./WorkflowNodeResultEvent";
101
- export * from "./WorkflowNodeResultEventStateEnum";
103
+ export * from "./WorkflowNodeResultEventState";
102
104
  export * from "./WorkflowRequestChatHistoryInputRequest";
103
105
  export * from "./WorkflowRequestInputRequest";
104
106
  export * from "./WorkflowRequestJsonInputRequest";
105
107
  export * from "./WorkflowRequestStringInputRequest";
106
108
  export * from "./WorkflowResultEvent";
107
- export * from "./WorkflowResultEventStateEnum";
109
+ export * from "./WorkflowResultEventOutputData";
110
+ export * from "./WorkflowResultEventOutputDataChatHistory";
111
+ export * from "./WorkflowResultEventOutputDataJson";
112
+ export * from "./WorkflowResultEventOutputDataString";
108
113
  export * from "./WorkflowStreamEvent";
@@ -110,15 +110,20 @@ __exportStar(require("./TerminalNodeStringResult"), exports);
110
110
  __exportStar(require("./TestSuiteTestCase"), exports);
111
111
  __exportStar(require("./UploadDocumentErrorResponse"), exports);
112
112
  __exportStar(require("./UploadDocumentResponse"), exports);
113
+ __exportStar(require("./WorkflowEventError"), exports);
114
+ __exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
113
115
  __exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
114
116
  __exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
115
117
  __exportStar(require("./WorkflowNodeResultData"), exports);
116
118
  __exportStar(require("./WorkflowNodeResultEvent"), exports);
117
- __exportStar(require("./WorkflowNodeResultEventStateEnum"), exports);
119
+ __exportStar(require("./WorkflowNodeResultEventState"), exports);
118
120
  __exportStar(require("./WorkflowRequestChatHistoryInputRequest"), exports);
119
121
  __exportStar(require("./WorkflowRequestInputRequest"), exports);
120
122
  __exportStar(require("./WorkflowRequestJsonInputRequest"), exports);
121
123
  __exportStar(require("./WorkflowRequestStringInputRequest"), exports);
122
124
  __exportStar(require("./WorkflowResultEvent"), exports);
123
- __exportStar(require("./WorkflowResultEventStateEnum"), exports);
125
+ __exportStar(require("./WorkflowResultEventOutputData"), exports);
126
+ __exportStar(require("./WorkflowResultEventOutputDataChatHistory"), exports);
127
+ __exportStar(require("./WorkflowResultEventOutputDataJson"), exports);
128
+ __exportStar(require("./WorkflowResultEventOutputDataString"), exports);
124
129
  __exportStar(require("./WorkflowStreamEvent"), exports);
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
6
6
  import * as core from "../../core";
7
7
  export declare const ProviderEnum: core.serialization.Schema<serializers.ProviderEnum.Raw, Vellum.ProviderEnum>;
8
8
  export declare namespace ProviderEnum {
9
- type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "OPENAI" | "PYQ";
9
+ type Raw = "ANTHROPIC" | "COHERE" | "GOOGLE" | "HOSTED" | "MOSAICML" | "MYSTIC" | "OPENAI" | "PYQ";
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ProviderEnum = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.ProviderEnum = core.serialization.enum_(["ANTHROPIC", "COHERE", "GOOGLE", "HOSTED", "MOSAICML", "OPENAI", "PYQ"]);
31
+ exports.ProviderEnum = core.serialization.enum_(["ANTHROPIC", "COHERE", "GOOGLE", "HOSTED", "MOSAICML", "MYSTIC", "OPENAI", "PYQ"]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const WorkflowEventError: core.serialization.ObjectSchema<serializers.WorkflowEventError.Raw, Vellum.WorkflowEventError>;
8
+ export declare namespace WorkflowEventError {
9
+ interface Raw {
10
+ message: string;
11
+ code: serializers.WorkflowExecutionEventErrorCode.Raw;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WorkflowEventError = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.WorkflowEventError = core.serialization.object({
32
+ message: core.serialization.string(),
33
+ code: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowExecutionEventErrorCode),
34
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "..";
5
+ import * as Vellum from "../../api";
6
+ import * as core from "../../core";
7
+ export declare const WorkflowExecutionEventErrorCode: core.serialization.Schema<serializers.WorkflowExecutionEventErrorCode.Raw, Vellum.WorkflowExecutionEventErrorCode>;
8
+ export declare namespace WorkflowExecutionEventErrorCode {
9
+ type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION";
10
+ }
@@ -26,6 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.WorkflowResultEventStateEnum = void 0;
29
+ exports.WorkflowExecutionEventErrorCode = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.WorkflowResultEventStateEnum = core.serialization.enum_(["INITIATED", "FULFILLED", "REJECTED"]);
31
+ exports.WorkflowExecutionEventErrorCode = core.serialization.enum_(["WORKFLOW_INITIALIZATION", "NODE_EXECUTION"]);