@tsg-dsp/tsg-sdk 0.0.0-stage → 0.20.1

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 (190) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +273 -2
  3. package/dist/.generated/control-plane.d.ts +7882 -0
  4. package/dist/.generated/sso-bridge.d.ts +3062 -0
  5. package/dist/.generated/wallet.d.ts +6350 -0
  6. package/dist/auth/auth.provider.d.ts +45 -0
  7. package/dist/auth/auth.provider.d.ts.map +1 -0
  8. package/dist/auth/auth.provider.js +158 -0
  9. package/dist/auth/auth.provider.js.map +1 -0
  10. package/dist/auth/auth.types.d.ts +27 -0
  11. package/dist/auth/auth.types.d.ts.map +1 -0
  12. package/dist/auth/auth.types.js +2 -0
  13. package/dist/auth/auth.types.js.map +1 -0
  14. package/dist/auth/index.d.ts +3 -0
  15. package/dist/auth/index.d.ts.map +1 -0
  16. package/dist/auth/index.js +3 -0
  17. package/dist/auth/index.js.map +1 -0
  18. package/dist/browser.d.ts +1243 -0
  19. package/dist/browser.d.ts.map +1 -0
  20. package/dist/browser.js +215 -0
  21. package/dist/browser.js.map +1 -0
  22. package/dist/catalog/catalog.sdk.d.ts +149 -0
  23. package/dist/catalog/catalog.sdk.d.ts.map +1 -0
  24. package/dist/catalog/catalog.sdk.js +155 -0
  25. package/dist/catalog/catalog.sdk.js.map +1 -0
  26. package/dist/catalog/index.d.ts +2 -0
  27. package/dist/catalog/index.d.ts.map +1 -0
  28. package/dist/catalog/index.js +2 -0
  29. package/dist/catalog/index.js.map +1 -0
  30. package/dist/client.d.ts +43 -0
  31. package/dist/client.d.ts.map +1 -0
  32. package/dist/client.js +107 -0
  33. package/dist/client.js.map +1 -0
  34. package/dist/config/index.d.ts +2 -0
  35. package/dist/config/index.d.ts.map +1 -0
  36. package/dist/config/index.js +2 -0
  37. package/dist/config/index.js.map +1 -0
  38. package/dist/config/sdk.config.d.ts +81 -0
  39. package/dist/config/sdk.config.d.ts.map +1 -0
  40. package/dist/config/sdk.config.js +2 -0
  41. package/dist/config/sdk.config.js.map +1 -0
  42. package/dist/index.d.ts +17 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +24 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/metadata/index.d.ts +2 -0
  47. package/dist/metadata/index.d.ts.map +1 -0
  48. package/dist/metadata/index.js +2 -0
  49. package/dist/metadata/index.js.map +1 -0
  50. package/dist/metadata/metadata.sdk.d.ts +111 -0
  51. package/dist/metadata/metadata.sdk.d.ts.map +1 -0
  52. package/dist/metadata/metadata.sdk.js +142 -0
  53. package/dist/metadata/metadata.sdk.js.map +1 -0
  54. package/dist/negotiations/index.d.ts +2 -0
  55. package/dist/negotiations/index.d.ts.map +1 -0
  56. package/dist/negotiations/index.js +2 -0
  57. package/dist/negotiations/index.js.map +1 -0
  58. package/dist/negotiations/negotiations.sdk.d.ts +113 -0
  59. package/dist/negotiations/negotiations.sdk.d.ts.map +1 -0
  60. package/dist/negotiations/negotiations.sdk.js +146 -0
  61. package/dist/negotiations/negotiations.sdk.js.map +1 -0
  62. package/dist/requirements/index.d.ts +2 -0
  63. package/dist/requirements/index.d.ts.map +1 -0
  64. package/dist/requirements/index.js +2 -0
  65. package/dist/requirements/index.js.map +1 -0
  66. package/dist/requirements/requirements.sdk.d.ts +52 -0
  67. package/dist/requirements/requirements.sdk.d.ts.map +1 -0
  68. package/dist/requirements/requirements.sdk.js +123 -0
  69. package/dist/requirements/requirements.sdk.js.map +1 -0
  70. package/dist/sso/index.d.ts +3 -0
  71. package/dist/sso/index.d.ts.map +1 -0
  72. package/dist/sso/index.js +3 -0
  73. package/dist/sso/index.js.map +1 -0
  74. package/dist/sso/sso-management.sdk.d.ts +96 -0
  75. package/dist/sso/sso-management.sdk.d.ts.map +1 -0
  76. package/dist/sso/sso-management.sdk.js +152 -0
  77. package/dist/sso/sso-management.sdk.js.map +1 -0
  78. package/dist/sso/sso.sdk.d.ts +75 -0
  79. package/dist/sso/sso.sdk.d.ts.map +1 -0
  80. package/dist/sso/sso.sdk.js +147 -0
  81. package/dist/sso/sso.sdk.js.map +1 -0
  82. package/dist/transfers/index.d.ts +2 -0
  83. package/dist/transfers/index.d.ts.map +1 -0
  84. package/dist/transfers/index.js +2 -0
  85. package/dist/transfers/index.js.map +1 -0
  86. package/dist/transfers/transfers.sdk.d.ts +155 -0
  87. package/dist/transfers/transfers.sdk.d.ts.map +1 -0
  88. package/dist/transfers/transfers.sdk.js +186 -0
  89. package/dist/transfers/transfers.sdk.js.map +1 -0
  90. package/dist/tsg-sdk.d.ts +65 -0
  91. package/dist/tsg-sdk.d.ts.map +1 -0
  92. package/dist/tsg-sdk.js +128 -0
  93. package/dist/tsg-sdk.js.map +1 -0
  94. package/dist/utils/errors.d.ts +67 -0
  95. package/dist/utils/errors.d.ts.map +1 -0
  96. package/dist/utils/errors.js +79 -0
  97. package/dist/utils/errors.js.map +1 -0
  98. package/dist/utils/index.d.ts +4 -0
  99. package/dist/utils/index.d.ts.map +1 -0
  100. package/dist/utils/index.js +4 -0
  101. package/dist/utils/index.js.map +1 -0
  102. package/dist/utils/polling.d.ts +20 -0
  103. package/dist/utils/polling.d.ts.map +1 -0
  104. package/dist/utils/polling.js +35 -0
  105. package/dist/utils/polling.js.map +1 -0
  106. package/dist/utils/shape-validation.d.ts +59 -0
  107. package/dist/utils/shape-validation.d.ts.map +1 -0
  108. package/dist/utils/shape-validation.js +85 -0
  109. package/dist/utils/shape-validation.js.map +1 -0
  110. package/dist/utils/validate.d.ts +47 -0
  111. package/dist/utils/validate.d.ts.map +1 -0
  112. package/dist/utils/validate.js +68 -0
  113. package/dist/utils/validate.js.map +1 -0
  114. package/dist/vendor/common-dtos/abac.policy.d.ts +60 -0
  115. package/dist/vendor/common-dtos/abac.policy.js +2 -0
  116. package/dist/vendor/common-dtos/audit.types.d.ts +74 -0
  117. package/dist/vendor/common-dtos/audit.types.js +9 -0
  118. package/dist/vendor/common-dtos/credential-requirements.d.ts +19 -0
  119. package/dist/vendor/common-dtos/credential-requirements.dto.d.ts +47 -0
  120. package/dist/vendor/common-dtos/credential-requirements.dto.js +251 -0
  121. package/dist/vendor/common-dtos/credential-requirements.js +181 -0
  122. package/dist/vendor/common-dtos/dataplane.dto.d.ts +6 -0
  123. package/dist/vendor/common-dtos/dataplane.dto.js +29 -0
  124. package/dist/vendor/common-dtos/dcp.dto.d.ts +90 -0
  125. package/dist/vendor/common-dtos/dcp.dto.js +490 -0
  126. package/dist/vendor/common-dtos/dcql.dto.d.ts +89 -0
  127. package/dist/vendor/common-dtos/dcql.dto.js +450 -0
  128. package/dist/vendor/common-dtos/did.schemas.d.ts +40 -0
  129. package/dist/vendor/common-dtos/did.schemas.js +260 -0
  130. package/dist/vendor/common-dtos/index.d.ts +19 -0
  131. package/dist/vendor/common-dtos/index.js +19 -0
  132. package/dist/vendor/common-dtos/metadata.dto.d.ts +6 -0
  133. package/dist/vendor/common-dtos/metadata.dto.js +30 -0
  134. package/dist/vendor/common-dtos/negotiations.dto.d.ts +29 -0
  135. package/dist/vendor/common-dtos/negotiations.dto.js +205 -0
  136. package/dist/vendor/common-dtos/permissions.d.ts +237 -0
  137. package/dist/vendor/common-dtos/permissions.js +337 -0
  138. package/dist/vendor/common-dtos/presentation.request.dto.d.ts +9 -0
  139. package/dist/vendor/common-dtos/presentation.request.dto.js +55 -0
  140. package/dist/vendor/common-dtos/presentation.status.dto.d.ts +13 -0
  141. package/dist/vendor/common-dtos/presentation.status.dto.js +83 -0
  142. package/dist/vendor/common-dtos/presentationdefinition.dto.d.ts +75 -0
  143. package/dist/vendor/common-dtos/presentationdefinition.dto.js +448 -0
  144. package/dist/vendor/common-dtos/signatures.dto.d.ts +32 -0
  145. package/dist/vendor/common-dtos/signatures.dto.js +210 -0
  146. package/dist/vendor/common-dtos/transfer.dto.d.ts +17 -0
  147. package/dist/vendor/common-dtos/transfer.dto.js +102 -0
  148. package/dist/vendor/common-dtos/utils.swagger.d.ts +13 -0
  149. package/dist/vendor/common-dtos/utils.swagger.js +63 -0
  150. package/dist/vendor/control-plane-dtos/index.d.ts +5 -0
  151. package/dist/vendor/control-plane-dtos/index.js +5 -0
  152. package/dist/vendor/control-plane-dtos/registry/registry.dto.d.ts +5 -0
  153. package/dist/vendor/control-plane-dtos/registry/registry.dto.js +26 -0
  154. package/dist/vendor/control-plane-dtos/registry/registry.search.dto.d.ts +29 -0
  155. package/dist/vendor/control-plane-dtos/registry/registry.search.dto.js +127 -0
  156. package/dist/vendor/control-plane-dtos/ssi/verifiablePresentations.dto.d.ts +10 -0
  157. package/dist/vendor/control-plane-dtos/ssi/verifiablePresentations.dto.js +44 -0
  158. package/dist/vendor/control-plane-dtos/status/status.dto.d.ts +38 -0
  159. package/dist/vendor/control-plane-dtos/status/status.dto.js +173 -0
  160. package/dist/vendor/sso-bridge-dtos/clients.dto.d.ts +22 -0
  161. package/dist/vendor/sso-bridge-dtos/clients.dto.js +113 -0
  162. package/dist/vendor/sso-bridge-dtos/grants.d.ts +3 -0
  163. package/dist/vendor/sso-bridge-dtos/grants.js +2 -0
  164. package/dist/vendor/sso-bridge-dtos/index.d.ts +5 -0
  165. package/dist/vendor/sso-bridge-dtos/index.js +5 -0
  166. package/dist/vendor/sso-bridge-dtos/users.dto.d.ts +24 -0
  167. package/dist/vendor/sso-bridge-dtos/users.dto.js +90 -0
  168. package/dist/vendor/wallet-dtos/clients.dto.d.ts +22 -0
  169. package/dist/vendor/wallet-dtos/clients.dto.js +14 -0
  170. package/dist/vendor/wallet-dtos/credentials.dto.d.ts +32 -0
  171. package/dist/vendor/wallet-dtos/credentials.dto.js +47 -0
  172. package/dist/vendor/wallet-dtos/index.d.ts +7 -0
  173. package/dist/vendor/wallet-dtos/index.js +7 -0
  174. package/dist/vendor/wallet-dtos/issuance.dto.d.ts +238 -0
  175. package/dist/vendor/wallet-dtos/issuance.dto.js +1140 -0
  176. package/dist/vendor/wallet-dtos/scopes.dto.d.ts +25 -0
  177. package/dist/vendor/wallet-dtos/scopes.dto.js +152 -0
  178. package/dist/vendor/wallet-dtos/status.dto.d.ts +36 -0
  179. package/dist/vendor/wallet-dtos/status.dto.js +170 -0
  180. package/dist/vendor/wallet-dtos/utils/schema-converter.d.ts +14 -0
  181. package/dist/vendor/wallet-dtos/utils/schema-converter.js +43 -0
  182. package/dist/wallet/index.d.ts +2 -0
  183. package/dist/wallet/index.d.ts.map +1 -0
  184. package/dist/wallet/index.js +2 -0
  185. package/dist/wallet/index.js.map +1 -0
  186. package/dist/wallet/wallet.sdk.d.ts +285 -0
  187. package/dist/wallet/wallet.sdk.d.ts.map +1 -0
  188. package/dist/wallet/wallet.sdk.js +384 -0
  189. package/dist/wallet/wallet.sdk.js.map +1 -0
  190. package/package.json +78 -3
