Skip to main content

Configuration types

AvalaConfig

Configuration options for initializing the Avala client.
apiKey
string
API key for authentication. Can also be set via AVALA_API_KEY environment variable.
baseUrl
string
Base URL for the Avala API. Defaults to https://api.avala.ai.
timeout
number
Request timeout in milliseconds. Defaults to 60000 (60 seconds).

Resource types

Dataset

Represents a dataset in Avala.
uid
string
required
Unique identifier for the dataset.
name
string
required
Display name of the dataset.
slug
string
required
URL-friendly identifier for the dataset.
itemCount
number
required
Number of items in the dataset.
dataType
string | null
required
Type of data stored in the dataset (e.g., “image”, “video”, “pointcloud”).
createdAt
string | null
required
ISO 8601 timestamp of when the dataset was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the dataset was last updated.

Project

Represents an annotation project.
uid
string
required
Unique identifier for the project.
name
string
required
Display name of the project.
status
string | null
required
Current status of the project.
createdAt
string | null
required
ISO 8601 timestamp of when the project was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the project was last updated.

Export

Represents a dataset export.
uid
string
required
Unique identifier for the export.
status
string | null
required
Current status of the export (e.g., “pending”, “processing”, “completed”, “failed”).
downloadUrl
string | null
required
URL to download the export once completed.
createdAt
string | null
required
ISO 8601 timestamp of when the export was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the export was last updated.

Task

Represents an annotation task.
uid
string
required
Unique identifier for the task.
type
string | null
required
Type of annotation task (e.g., “bounding_box”, “segmentation”).
name
string | null
required
Display name of the task.
status
string | null
required
Current status of the task.
project
string | null
required
UID of the project this task belongs to.
createdAt
string | null
required
ISO 8601 timestamp of when the task was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the task was last updated.

StorageConfig

Represents a storage configuration for cloud storage integration.
uid
string
required
Unique identifier for the storage configuration.
name
string
required
Display name of the storage configuration.
provider
string
required
Storage provider type (e.g., “aws_s3”, “google_cloud_storage”).
s3BucketName
string | null
required
AWS S3 bucket name (for S3 provider).
s3BucketRegion
string | null
required
AWS S3 bucket region (for S3 provider).
s3BucketPrefix
string | null
required
AWS S3 bucket prefix/path (for S3 provider).
s3IsAccelerated
boolean
required
Whether S3 transfer acceleration is enabled.
gcStorageBucketName
string | null
required
Google Cloud Storage bucket name (for GCS provider).
gcStoragePrefix
string | null
required
Google Cloud Storage bucket prefix/path (for GCS provider).
isVerified
boolean
required
Whether the storage configuration has been verified.
lastVerifiedAt
string | null
required
ISO 8601 timestamp of when the configuration was last verified.
createdAt
string | null
required
ISO 8601 timestamp of when the configuration was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the configuration was last updated.

Dataset items and sequences

DatasetItem

Represents a single item in a dataset.
id
number | null
required
Numeric ID of the dataset item.
uid
string
required
Unique identifier for the dataset item.
key
string | null
required
Unique key for the item within the dataset.
dataset
string | null
required
UID of the dataset this item belongs to.
url
string | null
required
URL to access the item’s data.
gpuTextureUrl
string | null
required
GPU-optimized texture URL for 3D data.
thumbnails
string[]
required
Array of thumbnail URLs for the item.
videoThumbnail
string | null
required
Thumbnail URL for video items.
metadata
Record<string, unknown> | null
required
Custom metadata associated with the item.
exportSnippet
Record<string, unknown> | null
required
Export-specific data for the item.
annotations
Record<string, unknown> | null
required
Annotations associated with the item.
cropData
Record<string, unknown> | null
required
Crop data for the item.
Array of related dataset items.
UID of the related sequence, if this item is part of a sequence.
createdAt
string | null
required
ISO 8601 timestamp of when the item was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the item was last updated.

