vellum-ai 0.9.12 → 0.9.14

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 (100) hide show
  1. package/.mock/definition/__package__.yml +10 -10
  2. package/.mock/definition/adHoc.yml +1 -0
  3. package/.mock/definition/workflows.yml +6 -3
  4. package/.mock/openapi/openapi.yml +23 -19
  5. package/Client.js +10 -10
  6. package/api/resources/adHoc/client/Client.js +1 -1
  7. package/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +16 -0
  8. package/api/resources/containerImages/client/Client.js +4 -4
  9. package/api/resources/deployments/client/Client.js +6 -6
  10. package/api/resources/documentIndexes/client/Client.js +8 -8
  11. package/api/resources/documents/client/Client.js +5 -5
  12. package/api/resources/folderEntities/client/Client.js +2 -2
  13. package/api/resources/metricDefinitions/client/Client.js +1 -1
  14. package/api/resources/sandboxes/client/Client.js +3 -3
  15. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  16. package/api/resources/testSuites/client/Client.js +4 -4
  17. package/api/resources/workflowDeployments/client/Client.js +5 -5
  18. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  19. package/api/resources/workflows/client/Client.d.ts +6 -5
  20. package/api/resources/workflows/client/Client.js +22 -10
  21. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -3
  22. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  23. package/api/types/{FunctionDefinitionPromptBlock.d.ts → FunctionDefinition.d.ts} +6 -7
  24. package/api/types/PromptBlock.d.ts +1 -1
  25. package/api/types/WorkflowPushExecConfig.d.ts +1 -1
  26. package/api/types/index.d.ts +1 -1
  27. package/api/types/index.js +1 -1
  28. package/dist/Client.js +10 -10
  29. package/dist/api/resources/adHoc/client/Client.js +1 -1
  30. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +16 -0
  31. package/dist/api/resources/containerImages/client/Client.js +4 -4
  32. package/dist/api/resources/deployments/client/Client.js +6 -6
  33. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  34. package/dist/api/resources/documents/client/Client.js +5 -5
  35. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  36. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  37. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  38. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  39. package/dist/api/resources/testSuites/client/Client.js +4 -4
  40. package/dist/api/resources/workflowDeployments/client/Client.js +5 -5
  41. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  42. package/dist/api/resources/workflows/client/Client.d.ts +6 -5
  43. package/dist/api/resources/workflows/client/Client.js +22 -10
  44. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +2 -3
  45. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  46. package/dist/api/types/{FunctionDefinitionPromptBlock.d.ts → FunctionDefinition.d.ts} +6 -7
  47. package/dist/api/types/PromptBlock.d.ts +1 -1
  48. package/dist/api/types/WorkflowPushExecConfig.d.ts +1 -1
  49. package/dist/api/types/index.d.ts +1 -1
  50. package/dist/api/types/index.js +1 -1
  51. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  52. package/dist/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  53. package/dist/serialization/resources/index.d.ts +0 -1
  54. package/dist/serialization/resources/index.js +0 -1
  55. package/dist/serialization/resources/workflows/index.d.ts +0 -1
  56. package/dist/serialization/resources/workflows/index.js +0 -1
  57. package/dist/serialization/types/FunctionDefinition.d.ts +20 -0
  58. package/dist/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  59. package/dist/serialization/types/PromptBlock.d.ts +1 -2
  60. package/dist/serialization/types/PromptBlock.js +0 -2
  61. package/dist/serialization/types/WorkflowPushExecConfig.d.ts +1 -1
  62. package/dist/serialization/types/WorkflowPushExecConfig.js +1 -1
  63. package/dist/serialization/types/index.d.ts +1 -1
  64. package/dist/serialization/types/index.js +1 -1
  65. package/dist/version.d.ts +1 -1
  66. package/dist/version.js +1 -1
  67. package/package.json +1 -1
  68. package/reference.md +28 -5
  69. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.d.ts +2 -0
  70. package/serialization/resources/adHoc/client/requests/AdHocExecutePromptStream.js +2 -0
  71. package/serialization/resources/index.d.ts +0 -1
  72. package/serialization/resources/index.js +0 -1
  73. package/serialization/resources/workflows/index.d.ts +0 -1
  74. package/serialization/resources/workflows/index.js +0 -1
  75. package/serialization/types/FunctionDefinition.d.ts +20 -0
  76. package/serialization/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +7 -8
  77. package/serialization/types/PromptBlock.d.ts +1 -2
  78. package/serialization/types/PromptBlock.js +0 -2
  79. package/serialization/types/WorkflowPushExecConfig.d.ts +1 -1
  80. package/serialization/types/WorkflowPushExecConfig.js +1 -1
  81. package/serialization/types/index.d.ts +1 -1
  82. package/serialization/types/index.js +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/dist/serialization/resources/workflows/client/index.d.ts +0 -1
  86. package/dist/serialization/resources/workflows/client/index.js +0 -17
  87. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -17
  88. package/dist/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +0 -38
  89. package/dist/serialization/resources/workflows/client/requests/index.d.ts +0 -1
  90. package/dist/serialization/resources/workflows/client/requests/index.js +0 -5
  91. package/dist/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  92. package/serialization/resources/workflows/client/index.d.ts +0 -1
  93. package/serialization/resources/workflows/client/index.js +0 -17
  94. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.d.ts +0 -17
  95. package/serialization/resources/workflows/client/requests/WorkflowPushRequest.js +0 -38
  96. package/serialization/resources/workflows/client/requests/index.d.ts +0 -1
  97. package/serialization/resources/workflows/client/requests/index.js +0 -5
  98. package/serialization/types/FunctionDefinitionPromptBlock.d.ts +0 -21
  99. /package/api/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +0 -0
  100. /package/dist/api/types/{FunctionDefinitionPromptBlock.js → FunctionDefinition.js} +0 -0
