@lightninglabs/wavelength-core 0.1.0

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 (93) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +31 -0
  3. package/dist/activity-options.d.ts +15 -0
  4. package/dist/activity-options.d.ts.map +1 -0
  5. package/dist/activity-options.js +7 -0
  6. package/dist/base-client.d.ts +59 -0
  7. package/dist/base-client.d.ts.map +1 -0
  8. package/dist/base-client.js +144 -0
  9. package/dist/casing.d.ts +4 -0
  10. package/dist/casing.d.ts.map +1 -0
  11. package/dist/casing.js +42 -0
  12. package/dist/client.d.ts +90 -0
  13. package/dist/client.d.ts.map +1 -0
  14. package/dist/client.js +1 -0
  15. package/dist/config.d.ts +128 -0
  16. package/dist/config.d.ts.map +1 -0
  17. package/dist/config.js +142 -0
  18. package/dist/destination.d.ts +56 -0
  19. package/dist/destination.d.ts.map +1 -0
  20. package/dist/destination.js +90 -0
  21. package/dist/engine/activity.d.ts +25 -0
  22. package/dist/engine/activity.d.ts.map +1 -0
  23. package/dist/engine/activity.js +119 -0
  24. package/dist/engine/constants.d.ts +29 -0
  25. package/dist/engine/constants.d.ts.map +1 -0
  26. package/dist/engine/constants.js +29 -0
  27. package/dist/engine/engine.d.ts +115 -0
  28. package/dist/engine/engine.d.ts.map +1 -0
  29. package/dist/engine/engine.js +548 -0
  30. package/dist/engine/machine.d.ts +50 -0
  31. package/dist/engine/machine.d.ts.map +1 -0
  32. package/dist/engine/machine.js +55 -0
  33. package/dist/engine/optionsAssertions.d.ts +2 -0
  34. package/dist/engine/optionsAssertions.d.ts.map +1 -0
  35. package/dist/engine/optionsAssertions.js +20 -0
  36. package/dist/engine/poller.d.ts +20 -0
  37. package/dist/engine/poller.d.ts.map +1 -0
  38. package/dist/engine/poller.js +51 -0
  39. package/dist/engine/reconcile.d.ts +36 -0
  40. package/dist/engine/reconcile.d.ts.map +1 -0
  41. package/dist/engine/reconcile.js +81 -0
  42. package/dist/engine/snapshot.d.ts +58 -0
  43. package/dist/engine/snapshot.d.ts.map +1 -0
  44. package/dist/engine/snapshot.js +10 -0
  45. package/dist/engine/stabilize.d.ts +8 -0
  46. package/dist/engine/stabilize.d.ts.map +1 -0
  47. package/dist/engine/stabilize.js +17 -0
  48. package/dist/engine/store.d.ts +21 -0
  49. package/dist/engine/store.d.ts.map +1 -0
  50. package/dist/engine/store.js +46 -0
  51. package/dist/errors.d.ts +55 -0
  52. package/dist/errors.d.ts.map +1 -0
  53. package/dist/errors.js +80 -0
  54. package/dist/events.d.ts +62 -0
  55. package/dist/events.d.ts.map +1 -0
  56. package/dist/events.js +1 -0
  57. package/dist/exit.d.ts +93 -0
  58. package/dist/exit.d.ts.map +1 -0
  59. package/dist/exit.js +86 -0
  60. package/dist/facade.d.ts +88 -0
  61. package/dist/facade.d.ts.map +1 -0
  62. package/dist/facade.js +150 -0
  63. package/dist/generated.d.ts +1197 -0
  64. package/dist/generated.d.ts.map +1 -0
  65. package/dist/generated.js +206 -0
  66. package/dist/index.d.ts +28 -0
  67. package/dist/index.d.ts.map +1 -0
  68. package/dist/index.js +36 -0
  69. package/dist/passkey.d.ts +46 -0
  70. package/dist/passkey.d.ts.map +1 -0
  71. package/dist/passkey.js +16 -0
  72. package/dist/public-api-assertions.d.ts +2 -0
  73. package/dist/public-api-assertions.d.ts.map +1 -0
  74. package/dist/public-api-assertions.js +42 -0
  75. package/dist/request-assertions.d.ts +2 -0
  76. package/dist/request-assertions.d.ts.map +1 -0
  77. package/dist/request-assertions.js +12 -0
  78. package/dist/requests.d.ts +186 -0
  79. package/dist/requests.d.ts.map +1 -0
  80. package/dist/requests.js +5 -0
  81. package/dist/response-normalization.d.ts +5 -0
  82. package/dist/response-normalization.d.ts.map +1 -0
  83. package/dist/response-normalization.js +101 -0
  84. package/dist/results.d.ts +49 -0
  85. package/dist/results.d.ts.map +1 -0
  86. package/dist/results.js +4 -0
  87. package/dist/state.d.ts +87 -0
  88. package/dist/state.d.ts.map +1 -0
  89. package/dist/state.js +87 -0
  90. package/dist/version.d.ts +18 -0
  91. package/dist/version.d.ts.map +1 -0
  92. package/dist/version.js +17 -0
  93. package/package.json +42 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated.d.ts","sourceRoot":"","sources":["../src/generated.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,MAAM,WAAW,MAAM;CACtB;AAKD;;;;;GAKG;AACH,MAAM,MAAM,MAAM,GAAG,GAAG,CAAC;AAKzB;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,GAAG,CAAoB;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,GAAG,CAAiB;IAC/B;;;;OAIG;IACH,YAAY,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,eAAe,EAAE,SAAS,CAAC;IAC3B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,cAAc,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,kBAAkB,EAAE,GAAG,CAAqB;IAC5C;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAc;IAC1C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iCAAiC,EAAE,MAAM,CAAC;IAC1C;;;;OAIG;IACH,kCAAkC,EAAE,MAAM,CAAC;IAC3C;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,mBAAmB,EAAE,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AM,gBAAgB,GAAG,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,oBAAoB,GAAG,QAAQ,CAAC;AACtG;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAA8B,CAAC;AACtE;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAA4B,CAAC;AACnE;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAA6B,CAAC;AACrE;;;GAGG;AACH,eAAO,MAAM,iCAAiC,EAAE,gBAAuC,CAAC;AACxF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,EAAE,gBAA2B,CAAC"}
