vellum-ai 0.9.4 → 0.9.6

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 (185) hide show
  1. package/.mock/definition/__package__.yml +37 -29
  2. package/.mock/definition/deployments.yml +50 -1
  3. package/.mock/definition/workflowDeployments.yml +49 -0
  4. package/.mock/definition/workflows.yml +15 -2
  5. package/.mock/openapi/openapi.yml +174 -39
  6. package/Client.js +10 -10
  7. package/api/resources/adHoc/client/Client.js +1 -1
  8. package/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +5 -6
  9. package/api/resources/containerImages/client/Client.js +4 -4
  10. package/api/resources/deployments/client/Client.d.ts +12 -1
  11. package/api/resources/deployments/client/Client.js +74 -6
  12. package/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.d.ts +23 -0
  13. package/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.js +5 -0
  14. package/api/resources/deployments/client/requests/index.d.ts +1 -0
  15. package/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +8 -0
  16. package/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +10 -0
  17. package/api/resources/deployments/types/index.d.ts +1 -0
  18. package/api/resources/deployments/types/index.js +1 -0
  19. package/api/resources/documentIndexes/client/Client.js +8 -8
  20. package/api/resources/documents/client/Client.js +5 -5
  21. package/api/resources/folderEntities/client/Client.js +2 -2
  22. package/api/resources/index.d.ts +2 -1
  23. package/api/resources/index.js +3 -2
  24. package/api/resources/metricDefinitions/client/Client.js +1 -1
  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.d.ts +11 -0
  29. package/api/resources/workflowDeployments/client/Client.js +72 -4
  30. package/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.d.ts +23 -0
  31. package/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.js +5 -0
  32. package/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  33. package/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +8 -0
  34. package/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +10 -0
  35. package/api/resources/workflowDeployments/types/index.d.ts +1 -0
  36. package/api/resources/workflowDeployments/types/index.js +1 -0
  37. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  38. package/api/resources/workflows/client/Client.d.ts +3 -2
  39. package/api/resources/workflows/client/Client.js +20 -7
  40. package/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +13 -0
  41. package/api/resources/workflows/client/requests/WorkflowsPullRequest.js +5 -0
  42. package/api/resources/workflows/client/requests/index.d.ts +1 -0
  43. package/api/resources/workflows/index.d.ts +1 -0
  44. package/api/resources/workflows/index.js +1 -0
  45. package/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +8 -0
  46. package/api/resources/workflows/types/WorkflowsPullRequestFormat.js +10 -0
  47. package/api/resources/workflows/types/index.d.ts +1 -0
  48. package/api/resources/workflows/types/index.js +17 -0
  49. package/api/resources/workspaceSecrets/client/Client.js +2 -2
  50. package/api/types/ChatMessagePromptBlockRequest.d.ts +2 -3
  51. package/api/types/FunctionDefinitionPromptBlockRequest.d.ts +2 -3
  52. package/api/types/JinjaPromptBlockRequest.d.ts +2 -3
  53. package/api/types/PaginatedDeploymentReleaseTagReadList.d.ts +10 -0
  54. package/api/types/PaginatedDeploymentReleaseTagReadList.js +5 -0
  55. package/api/types/PaginatedWorkflowReleaseTagReadList.d.ts +10 -0
  56. package/api/types/PaginatedWorkflowReleaseTagReadList.js +5 -0
  57. package/api/types/PlainTextPromptBlockRequest.d.ts +2 -3
  58. package/api/types/VariablePromptBlockRequest.d.ts +1 -2
  59. package/api/types/index.d.ts +2 -0
  60. package/api/types/index.js +2 -0
  61. package/dist/Client.js +10 -10
  62. package/dist/api/resources/adHoc/client/Client.js +1 -1
  63. package/dist/api/resources/adHoc/client/requests/AdHocExecutePromptStreamRequest.d.ts +5 -6
  64. package/dist/api/resources/containerImages/client/Client.js +4 -4
  65. package/dist/api/resources/deployments/client/Client.d.ts +12 -1
  66. package/dist/api/resources/deployments/client/Client.js +74 -6
  67. package/dist/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.d.ts +23 -0
  68. package/dist/api/resources/deployments/client/requests/ListDeploymentReleaseTagsRequest.js +5 -0
  69. package/dist/api/resources/deployments/client/requests/index.d.ts +1 -0
  70. package/dist/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +8 -0
  71. package/dist/api/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +10 -0
  72. package/dist/api/resources/deployments/types/index.d.ts +1 -0
  73. package/dist/api/resources/deployments/types/index.js +1 -0
  74. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  75. package/dist/api/resources/documents/client/Client.js +5 -5
  76. package/dist/api/resources/folderEntities/client/Client.js +2 -2
  77. package/dist/api/resources/index.d.ts +2 -1
  78. package/dist/api/resources/index.js +3 -2
  79. package/dist/api/resources/metricDefinitions/client/Client.js +1 -1
  80. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  81. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  82. package/dist/api/resources/testSuites/client/Client.js +4 -4
  83. package/dist/api/resources/workflowDeployments/client/Client.d.ts +11 -0
  84. package/dist/api/resources/workflowDeployments/client/Client.js +72 -4
  85. package/dist/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.d.ts +23 -0
  86. package/dist/api/resources/workflowDeployments/client/requests/ListWorkflowReleaseTagsRequest.js +5 -0
  87. package/dist/api/resources/workflowDeployments/client/requests/index.d.ts +1 -0
  88. package/dist/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +8 -0
  89. package/dist/api/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +10 -0
  90. package/dist/api/resources/workflowDeployments/types/index.d.ts +1 -0
  91. package/dist/api/resources/workflowDeployments/types/index.js +1 -0
  92. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  93. package/dist/api/resources/workflows/client/Client.d.ts +3 -2
  94. package/dist/api/resources/workflows/client/Client.js +20 -7
  95. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.d.ts +13 -0
  96. package/dist/api/resources/workflows/client/requests/WorkflowsPullRequest.js +5 -0
  97. package/dist/api/resources/workflows/client/requests/index.d.ts +1 -0
  98. package/dist/api/resources/workflows/index.d.ts +1 -0
  99. package/dist/api/resources/workflows/index.js +1 -0
  100. package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +8 -0
  101. package/dist/api/resources/workflows/types/WorkflowsPullRequestFormat.js +10 -0
  102. package/dist/api/resources/workflows/types/index.d.ts +1 -0
  103. package/dist/api/resources/workflows/types/index.js +17 -0
  104. package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
  105. package/dist/api/types/ChatMessagePromptBlockRequest.d.ts +2 -3
  106. package/dist/api/types/FunctionDefinitionPromptBlockRequest.d.ts +2 -3
  107. package/dist/api/types/JinjaPromptBlockRequest.d.ts +2 -3
  108. package/dist/api/types/PaginatedDeploymentReleaseTagReadList.d.ts +10 -0
  109. package/dist/api/types/PaginatedDeploymentReleaseTagReadList.js +5 -0
  110. package/dist/api/types/PaginatedWorkflowReleaseTagReadList.d.ts +10 -0
  111. package/dist/api/types/PaginatedWorkflowReleaseTagReadList.js +5 -0
  112. package/dist/api/types/PlainTextPromptBlockRequest.d.ts +2 -3
  113. package/dist/api/types/VariablePromptBlockRequest.d.ts +1 -2
  114. package/dist/api/types/index.d.ts +2 -0
  115. package/dist/api/types/index.js +2 -0
  116. package/dist/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +10 -0
  117. package/dist/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +31 -0
  118. package/dist/serialization/resources/deployments/types/index.d.ts +1 -0
  119. package/dist/serialization/resources/deployments/types/index.js +1 -0
  120. package/dist/serialization/resources/index.d.ts +2 -1
  121. package/dist/serialization/resources/index.js +3 -2
  122. package/dist/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +10 -0
  123. package/dist/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +31 -0
  124. package/dist/serialization/resources/workflowDeployments/types/index.d.ts +1 -0
  125. package/dist/serialization/resources/workflowDeployments/types/index.js +1 -0
  126. package/dist/serialization/resources/workflows/index.d.ts +1 -0
  127. package/dist/serialization/resources/workflows/index.js +1 -0
  128. package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +10 -0
  129. package/dist/serialization/resources/workflows/types/WorkflowsPullRequestFormat.js +31 -0
  130. package/dist/serialization/resources/workflows/types/index.d.ts +1 -0
  131. package/dist/serialization/resources/workflows/types/index.js +17 -0
  132. package/dist/serialization/types/ChatMessagePromptBlockRequest.d.ts +2 -3
  133. package/dist/serialization/types/ChatMessagePromptBlockRequest.js +2 -3
  134. package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +3 -4
  135. package/dist/serialization/types/FunctionDefinitionPromptBlockRequest.js +3 -4
  136. package/dist/serialization/types/JinjaPromptBlockRequest.d.ts +3 -4
  137. package/dist/serialization/types/JinjaPromptBlockRequest.js +3 -4
  138. package/dist/serialization/types/PaginatedDeploymentReleaseTagReadList.d.ts +16 -0
  139. package/dist/serialization/types/PaginatedDeploymentReleaseTagReadList.js +37 -0
  140. package/dist/serialization/types/PaginatedWorkflowReleaseTagReadList.d.ts +16 -0
  141. package/dist/serialization/types/PaginatedWorkflowReleaseTagReadList.js +37 -0
  142. package/dist/serialization/types/PlainTextPromptBlockRequest.d.ts +2 -3
  143. package/dist/serialization/types/PlainTextPromptBlockRequest.js +2 -3
  144. package/dist/serialization/types/VariablePromptBlockRequest.d.ts +1 -2
  145. package/dist/serialization/types/VariablePromptBlockRequest.js +1 -2
  146. package/dist/serialization/types/index.d.ts +2 -0
  147. package/dist/serialization/types/index.js +2 -0
  148. package/dist/version.d.ts +1 -1
  149. package/dist/version.js +1 -1
  150. package/package.json +1 -1
  151. package/reference.md +160 -9
  152. package/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.d.ts +10 -0
  153. package/serialization/resources/deployments/types/ListDeploymentReleaseTagsRequestSource.js +31 -0
  154. package/serialization/resources/deployments/types/index.d.ts +1 -0
  155. package/serialization/resources/deployments/types/index.js +1 -0
  156. package/serialization/resources/index.d.ts +2 -1
  157. package/serialization/resources/index.js +3 -2
  158. package/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.d.ts +10 -0
  159. package/serialization/resources/workflowDeployments/types/ListWorkflowReleaseTagsRequestSource.js +31 -0
  160. package/serialization/resources/workflowDeployments/types/index.d.ts +1 -0
  161. package/serialization/resources/workflowDeployments/types/index.js +1 -0
  162. package/serialization/resources/workflows/index.d.ts +1 -0
  163. package/serialization/resources/workflows/index.js +1 -0
  164. package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.d.ts +10 -0
  165. package/serialization/resources/workflows/types/WorkflowsPullRequestFormat.js +31 -0
  166. package/serialization/resources/workflows/types/index.d.ts +1 -0
  167. package/serialization/resources/workflows/types/index.js +17 -0
  168. package/serialization/types/ChatMessagePromptBlockRequest.d.ts +2 -3
  169. package/serialization/types/ChatMessagePromptBlockRequest.js +2 -3
  170. package/serialization/types/FunctionDefinitionPromptBlockRequest.d.ts +3 -4
  171. package/serialization/types/FunctionDefinitionPromptBlockRequest.js +3 -4
  172. package/serialization/types/JinjaPromptBlockRequest.d.ts +3 -4
  173. package/serialization/types/JinjaPromptBlockRequest.js +3 -4
  174. package/serialization/types/PaginatedDeploymentReleaseTagReadList.d.ts +16 -0
  175. package/serialization/types/PaginatedDeploymentReleaseTagReadList.js +37 -0
  176. package/serialization/types/PaginatedWorkflowReleaseTagReadList.d.ts +16 -0
  177. package/serialization/types/PaginatedWorkflowReleaseTagReadList.js +37 -0
  178. package/serialization/types/PlainTextPromptBlockRequest.d.ts +2 -3
  179. package/serialization/types/PlainTextPromptBlockRequest.js +2 -3
  180. package/serialization/types/VariablePromptBlockRequest.d.ts +1 -2
  181. package/serialization/types/VariablePromptBlockRequest.js +1 -2
  182. package/serialization/types/index.d.ts +2 -0
  183. package/serialization/types/index.js +2 -0
  184. package/version.d.ts +1 -1
  185. package/version.js +1 -1
