vellum-ai 0.14.37 → 0.14.39

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 (133) hide show
  1. package/Client.js +11 -11
  2. package/api/resources/adHoc/client/Client.js +1 -1
  3. package/api/resources/containerImages/client/Client.js +4 -4
  4. package/api/resources/deployments/client/Client.js +7 -7
  5. package/api/resources/documentIndexes/client/Client.js +8 -8
  6. package/api/resources/documents/client/Client.js +5 -5
  7. package/api/resources/folderEntities/client/Client.js +2 -2
  8. package/api/resources/metricDefinitions/client/Client.js +2 -2
  9. package/api/resources/mlModels/client/Client.js +1 -1
  10. package/api/resources/organizations/client/Client.js +1 -1
  11. package/api/resources/prompts/client/Client.js +1 -1
  12. package/api/resources/releaseReviews/client/Client.js +2 -2
  13. package/api/resources/sandboxes/client/Client.js +3 -3
  14. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  15. package/api/resources/testSuites/client/Client.js +4 -4
  16. package/api/resources/workflowDeployments/client/Client.js +8 -8
  17. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  18. package/api/resources/workflows/client/Client.js +2 -2
  19. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  20. package/api/resources/workspaces/client/Client.js +1 -1
  21. package/api/types/AdHocFulfilledPromptExecutionMeta.d.ts +1 -0
  22. package/api/types/FulfilledPromptExecutionMeta.d.ts +1 -0
  23. package/api/types/TestSuiteRunExecConfigRequest.d.ts +1 -1
  24. package/api/types/TestSuiteRunProgress.d.ts +7 -0
  25. package/api/types/TestSuiteRunProgress.js +5 -0
  26. package/api/types/TestSuiteRunPromptSandboxExecConfigDataRequest.d.ts +9 -0
  27. package/api/types/TestSuiteRunPromptSandboxExecConfigDataRequest.js +5 -0
  28. package/api/types/TestSuiteRunPromptSandboxExecConfigRequest.d.ts +13 -0
  29. package/api/types/TestSuiteRunPromptSandboxExecConfigRequest.js +5 -0
  30. package/api/types/TestSuiteRunRead.d.ts +1 -0
  31. package/api/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.d.ts +7 -0
  32. package/api/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.js +5 -0
  33. package/api/types/TestSuiteRunWorkflowSandboxExecConfigRequest.d.ts +13 -0
  34. package/api/types/TestSuiteRunWorkflowSandboxExecConfigRequest.js +5 -0
  35. package/api/types/VellumSdkErrorCodeEnum.d.ts +3 -1
  36. package/api/types/VellumSdkErrorCodeEnum.js +1 -0
  37. package/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
  38. package/api/types/WorkflowExecutionEventErrorCode.js +1 -0
  39. package/api/types/index.d.ts +5 -0
  40. package/api/types/index.js +5 -0
  41. package/dist/Client.js +11 -11
  42. package/dist/api/resources/adHoc/client/Client.js +1 -1
  43. package/dist/api/resources/containerImages/client/Client.js +4 -4
  44. package/dist/api/resources/deployments/client/Client.js +7 -7
  45. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  46. package/dist/api/resources/documents/client/Client.js +5 -5
  47. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  48. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  49. package/dist/api/resources/mlModels/client/Client.js +1 -1
  50. package/dist/api/resources/organizations/client/Client.js +1 -1
  51. package/dist/api/resources/prompts/client/Client.js +1 -1
  52. package/dist/api/resources/releaseReviews/client/Client.js +2 -2
  53. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  54. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  55. package/dist/api/resources/testSuites/client/Client.js +4 -4
  56. package/dist/api/resources/workflowDeployments/client/Client.js +8 -8
  57. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  58. package/dist/api/resources/workflows/client/Client.js +2 -2
  59. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  60. package/dist/api/resources/workspaces/client/Client.js +1 -1
  61. package/dist/api/types/AdHocFulfilledPromptExecutionMeta.d.ts +1 -0
  62. package/dist/api/types/FulfilledPromptExecutionMeta.d.ts +1 -0
  63. package/dist/api/types/TestSuiteRunExecConfigRequest.d.ts +1 -1
  64. package/dist/api/types/TestSuiteRunProgress.d.ts +7 -0
  65. package/dist/api/types/TestSuiteRunProgress.js +5 -0
  66. package/dist/api/types/TestSuiteRunPromptSandboxExecConfigDataRequest.d.ts +9 -0
  67. package/dist/api/types/TestSuiteRunPromptSandboxExecConfigDataRequest.js +5 -0
  68. package/dist/api/types/TestSuiteRunPromptSandboxExecConfigRequest.d.ts +13 -0
  69. package/dist/api/types/TestSuiteRunPromptSandboxExecConfigRequest.js +5 -0
  70. package/dist/api/types/TestSuiteRunRead.d.ts +1 -0
  71. package/dist/api/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.d.ts +7 -0
  72. package/dist/api/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.js +5 -0
  73. package/dist/api/types/TestSuiteRunWorkflowSandboxExecConfigRequest.d.ts +13 -0
  74. package/dist/api/types/TestSuiteRunWorkflowSandboxExecConfigRequest.js +5 -0
  75. package/dist/api/types/VellumSdkErrorCodeEnum.d.ts +3 -1
  76. package/dist/api/types/VellumSdkErrorCodeEnum.js +1 -0
  77. package/dist/api/types/WorkflowExecutionEventErrorCode.d.ts +3 -1
  78. package/dist/api/types/WorkflowExecutionEventErrorCode.js +1 -0
  79. package/dist/api/types/index.d.ts +5 -0
  80. package/dist/api/types/index.js +5 -0
  81. package/dist/serialization/types/AdHocFulfilledPromptExecutionMeta.d.ts +2 -0
  82. package/dist/serialization/types/AdHocFulfilledPromptExecutionMeta.js +2 -0
  83. package/dist/serialization/types/FulfilledPromptExecutionMeta.d.ts +2 -0
  84. package/dist/serialization/types/FulfilledPromptExecutionMeta.js +2 -0
  85. package/dist/serialization/types/TestSuiteRunExecConfigRequest.d.ts +3 -1
  86. package/dist/serialization/types/TestSuiteRunExecConfigRequest.js +4 -0
  87. package/dist/serialization/types/TestSuiteRunProgress.d.ts +13 -0
  88. package/dist/serialization/types/TestSuiteRunProgress.js +44 -0
  89. package/dist/serialization/types/TestSuiteRunPromptSandboxExecConfigDataRequest.d.ts +13 -0
  90. package/dist/serialization/types/TestSuiteRunPromptSandboxExecConfigDataRequest.js +44 -0
  91. package/dist/serialization/types/TestSuiteRunPromptSandboxExecConfigRequest.d.ts +15 -0
  92. package/dist/serialization/types/TestSuiteRunPromptSandboxExecConfigRequest.js +46 -0
  93. package/dist/serialization/types/TestSuiteRunRead.d.ts +2 -0
  94. package/dist/serialization/types/TestSuiteRunRead.js +2 -0
  95. package/dist/serialization/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.d.ts +12 -0
  96. package/dist/serialization/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.js +43 -0
  97. package/dist/serialization/types/TestSuiteRunWorkflowSandboxExecConfigRequest.d.ts +15 -0
  98. package/dist/serialization/types/TestSuiteRunWorkflowSandboxExecConfigRequest.js +46 -0
  99. package/dist/serialization/types/VellumSdkErrorCodeEnum.d.ts +1 -1
  100. package/dist/serialization/types/VellumSdkErrorCodeEnum.js +1 -0
  101. package/dist/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
  102. package/dist/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
  103. package/dist/serialization/types/index.d.ts +5 -0
  104. package/dist/serialization/types/index.js +5 -0
  105. package/dist/version.d.ts +1 -1
  106. package/dist/version.js +1 -1
  107. package/package.json +1 -1
  108. package/serialization/types/AdHocFulfilledPromptExecutionMeta.d.ts +2 -0
  109. package/serialization/types/AdHocFulfilledPromptExecutionMeta.js +2 -0
  110. package/serialization/types/FulfilledPromptExecutionMeta.d.ts +2 -0
  111. package/serialization/types/FulfilledPromptExecutionMeta.js +2 -0
  112. package/serialization/types/TestSuiteRunExecConfigRequest.d.ts +3 -1
  113. package/serialization/types/TestSuiteRunExecConfigRequest.js +4 -0
  114. package/serialization/types/TestSuiteRunProgress.d.ts +13 -0
  115. package/serialization/types/TestSuiteRunProgress.js +44 -0
  116. package/serialization/types/TestSuiteRunPromptSandboxExecConfigDataRequest.d.ts +13 -0
  117. package/serialization/types/TestSuiteRunPromptSandboxExecConfigDataRequest.js +44 -0
  118. package/serialization/types/TestSuiteRunPromptSandboxExecConfigRequest.d.ts +15 -0
  119. package/serialization/types/TestSuiteRunPromptSandboxExecConfigRequest.js +46 -0
  120. package/serialization/types/TestSuiteRunRead.d.ts +2 -0
  121. package/serialization/types/TestSuiteRunRead.js +2 -0
  122. package/serialization/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.d.ts +12 -0
  123. package/serialization/types/TestSuiteRunWorkflowSandboxExecConfigDataRequest.js +43 -0
  124. package/serialization/types/TestSuiteRunWorkflowSandboxExecConfigRequest.d.ts +15 -0
  125. package/serialization/types/TestSuiteRunWorkflowSandboxExecConfigRequest.js +46 -0
  126. package/serialization/types/VellumSdkErrorCodeEnum.d.ts +1 -1
  127. package/serialization/types/VellumSdkErrorCodeEnum.js +1 -0
  128. package/serialization/types/WorkflowExecutionEventErrorCode.d.ts +1 -1
  129. package/serialization/types/WorkflowExecutionEventErrorCode.js +1 -0
  130. package/serialization/types/index.d.ts +5 -0
  131. package/serialization/types/index.js +5 -0
  132. package/version.d.ts +1 -1
  133. package/version.js +1 -1
