@verana-labs/vs-agent-sdk 2.0.0-dev.8 → 2.0.0-pr.767.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 (173) hide show
  1. package/README.md +0 -2
  2. package/build/adminApi/AdminApiError.d.ts +28 -0
  3. package/build/adminApi/AdminApiError.js +60 -0
  4. package/build/adminApi/AdminApiError.js.map +1 -0
  5. package/build/adminApi/didcommModules.d.ts +2 -0
  6. package/build/adminApi/didcommModules.js +8 -0
  7. package/build/adminApi/didcommModules.js.map +1 -0
  8. package/build/adminApi/index.d.ts +4 -0
  9. package/build/adminApi/index.js +21 -0
  10. package/build/adminApi/index.js.map +1 -0
  11. package/build/adminApi/moduleEndpoint.d.ts +8 -0
  12. package/build/adminApi/moduleEndpoint.js +28 -0
  13. package/build/adminApi/moduleEndpoint.js.map +1 -0
  14. package/build/adminApi/pagination/PageDto.d.ts +7 -0
  15. package/build/adminApi/pagination/PageDto.js +50 -0
  16. package/build/adminApi/pagination/PageDto.js.map +1 -0
  17. package/build/adminApi/pagination/PaginationQueryDto.d.ts +11 -0
  18. package/build/adminApi/pagination/PaginationQueryDto.js +46 -0
  19. package/build/adminApi/pagination/PaginationQueryDto.js.map +1 -0
  20. package/build/adminApi/pagination/cursor.d.ts +28 -0
  21. package/build/adminApi/pagination/cursor.js +64 -0
  22. package/build/adminApi/pagination/cursor.js.map +1 -0
  23. package/build/adminApi/pagination/index.d.ts +4 -0
  24. package/build/adminApi/pagination/index.js +21 -0
  25. package/build/adminApi/pagination/index.js.map +1 -0
  26. package/build/adminApi/pagination/paginate.d.ts +27 -0
  27. package/build/adminApi/pagination/paginate.js +77 -0
  28. package/build/adminApi/pagination/paginate.js.map +1 -0
  29. package/build/agent/VsAgent.d.ts +17 -34
  30. package/build/agent/VsAgent.js +75 -205
  31. package/build/agent/VsAgent.js.map +1 -1
  32. package/build/agent/createVsAgent.d.ts +5 -6
  33. package/build/agent/createVsAgent.js +3 -5
  34. package/build/agent/createVsAgent.js.map +1 -1
  35. package/build/blockchain/AnonCredsTrustService.d.ts +62 -0
  36. package/build/blockchain/AnonCredsTrustService.js +256 -0
  37. package/build/blockchain/AnonCredsTrustService.js.map +1 -0
  38. package/build/blockchain/AuthorizationService.d.ts +5 -3
  39. package/build/blockchain/AuthorizationService.js +17 -29
  40. package/build/blockchain/AuthorizationService.js.map +1 -1
  41. package/build/blockchain/IndexerWebSocketService.d.ts +7 -1
  42. package/build/blockchain/IndexerWebSocketService.js +68 -36
  43. package/build/blockchain/IndexerWebSocketService.js.map +1 -1
  44. package/build/blockchain/VeranaChainService.d.ts +26 -19
  45. package/build/blockchain/VeranaChainService.js +136 -152
  46. package/build/blockchain/VeranaChainService.js.map +1 -1
  47. package/build/blockchain/VeranaIndexerService.d.ts +14 -1
  48. package/build/blockchain/VeranaIndexerService.js +122 -8
  49. package/build/blockchain/VeranaIndexerService.js.map +1 -1
  50. package/build/blockchain/handlers/authorizationHandlers.js +2 -2
  51. package/build/blockchain/handlers/authorizationHandlers.js.map +1 -1
  52. package/build/blockchain/handlers/defaultHandlers.js +6 -1
  53. package/build/blockchain/handlers/defaultHandlers.js.map +1 -1
  54. package/build/blockchain/handlers/index.d.ts +1 -0
  55. package/build/blockchain/handlers/index.js +1 -0
  56. package/build/blockchain/handlers/index.js.map +1 -1
  57. package/build/blockchain/handlers/selfIssuanceHandlers.d.ts +13 -0
  58. package/build/blockchain/handlers/selfIssuanceHandlers.js +76 -0
  59. package/build/blockchain/handlers/selfIssuanceHandlers.js.map +1 -0
  60. package/build/blockchain/handlers/stateMutations.d.ts +26 -3
  61. package/build/blockchain/handlers/stateMutations.js +317 -41
  62. package/build/blockchain/handlers/stateMutations.js.map +1 -1
  63. package/build/blockchain/index.d.ts +2 -0
  64. package/build/blockchain/index.js +2 -0
  65. package/build/blockchain/index.js.map +1 -1
  66. package/build/blockchain/indexerMappers.d.ts +3 -0
  67. package/build/blockchain/indexerMappers.js +53 -0
  68. package/build/blockchain/indexerMappers.js.map +1 -0
  69. package/build/blockchain/types.d.ts +13 -69
  70. package/build/blockchain/types.js.map +1 -1
  71. package/build/bootstrap/EcsBootstrapService.d.ts +13 -3
  72. package/build/bootstrap/EcsBootstrapService.js +168 -79
  73. package/build/bootstrap/EcsBootstrapService.js.map +1 -1
  74. package/build/connections/ParentConnectionModule.d.ts +20 -0
  75. package/build/connections/ParentConnectionModule.js +56 -0
  76. package/build/connections/ParentConnectionModule.js.map +1 -0
  77. package/build/credentials/FullTailsFileService.d.ts +0 -1
  78. package/build/credentials/FullTailsFileService.js +0 -49
  79. package/build/credentials/FullTailsFileService.js.map +1 -1
  80. package/build/did/CachedDocumentLoader.d.ts +3 -0
  81. package/build/did/CachedDocumentLoader.js +7 -1
  82. package/build/did/CachedDocumentLoader.js.map +1 -1
  83. package/build/did/CachedWebDidResolver.d.ts +0 -4
  84. package/build/did/CachedWebDidResolver.js +1 -5
  85. package/build/did/CachedWebDidResolver.js.map +1 -1
  86. package/build/did/artifactServices.d.ts +12 -0
  87. package/build/did/artifactServices.js +48 -0
  88. package/build/did/artifactServices.js.map +1 -0
  89. package/build/did/legacyDidWeb.d.ts +6 -4
  90. package/build/did/legacyDidWeb.js +17 -14
  91. package/build/did/legacyDidWeb.js.map +1 -1
  92. package/build/did/publicDid.d.ts +4 -0
  93. package/build/did/publicDid.js +19 -0
  94. package/build/did/publicDid.js.map +1 -0
  95. package/build/events/BaseMessageEvents.js +139 -5
  96. package/build/events/BaseMessageEvents.js.map +1 -1
  97. package/build/events/ConnectionEvents.js +154 -86
  98. package/build/events/ConnectionEvents.js.map +1 -1
  99. package/build/events/VsAgentEvents.d.ts +11 -9
  100. package/build/events/VsAgentEvents.js +8 -1
  101. package/build/events/VsAgentEvents.js.map +1 -1
  102. package/build/events/VtFlowEvents.d.ts +1 -1
  103. package/build/events/VtFlowEvents.js +29 -17
  104. package/build/events/VtFlowEvents.js.map +1 -1
  105. package/build/index.d.ts +7 -1
  106. package/build/index.js +15 -2
  107. package/build/index.js.map +1 -1
  108. package/build/plugins/setupBaseDidComm.js +9 -12
  109. package/build/plugins/setupBaseDidComm.js.map +1 -1
  110. package/build/transports/VsAgentWsInboundTransport.d.ts +1 -1
  111. package/build/transports/VsAgentWsInboundTransport.js +20 -14
  112. package/build/transports/VsAgentWsInboundTransport.js.map +1 -1
  113. package/build/types.d.ts +14 -13
  114. package/build/types.js +1 -2
  115. package/build/types.js.map +1 -1
  116. package/build/utils/agent.d.ts +29 -4
  117. package/build/utils/agent.js +91 -22
  118. package/build/utils/agent.js.map +1 -1
  119. package/build/utils/boundedFetch.d.ts +13 -0
  120. package/build/utils/boundedFetch.js +47 -0
  121. package/build/utils/boundedFetch.js.map +1 -0
  122. package/build/utils/didReadiness.d.ts +9 -0
  123. package/build/utils/didReadiness.js +42 -0
  124. package/build/utils/didReadiness.js.map +1 -0
  125. package/build/utils/ecsClaims.d.ts +46 -0
  126. package/build/utils/ecsClaims.js +115 -0
  127. package/build/utils/ecsClaims.js.map +1 -0
  128. package/build/utils/ecsService.d.ts +8 -0
  129. package/build/utils/ecsService.js +23 -0
  130. package/build/utils/ecsService.js.map +1 -0
  131. package/build/utils/index.d.ts +6 -0
  132. package/build/utils/index.js +6 -0
  133. package/build/utils/index.js.map +1 -1
  134. package/build/utils/selfIssuedEcsCredential.d.ts +8 -0
  135. package/build/utils/selfIssuedEcsCredential.js +158 -0
  136. package/build/utils/selfIssuedEcsCredential.js.map +1 -0
  137. package/build/utils/setupSelfTr.d.ts +35 -74
  138. package/build/utils/setupSelfTr.js +93 -312
  139. package/build/utils/setupSelfTr.js.map +1 -1
  140. package/build/utils/trustCredentialStore.d.ts +78 -9
  141. package/build/utils/trustCredentialStore.js +319 -126
  142. package/build/utils/trustCredentialStore.js.map +1 -1
  143. package/build/utils/typeMetadata.d.ts +43 -0
  144. package/build/utils/typeMetadata.js +77 -0
  145. package/build/utils/typeMetadata.js.map +1 -0
  146. package/build/utils/util.d.ts +19 -0
  147. package/build/utils/util.js +24 -0
  148. package/build/utils/util.js.map +1 -1
  149. package/build/utils/vcdm2.d.ts +34 -0
  150. package/build/utils/vcdm2.js +60 -0
  151. package/build/utils/vcdm2.js.map +1 -0
  152. package/build/utils/vtjscResolver.d.ts +23 -0
  153. package/build/utils/vtjscResolver.js +54 -0
  154. package/build/utils/vtjscResolver.js.map +1 -0
  155. package/build/vtFlow/VtFlowOrchestrator.d.ts +107 -14
  156. package/build/vtFlow/VtFlowOrchestrator.js +734 -109
  157. package/build/vtFlow/VtFlowOrchestrator.js.map +1 -1
  158. package/build/vtFlow/assertVerifiableService.d.ts +1 -0
  159. package/build/vtFlow/assertVerifiableService.js +45 -5
  160. package/build/vtFlow/assertVerifiableService.js.map +1 -1
  161. package/build/vtFlow/ecsIssuanceExemption.d.ts +12 -0
  162. package/build/vtFlow/ecsIssuanceExemption.js +84 -0
  163. package/build/vtFlow/ecsIssuanceExemption.js.map +1 -0
  164. package/build/vtFlow/index.d.ts +1 -0
  165. package/build/vtFlow/index.js +1 -0
  166. package/build/vtFlow/index.js.map +1 -1
  167. package/package.json +18 -12
  168. package/build/did/migrateWebVhLog.d.ts +0 -34
  169. package/build/did/migrateWebVhLog.js +0 -230
  170. package/build/did/migrateWebVhLog.js.map +0 -1
  171. package/build/did/migrateWebVhVersionTime.d.ts +0 -9
  172. package/build/did/migrateWebVhVersionTime.js +0 -191
  173. package/build/did/migrateWebVhVersionTime.js.map +0 -1
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.toParticipant = toParticipant;
4
+ exports.toCredentialSchema = toCredentialSchema;
5
+ const types_1 = require("./types");
6
+ const ROLE = {
7
+ [types_1.ParticipantRole.Issuer]: 1,
8
+ [types_1.ParticipantRole.Verifier]: 2,
9
+ [types_1.ParticipantRole.IssuerGrantor]: 3,
10
+ [types_1.ParticipantRole.VerifierGrantor]: 4,
11
+ [types_1.ParticipantRole.Ecosystem]: 5,
12
+ [types_1.ParticipantRole.Holder]: 6,
13
+ };
14
+ const OP_STATE = {
15
+ PENDING: types_1.ValidationState.PENDING,
16
+ VALIDATED: types_1.ValidationState.VALIDATED,
17
+ TERMINATED: types_1.ValidationState.TERMINATED,
18
+ };
19
+ const ONBOARDING_MODE = {
20
+ OPEN: 1,
21
+ ECOSYSTEM_ONBOARDING_PROCESS: 2,
22
+ GRANTOR_ONBOARDING_PROCESS: 3,
23
+ };
24
+ const date = (v) => (v ? new Date(v) : undefined);
25
+ function toParticipant(dto) {
26
+ var _a, _b, _c, _d, _e;
27
+ return {
28
+ id: dto.id,
29
+ schemaId: dto.schema_id,
30
+ role: (_a = ROLE[dto.role]) !== null && _a !== void 0 ? _a : 0,
31
+ did: (_b = dto.did) !== null && _b !== void 0 ? _b : '',
32
+ corporation: '',
33
+ validatorParticipantId: (_c = dto.validator_participant_id) !== null && _c !== void 0 ? _c : 0,
34
+ opState: dto.op_state ? ((_d = OP_STATE[dto.op_state]) !== null && _d !== void 0 ? _d : types_1.ValidationState.UNSPECIFIED) : undefined,
35
+ opSummaryDigest: (_e = dto.op_summary_digest) !== null && _e !== void 0 ? _e : '',
36
+ revoked: date(dto.revoked),
37
+ slashed: date(dto.slashed),
38
+ };
39
+ }
40
+ function toCredentialSchema(dto) {
41
+ var _a, _b, _c, _d;
42
+ return {
43
+ id: dto.id,
44
+ ecosystemId: dto.ecosystem_id,
45
+ jsonSchema: dto.json_schema,
46
+ digestAlgorithm: dto.digest_algorithm,
47
+ issuerOnboardingMode: (_b = ONBOARDING_MODE[(_a = dto.issuer_onboarding_mode) !== null && _a !== void 0 ? _a : '']) !== null && _b !== void 0 ? _b : 0,
48
+ verifierOnboardingMode: (_d = ONBOARDING_MODE[(_c = dto.verifier_onboarding_mode) !== null && _c !== void 0 ? _c : '']) !== null && _d !== void 0 ? _d : 0,
49
+ holderOnboardingMode: 0,
50
+ archived: date(dto.archived),
51
+ };
52
+ }
53
+ //# sourceMappingURL=indexerMappers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indexerMappers.js","sourceRoot":"","sources":["../../src/blockchain/indexerMappers.ts"],"names":[],"mappings":";;AAgCA,sCAaC;AAED,gDAWC;AA1DD,mCAOgB;AAEhB,MAAM,IAAI,GAA2B;IACnC,CAAC,uBAAe,CAAC,MAAM,CAAC,EAAE,CAAC;IAC3B,CAAC,uBAAe,CAAC,QAAQ,CAAC,EAAE,CAAC;IAC7B,CAAC,uBAAe,CAAC,aAAa,CAAC,EAAE,CAAC;IAClC,CAAC,uBAAe,CAAC,eAAe,CAAC,EAAE,CAAC;IACpC,CAAC,uBAAe,CAAC,SAAS,CAAC,EAAE,CAAC;IAC9B,CAAC,uBAAe,CAAC,MAAM,CAAC,EAAE,CAAC;CAC5B,CAAA;AAED,MAAM,QAAQ,GAAoC;IAChD,OAAO,EAAE,uBAAe,CAAC,OAAO;IAChC,SAAS,EAAE,uBAAe,CAAC,SAAS;IACpC,UAAU,EAAE,uBAAe,CAAC,UAAU;CACvC,CAAA;AAED,MAAM,eAAe,GAA2B;IAC9C,IAAI,EAAE,CAAC;IACP,4BAA4B,EAAE,CAAC;IAC/B,0BAA0B,EAAE,CAAC;CAC9B,CAAA;AAED,MAAM,IAAI,GAAG,CAAC,CAA4B,EAAoB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;AAE9F,SAAgB,aAAa,CAAC,GAAmB;;IAC/C,OAAO;QACL,EAAE,EAAE,GAAG,CAAC,EAAE;QACV,QAAQ,EAAE,GAAG,CAAC,SAAS;QACvB,IAAI,EAAE,MAAA,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,mCAAI,CAAC;QACzB,GAAG,EAAE,MAAA,GAAG,CAAC,GAAG,mCAAI,EAAE;QAClB,WAAW,EAAE,EAAE;QACf,sBAAsB,EAAE,MAAA,GAAG,CAAC,wBAAwB,mCAAI,CAAC;QACzD,OAAO,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAA,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,mCAAI,uBAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS;QAC3F,eAAe,EAAE,MAAA,GAAG,CAAC,iBAAiB,mCAAI,EAAE;QAC5C,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;QAC1B,OAAO,EAAE,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;KAC3B,CAAA;AACH,CAAC;AAED,SAAgB,kBAAkB,CAAC,GAAwB;;IACzD,OAAO;QACL,EAAE,EAAE,GAAG,CAAC,EAAE;QACV,WAAW,EAAE,GAAG,CAAC,YAAY;QAC7B,UAAU,EAAE,GAAG,CAAC,WAAW;QAC3B,eAAe,EAAE,GAAG,CAAC,gBAAgB;QACrC,oBAAoB,EAAE,MAAA,eAAe,CAAC,MAAA,GAAG,CAAC,sBAAsB,mCAAI,EAAE,CAAC,mCAAI,CAAC;QAC5E,sBAAsB,EAAE,MAAA,eAAe,CAAC,MAAA,GAAG,CAAC,wBAAwB,mCAAI,EAAE,CAAC,mCAAI,CAAC;QAChF,oBAAoB,EAAE,CAAC;QACvB,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC;KAC7B,CAAA;AACH,CAAC"}
@@ -57,6 +57,10 @@ export interface IndexerSubscribeMessage {
57
57
  dids?: string[];
58
58
  corporationId?: number;
59
59
  }
