Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lightningpolar/litd-api

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lightningpolar/litd-api - npm Package Compare versions

Comparing version 0.12.5-alpha to 0.12.99-alpha.pre1

dist/autopilot.d.ts

4

dist/types/litrpc/AddAutopilotSessionRequest.d.ts

@@ -16,2 +16,4 @@ /// <reference types="node" />

'linkedGroupId'?: (Buffer | Uint8Array | string);
'privacyFlags'?: (number | string | Long);
'privacyFlagsSet'?: (boolean);
}

@@ -29,2 +31,4 @@ export interface AddAutopilotSessionRequest {

'linkedGroupId': (Buffer);
'privacyFlags': (string);
'privacyFlagsSet': (boolean);
}
import type { RuleValuesPartial as _litrpc_RuleValuesPartial, RuleValues as _litrpc_RuleValues } from '../litrpc/RuleValues';
import type { PermissionsPartial as _litrpc_PermissionsPartial, Permissions as _litrpc_Permissions } from '../litrpc/Permissions';
import type { Long } from '@grpc/proto-loader';
export interface FeaturePartial {

@@ -12,2 +13,3 @@ 'name'?: (string);

'defaultConfig'?: (string);
'privacyFlags'?: (number | string | Long);
}

@@ -23,2 +25,3 @@ export interface Feature {

'defaultConfig': (string);
'privacyFlags': (string);
}

@@ -30,2 +30,3 @@ /// <reference types="node" />

});
'privacyFlags'?: (number | string | Long);
}

@@ -55,2 +56,3 @@ export interface Session {

});
'privacyFlags': (string);
}

6

package.json
{
"name": "@lightningpolar/litd-api",
"version": "0.12.5-alpha",
"version": "0.12.99-alpha.pre1",
"description": "Lightning Terminal gRPC client to interact with Lightning Labs `litd` daemon.",

@@ -28,4 +28,4 @@ "main": "dist/index.js",

"dependencies": {
"@grpc/grpc-js": "1.7.2",
"@grpc/proto-loader": "0.7.3"
"@grpc/grpc-js": "1.10.8",
"@grpc/proto-loader": "0.7.13"
},

@@ -32,0 +32,0 @@ "repository": {

@@ -5,12 +5,18 @@ # Description

# Install
```sh
npm install @lightningpolar/litd-api
```
# Usage
```ts
import { LitClient, SessionType } from '@lightningpolar/litd-api';
(async () => {
import { LitClient } from "@lightningpolar/litd-api"
const client = LitClient.create({
socket: '127.0.0.1:10029',
macaroon: '<hex>', // from ~/.lit/mainnet/lit.macaroon
cert: '<hex>', // from ~/.lit/tls.cert
macaroon: '<hex>', // ~/.lit/mainnet/lit.macaroon
cert: '<hex>', // ~/.lit/tls.cert
});

@@ -26,8 +32,8 @@

label: 'my session',
sessionType: LITD.SessionType.TYPE_MACAROON_ADMIN,
sessionType: SessionType.TYPE_MACAROON_ADMIN,
expiryTimestampSeconds: Math.floor(Date.now() / 1000) + 60 * 24 * 90, // in 90 days
mailboxServerAddr: 'mailbox.terminal.lightning.today:443',
});
console.log(session.pairingSecretMnemonic);
})()
console.log(session?.pairingSecretMnemonic);
})();
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc