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
@@ -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/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/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";