vellum-ai 0.0.27 → 0.0.28

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 (79) hide show
  1. package/Client.js +1 -1
  2. package/api/resources/documents/client/Client.d.ts +0 -11
  3. package/api/resources/documents/client/Client.js +0 -58
  4. package/api/resources/documents/client/requests/index.d.ts +0 -1
  5. package/api/types/ProcessingFailureReasonEnum.d.ts +9 -1
  6. package/api/types/ProcessingFailureReasonEnum.js +5 -0
  7. package/api/types/SlimDocument.d.ts +1 -0
  8. package/api/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
  9. package/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
  10. package/api/types/index.d.ts +0 -2
  11. package/api/types/index.js +0 -2
  12. package/dist/Client.js +1 -1
  13. package/dist/api/resources/documents/client/Client.d.ts +0 -11
  14. package/dist/api/resources/documents/client/Client.js +0 -58
  15. package/dist/api/resources/documents/client/requests/index.d.ts +0 -1
  16. package/dist/api/types/ProcessingFailureReasonEnum.d.ts +9 -1
  17. package/dist/api/types/ProcessingFailureReasonEnum.js +5 -0
  18. package/dist/api/types/SlimDocument.d.ts +1 -0
  19. package/dist/api/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
  20. package/dist/api/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
  21. package/dist/api/types/index.d.ts +0 -2
  22. package/dist/api/types/index.js +0 -2
  23. package/dist/serialization/resources/index.d.ts +0 -2
  24. package/dist/serialization/resources/index.js +1 -3
  25. package/dist/serialization/types/ProcessingFailureReasonEnum.d.ts +1 -1
  26. package/dist/serialization/types/ProcessingFailureReasonEnum.js +1 -1
  27. package/dist/serialization/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
  28. package/dist/serialization/types/WorkflowExecutionNodeResultEvent.js +2 -1
  29. package/dist/serialization/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
  30. package/dist/serialization/types/WorkflowExecutionWorkflowResultEvent.js +2 -1
  31. package/dist/serialization/types/index.d.ts +0 -2
  32. package/dist/serialization/types/index.js +0 -2
  33. package/package.json +1 -1
  34. package/serialization/resources/index.d.ts +0 -2
  35. package/serialization/resources/index.js +1 -3
  36. package/serialization/types/ProcessingFailureReasonEnum.d.ts +1 -1
  37. package/serialization/types/ProcessingFailureReasonEnum.js +1 -1
  38. package/serialization/types/WorkflowExecutionNodeResultEvent.d.ts +2 -1
  39. package/serialization/types/WorkflowExecutionNodeResultEvent.js +2 -1
  40. package/serialization/types/WorkflowExecutionWorkflowResultEvent.d.ts +2 -1
  41. package/serialization/types/WorkflowExecutionWorkflowResultEvent.js +2 -1
  42. package/serialization/types/index.d.ts +0 -2
  43. package/serialization/types/index.js +0 -2
  44. package/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -11
  45. package/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +0 -5
  46. package/api/types/SetDocumentMetadataErrorResponse.d.ts +0 -6
  47. package/api/types/SetDocumentMetadataErrorResponse.js +0 -5
  48. package/api/types/SetDocumentMetadataResponse.d.ts +0 -7
  49. package/api/types/SetDocumentMetadataResponse.js +0 -5
  50. package/dist/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -11
  51. package/dist/api/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +0 -5
  52. package/dist/api/types/SetDocumentMetadataErrorResponse.d.ts +0 -6
  53. package/dist/api/types/SetDocumentMetadataErrorResponse.js +0 -5
  54. package/dist/api/types/SetDocumentMetadataResponse.d.ts +0 -7
  55. package/dist/api/types/SetDocumentMetadataResponse.js +0 -5
  56. package/dist/serialization/resources/documents/client/index.d.ts +0 -1
  57. package/dist/serialization/resources/documents/client/index.js +0 -17
  58. package/dist/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -14
  59. package/dist/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +0 -35
  60. package/dist/serialization/resources/documents/client/requests/index.d.ts +0 -1
  61. package/dist/serialization/resources/documents/client/requests/index.js +0 -5
  62. package/dist/serialization/resources/documents/index.d.ts +0 -1
  63. package/dist/serialization/resources/documents/index.js +0 -17
  64. package/dist/serialization/types/SetDocumentMetadataErrorResponse.d.ts +0 -12
  65. package/dist/serialization/types/SetDocumentMetadataErrorResponse.js +0 -33
  66. package/dist/serialization/types/SetDocumentMetadataResponse.d.ts +0 -12
  67. package/dist/serialization/types/SetDocumentMetadataResponse.js +0 -33
  68. package/serialization/resources/documents/client/index.d.ts +0 -1
  69. package/serialization/resources/documents/client/index.js +0 -17
  70. package/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.d.ts +0 -14
  71. package/serialization/resources/documents/client/requests/SetDocumentMetadataRequestBodyRequest.js +0 -35
  72. package/serialization/resources/documents/client/requests/index.d.ts +0 -1
  73. package/serialization/resources/documents/client/requests/index.js +0 -5
  74. package/serialization/resources/documents/index.d.ts +0 -1
  75. package/serialization/resources/documents/index.js +0 -17
  76. package/serialization/types/SetDocumentMetadataErrorResponse.d.ts +0 -12
  77. package/serialization/types/SetDocumentMetadataErrorResponse.js +0 -33
  78. package/serialization/types/SetDocumentMetadataResponse.d.ts +0 -12
  79. 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).default, "v1/search"),
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),
@@ -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,3 +1,2 @@
1
1
  export { DocumentsListRequest } from "./DocumentsListRequest";