DatasetSequence

Represents a sequence of related dataset items (e.g., video frames, sensor data over time).
uid
string
required
Unique identifier for the sequence.
key
string | null
required
Unique key for the sequence within the dataset.
customUuid
string | null
required
Custom UUID for the sequence.
status
string | null
required
Current status of the sequence.
URL of the featured/thumbnail image for the sequence.
numberOfFrames
number | null
required
Total number of frames in the sequence.
views
Record<string, unknown>[]
required
Array of view configurations for the sequence.
cropData
Record<string, unknown> | null
required
Crop data for the sequence.
predefinedLabels
Record<string, unknown>[]
required
Array of predefined labels for the sequence.
frames
Record<string, unknown>[]
required
Array of frames in the sequence.
metrics
Record<string, unknown> | null
required
Metrics associated with the sequence.
datasetUid
string | null
required
UID of the dataset this sequence belongs to.
allowLidarCalibration
boolean | null
required
Whether LiDAR calibration is allowed for this sequence.
lidarCalibrationEnabled
boolean | null
required
Whether LiDAR calibration is enabled.
cameraCalibrationEnabled
boolean | null
required
Whether camera calibration is enabled.

SliceItem

Represents an item in a slice (filtered view of a dataset).
id
number | null
required
Numeric ID of the slice item.
uid
string
required
Unique identifier for the slice item.
key
string | null
required
Unique key for the item.
dataset
string | null
required
UID of the source dataset.
url
string | null
required
URL to access the item’s data.
gpuTextureUrl
string | null
required
GPU-optimized texture URL for 3D data.
thumbnails
string[]
required
Array of thumbnail URLs for the item.
videoThumbnail
string | null
required
Thumbnail URL for video items.
metadata
Record<string, unknown> | null
required
Custom metadata associated with the item.
exportSnippet
Record<string, unknown> | null
required
Export-specific data for the item.
annotations
Record<string, unknown> | null
required
Annotations associated with the item.
cropData
Record<string, unknown> | null
required
Crop data for the item.
Array of related dataset items.
UID of the related sequence.
createdAt
string | null
required
ISO 8601 timestamp of when the item was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the item was last updated.

Agent and automation types

Agent

Represents an AI agent that can be triggered by events.
uid
string
required
Unique identifier for the agent.
name
string
required
Display name of the agent.
description
string | null
required
Description of what the agent does.
events
string[]
required
Array of event types that trigger this agent.
callbackUrl
string | null
required
URL to call when the agent is triggered.
isActive
boolean
required
Whether the agent is currently active.
project
string | null
required
UID of the project this agent is associated with.
taskTypes
string[]
required
Array of task types this agent can handle.
createdAt
string | null
required
ISO 8601 timestamp of when the agent was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the agent was last updated.

AgentExecution

Represents a single execution of an agent.
uid
string
required
Unique identifier for the execution.
registration
string
required
UID of the agent registration.
eventType
string
required
Type of event that triggered this execution.
task
string | null
required
UID of the task this execution is associated with.
result
string | null
required
Result of the execution.
status
string | null
required
Current status of the execution (e.g., “pending”, “running”, “completed”, “failed”).
action
string | null
required
Action taken by the agent.
eventPayload
Record<string, unknown> | null
required
Payload of the event that triggered the execution.
responsePayload
Record<string, unknown> | null
required
Response payload from the agent.
errorMessage
string | null
required
Error message if the execution failed.
startedAt
string | null
required
ISO 8601 timestamp of when the execution started.
completedAt
string | null
required
ISO 8601 timestamp of when the execution completed.
createdAt
string | null
required
ISO 8601 timestamp of when the execution was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the execution was last updated.

InferenceProvider