60
+ export interface IndexerSubscribedMessage {
61
+ type: 'subscribed';
62
+ block: number;
63
+ }
60
64
  export interface IndexerEventsResponse {
61
65
  events: IndexerEventRecord[];
62
66
  count: number;
@@ -131,6 +135,7 @@ export interface CredentialSchemaDto {
131
135
  digest_algorithm: string;
132
136
  issuer_onboarding_mode?: string;
133
137
  verifier_onboarding_mode?: string;
138
+ holder_validation_validity_period?: number;
134
139
  archived: string | null;
135
140
  created: string;
136
141
  modified: string;
@@ -162,10 +167,16 @@ export interface ParticipantDto {
162
167
  op_state?: string;
163
168
  revoked: string | null;
164
169
  slashed: string | null;
165
- effective_until?: string;
170
+ effective_from?: string | null;
171
+ effective_until?: string | null;
166
172
  modified: string;
167
173
  validator_participant_id?: number | null;
168
174
  op_summary_digest?: string;
175
+ validation_fees?: number;
176
+ issuance_fees?: number;
177
+ verification_fees?: number;
178
+ issuance_fee_discount?: number;
179
+ verification_fee_discount?: number;
169
180
  }
170
181
  export interface CorporationDto {
171
182
  id: number;
@@ -191,18 +202,6 @@ export interface DigestDto {
191
202
  digest: string;
192
203
  created: string;
193
204
  }
194
- export interface RawParticipant {
195
- id: number;
196
- schemaId: number;
197
- role: number;
198
- did: string;
199
- corporationId?: number;
200
- validatorParticipantId: number;
201
- opState?: number;
202
- opSummaryDigest?: string;
203
- revoked: Date | undefined;
204
- slashed: Date | undefined;
205
- }
206
205
  export interface Ecosystem {
207
206
  id: number;
208
207
  did: string;
@@ -220,10 +219,6 @@ export interface CredentialSchema {
220
219
  holderOnboardingMode: number;
221
220
  archived: Date | undefined;
222
221
  }
223
- export interface StoredDigest {
224
- digest: string;
225
- created: Date | undefined;
226
- }
227
222
  export interface OperatorAuthorization {
228
223
  id: number;
229
224
  corporationId: number;
@@ -249,64 +244,13 @@ export interface VsOperatorAuthorization {
249
244
  vsOperator: string;
250
245
  records: ParticipantAuthorizationRecord[];
251
246
  }
252
- export interface ParticipantQueryClient {
253
- GetParticipant(req: {
254
- id: number;
255
- }): Promise<{
256
- participant?: RawParticipant;
257
- }>;
258
- FindParticipantsWithDID(req: object): Promise<{
259
- participants: RawParticipant[];
260
- }>;
261
- GetParticipantSession(req: {
262
- id: string;
263
- }): Promise<{
264
- session?: unknown;
265
- }>;
266
- }
267
- export interface EcosystemQueryClient {
268
- GetEcosystem(req: {
269
- id: number;
270
- }): Promise<{
271
- ecosystem?: Ecosystem;
272
- }>;
273
- }
274
- export interface CredentialSchemaQueryClient {
275
- GetCredentialSchema(req: {
276
- id: number;
277
- }): Promise<{
278
- schema?: CredentialSchema;
279
- }>;
280
- }
281
- export interface DigestQueryClient {
282
- GetDigest(req: {
283
- digest: string;
284
- }): Promise<{
285
- digest?: StoredDigest;
286
- }>;
287
- }
288
- export interface DelegationQueryClient {
289
- ListOperatorAuthorizations(req: {
290
- corporationId: number;
291
- operator: string;
292
- responseMaxSize: number;
293
- }): Promise<{
294
- operatorAuthorizations: OperatorAuthorization[];
295
- }>;
296
- ListVSOperatorAuthorizations(req: {
297
- corporationId: number;
298
- vsOperator: string;
299
- responseMaxSize: number;
300
- }): Promise<{
301
- vsOperatorAuthorizations: VsOperatorAuthorization[];
302
- }>;
303
- }
304
247
  export interface VeranaChainConfig {
305
248
  rpcUrl: string;
306
249
  chainId?: string;
307
250
  mnemonic: string;
308
251
  logger: BaseLogger;
309
252
  gasPrice?: string;
253
+ gasAdjustment?: number;
310
254
  corporationAddress?: string;
311
255
  autoTriggerResolver?: boolean;
312
256
  }
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/blockchain/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,mEAAe,CAAA;IACf,2DAAW,CAAA;IACX,+DAAa,CAAA;IACb,iEAAc,CAAA;AAChB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAeY,QAAA,oBAAoB,GAAG,QAAQ,CAAA;AAC/B,QAAA,SAAS,GAAG,8BAA8B,CAAA;AA0IvD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,mDAAgC,CAAA;IAChC,uDAAoC,CAAA;IACpC,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;AACnB,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/blockchain/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAKX;AALD,WAAY,eAAe;IACzB,mEAAe,CAAA;IACf,2DAAW,CAAA;IACX,+DAAa,CAAA;IACb,iEAAc,CAAA;AAChB,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B;AAeY,QAAA,oBAAoB,GAAG,QAAQ,CAAA;AAC/B,QAAA,SAAS,GAAG,8BAA8B,CAAA;AAgJvD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,wCAAqB,CAAA;IACrB,mDAAgC,CAAA;IAChC,uDAAoC,CAAA;IACpC,0CAAuB,CAAA;IACvB,oCAAiB,CAAA;AACnB,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAED,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,uCAAmB,CAAA;IACnB,qCAAiB,CAAA;AACnB,CAAC,EARW,gBAAgB,gCAAhB,gBAAgB,QAQ3B"}
@@ -16,10 +16,19 @@ export declare class EcsBootstrapService {
16
16
  run(): Promise<void>;
17
17
  private runStandalone;
18
18
  private preflight;
19
+ private operatorSkipReason;
19
20
  private acceptPendingOffers;
21
+ /**
22
+ * StartParticipantOP pays a trust deposit, and it cannot be undone. The onboarding request that
23
+ * must follow it travels over DIDComm from the chain event handler, which catches its own
24
+ * failure. The indexer marks that block processed all the same and never replays it, so an
25
+ * unreachable validator leaves the entry at PENDING for ever. This boot step closes that gap.
26
+ */
27
+ private resumePendingOnboardings;
28
+ private resumeOnboarding;
29
+ private isSelfValidated;
20
30
  private discoverEcsSchemas;
21
31
  private discoverFromEcosystem;
22
- private classifySchema;
23
32
  private ensureHolderParticipant;
24
33
  private findOwnActiveRoot;
25
34
  private ensureSelfIssuedParticipant;
@@ -28,6 +37,7 @@ export declare class EcsBootstrapService {
28
37
  private triggerResolverBestEffort;
29
38
  private isUsableParticipant;
30
39
  private runDelegated;
31
- private findParentServiceSchemaId;
32
- private awaitDelegatedOutcome;
40
+ private findParentServiceIssuer;
41
+ private assertTrustedEcosystem;
42
+ private onboardingClaims;
33
43
  }
@@ -1,22 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EcsBootstrapService = void 0;
4
+ const didcomm_1 = require("@credo-ts/didcomm");
4
5
  const credo_ts_didcomm_vt_flow_1 = require("@verana-labs/credo-ts-didcomm-vt-flow");
5
6
  const vs_agent_model_1 = require("@verana-labs/vs-agent-model");
6
7
  const blockchain_1 = require("../blockchain");
7
8
  const types_1 = require("../types");
9
+ const didReadiness_1 = require("../utils/didReadiness");
10
+ const VtFlowOrchestrator_1 = require("../vtFlow/VtFlowOrchestrator");
11
+ const ecsClaims_1 = require("../utils/ecsClaims");
8
12
  const START_OP_MSG = '/verana.pp.v1.MsgStartParticipantOP';
9
13
  const SELF_CREATE_MSG = '/verana.pp.v1.MsgSelfCreateParticipant';
10
14
  const ISSUER_ONBOARDING_MODE_OPEN = 1;
11
15
  const ISSUER_ONBOARDING_MODE_GRANTOR = 3;
12
- const ECS_TITLE_BY_TYPE = {
13
- ServiceCredential: vs_agent_model_1.ECS.SERVICE,
14
- OrganizationCredential: vs_agent_model_1.ECS.ORG,
15
- PersonaCredential: vs_agent_model_1.ECS.PERSONA,
16
- UserAgentCredential: vs_agent_model_1.ECS.USER_AGENT,
17
- BadgeCredential: vs_agent_model_1.ECS.BADGE,
18
- };
19
- const DELEGATED_OUTCOME_TIMEOUT_MS = 15 * 60000;
20
16
  class EcsBootstrapService {
21
17
  constructor(agent, indexer, options, logger) {
22
18
  this.agent = agent;
@@ -25,6 +21,10 @@ class EcsBootstrapService {
25
21
  this.logger = logger;
26
22
  }
27
23
  async run() {
24
+ // Both repair steps sign nothing on chain, so they run before any gate, in either mode, and
25
+ // also for a deployment whose participants the Corporation operator provisions out of band.
26
+ await this.acceptPendingOffers();
27
+ await this.resumePendingOnboardings();
28
28
  if (this.options.mode === 'delegated')
29
29
  return this.runDelegated();
30
30
  return this.runStandalone();
@@ -32,12 +32,11 @@ class EcsBootstrapService {
32
32
  async runStandalone() {
33
33
  const skip = await this.preflight();
34
34
  if (skip) {
35
- this.logger.info(`[EcsBootstrap] standalone bootstrap skipped: ${skip}`);
35
+ this.logger.info(`[EcsBootstrap] standalone bootstrap skipped: ${skip}; this agent expects its participants to be provisioned out of band`);
36
36
  return;
37
37
  }
38
38
  const chain = this.agent.veranaChain;
39
39
  const indexer = this.indexer;
40
- await this.acceptPendingOffers();
41
40
  const { credential, credentialType, service } = await this.discoverEcsSchemas(indexer);
42
41
  await this.ensureHolderParticipant(chain, indexer, credential, credentialType);
43
42
  await this.ensureServiceIssuer(chain, indexer, service);
@@ -53,9 +52,15 @@ class EcsBootstrapService {
53
52
  return 'the Verana indexer is not configured';
54
53
  if (!((_a = this.options.trustedEcosystemDids) === null || _a === void 0 ? void 0 : _a.length))
55
54
  return 'TRUSTED_ECS_ECOSYSTEM_DIDS is not set';
56
- const operatorAuths = await chain.listOperatorAuthorizations();
57
- if (!operatorAuths.some(a => a.msgTypes.includes(START_OP_MSG))) {
58
- return `operator ${chain.address} has no OperatorAuthorization covering MsgStartParticipantOP`;
55
+ return this.operatorSkipReason(chain);
56
+ }
57
+ // StartParticipantOP costs a trust deposit and a fee, so both the authorization and the funds
58
+ // must be there. Neither is a misconfiguration: the operator may provision the entry itself.
59
+ async operatorSkipReason(chain) {
60
+ var _a, _b;
61
+ const operatorAuths = (_b = (await ((_a = this.indexer) === null || _a === void 0 ? void 0 : _a.listOperatorAuthorizations(chain.address)))) !== null && _b !== void 0 ? _b : [];
62
+ if (!operatorAuths.some(auth => auth.msgTypes.includes(START_OP_MSG))) {
63
+ return `operator ${chain.address} holds no OperatorAuthorization covering MsgStartParticipantOP`;
59
64
  }
60
65
  const balance = await chain.getBalance();
61
66
  if (Number(balance.amount) === 0) {
@@ -72,12 +77,33 @@ class EcsBootstrapService {
72
77
  role: credo_ts_didcomm_vt_flow_1.VtFlowRole.Applicant,
73
78
  });
74
79
  for (const record of pending) {
80
+ const connection = await this.agent.didcomm.connections.findById(record.connectionId);
81
+ if (!(connection === null || connection === void 0 ? void 0 : connection.isReady) && record.applicantParticipantId) {
82
+ try {
83
+ await new VtFlowOrchestrator_1.VtFlowOrchestrator(this.agent).startOnboardingProcess({
84
+ applicantParticipantId: Number(record.applicantParticipantId),
85
+ });
86
+ this.logger.info(`[EcsBootstrap] reconnected flow ${record.id} so the validator can offer again`);
87
+ }
88
+ catch (error) {
89
+ this.logger.warn(`[EcsBootstrap] could not reconnect flow ${record.id}: ${error.message}`);
90
+ }
91
+ continue;
92
+ }
75
93
  if (!record.credentialExchangeRecordId)
76
94
  continue;
77
95
  try {
78
- await this.agent.didcomm.credentials.acceptOffer({
79
- credentialExchangeRecordId: record.credentialExchangeRecordId,
80
- });
96
+ const exchange = await this.agent.didcomm.credentials.getById(record.credentialExchangeRecordId);
97
+ if (exchange.state === didcomm_1.DidCommCredentialState.CredentialReceived) {
98
+ const { verifyCredential } = this.agent.dependencyManager.resolve(credo_ts_didcomm_vt_flow_1.VtFlowModuleConfig);
99
+ const agentContext = this.agent.context;
100
+ if (await (verifyCredential === null || verifyCredential === void 0 ? void 0 : verifyCredential({ agentContext, record, credentialExchangeRecord: exchange }))) {
101
+ await this.agent.didcomm.credentials.acceptCredential({ credentialExchangeRecordId: exchange.id });
102
+ this.logger.info(`[EcsBootstrap] accepted the verified credential of flow ${record.id}`);
103
+ }
104
+ continue;
105
+ }
106
+ await api.acceptCredentialOffer(record.id);
81
107
  this.logger.info(`[EcsBootstrap] re-accepted the pending credential offer for flow ${record.id}`);
82
108
  }
83
109
  catch (error) {
@@ -85,6 +111,64 @@ class EcsBootstrapService {
85
111
  }
86
112
  }
87
113
  }
114
+ /**
115
+ * StartParticipantOP pays a trust deposit, and it cannot be undone. The onboarding request that
116
+ * must follow it travels over DIDComm from the chain event handler, which catches its own
117
+ * failure. The indexer marks that block processed all the same and never replays it, so an
118
+ * unreachable validator leaves the entry at PENDING for ever. This boot step closes that gap.
119
+ */
120
+ async resumePendingOnboardings() {
121
+ if (!this.indexer || !this.agent.did)
122
+ return;
123
+ const own = await this.indexer.listParticipants({ did: this.agent.did }).catch(() => []);
124
+ for (const participant of own) {
125
+ if (participant.op_state !== 'PENDING' || participant.revoked || participant.slashed)
126
+ continue;
127
+ try {
128
+ await this.resumeOnboarding(participant);
129
+ }
130
+ catch (error) {
131
+ this.logger.warn(`[EcsBootstrap] could not resume the onboarding of participant ${participant.id}: ${error.message}`);
132
+ }
133
+ }
134
+ }
135
+ async resumeOnboarding(participant) {
136
+ // A flow that a peer ended on purpose is not an interruption; only an error deserves a retry.
137
+ const api = this.agent.dependencyManager.resolve(credo_ts_didcomm_vt_flow_1.VtFlowApi);
138
+ const [latest] = (await api.findAllByQuery({
139
+ applicantParticipantId: String(participant.id),
140
+ role: credo_ts_didcomm_vt_flow_1.VtFlowRole.Applicant,
141
+ flowVariant: credo_ts_didcomm_vt_flow_1.VtFlowVariant.OnboardingProcess,
142
+ })).sort((a, b) => b.createdAt.getTime() - a.createdAt.getTime());
143
+ if (latest && (0, credo_ts_didcomm_vt_flow_1.isVtFlowTerminalState)(latest.state) && latest.state !== credo_ts_didcomm_vt_flow_1.VtFlowState.Error)
144
+ return;
145
+ // The agent validates its own entry when it controls the ECOSYSTEM root of the schema, so
146
+ // there is no peer to send a request to: the interrupted step is the chain outcome itself.
147
+ if (await this.isSelfValidated(participant)) {
148
+ const chain = this.agent.veranaChain;
149
+ if (!chain)
150
+ return;
151
+ await chain.setParticipantOPToValidated({
152
+ id: participant.id,
153
+ validationFees: 0,
154
+ issuanceFees: 0,
155
+ verificationFees: 0,
156
+ });
157
+ await this.triggerResolverBestEffort(chain, participant.id);
158
+ this.logger.info(`[EcsBootstrap] validated the interrupted self-issued participant ${participant.id}`);
159
+ return;
160
+ }
161
+ await (0, didReadiness_1.waitUntilOwnDidIsPubliclyResolvable)(this.agent, this.logger);
162
+ const claims = await this.onboardingClaims(participant.schema_id);
163
+ const record = await new VtFlowOrchestrator_1.VtFlowOrchestrator(this.agent).startOnboardingProcess(Object.assign({ applicantParticipantId: participant.id }, (claims ? { claims } : {})));
164
+ this.logger.info(`[EcsBootstrap] checked the onboarding of participant ${participant.id} (flow ${record.id}, state ${record.state})`);
165
+ }
166
+ async isSelfValidated(participant) {
167
+ if (participant.validator_participant_id == null)
168
+ return false;
169
+ const validator = await this.indexer.getParticipant(participant.validator_participant_id).catch(() => undefined);
170
+ return (validator === null || validator === void 0 ? void 0 : validator.did) === this.agent.did;
171
+ }
88
172
  // WL-ECS: only ecosystems on the configured allowlist may provide the essential credential schemas.
89
173
  async discoverEcsSchemas(indexer) {
90
174
  const ecosystems = await indexer.listEcosystems();
@@ -108,7 +192,7 @@ class EcsBootstrapService {
108
192
  const schemas = await indexer.listCredentialSchemas(ecosystemId);
109
193
  const classified = await Promise.all(schemas
110
194
  .filter(schema => !schema.archived)
111
- .map(async (schema) => ({ schema, type: await this.classifySchema(schema) })));
195
+ .map(async (schema) => ({ schema, type: await (0, vs_agent_model_1.classifyEcsSchema)(schema.json_schema) })));
112
196
  const byType = (type) => { var _a; return (_a = classified.find(c => c.type === type)) === null || _a === void 0 ? void 0 : _a.schema; };
113
197
  const service = byType(vs_agent_model_1.ECS.SERVICE);
114
198
  if (!service)
@@ -120,20 +204,6 @@ class EcsBootstrapService {
120
204
  throw new Error('no ECS Organization or Persona credential schema');
121
205
  return { credential, credentialType: org ? vs_agent_model_1.ECS.ORG : vs_agent_model_1.ECS.PERSONA, service };
122
206
  }
123
- async classifySchema(schema) {
124
- var _a;
125
- try {
126
- const parsed = JSON.parse(schema.json_schema);
127
- const byDigest = await (0, vs_agent_model_1.identifySchema)(parsed);
128
- if (byDigest)
129
- return byDigest;
130
- const title = typeof parsed.title === 'string' ? parsed.title : '';
131
- return (_a = ECS_TITLE_BY_TYPE[title]) !== null && _a !== void 0 ? _a : null;
132
- }
133
- catch (_b) {
134
- return null;
135
- }
136
- }
137
207
  async ensureHolderParticipant(chain, indexer, schema, credentialType) {
138
208
  // If this agent controls the schema's ECOSYSTEM root, it has no external ISSUER to seek a
139
209
  // HOLDER credential from — it must become the ISSUER itself (see ensureSelfIssuedParticipant).
@@ -216,11 +286,14 @@ class EcsBootstrapService {
216
286
  this.logger.info(`[EcsBootstrap] reusing Service ISSUER participant ${usable.id}`);
217
287
  return;
218
288
  }
219
- const onChainSchema = await chain.getCredentialSchema(schema.id);
289
+ const onChainSchema = await indexer
290
+ .getCredentialSchema(schema.id)
291
+ .then(blockchain_1.toCredentialSchema)
292
+ .catch(() => undefined);
220
293
  if (!onChainSchema)
221
294
  throw new Error(`Service schema ${schema.id} not found on chain`);
222
295
  if (onChainSchema.issuerOnboardingMode === ISSUER_ONBOARDING_MODE_OPEN) {
223
- const operatorAuths = await chain.listOperatorAuthorizations();
296
+ const operatorAuths = await indexer.listOperatorAuthorizations(chain.address);
224
297
  if (!operatorAuths.some(a => a.msgTypes.includes(SELF_CREATE_MSG))) {
225
298
  throw new Error(`operator ${chain.address} has no OperatorAuthorization covering MsgSelfCreateParticipant (required for OPEN issuer onboarding)`);
226
299
  }
@@ -282,6 +355,9 @@ class EcsBootstrapService {
282
355
  throw new Error('delegated bootstrap requires a public DID');
283
356
  if (!this.indexer)
284
357
  throw new Error('delegated bootstrap requires the Verana indexer');
358
+ const chain = this.agent.veranaChain;
359
+ if (!chain)
360
+ throw new Error('delegated bootstrap requires the Verana chain');
285
361
  if (!this.options.verifyPeer) {
286
362
  throw new Error(`cannot verify parent VS ${parentDid}: verifiable public registries are not configured (set VERANA_CHAIN_ID)`);
287
363
  }
@@ -289,68 +365,81 @@ class EcsBootstrapService {
289
365
  if (!verified) {
290
366
  throw new Error(`parent VS ${parentDid} is not a Verifiable Service`);
291
367
  }
292
- const schemaId = await this.findParentServiceSchemaId(parentDid);
293
- let connectionId;
294
- try {
295
- const { connectionRecord } = await this.agent.didcomm.oob.receiveImplicitInvitation({
296
- did: parentDid,
297
- ourDid: this.agent.did,
298
- label: this.agent.label,
299
- didCommVersion: 'v2',
300
- });
301
- if (!connectionRecord)
302
- throw new Error('no connection record returned');
303
- const ready = await this.agent.didcomm.connections.returnWhenIsConnected(connectionRecord.id);
304
- connectionId = ready.id;
368
+ const validator = await this.findParentServiceIssuer(parentDid);
369
+ await this.assertTrustedEcosystem(validator.schema_id);
370
+ // An existing entry means the process already ran, or the operator provisioned it.
371
+ const own = await this.indexer.listParticipants({
372
+ did: this.agent.did,
373
+ role: blockchain_1.ParticipantRole.Holder,
374
+ schemaId: validator.schema_id,
375
+ });
376
+ const existing = own.find(participant => this.isUsableParticipant(participant));
377
+ if (existing) {
378
+ // The parent named by AGENT_DELEGATED_PARENT_VS_DID must be the validator of the entry;
379
+ // any other validator would issue the Service credential of another accountable party.
380
+ if (Number(existing.validator_participant_id) !== validator.id) {
381
+ throw new Error(`HOLDER participant ${existing.id} for the ECS Service schema ${validator.schema_id} names validator ${existing.validator_participant_id}, not the parent VS ${parentDid} (validator ${validator.id})`);
382
+ }
383
+ this.logger.info(`[EcsBootstrap] HOLDER participant ${existing.id} for the ECS Service schema ${validator.schema_id} already exists; the onboarding process continues on its own`);
384
+ return;
305
385
  }
306
- catch (error) {
307
- throw new Error(`parent VS ${parentDid} is unreachable: ${error.message}`);
386
+ // [VSA-VTI-FLOW-OP-NEW] step 1: the applicant submits StartParticipantOP. The agent then
387
+ // reacts to its own chain event and sends the onboarding request, so nothing is awaited here.
388
+ // Direct Issuance does not apply: it needs holder_onboarding_mode = PERMISSIONLESS, and the
389
+ // ECS Service schema uses ISSUER_ONBOARDING_PROCESS.
390
+ const skip = await this.operatorSkipReason(chain);
391
+ if (skip) {
392
+ this.logger.info(`[EcsBootstrap] delegated bootstrap skipped: ${skip}; this agent expects its HOLDER participant to be provisioned out of band, with validator ${validator.id}`);
393
+ return;
308
394
  }
309
- const api = this.agent.dependencyManager.resolve(credo_ts_didcomm_vt_flow_1.VtFlowApi);
310
- const record = await api.sendIssuanceRequest({
311
- connectionId,
312
- schemaId: String(schemaId),
313
- agentParticipantId: '0',
314
- walletAgentParticipantId: '0',
395
+ const { participantId } = await chain.startParticipantOP({
396
+ role: types_1.HOLDER_PARTICIPANT_TYPE,
397
+ validatorParticipantId: validator.id,
398
+ did: this.agent.did,
315
399
  });
316
- this.logger.info(`[EcsBootstrap] requested the Service credential (schema ${schemaId}) from parent VS ${parentDid}`);
317
- await this.awaitDelegatedOutcome(record.id, parentDid);
400
+ this.logger.info(`[EcsBootstrap] started HOLDER onboarding ${participantId} for the ECS Service schema ${validator.schema_id} with parent VS ${parentDid} (validator ${validator.id})`);
318
401
  }
319
- async findParentServiceSchemaId(parentDid) {
402
+ async findParentServiceIssuer(parentDid) {
320
403
  const participants = await this.indexer.listParticipants({
321
404
  did: parentDid,
322
405
  role: blockchain_1.ParticipantRole.Issuer,
323
406
  participantState: blockchain_1.ParticipantState.Active,
324
407
  });
325
408
  for (const participant of participants) {
409
+ if (participant.revoked || participant.slashed)
410
+ continue;
326
411
  const schema = await this.indexer.getCredentialSchema(participant.schema_id).catch(() => undefined);
327
412
  if (!schema)
328
413
  continue;
329
- if ((await this.classifySchema(schema)) === vs_agent_model_1.ECS.SERVICE)
330
- return schema.id;
414
+ if ((await (0, vs_agent_model_1.classifyEcsSchema)(schema.json_schema)) === vs_agent_model_1.ECS.SERVICE)
415
+ return participant;
331
416
  }
332
417
  throw new Error(`parent VS ${parentDid} holds no active ISSUER participant for an ECS Service schema`);
333
418
  }
334
- awaitDelegatedOutcome(recordId, parentDid) {
335
- return new Promise((resolve, reject) => {
336
- const timer = setTimeout(() => {
337
- reject(new Error(`parent VS ${parentDid} did not complete the issuance in time`));
338
- }, DELEGATED_OUTCOME_TIMEOUT_MS);
339
- timer.unref();
340
- this.agent.events.on(credo_ts_didcomm_vt_flow_1.VtFlowEventTypes.VtFlowStateChanged, ({ payload }) => {
341
- if (payload.vtFlowRecordId !== recordId)
342
- return;
343
- if (payload.state === credo_ts_didcomm_vt_flow_1.VtFlowState.Completed) {
344
- clearTimeout(timer);
345
- resolve();
346
- }
347
- else if (payload.state === credo_ts_didcomm_vt_flow_1.VtFlowState.TerminatedByValidator ||
348
- payload.state === credo_ts_didcomm_vt_flow_1.VtFlowState.Error) {
349
- clearTimeout(timer);
350
- reject(new Error(`parent VS ${parentDid} rejected the Service credential request`));
351
- }
352
- });
353
- });
419
+ // WL-ECS: an allowlist is optional in delegated mode, but it binds the flow once the operator sets it.
420
+ async assertTrustedEcosystem(schemaId) {
421
+ var _a;
422
+ const trusted = this.options.trustedEcosystemDids;
423
+ if (!(trusted === null || trusted === void 0 ? void 0 : trusted.length))
424
+ return;
425
+ const schema = await this.indexer.getCredentialSchema(schemaId).catch(() => undefined);
426
+ const ecosystem = schema
427
+ ? await this.indexer.getEcosystem(schema.ecosystem_id).catch(() => undefined)
428
+ : undefined;
429
+ if (!ecosystem || ecosystem.archived || !trusted.includes(ecosystem.did)) {
430
+ throw new Error(`the ECS Service schema ${schemaId} belongs to ecosystem ${(_a = ecosystem === null || ecosystem === void 0 ? void 0 : ecosystem.did) !== null && _a !== void 0 ? _a : '<unresolvable>'}, which TRUSTED_ECS_ECOSYSTEM_DIDS does not list`);
431
+ }
432
+ }
433
+ async onboardingClaims(schemaId) {
434
+ if (!this.agent.ecsClaims || !this.agent.did)
435
+ return undefined;
436
+ const schema = await this.agent.indexer.getCredentialSchema(schemaId);
437
+ const ecsKey = schema && (await (0, vs_agent_model_1.classifyEcsSchema)(schema.json_schema));
438
+ if (!ecsKey) {
439
+ this.agent.config.logger.info(`[ecs-claims] schema ${schemaId} is not an ECS schema, sending no claims`);
440
+ return undefined;
441
+ }
442
+ return await (0, ecsClaims_1.composeEcsClaims)(this.agent.ecsClaims, ecsKey, this.agent.config.logger);
354
443
  }
355
444
  }
356
445
  exports.EcsBootstrapService = EcsBootstrapService;