vellum-ai 0.3.9 → 0.3.10

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 (77) hide show
  1. package/Client.js +9 -9
  2. package/api/resources/deployments/client/Client.js +3 -3
  3. package/api/resources/documentIndexes/client/Client.d.ts +7 -0
  4. package/api/resources/documentIndexes/client/Client.js +72 -3
  5. package/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.d.ts +29 -0
  6. package/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.js +5 -0
  7. package/api/resources/documentIndexes/client/requests/index.d.ts +1 -0
  8. package/api/resources/documentIndexes/index.d.ts +1 -0
  9. package/api/resources/documentIndexes/index.js +1 -0
  10. package/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +8 -0
  11. package/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +10 -0
  12. package/api/resources/documentIndexes/types/index.d.ts +1 -0
  13. package/api/resources/documentIndexes/types/index.js +17 -0
  14. package/api/resources/documents/client/Client.js +4 -4
  15. package/api/resources/folderEntities/client/Client.js +1 -1
  16. package/api/resources/index.d.ts +2 -1
  17. package/api/resources/index.js +3 -2
  18. package/api/resources/modelVersions/client/Client.js +1 -1
  19. package/api/resources/registeredPrompts/client/Client.js +1 -1
  20. package/api/resources/sandboxes/client/Client.js +2 -2
  21. package/api/resources/testSuites/client/Client.js +2 -2
  22. package/api/resources/workflowDeployments/client/Client.js +2 -2
  23. package/api/types/PaginatedDocumentIndexReadList.d.ts +10 -0
  24. package/api/types/PaginatedDocumentIndexReadList.js +5 -0
  25. package/api/types/index.d.ts +1 -0
  26. package/api/types/index.js +1 -0
  27. package/dist/Client.js +9 -9
  28. package/dist/api/resources/deployments/client/Client.js +3 -3
  29. package/dist/api/resources/documentIndexes/client/Client.d.ts +7 -0
  30. package/dist/api/resources/documentIndexes/client/Client.js +72 -3
  31. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.d.ts +29 -0
  32. package/dist/api/resources/documentIndexes/client/requests/DocumentIndexesListRequest.js +5 -0
  33. package/dist/api/resources/documentIndexes/client/requests/index.d.ts +1 -0
  34. package/dist/api/resources/documentIndexes/index.d.ts +1 -0
  35. package/dist/api/resources/documentIndexes/index.js +1 -0
  36. package/dist/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +8 -0
  37. package/dist/api/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +10 -0
  38. package/dist/api/resources/documentIndexes/types/index.d.ts +1 -0
  39. package/dist/api/resources/documentIndexes/types/index.js +17 -0
  40. package/dist/api/resources/documents/client/Client.js +4 -4
  41. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  42. package/dist/api/resources/index.d.ts +2 -1
  43. package/dist/api/resources/index.js +3 -2
  44. package/dist/api/resources/modelVersions/client/Client.js +1 -1
  45. package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
  46. package/dist/api/resources/sandboxes/client/Client.js +2 -2
  47. package/dist/api/resources/testSuites/client/Client.js +2 -2
  48. package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
  49. package/dist/api/types/PaginatedDocumentIndexReadList.d.ts +10 -0
  50. package/dist/api/types/PaginatedDocumentIndexReadList.js +5 -0
  51. package/dist/api/types/index.d.ts +1 -0
  52. package/dist/api/types/index.js +1 -0
  53. package/dist/serialization/resources/documentIndexes/index.d.ts +1 -0
  54. package/dist/serialization/resources/documentIndexes/index.js +1 -0
  55. package/dist/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +10 -0
  56. package/dist/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +31 -0
  57. package/dist/serialization/resources/documentIndexes/types/index.d.ts +1 -0
  58. package/dist/serialization/resources/documentIndexes/types/index.js +17 -0
  59. package/dist/serialization/resources/index.d.ts +2 -1
  60. package/dist/serialization/resources/index.js +3 -2
  61. package/dist/serialization/types/PaginatedDocumentIndexReadList.d.ts +15 -0
  62. package/dist/serialization/types/PaginatedDocumentIndexReadList.js +47 -0
  63. package/dist/serialization/types/index.d.ts +1 -0
  64. package/dist/serialization/types/index.js +1 -0
  65. package/package.json +1 -1
  66. package/serialization/resources/documentIndexes/index.d.ts +1 -0
  67. package/serialization/resources/documentIndexes/index.js +1 -0
  68. package/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.d.ts +10 -0
  69. package/serialization/resources/documentIndexes/types/DocumentIndexesListRequestStatus.js +31 -0
  70. package/serialization/resources/documentIndexes/types/index.d.ts +1 -0
  71. package/serialization/resources/documentIndexes/types/index.js +17 -0
  72. package/serialization/resources/index.d.ts +2 -1
  73. package/serialization/resources/index.js +3 -2
  74. package/serialization/types/PaginatedDocumentIndexReadList.d.ts +15 -0
  75. package/serialization/types/PaginatedDocumentIndexReadList.js +47 -0
  76. package/serialization/types/index.d.ts +1 -0
  77. package/serialization/types/index.js +1 -0