Represents an AI model provider for inference.
uid
string
required
Unique identifier for the inference provider.
name
string
required
Display name of the provider.
description
string | null
required
Description of the provider.
providerType
string | null
required
Type of provider (e.g., “openai”, “anthropic”, “custom”).
config
Record<string, unknown> | null
required
Configuration for the provider.
isActive
boolean
required
Whether the provider is currently active.
project
string | null
required
UID of the project this provider is associated with.
lastTestAt
string | null
required
ISO 8601 timestamp of when the provider was last tested.
lastTestSuccess
boolean | null
required
Whether the last test was successful.
createdAt
string | null
required
ISO 8601 timestamp of when the provider was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the provider was last updated.

AutoLabelJob

Represents an automatic labeling job.
uid
string
required
Unique identifier for the auto-label job.
status
string | null
required
Current status of the job (e.g., “pending”, “running”, “completed”, “failed”).
modelType
string | null
required
Type of model used for auto-labeling.
confidenceThreshold
number | null
required
Minimum confidence threshold for applying labels.
labels
string[]
required
Array of labels to apply.
dryRun
boolean
required
Whether this is a dry run (no actual labels applied).
totalItems
number
required
Total number of items to process.
processedItems
number
required
Number of items processed so far.
successfulItems
number
required
Number of items successfully labeled.
failedItems
number
required
Number of items that failed to label.
skippedItems
number
required
Number of items skipped.
progressPct
number | null
required
Progress percentage (0-100).
errorMessage
string | null
required
Error message if the job failed.
summary
Record<string, unknown> | null
required
Summary of the job results.
startedAt
string | null
required
ISO 8601 timestamp of when the job started.
completedAt
string | null
required
ISO 8601 timestamp of when the job completed.
createdAt
string | null
required
ISO 8601 timestamp of when the job was created.

Quality and consensus types

QualityTarget

Represents a quality metric target.
uid
string
required
Unique identifier for the quality target.
name
string
required
Display name of the target.
metric
string
required
Metric to measure (e.g., “iou”, “accuracy”).
operator
string
required
Comparison operator (e.g., “gt”, “lt”, “eq”).
threshold
number
required
Threshold value for the metric.
severity
string | null
required
Severity level if the target is breached (e.g., “low”, “medium”, “high”).
isActive
boolean
required
Whether the target is currently active.
notifyWebhook
boolean
required
Whether to send webhook notifications on breach.
notifyEmails
string[]
required
Array of email addresses to notify on breach.
lastEvaluatedAt
string | null
required
ISO 8601 timestamp of when the target was last evaluated.
lastValue
number | null
required
Last measured value of the metric.
isBreached
boolean
required
Whether the target is currently breached.
breachCount
number
required
Number of times the target has been breached.
lastBreachedAt
string | null
required
ISO 8601 timestamp of when the target was last breached.
createdAt
string | null
required
ISO 8601 timestamp of when the target was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the target was last updated.

QualityTargetEvaluation

Represents the evaluation of a quality target.
uid
string
required
Unique identifier for the evaluation.
name
string
required
Name of the quality target.
metric
string
required
Metric being measured.
threshold
number
required
Threshold value for the metric.
operator
string
required
Comparison operator used.
currentValue
number
required
Current value of the metric.
isBreached
boolean
required
Whether the target is breached.
severity
string | null
required
Severity level of the breach.

ConsensusConfig

Configuration for consensus scoring.
uid
string
required
Unique identifier for the consensus configuration.
iouThreshold
number
required
Intersection over Union (IoU) threshold for agreement.
minAgreementRatio
number
required
Minimum agreement ratio (0-1) required for consensus.
minAnnotations
number
required
Minimum number of annotations required.
createdAt
string | null
required
ISO 8601 timestamp of when the configuration was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the configuration was last updated.

ConsensusScore

