@corsa-labs/sdk 3.9.1 → 3.10.0

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/README.md CHANGED
@@ -48,7 +48,7 @@ import { ComplianceClient, OpenAPI } from '@corsa-labs/sdk';
48
48
  // OpenAPI.TOKEN = 'YOUR_API_KEY'; // Deprecated: Use HEADERS instead
49
49
 
50
50
  // Configure the base URL
51
- OpenAPI.BASE = 'https://api-compliance.prod.paytweed.com';
51
+ OpenAPI.BASE = 'https://api.corsa.finance';
52
52
 
53
53
  // Configure Headers for Authentication (Recommended)
54
54
  OpenAPI.HEADERS = {
@@ -59,7 +59,7 @@ const client = new ComplianceClient();
59
59
 
60
60
  // Or configure directly in the constructor
61
61
  const clientWithConfig = new ComplianceClient({
62
- BASE: "https://api-compliance.prod.paytweed.com",
62
+ BASE: "https://api.corsa.finance",
63
63
  HEADERS: {
64
64
  "Authorization": `Bearer ${process.env.API_TOKEN}`
65
65
  }
@@ -85,7 +85,7 @@ import { v4 as uuidv4 } from 'uuid';
85
85
 
86
86
  async function main() {
87
87
  const client = new ComplianceClient({
88
- BASE: "https://api-compliance.prod.paytweed.com",
88
+ BASE: "https://api.corsa.finance",
89
89
  HEADERS: {
90
90
  "Authorization": `Bearer ${process.env.API_TOKEN}` // Use Authorization header
91
91
  }
@@ -194,9 +194,9 @@ The SDK provides utilities for handling webhooks sent from the Compliance API.
194
194
  When receiving webhooks, inspect the following HTTP headers:
195
195
 
196
196
  * `x-hub-signature-256`: The HMAC SHA256 signature of the request payload. Used for verifying the webhook's authenticity. (See Verifying Signatures below).
197
- * `x-tweed-event`: The type of event that triggered the webhook (e.g., `individual_client.created`).
198
- * `x-tweed-hook-id`: The unique identifier of the webhook configuration that sent this request.
199
- * `x-tweed-delivery`: A unique identifier for this specific delivery attempt.
197
+ * `x-hook-event`: The type of event that triggered the webhook (e.g., `individual_client.created`).
198
+ * `x-hook-id`: The unique identifier of the webhook configuration that sent this request.
199
+ * `x-hook-delivery`: A unique identifier for this specific delivery attempt.
200
200
 
201
201
  ### Verifying Signatures
202
202
 
@@ -279,4 +279,4 @@ Contributions are welcome! Please follow standard practices for pull requests.
279
279
 
280
280
  ## License
281
281
 
282
- [MIT](LICENSE)
282
+ [MIT](LICENSE)
@@ -24,7 +24,7 @@ export type CreateAlertDto = {
24
24
  /**
25
25
  * External reference ID for the alert
26
26
  */
27
- referenceId: string;
27
+ referenceId?: string;
28
28
  /**
29
29
  * Source information for the alert
30
30
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsa-labs/sdk",
3
- "version": "3.9.1",
3
+ "version": "3.10.0",
4
4
  "description": "SDK for Corsa API",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",