vellum-ai 0.7.8 → 0.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/Client.js +9 -9
  2. package/api/resources/deployments/client/Client.js +5 -5
  3. package/api/resources/documentIndexes/client/Client.js +8 -8
  4. package/api/resources/documents/client/Client.js +5 -5
  5. package/api/resources/folderEntities/client/Client.js +1 -1
  6. package/api/resources/mlModels/client/Client.js +5 -5
  7. package/api/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +4 -0
  8. package/api/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +4 -0
  9. package/api/resources/sandboxes/client/Client.js +3 -3
  10. package/api/resources/testSuiteRuns/client/Client.js +3 -3
  11. package/api/resources/testSuites/client/Client.js +4 -4
  12. package/api/resources/workflowDeployments/client/Client.js +4 -4
  13. package/api/resources/workflowSandboxes/client/Client.js +1 -1
  14. package/api/types/MlModelDisplayConfigLabelled.d.ts +2 -0
  15. package/api/types/MlModelDisplayConfigRequest.d.ts +2 -0
  16. package/api/types/MlModelExecConfig.d.ts +2 -0
  17. package/api/types/MlModelExecConfigRequest.d.ts +2 -0
  18. package/api/types/OpenApiArrayProperty.d.ts +1 -1
  19. package/api/types/OpenApiArrayPropertyRequest.d.ts +1 -1
  20. package/api/types/OpenApiBooleanProperty.d.ts +1 -1
  21. package/api/types/OpenApiBooleanPropertyRequest.d.ts +1 -1
  22. package/api/types/OpenApiConstProperty.d.ts +1 -1
  23. package/api/types/OpenApiConstPropertyRequest.d.ts +1 -1
  24. package/api/types/OpenApiIntegerProperty.d.ts +1 -1
  25. package/api/types/OpenApiIntegerPropertyRequest.d.ts +1 -1
  26. package/api/types/OpenApiNumberProperty.d.ts +1 -1
  27. package/api/types/OpenApiNumberPropertyRequest.d.ts +1 -1
  28. package/api/types/OpenApiObjectProperty.d.ts +1 -1
  29. package/api/types/OpenApiObjectPropertyRequest.d.ts +1 -1
  30. package/api/types/OpenApiOneOfProperty.d.ts +1 -1
  31. package/api/types/OpenApiOneOfPropertyRequest.d.ts +1 -1
  32. package/api/types/OpenApiProperty.d.ts +4 -1
  33. package/api/types/OpenApiPropertyRequest.d.ts +4 -1
  34. package/api/types/OpenApiRefProperty.d.ts +11 -0
  35. package/api/types/OpenApiRefProperty.js +5 -0
  36. package/api/types/OpenApiRefPropertyRequest.d.ts +11 -0
  37. package/api/types/OpenApiRefPropertyRequest.js +5 -0
  38. package/api/types/OpenApiStringProperty.d.ts +1 -1
  39. package/api/types/OpenApiStringPropertyRequest.d.ts +1 -1
  40. package/api/types/index.d.ts +2 -0
  41. package/api/types/index.js +2 -0
  42. package/dist/Client.js +9 -9
  43. package/dist/api/resources/deployments/client/Client.js +5 -5
  44. package/dist/api/resources/documentIndexes/client/Client.js +8 -8
  45. package/dist/api/resources/documents/client/Client.js +5 -5
  46. package/dist/api/resources/folderEntities/client/Client.js +1 -1
  47. package/dist/api/resources/mlModels/client/Client.js +5 -5
  48. package/dist/api/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +4 -0
  49. package/dist/api/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +4 -0
  50. package/dist/api/resources/sandboxes/client/Client.js +3 -3
  51. package/dist/api/resources/testSuiteRuns/client/Client.js +3 -3
  52. package/dist/api/resources/testSuites/client/Client.js +4 -4
  53. package/dist/api/resources/workflowDeployments/client/Client.js +4 -4
  54. package/dist/api/resources/workflowSandboxes/client/Client.js +1 -1
  55. package/dist/api/types/MlModelDisplayConfigLabelled.d.ts +2 -0
  56. package/dist/api/types/MlModelDisplayConfigRequest.d.ts +2 -0
  57. package/dist/api/types/MlModelExecConfig.d.ts +2 -0
  58. package/dist/api/types/MlModelExecConfigRequest.d.ts +2 -0
  59. package/dist/api/types/OpenApiArrayProperty.d.ts +1 -1
  60. package/dist/api/types/OpenApiArrayPropertyRequest.d.ts +1 -1
  61. package/dist/api/types/OpenApiBooleanProperty.d.ts +1 -1
  62. package/dist/api/types/OpenApiBooleanPropertyRequest.d.ts +1 -1
  63. package/dist/api/types/OpenApiConstProperty.d.ts +1 -1
  64. package/dist/api/types/OpenApiConstPropertyRequest.d.ts +1 -1
  65. package/dist/api/types/OpenApiIntegerProperty.d.ts +1 -1
  66. package/dist/api/types/OpenApiIntegerPropertyRequest.d.ts +1 -1
  67. package/dist/api/types/OpenApiNumberProperty.d.ts +1 -1
  68. package/dist/api/types/OpenApiNumberPropertyRequest.d.ts +1 -1
  69. package/dist/api/types/OpenApiObjectProperty.d.ts +1 -1
  70. package/dist/api/types/OpenApiObjectPropertyRequest.d.ts +1 -1
  71. package/dist/api/types/OpenApiOneOfProperty.d.ts +1 -1
  72. package/dist/api/types/OpenApiOneOfPropertyRequest.d.ts +1 -1
  73. package/dist/api/types/OpenApiProperty.d.ts +4 -1
  74. package/dist/api/types/OpenApiPropertyRequest.d.ts +4 -1
  75. package/dist/api/types/OpenApiRefProperty.d.ts +11 -0
  76. package/dist/api/types/OpenApiRefProperty.js +5 -0
  77. package/dist/api/types/OpenApiRefPropertyRequest.d.ts +11 -0
  78. package/dist/api/types/OpenApiRefPropertyRequest.js +5 -0
  79. package/dist/api/types/OpenApiStringProperty.d.ts +1 -1
  80. package/dist/api/types/OpenApiStringPropertyRequest.d.ts +1 -1
  81. package/dist/api/types/index.d.ts +2 -0
  82. package/dist/api/types/index.js +2 -0
  83. package/dist/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +4 -0
  84. package/dist/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.js +4 -0
  85. package/dist/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +4 -0
  86. package/dist/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js +4 -0
  87. package/dist/serialization/types/MlModelDisplayConfigLabelled.d.ts +1 -0
  88. package/dist/serialization/types/MlModelDisplayConfigLabelled.js +1 -0
  89. package/dist/serialization/types/MlModelDisplayConfigRequest.d.ts +1 -0
  90. package/dist/serialization/types/MlModelDisplayConfigRequest.js +1 -0
  91. package/dist/serialization/types/MlModelExecConfig.d.ts +1 -0
  92. package/dist/serialization/types/MlModelExecConfig.js +1 -0
  93. package/dist/serialization/types/MlModelExecConfigRequest.d.ts +1 -0
  94. package/dist/serialization/types/MlModelExecConfigRequest.js +1 -0
  95. package/dist/serialization/types/OpenApiProperty.d.ts +5 -1
  96. package/dist/serialization/types/OpenApiProperty.js +2 -0
  97. package/dist/serialization/types/OpenApiPropertyRequest.d.ts +5 -1
  98. package/dist/serialization/types/OpenApiPropertyRequest.js +2 -0
  99. package/dist/serialization/types/OpenApiRefProperty.d.ts +14 -0
  100. package/dist/serialization/types/OpenApiRefProperty.js +35 -0
  101. package/dist/serialization/types/OpenApiRefPropertyRequest.d.ts +14 -0
  102. package/dist/serialization/types/OpenApiRefPropertyRequest.js +35 -0
  103. package/dist/serialization/types/index.d.ts +2 -0
  104. package/dist/serialization/types/index.js +2 -0
  105. package/dist/terraform/data-vellum-document-index/index.d.ts +5 -5
  106. package/dist/terraform/data-vellum-document-index/index.js +5 -5
  107. package/dist/terraform/data-vellum-ml-model/index.d.ts +61 -0
  108. package/dist/terraform/data-vellum-ml-model/index.js +152 -0
  109. package/dist/terraform/document-index/index.d.ts +8 -8
  110. package/dist/terraform/document-index/index.js +5 -5
  111. package/dist/terraform/index.d.ts +2 -0
  112. package/dist/terraform/index.js +3 -1
  113. package/dist/terraform/lazy-index.js +2 -0
  114. package/dist/terraform/ml-model/index.d.ts +148 -0
  115. package/dist/terraform/ml-model/index.js +354 -0
  116. package/dist/terraform/provider/index.d.ts +16 -5
  117. package/dist/terraform/provider/index.js +26 -5
  118. package/package.json +1 -1
  119. package/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.d.ts +4 -0
  120. package/serialization/resources/mlModels/client/requests/MlModelUpdateRequest.js +4 -0
  121. package/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.d.ts +4 -0
  122. package/serialization/resources/mlModels/client/requests/PatchedMlModelUpdateRequest.js +4 -0
  123. package/serialization/types/MlModelDisplayConfigLabelled.d.ts +1 -0
  124. package/serialization/types/MlModelDisplayConfigLabelled.js +1 -0
  125. package/serialization/types/MlModelDisplayConfigRequest.d.ts +1 -0
  126. package/serialization/types/MlModelDisplayConfigRequest.js +1 -0
  127. package/serialization/types/MlModelExecConfig.d.ts +1 -0
  128. package/serialization/types/MlModelExecConfig.js +1 -0
  129. package/serialization/types/MlModelExecConfigRequest.d.ts +1 -0
  130. package/serialization/types/MlModelExecConfigRequest.js +1 -0
  131. package/serialization/types/OpenApiProperty.d.ts +5 -1
  132. package/serialization/types/OpenApiProperty.js +2 -0
  133. package/serialization/types/OpenApiPropertyRequest.d.ts +5 -1
  134. package/serialization/types/OpenApiPropertyRequest.js +2 -0
  135. package/serialization/types/OpenApiRefProperty.d.ts +14 -0
  136. package/serialization/types/OpenApiRefProperty.js +35 -0
  137. package/serialization/types/OpenApiRefPropertyRequest.d.ts +14 -0
  138. package/serialization/types/OpenApiRefPropertyRequest.js +35 -0
  139. package/serialization/types/index.d.ts +2 -0
  140. package/serialization/types/index.js +2 -0
  141. package/terraform/data-vellum-document-index/index.d.ts +5 -5
  142. package/terraform/data-vellum-document-index/index.js +5 -5
  143. package/terraform/data-vellum-ml-model/index.d.ts +61 -0
  144. package/terraform/data-vellum-ml-model/index.js +152 -0
  145. package/terraform/document-index/index.d.ts +8 -8
  146. package/terraform/document-index/index.js +5 -5
  147. package/terraform/index.d.ts +2 -0
  148. package/terraform/index.js +3 -1
  149. package/terraform/lazy-index.js +2 -0
  150. package/terraform/ml-model/index.d.ts +148 -0
  151. package/terraform/ml-model/index.js +354 -0
  152. package/terraform/provider/index.d.ts +16 -5
  153. package/terraform/provider/index.js +26 -5
