@quantcdn/pulumi-quant 0.2.0 → 5.4.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/Pulumi.yaml +0 -3
- package/README.md +0 -1
- package/aiAgent.ts +233 -0
- package/aiGovernance.ts +136 -0
- package/aiSkill.ts +170 -0
- package/aiVectorCollection.ts +159 -0
- package/aiVectorDocument.ts +127 -0
- package/application.ts +69 -92
- package/cronJob.ts +31 -87
- package/environment.ts +169 -49
- package/index.ts +42 -0
- package/kvItem.ts +19 -32
- package/kvStore.ts +11 -19
- package/package.json +4 -4
- package/ruleAuth.ts +43 -3
- package/ruleBotChallenge.ts +42 -0
- package/ruleHeaders.ts +42 -0
- package/ruleServeStatic.ts +42 -0
- package/slackBot.ts +205 -0
- package/tsconfig.json +6 -0
- package/types/input.ts +645 -0
- package/types/output.ts +645 -0
- package/utilities.ts +1 -1
- package/volume.ts +26 -48
package/Pulumi.yaml
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
> This provider is a derived work of the [Terraform Provider](https://github.com/quantcdn/terraform-provider-quant)
|
|
2
2
|
> distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/). If you encounter a bug or missing feature,
|
|
3
|
-
> first check the [`pulumi-quant` repo](https://github.com/quantcdn/pulumi-quant/issues); however, if that doesn't turn up anything,
|
|
4
3
|
> please consult the source [`terraform-provider-quant` repo](https://github.com/quantcdn/terraform-provider-quant/issues).
|
package/aiAgent.ts
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "./types/input";
|
|
6
|
+
import * as outputs from "./types/output";
|
|
7
|
+
import * as utilities from "./utilities";
|
|
8
|
+
|
|
9
|
+
export class AiAgent extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing AiAgent resource's state with the given name, ID, and optional extra
|
|
12
|
+
* properties used to qualify the lookup.
|
|
13
|
+
*
|
|
14
|
+
* @param name The _unique_ name of the resulting resource.
|
|
15
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
16
|
+
* @param state Any extra arguments used during the lookup.
|
|
17
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
18
|
+
*/
|
|
19
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AiAgentState, opts?: pulumi.CustomResourceOptions): AiAgent {
|
|
20
|
+
return new AiAgent(name, <any>state, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'quant:index:AiAgent';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of AiAgent. This is designed to work even
|
|
28
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
+
*/
|
|
30
|
+
public static isInstance(obj: any): obj is AiAgent {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === AiAgent.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public /*out*/ readonly agent: pulumi.Output<outputs.AiAgentAgent>;
|
|
38
|
+
/**
|
|
39
|
+
* The agent ID
|
|
40
|
+
*/
|
|
41
|
+
declare public readonly agentId: pulumi.Output<string>;
|
|
42
|
+
declare public readonly allowedCollections: pulumi.Output<string[]>;
|
|
43
|
+
declare public readonly allowedTools: pulumi.Output<string[]>;
|
|
44
|
+
/**
|
|
45
|
+
* Skill IDs to assign to this agent
|
|
46
|
+
*/
|
|
47
|
+
declare public readonly assignedSkills: pulumi.Output<string[]>;
|
|
48
|
+
/**
|
|
49
|
+
* User identifier who created the agent
|
|
50
|
+
*/
|
|
51
|
+
declare public readonly createdBy: pulumi.Output<string>;
|
|
52
|
+
declare public readonly description: pulumi.Output<string>;
|
|
53
|
+
/**
|
|
54
|
+
* Filter policy IDs to apply to this agent's inference requests
|
|
55
|
+
*/
|
|
56
|
+
declare public readonly filterPolicies: pulumi.Output<string[]>;
|
|
57
|
+
declare public readonly group: pulumi.Output<string>;
|
|
58
|
+
/**
|
|
59
|
+
* Guardrail preset name
|
|
60
|
+
*/
|
|
61
|
+
declare public readonly guardrailPreset: pulumi.Output<string>;
|
|
62
|
+
/**
|
|
63
|
+
* Enable 1M context window support
|
|
64
|
+
*/
|
|
65
|
+
declare public readonly longContext: pulumi.Output<boolean>;
|
|
66
|
+
declare public readonly maxTokens: pulumi.Output<number>;
|
|
67
|
+
declare public /*out*/ readonly message: pulumi.Output<string>;
|
|
68
|
+
declare public readonly modelId: pulumi.Output<string>;
|
|
69
|
+
declare public readonly name: pulumi.Output<string>;
|
|
70
|
+
/**
|
|
71
|
+
* The organisation ID
|
|
72
|
+
*/
|
|
73
|
+
declare public readonly organisation: pulumi.Output<string>;
|
|
74
|
+
declare public /*out*/ readonly success: pulumi.Output<boolean>;
|
|
75
|
+
declare public readonly systemPrompt: pulumi.Output<string>;
|
|
76
|
+
declare public readonly temperature: pulumi.Output<number>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Create a AiAgent resource with the given unique name, arguments, and options.
|
|
80
|
+
*
|
|
81
|
+
* @param name The _unique_ name of the resource.
|
|
82
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
83
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
84
|
+
*/
|
|
85
|
+
constructor(name: string, args: AiAgentArgs, opts?: pulumi.CustomResourceOptions)
|
|
86
|
+
constructor(name: string, argsOrState?: AiAgentArgs | AiAgentState, opts?: pulumi.CustomResourceOptions) {
|
|
87
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
88
|
+
opts = opts || {};
|
|
89
|
+
if (opts.id) {
|
|
90
|
+
const state = argsOrState as AiAgentState | undefined;
|
|
91
|
+
resourceInputs["agent"] = state?.agent;
|
|
92
|
+
resourceInputs["agentId"] = state?.agentId;
|
|
93
|
+
resourceInputs["allowedCollections"] = state?.allowedCollections;
|
|
94
|
+
resourceInputs["allowedTools"] = state?.allowedTools;
|
|
95
|
+
resourceInputs["assignedSkills"] = state?.assignedSkills;
|
|
96
|
+
resourceInputs["createdBy"] = state?.createdBy;
|
|
97
|
+
resourceInputs["description"] = state?.description;
|
|
98
|
+
resourceInputs["filterPolicies"] = state?.filterPolicies;
|
|
99
|
+
resourceInputs["group"] = state?.group;
|
|
100
|
+
resourceInputs["guardrailPreset"] = state?.guardrailPreset;
|
|
101
|
+
resourceInputs["longContext"] = state?.longContext;
|
|
102
|
+
resourceInputs["maxTokens"] = state?.maxTokens;
|
|
103
|
+
resourceInputs["message"] = state?.message;
|
|
104
|
+
resourceInputs["modelId"] = state?.modelId;
|
|
105
|
+
resourceInputs["name"] = state?.name;
|
|
106
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
107
|
+
resourceInputs["success"] = state?.success;
|
|
108
|
+
resourceInputs["systemPrompt"] = state?.systemPrompt;
|
|
109
|
+
resourceInputs["temperature"] = state?.temperature;
|
|
110
|
+
} else {
|
|
111
|
+
const args = argsOrState as AiAgentArgs | undefined;
|
|
112
|
+
if (args?.description === undefined && !opts.urn) {
|
|
113
|
+
throw new Error("Missing required property 'description'");
|
|
114
|
+
}
|
|
115
|
+
if (args?.modelId === undefined && !opts.urn) {
|
|
116
|
+
throw new Error("Missing required property 'modelId'");
|
|
117
|
+
}
|
|
118
|
+
if (args?.systemPrompt === undefined && !opts.urn) {
|
|
119
|
+
throw new Error("Missing required property 'systemPrompt'");
|
|
120
|
+
}
|
|
121
|
+
resourceInputs["agentId"] = args?.agentId;
|
|
122
|
+
resourceInputs["allowedCollections"] = args?.allowedCollections;
|
|
123
|
+
resourceInputs["allowedTools"] = args?.allowedTools;
|
|
124
|
+
resourceInputs["assignedSkills"] = args?.assignedSkills;
|
|
125
|
+
resourceInputs["createdBy"] = args?.createdBy;
|
|
126
|
+
resourceInputs["description"] = args?.description;
|
|
127
|
+
resourceInputs["filterPolicies"] = args?.filterPolicies;
|
|
128
|
+
resourceInputs["group"] = args?.group;
|
|
129
|
+
resourceInputs["guardrailPreset"] = args?.guardrailPreset;
|
|
130
|
+
resourceInputs["longContext"] = args?.longContext;
|
|
131
|
+
resourceInputs["maxTokens"] = args?.maxTokens;
|
|
132
|
+
resourceInputs["modelId"] = args?.modelId;
|
|
133
|
+
resourceInputs["name"] = args?.name;
|
|
134
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
135
|
+
resourceInputs["systemPrompt"] = args?.systemPrompt;
|
|
136
|
+
resourceInputs["temperature"] = args?.temperature;
|
|
137
|
+
resourceInputs["agent"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
140
|
+
}
|
|
141
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
142
|
+
super(AiAgent.__pulumiType, name, resourceInputs, opts);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Input properties used for looking up and filtering AiAgent resources.
|
|
148
|
+
*/
|
|
149
|
+
export interface AiAgentState {
|
|
150
|
+
agent?: pulumi.Input<inputs.AiAgentAgent>;
|
|
151
|
+
/**
|
|
152
|
+
* The agent ID
|
|
153
|
+
*/
|
|
154
|
+
agentId?: pulumi.Input<string>;
|
|
155
|
+
allowedCollections?: pulumi.Input<pulumi.Input<string>[]>;
|
|
156
|
+
allowedTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
157
|
+
/**
|
|
158
|
+
* Skill IDs to assign to this agent
|
|
159
|
+
*/
|
|
160
|
+
assignedSkills?: pulumi.Input<pulumi.Input<string>[]>;
|
|
161
|
+
/**
|
|
162
|
+
* User identifier who created the agent
|
|
163
|
+
*/
|
|
164
|
+
createdBy?: pulumi.Input<string>;
|
|
165
|
+
description?: pulumi.Input<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Filter policy IDs to apply to this agent's inference requests
|
|
168
|
+
*/
|
|
169
|
+
filterPolicies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
170
|
+
group?: pulumi.Input<string>;
|
|
171
|
+
/**
|
|
172
|
+
* Guardrail preset name
|
|
173
|
+
*/
|
|
174
|
+
guardrailPreset?: pulumi.Input<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Enable 1M context window support
|
|
177
|
+
*/
|
|
178
|
+
longContext?: pulumi.Input<boolean>;
|
|
179
|
+
maxTokens?: pulumi.Input<number>;
|
|
180
|
+
message?: pulumi.Input<string>;
|
|
181
|
+
modelId?: pulumi.Input<string>;
|
|
182
|
+
name?: pulumi.Input<string>;
|
|
183
|
+
/**
|
|
184
|
+
* The organisation ID
|
|
185
|
+
*/
|
|
186
|
+
organisation?: pulumi.Input<string>;
|
|
187
|
+
success?: pulumi.Input<boolean>;
|
|
188
|
+
systemPrompt?: pulumi.Input<string>;
|
|
189
|
+
temperature?: pulumi.Input<number>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The set of arguments for constructing a AiAgent resource.
|
|
194
|
+
*/
|
|
195
|
+
export interface AiAgentArgs {
|
|
196
|
+
/**
|
|
197
|
+
* The agent ID
|
|
198
|
+
*/
|
|
199
|
+
agentId?: pulumi.Input<string>;
|
|
200
|
+
allowedCollections?: pulumi.Input<pulumi.Input<string>[]>;
|
|
201
|
+
allowedTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
202
|
+
/**
|
|
203
|
+
* Skill IDs to assign to this agent
|
|
204
|
+
*/
|
|
205
|
+
assignedSkills?: pulumi.Input<pulumi.Input<string>[]>;
|
|
206
|
+
/**
|
|
207
|
+
* User identifier who created the agent
|
|
208
|
+
*/
|
|
209
|
+
createdBy?: pulumi.Input<string>;
|
|
210
|
+
description: pulumi.Input<string>;
|
|
211
|
+
/**
|
|
212
|
+
* Filter policy IDs to apply to this agent's inference requests
|
|
213
|
+
*/
|
|
214
|
+
filterPolicies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
215
|
+
group?: pulumi.Input<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Guardrail preset name
|
|
218
|
+
*/
|
|
219
|
+
guardrailPreset?: pulumi.Input<string>;
|
|
220
|
+
/**
|
|
221
|
+
* Enable 1M context window support
|
|
222
|
+
*/
|
|
223
|
+
longContext?: pulumi.Input<boolean>;
|
|
224
|
+
maxTokens?: pulumi.Input<number>;
|
|
225
|
+
modelId: pulumi.Input<string>;
|
|
226
|
+
name?: pulumi.Input<string>;
|
|
227
|
+
/**
|
|
228
|
+
* The organisation ID
|
|
229
|
+
*/
|
|
230
|
+
organisation?: pulumi.Input<string>;
|
|
231
|
+
systemPrompt: pulumi.Input<string>;
|
|
232
|
+
temperature?: pulumi.Input<number>;
|
|
233
|
+
}
|
package/aiGovernance.ts
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "./types/input";
|
|
6
|
+
import * as outputs from "./types/output";
|
|
7
|
+
import * as utilities from "./utilities";
|
|
8
|
+
|
|
9
|
+
export class AiGovernance extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing AiGovernance resource's state with the given name, ID, and optional extra
|
|
12
|
+
* properties used to qualify the lookup.
|
|
13
|
+
*
|
|
14
|
+
* @param name The _unique_ name of the resulting resource.
|
|
15
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
16
|
+
* @param state Any extra arguments used during the lookup.
|
|
17
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
18
|
+
*/
|
|
19
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AiGovernanceState, opts?: pulumi.CustomResourceOptions): AiGovernance {
|
|
20
|
+
return new AiGovernance(name, <any>state, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'quant:index:AiGovernance';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of AiGovernance. This is designed to work even
|
|
28
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
+
*/
|
|
30
|
+
public static isInstance(obj: any): obj is AiGovernance {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === AiGovernance.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public readonly aiEnabled: pulumi.Output<boolean>;
|
|
38
|
+
declare public /*out*/ readonly config: pulumi.Output<outputs.AiGovernanceConfig>;
|
|
39
|
+
declare public readonly mandatoryFilterPolicies: pulumi.Output<string[]>;
|
|
40
|
+
declare public readonly mandatoryGuardrailPreset: pulumi.Output<string>;
|
|
41
|
+
declare public readonly modelLists: pulumi.Output<string[]>;
|
|
42
|
+
declare public readonly modelPolicy: pulumi.Output<string>;
|
|
43
|
+
declare public /*out*/ readonly orgId: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The organisation ID
|
|
46
|
+
*/
|
|
47
|
+
declare public readonly organisation: pulumi.Output<string>;
|
|
48
|
+
declare public readonly spendLimits: pulumi.Output<outputs.AiGovernanceSpendLimits>;
|
|
49
|
+
declare public /*out*/ readonly success: pulumi.Output<boolean>;
|
|
50
|
+
declare public readonly version: pulumi.Output<number>;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Create a AiGovernance resource with the given unique name, arguments, and options.
|
|
54
|
+
*
|
|
55
|
+
* @param name The _unique_ name of the resource.
|
|
56
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
57
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
58
|
+
*/
|
|
59
|
+
constructor(name: string, args: AiGovernanceArgs, opts?: pulumi.CustomResourceOptions)
|
|
60
|
+
constructor(name: string, argsOrState?: AiGovernanceArgs | AiGovernanceState, opts?: pulumi.CustomResourceOptions) {
|
|
61
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
62
|
+
opts = opts || {};
|
|
63
|
+
if (opts.id) {
|
|
64
|
+
const state = argsOrState as AiGovernanceState | undefined;
|
|
65
|
+
resourceInputs["aiEnabled"] = state?.aiEnabled;
|
|
66
|
+
resourceInputs["config"] = state?.config;
|
|
67
|
+
resourceInputs["mandatoryFilterPolicies"] = state?.mandatoryFilterPolicies;
|
|
68
|
+
resourceInputs["mandatoryGuardrailPreset"] = state?.mandatoryGuardrailPreset;
|
|
69
|
+
resourceInputs["modelLists"] = state?.modelLists;
|
|
70
|
+
resourceInputs["modelPolicy"] = state?.modelPolicy;
|
|
71
|
+
resourceInputs["orgId"] = state?.orgId;
|
|
72
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
73
|
+
resourceInputs["spendLimits"] = state?.spendLimits;
|
|
74
|
+
resourceInputs["success"] = state?.success;
|
|
75
|
+
resourceInputs["version"] = state?.version;
|
|
76
|
+
} else {
|
|
77
|
+
const args = argsOrState as AiGovernanceArgs | undefined;
|
|
78
|
+
if (args?.aiEnabled === undefined && !opts.urn) {
|
|
79
|
+
throw new Error("Missing required property 'aiEnabled'");
|
|
80
|
+
}
|
|
81
|
+
if (args?.modelPolicy === undefined && !opts.urn) {
|
|
82
|
+
throw new Error("Missing required property 'modelPolicy'");
|
|
83
|
+
}
|
|
84
|
+
resourceInputs["aiEnabled"] = args?.aiEnabled;
|
|
85
|
+
resourceInputs["mandatoryFilterPolicies"] = args?.mandatoryFilterPolicies;
|
|
86
|
+
resourceInputs["mandatoryGuardrailPreset"] = args?.mandatoryGuardrailPreset;
|
|
87
|
+
resourceInputs["modelLists"] = args?.modelLists;
|
|
88
|
+
resourceInputs["modelPolicy"] = args?.modelPolicy;
|
|
89
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
90
|
+
resourceInputs["spendLimits"] = args?.spendLimits;
|
|
91
|
+
resourceInputs["version"] = args?.version;
|
|
92
|
+
resourceInputs["config"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["orgId"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
95
|
+
}
|
|
96
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
97
|
+
super(AiGovernance.__pulumiType, name, resourceInputs, opts);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Input properties used for looking up and filtering AiGovernance resources.
|
|
103
|
+
*/
|
|
104
|
+
export interface AiGovernanceState {
|
|
105
|
+
aiEnabled?: pulumi.Input<boolean>;
|
|
106
|
+
config?: pulumi.Input<inputs.AiGovernanceConfig>;
|
|
107
|
+
mandatoryFilterPolicies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
108
|
+
mandatoryGuardrailPreset?: pulumi.Input<string>;
|
|
109
|
+
modelLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
110
|
+
modelPolicy?: pulumi.Input<string>;
|
|
111
|
+
orgId?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* The organisation ID
|
|
114
|
+
*/
|
|
115
|
+
organisation?: pulumi.Input<string>;
|
|
116
|
+
spendLimits?: pulumi.Input<inputs.AiGovernanceSpendLimits>;
|
|
117
|
+
success?: pulumi.Input<boolean>;
|
|
118
|
+
version?: pulumi.Input<number>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* The set of arguments for constructing a AiGovernance resource.
|
|
123
|
+
*/
|
|
124
|
+
export interface AiGovernanceArgs {
|
|
125
|
+
aiEnabled: pulumi.Input<boolean>;
|
|
126
|
+
mandatoryFilterPolicies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
127
|
+
mandatoryGuardrailPreset?: pulumi.Input<string>;
|
|
128
|
+
modelLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
129
|
+
modelPolicy: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* The organisation ID
|
|
132
|
+
*/
|
|
133
|
+
organisation?: pulumi.Input<string>;
|
|
134
|
+
spendLimits?: pulumi.Input<inputs.AiGovernanceSpendLimits>;
|
|
135
|
+
version?: pulumi.Input<number>;
|
|
136
|
+
}
|
package/aiSkill.ts
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
2
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
3
|
+
|
|
4
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as inputs from "./types/input";
|
|
6
|
+
import * as outputs from "./types/output";
|
|
7
|
+
import * as utilities from "./utilities";
|
|
8
|
+
|
|
9
|
+
export class AiSkill extends pulumi.CustomResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get an existing AiSkill resource's state with the given name, ID, and optional extra
|
|
12
|
+
* properties used to qualify the lookup.
|
|
13
|
+
*
|
|
14
|
+
* @param name The _unique_ name of the resulting resource.
|
|
15
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
16
|
+
* @param state Any extra arguments used during the lookup.
|
|
17
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
18
|
+
*/
|
|
19
|
+
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AiSkillState, opts?: pulumi.CustomResourceOptions): AiSkill {
|
|
20
|
+
return new AiSkill(name, <any>state, { ...opts, id: id });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
public static readonly __pulumiType = 'quant:index:AiSkill';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if the given object is an instance of AiSkill. This is designed to work even
|
|
28
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
|
+
*/
|
|
30
|
+
public static isInstance(obj: any): obj is AiSkill {
|
|
31
|
+
if (obj === undefined || obj === null) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return obj['__pulumiType'] === AiSkill.__pulumiType;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare public readonly allowedTools: pulumi.Output<string[]>;
|
|
38
|
+
declare public readonly content: pulumi.Output<string>;
|
|
39
|
+
declare public readonly description: pulumi.Output<string>;
|
|
40
|
+
declare public readonly disableModelInvocation: pulumi.Output<boolean>;
|
|
41
|
+
declare public readonly files: pulumi.Output<outputs.AiSkillFiles>;
|
|
42
|
+
declare public readonly installedBy: pulumi.Output<string>;
|
|
43
|
+
declare public /*out*/ readonly message: pulumi.Output<string>;
|
|
44
|
+
declare public readonly name: pulumi.Output<string>;
|
|
45
|
+
declare public readonly namespace: pulumi.Output<string>;
|
|
46
|
+
/**
|
|
47
|
+
* The organisation ID
|
|
48
|
+
*/
|
|
49
|
+
declare public readonly organisation: pulumi.Output<string>;
|
|
50
|
+
declare public readonly requiredTools: pulumi.Output<string[]>;
|
|
51
|
+
declare public /*out*/ readonly skill: pulumi.Output<outputs.AiSkillSkill>;
|
|
52
|
+
/**
|
|
53
|
+
* The skill ID
|
|
54
|
+
*/
|
|
55
|
+
declare public readonly skillId: pulumi.Output<string>;
|
|
56
|
+
declare public /*out*/ readonly success: pulumi.Output<boolean>;
|
|
57
|
+
declare public readonly tags: pulumi.Output<string[]>;
|
|
58
|
+
declare public readonly triggerCondition: pulumi.Output<string>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Create a AiSkill resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args: AiSkillArgs, opts?: pulumi.CustomResourceOptions)
|
|
68
|
+
constructor(name: string, argsOrState?: AiSkillArgs | AiSkillState, opts?: pulumi.CustomResourceOptions) {
|
|
69
|
+
let resourceInputs: pulumi.Inputs = {};
|
|
70
|
+
opts = opts || {};
|
|
71
|
+
if (opts.id) {
|
|
72
|
+
const state = argsOrState as AiSkillState | undefined;
|
|
73
|
+
resourceInputs["allowedTools"] = state?.allowedTools;
|
|
74
|
+
resourceInputs["content"] = state?.content;
|
|
75
|
+
resourceInputs["description"] = state?.description;
|
|
76
|
+
resourceInputs["disableModelInvocation"] = state?.disableModelInvocation;
|
|
77
|
+
resourceInputs["files"] = state?.files;
|
|
78
|
+
resourceInputs["installedBy"] = state?.installedBy;
|
|
79
|
+
resourceInputs["message"] = state?.message;
|
|
80
|
+
resourceInputs["name"] = state?.name;
|
|
81
|
+
resourceInputs["namespace"] = state?.namespace;
|
|
82
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
83
|
+
resourceInputs["requiredTools"] = state?.requiredTools;
|
|
84
|
+
resourceInputs["skill"] = state?.skill;
|
|
85
|
+
resourceInputs["skillId"] = state?.skillId;
|
|
86
|
+
resourceInputs["success"] = state?.success;
|
|
87
|
+
resourceInputs["tags"] = state?.tags;
|
|
88
|
+
resourceInputs["triggerCondition"] = state?.triggerCondition;
|
|
89
|
+
} else {
|
|
90
|
+
const args = argsOrState as AiSkillArgs | undefined;
|
|
91
|
+
if (args?.content === undefined && !opts.urn) {
|
|
92
|
+
throw new Error("Missing required property 'content'");
|
|
93
|
+
}
|
|
94
|
+
if (args?.triggerCondition === undefined && !opts.urn) {
|
|
95
|
+
throw new Error("Missing required property 'triggerCondition'");
|
|
96
|
+
}
|
|
97
|
+
resourceInputs["allowedTools"] = args?.allowedTools;
|
|
98
|
+
resourceInputs["content"] = args?.content;
|
|
99
|
+
resourceInputs["description"] = args?.description;
|
|
100
|
+
resourceInputs["disableModelInvocation"] = args?.disableModelInvocation;
|
|
101
|
+
resourceInputs["files"] = args?.files;
|
|
102
|
+
resourceInputs["installedBy"] = args?.installedBy;
|
|
103
|
+
resourceInputs["name"] = args?.name;
|
|
104
|
+
resourceInputs["namespace"] = args?.namespace;
|
|
105
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
106
|
+
resourceInputs["requiredTools"] = args?.requiredTools;
|
|
107
|
+
resourceInputs["skillId"] = args?.skillId;
|
|
108
|
+
resourceInputs["tags"] = args?.tags;
|
|
109
|
+
resourceInputs["triggerCondition"] = args?.triggerCondition;
|
|
110
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["skill"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
113
|
+
}
|
|
114
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
|
+
super(AiSkill.__pulumiType, name, resourceInputs, opts);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Input properties used for looking up and filtering AiSkill resources.
|
|
121
|
+
*/
|
|
122
|
+
export interface AiSkillState {
|
|
123
|
+
allowedTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
content?: pulumi.Input<string>;
|
|
125
|
+
description?: pulumi.Input<string>;
|
|
126
|
+
disableModelInvocation?: pulumi.Input<boolean>;
|
|
127
|
+
files?: pulumi.Input<inputs.AiSkillFiles>;
|
|
128
|
+
installedBy?: pulumi.Input<string>;
|
|
129
|
+
message?: pulumi.Input<string>;
|
|
130
|
+
name?: pulumi.Input<string>;
|
|
131
|
+
namespace?: pulumi.Input<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The organisation ID
|
|
134
|
+
*/
|
|
135
|
+
organisation?: pulumi.Input<string>;
|
|
136
|
+
requiredTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
137
|
+
skill?: pulumi.Input<inputs.AiSkillSkill>;
|
|
138
|
+
/**
|
|
139
|
+
* The skill ID
|
|
140
|
+
*/
|
|
141
|
+
skillId?: pulumi.Input<string>;
|
|
142
|
+
success?: pulumi.Input<boolean>;
|
|
143
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
144
|
+
triggerCondition?: pulumi.Input<string>;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The set of arguments for constructing a AiSkill resource.
|
|
149
|
+
*/
|
|
150
|
+
export interface AiSkillArgs {
|
|
151
|
+
allowedTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
152
|
+
content: pulumi.Input<string>;
|
|
153
|
+
description?: pulumi.Input<string>;
|
|
154
|
+
disableModelInvocation?: pulumi.Input<boolean>;
|
|
155
|
+
files?: pulumi.Input<inputs.AiSkillFiles>;
|
|
156
|
+
installedBy?: pulumi.Input<string>;
|
|
157
|
+
name?: pulumi.Input<string>;
|
|
158
|
+
namespace?: pulumi.Input<string>;
|
|
159
|
+
/**
|
|
160
|
+
* The organisation ID
|
|
161
|
+
*/
|
|
162
|
+
organisation?: pulumi.Input<string>;
|
|
163
|
+
requiredTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
164
|
+
/**
|
|
165
|
+
* The skill ID
|
|
166
|
+
*/
|
|
167
|
+
skillId?: pulumi.Input<string>;
|
|
168
|
+
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
169
|
+
triggerCondition: pulumi.Input<string>;
|
|
170
|
+
}
|