OpenAI Schema¶
graph LR
O(Organization) -- RESOURCE --> P(Project)
O -- RESOURCE --> U(User)
P -- RESOURCE --> K(ApiKey)
P -- RESOURCE --> SA(ServiceAccount)
U -- OWNS --> AK
U -- OWNS --> K
SA -- OWNS --> AK
SA -- OWNS --> K
U -- MEMBER_OF --> P
U -- ADMIN_OF --> P
O -- RESOURCE --> AK(AdminApiKey)
OpenAIAdminApiKey¶
Represents an individual Admin API key in an org.
Field |
Description |
|---|---|
id |
The identifier, which can be referenced in API endpoints |
firstseen |
Timestamp of when a sync job first created this node |
lastupdated |
Timestamp of the last time the node was updated |
object |
The object type, which is always |
name |
The name of the API key |
created_at |
The Unix timestamp (in seconds) of when the API key was created |
last_used_at |
The Unix timestamp (in seconds) of when the API key was last used |
Relationships¶
Admin API Keybelongs to anOrganization(OpenAIOrganization)-[:RESOURCE]->(OpenAIAdminApiKey)Admin API Keyis owned by aUseror aServiceAccount(:OpenAIUser)-[:OWNS]->(:OpenAIAdminApiKey) (:OpenAIServiceAccount)-[:OWNS]->(:OpenAIAdminApiKey)
OpenAIUser¶
Represents an individual user within an organization.
Field |
Description |
|---|---|
id |
The identifier, which can be referenced in API endpoints |
firstseen |
Timestamp of when a sync job first created this node |
lastupdated |
Timestamp of the last time the node was updated |
object |
The object type, which is always |
name |
The name of the user |
The email address of the user |
|
role |
|
added_at |
The Unix timestamp (in seconds) of when the user was added. |
Relationships¶
Userbelongs to anOrganization(OpenAIOrganization)-[:RESOURCE]->(OpenAIAdminApiKey)Admin API Keyis owned by aUser(:OpenAIUser)-[:OWNS]->(:OpenAIAdminApiKey)API Keyis owned by aUser(:OpenAIUser)-[:OWNS]->(:OpenAIApiKey)Userare member of aProject(:OpenAIUser)-[:MEMBER_OF]->(:OpenAIProject)Userare admin of aProject(:OpenAIUser)-[:ADMIN_OF]->(:OpenAIProject)
OpenAIProject¶
Represents an individual project.
Field |
Description |
|---|---|
id |
The identifier, which can be referenced in API endpoints |
firstseen |
Timestamp of when a sync job first created this node |
lastupdated |
Timestamp of the last time the node was updated |
object |
The object type, which is always |
name |
The name of the project. This appears in reporting. |
created_at |
The Unix timestamp (in seconds) of when the project was created. |
archived_at |
The Unix timestamp (in seconds) of when the project was archived or |
status |
|
Relationships¶
ServiceAccountandAPIKeybelong to anOpenAIProject.(:OpenAIProject)<-[:RESOURCE]-( :OpenAIServiceAccount, :OpenAIApiKey, )
Projectbelongs to anOrganization(OpenAIOrganization)-[:RESOURCE]->(OpenAIProject)Userare member of aProject(:OpenAIUser)-[:MEMBER_OF]->(:OpenAIProject)Userare admin of aProject(:OpenAIUser)-[:ADMIN_OF]->(:OpenAIProject)
OpenAIServiceAccount¶
Represents an individual service account in a project.
Field |
Description |
|---|---|
id |
The identifier, which can be referenced in API endpoints |
firstseen |
Timestamp of when a sync job first created this node |
lastupdated |
Timestamp of the last time the node was updated |
object |
The object type, which is always |
name |
The name of the service account |
role |
|
created_at |
The Unix timestamp (in seconds) of when the service account was created |
Relationships¶
ServiceAccountbelongs to aProject(:OpenAIServiceAccount)-[:RESOURCE]->(:OpenAIProject)Admin API Keyis owned by aServiceAccount(:OpenAIServiceAccount)-[:OWNS]->(:OpenAIAdminApiKey)API Keyis owned by aServiceAccount(:OpenAIServiceAccount)-[:OWNS]->(:OpenAIApiKey)
OpenAIApiKey¶
Represents an individual API key in a project.
Field |
Description |
|---|---|
id |
The identifier, which can be referenced in API endpoints |
firstseen |
Timestamp of when a sync job first created this node |
lastupdated |
Timestamp of the last time the node was updated |
object |
The object type, which is always |
name |
The name of the API key |
created_at |
The Unix timestamp (in seconds) of when the API key was created |
last_used_at |
The Unix timestamp (in seconds) of when the API key was last used. |
Relationships¶
ApiKeybelongs to aProject(:OpenAIApiKey)-[:RESOURCE]->(:OpenAIProject)APIKeyis owned by aUseror aServiceAccount(:OpenAIUser)-[:OWNS]->(:OpenAIApiKey) (:OpenAIServiceAccount)-[:OWNS]->(:OpenAIApiKey)