vellum-ai 0.12.13 → 0.12.15

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 (128) hide show
  1. package/.mock/definition/__package__.yml +48 -4
  2. package/.mock/definition/adHoc.yml +1 -4
  3. package/.mock/definition/api.yml +1 -1
  4. package/.mock/definition/containerImages.yml +0 -6
  5. package/.mock/definition/folderEntities.yml +1 -1
  6. package/.mock/definition/metricDefinitions.yml +1 -4
  7. package/.mock/definition/workflows.yml +3 -6
  8. package/.mock/openapi/openapi.yml +99 -14
  9. package/Client.d.ts +3 -5
  10. package/Client.js +12 -14
  11. package/api/resources/adHoc/client/Client.d.ts +3 -6
  12. package/api/resources/adHoc/client/Client.js +3 -6
  13. package/api/resources/containerImages/client/Client.d.ts +3 -7
  14. package/api/resources/containerImages/client/Client.js +5 -9
  15. package/api/resources/deployments/client/Client.d.ts +3 -3
  16. package/api/resources/deployments/client/Client.js +8 -8
  17. package/api/resources/documentIndexes/client/Client.d.ts +3 -3
  18. package/api/resources/documentIndexes/client/Client.js +9 -9
  19. package/api/resources/documents/client/Client.d.ts +3 -3
  20. package/api/resources/documents/client/Client.js +6 -6
  21. package/api/resources/folderEntities/client/Client.d.ts +3 -3
  22. package/api/resources/folderEntities/client/Client.js +3 -3
  23. package/api/resources/metricDefinitions/client/Client.d.ts +3 -5
  24. package/api/resources/metricDefinitions/client/Client.js +4 -6
  25. package/api/resources/mlModels/client/Client.d.ts +3 -3
  26. package/api/resources/mlModels/client/Client.js +2 -2
  27. package/api/resources/sandboxes/client/Client.d.ts +3 -3
  28. package/api/resources/sandboxes/client/Client.js +4 -4
  29. package/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  30. package/api/resources/testSuiteRuns/client/Client.js +4 -4
  31. package/api/resources/testSuites/client/Client.d.ts +3 -3
  32. package/api/resources/testSuites/client/Client.js +5 -5
  33. package/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  34. package/api/resources/workflowDeployments/client/Client.js +7 -7
  35. package/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  36. package/api/resources/workflowSandboxes/client/Client.js +2 -2
  37. package/api/resources/workflows/client/Client.d.ts +3 -6
  38. package/api/resources/workflows/client/Client.js +6 -6
  39. package/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  40. package/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  41. package/api/resources/workspaceSecrets/client/Client.js +3 -3
  42. package/api/types/AudioPromptBlock.d.ts +14 -0
  43. package/api/types/AudioPromptBlock.js +5 -0
  44. package/api/types/FunctionCallPromptBlock.d.ts +15 -0
  45. package/api/types/FunctionCallPromptBlock.js +5 -0
  46. package/api/types/ImagePromptBlock.d.ts +14 -0
  47. package/api/types/ImagePromptBlock.js +5 -0
  48. package/api/types/PromptBlock.d.ts +1 -1
  49. package/api/types/WorkflowPushResponse.d.ts +1 -0
  50. package/api/types/index.d.ts +3 -0
  51. package/api/types/index.js +3 -0
  52. package/dist/Client.d.ts +3 -5
  53. package/dist/Client.js +12 -14
  54. package/dist/api/resources/adHoc/client/Client.d.ts +3 -6
  55. package/dist/api/resources/adHoc/client/Client.js +3 -6
  56. package/dist/api/resources/containerImages/client/Client.d.ts +3 -7
  57. package/dist/api/resources/containerImages/client/Client.js +5 -9
  58. package/dist/api/resources/deployments/client/Client.d.ts +3 -3
  59. package/dist/api/resources/deployments/client/Client.js +8 -8
  60. package/dist/api/resources/documentIndexes/client/Client.d.ts +3 -3
  61. package/dist/api/resources/documentIndexes/client/Client.js +9 -9
  62. package/dist/api/resources/documents/client/Client.d.ts +3 -3
  63. package/dist/api/resources/documents/client/Client.js +6 -6
  64. package/dist/api/resources/folderEntities/client/Client.d.ts +3 -3
  65. package/dist/api/resources/folderEntities/client/Client.js +3 -3
  66. package/dist/api/resources/metricDefinitions/client/Client.d.ts +3 -5
  67. package/dist/api/resources/metricDefinitions/client/Client.js +4 -6
  68. package/dist/api/resources/mlModels/client/Client.d.ts +3 -3
  69. package/dist/api/resources/mlModels/client/Client.js +2 -2
  70. package/dist/api/resources/sandboxes/client/Client.d.ts +3 -3
  71. package/dist/api/resources/sandboxes/client/Client.js +4 -4
  72. package/dist/api/resources/testSuiteRuns/client/Client.d.ts +3 -3
  73. package/dist/api/resources/testSuiteRuns/client/Client.js +4 -4
  74. package/dist/api/resources/testSuites/client/Client.d.ts +3 -3
  75. package/dist/api/resources/testSuites/client/Client.js +5 -5
  76. package/dist/api/resources/workflowDeployments/client/Client.d.ts +3 -3
  77. package/dist/api/resources/workflowDeployments/client/Client.js +7 -7
  78. package/dist/api/resources/workflowSandboxes/client/Client.d.ts +3 -3
  79. package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
  80. package/dist/api/resources/workflows/client/Client.d.ts +3 -6
  81. package/dist/api/resources/workflows/client/Client.js +6 -6
  82. package/dist/api/resources/workflows/client/requests/WorkflowPushRequest.d.ts +1 -0
  83. package/dist/api/resources/workspaceSecrets/client/Client.d.ts +3 -3
  84. package/dist/api/resources/workspaceSecrets/client/Client.js +3 -3
  85. package/dist/api/types/AudioPromptBlock.d.ts +14 -0
  86. package/dist/api/types/AudioPromptBlock.js +5 -0
  87. package/dist/api/types/FunctionCallPromptBlock.d.ts +15 -0
  88. package/dist/api/types/FunctionCallPromptBlock.js +5 -0
  89. package/dist/api/types/ImagePromptBlock.d.ts +14 -0
  90. package/dist/api/types/ImagePromptBlock.js +5 -0
  91. package/dist/api/types/PromptBlock.d.ts +1 -1
  92. package/dist/api/types/WorkflowPushResponse.d.ts +1 -0
  93. package/dist/api/types/index.d.ts +3 -0
  94. package/dist/api/types/index.js +3 -0
  95. package/dist/environments.d.ts +2 -2
  96. package/dist/environments.js +1 -1
  97. package/dist/serialization/types/AudioPromptBlock.d.ts +18 -0
  98. package/dist/serialization/types/AudioPromptBlock.js +39 -0
  99. package/dist/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
  100. package/dist/serialization/types/FunctionCallPromptBlock.js +40 -0
  101. package/dist/serialization/types/ImagePromptBlock.d.ts +18 -0
  102. package/dist/serialization/types/ImagePromptBlock.js +39 -0
  103. package/dist/serialization/types/PromptBlock.d.ts +4 -1
  104. package/dist/serialization/types/PromptBlock.js +6 -0
  105. package/dist/serialization/types/WorkflowPushResponse.d.ts +1 -0
  106. package/dist/serialization/types/WorkflowPushResponse.js +1 -0
  107. package/dist/serialization/types/index.d.ts +3 -0
  108. package/dist/serialization/types/index.js +3 -0
  109. package/dist/version.d.ts +1 -1
  110. package/dist/version.js +1 -1
  111. package/environments.d.ts +2 -2
  112. package/environments.js +1 -1
  113. package/package.json +1 -1
  114. package/reference.md +0 -75
  115. package/serialization/types/AudioPromptBlock.d.ts +18 -0
  116. package/serialization/types/AudioPromptBlock.js +39 -0
  117. package/serialization/types/FunctionCallPromptBlock.d.ts +19 -0
  118. package/serialization/types/FunctionCallPromptBlock.js +40 -0
  119. package/serialization/types/ImagePromptBlock.d.ts +18 -0
  120. package/serialization/types/ImagePromptBlock.js +39 -0
  121. package/serialization/types/PromptBlock.d.ts +4 -1
  122. package/serialization/types/PromptBlock.js +6 -0
  123. package/serialization/types/WorkflowPushResponse.d.ts +1 -0
  124. package/serialization/types/WorkflowPushResponse.js +1 -0
  125. package/serialization/types/index.d.ts +3 -0
  126. package/serialization/types/index.js +3 -0
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace FolderEntities {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace FolderEntities {
20
20
  }
21
21
  export declare class FolderEntities {
22
22
  protected readonly _options: FolderEntities.Options;
23
- constructor(_options?: FolderEntities.Options);
23
+ constructor(_options: FolderEntities.Options);
24
24
  /**
25
25
  * List all folder entities within a specified folder.
26
26
  *
@@ -55,6 +55,6 @@ export declare class FolderEntities {
55
55
  */
56
56
  addEntityToFolder(folderId: string, request: Vellum.AddEntityToFolderRequest, requestOptions?: FolderEntities.RequestOptions): Promise<void>;
57
57
  protected _getCustomAuthorizationHeaders(): Promise<{
58
- X_API_KEY: string | undefined;
58
+ X_API_KEY: string;
59
59
  }>;
60
60
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class FolderEntities {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -81,7 +81,7 @@ class FolderEntities {
81
81
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
82
82
  .default, "v1/folder-entities"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -145,7 +145,7 @@ class FolderEntities {
145
145
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
146
146
  .default, `v1/folders/${encodeURIComponent(folderId)}/add-entity`),
147
147
  method: "POST",
148
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
148
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
149
149
  contentType: "application/json",
150
150
  requestType: "json",
151
151
  body: serializers.AddEntityToFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace MetricDefinitions {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,10 +20,8 @@ export declare namespace MetricDefinitions {
20
20
  }
21
21
  export declare class MetricDefinitions {
22
22
  protected readonly _options: MetricDefinitions.Options;
23
- constructor(_options?: MetricDefinitions.Options);
23
+ constructor(_options: MetricDefinitions.Options);
24
24
  /**
25
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
26
- *
27
25
  * @param {string} id - Either the Metric Definition's ID or its unique name
28
26
  * @param {Vellum.ExecuteMetricDefinition} request
29
27
  * @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration.
@@ -48,6 +46,6 @@ export declare class MetricDefinitions {
48
46
  */
49
47
  metricDefinitionHistoryItemRetrieve(historyIdOrReleaseTag: string, id: string, requestOptions?: MetricDefinitions.RequestOptions): Promise<Vellum.MetricDefinitionHistoryItem>;
50
48
  protected _getCustomAuthorizationHeaders(): Promise<{
51
- X_API_KEY: string | undefined;
49
+ X_API_KEY: string;
52
50
  }>;
53
51
  }
@@ -45,12 +45,10 @@ const serializers = __importStar(require("../../../../serialization/index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class MetricDefinitions {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
52
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
53
- *
54
52
  * @param {string} id - Either the Metric Definition's ID or its unique name
55
53
  * @param {Vellum.ExecuteMetricDefinition} request
56
54
  * @param {MetricDefinitions.RequestOptions} requestOptions - Request-specific configuration.
@@ -69,9 +67,9 @@ class MetricDefinitions {
69
67
  return __awaiter(this, void 0, void 0, function* () {
70
68
  const _response = yield core.fetcher({
71
69
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
- .default, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
70
+ .predict, `v1/metric-definitions/${encodeURIComponent(id)}/execute`),
73
71
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
72
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
73
  contentType: "application/json",
76
74
  requestType: "json",
77
75
  body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -123,7 +121,7 @@ class MetricDefinitions {
123
121
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
124
122
  .default, `v1/metric-definitions/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
125
123
  method: "GET",
126
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
124
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
125
  contentType: "application/json",
128
126
  requestType: "json",
129
127
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace MlModels {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace MlModels {
20
20
  }
21
21
  export declare class MlModels {
22
22
  protected readonly _options: MlModels.Options;
23
- constructor(_options?: MlModels.Options);
23
+ constructor(_options: MlModels.Options);
24
24
  /**
25
25
  * Retrieve details about an ML Model
26
26
  *
@@ -32,6 +32,6 @@ export declare class MlModels {
32
32
  */
33
33
  retrieve(id: string, requestOptions?: MlModels.RequestOptions): Promise<Vellum.MlModelRead>;
34
34
  protected _getCustomAuthorizationHeaders(): Promise<{
35
- X_API_KEY: string | undefined;
35
+ X_API_KEY: string;
36
36
  }>;
37
37
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class MlModels {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -64,7 +64,7 @@ class MlModels {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/ml-models/${encodeURIComponent(id)}`),
66
66
  method: "GET",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace Sandboxes {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace Sandboxes {
20
20
  }
21
21
  export declare class Sandboxes {
22
22
  protected readonly _options: Sandboxes.Options;
23
- constructor(_options?: Sandboxes.Options);
23
+ constructor(_options: Sandboxes.Options);
24
24
  /**
25
25
  * @param {string} id - A UUID string identifying this sandbox.
26
26
  * @param {string} promptVariantId - An ID identifying the Prompt you'd like to deploy.
@@ -87,6 +87,6 @@ export declare class Sandboxes {
87
87
  */
88
88
  deleteSandboxScenario(id: string, scenarioId: string, requestOptions?: Sandboxes.RequestOptions): Promise<void>;
89
89
  protected _getCustomAuthorizationHeaders(): Promise<{
90
- X_API_KEY: string | undefined;
90
+ X_API_KEY: string;
91
91
  }>;
92
92
  }
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class Sandboxes {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -64,7 +64,7 @@ class Sandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/sandboxes/${encodeURIComponent(id)}/prompts/${encodeURIComponent(promptVariantId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -151,7 +151,7 @@ class Sandboxes {
151
151
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
152
152
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios`),
153
153
  method: "POST",
154
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
154
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
155
155
  contentType: "application/json",
156
156
  requestType: "json",
157
157
  body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -205,7 +205,7 @@ class Sandboxes {
205
205
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
206
206
  .default, `v1/sandboxes/${encodeURIComponent(id)}/scenarios/${encodeURIComponent(scenarioId)}`),
207
207
  method: "DELETE",
208
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
209
209
  contentType: "application/json",
210
210
  requestType: "json",
211
211
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace TestSuiteRuns {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace TestSuiteRuns {
20
20
  }
21
21
  export declare class TestSuiteRuns {
22
22
  protected readonly _options: TestSuiteRuns.Options;
23
- constructor(_options?: TestSuiteRuns.Options);
23
+ constructor(_options: TestSuiteRuns.Options);
24
24
  /**
25
25
  * Trigger a Test Suite and create a new Test Suite Run
26
26
  *
@@ -58,6 +58,6 @@ export declare class TestSuiteRuns {
58
58
  */
59
59
  listExecutions(id: string, request?: Vellum.TestSuiteRunsListExecutionsRequest, requestOptions?: TestSuiteRuns.RequestOptions): Promise<Vellum.PaginatedTestSuiteRunExecutionList>;
60
60
  protected _getCustomAuthorizationHeaders(): Promise<{
61
- X_API_KEY: string | undefined;
61
+ X_API_KEY: string;
62
62
  }>;
63
63
  }
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class TestSuiteRuns {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -71,7 +71,7 @@ class TestSuiteRuns {
71
71
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
72
72
  .default, "v1/test-suite-runs"),
73
73
  method: "POST",
74
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
74
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -124,7 +124,7 @@ class TestSuiteRuns {
124
124
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
125
125
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}`),
126
126
  method: "GET",
127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
127
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
128
  contentType: "application/json",
129
129
  requestType: "json",
130
130
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -191,7 +191,7 @@ class TestSuiteRuns {
191
191
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
192
192
  .default, `v1/test-suite-runs/${encodeURIComponent(id)}/executions`),
193
193
  method: "GET",
194
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
194
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
195
195
  contentType: "application/json",
196
196
  queryParameters: _queryParams,
197
197
  requestType: "json",
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace TestSuites {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace TestSuites {
20
20
  }
21
21
  export declare class TestSuites {
22
22
  protected readonly _options: TestSuites.Options;
23
- constructor(_options?: TestSuites.Options);
23
+ constructor(_options: TestSuites.Options);
24
24
  /**
25
25
  * List the Test Cases associated with a Test Suite
26
26
  *
@@ -74,6 +74,6 @@ export declare class TestSuites {
74
74
  */
75
75
  deleteTestSuiteTestCase(id: string, testCaseId: string, requestOptions?: TestSuites.RequestOptions): Promise<void>;
76
76
  protected _getCustomAuthorizationHeaders(): Promise<{
77
- X_API_KEY: string | undefined;
77
+ X_API_KEY: string;
78
78
  }>;
79
79
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class TestSuites {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -73,7 +73,7 @@ class TestSuites {
73
73
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
74
74
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  requestType: "json",
@@ -142,7 +142,7 @@ class TestSuites {
142
142
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
143
143
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases`),
144
144
  method: "POST",
145
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -189,7 +189,7 @@ class TestSuites {
189
189
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
190
190
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases-bulk`),
191
191
  method: "POST",
192
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
193
193
  contentType: "application/x-ndjson",
194
194
  requestType: "json",
195
195
  body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
@@ -256,7 +256,7 @@ class TestSuites {
256
256
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
257
257
  .default, `v1/test-suites/${encodeURIComponent(id)}/test-cases/${encodeURIComponent(testCaseId)}`),
258
258
  method: "DELETE",
259
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
260
  contentType: "application/json",
261
261
  requestType: "json",
262
262
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace WorkflowDeployments {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace WorkflowDeployments {
20
20
  }
21
21
  export declare class WorkflowDeployments {
22
22
  protected readonly _options: WorkflowDeployments.Options;
23
- constructor(_options?: WorkflowDeployments.Options);
23
+ constructor(_options: WorkflowDeployments.Options);
24
24
  /**
25
25
  * Used to list all Workflow Deployments.
26
26
  *
@@ -87,6 +87,6 @@ export declare class WorkflowDeployments {
87
87
  */
88
88
  updateWorkflowReleaseTag(id: string, name: string, request?: Vellum.PatchedWorkflowReleaseTagUpdateRequest, requestOptions?: WorkflowDeployments.RequestOptions): Promise<Vellum.WorkflowReleaseTagRead>;
89
89
  protected _getCustomAuthorizationHeaders(): Promise<{
90
- X_API_KEY: string | undefined;
90
+ X_API_KEY: string;
91
91
  }>;
92
92
  }
@@ -45,7 +45,7 @@ const url_join_1 = __importDefault(require("url-join"));
45
45
  const serializers = __importStar(require("../../../../serialization/index"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class WorkflowDeployments {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -78,7 +78,7 @@ class WorkflowDeployments {
78
78
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
79
79
  .default, "v1/workflow-deployments"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  requestType: "json",
@@ -131,7 +131,7 @@ class WorkflowDeployments {
131
131
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
132
132
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}`),
133
133
  method: "GET",
134
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
134
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -184,7 +184,7 @@ class WorkflowDeployments {
184
184
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
185
185
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/history/${encodeURIComponent(historyIdOrReleaseTag)}`),
186
186
  method: "GET",
187
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
187
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
188
188
  contentType: "application/json",
189
189
  requestType: "json",
190
190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -251,7 +251,7 @@ class WorkflowDeployments {
251
251
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
252
252
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags`),
253
253
  method: "GET",
254
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
254
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
255
255
  contentType: "application/json",
256
256
  queryParameters: _queryParams,
257
257
  requestType: "json",
@@ -305,7 +305,7 @@ class WorkflowDeployments {
305
305
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
306
306
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
307
307
  method: "GET",
308
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
308
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
309
309
  contentType: "application/json",
310
310
  requestType: "json",
311
311
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
@@ -359,7 +359,7 @@ class WorkflowDeployments {
359
359
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
360
360
  .default, `v1/workflow-deployments/${encodeURIComponent(id)}/release-tags/${encodeURIComponent(name)}`),
361
361
  method: "PATCH",
362
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
362
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
363
363
  contentType: "application/json",
364
364
  requestType: "json",
365
365
  body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
@@ -7,7 +7,7 @@ import * as Vellum from "../../../index";
7
7
  export declare namespace WorkflowSandboxes {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
10
- apiKey?: core.Supplier<string | undefined>;
10
+ apiKey: core.Supplier<string>;
11
11
  }
12
12
  interface RequestOptions {
13
13
  /** The maximum time to wait for a response in seconds. */
@@ -20,7 +20,7 @@ export declare namespace WorkflowSandboxes {
20
20
  }
21
21
  export declare class WorkflowSandboxes {
22
22
  protected readonly _options: WorkflowSandboxes.Options;
23
- constructor(_options?: WorkflowSandboxes.Options);
23
+ constructor(_options: WorkflowSandboxes.Options);
24
24
  /**
25
25
  * @param {string} id - A UUID string identifying this workflow sandbox.
26
26
  * @param {string} workflowId - An ID identifying the Workflow you'd like to deploy.
@@ -32,6 +32,6 @@ export declare class WorkflowSandboxes {
32
32
  */
33
33
  deployWorkflow(id: string, workflowId: string, request?: Vellum.DeploySandboxWorkflowRequest, requestOptions?: WorkflowSandboxes.RequestOptions): Promise<Vellum.WorkflowDeploymentRead>;
34
34
  protected _getCustomAuthorizationHeaders(): Promise<{
35
- X_API_KEY: string | undefined;
35
+ X_API_KEY: string;
36
36
  }>;
37
37
  }
@@ -45,7 +45,7 @@ const serializers = __importStar(require("../../../../serialization/index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  class WorkflowSandboxes {
48
- constructor(_options = {}) {
48
+ constructor(_options) {
49
49
  this._options = _options;
50
50
  }
51
51
  /**
@@ -64,7 +64,7 @@ class WorkflowSandboxes {
64
64
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
65
65
  .default, `v1/workflow-sandboxes/${encodeURIComponent(id)}/workflows/${encodeURIComponent(workflowId)}/deploy`),
66
66
  method: "POST",
67
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
68
68
  contentType: "application/json",
69
69
  requestType: "json",
70
70
  body: serializers.DeploySandboxWorkflowRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -11,7 +11,7 @@ import { Blob } from "buffer";
11
11
  export declare namespace Workflows {
12
12
  interface Options {
13
13
  environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
14
- apiKey?: core.Supplier<string | undefined>;
14
+ apiKey: core.Supplier<string>;
15
15
  }
16
16
  interface RequestOptions {
17
17
  /** The maximum time to wait for a response in seconds. */
@@ -24,15 +24,12 @@ export declare namespace Workflows {
24
24
  }
25
25
  export declare class Workflows {
26
26
  protected readonly _options: Workflows.Options;
27
- constructor(_options?: Workflows.Options);
27
+ constructor(_options: Workflows.Options);
28
28
  /**
29
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
30
29
  * @throws {@link Vellum.BadRequestError}
31
30
  */
32
31
  pull(id: string, request?: Vellum.WorkflowsPullRequest, requestOptions?: Workflows.RequestOptions): Promise<stream.Readable>;
33
32
  /**
34
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
35
- *
36
33
  * @param {File | fs.ReadStream | Blob | undefined} artifact
37
34
  * @param {Vellum.WorkflowPushRequest} request
38
35
  * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
@@ -45,6 +42,6 @@ export declare class Workflows {
45
42
  */
46
43
  push(artifact: File | fs.ReadStream | Blob | undefined, request: Vellum.WorkflowPushRequest, requestOptions?: Workflows.RequestOptions): Promise<Vellum.WorkflowPushResponse>;
47
44
  protected _getCustomAuthorizationHeaders(): Promise<{
48
- X_API_KEY: string | undefined;
45
+ X_API_KEY: string;
49
46
  }>;
50
47
  }
@@ -46,11 +46,10 @@ const url_join_1 = __importDefault(require("url-join"));
46
46
  const errors = __importStar(require("../../../../errors/index"));
47
47
  const serializers = __importStar(require("../../../../serialization/index"));
48
48
  class Workflows {
49
- constructor(_options = {}) {
49
+ constructor(_options) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
53
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
54
53
  * @throws {@link Vellum.BadRequestError}
55
54
  */
56
55
  pull(id, request = {}, requestOptions) {
@@ -77,7 +76,7 @@ class Workflows {
77
76
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
78
77
  .default, `v1/workflows/${encodeURIComponent(id)}/pull`),
79
78
  method: "GET",
80
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
79
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
80
  contentType: "application/json",
82
81
  queryParameters: _queryParams,
83
82
  requestType: "json",
@@ -116,8 +115,6 @@ class Workflows {
116
115
  });
117
116
  }
118
117
  /**
119
- * An internal-only endpoint that's subject to breaking changes without notice. Not intended for public use.
120
- *
121
118
  * @param {File | fs.ReadStream | Blob | undefined} artifact
122
119
  * @param {Vellum.WorkflowPushRequest} request
123
120
  * @param {Workflows.RequestOptions} requestOptions - Request-specific configuration.
@@ -143,12 +140,15 @@ class Workflows {
143
140
  if (artifact != null) {
144
141
  yield _request.appendFile("artifact", artifact);
145
142
  }
143
+ if (request.dryRun != null) {
144
+ yield _request.append("dry_run", request.dryRun.toString());
145
+ }
146
146
  const _maybeEncodedRequest = yield _request.getRequest();
147
147
  const _response = yield core.fetcher({
148
148
  url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
149
149
  .default, "v1/workflows/push"),
150
150
  method: "POST",
151
- headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.13", "User-Agent": "vellum-ai/0.12.13", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
151
+ headers: Object.assign(Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.12.15", "User-Agent": "vellum-ai/0.12.15", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
152
152
  requestType: "file",
153
153
  duplex: _maybeEncodedRequest.duplex,
154
154
  body: _maybeEncodedRequest.body,
@@ -15,4 +15,5 @@ export interface WorkflowPushRequest {
15
15
  label: string;
16
16
  workflowSandboxId?: string;
17
17
  deploymentConfig?: Vellum.WorkflowPushDeploymentConfigRequest;
18
+ dryRun?: boolean;
18
19
  }