@riocrypto/common-server 1.0.2612 → 1.0.2613

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.
@@ -3,7 +3,10 @@ declare class CosignerClient {
3
3
  private webhookSecret;
4
4
  private axiosClient;
5
5
  constructor(apiKey: string, webhookSecret: string);
6
- sendRequest(title: string, description: string, minApprovers: number, notificationUrl: string, approverGroupId: string, metadata?: Object): Promise<void>;
6
+ sendRequest(title: string, description: string, minApprovers: number, notificationUrl: string, approverGroupId: string, metadata?: Object, alternativeActions?: {
7
+ label: string;
8
+ value: string;
9
+ }[]): Promise<void>;
7
10
  decryptNotification(encryptedData: string, iv: string): Promise<string>;
8
11
  }
9
12
  export declare const buildCosignerClient: () => Promise<CosignerClient>;
@@ -22,7 +22,7 @@ class CosignerClient {
22
22
  this.webhookSecret = webhookSecret;
23
23
  this.axiosClient = (0, axios_with_logging_1.buildAxiosWithLogging)();
24
24
  }
25
- sendRequest(title, description, minApprovers, notificationUrl, approverGroupId, metadata) {
25
+ sendRequest(title, description, minApprovers, notificationUrl, approverGroupId, metadata, alternativeActions) {
26
26
  return __awaiter(this, void 0, void 0, function* () {
27
27
  yield this.axiosClient.post("https://www.cosigner.xyz/api/requests", {
28
28
  title,
@@ -31,6 +31,7 @@ class CosignerClient {
31
31
  minApprovers,
32
32
  notificationUrl,
33
33
  approverGroupId,
34
+ alternativeActions,
34
35
  }, {
35
36
  headers: {
36
37
  "x-api-key": this.apiKey,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2612",
3
+ "version": "1.0.2613",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",