vellum-ai 0.3.18 → 0.3.19
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.js +9 -9
- package/api/resources/deployments/client/Client.js +3 -3
- package/api/resources/documentIndexes/client/Client.js +6 -6
- package/api/resources/documents/client/Client.js +4 -4
- package/api/resources/folderEntities/client/Client.js +1 -1
- package/api/resources/modelVersions/client/Client.js +1 -1
- package/api/resources/registeredPrompts/client/Client.js +1 -1
- package/api/resources/sandboxes/client/Client.js +2 -2
- package/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/api/resources/testSuites/client/Client.js +2 -2
- package/api/resources/workflowDeployments/client/Client.js +2 -2
- package/dist/Client.js +9 -9
- package/dist/api/resources/deployments/client/Client.js +3 -3
- package/dist/api/resources/documentIndexes/client/Client.js +6 -6
- package/dist/api/resources/documents/client/Client.js +4 -4
- package/dist/api/resources/folderEntities/client/Client.js +1 -1
- package/dist/api/resources/modelVersions/client/Client.js +1 -1
- package/dist/api/resources/registeredPrompts/client/Client.js +1 -1
- package/dist/api/resources/sandboxes/client/Client.js +2 -2
- package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
- package/dist/api/resources/testSuites/client/Client.js +2 -2
- package/dist/api/resources/workflowDeployments/client/Client.js +2 -2
- package/dist/terraform/data-vellum-document-index/index.d.ts +61 -0
- package/dist/terraform/data-vellum-document-index/index.js +152 -0
- package/dist/terraform/document-index/index.d.ts +83 -0
- package/dist/terraform/document-index/index.js +180 -0
- package/dist/terraform/index.d.ts +3 -0
- package/dist/terraform/index.js +30 -0
- package/dist/terraform/lazy-index.d.ts +0 -0
- package/dist/terraform/lazy-index.js +5 -0
- package/dist/terraform/provider/index.d.ts +54 -0
- package/dist/terraform/provider/index.js +127 -0
- package/package.json +1 -1
- package/terraform/data-vellum-document-index/index.d.ts +61 -0
- package/terraform/data-vellum-document-index/index.js +152 -0
- package/terraform/document-index/index.d.ts +83 -0
- package/terraform/document-index/index.js +180 -0
- package/terraform/index.d.ts +3 -0
- package/terraform/index.js +30 -0
- package/terraform/lazy-index.d.ts +0 -0
- package/terraform/lazy-index.js +5 -0
- package/terraform/provider/index.d.ts +54 -0
- package/terraform/provider/index.js +127 -0
|
@@ -61,7 +61,7 @@ class ModelVersions {
|
|
|
61
61
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
62
62
|
.default, `v1/model-versions/${id}`),
|
|
63
63
|
method: "GET",
|
|
64
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
64
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
65
65
|
contentType: "application/json",
|
|
66
66
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
67
67
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -92,7 +92,7 @@ class RegisteredPrompts {
|
|
|
92
92
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
93
93
|
.default, "v1/registered-prompts/register"),
|
|
94
94
|
method: "POST",
|
|
95
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
95
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
96
96
|
contentType: "application/json",
|
|
97
97
|
body: yield serializers.RegisterPromptRequestRequest.jsonOrThrow(request, {
|
|
98
98
|
unrecognizedObjectKeys: "strip",
|
|
@@ -78,7 +78,7 @@ class Sandboxes {
|
|
|
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/sandboxes/${id}/scenarios`),
|
|
80
80
|
method: "POST",
|
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
82
82
|
contentType: "application/json",
|
|
83
83
|
body: yield serializers.UpsertSandboxScenarioRequestRequest.jsonOrThrow(request, {
|
|
84
84
|
unrecognizedObjectKeys: "strip",
|
|
@@ -128,7 +128,7 @@ class Sandboxes {
|
|
|
128
128
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
129
129
|
.default, `v1/sandboxes/${id}/scenarios/${scenarioId}`),
|
|
130
130
|
method: "DELETE",
|
|
131
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
131
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
134
134
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -58,7 +58,7 @@ class TestSuiteRuns {
|
|
|
58
58
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
59
59
|
.default, "v1/test-suite-runs"),
|
|
60
60
|
method: "POST",
|
|
61
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
61
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
62
62
|
contentType: "application/json",
|
|
63
63
|
body: yield serializers.TestSuiteRunCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
64
64
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -106,7 +106,7 @@ class TestSuiteRuns {
|
|
|
106
106
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
107
107
|
.default, `v1/test-suite-runs/${id}`),
|
|
108
108
|
method: "GET",
|
|
109
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
109
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
110
110
|
contentType: "application/json",
|
|
111
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
112
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -155,7 +155,7 @@ class TestSuiteRuns {
|
|
|
155
155
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
156
156
|
.default, `v1/test-suite-runs/${id}/executions`),
|
|
157
157
|
method: "GET",
|
|
158
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
158
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
159
159
|
contentType: "application/json",
|
|
160
160
|
queryParameters: _queryParams,
|
|
161
161
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -70,7 +70,7 @@ class TestSuites {
|
|
|
70
70
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
71
71
|
.default, `v1/test-suites/${id}/test-cases`),
|
|
72
72
|
method: "POST",
|
|
73
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
73
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
body: yield serializers.UpsertTestSuiteTestCaseRequest.jsonOrThrow(request, {
|
|
76
76
|
unrecognizedObjectKeys: "strip",
|
|
@@ -120,7 +120,7 @@ class TestSuites {
|
|
|
120
120
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
121
121
|
.default, `v1/test-suites/${id}/test-cases/${testCaseId}`),
|
|
122
122
|
method: "DELETE",
|
|
123
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
123
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
124
124
|
contentType: "application/json",
|
|
125
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
126
126
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -69,7 +69,7 @@ class WorkflowDeployments {
|
|
|
69
69
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
70
70
|
.default, "v1/workflow-deployments"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
72
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
queryParameters: _queryParams,
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
@@ -117,7 +117,7 @@ class WorkflowDeployments {
|
|
|
117
117
|
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VellumEnvironment.Production)
|
|
118
118
|
.default, `v1/workflow-deployments/${id}`),
|
|
119
119
|
method: "GET",
|
|
120
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.
|
|
120
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "vellum-ai", "X-Fern-SDK-Version": "0.3.19", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
121
121
|
contentType: "application/json",
|
|
122
122
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : undefined,
|
|
123
123
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DataVellumDocumentIndexConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The Document Index's ID
|
|
6
|
+
*
|
|
7
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#id DataVellumDocumentIndex#id}
|
|
8
|
+
*
|
|
9
|
+
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
10
|
+
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
11
|
+
*/
|
|
12
|
+
readonly id?: string;
|
|
13
|
+
/**
|
|
14
|
+
* A name that uniquely identifies this index within its workspace
|
|
15
|
+
*
|
|
16
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#name DataVellumDocumentIndex#name}
|
|
17
|
+
*/
|
|
18
|
+
readonly name?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index vellum_document_index}
|
|
22
|
+
*/
|
|
23
|
+
export declare class DataVellumDocumentIndex extends cdktf.TerraformDataSource {
|
|
24
|
+
static readonly tfResourceType = "vellum_document_index";
|
|
25
|
+
/**
|
|
26
|
+
* Generates CDKTF code for importing a DataVellumDocumentIndex resource upon running "cdktf plan <stack-name>"
|
|
27
|
+
* @param scope The scope in which to define this construct
|
|
28
|
+
* @param importToId The construct id used in the generated config for the DataVellumDocumentIndex to import
|
|
29
|
+
* @param importFromId The id of the existing DataVellumDocumentIndex that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#import import section} in the documentation of this resource for the id to use
|
|
30
|
+
* @param provider? Optional instance of the provider where the DataVellumDocumentIndex to import is found
|
|
31
|
+
*/
|
|
32
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
|
|
33
|
+
/**
|
|
34
|
+
* Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index vellum_document_index} Data Source
|
|
35
|
+
*
|
|
36
|
+
* @param scope The scope in which to define this construct
|
|
37
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
38
|
+
* @param options DataVellumDocumentIndexConfig = {}
|
|
39
|
+
*/
|
|
40
|
+
constructor(scope: Construct, id: string, config?: DataVellumDocumentIndexConfig);
|
|
41
|
+
get created(): string;
|
|
42
|
+
get environment(): string;
|
|
43
|
+
private _id?;
|
|
44
|
+
get id(): string;
|
|
45
|
+
set id(value: string);
|
|
46
|
+
resetId(): void;
|
|
47
|
+
get idInput(): string | undefined;
|
|
48
|
+
get label(): string;
|
|
49
|
+
private _name?;
|
|
50
|
+
get name(): string;
|
|
51
|
+
set name(value: string);
|
|
52
|
+
resetName(): void;
|
|
53
|
+
get nameInput(): string | undefined;
|
|
54
|
+
get status(): string;
|
|
55
|
+
protected synthesizeAttributes(): {
|
|
56
|
+
[name: string]: any;
|
|
57
|
+
};
|
|
58
|
+
protected synthesizeHclAttributes(): {
|
|
59
|
+
[name: string]: any;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index
|
|
3
|
+
// generated from terraform resource schema
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.DataVellumDocumentIndex = void 0;
|
|
29
|
+
const cdktf = __importStar(require("cdktf"));
|
|
30
|
+
/**
|
|
31
|
+
* Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index vellum_document_index}
|
|
32
|
+
*/
|
|
33
|
+
class DataVellumDocumentIndex extends cdktf.TerraformDataSource {
|
|
34
|
+
// ===========
|
|
35
|
+
// INITIALIZER
|
|
36
|
+
// ===========
|
|
37
|
+
/**
|
|
38
|
+
* Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index vellum_document_index} Data Source
|
|
39
|
+
*
|
|
40
|
+
* @param scope The scope in which to define this construct
|
|
41
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
42
|
+
* @param options DataVellumDocumentIndexConfig = {}
|
|
43
|
+
*/
|
|
44
|
+
constructor(scope, id, config = {}) {
|
|
45
|
+
super(scope, id, {
|
|
46
|
+
terraformResourceType: 'vellum_document_index',
|
|
47
|
+
terraformGeneratorMetadata: {
|
|
48
|
+
providerName: 'vellum',
|
|
49
|
+
providerVersion: '0.0.2'
|
|
50
|
+
},
|
|
51
|
+
provider: config.provider,
|
|
52
|
+
dependsOn: config.dependsOn,
|
|
53
|
+
count: config.count,
|
|
54
|
+
lifecycle: config.lifecycle,
|
|
55
|
+
provisioners: config.provisioners,
|
|
56
|
+
connection: config.connection,
|
|
57
|
+
forEach: config.forEach
|
|
58
|
+
});
|
|
59
|
+
this._id = config.id;
|
|
60
|
+
this._name = config.name;
|
|
61
|
+
}
|
|
62
|
+
// ==============
|
|
63
|
+
// STATIC Methods
|
|
64
|
+
// ==============
|
|
65
|
+
/**
|
|
66
|
+
* Generates CDKTF code for importing a DataVellumDocumentIndex resource upon running "cdktf plan <stack-name>"
|
|
67
|
+
* @param scope The scope in which to define this construct
|
|
68
|
+
* @param importToId The construct id used in the generated config for the DataVellumDocumentIndex to import
|
|
69
|
+
* @param importFromId The id of the existing DataVellumDocumentIndex that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/data-sources/document_index#import import section} in the documentation of this resource for the id to use
|
|
70
|
+
* @param provider? Optional instance of the provider where the DataVellumDocumentIndex to import is found
|
|
71
|
+
*/
|
|
72
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
73
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "vellum_document_index", importId: importFromId, provider });
|
|
74
|
+
}
|
|
75
|
+
// ==========
|
|
76
|
+
// ATTRIBUTES
|
|
77
|
+
// ==========
|
|
78
|
+
// created - computed: true, optional: false, required: false
|
|
79
|
+
get created() {
|
|
80
|
+
return this.getStringAttribute('created');
|
|
81
|
+
}
|
|
82
|
+
// environment - computed: true, optional: false, required: false
|
|
83
|
+
get environment() {
|
|
84
|
+
return this.getStringAttribute('environment');
|
|
85
|
+
}
|
|
86
|
+
get id() {
|
|
87
|
+
return this.getStringAttribute('id');
|
|
88
|
+
}
|
|
89
|
+
set id(value) {
|
|
90
|
+
this._id = value;
|
|
91
|
+
}
|
|
92
|
+
resetId() {
|
|
93
|
+
this._id = undefined;
|
|
94
|
+
}
|
|
95
|
+
// Temporarily expose input value. Use with caution.
|
|
96
|
+
get idInput() {
|
|
97
|
+
return this._id;
|
|
98
|
+
}
|
|
99
|
+
// label - computed: true, optional: false, required: false
|
|
100
|
+
get label() {
|
|
101
|
+
return this.getStringAttribute('label');
|
|
102
|
+
}
|
|
103
|
+
get name() {
|
|
104
|
+
return this.getStringAttribute('name');
|
|
105
|
+
}
|
|
106
|
+
set name(value) {
|
|
107
|
+
this._name = value;
|
|
108
|
+
}
|
|
109
|
+
resetName() {
|
|
110
|
+
this._name = undefined;
|
|
111
|
+
}
|
|
112
|
+
// Temporarily expose input value. Use with caution.
|
|
113
|
+
get nameInput() {
|
|
114
|
+
return this._name;
|
|
115
|
+
}
|
|
116
|
+
// status - computed: true, optional: false, required: false
|
|
117
|
+
get status() {
|
|
118
|
+
return this.getStringAttribute('status');
|
|
119
|
+
}
|
|
120
|
+
// =========
|
|
121
|
+
// SYNTHESIS
|
|
122
|
+
// =========
|
|
123
|
+
synthesizeAttributes() {
|
|
124
|
+
return {
|
|
125
|
+
id: cdktf.stringToTerraform(this._id),
|
|
126
|
+
name: cdktf.stringToTerraform(this._name),
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
synthesizeHclAttributes() {
|
|
130
|
+
const attrs = {
|
|
131
|
+
id: {
|
|
132
|
+
value: cdktf.stringToHclTerraform(this._id),
|
|
133
|
+
isBlock: false,
|
|
134
|
+
type: "simple",
|
|
135
|
+
storageClassType: "string",
|
|
136
|
+
},
|
|
137
|
+
name: {
|
|
138
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
139
|
+
isBlock: false,
|
|
140
|
+
type: "simple",
|
|
141
|
+
storageClassType: "string",
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
// remove undefined attributes
|
|
145
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.DataVellumDocumentIndex = DataVellumDocumentIndex;
|
|
149
|
+
// =================
|
|
150
|
+
// STATIC PROPERTIES
|
|
151
|
+
// =================
|
|
152
|
+
DataVellumDocumentIndex.tfResourceType = "vellum_document_index";
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Construct } from 'constructs';
|
|
2
|
+
import * as cdktf from 'cdktf';
|
|
3
|
+
export interface DocumentIndexConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
+
/**
|
|
5
|
+
* The environment this document index is used in
|
|
6
|
+
*
|
|
7
|
+
* * `DEVELOPMENT` - Development
|
|
8
|
+
* * `STAGING` - Staging
|
|
9
|
+
* * `PRODUCTION` - Production
|
|
10
|
+
*
|
|
11
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#environment DocumentIndex#environment}
|
|
12
|
+
*/
|
|
13
|
+
readonly environment?: string;
|
|
14
|
+
/**
|
|
15
|
+
* A human-readable label for the document index
|
|
16
|
+
*
|
|
17
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#label DocumentIndex#label}
|
|
18
|
+
*/
|
|
19
|
+
readonly label: string;
|
|
20
|
+
/**
|
|
21
|
+
* A name that uniquely identifies this index within its workspace
|
|
22
|
+
*
|
|
23
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#name DocumentIndex#name}
|
|
24
|
+
*/
|
|
25
|
+
readonly name: string;
|
|
26
|
+
/**
|
|
27
|
+
* The current status of the document index
|
|
28
|
+
*
|
|
29
|
+
* * `ACTIVE` - Active
|
|
30
|
+
* * `ARCHIVED` - Archived
|
|
31
|
+
*
|
|
32
|
+
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#status DocumentIndex#status}
|
|
33
|
+
*/
|
|
34
|
+
readonly status?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index vellum_document_index}
|
|
38
|
+
*/
|
|
39
|
+
export declare class DocumentIndex extends cdktf.TerraformResource {
|
|
40
|
+
static readonly tfResourceType = "vellum_document_index";
|
|
41
|
+
/**
|
|
42
|
+
* Generates CDKTF code for importing a DocumentIndex resource upon running "cdktf plan <stack-name>"
|
|
43
|
+
* @param scope The scope in which to define this construct
|
|
44
|
+
* @param importToId The construct id used in the generated config for the DocumentIndex to import
|
|
45
|
+
* @param importFromId The id of the existing DocumentIndex that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#import import section} in the documentation of this resource for the id to use
|
|
46
|
+
* @param provider? Optional instance of the provider where the DocumentIndex to import is found
|
|
47
|
+
*/
|
|
48
|
+
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
|
|
49
|
+
/**
|
|
50
|
+
* Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index vellum_document_index} Resource
|
|
51
|
+
*
|
|
52
|
+
* @param scope The scope in which to define this construct
|
|
53
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
54
|
+
* @param options DocumentIndexConfig
|
|
55
|
+
*/
|
|
56
|
+
constructor(scope: Construct, id: string, config: DocumentIndexConfig);
|
|
57
|
+
get created(): string;
|
|
58
|
+
private _environment?;
|
|
59
|
+
get environment(): string;
|
|
60
|
+
set environment(value: string);
|
|
61
|
+
resetEnvironment(): void;
|
|
62
|
+
get environmentInput(): string | undefined;
|
|
63
|
+
get id(): string;
|
|
64
|
+
private _label?;
|
|
65
|
+
get label(): string;
|
|
66
|
+
set label(value: string);
|
|
67
|
+
get labelInput(): string | undefined;
|
|
68
|
+
private _name?;
|
|
69
|
+
get name(): string;
|
|
70
|
+
set name(value: string);
|
|
71
|
+
get nameInput(): string | undefined;
|
|
72
|
+
private _status?;
|
|
73
|
+
get status(): string;
|
|
74
|
+
set status(value: string);
|
|
75
|
+
resetStatus(): void;
|
|
76
|
+
get statusInput(): string | undefined;
|
|
77
|
+
protected synthesizeAttributes(): {
|
|
78
|
+
[name: string]: any;
|
|
79
|
+
};
|
|
80
|
+
protected synthesizeHclAttributes(): {
|
|
81
|
+
[name: string]: any;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index
|
|
3
|
+
// generated from terraform resource schema
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.DocumentIndex = void 0;
|
|
29
|
+
const cdktf = __importStar(require("cdktf"));
|
|
30
|
+
/**
|
|
31
|
+
* Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index vellum_document_index}
|
|
32
|
+
*/
|
|
33
|
+
class DocumentIndex extends cdktf.TerraformResource {
|
|
34
|
+
// ===========
|
|
35
|
+
// INITIALIZER
|
|
36
|
+
// ===========
|
|
37
|
+
/**
|
|
38
|
+
* Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index vellum_document_index} Resource
|
|
39
|
+
*
|
|
40
|
+
* @param scope The scope in which to define this construct
|
|
41
|
+
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
42
|
+
* @param options DocumentIndexConfig
|
|
43
|
+
*/
|
|
44
|
+
constructor(scope, id, config) {
|
|
45
|
+
super(scope, id, {
|
|
46
|
+
terraformResourceType: 'vellum_document_index',
|
|
47
|
+
terraformGeneratorMetadata: {
|
|
48
|
+
providerName: 'vellum',
|
|
49
|
+
providerVersion: '0.0.2'
|
|
50
|
+
},
|
|
51
|
+
provider: config.provider,
|
|
52
|
+
dependsOn: config.dependsOn,
|
|
53
|
+
count: config.count,
|
|
54
|
+
lifecycle: config.lifecycle,
|
|
55
|
+
provisioners: config.provisioners,
|
|
56
|
+
connection: config.connection,
|
|
57
|
+
forEach: config.forEach
|
|
58
|
+
});
|
|
59
|
+
this._environment = config.environment;
|
|
60
|
+
this._label = config.label;
|
|
61
|
+
this._name = config.name;
|
|
62
|
+
this._status = config.status;
|
|
63
|
+
}
|
|
64
|
+
// ==============
|
|
65
|
+
// STATIC Methods
|
|
66
|
+
// ==============
|
|
67
|
+
/**
|
|
68
|
+
* Generates CDKTF code for importing a DocumentIndex resource upon running "cdktf plan <stack-name>"
|
|
69
|
+
* @param scope The scope in which to define this construct
|
|
70
|
+
* @param importToId The construct id used in the generated config for the DocumentIndex to import
|
|
71
|
+
* @param importFromId The id of the existing DocumentIndex that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs/resources/document_index#import import section} in the documentation of this resource for the id to use
|
|
72
|
+
* @param provider? Optional instance of the provider where the DocumentIndex to import is found
|
|
73
|
+
*/
|
|
74
|
+
static generateConfigForImport(scope, importToId, importFromId, provider) {
|
|
75
|
+
return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "vellum_document_index", importId: importFromId, provider });
|
|
76
|
+
}
|
|
77
|
+
// ==========
|
|
78
|
+
// ATTRIBUTES
|
|
79
|
+
// ==========
|
|
80
|
+
// created - computed: true, optional: false, required: false
|
|
81
|
+
get created() {
|
|
82
|
+
return this.getStringAttribute('created');
|
|
83
|
+
}
|
|
84
|
+
get environment() {
|
|
85
|
+
return this.getStringAttribute('environment');
|
|
86
|
+
}
|
|
87
|
+
set environment(value) {
|
|
88
|
+
this._environment = value;
|
|
89
|
+
}
|
|
90
|
+
resetEnvironment() {
|
|
91
|
+
this._environment = undefined;
|
|
92
|
+
}
|
|
93
|
+
// Temporarily expose input value. Use with caution.
|
|
94
|
+
get environmentInput() {
|
|
95
|
+
return this._environment;
|
|
96
|
+
}
|
|
97
|
+
// id - computed: true, optional: false, required: false
|
|
98
|
+
get id() {
|
|
99
|
+
return this.getStringAttribute('id');
|
|
100
|
+
}
|
|
101
|
+
get label() {
|
|
102
|
+
return this.getStringAttribute('label');
|
|
103
|
+
}
|
|
104
|
+
set label(value) {
|
|
105
|
+
this._label = value;
|
|
106
|
+
}
|
|
107
|
+
// Temporarily expose input value. Use with caution.
|
|
108
|
+
get labelInput() {
|
|
109
|
+
return this._label;
|
|
110
|
+
}
|
|
111
|
+
get name() {
|
|
112
|
+
return this.getStringAttribute('name');
|
|
113
|
+
}
|
|
114
|
+
set name(value) {
|
|
115
|
+
this._name = value;
|
|
116
|
+
}
|
|
117
|
+
// Temporarily expose input value. Use with caution.
|
|
118
|
+
get nameInput() {
|
|
119
|
+
return this._name;
|
|
120
|
+
}
|
|
121
|
+
get status() {
|
|
122
|
+
return this.getStringAttribute('status');
|
|
123
|
+
}
|
|
124
|
+
set status(value) {
|
|
125
|
+
this._status = value;
|
|
126
|
+
}
|
|
127
|
+
resetStatus() {
|
|
128
|
+
this._status = undefined;
|
|
129
|
+
}
|
|
130
|
+
// Temporarily expose input value. Use with caution.
|
|
131
|
+
get statusInput() {
|
|
132
|
+
return this._status;
|
|
133
|
+
}
|
|
134
|
+
// =========
|
|
135
|
+
// SYNTHESIS
|
|
136
|
+
// =========
|
|
137
|
+
synthesizeAttributes() {
|
|
138
|
+
return {
|
|
139
|
+
environment: cdktf.stringToTerraform(this._environment),
|
|
140
|
+
label: cdktf.stringToTerraform(this._label),
|
|
141
|
+
name: cdktf.stringToTerraform(this._name),
|
|
142
|
+
status: cdktf.stringToTerraform(this._status),
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
synthesizeHclAttributes() {
|
|
146
|
+
const attrs = {
|
|
147
|
+
environment: {
|
|
148
|
+
value: cdktf.stringToHclTerraform(this._environment),
|
|
149
|
+
isBlock: false,
|
|
150
|
+
type: "simple",
|
|
151
|
+
storageClassType: "string",
|
|
152
|
+
},
|
|
153
|
+
label: {
|
|
154
|
+
value: cdktf.stringToHclTerraform(this._label),
|
|
155
|
+
isBlock: false,
|
|
156
|
+
type: "simple",
|
|
157
|
+
storageClassType: "string",
|
|
158
|
+
},
|
|
159
|
+
name: {
|
|
160
|
+
value: cdktf.stringToHclTerraform(this._name),
|
|
161
|
+
isBlock: false,
|
|
162
|
+
type: "simple",
|
|
163
|
+
storageClassType: "string",
|
|
164
|
+
},
|
|
165
|
+
status: {
|
|
166
|
+
value: cdktf.stringToHclTerraform(this._status),
|
|
167
|
+
isBlock: false,
|
|
168
|
+
type: "simple",
|
|
169
|
+
storageClassType: "string",
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
// remove undefined attributes
|
|
173
|
+
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
exports.DocumentIndex = DocumentIndex;
|
|
177
|
+
// =================
|
|
178
|
+
// STATIC PROPERTIES
|
|
179
|
+
// =================
|
|
180
|
+
DocumentIndex.tfResourceType = "vellum_document_index";
|
|
@@ -0,0 +1,30 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.provider = exports.dataVellumDocumentIndex = exports.documentIndex = void 0;
|
|
27
|
+
// generated by cdktf get
|
|
28
|
+
exports.documentIndex = __importStar(require("./document-index"));
|
|
29
|
+
exports.dataVellumDocumentIndex = __importStar(require("./data-vellum-document-index"));
|
|
30
|
+
exports.provider = __importStar(require("./provider"));
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// generated by cdktf get
|
|
3
|
+
Object.defineProperty(exports, 'documentIndex', { get: function () { return require('./document-index'); } });
|
|
4
|
+
Object.defineProperty(exports, 'dataVellumDocumentIndex', { get: function () { return require('./data-vellum-document-index'); } });
|
|
5
|
+
Object.defineProperty(exports, 'provider', { get: function () { return require('./provider'); } });
|