@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.
- package/action.d.ts +25 -72
- package/action.js +2 -50
- package/action.js.map +1 -1
- package/attackProtection.d.ts +9 -8
- package/attackProtection.js +4 -4
- package/attackProtection.js.map +1 -1
- package/branding.d.ts +31 -30
- package/branding.js +14 -8
- package/branding.js.map +1 -1
- package/brandingTheme.d.ts +156 -0
- package/brandingTheme.js +165 -0
- package/brandingTheme.js.map +1 -0
- package/client.d.ts +145 -126
- package/client.js +26 -22
- package/client.js.map +1 -1
- package/clientGrant.d.ts +12 -13
- package/clientGrant.js +3 -4
- package/clientGrant.js.map +1 -1
- package/config/vars.d.ts +22 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/connection.d.ts +256 -41
- package/connection.js +236 -4
- package/connection.js.map +1 -1
- package/customDomain.d.ts +42 -18
- package/customDomain.js +6 -3
- package/customDomain.js.map +1 -1
- package/customDomainVerification.d.ts +15 -9
- package/customDomainVerification.js +4 -4
- package/customDomainVerification.js.map +1 -1
- package/email.d.ts +37 -18
- package/email.js +23 -5
- package/email.js.map +1 -1
- package/emailTemplate.d.ts +29 -32
- package/emailTemplate.js +2 -5
- package/emailTemplate.js.map +1 -1
- package/getClient.d.ts +111 -6
- package/getClient.js +3 -1
- package/getClient.js.map +1 -1
- package/getGlobalClient.d.ts +98 -31
- package/getGlobalClient.js +3 -11
- package/getGlobalClient.js.map +1 -1
- package/getTenant.d.ts +3 -3
- package/getTenant.js +1 -1
- package/globalClient.d.ts +333 -2
- package/globalClient.js +7 -3
- package/globalClient.js.map +1 -1
- package/guardian.d.ts +32 -56
- package/guardian.js +3 -4
- package/guardian.js.map +1 -1
- package/hook.d.ts +12 -18
- package/hook.js +9 -10
- package/hook.js.map +1 -1
- package/index.d.ts +91 -30
- package/index.js +94 -101
- package/index.js.map +1 -1
- package/logStream.d.ts +34 -18
- package/logStream.js +17 -2
- package/logStream.js.map +1 -1
- package/organization.d.ts +22 -55
- package/organization.js +8 -17
- package/organization.js.map +1 -1
- package/organizationConnection.d.ts +7 -5
- package/organizationConnection.js +7 -5
- package/organizationConnection.js.map +1 -1
- package/organizationMember.d.ts +27 -15
- package/organizationMember.js +18 -6
- package/organizationMember.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/prompt.d.ts +12 -12
- package/prompt.js +4 -4
- package/promptCustomText.d.ts +8 -9
- package/promptCustomText.js +2 -3
- package/promptCustomText.js.map +1 -1
- package/provider.d.ts +41 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/resourceServer.d.ts +47 -46
- package/resourceServer.js +4 -1
- package/resourceServer.js.map +1 -1
- package/role.d.ts +13 -17
- package/role.js +2 -4
- package/role.js.map +1 -1
- package/rule.d.ts +19 -25
- package/rule.js +6 -12
- package/rule.js.map +1 -1
- package/ruleConfig.d.ts +12 -14
- package/ruleConfig.js +9 -9
- package/ruleConfig.js.map +1 -1
- package/tenant.d.ts +91 -80
- package/tenant.js +35 -25
- package/tenant.js.map +1 -1
- package/triggerBinding.d.ts +19 -26
- package/triggerBinding.js +11 -16
- package/triggerBinding.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +488 -425
- package/types/output.d.ts +500 -435
- package/user.d.ts +87 -44
- package/user.js +6 -6
- package/user.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/promptCustomText.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* With this resource, you can manage custom text on your Auth0 prompts. You can read more about custom texts
|
|
4
|
-
* [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts).
|
|
3
|
+
* With this resource, you can manage custom text on your Auth0 prompts. You can read more about custom texts [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts).
|
|
5
4
|
*
|
|
6
5
|
* ## Example Usage
|
|
7
6
|
*
|
|
@@ -40,7 +39,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
40
39
|
*
|
|
41
40
|
* ## Import
|
|
42
41
|
*
|
|
43
|
-
* This resource can be imported
|
|
42
|
+
* This resource can be imported by specifying the prompt and language separated by ":". # Example
|
|
44
43
|
*
|
|
45
44
|
* ```sh
|
|
46
45
|
* $ pulumi import auth0:index/promptCustomText:PromptCustomText example login:en
|
|
@@ -63,7 +62,7 @@ export declare class PromptCustomText extends pulumi.CustomResource {
|
|
|
63
62
|
*/
|
|
64
63
|
static isInstance(obj: any): obj is PromptCustomText;
|
|
65
64
|
/**
|
|
66
|
-
* JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values)
|
|
65
|
+
* JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values).
|
|
67
66
|
*/
|
|
68
67
|
readonly body: pulumi.Output<string>;
|
|
69
68
|
/**
|
|
@@ -71,7 +70,7 @@ export declare class PromptCustomText extends pulumi.CustomResource {
|
|
|
71
70
|
*/
|
|
72
71
|
readonly language: pulumi.Output<string>;
|
|
73
72
|
/**
|
|
74
|
-
* The term `prompt` is used to refer to a specific step in the login flow. Options include `login`, `login-id`, `login-password`, `login-email-verification`, `signup`, `signup-id`, `signup-password`, `reset-password`, `consent`, `mfa-push`, `mfa-otp`, `mfa-voice`, `mfa-phone`, `mfa-webauthn`, `mfa-sms`, `mfa-email`, `mfa-recovery-code`, `mfa`, `status`, `device-flow`, `email-verification`, `email-otp-challenge`, `organizations`, `invitation`, `common
|
|
73
|
+
* The term `prompt` is used to refer to a specific step in the login flow. Options include `login`, `login-id`, `login-password`, `login-email-verification`, `signup`, `signup-id`, `signup-password`, `reset-password`, `consent`, `mfa-push`, `mfa-otp`, `mfa-voice`, `mfa-phone`, `mfa-webauthn`, `mfa-sms`, `mfa-email`, `mfa-recovery-code`, `mfa`, `status`, `device-flow`, `email-verification`, `email-otp-challenge`, `organizations`, `invitation`, `common`.
|
|
75
74
|
*/
|
|
76
75
|
readonly prompt: pulumi.Output<string>;
|
|
77
76
|
/**
|
|
@@ -88,7 +87,7 @@ export declare class PromptCustomText extends pulumi.CustomResource {
|
|
|
88
87
|
*/
|
|
89
88
|
export interface PromptCustomTextState {
|
|
90
89
|
/**
|
|
91
|
-
* JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values)
|
|
90
|
+
* JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values).
|
|
92
91
|
*/
|
|
93
92
|
body?: pulumi.Input<string>;
|
|
94
93
|
/**
|
|
@@ -96,7 +95,7 @@ export interface PromptCustomTextState {
|
|
|
96
95
|
*/
|
|
97
96
|
language?: pulumi.Input<string>;
|
|
98
97
|
/**
|
|
99
|
-
* The term `prompt` is used to refer to a specific step in the login flow. Options include `login`, `login-id`, `login-password`, `login-email-verification`, `signup`, `signup-id`, `signup-password`, `reset-password`, `consent`, `mfa-push`, `mfa-otp`, `mfa-voice`, `mfa-phone`, `mfa-webauthn`, `mfa-sms`, `mfa-email`, `mfa-recovery-code`, `mfa`, `status`, `device-flow`, `email-verification`, `email-otp-challenge`, `organizations`, `invitation`, `common
|
|
98
|
+
* The term `prompt` is used to refer to a specific step in the login flow. Options include `login`, `login-id`, `login-password`, `login-email-verification`, `signup`, `signup-id`, `signup-password`, `reset-password`, `consent`, `mfa-push`, `mfa-otp`, `mfa-voice`, `mfa-phone`, `mfa-webauthn`, `mfa-sms`, `mfa-email`, `mfa-recovery-code`, `mfa`, `status`, `device-flow`, `email-verification`, `email-otp-challenge`, `organizations`, `invitation`, `common`.
|
|
100
99
|
*/
|
|
101
100
|
prompt?: pulumi.Input<string>;
|
|
102
101
|
}
|
|
@@ -105,7 +104,7 @@ export interface PromptCustomTextState {
|
|
|
105
104
|
*/
|
|
106
105
|
export interface PromptCustomTextArgs {
|
|
107
106
|
/**
|
|
108
|
-
* JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values)
|
|
107
|
+
* JSON containing the custom texts. You can check the options for each prompt [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts#prompt-values).
|
|
109
108
|
*/
|
|
110
109
|
body: pulumi.Input<string>;
|
|
111
110
|
/**
|
|
@@ -113,7 +112,7 @@ export interface PromptCustomTextArgs {
|
|
|
113
112
|
*/
|
|
114
113
|
language: pulumi.Input<string>;
|
|
115
114
|
/**
|
|
116
|
-
* The term `prompt` is used to refer to a specific step in the login flow. Options include `login`, `login-id`, `login-password`, `login-email-verification`, `signup`, `signup-id`, `signup-password`, `reset-password`, `consent`, `mfa-push`, `mfa-otp`, `mfa-voice`, `mfa-phone`, `mfa-webauthn`, `mfa-sms`, `mfa-email`, `mfa-recovery-code`, `mfa`, `status`, `device-flow`, `email-verification`, `email-otp-challenge`, `organizations`, `invitation`, `common
|
|
115
|
+
* The term `prompt` is used to refer to a specific step in the login flow. Options include `login`, `login-id`, `login-password`, `login-email-verification`, `signup`, `signup-id`, `signup-password`, `reset-password`, `consent`, `mfa-push`, `mfa-otp`, `mfa-voice`, `mfa-phone`, `mfa-webauthn`, `mfa-sms`, `mfa-email`, `mfa-recovery-code`, `mfa`, `status`, `device-flow`, `email-verification`, `email-otp-challenge`, `organizations`, `invitation`, `common`.
|
|
117
116
|
*/
|
|
118
117
|
prompt: pulumi.Input<string>;
|
|
119
118
|
}
|
package/promptCustomText.js
CHANGED
|
@@ -6,8 +6,7 @@ exports.PromptCustomText = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* With this resource, you can manage custom text on your Auth0 prompts. You can read more about custom texts
|
|
10
|
-
* [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts).
|
|
9
|
+
* With this resource, you can manage custom text on your Auth0 prompts. You can read more about custom texts [here](https://auth0.com/docs/customize/universal-login-pages/customize-login-text-prompts).
|
|
11
10
|
*
|
|
12
11
|
* ## Example Usage
|
|
13
12
|
*
|
|
@@ -46,7 +45,7 @@ const utilities = require("./utilities");
|
|
|
46
45
|
*
|
|
47
46
|
* ## Import
|
|
48
47
|
*
|
|
49
|
-
* This resource can be imported
|
|
48
|
+
* This resource can be imported by specifying the prompt and language separated by ":". # Example
|
|
50
49
|
*
|
|
51
50
|
* ```sh
|
|
52
51
|
* $ pulumi import auth0:index/promptCustomText:PromptCustomText example login:en
|
package/promptCustomText.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promptCustomText.js","sourceRoot":"","sources":["../promptCustomText.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"promptCustomText.js","sourceRoot":"","sources":["../promptCustomText.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,gBAAiB,SAAQ,MAAM,CAAC,cAAc;IAiDvD,YAAY,IAAY,EAAE,WAA0D,EAAE,IAAmC;QACrH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgD,CAAC;YAC/D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,UAAU,CAAC,GAAG,KAA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C,CAAC;IACrE,CAAC;IAzED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6B,EAAE,IAAmC;QAC3H,OAAO,IAAI,gBAAgB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvE,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,gBAAgB,CAAC,YAAY,CAAC;IACjE,CAAC;;AA1BL,4CA2EC;AA7DG,gBAAgB;AACO,6BAAY,GAAG,+CAA+C,CAAC"}
|
package/provider.d.ts
CHANGED
|
@@ -11,9 +11,28 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
11
11
|
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
12
12
|
*/
|
|
13
13
|
static isInstance(obj: any): obj is Provider;
|
|
14
|
+
/**
|
|
15
|
+
* Your Auth0 [management api access
|
|
16
|
+
* token](https://auth0.com/docs/security/tokens/access-tokens/management-api-access-tokens). It can also be sourced from
|
|
17
|
+
* the `AUTH0_API_TOKEN` environment variable. It can be used instead of `client_id` + `client_secret`. If both are
|
|
18
|
+
* specified, `api_token` will be used over `client_id` + `client_secret` fields.
|
|
19
|
+
*/
|
|
14
20
|
readonly apiToken: pulumi.Output<string | undefined>;
|
|
21
|
+
/**
|
|
22
|
+
* Your Auth0 audience when using a custom domain. It can also be sourced from the `AUTH0_AUDIENCE` environment variable.
|
|
23
|
+
*/
|
|
24
|
+
readonly audience: pulumi.Output<string | undefined>;
|
|
25
|
+
/**
|
|
26
|
+
* Your Auth0 client ID. It can also be sourced from the `AUTH0_CLIENT_ID` environment variable.
|
|
27
|
+
*/
|
|
15
28
|
readonly clientId: pulumi.Output<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Your Auth0 client secret. It can also be sourced from the `AUTH0_CLIENT_SECRET` environment variable.
|
|
31
|
+
*/
|
|
16
32
|
readonly clientSecret: pulumi.Output<string | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* Your Auth0 domain name. It can also be sourced from the `AUTH0_DOMAIN` environment variable.
|
|
35
|
+
*/
|
|
17
36
|
readonly domain: pulumi.Output<string>;
|
|
18
37
|
/**
|
|
19
38
|
* Create a Provider resource with the given unique name, arguments, and options.
|
|
@@ -28,9 +47,31 @@ export declare class Provider extends pulumi.ProviderResource {
|
|
|
28
47
|
* The set of arguments for constructing a Provider resource.
|
|
29
48
|
*/
|
|
30
49
|
export interface ProviderArgs {
|
|
50
|
+
/**
|
|
51
|
+
* Your Auth0 [management api access
|
|
52
|
+
* token](https://auth0.com/docs/security/tokens/access-tokens/management-api-access-tokens). It can also be sourced from
|
|
53
|
+
* the `AUTH0_API_TOKEN` environment variable. It can be used instead of `client_id` + `client_secret`. If both are
|
|
54
|
+
* specified, `api_token` will be used over `client_id` + `client_secret` fields.
|
|
55
|
+
*/
|
|
31
56
|
apiToken?: pulumi.Input<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Your Auth0 audience when using a custom domain. It can also be sourced from the `AUTH0_AUDIENCE` environment variable.
|
|
59
|
+
*/
|
|
60
|
+
audience?: pulumi.Input<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Your Auth0 client ID. It can also be sourced from the `AUTH0_CLIENT_ID` environment variable.
|
|
63
|
+
*/
|
|
32
64
|
clientId?: pulumi.Input<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Your Auth0 client secret. It can also be sourced from the `AUTH0_CLIENT_SECRET` environment variable.
|
|
67
|
+
*/
|
|
33
68
|
clientSecret?: pulumi.Input<string>;
|
|
69
|
+
/**
|
|
70
|
+
* Indicates whether to turn on debug mode.
|
|
71
|
+
*/
|
|
34
72
|
debug?: pulumi.Input<boolean>;
|
|
73
|
+
/**
|
|
74
|
+
* Your Auth0 domain name. It can also be sourced from the `AUTH0_DOMAIN` environment variable.
|
|
75
|
+
*/
|
|
35
76
|
domain: pulumi.Input<string>;
|
|
36
77
|
}
|
package/provider.js
CHANGED
|
@@ -28,6 +28,7 @@ class Provider extends pulumi.ProviderResource {
|
|
|
28
28
|
throw new Error("Missing required property 'domain'");
|
|
29
29
|
}
|
|
30
30
|
resourceInputs["apiToken"] = args ? args.apiToken : undefined;
|
|
31
|
+
resourceInputs["audience"] = args ? args.audience : undefined;
|
|
31
32
|
resourceInputs["clientId"] = args ? args.clientId : undefined;
|
|
32
33
|
resourceInputs["clientSecret"] = args ? args.clientSecret : undefined;
|
|
33
34
|
resourceInputs["debug"] = pulumi.output((_a = (args ? args.debug : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnvBoolean("AUTH0_DEBUG")).apply(JSON.stringify);
|
package/provider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAuCjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gB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,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BA+DC;AA9DG,gBAAgB;AACO,qBAAY,GAAG,OAAO,CAAC"}
|
package/resourceServer.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
5
|
* With this resource, you can set up APIs that can be consumed from your authorized applications.
|
|
5
6
|
*
|
|
@@ -30,7 +31,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
30
31
|
*
|
|
31
32
|
* ## Import
|
|
32
33
|
*
|
|
33
|
-
* Existing resource servers can be imported using their
|
|
34
|
+
* Existing resource servers can be imported using their ID. # Example
|
|
34
35
|
*
|
|
35
36
|
* ```sh
|
|
36
37
|
* $ pulumi import auth0:index/resourceServer:ResourceServer my_resource_server XXXXXXXXXXXXXXXXXXXXXXX
|
|
@@ -53,57 +54,57 @@ export declare class ResourceServer extends pulumi.CustomResource {
|
|
|
53
54
|
*/
|
|
54
55
|
static isInstance(obj: any): obj is ResourceServer;
|
|
55
56
|
/**
|
|
56
|
-
*
|
|
57
|
+
* Indicates whether refresh tokens can be issued for this resource server.
|
|
57
58
|
*/
|
|
58
59
|
readonly allowOfflineAccess: pulumi.Output<boolean | undefined>;
|
|
59
60
|
/**
|
|
60
|
-
*
|
|
61
|
+
* If this setting is enabled, RBAC authorization policies will be enforced for this API. Role and permission assignments will be evaluated during the login transaction.
|
|
61
62
|
*/
|
|
62
|
-
readonly enforcePolicies: pulumi.Output<boolean
|
|
63
|
+
readonly enforcePolicies: pulumi.Output<boolean>;
|
|
63
64
|
/**
|
|
64
|
-
*
|
|
65
|
+
* Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
|
|
65
66
|
*/
|
|
66
|
-
readonly identifier: pulumi.Output<string
|
|
67
|
+
readonly identifier: pulumi.Output<string>;
|
|
67
68
|
/**
|
|
68
|
-
*
|
|
69
|
+
* Friendly name for the resource server. Cannot include `<` or `>` characters.
|
|
69
70
|
*/
|
|
70
71
|
readonly name: pulumi.Output<string>;
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
+
* Used to store additional metadata.
|
|
73
74
|
*/
|
|
74
75
|
readonly options: pulumi.Output<{
|
|
75
76
|
[key: string]: string;
|
|
76
77
|
} | undefined>;
|
|
77
78
|
/**
|
|
78
|
-
*
|
|
79
|
+
* List of permissions (scopes) used by this resource server.
|
|
79
80
|
*/
|
|
80
81
|
readonly scopes: pulumi.Output<outputs.ResourceServerScope[] | undefined>;
|
|
81
82
|
/**
|
|
82
|
-
*
|
|
83
|
+
* Algorithm used to sign JWTs. Options include `HS256` and `RS256`.
|
|
83
84
|
*/
|
|
84
85
|
readonly signingAlg: pulumi.Output<string>;
|
|
85
86
|
/**
|
|
86
|
-
*
|
|
87
|
+
* Secret used to sign tokens when using symmetric algorithms (HS256).
|
|
87
88
|
*/
|
|
88
89
|
readonly signingSecret: pulumi.Output<string>;
|
|
89
90
|
/**
|
|
90
|
-
*
|
|
91
|
+
* Indicates whether to skip user consent for applications flagged as first party.
|
|
91
92
|
*/
|
|
92
|
-
readonly skipConsentForVerifiableFirstPartyClients: pulumi.Output<boolean
|
|
93
|
+
readonly skipConsentForVerifiableFirstPartyClients: pulumi.Output<boolean>;
|
|
93
94
|
/**
|
|
94
|
-
*
|
|
95
|
+
* Dialect of access tokens that should be issued for this resource server. Options include `accessToken` or `accessTokenAuthz`. If this setting is set to `accessTokenAuthz`, the Permissions claim will be added to the access token. Only available if RBAC (`enforcePolicies`) is enabled for this API.
|
|
95
96
|
*/
|
|
96
97
|
readonly tokenDialect: pulumi.Output<string | undefined>;
|
|
97
98
|
/**
|
|
98
|
-
*
|
|
99
|
+
* Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
|
|
99
100
|
*/
|
|
100
101
|
readonly tokenLifetime: pulumi.Output<number>;
|
|
101
102
|
/**
|
|
102
|
-
*
|
|
103
|
+
* Number of seconds during which access tokens issued for this resource server via implicit or hybrid flows remain valid. Cannot be greater than the `tokenLifetime` value.
|
|
103
104
|
*/
|
|
104
105
|
readonly tokenLifetimeForWeb: pulumi.Output<number>;
|
|
105
106
|
/**
|
|
106
|
-
*
|
|
107
|
+
* URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
|
|
107
108
|
*/
|
|
108
109
|
readonly verificationLocation: pulumi.Output<string | undefined>;
|
|
109
110
|
/**
|
|
@@ -113,64 +114,64 @@ export declare class ResourceServer extends pulumi.CustomResource {
|
|
|
113
114
|
* @param args The arguments to use to populate this resource's properties.
|
|
114
115
|
* @param opts A bag of options that control this resource's behavior.
|
|
115
116
|
*/
|
|
116
|
-
constructor(name: string, args
|
|
117
|
+
constructor(name: string, args: ResourceServerArgs, opts?: pulumi.CustomResourceOptions);
|
|
117
118
|
}
|
|
118
119
|
/**
|
|
119
120
|
* Input properties used for looking up and filtering ResourceServer resources.
|
|
120
121
|
*/
|
|
121
122
|
export interface ResourceServerState {
|
|
122
123
|
/**
|
|
123
|
-
*
|
|
124
|
+
* Indicates whether refresh tokens can be issued for this resource server.
|
|
124
125
|
*/
|
|
125
126
|
allowOfflineAccess?: pulumi.Input<boolean>;
|
|
126
127
|
/**
|
|
127
|
-
*
|
|
128
|
+
* If this setting is enabled, RBAC authorization policies will be enforced for this API. Role and permission assignments will be evaluated during the login transaction.
|
|
128
129
|
*/
|
|
129
130
|
enforcePolicies?: pulumi.Input<boolean>;
|
|
130
131
|
/**
|
|
131
|
-
*
|
|
132
|
+
* Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
|
|
132
133
|
*/
|
|
133
134
|
identifier?: pulumi.Input<string>;
|
|
134
135
|
/**
|
|
135
|
-
*
|
|
136
|
+
* Friendly name for the resource server. Cannot include `<` or `>` characters.
|
|
136
137
|
*/
|
|
137
138
|
name?: pulumi.Input<string>;
|
|
138
139
|
/**
|
|
139
|
-
*
|
|
140
|
+
* Used to store additional metadata.
|
|
140
141
|
*/
|
|
141
142
|
options?: pulumi.Input<{
|
|
142
143
|
[key: string]: pulumi.Input<string>;
|
|
143
144
|
}>;
|
|
144
145
|
/**
|
|
145
|
-
*
|
|
146
|
+
* List of permissions (scopes) used by this resource server.
|
|
146
147
|
*/
|
|
147
148
|
scopes?: pulumi.Input<pulumi.Input<inputs.ResourceServerScope>[]>;
|
|
148
149
|
/**
|
|
149
|
-
*
|
|
150
|
+
* Algorithm used to sign JWTs. Options include `HS256` and `RS256`.
|
|
150
151
|
*/
|
|
151
152
|
signingAlg?: pulumi.Input<string>;
|
|
152
153
|
/**
|
|
153
|
-
*
|
|
154
|
+
* Secret used to sign tokens when using symmetric algorithms (HS256).
|
|
154
155
|
*/
|
|
155
156
|
signingSecret?: pulumi.Input<string>;
|
|
156
157
|
/**
|
|
157
|
-
*
|
|
158
|
+
* Indicates whether to skip user consent for applications flagged as first party.
|
|
158
159
|
*/
|
|
159
160
|
skipConsentForVerifiableFirstPartyClients?: pulumi.Input<boolean>;
|
|
160
161
|
/**
|
|
161
|
-
*
|
|
162
|
+
* Dialect of access tokens that should be issued for this resource server. Options include `accessToken` or `accessTokenAuthz`. If this setting is set to `accessTokenAuthz`, the Permissions claim will be added to the access token. Only available if RBAC (`enforcePolicies`) is enabled for this API.
|
|
162
163
|
*/
|
|
163
164
|
tokenDialect?: pulumi.Input<string>;
|
|
164
165
|
/**
|
|
165
|
-
*
|
|
166
|
+
* Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
|
|
166
167
|
*/
|
|
167
168
|
tokenLifetime?: pulumi.Input<number>;
|
|
168
169
|
/**
|
|
169
|
-
*
|
|
170
|
+
* Number of seconds during which access tokens issued for this resource server via implicit or hybrid flows remain valid. Cannot be greater than the `tokenLifetime` value.
|
|
170
171
|
*/
|
|
171
172
|
tokenLifetimeForWeb?: pulumi.Input<number>;
|
|
172
173
|
/**
|
|
173
|
-
*
|
|
174
|
+
* URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
|
|
174
175
|
*/
|
|
175
176
|
verificationLocation?: pulumi.Input<string>;
|
|
176
177
|
}
|
|
@@ -179,57 +180,57 @@ export interface ResourceServerState {
|
|
|
179
180
|
*/
|
|
180
181
|
export interface ResourceServerArgs {
|
|
181
182
|
/**
|
|
182
|
-
*
|
|
183
|
+
* Indicates whether refresh tokens can be issued for this resource server.
|
|
183
184
|
*/
|
|
184
185
|
allowOfflineAccess?: pulumi.Input<boolean>;
|
|
185
186
|
/**
|
|
186
|
-
*
|
|
187
|
+
* If this setting is enabled, RBAC authorization policies will be enforced for this API. Role and permission assignments will be evaluated during the login transaction.
|
|
187
188
|
*/
|
|
188
189
|
enforcePolicies?: pulumi.Input<boolean>;
|
|
189
190
|
/**
|
|
190
|
-
*
|
|
191
|
+
* Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set.
|
|
191
192
|
*/
|
|
192
|
-
identifier
|
|
193
|
+
identifier: pulumi.Input<string>;
|
|
193
194
|
/**
|
|
194
|
-
*
|
|
195
|
+
* Friendly name for the resource server. Cannot include `<` or `>` characters.
|
|
195
196
|
*/
|
|
196
197
|
name?: pulumi.Input<string>;
|
|
197
198
|
/**
|
|
198
|
-
*
|
|
199
|
+
* Used to store additional metadata.
|
|
199
200
|
*/
|
|
200
201
|
options?: pulumi.Input<{
|
|
201
202
|
[key: string]: pulumi.Input<string>;
|
|
202
203
|
}>;
|
|
203
204
|
/**
|
|
204
|
-
*
|
|
205
|
+
* List of permissions (scopes) used by this resource server.
|
|
205
206
|
*/
|
|
206
207
|
scopes?: pulumi.Input<pulumi.Input<inputs.ResourceServerScope>[]>;
|
|
207
208
|
/**
|
|
208
|
-
*
|
|
209
|
+
* Algorithm used to sign JWTs. Options include `HS256` and `RS256`.
|
|
209
210
|
*/
|
|
210
211
|
signingAlg?: pulumi.Input<string>;
|
|
211
212
|
/**
|
|
212
|
-
*
|
|
213
|
+
* Secret used to sign tokens when using symmetric algorithms (HS256).
|
|
213
214
|
*/
|
|
214
215
|
signingSecret?: pulumi.Input<string>;
|
|
215
216
|
/**
|
|
216
|
-
*
|
|
217
|
+
* Indicates whether to skip user consent for applications flagged as first party.
|
|
217
218
|
*/
|
|
218
219
|
skipConsentForVerifiableFirstPartyClients?: pulumi.Input<boolean>;
|
|
219
220
|
/**
|
|
220
|
-
*
|
|
221
|
+
* Dialect of access tokens that should be issued for this resource server. Options include `accessToken` or `accessTokenAuthz`. If this setting is set to `accessTokenAuthz`, the Permissions claim will be added to the access token. Only available if RBAC (`enforcePolicies`) is enabled for this API.
|
|
221
222
|
*/
|
|
222
223
|
tokenDialect?: pulumi.Input<string>;
|
|
223
224
|
/**
|
|
224
|
-
*
|
|
225
|
+
* Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
|
|
225
226
|
*/
|
|
226
227
|
tokenLifetime?: pulumi.Input<number>;
|
|
227
228
|
/**
|
|
228
|
-
*
|
|
229
|
+
* Number of seconds during which access tokens issued for this resource server via implicit or hybrid flows remain valid. Cannot be greater than the `tokenLifetime` value.
|
|
229
230
|
*/
|
|
230
231
|
tokenLifetimeForWeb?: pulumi.Input<number>;
|
|
231
232
|
/**
|
|
232
|
-
*
|
|
233
|
+
* URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
|
|
233
234
|
*/
|
|
234
235
|
verificationLocation?: pulumi.Input<string>;
|
|
235
236
|
}
|
package/resourceServer.js
CHANGED
|
@@ -35,7 +35,7 @@ const utilities = require("./utilities");
|
|
|
35
35
|
*
|
|
36
36
|
* ## Import
|
|
37
37
|
*
|
|
38
|
-
* Existing resource servers can be imported using their
|
|
38
|
+
* Existing resource servers can be imported using their ID. # Example
|
|
39
39
|
*
|
|
40
40
|
* ```sh
|
|
41
41
|
* $ pulumi import auth0:index/resourceServer:ResourceServer my_resource_server XXXXXXXXXXXXXXXXXXXXXXX
|
|
@@ -63,6 +63,9 @@ class ResourceServer extends pulumi.CustomResource {
|
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
65
65
|
const args = argsOrState;
|
|
66
|
+
if ((!args || args.identifier === undefined) && !opts.urn) {
|
|
67
|
+
throw new Error("Missing required property 'identifier'");
|
|
68
|
+
}
|
|
66
69
|
resourceInputs["allowOfflineAccess"] = args ? args.allowOfflineAccess : undefined;
|
|
67
70
|
resourceInputs["enforcePolicies"] = args ? args.enforcePolicies : undefined;
|
|
68
71
|
resourceInputs["identifier"] = args ? args.identifier : undefined;
|
package/resourceServer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceServer.js","sourceRoot":"","sources":["../resourceServer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"resourceServer.js","sourceRoot":"","sources":["../resourceServer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAyFrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9E,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CA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,cAAc,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;YACxE,cAAc,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,sBAAsB,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,SAAS,CAAC;SACzF;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;IA/HD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACrE,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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;;AA1BL,wCAiIC;AAnHG,gBAAgB;AACO,2BAAY,GAAG,2CAA2C,CAAC"}
|
package/role.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
-
import
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
3
4
|
/**
|
|
4
|
-
* With this resource, you can create and manage collections of permissions that can be assigned to users, which are
|
|
5
|
-
* otherwise known as roles. Permissions (scopes) are created on auth0_resource_server, then associated with roles and
|
|
6
|
-
* optionally, users using this resource.
|
|
5
|
+
* With this resource, you can create and manage collections of permissions that can be assigned to users, which are otherwise known as roles. Permissions (scopes) are created on `auth0.ResourceServer`, then associated with roles and optionally, users using this resource.
|
|
7
6
|
*
|
|
8
7
|
* ## Example Usage
|
|
9
8
|
*
|
|
@@ -42,7 +41,7 @@ import { input as inputs, output as outputs } from "./types";
|
|
|
42
41
|
*
|
|
43
42
|
* ## Import
|
|
44
43
|
*
|
|
45
|
-
* Existing roles can be imported using their
|
|
44
|
+
* Existing roles can be imported using their ID. # Example
|
|
46
45
|
*
|
|
47
46
|
* ```sh
|
|
48
47
|
* $ pulumi import auth0:index/role:Role my_role XXXXXXXXXXXXXXXXXXXXXXX
|
|
@@ -65,16 +64,15 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
65
64
|
*/
|
|
66
65
|
static isInstance(obj: any): obj is Role;
|
|
67
66
|
/**
|
|
68
|
-
*
|
|
67
|
+
* Description of the role.
|
|
69
68
|
*/
|
|
70
69
|
readonly description: pulumi.Output<string>;
|
|
71
70
|
/**
|
|
72
|
-
*
|
|
71
|
+
* Name for this role.
|
|
73
72
|
*/
|
|
74
73
|
readonly name: pulumi.Output<string>;
|
|
75
74
|
/**
|
|
76
|
-
*
|
|
77
|
-
* For details, see Permissions.
|
|
75
|
+
* Configuration settings for permissions (scopes) attached to the role.
|
|
78
76
|
*/
|
|
79
77
|
readonly permissions: pulumi.Output<outputs.RolePermission[] | undefined>;
|
|
80
78
|
/**
|
|
@@ -91,16 +89,15 @@ export declare class Role extends pulumi.CustomResource {
|
|
|
91
89
|
*/
|
|
92
90
|
export interface RoleState {
|
|
93
91
|
/**
|
|
94
|
-
*
|
|
92
|
+
* Description of the role.
|
|
95
93
|
*/
|
|
96
94
|
description?: pulumi.Input<string>;
|
|
97
95
|
/**
|
|
98
|
-
*
|
|
96
|
+
* Name for this role.
|
|
99
97
|
*/
|
|
100
98
|
name?: pulumi.Input<string>;
|
|
101
99
|
/**
|
|
102
|
-
*
|
|
103
|
-
* For details, see Permissions.
|
|
100
|
+
* Configuration settings for permissions (scopes) attached to the role.
|
|
104
101
|
*/
|
|
105
102
|
permissions?: pulumi.Input<pulumi.Input<inputs.RolePermission>[]>;
|
|
106
103
|
}
|
|
@@ -109,16 +106,15 @@ export interface RoleState {
|
|
|
109
106
|
*/
|
|
110
107
|
export interface RoleArgs {
|
|
111
108
|
/**
|
|
112
|
-
*
|
|
109
|
+
* Description of the role.
|
|
113
110
|
*/
|
|
114
111
|
description?: pulumi.Input<string>;
|
|
115
112
|
/**
|
|
116
|
-
*
|
|
113
|
+
* Name for this role.
|
|
117
114
|
*/
|
|
118
115
|
name?: pulumi.Input<string>;
|
|
119
116
|
/**
|
|
120
|
-
*
|
|
121
|
-
* For details, see Permissions.
|
|
117
|
+
* Configuration settings for permissions (scopes) attached to the role.
|
|
122
118
|
*/
|
|
123
119
|
permissions?: pulumi.Input<pulumi.Input<inputs.RolePermission>[]>;
|
|
124
120
|
}
|
package/role.js
CHANGED
|
@@ -6,9 +6,7 @@ exports.Role = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* With this resource, you can create and manage collections of permissions that can be assigned to users, which are
|
|
10
|
-
* otherwise known as roles. Permissions (scopes) are created on auth0_resource_server, then associated with roles and
|
|
11
|
-
* optionally, users using this resource.
|
|
9
|
+
* With this resource, you can create and manage collections of permissions that can be assigned to users, which are otherwise known as roles. Permissions (scopes) are created on `auth0.ResourceServer`, then associated with roles and optionally, users using this resource.
|
|
12
10
|
*
|
|
13
11
|
* ## Example Usage
|
|
14
12
|
*
|
|
@@ -47,7 +45,7 @@ const utilities = require("./utilities");
|
|
|
47
45
|
*
|
|
48
46
|
* ## Import
|
|
49
47
|
*
|
|
50
|
-
* Existing roles can be imported using their
|
|
48
|
+
* Existing roles can be imported using their ID. # Example
|
|
51
49
|
*
|
|
52
50
|
* ```sh
|
|
53
51
|
* $ pulumi import auth0:index/role:Role my_role XXXXXXXXXXXXXXXXXXXXXXX
|
package/role.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAiD3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;aAAM;YACH,MAAM,IAAI,GAAG,WAAmC,CAAC;YACjD,cAAc,CAAC,aAAa,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,mBAAmB,CAAC;YA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