/** * Zero space is a default space that uses default values that should be * reproducible and not break or something...it's all in flux really. */ export declare const ZERO_SPACE_ID = "zero"; /** * was 000_default_space in MVP. need to add a conversion */ export declare const IBGIB_SPACE_NAME_DEFAULT = "zerospace"; /** * For use with documentation and UX help. * * This is probably scoped to a particular schema...(e.g. v1) */ export declare const VALID_SPACE_NAME_EXAMPLES: string[]; /** * For use with documentation and UX help. * * This is probably scoped to a particular schema...(e.g. v1) */ export declare const INVALID_SPACE_NAME_EXAMPLES: string[]; /** * */ export declare const PERSIST_OPTS_AND_RESULTS_IBGIBS_DEFAULT = false; /** * Yep, this one starts with default instead of ending with it. */ export declare const DEFAULT_LOCAL_SPACE_DESCRIPTION = "This is a local space. There are many like it, but this one is mine."; /** * The main roots^gib ibgib uses this rel8n name to keep track of roots. */ export declare const SPACE_REL8N_NAME = "space"; /** * rel8n name in a space ibgib to the config ibgib(s?) */ export declare const SPACE_REL8N_NAME_CONFIG = "config"; /** * note that atow this is implied in the regexp not derivative * @see {@link SPACE_NAME_REGEXP} */ export declare const SPACE_NAME_MAX_LENGTH = 64; /** * alphanumerics start + end, middle can also contain hyphens atow. * * NOTE: this implies the value of {@link SPACE_NAME_MAX_LENGTH} but this is not * derived from the value. so if you change this, be sure to change/check that * * @see {@link SPACE_NAME_MAX_LENGTH} */ export declare const SPACE_NAME_REGEXP: RegExp; /** * A spaces ibGib uses this rel8n name for related sync spaces, used * in replicating ibgib spaces. */ export declare const SYNC_SPACE_REL8N_NAME = "syncSpace"; /** * ...? */ export declare const DEFAULT_SPACE_TEXT = "space"; /** * Default icon specifically for spaces. */ export declare const DEFAULT_SPACE_ICON = "sparkles-outline"; /** * Default description specifically for spaces. */ export declare const DEFAULT_SPACE_DESCRIPTION = "This is a space ibgib, which is basically a special ibgib who has behavior\nto interface with data stores and/or other space(s) to provide concrete location\nfor ibgibs. All ibgibs can have relationships with other ibgibs, but this one\nspecifically either implies a physical interface to things like databases,\nfile systems, and similar; OR, when this space interfaces with other spaces, this\nis a logical organization of ibgib locations, like when configuring clusters or\nconsensus algorithms."; /** * rel8n name used inside the root to those ibgib it contains. * * @example * ```json * { * ib: root, * gib: ABC123, * data: {...}, * rel8ns: { * [rel8nName]: ["a^1", "b^2"] * } * } * ``` */ export declare const DEFAULT_SPACE_REL8N_NAME = "x"; /** * Interval in ms between polling for updates ("notifications") between local * space (ibgibs service) and dynamo sync space(s), or for use within a single * space for checking its internal state. * * Of course, long polling is very hacky, but so is using DynamoDB in the cloud * for a sync space. Obviously need to progress to a more mature and robust sync * space/outer space architecture. */ export declare const DEFAULT_LOCAL_SPACE_POLLING_INTERVAL_MS = 30000; export declare const DEFAULT_LOCAL_SPACE_POLLING_DELAY_FIRST_RUN_MS = 10000; /** * it's a space */ export declare const SPACE_ATOM = "space"; /** * {@link DEFAULT_LOCAL_SPACE_POLLING_INTERVAL_MS} but for outer spaces, so * longer interval atow. */ export declare const DEFAULT_OUTER_SPACE_POLLING_INTERVAL_MS = 20000; /** * Amount of time to delay for FIRST poll execution. */ export declare const DEFAULT_OUTER_SPACE_POLLING_DELAY_FIRST_RUN_MS = 10000; /** * When a status is first created, this is used to indicate that * the tjp has not been set. */ export declare const STATUS_UNDEFINED_TJP_GIB = "gib"; /** * When a status is first created, this is used to indicate that * the txId has not been set. */ export declare const STATUS_UNDEFINED_TX_ID = "0"; export declare const SPACE_LOCK_IB_TERM = "space_lock"; /** * When attempting to acquire a lock ona space, and it is already lock, it will * wait a random amount of ms before trying to lock again. This is the default * max amount of ms before reattempting. */ export declare const DEFAULT_MAX_DELAY_MS_RETRY_LOCK_ACQUIRE = 100; /** * Will retry this many times before giving up... */ export declare const DEFAULT_MAX_DELAY_RETRY_LOCK_ACQUIRE_ATTEMPTS = 100; /** * We don't want someone locking a space forever by accident. */ export declare const MAX_LOCK_SECONDS_VALID: number; /** * Default value for secondsValid when acquiring/releasing lock in/on LOCAL * space. */ export declare const DEFAULT_SECONDS_VALID_LOCAL = 30; /** * Default value for secondsValid when acquiring/releasing lock in/on * OUTER space, e.g. sync spaces like aws dynamo sync space. */ export declare const DEFAULT_SECONDS_VALID_OUTER = 30; /** * retry count when calling getDependencyGraph. * * ## driving use case * * dependency graph fails when concurrent merges made in sync space. * need to wait until previous graph merger happens then retry. */ export declare const DEFAULT_MAX_RETRIES_GET_DEPENDENCY_GRAPH_OUTERSPACE = 5; /** * when getting dependency graph, sometimes we have to wait to retry */ export declare const DEFAULT_MS_BETWEEN_RETRIES_GET_DEPENDENCY_GRAPH_OUTERSPACE = 5000; /** * retry count when calling getDependencyGraph. * * ## driving use case * * dependency graph fails when concurrent merges made in sync space. * need to wait until previous graph merger happens then retry. */ export declare const DEFAULT_MAX_RETRIES_GET_DEPENDENCY_GRAPH_LOCAL = 3; /** * when getting dependency graph, sometimes we have to wait to retry */ export declare const DEFAULT_MS_BETWEEN_RETRIES_GET_DEPENDENCY_GRAPH_LOCAL = 1000; /** * currently not used in ionic-gib. */ export declare const DEFAULT_TX_ID_LENGTH = 5; //# sourceMappingURL=space-constants.d.mts.map