SoulFire LogoSoulFire
SDKReferenceSDK API

TypeScript options

Connection, session, and task options from the SDK source.

Generated from the SoulFire SDK source. Each signature links to the same source revision.

These tables include inherited fields. Path options use the generated PathfindOptionsSchema contract. See pathfinding for search modes and safety limits.

SoulFireOptions

FieldTypeRequiredDescription
baseUrlstringYes
tokenstring | TokenProviderNo
defaultTimeoutMsnumberNo
fetchGrpcWebTransportOptions["fetch"]No
interceptorsInterceptor[]No
requiredCapabilitiesreadonly string[]No
requiredPluginsreadonly RequiredPluginRequirement[]No
transportTransportNo

BotSessionOptions

FieldTypeRequiredDescription
filterMessageInitShape<typeof BotEventFilterSchema>NoDefaults to every category except sounds, particles and chunks.
heartbeatIntervalSecondsnumberNoDefaults to 15, from 5 to 60.

TaskStartOptions

FieldTypeRequiredDescription
callCallOptionsNo
deadlineDateNoThe task ends as TIMED_OUT at this time. Must be in the future.
conflictPolicyBotTaskConflictPolicyNo
reconnectPolicyBotTaskReconnectPolicyNo
disconnectPolicyBotTaskDisconnectPolicyNo
priorityBotTaskPriorityNo
parentTaskIdstring | undefinedNo
causationIdstring | undefinedNo
idempotencyKeystring | undefinedNo

CollectBlocksTaskOptions

FieldTypeRequiredDescription
tagsreadonly string[]NoBlock tags to match, besides blockIds.
countnumberNoDefaults to 1.
searchRadiusnumberNoDefaults to 32, at most 64.
avoidSubmergedTargetsbooleanNoSkips blocks with fluid above them, up to the bot's height.
requireLineOfSightbooleanNoOnly picks blocks the bot can see, checked again after each block.
targetYRangeReadonly<{ minimum?: number; maximum?: number; }>NoOnly blocks between these heights; a missing bound is open.
pathMessageInitShape<typeof PathfindOptionsSchema>No
callCallOptionsNo
deadlineDateNoThe task ends as TIMED_OUT at this time. Must be in the future.
conflictPolicyBotTaskConflictPolicyNo
reconnectPolicyBotTaskReconnectPolicyNo
disconnectPolicyBotTaskDisconnectPolicyNo
priorityBotTaskPriorityNo
parentTaskIdstring | undefinedNo
causationIdstring | undefinedNo
idempotencyKeystring | undefinedNo

FollowEntityTaskOptions

FieldTypeRequiredDescription
pathMessageInitShape<typeof PathfindOptionsSchema>No
targetUnavailableTimeoutSecondsnumberNoHow long the entity may stay out of sight before the task ends. Defaults to 10, at most 3600.
callCallOptionsNo
deadlineDateNoThe task ends as TIMED_OUT at this time. Must be in the future.
conflictPolicyBotTaskConflictPolicyNo
reconnectPolicyBotTaskReconnectPolicyNo
disconnectPolicyBotTaskDisconnectPolicyNo
priorityBotTaskPriorityNo
parentTaskIdstring | undefinedNo
causationIdstring | undefinedNo
idempotencyKeystring | undefinedNo

How is this page?

Last updated on

On this page