@triveria/wallet 0.0.299 → 0.0.300

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 +147 -24
  2. package/api.js +251 -21
  3. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -60,10 +60,37 @@ export interface CertificateIssueRequest {
60
60
  'csr': string;
61
61
  'expirationDate': string;
62
62
  'ca'?: boolean;
63
+ 'attachStatus'?: boolean;
63
64
  }
64
65
  export interface CertificateIssueResponse {
65
66
  'certificate': string;
66
67
  }
68
+ export interface CertificateRecordGetResponse {
69
+ 'serialNumber'?: string;
70
+ 'organizationName'?: string;
71
+ 'country'?: string;
72
+ 'locality'?: string;
73
+ 'streetAddress'?: string;
74
+ 'postalCode'?: string;
75
+ 'organizationWebsite'?: string;
76
+ 'tradeName'?: string;
77
+ 'email'?: string;
78
+ 'uris'?: Array<string>;
79
+ 'certificateStatus'?: CertificateStatus;
80
+ }
81
+ export declare const CertificateStatus: {
82
+ readonly Valid: "valid";
83
+ readonly RevokedUnspecified: "revoked_unspecified";
84
+ readonly RevokedKeyCompromise: "revoked_keyCompromise";
85
+ readonly RevokedPrivilegeWithdrawn: "revoked_privilegeWithdrawn";
86
+ readonly RevokedCessationOfOperation: "revoked_cessationOfOperation";
87
+ readonly RevokedAffiliationChanged: "revoked_affiliationChanged";
88
+ readonly RevokedSuperseded: "revoked_superseded";
89
+ };
90
+ export type CertificateStatus = typeof CertificateStatus[keyof typeof CertificateStatus];
91
+ export interface CertificateStatusUpdateRequest {
92
+ 'status': CertificateStatus;
93
+ }
67
94
  /**
68
95
  * Accompanying information about the verifiable credential draft - schema, type, format etc.
69
96
  */
@@ -316,7 +343,7 @@ export interface CredentialToPresentWrapper {
316
343
  'fieldsToDisclose': Array<string>;
317
344
  }
318
345
  /**
319
- * A credential type that can be issued by the issuer - format: the verifiable credential format (for example \"jwt_vc\") - type: the verifiable credential type, usually provided as list of strings (for example: \"VerifiableCredential\", \"VerifiableAttestation\", \"VerifiableId\")
346
+ * A credential type that can be issued by the issuer - format: the verifiable credential format (for example \"jwt_vc\") - type: the verifiable credential type, usually provided as list of strings (for example: \"VerifiableCredential\", \"VerifiableAttestation\", \"VerifiableId\")
320
347
  */
321
348
  export interface CredentialType {
322
349
  'format': CredentialFormat;
@@ -638,7 +665,7 @@ export interface InputDescriptorSuitableCredentials {
638
665
  }
639
666
  export interface InteractionAuthorizationConsent {
640
667
  /**
641
- * Pin code needed for pre-authorized credential offers. Required when authorization requirement type is `pin`
668
+ * Pin code needed for pre-authorized credential offers. Required when authorization requirement type is `pin`
642
669
  */
643
670
  'pin'?: string;
644
671
  /**
@@ -961,12 +988,12 @@ export interface VerifiedWrapper {
961
988
  'holder': string;
962
989
  }
963
990
  /**
964
- * Registers a new verification request. When `createUrl` is true, URL used by holder to present credentials to a verifier is created. Otherwise, the holder can use the verifier authorization endpoint with a custom scope to request credentials. In this case `holderEntityId` must be provided.
991
+ * Registers a new verification request. When `createUrl` is true, URL used by holder to present credentials to a verifier is created. Otherwise, the holder can use the verifier authorization endpoint with a custom scope to request credentials. In this case `holderEntityId` must be provided.
965
992
  */
966
993
  export interface VerifyInitRequest {
967
994
  'verifierId': string;
968
995
  /**
969
- * When true, a verification request URL is created. When false, verification request is registered for a specific holder, that can then start the interaction by making an authorization request with custom scope. Defaults to `true`.
996
+ * When true, a verification request URL is created. When false, verification request is registered for a specific holder, that can then start the interaction by making an authorization request with custom scope. Defaults to `true`.
970
997
  */
971
998
  'createUrl'?: boolean;
972
999
  /**
@@ -1279,7 +1306,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1279
1306
  */
1280
1307
  credentialCreate: (walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1281
1308
  /**
1282
- * 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.
1309
+ * 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.
1283
1310
  * @param {string} credentialId Verifiable Credential Identifier
1284
1311
  * @param {string} walletId
1285
1312
  * @param {*} [options] Override http request option.
@@ -1319,7 +1346,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1319
1346
  */
1320
1347
  credentialList: (walletId: string, interaction?: CredentialListInteractionEnum, type?: string, valid?: boolean, limit?: number, nextMarker?: string, sort?: ListSort, searchPath?: string, filter?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1321
1348
  /**
1322
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1349
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1323
1350
  * @param {string} credentialId Verifiable Credential Identifier
1324
1351
  * @param {string} walletId
1325
1352
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -1337,7 +1364,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1337
1364
  */
1338
1365
  credentialPatch: (credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1339
1366
  /**
1340
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1367
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1341
1368
  * @param {string} walletId
1342
1369
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1343
1370
  * @param {*} [options] Override http request option.
@@ -1567,6 +1594,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1567
1594
  * @throws {RequiredError}
1568
1595
  */
1569
1596
  tfRevokeAccreditation: (walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1597
+ /**
1598
+ * Returns a record of an issued X509 certificate
1599
+ * @param {string} walletId
1600
+ * @param {string} serialNumber Certificate serial number
1601
+ * @param {*} [options] Override http request option.
1602
+ * @throws {RequiredError}
1603
+ */
1604
+ tfX509CertificateGetRecord: (walletId: string, serialNumber: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1570
1605
  /**
1571
1606
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
1572
1607
  * @param {string} walletId
@@ -1575,6 +1610,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1575
1610
  * @throws {RequiredError}
1576
1611
  */
1577
1612
  tfX509CertificateIssue: (walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1613
+ /**
1614
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
1615
+ * @param {string} walletId
1616
+ * @param {*} [options] Override http request option.
1617
+ * @throws {RequiredError}
1618
+ */
1619
+ tfX509CertificateListRecords: (walletId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1620
+ /**
1621
+ * Updates a status of an already issued X509 certificate
1622
+ * @param {string} walletId
1623
+ * @param {string} serialNumber Certificate serial number
1624
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
1625
+ * @param {*} [options] Override http request option.
1626
+ * @throws {RequiredError}
1627
+ */
1628
+ tfX509CertificateUpdateStatus: (walletId: string, serialNumber: string, certificateStatusUpdateRequest?: CertificateStatusUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1578
1629
  /**
1579
1630
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
1580
1631
  * @param {string} walletId
@@ -1611,7 +1662,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1611
1662
  */
1612
1663
  walletCreate: (walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1613
1664
  /**
1614
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
1665
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
1615
1666
  * @param {string} walletId
1616
1667
  * @param {*} [options] Override http request option.
1617
1668
  * @throws {RequiredError}
@@ -1720,7 +1771,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1720
1771
  */
1721
1772
  walletX509CSRCreate: (walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1722
1773
  /**
1723
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
1774
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
1724
1775
  * @param {string} walletId Wallet ID
1725
1776
  * @param {*} [options] Override http request option.
1726
1777
  * @throws {RequiredError}
@@ -1819,7 +1870,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1819
1870
  */
1820
1871
  credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1821
1872
  /**
1822
- * 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.
1873
+ * 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.
1823
1874
  * @param {string} credentialId Verifiable Credential Identifier
1824
1875
  * @param {string} walletId
1825
1876
  * @param {*} [options] Override http request option.
@@ -1859,7 +1910,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1859
1910
  */
1860
1911
  credentialList(walletId: string, interaction?: CredentialListInteractionEnum, type?: string, valid?: boolean, limit?: number, nextMarker?: string, sort?: ListSort, searchPath?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialList>>;
1861
1912
  /**
1862
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1913
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
1863
1914
  * @param {string} credentialId Verifiable Credential Identifier
1864
1915
  * @param {string} walletId
1865
1916
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -1877,7 +1928,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1877
1928
  */
1878
1929
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1879
1930
  /**
1880
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1931
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
1881
1932
  * @param {string} walletId
1882
1933
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1883
1934
  * @param {*} [options] Override http request option.
@@ -2107,6 +2158,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2107
2158
  * @throws {RequiredError}
2108
2159
  */
2109
2160
  tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2161
+ /**
2162
+ * Returns a record of an issued X509 certificate
2163
+ * @param {string} walletId
2164
+ * @param {string} serialNumber Certificate serial number
2165
+ * @param {*} [options] Override http request option.
2166
+ * @throws {RequiredError}
2167
+ */
2168
+ tfX509CertificateGetRecord(walletId: string, serialNumber: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CertificateRecordGetResponse>>;
2110
2169
  /**
2111
2170
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
2112
2171
  * @param {string} walletId
@@ -2115,6 +2174,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2115
2174
  * @throws {RequiredError}
2116
2175
  */
2117
2176
  tfX509CertificateIssue(walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CertificateIssueResponse>>;
2177
+ /**
2178
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
2179
+ * @param {string} walletId
2180
+ * @param {*} [options] Override http request option.
2181
+ * @throws {RequiredError}
2182
+ */
2183
+ tfX509CertificateListRecords(walletId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<CertificateRecordGetResponse>>>;
2184
+ /**
2185
+ * Updates a status of an already issued X509 certificate
2186
+ * @param {string} walletId
2187
+ * @param {string} serialNumber Certificate serial number
2188
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
2189
+ * @param {*} [options] Override http request option.
2190
+ * @throws {RequiredError}
2191
+ */
2192
+ tfX509CertificateUpdateStatus(walletId: string, serialNumber: string, certificateStatusUpdateRequest?: CertificateStatusUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2118
2193
  /**
2119
2194
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
2120
2195
  * @param {string} walletId
@@ -2151,7 +2226,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2151
2226
  */
2152
2227
  walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
2153
2228
  /**
2154
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2229
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2155
2230
  * @param {string} walletId
2156
2231
  * @param {*} [options] Override http request option.
2157
2232
  * @throws {RequiredError}
@@ -2262,7 +2337,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2262
2337
  */
2263
2338
  walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CSRCreateResponse>>;
2264
2339
  /**
2265
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
2340
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
2266
2341
  * @param {string} walletId Wallet ID
2267
2342
  * @param {*} [options] Override http request option.
2268
2343
  * @throws {RequiredError}
@@ -2361,7 +2436,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2361
2436
  */
2362
2437
  credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2363
2438
  /**
2364
- * 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.
2439
+ * 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.
2365
2440
  * @param {string} credentialId Verifiable Credential Identifier
2366
2441
  * @param {string} walletId
2367
2442
  * @param {*} [options] Override http request option.
@@ -2401,7 +2476,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2401
2476
  */
2402
2477
  credentialList(walletId: string, interaction?: CredentialListInteractionEnum, type?: string, valid?: boolean, limit?: number, nextMarker?: string, sort?: ListSort, searchPath?: string, filter?: string, options?: RawAxiosRequestConfig): AxiosPromise<CredentialList>;
2403
2478
  /**
2404
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
2479
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
2405
2480
  * @param {string} credentialId Verifiable Credential Identifier
2406
2481
  * @param {string} walletId
2407
2482
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -2419,7 +2494,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2419
2494
  */
2420
2495
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2421
2496
  /**
2422
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2497
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2423
2498
  * @param {string} walletId
2424
2499
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2425
2500
  * @param {*} [options] Override http request option.
@@ -2649,6 +2724,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2649
2724
  * @throws {RequiredError}
2650
2725
  */
2651
2726
  tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2727
+ /**
2728
+ * Returns a record of an issued X509 certificate
2729
+ * @param {string} walletId
2730
+ * @param {string} serialNumber Certificate serial number
2731
+ * @param {*} [options] Override http request option.
2732
+ * @throws {RequiredError}
2733
+ */
2734
+ tfX509CertificateGetRecord(walletId: string, serialNumber: string, options?: RawAxiosRequestConfig): AxiosPromise<CertificateRecordGetResponse>;
2652
2735
  /**
2653
2736
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
2654
2737
  * @param {string} walletId
@@ -2657,6 +2740,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2657
2740
  * @throws {RequiredError}
2658
2741
  */
2659
2742
  tfX509CertificateIssue(walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig): AxiosPromise<CertificateIssueResponse>;
2743
+ /**
2744
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
2745
+ * @param {string} walletId
2746
+ * @param {*} [options] Override http request option.
2747
+ * @throws {RequiredError}
2748
+ */
2749
+ tfX509CertificateListRecords(walletId: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<CertificateRecordGetResponse>>;
2750
+ /**
2751
+ * Updates a status of an already issued X509 certificate
2752
+ * @param {string} walletId
2753
+ * @param {string} serialNumber Certificate serial number
2754
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
2755
+ * @param {*} [options] Override http request option.
2756
+ * @throws {RequiredError}
2757
+ */
2758
+ tfX509CertificateUpdateStatus(walletId: string, serialNumber: string, certificateStatusUpdateRequest?: CertificateStatusUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2660
2759
  /**
2661
2760
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
2662
2761
  * @param {string} walletId
@@ -2693,7 +2792,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2693
2792
  */
2694
2793
  walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
2695
2794
  /**
2696
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2795
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
2697
2796
  * @param {string} walletId
2698
2797
  * @param {*} [options] Override http request option.
2699
2798
  * @throws {RequiredError}
@@ -2804,7 +2903,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2804
2903
  */
2805
2904
  walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CSRCreateResponse>;
2806
2905
  /**
2807
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
2906
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
2808
2907
  * @param {string} walletId Wallet ID
2809
2908
  * @param {*} [options] Override http request option.
2810
2909
  * @throws {RequiredError}
@@ -2903,7 +3002,7 @@ export declare class DefaultApi extends BaseAPI {
2903
3002
  */
2904
3003
  credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
2905
3004
  /**
2906
- * 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.
3005
+ * 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.
2907
3006
  * @param {string} credentialId Verifiable Credential Identifier
2908
3007
  * @param {string} walletId
2909
3008
  * @param {*} [options] Override http request option.
@@ -2943,7 +3042,7 @@ export declare class DefaultApi extends BaseAPI {
2943
3042
  */
2944
3043
  credentialList(walletId: string, interaction?: CredentialListInteractionEnum, type?: string, valid?: boolean, limit?: number, nextMarker?: string, sort?: ListSort, searchPath?: string, filter?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialList, any, {}>>;
2945
3044
  /**
2946
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
3045
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
2947
3046
  * @param {string} credentialId Verifiable Credential Identifier
2948
3047
  * @param {string} walletId
2949
3048
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -2961,7 +3060,7 @@ export declare class DefaultApi extends BaseAPI {
2961
3060
  */
2962
3061
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
2963
3062
  /**
2964
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3063
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2965
3064
  * @param {string} walletId
2966
3065
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2967
3066
  * @param {*} [options] Override http request option.
@@ -3191,6 +3290,14 @@ export declare class DefaultApi extends BaseAPI {
3191
3290
  * @throws {RequiredError}
3192
3291
  */
3193
3292
  tfRevokeAccreditation(walletId: string, revokeAccreditationRequest?: RevokeAccreditationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
3293
+ /**
3294
+ * Returns a record of an issued X509 certificate
3295
+ * @param {string} walletId
3296
+ * @param {string} serialNumber Certificate serial number
3297
+ * @param {*} [options] Override http request option.
3298
+ * @throws {RequiredError}
3299
+ */
3300
+ tfX509CertificateGetRecord(walletId: string, serialNumber: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CertificateRecordGetResponse, any, {}>>;
3194
3301
  /**
3195
3302
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
3196
3303
  * @param {string} walletId
@@ -3199,6 +3306,22 @@ export declare class DefaultApi extends BaseAPI {
3199
3306
  * @throws {RequiredError}
3200
3307
  */
3201
3308
  tfX509CertificateIssue(walletId: string, certificateIssueRequest?: CertificateIssueRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CertificateIssueResponse, any, {}>>;
3309
+ /**
3310
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
3311
+ * @param {string} walletId
3312
+ * @param {*} [options] Override http request option.
3313
+ * @throws {RequiredError}
3314
+ */
3315
+ tfX509CertificateListRecords(walletId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CertificateRecordGetResponse[], any, {}>>;
3316
+ /**
3317
+ * Updates a status of an already issued X509 certificate
3318
+ * @param {string} walletId
3319
+ * @param {string} serialNumber Certificate serial number
3320
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
3321
+ * @param {*} [options] Override http request option.
3322
+ * @throws {RequiredError}
3323
+ */
3324
+ tfX509CertificateUpdateStatus(walletId: string, serialNumber: string, certificateStatusUpdateRequest?: CertificateStatusUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
3202
3325
  /**
3203
3326
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
3204
3327
  * @param {string} walletId
@@ -3235,7 +3358,7 @@ export declare class DefaultApi extends BaseAPI {
3235
3358
  */
3236
3359
  walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any, {}>>;
3237
3360
  /**
3238
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3361
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3239
3362
  * @param {string} walletId
3240
3363
  * @param {*} [options] Override http request option.
3241
3364
  * @throws {RequiredError}
@@ -3346,7 +3469,7 @@ export declare class DefaultApi extends BaseAPI {
3346
3469
  */
3347
3470
  walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CSRCreateResponse, any, {}>>;
3348
3471
  /**
3349
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
3472
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
3350
3473
  * @param {string} walletId Wallet ID
3351
3474
  * @param {*} [options] Override http request option.
3352
3475
  * @throws {RequiredError}
package/api.js CHANGED
@@ -25,7 +25,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
25
25
  return (mod && mod.__esModule) ? mod : { "default": mod };
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
- exports.WmpEntityListEntityTypeEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessClientRequestTypeEnum = exports.WmpAuthenticateSessionTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialPropertyToVerify = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionAuthorizationEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.AccreditationRequestTypeEnum = void 0;
28
+ exports.WmpEntityListEntityTypeEnum = exports.CredentialListInteractionEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.XadesSignatureType = exports.WmpRequestType = exports.WmpProvideIdentityAssertionTypeEnum = exports.WmpProcessClientRequestTypeEnum = exports.WmpAuthenticateSessionTypeEnum = exports.WalletNotificationEventType = exports.WalletCapability = exports.TrustFrameworkType = exports.SystemImpactStatusEnum = exports.SigningKeyIdentifier = exports.RevokeAccreditationRequestTypeEnum = exports.PresentationDefinitionSubmissionRequirementsRuleEnum = exports.OidcRevisionOidc4vpEnum = exports.OidcRevisionOidc4vciEnum = exports.ObjectVerticalAlignment = exports.ObjectHorizontalAlignment = exports.ListSort = exports.InteractionAuthorizationRequirementsRequirementTypeEnum = exports.HealthStatusStatusEnum = exports.EntityAccreditationRequestTypeEnum = exports.DocumentSignatureValidityVerificationResultEnum = exports.DeferredStatusEnum = exports.CredentialPropertyToVerify = exports.CredentialNotificationEventTypeEnum = exports.CredentialMetadataStatusEnum = exports.CredentialMetadataInteractionEnum = exports.CredentialIssuerDefinitionAuthorizationEnum = exports.CredentialIssuerDefinitionCredentialIssuerEnum = exports.CredentialFormat = exports.CertificateStatus = exports.AccreditationRequestTypeEnum = void 0;
29
29
  const axios_1 = __importDefault(require("axios"));
30
30
  // Some imports not used depending on template conditions
31
31
  // @ts-ignore
@@ -37,6 +37,15 @@ exports.AccreditationRequestTypeEnum = {
37
37
  TrustedAccreditationOrganisation: 'TrustedAccreditationOrganisation',
38
38
  RootTrustedAccreditationOrganisation: 'RootTrustedAccreditationOrganisation',
39
39
  };
40
+ exports.CertificateStatus = {
41
+ Valid: 'valid',
42
+ RevokedUnspecified: 'revoked_unspecified',
43
+ RevokedKeyCompromise: 'revoked_keyCompromise',
44
+ RevokedPrivilegeWithdrawn: 'revoked_privilegeWithdrawn',
45
+ RevokedCessationOfOperation: 'revoked_cessationOfOperation',
46
+ RevokedAffiliationChanged: 'revoked_affiliationChanged',
47
+ RevokedSuperseded: 'revoked_superseded',
48
+ };
40
49
  /**
41
50
  * jwt_vc_vcdm - VC using W3C VC Data Model as jwt sd_jwt_vc - VC using sd_jwt_vc data model as jwt mso_mdoc - VC using ISO/IEC 18013-5 mdoc format
42
51
  */
@@ -252,7 +261,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
252
261
  };
253
262
  }),
254
263
  /**
255
- * 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.
264
+ * 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.
256
265
  * @param {string} credentialId Verifiable Credential Identifier
257
266
  * @param {string} walletId
258
267
  * @param {*} [options] Override http request option.
@@ -434,7 +443,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
434
443
  };
435
444
  }),
436
445
  /**
437
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
446
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
438
447
  * @param {string} credentialId Verifiable Credential Identifier
439
448
  * @param {string} walletId
440
449
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -516,7 +525,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
516
525
  };
517
526
  }),
518
527
  /**
519
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
528
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
520
529
  * @param {string} walletId
521
530
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
522
531
  * @param {*} [options] Override http request option.
@@ -1598,6 +1607,44 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1598
1607
  options: localVarRequestOptions,
1599
1608
  };
1600
1609
  }),
1610
+ /**
1611
+ * Returns a record of an issued X509 certificate
1612
+ * @param {string} walletId
1613
+ * @param {string} serialNumber Certificate serial number
1614
+ * @param {*} [options] Override http request option.
1615
+ * @throws {RequiredError}
1616
+ */
1617
+ tfX509CertificateGetRecord: (walletId_1, serialNumber_1, ...args_1) => __awaiter(this, [walletId_1, serialNumber_1, ...args_1], void 0, function* (walletId, serialNumber, options = {}) {
1618
+ // verify required parameter 'walletId' is not null or undefined
1619
+ (0, common_1.assertParamExists)('tfX509CertificateGetRecord', 'walletId', walletId);
1620
+ // verify required parameter 'serialNumber' is not null or undefined
1621
+ (0, common_1.assertParamExists)('tfX509CertificateGetRecord', 'serialNumber', serialNumber);
1622
+ const localVarPath = `/tf/x509/{serial_number}`
1623
+ .replace('{serial_number}', encodeURIComponent(String(serialNumber)));
1624
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1625
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1626
+ let baseOptions;
1627
+ if (configuration) {
1628
+ baseOptions = configuration.baseOptions;
1629
+ }
1630
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1631
+ const localVarHeaderParameter = {};
1632
+ const localVarQueryParameter = {};
1633
+ // authentication accessToken required
1634
+ // http bearer authentication required
1635
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1636
+ localVarHeaderParameter['Accept'] = 'application/json';
1637
+ if (walletId != null) {
1638
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1639
+ }
1640
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1641
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1642
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1643
+ return {
1644
+ url: (0, common_1.toPathString)(localVarUrlObj),
1645
+ options: localVarRequestOptions,
1646
+ };
1647
+ }),
1601
1648
  /**
1602
1649
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
1603
1650
  * @param {string} walletId
@@ -1635,6 +1682,81 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1635
1682
  options: localVarRequestOptions,
1636
1683
  };
1637
1684
  }),
1685
+ /**
1686
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
1687
+ * @param {string} walletId
1688
+ * @param {*} [options] Override http request option.
1689
+ * @throws {RequiredError}
1690
+ */
1691
+ tfX509CertificateListRecords: (walletId_1, ...args_1) => __awaiter(this, [walletId_1, ...args_1], void 0, function* (walletId, options = {}) {
1692
+ // verify required parameter 'walletId' is not null or undefined
1693
+ (0, common_1.assertParamExists)('tfX509CertificateListRecords', 'walletId', walletId);
1694
+ const localVarPath = `/tf/x509`;
1695
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1696
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1697
+ let baseOptions;
1698
+ if (configuration) {
1699
+ baseOptions = configuration.baseOptions;
1700
+ }
1701
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1702
+ const localVarHeaderParameter = {};
1703
+ const localVarQueryParameter = {};
1704
+ // authentication accessToken required
1705
+ // http bearer authentication required
1706
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1707
+ localVarHeaderParameter['Accept'] = 'application/json';
1708
+ if (walletId != null) {
1709
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1710
+ }
1711
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1712
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1713
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1714
+ return {
1715
+ url: (0, common_1.toPathString)(localVarUrlObj),
1716
+ options: localVarRequestOptions,
1717
+ };
1718
+ }),
1719
+ /**
1720
+ * Updates a status of an already issued X509 certificate
1721
+ * @param {string} walletId
1722
+ * @param {string} serialNumber Certificate serial number
1723
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
1724
+ * @param {*} [options] Override http request option.
1725
+ * @throws {RequiredError}
1726
+ */
1727
+ tfX509CertificateUpdateStatus: (walletId_1, serialNumber_1, certificateStatusUpdateRequest_1, ...args_1) => __awaiter(this, [walletId_1, serialNumber_1, certificateStatusUpdateRequest_1, ...args_1], void 0, function* (walletId, serialNumber, certificateStatusUpdateRequest, options = {}) {
1728
+ // verify required parameter 'walletId' is not null or undefined
1729
+ (0, common_1.assertParamExists)('tfX509CertificateUpdateStatus', 'walletId', walletId);
1730
+ // verify required parameter 'serialNumber' is not null or undefined
1731
+ (0, common_1.assertParamExists)('tfX509CertificateUpdateStatus', 'serialNumber', serialNumber);
1732
+ const localVarPath = `/tf/x509/{serial_number}/status`
1733
+ .replace('{serial_number}', encodeURIComponent(String(serialNumber)));
1734
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1735
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1736
+ let baseOptions;
1737
+ if (configuration) {
1738
+ baseOptions = configuration.baseOptions;
1739
+ }
1740
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
1741
+ const localVarHeaderParameter = {};
1742
+ const localVarQueryParameter = {};
1743
+ // authentication accessToken required
1744
+ // http bearer authentication required
1745
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1746
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1747
+ localVarHeaderParameter['Accept'] = 'application/json';
1748
+ if (walletId != null) {
1749
+ localVarHeaderParameter['wallet-id'] = String(walletId);
1750
+ }
1751
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1752
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1753
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1754
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(certificateStatusUpdateRequest, localVarRequestOptions, configuration);
1755
+ return {
1756
+ url: (0, common_1.toPathString)(localVarUrlObj),
1757
+ options: localVarRequestOptions,
1758
+ };
1759
+ }),
1638
1760
  /**
1639
1761
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
1640
1762
  * @param {string} walletId
@@ -1803,7 +1925,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
1803
1925
  };
1804
1926
  }),
1805
1927
  /**
1806
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
1928
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
1807
1929
  * @param {string} walletId
1808
1930
  * @param {*} [options] Override http request option.
1809
1931
  * @throws {RequiredError}
@@ -2294,7 +2416,7 @@ const DefaultApiAxiosParamCreator = function (configuration) {
2294
2416
  };
2295
2417
  }),
2296
2418
  /**
2297
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
2419
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
2298
2420
  * @param {string} walletId Wallet ID
2299
2421
  * @param {*} [options] Override http request option.
2300
2422
  * @throws {RequiredError}
@@ -2723,7 +2845,7 @@ const DefaultApiFp = function (configuration) {
2723
2845
  });
2724
2846
  },
2725
2847
  /**
2726
- * 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.
2848
+ * 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.
2727
2849
  * @param {string} credentialId Verifiable Credential Identifier
2728
2850
  * @param {string} walletId
2729
2851
  * @param {*} [options] Override http request option.
@@ -2795,7 +2917,7 @@ const DefaultApiFp = function (configuration) {
2795
2917
  });
2796
2918
  },
2797
2919
  /**
2798
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
2920
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
2799
2921
  * @param {string} credentialId Verifiable Credential Identifier
2800
2922
  * @param {string} walletId
2801
2923
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -2829,7 +2951,7 @@ const DefaultApiFp = function (configuration) {
2829
2951
  });
2830
2952
  },
2831
2953
  /**
2832
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2954
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
2833
2955
  * @param {string} walletId
2834
2956
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2835
2957
  * @param {*} [options] Override http request option.
@@ -3291,6 +3413,22 @@ const DefaultApiFp = function (configuration) {
3291
3413
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3292
3414
  });
3293
3415
  },
3416
+ /**
3417
+ * Returns a record of an issued X509 certificate
3418
+ * @param {string} walletId
3419
+ * @param {string} serialNumber Certificate serial number
3420
+ * @param {*} [options] Override http request option.
3421
+ * @throws {RequiredError}
3422
+ */
3423
+ tfX509CertificateGetRecord(walletId, serialNumber, options) {
3424
+ return __awaiter(this, void 0, void 0, function* () {
3425
+ var _a, _b, _c;
3426
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfX509CertificateGetRecord(walletId, serialNumber, options);
3427
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3428
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfX509CertificateGetRecord']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3429
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3430
+ });
3431
+ },
3294
3432
  /**
3295
3433
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
3296
3434
  * @param {string} walletId
@@ -3307,6 +3445,38 @@ const DefaultApiFp = function (configuration) {
3307
3445
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3308
3446
  });
3309
3447
  },
3448
+ /**
3449
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
3450
+ * @param {string} walletId
3451
+ * @param {*} [options] Override http request option.
3452
+ * @throws {RequiredError}
3453
+ */
3454
+ tfX509CertificateListRecords(walletId, options) {
3455
+ return __awaiter(this, void 0, void 0, function* () {
3456
+ var _a, _b, _c;
3457
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfX509CertificateListRecords(walletId, options);
3458
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3459
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfX509CertificateListRecords']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3460
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3461
+ });
3462
+ },
3463
+ /**
3464
+ * Updates a status of an already issued X509 certificate
3465
+ * @param {string} walletId
3466
+ * @param {string} serialNumber Certificate serial number
3467
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
3468
+ * @param {*} [options] Override http request option.
3469
+ * @throws {RequiredError}
3470
+ */
3471
+ tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options) {
3472
+ return __awaiter(this, void 0, void 0, function* () {
3473
+ var _a, _b, _c;
3474
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options);
3475
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3476
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['DefaultApi.tfX509CertificateUpdateStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3477
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3478
+ });
3479
+ },
3310
3480
  /**
3311
3481
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
3312
3482
  * @param {string} walletId
@@ -3375,7 +3545,7 @@ const DefaultApiFp = function (configuration) {
3375
3545
  });
3376
3546
  },
3377
3547
  /**
3378
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3548
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
3379
3549
  * @param {string} walletId
3380
3550
  * @param {*} [options] Override http request option.
3381
3551
  * @throws {RequiredError}
@@ -3596,7 +3766,7 @@ const DefaultApiFp = function (configuration) {
3596
3766
  });
3597
3767
  },
3598
3768
  /**
3599
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
3769
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
3600
3770
  * @param {string} walletId Wallet ID
3601
3771
  * @param {*} [options] Override http request option.
3602
3772
  * @throws {RequiredError}
@@ -3789,7 +3959,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3789
3959
  return localVarFp.credentialCreate(walletId, credentialPayload, options).then((request) => request(axios, basePath));
3790
3960
  },
3791
3961
  /**
3792
- * 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.
3962
+ * 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.
3793
3963
  * @param {string} credentialId Verifiable Credential Identifier
3794
3964
  * @param {string} walletId
3795
3965
  * @param {*} [options] Override http request option.
@@ -3837,7 +4007,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3837
4007
  return localVarFp.credentialList(walletId, interaction, type, valid, limit, nextMarker, sort, searchPath, filter, options).then((request) => request(axios, basePath));
3838
4008
  },
3839
4009
  /**
3840
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
4010
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
3841
4011
  * @param {string} credentialId Verifiable Credential Identifier
3842
4012
  * @param {string} walletId
3843
4013
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -3859,7 +4029,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
3859
4029
  return localVarFp.credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(axios, basePath));
3860
4030
  },
3861
4031
  /**
3862
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
4032
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
3863
4033
  * @param {string} walletId
3864
4034
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
3865
4035
  * @param {*} [options] Override http request option.
@@ -4147,6 +4317,16 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4147
4317
  tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
4148
4318
  return localVarFp.tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(axios, basePath));
4149
4319
  },
4320
+ /**
4321
+ * Returns a record of an issued X509 certificate
4322
+ * @param {string} walletId
4323
+ * @param {string} serialNumber Certificate serial number
4324
+ * @param {*} [options] Override http request option.
4325
+ * @throws {RequiredError}
4326
+ */
4327
+ tfX509CertificateGetRecord(walletId, serialNumber, options) {
4328
+ return localVarFp.tfX509CertificateGetRecord(walletId, serialNumber, options).then((request) => request(axios, basePath));
4329
+ },
4150
4330
  /**
4151
4331
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
4152
4332
  * @param {string} walletId
@@ -4157,6 +4337,26 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4157
4337
  tfX509CertificateIssue(walletId, certificateIssueRequest, options) {
4158
4338
  return localVarFp.tfX509CertificateIssue(walletId, certificateIssueRequest, options).then((request) => request(axios, basePath));
4159
4339
  },
4340
+ /**
4341
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
4342
+ * @param {string} walletId
4343
+ * @param {*} [options] Override http request option.
4344
+ * @throws {RequiredError}
4345
+ */
4346
+ tfX509CertificateListRecords(walletId, options) {
4347
+ return localVarFp.tfX509CertificateListRecords(walletId, options).then((request) => request(axios, basePath));
4348
+ },
4349
+ /**
4350
+ * Updates a status of an already issued X509 certificate
4351
+ * @param {string} walletId
4352
+ * @param {string} serialNumber Certificate serial number
4353
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
4354
+ * @param {*} [options] Override http request option.
4355
+ * @throws {RequiredError}
4356
+ */
4357
+ tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options) {
4358
+ return localVarFp.tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options).then((request) => request(axios, basePath));
4359
+ },
4160
4360
  /**
4161
4361
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
4162
4362
  * @param {string} walletId
@@ -4201,7 +4401,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4201
4401
  return localVarFp.walletCreate(walletCreatePayload, options).then((request) => request(axios, basePath));
4202
4402
  },
4203
4403
  /**
4204
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
4404
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
4205
4405
  * @param {string} walletId
4206
4406
  * @param {*} [options] Override http request option.
4207
4407
  * @throws {RequiredError}
@@ -4338,7 +4538,7 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
4338
4538
  return localVarFp.walletX509CSRCreate(walletId, cSRCreateRequest, options).then((request) => request(axios, basePath));
4339
4539
  },
4340
4540
  /**
4341
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
4541
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
4342
4542
  * @param {string} walletId Wallet ID
4343
4543
  * @param {*} [options] Override http request option.
4344
4544
  * @throws {RequiredError}
@@ -4463,7 +4663,7 @@ class DefaultApi extends base_1.BaseAPI {
4463
4663
  return (0, exports.DefaultApiFp)(this.configuration).credentialCreate(walletId, credentialPayload, options).then((request) => request(this.axios, this.basePath));
4464
4664
  }
4465
4665
  /**
4466
- * 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.
4666
+ * 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.
4467
4667
  * @param {string} credentialId Verifiable Credential Identifier
4468
4668
  * @param {string} walletId
4469
4669
  * @param {*} [options] Override http request option.
@@ -4511,7 +4711,7 @@ class DefaultApi extends base_1.BaseAPI {
4511
4711
  return (0, exports.DefaultApiFp)(this.configuration).credentialList(walletId, interaction, type, valid, limit, nextMarker, sort, searchPath, filter, options).then((request) => request(this.axios, this.basePath));
4512
4712
  }
4513
4713
  /**
4514
- * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
4714
+ * Verifiable Credential metadata may be updated even after the credential was issued. It is available as a key value storage for a client to store any additional data for the credential.
4515
4715
  * @param {string} credentialId Verifiable Credential Identifier
4516
4716
  * @param {string} walletId
4517
4717
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -4533,7 +4733,7 @@ class DefaultApi extends base_1.BaseAPI {
4533
4733
  return (0, exports.DefaultApiFp)(this.configuration).credentialPatch(credentialId, walletId, credentialPatchPayload, options).then((request) => request(this.axios, this.basePath));
4534
4734
  }
4535
4735
  /**
4536
- * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
4736
+ * Requests a credential issuance from the issuer and retrieves requirements for holder authorization.
4537
4737
  * @param {string} walletId
4538
4738
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
4539
4739
  * @param {*} [options] Override http request option.
@@ -4821,6 +5021,16 @@ class DefaultApi extends base_1.BaseAPI {
4821
5021
  tfRevokeAccreditation(walletId, revokeAccreditationRequest, options) {
4822
5022
  return (0, exports.DefaultApiFp)(this.configuration).tfRevokeAccreditation(walletId, revokeAccreditationRequest, options).then((request) => request(this.axios, this.basePath));
4823
5023
  }
5024
+ /**
5025
+ * Returns a record of an issued X509 certificate
5026
+ * @param {string} walletId
5027
+ * @param {string} serialNumber Certificate serial number
5028
+ * @param {*} [options] Override http request option.
5029
+ * @throws {RequiredError}
5030
+ */
5031
+ tfX509CertificateGetRecord(walletId, serialNumber, options) {
5032
+ return (0, exports.DefaultApiFp)(this.configuration).tfX509CertificateGetRecord(walletId, serialNumber, options).then((request) => request(this.axios, this.basePath));
5033
+ }
4824
5034
  /**
4825
5035
  * Issues a signed X509 certificate based on the provided CSR. Used by a CA-capable wallet to sign certificate requests from other wallets, enabling them to sign credentials with X509 certificate echains and/or perform XAdES/PDF signing.
4826
5036
  * @param {string} walletId
@@ -4831,6 +5041,26 @@ class DefaultApi extends base_1.BaseAPI {
4831
5041
  tfX509CertificateIssue(walletId, certificateIssueRequest, options) {
4832
5042
  return (0, exports.DefaultApiFp)(this.configuration).tfX509CertificateIssue(walletId, certificateIssueRequest, options).then((request) => request(this.axios, this.basePath));
4833
5043
  }
5044
+ /**
5045
+ * Returns the records of all X509 certificates the wallet has issued, including their current status. The list is empty when the wallet has not issued any certificate.
5046
+ * @param {string} walletId
5047
+ * @param {*} [options] Override http request option.
5048
+ * @throws {RequiredError}
5049
+ */
5050
+ tfX509CertificateListRecords(walletId, options) {
5051
+ return (0, exports.DefaultApiFp)(this.configuration).tfX509CertificateListRecords(walletId, options).then((request) => request(this.axios, this.basePath));
5052
+ }
5053
+ /**
5054
+ * Updates a status of an already issued X509 certificate
5055
+ * @param {string} walletId
5056
+ * @param {string} serialNumber Certificate serial number
5057
+ * @param {CertificateStatusUpdateRequest} [certificateStatusUpdateRequest]
5058
+ * @param {*} [options] Override http request option.
5059
+ * @throws {RequiredError}
5060
+ */
5061
+ tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options) {
5062
+ return (0, exports.DefaultApiFp)(this.configuration).tfX509CertificateUpdateStatus(walletId, serialNumber, certificateStatusUpdateRequest, options).then((request) => request(this.axios, this.basePath));
5063
+ }
4834
5064
  /**
4835
5065
  * Creates a verification session and returns a URL where the verifier accepts credential presentations from a holder. The URL is typically shared as a QR code or deep link. After the holder presents credentials, use `WalletVerifiedCredentialsByState` with the returned `state` to retrieve the verification result.
4836
5066
  * @param {string} walletId
@@ -4875,7 +5105,7 @@ class DefaultApi extends base_1.BaseAPI {
4875
5105
  return (0, exports.DefaultApiFp)(this.configuration).walletCreate(walletCreatePayload, options).then((request) => request(this.axios, this.basePath));
4876
5106
  }
4877
5107
  /**
4878
- * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
5108
+ * Permanently deletes the wallet with all credentials and keys. Make sure you know what you are doing before hitting this endpoint.
4879
5109
  * @param {string} walletId
4880
5110
  * @param {*} [options] Override http request option.
4881
5111
  * @throws {RequiredError}
@@ -5012,7 +5242,7 @@ class DefaultApi extends base_1.BaseAPI {
5012
5242
  return (0, exports.DefaultApiFp)(this.configuration).walletX509CSRCreate(walletId, cSRCreateRequest, options).then((request) => request(this.axios, this.basePath));
5013
5243
  }
5014
5244
  /**
5015
- * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
5245
+ * Returns the wallet\'s currently active X509 certificate in PEM format, used for XAdES/PDF signing. certificate for signature verification.
5016
5246
  * @param {string} walletId Wallet ID
5017
5247
  * @param {*} [options] Override http request option.
5018
5248
  * @throws {RequiredError}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@triveria/wallet",
3
3
  "private": false,
4
- "version": "0.0.299",
4
+ "version": "0.0.300",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {