@openhi/constructs 0.0.127 → 0.0.129
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/lib/{chunk-ZHMHLK3S.mjs → chunk-7BQHLC7U.mjs} +3 -3
- package/lib/{chunk-7WDX6GPO.mjs → chunk-AWYZJFPL.mjs} +3 -3
- package/lib/{chunk-AHYQFT4N.mjs → chunk-E6MCKJVS.mjs} +3 -3
- package/lib/{chunk-W4KR4CSL.mjs → chunk-M7Y3BOQW.mjs} +2 -2
- package/lib/chunk-M7Y3BOQW.mjs.map +1 -0
- package/lib/{chunk-U7L7T4XU.mjs → chunk-MVQWAIMC.mjs} +2 -2
- package/lib/{chunk-U7L7T4XU.mjs.map → chunk-MVQWAIMC.mjs.map} +1 -1
- package/lib/{chunk-VXX4I3EF.mjs → chunk-SVXLZCF7.mjs} +1 -1
- package/lib/{chunk-VXX4I3EF.mjs.map → chunk-SVXLZCF7.mjs.map} +1 -1
- package/lib/{chunk-YYRWDEG4.mjs → chunk-UT7ADSEJ.mjs} +3 -3
- package/lib/{chunk-YYRWDEG4.mjs.map → chunk-UT7ADSEJ.mjs.map} +1 -1
- package/lib/{chunk-6NBGYGFL.mjs → chunk-VZCPGQXA.mjs} +13 -12
- package/lib/chunk-VZCPGQXA.mjs.map +1 -0
- package/lib/{chunk-WXS3PUHR.mjs → chunk-WGA43MMY.mjs} +4 -4
- package/lib/{chunk-WQWFVEVX.mjs → chunk-X5E4YJGZ.mjs} +2 -2
- package/lib/{chunk-KO64HPWQ.mjs → chunk-ZWSGM6PZ.mjs} +2 -2
- package/lib/delete-chunk.handler.d.mts +1 -1
- package/lib/delete-chunk.handler.d.ts +1 -1
- package/lib/delete-chunk.handler.js +12 -11
- package/lib/delete-chunk.handler.js.map +1 -1
- package/lib/delete-chunk.handler.mjs +2 -2
- package/lib/delete-chunk.handler.mjs.map +1 -1
- package/lib/{events-BfrkMoBD.d.mts → events-COI0BuMM.d.mts} +1 -1
- package/lib/{events-BfrkMoBD.d.ts → events-COI0BuMM.d.ts} +1 -1
- package/lib/index.d.mts +21 -10
- package/lib/index.d.ts +21 -10
- package/lib/index.js +36 -16
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +30 -11
- package/lib/index.mjs.map +1 -1
- package/lib/list-chunks.handler.d.mts +1 -1
- package/lib/list-chunks.handler.d.ts +1 -1
- package/lib/list-chunks.handler.js +12 -11
- package/lib/list-chunks.handler.js.map +1 -1
- package/lib/list-chunks.handler.mjs +2 -2
- package/lib/list-chunks.handler.mjs.map +1 -1
- package/lib/platform-deploy-bridge.handler.d.mts +1 -1
- package/lib/platform-deploy-bridge.handler.d.ts +1 -1
- package/lib/platform-deploy-bridge.handler.js.map +1 -1
- package/lib/platform-deploy-bridge.handler.mjs +1 -1
- package/lib/pre-token-generation.handler.js +12 -11
- package/lib/pre-token-generation.handler.js.map +1 -1
- package/lib/pre-token-generation.handler.mjs +4 -4
- package/lib/provision-default-workspace.handler.js +12 -11
- package/lib/provision-default-workspace.handler.js.map +1 -1
- package/lib/provision-default-workspace.handler.mjs +4 -4
- package/lib/rename-list-targets.handler.d.mts +1 -1
- package/lib/rename-list-targets.handler.d.ts +1 -1
- package/lib/rename-list-targets.handler.js +12 -11
- package/lib/rename-list-targets.handler.js.map +1 -1
- package/lib/rename-list-targets.handler.mjs +2 -2
- package/lib/rename-list-targets.handler.mjs.map +1 -1
- package/lib/rename-rewrite-chunk.handler.d.mts +1 -1
- package/lib/rename-rewrite-chunk.handler.d.ts +1 -1
- package/lib/rename-rewrite-chunk.handler.js +12 -11
- package/lib/rename-rewrite-chunk.handler.js.map +1 -1
- package/lib/rename-rewrite-chunk.handler.mjs +2 -2
- package/lib/rename-rewrite-chunk.handler.mjs.map +1 -1
- package/lib/rest-api-lambda.handler.js +14 -13
- package/lib/rest-api-lambda.handler.js.map +1 -1
- package/lib/rest-api-lambda.handler.mjs +9 -9
- package/lib/rest-api-lambda.handler.mjs.map +1 -1
- package/lib/seed-demo-data.handler.js +12 -11
- package/lib/seed-demo-data.handler.js.map +1 -1
- package/lib/seed-demo-data.handler.mjs +5 -5
- package/lib/seed-system-data.handler.js +12 -11
- package/lib/seed-system-data.handler.js.map +1 -1
- package/lib/seed-system-data.handler.mjs +2 -2
- package/lib/static-hosting.viewer-request-handler.d.mts +1 -1
- package/lib/static-hosting.viewer-request-handler.d.ts +1 -1
- package/lib/static-hosting.viewer-request-handler.js.map +1 -1
- package/lib/static-hosting.viewer-request-handler.mjs.map +1 -1
- package/package.json +5 -5
- package/lib/chunk-6NBGYGFL.mjs.map +0 -1
- package/lib/chunk-W4KR4CSL.mjs.map +0 -1
- /package/lib/{chunk-ZHMHLK3S.mjs.map → chunk-7BQHLC7U.mjs.map} +0 -0
- /package/lib/{chunk-7WDX6GPO.mjs.map → chunk-AWYZJFPL.mjs.map} +0 -0
- /package/lib/{chunk-AHYQFT4N.mjs.map → chunk-E6MCKJVS.mjs.map} +0 -0
- /package/lib/{chunk-WXS3PUHR.mjs.map → chunk-WGA43MMY.mjs.map} +0 -0
- /package/lib/{chunk-WQWFVEVX.mjs.map → chunk-X5E4YJGZ.mjs.map} +0 -0
- /package/lib/{chunk-KO64HPWQ.mjs.map → chunk-ZWSGM6PZ.mjs.map} +0 -0
package/lib/index.mjs
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
demoScenarioIdentifier,
|
|
29
29
|
import_workflows,
|
|
30
30
|
openhiResourceIdentifier
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WGA43MMY.mjs";
|
|
32
32
|
import {
|
|
33
33
|
OWNING_DELETE_CASCADE_CONSUMER_NAME,
|
|
34
34
|
OWNING_DELETE_CASCADE_DEFAULT_CONCURRENCY,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
RENAME_CASCADE_SLOW_THRESHOLD_SECONDS,
|
|
45
45
|
import_workflows as import_workflows4
|
|
46
46
|
} from "./chunk-23PUSHBV.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-E6MCKJVS.mjs";
|
|
48
48
|
import {
|
|
49
49
|
PROVISION_DEFAULT_WORKSPACE_DETAIL_TYPE,
|
|
50
50
|
USER_ONBOARDING_EVENT_SOURCE,
|
|
@@ -58,16 +58,16 @@ import {
|
|
|
58
58
|
OPENHI_REPO_TAG_KEY_ENV_VAR,
|
|
59
59
|
OPENHI_TAG_KEY_PREFIX_ENV_VAR,
|
|
60
60
|
PLATFORM_DEPLOY_BRIDGE_ACTOR_SYSTEM
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-SVXLZCF7.mjs";
|
|
62
62
|
import {
|
|
63
63
|
require_lib
|
|
64
64
|
} from "./chunk-ZM4GDHHC.mjs";
|
|
65
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-AWYZJFPL.mjs";
|
|
66
66
|
import "./chunk-HQ67J7BP.mjs";
|
|
67
67
|
import "./chunk-QJDHVMKT.mjs";
|
|
68
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-MVQWAIMC.mjs";
|
|
69
69
|
import "./chunk-FYHBHHWK.mjs";
|
|
70
|
-
import "./chunk-
|
|
70
|
+
import "./chunk-VZCPGQXA.mjs";
|
|
71
71
|
import "./chunk-TRY7JGWO.mjs";
|
|
72
72
|
import {
|
|
73
73
|
__commonJS,
|
|
@@ -181,7 +181,6 @@ var OpenHiEnvironment = class _OpenHiEnvironment extends Stage {
|
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Finds the OpenHiEnvironment that contains the given construct.
|
|
184
|
-
* ```
|
|
185
184
|
*/
|
|
186
185
|
static of(construct) {
|
|
187
186
|
return construct.node.scopes.reverse().find(_OpenHiEnvironment.isOpenHiEnvironment);
|
|
@@ -372,7 +371,7 @@ var OpenHiService = class extends Stack {
|
|
|
372
371
|
* @param id - Unique identifier for this service stack (e.g., "user-service")
|
|
373
372
|
* @param props - Optional properties for configuring the service
|
|
374
373
|
*
|
|
375
|
-
* @throws {Error} If account and region are not defined in props or environment
|
|
374
|
+
* @throws \{Error\} If account and region are not defined in props or environment
|
|
376
375
|
*
|
|
377
376
|
*/
|
|
378
377
|
constructor(ohEnv, id, props = {}) {
|
|
@@ -2510,6 +2509,26 @@ var _OpenHiAuthService = class _OpenHiAuthService extends OpenHiService {
|
|
|
2510
2509
|
});
|
|
2511
2510
|
return UserPoolDomain2.fromDomainName(scope, "user-pool-domain", domainName);
|
|
2512
2511
|
}
|
|
2512
|
+
/**
|
|
2513
|
+
* Returns the full Cognito Hosted UI base URL (e.g.
|
|
2514
|
+
* `https://auth-abc.auth.us-east-2.amazoncognito.com`) by looking up
|
|
2515
|
+
* the Auth stack's User Pool Domain from SSM and composing it with the
|
|
2516
|
+
* calling stack's region.
|
|
2517
|
+
*
|
|
2518
|
+
* Equivalent to `UserPoolDomain.baseUrl()` on the concrete construct,
|
|
2519
|
+
* but works across stacks where the looked-up `IUserPoolDomain` is an
|
|
2520
|
+
* `Import` and does not carry the `baseUrl()` method. Assumes the
|
|
2521
|
+
* domain was created as a Cognito-managed prefix domain (the only
|
|
2522
|
+
* variant `OpenHiAuthService.createUserPoolDomain` produces).
|
|
2523
|
+
*/
|
|
2524
|
+
static userPoolDomainBaseUrlFromConstruct(scope) {
|
|
2525
|
+
const domainName = DiscoverableStringParameter.valueForLookupName(scope, {
|
|
2526
|
+
ssmParamName: CognitoUserPoolDomain.SSM_PARAM_NAME,
|
|
2527
|
+
serviceType: _OpenHiAuthService.SERVICE_TYPE
|
|
2528
|
+
});
|
|
2529
|
+
const region = Stack7.of(scope).region;
|
|
2530
|
+
return `https://${domainName}.auth.${region}.amazoncognito.com`;
|
|
2531
|
+
}
|
|
2513
2532
|
/**
|
|
2514
2533
|
* Returns an IKey (KMS) by looking up the Auth stack's User Pool KMS Key ARN from SSM.
|
|
2515
2534
|
*/
|
|
@@ -2885,7 +2904,7 @@ var _OpenHiRestApiService = class _OpenHiRestApiService extends OpenHiService {
|
|
|
2885
2904
|
return OpenHiGlobalService.rootWildcardCertificateFromConstruct(this);
|
|
2886
2905
|
}
|
|
2887
2906
|
/**
|
|
2888
|
-
* Returns the API domain name string (e.g. api.example.com or api
|
|
2907
|
+
* Returns the API domain name string (e.g. api.example.com or api-\{prefix\}.example.com).
|
|
2889
2908
|
* Override to customize.
|
|
2890
2909
|
*/
|
|
2891
2910
|
createApiDomainNameString(hostedZone) {
|
|
@@ -3119,11 +3138,11 @@ var _OpenHiRestApiService = class _OpenHiRestApiService extends OpenHiService {
|
|
|
3119
3138
|
const cognitoScope = new Construct21(this, "runtime-config");
|
|
3120
3139
|
const userPool = OpenHiAuthService.userPoolFromConstruct(cognitoScope);
|
|
3121
3140
|
const userPoolClient = OpenHiAuthService.userPoolClientFromConstruct(cognitoScope);
|
|
3122
|
-
const
|
|
3141
|
+
const cognitoDomainUrl = OpenHiAuthService.userPoolDomainBaseUrlFromConstruct(cognitoScope);
|
|
3123
3142
|
return {
|
|
3124
3143
|
OPENHI_RUNTIME_CONFIG_COGNITO_USER_POOL_ID: userPool.userPoolId,
|
|
3125
3144
|
OPENHI_RUNTIME_CONFIG_COGNITO_USER_POOL_CLIENT_ID: userPoolClient.userPoolClientId,
|
|
3126
|
-
|
|
3145
|
+
OPENHI_RUNTIME_CONFIG_COGNITO_DOMAIN_URL: cognitoDomainUrl,
|
|
3127
3146
|
OPENHI_RUNTIME_CONFIG_COGNITO_REDIRECT_URI: this.props.runtimeConfig.cognitoRedirectUri,
|
|
3128
3147
|
OPENHI_RUNTIME_CONFIG_API_BASE_URL: this.props.runtimeConfig.apiBaseUrl
|
|
3129
3148
|
};
|