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