Account response models

The 8 response models returned by the account resources of the Future AGI Python and TypeScript SDKs, with every field and its type.

The models returned by client.account, client.workspaces, client.usage, importable from fi.platform.models (Python) and @future-agi/sdk/platform/models (TypeScript). Types are language-neutral: string[] is a Python list[str] and a TypeScript string[], and a type named after another model links to that model. Parsing is tolerant by default: a response that leaves a field out or adds one never breaks a call. In Python, Client(strict_responses=True) rejects a response that misses a field the contract requires (see the overview); TypeScript has no strict mode.

Models

ModelFields
UsageOverviewDimensionkey: string, display_name: string, display_unit: string, current_usage: number, current_usage_raw: number, free_allowance: number, projected_usage: number, estimated_cost: number, tier_breakdown: UsageTierBreakdown[], usage_pct: number
UsageOverviewResultplan: string, plan_display_name: string, platform_fee: number, period: string, billing_period_start: string, billing_period_end: string, total_estimated_cost: number, total_with_platform: number, dimensions: UsageOverviewDimension[], pending_cancel: boolean, cancel_at: string
UsageTierBreakdowntier_start: number, tier_end: number, quantity: number, rate: number, cost: number
UserInfoOrganizationid: string, name: string, display_name: string, ws_enabled: boolean
UserInfoResponseid: string, email: string, name: string, organization_role: string, organization: UserInfoOrganization, created_at: string, status: string, role: string, goals: string[], remember_me: boolean, get_started_completed: boolean, onboarding_completed: boolean, ws_enabled: boolean, requires_org_setup: boolean, default_workspace_id: string, default_workspace_name: string, default_workspace_display_name: string, default_workspace_role: string, org_level: integer, ws_level: integer, effective_level: integer, has_2fa_enabled: boolean, two_factor_methods: UserInfoTwoFactorMethods, org_2fa_required: boolean, org_2fa_grace_ends_at: string
UserInfoTwoFactorMethodstotp: boolean, passkey: boolean
WorkspaceManagementItemid: string, name: string, display_name: string, description: string, is_default: boolean, member_count: integer, created_at: string, created_by: string
WorkspaceManagementListResultorganization: string, workspaces: WorkspaceManagementItem[], total: integer
Was this page helpful?

Questions & Discussion