vellum-ai 0.14.26 → 0.14.28

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 (86) 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.d.ts +0 -7
  8. package/api/resources/documents/client/Client.js +5 -12
  9. package/api/resources/folderEntities/client/Client.js +2 -2
  10. package/api/resources/index.d.ts +2 -0
  11. package/api/resources/index.js +3 -1
  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.d.ts +45 -0
  16. package/api/resources/prompts/client/Client.js +138 -0
  17. package/api/resources/prompts/client/index.d.ts +1 -0
  18. package/api/resources/prompts/client/index.js +17 -0
  19. package/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
  20. package/api/resources/prompts/client/requests/PromptsPullRequest.js +5 -0
  21. package/api/resources/prompts/client/requests/index.d.ts +1 -0
  22. package/api/resources/prompts/client/requests/index.js +2 -0
  23. package/api/resources/prompts/index.d.ts +1 -0
  24. package/api/resources/prompts/index.js +17 -0
  25. package/api/resources/sandboxes/client/Client.js +3 -3
  26. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  27. package/api/resources/testSuites/client/Client.js +4 -4
  28. package/api/resources/workflowDeployments/client/Client.js +8 -8
  29. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  30. package/api/resources/workflows/client/Client.js +2 -2
  31. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  32. package/api/resources/workspaces/client/Client.js +1 -1
  33. package/api/types/PromptExecConfig.d.ts +12 -0
  34. package/api/types/PromptExecConfig.js +5 -0
  35. package/api/types/index.d.ts +1 -0
  36. package/api/types/index.js +1 -0
  37. package/dist/Client.d.ts +3 -0
  38. package/dist/Client.js +32 -27
  39. package/dist/api/resources/adHoc/client/Client.js +1 -1
  40. package/dist/api/resources/containerImages/client/Client.js +4 -4
  41. package/dist/api/resources/deployments/client/Client.js +7 -7
  42. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  43. package/dist/api/resources/documents/client/Client.d.ts +0 -7
  44. package/dist/api/resources/documents/client/Client.js +5 -12
  45. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  46. package/dist/api/resources/index.d.ts +2 -0
  47. package/dist/api/resources/index.js +3 -1
  48. package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
  49. package/dist/api/resources/mlModels/client/Client.js +1 -1
  50. package/dist/api/resources/organizations/client/Client.js +1 -1
  51. package/dist/api/resources/prompts/client/Client.d.ts +45 -0
  52. package/dist/api/resources/prompts/client/Client.js +138 -0
  53. package/dist/api/resources/prompts/client/index.d.ts +1 -0
  54. package/dist/api/resources/prompts/client/index.js +17 -0
  55. package/dist/api/resources/prompts/client/requests/PromptsPullRequest.d.ts +13 -0
  56. package/dist/api/resources/prompts/client/requests/PromptsPullRequest.js +5 -0
  57. package/dist/api/resources/prompts/client/requests/index.d.ts +1 -0
  58. package/dist/api/resources/prompts/client/requests/index.js +2 -0
  59. package/dist/api/resources/prompts/index.d.ts +1 -0
  60. package/dist/api/resources/prompts/index.js +17 -0
  61. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  62. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  63. package/dist/api/resources/testSuites/client/Client.js +4 -4
  64. package/dist/api/resources/workflowDeployments/client/Client.js +8 -8
  65. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  66. package/dist/api/resources/workflows/client/Client.js +2 -2
  67. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  68. package/dist/api/resources/workspaces/client/Client.js +1 -1
  69. package/dist/api/types/PromptExecConfig.d.ts +12 -0
  70. package/dist/api/types/PromptExecConfig.js +5 -0
  71. package/dist/api/types/index.d.ts +1 -0
  72. package/dist/api/types/index.js +1 -0
  73. package/dist/serialization/types/PromptExecConfig.d.ts +21 -0
  74. package/dist/serialization/types/PromptExecConfig.js +53 -0
  75. package/dist/serialization/types/index.d.ts +1 -0
  76. package/dist/serialization/types/index.js +1 -0
  77. package/dist/version.d.ts +1 -1
  78. package/dist/version.js +1 -1
  79. package/package.json +1 -1
  80. package/reference.md +77 -11
  81. package/serialization/types/PromptExecConfig.d.ts +21 -0
  82. package/serialization/types/PromptExecConfig.js +53 -0
  83. package/serialization/types/index.d.ts +1 -0
  84. package/serialization/types/index.js +1 -0
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
@@ -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);
@@ -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/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.26";
1
+ export declare const SDK_VERSION = "0.14.28";
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.28";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.14.26",
3
+ "version": "0.14.28",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -1707,17 +1707,10 @@ Upload a document to be indexed and used for search.
1707
1707
 
