@scalar/workspace-store 0.31.2 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +115 -0
- package/README.md +2 -2
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/client.js.map +2 -2
- package/dist/entities/auth/index.d.ts +10 -3
- package/dist/entities/auth/index.d.ts.map +1 -1
- package/dist/entities/auth/index.js +4 -0
- package/dist/entities/auth/index.js.map +2 -2
- package/dist/entities/auth/schema.d.ts +487 -4
- package/dist/entities/auth/schema.d.ts.map +1 -1
- package/dist/entities/auth/schema.js +45 -1
- package/dist/entities/auth/schema.js.map +2 -2
- package/dist/events/definitions/auth.d.ts +13 -2
- package/dist/events/definitions/auth.d.ts.map +1 -1
- package/dist/events/definitions/operation.d.ts +14 -0
- package/dist/events/definitions/operation.d.ts.map +1 -1
- package/dist/events/definitions/tag.d.ts +12 -6
- package/dist/events/definitions/tag.d.ts.map +1 -1
- package/dist/events/definitions/ui.d.ts +21 -8
- package/dist/events/definitions/ui.d.ts.map +1 -1
- package/dist/events/definitions/workspace.d.ts +5 -2
- package/dist/events/definitions/workspace.d.ts.map +1 -1
- package/dist/mutators/auth.d.ts +1 -0
- package/dist/mutators/auth.d.ts.map +1 -1
- package/dist/mutators/auth.js +17 -2
- package/dist/mutators/auth.js.map +2 -2
- package/dist/mutators/index.d.ts +6 -0
- package/dist/mutators/index.d.ts.map +1 -1
- package/dist/mutators/operation/index.d.ts +1 -0
- package/dist/mutators/operation/index.d.ts.map +1 -1
- package/dist/mutators/operation/index.js +3 -1
- package/dist/mutators/operation/index.js.map +2 -2
- package/dist/mutators/operation/operation.d.ts +9 -1
- package/dist/mutators/operation/operation.d.ts.map +1 -1
- package/dist/mutators/operation/operation.js +31 -36
- package/dist/mutators/operation/operation.js.map +2 -2
- package/dist/mutators/operation/parameters.d.ts.map +1 -1
- package/dist/mutators/operation/parameters.js +7 -8
- package/dist/mutators/operation/parameters.js.map +2 -2
- package/dist/mutators/server.d.ts.map +1 -1
- package/dist/mutators/server.js +5 -1
- package/dist/mutators/server.js.map +2 -2
- package/dist/mutators/tag.d.ts +8 -0
- package/dist/mutators/tag.d.ts.map +1 -1
- package/dist/mutators/tag.js +55 -12
- package/dist/mutators/tag.js.map +2 -2
- package/dist/navigation/helpers/get-tag-entries.d.ts +22 -0
- package/dist/navigation/helpers/get-tag-entries.d.ts.map +1 -0
- package/dist/navigation/helpers/get-tag-entries.js +30 -0
- package/dist/navigation/helpers/get-tag-entries.js.map +7 -0
- package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -1
- package/dist/navigation/helpers/traverse-examples.js +1 -1
- package/dist/navigation/helpers/traverse-examples.js.map +2 -2
- package/dist/navigation/helpers/update-order-ids.d.ts +29 -0
- package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -0
- package/dist/navigation/helpers/update-order-ids.js +54 -0
- package/dist/navigation/helpers/update-order-ids.js.map +7 -0
- package/dist/navigation/index.d.ts +1 -0
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +3 -1
- package/dist/navigation/index.js.map +2 -2
- package/dist/persistence/index.d.ts +16 -0
- package/dist/persistence/index.d.ts.map +1 -1
- package/dist/persistence/index.js +17 -1
- package/dist/persistence/index.js.map +2 -2
- package/dist/persistence/indexdb.d.ts.map +1 -1
- package/dist/persistence/indexdb.js +1 -2
- package/dist/persistence/indexdb.js.map +2 -2
- package/dist/schemas/extensions/operation/x-draft-examples.d.ts +7 -0
- package/dist/schemas/extensions/operation/x-draft-examples.d.ts.map +1 -0
- package/dist/schemas/extensions/operation/x-draft-examples.js +8 -0
- package/dist/schemas/extensions/operation/x-draft-examples.js.map +7 -0
- package/dist/schemas/extensions/tag/index.d.ts +2 -0
- package/dist/schemas/extensions/tag/index.d.ts.map +1 -0
- package/dist/schemas/extensions/tag/index.js +1 -0
- package/dist/schemas/extensions/tag/index.js.map +7 -0
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts +1 -2
- package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
- package/dist/schemas/extensions/tag/x-tag-groups.js.map +1 -1
- package/dist/schemas/extensions.d.ts +0 -1
- package/dist/schemas/extensions.d.ts.map +1 -1
- package/dist/schemas/extensions.js +1 -2
- package/dist/schemas/extensions.js.map +2 -2
- package/dist/schemas/inmemory-workspace.d.ts +141 -9
- package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
- package/dist/schemas/inmemory-workspace.js +3 -1
- package/dist/schemas/inmemory-workspace.js.map +2 -2
- package/dist/schemas/reference-config/index.d.ts +2 -0
- package/dist/schemas/reference-config/index.d.ts.map +1 -1
- package/dist/schemas/reference-config/settings.d.ts +2 -0
- package/dist/schemas/reference-config/settings.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.d.ts +115 -0
- package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/openapi-document.js +1 -0
- package/dist/schemas/v3.1/strict/openapi-document.js.map +2 -2
- package/dist/schemas/v3.1/strict/operation.d.ts +4 -1
- package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
- package/dist/schemas/v3.1/strict/operation.js +3 -1
- package/dist/schemas/v3.1/strict/operation.js.map +2 -2
- package/dist/schemas/workspace-specification/index.d.ts +1 -1
- package/dist/schemas/workspace.d.ts +73 -5654
- package/dist/schemas/workspace.d.ts.map +1 -1
- package/dist/schemas/workspace.js +10 -20
- package/dist/schemas/workspace.js.map +2 -2
- package/dist/server.d.ts +1 -1
- package/package.json +11 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/persistence/indexdb.ts"],
|
|
4
|
-
"sourcesContent": ["import type { Static, TObject, TRecord } from '@scalar/typebox'\n\ntype TableEntry<S extends TObject, K extends readonly (keyof Static<S>)[]> = {\n schema: S\n keyPath: K\n indexes?: Record<string, readonly (keyof Static<S>)[]>\n}\n\n/**\n * Initializes and manages an IndexedDB database connection for table-based persistence.\n *\n * @param name - The database name. Defaults to 'scalar-workspace-store'.\n * @param tables - Table definitions: the tables to create and their key schemas.\n * @param version - The database version. Bump this to trigger upgrades (default: 1).\n * @param migrations - Optional migration steps to run for version upgrades.\n * @returns An object with the following methods:\n * - `get(tableName)` \u2014 Get a wrapper to interact with the object store for the given table name.\n * - `closeDatabase()` \u2014 Closes the database connection.\n *\n * Example usage:\n * ```ts\n * import { Type } from '@scalar/typebox'\n * import { createIndexDbConnection } from './indexdb'\n *\n * // Define a schema for a user\n * const UserSchema = Type.Object({\n * id: Type.String(),\n * name: Type.String(),\n * age: Type.Number(),\n * })\n *\n * // Define tables in the database\n * const dbConfig = {\n * users: {\n * schema: UserSchema,\n * index: ['id'] as const,\n * },\n * }\n *\n * // Open the database connection and get table API\n * const { get, closeDatabase } = await createIndexDbConnection({\n * name: 'my-app-db',\n * tables: dbConfig,\n * version: 1,\n * })\n *\n * // Get a strongly-typed users table API\n * const usersTable = get('users')\n *\n * // Add a user\n * await usersTable.addItem({ id: 'user-1' }, { name: 'Alice', age: 25 })\n *\n * // Retrieve a user by id\n * const user = await usersTable.getItem({ id: 'user-1' })\n *\n * // Don't forget to close the database when done!\n * closeDatabase()\n * ```\n */\nexport const createIndexDbConnection = async <T extends Record<string, TableEntry<any, readonly (keyof any)[]>>>({\n name = 'scalar-workspace-store',\n tables,\n version = 1,\n migrations = [],\n}: {\n name: string\n tables: T\n version: number\n migrations?: { version: number; exec: (db: IDBDatabase, event: IDBVersionChangeEvent) => {} }[]\n}) => {\n const db = indexedDB.open(name, version)\n\n db.onupgradeneeded = (e) => {\n // Initial setup of object stores\n if (e.oldVersion < 1) {\n const database = db.result\n\n // Initialize all the tables\n Object.entries(tables).forEach(([name, options]) => {\n if (!database.objectStoreNames.contains(name)) {\n const objectStore = database.createObjectStore(name, {\n keyPath: options.keyPath.length === 1 ? (options.keyPath[0] as string) : (options.keyPath as string[]),\n })\n\n // Create any indexes for the object store\n Object.entries(options.indexes ?? {}).forEach(([indexName, indexPath]) => {\n objectStore.createIndex(indexName, indexPath as string[])\n })\n }\n })\n }\n\n // Run any future migrations here\n migrations.forEach((migration) => {\n if (e.oldVersion < migration.version) {\n migration.exec(db.result, e)\n }\n })\n }\n\n await new Promise((resolve, reject) => {\n db.onsuccess = () => resolve(true)\n db.onerror = () => reject(db.error)\n })\n\n return {\n get: <Name extends keyof T>(name: Name) => {\n return createTableWrapper<T[Name]['schema'], T[Name]['keyPath'][number]>(name as string, db.result)\n },\n closeDatabase: () => {\n db.result.close()\n },\n }\n}\n\n/**\n * Utility wrapper for interacting with an IndexedDB object store, typed by the schema.\n *\n * Usage example:\n * ```\n * // Define a TypeBox schema for users\n * const UserSchema = Type.Object({\n * id: Type.String(),\n * name: Type.String(),\n * age: Type.Number(),\n * })\n * \n * // Open or create the users table\n * const usersTable = createTableWrapper<typeof UserSchema, 'id'>('users', openDatabase)\n * \n * // Add a user\n await usersTable.addItem({ id: 'user-1' }, { name: 'Alice', age: 24 })\n * \n * // Get a user by id\n * const alic = await usersTable.getItem({ id: 'user-1' })\n * \n * // Get users with a partial key (use [] if no composite key)\n * const users = await usersTable.getRange(['user-1'])\n * \n * // Get all users\n * const allUsers = await usersTable.getAll()\n * ```\n *\n * @template T TypeBox schema type for objects in the store\n * @template K Key property names that compose the primary key\n *\n * @param name - Object store name\n * @param getDb - Function returning a Promise for the IDBDatabase\n * @returns Methods to interact with the object store\n */\nfunction createTableWrapper<T extends TRecord | TObject, const K extends keyof Static<T>>(\n name: string,\n db: IDBDatabase,\n) {\n /**\n * Gets the object store from the latest DB connection, for the given transaction mode.\n */\n const getStore = (mode: IDBTransactionMode): IDBObjectStore => {\n const tx = db.transaction(name, mode)\n return tx.objectStore(name)\n }\n\n /**\n * Adds or updates an item in the store.\n * @param key - The primary key values, as { key1, key2 }\n * @param value - The value for the other properties, omitting keys\n * @returns The full inserted/updated object\n */\n async function addItem(key: Record<K, IDBValidKey>, value: Omit<Static<T>, K>): Promise<Static<T>> {\n const store = getStore('readwrite')\n const keyObj: any = { ...key }\n const finalValue = { ...keyObj, ...value }\n await requestAsPromise(store.put(finalValue))\n\n return finalValue\n }\n\n /**\n * Retrieves a single item by composite key.\n * @param key - Key values. For a single key: { id: '...' }\n * @returns The found object or undefined\n */\n function getItem(key: Record<K, IDBValidKey>): Promise<Static<T> | undefined> {\n const store = getStore('readonly')\n const keyValues = Object.values(key)\n // For single keys, pass value directly; for compound keys, pass array\n const keyToUse = keyValues.length === 1 ? keyValues[0] : keyValues\n return requestAsPromise(store.get(keyToUse as IDBValidKey))\n }\n\n /**\n * Returns all records matching a partial (prefix) key. Use for composite keys.\n * For non-compound keys, pass single-element array: getRange(['some-id'])\n * For prefix search, pass subset of key parts.\n * @param partialKey - Array of partial key values\n * @returns Matching objects\n *\n * Example (composite [a,b]):\n * getRange(['foo']) // All with a === 'foo'\n * getRange(['foo', 'bar']) // All with a === 'foo' and b === 'bar'\n */\n function getRange(partialKey: IDBValidKey[], indexName?: string): Promise<Static<T>[]> {\n const store = getStore('readonly')\n const objectStoreOrIndex = indexName ? store.index(indexName as string) : store\n\n const results: Static<T>[] = []\n\n // Construct upper bound to match all keys starting with partialKey\n const upperBound = [...partialKey]\n upperBound.push([]) // ensures upper bound includes all keys with this prefix\n const range = IDBKeyRange.bound(partialKey, upperBound, false, true)\n\n return new Promise((resolve, reject) => {\n const request = objectStoreOrIndex.openCursor(range)\n request.onerror = () => reject(request.error)\n request.onsuccess = (event) => {\n const cursor = (event.target as IDBRequest<IDBCursorWithValue>).result\n if (cursor) {\n results.push(cursor.value)\n cursor.continue()\n } else {\n resolve(results)\n }\n }\n })\n }\n\n /**\n * Deletes an item from the store by its composite key.\n * @param key - Key values. For a single key: { id: '...' }\n * @returns void\n */\n async function deleteItem(key: Record<K, IDBValidKey>): Promise<void> {\n const store = getStore('readwrite')\n const keyValues = Object.values(key)\n // For single keys, pass value directly; for compound keys, pass array\n const keyToUse = keyValues.length === 1 ? keyValues[0] : keyValues\n await requestAsPromise(store.delete(keyToUse as IDBValidKey))\n }\n\n /**\n * Deletes all records matching a partial (prefix) key. Use for composite keys.\n * For non-compound keys, pass single-element array: deleteRange(['some-id'])\n * For prefix deletion, pass subset of key parts.\n * @param partialKey - Array of partial key values\n * @returns Number of deleted items\n *\n * Example (composite [a,b]):\n * deleteRange(['foo']) // Delete all with a === 'foo'\n * deleteRange(['foo', 'bar']) // Delete all with a === 'foo' and b === 'bar'\n */\n function deleteRange(partialKey: IDBValidKey[]): Promise<number> {\n const store = getStore('readwrite')\n let deletedCount = 0\n\n // Construct upper bound to match all keys starting with partialKey\n const upperBound = [...partialKey]\n upperBound.push([]) // ensures upper bound includes all keys with this prefix\n const range = IDBKeyRange.bound(partialKey, upperBound, false, true)\n\n return new Promise((resolve, reject) => {\n const request = store.openCursor(range)\n request.onerror = () => reject(request.error)\n request.onsuccess = (event) => {\n const cursor = (event.target as IDBRequest<IDBCursorWithValue>).result\n if (cursor) {\n cursor.delete()\n deletedCount++\n cursor.continue()\n } else {\n resolve(deletedCount)\n }\n }\n })\n }\n\n /**\n * Deletes all items from the table.\n * @returns void\n */\n async function deleteAll(): Promise<void> {\n const store = getStore('readwrite')\n await requestAsPromise(store.clear())\n }\n\n /**\n * Retrieves all items from the table.\n * @returns Array of all objects in the store\n */\n function getAll(): Promise<Static<T>[]> {\n const store = getStore('readonly')\n return requestAsPromise(store.getAll())\n }\n\n return {\n addItem,\n getItem,\n getRange,\n deleteItem,\n deleteRange,\n getAll,\n deleteAll,\n }\n}\n\n// ---- Utility ----\nfunction requestAsPromise<T>(req: IDBRequest<T>): Promise<T> {\n return new Promise((resolve, reject) => {\n req.onsuccess = () => resolve(req.result)\n req.onerror = () => reject(req.error)\n })\n}\n"],
|
|
5
|
-
"mappings": "AA2DO,MAAM,0BAA0B,OAA0E;AAAA,EAC/G,OAAO;AAAA,EACP;AAAA,EACA,UAAU;AAAA,EACV,aAAa,CAAC;A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QAAQ,SAAS,WAAW;AAClC,UAAM,
|
|
4
|
+
"sourcesContent": ["import type { Static, TObject, TRecord } from '@scalar/typebox'\n\ntype TableEntry<S extends TObject, K extends readonly (keyof Static<S>)[]> = {\n schema: S\n keyPath: K\n indexes?: Record<string, readonly (keyof Static<S>)[]>\n}\n\n/**\n * Initializes and manages an IndexedDB database connection for table-based persistence.\n *\n * @param name - The database name. Defaults to 'scalar-workspace-store'.\n * @param tables - Table definitions: the tables to create and their key schemas.\n * @param version - The database version. Bump this to trigger upgrades (default: 1).\n * @param migrations - Optional migration steps to run for version upgrades.\n * @returns An object with the following methods:\n * - `get(tableName)` \u2014 Get a wrapper to interact with the object store for the given table name.\n * - `closeDatabase()` \u2014 Closes the database connection.\n *\n * Example usage:\n * ```ts\n * import { Type } from '@scalar/typebox'\n * import { createIndexDbConnection } from './indexdb'\n *\n * // Define a schema for a user\n * const UserSchema = Type.Object({\n * id: Type.String(),\n * name: Type.String(),\n * age: Type.Number(),\n * })\n *\n * // Define tables in the database\n * const dbConfig = {\n * users: {\n * schema: UserSchema,\n * index: ['id'] as const,\n * },\n * }\n *\n * // Open the database connection and get table API\n * const { get, closeDatabase } = await createIndexDbConnection({\n * name: 'my-app-db',\n * tables: dbConfig,\n * version: 1,\n * })\n *\n * // Get a strongly-typed users table API\n * const usersTable = get('users')\n *\n * // Add a user\n * await usersTable.addItem({ id: 'user-1' }, { name: 'Alice', age: 25 })\n *\n * // Retrieve a user by id\n * const user = await usersTable.getItem({ id: 'user-1' })\n *\n * // Don't forget to close the database when done!\n * closeDatabase()\n * ```\n */\nexport const createIndexDbConnection = async <T extends Record<string, TableEntry<any, readonly (keyof any)[]>>>({\n name = 'scalar-workspace-store',\n tables,\n version = 1,\n migrations = [],\n}: {\n name: string\n tables: T\n version: number\n migrations?: { version: number; exec: (db: IDBDatabase, event: IDBVersionChangeEvent) => {} }[]\n}) => {\n const db = indexedDB.open(name, version)\n\n db.onupgradeneeded = (e) => {\n // Initial setup of object stores\n if (e.oldVersion < 1) {\n const database = db.result\n\n // Initialize all the tables\n Object.entries(tables).forEach(([name, options]) => {\n if (!database.objectStoreNames.contains(name)) {\n const objectStore = database.createObjectStore(name, {\n keyPath: options.keyPath.length === 1 ? (options.keyPath[0] as string) : (options.keyPath as string[]),\n })\n\n // Create any indexes for the object store\n Object.entries(options.indexes ?? {}).forEach(([indexName, indexPath]) => {\n objectStore.createIndex(indexName, indexPath as string[])\n })\n }\n })\n }\n\n // Run any future migrations here\n migrations.forEach((migration) => {\n if (e.oldVersion < migration.version) {\n migration.exec(db.result, e)\n }\n })\n }\n\n await new Promise((resolve, reject) => {\n db.onsuccess = () => resolve(true)\n db.onerror = () => reject(db.error)\n })\n\n return {\n get: <Name extends keyof T>(name: Name) => {\n return createTableWrapper<T[Name]['schema'], T[Name]['keyPath'][number]>(name as string, db.result)\n },\n closeDatabase: () => {\n db.result.close()\n },\n }\n}\n\n/**\n * Utility wrapper for interacting with an IndexedDB object store, typed by the schema.\n *\n * Usage example:\n * ```\n * // Define a TypeBox schema for users\n * const UserSchema = Type.Object({\n * id: Type.String(),\n * name: Type.String(),\n * age: Type.Number(),\n * })\n * \n * // Open or create the users table\n * const usersTable = createTableWrapper<typeof UserSchema, 'id'>('users', openDatabase)\n * \n * // Add a user\n await usersTable.addItem({ id: 'user-1' }, { name: 'Alice', age: 24 })\n * \n * // Get a user by id\n * const alic = await usersTable.getItem({ id: 'user-1' })\n * \n * // Get users with a partial key (use [] if no composite key)\n * const users = await usersTable.getRange(['user-1'])\n * \n * // Get all users\n * const allUsers = await usersTable.getAll()\n * ```\n *\n * @template T TypeBox schema type for objects in the store\n * @template K Key property names that compose the primary key\n *\n * @param name - Object store name\n * @param getDb - Function returning a Promise for the IDBDatabase\n * @returns Methods to interact with the object store\n */\nfunction createTableWrapper<T extends TRecord | TObject, const K extends keyof Static<T>>(\n name: string,\n db: IDBDatabase,\n) {\n /**\n * Gets the object store from the latest DB connection, for the given transaction mode.\n */\n const getStore = (mode: IDBTransactionMode): IDBObjectStore => {\n const tx = db.transaction(name, mode)\n return tx.objectStore(name)\n }\n\n /**\n * Adds or updates an item in the store.\n * @param key - The primary key values, as { key1, key2 }\n * @param value - The value for the other properties, omitting keys\n * @returns The full inserted/updated object\n */\n async function addItem(key: Record<K, IDBValidKey>, value: Omit<Static<T>, K>): Promise<Static<T>> {\n const store = getStore('readwrite')\n const finalValue = { ...value, ...key }\n await requestAsPromise(store.put(finalValue))\n\n return finalValue\n }\n\n /**\n * Retrieves a single item by composite key.\n * @param key - Key values. For a single key: { id: '...' }\n * @returns The found object or undefined\n */\n function getItem(key: Record<K, IDBValidKey>): Promise<Static<T> | undefined> {\n const store = getStore('readonly')\n const keyValues = Object.values(key)\n // For single keys, pass value directly; for compound keys, pass array\n const keyToUse = keyValues.length === 1 ? keyValues[0] : keyValues\n return requestAsPromise(store.get(keyToUse as IDBValidKey))\n }\n\n /**\n * Returns all records matching a partial (prefix) key. Use for composite keys.\n * For non-compound keys, pass single-element array: getRange(['some-id'])\n * For prefix search, pass subset of key parts.\n * @param partialKey - Array of partial key values\n * @returns Matching objects\n *\n * Example (composite [a,b]):\n * getRange(['foo']) // All with a === 'foo'\n * getRange(['foo', 'bar']) // All with a === 'foo' and b === 'bar'\n */\n function getRange(partialKey: IDBValidKey[], indexName?: string): Promise<Static<T>[]> {\n const store = getStore('readonly')\n const objectStoreOrIndex = indexName ? store.index(indexName as string) : store\n\n const results: Static<T>[] = []\n\n // Construct upper bound to match all keys starting with partialKey\n const upperBound = [...partialKey]\n upperBound.push([]) // ensures upper bound includes all keys with this prefix\n const range = IDBKeyRange.bound(partialKey, upperBound, false, true)\n\n return new Promise((resolve, reject) => {\n const request = objectStoreOrIndex.openCursor(range)\n request.onerror = () => reject(request.error)\n request.onsuccess = (event) => {\n const cursor = (event.target as IDBRequest<IDBCursorWithValue>).result\n if (cursor) {\n results.push(cursor.value)\n cursor.continue()\n } else {\n resolve(results)\n }\n }\n })\n }\n\n /**\n * Deletes an item from the store by its composite key.\n * @param key - Key values. For a single key: { id: '...' }\n * @returns void\n */\n async function deleteItem(key: Record<K, IDBValidKey>): Promise<void> {\n const store = getStore('readwrite')\n const keyValues = Object.values(key)\n // For single keys, pass value directly; for compound keys, pass array\n const keyToUse = keyValues.length === 1 ? keyValues[0] : keyValues\n await requestAsPromise(store.delete(keyToUse as IDBValidKey))\n }\n\n /**\n * Deletes all records matching a partial (prefix) key. Use for composite keys.\n * For non-compound keys, pass single-element array: deleteRange(['some-id'])\n * For prefix deletion, pass subset of key parts.\n * @param partialKey - Array of partial key values\n * @returns Number of deleted items\n *\n * Example (composite [a,b]):\n * deleteRange(['foo']) // Delete all with a === 'foo'\n * deleteRange(['foo', 'bar']) // Delete all with a === 'foo' and b === 'bar'\n */\n function deleteRange(partialKey: IDBValidKey[]): Promise<number> {\n const store = getStore('readwrite')\n let deletedCount = 0\n\n // Construct upper bound to match all keys starting with partialKey\n const upperBound = [...partialKey]\n upperBound.push([]) // ensures upper bound includes all keys with this prefix\n const range = IDBKeyRange.bound(partialKey, upperBound, false, true)\n\n return new Promise((resolve, reject) => {\n const request = store.openCursor(range)\n request.onerror = () => reject(request.error)\n request.onsuccess = (event) => {\n const cursor = (event.target as IDBRequest<IDBCursorWithValue>).result\n if (cursor) {\n cursor.delete()\n deletedCount++\n cursor.continue()\n } else {\n resolve(deletedCount)\n }\n }\n })\n }\n\n /**\n * Deletes all items from the table.\n * @returns void\n */\n async function deleteAll(): Promise<void> {\n const store = getStore('readwrite')\n await requestAsPromise(store.clear())\n }\n\n /**\n * Retrieves all items from the table.\n * @returns Array of all objects in the store\n */\n function getAll(): Promise<Static<T>[]> {\n const store = getStore('readonly')\n return requestAsPromise(store.getAll())\n }\n\n return {\n addItem,\n getItem,\n getRange,\n deleteItem,\n deleteRange,\n getAll,\n deleteAll,\n }\n}\n\n// ---- Utility ----\nfunction requestAsPromise<T>(req: IDBRequest<T>): Promise<T> {\n return new Promise((resolve, reject) => {\n req.onsuccess = () => resolve(req.result)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
|
2
|
+
'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
3
|
+
}>;
|
|
4
|
+
export type XDraftExamples = {
|
|
5
|
+
'x-draft-examples'?: string[];
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=x-draft-examples.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"x-draft-examples.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/operation/x-draft-examples.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;EAE/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAA;CAC9B,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/schemas/extensions/operation/x-draft-examples.ts"],
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nexport const XDraftExamplesSchema = Type.Object({\n 'x-draft-examples': Type.Optional(Type.Array(Type.String())),\n})\n\nexport type XDraftExamples = {\n 'x-draft-examples'?: string[]\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAEd,MAAM,uBAAuB,KAAK,OAAO;AAAA,EAC9C,oBAAoB,KAAK,SAAS,KAAK,MAAM,KAAK,OAAO,CAAC,CAAC;AAC7D,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/tag/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type XScalarOrder } from '../../../schemas/extensions/general/x-scalar-order.js';
|
|
2
|
-
type XTagGroup = {
|
|
2
|
+
export type XTagGroup = {
|
|
3
3
|
/**
|
|
4
4
|
* The group name.
|
|
5
5
|
*/
|
|
@@ -36,5 +36,4 @@ export type XTagGroups = {
|
|
|
36
36
|
*/
|
|
37
37
|
'x-tagGroups'?: XTagGroup[];
|
|
38
38
|
};
|
|
39
|
-
export {};
|
|
40
39
|
//# sourceMappingURL=x-tag-groups.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-tag-groups.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/tag/x-tag-groups.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,6CAA6C,CAAA;AAgBnG,
|
|
1
|
+
{"version":3,"file":"x-tag-groups.d.ts","sourceRoot":"","sources":["../../../../src/schemas/extensions/tag/x-tag-groups.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,6CAA6C,CAAA;AAgBnG,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,IAAI,EAAE,MAAM,EAAE,CAAA;CACf,GAAG,YAAY,CAAA;AAEhB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;QA5BzB;;WAEG;;QAEH;;WAEG;;;;;EAwBL,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,SAAS,EAAE,CAAA;CAC5B,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/schemas/extensions/tag/x-tag-groups.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XScalarOrder, XScalarOrderSchema } from '@/schemas/extensions/general/x-scalar-order'\n\nconst XTagGroupSchema = compose(\n Type.Object({\n /**\n * The group name.\n */\n name: Type.String(),\n /**\n * List of tags to include in this group.\n */\n tags: Type.Array(Type.String()),\n }),\n XScalarOrderSchema,\n)\n\
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { compose } from '@/schemas/compose'\nimport { type XScalarOrder, XScalarOrderSchema } from '@/schemas/extensions/general/x-scalar-order'\n\nconst XTagGroupSchema = compose(\n Type.Object({\n /**\n * The group name.\n */\n name: Type.String(),\n /**\n * List of tags to include in this group.\n */\n tags: Type.Array(Type.String()),\n }),\n XScalarOrderSchema,\n)\n\nexport type XTagGroup = {\n /**\n * The group name.\n */\n name: string\n /**\n * List of tags to include in this group.\n */\n tags: string[]\n} & XScalarOrder\n\n/**\n * x-tagGroups\n *\n * List of tags to include in this group.\n */\nexport const XTagGroupsSchema = Type.Object({\n 'x-tagGroups': Type.Optional(Type.Array(XTagGroupSchema)),\n})\n\nexport type XTagGroups = {\n /**\n * x-tagGroups\n *\n * List of tags to include in this group.\n */\n 'x-tagGroups'?: XTagGroup[]\n}\n"],
|
|
5
5
|
"mappings": "AAAA,SAAS,YAAY;AAErB,SAAS,eAAe;AACxB,SAA4B,0BAA0B;AAEtD,MAAM,kBAAkB;AAAA,EACtB,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA,IAIV,MAAM,KAAK,OAAO;AAAA;AAAA;AAAA;AAAA,IAIlB,MAAM,KAAK,MAAM,KAAK,OAAO,CAAC;AAAA,EAChC,CAAC;AAAA,EACD;AACF;AAkBO,MAAM,mBAAmB,KAAK,OAAO;AAAA,EAC1C,eAAe,KAAK,SAAS,KAAK,MAAM,eAAe,CAAC;AAC1D,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,7 +2,6 @@ export declare const extensions: {
|
|
|
2
2
|
readonly document: {
|
|
3
3
|
readonly navigation: "x-scalar-navigation";
|
|
4
4
|
readonly activeAuth: "x-scalar-active-auth";
|
|
5
|
-
readonly activeServer: "x-scalar-active-server";
|
|
6
5
|
};
|
|
7
6
|
readonly workspace: {
|
|
8
7
|
readonly colorMode: "x-scalar-color-mode";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../src/schemas/extensions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"extensions.d.ts","sourceRoot":"","sources":["../../src/schemas/extensions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;CAYb,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/extensions.ts"],
|
|
4
|
-
"sourcesContent": ["export const extensions = {\n document: {\n navigation: 'x-scalar-navigation',\n activeAuth: 'x-scalar-active-auth',\n
|
|
5
|
-
"mappings": "AAAO,MAAM,aAAa;AAAA,EACxB,UAAU;AAAA,IACR,YAAY;AAAA,IACZ,YAAY;AAAA,
|
|
4
|
+
"sourcesContent": ["export const extensions = {\n document: {\n navigation: 'x-scalar-navigation',\n activeAuth: 'x-scalar-active-auth',\n },\n workspace: {\n colorMode: 'x-scalar-color-mode',\n sidebarWidth: 'x-scalar-sidebar-width',\n defaultClient: 'x-scalar-default-client',\n activeDocument: 'x-scalar-active-document',\n theme: 'x-scalar-theme',\n },\n} as const\n"],
|
|
5
|
+
"mappings": "AAAO,MAAM,aAAa;AAAA,EACxB,UAAU;AAAA,IACR,YAAY;AAAA,IACZ,YAAY;AAAA,EACd;AAAA,EACA,WAAW;AAAA,IACT,WAAW;AAAA,IACX,cAAc;AAAA,IACd,eAAe;AAAA,IACf,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACT;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,21 +1,53 @@
|
|
|
1
1
|
import { type DocumentAuth } from '../entities/auth/schema.js';
|
|
2
2
|
import { type DocumentHistory } from '../entities/history/schema.js';
|
|
3
|
-
import { type WorkspaceDocument, type WorkspaceMeta } from '../schemas/workspace.js';
|
|
3
|
+
import { type WorkspaceDocument, type WorkspaceExtensions, type WorkspaceMeta } from '../schemas/workspace.js';
|
|
4
4
|
export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<{
|
|
5
|
-
meta: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
5
|
+
meta: import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
6
6
|
"x-scalar-color-mode": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"system">, import("@scalar/typebox").TLiteral<"light">, import("@scalar/typebox").TLiteral<"dark">]>>;
|
|
7
7
|
"x-scalar-default-client": import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<import("@scalar/typebox").TLiteral<"c/libcurl" | "c/clj_http" | "c/httpclient" | "c/restsharp" | "c/http" | "c/native" | "c/http1.1" | "c/asynchttp" | "c/nethttp" | "c/okhttp" | "c/unirest" | "c/axios" | "c/fetch" | "c/jquery" | "c/ofetch" | "c/xhr" | "c/undici" | "c/nsurlsession" | "c/cohttp" | "c/curl" | "c/guzzle" | "c/restmethod" | "c/webrequest" | "c/python3" | "c/requests" | "c/httpx_sync" | "c/httpx_async" | "c/httr" | "c/reqwest" | "c/httpie" | "c/wget" | "r/libcurl" | "r/clj_http" | "r/httpclient" | "r/restsharp" | "r/http" | "r/native" | "r/http1.1" | "r/asynchttp" | "r/nethttp" | "r/okhttp" | "r/unirest" | "r/axios" | "r/fetch" | "r/jquery" | "r/ofetch" | "r/xhr" | "r/undici" | "r/nsurlsession" | "r/cohttp" | "r/curl" | "r/guzzle" | "r/restmethod" | "r/webrequest" | "r/python3" | "r/requests" | "r/httpx_sync" | "r/httpx_async" | "r/httr" | "r/reqwest" | "r/httpie" | "r/wget" | "go/libcurl" | "go/clj_http" | "go/httpclient" | "go/restsharp" | "go/http" | "go/native" | "go/http1.1" | "go/asynchttp" | "go/nethttp" | "go/okhttp" | "go/unirest" | "go/axios" | "go/fetch" | "go/jquery" | "go/ofetch" | "go/xhr" | "go/undici" | "go/nsurlsession" | "go/cohttp" | "go/curl" | "go/guzzle" | "go/restmethod" | "go/webrequest" | "go/python3" | "go/requests" | "go/httpx_sync" | "go/httpx_async" | "go/httr" | "go/reqwest" | "go/httpie" | "go/wget" | "rust/libcurl" | "rust/clj_http" | "rust/httpclient" | "rust/restsharp" | "rust/http" | "rust/native" | "rust/http1.1" | "rust/asynchttp" | "rust/nethttp" | "rust/okhttp" | "rust/unirest" | "rust/axios" | "rust/fetch" | "rust/jquery" | "rust/ofetch" | "rust/xhr" | "rust/undici" | "rust/nsurlsession" | "rust/cohttp" | "rust/curl" | "rust/guzzle" | "rust/restmethod" | "rust/webrequest" | "rust/python3" | "rust/requests" | "rust/httpx_sync" | "rust/httpx_async" | "rust/httr" | "rust/reqwest" | "rust/httpie" | "rust/wget" | "http/libcurl" | "http/clj_http" | "http/httpclient" | "http/restsharp" | "http/http" | "http/native" | "http/http1.1" | "http/asynchttp" | "http/nethttp" | "http/okhttp" | "http/unirest" | "http/axios" | "http/fetch" | "http/jquery" | "http/ofetch" | "http/xhr" | "http/undici" | "http/nsurlsession" | "http/cohttp" | "http/curl" | "http/guzzle" | "http/restmethod" | "http/webrequest" | "http/python3" | "http/requests" | "http/httpx_sync" | "http/httpx_async" | "http/httr" | "http/reqwest" | "http/httpie" | "http/wget" | "clojure/libcurl" | "clojure/clj_http" | "clojure/httpclient" | "clojure/restsharp" | "clojure/http" | "clojure/native" | "clojure/http1.1" | "clojure/asynchttp" | "clojure/nethttp" | "clojure/okhttp" | "clojure/unirest" | "clojure/axios" | "clojure/fetch" | "clojure/jquery" | "clojure/ofetch" | "clojure/xhr" | "clojure/undici" | "clojure/nsurlsession" | "clojure/cohttp" | "clojure/curl" | "clojure/guzzle" | "clojure/restmethod" | "clojure/webrequest" | "clojure/python3" | "clojure/requests" | "clojure/httpx_sync" | "clojure/httpx_async" | "clojure/httr" | "clojure/reqwest" | "clojure/httpie" | "clojure/wget" | "csharp/libcurl" | "csharp/clj_http" | "csharp/httpclient" | "csharp/restsharp" | "csharp/http" | "csharp/native" | "csharp/http1.1" | "csharp/asynchttp" | "csharp/nethttp" | "csharp/okhttp" | "csharp/unirest" | "csharp/axios" | "csharp/fetch" | "csharp/jquery" | "csharp/ofetch" | "csharp/xhr" | "csharp/undici" | "csharp/nsurlsession" | "csharp/cohttp" | "csharp/curl" | "csharp/guzzle" | "csharp/restmethod" | "csharp/webrequest" | "csharp/python3" | "csharp/requests" | "csharp/httpx_sync" | "csharp/httpx_async" | "csharp/httr" | "csharp/reqwest" | "csharp/httpie" | "csharp/wget" | "dart/libcurl" | "dart/clj_http" | "dart/httpclient" | "dart/restsharp" | "dart/http" | "dart/native" | "dart/http1.1" | "dart/asynchttp" | "dart/nethttp" | "dart/okhttp" | "dart/unirest" | "dart/axios" | "dart/fetch" | "dart/jquery" | "dart/ofetch" | "dart/xhr" | "dart/undici" | "dart/nsurlsession" | "dart/cohttp" | "dart/curl" | "dart/guzzle" | "dart/restmethod" | "dart/webrequest" | "dart/python3" | "dart/requests" | "dart/httpx_sync" | "dart/httpx_async" | "dart/httr" | "dart/reqwest" | "dart/httpie" | "dart/wget" | "fsharp/libcurl" | "fsharp/clj_http" | "fsharp/httpclient" | "fsharp/restsharp" | "fsharp/http" | "fsharp/native" | "fsharp/http1.1" | "fsharp/asynchttp" | "fsharp/nethttp" | "fsharp/okhttp" | "fsharp/unirest" | "fsharp/axios" | "fsharp/fetch" | "fsharp/jquery" | "fsharp/ofetch" | "fsharp/xhr" | "fsharp/undici" | "fsharp/nsurlsession" | "fsharp/cohttp" | "fsharp/curl" | "fsharp/guzzle" | "fsharp/restmethod" | "fsharp/webrequest" | "fsharp/python3" | "fsharp/requests" | "fsharp/httpx_sync" | "fsharp/httpx_async" | "fsharp/httr" | "fsharp/reqwest" | "fsharp/httpie" | "fsharp/wget" | "java/libcurl" | "java/clj_http" | "java/httpclient" | "java/restsharp" | "java/http" | "java/native" | "java/http1.1" | "java/asynchttp" | "java/nethttp" | "java/okhttp" | "java/unirest" | "java/axios" | "java/fetch" | "java/jquery" | "java/ofetch" | "java/xhr" | "java/undici" | "java/nsurlsession" | "java/cohttp" | "java/curl" | "java/guzzle" | "java/restmethod" | "java/webrequest" | "java/python3" | "java/requests" | "java/httpx_sync" | "java/httpx_async" | "java/httr" | "java/reqwest" | "java/httpie" | "java/wget" | "js/libcurl" | "js/clj_http" | "js/httpclient" | "js/restsharp" | "js/http" | "js/native" | "js/http1.1" | "js/asynchttp" | "js/nethttp" | "js/okhttp" | "js/unirest" | "js/axios" | "js/fetch" | "js/jquery" | "js/ofetch" | "js/xhr" | "js/undici" | "js/nsurlsession" | "js/cohttp" | "js/curl" | "js/guzzle" | "js/restmethod" | "js/webrequest" | "js/python3" | "js/requests" | "js/httpx_sync" | "js/httpx_async" | "js/httr" | "js/reqwest" | "js/httpie" | "js/wget" | "kotlin/libcurl" | "kotlin/clj_http" | "kotlin/httpclient" | "kotlin/restsharp" | "kotlin/http" | "kotlin/native" | "kotlin/http1.1" | "kotlin/asynchttp" | "kotlin/nethttp" | "kotlin/okhttp" | "kotlin/unirest" | "kotlin/axios" | "kotlin/fetch" | "kotlin/jquery" | "kotlin/ofetch" | "kotlin/xhr" | "kotlin/undici" | "kotlin/nsurlsession" | "kotlin/cohttp" | "kotlin/curl" | "kotlin/guzzle" | "kotlin/restmethod" | "kotlin/webrequest" | "kotlin/python3" | "kotlin/requests" | "kotlin/httpx_sync" | "kotlin/httpx_async" | "kotlin/httr" | "kotlin/reqwest" | "kotlin/httpie" | "kotlin/wget" | "node/libcurl" | "node/clj_http" | "node/httpclient" | "node/restsharp" | "node/http" | "node/native" | "node/http1.1" | "node/asynchttp" | "node/nethttp" | "node/okhttp" | "node/unirest" | "node/axios" | "node/fetch" | "node/jquery" | "node/ofetch" | "node/xhr" | "node/undici" | "node/nsurlsession" | "node/cohttp" | "node/curl" | "node/guzzle" | "node/restmethod" | "node/webrequest" | "node/python3" | "node/requests" | "node/httpx_sync" | "node/httpx_async" | "node/httr" | "node/reqwest" | "node/httpie" | "node/wget" | "objc/libcurl" | "objc/clj_http" | "objc/httpclient" | "objc/restsharp" | "objc/http" | "objc/native" | "objc/http1.1" | "objc/asynchttp" | "objc/nethttp" | "objc/okhttp" | "objc/unirest" | "objc/axios" | "objc/fetch" | "objc/jquery" | "objc/ofetch" | "objc/xhr" | "objc/undici" | "objc/nsurlsession" | "objc/cohttp" | "objc/curl" | "objc/guzzle" | "objc/restmethod" | "objc/webrequest" | "objc/python3" | "objc/requests" | "objc/httpx_sync" | "objc/httpx_async" | "objc/httr" | "objc/reqwest" | "objc/httpie" | "objc/wget" | "ocaml/libcurl" | "ocaml/clj_http" | "ocaml/httpclient" | "ocaml/restsharp" | "ocaml/http" | "ocaml/native" | "ocaml/http1.1" | "ocaml/asynchttp" | "ocaml/nethttp" | "ocaml/okhttp" | "ocaml/unirest" | "ocaml/axios" | "ocaml/fetch" | "ocaml/jquery" | "ocaml/ofetch" | "ocaml/xhr" | "ocaml/undici" | "ocaml/nsurlsession" | "ocaml/cohttp" | "ocaml/curl" | "ocaml/guzzle" | "ocaml/restmethod" | "ocaml/webrequest" | "ocaml/python3" | "ocaml/requests" | "ocaml/httpx_sync" | "ocaml/httpx_async" | "ocaml/httr" | "ocaml/reqwest" | "ocaml/httpie" | "ocaml/wget" | "php/libcurl" | "php/clj_http" | "php/httpclient" | "php/restsharp" | "php/http" | "php/native" | "php/http1.1" | "php/asynchttp" | "php/nethttp" | "php/okhttp" | "php/unirest" | "php/axios" | "php/fetch" | "php/jquery" | "php/ofetch" | "php/xhr" | "php/undici" | "php/nsurlsession" | "php/cohttp" | "php/curl" | "php/guzzle" | "php/restmethod" | "php/webrequest" | "php/python3" | "php/requests" | "php/httpx_sync" | "php/httpx_async" | "php/httr" | "php/reqwest" | "php/httpie" | "php/wget" | "powershell/libcurl" | "powershell/clj_http" | "powershell/httpclient" | "powershell/restsharp" | "powershell/http" | "powershell/native" | "powershell/http1.1" | "powershell/asynchttp" | "powershell/nethttp" | "powershell/okhttp" | "powershell/unirest" | "powershell/axios" | "powershell/fetch" | "powershell/jquery" | "powershell/ofetch" | "powershell/xhr" | "powershell/undici" | "powershell/nsurlsession" | "powershell/cohttp" | "powershell/curl" | "powershell/guzzle" | "powershell/restmethod" | "powershell/webrequest" | "powershell/python3" | "powershell/requests" | "powershell/httpx_sync" | "powershell/httpx_async" | "powershell/httr" | "powershell/reqwest" | "powershell/httpie" | "powershell/wget" | "python/libcurl" | "python/clj_http" | "python/httpclient" | "python/restsharp" | "python/http" | "python/native" | "python/http1.1" | "python/asynchttp" | "python/nethttp" | "python/okhttp" | "python/unirest" | "python/axios" | "python/fetch" | "python/jquery" | "python/ofetch" | "python/xhr" | "python/undici" | "python/nsurlsession" | "python/cohttp" | "python/curl" | "python/guzzle" | "python/restmethod" | "python/webrequest" | "python/python3" | "python/requests" | "python/httpx_sync" | "python/httpx_async" | "python/httr" | "python/reqwest" | "python/httpie" | "python/wget" | "ruby/libcurl" | "ruby/clj_http" | "ruby/httpclient" | "ruby/restsharp" | "ruby/http" | "ruby/native" | "ruby/http1.1" | "ruby/asynchttp" | "ruby/nethttp" | "ruby/okhttp" | "ruby/unirest" | "ruby/axios" | "ruby/fetch" | "ruby/jquery" | "ruby/ofetch" | "ruby/xhr" | "ruby/undici" | "ruby/nsurlsession" | "ruby/cohttp" | "ruby/curl" | "ruby/guzzle" | "ruby/restmethod" | "ruby/webrequest" | "ruby/python3" | "ruby/requests" | "ruby/httpx_sync" | "ruby/httpx_async" | "ruby/httr" | "ruby/reqwest" | "ruby/httpie" | "ruby/wget" | "shell/libcurl" | "shell/clj_http" | "shell/httpclient" | "shell/restsharp" | "shell/http" | "shell/native" | "shell/http1.1" | "shell/asynchttp" | "shell/nethttp" | "shell/okhttp" | "shell/unirest" | "shell/axios" | "shell/fetch" | "shell/jquery" | "shell/ofetch" | "shell/xhr" | "shell/undici" | "shell/nsurlsession" | "shell/cohttp" | "shell/curl" | "shell/guzzle" | "shell/restmethod" | "shell/webrequest" | "shell/python3" | "shell/requests" | "shell/httpx_sync" | "shell/httpx_async" | "shell/httr" | "shell/reqwest" | "shell/httpie" | "shell/wget" | "swift/libcurl" | "swift/clj_http" | "swift/httpclient" | "swift/restsharp" | "swift/http" | "swift/native" | "swift/http1.1" | "swift/asynchttp" | "swift/nethttp" | "swift/okhttp" | "swift/unirest" | "swift/axios" | "swift/fetch" | "swift/jquery" | "swift/ofetch" | "swift/xhr" | "swift/undici" | "swift/nsurlsession" | "swift/cohttp" | "swift/curl" | "swift/guzzle" | "swift/restmethod" | "swift/webrequest" | "swift/python3" | "swift/requests" | "swift/httpx_sync" | "swift/httpx_async" | "swift/httr" | "swift/reqwest" | "swift/httpie" | "swift/wget">[]>>;
|
|
8
8
|
"x-scalar-active-document": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
9
|
-
"x-scalar-theme": import("@scalar/typebox").TOptional<import("@scalar/typebox").
|
|
9
|
+
"x-scalar-theme": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
10
10
|
"x-scalar-sidebar-width": import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
11
11
|
}>, import("@scalar/typebox").TObject<{
|
|
12
12
|
'x-scalar-active-proxy': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
13
|
-
}>]
|
|
14
|
-
|
|
13
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
14
|
+
'x-scalar-environments': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TObject<{
|
|
15
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
16
|
+
color: import("@scalar/typebox").TString;
|
|
17
|
+
variables: import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
18
|
+
name: import("@scalar/typebox").TString;
|
|
19
|
+
value: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TObject<{
|
|
20
|
+
description: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
21
|
+
default: import("@scalar/typebox").TString;
|
|
22
|
+
}>, import("@scalar/typebox").TString]>;
|
|
23
|
+
}>>;
|
|
24
|
+
}>>>;
|
|
25
|
+
}>, import("@scalar/typebox").TObject<{
|
|
26
|
+
'x-scalar-active-environment': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
27
|
+
}>, import("@scalar/typebox").TObject<{
|
|
28
|
+
'x-scalar-order': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
29
|
+
}>, import("@scalar/typebox").TObject<{
|
|
30
|
+
'x-scalar-cookies': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
31
|
+
name: import("@scalar/typebox").TString;
|
|
32
|
+
value: import("@scalar/typebox").TString;
|
|
33
|
+
domain: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
34
|
+
path: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
35
|
+
isDisabled: import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
36
|
+
}>>>;
|
|
37
|
+
}>, import("@scalar/typebox").TObject<{
|
|
38
|
+
'x-scalar-tabs': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TObject<{
|
|
39
|
+
path: import("@scalar/typebox").TString;
|
|
40
|
+
title: import("@scalar/typebox").TString;
|
|
41
|
+
icon: import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
42
|
+
}>>>;
|
|
43
|
+
'x-scalar-active-tab': import("@scalar/typebox").TOptional<import("@scalar/typebox").TNumber>;
|
|
44
|
+
}>]>]>;
|
|
45
|
+
documents: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
15
46
|
"x-scalar-active-auth": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
16
|
-
"x-scalar-active-server": import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
17
47
|
'x-scalar-watch-mode': import("@scalar/typebox").TOptional<import("@scalar/typebox").TBoolean>;
|
|
18
|
-
}>, import("@scalar/typebox").
|
|
48
|
+
}>, import("@scalar/typebox").TObject<{
|
|
49
|
+
'x-scalar-selected-server': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
50
|
+
}>]>, import("@scalar/typebox").TImport<{
|
|
19
51
|
ComponentsObject: import("@scalar/typebox").TObject<{
|
|
20
52
|
schemas: import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TUnion<[import("@scalar/typebox").TRef<"SchemaObject">, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
21
53
|
$ref: import("@scalar/typebox").TString;
|
|
@@ -316,6 +348,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
316
348
|
}>>;
|
|
317
349
|
}>, import("@scalar/typebox").TObject<{
|
|
318
350
|
'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
351
|
+
}>, import("@scalar/typebox").TObject<{
|
|
352
|
+
'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
319
353
|
}>]>;
|
|
320
354
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
321
355
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -1529,7 +1563,101 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1529
1563
|
}>, import("@scalar/typebox").TObject<{
|
|
1530
1564
|
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1531
1565
|
}>]>>;
|
|
1532
|
-
}>]
|
|
1566
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1567
|
+
type: import("@scalar/typebox").TLiteral<"openIdConnect">;
|
|
1568
|
+
implicit: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1569
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1570
|
+
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1571
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1572
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1573
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1574
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1575
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1576
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1577
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1578
|
+
authorizationUrl: import("@scalar/typebox").TString;
|
|
1579
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1580
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1581
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1582
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1583
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1584
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
1585
|
+
}>]>>;
|
|
1586
|
+
password: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1587
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1588
|
+
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1589
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1590
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1591
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1592
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1593
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1594
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1595
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1596
|
+
tokenUrl: import("@scalar/typebox").TString;
|
|
1597
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1598
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1599
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1600
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1601
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1602
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1603
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1604
|
+
'x-scalar-secret-username': import("@scalar/typebox").TString;
|
|
1605
|
+
'x-scalar-secret-password': import("@scalar/typebox").TString;
|
|
1606
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1607
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
1608
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1609
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1610
|
+
}>]>>;
|
|
1611
|
+
clientCredentials: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1612
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1613
|
+
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1614
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1615
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1616
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1617
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1618
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1619
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1620
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1621
|
+
tokenUrl: import("@scalar/typebox").TString;
|
|
1622
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1623
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1624
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1625
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1626
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1627
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1628
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1629
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
1630
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1631
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1632
|
+
}>]>>;
|
|
1633
|
+
authorizationCode: import("@scalar/typebox").TOptional<import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1634
|
+
refreshUrl: import("@scalar/typebox").TString;
|
|
1635
|
+
scopes: import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>;
|
|
1636
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1637
|
+
'x-scalar-security-query': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1638
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1639
|
+
'x-scalar-security-body': import("@scalar/typebox").TOptional<import("@scalar/typebox").TRecord<import("@scalar/typebox").TString, import("@scalar/typebox").TString>>;
|
|
1640
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1641
|
+
'x-tokenName': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1642
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1643
|
+
authorizationUrl: import("@scalar/typebox").TString;
|
|
1644
|
+
tokenUrl: import("@scalar/typebox").TString;
|
|
1645
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1646
|
+
'x-usePkce': import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"SHA-256">, import("@scalar/typebox").TLiteral<"plain">, import("@scalar/typebox").TLiteral<"no">]>;
|
|
1647
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1648
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1649
|
+
}>]>, import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1650
|
+
'x-scalar-secret-client-id': import("@scalar/typebox").TString;
|
|
1651
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1652
|
+
'x-scalar-secret-token': import("@scalar/typebox").TString;
|
|
1653
|
+
}>]>, import("@scalar/typebox").TObject<{
|
|
1654
|
+
'x-scalar-secret-client-secret': import("@scalar/typebox").TString;
|
|
1655
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1656
|
+
'x-scalar-secret-redirect-uri': import("@scalar/typebox").TString;
|
|
1657
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1658
|
+
'x-scalar-credentials-location': import("@scalar/typebox").TOptional<import("@scalar/typebox").TUnion<[import("@scalar/typebox").TLiteral<"header">, import("@scalar/typebox").TLiteral<"body">]>>;
|
|
1659
|
+
}>]>>;
|
|
1660
|
+
}>]>>;
|
|
1533
1661
|
selected: import("@scalar/typebox").TObject<{
|
|
1534
1662
|
document: import("@scalar/typebox").TOptional<import("@scalar/typebox").TObject<{
|
|
1535
1663
|
selectedIndex: import("@scalar/typebox").TNumber;
|
|
@@ -1834,6 +1962,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
1834
1962
|
}>>;
|
|
1835
1963
|
}>, import("@scalar/typebox").TObject<{
|
|
1836
1964
|
'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
1965
|
+
}>, import("@scalar/typebox").TObject<{
|
|
1966
|
+
'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
1837
1967
|
}>]>;
|
|
1838
1968
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
1839
1969
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -3233,6 +3363,8 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
3233
3363
|
}>>;
|
|
3234
3364
|
}>, import("@scalar/typebox").TObject<{
|
|
3235
3365
|
'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
3366
|
+
}>, import("@scalar/typebox").TObject<{
|
|
3367
|
+
'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
3236
3368
|
}>]>;
|
|
3237
3369
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
3238
3370
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -4333,7 +4465,7 @@ export declare const InMemoryWorkspaceSchema: import("@scalar/typebox").TObject<
|
|
|
4333
4465
|
}>>;
|
|
4334
4466
|
}>;
|
|
4335
4467
|
export type InMemoryWorkspace = {
|
|
4336
|
-
meta: WorkspaceMeta;
|
|
4468
|
+
meta: WorkspaceMeta & WorkspaceExtensions;
|
|
4337
4469
|
documents: Record<string, WorkspaceDocument>;
|
|
4338
4470
|
originalDocuments: Record<string, Record<string, unknown>>;
|
|
4339
4471
|
intermediateDocuments: Record<string, Record<string, unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/inmemory-workspace.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,wBAAwB,CAAA;AAC9E,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"inmemory-workspace.d.ts","sourceRoot":"","sources":["../../src/schemas/in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type } from "@scalar/typebox";
|
|
2
2
|
import { DocumentAuthSchema } from "../entities/auth/schema.js";
|
|
3
3
|
import { DocumentHistorySchema } from "../entities/history/schema.js";
|
|
4
|
+
import { compose } from "../schemas/compose.js";
|
|
4
5
|
import {
|
|
5
6
|
WorkspaceDocumentSchema,
|
|
7
|
+
WorkspaceExtensionsSchema,
|
|
6
8
|
WorkspaceMetaSchema
|
|
7
9
|
} from "../schemas/workspace.js";
|
|
8
10
|
const UnknownObjectSchema = Type.Record(Type.String(), Type.Unknown());
|
|
9
11
|
const InMemoryWorkspaceSchema = Type.Object({
|
|
10
|
-
meta: WorkspaceMetaSchema,
|
|
12
|
+
meta: compose(WorkspaceMetaSchema, WorkspaceExtensionsSchema),
|
|
11
13
|
documents: Type.Record(Type.String(), WorkspaceDocumentSchema),
|
|
12
14
|
originalDocuments: Type.Record(Type.String(), UnknownObjectSchema),
|
|
13
15
|
intermediateDocuments: Type.Record(Type.String(), UnknownObjectSchema),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/schemas/inmemory-workspace.ts"],
|
|
4
|
-
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { type DocumentAuth, DocumentAuthSchema } from '@/entities/auth/schema'\nimport { type DocumentHistory, DocumentHistorySchema } from '@/entities/history/schema'\nimport {\n type WorkspaceDocument,\n WorkspaceDocumentSchema,\n type WorkspaceMeta,\n WorkspaceMetaSchema,\n} from '@/schemas/workspace'\n\nconst UnknownObjectSchema = Type.Record(Type.String(), Type.Unknown())\n\nexport const InMemoryWorkspaceSchema = Type.Object({\n meta: WorkspaceMetaSchema,\n documents: Type.Record(Type.String(), WorkspaceDocumentSchema),\n originalDocuments: Type.Record(Type.String(), UnknownObjectSchema),\n intermediateDocuments: Type.Record(Type.String(), UnknownObjectSchema),\n overrides: Type.Record(Type.String(), Type.Any()),\n history: DocumentHistorySchema,\n auth: DocumentAuthSchema,\n})\n\nexport type InMemoryWorkspace = {\n meta: WorkspaceMeta\n documents: Record<string, WorkspaceDocument>\n originalDocuments: Record<string, Record<string, unknown>>\n intermediateDocuments: Record<string, Record<string, unknown>>\n overrides: Record<string, any>\n history: DocumentHistory\n auth: DocumentAuth\n}\n"],
|
|
5
|
-
"mappings": "AAAA,SAAS,YAAY;AAErB,SAA4B,0BAA0B;AACtD,SAA+B,6BAA6B;AAC5D;AAAA,EAEE;AAAA,EAEA;AAAA,OACK;AAEP,MAAM,sBAAsB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,QAAQ,CAAC;AAE9D,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,MAAM;AAAA,
|
|
4
|
+
"sourcesContent": ["import { Type } from '@scalar/typebox'\n\nimport { type DocumentAuth, DocumentAuthSchema } from '@/entities/auth/schema'\nimport { type DocumentHistory, DocumentHistorySchema } from '@/entities/history/schema'\nimport { compose } from '@/schemas/compose'\nimport {\n type WorkspaceDocument,\n WorkspaceDocumentSchema,\n type WorkspaceExtensions,\n WorkspaceExtensionsSchema,\n type WorkspaceMeta,\n WorkspaceMetaSchema,\n} from '@/schemas/workspace'\n\nconst UnknownObjectSchema = Type.Record(Type.String(), Type.Unknown())\n\nexport const InMemoryWorkspaceSchema = Type.Object({\n meta: compose(WorkspaceMetaSchema, WorkspaceExtensionsSchema),\n documents: Type.Record(Type.String(), WorkspaceDocumentSchema),\n originalDocuments: Type.Record(Type.String(), UnknownObjectSchema),\n intermediateDocuments: Type.Record(Type.String(), UnknownObjectSchema),\n overrides: Type.Record(Type.String(), Type.Any()),\n history: DocumentHistorySchema,\n auth: DocumentAuthSchema,\n})\n\nexport type InMemoryWorkspace = {\n meta: WorkspaceMeta & WorkspaceExtensions\n documents: Record<string, WorkspaceDocument>\n originalDocuments: Record<string, Record<string, unknown>>\n intermediateDocuments: Record<string, Record<string, unknown>>\n overrides: Record<string, any>\n history: DocumentHistory\n auth: DocumentAuth\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,YAAY;AAErB,SAA4B,0BAA0B;AACtD,SAA+B,6BAA6B;AAC5D,SAAS,eAAe;AACxB;AAAA,EAEE;AAAA,EAEA;AAAA,EAEA;AAAA,OACK;AAEP,MAAM,sBAAsB,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,QAAQ,CAAC;AAE9D,MAAM,0BAA0B,KAAK,OAAO;AAAA,EACjD,MAAM,QAAQ,qBAAqB,yBAAyB;AAAA,EAC5D,WAAW,KAAK,OAAO,KAAK,OAAO,GAAG,uBAAuB;AAAA,EAC7D,mBAAmB,KAAK,OAAO,KAAK,OAAO,GAAG,mBAAmB;AAAA,EACjE,uBAAuB,KAAK,OAAO,KAAK,OAAO,GAAG,mBAAmB;AAAA,EACrE,WAAW,KAAK,OAAO,KAAK,OAAO,GAAG,KAAK,IAAI,CAAC;AAAA,EAChD,SAAS;AAAA,EACT,MAAM;AACR,CAAC;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -318,6 +318,8 @@ export declare const ReferenceConfigSchema: import("@scalar/typebox").TObject<{
|
|
|
318
318
|
}>>;
|
|
319
319
|
}>, import("@scalar/typebox").TObject<{
|
|
320
320
|
'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
321
|
+
}>, import("@scalar/typebox").TObject<{
|
|
322
|
+
'x-draft-examples': import("@scalar/typebox").TOptional<TArray<import("@scalar/typebox").TString>>;
|
|
321
323
|
}>]>;
|
|
322
324
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
323
325
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,QAAQ,EAAQ,MAAM,iBAAiB,CAAA;AAClE,OAAO,EAA2C,KAAK,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBjC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,WAAW,CAAC,EAAE,gBAAgB,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,YAAY,CAAC,eAAe,CAgChE,CAAA"}
|
|
@@ -304,6 +304,8 @@ export declare const SettingsSchema: import("@scalar/typebox").TObject<{
|
|
|
304
304
|
}>>;
|
|
305
305
|
}>, import("@scalar/typebox").TObject<{
|
|
306
306
|
'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
|
|
307
|
+
}>, import("@scalar/typebox").TObject<{
|
|
308
|
+
'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
|
|
307
309
|
}>]>;
|
|
308
310
|
SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
|
|
309
311
|
__scalar_: import("@scalar/typebox").TString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../src/schemas/reference-config/settings.ts"],"names":[],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