@rockcarver/frodo-lib 0.16.2-2 → 0.16.2-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/cjs/api/AgentApi.js +221 -0
  3. package/cjs/api/AgentApi.js.map +1 -0
  4. package/cjs/api/AgentApi.test.js.map +1 -0
  5. package/cjs/api/ApiTypes.js.map +1 -1
  6. package/cjs/api/BaseApi.js +17 -13
  7. package/cjs/api/BaseApi.js.map +1 -1
  8. package/cjs/ext/axios-curlirize/curlirize.js +47 -0
  9. package/cjs/ext/axios-curlirize/curlirize.js.map +1 -0
  10. package/cjs/ext/axios-curlirize/lib/CurlHelper.js +74 -0
  11. package/cjs/ext/axios-curlirize/lib/CurlHelper.js.map +1 -0
  12. package/cjs/index.js +5 -1
  13. package/cjs/index.js.map +1 -1
  14. package/cjs/ops/AgentOps.js +805 -0
  15. package/cjs/ops/AgentOps.js.map +1 -0
  16. package/cjs/ops/AgentOps.test.js.map +1 -0
  17. package/cjs/ops/AuthenticateOps.js +8 -8
  18. package/cjs/ops/AuthenticateOps.js.map +1 -1
  19. package/cjs/ops/JourneyOps.test.js.map +1 -1
  20. package/cjs/ops/OpsTypes.js.map +1 -1
  21. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
  22. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
  23. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
  24. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
  25. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
  26. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
  27. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
  28. package/cjs/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/webserver.json +455 -0
  29. package/cjs/test/mocks/AgentApi/findAgentById/ajays_client.json +19 -0
  30. package/cjs/test/mocks/AgentApi/findAgentById/apacheagent.json +142 -0
  31. package/cjs/test/mocks/AgentApi/findAgentById/api_client.json +19 -0
  32. package/cjs/test/mocks/AgentApi/findAgentById/ig_chico.json +19 -0
  33. package/cjs/test/mocks/AgentApi/findAgentById/ig_mytestrun_com.json +29 -0
  34. package/cjs/test/mocks/AgentApi/findAgentById/javaAgent.json +190 -0
  35. package/cjs/test/mocks/AgentApi/findAgentById/tomcatagent.json +191 -0
  36. package/cjs/test/mocks/AgentApi/findAgentById/webserver.json +144 -0
  37. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +23 -0
  38. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
  39. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
  40. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +33 -0
  41. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/javaAgent.json +193 -0
  42. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/tomcatagent.json +195 -0
  43. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/apacheagent.json +145 -0
  44. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/webserver.json +148 -0
  45. package/cjs/test/mocks/AgentApi/findAgentByTypeAndId/not_found.json +8 -0
  46. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
  47. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
  48. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
  49. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
  50. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
  51. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
  52. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
  53. package/cjs/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/webserver.json +455 -0
  54. package/cjs/test/mocks/AgentApi/getAgentTypes/agentTypes.json +54 -0
  55. package/cjs/test/mocks/AgentApi/getAgents/agents.json +3862 -0
  56. package/cjs/test/mocks/AgentApi/getAgentsByType/IdentityGatewayAgents.json +73 -0
  57. package/cjs/test/mocks/AgentApi/getAgentsByType/J2EEAgents.json +379 -0
  58. package/cjs/test/mocks/AgentApi/getAgentsByType/WebAgents.json +284 -0
  59. package/cjs/test/mocks/ForgeRockApiMockEngine.js +147 -20
  60. package/cjs/test/mocks/ForgeRockApiMockEngine.js.map +1 -1
  61. package/esm/api/AgentApi.mjs +164 -0
  62. package/esm/api/AgentApi.test.mjs +267 -0
  63. package/esm/api/BaseApi.mjs +17 -5
  64. package/esm/ext/axios-curlirize/curlirize.mjs +38 -0
  65. package/esm/ext/axios-curlirize/lib/CurlHelper.mjs +67 -0
  66. package/esm/index.mjs +2 -0
  67. package/esm/ops/AgentOps.mjs +576 -0
  68. package/esm/ops/AgentOps.test.mjs +1212 -0
  69. package/esm/ops/AuthenticateOps.mjs +8 -8
  70. package/esm/ops/JourneyOps.test.mjs +4 -8
  71. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
  72. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
  73. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
  74. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
  75. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
  76. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
  77. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
  78. package/esm/test/mocks/AgentApi/deleteAgentByTypeAndId/WebAgent/webserver.json +455 -0
  79. package/esm/test/mocks/AgentApi/findAgentById/ajays_client.json +19 -0
  80. package/esm/test/mocks/AgentApi/findAgentById/apacheagent.json +142 -0
  81. package/esm/test/mocks/AgentApi/findAgentById/api_client.json +19 -0
  82. package/esm/test/mocks/AgentApi/findAgentById/ig_chico.json +19 -0
  83. package/esm/test/mocks/AgentApi/findAgentById/ig_mytestrun_com.json +29 -0
  84. package/esm/test/mocks/AgentApi/findAgentById/javaAgent.json +190 -0
  85. package/esm/test/mocks/AgentApi/findAgentById/tomcatagent.json +191 -0
  86. package/esm/test/mocks/AgentApi/findAgentById/webserver.json +144 -0
  87. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +23 -0
  88. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
  89. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
  90. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +33 -0
  91. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/javaAgent.json +193 -0
  92. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/J2EEAgent/tomcatagent.json +195 -0
  93. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/apacheagent.json +145 -0
  94. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/WebAgent/webserver.json +148 -0
  95. package/esm/test/mocks/AgentApi/findAgentByTypeAndId/not_found.json +8 -0
  96. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ajays_client.json +22 -0
  97. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/api_client.json +22 -0
  98. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_chico.json +22 -0
  99. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/IdentityGatewayAgent/ig_mytestrun_com.json +32 -0
  100. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/javaAgent.json +623 -0
  101. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/J2EEAgent/tomcatagent.json +630 -0
  102. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/apacheagent.json +456 -0
  103. package/esm/test/mocks/AgentApi/getAgentByTypeAndId/WebAgent/webserver.json +455 -0
  104. package/esm/test/mocks/AgentApi/getAgentTypes/agentTypes.json +54 -0
  105. package/esm/test/mocks/AgentApi/getAgents/agents.json +3862 -0
  106. package/esm/test/mocks/AgentApi/getAgentsByType/IdentityGatewayAgents.json +73 -0
  107. package/esm/test/mocks/AgentApi/getAgentsByType/J2EEAgents.json +379 -0
  108. package/esm/test/mocks/AgentApi/getAgentsByType/WebAgents.json +284 -0
  109. package/esm/test/mocks/ForgeRockApiMockEngine.mjs +136 -20
  110. package/package.json +3 -4
  111. package/types/api/AgentApi.d.ts +51 -0
  112. package/types/api/AgentApi.d.ts.map +1 -0
  113. package/types/api/ApiTypes.d.ts +3 -0
  114. package/types/api/ApiTypes.d.ts.map +1 -1
  115. package/types/api/BaseApi.d.ts.map +1 -1
  116. package/types/ext/axios-curlirize/curlirize.d.ts +3 -0
  117. package/types/ext/axios-curlirize/curlirize.d.ts.map +1 -0
  118. package/types/ext/axios-curlirize/lib/CurlHelper.d.ts +11 -0
  119. package/types/ext/axios-curlirize/lib/CurlHelper.d.ts.map +1 -0
  120. package/types/index.d.ts +2 -0
  121. package/types/index.d.ts.map +1 -1
  122. package/types/ops/AgentOps.d.ts +210 -0
  123. package/types/ops/AgentOps.d.ts.map +1 -0
  124. package/types/ops/AuthenticateOps.d.ts.map +1 -1
  125. package/types/ops/OpsTypes.d.ts +5 -1
  126. package/types/ops/OpsTypes.d.ts.map +1 -1
  127. package/types/test/mocks/ForgeRockApiMockEngine.d.ts +35 -2
  128. package/types/test/mocks/ForgeRockApiMockEngine.d.ts.map +1 -1
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.CurlHelper = void 0;
7
+ class CurlHelper {
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+
10
+ constructor(config) {
11
+ this.request = config;
12
+ }
13
+ getHeaders() {
14
+ var headers = this.request.headers,
15
+ curlHeaders = '';
16
+
17
+ // get the headers concerning the appropriate method (defined in the global axios instance)
18
+ // eslint-disable-next-line no-prototype-builtins
19
+ if (headers.hasOwnProperty('common')) {
20
+ headers = this.request.headers[this.request.method];
21
+ }
22
+
23
+ // add any custom headers (defined upon calling methods like .get(), .post(), etc.)
24
+ for (var property in this.request.headers) {
25
+ if (!['common', 'delete', 'get', 'head', 'patch', 'post', 'put'].includes(property)) {
26
+ headers[property] = this.request.headers[property];
27
+ }
28
+ }
29
+ for (var _property in headers) {
30
+ var header = "".concat(_property, ":").concat(headers[_property]);
31
+ curlHeaders = "".concat(curlHeaders, " -H \"").concat(header, "\"");
32
+ }
33
+ return curlHeaders.trim();
34
+ }
35
+ getMethod() {
36
+ return "-X ".concat(this.request.method.toUpperCase());
37
+ }
38
+ getBody() {
39
+ if (typeof this.request.data !== 'undefined' && this.request.data !== '' && this.request.data !== null && this.request.method.toUpperCase() !== 'GET') {
40
+ var data = typeof this.request.data === 'object' || Object.prototype.toString.call(this.request.data) === '[object Array]' ? JSON.stringify(this.request.data) : this.request.data;
41
+ return "--data '".concat(data, "'").trim();
42
+ } else {
43
+ return '';
44
+ }
45
+ }
46
+ getUrl() {
47
+ if (this.request.baseURL) {
48
+ return this.request.baseURL + '/' + this.request.url;
49
+ }
50
+ return this.request.url;
51
+ }
52
+ getQueryString() {
53
+ var params = '',
54
+ i = 0;
55
+ for (var param in this.request.params) {
56
+ params += i !== 0 ? "&".concat(param, "=").concat(this.request.params[param]) : "?".concat(param, "=").concat(this.request.params[param]);
57
+ i++;
58
+ }
59
+ return params;
60
+ }
61
+ getBuiltURL() {
62
+ var url = this.getUrl();
63
+ if (this.getQueryString() !== '') {
64
+ url = url.charAt(url.length - 1) === '/' ? url.substr(0, url.length - 1) : url;
65
+ url += this.getQueryString();
66
+ }
67
+ return url.trim();
68
+ }
69
+ generateCommand() {
70
+ return "curl ".concat(this.getMethod(), " ").concat(this.getHeaders(), " ").concat(this.getBody(), " \"").concat(this.getBuiltURL(), "\"").trim().replace(/\s{2,}/g, ' ');
71
+ }
72
+ }
73
+ exports.CurlHelper = CurlHelper;
74
+ //# sourceMappingURL=CurlHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CurlHelper.js","names":["CurlHelper","constructor","config","request","getHeaders","headers","curlHeaders","hasOwnProperty","method","property","includes","header","trim","getMethod","toUpperCase","getBody","data","Object","prototype","toString","call","JSON","stringify","getUrl","baseURL","url","getQueryString","params","i","param","getBuiltURL","charAt","length","substr","generateCommand","replace"],"sources":["ext/axios-curlirize/lib/CurlHelper.ts"],"sourcesContent":["export class CurlHelper {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n request: any;\n constructor(config) {\n this.request = config;\n }\n\n getHeaders() {\n let headers = this.request.headers,\n curlHeaders = '';\n\n // get the headers concerning the appropriate method (defined in the global axios instance)\n // eslint-disable-next-line no-prototype-builtins\n if (headers.hasOwnProperty('common')) {\n headers = this.request.headers[this.request.method];\n }\n\n // add any custom headers (defined upon calling methods like .get(), .post(), etc.)\n for (const property in this.request.headers) {\n if (\n !['common', 'delete', 'get', 'head', 'patch', 'post', 'put'].includes(\n property\n )\n ) {\n headers[property] = this.request.headers[property];\n }\n }\n\n for (const property in headers) {\n const header = `${property}:${headers[property]}`;\n curlHeaders = `${curlHeaders} -H \"${header}\"`;\n }\n\n return curlHeaders.trim();\n }\n\n getMethod() {\n return `-X ${this.request.method.toUpperCase()}`;\n }\n\n getBody() {\n if (\n typeof this.request.data !== 'undefined' &&\n this.request.data !== '' &&\n this.request.data !== null &&\n this.request.method.toUpperCase() !== 'GET'\n ) {\n const data =\n typeof this.request.data === 'object' ||\n Object.prototype.toString.call(this.request.data) === '[object Array]'\n ? JSON.stringify(this.request.data)\n : this.request.data;\n return `--data '${data}'`.trim();\n } else {\n return '';\n }\n }\n\n getUrl() {\n if (this.request.baseURL) {\n return this.request.baseURL + '/' + this.request.url;\n }\n return this.request.url;\n }\n\n getQueryString() {\n let params = '',\n i = 0;\n\n for (const param in this.request.params) {\n params +=\n i !== 0\n ? `&${param}=${this.request.params[param]}`\n : `?${param}=${this.request.params[param]}`;\n i++;\n }\n\n return params;\n }\n\n getBuiltURL() {\n let url = this.getUrl();\n\n if (this.getQueryString() !== '') {\n url =\n url.charAt(url.length - 1) === '/'\n ? url.substr(0, url.length - 1)\n : url;\n url += this.getQueryString();\n }\n\n return url.trim();\n }\n\n generateCommand() {\n return `curl ${this.getMethod()} ${this.getHeaders()} ${this.getBody()} \"${this.getBuiltURL()}\"`\n .trim()\n .replace(/\\s{2,}/g, ' ');\n }\n}\n"],"mappings":";;;;;;AAAO,MAAMA,UAAU,CAAC;EACtB;;EAEAC,WAAW,CAACC,MAAM,EAAE;IAClB,IAAI,CAACC,OAAO,GAAGD,MAAM;EACvB;EAEAE,UAAU,GAAG;IACX,IAAIC,OAAO,GAAG,IAAI,CAACF,OAAO,CAACE,OAAO;MAChCC,WAAW,GAAG,EAAE;;IAElB;IACA;IACA,IAAID,OAAO,CAACE,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AAU,EAAE,cAAI,IAAI,CAACW,OAAO,EAAE,gBAAK,IAAI,CAACe,WAAW,EAAE,QAC1FlB,IAAI,EAAE,CACNuB,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC;EAC5B;AACF;AAAC"}
package/cjs/index.js CHANGED
@@ -3,8 +3,10 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.state = exports.VariablesRaw = exports.Variables = exports.Utils = exports.TypesRaw = exports.Types = exports.TreeRaw = exports.ThemeRaw = exports.Theme = exports.StartupRaw = exports.Startup = exports.SecretsRaw = exports.Secrets = exports.Script = exports.Saml2 = exports.Realm = exports.Organization = exports.OAuth2OIDCApi = exports.OAuth2Client = exports.NodeRaw = exports.Node = exports.ManagedObject = exports.Log = exports.LibVersion = exports.Journey = exports.Idp = exports.Idm = exports.ExportImportUtils = exports.EmailTemplateRaw = exports.EmailTemplate = exports.ConnectionProfile = exports.CirclesOfTrust = exports.Authenticate = exports.Admin = void 0;
6
+ exports.state = exports.VariablesRaw = exports.Variables = exports.Utils = exports.TypesRaw = exports.Types = exports.TreeRaw = exports.ThemeRaw = exports.Theme = exports.StartupRaw = exports.Startup = exports.SecretsRaw = exports.Secrets = exports.Script = exports.Saml2 = exports.Realm = exports.Organization = exports.OAuth2OIDCApi = exports.OAuth2Client = exports.NodeRaw = exports.Node = exports.ManagedObject = exports.Log = exports.LibVersion = exports.Journey = exports.Idp = exports.Idm = exports.ExportImportUtils = exports.EmailTemplateRaw = exports.EmailTemplate = exports.ConnectionProfile = exports.CirclesOfTrust = exports.Authenticate = exports.AgentRaw = exports.Agent = exports.Admin = void 0;
7
7
  var _colors = _interopRequireDefault(require("colors"));
8
+ var _AgentRaw = _interopRequireWildcard(require("./api/AgentApi"));
9
+ exports.AgentRaw = _AgentRaw;
8
10
  var _EmailTemplateRaw = _interopRequireWildcard(require("./api/EmailTemplateApi"));
9
11
  exports.EmailTemplateRaw = _EmailTemplateRaw;
10
12
  var _NodeRaw = _interopRequireWildcard(require("./api/NodeApi"));
@@ -23,6 +25,8 @@ var _VariablesRaw = _interopRequireWildcard(require("./api/VariablesApi"));
23
25
  exports.VariablesRaw = _VariablesRaw;
24
26
  var _Admin = _interopRequireWildcard(require("./ops/AdminOps"));
25
27
  exports.Admin = _Admin;
28
+ var _Agent = _interopRequireWildcard(require("./ops/AgentOps"));
29
+ exports.Agent = _Agent;
26
30
  var _Authenticate = _interopRequireWildcard(require("./ops/AuthenticateOps"));
27
31
  exports.Authenticate = _Authenticate;
28
32
  var _CirclesOfTrust = _interopRequireWildcard(require("./ops/CirclesOfTrustOps"));
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Color","enable"],"sources":["index.ts"],"sourcesContent":["import Color from 'colors';\n\nColor.enable();\n\n// Api Layer\nexport * as EmailTemplateRaw from './api/EmailTemplateApi';\nexport * as NodeRaw from './api/NodeApi';\nexport * as SecretsRaw from './api/SecretsApi';\nexport * as StartupRaw from './api/StartupApi';\nexport * as ThemeRaw from './api/ThemeApi';\nexport * as TreeRaw from './api/TreeApi';\nexport * as TypesRaw from './api/ApiTypes';\nexport * as VariablesRaw from './api/VariablesApi';\n\n// Ops Layer\nexport * as Admin from './ops/AdminOps';\nexport * as Authenticate from './ops/AuthenticateOps';\nexport * as CirclesOfTrust from './ops/CirclesOfTrustOps';\nexport * as ConnectionProfile from './ops/ConnectionProfileOps';\nexport * as EmailTemplate from './ops/EmailTemplateOps';\nexport * as Idm from './ops/IdmOps';\nexport * as Idp from './ops/IdpOps';\nexport * as Journey from './ops/JourneyOps';\nexport * as Log from './ops/LogOps';\nexport * as ManagedObject from './ops/ManagedObjectOps';\nexport * as Node from './ops/NodeOps';\nexport * as OAuth2Client from './ops/OAuth2ClientOps';\nexport * as Organization from './ops/OrganizationOps';\nexport * as Realm from './ops/RealmOps';\nexport * as Saml2 from './ops/Saml2Ops';\nexport * as Script from './ops/ScriptOps';\nexport * as Secrets from './ops/SecretsOps';\nexport * as Startup from './ops/StartupOps';\nexport * as Theme from './ops/ThemeOps';\nexport * as Types from './ops/OpsTypes';\nexport * as Variables from './ops/VariablesOps';\n// TODO: revisit if there are better ways\nexport * as Utils from './ops/utils/OpsUtils';\nexport * as LibVersion from './ops/utils/Version';\nexport * as ExportImportUtils from './ops/utils/ExportImportUtils';\n// TODO: reconsider the aproach to pass in state from client\n// lib should be stateless, an aplication should own its state\nexport * as state from './storage/SessionStorage';\n// TODO: need to figure out if this is the right approach or if we should even\n// use a public oauth2/oidc library. might be ok for now since there is only\n// one place where the cli needs to execute an oauth flow.\nexport * as OAuth2OIDCApi from './api/OAuth2OIDCApi';\n"],"mappings":";;;;;;AAAA;AAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE3BA,eAAK,CAACC,MAAM,EAAE;;AAEd"}
1
+ {"version":3,"file":"index.js","names":["Color","enable"],"sources":["index.ts"],"sourcesContent":["import Color from 'colors';\n\nColor.enable();\n\n// Api Layer\nexport * as AgentRaw from './api/AgentApi';\nexport * as EmailTemplateRaw from './api/EmailTemplateApi';\nexport * as NodeRaw from './api/NodeApi';\nexport * as SecretsRaw from './api/SecretsApi';\nexport * as StartupRaw from './api/StartupApi';\nexport * as ThemeRaw from './api/ThemeApi';\nexport * as TreeRaw from './api/TreeApi';\nexport * as TypesRaw from './api/ApiTypes';\nexport * as VariablesRaw from './api/VariablesApi';\n\n// Ops Layer\nexport * as Admin from './ops/AdminOps';\nexport * as Agent from './ops/AgentOps';\nexport * as Authenticate from './ops/AuthenticateOps';\nexport * as CirclesOfTrust from './ops/CirclesOfTrustOps';\nexport * as ConnectionProfile from './ops/ConnectionProfileOps';\nexport * as EmailTemplate from './ops/EmailTemplateOps';\nexport * as Idm from './ops/IdmOps';\nexport * as Idp from './ops/IdpOps';\nexport * as Journey from './ops/JourneyOps';\nexport * as Log from './ops/LogOps';\nexport * as ManagedObject from './ops/ManagedObjectOps';\nexport * as Node from './ops/NodeOps';\nexport * as OAuth2Client from './ops/OAuth2ClientOps';\nexport * as Organization from './ops/OrganizationOps';\nexport * as Realm from './ops/RealmOps';\nexport * as Saml2 from './ops/Saml2Ops';\nexport * as Script from './ops/ScriptOps';\nexport * as Secrets from './ops/SecretsOps';\nexport * as Startup from './ops/StartupOps';\nexport * as Theme from './ops/ThemeOps';\nexport * as Types from './ops/OpsTypes';\nexport * as Variables from './ops/VariablesOps';\n// TODO: revisit if there are better ways\nexport * as Utils from './ops/utils/OpsUtils';\nexport * as LibVersion from './ops/utils/Version';\nexport * as ExportImportUtils from './ops/utils/ExportImportUtils';\n// TODO: reconsider the aproach to pass in state from client\n// lib should be stateless, an aplication should own its state\nexport * as state from './storage/SessionStorage';\n// TODO: need to figure out if this is the right approach or if we should even\n// use a public oauth2/oidc library. might be ok for now since there is only\n// one place where the cli needs to execute an oauth flow.\nexport * as OAuth2OIDCApi from './api/OAuth2OIDCApi';\n"],"mappings":";;;;;;AAAA;AAA2B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAE3BA,eAAK,CAACC,MAAM,EAAE;;AAEd"}