@@ -0,0 +1,148 @@
1
+ import { Construct } from 'constructs';
2
+ import * as cdktf from 'cdktf';
3
+ export interface MlModelConfig extends cdktf.TerraformMetaArguments {
4
+ /**
5
+ * The organization that developed the ML Model.
6
+ *
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#developed_by MlModel#developed_by}
8
+ */
9
+ readonly developedBy: string;
10
+ /**
11
+ * The execution configuration of the ML Model.
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#exec_config MlModel#exec_config}
14
+ */
15
+ readonly execConfig: MlModelExecConfig;
16
+ /**
17
+ * The family of the ML Model.
18
+ *
19
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#family MlModel#family}
20
+ */
21
+ readonly family: string;
22
+ /**
23
+ * The organization hosting the ML Model.
24
+ *
25
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#hosted_by MlModel#hosted_by}
26
+ */
27
+ readonly hostedBy: string;
28
+ /**
29
+ * A name that uniquely identifies this ML Model
30
+ *
31
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#name MlModel#name}
32
+ */
33
+ readonly name: string;
34
+ /**
35
+ * The visibility of the ML Model.
36
+ *
37
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#visibility MlModel#visibility}
38
+ */
39
+ readonly visibility: string;
40
+ }
41
+ export interface MlModelExecConfig {
42
+ /**
43
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#base_url MlModel#base_url}
44
+ */
45
+ readonly baseUrl: string;
46
+ /**
47
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#features MlModel#features}
48
+ */
49
+ readonly features: string[];
50
+ /**
51
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#metadata MlModel#metadata}
52
+ */
53
+ readonly metadata: {
54
+ [key: string]: string;
55
+ };
56
+ /**
57
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#model_identifier MlModel#model_identifier}
58
+ */
59
+ readonly modelIdentifier: string;
60
+ }
61
+ export declare function mlModelExecConfigToTerraform(struct?: MlModelExecConfig | cdktf.IResolvable): any;
62
+ export declare function mlModelExecConfigToHclTerraform(struct?: MlModelExecConfig | cdktf.IResolvable): any;
63
+ export declare class MlModelExecConfigOutputReference extends cdktf.ComplexObject {
64
+ private isEmptyObject;
65
+ private resolvableValue?;
66
+ /**
67
+ * @param terraformResource The parent resource
68
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
69
+ */
70
+ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
71
+ get internalValue(): MlModelExecConfig | cdktf.IResolvable | undefined;
72
+ set internalValue(value: MlModelExecConfig | cdktf.IResolvable | undefined);
73
+ private _baseUrl?;
74
+ get baseUrl(): string;
75
+ set baseUrl(value: string);
76
+ get baseUrlInput(): string | undefined;
77
+ private _features?;
78
+ get features(): string[];
79
+ set features(value: string[]);
80
+ get featuresInput(): string[] | undefined;
81
+ private _metadata?;
82
+ get metadata(): {
83
+ [key: string]: string;
84
+ };
85
+ set metadata(value: {
86
+ [key: string]: string;
87
+ });
88
+ get metadataInput(): {
89
+ [key: string]: string;
90
+ } | undefined;
91
+ private _modelIdentifier?;
92
+ get modelIdentifier(): string;
93
+ set modelIdentifier(value: string);
94
+ get modelIdentifierInput(): string | undefined;
95
+ }
96
+ /**
97
+ * Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model vellum_ml_model}
98
+ */
99
+ export declare class MlModel extends cdktf.TerraformResource {
100
+ static readonly tfResourceType = "vellum_ml_model";
101
+ /**
102
+ * Generates CDKTF code for importing a MlModel resource upon running "cdktf plan <stack-name>"
103
+ * @param scope The scope in which to define this construct
104
+ * @param importToId The construct id used in the generated config for the MlModel to import
105
+ * @param importFromId The id of the existing MlModel that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#import import section} in the documentation of this resource for the id to use
106
+ * @param provider? Optional instance of the provider where the MlModel to import is found
107
+ */
108
+ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
109
+ /**
110
+ * Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model vellum_ml_model} Resource
111
+ *
112
+ * @param scope The scope in which to define this construct
113
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
114
+ * @param options MlModelConfig
115
+ */
116
+ constructor(scope: Construct, id: string, config: MlModelConfig);
117
+ private _developedBy?;
118
+ get developedBy(): string;
119
+ set developedBy(value: string);
120
+ get developedByInput(): string | undefined;
121
+ private _execConfig;
122
+ get execConfig(): MlModelExecConfigOutputReference;
123
+ putExecConfig(value: MlModelExecConfig): void;
124
+ get execConfigInput(): MlModelExecConfig | cdktf.IResolvable | undefined;
125
+ private _family?;
126
+ get family(): string;
127
+ set family(value: string);
128
+ get familyInput(): string | undefined;
129
+ private _hostedBy?;
130
+ get hostedBy(): string;
131
+ set hostedBy(value: string);
132
+ get hostedByInput(): string | undefined;
133
+ get id(): string;
134
+ private _name?;
135
+ get name(): string;
136
+ set name(value: string);
137
+ get nameInput(): string | undefined;
138
+ private _visibility?;
139
+ get visibility(): string;
140
+ set visibility(value: string);
141
+ get visibilityInput(): string | undefined;
142
+ protected synthesizeAttributes(): {
143
+ [name: string]: any;
144
+ };
145
+ protected synthesizeHclAttributes(): {
146
+ [name: string]: any;
147
+ };
148
+ }
@@ -0,0 +1,354 @@
1
+ "use strict";
2
+ // https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model
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.MlModel = exports.MlModelExecConfigOutputReference = exports.mlModelExecConfigToHclTerraform = exports.mlModelExecConfigToTerraform = void 0;
29
+ const cdktf = __importStar(require("cdktf"));
30
+ function mlModelExecConfigToTerraform(struct) {
31
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
32
+ return struct;
33
+ }
34
+ if (cdktf.isComplexElement(struct)) {
35
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
36
+ }
37
+ return {
38
+ base_url: cdktf.stringToTerraform(struct.baseUrl),
39
+ features: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.features),
40
+ metadata: cdktf.hashMapper(cdktf.stringToTerraform)(struct.metadata),
41
+ model_identifier: cdktf.stringToTerraform(struct.modelIdentifier),
42
+ };
43
+ }
44
+ exports.mlModelExecConfigToTerraform = mlModelExecConfigToTerraform;
45
+ function mlModelExecConfigToHclTerraform(struct) {
46
+ if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
47
+ return struct;
48
+ }
49
+ if (cdktf.isComplexElement(struct)) {
50
+ throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration");
51
+ }
52
+ const attrs = {
53
+ base_url: {
54
+ value: cdktf.stringToHclTerraform(struct.baseUrl),
55
+ isBlock: false,
56
+ type: "simple",
57
+ storageClassType: "string",
58
+ },
59
+ features: {
60
+ value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.features),
61
+ isBlock: false,
62
+ type: "list",
63
+ storageClassType: "stringList",
64
+ },
65
+ metadata: {
66
+ value: cdktf.hashMapperHcl(cdktf.stringToHclTerraform)(struct.metadata),
67
+ isBlock: false,
68
+ type: "map",
69
+ storageClassType: "stringMap",
70
+ },
71
+ model_identifier: {
72
+ value: cdktf.stringToHclTerraform(struct.modelIdentifier),
73
+ isBlock: false,
74
+ type: "simple",
75
+ storageClassType: "string",
76
+ },
77
+ };
78
+ // remove undefined attributes
79
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
80
+ }
81
+ exports.mlModelExecConfigToHclTerraform = mlModelExecConfigToHclTerraform;
82
+ class MlModelExecConfigOutputReference extends cdktf.ComplexObject {
83
+ /**
84
+ * @param terraformResource The parent resource
85
+ * @param terraformAttribute The attribute on the parent resource this class is referencing
86
+ */
87
+ constructor(terraformResource, terraformAttribute) {
88
+ super(terraformResource, terraformAttribute, false);
89
+ this.isEmptyObject = false;
90
+ }
91
+ get internalValue() {
92
+ if (this.resolvableValue) {
93
+ return this.resolvableValue;
94
+ }
95
+ let hasAnyValues = this.isEmptyObject;
96
+ const internalValueResult = {};
97
+ if (this._baseUrl !== undefined) {
98
+ hasAnyValues = true;
99
+ internalValueResult.baseUrl = this._baseUrl;
100
+ }
101
+ if (this._features !== undefined) {
102
+ hasAnyValues = true;
103
+ internalValueResult.features = this._features;
104
+ }
105
+ if (this._metadata !== undefined) {
106
+ hasAnyValues = true;
107
+ internalValueResult.metadata = this._metadata;
108
+ }
109
+ if (this._modelIdentifier !== undefined) {
110
+ hasAnyValues = true;
111
+ internalValueResult.modelIdentifier = this._modelIdentifier;
112
+ }
113
+ return hasAnyValues ? internalValueResult : undefined;
114
+ }
115
+ set internalValue(value) {
116
+ if (value === undefined) {
117
+ this.isEmptyObject = false;
118
+ this.resolvableValue = undefined;
119
+ this._baseUrl = undefined;
120
+ this._features = undefined;
121
+ this._metadata = undefined;
122
+ this._modelIdentifier = undefined;
123
+ }
124
+ else if (cdktf.Tokenization.isResolvable(value)) {
125
+ this.isEmptyObject = false;
126
+ this.resolvableValue = value;
127
+ }
128
+ else {
129
+ this.isEmptyObject = Object.keys(value).length === 0;
130
+ this.resolvableValue = undefined;
131
+ this._baseUrl = value.baseUrl;
132
+ this._features = value.features;
133
+ this._metadata = value.metadata;
134
+ this._modelIdentifier = value.modelIdentifier;
135
+ }
136
+ }
137
+ get baseUrl() {
138
+ return this.getStringAttribute('base_url');
139
+ }
140
+ set baseUrl(value) {
141
+ this._baseUrl = value;
142
+ }
143
+ // Temporarily expose input value. Use with caution.
144
+ get baseUrlInput() {
145
+ return this._baseUrl;
146
+ }
147
+ get features() {
148
+ return this.getListAttribute('features');
149
+ }
150
+ set features(value) {
151
+ this._features = value;
152
+ }
153
+ // Temporarily expose input value. Use with caution.
154
+ get featuresInput() {
155
+ return this._features;
156
+ }
157
+ get metadata() {
158
+ return this.getStringMapAttribute('metadata');
159
+ }
160
+ set metadata(value) {
161
+ this._metadata = value;
162
+ }
163
+ // Temporarily expose input value. Use with caution.
164
+ get metadataInput() {
165
+ return this._metadata;
166
+ }
167
+ get modelIdentifier() {
168
+ return this.getStringAttribute('model_identifier');
169
+ }
170
+ set modelIdentifier(value) {
171
+ this._modelIdentifier = value;
172
+ }
173
+ // Temporarily expose input value. Use with caution.
174
+ get modelIdentifierInput() {
175
+ return this._modelIdentifier;
176
+ }
177
+ }
178
+ exports.MlModelExecConfigOutputReference = MlModelExecConfigOutputReference;
179
+ /**
180
+ * Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model vellum_ml_model}
181
+ */
182
+ class MlModel extends cdktf.TerraformResource {
183
+ // ===========
184
+ // INITIALIZER
185
+ // ===========
186
+ /**
187
+ * Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model vellum_ml_model} Resource
188
+ *
189
+ * @param scope The scope in which to define this construct
190
+ * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
191
+ * @param options MlModelConfig
192
+ */
193
+ constructor(scope, id, config) {
194
+ super(scope, id, {
195
+ terraformResourceType: 'vellum_ml_model',
196
+ terraformGeneratorMetadata: {
197
+ providerName: 'vellum',
198
+ providerVersion: '0.0.7'
199
+ },
200
+ provider: config.provider,
201
+ dependsOn: config.dependsOn,
202
+ count: config.count,
203
+ lifecycle: config.lifecycle,
204
+ provisioners: config.provisioners,
205
+ connection: config.connection,
206
+ forEach: config.forEach
207
+ });
208
+ // exec_config - computed: false, optional: false, required: true
209
+ this._execConfig = new MlModelExecConfigOutputReference(this, "exec_config");
210
+ this._developedBy = config.developedBy;
211
+ this._execConfig.internalValue = config.execConfig;
212
+ this._family = config.family;
213
+ this._hostedBy = config.hostedBy;
214
+ this._name = config.name;
215
+ this._visibility = config.visibility;
216
+ }
217
+ // ==============
218
+ // STATIC Methods
219
+ // ==============
220
+ /**
221
+ * Generates CDKTF code for importing a MlModel resource upon running "cdktf plan <stack-name>"
222
+ * @param scope The scope in which to define this construct
223
+ * @param importToId The construct id used in the generated config for the MlModel to import
224
+ * @param importFromId The id of the existing MlModel that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs/resources/ml_model#import import section} in the documentation of this resource for the id to use
225
+ * @param provider? Optional instance of the provider where the MlModel to import is found
226
+ */
227
+ static generateConfigForImport(scope, importToId, importFromId, provider) {
228
+ return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "vellum_ml_model", importId: importFromId, provider });
229
+ }
230
+ get developedBy() {
231
+ return this.getStringAttribute('developed_by');
232
+ }
233
+ set developedBy(value) {
234
+ this._developedBy = value;
235
+ }
236
+ // Temporarily expose input value. Use with caution.
237
+ get developedByInput() {
238
+ return this._developedBy;
239
+ }
240
+ get execConfig() {
241
+ return this._execConfig;
242
+ }
243
+ putExecConfig(value) {
244
+ this._execConfig.internalValue = value;
245
+ }
246
+ // Temporarily expose input value. Use with caution.
247
+ get execConfigInput() {
248
+ return this._execConfig.internalValue;
249
+ }
250
+ get family() {
251
+ return this.getStringAttribute('family');
252
+ }
253
+ set family(value) {
254
+ this._family = value;
255
+ }
256
+ // Temporarily expose input value. Use with caution.
257
+ get familyInput() {
258
+ return this._family;
259
+ }
260
+ get hostedBy() {
261
+ return this.getStringAttribute('hosted_by');
262
+ }
263
+ set hostedBy(value) {
264
+ this._hostedBy = value;
265
+ }
266
+ // Temporarily expose input value. Use with caution.
267
+ get hostedByInput() {
268
+ return this._hostedBy;
269
+ }
270
+ // id - computed: true, optional: false, required: false
271
+ get id() {
272
+ return this.getStringAttribute('id');
273
+ }
274
+ get name() {
275
+ return this.getStringAttribute('name');
276
+ }
277
+ set name(value) {
278
+ this._name = value;
279
+ }
280
+ // Temporarily expose input value. Use with caution.
281
+ get nameInput() {
282
+ return this._name;
283
+ }
284
+ get visibility() {
285
+ return this.getStringAttribute('visibility');
286
+ }
287
+ set visibility(value) {
288
+ this._visibility = value;
289
+ }
290
+ // Temporarily expose input value. Use with caution.
291
+ get visibilityInput() {
292
+ return this._visibility;
293
+ }
294
+ // =========
295
+ // SYNTHESIS
296
+ // =========
297
+ synthesizeAttributes() {
298
+ return {
299
+ developed_by: cdktf.stringToTerraform(this._developedBy),
300
+ exec_config: mlModelExecConfigToTerraform(this._execConfig.internalValue),
301
+ family: cdktf.stringToTerraform(this._family),
302
+ hosted_by: cdktf.stringToTerraform(this._hostedBy),
303
+ name: cdktf.stringToTerraform(this._name),
304
+ visibility: cdktf.stringToTerraform(this._visibility),
305
+ };
306
+ }
307
+ synthesizeHclAttributes() {
308
+ const attrs = {
309
+ developed_by: {
310
+ value: cdktf.stringToHclTerraform(this._developedBy),
311
+ isBlock: false,
312
+ type: "simple",
313
+ storageClassType: "string",
314
+ },
315
+ exec_config: {
316
+ value: mlModelExecConfigToHclTerraform(this._execConfig.internalValue),
317
+ isBlock: true,
318
+ type: "struct",
319
+ storageClassType: "MlModelExecConfig",
320
+ },
321
+ family: {
322
+ value: cdktf.stringToHclTerraform(this._family),
323
+ isBlock: false,
324
+ type: "simple",
325
+ storageClassType: "string",
326
+ },
327
+ hosted_by: {
328
+ value: cdktf.stringToHclTerraform(this._hostedBy),
329
+ isBlock: false,
330
+ type: "simple",
331
+ storageClassType: "string",
332
+ },
333
+ name: {
334
+ value: cdktf.stringToHclTerraform(this._name),
335
+ isBlock: false,
336
+ type: "simple",
337
+ storageClassType: "string",
338
+ },
339
+ visibility: {
340
+ value: cdktf.stringToHclTerraform(this._visibility),
341
+ isBlock: false,
342
+ type: "simple",
343
+ storageClassType: "string",
344
+ },
345
+ };
346
+ // remove undefined attributes
347
+ return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
348
+ }
349
+ }
350
+ exports.MlModel = MlModel;
351
+ // =================
352
+ // STATIC PROPERTIES
353
+ // =================
354
+ MlModel.tfResourceType = "vellum_ml_model";
@@ -4,18 +4,24 @@ export interface VellumProviderConfig {
4
4
  /**
5
5
  * API Key to authenticate with the Vellum API
6
6
  *
7
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs#api_key VellumProvider#api_key}
7
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#api_key VellumProvider#api_key}
8
8
  */
9
9
  readonly apiKey?: string;
10
10
  /**
11
+ * Base URL to use with the Vellum API
12
+ *
13
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#base_url VellumProvider#base_url}
14
+ */
15
+ readonly baseUrl?: string;
16
+ /**
11
17
  * Alias name
12
18
  *
13
- * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs#alias VellumProvider#alias}
19
+ * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#alias VellumProvider#alias}
14
20
  */
15
21
  readonly alias?: string;
16
22
  }
