vellum-ai 0.14.54 → 0.14.56

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 (94) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +38 -38
  3. package/api/resources/adHoc/client/Client.js +2 -2
  4. package/api/resources/containerImages/client/Client.js +4 -4
  5. package/api/resources/deployments/client/Client.d.ts +14 -1
  6. package/api/resources/deployments/client/Client.js +71 -8
  7. package/api/resources/documentIndexes/client/Client.js +8 -8
  8. package/api/resources/documents/client/Client.js +5 -5
  9. package/api/resources/folderEntities/client/Client.js +2 -2
  10. package/api/resources/index.d.ts +1 -1
  11. package/api/resources/index.js +2 -2
  12. package/api/resources/metricDefinitions/client/Client.js +2 -2
  13. package/api/resources/mlModels/client/Client.js +1 -1
  14. package/api/resources/organizations/client/Client.js +1 -1
  15. package/api/resources/prompts/client/Client.js +2 -2
  16. package/api/resources/releaseReviews/client/Client.d.ts +0 -12
  17. package/api/resources/releaseReviews/client/Client.js +1 -63
  18. package/api/resources/sandboxes/client/Client.js +3 -3
  19. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  20. package/api/resources/testSuites/client/Client.js +4 -4
  21. package/api/resources/workflowDeployments/client/Client.d.ts +2 -1
  22. package/api/resources/workflowDeployments/client/Client.js +10 -9
  23. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  24. package/api/resources/workflows/client/Client.js +2 -2
  25. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  26. package/api/resources/workspaces/client/Client.js +1 -1
  27. package/api/types/ComponentsSchemasPromptVersionBuildConfigSandbox.d.ts +5 -0
  28. package/api/types/ComponentsSchemasPromptVersionBuildConfigSandbox.js +5 -0
  29. package/api/types/ExecuteApiRequestBody.d.ts +1 -1
  30. package/api/types/PromptDeploymentReleasePromptVersion.d.ts +3 -0
  31. package/api/types/PromptVersionBuildConfigSandbox.d.ts +9 -0
  32. package/api/types/PromptVersionBuildConfigSandbox.js +5 -0
  33. package/api/types/index.d.ts +2 -0
  34. package/api/types/index.js +2 -0
  35. package/dist/Client.d.ts +3 -3
  36. package/dist/Client.js +38 -38
  37. package/dist/api/resources/adHoc/client/Client.js +2 -2
  38. package/dist/api/resources/containerImages/client/Client.js +4 -4
  39. package/dist/api/resources/deployments/client/Client.d.ts +14 -1
  40. package/dist/api/resources/deployments/client/Client.js +71 -8
  41. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  42. package/dist/api/resources/documents/client/Client.js +5 -5
  43. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  44. package/dist/api/resources/index.d.ts +1 -1
  45. package/dist/api/resources/index.js +2 -2
  46. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  47. package/dist/api/resources/mlModels/client/Client.js +1 -1
  48. package/dist/api/resources/organizations/client/Client.js +1 -1
  49. package/dist/api/resources/prompts/client/Client.js +2 -2
  50. package/dist/api/resources/releaseReviews/client/Client.d.ts +0 -12
  51. package/dist/api/resources/releaseReviews/client/Client.js +1 -63
  52. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  53. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  54. package/dist/api/resources/testSuites/client/Client.js +4 -4
  55. package/dist/api/resources/workflowDeployments/client/Client.d.ts +2 -1
  56. package/dist/api/resources/workflowDeployments/client/Client.js +10 -9
  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/ComponentsSchemasPromptVersionBuildConfigSandbox.d.ts +5 -0
  62. package/dist/api/types/ComponentsSchemasPromptVersionBuildConfigSandbox.js +5 -0
  63. package/dist/api/types/ExecuteApiRequestBody.d.ts +1 -1
  64. package/dist/api/types/PromptDeploymentReleasePromptVersion.d.ts +3 -0
  65. package/dist/api/types/PromptVersionBuildConfigSandbox.d.ts +9 -0
  66. package/dist/api/types/PromptVersionBuildConfigSandbox.js +5 -0
  67. package/dist/api/types/index.d.ts +2 -0
  68. package/dist/api/types/index.js +2 -0
  69. package/dist/serialization/types/ComponentsSchemasPromptVersionBuildConfigSandbox.d.ts +11 -0
  70. package/dist/serialization/types/ComponentsSchemasPromptVersionBuildConfigSandbox.js +8 -0
  71. package/dist/serialization/types/ExecuteApiRequestBody.d.ts +1 -1
  72. package/dist/serialization/types/ExecuteApiRequestBody.js +1 -0
  73. package/dist/serialization/types/PromptDeploymentReleasePromptVersion.d.ts +2 -0
  74. package/dist/serialization/types/PromptDeploymentReleasePromptVersion.js +2 -0
  75. package/dist/serialization/types/PromptVersionBuildConfigSandbox.d.ts +15 -0
  76. package/dist/serialization/types/PromptVersionBuildConfigSandbox.js +46 -0
  77. package/dist/serialization/types/index.d.ts +2 -0
  78. package/dist/serialization/types/index.js +2 -0
  79. package/dist/version.d.ts +1 -1
  80. package/dist/version.js +1 -1
  81. package/package.json +1 -1
  82. package/reference.md +102 -100
  83. package/serialization/types/ComponentsSchemasPromptVersionBuildConfigSandbox.d.ts +11 -0
  84. package/serialization/types/ComponentsSchemasPromptVersionBuildConfigSandbox.js +8 -0
  85. package/serialization/types/ExecuteApiRequestBody.d.ts +1 -1
  86. package/serialization/types/ExecuteApiRequestBody.js +1 -0
  87. package/serialization/types/PromptDeploymentReleasePromptVersion.d.ts +2 -0
  88. package/serialization/types/PromptDeploymentReleasePromptVersion.js +2 -0
  89. package/serialization/types/PromptVersionBuildConfigSandbox.d.ts +15 -0
  90. package/serialization/types/PromptVersionBuildConfigSandbox.js +46 -0
  91. package/serialization/types/index.d.ts +2 -0
  92. package/serialization/types/index.js +2 -0
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
@@ -77,7 +77,7 @@ class WorkflowSandboxes {
77
77
  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)
