vellum-ai 0.14.26 → 0.14.27

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 (84) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +32 -27
  3. package/api/resources/adHoc/client/Client.js +1 -1
  4. package/api/resources/containerImages/client/Client.js +4 -4
  5. package/api/resources/deployments/client/Client.js +7 -7
  6. package/api/resources/documentIndexes/client/Client.js +8 -8
  7. package/api/resources/documents/client/Client.js +5 -5
  8. package/api/resources/folderEntities/client/Client.js +2 -2
  9. package/api/resources/index.d.ts +2 -0
  10. package/api/resources/index.js +3 -1
  11. package/api/resources/metricDefinitions/client/Client.js +2 -2
  12. package/api/resources/mlModels/client/Client.js +1 -1
  13. package/api/resources/organizations/client/Client.js +1 -1
  14. package/api/resources/prompts/client/Client.d.ts +45 -0
  15. package/api/resources/prompts/client/Client.js +138 -0
  16. package/api/resources/prompts/client/index.d.ts +1 -0
  17. package/api/resources/prompts/client/index.js +17 -0
  18. package/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
  19. package/api/resources/prompts/client/requests/PromptsPullRequest.js +5 -0
  20. package/api/resources/prompts/client/requests/index.d.ts +1 -0
  21. package/api/resources/prompts/client/requests/index.js +2 -0
  22. package/api/resources/prompts/index.d.ts +1 -0
  23. package/api/resources/prompts/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.js +8 -8
  28. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  29. package/api/resources/workflows/client/Client.js +2 -2
  30. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  31. package/api/resources/workspaces/client/Client.js +1 -1
  32. package/api/types/PromptExecConfig.d.ts +12 -0
  33. package/api/types/PromptExecConfig.js +5 -0
  34. package/api/types/index.d.ts +1 -0
  35. package/api/types/index.js +1 -0
  36. package/dist/Client.d.ts +3 -0
  37. package/dist/Client.js +32 -27
  38. package/dist/api/resources/adHoc/client/Client.js +1 -1
  39. package/dist/api/resources/containerImages/client/Client.js +4 -4
  40. package/dist/api/resources/deployments/client/Client.js +7 -7
  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 +2 -0
  45. package/dist/api/resources/index.js +3 -1
  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.d.ts +45 -0
  50. package/dist/api/resources/prompts/client/Client.js +138 -0
  51. package/dist/api/resources/prompts/client/index.d.ts +1 -0
  52. package/dist/api/resources/prompts/client/index.js +17 -0
  53. package/dist/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
  54. package/dist/api/resources/prompts/client/requests/PromptsPullRequest.js +5 -0
  55. package/dist/api/resources/prompts/client/requests/index.d.ts +1 -0
  56. package/dist/api/resources/prompts/client/requests/index.js +2 -0
  57. package/dist/api/resources/prompts/index.d.ts +1 -0
  58. package/dist/api/resources/prompts/index.js +17 -0
  59. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  60. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  61. package/dist/api/resources/testSuites/client/Client.js +4 -4
  62. package/dist/api/resources/workflowDeployments/client/Client.js +8 -8
  63. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  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/resources/workspaces/client/Client.js +1 -1
  67. package/dist/api/types/PromptExecConfig.d.ts +12 -0
  68. package/dist/api/types/PromptExecConfig.js +5 -0
  69. package/dist/api/types/index.d.ts +1 -0
  70. package/dist/api/types/index.js +1 -0
  71. package/dist/serialization/types/PromptExecConfig.d.ts +21 -0
  72. package/dist/serialization/types/PromptExecConfig.js +53 -0
  73. package/dist/serialization/types/index.d.ts +1 -0
  74. package/dist/serialization/types/index.js +1 -0
  75. package/dist/version.d.ts +1 -1
  76. package/dist/version.js +1 -1
  77. package/package.json +1 -1
  78. package/reference.md +73 -0
  79. package/serialization/types/PromptExecConfig.d.ts +21 -0
  80. package/serialization/types/PromptExecConfig.js +53 -0
  81. package/serialization/types/index.d.ts +1 -0
  82. package/serialization/types/index.js +1 -0
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
@@ -0,0 +1,53 @@
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.PromptExecConfig = void 0;
40
+ const serializers = __importStar(require("../index"));
41
+ const core = __importStar(require("../../core"));
42
+ const VellumVariable_1 = require("./VellumVariable");
43
+ const PromptParameters_1 = require("./PromptParameters");
44
+ const PromptSettings_1 = require("./PromptSettings");
45
+ const FunctionDefinition_1 = require("./FunctionDefinition");
46
+ exports.PromptExecConfig = core.serialization.object({
47
+ mlModel: core.serialization.property("ml_model", core.serialization.string()),
48
+ inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
49
+ parameters: PromptParameters_1.PromptParameters,
50
+ settings: PromptSettings_1.PromptSettings.optional(),
51
+ blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
52
+ functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
53
+ });
@@ -292,6 +292,7 @@ export * from "./PromptBlockState";
292
292
  export * from "./PromptDeploymentExpandMetaRequest";
293
293
  export * from "./PromptDeploymentInputRequest";
294
294
  export * from "./PromptDeploymentParentContext";
295
+ export * from "./PromptExecConfig";
295
296
  export * from "./PromptExecutionMeta";
296
297
  export * from "./PromptNodeExecutionMeta";
297
298
  export * from "./PromptNodeResult";
@@ -308,6 +308,7 @@ __exportStar(require("./PromptBlockState"), exports);
308
308
  __exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
309
309
  __exportStar(require("./PromptDeploymentInputRequest"), exports);
310
310
  __exportStar(require("./PromptDeploymentParentContext"), exports);