@@ -84,7 +84,7 @@ class Workflows {
84
84
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
85
85
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
86
86
  method: "GET",
87
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.37", "User-Agent": "vellum-ai/0.14.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.39", "User-Agent": "vellum-ai/0.14.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  queryParameters: _queryParams,
90
90
  requestType: "json",
@@ -159,7 +159,7 @@ class Workflows {
159
159
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
160
160
  .default, "v1/workflows/push"),
161
161
  method: "POST",
162
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.37", "User-Agent": "vellum-ai/0.14.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.39", "User-Agent": "vellum-ai/0.14.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  requestType: "file",
164
164
  duplex: _maybeEncodedRequest.duplex,
165
165
  body: _maybeEncodedRequest.body,
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.37", "User-Agent": "vellum-ai/0.14.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.39", "User-Agent": "vellum-ai/0.14.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -127,7 +127,7 @@ class WorkspaceSecrets {
127
127
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
128
128
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
129
129
  method: "PATCH",
130
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.37", "User-Agent": "vellum-ai/0.14.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.39", "User-Agent": "vellum-ai/0.14.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
131
  contentType: "application/json",
132
132
  requestType: "json",
133
133
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class Workspaces {
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
74
74
  .default, "v1/workspaces/identity"),
75
75
  method: "GET",
76
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.37", "User-Agent": "vellum-ai/0.14.37", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.39", "User-Agent": "vellum-ai/0.14.39", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -9,4 +9,5 @@ export interface AdHocFulfilledPromptExecutionMeta {
9
9
  latency?: number;
10
10
  finishReason?: Vellum.FinishReasonEnum;
11
11
  usage?: Vellum.MlModelUsage;
12
+ cost?: Vellum.Price;
12
13
  }
@@ -9,4 +9,5 @@ export interface FulfilledPromptExecutionMeta {
9
9
  latency?: number;
10
10
  finishReason?: Vellum.FinishReasonEnum;
11
11
  usage?: Vellum.MlModelUsage;
12
+ cost?: Vellum.Price;
12
13
  }
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type TestSuiteRunExecConfigRequest = Vellum.TestSuiteRunDeploymentReleaseTagExecConfigRequest | Vellum.TestSuiteRunPromptSandboxHistoryItemExecConfigRequest | Vellum.TestSuiteRunWorkflowReleaseTagExecConfigRequest | Vellum.TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest | Vellum.TestSuiteRunExternalExecConfigRequest;
5
+ export type TestSuiteRunExecConfigRequest = Vellum.TestSuiteRunDeploymentReleaseTagExecConfigRequest | Vellum.TestSuiteRunPromptSandboxExecConfigRequest | Vellum.TestSuiteRunPromptSandboxHistoryItemExecConfigRequest | Vellum.TestSuiteRunWorkflowReleaseTagExecConfigRequest | Vellum.TestSuiteRunWorkflowSandboxExecConfigRequest | Vellum.TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest | Vellum.TestSuiteRunExternalExecConfigRequest;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestSuiteRunProgress {
5
+ numberOfRequestedTestCases: number;
6
+ numberOfCompletedTestCases: number;
7
+ }
@@ -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,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestSuiteRunPromptSandboxExecConfigDataRequest {
5
+ /** The ID of the Prompt Sandbox to run the Test Suite against. */
6
+ promptSandboxId: string;
7
+ /** The ID of the Prompt Variant within the Prompt Sandbox that you'd like to run the Test Suite against. */
8
+ promptVariantId: string;
9
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * Execution configuration for running a Test Suite against a Prompt Sandbox
7
+ */
8
+ export interface TestSuiteRunPromptSandboxExecConfigRequest {
9
+ type: "PROMPT_SANDBOX";
10
+ data: Vellum.TestSuiteRunPromptSandboxExecConfigDataRequest;
11
+ /** Optionally specify a subset of test case ids to run. If not provided, all test cases within the test suite will be run by default. */
12
+ testCaseIds?: string[];
13
+ }
@@ -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 });
@@ -18,4 +18,5 @@ export interface TestSuiteRunRead {
18
18
  state: Vellum.TestSuiteRunState;
19
19
  /** Configuration that defines how the Test Suite should be run */
20
20
  execConfig?: Vellum.TestSuiteRunExecConfig;
21
+ progress?: Vellum.TestSuiteRunProgress;
21
22
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TestSuiteRunWorkflowSandboxExecConfigDataRequest {
5
+ /** The ID of the Workflow Sandbox to run the Test Suite against. */
6
+ workflowSandboxId: string;
7
+ }
@@ -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,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * Execution configuration for running a Test Suite against a Workflow Sandbox
7
+ */
8
+ export interface TestSuiteRunWorkflowSandboxExecConfigRequest {
9
+ type: "WORKFLOW_SANDBOX";
10
+ data: Vellum.TestSuiteRunWorkflowSandboxExecConfigDataRequest;
11
+ /** Optionally specify a subset of test case ids to run. If not provided, all test cases within the test suite will be run by default. */
12
+ testCaseIds?: string[];
13
+ }
@@ -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 });
@@ -9,12 +9,13 @@
9
9
  * * `INVALID_CODE` - INVALID_CODE