78
78
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
79
79
  method: "POST",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.54", "User-Agent": "vellum-ai/0.14.54", "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),
80
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.56", "User-Agent": "vellum-ai/0.14.56", "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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -155,7 +155,7 @@ class WorkflowSandboxes {
155
155
  url: (0, url_join_1.default)((_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : ((_d = (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.VellumEnvironment.Production)
156
156
  .default, "v1/workflow-sandboxes/examples"),
157
157
  method: "GET",
158
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.54", "User-Agent": "vellum-ai/0.14.54", "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),
158
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.56", "User-Agent": "vellum-ai/0.14.56", "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),
159
159
  contentType: "application/json",
160
160
  queryParameters: _queryParams,
161
161
  requestType: "json",
@@ -87,7 +87,7 @@ class Workflows {
87
87
  url: (0, url_join_1.default)((_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : ((_f = (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.VellumEnvironment.Production)
88
88
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
89
89
  method: "GET",
90
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.54", "User-Agent": "vellum-ai/0.14.54", "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),
90
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.56", "User-Agent": "vellum-ai/0.14.56", "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),
91
91
  contentType: "application/json",
92
92
  queryParameters: _queryParams,
93
93
  requestType: "json",
@@ -168,7 +168,7 @@ class Workflows {
168
168
  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)
169
169
  .default, "v1/workflows/push"),
170
170
  method: "POST",
171
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.54", "User-Agent": "vellum-ai/0.14.54", "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),
171
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.56", "User-Agent": "vellum-ai/0.14.56", "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),
172
172
  requestType: "file",
173
173
  duplex: _maybeEncodedRequest.duplex,
174
174
  body: _maybeEncodedRequest.body,
@@ -77,7 +77,7 @@ class WorkspaceSecrets {
77
77
  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)
78
78
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
79
79
  method: "GET",
80
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.54", "User-Agent": "vellum-ai/0.14.54", "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),
80
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.56", "User-Agent": "vellum-ai/0.14.56", "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),
81
81
  contentType: "application/json",
82
82
  requestType: "json",
83
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -139,7 +139,7 @@ class WorkspaceSecrets {
139
139
  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)
140
140
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
141
141
  method: "PATCH",
142
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.54", "User-Agent": "vellum-ai/0.14.54", "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),
142
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.56", "User-Agent": "vellum-ai/0.14.56", "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),
143
143
  contentType: "application/json",
