UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

54 lines • 2.18 kB
// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. ========= // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ========= Copyright 2026 @ Strukto.AI All Rights Reserved. ========= export const DEFAULT_BASE_URL = 'https://api.airtable.com/v0'; export const DEFAULT_MAX_READ_RECORDS = 10_000; export const DEFAULT_REQUESTS_PER_SECOND = 5; export const PAGE_SIZE = 100; // The most payloads one webhook payloads read answers. export const WEBHOOK_PAGE_SIZE = 50; // Metadata calls (the base listing) are metered per account rather than per // base; they pace under their own key. export const META_KEY = 'meta'; // A view is looked up by id when the value is shaped like one, and by name // otherwise; each miss has its own type. export const NOT_FOUND_TYPES = new Set([ 'NOT_FOUND', 'MODEL_ID_NOT_FOUND', 'INVALID_PERMISSIONS_OR_MODEL_NOT_FOUND', 'VIEW_ID_NOT_FOUND', 'VIEW_NAME_NOT_FOUND', ]); // Airtable takes at most ten records in one create, update or delete. export const MAX_BATCH = 10; export const VIEW_SUFFIX = '.jsonl'; // The keys of one records.jsonl line, the only ones a write reads back. export const LINE_KEYS = new Set(['record_id', 'created_time', 'fields']); // The field types Airtable computes and refuses a write to. A mount line // carries every one of them, so a line piped back drops them first. export const COMPUTED_TYPES = new Set([ 'aiText', 'autoNumber', 'button', 'count', 'createdBy', 'createdTime', 'externalSyncSource', 'formula', 'lastModifiedBy', 'lastModifiedTime', 'lookup', 'multipleLookupValues', 'rollup', ]); //# sourceMappingURL=constants.js.map