@@ -41,13 +41,82 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.DocumentIndexes = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const serializers = __importStar(require("../../../../serialization"));
45
44
  const url_join_1 = __importDefault(require("url-join"));
45
+ const serializers = __importStar(require("../../../../serialization"));
46
46
  const errors = __importStar(require("../../../../errors"));
47
47
  class DocumentIndexes {
48
48
  constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
+ /**
52
+ * Used to retrieve a list of Document Indexes.
53
+ *
54
+ * @example
55
+ * await vellum.documentIndexes.list({})
56
+ */
57
+ list(request = {}, requestOptions) {
58
+ var _a;
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ const { limit, offset, ordering, status } = request;
61
+ const _queryParams = {};
62
+ if (limit != null) {
63
+ _queryParams["limit"] = limit.toString();
64
+ }
65
+ if (offset != null) {
66
+ _queryParams["offset"] = offset.toString();
67
+ }
68
+ if (ordering != null) {
69
+ _queryParams["ordering"] = ordering;
70
+ }
71
+ if (status != null) {
72
+ _queryParams["status"] = status;
73
+ }
74
+ const _response = yield core.fetcher({
75
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
76
+ .default, "v1/document-indexes"),
77
+ method: "GET",
78
+ headers: {
79
+ X_API_KEY: yield core.Supplier.get(this._options.apiKey),
80
+ "X-Fern-Language": "JavaScript",
81
+ "X-Fern-SDK-Name": "vellum-ai",
82
+ "X-Fern-SDK-Version": "0.3.10",
83
+ "X-Fern-Runtime": core.RUNTIME.type,
84
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
85
+ },
86
+ contentType: "application/json",
87
+ queryParameters: _queryParams,
88
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
89
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
90
+ });
91
+ if (_response.ok) {
92
+ return yield serializers.PaginatedDocumentIndexReadList.parseOrThrow(_response.body, {
93
+ unrecognizedObjectKeys: "passthrough",
94
+ allowUnrecognizedUnionMembers: true,
95
+ allowUnrecognizedEnumValues: true,
96
+ breadcrumbsPrefix: ["response"],
97
+ });
98
+ }
99
+ if (_response.error.reason === "status-code") {
100
+ throw new errors.VellumError({
101
+ statusCode: _response.error.statusCode,
102
+ body: _response.error.body,
103
+ });
104
+ }
105
+ switch (_response.error.reason) {
106
+ case "non-json":
107
+ throw new errors.VellumError({
108
+ statusCode: _response.error.statusCode,
109
+ body: _response.error.rawBody,
110
+ });
111
+ case "timeout":
112
+ throw new errors.VellumTimeoutError();
113
+ case "unknown":
114
+ throw new errors.VellumError({
115
+ message: _response.error.errorMessage,
116
+ });
117
+ }
118
+ });
119
+ }
51
120
  /**
52
121
  * Creates a new document index.
53
122
  *
@@ -85,7 +154,7 @@ class DocumentIndexes {
85
154
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
86
155
  "X-Fern-Language": "JavaScript",
87
156
  "X-Fern-SDK-Name": "vellum-ai",
88
- "X-Fern-SDK-Version": "0.3.9",
157
+ "X-Fern-SDK-Version": "0.3.10",
89
158
  "X-Fern-Runtime": core.RUNTIME.type,
90
159
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
160
  },
@@ -142,7 +211,7 @@ class DocumentIndexes {
142
211
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
143
212
  "X-Fern-Language": "JavaScript",
144
213
  "X-Fern-SDK-Name": "vellum-ai",
145
- "X-Fern-SDK-Version": "0.3.9",
214
+ "X-Fern-SDK-Version": "0.3.10",
146
215
  "X-Fern-Runtime": core.RUNTIME.type,
147
216
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
217
  },
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../../../..";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface DocumentIndexesListRequest {
10
+ /**
11
+ * Number of results to return per page.
12
+ */
13
+ limit?: number;
14
+ /**
15
+ * The initial index from which to return the results.
16
+ */
17
+ offset?: number;
18
+ /**
19
+ * Which field to use when ordering the results.
20
+ */
21
+ ordering?: string;
22
+ /**
23
+ * The current status of the document index
24
+ *
25
+ * - `ACTIVE` - Active
26
+ * - `ARCHIVED` - Archived
27
+ */
28
+ status?: Vellum.DocumentIndexesListRequestStatus;
29
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
+ export { DocumentIndexesListRequest } from "./DocumentIndexesListRequest";
1
2
  export { DocumentIndexCreateRequest } from "./DocumentIndexCreateRequest";
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type DocumentIndexesListRequestStatus = "ACTIVE" | "ARCHIVED";
5
+ export declare const DocumentIndexesListRequestStatus: {
6
+ readonly Active: "ACTIVE";
7
+ readonly Archived: "ARCHIVED";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DocumentIndexesListRequestStatus = void 0;
7
+ exports.DocumentIndexesListRequestStatus = {
8
+ Active: "ACTIVE",
9
+ Archived: "ARCHIVED",
10
+ };
@@ -0,0 +1 @@
1
+ export * from "./DocumentIndexesListRequestStatus";
@@ -0,0 +1,17 @@
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("./DocumentIndexesListRequestStatus"), exports);
@@ -81,7 +81,7 @@ class Documents {
81
81
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
82
82
  "X-Fern-Language": "JavaScript",
83
83
  "X-Fern-SDK-Name": "vellum-ai",
84
- "X-Fern-SDK-Version": "0.3.9",
84
+ "X-Fern-SDK-Version": "0.3.10",
85
85
  "X-Fern-Runtime": core.RUNTIME.type,
86
86
  "X-Fern-Runtime-Version": core.RUNTIME.version,
87
87
  },