144
144
  requestType: "json",
145
145
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -76,7 +76,7 @@ class Workspaces {
76
76
  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)
77
77
  .default, "v1/workspaces/identity"),
78
78
  method: "GET",
79
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.54", "User-Agent": "vellum-ai/0.14.54", "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),
79
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.56", "User-Agent": "vellum-ai/0.14.56", "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),
80
80
  contentType: "application/json",
81
81
  requestType: "json",
82
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -0,0 +1,5 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export type ComponentsSchemasPromptVersionBuildConfigSandbox = Vellum.PromptVersionBuildConfigSandbox;
@@ -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,4 +1,4 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type ExecuteApiRequestBody = string | Record<string, unknown>;
4
+ export type ExecuteApiRequestBody = string | unknown[] | Record<string, unknown>;
@@ -1,6 +1,9 @@
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 PromptDeploymentReleasePromptVersion {
5
6
  id: string;
7
+ /** Configuration used to build this prompt version. */
8
+ buildConfig: Vellum.ComponentsSchemasPromptVersionBuildConfigSandbox;
6
9
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface PromptVersionBuildConfigSandbox {
5
+ source: "SANDBOX";
6
+ sandboxId: string;
7
+ sandboxSnapshotId: string;
8
+ promptId: 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 });
@@ -308,6 +308,8 @@ export * from "./PromptRequestInput";
308
308
  export * from "./PromptRequestJsonInput";
309
309
  export * from "./PromptRequestStringInput";
310
310
  export * from "./PromptSettings";
311
+ export * from "./ComponentsSchemasPromptVersionBuildConfigSandbox";
312
+ export * from "./PromptVersionBuildConfigSandbox";
311
313
  export * from "./RawPromptExecutionOverridesRequest";
312
314
  export * from "./ReductoChunkerConfig";
313
315
  export * from "./ReductoChunkerConfigRequest";
@@ -324,6 +324,8 @@ __exportStar(require("./PromptRequestInput"), exports);
324
324
  __exportStar(require("./PromptRequestJsonInput"), exports);
325
325
  __exportStar(require("./PromptRequestStringInput"), exports);
326
326
  __exportStar(require("./PromptSettings"), exports);
327
+ __exportStar(require("./ComponentsSchemasPromptVersionBuildConfigSandbox"), exports);
328
+ __exportStar(require("./PromptVersionBuildConfigSandbox"), exports);
327
329
  __exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
328
330
  __exportStar(require("./ReductoChunkerConfig"), exports);
329
331
  __exportStar(require("./ReductoChunkerConfigRequest"), exports);
@@ -0,0 +1,11 @@
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 { PromptVersionBuildConfigSandbox } from "./PromptVersionBuildConfigSandbox";
8
+ export declare const ComponentsSchemasPromptVersionBuildConfigSandbox: core.serialization.ObjectSchema<serializers.ComponentsSchemasPromptVersionBuildConfigSandbox.Raw, Vellum.ComponentsSchemasPromptVersionBuildConfigSandbox>;
9
+ export declare namespace ComponentsSchemasPromptVersionBuildConfigSandbox {
10
+ type Raw = PromptVersionBuildConfigSandbox.Raw;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ComponentsSchemasPromptVersionBuildConfigSandbox = void 0;
7
+ const PromptVersionBuildConfigSandbox_1 = require("./PromptVersionBuildConfigSandbox");
8
+ exports.ComponentsSchemasPromptVersionBuildConfigSandbox = PromptVersionBuildConfigSandbox_1.PromptVersionBuildConfigSandbox;
@@ -6,5 +6,5 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ExecuteApiRequestBody: core.serialization.Schema<serializers.ExecuteApiRequestBody.Raw, Vellum.ExecuteApiRequestBody>;
8
8
  export declare namespace ExecuteApiRequestBody {
9
- type Raw = string | Record<string, unknown>;
9
+ type Raw = string | unknown[] | Record<string, unknown>;
10
10
  }
@@ -40,5 +40,6 @@ exports.ExecuteApiRequestBody = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.ExecuteApiRequestBody = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.list(core.serialization.unknown()),
43
44
  core.serialization.record(core.serialization.string(), core.serialization.unknown()),
44
45
  ]);
