arky-sdk 0.5.29 → 0.5.30

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.cjs CHANGED
@@ -440,6 +440,35 @@ var createBusinessApi = (apiConfig) => {
440
440
  `/v1/businesses/${params.businessId}/integrations/config/${params.type}`,
441
441
  options
442
442
  );
443
+ },
444
+ // ── Webhook CRUD ──
445
+ async listWebhooks(params, options) {
446
+ return apiConfig.httpClient.get(
447
+ `/v1/businesses/${params.businessId}/webhooks`,
448
+ options
449
+ );
450
+ },
451
+ async createWebhook(params, options) {
452
+ const { businessId, ...payload } = params;
453
+ return apiConfig.httpClient.post(
454
+ `/v1/businesses/${businessId}/webhooks`,
455
+ payload,
456
+ options
457
+ );
458
+ },
459
+ async updateWebhook(params, options) {
460
+ const { businessId, id, ...payload } = params;
461
+ return apiConfig.httpClient.put(
462
+ `/v1/businesses/${businessId}/webhooks/${id}`,
463
+ payload,
464
+ options
465
+ );
466
+ },
467
+ async deleteWebhook(params, options) {
468
+ return apiConfig.httpClient.delete(
469
+ `/v1/businesses/${params.businessId}/webhooks/${params.id}`,
470
+ options
471
+ );
443
472
  }
444
473
  };
445
474
  };
@@ -1712,7 +1741,7 @@ function getFirstAvailableFCId(variant, quantity = 1) {
1712
1741
  }
1713
1742
 
1714
1743
  // src/index.ts
1715
- var SDK_VERSION = "0.5.29";
1744
+ var SDK_VERSION = "0.5.30";
1716
1745
  var SUPPORTED_FRAMEWORKS = [
1717
1746
  "astro",
1718
1747
  "react",