@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
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* With this resource, you can manage the client profile (application profile) of a tenant. A client profile applies runtime policy to dynamically registered clients, such as clients registered through a Client ID Metadata Document (CIMD). A tenant can have only one client profile; if one already exists, import it instead of creating a new one. Destroying this resource deletes the tenant's client profile, which immediately removes the governance it applies to all matched clients. The docs recommend `preventDestroy`, and the resource requires the `create:client_profiles`, `read:client_profiles`, `update:client_profiles` and `delete:client_profiles` scopes. This feature is available in Early Access only. (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
|
+
* // Early Access only. The Management API client needs the create, read, update and delete
|
|
14
|
+
* // `client_profiles` scopes.
|
|
15
|
+
* //
|
|
16
|
+
* // A tenant can have only one client profile. Destroying it removes the governance it applies
|
|
17
|
+
* // to all matched clients, so protect it from accidental deletion.
|
|
18
|
+
* // Minimal example.
|
|
19
|
+
* const minimal = new auth0.ClientProfile("minimal", {name: "Dynamic client profile"});
|
|
20
|
+
* // Full example.
|
|
21
|
+
* const full = new auth0.ClientProfile("full", {
|
|
22
|
+
* applyPolicy: {
|
|
23
|
+
* externalMetadataType: "cimd",
|
|
24
|
+
* externalMetadataCreatedBy: "client",
|
|
25
|
+
* },
|
|
26
|
+
* clientConfiguration: {
|
|
27
|
+
* refreshToken: {
|
|
28
|
+
* tokenLifetime: {
|
|
29
|
+
* defaultValue: 2592000,
|
|
30
|
+
* },
|
|
31
|
+
* idleTokenLifetime: {
|
|
32
|
+
* defaultValue: 1296000,
|
|
33
|
+
* },
|
|
34
|
+
* leeway: {
|
|
35
|
+
* defaultValue: 0,
|
|
36
|
+
* },
|
|
37
|
+
* },
|
|
38
|
+
* organizationUsage: {
|
|
39
|
+
* defaultValue: "require",
|
|
40
|
+
* },
|
|
41
|
+
* organizationRequireBehavior: {
|
|
42
|
+
* defaultValue: "pre_login_prompt",
|
|
43
|
+
* },
|
|
44
|
+
* organizationDiscoveryMethods: {
|
|
45
|
+
* defaultValues: [
|
|
46
|
+
* "email",
|
|
47
|
+
* "organization_name",
|
|
48
|
+
* ],
|
|
49
|
+
* },
|
|
50
|
+
* requireProofOfPossession: {
|
|
51
|
+
* defaultValue: true,
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* name: "Dynamic client profile",
|
|
55
|
+
* description: "Runtime policy for dynamically registered clients.",
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* ## Import
|
|
60
|
+
*
|
|
61
|
+
* A client profile can be imported using its ID.
|
|
62
|
+
*
|
|
63
|
+
* You can find the existing client profile ID using the Auth0 Management API.
|
|
64
|
+
* https://auth0.com/docs/api/management/v2#!/Client_Profiles/get_client_profiles
|
|
65
|
+
*
|
|
66
|
+
* Example:
|
|
67
|
+
*
|
|
68
|
+
* ```sh
|
|
69
|
+
* $ pulumi import auth0:index/clientProfile:ClientProfile full "cpr_XXXXXXXXXXXXXXXX"
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare class ClientProfile extends pulumi.CustomResource {
|
|
73
|
+
/**
|
|
74
|
+
* Get an existing ClientProfile resource's state with the given name, ID, and optional extra
|
|
75
|
+
* properties used to qualify the lookup.
|
|
76
|
+
*
|
|
77
|
+
* @param name The _unique_ name of the resulting resource.
|
|
78
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
79
|
+
* @param state Any extra arguments used during the lookup.
|
|
80
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
81
|
+
*/
|
|
82
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ClientProfileState, opts?: pulumi.CustomResourceOptions): ClientProfile;
|
|
83
|
+
/**
|
|
84
|
+
* Check whether an existing ClientProfile resource with the given ID exists.
|
|
85
|
+
*
|
|
86
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
87
|
+
* @param state Any extra arguments used during the lookup.
|
|
88
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
89
|
+
*/
|
|
90
|
+
static exists(id: pulumi.Input<string>, state?: ClientProfileState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
|
|
91
|
+
/**
|
|
92
|
+
* Returns true if the given object is an instance of ClientProfile. This is designed to work even
|
|
93
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
94
|
+
*/
|
|
95
|
+
static isInstance(obj: any): obj is ClientProfile;
|
|
96
|
+
/**
|
|
97
|
+
* Runtime matching rules that determine which clients this profile governs. Defaults to dynamically registered CIMD clients.
|
|
98
|
+
*/
|
|
99
|
+
readonly applyPolicy: pulumi.Output<outputs.ClientProfileApplyPolicy>;
|
|
100
|
+
/**
|
|
101
|
+
* Runtime policy applied to matched clients. Omitted settings fall back to each client's own setting. Auth0 replaces this block as a whole, so removing it clears all of its settings.
|
|
102
|
+
*/
|
|
103
|
+
readonly clientConfiguration: pulumi.Output<outputs.ClientProfileClientConfiguration | undefined>;
|
|
104
|
+
/**
|
|
105
|
+
* The ISO 8601 formatted date the client profile was created.
|
|
106
|
+
*/
|
|
107
|
+
readonly createdAt: pulumi.Output<string>;
|
|
108
|
+
/**
|
|
109
|
+
* The description of the client profile. Removing the attribute clears the description in Auth0.
|
|
110
|
+
*/
|
|
111
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
112
|
+
/**
|
|
113
|
+
* The name of the client profile.
|
|
114
|
+
*/
|
|
115
|
+
readonly name: pulumi.Output<string>;
|
|
116
|
+
/**
|
|
117
|
+
* The ISO 8601 formatted date the client profile was updated.
|
|
118
|
+
*/
|
|
119
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Create a ClientProfile resource with the given unique name, arguments, and options.
|
|
122
|
+
*
|
|
123
|
+
* @param name The _unique_ name of the resource.
|
|
124
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
125
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
126
|
+
*/
|
|
127
|
+
constructor(name: string, args?: ClientProfileArgs, opts?: pulumi.CustomResourceOptions);
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Input properties used for looking up and filtering ClientProfile resources.
|
|
131
|
+
*/
|
|
132
|
+
export interface ClientProfileState {
|
|
133
|
+
/**
|
|
134
|
+
* Runtime matching rules that determine which clients this profile governs. Defaults to dynamically registered CIMD clients.
|
|
135
|
+
*/
|
|
136
|
+
applyPolicy?: pulumi.Input<inputs.ClientProfileApplyPolicy | undefined>;
|
|
137
|
+
/**
|
|
138
|
+
* Runtime policy applied to matched clients. Omitted settings fall back to each client's own setting. Auth0 replaces this block as a whole, so removing it clears all of its settings.
|
|
139
|
+
*/
|
|
140
|
+
clientConfiguration?: pulumi.Input<inputs.ClientProfileClientConfiguration | undefined>;
|
|
141
|
+
/**
|
|
142
|
+
* The ISO 8601 formatted date the client profile was created.
|
|
143
|
+
*/
|
|
144
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
145
|
+
/**
|
|
146
|
+
* The description of the client profile. Removing the attribute clears the description in Auth0.
|
|
147
|
+
*/
|
|
148
|
+
description?: pulumi.Input<string | undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* The name of the client profile.
|
|
151
|
+
*/
|
|
152
|
+
name?: pulumi.Input<string | undefined>;
|
|
153
|
+
/**
|
|
154
|
+
* The ISO 8601 formatted date the client profile was updated.
|
|
155
|
+
*/
|
|
156
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* The set of arguments for constructing a ClientProfile resource.
|
|
160
|
+
*/
|
|
161
|
+
export interface ClientProfileArgs {
|
|
162
|
+
/**
|
|
163
|
+
* Runtime matching rules that determine which clients this profile governs. Defaults to dynamically registered CIMD clients.
|
|
164
|
+
*/
|
|
165
|
+
applyPolicy?: pulumi.Input<inputs.ClientProfileApplyPolicy | undefined>;
|
|
166
|
+
/**
|
|
167
|
+
* Runtime policy applied to matched clients. Omitted settings fall back to each client's own setting. Auth0 replaces this block as a whole, so removing it clears all of its settings.
|
|
168
|
+
*/
|
|
169
|
+
clientConfiguration?: pulumi.Input<inputs.ClientProfileClientConfiguration | undefined>;
|
|
170
|
+
/**
|
|
171
|
+
* The description of the client profile. Removing the attribute clears the description in Auth0.
|
|
172
|
+
*/
|
|
173
|
+
description?: pulumi.Input<string | undefined>;
|
|
174
|
+
/**
|
|
175
|
+
* The name of the client profile.
|
|
176
|
+
*/
|
|
177
|
+
name?: pulumi.Input<string | undefined>;
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=clientProfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clientProfile.d.ts","sourceRoot":"","sources":["../clientProfile.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,g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ADDED
|
@@ -0,0 +1,160 @@
|
|
|
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.ClientProfile = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* With this resource, you can manage the client profile (application profile) of a tenant. A client profile applies runtime policy to dynamically registered clients, such as clients registered through a Client ID Metadata Document (CIMD). A tenant can have only one client profile; if one already exists, import it instead of creating a new one. Destroying this resource deletes the tenant's client profile, which immediately removes the governance it applies to all matched clients. The docs recommend `preventDestroy`, and the resource requires the `create:client_profiles`, `read:client_profiles`, `update:client_profiles` and `delete:client_profiles` scopes. This feature is available in Early Access only. (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
|
+
* // Early Access only. The Management API client needs the create, read, update and delete
|
|
41
|
+
* // `client_profiles` scopes.
|
|
42
|
+
* //
|
|
43
|
+
* // A tenant can have only one client profile. Destroying it removes the governance it applies
|
|
44
|
+
* // to all matched clients, so protect it from accidental deletion.
|
|
45
|
+
* // Minimal example.
|
|
46
|
+
* const minimal = new auth0.ClientProfile("minimal", {name: "Dynamic client profile"});
|
|
47
|
+
* // Full example.
|
|
48
|
+
* const full = new auth0.ClientProfile("full", {
|
|
49
|
+
* applyPolicy: {
|
|
50
|
+
* externalMetadataType: "cimd",
|
|
51
|
+
* externalMetadataCreatedBy: "client",
|
|
52
|
+
* },
|
|
53
|
+
* clientConfiguration: {
|
|
54
|
+
* refreshToken: {
|
|
55
|
+
* tokenLifetime: {
|
|
56
|
+
* defaultValue: 2592000,
|
|
57
|
+
* },
|
|
58
|
+
* idleTokenLifetime: {
|
|
59
|
+
* defaultValue: 1296000,
|
|
60
|
+
* },
|
|
61
|
+
* leeway: {
|
|
62
|
+
* defaultValue: 0,
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* organizationUsage: {
|
|
66
|
+
* defaultValue: "require",
|
|
67
|
+
* },
|
|
68
|
+
* organizationRequireBehavior: {
|
|
69
|
+
* defaultValue: "pre_login_prompt",
|
|
70
|
+
* },
|
|
71
|
+
* organizationDiscoveryMethods: {
|
|
72
|
+
* defaultValues: [
|
|
73
|
+
* "email",
|
|
74
|
+
* "organization_name",
|
|
75
|
+
* ],
|
|
76
|
+
* },
|
|
77
|
+
* requireProofOfPossession: {
|
|
78
|
+
* defaultValue: true,
|
|
79
|
+
* },
|
|
80
|
+
* },
|
|
81
|
+
* name: "Dynamic client profile",
|
|
82
|
+
* description: "Runtime policy for dynamically registered clients.",
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* ## Import
|
|
87
|
+
*
|
|
88
|
+
* A client profile can be imported using its ID.
|
|
89
|
+
*
|
|
90
|
+
* You can find the existing client profile ID using the Auth0 Management API.
|
|
91
|
+
* https://auth0.com/docs/api/management/v2#!/Client_Profiles/get_client_profiles
|
|
92
|
+
*
|
|
93
|
+
* Example:
|
|
94
|
+
*
|
|
95
|
+
* ```sh
|
|
96
|
+
* $ pulumi import auth0:index/clientProfile:ClientProfile full "cpr_XXXXXXXXXXXXXXXX"
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
class ClientProfile extends pulumi.CustomResource {
|
|
100
|
+
/**
|
|
101
|
+
* Get an existing ClientProfile resource's state with the given name, ID, and optional extra
|
|
102
|
+
* properties used to qualify the lookup.
|
|
103
|
+
*
|
|
104
|
+
* @param name The _unique_ name of the resulting resource.
|
|
105
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
106
|
+
* @param state Any extra arguments used during the lookup.
|
|
107
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
108
|
+
*/
|
|
109
|
+
static get(name, id, state, opts) {
|
|
110
|
+
return new ClientProfile(name, state, { ...opts, id: id });
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Check whether an existing ClientProfile resource with the given ID exists.
|
|
114
|
+
*
|
|
115
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
116
|
+
* @param state Any extra arguments used during the lookup.
|
|
117
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
118
|
+
*/
|
|
119
|
+
static exists(id, state, opts) {
|
|
120
|
+
return pulumi.runtime.existsResource("auth0:index/clientProfile:ClientProfile", id, state || {}, { ...opts }, undefined);
|
|
121
|
+
}
|
|
122
|
+
/** @internal */
|
|
123
|
+
static __pulumiType = 'auth0:index/clientProfile:ClientProfile';
|
|
124
|
+
/**
|
|
125
|
+
* Returns true if the given object is an instance of ClientProfile. This is designed to work even
|
|
126
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
127
|
+
*/
|
|
128
|
+
static isInstance(obj) {
|
|
129
|
+
if (obj === undefined || obj === null) {
|
|
130
|
+
return false;
|
|
131
|
+
}
|
|
132
|
+
return obj['__pulumiType'] === ClientProfile.__pulumiType;
|
|
133
|
+
}
|
|
134
|
+
constructor(name, argsOrState, opts) {
|
|
135
|
+
let resourceInputs = {};
|
|
136
|
+
opts = opts || {};
|
|
137
|
+
if (opts.id) {
|
|
138
|
+
const state = argsOrState;
|
|
139
|
+
resourceInputs["applyPolicy"] = state?.applyPolicy;
|
|
140
|
+
resourceInputs["clientConfiguration"] = state?.clientConfiguration;
|
|
141
|
+
resourceInputs["createdAt"] = state?.createdAt;
|
|
142
|
+
resourceInputs["description"] = state?.description;
|
|
143
|
+
resourceInputs["name"] = state?.name;
|
|
144
|
+
resourceInputs["updatedAt"] = state?.updatedAt;
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
const args = argsOrState;
|
|
148
|
+
resourceInputs["applyPolicy"] = args?.applyPolicy;
|
|
149
|
+
resourceInputs["clientConfiguration"] = args?.clientConfiguration;
|
|
150
|
+
resourceInputs["description"] = args?.description;
|
|
151
|
+
resourceInputs["name"] = args?.name;
|
|
152
|
+
resourceInputs["createdAt"] = undefined /*out*/;
|
|
153
|
+
resourceInputs["updatedAt"] = undefined /*out*/;
|
|
154
|
+
}
|
|
155
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
156
|
+
super(ClientProfile.__pulumiType, name, resourceInputs, opts);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
exports.ClientProfile = ClientPro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;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA6C,CAAC;YAC5D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,qBAAqB,CAAC,GAAG,KAAK,EAAE,mBAAmB,CAAC;YACnE,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;YAC/C,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,WAAW,CAAC,GAAG,KAAK,EAAE,SAAS,CAAC;SAClD;aAAM;YACH,MAAM,IAAI,GAAG,WAA4C,CAAC;YAC1D,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,EAAE,mBAAmB,CAAC;YAClE,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAChD,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AA9FL,sCA+FC"}
|
package/experiment.d.ts
ADDED
|
@@ -0,0 +1,315 @@
|
|
|
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 experiment. (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 loginUi = new auth0.ExperimentFeatureFlag("login_ui", {
|
|
14
|
+
* parameters: [{
|
|
15
|
+
* name: "show_new_login",
|
|
16
|
+
* type: "boolean",
|
|
17
|
+
* value: "false",
|
|
18
|
+
* }],
|
|
19
|
+
* variations: [
|
|
20
|
+
* {
|
|
21
|
+
* name: "control",
|
|
22
|
+
* },
|
|
23
|
+
* {
|
|
24
|
+
* overrides: [{
|
|
25
|
+
* name: "show_new_login",
|
|
26
|
+
* type: "boolean",
|
|
27
|
+
* value: "true",
|
|
28
|
+
* }],
|
|
29
|
+
* name: "new-login",
|
|
30
|
+
* },
|
|
31
|
+
* ],
|
|
32
|
+
* name: "new-login-ui",
|
|
33
|
+
* description: "Controls whether the new login UI is shown.",
|
|
34
|
+
* status: "active",
|
|
35
|
+
* });
|
|
36
|
+
* // Percentage strategy: split traffic between variations by weight.
|
|
37
|
+
* const percentage = new auth0.Experiment("percentage", {
|
|
38
|
+
* allocations: [
|
|
39
|
+
* {
|
|
40
|
+
* variationId: loginUi.variationIds.control,
|
|
41
|
+
* isControl: true,
|
|
42
|
+
* weight: 50,
|
|
43
|
+
* },
|
|
44
|
+
* {
|
|
45
|
+
* variationId: loginUi.variationIds["new-login"],
|
|
46
|
+
* isControl: false,
|
|
47
|
+
* weight: 50,
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* name: "login-ui-percentage-test",
|
|
51
|
+
* description: "Show the new login UI to half of the traffic.",
|
|
52
|
+
* featureFlagId: loginUi.id,
|
|
53
|
+
* authenticationFlow: "authentication",
|
|
54
|
+
* allocationStrategy: "percentage",
|
|
55
|
+
* status: "draft",
|
|
56
|
+
* });
|
|
57
|
+
* const usTraffic = new auth0.ExperimentSegment("us_traffic", {
|
|
58
|
+
* rules: [{
|
|
59
|
+
* match: {
|
|
60
|
+
* country: {
|
|
61
|
+
* contains: ["US"],
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* }],
|
|
65
|
+
* name: "us-traffic",
|
|
66
|
+
* });
|
|
67
|
+
* // Segment strategy: route each segment to a variation; other traffic gets the
|
|
68
|
+
* // fallback allocation.
|
|
69
|
+
* const segment = new auth0.Experiment("segment", {
|
|
70
|
+
* allocations: [
|
|
71
|
+
* {
|
|
72
|
+
* variationId: loginUi.variationIds.control,
|
|
73
|
+
* isControl: true,
|
|
74
|
+
* segmentId: usTraffic.id,
|
|
75
|
+
* priority: 1,
|
|
76
|
+
* },
|
|
77
|
+
* {
|
|
78
|
+
* variationId: loginUi.variationIds["new-login"],
|
|
79
|
+
* isControl: false,
|
|
80
|
+
* isFallback: true,
|
|
81
|
+
* },
|
|
82
|
+
* ],
|
|
83
|
+
* name: "login-ui-segment-test",
|
|
84
|
+
* description: "Keep US traffic on the current login UI and show the new UI elsewhere.",
|
|
85
|
+
* featureFlagId: loginUi.id,
|
|
86
|
+
* authenticationFlow: "mfa_challenge",
|
|
87
|
+
* allocationStrategy: "segment",
|
|
88
|
+
* status: "draft",
|
|
89
|
+
* });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare class Experiment extends pulumi.CustomResource {
|
|
93
|
+
/**
|
|
94
|
+
* Get an existing Experiment resource's state with the given name, ID, and optional extra
|
|
95
|
+
* properties used to qualify the lookup.
|
|
96
|
+
*
|
|
97
|
+
* @param name The _unique_ name of the resulting resource.
|
|
98
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
99
|
+
* @param state Any extra arguments used during the lookup.
|
|
100
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
101
|
+
*/
|
|
102
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ExperimentState, opts?: pulumi.CustomResourceOptions): Experiment;
|
|
103
|
+
/**
|
|
104
|
+
* Check whether an existing Experiment resource with the given ID exists.
|
|
105
|
+
*
|
|
106
|
+
* @param id The _unique_ provider ID of the resource to check.
|
|
107
|
+
* @param state Any extra arguments used during the lookup.
|
|
108
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
109
|
+
*/
|
|
110
|
+
static exists(id: pulumi.Input<string>, state?: ExperimentState, opts?: pulumi.CustomResourceOptions): pulumi.Output<boolean>;
|
|
111
|
+
/**
|
|
112
|
+
* Returns true if the given object is an instance of Experiment. This is designed to work even
|
|
113
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
114
|
+
*/
|
|
115
|
+
static isInstance(obj: any): obj is Experiment;
|
|
116
|
+
/**
|
|
117
|
+
* The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
|
|
118
|
+
*/
|
|
119
|
+
readonly allocationStrategy: pulumi.Output<string>;
|
|
120
|
+
/**
|
|
121
|
+
* The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
|
|
122
|
+
*/
|
|
123
|
+
readonly allocations: pulumi.Output<outputs.ExperimentAllocation[] | undefined>;
|
|
124
|
+
/**
|
|
125
|
+
* The authentication flow targeted by the experiment. One of authentication, mfa*enrollment, mfa*challenge, password*reset, passkey*enrollment, all.
|
|
126
|
+
*/
|
|
127
|
+
readonly authenticationFlow: pulumi.Output<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The ISO 8601 formatted date the experiment was created.
|
|
130
|
+
*/
|
|
131
|
+
readonly createdAt: pulumi.Output<string>;
|
|
132
|
+
/**
|
|
133
|
+
* The current ramp level, if levels are configured.
|
|
134
|
+
*/
|
|
135
|
+
readonly currentLevel: pulumi.Output<number>;
|
|
136
|
+
/**
|
|
137
|
+
* The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
|
|
138
|
+
*/
|
|
139
|
+
readonly defaultConfig: pulumi.Output<string | undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* Description of the experiment.
|
|
142
|
+
*/
|
|
143
|
+
readonly description: pulumi.Output<string | undefined>;
|
|
144
|
+
/**
|
|
145
|
+
* Fields that the API reports as editable.
|
|
146
|
+
*/
|
|
147
|
+
readonly editableFields: pulumi.Output<string[]>;
|
|
148
|
+
/**
|
|
149
|
+
* The ISO 8601 formatted date the experiment was completed.
|
|
150
|
+
*/
|
|
151
|
+
readonly endedAt: pulumi.Output<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
|
|
154
|
+
*/
|
|
155
|
+
readonly featureFlagId: pulumi.Output<string>;
|
|
156
|
+
/**
|
|
157
|
+
* The name of the feature flag evaluated by this experiment.
|
|
158
|
+
*/
|
|
159
|
+
readonly featureFlagName: pulumi.Output<string>;
|
|
160
|
+
/**
|
|
161
|
+
* The snapshot of the feature flag.
|
|
162
|
+
*/
|
|
163
|
+
readonly featureFlagSnapshot: pulumi.Output<string>;
|
|
164
|
+
/**
|
|
165
|
+
* Whether the experiment is ready to activate.
|
|
166
|
+
*/
|
|
167
|
+
readonly isValid: pulumi.Output<boolean>;
|
|
168
|
+
/**
|
|
169
|
+
* The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
|
|
170
|
+
*/
|
|
171
|
+
readonly levels: pulumi.Output<number[] | undefined>;
|
|
172
|
+
/**
|
|
173
|
+
* The name of the experiment.
|
|
174
|
+
*/
|
|
175
|
+
readonly name: pulumi.Output<string>;
|
|
176
|
+
/**
|
|
177
|
+
* The ISO 8601 formatted date the experiment was first activated.
|
|
178
|
+
*/
|
|
179
|
+
readonly startedAt: pulumi.Output<string>;
|
|
180
|
+
/**
|
|
181
|
+
* The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
|
|
182
|
+
*/
|
|
183
|
+
readonly status: pulumi.Output<string>;
|
|
184
|
+
/**
|
|
185
|
+
* The ISO 8601 formatted date the experiment was updated.
|
|
186
|
+
*/
|
|
187
|
+
readonly updatedAt: pulumi.Output<string>;
|
|
188
|
+
/**
|
|
189
|
+
* Create a Experiment resource with the given unique name, arguments, and options.
|
|
190
|
+
*
|
|
191
|
+
* @param name The _unique_ name of the resource.
|
|
192
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
193
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
194
|
+
*/
|
|
195
|
+
constructor(name: string, args: ExperimentArgs, opts?: pulumi.CustomResourceOptions);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Input properties used for looking up and filtering Experiment resources.
|
|
199
|
+
*/
|
|
200
|
+
export interface ExperimentState {
|
|
201
|
+
/**
|
|
202
|
+
* The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
|
|
203
|
+
*/
|
|
204
|
+
allocationStrategy?: pulumi.Input<string | undefined>;
|
|
205
|
+
/**
|
|
206
|
+
* The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
|
|
207
|
+
*/
|
|
208
|
+
allocations?: pulumi.Input<pulumi.Input<inputs.ExperimentAllocation>[] | undefined>;
|
|
209
|
+
/**
|
|
210
|
+
* The authentication flow targeted by the experiment. One of authentication, mfa*enrollment, mfa*challenge, password*reset, passkey*enrollment, all.
|
|
211
|
+
*/
|
|
212
|
+
authenticationFlow?: pulumi.Input<string | undefined>;
|
|
213
|
+
/**
|
|
214
|
+
* The ISO 8601 formatted date the experiment was created.
|
|
215
|
+
*/
|
|
216
|
+
createdAt?: pulumi.Input<string | undefined>;
|
|
217
|
+
/**
|
|
218
|
+
* The current ramp level, if levels are configured.
|
|
219
|
+
*/
|
|
220
|
+
currentLevel?: pulumi.Input<number | undefined>;
|
|
221
|
+
/**
|
|
222
|
+
* The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
|
|
223
|
+
*/
|
|
224
|
+
defaultConfig?: pulumi.Input<string | undefined>;
|
|
225
|
+
/**
|
|
226
|
+
* Description of the experiment.
|
|
227
|
+
*/
|
|
228
|
+
description?: pulumi.Input<string | undefined>;
|
|
229
|
+
/**
|
|
230
|
+
* Fields that the API reports as editable.
|
|
231
|
+
*/
|
|
232
|
+
editableFields?: pulumi.Input<pulumi.Input<string>[] | undefined>;
|
|
233
|
+
/**
|
|
234
|
+
* The ISO 8601 formatted date the experiment was completed.
|
|
235
|
+
*/
|
|
236
|
+
endedAt?: pulumi.Input<string | undefined>;
|
|
237
|
+
/**
|
|
238
|
+
* The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
|
|
239
|
+
*/
|
|
240
|
+
featureFlagId?: pulumi.Input<string | undefined>;
|
|
241
|
+
/**
|
|
242
|
+
* The name of the feature flag evaluated by this experiment.
|
|
243
|
+
*/
|
|
244
|
+
featureFlagName?: pulumi.Input<string | undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* The snapshot of the feature flag.
|
|
247
|
+
*/
|
|
248
|
+
featureFlagSnapshot?: pulumi.Input<string | undefined>;
|
|
249
|
+
/**
|
|
250
|
+
* Whether the experiment is ready to activate.
|
|
251
|
+
*/
|
|
252
|
+
isValid?: pulumi.Input<boolean | undefined>;
|
|
253
|
+
/**
|
|
254
|
+
* The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
|
|
255
|
+
*/
|
|
256
|
+
levels?: pulumi.Input<pulumi.Input<number>[] | undefined>;
|
|
257
|
+
/**
|
|
258
|
+
* The name of the experiment.
|
|
259
|
+
*/
|
|
260
|
+
name?: pulumi.Input<string | undefined>;
|
|
261
|
+
/**
|
|
262
|
+
* The ISO 8601 formatted date the experiment was first activated.
|
|
263
|
+
*/
|
|
264
|
+
startedAt?: pulumi.Input<string | undefined>;
|
|
265
|
+
/**
|
|
266
|
+
* The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
|
|
267
|
+
*/
|
|
268
|
+
status?: pulumi.Input<string | undefined>;
|
|
269
|
+
/**
|
|
270
|
+
* The ISO 8601 formatted date the experiment was updated.
|
|
271
|
+
*/
|
|
272
|
+
updatedAt?: pulumi.Input<string | undefined>;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* The set of arguments for constructing a Experiment resource.
|
|
276
|
+
*/
|
|
277
|
+
export interface ExperimentArgs {
|
|
278
|
+
/**
|
|
279
|
+
* The traffic allocation strategy. One of percentage, segment. Changing this replaces the experiment.
|
|
280
|
+
*/
|
|
281
|
+
allocationStrategy: pulumi.Input<string>;
|
|
282
|
+
/**
|
|
283
|
+
* The ordered traffic allocations. At least one is required when configured. Removing all allocations replaces the experiment.
|
|
284
|
+
*/
|
|
285
|
+
allocations?: pulumi.Input<pulumi.Input<inputs.ExperimentAllocation>[] | undefined>;
|
|
286
|
+
/**
|
|
287
|
+
* The authentication flow targeted by the experiment. One of authentication, mfa*enrollment, mfa*challenge, password*reset, passkey*enrollment, all.
|
|
288
|
+
*/
|
|
289
|
+
authenticationFlow: pulumi.Input<string>;
|
|
290
|
+
/**
|
|
291
|
+
* The configuration source for an Auth0-managed feature flag. One of tenant, flag. Removing it replaces the experiment.
|
|
292
|
+
*/
|
|
293
|
+
defaultConfig?: pulumi.Input<string | undefined>;
|
|
294
|
+
/**
|
|
295
|
+
* Description of the experiment.
|
|
296
|
+
*/
|
|
297
|
+
description?: pulumi.Input<string | undefined>;
|
|
298
|
+
/**
|
|
299
|
+
* The ID of the feature flag evaluated by this experiment. Changing this replaces the experiment.
|
|
300
|
+
*/
|
|
301
|
+
featureFlagId: pulumi.Input<string>;
|
|
302
|
+
/**
|
|
303
|
+
* The ordered ramp levels. Only for the percentage strategy. Removing them replaces the experiment.
|
|
304
|
+
*/
|
|
305
|
+
levels?: pulumi.Input<pulumi.Input<number>[] | undefined>;
|
|
306
|
+
/**
|
|
307
|
+
* The name of the experiment.
|
|
308
|
+
*/
|
|
309
|
+
name?: pulumi.Input<string | undefined>;
|
|
310
|
+
/**
|
|
311
|
+
* The lifecycle status of the experiment. One of draft, active, paused, completed, archived. A non-draft status on creation is applied internally after the experiment is created as a draft. If the status update fails, Terraform marks the entire resource tainted and plans to replace it on the next apply. An active experiment cannot be deleted.
|
|
312
|
+
*/
|
|
313
|
+
status?: pulumi.Input<string | undefined>;
|
|
314
|
+
}
|
|
315
|
+
//# sourceMappingURL=experiment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"experiment.d.ts","sourceRoot":"","sources":["../experiment.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AACH,qBAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;WACW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,UAAU;IAItI;;;;;;OAMG;WACW,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;IAOpI;;;OAGG;WACW,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU;IAOrD;;OAEG;IACH,SAAwB,kBAAkB,EAAE,MAAM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