@triveria/wallet 0.0.298 → 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 +151 -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;
@@ -437,6 +464,10 @@ export interface DocumentSignatureValidity {
437
464
  * Signing certificate in base64 encoded form
438
465
  */
439
466
  'signingCertificate': string;
467
+ /**
468
+ * Whether the signature covers the document in full. A PDF may carry content appended after a signature was applied - an incremental update such as an embedded verifiable presentation. That content is outside the signature\'s ByteRange, so the signature says nothing about it: the signature is valid for the revision it signed, but the document as a whole is not covered. Absent when the signature format has no notion of partial coverage.
469
+ */
470
+ 'coversWholeDocument'?: boolean;
440
471
  }
441
472
  export declare const DocumentSignatureValidityVerificationResultEnum: {
442
473
  readonly Valid: "valid";
@@ -634,7 +665,7 @@ export interface InputDescriptorSuitableCredentials {
634
665
  }
635
666
  export interface InteractionAuthorizationConsent {
636
667
  /**
637
- * 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`
638
669
  */
639
670
  'pin'?: string;
640
671
  /**
@@ -957,12 +988,12 @@ export interface VerifiedWrapper {
957
988
  'holder': string;
958
989
  }
959
990
  /**
960
- * 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.
961
992
  */
962
993
  export interface VerifyInitRequest {
963
994
  'verifierId': string;
964
995
  /**
965
- * 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`.
966
997
  */
967
998
  'createUrl'?: boolean;
968
999
  /**
@@ -1275,7 +1306,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1275
1306
  */
1276
1307
  credentialCreate: (walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1277
1308
  /**
1278
- * 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.
1279
1310
  * @param {string} credentialId Verifiable Credential Identifier
1280
1311
  * @param {string} walletId
1281
1312
  * @param {*} [options] Override http request option.
@@ -1315,7 +1346,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1315
1346
  */
1316
1347
  credentialList: (walletId: string, interaction?: CredentialListInteractionEnum, type?: string, valid?: boolean, limit?: number, nextMarker?: string, sort?: ListSort, searchPath?: string, filter?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1317
1348
  /**
1318
- * 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.
1319
1350
  * @param {string} credentialId Verifiable Credential Identifier
1320
1351
  * @param {string} walletId
1321
1352
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -1333,7 +1364,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1333
1364
  */
1334
1365
  credentialPatch: (credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1335
1366
  /**
1336
- * 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.
1337
1368
  * @param {string} walletId
1338
1369
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1339
1370
  * @param {*} [options] Override http request option.
@@ -1563,6 +1594,14 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1563
1594
  * @throws {RequiredError}
1564
1595
  */
1565
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>;
1566
1605
  /**
1567
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.
1568
1607
  * @param {string} walletId
@@ -1571,6 +1610,22 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1571
1610
  * @throws {RequiredError}
1572
1611
  */
1573
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>;
1574
1629
  /**
1575
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.
1576
1631
  * @param {string} walletId
@@ -1607,7 +1662,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1607
1662
  */
1608
1663
  walletCreate: (walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1609
1664
  /**
1610
- * 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.
1611
1666
  * @param {string} walletId
1612
1667
  * @param {*} [options] Override http request option.
1613
1668
  * @throws {RequiredError}
@@ -1716,7 +1771,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
1716
1771
  */
1717
1772
  walletX509CSRCreate: (walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1718
1773
  /**
1719
- * 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.
1720
1775
  * @param {string} walletId Wallet ID
1721
1776
  * @param {*} [options] Override http request option.
1722
1777
  * @throws {RequiredError}
@@ -1815,7 +1870,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1815
1870
  */
1816
1871
  credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1817
1872
  /**
1818
- * 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.
1819
1874
  * @param {string} credentialId Verifiable Credential Identifier
1820
1875
  * @param {string} walletId
1821
1876
  * @param {*} [options] Override http request option.
@@ -1855,7 +1910,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1855
1910
  */
1856
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>>;
1857
1912
  /**
1858
- * 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.
1859
1914
  * @param {string} credentialId Verifiable Credential Identifier
1860
1915
  * @param {string} walletId
1861
1916
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -1873,7 +1928,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
1873
1928
  */
1874
1929
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CredentialIdObject>>;
1875
1930
  /**
1876
- * 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.
1877
1932
  * @param {string} walletId
1878
1933
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
1879
1934
  * @param {*} [options] Override http request option.
@@ -2103,6 +2158,14 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2103
2158
  * @throws {RequiredError}
2104
2159
  */
2105
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>>;
2106
2169
  /**
2107
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.
2108
2171
  * @param {string} walletId
@@ -2111,6 +2174,22 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2111
2174
  * @throws {RequiredError}
2112
2175
  */
2113
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>>;
2114
2193
  /**
2115
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.
2116
2195
  * @param {string} walletId
@@ -2147,7 +2226,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2147
2226
  */
2148
2227
  walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WalletIdObject>>;
2149
2228
  /**
2150
- * 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.
2151
2230
  * @param {string} walletId
2152
2231
  * @param {*} [options] Override http request option.
2153
2232
  * @throws {RequiredError}
@@ -2258,7 +2337,7 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
2258
2337
  */
2259
2338
  walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CSRCreateResponse>>;
2260
2339
  /**
2261
- * 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.
2262
2341
  * @param {string} walletId Wallet ID
2263
2342
  * @param {*} [options] Override http request option.
2264
2343
  * @throws {RequiredError}
@@ -2357,7 +2436,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2357
2436
  */
2358
2437
  credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2359
2438
  /**
2360
- * 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.
2361
2440
  * @param {string} credentialId Verifiable Credential Identifier
2362
2441
  * @param {string} walletId
2363
2442
  * @param {*} [options] Override http request option.
@@ -2397,7 +2476,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2397
2476
  */
2398
2477
  credentialList(walletId: string, interaction?: CredentialListInteractionEnum, type?: string, valid?: boolean, limit?: number, nextMarker?: string, sort?: ListSort, searchPath?: string, filter?: string, options?: RawAxiosRequestConfig): AxiosPromise<CredentialList>;
2399
2478
  /**
2400
- * 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.
2401
2480
  * @param {string} credentialId Verifiable Credential Identifier
2402
2481
  * @param {string} walletId
2403
2482
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -2415,7 +2494,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2415
2494
  */
2416
2495
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): AxiosPromise<CredentialIdObject>;
2417
2496
  /**
2418
- * 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.
2419
2498
  * @param {string} walletId
2420
2499
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2421
2500
  * @param {*} [options] Override http request option.
@@ -2645,6 +2724,14 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2645
2724
  * @throws {RequiredError}
2646
2725
  */
2647
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>;
2648
2735
  /**
2649
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.
2650
2737
  * @param {string} walletId
@@ -2653,6 +2740,22 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2653
2740
  * @throws {RequiredError}
2654
2741
  */
2655
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>;
2656
2759
  /**
2657
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.
2658
2761
  * @param {string} walletId
@@ -2689,7 +2792,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2689
2792
  */
2690
2793
  walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): AxiosPromise<WalletIdObject>;
2691
2794
  /**
2692
- * 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.
2693
2796
  * @param {string} walletId
2694
2797
  * @param {*} [options] Override http request option.
2695
2798
  * @throws {RequiredError}
@@ -2800,7 +2903,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
2800
2903
  */
2801
2904
  walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<CSRCreateResponse>;
2802
2905
  /**
2803
- * 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.
2804
2907
  * @param {string} walletId Wallet ID
2805
2908
  * @param {*} [options] Override http request option.
2806
2909
  * @throws {RequiredError}
@@ -2899,7 +3002,7 @@ export declare class DefaultApi extends BaseAPI {
2899
3002
  */
2900
3003
  credentialCreate(walletId: string, credentialPayload?: CredentialPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
2901
3004
  /**
2902
- * 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.
2903
3006
  * @param {string} credentialId Verifiable Credential Identifier
2904
3007
  * @param {string} walletId
2905
3008
  * @param {*} [options] Override http request option.
@@ -2939,7 +3042,7 @@ export declare class DefaultApi extends BaseAPI {
2939
3042
  */
2940
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, {}>>;
2941
3044
  /**
2942
- * 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.
2943
3046
  * @param {string} credentialId Verifiable Credential Identifier
2944
3047
  * @param {string} walletId
2945
3048
  * @param {CredentialMetadataPatchPayload} [credentialMetadataPatchPayload] Verifiable Credential metadata in JSON
@@ -2957,7 +3060,7 @@ export declare class DefaultApi extends BaseAPI {
2957
3060
  */
2958
3061
  credentialPatch(credentialId: string, walletId: string, credentialPatchPayload?: CredentialPatchPayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CredentialIdObject, any, {}>>;
2959
3062
  /**
2960
- * 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.
2961
3064
  * @param {string} walletId
2962
3065
  * @param {CredentialRequest} [credentialRequest] A Verifiable Credential request: types and URL of the issuer
2963
3066
  * @param {*} [options] Override http request option.
@@ -3187,6 +3290,14 @@ export declare class DefaultApi extends BaseAPI {
3187
3290
  * @throws {RequiredError}
3188
3291
  */
3189
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, {}>>;
3190
3301
  /**
3191
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.
3192
3303
  * @param {string} walletId
@@ -3195,6 +3306,22 @@ export declare class DefaultApi extends BaseAPI {
3195
3306
  * @throws {RequiredError}
3196
3307
  */
3197
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, {}>>;
3198
3325
  /**
3199
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.
3200
3327
  * @param {string} walletId
@@ -3231,7 +3358,7 @@ export declare class DefaultApi extends BaseAPI {
3231
3358
  */
3232
3359
  walletCreate(walletCreatePayload?: WalletCreatePayload, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<WalletIdObject, any, {}>>;
3233
3360
  /**
3234
- * 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.
3235
3362
  * @param {string} walletId
3236
3363
  * @param {*} [options] Override http request option.
3237
3364
  * @throws {RequiredError}
@@ -3342,7 +3469,7 @@ export declare class DefaultApi extends BaseAPI {
3342
3469
  */
3343
3470
  walletX509CSRCreate(walletId: string, cSRCreateRequest?: CSRCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CSRCreateResponse, any, {}>>;
3344
3471
  /**
3345
- * 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.
3346
3473
  * @param {string} walletId Wallet ID
3347
3474
  * @param {*} [options] Override http request option.
3348
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.298",
4
+ "version": "0.0.300",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {