vellum-ai 0.6.6 → 0.6.8

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 (149) hide show
  1. package/Client.js +9 -9
  2. package/api/resources/deployments/client/Client.js +5 -5
  3. package/api/resources/documentIndexes/client/Client.d.ts +17 -6
  4. package/api/resources/documentIndexes/client/Client.js +59 -12
  5. package/api/resources/documents/client/Client.js +5 -5
  6. package/api/resources/folderEntities/client/Client.js +1 -1
  7. package/api/resources/sandboxes/client/Client.js +3 -3
  8. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  9. package/api/resources/testSuites/client/Client.js +4 -4
  10. package/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +4 -1
  11. package/api/resources/workflowDeployments/client/Client.js +4 -4
  12. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  13. package/api/types/{BulkCreateTestSuiteTestCaseDataRequest.d.ts → CreateTestSuiteTestCaseRequest.d.ts} +4 -1
  14. package/api/types/DeploymentProviderPayloadResponse.d.ts +2 -1
  15. package/api/types/DeploymentProviderPayloadResponsePayload.d.ts +4 -0
  16. package/api/types/ExecutionArrayVellumValue.d.ts +4 -1
  17. package/api/types/ExecutionChatHistoryVellumValue.d.ts +3 -0
  18. package/api/types/ExecutionErrorVellumValue.d.ts +3 -0
  19. package/api/types/ExecutionFunctionCallVellumValue.d.ts +3 -0
  20. package/api/types/ExecutionJsonVellumValue.d.ts +3 -0
  21. package/api/types/ExecutionNumberVellumValue.d.ts +3 -0
  22. package/api/types/ExecutionSearchResultsVellumValue.d.ts +3 -0
  23. package/api/types/ExecutionStringVellumValue.d.ts +3 -0
  24. package/api/types/MapEnum.d.ts +4 -0
  25. package/api/types/MapNodeResult.d.ts +10 -0
  26. package/api/types/MapNodeResultData.d.ts +6 -0
  27. package/api/types/MapNodeResultData.js +5 -0
  28. package/api/types/ReplaceTestSuiteTestCaseRequest.d.ts +19 -0
  29. package/api/types/ReplaceTestSuiteTestCaseRequest.js +5 -0
  30. package/api/types/SearchResultMeta.d.ts +1 -1
  31. package/api/types/SearchResultMetaRequest.d.ts +1 -1
  32. package/api/types/TestSuiteTestCase.d.ts +1 -0
  33. package/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +1 -1
  34. package/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +1 -1
  35. package/api/types/WorkflowNodeResultData.d.ts +4 -1
  36. package/api/types/index.d.ts +6 -2
  37. package/api/types/index.js +6 -2
  38. package/dist/Client.js +9 -9
  39. package/dist/api/resources/deployments/client/Client.js +5 -5
  40. package/dist/api/resources/documentIndexes/client/Client.d.ts +17 -6
  41. package/dist/api/resources/documentIndexes/client/Client.js +59 -12
  42. package/dist/api/resources/documents/client/Client.js +5 -5
  43. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  44. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  45. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  46. package/dist/api/resources/testSuites/client/Client.js +4 -4
  47. package/dist/api/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +4 -1
  48. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  49. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  50. package/dist/api/types/{BulkCreateTestSuiteTestCaseDataRequest.d.ts → CreateTestSuiteTestCaseRequest.d.ts} +4 -1
  51. package/dist/api/types/CreateTestSuiteTestCaseRequest.js +5 -0
  52. package/dist/api/types/DeploymentProviderPayloadResponse.d.ts +2 -1
  53. package/dist/api/types/DeploymentProviderPayloadResponsePayload.d.ts +4 -0
  54. package/dist/api/types/DeploymentProviderPayloadResponsePayload.js +5 -0
  55. package/dist/api/types/ExecutionArrayVellumValue.d.ts +4 -1
  56. package/dist/api/types/ExecutionChatHistoryVellumValue.d.ts +3 -0
  57. package/dist/api/types/ExecutionErrorVellumValue.d.ts +3 -0
  58. package/dist/api/types/ExecutionFunctionCallVellumValue.d.ts +3 -0
  59. package/dist/api/types/ExecutionJsonVellumValue.d.ts +3 -0
  60. package/dist/api/types/ExecutionNumberVellumValue.d.ts +3 -0
  61. package/dist/api/types/ExecutionSearchResultsVellumValue.d.ts +3 -0
  62. package/dist/api/types/ExecutionStringVellumValue.d.ts +3 -0
  63. package/dist/api/types/MapEnum.d.ts +4 -0
  64. package/dist/api/types/MapEnum.js +5 -0
  65. package/dist/api/types/MapNodeResult.d.ts +10 -0
  66. package/dist/api/types/MapNodeResult.js +5 -0
  67. package/dist/api/types/MapNodeResultData.d.ts +6 -0
  68. package/dist/api/types/MapNodeResultData.js +5 -0
  69. package/dist/api/types/ReplaceTestSuiteTestCaseRequest.d.ts +19 -0
  70. package/dist/api/types/ReplaceTestSuiteTestCaseRequest.js +5 -0
  71. package/dist/api/types/SearchResultMeta.d.ts +1 -1
  72. package/dist/api/types/SearchResultMetaRequest.d.ts +1 -1
  73. package/dist/api/types/TestSuiteTestCase.d.ts +1 -0
  74. package/dist/api/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +1 -1
  75. package/dist/api/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +1 -1
  76. package/dist/api/types/WorkflowNodeResultData.d.ts +4 -1
  77. package/dist/api/types/index.d.ts +6 -2
  78. package/dist/api/types/index.js +6 -2
  79. package/dist/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +1 -0
  80. package/dist/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js +1 -0
  81. package/dist/serialization/types/{BulkCreateTestSuiteTestCaseDataRequest.d.ts → CreateTestSuiteTestCaseRequest.d.ts} +3 -2
  82. package/dist/serialization/types/{BulkCreateTestSuiteTestCaseDataRequest.js → CreateTestSuiteTestCaseRequest.js} +3 -2
  83. package/dist/serialization/types/DeploymentProviderPayloadResponse.d.ts +2 -1
  84. package/dist/serialization/types/DeploymentProviderPayloadResponse.js +2 -1
  85. package/dist/serialization/types/DeploymentProviderPayloadResponsePayload.d.ts +10 -0
  86. package/dist/serialization/types/DeploymentProviderPayloadResponsePayload.js +34 -0
  87. package/dist/serialization/types/ExecutionArrayVellumValue.d.ts +2 -2
  88. package/dist/serialization/types/ExecutionArrayVellumValue.js +2 -2
  89. package/dist/serialization/types/MapEnum.d.ts +10 -0
  90. package/dist/serialization/types/MapEnum.js +31 -0
  91. package/dist/serialization/types/MapNodeResult.d.ts +13 -0
  92. package/dist/serialization/types/MapNodeResult.js +34 -0
  93. package/dist/serialization/types/MapNodeResultData.d.ts +12 -0
  94. package/dist/serialization/types/MapNodeResultData.js +33 -0
  95. package/dist/serialization/types/{BulkReplaceTestSuiteTestCaseDataRequest.d.ts → ReplaceTestSuiteTestCaseRequest.d.ts} +4 -3
  96. package/{serialization/types/BulkCreateTestSuiteTestCaseDataRequest.js → dist/serialization/types/ReplaceTestSuiteTestCaseRequest.js} +4 -2
  97. package/dist/serialization/types/SearchResultMeta.d.ts +1 -1
  98. package/dist/serialization/types/SearchResultMeta.js +1 -1
  99. package/dist/serialization/types/SearchResultMetaRequest.d.ts +1 -1
  100. package/dist/serialization/types/SearchResultMetaRequest.js +1 -1
  101. package/dist/serialization/types/TestSuiteTestCase.d.ts +1 -0
  102. package/dist/serialization/types/TestSuiteTestCase.js +1 -0
  103. package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +2 -2
  104. package/dist/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +2 -2
  105. package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +2 -2
  106. package/dist/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +2 -2
  107. package/dist/serialization/types/WorkflowNodeResultData.d.ts +5 -1
  108. package/dist/serialization/types/WorkflowNodeResultData.js +2 -0
  109. package/dist/serialization/types/index.d.ts +6 -2
  110. package/dist/serialization/types/index.js +6 -2
  111. package/package.json +1 -1
  112. package/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.d.ts +1 -0
  113. package/serialization/resources/testSuites/client/requests/UpsertTestSuiteTestCaseRequest.js +1 -0
  114. package/serialization/types/{BulkCreateTestSuiteTestCaseDataRequest.d.ts → CreateTestSuiteTestCaseRequest.d.ts} +3 -2
  115. package/{dist/serialization/types/BulkReplaceTestSuiteTestCaseDataRequest.js → serialization/types/CreateTestSuiteTestCaseRequest.js} +3 -3
  116. package/serialization/types/DeploymentProviderPayloadResponse.d.ts +2 -1
  117. package/serialization/types/DeploymentProviderPayloadResponse.js +2 -1
  118. package/serialization/types/DeploymentProviderPayloadResponsePayload.d.ts +10 -0
  119. package/serialization/types/DeploymentProviderPayloadResponsePayload.js +34 -0
  120. package/serialization/types/ExecutionArrayVellumValue.d.ts +2 -2
  121. package/serialization/types/ExecutionArrayVellumValue.js +2 -2
  122. package/serialization/types/MapEnum.d.ts +10 -0
  123. package/serialization/types/MapEnum.js +31 -0
  124. package/serialization/types/MapNodeResult.d.ts +13 -0
  125. package/serialization/types/MapNodeResult.js +34 -0
  126. package/serialization/types/MapNodeResultData.d.ts +12 -0
  127. package/serialization/types/MapNodeResultData.js +33 -0
  128. package/serialization/types/{BulkReplaceTestSuiteTestCaseDataRequest.d.ts → ReplaceTestSuiteTestCaseRequest.d.ts} +4 -3
  129. package/serialization/types/{BulkReplaceTestSuiteTestCaseDataRequest.js → ReplaceTestSuiteTestCaseRequest.js} +4 -3
  130. package/serialization/types/SearchResultMeta.d.ts +1 -1
  131. package/serialization/types/SearchResultMeta.js +1 -1
  132. package/serialization/types/SearchResultMetaRequest.d.ts +1 -1
  133. package/serialization/types/SearchResultMetaRequest.js +1 -1
  134. package/serialization/types/TestSuiteTestCase.d.ts +1 -0
  135. package/serialization/types/TestSuiteTestCase.js +1 -0
  136. package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.d.ts +2 -2
  137. package/serialization/types/TestSuiteTestCaseCreateBulkOperationRequest.js +2 -2
  138. package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.d.ts +2 -2
  139. package/serialization/types/TestSuiteTestCaseReplaceBulkOperationRequest.js +2 -2
  140. package/serialization/types/WorkflowNodeResultData.d.ts +5 -1
  141. package/serialization/types/WorkflowNodeResultData.js +2 -0
  142. package/serialization/types/index.d.ts +6 -2
  143. package/serialization/types/index.js +6 -2
  144. package/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +0 -16
  145. package/dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.d.ts +0 -16
  146. /package/api/types/{BulkCreateTestSuiteTestCaseDataRequest.js → CreateTestSuiteTestCaseRequest.js} +0 -0
  147. /package/api/types/{BulkReplaceTestSuiteTestCaseDataRequest.js → DeploymentProviderPayloadResponsePayload.js} +0 -0
  148. /package/{dist/api/types/BulkCreateTestSuiteTestCaseDataRequest.js → api/types/MapEnum.js} +0 -0
  149. /package/{dist/api/types/BulkReplaceTestSuiteTestCaseDataRequest.js → api/types/MapNodeResult.js} +0 -0
