@ayni.org/vs-agent-plugin-ayni-flow 0.0.0-stage → 0.1.3

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 (39) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +52 -2
  3. package/build/events/ayniFlowEvents.d.ts +20 -0
  4. package/build/events/ayniFlowEvents.js +58 -0
  5. package/build/events/ayniFlowEvents.js.map +1 -0
  6. package/build/index.d.ts +10 -0
  7. package/build/index.js +8 -0
  8. package/build/index.js.map +1 -0
  9. package/build/nestjs/AyniFlowPlugin.d.ts +21 -0
  10. package/build/nestjs/AyniFlowPlugin.js +69 -0
  11. package/build/nestjs/AyniFlowPlugin.js.map +1 -0
  12. package/build/nestjs/V2DidcommAyniFlowController.d.ts +13 -0
  13. package/build/nestjs/V2DidcommAyniFlowController.js +134 -0
  14. package/build/nestjs/V2DidcommAyniFlowController.js.map +1 -0
  15. package/build/nestjs/V2DidcommCarrierControllers.d.ts +80 -0
  16. package/build/nestjs/V2DidcommCarrierControllers.js +447 -0
  17. package/build/nestjs/V2DidcommCarrierControllers.js.map +1 -0
  18. package/build/nestjs/didcommModules.d.ts +3 -0
  19. package/build/nestjs/didcommModules.js +12 -0
  20. package/build/nestjs/didcommModules.js.map +1 -0
  21. package/build/nestjs/dto/ayni-flow.dto.d.ts +62 -0
  22. package/build/nestjs/dto/ayni-flow.dto.js +279 -0
  23. package/build/nestjs/dto/ayni-flow.dto.js.map +1 -0
  24. package/build/nestjs/dto/carriers.dto.d.ts +154 -0
  25. package/build/nestjs/dto/carriers.dto.js +587 -0
  26. package/build/nestjs/dto/carriers.dto.js.map +1 -0
  27. package/build/nestjs/dto/common.dto.d.ts +39 -0
  28. package/build/nestjs/dto/common.dto.js +107 -0
  29. package/build/nestjs/dto/common.dto.js.map +1 -0
  30. package/build/nestjs/dto/index.d.ts +3 -0
  31. package/build/nestjs/dto/index.js +4 -0
  32. package/build/nestjs/dto/index.js.map +1 -0
  33. package/build/sdk/setupAyniFlowProtocols.d.ts +10 -0
  34. package/build/sdk/setupAyniFlowProtocols.js +36 -0
  35. package/build/sdk/setupAyniFlowProtocols.js.map +1 -0
  36. package/build/types.d.ts +33 -0
  37. package/build/types.js +2 -0
  38. package/build/types.js.map +1 -0
  39. package/package.json +58 -3
