vellum-ai 1.0.11 → 1.1.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 +0 -3
- package/Client.js +21 -26
- 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/folderEntities/client/Client.js +2 -2
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +1 -2
- 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.d.ts +12 -0
- package/api/resources/workflowDeployments/client/Client.js +74 -8
- 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 +2 -2
- package/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/types/ExternalParentContext.d.ts +10 -0
- package/{dist/api/resources/releaseReviews/client/index.js → api/types/ExternalParentContext.js} +3 -0
- package/api/types/NodeExecutionSpanAttributes.d.ts +1 -0
- package/api/types/ParentContext.d.ts +1 -1
- package/api/types/WorkflowExecutionSpanAttributes.d.ts +1 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +21 -26
- 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/folderEntities/client/Client.js +2 -2
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +1 -2
- 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.d.ts +12 -0
- package/dist/api/resources/workflowDeployments/client/Client.js +74 -8
- 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 +2 -2
- package/dist/api/resources/workspaceSecrets/client/Client.js +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/types/ExternalParentContext.d.ts +10 -0
- package/{api/resources/releaseReviews/client/index.js → dist/api/types/ExternalParentContext.js} +3 -0
- package/dist/api/types/NodeExecutionSpanAttributes.d.ts +1 -0
- package/dist/api/types/ParentContext.d.ts +1 -1
- package/dist/api/types/WorkflowExecutionSpanAttributes.d.ts +1 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/ExternalParentContext.d.ts +15 -0
- package/dist/serialization/types/ExternalParentContext.js +47 -0
- package/dist/serialization/types/NodeExecutionSpanAttributes.d.ts +1 -0
- package/dist/serialization/types/NodeExecutionSpanAttributes.js +1 -0
- package/dist/serialization/types/ParentContext.d.ts +1 -1
- package/dist/serialization/types/ParentContext.js +1 -0
- package/dist/serialization/types/WorkflowExecutionSpanAttributes.d.ts +1 -0
- package/dist/serialization/types/WorkflowExecutionSpanAttributes.js +1 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -5
- package/serialization/types/ExternalParentContext.d.ts +15 -0
- package/serialization/types/ExternalParentContext.js +47 -0
- package/serialization/types/NodeExecutionSpanAttributes.d.ts +1 -0
- package/serialization/types/NodeExecutionSpanAttributes.js +1 -0
- package/serialization/types/ParentContext.d.ts +1 -1
- package/serialization/types/ParentContext.js +1 -0
- package/serialization/types/WorkflowExecutionSpanAttributes.d.ts +1 -0
- package/serialization/types/WorkflowExecutionSpanAttributes.js +1 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/releaseReviews/client/Client.d.ts +0 -47
- package/api/resources/releaseReviews/client/Client.js +0 -134
- package/api/resources/releaseReviews/client/index.d.ts +0 -1
- package/api/resources/releaseReviews/index.d.ts +0 -1
- package/api/resources/releaseReviews/index.js +0 -17
- package/dist/api/resources/releaseReviews/client/Client.d.ts +0 -47
- package/dist/api/resources/releaseReviews/client/Client.js +0 -134
- package/dist/api/resources/releaseReviews/client/index.d.ts +0 -1
- package/dist/api/resources/releaseReviews/index.d.ts +0 -1
- package/dist/api/resources/releaseReviews/index.js +0 -17
package/reference.md
CHANGED
|
@@ -3739,9 +3739,7 @@ await client.workflowDeployments.updateWorkflowReleaseTag("id", "name");
|
|
|
3739
3739
|
</dl>
|
|
3740
3740
|
</details>
|
|
3741
3741
|
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
<details><summary><code>client.releaseReviews.<a href="/src/api/resources/releaseReviews/client/Client.ts">retrieveWorkflowDeploymentRelease</a>(id, releaseIdOrReleaseTag) -> Vellum.WorkflowDeploymentRelease</code></summary>
|
|
3742
|
+
<details><summary><code>client.workflowDeployments.<a href="/src/api/resources/workflowDeployments/client/Client.ts">retrieveWorkflowDeploymentRelease</a>(id, releaseIdOrReleaseTag) -> Vellum.WorkflowDeploymentRelease</code></summary>
|
|
3745
3743
|
<dl>
|
|
3746
3744
|
<dd>
|
|
3747
3745
|
|
|
@@ -3769,7 +3767,7 @@ Retrieve a specific Workflow Deployment Release by either its UUID or the name o
|
|
|
3769
3767
|
<dd>
|
|
3770
3768
|
|
|
3771
3769
|
```typescript
|
|
3772
|
-
await client.
|
|
3770
|
+
await client.workflowDeployments.retrieveWorkflowDeploymentRelease("id", "release_id_or_release_tag");
|
|
3773
3771
|
```
|
|
3774
3772
|
|
|
3775
3773
|
</dd>
|
|
@@ -3801,7 +3799,7 @@ await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_
|
|
|
3801
3799
|
<dl>
|
|
3802
3800
|
<dd>
|
|
3803
3801
|
|
|
3804
|
-
**requestOptions:** `
|
|
3802
|
+
**requestOptions:** `WorkflowDeployments.RequestOptions`
|
|
3805
3803
|
|
|
3806
3804
|
</dd>
|
|
3807
3805
|
</dl>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Vellum from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ExternalParentContext: core.serialization.ObjectSchema<serializers.ExternalParentContext.Raw, Vellum.ExternalParentContext>;
|
|
8
|
+
export declare namespace ExternalParentContext {
|
|
9
|
+
interface Raw {
|
|
10
|
+
parent?: (serializers.ParentContext.Raw | null) | null;
|
|
11
|
+
links?: (serializers.SpanLink.Raw[] | null) | null;
|
|
12
|
+
type: "EXTERNAL";
|
|
13
|
+
span_id: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ExternalParentContext = void 0;
|
|
40
|
+
const serializers = __importStar(require("../index"));
|
|
41
|
+
const core = __importStar(require("../../core"));
|
|
42
|
+
exports.ExternalParentContext = core.serialization.object({
|
|
43
|
+
parent: core.serialization.lazy(() => serializers.ParentContext).optionalNullable(),
|
|
44
|
+
links: core.serialization.list(core.serialization.lazyObject(() => serializers.SpanLink)).optionalNullable(),
|
|
45
|
+
type: core.serialization.stringLiteral("EXTERNAL"),
|
|
46
|
+
spanId: core.serialization.property("span_id", core.serialization.string()),
|
|
47
|
+
});
|
|
@@ -7,6 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const NodeExecutionSpanAttributes: core.serialization.ObjectSchema<serializers.NodeExecutionSpanAttributes.Raw, Vellum.NodeExecutionSpanAttributes>;
|
|
8
8
|
export declare namespace NodeExecutionSpanAttributes {
|
|
9
9
|
interface Raw {
|
|
10
|
+
label: string;
|
|
10
11
|
node_id: string;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
@@ -39,5 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
39
39
|
exports.NodeExecutionSpanAttributes = void 0;
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.NodeExecutionSpanAttributes = core.serialization.object({
|
|
42
|
+
label: core.serialization.string(),
|
|
42
43
|
nodeId: core.serialization.property("node_id", core.serialization.string()),
|
|
43
44
|
});
|
|
@@ -6,5 +6,5 @@ import * as Vellum from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const ParentContext: core.serialization.Schema<serializers.ParentContext.Raw, Vellum.ParentContext>;
|
|
8
8
|
export declare namespace ParentContext {
|
|
9
|
-
type Raw = serializers.WorkflowParentContext.Raw | serializers.NodeParentContext.Raw | serializers.WorkflowDeploymentParentContext.Raw | serializers.WorkflowSandboxParentContext.Raw | serializers.PromptDeploymentParentContext.Raw | serializers.ApiRequestParentContext.Raw;
|
|
9
|
+
type Raw = serializers.WorkflowParentContext.Raw | serializers.NodeParentContext.Raw | serializers.WorkflowDeploymentParentContext.Raw | serializers.WorkflowSandboxParentContext.Raw | serializers.PromptDeploymentParentContext.Raw | serializers.ApiRequestParentContext.Raw | serializers.ExternalParentContext.Raw;
|
|
10
10
|
}
|
|
@@ -46,4 +46,5 @@ exports.ParentContext = core.serialization.undiscriminatedUnion([
|
|
|
46
46
|
core.serialization.lazyObject(() => serializers.WorkflowSandboxParentContext),
|
|
47
47
|
core.serialization.lazyObject(() => serializers.PromptDeploymentParentContext),
|
|
48
48
|
core.serialization.lazyObject(() => serializers.ApiRequestParentContext),
|
|
49
|
+
core.serialization.lazyObject(() => serializers.ExternalParentContext),
|
|
49
50
|
]);
|
|
@@ -40,4 +40,5 @@ exports.WorkflowExecutionSpanAttributes = void 0;
|
|
|
40
40
|
const core = __importStar(require("../../core"));
|
|
41
41
|
exports.WorkflowExecutionSpanAttributes = core.serialization.object({
|
|
42
42
|
label: core.serialization.string(),
|
|
43
|
+
workflowId: core.serialization.property("workflow_id", core.serialization.string()),
|
|
43
44
|
});
|
|
@@ -115,6 +115,7 @@ export * from "./ExecutionStringVellumValue";
|
|
|
115
115
|
export * from "./ExecutionThinkingVellumValue";
|
|
116
116
|
export * from "./ExecutionVellumValue";
|
|
117
117
|
export * from "./ExternalInputDescriptor";
|
|
118
|
+
export * from "./ExternalParentContext";
|
|
118
119
|
export * from "./ExternalTestCaseExecution";
|
|
119
120
|
export * from "./ExternalTestCaseExecutionRequest";
|
|
120
121
|
export * from "./FastEmbedVectorizerBaaiBgeSmallEnV15";
|
|
@@ -131,6 +131,7 @@ __exportStar(require("./ExecutionStringVellumValue"), exports);
|
|
|
131
131
|
__exportStar(require("./ExecutionThinkingVellumValue"), exports);
|
|
132
132
|
__exportStar(require("./ExecutionVellumValue"), exports);
|
|
133
133
|
__exportStar(require("./ExternalInputDescriptor"), exports);
|
|
134
|
+
__exportStar(require("./ExternalParentContext"), exports);
|
|
134
135
|
__exportStar(require("./ExternalTestCaseExecution"), exports);
|
|
135
136
|
__exportStar(require("./ExternalTestCaseExecutionRequest"), exports);
|
|
136
137
|
__exportStar(require("./FastEmbedVectorizerBaaiBgeSmallEnV15"), exports);
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0
|
|
1
|
+
export declare const SDK_VERSION = "1.1.0";
|
package/version.js
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
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 ReleaseReviews {
|
|
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 ReleaseReviews {
|
|
30
|
-
protected readonly _options: ReleaseReviews.Options;
|
|
31
|
-
constructor(_options: ReleaseReviews.Options);
|
|
32
|
-
/**
|
|
33
|
-
* Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
34
|
-
*
|
|
35
|
-
* @param {string} id - Either the Workflow Deployment's ID or its unique name
|
|
36
|
-
* @param {string} releaseIdOrReleaseTag - Either the UUID of Workflow Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment Release you'd like to retrieve.
|
|
37
|
-
* @param {ReleaseReviews.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_or_release_tag")
|
|
41
|
-
*/
|
|
42
|
-
retrieveWorkflowDeploymentRelease(id: string, releaseIdOrReleaseTag: string, requestOptions?: ReleaseReviews.RequestOptions): core.HttpResponsePromise<Vellum.WorkflowDeploymentRelease>;
|
|
43
|
-
private __retrieveWorkflowDeploymentRelease;
|
|
44
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
45
|
-
"X-API-KEY": string;
|
|
46
|
-
}>;
|
|
47
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
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.ReleaseReviews = void 0;
|
|
52
|
-
const environments = __importStar(require("../../../../environments"));
|
|
53
|
-
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
-
const errors = __importStar(require("../../../../errors/index"));
|
|
57
|
-
class ReleaseReviews {
|
|
58
|
-
constructor(_options) {
|
|
59
|
-
this._options = _options;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
63
|
-
*
|
|
64
|
-
* @param {string} id - Either the Workflow Deployment's ID or its unique name
|
|
65
|
-
* @param {string} releaseIdOrReleaseTag - Either the UUID of Workflow Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment Release you'd like to retrieve.
|
|
66
|
-
* @param {ReleaseReviews.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_or_release_tag")
|
|
70
|
-
*/
|
|
71
|
-
retrieveWorkflowDeploymentRelease(id, releaseIdOrReleaseTag, requestOptions) {
|
|
72
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieveWorkflowDeploymentRelease(id, releaseIdOrReleaseTag, requestOptions));
|
|
73
|
-
}
|
|
74
|
-
__retrieveWorkflowDeploymentRelease(id, releaseIdOrReleaseTag, 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, `v1/workflow-deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
|
|
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.0.11", "User-Agent": "vellum-ai/1.0.11", "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.WorkflowDeploymentRelease.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 /v1/workflow-deployments/{id}/releases/{release_id_or_release_tag}.");
|
|
119
|
-
case "unknown":
|
|
120
|
-
throw new errors.VellumError({
|
|
121
|
-
message: _response.error.errorMessage,
|
|
122
|
-
rawResponse: _response.rawResponse,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
_getCustomAuthorizationHeaders() {
|
|
128
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
130
|
-
return { "X-API-KEY": apiKeyValue };
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
exports.ReleaseReviews = ReleaseReviews;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./client"), exports);
|
|
@@ -1,47 +0,0 @@
|
|
|
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 ReleaseReviews {
|
|
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 ReleaseReviews {
|
|
30
|
-
protected readonly _options: ReleaseReviews.Options;
|
|
31
|
-
constructor(_options: ReleaseReviews.Options);
|
|
32
|
-
/**
|
|
33
|
-
* Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
34
|
-
*
|
|
35
|
-
* @param {string} id - Either the Workflow Deployment's ID or its unique name
|
|
36
|
-
* @param {string} releaseIdOrReleaseTag - Either the UUID of Workflow Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment Release you'd like to retrieve.
|
|
37
|
-
* @param {ReleaseReviews.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_or_release_tag")
|
|
41
|
-
*/
|
|
42
|
-
retrieveWorkflowDeploymentRelease(id: string, releaseIdOrReleaseTag: string, requestOptions?: ReleaseReviews.RequestOptions): core.HttpResponsePromise<Vellum.WorkflowDeploymentRelease>;
|
|
43
|
-
private __retrieveWorkflowDeploymentRelease;
|
|
44
|
-
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
45
|
-
"X-API-KEY": string;
|
|
46
|
-
}>;
|
|
47
|
-
}
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
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.ReleaseReviews = void 0;
|
|
52
|
-
const environments = __importStar(require("../../../../environments"));
|
|
53
|
-
const core = __importStar(require("../../../../core"));
|
|
54
|
-
const serializers = __importStar(require("../../../../serialization/index"));
|
|
55
|
-
const url_join_1 = __importDefault(require("url-join"));
|
|
56
|
-
const errors = __importStar(require("../../../../errors/index"));
|
|
57
|
-
class ReleaseReviews {
|
|
58
|
-
constructor(_options) {
|
|
59
|
-
this._options = _options;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Retrieve a specific Workflow Deployment Release by either its UUID or the name of a Release Tag that points to it.
|
|
63
|
-
*
|
|
64
|
-
* @param {string} id - Either the Workflow Deployment's ID or its unique name
|
|
65
|
-
* @param {string} releaseIdOrReleaseTag - Either the UUID of Workflow Deployment Release you'd like to retrieve, or the name of a Release Tag that's pointing to the Workflow Deployment Release you'd like to retrieve.
|
|
66
|
-
* @param {ReleaseReviews.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* await client.releaseReviews.retrieveWorkflowDeploymentRelease("id", "release_id_or_release_tag")
|
|
70
|
-
*/
|
|
71
|
-
retrieveWorkflowDeploymentRelease(id, releaseIdOrReleaseTag, requestOptions) {
|
|
72
|
-
return core.HttpResponsePromise.fromPromise(this.__retrieveWorkflowDeploymentRelease(id, releaseIdOrReleaseTag, requestOptions));
|
|
73
|
-
}
|
|
74
|
-
__retrieveWorkflowDeploymentRelease(id, releaseIdOrReleaseTag, 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, `v1/workflow-deployments/${encodeURIComponent(id)}/releases/${encodeURIComponent(releaseIdOrReleaseTag)}`),
|
|
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.0.11", "User-Agent": "vellum-ai/1.0.11", "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.WorkflowDeploymentRelease.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 /v1/workflow-deployments/{id}/releases/{release_id_or_release_tag}.");
|
|
119
|
-
case "unknown":
|
|
120
|
-
throw new errors.VellumError({
|
|
121
|
-
message: _response.error.errorMessage,
|
|
122
|
-
rawResponse: _response.rawResponse,
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
_getCustomAuthorizationHeaders() {
|
|
128
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
129
|
-
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
130
|
-
return { "X-API-KEY": apiKeyValue };
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
exports.ReleaseReviews = ReleaseReviews;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./client";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./client"), exports);
|