@lightsparkdev/lightspark-sdk 1.9.4 → 1.9.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-VCNFGP4P.js → chunk-INED3BP4.js} +84 -47
  3. package/dist/{index-CCNALIhi.d.cts → index-B_qpP_0o.d.cts} +120 -36
  4. package/dist/{index-gyjGw7N4.d.ts → index-CZqitvax.d.ts} +120 -36
  5. package/dist/index.cjs +103 -46
  6. package/dist/index.d.cts +2 -2
  7. package/dist/index.d.ts +2 -2
  8. package/dist/index.js +26 -4
  9. package/dist/objects/index.cjs +83 -44
  10. package/dist/objects/index.d.cts +1 -1
  11. package/dist/objects/index.d.ts +1 -1
  12. package/dist/objects/index.js +5 -1
  13. package/package.json +3 -3
  14. package/src/client.ts +13 -0
  15. package/src/graphql/LookupUmaAddress.ts +9 -0
  16. package/src/objects/CancelUmaInvitationInput.ts +22 -0
  17. package/src/objects/CancelUmaInvitationOutput.ts +30 -0
  18. package/src/objects/ChannelStatus.ts +2 -2
  19. package/src/objects/CreateInvitationWithIncentivesInput.ts +7 -0
  20. package/src/objects/CreateInvoiceInput.ts +10 -4
  21. package/src/objects/CreateLnurlInvoiceInput.ts +18 -0
  22. package/src/objects/CreateUmaInvitationInput.ts +5 -0
  23. package/src/objects/CreateUmaInvoiceInput.ts +18 -0
  24. package/src/objects/CurrencyUnit.ts +8 -3
  25. package/src/objects/Entity.ts +21 -0
  26. package/src/objects/LookupUmaAddressInput.ts +22 -0
  27. package/src/objects/Permission.ts +6 -0
  28. package/src/objects/TransactionStatus.ts +2 -3
  29. package/src/objects/UmaCurrency.ts +100 -0
  30. package/src/objects/UmaCurrencyAmount.ts +24 -37
  31. package/src/objects/UmaInvitation.ts +37 -33
  32. package/src/objects/UmaInvitationStatus.ts +19 -0
  33. package/src/objects/WalletStatus.ts +2 -2
  34. package/src/objects/WebhookEventType.ts +2 -0
  35. package/src/objects/index.ts +6 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @lightsparkdev/lightspark-sdk
2
2
 
3
+ ## 1.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 56d34fb: - Regenerated Graphql Objects and added new lookup uma address endpoint that allows users to validate umas.
8
+
9
+ ## 1.9.5
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [e9152bc]
14
+ - @lightsparkdev/core@1.4.3
15
+ - @lightsparkdev/crypto-wasm@0.1.17
16
+
3
17
  ## 1.9.4
4
18
 
5
19
  ### Patch Changes