@@ -0,0 +1,37 @@
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.PaginatedWorkflowReleaseTagReadList = void 0;
30
+ const core = __importStar(require("../../core"));
31
+ const WorkflowReleaseTagRead_1 = require("./WorkflowReleaseTagRead");
32
+ exports.PaginatedWorkflowReleaseTagReadList = core.serialization.object({
33
+ count: core.serialization.number().optional(),
34
+ next: core.serialization.string().optional(),
35
+ previous: core.serialization.string().optional(),
36
+ results: core.serialization.list(WorkflowReleaseTagRead_1.WorkflowReleaseTagRead).optional(),
37
+ });
@@ -9,10 +9,9 @@ import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigR
9
9
  export declare const PlainTextPromptBlockRequest: core.serialization.ObjectSchema<serializers.PlainTextPromptBlockRequest.Raw, Vellum.PlainTextPromptBlockRequest>;
10
10
  export declare namespace PlainTextPromptBlockRequest {
11
11
  interface Raw {
12
- block_type: "PLAIN_TEXT";
13
- text: string;
14
- id: string;
15
12
  state?: PromptBlockState.Raw | null;
16
13
  cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
14
+ block_type: "PLAIN_TEXT";
15
+ text: string;
17
16
  }
18
17
  }
@@ -31,9 +31,8 @@ const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
33
33
  exports.PlainTextPromptBlockRequest = core.serialization.object({
34
- blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
35
- text: core.serialization.string(),
36
- id: core.serialization.string(),
37
34
  state: PromptBlockState_1.PromptBlockState.optional(),
38
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
36
+ blockType: core.serialization.property("block_type", core.serialization.stringLiteral("PLAIN_TEXT")),
37
+ text: core.serialization.string(),
39
38
  });
