archastro.platform.types.system
1# Copyright (c) 2026 ArchAstro Inc. Licensed under the MIT License. 2# This file is auto-generated by @archastro/sdk-generator. Do not edit. 3# Content hash: d15c5f3ba3a8 4 5from datetime import datetime 6 7from pydantic import BaseModel, Field 8 9 10class SystemAccessToken(BaseModel): 11 """ 12 A long-lived API credential associated with a system account, used to authenticate server-to-server requests. 13 """ 14 15 created_at: datetime | None = Field( 16 default=None, description="When this token was created (ISO 8601)." 17 ) 18 created_by_agent_user: str | None = Field( 19 default=None, 20 description="Agent user that minted this token (`usr_...`). `null` unless an agent minted it.", 21 ) 22 created_by_developer: str | None = Field( 23 default=None, 24 description="Developer account that minted this token (`dva_...`). `null` unless minted with a developer token.", 25 ) 26 created_by_org: str | None = Field( 27 default=None, 28 description="Org of the principal that minted this token (`org_...`). `null` on legacy rows.", 29 ) 30 created_by_team: str | None = Field( 31 default=None, 32 description="Team that minted this token (`tem_...`). `null` unless minted as a team.", 33 ) 34 created_by_user: str | None = Field( 35 default=None, 36 description="User who minted this token (`usr_...`). Distinct from the token subject. `null` on legacy rows.", 37 ) 38 expires_at: datetime | None = Field( 39 default=None, 40 description="When the token expires. `null` on legacy rows that predate stored expiry.", 41 ) 42 id: str = Field(..., description="Token ID (`sat_...`).") 43 last_used_at: datetime | None = Field( 44 default=None, 45 description="When this token was last used to authenticate a request. `null` if the token has never been used.", 46 ) 47 name: str | None = Field( 48 default=None, 49 description="Human-readable label assigned to this token at creation time. `null` when no label was supplied.", 50 ) 51 revoked_at: datetime | None = Field( 52 default=None, 53 description="When this token was revoked. `null` if the token is still active.", 54 ) 55 scopes: str | None = Field( 56 default=None, 57 description="Space-separated OAuth scopes stamped on the token. `null` on legacy rows; treat as `full_access`.", 58 ) 59 token: str | None = Field( 60 default=None, 61 description="Raw bearer token string. Present only in the response to the create request; never returned again after that.", 62 )
11class SystemAccessToken(BaseModel): 12 """ 13 A long-lived API credential associated with a system account, used to authenticate server-to-server requests. 14 """ 15 16 created_at: datetime | None = Field( 17 default=None, description="When this token was created (ISO 8601)." 18 ) 19 created_by_agent_user: str | None = Field( 20 default=None, 21 description="Agent user that minted this token (`usr_...`). `null` unless an agent minted it.", 22 ) 23 created_by_developer: str | None = Field( 24 default=None, 25 description="Developer account that minted this token (`dva_...`). `null` unless minted with a developer token.", 26 ) 27 created_by_org: str | None = Field( 28 default=None, 29 description="Org of the principal that minted this token (`org_...`). `null` on legacy rows.", 30 ) 31 created_by_team: str | None = Field( 32 default=None, 33 description="Team that minted this token (`tem_...`). `null` unless minted as a team.", 34 ) 35 created_by_user: str | None = Field( 36 default=None, 37 description="User who minted this token (`usr_...`). Distinct from the token subject. `null` on legacy rows.", 38 ) 39 expires_at: datetime | None = Field( 40 default=None, 41 description="When the token expires. `null` on legacy rows that predate stored expiry.", 42 ) 43 id: str = Field(..., description="Token ID (`sat_...`).") 44 last_used_at: datetime | None = Field( 45 default=None, 46 description="When this token was last used to authenticate a request. `null` if the token has never been used.", 47 ) 48 name: str | None = Field( 49 default=None, 50 description="Human-readable label assigned to this token at creation time. `null` when no label was supplied.", 51 ) 52 revoked_at: datetime | None = Field( 53 default=None, 54 description="When this token was revoked. `null` if the token is still active.", 55 ) 56 scopes: str | None = Field( 57 default=None, 58 description="Space-separated OAuth scopes stamped on the token. `null` on legacy rows; treat as `full_access`.", 59 ) 60 token: str | None = Field( 61 default=None, 62 description="Raw bearer token string. Present only in the response to the create request; never returned again after that.", 63 )
A long-lived API credential associated with a system account, used to authenticate server-to-server requests.
Agent user that minted this token (usr_...). null unless an agent minted it.
Developer account that minted this token (dva_...). null unless minted with a developer token.
Org of the principal that minted this token (org_...). null on legacy rows.
Team that minted this token (tem_...). null unless minted as a team.
User who minted this token (usr_...). Distinct from the token subject. null on legacy rows.
When the token expires. null on legacy rows that predate stored expiry.
When this token was last used to authenticate a request. null if the token has never been used.
Human-readable label assigned to this token at creation time. null when no label was supplied.
When this token was revoked. null if the token is still active.