2
- export { SetDocumentMetadataRequestBodyRequest } from "./SetDocumentMetadataRequestBodyRequest";
3
2
  export { UploadDocumentBodyRequest } from "./UploadDocumentBodyRequest";
@@ -1,4 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ProcessingFailureReasonEnum = "EXCEEDED_CHARACTER_LIMIT";
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
  /**
@@ -3,7 +3,8 @@
3
3
  */
4
4
  import * as Vellum from "..";
5
5
  export interface WorkflowExecutionNodeResultEvent {
6
- runId: string;
6
+ executionId: string;
7
+ runId?: string;
7
8
  externalId?: string;
8
9
  data: Vellum.WorkflowNodeResultEvent;
9
10
  }
@@ -3,7 +3,8 @@
3
3
  */
4
4
  import * as Vellum from "..";
5
5
  export interface WorkflowExecutionWorkflowResultEvent {
6
- runId: string;
6
+ executionId: string;
7
+ runId?: string;
7
8
  externalId?: string;
8
9
  data: Vellum.WorkflowResultEvent;
9
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";
@@ -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);
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).default, "v1/search"),
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),
@@ -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,3 +1,2 @@
1
1
  export { DocumentsListRequest } from "./DocumentsListRequest";
2
- export { SetDocumentMetadataRequestBodyRequest } from "./SetDocumentMetadataRequestBodyRequest";
3
2
  export { UploadDocumentBodyRequest } from "./UploadDocumentBodyRequest";
@@ -1,4 +1,12 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type ProcessingFailureReasonEnum = "EXCEEDED_CHARACTER_LIMIT";
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
  /**
@@ -3,7 +3,8 @@
3
3
  */
4
4
  import * as Vellum from "..";
5
5
  export interface WorkflowExecutionNodeResultEvent {
6
- runId: string;
6
+ executionId: string;
7
+ runId?: string;
7
8
  externalId?: string;
8
9
  data: Vellum.WorkflowNodeResultEvent;
9
10
  }
@@ -3,7 +3,8 @@
3
3
  */
4
4
  import * as Vellum from "..";