@@ -9,10 +9,9 @@ import { EphemeralPromptCacheConfigRequest } from "./EphemeralPromptCacheConfigR
9
9
  export declare const VariablePromptBlockRequest: core.serialization.ObjectSchema<serializers.VariablePromptBlockRequest.Raw, Vellum.VariablePromptBlockRequest>;
10
10
  export declare namespace VariablePromptBlockRequest {
11
11
  interface Raw {
12
- block_type: "VARIABLE";
13
- id: string;
14
12
  state?: PromptBlockState.Raw | null;
15
13
  cache_config?: EphemeralPromptCacheConfigRequest.Raw | null;
14
+ block_type: "VARIABLE";
16
15
  input_variable_id: string;
17
16
  }
18
17
  }
@@ -31,9 +31,8 @@ const core = __importStar(require("../../core"));
31
31
  const PromptBlockState_1 = require("./PromptBlockState");
32
32
  const EphemeralPromptCacheConfigRequest_1 = require("./EphemeralPromptCacheConfigRequest");
33
33
  exports.VariablePromptBlockRequest = core.serialization.object({
34
- blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
35
- id: core.serialization.string(),
36
34
  state: PromptBlockState_1.PromptBlockState.optional(),
37
35
  cacheConfig: core.serialization.property("cache_config", EphemeralPromptCacheConfigRequest_1.EphemeralPromptCacheConfigRequest.optional()),
36
+ blockType: core.serialization.property("block_type", core.serialization.stringLiteral("VARIABLE")),
38
37
  inputVariableId: core.serialization.property("input_variable_id", core.serialization.string()),
39
38
  });
