@pulumi/auth0 2.14.0-alpha.1663280530 → 2.14.0-alpha.1666810964

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.
Files changed (104) hide show
  1. package/action.d.ts +25 -72
  2. package/action.js +2 -50
  3. package/action.js.map +1 -1
  4. package/attackProtection.d.ts +9 -8
  5. package/attackProtection.js +4 -4
  6. package/attackProtection.js.map +1 -1
  7. package/branding.d.ts +31 -30
  8. package/branding.js +14 -8
  9. package/branding.js.map +1 -1
  10. package/brandingTheme.d.ts +156 -0
  11. package/brandingTheme.js +165 -0
  12. package/brandingTheme.js.map +1 -0
  13. package/client.d.ts +145 -126
  14. package/client.js +26 -22
  15. package/client.js.map +1 -1
  16. package/clientGrant.d.ts +12 -13
  17. package/clientGrant.js +3 -4
  18. package/clientGrant.js.map +1 -1
  19. package/config/vars.d.ts +22 -0
  20. package/config/vars.js +6 -0
  21. package/config/vars.js.map +1 -1
  22. package/connection.d.ts +256 -41
  23. package/connection.js +236 -4
  24. package/connection.js.map +1 -1
  25. package/customDomain.d.ts +42 -18
  26. package/customDomain.js +6 -3
  27. package/customDomain.js.map +1 -1
  28. package/customDomainVerification.d.ts +15 -9
  29. package/customDomainVerification.js +4 -4
  30. package/customDomainVerification.js.map +1 -1
  31. package/email.d.ts +37 -18
  32. package/email.js +23 -5
  33. package/email.js.map +1 -1
  34. package/emailTemplate.d.ts +29 -32
  35. package/emailTemplate.js +2 -5
  36. package/emailTemplate.js.map +1 -1
  37. package/getClient.d.ts +111 -6
  38. package/getClient.js +3 -1
  39. package/getClient.js.map +1 -1
  40. package/getGlobalClient.d.ts +98 -31
  41. package/getGlobalClient.js +3 -11
  42. package/getGlobalClient.js.map +1 -1
  43. package/getTenant.d.ts +3 -3
  44. package/getTenant.js +1 -1
  45. package/globalClient.d.ts +333 -2
  46. package/globalClient.js +7 -3
  47. package/globalClient.js.map +1 -1
  48. package/guardian.d.ts +32 -56
  49. package/guardian.js +3 -4
  50. package/guardian.js.map +1 -1
  51. package/hook.d.ts +12 -18
  52. package/hook.js +9 -10
  53. package/hook.js.map +1 -1
  54. package/index.d.ts +91 -30
  55. package/index.js +94 -101
  56. package/index.js.map +1 -1
  57. package/logStream.d.ts +34 -18
  58. package/logStream.js +17 -2
  59. package/logStream.js.map +1 -1
  60. package/organization.d.ts +22 -55
  61. package/organization.js +8 -17
  62. package/organization.js.map +1 -1
  63. package/organizationConnection.d.ts +7 -5
  64. package/organizationConnection.js +7 -5
  65. package/organizationConnection.js.map +1 -1
  66. package/organizationMember.d.ts +27 -15
  67. package/organizationMember.js +18 -6
  68. package/organizationMember.js.map +1 -1
  69. package/package.json +2 -2
  70. package/package.json.dev +2 -2
  71. package/prompt.d.ts +12 -12
  72. package/prompt.js +4 -4
  73. package/promptCustomText.d.ts +8 -9
  74. package/promptCustomText.js +2 -3
  75. package/promptCustomText.js.map +1 -1
  76. package/provider.d.ts +41 -0
  77. package/provider.js +1 -0
  78. package/provider.js.map +1 -1
  79. package/resourceServer.d.ts +47 -46
  80. package/resourceServer.js +4 -1
  81. package/resourceServer.js.map +1 -1
  82. package/role.d.ts +13 -17
  83. package/role.js +2 -4
  84. package/role.js.map +1 -1
  85. package/rule.d.ts +19 -25
  86. package/rule.js +6 -12
  87. package/rule.js.map +1 -1
  88. package/ruleConfig.d.ts +12 -14
  89. package/ruleConfig.js +9 -9
  90. package/ruleConfig.js.map +1 -1
  91. package/tenant.d.ts +91 -80
  92. package/tenant.js +35 -25
  93. package/tenant.js.map +1 -1
  94. package/triggerBinding.d.ts +19 -26
  95. package/triggerBinding.js +11 -16
  96. package/triggerBinding.js.map +1 -1
  97. package/types/index.js.map +1 -1
  98. package/types/input.d.ts +488 -425
  99. package/types/output.d.ts +500 -435
  100. package/user.d.ts +87 -44
  101. package/user.js +6 -6
  102. package/user.js.map +1 -1
  103. package/utilities.js +13 -1
  104. package/utilities.js.map +1 -1
