Example Usage
import { ModelAvailabilityGuardrailPolicySummary } from "@openrouter/sdk/models";
let value: ModelAvailabilityGuardrailPolicySummary = {
apiKeyCount: 525701,
config: {},
id: "550e8400-e29b-41d4-a716-446655440000",
memberCount: 912300,
name: "Engineering monthly budget",
policyType: "model_availability",
updatedAt: "1735637427112",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
apiKeyCount | number | ✔️ | N/A | |
config | models.GuardrailModelAvailabilityPolicyConfig | ✔️ | N/A | { “allowed_models”: [ “openai/gpt-4o”, “anthropic/claude-sonnet-4” ], “allowed_providers”: [ “openai”, “anthropic” ], “enforce_zdr_anthropic”: true, “enforce_zdr_openai”: true } |
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.ModelAvailabilityGuardrailPolicySummaryPolicyType | ✔️ | N/A | |
replacedLegacyGuardrailIds | string[] | ➖ | IDs of the v1 guardrails this policy replaced | |
updatedAt | string | ✔️ | N/A |