@juspay/neurolink 11.29.2 → 11.30.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.
- package/CHANGELOG.md +3 -3
- package/dist/auth/anthropicOAuth.d.ts +50 -0
- package/dist/auth/anthropicOAuth.js +78 -0
- package/dist/browser/neurolink.min.js +393 -393
- package/dist/cli/commands/proxy.d.ts +2 -0
- package/dist/cli/commands/proxy.js +284 -4
- package/dist/cli/commands/proxyExpose.d.ts +35 -0
- package/dist/cli/commands/proxyExpose.js +252 -0
- package/dist/cli/commands/proxyPeer.d.ts +29 -0
- package/dist/cli/commands/proxyPeer.js +738 -0
- package/dist/cli/commands/proxyShare.d.ts +37 -0
- package/dist/cli/commands/proxyShare.js +1080 -0
- package/dist/cli/parser.js +7 -1
- package/dist/proxy/peerStore.d.ts +52 -0
- package/dist/proxy/peerStore.js +324 -0
- package/dist/proxy/peerTransport.d.ts +38 -0
- package/dist/proxy/peerTransport.js +242 -0
- package/dist/proxy/proxyPaths.d.ts +8 -0
- package/dist/proxy/proxyPaths.js +55 -17
- package/dist/proxy/requestLogger.js +8 -0
- package/dist/proxy/residentGrants.d.ts +57 -0
- package/dist/proxy/residentGrants.js +393 -0
- package/dist/proxy/shareAudit.d.ts +81 -0
- package/dist/proxy/shareAudit.js +280 -0
- package/dist/proxy/shareContext.d.ts +38 -0
- package/dist/proxy/shareContext.js +92 -0
- package/dist/proxy/shareGate.d.ts +64 -0
- package/dist/proxy/shareGate.js +216 -0
- package/dist/proxy/shareGrants.d.ts +115 -0
- package/dist/proxy/shareGrants.js +590 -0
- package/dist/proxy/shareLease.d.ts +101 -0
- package/dist/proxy/shareLease.js +192 -0
- package/dist/proxy/shareLedger.d.ts +105 -0
- package/dist/proxy/shareLedger.js +406 -0
- package/dist/proxy/shareListener.d.ts +60 -0
- package/dist/proxy/shareListener.js +143 -0
- package/dist/proxy/shareNotes.d.ts +97 -0
- package/dist/proxy/shareNotes.js +234 -0
- package/dist/proxy/sharePolicy.d.ts +110 -0
- package/dist/proxy/sharePolicy.js +366 -0
- package/dist/proxy/shareProvisioning.d.ts +110 -0
- package/dist/proxy/shareProvisioning.js +237 -0
- package/dist/proxy/shareReceipts.d.ts +99 -0
- package/dist/proxy/shareReceipts.js +303 -0
- package/dist/proxy/shareSigning.d.ts +40 -0
- package/dist/proxy/shareSigning.js +78 -0
- package/dist/server/routes/claudeProxyRoutes.js +1066 -3
- package/dist/types/cli.d.ts +61 -0
- package/dist/types/proxy.d.ts +781 -0
- package/package.json +2 -1
package/dist/types/cli.d.ts
CHANGED
|
@@ -779,6 +779,8 @@ export declare namespace MistralSetup {
|
|
|
779
779
|
/** Arguments accepted by `neurolink proxy start` */
|
|
780
780
|
export type ProxyStartArgs = {
|
|
781
781
|
port?: number;
|
|
782
|
+
/** Gate-only listener port. Defaults to `port + 1`. */
|
|
783
|
+
sharePort?: number;
|
|
782
784
|
host?: string;
|
|
783
785
|
strategy?: string;
|
|
784
786
|
healthInterval?: number;
|
|
@@ -887,6 +889,8 @@ export type ProxyState = {
|
|
|
887
889
|
pid: number;
|
|
888
890
|
port: number;
|
|
889
891
|
host: string;
|
|
892
|
+
/** Gate-only listener port, present only while this node lends capacity. */
|
|
893
|
+
sharePort?: number;
|
|
890
894
|
strategy: string;
|
|
891
895
|
startTime: string;
|
|
892
896
|
ready?: boolean;
|
|
@@ -1732,3 +1736,60 @@ export type CliAudioPlayerCommand = {
|
|
|
1732
1736
|
* generate/stream/batch run starts (--image/--csv/--pdf/--video/--file).
|
|
1733
1737
|
*/
|
|
1734
1738
|
export type CliValidatedFileOption = "--image" | "--csv" | "--pdf" | "--video" | "--file";
|
|
1739
|
+
/** Actions accepted by `neurolink proxy share`. */
|
|
1740
|
+
export type ProxyShareCliAction = "create" | "list" | "status" | "pause" | "resume" | "revoke" | "topup" | "set" | "link" | "rotate" | "level" | "provision" | "url" | "note" | "notes" | "receipts" | "delete";
|
|
1741
|
+
/** Named starting points for a grant's gate set. */
|
|
1742
|
+
export type ProxySharePresetName = "spare" | "spillover" | "metered" | "open";
|
|
1743
|
+
export type ProxyShareArgs = {
|
|
1744
|
+
action?: ProxyShareCliAction;
|
|
1745
|
+
/** Positional argument for actions that take one, e.g. `share url <url>`. */
|
|
1746
|
+
value?: string;
|
|
1747
|
+
/** `share url --clear`: forget this node's recorded public address. */
|
|
1748
|
+
clear?: boolean;
|
|
1749
|
+
peer?: string;
|
|
1750
|
+
/** Lender account a complete share is minted from, for drift auditing. */
|
|
1751
|
+
fromAccount?: string;
|
|
1752
|
+
/** Authorization code from the lender's browser, for split provisioning. */
|
|
1753
|
+
code?: string;
|
|
1754
|
+
/** `share note`: how long the note stays redeemable. */
|
|
1755
|
+
ttl?: string;
|
|
1756
|
+
/** `share note`: free-text note carried on the coin note itself. */
|
|
1757
|
+
memo?: string;
|
|
1758
|
+
/** Complete-mode lease shape. */
|
|
1759
|
+
offlineGrace?: string;
|
|
1760
|
+
heartbeat?: string;
|
|
1761
|
+
leaseTtl?: string;
|
|
1762
|
+
/** Public URL this node is reachable at, used to mint a share link. */
|
|
1763
|
+
publicUrl?: string;
|
|
1764
|
+
level?: string;
|
|
1765
|
+
preset?: string;
|
|
1766
|
+
ledger?: string;
|
|
1767
|
+
coins?: number;
|
|
1768
|
+
refill?: string;
|
|
1769
|
+
maxSlice?: string;
|
|
1770
|
+
maxSlicePerAccount?: string;
|
|
1771
|
+
reserve?: string;
|
|
1772
|
+
spillover?: string;
|
|
1773
|
+
models?: string[];
|
|
1774
|
+
accounts?: string[];
|
|
1775
|
+
rate?: string;
|
|
1776
|
+
concurrency?: number;
|
|
1777
|
+
schedule?: string;
|
|
1778
|
+
expires?: string;
|
|
1779
|
+
note?: string;
|
|
1780
|
+
to?: string;
|
|
1781
|
+
json?: boolean;
|
|
1782
|
+
dev?: boolean;
|
|
1783
|
+
};
|
|
1784
|
+
export type ProxyExposeArgs = {
|
|
1785
|
+
port?: number;
|
|
1786
|
+
host?: string;
|
|
1787
|
+
named?: string;
|
|
1788
|
+
force?: boolean;
|
|
1789
|
+
};
|
|
1790
|
+
/** What `proxy expose` learned by asking the running proxy directly. */
|
|
1791
|
+
export type ProxyGateProbe = {
|
|
1792
|
+
gated: boolean;
|
|
1793
|
+
reachable: boolean;
|
|
1794
|
+
detail: string;
|
|
1795
|
+
};
|