vellum-ai 0.10.0 → 0.10.1

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 (95) hide show
  1. package/.mock/definition/__package__.yml +12 -0
  2. package/.mock/definition/deployments.yml +3 -0
  3. package/.mock/definition/mlModels.yml +34 -0
  4. package/.mock/definition/workflowDeployments.yml +3 -0
  5. package/.mock/openapi/openapi.yml +48 -1
  6. package/Client.d.ts +3 -0
  7. package/Client.js +29 -24
  8. package/api/resources/adHoc/client/Client.js +1 -1
  9. package/api/resources/containerImages/client/Client.js +4 -4
  10. package/api/resources/deployments/client/Client.d.ts +11 -0
  11. package/api/resources/deployments/client/Client.js +59 -6
  12. package/api/resources/documentIndexes/client/Client.js +8 -8
  13. package/api/resources/documents/client/Client.js +5 -5
  14. package/api/resources/folderEntities/client/Client.js +2 -2
  15. package/api/resources/index.d.ts +1 -0
  16. package/api/resources/index.js +2 -1
  17. package/api/resources/metricDefinitions/client/Client.js +1 -1
  18. package/api/resources/mlModels/client/Client.d.ts +37 -0
  19. package/api/resources/mlModels/client/Client.js +110 -0
  20. package/api/resources/mlModels/client/index.d.ts +1 -0
  21. package/api/resources/mlModels/client/index.js +2 -0
  22. package/api/resources/mlModels/index.d.ts +1 -0
  23. package/api/resources/mlModels/index.js +17 -0
  24. package/api/resources/sandboxes/client/Client.js +3 -3
  25. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  26. package/api/resources/testSuites/client/Client.js +4 -4
  27. package/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  28. package/api/resources/workflowDeployments/client/Client.js +58 -5
  29. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  30. package/api/resources/workflows/client/Client.js +2 -2
  31. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  32. package/api/types/DeploymentHistoryItem.d.ts +16 -0
  33. package/api/types/DeploymentHistoryItem.js +5 -0
  34. package/api/types/MlModelRead.d.ts +11 -0
  35. package/api/types/MlModelRead.js +5 -0
  36. package/api/types/WorkflowDeploymentHistoryItem.d.ts +17 -0
  37. package/api/types/WorkflowDeploymentHistoryItem.js +5 -0
  38. package/api/types/index.d.ts +3 -0
  39. package/api/types/index.js +3 -0
  40. package/dist/Client.d.ts +3 -0
  41. package/dist/Client.js +29 -24
  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.d.ts +11 -0
  45. package/dist/api/resources/deployments/client/Client.js +59 -6
  46. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  47. package/dist/api/resources/documents/client/Client.js +5 -5
  48. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  49. package/dist/api/resources/index.d.ts +1 -0
  50. package/dist/api/resources/index.js +2 -1
  51. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  52. package/dist/api/resources/mlModels/client/Client.d.ts +37 -0
  53. package/dist/api/resources/mlModels/client/Client.js +110 -0
  54. package/dist/api/resources/mlModels/client/index.d.ts +1 -0
  55. package/dist/api/resources/mlModels/client/index.js +2 -0
  56. package/dist/api/resources/mlModels/index.d.ts +1 -0
  57. package/dist/api/resources/mlModels/index.js +17 -0
  58. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  59. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  60. package/dist/api/resources/testSuites/client/Client.js +4 -4
  61. package/dist/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  62. package/dist/api/resources/workflowDeployments/client/Client.js +58 -5
  63. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  64. package/dist/api/resources/workflows/client/Client.js +2 -2
  65. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  66. package/dist/api/types/DeploymentHistoryItem.d.ts +16 -0
  67. package/dist/api/types/DeploymentHistoryItem.js +5 -0
  68. package/dist/api/types/MlModelRead.d.ts +11 -0
  69. package/dist/api/types/MlModelRead.js +5 -0
  70. package/dist/api/types/WorkflowDeploymentHistoryItem.d.ts +17 -0
  71. package/dist/api/types/WorkflowDeploymentHistoryItem.js +5 -0
  72. package/dist/api/types/index.d.ts +3 -0
  73. package/dist/api/types/index.js +3 -0
  74. package/dist/serialization/types/DeploymentHistoryItem.d.ts +19 -0
  75. package/dist/serialization/types/DeploymentHistoryItem.js +40 -0
  76. package/dist/serialization/types/MlModelRead.d.ts +13 -0
  77. package/dist/serialization/types/MlModelRead.js +34 -0
  78. package/dist/serialization/types/WorkflowDeploymentHistoryItem.d.ts +20 -0
  79. package/dist/serialization/types/WorkflowDeploymentHistoryItem.js +41 -0
  80. package/dist/serialization/types/index.d.ts +3 -0
  81. package/dist/serialization/types/index.js +3 -0
  82. package/dist/version.d.ts +1 -1
  83. package/dist/version.js +1 -1
  84. package/package.json +1 -1
  85. package/reference.md +207 -0
  86. package/serialization/types/DeploymentHistoryItem.d.ts +19 -0
  87. package/serialization/types/DeploymentHistoryItem.js +40 -0
  88. package/serialization/types/MlModelRead.d.ts +13 -0
  89. package/serialization/types/MlModelRead.js +34 -0
  90. package/serialization/types/WorkflowDeploymentHistoryItem.d.ts +20 -0
  91. package/serialization/types/WorkflowDeploymentHistoryItem.js +41 -0
  92. package/serialization/types/index.d.ts +3 -0
  93. package/serialization/types/index.js +3 -0
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
@@ -65,7 +65,7 @@ class Workflows {
65
65
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
66
66
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
67
67
  method: "GET",
68
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
69
  contentType: "application/json",
70
70
  queryParameters: _queryParams,
71
71
  requestType: "json",
@@ -136,7 +136,7 @@ class Workflows {
136
136
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
137
137
  .default, "v1/workflows/push"),
138
138
  method: "POST",
139
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
139
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
140
140
  requestType: "file",
141
141
  duplex: _maybeEncodedRequest.duplex,
142
142
  body: _maybeEncodedRequest.body,
@@ -64,7 +64,7 @@ class WorkspaceSecrets {
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/workspace-secrets/${encodeURIComponent(id)}`),
66
66
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "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.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -117,7 +117,7 @@ class WorkspaceSecrets {
117
117
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
118
118
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
119
119
  method: "PATCH",
120
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.0", "User-Agent": "vellum-ai/0.10.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.10.1", "User-Agent": "vellum-ai/0.10.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
121
  contentType: "application/json",
122
122
  requestType: "json",
123
123
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface DeploymentHistoryItem {
6
+ id: string;
7
+ deploymentId: string;
8
+ timestamp: Date;
9
+ /** A human-readable label for the deployment */
10
+ label: string;
11
+ /** A name that uniquely identifies this deployment within its workspace */
12
+ name: string;
13
+ inputVariables: Vellum.VellumVariable[];
14
+ /** A human-readable description of the deployment */
15
+ description?: string;
16
+ }
@@ -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,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * An ML Model that your Workspace has access to.
6
+ */
7
+ export interface MlModelRead {
8
+ id: string;
9
+ /** The unique name of the ML Model. */
10
+ name: string;
11
+ }
@@ -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,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ export interface WorkflowDeploymentHistoryItem {
6
+ id: string;
7
+ workflowDeploymentId: string;
8
+ timestamp: Date;
9
+ /** A human-readable label for the workflow deployment */
10
+ label: string;
11
+ /** A name that uniquely identifies this workflow deployment within its workspace */
12
+ name: string;
13
+ inputVariables: Vellum.VellumVariable[];
14
+ outputVariables: Vellum.VellumVariable[];
15
+ /** A human-readable description of the workflow deployment */
16
+ description?: string;
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 });
@@ -61,6 +61,7 @@ export * from "./ConditionalNodeResult";
61
61
  export * from "./ConditionalNodeResultData";
62
62
  export * from "./ContainerImageRead";
63
63
  export * from "./CreateTestSuiteTestCaseRequest";
64
+ export * from "./DeploymentHistoryItem";
64
65
  export * from "./DeploymentProviderPayloadResponsePayload";
65
66
  export * from "./DeploymentProviderPayloadResponse";
66
67
  export * from "./DeploymentRead";
@@ -171,6 +172,7 @@ export * from "./JsonVellumValue";
171
172
  export * from "./JsonVellumValueRequest";
172
173
  export * from "./LogicalOperator";
173
174
  export * from "./LogprobsEnum";
175
+ export * from "./MlModelRead";
174
176
  export * from "./MlModelUsage";
175
177
  export * from "./MapNodeResult";
176
178
  export * from "./MapNodeResultData";
@@ -432,6 +434,7 @@ export * from "./VellumValueRequest";
432
434
  export * from "./VellumVariable";
433
435
  export * from "./VellumVariableExtensions";
434
436
  export * from "./VellumVariableType";
437
+ export * from "./WorkflowDeploymentHistoryItem";
435
438
  export * from "./WorkflowDeploymentRead";
436
439
  export * from "./WorkflowEventError";
437
440
  export * from "./WorkflowExecutionActualChatHistoryRequest";
@@ -77,6 +77,7 @@ __exportStar(require("./ConditionalNodeResult"), exports);
77
77
  __exportStar(require("./ConditionalNodeResultData"), exports);
78
78
  __exportStar(require("./ContainerImageRead"), exports);
79
79
  __exportStar(require("./CreateTestSuiteTestCaseRequest"), exports);
80
+ __exportStar(require("./DeploymentHistoryItem"), exports);
80
81
  __exportStar(require("./DeploymentProviderPayloadResponsePayload"), exports);
81
82
  __exportStar(require("./DeploymentProviderPayloadResponse"), exports);
82
83
  __exportStar(require("./DeploymentRead"), exports);
@@ -187,6 +188,7 @@ __exportStar(require("./JsonVellumValue"), exports);
187
188
  __exportStar(require("./JsonVellumValueRequest"), exports);
188
189
  __exportStar(require("./LogicalOperator"), exports);
189
190
  __exportStar(require("./LogprobsEnum"), exports);
191
+ __exportStar(require("./MlModelRead"), exports);
190
192
  __exportStar(require("./MlModelUsage"), exports);
191
193
  __exportStar(require("./MapNodeResult"), exports);
192
194
  __exportStar(require("./MapNodeResultData"), exports);
@@ -448,6 +450,7 @@ __exportStar(require("./VellumValueRequest"), exports);
448
450
  __exportStar(require("./VellumVariable"), exports);
449
451
  __exportStar(require("./VellumVariableExtensions"), exports);
450
452
  __exportStar(require("./VellumVariableType"), exports);
453
+ __exportStar(require("./WorkflowDeploymentHistoryItem"), exports);
451
454
  __exportStar(require("./WorkflowDeploymentRead"), exports);
452
455
  __exportStar(require("./WorkflowEventError"), exports);
453
456
  __exportStar(require("./WorkflowExecutionActualChatHistoryRequest"), exports);
@@ -0,0 +1,19 @@
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 { VellumVariable } from "./VellumVariable";
8
+ export declare const DeploymentHistoryItem: core.serialization.ObjectSchema<serializers.DeploymentHistoryItem.Raw, Vellum.DeploymentHistoryItem>;
9
+ export declare namespace DeploymentHistoryItem {
10
+ interface Raw {
11
+ id: string;
12
+ deployment_id: string;
13
+ timestamp: string;
14
+ label: string;
15
+ name: string;
16
+ input_variables: VellumVariable.Raw[];
17
+ description?: string | null;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DeploymentHistoryItem = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const VellumVariable_1 = require("./VellumVariable");
32
+ exports.DeploymentHistoryItem = core.serialization.object({
33
+ id: core.serialization.string(),
34
+ deploymentId: core.serialization.property("deployment_id", core.serialization.string()),
35
+ timestamp: core.serialization.date(),
36
+ label: core.serialization.string(),
37
+ name: core.serialization.string(),
38
+ inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
39
+ description: core.serialization.string().optional(),
40
+ });
@@ -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 MlModelRead: core.serialization.ObjectSchema<serializers.MlModelRead.Raw, Vellum.MlModelRead>;
8
+ export declare namespace MlModelRead {
9
+ interface Raw {
10
+ id: string;
11
+ name: string;
12
+ }
13
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.MlModelRead = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ exports.MlModelRead = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ name: core.serialization.string(),
34
+ });
@@ -0,0 +1,20 @@
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 { VellumVariable } from "./VellumVariable";
8
+ export declare const WorkflowDeploymentHistoryItem: core.serialization.ObjectSchema<serializers.WorkflowDeploymentHistoryItem.Raw, Vellum.WorkflowDeploymentHistoryItem>;
9
+ export declare namespace WorkflowDeploymentHistoryItem {
10
+ interface Raw {
11
+ id: string;
12
+ workflow_deployment_id: string;
13
+ timestamp: string;
14
+ label: string;
15
+ name: string;
16
+ input_variables: VellumVariable.Raw[];
17
+ output_variables: VellumVariable.Raw[];
18
+ description?: string | null;
19
+ }
20
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.WorkflowDeploymentHistoryItem = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const VellumVariable_1 = require("./VellumVariable");
32
+ exports.WorkflowDeploymentHistoryItem = core.serialization.object({
33
+ id: core.serialization.string(),
34
+ workflowDeploymentId: core.serialization.property("workflow_deployment_id", core.serialization.string()),
35
+ timestamp: core.serialization.date(),
36
+ label: core.serialization.string(),
37
+ name: core.serialization.string(),
38
+ inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
39
+ outputVariables: core.serialization.property("output_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
40
+ description: core.serialization.string().optional(),
41
+ });
@@ -61,6 +61,7 @@ export * from "./ConditionalNodeResult";
61
61
  export * from "./ConditionalNodeResultData";
62
62
  export * from "./ContainerImageRead";
63
63
  export * from "./CreateTestSuiteTestCaseRequest";
64
+ export * from "./DeploymentHistoryItem";
64
65
  export * from "./DeploymentProviderPayloadResponsePayload";
65
66
  export * from "./DeploymentProviderPayloadResponse";
66
67
  export * from "./DeploymentRead";
@@ -171,6 +172,7 @@ export * from "./JsonVellumValue";
171
172
  export * from "./JsonVellumValueRequest";
172
173
  export * from "./LogicalOperator";
173
174
  export * from "./LogprobsEnum";
175
+ export * from "./MlModelRead";
174
176
  export * from "./MlModelUsage";
175
177
  export * from "./MapNodeResult";
176
178
  export * from "./MapNodeResultData";
@@ -432,6 +434,7 @@ export * from "./VellumValueRequest";
432
434
  export * from "./VellumVariable";
433
435
  export * from "./VellumVariableExtensions";
434
436
  export * from "./VellumVariableType";
437
+ export * from "./WorkflowDeploymentHistoryItem";
435
438
  export * from "./WorkflowDeploymentRead";
436
439
  export * from "./WorkflowEventError";
437
440
  export * from "./WorkflowExecutionActualChatHistoryRequest";
@@ -77,6 +77,7 @@ __exportStar(require("./ConditionalNodeResult"), exports);
77
77
  __exportStar(require("./ConditionalNodeResultData"), exports);
78
78
  __exportStar(require("./ContainerImageRead"), exports);
79
79
  __exportStar(require("./CreateTestSuiteTestCaseRequest"), exports);
80
+ __exportStar(require("./DeploymentHistoryItem"), exports);
80
81
  __exportStar(require("./DeploymentProviderPayloadResponsePayload"), exports);
81
82
  __exportStar(require("./DeploymentProviderPayloadResponse"), exports);
82
83
  __exportStar(require("./DeploymentRead"), exports);
@@ -187,6 +188,7 @@ __exportStar(require("./JsonVellumValue"), exports);
187
188
  __exportStar(require("./JsonVellumValueRequest"), exports);
188
189
  __exportStar(require("./LogicalOperator"), exports);
189
190
  __exportStar(require("./LogprobsEnum"), exports);
191
+ __exportStar(require("./MlModelRead"), exports);
190
192
  __exportStar(require("./MlModelUsage"), exports);
191
193
  __exportStar(require("./MapNodeResult"), exports);
192
194
  __exportStar(require("./MapNodeResultData"), exports);
@@ -448,6 +450,7 @@ __exportStar(require("./VellumValueRequest"), exports);
448
450
  __exportStar(require("./VellumVariable"), exports);
449
451
  __exportStar(require("./VellumVariableExtensions"), exports);
450
452
  __exportStar(require("./VellumVariableType"), exports);
453
+ __exportStar(require("./WorkflowDeploymentHistoryItem"), exports);
451
454
  __exportStar(require("./WorkflowDeploymentRead"), exports);
452
455
  __exportStar(require("./WorkflowEventError"), exports);
453
456
  __exportStar(require("./WorkflowExecutionActualChatHistoryRequest"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.10.0";
1
+ export declare const SDK_VERSION = "0.10.1";
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.10.0";
4
+ exports.SDK_VERSION = "0.10.1";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -597,6 +597,77 @@ await client.deployments.retrieve("id");
597
597
  </dl>
598
598
  </details>
599
599
 
600
+ <details><summary><code>client.deployments.<a href="/src/api/resources/deployments/client/Client.ts">deploymentHistoryItemRetrieve</a>(historyIdOrReleaseTag, id) -> Vellum.DeploymentHistoryItem</code></summary>
601
+ <dl>
602
+ <dd>
603
+
604
+ #### 📝 Description
605
+
606
+ <dl>
607
+ <dd>
608
+
609
+ <dl>
610
+ <dd>
611
+
612
+ Retrieve a specific Deployment History Item by either its UUID or the name of a Release Tag that points to it.
613
+
614
+ </dd>
615
+ </dl>
616
+ </dd>
617
+ </dl>
618
+
619
+ #### 🔌 Usage
620
+
621
+ <dl>
622
+ <dd>
623
+
624
+ <dl>
625
+ <dd>
626
+
627
+ ```typescript
628
+ await client.deployments.deploymentHistoryItemRetrieve("history_id_or_release_tag", "id");
629
+ ```
630
+
631
+ </dd>
632
+ </dl>
633
+ </dd>
634
+ </dl>
635
+
636
+ #### ⚙️ Parameters
637
+
638
+ <dl>
639
+ <dd>
640
+
641
+ <dl>
642
+ <dd>
643
+
644
+ **historyIdOrReleaseTag:** `string` — Either the UUID of Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Deployment History Item you'd like to retrieve.
645
+
646
+ </dd>
647
+ </dl>
648
+
649
+ <dl>
650
+ <dd>
651
+
652
+ **id:** `string` — A UUID string identifying this deployment.
653
+
654
+ </dd>
655
+ </dl>
656
+
657
+ <dl>
658
+ <dd>
659
+
660
+ **requestOptions:** `Deployments.RequestOptions`
661
+
662
+ </dd>
663
+ </dl>
664
+ </dd>
665
+ </dl>
666
+
667
+ </dd>
668
+ </dl>
669
+ </details>
670
+
600
671
  <details><summary><code>client.deployments.<a href="/src/api/resources/deployments/client/Client.ts">listDeploymentReleaseTags</a>(id, { ...params }) -> Vellum.PaginatedDeploymentReleaseTagReadList</code></summary>
601
672
  <dl>
602
673
  <dd>
@@ -2033,6 +2104,71 @@ await client.metricDefinitions.executeMetricDefinition("id", {
2033
2104
  </dl>
2034
2105
  </details>
2035
2106
 
2107
+ ## MlModels
2108
+
2109
+ <details><summary><code>client.mlModels.<a href="/src/api/resources/mlModels/client/Client.ts">retrieve</a>(id) -> Vellum.MlModelRead</code></summary>
2110
+ <dl>
2111
+ <dd>
2112
+
2113
+ #### 📝 Description
2114
+
2115
+ <dl>
2116
+ <dd>
2117
+
2118
+ <dl>
2119
+ <dd>
2120
+
2121
+ Retrieve details about an ML Model
2122
+
2123
+ </dd>
2124
+ </dl>
2125
+ </dd>
2126
+ </dl>
2127
+
2128
+ #### 🔌 Usage
2129
+
2130
+ <dl>
2131
+ <dd>
2132
+
2133
+ <dl>
2134
+ <dd>
2135
+
2136
+ ```typescript
2137
+ await client.mlModels.retrieve("id");
2138
+ ```
2139
+
2140
+ </dd>
2141
+ </dl>
2142
+ </dd>
2143
+ </dl>
2144
+
2145
+ #### ⚙️ Parameters
2146
+
2147
+ <dl>
2148
+ <dd>
2149
+
2150
+ <dl>
2151
+ <dd>
2152
+
2153
+ **id:** `string` — Either the ML Model's ID, its unique name, or its ID in the workspace.
2154
+
2155
+ </dd>
2156
+ </dl>
2157
+
2158
+ <dl>
2159
+ <dd>
2160
+
2161
+ **requestOptions:** `MlModels.RequestOptions`
2162
+
2163
+ </dd>
2164
+ </dl>
2165
+ </dd>
2166
+ </dl>
2167
+
2168
+ </dd>
2169
+ </dl>
2170
+ </details>
2171
+
2036
2172
  ## Sandboxes
2037
2173
 
2038
2174
  <details><summary><code>client.sandboxes.<a href="/src/api/resources/sandboxes/client/Client.ts">deployPrompt</a>(id, promptVariantId, { ...params }) -> Vellum.DeploymentRead</code></summary>
@@ -2908,6 +3044,77 @@ await client.workflowDeployments.retrieve("id");
2908
3044
  </dl>
2909
3045
  </details>
2910
3046
 
3047
+ <details><summary><code>client.workflowDeployments.<a href="/src/api/resources/workflowDeployments/client/Client.ts">workflowDeploymentHistoryItemRetrieve</a>(historyIdOrReleaseTag, id) -> Vellum.WorkflowDeploymentHistoryItem</code></summary>
3048
+ <dl>
3049
+ <dd>
3050
+
3051
+ #### 📝 Description
3052
+
3053
+ <dl>
3054
+ <dd>
3055
+
3056
+ <dl>
3057
+ <dd>
3058
+
3059
+ Retrieve a specific Workflow Deployment History Item by either its UUID or the name of a Release Tag that points to it.
3060
+
3061
+ </dd>
3062
+ </dl>
3063
+ </dd>
3064
+ </dl>
3065
+
3066
+ #### 🔌 Usage
3067
+
3068
+ <dl>
3069
+ <dd>
3070
+
3071
+ <dl>
3072
+ <dd>
3073
+
3074
+ ```typescript
3075
+ await client.workflowDeployments.workflowDeploymentHistoryItemRetrieve("history_id_or_release_tag", "id");
3076
+ ```
3077
+
3078
+ </dd>
3079
+ </dl>
3080
+ </dd>
3081
+ </dl>
3082
+
3083
+ #### ⚙️ Parameters
3084
+
3085
+ <dl>
3086
+ <dd>
3087
+
3088
+ <dl>
3089
+ <dd>
3090
+
3091
+ **historyIdOrReleaseTag:** `string` — Either the UUID of Workflow Deployment History Item you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment History Item you'd like to retrieve.
3092
+
3093
+ </dd>
3094
+ </dl>
3095
+
3096
+ <dl>
3097
+ <dd>
3098
+
3099
+ **id:** `string` — A UUID string identifying this workflow deployment.
3100
+
3101
+ </dd>
3102
+ </dl>
3103
+
3104
+ <dl>
3105
+ <dd>
3106
+
3107
+ **requestOptions:** `WorkflowDeployments.RequestOptions`
3108
+
3109
+ </dd>
3110
+ </dl>
3111
+ </dd>
3112
+ </dl>
3113
+
3114
+ </dd>
3115
+ </dl>
3116
+ </details>
3117
+
2911
3118
  <details><summary><code>client.workflowDeployments.<a href="/src/api/resources/workflowDeployments/client/Client.ts">listWorkflowReleaseTags</a>(id, { ...params }) -> Vellum.PaginatedWorkflowReleaseTagReadList</code></summary>
2912
3119
  <dl>
2913
3120
  <dd>
@@ -0,0 +1,19 @@
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 { VellumVariable } from "./VellumVariable";
8
+ export declare const DeploymentHistoryItem: core.serialization.ObjectSchema<serializers.DeploymentHistoryItem.Raw, Vellum.DeploymentHistoryItem>;
9
+ export declare namespace DeploymentHistoryItem {
10
+ interface Raw {
11
+ id: string;
12
+ deployment_id: string;
13
+ timestamp: string;
14
+ label: string;
15
+ name: string;
16
+ input_variables: VellumVariable.Raw[];
17
+ description?: string | null;
18
+ }
19
+ }