@gravity-platform/ingest 1.1.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.
Files changed (326) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/Abyssale/node/executor.d.ts +12 -0
  3. package/dist/Abyssale/node/executor.d.ts.map +1 -0
  4. package/dist/Abyssale/node/executor.js +72 -0
  5. package/dist/Abyssale/node/executor.js.map +1 -0
  6. package/dist/Abyssale/node/index.d.ts +10 -0
  7. package/dist/Abyssale/node/index.d.ts.map +1 -0
  8. package/dist/Abyssale/node/index.js +90 -0
  9. package/dist/Abyssale/node/index.js.map +1 -0
  10. package/dist/Abyssale/service/abyssaleService.d.ts +45 -0
  11. package/dist/Abyssale/service/abyssaleService.d.ts.map +1 -0
  12. package/dist/Abyssale/service/abyssaleService.js +360 -0
  13. package/dist/Abyssale/service/abyssaleService.js.map +1 -0
  14. package/dist/Abyssale/util/types.d.ts +62 -0
  15. package/dist/Abyssale/util/types.d.ts.map +1 -0
  16. package/dist/Abyssale/util/types.js +6 -0
  17. package/dist/Abyssale/util/types.js.map +1 -0
  18. package/dist/AirtableInsert/node/executor.d.ts +7 -0
  19. package/dist/AirtableInsert/node/executor.d.ts.map +1 -0
  20. package/dist/AirtableInsert/node/executor.js +32 -0
  21. package/dist/AirtableInsert/node/executor.js.map +1 -0
  22. package/dist/AirtableInsert/node/index.d.ts +10 -0
  23. package/dist/AirtableInsert/node/index.d.ts.map +1 -0
  24. package/dist/AirtableInsert/node/index.js +98 -0
  25. package/dist/AirtableInsert/node/index.js.map +1 -0
  26. package/dist/AirtableInsert/service/airtableInsertService.d.ts +8 -0
  27. package/dist/AirtableInsert/service/airtableInsertService.d.ts.map +1 -0
  28. package/dist/AirtableInsert/service/airtableInsertService.js +99 -0
  29. package/dist/AirtableInsert/service/airtableInsertService.js.map +1 -0
  30. package/dist/AirtableInsert/util/types.d.ts +15 -0
  31. package/dist/AirtableInsert/util/types.d.ts.map +1 -0
  32. package/dist/AirtableInsert/util/types.js +3 -0
  33. package/dist/AirtableInsert/util/types.js.map +1 -0
  34. package/dist/ApifyResults/node/executor.d.ts +32 -0
  35. package/dist/ApifyResults/node/executor.d.ts.map +1 -0
  36. package/dist/ApifyResults/node/executor.js +204 -0
  37. package/dist/ApifyResults/node/executor.js.map +1 -0
  38. package/dist/ApifyResults/node/index.d.ts +10 -0
  39. package/dist/ApifyResults/node/index.d.ts.map +1 -0
  40. package/dist/ApifyResults/node/index.js +79 -0
  41. package/dist/ApifyResults/node/index.js.map +1 -0
  42. package/dist/ApifyResults/service/apifyService.d.ts +10 -0
  43. package/dist/ApifyResults/service/apifyService.d.ts.map +1 -0
  44. package/dist/ApifyResults/service/apifyService.js +85 -0
  45. package/dist/ApifyResults/service/apifyService.js.map +1 -0
  46. package/dist/ApifyResults/util/types.d.ts +93 -0
  47. package/dist/ApifyResults/util/types.d.ts.map +1 -0
  48. package/dist/ApifyResults/util/types.js +6 -0
  49. package/dist/ApifyResults/util/types.js.map +1 -0
  50. package/dist/ApifyStarter/node/executor.d.ts +12 -0
  51. package/dist/ApifyStarter/node/executor.d.ts.map +1 -0
  52. package/dist/ApifyStarter/node/executor.js +97 -0
  53. package/dist/ApifyStarter/node/executor.js.map +1 -0
  54. package/dist/ApifyStarter/node/index.d.ts +10 -0
  55. package/dist/ApifyStarter/node/index.d.ts.map +1 -0
  56. package/dist/ApifyStarter/node/index.js +87 -0
  57. package/dist/ApifyStarter/node/index.js.map +1 -0
  58. package/dist/ApifyStarter/service/apifyActorService.d.ts +11 -0
  59. package/dist/ApifyStarter/service/apifyActorService.d.ts.map +1 -0
  60. package/dist/ApifyStarter/service/apifyActorService.js +104 -0
  61. package/dist/ApifyStarter/service/apifyActorService.js.map +1 -0
  62. package/dist/ApifyStarter/util/types.d.ts +23 -0
  63. package/dist/ApifyStarter/util/types.d.ts.map +1 -0
  64. package/dist/ApifyStarter/util/types.js +6 -0
  65. package/dist/ApifyStarter/util/types.js.map +1 -0
  66. package/dist/ApifyStarter/util/validation.d.ts +9 -0
  67. package/dist/ApifyStarter/util/validation.d.ts.map +1 -0
  68. package/dist/ApifyStarter/util/validation.js +59 -0
  69. package/dist/ApifyStarter/util/validation.js.map +1 -0
  70. package/dist/ApolloCompany/node/executor.d.ts +8 -0
  71. package/dist/ApolloCompany/node/executor.d.ts.map +1 -0
  72. package/dist/ApolloCompany/node/executor.js +38 -0
  73. package/dist/ApolloCompany/node/executor.js.map +1 -0
  74. package/dist/ApolloCompany/node/index.d.ts +10 -0
  75. package/dist/ApolloCompany/node/index.d.ts.map +1 -0
  76. package/dist/ApolloCompany/node/index.js +120 -0
  77. package/dist/ApolloCompany/node/index.js.map +1 -0
  78. package/dist/ApolloCompany/service/apolloSearchCompanyService.d.ts +7 -0
  79. package/dist/ApolloCompany/service/apolloSearchCompanyService.d.ts.map +1 -0
  80. package/dist/ApolloCompany/service/apolloSearchCompanyService.js +124 -0
  81. package/dist/ApolloCompany/service/apolloSearchCompanyService.js.map +1 -0
  82. package/dist/ApolloCompany/util/types.d.ts +46 -0
  83. package/dist/ApolloCompany/util/types.d.ts.map +1 -0
  84. package/dist/ApolloCompany/util/types.js +6 -0
  85. package/dist/ApolloCompany/util/types.js.map +1 -0
  86. package/dist/ApolloCompanyEnrich/node/executor.d.ts +8 -0
  87. package/dist/ApolloCompanyEnrich/node/executor.d.ts.map +1 -0
  88. package/dist/ApolloCompanyEnrich/node/executor.js +25 -0
  89. package/dist/ApolloCompanyEnrich/node/executor.js.map +1 -0
  90. package/dist/ApolloCompanyEnrich/node/index.d.ts +10 -0
  91. package/dist/ApolloCompanyEnrich/node/index.d.ts.map +1 -0
  92. package/dist/ApolloCompanyEnrich/node/index.js +67 -0
  93. package/dist/ApolloCompanyEnrich/node/index.js.map +1 -0
  94. package/dist/ApolloCompanyEnrich/service/apolloCompanyEnrichService.d.ts +9 -0
  95. package/dist/ApolloCompanyEnrich/service/apolloCompanyEnrichService.d.ts.map +1 -0
  96. package/dist/ApolloCompanyEnrich/service/apolloCompanyEnrichService.js +40 -0
  97. package/dist/ApolloCompanyEnrich/service/apolloCompanyEnrichService.js.map +1 -0
  98. package/dist/ApolloCompanyEnrich/util/types.d.ts +13 -0
  99. package/dist/ApolloCompanyEnrich/util/types.d.ts.map +1 -0
  100. package/dist/ApolloCompanyEnrich/util/types.js +6 -0
  101. package/dist/ApolloCompanyEnrich/util/types.js.map +1 -0
  102. package/dist/ApolloPeople/node/executor.d.ts +8 -0
  103. package/dist/ApolloPeople/node/executor.d.ts.map +1 -0
  104. package/dist/ApolloPeople/node/executor.js +41 -0
  105. package/dist/ApolloPeople/node/executor.js.map +1 -0
  106. package/dist/ApolloPeople/node/index.d.ts +10 -0
  107. package/dist/ApolloPeople/node/index.d.ts.map +1 -0
  108. package/dist/ApolloPeople/node/index.js +128 -0
  109. package/dist/ApolloPeople/node/index.js.map +1 -0
  110. package/dist/ApolloPeople/service/apolloSearchService.d.ts +6 -0
  111. package/dist/ApolloPeople/service/apolloSearchService.d.ts.map +1 -0
  112. package/dist/ApolloPeople/service/apolloSearchService.js +127 -0
  113. package/dist/ApolloPeople/service/apolloSearchService.js.map +1 -0
  114. package/dist/ApolloPeople/util/types.d.ts +70 -0
  115. package/dist/ApolloPeople/util/types.d.ts.map +1 -0
  116. package/dist/ApolloPeople/util/types.js +6 -0
  117. package/dist/ApolloPeople/util/types.js.map +1 -0
  118. package/dist/ApolloPeopleEnrich/node/executor.d.ts +8 -0
  119. package/dist/ApolloPeopleEnrich/node/executor.d.ts.map +1 -0
  120. package/dist/ApolloPeopleEnrich/node/executor.js +25 -0
  121. package/dist/ApolloPeopleEnrich/node/executor.js.map +1 -0
  122. package/dist/ApolloPeopleEnrich/node/index.d.ts +10 -0
  123. package/dist/ApolloPeopleEnrich/node/index.d.ts.map +1 -0
  124. package/dist/ApolloPeopleEnrich/node/index.js +116 -0
  125. package/dist/ApolloPeopleEnrich/node/index.js.map +1 -0
  126. package/dist/ApolloPeopleEnrich/service/apolloPeopleEnrichService.d.ts +10 -0
  127. package/dist/ApolloPeopleEnrich/service/apolloPeopleEnrichService.d.ts.map +1 -0
  128. package/dist/ApolloPeopleEnrich/service/apolloPeopleEnrichService.js +54 -0
  129. package/dist/ApolloPeopleEnrich/service/apolloPeopleEnrichService.js.map +1 -0
  130. package/dist/ApolloPeopleEnrich/util/types.d.ts +20 -0
  131. package/dist/ApolloPeopleEnrich/util/types.d.ts.map +1 -0
  132. package/dist/ApolloPeopleEnrich/util/types.js +6 -0
  133. package/dist/ApolloPeopleEnrich/util/types.js.map +1 -0
  134. package/dist/ApolloSearch/node/executor.d.ts +9 -0
  135. package/dist/ApolloSearch/node/executor.d.ts.map +1 -0
  136. package/dist/ApolloSearch/node/executor.js +51 -0
  137. package/dist/ApolloSearch/node/executor.js.map +1 -0
  138. package/dist/ApolloSearch/node/index.d.ts +10 -0
  139. package/dist/ApolloSearch/node/index.d.ts.map +1 -0
  140. package/dist/ApolloSearch/node/index.js +128 -0
  141. package/dist/ApolloSearch/node/index.js.map +1 -0
  142. package/dist/ApolloSearch/service/apolloSearchService.d.ts +6 -0
  143. package/dist/ApolloSearch/service/apolloSearchService.d.ts.map +1 -0
  144. package/dist/ApolloSearch/service/apolloSearchService.js +127 -0
  145. package/dist/ApolloSearch/service/apolloSearchService.js.map +1 -0
  146. package/dist/ApolloSearch/util/types.d.ts +70 -0
  147. package/dist/ApolloSearch/util/types.d.ts.map +1 -0
  148. package/dist/ApolloSearch/util/types.js +6 -0
  149. package/dist/ApolloSearch/util/types.js.map +1 -0
  150. package/dist/ApolloSearchCompany/node/executor.d.ts +9 -0
  151. package/dist/ApolloSearchCompany/node/executor.d.ts.map +1 -0
  152. package/dist/ApolloSearchCompany/node/executor.js +49 -0
  153. package/dist/ApolloSearchCompany/node/executor.js.map +1 -0
  154. package/dist/ApolloSearchCompany/node/index.d.ts +10 -0
  155. package/dist/ApolloSearchCompany/node/index.d.ts.map +1 -0
  156. package/dist/ApolloSearchCompany/node/index.js +128 -0
  157. package/dist/ApolloSearchCompany/node/index.js.map +1 -0
  158. package/dist/ApolloSearchCompany/service/apolloSearchCompanyService.d.ts +7 -0
  159. package/dist/ApolloSearchCompany/service/apolloSearchCompanyService.d.ts.map +1 -0
  160. package/dist/ApolloSearchCompany/service/apolloSearchCompanyService.js +98 -0
  161. package/dist/ApolloSearchCompany/service/apolloSearchCompanyService.js.map +1 -0
  162. package/dist/ApolloSearchCompany/util/types.d.ts +48 -0
  163. package/dist/ApolloSearchCompany/util/types.d.ts.map +1 -0
  164. package/dist/ApolloSearchCompany/util/types.js +6 -0
  165. package/dist/ApolloSearchCompany/util/types.js.map +1 -0
  166. package/dist/Document/node/executor.d.ts +22 -0
  167. package/dist/Document/node/executor.d.ts.map +1 -0
  168. package/dist/Document/node/executor.js +85 -0
  169. package/dist/Document/node/executor.js.map +1 -0
  170. package/dist/Document/node/index.d.ts +10 -0
  171. package/dist/Document/node/index.d.ts.map +1 -0
  172. package/dist/Document/node/index.js +58 -0
  173. package/dist/Document/node/index.js.map +1 -0
  174. package/dist/Document/service/documentCache.d.ts +11 -0
  175. package/dist/Document/service/documentCache.d.ts.map +1 -0
  176. package/dist/Document/service/documentCache.js +166 -0
  177. package/dist/Document/service/documentCache.js.map +1 -0
  178. package/dist/Document/util/types.d.ts +70 -0
  179. package/dist/Document/util/types.d.ts.map +1 -0
  180. package/dist/Document/util/types.js +6 -0
  181. package/dist/Document/util/types.js.map +1 -0
  182. package/dist/DocumentParser/node/executor.d.ts +12 -0
  183. package/dist/DocumentParser/node/executor.d.ts.map +1 -0
  184. package/dist/DocumentParser/node/executor.js +200 -0
  185. package/dist/DocumentParser/node/executor.js.map +1 -0
  186. package/dist/DocumentParser/node/index.d.ts +10 -0
  187. package/dist/DocumentParser/node/index.d.ts.map +1 -0
  188. package/dist/DocumentParser/node/index.js +66 -0
  189. package/dist/DocumentParser/node/index.js.map +1 -0
  190. package/dist/DocumentParser/service/docxParser.d.ts +12 -0
  191. package/dist/DocumentParser/service/docxParser.d.ts.map +1 -0
  192. package/dist/DocumentParser/service/docxParser.js +27 -0
  193. package/dist/DocumentParser/service/docxParser.js.map +1 -0
  194. package/dist/DocumentParser/service/fileTypeDetector.d.ts +19 -0
  195. package/dist/DocumentParser/service/fileTypeDetector.d.ts.map +1 -0
  196. package/dist/DocumentParser/service/fileTypeDetector.js +75 -0
  197. package/dist/DocumentParser/service/fileTypeDetector.js.map +1 -0
  198. package/dist/DocumentParser/service/index.d.ts +5 -0
  199. package/dist/DocumentParser/service/index.d.ts.map +1 -0
  200. package/dist/DocumentParser/service/index.js +14 -0
  201. package/dist/DocumentParser/service/index.js.map +1 -0
  202. package/dist/DocumentParser/service/pdfParser.d.ts +16 -0
  203. package/dist/DocumentParser/service/pdfParser.d.ts.map +1 -0
  204. package/dist/DocumentParser/service/pdfParser.js +30 -0
  205. package/dist/DocumentParser/service/pdfParser.js.map +1 -0
  206. package/dist/DocumentParser/service/txtParser.d.ts +11 -0
  207. package/dist/DocumentParser/service/txtParser.d.ts.map +1 -0
  208. package/dist/DocumentParser/service/txtParser.js +35 -0
  209. package/dist/DocumentParser/service/txtParser.js.map +1 -0
  210. package/dist/DocumentParser/util/hashUtils.d.ts +17 -0
  211. package/dist/DocumentParser/util/hashUtils.d.ts.map +1 -0
  212. package/dist/DocumentParser/util/hashUtils.js +34 -0
  213. package/dist/DocumentParser/util/hashUtils.js.map +1 -0
  214. package/dist/DocumentParser/util/types.d.ts +43 -0
  215. package/dist/DocumentParser/util/types.d.ts.map +1 -0
  216. package/dist/DocumentParser/util/types.js +6 -0
  217. package/dist/DocumentParser/util/types.js.map +1 -0
  218. package/dist/ElevenLabs/node/executor.d.ts +12 -0
  219. package/dist/ElevenLabs/node/executor.d.ts.map +1 -0
  220. package/dist/ElevenLabs/node/executor.js +65 -0
  221. package/dist/ElevenLabs/node/executor.js.map +1 -0
  222. package/dist/ElevenLabs/node/index.d.ts +10 -0
  223. package/dist/ElevenLabs/node/index.d.ts.map +1 -0
  224. package/dist/ElevenLabs/node/index.js +92 -0
  225. package/dist/ElevenLabs/node/index.js.map +1 -0
  226. package/dist/ElevenLabs/service/elevenlabsService.d.ts +27 -0
  227. package/dist/ElevenLabs/service/elevenlabsService.d.ts.map +1 -0
  228. package/dist/ElevenLabs/service/elevenlabsService.js +278 -0
  229. package/dist/ElevenLabs/service/elevenlabsService.js.map +1 -0
  230. package/dist/ElevenLabs/util/types.d.ts +43 -0
  231. package/dist/ElevenLabs/util/types.d.ts.map +1 -0
  232. package/dist/ElevenLabs/util/types.js +7 -0
  233. package/dist/ElevenLabs/util/types.js.map +1 -0
  234. package/dist/GoogleSheet/node/executor.d.ts +21 -0
  235. package/dist/GoogleSheet/node/executor.d.ts.map +1 -0
  236. package/dist/GoogleSheet/node/executor.js +156 -0
  237. package/dist/GoogleSheet/node/executor.js.map +1 -0
  238. package/dist/GoogleSheet/node/index.d.ts +10 -0
  239. package/dist/GoogleSheet/node/index.d.ts.map +1 -0
  240. package/dist/GoogleSheet/node/index.js +90 -0
  241. package/dist/GoogleSheet/node/index.js.map +1 -0
  242. package/dist/GoogleSheet/service/googleSheetsService.d.ts +10 -0
  243. package/dist/GoogleSheet/service/googleSheetsService.d.ts.map +1 -0
  244. package/dist/GoogleSheet/service/googleSheetsService.js +44 -0
  245. package/dist/GoogleSheet/service/googleSheetsService.js.map +1 -0
  246. package/dist/GoogleSheet/util/types.d.ts +39 -0
  247. package/dist/GoogleSheet/util/types.d.ts.map +1 -0
  248. package/dist/GoogleSheet/util/types.js +6 -0
  249. package/dist/GoogleSheet/util/types.js.map +1 -0
  250. package/dist/Hyperbrowser/node/executor.d.ts +12 -0
  251. package/dist/Hyperbrowser/node/executor.d.ts.map +1 -0
  252. package/dist/Hyperbrowser/node/executor.js +67 -0
  253. package/dist/Hyperbrowser/node/executor.js.map +1 -0
  254. package/dist/Hyperbrowser/node/index.d.ts +10 -0
  255. package/dist/Hyperbrowser/node/index.d.ts.map +1 -0
  256. package/dist/Hyperbrowser/node/index.js +93 -0
  257. package/dist/Hyperbrowser/node/index.js.map +1 -0
  258. package/dist/Hyperbrowser/service/hyperbrowserService.d.ts +38 -0
  259. package/dist/Hyperbrowser/service/hyperbrowserService.d.ts.map +1 -0
  260. package/dist/Hyperbrowser/service/hyperbrowserService.js +108 -0
  261. package/dist/Hyperbrowser/service/hyperbrowserService.js.map +1 -0
  262. package/dist/Hyperbrowser/util/types.d.ts +44 -0
  263. package/dist/Hyperbrowser/util/types.d.ts.map +1 -0
  264. package/dist/Hyperbrowser/util/types.js +6 -0
  265. package/dist/Hyperbrowser/util/types.js.map +1 -0
  266. package/dist/PlaidTransactions/node/executor.d.ts +10 -0
  267. package/dist/PlaidTransactions/node/executor.d.ts.map +1 -0
  268. package/dist/PlaidTransactions/node/executor.js +142 -0
  269. package/dist/PlaidTransactions/node/executor.js.map +1 -0
  270. package/dist/PlaidTransactions/node/index.d.ts +10 -0
  271. package/dist/PlaidTransactions/node/index.d.ts.map +1 -0
  272. package/dist/PlaidTransactions/node/index.js +120 -0
  273. package/dist/PlaidTransactions/node/index.js.map +1 -0
  274. package/dist/PlaidTransactions/service/plaidService.d.ts +12 -0
  275. package/dist/PlaidTransactions/service/plaidService.d.ts.map +1 -0
  276. package/dist/PlaidTransactions/service/plaidService.js +179 -0
  277. package/dist/PlaidTransactions/service/plaidService.js.map +1 -0
  278. package/dist/PlaidTransactions/util/types.d.ts +90 -0
  279. package/dist/PlaidTransactions/util/types.d.ts.map +1 -0
  280. package/dist/PlaidTransactions/util/types.js +6 -0
  281. package/dist/PlaidTransactions/util/types.js.map +1 -0
  282. package/dist/SearchWeb/node/executor.d.ts +12 -0
  283. package/dist/SearchWeb/node/executor.d.ts.map +1 -0
  284. package/dist/SearchWeb/node/executor.js +56 -0
  285. package/dist/SearchWeb/node/executor.js.map +1 -0
  286. package/dist/SearchWeb/node/index.d.ts +10 -0
  287. package/dist/SearchWeb/node/index.d.ts.map +1 -0
  288. package/dist/SearchWeb/node/index.js +114 -0
  289. package/dist/SearchWeb/node/index.js.map +1 -0
  290. package/dist/SearchWeb/service/searchWebService.d.ts +23 -0
  291. package/dist/SearchWeb/service/searchWebService.d.ts.map +1 -0
  292. package/dist/SearchWeb/service/searchWebService.js +146 -0
  293. package/dist/SearchWeb/service/searchWebService.js.map +1 -0
  294. package/dist/SearchWeb/util/types.d.ts +50 -0
  295. package/dist/SearchWeb/util/types.d.ts.map +1 -0
  296. package/dist/SearchWeb/util/types.js +6 -0
  297. package/dist/SearchWeb/util/types.js.map +1 -0
  298. package/dist/SpatialIngest/node/executor.d.ts +8 -0
  299. package/dist/SpatialIngest/node/executor.d.ts.map +1 -0
  300. package/dist/SpatialIngest/node/executor.js +58 -0
  301. package/dist/SpatialIngest/node/executor.js.map +1 -0
  302. package/dist/SpatialIngest/node/index.d.ts +10 -0
  303. package/dist/SpatialIngest/node/index.d.ts.map +1 -0
  304. package/dist/SpatialIngest/node/index.js +99 -0
  305. package/dist/SpatialIngest/node/index.js.map +1 -0
  306. package/dist/SpatialIngest/service/spatialIngestService.d.ts +29 -0
  307. package/dist/SpatialIngest/service/spatialIngestService.d.ts.map +1 -0
  308. package/dist/SpatialIngest/service/spatialIngestService.js +306 -0
  309. package/dist/SpatialIngest/service/spatialIngestService.js.map +1 -0
  310. package/dist/SpatialIngest/util/types.d.ts +26 -0
  311. package/dist/SpatialIngest/util/types.d.ts.map +1 -0
  312. package/dist/SpatialIngest/util/types.js +3 -0
  313. package/dist/SpatialIngest/util/types.js.map +1 -0
  314. package/dist/credentials/index.d.ts +141 -0
  315. package/dist/credentials/index.d.ts.map +1 -0
  316. package/dist/credentials/index.js +180 -0
  317. package/dist/credentials/index.js.map +1 -0
  318. package/dist/index.d.ts +3 -0
  319. package/dist/index.d.ts.map +1 -0
  320. package/dist/index.js +104 -0
  321. package/dist/index.js.map +1 -0
  322. package/dist/shared/platform.d.ts +11 -0
  323. package/dist/shared/platform.d.ts.map +1 -0
  324. package/dist/shared/platform.js +21 -0
  325. package/dist/shared/platform.js.map +1 -0
  326. package/package.json +53 -0