@@ -4,9 +4,11 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ComponentsSchemasPromptVersionBuildConfigSandbox } from "./ComponentsSchemasPromptVersionBuildConfigSandbox";
7
8
  export declare const PromptDeploymentReleasePromptVersion: core.serialization.ObjectSchema<serializers.PromptDeploymentReleasePromptVersion.Raw, Vellum.PromptDeploymentReleasePromptVersion>;
8
9
  export declare namespace PromptDeploymentReleasePromptVersion {
9
10
  interface Raw {
10
11
  id: string;
12
+ build_config: ComponentsSchemasPromptVersionBuildConfigSandbox.Raw;
11
13
  }
12
14
  }
@@ -38,6 +38,8 @@ var __importStar = (this && this.__importStar) || (function () {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.PromptDeploymentReleasePromptVersion = void 0;
40
40
  const core = __importStar(require("../../core"));
41
+ const ComponentsSchemasPromptVersionBuildConfigSandbox_1 = require("./ComponentsSchemasPromptVersionBuildConfigSandbox");
41
42
  exports.PromptDeploymentReleasePromptVersion = core.serialization.object({
42
43
  id: core.serialization.string(),
44
+ buildConfig: core.serialization.property("build_config", ComponentsSchemasPromptVersionBuildConfigSandbox_1.ComponentsSchemasPromptVersionBuildConfigSandbox),
43
45
  });
@@ -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
+ export declare const PromptVersionBuildConfigSandbox: core.serialization.ObjectSchema<serializers.PromptVersionBuildConfigSandbox.Raw, Vellum.PromptVersionBuildConfigSandbox>;
8
+ export declare namespace PromptVersionBuildConfigSandbox {
9
+ interface Raw {
10
+ source: "SANDBOX";
11
+ sandbox_id: string;
12
+ sandbox_snapshot_id: string;
13
+ prompt_id: string;
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.PromptVersionBuildConfigSandbox = void 0;
40
+ const core = __importStar(require("../../core"));
41
+ exports.PromptVersionBuildConfigSandbox = core.serialization.object({
42
+ source: core.serialization.stringLiteral("SANDBOX"),
43
+ sandboxId: core.serialization.property("sandbox_id", core.serialization.string()),
44
+ sandboxSnapshotId: core.serialization.property("sandbox_snapshot_id", core.serialization.string()),
45
+ promptId: core.serialization.property("prompt_id", core.serialization.string()),
46
+ });
@@ -308,6 +308,8 @@ export * from "./PromptRequestInput";
308
308
  export * from "./PromptRequestJsonInput";
309
309
  export * from "./PromptRequestStringInput";
310
310
  export * from "./PromptSettings";
311
+ export * from "./ComponentsSchemasPromptVersionBuildConfigSandbox";
312
+ export * from "./PromptVersionBuildConfigSandbox";
311
313
  export * from "./RawPromptExecutionOverridesRequest";
312
314
  export * from "./ReductoChunkerConfig";
313
315
  export * from "./ReductoChunkerConfigRequest";
@@ -324,6 +324,8 @@ __exportStar(require("./PromptRequestInput"), exports);
324
324
  __exportStar(require("./PromptRequestJsonInput"), exports);
325
325
  __exportStar(require("./PromptRequestStringInput"), exports);
326
326
  __exportStar(require("./PromptSettings"), exports);
327
+ __exportStar(require("./ComponentsSchemasPromptVersionBuildConfigSandbox"), exports);
328
+ __exportStar(require("./PromptVersionBuildConfigSandbox"), exports);
327
329
  __exportStar(require("./RawPromptExecutionOverridesRequest"), exports);
328
330
  __exportStar(require("./ReductoChunkerConfig"), exports);
329
331
  __exportStar(require("./ReductoChunkerConfigRequest"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.54";
1
+ export declare const SDK_VERSION = "0.14.56";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.14.54";
4
+ exports.SDK_VERSION = "0.14.56";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.14.54",
3
+ "version": "0.14.56",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -580,7 +580,8 @@ await client.deployments.retrieve("id");
580
580
  <dl>
581
581
  <dd>
582
582
 
583
- Retrieve a specific Deployment History Item by either its UUID or the name of a Release Tag that points to it.
583
+ DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the
584
+ `retrieve_prompt_deployment_release` xendpoint instead.
584
585
 
585
586
  </dd>
586
587
  </dl>
@@ -860,89 +861,7 @@ await client.deployments.updateDeploymentReleaseTag("id", "name");
860
861
  </dl>
861
862
  </details>
862
863
 
863
- <details><summary><code>client.deployments.<a href="/src/api/resources/deployments/client/Client.ts">retrieveProviderPayload</a>({ ...params }) -> Vellum.DeploymentProviderPayloadResponse</code></summary>
864
- <dl>
865
- <dd>
866
-
867
- #### 📝 Description
868
-
869
- <dl>
870
- <dd>
871
-
872
- <dl>
873
- <dd>
874
-
875
- Given a set of input variable values, compile the exact payload that Vellum would send to the configured model provider
876
- for execution if the execute-prompt endpoint had been invoked. Note that this endpoint does not actually execute the
877
- prompt or make an API call to the model provider.
878
-
879
- This endpoint is useful if you don't want to proxy LLM provider requests through Vellum and prefer to send them directly
880
- to the provider yourself. Note that no guarantees are made on the format of this API's response schema, other than
881
- that it will be a valid payload for the configured model provider. It's not recommended that you try to parse or
882
- derive meaning from the response body and instead, should simply pass it directly to the model provider as is.
883
-
884
- We encourage you to seek advise from Vellum Support before integrating with this API for production use.
885
-
886
- </dd>
887
- </dl>
888
- </dd>
889
- </dl>
890
-
891
- #### 🔌 Usage
892
-
893
- <dl>
894
- <dd>
895
-
896
- <dl>
897
- <dd>
898
-
899
- ```typescript
900
- await client.deployments.retrieveProviderPayload({
901
- inputs: [
902
- {
903
- name: "name",
904
- type: "STRING",
905
- value: "value",
906
- },
907
- ],
908
- });
909
- ```
910
-
911
- </dd>
912
- </dl>
913
- </dd>
914
- </dl>
915
-
916
- #### ⚙️ Parameters
917
-
918
- <dl>
919
- <dd>
920
-
921
- <dl>
922
- <dd>
923
-
924
- **request:** `Vellum.DeploymentProviderPayloadRequest`
925
-
926
- </dd>
927
- </dl>
928
-
929
- <dl>
930
- <dd>
931
-
932
- **requestOptions:** `Deployments.RequestOptions`
933
-
934
- </dd>
935
- </dl>
936
- </dd>
937
- </dl>
938
-
939
- </dd>
940
- </dl>
941
- </details>
942
-
943
- ## ReleaseReviews
944
-
945
- <details><summary><code>client.releaseReviews.<a href="/src/api/resources/releaseReviews/client/Client.ts">retrievePromptDeploymentRelease</a>(id, releaseIdOrReleaseTag) -> Vellum.PromptDeploymentRelease</code></summary>
864
+ <details><summary><code>client.deployments.<a href="/src/api/resources/deployments/client/Client.ts">retrievePromptDeploymentRelease</a>(id, releaseIdOrReleaseTag) -> Vellum.PromptDeploymentRelease</code></summary>
946
865
  <dl>
947
866
  <dd>
948
867
 
@@ -970,7 +889,7 @@ Retrieve a specific Prompt Deployment Release by either its UUID or the name of
970
889
  <dd>
971
890
 
972
891
  ```typescript
973
- await client.releaseReviews.retrievePromptDeploymentRelease("id", "release_id_or_release_tag");
892
+ await client.deployments.retrievePromptDeploymentRelease("id", "release_id_or_release_tag");
974
893
  ```
975
894
 
976
895
  </dd>
@@ -1002,7 +921,7 @@ await client.releaseReviews.retrievePromptDeploymentRelease("id", "release_id_or
1002
921
  <dl>
1003
922
  <dd>
1004
923
 
1005
- **requestOptions:** `ReleaseReviews.RequestOptions`
924
+ **requestOptions:** `Deployments.RequestOptions`
1006
925
 
1007
926
  </dd>
1008
927
  </dl>
@@ -1013,7 +932,7 @@ await client.releaseReviews.retrievePromptDeploymentRelease("id", "release_id_or
1013
932
  </dl>
1014
933
  </details>
1015
934
 
1016
- <details><summary><code>client.releaseReviews.<a href="/src/api/resources/releaseReviews/client/Client.ts">retrieveWorkflowDeploymentRelease</a>(id, releaseIdOrReleaseTag) -> Vellum.WorkflowDeploymentRelease</code></summary>
935
+ <details><summary><code>client.deployments.<a href="/src/api/resources/deployments/client/Client.ts">retrieveProviderPayload</a>({ ...params }) -> Vellum.DeploymentProviderPayloadResponse</code></summary>
1017
936
  <dl>
1018
937
  <dd>
1019
938
 
@@ -1025,7 +944,16 @@ await client.releaseReviews.retrievePromptDeploymentRelease("id", "release_id_or
1025
944
  <dl>
1026
945
  <dd>
1027
946
 
1028
- Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
947
+ Given a set of input variable values, compile the exact payload that Vellum would send to the configured model provider
948
+ for execution if the execute-prompt endpoint had been invoked. Note that this endpoint does not actually execute the
949
+ prompt or make an API call to the model provider.
950
+
951
+ This endpoint is useful if you don't want to proxy LLM provider requests through Vellum and prefer to send them directly
952
+ to the provider yourself. Note that no guarantees are made on the format of this API's response schema, other than
953
+ that it will be a valid payload for the configured model provider. It's not recommended that you try to parse or
954
+ derive meaning from the response body and instead, should simply pass it directly to the model provider as is.
955
+
956
+ We encourage you to seek advise from Vellum Support before integrating with this API for production use.
1029
957
 
1030
958
  </dd>
1031
959
  </dl>
@@ -1041,7 +969,15 @@ Retrieve a specific Workflow Deployment Release by either its UUID or the name o
1041
969
  <dd>
1042
970
 
1043
971
  ```typescript
1044
- await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_or_release_tag");
972
+ await client.deployments.retrieveProviderPayload({
973
+ inputs: [
974
+ {
975
+ name: "name",
976
+ type: "STRING",
977
+ value: "value",
978
+ },
979
+ ],
980
+ });
1045
981
  ```
1046
982
 
1047
983
  </dd>
@@ -1057,15 +993,7 @@ await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_
1057
993
  <dl>
1058
994
  <dd>
1059
995
 
1060
- **id:** `string` — A UUID string identifying this workflow deployment.
1061
-
1062
- </dd>
1063
- </dl>
1064
-
1065
- <dl>
1066
- <dd>
1067
-
1068
- **releaseIdOrReleaseTag:** `string` — Either the UUID of Workflow Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment Release you'd like to retrieve.
996
+ **request:** `Vellum.DeploymentProviderPayloadRequest`
1069
997
 
1070
998
  </dd>
1071
999
  </dl>
@@ -1073,7 +1001,7 @@ await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_
1073
1001
  <dl>
1074
1002
  <dd>
1075
1003
 
1076
- **requestOptions:** `ReleaseReviews.RequestOptions`
1004
+ **requestOptions:** `Deployments.RequestOptions`
1077
1005
 
1078
1006
  </dd>
1079
1007
  </dl>
@@ -3543,7 +3471,8 @@ await client.workflowDeployments.workflowDeploymentEventExecution("execution_id"
3543
3471
  <dl>
3544
3472
  <dd>
3545
3473
 
3546
- Retrieve a specific Workflow Deployment History Item by either its UUID or the name of a Release Tag that points to it.
3474
+ DEPRECATED: This endpoint is deprecated and will be removed in a future release. Please use the
3475
+ `retrieve_workflow_deployment_release` endpoint instead.
3547
3476
 
3548
3477
  </dd>
3549
3478
  </dl>
@@ -3823,6 +3752,79 @@ await client.workflowDeployments.updateWorkflowReleaseTag("id", "name");
3823
3752
  </dl>
3824
3753
  </details>
3825
3754
 
3755
+ ## ReleaseReviews
3756
+
3757
+ <details><summary><code>client.releaseReviews.<a href="/src/api/resources/releaseReviews/client/Client.ts">retrieveWorkflowDeploymentRelease</a>(id, releaseIdOrReleaseTag) -> Vellum.WorkflowDeploymentRelease</code></summary>
3758
+ <dl>
3759
+ <dd>
3760
+
3761
+ #### 📝 Description
3762
+
3763
+ <dl>
3764
+ <dd>
3765
+
3766
+ <dl>
3767
+ <dd>
3768
+
3769
+ Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
3770
+
3771
+ </dd>
3772
+ </dl>
3773
+ </dd>
3774
+ </dl>
3775
+
3776
+ #### 🔌 Usage
3777
+
3778
+ <dl>
3779
+ <dd>
3780
+
3781
+ <dl>
3782
+ <dd>
3783
+
3784
+ ```typescript
3785
+ await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_or_release_tag");
3786
+ ```
3787
+
3788
+ </dd>
3789
+ </dl>
3790
+ </dd>
3791
+ </dl>
3792
+
3793
+ #### ⚙️ Parameters
3794
+
3795
+ <dl>
3796
+ <dd>
3797
+
3798
+ <dl>
3799
+ <dd>
3800
+
3801
+ **id:** `string` — A UUID string identifying this workflow deployment.
3802
+
3803
+ </dd>
3804
+ </dl>
3805
+
3806
+ <dl>
3807
+ <dd>
3808
+
3809
+ **releaseIdOrReleaseTag:** `string` — Either the UUID of Workflow Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment Release you'd like to retrieve.
3810
+
3811
+ </dd>
3812
+ </dl>
3813
+
3814
+ <dl>
3815
+ <dd>
3816
+
3817
+ **requestOptions:** `ReleaseReviews.RequestOptions`
3818
+
3819
+ </dd>
3820
+ </dl>
3821
+ </dd>
3822
+ </dl>
3823
+
3824
+ </dd>
3825
+ </dl>
3826
+ </details>
3827
+
3826
3828
  ## WorkflowSandboxes
3827
3829
 
3828
3830
  <details><summary><code>client.workflowSandboxes.<a href="/src/api/resources/workflowSandboxes/client/Client.ts">deployWorkflow</a>(id, workflowId, { ...params }) -> Vellum.WorkflowDeploymentRead</code></summary>
@@ -0,0 +1,11 @@
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 { PromptVersionBuildConfigSandbox } from "./PromptVersionBuildConfigSandbox";
8
+ export declare const ComponentsSchemasPromptVersionBuildConfigSandbox: core.serialization.ObjectSchema<serializers.ComponentsSchemasPromptVersionBuildConfigSandbox.Raw, Vellum.ComponentsSchemasPromptVersionBuildConfigSandbox>;
9
+ export declare namespace ComponentsSchemasPromptVersionBuildConfigSandbox {
10
+ type Raw = PromptVersionBuildConfigSandbox.Raw;
11
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ComponentsSchemasPromptVersionBuildConfigSandbox = void 0;
7
+ const PromptVersionBuildConfigSandbox_1 = require("./PromptVersionBuildConfigSandbox");
8
+ exports.ComponentsSchemasPromptVersionBuildConfigSandbox = PromptVersionBuildConfigSandbox_1.PromptVersionBuildConfigSandbox;
@@ -6,5 +6,5 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const ExecuteApiRequestBody: core.serialization.Schema<serializers.ExecuteApiRequestBody.Raw, Vellum.ExecuteApiRequestBody>;
8
8
  export declare namespace ExecuteApiRequestBody {
9
- type Raw = string | Record<string, unknown>;
9
+ type Raw = string | unknown[] | Record<string, unknown>;
10
10
  }
@@ -40,5 +40,6 @@ exports.ExecuteApiRequestBody = void 0;
40
40
  const core = __importStar(require("../../core"));
41
41
  exports.ExecuteApiRequestBody = core.serialization.undiscriminatedUnion([
42
42
  core.serialization.string(),
43
+ core.serialization.list(core.serialization.unknown()),
43
44
  core.serialization.record(core.serialization.string(), core.serialization.unknown()),
44
45
  ]);
@@ -4,9 +4,11 @@
4
4
  import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
+ import { ComponentsSchemasPromptVersionBuildConfigSandbox } from "./ComponentsSchemasPromptVersionBuildConfigSandbox";
7
8
  export declare const PromptDeploymentReleasePromptVersion: core.serialization.ObjectSchema<serializers.PromptDeploymentReleasePromptVersion.Raw, Vellum.PromptDeploymentReleasePromptVersion>;
8
9
  export declare namespace PromptDeploymentReleasePromptVersion {
9
10
  interface Raw {
10
11
  id: string;
12
+ build_config: ComponentsSchemasPromptVersionBuildConfigSandbox.Raw;
11
13
  }
12
14
  }