• Retrieves all key-value pairs from a specified namespace.

    Fetches all stored data within the given namespace as a complete object. Useful for loading configuration sets, user preferences, or application state data in bulk operations.

    Parameters

    • namespace: string = "studio"

      Namespace to retrieve data from (defaults to "studio")

    Returns Promise<KeyValueResponse>

    Promise resolving to object containing all key-value pairs in namespace

    Throws

    When retrieval fails or service returns non-200 status

    Example: Load Application Configuration

    const appConfig = await getKeyValue('app-config');
    console.log('Max retries:', appConfig.maxRetries);
    console.log('Debug mode:', appConfig.debugMode);

    const userPrefs = await getKeyValue('user-preferences');
    const theme = userPrefs.themeMode || 'light';