@lightsparkdev/lightspark-sdk 1.5.11 → 1.5.13

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 (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{chunk-X7VPX3F3.js → chunk-FGFVWCTL.js} +234 -161
  3. package/dist/{index-dd1501fa.d.ts → index-2b493387.d.ts} +147 -17
  4. package/dist/index.cjs +227 -152
  5. package/dist/index.d.cts +2 -2
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +7 -3
  8. package/dist/objects/index.cjs +226 -151
  9. package/dist/objects/index.d.cts +1 -1
  10. package/dist/objects/index.d.ts +1 -1
  11. package/dist/objects/index.js +5 -1
  12. package/package.json +2 -2
  13. package/src/env.ts +3 -3
  14. package/src/objects/Account.ts +5 -0
  15. package/src/objects/ApiToken.ts +6 -0
  16. package/src/objects/AuditLogActor.ts +96 -0
  17. package/src/objects/CancelInvoiceInput.ts +4 -0
  18. package/src/objects/CancelInvoiceOutput.ts +4 -0
  19. package/src/objects/ChannelSnapshot.ts +68 -17
  20. package/src/objects/ClaimUmaInvitationInput.ts +5 -0
  21. package/src/objects/ClaimUmaInvitationOutput.ts +1 -0
  22. package/src/objects/ClaimUmaInvitationWithIncentivesInput.ts +7 -0
  23. package/src/objects/ClaimUmaInvitationWithIncentivesOutput.ts +1 -0
  24. package/src/objects/CreateApiTokenOutput.ts +1 -0
  25. package/src/objects/CreateInvitationWithIncentivesInput.ts +6 -0
  26. package/src/objects/CreateInvitationWithIncentivesOutput.ts +1 -0
  27. package/src/objects/CreateInvoiceInput.ts +4 -1
  28. package/src/objects/CreateNodeWalletAddressOutput.ts +34 -0
  29. package/src/objects/CreateUmaInvitationInput.ts +4 -0
  30. package/src/objects/CreateUmaInvitationOutput.ts +1 -0
  31. package/src/objects/Entity.ts +57 -45
  32. package/src/objects/IncomingPayment.ts +13 -0
  33. package/src/objects/IncomingPaymentsForInvoiceQueryInput.ts +31 -0
  34. package/src/objects/IncomingPaymentsForInvoiceQueryOutput.ts +71 -0
  35. package/src/objects/LightningTransaction.ts +12 -0
  36. package/src/objects/MultiSigAddressValidationParameters.ts +45 -0
  37. package/src/objects/OutgoingPayment.ts +14 -45
  38. package/src/objects/OutgoingPaymentAttempt.ts +5 -59
  39. package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +343 -1
  40. package/src/objects/PaymentFailureReason.ts +2 -0
  41. package/src/objects/Transaction.ts +12 -0
  42. package/src/objects/Wallet.ts +4 -0
  43. package/src/objects/WebhookEventType.ts +2 -0
  44. package/src/objects/WithdrawalRequestStatus.ts +2 -0
  45. package/src/objects/index.ts +11 -1
@@ -1,4 +1,4 @@
1
- export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, B as Balances, j as BlockchainBalance, C as CancelInvoiceInput, k as CancelInvoiceOutput, l as Channel, m as ChannelClosingTransaction, o as ChannelFees, p as ChannelOpeningTransaction, r as ChannelSnapshot, s as ChannelStatus, t as ChannelToTransactionsConnection, u as ClaimUmaInvitationInput, v as ClaimUmaInvitationOutput, w as ClaimUmaInvitationWithIncentivesInput, x as ClaimUmaInvitationWithIncentivesOutput, y as ComplianceProvider, z as Connection, D as CreateApiTokenInput, E as CreateApiTokenOutput, F as CreateInvitationWithIncentivesInput, G as CreateInvitationWithIncentivesOutput, H as CreateInvoiceInput, I as CreateInvoiceOutput, J as CreateLnurlInvoiceInput, K as CreateNodeWalletAddressInput, M as CreateNodeWalletAddressOutput, N as CreateTestModeInvoiceInput, O as CreateTestModeInvoiceOutput, P as CreateTestModePaymentInput, Q as CreateTestModePaymentoutput, R as CreateUmaInvitationInput, S as CreateUmaInvitationOutput, T as CreateUmaInvoiceInput, U as CurrencyAmount, V as CurrencyUnit, X as DailyLiquidityForecast, Y as DeclineToSignMessagesInput, Z as DeclineToSignMessagesOutput, _ as DeleteApiTokenInput, $ as DeleteApiTokenOutput, a0 as Deposit, a2 as Entity, a3 as FeeEstimate, a4 as FundNodeInput, a5 as FundNodeOutput, a6 as GraphNode, a7 as Hop, a9 as HtlcAttemptFailureCode, aa as IdAndSignature, ab as IncentivesIneligibilityReason, ac as IncentivesStatus, ad as IncomingPayment, ae as IncomingPaymentAttempt, ag as IncomingPaymentAttemptStatus, ah as IncomingPaymentToAttemptsConnection, ai as Invoice, ak as InvoiceData, al as InvoiceType, am as LightningFeeEstimateForInvoiceInput, an as LightningFeeEstimateForNodeInput, ao as LightningFeeEstimateOutput, ap as LightningPaymentDirection, aq as LightningTransaction, as as LightsparkNode, au as LightsparkNodeOwner, aw as LightsparkNodeStatus, ax as LightsparkNodeToChannelsConnection, ay as LightsparkNodeToDailyLiquidityForecastsConnection, az as LightsparkNodeWithOSK, aA as LightsparkNodeWithRemoteSigning, aB as Node, aD as NodeAddress, aE as NodeAddressType, aF as NodeToAddressesConnection, aG as OnChainTransaction, aI as OutgoingPayment, aJ as OutgoingPaymentAttempt, aK as OutgoingPaymentAttemptStatus, aL as OutgoingPaymentAttemptToHopsConnection, aM as OutgoingPaymentToAttemptsConnection, aN as OutgoingPaymentsForInvoiceQueryInput, aO as OutgoingPaymentsForInvoiceQueryOutput, aP as PageInfo, aQ as PayInvoiceInput, aR as PayInvoiceOutput, aS as PayUmaInvoiceInput, aT as PaymentDirection, aU as PaymentFailureReason, aV as PaymentRequest, aX as PaymentRequestData, aY as PaymentRequestStatus, aZ as Permission, a_ as PostTransactionData, a$ as RegionCode, b0 as RegisterPaymentInput, b1 as RegisterPaymentOutput, b2 as ReleaseChannelPerCommitmentSecretInput, b3 as ReleaseChannelPerCommitmentSecretOutput, b4 as ReleasePaymentPreimageInput, b5 as ReleasePaymentPreimageOutput, b6 as RemoteSigningSubEventType, b7 as RequestWithdrawalInput, b8 as RequestWithdrawalOutput, b9 as RichText, ba as RiskRating, bb as RoutingTransaction, bd as RoutingTransactionFailureReason, be as ScreenNodeInput, bf as ScreenNodeOutput, bg as Secret, bh as SendPaymentInput, bi as SendPaymentOutput, bj as SetInvoicePaymentHashInput, bk as SetInvoicePaymentHashOutput, bl as SignInvoiceInput, bm as SignInvoiceOutput, bn as SignMessagesInput, bo as SignMessagesOutput, bp as Signable, br as SignablePayload, bt as SignablePayloadStatus, bu as SingleNodeDashboard, bv as Transaction, bx as TransactionFailures, by as TransactionStatus, bz as TransactionType, bA as TransactionUpdate, bB as UmaInvitation, bD as UpdateChannelPerCommitmentPointInput, bE as UpdateChannelPerCommitmentPointOutput, bF as UpdateNodeSharedSecretInput, bG as UpdateNodeSharedSecretOutput, bH as Wallet, bI as WalletStatus, bJ as WalletToPaymentRequestsConnection, bK as WalletToTransactionsConnection, bL as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bM as Withdrawal, bO as WithdrawalFeeEstimateInput, bP as WithdrawalFeeEstimateOutput, bQ as WithdrawalMode, bR as WithdrawalRequest, bS as WithdrawalRequestStatus, bT as WithdrawalRequestToChannelClosingTransactionsConnection, bU as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, n as getChannelClosingTransactionQuery, q as getChannelOpeningTransactionQuery, a1 as getDepositQuery, a8 as getHopQuery, af as getIncomingPaymentAttemptQuery, aj as getInvoiceQuery, ar as getLightningTransactionQuery, av as getLightsparkNodeOwnerQuery, at as getLightsparkNodeQuery, aC as getNodeQuery, aH as getOnChainTransactionQuery, aW as getPaymentRequestQuery, bc as getRoutingTransactionQuery, bs as getSignablePayloadQuery, bq as getSignableQuery, bw as getTransactionQuery, bC as getUmaInvitationQuery, bN as getWithdrawalQuery } from '../index-dd1501fa.js';
1
+ export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FeeEstimate, a7 as FundNodeInput, a8 as FundNodeOutput, a9 as GraphNode, aa as Hop, ac as HtlcAttemptFailureCode, ad as IdAndSignature, ae as IncentivesIneligibilityReason, af as IncentivesStatus, ag as IncomingPayment, ah as IncomingPaymentAttempt, aj as IncomingPaymentAttemptStatus, ak as IncomingPaymentToAttemptsConnection, al as IncomingPaymentsForInvoiceQueryInput, am as IncomingPaymentsForInvoiceQueryOutput, an as Invoice, ap as InvoiceData, aq as InvoiceType, ar as LightningFeeEstimateForInvoiceInput, as as LightningFeeEstimateForNodeInput, at as LightningFeeEstimateOutput, au as LightningPaymentDirection, av as LightningTransaction, ax as LightsparkNode, az as LightsparkNodeOwner, aB as LightsparkNodeStatus, aC as LightsparkNodeToChannelsConnection, aD as LightsparkNodeToDailyLiquidityForecastsConnection, aE as LightsparkNodeWithOSK, aF as LightsparkNodeWithRemoteSigning, aG as MultiSigAddressValidationParameters, aH as Node, aJ as NodeAddress, aK as NodeAddressType, aL as NodeToAddressesConnection, aM as OnChainTransaction, aO as OutgoingPayment, aP as OutgoingPaymentAttempt, aQ as OutgoingPaymentAttemptStatus, aR as OutgoingPaymentAttemptToHopsConnection, aS as OutgoingPaymentToAttemptsConnection, aT as OutgoingPaymentsForInvoiceQueryInput, aU as OutgoingPaymentsForInvoiceQueryOutput, aV as PageInfo, aW as PayInvoiceInput, aX as PayInvoiceOutput, aY as PayUmaInvoiceInput, aZ as PaymentDirection, a_ as PaymentFailureReason, a$ as PaymentRequest, b1 as PaymentRequestData, b2 as PaymentRequestStatus, b3 as Permission, b4 as PostTransactionData, b5 as RegionCode, b6 as RegisterPaymentInput, b7 as RegisterPaymentOutput, b8 as ReleaseChannelPerCommitmentSecretInput, b9 as ReleaseChannelPerCommitmentSecretOutput, ba as ReleasePaymentPreimageInput, bb as ReleasePaymentPreimageOutput, bc as RemoteSigningSubEventType, bd as RequestWithdrawalInput, be as RequestWithdrawalOutput, bf as RichText, bg as RiskRating, bh as RoutingTransaction, bj as RoutingTransactionFailureReason, bk as ScreenNodeInput, bl as ScreenNodeOutput, bm as Secret, bn as SendPaymentInput, bo as SendPaymentOutput, bp as SetInvoicePaymentHashInput, bq as SetInvoicePaymentHashOutput, br as SignInvoiceInput, bs as SignInvoiceOutput, bt as SignMessagesInput, bu as SignMessagesOutput, bv as Signable, bx as SignablePayload, bz as SignablePayloadStatus, bA as SingleNodeDashboard, bB as Transaction, bD as TransactionFailures, bE as TransactionStatus, bF as TransactionType, bG as TransactionUpdate, bH as UmaInvitation, bJ as UpdateChannelPerCommitmentPointInput, bK as UpdateChannelPerCommitmentPointOutput, bL as UpdateNodeSharedSecretInput, bM as UpdateNodeSharedSecretOutput, bN as Wallet, bO as WalletStatus, bP as WalletToPaymentRequestsConnection, bQ as WalletToTransactionsConnection, bR as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bS as Withdrawal, bU as WithdrawalFeeEstimateInput, bV as WithdrawalFeeEstimateOutput, bW as WithdrawalMode, bX as WithdrawalRequest, bY as WithdrawalRequestStatus, bZ as WithdrawalRequestToChannelClosingTransactionsConnection, b_ as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ab as getHopQuery, ai as getIncomingPaymentAttemptQuery, ao as getInvoiceQuery, aw as getLightningTransactionQuery, aA as getLightsparkNodeOwnerQuery, ay as getLightsparkNodeQuery, aI as getNodeQuery, aN as getOnChainTransactionQuery, b0 as getPaymentRequestQuery, bi as getRoutingTransactionQuery, by as getSignablePayloadQuery, bw as getSignableQuery, bC as getTransactionQuery, bI as getUmaInvitationQuery, bT as getWithdrawalQuery } from '../index-2b493387.js';
2
2
  export { B as BitcoinNetwork } from '../BitcoinNetwork-4f6ea015.js';