Represents a consensus score for an annotated item.
uid
string
required
Unique identifier for the consensus score.
datasetItemUid
string
required
UID of the dataset item.
taskName
string
required
Name of the task.
scoreType
string | null
required
Type of score (e.g., “iou”, “exact_match”).
score
number
required
Consensus score value (typically 0-1).
annotatorCount
number
required
Number of annotators whose annotations were considered.
details
Record<string, unknown> | null
required
Additional details about the consensus calculation.
createdAt
string | null
required
ISO 8601 timestamp of when the score was created.

ConsensusSummary

Summary statistics for consensus scores.
meanScore
number
required
Mean consensus score across all items.
medianScore
number
required
Median consensus score across all items.
minScore
number
required
Minimum consensus score.
maxScore
number
required
Maximum consensus score.
totalItems
number
required
Total number of items scored.
itemsWithConsensus
number
required
Number of items that meet the consensus threshold.
scoreDistribution
Record<string, unknown> | null
required
Distribution of scores across ranges.
byTaskName
unknown[] | null
required
Breakdown of scores by task name.

ConsensusComputeResult

Result of a consensus computation operation.
status
string
required
Status of the computation (e.g., “success”, “failed”).
message
string
required
Message describing the result.

Annotation issues

AnnotationIssue

Represents a reported issue with an annotation.
uid
string
required
Unique identifier for the issue.
datasetItemUid
string | null
required
UID of the dataset item with the issue.
sequenceUid
string | null
required
UID of the sequence with the issue.
project
AnnotationIssueProject | null
required
Project information.
reporter
AnnotationIssueReporter | null
required
Information about who reported the issue.
priority
string | null
required
Priority level of the issue.
severity
string | null
required
Severity level of the issue.
description
string | null
required
Description of the issue.
status
string | null
required
Current status of the issue (e.g., “open”, “resolved”, “closed”).
tool
AnnotationIssueTool | null
required
Tool used for the annotation.
problem
AnnotationIssueProblem | null
required
Type of problem identified.
wrongClass
string | null
required
The incorrect class label, if applicable.
correctClass
string | null
required
The correct class label, if applicable.
shouldReAnnotate
boolean | null
required
Whether the item should be re-annotated.
shouldDelete
boolean | null
required
Whether the annotation should be deleted.
framesAffected
string | null
required
Frames affected by the issue (for video/sequences).
coordinates
unknown
required
Coordinates of the issue location.
queryParams
Record<string, unknown> | null
required
Query parameters for navigating to the issue.
createdAt
string | null
required
ISO 8601 timestamp of when the issue was created.
closedAt
string | null
required
ISO 8601 timestamp of when the issue was closed.
objectUid
string | null
required
UID of the annotation object with the issue.

AnnotationIssueProject

uid
string
required
Project UID.
name
string
required
Project name.

AnnotationIssueReporter

username
string
required
Username of the reporter.
picture
string | null
required
Profile picture URL of the reporter.
fullName
string | null
required
Full name of the reporter.
type
string | null
required
Type of reporter (e.g., “human”, “agent”).
isStaff
boolean | null
required
Whether the reporter is a staff member.

AnnotationIssueTool

uid
string
required
Tool UID.
name
string
required
Tool name.
default
boolean | null
required
Whether this is the default tool.

AnnotationIssueProblem

uid
string
required
Problem UID.
title
string
required
Problem title.

AnnotationIssueMetrics

Metrics for annotation issues.
statusCount
Record<string, number> | null
required
Count of issues by status.
priorityCount
Record<string, number> | null
required
Count of issues by priority.
severityCount
Record<string, number> | null
required
Count of issues by severity.
meanSecondsCloseTimeAll
number | null
required
Mean time to close issues (in seconds) for all reporters.
meanSecondsCloseTimeCustomer
number | null
required
Mean time to close issues (in seconds) for customer reporters.
meanUnresolvedIssueAgeAll
number | null
required
Mean age of unresolved issues (in seconds) for all reporters.
meanUnresolvedIssueAgeCustomer
number | null
required
Mean age of unresolved issues (in seconds) for customer reporters.
objectCountByAnnotationIssueProblemUid
Record<string, unknown>[] | null
required
Count of issues by problem type.

