@didcid/keymaster 0.4.2 → 0.4.3

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.
@@ -1,5 +1,5 @@
1
1
  import { DidCidDocument, ResolveDIDOptions, Operation, Proof, ProofPurpose } from '@didcid/gatekeeper/types';
2
- import { Challenge, ChallengeResponse, CheckWalletResult, CreateAssetOptions, FileAssetOptions, CreateResponseOptions, DmailItem, DmailMessage, EncryptOptions, FileAsset, FixWalletResult, Group, Vault, VaultOptions, IDInfo, ImageFileAsset, IssueCredentialsOptions, KeymasterInterface, KeymasterOptions, LightningConfig, LightningBalance, LightningInvoice, LightningPayment, LightningPaymentStatus, DecodedLightningInvoice, NostrKeys, NostrEvent, NoticeMessage, PollConfig, PossiblyProofed, ViewBallotResult, StoredWallet, VerifiableCredential, ViewPollResult, WalletFile, WalletEncFile } from '@didcid/keymaster/types';
2
+ import { Challenge, ChallengeResponse, CheckWalletResult, CreateAssetOptions, FileAssetOptions, CreateResponseOptions, DmailItem, DmailMessage, EncryptOptions, FileAsset, FixWalletResult, Group, Vault, VaultOptions, IDInfo, ImageFileAsset, IssueCredentialsOptions, KeymasterInterface, KeymasterOptions, LightningConfig, LightningBalance, LightningInvoice, LightningPayment, LightningPaymentRecord, LightningPaymentStatus, DecodedLightningInvoice, NostrKeys, NostrEvent, NoticeMessage, PollConfig, PossiblyProofed, ViewBallotResult, StoredWallet, VerifiableCredential, ViewPollResult, WalletFile, WalletEncFile } from '@didcid/keymaster/types';
3
3
  import { EcdsaJwkPair, EcdsaJwkPublic } from '@didcid/cipher/types';
4
4
  export declare enum DmailTags {
5
5
  DMAIL = "dmail",
@@ -123,6 +123,7 @@ export default class Keymaster implements KeymasterInterface {
123
123
  publishLightning(name?: string): Promise<boolean>;
124
124
  unpublishLightning(name?: string): Promise<boolean>;
125
125
  zapLightning(id: string, amount: number, memo?: string, name?: string): Promise<LightningPayment>;
126
+ getLightningPayments(name?: string): Promise<LightningPaymentRecord[]>;
126
127
  testAgent(id: string): Promise<boolean>;
127
128
  bindCredential(subjectId: string, options?: {
128
129
  schema?: string;
@@ -1,5 +1,5 @@
1
1
  import { Cipher, EcdsaJwkPublic, NostrKeys, NostrEvent } from '@didcid/cipher/types';
2
- import { GatekeeperInterface, DidCidDocument, ResolveDIDOptions, Proof, LightningConfig, LightningBalance, LightningInvoice, LightningPayment, LightningPaymentStatus } from '@didcid/gatekeeper/types';
2
+ import { GatekeeperInterface, DidCidDocument, ResolveDIDOptions, Proof, LightningConfig, LightningBalance, LightningInvoice, LightningPayment, LightningPaymentRecord, LightningPaymentStatus } from '@didcid/gatekeeper/types';
3
3
  export type { NostrKeys, NostrEvent } from '@didcid/cipher/types';
4
4
  export interface Seed {
5
5
  /** Passphrase-encrypted mnemonic */
@@ -198,7 +198,7 @@ export interface WalletBase {
198
198
  loadWallet(): Promise<StoredWallet | null>;
199
199
  updateWallet(mutator: (wallet: StoredWallet) => void | Promise<void>): Promise<void>;
200
200
  }
201
- export type { LightningConfig, LightningBalance, LightningInvoice, LightningPayment, LightningPaymentStatus, } from '@didcid/gatekeeper/types';
201
+ export type { LightningConfig, LightningBalance, LightningInvoice, LightningPayment, LightningPaymentRecord, LightningPaymentStatus, } from '@didcid/gatekeeper/types';
202
202
  export interface DecodedLightningInvoice {
203
203
  amount?: string;
204
204
  description?: string;
@@ -304,6 +304,7 @@ export interface KeymasterInterface {
304
304
  publishLightning(name?: string): Promise<boolean>;
305
305
  unpublishLightning(name?: string): Promise<boolean>;
306
306
  zapLightning(id: string, amount: number, memo?: string, name?: string): Promise<LightningPayment>;
307
+ getLightningPayments(name?: string): Promise<LightningPaymentRecord[]>;
307
308
  resolveDID(did: string, options?: ResolveDIDOptions): Promise<DidCidDocument>;
308
309
  updateDID(id: string, doc: DidCidDocument): Promise<boolean>;
309
310
  createAsset(data: unknown, options?: CreateAssetOptions): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@didcid/keymaster",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Archon Keymaster",
5
5
  "type": "module",
6
6
  "module": "./dist/esm/index.js",
@@ -141,9 +141,9 @@
141
141
  "author": "David McFadzean <davidmc@gmail.com>",
142
142
  "license": "MIT",
143
143
  "dependencies": {
144
- "@didcid/cipher": "^0.2.2",
145
- "@didcid/common": "^0.1.4",
146
- "@didcid/gatekeeper": "^0.4.2",
144
+ "@didcid/cipher": "^0.2.3",
145
+ "@didcid/common": "^0.1.5",
146
+ "@didcid/gatekeeper": "^0.4.3",
147
147
  "axios": "^1.7.7",
148
148
  "commander": "^11.1.0",
149
149
  "dotenv": "^16.4.5",
@@ -159,5 +159,5 @@
159
159
  "type": "git",
160
160
  "url": "git+https://github.com/archetech/archon.git"
161
161
  },
162
- "gitHead": "3a01d5def7dc01c473d5016f5c543742fc83cc26"
162
+ "gitHead": "31451ebef086804bbf65c99e08cb77b4b87a2923"
163
163
  }