@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/slackBot.ts ADDED
@@ -0,0 +1,205 @@
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 SlackBot extends pulumi.CustomResource {
10
+ /**
11
+ * Get an existing SlackBot 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?: SlackBotState, opts?: pulumi.CustomResourceOptions): SlackBot {
20
+ return new SlackBot(name, <any>state, { ...opts, id: id });
21
+ }
22
+
23
+ /** @internal */
24
+ public static readonly __pulumiType = 'quant:index:SlackBot';
25
+
26
+ /**
27
+ * Returns true if the given object is an instance of SlackBot. 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 SlackBot {
31
+ if (obj === undefined || obj === null) {
32
+ return false;
33
+ }
34
+ return obj['__pulumiType'] === SlackBot.__pulumiType;
35
+ }
36
+
37
+ /**
38
+ * The AI agent that powers this bot
39
+ */
40
+ declare public readonly agentId: pulumi.Output<string>;
41
+ /**
42
+ * Slack channel IDs the bot may respond in
43
+ */
44
+ declare public readonly allowedChannels: pulumi.Output<string[]>;
45
+ declare public /*out*/ readonly bot: pulumi.Output<outputs.SlackBotBot>;
46
+ /**
47
+ * The Slack bot ID
48
+ */
49
+ declare public readonly botId: pulumi.Output<string>;
50
+ /**
51
+ * Keywords that trigger the bot
52
+ */
53
+ declare public readonly keywords: pulumi.Output<string[]>;
54
+ /**
55
+ * Whether keyword triggers are enabled
56
+ */
57
+ declare public readonly keywordsEnabled: pulumi.Output<boolean>;
58
+ /**
59
+ * The organisation ID
60
+ */
61
+ declare public readonly organisation: pulumi.Output<string>;
62
+ /**
63
+ * Session TTL in days
64
+ */
65
+ declare public readonly sessionTtlDays: pulumi.Output<number>;
66
+ /**
67
+ * Whether to use Quant-managed or customer-provided Slack app
68
+ */
69
+ declare public readonly setupType: pulumi.Output<string>;
70
+ /**
71
+ * Slash commands the bot responds to
72
+ */
73
+ declare public readonly slashCommands: pulumi.Output<string[]>;
74
+
75
+ /**
76
+ * Create a SlackBot resource with the given unique name, arguments, and options.
77
+ *
78
+ * @param name The _unique_ name of the resource.
79
+ * @param args The arguments to use to populate this resource's properties.
80
+ * @param opts A bag of options that control this resource's behavior.
81
+ */
82
+ constructor(name: string, args: SlackBotArgs, opts?: pulumi.CustomResourceOptions)
83
+ constructor(name: string, argsOrState?: SlackBotArgs | SlackBotState, opts?: pulumi.CustomResourceOptions) {
84
+ let resourceInputs: pulumi.Inputs = {};
85
+ opts = opts || {};
86
+ if (opts.id) {
87
+ const state = argsOrState as SlackBotState | undefined;
88
+ resourceInputs["agentId"] = state?.agentId;
89
+ resourceInputs["allowedChannels"] = state?.allowedChannels;
90
+ resourceInputs["bot"] = state?.bot;
91
+ resourceInputs["botId"] = state?.botId;
92
+ resourceInputs["keywords"] = state?.keywords;
93
+ resourceInputs["keywordsEnabled"] = state?.keywordsEnabled;
94
+ resourceInputs["organisation"] = state?.organisation;
95
+ resourceInputs["sessionTtlDays"] = state?.sessionTtlDays;
96
+ resourceInputs["setupType"] = state?.setupType;
97
+ resourceInputs["slashCommands"] = state?.slashCommands;
98
+ } else {
99
+ const args = argsOrState as SlackBotArgs | undefined;
100
+ if (args?.agentId === undefined && !opts.urn) {
101
+ throw new Error("Missing required property 'agentId'");
102
+ }
103
+ if (args?.setupType === undefined && !opts.urn) {
104
+ throw new Error("Missing required property 'setupType'");
105
+ }
106
+ resourceInputs["agentId"] = args?.agentId;
107
+ resourceInputs["allowedChannels"] = args?.allowedChannels;
108
+ resourceInputs["botId"] = args?.botId;
109
+ resourceInputs["keywords"] = args?.keywords;
110
+ resourceInputs["keywordsEnabled"] = args?.keywordsEnabled;
111
+ resourceInputs["organisation"] = args?.organisation;
112
+ resourceInputs["sessionTtlDays"] = args?.sessionTtlDays;
113
+ resourceInputs["setupType"] = args?.setupType;
114
+ resourceInputs["slashCommands"] = args?.slashCommands;
115
+ resourceInputs["bot"] = undefined /*out*/;
116
+ }
117
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
118
+ super(SlackBot.__pulumiType, name, resourceInputs, opts);
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Input properties used for looking up and filtering SlackBot resources.
124
+ */
125
+ export interface SlackBotState {
126
+ /**
127
+ * The AI agent that powers this bot
128
+ */
129
+ agentId?: pulumi.Input<string>;
130
+ /**
131
+ * Slack channel IDs the bot may respond in
132
+ */
133
+ allowedChannels?: pulumi.Input<pulumi.Input<string>[]>;
134
+ bot?: pulumi.Input<inputs.SlackBotBot>;
135
+ /**
136
+ * The Slack bot ID
137
+ */
138
+ botId?: pulumi.Input<string>;
139
+ /**
140
+ * Keywords that trigger the bot
141
+ */
142
+ keywords?: pulumi.Input<pulumi.Input<string>[]>;
143
+ /**
144
+ * Whether keyword triggers are enabled
145
+ */
146
+ keywordsEnabled?: pulumi.Input<boolean>;
147
+ /**
148
+ * The organisation ID
149
+ */
150
+ organisation?: pulumi.Input<string>;
151
+ /**
152
+ * Session TTL in days
153
+ */
154
+ sessionTtlDays?: pulumi.Input<number>;
155
+ /**
156
+ * Whether to use Quant-managed or customer-provided Slack app
157
+ */
158
+ setupType?: pulumi.Input<string>;
159
+ /**
160
+ * Slash commands the bot responds to
161
+ */
162
+ slashCommands?: pulumi.Input<pulumi.Input<string>[]>;
163
+ }
164
+
165
+ /**
166
+ * The set of arguments for constructing a SlackBot resource.
167
+ */
168
+ export interface SlackBotArgs {
169
+ /**
170
+ * The AI agent that powers this bot
171
+ */
172
+ agentId: pulumi.Input<string>;
173
+ /**
174
+ * Slack channel IDs the bot may respond in
175
+ */
176
+ allowedChannels?: pulumi.Input<pulumi.Input<string>[]>;
177
+ /**
178
+ * The Slack bot ID
179
+ */
180
+ botId?: pulumi.Input<string>;
181
+ /**
182
+ * Keywords that trigger the bot
183
+ */
184
+ keywords?: pulumi.Input<pulumi.Input<string>[]>;
185
+ /**
186
+ * Whether keyword triggers are enabled
187
+ */
188
+ keywordsEnabled?: pulumi.Input<boolean>;
189
+ /**
190
+ * The organisation ID
191
+ */
192
+ organisation?: pulumi.Input<string>;
193
+ /**
194
+ * Session TTL in days
195
+ */
196
+ sessionTtlDays?: pulumi.Input<number>;
197
+ /**
198
+ * Whether to use Quant-managed or customer-provided Slack app
199
+ */
200
+ setupType: pulumi.Input<string>;
201
+ /**
202
+ * Slash commands the bot responds to
203
+ */
204
+ slashCommands?: pulumi.Input<pulumi.Input<string>[]>;
205
+ }
package/tsconfig.json CHANGED
@@ -13,6 +13,7 @@
13
13
  "strict": true
14
14
  },
15
15
  "files": [
16
+ "aiAgent.ts",
16
17
  "aiGovernance.ts",
17
18
  "aiSkill.ts",
18
19
  "aiVectorCollection.ts",
@@ -42,6 +43,7 @@
42
43
  "ruleProxy.ts",
43
44
  "ruleRedirect.ts",
44
45
  "ruleServeStatic.ts",
46
+ "slackBot.ts",
45
47
  "types/index.ts",
46
48
  "types/input.ts",
47
49
  "types/output.ts",