vellum-ai 0.0.27 → 0.0.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.js +1 -1
- package/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +2 -0
- package/api/resources/documents/client/Client.d.ts +0 -11
- package/api/resources/documents/client/Client.js +0 -58
- package/api/resources/documents/client/requests/index.d.ts +0 -1
- package/api/types/ProcessingFailureReasonEnum.d.ts +9 -1
- package/api/types/ProcessingFailureReasonEnum.js +5 -0
- package/api/types/SlimDocument.d.ts +1 -0
- package/api/types/WorkflowExecutionEventType.d.ts +12 -0
- package/api/types/{SetDocumentMetadataResponse.js → WorkflowExecutionEventType.js} +5 -0
- package/api/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
- package/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
- package/api/types/index.d.ts +1 -2
- package/api/types/index.js +1 -2
- package/dist/Client.js +1 -1
- package/dist/api/client/requests/ExecuteWorkflowStreamRequest.d.ts +2 -0
- package/dist/api/resources/documents/client/Client.d.ts +0 -11
- package/dist/api/resources/documents/client/Client.js +0 -58
- package/dist/api/resources/documents/client/requests/index.d.ts +0 -1
- package/dist/api/types/ProcessingFailureReasonEnum.d.ts +9 -1
- package/dist/api/types/ProcessingFailureReasonEnum.js +5 -0
- package/dist/api/types/SlimDocument.d.ts +1 -0
- package/dist/api/types/WorkflowExecutionEventType.d.ts +12 -0
- package/{api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js → dist/api/types/WorkflowExecutionEventType.js} +5 -0
- package/dist/api/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
- package/dist/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
- package/dist/api/types/index.d.ts +1 -2
- package/dist/api/types/index.js +1 -2
- package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
- package/dist/serialization/client/requests/ExecuteWorkflowStreamRequest.js +3 -0
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/types/ProcessingFailureReasonEnum.d.ts +1 -1
- package/dist/serialization/types/ProcessingFailureReasonEnum.js +1 -1
- package/dist/serialization/types/WorkflowExecutionEventType.d.ts +10 -0
- package/{serialization/types/SetDocumentMetadataErrorResponse.js → dist/serialization/types/WorkflowExecutionEventType.js} +2 -4
- package/dist/serialization/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
- package/dist/serialization/types/WorkflowExecutionNodeResultEvent.js +2 -1
- package/dist/serialization/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
- package/dist/serialization/types/WorkflowExecutionWorkflowResultEvent.js +2 -1
- package/dist/serialization/types/index.d.ts +1 -2
- package/dist/serialization/types/index.js +1 -2
- package/package.json +1 -1
- package/serialization/client/requests/ExecuteWorkflowStreamRequest.d.ts +1 -0
- package/serialization/client/requests/ExecuteWorkflowStreamRequest.js +3 -0
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/types/ProcessingFailureReasonEnum.d.ts +1 -1
- package/serialization/types/ProcessingFailureReasonEnum.js +1 -1
- package/serialization/types/WorkflowExecutionEventType.d.ts +10 -0
- package/{dist/serialization/types/SetDocumentMetadataErrorResponse.js → serialization/types/WorkflowExecutionEventType.js} +2 -4
- package/serialization/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
- package/serialization/types/WorkflowExecutionNodeResultEvent.js +2 -1
- package/serialization/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
- package/serialization/types/WorkflowExecutionWorkflowResultEvent.js +2 -1
- package/serialization/types/index.d.ts +1 -2
- package/serialization/types/index.js +1 -2
- package/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -11
- package/api/types/SetDocumentMetadataErrorResponse.d.ts +0 -6
- package/api/types/SetDocumentMetadataErrorResponse.js +0 -5
- package/api/types/SetDocumentMetadataResponse.d.ts +0 -7
- package/dist/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -11
- package/dist/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +0 -5
- package/dist/api/types/SetDocumentMetadataErrorResponse.d.ts +0 -6
- package/dist/api/types/SetDocumentMetadataErrorResponse.js +0 -5
- package/dist/api/types/SetDocumentMetadataResponse.d.ts +0 -7
- package/dist/api/types/SetDocumentMetadataResponse.js +0 -5
- package/dist/serialization/resources/documents/client/index.d.ts +0 -1
- package/dist/serialization/resources/documents/client/index.js +0 -17
- package/dist/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -14
- package/dist/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +0 -35
- package/dist/serialization/resources/documents/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/documents/client/requests/index.js +0 -5
- package/dist/serialization/resources/documents/index.d.ts +0 -1
- package/dist/serialization/resources/documents/index.js +0 -17
- package/dist/serialization/types/SetDocumentMetadataErrorResponse.d.ts +0 -12
- package/dist/serialization/types/SetDocumentMetadataResponse.d.ts +0 -12
- package/dist/serialization/types/SetDocumentMetadataResponse.js +0 -33
- package/serialization/resources/documents/client/index.d.ts +0 -1
- package/serialization/resources/documents/client/index.js +0 -17
- package/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -14
- package/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +0 -35
- package/serialization/resources/documents/client/requests/index.d.ts +0 -1
- package/serialization/resources/documents/client/requests/index.js +0 -5
- package/serialization/resources/documents/index.d.ts +0 -1
- package/serialization/resources/documents/index.js +0 -17
- package/serialization/types/SetDocumentMetadataErrorResponse.d.ts +0 -12
- package/serialization/types/SetDocumentMetadataResponse.d.ts +0 -12
- package/serialization/types/SetDocumentMetadataResponse.js +0 -33
package/Client.js
CHANGED
|
@@ -197,7 +197,7 @@ class VellumClient {
|
|
|
197
197
|
*/
|
|
198
198
|
async search(request) {
|
|
199
199
|
const _response = await core.fetcher({
|
|
200
|
-
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).
|
|
200
|
+
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/search"),
|
|
201
201
|
method: "POST",
|
|
202
202
|
headers: {
|
|
203
203
|
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
@@ -12,4 +12,6 @@ export interface ExecuteWorkflowStreamRequest {
|
|
|
12
12
|
inputs: Vellum.WorkflowRequestInputRequest[];
|
|
13
13
|
/** Optionally include a unique identifier for tracking purposes. */
|
|
14
14
|
externalId?: string;
|
|
15
|
+
/** Optionally specify which events you want to receive. Defaults to only WORKFLOW events. Note that the schema of non-WORKFLOW events is unstable and should be used with caution. */
|
|
16
|
+
eventTypes?: Vellum.WorkflowExecutionEventType[];
|
|
15
17
|
}
|
|
@@ -23,17 +23,6 @@ export declare class Documents {
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
list(request?: Vellum.DocumentsListRequest): Promise<Vellum.PaginatedSlimDocumentList>;
|
|
26
|
-
/**
|
|
27
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
28
|
-
*
|
|
29
|
-
* Set the metadata for a document to be used for search filtering.
|
|
30
|
-
*
|
|
31
|
-
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
32
|
-
* @throws {Vellum.BadRequestError}
|
|
33
|
-
* @throws {Vellum.NotFoundError}
|
|
34
|
-
* @throws {Vellum.InternalServerError}
|
|
35
|
-
*/
|
|
36
|
-
setDocumentMetadata(request: Vellum.SetDocumentMetadataRequestBodyRequest): Promise<Vellum.SetDocumentMetadataResponse>;
|
|
37
26
|
/**
|
|
38
27
|
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
39
28
|
*
|
|
@@ -101,64 +101,6 @@ class Documents {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
/**
|
|
105
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
106
|
-
*
|
|
107
|
-
* Set the metadata for a document to be used for search filtering.
|
|
108
|
-
*
|
|
109
|
-
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
110
|
-
* @throws {Vellum.BadRequestError}
|
|
111
|
-
* @throws {Vellum.NotFoundError}
|
|
112
|
-
* @throws {Vellum.InternalServerError}
|
|
113
|
-
*/
|
|
114
|
-
async setDocumentMetadata(request) {
|
|
115
|
-
const _response = await core.fetcher({
|
|
116
|
-
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/set-document-metadata"),
|
|
117
|
-
method: "POST",
|
|
118
|
-
headers: {
|
|
119
|
-
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
120
|
-
},
|
|
121
|
-
contentType: "application/json",
|
|
122
|
-
body: await serializers.SetDocumentMetadataRequestBodyRequest.jsonOrThrow(request, {
|
|
123
|
-
unrecognizedObjectKeys: "strip",
|
|
124
|
-
}),
|
|
125
|
-
});
|
|
126
|
-
if (_response.ok) {
|
|
127
|
-
return await serializers.SetDocumentMetadataResponse.parseOrThrow(_response.body, {
|
|
128
|
-
unrecognizedObjectKeys: "passthrough",
|
|
129
|
-
allowUnrecognizedUnionMembers: true,
|
|
130
|
-
allowUnrecognizedEnumValues: true,
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
if (_response.error.reason === "status-code") {
|
|
134
|
-
switch (_response.error.statusCode) {
|
|
135
|
-
case 400:
|
|
136
|
-
throw new Vellum.BadRequestError(_response.error.body);
|
|
137
|
-
case 404:
|
|
138
|
-
throw new Vellum.NotFoundError(_response.error.body);
|
|
139
|
-
case 500:
|
|
140
|
-
throw new Vellum.InternalServerError(_response.error.body);
|
|
141
|
-
default:
|
|
142
|
-
throw new errors.VellumError({
|
|
143
|
-
statusCode: _response.error.statusCode,
|
|
144
|
-
body: _response.error.body,
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
switch (_response.error.reason) {
|
|
149
|
-
case "non-json":
|
|
150
|
-
throw new errors.VellumError({
|
|
151
|
-
statusCode: _response.error.statusCode,
|
|
152
|
-
body: _response.error.rawBody,
|
|
153
|
-
});
|
|
154
|
-
case "timeout":
|
|
155
|
-
throw new errors.VellumTimeoutError();
|
|
156
|
-
case "unknown":
|
|
157
|
-
throw new errors.VellumError({
|
|
158
|
-
message: _response.error.errorMessage,
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
104
|
/**
|
|
163
105
|
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
164
106
|
*
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* * `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
6
|
+
* * `INVALID_FILE` - Invalid File
|
|
7
|
+
*/
|
|
8
|
+
export declare type ProcessingFailureReasonEnum = "EXCEEDED_CHARACTER_LIMIT" | "INVALID_FILE";
|
|
9
|
+
export declare const ProcessingFailureReasonEnum: {
|
|
10
|
+
readonly ExceededCharacterLimit: "EXCEEDED_CHARACTER_LIMIT";
|
|
11
|
+
readonly InvalidFile: "INVALID_FILE";
|
|
12
|
+
};
|
|
@@ -3,3 +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.ProcessingFailureReasonEnum = void 0;
|
|
7
|
+
exports.ProcessingFailureReasonEnum = {
|
|
8
|
+
ExceededCharacterLimit: "EXCEEDED_CHARACTER_LIMIT",
|
|
9
|
+
InvalidFile: "INVALID_FILE",
|
|
10
|
+
};
|
|
@@ -24,6 +24,7 @@ export interface SlimDocument {
|
|
|
24
24
|
* An enum value representing why the document could not be processed. Is null unless processing_state is FAILED.
|
|
25
25
|
*
|
|
26
26
|
* * `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
27
|
+
* * `INVALID_FILE` - Invalid File
|
|
27
28
|
*/
|
|
28
29
|
processingFailureReason?: Vellum.ProcessingFailureReasonEnum;
|
|
29
30
|
/**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* * `NODE` - Node
|
|
6
|
+
* * `WORKFLOW` - Workflow
|
|
7
|
+
*/
|
|
8
|
+
export declare type WorkflowExecutionEventType = "NODE" | "WORKFLOW";
|
|
9
|
+
export declare const WorkflowExecutionEventType: {
|
|
10
|
+
readonly Node: "NODE";
|
|
11
|
+
readonly Workflow: "WORKFLOW";
|
|
12
|
+
};
|
|
@@ -3,3 +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.WorkflowExecutionEventType = void 0;
|
|
7
|
+
exports.WorkflowExecutionEventType = {
|
|
8
|
+
Node: "NODE",
|
|
9
|
+
Workflow: "WORKFLOW",
|
|
10
|
+
};
|
package/api/types/index.d.ts
CHANGED
|
@@ -86,8 +86,6 @@ export * from "./SearchResponse";
|
|
|
86
86
|
export * from "./SearchResult";
|
|
87
87
|
export * from "./SearchResultMergingRequest";
|
|
88
88
|
export * from "./SearchWeightsRequest";
|
|
89
|
-
export * from "./SetDocumentMetadataErrorResponse";
|
|
90
|
-
export * from "./SetDocumentMetadataResponse";
|
|
91
89
|
export * from "./SlimDocument";
|
|
92
90
|
export * from "./SlimDocumentStatusEnum";
|
|
93
91
|
export * from "./SubmitCompletionActualRequest";
|
|
@@ -103,6 +101,7 @@ export * from "./UploadDocumentErrorResponse";
|
|
|
103
101
|
export * from "./UploadDocumentResponse";
|
|
104
102
|
export * from "./WorkflowEventError";
|
|
105
103
|
export * from "./WorkflowExecutionEventErrorCode";
|
|
104
|
+
export * from "./WorkflowExecutionEventType";
|
|
106
105
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
107
106
|
export * from "./WorkflowExecutionWorkflowResultEvent";
|
|
108
107
|
export * from "./WorkflowNodeResultData";
|
package/api/types/index.js
CHANGED
|
@@ -102,8 +102,6 @@ __exportStar(require("./SearchResponse"), exports);
|
|
|
102
102
|
__exportStar(require("./SearchResult"), exports);
|
|
103
103
|
__exportStar(require("./SearchResultMergingRequest"), exports);
|
|
104
104
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
105
|
-
__exportStar(require("./SetDocumentMetadataErrorResponse"), exports);
|
|
106
|
-
__exportStar(require("./SetDocumentMetadataResponse"), exports);
|
|
107
105
|
__exportStar(require("./SlimDocument"), exports);
|
|
108
106
|
__exportStar(require("./SlimDocumentStatusEnum"), exports);
|
|
109
107
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
@@ -119,6 +117,7 @@ __exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
|
119
117
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
120
118
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
121
119
|
__exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
120
|
+
__exportStar(require("./WorkflowExecutionEventType"), exports);
|
|
122
121
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|
|
123
122
|
__exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
|
|
124
123
|
__exportStar(require("./WorkflowNodeResultData"), exports);
|
package/dist/Client.js
CHANGED
|
@@ -197,7 +197,7 @@ class VellumClient {
|
|
|
197
197
|
*/
|
|
198
198
|
async search(request) {
|
|
199
199
|
const _response = await core.fetcher({
|
|
200
|
-
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).
|
|
200
|
+
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/search"),
|
|
201
201
|
method: "POST",
|
|
202
202
|
headers: {
|
|
203
203
|
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
@@ -12,4 +12,6 @@ export interface ExecuteWorkflowStreamRequest {
|
|
|
12
12
|
inputs: Vellum.WorkflowRequestInputRequest[];
|
|
13
13
|
/** Optionally include a unique identifier for tracking purposes. */
|
|
14
14
|
externalId?: string;
|
|
15
|
+
/** Optionally specify which events you want to receive. Defaults to only WORKFLOW events. Note that the schema of non-WORKFLOW events is unstable and should be used with caution. */
|
|
16
|
+
eventTypes?: Vellum.WorkflowExecutionEventType[];
|
|
15
17
|
}
|
|
@@ -23,17 +23,6 @@ export declare class Documents {
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
list(request?: Vellum.DocumentsListRequest): Promise<Vellum.PaginatedSlimDocumentList>;
|
|
26
|
-
/**
|
|
27
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
28
|
-
*
|
|
29
|
-
* Set the metadata for a document to be used for search filtering.
|
|
30
|
-
*
|
|
31
|
-
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
32
|
-
* @throws {Vellum.BadRequestError}
|
|
33
|
-
* @throws {Vellum.NotFoundError}
|
|
34
|
-
* @throws {Vellum.InternalServerError}
|
|
35
|
-
*/
|
|
36
|
-
setDocumentMetadata(request: Vellum.SetDocumentMetadataRequestBodyRequest): Promise<Vellum.SetDocumentMetadataResponse>;
|
|
37
26
|
/**
|
|
38
27
|
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
39
28
|
*
|
|
@@ -101,64 +101,6 @@ class Documents {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
/**
|
|
105
|
-
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
106
|
-
*
|
|
107
|
-
* Set the metadata for a document to be used for search filtering.
|
|
108
|
-
*
|
|
109
|
-
* **Note:** Uses a base url of `https://documents.vellum.ai`.
|
|
110
|
-
* @throws {Vellum.BadRequestError}
|
|
111
|
-
* @throws {Vellum.NotFoundError}
|
|
112
|
-
* @throws {Vellum.InternalServerError}
|
|
113
|
-
*/
|
|
114
|
-
async setDocumentMetadata(request) {
|
|
115
|
-
const _response = await core.fetcher({
|
|
116
|
-
url: (0, url_join_1.default)((this.options.environment ?? environments.VellumEnvironment.Production).documents, "v1/set-document-metadata"),
|
|
117
|
-
method: "POST",
|
|
118
|
-
headers: {
|
|
119
|
-
X_API_KEY: await core.Supplier.get(this.options.apiKey),
|
|
120
|
-
},
|
|
121
|
-
contentType: "application/json",
|
|
122
|
-
body: await serializers.SetDocumentMetadataRequestBodyRequest.jsonOrThrow(request, {
|
|
123
|
-
unrecognizedObjectKeys: "strip",
|
|
124
|
-
}),
|
|
125
|
-
});
|
|
126
|
-
if (_response.ok) {
|
|
127
|
-
return await serializers.SetDocumentMetadataResponse.parseOrThrow(_response.body, {
|
|
128
|
-
unrecognizedObjectKeys: "passthrough",
|
|
129
|
-
allowUnrecognizedUnionMembers: true,
|
|
130
|
-
allowUnrecognizedEnumValues: true,
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
if (_response.error.reason === "status-code") {
|
|
134
|
-
switch (_response.error.statusCode) {
|
|
135
|
-
case 400:
|
|
136
|
-
throw new Vellum.BadRequestError(_response.error.body);
|
|
137
|
-
case 404:
|
|
138
|
-
throw new Vellum.NotFoundError(_response.error.body);
|
|
139
|
-
case 500:
|
|
140
|
-
throw new Vellum.InternalServerError(_response.error.body);
|
|
141
|
-
default:
|
|
142
|
-
throw new errors.VellumError({
|
|
143
|
-
statusCode: _response.error.statusCode,
|
|
144
|
-
body: _response.error.body,
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
switch (_response.error.reason) {
|
|
149
|
-
case "non-json":
|
|
150
|
-
throw new errors.VellumError({
|
|
151
|
-
statusCode: _response.error.statusCode,
|
|
152
|
-
body: _response.error.rawBody,
|
|
153
|
-
});
|
|
154
|
-
case "timeout":
|
|
155
|
-
throw new errors.VellumTimeoutError();
|
|
156
|
-
case "unknown":
|
|
157
|
-
throw new errors.VellumError({
|
|
158
|
-
message: _response.error.errorMessage,
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
104
|
/**
|
|
163
105
|
* <strong style="background-color:#4caf50; color:white; padding:4px; border-radius:4px">Stable</strong>
|
|
164
106
|
*
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* * `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
6
|
+
* * `INVALID_FILE` - Invalid File
|
|
7
|
+
*/
|
|
8
|
+
export declare type ProcessingFailureReasonEnum = "EXCEEDED_CHARACTER_LIMIT" | "INVALID_FILE";
|
|
9
|
+
export declare const ProcessingFailureReasonEnum: {
|
|
10
|
+
readonly ExceededCharacterLimit: "EXCEEDED_CHARACTER_LIMIT";
|
|
11
|
+
readonly InvalidFile: "INVALID_FILE";
|
|
12
|
+
};
|
|
@@ -3,3 +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.ProcessingFailureReasonEnum = void 0;
|
|
7
|
+
exports.ProcessingFailureReasonEnum = {
|
|
8
|
+
ExceededCharacterLimit: "EXCEEDED_CHARACTER_LIMIT",
|
|
9
|
+
InvalidFile: "INVALID_FILE",
|
|
10
|
+
};
|
|
@@ -24,6 +24,7 @@ export interface SlimDocument {
|
|
|
24
24
|
* An enum value representing why the document could not be processed. Is null unless processing_state is FAILED.
|
|
25
25
|
*
|
|
26
26
|
* * `EXCEEDED_CHARACTER_LIMIT` - Exceeded Character Limit
|
|
27
|
+
* * `INVALID_FILE` - Invalid File
|
|
27
28
|
*/
|
|
28
29
|
processingFailureReason?: Vellum.ProcessingFailureReasonEnum;
|
|
29
30
|
/**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* * `NODE` - Node
|
|
6
|
+
* * `WORKFLOW` - Workflow
|
|
7
|
+
*/
|
|
8
|
+
export declare type WorkflowExecutionEventType = "NODE" | "WORKFLOW";
|
|
9
|
+
export declare const WorkflowExecutionEventType: {
|
|
10
|
+
readonly Node: "NODE";
|
|
11
|
+
readonly Workflow: "WORKFLOW";
|
|
12
|
+
};
|
|
@@ -3,3 +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.WorkflowExecutionEventType = void 0;
|
|
7
|
+
exports.WorkflowExecutionEventType = {
|
|
8
|
+
Node: "NODE",
|
|
9
|
+
Workflow: "WORKFLOW",
|
|
10
|
+
};
|
|
@@ -86,8 +86,6 @@ export * from "./SearchResponse";
|
|
|
86
86
|
export * from "./SearchResult";
|
|
87
87
|
export * from "./SearchResultMergingRequest";
|
|
88
88
|
export * from "./SearchWeightsRequest";
|
|
89
|
-
export * from "./SetDocumentMetadataErrorResponse";
|
|
90
|
-
export * from "./SetDocumentMetadataResponse";
|
|
91
89
|
export * from "./SlimDocument";
|
|
92
90
|
export * from "./SlimDocumentStatusEnum";
|
|
93
91
|
export * from "./SubmitCompletionActualRequest";
|
|
@@ -103,6 +101,7 @@ export * from "./UploadDocumentErrorResponse";
|
|
|
103
101
|
export * from "./UploadDocumentResponse";
|
|
104
102
|
export * from "./WorkflowEventError";
|
|
105
103
|
export * from "./WorkflowExecutionEventErrorCode";
|
|
104
|
+
export * from "./WorkflowExecutionEventType";
|
|
106
105
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
107
106
|
export * from "./WorkflowExecutionWorkflowResultEvent";
|
|
108
107
|
export * from "./WorkflowNodeResultData";
|
package/dist/api/types/index.js
CHANGED
|
@@ -102,8 +102,6 @@ __exportStar(require("./SearchResponse"), exports);
|
|
|
102
102
|
__exportStar(require("./SearchResult"), exports);
|
|
103
103
|
__exportStar(require("./SearchResultMergingRequest"), exports);
|
|
104
104
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
105
|
-
__exportStar(require("./SetDocumentMetadataErrorResponse"), exports);
|
|
106
|
-
__exportStar(require("./SetDocumentMetadataResponse"), exports);
|
|
107
105
|
__exportStar(require("./SlimDocument"), exports);
|
|
108
106
|
__exportStar(require("./SlimDocumentStatusEnum"), exports);
|
|
109
107
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
@@ -119,6 +117,7 @@ __exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
|
119
117
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
120
118
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
121
119
|
__exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
120
|
+
__exportStar(require("./WorkflowExecutionEventType"), exports);
|
|
122
121
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|
|
123
122
|
__exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
|
|
124
123
|
__exportStar(require("./WorkflowNodeResultData"), exports);
|
|
@@ -34,4 +34,7 @@ exports.ExecuteWorkflowStreamRequest = core.serialization.object({
|
|
|
34
34
|
releaseTag: core.serialization.property("release_tag", core.serialization.string().optional()),
|
|
35
35
|
inputs: core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).WorkflowRequestInputRequest)),
|
|
36
36
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
37
|
+
eventTypes: core.serialization.property("event_types", core.serialization
|
|
38
|
+
.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../..")))).WorkflowExecutionEventType))
|
|
39
|
+
.optional()),
|
|
37
40
|
});
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export * as documentIndexes from "./documentIndexes";
|
|
2
2
|
export * from "./documentIndexes/client/requests";
|
|
3
|
-
export * as documents from "./documents";
|
|
4
|
-
export * from "./documents/client/requests";
|
|
5
3
|
export * as modelVersions from "./modelVersions";
|
|
6
4
|
export * from "./modelVersions/client/requests";
|
|
7
5
|
export * as registeredPrompts from "./registeredPrompts";
|
|
@@ -26,11 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.
|
|
29
|
+
exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.documentIndexes = void 0;
|
|
30
30
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
31
31
|
__exportStar(require("./documentIndexes/client/requests"), exports);
|
|
32
|
-
exports.documents = __importStar(require("./documents"));
|
|
33
|
-
__exportStar(require("./documents/client/requests"), exports);
|
|
34
32
|
exports.modelVersions = __importStar(require("./modelVersions"));
|
|
35
33
|
__exportStar(require("./modelVersions/client/requests"), exports);
|
|
36
34
|
exports.registeredPrompts = __importStar(require("./registeredPrompts"));
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ProcessingFailureReasonEnum: core.serialization.Schema<serializers.ProcessingFailureReasonEnum.Raw, Vellum.ProcessingFailureReasonEnum>;
|
|
8
8
|
export declare namespace ProcessingFailureReasonEnum {
|
|
9
|
-
type Raw = "EXCEEDED_CHARACTER_LIMIT";
|
|
9
|
+
type Raw = "EXCEEDED_CHARACTER_LIMIT" | "INVALID_FILE";
|
|
10
10
|
}
|
|
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ProcessingFailureReasonEnum = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.ProcessingFailureReasonEnum = core.serialization.
|
|
31
|
+
exports.ProcessingFailureReasonEnum = core.serialization.enum_(["EXCEEDED_CHARACTER_LIMIT", "INVALID_FILE"]);
|
|
@@ -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 WorkflowExecutionEventType: core.serialization.Schema<serializers.WorkflowExecutionEventType.Raw, Vellum.WorkflowExecutionEventType>;
|
|
8
|
+
export declare namespace WorkflowExecutionEventType {
|
|
9
|
+
type Raw = "NODE" | "WORKFLOW";
|
|
10
|
+
}
|
|
@@ -26,8 +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.
|
|
29
|
+
exports.WorkflowExecutionEventType = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
detail: core.serialization.string(),
|
|
33
|
-
});
|
|
31
|
+
exports.WorkflowExecutionEventType = core.serialization.enum_(["NODE", "WORKFLOW"]);
|
|
@@ -7,7 +7,8 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const WorkflowExecutionNodeResultEvent: core.serialization.ObjectSchema<serializers.WorkflowExecutionNodeResultEvent.Raw, Vellum.WorkflowExecutionNodeResultEvent>;
|
|
8
8
|
export declare namespace WorkflowExecutionNodeResultEvent {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
execution_id: string;
|
|
11
|
+
run_id?: string | null;
|
|
11
12
|
external_id?: string | null;
|
|
12
13
|
data: serializers.WorkflowNodeResultEvent.Raw;
|
|
13
14
|
}
|
|
@@ -29,7 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.WorkflowExecutionNodeResultEvent = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.WorkflowExecutionNodeResultEvent = core.serialization.object({
|
|
32
|
-
|
|
32
|
+
executionId: core.serialization.property("execution_id", core.serialization.string()),
|
|
33
|
+
runId: core.serialization.property("run_id", core.serialization.string().optional()),
|
|
33
34
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
35
|
data: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowNodeResultEvent),
|
|
35
36
|
});
|
|
@@ -7,7 +7,8 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const WorkflowExecutionWorkflowResultEvent: core.serialization.ObjectSchema<serializers.WorkflowExecutionWorkflowResultEvent.Raw, Vellum.WorkflowExecutionWorkflowResultEvent>;
|
|
8
8
|
export declare namespace WorkflowExecutionWorkflowResultEvent {
|
|
9
9
|
interface Raw {
|
|
10
|
-
|
|
10
|
+
execution_id: string;
|
|
11
|
+
run_id?: string | null;
|
|
11
12
|
external_id?: string | null;
|
|
12
13
|
data: serializers.WorkflowResultEvent.Raw;
|
|
13
14
|
}
|
|
@@ -29,7 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.WorkflowExecutionWorkflowResultEvent = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.WorkflowExecutionWorkflowResultEvent = core.serialization.object({
|
|
32
|
-
|
|
32
|
+
executionId: core.serialization.property("execution_id", core.serialization.string()),
|
|
33
|
+
runId: core.serialization.property("run_id", core.serialization.string().optional()),
|
|
33
34
|
externalId: core.serialization.property("external_id", core.serialization.string().optional()),
|
|
34
35
|
data: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("..")))).WorkflowResultEvent),
|
|
35
36
|
});
|
|
@@ -86,8 +86,6 @@ export * from "./SearchResponse";
|
|
|
86
86
|
export * from "./SearchResult";
|
|
87
87
|
export * from "./SearchResultMergingRequest";
|
|
88
88
|
export * from "./SearchWeightsRequest";
|
|
89
|
-
export * from "./SetDocumentMetadataErrorResponse";
|
|
90
|
-
export * from "./SetDocumentMetadataResponse";
|
|
91
89
|
export * from "./SlimDocument";
|
|
92
90
|
export * from "./SlimDocumentStatusEnum";
|
|
93
91
|
export * from "./SubmitCompletionActualRequest";
|
|
@@ -103,6 +101,7 @@ export * from "./UploadDocumentErrorResponse";
|
|
|
103
101
|
export * from "./UploadDocumentResponse";
|
|
104
102
|
export * from "./WorkflowEventError";
|
|
105
103
|
export * from "./WorkflowExecutionEventErrorCode";
|
|
104
|
+
export * from "./WorkflowExecutionEventType";
|
|
106
105
|
export * from "./WorkflowExecutionNodeResultEvent";
|
|
107
106
|
export * from "./WorkflowExecutionWorkflowResultEvent";
|
|
108
107
|
export * from "./WorkflowNodeResultData";
|
|
@@ -102,8 +102,6 @@ __exportStar(require("./SearchResponse"), exports);
|
|
|
102
102
|
__exportStar(require("./SearchResult"), exports);
|
|
103
103
|
__exportStar(require("./SearchResultMergingRequest"), exports);
|
|
104
104
|
__exportStar(require("./SearchWeightsRequest"), exports);
|
|
105
|
-
__exportStar(require("./SetDocumentMetadataErrorResponse"), exports);
|
|
106
|
-
__exportStar(require("./SetDocumentMetadataResponse"), exports);
|
|
107
105
|
__exportStar(require("./SlimDocument"), exports);
|
|
108
106
|
__exportStar(require("./SlimDocumentStatusEnum"), exports);
|
|
109
107
|
__exportStar(require("./SubmitCompletionActualRequest"), exports);
|
|
@@ -119,6 +117,7 @@ __exportStar(require("./UploadDocumentErrorResponse"), exports);
|
|
|
119
117
|
__exportStar(require("./UploadDocumentResponse"), exports);
|
|
120
118
|
__exportStar(require("./WorkflowEventError"), exports);
|
|
121
119
|
__exportStar(require("./WorkflowExecutionEventErrorCode"), exports);
|
|
120
|
+
__exportStar(require("./WorkflowExecutionEventType"), exports);
|
|
122
121
|
__exportStar(require("./WorkflowExecutionNodeResultEvent"), exports);
|
|
123
122
|
__exportStar(require("./WorkflowExecutionWorkflowResultEvent"), exports);
|
|
124
123
|
__exportStar(require("./WorkflowNodeResultData"), exports);
|
package/package.json
CHANGED