@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,279 @@
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, IsIn, IsISO8601, IsNotEmpty, IsObject, IsOptional, IsString, ValidateNested } from 'class-validator';
13
+ export class FlowClientDto {
14
+ }
15
+ __decorate([
16
+ ApiProperty({ example: 'Firefox on Linux' }),
17
+ IsString(),
18
+ __metadata("design:type", String)
19
+ ], FlowClientDto.prototype, "description", void 0);
20
+ __decorate([
21
+ ApiProperty({ enum: ['web', 'ios', 'android'] }),
22
+ IsIn(['web', 'ios', 'android']),
23
+ __metadata("design:type", String)
24
+ ], FlowClientDto.prototype, "platform", void 0);
25
+ export class FlowOriginDto {
26
+ }
27
+ __decorate([
28
+ ApiProperty({ enum: ['ag-ui', 'none'], description: 'ag-ui when a conversation triggered the flow' }),
29
+ IsIn(['ag-ui', 'none']),
30
+ __metadata("design:type", String)
31
+ ], FlowOriginDto.prototype, "channel", void 0);
32
+ __decorate([
33
+ ApiPropertyOptional({ example: 'did:webvh:...' }),
34
+ IsOptional(),
35
+ IsString(),
36
+ __metadata("design:type", String)
37
+ ], FlowOriginDto.prototype, "agentDid", void 0);
38
+ __decorate([
39
+ ApiPropertyOptional({ example: 's_8a1' }),
40
+ IsOptional(),
41
+ IsString(),
42
+ __metadata("design:type", String)
43
+ ], FlowOriginDto.prototype, "sessionId", void 0);
44
+ __decorate([
45
+ ApiPropertyOptional({ example: 'c_41' }),
46
+ IsOptional(),
47
+ IsString(),
48
+ __metadata("design:type", String)
49
+ ], FlowOriginDto.prototype, "conversationId", void 0);
50
+ __decorate([
51
+ ApiPropertyOptional({ type: FlowClientDto }),
52
+ IsOptional(),
53
+ ValidateNested(),
54
+ Type(() => FlowClientDto),
55
+ __metadata("design:type", FlowClientDto)
56
+ ], FlowOriginDto.prototype, "client", void 0);
57
+ export class FlowStepDto {
58
+ }
59
+ __decorate([
60
+ ApiProperty(),
61
+ IsString(),
62
+ __metadata("design:type", String)
63
+ ], FlowStepDto.prototype, "id", void 0);
64
+ __decorate([
65
+ ApiProperty(),
66
+ IsString(),
67
+ __metadata("design:type", String)
68
+ ], FlowStepDto.prototype, "kind", void 0);
69
+ __decorate([
70
+ ApiProperty(),
71
+ IsString(),
72
+ __metadata("design:type", String)
73
+ ], FlowStepDto.prototype, "title", void 0);
74
+ export class FlowReferenceDto {
75
+ }
76
+ __decorate([
77
+ ApiProperty({ example: 'credential' }),
78
+ IsString(),
79
+ __metadata("design:type", String)
80
+ ], FlowReferenceDto.prototype, "type", void 0);
81
+ __decorate([
82
+ ApiProperty(),
83
+ IsString(),
84
+ __metadata("design:type", String)
85
+ ], FlowReferenceDto.prototype, "id", void 0);
86
+ export class OpenFlowBodyDto {
87
+ }
88
+ __decorate([
89
+ ApiProperty({ description: 'Connection to open the flow on', example: 'conn-1234-5678' }),
90
+ IsString(),
91
+ IsNotEmpty(),
92
+ __metadata("design:type", String)
93
+ ], OpenFlowBodyDto.prototype, "connectionId", void 0);
94
+ __decorate([
95
+ ApiProperty({ description: 'A kind of the flow profile §6', example: 'authorize' }),
96
+ IsString(),
97
+ IsNotEmpty(),
98
+ __metadata("design:type", String)
99
+ ], OpenFlowBodyDto.prototype, "kind", void 0);
100
+ __decorate([
101
+ ApiProperty({ description: 'What the person sees as the request title, in the service language' }),
102
+ IsString(),
103
+ IsNotEmpty(),
104
+ __metadata("design:type", String)
105
+ ], OpenFlowBodyDto.prototype, "title", void 0);
106
+ __decorate([
107
+ ApiPropertyOptional({ description: 'One sentence of context' }),
108
+ IsOptional(),
109
+ IsString(),
110
+ __metadata("design:type", String)
111
+ ], OpenFlowBodyDto.prototype, "description", void 0);
112
+ __decorate([
113
+ ApiProperty({ type: FlowOriginDto }),
114
+ ValidateNested(),
115
+ Type(() => FlowOriginDto),
116
+ __metadata("design:type", FlowOriginDto)
117
+ ], OpenFlowBodyDto.prototype, "origin", void 0);
118
+ __decorate([
119
+ ApiProperty({
120
+ description: 'After which both ends close the flow expired, ISO 8601',
121
+ example: '2026-10-24T15:32:00Z',
122
+ }),
123
+ IsISO8601(),
124
+ __metadata("design:type", String)
125
+ ], OpenFlowBodyDto.prototype, "expiresTime", void 0);
126
+ __decorate([
127
+ ApiPropertyOptional({ type: [String], example: ['device-authentication'] }),
128
+ IsOptional(),
129
+ IsArray(),
130
+ IsString({ each: true }),
131
+ __metadata("design:type", Array)
132
+ ], OpenFlowBodyDto.prototype, "requires", void 0);
133
+ __decorate([
134
+ ApiPropertyOptional({ type: [FlowStepDto] }),
135
+ IsOptional(),
136
+ IsArray(),
137
+ ValidateNested({ each: true }),
138
+ Type(() => FlowStepDto),
139
+ __metadata("design:type", Array)
140
+ ], OpenFlowBodyDto.prototype, "steps", void 0);
141
+ export class CloseFlowBodyDto {
142
+ }
143
+ __decorate([
144
+ ApiProperty({ enum: ['completed', 'declined', 'cancelled', 'failed', 'expired'] }),
145
+ IsIn(['completed', 'declined', 'cancelled', 'failed', 'expired']),
146
+ __metadata("design:type", String)
147
+ ], CloseFlowBodyDto.prototype, "outcome", void 0);
148
+ __decorate([
149
+ ApiPropertyOptional({ description: 'A human-readable sentence for failed and cancelled' }),
150
+ IsOptional(),
151
+ IsString(),
152
+ __metadata("design:type", String)
153
+ ], CloseFlowBodyDto.prototype, "reason", void 0);
154
+ __decorate([
155
+ ApiPropertyOptional({ type: [FlowReferenceDto], description: 'What the flow produced' }),
156
+ IsOptional(),
157
+ IsArray(),
158
+ ValidateNested({ each: true }),
159
+ Type(() => FlowReferenceDto),
160
+ __metadata("design:type", Array)
161
+ ], CloseFlowBodyDto.prototype, "references", void 0);
162
+ export class FlowProblemReportBodyDto {
163
+ }
164
+ __decorate([
165
+ ApiProperty({ description: 'A code of the flow profile §11', example: 'not-eligible' }),
166
+ IsString(),
167
+ IsNotEmpty(),
168
+ __metadata("design:type", String)
169
+ ], FlowProblemReportBodyDto.prototype, "code", void 0);
170
+ __decorate([
171
+ ApiPropertyOptional({ description: 'The English sentence of description.en' }),
172
+ IsOptional(),
173
+ IsString(),
174
+ __metadata("design:type", String)
175
+ ], FlowProblemReportBodyDto.prototype, "description", void 0);
176
+ __decorate([
177
+ ApiPropertyOptional({ description: 'The message the report is about (~thread.thid); defaults to the flow id' }),
178
+ IsOptional(),
179
+ IsString(),
180
+ __metadata("design:type", String)
181
+ ], FlowProblemReportBodyDto.prototype, "threadId", void 0);
182
+ export class FlowDto {
183
+ }
184
+ __decorate([
185
+ ApiProperty({ description: 'The flow id, the @id of the open' }),
186
+ __metadata("design:type", String)
187
+ ], FlowDto.prototype, "flowId", void 0);
188
+ __decorate([
189
+ ApiProperty(),
190
+ __metadata("design:type", String)
191
+ ], FlowDto.prototype, "connectionId", void 0);
192
+ __decorate([
193
+ ApiProperty({ description: 'holder | service' }),
194
+ __metadata("design:type", String)
195
+ ], FlowDto.prototype, "role", void 0);
196
+ __decorate([
197
+ ApiProperty({ description: 'Whether this agent opened the flow' }),
198
+ __metadata("design:type", Boolean)
199
+ ], FlowDto.prototype, "openedByMe", void 0);
200
+ __decorate([
201
+ ApiProperty({ description: 'pending | active | completed | declined | cancelled | failed | expired' }),
202
+ __metadata("design:type", String)
203
+ ], FlowDto.prototype, "state", void 0);
204
+ __decorate([
205
+ ApiProperty(),
206
+ __metadata("design:type", String)
207
+ ], FlowDto.prototype, "kind", void 0);
208
+ __decorate([
209
+ ApiProperty(),
210
+ __metadata("design:type", String)
211
+ ], FlowDto.prototype, "title", void 0);
212
+ __decorate([
213
+ ApiPropertyOptional(),
214
+ __metadata("design:type", String)
215
+ ], FlowDto.prototype, "description", void 0);
216
+ __decorate([
217
+ ApiProperty({ type: FlowOriginDto }),
218
+ IsObject(),
219
+ __metadata("design:type", FlowOriginDto)
220
+ ], FlowDto.prototype, "origin", void 0);
221
+ __decorate([
222
+ ApiProperty(),
223
+ __metadata("design:type", String)
224
+ ], FlowDto.prototype, "expiresTime", void 0);
225
+ __decorate([
226
+ ApiPropertyOptional({ type: [String] }),
227
+ __metadata("design:type", Array)
228
+ ], FlowDto.prototype, "requires", void 0);
229
+ __decorate([
230
+ ApiPropertyOptional({ type: [FlowStepDto] }),
231
+ __metadata("design:type", Array)
232
+ ], FlowDto.prototype, "steps", void 0);
233
+ __decorate([
234
+ ApiPropertyOptional(),
235
+ __metadata("design:type", String)
236
+ ], FlowDto.prototype, "reason", void 0);
237
+ __decorate([
238
+ ApiPropertyOptional({ type: [FlowReferenceDto] }),
239
+ __metadata("design:type", Array)
240
+ ], FlowDto.prototype, "references", void 0);
241
+ __decorate([
242
+ ApiPropertyOptional({ description: 'The problem-report code that failed the flow' }),
243
+ __metadata("design:type", String)
244
+ ], FlowDto.prototype, "errorCode", void 0);
245
+ __decorate([
246
+ ApiPropertyOptional(),
247
+ __metadata("design:type", String)
248
+ ], FlowDto.prototype, "closedAt", void 0);
249
+ __decorate([
250
+ ApiPropertyOptional({ description: 'me | peer | expiry' }),
251
+ __metadata("design:type", String)
252
+ ], FlowDto.prototype, "closedBy", void 0);
253
+ __decorate([
254
+ ApiProperty(),
255
+ __metadata("design:type", String)
256
+ ], FlowDto.prototype, "createdAt", void 0);
257
+ export function toFlowDto(record) {
258
+ return {
259
+ flowId: record.flowId,
260
+ connectionId: record.connectionId,
261
+ role: record.role,
262
+ openedByMe: record.openedByMe,
263
+ state: record.state,
264
+ kind: record.kind,
265
+ title: record.title,
266
+ description: record.description,
267
+ origin: record.origin,
268
+ expiresTime: record.expiresTime.toISOString(),
269
+ requires: record.requires,
270
+ steps: record.steps,
271
+ reason: record.reason,
272
+ references: record.references,
273
+ errorCode: record.errorCode,
274
+ closedAt: record.closedAt?.toISOString(),
275
+ closedBy: record.closedBy,
276
+ createdAt: record.createdAt.toISOString(),
277
+ };
278
+ }
279
+ //# sourceMappingURL=ayni-flow.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ayni-flow.dto.js","sourceRoot":"","sources":["../../../src/nestjs/dto/ayni-flow.dto.ts"],"names":[],"mappings":";;;;;;;;;AACA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEtH,MAAM,OAAO,aAAa;CAQzB;AALC;IAFC,WAAW,CAAC,EAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC5C,QAAQ,EAAE;;kDACS;AAIpB;IAFC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IAChD,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;;+CACI;AAGtC,MAAM,OAAO,aAAa;CAyBzB;AAtBC;IAFC,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,OAAO,E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AQ,EAAE,MAAM,CAAC,QAAQ;QACzB,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,WAAW,EAAE;KAC1C,CAAA;AACH,CAAC"}
@@ -0,0 +1,154 @@
1
+ import { AttestationDto, CarrierRequestBaseDto } from './common.dto.js';
2
+ export declare class AuthorizeRequesterDto {
3
+ name: string;
4
+ role?: string | null;
5
+ did?: string | null;
6
+ }
7
+ export declare class AuthorizePurposeDto {
8
+ id: string;
9
+ label: string;
10
+ }
11
+ export declare class AuthorizeRequestDto {
12
+ requester: AuthorizeRequesterDto;
13
+ purpose: AuthorizePurposeDto;
14
+ justification: string;
15
+ scope: string[];
16
+ expiresAt: string;
17
+ attested: boolean;
18
+ }
19
+ export declare class SendAuthorizeBodyDto extends CarrierRequestBaseDto {
20
+ request: AuthorizeRequestDto;
21
+ }
22
+ export declare class AuthorizeResponseDto {
23
+ decision: 'approved' | 'rejected';
24
+ attestation: AttestationDto;
25
+ comment?: string | null;
26
+ }
27
+ export declare class RespondAuthorizeBodyDto {
28
+ response: AuthorizeResponseDto;
29
+ }
30
+ export declare class ConfirmRequestDto {
31
+ text: string;
32
+ code: string;
33
+ attested: boolean;
34
+ }
35
+ export declare class SendConfirmBodyDto extends CarrierRequestBaseDto {
36
+ request: ConfirmRequestDto;
37
+ }
38
+ export declare class ConfirmResponseDto {
39
+ confirmed: boolean;
40
+ attestation: AttestationDto;
41
+ }
42
+ export declare class RespondConfirmBodyDto {
43
+ response: ConfirmResponseDto;
44
+ }
45
+ export declare class LinkSessionAgentDto {
46
+ did: string;
47
+ name: string;
48
+ }
49
+ export declare class LinkSessionBrowserDto {
50
+ description: string;
51
+ platform: 'web' | 'ios' | 'android';
52
+ }
53
+ export declare class LinkSessionRequestDto {
54
+ agent: LinkSessionAgentDto;
55
+ browser: LinkSessionBrowserDto;
56
+ webOrigin: string;
57
+ startedAt: string;
58
+ invitationId: string;
59
+ codes?: string[] | null;
60
+ }
61
+ export declare class SendLinkSessionBodyDto extends CarrierRequestBaseDto {
62
+ request: LinkSessionRequestDto;
63
+ }
64
+ export declare class LinkSessionResponseDto {
65
+ link: boolean;
66
+ code?: string | null;
67
+ }
68
+ export declare class RespondLinkSessionBodyDto {
69
+ response: LinkSessionResponseDto;
70
+ }
71
+ export declare class SessionGrantClientDto {
72
+ description: string;
73
+ platform: 'web' | 'ios' | 'android';
74
+ appVersion: string;
75
+ }
76
+ export declare class SessionGrantRequestDto {
77
+ agentDid: string;
78
+ conversationId?: string | null;
79
+ newConversation: boolean;
80
+ client: SessionGrantClientDto;
81
+ }
82
+ export declare class SendSessionGrantRequestBodyDto extends CarrierRequestBaseDto {
83
+ request: SessionGrantRequestDto;
84
+ }
85
+ export declare class SessionGrantGrantDto {
86
+ grant: string;
87
+ sessionsUrl: string;
88
+ expiresAt: string;
89
+ }
90
+ export declare class GrantSessionBodyDto {
91
+ grant: SessionGrantGrantDto;
92
+ }
93
+ export declare class SignDocDto {
94
+ bodyBytes: string;
95
+ authInfoBytes: string;
96
+ accountNumber: string;
97
+ }
98
+ export declare class SignTxRequestDto {
99
+ chainId: string;
100
+ signDoc: SignDocDto;
101
+ summary: Record<string, unknown>;
102
+ broadcast: 'service' | 'app';
103
+ }
104
+ export declare class SendSignTxBodyDto extends CarrierRequestBaseDto {
105
+ request: SignTxRequestDto;
106
+ }
107
+ export declare class SignTxPublicKeyDto {
108
+ type: string;
109
+ value: string;
110
+ }
111
+ export declare class SignTxResponseDto {
112
+ status: 'signed' | 'broadcast' | 'failed';
113
+ signature?: string | null;
114
+ publicKey?: SignTxPublicKeyDto | null;
115
+ txHash?: string | null;
116
+ reason?: string | null;
117
+ }
118
+ export declare class RespondSignTxBodyDto {
119
+ response: SignTxResponseDto;
120
+ }
121
+ export declare class NotificationDto {
122
+ conversationId: string;
123
+ sessionId?: string | null;
124
+ title: string;
125
+ preview?: string | null;
126
+ collapseKey: string;
127
+ priority: 'normal' | 'low';
128
+ }
129
+ export declare class SendNotificationBodyDto extends CarrierRequestBaseDto {
130
+ notification: NotificationDto;
131
+ }
132
+ export declare class ReissueReferenceDto {
133
+ credentialId: string;
134
+ schemaId: string;
135
+ credDefId: string;
136
+ issuedAt: string;
137
+ }
138
+ export declare class ReissueRequestDto {
139
+ reference: ReissueReferenceDto;
140
+ reason: string;
141
+ }
142
+ export declare class SendReissueBodyDto extends CarrierRequestBaseDto {
143
+ request: ReissueRequestDto;
144
+ }
145
+ export declare class SendRevocationNotificationBodyDto {
146
+ connectionId: string;
147
+ revocationId: string;
148
+ revocationFormat?: string;
149
+ comment?: string;
150
+ }
151
+ export declare class FailExchangeBodyDto {
152
+ code: string;
153
+ description?: string;
154
+ }