@mcp-graph-workflow/mcp-graph 5.32.0 → 5.33.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.
Files changed (117) hide show
  1. package/dist/api/router.d.ts.map +1 -1
  2. package/dist/api/router.js +2 -0
  3. package/dist/api/router.js.map +1 -1
  4. package/dist/api/routes/davinci.d.ts +3 -0
  5. package/dist/api/routes/davinci.d.ts.map +1 -0
  6. package/dist/api/routes/davinci.js +188 -0
  7. package/dist/api/routes/davinci.js.map +1 -0
  8. package/dist/core/davinci/build-runner.d.ts +37 -0
  9. package/dist/core/davinci/build-runner.d.ts.map +1 -0
  10. package/dist/core/davinci/build-runner.js +239 -0
  11. package/dist/core/davinci/build-runner.js.map +1 -0
  12. package/dist/core/davinci/davinci-parser.d.ts +6 -0
  13. package/dist/core/davinci/davinci-parser.d.ts.map +1 -0
  14. package/dist/core/davinci/davinci-parser.js +218 -0
  15. package/dist/core/davinci/davinci-parser.js.map +1 -0
  16. package/dist/core/davinci/davinci-store.d.ts +49 -0
  17. package/dist/core/davinci/davinci-store.d.ts.map +1 -0
  18. package/dist/core/davinci/davinci-store.js +121 -0
  19. package/dist/core/davinci/davinci-store.js.map +1 -0
  20. package/dist/core/davinci/davinci-types.d.ts +241 -0
  21. package/dist/core/davinci/davinci-types.d.ts.map +1 -0
  22. package/dist/core/davinci/davinci-types.js +123 -0
  23. package/dist/core/davinci/davinci-types.js.map +1 -0
  24. package/dist/core/davinci/davinci-validators.d.ts +16 -0
  25. package/dist/core/davinci/davinci-validators.d.ts.map +1 -0
  26. package/dist/core/davinci/davinci-validators.js +86 -0
  27. package/dist/core/davinci/davinci-validators.js.map +1 -0
  28. package/dist/core/davinci/descriptor-generator.d.ts +19 -0
  29. package/dist/core/davinci/descriptor-generator.d.ts.map +1 -0
  30. package/dist/core/davinci/descriptor-generator.js +52 -0
  31. package/dist/core/davinci/descriptor-generator.js.map +1 -0
  32. package/dist/core/davinci/plugin-generator.d.ts +29 -0
  33. package/dist/core/davinci/plugin-generator.d.ts.map +1 -0
  34. package/dist/core/davinci/plugin-generator.js +86 -0
  35. package/dist/core/davinci/plugin-generator.js.map +1 -0
  36. package/dist/core/davinci/plugin-type-detector.d.ts +15 -0
  37. package/dist/core/davinci/plugin-type-detector.d.ts.map +1 -0
  38. package/dist/core/davinci/plugin-type-detector.js +114 -0
  39. package/dist/core/davinci/plugin-type-detector.js.map +1 -0
  40. package/dist/core/davinci/pom-generator.d.ts +4 -0
  41. package/dist/core/davinci/pom-generator.d.ts.map +1 -0
  42. package/dist/core/davinci/pom-generator.js +179 -0
  43. package/dist/core/davinci/pom-generator.js.map +1 -0
  44. package/dist/core/davinci/template-registry.d.ts +25 -0
  45. package/dist/core/davinci/template-registry.d.ts.map +1 -0
  46. package/dist/core/davinci/template-registry.js +280 -0
  47. package/dist/core/davinci/template-registry.js.map +1 -0
  48. package/dist/core/davinci/variable-resolver.d.ts +9 -0
  49. package/dist/core/davinci/variable-resolver.d.ts.map +1 -0
  50. package/dist/core/davinci/variable-resolver.js +62 -0
  51. package/dist/core/davinci/variable-resolver.js.map +1 -0
  52. package/dist/core/parser/read-swagger.d.ts.map +1 -1
  53. package/dist/core/parser/read-swagger.js +6 -0
  54. package/dist/core/parser/read-swagger.js.map +1 -1
  55. package/dist/core/siebel/sif-parser.d.ts.map +1 -1
  56. package/dist/core/siebel/sif-parser.js +6 -0
  57. package/dist/core/siebel/sif-parser.js.map +1 -1
  58. package/dist/core/siebel/wsdl-parser.d.ts.map +1 -1
  59. package/dist/core/siebel/wsdl-parser.js +6 -0
  60. package/dist/core/siebel/wsdl-parser.js.map +1 -1
  61. package/dist/core/translation/generators/universal-generator.d.ts.map +1 -1
  62. package/dist/core/translation/generators/universal-generator.js +187 -9
  63. package/dist/core/translation/generators/universal-generator.js.map +1 -1
  64. package/dist/core/translation/language-detect.d.ts.map +1 -1
  65. package/dist/core/translation/language-detect.js +37 -14
  66. package/dist/core/translation/language-detect.js.map +1 -1
  67. package/dist/docs-manifest.json +57 -1
  68. package/dist/mcp/app-factory.js +1 -1
  69. package/dist/mcp/app-factory.js.map +1 -1
  70. package/dist/mcp/tools/davinci-analyze.d.ts +4 -0
  71. package/dist/mcp/tools/davinci-analyze.d.ts.map +1 -0
  72. package/dist/mcp/tools/davinci-analyze.js +31 -0
  73. package/dist/mcp/tools/davinci-analyze.js.map +1 -0
  74. package/dist/mcp/tools/davinci-build.d.ts +4 -0
  75. package/dist/mcp/tools/davinci-build.d.ts.map +1 -0
  76. package/dist/mcp/tools/davinci-build.js +43 -0
  77. package/dist/mcp/tools/davinci-build.js.map +1 -0
  78. package/dist/mcp/tools/davinci-convert.d.ts +4 -0
  79. package/dist/mcp/tools/davinci-convert.d.ts.map +1 -0
  80. package/dist/mcp/tools/davinci-convert.js +61 -0
  81. package/dist/mcp/tools/davinci-convert.js.map +1 -0
  82. package/dist/mcp/tools/index.d.ts.map +1 -1
  83. package/dist/mcp/tools/index.js +8 -0
  84. package/dist/mcp/tools/index.js.map +1 -1
  85. package/dist/web/dashboard/dist/assets/{benchmark-tab-en-UkR66.js → benchmark-tab-BezNQCQh.js} +1 -1
  86. package/dist/web/dashboard/dist/assets/{circle-alert-5GIBBP3L.js → circle-alert-DKsqBTgC.js} +1 -1
  87. package/dist/web/dashboard/dist/assets/{context-tab-DjfwQik8.js → context-tab-Cmar9i-X.js} +1 -1
  88. package/dist/web/dashboard/dist/assets/davinci-tab-CkWYkDsy.js +10 -0
  89. package/dist/web/dashboard/dist/assets/{docs-tab-gEBzBEEV.js → docs-tab-CYpDJ3Rl.js} +1 -1
  90. package/dist/web/dashboard/dist/assets/file-code-B0t0xVTk.js +11 -0
  91. package/dist/web/dashboard/dist/assets/{gitnexus-tab-BE2pi0xe.js → gitnexus-tab-COEhhMeC.js} +1 -1
  92. package/dist/web/dashboard/dist/assets/{graph-section-Cwx-Bmeh.js → graph-section-CheOuwv_.js} +1 -1
  93. package/dist/web/dashboard/dist/assets/{graph-tab-BcS75lY0.js → graph-tab-B52UV5KP.js} +1 -1
  94. package/dist/web/dashboard/dist/assets/{graph-utils-OY_fOvB3.js → graph-utils-D5HpaYbf.js} +1 -1
  95. package/dist/web/dashboard/dist/assets/{index-1aGs8JPI.js → index--SYA0Gq0.js} +1 -1
  96. package/dist/web/dashboard/dist/assets/index-BcMjWikL.css +1 -0
  97. package/dist/web/dashboard/dist/assets/{index-4X4gmCkA.js → index-DFMBuNWV.js} +1 -1
  98. package/dist/web/dashboard/dist/assets/{index-C3Kad9YO.js → index-DdenFaJ5.js} +24 -19
  99. package/dist/web/dashboard/dist/assets/{insights-tab-CP2uIpid.js → insights-tab-sPgv-iwt.js} +1 -1
  100. package/dist/web/dashboard/dist/assets/{journey-tab-ChwNK_8S.js → journey-tab-CS416bwg.js} +1 -1
  101. package/dist/web/dashboard/dist/assets/{languages-tab-DnBvSh4N.js → languages-tab-CcB_s-Ic.js} +24 -39
  102. package/dist/web/dashboard/dist/assets/{loader-circle-Bxe_TLXv.js → loader-circle-BSNUICqd.js} +1 -1
  103. package/dist/web/dashboard/dist/assets/{logs-tab-BH86QvKe.js → logs-tab-BbDXtvmz.js} +1 -1
  104. package/dist/web/dashboard/dist/assets/{lsp-tab-DUpaQXtx.js → lsp-tab-BrytF6mP.js} +3 -3
  105. package/dist/web/dashboard/dist/assets/{memories-tab-CkwtNv3t.js → memories-tab-qCFdXJIV.js} +1 -1
  106. package/dist/web/dashboard/dist/assets/{prd-backlog-tab-CPJanaVF.js → prd-backlog-tab-BiNvyICT.js} +1 -1
  107. package/dist/web/dashboard/dist/assets/{refresh-cw-DL1dUrhF.js → refresh-cw-CqVWFFCW.js} +1 -1
  108. package/dist/web/dashboard/dist/assets/{siebel-tab-D7x34UXy.js → siebel-tab-DFNHIBbS.js} +3 -3
  109. package/dist/web/dashboard/dist/assets/{sif-parse.worker-DZrybOHz.js → sif-parse.worker-Cty_N-lP.js} +3 -3
  110. package/dist/web/dashboard/dist/assets/{skills-tab-BuqCMS29.js → skills-tab-DlInZCyj.js} +1 -1
  111. package/dist/web/dashboard/dist/assets/{style-iy_ryTT6.js → style-B4jQtUGE.js} +1 -1
  112. package/dist/web/dashboard/dist/assets/triangle-alert-CqXtIU3H.js +16 -0
  113. package/dist/web/dashboard/dist/assets/upload-Cb3pIYT5.js +16 -0
  114. package/dist/web/dashboard/dist/index.html +2 -2
  115. package/package.json +1 -1
  116. package/dist/web/dashboard/dist/assets/index-BVhCKhGJ.css +0 -1
  117. package/dist/web/dashboard/dist/assets/triangle-alert-CPzksLkC.js +0 -26