package/rule.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
4
- * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules.
5
- * You can create global variable for use with rules by using the auth0.RuleConfig resource.
3
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules. You can create global variable for use with rules by using the `auth0.RuleConfig` resource.
6
4
  *
7
5
  * ## Example Usage
8
6
  *
@@ -12,20 +10,16 @@ import * as pulumi from "@pulumi/pulumi";
12
10
  *
13
11
  * const myRule = new auth0.Rule("my_rule", {
14
12
  * enabled: true,
15
- * script: `function (user, context, callback) {
16
- * callback(null, user, context);
17
- * }
18
- * `,
19
- * });
20
- * const myRuleConfig = new auth0.RuleConfig("my_rule_config", {
21
- * key: "foo",
22
- * value: "bar",
13
+ * script: ` function (user, context, callback) {
14
+ * callback(null, user, context);
15
+ * }
16
+ * `,
23
17
  * });
24
18
  * ```
25
19
  *
26
20
  * ## Import
27
21
  *
28
- * Existing rules can be imported using their id, e.g.
22
+ * Existing rules can be imported using their ID. # Example
29
23
  *
30
24
  * ```sh
31
25
  * $ pulumi import auth0:index/rule:Rule my_rule rul_XXXXXXXXXXXXX
@@ -48,19 +42,19 @@ export declare class Rule extends pulumi.CustomResource {
48
42
  */
49
43
  static isInstance(obj: any): obj is Rule;
50
44
  /**
51
- * Boolean. Indicates whether the rule is enabled.
45
+ * Indicates whether the rule is enabled.
52
46
  */
53
- readonly enabled: pulumi.Output<boolean | undefined>;
47
+ readonly enabled: pulumi.Output<boolean>;
54
48
  /**
55
- * String. Name of the rule. May only contain alphanumeric characters, spaces, and hyphens. May neither start nor end with hyphens or spaces.
49
+ * Name of the rule. May only contain alphanumeric characters, spaces, and hyphens. May neither start nor end with hyphens or spaces.
56
50
  */
57
51
  readonly name: pulumi.Output<string>;
58
52
  /**
59
- * Integer. Order in which the rule executes relative to other rules. Lower-valued rules execute first.
53
+ * Order in which the rule executes relative to other rules. Lower-valued rules execute first.
60
54
  */
61
55
  readonly order: pulumi.Output<number>;
62
56
  /**
63
- * String. Code to be executed when the rule runs.
57
+ * Code to be executed when the rule runs.
64
58
  */
65
59
  readonly script: pulumi.Output<string>;
66
60
  /**
@@ -77,19 +71,19 @@ export declare class Rule extends pulumi.CustomResource {
77
71
  */
78
72
  export interface RuleState {
79
73
  /**
80
- * Boolean. Indicates whether the rule is enabled.
74
+ * Indicates whether the rule is enabled.
81
75
  */
82
76
  enabled?: pulumi.Input<boolean>;
83
77
  /**
84
- * String. Name of the rule. May only contain alphanumeric characters, spaces, and hyphens. May neither start nor end with hyphens or spaces.
78
+ * Name of the rule. May only contain alphanumeric characters, spaces, and hyphens. May neither start nor end with hyphens or spaces.
85
79
  */
86
80
  name?: pulumi.Input<string>;
87
81
  /**
88
- * Integer. Order in which the rule executes relative to other rules. Lower-valued rules execute first.
82
+ * Order in which the rule executes relative to other rules. Lower-valued rules execute first.
89
83
  */
90
84
  order?: pulumi.Input<number>;
91
85
  /**
92
- * String. Code to be executed when the rule runs.
86
+ * Code to be executed when the rule runs.
93
87
  */
94
88
  script?: pulumi.Input<string>;
95
89
  }
@@ -98,19 +92,19 @@ export interface RuleState {
98
92
  */
99
93
  export interface RuleArgs {
100
94
  /**
101
- * Boolean. Indicates whether the rule is enabled.
95
+ * Indicates whether the rule is enabled.
102
96
  */
103
97
  enabled?: pulumi.Input<boolean>;
104
98
  /**
105
- * String. Name of the rule. May only contain alphanumeric characters, spaces, and hyphens. May neither start nor end with hyphens or spaces.
99
+ * Name of the rule. May only contain alphanumeric characters, spaces, and hyphens. May neither start nor end with hyphens or spaces.
106
100
  */
107
101
  name?: pulumi.Input<string>;
108
102
  /**
109
- * Integer. Order in which the rule executes relative to other rules. Lower-valued rules execute first.
103
+ * Order in which the rule executes relative to other rules. Lower-valued rules execute first.
110
104
  */
111
105
  order?: pulumi.Input<number>;
112
106
  /**
113
- * String. Code to be executed when the rule runs.
107
+ * Code to be executed when the rule runs.
114
108
  */
115
109
  script: pulumi.Input<string>;
116
110
  }
package/rule.js CHANGED
@@ -6,9 +6,7 @@ exports.Rule = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
10
- * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules.
11
- * You can create global variable for use with rules by using the auth0.RuleConfig resource.
9
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules. You can create global variable for use with rules by using the `auth0.RuleConfig` resource.
12
10
  *
13
11
  * ## Example Usage
14
12
  *
@@ -18,20 +16,16 @@ const utilities = require("./utilities");
18
16
  *
19
17
  * const myRule = new auth0.Rule("my_rule", {
20
18
  * enabled: true,
21
- * script: `function (user, context, callback) {
22
- * callback(null, user, context);
23
- * }
24
- * `,
25
- * });
26
- * const myRuleConfig = new auth0.RuleConfig("my_rule_config", {
27
- * key: "foo",
28
- * value: "bar",
19
+ * script: ` function (user, context, callback) {
20
+ * callback(null, user, context);
21
+ * }
22
+ * `,
29
23
  * });
30
24
  * ```
31
25
  *
32
26
  * ## Import
33
27
  *
34
- * Existing rules can be imported using their id, e.g.
28
+ * Existing rules can be imported using their ID. # Example
35
29
  *
36
30
  * ```sh
37
31
  * $ pulumi import auth0:index/rule:Rule my_rule rul_XXXXXXXXXXXXX
package/rule.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rule.js","sourceRoot":"","sources":["../rule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAqD3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC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iB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,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,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBA2EC;AA7DG,gBAAgB;AACO,iBAAY,GAAG,uBAAuB,CAAC"}
package/ruleConfig.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
4
- * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables
5
- * that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
3
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
6
4
  *
7
5
  * ## Example Usage
8
6
  *
@@ -12,10 +10,10 @@ import * as pulumi from "@pulumi/pulumi";
12
10
  *
13
11
  * const myRule = new auth0.Rule("my_rule", {
14
12
  * enabled: true,
15
- * script: `function (user, context, callback) {
16
- * callback(null, user, context);
17
- * }
18
- * `,
13
+ * script: ` function (user, context, callback) {
14
+ * callback(null, user, context);
15
+ * }
16
+ * `,
19
17
  * });
20
18
  * const myRuleConfig = new auth0.RuleConfig("my_rule_config", {
21
19
  * key: "foo",
@@ -25,7 +23,7 @@ import * as pulumi from "@pulumi/pulumi";
25
23
  *
26
24
  * ## Import
27
25
  *
28
- * Existing rule configs can be imported using their key name, e.g.
26
+ * Existing rule configs can be imported using their key name. # Example
29
27
  *
30
28
  * ```sh
31
29
  * $ pulumi import auth0:index/ruleConfig:RuleConfig my_rule_config foo
@@ -48,11 +46,11 @@ export declare class RuleConfig extends pulumi.CustomResource {
48
46
  */
49
47
  static isInstance(obj: any): obj is RuleConfig;
50
48
  /**
51
- * String. Key for a rules configuration variable.
49
+ * Key for a rules configuration variable.
52
50
  */
53
51
  readonly key: pulumi.Output<string>;
54
52
  /**
55
- * String, Case-sensitive. Value for a rules configuration variable.
53
+ * Value for a rules configuration variable.
56
54
  */
57
55
  readonly value: pulumi.Output<string>;
58
56
  /**
@@ -69,11 +67,11 @@ export declare class RuleConfig extends pulumi.CustomResource {
69
67
  */
70
68
  export interface RuleConfigState {
71
69
  /**
72
- * String. Key for a rules configuration variable.
70
+ * Key for a rules configuration variable.
73
71
  */
74
72
  key?: pulumi.Input<string>;
75
73
  /**
76
- * String, Case-sensitive. Value for a rules configuration variable.
74
+ * Value for a rules configuration variable.
77
75
  */
78
76
  value?: pulumi.Input<string>;
79
77
  }
@@ -82,11 +80,11 @@ export interface RuleConfigState {
82
80
  */
83
81
  export interface RuleConfigArgs {
84
82
  /**
85
- * String. Key for a rules configuration variable.
83
+ * Key for a rules configuration variable.
86
84
  */
87
85
  key: pulumi.Input<string>;
88
86
  /**
89
- * String, Case-sensitive. Value for a rules configuration variable.
87
+ * Value for a rules configuration variable.
90
88
  */
91
89
  value: pulumi.Input<string>;
92
90
  }
package/ruleConfig.js CHANGED
@@ -6,9 +6,7 @@ exports.RuleConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
10
- * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables
11
- * that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
9
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
12
10
  *
13
11
  * ## Example Usage
14
12
  *
@@ -18,10 +16,10 @@ const utilities = require("./utilities");
18
16
  *
19
17
  * const myRule = new auth0.Rule("my_rule", {
20
18
  * enabled: true,
21
- * script: `function (user, context, callback) {
22
- * callback(null, user, context);
23
- * }
24
- * `,
19
+ * script: ` function (user, context, callback) {
20
+ * callback(null, user, context);
21
+ * }
22
+ * `,
25
23
  * });
26
24
  * const myRuleConfig = new auth0.RuleConfig("my_rule_config", {
27
25
  * key: "foo",
@@ -31,7 +29,7 @@ const utilities = require("./utilities");
31
29
  *
32
30
  * ## Import
33
31
  *
34
- * Existing rule configs can be imported using their key name, e.g.
32
+ * Existing rule configs can be imported using their key name. # Example
35
33
  *
36
34
  * ```sh
37
35
  * $ pulumi import auth0:index/ruleConfig:RuleConfig my_rule_config foo
@@ -55,9 +53,11 @@ class RuleConfig extends pulumi.CustomResource {
55
53
  throw new Error("Missing required property 'value'");
56
54
  }
57
55
  resourceInputs["key"] = args ? args.key : undefined;
58
- resourceInputs["value"] = args ? args.value : undefined;
56
+ resourceInputs["value"] = (args === null || args === void 0 ? void 0 : args.value) ? pulumi.secret(args.value) : undefined;
59
57
  }
60
58
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
59
+ const secretOpts = { additionalSecretOutputs: ["value"] };
60
+ opts = pulumi.mergeOptions(opts, secretOpts);
61
61
  super(RuleConfig.__pulumiType, name, resourceInputs, opts);
62
62
  }
63
63
  /**
package/ruleConfig.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ruleConfig.js","sourceRoot":"","sources":["../ruleConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IA6CjD,YAAY,IAAY,EAAE,WAA8C,EAAE,IAAmC;QACzG,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