3
3
  import '@lightsparkdev/core';
4
4
  import 'zen-observable';
@@ -1,4 +1,4 @@
1
- export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, B as Balances, j as BlockchainBalance, C as CancelInvoiceInput, k as CancelInvoiceOutput, l as Channel, m as ChannelClosingTransaction, o as ChannelFees, p as ChannelOpeningTransaction, r as ChannelSnapshot, s as ChannelStatus, t as ChannelToTransactionsConnection, u as ClaimUmaInvitationInput, v as ClaimUmaInvitationOutput, w as ClaimUmaInvitationWithIncentivesInput, x as ClaimUmaInvitationWithIncentivesOutput, y as ComplianceProvider, z as Connection, D as CreateApiTokenInput, E as CreateApiTokenOutput, F as CreateInvitationWithIncentivesInput, G as CreateInvitationWithIncentivesOutput, H as CreateInvoiceInput, I as CreateInvoiceOutput, J as CreateLnurlInvoiceInput, K as CreateNodeWalletAddressInput, M as CreateNodeWalletAddressOutput, N as CreateTestModeInvoiceInput, O as CreateTestModeInvoiceOutput, P as CreateTestModePaymentInput, Q as CreateTestModePaymentoutput, R as CreateUmaInvitationInput, S as CreateUmaInvitationOutput, T as CreateUmaInvoiceInput, U as CurrencyAmount, V as CurrencyUnit, X as DailyLiquidityForecast, Y as DeclineToSignMessagesInput, Z as DeclineToSignMessagesOutput, _ as DeleteApiTokenInput, $ as DeleteApiTokenOutput, a0 as Deposit, a2 as Entity, a3 as FeeEstimate, a4 as FundNodeInput, a5 as FundNodeOutput, a6 as GraphNode, a7 as Hop, a9 as HtlcAttemptFailureCode, aa as IdAndSignature, ab as IncentivesIneligibilityReason, ac as IncentivesStatus, ad as IncomingPayment, ae as IncomingPaymentAttempt, ag as IncomingPaymentAttemptStatus, ah as IncomingPaymentToAttemptsConnection, ai as Invoice, ak as InvoiceData, al as InvoiceType, am as LightningFeeEstimateForInvoiceInput, an as LightningFeeEstimateForNodeInput, ao as LightningFeeEstimateOutput, ap as LightningPaymentDirection, aq as LightningTransaction, as as LightsparkNode, au as LightsparkNodeOwner, aw as LightsparkNodeStatus, ax as LightsparkNodeToChannelsConnection, ay as LightsparkNodeToDailyLiquidityForecastsConnection, az as LightsparkNodeWithOSK, aA as LightsparkNodeWithRemoteSigning, aB as Node, aD as NodeAddress, aE as NodeAddressType, aF as NodeToAddressesConnection, aG as OnChainTransaction, aI as OutgoingPayment, aJ as OutgoingPaymentAttempt, aK as OutgoingPaymentAttemptStatus, aL as OutgoingPaymentAttemptToHopsConnection, aM as OutgoingPaymentToAttemptsConnection, aN as OutgoingPaymentsForInvoiceQueryInput, aO as OutgoingPaymentsForInvoiceQueryOutput, aP as PageInfo, aQ as PayInvoiceInput, aR as PayInvoiceOutput, aS as PayUmaInvoiceInput, aT as PaymentDirection, aU as PaymentFailureReason, aV as PaymentRequest, aX as PaymentRequestData, aY as PaymentRequestStatus, aZ as Permission, a_ as PostTransactionData, a$ as RegionCode, b0 as RegisterPaymentInput, b1 as RegisterPaymentOutput, b2 as ReleaseChannelPerCommitmentSecretInput, b3 as ReleaseChannelPerCommitmentSecretOutput, b4 as ReleasePaymentPreimageInput, b5 as ReleasePaymentPreimageOutput, b6 as RemoteSigningSubEventType, b7 as RequestWithdrawalInput, b8 as RequestWithdrawalOutput, b9 as RichText, ba as RiskRating, bb as RoutingTransaction, bd as RoutingTransactionFailureReason, be as ScreenNodeInput, bf as ScreenNodeOutput, bg as Secret, bh as SendPaymentInput, bi as SendPaymentOutput, bj as SetInvoicePaymentHashInput, bk as SetInvoicePaymentHashOutput, bl as SignInvoiceInput, bm as SignInvoiceOutput, bn as SignMessagesInput, bo as SignMessagesOutput, bp as Signable, br as SignablePayload, bt as SignablePayloadStatus, bu as SingleNodeDashboard, bv as Transaction, bx as TransactionFailures, by as TransactionStatus, bz as TransactionType, bA as TransactionUpdate, bB as UmaInvitation, bD as UpdateChannelPerCommitmentPointInput, bE as UpdateChannelPerCommitmentPointOutput, bF as UpdateNodeSharedSecretInput, bG as UpdateNodeSharedSecretOutput, bH as Wallet, bI as WalletStatus, bJ as WalletToPaymentRequestsConnection, bK as WalletToTransactionsConnection, bL as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bM as Withdrawal, bO as WithdrawalFeeEstimateInput, bP as WithdrawalFeeEstimateOutput, bQ as WithdrawalMode, bR as WithdrawalRequest, bS as WithdrawalRequestStatus, bT as WithdrawalRequestToChannelClosingTransactionsConnection, bU as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, n as getChannelClosingTransactionQuery, q as getChannelOpeningTransactionQuery, a1 as getDepositQuery, a8 as getHopQuery, af as getIncomingPaymentAttemptQuery, aj as getInvoiceQuery, ar as getLightningTransactionQuery, av as getLightsparkNodeOwnerQuery, at as getLightsparkNodeQuery, aC as getNodeQuery, aH as getOnChainTransactionQuery, aW as getPaymentRequestQuery, bc as getRoutingTransactionQuery, bs as getSignablePayloadQuery, bq as getSignableQuery, bw as getTransactionQuery, bC as getUmaInvitationQuery, bN as getWithdrawalQuery } from '../index-dd1501fa.js';
1
+ export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FeeEstimate, a7 as FundNodeInput, a8 as FundNodeOutput, a9 as GraphNode, aa as Hop, ac as HtlcAttemptFailureCode, ad as IdAndSignature, ae as IncentivesIneligibilityReason, af as IncentivesStatus, ag as IncomingPayment, ah as IncomingPaymentAttempt, aj as IncomingPaymentAttemptStatus, ak as IncomingPaymentToAttemptsConnection, al as IncomingPaymentsForInvoiceQueryInput, am as IncomingPaymentsForInvoiceQueryOutput, an as Invoice, ap as InvoiceData, aq as InvoiceType, ar as LightningFeeEstimateForInvoiceInput, as as LightningFeeEstimateForNodeInput, at as LightningFeeEstimateOutput, au as LightningPaymentDirection, av as LightningTransaction, ax as LightsparkNode, az as LightsparkNodeOwner, aB as LightsparkNodeStatus, aC as LightsparkNodeToChannelsConnection, aD as LightsparkNodeToDailyLiquidityForecastsConnection, aE as LightsparkNodeWithOSK, aF as LightsparkNodeWithRemoteSigning, aG as MultiSigAddressValidationParameters, aH as Node, aJ as NodeAddress, aK as NodeAddressType, aL as NodeToAddressesConnection, aM as OnChainTransaction, aO as OutgoingPayment, aP as OutgoingPaymentAttempt, aQ as OutgoingPaymentAttemptStatus, aR as OutgoingPaymentAttemptToHopsConnection, aS as OutgoingPaymentToAttemptsConnection, aT as OutgoingPaymentsForInvoiceQueryInput, aU as OutgoingPaymentsForInvoiceQueryOutput, aV as PageInfo, aW as PayInvoiceInput, aX as PayInvoiceOutput, aY as PayUmaInvoiceInput, aZ as PaymentDirection, a_ as PaymentFailureReason, a$ as PaymentRequest, b1 as PaymentRequestData, b2 as PaymentRequestStatus, b3 as Permission, b4 as PostTransactionData, b5 as RegionCode, b6 as RegisterPaymentInput, b7 as RegisterPaymentOutput, b8 as ReleaseChannelPerCommitmentSecretInput, b9 as ReleaseChannelPerCommitmentSecretOutput, ba as ReleasePaymentPreimageInput, bb as ReleasePaymentPreimageOutput, bc as RemoteSigningSubEventType, bd as RequestWithdrawalInput, be as RequestWithdrawalOutput, bf as RichText, bg as RiskRating, bh as RoutingTransaction, bj as RoutingTransactionFailureReason, bk as ScreenNodeInput, bl as ScreenNodeOutput, bm as Secret, bn as SendPaymentInput, bo as SendPaymentOutput, bp as SetInvoicePaymentHashInput, bq as SetInvoicePaymentHashOutput, br as SignInvoiceInput, bs as SignInvoiceOutput, bt as SignMessagesInput, bu as SignMessagesOutput, bv as Signable, bx as SignablePayload, bz as SignablePayloadStatus, bA as SingleNodeDashboard, bB as Transaction, bD as TransactionFailures, bE as TransactionStatus, bF as TransactionType, bG as TransactionUpdate, bH as UmaInvitation, bJ as UpdateChannelPerCommitmentPointInput, bK as UpdateChannelPerCommitmentPointOutput, bL as UpdateNodeSharedSecretInput, bM as UpdateNodeSharedSecretOutput, bN as Wallet, bO as WalletStatus, bP as WalletToPaymentRequestsConnection, bQ as WalletToTransactionsConnection, bR as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bS as Withdrawal, bU as WithdrawalFeeEstimateInput, bV as WithdrawalFeeEstimateOutput, bW as WithdrawalMode, bX as WithdrawalRequest, bY as WithdrawalRequestStatus, bZ as WithdrawalRequestToChannelClosingTransactionsConnection, b_ as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ab as getHopQuery, ai as getIncomingPaymentAttemptQuery, ao as getInvoiceQuery, aw as getLightningTransactionQuery, aA as getLightsparkNodeOwnerQuery, ay as getLightsparkNodeQuery, aI as getNodeQuery, aN as getOnChainTransactionQuery, b0 as getPaymentRequestQuery, bi as getRoutingTransactionQuery, by as getSignablePayloadQuery, bw as getSignableQuery, bC as getTransactionQuery, bI as getUmaInvitationQuery, bT as getWithdrawalQuery } from '../index-2b493387.js';
2
2
  export { B as BitcoinNetwork } from '../BitcoinNetwork-4f6ea015.js';