AnnotationIssueToolDetail

Detailed information about an annotation issue tool.
uid
string
required
Tool UID.
name
string
required
Tool name.
datasetType
string | null
required
Type of dataset this tool is for.
default
boolean | null
required
Whether this is the default tool.
problems
AnnotationIssueProblem[] | null
required
Array of problems that can be reported with this tool.

Fleet management types

FleetDevice

Represents a device in a fleet.
uid
string
required
Unique identifier for the device.
name
string
required
Display name of the device.
type
string | null
required
Type of device (e.g., “sensor”, “camera”, “lidar”).
status
string | null
required
Current status of the device (e.g., “online”, “offline”, “error”).
tags
string[]
required
Array of tags for organizing devices.
firmwareVersion
string | null
required
Current firmware version.
metadata
Record<string, unknown> | null
required
Additional metadata about the device.
lastSeenAt
string | null
required
ISO 8601 timestamp of when the device was last seen.
deviceToken
string | null
required
Authentication token for the device.
createdAt
string | null
required
ISO 8601 timestamp of when the device was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the device was last updated.

FleetRecording

Represents a recording from a fleet device.
uid
string
required
Unique identifier for the recording.
device
string | null
required
UID of the device that made the recording.
status
string | null
required
Current status of the recording (e.g., “recording”, “processing”, “completed”).
durationSeconds
number | null
required
Duration of the recording in seconds.
sizeBytes
number | null
required
Size of the recording in bytes.
topicCount
number
required
Number of topics/channels in the recording.
tags
string[]
required
Array of tags for organizing recordings.
topics
Array<Record<string, unknown>> | null
required
Array of topics/channels included in the recording.
startedAt
string | null
required
ISO 8601 timestamp of when the recording started.
endedAt
string | null
required
ISO 8601 timestamp of when the recording ended.
createdAt
string | null
required
ISO 8601 timestamp of when the recording was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the recording was last updated.

FleetEvent

Represents an event that occurred on a fleet device or recording.
uid
string
required
Unique identifier for the event.
recording
string | null
required
UID of the recording where the event occurred.
device
string | null
required
UID of the device where the event occurred.
type
string | null
required
Type of event (e.g., “error”, “warning”, “info”).
label
string | null
required
Label or category for the event.
description
string | null
required
Description of the event.
timestamp
string | null
required
ISO 8601 timestamp of when the event occurred.
durationMs
number | null
required
Duration of the event in milliseconds.
tags
string[]
required
Array of tags for organizing events.
metadata
Record<string, unknown> | null
required
Additional metadata about the event.
severity
string | null
required
Severity level of the event.
createdAt
string | null
required
ISO 8601 timestamp of when the event was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the event was last updated.

FleetRule

Represents an automation rule for fleet management.
uid
string
required
Unique identifier for the rule.
name
string
required
Display name of the rule.
description
string | null
required
Description of what the rule does.
enabled
boolean
required
Whether the rule is currently enabled.
condition
Record<string, unknown> | null
required
Condition that triggers the rule.
actions
Array<Record<string, unknown>>
required
Array of actions to take when the rule is triggered.
scope
Record<string, unknown> | null
required
Scope where the rule applies (e.g., specific devices or recordings).
hitCount
number
required
Number of times the rule has been triggered.
lastHitAt
string | null
required
ISO 8601 timestamp of when the rule was last triggered.
createdAt
string | null
required
ISO 8601 timestamp of when the rule was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the rule was last updated.

FleetAlert

