vellum-ai 0.14.6 → 0.14.7

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 (177) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +12 -12
  3. package/api/resources/adHoc/client/Client.d.ts +3 -3
  4. package/api/resources/adHoc/client/Client.js +2 -2
  5. package/api/resources/containerImages/client/Client.d.ts +3 -3
  6. package/api/resources/containerImages/client/Client.js +5 -5
  7. package/api/resources/deployments/client/Client.d.ts +3 -3
  8. package/api/resources/deployments/client/Client.js +8 -8
  9. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  10. package/api/resources/documentIndexes/client/Client.js +9 -9
  11. package/api/resources/documents/client/Client.d.ts +3 -3
  12. package/api/resources/documents/client/Client.js +6 -6
  13. package/api/resources/folderEntities/client/Client.d.ts +3 -3
  14. package/api/resources/folderEntities/client/Client.js +3 -3
  15. package/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  16. package/api/resources/metricDefinitions/client/Client.js +3 -3
  17. package/api/resources/mlModels/client/Client.d.ts +3 -3
  18. package/api/resources/mlModels/client/Client.js +2 -2
  19. package/api/resources/organizations/client/Client.d.ts +3 -3
  20. package/api/resources/organizations/client/Client.js +2 -2
  21. package/api/resources/sandboxes/client/Client.d.ts +3 -3
  22. package/api/resources/sandboxes/client/Client.js +4 -4
  23. package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  24. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  25. package/api/resources/testSuites/client/Client.d.ts +3 -3
  26. package/api/resources/testSuites/client/Client.js +5 -5
  27. package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  28. package/api/resources/workflowDeployments/client/Client.js +7 -7
  29. package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  30. package/api/resources/workflowSandboxes/client/Client.js +3 -3
  31. package/api/resources/workflows/client/Client.d.ts +3 -3
  32. package/api/resources/workflows/client/Client.js +3 -3
  33. package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  34. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  35. package/api/resources/workspaces/client/Client.d.ts +3 -3
  36. package/api/resources/workspaces/client/Client.js +2 -2
  37. package/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  38. package/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  39. package/api/types/ChatMessageContent.d.ts +1 -1
  40. package/api/types/ChatMessageContentRequest.d.ts +1 -1
  41. package/api/types/DocumentChatMessageContent.d.ts +11 -0
  42. package/api/types/DocumentChatMessageContent.js +5 -0
  43. package/api/types/DocumentChatMessageContentRequest.d.ts +11 -0
  44. package/api/types/DocumentChatMessageContentRequest.js +5 -0
  45. package/api/types/DocumentVellumValue.d.ts +11 -0
  46. package/api/types/DocumentVellumValue.js +5 -0
  47. package/api/types/DocumentVellumValueRequest.d.ts +11 -0
  48. package/api/types/DocumentVellumValueRequest.js +5 -0
  49. package/api/types/VellumDocument.d.ts +7 -0
  50. package/api/types/VellumDocument.js +5 -0
  51. package/api/types/VellumDocumentRequest.d.ts +7 -0
  52. package/api/types/VellumDocumentRequest.js +5 -0
  53. package/api/types/VellumValue.d.ts +1 -1
  54. package/api/types/VellumValueRequest.d.ts +1 -1
  55. package/api/types/VellumVariableType.d.ts +3 -1
  56. package/api/types/VellumVariableType.js +1 -0
  57. package/api/types/index.d.ts +6 -0
  58. package/api/types/index.js +6 -0
  59. package/dist/Client.d.ts +3 -3
  60. package/dist/Client.js +12 -12
  61. package/dist/api/resources/adHoc/client/Client.d.ts +3 -3
  62. package/dist/api/resources/adHoc/client/Client.js +2 -2
  63. package/dist/api/resources/containerImages/client/Client.d.ts +3 -3
  64. package/dist/api/resources/containerImages/client/Client.js +5 -5
  65. package/dist/api/resources/deployments/client/Client.d.ts +3 -3
  66. package/dist/api/resources/deployments/client/Client.js +8 -8
  67. package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
  68. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  69. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  70. package/dist/api/resources/documents/client/Client.js +6 -6
  71. package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
  72. package/dist/api/resources/folderEntities/client/Client.js +3 -3
  73. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -3
  74. package/dist/api/resources/metricDefinitions/client/Client.js +3 -3
  75. package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
  76. package/dist/api/resources/mlModels/client/Client.js +2 -2
  77. package/dist/api/resources/organizations/client/Client.d.ts +3 -3
  78. package/dist/api/resources/organizations/client/Client.js +2 -2
  79. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  80. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  81. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  82. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  83. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  84. package/dist/api/resources/testSuites/client/Client.js +5 -5
  85. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  86. package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
  87. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  88. package/dist/api/resources/workflowSandboxes/client/Client.js +3 -3
  89. package/dist/api/resources/workflows/client/Client.d.ts +3 -3
  90. package/dist/api/resources/workflows/client/Client.js +3 -3
  91. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  92. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  93. package/dist/api/resources/workspaces/client/Client.d.ts +3 -3
  94. package/dist/api/resources/workspaces/client/Client.js +2 -2
  95. package/dist/api/types/ArrayChatMessageContentItem.d.ts +1 -1
  96. package/dist/api/types/ArrayChatMessageContentItemRequest.d.ts +1 -1
  97. package/dist/api/types/ChatMessageContent.d.ts +1 -1
  98. package/dist/api/types/ChatMessageContentRequest.d.ts +1 -1
  99. package/dist/api/types/DocumentChatMessageContent.d.ts +11 -0
  100. package/dist/api/types/DocumentChatMessageContent.js +5 -0
  101. package/dist/api/types/DocumentChatMessageContentRequest.d.ts +11 -0
  102. package/dist/api/types/DocumentChatMessageContentRequest.js +5 -0
  103. package/dist/api/types/DocumentVellumValue.d.ts +11 -0
  104. package/dist/api/types/DocumentVellumValue.js +5 -0
  105. package/dist/api/types/DocumentVellumValueRequest.d.ts +11 -0
  106. package/dist/api/types/DocumentVellumValueRequest.js +5 -0
  107. package/dist/api/types/VellumDocument.d.ts +7 -0
  108. package/dist/api/types/VellumDocument.js +5 -0
  109. package/dist/api/types/VellumDocumentRequest.d.ts +7 -0
  110. package/dist/api/types/VellumDocumentRequest.js +5 -0
  111. package/dist/api/types/VellumValue.d.ts +1 -1
  112. package/dist/api/types/VellumValueRequest.d.ts +1 -1
  113. package/dist/api/types/VellumVariableType.d.ts +3 -1
  114. package/dist/api/types/VellumVariableType.js +1 -0
  115. package/dist/api/types/index.d.ts +6 -0
  116. package/dist/api/types/index.js +6 -0
  117. package/dist/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  118. package/dist/serialization/types/ArrayChatMessageContentItem.js +2 -0
  119. package/dist/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  120. package/dist/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  121. package/dist/serialization/types/ChatMessageContent.d.ts +2 -1
  122. package/dist/serialization/types/ChatMessageContent.js +2 -0
  123. package/dist/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  124. package/dist/serialization/types/ChatMessageContentRequest.js +2 -0
  125. package/dist/serialization/types/DocumentChatMessageContent.d.ts +14 -0
  126. package/dist/serialization/types/DocumentChatMessageContent.js +45 -0
  127. package/dist/serialization/types/DocumentChatMessageContentRequest.d.ts +14 -0
  128. package/dist/serialization/types/DocumentChatMessageContentRequest.js +45 -0
  129. package/dist/serialization/types/DocumentVellumValue.d.ts +14 -0
  130. package/dist/serialization/types/DocumentVellumValue.js +45 -0
  131. package/dist/serialization/types/DocumentVellumValueRequest.d.ts +14 -0
  132. package/dist/serialization/types/DocumentVellumValueRequest.js +45 -0
  133. package/dist/serialization/types/VellumDocument.d.ts +13 -0
  134. package/dist/serialization/types/VellumDocument.js +44 -0
  135. package/dist/serialization/types/VellumDocumentRequest.d.ts +13 -0
  136. package/dist/serialization/types/VellumDocumentRequest.js +44 -0
  137. package/dist/serialization/types/VellumValue.d.ts +2 -1
  138. package/dist/serialization/types/VellumValue.js +2 -0
  139. package/dist/serialization/types/VellumValueRequest.d.ts +2 -1
  140. package/dist/serialization/types/VellumValueRequest.js +2 -0
  141. package/dist/serialization/types/VellumVariableType.d.ts +1 -1
  142. package/dist/serialization/types/VellumVariableType.js +1 -0
  143. package/dist/serialization/types/index.d.ts +6 -0
  144. package/dist/serialization/types/index.js +6 -0
  145. package/dist/version.d.ts +1 -1
  146. package/dist/version.js +1 -1
  147. package/package.json +1 -1
  148. package/serialization/types/ArrayChatMessageContentItem.d.ts +2 -1
  149. package/serialization/types/ArrayChatMessageContentItem.js +2 -0
  150. package/serialization/types/ArrayChatMessageContentItemRequest.d.ts +2 -1
  151. package/serialization/types/ArrayChatMessageContentItemRequest.js +2 -0
  152. package/serialization/types/ChatMessageContent.d.ts +2 -1
  153. package/serialization/types/ChatMessageContent.js +2 -0
  154. package/serialization/types/ChatMessageContentRequest.d.ts +2 -1
  155. package/serialization/types/ChatMessageContentRequest.js +2 -0
  156. package/serialization/types/DocumentChatMessageContent.d.ts +14 -0
  157. package/serialization/types/DocumentChatMessageContent.js +45 -0
  158. package/serialization/types/DocumentChatMessageContentRequest.d.ts +14 -0
  159. package/serialization/types/DocumentChatMessageContentRequest.js +45 -0
  160. package/serialization/types/DocumentVellumValue.d.ts +14 -0
  161. package/serialization/types/DocumentVellumValue.js +45 -0
  162. package/serialization/types/DocumentVellumValueRequest.d.ts +14 -0
  163. package/serialization/types/DocumentVellumValueRequest.js +45 -0
  164. package/serialization/types/VellumDocument.d.ts +13 -0
  165. package/serialization/types/VellumDocument.js +44 -0
  166. package/serialization/types/VellumDocumentRequest.d.ts +13 -0
  167. package/serialization/types/VellumDocumentRequest.js +44 -0
  168. package/serialization/types/VellumValue.d.ts +2 -1
  169. package/serialization/types/VellumValue.js +2 -0
  170. package/serialization/types/VellumValueRequest.d.ts +2 -1
  171. package/serialization/types/VellumValueRequest.js +2 -0
  172. package/serialization/types/VellumVariableType.d.ts +1 -1
  173. package/serialization/types/VellumVariableType.js +1 -0
  174. package/serialization/types/index.d.ts +6 -0
  175. package/serialization/types/index.js +6 -0
  176. package/version.d.ts +1 -1
  177. package/version.js +1 -1
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  const json_1 = require("../../../../core/json");
59
59
  class Workflows {
60
- constructor(_options = {}) {
60
+ constructor(_options) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -89,7 +89,7 @@ class Workflows {
89
89
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
90
90
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
91
91
  method: "GET",
92
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
93
  contentType: "application/json",
94
94
  queryParameters: _queryParams,
95
95
  requestType: "json",
@@ -164,7 +164,7 @@ class Workflows {
164
164
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
165
165
  .default, "v1/workflows/push"),
166
166
  method: "POST",
167
- headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign(Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  requestType: "file",
169
169
  duplex: _maybeEncodedRequest.duplex,
170
170
  body: _maybeEncodedRequest.body,
@@ -9,7 +9,7 @@ export declare namespace WorkspaceSecrets {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace WorkspaceSecrets {
24
24
  }
25
25
  export declare class WorkspaceSecrets {
26
26
  protected readonly _options: WorkspaceSecrets.Options;
27
- constructor(_options?: WorkspaceSecrets.Options);
27
+ constructor(_options: WorkspaceSecrets.Options);
28
28
  /**
29
29
  * Used to retrieve a Workspace Secret given its ID or name.
30
30
  *
@@ -47,6 +47,6 @@ export declare class WorkspaceSecrets {
47
47
  */
48
48
  partialUpdate(id: string, request?: Vellum.PatchedWorkspaceSecretUpdateRequest, requestOptions?: WorkspaceSecrets.RequestOptions): Promise<Vellum.WorkspaceSecretRead>;
49
49
  protected _getCustomAuthorizationHeaders(): Promise<{
50
- X_API_KEY: string | undefined;
50
+ X_API_KEY: string;
51
51
  }>;
52
52
  }
@@ -55,7 +55,7 @@ const url_join_1 = __importDefault(require("url-join"));
55
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class WorkspaceSecrets {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -74,7 +74,7 @@ class WorkspaceSecrets {
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
75
75
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
76
76
  method: "GET",
77
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -127,7 +127,7 @@ class WorkspaceSecrets {
127
127
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
128
128
  .default, `v1/workspace-secrets/${encodeURIComponent(id)}`),
129
129
  method: "PATCH",
130
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
131
  contentType: "application/json",
132
132
  requestType: "json",
133
133
  body: serializers.PatchedWorkspaceSecretUpdateRequest.jsonOrThrow(request, {
@@ -9,7 +9,7 @@ export declare namespace Workspaces {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace Workspaces {
24
24
  }
25
25
  export declare class Workspaces {
26
26
  protected readonly _options: Workspaces.Options;
27
- constructor(_options?: Workspaces.Options);
27
+ constructor(_options: Workspaces.Options);
28
28
  /**
29
29
  * Retrieves information about the active Workspace
30
30
  *
@@ -35,6 +35,6 @@ export declare class Workspaces {
35
35
  */
36
36
  workspaceIdentity(requestOptions?: Workspaces.RequestOptions): Promise<Vellum.WorkspaceRead>;
37
37
  protected _getCustomAuthorizationHeaders(): Promise<{
38
- X_API_KEY: string | undefined;
38
+ X_API_KEY: string;
39
39
  }>;
40
40
  }
@@ -55,7 +55,7 @@ const url_join_1 = __importDefault(require("url-join"));
55
55
  const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const errors = __importStar(require("../../../../errors/index"));
57
57
  class Workspaces {
58
- constructor(_options = {}) {
58
+ constructor(_options) {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
@@ -73,7 +73,7 @@ class Workspaces {
73
73
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
74
74
  .default, "v1/workspaces/identity"),
75
75
  method: "GET",
76
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ArrayChatMessageContentItem = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent;
5
+ export type ArrayChatMessageContentItem = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent | Vellum.DocumentChatMessageContent;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ArrayChatMessageContentItemRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest;
5
+ export type ArrayChatMessageContentItemRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest | Vellum.DocumentChatMessageContentRequest;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ChatMessageContent = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ArrayChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent;
5
+ export type ChatMessageContent = Vellum.StringChatMessageContent | Vellum.FunctionCallChatMessageContent | Vellum.ArrayChatMessageContent | Vellum.ImageChatMessageContent | Vellum.AudioChatMessageContent | Vellum.DocumentChatMessageContent;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type ChatMessageContentRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ArrayChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest;
5
+ export type ChatMessageContentRequest = Vellum.StringChatMessageContentRequest | Vellum.FunctionCallChatMessageContentRequest | Vellum.ArrayChatMessageContentRequest | Vellum.ImageChatMessageContentRequest | Vellum.AudioChatMessageContentRequest | Vellum.DocumentChatMessageContentRequest;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A document value that is used in a chat message.
7
+ */
8
+ export interface DocumentChatMessageContent {
9
+ type: "DOCUMENT";
10
+ value: Vellum.VellumDocument;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A document value that is used in a chat message.
7
+ */
8
+ export interface DocumentChatMessageContentRequest {
9
+ type: "DOCUMENT";
10
+ value: Vellum.VellumDocumentRequest;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A base Vellum primitive value representing a document.
7
+ */
8
+ export interface DocumentVellumValue {
9
+ type: "DOCUMENT";
10
+ value?: Vellum.VellumDocument;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vellum from "../index";
5
+ /**
6
+ * A base Vellum primitive value representing a document.
7
+ */
8
+ export interface DocumentVellumValueRequest {
9
+ type: "DOCUMENT";
10
+ value?: Vellum.VellumDocumentRequest;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VellumDocument {
5
+ src: string;
6
+ metadata?: Record<string, unknown>;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface VellumDocumentRequest {
5
+ src: string;
6
+ metadata?: Record<string, unknown>;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type VellumValue = Vellum.StringVellumValue | Vellum.NumberVellumValue | Vellum.JsonVellumValue | Vellum.ImageVellumValue | Vellum.AudioVellumValue | Vellum.FunctionCallVellumValue | Vellum.ErrorVellumValue | Vellum.ArrayVellumValue | Vellum.ChatHistoryVellumValue | Vellum.SearchResultsVellumValue;
5
+ export type VellumValue = Vellum.StringVellumValue | Vellum.NumberVellumValue | Vellum.JsonVellumValue | Vellum.ImageVellumValue | Vellum.AudioVellumValue | Vellum.DocumentVellumValue | Vellum.FunctionCallVellumValue | Vellum.ErrorVellumValue | Vellum.ArrayVellumValue | Vellum.ChatHistoryVellumValue | Vellum.SearchResultsVellumValue;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Vellum from "../index";
5
- export type VellumValueRequest = Vellum.StringVellumValueRequest | Vellum.NumberVellumValueRequest | Vellum.JsonVellumValueRequest | Vellum.ImageVellumValueRequest | Vellum.AudioVellumValueRequest | Vellum.FunctionCallVellumValueRequest | Vellum.ErrorVellumValueRequest | Vellum.ArrayVellumValueRequest | Vellum.ChatHistoryVellumValueRequest | Vellum.SearchResultsVellumValueRequest;
5
+ export type VellumValueRequest = Vellum.StringVellumValueRequest | Vellum.NumberVellumValueRequest | Vellum.JsonVellumValueRequest | Vellum.ImageVellumValueRequest | Vellum.AudioVellumValueRequest | Vellum.DocumentVellumValueRequest | Vellum.FunctionCallVellumValueRequest | Vellum.ErrorVellumValueRequest | Vellum.ArrayVellumValueRequest | Vellum.ChatHistoryVellumValueRequest | Vellum.SearchResultsVellumValueRequest;
@@ -12,9 +12,10 @@
12
12
  * * `FUNCTION_CALL` - FUNCTION_CALL
13
13
  * * `IMAGE` - IMAGE
14
14
  * * `AUDIO` - AUDIO
15
+ * * `DOCUMENT` - DOCUMENT
15
16
  * * `NULL` - NULL
16
17
  */
17
- export type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE" | "AUDIO" | "NULL";
18
+ export type VellumVariableType = "STRING" | "NUMBER" | "JSON" | "CHAT_HISTORY" | "SEARCH_RESULTS" | "ERROR" | "ARRAY" | "FUNCTION_CALL" | "IMAGE" | "AUDIO" | "DOCUMENT" | "NULL";
18
19
  export declare const VellumVariableType: {
19
20
  readonly String: "STRING";
20
21
  readonly Number: "NUMBER";
@@ -26,5 +27,6 @@ export declare const VellumVariableType: {
26
27
  readonly FunctionCall: "FUNCTION_CALL";
27
28
  readonly Image: "IMAGE";
28
29
  readonly Audio: "AUDIO";
30
+ readonly Document: "DOCUMENT";
29
31
  readonly Null: "NULL";
30
32
  };
@@ -15,5 +15,6 @@ exports.VellumVariableType = {
15
15
  FunctionCall: "FUNCTION_CALL",
16
16
  Image: "IMAGE",
17
17
  Audio: "AUDIO",
18
+ Document: "DOCUMENT",
18
19
  Null: "NULL",
19
20
  };
@@ -69,6 +69,8 @@ export * from "./DeploymentRead";
69
69
  export * from "./DeploymentReleaseTagDeploymentHistoryItem";
70
70
  export * from "./DeploymentReleaseTagRead";
71
71
  export * from "./DockerServiceToken";
72
+ export * from "./DocumentChatMessageContent";
73
+ export * from "./DocumentChatMessageContentRequest";
72
74
  export * from "./DocumentDocumentToDocumentIndex";
73
75
  export * from "./DocumentIndexChunking";
74
76
  export * from "./DocumentIndexChunkingRequest";
@@ -78,6 +80,8 @@ export * from "./DocumentIndexRead";
78
80
  export * from "./DocumentProcessingState";
79
81
  export * from "./DocumentRead";
80
82
  export * from "./DocumentStatus";
83
+ export * from "./DocumentVellumValue";
84
+ export * from "./DocumentVellumValueRequest";
81
85
  export * from "./EnrichedNormalizedCompletion";
82
86
  export * from "./EntityStatus";
83
87
  export * from "./EntityVisibility";
@@ -432,6 +436,8 @@ export * from "./UpsertTestSuiteTestCaseRequest";
432
436
  export * from "./VariablePromptBlock";
433
437
  export * from "./VellumAudio";
434
438
  export * from "./VellumAudioRequest";
439
+ export * from "./VellumDocument";
440
+ export * from "./VellumDocumentRequest";
435
441
  export * from "./VellumError";
436
442
  export * from "./VellumErrorCodeEnum";
437
443
  export * from "./VellumErrorRequest";
@@ -85,6 +85,8 @@ __exportStar(require("./DeploymentRead"), exports);
85
85
  __exportStar(require("./DeploymentReleaseTagDeploymentHistoryItem"), exports);
86
86
  __exportStar(require("./DeploymentReleaseTagRead"), exports);
87
87
  __exportStar(require("./DockerServiceToken"), exports);
88
+ __exportStar(require("./DocumentChatMessageContent"), exports);
89
+ __exportStar(require("./DocumentChatMessageContentRequest"), exports);
88
90
  __exportStar(require("./DocumentDocumentToDocumentIndex"), exports);
89
91
  __exportStar(require("./DocumentIndexChunking"), exports);
90
92
  __exportStar(require("./DocumentIndexChunkingRequest"), exports);
@@ -94,6 +96,8 @@ __exportStar(require("./DocumentIndexRead"), exports);
94
96
  __exportStar(require("./DocumentProcessingState"), exports);
95
97
  __exportStar(require("./DocumentRead"), exports);
96
98
  __exportStar(require("./DocumentStatus"), exports);
99
+ __exportStar(require("./DocumentVellumValue"), exports);
100
+ __exportStar(require("./DocumentVellumValueRequest"), exports);
97
101
  __exportStar(require("./EnrichedNormalizedCompletion"), exports);
98
102
  __exportStar(require("./EntityStatus"), exports);
99
103
  __exportStar(require("./EntityVisibility"), exports);
@@ -448,6 +452,8 @@ __exportStar(require("./UpsertTestSuiteTestCaseRequest"), exports);
448
452
  __exportStar(require("./VariablePromptBlock"), exports);
449
453
  __exportStar(require("./VellumAudio"), exports);
450
454
  __exportStar(require("./VellumAudioRequest"), exports);
455
+ __exportStar(require("./VellumDocument"), exports);
456
+ __exportStar(require("./VellumDocumentRequest"), exports);
451
457
  __exportStar(require("./VellumError"), exports);
452
458
  __exportStar(require("./VellumErrorCodeEnum"), exports);
453
459
  __exportStar(require("./VellumErrorRequest"), exports);
package/dist/Client.d.ts CHANGED
@@ -26,7 +26,7 @@ export declare namespace VellumClient {
26
26
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
27
27
  /** Specify a custom URL to connect the client to. */
28
28
  baseUrl?: core.Supplier<string>;
29
- apiKey?: core.Supplier<string | undefined>;
29
+ apiKey: core.Supplier<string>;
30
30
  }
31
31
  interface RequestOptions {
32
32
  /** The maximum time to wait for a response in seconds. */
@@ -58,7 +58,7 @@ export declare class VellumClient {
58
58
  protected _workflows: Workflows | undefined;
59
59
  protected _workspaceSecrets: WorkspaceSecrets | undefined;
60
60
  protected _workspaces: Workspaces | undefined;
61
- constructor(_options?: VellumClient.Options);
61
+ constructor(_options: VellumClient.Options);
62
62
  get adHoc(): AdHoc;
63
63
  get containerImages(): ContainerImages;
64
64
  get deployments(): Deployments;
@@ -238,6 +238,6 @@ export declare class VellumClient {
238
238
  */
239
239
  submitWorkflowExecutionActuals(request: Vellum.SubmitWorkflowExecutionActualsRequest, requestOptions?: VellumClient.RequestOptions): Promise<void>;
240
240
  protected _getCustomAuthorizationHeaders(): Promise<{
241
- X_API_KEY: string | undefined;
241
+ X_API_KEY: string;
242
242
  }>;
243
243
  }
package/dist/Client.js CHANGED
@@ -73,7 +73,7 @@ const Client_15 = require("./api/resources/workflows/client/Client");
73
73
  const Client_16 = require("./api/resources/workspaceSecrets/client/Client");
74
74
  const Client_17 = require("./api/resources/workspaces/client/Client");
75
75
  class VellumClient {
76
- constructor(_options = {}) {
76
+ constructor(_options) {
77
77
  this._options = _options;
78
78
  }
79
79
  get adHoc() {
@@ -160,7 +160,7 @@ class VellumClient {
160
160
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
161
161
  .default, "v1/execute-api"),
162
162
  method: "POST",
163
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  body: serializers.ExecuteApiRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -226,7 +226,7 @@ class VellumClient {
226
226
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
227
227
  .predict, "v1/execute-code"),
228
228
  method: "POST",
229
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
229
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
230
  contentType: "application/json",
231
231
  requestType: "json",
232
232
  body: serializers.CodeExecutor.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -295,7 +295,7 @@ class VellumClient {
295
295
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
296
296
  .predict, "v1/execute-prompt"),
297
297
  method: "POST",
298
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
298
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
299
  contentType: "application/json",
300
300
  requestType: "json",
301
301
  body: serializers.ExecutePromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -353,7 +353,7 @@ class VellumClient {
353
353
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
354
354
  .predict, "v1/execute-prompt-stream"),
355
355
  method: "POST",
356
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
356
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
357
357
  contentType: "application/json",
358
358
  requestType: "json",
359
359
  body: serializers.ExecutePromptStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -438,7 +438,7 @@ class VellumClient {
438
438
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
439
439
  .predict, "v1/execute-workflow"),
440
440
  method: "POST",
441
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
441
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
442
442
  contentType: "application/json",
443
443
  requestType: "json",
444
444
  body: serializers.ExecuteWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -494,7 +494,7 @@ class VellumClient {
494
494
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
495
495
  .predict, "v1/execute-workflow-stream"),
496
496
  method: "POST",
497
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
497
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
498
498
  contentType: "application/json",
499
499
  requestType: "json",
500
500
  body: serializers.ExecuteWorkflowStreamRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -581,7 +581,7 @@ class VellumClient {
581
581
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
582
582
  .predict, "v1/generate"),
583
583
  method: "POST",
584
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
584
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
585
585
  contentType: "application/json",
586
586
  requestType: "json",
587
587
  body: serializers.GenerateBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -642,7 +642,7 @@ class VellumClient {
642
642
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
643
643
  .predict, "v1/generate-stream"),
644
644
  method: "POST",
645
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
645
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
646
646
  contentType: "application/json",
647
647
  requestType: "json",
648
648
  body: serializers.GenerateStreamBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -723,7 +723,7 @@ class VellumClient {
723
723
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
724
724
  .predict, "v1/search"),
725
725
  method: "POST",
726
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
726
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
727
727
  contentType: "application/json",
728
728
  requestType: "json",
729
729
  body: serializers.SearchRequestBodyRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -791,7 +791,7 @@ class VellumClient {
791
791
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
792
792
  .predict, "v1/submit-completion-actuals"),
793
793
  method: "POST",
794
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
794
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
795
795
  contentType: "application/json",
796
796
  requestType: "json",
797
797
  body: serializers.SubmitCompletionActualsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -854,7 +854,7 @@ class VellumClient {
854
854
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
855
855
  .predict, "v1/submit-workflow-execution-actuals"),
856
856
  method: "POST",
857
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
857
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
858
858
  contentType: "application/json",
859
859
  requestType: "json",
860
860
  body: serializers.SubmitWorkflowExecutionActualsRequest.jsonOrThrow(request, {
@@ -9,7 +9,7 @@ export declare namespace AdHoc {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,9 +24,9 @@ export declare namespace AdHoc {
24
24
  }
25
25
  export declare class AdHoc {
26
26
  protected readonly _options: AdHoc.Options;
27
- constructor(_options?: AdHoc.Options);
27
+ constructor(_options: AdHoc.Options);
28
28
  adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStream, requestOptions?: AdHoc.RequestOptions): Promise<core.Stream<Vellum.AdHocExecutePromptEvent>>;
29
29
  protected _getCustomAuthorizationHeaders(): Promise<{
30
- X_API_KEY: string | undefined;
30
+ X_API_KEY: string;
31
31
  }>;
32
32
  }
@@ -56,7 +56,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
56
56
  const url_join_1 = __importDefault(require("url-join"));
57
57
  const errors = __importStar(require("../../../../errors/index"));
58
58
  class AdHoc {
59
- constructor(_options = {}) {
59
+ constructor(_options) {
60
60
  this._options = _options;
61
61
  }
62
62
  adhocExecutePromptStream(request, requestOptions) {
@@ -66,7 +66,7 @@ class AdHoc {
66
66
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.VellumEnvironment.Production)
67
67
  .predict, "v1/ad-hoc/execute-prompt-stream"),
68
68
  method: "POST",
69
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.6", "User-Agent": "vellum-ai/0.14.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
69
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.14.7", "User-Agent": "vellum-ai/0.14.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  body: serializers.AdHocExecutePromptStream.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -9,7 +9,7 @@ export declare namespace ContainerImages {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- apiKey?: core.Supplier<string | undefined>;
12
+ apiKey: core.Supplier<string>;
13
13
  }
14
14
  interface RequestOptions {
15
15
  /** The maximum time to wait for a response in seconds. */
@@ -24,7 +24,7 @@ export declare namespace ContainerImages {
24
24
  }
25
25
  export declare class ContainerImages {
26
26
  protected readonly _options: ContainerImages.Options;
27
- constructor(_options?: ContainerImages.Options);
27
+ constructor(_options: ContainerImages.Options);
28
28
  /**
29
29
  * Retrieve a list of container images for the organization.
30
30
  *
@@ -65,6 +65,6 @@ export declare class ContainerImages {
65
65
  */
66
66
  pushContainerImage(request: Vellum.PushContainerImageRequest, requestOptions?: ContainerImages.RequestOptions): Promise<Vellum.ContainerImageRead>;
67
67
  protected _getCustomAuthorizationHeaders(): Promise<{
68
- X_API_KEY: string | undefined;
68
+ X_API_KEY: string;
69
69
  }>;
70
70
  }