5
5
  export interface WorkflowExecutionWorkflowResultEvent {
6
- runId: string;
6
+ executionId: string;
7
+ runId?: string;
7
8
  externalId?: string;
8
9
  data: Vellum.WorkflowResultEvent;
9
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";
@@ -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);
@@ -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.documents = exports.documentIndexes = void 0;
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.stringLiteral("EXCEEDED_CHARACTER_LIMIT");
31
+ exports.ProcessingFailureReasonEnum = core.serialization.enum_(["EXCEEDED_CHARACTER_LIMIT", "INVALID_FILE"]);
@@ -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
- run_id: string;
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
- runId: core.serialization.property("run_id", core.serialization.string()),
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
- run_id: string;
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
- runId: core.serialization.property("run_id", core.serialization.string()),
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";
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.27",
3
+ "version": "v0.0.28",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",
@@ -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.documents = exports.documentIndexes = void 0;
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.stringLiteral("EXCEEDED_CHARACTER_LIMIT");
31
+ exports.ProcessingFailureReasonEnum = core.serialization.enum_(["EXCEEDED_CHARACTER_LIMIT", "INVALID_FILE"]);
@@ -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
- run_id: string;
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
- runId: core.serialization.property("run_id", core.serialization.string()),
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
- run_id: string;
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
- runId: core.serialization.property("run_id", core.serialization.string()),
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";
@@ -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);
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetDocumentMetadataRequestBodyRequest {
5
- /** The ID of the document to update. Must provide either this or `external_id` */
6
- documentId?: string;
7
- /** The external ID of the document to update. Must provide either this or `document_id` */
8
- externalId?: string;
9
- /** The metadata to set on the document. This will overwrite any existing metadata. */
10
- metadata: Record<string, unknown>;
11
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetDocumentMetadataErrorResponse {
5
- detail: string;
6
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetDocumentMetadataResponse {
5
- /** The ID of the newly created document. */
6
- documentId: string;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetDocumentMetadataRequestBodyRequest {
5
- /** The ID of the document to update. Must provide either this or `external_id` */
6
- documentId?: string;
7
- /** The external ID of the document to update. Must provide either this or `document_id` */
8
- externalId?: string;
9
- /** The metadata to set on the document. This will overwrite any existing metadata. */
10
- metadata: Record<string, unknown>;
11
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetDocumentMetadataErrorResponse {
5
- detail: string;
6
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- export interface SetDocumentMetadataResponse {
5
- /** The ID of the newly created document. */
6
- documentId: string;
7
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from "./requests";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,14 +0,0 @@
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 SetDocumentMetadataRequestBodyRequest: core.serialization.Schema<serializers.SetDocumentMetadataRequestBodyRequest.Raw, Vellum.SetDocumentMetadataRequestBodyRequest>;
8
- export declare namespace SetDocumentMetadataRequestBodyRequest {
9
- interface Raw {
10
- document_id?: string | null;
11
- external_id?: string | null;
12
- metadata: Record<string, unknown>;
13
- }
14
- }
@@ -1,35 +0,0 @@
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.SetDocumentMetadataRequestBodyRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- exports.SetDocumentMetadataRequestBodyRequest = core.serialization.object({
32
- documentId: core.serialization.property("document_id", core.serialization.string().optional()),
33
- externalId: core.serialization.property("external_id", core.serialization.string().optional()),
34
- metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
35
- });
@@ -1 +0,0 @@
1
- export { SetDocumentMetadataRequestBodyRequest } from "./SetDocumentMetadataRequestBodyRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetDocumentMetadataRequestBodyRequest = void 0;
4
- var SetDocumentMetadataRequestBodyRequest_1 = require("./SetDocumentMetadataRequestBodyRequest");
5
- Object.defineProperty(exports, "SetDocumentMetadataRequestBodyRequest", { enumerable: true, get: function () { return SetDocumentMetadataRequestBodyRequest_1.SetDocumentMetadataRequestBodyRequest; } });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,12 +0,0 @@
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 SetDocumentMetadataErrorResponse: core.serialization.ObjectSchema<serializers.SetDocumentMetadataErrorResponse.Raw, Vellum.SetDocumentMetadataErrorResponse>;
8
- export declare namespace SetDocumentMetadataErrorResponse {
9
- interface Raw {
10
- detail: string;
11
- }
12
- }
@@ -1,33 +0,0 @@
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.SetDocumentMetadataErrorResponse = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.SetDocumentMetadataErrorResponse = core.serialization.object({
32
- detail: core.serialization.string(),
33
- });
@@ -1,12 +0,0 @@
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 SetDocumentMetadataResponse: core.serialization.ObjectSchema<serializers.SetDocumentMetadataResponse.Raw, Vellum.SetDocumentMetadataResponse>;
8
- export declare namespace SetDocumentMetadataResponse {
9
- interface Raw {
10
- document_id: string;
11
- }
12
- }
@@ -1,33 +0,0 @@
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.SetDocumentMetadataResponse = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.SetDocumentMetadataResponse = core.serialization.object({
32
- documentId: core.serialization.property("document_id", core.serialization.string()),
33
- });
@@ -1 +0,0 @@
1
- export * from "./requests";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,14 +0,0 @@
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 SetDocumentMetadataRequestBodyRequest: core.serialization.Schema<serializers.SetDocumentMetadataRequestBodyRequest.Raw, Vellum.SetDocumentMetadataRequestBodyRequest>;
8
- export declare namespace SetDocumentMetadataRequestBodyRequest {
9
- interface Raw {
10
- document_id?: string | null;
11
- external_id?: string | null;
12
- metadata: Record<string, unknown>;
13
- }
14
- }
@@ -1,35 +0,0 @@
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.SetDocumentMetadataRequestBodyRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- exports.SetDocumentMetadataRequestBodyRequest = core.serialization.object({
32
- documentId: core.serialization.property("document_id", core.serialization.string().optional()),
33
- externalId: core.serialization.property("external_id", core.serialization.string().optional()),
34
- metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()),
35
- });
@@ -1 +0,0 @@
1
- export { SetDocumentMetadataRequestBodyRequest } from "./SetDocumentMetadataRequestBodyRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SetDocumentMetadataRequestBodyRequest = void 0;
4
- var SetDocumentMetadataRequestBodyRequest_1 = require("./SetDocumentMetadataRequestBodyRequest");
5
- Object.defineProperty(exports, "SetDocumentMetadataRequestBodyRequest", { enumerable: true, get: function () { return SetDocumentMetadataRequestBodyRequest_1.SetDocumentMetadataRequestBodyRequest; } });
@@ -1 +0,0 @@
1
- export * from "./client";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client"), exports);
@@ -1,12 +0,0 @@
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 SetDocumentMetadataErrorResponse: core.serialization.ObjectSchema<serializers.SetDocumentMetadataErrorResponse.Raw, Vellum.SetDocumentMetadataErrorResponse>;
8
- export declare namespace SetDocumentMetadataErrorResponse {
9
- interface Raw {
10
- detail: string;
11
- }
12
- }
@@ -1,33 +0,0 @@
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.SetDocumentMetadataErrorResponse = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.SetDocumentMetadataErrorResponse = core.serialization.object({
32
- detail: core.serialization.string(),
33
- });
@@ -1,12 +0,0 @@
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 SetDocumentMetadataResponse: core.serialization.ObjectSchema<serializers.SetDocumentMetadataResponse.Raw, Vellum.SetDocumentMetadataResponse>;
8
- export declare namespace SetDocumentMetadataResponse {
9
- interface Raw {
10
- document_id: string;
11
- }
12
- }
@@ -1,33 +0,0 @@
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.SetDocumentMetadataResponse = void 0;
30
- const core = __importStar(require("../../core"));
31
- exports.SetDocumentMetadataResponse = core.serialization.object({
32
- documentId: core.serialization.property("document_id", core.serialization.string()),
33
- });