Represents an alert generated by a fleet rule.
uid
string
required
Unique identifier for the alert.
rule
string | null
required
UID of the rule that generated the alert.
device
string | null
required
UID of the device related to the alert.
recording
string | null
required
UID of the recording related to the alert.
severity
string | null
required
Severity level of the alert.
status
string | null
required
Current status of the alert (e.g., “active”, “acknowledged”, “resolved”).
message
string | null
required
Alert message.
triggeredAt
string | null
required
ISO 8601 timestamp of when the alert was triggered.
acknowledgedAt
string | null
required
ISO 8601 timestamp of when the alert was acknowledged.
acknowledgedBy
string | null
required
UID of the user who acknowledged the alert.
resolvedAt
string | null
required
ISO 8601 timestamp of when the alert was resolved.
resolutionNote
string | null
required
Note about how the alert was resolved.
createdAt
string | null
required
ISO 8601 timestamp of when the alert was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the alert was last updated.

FleetAlertChannel

Represents a channel for sending fleet alerts.
uid
string
required
Unique identifier for the alert channel.
name
string
required
Display name of the channel.
type
string | null
required
Type of channel (e.g., “email”, “webhook”, “slack”).
config
Record<string, unknown> | null
required
Configuration for the channel.
createdAt
string | null
required
ISO 8601 timestamp of when the channel was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the channel was last updated.

Webhook types

Webhook

Represents a webhook subscription.
uid
string
required
Unique identifier for the webhook.
targetUrl
string
required
URL where webhook events will be sent.
events
string[]
required
Array of event types this webhook subscribes to.
isActive
boolean
required
Whether the webhook is currently active.
createdAt
string | null
required
ISO 8601 timestamp of when the webhook was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the webhook was last updated.

WebhookDelivery

Represents a webhook delivery attempt.
uid
string
required
Unique identifier for the delivery.
subscription
string
required
UID of the webhook subscription.
eventType
string
required
Type of event that was delivered.
payload
Record<string, unknown>
required
Payload that was sent.
responseStatus
number | null
required
HTTP status code of the response.
responseBody
string | null
required
Response body from the webhook endpoint.
attempts
number
required
Number of delivery attempts.
nextRetryAt
string | null
required
ISO 8601 timestamp of when the next retry will occur.
status
string | null
required
Current status of the delivery (e.g., “pending”, “delivered”, “failed”).
createdAt
string | null
required
ISO 8601 timestamp of when the delivery was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the delivery was last updated.

Organization and team types

Organization

Represents an organization.
uid
string
required
Unique identifier for the organization.
name
string
required
Display name of the organization.
slug
string
required
URL-friendly identifier for the organization.
handle
string | null
required
Handle or username for the organization.
description
string | null
required
Description of the organization.
URL of the organization’s logo.
website
string | null
required
Organization’s website URL.
industry
string | null
required
Industry the organization operates in.
email
string | null
required
Contact email for the organization.
phone
string | null
required
Contact phone number for the organization.
visibility
string | null
required
Visibility setting (e.g., “private”, “public”).
plan
string | null
required
Billing plan for the organization.
isVerified
boolean
required
Whether the organization is verified.
isActive
boolean
required
Whether the organization is currently active.
memberCount
number | null
required
Number of members in the organization.
teamCount
number | null
required
Number of teams in the organization.
datasetCount
number | null
required
Number of datasets owned by the organization.
projectCount
number | null
required
Number of projects owned by the organization.
sliceCount
number | null
required
Number of slices owned by the organization.
role
string | null
required
Current user’s role in the organization.
joinedAt
string | null
required
ISO 8601 timestamp of when the current user joined.
allowedDomains
string[] | null
required
Array of email domains allowed for auto-joining.
createdAt
string | null
required
ISO 8601 timestamp of when the organization was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the organization was last updated.

OrganizationMember

Represents a member of an organization.
userUid
string
required
UID of the user.
username
string | null
required
Username of the member.
email
string | null
required
Email address of the member.
fullName
string | null
required
Full name of the member.
picture
string | null
required
Profile picture URL of the member.
role
string | null
required
Role of the member in the organization.
createdAt
string | null
required
ISO 8601 timestamp of when the member joined.

