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