10
10
  * * `INVALID_TEMPLATE` - INVALID_TEMPLATE
11
11
  * * `INTERNAL_ERROR` - INTERNAL_ERROR
12
+ * * `PROVIDER_CREDENTIALS_UNAVAILABLE` - PROVIDER_CREDENTIALS_UNAVAILABLE
12
13
  * * `PROVIDER_ERROR` - PROVIDER_ERROR
13
14
  * * `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
14
15
  * * `WORKFLOW_CANCELLED` - WORKFLOW_CANCELLED
15
16
  * * `NODE_EXECUTION` - NODE_EXECUTION
16
17
  */
17
- export type VellumSdkErrorCodeEnum = "INVALID_WORKFLOW" | "INVALID_INPUTS" | "INVALID_OUTPUTS" | "INVALID_STATE" | "INVALID_CODE" | "INVALID_TEMPLATE" | "INTERNAL_ERROR" | "PROVIDER_ERROR" | "USER_DEFINED_ERROR" | "WORKFLOW_CANCELLED" | "NODE_EXECUTION";
18
+ export type VellumSdkErrorCodeEnum = "INVALID_WORKFLOW" | "INVALID_INPUTS" | "INVALID_OUTPUTS" | "INVALID_STATE" | "INVALID_CODE" | "INVALID_TEMPLATE" | "INTERNAL_ERROR" | "PROVIDER_CREDENTIALS_UNAVAILABLE" | "PROVIDER_ERROR" | "USER_DEFINED_ERROR" | "WORKFLOW_CANCELLED" | "NODE_EXECUTION";
18
19
  export declare const VellumSdkErrorCodeEnum: {
19
20
  readonly InvalidWorkflow: "INVALID_WORKFLOW";
20
21
  readonly InvalidInputs: "INVALID_INPUTS";
@@ -23,6 +24,7 @@ export declare const VellumSdkErrorCodeEnum: {
23
24
  readonly InvalidCode: "INVALID_CODE";
24
25
  readonly InvalidTemplate: "INVALID_TEMPLATE";
25
26
  readonly InternalError: "INTERNAL_ERROR";
27
+ readonly ProviderCredentialsUnavailable: "PROVIDER_CREDENTIALS_UNAVAILABLE";
26
28
  readonly ProviderError: "PROVIDER_ERROR";
27
29
  readonly UserDefinedError: "USER_DEFINED_ERROR";
28
30
  readonly WorkflowCancelled: "WORKFLOW_CANCELLED";
@@ -12,6 +12,7 @@ exports.VellumSdkErrorCodeEnum = {
12
12
  InvalidCode: "INVALID_CODE",
13
13
  InvalidTemplate: "INVALID_TEMPLATE",
14
14
  InternalError: "INTERNAL_ERROR",
15
+ ProviderCredentialsUnavailable: "PROVIDER_CREDENTIALS_UNAVAILABLE",
15
16
  ProviderError: "PROVIDER_ERROR",
16
17
  UserDefinedError: "USER_DEFINED_ERROR",
17
18
  WorkflowCancelled: "WORKFLOW_CANCELLED",
@@ -4,6 +4,7 @@
4
4
  /**
5
5
  * * `WORKFLOW_INITIALIZATION` - WORKFLOW_INITIALIZATION
6
6
  * * `WORKFLOW_CANCELLED` - WORKFLOW_CANCELLED
7
+ * * `PROVIDER_CREDENTIALS_UNAVAILABLE` - PROVIDER_CREDENTIALS_UNAVAILABLE
7
8
  * * `NODE_EXECUTION_COUNT_LIMIT_REACHED` - NODE_EXECUTION_COUNT_LIMIT_REACHED
8
9
  * * `INTERNAL_SERVER_ERROR` - INTERNAL_SERVER_ERROR
9
10
  * * `NODE_EXECUTION` - NODE_EXECUTION
@@ -12,10 +13,11 @@
12
13
  * * `INVALID_INPUTS` - INVALID_INPUTS
13
14
  * * `USER_DEFINED_ERROR` - USER_DEFINED_ERROR
14
15
  */
15
- export type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "WORKFLOW_CANCELLED" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE" | "INVALID_INPUTS" | "USER_DEFINED_ERROR";
16
+ export type WorkflowExecutionEventErrorCode = "WORKFLOW_INITIALIZATION" | "WORKFLOW_CANCELLED" | "PROVIDER_CREDENTIALS_UNAVAILABLE" | "NODE_EXECUTION_COUNT_LIMIT_REACHED" | "INTERNAL_SERVER_ERROR" | "NODE_EXECUTION" | "LLM_PROVIDER" | "INVALID_TEMPLATE" | "INVALID_INPUTS" | "USER_DEFINED_ERROR";
16
17
  export declare const WorkflowExecutionEventErrorCode: {
17
18
  readonly WorkflowInitialization: "WORKFLOW_INITIALIZATION";
18
19
  readonly WorkflowCancelled: "WORKFLOW_CANCELLED";
20
+ readonly ProviderCredentialsUnavailable: "PROVIDER_CREDENTIALS_UNAVAILABLE";
19
21
  readonly NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED";
20
22
  readonly InternalServerError: "INTERNAL_SERVER_ERROR";
21
23
  readonly NodeExecution: "NODE_EXECUTION";
@@ -7,6 +7,7 @@ exports.WorkflowExecutionEventErrorCode = void 0;
7
7
  exports.WorkflowExecutionEventErrorCode = {
8
8
  WorkflowInitialization: "WORKFLOW_INITIALIZATION",
9
9
  WorkflowCancelled: "WORKFLOW_CANCELLED",
10
+ ProviderCredentialsUnavailable: "PROVIDER_CREDENTIALS_UNAVAILABLE",
10
11
  NodeExecutionCountLimitReached: "NODE_EXECUTION_COUNT_LIMIT_REACHED",
11
12
  InternalServerError: "INTERNAL_SERVER_ERROR",
12
13
  NodeExecution: "NODE_EXECUTION",
@@ -437,6 +437,9 @@ export * from "./TestSuiteRunMetricJsonOutput";
437
437
  export * from "./TestSuiteRunMetricNumberOutput";
438
438
  export * from "./TestSuiteRunMetricOutput";
439
439
  export * from "./TestSuiteRunMetricStringOutput";
440
+ export * from "./TestSuiteRunProgress";
441
+ export * from "./TestSuiteRunPromptSandboxExecConfigDataRequest";
442
+ export * from "./TestSuiteRunPromptSandboxExecConfigRequest";
440
443
  export * from "./TestSuiteRunPromptSandboxHistoryItemExecConfig";
441
444
  export * from "./TestSuiteRunPromptSandboxHistoryItemExecConfigData";
442
445
  export * from "./TestSuiteRunPromptSandboxHistoryItemExecConfigDataRequest";
@@ -448,6 +451,8 @@ export * from "./TestSuiteRunWorkflowReleaseTagExecConfig";
448
451
  export * from "./TestSuiteRunWorkflowReleaseTagExecConfigData";
449
452
  export * from "./TestSuiteRunWorkflowReleaseTagExecConfigDataRequest";
450
453
  export * from "./TestSuiteRunWorkflowReleaseTagExecConfigRequest";
454
+ export * from "./TestSuiteRunWorkflowSandboxExecConfigDataRequest";
455
+ export * from "./TestSuiteRunWorkflowSandboxExecConfigRequest";
451
456
  export * from "./TestSuiteRunWorkflowSandboxHistoryItemExecConfig";
452
457
  export * from "./TestSuiteRunWorkflowSandboxHistoryItemExecConfigData";
453
458
  export * from "./TestSuiteRunWorkflowSandboxHistoryItemExecConfigDataRequest";
@@ -453,6 +453,9 @@ __exportStar(require("./TestSuiteRunMetricJsonOutput"), exports);
453
453
  __exportStar(require("./TestSuiteRunMetricNumberOutput"), exports);
454
454
  __exportStar(require("./TestSuiteRunMetricOutput"), exports);
455
455
  __exportStar(require("./TestSuiteRunMetricStringOutput"), exports);
456
+ __exportStar(require("./TestSuiteRunProgress"), exports);
457
+ __exportStar(require("./TestSuiteRunPromptSandboxExecConfigDataRequest"), exports);
458
+ __exportStar(require("./TestSuiteRunPromptSandboxExecConfigRequest"), exports);
456
459
  __exportStar(require("./TestSuiteRunPromptSandboxHistoryItemExecConfig"), exports);
457
460
  __exportStar(require("./TestSuiteRunPromptSandboxHistoryItemExecConfigData"), exports);
458
461
  __exportStar(require("./TestSuiteRunPromptSandboxHistoryItemExecConfigDataRequest"), exports);
@@ -464,6 +467,8 @@ __exportStar(require("./TestSuiteRunWorkflowReleaseTagExecConfig"), exports);
464
467
  __exportStar(require("./TestSuiteRunWorkflowReleaseTagExecConfigData"), exports);
465
468
  __exportStar(require("./TestSuiteRunWorkflowReleaseTagExecConfigDataRequest"), exports);
466
469
  __exportStar(require("./TestSuiteRunWorkflowReleaseTagExecConfigRequest"), exports);
470
+ __exportStar(require("./TestSuiteRunWorkflowSandboxExecConfigDataRequest"), exports);
471
+ __exportStar(require("./TestSuiteRunWorkflowSandboxExecConfigRequest"), exports);
467
472
  __exportStar(require("./TestSuiteRunWorkflowSandboxHistoryItemExecConfig"), exports);
468
473
  __exportStar(require("./TestSuiteRunWorkflowSandboxHistoryItemExecConfigData"), exports);
469
474
  __exportStar(require("./TestSuiteRunWorkflowSandboxHistoryItemExecConfigDataRequest"), exports);
@@ -6,11 +6,13 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { FinishReasonEnum } from "./FinishReasonEnum";
8
8
  import { MlModelUsage } from "./MlModelUsage";
9
+ import { Price } from "./Price";
9
10
  export declare const AdHocFulfilledPromptExecutionMeta: core.serialization.ObjectSchema<serializers.AdHocFulfilledPromptExecutionMeta.Raw, Vellum.AdHocFulfilledPromptExecutionMeta>;
10
11
  export declare namespace AdHocFulfilledPromptExecutionMeta {
11
12
  interface Raw {
12
13
  latency?: number | null;
13
14
  finish_reason?: FinishReasonEnum.Raw | null;
14
15
  usage?: MlModelUsage.Raw | null;
16
+ cost?: Price.Raw | null;
15
17
  }
16
18
  }
@@ -40,8 +40,10 @@ exports.AdHocFulfilledPromptExecutionMeta = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const FinishReasonEnum_1 = require("./FinishReasonEnum");
42
42
  const MlModelUsage_1 = require("./MlModelUsage");
43
+ const Price_1 = require("./Price");
43
44
  exports.AdHocFulfilledPromptExecutionMeta = core.serialization.object({
44
45
  latency: core.serialization.number().optional(),
45
46
  finishReason: core.serialization.property("finish_reason", FinishReasonEnum_1.FinishReasonEnum.optional()),
46
47
  usage: MlModelUsage_1.MlModelUsage.optional(),
48
+ cost: Price_1.Price.optional(),
47
49
  });
@@ -6,11 +6,13 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { FinishReasonEnum } from "./FinishReasonEnum";
8
8
  import { MlModelUsage } from "./MlModelUsage";
9
+ import { Price } from "./Price";
9
10
  export declare const FulfilledPromptExecutionMeta: core.serialization.ObjectSchema<serializers.FulfilledPromptExecutionMeta.Raw, Vellum.FulfilledPromptExecutionMeta>;
10
11
  export declare namespace FulfilledPromptExecutionMeta {
11
12
  interface Raw {
12
13
  latency?: number | null;
13
14
  finish_reason?: FinishReasonEnum.Raw | null;
14
15
  usage?: MlModelUsage.Raw | null;
16
+ cost?: Price.Raw | null;
15
17
  }
16
18
  }
@@ -40,8 +40,10 @@ exports.FulfilledPromptExecutionMeta = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const FinishReasonEnum_1 = require("./FinishReasonEnum");
42
42
  const MlModelUsage_1 = require("./MlModelUsage");
43
+ const Price_1 = require("./Price");
43
44
  exports.FulfilledPromptExecutionMeta = core.serialization.object({
44
45
  latency: core.serialization.number().optional(),
45
46
  finishReason: core.serialization.property("finish_reason", FinishReasonEnum_1.FinishReasonEnum.optional()),
46
47
  usage: MlModelUsage_1.MlModelUsage.optional(),
48
+ cost: Price_1.Price.optional(),
47
49
  });
@@ -5,11 +5,13 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { TestSuiteRunDeploymentReleaseTagExecConfigRequest } from "./TestSuiteRunDeploymentReleaseTagExecConfigRequest";
8
+ import { TestSuiteRunPromptSandboxExecConfigRequest } from "./TestSuiteRunPromptSandboxExecConfigRequest";
8
9
  import { TestSuiteRunPromptSandboxHistoryItemExecConfigRequest } from "./TestSuiteRunPromptSandboxHistoryItemExecConfigRequest";
9
10
  import { TestSuiteRunWorkflowReleaseTagExecConfigRequest } from "./TestSuiteRunWorkflowReleaseTagExecConfigRequest";
11
+ import { TestSuiteRunWorkflowSandboxExecConfigRequest } from "./TestSuiteRunWorkflowSandboxExecConfigRequest";
10
12
  import { TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest } from "./TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest";
11
13
  import { TestSuiteRunExternalExecConfigRequest } from "./TestSuiteRunExternalExecConfigRequest";
12
14
  export declare const TestSuiteRunExecConfigRequest: core.serialization.Schema<serializers.TestSuiteRunExecConfigRequest.Raw, Vellum.TestSuiteRunExecConfigRequest>;
13
15
  export declare namespace TestSuiteRunExecConfigRequest {
14
- type Raw = TestSuiteRunDeploymentReleaseTagExecConfigRequest.Raw | TestSuiteRunPromptSandboxHistoryItemExecConfigRequest.Raw | TestSuiteRunWorkflowReleaseTagExecConfigRequest.Raw | TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest.Raw | TestSuiteRunExternalExecConfigRequest.Raw;
16
+ type Raw = TestSuiteRunDeploymentReleaseTagExecConfigRequest.Raw | TestSuiteRunPromptSandboxExecConfigRequest.Raw | TestSuiteRunPromptSandboxHistoryItemExecConfigRequest.Raw | TestSuiteRunWorkflowReleaseTagExecConfigRequest.Raw | TestSuiteRunWorkflowSandboxExecConfigRequest.Raw | TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest.Raw | TestSuiteRunExternalExecConfigRequest.Raw;
15
17
  }
@@ -39,14 +39,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.TestSuiteRunExecConfigRequest = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  const TestSuiteRunDeploymentReleaseTagExecConfigRequest_1 = require("./TestSuiteRunDeploymentReleaseTagExecConfigRequest");
42
+ const TestSuiteRunPromptSandboxExecConfigRequest_1 = require("./TestSuiteRunPromptSandboxExecConfigRequest");
42
43
  const TestSuiteRunPromptSandboxHistoryItemExecConfigRequest_1 = require("./TestSuiteRunPromptSandboxHistoryItemExecConfigRequest");
43
44
  const TestSuiteRunWorkflowReleaseTagExecConfigRequest_1 = require("./TestSuiteRunWorkflowReleaseTagExecConfigRequest");
45
+ const TestSuiteRunWorkflowSandboxExecConfigRequest_1 = require("./TestSuiteRunWorkflowSandboxExecConfigRequest");
44
46
  const TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest_1 = require("./TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest");
45
47
  const TestSuiteRunExternalExecConfigRequest_1 = require("./TestSuiteRunExternalExecConfigRequest");
46
48
  exports.TestSuiteRunExecConfigRequest = core.serialization.undiscriminatedUnion([
47
49
  TestSuiteRunDeploymentReleaseTagExecConfigRequest_1.TestSuiteRunDeploymentReleaseTagExecConfigRequest,
50
+ TestSuiteRunPromptSandboxExecConfigRequest_1.TestSuiteRunPromptSandboxExecConfigRequest,
48
51
  TestSuiteRunPromptSandboxHistoryItemExecConfigRequest_1.TestSuiteRunPromptSandboxHistoryItemExecConfigRequest,
49
52
  TestSuiteRunWorkflowReleaseTagExecConfigRequest_1.TestSuiteRunWorkflowReleaseTagExecConfigRequest,
53
+ TestSuiteRunWorkflowSandboxExecConfigRequest_1.TestSuiteRunWorkflowSandboxExecConfigRequest,
50
54
  TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest_1.TestSuiteRunWorkflowSandboxHistoryItemExecConfigRequest,
51
55
  TestSuiteRunExternalExecConfigRequest_1.TestSuiteRunExternalExecConfigRequest,
52
56
  ]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const TestSuiteRunProgress: core.serialization.ObjectSchema<serializers.TestSuiteRunProgress.Raw, Vellum.TestSuiteRunProgress>;
8
+ export declare namespace TestSuiteRunProgress {
9
+ interface Raw {
10
+ number_of_requested_test_cases: number;
11
+ number_of_completed_test_cases: number;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.TestSuiteRunProgress = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.TestSuiteRunProgress = core.serialization.object({
42
+ numberOfRequestedTestCases: core.serialization.property("number_of_requested_test_cases", core.serialization.number()),
43
+ numberOfCompletedTestCases: core.serialization.property("number_of_completed_test_cases", core.serialization.number()),
44
+ });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const TestSuiteRunPromptSandboxExecConfigDataRequest: core.serialization.ObjectSchema<serializers.TestSuiteRunPromptSandboxExecConfigDataRequest.Raw, Vellum.TestSuiteRunPromptSandboxExecConfigDataRequest>;
8
+ export declare namespace TestSuiteRunPromptSandboxExecConfigDataRequest {
9
+ interface Raw {
10
+ prompt_sandbox_id: string;
11
+ prompt_variant_id: string;
12
+ }
13
+ }
@@ -0,0 +1,44 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.TestSuiteRunPromptSandboxExecConfigDataRequest = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.TestSuiteRunPromptSandboxExecConfigDataRequest = core.serialization.object({
42
+ promptSandboxId: core.serialization.property("prompt_sandbox_id", core.serialization.string()),
43
+ promptVariantId: core.serialization.property("prompt_variant_id", core.serialization.string()),
44
+ });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { TestSuiteRunPromptSandboxExecConfigDataRequest } from "./TestSuiteRunPromptSandboxExecConfigDataRequest";
8
+ export declare const TestSuiteRunPromptSandboxExecConfigRequest: core.serialization.ObjectSchema<serializers.TestSuiteRunPromptSandboxExecConfigRequest.Raw, Vellum.TestSuiteRunPromptSandboxExecConfigRequest>;
9
+ export declare namespace TestSuiteRunPromptSandboxExecConfigRequest {
10
+ interface Raw {
11
+ type: "PROMPT_SANDBOX";
12
+ data: TestSuiteRunPromptSandboxExecConfigDataRequest.Raw;
13
+ test_case_ids?: string[] | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.TestSuiteRunPromptSandboxExecConfigRequest = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ const TestSuiteRunPromptSandboxExecConfigDataRequest_1 = require("./TestSuiteRunPromptSandboxExecConfigDataRequest");
42
+ exports.TestSuiteRunPromptSandboxExecConfigRequest = core.serialization.object({
43
+ type: core.serialization.stringLiteral("PROMPT_SANDBOX"),
44
+ data: TestSuiteRunPromptSandboxExecConfigDataRequest_1.TestSuiteRunPromptSandboxExecConfigDataRequest,
45
+ testCaseIds: core.serialization.property("test_case_ids", core.serialization.list(core.serialization.string()).optional()),
46
+ });
@@ -7,6 +7,7 @@ import * as core from "../../core";
7
7
  import { TestSuiteRunTestSuite } from "./TestSuiteRunTestSuite";
8
8
  import { TestSuiteRunState } from "./TestSuiteRunState";
9
9
  import { TestSuiteRunExecConfig } from "./TestSuiteRunExecConfig";
10
+ import { TestSuiteRunProgress } from "./TestSuiteRunProgress";
10
11
  export declare const TestSuiteRunRead: core.serialization.ObjectSchema<serializers.TestSuiteRunRead.Raw, Vellum.TestSuiteRunRead>;
11
12
  export declare namespace TestSuiteRunRead {
12
13
  interface Raw {
@@ -15,5 +16,6 @@ export declare namespace TestSuiteRunRead {
15
16
  test_suite: TestSuiteRunTestSuite.Raw;
16
17
  state: TestSuiteRunState.Raw;
17
18
  exec_config?: TestSuiteRunExecConfig.Raw | null;
19
+ progress?: TestSuiteRunProgress.Raw | null;
18
20
  }
19
21
  }
@@ -41,10 +41,12 @@ const core = __importStar(require("../../core"));
41
41
  const TestSuiteRunTestSuite_1 = require("./TestSuiteRunTestSuite");
42
42
  const TestSuiteRunState_1 = require("./TestSuiteRunState");
43
43
  const TestSuiteRunExecConfig_1 = require("./TestSuiteRunExecConfig");
44
+ const TestSuiteRunProgress_1 = require("./TestSuiteRunProgress");
44
45
  exports.TestSuiteRunRead = core.serialization.object({
45
46
  id: core.serialization.string(),
46
47
  created: core.serialization.date(),
47
48
  testSuite: core.serialization.property("test_suite", TestSuiteRunTestSuite_1.TestSuiteRunTestSuite),
48
49
  state: TestSuiteRunState_1.TestSuiteRunState,
49
50
  execConfig: core.serialization.property("exec_config", TestSuiteRunExecConfig_1.TestSuiteRunExecConfig.optional()),
51
+ progress: TestSuiteRunProgress_1.TestSuiteRunProgress.optional(),
50
52
  });
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Vellum from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const TestSuiteRunWorkflowSandboxExecConfigDataRequest: core.serialization.ObjectSchema<serializers.TestSuiteRunWorkflowSandboxExecConfigDataRequest.Raw, Vellum.TestSuiteRunWorkflowSandboxExecConfigDataRequest>;
8
+ export declare namespace TestSuiteRunWorkflowSandboxExecConfigDataRequest {
9
+ interface Raw {
10
+ workflow_sandbox_id: string;
11
+ }
12
+ }