@rockcarver/frodo-lib 2.0.0-1 → 2.0.0-2
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/CHANGELOG.md +5 -1
- package/cjs/api/ApiTypes.js.map +1 -1
- package/cjs/index.js +1 -105
- package/cjs/index.js.map +1 -1
- package/cjs/lib/FrodoLib.js +20 -20
- package/cjs/lib/FrodoLib.js.map +1 -1
- package/cjs/ops/AgentOps.js +8 -0
- package/cjs/ops/AgentOps.js.map +1 -1
- package/cjs/ops/AuthenticateOps.js +33 -6
- package/cjs/ops/AuthenticateOps.js.map +1 -1
- package/cjs/ops/CirclesOfTrustOps.js +36 -10
- package/cjs/ops/CirclesOfTrustOps.js.map +1 -1
- package/cjs/ops/ConnectionProfileOps.js +13 -126
- package/cjs/ops/ConnectionProfileOps.js.map +1 -1
- package/cjs/ops/IdmOps.js.map +1 -1
- package/cjs/ops/JourneyOps.js.map +1 -1
- package/cjs/ops/OAuth2OidcOps.js +84 -0
- package/cjs/ops/OAuth2OidcOps.js.map +1 -0
- package/cjs/ops/ResourceTypeOps.js +65 -49
- package/cjs/ops/ResourceTypeOps.js.map +1 -1
- package/cjs/ops/ServiceOps.js +3 -0
- package/cjs/ops/ServiceOps.js.map +1 -1
- package/cjs/ops/ThemeOps.js +28 -14
- package/cjs/ops/ThemeOps.js.map +1 -1
- package/cjs/ops/cloud/LogOps.js +3 -13
- package/cjs/ops/cloud/LogOps.js.map +1 -1
- package/cjs/ops/utils/Console.js +7 -7
- package/cjs/ops/utils/Console.js.map +1 -1
- package/cjs/ops/utils/ExportImportUtils.js +109 -0
- package/cjs/ops/utils/ExportImportUtils.js.map +1 -1
- package/cjs/ops/utils/ExportImportUtils.test.js.map +1 -1
- package/cjs/ops/utils/Version.js +29 -6
- package/cjs/ops/utils/Version.js.map +1 -1
- package/cjs/ops/utils/Version.test.js.map +1 -1
- package/cjs/shared/State.js +0 -2
- package/cjs/shared/State.js.map +1 -1
- package/esm/index.mjs +1 -59
- package/esm/lib/FrodoLib.mjs +19 -18
- package/esm/ops/AgentOps.mjs +8 -0
- package/esm/ops/AuthenticateOps.mjs +24 -4
- package/esm/ops/CirclesOfTrustOps.mjs +18 -2
- package/esm/ops/ConnectionProfileOps.mjs +1 -105
- package/esm/ops/OAuth2OidcOps.mjs +40 -0
- package/esm/ops/ResourceTypeOps.mjs +14 -4
- package/esm/ops/ServiceOps.mjs +3 -0
- package/esm/ops/ThemeOps.mjs +7 -7
- package/esm/ops/cloud/LogOps.mjs +3 -13
- package/esm/ops/utils/Console.mjs +8 -8
- package/esm/ops/utils/ExportImportUtils.mjs +101 -0
- package/esm/ops/utils/ExportImportUtils.test.mjs +15 -2
- package/esm/ops/utils/Version.mjs +21 -4
- package/esm/ops/utils/Version.test.mjs +4 -1
- package/esm/shared/State.mjs +0 -2
- package/package.json +1 -1
- package/types/api/ApiTypes.d.ts +11 -11
- package/types/api/ApiTypes.d.ts.map +1 -1
- package/types/index.d.ts +1 -48
- package/types/index.d.ts.map +1 -1
- package/types/lib/FrodoLib.d.ts +13 -9
- package/types/lib/FrodoLib.d.ts.map +1 -1
- package/types/ops/AgentOps.d.ts +5 -0
- package/types/ops/AgentOps.d.ts.map +1 -1
- package/types/ops/AuthenticateOps.d.ts +11 -1
- package/types/ops/AuthenticateOps.d.ts.map +1 -1
- package/types/ops/CirclesOfTrustOps.d.ts +16 -2
- package/types/ops/CirclesOfTrustOps.d.ts.map +1 -1
- package/types/ops/ConnectionProfileOps.d.ts +0 -19
- package/types/ops/ConnectionProfileOps.d.ts.map +1 -1
- package/types/ops/IdmOps.d.ts +1 -1
- package/types/ops/IdmOps.d.ts.map +1 -1
- package/types/ops/JourneyOps.d.ts +2 -2
- package/types/ops/JourneyOps.d.ts.map +1 -1
- package/types/ops/OAuth2OidcOps.d.ts +11 -0
- package/types/ops/OAuth2OidcOps.d.ts.map +1 -0
- package/types/ops/ResourceTypeOps.d.ts +3 -3
- package/types/ops/ResourceTypeOps.d.ts.map +1 -1
- package/types/ops/ServiceOps.d.ts +1 -0
- package/types/ops/ServiceOps.d.ts.map +1 -1
- package/types/ops/ThemeOps.d.ts +14 -14
- package/types/ops/ThemeOps.d.ts.map +1 -1
- package/types/ops/cloud/LogOps.d.ts +1 -1
- package/types/ops/cloud/LogOps.d.ts.map +1 -1
- package/types/ops/utils/Console.d.ts.map +1 -1
- package/types/ops/utils/ExportImportUtils.d.ts +43 -0
- package/types/ops/utils/ExportImportUtils.d.ts.map +1 -1
- package/types/ops/utils/Version.d.ts +16 -2
- package/types/ops/utils/Version.d.ts.map +1 -1
- package/types/shared/State.d.ts.map +1 -1
package/esm/ops/ServiceOps.mjs
CHANGED
package/esm/ops/ThemeOps.mjs
CHANGED
|
@@ -24,7 +24,7 @@ export default class ThemeOps {
|
|
|
24
24
|
* @param {string} realm realm name
|
|
25
25
|
* @returns {Promise<ThemeSkeleton>} a promise that resolves to a theme object
|
|
26
26
|
*/
|
|
27
|
-
async getTheme(themeId, realm) {
|
|
27
|
+
async getTheme(themeId, realm = this.state.getRealm()) {
|
|
28
28
|
return getTheme({
|
|
29
29
|
themeId,
|
|
30
30
|
realm,
|
|
@@ -38,7 +38,7 @@ export default class ThemeOps {
|
|
|
38
38
|
* @param {string} realm realm name
|
|
39
39
|
* @returns {Promise<ThemeSkeleton>} a promise that resolves to a theme object
|
|
40
40
|
*/
|
|
41
|
-
async getThemeByName(themeName, realm) {
|
|
41
|
+
async getThemeByName(themeName, realm = this.state.getRealm()) {
|
|
42
42
|
return getThemeByName({
|
|
43
43
|
themeName,
|
|
44
44
|
realm,
|
|
@@ -53,7 +53,7 @@ export default class ThemeOps {
|
|
|
53
53
|
* @param {string} realm realm name
|
|
54
54
|
* @returns {Promise<ThemeSkeleton>} a promise that resolves to a theme object
|
|
55
55
|
*/
|
|
56
|
-
async putTheme(themeId, themeData, realm) {
|
|
56
|
+
async putTheme(themeId, themeData, realm = this.state.getRealm()) {
|
|
57
57
|
return putTheme({
|
|
58
58
|
themeId,
|
|
59
59
|
themeData,
|
|
@@ -69,7 +69,7 @@ export default class ThemeOps {
|
|
|
69
69
|
* @param {string} realm realm name
|
|
70
70
|
* @returns {Promise<ThemeSkeleton>} a promise that resolves to a theme object
|
|
71
71
|
*/
|
|
72
|
-
async putThemeByName(themeName, themeData, realm) {
|
|
72
|
+
async putThemeByName(themeName, themeData, realm = this.state.getRealm()) {
|
|
73
73
|
return putThemeByName({
|
|
74
74
|
themeName,
|
|
75
75
|
themeData,
|
|
@@ -97,7 +97,7 @@ export default class ThemeOps {
|
|
|
97
97
|
* @param {string} realm realm name
|
|
98
98
|
* @returns {Promise<ThemeSkeleton>} a promise that resolves to a themes object
|
|
99
99
|
*/
|
|
100
|
-
async deleteTheme(themeId, realm) {
|
|
100
|
+
async deleteTheme(themeId, realm = this.state.getRealm()) {
|
|
101
101
|
return deleteTheme({
|
|
102
102
|
themeId,
|
|
103
103
|
realm,
|
|
@@ -111,7 +111,7 @@ export default class ThemeOps {
|
|
|
111
111
|
* @param {string} realm realm name
|
|
112
112
|
* @returns {Promise<ThemeSkeleton>} a promise that resolves to a themes object
|
|
113
113
|
*/
|
|
114
|
-
async deleteThemeByName(themeName, realm) {
|
|
114
|
+
async deleteThemeByName(themeName, realm = this.state.getRealm()) {
|
|
115
115
|
return deleteThemeByName({
|
|
116
116
|
themeName,
|
|
117
117
|
realm,
|
|
@@ -124,7 +124,7 @@ export default class ThemeOps {
|
|
|
124
124
|
* @param {string} realm realm name
|
|
125
125
|
* @returns {Promise<ThemeSkeleton[]>} a promise that resolves to an array of themes
|
|
126
126
|
*/
|
|
127
|
-
async deleteThemes(realm) {
|
|
127
|
+
async deleteThemes(realm = this.state.getRealm()) {
|
|
128
128
|
return deleteThemes({
|
|
129
129
|
realm,
|
|
130
130
|
state: this.state
|
package/esm/ops/cloud/LogOps.mjs
CHANGED
|
@@ -8,7 +8,7 @@ export default class LogOps {
|
|
|
8
8
|
* Get default noise filter
|
|
9
9
|
* @returns {string[]} array of default event types and loggers to be filtered out
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
getDefaultNoiseFilter() {
|
|
12
12
|
return getDefaultNoiseFilter();
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -18,10 +18,7 @@ export default class LogOps {
|
|
|
18
18
|
* @returns {string[]} array of effective log levels
|
|
19
19
|
*/
|
|
20
20
|
resolveLevel(level) {
|
|
21
|
-
|
|
22
|
-
return logLevelMap[level];
|
|
23
|
-
}
|
|
24
|
-
return logLevelMap[numLogLevelMap[level][0]];
|
|
21
|
+
return resolveLevel(level);
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
/**
|
|
@@ -30,14 +27,7 @@ export default class LogOps {
|
|
|
30
27
|
* @returns {string} log level
|
|
31
28
|
*/
|
|
32
29
|
resolvePayloadLevel(log) {
|
|
33
|
-
|
|
34
|
-
// Therefore, for those, this function returns null, and thus filters out the undesirable
|
|
35
|
-
try {
|
|
36
|
-
return log.type !== 'text/plain' ? log.payload.level : log.payload.match(/^([^:]*):/)[1];
|
|
37
|
-
} catch (e) {
|
|
38
|
-
// Fail-safe for no group match
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
30
|
+
return resolvePayloadLevel(log);
|
|
41
31
|
}
|
|
42
32
|
|
|
43
33
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Table from 'cli-table3';
|
|
2
|
-
import {
|
|
2
|
+
import { state } from '../../lib/FrodoLib';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Handles data / messages output. The caller decides and implements how
|
|
@@ -14,7 +14,7 @@ import { globalState } from '../../lib/FrodoLib';
|
|
|
14
14
|
* messages returned
|
|
15
15
|
*/
|
|
16
16
|
export function printMessage(message, type = 'text', newline = true) {
|
|
17
|
-
const handler =
|
|
17
|
+
const handler = state.getPrintHandler();
|
|
18
18
|
if (handler) {
|
|
19
19
|
handler(message, type, newline);
|
|
20
20
|
}
|
|
@@ -28,7 +28,7 @@ export function printMessage(message, type = 'text', newline = true) {
|
|
|
28
28
|
* @param {string | unknown} message The verbose output message
|
|
29
29
|
*/
|
|
30
30
|
export function verboseMessage(message) {
|
|
31
|
-
const handler =
|
|
31
|
+
const handler = state.getVerboseHandler();
|
|
32
32
|
if (handler) {
|
|
33
33
|
handler(message);
|
|
34
34
|
}
|
|
@@ -42,7 +42,7 @@ export function verboseMessage(message) {
|
|
|
42
42
|
* @param {string | object} message The debug output message
|
|
43
43
|
*/
|
|
44
44
|
export function debugMessage(message) {
|
|
45
|
-
const handler =
|
|
45
|
+
const handler = state.getDebugHandler();
|
|
46
46
|
if (handler) {
|
|
47
47
|
handler(message);
|
|
48
48
|
}
|
|
@@ -69,7 +69,7 @@ function maskPasswordHeader(curlCommand) {
|
|
|
69
69
|
* @param {string} message The curlirize output message
|
|
70
70
|
*/
|
|
71
71
|
export function curlirizeMessage(message) {
|
|
72
|
-
const handler =
|
|
72
|
+
const handler = state.getCurlirizeHandler();
|
|
73
73
|
if (handler) {
|
|
74
74
|
handler(maskPasswordHeader(message));
|
|
75
75
|
}
|
|
@@ -94,7 +94,7 @@ export function curlirizeMessage(message) {
|
|
|
94
94
|
*
|
|
95
95
|
*/
|
|
96
96
|
export function createProgressIndicator(total, message = null, type = 'determinate') {
|
|
97
|
-
const handler =
|
|
97
|
+
const handler = state.getCreateProgressHandler();
|
|
98
98
|
if (handler) {
|
|
99
99
|
handler(type, total, message);
|
|
100
100
|
}
|
|
@@ -106,7 +106,7 @@ export function createProgressIndicator(total, message = null, type = 'determina
|
|
|
106
106
|
*
|
|
107
107
|
*/
|
|
108
108
|
export function updateProgressIndicator(message = null) {
|
|
109
|
-
const handler =
|
|
109
|
+
const handler = state.getUpdateProgressHandler();
|
|
110
110
|
if (handler) {
|
|
111
111
|
handler(message);
|
|
112
112
|
}
|
|
@@ -118,7 +118,7 @@ export function updateProgressIndicator(message = null) {
|
|
|
118
118
|
* @param {string} status one of 'none', 'success', 'warn', 'fail'
|
|
119
119
|
*/
|
|
120
120
|
export function stopProgressIndicator(message = null, status = 'none') {
|
|
121
|
-
const handler =
|
|
121
|
+
const handler = state.getStopProgressHandler();
|
|
122
122
|
if (handler) {
|
|
123
123
|
handler(message, status);
|
|
124
124
|
}
|
|
@@ -5,6 +5,107 @@ import slugify from 'slugify';
|
|
|
5
5
|
import { decode, decodeBase64Url, encode, encodeBase64Url } from '../../api/utils/Base64';
|
|
6
6
|
import { FRODO_METADATA_ID } from '../../storage/StaticStorage';
|
|
7
7
|
import { debugMessage, printMessage } from './Console';
|
|
8
|
+
export default class ExportImportUtils {
|
|
9
|
+
constructor(state) {
|
|
10
|
+
this.state = state;
|
|
11
|
+
}
|
|
12
|
+
getMetadata() {
|
|
13
|
+
return getMetadata({
|
|
14
|
+
state: this.state
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* Output str in title case
|
|
20
|
+
*
|
|
21
|
+
* e.g.: 'ALL UPPERCASE AND all lowercase' = 'All Uppercase And All Lowercase'
|
|
22
|
+
*/
|
|
23
|
+
titleCase(input) {
|
|
24
|
+
return titleCase(input);
|
|
25
|
+
}
|
|
26
|
+
getRealmString() {
|
|
27
|
+
return getRealmString({
|
|
28
|
+
state: this.state
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
convertBase64TextToArray(b64text) {
|
|
32
|
+
return convertBase64TextToArray(b64text);
|
|
33
|
+
}
|
|
34
|
+
convertBase64UrlTextToArray(b64UTF8Text) {
|
|
35
|
+
return convertBase64UrlTextToArray(b64UTF8Text);
|
|
36
|
+
}
|
|
37
|
+
convertTextArrayToBase64(textArray) {
|
|
38
|
+
return convertTextArrayToBase64(textArray);
|
|
39
|
+
}
|
|
40
|
+
convertTextArrayToBase64Url(textArray) {
|
|
41
|
+
return convertTextArrayToBase64Url(textArray);
|
|
42
|
+
}
|
|
43
|
+
validateImport(metadata) {
|
|
44
|
+
return validateImport(metadata);
|
|
45
|
+
}
|
|
46
|
+
getTypedFilename(name, type, suffix = 'json') {
|
|
47
|
+
return getTypedFilename(name, type, suffix);
|
|
48
|
+
}
|
|
49
|
+
getWorkingDirectory() {
|
|
50
|
+
return getWorkingDirectory({
|
|
51
|
+
state: this.state
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
saveToFile(type, data, identifier, filename) {
|
|
55
|
+
return saveToFile({
|
|
56
|
+
type,
|
|
57
|
+
data,
|
|
58
|
+
identifier,
|
|
59
|
+
filename,
|
|
60
|
+
state: this.state
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Save JSON object to file
|
|
66
|
+
* @param {Object} data data object
|
|
67
|
+
* @param {String} filename file name
|
|
68
|
+
* @return {boolean} true if successful, false otherwise
|
|
69
|
+
*/
|
|
70
|
+
saveJsonToFile(data, filename, includeMeta = true) {
|
|
71
|
+
return saveJsonToFile({
|
|
72
|
+
data,
|
|
73
|
+
filename,
|
|
74
|
+
includeMeta,
|
|
75
|
+
state: this.state
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Append text data to file
|
|
81
|
+
* @param {String} data text data
|
|
82
|
+
* @param {String} filename file name
|
|
83
|
+
*/
|
|
84
|
+
appendTextToFile(data, filename) {
|
|
85
|
+
return appendTextToFile(data, filename);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Find files by name
|
|
90
|
+
* @param {string} fileName file name to search for
|
|
91
|
+
* @param {boolean} fast return first result and stop search
|
|
92
|
+
* @param {string} path path to directory where to start the search
|
|
93
|
+
* @returns {string[]} array of found file paths relative to starting directory
|
|
94
|
+
*/
|
|
95
|
+
findFilesByName(fileName, fast = true, path = './') {
|
|
96
|
+
return findFilesByName(fileName, fast, path);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* find all (nested) files in a directory
|
|
101
|
+
*
|
|
102
|
+
* @param directory directory to search
|
|
103
|
+
* @returns list of files
|
|
104
|
+
*/
|
|
105
|
+
async readFilesRecursive(directory) {
|
|
106
|
+
return readFilesRecursive(directory);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
8
109
|
export function getMetadata({
|
|
9
110
|
state
|
|
10
111
|
}) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { state } from '../../index';
|
|
1
2
|
import { resolve } from 'path';
|
|
2
3
|
import { rmSync, existsSync, readFileSync } from 'fs';
|
|
3
4
|
import { convertTextArrayToBase64, convertBase64TextToArray, saveToFile, validateImport } from './ExportImportUtils';
|
|
@@ -64,7 +65,13 @@ describe.skip('file system based tests', () => {
|
|
|
64
65
|
}
|
|
65
66
|
};
|
|
66
67
|
// Act
|
|
67
|
-
saveToFile(
|
|
68
|
+
saveToFile({
|
|
69
|
+
type: 'lotr',
|
|
70
|
+
data,
|
|
71
|
+
identifier: 'id',
|
|
72
|
+
filename: PATH_TO_ARTIFACT,
|
|
73
|
+
state
|
|
74
|
+
});
|
|
68
75
|
const resultingJSON = JSON.parse(readFileSync(PATH_TO_ARTIFACT, 'utf8'));
|
|
69
76
|
// Assert
|
|
70
77
|
expect(resultingJSON.lotr).toEqual(expected.lotr);
|
|
@@ -79,7 +86,13 @@ describe.skip('file system based tests', () => {
|
|
|
79
86
|
words: 1064
|
|
80
87
|
}];
|
|
81
88
|
// Act
|
|
82
|
-
saveToFile(
|
|
89
|
+
saveToFile({
|
|
90
|
+
type: 'lotr',
|
|
91
|
+
data,
|
|
92
|
+
identifier: 'id',
|
|
93
|
+
filename: PATH_TO_ARTIFACT,
|
|
94
|
+
state
|
|
95
|
+
});
|
|
83
96
|
const resultingJSON = JSON.parse(readFileSync(PATH_TO_ARTIFACT, 'utf8'));
|
|
84
97
|
// Assert
|
|
85
98
|
expect(Object.keys(resultingJSON.meta)).toEqual(['origin', 'exportedBy', 'exportDate', 'exportTool', 'exportToolVersion']);
|
|
@@ -2,12 +2,29 @@ import fs from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import { generateReleaseApi } from '../../api/BaseApi';
|
|
4
4
|
import { fileURLToPath } from 'url';
|
|
5
|
+
export default class Version {
|
|
6
|
+
constructor(state) {
|
|
7
|
+
this.state = state;
|
|
8
|
+
}
|
|
9
|
+
getVersion() {
|
|
10
|
+
return getVersion({
|
|
11
|
+
state: this.state
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
async getAllVersions(endpoints) {
|
|
15
|
+
return getAllVersions({
|
|
16
|
+
endpoints,
|
|
17
|
+
state: this.state
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
5
21
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
6
22
|
const pkg = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../../package.json'), 'utf8'));
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
23
|
+
export function getVersion({
|
|
24
|
+
state
|
|
25
|
+
}) {
|
|
26
|
+
// must initialize state to avoid library initialization issues
|
|
27
|
+
if (state) return `${pkg.version}`;
|
|
11
28
|
}
|
|
12
29
|
export async function getAllVersions({
|
|
13
30
|
endpoints,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { state } from '../../index';
|
|
1
2
|
import fs from 'fs';
|
|
2
3
|
import path from 'path';
|
|
3
4
|
import { getVersion } from './Version';
|
|
@@ -6,7 +7,9 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
6
7
|
const pkg = JSON.parse(fs.readFileSync(path.resolve(__dirname, '../../../package.json'), 'utf8'));
|
|
7
8
|
describe('index', () => {
|
|
8
9
|
test('get library version', () => {
|
|
9
|
-
const result = getVersion(
|
|
10
|
+
const result = getVersion({
|
|
11
|
+
state
|
|
12
|
+
});
|
|
10
13
|
expect(result).toEqual(`${pkg.version}`);
|
|
11
14
|
});
|
|
12
15
|
});
|
package/esm/shared/State.mjs
CHANGED
package/package.json
CHANGED
package/types/api/ApiTypes.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface NoIdObjectSkeletonInterface {
|
|
2
2
|
_rev?: number;
|
|
3
|
-
[k: string]: string | number | boolean | string[] | IdObjectSkeletonInterface | object |
|
|
3
|
+
[k: string]: string | number | boolean | string[] | IdObjectSkeletonInterface | object | undefined;
|
|
4
4
|
}
|
|
5
5
|
export interface IdObjectSkeletonInterface extends NoIdObjectSkeletonInterface {
|
|
6
6
|
_id: string;
|
|
@@ -91,7 +91,7 @@ export type PolicySkeleton = IdObjectSkeletonInterface & {
|
|
|
91
91
|
};
|
|
92
92
|
export type OAuth2ClientSkeleton = IdObjectSkeletonInterface & {
|
|
93
93
|
overrideOAuth2ClientConfig?: {
|
|
94
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
94
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
95
95
|
};
|
|
96
96
|
advancedOAuth2ClientConfig?: {
|
|
97
97
|
descriptions: {
|
|
@@ -100,18 +100,18 @@ export type OAuth2ClientSkeleton = IdObjectSkeletonInterface & {
|
|
|
100
100
|
};
|
|
101
101
|
grantTypes?: {
|
|
102
102
|
value: string[];
|
|
103
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
103
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
104
104
|
};
|
|
105
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
105
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
106
106
|
};
|
|
107
107
|
signEncOAuth2ClientConfig?: {
|
|
108
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
108
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
109
109
|
};
|
|
110
110
|
coreOpenIDClientConfig?: {
|
|
111
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
111
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
112
112
|
};
|
|
113
113
|
coreOAuth2ClientConfig?: {
|
|
114
|
-
userpassword?:
|
|
114
|
+
userpassword?: string;
|
|
115
115
|
clientName?: {
|
|
116
116
|
inherited: boolean;
|
|
117
117
|
value: string[];
|
|
@@ -122,16 +122,16 @@ export type OAuth2ClientSkeleton = IdObjectSkeletonInterface & {
|
|
|
122
122
|
};
|
|
123
123
|
scopes?: {
|
|
124
124
|
value: string[];
|
|
125
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
125
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
126
126
|
};
|
|
127
127
|
defaultScopes?: {
|
|
128
128
|
value: string[];
|
|
129
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
129
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
130
130
|
};
|
|
131
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
131
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
132
132
|
};
|
|
133
133
|
coreUmaClientConfig?: {
|
|
134
|
-
[k: string]: string | number | boolean | string[] | object |
|
|
134
|
+
[k: string]: string | number | boolean | string[] | object | undefined;
|
|
135
135
|
};
|
|
136
136
|
_type: AmServiceType;
|
|
137
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/api/ApiTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,EAAE,GACR,yBAAyB,GACzB,MAAM,GACN,IAAI,CAAC;CACV;AAED,MAAM,WAAW,yBAA0B,SAAQ,2BAA2B;IAC5E,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAE3B,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,MAAM,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAA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C,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GAAG;IAC9D,KAAK,EAAE,aAAa,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,MAAM,IAAI;IAChC,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,OAAO,CAAC;IACjC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE;QACH,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,2BAA2B,GAAG;IAC3D,OAAO,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC","file":"ApiTypes.d.ts","sourcesContent":["export interface NoIdObjectSkeletonInterface {\n _rev?: number;\n [k: string]:\n | string\n | number\n | boolean\n | string[]\n | IdObjectSkeletonInterface\n | object\n | null;\n}\n\nexport interface IdObjectSkeletonInterface extends NoIdObjectSkeletonInterface {\n _id: string;\n}\n\nexport interface PagedResults {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n result: any[];\n resultCount: number;\n pagedResultsCookie: string;\n totalPagedResultsPolicy: string;\n totalPagedResults: number;\n remainingPagedResults: number;\n}\n\nexport interface UiConfigInterface {\n categories: string;\n}\n\nexport interface NodeRefSkeletonInterface {\n connections: Record<string, string>;\n displayName: string;\n nodeType: string;\n x: number;\n y: number;\n}\n\nexport interface InnerNodeRefSkeletonInterface {\n _id: string;\n displayName: string;\n nodeType: string;\n}\n\nexport type TreeSkeleton = IdObjectSkeletonInterface & {\n entryNodeId: string;\n nodes: Record<string, NodeRefSkeletonInterface>;\n identityResource?: string;\n uiConfig?: UiConfigInterface;\n enabled?: boolean;\n};\n\nexport type AmServiceType = IdObjectSkeletonInterface & {\n name: string;\n};\n\nexport type NodeSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n nodes?: InnerNodeRefSkeletonInterface[];\n tree?: string;\n identityResource?: string;\n};\n\nexport type SocialIdpSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n enabled: boolean;\n};\n\nexport type PolicySetSkeleton = NoIdObjectSkeletonInterface & {\n name: string;\n resourceTypeUuids: string[];\n};\n\nexport type ResourceTypeSkeleton = NoIdObjectSkeletonInterface & {\n uuid: string;\n name: string;\n};\n\nexport enum PolicyConditionType {\n Script = 'Script',\n AMIdentityMembership = 'AMIdentityMembership',\n IPv6 = 'IPv6',\n IPv4 = 'IPv4',\n SimpleTime = 'SimpleTime',\n LEAuthLevel = 'LEAuthLevel',\n LDAPFilter = 'LDAPFilter',\n AuthScheme = 'AuthScheme',\n Session = 'Session',\n AND = 'AND',\n AuthenticateToRealm = 'AuthenticateToRealm',\n ResourceEnvIP = 'ResourceEnvIP',\n Policy = 'Policy',\n OAuth2Scope = 'OAuth2Scope',\n SessionProperty = 'SessionProperty',\n OR = 'OR',\n Transaction = 'Transaction',\n NOT = 'NOT',\n AuthLevel = 'AuthLevel',\n AuthenticateToService = 'AuthenticateToService',\n}\n\nexport type PolicyCondition = NoIdObjectSkeletonInterface & {\n type: keyof typeof PolicyConditionType;\n condition?: PolicyCondition;\n conditions?: PolicyCondition[];\n};\n\nexport type PolicySkeleton = IdObjectSkeletonInterface & {\n name: string;\n applicationName: string;\n condition?: PolicyCondition;\n resourceTypeUuid: string;\n};\n\nexport type OAuth2ClientSkeleton = IdObjectSkeletonInterface & {\n overrideOAuth2ClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | null;\n };\n advancedOAuth2ClientConfig?: {\n descriptions: {\n inherited: boolean;\n value: string[];\n };\n grantTypes?: {\n value: string[];\n [k: string]: string | number | boolean | string[] | object | null;\n };\n [k: string]: string | number | boolean | string[] | object | null;\n };\n signEncOAuth2ClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | null;\n };\n coreOpenIDClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | null;\n };\n coreOAuth2ClientConfig?: {\n userpassword?: null;\n clientName?: {\n inherited: boolean;\n value: string[];\n };\n accessTokenLifetime?: {\n inherited: boolean;\n value: number;\n };\n scopes?: {\n value: string[];\n [k: string]: string | number | boolean | string[] | object | null;\n };\n defaultScopes?: {\n value: string[];\n [k: string]: string | number | boolean | string[] | object | null;\n };\n [k: string]: string | number | boolean | string[] | object | null;\n };\n coreUmaClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | null;\n };\n _type: AmServiceType;\n};\n\nexport type AmServiceSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n};\n\nexport type AgentSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n};\n\nexport type EmailTemplateSkeleton = IdObjectSkeletonInterface & {\n defaultLocale?: string;\n displayName?: string;\n enabled?: boolean;\n from: string;\n subject: Record<string, string>;\n message?: Record<string, string>;\n html?: Record<string, string>;\n};\n\nexport type ThemeSkeleton = IdObjectSkeletonInterface & {\n name: string;\n isDefault: boolean;\n linkedTrees: string[];\n};\n\nexport type UiThemeRealmObject = IdObjectSkeletonInterface & {\n name: string;\n realm: Map<string, ThemeSkeleton[]>;\n};\n\nexport enum ScriptLanguage {\n GROOVY,\n JAVASCRIPT,\n}\n\nexport enum ScriptContext {\n OAUTH2_ACCESS_TOKEN_MODIFICATION,\n AUTHENTICATION_CLIENT_SIDE,\n AUTHENTICATION_TREE_DECISION_NODE,\n AUTHENTICATION_SERVER_SIDE,\n SOCIAL_IDP_PROFILE_TRANSFORMATION,\n OAUTH2_VALIDATE_SCOPE,\n CONFIG_PROVIDER_NODE,\n OAUTH2_AUTHORIZE_ENDPOINT_DATA_PROVIDER,\n OAUTH2_EVALUATE_SCOPE,\n POLICY_CONDITION,\n OIDC_CLAIMS,\n SAML2_IDP_ADAPTER,\n SAML2_IDP_ATTRIBUTE_MAPPER,\n OAUTH2_MAY_ACT,\n}\n\nexport type ScriptSkeleton = IdObjectSkeletonInterface & {\n name: string;\n description: string;\n default: boolean;\n script: string | string[];\n language: keyof typeof ScriptLanguage;\n context: keyof typeof ScriptContext;\n createdBy: string;\n creationDate: number;\n lastModifiedBy: string;\n lastModifiedDate: number;\n};\n\nexport enum Saml2ProiderLocation {\n HOSTED = 'hosted',\n REMOTE = 'remote',\n}\n\nexport type Saml2ProviderStub = IdObjectSkeletonInterface & {\n entityId: string;\n location: Saml2ProiderLocation;\n roles: string[];\n};\n\nexport type Saml2ProviderSkeleton = IdObjectSkeletonInterface & {\n entityId: string;\n entityLocation: Saml2ProiderLocation;\n serviceProvider: unknown;\n identityProvider: unknown;\n attributeQueryProvider: unknown;\n xacmlPolicyEnforcementPoint: unknown;\n};\n\nexport type CircleOfTrustSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n status: string;\n trustedProviders: string[];\n};\n\nexport type PagedResult<Result> = {\n result: Result[];\n resultCount: number;\n pagedResultsCookie: string;\n totalPagedResultsPolicy: 'EXACT';\n totalPagedResults: number;\n remainingPagedResults: number;\n};\n\nexport type LogApiKey = {\n name: string;\n api_key_id: string;\n created_at: string;\n};\n\nexport type LogEventPayloadSkeleton = NoIdObjectSkeletonInterface & {\n context: string;\n level: string;\n logger: string;\n mdc: {\n transactionId: string;\n };\n message: string;\n thread: string;\n timestamp: string;\n transactionId: string;\n};\n\nexport type LogEventSkeleton = NoIdObjectSkeletonInterface & {\n payload: string | LogEventPayloadSkeleton;\n timestamp: string;\n type: string;\n source: string;\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/api/ApiTypes.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,2BAA2B;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,CAAC,EAAE,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,EAAE,GACR,yBAAyB,GACzB,MAAM,GACN,SAAS,CAAC;CACf;AAED,MAAM,WAAW,yBAA0B,SAAQ,2BAA2B;IAC5E,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,YAAY;IAE3B,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,uBAAuB,EAAE,MAAM,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,6BAA6B;IAC5C,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CA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MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,2BAA2B,GAAG;IAClE,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE;QACH,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,2BAA2B,GAAG;IAC3D,OAAO,EAAE,MAAM,GAAG,uBAAuB,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC","file":"ApiTypes.d.ts","sourcesContent":["export interface NoIdObjectSkeletonInterface {\n _rev?: number;\n [k: string]:\n | string\n | number\n | boolean\n | string[]\n | IdObjectSkeletonInterface\n | object\n | undefined;\n}\n\nexport interface IdObjectSkeletonInterface extends NoIdObjectSkeletonInterface {\n _id: string;\n}\n\nexport interface PagedResults {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n result: any[];\n resultCount: number;\n pagedResultsCookie: string;\n totalPagedResultsPolicy: string;\n totalPagedResults: number;\n remainingPagedResults: number;\n}\n\nexport interface UiConfigInterface {\n categories: string;\n}\n\nexport interface NodeRefSkeletonInterface {\n connections: Record<string, string>;\n displayName: string;\n nodeType: string;\n x: number;\n y: number;\n}\n\nexport interface InnerNodeRefSkeletonInterface {\n _id: string;\n displayName: string;\n nodeType: string;\n}\n\nexport type TreeSkeleton = IdObjectSkeletonInterface & {\n entryNodeId: string;\n nodes: Record<string, NodeRefSkeletonInterface>;\n identityResource?: string;\n uiConfig?: UiConfigInterface;\n enabled?: boolean;\n};\n\nexport type AmServiceType = IdObjectSkeletonInterface & {\n name: string;\n};\n\nexport type NodeSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n nodes?: InnerNodeRefSkeletonInterface[];\n tree?: string;\n identityResource?: string;\n};\n\nexport type SocialIdpSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n enabled: boolean;\n};\n\nexport type PolicySetSkeleton = NoIdObjectSkeletonInterface & {\n name: string;\n resourceTypeUuids: string[];\n};\n\nexport type ResourceTypeSkeleton = NoIdObjectSkeletonInterface & {\n uuid: string;\n name: string;\n};\n\nexport enum PolicyConditionType {\n Script = 'Script',\n AMIdentityMembership = 'AMIdentityMembership',\n IPv6 = 'IPv6',\n IPv4 = 'IPv4',\n SimpleTime = 'SimpleTime',\n LEAuthLevel = 'LEAuthLevel',\n LDAPFilter = 'LDAPFilter',\n AuthScheme = 'AuthScheme',\n Session = 'Session',\n AND = 'AND',\n AuthenticateToRealm = 'AuthenticateToRealm',\n ResourceEnvIP = 'ResourceEnvIP',\n Policy = 'Policy',\n OAuth2Scope = 'OAuth2Scope',\n SessionProperty = 'SessionProperty',\n OR = 'OR',\n Transaction = 'Transaction',\n NOT = 'NOT',\n AuthLevel = 'AuthLevel',\n AuthenticateToService = 'AuthenticateToService',\n}\n\nexport type PolicyCondition = NoIdObjectSkeletonInterface & {\n type: keyof typeof PolicyConditionType;\n condition?: PolicyCondition;\n conditions?: PolicyCondition[];\n};\n\nexport type PolicySkeleton = IdObjectSkeletonInterface & {\n name: string;\n applicationName: string;\n condition?: PolicyCondition;\n resourceTypeUuid: string;\n};\n\nexport type OAuth2ClientSkeleton = IdObjectSkeletonInterface & {\n overrideOAuth2ClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n advancedOAuth2ClientConfig?: {\n descriptions: {\n inherited: boolean;\n value: string[];\n };\n grantTypes?: {\n value: string[];\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n signEncOAuth2ClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n coreOpenIDClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n coreOAuth2ClientConfig?: {\n userpassword?: string;\n clientName?: {\n inherited: boolean;\n value: string[];\n };\n accessTokenLifetime?: {\n inherited: boolean;\n value: number;\n };\n scopes?: {\n value: string[];\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n defaultScopes?: {\n value: string[];\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n coreUmaClientConfig?: {\n [k: string]: string | number | boolean | string[] | object | undefined;\n };\n _type: AmServiceType;\n};\n\nexport type AmServiceSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n [key: string]: any;\n};\n\nexport type AgentSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n};\n\nexport type EmailTemplateSkeleton = IdObjectSkeletonInterface & {\n defaultLocale?: string;\n displayName?: string;\n enabled?: boolean;\n from: string;\n subject: Record<string, string>;\n message?: Record<string, string>;\n html?: Record<string, string>;\n};\n\nexport type ThemeSkeleton = IdObjectSkeletonInterface & {\n name: string;\n isDefault: boolean;\n linkedTrees: string[];\n};\n\nexport type UiThemeRealmObject = IdObjectSkeletonInterface & {\n name: string;\n realm: Map<string, ThemeSkeleton[]>;\n};\n\nexport enum ScriptLanguage {\n GROOVY,\n JAVASCRIPT,\n}\n\nexport enum ScriptContext {\n OAUTH2_ACCESS_TOKEN_MODIFICATION,\n AUTHENTICATION_CLIENT_SIDE,\n AUTHENTICATION_TREE_DECISION_NODE,\n AUTHENTICATION_SERVER_SIDE,\n SOCIAL_IDP_PROFILE_TRANSFORMATION,\n OAUTH2_VALIDATE_SCOPE,\n CONFIG_PROVIDER_NODE,\n OAUTH2_AUTHORIZE_ENDPOINT_DATA_PROVIDER,\n OAUTH2_EVALUATE_SCOPE,\n POLICY_CONDITION,\n OIDC_CLAIMS,\n SAML2_IDP_ADAPTER,\n SAML2_IDP_ATTRIBUTE_MAPPER,\n OAUTH2_MAY_ACT,\n}\n\nexport type ScriptSkeleton = IdObjectSkeletonInterface & {\n name: string;\n description: string;\n default: boolean;\n script: string | string[];\n language: keyof typeof ScriptLanguage;\n context: keyof typeof ScriptContext;\n createdBy: string;\n creationDate: number;\n lastModifiedBy: string;\n lastModifiedDate: number;\n};\n\nexport enum Saml2ProiderLocation {\n HOSTED = 'hosted',\n REMOTE = 'remote',\n}\n\nexport type Saml2ProviderStub = IdObjectSkeletonInterface & {\n entityId: string;\n location: Saml2ProiderLocation;\n roles: string[];\n};\n\nexport type Saml2ProviderSkeleton = IdObjectSkeletonInterface & {\n entityId: string;\n entityLocation: Saml2ProiderLocation;\n serviceProvider: unknown;\n identityProvider: unknown;\n attributeQueryProvider: unknown;\n xacmlPolicyEnforcementPoint: unknown;\n};\n\nexport type CircleOfTrustSkeleton = IdObjectSkeletonInterface & {\n _type: AmServiceType;\n status: string;\n trustedProviders: string[];\n};\n\nexport type PagedResult<Result> = {\n result: Result[];\n resultCount: number;\n pagedResultsCookie: string;\n totalPagedResultsPolicy: 'EXACT';\n totalPagedResults: number;\n remainingPagedResults: number;\n};\n\nexport type LogApiKey = {\n name: string;\n api_key_id: string;\n created_at: string;\n};\n\nexport type LogEventPayloadSkeleton = NoIdObjectSkeletonInterface & {\n context: string;\n level: string;\n logger: string;\n mdc: {\n transactionId: string;\n };\n message: string;\n thread: string;\n timestamp: string;\n transactionId: string;\n};\n\nexport type LogEventSkeleton = NoIdObjectSkeletonInterface & {\n payload: string | LogEventPayloadSkeleton;\n timestamp: string;\n type: string;\n source: string;\n};\n"]}
|
package/types/index.d.ts
CHANGED
|
@@ -1,48 +1 @@
|
|
|
1
|
-
export { frodo,
|
|
2
|
-
export * as AgentRaw from './api/AgentApi';
|
|
3
|
-
export * as AuthenticateRaw from './api/AuthenticateApi';
|
|
4
|
-
export * as NodeRaw from './api/NodeApi';
|
|
5
|
-
export * as OAuth2OIDCApi from './api/OAuth2OIDCApi';
|
|
6
|
-
export * as SecretsRaw from './api/cloud/SecretsApi';
|
|
7
|
-
export * as SocialIdentityProvidersRaw from './api/SocialIdentityProvidersApi';
|
|
8
|
-
export * as StartupRaw from './api/cloud/StartupApi';
|
|
9
|
-
export * as TreeRaw from './api/TreeApi';
|
|
10
|
-
export * as TypesRaw from './api/ApiTypes';
|
|
11
|
-
export * as VariablesRaw from './api/cloud/VariablesApi';
|
|
12
|
-
export * as IdmConfigRaw from './api/IdmConfigApi';
|
|
13
|
-
export * as Admin from './ops/AdminOps';
|
|
14
|
-
export * as Agent from './ops/AgentOps';
|
|
15
|
-
export * as Authenticate from './ops/AuthenticateOps';
|
|
16
|
-
export * as CirclesOfTrust from './ops/CirclesOfTrustOps';
|
|
17
|
-
export * as ConnectionProfile from './ops/ConnectionProfileOps';
|
|
18
|
-
export * as EmailTemplate from './ops/EmailTemplateOps';
|
|
19
|
-
export * as Idp from './ops/IdpOps';
|
|
20
|
-
export * as Idm from './ops/IdmOps';
|
|
21
|
-
export * as Info from './ops/InfoOps';
|
|
22
|
-
export * as Journey from './ops/JourneyOps';
|
|
23
|
-
export * as Jose from './ops/JoseOps';
|
|
24
|
-
export * as Log from './ops/cloud/LogOps';
|
|
25
|
-
export * as ManagedObject from './ops/ManagedObjectOps';
|
|
26
|
-
export * as Node from './ops/NodeOps';
|
|
27
|
-
export * as OAuth2Client from './ops/OAuth2ClientOps';
|
|
28
|
-
export * as OAuth2Provider from './ops/OAuth2ProviderOps';
|
|
29
|
-
export * as Organization from './ops/OrganizationOps';
|
|
30
|
-
export * as Policy from './ops/PolicyOps';
|
|
31
|
-
export * as PolicySet from './ops/PolicySetOps';
|
|
32
|
-
export * as Realm from './ops/RealmOps';
|
|
33
|
-
export * as ResourceType from './ops/ResourceTypeOps';
|
|
34
|
-
export * as Saml2 from './ops/Saml2Ops';
|
|
35
|
-
export * as Script from './ops/ScriptOps';
|
|
36
|
-
export * as Service from './ops/ServiceOps';
|
|
37
|
-
export * as Secrets from './ops/cloud/SecretsOps';
|
|
38
|
-
export * as ServiceAccount from './ops/cloud/ServiceAccountOps';
|
|
39
|
-
export * as Startup from './ops/cloud/StartupOps';
|
|
40
|
-
export * as Theme from './ops/ThemeOps';
|
|
41
|
-
export * as Types from './ops/OpsTypes';
|
|
42
|
-
export * as Variables from './ops/cloud/VariablesOps';
|
|
43
|
-
export * as Utils from './ops/utils/OpsUtils';
|
|
44
|
-
export * as Base64 from './api/utils/Base64';
|
|
45
|
-
export * as ValidationUtils from './ops/utils/ScriptValidationUtils';
|
|
46
|
-
export * as LibVersion from './ops/utils/Version';
|
|
47
|
-
export * as ExportImportUtils from './ops/utils/ExportImportUtils';
|
|
48
|
-
export * as constants from './storage/StaticStorage';
|
|
1
|
+
export { frodo, state } from './lib/FrodoLib';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC","file":"index.d.ts","sourcesContent":["export { frodo, state } from './lib/FrodoLib';\n"]}
|
package/types/lib/FrodoLib.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import AuthenticateOps from '../ops/AuthenticateOps';
|
|
|
5
5
|
import CirclesOfTrustOps from '../ops/CirclesOfTrustOps';
|
|
6
6
|
import ConnectionProfileOps from '../ops/ConnectionProfileOps';
|
|
7
7
|
import EmailTemplateOps from '../ops/EmailTemplateOps';
|
|
8
|
+
import ExportImportUtils from '../ops/utils/ExportImportUtils';
|
|
8
9
|
import FeatureOps from '../ops/cloud/FeatureOps';
|
|
9
10
|
import IdmOps from '../ops/IdmOps';
|
|
10
11
|
import IdpOps from '../ops/IdpOps';
|
|
@@ -14,6 +15,7 @@ import LogOps from '../ops/cloud/LogOps';
|
|
|
14
15
|
import ManagedObjectOps from '../ops/ManagedObjectOps';
|
|
15
16
|
import NodeOps from '../ops/NodeOps';
|
|
16
17
|
import OAuth2ClientOps from '../ops/OAuth2ClientOps';
|
|
18
|
+
import OAuth2OidcOps from '../ops/OAuth2OidcOps';
|
|
17
19
|
import OAuth2ProviderOps from '../ops/OAuth2ProviderOps';
|
|
18
20
|
import OrganizationOps from '../ops/OrganizationOps';
|
|
19
21
|
import PolicyOps from '../ops/PolicyOps';
|
|
@@ -28,12 +30,11 @@ import ServiceAccountOps from '../ops/cloud/ServiceAccountOps';
|
|
|
28
30
|
import StartupOps from '../ops/cloud/StartupOps';
|
|
29
31
|
import ThemeOps from '../ops/ThemeOps';
|
|
30
32
|
import VariablesOps from '../ops/cloud/VariablesOps';
|
|
33
|
+
import Version from '../ops/utils/Version';
|
|
31
34
|
import * as JoseOps from '../ops/JoseOps';
|
|
32
35
|
import * as OpsUtils from '../ops/utils/OpsUtils';
|
|
33
36
|
import * as Base64 from '../api/utils/Base64';
|
|
34
37
|
import * as ScriptValidationUtils from '../ops/utils/ScriptValidationUtils';
|
|
35
|
-
import * as Version from '../ops/utils/Version';
|
|
36
|
-
import * as ExportImportUtils from '../ops/utils/ExportImportUtils';
|
|
37
38
|
import * as constants from '../storage/StaticStorage';
|
|
38
39
|
export declare class FrodoLib {
|
|
39
40
|
state: State;
|
|
@@ -60,14 +61,12 @@ export declare class FrodoLib {
|
|
|
60
61
|
email: {
|
|
61
62
|
template: EmailTemplateOps;
|
|
62
63
|
};
|
|
63
|
-
|
|
64
|
-
jose: typeof JoseOps;
|
|
65
|
-
utils: typeof OpsUtils;
|
|
64
|
+
helper: {
|
|
66
65
|
base64: typeof Base64;
|
|
67
|
-
script: typeof ScriptValidationUtils;
|
|
68
|
-
version: typeof Version;
|
|
69
|
-
exportImportUtils: typeof ExportImportUtils;
|
|
70
66
|
constants: typeof constants;
|
|
67
|
+
jose: typeof JoseOps;
|
|
68
|
+
script: typeof ScriptValidationUtils;
|
|
69
|
+
utils: typeof OpsUtils;
|
|
71
70
|
};
|
|
72
71
|
idm: {
|
|
73
72
|
config: IdmOps;
|
|
@@ -78,6 +77,7 @@ export declare class FrodoLib {
|
|
|
78
77
|
login: AuthenticateOps;
|
|
79
78
|
oauth2oidc: {
|
|
80
79
|
client: OAuth2ClientOps;
|
|
80
|
+
endpoint: OAuth2OidcOps;
|
|
81
81
|
external: IdpOps;
|
|
82
82
|
provider: OAuth2ProviderOps;
|
|
83
83
|
};
|
|
@@ -89,7 +89,11 @@ export declare class FrodoLib {
|
|
|
89
89
|
script: ScriptOps;
|
|
90
90
|
service: ServiceOps;
|
|
91
91
|
theme: ThemeOps;
|
|
92
|
+
utils: {
|
|
93
|
+
impex: ExportImportUtils;
|
|
94
|
+
version: Version;
|
|
95
|
+
};
|
|
92
96
|
constructor(config?: StateInterface);
|
|
93
97
|
}
|
|
94
98
|
export declare const frodo: FrodoLib;
|
|
95
|
-
export declare const
|
|
99
|
+
export declare const state: State;
|