@@ -54,6 +54,9 @@ var Permission = /* @__PURE__ */ ((Permission2) => {
54
54
  Permission2["REGTEST_VIEW"] = "REGTEST_VIEW";
55
55
  Permission2["REGTEST_TRANSACT"] = "REGTEST_TRANSACT";
56
56
  Permission2["REGTEST_MANAGE"] = "REGTEST_MANAGE";
57
+ Permission2["SIGNET_VIEW"] = "SIGNET_VIEW";
58
+ Permission2["SIGNET_TRANSACT"] = "SIGNET_TRANSACT";
59
+ Permission2["SIGNET_MANAGE"] = "SIGNET_MANAGE";
57
60
  Permission2["USER_VIEW"] = "USER_VIEW";
58
61
  Permission2["USER_MANAGE"] = "USER_MANAGE";
59
62
  Permission2["ACCOUNT_VIEW"] = "ACCOUNT_VIEW";
@@ -140,6 +143,9 @@ var CurrencyUnit = /* @__PURE__ */ ((CurrencyUnit2) => {
140
143
  CurrencyUnit2["USD"] = "USD";
141
144
  CurrencyUnit2["MXN"] = "MXN";
142
145
  CurrencyUnit2["PHP"] = "PHP";
146
+ CurrencyUnit2["EUR"] = "EUR";
147
+ CurrencyUnit2["GBP"] = "GBP";
148
+ CurrencyUnit2["INR"] = "INR";
143
149
  CurrencyUnit2["NANOBITCOIN"] = "NANOBITCOIN";
144
150
  CurrencyUnit2["MICROBITCOIN"] = "MICROBITCOIN";
145
151
  CurrencyUnit2["MILLIBITCOIN"] = "MILLIBITCOIN";
@@ -10781,41 +10787,71 @@ fragment TransactionUpdateFragment on Transaction {
10781
10787
  transaction_hash
10782
10788
  }`;
10783
10789
 
10784
- // src/objects/UmaInvitation.ts
10790
+ // src/objects/UmaCurrency.ts
10785
10791
  import { isObject as isObject33 } from "@lightsparkdev/core";
10792
+ var UmaCurrencyFromJson = (obj) => {
10793
+ return {
10794
+ id: obj["uma_currency_id"],
10795
+ createdAt: obj["uma_currency_created_at"],
10796
+ updatedAt: obj["uma_currency_updated_at"],
10797
+ code: obj["uma_currency_code"],
10798
+ symbol: obj["uma_currency_symbol"],
10799
+ name: obj["uma_currency_name"],
10800
+ decimals: obj["uma_currency_decimals"],
10801
+ typename: "UmaCurrency"
10802
+ };
10803
+ };
10804
+ var FRAGMENT38 = `
10805
+ fragment UmaCurrencyFragment on UmaCurrency {
10806
+ __typename
10807
+ uma_currency_id: id
10808
+ uma_currency_created_at: created_at
10809
+ uma_currency_updated_at: updated_at
10810
+ uma_currency_code: code
10811
+ uma_currency_symbol: symbol
10812
+ uma_currency_name: name
10813
+ uma_currency_decimals: decimals
10814
+ }`;
10815
+ var getUmaCurrencyQuery = (id) => {
10816
+ return {
10817
+ queryPayload: `
10818
+ query GetUmaCurrency($id: ID!) {
10819
+ entity(id: $id) {
10820
+ ... on UmaCurrency {
10821
+ ...UmaCurrencyFragment
10822
+ }
10823
+ }
10824
+ }
10825
+
10826
+ ${FRAGMENT38}
10827
+ `,
10828
+ variables: { id },
10829
+ constructObject: (data) => isObject33(data) && "entity" in data && isObject33(data.entity) ? UmaCurrencyFromJson(data.entity) : null
10830
+ };
10831
+ };
10786
10832
 
10787
10833
  // src/objects/UmaCurrencyAmount.ts
10788
- var UmaCurrencyAmount = class _UmaCurrencyAmount {
10789
- value;
10790
- currency;
10791
- constructor(value, currency) {
10792
- this.value = value;
10793
- this.currency = currency;
10794
- }
10795
- static fromJson(obj) {
10796
- if (!obj || !obj.currency) {
10797
- throw new Error("Invalid currency amount data");
10798
- }
10799
- return new _UmaCurrencyAmount(obj.value, {
10800
- code: obj.currency.code,
10801
- symbol: obj.currency.symbol,
10802
- decimals: obj.currency.decimals,
10803
- name: obj.currency.name
10804
- });
10805
- }
10806
- toJson() {
10807
- return {
10808
- value: this.value,
10809
- currency: {
10810
- code: this.currency.code,
10811
- symbol: this.currency.symbol,
10812
- decimals: this.currency.decimals,
10813
- name: this.currency.name
10814
- }
10815
- };
10816
- }
10834
+ var UmaCurrencyAmountFromJson = (obj) => {
10835
+ return {
10836
+ value: obj["uma_currency_amount_value"],
10837
+ currencyId: obj["uma_currency_amount_currency"].id
10838
+ };
10817
10839
  };
10818
10840
 
10841
+ // src/objects/UmaInvitation.ts
10842
+ import { isObject as isObject34 } from "@lightsparkdev/core";
10843
+
10844
+ // src/objects/UmaInvitationStatus.ts
10845
+ var UmaInvitationStatus = /* @__PURE__ */ ((UmaInvitationStatus2) => {
10846
+ UmaInvitationStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
10847
+ UmaInvitationStatus2["PENDING"] = "PENDING";
10848
+ UmaInvitationStatus2["CLAIMED"] = "CLAIMED";
10849
+ UmaInvitationStatus2["CANCELLED"] = "CANCELLED";
10850
+ UmaInvitationStatus2["EXPIRED"] = "EXPIRED";
10851
+ return UmaInvitationStatus2;
10852
+ })(UmaInvitationStatus || {});
10853
+ var UmaInvitationStatus_default = UmaInvitationStatus;
10854
+
10819
10855
  // src/objects/UmaInvitation.ts
10820
10856
  var UmaInvitationFromJson = (obj) => {
10821
10857
  return {
@@ -10826,18 +10862,17 @@ var UmaInvitationFromJson = (obj) => {
10826
10862
  url: obj["uma_invitation_url"],
10827
10863
  inviterUma: obj["uma_invitation_inviter_uma"],
10828
10864
  incentivesStatus: IncentivesStatus_default[obj["uma_invitation_incentives_status"]] ?? IncentivesStatus_default.FUTURE_VALUE,
10865
+ status: UmaInvitationStatus_default[obj["uma_invitation_status"]] ?? UmaInvitationStatus_default.FUTURE_VALUE,
10829
10866
  typename: "UmaInvitation",
10867
+ inviterFirstName: obj["uma_invitation_inviter_first_name"],
10830
10868
  inviteeUma: obj["uma_invitation_invitee_uma"],
10831
- incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? obj["uma_invitation_incentives_ineligibility_reason"] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null,
10832
- status: obj["uma_invitation_status"] ?? (() => {
10833
- throw new Error("Required field 'uma_invitation_status' is missing");
10834
- })(),
10835
- paymentAmount: obj["uma_invitation_payment_amount"] ? UmaCurrencyAmount.fromJson(obj["uma_invitation_payment_amount"]) : void 0,
10869
+ incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null,
10870
+ paymentAmount: !!obj["uma_invitation_payment_amount"] ? UmaCurrencyAmountFromJson(obj["uma_invitation_payment_amount"]) : void 0,
10836
10871
  cancelledAt: obj["uma_invitation_cancelled_at"],
10837
10872
  expiresAt: obj["uma_invitation_expires_at"]
10838
10873
  };
10839
10874
  };
10840
- var FRAGMENT38 = `
10875
+ var FRAGMENT39 = `
10841
10876
  fragment UmaInvitationFragment on UmaInvitation {
10842
10877
  __typename
10843
10878
  uma_invitation_id: id
@@ -10846,17 +10881,16 @@ fragment UmaInvitationFragment on UmaInvitation {
10846
10881
  uma_invitation_code: code
10847
10882
  uma_invitation_url: url
10848
10883
  uma_invitation_inviter_uma: inviter_uma
10884
+ uma_invitation_inviter_first_name: inviter_first_name
10849
10885
  uma_invitation_invitee_uma: invitee_uma
10850
10886
  uma_invitation_incentives_status: incentives_status
10851
10887
  uma_invitation_incentives_ineligibility_reason: incentives_ineligibility_reason
10852
10888
  uma_invitation_status: status
10853
10889
  uma_invitation_payment_amount: payment_amount {
10854
- value
10855
- currency {
10856
- code
10857
- symbol
10858
- decimals
10859
- name
10890
+ __typename
10891
+ uma_currency_amount_value: value
10892
+ uma_currency_amount_currency: currency {
10893
+ id
10860
10894
  }
10861
10895
  }
10862
10896
  uma_invitation_cancelled_at: cancelled_at
@@ -10873,10 +10907,10 @@ query GetUmaInvitation($id: ID!) {
10873
10907
  }
10874
10908
  }
10875
10909
 
10876
- ${FRAGMENT38}
10910
+ ${FRAGMENT39}
10877
10911
  `,
10878
10912
  variables: { id },
10879
- constructObject: (data) => isObject33(data) && "entity" in data && isObject33(data.entity) ? UmaInvitationFromJson(data.entity) : null
10913
+ constructObject: (data) => isObject34(data) && "entity" in data && isObject34(data.entity) ? UmaInvitationFromJson(data.entity) : null
10880
10914
  };
10881
10915
  };
10882
10916
 
@@ -10898,6 +10932,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
10898
10932
  WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
10899
10933
  WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
10900
10934
  WebhookEventType2["CHANNEL_OPENING_FEES"] = "CHANNEL_OPENING_FEES";
10935
+ WebhookEventType2["HOLD_INVOICE_ACCEPTED"] = "HOLD_INVOICE_ACCEPTED";
10901
10936
  return WebhookEventType2;
10902
10937
  })(WebhookEventType || {});
