/**
 * @module subscription types (and some enums/constants)
 */
import { DEFAULT_DESCRIPTION_SUBSCRIPTION, DEFAULT_NAME_SUBSCRIPTION, DEFAULT_UUID_SUBSCRIPTION } from './subscription-constants.mjs';
/** Cmds for interacting with ibgib spaces. */
export const SubscriptionCmd = {
    /**
     * unsubscribe from the subscription's associated observable (that generated
     * this subscription).
     */
    unsubscribe: 'unsubscribe',
    /**
     * returns boolean if this subscription is still actively subscribed to the
     * associated observable (that generated this subscription).
     */
    unsubscribed: 'unsubscribed',
};
/**
 * Flags to affect the command's interpretation.
 */
export const SubscriptionCmdModifier = {
    /**
     * hmm...
     */
    ib: 'ib',
    /**
     * hmm...
     */
    gib: 'gib',
    /**
     * hmm...
     */
    ibgib: 'ibgib',
};
/**
 * Default data values for a Subscription.
 *
 * If you change this, please bump the version
 *
 * (but of course won't be the end of the world when this doesn't happen).
 */
export const DEFAULT_SUBSCRIPTION_DATA_V1 = {
    version: '1',
    uuid: DEFAULT_UUID_SUBSCRIPTION,
    name: DEFAULT_NAME_SUBSCRIPTION,
    description: DEFAULT_DESCRIPTION_SUBSCRIPTION,
    classname: `Subscription_V1`,
    /**
     * if true, then the witness will attempt to persist ALL calls to
     * `witness.witness(...)`.
     */
    persistOptsAndResultIbGibs: false,
    /**
     * allow ibgibs like 42^gib ({ib: 42, gib: 'gib'} with `data` and `rel8ns` undefined)
     */
    allowPrimitiveArgs: true,
    /**
     * witnesses should be guaranteed not to throw uncaught exceptions.
     */
    catchAllErrors: false,
    /**
     * if true, would enable logging of all calls to `witness.witness(...)`
     */
    trace: false,
    // put in your custom defaults here
};
export const DEFAULT_SUBSCRIPTION_REL8NS_V1 = undefined;
//# sourceMappingURL=subscription-types.mjs.map