Nurama Developers
Namespaces

product

Methods and types of the `product` namespace (`client.product` / `bot.product`).

Interfaces

GetWorkspaceProductsParams

Properties

PropertyType
paymentProvider?"stripe" | "manualInvoice"
productType?"basePlan" | "addSeat" | "addStorage" | "addCredits" | "enableBoards"

Type Aliases

ProductResponse

type ProductResponse = Product;

SupportedCurrency

type SupportedCurrency = "gbp" | "usd" | "eur";

Functions

default()

function default(client): {
  getSuggestedCurrency: Promise<{
     country: string | null;
     currency: SupportedCurrency;
     locked?: boolean;
     supported: SupportedCurrency[];
  }>;
  getWorkspaceProducts: Promise<Product[]>;
  listPlans: Promise<Product[]>;
};

Defines product-related methods for the NuramaClient.

Parameters

ParameterTypeDescription
clientdefaultThe NuramaClient instance.

Returns

An object containing the product-related methods.

NameTypeDescription
getSuggestedCurrency()() => Promise<{ country: string | null; currency: SupportedCurrency; locked?: boolean; supported: SupportedCurrency[]; }>Suggested billing currency for the caller, derived server-side from the CDN geo header. A default for the currency selector only — the user can override. Falls back to usd with no geo header.
getWorkspaceProducts()(workspaceId, params?) => Promise<Product[]>Retrieves available products for a specific workspace, considering restrictions. Requires authentication and permission.
listPlans()() => Promise<Product[]>List active starter-package "plans" available to the caller, scoped by user-level restrictions but NOT bound to a workspace. Used by the post-signup plan-selection overlay before any workspace exists.

On this page