@@ -0,0 +1,206 @@
1
+ // AUTO-GENERATED by scripts/gen-types.mts from github.com/lightninglabs/wavelength/sdk/wavewalletdk
2
+ // (wavelength). Do not edit by hand; run `pnpm gen:types` to refresh.
3
+ /**
4
+ * TransportGRPC connects to the daemon with native gRPC.
5
+ */
6
+ export const TransportGRPC = "grpc";
7
+ /**
8
+ * TransportREST connects to the daemon through grpc-gateway HTTP/JSON.
9
+ */
10
+ export const TransportREST = "rest";
11
+ /**
12
+ * WalletStateUnspecified is the proto3 zero value. The daemon
13
+ * never emits this; reserved so a missing field deserializes to
14
+ * a safe non-ready state.
15
+ */
16
+ export const WalletStateUnspecified = 0;
17
+ /**
18
+ * WalletStateNone indicates no wallet has been created yet.
19
+ */
20
+ export const WalletStateNone = 1;
21
+ /**
22
+ * WalletStateLocked indicates a wallet database exists but its
23
+ * password has not been provided; signing is unavailable.
24
+ */
25
+ export const WalletStateLocked = 2;
26
+ /**
27
+ * WalletStateReady indicates the wallet is initialized, unlocked,
28
+ * and signing is available.
29
+ */
30
+ export const WalletStateReady = 3;
31
+ /**
32
+ * WalletStateSyncing indicates the wallet is unlocked and the
33
+ * backing chain source is catching up before wallet RPCs are safe.
34
+ */
35
+ export const WalletStateSyncing = 4;
36
+ export const SendRailUnspecified = "unspecified";
37
+ export const SendRailOffchainUnknown = "offchain_unknown";
38
+ export const SendRailInArk = "in_ark";
39
+ export const SendRailLightning = "lightning";
40
+ export const SendRailOnchain = "onchain";
41
+ export const SendRailCredit = "credit";
42
+ export const SendRailMixed = "mixed";
43
+ export const SendQuoteStatusUnspecified = "unspecified";
44
+ export const SendQuoteStatusComplete = "complete";
45
+ export const SendQuoteStatusLocalOnly = "local_only";
46
+ /**
47
+ * ListViewActivity returns the merged WalletEntry stream
48
+ * (send / recv / deposit / exit). Default.
49
+ */
50
+ export const ListViewActivity = "activity";
51
+ /**
52
+ * ListViewVTXOs returns the live VTXO inventory.
53
+ */
54
+ export const ListViewVTXOs = "vtxos";
55
+ /**
56
+ * ListViewOnchain returns the on-chain transaction history
57
+ * (boarding, sweeps, leave outputs).
58
+ */
59
+ export const ListViewOnchain = "onchain";
60
+ /**
61
+ * ExitPathCooperative means the cooperative leave was admitted by
62
+ * the operator; QueuedOutpoints carries the round's selection
63
+ * echo. Cooperative round completion is asynchronous; subscribe
64
+ * via wavewalletrpc.SubscribeWallet to confirm terminal state.
65
+ */
66
+ export const ExitPathCooperative = "cooperative";
67
+ /**
68
+ * ExitPathUnilateral means the caller supplied the exact force
69
+ * acknowledgement and the daemon started unilateral unroll. Created
70
+ * and ActorID describe the unilateral unroll job.
71
+ */
72
+ export const ExitPathUnilateral = "unilateral";
73
+ /**
74
+ * ExitPathUnilateralFallback is retained for source compatibility
75
+ * with the prior SDK result shape. New forced unrolls return
76
+ * ExitPathUnilateral; current wallet RPC behavior never returns this
77
+ * path because cooperative failures are surfaced directly.
78
+ */
79
+ export const ExitPathUnilateralFallback = "unilateral_fallback";
80
+ export const ExitJobStatusUnspecified = "unspecified";
81
+ export const ExitJobStatusPending = "pending";
82
+ export const ExitJobStatusMaterializing = "materializing";
83
+ export const ExitJobStatusCSVPending = "csv_pending";
84
+ export const ExitJobStatusSweeping = "sweeping";
85
+ export const ExitJobStatusCompleted = "completed";
86
+ export const ExitJobStatusFailed = "failed";
87
+ export const ExitInfeasibilityReasonUnspecified = "unspecified";
88
+ export const ExitInfeasibilityReasonSweepBelowDust = "sweep_below_dust";
89
+ export const ExitInfeasibilityReasonUneconomical = "uneconomical";
90
+ export const ExitInfeasibilityReasonWalletUnderfunded = "wallet_underfunded";
91
+ export const ExitInfeasibilityReasonWalletTooFewInputs = "wallet_too_few_inputs";
92
+ /**
93
+ * EntryKindSend is an outbound wallet payment.
94
+ */
95
+ export const EntryKindSend = "send";
96
+ /**
97
+ * EntryKindReceive is an inbound Lightning-to-wallet receive.
98
+ */
99
+ export const EntryKindReceive = "receive";
100
+ /**
101
+ * EntryKindDeposit is a boarding on-chain deposit.
102
+ */
103
+ export const EntryKindDeposit = "deposit";
104
+ /**
105
+ * EntryKindExit is a cooperative wallet-to-on-chain exit.
106
+ */
107
+ export const EntryKindExit = "exit";
108
+ /**
109
+ * EntryStatusPending means the activity is still in flight.
110
+ */
111
+ export const EntryStatusPending = "pending";
112
+ /**
113
+ * EntryStatusComplete means the activity finished successfully.
114
+ */
115
+ export const EntryStatusComplete = "complete";
116
+ /**
117
+ * EntryStatusFailed means the activity reached a terminal failure.
118
+ */
119
+ export const EntryStatusFailed = "failed";
120
+ /**
121
+ * EntryPhaseUnspecified means the backing subsystem provided no
122
+ * lifecycle hint.
123
+ */
124
+ export const EntryPhaseUnspecified = "unspecified";
125
+ /**
126
+ * EntryPhaseRequestCreated means the request was created but no payment
127
+ * has been observed yet.
128
+ */
129
+ export const EntryPhaseRequestCreated = "request_created";
130
+ /**
131
+ * EntryPhaseWaitingForPayment means the wallet is waiting for an
132
+ * inbound payment or swap funding.
133
+ */
134
+ export const EntryPhaseWaitingForPayment = "waiting_for_payment";
135
+ /**
136
+ * EntryPhasePaymentDetected means a payment was detected but is not yet
137
+ * settled.
138
+ */
139
+ export const EntryPhasePaymentDetected = "payment_detected";
140
+ /**
141
+ * EntryPhaseSettling means the operation is settling through Ark,
142
+ * Lightning, or on-chain machinery.
143
+ */
144
+ export const EntryPhaseSettling = "settling";
145
+ /**
146
+ * EntryPhaseConfirmed means the backing operation is confirmed or
147
+ * otherwise durably complete.
148
+ */
149
+ export const EntryPhaseConfirmed = "confirmed";
150
+ /**
151
+ * EntryPhaseRefunding means the operation is currently refunding.
152
+ */
153
+ export const EntryPhaseRefunding = "refunding";
154
+ /**
155
+ * EntryPhaseRefunded means the refund path completed.
156
+ */
157
+ export const EntryPhaseRefunded = "refunded";
158
+ /**
159
+ * EntryPhaseFailed means the backing operation reached a terminal
160
+ * failed state.
161
+ */
162
+ export const EntryPhaseFailed = "failed";
163
+ /**
164
+ * EntryPhaseWaitingForConfirmation means an on-chain payment was
165
+ * detected and is waiting for block confirmation.
166
+ */
167
+ export const EntryPhaseWaitingForConfirmation = "waiting_for_confirmation";
168
+ /**
169
+ * EntryRequestTypeLightning marks a Lightning send/recv request; the
170
+ * LightningInvoice and PaymentHash fields are populated.
171
+ */
172
+ export const EntryRequestTypeLightning = "lightning";
173
+ /**
174
+ * EntryRequestTypeOnchain marks a deposit/exit request; the
175
+ * OnchainAddress field is populated.
176
+ */
177
+ export const EntryRequestTypeOnchain = "onchain";
178
+ /**
179
+ * EntryRequestTypeArk marks a direct Ark send/recv request; the
180
+ * ArkAddress field is populated.
181
+ */
182
+ export const EntryRequestTypeArk = "ark";
183
+ /**
184
+ * EntryFailureCodeTimedOut means the operation exceeded the wallet
185
+ * deadline before reaching a terminal state.
186
+ */
187
+ export const EntryFailureCodeTimedOut = "timed_out";
188
+ /**
189
+ * EntryFailureCodeExpired means the swap expired before it was funded.
190
+ */
191
+ export const EntryFailureCodeExpired = "expired";
192
+ /**
193
+ * EntryFailureCodeRefunded means an outbound payment was refunded back
194
+ * to the wallet.
195
+ */
196
+ export const EntryFailureCodeRefunded = "refunded";
197
+ /**
198
+ * EntryFailureCodeNeedsIntervention means the swap reached an anomalous
199
+ * state requiring manual recovery.
200
+ */
201
+ export const EntryFailureCodeNeedsIntervention = "needs_intervention";
202
+ /**
203
+ * EntryFailureCodeFailed is a generic terminal failure with no more
204
+ * specific classification.
205
+ */
206
+ export const EntryFailureCodeFailed = "failed";
@@ -0,0 +1,28 @@
1
+ export type { ActivityStreamPayload, ActivityStreamState, WavelengthEvent, WavelengthEventType, WavelengthListener, WavelengthLogLevel, WavelengthLogPayload, } from './events.ts';
2
+ export { DEBUG_LEVELS, networkDefaults, validateRuntimeConfig, } from './config.ts';
3
+ export type { DebugLevel, Network, PresetNetwork, RuntimeConfig, } from './config.ts';
4
+ export { WalletState, normalizeInfo, phaseFromInfo, walletStateFromProto } from './state.ts';
5
+ export type { RuntimePhase, ServerInfo, WalletInfo, WalletPhase, WalletStatus, } from './state.ts';
6
+ export type { CreateWalletRequest, DepositRequest, ExitRequest, ExitStatusRequest, ExitSummaryRequest, GetExitPlanRequest, ListRequest, OpenWalletFromPasskeyRequest, ReceiveRequest, RestoreWalletRequest, SendRequest, SweepWalletRequest, UnlockWalletRequest, } from './requests.ts';
7
+ export { FORCE_UNROLL_ACK } from './requests.ts';
8
+ export type { ActivityStreamOptions } from './activity-options.ts';
9
+ export type { ActivityList, Balance, CreateWalletResult, CreditPreview, DepositResult, Entry, EntryFailureCode, EntryKind, EntryPhase, EntryProgress, EntryRequest, EntryRequestType, EntryStatus, ExitCSV, ExitFees, ExitInfeasibilityReason, ExitJobStatus, ExitPath, ExitPlanEntry, ExitProgress, ExitResult, ExitStatusResult, ExitSummaryEntry, ExitSummaryResult, GetExitPlanResult, ListResult, ListView, OnchainHistory, OnchainTx, OpenWalletFromPasskeyResult, PrepareSendResult, ReceiveResult, SendRail, SendQuoteStatus, SendResult, SweepWalletResult, UnlockWalletResult, VTXOInventory, WalletVTXO, WalletSweepInput, } from './results.ts';
10
+ export { SendRailUnspecified, SendRailOffchainUnknown, SendRailInArk, SendRailLightning, SendRailOnchain, SendRailCredit, SendRailMixed, SendQuoteStatusUnspecified, SendQuoteStatusComplete, SendQuoteStatusLocalOnly, ListViewActivity, ListViewVTXOs, ListViewOnchain, ExitPathCooperative, ExitPathUnilateral, ExitPathUnilateralFallback, ExitJobStatusUnspecified, ExitJobStatusPending, ExitJobStatusMaterializing, ExitJobStatusCSVPending, ExitJobStatusSweeping, ExitJobStatusCompleted, ExitJobStatusFailed, ExitInfeasibilityReasonUnspecified, ExitInfeasibilityReasonSweepBelowDust, ExitInfeasibilityReasonUneconomical, ExitInfeasibilityReasonWalletUnderfunded, ExitInfeasibilityReasonWalletTooFewInputs, EntryKindSend, EntryKindReceive, EntryKindDeposit, EntryKindExit, EntryStatusPending, EntryStatusComplete, EntryStatusFailed, EntryPhaseUnspecified, EntryPhaseRequestCreated, EntryPhaseWaitingForPayment, EntryPhasePaymentDetected, EntryPhaseSettling, EntryPhaseConfirmed, EntryPhaseRefunding, EntryPhaseRefunded, EntryPhaseFailed, EntryPhaseWaitingForConfirmation, EntryRequestTypeLightning, EntryRequestTypeOnchain, EntryRequestTypeArk, EntryFailureCodeTimedOut, EntryFailureCodeExpired, EntryFailureCodeRefunded, EntryFailureCodeNeedsIntervention, EntryFailureCodeFailed, } from './results.ts';
11
+ export { exitBatch, isExitInfeasibilityFundable } from './exit.ts';
12
+ export type { ExitBatchEvent, ExitBatchOptions, ExitBatchResult, ExitBatchStop, } from './exit.ts';
13
+ export type { WavelengthClient } from './client.ts';
14
+ export { BaseWavelengthClient } from './base-client.ts';
15
+ export { WavelengthError, errorMessage, isPasskeyCancelled, PasskeyCancelledError, toError, } from './errors.ts';
16
+ export type { WavelengthErrorCode } from './errors.ts';
17
+ export { PASSKEY_PRF_NAMESPACE, PASSKEY_PRF_SALT_HEX } from './passkey.ts';
18
+ export type { PasskeyAssertion, PasskeyCeremony, WalletKind, } from './passkey.ts';
19
+ export { FACADE_METHODS, base64FromUtf8 } from './facade.ts';
20
+ export type { FacadeMethod } from './facade.ts';
21
+ export { RUNTIME_MANIFEST_VERSION } from './version.ts';
22
+ export { camelizeKeys } from './casing.ts';
23
+ export { classifyDestination } from './destination.ts';
24
+ export type { Destination, InvoiceAmount } from './destination.ts';
25
+ export { createWalletEngine } from './engine/engine.ts';
26
+ export type { DistributiveOmit, WalletEngine, WalletEngineOptions } from './engine/engine.ts';
27
+ export type { RecoveryState, WalletSnapshot } from './engine/snapshot.ts';
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,YAAY,EACV,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,GACrB,MAAM,aAAa,CAAC;AAKrB,OAAO,EACL,YAAY,EACZ,eAAe,EACf,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,UAAU,EACV,OAAO,EACP,aAAa,EACb,aAAa,GACd,MAAM,aAAa,CAAC;AAGrB,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAC7F,YAAY,EACV,YAAY,EACZ,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,GACb,MAAM,YAAY,CAAC;AAGpB,YAAY,EACV,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,4BAA4B,EAC5B,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,YAAY,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAGnE,YAAY,EACV,YAAY,EACZ,OAAO,EACP,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,KAAK,EACL,gBAAgB,EAChB,SAAS,EACT,UAAU,EACV,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,QAAQ,EACR,uBAAuB,EACvB,aAAa,EACb,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,UAAU,EACV,gBAA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pD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxD,OAAO,EACL,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,qBAAqB,EACrB,OAAO,GACR,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC3E,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,UAAU,GACX,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAIhD,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAIxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAI3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9F,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,36 @@
1
+ // The framework-agnostic contract for Wavelength. This file is a thin barrel that
2
+ // re-exports the package's public API from the per-concern modules below; the
3
+ // definitions live there. See each module for the documented symbols.
4
+ // Network selection and runtime configuration. App code normally builds a
5
+ // config through a transport package's defaultConfig helper; networkDefaults
6
+ // is the shared endpoint table those helpers compose over.
7
+ export { DEBUG_LEVELS, networkDefaults, validateRuntimeConfig, } from "./config.js";
8
+ // Wallet lifecycle state and the phases a UI renders.
9
+ export { WalletState, normalizeInfo, phaseFromInfo, walletStateFromProto } from "./state.js";
10
+ export { FORCE_UNROLL_ACK } from "./requests.js";
11
+ export { SendRailUnspecified, SendRailOffchainUnknown, SendRailInArk, SendRailLightning, SendRailOnchain, SendRailCredit, SendRailMixed, SendQuoteStatusUnspecified, SendQuoteStatusComplete, SendQuoteStatusLocalOnly, ListViewActivity, ListViewVTXOs, ListViewOnchain, ExitPathCooperative, ExitPathUnilateral, ExitPathUnilateralFallback, ExitJobStatusUnspecified, ExitJobStatusPending, ExitJobStatusMaterializing, ExitJobStatusCSVPending, ExitJobStatusSweeping, ExitJobStatusCompleted, ExitJobStatusFailed, ExitInfeasibilityReasonUnspecified, ExitInfeasibilityReasonSweepBelowDust, ExitInfeasibilityReasonUneconomical, ExitInfeasibilityReasonWalletUnderfunded, ExitInfeasibilityReasonWalletTooFewInputs, EntryKindSend, EntryKindReceive, EntryKindDeposit, EntryKindExit, EntryStatusPending, EntryStatusComplete, EntryStatusFailed, EntryPhaseUnspecified, EntryPhaseRequestCreated, EntryPhaseWaitingForPayment, EntryPhasePaymentDetected, EntryPhaseSettling, EntryPhaseConfirmed, EntryPhaseRefunding, EntryPhaseRefunded, EntryPhaseFailed, EntryPhaseWaitingForConfirmation, EntryRequestTypeLightning, EntryRequestTypeOnchain, EntryRequestTypeArk, EntryFailureCodeTimedOut, EntryFailureCodeExpired, EntryFailureCodeRefunded, EntryFailureCodeNeedsIntervention, EntryFailureCodeFailed, } from "./results.js";
12
+ // Exit-batch orchestration.
13
+ export { exitBatch, isExitInfeasibilityFundable } from "./exit.js";
14
+ // The transport-agnostic half of the client, for transport implementers:
15
+ // extend it and supply invokeFacade, ready, the activity plumbing, and the
16
+ // transport flavor.
17
+ export { BaseWavelengthClient } from "./base-client.js";
18
+ // The SDK error type and its machine-readable codes.
19
+ export { WavelengthError, errorMessage, isPasskeyCancelled, PasskeyCancelledError, toError, } from "./errors.js";
20
+ // Passkey contract types, the wallet-kind label, and the shared PRF salt.
21
+ export { PASSKEY_PRF_NAMESPACE, PASSKEY_PRF_SALT_HEX } from "./passkey.js";
22
+ // The daemon facade method catalog shared by every transport.
23
+ export { FACADE_METHODS, base64FromUtf8 } from "./facade.js";
24
+ // The daemon build this SDK release is paired with (generated types and
25
+ // runtime assets alike).
26
+ export { RUNTIME_MANIFEST_VERSION } from "./version.js";
27
+ // BaseWavelengthClient applies camelizeKeys once to every facade response.
28
+ // Transports should return daemon-shaped values instead of normalizing them.
29
+ export { camelizeKeys } from "./casing.js";
30
+ // classifyDestination decides which fields a send UI should render for a pasted
31
+ // destination. It never names a settlement rail; read that from prepareSend.
32
+ export { classifyDestination } from "./destination.js";
33
+ // The headless wallet engine: the framework-agnostic orchestrator that React
34
+ // (and future bindings) subscribe to. Most apps construct one through a
35
+ // transport factory (createWebWalletEngine / createNativeWalletEngine).
36
+ export { createWalletEngine } from "./engine/engine.js";
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Labels how a local wallet is unlocked.
3
+ */
4
+ export type WalletKind = 'passkey' | 'password';
5
+ /**
6
+ * A passkey ceremony result: the PRF output (hex) shared with the Go SDK, plus
7
+ * the credential id that produced it so callers can scope later assertions to the
8
+ * same passkey.
9
+ */
10
+ export type PasskeyAssertion = {
11
+ /** The PRF output (hex) shared with the Go SDK. */
12
+ prfOutput: string;
13
+ /** The credential id that produced the PRF output. */
14
+ credentialId: string;
15
+ };
16
+ /**
17
+ * The per-platform passkey ceremony the passkey hook drives. The browser
18
+ * (WebAuthn/PRF) implementation is wavelength-web's `webPasskeyCeremony`; a native
19
+ * transport supplies its own. Injecting it keeps wavelength-react free of any
20
+ * transport dependency.
21
+ */
22
+ export type PasskeyCeremony = {
23
+ /** Resolves true when the platform supports passkey PRF. */
24
+ supportsPasskeyPrf(): Promise<boolean>;
25
+ /** Registers a new passkey wallet and returns its assertion. */
26
+ registerPasskeyWallet(appName: string): Promise<PasskeyAssertion>;
27
+ /** Asserts an existing passkey, optionally scoped to a credential id. */
28
+ assertPasskeyPrf(allowCredentialId?: string): Promise<PasskeyAssertion>;
29
+ };
30
+ /**
31
+ * The PRF namespace every Wavelength passkey ceremony evaluates. Chosen
32
+ * client-side: its SHA-256 (PASSKEY_PRF_SALT_HEX) is the fixed WebAuthn
33
+ * prf.eval.first salt every ceremony evaluates, and the resulting raw PRF
34
+ * output is what the daemon's HKDF derivation consumes. Changing it re-derives
35
+ * (orphans) every existing passkey wallet.
36
+ */
37
+ export declare const PASSKEY_PRF_NAMESPACE = "wavewalletdk-passkey:v1";
38
+ /**
39
+ * SHA-256(PASSKEY_PRF_NAMESPACE) as lower-case hex: the fixed PRF evaluation
40
+ * input (the WebAuthn prf.eval.first salt) every ceremony uses. The same salt
41
+ * on every device and platform is what makes the derived wallet reproducible.
42
+ * Precomputed so transports without WebCrypto (React Native/Hermes) need no
43
+ * runtime digest; a core unit test pins it to the namespace.
44
+ */
45
+ export declare const PASSKEY_PRF_SALT_HEX = "9a7a2e0ff3c5d1f2f172cd5edd67527bf392ae399048eb6e36b9cb6c3ab89d03";
46
+ //# sourceMappingURL=passkey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"passkey.d.ts","sourceRoot":"","sources":["../src/passkey.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;AAEhD;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,4DAA4D;IAC5D,kBAAkB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IACvC,gEAAgE;IAChE,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAClE,yEAAyE;IACzE,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACzE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,4BAA4B,CAAC;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,qEACmC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * The PRF namespace every Wavelength passkey ceremony evaluates. Chosen
3
+ * client-side: its SHA-256 (PASSKEY_PRF_SALT_HEX) is the fixed WebAuthn
4
+ * prf.eval.first salt every ceremony evaluates, and the resulting raw PRF
5
+ * output is what the daemon's HKDF derivation consumes. Changing it re-derives
6
+ * (orphans) every existing passkey wallet.
7
+ */
8
+ export const PASSKEY_PRF_NAMESPACE = 'wavewalletdk-passkey:v1';
9
+ /**
10
+ * SHA-256(PASSKEY_PRF_NAMESPACE) as lower-case hex: the fixed PRF evaluation
11
+ * input (the WebAuthn prf.eval.first salt) every ceremony uses. The same salt
12
+ * on every device and platform is what makes the derived wallet reproducible.
13
+ * Precomputed so transports without WebCrypto (React Native/Hermes) need no
14
+ * runtime digest; a core unit test pins it to the namespace.
15
+ */
16
+ export const PASSKEY_PRF_SALT_HEX = '9a7a2e0ff3c5d1f2f172cd5edd67527bf392ae399048eb6e36b9cb6c3ab89d03';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=public-api-assertions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api-assertions.d.ts","sourceRoot":"","sources":["../src/public-api-assertions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
1
+ import { EntryFailureCodeFailed, EntryKindSend, EntryPhaseSettling, EntryRequestTypeLightning, EntryStatusPending, ExitInfeasibilityReasonUneconomical, ExitJobStatusPending, ExitPathUnilateral, FACADE_METHODS, isExitInfeasibilityFundable, ListViewActivity, SendQuoteStatusComplete, SendRailLightning, } from "./index.js";
2
+ const method = FACADE_METHODS[0];
3
+ const activityOptions = { kinds: [EntryKindSend], cursor: 0 };
4
+ const acknowledgement = 'I_KNOW_WHAT_I_AM_DOING';
5
+ const subsystemDebugConfig = { debugLevel: 'ROND=debug,info' };
6
+ const pickerDebugLevel = 'info';
7
+ // @ts-expect-error subsystem expressions are runtime config, not picker levels.
8
+ const subsystemPickerLevel = 'ROND=debug,info';
9
+ void method;
10
+ void activityOptions;
11
+ void acknowledgement;
12
+ void subsystemDebugConfig;
13
+ void pickerDebugLevel;
14
+ void subsystemPickerLevel;
15
+ void [
16
+ EntryFailureCodeFailed,
17
+ EntryPhaseSettling,
18
+ EntryRequestTypeLightning,
19
+ EntryStatusPending,
20
+ ExitInfeasibilityReasonUneconomical,
21
+ ExitJobStatusPending,
22
+ ExitPathUnilateral,
23
+ ListViewActivity,
24
+ SendQuoteStatusComplete,
25
+ SendRailLightning,
26
+ ];
27
+ void null;
28
+ void null;
29
+ void null;
30
+ void null;
31
+ void null;
32
+ void null;
33
+ void null;
34
+ void null;
35
+ void null;
36
+ void null;
37
+ const _fundable = isExitInfeasibilityFundable;
38
+ void _fundable;
39
+ void null;
40
+ void null;
41
+ void null;
42
+ void null;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=request-assertions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-assertions.d.ts","sourceRoot":"","sources":["../src/request-assertions.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { FORCE_UNROLL_ACK } from "./requests.js";
2
+ const cooperativeExit = { outpoint: 'tx:0', destination: 'bcrt1q...' };
3
+ const unilateralExit = { outpoint: 'tx:0', forceUnrollAck: FORCE_UNROLL_ACK };
4
+ // @ts-expect-error destination and force acknowledgement are mutually exclusive.
5
+ const invalidExit = {
6
+ outpoint: 'tx:0',
7
+ destination: 'bcrt1q...',
8
+ forceUnrollAck: FORCE_UNROLL_ACK,
9
+ };
10
+ void cooperativeExit;
11
+ void unilateralExit;
12
+ void invalidExit;
@@ -0,0 +1,186 @@
1
+ import type { EntryKind, ListView } from './generated.ts';
2
+ /**
3
+ * Parameters for creating a new wallet.
4
+ */
5
+ export type CreateWalletRequest = {
6
+ /** The plain password the client base64-encodes into the daemon's byte field. */
7
+ password: string;
8
+ /** An optional existing mnemonic to restore from; a fresh one is generated when omitted. */
9
+ mnemonic?: string[];
10
+ /** An optional BIP-39 passphrase applied on top of the mnemonic. */
11
+ seedPassphrase?: string;
12
+ /**
13
+ * Opt into server-assisted recovery. When true, the daemon rebuilds wallet
14
+ * state (boarding UTXOs, VTXOs, and receive history) from the seed by
15
+ * querying the operator's indexer, rather than starting empty. Leave it unset
16
+ * or false when creating a fresh wallet; set it when restoring from a
17
+ * `mnemonic` so the funds and activity come back. Defaults to false.
18
+ */
19
+ recoverState?: boolean;
20
+ /**
21
+ * The per-key-family look-ahead used during recovery: how many unused
22
+ * addresses past the last used one the indexer scan probes before giving up.
23
+ * Only meaningful when `recoverState` is true. Omit to let the daemon resolve
24
+ * its own default; raise it if a wallet skipped a large gap of addresses.
25
+ */
26
+ recoveryWindow?: number;
27
+ };
28
+ /**
29
+ * Parameters for unlocking an existing wallet.
30
+ */
31
+ export type UnlockWalletRequest = {
32
+ /** The plain password the client base64-encodes into the daemon's byte field. */
33
+ password: string;
34
+ };
35
+ /**
36
+ * Parameters for opening a wallet from a passkey assertion.
37
+ */
38
+ export type OpenWalletFromPasskeyRequest = {
39
+ /** The PRF output (hex) derived from the passkey ceremony. */
40
+ prfOutput: string;
41
+ };
42
+ /**
43
+ * Parameters for generating an on-chain deposit address.
44
+ */
45
+ export type DepositRequest = {
46
+ /** An optional hint for the amount (in sats) the caller intends to deposit. */
47
+ amountSatHint?: number;
48
+ };
49
+ /**
50
+ * Parameters for generating a receive invoice.
51
+ */
52
+ export type ReceiveRequest = {
53
+ /** The amount to request, in sats. */
54
+ amountSat: number;
55
+ /** An optional memo attached to the invoice. */
56
+ memo?: string;
57
+ };
58
+ /**
59
+ * Parameters for sending a payment, as a discriminated union: supply an
60
+ * `invoice` for a Lightning send or an `onchainAddress` for an on-chain send.
61
+ * The two are mutually exclusive, and `sweepAll` applies only to on-chain sends.
62
+ */
63
+ export type SendRequest = {
64
+ /** A Lightning invoice to pay. */
65
+ invoice: string;
66
+ /** The amount to send, in sats. Ignored on the invoice path: v1 requires an amount-bearing BOLT-11 invoice. */
67
+ amountSat?: number;
68
+ /** An optional note recorded with the activity. */
69
+ note?: string;
70
+ /** An optional cap on the fee, in sats. */
71
+ maxFeeSat?: number;
72
+ } | {
73
+ /** An on-chain address to pay. */
74
+ onchainAddress: string;
75
+ /** The amount to send, in sats. Provide this or set `sweepAll`. */
76
+ amountSat?: number;
77
+ /** When true, sweeps the entire spendable balance to the destination. */
78
+ sweepAll?: boolean;
79
+ /** An optional note recorded with the activity. */
80
+ note?: string;
81
+ /** An optional cap on the fee, in sats. */
82
+ maxFeeSat?: number;
83
+ };
84
+ /**
85
+ * Parameters for listing wallet activity or UTXOs.
86
+ */
87
+ export type ListRequest = {
88
+ /** Which view to list: activity entries, VTXOs, or on-chain outputs. */
89
+ view?: ListView;
90
+ /** When true, returns only pending items. */
91
+ pendingOnly?: boolean;
92
+ /** Restricts results to the selected activity kinds. */
93
+ kinds?: EntryKind[];
94
+ /** The maximum number of items to return. */
95
+ limit?: number;
96
+ /**
97
+ * The number of items to skip for pagination. Applies to the `vtxos` and
98
+ * `onchain` views only; the `activity` view paginates by `cursor` and
99
+ * ignores `offset`.
100
+ */
101
+ offset?: number;
102
+ /**
103
+ * The opaque pagination token for the `activity` view. Empty starts from
104
+ * the newest entry; otherwise pass the `nextCursor` from the previous
105
+ * {@link ActivityList} page. Ignored by the `vtxos` and `onchain` views.
106
+ */
107
+ cursor?: string;
108
+ };
109
+ /** Exact acknowledgement required to start a unilateral unroll. */
110
+ export declare const FORCE_UNROLL_ACK: "I_KNOW_WHAT_I_AM_DOING";
111
+ /**
112
+ * Parameters for exiting one VTXO through a cooperative leave or an explicitly
113
+ * acknowledged unilateral unroll.
114
+ */
115
+ export type ExitRequest = {
116
+ /** The VTXO outpoint to exit. */
117
+ outpoint: string;
118
+ /**
119
+ * Cooperative on-chain destination. When omitted, the daemon generates
120
+ * a fresh backing-wallet address.
121
+ */
122
+ destination?: string;
123
+ /** Unavailable on the cooperative branch. */
124
+ forceUnrollAck?: never;
125
+ } | {
126
+ /** The VTXO outpoint to exit. */
127
+ outpoint: string;
128
+ /** Unavailable on the unilateral branch. */
129
+ destination?: never;
130
+ /** The exact acknowledgement required to start unilateral unroll. */
131
+ forceUnrollAck: typeof FORCE_UNROLL_ACK;
132
+ };
133
+ /**
134
+ * Parameters for querying the status of an exit.
135
+ */
136
+ export type ExitStatusRequest = {
137
+ /** The VTXO outpoint whose exit status is queried. */
138
+ outpoint: string;
139
+ /**
140
+ * Request recovery-tree progress, a CSV maturity countdown, a fee breakdown,
141
+ * and a best-case block countdown. It costs one live actor round-trip plus a
142
+ * fee estimate, so leave it unset or false (both give the coarse, cheaper
143
+ * phase-only status). Omitting it defaults to false; the wavecli `exit
144
+ * status` command defaults to true instead.
145
+ */
146
+ detailed?: boolean;
147
+ };
148
+ /**
149
+ * Parameters for summarizing all in-progress exits. Takes no arguments; the
150
+ * daemon reports the wallet-wide portfolio.
151
+ */
152
+ export type ExitSummaryRequest = Record<string, never>;
153
+ /**
154
+ * Previews unilateral-exit readiness for a set of VTXO outpoints (funding the
155
+ * backing wallet needs before Exit can run).
156
+ */
157
+ export type GetExitPlanRequest = {
158
+ /** The VTXO outpoints to plan an exit for. */
159
+ outpoints: string[];
160
+ /** An optional confirmation target (in blocks) used to estimate fees. */
161
+ confTarget?: number;
162
+ };
163
+ /**
164
+ * Previews (`broadcast: false`) or broadcasts (`broadcast: true`) a sweep of the
165
+ * backing wallet to destinationAddress. It moves funds when broadcast is true,
166
+ * so surface the preview to the user first.
167
+ */
168
+ export type SweepWalletRequest = {
169
+ /** The on-chain address to sweep the backing wallet to. */
170
+ destinationAddress: string;
171
+ /** When true, broadcasts the sweep; when false (the default), only previews it. */
172
+ broadcast?: boolean;
173
+ /** An optional explicit fee rate, in sat/vByte. */
174
+ feeRateSatPerVByte?: number;
175
+ /** An optional confirmation target (in blocks) used to estimate fees. */
176
+ confTarget?: number;
177
+ };
178
+ /**
179
+ * A restore-from-mnemonic request: creation options stay meaningful on import,
180
+ * and the mnemonic is mandatory.
181
+ */
182
+ export type RestoreWalletRequest = CreateWalletRequest & {
183
+ /** The recovery phrase to restore from. */
184
+ mnemonic: string[];
185
+ };
186
+ //# sourceMappingURL=requests.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../src/requests.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,4FAA4F;IAC5F,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,oEAAoE;IACpE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC,8DAA8D;IAC9D,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GACnB;IACE,kCAAkC;IA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