17
23
  /**
18
- * Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs vellum}
24
+ * Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs vellum}
19
25
  */
20
26
  export declare class VellumProvider extends cdktf.TerraformProvider {
21
27
  static readonly tfResourceType = "vellum";
@@ -23,12 +29,12 @@ export declare class VellumProvider extends cdktf.TerraformProvider {
23
29
  * Generates CDKTF code for importing a VellumProvider resource upon running "cdktf plan <stack-name>"
24
30
  * @param scope The scope in which to define this construct
25
31
  * @param importToId The construct id used in the generated config for the VellumProvider to import
26
- * @param importFromId The id of the existing VellumProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs#import import section} in the documentation of this resource for the id to use
32
+ * @param importFromId The id of the existing VellumProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#import import section} in the documentation of this resource for the id to use
27
33
  * @param provider? Optional instance of the provider where the VellumProvider to import is found
28
34
  */
29
35
  static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
30
36
  /**
31
- * Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs vellum} Resource
37
+ * Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs vellum} Resource
32
38
  *
33
39
  * @param scope The scope in which to define this construct
34
40
  * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
@@ -40,6 +46,11 @@ export declare class VellumProvider extends cdktf.TerraformProvider {
40
46
  set apiKey(value: string | undefined);
41
47
  resetApiKey(): void;
42
48
  get apiKeyInput(): string | undefined;
49
+ private _baseUrl?;
50
+ get baseUrl(): string | undefined;
51
+ set baseUrl(value: string | undefined);
52
+ resetBaseUrl(): void;
53
+ get baseUrlInput(): string | undefined;
43
54
  private _alias?;
44
55
  get alias(): string | undefined;
45
56
  set alias(value: string | undefined);
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- // https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs
2
+ // https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs
3
3
  // generated from terraform resource schema
4
4
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
5
  if (k2 === undefined) k2 = k;
@@ -28,14 +28,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.VellumProvider = void 0;
29
29
  const cdktf = __importStar(require("cdktf"));
30
30
  /**
31
- * Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs vellum}
31
+ * Represents a {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs vellum}
32
32
  */
33
33
  class VellumProvider extends cdktf.TerraformProvider {
34
34
  // ===========
35
35
  // INITIALIZER
36
36
  // ===========
37
37
  /**
38
- * Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs vellum} Resource
38
+ * Create a new {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs vellum} Resource
39
39
  *
40
40
  * @param scope The scope in which to define this construct
41
41
  * @param id The scoped construct ID. Must be unique amongst siblings in the same scope
@@ -46,11 +46,12 @@ class VellumProvider extends cdktf.TerraformProvider {
46
46
  terraformResourceType: 'vellum',
47
47
  terraformGeneratorMetadata: {
48
48
  providerName: 'vellum',
49
- providerVersion: '0.0.2'
49
+ providerVersion: '0.0.7'
50
50
  },
51
51
  terraformProviderSource: 'vellum-ai/vellum'
52
52
  });
53
53
  this._apiKey = config.apiKey;
54
+ this._baseUrl = config.baseUrl;
54
55
  this._alias = config.alias;
55
56
  }
56
57
  // ==============
@@ -60,7 +61,7 @@ class VellumProvider extends cdktf.TerraformProvider {
60
61
  * Generates CDKTF code for importing a VellumProvider resource upon running "cdktf plan <stack-name>"
61
62
  * @param scope The scope in which to define this construct
62
63
  * @param importToId The construct id used in the generated config for the VellumProvider to import
63
- * @param importFromId The id of the existing VellumProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.2/docs#import import section} in the documentation of this resource for the id to use
64
+ * @param importFromId The id of the existing VellumProvider that should be imported. Refer to the {@link https://registry.terraform.io/providers/vellum-ai/vellum/0.0.7/docs#import import section} in the documentation of this resource for the id to use
64
65
  * @param provider? Optional instance of the provider where the VellumProvider to import is found
65
66
  */
66
67
  static generateConfigForImport(scope, importToId, importFromId, provider) {
@@ -79,6 +80,19 @@ class VellumProvider extends cdktf.TerraformProvider {
79
80
  get apiKeyInput() {
80
81
  return this._apiKey;
81
82
  }
83
+ get baseUrl() {
84
+ return this._baseUrl;
85
+ }
86
+ set baseUrl(value) {
87
+ this._baseUrl = value;
88
+ }
89
+ resetBaseUrl() {
90
+ this._baseUrl = undefined;
91
+ }
92
+ // Temporarily expose input value. Use with caution.
93
+ get baseUrlInput() {
94
+ return this._baseUrl;
95
+ }
82
96
  get alias() {
83
97
  return this._alias;
84
98
  }
@@ -98,6 +112,7 @@ class VellumProvider extends cdktf.TerraformProvider {
98
112
  synthesizeAttributes() {
99
113
  return {
100
114
  api_key: cdktf.stringToTerraform(this._apiKey),
115
+ base_url: cdktf.stringToTerraform(this._baseUrl),
101
116
  alias: cdktf.stringToTerraform(this._alias),
102
117
  };
103
118
  }
@@ -109,6 +124,12 @@ class VellumProvider extends cdktf.TerraformProvider {
109
124
  type: "simple",
110
125
  storageClassType: "string",
111
126
  },
127
+ base_url: {
128
+ value: cdktf.stringToHclTerraform(this._baseUrl),
129
+ isBlock: false,
130
+ type: "simple",
131
+ storageClassType: "string",
132
+ },
112
133
  alias: {
113
134
  value: cdktf.stringToHclTerraform(this._alias),
114
135
  isBlock: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "0.7.8",
3
+ "version": "0.7.10",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "license": "MIT",
@@ -4,11 +4,15 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Vellum from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { MlModelExecConfigRequest } from "../../../../types/MlModelExecConfigRequest";
8
+ import { MlModelParameterConfigRequest } from "../../../../types/MlModelParameterConfigRequest";
7
9
  import { MlModelDisplayConfigRequest } from "../../../../types/MlModelDisplayConfigRequest";
8
10
  import { VisibilityEnum } from "../../../../types/VisibilityEnum";
9
11
  export declare const MlModelUpdateRequest: core.serialization.Schema<serializers.MlModelUpdateRequest.Raw, Vellum.MlModelUpdateRequest>;
10
12
  export declare namespace MlModelUpdateRequest {
11
13
  interface Raw {
14
+ exec_config?: MlModelExecConfigRequest.Raw | null;
15
+ parameter_config?: MlModelParameterConfigRequest.Raw | null;
12
16
  display_config?: MlModelDisplayConfigRequest.Raw | null;
13
17
  visibility?: VisibilityEnum.Raw | null;
14
18
  }