@@ -0,0 +1,587 @@
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 { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
11
+ import { Type } from 'class-transformer';
12
+ import { IsArray, IsBoolean, IsIn, IsISO8601, IsNotEmpty, IsObject, IsOptional, IsString, ValidateNested, } from 'class-validator';
13
+ import { AttestationDto, CarrierRequestBaseDto } from './common.dto.js';
14
+ // ---- authorize/1.0 (profile §6.5) --------------------------------------------------------------
15
+ export class AuthorizeRequesterDto {
16
+ }
17
+ __decorate([
18
+ ApiProperty({ example: 'Ana Ruiz' }),
19
+ IsString(),
20
+ IsNotEmpty(),
21
+ __metadata("design:type", String)
22
+ ], AuthorizeRequesterDto.prototype, "name", void 0);
23
+ __decorate([
24
+ ApiPropertyOptional({ example: 'Analyst' }),
25
+ IsOptional(),
26
+ IsString(),
27
+ __metadata("design:type", Object)
28
+ ], AuthorizeRequesterDto.prototype, "role", void 0);
29
+ __decorate([
30
+ ApiPropertyOptional(),
31
+ IsOptional(),
32
+ IsString(),
33
+ __metadata("design:type", Object)
34
+ ], AuthorizeRequesterDto.prototype, "did", void 0);
35
+ export class AuthorizePurposeDto {
36
+ }
37
+ __decorate([
38
+ ApiProperty({ example: 'customer-support' }),
39
+ IsString(),
40
+ IsNotEmpty(),
41
+ __metadata("design:type", String)
42
+ ], AuthorizePurposeDto.prototype, "id", void 0);
43
+ __decorate([
44
+ ApiProperty({ example: 'Customer support' }),
45
+ IsString(),
46
+ IsNotEmpty(),
47
+ __metadata("design:type", String)
48
+ ], AuthorizePurposeDto.prototype, "label", void 0);
49
+ export class AuthorizeRequestDto {
50
+ }
51
+ __decorate([
52
+ ApiProperty({ type: AuthorizeRequesterDto }),
53
+ ValidateNested(),
54
+ Type(() => AuthorizeRequesterDto),
55
+ __metadata("design:type", AuthorizeRequesterDto)
56
+ ], AuthorizeRequestDto.prototype, "requester", void 0);
57
+ __decorate([
58
+ ApiProperty({ type: AuthorizePurposeDto }),
59
+ ValidateNested(),
60
+ Type(() => AuthorizePurposeDto),
61
+ __metadata("design:type", AuthorizePurposeDto)
62
+ ], AuthorizeRequestDto.prototype, "purpose", void 0);
63
+ __decorate([
64
+ ApiProperty({ example: 'Ticket 4411 needs the customer address.' }),
65
+ IsString(),
66
+ __metadata("design:type", String)
67
+ ], AuthorizeRequestDto.prototype, "justification", void 0);
68
+ __decorate([
69
+ ApiProperty({ type: [String], example: ['tool:crm.readCustomer'] }),
70
+ IsArray(),
71
+ IsString({ each: true }),
72
+ __metadata("design:type", Array)
73
+ ], AuthorizeRequestDto.prototype, "scope", void 0);
74
+ __decorate([
75
+ ApiProperty({ description: 'ISO 8601', example: '2026-10-24T18:00:00Z' }),
76
+ IsISO8601(),
77
+ __metadata("design:type", String)
78
+ ], AuthorizeRequestDto.prototype, "expiresAt", void 0);
79
+ __decorate([
80
+ ApiProperty({ description: 'Ask for a device-authenticated decision' }),
81
+ IsBoolean(),
82
+ __metadata("design:type", Boolean)
83
+ ], AuthorizeRequestDto.prototype, "attested", void 0);
84
+ export class SendAuthorizeBodyDto extends CarrierRequestBaseDto {
85
+ }
86
+ __decorate([
87
+ ApiProperty({ type: AuthorizeRequestDto }),
88
+ ValidateNested(),
89
+ Type(() => AuthorizeRequestDto),
90
+ __metadata("design:type", AuthorizeRequestDto)
91
+ ], SendAuthorizeBodyDto.prototype, "request", void 0);
92
+ export class AuthorizeResponseDto {
93
+ }
94
+ __decorate([
95
+ ApiProperty({ enum: ['approved', 'rejected'] }),
96
+ IsIn(['approved', 'rejected']),
97
+ __metadata("design:type", String)
98
+ ], AuthorizeResponseDto.prototype, "decision", void 0);
99
+ __decorate([
100
+ ApiProperty({ type: AttestationDto }),
101
+ ValidateNested(),
102
+ Type(() => AttestationDto),
103
+ __metadata("design:type", AttestationDto)
104
+ ], AuthorizeResponseDto.prototype, "attestation", void 0);
105
+ __decorate([
106
+ ApiPropertyOptional(),
107
+ IsOptional(),
108
+ IsString(),
109
+ __metadata("design:type", Object)
110
+ ], AuthorizeResponseDto.prototype, "comment", void 0);
111
+ export class RespondAuthorizeBodyDto {
112
+ }
113
+ __decorate([
114
+ ApiProperty({ type: AuthorizeResponseDto }),
115
+ ValidateNested(),
116
+ Type(() => AuthorizeResponseDto),
117
+ __metadata("design:type", AuthorizeResponseDto)
118
+ ], RespondAuthorizeBodyDto.prototype, "response", void 0);
119
+ // ---- confirm/1.0 (profile §6.6) ----------------------------------------------------------------
120
+ export class ConfirmRequestDto {
121
+ }
122
+ __decorate([
123
+ ApiProperty({ example: 'Confirm the change of your delivery address' }),
124
+ IsString(),
125
+ IsNotEmpty(),
126
+ __metadata("design:type", String)
127
+ ], ConfirmRequestDto.prototype, "text", void 0);
128
+ __decorate([
129
+ ApiProperty({ description: 'The code the service also shows elsewhere', example: '48 21' }),
130
+ IsString(),
131
+ IsNotEmpty(),
132
+ __metadata("design:type", String)
133
+ ], ConfirmRequestDto.prototype, "code", void 0);
134
+ __decorate([
135
+ ApiProperty(),
136
+ IsBoolean(),
137
+ __metadata("design:type", Boolean)
138
+ ], ConfirmRequestDto.prototype, "attested", void 0);
139
+ export class SendConfirmBodyDto extends CarrierRequestBaseDto {
140
+ }
141
+ __decorate([
142
+ ApiProperty({ type: ConfirmRequestDto }),
143
+ ValidateNested(),
144
+ Type(() => ConfirmRequestDto),
145
+ __metadata("design:type", ConfirmRequestDto)
146
+ ], SendConfirmBodyDto.prototype, "request", void 0);
147
+ export class ConfirmResponseDto {
148
+ }
149
+ __decorate([
150
+ ApiProperty(),
151
+ IsBoolean(),
152
+ __metadata("design:type", Boolean)
153
+ ], ConfirmResponseDto.prototype, "confirmed", void 0);
154
+ __decorate([
155
+ ApiProperty({ type: AttestationDto }),
156
+ ValidateNested(),
157
+ Type(() => AttestationDto),
158
+ __metadata("design:type", AttestationDto)
159
+ ], ConfirmResponseDto.prototype, "attestation", void 0);
160
+ export class RespondConfirmBodyDto {
161
+ }
162
+ __decorate([
163
+ ApiProperty({ type: ConfirmResponseDto }),
164
+ ValidateNested(),
165
+ Type(() => ConfirmResponseDto),
166
+ __metadata("design:type", ConfirmResponseDto)
167
+ ], RespondConfirmBodyDto.prototype, "response", void 0);
168
+ // ---- link-session/1.0 (profile §6.7) -----------------------------------------------------------
169
+ export class LinkSessionAgentDto {
170
+ }
171
+ __decorate([
172
+ ApiProperty({ example: 'did:webvh:...' }),
173
+ IsString(),
174
+ IsNotEmpty(),
175
+ __metadata("design:type", String)
176
+ ], LinkSessionAgentDto.prototype, "did", void 0);
177
+ __decorate([
178
+ ApiProperty({ example: 'Acme Support' }),
179
+ IsString(),
180
+ IsNotEmpty(),
181
+ __metadata("design:type", String)
182
+ ], LinkSessionAgentDto.prototype, "name", void 0);
183
+ export class LinkSessionBrowserDto {
184
+ }
185
+ __decorate([
186
+ ApiProperty({ example: 'Firefox on Linux' }),
187
+ IsString(),
188
+ IsNotEmpty(),
189
+ __metadata("design:type", String)
190
+ ], LinkSessionBrowserDto.prototype, "description", void 0);
191
+ __decorate([
192
+ ApiProperty({ enum: ['web', 'ios', 'android'] }),
193
+ IsIn(['web', 'ios', 'android']),
194
+ __metadata("design:type", String)
195
+ ], LinkSessionBrowserDto.prototype, "platform", void 0);
196
+ export class LinkSessionRequestDto {
197
+ }
198
+ __decorate([
199
+ ApiProperty({ type: LinkSessionAgentDto }),
200
+ ValidateNested(),
201
+ Type(() => LinkSessionAgentDto),
202
+ __metadata("design:type", LinkSessionAgentDto)
203
+ ], LinkSessionRequestDto.prototype, "agent", void 0);
204
+ __decorate([
205
+ ApiProperty({ type: LinkSessionBrowserDto }),
206
+ ValidateNested(),
207
+ Type(() => LinkSessionBrowserDto),
208
+ __metadata("design:type", LinkSessionBrowserDto)
209
+ ], LinkSessionRequestDto.prototype, "browser", void 0);
210
+ __decorate([
211
+ ApiProperty({ example: 'https://ayni.acme.example' }),
212
+ IsString(),
213
+ IsNotEmpty(),
214
+ __metadata("design:type", String)
215
+ ], LinkSessionRequestDto.prototype, "webOrigin", void 0);
216
+ __decorate([
217
+ ApiProperty({ description: 'ISO 8601', example: '2026-10-24T15:20:41Z' }),
218
+ IsISO8601(),
219
+ __metadata("design:type", String)
220
+ ], LinkSessionRequestDto.prototype, "startedAt", void 0);
221
+ __decorate([
222
+ ApiProperty({ description: 'The out-of-band invitation @id the holder accepted or reused' }),
223
+ IsString(),
224
+ IsNotEmpty(),
225
+ __metadata("design:type", String)
226
+ ], LinkSessionRequestDto.prototype, "invitationId", void 0);
227
+ __decorate([
228
+ ApiPropertyOptional({ type: [String], description: 'Three distinct codes for a known-device re-link, else absent' }),
229
+ IsOptional(),
230
+ IsArray(),
231
+ IsString({ each: true }),
232
+ __metadata("design:type", Object)
233
+ ], LinkSessionRequestDto.prototype, "codes", void 0);
234
+ export class SendLinkSessionBodyDto extends CarrierRequestBaseDto {
235
+ }
236
+ __decorate([
237
+ ApiProperty({ type: LinkSessionRequestDto }),
238
+ ValidateNested(),
239
+ Type(() => LinkSessionRequestDto),
240
+ __metadata("design:type", LinkSessionRequestDto)
241
+ ], SendLinkSessionBodyDto.prototype, "request", void 0);
242
+ export class LinkSessionResponseDto {
243
+ }
244
+ __decorate([
245
+ ApiProperty(),
246
+ IsBoolean(),
247
+ __metadata("design:type", Boolean)
248
+ ], LinkSessionResponseDto.prototype, "link", void 0);
249
+ __decorate([
250
+ ApiPropertyOptional({ description: 'The picked code when the request carried codes' }),
251
+ IsOptional(),
252
+ IsString(),
253
+ __metadata("design:type", Object)
254
+ ], LinkSessionResponseDto.prototype, "code", void 0);
255
+ export class RespondLinkSessionBodyDto {
256
+ }
257
+ __decorate([
258
+ ApiProperty({ type: LinkSessionResponseDto }),
259
+ ValidateNested(),
260
+ Type(() => LinkSessionResponseDto),
261
+ __metadata("design:type", LinkSessionResponseDto)
262
+ ], RespondLinkSessionBodyDto.prototype, "response", void 0);
263
+ // ---- session-grant/1.0 (profile §6.8) ----------------------------------------------------------
264
+ export class SessionGrantClientDto {
265
+ }
266
+ __decorate([
267
+ ApiProperty({ example: 'Ayni on iPhone' }),
268
+ IsString(),
269
+ IsNotEmpty(),
270
+ __metadata("design:type", String)
271
+ ], SessionGrantClientDto.prototype, "description", void 0);
272
+ __decorate([
273
+ ApiProperty({ enum: ['web', 'ios', 'android'] }),
274
+ IsIn(['web', 'ios', 'android']),
275
+ __metadata("design:type", String)
276
+ ], SessionGrantClientDto.prototype, "platform", void 0);
277
+ __decorate([
278
+ ApiProperty({ example: '1.0.0' }),
279
+ IsString(),
280
+ __metadata("design:type", String)
281
+ ], SessionGrantClientDto.prototype, "appVersion", void 0);
282
+ export class SessionGrantRequestDto {
283
+ }
284
+ __decorate([
285
+ ApiProperty({ example: 'did:webvh:...' }),
286
+ IsString(),
287
+ IsNotEmpty(),
288
+ __metadata("design:type", String)
289
+ ], SessionGrantRequestDto.prototype, "agentDid", void 0);
290
+ __decorate([
291
+ ApiPropertyOptional({ description: 'The conversation to resume, or null' }),
292
+ IsOptional(),
293
+ IsString(),
294
+ __metadata("design:type", Object)
295
+ ], SessionGrantRequestDto.prototype, "conversationId", void 0);
296
+ __decorate([
297
+ ApiProperty(),
298
+ IsBoolean(),
299
+ __metadata("design:type", Boolean)
300
+ ], SessionGrantRequestDto.prototype, "newConversation", void 0);
301
+ __decorate([
302
+ ApiProperty({ type: SessionGrantClientDto }),
303
+ ValidateNested(),
304
+ Type(() => SessionGrantClientDto),
305
+ __metadata("design:type", SessionGrantClientDto)
306
+ ], SessionGrantRequestDto.prototype, "client", void 0);
307
+ export class SendSessionGrantRequestBodyDto extends CarrierRequestBaseDto {
308
+ }
309
+ __decorate([
310
+ ApiProperty({ type: SessionGrantRequestDto }),
311
+ ValidateNested(),
312
+ Type(() => SessionGrantRequestDto),
313
+ __metadata("design:type", SessionGrantRequestDto)
314
+ ], SendSessionGrantRequestBodyDto.prototype, "request", void 0);
315
+ export class SessionGrantGrantDto {
316
+ }
317
+ __decorate([
318
+ ApiProperty({ description: 'Opaque, single use' }),
319
+ IsString(),
320
+ IsNotEmpty(),
321
+ __metadata("design:type", String)
322
+ ], SessionGrantGrantDto.prototype, "grant", void 0);
323
+ __decorate([
324
+ ApiProperty({ example: 'https://agent.acme.example/ayni/sessions' }),
325
+ IsString(),
326
+ IsNotEmpty(),
327
+ __metadata("design:type", String)
328
+ ], SessionGrantGrantDto.prototype, "sessionsUrl", void 0);
329
+ __decorate([
330
+ ApiProperty({ description: 'At most sixty seconds away, ISO 8601' }),
331
+ IsISO8601(),
332
+ __metadata("design:type", String)
333
+ ], SessionGrantGrantDto.prototype, "expiresAt", void 0);
334
+ export class GrantSessionBodyDto {
335
+ }
336
+ __decorate([
337
+ ApiProperty({ type: SessionGrantGrantDto }),
338
+ ValidateNested(),
339
+ Type(() => SessionGrantGrantDto),
340
+ __metadata("design:type", SessionGrantGrantDto)
341
+ ], GrantSessionBodyDto.prototype, "grant", void 0);
342
+ // ---- sign-tx/1.0 (profile §6.9) ----------------------------------------------------------------
343
+ export class SignDocDto {
344
+ }
345
+ __decorate([
346
+ ApiProperty({ description: 'base64' }),
347
+ IsString(),
348
+ IsNotEmpty(),
349
+ __metadata("design:type", String)
350
+ ], SignDocDto.prototype, "bodyBytes", void 0);
351
+ __decorate([
352
+ ApiProperty({ description: 'base64' }),
353
+ IsString(),
354
+ IsNotEmpty(),
355
+ __metadata("design:type", String)
356
+ ], SignDocDto.prototype, "authInfoBytes", void 0);
357
+ __decorate([
358
+ ApiProperty({ example: '1203' }),
359
+ IsString(),
360
+ IsNotEmpty(),
361
+ __metadata("design:type", String)
362
+ ], SignDocDto.prototype, "accountNumber", void 0);
363
+ export class SignTxRequestDto {
364
+ }
365
+ __decorate([
366
+ ApiProperty({ example: 'vna-testnet-1' }),
367
+ IsString(),
368
+ IsNotEmpty(),
369
+ __metadata("design:type", String)
370
+ ], SignTxRequestDto.prototype, "chainId", void 0);
371
+ __decorate([
372
+ ApiProperty({ type: SignDocDto }),
373
+ ValidateNested(),
374
+ Type(() => SignDocDto),
375
+ __metadata("design:type", SignDocDto)
376
+ ], SignTxRequestDto.prototype, "signDoc", void 0);
377
+ __decorate([
378
+ ApiProperty({
379
+ description: 'What the transaction does, as the holder will check it against the body',
380
+ example: { amount: '150000 uvna', to: 'verana1...', memo: 'Order 8812' },
381
+ }),
382
+ IsObject(),
383
+ __metadata("design:type", Object)
384
+ ], SignTxRequestDto.prototype, "summary", void 0);
385
+ __decorate([
386
+ ApiProperty({ enum: ['service', 'app'], description: 'Who broadcasts' }),
387
+ IsIn(['service', 'app']),
388
+ __metadata("design:type", String)
389
+ ], SignTxRequestDto.prototype, "broadcast", void 0);
390
+ export class SendSignTxBodyDto extends CarrierRequestBaseDto {
391
+ }
392
+ __decorate([
393
+ ApiProperty({ type: SignTxRequestDto }),
394
+ ValidateNested(),
395
+ Type(() => SignTxRequestDto),
396
+ __metadata("design:type", SignTxRequestDto)
397
+ ], SendSignTxBodyDto.prototype, "request", void 0);
398
+ export class SignTxPublicKeyDto {
399
+ }
400
+ __decorate([
401
+ ApiProperty({ example: 'secp256k1' }),
402
+ IsString(),
403
+ __metadata("design:type", String)
404
+ ], SignTxPublicKeyDto.prototype, "type", void 0);
405
+ __decorate([
406
+ ApiProperty({ description: 'base64' }),
407
+ IsString(),
408
+ __metadata("design:type", String)
409
+ ], SignTxPublicKeyDto.prototype, "value", void 0);
410
+ export class SignTxResponseDto {
411
+ }
412
+ __decorate([
413
+ ApiProperty({ enum: ['signed', 'broadcast', 'failed'] }),
414
+ IsIn(['signed', 'broadcast', 'failed']),
415
+ __metadata("design:type", String)
416
+ ], SignTxResponseDto.prototype, "status", void 0);
417
+ __decorate([
418
+ ApiPropertyOptional({ description: 'base64' }),
419
+ IsOptional(),
420
+ IsString(),
421
+ __metadata("design:type", Object)
422
+ ], SignTxResponseDto.prototype, "signature", void 0);
423
+ __decorate([
424
+ ApiPropertyOptional({ type: SignTxPublicKeyDto }),
425
+ IsOptional(),
426
+ ValidateNested(),
427
+ Type(() => SignTxPublicKeyDto),
428
+ __metadata("design:type", Object)
429
+ ], SignTxResponseDto.prototype, "publicKey", void 0);
430
+ __decorate([
431
+ ApiPropertyOptional(),
432
+ IsOptional(),
433
+ IsString(),
434
+ __metadata("design:type", Object)
435
+ ], SignTxResponseDto.prototype, "txHash", void 0);
436
+ __decorate([
437
+ ApiPropertyOptional({ description: "The chain's reason when status is failed" }),
438
+ IsOptional(),
439
+ IsString(),
440
+ __metadata("design:type", Object)
441
+ ], SignTxResponseDto.prototype, "reason", void 0);
442
+ export class RespondSignTxBodyDto {
443
+ }
444
+ __decorate([
445
+ ApiProperty({ type: SignTxResponseDto }),
446
+ ValidateNested(),
447
+ Type(() => SignTxResponseDto),
448
+ __metadata("design:type", SignTxResponseDto)
449
+ ], RespondSignTxBodyDto.prototype, "response", void 0);
450
+ // ---- notify/1.0 (profile §6.10) ----------------------------------------------------------------
451
+ export class NotificationDto {
452
+ }
453
+ __decorate([
454
+ ApiProperty({ example: 'c_41' }),
455
+ IsString(),
456
+ IsNotEmpty(),
457
+ __metadata("design:type", String)
458
+ ], NotificationDto.prototype, "conversationId", void 0);
459
+ __decorate([
460
+ ApiPropertyOptional(),
461
+ IsOptional(),
462
+ IsString(),
463
+ __metadata("design:type", Object)
464
+ ], NotificationDto.prototype, "sessionId", void 0);
465
+ __decorate([
466
+ ApiProperty({ example: 'Acme Support replied' }),
467
+ IsString(),
468
+ IsNotEmpty(),
469
+ __metadata("design:type", String)
470
+ ], NotificationDto.prototype, "title", void 0);
471
+ __decorate([
472
+ ApiPropertyOptional({ example: 'Your ticket is solved.' }),
473
+ IsOptional(),
474
+ IsString(),
475
+ __metadata("design:type", Object)
476
+ ], NotificationDto.prototype, "preview", void 0);
477
+ __decorate([
478
+ ApiProperty({ description: 'Notifications with the same key are grouped on the phone', example: 'c_41' }),
479
+ IsString(),
480
+ IsNotEmpty(),
481
+ __metadata("design:type", String)
482
+ ], NotificationDto.prototype, "collapseKey", void 0);
483
+ __decorate([
484
+ ApiProperty({ enum: ['normal', 'low'] }),
485
+ IsIn(['normal', 'low']),
486
+ __metadata("design:type", String)
487
+ ], NotificationDto.prototype, "priority", void 0);
488
+ export class SendNotificationBodyDto extends CarrierRequestBaseDto {
489
+ }
490
+ __decorate([
491
+ ApiProperty({ type: NotificationDto }),
492
+ ValidateNested(),
493
+ Type(() => NotificationDto),
494
+ __metadata("design:type", NotificationDto)
495
+ ], SendNotificationBodyDto.prototype, "notification", void 0);
496
+ // ---- reissue/1.0 (profile §6.11) ---------------------------------------------------------------
497
+ export class ReissueReferenceDto {
498
+ }
499
+ __decorate([
500
+ ApiProperty(),
501
+ IsString(),
502
+ IsNotEmpty(),
503
+ __metadata("design:type", String)
504
+ ], ReissueReferenceDto.prototype, "credentialId", void 0);
505
+ __decorate([
506
+ ApiProperty(),
507
+ IsString(),
508
+ IsNotEmpty(),
509
+ __metadata("design:type", String)
510
+ ], ReissueReferenceDto.prototype, "schemaId", void 0);
511
+ __decorate([
512
+ ApiProperty(),
513
+ IsString(),
514
+ IsNotEmpty(),
515
+ __metadata("design:type", String)
516
+ ], ReissueReferenceDto.prototype, "credDefId", void 0);
517
+ __decorate([
518
+ ApiProperty({ description: 'ISO 8601' }),
519
+ IsISO8601(),
520
+ __metadata("design:type", String)
521
+ ], ReissueReferenceDto.prototype, "issuedAt", void 0);
522
+ export class ReissueRequestDto {
523
+ }
524
+ __decorate([
525
+ ApiProperty({ type: ReissueReferenceDto }),
526
+ ValidateNested(),
527
+ Type(() => ReissueReferenceDto),
528
+ __metadata("design:type", ReissueReferenceDto)
529
+ ], ReissueRequestDto.prototype, "reference", void 0);
530
+ __decorate([
531
+ ApiProperty({ example: 'restore' }),
532
+ IsString(),
533
+ IsNotEmpty(),
534
+ __metadata("design:type", String)
535
+ ], ReissueRequestDto.prototype, "reason", void 0);
536
+ export class SendReissueBodyDto extends CarrierRequestBaseDto {
537
+ }
538
+ __decorate([
539
+ ApiProperty({ type: ReissueRequestDto }),
540
+ ValidateNested(),
541
+ Type(() => ReissueRequestDto),
542
+ __metadata("design:type", ReissueRequestDto)
543
+ ], SendReissueBodyDto.prototype, "request", void 0);
544
+ // ---- revocation_notification/2.0 (profile §6.12, CC-VSA-007) -----------------------------------
545
+ export class SendRevocationNotificationBodyDto {
546
+ }
547
+ __decorate([
548
+ ApiProperty({ description: 'Connection of the holder', example: 'conn-1234-5678' }),
549
+ IsString(),
550
+ IsNotEmpty(),
551
+ __metadata("design:type", String)
552
+ ], SendRevocationNotificationBodyDto.prototype, "connectionId", void 0);
553
+ __decorate([
554
+ ApiProperty({
555
+ description: 'The revocation id of the credential: <revocation registry id>::<credential revocation index> for AnonCreds',
556
+ }),
557
+ IsString(),
558
+ IsNotEmpty(),
559
+ __metadata("design:type", String)
560
+ ], SendRevocationNotificationBodyDto.prototype, "revocationId", void 0);
561
+ __decorate([
562
+ ApiPropertyOptional({ description: 'Defaults to anoncreds', example: 'anoncreds' }),
563
+ IsOptional(),
564
+ IsString(),
565
+ __metadata("design:type", String)
566
+ ], SendRevocationNotificationBodyDto.prototype, "revocationFormat", void 0);
567
+ __decorate([
568
+ ApiPropertyOptional(),
569
+ IsOptional(),
570
+ IsString(),
571
+ __metadata("design:type", String)
572
+ ], SendRevocationNotificationBodyDto.prototype, "comment", void 0);
573
+ export class FailExchangeBodyDto {
574
+ }
575
+ __decorate([
576
+ ApiProperty({ description: 'Why the exchange failed, a code of the flow profile §11', example: 'declined' }),
577
+ IsString(),
578
+ IsNotEmpty(),
579
+ __metadata("design:type", String)
580
+ ], FailExchangeBodyDto.prototype, "code", void 0);
581
+ __decorate([
582
+ ApiPropertyOptional(),
583
+ IsOptional(),
584
+ IsString(),
585
+ __metadata("design:type", String)
586
+ ], FailExchangeBodyDto.prototype, "description", void 0);
587
+ //# sourceMappingURL=carriers.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carriers.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/carriers.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EACL,OAAO,EACP,SAAS,EACT,IAAI,EACJ,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,cAAc,GACf,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEvE,mGAAmG;AAEnG,MAAM,OAAO,qBAAqB;CAejC;AAXC;IAHC,WAAW,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACpC,QAAQ,EAAE;IACV,UAAU,EAAE;;mDACA;AAKb;IAHC,mBAAmB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC3C,UAAU,EAAE;IACZ,QAAQ,EAAE;;mDACS;AAKpB;IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;kDACQ;AAGrB,MAAM,OAAO,mBAAmB;CAU/B;AANC;IAHC,WAAW,CAAC,EAAE,OAAO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IAHC,mBAAmB,EAAE;IACrB,UAAU,EAAE;IACZ,QAAQ,EAAE;;wDACS"}
@@ -0,0 +1,39 @@
1
+ export declare class SentMessageDto {
2
+ id: string;
3
+ }
4
+ /** Fields every carrier `request` body shares. */
5
+ export declare class CarrierRequestBaseDto {
6
+ connectionId: string;
7
+ flowId?: string;
8
+ }
9
+ export declare class AttestationDto {
10
+ method: 'biometric' | 'passcode' | 'none';
11
+ at: string;
12
+ }
13
+ /** One carrier exchange as the Admin API returns it and as the webhook events carry it. */
14
+ export declare class CarrierExchangeDto {
15
+ threadId: string;
16
+ flowId?: string;
17
+ connectionId: string;
18
+ role: string;
19
+ state: string;
20
+ request: Record<string, unknown>;
21
+ response?: Record<string, unknown>;
22
+ errorCode?: string;
23
+ errorDescription?: string;
24
+ createdAt: string;
25
+ }
26
+ interface CarrierRecordLike {
27
+ threadId: string;
28
+ parentThreadId?: string;
29
+ connectionId: string;
30
+ role: string;
31
+ state: string;
32
+ request: unknown;
33
+ response?: unknown;
34
+ errorCode?: string;
35
+ errorDescription?: string;
36
+ createdAt: Date;
37
+ }
38
+ export declare function toCarrierExchangeDto(record: CarrierRecordLike): CarrierExchangeDto;
39
+ export {};