@quantcdn/pulumi-quant 0.3.0 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Pulumi.yaml +0 -3
- package/README.md +0 -1
- package/aiAgent.ts +233 -0
- package/aiGovernance.ts +27 -74
- package/aiSkill.ts +69 -96
- package/aiVectorCollection.ts +63 -23
- package/aiVectorDocument.ts +45 -98
- package/application.ts +69 -92
- package/cronJob.ts +31 -87
- package/environment.ts +169 -49
- package/index.ts +14 -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 +2 -0
- package/types/input.ts +619 -20
- package/types/output.ts +619 -20
- 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
CHANGED
|
@@ -34,38 +34,20 @@ export class AiGovernance extends pulumi.CustomResource {
|
|
|
34
34
|
return obj['__pulumiType'] === AiGovernance.__pulumiType;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
/**
|
|
38
|
-
* Whether AI features are enabled for the organization
|
|
39
|
-
*/
|
|
40
37
|
declare public readonly aiEnabled: pulumi.Output<boolean>;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
declare public readonly
|
|
45
|
-
/**
|
|
46
|
-
* Mandatory guardrail preset to enforce on all AI requests
|
|
47
|
-
*/
|
|
48
|
-
declare public readonly mandatoryGuardrailPreset: pulumi.Output<string | undefined>;
|
|
49
|
-
/**
|
|
50
|
-
* List of model identifiers for the allowlist or blocklist policy
|
|
51
|
-
*/
|
|
52
|
-
declare public readonly modelLists: pulumi.Output<string[] | undefined>;
|
|
53
|
-
/**
|
|
54
|
-
* Model access policy: `unrestricted`, `allowlist`, or `blocklist`
|
|
55
|
-
*/
|
|
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[]>;
|
|
56
42
|
declare public readonly modelPolicy: pulumi.Output<string>;
|
|
43
|
+
declare public /*out*/ readonly orgId: pulumi.Output<string>;
|
|
57
44
|
/**
|
|
58
|
-
*
|
|
45
|
+
* The organisation ID
|
|
59
46
|
*/
|
|
60
|
-
declare public readonly
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
declare public readonly spendLimits: pulumi.Output<outputs.AiGovernanceSpendLimits | undefined>;
|
|
65
|
-
/**
|
|
66
|
-
* Configuration version for optimistic concurrency control
|
|
67
|
-
*/
|
|
68
|
-
declare public /*out*/ readonly version: pulumi.Output<number>;
|
|
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>;
|
|
69
51
|
|
|
70
52
|
/**
|
|
71
53
|
* Create a AiGovernance resource with the given unique name, arguments, and options.
|
|
@@ -81,12 +63,15 @@ export class AiGovernance extends pulumi.CustomResource {
|
|
|
81
63
|
if (opts.id) {
|
|
82
64
|
const state = argsOrState as AiGovernanceState | undefined;
|
|
83
65
|
resourceInputs["aiEnabled"] = state?.aiEnabled;
|
|
66
|
+
resourceInputs["config"] = state?.config;
|
|
84
67
|
resourceInputs["mandatoryFilterPolicies"] = state?.mandatoryFilterPolicies;
|
|
85
68
|
resourceInputs["mandatoryGuardrailPreset"] = state?.mandatoryGuardrailPreset;
|
|
86
69
|
resourceInputs["modelLists"] = state?.modelLists;
|
|
87
70
|
resourceInputs["modelPolicy"] = state?.modelPolicy;
|
|
88
|
-
resourceInputs["
|
|
71
|
+
resourceInputs["orgId"] = state?.orgId;
|
|
72
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
89
73
|
resourceInputs["spendLimits"] = state?.spendLimits;
|
|
74
|
+
resourceInputs["success"] = state?.success;
|
|
90
75
|
resourceInputs["version"] = state?.version;
|
|
91
76
|
} else {
|
|
92
77
|
const args = argsOrState as AiGovernanceArgs | undefined;
|
|
@@ -101,9 +86,12 @@ export class AiGovernance extends pulumi.CustomResource {
|
|
|
101
86
|
resourceInputs["mandatoryGuardrailPreset"] = args?.mandatoryGuardrailPreset;
|
|
102
87
|
resourceInputs["modelLists"] = args?.modelLists;
|
|
103
88
|
resourceInputs["modelPolicy"] = args?.modelPolicy;
|
|
104
|
-
resourceInputs["
|
|
89
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
105
90
|
resourceInputs["spendLimits"] = args?.spendLimits;
|
|
106
|
-
resourceInputs["version"] =
|
|
91
|
+
resourceInputs["version"] = args?.version;
|
|
92
|
+
resourceInputs["config"] = undefined /*out*/;
|
|
93
|
+
resourceInputs["orgId"] = undefined /*out*/;
|
|
94
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
107
95
|
}
|
|
108
96
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
109
97
|
super(AiGovernance.__pulumiType, name, resourceInputs, opts);
|
|
@@ -114,37 +102,19 @@ export class AiGovernance extends pulumi.CustomResource {
|
|
|
114
102
|
* Input properties used for looking up and filtering AiGovernance resources.
|
|
115
103
|
*/
|
|
116
104
|
export interface AiGovernanceState {
|
|
117
|
-
/**
|
|
118
|
-
* Whether AI features are enabled for the organization
|
|
119
|
-
*/
|
|
120
105
|
aiEnabled?: pulumi.Input<boolean>;
|
|
121
|
-
|
|
122
|
-
* List of mandatory content filter policy identifiers
|
|
123
|
-
*/
|
|
106
|
+
config?: pulumi.Input<inputs.AiGovernanceConfig>;
|
|
124
107
|
mandatoryFilterPolicies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
125
|
-
/**
|
|
126
|
-
* Mandatory guardrail preset to enforce on all AI requests
|
|
127
|
-
*/
|
|
128
108
|
mandatoryGuardrailPreset?: pulumi.Input<string>;
|
|
129
|
-
/**
|
|
130
|
-
* List of model identifiers for the allowlist or blocklist policy
|
|
131
|
-
*/
|
|
132
109
|
modelLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
133
|
-
/**
|
|
134
|
-
* Model access policy: `unrestricted`, `allowlist`, or `blocklist`
|
|
135
|
-
*/
|
|
136
110
|
modelPolicy?: pulumi.Input<string>;
|
|
111
|
+
orgId?: pulumi.Input<string>;
|
|
137
112
|
/**
|
|
138
|
-
*
|
|
139
|
-
*/
|
|
140
|
-
organization?: pulumi.Input<string>;
|
|
141
|
-
/**
|
|
142
|
-
* Spend limit configuration for AI usage
|
|
113
|
+
* The organisation ID
|
|
143
114
|
*/
|
|
115
|
+
organisation?: pulumi.Input<string>;
|
|
144
116
|
spendLimits?: pulumi.Input<inputs.AiGovernanceSpendLimits>;
|
|
145
|
-
|
|
146
|
-
* Configuration version for optimistic concurrency control
|
|
147
|
-
*/
|
|
117
|
+
success?: pulumi.Input<boolean>;
|
|
148
118
|
version?: pulumi.Input<number>;
|
|
149
119
|
}
|
|
150
120
|
|
|
@@ -152,32 +122,15 @@ export interface AiGovernanceState {
|
|
|
152
122
|
* The set of arguments for constructing a AiGovernance resource.
|
|
153
123
|
*/
|
|
154
124
|
export interface AiGovernanceArgs {
|
|
155
|
-
/**
|
|
156
|
-
* Whether AI features are enabled for the organization
|
|
157
|
-
*/
|
|
158
125
|
aiEnabled: pulumi.Input<boolean>;
|
|
159
|
-
/**
|
|
160
|
-
* List of mandatory content filter policy identifiers
|
|
161
|
-
*/
|
|
162
126
|
mandatoryFilterPolicies?: pulumi.Input<pulumi.Input<string>[]>;
|
|
163
|
-
/**
|
|
164
|
-
* Mandatory guardrail preset to enforce on all AI requests
|
|
165
|
-
*/
|
|
166
127
|
mandatoryGuardrailPreset?: pulumi.Input<string>;
|
|
167
|
-
/**
|
|
168
|
-
* List of model identifiers for the allowlist or blocklist policy
|
|
169
|
-
*/
|
|
170
128
|
modelLists?: pulumi.Input<pulumi.Input<string>[]>;
|
|
171
|
-
/**
|
|
172
|
-
* Model access policy: `unrestricted`, `allowlist`, or `blocklist`
|
|
173
|
-
*/
|
|
174
129
|
modelPolicy: pulumi.Input<string>;
|
|
175
130
|
/**
|
|
176
|
-
*
|
|
177
|
-
*/
|
|
178
|
-
organization?: pulumi.Input<string>;
|
|
179
|
-
/**
|
|
180
|
-
* Spend limit configuration for AI usage
|
|
131
|
+
* The organisation ID
|
|
181
132
|
*/
|
|
133
|
+
organisation?: pulumi.Input<string>;
|
|
182
134
|
spendLimits?: pulumi.Input<inputs.AiGovernanceSpendLimits>;
|
|
135
|
+
version?: pulumi.Input<number>;
|
|
183
136
|
}
|
package/aiSkill.ts
CHANGED
|
@@ -34,46 +34,28 @@ export class AiSkill extends pulumi.CustomResource {
|
|
|
34
34
|
return obj['__pulumiType'] === AiSkill.__pulumiType;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
declare public readonly
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
declare public readonly description: pulumi.Output<string | undefined>;
|
|
45
|
-
/**
|
|
46
|
-
* Timestamp when the skill was installed
|
|
47
|
-
*/
|
|
48
|
-
declare public /*out*/ readonly installedAt: pulumi.Output<string>;
|
|
49
|
-
/**
|
|
50
|
-
* Skill name
|
|
51
|
-
*/
|
|
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>;
|
|
52
44
|
declare public readonly name: pulumi.Output<string>;
|
|
45
|
+
declare public readonly namespace: pulumi.Output<string>;
|
|
53
46
|
/**
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
declare public /*out*/ readonly namespace: pulumi.Output<string>;
|
|
57
|
-
/**
|
|
58
|
-
* Organization machine name (defaults to provider organization)
|
|
59
|
-
*/
|
|
60
|
-
declare public readonly organization: pulumi.Output<string>;
|
|
61
|
-
/**
|
|
62
|
-
* External source for importing a skill. Conflicts with `content`.
|
|
47
|
+
* The organisation ID
|
|
63
48
|
*/
|
|
64
|
-
declare public readonly
|
|
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>;
|
|
65
52
|
/**
|
|
66
|
-
*
|
|
53
|
+
* The skill ID
|
|
67
54
|
*/
|
|
68
|
-
declare public readonly
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
declare public readonly triggerCondition: pulumi.Output<string | undefined>;
|
|
73
|
-
/**
|
|
74
|
-
* Timestamp when the skill was last updated
|
|
75
|
-
*/
|
|
76
|
-
declare public /*out*/ readonly updatedAt: pulumi.Output<string>;
|
|
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>;
|
|
77
59
|
|
|
78
60
|
/**
|
|
79
61
|
* Create a AiSkill resource with the given unique name, arguments, and options.
|
|
@@ -82,34 +64,52 @@ export class AiSkill extends pulumi.CustomResource {
|
|
|
82
64
|
* @param args The arguments to use to populate this resource's properties.
|
|
83
65
|
* @param opts A bag of options that control this resource's behavior.
|
|
84
66
|
*/
|
|
85
|
-
constructor(name: string, args
|
|
67
|
+
constructor(name: string, args: AiSkillArgs, opts?: pulumi.CustomResourceOptions)
|
|
86
68
|
constructor(name: string, argsOrState?: AiSkillArgs | AiSkillState, opts?: pulumi.CustomResourceOptions) {
|
|
87
69
|
let resourceInputs: pulumi.Inputs = {};
|
|
88
70
|
opts = opts || {};
|
|
89
71
|
if (opts.id) {
|
|
90
72
|
const state = argsOrState as AiSkillState | undefined;
|
|
73
|
+
resourceInputs["allowedTools"] = state?.allowedTools;
|
|
91
74
|
resourceInputs["content"] = state?.content;
|
|
92
75
|
resourceInputs["description"] = state?.description;
|
|
93
|
-
resourceInputs["
|
|
76
|
+
resourceInputs["disableModelInvocation"] = state?.disableModelInvocation;
|
|
77
|
+
resourceInputs["files"] = state?.files;
|
|
78
|
+
resourceInputs["installedBy"] = state?.installedBy;
|
|
79
|
+
resourceInputs["message"] = state?.message;
|
|
94
80
|
resourceInputs["name"] = state?.name;
|
|
95
81
|
resourceInputs["namespace"] = state?.namespace;
|
|
96
|
-
resourceInputs["
|
|
97
|
-
resourceInputs["
|
|
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;
|
|
98
87
|
resourceInputs["tags"] = state?.tags;
|
|
99
88
|
resourceInputs["triggerCondition"] = state?.triggerCondition;
|
|
100
|
-
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
101
89
|
} else {
|
|
102
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;
|
|
103
98
|
resourceInputs["content"] = args?.content;
|
|
104
99
|
resourceInputs["description"] = args?.description;
|
|
100
|
+
resourceInputs["disableModelInvocation"] = args?.disableModelInvocation;
|
|
101
|
+
resourceInputs["files"] = args?.files;
|
|
102
|
+
resourceInputs["installedBy"] = args?.installedBy;
|
|
105
103
|
resourceInputs["name"] = args?.name;
|
|
106
|
-
resourceInputs["
|
|
107
|
-
resourceInputs["
|
|
104
|
+
resourceInputs["namespace"] = args?.namespace;
|
|
105
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
106
|
+
resourceInputs["requiredTools"] = args?.requiredTools;
|
|
107
|
+
resourceInputs["skillId"] = args?.skillId;
|
|
108
108
|
resourceInputs["tags"] = args?.tags;
|
|
109
109
|
resourceInputs["triggerCondition"] = args?.triggerCondition;
|
|
110
|
-
resourceInputs["
|
|
111
|
-
resourceInputs["
|
|
112
|
-
resourceInputs["
|
|
110
|
+
resourceInputs["message"] = undefined /*out*/;
|
|
111
|
+
resourceInputs["skill"] = undefined /*out*/;
|
|
112
|
+
resourceInputs["success"] = undefined /*out*/;
|
|
113
113
|
}
|
|
114
114
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
115
115
|
super(AiSkill.__pulumiType, name, resourceInputs, opts);
|
|
@@ -120,78 +120,51 @@ export class AiSkill extends pulumi.CustomResource {
|
|
|
120
120
|
* Input properties used for looking up and filtering AiSkill resources.
|
|
121
121
|
*/
|
|
122
122
|
export interface AiSkillState {
|
|
123
|
-
|
|
124
|
-
* Inline skill content. Conflicts with `source`.
|
|
125
|
-
*/
|
|
123
|
+
allowedTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
126
124
|
content?: pulumi.Input<string>;
|
|
127
|
-
/**
|
|
128
|
-
* Skill description
|
|
129
|
-
*/
|
|
130
125
|
description?: pulumi.Input<string>;
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* Skill name
|
|
137
|
-
*/
|
|
126
|
+
disableModelInvocation?: pulumi.Input<boolean>;
|
|
127
|
+
files?: pulumi.Input<inputs.AiSkillFiles>;
|
|
128
|
+
installedBy?: pulumi.Input<string>;
|
|
129
|
+
message?: pulumi.Input<string>;
|
|
138
130
|
name?: pulumi.Input<string>;
|
|
139
|
-
/**
|
|
140
|
-
* Skill namespace
|
|
141
|
-
*/
|
|
142
131
|
namespace?: pulumi.Input<string>;
|
|
143
132
|
/**
|
|
144
|
-
*
|
|
133
|
+
* The organisation ID
|
|
145
134
|
*/
|
|
146
|
-
|
|
135
|
+
organisation?: pulumi.Input<string>;
|
|
136
|
+
requiredTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
137
|
+
skill?: pulumi.Input<inputs.AiSkillSkill>;
|
|
147
138
|
/**
|
|
148
|
-
*
|
|
149
|
-
*/
|
|
150
|
-
source?: pulumi.Input<inputs.AiSkillSource>;
|
|
151
|
-
/**
|
|
152
|
-
* Tags for categorizing the skill
|
|
139
|
+
* The skill ID
|
|
153
140
|
*/
|
|
141
|
+
skillId?: pulumi.Input<string>;
|
|
142
|
+
success?: pulumi.Input<boolean>;
|
|
154
143
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
155
|
-
/**
|
|
156
|
-
* Condition that triggers the skill
|
|
157
|
-
*/
|
|
158
144
|
triggerCondition?: pulumi.Input<string>;
|
|
159
|
-
/**
|
|
160
|
-
* Timestamp when the skill was last updated
|
|
161
|
-
*/
|
|
162
|
-
updatedAt?: pulumi.Input<string>;
|
|
163
145
|
}
|
|
164
146
|
|
|
165
147
|
/**
|
|
166
148
|
* The set of arguments for constructing a AiSkill resource.
|
|
167
149
|
*/
|
|
168
150
|
export interface AiSkillArgs {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
*/
|
|
172
|
-
content?: pulumi.Input<string>;
|
|
173
|
-
/**
|
|
174
|
-
* Skill description
|
|
175
|
-
*/
|
|
151
|
+
allowedTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
152
|
+
content: pulumi.Input<string>;
|
|
176
153
|
description?: pulumi.Input<string>;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
154
|
+
disableModelInvocation?: pulumi.Input<boolean>;
|
|
155
|
+
files?: pulumi.Input<inputs.AiSkillFiles>;
|
|
156
|
+
installedBy?: pulumi.Input<string>;
|
|
180
157
|
name?: pulumi.Input<string>;
|
|
158
|
+
namespace?: pulumi.Input<string>;
|
|
181
159
|
/**
|
|
182
|
-
*
|
|
183
|
-
*/
|
|
184
|
-
organization?: pulumi.Input<string>;
|
|
185
|
-
/**
|
|
186
|
-
* External source for importing a skill. Conflicts with `content`.
|
|
160
|
+
* The organisation ID
|
|
187
161
|
*/
|
|
188
|
-
|
|
162
|
+
organisation?: pulumi.Input<string>;
|
|
163
|
+
requiredTools?: pulumi.Input<pulumi.Input<string>[]>;
|
|
189
164
|
/**
|
|
190
|
-
*
|
|
165
|
+
* The skill ID
|
|
191
166
|
*/
|
|
167
|
+
skillId?: pulumi.Input<string>;
|
|
192
168
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
193
|
-
|
|
194
|
-
* Condition that triggers the skill
|
|
195
|
-
*/
|
|
196
|
-
triggerCondition?: pulumi.Input<string>;
|
|
169
|
+
triggerCondition: pulumi.Input<string>;
|
|
197
170
|
}
|