@@ -238,6 +238,7 @@ export * from "./OpenAiVectorizerTextEmbedding3SmallRequest";
238
238
  export * from "./OpenAiVectorizerTextEmbeddingAda002";
239
239
  export * from "./OpenAiVectorizerTextEmbeddingAda002Request";
240
240
  export * from "./PaginatedContainerImageReadList";
241
+ export * from "./PaginatedDeploymentReleaseTagReadList";
241
242
  export * from "./PaginatedDocumentIndexReadList";
242
243
  export * from "./PaginatedFolderEntityList";
243
244
  export * from "./PaginatedSlimDeploymentReadList";
@@ -245,6 +246,7 @@ export * from "./PaginatedSlimDocumentList";
245
246
  export * from "./PaginatedSlimWorkflowDeploymentList";
246
247
  export * from "./PaginatedTestSuiteRunExecutionList";
247
248
  export * from "./PaginatedTestSuiteTestCaseList";
249
+ export * from "./PaginatedWorkflowReleaseTagReadList";
248
250
  export * from "./PdfSearchResultMetaSource";
249
251
  export * from "./PdfSearchResultMetaSourceRequest";
250
252
  export * from "./PlainTextPromptBlockRequest";
@@ -254,6 +254,7 @@ __exportStar(require("./OpenAiVectorizerTextEmbedding3SmallRequest"), exports);
254
254
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002"), exports);
255
255
  __exportStar(require("./OpenAiVectorizerTextEmbeddingAda002Request"), exports);
256
256
  __exportStar(require("./PaginatedContainerImageReadList"), exports);
257
+ __exportStar(require("./PaginatedDeploymentReleaseTagReadList"), exports);
257
258
  __exportStar(require("./PaginatedDocumentIndexReadList"), exports);
258
259
  __exportStar(require("./PaginatedFolderEntityList"), exports);
259
260
  __exportStar(require("./PaginatedSlimDeploymentReadList"), exports);
@@ -261,6 +262,7 @@ __exportStar(require("./PaginatedSlimDocumentList"), exports);
261
262
  __exportStar(require("./PaginatedSlimWorkflowDeploymentList"), exports);
262
263
  __exportStar(require("./PaginatedTestSuiteRunExecutionList"), exports);
263
264
  __exportStar(require("./PaginatedTestSuiteTestCaseList"), exports);
265
+ __exportStar(require("./PaginatedWorkflowReleaseTagReadList"), exports);
264
266
  __exportStar(require("./PdfSearchResultMetaSource"), exports);
265
267
  __exportStar(require("./PdfSearchResultMetaSourceRequest"), exports);
266
268
  __exportStar(require("./PlainTextPromptBlockRequest"), exports);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.9.4";
1
+ export declare const SDK_VERSION = "0.9.6";
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.4";
4
+ exports.SDK_VERSION = "0.9.6";