@@ -130,7 +130,7 @@ class Documents {
130
130
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
131
131
  "X-Fern-Language": "JavaScript",
132
132
  "X-Fern-SDK-Name": "vellum-ai",
133
- "X-Fern-SDK-Version": "0.3.9",
133
+ "X-Fern-SDK-Version": "0.3.10",
134
134
  "X-Fern-Runtime": core.RUNTIME.type,
135
135
  "X-Fern-Runtime-Version": core.RUNTIME.version,
136
136
  },
@@ -179,7 +179,7 @@ class Documents {
179
179
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
180
180
  "X-Fern-Language": "JavaScript",
181
181
  "X-Fern-SDK-Name": "vellum-ai",
182
- "X-Fern-SDK-Version": "0.3.9",
182
+ "X-Fern-SDK-Version": "0.3.10",
183
183
  "X-Fern-Runtime": core.RUNTIME.type,
184
184
  "X-Fern-Runtime-Version": core.RUNTIME.version,
185
185
  },
@@ -265,7 +265,7 @@ class Documents {
265
265
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
266
266
  "X-Fern-Language": "JavaScript",
267
267
  "X-Fern-SDK-Name": "vellum-ai",
268
- "X-Fern-SDK-Version": "0.3.9",
268
+ "X-Fern-SDK-Version": "0.3.10",
269
269
  "X-Fern-Runtime": core.RUNTIME.type,
270
270
  "X-Fern-Runtime-Version": core.RUNTIME.version,
271
271
  },
