@enfyra/mcp-server 0.1.69 → 0.1.71

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 (248) hide show
  1. package/README.md +1 -1
  2. package/dist/lib/config-local-adapters.d.ts +18 -0
  3. package/dist/lib/config-local-adapters.js +271 -0
  4. package/dist/lib/config-local-adapters.js.map +1 -0
  5. package/dist/lib/config-local-contracts.d.ts +28 -0
  6. package/dist/lib/config-local-contracts.js +200 -0
  7. package/dist/lib/config-local-contracts.js.map +1 -0
  8. package/dist/lib/config-local-prompts.d.ts +10 -0
  9. package/dist/lib/config-local-prompts.js +185 -0
  10. package/dist/lib/config-local-prompts.js.map +1 -0
  11. package/dist/lib/config-local-types.d.ts +23 -0
  12. package/dist/lib/config-local-types.js +2 -0
  13. package/dist/lib/config-local-types.js.map +1 -0
  14. package/dist/lib/config-local.js +3 -649
  15. package/dist/lib/config-local.js.map +1 -1
  16. package/dist/lib/discovery-tools.d.ts +4 -0
  17. package/dist/lib/discovery-tools.js +546 -0
  18. package/dist/lib/discovery-tools.js.map +1 -0
  19. package/dist/lib/dynamic-repository-builder.d.ts +1 -1
  20. package/dist/lib/dynamic-script-context-contract.d.ts +100 -0
  21. package/dist/lib/dynamic-script-context-contract.js +163 -0
  22. package/dist/lib/dynamic-script-context-contract.js.map +1 -0
  23. package/dist/lib/enfyra-mcp-server.d.ts +3 -0
  24. package/dist/lib/enfyra-mcp-server.js +79 -0
  25. package/dist/lib/enfyra-mcp-server.js.map +1 -0
  26. package/dist/lib/enfyra-tool-logic.d.ts +7 -0
  27. package/dist/lib/enfyra-tool-logic.js +8 -0
  28. package/dist/lib/enfyra-tool-logic.js.map +1 -0
  29. package/dist/lib/enfyra-tool-types.d.ts +27 -0
  30. package/dist/lib/enfyra-tool-types.js +2 -0
  31. package/dist/lib/enfyra-tool-types.js.map +1 -0
  32. package/dist/lib/extension-api-builders.d.ts +17 -0
  33. package/dist/lib/extension-api-builders.js +235 -0
  34. package/dist/lib/extension-api-builders.js.map +1 -0
  35. package/dist/lib/extension-component-builders.d.ts +87 -0
  36. package/dist/lib/extension-component-builders.js +623 -0
  37. package/dist/lib/extension-component-builders.js.map +1 -0
  38. package/dist/lib/extension-contract-review.d.ts +26 -0
  39. package/dist/lib/extension-contract-review.js +187 -0
  40. package/dist/lib/extension-contract-review.js.map +1 -0
  41. package/dist/lib/extension-theme-contract.d.ts +63 -0
  42. package/dist/lib/extension-theme-contract.js +417 -0
  43. package/dist/lib/extension-theme-contract.js.map +1 -0
  44. package/dist/lib/identity-tools.d.ts +4 -0
  45. package/dist/lib/identity-tools.js +46 -0
  46. package/dist/lib/identity-tools.js.map +1 -0
  47. package/dist/lib/log-tools.d.ts +4 -0
  48. package/dist/lib/log-tools.js +65 -0
  49. package/dist/lib/log-tools.js.map +1 -0
  50. package/dist/lib/mcp-example-connect.d.ts +9 -0
  51. package/dist/lib/mcp-example-connect.js +442 -0
  52. package/dist/lib/mcp-example-connect.js.map +1 -0
  53. package/dist/lib/mcp-example-extensions.d.ts +9 -0
  54. package/dist/lib/mcp-example-extensions.js +729 -0
  55. package/dist/lib/mcp-example-extensions.js.map +1 -0
  56. package/dist/lib/mcp-example-files.d.ts +9 -0
  57. package/dist/lib/mcp-example-files.js +51 -0
  58. package/dist/lib/mcp-example-files.js.map +1 -0
  59. package/dist/lib/mcp-example-flows.d.ts +9 -0
  60. package/dist/lib/mcp-example-flows.js +76 -0
  61. package/dist/lib/mcp-example-flows.js.map +1 -0
  62. package/dist/lib/mcp-example-graphql.d.ts +9 -0
  63. package/dist/lib/mcp-example-graphql.js +57 -0
  64. package/dist/lib/mcp-example-graphql.js.map +1 -0
  65. package/dist/lib/mcp-example-handlers-hooks.d.ts +9 -0
  66. package/dist/lib/mcp-example-handlers-hooks.js +328 -0
  67. package/dist/lib/mcp-example-handlers-hooks.js.map +1 -0
  68. package/dist/lib/mcp-example-oauth-setup.d.ts +9 -0
  69. package/dist/lib/mcp-example-oauth-setup.js +41 -0
  70. package/dist/lib/mcp-example-oauth-setup.js.map +1 -0
  71. package/dist/lib/mcp-example-permissions-rls.d.ts +9 -0
  72. package/dist/lib/mcp-example-permissions-rls.js +210 -0
  73. package/dist/lib/mcp-example-permissions-rls.js.map +1 -0
  74. package/dist/lib/mcp-example-queries-deep.d.ts +9 -0
  75. package/dist/lib/mcp-example-queries-deep.js +220 -0
  76. package/dist/lib/mcp-example-queries-deep.js.map +1 -0
  77. package/dist/lib/mcp-example-schema-relations.d.ts +9 -0
  78. package/dist/lib/mcp-example-schema-relations.js +148 -0
  79. package/dist/lib/mcp-example-schema-relations.js.map +1 -0
  80. package/dist/lib/mcp-example-websocket.d.ts +9 -0
  81. package/dist/lib/mcp-example-websocket.js +103 -0
  82. package/dist/lib/mcp-example-websocket.js.map +1 -0
  83. package/dist/lib/mcp-examples.d.ts +5 -5
  84. package/dist/lib/mcp-examples.js +22 -2394
  85. package/dist/lib/mcp-examples.js.map +1 -1
  86. package/dist/lib/method-tools.d.ts +4 -0
  87. package/dist/lib/method-tools.js +217 -0
  88. package/dist/lib/method-tools.js.map +1 -0
  89. package/dist/lib/package-tools.d.ts +4 -0
  90. package/dist/lib/package-tools.js +98 -0
  91. package/dist/lib/package-tools.js.map +1 -0
  92. package/dist/lib/platform-data-operations.d.ts +24 -0
  93. package/dist/lib/platform-data-operations.js +71 -0
  94. package/dist/lib/platform-data-operations.js.map +1 -0
  95. package/dist/lib/platform-endpoint-workflow.d.ts +42 -0
  96. package/dist/lib/platform-endpoint-workflow.js +382 -0
  97. package/dist/lib/platform-endpoint-workflow.js.map +1 -0
  98. package/dist/lib/platform-extension-source.d.ts +487 -0
  99. package/dist/lib/platform-extension-source.js +524 -0
  100. package/dist/lib/platform-extension-source.js.map +1 -0
  101. package/dist/lib/platform-extension-tools.d.ts +1 -0
  102. package/dist/lib/platform-extension-tools.js +416 -0
  103. package/dist/lib/platform-extension-tools.js.map +1 -0
  104. package/dist/lib/platform-extension-ui.d.ts +4 -0
  105. package/dist/lib/platform-extension-ui.js +5 -0
  106. package/dist/lib/platform-extension-ui.js.map +1 -0
  107. package/dist/lib/platform-extension-workflow.d.ts +54 -0
  108. package/dist/lib/platform-extension-workflow.js +194 -0
  109. package/dist/lib/platform-extension-workflow.js.map +1 -0
  110. package/dist/lib/platform-flow-operations.d.ts +554 -0
  111. package/dist/lib/platform-flow-operations.js +317 -0
  112. package/dist/lib/platform-flow-operations.js.map +1 -0
  113. package/dist/lib/platform-flow-tools.d.ts +1 -0
  114. package/dist/lib/platform-flow-tools.js +248 -0
  115. package/dist/lib/platform-flow-tools.js.map +1 -0
  116. package/dist/lib/platform-operation-logic.d.ts +10 -0
  117. package/dist/lib/platform-operation-logic.js +11 -0
  118. package/dist/lib/platform-operation-logic.js.map +1 -0
  119. package/dist/lib/platform-operation-tools.d.ts +1 -324
  120. package/dist/lib/platform-operation-tools.js +13 -4620
  121. package/dist/lib/platform-operation-tools.js.map +1 -1
  122. package/dist/lib/platform-operation-types.d.ts +46 -0
  123. package/dist/lib/platform-operation-types.js +2 -0
  124. package/dist/lib/platform-operation-types.js.map +1 -0
  125. package/dist/lib/platform-policy-tools.d.ts +1 -0
  126. package/dist/lib/platform-policy-tools.js +248 -0
  127. package/dist/lib/platform-policy-tools.js.map +1 -0
  128. package/dist/lib/platform-resource-operations.d.ts +124 -0
  129. package/dist/lib/platform-resource-operations.js +109 -0
  130. package/dist/lib/platform-resource-operations.js.map +1 -0
  131. package/dist/lib/platform-resource-tools.d.ts +1 -0
  132. package/dist/lib/platform-resource-tools.js +70 -0
  133. package/dist/lib/platform-resource-tools.js.map +1 -0
  134. package/dist/lib/platform-route-operations.d.ts +222 -0
  135. package/dist/lib/platform-route-operations.js +290 -0
  136. package/dist/lib/platform-route-operations.js.map +1 -0
  137. package/dist/lib/platform-route-tools.d.ts +1 -0
  138. package/dist/lib/platform-route-tools.js +307 -0
  139. package/dist/lib/platform-route-tools.js.map +1 -0
  140. package/dist/lib/platform-shared-operations.d.ts +7 -0
  141. package/dist/lib/platform-shared-operations.js +4 -0
  142. package/dist/lib/platform-shared-operations.js.map +1 -0
  143. package/dist/lib/platform-websocket-tools.d.ts +1 -0
  144. package/dist/lib/platform-websocket-tools.js +70 -0
  145. package/dist/lib/platform-websocket-tools.js.map +1 -0
  146. package/dist/lib/record-tools.d.ts +4 -0
  147. package/dist/lib/record-tools.js +418 -0
  148. package/dist/lib/record-tools.js.map +1 -0
  149. package/dist/lib/required-knowledge.d.ts +1 -1
  150. package/dist/lib/required-knowledge.js +3 -2
  151. package/dist/lib/required-knowledge.js.map +1 -1
  152. package/dist/lib/route-access-tools.d.ts +4 -0
  153. package/dist/lib/route-access-tools.js +172 -0
  154. package/dist/lib/route-access-tools.js.map +1 -0
  155. package/dist/lib/route-definition-tools.d.ts +4 -0
  156. package/dist/lib/route-definition-tools.js +285 -0
  157. package/dist/lib/route-definition-tools.js.map +1 -0
  158. package/dist/lib/route-inspection-tools.d.ts +4 -0
  159. package/dist/lib/route-inspection-tools.js +319 -0
  160. package/dist/lib/route-inspection-tools.js.map +1 -0
  161. package/dist/lib/route-tools.d.ts +1 -0
  162. package/dist/lib/route-tools.js +9 -0
  163. package/dist/lib/route-tools.js.map +1 -0
  164. package/dist/lib/runtime-zone-registry.d.ts +27 -0
  165. package/dist/lib/runtime-zone-registry.js +81 -0
  166. package/dist/lib/runtime-zone-registry.js.map +1 -0
  167. package/dist/lib/runtime-zone-search.d.ts +303 -0
  168. package/dist/lib/runtime-zone-search.js +596 -0
  169. package/dist/lib/runtime-zone-search.js.map +1 -0
  170. package/dist/lib/runtime-zone-tools.d.ts +2 -307
  171. package/dist/lib/runtime-zone-tools.js +2 -674
  172. package/dist/lib/runtime-zone-tools.js.map +1 -1
  173. package/dist/lib/schema-column-tools.d.ts +3 -0
  174. package/dist/lib/schema-column-tools.js +80 -0
  175. package/dist/lib/schema-column-tools.js.map +1 -0
  176. package/dist/lib/schema-mutation-coordinator.d.ts +28 -0
  177. package/dist/lib/schema-mutation-coordinator.js +154 -0
  178. package/dist/lib/schema-mutation-coordinator.js.map +1 -0
  179. package/dist/lib/schema-relation-contracts.d.ts +39 -0
  180. package/dist/lib/schema-relation-contracts.js +160 -0
  181. package/dist/lib/schema-relation-contracts.js.map +1 -0
  182. package/dist/lib/schema-relation-tools.d.ts +3 -0
  183. package/dist/lib/schema-relation-tools.js +61 -0
  184. package/dist/lib/schema-relation-tools.js.map +1 -0
  185. package/dist/lib/schema-table-contracts.d.ts +28 -0
  186. package/dist/lib/schema-table-contracts.js +263 -0
  187. package/dist/lib/schema-table-contracts.js.map +1 -0
  188. package/dist/lib/schema-table-tools.d.ts +3 -0
  189. package/dist/lib/schema-table-tools.js +297 -0
  190. package/dist/lib/schema-table-tools.js.map +1 -0
  191. package/dist/lib/schema-tool-operations.d.ts +150 -0
  192. package/dist/lib/schema-tool-operations.js +468 -0
  193. package/dist/lib/schema-tool-operations.js.map +1 -0
  194. package/dist/lib/schema-tool-types.d.ts +38 -0
  195. package/dist/lib/schema-tool-types.js +2 -0
  196. package/dist/lib/schema-tool-types.js.map +1 -0
  197. package/dist/lib/schema-verification.d.ts +14 -0
  198. package/dist/lib/schema-verification.js +105 -0
  199. package/dist/lib/schema-verification.js.map +1 -0
  200. package/dist/lib/script-tools.d.ts +4 -0
  201. package/dist/lib/script-tools.js +127 -0
  202. package/dist/lib/script-tools.js.map +1 -0
  203. package/dist/lib/system-tools.d.ts +4 -0
  204. package/dist/lib/system-tools.js +41 -0
  205. package/dist/lib/system-tools.js.map +1 -0
  206. package/dist/lib/table-tool-logic.d.ts +5 -0
  207. package/dist/lib/table-tool-logic.js +6 -0
  208. package/dist/lib/table-tool-logic.js.map +1 -0
  209. package/dist/lib/table-tools.d.ts +1 -84
  210. package/dist/lib/table-tools.js +7 -1522
  211. package/dist/lib/table-tools.js.map +1 -1
  212. package/dist/lib/tool-catalog.d.ts +2 -1
  213. package/dist/lib/tool-catalog.js +23 -2
  214. package/dist/lib/tool-catalog.js.map +1 -1
  215. package/dist/lib/tool-metadata-operations.d.ts +27 -0
  216. package/dist/lib/tool-metadata-operations.js +93 -0
  217. package/dist/lib/tool-metadata-operations.js.map +1 -0
  218. package/dist/lib/tool-permission-profile.d.ts +37 -0
  219. package/dist/lib/tool-permission-profile.js +106 -0
  220. package/dist/lib/tool-permission-profile.js.map +1 -0
  221. package/dist/lib/tool-record-operations.d.ts +102 -0
  222. package/dist/lib/tool-record-operations.js +260 -0
  223. package/dist/lib/tool-record-operations.js.map +1 -0
  224. package/dist/lib/tool-route-inspection.d.ts +47 -0
  225. package/dist/lib/tool-route-inspection.js +168 -0
  226. package/dist/lib/tool-route-inspection.js.map +1 -0
  227. package/dist/lib/tool-routing.d.ts +3 -417
  228. package/dist/lib/tool-routing.js +3 -1038
  229. package/dist/lib/tool-routing.js.map +1 -1
  230. package/dist/lib/tool-runtime-config.d.ts +33 -0
  231. package/dist/lib/tool-runtime-config.js +237 -0
  232. package/dist/lib/tool-runtime-config.js.map +1 -0
  233. package/dist/lib/tool-script-operations.d.ts +34 -0
  234. package/dist/lib/tool-script-operations.js +153 -0
  235. package/dist/lib/tool-script-operations.js.map +1 -0
  236. package/dist/lib/workflow-definitions.d.ts +366 -0
  237. package/dist/lib/workflow-definitions.js +703 -0
  238. package/dist/lib/workflow-definitions.js.map +1 -0
  239. package/dist/lib/workflow-planner.d.ts +45 -0
  240. package/dist/lib/workflow-planner.js +338 -0
  241. package/dist/lib/workflow-planner.js.map +1 -0
  242. package/dist/lib/workflow-types.d.ts +39 -0
  243. package/dist/lib/workflow-types.js +2 -0
  244. package/dist/lib/workflow-types.js.map +1 -0
  245. package/dist/mcp-server-entry.d.ts +0 -3
  246. package/dist/mcp-server-entry.js +2 -3249
  247. package/dist/mcp-server-entry.js.map +1 -1
  248. package/package.json +1 -1
