@paradym/wallet-sdk 0.0.0-alpha-20251007100022 → 0.0.0-alpha-20251007100758
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/dist/index.d.mts +12 -12
- package/dist/index.d.ts +10 -10
- package/dist/index.js +21 -509
- package/dist/index.js.map +1 -1
- package/package.json +10 -20
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import * as _credo_ts_askar0 from "@credo-ts/askar";
|
|
|
6
6
|
import { AskarModule } from "@credo-ts/askar";
|
|
7
7
|
import * as _credo_ts_cheqd0 from "@credo-ts/cheqd";
|
|
8
8
|
import { CheqdModule } from "@credo-ts/cheqd";
|
|
9
|
-
import * as
|
|
9
|
+
import * as _credo_ts_didcomm10 from "@credo-ts/didcomm";
|
|
10
10
|
import { ConnectionRecord, ConnectionsModule, CredentialExchangeRecord, CredentialsModule, DidCommModule, DiscoverFeaturesModule, MediationRecipientModule, MessagePickupModule, OutOfBandInvitation, OutOfBandModule, ProofExchangeRecord, ProofsModule, V2CredentialProtocol, V2ProofProtocol } from "@credo-ts/didcomm";
|
|
11
11
|
import * as _credo_ts_openid4vc0 from "@credo-ts/openid4vc";
|
|
12
12
|
import { OpenId4VcHolderModule, OpenId4VciAuthorizationFlow, OpenId4VciAuthorizationFlow as OpenId4VciAuthorizationFlow$1, OpenId4VciRequestTokenResponse, OpenId4VciResolvedAuthorizationRequest, OpenId4VciResolvedAuthorizationRequest as OpenId4VciResolvedAuthorizationRequest$1, OpenId4VciResolvedCredentialOffer, OpenId4VciResolvedCredentialOffer as OpenId4VciResolvedCredentialOffer$1, OpenId4VciTxCode } from "@credo-ts/openid4vc";
|
|
@@ -193,7 +193,7 @@ declare const getOpenid4VcModules: (openId4VcConfiguration: Exclude<SetupAgentOp
|
|
|
193
193
|
};
|
|
194
194
|
declare const getDidCommModules: (_didcommConfiguration: Exclude<SetupAgentOptions["didcommConfiguration"], false>) => {
|
|
195
195
|
connections: ConnectionsModule;
|
|
196
|
-
messagePickup: MessagePickupModule<
|
|
196
|
+
messagePickup: MessagePickupModule<_credo_ts_didcomm10.DefaultMessagePickupProtocols>;
|
|
197
197
|
discovery: DiscoverFeaturesModule;
|
|
198
198
|
dids: DidsModule;
|
|
199
199
|
outOfBand: OutOfBandModule;
|
|
@@ -550,7 +550,7 @@ declare function useDidCommCredentialActions(credentialExchangeId: string): {
|
|
|
550
550
|
declineCredential: (options?: DeclineCredentialOptions) => Promise<void>;
|
|
551
551
|
acceptStatus: "success" | "error" | "idle" | "pending";
|
|
552
552
|
declineStatus: "success" | "error" | "idle" | "pending";
|
|
553
|
-
credentialExchange:
|
|
553
|
+
credentialExchange: _credo_ts_didcomm10.CredentialExchangeRecord | undefined;
|
|
554
554
|
display: {
|
|
555
555
|
issuer: {
|
|
556
556
|
name: string;
|
|
@@ -581,7 +581,7 @@ declare function useDidCommPresentationActions(proofExchangeId: string): {
|
|
|
581
581
|
declinePresentation: (options?: DeclinePresentationOptions) => Promise<void>;
|
|
582
582
|
acceptStatus: "success" | "error" | "idle" | "pending";
|
|
583
583
|
declineStatus: "success" | "error" | "idle" | "pending";
|
|
584
|
-
proofExchange:
|
|
584
|
+
proofExchange: _credo_ts_didcomm10.ProofExchangeRecord | undefined;
|
|
585
585
|
submission: FormattedSubmission | undefined;
|
|
586
586
|
verifierName: string | undefined;
|
|
587
587
|
logo: {
|
|
@@ -782,15 +782,15 @@ declare class ParadymWalletSdk {
|
|
|
782
782
|
*/
|
|
783
783
|
get internalHooks(): {
|
|
784
784
|
useAgent: <ProvidedAgent extends _credo_ts_core13.Agent = _credo_ts_core13.Agent<{
|
|
785
|
-
connections?:
|
|
786
|
-
messagePickup?:
|
|
787
|
-
discovery?:
|
|
785
|
+
connections?: _credo_ts_didcomm10.ConnectionsModule | undefined;
|
|
786
|
+
messagePickup?: _credo_ts_didcomm10.MessagePickupModule<_credo_ts_didcomm10.DefaultMessagePickupProtocols> | undefined;
|
|
787
|
+
discovery?: _credo_ts_didcomm10.DiscoverFeaturesModule | undefined;
|
|
788
788
|
dids?: _credo_ts_core13.DidsModule | undefined;
|
|
789
|
-
outOfBand?:
|
|
790
|
-
didcomm?:
|
|
791
|
-
mediationRecipient?:
|
|
792
|
-
credentials?:
|
|
793
|
-
proofs?:
|
|
789
|
+
outOfBand?: _credo_ts_didcomm10.OutOfBandModule | undefined;
|
|
790
|
+
didcomm?: _credo_ts_didcomm10.DidCommModule | undefined;
|
|
791
|
+
mediationRecipient?: _credo_ts_didcomm10.MediationRecipientModule | undefined;
|
|
792
|
+
credentials?: _credo_ts_didcomm10.CredentialsModule<(_credo_ts_anoncreds0.V1CredentialProtocol | _credo_ts_didcomm10.V2CredentialProtocol<(_credo_ts_anoncreds0.LegacyIndyCredentialFormatService | _credo_ts_anoncreds0.AnonCredsCredentialFormatService)[]>)[]> | undefined;
|
|
793
|
+
proofs?: _credo_ts_didcomm10.ProofsModule<(_credo_ts_anoncreds0.V1ProofProtocol | _credo_ts_didcomm10.V2ProofProtocol<(_credo_ts_anoncreds0.LegacyIndyProofFormatService | _credo_ts_anoncreds0.AnonCredsProofFormatService)[]>)[]> | undefined;
|
|
794
794
|
anoncreds?: _credo_ts_anoncreds0.AnonCredsModule | undefined;
|
|
795
795
|
cheqd?: _credo_ts_cheqd0.CheqdModule | undefined;
|
|
796
796
|
openId4VcHolder?: _credo_ts_openid4vc0.OpenId4VcHolderModule | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _credo_ts_openid4vc0 from "@credo-ts/openid4vc";
|
|
2
2
|
import { OpenId4VcHolderModule, OpenId4VciAuthorizationFlow, OpenId4VciAuthorizationFlow as OpenId4VciAuthorizationFlow$1, OpenId4VciRequestTokenResponse, OpenId4VciResolvedAuthorizationRequest, OpenId4VciResolvedAuthorizationRequest as OpenId4VciResolvedAuthorizationRequest$1, OpenId4VciResolvedCredentialOffer, OpenId4VciResolvedCredentialOffer as OpenId4VciResolvedCredentialOffer$1, OpenId4VciTxCode } from "@credo-ts/openid4vc";
|
|
3
|
-
import * as
|
|
3
|
+
import * as _credo_ts_core19 from "@credo-ts/core";
|
|
4
4
|
import { Agent, ClaimFormat, ConsoleLogger, DidsModule, JwaSignatureAlgorithm, JwkJson, LogLevel, MdocRecord, SdJwtVcRecord, W3cCredentialRecord, X509Module, X509ModuleConfigOptions } from "@credo-ts/core";
|
|
5
5
|
import * as _credo_ts_didcomm10 from "@credo-ts/didcomm";
|
|
6
6
|
import { ConnectionRecord, ConnectionsModule, CredentialsModule, DidCommModule, DiscoverFeaturesModule, MediationRecipientModule, MessagePickupModule, OutOfBandInvitation, OutOfBandModule, ProofsModule, V2CredentialProtocol, V2ProofProtocol } from "@credo-ts/didcomm";
|
|
@@ -341,9 +341,9 @@ declare const getCredentialsForProofRequest: ({
|
|
|
341
341
|
readonly name: string | undefined;
|
|
342
342
|
readonly trustedEntities: TrustedEntity[];
|
|
343
343
|
};
|
|
344
|
-
readonly queryResult?:
|
|
345
|
-
readonly definition?:
|
|
346
|
-
readonly credentialsForRequest?:
|
|
344
|
+
readonly queryResult?: _credo_ts_core19.DcqlQueryResult | undefined;
|
|
345
|
+
readonly definition?: _credo_ts_core19.DifPresentationExchangeDefinition | undefined;
|
|
346
|
+
readonly credentialsForRequest?: _credo_ts_core19.DifPexCredentialsForRequest | undefined;
|
|
347
347
|
}>;
|
|
348
348
|
type CredentialsForProofRequest = Awaited<ReturnType<typeof getCredentialsForProofRequest>>;
|
|
349
349
|
//#endregion
|
|
@@ -545,7 +545,7 @@ type DeclineCredentialOptions = {
|
|
|
545
545
|
deleteCredential?: boolean;
|
|
546
546
|
};
|
|
547
547
|
declare function useDidCommCredentialActions(credentialExchangeId: string): {
|
|
548
|
-
acceptCredential: (options?: AcceptCredentialOptions) => Promise<
|
|
548
|
+
acceptCredential: (options?: AcceptCredentialOptions) => Promise<_credo_ts_core19.W3cCredentialRecord | undefined>;
|
|
549
549
|
declineCredential: (options?: DeclineCredentialOptions) => Promise<void>;
|
|
550
550
|
acceptStatus: "success" | "error" | "idle" | "pending";
|
|
551
551
|
declineStatus: "success" | "error" | "idle" | "pending";
|
|
@@ -780,11 +780,11 @@ declare class ParadymWalletSdk {
|
|
|
780
780
|
*
|
|
781
781
|
*/
|
|
782
782
|
get internalHooks(): {
|
|
783
|
-
useAgent: <ProvidedAgent extends
|
|
783
|
+
useAgent: <ProvidedAgent extends _credo_ts_core19.Agent = _credo_ts_core19.Agent<{
|
|
784
784
|
connections?: _credo_ts_didcomm10.ConnectionsModule | undefined;
|
|
785
785
|
messagePickup?: _credo_ts_didcomm10.MessagePickupModule<_credo_ts_didcomm10.DefaultMessagePickupProtocols> | undefined;
|
|
786
786
|
discovery?: _credo_ts_didcomm10.DiscoverFeaturesModule | undefined;
|
|
787
|
-
dids?:
|
|
787
|
+
dids?: _credo_ts_core19.DidsModule | undefined;
|
|
788
788
|
outOfBand?: _credo_ts_didcomm10.OutOfBandModule | undefined;
|
|
789
789
|
didcomm?: _credo_ts_didcomm10.DidCommModule | undefined;
|
|
790
790
|
mediationRecipient?: _credo_ts_didcomm10.MediationRecipientModule | undefined;
|
|
@@ -793,7 +793,7 @@ declare class ParadymWalletSdk {
|
|
|
793
793
|
anoncreds?: _credo_ts_anoncreds0.AnonCredsModule | undefined;
|
|
794
794
|
cheqd?: _credo_ts_cheqd0.CheqdModule | undefined;
|
|
795
795
|
openId4VcHolder?: _credo_ts_openid4vc0.OpenId4VcHolderModule | undefined;
|
|
796
|
-
x509?:
|
|
796
|
+
x509?: _credo_ts_core19.X509Module | undefined;
|
|
797
797
|
askar: _credo_ts_askar0.AskarModule;
|
|
798
798
|
}>>() => {
|
|
799
799
|
agent: ProvidedAgent;
|
|
@@ -805,12 +805,12 @@ declare class ParadymWalletSdk {
|
|
|
805
805
|
agent: OpenId4VcAgent;
|
|
806
806
|
};
|
|
807
807
|
useCredentialRecords: () => {
|
|
808
|
-
credentials: (
|
|
808
|
+
credentials: (_credo_ts_core19.W3cCredentialRecord | _credo_ts_core19.SdJwtVcRecord | _credo_ts_core19.MdocRecord)[];
|
|
809
809
|
isLoading: boolean;
|
|
810
810
|
};
|
|
811
811
|
useCredentialRecordById: (id: string) => {
|
|
812
812
|
isLoading: boolean;
|
|
813
|
-
credential:
|
|
813
|
+
credential: _credo_ts_core19.W3cCredentialRecord | _credo_ts_core19.SdJwtVcRecord | _credo_ts_core19.MdocRecord | undefined;
|
|
814
814
|
};
|
|
815
815
|
};
|
|
816
816
|
/**
|