@avalabs/glacier-sdk 2.8.0-alpha.167 → 2.8.0-alpha.169

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.
package/dist/index.d.ts CHANGED
@@ -175,6 +175,13 @@ declare class DefaultService {
175
175
  * @throws ApiError
176
176
  */
177
177
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
+ /**
179
+ * Get a shared secret
180
+ * Get a previously generated shared secret.
181
+ * @returns SharedSecretsResponse
182
+ * @throws ApiError
183
+ */
184
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
178
185
  }
179
186
 
180
187
  declare enum CurrencyCode {
package/dist/index.js CHANGED
@@ -394,7 +394,13 @@ class DefaultService {
394
394
  generateSharedSecret() {
395
395
  return this.httpRequest.request({
396
396
  method: "POST",
397
- url: "/v1/webhooks:generateSharedSecret"
397
+ url: "/v1/webhooks:generateOrRotateSharedSecret"
398
+ });
399
+ }
400
+ getSharedSecret() {
401
+ return this.httpRequest.request({
402
+ method: "GET",
403
+ url: "/v1/webhooks:getSharedSecret"
398
404
  });
399
405
  }
400
406
  }
@@ -62,6 +62,13 @@ declare class DefaultService {
62
62
  * @throws ApiError
63
63
  */
64
64
  generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
+ /**
66
+ * Get a shared secret
67
+ * Get a previously generated shared secret.
68
+ * @returns SharedSecretsResponse
69
+ * @throws ApiError
70
+ */
71
+ getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
65
72
  }
66
73
 
67
74
  export { DefaultService };
@@ -47,7 +47,13 @@ class DefaultService {
47
47
  generateSharedSecret() {
48
48
  return this.httpRequest.request({
49
49
  method: "POST",
50
- url: "/v1/webhooks:generateSharedSecret"
50
+ url: "/v1/webhooks:generateOrRotateSharedSecret"
51
+ });
52
+ }
53
+ getSharedSecret() {
54
+ return this.httpRequest.request({
55
+ method: "GET",
56
+ url: "/v1/webhooks:getSharedSecret"
51
57
  });
52
58
  }
53
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalabs/glacier-sdk",
3
- "version": "2.8.0-alpha.167",
3
+ "version": "2.8.0-alpha.169",
4
4
  "description": "sdk for interacting with glacier-api",
5
5
  "author": "Oliver Wang <oliver.wang@avalabs.org>",
6
6
  "homepage": "https://github.com/ava-labs/avalanche-sdks#readme",
@@ -29,5 +29,5 @@
29
29
  "bugs": {
30
30
  "url": "https://github.com/ava-labs/avalanche-sdks/issues"
31
31
  },
32
- "gitHead": "fa450b99338d2a17dfb19770adbaa02ba4de9f20"
32
+ "gitHead": "ed2650c7ca4c08d8207477cb33ebf3034d8dab69"
33
33
  }