@tsg-dsp/tsg-sdk 0.0.0-stage → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +362 -2
- package/dist/.generated/control-plane.d.ts +7825 -0
- package/dist/.generated/sso-bridge.d.ts +3999 -0
- package/dist/.generated/wallet.d.ts +6248 -0
- package/dist/auth/auth.provider.d.ts +49 -0
- package/dist/auth/auth.provider.d.ts.map +1 -0
- package/dist/auth/auth.provider.js +166 -0
- package/dist/auth/auth.provider.js.map +1 -0
- package/dist/auth/auth.types.d.ts +27 -0
- package/dist/auth/auth.types.d.ts.map +1 -0
- package/dist/auth/auth.types.js +2 -0
- package/dist/auth/auth.types.js.map +1 -0
- package/dist/auth/index.d.ts +3 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +3 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/browser.d.ts +1245 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +228 -0
- package/dist/browser.js.map +1 -0
- package/dist/catalog/catalog.sdk.d.ts +149 -0
- package/dist/catalog/catalog.sdk.d.ts.map +1 -0
- package/dist/catalog/catalog.sdk.js +155 -0
- package/dist/catalog/catalog.sdk.js.map +1 -0
- package/dist/catalog/index.d.ts +2 -0
- package/dist/catalog/index.d.ts.map +1 -0
- package/dist/catalog/index.js +2 -0
- package/dist/catalog/index.js.map +1 -0
- package/dist/client.d.ts +43 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +109 -0
- package/dist/client.js.map +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/sdk.config.d.ts +97 -0
- package/dist/config/sdk.config.d.ts.map +1 -0
- package/dist/config/sdk.config.js +2 -0
- package/dist/config/sdk.config.js.map +1 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/metadata/index.d.ts +2 -0
- package/dist/metadata/index.d.ts.map +1 -0
- package/dist/metadata/index.js +2 -0
- package/dist/metadata/index.js.map +1 -0
- package/dist/metadata/metadata.sdk.d.ts +114 -0
- package/dist/metadata/metadata.sdk.d.ts.map +1 -0
- package/dist/metadata/metadata.sdk.js +145 -0
- package/dist/metadata/metadata.sdk.js.map +1 -0
- package/dist/negotiations/index.d.ts +2 -0
- package/dist/negotiations/index.d.ts.map +1 -0
- package/dist/negotiations/index.js +2 -0
- package/dist/negotiations/index.js.map +1 -0
- package/dist/negotiations/negotiations.sdk.d.ts +113 -0
- package/dist/negotiations/negotiations.sdk.d.ts.map +1 -0
- package/dist/negotiations/negotiations.sdk.js +146 -0
- package/dist/negotiations/negotiations.sdk.js.map +1 -0
- package/dist/requirements/index.d.ts +2 -0
- package/dist/requirements/index.d.ts.map +1 -0
- package/dist/requirements/index.js +2 -0
- package/dist/requirements/index.js.map +1 -0
- package/dist/requirements/requirements.sdk.d.ts +52 -0
- package/dist/requirements/requirements.sdk.d.ts.map +1 -0
- package/dist/requirements/requirements.sdk.js +123 -0
- package/dist/requirements/requirements.sdk.js.map +1 -0
- package/dist/sso/index.d.ts +3 -0
- package/dist/sso/index.d.ts.map +1 -0
- package/dist/sso/index.js +3 -0
- package/dist/sso/index.js.map +1 -0
- package/dist/sso/sso-management.sdk.d.ts +96 -0
- package/dist/sso/sso-management.sdk.d.ts.map +1 -0
- package/dist/sso/sso-management.sdk.js +152 -0
- package/dist/sso/sso-management.sdk.js.map +1 -0
- package/dist/sso/sso.sdk.d.ts +75 -0
- package/dist/sso/sso.sdk.d.ts.map +1 -0
- package/dist/sso/sso.sdk.js +149 -0
- package/dist/sso/sso.sdk.js.map +1 -0
- package/dist/tenants/tenant-management.sdk.d.ts +48 -0
- package/dist/tenants/tenant-management.sdk.d.ts.map +1 -0
- package/dist/tenants/tenant-management.sdk.js +107 -0
- package/dist/tenants/tenant-management.sdk.js.map +1 -0
- package/dist/transfers/index.d.ts +2 -0
- package/dist/transfers/index.d.ts.map +1 -0
- package/dist/transfers/index.js +2 -0
- package/dist/transfers/index.js.map +1 -0
- package/dist/transfers/transfers.sdk.d.ts +174 -0
- package/dist/transfers/transfers.sdk.d.ts.map +1 -0
- package/dist/transfers/transfers.sdk.js +200 -0
- package/dist/transfers/transfers.sdk.js.map +1 -0
- package/dist/tsg-sdk.d.ts +68 -0
- package/dist/tsg-sdk.d.ts.map +1 -0
- package/dist/tsg-sdk.js +145 -0
- package/dist/tsg-sdk.js.map +1 -0
- package/dist/utils/errors.d.ts +67 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +79 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/polling.d.ts +20 -0
- package/dist/utils/polling.d.ts.map +1 -0
- package/dist/utils/polling.js +35 -0
- package/dist/utils/polling.js.map +1 -0
- package/dist/utils/reason.d.ts +16 -0
- package/dist/utils/reason.d.ts.map +1 -0
- package/dist/utils/reason.js +34 -0
- package/dist/utils/reason.js.map +1 -0
- package/dist/utils/shape-validation.d.ts +59 -0
- package/dist/utils/shape-validation.d.ts.map +1 -0
- package/dist/utils/shape-validation.js +85 -0
- package/dist/utils/shape-validation.js.map +1 -0
- package/dist/utils/validate.d.ts +47 -0
- package/dist/utils/validate.d.ts.map +1 -0
- package/dist/utils/validate.js +68 -0
- package/dist/utils/validate.js.map +1 -0
- package/dist/vendor/common-dtos/abac.policy.d.ts +69 -0
- package/dist/vendor/common-dtos/abac.policy.js +5 -0
- package/dist/vendor/common-dtos/audit.types.d.ts +74 -0
- package/dist/vendor/common-dtos/audit.types.js +8 -0
- package/dist/vendor/common-dtos/credential-requirements.d.ts +18 -0
- package/dist/vendor/common-dtos/credential-requirements.dto.d.ts +46 -0
- package/dist/vendor/common-dtos/credential-requirements.dto.js +250 -0
- package/dist/vendor/common-dtos/credential-requirements.js +180 -0
- package/dist/vendor/common-dtos/dataplane.dto.d.ts +5 -0
- package/dist/vendor/common-dtos/dataplane.dto.js +28 -0
- package/dist/vendor/common-dtos/dcp.dto.d.ts +89 -0
- package/dist/vendor/common-dtos/dcp.dto.js +489 -0
- package/dist/vendor/common-dtos/dcql.dto.d.ts +88 -0
- package/dist/vendor/common-dtos/dcql.dto.js +449 -0
- package/dist/vendor/common-dtos/did.schemas.d.ts +39 -0
- package/dist/vendor/common-dtos/did.schemas.js +259 -0
- package/dist/vendor/common-dtos/index.d.ts +19 -0
- package/dist/vendor/common-dtos/index.js +19 -0
- package/dist/vendor/common-dtos/metadata.dto.d.ts +5 -0
- package/dist/vendor/common-dtos/metadata.dto.js +29 -0
- package/dist/vendor/common-dtos/negotiations.dto.d.ts +28 -0
- package/dist/vendor/common-dtos/negotiations.dto.js +204 -0
- package/dist/vendor/common-dtos/permission-resources.d.ts +3 -0
- package/dist/vendor/common-dtos/permission-resources.js +18 -0
- package/dist/vendor/common-dtos/permissions.d.ts +242 -0
- package/dist/vendor/common-dtos/permissions.js +409 -0
- package/dist/vendor/common-dtos/presentation.request.dto.d.ts +8 -0
- package/dist/vendor/common-dtos/presentation.request.dto.js +54 -0
- package/dist/vendor/common-dtos/presentation.status.dto.d.ts +12 -0
- package/dist/vendor/common-dtos/presentation.status.dto.js +82 -0
- package/dist/vendor/common-dtos/presentationdefinition.dto.d.ts +74 -0
- package/dist/vendor/common-dtos/presentationdefinition.dto.js +447 -0
- package/dist/vendor/common-dtos/signatures.dto.d.ts +31 -0
- package/dist/vendor/common-dtos/signatures.dto.js +209 -0
- package/dist/vendor/common-dtos/transfer.dto.d.ts +16 -0
- package/dist/vendor/common-dtos/transfer.dto.js +101 -0
- package/dist/vendor/common-dtos/utils.swagger.d.ts +12 -0
- package/dist/vendor/common-dtos/utils.swagger.js +62 -0
- package/dist/vendor/control-plane-dtos/index.d.ts +4 -0
- package/dist/vendor/control-plane-dtos/index.js +4 -0
- package/dist/vendor/control-plane-dtos/registry/registry.dto.d.ts +4 -0
- package/dist/vendor/control-plane-dtos/registry/registry.dto.js +25 -0
- package/dist/vendor/control-plane-dtos/registry/registry.search.dto.d.ts +28 -0
- package/dist/vendor/control-plane-dtos/registry/registry.search.dto.js +126 -0
- package/dist/vendor/control-plane-dtos/ssi/verifiablePresentations.dto.d.ts +9 -0
- package/dist/vendor/control-plane-dtos/ssi/verifiablePresentations.dto.js +43 -0
- package/dist/vendor/control-plane-dtos/status/status.dto.d.ts +37 -0
- package/dist/vendor/control-plane-dtos/status/status.dto.js +172 -0
- package/dist/vendor/sso-bridge-dtos/clients.dto.d.ts +25 -0
- package/dist/vendor/sso-bridge-dtos/clients.dto.js +147 -0
- package/dist/vendor/sso-bridge-dtos/grants.d.ts +4 -0
- package/dist/vendor/sso-bridge-dtos/grants.js +7 -0
- package/dist/vendor/sso-bridge-dtos/index.d.ts +5 -0
- package/dist/vendor/sso-bridge-dtos/index.js +5 -0
- package/dist/vendor/sso-bridge-dtos/tenant.dto.d.ts +70 -0
- package/dist/vendor/sso-bridge-dtos/tenant.dto.js +1 -0
- package/dist/vendor/sso-bridge-dtos/users.dto.d.ts +42 -0
- package/dist/vendor/sso-bridge-dtos/users.dto.js +173 -0
- package/dist/vendor/tenant-dtos/authorization.dto.d.ts +46 -0
- package/dist/vendor/tenant-dtos/authorization.dto.js +5 -0
- package/dist/vendor/tenant-dtos/consumer.dto.d.ts +29 -0
- package/dist/vendor/tenant-dtos/consumer.dto.js +1 -0
- package/dist/vendor/tenant-dtos/fixtures.d.ts +15 -0
- package/dist/vendor/tenant-dtos/fixtures.js +48 -0
- package/dist/vendor/tenant-dtos/index.d.ts +8 -0
- package/dist/vendor/tenant-dtos/index.js +8 -0
- package/dist/vendor/tenant-dtos/management.dto.d.ts +137 -0
- package/dist/vendor/tenant-dtos/management.dto.js +1 -0
- package/dist/vendor/tenant-dtos/membership.dto.d.ts +22 -0
- package/dist/vendor/tenant-dtos/membership.dto.js +7 -0
- package/dist/vendor/tenant-dtos/principal.dto.d.ts +13 -0
- package/dist/vendor/tenant-dtos/principal.dto.js +6 -0
- package/dist/vendor/tenant-dtos/provisioning.dto.d.ts +47 -0
- package/dist/vendor/tenant-dtos/provisioning.dto.js +1 -0
- package/dist/vendor/tenant-dtos/service-binding.dto.d.ts +9 -0
- package/dist/vendor/tenant-dtos/service-binding.dto.js +1 -0
- package/dist/vendor/tenant-dtos/tenant.dto.d.ts +15 -0
- package/dist/vendor/tenant-dtos/tenant.dto.js +1 -0
- package/dist/vendor/wallet-dtos/clients.dto.d.ts +21 -0
- package/dist/vendor/wallet-dtos/clients.dto.js +13 -0
- package/dist/vendor/wallet-dtos/credentials.dto.d.ts +31 -0
- package/dist/vendor/wallet-dtos/credentials.dto.js +46 -0
- package/dist/vendor/wallet-dtos/index.d.ts +6 -0
- package/dist/vendor/wallet-dtos/index.js +6 -0
- package/dist/vendor/wallet-dtos/issuance.dto.d.ts +237 -0
- package/dist/vendor/wallet-dtos/issuance.dto.js +1139 -0
- package/dist/vendor/wallet-dtos/scopes.dto.d.ts +24 -0
- package/dist/vendor/wallet-dtos/scopes.dto.js +151 -0
- package/dist/vendor/wallet-dtos/status.dto.d.ts +35 -0
- package/dist/vendor/wallet-dtos/status.dto.js +169 -0
- package/dist/vendor/wallet-dtos/utils/schema-converter.d.ts +13 -0
- package/dist/vendor/wallet-dtos/utils/schema-converter.js +42 -0
- package/dist/wallet/index.d.ts +2 -0
- package/dist/wallet/index.d.ts.map +1 -0
- package/dist/wallet/index.js +2 -0
- package/dist/wallet/index.js.map +1 -0
- package/dist/wallet/wallet.sdk.d.ts +285 -0
- package/dist/wallet/wallet.sdk.d.ts.map +1 -0
- package/dist/wallet/wallet.sdk.js +384 -0
- package/dist/wallet/wallet.sdk.js.map +1 -0
- package/package.json +79 -3
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { JWK } from "jose";
|
|
2
|
+
export declare class KeyInfo {
|
|
3
|
+
id: string;
|
|
4
|
+
type: "EdDSA" | "ES384" | "X509";
|
|
5
|
+
default: boolean;
|
|
6
|
+
publicKey: JWK;
|
|
7
|
+
createdDate: Date;
|
|
8
|
+
modifiedDate: Date;
|
|
9
|
+
}
|
|
10
|
+
export interface TrustAnchorConfig {
|
|
11
|
+
id: string;
|
|
12
|
+
credentialTypes: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface IssueConfiguration {
|
|
15
|
+
id?: string;
|
|
16
|
+
credentialType: string;
|
|
17
|
+
proofType: "jwt" | "ldp";
|
|
18
|
+
documentUrl?: string;
|
|
19
|
+
document: Record<string, any>;
|
|
20
|
+
schema?: Record<string, any>;
|
|
21
|
+
evidence?: Record<string, unknown>;
|
|
22
|
+
name?: string;
|
|
23
|
+
description?: string;
|
|
24
|
+
backgroundColor?: string;
|
|
25
|
+
backgroundImage?: string;
|
|
26
|
+
textColor?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CredentialConfig {
|
|
29
|
+
trustAnchors: TrustAnchorConfig[];
|
|
30
|
+
issueConfigurations: IssueConfiguration[];
|
|
31
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Type } from "class-transformer";
|
|
11
|
+
import { IsBoolean, IsDate, IsIn, IsObject, IsString } from "class-validator";
|
|
12
|
+
export class KeyInfo {
|
|
13
|
+
id;
|
|
14
|
+
type;
|
|
15
|
+
default;
|
|
16
|
+
publicKey;
|
|
17
|
+
createdDate;
|
|
18
|
+
modifiedDate;
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
IsString(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], KeyInfo.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsString(),
|
|
26
|
+
IsIn(["EdDSA", "ES384", "X509"]),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], KeyInfo.prototype, "type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
IsBoolean(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], KeyInfo.prototype, "default", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
IsObject(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], KeyInfo.prototype, "publicKey", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
IsDate(),
|
|
39
|
+
Type(() => Date),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], KeyInfo.prototype, "createdDate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
IsDate(),
|
|
44
|
+
Type(() => Date),
|
|
45
|
+
__metadata("design:type", Date)
|
|
46
|
+
], KeyInfo.prototype, "modifiedDate", void 0);
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { CredentialSubject, VerifiableCredential } from "@tsg-dsp/common-dsp";
|
|
2
|
+
export declare enum CredentialFormat {
|
|
3
|
+
JWT_VC_JSON = "jwt_vc_json",
|
|
4
|
+
JWT_VC_JSON_LD = "jwt_vc_json-ld",
|
|
5
|
+
LDP_VC = "ldp_vc",
|
|
6
|
+
ISO_MSO_MDOC = "iso_mso_mdoc"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ProofType {
|
|
9
|
+
JWT = "jwt",
|
|
10
|
+
DI_VP = "di_vp",
|
|
11
|
+
ATTESTATION = "attestation"
|
|
12
|
+
}
|
|
13
|
+
export declare class DCPCredentialRequestInitiation {
|
|
14
|
+
issuerId: string;
|
|
15
|
+
preAuthorizedCode?: string;
|
|
16
|
+
credentialType: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare class AuthorizedRequestParams {
|
|
19
|
+
accessToken: string;
|
|
20
|
+
credentialIdentifier: string;
|
|
21
|
+
additionalRequestParams?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
export declare class OID4VCICredentialRequestInitiation {
|
|
24
|
+
issuerUrl: string;
|
|
25
|
+
preAuthorizedCode?: string;
|
|
26
|
+
authorized?: AuthorizedRequestParams;
|
|
27
|
+
}
|
|
28
|
+
export declare class CredentialOfferRequest {
|
|
29
|
+
holderId?: string;
|
|
30
|
+
credentialType: string;
|
|
31
|
+
credentialSubject: CredentialSubject;
|
|
32
|
+
preAuthorizedCode?: string;
|
|
33
|
+
}
|
|
34
|
+
export declare enum OfferGrants {
|
|
35
|
+
AUTHORIZATION_CODE = "authorization_code",
|
|
36
|
+
PRE_AUTHORIZED_CODE = "urn:ietf:params:oauth:grant-type:pre-authorized_code"
|
|
37
|
+
}
|
|
38
|
+
export declare class AuthorizationCode {
|
|
39
|
+
issuer_state?: string;
|
|
40
|
+
authorization_server?: string;
|
|
41
|
+
}
|
|
42
|
+
export declare class TransactionCode {
|
|
43
|
+
input_mode?: "numeric" | "text";
|
|
44
|
+
length?: number;
|
|
45
|
+
description?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class PreAuthorizedCodeGrant {
|
|
48
|
+
"pre-authorized_code": string;
|
|
49
|
+
tx_code?: TransactionCode;
|
|
50
|
+
interval?: number;
|
|
51
|
+
authorization_server?: string;
|
|
52
|
+
}
|
|
53
|
+
export declare class CredentialOfferGrants {
|
|
54
|
+
[OfferGrants.PRE_AUTHORIZED_CODE]?: PreAuthorizedCodeGrant;
|
|
55
|
+
[OfferGrants.AUTHORIZATION_CODE]?: AuthorizationCode;
|
|
56
|
+
}
|
|
57
|
+
export declare class CredentialOffer {
|
|
58
|
+
credential_issuer: string;
|
|
59
|
+
credential_configuration_ids: string[];
|
|
60
|
+
grants?: CredentialOfferGrants;
|
|
61
|
+
}
|
|
62
|
+
export declare class CredentialOfferStatus {
|
|
63
|
+
id: string;
|
|
64
|
+
createdDate: Date;
|
|
65
|
+
preAuthorizedCode: string;
|
|
66
|
+
holderId?: string;
|
|
67
|
+
credentialType: string;
|
|
68
|
+
credentialId?: string;
|
|
69
|
+
revoked: boolean;
|
|
70
|
+
credentialSubject: CredentialSubject;
|
|
71
|
+
remoteId?: string;
|
|
72
|
+
constructor(value: Partial<CredentialOfferStatus>);
|
|
73
|
+
}
|
|
74
|
+
export declare class AccessToken {
|
|
75
|
+
access_token: string;
|
|
76
|
+
token_type?: string;
|
|
77
|
+
expires_in?: number;
|
|
78
|
+
refresh_token?: string;
|
|
79
|
+
authorization_details: AuthorizationDetail[];
|
|
80
|
+
}
|
|
81
|
+
export declare class AuthorizationDetail {
|
|
82
|
+
type: "openid_credential";
|
|
83
|
+
credential_configuration_id: string;
|
|
84
|
+
credential_identifiers: string[];
|
|
85
|
+
}
|
|
86
|
+
export declare class JwtProof {
|
|
87
|
+
proof_type: ProofType.JWT;
|
|
88
|
+
jwt: string;
|
|
89
|
+
}
|
|
90
|
+
export declare class DataIntegrityProof {
|
|
91
|
+
id?: string;
|
|
92
|
+
type: "DataIntegrityProof";
|
|
93
|
+
cryptosuite: string;
|
|
94
|
+
proofPurpose: "authentication";
|
|
95
|
+
verificationMethod: string;
|
|
96
|
+
created?: string;
|
|
97
|
+
expires?: string;
|
|
98
|
+
domain?: string;
|
|
99
|
+
challenge?: string;
|
|
100
|
+
proofValue: string;
|
|
101
|
+
}
|
|
102
|
+
export declare class VpProof {
|
|
103
|
+
"@context": string[];
|
|
104
|
+
type: string[];
|
|
105
|
+
holder: string;
|
|
106
|
+
proof: DataIntegrityProof;
|
|
107
|
+
}
|
|
108
|
+
export declare class DiVpProof {
|
|
109
|
+
proof_type: ProofType.DI_VP;
|
|
110
|
+
di_vp: VpProof;
|
|
111
|
+
}
|
|
112
|
+
export declare class AttestationProof {
|
|
113
|
+
proof_type: ProofType.ATTESTATION;
|
|
114
|
+
attestation: string;
|
|
115
|
+
}
|
|
116
|
+
export declare class BaseDisplay {
|
|
117
|
+
name?: string;
|
|
118
|
+
locale?: string;
|
|
119
|
+
}
|
|
120
|
+
export declare class Image {
|
|
121
|
+
uri: string;
|
|
122
|
+
}
|
|
123
|
+
export declare class Logo extends Image {
|
|
124
|
+
alt_text?: string;
|
|
125
|
+
}
|
|
126
|
+
export declare class LogoDisplay extends BaseDisplay {
|
|
127
|
+
logo?: Logo;
|
|
128
|
+
}
|
|
129
|
+
export declare class ExtendedDisplay extends LogoDisplay {
|
|
130
|
+
name: string;
|
|
131
|
+
description?: string;
|
|
132
|
+
background_color?: string;
|
|
133
|
+
background_image?: Image;
|
|
134
|
+
text_color?: string;
|
|
135
|
+
}
|
|
136
|
+
export declare class ClaimDescription {
|
|
137
|
+
path: (string | null)[];
|
|
138
|
+
mandatory?: boolean;
|
|
139
|
+
display?: BaseDisplay[];
|
|
140
|
+
}
|
|
141
|
+
export declare class CredentialMetadata {
|
|
142
|
+
display?: ExtendedDisplay[];
|
|
143
|
+
claims?: ClaimDescription[];
|
|
144
|
+
}
|
|
145
|
+
export declare class CredentialDefinition {
|
|
146
|
+
"@context"?: string[];
|
|
147
|
+
type: string[];
|
|
148
|
+
}
|
|
149
|
+
export declare class CredentialRequest {
|
|
150
|
+
credential_identifier?: string;
|
|
151
|
+
credential_configuration_id?: string;
|
|
152
|
+
proofs?: (JwtProof | DiVpProof | AttestationProof)[];
|
|
153
|
+
credential_response_encryption?: {
|
|
154
|
+
jwk: Record<string, unknown>;
|
|
155
|
+
enc: string;
|
|
156
|
+
zip?: string;
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
export type CredentialResponse = ImmediateCredentialResponse | DeferredCredentialResponse;
|
|
160
|
+
export declare class CredentialItem {
|
|
161
|
+
credential: string | VerifiableCredential;
|
|
162
|
+
}
|
|
163
|
+
export declare class ImmediateCredentialResponse {
|
|
164
|
+
credentials: CredentialItem[];
|
|
165
|
+
notification_id?: string;
|
|
166
|
+
}
|
|
167
|
+
export declare class DeferredCredentialResponse {
|
|
168
|
+
transaction_id: string;
|
|
169
|
+
interval: number;
|
|
170
|
+
}
|
|
171
|
+
export declare class CredentialResponseEncryption {
|
|
172
|
+
alg_values_supported: string[];
|
|
173
|
+
enc_values_supported: string[];
|
|
174
|
+
encryption_required: boolean;
|
|
175
|
+
}
|
|
176
|
+
export declare class CredentialRequestEncryption {
|
|
177
|
+
jwks: Record<string, unknown>;
|
|
178
|
+
enc_values_supported: string[];
|
|
179
|
+
zip_values_supported?: string[];
|
|
180
|
+
encryption_required: boolean;
|
|
181
|
+
}
|
|
182
|
+
export declare class BatchCredentialIssuance {
|
|
183
|
+
batch_size: number;
|
|
184
|
+
}
|
|
185
|
+
export declare class CredentialConfiguration {
|
|
186
|
+
format: CredentialFormat;
|
|
187
|
+
"@context"?: string[];
|
|
188
|
+
scope?: string;
|
|
189
|
+
cryptographic_binding_methods_supported?: string[];
|
|
190
|
+
credential_signing_alg_values_supported?: string[];
|
|
191
|
+
proof_types_supported?: {
|
|
192
|
+
[id: string]: {
|
|
193
|
+
proof_signing_alg_values_supported: string[];
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
credential_definition: CredentialDefinition;
|
|
197
|
+
credential_metadata?: CredentialMetadata;
|
|
198
|
+
}
|
|
199
|
+
export declare class CredentialIssuerMetadata {
|
|
200
|
+
credential_issuer: string;
|
|
201
|
+
authorization_servers?: string[];
|
|
202
|
+
token_endpoint?: string;
|
|
203
|
+
credential_endpoint: string;
|
|
204
|
+
nonce_endpoint?: string;
|
|
205
|
+
deferred_credential_endpoint?: string;
|
|
206
|
+
notification_endpoint?: string;
|
|
207
|
+
credential_request_encryption?: CredentialRequestEncryption;
|
|
208
|
+
credential_response_encryption?: CredentialResponseEncryption;
|
|
209
|
+
batch_credential_issuance?: BatchCredentialIssuance;
|
|
210
|
+
display?: LogoDisplay[];
|
|
211
|
+
credential_configurations_supported: {
|
|
212
|
+
[id: string]: CredentialConfiguration;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
export declare class DeferredCredentialRequest {
|
|
216
|
+
transaction_id: string;
|
|
217
|
+
credential_response_encryption?: {
|
|
218
|
+
jwk: Record<string, unknown>;
|
|
219
|
+
enc: string;
|
|
220
|
+
zip?: string;
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
export declare class NotificationRequest {
|
|
224
|
+
notification_id: string;
|
|
225
|
+
event: "credential_accepted" | "credential_failure" | "credential_deleted";
|
|
226
|
+
event_description?: string;
|
|
227
|
+
}
|
|
228
|
+
export declare class NotificationResponse {
|
|
229
|
+
message?: string;
|
|
230
|
+
}
|
|
231
|
+
export declare class CredentialErrorResponse {
|
|
232
|
+
error: string;
|
|
233
|
+
error_description?: string;
|
|
234
|
+
}
|
|
235
|
+
export declare class NonceResponse {
|
|
236
|
+
c_nonce: string;
|
|
237
|
+
}
|