@@ -0,0 +1,179 @@
1
+ export function generatePom(config, targetSdk) {
2
+ if (targetSdk === "pingaccess") {
3
+ return generatePingAccessPom(config);
4
+ }
5
+ return generatePingFederatePom(config);
6
+ }
7
+ // ── PingFederate POM ──────────────────────────────────────────────────
8
+ function generatePingFederatePom(config) {
9
+ const sdkPath = config.sdkPath ?? "${project.basedir}/sdk/lib";
10
+ return `<?xml version="1.0" encoding="UTF-8"?>
11
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
12
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
14
+ <modelVersion>4.0.0</modelVersion>
15
+
16
+ <groupId>${config.packageName}</groupId>
17
+ <artifactId>${config.pluginName}</artifactId>
18
+ <version>1.0.0</version>
19
+ <packaging>jar</packaging>
20
+ <name>PingFederate Plugin :: ${config.className}</name>
21
+
22
+ <properties>
23
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24
+ </properties>
25
+
26
+ <dependencies>
27
+ <dependency>
28
+ <groupId>com.pingidentity</groupId>
29
+ <artifactId>pf-sdk</artifactId>
30
+ <version>1.0.0</version>
31
+ <scope>system</scope>
32
+ <systemPath>${sdkPath}/servlet-api.jar</systemPath>
33
+ </dependency>
34
+ <dependency>
35
+ <groupId>com.pingidentity</groupId>
36
+ <artifactId>pf-tasks</artifactId>
37
+ <version>1.0.0</version>
38
+ <scope>system</scope>
39
+ <systemPath>${sdkPath}/tasks.jar</systemPath>
40
+ </dependency>
41
+ </dependencies>
42
+
43
+
44
+ <build>
45
+ <plugins>
46
+ <plugin>
47
+ <groupId>org.apache.maven.plugins</groupId>
48
+ <artifactId>maven-compiler-plugin</artifactId>
49
+ <version>3.11.0</version>
50
+ <configuration>
51
+ <source>${config.javaVersion}</source>
52
+ <target>${config.javaVersion}</target>
53
+ </configuration>
54
+ </plugin>
55
+ <plugin>
56
+ <groupId>org.apache.maven.plugins</groupId>
57
+ <artifactId>maven-jar-plugin</artifactId>
58
+ <version>3.3.0</version>
59
+ <configuration>
60
+ <archive>
61
+ <addMavenDescriptor>false</addMavenDescriptor>
62
+ </archive>
63
+ </configuration>
64
+ </plugin>
65
+ </plugins>
66
+ <resources>
67
+ <resource>
68
+ <directory>src/main/resources</directory>
69
+ <includes>
70
+ <include>PF-INF/**</include>
71
+ </includes>
72
+ </resource>
73
+ </resources>
74
+ </build>
75
+ </project>
76
+ `;
77
+ }
78
+ // ── PingAccess POM ────────────────────────────────────────────────────
79
+ function generatePingAccessPom(config) {
80
+ const javaVersion = config.javaVersion === "11" ? "17" : config.javaVersion;
81
+ return `<?xml version="1.0" encoding="UTF-8"?>
82
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
83
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
84
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
85
+ <modelVersion>4.0.0</modelVersion>
86
+
87
+ <groupId>com.pingidentity.pingaccess</groupId>
88
+ <artifactId>${config.pluginName}</artifactId>
89
+ <version>1.0.0</version>
90
+ <packaging>jar</packaging>
91
+ <name>PingAccess Plugin :: ${config.className}</name>
92
+
93
+ <properties>
94
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
95
+ <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
96
+ <javac.source>${javaVersion}</javac.source>
97
+ <javac.target>${javaVersion}</javac.target>
98
+ <jar.to.copy>target/\${project.build.finalName}.\${project.packaging}</jar.to.copy>
99
+ <jar.destination>../../../deploy</jar.destination>
100
+ </properties>
101
+
102
+ <repositories>
103
+ <repository>
104
+ <releases>
105
+ <enabled>true</enabled>
106
+ <updatePolicy>always</updatePolicy>
107
+ <checksumPolicy>warn</checksumPolicy>
108
+ </releases>
109
+ <id>PingIdentityMaven</id>
110
+ <name>PingIdentity Release</name>
111
+ <url>https://maven.pingidentity.com/release/</url>
112
+ <layout>default</layout>
113
+ </repository>
114
+ </repositories>
115
+
116
+ <dependencies>
117
+ <dependency>
118
+ <groupId>com.pingidentity.pingaccess</groupId>
119
+ <artifactId>pingaccess-sdk</artifactId>
120
+ <version>9.0.1.0</version>
121
+ </dependency>
122
+ <dependency>
123
+ <groupId>jakarta.validation</groupId>
124
+ <artifactId>jakarta.validation-api</artifactId>
125
+ <version>3.1.1</version>
126
+ </dependency>
127
+ <dependency>
128
+ <groupId>jakarta.inject</groupId>
129
+ <artifactId>jakarta.inject-api</artifactId>
130
+ <version>2.0.1</version>
131
+ </dependency>
132
+ </dependencies>
133
+
134
+ <build>
135
+ <plugins>
136
+ <plugin>
137
+ <groupId>org.apache.maven.plugins</groupId>
138
+ <artifactId>maven-compiler-plugin</artifactId>
139
+ <version>2.5.1</version>
140
+ <configuration>
141
+ <source>${javaVersion}</source>
142
+ <target>${javaVersion}</target>
143
+ </configuration>
144
+ </plugin>
145
+ <plugin>
146
+ <groupId>org.apache.maven.plugins</groupId>
147
+ <artifactId>maven-antrun-plugin</artifactId>
148
+ <version>1.7</version>
149
+ <executions>
150
+ <execution>
151
+ <phase>install</phase>
152
+ <goals>
153
+ <goal>run</goal>
154
+ </goals>
155
+ <configuration>
156
+ <target>
157
+ <copy todir="\${jar.destination}">
158
+ <fileset file="\${jar.to.copy}" />
159
+ </copy>
160
+ </target>
161
+ </configuration>
162
+ </execution>
163
+ </executions>
164
+ </plugin>
165
+ <plugin>
166
+ <artifactId>maven-surefire-plugin</artifactId>
167
+ <version>2.18</version>
168
+ <configuration>
169
+ <argLine>
170
+ --add-opens java.base/java.lang=ALL-UNNAMED
171
+ </argLine>
172
+ </configuration>
173
+ </plugin>
174
+ </plugins>
175
+ </build>
176
+ </project>
177
+ `;
178
+ }
179
+ //# sourceMappingURL=pom-generator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pom-generator.js","sourceRoot":"","sources":["../../../src/core/davinci/pom-generator.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,WAAW,CACzB,MAA8B,EAC9B,SAAoB;IAEpB,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;QAC/B,OAAO,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,uBAAuB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC;AAED,yEAAyE;AAEzE,SAAS,uBAAuB,CAAC,MAA8B;IAC7D,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,4BAA4B,CAAC;IAE/D,OAAO;;;;;;eAMM,MAAM,CAAC,WAAW;kBACf,MAAM,CAAC,UAAU;;;mCAGA,MAAM,CAAC,SAAS;;;;;;;;;;;;0BAYzB,OAAO;;;;;;;0BAOP,OAAO;;;;;;;;;;;;8BAYH,MAAM,CAAC,WAAW;8BAClB,MAAM,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;CAwB/C,CAAC;AACF,CAAC;AAED,yEAAyE;AAEzE,SAAS,qBAAqB,CAAC,MAA8B;IAC3D,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;IAE5E,OAAO;;;;;;;kBAOS,MAAM,CAAC,UAAU;;;iCAGF,MAAM,CAAC,SAAS;;;;;wBAKzB,WAAW;wBACX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BA4CL,WAAW;8BACX,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCxC,CAAC;AACF,CAAC"}
@@ -0,0 +1,25 @@
1
+ export interface PluginTemplate {
2
+ pluginType: string;
3
+ sdk: "pingfederate" | "pingaccess";
4
+ interfaceName: string;
5
+ descriptorClass: string;
6
+ imports: string[];
7
+ constructorPattern: string;
8
+ configurePattern: string;
9
+ mainMethodSignature: string;
10
+ mainMethodBody: string;
11
+ pfInfType: string;
12
+ }
13
+ export interface TemplateContext {
14
+ className: string;
15
+ packageName: string;
16
+ pluginName: string;
17
+ guiFields: string;
18
+ configureBody: string;
19
+ mainMethodBody: string;
20
+ attributeContract: string[];
21
+ }
22
+ export declare function getTemplate(pluginType: string, sdk: "pingfederate" | "pingaccess"): PluginTemplate | undefined;
23
+ export declare function listTemplates(sdk: "pingfederate" | "pingaccess"): PluginTemplate[];
24
+ export declare function renderTemplate(template: PluginTemplate, context: TemplateContext): string;
25
+ //# sourceMappingURL=template-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-registry.d.ts","sourceRoot":"","sources":["../../../src/core/davinci/template-registry.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,cAAc,GAAG,YAAY,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B;AAiMD,wBAAgB,WAAW,CACzB,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,cAAc,GAAG,YAAY,GACjC,cAAc,GAAG,SAAS,CAK5B;AAED,wBAAgB,aAAa,CAC3B,GAAG,EAAE,cAAc,GAAG,YAAY,GACjC,cAAc,EAAE,CAKlB;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,cAAc,EACxB,OAAO,EAAE,eAAe,GACvB,MAAM,CAKR"}
@@ -0,0 +1,280 @@
1
+ // ── Template Types ────────────────────────────────────────────────────
2
+ // ── Template Registry ─────────────────────────────────────────────────
3
+ const PF_TEMPLATES = {
4
+ "idp-adapter": {
5
+ pluginType: "idp-adapter",
6
+ sdk: "pingfederate",
7
+ interfaceName: "IdpAuthenticationAdapterV2",
8
+ descriptorClass: "IdpAuthnAdapterDescriptor",
9
+ imports: [
10
+ "com.pingidentity.sdk.IdpAuthenticationAdapterV2",
11
+ "com.pingidentity.sdk.AuthnAdapterResponse",
12
+ "com.pingidentity.sdk.AuthnAdapterResponse.AUTHN_STATUS",
13
+ "org.sourceid.saml20.adapter.conf.Configuration",
14
+ "org.sourceid.saml20.adapter.gui.AdapterConfigurationGuiDescriptor",
15
+ "org.sourceid.saml20.adapter.gui.TextFieldDescriptor",
16
+ "org.sourceid.saml20.adapter.idp.authn.IdpAuthnAdapterDescriptor",
17
+ "javax.servlet.http.HttpServletRequest",
18
+ "javax.servlet.http.HttpServletResponse",
19
+ "java.util.Map",
20
+ "java.util.Set",
21
+ "java.util.HashSet",
22
+ ],
23
+ constructorPattern: "IdpAuthnAdapterDescriptor",
24
+ configurePattern: "configuration.getFieldValue",
25
+ mainMethodSignature: "public AuthnAdapterResponse lookupAuthN(HttpServletRequest req, HttpServletResponse resp, Map<String, Object> inMap)",
26
+ mainMethodBody: "// DaVinci logic translated here",
27
+ pfInfType: "idp-authn-adapters",
28
+ },
29
+ "token-generator": {
30
+ pluginType: "token-generator",
31
+ sdk: "pingfederate",
32
+ interfaceName: "TokenGenerator",
33
+ descriptorClass: "TokenPluginDescriptor",
34
+ imports: [
35
+ "org.sourceid.wstrust.plugin.generate.TokenGenerator",
36
+ "org.sourceid.wstrust.plugin.generate.TokenContext",
37
+ "org.sourceid.wstrust.model.BinarySecurityToken",
38
+ "org.sourceid.wstrust.plugin.TokenProcessingException",
39
+ "com.pingidentity.sdk.PluginDescriptor",
40
+ "com.pingidentity.sdk.GuiConfigDescriptor",
41
+ "org.sourceid.saml20.adapter.gui.TextFieldDescriptor",
42
+ "org.sourceid.saml20.adapter.conf.Configuration",
43
+ "java.util.Collections",
44
+ "java.util.Set",
45
+ ],
46
+ constructorPattern: "TokenPluginDescriptor",
47
+ configurePattern: "configuration.getFieldValue",
48
+ mainMethodSignature: "public BinarySecurityToken generateToken(TokenContext attributeContext) throws TokenProcessingException",
49
+ mainMethodBody: "// DaVinci logic translated here",
50
+ pfInfType: "token-generators",
51
+ },
52
+ "token-processor": {
53
+ pluginType: "token-processor",
54
+ sdk: "pingfederate",
55
+ interfaceName: "TokenProcessor<BinarySecurityToken>",
56
+ descriptorClass: "TokenProcessorDescriptor",
57
+ imports: [
58
+ "org.sourceid.wstrust.plugin.process.TokenProcessor",
59
+ "org.sourceid.wstrust.plugin.process.TokenContext",
60
+ "org.sourceid.wstrust.plugin.process.InvalidTokenException",
61
+ "org.sourceid.wstrust.plugin.process.TokenProcessorDescriptor",
62
+ "org.sourceid.wstrust.model.BinarySecurityToken",
63
+ "org.sourceid.wstrust.plugin.TokenProcessingException",
64
+ "com.pingidentity.sdk.GuiConfigDescriptor",
65
+ "org.sourceid.saml20.adapter.gui.TextFieldDescriptor",
66
+ "org.sourceid.saml20.adapter.conf.Configuration",
67
+ "java.util.Collections",
68
+ "java.util.Set",
69
+ ],
70
+ constructorPattern: "TokenProcessorDescriptor",
71
+ configurePattern: "configuration.getFieldValue",
72
+ mainMethodSignature: "public TokenContext processToken(BinarySecurityToken token) throws InvalidTokenException, TokenProcessingException",
73
+ mainMethodBody: "// DaVinci logic translated here",
74
+ pfInfType: "token-processors",
75
+ },
76
+ "notification-publisher": {
77
+ pluginType: "notification-publisher",
78
+ sdk: "pingfederate",
79
+ interfaceName: "NotificationPublisherPlugin",
80
+ descriptorClass: "NotificationSenderPluginDescriptor",
81
+ imports: [
82
+ "com.pingidentity.sdk.notification.NotificationPublisherPlugin",
83
+ "com.pingidentity.sdk.notification.NotificationSenderPluginDescriptor",
84
+ "com.pingidentity.sdk.notification.PublishResult",
85
+ "com.pingidentity.sdk.GuiConfigDescriptor",
86
+ "org.sourceid.saml20.adapter.gui.TextFieldDescriptor",
87
+ "org.sourceid.saml20.adapter.conf.Configuration",
88
+ "java.util.Map",
89
+ ],
90
+ constructorPattern: "NotificationSenderPluginDescriptor",
91
+ configurePattern: "configuration.getFieldValue",
92
+ mainMethodSignature: "public PublishResult publishNotification(String eventType, Map<String, String> data, Map<String, String> configMap)",
93
+ mainMethodBody: "// DaVinci logic translated here",
94
+ pfInfType: "notification-publishers",
95
+ },
96
+ "secret-manager": {
97
+ pluginType: "secret-manager",
98
+ sdk: "pingfederate",
99
+ interfaceName: "SecretManager",
100
+ descriptorClass: "SecretManagerDescriptor",
101
+ imports: [
102
+ "com.pingidentity.sdk.secretmanager.SecretManager",
103
+ "com.pingidentity.sdk.secretmanager.SecretManagerDescriptor",
104
+ "com.pingidentity.sdk.secretmanager.SecretInfo",
105
+ "com.pingidentity.sdk.secretmanager.SecretManagerException",
106
+ "com.pingidentity.sdk.GuiConfigDescriptor",
107
+ "org.sourceid.saml20.adapter.conf.Configuration",
108
+ "java.util.Map",
109
+ ],
110
+ constructorPattern: "SecretManagerDescriptor",
111
+ configurePattern: "configuration.getFieldValue",
112
+ mainMethodSignature: "public SecretInfo getSecretInfo(String secretId, Map<String, Object> inParameters) throws SecretManagerException",
113
+ mainMethodBody: "// DaVinci logic translated here",
114
+ pfInfType: "secret-managers",
115
+ },
116
+ "password-credential-validator": {
117
+ pluginType: "password-credential-validator",
118
+ sdk: "pingfederate",
119
+ interfaceName: "PasswordCredentialValidator",
120
+ descriptorClass: "PluginDescriptor",
121
+ imports: [
122
+ "com.pingidentity.sdk.password.PasswordCredentialValidator",
123
+ "com.pingidentity.sdk.password.PasswordValidationException",
124
+ "com.pingidentity.sdk.GuiConfigDescriptor",
125
+ "com.pingidentity.sdk.PluginDescriptor",
126
+ "org.sourceid.saml20.adapter.gui.TextFieldDescriptor",
127
+ "org.sourceid.saml20.adapter.conf.Configuration",
128
+ "org.sourceid.util.log.AttributeMap",
129
+ ],
130
+ constructorPattern: "PluginDescriptor",
131
+ configurePattern: "configuration.getFieldValue",
132
+ mainMethodSignature: "public AttributeMap processPasswordCredential(String username, String password) throws PasswordValidationException",
133
+ mainMethodBody: "// DaVinci logic translated here",
134
+ pfInfType: "password-credential-validators",
135
+ },
136
+ };
137
+ const PA_TEMPLATES = {
138
+ "rule": {
139
+ pluginType: "rule",
140
+ sdk: "pingaccess",
141
+ interfaceName: "RuleInterceptorBase",
142
+ descriptorClass: "@Rule",
143
+ imports: [
144
+ "com.pingidentity.pa.sdk.policy.RuleInterceptorBase",
145
+ "com.pingidentity.pa.sdk.policy.Rule",
146
+ "com.pingidentity.pa.sdk.interceptor.Outcome",
147
+ "com.pingidentity.pa.sdk.http.Exchange",
148
+ ],
149
+ constructorPattern: "@Rule(type, label, expectedConfiguration)",
150
+ configurePattern: "@UIElement",
151
+ mainMethodSignature: "public Outcome handleRequest(Exchange exchange)",
152
+ mainMethodBody: "// DaVinci logic translated here",
153
+ pfInfType: "com.pingidentity.pa.sdk.policy.RuleInterceptor",
154
+ },
155
+ "identity-mapping": {
156
+ pluginType: "identity-mapping",
157
+ sdk: "pingaccess",
158
+ interfaceName: "IdentityMappingPluginBase",
159
+ descriptorClass: "@IdentityMapping",
160
+ imports: [
161
+ "com.pingidentity.pa.sdk.identitymapping.IdentityMappingPluginBase",
162
+ "com.pingidentity.pa.sdk.identitymapping.IdentityMapping",
163
+ "com.pingidentity.pa.sdk.identity.Identity",
164
+ "com.pingidentity.pa.sdk.http.Exchange",
165
+ ],
166
+ constructorPattern: "@IdentityMapping(label, type, expectedConfiguration)",
167
+ configurePattern: "@UIElement",
168
+ mainMethodSignature: "public Identity mapIdentity(Exchange exchange, Identity identity)",
169
+ mainMethodBody: "// DaVinci logic translated here",
170
+ pfInfType: "com.pingidentity.pa.sdk.identitymapping.IdentityMappingPlugin",
171
+ },
172
+ "load-balancing": {
173
+ pluginType: "load-balancing",
174
+ sdk: "pingaccess",
175
+ interfaceName: "LoadBalancingPluginBase",
176
+ descriptorClass: "@LoadBalancingStrategy",
177
+ imports: [
178
+ "com.pingidentity.pa.sdk.ha.lb.LoadBalancingPluginBase",
179
+ "com.pingidentity.pa.sdk.ha.lb.LoadBalancingStrategy",
180
+ ],
181
+ constructorPattern: "@LoadBalancingStrategy(label, type, expectedConfiguration)",
182
+ configurePattern: "@UIElement",
183
+ mainMethodSignature: "// Handler pattern — see LoadBalancingPluginBase docs",
184
+ mainMethodBody: "// DaVinci logic translated here",
185
+ pfInfType: "com.pingidentity.pa.sdk.ha.lb.LoadBalancingPlugin",
186
+ },
187
+ };
188
+ // ── Public API ────────────────────────────────────────────────────────
189
+ export function getTemplate(pluginType, sdk) {
190
+ if (sdk === "pingaccess") {
191
+ return PA_TEMPLATES[pluginType];
192
+ }
193
+ return PF_TEMPLATES[pluginType];
194
+ }
195
+ export function listTemplates(sdk) {
196
+ if (sdk === "pingaccess") {
197
+ return Object.values(PA_TEMPLATES);
198
+ }
199
+ return Object.values(PF_TEMPLATES);
200
+ }
201
+ export function renderTemplate(template, context) {
202
+ if (template.sdk === "pingaccess") {
203
+ return renderPingAccessTemplate(template, context);
204
+ }
205
+ return renderPingFederateTemplate(template, context);
206
+ }
207
+ // ── PingFederate Renderer ─────────────────────────────────────────────
208
+ function renderPingFederateTemplate(template, ctx) {
209
+ const importsBlock = template.imports
210
+ .map((i) => `import ${i};`)
211
+ .join("\n");
212
+ const contractEntries = ctx.attributeContract
213
+ .map((a) => ` contract.add("${a}");`)
214
+ .join("\n");
215
+ return `package ${ctx.packageName};
216
+
217
+ ${importsBlock}
218
+
219
+ public class ${ctx.className} implements ${template.interfaceName} {
220
+
221
+ private static final String NAME = "${ctx.pluginName}";
222
+ private ${template.descriptorClass} descriptor;
223
+
224
+ // Configuration fields
225
+ ${ctx.guiFields || " // No GUI fields"}
226
+
227
+ public ${ctx.className}() {
228
+ AdapterConfigurationGuiDescriptor guiDescriptor = new AdapterConfigurationGuiDescriptor(NAME);
229
+ ${ctx.guiFields || " // No GUI fields to add"}
230
+
231
+ Set<String> contract = new HashSet<>();
232
+ ${contractEntries || " // No attributes in contract"}
233
+
234
+ descriptor = new ${template.descriptorClass}(this, NAME, contract, false, guiDescriptor, false);
235
+ }
236
+
237
+ @Override
238
+ public void configure(Configuration configuration) {
239
+ ${ctx.configureBody || " // No configuration"}
240
+ }
241
+
242
+ @Override
243
+ public ${template.descriptorClass} getPluginDescriptor() {
244
+ return descriptor;
245
+ }
246
+
247
+ @Override
248
+ ${template.mainMethodSignature} {
249
+ ${ctx.mainMethodBody || " " + template.mainMethodBody}
250
+ }
251
+ }
252
+ `;
253
+ }
254
+ // ── PingAccess Renderer ───────────────────────────────────────────────
255
+ function renderPingAccessTemplate(template, ctx) {
256
+ const importsBlock = template.imports
257
+ .map((i) => `import ${i};`)
258
+ .join("\n");
259
+ return `package ${ctx.packageName};
260
+
261
+ ${importsBlock}
262
+
263
+ ${template.descriptorClass}(
264
+ label = "${ctx.pluginName}",
265
+ type = "${ctx.className}"
266
+ )
267
+ public class ${ctx.className} extends ${template.interfaceName}<${ctx.className}Configuration> {
268
+
269
+ @Override
270
+ ${template.mainMethodSignature} {
271
+ ${ctx.mainMethodBody || " " + template.mainMethodBody}
272
+ }
273
+
274
+ public static class ${ctx.className}Configuration {
275
+ ${ctx.guiFields || " // No configuration fields"}
276
+ }
277
+ }
278
+ `;
279
+ }
280
+ //# sourceMappingURL=template-registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"template-registry.js","sourceRoot":"","sources":["../../../src/core/davinci/template-registry.ts"],"names":[],"mappings":"AAAA,yEAAyE;AAyBzE,yEAAyE;AAEzE,MAAM,YAAY,GAAmC;IACnD,aAAa,EAAE;QACb,UAAU,EAAE,aAAa;QACzB,GAAG,EAAE,cAAc;QACnB,aAAa,EAAE,4BAA4B;QAC3C,eAAe,EAAE,2BAA2B;QAC5C,OAAO,EAAE;YACP,iDAAiD;YACjD,2CAA2C;YAC3C,wDAAwD;YACxD,gDAAgD;YAChD,mEAAmE;YACnE,qDAAqD;YACrD,iEAAiE;YACjE,uCAAuC;YACvC,wCAAwC;YACxC,eAAe;YACf,eAAe;YACf,mBAAmB;SACpB;QACD,kBAAkB,EAAE,2BAA2B;QAC/C,gBAAgB,EAAE,6BAA6B;QAC/C,mBAAmB,EAAE,sHAAsH;QAC3I,cAAc,EAAE,kCAAkC;QAClD,SAAS,EAAE,oBAAoB;KAChC;IACD,iBAAiB,EAAE;QACjB,UAAU,EAAE,iBAAiB;QAC7B,GAAG,EAAE,cAAc;QACnB,aAAa,EAAE,gBAAgB;QAC/B,eAAe,EAAE,uBAAuB;QACxC,OAAO,EAAE;YACP,qDAAqD;YACrD,mDAAmD;YACnD,gDAAgD;YAChD,sDAAsD;YACtD,uCAAuC;YACvC,0CAA0C;YAC1C,qDAAqD;YACrD,gDAAgD;YAChD,uBAAuB;YACvB,eAAe;SAChB;QACD,kBAAkB,EAAE,uBAAuB;QAC3C,gBAAgB,EAAE,6BAA6B;QAC/C,mBAAmB,EAAE,yGAAyG;QAC9H,cAAc,EAAE,kCAAkC;QAClD,SAAS,EAAE,kBAAkB;KAC9B;IACD,iBAAiB,EAAE;QACjB,UAAU,EAAE,iBAAiB;QAC7B,GAAG,EAAE,cAAc;QACnB,aAAa,EAAE,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,WAAW;;EAEjC,YAAY;;eAEC,GAAG,CAAC,SAAS,eAAe,QAAQ,CAAC,aAAa;;0CAEvB,GAAG,CAAC,UAAU;cAC1C,QAAQ,CAAC,eAAe;;;EAGpC,GAAG,CAAC,SAAS,IAAI,sBAAsB;;aAE5B,GAAG,CAAC,SAAS;;EAExB,GAAG,CAAC,SAAS,IAAI,iCAAiC;;;EAGlD,eAAe,IAAI,sCAAsC;;2BAEhC,QAAQ,CAAC,eAAe;;;;;EAKjD,GAAG,CAAC,aAAa,IAAI,6BAA6B;;;;aAIvC,QAAQ,CAAC,eAAe;;;;;MAK/B,QAAQ,CAAC,mBAAmB;EAChC,GAAG,CAAC,cAAc,IAAI,UAAU,GAAG,QAAQ,CAAC,cAAc;;;CAG3D,CAAC;AACF,CAAC;AAED,yEAAyE;AAEzE,SAAS,wBAAwB,CAC/B,QAAwB,EACxB,GAAoB;IAEpB,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO;SAClC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC;SAC1B,IAAI,CAAC,IAAI,CAAC,CAAC;IAEd,OAAO,WAAW,GAAG,CAAC,WAAW;;EAEjC,YAAY;;EAEZ,QAAQ,CAAC,eAAe;eACX,GAAG,CAAC,UAAU;cACf,GAAG,CAAC,SAAS;;eAEZ,GAAG,CAAC,SAAS,YAAY,QAAQ,CAAC,aAAa,IAAI,GAAG,CAAC,SAAS;;;MAGzE,QAAQ,CAAC,mBAAmB;EAChC,GAAG,CAAC,cAAc,IAAI,UAAU,GAAG,QAAQ,CAAC,cAAc;;;0BAGlC,GAAG,CAAC,SAAS;EACrC,GAAG,CAAC,SAAS,IAAI,oCAAoC;;;CAGtD,CAAC;AACF,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { DaVinciVariable, ResolvedVariable } from "./davinci-types.js";
2
+ export interface ResolveOptions {
3
+ jsonParseContext?: boolean;
4
+ }
5
+ export declare function resolveVariable(variable: DaVinciVariable, options?: ResolveOptions): ResolvedVariable;
6
+ export declare function resolveVariables(variables: DaVinciVariable[]): ResolvedVariable[];
7
+ export declare function generateGuiFieldCode(variable: DaVinciVariable): string;
8
+ export declare function generateConfigureCode(variable: DaVinciVariable): string;
9
+ //# sourceMappingURL=variable-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable-resolver.d.ts","sourceRoot":"","sources":["../../../src/core/davinci/variable-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAI5E,MAAM,WAAW,cAAc;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAID,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,eAAe,EACzB,OAAO,GAAE,cAAmB,GAC3B,gBAAgB,CAWlB;AAED,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,eAAe,EAAE,GAAG,gBAAgB,EAAE,CAcjF;AA4BD,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAYtE;AAID,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,GAAG,MAAM,CAOvE"}
@@ -0,0 +1,62 @@
1
+ // ── Core Resolution ───────────────────────────────────────────────────
2
+ export function resolveVariable(variable, options = {}) {
3
+ const javaExpression = buildJavaExpression(variable, options);
4
+ const guiFieldCode = generateGuiFieldCode(variable);
5
+ const configureCode = generateConfigureCode(variable);
6
+ return {
7
+ original: variable,
8
+ javaExpression,
9
+ guiFieldCode: guiFieldCode || undefined,
10
+ configureCode: configureCode || undefined,
11
+ };
12
+ }
13
+ export function resolveVariables(variables) {
14
+ const seen = new Set();
15
+ const results = [];
16
+ for (const variable of variables) {
17
+ const key = `${variable.kind}:${variable.fieldName}`;
18
+ if (seen.has(key)) {
19
+ continue;
20
+ }
21
+ seen.add(key);
22
+ results.push(resolveVariable(variable));
23
+ }
24
+ return results;
25
+ }
26
+ // ── Java Expression Builder ───────────────────────────────────────────
27
+ function buildJavaExpression(variable, options) {
28
+ if (options.jsonParseContext) {
29
+ return `new ObjectMapper().readTree(configuration.getFieldValue("${variable.fieldName}"))`;
30
+ }
31
+ switch (variable.kind) {
32
+ case "local":
33
+ return `inMap.get("${variable.fieldName}").getValue() /* from node: ${variable.nodeId ?? "unknown"} */`;
34
+ case "global":
35
+ case "flow":
36
+ case "parameter":
37
+ return `configuration.getFieldValue("${variable.fieldName}")`;
38
+ default:
39
+ return `configuration.getFieldValue("${variable.fieldName}")`;
40
+ }
41
+ }
42
+ // ── GUI Field Code Generator ──────────────────────────────────────────
43
+ export function generateGuiFieldCode(variable) {
44
+ if (variable.kind === "local") {
45
+ return "";
46
+ }
47
+ const fieldName = variable.fieldName;
48
+ const lines = [
49
+ `TextFieldDescriptor ${fieldName}Field = new TextFieldDescriptor("${fieldName}", "DaVinci variable: ${fieldName}");`,
50
+ `guiDescriptor.addField(${fieldName}Field);`,
51
+ ];
52
+ return lines.join("\n");
53
+ }
54
+ // ── Configure Code Generator ──────────────────────────────────────────
55
+ export function generateConfigureCode(variable) {
56
+ if (variable.kind === "local") {
57
+ return "";
58
+ }
59
+ const fieldName = variable.fieldName;
60
+ return `this.${fieldName} = configuration.getFieldValue("${fieldName}");`;
61
+ }
62
+ //# sourceMappingURL=variable-resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variable-resolver.js","sourceRoot":"","sources":["../../../src/core/davinci/variable-resolver.ts"],"names":[],"mappings":"AAQA,yEAAyE;AAEzE,MAAM,UAAU,eAAe,CAC7B,QAAyB,EACzB,UAA0B,EAAE;IAE5B,MAAM,cAAc,GAAG,mBAAmB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC9D,MAAM,YAAY,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACpD,MAAM,aAAa,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IAEtD,OAAO;QACL,QAAQ,EAAE,QAAQ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MAAM,CAAC;IACb,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACpC,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;CAC1C;AAQD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,CAoBvE;AAyLD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,CAiIpE"}
@@ -203,6 +203,12 @@ export function parseWsdlContent(content) {
203
203
  ignoreAttributes: false,
204
204
  attributeNamePrefix: "@_",
205
205
  parseAttributeValue: false,
206
+ processEntities: {
207
+ maxEntityCount: 100_000,
208
+ maxTotalExpansions: 100_000,
209
+ maxExpandedLength: 10_000_000,
210
+ maxEntitySize: 100_000,
211
+ },
206
212
  isArray: () => true,
207
213
  });
208
214
  let parsed;