@@ -0,0 +1,1140 @@
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
+ var _a, _b;
11
+ import { ApiExtraModels, ApiProperty, ApiPropertyOptional, getSchemaPath } from "@nestjs/swagger";
12
+ import { CredentialSubject, VerifiableCredential } from "@tsg-dsp/common-dsp";
13
+ import { Type } from "class-transformer";
14
+ import { ArrayMinSize, IsArray, IsObject, IsOptional, IsString, Matches, ValidateNested } from "class-validator";
15
+ export var CredentialFormat;
16
+ (function (CredentialFormat) {
17
+ CredentialFormat["JWT_VC_JSON"] = "jwt_vc_json";
18
+ CredentialFormat["JWT_VC_JSON_LD"] = "jwt_vc_json-ld";
19
+ CredentialFormat["LDP_VC"] = "ldp_vc";
20
+ CredentialFormat["ISO_MSO_MDOC"] = "iso_mso_mdoc";
21
+ })(CredentialFormat || (CredentialFormat = {}));
22
+ export var ProofType;
23
+ (function (ProofType) {
24
+ ProofType["JWT"] = "jwt";
25
+ ProofType["DI_VP"] = "di_vp";
26
+ ProofType["ATTESTATION"] = "attestation";
27
+ })(ProofType || (ProofType = {}));
28
+ export class DCPCredentialRequestInitiation {
29
+ issuerId;
30
+ preAuthorizedCode;
31
+ credentialType;
32
+ }
33
+ __decorate([
34
+ ApiProperty({
35
+ example: "did:web:issuer.example",
36
+ pattern: "^did:[a-z0-9]+:.*"
37
+ }),
38
+ IsString(),
39
+ Matches(/^did:[a-z0-9]+:.*/),
40
+ __metadata("design:type", String)
41
+ ], DCPCredentialRequestInitiation.prototype, "issuerId", void 0);
42
+ __decorate([
43
+ ApiPropertyOptional({ example: "pre-auth-code-xyz" }),
44
+ IsOptional(),
45
+ IsString(),
46
+ __metadata("design:type", String)
47
+ ], DCPCredentialRequestInitiation.prototype, "preAuthorizedCode", void 0);
48
+ __decorate([
49
+ ApiProperty({ example: ["ExampleCredential"] }),
50
+ IsArray(),
51
+ IsString({ each: true }),
52
+ ArrayMinSize(1),
53
+ __metadata("design:type", Array)
54
+ ], DCPCredentialRequestInitiation.prototype, "credentialType", void 0);
55
+ export class AuthorizedRequestParams {
56
+ accessToken;
57
+ credentialIdentifier;
58
+ additionalRequestParams;
59
+ }
60
+ __decorate([
61
+ ApiProperty({ example: "access-token" }),
62
+ IsString(),
63
+ __metadata("design:type", String)
64
+ ], AuthorizedRequestParams.prototype, "accessToken", void 0);
65
+ __decorate([
66
+ ApiProperty({ example: "credential-type" }),
67
+ IsString(),
68
+ __metadata("design:type", String)
69
+ ], AuthorizedRequestParams.prototype, "credentialIdentifier", void 0);
70
+ __decorate([
71
+ ApiPropertyOptional(),
72
+ IsOptional(),
73
+ IsObject(),
74
+ __metadata("design:type", Object)
75
+ ], AuthorizedRequestParams.prototype, "additionalRequestParams", void 0);
76
+ export class OID4VCICredentialRequestInitiation {
77
+ issuerUrl;
78
+ preAuthorizedCode;
79
+ authorized;
80
+ }
81
+ __decorate([
82
+ ApiProperty({ example: "https://issuer.example.com" }),
83
+ IsString(),
84
+ __metadata("design:type", String)
85
+ ], OID4VCICredentialRequestInitiation.prototype, "issuerUrl", void 0);
86
+ __decorate([
87
+ ApiPropertyOptional({ example: "pre-auth-code-xyz" }),
88
+ IsString(),
89
+ IsOptional(),
90
+ __metadata("design:type", String)
91
+ ], OID4VCICredentialRequestInitiation.prototype, "preAuthorizedCode", void 0);
92
+ __decorate([
93
+ ApiPropertyOptional({
94
+ type: () => AuthorizedRequestParams
95
+ }),
96
+ IsOptional(),
97
+ ValidateNested(),
98
+ Type(() => AuthorizedRequestParams),
99
+ __metadata("design:type", AuthorizedRequestParams)
100
+ ], OID4VCICredentialRequestInitiation.prototype, "authorized", void 0);
101
+ export class CredentialOfferRequest {
102
+ holderId;
103
+ credentialType;
104
+ credentialSubject;
105
+ preAuthorizedCode;
106
+ }
107
+ __decorate([
108
+ ApiPropertyOptional({ example: "holder-123" }),
109
+ __metadata("design:type", String)
110
+ ], CredentialOfferRequest.prototype, "holderId", void 0);
111
+ __decorate([
112
+ ApiProperty({ example: "sample-credential-type" }),
113
+ __metadata("design:type", String)
114
+ ], CredentialOfferRequest.prototype, "credentialType", void 0);
115
+ __decorate([
116
+ ApiProperty({
117
+ type: () => CredentialSubject,
118
+ example: { id: "subject-id", name: "Sample Subject" }
119
+ }),
120
+ __metadata("design:type", CredentialSubject)
121
+ ], CredentialOfferRequest.prototype, "credentialSubject", void 0);
122
+ __decorate([
123
+ ApiPropertyOptional({ example: "preauth-code-abc" }),
124
+ __metadata("design:type", String)
125
+ ], CredentialOfferRequest.prototype, "preAuthorizedCode", void 0);
126
+ export var OfferGrants;
127
+ (function (OfferGrants) {
128
+ OfferGrants["AUTHORIZATION_CODE"] = "authorization_code";
129
+ OfferGrants["PRE_AUTHORIZED_CODE"] = "urn:ietf:params:oauth:grant-type:pre-authorized_code";
130
+ })(OfferGrants || (OfferGrants = {}));
131
+ export class AuthorizationCode {
132
+ issuer_state;
133
+ authorization_server;
134
+ }
135
+ __decorate([
136
+ ApiPropertyOptional({ example: "issuer-state-example" }),
137
+ __metadata("design:type", String)
138
+ ], AuthorizationCode.prototype, "issuer_state", void 0);
139
+ __decorate([
140
+ ApiPropertyOptional({ example: "authorization-server-example" }),
141
+ __metadata("design:type", String)
142
+ ], AuthorizationCode.prototype, "authorization_server", void 0);
143
+ export class TransactionCode {
144
+ input_mode;
145
+ length;
146
+ description;
147
+ }
148
+ __decorate([
149
+ ApiPropertyOptional({ example: "text" }),
150
+ __metadata("design:type", String)
151
+ ], TransactionCode.prototype, "input_mode", void 0);
152
+ __decorate([
153
+ ApiPropertyOptional({ example: 6 }),
154
+ __metadata("design:type", Number)
155
+ ], TransactionCode.prototype, "length", void 0);
156
+ __decorate([
157
+ ApiPropertyOptional({ example: "Enter transaction code" }),
158
+ __metadata("design:type", String)
159
+ ], TransactionCode.prototype, "description", void 0);
160
+ export class PreAuthorizedCodeGrant {
161
+ "pre-authorized_code";
162
+ tx_code;
163
+ interval;
164
+ authorization_server;
165
+ }
166
+ __decorate([
167
+ ApiProperty({ example: "pre-auth-code-xyz" }),
168
+ __metadata("design:type", String)
169
+ ], PreAuthorizedCodeGrant.prototype, "pre-authorized_code", void 0);
170
+ __decorate([
171
+ ApiPropertyOptional({
172
+ type: () => TransactionCode,
173
+ example: {
174
+ input_mode: "numeric",
175
+ length: 4,
176
+ description: "Sample transaction code"
177
+ }
178
+ }),
179
+ __metadata("design:type", TransactionCode)
180
+ ], PreAuthorizedCodeGrant.prototype, "tx_code", void 0);
181
+ __decorate([
182
+ ApiPropertyOptional({ example: 30 }),
183
+ __metadata("design:type", Number)
184
+ ], PreAuthorizedCodeGrant.prototype, "interval", void 0);
185
+ __decorate([
186
+ ApiPropertyOptional({ example: "authorization-server-sample" }),
187
+ __metadata("design:type", String)
188
+ ], PreAuthorizedCodeGrant.prototype, "authorization_server", void 0);
189
+ export class CredentialOfferGrants {
190
+ [_a = OfferGrants.PRE_AUTHORIZED_CODE];
191
+ [_b = OfferGrants.AUTHORIZATION_CODE];
192
+ }
193
+ __decorate([
194
+ ApiPropertyOptional({
195
+ type: () => PreAuthorizedCodeGrant,
196
+ example: {
197
+ "pre-authorized_code": "pre-auth-code-xyz",
198
+ tx_code: {
199
+ input_mode: "numeric",
200
+ length: 4,
201
+ description: "Sample transaction code"
202
+ },
203
+ interval: 30,
204
+ authorization_server: "authorization-server-sample"
205
+ }
206
+ }),
207
+ __metadata("design:type", PreAuthorizedCodeGrant)
208
+ ], CredentialOfferGrants.prototype, _a, void 0);
209
+ __decorate([
210
+ ApiPropertyOptional({
211
+ type: () => AuthorizationCode,
212
+ example: {
213
+ issuer_state: "issuer-state-example",
214
+ authorization_server: "authorization-server-example"
215
+ }
216
+ }),
217
+ __metadata("design:type", AuthorizationCode)
218
+ ], CredentialOfferGrants.prototype, _b, void 0);
219
+ export class CredentialOffer {
220
+ credential_issuer;
221
+ credential_configuration_ids;
222
+ grants;
223
+ }
224
+ __decorate([
225
+ ApiProperty({ example: "credential-issuer-sample" }),
226
+ __metadata("design:type", String)
227
+ ], CredentialOffer.prototype, "credential_issuer", void 0);
228
+ __decorate([
229
+ ApiProperty({
230
+ type: [String],
231
+ example: ["config-id-1", "config-id-2"]
232
+ }),
233
+ __metadata("design:type", Array)
234
+ ], CredentialOffer.prototype, "credential_configuration_ids", void 0);
235
+ __decorate([
236
+ ApiPropertyOptional({
237
+ type: () => CredentialOfferGrants,
238
+ example: {
239
+ "urn:ietf:params:oauth:grant-type:pre-authorized_code": {
240
+ "pre-authorized_code": "pre-auth-code-xyz",
241
+ tx_code: {
242
+ input_mode: "numeric",
243
+ length: 4,
244
+ description: "Sample transaction code"
245
+ },
246
+ interval: 30,
247
+ authorization_server: "authorization-server-sample"
248
+ }
249
+ }
250
+ }),
251
+ __metadata("design:type", CredentialOfferGrants)
252
+ ], CredentialOffer.prototype, "grants", void 0);
253
+ export class CredentialOfferStatus {
254
+ id;
255
+ createdDate;
256
+ preAuthorizedCode;
257
+ holderId;
258
+ credentialType;
259
+ credentialId;
260
+ revoked;
261
+ credentialSubject;
262
+ remoteId;
263
+ constructor(value) {
264
+ Object.assign(this, value);
265
+ }
266
+ }
267
+ __decorate([
268
+ ApiProperty({ example: "1f05bade-80ff-4637-9743-5a5e9b1cc162" }),
269
+ __metadata("design:type", String)
270
+ ], CredentialOfferStatus.prototype, "id", void 0);
271
+ __decorate([
272
+ ApiProperty({ example: "2023-10-01T00:00:00Z" }),
273
+ __metadata("design:type", Date)
274
+ ], CredentialOfferStatus.prototype, "createdDate", void 0);
275
+ __decorate([
276
+ ApiProperty({ example: "preauth-code-abc" }),
277
+ __metadata("design:type", String)
278
+ ], CredentialOfferStatus.prototype, "preAuthorizedCode", void 0);
279
+ __decorate([
280
+ ApiPropertyOptional({ example: "holder-123" }),
281
+ __metadata("design:type", String)
282
+ ], CredentialOfferStatus.prototype, "holderId", void 0);
283
+ __decorate([
284
+ ApiProperty({ example: "sample-credential-type" }),
285
+ __metadata("design:type", String)
286
+ ], CredentialOfferStatus.prototype, "credentialType", void 0);
287
+ __decorate([
288
+ ApiPropertyOptional({ example: "credential-id-xyz" }),
289
+ __metadata("design:type", String)
290
+ ], CredentialOfferStatus.prototype, "credentialId", void 0);
291
+ __decorate([
292
+ ApiProperty({ example: false }),
293
+ __metadata("design:type", Boolean)
294
+ ], CredentialOfferStatus.prototype, "revoked", void 0);
295
+ __decorate([
296
+ ApiProperty({
297
+ type: () => CredentialSubject,
298
+ example: { id: "subject-id", name: "Sample Subject" }
299
+ }),
300
+ __metadata("design:type", CredentialSubject)
301
+ ], CredentialOfferStatus.prototype, "credentialSubject", void 0);
302
+ __decorate([
303
+ ApiPropertyOptional({ example: "remote-id-123" }),
304
+ __metadata("design:type", String)
305
+ ], CredentialOfferStatus.prototype, "remoteId", void 0);
306
+ export class AccessToken {
307
+ access_token;
308
+ token_type;
309
+ expires_in;
310
+ refresh_token;
311
+ authorization_details;
312
+ }
313
+ __decorate([
314
+ ApiProperty({ example: "access-token-sample" }),
315
+ __metadata("design:type", String)
316
+ ], AccessToken.prototype, "access_token", void 0);
317
+ __decorate([
318
+ ApiPropertyOptional({ example: "Bearer" }),
319
+ __metadata("design:type", String)
320
+ ], AccessToken.prototype, "token_type", void 0);
321
+ __decorate([
322
+ ApiPropertyOptional({ example: 3600 }),
323
+ __metadata("design:type", Number)
324
+ ], AccessToken.prototype, "expires_in", void 0);
325
+ __decorate([
326
+ ApiPropertyOptional({ example: "refresh-token-sample" }),
327
+ __metadata("design:type", String)
328
+ ], AccessToken.prototype, "refresh_token", void 0);
329
+ __decorate([
330
+ ApiProperty({
331
+ type: () => [AuthorizationDetail],
332
+ example: [
333
+ {
334
+ type: "openid_credential",
335
+ credential_configuration_id: "cred-config-123",
336
+ credential_identifiers: ["id1", "id2"]
337
+ }
338
+ ]
339
+ }),
340
+ __metadata("design:type", Array)
341
+ ], AccessToken.prototype, "authorization_details", void 0);
342
+ export class AuthorizationDetail {
343
+ type;
344
+ credential_configuration_id;
345
+ credential_identifiers;
346
+ }
347
+ __decorate([
348
+ ApiProperty({ example: "openid_credential" }),
349
+ __metadata("design:type", String)
350
+ ], AuthorizationDetail.prototype, "type", void 0);
351
+ __decorate([
352
+ ApiProperty({ example: "cred-config-123" }),
353
+ __metadata("design:type", String)
354
+ ], AuthorizationDetail.prototype, "credential_configuration_id", void 0);
355
+ __decorate([
356
+ ApiProperty({ example: ["id1", "id2"] }),
357
+ __metadata("design:type", Array)
358
+ ], AuthorizationDetail.prototype, "credential_identifiers", void 0);
359
+ export class JwtProof {
360
+ proof_type;
361
+ jwt;
362
+ }
363
+ __decorate([
364
+ ApiProperty({ enum: ProofType, example: ProofType.JWT }),
365
+ IsString(),
366
+ __metadata("design:type", String)
367
+ ], JwtProof.prototype, "proof_type", void 0);
368
+ __decorate([
369
+ ApiProperty({ example: "jwt-token-sample" }),
370
+ IsString(),
371
+ __metadata("design:type", String)
372
+ ], JwtProof.prototype, "jwt", void 0);
373
+ export class DataIntegrityProof {
374
+ id;
375
+ type;
376
+ cryptosuite;
377
+ proofPurpose;
378
+ verificationMethod;
379
+ created;
380
+ expires;
381
+ domain;
382
+ challenge;
383
+ proofValue;
384
+ }
385
+ __decorate([
386
+ ApiPropertyOptional({ example: "proof-id-sample" }),
387
+ __metadata("design:type", String)
388
+ ], DataIntegrityProof.prototype, "id", void 0);
389
+ __decorate([
390
+ ApiProperty({ example: "DataIntegrityProof" }),
391
+ __metadata("design:type", String)
392
+ ], DataIntegrityProof.prototype, "type", void 0);
393
+ __decorate([
394
+ ApiProperty({ example: "eddsa" }),
395
+ __metadata("design:type", String)
396
+ ], DataIntegrityProof.prototype, "cryptosuite", void 0);
397
+ __decorate([
398
+ ApiProperty({ example: "authentication" }),
399
+ __metadata("design:type", String)
400
+ ], DataIntegrityProof.prototype, "proofPurpose", void 0);
401
+ __decorate([
402
+ ApiProperty({ example: "verification-method-sample" }),
403
+ __metadata("design:type", String)
404
+ ], DataIntegrityProof.prototype, "verificationMethod", void 0);
405
+ __decorate([
406
+ ApiPropertyOptional({ example: "2023-10-10T00:00:00Z" }),
407
+ __metadata("design:type", String)
408
+ ], DataIntegrityProof.prototype, "created", void 0);
409
+ __decorate([
410
+ ApiPropertyOptional({ example: "2023-10-20T00:00:00Z" }),
411
+ __metadata("design:type", String)
412
+ ], DataIntegrityProof.prototype, "expires", void 0);
413
+ __decorate([
414
+ ApiPropertyOptional({ example: "example.com" }),
415
+ __metadata("design:type", String)
416
+ ], DataIntegrityProof.prototype, "domain", void 0);
417
+ __decorate([
418
+ ApiPropertyOptional({ example: "challenge-sample" }),
419
+ __metadata("design:type", String)
420
+ ], DataIntegrityProof.prototype, "challenge", void 0);
421
+ __decorate([
422
+ ApiProperty({ example: "proof-value-sample" }),
423
+ __metadata("design:type", String)
424
+ ], DataIntegrityProof.prototype, "proofValue", void 0);
425
+ export class VpProof {
426
+ "@context";
427
+ type;
428
+ holder;
429
+ proof;
430
+ }
431
+ __decorate([
432
+ ApiProperty({ example: ["https://www.w3.org/ns/credentials/v2"] }),
433
+ __metadata("design:type", Array)
434
+ ], VpProof.prototype, "@context", void 0);
435
+ __decorate([
436
+ ApiProperty({ example: ["VerifiablePresentation"] }),
437
+ __metadata("design:type", Array)
438
+ ], VpProof.prototype, "type", void 0);
439
+ __decorate([
440
+ ApiProperty({ example: "holder-sample" }),
441
+ __metadata("design:type", String)
442
+ ], VpProof.prototype, "holder", void 0);
443
+ __decorate([
444
+ ApiProperty({
445
+ type: () => DataIntegrityProof,
446
+ example: {
447
+ id: "proof-id-sample",
448
+ type: "DataIntegrityProof",
449
+ cryptosuite: "eddsa",
450
+ proofPurpose: "authentication",
451
+ verificationMethod: "verification-method-sample",
452
+ created: "2023-10-10T00:00:00Z",
453
+ expires: "2023-10-20T00:00:00Z",
454
+ domain: "example.com",
455
+ challenge: "challenge-sample",
456
+ proofValue: "proof-value-sample"
457
+ }
458
+ }),
459
+ __metadata("design:type", DataIntegrityProof)
460
+ ], VpProof.prototype, "proof", void 0);
461
+ export class DiVpProof {
462
+ proof_type;
463
+ di_vp;
464
+ }
465
+ __decorate([
466
+ ApiProperty({ enum: ProofType, example: ProofType.DI_VP }),
467
+ IsString(),
468
+ __metadata("design:type", String)
469
+ ], DiVpProof.prototype, "proof_type", void 0);
470
+ __decorate([
471
+ ApiProperty({
472
+ type: () => VpProof,
473
+ example: {
474
+ "@context": ["https://www.w3.org/ns/credentials/v2"],
475
+ type: ["VerifiablePresentation"],
476
+ holder: "holder-sample",
477
+ proof: {
478
+ id: "proof-id-sample",
479
+ type: "DataIntegrityProof",
480
+ cryptosuite: "eddsa",
481
+ proofPurpose: "authentication",
482
+ verificationMethod: "verification-method-sample",
483
+ created: "2023-10-10T00:00:00Z",
484
+ expires: "2023-10-20T00:00:00Z",
485
+ domain: "example.com",
486
+ challenge: "challenge-sample",
487
+ proofValue: "proof-value-sample"
488
+ }
489
+ }
490
+ }),
491
+ ValidateNested(),
492
+ Type(() => VpProof),
493
+ __metadata("design:type", VpProof)
494
+ ], DiVpProof.prototype, "di_vp", void 0);
495
+ export class AttestationProof {
496
+ proof_type;
497
+ attestation;
498
+ }
499
+ __decorate([
500
+ ApiProperty({ enum: ProofType, example: ProofType.ATTESTATION }),
501
+ IsString(),
502
+ __metadata("design:type", String)
503
+ ], AttestationProof.prototype, "proof_type", void 0);
504
+ __decorate([
505
+ ApiProperty({
506
+ example: "eyJ0eXAiOiJrZXktYXR0ZXN0YXRpb24rand0IiwiYWxnIjoiRVMyNTYifQ..."
507
+ }),
508
+ IsString(),
509
+ __metadata("design:type", String)
510
+ ], AttestationProof.prototype, "attestation", void 0);
511
+ export class BaseDisplay {
512
+ name;
513
+ locale;
514
+ }
515
+ __decorate([
516
+ ApiPropertyOptional({ example: "Display Name" }),
517
+ __metadata("design:type", String)
518
+ ], BaseDisplay.prototype, "name", void 0);
519
+ __decorate([
520
+ ApiPropertyOptional({ example: "en-US" }),
521
+ __metadata("design:type", String)
522
+ ], BaseDisplay.prototype, "locale", void 0);
523
+ export class Image {
524
+ uri;
525
+ }
526
+ __decorate([
527
+ ApiProperty({ example: "https://example.com/image.png" }),
528
+ __metadata("design:type", String)
529
+ ], Image.prototype, "uri", void 0);
530
+ export class Logo extends Image {
531
+ alt_text;
532
+ }
533
+ __decorate([
534
+ ApiPropertyOptional({ example: "Logo alt text" }),
535
+ __metadata("design:type", String)
536
+ ], Logo.prototype, "alt_text", void 0);
537
+ export class LogoDisplay extends BaseDisplay {
538
+ logo;
539
+ }
540
+ __decorate([
541
+ ApiPropertyOptional({
542
+ type: () => Logo,
543
+ example: { uri: "https://example.com/logo.png", alt_text: "Logo alt text" }
544
+ }),
545
+ __metadata("design:type", Logo)
546
+ ], LogoDisplay.prototype, "logo", void 0);
547
+ export class ExtendedDisplay extends LogoDisplay {
548
+ description;
549
+ background_color;
550
+ background_image;
551
+ text_color;
552
+ }
553
+ __decorate([
554
+ ApiProperty({ example: "Extended Display Name" }),
555
+ __metadata("design:type", String)
556
+ ], ExtendedDisplay.prototype, "name", void 0);
557
+ __decorate([
558
+ ApiPropertyOptional({ example: "Extended display description" }),
559
+ __metadata("design:type", String)
560
+ ], ExtendedDisplay.prototype, "description", void 0);
561
+ __decorate([
562
+ ApiPropertyOptional({ example: "#ffffff" }),
563
+ __metadata("design:type", String)
564
+ ], ExtendedDisplay.prototype, "background_color", void 0);
565
+ __decorate([
566
+ ApiPropertyOptional({
567
+ type: () => Image,
568
+ example: { uri: "https://example.com/background.png" }
569
+ }),
570
+ __metadata("design:type", Image)
571
+ ], ExtendedDisplay.prototype, "background_image", void 0);
572
+ __decorate([
573
+ ApiPropertyOptional({ example: "#000000" }),
574
+ __metadata("design:type", String)
575
+ ], ExtendedDisplay.prototype, "text_color", void 0);
576
+ export class ClaimDescription {
577
+ path;
578
+ mandatory;
579
+ display;
580
+ }
581
+ __decorate([
582
+ ApiProperty({
583
+ type: "array",
584
+ items: {
585
+ oneOf: [{ type: "string" }, { type: "null" }]
586
+ },
587
+ example: ["name", null]
588
+ }),
589
+ __metadata("design:type", Array)
590
+ ], ClaimDescription.prototype, "path", void 0);
591
+ __decorate([
592
+ ApiPropertyOptional({ example: true }),
593
+ __metadata("design:type", Boolean)
594
+ ], ClaimDescription.prototype, "mandatory", void 0);
595
+ __decorate([
596
+ ApiPropertyOptional({
597
+ type: () => [BaseDisplay],
598
+ example: [{ name: "Full Name", locale: "en-US" }]
599
+ }),
600
+ __metadata("design:type", Array)
601
+ ], ClaimDescription.prototype, "display", void 0);
602
+ export class CredentialMetadata {
603
+ display;
604
+ claims;
605
+ }
606
+ __decorate([
607
+ ApiPropertyOptional({
608
+ type: () => [ExtendedDisplay],
609
+ example: [
610
+ {
611
+ name: "University Degree",
612
+ locale: "en-US",
613
+ description: "A verified university degree credential",
614
+ background_color: "#ffffff",
615
+ text_color: "#000000",
616
+ logo: {
617
+ uri: "https://example.com/logo.png",
618
+ alt_text: "Logo alt text"
619
+ }
620
+ }
621
+ ]
622
+ }),
623
+ __metadata("design:type", Array)
624
+ ], CredentialMetadata.prototype, "display", void 0);
625
+ __decorate([
626
+ ApiPropertyOptional({
627
+ type: () => [ClaimDescription],
628
+ example: [
629
+ {
630
+ path: ["name"],
631
+ mandatory: true,
632
+ display: [{ name: "Full Name", locale: "en-US" }]
633
+ },
634
+ {
635
+ path: ["degree"],
636
+ mandatory: true,
637
+ display: [{ name: "Degree", locale: "en-US" }]
638
+ },
639
+ {
640
+ path: ["id"],
641
+ mandatory: false,
642
+ display: [{ name: "Student ID", locale: "en-US" }]
643
+ }
644
+ ]
645
+ }),
646
+ __metadata("design:type", Array)
647
+ ], CredentialMetadata.prototype, "claims", void 0);
648
+ export class CredentialDefinition {
649
+ "@context";
650
+ type;
651
+ }
652
+ __decorate([
653
+ ApiPropertyOptional({
654
+ type: [String],
655
+ example: ["https://www.w3.org/ns/credentials/v2"]
656
+ }),
657
+ __metadata("design:type", Array)
658
+ ], CredentialDefinition.prototype, "@context", void 0);
659
+ __decorate([
660
+ ApiProperty({
661
+ type: [String],
662
+ example: ["VerifiableCredential", "UniversityDegree"]
663
+ }),
664
+ __metadata("design:type", Array)
665
+ ], CredentialDefinition.prototype, "type", void 0);
666
+ let CredentialRequest = class CredentialRequest {
667
+ credential_identifier;
668
+ credential_configuration_id;
669
+ proofs;
670
+ credential_response_encryption;
671
+ };
672
+ __decorate([
673
+ ApiPropertyOptional({ example: "credential-identifier-123" }),
674
+ IsOptional(),
675
+ IsString(),
676
+ __metadata("design:type", String)
677
+ ], CredentialRequest.prototype, "credential_identifier", void 0);
678
+ __decorate([
679
+ ApiPropertyOptional({ example: "credential-config-id-123" }),
680
+ IsOptional(),
681
+ IsString(),
682
+ __metadata("design:type", String)
683
+ ], CredentialRequest.prototype, "credential_configuration_id", void 0);
684
+ __decorate([
685
+ ApiPropertyOptional({
686
+ type: "array",
687
+ items: {
688
+ oneOf: [
689
+ { $ref: getSchemaPath(JwtProof) },
690
+ { $ref: getSchemaPath(DiVpProof) },
691
+ { $ref: getSchemaPath(AttestationProof) }
692
+ ]
693
+ },
694
+ example: [{ proof_type: "jwt", jwt: "jwt-token-sample" }]
695
+ }),
696
+ IsOptional(),
697
+ IsArray(),
698
+ ValidateNested({ each: true }),
699
+ Type(() => Object),
700
+ __metadata("design:type", Array)
701
+ ], CredentialRequest.prototype, "proofs", void 0);
702
+ __decorate([
703
+ ApiPropertyOptional({
704
+ type: "object",
705
+ properties: {
706
+ jwk: { type: "object", additionalProperties: true },
707
+ enc: { type: "string" },
708
+ zip: { type: "string" }
709
+ },
710
+ example: {
711
+ jwk: { kty: "EC", crv: "P-256" },
712
+ enc: "A256GCM"
713
+ }
714
+ }),
715
+ __metadata("design:type", Object)
716
+ ], CredentialRequest.prototype, "credential_response_encryption", void 0);
717
+ CredentialRequest = __decorate([
718
+ ApiExtraModels(JwtProof, DiVpProof, AttestationProof)
719
+ ], CredentialRequest);
720
+ export { CredentialRequest };
721
+ let CredentialItem = class CredentialItem {
722
+ credential;
723
+ };
724
+ __decorate([
725
+ ApiProperty({
726
+ example: "credential-token-sample",
727
+ oneOf: [{ type: "string" }, { $ref: getSchemaPath(VerifiableCredential) }]
728
+ }),
729
+ __metadata("design:type", Object)
730
+ ], CredentialItem.prototype, "credential", void 0);
731
+ CredentialItem = __decorate([
732
+ ApiExtraModels(VerifiableCredential)
733
+ ], CredentialItem);
734
+ export { CredentialItem };
735
+ export class ImmediateCredentialResponse {
736
+ credentials;
737
+ notification_id;
738
+ }
739
+ __decorate([
740
+ ApiProperty({
741
+ type: () => [CredentialItem],
742
+ example: [{ credential: "credential-token-sample" }]
743
+ }),
744
+ __metadata("design:type", Array)
745
+ ], ImmediateCredentialResponse.prototype, "credentials", void 0);
746
+ __decorate([
747
+ ApiPropertyOptional({ example: "notification-id-123" }),
748
+ __metadata("design:type", String)
749
+ ], ImmediateCredentialResponse.prototype, "notification_id", void 0);
750
+ export class DeferredCredentialResponse {
751
+ transaction_id;
752
+ interval;
753
+ }
754
+ __decorate([
755
+ ApiProperty({ example: "tx-id-sample" }),
756
+ __metadata("design:type", String)
757
+ ], DeferredCredentialResponse.prototype, "transaction_id", void 0);
758
+ __decorate([
759
+ ApiProperty({ example: 3600 }),
760
+ __metadata("design:type", Number)
761
+ ], DeferredCredentialResponse.prototype, "interval", void 0);
762
+ export class CredentialResponseEncryption {
763
+ alg_values_supported;
764
+ enc_values_supported;
765
+ encryption_required;
766
+ }
767
+ __decorate([
768
+ ApiProperty({
769
+ type: [String],
770
+ example: ["RSA-OAEP"]
771
+ }),
772
+ __metadata("design:type", Array)
773
+ ], CredentialResponseEncryption.prototype, "alg_values_supported", void 0);
774
+ __decorate([
775
+ ApiProperty({
776
+ type: [String],
777
+ example: ["A256GCM"]
778
+ }),
779
+ __metadata("design:type", Array)
780
+ ], CredentialResponseEncryption.prototype, "enc_values_supported", void 0);
781
+ __decorate([
782
+ ApiProperty({ example: true }),
783
+ __metadata("design:type", Boolean)
784
+ ], CredentialResponseEncryption.prototype, "encryption_required", void 0);
785
+ export class CredentialRequestEncryption {
786
+ jwks;
787
+ enc_values_supported;
788
+ zip_values_supported;
789
+ encryption_required;
790
+ }
791
+ __decorate([
792
+ ApiProperty({
793
+ type: "object",
794
+ additionalProperties: true,
795
+ example: { kty: "EC", crv: "P-256" }
796
+ }),
797
+ __metadata("design:type", Object)
798
+ ], CredentialRequestEncryption.prototype, "jwks", void 0);
799
+ __decorate([
800
+ ApiProperty({
801
+ type: [String],
802
+ example: ["A256GCM"]
803
+ }),
804
+ __metadata("design:type", Array)
805
+ ], CredentialRequestEncryption.prototype, "enc_values_supported", void 0);
806
+ __decorate([
807
+ ApiPropertyOptional({
808
+ type: [String],
809
+ example: ["gzip"]
810
+ }),
811
+ __metadata("design:type", Array)
812
+ ], CredentialRequestEncryption.prototype, "zip_values_supported", void 0);
813
+ __decorate([
814
+ ApiProperty({ example: false }),
815
+ __metadata("design:type", Boolean)
816
+ ], CredentialRequestEncryption.prototype, "encryption_required", void 0);
817
+ export class BatchCredentialIssuance {
818
+ batch_size;
819
+ }
820
+ __decorate([
821
+ ApiProperty({ example: 10 }),
822
+ __metadata("design:type", Number)
823
+ ], BatchCredentialIssuance.prototype, "batch_size", void 0);
824
+ export class CredentialConfiguration {
825
+ format;
826
+ "@context";
827
+ scope;
828
+ cryptographic_binding_methods_supported;
829
+ credential_signing_alg_values_supported;
830
+ proof_types_supported;
831
+ credential_definition;
832
+ credential_metadata;
833
+ }
834
+ __decorate([
835
+ ApiProperty({
836
+ enum: CredentialFormat,
837
+ example: CredentialFormat.JWT_VC_JSON
838
+ }),
839
+ __metadata("design:type", String)
840
+ ], CredentialConfiguration.prototype, "format", void 0);
841
+ __decorate([
842
+ ApiProperty({
843
+ type: [String],
844
+ example: ["https://www.w3.org/ns/credentials/v2"]
845
+ }),
846
+ __metadata("design:type", Array)
847
+ ], CredentialConfiguration.prototype, "@context", void 0);
848
+ __decorate([
849
+ ApiPropertyOptional({ example: "openid" }),
850
+ __metadata("design:type", String)
851
+ ], CredentialConfiguration.prototype, "scope", void 0);
852
+ __decorate([
853
+ ApiPropertyOptional({
854
+ type: [String],
855
+ example: ["method1", "method2"]
856
+ }),
857
+ __metadata("design:type", Array)
858
+ ], CredentialConfiguration.prototype, "cryptographic_binding_methods_supported", void 0);
859
+ __decorate([
860
+ ApiPropertyOptional({
861
+ type: [String],
862
+ example: ["RS256", "ES256"]
863
+ }),
864
+ __metadata("design:type", Array)
865
+ ], CredentialConfiguration.prototype, "credential_signing_alg_values_supported", void 0);
866
+ __decorate([
867
+ ApiPropertyOptional({
868
+ type: "object",
869
+ additionalProperties: {
870
+ type: "object",
871
+ properties: {
872
+ proof_signing_alg_values_supported: {
873
+ type: "array",
874
+ items: { type: "string" }
875
+ }
876
+ }
877
+ },
878
+ example: {
879
+ jwt: { proof_signing_alg_values_supported: ["RS256", "ES256"] },
880
+ di_vp: { proof_signing_alg_values_supported: ["EdDSA"] },
881
+ attestation: { proof_signing_alg_values_supported: ["ES256"] }
882
+ }
883
+ }),
884
+ __metadata("design:type", Object)
885
+ ], CredentialConfiguration.prototype, "proof_types_supported", void 0);
886
+ __decorate([
887
+ ApiProperty({
888
+ type: () => CredentialDefinition,
889
+ example: {
890
+ "@context": ["https://www.w3.org/ns/credentials/v2"],
891
+ type: ["VerifiableCredential", "UniversityDegree"]
892
+ }
893
+ }),
894
+ __metadata("design:type", CredentialDefinition)
895
+ ], CredentialConfiguration.prototype, "credential_definition", void 0);
896
+ __decorate([
897
+ ApiPropertyOptional({
898
+ type: () => CredentialMetadata,
899
+ example: {
900
+ display: [
901
+ {
902
+ name: "University Degree",
903
+ locale: "en-US",
904
+ description: "A verified university degree credential",
905
+ background_color: "#ffffff",
906
+ text_color: "#000000",
907
+ logo: {
908
+ uri: "https://example.com/logo.png",
909
+ alt_text: "Logo alt text"
910
+ }
911
+ }
912
+ ],
913
+ claims: [
914
+ {
915
+ path: ["name"],
916
+ mandatory: true,
917
+ display: [{ name: "Full Name", locale: "en-US" }]
918
+ }
919
+ ]
920
+ }
921
+ }),
922
+ __metadata("design:type", CredentialMetadata)
923
+ ], CredentialConfiguration.prototype, "credential_metadata", void 0);
924
+ let CredentialIssuerMetadata = class CredentialIssuerMetadata {
925
+ credential_issuer;
926
+ authorization_servers;
927
+ token_endpoint;
928
+ credential_endpoint;
929
+ nonce_endpoint;
930
+ deferred_credential_endpoint;
931
+ notification_endpoint;
932
+ credential_request_encryption;
933
+ credential_response_encryption;
934
+ batch_credential_issuance;
935
+ display;
936
+ credential_configurations_supported;
937
+ };
938
+ __decorate([
939
+ ApiProperty({ example: "https://issuer.example.com" }),
940
+ __metadata("design:type", String)
941
+ ], CredentialIssuerMetadata.prototype, "credential_issuer", void 0);
942
+ __decorate([
943
+ ApiPropertyOptional({
944
+ type: [String],
945
+ example: ["https://auth.example.com"]
946
+ }),
947
+ __metadata("design:type", Array)
948
+ ], CredentialIssuerMetadata.prototype, "authorization_servers", void 0);
949
+ __decorate([
950
+ ApiPropertyOptional({ example: "https://issuer.example.com/token" }),
951
+ __metadata("design:type", String)
952
+ ], CredentialIssuerMetadata.prototype, "token_endpoint", void 0);
953
+ __decorate([
954
+ ApiProperty({ example: "https://issuer.example.com/credential" }),
955
+ __metadata("design:type", String)
956
+ ], CredentialIssuerMetadata.prototype, "credential_endpoint", void 0);
957
+ __decorate([
958
+ ApiPropertyOptional({ example: "https://issuer.example.com/nonce" }),
959
+ __metadata("design:type", String)
960
+ ], CredentialIssuerMetadata.prototype, "nonce_endpoint", void 0);
961
+ __decorate([
962
+ ApiPropertyOptional({ example: "https://issuer.example.com/deferred" }),
963
+ __metadata("design:type", String)
964
+ ], CredentialIssuerMetadata.prototype, "deferred_credential_endpoint", void 0);
965
+ __decorate([
966
+ ApiPropertyOptional({ example: "https://issuer.example.com/notify" }),
967
+ __metadata("design:type", String)
968
+ ], CredentialIssuerMetadata.prototype, "notification_endpoint", void 0);
969
+ __decorate([
970
+ ApiPropertyOptional({
971
+ type: () => CredentialRequestEncryption,
972
+ example: {
973
+ jwks: { kty: "EC", crv: "P-256" },
974
+ enc_values_supported: ["A256GCM"],
975
+ encryption_required: false
976
+ }
977
+ }),
978
+ __metadata("design:type", CredentialRequestEncryption)
979
+ ], CredentialIssuerMetadata.prototype, "credential_request_encryption", void 0);
980
+ __decorate([
981
+ ApiPropertyOptional({
982
+ type: () => CredentialResponseEncryption,
983
+ example: {
984
+ alg_values_supported: ["RSA-OAEP"],
985
+ enc_values_supported: ["A256GCM"],
986
+ encryption_required: true
987
+ }
988
+ }),
989
+ __metadata("design:type", CredentialResponseEncryption)
990
+ ], CredentialIssuerMetadata.prototype, "credential_response_encryption", void 0);
991
+ __decorate([
992
+ ApiPropertyOptional({
993
+ type: () => BatchCredentialIssuance,
994
+ example: {
995
+ batch_size: 10
996
+ }
997
+ }),
998
+ __metadata("design:type", BatchCredentialIssuance)
999
+ ], CredentialIssuerMetadata.prototype, "batch_credential_issuance", void 0);
1000
+ __decorate([
1001
+ ApiPropertyOptional({
1002
+ type: () => [LogoDisplay],
1003
+ example: [
1004
+ {
1005
+ name: "Logo Display",
1006
+ locale: "en-US",
1007
+ logo: { uri: "https://example.com/logo.png", alt_text: "Logo alt text" }
1008
+ }
1009
+ ]
1010
+ }),
1011
+ __metadata("design:type", Array)
1012
+ ], CredentialIssuerMetadata.prototype, "display", void 0);
1013
+ __decorate([
1014
+ ApiProperty({
1015
+ type: "object",
1016
+ additionalProperties: { $ref: getSchemaPath(CredentialConfiguration) },
1017
+ example: {
1018
+ "config-id": {
1019
+ format: "jwt_vc_json",
1020
+ "@context": ["https://www.w3.org/ns/credentials/v2"],
1021
+ scope: "openid",
1022
+ cryptographic_binding_methods_supported: ["method1", "method2"],
1023
+ credential_signing_alg_values_supported: ["RS256", "ES256"],
1024
+ proof_types_supported: {
1025
+ example: { proof_signing_alg_values_supported: ["RS256"] }
1026
+ },
1027
+ credential_definition: {
1028
+ "@context": ["https://www.w3.org/ns/credentials/v2"],
1029
+ type: ["VerifiableCredential", "UniversityDegree"]
1030
+ },
1031
+ credential_metadata: {
1032
+ display: [
1033
+ {
1034
+ name: "Extended Display Name",
1035
+ locale: "en-US",
1036
+ description: "Extended display description",
1037
+ background_color: "#ffffff",
1038
+ background_image: { uri: "https://example.com/background.png" },
1039
+ text_color: "#000000",
1040
+ logo: {
1041
+ uri: "https://example.com/logo.png",
1042
+ alt_text: "Logo alt text"
1043
+ }
1044
+ }
1045
+ ]
1046
+ }
1047
+ }
1048
+ }
1049
+ }),
1050
+ __metadata("design:type", Object)
1051
+ ], CredentialIssuerMetadata.prototype, "credential_configurations_supported", void 0);
1052
+ CredentialIssuerMetadata = __decorate([
1053
+ ApiExtraModels(CredentialConfiguration)
1054
+ ], CredentialIssuerMetadata);
1055
+ export { CredentialIssuerMetadata };
1056
+ export class DeferredCredentialRequest {
1057
+ transaction_id;
1058
+ credential_response_encryption;
1059
+ }
1060
+ __decorate([
1061
+ ApiProperty({ example: "tx-id-sample" }),
1062
+ __metadata("design:type", String)
1063
+ ], DeferredCredentialRequest.prototype, "transaction_id", void 0);
1064
+ __decorate([
1065
+ ApiPropertyOptional({
1066
+ type: "object",
1067
+ properties: {
1068
+ jwk: { type: "object", additionalProperties: true },
1069
+ enc: { type: "string" },
1070
+ zip: { type: "string" }
1071
+ },
1072
+ example: {
1073
+ jwk: { kty: "EC", crv: "P-256" },
1074
+ enc: "A256GCM"
1075
+ }
1076
+ }),
1077
+ __metadata("design:type", Object)
1078
+ ], DeferredCredentialRequest.prototype, "credential_response_encryption", void 0);
1079
+ export class NotificationRequest {
1080
+ notification_id;
1081
+ event;
1082
+ event_description;
1083
+ }
1084
+ __decorate([
1085
+ ApiProperty({ example: "3fwe98js" }),
1086
+ __metadata("design:type", String)
1087
+ ], NotificationRequest.prototype, "notification_id", void 0);
1088
+ __decorate([
1089
+ ApiProperty({
1090
+ enum: ["credential_accepted", "credential_failure", "credential_deleted"],
1091
+ example: "credential_accepted"
1092
+ }),
1093
+ __metadata("design:type", String)
1094
+ ], NotificationRequest.prototype, "event", void 0);
1095
+ __decorate([
1096
+ ApiPropertyOptional({
1097
+ example: "Could not store the Credential. Out of storage."
1098
+ }),
1099
+ __metadata("design:type", String)
1100
+ ], NotificationRequest.prototype, "event_description", void 0);
1101
+ export class NotificationResponse {
1102
+ message;
1103
+ }
1104
+ __decorate([
1105
+ ApiPropertyOptional({ example: "Notification received successfully" }),
1106
+ __metadata("design:type", String)
1107
+ ], NotificationResponse.prototype, "message", void 0);
1108
+ export class CredentialErrorResponse {
1109
+ error;
1110
+ error_description;
1111
+ }
1112
+ __decorate([
1113
+ ApiProperty({
1114
+ enum: [
1115
+ "invalid_credential_request",
1116
+ "unknown_credential_configuration",
1117
+ "unknown_credential_identifier",
1118
+ "invalid_proof",
1119
+ "invalid_nonce",
1120
+ "invalid_encryption_parameters",
1121
+ "credential_request_denied"
1122
+ ],
1123
+ example: "invalid_credential_request"
1124
+ }),
1125
+ __metadata("design:type", String)
1126
+ ], CredentialErrorResponse.prototype, "error", void 0);
1127
+ __decorate([
1128
+ ApiPropertyOptional({
1129
+ example: "The credential request is missing required parameters"
1130
+ }),
1131
+ __metadata("design:type", String)
1132
+ ], CredentialErrorResponse.prototype, "error_description", void 0);
1133
+ export class NonceResponse {
1134
+ c_nonce;
1135
+ }
1136
+ __decorate([
1137
+ ApiProperty({ example: "wKI4LT17ac15ES9bw8ac4" }),
1138
+ __metadata("design:type", String)
1139
+ ], NonceResponse.prototype, "c_nonce", void 0);
1140
+ //# sourceMappingURL=issuance.dto.js.map