@jini-ai/provider-plugins 0.6.15-rc.2 → 0.6.19

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 (242) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/NOTICE +28 -0
  3. package/README.md +23 -8
  4. package/catalog.json +22 -12
  5. package/package.json +64 -15
  6. package/plugins/ai-trace-langfuse/0.6.19/CHANGELOG.md +7 -0
  7. package/plugins/ai-trace-langfuse/0.6.19/NOTICE +6 -0
  8. package/plugins/ai-trace-langfuse/0.6.19/README.md +13 -0
  9. package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +7 -2
  10. package/plugins/ai-trace-langfuse/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  11. package/plugins/{analytics-posthog/0.6.15-rc.2 → ai-trace-langfuse/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  12. package/plugins/analytics-posthog/0.6.19/CHANGELOG.md +6 -0
  13. package/plugins/analytics-posthog/0.6.19/NOTICE +11 -0
  14. package/plugins/analytics-posthog/0.6.19/README.md +25 -0
  15. package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +14 -8
  16. package/plugins/analytics-posthog/0.6.19/licenses/_jini-ai_cookie-consent/LICENSE-SOURCE +1 -0
  17. package/plugins/analytics-posthog/0.6.19/licenses/_jini-ai_cookie-consent/NOTICE +28 -0
  18. package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_cookie-consent/package-license.json +1 -1
  19. package/plugins/{observability-opentelemetry/0.6.15-rc.2 → analytics-posthog/0.6.19}/licenses/_jini-ai_core/package-license.json +1 -1
  20. package/plugins/{observability-sentry/0.6.15-rc.2 → analytics-posthog/0.6.19}/licenses/_jini-ai_diagnostics/package-license.json +1 -1
  21. package/plugins/analytics-posthog/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  22. package/plugins/{fixture-provider/0.6.15-rc.2 → analytics-posthog/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  23. package/plugins/analytics-posthog/0.6.19/server/consent-adapter.mjs +1 -0
  24. package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +11 -7
  25. package/plugins/charts-echarts/0.6.19/client/provider.js +41 -0
  26. package/plugins/charts-echarts/0.6.19/client/styles.css +1 -0
  27. package/plugins/charts-echarts/0.6.19/jini.plugin.json +55 -0
  28. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  29. package/plugins/{ai-trace-langfuse/0.6.15-rc.2 → charts-echarts/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  30. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_ui/LICENSE-SOURCE +1 -0
  31. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_ui/NOTICE +28 -0
  32. package/plugins/charts-echarts/0.6.19/licenses/_jini-ai_ui/package-license.json +5 -0
  33. package/plugins/charts-echarts/0.6.19/licenses/echarts/LICENSE +222 -0
  34. package/plugins/charts-echarts/0.6.19/licenses/echarts/NOTICE +5 -0
  35. package/plugins/charts-echarts/0.6.19/licenses/echarts/package-license.json +5 -0
  36. package/plugins/charts-echarts/0.6.19/licenses/tslib/LICENSE.txt +12 -0
  37. package/plugins/charts-echarts/0.6.19/licenses/tslib/package-license.json +5 -0
  38. package/plugins/charts-echarts/0.6.19/licenses/zod/LICENSE +21 -0
  39. package/plugins/charts-echarts/0.6.19/licenses/zod/package-license.json +5 -0
  40. package/plugins/charts-echarts/0.6.19/licenses/zrender/LICENSE +29 -0
  41. package/plugins/charts-echarts/0.6.19/licenses/zrender/package-license.json +5 -0
  42. package/plugins/charts-echarts/0.6.19/server/index.mjs +8 -0
  43. package/plugins/charts-recharts/0.6.19/client/provider.js +134 -0
  44. package/plugins/charts-recharts/0.6.19/client/styles.css +1 -0
  45. package/plugins/charts-recharts/0.6.19/jini.plugin.json +100 -0
  46. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  47. package/plugins/{observability-opentelemetry/0.6.15-rc.2 → charts-recharts/0.6.19}/licenses/_jini-ai_provider-plugins/package-license.json +1 -1
  48. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_ui/LICENSE-SOURCE +1 -0
  49. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_ui/NOTICE +28 -0
  50. package/plugins/charts-recharts/0.6.19/licenses/_jini-ai_ui/package-license.json +5 -0
  51. package/plugins/charts-recharts/0.6.19/licenses/_reduxjs_toolkit/LICENSE +21 -0
  52. package/plugins/charts-recharts/0.6.19/licenses/_reduxjs_toolkit/package-license.json +5 -0
  53. package/plugins/charts-recharts/0.6.19/licenses/clsx/license +9 -0
  54. package/plugins/charts-recharts/0.6.19/licenses/clsx/package-license.json +5 -0
  55. package/plugins/charts-recharts/0.6.19/licenses/d3-array/LICENSE +13 -0
  56. package/plugins/charts-recharts/0.6.19/licenses/d3-array/package-license.json +5 -0
  57. package/plugins/charts-recharts/0.6.19/licenses/d3-color/LICENSE +13 -0
  58. package/plugins/charts-recharts/0.6.19/licenses/d3-color/package-license.json +5 -0
  59. package/plugins/charts-recharts/0.6.19/licenses/d3-format/LICENSE +13 -0
  60. package/plugins/charts-recharts/0.6.19/licenses/d3-format/package-license.json +5 -0
  61. package/plugins/charts-recharts/0.6.19/licenses/d3-interpolate/LICENSE +13 -0
  62. package/plugins/charts-recharts/0.6.19/licenses/d3-interpolate/package-license.json +5 -0
  63. package/plugins/charts-recharts/0.6.19/licenses/d3-path/LICENSE +13 -0
  64. package/plugins/charts-recharts/0.6.19/licenses/d3-path/package-license.json +5 -0
  65. package/plugins/charts-recharts/0.6.19/licenses/d3-scale/LICENSE +13 -0
  66. package/plugins/charts-recharts/0.6.19/licenses/d3-scale/package-license.json +5 -0
  67. package/plugins/charts-recharts/0.6.19/licenses/d3-shape/LICENSE +13 -0
  68. package/plugins/charts-recharts/0.6.19/licenses/d3-shape/package-license.json +5 -0
  69. package/plugins/charts-recharts/0.6.19/licenses/d3-time/LICENSE +13 -0
  70. package/plugins/charts-recharts/0.6.19/licenses/d3-time/package-license.json +5 -0
  71. package/plugins/charts-recharts/0.6.19/licenses/d3-time-format/LICENSE +13 -0
  72. package/plugins/charts-recharts/0.6.19/licenses/d3-time-format/package-license.json +5 -0
  73. package/plugins/charts-recharts/0.6.19/licenses/decimal.js-light/LICENCE.md +23 -0
  74. package/plugins/charts-recharts/0.6.19/licenses/decimal.js-light/package-license.json +5 -0
  75. package/plugins/charts-recharts/0.6.19/licenses/es-toolkit/LICENSE +21 -0
  76. package/plugins/charts-recharts/0.6.19/licenses/es-toolkit/package-license.json +5 -0
  77. package/plugins/charts-recharts/0.6.19/licenses/eventemitter3/LICENSE +21 -0
  78. package/plugins/charts-recharts/0.6.19/licenses/eventemitter3/package-license.json +5 -0
  79. package/plugins/charts-recharts/0.6.19/licenses/immer/LICENSE +21 -0
  80. package/plugins/charts-recharts/0.6.19/licenses/immer/package-license.json +5 -0
  81. package/plugins/charts-recharts/0.6.19/licenses/internmap/LICENSE +13 -0
  82. package/plugins/charts-recharts/0.6.19/licenses/internmap/package-license.json +5 -0
  83. package/plugins/charts-recharts/0.6.19/licenses/react/LICENSE +21 -0
  84. package/plugins/charts-recharts/0.6.19/licenses/react/package-license.json +5 -0
  85. package/plugins/charts-recharts/0.6.19/licenses/react-dom/LICENSE +21 -0
  86. package/plugins/charts-recharts/0.6.19/licenses/react-dom/package-license.json +5 -0
  87. package/plugins/charts-recharts/0.6.19/licenses/react-is/LICENSE +21 -0
  88. package/plugins/charts-recharts/0.6.19/licenses/react-is/package-license.json +5 -0
  89. package/plugins/charts-recharts/0.6.19/licenses/react-redux/LICENSE.md +21 -0
  90. package/plugins/charts-recharts/0.6.19/licenses/react-redux/package-license.json +5 -0
  91. package/plugins/charts-recharts/0.6.19/licenses/recharts/LICENSE +22 -0
  92. package/plugins/charts-recharts/0.6.19/licenses/recharts/package-license.json +5 -0
  93. package/plugins/charts-recharts/0.6.19/licenses/redux/LICENSE.md +21 -0
  94. package/plugins/charts-recharts/0.6.19/licenses/redux/package-license.json +5 -0
  95. package/plugins/charts-recharts/0.6.19/licenses/redux-thunk/LICENSE.md +21 -0
  96. package/plugins/charts-recharts/0.6.19/licenses/redux-thunk/package-license.json +5 -0
  97. package/plugins/charts-recharts/0.6.19/licenses/reselect/LICENSE +21 -0
  98. package/plugins/charts-recharts/0.6.19/licenses/reselect/package-license.json +5 -0
  99. package/plugins/charts-recharts/0.6.19/licenses/scheduler/LICENSE +21 -0
  100. package/plugins/charts-recharts/0.6.19/licenses/scheduler/package-license.json +5 -0
  101. package/plugins/charts-recharts/0.6.19/licenses/tiny-invariant/LICENSE +21 -0
  102. package/plugins/charts-recharts/0.6.19/licenses/tiny-invariant/package-license.json +5 -0
  103. package/plugins/charts-recharts/0.6.19/licenses/use-sync-external-store/LICENSE +21 -0
  104. package/plugins/charts-recharts/0.6.19/licenses/use-sync-external-store/package-license.json +5 -0
  105. package/plugins/charts-recharts/0.6.19/licenses/victory-vendor/LICENSE.txt +150 -0
  106. package/plugins/charts-recharts/0.6.19/licenses/victory-vendor/package-license.json +5 -0
  107. package/plugins/charts-recharts/0.6.19/licenses/zod/LICENSE +21 -0
  108. package/plugins/charts-recharts/0.6.19/licenses/zod/package-license.json +5 -0
  109. package/plugins/charts-recharts/0.6.19/server/index.mjs +8 -0
  110. package/plugins/fixture-provider/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +3 -2
  111. package/plugins/fixture-provider/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  112. package/plugins/fixture-provider/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  113. package/plugins/observability-opentelemetry/0.6.19/CHANGELOG.md +19 -0
  114. package/plugins/observability-opentelemetry/0.6.19/NOTICE +11 -0
  115. package/plugins/observability-opentelemetry/0.6.19/README.md +32 -0
  116. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +12 -9
  117. package/plugins/{analytics-posthog/0.6.15-rc.2 → observability-opentelemetry/0.6.19}/licenses/_jini-ai_core/package-license.json +1 -1
  118. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_diagnostics/package-license.json +1 -1
  119. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_plugins/LICENSE +201 -0
  120. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_plugins/LICENSE-SOURCE +1 -0
  121. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_plugins/package-license.json +1 -1
  122. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
  123. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  124. package/plugins/observability-opentelemetry/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  125. package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +151 -46
  126. package/plugins/observability-sentry/0.6.19/CHANGELOG.md +19 -0
  127. package/plugins/observability-sentry/0.6.19/LICENSE +201 -0
  128. package/plugins/observability-sentry/0.6.19/NOTICE +11 -0
  129. package/plugins/observability-sentry/0.6.19/README.md +32 -0
  130. package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/jini.plugin.json +10 -5
  131. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_core/LICENSE +201 -0
  132. package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_jini-ai_core/package-license.json +1 -1
  133. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_diagnostics/LICENSE +201 -0
  134. package/plugins/{analytics-posthog/0.6.15-rc.2 → observability-sentry/0.6.19}/licenses/_jini-ai_diagnostics/package-license.json +1 -1
  135. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
  136. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  137. package/plugins/observability-sentry/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  138. package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +111 -40
  139. package/plugins/payments-stripe/0.6.19/CHANGELOG.md +7 -0
  140. package/plugins/payments-stripe/0.6.19/LICENSE +201 -0
  141. package/plugins/payments-stripe/0.6.19/NOTICE +28 -0
  142. package/plugins/payments-stripe/0.6.19/README.md +36 -0
  143. package/plugins/payments-stripe/0.6.19/jini.plugin.json +72 -0
  144. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_commerce/LICENSE +201 -0
  145. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_commerce/NOTICE +28 -0
  146. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_commerce/package-license.json +5 -0
  147. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_core/LICENSE +201 -0
  148. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_core/package-license.json +5 -0
  149. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_provider-plugins/LICENSE +201 -0
  150. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_provider-plugins/NOTICE +28 -0
  151. package/plugins/payments-stripe/0.6.19/licenses/_jini-ai_provider-plugins/package-license.json +5 -0
  152. package/plugins/payments-stripe/0.6.19/server/index.mjs +311 -0
  153. package/plugins/analytics-posthog/0.6.15-rc.2/licenses/_jini-ai_cookie-consent/LICENSE-SOURCE +0 -1
  154. package/plugins/analytics-posthog/0.6.15-rc.2/server/consent-adapter.mjs +0 -1
  155. package/plugins/observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_analytics/package-license.json +0 -5
  156. package/plugins/observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_plugins/LICENSE-SOURCE +0 -1
  157. package/plugins/observability-sentry/0.6.15-rc.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
  158. package/plugins/payments-stripe/0.6.15-rc.2/jini.plugin.json +0 -35
  159. package/plugins/payments-stripe/0.6.15-rc.2/licenses/_jini-ai_provider-plugins/package-license.json +0 -5
  160. package/plugins/payments-stripe/0.6.15-rc.2/server/index.mjs +0 -153
  161. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2/licenses/_jini-ai_provider-plugins → 0.6.19}/LICENSE +0 -0
  162. /package/plugins/{analytics-posthog/0.6.15-rc.2/licenses/_jini-ai_cookie-consent → ai-trace-langfuse/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  163. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/LICENSE +0 -0
  164. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/LICENSE-SOURCE +0 -0
  165. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/SOURCE +0 -0
  166. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse/package-license.json +0 -0
  167. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/LICENSE +0 -0
  168. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/LICENSE-SOURCE +0 -0
  169. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/SOURCE +0 -0
  170. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/langfuse-core/package-license.json +0 -0
  171. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/mustache/LICENSE +0 -0
  172. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/licenses/mustache/package-license.json +0 -0
  173. /package/plugins/ai-trace-langfuse/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +0 -0
  174. /package/plugins/analytics-posthog/{0.6.15-rc.2/licenses/_jini-ai_core → 0.6.19}/LICENSE +0 -0
  175. /package/plugins/analytics-posthog/{0.6.15-rc.2/licenses/_jini-ai_diagnostics → 0.6.19/licenses/_jini-ai_cookie-consent}/LICENSE +0 -0
  176. /package/plugins/analytics-posthog/{0.6.15-rc.2/licenses/_jini-ai_provider-plugins → 0.6.19/licenses/_jini-ai_core}/LICENSE +0 -0
  177. /package/plugins/{fixture-provider/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → analytics-posthog/0.6.19/licenses/_jini-ai_diagnostics}/LICENSE +0 -0
  178. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_analytics → analytics-posthog/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  179. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/_posthog_core/LICENSE +0 -0
  180. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/_posthog_core/package-license.json +0 -0
  181. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/LICENSE +0 -0
  182. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/package-license.json +0 -0
  183. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-js/LICENSE +0 -0
  184. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-js/package-license.json +0 -0
  185. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-node/LICENSE +0 -0
  186. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/licenses/posthog-node/package-license.json +0 -0
  187. /package/plugins/analytics-posthog/{0.6.15-rc.2 → 0.6.19}/server/posthog-browser.js +0 -0
  188. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_core → charts-echarts/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  189. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_diagnostics → charts-echarts/0.6.19/licenses/_jini-ai_ui}/LICENSE +0 -0
  190. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_plugins → charts-recharts/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  191. /package/plugins/{observability-opentelemetry/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → charts-recharts/0.6.19/licenses/_jini-ai_ui}/LICENSE +0 -0
  192. /package/plugins/{observability-sentry/0.6.15-rc.2/licenses/_jini-ai_core → fixture-provider/0.6.19/licenses/_jini-ai_provider-plugins}/LICENSE +0 -0
  193. /package/plugins/fixture-provider/{0.6.15-rc.2 → 0.6.19}/server/index.mjs +0 -0
  194. /package/plugins/{observability-sentry/0.6.15-rc.2/licenses/_jini-ai_diagnostics → observability-opentelemetry/0.6.19}/LICENSE +0 -0
  195. /package/plugins/{observability-sentry/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → observability-opentelemetry/0.6.19/licenses/_jini-ai_core}/LICENSE +0 -0
  196. /package/plugins/{payments-stripe/0.6.15-rc.2/licenses/_jini-ai_provider-plugins → observability-opentelemetry/0.6.19/licenses/_jini-ai_diagnostics}/LICENSE +0 -0
  197. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/LICENSE +0 -0
  198. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/package-license.json +0 -0
  199. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api-logs/LICENSE +0 -0
  200. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api-logs/package-license.json +0 -0
  201. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_context-async-hooks/LICENSE +0 -0
  202. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_context-async-hooks/package-license.json +0 -0
  203. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_core/LICENSE +0 -0
  204. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_core/package-license.json +0 -0
  205. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-exporter-base/LICENSE +0 -0
  206. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-exporter-base/package-license.json +0 -0
  207. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-transformer/LICENSE +0 -0
  208. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_otlp-transformer/package-license.json +0 -0
  209. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_resources/LICENSE +0 -0
  210. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_resources/package-license.json +0 -0
  211. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-metrics/LICENSE +0 -0
  212. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-metrics/package-license.json +0 -0
  213. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace/LICENSE +0 -0
  214. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace/package-license.json +0 -0
  215. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-base/LICENSE +0 -0
  216. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-base/package-license.json +0 -0
  217. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-node/LICENSE +0 -0
  218. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_sdk-trace-node/package-license.json +0 -0
  219. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_semantic-conventions/LICENSE +0 -0
  220. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_semantic-conventions/package-license.json +0 -0
  221. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/LICENSE +0 -0
  222. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/package-license.json +0 -0
  223. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/semver/LICENSE +0 -0
  224. /package/plugins/observability-opentelemetry/{0.6.15-rc.2 → 0.6.19}/licenses/semver/package-license.json +0 -0
  225. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/LICENSE +0 -0
  226. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_opentelemetry_api/package-license.json +0 -0
  227. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_conventions/LICENSE +0 -0
  228. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_conventions/package-license.json +0 -0
  229. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_core/LICENSE +0 -0
  230. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_core/package-license.json +0 -0
  231. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_node/LICENSE +0 -0
  232. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_node/package-license.json +0 -0
  233. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_opentelemetry/LICENSE +0 -0
  234. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_opentelemetry/package-license.json +0 -0
  235. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-runtime-injection/LICENSE +0 -0
  236. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-runtime-injection/LICENSE-SOURCE +0 -0
  237. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-runtime-injection/package-license.json +0 -0
  238. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-utils/LICENSE +0 -0
  239. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-utils/LICENSE-SOURCE +0 -0
  240. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/_sentry_server-utils/package-license.json +0 -0
  241. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/LICENSE +0 -0
  242. /package/plugins/observability-sentry/{0.6.15-rc.2 → 0.6.19}/licenses/js-tokens/package-license.json +0 -0
@@ -0,0 +1,311 @@
1
+ import { createRequire as __jiniCreateRequire } from "node:module"; const require = __jiniCreateRequire(import.meta.url);
2
+
3
+ // ../commerce/dist/money/money.js
4
+ var CURRENCY = /^[A-Z]{3}$/;
5
+ function moneyProblem({ money }, optional = {}) {
6
+ if (!CURRENCY.test(money.currency))
7
+ return `currency must be an uppercase ISO-4217 alpha-3 code, got '${money.currency}'`;
8
+ if (!Number.isSafeInteger(money.minorUnits))
9
+ return "minorUnits must be a safe integer number of minor units";
10
+ const min = optional.allowZero === true ? 0 : 1;
11
+ if (money.minorUnits < min)
12
+ return min === 0 ? "minorUnits must not be negative" : "minorUnits must be greater than zero";
13
+ return null;
14
+ }
15
+
16
+ // ../commerce/dist/payments/contract/provider.js
17
+ function paymentError({ code, message }, optional = {}) {
18
+ return {
19
+ code,
20
+ message,
21
+ retryable: optional.retryable ?? false,
22
+ ...optional.providerStatus === void 0 ? {} : { providerStatus: optional.providerStatus }
23
+ };
24
+ }
25
+
26
+ // src/payments-stripe/amount.ts
27
+ var STRIPE_CURRENCIES = [
28
+ "AUD",
29
+ "BRL",
30
+ "CAD",
31
+ "CHF",
32
+ "CZK",
33
+ "DKK",
34
+ "EUR",
35
+ "GBP",
36
+ "HKD",
37
+ "JPY",
38
+ "KRW",
39
+ "MXN",
40
+ "NOK",
41
+ "NZD",
42
+ "PLN",
43
+ "SEK",
44
+ "SGD",
45
+ "USD"
46
+ ];
47
+ var supported = new Set(STRIPE_CURRENCIES);
48
+ function toStripeAmount({ money }, _optional = {}) {
49
+ if (!supported.has(money.currency) || moneyProblem({ money }, { allowZero: true }) !== null) return null;
50
+ return { amount: money.minorUnits, currency: money.currency.toLowerCase() };
51
+ }
52
+ function fromStripeAmount({ amount, currency }, _optional = {}) {
53
+ if (typeof amount !== "number" || typeof currency !== "string") return null;
54
+ const money = { minorUnits: amount, currency: currency.toUpperCase() };
55
+ return toStripeAmount({ money }) === null ? null : money;
56
+ }
57
+
58
+ // src/payments-stripe/http.ts
59
+ var STATUS_CODES = {
60
+ 400: "INVALID_REQUEST",
61
+ 401: "NO_CREDENTIALS_CONFIGURED",
62
+ 402: "DECLINED",
63
+ 403: "NO_CREDENTIALS_CONFIGURED",
64
+ 404: "INVALID_REQUEST",
65
+ 429: "PROVIDER_ERROR"
66
+ };
67
+ function record({ value }, _optional = {}) {
68
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
69
+ }
70
+ function rejectionCode({ status, type }, _optional = {}) {
71
+ if (status >= 500 || status === 409) return null;
72
+ if ([401, 403, 429].includes(status)) return STATUS_CODES[status];
73
+ if (status === 400 && type === "idempotency_error") return "IDEMPOTENCY_CONFLICT";
74
+ if (type === "card_error") return "DECLINED";
75
+ return STATUS_CODES[status] ?? null;
76
+ }
77
+ function stripeOutcome({ status, json }, _optional = {}) {
78
+ const value = record({ value: json });
79
+ if (status >= 200 && status < 300 && value !== null) return { kind: "ok", value };
80
+ const code = rejectionCode({ status, type: record({ value: value?.error })?.type });
81
+ return { kind: code === null ? "unknown" : "rejected", error: paymentError(
82
+ { code: code ?? "PROVIDER_ERROR", message: "payment provider request did not confirm success" },
83
+ { retryable: code === null || status === 429, providerStatus: status }
84
+ ) };
85
+ }
86
+ async function stripeRequest({ ctx, method, path }, optional = {}) {
87
+ const headers = { Authorization: `Bearer ${ctx.credentials.secretKey}` };
88
+ if (optional.idempotencyKey !== void 0) headers["Idempotency-Key"] = optional.idempotencyKey;
89
+ const body = optional.form === void 0 ? void 0 : new URLSearchParams(optional.form.map(([key, value]) => [key, value])).toString();
90
+ if (body !== void 0) headers["Content-Type"] = "application/x-www-form-urlencoded";
91
+ try {
92
+ const response = await ctx.httpClient.send({ request: {
93
+ method,
94
+ url: `https://api.stripe.com${path}`,
95
+ headers,
96
+ timeoutMs: 3e4,
97
+ totalDeadlineMs: 3e4,
98
+ ...body === void 0 ? {} : { body }
99
+ } });
100
+ let json;
101
+ try {
102
+ json = JSON.parse(response.bodyText);
103
+ } catch {
104
+ json = null;
105
+ }
106
+ return stripeOutcome({ status: response.status, json });
107
+ } catch {
108
+ return { kind: "unknown", error: paymentError(
109
+ { code: "TRANSPORT_ERROR", message: "payment provider request could not be confirmed" },
110
+ { retryable: true }
111
+ ) };
112
+ }
113
+ }
114
+
115
+ // src/payments-stripe/checkout-session.ts
116
+ function checkoutSessionForm({ req, ctx }, _optional = {}) {
117
+ if (toStripeAmount({ money: req.amount }) === null) return null;
118
+ const line = req.line ?? { description: `Payment ${req.correlationId}`, quantity: 1, unitAmount: req.amount };
119
+ const unit = toStripeAmount({ money: line.unitAmount });
120
+ if (unit === null) return null;
121
+ const form = [
122
+ ["mode", "payment"],
123
+ ["success_url", ctx.returnUrl],
124
+ ["cancel_url", ctx.cancelUrl],
125
+ ["client_reference_id", req.correlationId],
126
+ ["metadata[jini_payment_id]", req.correlationId],
127
+ ["payment_intent_data[metadata][jini_payment_id]", req.correlationId],
128
+ ["line_items[0][quantity]", String(line.quantity)]
129
+ ];
130
+ if (line.providerPriceRef !== void 0) form.push(["line_items[0][price]", line.providerPriceRef]);
131
+ else form.push(
132
+ ["line_items[0][price_data][currency]", unit.currency],
133
+ ["line_items[0][price_data][unit_amount]", String(unit.amount)],
134
+ ["line_items[0][price_data][product_data][name]", line.description]
135
+ );
136
+ return form;
137
+ }
138
+ async function createCheckoutSession({ req, ctx }, _optional = {}) {
139
+ const form = checkoutSessionForm({ req, ctx });
140
+ if (form === null) return { kind: "rejected", error: paymentError({ code: "CURRENCY_UNSUPPORTED", message: "unsupported checkout currency or amount" }) };
141
+ const result = await stripeRequest({ ctx, method: "POST", path: "/v1/checkout/sessions" }, { form, idempotencyKey: req.idempotencyKey });
142
+ if (result.kind !== "ok") return result;
143
+ const { id, url, amount_total, currency } = result.value;
144
+ if (typeof id !== "string" || id.length === 0 || typeof url !== "string" || url.length === 0) return {
145
+ kind: "unknown",
146
+ error: paymentError({ code: "PROVIDER_ERROR", message: "checkout session response incomplete" }, { retryable: true })
147
+ };
148
+ const amount = fromStripeAmount({ amount: amount_total, currency });
149
+ if (amount === null || amount.minorUnits !== req.amount.minorUnits || amount.currency !== req.amount.currency) return {
150
+ kind: "rejected",
151
+ error: paymentError({ code: "INVALID_REQUEST", message: "checkout session total differs from intent" })
152
+ };
153
+ return { kind: "ok", value: {
154
+ evidence: { providerRef: id, correlationId: req.correlationId, status: "requires_action", amount, refunds: [], disputes: [] },
155
+ next: { kind: "redirect", url }
156
+ } };
157
+ }
158
+
159
+ // src/payments-stripe/session-reading.ts
160
+ var FAILED_PI_STATUSES = /* @__PURE__ */ new Set(["requires_payment_method", "canceled"]);
161
+ function record2({ value }, _optional = {}) {
162
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : {};
163
+ }
164
+ function invalidIdentity({ session, mode }, _optional = {}) {
165
+ return session.object !== "checkout.session" || session.mode !== "payment" || session.livemode !== (mode === "live");
166
+ }
167
+ function sessionStatus({ session, eventType }, _optional = {}) {
168
+ if (eventType === "checkout.session.async_payment_failed") return "failed";
169
+ if (eventType === "checkout.session.async_payment_succeeded") return session.payment_status === "paid" ? "succeeded" : null;
170
+ if (session.status === "open") return "requires_action";
171
+ if (session.status === "expired") return "canceled";
172
+ if (session.status !== "complete") return null;
173
+ if (session.payment_status === "paid") return "succeeded";
174
+ if (session.payment_status !== "unpaid") return null;
175
+ const pi = record2({ value: session.payment_intent });
176
+ return FAILED_PI_STATUSES.has(pi.status) ? "failed" : "pending";
177
+ }
178
+ function readSession({ object, mode }, optional = {}) {
179
+ const session = record2({ value: object });
180
+ const correlationId = record2({ value: session.metadata }).jini_payment_id;
181
+ if (correlationId === void 0) return { kind: "foreign" };
182
+ if (typeof correlationId !== "string" || correlationId.length === 0) return { kind: "malformed", reason: "invalid payment correlation" };
183
+ if (typeof session.id !== "string" || session.id.length === 0 || invalidIdentity({ session, mode })) return {
184
+ kind: "malformed",
185
+ reason: "invalid checkout session identity or mode"
186
+ };
187
+ const status = sessionStatus({ session, eventType: optional.eventType });
188
+ const amount = fromStripeAmount({ amount: session.amount_total, currency: session.currency });
189
+ if (status === null || amount === null) return { kind: "id_only", sessionId: session.id };
190
+ return { kind: "evidence", evidence: { providerRef: session.id, correlationId, status, amount, refunds: [], disputes: [] } };
191
+ }
192
+
193
+ // src/payments-stripe/webhook-signature.ts
194
+ import { createHmac, timingSafeEqual } from "node:crypto";
195
+ function verifyStripeSignature({ rawBody, header, secret, nowMs }, _optional = {}) {
196
+ if (header === void 0 || secret.length === 0 || !Number.isFinite(nowMs)) return false;
197
+ const parts = header.split(",").map((part) => part.trim());
198
+ const timestamps = parts.filter((part) => part.startsWith("t="));
199
+ if (timestamps.length !== 1) return false;
200
+ const timestamp = timestamps[0].slice(2);
201
+ const seconds = Number(timestamp);
202
+ if (!/^\d+$/.test(timestamp) || !Number.isSafeInteger(seconds)) return false;
203
+ if (Math.abs(nowMs / 1e3 - seconds) > 300) return false;
204
+ const expected = createHmac("sha256", secret).update(`${timestamp}.`).update(rawBody).digest();
205
+ return parts.some((part) => {
206
+ if (!part.startsWith("v1=")) return false;
207
+ const signature = part.slice(3);
208
+ if (signature.length !== expected.length * 2 || !/^[0-9a-f]+$/i.test(signature)) return false;
209
+ return timingSafeEqual(Buffer.from(signature, "hex"), expected);
210
+ });
211
+ }
212
+
213
+ // src/payments-stripe/webhook.ts
214
+ function record3({ value }, _optional = {}) {
215
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
216
+ }
217
+ function readEnvelope({ event }, _optional = {}) {
218
+ const envelope = record3({ value: event }) ?? {};
219
+ const data = record3({ value: envelope.data }) ?? {};
220
+ const { id, type, created } = envelope;
221
+ if (typeof id !== "string" || id.length === 0) return null;
222
+ if (typeof type !== "string" || type.length === 0) return null;
223
+ if (typeof created !== "number") return null;
224
+ const object = record3({ value: data.object });
225
+ if (object === null) return null;
226
+ return { id, type, created, livemode: envelope.livemode, object };
227
+ }
228
+ function translateStripeEvent({ event, mode }, _optional = {}) {
229
+ const supportedEvents = /* @__PURE__ */ new Set([
230
+ "checkout.session.completed",
231
+ "checkout.session.expired",
232
+ "checkout.session.async_payment_succeeded",
233
+ "checkout.session.async_payment_failed"
234
+ ]);
235
+ const envelope = readEnvelope({ event });
236
+ if (envelope === null || !Number.isFinite(envelope.created * 1e3)) return { kind: "malformed", reason: "invalid event envelope" };
237
+ if (envelope.livemode !== (mode === "live")) return { kind: "malformed", reason: "event mode differs from account" };
238
+ if (!supportedEvents.has(envelope.type)) return { kind: "ignored" };
239
+ const reading = readSession({ object: envelope.object, mode }, { eventType: envelope.type });
240
+ if (reading.kind === "foreign") return { kind: "ignored" };
241
+ if (reading.kind === "malformed") return reading;
242
+ const providerRef = reading.kind === "id_only" ? reading.sessionId : reading.evidence.providerRef;
243
+ const fact = { providerEventId: envelope.id, providerRef, occurredAt: envelope.created * 1e3 };
244
+ if (reading.kind === "id_only") return { kind: "facts", facts: [fact] };
245
+ return { kind: "facts", facts: [{ ...fact, evidence: reading.evidence }] };
246
+ }
247
+
248
+ // src/payments-stripe/provider.ts
249
+ var STRIPE_CAPABILITIES = {
250
+ refunds: "none",
251
+ capture: "auto",
252
+ void: false,
253
+ disputes: false,
254
+ retrieve: "payment",
255
+ echoesCorrelation: true,
256
+ confirmation: ["redirect"],
257
+ currencies: STRIPE_CURRENCIES
258
+ };
259
+ var retrieve = async ({ providerRef, ctx }, _optional = {}) => {
260
+ const result = await stripeRequest({ ctx, method: "GET", path: `/v1/checkout/sessions/${encodeURIComponent(providerRef)}?expand%5B%5D=payment_intent` });
261
+ if (result.kind !== "ok") return result;
262
+ const reading = readSession({ object: result.value, mode: ctx.account.mode });
263
+ if (reading.kind !== "evidence" || reading.evidence.providerRef !== providerRef) return {
264
+ kind: "unknown",
265
+ error: paymentError({ code: "PROVIDER_ERROR", message: "checkout session evidence could not be confirmed" }, { retryable: true })
266
+ };
267
+ return { kind: "ok", value: reading.evidence };
268
+ };
269
+ var verifyWebhook = async ({ rawBody, headers, ctx }, _optional = {}) => {
270
+ if (!verifyStripeSignature({ rawBody, header: headers["stripe-signature"], secret: ctx.credentials.webhookSecret ?? "", nowMs: ctx.now() })) return {
271
+ kind: "rejected",
272
+ error: paymentError({ code: "SIGNATURE_INVALID", message: "invalid webhook signature" })
273
+ };
274
+ let event;
275
+ try {
276
+ event = JSON.parse(Buffer.from(rawBody).toString("utf8"));
277
+ } catch {
278
+ return { kind: "rejected", error: paymentError({ code: "INVALID_REQUEST", message: "invalid webhook JSON" }) };
279
+ }
280
+ const translated = translateStripeEvent({ event, mode: ctx.account.mode });
281
+ if (translated.kind === "malformed") return { kind: "rejected", error: paymentError({ code: "INVALID_REQUEST", message: translated.reason }) };
282
+ return { kind: "ok", value: translated.kind === "ignored" ? [] : translated.facts };
283
+ };
284
+ function createStripePaymentProvider(_required, _optional = {}) {
285
+ return {
286
+ id: "stripe",
287
+ displayName: "Stripe",
288
+ credentialKeys: ["secretKey", "webhookSecret"],
289
+ capabilities: STRIPE_CAPABILITIES,
290
+ createIntent: (required, _optional2 = {}) => createCheckoutSession(required),
291
+ retrieve,
292
+ verifyWebhook
293
+ };
294
+ }
295
+
296
+ // src/payments-stripe/index.ts
297
+ function createStripeProvider(_required, _optional = {}) {
298
+ return { port: createStripePaymentProvider({}), dispose: (_required2, _optional2 = {}) => {
299
+ } };
300
+ }
301
+ var index_default = {
302
+ definition: {
303
+ setup(sdk) {
304
+ sdk.providers.register({ contract: "payments", id: "stripe", contractVersion: 1, factory: createStripeProvider });
305
+ }
306
+ }
307
+ };
308
+ export {
309
+ createStripeProvider,
310
+ index_default as default
311
+ };
@@ -1 +0,0 @@
1
- License text copied from @jini-ai/core@0.6.15-rc.2 (same repository and declared license).
@@ -1 +0,0 @@
1
- function g(e,n){let t=(e.defaultView?.location.hostname??"").split(".");e.cookie=`${n}=; Path=/; Max-Age=0`;for(let o=0;o<t.length-1;o++)e.cookie=`${n}=; Path=/; Max-Age=0; Domain=.${t.slice(o).join(".")}`}function u(e,n){if(n){for(let t of e.cookie.split(/;\s*/)){let o=t.split("=")[0];n.cookies?.some(r=>o.startsWith(r))&&g(e,o)}try{let t=e.defaultView.localStorage;for(let o of Object.keys(t))n.local?.some(r=>o.startsWith(r))&&t.removeItem(o)}catch{}}}function d({doc:e,storage:n},t={}){u(e,n)}function f({attributes:e},n={}){let t={};for(let o of["site_id","release","environment"]){let r=e[o];r&&(t[o]=r)}return t}function m({apiKey:e,siteId:n,release:t,environment:o},r={}){return JSON.stringify({api_key:e,event:"$pageview",properties:{distinct_id:"visitor:ephemeral",$process_person_profile:!1,$geoip_disable:!0,surface:"site",...f({attributes:{site_id:n,release:t,environment:o}})}})}async function y({config:e,signal:n,ports:t},o={}){return await(t.request??fetch)(e.host+"/e/",{method:"POST",credentials:"omit",referrerPolicy:"no-referrer",headers:{"content-type":"application/json"},body:m(e),signal:n}).catch(()=>{}),{revoke:()=>!0}}var p={cookies:["ph_","__ph"],local:["ph_","__ph"]},_="jini_consent",h=["$event_type","$el_tag_name","$browser","$browser_version","$os","$device_type","$lib","$lib_version","$viewport_width","$viewport_height","distinct_id","$device_id","$session_id","$window_id","$is_identified"];function v({path:e},n={}){return(e||"/").split("/").map(t=>{let o;try{o=decodeURIComponent(t)}catch{return":redacted"}return/@|[a-f0-9]{32,}|[A-Za-z0-9_-]{40,}/i.test(o)?":redacted":t}).join("/")}function P(e){return e.split(";").slice(0,32).map(n=>{let t=/^[a-z][a-z0-9-]*/i.exec(n);return t?t[0]+(n.match(/:nth-(?:child|of-type)\([0-9]+\)/g)??[]).join(""):""}).filter(Boolean).join(";")}function b(e){return e.slice(0,32).filter(n=>!!n&&/^[a-z][a-z0-9-]*$/i.test(String(n.tag_name??""))).map(n=>{let t={tag_name:n.tag_name};for(let o of["nth_child","nth_of_type"])Number.isInteger(n[o])&&n[o]>0&&(t[o]=n[o]);return t})}function S({event:e,location:n,siteId:t,release:o,environment:r},a={}){let s=e.properties??{},i={};for(let c of h)s[c]!==void 0&&(i[c]=s[c]);return i.$process_person_profile=!0,i.$pathname=v({path:n.pathname}),i.$current_url=n.origin+String(i.$pathname),i.$host=n.hostname,typeof s.$elements_chain=="string"&&(i.$elements_chain=P(s.$elements_chain)),Array.isArray(s.$elements)&&(i.$elements=b(s.$elements)),e.event==="$identify"&&(i.$set={}),Object.assign(i,f({attributes:{site_id:t,release:o,environment:r}}),{surface:"site"}),e.properties=i,e}function k(e,n,t){return{api_host:e.host,persistence:"localStorage+cookie",disable_persistence:!1,persistence_name:`jini_site_${e.siteId||"site"}`,person_profiles:"identified_only",disable_compression:!0,request_batching:!1,mask_all_element_attributes:!0,mask_all_text:!0,autocapture:{capture_copied_text:!1},capture_pageview:"history_change",capture_pageleave:!1,disable_session_recording:!e.sessionReplay,session_recording:{maskAllInputs:!0,maskTextSelector:"*"},disable_surveys:!0,advanced_disable_feature_flags:!0,advanced_disable_flags:!0,disable_web_experiments:!0,capture_performance:!1,capture_heatmaps:!1,capture_dead_clicks:!1,disable_external_dependency_loading:!0,enable_recording_console_log:!1,capture_exceptions:!1,ip:!1,before_send:o=>t.aborted?null:S({event:o,location:n.location,siteId:e.siteId,release:e.release,environment:e.environment}),loaded:o=>{let r=o.get_distinct_id();t.aborted||o.identify(r.startsWith("visitor:")?r:`visitor:${r}`)}}}function E({src:e,integrity:n,doc:t},{importModule:o=r=>import(r)}={}){let r=t.createElement("script");return r.type="module",r.integrity=n,r.src=e,new Promise((a,s)=>{r.onload=()=>a(),r.onerror=()=>s(new Error("The analytics SDK failed its integrity check or did not load.")),t.head.append(r)}).then(()=>o(r.src)).then(a=>a.default)}function C({ports:e},n={}){let t=null;function o({state:r},a={}){if(!(r.analyticsLevel==="full"||!e.doc))try{d({doc:e.doc,storage:p})}catch{}}return{onState:o,id:"posthog",kind:"consent-adapter",category:"analytics",supportsAnonymous:!0,storage:p,async grant({config:r,state:a,signal:s}){if(s.aborted||(o({state:a}),a.analyticsLevel==="none"))return null;if(a.analyticsLevel==="anonymous")return y({config:r,signal:s,ports:e});let i;try{i=await e.loadSdk({src:r.sdk,integrity:r.integrity})}catch{return null}if(s.aborted)return null;let c=k(r,e,s);t?t.set_config(c):t=i.init(r.apiKey,c,_);let l=t;return{revoke(){return l.stopSessionRecording?.(),l.set_config({disable_persistence:!0,autocapture:!1,capture_pageview:!1,disable_session_recording:!0,before_send:()=>null}),!r.sessionReplay}}}}}function w(){let e=globalThis;return{loadSdk:({src:n,integrity:t})=>E({src:n,integrity:t,doc:e.document}),get location(){return e.location},get doc(){return e.document}}}var j=C({ports:w()});export{p as POSTHOG_STORAGE,m as anonymousPageview,C as createPostHogConsentAdapter,j as default,E as loadVerifiedSdk,f as postHogBrowserAttributes,v as safePath,S as sanitizeEvent};
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@jini-ai/analytics",
3
- "version": "0.6.15-rc.2",
4
- "license": "Apache-2.0"
5
- }
@@ -1 +0,0 @@
1
- License text copied from @jini-ai/analytics@0.6.15-rc.2 (same repository and declared license).
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@jini-ai/provider-plugins",
3
- "version": "0.6.15-rc.2",
4
- "license": "Apache-2.0"
5
- }
@@ -1,35 +0,0 @@
1
- {
2
- "id": "payments-stripe",
3
- "name": "Stripe payments provider (moved; not activated)",
4
- "version": "0.6.15-rc.2",
5
- "sdkRange": "^0.1.0 || ^1.0.0",
6
- "engine": 1,
7
- "tier": "tier-3",
8
- "extensions": {
9
- "tovu": {
10
- "id": "jini/payments-stripe"
11
- },
12
- "open-marketing": {
13
- "id": "jini/payments-stripe"
14
- }
15
- },
16
- "capabilities": [
17
- "providers.register"
18
- ],
19
- "contributes": {
20
- "providers": [
21
- {
22
- "contract": "payments",
23
- "id": "stripe",
24
- "contractVersion": 1
25
- }
26
- ]
27
- },
28
- "hooks": [],
29
- "fields": [],
30
- "integrity": {
31
- "licenses/_jini-ai_provider-plugins/LICENSE": "sha256-9d95806a26532623360eb84bb17d298f394b55ef73fb4c0796d99b4319b2b0da",
32
- "licenses/_jini-ai_provider-plugins/package-license.json": "sha256-22b074b00e072934cd991672d049d66e77209826f8793e748797124ba7e5e25a",
33
- "server/index.mjs": "sha256-04c63fb9124d1b40dbc7d5c5c784f329779c28a885be2f9d072e2e1e030e185e"
34
- }
35
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "@jini-ai/provider-plugins",
3
- "version": "0.6.15-rc.2",
4
- "license": "Apache-2.0"
5
- }
@@ -1,153 +0,0 @@
1
- import { createRequire as __jiniCreateRequire } from "node:module"; const require = __jiniCreateRequire(import.meta.url);
2
-
3
- // src/payments-stripe/stripe.ts
4
- var STRIPE_API_BASE = "https://api.stripe.com/v1";
5
- var StripePaymentsProviderError = class extends Error {
6
- /** The HTTP status Stripe (or a local pre-flight check) returned. */
7
- status;
8
- /** Stripe's `error.type` — one of `api_error`, `card_error`, `idempotency_error`, `invalid_request_error`. Undefined for a local pre-flight rejection (e.g. a non-positive amount) that never reached Stripe. */
9
- stripeType;
10
- /** Stripe's `error.code`, when present. */
11
- stripeCode;
12
- constructor({ message, status }, { stripeType, stripeCode } = {}) {
13
- super(message);
14
- this.name = "StripePaymentsProviderError";
15
- this.status = status;
16
- if (stripeType !== void 0) this.stripeType = stripeType;
17
- if (stripeCode !== void 0) this.stripeCode = stripeCode;
18
- }
19
- };
20
- function mapStripeChargeStatus(raw, refunded) {
21
- if (refunded === true) return "refunded";
22
- if (raw === "succeeded" || raw === "pending" || raw === "failed") return raw;
23
- return "pending";
24
- }
25
- var StripePaymentsProvider = class {
26
- constructor(options, optional = {}) {
27
- this.options = options;
28
- if (!options.secretKey) {
29
- throw new StripePaymentsProviderError({ message: "StripePaymentsProvider requires a non-empty options.secretKey", status: 401 });
30
- }
31
- const fn = optional.fetchFn ?? globalThis.fetch;
32
- if (!fn) {
33
- throw new StripePaymentsProviderError({ message: "StripePaymentsProvider requires a fetch implementation", status: 500 });
34
- }
35
- this.fetchFn = fn;
36
- this.now = optional.now ?? Date.now;
37
- this.apiBase = (optional.apiBase ?? STRIPE_API_BASE).replace(/\/+$/, "");
38
- }
39
- options;
40
- fetchFn;
41
- apiBase;
42
- now;
43
- async charge(input, optional = {}) {
44
- if (input.amountCents <= 0) {
45
- throw new StripePaymentsProviderError({ message: "amountCents must be positive", status: 400 });
46
- }
47
- const body = new URLSearchParams({
48
- amount: String(input.amountCents),
49
- currency: input.currency,
50
- customer: input.customerRef
51
- });
52
- if (optional.description !== void 0) body.set("description", optional.description);
53
- const json = await this.request("POST", "/charges", body);
54
- return this.toCharge(json);
55
- }
56
- async getCharge({ id }) {
57
- try {
58
- const json = await this.request("GET", `/charges/${encodeURIComponent(id)}`);
59
- return this.toCharge(json);
60
- } catch (err) {
61
- if (err instanceof StripePaymentsProviderError && err.status === 404) return null;
62
- throw err;
63
- }
64
- }
65
- /**
66
- * `PaymentsProvider.refund` returns a completed `Charge`, but a real Stripe `Refund` object's
67
- * own `status` can be `'succeeded'`, `'pending'` (common for bank-sourced refunds that settle
68
- * over days), `'failed'`, or `'canceled'` — a richer state machine than this port's
69
- * `ChargeStatus` has room for. Since `ChargeStatus` has no "refund in flight" state, `'pending'`
70
- * is treated the same as `'succeeded'` here (Stripe accepted the refund; it will settle) and
71
- * only `'failed'`/`'canceled'` reject. A host that needs to distinguish "refund accepted" from
72
- * "refund settled" should track Stripe's own refund object separately — out of scope for this
73
- * port's `Charge`-shaped return value.
74
- */
75
- async refund({ id }) {
76
- const existing = await this.getCharge({ id });
77
- if (!existing) {
78
- throw new StripePaymentsProviderError({ message: `unknown charge: ${id}`, status: 404 });
79
- }
80
- if (existing.status !== "succeeded") {
81
- throw new StripePaymentsProviderError({ message: `charge ${id} is not refundable from status "${existing.status}"`, status: 400 });
82
- }
83
- const json = await this.request("POST", "/refunds", new URLSearchParams({ charge: id }));
84
- const refundStatus = json.status;
85
- if (refundStatus === "failed" || refundStatus === "canceled") {
86
- throw new StripePaymentsProviderError({ message: `Stripe refund ${String(refundStatus)} for charge ${id}`, status: 402 }, { stripeType: "api_error" });
87
- }
88
- return { ...existing, status: "refunded" };
89
- }
90
- authHeader() {
91
- const bytes = new TextEncoder().encode(`${this.options.secretKey}:`);
92
- return `Basic ${btoa(Array.from(bytes, (byte) => String.fromCharCode(byte)).join(""))}`;
93
- }
94
- async request(method, path, formBody) {
95
- const headers = { Authorization: this.authHeader() };
96
- const init = { method, headers };
97
- if (formBody) {
98
- headers["Content-Type"] = "application/x-www-form-urlencoded";
99
- init.body = formBody.toString();
100
- }
101
- const res = await this.fetchFn(`${this.apiBase}${path}`, init);
102
- const json = await this.safeJson(res);
103
- if (!res.ok) throw this.toError(res.status, json);
104
- return json;
105
- }
106
- async safeJson(res) {
107
- try {
108
- const parsed = await res.json();
109
- return parsed && typeof parsed === "object" ? parsed : {};
110
- } catch {
111
- return {};
112
- }
113
- }
114
- toError(status, json) {
115
- const errorObj = json.error && typeof json.error === "object" ? json.error : {};
116
- const message = typeof errorObj.message === "string" && errorObj.message ? errorObj.message : `Stripe request failed (${status}).`;
117
- const stripeType = typeof errorObj.type === "string" ? errorObj.type : void 0;
118
- const stripeCode = typeof errorObj.code === "string" ? errorObj.code : void 0;
119
- return new StripePaymentsProviderError({ message, status }, {
120
- ...stripeType === void 0 ? {} : { stripeType },
121
- ...stripeCode === void 0 ? {} : { stripeCode }
122
- });
123
- }
124
- toCharge(json) {
125
- return {
126
- id: typeof json.id === "string" ? json.id : "",
127
- status: mapStripeChargeStatus(json.status, json.refunded),
128
- amountCents: typeof json.amount === "number" ? json.amount : 0,
129
- currency: typeof json.currency === "string" ? json.currency : "",
130
- customerRef: typeof json.customer === "string" ? json.customer : "",
131
- // Stripe's `created` is Unix seconds; this port's `createdAt` is epoch milliseconds.
132
- createdAt: typeof json.created === "number" ? json.created * 1e3 : this.now()
133
- };
134
- }
135
- };
136
-
137
- // src/payments-stripe/index.ts
138
- function createStripeProvider(required, optional = {}) {
139
- const port = new StripePaymentsProvider({ secretKey: typeof required.secretKey === "string" ? required.secretKey : "" }, optional);
140
- return { port, dispose: (_required, _optional = {}) => {
141
- } };
142
- }
143
- var index_default = {
144
- definition: {
145
- setup(sdk) {
146
- sdk.providers.register({ contract: "payments", id: "stripe", contractVersion: 1, factory: createStripeProvider });
147
- }
148
- }
149
- };
150
- export {
151
- createStripeProvider,
152
- index_default as default
153
- };