10903
10938
  var WebhookEventType_default = WebhookEventType;
@@ -10910,7 +10945,7 @@ var WithdrawalFeeEstimateOutputFromJson = (obj) => {
10910
10945
  )
10911
10946
  };
10912
10947
  };
10913
- var FRAGMENT39 = `
10948
+ var FRAGMENT40 = `
10914
10949
  fragment WithdrawalFeeEstimateOutputFragment on WithdrawalFeeEstimateOutput {
10915
10950
  __typename
10916
10951
  withdrawal_fee_estimate_output_fee_estimate: fee_estimate {
@@ -10947,8 +10982,9 @@ export {
10947
10982
  getInvoiceQuery,
10948
10983
  IncentivesIneligibilityReason_default,
10949
10984
  IncentivesStatus_default,
10985
+ UmaInvitationStatus_default,
10950
10986
  UmaInvitationFromJson,
10951
- FRAGMENT38 as FRAGMENT5,
10987
+ FRAGMENT39 as FRAGMENT5,
10952
10988
  getUmaInvitationQuery,
10953
10989
  Permission_default,
10954
10990
  ApiTokenFromJson,
@@ -10988,7 +11024,7 @@ export {
10988
11024
  TransactionUpdateFromJson,
10989
11025
  FRAGMENT37 as FRAGMENT13,
10990
11026
  WithdrawalFeeEstimateOutputFromJson,
10991
- FRAGMENT39 as FRAGMENT14,
11027
+ FRAGMENT40 as FRAGMENT14,
10992
11028
  getLightsparkNodeQuery,
10993
11029
  WalletStatus_default,
10994
11030
  Wallet_default,
@@ -11013,6 +11049,7 @@ export {
11013
11049
  getRoutingTransactionQuery,
11014
11050
  getSignableQuery,
11015
11051
  TransactionType_default,
11052
+ getUmaCurrencyQuery,
11016
11053
  WebhookEventType,
11017
11054
  WebhookEventType_default
11018
11055
  };
@@ -43,9 +43,8 @@ declare enum CurrencyUnit {
43
43
  * commonly used in Lightning transactions. *
44
44
  */
45
45
  SATOSHI = "SATOSHI",
46
- /**
47
- * 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible. *
48
- */
46
+ /** 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when
47
+ * possible. **/
49
48
  MILLISATOSHI = "MILLISATOSHI",
50
49
  /** United States Dollar. **/
51
50
  USD = "USD",
@@ -53,6 +52,12 @@ declare enum CurrencyUnit {
53
52
  MXN = "MXN",
54
53
  /** Philippine Peso. **/
55
54
  PHP = "PHP",
55
+ /** Euro. **/
56
+ EUR = "EUR",
57
+ /** British Pound. **/
58
+ GBP = "GBP",
59
+ /** Indian Rupee. **/
60
+ INR = "INR",
56
61
  /**
57
62
  * 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit
58
63
  * instead when possible. *
@@ -176,6 +181,9 @@ declare enum Permission {
176
181
  REGTEST_VIEW = "REGTEST_VIEW",
177
182
  REGTEST_TRANSACT = "REGTEST_TRANSACT",
178
183
  REGTEST_MANAGE = "REGTEST_MANAGE",
184
+ SIGNET_VIEW = "SIGNET_VIEW",
185
+ SIGNET_TRANSACT = "SIGNET_TRANSACT",
186
+ SIGNET_MANAGE = "SIGNET_MANAGE",
179
187
  USER_VIEW = "USER_VIEW",
180
188
  USER_MANAGE = "USER_MANAGE",
181
189
  ACCOUNT_VIEW = "ACCOUNT_VIEW",
@@ -270,8 +278,8 @@ declare enum ChannelStatus {
270
278
  */
271
279
  UNBALANCED_FOR_SEND = "UNBALANCED_FOR_SEND",
272
280
  /**
273
- * The channel is behaving properly, but its remote balance is much lower than its local balance
274
- * so it is not balanced properly for receiving funds. *
281
+ * The channel is behaving properly, but its remote balance is much lower than its
282
+ * local balance so it is not balanced properly for receiving funds. *
275
283
  */
276
284
  UNBALANCED_FOR_RECEIVE = "UNBALANCED_FOR_RECEIVE",
277
285
  /**
@@ -850,9 +858,8 @@ declare enum TransactionStatus {
850
858
  FAILED = "FAILED",
851
859
  /** Transaction has been initiated and is currently in-flight. **/
852
860
  PENDING = "PENDING",
853
- /**
854
- * For transaction type PAYMENT_REQUEST only. No payments have been made to a payment request. *
855
- */
861
+ /** For transaction type PAYMENT_REQUEST only. No payments have been made to a payment
862
+ * request. **/
856
863
  NOT_STARTED = "NOT_STARTED",
857
864
  /** For transaction type PAYMENT_REQUEST only. A payment request has expired. **/
858
865
  EXPIRED = "EXPIRED",
@@ -972,8 +979,8 @@ declare enum WalletStatus {
972
979
  TERMINATING = "TERMINATING",
973
980
  /**
974
981
  * The wallet has been terminated and is not available in the Lightspark infrastructure anymore.
975
- * It is not connected to the Lightning network and its funds can only be accessed using the
976
- * Funds Recovery flow. *
982
+ * It is not connected to the Lightning network and its funds can only be accessed using the Funds
983
+ * Recovery flow. *
977
984
  */
978
985
  TERMINATED = "TERMINATED"
979
986
  }
@@ -2926,30 +2933,23 @@ declare enum IncentivesStatus {
2926
2933
  INELIGIBLE = "INELIGIBLE"
2927
2934
  }
2928
2935
 
2929
- declare class UmaCurrencyAmount {
2936
+ interface UmaCurrencyAmount {
2930
2937
  value: number;
2931
- currency: {
2932
- code: string;
2933
- symbol: string;
2934
- decimals: number;
2935
- name: string;
2936
- };
2937
- constructor(value: number, currency: {
2938
- code: string;
2939
- symbol: string;
2940
- decimals: number;
2941
- name: string;
2942
- });
2943
- static fromJson(obj: any): UmaCurrencyAmount;
2944
- toJson(): any;
2938
+ currencyId: string;
2945
2939
  }
2946
2940
 
2947
2941
  declare enum UmaInvitationStatus {
2942
+ /**
2943
+ * This is an enum value that represents values that could be added in the future.
2944
+ * Clients should support unknown values as more of them could be added without notice.
2945
+ */
2946
+ FUTURE_VALUE = "FUTURE_VALUE",
2948
2947
  PENDING = "PENDING",
2949
2948
  CLAIMED = "CLAIMED",
2950
2949
  CANCELLED = "CANCELLED",
2951
2950
  EXPIRED = "EXPIRED"
2952
2951
  }
2952
+
2953
2953
  /** This is an object representing an UMA.ME invitation. **/
2954
2954
  interface UmaInvitation {
2955
2955
  /**
@@ -2969,19 +2969,27 @@ interface UmaInvitation {
2969
2969
  inviterUma: string;
2970
2970
  /** The current status of the incentives that may be tied to this invitation. **/
2971
2971
  incentivesStatus: IncentivesStatus;
2972
+ /** The status of the invitation. **/
2973
+ status: UmaInvitationStatus;
2972
2974
  /** The typename of the object **/
2973
2975
  typename: string;
2976
+ /** The optional first name of the person who created the invitation. **/
2977
+ inviterFirstName?: string | undefined;
2974
2978
  /** The UMA of the user who claimed the invitation. **/
2975
2979
  inviteeUma?: string | undefined;
2976
2980
  /** The reason why the invitation is not eligible for incentives, if applicable. **/
2977
2981
  incentivesIneligibilityReason?: IncentivesIneligibilityReason | undefined;
2978
- /** The status of the invitation. **/
2979
- status: UmaInvitationStatus;
2980
- /** Payment amount in lowest currency unit. Null if no payment attached. **/
2982
+ /**
2983
+ * The payment amount with the invitation denominated in the lowest currency unit. If there is
2984
+ * no payment attached, this is null.
2985
+ **/
2981
2986
  paymentAmount?: UmaCurrencyAmount | undefined;
2982
- /** When the invitation was cancelled, if applicable. **/
2987
+ /** The date and time when the invitation was cancelled, if it was cancelled. **/
2983
2988
  cancelledAt?: string | undefined;
2984
- /** When the invitation expires. Null if no expiration set. **/
2989
+ /**
2990
+ * The date and time after which an invitation can no longer be claimed. None, if no expiration
2991
+ * is set *
2992
+ */
2985
2993
  expiresAt?: string | undefined;
2986
2994
  }
2987
2995
  declare const getUmaInvitationQuery: (id: string) => Query<UmaInvitation>;
@@ -3535,6 +3543,7 @@ declare class LightsparkClient {
3535
3543
  * @returns The cancelled invitation, or null if cancellation failed.
3536
3544
  */
3537
3545
  cancelUmaInvitation(invitationCode: string): Promise<UmaInvitation | null>;
3546
+ lookupUmaAddress(umaAddress: string): Promise<boolean>;
3538
3547
  }
3539
3548
 
3540
3549
  /** Audit log actor who called the GraphQL mutation **/
@@ -3569,6 +3578,14 @@ interface CancelInvoiceOutput {
3569
3578
  invoiceId: string;
3570
3579
  }
3571
3580
 
3581
+ interface CancelUmaInvitationInput {
3582
+ inviteCode: string;
3583
+ }
3584
+
3585
+ interface CancelUmaInvitationOutput {
3586
+ invitationId: string;
3587
+ }
3588
+
3572
3589
  interface ChannelSnapshot {
3573
3590
  /**
3574
3591
  * The unique identifier of this entity across all Lightspark systems. Should be treated as an
@@ -3656,6 +3673,8 @@ interface CreateInvitationWithIncentivesInput {
3656
3673
  inviterPhoneHash: string;
3657
3674
  /** The region of the user creating the invitation. **/
3658
3675
  inviterRegion: RegionCode;
3676
+ /** The optional first name of the user creating the invitation. **/
3677
+ inviterFirstName?: string | undefined;
3659
3678
  }
3660
3679
 
3661
3680
  interface CreateInvitationWithIncentivesOutput {
@@ -3673,10 +3692,7 @@ interface CreateInvoiceInput {
3673
3692
  amountMsats: number;
3674
3693
  memo?: string | undefined;
3675
3694
  invoiceType?: InvoiceType | undefined;
3676
- /**
3677
- * The expiry of the invoice in seconds. Default value is 86400 (1 day) for AMP invoice, or
3678
- * 3600 (1 hour) for STANDARD invoice.
3679
- **/
3695
+ /** The expiry of the invoice in seconds. Default value is 86400 (1 day). **/
3680
3696
  expirySecs?: number | undefined;
3681
3697
  /**
3682
3698
  * The payment hash of the invoice. It should only be set if your node is a remote signing
@@ -3684,6 +3700,12 @@ interface CreateInvoiceInput {
3684
3700
  * REQUEST_INVOICE_PAYMENT_HASH.
3685
3701
  **/
3686
3702
  paymentHash?: string | undefined;
3703
+ /**
3704
+ * The 32-byte nonce used to generate the invoice preimage if applicable. It will later be
3705
+ * included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage. This can only
3706
+ * be specified when `payment_hash` is specified.
3707
+ **/
3708
+ preimageNonce?: string | undefined;
3687
3709
  }
3688
3710
 
3689
3711
  interface CreateInvoiceOutput {
@@ -3705,6 +3727,18 @@ interface CreateLnurlInvoiceInput {
3705
3727
  /** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
3706
3728
  * payment. **/
3707
3729
  receiverHash?: string | undefined;
3730
+ /**
3731
+ * The payment hash of the invoice. It should only be set if your node is a remote signing
3732
+ * node, or if you are creating a hodl invoice. If not set, it will be requested through
3733
+ * REMOTE_SIGNING webhooks with sub event type REQUEST_INVOICE_PAYMENT_HASH.
3734
+ **/
3735
+ paymentHash?: string | undefined;
3736
+ /**
3737
+ * The 32-byte nonce used to generate the invoice preimage if applicable. It will later be
3738
+ * included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage. This can only
3739
+ * be specified when `payment_hash` is specified.
3740
+ **/
3741
+ preimageNonce?: string | undefined;
3708
3742
  }
3709
3743
 
3710
3744
  interface CreateNodeWalletAddressInput {
@@ -3797,6 +3831,8 @@ interface CreateUmaInvitationInput {
3797
3831
  * receiving the invitation.
3798
3832
  **/
3799
3833
  inviterUma: string;
3834
+ /** The optional first name of the user creating the invitation. **/
3835
+ inviterFirstName?: string | undefined;
3800
3836
  }
3801
3837
 
3802
3838
  interface CreateUmaInvitationOutput {
@@ -3819,6 +3855,18 @@ interface CreateUmaInvoiceInput {
3819
3855
  /** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
3820
3856
  * payment. **/
3821
3857
  receiverHash?: string | undefined;
3858
+ /**
3859
+ * The payment hash of the invoice. It should only be set if your node is a remote signing
3860
+ * node, or if you are creating a hodl invoice. If not set, it will be requested through
3861
+ * REMOTE_SIGNING webhooks with sub event type REQUEST_INVOICE_PAYMENT_HASH.
3862
+ **/
3863
+ paymentHash?: string | undefined;
3864
+ /**
3865
+ * The 32-byte nonce used to generate the invoice preimage if applicable. It will later be
3866
+ * included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage. This can only
3867
+ * be specified when `payment_hash` is specified.
3868
+ **/
3869
+ preimageNonce?: string | undefined;
3822
3870
  }
3823
3871
 
3824
3872
  interface DeclineToSignMessagesInput {
@@ -4542,6 +4590,10 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
4542
4590
  };
4543
4591
  }
4544
4592
 
4593
+ interface LookupUmaAddressInput {
4594
+ umaAddress: string;
4595
+ }
4596
+
4545
4597
  /** This object represents a BOLT #12 offer (https://github.com/lightning/bolts/blob/master/12-offer-encoding.md) created by a Lightspark Node. **/
4546
4598
  interface Offer {
4547
4599
  /**
@@ -5039,6 +5091,37 @@ interface SignMessagesOutput {
5039
5091
  signedPayloads: SignablePayload[];
5040
5092
  }
5041
5093
 
5094
+ interface UmaCurrency {
5095
+ /**
5096
+ * The unique identifier of this entity across all Lightspark systems. Should be treated as an
5097
+ * opaque string.
5098
+ **/
5099
+ id: string;
5100
+ /** The date and time when the entity was first created. **/
5101
+ createdAt: string;
5102
+ /** The date and time when the entity was last updated. **/
5103
+ updatedAt: string;
5104
+ /** The currency code of currency. E.g. USD. **/
5105
+ code: string;
5106
+ /** The symbol of currency. E.g. $. **/
5107
+ symbol: string;
5108
+ /** The full name of currency. E.g. US Dollar. **/
5109
+ name: string;
5110
+ /**
5111
+ * The number of digits after the decimal point for display on the sender side, and to add
5112
+ * clarity around what the `smallest unit` of the currency is. For example, in USD, by
5113
+ * convention, there are 2 digits for cents - $5.95. In this case, `decimals` would be 2. Note
5114
+ * that the multiplier is still always in the smallest unit (cents). In addition to display
5115
+ * purposes, this field can be used to resolve ambiguity in what the multiplier means. For
5116
+ * example, if the currency is `BTC` and the multiplier is 1000, really we're exchanging in
5117
+ * SATs, so `decimals` would be 8.
5118
+ **/
5119
+ decimals: number;
5120
+ /** The typename of the object **/
5121
+ typename: string;
5122
+ }
5123
+ declare const getUmaCurrencyQuery: (id: string) => Query<UmaCurrency>;
5124
+
5042
5125
  interface UpdateChannelPerCommitmentPointInput {
5043
5126
  channelId: string;
5044
5127
  perCommitmentPoint: string;
@@ -5082,7 +5165,8 @@ declare enum WebhookEventType {
5082
5165
  REMOTE_SIGNING = "REMOTE_SIGNING",
5083
5166
  LOW_BALANCE = "LOW_BALANCE",
5084
5167
  HIGH_BALANCE = "HIGH_BALANCE",
5085
- CHANNEL_OPENING_FEES = "CHANNEL_OPENING_FEES"
5168
+ CHANNEL_OPENING_FEES = "CHANNEL_OPENING_FEES",
5169
+ HOLD_INVOICE_ACCEPTED = "HOLD_INVOICE_ACCEPTED"
5086
5170
  }
5087
5171
 
5088
5172
  interface WithdrawalFeeEstimateInput {
@@ -5102,4 +5186,4 @@ interface WithdrawalFeeEstimateOutput {
5102
5186
  feeEstimate: CurrencyAmount;
5103
5187
  }
5104
5188
 
5105
- export { type CurrencyAmountInput as $, Account as A, type Balances as B, type CancelInvoiceInput as C, type ClaimUmaInvitationWithIncentivesOutput as D, ComplianceProvider as E, type Connection as F, type CreateApiTokenInput as G, type CreateApiTokenOutput as H, type CreateInvitationWithIncentivesInput as I, type CreateInvitationWithIncentivesOutput as J, type CreateInvoiceInput as K, LightsparkClient as L, type CreateInvoiceOutput as M, type CreateLnurlInvoiceInput as N, type CreateNodeWalletAddressInput as O, type CreateNodeWalletAddressOutput as P, type CreateOfferInput as Q, type CreateOfferOutput as R, type CreateTestModeInvoiceInput as S, type CreateTestModeInvoiceOutput as T, type CreateTestModePaymentInput as U, type CreateTestModePaymentoutput as V, WebhookEventType as W, type CreateUmaInvitationInput as X, type CreateUmaInvitationOutput as Y, type CreateUmaInvoiceInput as Z, type CurrencyAmount as _, type AccountToApiTokensConnection as a, getOnChainTransactionQuery as a$, CurrencyUnit as a0, type DailyLiquidityForecast as a1, type DeclineToSignMessagesInput as a2, type DeclineToSignMessagesOutput as a3, type DeleteApiTokenInput as a4, type DeleteApiTokenOutput as a5, type Deposit as a6, getDepositQuery as a7, type Entity as a8, type FailHtlcsInput as a9, type LightningFeeEstimateForInvoiceInput as aA, type LightningFeeEstimateForNodeInput as aB, type LightningFeeEstimateOutput as aC, LightningPaymentDirection as aD, type LightningTransaction as aE, getLightningTransactionQuery as aF, type LightsparkNode as aG, getLightsparkNodeQuery as aH, type LightsparkNodeOwner as aI, getLightsparkNodeOwnerQuery as aJ, LightsparkNodeStatus as aK, type LightsparkNodeToChannelsConnection as aL, type LightsparkNodeToDailyLiquidityForecastsConnection as aM, LightsparkNodeWithOSK as aN, LightsparkNodeWithRemoteSigning as aO, type MultiSigAddressValidationParameters as aP, type Node as aQ, getNodeQuery as aR, type NodeAddress as aS, NodeAddressType as aT, type NodeToAddressesConnection as aU, type Offer as aV, getOfferQuery as aW, type OfferData as aX, getOfferDataQuery as aY, OnChainFeeTarget as aZ, type OnChainTransaction as a_, type FailHtlcsOutput as aa, type FeeEstimate as ab, type FundNodeInput as ac, type FundNodeOutput as ad, GraphNode as ae, type Hop as af, getHopQuery as ag, HtlcAttemptFailureCode as ah, type IdAndSignature as ai, IncentivesIneligibilityReason as aj, IncentivesStatus as ak, IncomingPayment as al, type IncomingPaymentAttempt as am, getIncomingPaymentAttemptQuery as an, IncomingPaymentAttemptStatus as ao, type IncomingPaymentsForInvoiceQueryInput as ap, type IncomingPaymentsForInvoiceQueryOutput as aq, type IncomingPaymentsForPaymentHashQueryInput as ar, type IncomingPaymentsForPaymentHashQueryOutput as as, type IncomingPaymentToAttemptsConnection as at, type Invoice as au, getInvoiceQuery as av, type InvoiceData as aw, type InvoiceForPaymentHashInput as ax, type InvoiceForPaymentHashOutput as ay, InvoiceType as az, type AccountToChannelsConnection as b, TransactionType as b$, OutgoingPayment as b0, OutgoingPaymentAttempt as b1, OutgoingPaymentAttemptStatus as b2, type OutgoingPaymentAttemptToHopsConnection as b3, type OutgoingPaymentForIdempotencyKeyInput as b4, type OutgoingPaymentForIdempotencyKeyOutput as b5, type OutgoingPaymentsForInvoiceQueryInput as b6, type OutgoingPaymentsForInvoiceQueryOutput as b7, type OutgoingPaymentsForPaymentHashQueryInput as b8, type OutgoingPaymentsForPaymentHashQueryOutput as b9, type RequestWithdrawalOutput as bA, type RichText as bB, RiskRating as bC, type RoutingTransaction as bD, getRoutingTransactionQuery as bE, RoutingTransactionFailureReason as bF, type ScreenNodeInput as bG, type ScreenNodeOutput as bH, type Secret as bI, type SendPaymentInput as bJ, type SendPaymentOutput as bK, type SetInvoicePaymentHashInput as bL, type SetInvoicePaymentHashOutput as bM, type Signable as bN, getSignableQuery as bO, type SignablePayload as bP, getSignablePayloadQuery as bQ, SignablePayloadStatus as bR, type SignInvoiceInput as bS, type SignInvoiceOutput as bT, type SignMessagesInput as bU, type SignMessagesOutput as bV, type SingleNodeDashboard as bW, type Transaction as bX, getTransactionQuery as bY, type TransactionFailures as bZ, TransactionStatus as b_, type OutgoingPaymentToAttemptsConnection as ba, type PageInfo as bb, type PayInvoiceInput as bc, type PayInvoiceOutput as bd, PaymentDirection as be, PaymentFailureReason as bf, type PaymentRequest as bg, getPaymentRequestQuery as bh, type PaymentRequestData as bi, PaymentRequestStatus as bj, type PayOfferInput as bk, type PayOfferOutput as bl, type PayTestModeInvoiceInput as bm, type PayUmaInvoiceInput as bn, Permission as bo, type PostTransactionData as bp, RegionCode as bq, type RegisterPaymentInput as br, type RegisterPaymentOutput as bs, type ReleaseChannelPerCommitmentSecretInput as bt, type ReleaseChannelPerCommitmentSecretOutput as bu, type ReleasePaymentPreimageInput as bv, type ReleasePaymentPreimageOutput as bw, RemoteSigningSubEventType as bx, RequestInitiator as by, type RequestWithdrawalInput as bz, type AccountToNodesConnection as c, type TransactionUpdate as c0, type UmaInvitation as c1, getUmaInvitationQuery as c2, type UpdateChannelPerCommitmentPointInput as c3, type UpdateChannelPerCommitmentPointOutput as c4, type UpdateNodeSharedSecretInput as c5, type UpdateNodeSharedSecretOutput as c6, Wallet as c7, WalletStatus as c8, type WalletToPaymentRequestsConnection as c9, type WalletToTransactionsConnection as ca, type WalletToWithdrawalRequestsConnection as cb, type Withdrawal as cc, getWithdrawalQuery as cd, type WithdrawalFeeEstimateInput as ce, type WithdrawalFeeEstimateOutput as cf, WithdrawalMode as cg, WithdrawalRequest as ch, WithdrawalRequestStatus as ci, type WithdrawalRequestToChannelClosingTransactionsConnection as cj, type WithdrawalRequestToChannelOpeningTransactionsConnection as ck, type WithdrawalRequestToWithdrawalsConnection as cl, type AccountToPaymentRequestsConnection as d, type AccountToTransactionsConnection as e, type AccountToWalletsConnection as f, type AccountToWithdrawalRequestsConnection as g, type ApiToken as h, getApiTokenQuery as i, type AuditLogActor as j, getAuditLogActorQuery as k, type BlockchainBalance as l, type CancelInvoiceOutput as m, Channel as n, type ChannelClosingTransaction as o, getChannelClosingTransactionQuery as p, type ChannelFees as q, type ChannelOpeningTransaction as r, getChannelOpeningTransactionQuery as s, type ChannelSnapshot as t, getChannelSnapshotQuery as u, ChannelStatus as v, type ChannelToTransactionsConnection as w, type ClaimUmaInvitationInput as x, type ClaimUmaInvitationOutput as y, type ClaimUmaInvitationWithIncentivesInput as z };
5189
+ export { type CreateUmaInvoiceInput as $, Account as A, type Balances as B, type CancelInvoiceInput as C, type ClaimUmaInvitationOutput as D, type ClaimUmaInvitationWithIncentivesInput as E, type ClaimUmaInvitationWithIncentivesOutput as F, ComplianceProvider as G, type Connection as H, type CreateApiTokenInput as I, type CreateApiTokenOutput as J, type CreateInvitationWithIncentivesInput as K, LightsparkClient as L, type CreateInvitationWithIncentivesOutput as M, type CreateInvoiceInput as N, type CreateInvoiceOutput as O, type CreateLnurlInvoiceInput as P, type CreateNodeWalletAddressInput as Q, type CreateNodeWalletAddressOutput as R, type CreateOfferInput as S, type CreateOfferOutput as T, type CreateTestModeInvoiceInput as U, type CreateTestModeInvoiceOutput as V, WebhookEventType as W, type CreateTestModePaymentInput as X, type CreateTestModePaymentoutput as Y, type CreateUmaInvitationInput as Z, type CreateUmaInvitationOutput as _, type AccountToApiTokensConnection as a, getOfferDataQuery as a$, type CurrencyAmount as a0, type CurrencyAmountInput as a1, CurrencyUnit as a2, type DailyLiquidityForecast as a3, type DeclineToSignMessagesInput as a4, type DeclineToSignMessagesOutput as a5, type DeleteApiTokenInput as a6, type DeleteApiTokenOutput as a7, type Deposit as a8, getDepositQuery as a9, type InvoiceForPaymentHashOutput as aA, InvoiceType as aB, type LightningFeeEstimateForInvoiceInput as aC, type LightningFeeEstimateForNodeInput as aD, type LightningFeeEstimateOutput as aE, LightningPaymentDirection as aF, type LightningTransaction as aG, getLightningTransactionQuery as aH, type LightsparkNode as aI, getLightsparkNodeQuery as aJ, type LightsparkNodeOwner as aK, getLightsparkNodeOwnerQuery as aL, LightsparkNodeStatus as aM, type LightsparkNodeToChannelsConnection as aN, type LightsparkNodeToDailyLiquidityForecastsConnection as aO, LightsparkNodeWithOSK as aP, LightsparkNodeWithRemoteSigning as aQ, type LookupUmaAddressInput as aR, type MultiSigAddressValidationParameters as aS, type Node as aT, getNodeQuery as aU, type NodeAddress as aV, NodeAddressType as aW, type NodeToAddressesConnection as aX, type Offer as aY, getOfferQuery as aZ, type OfferData as a_, type Entity as aa, type FailHtlcsInput as ab, type FailHtlcsOutput as ac, type FeeEstimate as ad, type FundNodeInput as ae, type FundNodeOutput as af, GraphNode as ag, type Hop as ah, getHopQuery as ai, HtlcAttemptFailureCode as aj, type IdAndSignature as ak, IncentivesIneligibilityReason as al, IncentivesStatus as am, IncomingPayment as an, type IncomingPaymentAttempt as ao, getIncomingPaymentAttemptQuery as ap, IncomingPaymentAttemptStatus as aq, type IncomingPaymentsForInvoiceQueryInput as ar, type IncomingPaymentsForInvoiceQueryOutput as as, type IncomingPaymentsForPaymentHashQueryInput as at, type IncomingPaymentsForPaymentHashQueryOutput as au, type IncomingPaymentToAttemptsConnection as av, type Invoice as aw, getInvoiceQuery as ax, type InvoiceData as ay, type InvoiceForPaymentHashInput as az, type AccountToChannelsConnection as b, getTransactionQuery as b$, OnChainFeeTarget as b0, type OnChainTransaction as b1, getOnChainTransactionQuery as b2, OutgoingPayment as b3, OutgoingPaymentAttempt as b4, OutgoingPaymentAttemptStatus as b5, type OutgoingPaymentAttemptToHopsConnection as b6, type OutgoingPaymentForIdempotencyKeyInput as b7, type OutgoingPaymentForIdempotencyKeyOutput as b8, type OutgoingPaymentsForInvoiceQueryInput as b9, RemoteSigningSubEventType as bA, RequestInitiator as bB, type RequestWithdrawalInput as bC, type RequestWithdrawalOutput as bD, type RichText as bE, RiskRating as bF, type RoutingTransaction as bG, getRoutingTransactionQuery as bH, RoutingTransactionFailureReason as bI, type ScreenNodeInput as bJ, type ScreenNodeOutput as bK, type Secret as bL, type SendPaymentInput as bM, type SendPaymentOutput as bN, type SetInvoicePaymentHashInput as bO, type SetInvoicePaymentHashOutput as bP, type Signable as bQ, getSignableQuery as bR, type SignablePayload as bS, getSignablePayloadQuery as bT, SignablePayloadStatus as bU, type SignInvoiceInput as bV, type SignInvoiceOutput as bW, type SignMessagesInput as bX, type SignMessagesOutput as bY, type SingleNodeDashboard as bZ, type Transaction as b_, type OutgoingPaymentsForInvoiceQueryOutput as ba, type OutgoingPaymentsForPaymentHashQueryInput as bb, type OutgoingPaymentsForPaymentHashQueryOutput as bc, type OutgoingPaymentToAttemptsConnection as bd, type PageInfo as be, type PayInvoiceInput as bf, type PayInvoiceOutput as bg, PaymentDirection as bh, PaymentFailureReason as bi, type PaymentRequest as bj, getPaymentRequestQuery as bk, type PaymentRequestData as bl, PaymentRequestStatus as bm, type PayOfferInput as bn, type PayOfferOutput as bo, type PayTestModeInvoiceInput as bp, type PayUmaInvoiceInput as bq, Permission as br, type PostTransactionData as bs, RegionCode as bt, type RegisterPaymentInput as bu, type RegisterPaymentOutput as bv, type ReleaseChannelPerCommitmentSecretInput as bw, type ReleaseChannelPerCommitmentSecretOutput as bx, type ReleasePaymentPreimageInput as by, type ReleasePaymentPreimageOutput as bz, type AccountToNodesConnection as c, type TransactionFailures as c0, TransactionStatus as c1, TransactionType as c2, type TransactionUpdate as c3, type UmaCurrency as c4, getUmaCurrencyQuery as c5, type UmaCurrencyAmount as c6, type UmaInvitation as c7, getUmaInvitationQuery as c8, UmaInvitationStatus as c9, type UpdateChannelPerCommitmentPointInput as ca, type UpdateChannelPerCommitmentPointOutput as cb, type UpdateNodeSharedSecretInput as cc, type UpdateNodeSharedSecretOutput as cd, Wallet as ce, WalletStatus as cf, type WalletToPaymentRequestsConnection as cg, type WalletToTransactionsConnection as ch, type WalletToWithdrawalRequestsConnection as ci, type Withdrawal as cj, getWithdrawalQuery as ck, type WithdrawalFeeEstimateInput as cl, type WithdrawalFeeEstimateOutput as cm, WithdrawalMode as cn, WithdrawalRequest as co, WithdrawalRequestStatus as cp, type WithdrawalRequestToChannelClosingTransactionsConnection as cq, type WithdrawalRequestToChannelOpeningTransactionsConnection as cr, type WithdrawalRequestToWithdrawalsConnection as cs, type AccountToPaymentRequestsConnection as d, type AccountToTransactionsConnection as e, type AccountToWalletsConnection as f, type AccountToWithdrawalRequestsConnection as g, type ApiToken as h, getApiTokenQuery as i, type AuditLogActor as j, getAuditLogActorQuery as k, type BlockchainBalance as l, type CancelInvoiceOutput as m, type CancelUmaInvitationInput as n, type CancelUmaInvitationOutput as o, Channel as p, type ChannelClosingTransaction as q, getChannelClosingTransactionQuery as r, type ChannelFees as s, type ChannelOpeningTransaction as t, getChannelOpeningTransactionQuery as u, type ChannelSnapshot as v, getChannelSnapshotQuery as w, ChannelStatus as x, type ChannelToTransactionsConnection as y, type ClaimUmaInvitationInput as z };