@@ -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 { PromptBlockState } from "./PromptBlockState";
8
+ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
+ export declare const FunctionDefinition: core.serialization.ObjectSchema<serializers.FunctionDefinition.Raw, Vellum.FunctionDefinition>;
10
+ export declare namespace FunctionDefinition {
11
+ interface Raw {
12
+ state?: PromptBlockState.Raw | null;
13
+ cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
+ name?: string | null;
15
+ description?: string | null;
16
+ parameters?: Record<string, unknown> | null;
17
+ forced?: boolean | null;
18
+ strict?: boolean | null;
19
+ }
20
+ }
@@ -26,17 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FunctionDefinitionPromptBlock = void 0;
29
+ exports.FunctionDefinition = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- exports.FunctionDefinitionPromptBlock = core.serialization.object({
33
+ exports.FunctionDefinition = core.serialization.object({
34
34
  state: PromptBlockState_1.PromptBlockState.optional(),
35
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
36
- blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
37
- functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
- functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
39
- functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
40
- functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
41
- functionStrict: core.serialization.property("function_strict", core.serialization.boolean().optional()),
36
+ name: core.serialization.string().optional(),
37
+ description: core.serialization.string().optional(),
38
+ parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
39
+ forced: core.serialization.boolean().optional(),
40
+ strict: core.serialization.boolean().optional(),
42
41
  });
@@ -5,10 +5,9 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JinjaPromptBlock } from "./JinjaPromptBlock";
8
- import { FunctionDefinitionPromptBlock } from "./FunctionDefinitionPromptBlock";
9
8
  import { VariablePromptBlock } from "./VariablePromptBlock";
10
9
  import { RichTextPromptBlock } from "./RichTextPromptBlock";
11
10
  export declare const PromptBlock: core.serialization.Schema<serializers.PromptBlock.Raw, Vellum.PromptBlock>;
12
11
  export declare namespace PromptBlock {
13
- type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | FunctionDefinitionPromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
12
+ type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
14
13
  }
@@ -30,13 +30,11 @@ exports.PromptBlock = void 0;
30
30
  const serializers = __importStar(require("../index"));
31
31
  const core = __importStar(require("../../core"));
32
32
  const JinjaPromptBlock_1 = require("./JinjaPromptBlock");
33
- const FunctionDefinitionPromptBlock_1 = require("./FunctionDefinitionPromptBlock");
34
33
  const VariablePromptBlock_1 = require("./VariablePromptBlock");
35
34
  const RichTextPromptBlock_1 = require("./RichTextPromptBlock");
36
35
  exports.PromptBlock = core.serialization.undiscriminatedUnion([
37
36
  JinjaPromptBlock_1.JinjaPromptBlock,
38
37
  core.serialization.lazyObject(() => serializers.ChatMessagePromptBlock),
39
- FunctionDefinitionPromptBlock_1.FunctionDefinitionPromptBlock,
40
38
  VariablePromptBlock_1.VariablePromptBlock,
41
39
  RichTextPromptBlock_1.RichTextPromptBlock,
42
40
  ]);
@@ -6,5 +6,5 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const WorkflowPushExecConfig: core.serialization.Schema<serializers.WorkflowPushExecConfig.Raw, Vellum.WorkflowPushExecConfig>;
8
8
  export declare namespace WorkflowPushExecConfig {
9
- type Raw = Record<string, unknown>;
9
+ type Raw = string;
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.WorkflowPushExecConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.WorkflowPushExecConfig = core.serialization.record(core.serialization.string(), core.serialization.unknown());
31
+ exports.WorkflowPushExecConfig = core.serialization.string();
@@ -130,7 +130,7 @@ export * from "./FunctionCallRequest";
130
130
  export * from "./FunctionCallVariableValue";
131
131
  export * from "./FunctionCallVellumValue";
132
132
  export * from "./FunctionCallVellumValueRequest";
133
- export * from "./FunctionDefinitionPromptBlock";
133
+ export * from "./FunctionDefinition";
134
134
  export * from "./GenerateOptionsRequest";
135
135
  export * from "./GenerateRequest";
136
136
  export * from "./GenerateResponse";
@@ -146,7 +146,7 @@ __exportStar(require("./FunctionCallRequest"), exports);
146
146
  __exportStar(require("./FunctionCallVariableValue"), exports);
147
147
  __exportStar(require("./FunctionCallVellumValue"), exports);
148
148
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
+ __exportStar(require("./FunctionDefinition"), exports);
150
150
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
151
  __exportStar(require("./GenerateRequest"), exports);
152
152
  __exportStar(require("./GenerateResponse"), exports);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.12";
1
+ export declare const SDK_VERSION = "0.9.14";
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.9.12";
4
+ exports.SDK_VERSION = "0.9.14";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.9.12",
3
+ "version": "0.9.14",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
package/reference.md CHANGED
@@ -161,6 +161,23 @@ await client.adHoc.adhocExecutePromptStream({
161
161
  template: "string",
162
162
  },
163
163
  ],
164
+ functions: [
165
+ {
166
+ state: "ENABLED",
167
+ cacheConfig: {
168
+ type: "EPHEMERAL",
169
+ },
170
+ name: "string",
171
+ description: "string",
172
+ parameters: {
173
+ string: {
174
+ key: "value",
175
+ },
176
+ },
177
+ forced: true,
178
+ strict: true,
179
+ },
180
+ ],
164
181
  expandMeta: {
165
182
  cost: true,
166
183
  modelName: true,
@@ -3253,7 +3270,7 @@ await client.workflows.pull("string", {
3253
3270
  </dl>
3254
3271
  </details>
3255
3272
 
3256
- <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">push</a>({ ...params }) -> Vellum.WorkflowPushResponse</code></summary>
3273
+ <details><summary><code>client.workflows.<a href="/src/api/resources/workflows/client/Client.ts">push</a>(artifact, { ...params }) -> Vellum.WorkflowPushResponse</code></summary>
3257
3274
  <dl>
3258
3275
  <dd>
3259
3276
 
@@ -3281,10 +3298,8 @@ An internal-only endpoint that's subject to breaking changes without notice. Not
3281
3298
  <dd>
3282
3299
 
3283
3300
  ```typescript
3284
- await client.workflows.push({
3285
- execConfig: {
3286
- key: "value",
3287
- },
3301
+ await client.workflows.push(fs.createReadStream("/path/to/your/file"), {
3302
+ execConfig: "exec_config",
3288
3303
  label: "label",
3289
3304
  });
3290
3305
  ```
@@ -3302,6 +3317,14 @@ await client.workflows.push({
3302
3317
  <dl>
3303
3318
  <dd>
3304
3319
 
3320
+ **artifact:** `File | fs.ReadStream | Blob | undefined`
3321
+
3322
+ </dd>
3323
+ </dl>
3324
+
3325
+ <dl>
3326
+ <dd>
3327
+
3305
3328
  **request:** `Vellum.WorkflowPushRequest`
3306
3329
 
3307
3330
  </dd>
@@ -8,6 +8,7 @@ import { PromptRequestInput } from "../../../../types/PromptRequestInput";
8
8
  import { VellumVariable } from "../../../../types/VellumVariable";
9
9
  import { PromptParameters } from "../../../../types/PromptParameters";
10
10
  import { PromptSettings } from "../../../../types/PromptSettings";
11
+ import { FunctionDefinition } from "../../../../types/FunctionDefinition";
11
12
  import { AdHocExpandMeta } from "../../../../types/AdHocExpandMeta";
12
13
  export declare const AdHocExecutePromptStream: core.serialization.Schema<serializers.AdHocExecutePromptStream.Raw, Vellum.AdHocExecutePromptStream>;
13
14
  export declare namespace AdHocExecutePromptStream {
@@ -18,6 +19,7 @@ export declare namespace AdHocExecutePromptStream {
18
19
  parameters: PromptParameters.Raw;
19
20
  settings?: PromptSettings.Raw | null;
20
21
  blocks: serializers.PromptBlock.Raw[];
22
+ functions?: FunctionDefinition.Raw[] | null;
21
23
  expand_meta?: AdHocExpandMeta.Raw | null;
22
24
  }
23
25
  }
@@ -33,6 +33,7 @@ const PromptRequestInput_1 = require("../../../../types/PromptRequestInput");
33
33
  const VellumVariable_1 = require("../../../../types/VellumVariable");
34
34
  const PromptParameters_1 = require("../../../../types/PromptParameters");
35
35
  const PromptSettings_1 = require("../../../../types/PromptSettings");
36
+ const FunctionDefinition_1 = require("../../../../types/FunctionDefinition");
36
37
  const AdHocExpandMeta_1 = require("../../../../types/AdHocExpandMeta");
37
38
  exports.AdHocExecutePromptStream = core.serialization.object({
38
39
  mlModel: core.serialization.property("ml_model", core.serialization.string()),
@@ -41,5 +42,6 @@ exports.AdHocExecutePromptStream = core.serialization.object({
41
42
  parameters: PromptParameters_1.PromptParameters,
42
43
  settings: PromptSettings_1.PromptSettings.optional(),
43
44
  blocks: core.serialization.list(core.serialization.lazy(() => serializers.PromptBlock)),
45
+ functions: core.serialization.list(FunctionDefinition_1.FunctionDefinition).optional(),
44
46
  expandMeta: core.serialization.property("expand_meta", AdHocExpandMeta_1.AdHocExpandMeta.optional()),
45
47
  });
@@ -27,6 +27,5 @@ export * from "./testSuiteRuns/client/requests";
27
27
  export * from "./workflowDeployments/client/requests";
28
28
  export * as workflowSandboxes from "./workflowSandboxes";
29
29
  export * from "./workflowSandboxes/client/requests";
30
- export * from "./workflows/client/requests";
31
30
  export * as workspaceSecrets from "./workspaceSecrets";
32
31
  export * from "./workspaceSecrets/client/requests";
@@ -56,6 +56,5 @@ __exportStar(require("./testSuiteRuns/client/requests"), exports);
56
56
  __exportStar(require("./workflowDeployments/client/requests"), exports);
57
57
  exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
58
58
  __exportStar(require("./workflowSandboxes/client/requests"), exports);
59
- __exportStar(require("./workflows/client/requests"), exports);
60
59
  exports.workspaceSecrets = __importStar(require("./workspaceSecrets"));
61
60
  __exportStar(require("./workspaceSecrets/client/requests"), exports);
@@ -1,2 +1 @@
1
1
  export * from "./types";
2
- export * from "./client";
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./types"), exports);
18
- __exportStar(require("./client"), exports);
@@ -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 { PromptBlockState } from "./PromptBlockState";
8
+ import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
+ export declare const FunctionDefinition: core.serialization.ObjectSchema<serializers.FunctionDefinition.Raw, Vellum.FunctionDefinition>;
10
+ export declare namespace FunctionDefinition {
11
+ interface Raw {
12
+ state?: PromptBlockState.Raw | null;
13
+ cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
+ name?: string | null;
15
+ description?: string | null;
16
+ parameters?: Record<string, unknown> | null;
17
+ forced?: boolean | null;
18
+ strict?: boolean | null;
19
+ }
20
+ }
@@ -26,17 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.FunctionDefinitionPromptBlock = void 0;
29
+ exports.FunctionDefinition = void 0;
30
30
  const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfig_1 = require("./EphemeralPromptCacheConfig");
33
- exports.FunctionDefinitionPromptBlock = core.serialization.object({
33
+ exports.FunctionDefinition = core.serialization.object({
34
34
  state: PromptBlockState_1.PromptBlockState.optional(),
35
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfig_1.EphemeralPromptCacheConfig.optional()),
36
- blockType: core.serialization.property("block_type", core.serialization.stringLiteral("FUNCTION_DEFINITION")),
37
- functionName: core.serialization.property("function_name", core.serialization.string().optional()),
38
- functionDescription: core.serialization.property("function_description", core.serialization.string().optional()),
39
- functionParameters: core.serialization.property("function_parameters", core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional()),
40
- functionForced: core.serialization.property("function_forced", core.serialization.boolean().optional()),
41
- functionStrict: core.serialization.property("function_strict", core.serialization.boolean().optional()),
36
+ name: core.serialization.string().optional(),
37
+ description: core.serialization.string().optional(),
38
+ parameters: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
39
+ forced: core.serialization.boolean().optional(),
40
+ strict: core.serialization.boolean().optional(),
42
41
  });
@@ -5,10 +5,9 @@ import * as serializers from "../index";
5
5
  import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { JinjaPromptBlock } from "./JinjaPromptBlock";
8
- import { FunctionDefinitionPromptBlock } from "./FunctionDefinitionPromptBlock";
9
8
  import { VariablePromptBlock } from "./VariablePromptBlock";
10
9
  import { RichTextPromptBlock } from "./RichTextPromptBlock";
11
10
  export declare const PromptBlock: core.serialization.Schema<serializers.PromptBlock.Raw, Vellum.PromptBlock>;
12
11
  export declare namespace PromptBlock {
13
- type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | FunctionDefinitionPromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
12
+ type Raw = JinjaPromptBlock.Raw | serializers.ChatMessagePromptBlock.Raw | VariablePromptBlock.Raw | RichTextPromptBlock.Raw;
14
13
  }
@@ -30,13 +30,11 @@ exports.PromptBlock = void 0;
30
30
  const serializers = __importStar(require("../index"));
31
31
  const core = __importStar(require("../../core"));
32
32
  const JinjaPromptBlock_1 = require("./JinjaPromptBlock");
33
- const FunctionDefinitionPromptBlock_1 = require("./FunctionDefinitionPromptBlock");
34
33
  const VariablePromptBlock_1 = require("./VariablePromptBlock");
35
34
  const RichTextPromptBlock_1 = require("./RichTextPromptBlock");
36
35
  exports.PromptBlock = core.serialization.undiscriminatedUnion([
37
36
  JinjaPromptBlock_1.JinjaPromptBlock,
38
37
  core.serialization.lazyObject(() => serializers.ChatMessagePromptBlock),
39
- FunctionDefinitionPromptBlock_1.FunctionDefinitionPromptBlock,
40
38
  VariablePromptBlock_1.VariablePromptBlock,
41
39
  RichTextPromptBlock_1.RichTextPromptBlock,
42
40
  ]);
@@ -6,5 +6,5 @@ import * as Vellum from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const WorkflowPushExecConfig: core.serialization.Schema<serializers.WorkflowPushExecConfig.Raw, Vellum.WorkflowPushExecConfig>;
8
8
  export declare namespace WorkflowPushExecConfig {
9
- type Raw = Record<string, unknown>;
9
+ type Raw = string;
10
10
  }
@@ -28,4 +28,4 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.WorkflowPushExecConfig = void 0;
30
30
  const core = __importStar(require("../../core"));
31
- exports.WorkflowPushExecConfig = core.serialization.record(core.serialization.string(), core.serialization.unknown());
31
+ exports.WorkflowPushExecConfig = core.serialization.string();
@@ -130,7 +130,7 @@ export * from "./FunctionCallRequest";
130
130
  export * from "./FunctionCallVariableValue";
131
131
  export * from "./FunctionCallVellumValue";
132
132
  export * from "./FunctionCallVellumValueRequest";
133
- export * from "./FunctionDefinitionPromptBlock";
133
+ export * from "./FunctionDefinition";
134
134
  export * from "./GenerateOptionsRequest";
135
135
  export * from "./GenerateRequest";
136
136
  export * from "./GenerateResponse";
@@ -146,7 +146,7 @@ __exportStar(require("./FunctionCallRequest"), exports);
146
146
  __exportStar(require("./FunctionCallVariableValue"), exports);
147
147
  __exportStar(require("./FunctionCallVellumValue"), exports);
148
148
  __exportStar(require("./FunctionCallVellumValueRequest"), exports);
149
- __exportStar(require("./FunctionDefinitionPromptBlock"), exports);
149
+ __exportStar(require("./FunctionDefinition"), exports);
150
150
  __exportStar(require("./GenerateOptionsRequest"), exports);
151
151
  __exportStar(require("./GenerateRequest"), exports);
152
152
  __exportStar(require("./GenerateResponse"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.12";
1
+ export declare const SDK_VERSION = "0.9.14";
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.9.12";
4
+ exports.SDK_VERSION = "0.9.14";
@@ -1 +0,0 @@
1
- export * from "./requests";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,17 +0,0 @@
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 { WorkflowPushExecConfig } from "../../../../types/WorkflowPushExecConfig";
8
- import { WorkflowPushDeploymentConfigRequest } from "../../../../types/WorkflowPushDeploymentConfigRequest";
9
- export declare const WorkflowPushRequest: core.serialization.Schema<serializers.WorkflowPushRequest.Raw, Vellum.WorkflowPushRequest>;
10
- export declare namespace WorkflowPushRequest {
11
- interface Raw {
12
- exec_config: WorkflowPushExecConfig.Raw;
13
- label: string;
14
- workflow_sandbox_id?: string | null;
15
- deployment_config?: WorkflowPushDeploymentConfigRequest.Raw | null;
16
- }
17
- }
@@ -1,38 +0,0 @@
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.WorkflowPushRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- const WorkflowPushExecConfig_1 = require("../../../../types/WorkflowPushExecConfig");
32
- const WorkflowPushDeploymentConfigRequest_1 = require("../../../../types/WorkflowPushDeploymentConfigRequest");
33
- exports.WorkflowPushRequest = core.serialization.object({
34
- execConfig: core.serialization.property("exec_config", WorkflowPushExecConfig_1.WorkflowPushExecConfig),
35
- label: core.serialization.string(),
36
- workflowSandboxId: core.serialization.property("workflow_sandbox_id", core.serialization.string().optional()),
37
- deploymentConfig: core.serialization.property("deployment_config", WorkflowPushDeploymentConfigRequest_1.WorkflowPushDeploymentConfigRequest.optional()),
38
- });
@@ -1 +0,0 @@
1
- export { WorkflowPushRequest } from "./WorkflowPushRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowPushRequest = void 0;
4
- var WorkflowPushRequest_1 = require("./WorkflowPushRequest");
5
- Object.defineProperty(exports, "WorkflowPushRequest", { enumerable: true, get: function () { return WorkflowPushRequest_1.WorkflowPushRequest; } });
@@ -1,21 +0,0 @@
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 { PromptBlockState } from "./PromptBlockState";
8
- import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
- export declare const FunctionDefinitionPromptBlock: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlock.Raw, Vellum.FunctionDefinitionPromptBlock>;
10
- export declare namespace FunctionDefinitionPromptBlock {
11
- interface Raw {
12
- state?: PromptBlockState.Raw | null;
13
- cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
- block_type: "FUNCTION_DEFINITION";
15
- function_name?: string | null;
16
- function_description?: string | null;
17
- function_parameters?: Record<string, unknown> | null;
18
- function_forced?: boolean | null;
19
- function_strict?: boolean | null;
20
- }
21
- }
@@ -1 +0,0 @@
1
- export * from "./requests";
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./requests"), exports);
@@ -1,17 +0,0 @@
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 { WorkflowPushExecConfig } from "../../../../types/WorkflowPushExecConfig";
8
- import { WorkflowPushDeploymentConfigRequest } from "../../../../types/WorkflowPushDeploymentConfigRequest";
9
- export declare const WorkflowPushRequest: core.serialization.Schema<serializers.WorkflowPushRequest.Raw, Vellum.WorkflowPushRequest>;
10
- export declare namespace WorkflowPushRequest {
11
- interface Raw {
12
- exec_config: WorkflowPushExecConfig.Raw;
13
- label: string;
14
- workflow_sandbox_id?: string | null;
15
- deployment_config?: WorkflowPushDeploymentConfigRequest.Raw | null;
16
- }
17
- }
@@ -1,38 +0,0 @@
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.WorkflowPushRequest = void 0;
30
- const core = __importStar(require("../../../../../core"));
31
- const WorkflowPushExecConfig_1 = require("../../../../types/WorkflowPushExecConfig");
32
- const WorkflowPushDeploymentConfigRequest_1 = require("../../../../types/WorkflowPushDeploymentConfigRequest");
33
- exports.WorkflowPushRequest = core.serialization.object({
34
- execConfig: core.serialization.property("exec_config", WorkflowPushExecConfig_1.WorkflowPushExecConfig),
35
- label: core.serialization.string(),
36
- workflowSandboxId: core.serialization.property("workflow_sandbox_id", core.serialization.string().optional()),
37
- deploymentConfig: core.serialization.property("deployment_config", WorkflowPushDeploymentConfigRequest_1.WorkflowPushDeploymentConfigRequest.optional()),
38
- });
@@ -1 +0,0 @@
1
- export { WorkflowPushRequest } from "./WorkflowPushRequest";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkflowPushRequest = void 0;
4
- var WorkflowPushRequest_1 = require("./WorkflowPushRequest");
5
- Object.defineProperty(exports, "WorkflowPushRequest", { enumerable: true, get: function () { return WorkflowPushRequest_1.WorkflowPushRequest; } });
@@ -1,21 +0,0 @@
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 { PromptBlockState } from "./PromptBlockState";
8
- import { EphemeralPromptCacheConfig } from "./EphemeralPromptCacheConfig";
9
- export declare const FunctionDefinitionPromptBlock: core.serialization.ObjectSchema<serializers.FunctionDefinitionPromptBlock.Raw, Vellum.FunctionDefinitionPromptBlock>;
10
- export declare namespace FunctionDefinitionPromptBlock {
11
- interface Raw {
12
- state?: PromptBlockState.Raw | null;
13
- cache_config?: EphemeralPromptCacheConfig.Raw | null;
14
- block_type: "FUNCTION_DEFINITION";
15
- function_name?: string | null;
16
- function_description?: string | null;
17
- function_parameters?: Record<string, unknown> | null;
18
- function_forced?: boolean | null;
19
- function_strict?: boolean | null;
20
- }
21
- }