@triveria/wallet 0.0.7 → 0.0.10

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.
Files changed (3) hide show
  1. package/api.d.ts +205 -64
  2. package/api.js +354 -105
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -158,19 +158,19 @@ export interface CredentialIssuerDefinition {
158
158
  * @type {string}
159
159
  * @memberof CredentialIssuerDefinition
160
160
  */
161
- 'credentialFormat'?: CredentialIssuerDefinitionCredentialFormatEnum;
161
+ 'credentialFormat': CredentialIssuerDefinitionCredentialFormatEnum;
162
162
  /**
163
163
  * Type of credentials for which the specified credential issuer will be used.
164
164
  * @type {Array<string>}
165
165
  * @memberof CredentialIssuerDefinition
166
166
  */
167
- 'credentialType'?: Array<string>;
167
+ 'credentialType': Array<string>;
168
168
  /**
169
169
  * Type of issuer to be used with credentials of the type specified.
170
170
  * @type {string}
171
171
  * @memberof CredentialIssuerDefinition
172
172
  */
173
- 'credentialIssuer'?: CredentialIssuerDefinitionCredentialIssuerEnum;
173
+ 'credentialIssuer': CredentialIssuerDefinitionCredentialIssuerEnum;
174
174
  }
175
175
  export declare const CredentialIssuerDefinitionCredentialFormatEnum: {
176
176
  readonly JwtVc: "jwt_vc";
@@ -707,7 +707,38 @@ export interface VcOffer {
707
707
  'Pin'?: string;
708
708
  }
709
709
  /**
710
- * Wallet specific configuration,
710
+ * Wallet details
711
+ * @export
712
+ * @interface Wallet
713
+ */
714
+ export interface Wallet {
715
+ /**
716
+ *
717
+ * @type {string}
718
+ * @memberof Wallet
719
+ */
720
+ 'walletId'?: string;
721
+ /**
722
+ *
723
+ * @type {string}
724
+ * @memberof Wallet
725
+ */
726
+ 'name': string;
727
+ /**
728
+ *
729
+ * @type {boolean}
730
+ * @memberof Wallet
731
+ */
732
+ 'canSign': boolean;
733
+ /**
734
+ *
735
+ * @type {WalletConfig}
736
+ * @memberof Wallet
737
+ */
738
+ 'config': WalletConfig;
739
+ }
740
+ /**
741
+ * Wallet specific configuration.
711
742
  * @export
712
743
  * @interface WalletConfig
713
744
  */
@@ -726,52 +757,59 @@ export interface WalletConfig {
726
757
  export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
727
758
  /**
728
759
  * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
760
+ * @param {string} trivWalletId
729
761
  * @param {Credential} [credential] Verifiable Credential in JSON format
730
762
  * @param {*} [options] Override http request option.
731
763
  * @throws {RequiredError}
732
764
  */
733
- credentialCreate: (credential?: Credential, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
765
+ credentialCreate: (trivWalletId: string, credential?: Credential, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
734
766
  /**
735
767
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
736
768
  * @param {string} credentialId Verifiable Credential Identifier
769
+ * @param {string} trivWalletId
737
770
  * @param {*} [options] Override http request option.
738
771
  * @throws {RequiredError}
739
772
  */
740
- credentialGet: (credentialId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
773
+ credentialGet: (credentialId: string, trivWalletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
741
774
  /**
742
775
  *
743
776
  * @param {string} credentialId Verifiable Credential Identifier
777
+ * @param {string} trivWalletId
744
778
  * @param {*} [options] Override http request option.
745
779
  * @throws {RequiredError}
746
780
  */
747
- credentialIssue: (credentialId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
781
+ credentialIssue: (credentialId: string, trivWalletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
748
782
  /**
749
783
  * Retrieves a list of credentials.
784
+ * @param {string} trivWalletId
750
785
  * @param {*} [options] Override http request option.
751
786
  * @throws {RequiredError}
752
787
  */
753
- credentialList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
788
+ credentialList: (trivWalletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
754
789
  /**
755
790
  *
756
791
  * @param {string} credentialId Verifiable Credential Identifier
792
+ * @param {string} trivWalletId
757
793
  * @param {Credential} [credential] Verifiable Credential in JSON format
758
794
  * @param {*} [options] Override http request option.
759
795
  * @throws {RequiredError}
760
796
  */
761
- credentialUpdate: (credentialId: string, credential?: Credential, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
797
+ credentialUpdate: (credentialId: string, trivWalletId: string, credential?: Credential, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
762
798
  /**
763
799
  *
764
800
  * @param {string} deferredId Deferred token
801
+ * @param {string} trivWalletId
765
802
  * @param {*} [options] Override http request option.
766
803
  * @throws {RequiredError}
767
804
  */
768
- deferredStatus: (deferredId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
805
+ deferredStatus: (deferredId: string, trivWalletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
769
806
  /**
770
807
  *
808
+ * @param {string} trivWalletId
771
809
  * @param {*} [options] Override http request option.
772
810
  * @throws {RequiredError}
773
811
  */
774
- getCurrentDid: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
812
+ getCurrentDid: (trivWalletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
775
813
  /**
776
814
  *
777
815
  * @param {*} [options] Override http request option.
@@ -780,11 +818,12 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
780
818
  healthCheck: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
781
819
  /**
782
820
  * Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
821
+ * @param {string} trivWalletId
783
822
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
784
823
  * @param {*} [options] Override http request option.
785
824
  * @throws {RequiredError}
786
825
  */
787
- holderCreateAuthOffer: (holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
826
+ holderCreateAuthOffer: (trivWalletId: string, holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
788
827
  /**
789
828
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
790
829
  * @param {string} url
@@ -794,47 +833,66 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
794
833
  issuerCredentialTypesList: (url: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
795
834
  /**
796
835
  * Issue verifiable credential using OIDC4VCI offer acceptance
836
+ * @param {string} trivWalletId
797
837
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
798
838
  * @param {*} [options] Override http request option.
799
839
  * @throws {RequiredError}
800
840
  */
801
- oidcAcceptOffer: (vcOffer?: VcOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
841
+ oidcAcceptOffer: (trivWalletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
802
842
  /**
803
843
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
804
844
  * @param {string} credentialId
845
+ * @param {string} trivWalletId
805
846
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
806
847
  * @param {*} [options] Override http request option.
807
848
  * @throws {RequiredError}
808
849
  */
809
- oidcAddCredToIssuanceQueue: (credentialId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
850
+ oidcAddCredToIssuanceQueue: (credentialId: string, trivWalletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
810
851
  /**
811
852
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
853
+ * @param {string} trivWalletId
812
854
  * @param {InitAuthOffer} [initAuthOffer]
813
855
  * @param {*} [options] Override http request option.
814
856
  * @throws {RequiredError}
815
857
  */
816
- oidcInitiateDeferred: (initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
858
+ oidcInitiateDeferred: (trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
817
859
  /**
818
860
  * Initiates issuing of the verifiable credential using authorized flow.
861
+ * @param {string} trivWalletId
819
862
  * @param {InitAuthOffer} [initAuthOffer]
820
863
  * @param {*} [options] Override http request option.
821
864
  * @throws {RequiredError}
822
865
  */
823
- oidcInitiateIntime: (initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
866
+ oidcInitiateIntime: (trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
824
867
  /**
825
868
  * Initiates issuing of the verifiable credential using pre-authorized flow.
869
+ * @param {string} trivWalletId
826
870
  * @param {InitPreAuthOffer} [initPreAuthOffer]
827
871
  * @param {*} [options] Override http request option.
828
872
  * @throws {RequiredError}
829
873
  */
830
- oidcInitiatePreauth: (initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
874
+ oidcInitiatePreauth: (trivWalletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
875
+ /**
876
+ * Provides wallet details
877
+ * @param {string} trivWalletId
878
+ * @param {*} [options] Override http request option.
879
+ * @throws {RequiredError}
880
+ */
881
+ walletGet: (trivWalletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
882
+ /**
883
+ * Provides list of wallets owned by the authenticated client.
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ */
887
+ walletList: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
831
888
  /**
832
889
  * The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
833
- * @param {WalletConfig} [walletConfig]
890
+ * @param {string} [trivWalletId] Has to be provided for updates.
891
+ * @param {Wallet} [wallet]
834
892
  * @param {*} [options] Override http request option.
835
893
  * @throws {RequiredError}
836
894
  */
837
- walletConfigure: (walletConfig?: WalletConfig, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
895
+ walletSave: (trivWalletId?: string, wallet?: Wallet, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
838
896
  };
839
897
  /**
840
898
  * DefaultApi - functional programming interface
@@ -843,52 +901,59 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
843
901
  export declare const DefaultApiFp: (configuration?: Configuration) => {
844
902
  /**
845
903
  * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
904
+ * @param {string} trivWalletId
846
905
  * @param {Credential} [credential] Verifiable Credential in JSON format
847
906
  * @param {*} [options] Override http request option.
848
907
  * @throws {RequiredError}
849
908
  */
850
- credentialCreate(credential?: Credential, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
909
+ credentialCreate(trivWalletId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
851
910
  /**
852
911
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
853
912
  * @param {string} credentialId Verifiable Credential Identifier
913
+ * @param {string} trivWalletId
854
914
  * @param {*} [options] Override http request option.
855
915
  * @throws {RequiredError}
856
916
  */
857
- credentialGet(credentialId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialWrapper>>;
917
+ credentialGet(credentialId: string, trivWalletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialWrapper>>;
858
918
  /**
859
919
  *
860
920
  * @param {string} credentialId Verifiable Credential Identifier
921
+ * @param {string} trivWalletId
861
922
  * @param {*} [options] Override http request option.
862
923
  * @throws {RequiredError}
863
924
  */
864
- credentialIssue(credentialId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
925
+ credentialIssue(credentialId: string, trivWalletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
865
926
  /**
866
927
  * Retrieves a list of credentials.
928
+ * @param {string} trivWalletId
867
929
  * @param {*} [options] Override http request option.
868
930
  * @throws {RequiredError}
869
931
  */
870
- credentialList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
932
+ credentialList(trivWalletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
871
933
  /**
872
934
  *
873
935
  * @param {string} credentialId Verifiable Credential Identifier
936
+ * @param {string} trivWalletId
874
937
  * @param {Credential} [credential] Verifiable Credential in JSON format
875
938
  * @param {*} [options] Override http request option.
876
939
  * @throws {RequiredError}
877
940
  */
878
- credentialUpdate(credentialId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
941
+ credentialUpdate(credentialId: string, trivWalletId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Credential>>;
879
942
  /**
880
943
  *
881
944
  * @param {string} deferredId Deferred token
945
+ * @param {string} trivWalletId
882
946
  * @param {*} [options] Override http request option.
883
947
  * @throws {RequiredError}
884
948
  */
885
- deferredStatus(deferredId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deferred>>;
949
+ deferredStatus(deferredId: string, trivWalletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deferred>>;
886
950
  /**
887
951
  *
952
+ * @param {string} trivWalletId
888
953
  * @param {*} [options] Override http request option.
889
954
  * @throws {RequiredError}
890
955
  */
891
- getCurrentDid(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Did>>;
956
+ getCurrentDid(trivWalletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Did>>;
892
957
  /**
893
958
  *
894
959
  * @param {*} [options] Override http request option.
@@ -897,11 +962,12 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
897
962
  healthCheck(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HealthStatus>>;
898
963
  /**
899
964
  * Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
965
+ * @param {string} trivWalletId
900
966
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
901
967
  * @param {*} [options] Override http request option.
902
968
  * @throws {RequiredError}
903
969
  */
904
- holderCreateAuthOffer(holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
970
+ holderCreateAuthOffer(trivWalletId: string, holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
905
971
  /**
906
972
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
907
973
  * @param {string} url
@@ -911,47 +977,66 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
911
977
  issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CredentialType>>>;
912
978
  /**
913
979
  * Issue verifiable credential using OIDC4VCI offer acceptance
980
+ * @param {string} trivWalletId
914
981
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
915
982
  * @param {*} [options] Override http request option.
916
983
  * @throws {RequiredError}
917
984
  */
918
- oidcAcceptOffer(vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
985
+ oidcAcceptOffer(trivWalletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<string>>>;
919
986
  /**
920
987
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
921
988
  * @param {string} credentialId
989
+ * @param {string} trivWalletId
922
990
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
923
991
  * @param {*} [options] Override http request option.
924
992
  * @throws {RequiredError}
925
993
  */
926
- oidcAddCredToIssuanceQueue(credentialId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
994
+ oidcAddCredToIssuanceQueue(credentialId: string, trivWalletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
927
995
  /**
928
996
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
997
+ * @param {string} trivWalletId
929
998
  * @param {InitAuthOffer} [initAuthOffer]
930
999
  * @param {*} [options] Override http request option.
931
1000
  * @throws {RequiredError}
932
1001
  */
933
- oidcInitiateDeferred(initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
1002
+ oidcInitiateDeferred(trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
934
1003
  /**
935
1004
  * Initiates issuing of the verifiable credential using authorized flow.
1005
+ * @param {string} trivWalletId
936
1006
  * @param {InitAuthOffer} [initAuthOffer]
937
1007
  * @param {*} [options] Override http request option.
938
1008
  * @throws {RequiredError}
939
1009
  */
940
- oidcInitiateIntime(initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
1010
+ oidcInitiateIntime(trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthOffer>>;
941
1011
  /**
942
1012
  * Initiates issuing of the verifiable credential using pre-authorized flow.
1013
+ * @param {string} trivWalletId
943
1014
  * @param {InitPreAuthOffer} [initPreAuthOffer]
944
1015
  * @param {*} [options] Override http request option.
945
1016
  * @throws {RequiredError}
946
1017
  */
947
- oidcInitiatePreauth(initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreauthOffer>>;
1018
+ oidcInitiatePreauth(trivWalletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PreauthOffer>>;
1019
+ /**
1020
+ * Provides wallet details
1021
+ * @param {string} trivWalletId
1022
+ * @param {*} [options] Override http request option.
1023
+ * @throws {RequiredError}
1024
+ */
1025
+ walletGet(trivWalletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Wallet>>;
1026
+ /**
1027
+ * Provides list of wallets owned by the authenticated client.
1028
+ * @param {*} [options] Override http request option.
1029
+ * @throws {RequiredError}
1030
+ */
1031
+ walletList(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Wallet>>>;
948
1032
  /**
949
1033
  * The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
950
- * @param {WalletConfig} [walletConfig]
1034
+ * @param {string} [trivWalletId] Has to be provided for updates.
1035
+ * @param {Wallet} [wallet]
951
1036
  * @param {*} [options] Override http request option.
952
1037
  * @throws {RequiredError}
953
1038
  */
954
- walletConfigure(walletConfig?: WalletConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1039
+ walletSave(trivWalletId?: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Wallet>>;
955
1040
  };
956
1041
  /**
957
1042
  * DefaultApi - factory interface
@@ -960,52 +1045,59 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
960
1045
  export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
961
1046
  /**
962
1047
  * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1048
+ * @param {string} trivWalletId
963
1049
  * @param {Credential} [credential] Verifiable Credential in JSON format
964
1050
  * @param {*} [options] Override http request option.
965
1051
  * @throws {RequiredError}
966
1052
  */
967
- credentialCreate(credential?: Credential, options?: any): AxiosPromise<Credential>;
1053
+ credentialCreate(trivWalletId: string, credential?: Credential, options?: any): AxiosPromise<Credential>;
968
1054
  /**
969
1055
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
970
1056
  * @param {string} credentialId Verifiable Credential Identifier
1057
+ * @param {string} trivWalletId
971
1058
  * @param {*} [options] Override http request option.
972
1059
  * @throws {RequiredError}
973
1060
  */
974
- credentialGet(credentialId: string, options?: any): AxiosPromise<CredentialWrapper>;
1061
+ credentialGet(credentialId: string, trivWalletId: string, options?: any): AxiosPromise<CredentialWrapper>;
975
1062
  /**
976
1063
  *
977
1064
  * @param {string} credentialId Verifiable Credential Identifier
1065
+ * @param {string} trivWalletId
978
1066
  * @param {*} [options] Override http request option.
979
1067
  * @throws {RequiredError}
980
1068
  */
981
- credentialIssue(credentialId: string, options?: any): AxiosPromise<void>;
1069
+ credentialIssue(credentialId: string, trivWalletId: string, options?: any): AxiosPromise<void>;
982
1070
  /**
983
1071
  * Retrieves a list of credentials.
1072
+ * @param {string} trivWalletId
984
1073
  * @param {*} [options] Override http request option.
985
1074
  * @throws {RequiredError}
986
1075
  */
987
- credentialList(options?: any): AxiosPromise<CredentialList>;
1076
+ credentialList(trivWalletId: string, options?: any): AxiosPromise<CredentialList>;
988
1077
  /**
989
1078
  *
990
1079
  * @param {string} credentialId Verifiable Credential Identifier
1080
+ * @param {string} trivWalletId
991
1081
  * @param {Credential} [credential] Verifiable Credential in JSON format
992
1082
  * @param {*} [options] Override http request option.
993
1083
  * @throws {RequiredError}
994
1084
  */
995
- credentialUpdate(credentialId: string, credential?: Credential, options?: any): AxiosPromise<Credential>;
1085
+ credentialUpdate(credentialId: string, trivWalletId: string, credential?: Credential, options?: any): AxiosPromise<Credential>;
996
1086
  /**
997
1087
  *
998
1088
  * @param {string} deferredId Deferred token
1089
+ * @param {string} trivWalletId
999
1090
  * @param {*} [options] Override http request option.
1000
1091
  * @throws {RequiredError}
1001
1092
  */
1002
- deferredStatus(deferredId: string, options?: any): AxiosPromise<Deferred>;
1093
+ deferredStatus(deferredId: string, trivWalletId: string, options?: any): AxiosPromise<Deferred>;
1003
1094
  /**
1004
1095
  *
1096
+ * @param {string} trivWalletId
1005
1097
  * @param {*} [options] Override http request option.
1006
1098
  * @throws {RequiredError}
1007
1099
  */
1008
- getCurrentDid(options?: any): AxiosPromise<Did>;
1100
+ getCurrentDid(trivWalletId: string, options?: any): AxiosPromise<Did>;
1009
1101
  /**
1010
1102
  *
1011
1103
  * @param {*} [options] Override http request option.
@@ -1014,11 +1106,12 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1014
1106
  healthCheck(options?: any): AxiosPromise<HealthStatus>;
1015
1107
  /**
1016
1108
  * Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
1109
+ * @param {string} trivWalletId
1017
1110
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
1018
1111
  * @param {*} [options] Override http request option.
1019
1112
  * @throws {RequiredError}
1020
1113
  */
1021
- holderCreateAuthOffer(holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: any): AxiosPromise<void>;
1114
+ holderCreateAuthOffer(trivWalletId: string, holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: any): AxiosPromise<void>;
1022
1115
  /**
1023
1116
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1024
1117
  * @param {string} url
@@ -1028,47 +1121,66 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1028
1121
  issuerCredentialTypesList(url: string, options?: any): AxiosPromise<Array<CredentialType>>;
1029
1122
  /**
1030
1123
  * Issue verifiable credential using OIDC4VCI offer acceptance
1124
+ * @param {string} trivWalletId
1031
1125
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1032
1126
  * @param {*} [options] Override http request option.
1033
1127
  * @throws {RequiredError}
1034
1128
  */
1035
- oidcAcceptOffer(vcOffer?: VcOffer, options?: any): AxiosPromise<Array<string>>;
1129
+ oidcAcceptOffer(trivWalletId: string, vcOffer?: VcOffer, options?: any): AxiosPromise<Array<string>>;
1036
1130
  /**
1037
1131
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1038
1132
  * @param {string} credentialId
1133
+ * @param {string} trivWalletId
1039
1134
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
1040
1135
  * @param {*} [options] Override http request option.
1041
1136
  * @throws {RequiredError}
1042
1137
  */
1043
- oidcAddCredToIssuanceQueue(credentialId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: any): AxiosPromise<void>;
1138
+ oidcAddCredToIssuanceQueue(credentialId: string, trivWalletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: any): AxiosPromise<void>;
1044
1139
  /**
1045
1140
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1141
+ * @param {string} trivWalletId
1046
1142
  * @param {InitAuthOffer} [initAuthOffer]
1047
1143
  * @param {*} [options] Override http request option.
1048
1144
  * @throws {RequiredError}
1049
1145
  */
1050
- oidcInitiateDeferred(initAuthOffer?: InitAuthOffer, options?: any): AxiosPromise<AuthOffer>;
1146
+ oidcInitiateDeferred(trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: any): AxiosPromise<AuthOffer>;
1051
1147
  /**
1052
1148
  * Initiates issuing of the verifiable credential using authorized flow.
1149
+ * @param {string} trivWalletId
1053
1150
  * @param {InitAuthOffer} [initAuthOffer]
1054
1151
  * @param {*} [options] Override http request option.
1055
1152
  * @throws {RequiredError}
1056
1153
  */
1057
- oidcInitiateIntime(initAuthOffer?: InitAuthOffer, options?: any): AxiosPromise<AuthOffer>;
1154
+ oidcInitiateIntime(trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: any): AxiosPromise<AuthOffer>;
1058
1155
  /**
1059
1156
  * Initiates issuing of the verifiable credential using pre-authorized flow.
1157
+ * @param {string} trivWalletId
1060
1158
  * @param {InitPreAuthOffer} [initPreAuthOffer]
1061
1159
  * @param {*} [options] Override http request option.
1062
1160
  * @throws {RequiredError}
1063
1161
  */
1064
- oidcInitiatePreauth(initPreAuthOffer?: InitPreAuthOffer, options?: any): AxiosPromise<PreauthOffer>;
1162
+ oidcInitiatePreauth(trivWalletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: any): AxiosPromise<PreauthOffer>;
1163
+ /**
1164
+ * Provides wallet details
1165
+ * @param {string} trivWalletId
1166
+ * @param {*} [options] Override http request option.
1167
+ * @throws {RequiredError}
1168
+ */
1169
+ walletGet(trivWalletId: string, options?: any): AxiosPromise<Wallet>;
1170
+ /**
1171
+ * Provides list of wallets owned by the authenticated client.
1172
+ * @param {*} [options] Override http request option.
1173
+ * @throws {RequiredError}
1174
+ */
1175
+ walletList(options?: any): AxiosPromise<Array<Wallet>>;
1065
1176
  /**
1066
1177
  * The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
1067
- * @param {WalletConfig} [walletConfig]
1178
+ * @param {string} [trivWalletId] Has to be provided for updates.
1179
+ * @param {Wallet} [wallet]
1068
1180
  * @param {*} [options] Override http request option.
1069
1181
  * @throws {RequiredError}
1070
1182
  */
1071
- walletConfigure(walletConfig?: WalletConfig, options?: any): AxiosPromise<void>;
1183
+ walletSave(trivWalletId?: string, wallet?: Wallet, options?: any): AxiosPromise<Wallet>;
1072
1184
  };
1073
1185
  /**
1074
1186
  * DefaultApi - object-oriented interface
@@ -1079,59 +1191,66 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
1079
1191
  export declare class DefaultApi extends BaseAPI {
1080
1192
  /**
1081
1193
  * Creates verifiable credential in a draft state. This endpoint is available only to the issuer wallet and should be used to initially create a credential.
1194
+ * @param {string} trivWalletId
1082
1195
  * @param {Credential} [credential] Verifiable Credential in JSON format
1083
1196
  * @param {*} [options] Override http request option.
1084
1197
  * @throws {RequiredError}
1085
1198
  * @memberof DefaultApi
1086
1199
  */
1087
- credentialCreate(credential?: Credential, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
1200
+ credentialCreate(trivWalletId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
1088
1201
  /**
1089
1202
  * Retrieves a specific verifiable credential based on the provided identifier. Upon retrieval the status of the credential is checked on the fly and therefore guaranteed.
1090
1203
  * @param {string} credentialId Verifiable Credential Identifier
1204
+ * @param {string} trivWalletId
1091
1205
  * @param {*} [options] Override http request option.
1092
1206
  * @throws {RequiredError}
1093
1207
  * @memberof DefaultApi
1094
1208
  */
1095
- credentialGet(credentialId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialWrapper, any>>;
1209
+ credentialGet(credentialId: string, trivWalletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialWrapper, any>>;
1096
1210
  /**
1097
1211
  *
1098
1212
  * @param {string} credentialId Verifiable Credential Identifier
1213
+ * @param {string} trivWalletId
1099
1214
  * @param {*} [options] Override http request option.
1100
1215
  * @throws {RequiredError}
1101
1216
  * @memberof DefaultApi
1102
1217
  */
1103
- credentialIssue(credentialId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1218
+ credentialIssue(credentialId: string, trivWalletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1104
1219
  /**
1105
1220
  * Retrieves a list of credentials.
1221
+ * @param {string} trivWalletId
1106
1222
  * @param {*} [options] Override http request option.
1107
1223
  * @throws {RequiredError}
1108
1224
  * @memberof DefaultApi
1109
1225
  */
1110
- credentialList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
1226
+ credentialList(trivWalletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any>>;
1111
1227
  /**
1112
1228
  *
1113
1229
  * @param {string} credentialId Verifiable Credential Identifier
1230
+ * @param {string} trivWalletId
1114
1231
  * @param {Credential} [credential] Verifiable Credential in JSON format
1115
1232
  * @param {*} [options] Override http request option.
1116
1233
  * @throws {RequiredError}
1117
1234
  * @memberof DefaultApi
1118
1235
  */
1119
- credentialUpdate(credentialId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
1236
+ credentialUpdate(credentialId: string, trivWalletId: string, credential?: Credential, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Credential, any>>;
1120
1237
  /**
1121
1238
  *
1122
1239
  * @param {string} deferredId Deferred token
1240
+ * @param {string} trivWalletId
1123
1241
  * @param {*} [options] Override http request option.
1124
1242
  * @throws {RequiredError}
1125
1243
  * @memberof DefaultApi
1126
1244
  */
1127
- deferredStatus(deferredId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Deferred, any>>;
1245
+ deferredStatus(deferredId: string, trivWalletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Deferred, any>>;
1128
1246
  /**
1129
1247
  *
1248
+ * @param {string} trivWalletId
1130
1249
  * @param {*} [options] Override http request option.
1131
1250
  * @throws {RequiredError}
1132
1251
  * @memberof DefaultApi
1133
1252
  */
1134
- getCurrentDid(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Did, any>>;
1253
+ getCurrentDid(trivWalletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Did, any>>;
1135
1254
  /**
1136
1255
  *
1137
1256
  * @param {*} [options] Override http request option.
@@ -1141,12 +1260,13 @@ export declare class DefaultApi extends BaseAPI {
1141
1260
  healthCheck(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<HealthStatus, any>>;
1142
1261
  /**
1143
1262
  * Creates an authorized credential offer (deferred or instant) for holder-initiated credential request using provided parameters. The offer is an URL that the creator should provide to the client via a redirect, link, or QR code.
1263
+ * @param {string} trivWalletId
1144
1264
  * @param {HolderAuthOfferCreationReq} [holderAuthOfferCreationReq]
1145
1265
  * @param {*} [options] Override http request option.
1146
1266
  * @throws {RequiredError}
1147
1267
  * @memberof DefaultApi
1148
1268
  */
1149
- holderCreateAuthOffer(holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1269
+ holderCreateAuthOffer(trivWalletId: string, holderAuthOfferCreationReq?: HolderAuthOfferCreationReq, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1150
1270
  /**
1151
1271
  * Returns verifiable credential format and types that are supported by the issuer. - format: the verifiable credential format (for example \"jwt_vc\") - type: a list of strings that define supported verifiable credential type(s)
1152
1272
  * @param {string} url
@@ -1157,51 +1277,72 @@ export declare class DefaultApi extends BaseAPI {
1157
1277
  issuerCredentialTypesList(url: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialType[], any>>;
1158
1278
  /**
1159
1279
  * Issue verifiable credential using OIDC4VCI offer acceptance
1280
+ * @param {string} trivWalletId
1160
1281
  * @param {VcOffer} [vcOffer] Offer URL and optional PIN for the request
1161
1282
  * @param {*} [options] Override http request option.
1162
1283
  * @throws {RequiredError}
1163
1284
  * @memberof DefaultApi
1164
1285
  */
1165
- oidcAcceptOffer(vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
1286
+ oidcAcceptOffer(trivWalletId: string, vcOffer?: VcOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string[], any>>;
1166
1287
  /**
1167
1288
  * Add already created VC to issuance queue for a specified client using authorized in-time or deferred flow.
1168
1289
  * @param {string} credentialId
1290
+ * @param {string} trivWalletId
1169
1291
  * @param {IssuanceQueueCredAdd} [issuanceQueueCredAdd]
1170
1292
  * @param {*} [options] Override http request option.
1171
1293
  * @throws {RequiredError}
1172
1294
  * @memberof DefaultApi
1173
1295
  */
1174
- oidcAddCredToIssuanceQueue(credentialId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1296
+ oidcAddCredToIssuanceQueue(credentialId: string, trivWalletId: string, issuanceQueueCredAdd?: IssuanceQueueCredAdd, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1175
1297
  /**
1176
1298
  * Initiates issuing of the credential using the authorized deferred flow, in which the holder will receive credential asynchronously.
1299
+ * @param {string} trivWalletId
1177
1300
  * @param {InitAuthOffer} [initAuthOffer]
1178
1301
  * @param {*} [options] Override http request option.
1179
1302
  * @throws {RequiredError}
1180
1303
  * @memberof DefaultApi
1181
1304
  */
1182
- oidcInitiateDeferred(initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
1305
+ oidcInitiateDeferred(trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
1183
1306
  /**
1184
1307
  * Initiates issuing of the verifiable credential using authorized flow.
1308
+ * @param {string} trivWalletId
1185
1309
  * @param {InitAuthOffer} [initAuthOffer]
1186
1310
  * @param {*} [options] Override http request option.
1187
1311
  * @throws {RequiredError}
1188
1312
  * @memberof DefaultApi
1189
1313
  */
1190
- oidcInitiateIntime(initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
1314
+ oidcInitiateIntime(trivWalletId: string, initAuthOffer?: InitAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuthOffer, any>>;
1191
1315
  /**
1192
1316
  * Initiates issuing of the verifiable credential using pre-authorized flow.
1317
+ * @param {string} trivWalletId
1193
1318
  * @param {InitPreAuthOffer} [initPreAuthOffer]
1194
1319
  * @param {*} [options] Override http request option.
1195
1320
  * @throws {RequiredError}
1196
1321
  * @memberof DefaultApi
1197
1322
  */
1198
- oidcInitiatePreauth(initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreauthOffer, any>>;
1323
+ oidcInitiatePreauth(trivWalletId: string, initPreAuthOffer?: InitPreAuthOffer, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PreauthOffer, any>>;
1324
+ /**
1325
+ * Provides wallet details
1326
+ * @param {string} trivWalletId
1327
+ * @param {*} [options] Override http request option.
1328
+ * @throws {RequiredError}
1329
+ * @memberof DefaultApi
1330
+ */
1331
+ walletGet(trivWalletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet, any>>;
1332
+ /**
1333
+ * Provides list of wallets owned by the authenticated client.
1334
+ * @param {*} [options] Override http request option.
1335
+ * @throws {RequiredError}
1336
+ * @memberof DefaultApi
1337
+ */
1338
+ walletList(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet[], any>>;
1199
1339
  /**
1200
1340
  * The first call will authenticate the client and create a new wallet that will be accessible only to the client. Any further calls are meant to update the wallet configuration. Be careful when changing the configuration as it may result in the wallet malfunction.
1201
- * @param {WalletConfig} [walletConfig]
1341
+ * @param {string} [trivWalletId] Has to be provided for updates.
1342
+ * @param {Wallet} [wallet]
1202
1343
  * @param {*} [options] Override http request option.
1203
1344
  * @throws {RequiredError}
1204
1345
  * @memberof DefaultApi
1205
1346
  */
1206
- walletConfigure(walletConfig?: WalletConfig, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
1347
+ walletSave(trivWalletId?: string, wallet?: Wallet, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Wallet, any>>;
1207
1348
  }