Code0 LogoCodeZero

Namespace

Represents a Namespace

Fields without arguments

NameTypeDescription
createdAtTime!Time when this Namespace was created
currentLicenseLicense(Cloud only) Currently active license of the namespace
idNamespaceID!Global ID of this Namespace
licensesLicenseConnection!(Cloud only) Licenses of the namespace
membersNamespaceMemberConnection!Members of the namespace
parentNamespaceParent!Parent of this namespace
projectsNamespaceProjectConnection!Projects of the namespace
rolesNamespaceRoleConnection!Roles of the namespace
runtimesRuntimeConnection!Runtime of the namespace
updatedAtTime!Time when this Namespace was last updated
userAbilitiesNamespaceUserAbilities!Abilities for the current user on this Namespace

Fields with arguments

aiUsage

AI generation usage of this namespace, bucketed by day, week or month

Returns [UsageBucket!]!.

NameTypeDescription
afterDateISO8601Date!Start of the usage range (inclusive)
aggregationUsageAggregationGranularity to bucket usage into
beforeDateISO8601Date!End of the usage range (inclusive)

project

Query a project by its id

Returns NamespaceProject.

NameTypeDescription
idNamespaceProjectID!GlobalID of the target project

runtimeUsage

Execution usage of this namespace, bucketed by day, week or month

Returns [UsageBucket!]!.

NameTypeDescription
afterDateISO8601Date!Start of the usage range (inclusive)
aggregationUsageAggregationGranularity to bucket usage into
beforeDateISO8601Date!End of the usage range (inclusive)

On this page