3
3
  import '@lightsparkdev/core';
4
4
  import 'zen-observable';
@@ -37,8 +37,10 @@ import {
37
37
  WithdrawalRequestStatus_default,
38
38
  WithdrawalRequest_default,
39
39
  getApiTokenQuery,
40
+ getAuditLogActorQuery,
40
41
  getChannelClosingTransactionQuery,
41
42
  getChannelOpeningTransactionQuery,
43
+ getChannelSnapshotQuery,
42
44
  getDepositQuery,
43
45
  getHopQuery,
44
46
  getIncomingPaymentAttemptQuery,
@@ -55,7 +57,7 @@ import {
55
57
  getTransactionQuery,
56
58
  getUmaInvitationQuery,
57
59
  getWithdrawalQuery
58
- } from "../chunk-X7VPX3F3.js";
60
+ } from "../chunk-FGFVWCTL.js";
59
61
  import {
60
62
  BitcoinNetwork_default
61
63
  } from "../chunk-K6SAUSAX.js";
@@ -100,8 +102,10 @@ export {
100
102
  WithdrawalRequest_default as WithdrawalRequest,
101
103
  WithdrawalRequestStatus_default as WithdrawalRequestStatus,
102
104
  getApiTokenQuery,
105
+ getAuditLogActorQuery,
103
106
  getChannelClosingTransactionQuery,
104
107
  getChannelOpeningTransactionQuery,
108
+ getChannelSnapshotQuery,
105
109
  getDepositQuery,
106
110
  getHopQuery,
107
111
  getIncomingPaymentAttemptQuery,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/lightspark-sdk",
3
- "version": "1.5.11",
3
+ "version": "1.5.13",
4
4
  "description": "Lightspark JS SDK",
5
5
  "author": "Lightspark Inc.",
6
6
  "keywords": [
@@ -85,7 +85,7 @@
85
85
  },
86
86
  "license": "Apache-2.0",
87
87
  "dependencies": {
88
- "@lightsparkdev/core": "1.0.22",
88
+ "@lightsparkdev/core": "1.1.0",
89
89
  "@lightsparkdev/crypto-wasm": "0.1.3",
90
90
  "crypto-browserify": "^3.12.0",
91
91
  "dayjs": "^1.11.7",
package/src/env.ts CHANGED
@@ -39,10 +39,10 @@ export const getCredentialsFromEnvOrThrow = (): EnvCredentials => {
39
39
  );
40
40
  }
41
41
 
42
- const apiTokenClientId = env[RequiredCredentials.ClientId]!;
43
- const apiTokenClientSecret = env[RequiredCredentials.ClientSecret]!;
42
+ const apiTokenClientId = env[RequiredCredentials.ClientId];
43
+ const apiTokenClientSecret = env[RequiredCredentials.ClientSecret];
44
44
  const bitcoinNetwork = getBitcoinNetworkOrThrow(
45
- env[RequiredCredentials.BitcoinNetwork]! as BitcoinNetwork,
45
+ env[RequiredCredentials.BitcoinNetwork] as BitcoinNetwork,
46
46
  );
47
47
  const testNodePassword = "1234!@#$";
48
48
  const baseUrl = env["LIGHTSPARK_BASE_URL"] || "api.lightspark.com";
@@ -80,6 +80,7 @@ query FetchAccountToApiTokensConnection($first: Int, $after: String) {
80
80
  api_token_client_id: client_id
81
81
  api_token_name: name
82
82
  api_token_permissions: permissions
83
+ api_token_is_deleted: is_deleted
83
84
  }
84
85
  }
85
86
  }
@@ -885,6 +886,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
885
886
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
886
887
  }
887
888
  incoming_payment_transaction_hash: transaction_hash
889
+ incoming_payment_is_uma: is_uma
888
890
  incoming_payment_destination: destination {
889
891
  id
890
892
  }
@@ -903,6 +905,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
903
905
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
904
906
  }
905
907
  }
908
+ incoming_payment_is_internal_payment: is_internal_payment
906
909
  }
907
910
  ... on OutgoingPayment {
908
911
  __typename
@@ -920,6 +923,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
920
923
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
921
924
  }
922
925
  outgoing_payment_transaction_hash: transaction_hash
926
+ outgoing_payment_is_uma: is_uma
923
927
  outgoing_payment_origin: origin {
924
928
  id
925
929
  }
@@ -1246,6 +1250,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
1246
1250
  }
1247
1251
  }
1248
1252
  outgoing_payment_payment_preimage: payment_preimage
1253
+ outgoing_payment_is_internal_payment: is_internal_payment
1249
1254
  }
1250
1255
  ... on RoutingTransaction {
1251
1256
  __typename
@@ -36,6 +36,9 @@ interface ApiToken {
36
36
  /** A list of permissions granted to the token. **/
37
37
  permissions: Permission[];
38
38
 
39
+ /** Whether the api token has been deleted. **/
40
+ isDeleted: boolean;
41
+
39
42
  /** The typename of the object **/
40
43
  typename: string;
41
44
  }
@@ -48,6 +51,7 @@ export const ApiTokenFromJson = (obj: any): ApiToken => {
48
51
  clientId: obj["api_token_client_id"],
49
52
  name: obj["api_token_name"],
50
53
  permissions: obj["api_token_permissions"].map((e) => Permission[e]),
54
+ isDeleted: obj["api_token_is_deleted"],
51
55
  typename: "ApiToken",
52
56
  } as ApiToken;
53
57
  };
