@billkit-eu/sdk 0.2.0 → 0.2.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.
- package/CHANGELOG.md +10 -2
- package/README.md +3 -3
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/resources.ts +1 -1
- package/src/version.ts +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -834,7 +834,7 @@ declare class WebhookEndpoints extends BaseResource {
|
|
|
834
834
|
* were sent stays on record.
|
|
835
835
|
*/
|
|
836
836
|
delete<T = unknown>(id: string, params?: IdempotencyOptions): Promise<T>;
|
|
837
|
-
/** Rotate the signing secret. The new `
|
|
837
|
+
/** Rotate the signing secret. The new `bkwhsec_...` is returned once. */
|
|
838
838
|
rotateSecret<T = unknown>(id: string, params?: IdempotencyOptions): Promise<T>;
|
|
839
839
|
list<T = unknown>(params?: BaseListParams): Promise<ListResponseEnvelope<T>>;
|
|
840
840
|
iter<T = unknown>(options?: {
|
|
@@ -1104,7 +1104,7 @@ declare class RateLimitError extends BillKitError {
|
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
|
-
declare const VERSION = "0.2.
|
|
1107
|
+
declare const VERSION = "0.2.1";
|
|
1108
1108
|
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Verify `BillKit-Signature: t=<unix>,v1=<hex>` headers.
|
package/dist/index.d.ts
CHANGED
|
@@ -834,7 +834,7 @@ declare class WebhookEndpoints extends BaseResource {
|
|
|
834
834
|
* were sent stays on record.
|
|
835
835
|
*/
|
|
836
836
|
delete<T = unknown>(id: string, params?: IdempotencyOptions): Promise<T>;
|
|
837
|
-
/** Rotate the signing secret. The new `
|
|
837
|
+
/** Rotate the signing secret. The new `bkwhsec_...` is returned once. */
|
|
838
838
|
rotateSecret<T = unknown>(id: string, params?: IdempotencyOptions): Promise<T>;
|
|
839
839
|
list<T = unknown>(params?: BaseListParams): Promise<ListResponseEnvelope<T>>;
|
|
840
840
|
iter<T = unknown>(options?: {
|
|
@@ -1104,7 +1104,7 @@ declare class RateLimitError extends BillKitError {
|
|
|
1104
1104
|
});
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
|
-
declare const VERSION = "0.2.
|
|
1107
|
+
declare const VERSION = "0.2.1";
|
|
1108
1108
|
|
|
1109
1109
|
/**
|
|
1110
1110
|
* Verify `BillKit-Signature: t=<unix>,v1=<hex>` headers.
|
package/dist/index.js
CHANGED
|
@@ -363,7 +363,7 @@ var WebhookEndpoints = class extends BaseResource {
|
|
|
363
363
|
delete(id, params = {}) {
|
|
364
364
|
return this.del(`/v1/webhook_endpoints/${id}`, params);
|
|
365
365
|
}
|
|
366
|
-
/** Rotate the signing secret. The new `
|
|
366
|
+
/** Rotate the signing secret. The new `bkwhsec_...` is returned once. */
|
|
367
367
|
rotateSecret(id, params = {}) {
|
|
368
368
|
return this.postEmpty(`/v1/webhook_endpoints/${id}/rotate_secret`, params);
|
|
369
369
|
}
|
|
@@ -731,7 +731,7 @@ function sleep(ms) {
|
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
// src/version.ts
|
|
734
|
-
var VERSION = "0.2.
|
|
734
|
+
var VERSION = "0.2.1";
|
|
735
735
|
|
|
736
736
|
// src/transport.ts
|
|
737
737
|
var DEFAULT_BASE_URL = "https://api.billkit.eu";
|