Example Usage
import { ModerationGuardrailPolicySummary } from "@openrouter/sdk/models";
let value: ModerationGuardrailPolicySummary = {
apiKeyCount: 461074,
config: {},
id: "550e8400-e29b-41d4-a716-446655440000",
memberCount: 974366,
name: "Engineering monthly budget",
policyType: "moderation",
updatedAt: "1735612146579",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
apiKeyCount | number | ✔️ | N/A | |
config | models.GuardrailModerationPolicyConfig | ✔️ | N/A | { “content_filter_builtins”: [ { “action”: “block”, “slug”: “secrets” } ] } |
id | string | ✔️ | Policy ID | 550e8400-e29b-41d4-a716-446655440000 |
isLegacyMapped | boolean | ➖ | Whether the policy is kept in sync with a v1 guardrail | |
isWorkspaceDefault | boolean | ➖ | N/A | |
legacyGuardrailIds | string[] | ➖ | IDs of the v1 guardrails this policy was migrated from | |
memberCount | number | ✔️ | N/A | |
name | string | ✔️ | Policy name | Engineering monthly budget |
policyType | models.ModerationGuardrailPolicySummaryPolicyType | ✔️ | N/A | |
replacedLegacyGuardrailIds | string[] | ➖ | IDs of the v1 guardrails this policy replaced | |
updatedAt | string | ✔️ | N/A |