@adonis-agora/payments 1.0.0-rc.4 → 1.0.0-rc.5

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 (38) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/assets/spa/assets/{index-CIQiUehl.js → index-CQXNmsmg.js} +2 -2
  3. package/dist/assets/spa/assets/{index-CIQiUehl.js.map → index-CQXNmsmg.js.map} +1 -1
  4. package/dist/assets/spa/index.html +1 -1
  5. package/dist/providers/dashboard_provider.d.ts +13 -1
  6. package/dist/providers/dashboard_provider.d.ts.map +1 -1
  7. package/dist/providers/dashboard_provider.js +124 -50
  8. package/dist/providers/dashboard_provider.js.map +1 -1
  9. package/dist/src/billing/billing_store.d.ts +6 -0
  10. package/dist/src/billing/billing_store.d.ts.map +1 -1
  11. package/dist/src/billing/billing_store.js +2 -0
  12. package/dist/src/billing/billing_store.js.map +1 -1
  13. package/dist/src/billing/lucid_billing_store.d.ts.map +1 -1
  14. package/dist/src/billing/lucid_billing_store.js +4 -0
  15. package/dist/src/billing/lucid_billing_store.js.map +1 -1
  16. package/dist/src/billing/scoped_store.d.ts.map +1 -1
  17. package/dist/src/billing/scoped_store.js +21 -17
  18. package/dist/src/billing/scoped_store.js.map +1 -1
  19. package/dist/src/dashboard/console_authorize.d.ts +16 -0
  20. package/dist/src/dashboard/console_authorize.d.ts.map +1 -1
  21. package/dist/src/dashboard/console_authorize.js +45 -0
  22. package/dist/src/dashboard/console_authorize.js.map +1 -1
  23. package/dist/src/dashboard/dev_tools.d.ts +119 -0
  24. package/dist/src/dashboard/dev_tools.d.ts.map +1 -0
  25. package/dist/src/dashboard/dev_tools.js +437 -0
  26. package/dist/src/dashboard/dev_tools.js.map +1 -0
  27. package/dist/src/dashboard/handlers.d.ts +15 -1
  28. package/dist/src/dashboard/handlers.d.ts.map +1 -1
  29. package/dist/src/dashboard/handlers.js +131 -26
  30. package/dist/src/dashboard/handlers.js.map +1 -1
  31. package/dist/src/dashboard/index.d.ts +4 -2
  32. package/dist/src/dashboard/index.d.ts.map +1 -1
  33. package/dist/src/dashboard/index.js +4 -2
  34. package/dist/src/dashboard/index.js.map +1 -1
  35. package/dist/src/testing/in_memory_billing_store.d.ts.map +1 -1
  36. package/dist/src/testing/in_memory_billing_store.js +2 -0
  37. package/dist/src/testing/in_memory_billing_store.js.map +1 -1
  38. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @adonis-agora/payments
2
2
 
3
+ ## 1.0.0-rc.5
4
+
5
+ ### Minor Changes
6
+
7
+ - [#227](https://github.com/DavideCarvalho/adonis-agora-payments/pull/227) [`78d6fdf`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/78d6fdfbff204063059b3a8157a43db8cb42c973) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - The payments console now serves its data to coding agents on the app's dev MCP endpoint (`/mcp/agora`) when the app registers `@adonis-agora/agent/mcp_provider`. Fourteen `payments_*` tools, gated by the console's own `authorize` and, with organizations on, scoped to the organizations the console shows the caller (`tenant` narrows to one). Reads (`payments_get_overview`, `payments_get_health`, `payments_list_payments`, `payments_get_payment`, `payments_list_subscriptions`, `payments_get_subscription`, `payments_list_disputes`, `payments_list_webhook_events`, `payments_list_customers`, `payments_list_audit`, `payments_list_organizations`) are listed by default and return what the console's JSON API returns. The actions (`payments_refund_payment`, `payments_retry_webhook_event`, `payments_resolve_dispute`) only when the app opts in on the dev endpoint; each is recorded in the activity trail as `mcp:<caller>`. No configuration in this package.
8
+
9
+ New `anyAuthorize(...authorizers)` in `@adonis-agora/payments/dashboard`: allows a request when any of the given `authorize` forms does, e.g. a console token for MCP clients or a signed-in admin.
10
+
11
+ - [#227](https://github.com/DavideCarvalho/adonis-agora-payments/pull/227) [`78d6fdf`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/78d6fdfbff204063059b3a8157a43db8cb42c973) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - New `GET <path>/api/subscriptions/:id` in the payments console API: one subscription, by its id or its gateway id, with its current state, the customer it bills, the payments charged for it, the webhook events naming those payments and its audit rows. Scoped to the viewer's organizations like every other read (another organization's subscription is `404`). `GET <path>/api/subscriptions` also takes `customerId`. The billing store's `listSubscriptions` takes `id` and `listPayments` takes `subscriptionId` (exact matches; a custom store that ignores them still answers correctly in the console), and with organizations on, a subscription's audit rows are visible to a viewer who can see the subscription.
12
+
13
+ - [#227](https://github.com/DavideCarvalho/adonis-agora-payments/pull/227) [`78d6fdf`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/78d6fdfbff204063059b3a8157a43db8cb42c973) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - A webhook retry from the payments console is now recorded in the activity trail as `webhook.retried`, with who ran it (the console viewer, or `mcp:<caller>` from the dev MCP tools: both paths write the same row), the gateway, and the event's type and previous error. The retry response carries the audit row. The Activity screen can filter retries.
14
+
3
15
  ## 1.0.0-rc.4
4
16
 
5
17
  ### Minor Changes