1708
1708
  **Note:** Uses a base url of `https://documents.vellum.ai`.
1709
1709
 
1710
- This is a multipart/form-data request. The `contents` field should be a file upload. It also expects a JSON body with the following fields:
1711
-
1712
- - `add_to_index_names: list[str]` - Optionally include the names of all indexes that you'd like this document to be included in
1713
- - `external_id: str | None` - Optionally include an external ID for this document. This is useful if you want to re-upload the same document later when its contents change and would like it to be re-indexed.
1714
- - `label: str` - A human-friendly name for this document. Typically the filename.
1715
- - `keywords: list[str] | None` - Optionally include a list of keywords that'll be associated with this document. Used when performing keyword searches.
1716
- - `metadata: dict[str, Any]` - A stringified JSON object containing any metadata associated with the document that you'd like to filter upon later.
1717
- </dd>
1718
- </dl>
1719
- </dd>
1720
- </dl>
1710
+ </dd>
1711
+ </dl>
1712
+ </dd>
1713
+ </dl>
1721
1714
 
1722
1715
  #### 🔌 Usage
1723
1716
 
@@ -2167,6 +2160,79 @@ await client.organizations.organizationIdentity();
2167
2160
  </dl>
2168
2161
  </details>
2169
2162
 
2163
+ ## Prompts
2164
+
2165
+ <details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">pull</a>(id, { ...params }) -> Vellum.PromptExecConfig</code></summary>
2166
+ <dl>
2167
+ <dd>
2168
+
2169
+ #### 📝 Description
2170
+
2171
+ <dl>
2172
+ <dd>
2173
+
2174
+ <dl>
2175
+ <dd>
2176
+
2177
+ Used to pull the definition of a Prompt from Vellum.
2178
+
2179
+ </dd>
2180
+ </dl>
2181
+ </dd>
2182
+ </dl>
2183
+
2184
+ #### 🔌 Usage
2185
+
2186
+ <dl>
2187
+ <dd>
2188
+
2189
+ <dl>
2190
+ <dd>
2191
+
2192
+ ```typescript
2193
+ await client.prompts.pull("id");
2194
+ ```
2195
+
2196
+ </dd>
2197
+ </dl>
2198
+ </dd>
2199
+ </dl>
2200
+
2201
+ #### ⚙️ Parameters
2202
+
2203
+ <dl>
2204
+ <dd>
2205
+
2206
+ <dl>
2207
+ <dd>
2208
+
2209
+ **id:** `string` — The ID of the Prompt to pull from. Prompt Sandbox IDs are currently supported.
2210
+
2211
+ </dd>
2212
+ </dl>
2213
+
2214
+ <dl>
2215
+ <dd>
2216
+
2217
+ **request:** `Vellum.PromptsPullRequest`
2218
+
2219
+ </dd>
2220
+ </dl>
2221
+
2222
+ <dl>
2223
+ <dd>
2224
+
2225
+ **requestOptions:** `Prompts.RequestOptions`
2226
+
2227
+ </dd>
2228
+ </dl>
2229
+ </dd>
2230
+ </dl>
2231
+
2232
+ </dd>
2233
+ </dl>
2234
+ </details>
2235
+
2170
2236
  ## Sandboxes
2171
2237
 
2172
2238
  <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.28";
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.28";