Invitation

Represents an invitation to join an organization.
uid
string
required
Unique identifier for the invitation.
organizationName
string | null
required
Name of the organization.
organizationSlug
string | null
required
Slug of the organization.
invitedEmail
string
required
Email address of the invitee.
invitedByUsername
string | null
required
Username of the person who sent the invitation.
role
string | null
required
Role the invitee will have.
status
string | null
required
Current status of the invitation (e.g., “pending”, “accepted”, “expired”).
expiresAt
string | null
required
ISO 8601 timestamp of when the invitation expires.
isExpired
boolean | null
required
Whether the invitation is expired.
acceptUrl
string | null
required
URL to accept the invitation.
Shareable link for the invitation.
createdAt
string | null
required
ISO 8601 timestamp of when the invitation was created.

Team

Represents a team within an organization.
uid
string
required
Unique identifier for the team.
name
string
required
Display name of the team.
slug
string | null
required
URL-friendly identifier for the team.
description
string | null
required
Description of the team.
color
string | null
required
Color code for the team (for UI purposes).
organizationUid
string | null
required
UID of the organization this team belongs to.
organizationName
string | null
required
Name of the organization this team belongs to.
organizationSlug
string | null
required
Slug of the organization this team belongs to.
memberCount
number | null
required
Number of members in the team.
createdAt
string | null
required
ISO 8601 timestamp of when the team was created.
updatedAt
string | null
required
ISO 8601 timestamp of when the team was last updated.

TeamMember

Represents a member of a team.
userUid
string
required
UID of the user.
username
string | null
required
Username of the member.
email
string | null
required
Email address of the member.
fullName
string | null
required
Full name of the member.
picture
string | null
required
Profile picture URL of the member.
role
string | null
required
Role of the member in the team.
createdAt
string | null
required
ISO 8601 timestamp of when the member joined the team.

Slice types

Slice

Represents a slice (filtered view) of a dataset.
uid
string
required
Unique identifier for the slice.
name
string
required
Display name of the slice.
slug
string | null
required
URL-friendly identifier for the slice.
ownerName
string | null
required
Name of the owner.
organization
Record<string, unknown> | null
required
Organization information.
visibility
string | null
required
Visibility setting (e.g., “private”, “public”).
status
string | null
required
Current status of the slice.
itemCount
number | null
required
Number of items in the slice.
subSlices
Record<string, unknown>[] | null
required
Array of sub-slices.
sourceData
unknown | null
required
Source data configuration.
Array of URLs for featured items in the slice.

Authentication and signup types

SignupUser

User information returned after signup.
uid
string
required
Unique identifier for the user.
username
string
required
Username chosen by the user.
email
string | null
required
Email address of the user.
firstName
string | null
required
First name of the user.
lastName
string | null
required
Last name of the user.
inWaitlist
boolean
required
Whether the user is in the waitlist.

SignupResponse

Response from the signup endpoint.
user
SignupUser
required
Information about the newly created user.
apiKey
string
required
API key for the new user.

Pagination types

CursorPage

Generic cursor-based pagination response.
items
T[]
required
Array of items in the current page.
nextCursor
string | null
required
Cursor for the next page, or null if this is the last page.
previousCursor
string | null
required
Cursor for the previous page, or null if this is the first page.
hasMore
boolean
required
Whether there are more items after the current page.

RawPageResponse

Raw API response shape from DRF cursor pagination.
results
Record<string, unknown>[]
required
Array of raw result objects.
next
string | null
required
URL for the next page.
previous
string | null
required
URL for the previous page.

Rate limiting types

RateLimitInfo

Information about rate limiting.
limit
string | null
required
Total rate limit.
remaining
string | null
required
Remaining requests before hitting the limit.
reset
string | null
required
ISO 8601 timestamp of when the rate limit resets.

Build docs developers (and LLMs) love