@vandenberghinc/volt 1.2.4 → 1.2.6
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.
- package/frontend/assets/admin/admin.png +0 -0
- package/frontend/assets/admin/password.webp +0 -0
- package/frontend/assets/icons/arrow.v1.webp +0 -0
- package/frontend/assets/icons/copy.webp +0 -0
- package/frontend/assets/payments/arrow.long.webp +0 -0
- package/frontend/assets/payments/arrow.long2.webp +0 -0
- package/frontend/assets/payments/cancelled.webp +0 -0
- package/frontend/assets/payments/check.sign.webp +0 -0
- package/frontend/assets/payments/check.webp +0 -0
- package/frontend/assets/payments/close.webp +0 -0
- package/frontend/assets/payments/error.webp +0 -0
- package/frontend/assets/payments/exclamation.webp +0 -0
- package/frontend/assets/payments/minus.webp +0 -0
- package/frontend/assets/payments/party.webp +0 -0
- package/frontend/assets/payments/plus.webp +0 -0
- package/frontend/assets/payments/shopping_cart.webp +0 -0
- package/frontend/assets/payments/trash.webp +0 -0
- package/package.json +6 -2
- package/.libris/config.json +0 -82
- package/backend/dist/cjs/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/cjs/backend/src/blacklist.js +0 -78
- package/backend/dist/cjs/backend/src/cli.d.ts +0 -2
- package/backend/dist/cjs/backend/src/cli.js +0 -198
- package/backend/dist/cjs/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/cjs/backend/src/database/collection.js +0 -3301
- package/backend/dist/cjs/backend/src/database/database.d.ts +0 -92
- package/backend/dist/cjs/backend/src/database/database.js +0 -170
- package/backend/dist/cjs/backend/src/database/document.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/document.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/cjs/backend/src/database/filters/filters.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/cjs/backend/src/database/filters/strict_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test.js +0 -443
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_test_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v0.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v1.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v2.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/cjs/backend/src/database/filters/strict_filter_v3.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter.js +0 -15
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/cjs/backend/src/database/filters/strict_update_filter_test.js +0 -355
- package/backend/dist/cjs/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/cjs/backend/src/database/flatten.js +0 -53
- package/backend/dist/cjs/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/cjs/backend/src/database/flatten_test.js +0 -175
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/cjs/backend/src/database/quota/quoata_v2.js +0 -1046
- package/backend/dist/cjs/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/cjs/backend/src/database/quota/quota.js +0 -1108
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/cjs/backend/src/database/quota/quota_v1.js +0 -1087
- package/backend/dist/cjs/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/cjs/backend/src/database/quota/safe_int.js +0 -745
- package/backend/dist/cjs/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/cjs/backend/src/endpoint.js +0 -468
- package/backend/dist/cjs/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/cjs/backend/src/errors/index.js +0 -25
- package/backend/dist/cjs/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/cjs/backend/src/errors/internal_external.js +0 -95
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/cjs/backend/src/errors/invalid_usage_error.js +0 -47
- package/backend/dist/cjs/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/cjs/backend/src/errors/system_error.js +0 -436
- package/backend/dist/cjs/backend/src/events.d.ts +0 -97
- package/backend/dist/cjs/backend/src/events.js +0 -15
- package/backend/dist/cjs/backend/src/frontend.d.ts +0 -11
- package/backend/dist/cjs/backend/src/frontend.js +0 -37
- package/backend/dist/cjs/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/cjs/backend/src/image_endpoint.js +0 -185
- package/backend/dist/cjs/backend/src/index.d.ts +0 -23
- package/backend/dist/cjs/backend/src/index.js +0 -70
- package/backend/dist/cjs/backend/src/logger.d.ts +0 -5
- package/backend/dist/cjs/backend/src/logger.js +0 -15
- package/backend/dist/cjs/backend/src/meta.d.ts +0 -112
- package/backend/dist/cjs/backend/src/meta.js +0 -181
- package/backend/dist/cjs/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/cjs/backend/src/payments/paddle.js +0 -1996
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/cjs/backend/src/payments/stripe/checkout.js +0 -295
- package/backend/dist/cjs/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/cjs/backend/src/payments/stripe/customers.js +0 -164
- package/backend/dist/cjs/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/cjs/backend/src/payments/stripe/error.js +0 -64
- package/backend/dist/cjs/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/cjs/backend/src/payments/stripe/events.js +0 -15
- package/backend/dist/cjs/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/meters.js +0 -230
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/cjs/backend/src/payments/stripe/payment_methods.js +0 -109
- package/backend/dist/cjs/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/cjs/backend/src/payments/stripe/products.js +0 -650
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/cjs/backend/src/payments/stripe/stripe.js +0 -468
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/cjs/backend/src/payments/stripe/subscriptions.js +0 -557
- package/backend/dist/cjs/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/cjs/backend/src/payments/stripe/utils.js +0 -118
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/cjs/backend/src/payments/stripe/webhooks.js +0 -627
- package/backend/dist/cjs/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/browser.js +0 -15
- package/backend/dist/cjs/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/cjs/backend/src/plugins/communication.js +0 -196
- package/backend/dist/cjs/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/cjs/backend/src/plugins/mail/mail.js +0 -381
- package/backend/dist/cjs/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/cjs/backend/src/plugins/mail/ui.js +0 -1370
- package/backend/dist/cjs/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/cjs/backend/src/plugins/pdf.js +0 -1456
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/cjs/backend/src/plugins/thread_monitor.js +0 -116
- package/backend/dist/cjs/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/cjs/backend/src/rate_limit.js +0 -543
- package/backend/dist/cjs/backend/src/route.d.ts +0 -39
- package/backend/dist/cjs/backend/src/route.js +0 -172
- package/backend/dist/cjs/backend/src/server.d.ts +0 -502
- package/backend/dist/cjs/backend/src/server.js +0 -1713
- package/backend/dist/cjs/backend/src/server.old.d.ts +0 -594
- package/backend/dist/cjs/backend/src/server.old.js +0 -2058
- package/backend/dist/cjs/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/cjs/backend/src/splash_screen.js +0 -119
- package/backend/dist/cjs/backend/src/status.d.ts +0 -89
- package/backend/dist/cjs/backend/src/status.js +0 -211
- package/backend/dist/cjs/backend/src/stream.d.ts +0 -494
- package/backend/dist/cjs/backend/src/stream.js +0 -1370
- package/backend/dist/cjs/backend/src/users.d.ts +0 -926
- package/backend/dist/cjs/backend/src/users.js +0 -2223
- package/backend/dist/cjs/backend/src/utils.d.ts +0 -22
- package/backend/dist/cjs/backend/src/utils.js +0 -626
- package/backend/dist/cjs/backend/src/view.d.ts +0 -115
- package/backend/dist/cjs/backend/src/view.js +0 -519
- package/backend/dist/cjs/backend/src/vinc.d.ts +0 -6
- package/backend/dist/cjs/backend/src/vinc.js +0 -40
- package/backend/dist/cjs/backend/src/volt.d.ts +0 -24
- package/backend/dist/cjs/backend/src/volt.js +0 -72
- package/backend/dist/cjs/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/cjs/frontend/src/modules/request.js +0 -99
- package/backend/dist/cjs/package.json +0 -1
- package/backend/dist/esm/backend/src/blacklist.d.ts +0 -12
- package/backend/dist/esm/backend/src/blacklist.js +0 -52
- package/backend/dist/esm/backend/src/cli.d.ts +0 -2
- package/backend/dist/esm/backend/src/cli.js +0 -211
- package/backend/dist/esm/backend/src/database/collection.d.ts +0 -1765
- package/backend/dist/esm/backend/src/database/collection.js +0 -3779
- package/backend/dist/esm/backend/src/database/database.d.ts +0 -92
- package/backend/dist/esm/backend/src/database/database.js +0 -214
- package/backend/dist/esm/backend/src/database/document.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/document.js +0 -558
- package/backend/dist/esm/backend/src/database/filters/filters.d.ts +0 -6
- package/backend/dist/esm/backend/src/database/filters/filters.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/backend/dist/esm/backend/src/database/filters/strict_filter.js +0 -3
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test.js +0 -505
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_filter_test_v0.js +0 -712
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.d.ts +0 -50
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v0.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.d.ts +0 -76
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v1.js +0 -44
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.d.ts +0 -75
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v2.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.d.ts +0 -219
- package/backend/dist/esm/backend/src/database/filters/strict_filter_v3.js +0 -1
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter.js +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.d.ts +0 -5
- package/backend/dist/esm/backend/src/database/filters/strict_update_filter_test.js +0 -415
- package/backend/dist/esm/backend/src/database/flatten.d.ts +0 -78
- package/backend/dist/esm/backend/src/database/flatten.js +0 -22
- package/backend/dist/esm/backend/src/database/flatten_test.d.ts +0 -1
- package/backend/dist/esm/backend/src/database/flatten_test.js +0 -174
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.d.ts +0 -533
- package/backend/dist/esm/backend/src/database/quota/quoata_v2.js +0 -1155
- package/backend/dist/esm/backend/src/database/quota/quota.d.ts +0 -551
- package/backend/dist/esm/backend/src/database/quota/quota.js +0 -1219
- package/backend/dist/esm/backend/src/database/quota/quota_v1.d.ts +0 -534
- package/backend/dist/esm/backend/src/database/quota/quota_v1.js +0 -1242
- package/backend/dist/esm/backend/src/database/quota/safe_int.d.ts +0 -412
- package/backend/dist/esm/backend/src/database/quota/safe_int.js +0 -810
- package/backend/dist/esm/backend/src/endpoint.d.ts +0 -346
- package/backend/dist/esm/backend/src/endpoint.js +0 -479
- package/backend/dist/esm/backend/src/errors/index.d.ts +0 -7
- package/backend/dist/esm/backend/src/errors/index.js +0 -7
- package/backend/dist/esm/backend/src/errors/internal_external.d.ts +0 -52
- package/backend/dist/esm/backend/src/errors/internal_external.js +0 -86
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/backend/dist/esm/backend/src/errors/invalid_usage_error.js +0 -33
- package/backend/dist/esm/backend/src/errors/system_error.d.ts +0 -261
- package/backend/dist/esm/backend/src/errors/system_error.js +0 -444
- package/backend/dist/esm/backend/src/events.d.ts +0 -97
- package/backend/dist/esm/backend/src/events.js +0 -5
- package/backend/dist/esm/backend/src/frontend.d.ts +0 -11
- package/backend/dist/esm/backend/src/frontend.js +0 -12
- package/backend/dist/esm/backend/src/image_endpoint.d.ts +0 -44
- package/backend/dist/esm/backend/src/image_endpoint.js +0 -196
- package/backend/dist/esm/backend/src/index.d.ts +0 -23
- package/backend/dist/esm/backend/src/index.js +0 -26
- package/backend/dist/esm/backend/src/logger.d.ts +0 -5
- package/backend/dist/esm/backend/src/logger.js +0 -8
- package/backend/dist/esm/backend/src/meta.d.ts +0 -112
- package/backend/dist/esm/backend/src/meta.js +0 -152
- package/backend/dist/esm/backend/src/payments/paddle.d.ts +0 -329
- package/backend/dist/esm/backend/src/payments/paddle.js +0 -2276
- package/backend/dist/esm/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/backend/dist/esm/backend/src/payments/stripe/checkout.js +0 -356
- package/backend/dist/esm/backend/src/payments/stripe/customers.d.ts +0 -17
- package/backend/dist/esm/backend/src/payments/stripe/customers.js +0 -193
- package/backend/dist/esm/backend/src/payments/stripe/error.d.ts +0 -74
- package/backend/dist/esm/backend/src/payments/stripe/error.js +0 -51
- package/backend/dist/esm/backend/src/payments/stripe/events.d.ts +0 -155
- package/backend/dist/esm/backend/src/payments/stripe/events.js +0 -5
- package/backend/dist/esm/backend/src/payments/stripe/meters.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/meters.js +0 -318
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/backend/dist/esm/backend/src/payments/stripe/payment_methods.js +0 -135
- package/backend/dist/esm/backend/src/payments/stripe/products.d.ts +0 -519
- package/backend/dist/esm/backend/src/payments/stripe/products.js +0 -896
- package/backend/dist/esm/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/backend/dist/esm/backend/src/payments/stripe/stripe.js +0 -464
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/backend/dist/esm/backend/src/payments/stripe/subscriptions.js +0 -754
- package/backend/dist/esm/backend/src/payments/stripe/utils.d.ts +0 -63
- package/backend/dist/esm/backend/src/payments/stripe/utils.js +0 -131
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/backend/dist/esm/backend/src/payments/stripe/webhooks.js +0 -752
- package/backend/dist/esm/backend/src/plugins/browser.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/browser.js +0 -170
- package/backend/dist/esm/backend/src/plugins/communication.d.ts +0 -70
- package/backend/dist/esm/backend/src/plugins/communication.js +0 -169
- package/backend/dist/esm/backend/src/plugins/mail/mail.d.ts +0 -255
- package/backend/dist/esm/backend/src/plugins/mail/mail.js +0 -396
- package/backend/dist/esm/backend/src/plugins/mail/ui.d.ts +0 -297
- package/backend/dist/esm/backend/src/plugins/mail/ui.js +0 -1400
- package/backend/dist/esm/backend/src/plugins/pdf.d.ts +0 -1
- package/backend/dist/esm/backend/src/plugins/pdf.js +0 -1694
- package/backend/dist/esm/backend/src/plugins/thread_monitor.d.ts +0 -18
- package/backend/dist/esm/backend/src/plugins/thread_monitor.js +0 -120
- package/backend/dist/esm/backend/src/rate_limit.d.ts +0 -148
- package/backend/dist/esm/backend/src/rate_limit.js +0 -667
- package/backend/dist/esm/backend/src/route.d.ts +0 -39
- package/backend/dist/esm/backend/src/route.js +0 -222
- package/backend/dist/esm/backend/src/server.d.ts +0 -502
- package/backend/dist/esm/backend/src/server.js +0 -2034
- package/backend/dist/esm/backend/src/server.old.d.ts +0 -594
- package/backend/dist/esm/backend/src/server.old.js +0 -2630
- package/backend/dist/esm/backend/src/splash_screen.d.ts +0 -93
- package/backend/dist/esm/backend/src/splash_screen.js +0 -156
- package/backend/dist/esm/backend/src/status.d.ts +0 -89
- package/backend/dist/esm/backend/src/status.js +0 -213
- package/backend/dist/esm/backend/src/stream.d.ts +0 -494
- package/backend/dist/esm/backend/src/stream.js +0 -1611
- package/backend/dist/esm/backend/src/users.d.ts +0 -926
- package/backend/dist/esm/backend/src/users.js +0 -2423
- package/backend/dist/esm/backend/src/utils.d.ts +0 -22
- package/backend/dist/esm/backend/src/utils.js +0 -463
- package/backend/dist/esm/backend/src/view.d.ts +0 -115
- package/backend/dist/esm/backend/src/view.js +0 -584
- package/backend/dist/esm/backend/src/vinc.d.ts +0 -6
- package/backend/dist/esm/backend/src/vinc.js +0 -6
- package/backend/dist/esm/backend/src/volt.d.ts +0 -24
- package/backend/dist/esm/backend/src/volt.js +0 -27
- package/backend/dist/esm/frontend/src/modules/request.d.ts +0 -70
- package/backend/dist/esm/frontend/src/modules/request.js +0 -117
- package/backend/old/file_watcher.ts +0 -359
- package/backend/old/request.deprc.js +0 -626
- package/backend/old/response.deprc.js +0 -354
- package/frontend/dist/backend/src/database/collection.d.ts +0 -1765
- package/frontend/dist/backend/src/database/collection.js +0 -3779
- package/frontend/dist/backend/src/database/database.d.ts +0 -92
- package/frontend/dist/backend/src/database/database.js +0 -214
- package/frontend/dist/backend/src/database/filters/filters.d.ts +0 -6
- package/frontend/dist/backend/src/database/filters/filters.js +0 -1
- package/frontend/dist/backend/src/database/filters/strict_filter.d.ts +0 -223
- package/frontend/dist/backend/src/database/filters/strict_filter.js +0 -3
- package/frontend/dist/backend/src/database/filters/strict_update_filter.d.ts +0 -165
- package/frontend/dist/backend/src/database/filters/strict_update_filter.js +0 -5
- package/frontend/dist/backend/src/database/flatten.d.ts +0 -78
- package/frontend/dist/backend/src/database/flatten.js +0 -22
- package/frontend/dist/backend/src/endpoint.d.ts +0 -346
- package/frontend/dist/backend/src/endpoint.js +0 -479
- package/frontend/dist/backend/src/errors/index.d.ts +0 -7
- package/frontend/dist/backend/src/errors/index.js +0 -7
- package/frontend/dist/backend/src/errors/internal_external.d.ts +0 -52
- package/frontend/dist/backend/src/errors/internal_external.js +0 -86
- package/frontend/dist/backend/src/errors/invalid_usage_error.d.ts +0 -41
- package/frontend/dist/backend/src/errors/invalid_usage_error.js +0 -33
- package/frontend/dist/backend/src/errors/system_error.d.ts +0 -261
- package/frontend/dist/backend/src/errors/system_error.js +0 -444
- package/frontend/dist/backend/src/events.d.ts +0 -97
- package/frontend/dist/backend/src/events.js +0 -5
- package/frontend/dist/backend/src/frontend.d.ts +0 -11
- package/frontend/dist/backend/src/frontend.js +0 -12
- package/frontend/dist/backend/src/image_endpoint.d.ts +0 -44
- package/frontend/dist/backend/src/image_endpoint.js +0 -196
- package/frontend/dist/backend/src/meta.d.ts +0 -112
- package/frontend/dist/backend/src/meta.js +0 -152
- package/frontend/dist/backend/src/payments/paddle.d.ts +0 -329
- package/frontend/dist/backend/src/payments/paddle.js +0 -2276
- package/frontend/dist/backend/src/payments/stripe/checkout.d.ts +0 -113
- package/frontend/dist/backend/src/payments/stripe/checkout.js +0 -356
- package/frontend/dist/backend/src/payments/stripe/customers.d.ts +0 -17
- package/frontend/dist/backend/src/payments/stripe/customers.js +0 -193
- package/frontend/dist/backend/src/payments/stripe/error.d.ts +0 -74
- package/frontend/dist/backend/src/payments/stripe/error.js +0 -51
- package/frontend/dist/backend/src/payments/stripe/events.d.ts +0 -155
- package/frontend/dist/backend/src/payments/stripe/events.js +0 -5
- package/frontend/dist/backend/src/payments/stripe/meters.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/meters.js +0 -318
- package/frontend/dist/backend/src/payments/stripe/payment_methods.d.ts +0 -58
- package/frontend/dist/backend/src/payments/stripe/payment_methods.js +0 -135
- package/frontend/dist/backend/src/payments/stripe/products.d.ts +0 -519
- package/frontend/dist/backend/src/payments/stripe/products.js +0 -896
- package/frontend/dist/backend/src/payments/stripe/stripe.d.ts +0 -215
- package/frontend/dist/backend/src/payments/stripe/stripe.js +0 -464
- package/frontend/dist/backend/src/payments/stripe/subscriptions.d.ts +0 -172
- package/frontend/dist/backend/src/payments/stripe/subscriptions.js +0 -754
- package/frontend/dist/backend/src/payments/stripe/utils.d.ts +0 -63
- package/frontend/dist/backend/src/payments/stripe/utils.js +0 -131
- package/frontend/dist/backend/src/payments/stripe/webhooks.d.ts +0 -105
- package/frontend/dist/backend/src/payments/stripe/webhooks.js +0 -752
- package/frontend/dist/backend/src/plugins/mail/mail.d.ts +0 -255
- package/frontend/dist/backend/src/plugins/mail/mail.js +0 -396
- package/frontend/dist/backend/src/plugins/mail/ui.d.ts +0 -297
- package/frontend/dist/backend/src/plugins/mail/ui.js +0 -1400
- package/frontend/dist/backend/src/rate_limit.d.ts +0 -148
- package/frontend/dist/backend/src/rate_limit.js +0 -667
- package/frontend/dist/backend/src/route.d.ts +0 -39
- package/frontend/dist/backend/src/route.js +0 -222
- package/frontend/dist/backend/src/server.d.ts +0 -502
- package/frontend/dist/backend/src/server.js +0 -2034
- package/frontend/dist/backend/src/splash_screen.d.ts +0 -93
- package/frontend/dist/backend/src/splash_screen.js +0 -156
- package/frontend/dist/backend/src/status.d.ts +0 -89
- package/frontend/dist/backend/src/status.js +0 -213
- package/frontend/dist/backend/src/stream.d.ts +0 -494
- package/frontend/dist/backend/src/stream.js +0 -1611
- package/frontend/dist/backend/src/users.d.ts +0 -926
- package/frontend/dist/backend/src/users.js +0 -2423
- package/frontend/dist/backend/src/utils.d.ts +0 -22
- package/frontend/dist/backend/src/utils.js +0 -463
- package/frontend/dist/backend/src/view.d.ts +0 -115
- package/frontend/dist/backend/src/view.js +0 -584
- package/frontend/dist/frontend/src/elements/base.d.ts +0 -3743
- package/frontend/dist/frontend/src/elements/base.js +0 -12151
- package/frontend/dist/frontend/src/elements/module.d.ts +0 -95
- package/frontend/dist/frontend/src/elements/module.js +0 -216
- package/frontend/dist/frontend/src/elements/register_element.d.ts +0 -3
- package/frontend/dist/frontend/src/elements/register_element.js +0 -22
- package/frontend/dist/frontend/src/elements/resize_query_manager.d.ts +0 -0
- package/frontend/dist/frontend/src/elements/resize_query_manager.js +0 -150
- package/frontend/dist/frontend/src/elements/types.d.ts +0 -52
- package/frontend/dist/frontend/src/elements/types.js +0 -5
- package/frontend/dist/frontend/src/index.d.ts +0 -21
- package/frontend/dist/frontend/src/index.js +0 -29
- package/frontend/dist/frontend/src/modules/attachment.d.ts +0 -126
- package/frontend/dist/frontend/src/modules/attachment.js +0 -306
- package/frontend/dist/frontend/src/modules/auth.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/auth.js +0 -80
- package/frontend/dist/frontend/src/modules/color.d.ts +0 -160
- package/frontend/dist/frontend/src/modules/color.js +0 -316
- package/frontend/dist/frontend/src/modules/compression.d.ts +0 -39
- package/frontend/dist/frontend/src/modules/compression.js +0 -102
- package/frontend/dist/frontend/src/modules/cookies.d.ts +0 -44
- package/frontend/dist/frontend/src/modules/cookies.js +0 -143
- package/frontend/dist/frontend/src/modules/events.d.ts +0 -31
- package/frontend/dist/frontend/src/modules/events.js +0 -79
- package/frontend/dist/frontend/src/modules/google.d.ts +0 -23
- package/frontend/dist/frontend/src/modules/google.js +0 -52
- package/frontend/dist/frontend/src/modules/meta.d.ts +0 -14
- package/frontend/dist/frontend/src/modules/meta.js +0 -48
- package/frontend/dist/frontend/src/modules/paddle.d.ts +0 -1207
- package/frontend/dist/frontend/src/modules/paddle.js +0 -2594
- package/frontend/dist/frontend/src/modules/request.d.ts +0 -70
- package/frontend/dist/frontend/src/modules/request.js +0 -117
- package/frontend/dist/frontend/src/modules/settings.d.ts +0 -3
- package/frontend/dist/frontend/src/modules/settings.js +0 -5
- package/frontend/dist/frontend/src/modules/statics.d.ts +0 -21
- package/frontend/dist/frontend/src/modules/statics.js +0 -43
- package/frontend/dist/frontend/src/modules/stripe/cart.d.ts +0 -112
- package/frontend/dist/frontend/src/modules/stripe/cart.js +0 -321
- package/frontend/dist/frontend/src/modules/stripe/checkout.d.ts +0 -7
- package/frontend/dist/frontend/src/modules/stripe/checkout.js +0 -37
- package/frontend/dist/frontend/src/modules/stripe/index.m.d.ts +0 -6
- package/frontend/dist/frontend/src/modules/stripe/index.m.js +0 -6
- package/frontend/dist/frontend/src/modules/stripe/payments.d.ts +0 -58
- package/frontend/dist/frontend/src/modules/stripe/payments.js +0 -92
- package/frontend/dist/frontend/src/modules/support.d.ts +0 -30
- package/frontend/dist/frontend/src/modules/support.js +0 -53
- package/frontend/dist/frontend/src/modules/theme.d.ts +0 -133
- package/frontend/dist/frontend/src/modules/theme.js +0 -406
- package/frontend/dist/frontend/src/modules/themes.d.ts +0 -12
- package/frontend/dist/frontend/src/modules/themes.js +0 -22
- package/frontend/dist/frontend/src/modules/user.d.ts +0 -164
- package/frontend/dist/frontend/src/modules/user.js +0 -270
- package/frontend/dist/frontend/src/modules/utils.d.ts +0 -176
- package/frontend/dist/frontend/src/modules/utils.js +0 -569
- package/frontend/dist/frontend/src/types/gradient.d.ts +0 -29
- package/frontend/dist/frontend/src/types/gradient.js +0 -79
- package/frontend/dist/frontend/src/ui/border_button.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/border_button.js +0 -228
- package/frontend/dist/frontend/src/ui/button.d.ts +0 -241
- package/frontend/dist/frontend/src/ui/button.js +0 -682
- package/frontend/dist/frontend/src/ui/canvas.d.ts +0 -138
- package/frontend/dist/frontend/src/ui/canvas.js +0 -444
- package/frontend/dist/frontend/src/ui/checkbox.d.ts +0 -74
- package/frontend/dist/frontend/src/ui/checkbox.js +0 -321
- package/frontend/dist/frontend/src/ui/code.d.ts +0 -235
- package/frontend/dist/frontend/src/ui/code.js +0 -1007
- package/frontend/dist/frontend/src/ui/context_menu.d.ts +0 -36
- package/frontend/dist/frontend/src/ui/context_menu.js +0 -205
- package/frontend/dist/frontend/src/ui/css.d.ts +0 -16
- package/frontend/dist/frontend/src/ui/css.js +0 -48
- package/frontend/dist/frontend/src/ui/divider.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/divider.js +0 -78
- package/frontend/dist/frontend/src/ui/dropdown.d.ts +0 -176
- package/frontend/dist/frontend/src/ui/dropdown.js +0 -481
- package/frontend/dist/frontend/src/ui/for_each.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/for_each.js +0 -92
- package/frontend/dist/frontend/src/ui/form.d.ts +0 -34
- package/frontend/dist/frontend/src/ui/form.js +0 -233
- package/frontend/dist/frontend/src/ui/frame_modes.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/frame_modes.js +0 -108
- package/frontend/dist/frontend/src/ui/google_map.d.ts +0 -24
- package/frontend/dist/frontend/src/ui/google_map.js +0 -106
- package/frontend/dist/frontend/src/ui/gradient.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/gradient.js +0 -131
- package/frontend/dist/frontend/src/ui/image.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/image.js +0 -576
- package/frontend/dist/frontend/src/ui/input.d.ts +0 -392
- package/frontend/dist/frontend/src/ui/input.js +0 -1201
- package/frontend/dist/frontend/src/ui/link.d.ts +0 -25
- package/frontend/dist/frontend/src/ui/link.js +0 -140
- package/frontend/dist/frontend/src/ui/list.d.ts +0 -37
- package/frontend/dist/frontend/src/ui/list.js +0 -170
- package/frontend/dist/frontend/src/ui/loader_button.d.ts +0 -80
- package/frontend/dist/frontend/src/ui/loader_button.js +0 -193
- package/frontend/dist/frontend/src/ui/loaders.d.ts +0 -57
- package/frontend/dist/frontend/src/ui/loaders.js +0 -157
- package/frontend/dist/frontend/src/ui/popup.d.ts +0 -94
- package/frontend/dist/frontend/src/ui/popup.js +0 -510
- package/frontend/dist/frontend/src/ui/pseudo.d.ts +0 -44
- package/frontend/dist/frontend/src/ui/pseudo.js +0 -154
- package/frontend/dist/frontend/src/ui/scroller.d.ts +0 -105
- package/frontend/dist/frontend/src/ui/scroller.js +0 -1253
- package/frontend/dist/frontend/src/ui/slider.d.ts +0 -45
- package/frontend/dist/frontend/src/ui/slider.js +0 -217
- package/frontend/dist/frontend/src/ui/spacer.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/spacer.js +0 -78
- package/frontend/dist/frontend/src/ui/span.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/span.js +0 -73
- package/frontend/dist/frontend/src/ui/stack.d.ts +0 -66
- package/frontend/dist/frontend/src/ui/stack.js +0 -335
- package/frontend/dist/frontend/src/ui/steps.d.ts +0 -131
- package/frontend/dist/frontend/src/ui/steps.js +0 -308
- package/frontend/dist/frontend/src/ui/style.d.ts +0 -17
- package/frontend/dist/frontend/src/ui/style.js +0 -73
- package/frontend/dist/frontend/src/ui/switch.d.ts +0 -69
- package/frontend/dist/frontend/src/ui/switch.js +0 -357
- package/frontend/dist/frontend/src/ui/table.d.ts +0 -100
- package/frontend/dist/frontend/src/ui/table.js +0 -405
- package/frontend/dist/frontend/src/ui/tabs.d.ts +0 -111
- package/frontend/dist/frontend/src/ui/tabs.js +0 -424
- package/frontend/dist/frontend/src/ui/text.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/text.js +0 -83
- package/frontend/dist/frontend/src/ui/title.d.ts +0 -91
- package/frontend/dist/frontend/src/ui/title.js +0 -272
- package/frontend/dist/frontend/src/ui/ui.d.ts +0 -35
- package/frontend/dist/frontend/src/ui/ui.js +0 -38
- package/frontend/dist/frontend/src/ui/view.d.ts +0 -15
- package/frontend/dist/frontend/src/ui/view.js +0 -88
- package/frontend/dist/frontend/src/volt.d.ts +0 -20
- package/frontend/dist/frontend/src/volt.js +0 -27
- package/frontend/examples/theme/theme.ts +0 -58
- package/frontend/tools/bundle_d_ts.js +0 -71
- package/frontend/tools/convert_to_jsdoc_input.txt +0 -9452
- package/frontend/tools/convert_to_jsdoc_output.txt +0 -7626
- package/frontend/tools/convert_to_jsdoc_tmp.js +0 -345
- package/frontend/tools/scan_mixed_imports.js +0 -69
- /package/frontend/{dist/frontend/src/css → css}/adyen.css +0 -0
- /package/frontend/{dist/frontend/src/css → css}/volt.css +0 -0
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
var stdin_exports = {};
|
|
19
|
-
__export(stdin_exports, {
|
|
20
|
-
create_payment_method_setup_intent: () => create_payment_method_setup_intent,
|
|
21
|
-
finalize_payment_method_setup: () => finalize_payment_method_setup
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(stdin_exports);
|
|
24
|
-
var import_customers = require("./customers.js");
|
|
25
|
-
var import_error = require("./error.js");
|
|
26
|
-
var import_utils = require("./utils.js");
|
|
27
|
-
function resolve_payment_method_id_from_setup_intent(setup_intent) {
|
|
28
|
-
const payment_method = setup_intent.payment_method;
|
|
29
|
-
if (!payment_method) {
|
|
30
|
-
throw new import_error.ExternalStripeError("payment_method_missing", "No payment method was provided. Please try again.", { setup_intent_id: setup_intent.id, status: setup_intent.status });
|
|
31
|
-
}
|
|
32
|
-
if (typeof payment_method === "string") {
|
|
33
|
-
return payment_method;
|
|
34
|
-
}
|
|
35
|
-
const id = payment_method.id;
|
|
36
|
-
if (!(0, import_utils.is_non_empty_string)(id)) {
|
|
37
|
-
throw new import_error.ExternalStripeError("payment_method_missing", "No payment method was provided. Please try again.", { setup_intent_id: setup_intent.id, status: setup_intent.status });
|
|
38
|
-
}
|
|
39
|
-
return id;
|
|
40
|
-
}
|
|
41
|
-
function assert_setup_intent_belongs_to_customer(opts) {
|
|
42
|
-
const { setup_intent, expected_customer_id, uid } = opts;
|
|
43
|
-
const setup_intent_customer = setup_intent.customer;
|
|
44
|
-
(0, import_utils.public_assert)(setup_intent_customer !== null, "invalid_argument", "Setup intent is missing a customer association.", { uid, setup_intent_id: setup_intent.id });
|
|
45
|
-
const setup_customer_id = typeof setup_intent_customer === "string" ? setup_intent_customer : setup_intent_customer.id;
|
|
46
|
-
(0, import_utils.public_assert)(setup_customer_id === expected_customer_id, "invalid_argument", "Setup intent does not belong to this customer.", { uid, setup_intent_id: setup_intent.id, expected_customer_id, setup_customer_id });
|
|
47
|
-
}
|
|
48
|
-
async function create_payment_method_setup_intent(client, server, opts) {
|
|
49
|
-
(0, import_utils.public_assert)((0, import_utils.is_non_empty_string)(opts.uid), "invalid_argument", "Property 'uid' must be a non-empty string.");
|
|
50
|
-
const stripe_customer_id = await (0, import_customers.ensure_stripe_customer)(client, server, opts.uid);
|
|
51
|
-
let setup_intent;
|
|
52
|
-
try {
|
|
53
|
-
setup_intent = await (0, import_utils.stripe_api_call)(() => client.setupIntents.create({
|
|
54
|
-
customer: stripe_customer_id,
|
|
55
|
-
// off_session indicates we plan to charge when the customer is not actively in-session.
|
|
56
|
-
usage: "off_session"
|
|
57
|
-
}, {
|
|
58
|
-
idempotencyKey: opts.idempotency_key
|
|
59
|
-
}), { operation: "setupIntents.create", uid: opts.uid, stripe_customer_id });
|
|
60
|
-
} catch (error) {
|
|
61
|
-
throw new import_error.InternalStripeError("api_error", "Failed to create a payment method setup intent.", { uid: opts.uid, stripe_customer_id }, error);
|
|
62
|
-
}
|
|
63
|
-
const client_secret = setup_intent.client_secret;
|
|
64
|
-
(0, import_utils.assert)((0, import_utils.is_non_empty_string)(client_secret), "api_error", "Stripe did not return a SetupIntent client_secret.", { uid: opts.uid, stripe_customer_id, setup_intent_id: setup_intent.id });
|
|
65
|
-
return {
|
|
66
|
-
id: setup_intent.id,
|
|
67
|
-
client_secret,
|
|
68
|
-
stripe_customer_id
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
async function finalize_payment_method_setup(client, server, opts) {
|
|
72
|
-
(0, import_utils.public_assert)((0, import_utils.is_non_empty_string)(opts.uid), "invalid_argument", "Property 'uid' must be a non-empty string.");
|
|
73
|
-
(0, import_utils.public_assert)((0, import_utils.is_non_empty_string)(opts.setup_intent_id), "invalid_argument", "Property 'setup_intent_id' must be a non-empty string.");
|
|
74
|
-
const stripe_customer_id = await (0, import_customers.ensure_stripe_customer)(client, server, opts.uid);
|
|
75
|
-
const setup_intent = await (0, import_utils.stripe_api_call)(() => client.setupIntents.retrieve(opts.setup_intent_id, {
|
|
76
|
-
expand: ["payment_method"]
|
|
77
|
-
}), { operation: "setupIntents.retrieve", uid: opts.uid, setup_intent_id: opts.setup_intent_id });
|
|
78
|
-
assert_setup_intent_belongs_to_customer({
|
|
79
|
-
setup_intent,
|
|
80
|
-
expected_customer_id: stripe_customer_id,
|
|
81
|
-
uid: opts.uid
|
|
82
|
-
});
|
|
83
|
-
(0, import_utils.public_assert)(setup_intent.status === "succeeded", "invalid_argument", "Payment method setup is not complete. Please finish adding your payment method.", { uid: opts.uid, setup_intent_id: setup_intent.id, status: setup_intent.status });
|
|
84
|
-
const payment_method_id = resolve_payment_method_id_from_setup_intent(setup_intent);
|
|
85
|
-
await (0, import_utils.stripe_api_call)(() => client.customers.update(stripe_customer_id, {
|
|
86
|
-
invoice_settings: {
|
|
87
|
-
default_payment_method: payment_method_id
|
|
88
|
-
}
|
|
89
|
-
}, {
|
|
90
|
-
idempotencyKey: opts.idempotency_key ?? (0, import_utils.stable_idempotency_key)(`finalize_payment_method_setup:${opts.uid}:${setup_intent.id}`)
|
|
91
|
-
}), {
|
|
92
|
-
operation: "customers.update",
|
|
93
|
-
uid: opts.uid,
|
|
94
|
-
stripe_customer_id,
|
|
95
|
-
setup_intent_id: setup_intent.id,
|
|
96
|
-
payment_method_id,
|
|
97
|
-
action: "set_default_payment_method"
|
|
98
|
-
});
|
|
99
|
-
return {
|
|
100
|
-
stripe_customer_id,
|
|
101
|
-
payment_method_id,
|
|
102
|
-
setup_intent_id: setup_intent.id
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
106
|
-
0 && (module.exports = {
|
|
107
|
-
create_payment_method_setup_intent,
|
|
108
|
-
finalize_payment_method_setup
|
|
109
|
-
});
|
|
@@ -1,519 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Daan van den Bergh
|
|
3
|
-
* @copyright © 2026 - 2026 Daan van den Bergh. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
import Stripe from "stripe";
|
|
6
|
-
import { Server } from "../../server.js";
|
|
7
|
-
/**
|
|
8
|
-
* The recurring billing interval for subscription products.
|
|
9
|
-
*/
|
|
10
|
-
export type RecurringInterval = "day" | "week" | "month" | "year";
|
|
11
|
-
/**
|
|
12
|
-
* The tax behaviour for a product or price.
|
|
13
|
-
*/
|
|
14
|
-
export type TaxBehavior = "inclusive" | "exclusive" | "unspecified";
|
|
15
|
-
/**
|
|
16
|
-
* An internal product id, simple type alias for clarity.
|
|
17
|
-
*
|
|
18
|
-
* @docs
|
|
19
|
-
*/
|
|
20
|
-
export type ProductId = string;
|
|
21
|
-
/**
|
|
22
|
-
* An internal subscription plan id, simple type alias for clarity.
|
|
23
|
-
*
|
|
24
|
-
* @docs
|
|
25
|
-
*/
|
|
26
|
-
export type SubscriptionPlanId = string;
|
|
27
|
-
/**
|
|
28
|
-
* The base product interface.
|
|
29
|
-
*/
|
|
30
|
-
interface BaseProduct {
|
|
31
|
-
/**
|
|
32
|
-
* A unique product identifier.
|
|
33
|
-
* This identifier should not be changed once set, as it is used to link the product to existing Stripe products and prices.
|
|
34
|
-
* This identifier should be unique accross all products and subscription plans.
|
|
35
|
-
*/
|
|
36
|
-
id: ProductId;
|
|
37
|
-
/** The name of the product, meant to be displayable to the user. */
|
|
38
|
-
name: string;
|
|
39
|
-
/** The description of the product. */
|
|
40
|
-
description: string;
|
|
41
|
-
/** The three-letter ISO currency code (e.g., "usd", "eur"). */
|
|
42
|
-
currency: string;
|
|
43
|
-
/**
|
|
44
|
-
* A tax code for this product.
|
|
45
|
-
* See https://docs.stripe.com/tax/tax-codes for more details and to find the right tax code for your product.
|
|
46
|
-
*/
|
|
47
|
-
tax_code: string;
|
|
48
|
-
/** The tax behaviour. */
|
|
49
|
-
tax_behavior: TaxBehavior;
|
|
50
|
-
/** Optional product images (public URLs). */
|
|
51
|
-
images?: string[];
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* The one-time payment product interface.
|
|
55
|
-
* @warning
|
|
56
|
-
* A product is a public type and is accessible in the frontend,
|
|
57
|
-
* through the default Volt Rest API.
|
|
58
|
-
* @docs
|
|
59
|
-
*/
|
|
60
|
-
export interface OneTimePaymentProduct extends BaseProduct {
|
|
61
|
-
/** The product type. */
|
|
62
|
-
type: "one_time";
|
|
63
|
-
/** The price for this product in cents. */
|
|
64
|
-
price: number;
|
|
65
|
-
/** Quantity limits for one-time purchases. */
|
|
66
|
-
quantity_rules?: {
|
|
67
|
-
/** Minimum quantity allowed. */
|
|
68
|
-
min?: number;
|
|
69
|
-
/** Maximum quantity allowed. */
|
|
70
|
-
max?: number;
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* A subscription plan.
|
|
75
|
-
*
|
|
76
|
-
* @warning
|
|
77
|
-
* A subscription plan is a public type and is accessible in the frontend,
|
|
78
|
-
* through the default Volt Rest API.
|
|
79
|
-
*
|
|
80
|
-
* @docs
|
|
81
|
-
*/
|
|
82
|
-
export interface SubscriptionPlan {
|
|
83
|
-
/**
|
|
84
|
-
* The plan identifier.
|
|
85
|
-
* This identifier should not be changed once set, as it is used to link the plan to existing Stripe prices.
|
|
86
|
-
* This identifier should be unique accross all products and subscription plans.
|
|
87
|
-
*/
|
|
88
|
-
id: SubscriptionPlanId;
|
|
89
|
-
/** The name of the plan, meant to be displayable to the user. */
|
|
90
|
-
name: string;
|
|
91
|
-
/** The description of the plan. */
|
|
92
|
-
description: string;
|
|
93
|
-
/** The price in cents. */
|
|
94
|
-
price: number;
|
|
95
|
-
/** The billing interval (e.g., "month", "year"). */
|
|
96
|
-
interval: RecurringInterval;
|
|
97
|
-
/** The recurring interval count. */
|
|
98
|
-
interval_count: number;
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* A subscription based product interface.
|
|
102
|
-
*
|
|
103
|
-
* @warning
|
|
104
|
-
* A subscription product is a public type and is accessible in the frontend,
|
|
105
|
-
* through the default Volt Rest API.
|
|
106
|
-
*
|
|
107
|
-
* @docs
|
|
108
|
-
*/
|
|
109
|
-
export interface SubscriptionProduct extends BaseProduct {
|
|
110
|
-
/** The product type. */
|
|
111
|
-
type: "subscription";
|
|
112
|
-
/** Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. */
|
|
113
|
-
trial_days?: number;
|
|
114
|
-
/**
|
|
115
|
-
* Optional billing anchor strategy for subscriptions.
|
|
116
|
-
* @default "immediately"
|
|
117
|
-
*/
|
|
118
|
-
billing_anchor?: "immediately" | "first_of_month";
|
|
119
|
-
/**
|
|
120
|
-
* The subscription plans.
|
|
121
|
-
* @warning
|
|
122
|
-
* A user can only be subscribed to a single plan per subscription product,
|
|
123
|
-
* even if multiple plans are defined here.
|
|
124
|
-
* When a user subscribes to a subscription plan while it is already subscribed to another
|
|
125
|
-
* plan of the same product, then the old plan is cancelled.
|
|
126
|
-
*/
|
|
127
|
-
plans: SubscriptionPlan[];
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Supported aggregation formulas for Stripe Billing meters.
|
|
131
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
132
|
-
*/
|
|
133
|
-
export type MeterAggregationFormula = "count" | "sum" | "last";
|
|
134
|
-
/**
|
|
135
|
-
* Nested types for the meter product definition.
|
|
136
|
-
*
|
|
137
|
-
* A meter product defines:
|
|
138
|
-
* - a Stripe Billing Meter (usage aggregation definition)
|
|
139
|
-
* - a Stripe Product + recurring metered Price attached to that meter
|
|
140
|
-
*
|
|
141
|
-
* Stripe docs:
|
|
142
|
-
* - Meters: https://docs.stripe.com/api/billing/meter
|
|
143
|
-
* - Create meter: https://docs.stripe.com/api/billing/meter/create
|
|
144
|
-
* - Prices (recurring.meter): https://docs.stripe.com/api/prices/create
|
|
145
|
-
*/
|
|
146
|
-
export declare namespace MeterProduct {
|
|
147
|
-
/**
|
|
148
|
-
* The meter product kind.
|
|
149
|
-
*/
|
|
150
|
-
type Kind = "units" | "money";
|
|
151
|
-
/** Unit price, either by integer (smallest currency unit) or decimal string. */
|
|
152
|
-
type UnitPrice = number | {
|
|
153
|
-
decimals: string;
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* A **unit-based** metered billing product backed by a Stripe Billing Meter and a **metered recurring Price**.
|
|
157
|
-
*
|
|
158
|
-
* Use this when:
|
|
159
|
-
* - you measure usage as **integer units** (requests, tokens, bytes, seconds, etc.)
|
|
160
|
-
* - and you want Stripe to bill based on aggregated usage over a billing interval
|
|
161
|
-
*
|
|
162
|
-
* Pricing:
|
|
163
|
-
* - `price: number` uses Stripe Price `unit_amount` (integer, smallest currency unit — e.g., cents)
|
|
164
|
-
* - `price: { decimals: string }` uses Stripe Price `unit_amount_decimal` (string, smallest currency unit — up to 12 decimals)
|
|
165
|
-
*
|
|
166
|
-
* Recording usage:
|
|
167
|
-
* - Call `record_meter_usage(..., { value })` with an **integer** `value`.
|
|
168
|
-
* - The meter's `aggregation_formula` controls how events are aggregated (e.g., `"sum"`, `"count"`, `"last"`).
|
|
169
|
-
*
|
|
170
|
-
* Stripe docs:
|
|
171
|
-
* - Meters: https://docs.stripe.com/api/billing/meter
|
|
172
|
-
* - Create meter: https://docs.stripe.com/api/billing/meter/create
|
|
173
|
-
* - Create price (recurring.meter): https://docs.stripe.com/api/prices/create
|
|
174
|
-
*
|
|
175
|
-
* @warning
|
|
176
|
-
* A meter product is a public type and is accessible in the frontend,
|
|
177
|
-
* through the default Volt Rest API.
|
|
178
|
-
*
|
|
179
|
-
* @example
|
|
180
|
-
* {Charge 1 cent per request}
|
|
181
|
-
* ```ts
|
|
182
|
-
* const products: Product[] = [{
|
|
183
|
-
* id: "api_requests",
|
|
184
|
-
* type: "meter",
|
|
185
|
-
* kind: "units",
|
|
186
|
-
* name: "API Requests",
|
|
187
|
-
* description: "Usage-based billing per request.",
|
|
188
|
-
* currency: "usd",
|
|
189
|
-
* tax_code: "txcd_10103000",
|
|
190
|
-
* tax_behavior: "unspecified",
|
|
191
|
-
* interval: "month",
|
|
192
|
-
* interval_count: 1,
|
|
193
|
-
* meter_event_name: "api_requests_v1",
|
|
194
|
-
* price: 1, // 1 cent per unit
|
|
195
|
-
* }];
|
|
196
|
-
*
|
|
197
|
-
* await record_meter_usage(stripe, {
|
|
198
|
-
* uid,
|
|
199
|
-
* product: initialized.api_requests,
|
|
200
|
-
* value: 1,
|
|
201
|
-
* all_products: initialized_all,
|
|
202
|
-
* });
|
|
203
|
-
* ```
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
* {Charge fractional cents per token}
|
|
207
|
-
* ```ts
|
|
208
|
-
* const products: Product[] = [{
|
|
209
|
-
* id: "tokens",
|
|
210
|
-
* type: "meter",
|
|
211
|
-
* kind: "units",
|
|
212
|
-
* name: "Tokens",
|
|
213
|
-
* description: "Charged per token with fractional cents.",
|
|
214
|
-
* currency: "usd",
|
|
215
|
-
* tax_code: "txcd_10103000",
|
|
216
|
-
* tax_behavior: "unspecified",
|
|
217
|
-
* interval: "month",
|
|
218
|
-
* interval_count: 1,
|
|
219
|
-
* meter_event_name: "tokens_v1",
|
|
220
|
-
* price: { decimals: "0.000001" }, // cents; $0.00000001 per token
|
|
221
|
-
* }];
|
|
222
|
-
* ```
|
|
223
|
-
*
|
|
224
|
-
* @docs
|
|
225
|
-
*/
|
|
226
|
-
interface UnitsMeter extends BaseProduct {
|
|
227
|
-
/** The product type. */
|
|
228
|
-
type: "meter";
|
|
229
|
-
/**
|
|
230
|
-
* Meter kind:
|
|
231
|
-
* - `"units"` means you report integer usage units with `value`,
|
|
232
|
-
* and configure the price per unit here.
|
|
233
|
-
* @dev_note Keep this required and not defaulted to "units"
|
|
234
|
-
* this makes code easier to maintain and avoids type casting / runtime code mistakes.
|
|
235
|
-
*/
|
|
236
|
-
kind: "units";
|
|
237
|
-
/**
|
|
238
|
-
* Unit price in the smallest currency unit (e.g., cents).
|
|
239
|
-
* - If number: must be an integer (Stripe `unit_amount`).
|
|
240
|
-
* - If object: decimals string up to 12 decimals (Stripe `unit_amount_decimal`).
|
|
241
|
-
*/
|
|
242
|
-
price: UnitPrice;
|
|
243
|
-
/** The billing interval for the usage price (typically `"month"`). */
|
|
244
|
-
interval: RecurringInterval;
|
|
245
|
-
/** The recurring interval count. */
|
|
246
|
-
interval_count: number;
|
|
247
|
-
/**
|
|
248
|
-
* The Stripe meter event name.
|
|
249
|
-
* This must be stable and unique across your Stripe account.
|
|
250
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
251
|
-
*/
|
|
252
|
-
meter_event_name: string;
|
|
253
|
-
/**
|
|
254
|
-
* The meter's default aggregation formula.
|
|
255
|
-
* @default "sum"
|
|
256
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
257
|
-
*/
|
|
258
|
-
aggregation_formula?: MeterAggregationFormula;
|
|
259
|
-
/**
|
|
260
|
-
* The payload key used to map usage events to a Stripe customer id.
|
|
261
|
-
* Stripe currently requires customer_mapping.type="by_id".
|
|
262
|
-
* @default "stripe_customer_id"
|
|
263
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
264
|
-
*/
|
|
265
|
-
customer_mapping_event_payload_key?: string;
|
|
266
|
-
/**
|
|
267
|
-
* The payload key used as the numeric value for the meter.
|
|
268
|
-
* @default "value"
|
|
269
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
270
|
-
*/
|
|
271
|
-
value_settings_event_payload_key?: string;
|
|
272
|
-
/**
|
|
273
|
-
* Optional pre-aggregation time window.
|
|
274
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
275
|
-
*/
|
|
276
|
-
event_time_window?: "hour" | "day";
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* A **money-based** meter product for charging *arbitrary per-event currency amounts*.
|
|
280
|
-
*
|
|
281
|
-
* Use this when:
|
|
282
|
-
* - you compute a currency cost per request (e.g. OpenAI usage cost),
|
|
283
|
-
* - and you want to record **that exact amount** (to supported precision) per event,
|
|
284
|
-
* - without maintaining token pricing tables in Stripe.
|
|
285
|
-
*
|
|
286
|
-
* How it works internally:
|
|
287
|
-
* - The Stripe recurring Price is created with a **fixed** `unit_amount_decimal`:
|
|
288
|
-
* `"0.000000000001"` **in cents** (10^-12 cents per unit).
|
|
289
|
-
* - When you call `record_meter_usage(..., { amount })`, your library converts the
|
|
290
|
-
* major-unit amount (e.g. USD) into an integer number of these pico-cent units
|
|
291
|
-
* and records that integer as the meter event value.
|
|
292
|
-
*
|
|
293
|
-
* Important constraints:
|
|
294
|
-
* - You must NOT set `price` on this meter.
|
|
295
|
-
* - Amounts can be passed as string or number.
|
|
296
|
-
* - Conversion supports up to 14 decimals in major units (because we convert to 10^14 units),
|
|
297
|
-
* and you can choose rounding behavior via `round`.
|
|
298
|
-
*
|
|
299
|
-
* @warning
|
|
300
|
-
* A meter product is a public type and is accessible in the frontend,
|
|
301
|
-
* through the default Volt Rest API.
|
|
302
|
-
*
|
|
303
|
-
* @example
|
|
304
|
-
* {Charge exact per-request OpenAI spend}
|
|
305
|
-
* You compute the request cost in USD and report it directly.
|
|
306
|
-
* ```ts
|
|
307
|
-
* const products: Product[] = [{
|
|
308
|
-
* id: "ai_usage",
|
|
309
|
-
* type: "meter",
|
|
310
|
-
* kind: "money",
|
|
311
|
-
* name: "AI Usage",
|
|
312
|
-
* description: "Billed by actual AI spend per request.",
|
|
313
|
-
* currency: "usd",
|
|
314
|
-
* tax_code: "txcd_10103000",
|
|
315
|
-
* tax_behavior: "unspecified",
|
|
316
|
-
* interval: "month",
|
|
317
|
-
* interval_count: 1,
|
|
318
|
-
* meter_event_name: "ai_usage_v1",
|
|
319
|
-
* }];
|
|
320
|
-
*
|
|
321
|
-
* // Later, when a request costs $0.007463:
|
|
322
|
-
* await record_meter_usage(stripe, {
|
|
323
|
-
* uid,
|
|
324
|
-
* product: initialized.ai_usage,
|
|
325
|
-
* amount: "0.007463",
|
|
326
|
-
* round: "exact",
|
|
327
|
-
* all_products: initialized_all,
|
|
328
|
-
* });
|
|
329
|
-
* ```
|
|
330
|
-
*
|
|
331
|
-
* @example
|
|
332
|
-
* {Charge using a float with rounding}
|
|
333
|
-
* If you have a float, pass it and choose a rounding mode.
|
|
334
|
-
* ```ts
|
|
335
|
-
* await record_meter_usage(stripe, {
|
|
336
|
-
* uid,
|
|
337
|
-
* product: initialized.ai_usage,
|
|
338
|
-
* amount: 0.007463,
|
|
339
|
-
* round: "round",
|
|
340
|
-
* all_products: initialized_all,
|
|
341
|
-
* });
|
|
342
|
-
* ```
|
|
343
|
-
*
|
|
344
|
-
* @docs
|
|
345
|
-
*/
|
|
346
|
-
interface MoneyMeter extends BaseProduct {
|
|
347
|
-
/** The product type. */
|
|
348
|
-
type: "meter";
|
|
349
|
-
/**
|
|
350
|
-
* Money meters fix the unit price internally; callers report arbitrary amounts.
|
|
351
|
-
*/
|
|
352
|
-
kind: "money";
|
|
353
|
-
/** No integer price is allowed for money meters. */
|
|
354
|
-
price?: never;
|
|
355
|
-
/** The billing interval for the usage price (typically `"month"`). */
|
|
356
|
-
interval: RecurringInterval;
|
|
357
|
-
/** The recurring interval count. */
|
|
358
|
-
interval_count: number;
|
|
359
|
-
/**
|
|
360
|
-
* The Stripe meter event name.
|
|
361
|
-
* This must be stable and unique across your Stripe account.
|
|
362
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
363
|
-
*/
|
|
364
|
-
meter_event_name: string;
|
|
365
|
-
/**
|
|
366
|
-
* The meter's default aggregation formula.
|
|
367
|
-
* @default "sum"
|
|
368
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
369
|
-
*/
|
|
370
|
-
aggregation_formula?: MeterAggregationFormula;
|
|
371
|
-
/**
|
|
372
|
-
* The payload key used to map usage events to a Stripe customer id.
|
|
373
|
-
* Stripe currently requires customer_mapping.type="by_id".
|
|
374
|
-
* @default "stripe_customer_id"
|
|
375
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
376
|
-
*/
|
|
377
|
-
customer_mapping_event_payload_key?: string;
|
|
378
|
-
/**
|
|
379
|
-
* The payload key used as the numeric value for the meter.
|
|
380
|
-
* @default "value"
|
|
381
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
382
|
-
*/
|
|
383
|
-
value_settings_event_payload_key?: string;
|
|
384
|
-
/**
|
|
385
|
-
* Optional pre-aggregation time window.
|
|
386
|
-
* @see https://docs.stripe.com/api/billing/meter/create
|
|
387
|
-
*/
|
|
388
|
-
event_time_window?: "hour" | "day";
|
|
389
|
-
}
|
|
390
|
-
/** Multiplier from major units to pico-cent units: 100 * 10^12 = 10^14. */
|
|
391
|
-
const MONEY_METER_MAJOR_TO_PICO_CENTS_SHIFT = 14;
|
|
392
|
-
/** Fixed Stripe unit_amount_decimal for money meters, in cents. */
|
|
393
|
-
const MONEY_METER_UNIT_AMOUNT_DECIMAL_CENTS = "0.000000000001";
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* A Stripe usage-based billing product backed by a Stripe Billing Meter and a metered recurring Price.
|
|
397
|
-
*
|
|
398
|
-
* This union offers two easy-to-understand variants:
|
|
399
|
-
* - `UnitsMeter`: unit-based pricing where usage is recorded as integer `value` events, and the unit price is either:
|
|
400
|
-
* - integer smallest-currency pricing (`unit_amount`) via `price: number`, or
|
|
401
|
-
* - decimal smallest-currency pricing (`unit_amount_decimal`) via `price: { decimals: string }`
|
|
402
|
-
* - `MoneyMeter`: fixed internal unit price with caller-specified per-event currency amounts recorded via `amount`
|
|
403
|
-
*
|
|
404
|
-
* @warning
|
|
405
|
-
* A meter product is a public type and is accessible in the frontend,
|
|
406
|
-
* through the default Volt Rest API.
|
|
407
|
-
*
|
|
408
|
-
* @example
|
|
409
|
-
* {Choose a meter type}
|
|
410
|
-
* Pick the variant that matches how you want to report usage:
|
|
411
|
-
* ```ts
|
|
412
|
-
* const by_requests: MeterProduct = {
|
|
413
|
-
* type: "meter",
|
|
414
|
-
* kind: "units",
|
|
415
|
-
* id: "requests",
|
|
416
|
-
* name: "Requests",
|
|
417
|
-
* description: "Charged per request.",
|
|
418
|
-
* currency: "usd",
|
|
419
|
-
* tax_code: "txcd_10103000",
|
|
420
|
-
* tax_behavior: "unspecified",
|
|
421
|
-
* interval: "month",
|
|
422
|
-
* interval_count: 1,
|
|
423
|
-
* meter_event_name: "requests_v1",
|
|
424
|
-
* price: 1,
|
|
425
|
-
* };
|
|
426
|
-
*
|
|
427
|
-
* const by_tokens_small_price: MeterProduct = {
|
|
428
|
-
* type: "meter",
|
|
429
|
-
* kind: "units",
|
|
430
|
-
* id: "tokens",
|
|
431
|
-
* name: "Tokens",
|
|
432
|
-
* description: "Charged per token with fractional cents.",
|
|
433
|
-
* currency: "usd",
|
|
434
|
-
* tax_code: "txcd_10103000",
|
|
435
|
-
* tax_behavior: "unspecified",
|
|
436
|
-
* interval: "month",
|
|
437
|
-
* interval_count: 1,
|
|
438
|
-
* meter_event_name: "tokens_v1",
|
|
439
|
-
* price: { decimals: "0.000001" },
|
|
440
|
-
* };
|
|
441
|
-
*
|
|
442
|
-
* const by_actual_spend: MeterProduct = {
|
|
443
|
-
* type: "meter",
|
|
444
|
-
* kind: "money",
|
|
445
|
-
* id: "ai_spend",
|
|
446
|
-
* name: "AI Spend",
|
|
447
|
-
* description: "Charged by actual spend per request.",
|
|
448
|
-
* currency: "usd",
|
|
449
|
-
* tax_code: "txcd_10103000",
|
|
450
|
-
* tax_behavior: "unspecified",
|
|
451
|
-
* interval: "month",
|
|
452
|
-
* interval_count: 1,
|
|
453
|
-
* meter_event_name: "ai_spend_v1",
|
|
454
|
-
* };
|
|
455
|
-
* ```
|
|
456
|
-
*
|
|
457
|
-
* @see {@link MeterProduct.UnitsMeter} for unit-based pricing (integer or decimal unit price).
|
|
458
|
-
* @see {@link MeterProduct.MoneyMeter} for arbitrary per-event currency amounts.
|
|
459
|
-
*
|
|
460
|
-
* @docs
|
|
461
|
-
*/
|
|
462
|
-
export type MeterProduct = MeterProduct.UnitsMeter | MeterProduct.MoneyMeter;
|
|
463
|
-
/** A union type of all products. */
|
|
464
|
-
export type Product = OneTimePaymentProduct | SubscriptionProduct | MeterProduct;
|
|
465
|
-
/** An initialized one-time product. */
|
|
466
|
-
export interface InitializedOneTimeProduct extends OneTimePaymentProduct {
|
|
467
|
-
/** The product type. */
|
|
468
|
-
type: "one_time";
|
|
469
|
-
/** The Stripe product id. */
|
|
470
|
-
stripe_product_id: string;
|
|
471
|
-
/** The Stripe price id. */
|
|
472
|
-
stripe_price_id: string;
|
|
473
|
-
}
|
|
474
|
-
/** An initialized subscription plan. */
|
|
475
|
-
export interface InitializedSubscriptionPlan extends SubscriptionPlan {
|
|
476
|
-
/** The type. */
|
|
477
|
-
type: "subscription_plan";
|
|
478
|
-
/** The id of the parent subscription. */
|
|
479
|
-
subscription_id: string;
|
|
480
|
-
/** The Stripe price id for this plan. */
|
|
481
|
-
stripe_price_id: string;
|
|
482
|
-
}
|
|
483
|
-
/** An initialized subscription product with its plans. */
|
|
484
|
-
export interface InitializedSubscriptionProduct extends SubscriptionProduct {
|
|
485
|
-
/** The product type. */
|
|
486
|
-
type: "subscription";
|
|
487
|
-
/** The Stripe product id. */
|
|
488
|
-
stripe_product_id: string;
|
|
489
|
-
/** The Stripe price ids for the plans. */
|
|
490
|
-
plans: InitializedSubscriptionPlan[];
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* An initialized meter product.
|
|
494
|
-
*/
|
|
495
|
-
export type InitializedMeterProduct<T extends MeterProduct = MeterProduct> = T & {
|
|
496
|
-
/** The product type. */
|
|
497
|
-
type: "meter";
|
|
498
|
-
/** The Stripe meter id. */
|
|
499
|
-
stripe_meter_id: string;
|
|
500
|
-
/** The Stripe product id. */
|
|
501
|
-
stripe_product_id: string;
|
|
502
|
-
/** The Stripe price id (metered recurring price). */
|
|
503
|
-
stripe_price_id: string;
|
|
504
|
-
};
|
|
505
|
-
/** A union type of all initialized products. */
|
|
506
|
-
export type InitializedProduct = InitializedOneTimeProduct | InitializedSubscriptionProduct | InitializedMeterProduct;
|
|
507
|
-
/**
|
|
508
|
-
* Resolve the subscription product (InitializedSubscriptionProduct) that owns a given plan.
|
|
509
|
-
*/
|
|
510
|
-
export declare function resolve_plan_to_parent_subscription(opts: {
|
|
511
|
-
plan: InitializedSubscriptionPlan;
|
|
512
|
-
all_products: InitializedProduct[];
|
|
513
|
-
}): InitializedSubscriptionProduct;
|
|
514
|
-
/**
|
|
515
|
-
* Initialize a list of products through the internal initializer, using a single paginated scan
|
|
516
|
-
* of Stripe products and prices which is then reused for all initializations.
|
|
517
|
-
*/
|
|
518
|
-
export declare function initialize_products(client: Stripe, server: Server, products: Product[]): Promise<InitializedProduct[]>;
|
|
519
|
-
export {};
|