311
+ __exportStar(require("./PromptExecConfig"), exports);
311
312
  __exportStar(require("./PromptExecutionMeta"), exports);
312
313
  __exportStar(require("./PromptNodeExecutionMeta"), exports);
313
314
  __exportStar(require("./PromptNodeResult"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.26";
1
+ export declare const SDK_VERSION = "0.14.27";
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.26";
4
+ exports.SDK_VERSION = "0.14.27";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.14.26",
3
+ "version": "0.14.27",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -2167,6 +2167,79 @@ await client.organizations.organizationIdentity();
2167
2167
  </dl>
2168
2168
  </details>
2169
2169
 
2170
+ ## Prompts
2171
+
2172
+ <details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">pull</a>(id, { ...params }) -> Vellum.PromptExecConfig</code></summary>
2173
+ <dl>
2174
+ <dd>
2175
+
2176
+ #### 📝 Description
2177
+
2178
+ <dl>
2179
+ <dd>
2180
+
2181
+ <dl>
2182
+ <dd>
2183
+
2184
+ Used to pull the definition of a Prompt from Vellum.
2185
+
2186
+ </dd>
2187
+ </dl>
2188
+ </dd>
2189
+ </dl>
2190
+
2191
+ #### 🔌 Usage
2192
+
2193
+ <dl>
2194
+ <dd>
2195
+
2196
+ <dl>
2197
+ <dd>
2198
+
2199
+ ```typescript
2200
+ await client.prompts.pull("id");
2201
+ ```
2202
+
2203
+ </dd>
2204
+ </dl>
2205
+ </dd>
2206
+ </dl>
2207
+
2208
+ #### ⚙️ Parameters
2209
+
2210
+ <dl>
2211
+ <dd>
2212
+
2213
+ <dl>
2214
+ <dd>
2215
+
2216
+ **id:** `string` — The ID of the Prompt to pull from. Prompt Sandbox IDs are currently supported.
2217
+
2218
+ </dd>
2219
+ </dl>
2220
+
2221
+ <dl>
2222
+ <dd>
2223
+
2224
+ **request:** `Vellum.PromptsPullRequest`
2225
+
2226
+ </dd>
2227
+ </dl>
2228
+
2229
+ <dl>
2230
+ <dd>
2231
+
2232
+ **requestOptions:** `Prompts.RequestOptions`
2233
+
2234
+ </dd>
2235
+ </dl>
2236
+ </dd>
2237
+ </dl>
2238
+
2239
+ </dd>
2240
+ </dl>
2241
+ </details>
2242
+
2170
2243
  ## Sandboxes
2171
2244
 
2172
2245
  <details><summary><code>client.sandboxes.<a href="/src/api/resources/sandboxes/client/Client.ts">deployPrompt</a>(id, promptVariantId, { ...params }) -> Vellum.DeploymentRead</code></summary>
@@ -0,0 +1,21 @@
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
+ import { PromptParameters } from "./PromptParameters";
9
+ import { PromptSettings } from "./PromptSettings";
10
+ import { FunctionDefinition } from "./FunctionDefinition";
11
+ export declare const PromptExecConfig: core.serialization.ObjectSchema<serializers.PromptExecConfig.Raw, Vellum.PromptExecConfig>;
12
+ export declare namespace PromptExecConfig {
13
+ interface Raw {
14
+ ml_model: string;
15
+ input_variables: VellumVariable.Raw[];
16
+ parameters: PromptParameters.Raw;
17
+ settings?: PromptSettings.Raw | null;
18
+ blocks: serializers.PromptBlock.Raw[];
19
+ functions?: FunctionDefinition.Raw[] | null;
20
+ }
21
+ }
@@ -0,0 +1,53 @@
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.PromptExecConfig = void 0;
40
+ const serializers = __importStar(require("../index"));
41
+ const core = __importStar(require("../../core"));
42
+ const VellumVariable_1 = require("./VellumVariable");
43
+ const PromptParameters_1 = require("./PromptParameters");
44
+ const PromptSettings_1 = require("./PromptSettings");
45
+ const FunctionDefinition_1 = require("./FunctionDefinition");
46
+ exports.PromptExecConfig = core.serialization.object({
47
+ mlModel: core.serialization.property("ml_model", core.serialization.string()),
48
+ inputVariables: core.serialization.property("input_variables", core.serialization.list(VellumVariable_1.VellumVariable)),
49
+ parameters: PromptParameters_1.PromptParameters,
50
+ settings: PromptSettings_1.PromptSettings.optional(),
51
+ blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
52
+ functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
53
+ });
@@ -292,6 +292,7 @@ export * from "./PromptBlockState";
292
292
  export * from "./PromptDeploymentExpandMetaRequest";
293
293
  export * from "./PromptDeploymentInputRequest";
294
294
  export * from "./PromptDeploymentParentContext";
295
+ export * from "./PromptExecConfig";
295
296
  export * from "./PromptExecutionMeta";
296
297
  export * from "./PromptNodeExecutionMeta";
297
298
  export * from "./PromptNodeResult";
@@ -308,6 +308,7 @@ __exportStar(require("./PromptBlockState"), exports);
308
308
  __exportStar(require("./PromptDeploymentExpandMetaRequest"), exports);
309
309
  __exportStar(require("./PromptDeploymentInputRequest"), exports);
310
310
  __exportStar(require("./PromptDeploymentParentContext"), exports);
311
+ __exportStar(require("./PromptExecConfig"), exports);
311
312
  __exportStar(require("./PromptExecutionMeta"), exports);
312
313
  __exportStar(require("./PromptNodeExecutionMeta"), exports);
313
314
  __exportStar(require("./PromptNodeResult"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.26";
1
+ export declare const SDK_VERSION = "0.14.27";
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.14.26";
4
+ exports.SDK_VERSION = "0.14.27";