• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

hyperledger-identus / sdk-ts / 13784994551

11 Mar 2025 09:47AM UTC coverage: 74.922% (+0.5%) from 74.467%
13784994551

push

github

web-flow
feat!: updating DIDComm other protocols (#397)

Signed-off-by: Curtish <ch@curtish.me>
Co-authored-by: Yurii Shynbuiev <yurii.shynbuiev@iohk.io>

1389 of 2060 branches covered (67.43%)

Branch coverage included in aggregate %.

0 of 6 new or added lines in 1 file covered. (0.0%)

3391 of 4320 relevant lines covered (78.5%)

51.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/edge-agent/protocols/other/ProblemReport.ts
1
import { DID, Message } from "../../../domain/models";
2
import { ProtocolType } from "../ProtocolTypes";
3

4
/**
5
 * Specification:
6
 * https://identity.foundation/didcomm-messaging/spec/#problem-reports
7
 */
8

9
export interface ProblemReportBody {
10
  // https://identity.foundation/didcomm-messaging/spec/#problem-codes
11
  code: string;
12
  // OPTIONAL but recommended. Contains human-friendly text describing the problem
13
  comment?: string,
14
  // OPTIONAL. Contains situation-specific values that are interpolated into the value of `comment`
15
  args?: string[],
16
  // OPTIONAL. Provides a URI where additional help on the issue can be received
17
  escalate_to?: string;
18
}
19

20
export class ProblemReport {
21
  public static type = ProtocolType.ProblemReporting;
×
22

23
  constructor(
NEW
24
    public body: ProblemReportBody,
×
NEW
25
    public from: DID,
×
NEW
26
    public to: DID,
×
NEW
27
    public thid?: string,
×
28
  ) {}
29

30
  makeMessage(): Message {
NEW
31
    const body = JSON.stringify(this.body);
×
NEW
32
    return new Message(
×
33
      body,
34
      undefined,
35
      ProblemReport.type,
36
      this.from,
37
      this.to,
38
      [],
39
      this.thid
40
    );
41
  }
42
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc