vellum-ai 1.4.1 → 1.5.0
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.
- package/Client.d.ts +3 -0
- package/Client.js +56 -51
- package/api/resources/adHoc/client/Client.js +2 -2
- package/api/resources/containerImages/client/Client.js +4 -4
- package/api/resources/deployments/client/Client.js +8 -8
- package/api/resources/documentIndexes/client/Client.js +8 -8
- package/api/resources/documents/client/Client.js +5 -5
- package/api/resources/events/client/Client.js +1 -1
- package/api/resources/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/integrations/client/Client.d.ts +67 -0
- package/api/resources/integrations/client/Client.js +217 -0
- package/api/resources/integrations/client/index.d.ts +1 -0
- package/api/resources/integrations/client/index.js +2 -0
- package/api/resources/integrations/index.d.ts +1 -0
- package/api/resources/integrations/index.js +17 -0
- package/api/resources/metricDefinitions/client/Client.js +2 -2
- package/api/resources/mlModels/client/Client.js +1 -1
- package/api/resources/organizations/client/Client.js +1 -1
- package/api/resources/prompts/client/Client.js +2 -2
- package/api/resources/sandboxes/client/Client.js +3 -3
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +4 -4
- package/api/resources/workflowDeployments/client/Client.js +9 -9
- package/api/resources/workflowExecutions/client/Client.js +1 -1
- package/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/api/resources/workflows/client/Client.js +3 -3
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/ComponentsSchemasComposioExecuteToolRequest.d.ts +5 -0
- package/api/types/ComponentsSchemasComposioExecuteToolRequest.js +5 -0
- package/api/types/ComponentsSchemasComposioExecuteToolResponse.d.ts +5 -0
- package/api/types/ComponentsSchemasComposioExecuteToolResponse.js +5 -0
- package/api/types/ComponentsSchemasComposioToolDefinition.d.ts +5 -0
- package/api/types/ComponentsSchemasComposioToolDefinition.js +5 -0
- package/api/types/ComposioExecuteToolRequest.d.ts +10 -0
- package/api/types/ComposioExecuteToolRequest.js +5 -0
- package/api/types/ComposioExecuteToolResponse.d.ts +10 -0
- package/api/types/ComposioExecuteToolResponse.js +5 -0
- package/api/types/ComposioToolDefinition.d.ts +12 -0
- package/api/types/ComposioToolDefinition.js +5 -0
- package/api/types/VellumErrorCodeEnum.d.ts +5 -1
- package/api/types/VellumErrorCodeEnum.js +2 -0
- package/api/types/VellumSdkError.d.ts +1 -0
- package/api/types/WorkflowEventError.d.ts +1 -0
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +56 -51
- package/dist/api/resources/adHoc/client/Client.js +2 -2
- package/dist/api/resources/containerImages/client/Client.js +4 -4
- package/dist/api/resources/deployments/client/Client.js +8 -8
- package/dist/api/resources/documentIndexes/client/Client.js +8 -8
- package/dist/api/resources/documents/client/Client.js +5 -5
- package/dist/api/resources/events/client/Client.js +1 -1
- package/dist/api/resources/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/integrations/client/Client.d.ts +67 -0
- package/dist/api/resources/integrations/client/Client.js +217 -0
- package/dist/api/resources/integrations/client/index.d.ts +1 -0
- package/dist/api/resources/integrations/client/index.js +2 -0
- package/dist/api/resources/integrations/index.d.ts +1 -0
- package/dist/api/resources/integrations/index.js +17 -0
- package/dist/api/resources/metricDefinitions/client/Client.js +2 -2
- package/dist/api/resources/mlModels/client/Client.js +1 -1
- package/dist/api/resources/organizations/client/Client.js +1 -1
- package/dist/api/resources/prompts/client/Client.js +2 -2
- package/dist/api/resources/sandboxes/client/Client.js +3 -3
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +4 -4
- package/dist/api/resources/workflowDeployments/client/Client.js +9 -9
- package/dist/api/resources/workflowExecutions/client/Client.js +1 -1
- package/dist/api/resources/workflowSandboxes/client/Client.js +2 -2
- package/dist/api/resources/workflows/client/Client.js +3 -3
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/ComponentsSchemasComposioExecuteToolRequest.d.ts +5 -0
- package/dist/api/types/ComponentsSchemasComposioExecuteToolRequest.js +5 -0
- package/dist/api/types/ComponentsSchemasComposioExecuteToolResponse.d.ts +5 -0
- package/dist/api/types/ComponentsSchemasComposioExecuteToolResponse.js +5 -0
- package/dist/api/types/ComponentsSchemasComposioToolDefinition.d.ts +5 -0
- package/dist/api/types/ComponentsSchemasComposioToolDefinition.js +5 -0
- package/dist/api/types/ComposioExecuteToolRequest.d.ts +10 -0
- package/dist/api/types/ComposioExecuteToolRequest.js +5 -0
- package/dist/api/types/ComposioExecuteToolResponse.d.ts +10 -0
- package/dist/api/types/ComposioExecuteToolResponse.js +5 -0
- package/dist/api/types/ComposioToolDefinition.d.ts +12 -0
- package/dist/api/types/ComposioToolDefinition.js +5 -0
- package/dist/api/types/VellumErrorCodeEnum.d.ts +5 -1
- package/dist/api/types/VellumErrorCodeEnum.js +2 -0
- package/dist/api/types/VellumSdkError.d.ts +1 -0
- package/dist/api/types/WorkflowEventError.d.ts +1 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/serialization/types/ComponentsSchemasComposioExecuteToolRequest.d.ts +11 -0
- package/dist/serialization/types/ComponentsSchemasComposioExecuteToolRequest.js +8 -0
- package/dist/serialization/types/ComponentsSchemasComposioExecuteToolResponse.d.ts +11 -0
- package/dist/serialization/types/ComponentsSchemasComposioExecuteToolResponse.js +8 -0
- package/dist/serialization/types/ComponentsSchemasComposioToolDefinition.d.ts +11 -0
- package/dist/serialization/types/ComponentsSchemasComposioToolDefinition.js +8 -0
- package/dist/serialization/types/ComposioExecuteToolRequest.d.ts +13 -0
- package/dist/serialization/types/ComposioExecuteToolRequest.js +44 -0
- package/dist/serialization/types/ComposioExecuteToolResponse.d.ts +13 -0
- package/dist/serialization/types/ComposioExecuteToolResponse.js +44 -0
- package/dist/serialization/types/ComposioToolDefinition.d.ts +15 -0
- package/dist/serialization/types/ComposioToolDefinition.js +46 -0
- package/dist/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/dist/serialization/types/VellumErrorCodeEnum.js +2 -0
- package/dist/serialization/types/VellumSdkError.d.ts +1 -0
- package/dist/serialization/types/VellumSdkError.js +1 -0
- package/dist/serialization/types/WorkflowEventError.d.ts +1 -0
- package/dist/serialization/types/WorkflowEventError.js +1 -0
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +145 -0
- package/serialization/types/ComponentsSchemasComposioExecuteToolRequest.d.ts +11 -0
- package/serialization/types/ComponentsSchemasComposioExecuteToolRequest.js +8 -0
- package/serialization/types/ComponentsSchemasComposioExecuteToolResponse.d.ts +11 -0
- package/serialization/types/ComponentsSchemasComposioExecuteToolResponse.js +8 -0
- package/serialization/types/ComponentsSchemasComposioToolDefinition.d.ts +11 -0
- package/serialization/types/ComponentsSchemasComposioToolDefinition.js +8 -0
- package/serialization/types/ComposioExecuteToolRequest.d.ts +13 -0
- package/serialization/types/ComposioExecuteToolRequest.js +44 -0
- package/serialization/types/ComposioExecuteToolResponse.d.ts +13 -0
- package/serialization/types/ComposioExecuteToolResponse.js +44 -0
- package/serialization/types/ComposioToolDefinition.d.ts +15 -0
- package/serialization/types/ComposioToolDefinition.js +46 -0
- package/serialization/types/VellumErrorCodeEnum.d.ts +1 -1
- package/serialization/types/VellumErrorCodeEnum.js +2 -0
- package/serialization/types/VellumSdkError.d.ts +1 -0
- package/serialization/types/VellumSdkError.js +1 -0
- package/serialization/types/WorkflowEventError.d.ts +1 -0
- package/serialization/types/WorkflowEventError.js +1 -0
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.workflowExecutions = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.events = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
39
|
+
exports.workspaces = exports.workspaceSecrets = exports.workflows = exports.workflowExecutions = exports.testSuites = exports.testSuiteRuns = exports.sandboxes = exports.prompts = exports.organizations = exports.mlModels = exports.metricDefinitions = exports.documents = exports.containerImages = exports.adHoc = exports.events = exports.integrations = exports.workflowSandboxes = exports.workflowDeployments = exports.folderEntities = exports.documentIndexes = exports.deployments = void 0;
|
|
40
40
|
exports.deployments = __importStar(require("./deployments"));
|
|
41
41
|
__exportStar(require("./deployments/types"), exports);
|
|
42
42
|
exports.documentIndexes = __importStar(require("./documentIndexes"));
|
|
@@ -47,6 +47,7 @@ exports.workflowDeployments = __importStar(require("./workflowDeployments"));
|
|
|
47
47
|
__exportStar(require("./workflowDeployments/types"), exports);
|
|
48
48
|
exports.workflowSandboxes = __importStar(require("./workflowSandboxes"));
|
|
49
49
|
__exportStar(require("./workflowSandboxes/types"), exports);
|
|
50
|
+
exports.integrations = __importStar(require("./integrations"));
|
|
50
51
|
exports.events = __importStar(require("./events"));
|
|
51
52
|
exports.adHoc = __importStar(require("./adHoc"));
|
|
52
53
|
exports.containerImages = __importStar(require("./containerImages"));
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import * as Vellum from "../../../index";
|
|
7
|
+
export declare namespace Integrations {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.VellumEnvironment | environments.VellumEnvironmentUrls>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Override the X-API-Version header */
|
|
14
|
+
apiVersion?: core.Supplier<Vellum.ApiVersionEnum | undefined>;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
/** The maximum time to wait for a response in seconds. */
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
/** A hook to abort the request. */
|
|
22
|
+
abortSignal?: AbortSignal;
|
|
23
|
+
/** Override the X-API-Version header */
|
|
24
|
+
apiVersion?: Vellum.ApiVersionEnum | undefined;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class Integrations {
|
|
30
|
+
protected readonly _options: Integrations.Options;
|
|
31
|
+
constructor(_options: Integrations.Options);
|
|
32
|
+
/**
|
|
33
|
+
* @param {string} integration - The integration name
|
|
34
|
+
* @param {string} provider - The integration provider name
|
|
35
|
+
* @param {string} toolName - The tool's unique name, as specified by the integration provider
|
|
36
|
+
* @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.integrations.retrieveIntegrationToolDefinition("integration", "provider", "tool_name")
|
|
40
|
+
*/
|
|
41
|
+
retrieveIntegrationToolDefinition(integration: string, provider: string, toolName: string, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.ComponentsSchemasComposioToolDefinition>;
|
|
42
|
+
private __retrieveIntegrationToolDefinition;
|
|
43
|
+
/**
|
|
44
|
+
* @param {string} integration - The integration name
|
|
45
|
+
* @param {string} provider - The integration provider name
|
|
46
|
+
* @param {string} toolName - The tool's unique name, as specified by the integration provider
|
|
47
|
+
* @param {Vellum.ComponentsSchemasComposioExecuteToolRequest} request
|
|
48
|
+
* @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link Vellum.BadRequestError}
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* await client.integrations.executeIntegrationTool("integration", "provider", "tool_name", {
|
|
54
|
+
* provider: "COMPOSIO",
|
|
55
|
+
* arguments: {
|
|
56
|
+
* "arguments": {
|
|
57
|
+
* "key": "value"
|
|
58
|
+
* }
|
|
59
|
+
* }
|
|
60
|
+
* })
|
|
61
|
+
*/
|
|
62
|
+
executeIntegrationTool(integration: string, provider: string, toolName: string, request: Vellum.ComponentsSchemasComposioExecuteToolRequest, requestOptions?: Integrations.RequestOptions): core.HttpResponsePromise<Vellum.ComponentsSchemasComposioExecuteToolResponse>;
|
|
63
|
+
private __executeIntegrationTool;
|
|
64
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
65
|
+
"X-API-KEY": string;
|
|
66
|
+
}>;
|
|
67
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
41
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
42
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
44
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.Integrations = void 0;
|
|
52
|
+
const environments = __importStar(require("../../../../environments"));
|
|
53
|
+
const core = __importStar(require("../../../../core"));
|
|
54
|
+
const Vellum = __importStar(require("../../../index"));
|
|
55
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
56
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
|
+
class Integrations {
|
|
59
|
+
constructor(_options) {
|
|
60
|
+
this._options = _options;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @param {string} integration - The integration name
|
|
64
|
+
* @param {string} provider - The integration provider name
|
|
65
|
+
* @param {string} toolName - The tool's unique name, as specified by the integration provider
|
|
66
|
+
* @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.integrations.retrieveIntegrationToolDefinition("integration", "provider", "tool_name")
|
|
70
|
+
*/
|
|
71
|
+
retrieveIntegrationToolDefinition(integration, provider, toolName, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__retrieveIntegrationToolDefinition(integration, provider, toolName, requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__retrieveIntegrationToolDefinition(integration, provider, toolName, requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b;
|
|
77
|
+
const _response = yield core.fetcher({
|
|
78
|
+
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)
|
|
79
|
+
.default, `integrations/v1/providers/${encodeURIComponent(provider)}/integrations/${encodeURIComponent(integration)}/tools/${encodeURIComponent(toolName)}`),
|
|
80
|
+
method: "GET",
|
|
81
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
82
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
83
|
+
unrecognizedObjectKeys: "strip",
|
|
84
|
+
})
|
|
85
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
86
|
+
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
88
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
89
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
90
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return {
|
|
94
|
+
data: serializers.ComponentsSchemasComposioToolDefinition.parseOrThrow(_response.body, {
|
|
95
|
+
unrecognizedObjectKeys: "passthrough",
|
|
96
|
+
allowUnrecognizedUnionMembers: true,
|
|
97
|
+
allowUnrecognizedEnumValues: true,
|
|
98
|
+
breadcrumbsPrefix: ["response"],
|
|
99
|
+
}),
|
|
100
|
+
rawResponse: _response.rawResponse,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
if (_response.error.reason === "status-code") {
|
|
104
|
+
throw new errors.VellumError({
|
|
105
|
+
statusCode: _response.error.statusCode,
|
|
106
|
+
body: _response.error.body,
|
|
107
|
+
rawResponse: _response.rawResponse,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
switch (_response.error.reason) {
|
|
111
|
+
case "non-json":
|
|
112
|
+
throw new errors.VellumError({
|
|
113
|
+
statusCode: _response.error.statusCode,
|
|
114
|
+
body: _response.error.rawBody,
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
});
|
|
117
|
+
case "timeout":
|
|
118
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling GET /integrations/v1/providers/{provider}/integrations/{integration}/tools/{tool_name}.");
|
|
119
|
+
case "unknown":
|
|
120
|
+
throw new errors.VellumError({
|
|
121
|
+
message: _response.error.errorMessage,
|
|
122
|
+
rawResponse: _response.rawResponse,
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @param {string} integration - The integration name
|
|
129
|
+
* @param {string} provider - The integration provider name
|
|
130
|
+
* @param {string} toolName - The tool's unique name, as specified by the integration provider
|
|
131
|
+
* @param {Vellum.ComponentsSchemasComposioExecuteToolRequest} request
|
|
132
|
+
* @param {Integrations.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link Vellum.BadRequestError}
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* await client.integrations.executeIntegrationTool("integration", "provider", "tool_name", {
|
|
138
|
+
* provider: "COMPOSIO",
|
|
139
|
+
* arguments: {
|
|
140
|
+
* "arguments": {
|
|
141
|
+
* "key": "value"
|
|
142
|
+
* }
|
|
143
|
+
* }
|
|
144
|
+
* })
|
|
145
|
+
*/
|
|
146
|
+
executeIntegrationTool(integration, provider, toolName, request, requestOptions) {
|
|
147
|
+
return core.HttpResponsePromise.fromPromise(this.__executeIntegrationTool(integration, provider, toolName, request, requestOptions));
|
|
148
|
+
}
|
|
149
|
+
__executeIntegrationTool(integration, provider, toolName, request, requestOptions) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
var _a, _b;
|
|
152
|
+
const _response = yield core.fetcher({
|
|
153
|
+
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)
|
|
154
|
+
.default, `integrations/v1/providers/${encodeURIComponent(provider)}/integrations/${encodeURIComponent(integration)}/tools/${encodeURIComponent(toolName)}/execute`),
|
|
155
|
+
method: "POST",
|
|
156
|
+
headers: Object.assign(Object.assign({ "X-API-Version": (yield core.Supplier.get(this._options.apiVersion)) != null
|
|
157
|
+
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
158
|
+
unrecognizedObjectKeys: "strip",
|
|
159
|
+
})
|
|
160
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
161
|
+
contentType: "application/json",
|
|
162
|
+
requestType: "json",
|
|
163
|
+
body: serializers.ComponentsSchemasComposioExecuteToolRequest.jsonOrThrow(request, {
|
|
164
|
+
unrecognizedObjectKeys: "strip",
|
|
165
|
+
}),
|
|
166
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
167
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
168
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
|
+
});
|
|
170
|
+
if (_response.ok) {
|
|
171
|
+
return {
|
|
172
|
+
data: serializers.ComponentsSchemasComposioExecuteToolResponse.parseOrThrow(_response.body, {
|
|
173
|
+
unrecognizedObjectKeys: "passthrough",
|
|
174
|
+
allowUnrecognizedUnionMembers: true,
|
|
175
|
+
allowUnrecognizedEnumValues: true,
|
|
176
|
+
breadcrumbsPrefix: ["response"],
|
|
177
|
+
}),
|
|
178
|
+
rawResponse: _response.rawResponse,
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
if (_response.error.reason === "status-code") {
|
|
182
|
+
switch (_response.error.statusCode) {
|
|
183
|
+
case 400:
|
|
184
|
+
throw new Vellum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
185
|
+
default:
|
|
186
|
+
throw new errors.VellumError({
|
|
187
|
+
statusCode: _response.error.statusCode,
|
|
188
|
+
body: _response.error.body,
|
|
189
|
+
rawResponse: _response.rawResponse,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
switch (_response.error.reason) {
|
|
194
|
+
case "non-json":
|
|
195
|
+
throw new errors.VellumError({
|
|
196
|
+
statusCode: _response.error.statusCode,
|
|
197
|
+
body: _response.error.rawBody,
|
|
198
|
+
rawResponse: _response.rawResponse,
|
|
199
|
+
});
|
|
200
|
+
case "timeout":
|
|
201
|
+
throw new errors.VellumTimeoutError("Timeout exceeded when calling POST /integrations/v1/providers/{provider}/integrations/{integration}/tools/{tool_name}/execute.");
|
|
202
|
+
case "unknown":
|
|
203
|
+
throw new errors.VellumError({
|
|
204
|
+
message: _response.error.errorMessage,
|
|
205
|
+
rawResponse: _response.rawResponse,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
_getCustomAuthorizationHeaders() {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
213
|
+
return { "X-API-KEY": apiKeyValue };
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
exports.Integrations = Integrations;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client"), exports);
|
|
@@ -90,7 +90,7 @@ class MetricDefinitions {
|
|
|
90
90
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
91
91
|
unrecognizedObjectKeys: "strip",
|
|
92
92
|
})
|
|
93
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
93
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
requestType: "json",
|
|
96
96
|
body: serializers.ExecuteMetricDefinition.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -155,7 +155,7 @@ class MetricDefinitions {
|
|
|
155
155
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
156
156
|
unrecognizedObjectKeys: "strip",
|
|
157
157
|
})
|
|
158
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
158
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
requestType: "json",
|
|
161
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -81,7 +81,7 @@ class MlModels {
|
|
|
81
81
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
82
82
|
unrecognizedObjectKeys: "strip",
|
|
83
83
|
})
|
|
84
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
84
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -80,7 +80,7 @@ class Organizations {
|
|
|
80
80
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
81
81
|
unrecognizedObjectKeys: "strip",
|
|
82
82
|
})
|
|
83
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
83
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
84
84
|
contentType: "application/json",
|
|
85
85
|
requestType: "json",
|
|
86
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -91,7 +91,7 @@ class Prompts {
|
|
|
91
91
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
92
92
|
unrecognizedObjectKeys: "strip",
|
|
93
93
|
})
|
|
94
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
94
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, Accept: "application/json" }, (yield this._getCustomAuthorizationHeaders())), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
95
95
|
contentType: "application/json",
|
|
96
96
|
queryParameters: _queryParams,
|
|
97
97
|
requestType: "json",
|
|
@@ -188,7 +188,7 @@ class Prompts {
|
|
|
188
188
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
189
189
|
unrecognizedObjectKeys: "strip",
|
|
190
190
|
})
|
|
191
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
191
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
192
192
|
contentType: "application/json",
|
|
193
193
|
requestType: "json",
|
|
194
194
|
body: serializers.PromptPush.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -81,7 +81,7 @@ class Sandboxes {
|
|
|
81
81
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
82
82
|
unrecognizedObjectKeys: "strip",
|
|
83
83
|
})
|
|
84
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
84
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
body: serializers.DeploySandboxPromptRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -162,7 +162,7 @@ class Sandboxes {
|
|
|
162
162
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
163
163
|
unrecognizedObjectKeys: "strip",
|
|
164
164
|
})
|
|
165
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
165
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
166
166
|
contentType: "application/json",
|
|
167
167
|
requestType: "json",
|
|
168
168
|
body: serializers.UpsertSandboxScenarioRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -229,7 +229,7 @@ class Sandboxes {
|
|
|
229
229
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
230
230
|
unrecognizedObjectKeys: "strip",
|
|
231
231
|
})
|
|
232
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
232
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
233
233
|
contentType: "application/json",
|
|
234
234
|
requestType: "json",
|
|
235
235
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -88,7 +88,7 @@ class TestSuiteRuns {
|
|
|
88
88
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
89
89
|
unrecognizedObjectKeys: "strip",
|
|
90
90
|
})
|
|
91
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
91
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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
92
|
contentType: "application/json",
|
|
93
93
|
requestType: "json",
|
|
94
94
|
body: serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -154,7 +154,7 @@ class TestSuiteRuns {
|
|
|
154
154
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
155
155
|
unrecognizedObjectKeys: "strip",
|
|
156
156
|
})
|
|
157
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
157
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
158
158
|
contentType: "application/json",
|
|
159
159
|
requestType: "json",
|
|
160
160
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -234,7 +234,7 @@ class TestSuiteRuns {
|
|
|
234
234
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
235
235
|
unrecognizedObjectKeys: "strip",
|
|
236
236
|
})
|
|
237
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
237
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
238
238
|
contentType: "application/json",
|
|
239
239
|
queryParameters: _queryParams,
|
|
240
240
|
requestType: "json",
|
|
@@ -90,7 +90,7 @@ class TestSuites {
|
|
|
90
90
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
91
91
|
unrecognizedObjectKeys: "strip",
|
|
92
92
|
})
|
|
93
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
93
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
94
94
|
contentType: "application/json",
|
|
95
95
|
queryParameters: _queryParams,
|
|
96
96
|
requestType: "json",
|
|
@@ -178,7 +178,7 @@ class TestSuites {
|
|
|
178
178
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
179
179
|
unrecognizedObjectKeys: "strip",
|
|
180
180
|
})
|
|
181
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
181
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
182
182
|
contentType: "application/json",
|
|
183
183
|
requestType: "json",
|
|
184
184
|
body: serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -238,7 +238,7 @@ class TestSuites {
|
|
|
238
238
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
239
239
|
unrecognizedObjectKeys: "strip",
|
|
240
240
|
})
|
|
241
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
241
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
242
242
|
contentType: "application/x-ndjson",
|
|
243
243
|
requestType: "json",
|
|
244
244
|
body: serializers.testSuites.testSuiteTestCasesBulk.Request.jsonOrThrow(request, {
|
|
@@ -318,7 +318,7 @@ class TestSuites {
|
|
|
318
318
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
319
319
|
unrecognizedObjectKeys: "strip",
|
|
320
320
|
})
|
|
321
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
321
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
322
322
|
contentType: "application/json",
|
|
323
323
|
requestType: "json",
|
|
324
324
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -97,7 +97,7 @@ class WorkflowDeployments {
|
|
|
97
97
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
98
98
|
unrecognizedObjectKeys: "strip",
|
|
99
99
|
})
|
|
100
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
100
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
101
101
|
contentType: "application/json",
|
|
102
102
|
queryParameters: _queryParams,
|
|
103
103
|
requestType: "json",
|
|
@@ -163,7 +163,7 @@ class WorkflowDeployments {
|
|
|
163
163
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
164
164
|
unrecognizedObjectKeys: "strip",
|
|
165
165
|
})
|
|
166
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
166
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
167
167
|
contentType: "application/json",
|
|
168
168
|
requestType: "json",
|
|
169
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -238,7 +238,7 @@ class WorkflowDeployments {
|
|
|
238
238
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
239
239
|
unrecognizedObjectKeys: "strip",
|
|
240
240
|
})
|
|
241
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
241
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
242
242
|
contentType: "application/json",
|
|
243
243
|
queryParameters: _queryParams,
|
|
244
244
|
requestType: "json",
|
|
@@ -303,7 +303,7 @@ class WorkflowDeployments {
|
|
|
303
303
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
304
304
|
unrecognizedObjectKeys: "strip",
|
|
305
305
|
})
|
|
306
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
306
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
307
307
|
contentType: "application/json",
|
|
308
308
|
requestType: "json",
|
|
309
309
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -370,7 +370,7 @@ class WorkflowDeployments {
|
|
|
370
370
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
371
371
|
unrecognizedObjectKeys: "strip",
|
|
372
372
|
})
|
|
373
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
373
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
374
374
|
contentType: "application/json",
|
|
375
375
|
requestType: "json",
|
|
376
376
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -452,7 +452,7 @@ class WorkflowDeployments {
|
|
|
452
452
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
453
453
|
unrecognizedObjectKeys: "strip",
|
|
454
454
|
})
|
|
455
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
455
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
456
456
|
contentType: "application/json",
|
|
457
457
|
queryParameters: _queryParams,
|
|
458
458
|
requestType: "json",
|
|
@@ -519,7 +519,7 @@ class WorkflowDeployments {
|
|
|
519
519
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
520
520
|
unrecognizedObjectKeys: "strip",
|
|
521
521
|
})
|
|
522
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
522
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
523
523
|
contentType: "application/json",
|
|
524
524
|
requestType: "json",
|
|
525
525
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -586,7 +586,7 @@ class WorkflowDeployments {
|
|
|
586
586
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
587
587
|
unrecognizedObjectKeys: "strip",
|
|
588
588
|
})
|
|
589
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
589
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
590
590
|
contentType: "application/json",
|
|
591
591
|
requestType: "json",
|
|
592
592
|
body: serializers.PatchedWorkflowReleaseTagUpdateRequest.jsonOrThrow(request, {
|
|
@@ -655,7 +655,7 @@ class WorkflowDeployments {
|
|
|
655
655
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
656
656
|
unrecognizedObjectKeys: "strip",
|
|
657
657
|
})
|
|
658
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
658
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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),
|
|
659
659
|
contentType: "application/json",
|
|
660
660
|
requestType: "json",
|
|
661
661
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -88,7 +88,7 @@ class WorkflowExecutions {
|
|
|
88
88
|
? serializers.ApiVersionEnum.jsonOrThrow(yield core.Supplier.get(this._options.apiVersion), {
|
|
89
89
|
unrecognizedObjectKeys: "strip",
|
|
90
90
|
})
|
|
91
|
-
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.
|
|
91
|
+
: "2025-07-30", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "vellum-ai/1.5.0", "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
92
|
contentType: "application/json",
|
|
93
93
|
queryParameters: _queryParams,
|
|
94
94
|
requestType: "json",
|