@@ -60,6 +64,7 @@ export const ApiTokenToJson = (obj: ApiToken): any => {
60
64
  api_token_client_id: obj.clientId,
61
65
  api_token_name: obj.name,
62
66
  api_token_permissions: obj.permissions,
67
+ api_token_is_deleted: obj.isDeleted,
63
68
  };
64
69
  };
65
70
 
@@ -72,6 +77,7 @@ fragment ApiTokenFragment on ApiToken {
72
77
  api_token_client_id: client_id
73
78
  api_token_name: name
74
79
  api_token_permissions: permissions
80
+ api_token_is_deleted: is_deleted
75
81
  }`;
76
82
 
77
83
  export const getApiTokenQuery = (id: string): Query<ApiToken> => {
@@ -0,0 +1,96 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+
3
+ import { LightsparkException, type Query } from "@lightsparkdev/core";
4
+ import type ApiToken from "./ApiToken.js";
5
+ import Permission from "./Permission.js";
6
+
7
+ /** Audit log actor who called the GraphQL mutation **/
8
+ interface AuditLogActor {
9
+ /**
10
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an
11
+ * opaque string.
12
+ **/
13
+ id: string;
14
+
15
+ /** The date and time when the entity was first created. **/
16
+ createdAt: string;
17
+
18
+ /** The date and time when the entity was last updated. **/
19
+ updatedAt: string;
20
+
21
+ /** The typename of the object **/
22
+ typename: string;
23
+ }
24
+
25
+ export const AuditLogActorFromJson = (obj: any): AuditLogActor => {
26
+ if (obj["__typename"] == "ApiToken") {
27
+ return {
28
+ id: obj["api_token_id"],
29
+ createdAt: obj["api_token_created_at"],
30
+ updatedAt: obj["api_token_updated_at"],
31
+ clientId: obj["api_token_client_id"],
32
+ name: obj["api_token_name"],
33
+ permissions: obj["api_token_permissions"].map((e) => Permission[e]),
34
+ isDeleted: obj["api_token_is_deleted"],
35
+ typename: "ApiToken",
36
+ } as ApiToken;
37
+ }
38
+ throw new LightsparkException(
39
+ "DeserializationError",
40
+ `Couldn't find a concrete type for interface AuditLogActor corresponding to the typename=${obj["__typename"]}`,
41
+ );
42
+ };
43
+ export const AuditLogActorToJson = (obj: AuditLogActor): any => {
44
+ if (obj.typename == "ApiToken") {
45
+ const apiToken = obj as ApiToken;
46
+ return {
47
+ __typename: "ApiToken",
48
+ api_token_id: apiToken.id,
49
+ api_token_created_at: apiToken.createdAt,
50
+ api_token_updated_at: apiToken.updatedAt,
51
+ api_token_client_id: apiToken.clientId,
52
+ api_token_name: apiToken.name,
53
+ api_token_permissions: apiToken.permissions,
54
+ api_token_is_deleted: apiToken.isDeleted,
55
+ };
56
+ }
57
+ throw new LightsparkException(
58
+ "DeserializationError",
59
+ `Couldn't find a concrete type for interface AuditLogActor corresponding to the typename=${obj.typename}`,
60
+ );
61
+ };
62
+
63
+ export const FRAGMENT = `
64
+ fragment AuditLogActorFragment on AuditLogActor {
65
+ __typename
66
+ ... on ApiToken {
67
+ __typename
68
+ api_token_id: id
69
+ api_token_created_at: created_at
70
+ api_token_updated_at: updated_at
71
+ api_token_client_id: client_id
72
+ api_token_name: name
73
+ api_token_permissions: permissions
74
+ api_token_is_deleted: is_deleted
75
+ }
76
+ }`;
77
+
78
+ export const getAuditLogActorQuery = (id: string): Query<AuditLogActor> => {
79
+ return {
80
+ queryPayload: `
81
+ query GetAuditLogActor($id: ID!) {
82
+ entity(id: $id) {
83
+ ... on AuditLogActor {
84
+ ...AuditLogActorFragment
85
+ }
86
+ }
87
+ }
88
+
89
+ ${FRAGMENT}
90
+ `,
91
+ variables: { id },
92
+ constructObject: (data: any) => AuditLogActorFromJson(data.entity),
93
+ };
94
+ };
95
+
96
+ export default AuditLogActor;
@@ -1,5 +1,9 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
+ /**
4
+ * The unique identifier of the Invoice that should be cancelled. The invoice is supposed to be
5
+ * open, not settled and not expired. *
6
+ */
3
7
  interface CancelInvoiceInput {
4
8
  invoiceId: string;
5
9
  }