@@ -0,0 +1,487 @@
1
+ import { AnyRecord } from './platform-shared-operations.js';
2
+ export declare function parseJsonObjectArg(name: any, value: any, fallback?: {}): any;
3
+ export declare function normalizeMenuPermissionArg(permission: any): any;
4
+ export declare function parseJsonArrayArg(name: any, value: any, fallback?: any[]): any[];
5
+ export declare function filterQuery(filter: any): string;
6
+ export declare function reloadBestEffort(apiUrl: any, path: any): Promise<{
7
+ attempted: boolean;
8
+ succeeded: boolean;
9
+ result: any;
10
+ error?: undefined;
11
+ } | {
12
+ attempted: boolean;
13
+ succeeded: boolean;
14
+ error: any;
15
+ result?: undefined;
16
+ }>;
17
+ export declare function naturalPartialReload(reason: any): {
18
+ attempted: boolean;
19
+ succeeded: boolean;
20
+ reason: any;
21
+ };
22
+ export declare function validateDynamicScript(apiUrl: any, sourceCode: any, scriptLanguage?: string): Promise<{
23
+ valid: boolean;
24
+ scriptLanguage: string;
25
+ compiledLength: any;
26
+ }>;
27
+ export declare function readTemplateBlocks(code: any): any[];
28
+ export declare function validateExtensionCodeLocally(code: any, options?: AnyRecord): {
29
+ vueSfcAst: string;
30
+ componentCasing: string;
31
+ fieldWidth: string;
32
+ themeContract: string;
33
+ runtimeContract: string;
34
+ };
35
+ export declare function validateExtensionCode(apiUrl: any, code: any, name: any, options?: AnyRecord): Promise<{
36
+ valid: boolean;
37
+ localChecks: {
38
+ vueSfcAst: string;
39
+ componentCasing: string;
40
+ fieldWidth: string;
41
+ themeContract: string;
42
+ runtimeContract: string;
43
+ };
44
+ extensionId: any;
45
+ compiledLength: any;
46
+ }>;
47
+ export declare function buildExtensionRuntimeVerification({ extension, code, validation, uiPattern, expectedSha256 }: {
48
+ extension: any;
49
+ code: any;
50
+ validation: any;
51
+ uiPattern: any;
52
+ expectedSha256: any;
53
+ }): {
54
+ action: string;
55
+ valid: boolean;
56
+ extension: {
57
+ id: any;
58
+ name: any;
59
+ type: any;
60
+ isEnabled: any;
61
+ version: any;
62
+ sha256: string;
63
+ length: number;
64
+ };
65
+ checks: {
66
+ savedRecord: {
67
+ status: string;
68
+ };
69
+ expectedHash: {
70
+ status: string;
71
+ expectedSha256: any;
72
+ currentSha256: string;
73
+ };
74
+ serverCompile: {
75
+ status: string;
76
+ compiledLength: any;
77
+ };
78
+ uiContract: {
79
+ status: string;
80
+ issueCount: any;
81
+ pattern: any;
82
+ };
83
+ themeContract: {
84
+ status: string;
85
+ issueCount: any;
86
+ };
87
+ runtimeContract: {
88
+ status: string;
89
+ issueCount: any;
90
+ };
91
+ menuWiring: {
92
+ status: string;
93
+ applicable: boolean;
94
+ menu: {
95
+ id: any;
96
+ label: any;
97
+ path: any;
98
+ };
99
+ };
100
+ browserRender: {
101
+ status: string;
102
+ reason: string;
103
+ };
104
+ };
105
+ contractReview: any;
106
+ coverage: {
107
+ verified: string[];
108
+ browserRequiredForFullRuntimeProof: boolean;
109
+ };
110
+ };
111
+ export declare function verifyExtensionRuntime(apiUrl: any, { id, name, uiPattern, expectedSha256 }: {
112
+ id: any;
113
+ name: any;
114
+ uiPattern: any;
115
+ expectedSha256: any;
116
+ }): Promise<{
117
+ action: string;
118
+ valid: boolean;
119
+ extension: {
120
+ id: any;
121
+ name: any;
122
+ type: any;
123
+ isEnabled: any;
124
+ version: any;
125
+ sha256: string;
126
+ length: number;
127
+ };
128
+ checks: {
129
+ savedRecord: {
130
+ status: string;
131
+ };
132
+ expectedHash: {
133
+ status: string;
134
+ expectedSha256: any;
135
+ currentSha256: string;
136
+ };
137
+ serverCompile: {
138
+ status: string;
139
+ compiledLength: any;
140
+ };
141
+ uiContract: {
142
+ status: string;
143
+ issueCount: any;
144
+ pattern: any;
145
+ };
146
+ themeContract: {
147
+ status: string;
148
+ issueCount: any;
149
+ };
150
+ runtimeContract: {
151
+ status: string;
152
+ issueCount: any;
153
+ };
154
+ menuWiring: {
155
+ status: string;
156
+ applicable: boolean;
157
+ menu: {
158
+ id: any;
159
+ label: any;
160
+ path: any;
161
+ };
162
+ };
163
+ browserRender: {
164
+ status: string;
165
+ reason: string;
166
+ };
167
+ };
168
+ contractReview: any;
169
+ coverage: {
170
+ verified: string[];
171
+ browserRequiredForFullRuntimeProof: boolean;
172
+ };
173
+ }>;
174
+ export declare function updateExtensionCode(apiUrl: any, { id, name, code, description, isEnabled, version, expectedSha256, uiPattern, globalRulesAckKey, extensionKnowledgeAckKey, }: {
175
+ id: any;
176
+ name: any;
177
+ code: any;
178
+ description: any;
179
+ isEnabled: any;
180
+ version: any;
181
+ expectedSha256: any;
182
+ uiPattern: any;
183
+ globalRulesAckKey: any;
184
+ extensionKnowledgeAckKey: any;
185
+ }): Promise<{
186
+ action: string;
187
+ id: any;
188
+ name: any;
189
+ type: any;
190
+ previousSha256: string;
191
+ sha256: string;
192
+ saved: {
193
+ id: any;
194
+ name: any;
195
+ type: any;
196
+ isEnabled: any;
197
+ version: any;
198
+ updatedAt: any;
199
+ };
200
+ validation: {
201
+ valid: boolean;
202
+ localChecks: {
203
+ vueSfcAst: string;
204
+ componentCasing: string;
205
+ fieldWidth: string;
206
+ themeContract: string;
207
+ runtimeContract: string;
208
+ };
209
+ extensionId: any;
210
+ compiledLength: any;
211
+ };
212
+ contractReview: {
213
+ valid: any;
214
+ issueCount: any;
215
+ pattern: any;
216
+ };
217
+ verification: {
218
+ action: string;
219
+ valid: boolean;
220
+ extension: {
221
+ id: any;
222
+ name: any;
223
+ type: any;
224
+ isEnabled: any;
225
+ version: any;
226
+ sha256: string;
227
+ length: number;
228
+ };
229
+ checks: {
230
+ savedRecord: {
231
+ status: string;
232
+ };
233
+ expectedHash: {
234
+ status: string;
235
+ expectedSha256: any;
236
+ currentSha256: string;
237
+ };
238
+ serverCompile: {
239
+ status: string;
240
+ compiledLength: any;
241
+ };
242
+ uiContract: {
243
+ status: string;
244
+ issueCount: any;
245
+ pattern: any;
246
+ };
247
+ themeContract: {
248
+ status: string;
249
+ issueCount: any;
250
+ };
251
+ runtimeContract: {
252
+ status: string;
253
+ issueCount: any;
254
+ };
255
+ menuWiring: {
256
+ status: string;
257
+ applicable: boolean;
258
+ menu: {
259
+ id: any;
260
+ label: any;
261
+ path: any;
262
+ };
263
+ };
264
+ browserRender: {
265
+ status: string;
266
+ reason: string;
267
+ };
268
+ };
269
+ contractReview: any;
270
+ coverage: {
271
+ verified: string[];
272
+ browserRequiredForFullRuntimeProof: boolean;
273
+ };
274
+ };
275
+ }>;
276
+ export declare function sha256Text(value: any): string;
277
+ export declare function escapeRegExp(value: any): string;
278
+ export declare function applyExtensionCodePatches(code: any, patches: any): {
279
+ code: string;
280
+ patches: {
281
+ search: string;
282
+ replace: string;
283
+ searchMode: any;
284
+ replaceAll: boolean;
285
+ }[];
286
+ results: any[];
287
+ };
288
+ export declare function buildExtensionPatchDiffArtifact({ id, name, currentSha256, nextSha256, patches }: {
289
+ id: any;
290
+ name: any;
291
+ currentSha256: any;
292
+ nextSha256: any;
293
+ patches: any;
294
+ }): {
295
+ resourceUri: string;
296
+ tmpFile: string;
297
+ length: number;
298
+ sha256: string;
299
+ preview: string;
300
+ };
301
+ export declare function patchExtensionCode(apiUrl: any, { id, name, search, replace, searchMode, replaceAll, patches, expectedSha256, apply, description, isEnabled, version, uiPattern, globalRulesAckKey, extensionKnowledgeAckKey, }: {
302
+ id: any;
303
+ name: any;
304
+ search: any;
305
+ replace: any;
306
+ searchMode: any;
307
+ replaceAll: any;
308
+ patches: any;
309
+ expectedSha256: any;
310
+ apply: any;
311
+ description: any;
312
+ isEnabled: any;
313
+ version: any;
314
+ uiPattern: any;
315
+ globalRulesAckKey: any;
316
+ extensionKnowledgeAckKey: any;
317
+ }): Promise<{
318
+ nextStep: {
319
+ tool: string;
320
+ input: {
321
+ apply: boolean;
322
+ search: string;
323
+ replace: string;
324
+ searchMode: any;
325
+ replaceAll: boolean;
326
+ patches?: undefined;
327
+ id: any;
328
+ expectedSha256: string;
329
+ } | {
330
+ apply: boolean;
331
+ patches: {
332
+ search: string;
333
+ replace: string;
334
+ searchMode: any;
335
+ replaceAll: boolean;
336
+ }[];
337
+ search?: undefined;
338
+ replace?: undefined;
339
+ searchMode?: undefined;
340
+ replaceAll?: undefined;
341
+ id: any;
342
+ expectedSha256: string;
343
+ };
344
+ };
345
+ action: string;
346
+ id: any;
347
+ name: any;
348
+ type: any;
349
+ currentSha256: string;
350
+ nextSha256: string;
351
+ currentLength: number;
352
+ nextLength: number;
353
+ occurrences: any;
354
+ patchResults: any[];
355
+ diff: {
356
+ resourceUri: string;
357
+ tmpFile: string;
358
+ length: number;
359
+ sha256: string;
360
+ preview: string;
361
+ };
362
+ atomic: boolean;
363
+ apply: boolean;
364
+ } | {
365
+ result: {
366
+ action: string;
367
+ id: any;
368
+ name: any;
369
+ type: any;
370
+ previousSha256: string;
371
+ sha256: string;
372
+ saved: {
373
+ id: any;
374
+ name: any;
375
+ type: any;
376
+ isEnabled: any;
377
+ version: any;
378
+ updatedAt: any;
379
+ };
380
+ validation: {
381
+ valid: boolean;
382
+ localChecks: {
383
+ vueSfcAst: string;
384
+ componentCasing: string;
385
+ fieldWidth: string;
386
+ themeContract: string;
387
+ runtimeContract: string;
388
+ };
389
+ extensionId: any;
390
+ compiledLength: any;
391
+ };
392
+ contractReview: {
393
+ valid: any;
394
+ issueCount: any;
395
+ pattern: any;
396
+ };
397
+ verification: {
398
+ action: string;
399
+ valid: boolean;
400
+ extension: {
401
+ id: any;
402
+ name: any;
403
+ type: any;
404
+ isEnabled: any;
405
+ version: any;
406
+ sha256: string;
407
+ length: number;
408
+ };
409
+ checks: {
410
+ savedRecord: {
411
+ status: string;
412
+ };
413
+ expectedHash: {
414
+ status: string;
415
+ expectedSha256: any;
416
+ currentSha256: string;
417
+ };
418
+ serverCompile: {
419
+ status: string;
420
+ compiledLength: any;
421
+ };
422
+ uiContract: {
423
+ status: string;
424
+ issueCount: any;
425
+ pattern: any;
426
+ };
427
+ themeContract: {
428
+ status: string;
429
+ issueCount: any;
430
+ };
431
+ runtimeContract: {
432
+ status: string;
433
+ issueCount: any;
434
+ };
435
+ menuWiring: {
436
+ status: string;
437
+ applicable: boolean;
438
+ menu: {
439
+ id: any;
440
+ label: any;
441
+ path: any;
442
+ };
443
+ };
444
+ browserRender: {
445
+ status: string;
446
+ reason: string;
447
+ };
448
+ };
449
+ contractReview: any;
450
+ coverage: {
451
+ verified: string[];
452
+ browserRequiredForFullRuntimeProof: boolean;
453
+ };
454
+ };
455
+ };
456
+ validation: {
457
+ valid: boolean;
458
+ localChecks: {
459
+ vueSfcAst: string;
460
+ componentCasing: string;
461
+ fieldWidth: string;
462
+ themeContract: string;
463
+ runtimeContract: string;
464
+ };
465
+ extensionId: any;
466
+ compiledLength: any;
467
+ };
468
+ action: string;
469
+ id: any;
470
+ name: any;
471
+ type: any;
472
+ currentSha256: string;
473
+ nextSha256: string;
474
+ currentLength: number;
475
+ nextLength: number;
476
+ occurrences: any;
477
+ patchResults: any[];
478
+ diff: {
479
+ resourceUri: string;
480
+ tmpFile: string;
481
+ length: number;
482
+ sha256: string;
483
+ preview: string;
484
+ };
485
+ atomic: boolean;
486
+ apply: boolean;
487
+ }>;