factions/actions
Interfaces
Section titled “Interfaces”PlanChooseFactionOptions
Section titled “PlanChooseFactionOptions”Defined in: packages/sage/src/factions/actions/index.ts:45
Explicit initial faction choice and address-only Profile authorization; no independent payer.
Example
Section titled “Example”declare const authorization: PlanAuthorization;const options: PlanChooseFactionOptions = { faction:'ustur', authorization };Properties
Section titled “Properties”authorization
Section titled “authorization”readonly authorization: PlanAuthorization;Defined in: packages/sage/src/factions/actions/index.ts:47
faction
Section titled “faction”readonly faction: PlayableFaction;Defined in: packages/sage/src/factions/actions/index.ts:46
Type Aliases
Section titled “Type Aliases”PlayableFaction
Section titled “PlayableFaction”type PlayableFaction = "mud" | "oni" | "ustur";Defined in: packages/sage/src/factions/actions/index.ts:37
Playable factions offered for initial enrollment; the raw unaligned enum is intentionally excluded.
Example
Section titled “Example”const faction: PlayableFaction = 'ustur';Functions
Section titled “Functions”planChooseFaction()
Section titled “planChooseFaction()”function planChooseFaction(ctx, options): Promise<Plan>;Defined in: packages/sage/src/factions/actions/index.ts:107
Plans initial faction enrollment, spending only the existing Profile vault’s observed storage funding. No account is created or funded until explicit execution. Existing enrollment is never changed. Delegated authority requires an existing certificate account; certificate validity remains chain-authoritative. A valid direct authority ignores an unused certificate.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
ctx | SageContext |
options | PlanChooseFactionOptions |
Returns
Section titled “Returns”Promise<Plan>
Example
Section titled “Example”declare const ctx: SageContext;declare const authorization: PlanAuthorization;const plan=await planChooseFaction(ctx,{faction:'ustur',authorization});console.log(plan.describe());References
Section titled “References”PlanAuthorization
Section titled “PlanAuthorization”Re-exports PlanAuthorization