vellum-ai 0.0.40 → 0.0.41
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 +2 -14
- package/Client.js +2 -14
- package/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/api/resources/deployments/client/Client.d.ts +0 -4
- package/api/resources/deployments/client/Client.js +0 -4
- package/api/resources/documentIndexes/client/Client.d.ts +0 -2
- package/api/resources/documentIndexes/client/Client.js +0 -2
- package/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +2 -2
- package/api/resources/documents/client/Client.d.ts +0 -10
- package/api/resources/documents/client/Client.js +0 -10
- package/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -1
- package/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/api/resources/modelVersions/client/Client.d.ts +0 -6
- package/api/resources/modelVersions/client/Client.js +0 -6
- package/api/resources/registeredPrompts/client/Client.d.ts +0 -2
- package/api/resources/registeredPrompts/client/Client.js +0 -2
- package/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/api/resources/sandboxes/client/Client.d.ts +0 -4
- package/api/resources/sandboxes/client/Client.js +0 -4
- package/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/api/resources/testSuites/client/Client.d.ts +1 -4
- package/api/resources/testSuites/client/Client.js +1 -4
- package/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/api/types/DeploymentRead.d.ts +4 -4
- package/api/types/DocumentIndexRead.d.ts +3 -3
- package/api/types/DocumentRead.d.ts +2 -2
- package/api/types/LogicalOperator.d.ts +98 -0
- package/api/types/LogicalOperator.js +26 -0
- package/api/types/MetadataFilterConfigRequest.d.ts +1 -4
- package/api/types/MetadataFilterRuleRequest.d.ts +1 -4
- package/api/types/ModelVersionRead.d.ts +3 -3
- package/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -2
- package/api/types/PromptTemplateBlockRequest.d.ts +0 -1
- package/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -2
- package/api/types/ScenarioInputRequest.d.ts +0 -1
- package/api/types/SearchResultDocument.d.ts +1 -1
- package/api/types/SlimDocument.d.ts +2 -2
- package/api/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/api/types/WorkflowNodeResultEvent.d.ts +1 -1
- package/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +1 -1
- package/api/types/WorkflowRequestJsonInputRequest.d.ts +1 -1
- package/api/types/WorkflowRequestStringInputRequest.d.ts +1 -1
- package/api/types/WorkflowResultEvent.d.ts +1 -1
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.d.ts +2 -14
- package/dist/Client.js +2 -14
- package/dist/api/client/requests/SearchRequestBodyRequest.d.ts +1 -1
- package/dist/api/resources/deployments/client/Client.d.ts +0 -4
- package/dist/api/resources/deployments/client/Client.js +0 -4
- package/dist/api/resources/documentIndexes/client/Client.d.ts +0 -2
- package/dist/api/resources/documentIndexes/client/Client.js +0 -2
- package/dist/api/resources/documentIndexes/client/requests/DocumentIndexCreateRequest.d.ts +2 -2
- package/dist/api/resources/documents/client/Client.d.ts +0 -10
- package/dist/api/resources/documents/client/Client.js +0 -10
- package/dist/api/resources/documents/client/requests/PatchedDocumentUpdateRequest.d.ts +1 -1
- package/dist/api/resources/documents/client/requests/UploadDocumentBodyRequest.d.ts +1 -1
- package/dist/api/resources/modelVersions/client/Client.d.ts +0 -6
- package/dist/api/resources/modelVersions/client/Client.js +0 -6
- package/dist/api/resources/registeredPrompts/client/Client.d.ts +0 -2
- package/dist/api/resources/registeredPrompts/client/Client.js +0 -2
- package/dist/api/resources/registeredPrompts/client/requests/RegisterPromptRequestRequest.d.ts +3 -3
- package/dist/api/resources/sandboxes/client/Client.d.ts +0 -4
- package/dist/api/resources/sandboxes/client/Client.js +0 -4
- package/dist/api/resources/sandboxes/client/requests/UpsertSandboxScenarioRequestRequest.d.ts +1 -1
- package/dist/api/resources/testSuites/client/Client.d.ts +1 -4
- package/dist/api/resources/testSuites/client/Client.js +1 -4
- package/dist/api/resources/testSuites/client/requests/TestSuiteTestCaseRequest.d.ts +1 -1
- package/dist/api/types/DeploymentRead.d.ts +4 -4
- package/dist/api/types/DocumentIndexRead.d.ts +3 -3
- package/dist/api/types/DocumentRead.d.ts +2 -2
- package/dist/api/types/LogicalOperator.d.ts +98 -0
- package/dist/api/types/LogicalOperator.js +26 -0
- package/dist/api/types/MetadataFilterConfigRequest.d.ts +1 -4
- package/dist/api/types/MetadataFilterRuleRequest.d.ts +1 -4
- package/dist/api/types/ModelVersionRead.d.ts +3 -3
- package/dist/api/types/PromptTemplateBlockPropertiesRequest.d.ts +0 -2
- package/dist/api/types/PromptTemplateBlockRequest.d.ts +0 -1
- package/dist/api/types/RegisteredPromptInputVariableRequest.d.ts +0 -2
- package/dist/api/types/ScenarioInputRequest.d.ts +0 -1
- package/dist/api/types/SearchResultDocument.d.ts +1 -1
- package/dist/api/types/SlimDocument.d.ts +2 -2
- package/dist/api/types/SubmitCompletionActualRequest.d.ts +1 -1
- package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
- package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/api/types/WorkflowNodeResultEvent.d.ts +1 -1
- package/dist/api/types/WorkflowRequestChatHistoryInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowRequestJsonInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowRequestStringInputRequest.d.ts +1 -1
- package/dist/api/types/WorkflowResultEvent.d.ts +1 -1
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/DeploymentRead.js +2 -2
- package/dist/serialization/types/DocumentIndexRead.js +1 -1
- package/dist/serialization/types/DocumentRead.js +1 -1
- package/dist/serialization/types/LogicalOperator.d.ts +10 -0
- package/dist/serialization/types/LogicalOperator.js +50 -0
- package/dist/serialization/types/MetadataFilterConfigRequest.d.ts +1 -1
- package/dist/serialization/types/MetadataFilterConfigRequest.js +1 -1
- package/dist/serialization/types/MetadataFilterRuleRequest.d.ts +1 -1
- package/dist/serialization/types/MetadataFilterRuleRequest.js +1 -1
- package/dist/serialization/types/ModelVersionRead.js +1 -1
- package/dist/serialization/types/SlimDocument.js +1 -1
- package/dist/serialization/types/SubmitCompletionActualRequest.js +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/dist/serialization/types/WorkflowNodeResultEvent.js +1 -1
- package/dist/serialization/types/WorkflowResultEvent.js +1 -1
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/package.json +1 -1
- package/serialization/types/DeploymentRead.js +2 -2
- package/serialization/types/DocumentIndexRead.js +1 -1
- package/serialization/types/DocumentRead.js +1 -1
- package/serialization/types/LogicalOperator.d.ts +10 -0
- package/serialization/types/LogicalOperator.js +50 -0
- package/serialization/types/MetadataFilterConfigRequest.d.ts +1 -1
- package/serialization/types/MetadataFilterConfigRequest.js +1 -1
- package/serialization/types/MetadataFilterRuleRequest.d.ts +1 -1
- package/serialization/types/MetadataFilterRuleRequest.js +1 -1
- package/serialization/types/ModelVersionRead.js +1 -1
- package/serialization/types/SlimDocument.js +1 -1
- package/serialization/types/SubmitCompletionActualRequest.js +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
- package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
- package/serialization/types/WorkflowNodeResultEvent.js +1 -1
- package/serialization/types/WorkflowResultEvent.js +1 -1
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface DeploymentRead {
|
|
6
6
|
id: string;
|
|
7
|
-
created:
|
|
8
|
-
/** A human-readable label for the deployment
|
|
7
|
+
created: Date;
|
|
8
|
+
/** A human-readable label for the deployment */
|
|
9
9
|
label: string;
|
|
10
|
-
/** A name that uniquely identifies this deployment within its workspace
|
|
10
|
+
/** A name that uniquely identifies this deployment within its workspace */
|
|
11
11
|
name: string;
|
|
12
12
|
/**
|
|
13
13
|
* The current status of the deployment
|
|
@@ -27,6 +27,6 @@ export interface DeploymentRead {
|
|
|
27
27
|
environment?: Vellum.EnvironmentEnum;
|
|
28
28
|
modelType: Vellum.ModelTypeDeprecated;
|
|
29
29
|
activeModelVersionIds: string[];
|
|
30
|
-
lastDeployedOn:
|
|
30
|
+
lastDeployedOn: Date;
|
|
31
31
|
inputVariables: Vellum.VellumVariable[];
|
|
32
32
|
}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface DocumentIndexRead {
|
|
6
6
|
id: string;
|
|
7
|
-
created:
|
|
8
|
-
/** A human-readable label for the document index
|
|
7
|
+
created: Date;
|
|
8
|
+
/** A human-readable label for the document index */
|
|
9
9
|
label: string;
|
|
10
|
-
/** A name that uniquely identifies this index within its workspace
|
|
10
|
+
/** A name that uniquely identifies this index within its workspace */
|
|
11
11
|
name: string;
|
|
12
12
|
/**
|
|
13
13
|
* The current status of the document index
|
|
@@ -6,8 +6,8 @@ export interface DocumentRead {
|
|
|
6
6
|
id: string;
|
|
7
7
|
/** The unique id of this document as it exists in the user's system. */
|
|
8
8
|
externalId?: string;
|
|
9
|
-
lastUploadedAt:
|
|
10
|
-
/** A human-readable label for the document. Defaults to the originally uploaded file's file name.
|
|
9
|
+
lastUploadedAt: Date;
|
|
10
|
+
/** A human-readable label for the document. Defaults to the originally uploaded file's file name. */
|
|
11
11
|
label: string;
|
|
12
12
|
/**
|
|
13
13
|
* The current processing state of the document
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* * `=` - EQUALS
|
|
6
|
+
* * `!=` - DOES_NOT_EQUAL
|
|
7
|
+
* * `<` - LESS_THAN
|
|
8
|
+
* * `>` - GREATER_THAN
|
|
9
|
+
* * `<=` - LESS_THAN_OR_EQUAL_TO
|
|
10
|
+
* * `>=` - GREATER_THAN_OR_EQUAL_TO
|
|
11
|
+
* * `contains` - CONTAINS
|
|
12
|
+
* * `beginsWith` - BEGINS_WITH
|
|
13
|
+
* * `endsWith` - ENDS_WITH
|
|
14
|
+
* * `doesNotContain` - DOES_NOT_CONTAIN
|
|
15
|
+
* * `doesNotBeginWith` - DOES_NOT_BEGIN_WITH
|
|
16
|
+
* * `doesNotEndWith` - DOES_NOT_END_WITH
|
|
17
|
+
* * `null` - NULL
|
|
18
|
+
* * `notNull` - NOT_NULL
|
|
19
|
+
* * `in` - IN
|
|
20
|
+
* * `notIn` - NOT_IN
|
|
21
|
+
* * `between` - BETWEEN
|
|
22
|
+
* * `notBetween` - NOT_BETWEEN
|
|
23
|
+
*/
|
|
24
|
+
export declare type LogicalOperator =
|
|
25
|
+
/**
|
|
26
|
+
* Equals */
|
|
27
|
+
"="
|
|
28
|
+
/**
|
|
29
|
+
* Does not equal */
|
|
30
|
+
| "!="
|
|
31
|
+
/**
|
|
32
|
+
* Less than */
|
|
33
|
+
| "<"
|
|
34
|
+
/**
|
|
35
|
+
* Greater than */
|
|
36
|
+
| ">"
|
|
37
|
+
/**
|
|
38
|
+
* Less than or equal to */
|
|
39
|
+
| "<="
|
|
40
|
+
/**
|
|
41
|
+
* Greater than or equal to */
|
|
42
|
+
| ">="
|
|
43
|
+
/**
|
|
44
|
+
* Contains */
|
|
45
|
+
| "contains"
|
|
46
|
+
/**
|
|
47
|
+
* Begins with */
|
|
48
|
+
| "beginsWith"
|
|
49
|
+
/**
|
|
50
|
+
* Ends with */
|
|
51
|
+
| "endsWith"
|
|
52
|
+
/**
|
|
53
|
+
* Does not contain */
|
|
54
|
+
| "doesNotContain"
|
|
55
|
+
/**
|
|
56
|
+
* Does not begin with */
|
|
57
|
+
| "doesNotBeginWith"
|
|
58
|
+
/**
|
|
59
|
+
* Does not end with */
|
|
60
|
+
| "doesNotEndWith"
|
|
61
|
+
/**
|
|
62
|
+
* Null */
|
|
63
|
+
| "null"
|
|
64
|
+
/**
|
|
65
|
+
* Not null */
|
|
66
|
+
| "notNull"
|
|
67
|
+
/**
|
|
68
|
+
* In */
|
|
69
|
+
| "in"
|
|
70
|
+
/**
|
|
71
|
+
* Not in */
|
|
72
|
+
| "notIn"
|
|
73
|
+
/**
|
|
74
|
+
* Between */
|
|
75
|
+
| "between"
|
|
76
|
+
/**
|
|
77
|
+
* Not between */
|
|
78
|
+
| "notBetween";
|
|
79
|
+
export declare const LogicalOperator: {
|
|
80
|
+
readonly Equals: "=";
|
|
81
|
+
readonly DoesNotEqual: "!=";
|
|
82
|
+
readonly LessThan: "<";
|
|
83
|
+
readonly GreaterThan: ">";
|
|
84
|
+
readonly LessThanOrEqualTo: "<=";
|
|
85
|
+
readonly GreaterThanOrEqualTo: ">=";
|
|
86
|
+
readonly Contains: "contains";
|
|
87
|
+
readonly BeginsWith: "beginsWith";
|
|
88
|
+
readonly EndsWith: "endsWith";
|
|
89
|
+
readonly DoesNotContain: "doesNotContain";
|
|
90
|
+
readonly DoesNotBeginWith: "doesNotBeginWith";
|
|
91
|
+
readonly DoesNotEndWith: "doesNotEndWith";
|
|
92
|
+
readonly Null: "null";
|
|
93
|
+
readonly NotNull: "notNull";
|
|
94
|
+
readonly In: "in";
|
|
95
|
+
readonly NotIn: "notIn";
|
|
96
|
+
readonly Between: "between";
|
|
97
|
+
readonly NotBetween: "notBetween";
|
|
98
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
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.LogicalOperator = void 0;
|
|
7
|
+
exports.LogicalOperator = {
|
|
8
|
+
Equals: "=",
|
|
9
|
+
DoesNotEqual: "!=",
|
|
10
|
+
LessThan: "<",
|
|
11
|
+
GreaterThan: ">",
|
|
12
|
+
LessThanOrEqualTo: "<=",
|
|
13
|
+
GreaterThanOrEqualTo: ">=",
|
|
14
|
+
Contains: "contains",
|
|
15
|
+
BeginsWith: "beginsWith",
|
|
16
|
+
EndsWith: "endsWith",
|
|
17
|
+
DoesNotContain: "doesNotContain",
|
|
18
|
+
DoesNotBeginWith: "doesNotBeginWith",
|
|
19
|
+
DoesNotEndWith: "doesNotEndWith",
|
|
20
|
+
Null: "null",
|
|
21
|
+
NotNull: "notNull",
|
|
22
|
+
In: "in",
|
|
23
|
+
NotIn: "notIn",
|
|
24
|
+
Between: "between",
|
|
25
|
+
NotBetween: "notBetween",
|
|
26
|
+
};
|
|
@@ -6,10 +6,7 @@ export interface MetadataFilterConfigRequest {
|
|
|
6
6
|
combinator?: Vellum.MetadataFilterRuleCombinator;
|
|
7
7
|
negated?: boolean;
|
|
8
8
|
rules?: Vellum.MetadataFilterRuleRequest[];
|
|
9
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
10
9
|
field?: string;
|
|
11
|
-
|
|
12
|
-
operator?: string;
|
|
13
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
10
|
+
operator?: Vellum.LogicalOperator;
|
|
14
11
|
value?: string;
|
|
15
12
|
}
|
|
@@ -6,10 +6,7 @@ export interface MetadataFilterRuleRequest {
|
|
|
6
6
|
combinator?: Vellum.MetadataFilterRuleCombinator;
|
|
7
7
|
negated?: boolean;
|
|
8
8
|
rules?: Vellum.MetadataFilterRuleRequest[];
|
|
9
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
10
9
|
field?: string;
|
|
11
|
-
|
|
12
|
-
operator?: string;
|
|
13
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
10
|
+
operator?: Vellum.LogicalOperator;
|
|
14
11
|
value?: string;
|
|
15
12
|
}
|
|
@@ -6,8 +6,8 @@ export interface ModelVersionRead {
|
|
|
6
6
|
/** Vellum-generated ID that uniquely identifies this model version. */
|
|
7
7
|
id: string;
|
|
8
8
|
/** Timestamp of when this model version was created. */
|
|
9
|
-
created:
|
|
10
|
-
/** Human-friendly name for this model version.
|
|
9
|
+
created: Date;
|
|
10
|
+
/** Human-friendly name for this model version. */
|
|
11
11
|
label: string;
|
|
12
12
|
modelType: Vellum.ModelTypeDeprecated;
|
|
13
13
|
/**
|
|
@@ -23,7 +23,7 @@ export interface ModelVersionRead {
|
|
|
23
23
|
* * `PYQ` - Pyq
|
|
24
24
|
*/
|
|
25
25
|
provider: Vellum.ProviderEnum;
|
|
26
|
-
/** The unique id of this model version as it exists in the above provider's system.
|
|
26
|
+
/** The unique id of this model version as it exists in the above provider's system. */
|
|
27
27
|
externalId: string;
|
|
28
28
|
/** Configuration used to build this model version. */
|
|
29
29
|
buildConfig: Vellum.ModelVersionBuildConfig;
|
|
@@ -7,9 +7,7 @@ export interface PromptTemplateBlockPropertiesRequest {
|
|
|
7
7
|
chatMessageUnterminated?: boolean;
|
|
8
8
|
template?: string;
|
|
9
9
|
templateType?: Vellum.ContentType;
|
|
10
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
11
10
|
functionName?: string;
|
|
12
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
13
11
|
functionDescription?: string;
|
|
14
12
|
functionParameters?: Record<string, unknown>;
|
|
15
13
|
functionForced?: boolean;
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface RegisteredPromptInputVariableRequest {
|
|
6
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
7
6
|
key: string;
|
|
8
|
-
/** <span style="white-space: nowrap">`non-empty`</span> */
|
|
9
7
|
id?: string;
|
|
10
8
|
type?: Vellum.VellumVariableType;
|
|
11
9
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export interface SearchResultDocument {
|
|
5
5
|
/** The ID of the document. */
|
|
6
6
|
id: string;
|
|
7
|
-
/** The human-readable name for the document.
|
|
7
|
+
/** The human-readable name for the document. */
|
|
8
8
|
label: string;
|
|
9
9
|
/** The unique ID of the document as represented in an external system and specified when it was originally uploaded. */
|
|
10
10
|
externalId?: string;
|
|
@@ -8,8 +8,8 @@ export interface SlimDocument {
|
|
|
8
8
|
/** The external ID that was originally provided when uploading the document. */
|
|
9
9
|
externalId?: string;
|
|
10
10
|
/** A timestamp representing when this document was most recently uploaded. */
|
|
11
|
-
lastUploadedAt:
|
|
12
|
-
/** Human-friendly name for this document.
|
|
11
|
+
lastUploadedAt: Date;
|
|
12
|
+
/** Human-friendly name for this document. */
|
|
13
13
|
label: string;
|
|
14
14
|
/**
|
|
15
15
|
* An enum value representing where this document is along its processing lifecycle. Note that this is different than its indexing lifecycle.
|
|
@@ -11,5 +11,5 @@ export interface SubmitCompletionActualRequest {
|
|
|
11
11
|
/** A number between 0 and 1 representing the quality of the completion. 0 is the worst, 1 is the best. */
|
|
12
12
|
quality?: number;
|
|
13
13
|
/** Optionally provide the timestamp representing when this feedback was collected. Used for reporting purposes. */
|
|
14
|
-
timestamp?:
|
|
14
|
+
timestamp?: Date;
|
|
15
15
|
}
|
|
@@ -4,14 +4,16 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* * `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
|
|
6
6
|
* * `NODE_EXECUTION_COUNT_LIMIT_REACHED` - NODE_EXECUTION_COUNT_LIMIT_REACHED
|
|
7
|
+
* * `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
|
|
7
8
|
* * `NODE_EXECUTION` - NODE_EXECUTION
|
|
8
9
|
* * `LLM_PROVIDER` - LLM_PROVIDER
|
|
9
10
|
* * `INVALID_TEMPLATE` - INVALID_TEMPLATE
|
|
10
11
|
*/
|
|
11
|
-
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
12
|
+
export declare type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
12
13
|
export declare const WorkflowExecutionEventErrorCode: {
|
|
13
14
|
readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
|
|
14
15
|
readonly NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED";
|
|
16
|
+
readonly InternalServerError: "INTERNAL_SERVER_ERROR";
|
|
15
17
|
readonly NodeExecution: "NODE_EXECUTION";
|
|
16
18
|
readonly LlmProvider: "LLM_PROVIDER";
|
|
17
19
|
readonly InvalidTemplate: "INVALID_TEMPLATE";
|
|
@@ -7,6 +7,7 @@ exports.WorkflowExecutionEventErrorCode = void 0;
|
|
|
7
7
|
exports.WorkflowExecutionEventErrorCode = {
|
|
8
8
|
WorkflowInitialization: "WORKFLOW_INITIALIZATION",
|
|
9
9
|
NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED",
|
|
10
|
+
InternalServerError: "INTERNAL_SERVER_ERROR",
|
|
10
11
|
NodeExecution: "NODE_EXECUTION",
|
|
11
12
|
LlmProvider: "LLM_PROVIDER",
|
|
12
13
|
InvalidTemplate: "INVALID_TEMPLATE",
|
|
@@ -7,7 +7,7 @@ export interface WorkflowNodeResultEvent {
|
|
|
7
7
|
nodeId: string;
|
|
8
8
|
nodeResultId: string;
|
|
9
9
|
state: Vellum.WorkflowNodeResultEventState;
|
|
10
|
-
ts?:
|
|
10
|
+
ts?: Date;
|
|
11
11
|
data?: Vellum.WorkflowNodeResultData;
|
|
12
12
|
error?: Vellum.WorkflowEventError;
|
|
13
13
|
inputValues?: Vellum.NodeInputVariableCompiledValue[];
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Vellum from "..";
|
|
5
5
|
export interface WorkflowRequestChatHistoryInputRequest {
|
|
6
|
-
/** The variable's name, as defined in the Workflow.
|
|
6
|
+
/** The variable's name, as defined in the Workflow. */
|
|
7
7
|
name: string;
|
|
8
8
|
value: Vellum.ChatMessageRequest[];
|
|
9
9
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface WorkflowRequestJsonInputRequest {
|
|
5
|
-
/** The variable's name, as defined in the Workflow.
|
|
5
|
+
/** The variable's name, as defined in the Workflow. */
|
|
6
6
|
name: string;
|
|
7
7
|
value: Record<string, unknown>;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface WorkflowRequestStringInputRequest {
|
|
5
|
-
/** The variable's name, as defined in the Workflow.
|
|
5
|
+
/** The variable's name, as defined in the Workflow. */
|
|
6
6
|
name: string;
|
|
7
7
|
value: string;
|
|
8
8
|
}
|
|
@@ -29,6 +29,7 @@ export * from "./GenerateStreamResponse";
|
|
|
29
29
|
export * from "./GenerateStreamResult";
|
|
30
30
|
export * from "./GenerateStreamResultData";
|
|
31
31
|
export * from "./IndexingStateEnum";
|
|
32
|
+
export * from "./LogicalOperator";
|
|
32
33
|
export * from "./LogprobsEnum";
|
|
33
34
|
export * from "./MetadataFilterConfigRequest";
|
|
34
35
|
export * from "./MetadataFilterRuleCombinator";
|
package/dist/api/types/index.js
CHANGED
|
@@ -45,6 +45,7 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
45
45
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
46
46
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
47
47
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
48
|
+
__exportStar(require("./LogicalOperator"), exports);
|
|
48
49
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
49
50
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
50
51
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|
|
@@ -30,13 +30,13 @@ exports.DeploymentRead = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.DeploymentRead = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
|
-
created: core.serialization.
|
|
33
|
+
created: core.serialization.date(),
|
|
34
34
|
label: core.serialization.string(),
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DeploymentStatus).optional(),
|
|
37
37
|
environment: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).EnvironmentEnum).optional(),
|
|
38
38
|
modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeDeprecated)),
|
|
39
39
|
activeModelVersionIds: core.serialization.property("active_model_version_ids", core.serialization.list(core.serialization.string())),
|
|
40
|
-
lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.
|
|
40
|
+
lastDeployedOn: core.serialization.property("last_deployed_on", core.serialization.date()),
|
|
41
41
|
inputVariables: core.serialization.property("input_variables", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).VellumVariable))),
|
|
42
42
|
});
|
|
@@ -30,7 +30,7 @@ exports.DocumentIndexRead = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.DocumentIndexRead = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
|
-
created: core.serialization.
|
|
33
|
+
created: core.serialization.date(),
|
|
34
34
|
label: core.serialization.string(),
|
|
35
35
|
name: core.serialization.string(),
|
|
36
36
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentIndexStatus).optional(),
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.DocumentRead = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
|
-
lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.
|
|
34
|
+
lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.date()),
|
|
35
35
|
label: core.serialization.string(),
|
|
36
36
|
processingState: core.serialization.property("processing_state", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProcessingStateEnum).optional()),
|
|
37
37
|
status: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).DocumentStatus).optional(),
|
|
@@ -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 LogicalOperator: core.serialization.Schema<serializers.LogicalOperator.Raw, Vellum.LogicalOperator>;
|
|
8
|
+
export declare namespace LogicalOperator {
|
|
9
|
+
type Raw = "=" | "!=" | "<" | ">" | "<=" | ">=" | "contains" | "beginsWith" | "endsWith" | "doesNotContain" | "doesNotBeginWith" | "doesNotEndWith" | "null" | "notNull" | "in" | "notIn" | "between" | "notBetween";
|
|
10
|
+
}
|
|
@@ -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 (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.LogicalOperator = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.LogicalOperator = core.serialization.enum_([
|
|
32
|
+
"=",
|
|
33
|
+
"!=",
|
|
34
|
+
"<",
|
|
35
|
+
">",
|
|
36
|
+
"<=",
|
|
37
|
+
">=",
|
|
38
|
+
"contains",
|
|
39
|
+
"beginsWith",
|
|
40
|
+
"endsWith",
|
|
41
|
+
"doesNotContain",
|
|
42
|
+
"doesNotBeginWith",
|
|
43
|
+
"doesNotEndWith",
|
|
44
|
+
"null",
|
|
45
|
+
"notNull",
|
|
46
|
+
"in",
|
|
47
|
+
"notIn",
|
|
48
|
+
"between",
|
|
49
|
+
"notBetween",
|
|
50
|
+
]);
|
|
@@ -11,7 +11,7 @@ export declare namespace MetadataFilterConfigRequest {
|
|
|
11
11
|
negated?: boolean | null;
|
|
12
12
|
rules?: serializers.MetadataFilterRuleRequest.Raw[] | null;
|
|
13
13
|
field?: string | null;
|
|
14
|
-
operator?:
|
|
14
|
+
operator?: serializers.LogicalOperator.Raw | null;
|
|
15
15
|
value?: string | null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -35,6 +35,6 @@ exports.MetadataFilterConfigRequest = core.serialization.object({
|
|
|
35
35
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest))
|
|
36
36
|
.optional(),
|
|
37
37
|
field: core.serialization.string().optional(),
|
|
38
|
-
operator: core.serialization.
|
|
38
|
+
operator: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).LogicalOperator).optional(),
|
|
39
39
|
value: core.serialization.string().optional(),
|
|
40
40
|
});
|
|
@@ -11,7 +11,7 @@ export declare namespace MetadataFilterRuleRequest {
|
|
|
11
11
|
negated?: boolean | null;
|
|
12
12
|
rules?: serializers.MetadataFilterRuleRequest.Raw[] | null;
|
|
13
13
|
field?: string | null;
|
|
14
|
-
operator?:
|
|
14
|
+
operator?: serializers.LogicalOperator.Raw | null;
|
|
15
15
|
value?: string | null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -35,6 +35,6 @@ exports.MetadataFilterRuleRequest = core.serialization.object({
|
|
|
35
35
|
.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).MetadataFilterRuleRequest))
|
|
36
36
|
.optional(),
|
|
37
37
|
field: core.serialization.string().optional(),
|
|
38
|
-
operator: core.serialization.
|
|
38
|
+
operator: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).LogicalOperator).optional(),
|
|
39
39
|
value: core.serialization.string().optional(),
|
|
40
40
|
});
|
|
@@ -30,7 +30,7 @@ exports.ModelVersionRead = void 0;
|
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.ModelVersionRead = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
|
-
created: core.serialization.
|
|
33
|
+
created: core.serialization.date(),
|
|
34
34
|
label: core.serialization.string(),
|
|
35
35
|
modelType: core.serialization.property("model_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ModelTypeDeprecated)),
|
|
36
36
|
provider: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProviderEnum),
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.SlimDocument = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
|
-
lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.
|
|
34
|
+
lastUploadedAt: core.serialization.property("last_uploaded_at", core.serialization.date()),
|
|
35
35
|
label: core.serialization.string(),
|
|
36
36
|
processingState: core.serialization.property("processing_state", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProcessingStateEnum).optional()),
|
|
37
37
|
processingFailureReason: core.serialization.property("processing_failure_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).ProcessingFailureReasonEnum).optional()),
|
|
@@ -33,5 +33,5 @@ exports.SubmitCompletionActualRequest = core.serialization.object({
|
|
|
33
33
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
34
|
text: core.serialization.string().optional(),
|
|
35
35
|
quality: core.serialization.number().optional(),
|
|
36
|
-
timestamp: core.serialization.
|
|
36
|
+
timestamp: core.serialization.date().optional(),
|
|
37
37
|
});
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const WorkflowExecutionEventErrorCode: core.serialization.Schema<serializers.WorkflowExecutionEventErrorCode.Raw, Vellum.WorkflowExecutionEventErrorCode>;
|
|
8
8
|
export declare namespace WorkflowExecutionEventErrorCode {
|
|
9
|
-
type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
9
|
+
type Raw = "WORKFLOW_INITIALIZATION" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE";
|
|
10
10
|
}
|
|
@@ -31,6 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.WorkflowExecutionEventErrorCode = core.serialization.enum_([
|
|
32
32
|
"WORKFLOW_INITIALIZATION",
|
|
33
33
|
"NODE_EXECUTION_COUNT_LIMIT_REACHED",
|
|
34
|
+
"INTERNAL_SERVER_ERROR",
|
|
34
35
|
"NODE_EXECUTION",
|
|
35
36
|
"LLM_PROVIDER",
|
|
36
37
|
"INVALID_TEMPLATE",
|
|
@@ -33,7 +33,7 @@ exports.WorkflowNodeResultEvent = core.serialization.object({
|
|
|
33
33
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
34
34
|
nodeResultId: core.serialization.property("node_result_id", core.serialization.string()),
|
|
35
35
|
state: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState),
|
|
36
|
-
ts: core.serialization.
|
|
36
|
+
ts: core.serialization.date().optional(),
|
|
37
37
|
data: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultData).optional(),
|
|
38
38
|
error: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError).optional(),
|
|
39
39
|
inputValues: core.serialization.property("input_values", core.serialization
|
|
@@ -31,7 +31,7 @@ const core = __importStar(require("../../core"));
|
|
|
31
31
|
exports.WorkflowResultEvent = core.serialization.object({
|
|
32
32
|
id: core.serialization.string(),
|
|
33
33
|
state: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEventState),
|
|
34
|
-
ts: core.serialization.
|
|
34
|
+
ts: core.serialization.date(),
|
|
35
35
|
output: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEventOutputData).optional(),
|
|
36
36
|
error: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowEventError).optional(),
|
|
37
37
|
});
|
|
@@ -29,6 +29,7 @@ export * from "./GenerateStreamResponse";
|
|
|
29
29
|
export * from "./GenerateStreamResult";
|
|
30
30
|
export * from "./GenerateStreamResultData";
|
|
31
31
|
export * from "./IndexingStateEnum";
|
|
32
|
+
export * from "./LogicalOperator";
|
|
32
33
|
export * from "./LogprobsEnum";
|
|
33
34
|
export * from "./MetadataFilterConfigRequest";
|
|
34
35
|
export * from "./MetadataFilterRuleCombinator";
|
|
@@ -45,6 +45,7 @@ __exportStar(require("./GenerateStreamResponse"), exports);
|
|
|
45
45
|
__exportStar(require("./GenerateStreamResult"), exports);
|
|
46
46
|
__exportStar(require("./GenerateStreamResultData"), exports);
|
|
47
47
|
__exportStar(require("./IndexingStateEnum"), exports);
|
|
48
|
+
__exportStar(require("./LogicalOperator"), exports);
|
|
48
49
|
__exportStar(require("./LogprobsEnum"), exports);
|
|
49
50
|
__exportStar(require("./MetadataFilterConfigRequest"), exports);
|
|
50
51
|
__exportStar(require("./MetadataFilterRuleCombinator"), exports);
|