WorkspaceBudget - TypeScript SDK
WorkspaceBudget - TypeScript SDK
WorkspaceBudget type definition
WorkspaceBudget - TypeScript SDK
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
1 import { WorkspaceBudget } from "@openrouter/sdk/models"; 2 3 let value: WorkspaceBudget = { 4 createdAt: "2025-08-24T10:30:00Z", 5 id: "770e8400-e29b-41d4-a716-446655440000", 6 limitUsd: 100, 7 resetInterval: "monthly", 8 updatedAt: "2025-08-24T15:45:00Z", 9 workspaceId: "550e8400-e29b-41d4-a716-446655440000", 10 };
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
createdAt | string | ✔️ | ISO 8601 timestamp of when the budget was created | 2025-08-24T10:30:00Z |
id | string | ✔️ | Unique identifier for the budget | 770e8400-e29b-41d4-a716-446655440000 |
limitUsd | number | ✔️ | Spending limit in USD for this interval | 100 |
resetInterval | models.ResetInterval | ✔️ | Interval at which spend resets. Null means a lifetime (one-time) budget. | monthly |
updatedAt | string | ✔️ | ISO 8601 timestamp of when the budget was last updated | 2025-08-24T15:45:00Z |
workspaceId | string | ✔️ | ID of the workspace the budget belongs to | 550e8400-e29b-41d4-a716-446655440000 |