@@ -0,0 +1,306 @@
1
+ "use strict";
2
+ /**
3
+ * SpatialIngest Service
4
+ *
5
+ * Runs the full spatial ingestion pipeline:
6
+ * 1. LLM extraction → node-service /execute (OpenAIStructuredOutput)
7
+ * 2. Embeddings → OpenAI text-embedding-3-large (direct API, batch)
8
+ * 3. Build entries → SpatialEntry[] with 1536D embeddings
9
+ * 4. Upload to DB → workflow-service POST /dictionary/upload
10
+ *
11
+ * Prompts and schemas are COPIED from:
12
+ * apps/server/src/services/contentEngine/extraction/prompts.ts
13
+ * apps/server/src/services/contentEngine/extraction/schemas.ts
14
+ * TODO: Move to shared package so there is one source of truth.
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.runSpatialIngestPipeline = runSpatialIngestPipeline;
18
+ const crypto_1 = require("crypto");
19
+ const NODE_SERVICE_URL = process.env.NODE_SERVICE_URL || "http://localhost:4102";
20
+ const WORKFLOW_SERVICE_URL = process.env.WORKFLOW_SERVICE_URL || "http://localhost:4101";
21
+ async function runSpatialIngestPipeline(input) {
22
+ const { rawContent, category, domainPrompt, workflowId, sourceUrl, openAIApiKey } = input;
23
+ // Step 1: LLM extraction
24
+ const schema = getExtractionSchema(category);
25
+ const systemPrompt = getExtractionPrompt(category, domainPrompt);
26
+ const extractRes = await fetch(`${NODE_SERVICE_URL}/execute`, {
27
+ method: "POST",
28
+ headers: { "Content-Type": "application/json" },
29
+ body: JSON.stringify({
30
+ nodeType: "OpenAIStructuredOutput",
31
+ inputs: { content: rawContent, schema },
32
+ config: {
33
+ model: "gpt-5.1",
34
+ instructions: systemPrompt,
35
+ schemaName: `${category}_extraction`,
36
+ },
37
+ context: { credentials: { openAICredential: { apiKey: openAIApiKey } } },
38
+ }),
39
+ });
40
+ if (!extractRes.ok) {
41
+ const err = await extractRes.text();
42
+ throw new Error(`SpatialIngest: extraction failed (${extractRes.status}): ${err}`);
43
+ }
44
+ const extractData = (await extractRes.json());
45
+ const objects = extractData.result?.objects || [];
46
+ if (!objects.length) {
47
+ return { success: false, entries: [] };
48
+ }
49
+ // Step 2: Embeddings — call OpenAI directly (batch input)
50
+ const embeddingTexts = objects.map(buildEmbeddingText);
51
+ const embedRes = await fetch("https://api.openai.com/v1/embeddings", {
52
+ method: "POST",
53
+ headers: {
54
+ Authorization: `Bearer ${openAIApiKey}`,
55
+ "Content-Type": "application/json",
56
+ },
57
+ body: JSON.stringify({
58
+ model: "text-embedding-3-large",
59
+ dimensions: 1536,
60
+ input: embeddingTexts,
61
+ }),
62
+ });
63
+ if (!embedRes.ok) {
64
+ const err = await embedRes.text();
65
+ throw new Error(`SpatialIngest: embedding failed (${embedRes.status}): ${err}`);
66
+ }
67
+ const embedData = (await embedRes.json());
68
+ const embeddings = (embedData.data || []).map((d) => d.embedding);
69
+ // Step 3: Build entries
70
+ const entries = objects.map((obj, i) => ({
71
+ universal_id: generateUniversalId(workflowId, obj.title, obj.description),
72
+ content_hash: generateContentHash(obj),
73
+ title: obj.title || "",
74
+ description: obj.description || "",
75
+ object_type: category,
76
+ key_need: obj.keyNeed || "",
77
+ needs: obj.needs || [],
78
+ source_url: sourceUrl || "",
79
+ embedding_original: embeddings[i] || [],
80
+ needs_umap_update: true,
81
+ workflow_id: workflowId,
82
+ metadata: {
83
+ callToAction: obj.callToAction,
84
+ action: obj.action,
85
+ questions: obj.questions,
86
+ llmObjectType: obj.objectType,
87
+ },
88
+ }));
89
+ // Step 4: Upload entries to dictionary_need_states via workflow service
90
+ const uploadRes = await fetch(`${WORKFLOW_SERVICE_URL}/dictionary/upload`, {
91
+ method: "POST",
92
+ headers: { "Content-Type": "application/json" },
93
+ body: JSON.stringify({ entries, upsert: true }),
94
+ });
95
+ if (!uploadRes.ok) {
96
+ const err = await uploadRes.text();
97
+ throw new Error(`SpatialIngest: upload failed (${uploadRes.status}): ${err}`);
98
+ }
99
+ // Strip embeddings from returned entries to keep the node output small
100
+ const entriesForOutput = entries.map(({ embedding_original, ...rest }) => rest);
101
+ return { success: true, entries: entriesForOutput };
102
+ }
103
+ // ---------------------------------------------------------------------------
104
+ // PROMPTS — COPIED FROM apps/server/src/services/contentEngine/extraction/prompts.ts
105
+ // TODO: move to shared package
106
+ // ---------------------------------------------------------------------------
107
+ function getCategoryDescription(category) {
108
+ const map = {
109
+ SERVICE: "services, treatments, programs, or offerings",
110
+ NEED: "user needs, pain points, desires, or intentions",
111
+ IMAGE: "visual content and imagery",
112
+ DOCUMENT: "articles, guides, or documentation",
113
+ MCP: "actions or tools that help users accomplish tasks",
114
+ SKILL: "agent capabilities, instructions, or guidance for handling specific situations",
115
+ };
116
+ return map[category.toUpperCase()] || "items";
117
+ }
118
+ function getExtractionPrompt(category, domainPrompt) {
119
+ const categoryDesc = getCategoryDescription(category);
120
+ const MAX_DOMAIN_LENGTH = 500;
121
+ const rawDomain = domainPrompt || "";
122
+ const contextBlock = rawDomain.length > MAX_DOMAIN_LENGTH ? rawDomain.slice(0, MAX_DOMAIN_LENGTH).trimEnd() + "…" : rawDomain;
123
+ return `${contextBlock}
124
+
125
+ Your task:
126
+ 1. Identify all ${categoryDesc} mentioned in the content
127
+ 2. Extract relevant information for each one
128
+ 3. Structure the data according to the provided JSON schema
129
+
130
+ GROUNDING - CRITICAL:
131
+ - ONLY use information explicitly present in the provided content
132
+ - DO NOT add facts, features, or details not mentioned in the source
133
+ - If information is missing, leave it out - do not invent or assume
134
+ - Every claim must be traceable to the provided content
135
+
136
+ Guidelines:
137
+ - Be accurate and comprehensive
138
+ - Use clear, natural language
139
+ - Focus on user benefits and outcomes
140
+ - CRITICAL: Extract MULTIPLE objects - create a separate object for each distinct ${categoryDesc} found
141
+ - CRITICAL: DO NOT create just one object per page - if a page mentions 5 different services, create 5 objects
142
+ - CRITICAL: Each object should represent ONE specific ${categoryDesc}, not a collection
143
+ - Write rich, detailed descriptions (150-500 characters minimum) that provide real value
144
+ - CRITICAL: Descriptions must be at least 150 characters - provide specific details, not generic statements
145
+ - CRITICAL: Do NOT start descriptions with self-referential phrases like "This need...", "This service...", "This item...". Write directly about the topic.
146
+ - CRITICAL: Provide exactly 5-7 user needs per item (aim for 6)
147
+ - CRITICAL: Generate exactly 4 questions per item
148
+
149
+ CRITICAL for Titles:
150
+ - DO NOT include the company/brand name in titles
151
+ - Titles should describe the service/need/content itself
152
+ - Good: "Performance Enhancement and Injury Prevention"
153
+ - Bad: "Company Name - Performance Enhancement and Injury Prevention"
154
+ - Keep titles concise and descriptive
155
+
156
+ CRITICAL for 3D Space Organization:
157
+ - ALWAYS identify the PRIMARY USER NEED (keyNeed) - this anchors the item in 3D space
158
+ - List ALL related user needs - these create semantic connections
159
+ - Think: "What problem does this solve?" and "Who needs this?"
160
+
161
+ CRITICAL for Questions:
162
+ - Generate exactly 4 questions that this content directly answers
163
+ - ONLY create questions based on information explicitly present in the content
164
+ - Questions should help users understand what's actually covered in the content
165
+
166
+ ${getCategorySpecificPrompt(category, domainPrompt)}`;
167
+ }
168
+ function getCategorySpecificPrompt(category, domain) {
169
+ switch (category.toUpperCase()) {
170
+ case "SERVICE":
171
+ return `Focus on service details: process, duration, benefits, who it's for, pricing indicators, booking information, and unique features.
172
+
173
+ CRITICAL - Write from the USER's perspective (not the organization's):
174
+ - Title: What the USER gets or achieves (e.g., "Learn Unity Game Development", not "Unity Game Development Course")
175
+ - Description: What problem this solves for the user, who benefits, and what outcome they can expect
176
+ - keyNeed: The primary USER goal this service addresses (e.g., "Develop game development skills")
177
+ - needs: Related USER goals and pain points (5-7 items)
178
+ - Think: "What is the user trying to accomplish?" and "Why would someone seek this out?"
179
+
180
+ CRITICAL - EXTRACT MULTIPLE OBJECTS:
181
+ - Each service may address MULTIPLE distinct user needs — extract them as separate objects
182
+ - MINIMUM 3 objects per item, TARGET 5-8`;
183
+ case "NEED":
184
+ return `Focus on user pain points, desires, goals, and problems they're trying to solve. Capture emotional context and urgency levels.
185
+
186
+ 🚨 CRITICAL - GROUNDING 🚨
187
+ - ONLY extract needs from the PROVIDED CONTENT
188
+ - DO NOT invent needs based on the system prompt or your general knowledge
189
+ - Every need you return must be traceable to a specific statement in the provided content
190
+
191
+ 🚨 CRITICAL - YOU MUST EXTRACT MULTIPLE NEEDS PER PAGE 🚨
192
+ - MINIMUM 3 need objects per page, TARGET 5-8 need objects
193
+ - Each page discusses MULTIPLE different user needs - extract ALL of them
194
+ - Create a SEPARATE object for EACH distinct need mentioned
195
+ - DO NOT create just 1 object that combines everything`;
196
+ case "IMAGE":
197
+ return `Write about the SERVICE or NEED the image represents - not about the image itself.
198
+ CRITICAL: Identify the PRIMARY USER NEED (keyNeed) and ALL related needs.
199
+ Write as website service copy that will cluster with related text-based content in 3D space.`;
200
+ case "DOCUMENT":
201
+ return `Extract the user needs and problems this document helps address.
202
+
203
+ CRITICAL - Write from the USER's perspective:
204
+ - Title: What the USER learns or achieves from this document (not the document's title)
205
+ - Description: What problem this solves for the user and what they gain from reading it
206
+ - keyNeed: The primary USER goal this document addresses
207
+ - needs: Related USER goals and pain points (5-7 items)
208
+
209
+ CRITICAL - EXTRACT MULTIPLE OBJECTS:
210
+ - A document may address MULTIPLE distinct user needs — extract them as separate objects
211
+ - MINIMUM 3 objects per document, TARGET 5-8`;
212
+ case "MCP":
213
+ return `Focus on user goals, desires, and problems they're trying to solve with this action/tool.
214
+
215
+ CRITICAL - Write from the USER's perspective:
216
+ - Title: What the USER wants to do (e.g., "Find the Right Credit Card")
217
+ - Description: What problem this solves and who benefits
218
+ - keyNeed: The primary user goal this addresses
219
+ - needs: Related user goals and pain points (5-7 items)`;
220
+ case "SKILL":
221
+ return `Focus on the CUSTOMER'S pain points, desires, and problems this skill helps address.
222
+ Write from the END CUSTOMER's perspective - what do THEY need when this skill is used?
223
+
224
+ CRITICAL - Write from the CUSTOMER's perspective (not the agent's):
225
+ - Title: What situation the customer is in (e.g., "Get Help With a Complaint")
226
+ - Description: What the customer is experiencing, their frustration, and what outcome they want
227
+ - keyNeed: The primary CUSTOMER goal
228
+ - needs: Related CUSTOMER goals and pain points (5-7 items)`;
229
+ default:
230
+ return `Extract all relevant information and create specific, descriptive object types.
231
+ CRITICAL - Write from the USER's perspective. keyNeed and needs[] MUST reflect user intent.
232
+ MINIMUM 3 objects per item, TARGET 5-8.`;
233
+ }
234
+ }
235
+ // ---------------------------------------------------------------------------
236
+ // SCHEMAS — COPIED FROM apps/server/src/services/contentEngine/extraction/schemas.ts
237
+ // TODO: move to shared package
238
+ // ---------------------------------------------------------------------------
239
+ const BASE_ITEM_SCHEMA = {
240
+ type: "object",
241
+ properties: {
242
+ objectType: { type: "string" },
243
+ title: { type: "string", description: "Short, clear title for the item" },
244
+ description: {
245
+ type: "string",
246
+ description: "Detailed 3-4 sentence description that provides real value: what it is, who specifically benefits, concrete outcomes/results, and what makes it unique or effective.",
247
+ },
248
+ keyNeed: { type: "string", description: "Primary user need this addresses" },
249
+ callToAction: { type: "string", description: "Action-oriented CTA" },
250
+ action: { type: "string", description: "Short button label (1-3 words)" },
251
+ needs: {
252
+ type: "array",
253
+ description: "List of user needs/intents addressed (5-7 items)",
254
+ minItems: 5,
255
+ maxItems: 7,
256
+ items: { type: "string" },
257
+ },
258
+ questions: {
259
+ type: "array",
260
+ description: "Self-contained questions this content answers (exactly 4)",
261
+ minItems: 4,
262
+ maxItems: 4,
263
+ items: { type: "string" },
264
+ },
265
+ },
266
+ required: ["objectType", "title", "description", "keyNeed", "needs", "callToAction", "action", "questions"],
267
+ additionalProperties: false,
268
+ };
269
+ function getExtractionSchema(category) {
270
+ return {
271
+ type: "object",
272
+ properties: {
273
+ objects: {
274
+ type: "array",
275
+ description: "Array of extracted objects. Extract MULTIPLE objects — minimum 3, target 5-8 per content block.",
276
+ items: BASE_ITEM_SCHEMA,
277
+ },
278
+ },
279
+ required: ["objects"],
280
+ additionalProperties: false,
281
+ };
282
+ }
283
+ // ---------------------------------------------------------------------------
284
+ // Helpers
285
+ // ---------------------------------------------------------------------------
286
+ function buildEmbeddingText(obj) {
287
+ return [
288
+ obj.objectType && obj.title ? `${obj.objectType}: ${obj.title}` : "",
289
+ obj.description || "",
290
+ obj.keyNeed ? `Primary User Need: ${obj.keyNeed}` : "",
291
+ obj.needs?.length ? `This helps with: ${obj.needs.join(", ")}` : "",
292
+ obj.questions?.length ? `Questions:\n${obj.questions.map((q) => `- ${q}`).join("\n")}` : "",
293
+ obj.callToAction || "",
294
+ ]
295
+ .filter(Boolean)
296
+ .join("\n\n");
297
+ }
298
+ function generateUniversalId(workflowId, title, description) {
299
+ const hash = (0, crypto_1.createHash)("sha256").update(`${workflowId}:${title}:${description}`).digest("hex");
300
+ return `${hash.slice(0, 8)}-${hash.slice(8, 12)}-${hash.slice(12, 16)}-${hash.slice(16, 20)}-${hash.slice(20, 32)}`;
301
+ }
302
+ function generateContentHash(obj) {
303
+ const content = [obj.title || "", obj.description || "", obj.keyNeed || "", (obj.needs || []).sort().join("|")].join(":");
304
+ return (0, crypto_1.createHash)("sha256").update(content).digest("hex");
305
+ }
306
+ //# sourceMappingURL=spatialIngestService.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spatialIngestService.js","sourceRoot":"","sources":["../../../src/SpatialIngest/service/spatialIngestService.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;AAsBH,4DA+FC;AAnHD,mCAAoC;AAGpC,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,uBAAuB,CAAC;AACjF,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC,oBAAoB,IAAI,uBAAuB,CAAC;AAgBlF,KAAK,UAAU,wBAAwB,CAAC,KAAuB;IACpE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE1F,yBAAyB;IACzB,MAAM,MAAM,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;IAC7C,MAAM,YAAY,GAAG,mBAAmB,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAEjE,M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EAAE,EAAE,EAAE,CAAC,EAAE,CAAC;AACtH,CAAC;AAED,SAAS,mBAAmB,CAAC,GAAQ;IACnC,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,EAAE,GAAG,CAAC,WAAW,IAAI,EAAE,EAAE,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1H,OAAO,IAAA,mBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC"}
@@ -0,0 +1,26 @@
1
+ export interface SpatialIngestConfig {
2
+ rawContent: string;
3
+ category: "need" | "service" | "image" | "document" | "mcp" | "skill";
4
+ sourceUrl?: string;
5
+ domainPrompt?: string;
6
+ }
7
+ export interface SpatialIngestOutput {
8
+ success: boolean;
9
+ count: number;
10
+ universalIds: string[];
11
+ }
12
+ export interface SpatialEntry {
13
+ universal_id: string;
14
+ content_hash: string;
15
+ title: string;
16
+ description: string;
17
+ object_type: string;
18
+ key_need: string;
19
+ needs: string[];
20
+ source_url: string;
21
+ embedding_original: number[];
22
+ needs_umap_update: boolean;
23
+ workflow_id: string;
24
+ metadata: Record<string, any>;
25
+ }
26
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/SpatialIngest/util/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,OAAO,CAAC;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/SpatialIngest/util/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Credential definitions for ingest package
3
+ * Following the package specification pattern
4
+ */
5
+ export declare const SearchAPICredential: {
6
+ name: string;
7
+ displayName: string;
8
+ description: string;
9
+ properties: {
10
+ name: string;
11
+ displayName: string;
12
+ type: "string";
13
+ required: boolean;
14
+ secret: boolean;
15
+ description: string;
16
+ placeholder: string;
17
+ }[];
18
+ };
19
+ export declare const ApifyCredential: {
20
+ name: string;
21
+ displayName: string;
22
+ description: string;
23
+ properties: {
24
+ name: string;
25
+ displayName: string;
26
+ type: "string";
27
+ required: boolean;
28
+ secret: boolean;
29
+ description: string;
30
+ placeholder: string;
31
+ }[];
32
+ };
33
+ export declare const HyperbrowserCredential: {
34
+ name: string;
35
+ displayName: string;
36
+ description: string;
37
+ properties: {
38
+ name: string;
39
+ displayName: string;
40
+ type: "string";
41
+ required: boolean;
42
+ secret: boolean;
43
+ description: string;
44
+ placeholder: string;
45
+ }[];
46
+ };
47
+ export declare const GoogleAPICredential: {
48
+ name: string;
49
+ displayName: string;
50
+ description: string;
51
+ properties: {
52
+ name: string;
53
+ displayName: string;
54
+ type: "string";
55
+ required: boolean;
56
+ secret: boolean;
57
+ description: string;
58
+ placeholder: string;
59
+ }[];
60
+ };
61
+ export declare const PlaidCredential: {
62
+ name: string;
63
+ displayName: string;
64
+ description: string;
65
+ properties: ({
66
+ name: string;
67
+ displayName: string;
68
+ type: "string";
69
+ required: boolean;
70
+ secret: boolean;
71
+ description: string;
72
+ placeholder: string;
73
+ default?: undefined;
74
+ } | {
75
+ name: string;
76
+ displayName: string;
77
+ type: "string";
78
+ required: boolean;
79
+ secret: boolean;
80
+ description: string;
81
+ placeholder: string;
82
+ default: string;
83
+ })[];
84
+ };
85
+ export declare const AbyssaleCredential: {
86
+ name: string;
87
+ displayName: string;
88
+ description: string;
89
+ properties: {
90
+ name: string;
91
+ displayName: string;
92
+ type: "string";
93
+ required: boolean;
94
+ secret: boolean;
95
+ description: string;
96
+ placeholder: string;
97
+ }[];
98
+ };
99
+ export declare const AirtableCredential: {
100
+ name: string;
101
+ displayName: string;
102
+ description: string;
103
+ properties: {
104
+ name: string;
105
+ displayName: string;
106
+ type: "string";
107
+ required: boolean;
108
+ secret: boolean;
109
+ description: string;
110
+ placeholder: string;
111
+ }[];
112
+ };
113
+ export declare const ApolloCredential: {
114
+ name: string;
115
+ displayName: string;
116
+ description: string;
117
+ properties: {
118
+ name: string;
119
+ displayName: string;
120
+ type: "string";
121
+ required: boolean;
122
+ secret: boolean;
123
+ description: string;
124
+ placeholder: string;
125
+ }[];
126
+ };
127
+ export declare const ElevenLabsCredential: {
128
+ name: string;
129
+ displayName: string;
130
+ description: string;
131
+ properties: {
132
+ name: string;
133
+ displayName: string;
134
+ type: "string";
135
+ required: boolean;
136
+ secret: boolean;
137
+ description: string;
138
+ placeholder: string;
139
+ }[];
140
+ };
141
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/credentials/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;CAe/B,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAe3B,CAAC;AAGF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;CAelC,CAAC;AAGF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;CAe/B,CAAC;AAGF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;CAkC3B,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAe9B,CAAC;AAGF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;CAe9B,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAe5B,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAehC,CAAC"}