@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/tenant.d.ts CHANGED
@@ -1,57 +1,68 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
3
4
  /**
4
- * With this resource, you can manage Auth0 tenants, including setting logos and support contact information, setting error
5
- * pages, and configuring default tenant behaviors.
5
+ * With this resource, you can manage Auth0 tenants, including setting logos and support contact information, setting error pages, and configuring default tenant behaviors.
6
6
  *
7
- * > Auth0 does not currently support creating tenants through the Management API. Therefore, this resource can only
7
+ * > Creating tenants through the Management API is not currently supported. Therefore, this resource can only
8
8
  * manage an existing tenant created through the Auth0 dashboard.
9
9
  *
10
- * Auth0 does not currently support adding/removing extensions on tenants through their API. The Auth0 dashboard must be
11
- * used to add/remove extensions.
12
- *
13
10
  * ## Example Usage
14
11
  *
15
12
  * ```typescript
16
13
  * import * as pulumi from "@pulumi/pulumi";
17
14
  * import * as auth0 from "@pulumi/auth0";
18
- * import * as fs from "fs";
19
15
  *
20
- * const tenant = new auth0.Tenant("tenant", {
16
+ * const myTenant = new auth0.Tenant("my_tenant", {
17
+ * allowedLogoutUrls: ["http://example.com/logout"],
21
18
  * changePassword: {
22
19
  * enabled: true,
23
- * html: fs.readFileSync("./password_reset.html"),
20
+ * html: "<html>Change Password</html>",
24
21
  * },
25
- * guardianMfaPage: {
26
- * enabled: true,
27
- * html: fs.readFileSync("./guardian_multifactor.html"),
28
- * },
29
- * defaultAudience: "<client_id>",
30
- * defaultDirectory: "Connection-Name",
22
+ * defaultRedirectionUri: "https://example.com/login",
23
+ * enabledLocales: ["en"],
31
24
  * errorPage: {
32
- * html: fs.readFileSync("./error.html"),
25
+ * html: "<html>Error Page</html>",
33
26
  * showLogLink: true,
34
- * url: "http://mysite/errors",
27
+ * url: "https://example.com/errors",
28
+ * },
29
+ * flags: {
30
+ * disableClickjackProtectionHeaders: true,
31
+ * disableFieldsMapFix: false,
32
+ * disableManagementApiSmsObfuscation: false,
33
+ * enablePublicSignupUserExistsError: true,
34
+ * noDiscloseEnterpriseConnections: false,
35
+ * universalLogin: true,
36
+ * useScopeDescriptionsForConsent: true,
35
37
  * },
36
38
  * friendlyName: "Tenant Name",
37
- * pictureUrl: "http://mysite/logo.png",
38
- * supportEmail: "support@mysite",
39
- * supportUrl: "http://mysite/support",
40
- * allowedLogoutUrls: ["http://mysite/logout"],
41
- * sessionLifetime: 46000,
42
- * sandboxVersion: "8",
39
+ * guardianMfaPage: {
40
+ * enabled: true,
41
+ * html: "<html>MFA</html>",
42
+ * },
43
+ * pictureUrl: "http://example.com/logo.png",
44
+ * sandboxVersion: "12",
43
45
  * sessionCookie: {
44
46
  * mode: "non-persistent",
45
47
  * },
48
+ * sessionLifetime: 8760,
49
+ * supportEmail: "support@example.com",
50
+ * supportUrl: "http://example.com/support",
51
+ * universalLogin: {
52
+ * colors: {
53
+ * pageBackground: "#000000",
54
+ * primary: "#0059d6",
55
+ * },
56
+ * },
46
57
  * });
47
58
  * ```
48
59
  *
49
60
  * ## Import
50
61
  *
51
- * As this is not a resource identifiable by an ID within the Auth0 Management API, tenant can be imported using a random string. We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4) e.g.
62
+ * As this is not a resource identifiable by an ID within the Auth0 Management API, tenant can be imported using a random string. # We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4) # Example
52
63
  *
53
64
  * ```sh
54
- * $ pulumi import auth0:index/tenant:Tenant tenant 82f4f21b-017a-319d-92e7-2291c1ca36c4
65
+ * $ pulumi import auth0:index/tenant:Tenant my_tenant 82f4f21b-017a-319d-92e7-2291c1ca36c4
55
66
  * ```
56
67
  */
