Openai Schema#
graph LR
OpenAIAdminApiKey -- OWNED_BY --> OpenAIServiceAccount
OpenAIAdminApiKey -- OWNED_BY --> OpenAIUser
OpenAIApiKey -- OWNED_BY --> OpenAIServiceAccount
OpenAIApiKey -- OWNED_BY --> OpenAIUser
OpenAIOrganization -- RESOURCE --> OpenAIAdminApiKey
OpenAIOrganization -- RESOURCE --> OpenAIProject
OpenAIOrganization -- RESOURCE --> OpenAIUser
OpenAIProject -- RESOURCE --> OpenAIApiKey
OpenAIProject -- RESOURCE --> OpenAIServiceAccount
OpenAIServiceAccount -- OWNS --> OpenAIAdminApiKey
OpenAIServiceAccount -- OWNS --> OpenAIApiKey
OpenAIUser -- ADMIN_OF --> OpenAIProject
OpenAIUser -- MEMBER_OF --> OpenAIProject
OpenAIUser -- OWNS --> OpenAIAdminApiKey
OpenAIUser -- OWNS --> OpenAIApiKey
OpenAIAdminApiKey#
An admin API key in an OpenAI organization.
Ontology Mapping: This node uses the ontology label
APIKey.
Properties#
Ontology-generated fields are shown in italics.
Field |
Index |
Description |
|---|---|---|
id |
Yes |
OpenAI admin API key ID. |
firstseen |
Timestamp when a sync job first created this node. |
|
lastupdated |
Yes |
Timestamp of the last sync that observed this node. |
created_at |
Unix timestamp when the admin API key was created. |
|
last_used_at |
Unix timestamp when the admin API key was last used. |
|
name |
Admin API key name. |
|
object |
Object type, always “organization.admin_api_key”. |
|
_ont_created_at |
Yes |
Normalized field sourced from |
_ont_last_used_at |
Yes |
Normalized field sourced from |
_ont_name |
Yes |
Normalized field sourced from |
_ont_source |
Module that populated this node’s ontology fields. |
Relationships#
(:OpenAIAdminApiKey)-[:OWNED_BY]->(:OpenAIServiceAccount): An admin API key is owned by a service account.(:OpenAIAdminApiKey)-[:OWNED_BY]->(:OpenAIUser): An admin API key is owned by a user account.(:OpenAIOrganization)-[:RESOURCE]->(:OpenAIAdminApiKey): The organization contains the admin API key.(:OpenAIServiceAccount)-[:OWNS]->(:OpenAIAdminApiKey): Deprecated compatibility edge for a service account that owns an admin API key.(:OpenAIUser)-[:OWNS]->(:OpenAIAdminApiKey): Deprecated compatibility edge for a user that owns an admin API key.(:User)-[:OWNS]->(:APIKey): generated by analysis jobOntology - User OWNS APIKey linking.
OpenAIApiKey#
An API key in an OpenAI project.
Ontology Mapping: This node uses the ontology label
APIKey.
Properties#
Ontology-generated fields are shown in italics.
Field |
Index |
Description |
|---|---|---|
id |
Yes |
OpenAI API key ID. |
firstseen |
Timestamp when a sync job first created this node. |
|
lastupdated |
Yes |
Timestamp of the last sync that observed this node. |
created_at |
Unix timestamp when the API key was created. |
|
last_used_at |
Unix timestamp when the API key was last used. |
|
name |
API key name. |
|
object |
Object type, always “organization.project.api_key”. |
|
_ont_created_at |
Yes |
Normalized field sourced from |
_ont_last_used_at |
Yes |
Normalized field sourced from |
_ont_name |
Yes |
Normalized field sourced from |
_ont_source |
Module that populated this node’s ontology fields. |
Relationships#
(:OpenAIApiKey)-[:OWNED_BY]->(:OpenAIServiceAccount): An API key is owned by a service account.(:OpenAIApiKey)-[:OWNED_BY]->(:OpenAIUser): An API key is owned by a user account.(:OpenAIProject)-[:RESOURCE]->(:OpenAIApiKey): The project contains the API key.(:OpenAIServiceAccount)-[:OWNS]->(:OpenAIApiKey): Deprecated compatibility edge for a service account that owns an API key.(:OpenAIUser)-[:OWNS]->(:OpenAIApiKey): Deprecated compatibility edge for a user that owns an API key.(:User)-[:OWNS]->(:APIKey): generated by analysis jobOntology - User OWNS APIKey linking.
OpenAIOrganization#
An OpenAI organization containing users, projects, and admin API keys.
Ontology Mapping: This node uses the ontology label
Tenant.
Properties#
Field |
Index |
Description |
|---|---|---|
id |
Yes |
OpenAI organization ID. |
firstseen |
Timestamp when a sync job first created this node. |
|
lastupdated |
Yes |
Timestamp of the last sync that observed this node. |
Relationships#
(:OpenAIOrganization)-[:RESOURCE]->(:OpenAIAdminApiKey): The organization contains the admin API key.(:OpenAIOrganization)-[:RESOURCE]->(:OpenAIProject): The organization contains the project.(:OpenAIOrganization)-[:RESOURCE]->(:OpenAIUser): The organization contains the user.
OpenAIProject#
A project in an OpenAI organization.
Ontology Mapping: This node uses the ontology label
Tenant.
Properties#
Ontology-generated fields are shown in italics.
Field |
Index |
Description |
|---|---|---|
id |
Yes |
OpenAI project ID. |
firstseen |
Timestamp when a sync job first created this node. |
|
lastupdated |
Yes |
Timestamp of the last sync that observed this node. |
archived_at |
Unix timestamp when the project was archived. |
|
created_at |
Unix timestamp when the project was created. |
|
name |
Project name displayed in reporting. |
|
object |
Object type, always “organization.project”. |
|
status |
Project status: active or archived. |
|
_ont_name |
Yes |
Normalized field sourced from |
_ont_source |
Module that populated this node’s ontology fields. |
|
_ont_status |
Yes |
Normalized field sourced from |
Relationships#
(:OpenAIOrganization)-[:RESOURCE]->(:OpenAIProject): The organization contains the project.(:OpenAIProject)-[:RESOURCE]->(:OpenAIApiKey): The project contains the API key.(:OpenAIProject)-[:RESOURCE]->(:OpenAIServiceAccount): The project contains the service account.(:OpenAIUser)-[:ADMIN_OF]->(:OpenAIProject): A user administers the project.(:OpenAIUser)-[:MEMBER_OF]->(:OpenAIProject): A user is a member of the project.
OpenAIServiceAccount#
A service account in an OpenAI project.
Ontology Mapping: This node uses the ontology label
ServiceAccount.
Properties#
Ontology-generated fields are shown in italics.
Field |
Index |
Description |
|---|---|---|
id |
Yes |
OpenAI service account ID. |
firstseen |
Timestamp when a sync job first created this node. |
|
lastupdated |
Yes |
Timestamp of the last sync that observed this node. |
created_at |
Unix timestamp when the service account was created. |
|
name |
Service account name. |
|
object |
Object type, always “organization.project.service_account”. |
|
role |
Project role: owner or member. |
|
_ont_name |
Yes |
Normalized field sourced from |
_ont_source |
Module that populated this node’s ontology fields. |
Relationships#
(:OpenAIAdminApiKey)-[:OWNED_BY]->(:OpenAIServiceAccount): An admin API key is owned by a service account.(:OpenAIApiKey)-[:OWNED_BY]->(:OpenAIServiceAccount): An API key is owned by a service account.(:OpenAIProject)-[:RESOURCE]->(:OpenAIServiceAccount): The project contains the service account.(:OpenAIServiceAccount)-[:OWNS]->(:OpenAIAdminApiKey): Deprecated compatibility edge for a service account that owns an admin API key.(:OpenAIServiceAccount)-[:OWNS]->(:OpenAIApiKey): Deprecated compatibility edge for a service account that owns an API key.
OpenAIUser#
A user account in an OpenAI organization.
Ontology Mapping: This node uses the ontology label
UserAccount.
Properties#
Ontology-generated fields are shown in italics.
Field |
Index |
Description |
|---|---|---|
id |
Yes |
OpenAI user ID. |
firstseen |
Timestamp when a sync job first created this node. |
|
lastupdated |
Yes |
Timestamp of the last sync that observed this node. |
added_at |
Unix timestamp when the user was added. |
|
Yes |
User email address. |
|
name |
User name. |
|
object |
Object type, always “organization.user”. |
|
role |
Organization role: owner or reader. |
|
_ont_email |
Yes |
Normalized field sourced from |
_ont_fullname |
Yes |
Normalized field sourced from |
_ont_source |
Module that populated this node’s ontology fields. |
Relationships#
(:OpenAIAdminApiKey)-[:OWNED_BY]->(:OpenAIUser): An admin API key is owned by a user account.(:OpenAIApiKey)-[:OWNED_BY]->(:OpenAIUser): An API key is owned by a user account.(:OpenAIOrganization)-[:RESOURCE]->(:OpenAIUser): The organization contains the user.(:OpenAIUser)-[:ADMIN_OF]->(:OpenAIProject): A user administers the project.(:OpenAIUser)-[:MEMBER_OF]->(:OpenAIProject): A user is a member of the project.(:OpenAIUser)-[:OWNS]->(:OpenAIAdminApiKey): Deprecated compatibility edge for a user that owns an admin API key.(:OpenAIUser)-[:OWNS]->(:OpenAIApiKey): Deprecated compatibility edge for a user that owns an API key.(:User)-[:HAS_ACCOUNT]->(:UserAccount)