@lightsparkdev/lightspark-sdk 0.3.1 → 0.3.3
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/CHANGELOG.md +20 -0
- package/README.md +4 -5
- package/dist/chunk-NIMBE7W3.js +8 -0
- package/dist/{chunk-7GDCZ2RB.js → chunk-PD33OHE4.js} +1 -6
- package/dist/{index-e4b8b697.d.ts → index-d2343f8f.d.ts} +1 -1
- package/dist/index.cjs +1848 -12
- package/dist/index.d.ts +12 -2
- package/dist/index.js +46 -13
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +2 -1
- package/dist/text-encoding-MDIPJAHL.js +1808 -0
- package/package.json +12 -10
- package/src/__tests__/webhooks.test.ts +26 -0
- package/src/index.ts +1 -0
- package/src/webhooks.ts +42 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- cf73a38: Upgrade yarn to latest
|
|
8
|
+
- 9c0a2fe: Move typedoc into dev deps for sdks
|
|
9
|
+
- 9c0a2fe: Declare shared deps in workspaces that require them
|
|
10
|
+
- 9c0a2fe: Fix importing TextDecoder when not available
|
|
11
|
+
- 9c0a2fe: Fix webhook JS docs and function names
|
|
12
|
+
- Updated dependencies [cf73a38]
|
|
13
|
+
- Updated dependencies [9c0a2fe]
|
|
14
|
+
- @lightsparkdev/core@0.3.2
|
|
15
|
+
|
|
16
|
+
## 0.3.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- b28feac: Fix jwt signing key generation docs in JS
|
|
21
|
+
Add webhooks support to the ts lightspark-sdk
|
|
22
|
+
|
|
3
23
|
## 0.3.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -123,15 +123,14 @@ $ ts-node createInvoice.ts -a "100" -m "Whasssupppp"
|
|
|
123
123
|
|
|
124
124
|
### Streaming Wallet Extension
|
|
125
125
|
|
|
126
|
-
This example is meant to be used in conjunction with the [Lightspark streaming sats demo](https://app.lightspark.com/demos/streaming). It can be built and installed as a Chrome extension by running:
|
|
126
|
+
This example is meant to be used in conjunction with the [Lightspark streaming sats demo](https://app.lightspark.com/demos/streaming). It can be built and installed as a Chrome extension by running (from root js-sdk directory):
|
|
127
127
|
|
|
128
128
|
```bash
|
|
129
|
-
$
|
|
130
|
-
$
|
|
131
|
-
$ npm run build
|
|
129
|
+
$ yarn
|
|
130
|
+
$ yarn build
|
|
132
131
|
```
|
|
133
132
|
|
|
134
|
-
Then, go to `chrome://extensions` and click "Load unpacked" and select the `streaming-wallet-extension/build` directory.
|
|
133
|
+
Then, go to `chrome://extensions` and click "Load unpacked" and select the `apps/examples/streaming-wallet-extension/build` directory.
|
|
135
134
|
|
|
136
135
|
When the extension is installed, it will automatically open the streaming sats demo page. You can then click extension icon to open the extension popup, which will give you the ability to create a test account with 2 nodes - a viewer node (which acts as your wallet for the demo), and a creator node, which simulates the wallet of the creator of the streaming content. The page will reload and you'll be able to start streaming sats as the video plays!
|
|
137
136
|
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
-
};
|
|
5
|
-
|
|
6
1
|
// src/objects/Account.ts
|
|
7
2
|
import autoBind10 from "auto-bind";
|
|
8
3
|
|
|
@@ -5692,7 +5687,6 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
|
5692
5687
|
var WithdrawalRequest_default = WithdrawalRequest;
|
|
5693
5688
|
|
|
5694
5689
|
export {
|
|
5695
|
-
__commonJS,
|
|
5696
5690
|
CurrencyUnit_default,
|
|
5697
5691
|
CurrencyAmountFromJson,
|
|
5698
5692
|
FRAGMENT2 as FRAGMENT,
|
|
@@ -5751,6 +5745,7 @@ export {
|
|
|
5751
5745
|
getOnChainTransactionQuery,
|
|
5752
5746
|
getRoutingTransactionQuery,
|
|
5753
5747
|
TransactionType_default,
|
|
5748
|
+
WebhookEventType,
|
|
5754
5749
|
WebhookEventType_default,
|
|
5755
5750
|
getWithdrawalQuery
|
|
5756
5751
|
};
|
|
@@ -1789,4 +1789,4 @@ type Withdrawal = OnChainTransaction & Transaction & Entity & {
|
|
|
1789
1789
|
};
|
|
1790
1790
|
declare const getWithdrawalQuery: (id: string) => Query<Withdrawal>;
|
|
1791
1791
|
|
|
1792
|
-
export {
|
|
1792
|
+
export { InvoiceData as $, Account as A, Balances as B, Channel as C, CreateTestModePaymentoutput as D, CurrencyAmount as E, CurrencyUnit as F, DeleteApiTokenInput as G, DeleteApiTokenOutput as H, Deposit as I, getDepositQuery as J, Entity as K, LightsparkClient as L, FeeEstimate as M, FundNodeInput as N, FundNodeOutput as O, GraphNode as P, Hop as Q, getHopQuery as R, HtlcAttemptFailureCode as S, IncomingPayment as T, IncomingPaymentAttempt as U, getIncomingPaymentAttemptQuery as V, WebhookEventType as W, IncomingPaymentAttemptStatus as X, IncomingPaymentToAttemptsConnection as Y, Invoice as Z, getInvoiceQuery as _, AccountToApiTokensConnection as a, InvoiceType as a0, LightningFeeEstimateForInvoiceInput as a1, LightningFeeEstimateForNodeInput as a2, LightningFeeEstimateOutput as a3, LightningTransaction as a4, getLightningTransactionQuery as a5, LightsparkNode as a6, LightsparkNodePurpose as a7, LightsparkNodeStatus as a8, LightsparkNodeToChannelsConnection as a9, Secret as aA, SendPaymentInput as aB, SendPaymentOutput as aC, SingleNodeDashboard as aD, Transaction as aE, getTransactionQuery as aF, TransactionFailures as aG, TransactionStatus as aH, TransactionType as aI, TransactionUpdate as aJ, Wallet as aK, Withdrawal as aL, getWithdrawalQuery as aM, WithdrawalMode as aN, WithdrawalRequest as aO, WithdrawalRequestStatus as aP, WithdrawalRequestToChannelClosingTransactionsConnection as aQ, WithdrawalRequestToChannelOpeningTransactionsConnection as aR, Node as aa, NodeAddress as ab, NodeAddressType as ac, NodeToAddressesConnection as ad, OnChainTransaction as ae, getOnChainTransactionQuery as af, OutgoingPayment as ag, OutgoingPaymentAttempt as ah, OutgoingPaymentAttemptStatus as ai, OutgoingPaymentAttemptToHopsConnection as aj, OutgoingPaymentToAttemptsConnection as ak, PageInfo as al, PayInvoiceInput as am, PayInvoiceOutput as an, PaymentFailureReason as ao, PaymentRequest as ap, getPaymentRequestQuery as aq, PaymentRequestData as ar, PaymentRequestStatus as as, Permission as at, RequestWithdrawalInput as au, RequestWithdrawalOutput as av, RichText as aw, RoutingTransaction as ax, getRoutingTransactionQuery as ay, RoutingTransactionFailureReason as az, AccountToChannelsConnection as b, AccountToNodesConnection as c, AccountToPaymentRequestsConnection as d, AccountToTransactionsConnection as e, AccountToWalletsConnection as f, ApiToken as g, getApiTokenQuery as h, BitcoinNetwork as i, BlockchainBalance as j, ChannelClosingTransaction as k, getChannelClosingTransactionQuery as l, ChannelFees as m, ChannelOpeningTransaction as n, getChannelOpeningTransactionQuery as o, ChannelStatus as p, ChannelToTransactionsConnection as q, CreateApiTokenInput as r, CreateApiTokenOutput as s, CreateInvoiceInput as t, CreateInvoiceOutput as u, CreateNodeWalletAddressInput as v, CreateNodeWalletAddressOutput as w, CreateTestModeInvoiceInput as x, CreateTestModeInvoiceOutput as y, CreateTestModePaymentInput as z };
|