Comply API¶
The client.comply namespace exposes the Gateway client, quota gate, no-code governance translator, and billing webhook helpers for CRP Comply.
SDK proxy¶
crp.sdk.proxies_extra._ComplyProxy ¶
CRP Comply proxy (SPEC-040, SPEC-042, SPEC-047, SPEC-048).
Exposes the Gateway client, quota gate, no-code governance translator, and billing webhook helpers.
gateway_client() ¶
Return a Comply Gateway client adapter.
Returns:
| Type | Description |
|---|---|
Any | ComplyGatewayClient instance (or the real class if available). |
quota_gate(headers) ¶
Check whether headers pass the Comply quota gate.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
headers | Any | Either an org identifier string or a header mapping containing | required |
Returns:
| Type | Description |
|---|---|
dict[str, Any] | Quota gate result dict. |
no_code(rule) ¶
Translate a no-code rule into validated CRP intent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
rule | dict[str, Any] | str | Structured intent dict or a short text rule. | required |
Returns:
| Type | Description |
|---|---|
dict[str, Any] | Validated intent result dict. |
billing_webhook(payload) ¶
Process a Stripe billing webhook payload.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
payload | Any | Raw webhook bytes, a dict, or a JSON string. | required |
Returns:
| Type | Description |
|---|---|
dict[str, Any] | Webhook handler result dict. |