@quantcdn/pulumi-quant 5.4.0 → 5.5.1
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/aiAgent.d.ts +155 -0
- package/aiAgent.js +94 -0
- package/aiAgent.js.map +1 -0
- package/aiGovernance.d.ts +77 -0
- package/aiGovernance.js +75 -0
- package/aiGovernance.js.map +1 -0
- package/aiSkill.d.ts +101 -0
- package/aiSkill.js +85 -0
- package/aiSkill.js.map +1 -0
- package/aiVectorCollection.d.ts +107 -0
- package/aiVectorCollection.js +68 -0
- package/aiVectorCollection.js.map +1 -0
- package/aiVectorDocument.d.ts +73 -0
- package/aiVectorDocument.js +70 -0
- package/aiVectorDocument.js.map +1 -0
- package/application.d.ts +189 -0
- package/application.js +85 -0
- package/application.js.map +1 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +36 -0
- package/config/vars.js +61 -0
- package/config/vars.js.map +1 -0
- package/{crawler.ts → crawler.d.ts} +45 -139
- package/crawler.js +116 -0
- package/crawler.js.map +1 -0
- package/crawlerSchedule.d.ts +156 -0
- package/crawlerSchedule.js +74 -0
- package/crawlerSchedule.js.map +1 -0
- package/cronJob.d.ts +102 -0
- package/cronJob.js +73 -0
- package/cronJob.js.map +1 -0
- package/{domain.ts → domain.d.ts} +10 -56
- package/domain.js +62 -0
- package/domain.js.map +1 -0
- package/environment.d.ts +313 -0
- package/environment.js +110 -0
- package/environment.js.map +1 -0
- package/getProject.d.ts +34 -0
- package/getProject.js +24 -0
- package/getProject.js.map +1 -0
- package/getProjects.d.ts +14 -0
- package/getProjects.js +18 -0
- package/getProjects.js.map +1 -0
- package/header.d.ts +60 -0
- package/header.js +59 -0
- package/header.js.map +1 -0
- package/index.d.ts +88 -0
- package/index.js +158 -0
- package/index.js.map +1 -0
- package/{kvItem.ts → kvItem.d.ts} +11 -62
- package/kvItem.js +67 -0
- package/kvItem.js.map +1 -0
- package/kvStore.d.ts +75 -0
- package/kvStore.js +55 -0
- package/kvStore.js.map +1 -0
- package/package.json +32 -30
- package/project.d.ts +175 -0
- package/project.js +73 -0
- package/project.js.map +1 -0
- package/{provider.ts → provider.d.ts} +12 -51
- package/provider.js +63 -0
- package/provider.js.map +1 -0
- package/{ruleAuth.ts → ruleAuth.d.ts} +31 -128
- package/ruleAuth.js +113 -0
- package/ruleAuth.js.map +1 -0
- package/{ruleBotChallenge.ts → ruleBotChallenge.d.ts} +32 -128
- package/ruleBotChallenge.js +112 -0
- package/ruleBotChallenge.js.map +1 -0
- package/{ruleContentFilter.ts → ruleContentFilter.d.ts} +30 -122
- package/ruleContentFilter.js +108 -0
- package/ruleContentFilter.js.map +1 -0
- package/{ruleCustomResponse.ts → ruleCustomResponse.d.ts} +33 -131
- package/ruleCustomResponse.js +114 -0
- package/ruleCustomResponse.js.map +1 -0
- package/{ruleFunction.ts → ruleFunction.d.ts} +30 -122
- package/ruleFunction.js +108 -0
- package/ruleFunction.js.map +1 -0
- package/{ruleHeaders.ts → ruleHeaders.d.ts} +38 -124
- package/ruleHeaders.js +108 -0
- package/ruleHeaders.js.map +1 -0
- package/{ruleProxy.ts → ruleProxy.d.ts} +62 -196
- package/ruleProxy.js +156 -0
- package/ruleProxy.js.map +1 -0
- package/{ruleRedirect.ts → ruleRedirect.d.ts} +31 -125
- package/ruleRedirect.js +110 -0
- package/ruleRedirect.js.map +1 -0
- package/{ruleServeStatic.ts → ruleServeStatic.d.ts} +30 -122
- package/ruleServeStatic.js +108 -0
- package/ruleServeStatic.js.map +1 -0
- package/{slackBot.ts → slackBot.d.ts} +14 -71
- package/slackBot.js +73 -0
- package/slackBot.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/{input.ts → input.d.ts} +6 -78
- package/{config/index.ts → types/input.js} +3 -3
- package/types/input.js.map +1 -0
- package/types/{output.ts → output.d.ts} +6 -81
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +4 -0
- package/{utilities.ts → utilities.js} +23 -28
- package/utilities.js.map +1 -0
- package/volume.d.ts +130 -0
- package/volume.js +74 -0
- package/volume.js.map +1 -0
- package/.gitattributes +0 -1
- package/aiAgent.ts +0 -233
- package/aiGovernance.ts +0 -136
- package/aiSkill.ts +0 -170
- package/aiVectorCollection.ts +0 -159
- package/aiVectorDocument.ts +0 -127
- package/application.ts +0 -258
- package/config/vars.ts +0 -108
- package/crawlerSchedule.ts +0 -214
- package/cronJob.ts +0 -159
- package/environment.ts +0 -407
- package/getProject.ts +0 -54
- package/getProjects.ts +0 -29
- package/header.ts +0 -97
- package/index.ts +0 -231
- package/kvStore.ts +0 -114
- package/project.ts +0 -232
- package/tsconfig.json +0 -53
- package/types/index.ts +0 -13
- package/volume.ts +0 -188
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.RuleServeStatic = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class RuleServeStatic extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing RuleServeStatic resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new RuleServeStatic(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of RuleServeStatic. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === RuleServeStatic.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["action"] = state?.action;
|
|
37
|
+
resourceInputs["actionConfig"] = state?.actionConfig;
|
|
38
|
+
resourceInputs["asn"] = state?.asn;
|
|
39
|
+
resourceInputs["asnIs"] = state?.asnIs;
|
|
40
|
+
resourceInputs["asnIsNots"] = state?.asnIsNots;
|
|
41
|
+
resourceInputs["country"] = state?.country;
|
|
42
|
+
resourceInputs["countryIs"] = state?.countryIs;
|
|
43
|
+
resourceInputs["countryIsNots"] = state?.countryIsNots;
|
|
44
|
+
resourceInputs["disabled"] = state?.disabled;
|
|
45
|
+
resourceInputs["domains"] = state?.domains;
|
|
46
|
+
resourceInputs["ip"] = state?.ip;
|
|
47
|
+
resourceInputs["ipIs"] = state?.ipIs;
|
|
48
|
+
resourceInputs["ipIsNots"] = state?.ipIsNots;
|
|
49
|
+
resourceInputs["method"] = state?.method;
|
|
50
|
+
resourceInputs["methodIs"] = state?.methodIs;
|
|
51
|
+
resourceInputs["methodIsNots"] = state?.methodIsNots;
|
|
52
|
+
resourceInputs["name"] = state?.name;
|
|
53
|
+
resourceInputs["onlyWithCookie"] = state?.onlyWithCookie;
|
|
54
|
+
resourceInputs["organization"] = state?.organization;
|
|
55
|
+
resourceInputs["project"] = state?.project;
|
|
56
|
+
resourceInputs["rule"] = state?.rule;
|
|
57
|
+
resourceInputs["ruleId"] = state?.ruleId;
|
|
58
|
+
resourceInputs["staticFilePath"] = state?.staticFilePath;
|
|
59
|
+
resourceInputs["urls"] = state?.urls;
|
|
60
|
+
resourceInputs["uuid"] = state?.uuid;
|
|
61
|
+
resourceInputs["weight"] = state?.weight;
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
const args = argsOrState;
|
|
65
|
+
if (args?.domains === undefined && !opts.urn) {
|
|
66
|
+
throw new Error("Missing required property 'domains'");
|
|
67
|
+
}
|
|
68
|
+
if (args?.staticFilePath === undefined && !opts.urn) {
|
|
69
|
+
throw new Error("Missing required property 'staticFilePath'");
|
|
70
|
+
}
|
|
71
|
+
if (args?.urls === undefined && !opts.urn) {
|
|
72
|
+
throw new Error("Missing required property 'urls'");
|
|
73
|
+
}
|
|
74
|
+
resourceInputs["asn"] = args?.asn;
|
|
75
|
+
resourceInputs["asnIs"] = args?.asnIs;
|
|
76
|
+
resourceInputs["asnIsNots"] = args?.asnIsNots;
|
|
77
|
+
resourceInputs["country"] = args?.country;
|
|
78
|
+
resourceInputs["countryIs"] = args?.countryIs;
|
|
79
|
+
resourceInputs["countryIsNots"] = args?.countryIsNots;
|
|
80
|
+
resourceInputs["disabled"] = args?.disabled;
|
|
81
|
+
resourceInputs["domains"] = args?.domains;
|
|
82
|
+
resourceInputs["ip"] = args?.ip;
|
|
83
|
+
resourceInputs["ipIs"] = args?.ipIs;
|
|
84
|
+
resourceInputs["ipIsNots"] = args?.ipIsNots;
|
|
85
|
+
resourceInputs["method"] = args?.method;
|
|
86
|
+
resourceInputs["methodIs"] = args?.methodIs;
|
|
87
|
+
resourceInputs["methodIsNots"] = args?.methodIsNots;
|
|
88
|
+
resourceInputs["name"] = args?.name;
|
|
89
|
+
resourceInputs["organization"] = args?.organization;
|
|
90
|
+
resourceInputs["project"] = args?.project;
|
|
91
|
+
resourceInputs["rule"] = args?.rule;
|
|
92
|
+
resourceInputs["staticFilePath"] = args?.staticFilePath;
|
|
93
|
+
resourceInputs["urls"] = args?.urls;
|
|
94
|
+
resourceInputs["uuid"] = args?.uuid;
|
|
95
|
+
resourceInputs["weight"] = args?.weight;
|
|
96
|
+
resourceInputs["action"] = undefined /*out*/;
|
|
97
|
+
resourceInputs["actionConfig"] = undefined /*out*/;
|
|
98
|
+
resourceInputs["onlyWithCookie"] = undefined /*out*/;
|
|
99
|
+
resourceInputs["ruleId"] = undefined /*out*/;
|
|
100
|
+
}
|
|
101
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
102
|
+
super(RuleServeStatic.__pulumiType, name, resourceInputs, opts);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.RuleServeStatic = RuleServeStatic;
|
|
106
|
+
/** @internal */
|
|
107
|
+
RuleServeStatic.__pulumiType = 'quant:index:RuleServeStatic';
|
|
108
|
+
//# sourceMappingURL=ruleServeStatic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruleServeStatic.js","sourceRoot":"","sources":["../ruleServeStatic.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAgHD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,c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C,OAAO,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAChD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAjNL,0CAkNC;AApMG,gBAAgB;AACO,4BAAY,GAAG,6BAA6B,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
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
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
5
2
|
import * as inputs from "./types/input";
|
|
6
3
|
import * as outputs from "./types/output";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export class SlackBot extends pulumi.CustomResource {
|
|
4
|
+
export declare class SlackBot extends pulumi.CustomResource {
|
|
10
5
|
/**
|
|
11
6
|
* Get an existing SlackBot resource's state with the given name, ID, and optional extra
|
|
12
7
|
* properties used to qualify the lookup.
|
|
@@ -16,62 +11,49 @@ export class SlackBot extends pulumi.CustomResource {
|
|
|
16
11
|
* @param state Any extra arguments used during the lookup.
|
|
17
12
|
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
18
13
|
*/
|
|
19
|
-
|
|
20
|
-
return new SlackBot(name, <any>state, { ...opts, id: id });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
public static readonly __pulumiType = 'quant:index:SlackBot';
|
|
25
|
-
|
|
14
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SlackBotState, opts?: pulumi.CustomResourceOptions): SlackBot;
|
|
26
15
|
/**
|
|
27
16
|
* Returns true if the given object is an instance of SlackBot. This is designed to work even
|
|
28
17
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
29
18
|
*/
|
|
30
|
-
|
|
31
|
-
if (obj === undefined || obj === null) {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
return obj['__pulumiType'] === SlackBot.__pulumiType;
|
|
35
|
-
}
|
|
36
|
-
|
|
19
|
+
static isInstance(obj: any): obj is SlackBot;
|
|
37
20
|
/**
|
|
38
21
|
* The AI agent that powers this bot
|
|
39
22
|
*/
|
|
40
|
-
|
|
23
|
+
readonly agentId: pulumi.Output<string>;
|
|
41
24
|
/**
|
|
42
25
|
* Slack channel IDs the bot may respond in
|
|
43
26
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
27
|
+
readonly allowedChannels: pulumi.Output<string[]>;
|
|
28
|
+
readonly bot: pulumi.Output<outputs.SlackBotBot>;
|
|
46
29
|
/**
|
|
47
30
|
* The Slack bot ID
|
|
48
31
|
*/
|
|
49
|
-
|
|
32
|
+
readonly botId: pulumi.Output<string>;
|
|
50
33
|
/**
|
|
51
34
|
* Keywords that trigger the bot
|
|
52
35
|
*/
|
|
53
|
-
|
|
36
|
+
readonly keywords: pulumi.Output<string[]>;
|
|
54
37
|
/**
|
|
55
38
|
* Whether keyword triggers are enabled
|
|
56
39
|
*/
|
|
57
|
-
|
|
40
|
+
readonly keywordsEnabled: pulumi.Output<boolean>;
|
|
58
41
|
/**
|
|
59
42
|
* The organisation ID
|
|
60
43
|
*/
|
|
61
|
-
|
|
44
|
+
readonly organisation: pulumi.Output<string>;
|
|
62
45
|
/**
|
|
63
46
|
* Session TTL in days
|
|
64
47
|
*/
|
|
65
|
-
|
|
48
|
+
readonly sessionTtlDays: pulumi.Output<number>;
|
|
66
49
|
/**
|
|
67
50
|
* Whether to use Quant-managed or customer-provided Slack app
|
|
68
51
|
*/
|
|
69
|
-
|
|
52
|
+
readonly setupType: pulumi.Output<string>;
|
|
70
53
|
/**
|
|
71
54
|
* Slash commands the bot responds to
|
|
72
55
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
56
|
+
readonly slashCommands: pulumi.Output<string[]>;
|
|
75
57
|
/**
|
|
76
58
|
* Create a SlackBot resource with the given unique name, arguments, and options.
|
|
77
59
|
*
|
|
@@ -79,46 +61,8 @@ export class SlackBot extends pulumi.CustomResource {
|
|
|
79
61
|
* @param args The arguments to use to populate this resource's properties.
|
|
80
62
|
* @param opts A bag of options that control this resource's behavior.
|
|
81
63
|
*/
|
|
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
|
-
}
|
|
64
|
+
constructor(name: string, args: SlackBotArgs, opts?: pulumi.CustomResourceOptions);
|
|
120
65
|
}
|
|
121
|
-
|
|
122
66
|
/**
|
|
123
67
|
* Input properties used for looking up and filtering SlackBot resources.
|
|
124
68
|
*/
|
|
@@ -161,7 +105,6 @@ export interface SlackBotState {
|
|
|
161
105
|
*/
|
|
162
106
|
slashCommands?: pulumi.Input<pulumi.Input<string>[]>;
|
|
163
107
|
}
|
|
164
|
-
|
|
165
108
|
/**
|
|
166
109
|
* The set of arguments for constructing a SlackBot resource.
|
|
167
110
|
*/
|
package/slackBot.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.SlackBot = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
class SlackBot extends pulumi.CustomResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get an existing SlackBot resource's state with the given name, ID, and optional extra
|
|
11
|
+
* properties used to qualify the lookup.
|
|
12
|
+
*
|
|
13
|
+
* @param name The _unique_ name of the resulting resource.
|
|
14
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
15
|
+
* @param state Any extra arguments used during the lookup.
|
|
16
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
17
|
+
*/
|
|
18
|
+
static get(name, id, state, opts) {
|
|
19
|
+
return new SlackBot(name, state, { ...opts, id: id });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Returns true if the given object is an instance of SlackBot. This is designed to work even
|
|
23
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
24
|
+
*/
|
|
25
|
+
static isInstance(obj) {
|
|
26
|
+
if (obj === undefined || obj === null) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
return obj['__pulumiType'] === SlackBot.__pulumiType;
|
|
30
|
+
}
|
|
31
|
+
constructor(name, argsOrState, opts) {
|
|
32
|
+
let resourceInputs = {};
|
|
33
|
+
opts = opts || {};
|
|
34
|
+
if (opts.id) {
|
|
35
|
+
const state = argsOrState;
|
|
36
|
+
resourceInputs["agentId"] = state?.agentId;
|
|
37
|
+
resourceInputs["allowedChannels"] = state?.allowedChannels;
|
|
38
|
+
resourceInputs["bot"] = state?.bot;
|
|
39
|
+
resourceInputs["botId"] = state?.botId;
|
|
40
|
+
resourceInputs["keywords"] = state?.keywords;
|
|
41
|
+
resourceInputs["keywordsEnabled"] = state?.keywordsEnabled;
|
|
42
|
+
resourceInputs["organisation"] = state?.organisation;
|
|
43
|
+
resourceInputs["sessionTtlDays"] = state?.sessionTtlDays;
|
|
44
|
+
resourceInputs["setupType"] = state?.setupType;
|
|
45
|
+
resourceInputs["slashCommands"] = state?.slashCommands;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
const args = argsOrState;
|
|
49
|
+
if (args?.agentId === undefined && !opts.urn) {
|
|
50
|
+
throw new Error("Missing required property 'agentId'");
|
|
51
|
+
}
|
|
52
|
+
if (args?.setupType === undefined && !opts.urn) {
|
|
53
|
+
throw new Error("Missing required property 'setupType'");
|
|
54
|
+
}
|
|
55
|
+
resourceInputs["agentId"] = args?.agentId;
|
|
56
|
+
resourceInputs["allowedChannels"] = args?.allowedChannels;
|
|
57
|
+
resourceInputs["botId"] = args?.botId;
|
|
58
|
+
resourceInputs["keywords"] = args?.keywords;
|
|
59
|
+
resourceInputs["keywordsEnabled"] = args?.keywordsEnabled;
|
|
60
|
+
resourceInputs["organisation"] = args?.organisation;
|
|
61
|
+
resourceInputs["sessionTtlDays"] = args?.sessionTtlDays;
|
|
62
|
+
resourceInputs["setupType"] = args?.setupType;
|
|
63
|
+
resourceInputs["slashCommands"] = args?.slashCommands;
|
|
64
|
+
resourceInputs["bot"] = undefined /*out*/;
|
|
65
|
+
}
|
|
66
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
67
|
+
super(SlackBot.__pulumiType, name, resourceInputs, opts);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.SlackBot = SlackBot;
|
|
71
|
+
/** @internal */
|
|
72
|
+
SlackBot.__pulumiType = 'quant:index:SlackBot';
|
|
73
|
+
//# sourceMappingURL=slackBot.js.map
|
package/slackBot.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slackBot.js","sourceRoot":"","sources":["../slackBot.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GA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I,CAAC,GAAG,EAAE;gBAC5C,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;aAC5D;YACD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC;YACtC,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;YACxD,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,EAAE,aAAa,CAAC;YACtD,cAAc,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC7C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;;AA9GL,4BA+GC;AAjGG,gBAAgB;AACO,qBAAY,GAAG,sBAAsB,CAAC"}
|
package/types/index.d.ts
ADDED
package/types/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.output = exports.input = void 0;
|
|
6
|
+
// Export sub-modules:
|
|
7
|
+
const input = require("./input");
|
|
8
|
+
exports.input = input;
|
|
9
|
+
const output = require("./output");
|
|
10
|
+
exports.output = output;
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAIjF,sBAAsB;AACtB,iCAAiC;AAI7B,sBAAK;AAHT,mCAAmC;AAI/B,wBAAM"}
|