@@ -81,7 +81,7 @@ class DocumentIndexes {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/document-indexes"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -147,7 +147,7 @@ class DocumentIndexes {
147
147
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
148
148
  .default, "v1/document-indexes"),
149
149
  method: "POST",
150
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
150
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
151
151
  contentType: "application/json",
152
152
  body: yield serializers.DocumentIndexCreateRequest.jsonOrThrow(request, {
153
153
  unrecognizedObjectKeys: "strip",
@@ -201,7 +201,7 @@ class DocumentIndexes {
201
201
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
202
202
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
203
203
  method: "GET",
204
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
204
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
205
205
  contentType: "application/json",
206
206
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
207
207
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -237,9 +237,9 @@ class DocumentIndexes {
237
237
  });
238
238
  }
239
239
  /**
240
- * Used to fully update a Document Index given its ID.
240
+ * Used to fully update a Document Index given its ID or name.
241
241
  *
242
- * @param {string} id - A UUID string identifying this document index.
242
+ * @param {string} id - Either the Document Index's ID or its unique name
243
243
  * @param {Vellum.DocumentIndexUpdateRequest} request
244
244
  * @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
245
245
  *
@@ -257,7 +257,7 @@ class DocumentIndexes {
257
257
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
258
258
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
259
259
  method: "PUT",
260
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
261
261
  contentType: "application/json",
262
262
  body: yield serializers.DocumentIndexUpdateRequest.jsonOrThrow(request, {
263
263
  unrecognizedObjectKeys: "strip",
@@ -296,9 +296,9 @@ class DocumentIndexes {
296
296
  });
297
297
  }
298
298
  /**
299
- * Used to delete a Document Index given its ID.
299
+ * Used to delete a Document Index given its ID or name.
300
300
  *
301
- * @param {string} id - A UUID string identifying this document index.
301
+ * @param {string} id - Either the Document Index's ID or its unique name
302
302
  * @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
303
303
  *
304
304
  * @example
@@ -311,7 +311,7 @@ class DocumentIndexes {
311
311
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
312
312
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
313
313
  method: "DELETE",
314
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
314
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
315
315
  contentType: "application/json",
316
316
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
317
317
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -342,9 +342,9 @@ class DocumentIndexes {
342
342
  });
343
343
  }
344
344
  /**
345
- * Used to partial update a Document Index given its ID.
345
+ * Used to partial update a Document Index given its ID or name.
346
346
  *
347
- * @param {string} id - A UUID string identifying this document index.
347
+ * @param {string} id - Either the Document Index's ID or its unique name
348
348
  * @param {Vellum.PatchedDocumentIndexUpdateRequest} request
349
349
  * @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
350
350
  *
@@ -362,7 +362,7 @@ class DocumentIndexes {
362
362
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
363
363
  .default, `v1/document-indexes/${encodeURIComponent(id)}`),
364
364
  method: "PATCH",
365
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
365
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
366
366
  contentType: "application/json",
367
367
  body: yield serializers.PatchedDocumentIndexUpdateRequest.jsonOrThrow(request, {
368
368
  unrecognizedObjectKeys: "strip",
@@ -400,6 +400,53 @@ class DocumentIndexes {
400
400
  }
401
401
  });
402
402
  }
403
+ /**
404
+ * Removes a Document from a Document Index without deleting the Document itself.
405
+ *
406
+ * @param {string} documentId - Either the Vellum-generated ID or the originally supplied external_id that uniquely identifies the Document you'd like to remove.
407
+ * @param {string} id - Either the Vellum-generated ID or the originally specified name that uniquely identifies the Document Index from which you'd like to remove a Document.
408
+ * @param {DocumentIndexes.RequestOptions} requestOptions - Request-specific configuration.
409
+ *
410
+ * @example
411
+ * await vellum.documentIndexes.removeDocument("document_id", "id")
412
+ */
413
+ removeDocument(documentId, id, requestOptions) {
414
+ var _a;
415
+ return __awaiter(this, void 0, void 0, function* () {
416
+ const _response = yield core.fetcher({
417
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
418
+ .default, `v1/document-indexes/${encodeURIComponent(id)}/documents/${encodeURIComponent(documentId)}`),
419
+ method: "DELETE",
420
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
421
+ contentType: "application/json",
422
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
423
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
424
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
425
+ });
426
+ if (_response.ok) {
427
+ return;
428
+ }
429
+ if (_response.error.reason === "status-code") {
430
+ throw new errors.VellumError({
431
+ statusCode: _response.error.statusCode,
432
+ body: _response.error.body,
433
+ });
434
+ }
435
+ switch (_response.error.reason) {
436
+ case "non-json":
437
+ throw new errors.VellumError({
438
+ statusCode: _response.error.statusCode,
439
+ body: _response.error.rawBody,
440
+ });
441
+ case "timeout":
442
+ throw new errors.VellumTimeoutError();
443
+ case "unknown":
444
+ throw new errors.VellumError({
445
+ message: _response.error.errorMessage,
446
+ });
447
+ }
448
+ });
449
+ }
403
450
  _getCustomAuthorizationHeaders() {
404
451
  return __awaiter(this, void 0, void 0, function* () {
405
452
  const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
@@ -79,7 +79,7 @@ class Documents {
79
79
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
80
80
  .default, "v1/documents"),
81
81
  method: "GET",
82
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
85
85
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -131,7 +131,7 @@ class Documents {
131
131
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
132
132
  .default, `v1/documents/${encodeURIComponent(id)}`),
133
133
  method: "GET",
134
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
135
  contentType: "application/json",
136
136
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
137
137
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -182,7 +182,7 @@ class Documents {
182
182
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
183
183
  .default, `v1/documents/${encodeURIComponent(id)}`),
184
184
  method: "DELETE",
185
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
185
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
186
186
  contentType: "application/json",
187
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
188
188
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -229,7 +229,7 @@ class Documents {
229
229
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
230
230
  .default, `v1/documents/${encodeURIComponent(id)}`),
231
231
  method: "PATCH",
232
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
232
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
233
233
  contentType: "application/json",
234
234
  body: yield serializers.PatchedDocumentUpdateRequest.jsonOrThrow(request, {
235
235
  unrecognizedObjectKeys: "strip",
@@ -320,7 +320,7 @@ class Documents {
320
320
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
321
321
  .documents, "v1/upload-document"),
322
322
  method: "POST",
323
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
323
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), (yield _maybeEncodedRequest.getHeaders())),
324
324
  body: yield _maybeEncodedRequest.getBody(),
325
325
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
326
326
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -69,7 +69,7 @@ class FolderEntities {
69
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
70
70
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
71
71
  method: "POST",
72
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
73
73
  contentType: "application/json",
74
74
  body: yield serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
75
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -64,7 +64,7 @@ class Sandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  body: yield serializers.DeploySandboxPromptRequest.jsonOrThrow(request, {
70
70
  unrecognizedObjectKeys: "strip",
@@ -134,7 +134,7 @@ class Sandboxes {
134
134
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
135
135
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
136
136
  method: "POST",
137
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
137
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
138
138
  contentType: "application/json",
139
139
  body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
140
140
  unrecognizedObjectKeys: "strip",
@@ -189,7 +189,7 @@ class Sandboxes {
189
189
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
190
190
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
191
191
  method: "DELETE",
192
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
193
193
  contentType: "application/json",
194
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
195
195
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -74,7 +74,7 @@ class TestSuiteRuns {
74
74
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
75
75
  .default, "v1/test-suite-runs"),
76
76
  method: "POST",
77
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
78
78
  contentType: "application/json",
79
79
  body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -126,7 +126,7 @@ class TestSuiteRuns {
126
126
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
127
127
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
128
128
  method: "GET",
129
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
130
130
  contentType: "application/json",
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
132
132
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -192,7 +192,7 @@ class TestSuiteRuns {
192
192
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
193
193
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
194
194
  method: "GET",
195
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
195
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
196
196
  contentType: "application/json",
197
197
  queryParameters: _queryParams,
198
198
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -73,7 +73,7 @@ class TestSuites {
73
73
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
74
74
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -135,7 +135,7 @@ class TestSuites {
135
135
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
136
136
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
137
137
  method: "POST",
138
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
138
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
139
139
  contentType: "application/json",
140
140
  body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
141
141
  unrecognizedObjectKeys: "strip",
@@ -183,7 +183,7 @@ class TestSuites {
183
183
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
184
184
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
185
185
  method: "POST",
186
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
186
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
187
  contentType: "application/json",
188
188
  body: yield serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
189
189
  unrecognizedObjectKeys: "strip",
@@ -249,7 +249,7 @@ class TestSuites {
249
249
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
250
250
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
251
251
  method: "DELETE",
252
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
252
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
253
253
  contentType: "application/json",
254
254
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
255
255
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -10,8 +10,11 @@ import * as Vellum from "../../../../index";
10
10
  * }
11
11
  */
12
12
  export interface UpsertTestSuiteTestCaseRequest {
13
- /** The ID of the Test Case to upsert. If specified and a match is found, the existing Test Case will be updated. If specified and no match is found, a Test Case will be created with the provided ID. If not provided, a new Test Case will be created with an auto-generated ID. */
13
+ /** The Vellum-generated ID of an existing Test Case whose data you'd like to replace. If specified and no Test Case exists with this ID, a 404 will be returned. */
14
14
  upsertTestSuiteTestCaseRequestId?: string;
15
+ /** An ID external to Vellum that uniquely identifies the Test Case that you'd like to create/update. If there's a match on a Test Case that was previously created with the same external_id, it will be updated. Otherwise, a new Test Case will be created with this value as its external_id. If no external_id is specified, then a new Test Case will always be created. */
16
+ externalId?: string;
17
+ /** A human-readable label used to convey the intention of this Test Case */
15
18
  label?: string;
16
19
  /** Values for each of the Test Case's input variables */
17
20
  inputValues: Vellum.NamedTestCaseVariableValueRequest[];
@@ -76,7 +76,7 @@ class WorkflowDeployments {
76
76
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
77
77
  .default, "v1/workflow-deployments"),
78
78
  method: "GET",
79
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
80
80
  contentType: "application/json",
81
81
  queryParameters: _queryParams,
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -128,7 +128,7 @@ class WorkflowDeployments {
128
128
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
129
129
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
130
130
  method: "GET",
131
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
132
132
  contentType: "application/json",
133
133
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
134
134
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -180,7 +180,7 @@ class WorkflowDeployments {
180
180
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
181
181
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
182
182
  method: "GET",
183
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
183
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
184
184
  contentType: "application/json",
185
185
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
186
186
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -233,7 +233,7 @@ class WorkflowDeployments {
233
233
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
234
234
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
235
235
  method: "PATCH",
236
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
236
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
237
237
  contentType: "application/json",
238
238
  body: yield serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
239
239
  unrecognizedObjectKeys: "strip",
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.6.8", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  body: yield serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, {
70
70
  unrecognizedObjectKeys: "strip",
@@ -5,10 +5,13 @@ import * as Vellum from "../index";
5
5
  /**
6
6
  * Information about the Test Case to create
7
7
  */
8
- export interface BulkCreateTestSuiteTestCaseDataRequest {
8
+ export interface CreateTestSuiteTestCaseRequest {
9
+ /** A human-readable label used to convey the intention of this Test Case */
9
10
  label?: string;
10
11
  /** Values for each of the Test Case's input variables */
11
12
  inputValues: Vellum.NamedTestCaseVariableValueRequest[];
12
13
  /** Values for each of the Test Case's evaluation variables */
13
14
  evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
15
+ /** Optionally provide an ID that uniquely identifies this Test Case in your system. Useful for updating this Test Cases data after initial creation. Cannot be changed later. */
16
+ externalId?: string;
14
17
  }
@@ -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,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Vellum from "../index";
4
5
  export interface DeploymentProviderPayloadResponse {
5
- payload: Record<string, unknown>;
6
+ payload: Vellum.DeploymentProviderPayloadResponsePayload;
6
7
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type DeploymentProviderPayloadResponsePayload = Record<string, unknown> | string;
@@ -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 });
@@ -2,9 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
+ /**
6
+ * A value representing an array of Vellum variable values.
7
+ */
5
8
  export interface ExecutionArrayVellumValue {
6
9
  /** The variable's uniquely identifying internal id. */
7
10
  id: string;
8
11
  name: string;
9
- value?: Vellum.ArrayVariableValueItem[];
12
+ value?: Vellum.ArrayVellumValueItem[];
10
13
  }
@@ -2,6 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
+ /**
6
+ * A value representing Chat History.
7
+ */
5
8
  export interface ExecutionChatHistoryVellumValue {
6
9
  /** The variable's uniquely identifying internal id. */
7
10
  id: string;
@@ -2,6 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
+ /**
6
+ * A value representing an Error.
7
+ */
5
8
  export interface ExecutionErrorVellumValue {
6
9
  /** The variable's uniquely identifying internal id. */
7
10
  id: string;
@@ -2,6 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
+ /**
6
+ * A value representing a Function Call.
7
+ */
5
8
  export interface ExecutionFunctionCallVellumValue {
6
9
  /** The variable's uniquely identifying internal id. */
7
10
  id: string;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * A value representing a JSON object.
6
+ */
4
7
  export interface ExecutionJsonVellumValue {
5
8
  /** The variable's uniquely identifying internal id. */
6
9
  id: string;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * A value representing a number.
6
+ */
4
7
  export interface ExecutionNumberVellumValue {
5
8
  /** The variable's uniquely identifying internal id. */
6
9
  id: string;
@@ -2,6 +2,9 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
+ /**
6
+ * A value representing Search Results.
7
+ */
5
8
  export interface ExecutionSearchResultsVellumValue {
6
9
  /** The variable's uniquely identifying internal id. */
7
10
  id: string;
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * A value representing a string.
6
+ */
4
7
  export interface ExecutionStringVellumValue {
5
8
  /** The variable's uniquely identifying internal id. */
6
9
  id: string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type MapEnum = "MAP";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A Node Result Event emitted from a Map Node.
7
+ */
8
+ export interface MapNodeResult {
9
+ data?: Vellum.MapNodeResultData;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface MapNodeResultData {
5
+ executionIds: string[];
6
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * Information about the Test Case to replace
7
+ */
8
+ export interface ReplaceTestSuiteTestCaseRequest {
9
+ /** The Vellum-generated ID of the Test Case whose data you'd like to replace. Must specify either this or external_id. */
10
+ id?: string;
11
+ /** The ID that was originally provided upon Test Case creation that uniquely identifies the Test Case whose data you'd like to replace. Must specify either this of id. */
12
+ externalId?: string;
13
+ /** A human-readable label used to convey the intention of this Test Case */
14
+ label?: string;
15
+ /** Values for each of the Test Case's input variables */
16
+ inputValues: Vellum.NamedTestCaseVariableValueRequest[];
17
+ /** Values for each of the Test Case's evaluation variables */
18
+ evaluationValues: Vellum.NamedTestCaseVariableValueRequest[];
19
+ }
@@ -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 });
@@ -3,5 +3,5 @@
3
3
  */
4
4
  import * as Vellum from "../index";
5
5
  export interface SearchResultMeta {
6
- source: Vellum.SearchResultMetaSource;
6
+ source?: Vellum.SearchResultMetaSource;
7
7
  }
@@ -3,5 +3,5 @@
3
3
  */
4
4
  import * as Vellum from "../index";
5
5
  export interface SearchResultMetaRequest {
6
- source: Vellum.SearchResultMetaSourceRequest;
6
+ source?: Vellum.SearchResultMetaSourceRequest;
7
7
  }