@enterprisestandard/esv 0.0.5-beta.20260114.3 → 0.0.5-beta.20260115.1
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/dist/iam/index.js +3 -3
- package/dist/iam/index.js.map +4 -4
- package/dist/index.js +7 -7
- package/dist/index.js.map +6 -6
- package/dist/runner.js +11 -11
- package/dist/runner.js.map +7 -7
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +3 -3
- package/dist/sso/index.js.map +2 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/workload/index.js +4 -4
- package/dist/workload/index.js.map +4 -4
- package/package.json +1 -1
package/dist/runner.js
CHANGED
|
@@ -4971,7 +4971,7 @@ async function getScimUserValidator() {
|
|
|
4971
4971
|
const { zodValidators: zodValidators2 } = await Promise.resolve().then(() => (init_dist3(), exports_dist3));
|
|
4972
4972
|
cachedScimUserValidator = zodValidators2.scimUser();
|
|
4973
4973
|
return cachedScimUserValidator;
|
|
4974
|
-
} catch (
|
|
4974
|
+
} catch (_error) {
|
|
4975
4975
|
throw new Error("IAM validation requires either @enterprisestandard/react-validators-valibot or @enterprisestandard/react-validators-zod to be installed. Please install one of these packages.");
|
|
4976
4976
|
}
|
|
4977
4977
|
}
|
|
@@ -4984,7 +4984,7 @@ function getScimGroupValidator() {
|
|
|
4984
4984
|
validate: (value) => {
|
|
4985
4985
|
if (typeof value !== "object" || value === null) {
|
|
4986
4986
|
return {
|
|
4987
|
-
issues: [{ message:
|
|
4987
|
+
issues: [{ message: `Expected object, got ${typeof value}` }]
|
|
4988
4988
|
};
|
|
4989
4989
|
}
|
|
4990
4990
|
const group = value;
|
|
@@ -5855,7 +5855,7 @@ function getWorkloadTokenResponseValidator() {
|
|
|
5855
5855
|
validate: (value) => {
|
|
5856
5856
|
if (typeof value !== "object" || value === null) {
|
|
5857
5857
|
return {
|
|
5858
|
-
issues: [{ message:
|
|
5858
|
+
issues: [{ message: `Expected object, got ${typeof value}` }]
|
|
5859
5859
|
};
|
|
5860
5860
|
}
|
|
5861
5861
|
const token = value;
|
|
@@ -5886,7 +5886,7 @@ function getJwksKeyValidator() {
|
|
|
5886
5886
|
validate: (value) => {
|
|
5887
5887
|
if (typeof value !== "object" || value === null) {
|
|
5888
5888
|
return {
|
|
5889
|
-
issues: [{ message:
|
|
5889
|
+
issues: [{ message: `Expected object, got ${typeof value}` }]
|
|
5890
5890
|
};
|
|
5891
5891
|
}
|
|
5892
5892
|
const key = value;
|
|
@@ -5911,7 +5911,7 @@ function getTokenValidationResultValidator() {
|
|
|
5911
5911
|
validate: (value) => {
|
|
5912
5912
|
if (typeof value !== "object" || value === null) {
|
|
5913
5913
|
return {
|
|
5914
|
-
issues: [{ message:
|
|
5914
|
+
issues: [{ message: `Expected object, got ${typeof value}` }]
|
|
5915
5915
|
};
|
|
5916
5916
|
}
|
|
5917
5917
|
const result = value;
|
|
@@ -6226,7 +6226,7 @@ async function getTenantResponseValidator() {
|
|
|
6226
6226
|
const { zodValidators: zodValidators2 } = await Promise.resolve().then(() => (init_dist3(), exports_dist3));
|
|
6227
6227
|
cachedValidator = zodValidators2.createTenantResponse();
|
|
6228
6228
|
return cachedValidator;
|
|
6229
|
-
} catch (
|
|
6229
|
+
} catch (_error) {
|
|
6230
6230
|
throw new Error("Tenant validation requires either @enterprisestandard/react-validators-valibot or @enterprisestandard/react-validators-zod to be installed. Please install one of these packages.");
|
|
6231
6231
|
}
|
|
6232
6232
|
}
|
|
@@ -9515,7 +9515,7 @@ function sso(config) {
|
|
|
9515
9515
|
const str = atob(val);
|
|
9516
9516
|
return JSON.parse(str);
|
|
9517
9517
|
}
|
|
9518
|
-
async function handler(request,
|
|
9518
|
+
async function handler(request, es) {
|
|
9519
9519
|
const {
|
|
9520
9520
|
loginUrl,
|
|
9521
9521
|
userUrl,
|
|
@@ -9527,7 +9527,7 @@ function sso(config) {
|
|
|
9527
9527
|
logoutBackChannelUrl,
|
|
9528
9528
|
jwksUrl,
|
|
9529
9529
|
validation
|
|
9530
|
-
} = { ...handlerDefaults, ...
|
|
9530
|
+
} = { ...handlerDefaults, ...es?.sso };
|
|
9531
9531
|
if (!configWithDefaults) {
|
|
9532
9532
|
throw new Error("Enterprise Standard SSO Manager not initialized");
|
|
9533
9533
|
}
|
|
@@ -9909,7 +9909,7 @@ function workload(config) {
|
|
|
9909
9909
|
}
|
|
9910
9910
|
}
|
|
9911
9911
|
const initialized = true;
|
|
9912
|
-
function
|
|
9912
|
+
function _ensureInitialized() {
|
|
9913
9913
|
if (!initialized || !configWithDefaults) {
|
|
9914
9914
|
throw new Error("Enterprise Standard Workload Manager not initialized");
|
|
9915
9915
|
}
|
|
@@ -10643,7 +10643,7 @@ async function enterpriseStandard(appId, initConfig) {
|
|
|
10643
10643
|
token: vaultToken
|
|
10644
10644
|
};
|
|
10645
10645
|
} else if (!vaultUrl || !vaultToken || !vaultPath) {
|
|
10646
|
-
|
|
10646
|
+
const msg = "@enterprisestandard configuration missing.";
|
|
10647
10647
|
if (true) {
|
|
10648
10648
|
const cmd = `${process.versions.bun ? "bun" : "npm"} ionite login --app ${appId}`;
|
|
10649
10649
|
console.warn(`${msg} For development, login with the ionite CLI using "${cmd}" or visit ${ioniteUrl}/api/applications/apiKeys/create?appId=${appId}.`);
|
|
@@ -10951,4 +10951,4 @@ if (__require.main == __require.module) {
|
|
|
10951
10951
|
main();
|
|
10952
10952
|
}
|
|
10953
10953
|
|
|
10954
|
-
//# debugId=
|
|
10954
|
+
//# debugId=0F8680DE7ED1E84064756E2164756E21
|