57
68
  export declare class Tenant extends pulumi.CustomResource {
@@ -71,75 +82,75 @@ export declare class Tenant extends pulumi.CustomResource {
71
82
  */
72
83
  static isInstance(obj: any): obj is Tenant;
73
84
  /**
74
- * List(String). URLs that Auth0 may redirect to after logout.
85
+ * URLs that Auth0 may redirect to after logout.
75
86
  */
76
87
  readonly allowedLogoutUrls: pulumi.Output<string[]>;
77
88
  /**
78
- * List(Resource). Configuration settings for change passsword page. For details, see Change Password Page.
89
+ * Configuration settings for change password page.
79
90
  */
80
91
  readonly changePassword: pulumi.Output<outputs.TenantChangePassword>;
81
92
  /**
82
- * String. API Audience to use by default for API Authorization flows. This setting is equivalent to appending the audience to every authorization request made to the tenant for every application.
93
+ * API Audience to use by default for API Authorization flows. This setting is equivalent to appending the audience to every authorization request made to the tenant for every application.
83
94
  */
84
95
  readonly defaultAudience: pulumi.Output<string>;
85
96
  /**
86
- * String. Name of the connection to be used for Password Grant exchanges. Options include `auth0-adldap`, `ad`, `auth0`, `email`, `sms`, `waad`, and `adfs`.
97
+ * Name of the connection to be used for Password Grant exchanges. Options include `auth0-adldap`, `ad`, `auth0`, `email`, `sms`, `waad`, and `adfs`.
87
98
  */
88
99
  readonly defaultDirectory: pulumi.Output<string>;
89
100
  /**
90
- * String. The default absolute redirection uri, must be https and cannot contain a fragment.
101
+ * The default absolute redirection URI, must be https and cannot contain a fragment.
91
102
  */
92
103
  readonly defaultRedirectionUri: pulumi.Output<string>;
93
104
  /**
94
- * List(String). Supported locales for the user interface. The first locale in the list will be used to set the default locale.
105
+ * Supported locales for the user interface. The first locale in the list will be used to set the default locale.
95
106
  */
96
107
  readonly enabledLocales: pulumi.Output<string[]>;
97
108
  /**
98
- * List(Resource). Configuration settings for error pages. For details, see Error Page.
109
+ * Configuration settings for error pages.
99
110
  */
100
111
  readonly errorPage: pulumi.Output<outputs.TenantErrorPage>;
101
112
  /**
102
- * List(Resource). Configuration settings for tenant flags. For details, see Flags.
113
+ * Configuration settings for tenant flags.
103
114
  */
104
115
  readonly flags: pulumi.Output<outputs.TenantFlags>;
105
116
  /**
106
- * String. Friendly name for the tenant.
117
+ * Friendly name for the tenant.
107
118
  */
108
119
  readonly friendlyName: pulumi.Output<string>;
109
120
  /**
110
- * List(Resource). Configuration settings for the Guardian MFA page. For details, see Guardian MFA Page.
121
+ * Configuration settings for the Guardian MFA page.
111
122
  */
112
123
  readonly guardianMfaPage: pulumi.Output<outputs.TenantGuardianMfaPage>;
113
124
  /**
114
- * Integer. Number of hours during which a session can be inactive before the user must log in again.
125
+ * Number of hours during which a session can be inactive before the user must log in again.
115
126
  */
116
127
  readonly idleSessionLifetime: pulumi.Output<number | undefined>;
117
128
  /**
118
- * . String URL of logo to be shown for the tenant. Recommended size is 150px x 150px. If no URL is provided, the Auth0 logo will be used.
129
+ * URL of logo to be shown for the tenant. Recommended size is 150px x 150px. If no URL is provided, the Auth0 logo will be used.
119
130
  */
120
131
  readonly pictureUrl: pulumi.Output<string>;
121
132
  /**
122
- * String. Selected sandbox version for the extensibility environment, which allows you to use custom scripts to extend parts of Auth0's functionality.
133
+ * Selected sandbox version for the extensibility environment, which allows you to use custom scripts to extend parts of Auth0's functionality.
123
134
  */
124
135
  readonly sandboxVersion: pulumi.Output<string>;
125
136
  /**
126
- * List(Resource). Alters behavior of tenant's session cookie. Contains a single `mode` property that accepts two values: `"persistent"` or `"non-persistent"`.
137
+ * Alters behavior of tenant's session cookie. Contains a single `mode` property.
127
138
  */
128
139
  readonly sessionCookie: pulumi.Output<outputs.TenantSessionCookie>;
129
140
  /**
130
- * Integer. Number of hours during which a session will stay valid.
141
+ * Number of hours during which a session will stay valid.
131
142
  */
132
143
  readonly sessionLifetime: pulumi.Output<number | undefined>;
133
144
  /**
134
- * String. Support email address for authenticating users.
145
+ * Support email address for authenticating users.
135
146
  */
136
147
  readonly supportEmail: pulumi.Output<string>;
137
148
  /**
138
- * String. Support URL for authenticating users.
149
+ * Support URL for authenticating users.
139
150
  */
140
151
  readonly supportUrl: pulumi.Output<string>;
141
152
  /**
142
- * List(Resource). Configuration settings for Universal Login. For details, see Universal Login.
153
+ * Configuration settings for Universal Login.
143
154
  */
144
155
  readonly universalLogin: pulumi.Output<outputs.TenantUniversalLogin>;
145
156
  /**
@@ -156,75 +167,75 @@ export declare class Tenant extends pulumi.CustomResource {
156
167
  */
157
168
  export interface TenantState {
158
169
  /**
159
- * List(String). URLs that Auth0 may redirect to after logout.
170
+ * URLs that Auth0 may redirect to after logout.
160
171
  */
161
172
  allowedLogoutUrls?: pulumi.Input<pulumi.Input<string>[]>;
162
173
  /**
163
- * List(Resource). Configuration settings for change passsword page. For details, see Change Password Page.
174
+ * Configuration settings for change password page.
164
175
  */
165
176
  changePassword?: pulumi.Input<inputs.TenantChangePassword>;
166
177
  /**
167
- * String. API Audience to use by default for API Authorization flows. This setting is equivalent to appending the audience to every authorization request made to the tenant for every application.
178
+ * API Audience to use by default for API Authorization flows. This setting is equivalent to appending the audience to every authorization request made to the tenant for every application.
168
179
  */
169
180
  defaultAudience?: pulumi.Input<string>;
170
181
  /**
171
- * String. Name of the connection to be used for Password Grant exchanges. Options include `auth0-adldap`, `ad`, `auth0`, `email`, `sms`, `waad`, and `adfs`.
182
+ * Name of the connection to be used for Password Grant exchanges. Options include `auth0-adldap`, `ad`, `auth0`, `email`, `sms`, `waad`, and `adfs`.
172
183
  */
173
184
  defaultDirectory?: pulumi.Input<string>;
174
185
  /**
175
- * String. The default absolute redirection uri, must be https and cannot contain a fragment.
186
+ * The default absolute redirection URI, must be https and cannot contain a fragment.
176
187
  */
177
188
  defaultRedirectionUri?: pulumi.Input<string>;
178
189
  /**
179
- * List(String). Supported locales for the user interface. The first locale in the list will be used to set the default locale.
190
+ * Supported locales for the user interface. The first locale in the list will be used to set the default locale.
180
191
  */
181
192
  enabledLocales?: pulumi.Input<pulumi.Input<string>[]>;
182
193
  /**
183
- * List(Resource). Configuration settings for error pages. For details, see Error Page.
194
+ * Configuration settings for error pages.
184
195
  */
185
196
  errorPage?: pulumi.Input<inputs.TenantErrorPage>;
186
197
  /**
187
- * List(Resource). Configuration settings for tenant flags. For details, see Flags.
198
+ * Configuration settings for tenant flags.
188
199
  */
189
200
  flags?: pulumi.Input<inputs.TenantFlags>;
190
201
  /**
191
- * String. Friendly name for the tenant.
202
+ * Friendly name for the tenant.
192
203
  */
193
204
  friendlyName?: pulumi.Input<string>;
194
205
  /**
195
- * List(Resource). Configuration settings for the Guardian MFA page. For details, see Guardian MFA Page.
206
+ * Configuration settings for the Guardian MFA page.
196
207
  */
197
208
  guardianMfaPage?: pulumi.Input<inputs.TenantGuardianMfaPage>;
198
209
  /**
199
- * Integer. Number of hours during which a session can be inactive before the user must log in again.
210
+ * Number of hours during which a session can be inactive before the user must log in again.
200
211
  */
201
212
  idleSessionLifetime?: pulumi.Input<number>;
202
213
  /**
203
- * . String URL of logo to be shown for the tenant. Recommended size is 150px x 150px. If no URL is provided, the Auth0 logo will be used.
214
+ * URL of logo to be shown for the tenant. Recommended size is 150px x 150px. If no URL is provided, the Auth0 logo will be used.
204
215
  */
205
216
  pictureUrl?: pulumi.Input<string>;
206
217
  /**
207
- * String. Selected sandbox version for the extensibility environment, which allows you to use custom scripts to extend parts of Auth0's functionality.
218
+ * Selected sandbox version for the extensibility environment, which allows you to use custom scripts to extend parts of Auth0's functionality.
208
219
  */
209
220
  sandboxVersion?: pulumi.Input<string>;
210
221
  /**
211
- * List(Resource). Alters behavior of tenant's session cookie. Contains a single `mode` property that accepts two values: `"persistent"` or `"non-persistent"`.
222
+ * Alters behavior of tenant's session cookie. Contains a single `mode` property.
212
223
  */
213
224
  sessionCookie?: pulumi.Input<inputs.TenantSessionCookie>;
214
225
  /**
215
- * Integer. Number of hours during which a session will stay valid.
226
+ * Number of hours during which a session will stay valid.
216
227
  */
217
228
  sessionLifetime?: pulumi.Input<number>;
218
229
  /**
219
- * String. Support email address for authenticating users.
230
+ * Support email address for authenticating users.
220
231
  */
221
232
  supportEmail?: pulumi.Input<string>;
222
233
  /**
223
- * String. Support URL for authenticating users.
234
+ * Support URL for authenticating users.
224
235
  */
225
236
  supportUrl?: pulumi.Input<string>;
226
237
  /**
227
- * List(Resource). Configuration settings for Universal Login. For details, see Universal Login.
238
+ * Configuration settings for Universal Login.
228
239
  */
229
240
  universalLogin?: pulumi.Input<inputs.TenantUniversalLogin>;
230
241
  }
@@ -233,75 +244,75 @@ export interface TenantState {
233
244
  */
234
245
  export interface TenantArgs {
235
246
  /**
236
- * List(String). URLs that Auth0 may redirect to after logout.
247
+ * URLs that Auth0 may redirect to after logout.
237
248
  */
238
249
  allowedLogoutUrls?: pulumi.Input<pulumi.Input<string>[]>;
239
250
  /**
240
- * List(Resource). Configuration settings for change passsword page. For details, see Change Password Page.
251
+ * Configuration settings for change password page.
241
252
  */
242
253
  changePassword?: pulumi.Input<inputs.TenantChangePassword>;
243
254
  /**
244
- * String. API Audience to use by default for API Authorization flows. This setting is equivalent to appending the audience to every authorization request made to the tenant for every application.
255
+ * API Audience to use by default for API Authorization flows. This setting is equivalent to appending the audience to every authorization request made to the tenant for every application.
245
256
  */
246
257
  defaultAudience?: pulumi.Input<string>;
247
258
  /**
248
- * String. Name of the connection to be used for Password Grant exchanges. Options include `auth0-adldap`, `ad`, `auth0`, `email`, `sms`, `waad`, and `adfs`.
259
+ * Name of the connection to be used for Password Grant exchanges. Options include `auth0-adldap`, `ad`, `auth0`, `email`, `sms`, `waad`, and `adfs`.
249
260
  */
250
261
  defaultDirectory?: pulumi.Input<string>;
251
262
  /**
252
- * String. The default absolute redirection uri, must be https and cannot contain a fragment.
263
+ * The default absolute redirection URI, must be https and cannot contain a fragment.
253
264
  */
254
265
  defaultRedirectionUri?: pulumi.Input<string>;
255
266
  /**
256
- * List(String). Supported locales for the user interface. The first locale in the list will be used to set the default locale.
267
+ * Supported locales for the user interface. The first locale in the list will be used to set the default locale.
257
268
  */
258
269
  enabledLocales?: pulumi.Input<pulumi.Input<string>[]>;
259
270
  /**
260
- * List(Resource). Configuration settings for error pages. For details, see Error Page.
271
+ * Configuration settings for error pages.
261
272
  */
262
273
  errorPage?: pulumi.Input<inputs.TenantErrorPage>;
263
274
  /**
264
- * List(Resource). Configuration settings for tenant flags. For details, see Flags.
275
+ * Configuration settings for tenant flags.
265
276
  */
266
277
  flags?: pulumi.Input<inputs.TenantFlags>;
267
278
  /**
268
- * String. Friendly name for the tenant.
279
+ * Friendly name for the tenant.
269
280
  */
270
281
  friendlyName?: pulumi.Input<string>;
271
282
  /**
272
- * List(Resource). Configuration settings for the Guardian MFA page. For details, see Guardian MFA Page.
283
+ * Configuration settings for the Guardian MFA page.
273
284
  */
274
285
  guardianMfaPage?: pulumi.Input<inputs.TenantGuardianMfaPage>;
275
286
  /**
276
- * Integer. Number of hours during which a session can be inactive before the user must log in again.
287
+ * Number of hours during which a session can be inactive before the user must log in again.
277
288
  */
278
289
  idleSessionLifetime?: pulumi.Input<number>;
279
290
  /**
280
- * . String URL of logo to be shown for the tenant. Recommended size is 150px x 150px. If no URL is provided, the Auth0 logo will be used.
291
+ * URL of logo to be shown for the tenant. Recommended size is 150px x 150px. If no URL is provided, the Auth0 logo will be used.
281
292
  */
282
293
  pictureUrl?: pulumi.Input<string>;
283
294
  /**
284
- * String. Selected sandbox version for the extensibility environment, which allows you to use custom scripts to extend parts of Auth0's functionality.
295
+ * Selected sandbox version for the extensibility environment, which allows you to use custom scripts to extend parts of Auth0's functionality.
285
296
  */
286
297
  sandboxVersion?: pulumi.Input<string>;
287
298
  /**
288
- * List(Resource). Alters behavior of tenant's session cookie. Contains a single `mode` property that accepts two values: `"persistent"` or `"non-persistent"`.
299
+ * Alters behavior of tenant's session cookie. Contains a single `mode` property.
289
300
  */
290
301
  sessionCookie?: pulumi.Input<inputs.TenantSessionCookie>;
291
302
  /**
292
- * Integer. Number of hours during which a session will stay valid.
303
+ * Number of hours during which a session will stay valid.
293
304
  */
294
305
  sessionLifetime?: pulumi.Input<number>;
295
306
  /**
296
- * String. Support email address for authenticating users.
307
+ * Support email address for authenticating users.
297
308
  */
298
309
  supportEmail?: pulumi.Input<string>;
299
310
  /**
300
- * String. Support URL for authenticating users.
311
+ * Support URL for authenticating users.
301
312
  */
302
313
  supportUrl?: pulumi.Input<string>;
303
314
  /**
304
- * List(Resource). Configuration settings for Universal Login. For details, see Universal Login.
315
+ * Configuration settings for Universal Login.
305
316
  */
306
317
  universalLogin?: pulumi.Input<inputs.TenantUniversalLogin>;
307
318
  }
package/tenant.js CHANGED
@@ -6,57 +6,67 @@ exports.Tenant = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * With this resource, you can manage Auth0 tenants, including setting logos and support contact information, setting error
10
- * pages, and configuring default tenant behaviors.
9
+ * With this resource, you can manage Auth0 tenants, including setting logos and support contact information, setting error pages, and configuring default tenant behaviors.
11
10
  *
12
- * > Auth0 does not currently support creating tenants through the Management API. Therefore, this resource can only
11
+ * > Creating tenants through the Management API is not currently supported. Therefore, this resource can only
13
12
  * manage an existing tenant created through the Auth0 dashboard.
14
13
  *
15
- * Auth0 does not currently support adding/removing extensions on tenants through their API. The Auth0 dashboard must be
16
- * used to add/remove extensions.
17
- *
18
14
  * ## Example Usage
19
15
  *
20
16
  * ```typescript
21
17
  * import * as pulumi from "@pulumi/pulumi";
22
18
  * import * as auth0 from "@pulumi/auth0";
23
- * import * as fs from "fs";
24
19
  *
25
- * const tenant = new auth0.Tenant("tenant", {
20
+ * const myTenant = new auth0.Tenant("my_tenant", {
21
+ * allowedLogoutUrls: ["http://example.com/logout"],
26
22
  * changePassword: {
27
23
  * enabled: true,
28
- * html: fs.readFileSync("./password_reset.html"),
24
+ * html: "<html>Change Password</html>",
29
25
  * },
30
- * guardianMfaPage: {
31
- * enabled: true,
32
- * html: fs.readFileSync("./guardian_multifactor.html"),
33
- * },
34
- * defaultAudience: "<client_id>",
35
- * defaultDirectory: "Connection-Name",
26
+ * defaultRedirectionUri: "https://example.com/login",
27
+ * enabledLocales: ["en"],
36
28
  * errorPage: {
37
- * html: fs.readFileSync("./error.html"),
29
+ * html: "<html>Error Page</html>",
38
30
  * showLogLink: true,
39
- * url: "http://mysite/errors",
31
+ * url: "https://example.com/errors",
32
+ * },
33
+ * flags: {
34
+ * disableClickjackProtectionHeaders: true,
35
+ * disableFieldsMapFix: false,
36
+ * disableManagementApiSmsObfuscation: false,
37
+ * enablePublicSignupUserExistsError: true,
38
+ * noDiscloseEnterpriseConnections: false,
39
+ * universalLogin: true,
40
+ * useScopeDescriptionsForConsent: true,
40
41
  * },
41
42
  * friendlyName: "Tenant Name",
42
- * pictureUrl: "http://mysite/logo.png",
43
- * supportEmail: "support@mysite",
44
- * supportUrl: "http://mysite/support",
45
- * allowedLogoutUrls: ["http://mysite/logout"],
46
- * sessionLifetime: 46000,
47
- * sandboxVersion: "8",
43
+ * guardianMfaPage: {
44
+ * enabled: true,
45
+ * html: "<html>MFA</html>",
46
+ * },
47
+ * pictureUrl: "http://example.com/logo.png",
48
+ * sandboxVersion: "12",
48
49
  * sessionCookie: {
49
50
  * mode: "non-persistent",
50
51
  * },
52
+ * sessionLifetime: 8760,
53
+ * supportEmail: "support@example.com",
54
+ * supportUrl: "http://example.com/support",
55
+ * universalLogin: {
56
+ * colors: {
57
+ * pageBackground: "#000000",
58
+ * primary: "#0059d6",
59
+ * },
60
+ * },
51
61
  * });
52
62
  * ```
53
63
  *
54
64
  * ## Import
55
65
  *
56
- * As this is not a resource identifiable by an ID within the Auth0 Management API, tenant can be imported using a random string. We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4) e.g.
66
+ * As this is not a resource identifiable by an ID within the Auth0 Management API, tenant can be imported using a random string. # We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4) # Example
57
67
  *
58
68
  * ```sh
59
- * $ pulumi import auth0:index/tenant:Tenant tenant 82f4f21b-017a-319d-92e7-2291c1ca36c4
69
+ * $ pulumi import auth0:index/tenant:Tenant my_tenant 82f4f21b-017a-319d-92e7-2291c1ca36c4
60
70
  * ```
61
71
  */
62
72
  class Tenant extends pulumi.CustomResource {
package/tenant.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.js","sourceRoot":"","sources":["../tenant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG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AC7D,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,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBA4JC;AA9IG,gBAAgB;AACO,mBAAY,GAAG,2BAA2B,CAAC"}
@@ -1,12 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
- import { input as inputs, output as outputs } from "./types";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
3
4
  /**
4
- * With this resource, you can bind an action to a trigger. Once an action is
5
- * created and deployed, it can be attached (i.e. bound) to a trigger so that it
6
- * will be executed as part of a flow.
7
- *
8
- * The list of actions reflects the order in which they will be executed during the
9
- * appropriate flow.
5
+ * With this resource, you can bind an action to a trigger. Once an action is created and deployed, it can be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions reflects the order in which they will be executed during the appropriate flow.
10
6
  *
11
7
  * ## Example Usage
12
8
  *
@@ -15,26 +11,26 @@ import { input as inputs, output as outputs } from "./types";
15
11
  * import * as auth0 from "@pulumi/auth0";
16
12
  *
17
13
  * const actionFoo = new auth0.Action("actionFoo", {
18
- * supportedTriggers: {
19
- * id: "post-login",
20
- * version: "v2",
21
- * },
22
14
  * code: `exports.onContinuePostLogin = async (event, api) => {
23
- * console.log("foo")
15
+ * console.log("foo");
24
16
  * };"
25
17
  * `,
26
18
  * deploy: true,
27
- * });
28
- * const actionBar = new auth0.Action("actionBar", {
29
19
  * supportedTriggers: {
30
20
  * id: "post-login",
31
- * version: "v2",
21
+ * version: "v3",
32
22
  * },
23
+ * });
24
+ * const actionBar = new auth0.Action("actionBar", {
33
25
  * code: `exports.onContinuePostLogin = async (event, api) => {
34
- * console.log("bar")
26
+ * console.log("bar");
35
27
  * };"
36
28
  * `,
37
29
  * deploy: true,
30
+ * supportedTriggers: {
31
+ * id: "post-login",
32
+ * version: "v3",
33
+ * },
38
34
  * });
39
35
  * const loginFlow = new auth0.TriggerBinding("loginFlow", {
40
36
  * trigger: "post-login",
@@ -53,7 +49,7 @@ import { input as inputs, output as outputs } from "./types";
53
49
  *
54
50
  * ## Import
55
51
  *
56
- * auth0_trigger_binding can be imported using the bindings trigger ID, e.g.
52
+ * This resource can be imported using the bindings trigger ID. # Example
57
53
  *
58
54
  * ```sh
59
55
  * $ pulumi import auth0:index/triggerBinding:TriggerBinding example "post-login"
@@ -76,12 +72,11 @@ export declare class TriggerBinding extends pulumi.CustomResource {
76
72
  */
77
73
  static isInstance(obj: any): obj is TriggerBinding;
78
74
  /**
79
- * The actions bound to this trigger. For details, see
80
- * Actions.
75
+ * The actions bound to this trigger
81
76
  */
82
77
  readonly actions: pulumi.Output<outputs.TriggerBindingAction[]>;
83
78
  /**
84
- * The id of the trigger to bind with
79
+ * The ID of the trigger to bind with.
85
80
  */
86
81
  readonly trigger: pulumi.Output<string>;
87
82
  /**
@@ -98,12 +93,11 @@ export declare class TriggerBinding extends pulumi.CustomResource {
98
93
  */
99
94
  export interface TriggerBindingState {
100
95
  /**
101
- * The actions bound to this trigger. For details, see
102
- * Actions.
96
+ * The actions bound to this trigger
103
97
  */
104
98
  actions?: pulumi.Input<pulumi.Input<inputs.TriggerBindingAction>[]>;
105
99
  /**
106
- * The id of the trigger to bind with
100
+ * The ID of the trigger to bind with.
107
101
  */
108
102
  trigger?: pulumi.Input<string>;
109
103
  }
@@ -112,12 +106,11 @@ export interface TriggerBindingState {
112
106
  */
113
107
  export interface TriggerBindingArgs {
114
108
  /**
115
- * The actions bound to this trigger. For details, see
116
- * Actions.
109
+ * The actions bound to this trigger
117
110
  */
118
111
  actions: pulumi.Input<pulumi.Input<inputs.TriggerBindingAction>[]>;
119
112
  /**
120
- * The id of the trigger to bind with
113
+ * The ID of the trigger to bind with.
121
114
  */
122
115
  trigger: pulumi.Input<string>;
123
116
  }
package/triggerBinding.js CHANGED
@@ -6,12 +6,7 @@ exports.TriggerBinding = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * With this resource, you can bind an action to a trigger. Once an action is
10
- * created and deployed, it can be attached (i.e. bound) to a trigger so that it
11
- * will be executed as part of a flow.
12
- *
13
- * The list of actions reflects the order in which they will be executed during the
14
- * appropriate flow.
9
+ * With this resource, you can bind an action to a trigger. Once an action is created and deployed, it can be attached (i.e. bound) to a trigger so that it will be executed as part of a flow. The list of actions reflects the order in which they will be executed during the appropriate flow.
15
10
  *
16
11
  * ## Example Usage
17
12
  *
@@ -20,26 +15,26 @@ const utilities = require("./utilities");
20
15
  * import * as auth0 from "@pulumi/auth0";
21
16
  *
22
17
  * const actionFoo = new auth0.Action("actionFoo", {
23
- * supportedTriggers: {
24
- * id: "post-login",
25
- * version: "v2",
26
- * },
27
18
  * code: `exports.onContinuePostLogin = async (event, api) => {
28
- * console.log("foo")
19
+ * console.log("foo");
29
20
  * };"
30
21
  * `,
31
22
  * deploy: true,
32
- * });
33
- * const actionBar = new auth0.Action("actionBar", {
34
23
  * supportedTriggers: {
35
24
  * id: "post-login",
36
- * version: "v2",
25
+ * version: "v3",
37
26
  * },
27
+ * });
28
+ * const actionBar = new auth0.Action("actionBar", {
38
29
  * code: `exports.onContinuePostLogin = async (event, api) => {
39
- * console.log("bar")
30
+ * console.log("bar");
40
31
  * };"
41
32
  * `,
42
33
  * deploy: true,
34
+ * supportedTriggers: {
35
+ * id: "post-login",
36
+ * version: "v3",
37
+ * },
43
38
  * });
44
39
  * const loginFlow = new auth0.TriggerBinding("loginFlow", {
45
40
  * trigger: "post-login",
@@ -58,7 +53,7 @@ const utilities = require("./utilities");
58
53
  *
59
54
  * ## Import
60
55
  *
61
- * auth0_trigger_binding can be imported using the bindings trigger ID, e.g.
56
+ * This resource can be imported using the bindings trigger ID. # Example
62
57
  *
63
58
  * ```sh
64
59
  * $ pulumi import auth0:index/triggerBinding:TriggerBinding example "post-login"