@pulumi/auth0 3.56.0-alpha.1793841218 → 3.56.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/client.d.ts +8 -0
- package/client.d.ts.map +1 -1
- package/client.js +2 -0
- package/client.js.map +1 -1
- package/clientCimd.d.ts +51 -18
- package/clientCimd.d.ts.map +1 -1
- package/clientCimd.js +11 -4
- package/clientCimd.js.map +1 -1
- package/clientProfile.d.ts +179 -0
- package/clientProfile.d.ts.map +1 -0
- package/clientProfile.js +160 -0
- package/clientProfile.js.map +1 -0
- package/experiment.d.ts +315 -0
- package/experiment.d.ts.map +1 -0
- package/experiment.js +213 -0
- package/experiment.js.map +1 -0
- package/experimentFeatureFlag.d.ts +228 -0
- package/experimentFeatureFlag.d.ts.map +1 -0
- package/experimentFeatureFlag.js +186 -0
- package/experimentFeatureFlag.js.map +1 -0
- package/experimentSegment.d.ts +197 -0
- package/experimentSegment.d.ts.map +1 -0
- package/experimentSegment.js +175 -0
- package/experimentSegment.js.map +1 -0
- package/getClient.d.ts +4 -0
- package/getClient.d.ts.map +1 -1
- package/getClient.js.map +1 -1
- package/getClientProfile.d.ts +86 -0
- package/getClientProfile.d.ts.map +1 -0
- package/getClientProfile.js +75 -0
- package/getClientProfile.js.map +1 -0
- package/getClients.d.ts +8 -0
- package/getClients.d.ts.map +1 -1
- package/getClients.js +8 -0
- package/getClients.js.map +1 -1
- package/getExperiment.d.ts +134 -0
- package/getExperiment.d.ts.map +1 -0
- package/getExperiment.js +75 -0
- package/getExperiment.js.map +1 -0
- package/getExperimentFeatureFlag.d.ts +102 -0
- package/getExperimentFeatureFlag.d.ts.map +1 -0
- package/getExperimentFeatureFlag.js +77 -0
- package/getExperimentFeatureFlag.js.map +1 -0
- package/getExperimentSegment.d.ts +90 -0
- package/getExperimentSegment.d.ts.map +1 -0
- package/getExperimentSegment.js +75 -0
- package/getExperimentSegment.js.map +1 -0
- package/getResourceServer.d.ts +4 -0
- package/getResourceServer.d.ts.map +1 -1
- package/getResourceServer.js.map +1 -1
- package/getTenant.d.ts +4 -0
- package/getTenant.d.ts.map +1 -1
- package/getTenant.js.map +1 -1
- package/getUser.d.ts +1 -1
- package/index.d.ts +24 -0
- package/index.d.ts.map +1 -1
- package/index.js +36 -4
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/resourceServer.d.ts +12 -0
- package/resourceServer.d.ts.map +1 -1
- package/resourceServer.js +2 -0
- package/resourceServer.js.map +1 -1
- package/tenant.d.ts +12 -0
- package/tenant.d.ts.map +1 -1
- package/tenant.js +2 -0
- package/tenant.js.map +1 -1
- package/types/input.d.ts +856 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +3732 -2016
- package/types/output.d.ts.map +1 -1
- package/user.d.ts +42 -3
- package/user.d.ts.map +1 -1
- package/user.js +17 -1
- package/user.js.map +1 -1
package/experiment.js
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
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
|
+
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.Experiment = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Create and manage an Experiment Center experiment. (EA only)
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
39
|
+
*
|
|
40
|
+
* const loginUi = new auth0.ExperimentFeatureFlag("login_ui", {
|
|
41
|
+
* parameters: [{
|
|
42
|
+
* name: "show_new_login",
|
|
43
|
+
* type: "boolean",
|
|
44
|
+
* value: "false",
|
|
45
|
+
* }],
|
|
46
|
+
* variations: [
|
|
47
|
+
* {
|
|
48
|
+
* name: "control",
|
|
49
|
+
* },
|
|
50
|
+
* {
|
|
51
|
+
* overrides: [{
|
|
52
|
+
* name: "show_new_login",
|
|
53
|
+
* type: "boolean",
|
|
54
|
+
* value: "true",
|
|
55
|
+
* }],
|
|
56
|
+
* name: "new-login",
|
|
57
|
+
* },
|
|
58
|
+
* ],
|
|
59
|
+
* name: "new-login-ui",
|
|
60
|
+
* description: "Controls whether the new login UI is shown.",
|
|
61
|
+
* status: "active",
|
|
62
|
+
* });
|
|
63
|
+
* // Percentage strategy: split traffic between variations by weight.
|
|
64
|
+
* const percentage = new auth0.Experiment("percentage", {
|
|
65
|
+
* allocations: [
|
|
66
|
+
* {
|
|
67
|
+
* variationId: loginUi.variationIds.control,
|
|
68
|
+
* isControl: true,
|
|
69
|
+
* weight: 50,
|
|
70
|
+
* },
|
|
71
|
+
* {
|
|
72
|
+
* variationId: loginUi.variationIds["new-login"],
|
|
73
|
+
* isControl: false,
|
|
74
|
+
* weight: 50,
|
|
75
|
+
* },
|
|
76
|
+
* ],
|
|
77
|
+
* name: "login-ui-percentage-test",
|
|
78
|
+
* description: "Show the new login UI to half of the traffic.",
|
|
79
|
+
* featureFlagId: loginUi.id,
|
|
80
|
+
* authenticationFlow: "authentication",
|
|
81
|
+
* allocationStrategy: "percentage",
|
|
82
|
+
* status: "draft",
|
|
83
|
+
* });
|
|
84
|
+
* const usTraffic = new auth0.ExperimentSegment("us_traffic", {
|
|
85
|
+
* rules: [{
|
|
86
|
+
* match: {
|
|
87
|
+
* country: {
|
|
88
|
+
* contains: ["US"],
|
|
89
|
+
* },
|
|
90
|
+
* },
|
|
91
|
+
* }],
|
|
92
|
+
* name: "us-traffic",
|
|
93
|
+
* });
|
|
94
|
+
* // Segment strategy: route each segment to a variation; other traffic gets the
|
|
95
|
+
* // fallback allocation.
|
|
96
|
+
* const segment = new auth0.Experiment("segment", {
|
|
97
|
+
* allocations: [
|
|
98
|
+
* {
|
|
99
|
+
* variationId: loginUi.variationIds.control,
|
|
100
|
+
* isControl: true,
|
|
101
|
+
* segmentId: usTraffic.id,
|
|
102
|
+
* priority: 1,
|
|
103
|
+
* },
|
|
104
|
+
* {
|
|
105
|
+
* variationId: loginUi.variationIds["new-login"],
|
|
106
|
+
* isControl: false,
|
|
107
|
+
* isFallback: true,
|
|
108
|
+
* },
|
|
109
|
+
* ],
|
|
110
|
+
* name: "login-ui-segment-test",
|
|
111
|
+
* description: "Keep US traffic on the current login UI and show the new UI elsewhere.",
|
|
112
|
+
* featureFlagId: loginUi.id,
|
|
113
|
+
* authenticationFlow: "mfa_challenge",
|
|
114
|
+
* allocationStrategy: "segment",
|
|
115
|
+
* status: "draft",
|
|
116
|
+
* });
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
class Experiment extends pulumi.CustomResource {
|
|
120
|
+
/**
|
|
121
|
+
* Get an existing Experiment resource's state with the given name, ID, and optional extra
|
|
122
|
+
* properties used to qualify the lookup.
|
|
123
|
+
*
|
|
124
|
+
* @param name The _unique_ name of the resulting resource.
|
|
125
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
126
|
+
* @param state Any extra arguments used during the lookup.
|
|
127
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
128
|
+
*/
|
|
129
|
+
static get(name, id, state, opts) {
|
|
130
|
+
return new Experiment(name, state, { ...opts, id: id });
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Check whether an existing Experiment resource with the given ID exists.
|
|
134
|
+
*
|
|
135
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
136
|
+
* @param state Any extra arguments used during the lookup.
|
|
137
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
138
|
+
*/
|
|
139
|
+
static exists(id, state, opts) {
|
|
140
|
+
return pulumi.runtime.existsResource("auth0:index/experiment:Experiment", id, state || {}, { ...opts }, undefined);
|
|
141
|
+
}
|
|
142
|
+
/** @internal */
|
|
143
|
+
static __pulumiType = 'auth0:index/experiment:Experiment';
|
|
144
|
+
/**
|
|
145
|
+
* Returns true if the given object is an instance of Experiment. This is designed to work even
|
|
146
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
147
|
+
*/
|
|
148
|
+
static isInstance(obj) {
|
|
149
|
+
if (obj === undefined || obj === null) {
|
|
150
|
+
return false;
|
|
151
|
+
}
|
|
152
|
+
return obj['__pulumiType'] === Experiment.__pulumiType;
|
|
153
|
+
}
|
|
154
|
+
constructor(name, argsOrState, opts) {
|
|
155
|
+
let resourceInputs = {};
|
|
156
|
+
opts = opts || {};
|
|
157
|
+
if (opts.id) {
|
|
158
|
+
const state = argsOrState;
|
|
159
|
+
resourceInputs["allocationStrategy"] = state?.allocationStrategy;
|
|
160
|
+
resourceInputs["allocations"] = state?.allocations;
|
|
161
|
+
resourceInputs["authenticationFlow"] = state?.authenticationFlow;
|
|
162
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
163
|
+
resourceInputs["currentLevel"] = state?.currentLevel;
|
|
164
|
+
resourceInputs["defaultConfig"] = state?.defaultConfig;
|
|
165
|
+
resourceInputs["description"] = state?.description;
|
|
166
|
+
resourceInputs["editableFields"] = state?.editableFields;
|
|
167
|
+
resourceInputs["endedAt"] = state?.endedAt;
|
|
168
|
+
resourceInputs["featureFlagId"] = state?.featureFlagId;
|
|
169
|
+
resourceInputs["featureFlagName"] = state?.featureFlagName;
|
|
170
|
+
resourceInputs["featureFlagSnapshot"] = state?.featureFlagSnapshot;
|
|
171
|
+
resourceInputs["isValid"] = state?.isValid;
|
|
172
|
+
resourceInputs["levels"] = state?.levels;
|
|
173
|
+
resourceInputs["name"] = state?.name;
|
|
174
|
+
resourceInputs["startedAt"] = state?.startedAt;
|
|
175
|
+
resourceInputs["status"] = state?.status;
|
|
176
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
const args = argsOrState;
|
|
180
|
+
if (args?.allocationStrategy === undefined && !opts.urn) {
|
|
181
|
+
throw new Error("Missing required property 'allocationStrategy'");
|
|
182
|
+
}
|
|
183
|
+
if (args?.authenticationFlow === undefined && !opts.urn) {
|
|
184
|
+
throw new Error("Missing required property 'authenticationFlow'");
|
|
185
|
+
}
|
|
186
|
+
if (args?.featureFlagId === undefined && !opts.urn) {
|
|
187
|
+
throw new Error("Missing required property 'featureFlagId'");
|
|
188
|
+
}
|
|
189
|
+
resourceInputs["allocationStrategy"] = args?.allocationStrategy;
|
|
190
|
+
resourceInputs["allocations"] = args?.allocations;
|
|
191
|
+
resourceInputs["authenticationFlow"] = args?.authenticationFlow;
|
|
192
|
+
resourceInputs["defaultConfig"] = args?.defaultConfig;
|
|
193
|
+
resourceInputs["description"] = args?.description;
|
|
194
|
+
resourceInputs["featureFlagId"] = args?.featureFlagId;
|
|
195
|
+
resourceInputs["levels"] = args?.levels;
|
|
196
|
+
resourceInputs["name"] = args?.name;
|
|
197
|
+
resourceInputs["status"] = args?.status;
|
|
198
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
199
|
+
resourceInputs["currentLevel"] = undefined /*out*/;
|
|
200
|
+
resourceInputs["editableFields"] = undefined /*out*/;
|
|
201
|
+
resourceInputs["endedAt"] = undefined /*out*/;
|
|
202
|
+
resourceInputs["featureFlagName"] = undefined /*out*/;
|
|
203
|
+
resourceInputs["featureFlagSnapshot"] = undefined /*out*/;
|
|
204
|
+
resourceInputs["isValid"] = undefined /*out*/;
|
|
205
|
+
resourceInputs["startedAt"] = undefined /*out*/;
|
|
206
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
207
|
+
}
|
|
208
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
209
|
+
super(Experiment.__pulumiType, name, resourceInputs, opts);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.Experiment = Experiment;
|
|
213
|
+
//# sourceMappingURL=experiment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment.js","sourceRoot":"","sources":["../experiment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAuB,EAAE,IAAmC;QACrH,OAAO,IAAI,U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L,gCAgLC"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Create and manage an Experiment Center feature flag (EA only).
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
12
|
+
*
|
|
13
|
+
* const myFlag = new auth0.ExperimentFeatureFlag("my_flag", {
|
|
14
|
+
* parameters: [
|
|
15
|
+
* {
|
|
16
|
+
* name: "show_passkey",
|
|
17
|
+
* type: "boolean",
|
|
18
|
+
* value: "false",
|
|
19
|
+
* description: "Whether the passkey enrollment screen is shown.",
|
|
20
|
+
* },
|
|
21
|
+
* {
|
|
22
|
+
* name: "cta_label",
|
|
23
|
+
* type: "string",
|
|
24
|
+
* value: "Sign in",
|
|
25
|
+
* },
|
|
26
|
+
* {
|
|
27
|
+
* name: "obj1",
|
|
28
|
+
* type: "object",
|
|
29
|
+
* value: JSON.stringify({
|
|
30
|
+
* label: "A",
|
|
31
|
+
* enabled: true,
|
|
32
|
+
* }),
|
|
33
|
+
* },
|
|
34
|
+
* {
|
|
35
|
+
* name: "arr1",
|
|
36
|
+
* type: "array",
|
|
37
|
+
* value: JSON.stringify([
|
|
38
|
+
* "a",
|
|
39
|
+
* "b",
|
|
40
|
+
* ]),
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* variations: [
|
|
44
|
+
* {
|
|
45
|
+
* name: "control",
|
|
46
|
+
* description: "Current login screen.",
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* overrides: [
|
|
50
|
+
* {
|
|
51
|
+
* name: "show_passkey",
|
|
52
|
+
* type: "boolean",
|
|
53
|
+
* value: "true",
|
|
54
|
+
* },
|
|
55
|
+
* {
|
|
56
|
+
* name: "cta_label",
|
|
57
|
+
* type: "string",
|
|
58
|
+
* value: "Continue with passkey",
|
|
59
|
+
* },
|
|
60
|
+
* {
|
|
61
|
+
* name: "obj1",
|
|
62
|
+
* type: "object",
|
|
63
|
+
* value: JSON.stringify({
|
|
64
|
+
* label: "B",
|
|
65
|
+
* enabled: true,
|
|
66
|
+
* }),
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* name: "treatment",
|
|
70
|
+
* description: "Login screen with passkey enrollment.",
|
|
71
|
+
* },
|
|
72
|
+
* ],
|
|
73
|
+
* name: "checkout-passkey-rollout",
|
|
74
|
+
* description: "Feature flag driving the passkey A/B test on the login screen.",
|
|
75
|
+
* status: "active",
|
|
76
|
+
* });
|
|
77
|
+
* export const treatmentVariationId = myFlag.variationIds.treatment;
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* ## Import
|
|
81
|
+
*
|
|
82
|
+
* This resource can be imported using the feature flag ID.
|
|
83
|
+
* Example:
|
|
84
|
+
*
|
|
85
|
+
* ```sh
|
|
86
|
+
* $ pulumi import auth0:index/experimentFeatureFlag:ExperimentFeatureFlag my_flag "flg_qbcYN5nLxwEY9coR7FdEw9"
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export declare class ExperimentFeatureFlag extends pulumi.CustomResource {
|
|
90
|
+
/**
|
|
91
|
+
* Get an existing ExperimentFeatureFlag resource's state with the given name, ID, and optional extra
|
|
92
|
+
* properties used to qualify the lookup.
|
|
93
|
+
*
|
|
94
|
+
* @param name The _unique_ name of the resulting resource.
|
|
95
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
96
|
+
* @param state Any extra arguments used during the lookup.
|
|
97
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
98
|
+
*/
|
|
99
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ExperimentFeatureFlagState, opts?: pulumi.CustomResourceOptions): ExperimentFeatureFlag;
|
|
100
|
+
/**
|
|
101
|
+
* Check whether an existing ExperimentFeatureFlag resource with the given ID exists.
|
|
102
|
+
*
|
|
103
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
104
|
+
* @param state Any extra arguments used during the lookup.
|
|
105
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
106
|
+
*/
|
|
107
|
+
static exists(id: pulumi.Input<string>, state?: ExperimentFeatureFlagState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
|
|
108
|
+
/**
|
|
109
|
+
* Returns true if the given object is an instance of ExperimentFeatureFlag. This is designed to work even
|
|
110
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
111
|
+
*/
|
|
112
|
+
static isInstance(obj: any): obj is ExperimentFeatureFlag;
|
|
113
|
+
/**
|
|
114
|
+
* The ISO 8601 formatted date the feature flag was created.
|
|
115
|
+
*/
|
|
116
|
+
readonly createdAt: pulumi.Output<string>;
|
|
117
|
+
/**
|
|
118
|
+
* Description of the feature flag. Min length 3 when present.
|
|
119
|
+
*/
|
|
120
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
121
|
+
/**
|
|
122
|
+
* The name of the feature flag.
|
|
123
|
+
*/
|
|
124
|
+
readonly name: pulumi.Output<string>;
|
|
125
|
+
/**
|
|
126
|
+
* The parameters carried by the feature flag.
|
|
127
|
+
*/
|
|
128
|
+
readonly parameters: pulumi.Output<outputs.ExperimentFeatureFlagParameter[]>;
|
|
129
|
+
/**
|
|
130
|
+
* The lifecycle status of the feature flag. One of draft, active, archived. Defaults to `draft` when omitted on creation.
|
|
131
|
+
*/
|
|
132
|
+
readonly status: pulumi.Output<string>;
|
|
133
|
+
/**
|
|
134
|
+
* The type of the feature flag: `self` for user-created flags or `auth0` for built-in flags.
|
|
135
|
+
*/
|
|
136
|
+
readonly type: pulumi.Output<string>;
|
|
137
|
+
/**
|
|
138
|
+
* The ISO 8601 formatted date the feature flag was updated.
|
|
139
|
+
*/
|
|
140
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
141
|
+
/**
|
|
142
|
+
* A map of variation names to variation IDs. Use it to reference a variation by ID, for example in an experiment allocation, because the `variations` blocks do not include IDs. An ID stays the same when you change the description or overrides of a variation. A variation gets a new ID when you rename it, remove and add it again, or when the feature flag is replaced.
|
|
143
|
+
*/
|
|
144
|
+
readonly variationIds: pulumi.Output<{
|
|
145
|
+
[key: string]: string;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* The variations of the feature flag. Each variation overrides parameter values of the feature flag.
|
|
149
|
+
*/
|
|
150
|
+
readonly variations: pulumi.Output<outputs.ExperimentFeatureFlagVariation[] | undefined>;
|
|
151
|
+
/**
|
|
152
|
+
* Create a ExperimentFeatureFlag resource with the given unique name, arguments, and options.
|
|
153
|
+
*
|
|
154
|
+
* @param name The _unique_ name of the resource.
|
|
155
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
156
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
157
|
+
*/
|
|
158
|
+
constructor(name: string, args: ExperimentFeatureFlagArgs, opts?: pulumi.CustomResourceOptions);
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Input properties used for looking up and filtering ExperimentFeatureFlag resources.
|
|
162
|
+
*/
|
|
163
|
+
export interface ExperimentFeatureFlagState {
|
|
164
|
+
/**
|
|
165
|
+
* The ISO 8601 formatted date the feature flag was created.
|
|
166
|
+
*/
|
|
167
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
168
|
+
/**
|
|
169
|
+
* Description of the feature flag. Min length 3 when present.
|
|
170
|
+
*/
|
|
171
|
+
description?: pulumi.Input<string | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* The name of the feature flag.
|
|
174
|
+
*/
|
|
175
|
+
name?: pulumi.Input<string | undefined>;
|
|
176
|
+
/**
|
|
177
|
+
* The parameters carried by the feature flag.
|
|
178
|
+
*/
|
|
179
|
+
parameters?: pulumi.Input<pulumi.Input<inputs.ExperimentFeatureFlagParameter>[] | undefined>;
|
|
180
|
+
/**
|
|
181
|
+
* The lifecycle status of the feature flag. One of draft, active, archived. Defaults to `draft` when omitted on creation.
|
|
182
|
+
*/
|
|
183
|
+
status?: pulumi.Input<string | undefined>;
|
|
184
|
+
/**
|
|
185
|
+
* The type of the feature flag: `self` for user-created flags or `auth0` for built-in flags.
|
|
186
|
+
*/
|
|
187
|
+
type?: pulumi.Input<string | undefined>;
|
|
188
|
+
/**
|
|
189
|
+
* The ISO 8601 formatted date the feature flag was updated.
|
|
190
|
+
*/
|
|
191
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
192
|
+
/**
|
|
193
|
+
* A map of variation names to variation IDs. Use it to reference a variation by ID, for example in an experiment allocation, because the `variations` blocks do not include IDs. An ID stays the same when you change the description or overrides of a variation. A variation gets a new ID when you rename it, remove and add it again, or when the feature flag is replaced.
|
|
194
|
+
*/
|
|
195
|
+
variationIds?: pulumi.Input<{
|
|
196
|
+
[key: string]: pulumi.Input<string>;
|
|
197
|
+
} | undefined>;
|
|
198
|
+
/**
|
|
199
|
+
* The variations of the feature flag. Each variation overrides parameter values of the feature flag.
|
|
200
|
+
*/
|
|
201
|
+
variations?: pulumi.Input<pulumi.Input<inputs.ExperimentFeatureFlagVariation>[] | undefined>;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* The set of arguments for constructing a ExperimentFeatureFlag resource.
|
|
205
|
+
*/
|
|
206
|
+
export interface ExperimentFeatureFlagArgs {
|
|
207
|
+
/**
|
|
208
|
+
* Description of the feature flag. Min length 3 when present.
|
|
209
|
+
*/
|
|
210
|
+
description?: pulumi.Input<string | undefined>;
|
|
211
|
+
/**
|
|
212
|
+
* The name of the feature flag.
|
|
213
|
+
*/
|
|
214
|
+
name?: pulumi.Input<string | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* The parameters carried by the feature flag.
|
|
217
|
+
*/
|
|
218
|
+
parameters: pulumi.Input<pulumi.Input<inputs.ExperimentFeatureFlagParameter>[]>;
|
|
219
|
+
/**
|
|
220
|
+
* The lifecycle status of the feature flag. One of draft, active, archived. Defaults to `draft` when omitted on creation.
|
|
221
|
+
*/
|
|
222
|
+
status?: pulumi.Input<string | undefined>;
|
|
223
|
+
/**
|
|
224
|
+
* The variations of the feature flag. Each variation overrides parameter values of the feature flag.
|
|
225
|
+
*/
|
|
226
|
+
variations?: pulumi.Input<pulumi.Input<inputs.ExperimentFeatureFlagVariation>[] | undefined>;
|
|
227
|
+
}
|
|
228
|
+
//# sourceMappingURL=experimentFeatureFlag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimentFeatureFlag.d.ts","sourceRoot":"","sources":["../experimentFeatureFlag.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,qBAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,qBAAqB;IAI5J;;;;;;OAMG;WACW,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,0BAA0B,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;IAO/I;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAA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AAU,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,8BAA8B,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;CAChG"}
|
|
@@ -0,0 +1,186 @@
|
|
|
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
|
+
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.ExperimentFeatureFlag = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* Create and manage an Experiment Center feature flag (EA only).
|
|
33
|
+
*
|
|
34
|
+
* ## Example Usage
|
|
35
|
+
*
|
|
36
|
+
* ```typescript
|
|
37
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
38
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
39
|
+
*
|
|
40
|
+
* const myFlag = new auth0.ExperimentFeatureFlag("my_flag", {
|
|
41
|
+
* parameters: [
|
|
42
|
+
* {
|
|
43
|
+
* name: "show_passkey",
|
|
44
|
+
* type: "boolean",
|
|
45
|
+
* value: "false",
|
|
46
|
+
* description: "Whether the passkey enrollment screen is shown.",
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* name: "cta_label",
|
|
50
|
+
* type: "string",
|
|
51
|
+
* value: "Sign in",
|
|
52
|
+
* },
|
|
53
|
+
* {
|
|
54
|
+
* name: "obj1",
|
|
55
|
+
* type: "object",
|
|
56
|
+
* value: JSON.stringify({
|
|
57
|
+
* label: "A",
|
|
58
|
+
* enabled: true,
|
|
59
|
+
* }),
|
|
60
|
+
* },
|
|
61
|
+
* {
|
|
62
|
+
* name: "arr1",
|
|
63
|
+
* type: "array",
|
|
64
|
+
* value: JSON.stringify([
|
|
65
|
+
* "a",
|
|
66
|
+
* "b",
|
|
67
|
+
* ]),
|
|
68
|
+
* },
|
|
69
|
+
* ],
|
|
70
|
+
* variations: [
|
|
71
|
+
* {
|
|
72
|
+
* name: "control",
|
|
73
|
+
* description: "Current login screen.",
|
|
74
|
+
* },
|
|
75
|
+
* {
|
|
76
|
+
* overrides: [
|
|
77
|
+
* {
|
|
78
|
+
* name: "show_passkey",
|
|
79
|
+
* type: "boolean",
|
|
80
|
+
* value: "true",
|
|
81
|
+
* },
|
|
82
|
+
* {
|
|
83
|
+
* name: "cta_label",
|
|
84
|
+
* type: "string",
|
|
85
|
+
* value: "Continue with passkey",
|
|
86
|
+
* },
|
|
87
|
+
* {
|
|
88
|
+
* name: "obj1",
|
|
89
|
+
* type: "object",
|
|
90
|
+
* value: JSON.stringify({
|
|
91
|
+
* label: "B",
|
|
92
|
+
* enabled: true,
|
|
93
|
+
* }),
|
|
94
|
+
* },
|
|
95
|
+
* ],
|
|
96
|
+
* name: "treatment",
|
|
97
|
+
* description: "Login screen with passkey enrollment.",
|
|
98
|
+
* },
|
|
99
|
+
* ],
|
|
100
|
+
* name: "checkout-passkey-rollout",
|
|
101
|
+
* description: "Feature flag driving the passkey A/B test on the login screen.",
|
|
102
|
+
* status: "active",
|
|
103
|
+
* });
|
|
104
|
+
* export const treatmentVariationId = myFlag.variationIds.treatment;
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* ## Import
|
|
108
|
+
*
|
|
109
|
+
* This resource can be imported using the feature flag ID.
|
|
110
|
+
* Example:
|
|
111
|
+
*
|
|
112
|
+
* ```sh
|
|
113
|
+
* $ pulumi import auth0:index/experimentFeatureFlag:ExperimentFeatureFlag my_flag "flg_qbcYN5nLxwEY9coR7FdEw9"
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
class ExperimentFeatureFlag extends pulumi.CustomResource {
|
|
117
|
+
/**
|
|
118
|
+
* Get an existing ExperimentFeatureFlag resource's state with the given name, ID, and optional extra
|
|
119
|
+
* properties used to qualify the lookup.
|
|
120
|
+
*
|
|
121
|
+
* @param name The _unique_ name of the resulting resource.
|
|
122
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
123
|
+
* @param state Any extra arguments used during the lookup.
|
|
124
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
125
|
+
*/
|
|
126
|
+
static get(name, id, state, opts) {
|
|
127
|
+
return new ExperimentFeatureFlag(name, state, { ...opts, id: id });
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Check whether an existing ExperimentFeatureFlag resource with the given ID exists.
|
|
131
|
+
*
|
|
132
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
133
|
+
* @param state Any extra arguments used during the lookup.
|
|
134
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
135
|
+
*/
|
|
136
|
+
static exists(id, state, opts) {
|
|
137
|
+
return pulumi.runtime.existsResource("auth0:index/experimentFeatureFlag:ExperimentFeatureFlag", id, state || {}, { ...opts }, undefined);
|
|
138
|
+
}
|
|
139
|
+
/** @internal */
|
|
140
|
+
static __pulumiType = 'auth0:index/experimentFeatureFlag:ExperimentFeatureFlag';
|
|
141
|
+
/**
|
|
142
|
+
* Returns true if the given object is an instance of ExperimentFeatureFlag. This is designed to work even
|
|
143
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
144
|
+
*/
|
|
145
|
+
static isInstance(obj) {
|
|
146
|
+
if (obj === undefined || obj === null) {
|
|
147
|
+
return false;
|
|
148
|
+
}
|
|
149
|
+
return obj['__pulumiType'] === ExperimentFeatureFlag.__pulumiType;
|
|
150
|
+
}
|
|
151
|
+
constructor(name, argsOrState, opts) {
|
|
152
|
+
let resourceInputs = {};
|
|
153
|
+
opts = opts || {};
|
|
154
|
+
if (opts.id) {
|
|
155
|
+
const state = argsOrState;
|
|
156
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
157
|
+
resourceInputs["description"] = state?.description;
|
|
158
|
+
resourceInputs["name"] = state?.name;
|
|
159
|
+
resourceInputs["parameters"] = state?.parameters;
|
|
160
|
+
resourceInputs["status"] = state?.status;
|
|
161
|
+
resourceInputs["type"] = state?.type;
|
|
162
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
163
|
+
resourceInputs["variationIds"] = state?.variationIds;
|
|
164
|
+
resourceInputs["variations"] = state?.variations;
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
const args = argsOrState;
|
|
168
|
+
if (args?.parameters === undefined && !opts.urn) {
|
|
169
|
+
throw new Error("Missing required property 'parameters'");
|
|
170
|
+
}
|
|
171
|
+
resourceInputs["description"] = args?.description;
|
|
172
|
+
resourceInputs["name"] = args?.name;
|
|
173
|
+
resourceInputs["parameters"] = args?.parameters;
|
|
174
|
+
resourceInputs["status"] = args?.status;
|
|
175
|
+
resourceInputs["variations"] = args?.variations;
|
|
176
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
177
|
+
resourceInputs["type"] = undefined /*out*/;
|
|
178
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
179
|
+
resourceInputs["variationIds"] = undefined /*out*/;
|
|
180
|
+
}
|
|
181
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
182
|
+
super(ExperimentFeatureFlag.__pulumiType, name, resourceInputs, opts);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.ExperimentFeatureFlag = ExperimentFeatureFlag;
|
|
186
|
+
//# sourceMappingURL=experimentFeatureFlag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experimentFeatureFlag.js","sourceRoot":"","sources":["../experimentFeatureFlag.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoFG;AACH,MAAa,qBAAsB,SAAQ,MAAM,CAAC,cAAc;IAC5D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkC,EAAE,IAAmC;QAChI,OAAO,IAAI,qBAAqB,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED;;;;;;OAMG;IACI,MAAM,CAAC,MAAM,CAAC,EAAwB,EAAE,KAAkC,EAAE,IAAmC;QAClH,OAAO,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,yDAAyD,EAAE,EAAE,EAA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