@@ -1,5 +1,9 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
+ /**
4
+ * The Invoice that was cancelled. If the invoice was already cancelled, the same invoice is
5
+ * returned. *
6
+ */
3
7
  interface CancelInvoiceOutput {
4
8
  invoiceId: string;
5
9
  }
@@ -1,5 +1,6 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
+ import { type Query } from "@lightsparkdev/core";
3
4
  import type CurrencyAmount from "./CurrencyAmount.js";
4
5
  import {
5
6
  CurrencyAmountFromJson,
@@ -7,71 +8,98 @@ import {
7
8
  } from "./CurrencyAmount.js";
8
9
 
9
10
  interface ChannelSnapshot {
11
+ /**
12
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an
13
+ * opaque string.
14
+ **/
15
+ id: string;
16
+
17
+ /** The date and time when the entity was first created. **/
18
+ createdAt: string;
19
+
20
+ /** The date and time when the entity was last updated. **/
21
+ updatedAt: string;
22
+
10
23
  channelId: string;
11
24
 
25
+ /** The timestamp that was used to query the snapshot of the channel **/
12
26
  timestamp: string;
13
27
 
28
+ /** The typename of the object **/
29
+ typename: string;
30
+
14
31
  localBalance?: CurrencyAmount | undefined;
15
32
 
16
33
  localUnsettledBalance?: CurrencyAmount | undefined;
17
34
 
18
- localChannelReserve?: CurrencyAmount | undefined;
19
-
20
35
  remoteBalance?: CurrencyAmount | undefined;
21
36
 
22
37
  remoteUnsettledBalance?: CurrencyAmount | undefined;
38
+
39
+ status?: string | undefined;
40
+
41
+ localChannelReserve?: CurrencyAmount | undefined;
23
42
  }
24
43
 
25
44
  export const ChannelSnapshotFromJson = (obj: any): ChannelSnapshot => {
26
45
  return {
46
+ id: obj["channel_snapshot_id"],
47
+ createdAt: obj["channel_snapshot_created_at"],
48
+ updatedAt: obj["channel_snapshot_updated_at"],
27
49
  channelId: obj["channel_snapshot_channel"].id,
28
50
  timestamp: obj["channel_snapshot_timestamp"],
51
+ typename: "ChannelSnapshot",
29
52
  localBalance: !!obj["channel_snapshot_local_balance"]
30
53
  ? CurrencyAmountFromJson(obj["channel_snapshot_local_balance"])
31
54
  : undefined,
32
55
  localUnsettledBalance: !!obj["channel_snapshot_local_unsettled_balance"]
33
56
  ? CurrencyAmountFromJson(obj["channel_snapshot_local_unsettled_balance"])
34
57
  : undefined,
35
- localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"]
36
- ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"])
37
- : undefined,
38
58
  remoteBalance: !!obj["channel_snapshot_remote_balance"]
39
59
  ? CurrencyAmountFromJson(obj["channel_snapshot_remote_balance"])
40
60
  : undefined,
41
61
  remoteUnsettledBalance: !!obj["channel_snapshot_remote_unsettled_balance"]
42
62
  ? CurrencyAmountFromJson(obj["channel_snapshot_remote_unsettled_balance"])
43
63
  : undefined,
64
+ status: obj["channel_snapshot_status"],
65
+ localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"]
66
+ ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"])
67
+ : undefined,
44
68
  } as ChannelSnapshot;
45
69
  };
46
70
  export const ChannelSnapshotToJson = (obj: ChannelSnapshot): any => {
47
71
  return {
48
- channel_snapshot_channel: { id: obj.channelId },
49
- channel_snapshot_timestamp: obj.timestamp,
72
+ __typename: "ChannelSnapshot",
73
+ channel_snapshot_id: obj.id,
74
+ channel_snapshot_created_at: obj.createdAt,
75
+ channel_snapshot_updated_at: obj.updatedAt,
50
76
  channel_snapshot_local_balance: obj.localBalance
51
77
  ? CurrencyAmountToJson(obj.localBalance)
52
78
  : undefined,
53
79
  channel_snapshot_local_unsettled_balance: obj.localUnsettledBalance
54
80
  ? CurrencyAmountToJson(obj.localUnsettledBalance)
55
81
  : undefined,
56
- channel_snapshot_local_channel_reserve: obj.localChannelReserve
57
- ? CurrencyAmountToJson(obj.localChannelReserve)
58
- : undefined,
59
82
  channel_snapshot_remote_balance: obj.remoteBalance
60
83
  ? CurrencyAmountToJson(obj.remoteBalance)
61
84
  : undefined,
62
85
  channel_snapshot_remote_unsettled_balance: obj.remoteUnsettledBalance
63
86
  ? CurrencyAmountToJson(obj.remoteUnsettledBalance)
64
87
  : undefined,
88
+ channel_snapshot_status: obj.status,
89
+ channel_snapshot_channel: { id: obj.channelId },
90
+ channel_snapshot_local_channel_reserve: obj.localChannelReserve
91
+ ? CurrencyAmountToJson(obj.localChannelReserve)
92
+ : undefined,
93
+ channel_snapshot_timestamp: obj.timestamp,
65
94
  };
66
95
  };
67
96
 
68
97
  export const FRAGMENT = `
69
98
  fragment ChannelSnapshotFragment on ChannelSnapshot {
70
99
  __typename
71
- channel_snapshot_channel: channel {
72
- id
73
- }
74
- channel_snapshot_timestamp: timestamp
100
+ channel_snapshot_id: id
101
+ channel_snapshot_created_at: created_at
102
+ channel_snapshot_updated_at: updated_at
75
103
  channel_snapshot_local_balance: local_balance {
76
104
  __typename
77
105
  currency_amount_original_value: original_value
@@ -88,7 +116,7 @@ fragment ChannelSnapshotFragment on ChannelSnapshot {
88
116
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
89
117
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
90
118
  }
91
- channel_snapshot_local_channel_reserve: local_channel_reserve {
119
+ channel_snapshot_remote_balance: remote_balance {
92
120
  __typename
93
121
  currency_amount_original_value: original_value
94
122
  currency_amount_original_unit: original_unit
@@ -96,7 +124,7 @@ fragment ChannelSnapshotFragment on ChannelSnapshot {
96
124
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
97
125
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
98
126
  }
99
- channel_snapshot_remote_balance: remote_balance {
127
+ channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
100
128
  __typename
101
129
  currency_amount_original_value: original_value
102
130
  currency_amount_original_unit: original_unit
@@ -104,7 +132,11 @@ fragment ChannelSnapshotFragment on ChannelSnapshot {
104
132
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
105
133
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
106
134
  }
107
- channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
135
+ channel_snapshot_status: status
136
+ channel_snapshot_channel: channel {
137
+ id
138
+ }
139
+ channel_snapshot_local_channel_reserve: local_channel_reserve {
108
140
  __typename
109
141
  currency_amount_original_value: original_value
110
142
  currency_amount_original_unit: original_unit
@@ -112,6 +144,25 @@ fragment ChannelSnapshotFragment on ChannelSnapshot {
112
144
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
113
145
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
114
146
  }
147
+ channel_snapshot_timestamp: timestamp
115
148
  }`;
116
149
 
150
+ export const getChannelSnapshotQuery = (id: string): Query<ChannelSnapshot> => {
151
+ return {
152
+ queryPayload: `
153
+ query GetChannelSnapshot($id: ID!) {
154
+ entity(id: $id) {
155
+ ... on ChannelSnapshot {
156
+ ...ChannelSnapshotFragment
157
+ }
158
+ }
159
+ }
160
+
161
+ ${FRAGMENT}
162
+ `,
163
+ variables: { id },
164
+ constructObject: (data: any) => ChannelSnapshotFromJson(data.entity),
165
+ };
166
+ };
167
+
117
168
  export default ChannelSnapshot;
@@ -1,8 +1,13 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  interface ClaimUmaInvitationInput {
4
+ /** The unique code that identifies this invitation and was shared by the inviter. **/
4
5
  invitationCode: string;
5
6
 
7
+ /**
8
+ * The UMA of the user claiming the invitation. It will be sent to the inviter so that they can
9
+ * start transacting with the invitee.
10
+ **/
6
11
  inviteeUma: string;
7
12
  }
8
13
 
@@ -1,6 +1,7 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  interface ClaimUmaInvitationOutput {
4
+ /** An UMA.ME invitation object. **/
4
5
  invitationId: string;
5
6
  }
6
7
 
@@ -3,12 +3,19 @@
3
3
  import RegionCode from "./RegionCode.js";
4
4
 
5
5
  interface ClaimUmaInvitationWithIncentivesInput {
6
+ /** The unique code that identifies this invitation and was shared by the inviter. **/
6
7
  invitationCode: string;
7
8
 
9
+ /**
10
+ * The UMA of the user claiming the invitation. It will be sent to the inviter so that they can
11
+ * start transacting with the invitee.
12
+ **/
8
13
  inviteeUma: string;
9
14
 
15
+ /** The phone hash of the user getting the invitation. **/
10
16
  inviteePhoneHash: string;
11
17
 
18
+ /** The region of the user getting the invitation. **/
12
19
  inviteeRegion: RegionCode;
13
20
  }
14
21
 
@@ -1,6 +1,7 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  interface ClaimUmaInvitationWithIncentivesOutput {
4
+ /** An UMA.ME invitation object. **/
4
5
  invitationId: string;
5
6
  }
6
7
 
@@ -41,6 +41,7 @@ fragment CreateApiTokenOutputFragment on CreateApiTokenOutput {
41
41
  api_token_client_id: client_id
42
42
  api_token_name: name
43
43
  api_token_permissions: permissions
44
+ api_token_is_deleted: is_deleted
44
45
  }
45
46
  create_api_token_output_client_secret: client_secret
46
47
  }`;
@@ -3,10 +3,16 @@
3
3
  import RegionCode from "./RegionCode.js";
4
4
 
5
5
  interface CreateInvitationWithIncentivesInput {
6
+ /**
7
+ * The UMA of the user creating the invitation. It will be used to identify the inviter when
8
+ * receiving the invitation.
9
+ **/
6
10
  inviterUma: string;
7
11
 
12
+ /** The phone hash of the user creating the invitation. **/
8
13
  inviterPhoneHash: string;
9
14
 
15
+ /** The region of the user creating the invitation. **/
10
16
  inviterRegion: RegionCode;
11
17
  }
12
18
 
@@ -1,6 +1,7 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
3
  interface CreateInvitationWithIncentivesOutput {
4
+ /** The created invitation in the form of a string identifier. **/
4
5
  invitationId: string;
5
6
  }
6
7
 
@@ -6,7 +6,10 @@ interface CreateInvoiceInput {
6
6
  /** The node from which to create the invoice. **/
7
7
  nodeId: string;
8
8
 
9
- /** The amount for which the invoice should be created, in millisatoshis. **/
9
+ /**
10
+ * The amount for which the invoice should be created, in millisatoshis. Setting the amount to
11
+ * 0 will allow the payer to specify an amount.
12
+ **/
10
13
  amountMsats: number;
11
14
 
12
15
  memo?: string | undefined;