@lightningpolar/litd-api
Advanced tools
Comparing version 0.12.5-alpha to 0.12.99-alpha.pre1
@@ -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); | ||
} |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144941
204
1903
37
+ Added@grpc/grpc-js@1.10.8(transitive)
+ Added@grpc/proto-loader@0.7.13(transitive)
+ Added@js-sdsl/ordered-map@4.4.2(transitive)
+ Addedcliui@8.0.1(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
- Removed@grpc/grpc-js@1.7.2(transitive)
- Removed@grpc/proto-loader@0.7.3(transitive)
- Removed@types/long@4.0.2(transitive)
- Removedcliui@7.0.4(transitive)
- Removedlong@4.0.0(transitive)
- Removedyargs@16.2.0(transitive)
- Removedyargs-parser@20.2.9(transitive)
Updated@grpc/grpc-js@1.10.8
Updated@grpc/proto-loader@0.7.13