@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 +7 -7
- package/dist/models/CreateAlertDto.d.ts +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
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-
|
|
198
|
-
* `x-
|
|
199
|
-
* `x-
|
|
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)
|