@@ -69,7 +69,7 @@ class FolderEntities {
69
69
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "vellum-ai",
72
- "X-Fern-SDK-Version": "0.3.9",
72
+ "X-Fern-SDK-Version": "0.3.10",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -1,8 +1,9 @@
1
1
  export * as deployments from "./deployments";
2
2
  export * from "./deployments/types";
3
+ export * as documentIndexes from "./documentIndexes";
4
+ export * from "./documentIndexes/types";
3
5
  export * as workflowDeployments from "./workflowDeployments";
4
6
  export * from "./workflowDeployments/types";
5
- export * as documentIndexes from "./documentIndexes";
6
7
  export * as documents from "./documents";
7
8
  export * as folderEntities from "./folderEntities";
8
9
  export * as modelVersions from "./modelVersions";
@@ -26,12 +26,13 @@ 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.folderEntities = exports.documents = exports.documentIndexes = exports.workflowDeployments = exports.deployments = void 0;
29
+ exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.modelVersions = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
+ exports.documentIndexes = __importStar(require("./documentIndexes"));
33
+ __exportStar(require("./documentIndexes/types"), exports);
32
34
  exports.workflowDeployments = __importStar(require("./workflowDeployments"));
33
35
  __exportStar(require("./workflowDeployments/types"), exports);
34
- exports.documentIndexes = __importStar(require("./documentIndexes"));
35
36
  exports.documents = __importStar(require("./documents"));
36
37
  exports.folderEntities = __importStar(require("./folderEntities"));
37
38
  exports.modelVersions = __importStar(require("./modelVersions"));
@@ -65,7 +65,7 @@ class ModelVersions {
65
65
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "vellum-ai",
68
- "X-Fern-SDK-Version": "0.3.9",
68
+ "X-Fern-SDK-Version": "0.3.10",
69
69
  "X-Fern-Runtime": core.RUNTIME.type,
70
70
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
71
  },
@@ -96,7 +96,7 @@ class RegisteredPrompts {
96
96
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
97
97
  "X-Fern-Language": "JavaScript",
98
98
  "X-Fern-SDK-Name": "vellum-ai",
99
- "X-Fern-SDK-Version": "0.3.9",
99
+ "X-Fern-SDK-Version": "0.3.10",
100
100
  "X-Fern-Runtime": core.RUNTIME.type,
101
101
  "X-Fern-Runtime-Version": core.RUNTIME.version,
102
102
  },
@@ -84,7 +84,7 @@ class Sandboxes {
84
84
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
85
85
  "X-Fern-Language": "JavaScript",
86
86
  "X-Fern-SDK-Name": "vellum-ai",
87
- "X-Fern-SDK-Version": "0.3.9",
87
+ "X-Fern-SDK-Version": "0.3.10",
88
88
  "X-Fern-Runtime": core.RUNTIME.type,
89
89
  "X-Fern-Runtime-Version": core.RUNTIME.version,
90
90
  },
@@ -141,7 +141,7 @@ class Sandboxes {
141
141
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
142
142
  "X-Fern-Language": "JavaScript",
143
143
  "X-Fern-SDK-Name": "vellum-ai",
144
- "X-Fern-SDK-Version": "0.3.9",
144
+ "X-Fern-SDK-Version": "0.3.10",
145
145
  "X-Fern-Runtime": core.RUNTIME.type,
146
146
  "X-Fern-Runtime-Version": core.RUNTIME.version,
147
147
  },
@@ -74,7 +74,7 @@ class TestSuites {
74
74
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "vellum-ai",
77
- "X-Fern-SDK-Version": "0.3.9",
77
+ "X-Fern-SDK-Version": "0.3.10",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -131,7 +131,7 @@ class TestSuites {
131
131
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
132
132
  "X-Fern-Language": "JavaScript",
133
133
  "X-Fern-SDK-Name": "vellum-ai",
134
- "X-Fern-SDK-Version": "0.3.9",
134
+ "X-Fern-SDK-Version": "0.3.10",
135
135
  "X-Fern-Runtime": core.RUNTIME.type,
136
136
  "X-Fern-Runtime-Version": core.RUNTIME.version,
137
137
  },
@@ -73,7 +73,7 @@ class WorkflowDeployments {
73
73
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "vellum-ai",
76
- "X-Fern-SDK-Version": "0.3.9",
76
+ "X-Fern-SDK-Version": "0.3.10",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -128,7 +128,7 @@ class WorkflowDeployments {
128
128
  X_API_KEY: yield core.Supplier.get(this._options.apiKey),
129
129
  "X-Fern-Language": "JavaScript",
130
130
  "X-Fern-SDK-Name": "vellum-ai",
131
- "X-Fern-SDK-Version": "0.3.9",
131
+ "X-Fern-SDK-Version": "0.3.10",
132
132
  "X-Fern-Runtime": core.RUNTIME.type,
133
133
  "X-Fern-Runtime-Version": core.RUNTIME.version,
134
134
  },
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "..";
5
+ export interface PaginatedDocumentIndexReadList {
6
+ count?: number;
7
+ next?: string;
8
+ previous?: string;
9
+ results?: Vellum.DocumentIndexRead[];
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -119,6 +119,7 @@ export * from "./NormalizedLogProbs";
119
119
  export * from "./NormalizedTokenLogProbs";
120
120
  export * from "./NumberEnum";
121
121
  export * from "./NumberVariableValue";
122
+ export * from "./PaginatedDocumentIndexReadList";
122
123
  export * from "./PaginatedSlimDeploymentReadList";
123
124
  export * from "./PaginatedSlimDocumentList";
124
125
  export * from "./PaginatedSlimWorkflowDeploymentList";
@@ -135,6 +135,7 @@ __exportStar(require("./NormalizedLogProbs"), exports);
135
135
  __exportStar(require("./NormalizedTokenLogProbs"), exports);
136
136
  __exportStar(require("./NumberEnum"), exports);
137
137
  __exportStar(require("./NumberVariableValue"), exports);
138
+ __exportStar(require("./PaginatedDocumentIndexReadList"), exports);
138
139
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
139
140
  __exportStar(require("./PaginatedSlimDocumentList"), exports);
140
141
  __exportStar(require("./PaginatedSlimWorkflowDeploymentList"), exports);
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -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 DocumentIndexesListRequestStatus: core.serialization.Schema<serializers.DocumentIndexesListRequestStatus.Raw, Vellum.DocumentIndexesListRequestStatus>;
8
+ export declare namespace DocumentIndexesListRequestStatus {
9
+ type Raw = "ACTIVE" | "ARCHIVED";
10
+ }
@@ -0,0 +1,31 @@
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.DocumentIndexesListRequestStatus = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.DocumentIndexesListRequestStatus = core.serialization.enum_(["ACTIVE", "ARCHIVED"]);
@@ -0,0 +1 @@
1
+ export * from "./DocumentIndexesListRequestStatus";
@@ -0,0 +1,17 @@
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("./DocumentIndexesListRequestStatus"), exports);
@@ -1,9 +1,10 @@
1
1
  export * as deployments from "./deployments";
2
2
  export * from "./deployments/types";
3
+ export * as documentIndexes from "./documentIndexes";
4
+ export * from "./documentIndexes/types";
3
5
  export * as workflowDeployments from "./workflowDeployments";
4
6
  export * from "./workflowDeployments/types";
5
7
  export * from "./deployments/client/requests";
6
- export * as documentIndexes from "./documentIndexes";
7
8
  export * from "./documentIndexes/client/requests";
8
9
  export * as documents from "./documents";
9
10
  export * from "./documents/client/requests";
@@ -26,13 +26,14 @@ 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.folderEntities = exports.documents = exports.documentIndexes = exports.workflowDeployments = exports.deployments = void 0;
29
+ exports.testSuites = exports.sandboxes = exports.registeredPrompts = exports.folderEntities = exports.documents = exports.workflowDeployments = exports.documentIndexes = exports.deployments = void 0;
30
30
  exports.deployments = __importStar(require("./deployments"));
31
31
  __exportStar(require("./deployments/types"), exports);
32
+ exports.documentIndexes = __importStar(require("./documentIndexes"));
33
+ __exportStar(require("./documentIndexes/types"), exports);
32
34
  exports.workflowDeployments = __importStar(require("./workflowDeployments"));
33
35
  __exportStar(require("./workflowDeployments/types"), exports);
34
36
  __exportStar(require("./deployments/client/requests"), exports);
35
- exports.documentIndexes = __importStar(require("./documentIndexes"));
36
37
  __exportStar(require("./documentIndexes/client/requests"), exports);
37
38
  exports.documents = __importStar(require("./documents"));
38
39
  __exportStar(require("./documents/client/requests"), exports);
@@ -0,0 +1,15 @@
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 PaginatedDocumentIndexReadList: core.serialization.ObjectSchema<serializers.PaginatedDocumentIndexReadList.Raw, Vellum.PaginatedDocumentIndexReadList>;
8
+ export declare namespace PaginatedDocumentIndexReadList {
9
+ interface Raw {
10
+ count?: number | null;
11
+ next?: string | null;
12
+ previous?: string | null;
13
+ results?: serializers.DocumentIndexRead.Raw[] | null;
14
+ }
15
+ }
@@ -0,0 +1,47 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.PaginatedDocumentIndexReadList = void 0;
39
+ const core = __importStar(require("../../core"));
40
+ exports.PaginatedDocumentIndexReadList = core.serialization.object({
41
+ count: core.serialization.number().optional(),
42
+ next: core.serialization.string().optional(),
43
+ previous: core.serialization.string().optional(),
44
+ results: core.serialization
45
+ .list(core.serialization.lazyObject(() => __awaiter(void 0, void 0, void 0, function* () { return (yield Promise.resolve().then(() => __importStar(require("..")))).DocumentIndexRead; })))
46
+ .optional(),
47
+ });
@@ -119,6 +119,7 @@ export * from "./NormalizedLogProbs";
119
119
  export * from "./NormalizedTokenLogProbs";
120
120
  export * from "./NumberEnum";
121
121
  export * from "./NumberVariableValue";
122
+ export * from "./PaginatedDocumentIndexReadList";
122
123
  export * from "./PaginatedSlimDeploymentReadList";
123
124
  export * from "./PaginatedSlimDocumentList";
124
125
  export * from "./PaginatedSlimWorkflowDeploymentList";
@@ -135,6 +135,7 @@ __exportStar(require("./NormalizedLogProbs"), exports);
135
135
  __exportStar(require("./NormalizedTokenLogProbs"), exports);
136
136
  __exportStar(require("./NumberEnum"), exports);
137
137
  __exportStar(require("./NumberVariableValue"), exports);
138
+ __exportStar(require("./PaginatedDocumentIndexReadList"), exports);
138
139
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
139
140
  __exportStar(require("./PaginatedSlimDocumentList"), exports);
140
141
  __exportStar(require("./PaginatedSlimWorkflowDeploymentList"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -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 DocumentIndexesListRequestStatus: core.serialization.Schema<serializers.DocumentIndexesListRequestStatus.Raw, Vellum.DocumentIndexesListRequestStatus>;
8
+ export declare namespace DocumentIndexesListRequestStatus {
9
+ type Raw = "ACTIVE" | "ARCHIVED";
10
+ }