Skip to main content

Overview

This page lists every type exported from @gizatech/agent-sdk. Types are grouped by category. All types can be imported directly:

Configuration

GizaConfig

Options passed to the Giza constructor. Credentials fall back to environment variables when omitted.

ResolvedGizaConfig

Internal configuration after defaults and environment variables are resolved.

Common

Address

Ethereum address type. A 0x-prefixed hex string.

Chain

Supported blockchain networks.

GizaError

Base error class for all SDK errors.

ValidationError

Thrown when input validation fails (invalid address, missing required fields, etc.).

NotImplementedError

Thrown when a feature is not yet implemented.

Agent Options

ActivateOptions

AprOptions

DeactivateOptions

PaginationOptions

PerformanceOptions

WaitForDeactivationOptions


Agent Responses

SmartAccountInfo

ActivateResponse

DeactivateResponse

TopUpResponse

RunResponse

AgentInfo

PerformanceChartResponse

PerformanceData

WalletAprResponse

WalletAprSubPeriod

AprByTokenResponse

AllocatedValue

Portfolio

AccruedRewardsWithValue

AccruedRewardsBySymbol

Transaction

TransactionHistoryResponse

PaginationInfo

WithdrawResponse

FullWithdrawResponse

PartialWithdrawResponse

WithdrawDetail

WithdrawalStatusResponse

FeeResponse

LimitResponse

ClaimedReward

ClaimedRewardsResponse

DepositListResponse

Deposit

Withdraw

ExecutionWithTransactionsDTO

PaginatedExecutionDTO

LogDTO

PaginatedLogDTO

RewardDTO

PaginatedRewardDTO

Protocol

ProtocolPool

ProtocolsResponse

ProtocolsRawResponse

ProtocolSupply

ProtocolsSupplyResponse

ConstraintConfig (Agent)

ConstraintConfigResponse

ChainConfigResponse

GlobalConfigResponse

HealthcheckResponse

ChainsResponse

TokenDistributionItem

ProtocolDistribution

LiquidityDistribution

Statistics

TVLResponse

TokenInfo

TokensResponse


Agent Enums

AgentStatus

TxAction

TxStatus

SortOrder

Order

Period

ExecutionStatus


Optimizer Types

OptimizeOptions

OptimizeResponse

OptimizationResult

ProtocolAllocation

ActionDetail

CalldataInfo

WalletConstraints

ConstraintConfig (Optimizer)

Imported as OptimizerConstraintConfig to distinguish from the agent variant.

Paginator Types

Paginator<T>

Async-iterable paginator returned by collection methods. See Paginator reference.

PaginatedResponse<T>

PageFetcher<T>

Internal type used by the Paginator constructor.

Error Classes

GizaError

Base class for all SDK errors. Extends Error.

ValidationError

Thrown on invalid input (bad addresses, missing fields, invalid values).

NotImplementedError

Thrown when calling a feature that is not yet implemented.

GizaAPIError

Thrown when the Giza API returns a non-2xx response.

TimeoutError

Thrown when a request or polling operation exceeds its timeout.

NetworkError

Thrown on network connectivity failures (DNS resolution, connection refused, etc.).

Constants

DEFAULT_AGENT_ID

Default agent identifier used for smart account creation.

DEFAULT_TIMEOUT

Default HTTP request timeout in milliseconds.

CHAIN_NAMES

Map of chain IDs to human-readable names.