From 78eafe179750b1ffa35a1b8775ff62b78a31864d Mon Sep 17 00:00:00 2001 From: Nate Ferrero Date: Wed, 15 May 2024 14:34:11 -0400 Subject: [PATCH] chore(claude): generate release notes --- .gitignore | 4 +- ai-diff-summary.ts | 106 + claude-ai.ts | 97 + gen-diffs-script.ts | 39 + gen-diffs.sh | 23 + package-lock.json | 3921 +++++++++ package.json | 22 +- release-notes/1.6.3.diff.txt | 2023 +++++ release-notes/1.6.3.diff.txt.result.md | 53 + release-notes/1.6.4.diff.txt | 666 ++ release-notes/1.6.4.diff.txt.result.md | 16 + release-notes/1.6.5.diff.txt | 547 ++ release-notes/1.6.5.diff.txt.result.md | 15 + release-notes/1.6.6.diff.txt | 416 + release-notes/1.6.6.diff.txt.result.md | 16 + release-notes/1.6.7.diff.txt | 715 ++ release-notes/1.6.7.diff.txt.result.md | 23 + release-notes/1.7.0.diff.txt | 2259 +++++ release-notes/1.7.0.diff.txt.result.md | 55 + release-notes/1.7.1.diff.txt | 416 + release-notes/1.7.1.diff.txt.result.md | 19 + release-notes/1.7.10.diff.txt | 9692 ++++++++++++++++++++++ release-notes/1.7.10.diff.txt.result.md | 84 + release-notes/1.7.11.diff.txt | 1183 +++ release-notes/1.7.11.diff.txt.result.md | 27 + release-notes/1.7.2.diff.txt | 9947 +++++++++++++++++++++++ release-notes/1.7.2.diff.txt.result.md | 117 + release-notes/1.7.3.diff.txt | 562 ++ release-notes/1.7.3.diff.txt.result.md | 26 + release-notes/1.7.4.diff.txt | 265 + release-notes/1.7.4.diff.txt.result.md | 13 + release-notes/1.7.5.diff.txt | 434 + release-notes/1.7.5.diff.txt.result.md | 18 + release-notes/1.7.6.diff.txt | 736 ++ release-notes/1.7.6.diff.txt.result.md | 54 + release-notes/1.7.7.diff.txt | 380 + release-notes/1.7.7.diff.txt.result.md | 8 + release-notes/1.7.8.diff.txt | 274 + release-notes/1.7.8.diff.txt.result.md | 95 + release-notes/1.8.0.diff.txt | 9332 +++++++++++++++++++++ release-notes/1.8.0.diff.txt.result.md | 22 + release-notes/1.8.2.diff.txt | 487 ++ release-notes/1.8.2.diff.txt.result.md | 14 + release-notes/1.8.3.diff.txt | 365 + release-notes/1.8.3.diff.txt.result.md | 13 + release-notes/1.8.4.diff.txt | 1315 +++ release-notes/1.8.4.diff.txt.result.md | 23 + release-notes/1.8.5.diff.txt | 333 + release-notes/1.8.5.diff.txt.result.md | 11 + release-notes/1.8.6.diff.txt | 636 ++ release-notes/1.8.6.diff.txt.result.md | 23 + release-notes/1.8.9.diff.txt | 353 + release-notes/1.8.9.diff.txt.result.md | 18 + yarn.lock | 676 +- 54 files changed, 48631 insertions(+), 356 deletions(-) create mode 100644 ai-diff-summary.ts create mode 100644 claude-ai.ts create mode 100644 gen-diffs-script.ts create mode 100755 gen-diffs.sh create mode 100644 package-lock.json create mode 100644 release-notes/1.6.3.diff.txt create mode 100644 release-notes/1.6.3.diff.txt.result.md create mode 100644 release-notes/1.6.4.diff.txt create mode 100644 release-notes/1.6.4.diff.txt.result.md create mode 100644 release-notes/1.6.5.diff.txt create mode 100644 release-notes/1.6.5.diff.txt.result.md create mode 100644 release-notes/1.6.6.diff.txt create mode 100644 release-notes/1.6.6.diff.txt.result.md create mode 100644 release-notes/1.6.7.diff.txt create mode 100644 release-notes/1.6.7.diff.txt.result.md create mode 100644 release-notes/1.7.0.diff.txt create mode 100644 release-notes/1.7.0.diff.txt.result.md create mode 100644 release-notes/1.7.1.diff.txt create mode 100644 release-notes/1.7.1.diff.txt.result.md create mode 100644 release-notes/1.7.10.diff.txt create mode 100644 release-notes/1.7.10.diff.txt.result.md create mode 100644 release-notes/1.7.11.diff.txt create mode 100644 release-notes/1.7.11.diff.txt.result.md create mode 100644 release-notes/1.7.2.diff.txt create mode 100644 release-notes/1.7.2.diff.txt.result.md create mode 100644 release-notes/1.7.3.diff.txt create mode 100644 release-notes/1.7.3.diff.txt.result.md create mode 100644 release-notes/1.7.4.diff.txt create mode 100644 release-notes/1.7.4.diff.txt.result.md create mode 100644 release-notes/1.7.5.diff.txt create mode 100644 release-notes/1.7.5.diff.txt.result.md create mode 100644 release-notes/1.7.6.diff.txt create mode 100644 release-notes/1.7.6.diff.txt.result.md create mode 100644 release-notes/1.7.7.diff.txt create mode 100644 release-notes/1.7.7.diff.txt.result.md create mode 100644 release-notes/1.7.8.diff.txt create mode 100644 release-notes/1.7.8.diff.txt.result.md create mode 100644 release-notes/1.8.0.diff.txt create mode 100644 release-notes/1.8.0.diff.txt.result.md create mode 100644 release-notes/1.8.2.diff.txt create mode 100644 release-notes/1.8.2.diff.txt.result.md create mode 100644 release-notes/1.8.3.diff.txt create mode 100644 release-notes/1.8.3.diff.txt.result.md create mode 100644 release-notes/1.8.4.diff.txt create mode 100644 release-notes/1.8.4.diff.txt.result.md create mode 100644 release-notes/1.8.5.diff.txt create mode 100644 release-notes/1.8.5.diff.txt.result.md create mode 100644 release-notes/1.8.6.diff.txt create mode 100644 release-notes/1.8.6.diff.txt.result.md create mode 100644 release-notes/1.8.9.diff.txt create mode 100644 release-notes/1.8.9.diff.txt.result.md diff --git a/.gitignore b/.gitignore index 1498321f..4fa90481 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,6 @@ node_modules /api /core /errors -/serialization \ No newline at end of file +/serialization +.claude_cache +.env diff --git a/ai-diff-summary.ts b/ai-diff-summary.ts new file mode 100644 index 00000000..944a7075 --- /dev/null +++ b/ai-diff-summary.ts @@ -0,0 +1,106 @@ +const claudeApiKey = ""; + +import * as fs from "fs"; +import * as path from "path"; +import { sendPromptToClaude } from "./claude-ai"; + +let totalCount = 0; + +async function processFile( + filePath: string, + extension: string, + callback: (fileContent: string) => Promise, + apiKey: string +) { + if (path.extname(filePath).toLowerCase() === extension) { + const fileContent = fs.readFileSync(filePath, "utf-8"); + const prompt = await callback(fileContent); + const resultFilePath = `${filePath}.result.md`; + + if (!fs.existsSync(resultFilePath)) { + console.log(`Processing ${filePath}...`); + try { + totalCount++; + if (totalCount > 4) { + console.log("SKIP " + filePath); + return; + } + const claudeResponse = await sendPromptToClaude( + `You are an AI assistant responsible for writing release notes. You'll be given a git diff of a TypeScript Node API, from that write detailed release notes that summarize the changes made in the diff, especially noting any external interface changes in detail. Use backticks to represent code blocks or property names in the output text. Each section of the release notes should have a level-4 header (####). Only write release notes that are relevant to a consumer of the package. Do not reference anything internal-only, do not reference file names. If there are no changes to a section, omit that section from the output. If there are general changes, include them at the start of the output. Relate the changes to the relevant section of the FlatfileClient API, if appropriate, as follows: +Accounts +Agents +Apps +Assistant +Auth +Cells +Commits +DataRetentionPolicies +Documents +Entitlements +Environments +Events +Files +Foreigndb +Guests +Jobs +Mapping +Records +Roles +Secrets +Sheets +Snapshots +Spaces +Users +Versions +Views +Workbooks`, + [{ role: "user", content: prompt }], + apiKey + ); + fs.writeFileSync(resultFilePath, claudeResponse); + console.log(`Processed ${filePath} and saved the result to ${resultFilePath}`); + } catch (error) { + console.error(`Error processing ${filePath}: ${error}`); + } + } else { + console.log(`Result file ${resultFilePath} already exists, skipping...`); + } + } +} + +async function processDirectory( + dirPath: string, + extension: string, + callback: (fileContent: string) => Promise, + apiKey: string +) { + const files = fs.readdirSync(dirPath); + const promises: Promise[] = []; + + for (const file of files) { + const filePath = path.join(dirPath, file); + const stats = fs.statSync(filePath); + + if (stats.isDirectory()) { + promises.push(processDirectory(filePath, extension, callback, apiKey)); + } else { + promises.push(processFile(filePath, extension, callback, apiKey)); + } + } + + await Promise.all(promises); +} + +// Usage example +const directoryPath = "./release-notes"; +const fileExtension = ".txt"; + +const promptCallback = async (fileContent: string): Promise => { + // Generate the prompt based on the file content + // This is just an example, you can modify it as needed + return `Generate a summary of changes for the following text diff: ${fileContent}`; +}; + +processDirectory(directoryPath, fileExtension, promptCallback, claudeApiKey).catch((error) => + console.error("Error:", error) +); diff --git a/claude-ai.ts b/claude-ai.ts new file mode 100644 index 00000000..992ad565 --- /dev/null +++ b/claude-ai.ts @@ -0,0 +1,97 @@ +import { createHash } from "crypto"; +import fs from "fs/promises"; +import { join } from "path"; + +const CLAUDE_API_URL = "https://api.anthropic.com/v1/messages"; + +async function makeClaudeRequest(system: string, messages: ClaudeMessage[], apiKey: string) { + const headers = { + "Anthropic-Version": "2023-06-01", + "Content-Type": "application/json", + "X-API-Key": apiKey, + }; + + const body = JSON.stringify({ + max_tokens: 4096, + // https://docs.anthropic.com/claude/docs/models-overview + // model: 'claude-3-opus-20240229', + model: "claude-3-sonnet-20240229", + // model: 'claude-3-haiku-20240307' + messages, + system, + }); + + try { + const response = await fetch(CLAUDE_API_URL, { + method: "POST", + headers, + body, + }); + + if (!response.ok) { + console.error(await response.text()); + throw new Error(`HTTP error! status: ${response.status}`); + } + + const data = await response.json(); + + let content = data.content?.[0]?.text; + + if (!content || typeof content !== "string") { + throw new Error("No content found in the API response"); + } + + return content; + } catch (error) { + console.error("Error calling Claude API:", error); + throw error; + } +} + +export interface ClaudeMessage { + role: "assistant" | "user"; + content: string; +} + +export async function sendPromptToClaude( + system: string, + messages: ClaudeMessage[], + apiKey: string, + useCache: boolean = true +): Promise { + const cacheHash = createHash("sha256"); + cacheHash.update(JSON.stringify({ system, messages })); + const cacheKey = cacheHash.digest("hex"); + const cacheDirectory = join(process.cwd(), ".claude_cache"); + await fs.mkdir(cacheDirectory, { recursive: true }); + const cacheFile = join(cacheDirectory, `${cacheKey}.cache.txt`); + if (useCache) { + try { + const cacheStat = await fs.stat(cacheFile); + if (cacheStat.size > 0) { + return JSON.parse( + await fs.readFile(cacheFile, { + encoding: "utf-8", + }) + ); + } + } catch (e) { + // assume cache doesn't exist + } + } + const result = await sendPrompt(system, messages, apiKey); + await fs.writeFile(cacheFile, JSON.stringify(result), { + encoding: "utf-8", + }); + return result; +} + +async function sendPrompt(system: string, messages: ClaudeMessage[], apiKey: string): Promise { + let content = await makeClaudeRequest(system, messages, apiKey); + + if (!content || typeof content !== "string") { + throw new Error("No content found in the API response"); + } + + return content; +} diff --git a/gen-diffs-script.ts b/gen-diffs-script.ts new file mode 100644 index 00000000..8bfe15f1 --- /dev/null +++ b/gen-diffs-script.ts @@ -0,0 +1,39 @@ +import fs from "node:fs"; + +const versions = [ + "1.6.3", + "1.6.4", + "1.6.5", + "1.6.6", + "1.6.7", + "1.7.0", + "1.7.1", + "1.7.10", + "1.7.11", + "1.7.2", + "1.7.3", + "1.7.4", + "1.7.5", + "1.7.6", + "1.7.7", + "1.7.8", + "1.8.0", + "1.8.2", + "1.8.3", + "1.8.4", + "1.8.5", + "1.8.6", + "1.8.9", +]; + +let script: string[] = []; +let compareVersion = "1.6.2"; + +for (const version of versions) { + script.push( + `( git diff --no-color -U1 ${compareVersion}..${version} ':!yarn.lock' ) | grep -v '"X-' > release-notes/${version}.diff.txt` + ); + compareVersion = version; +} + +fs.writeFileSync("gen-diffs.sh", script.join("\n")); diff --git a/gen-diffs.sh b/gen-diffs.sh new file mode 100755 index 00000000..426dc6f6 --- /dev/null +++ b/gen-diffs.sh @@ -0,0 +1,23 @@ +( git diff --no-color -U1 1.6.2..1.6.3 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.6.3.diff.txt +( git diff --no-color -U1 1.6.3..1.6.4 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.6.4.diff.txt +( git diff --no-color -U1 1.6.4..1.6.5 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.6.5.diff.txt +( git diff --no-color -U1 1.6.5..1.6.6 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.6.6.diff.txt +( git diff --no-color -U1 1.6.6..1.6.7 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.6.7.diff.txt +( git diff --no-color -U1 1.6.7..1.7.0 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.0.diff.txt +( git diff --no-color -U1 1.7.0..1.7.1 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.1.diff.txt +( git diff --no-color -U1 1.7.1..1.7.10 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.10.diff.txt +( git diff --no-color -U1 1.7.10..1.7.11 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.11.diff.txt +( git diff --no-color -U1 1.7.11..1.7.2 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.2.diff.txt +( git diff --no-color -U1 1.7.2..1.7.3 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.3.diff.txt +( git diff --no-color -U1 1.7.3..1.7.4 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.4.diff.txt +( git diff --no-color -U1 1.7.4..1.7.5 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.5.diff.txt +( git diff --no-color -U1 1.7.5..1.7.6 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.6.diff.txt +( git diff --no-color -U1 1.7.6..1.7.7 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.7.diff.txt +( git diff --no-color -U1 1.7.7..1.7.8 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.7.8.diff.txt +( git diff --no-color -U1 1.7.8..1.8.0 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.8.0.diff.txt +( git diff --no-color -U1 1.8.0..1.8.2 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.8.2.diff.txt +( git diff --no-color -U1 1.8.2..1.8.3 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.8.3.diff.txt +( git diff --no-color -U1 1.8.3..1.8.4 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.8.4.diff.txt +( git diff --no-color -U1 1.8.4..1.8.5 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.8.5.diff.txt +( git diff --no-color -U1 1.8.5..1.8.6 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.8.6.diff.txt +( git diff --no-color -U1 1.8.6..1.8.9 ':!yarn.lock' ) | grep -v '"X-' > release-notes/1.8.9.diff.txt \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..a25a734d --- /dev/null +++ b/package-lock.json @@ -0,0 +1,3921 @@ +{ + "name": "@flatfile/api", + "version": "1.8.9", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "@flatfile/api", + "version": "1.8.9", + "dependencies": { + "@flatfile/cross-env-config": "0.0.4", + "@types/pako": "2.0.1", + "form-data": "4.0.0", + "js-base64": "3.7.2", + "node-fetch": "2.7.0", + "pako": "2.0.1", + "qs": "6.11.2", + "url-join": "4.0.1" + }, + "devDependencies": { + "@types/jest": "^29.5.5", + "@types/node": "^17.0.33", + "@types/node-fetch": "2.6.9", + "@types/qs": "6.9.8", + "@types/url-join": "4.0.1", + "jest": "^29.7.0", + "prettier": "2.7.1", + "ts-jest": "^29.1.1", + "typescript": "4.6.4" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.24.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", + "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", + "dev": true, + "dependencies": { + "@babel/highlight": "^7.24.2", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.24.4", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz", + "integrity": "sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz", + "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-compilation-targets": "^7.23.6", + "@babel/helper-module-transforms": "^7.24.5", + "@babel/helpers": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/generator": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz", + "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.5", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.23.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz", + "integrity": "sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-validator-option": "^7.23.5", + "browserslist": "^4.22.2", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.24.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz", + "integrity": "sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz", + "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.24.3", + "@babel/helper-simple-access": "^7.24.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/helper-validator-identifier": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz", + "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz", + "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz", + "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", + "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", + "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz", + "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==", + "dev": true, + "dependencies": { + "@babel/template": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz", + "integrity": "sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.24.5", + "chalk": "^2.4.2", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/highlight/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/@babel/highlight/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "dev": true + }, + "node_modules/@babel/highlight/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@babel/highlight/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/highlight/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/@babel/parser": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", + "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==", + "dev": true, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz", + "integrity": "sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz", + "integrity": "sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", + "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.23.5", + "@babel/parser": "^7.24.0", + "@babel/types": "^7.24.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz", + "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/types": "^7.24.5", + "debug": "^4.3.1", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", + "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.24.1", + "@babel/helper-validator-identifier": "^7.24.5", + "to-fast-properties": "^2.0.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@flatfile/cross-env-config": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@flatfile/cross-env-config/-/cross-env-config-0.0.4.tgz", + "integrity": "sha512-mNaqtASTly4N09pjQts5zDnYXFLC891TCxJEiFUnil8p6lQciyd0gnPSnhJD0TTlO5817gX3mLE9RDoAETtIbg==" + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz", + "integrity": "sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.12", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz", + "integrity": "sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/node": { + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.33.tgz", + "integrity": "sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ==", + "dev": true + }, + "node_modules/@types/node-fetch": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.9.tgz", + "integrity": "sha512-bQVlnMLFJ2d35DkPNjEPmd9ueO/rh5EiaZt2bhqiSarPjZIuIV6bPQVqcrEyvNo+AfTrRGVazle1tl597w3gfA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/pako": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/pako/-/pako-2.0.1.tgz", + "integrity": "sha512-fXhui1fHdLrUR0KEyQsBzqdi3Z+MitnRcpI2eeFJyzaRdqO2miX/BDz2Hh0VdkBbrWprgcQ+ItFmbdKYdbMjvg==" + }, + "node_modules/@types/qs": { + "version": "6.9.8", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.8.tgz", + "integrity": "sha512-u95svzDlTysU5xecFNTgfFG5RUWu1A9P0VzgpcIiGZA9iraHOdSzcxMxQ55DyeRaGCSxQi7LxXDI4rzq/MYfdg==", + "dev": true + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@types/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.32", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", + "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.23.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz", + "integrity": "sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001587", + "electron-to-chromium": "^1.4.668", + "node-releases": "^2.0.14", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/call-bind": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001618", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001618.tgz", + "integrity": "sha512-p407+D1tIkDvsEAPS22lJxLQQaG8OTBEqo0KhzfABGk0TU4juBNDSfH0hyAp/HRyx+M8L17z/ltyhxh27FTfQg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz", + "integrity": "sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", + "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/define-data-property": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", + "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", + "dependencies": { + "es-define-property": "^1.0.0", + "es-errors": "^1.3.0", + "gopd": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.768", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.768.tgz", + "integrity": "sha512-z2U3QcvNuxdkk33YV7R1bVMNq7fL23vq3WfO5BHcqrm4TnDGReouBfYKLEFh5umoK1XACjEwp8mmnhXk2EJigw==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", + "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "has-proto": "^1.0.1", + "has-symbols": "^1.0.3", + "hasown": "^2.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "dependencies": { + "get-intrinsic": "^1.1.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/has-property-descriptors": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "dependencies": { + "es-define-property": "^1.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-proto": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", + "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", + "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz", + "integrity": "sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==", + "dev": true, + "dependencies": { + "hasown": "^2.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz", + "integrity": "sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-base64": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz", + "integrity": "sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ==" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", + "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "dev": true, + "dependencies": { + "braces": "^3.0.2", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz", + "integrity": "sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/object-inspect": { + "version": "1.13.1", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", + "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pako": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pako/-/pako-2.0.1.tgz", + "integrity": "sha512-mqHoEQRZ4d+JREr7Csg+QbdfuOHtojEmsAKo/cYiCJICjjB0mOMSKnRlL42P5luMWUXksJ7UDZCRkEqPrBj0Dg==" + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz", + "integrity": "sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prettier": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz", + "integrity": "sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==", + "dev": true, + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "node_modules/qs": { + "version": "6.11.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz", + "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==", + "dependencies": { + "side-channel": "^1.0.4" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.8", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", + "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", + "dev": true, + "dependencies": { + "is-core-module": "^2.13.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/set-function-length": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", + "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "dependencies": { + "define-data-property": "^1.1.4", + "es-errors": "^1.3.0", + "function-bind": "^1.1.2", + "get-intrinsic": "^1.2.4", + "gopd": "^1.0.1", + "has-property-descriptors": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", + "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "dependencies": { + "call-bind": "^1.0.7", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.4", + "object-inspect": "^1.13.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-fast-properties": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", + "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/ts-jest": { + "version": "29.1.2", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz", + "integrity": "sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "^7.5.3", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.16", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz", + "integrity": "sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.2", + "picocolors": "^1.0.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/url-join": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", + "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==" + }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/package.json b/package.json index 54fb07f4..1ad19399 100644 --- a/package.json +++ b/package.json @@ -12,24 +12,24 @@ "test": "jest" }, "dependencies": { - "url-join": "4.0.1", + "@flatfile/cross-env-config": "0.0.4", + "@types/pako": "2.0.1", "form-data": "4.0.0", + "js-base64": "3.7.2", "node-fetch": "2.7.0", + "pako": "2.0.1", "qs": "6.11.2", - "js-base64": "3.7.2", - "@flatfile/cross-env-config": "0.0.4", - "@types/pako": "2.0.1", - "pako": "2.0.1" + "url-join": "4.0.1" }, "devDependencies": { - "@types/url-join": "4.0.1", - "@types/qs": "6.9.8", + "@types/jest": "^29.5.5", + "@types/node": "^17.0.33", "@types/node-fetch": "2.6.9", + "@types/qs": "6.9.8", + "@types/url-join": "4.0.1", "jest": "^29.7.0", - "@types/jest": "^29.5.5", - "ts-jest": "^29.1.1", - "@types/node": "17.0.33", "prettier": "2.7.1", + "ts-jest": "^29.1.1", "typescript": "4.6.4" } -} \ No newline at end of file +} diff --git a/release-notes/1.6.3.diff.txt b/release-notes/1.6.3.diff.txt new file mode 100644 index 00000000..300d30e7 --- /dev/null +++ b/release-notes/1.6.3.diff.txt @@ -0,0 +1,2023 @@ +diff --git a/.fernignore b/.fernignore +index 0ff4608..589017b 100644 +--- a/.fernignore ++++ b/.fernignore +@@ -3,2 +3,3 @@ + README.md ++LICENSE.txt + +@@ -6 +7,2 @@ src/wrapper + src/index.ts ++ +diff --git a/LICENSE.txt b/LICENSE.txt +new file mode 100644 +index 0000000..92fa49e +--- /dev/null ++++ b/LICENSE.txt +@@ -0,0 +1,21 @@ ++MIT License ++ ++Copyright (c) [2024] [Flatfile, Inc.] ++ ++Permission is hereby granted, free of charge, to any person obtaining a copy ++of this software and associated documentation files (the "Software"), to deal ++in the Software without restriction, including without limitation the rights ++to use, copy, modify, merge, publish, distribute, sublicense, and/or sell ++copies of the Software, and to permit persons to whom the Software is ++furnished to do so, subject to the following conditions: ++ ++The above copyright notice and this permission notice shall be included in all ++copies or substantial portions of the Software. ++ ++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR ++IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ++FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE ++AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER ++LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, ++OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE ++SOFTWARE. +diff --git a/README.md b/README.md +index 8de0473..d74f93e 100644 +--- a/README.md ++++ b/README.md +@@ -136 +136,5 @@ While we value open-source contributions to this SDK, this library is generated + On the other hand, contributions to the README are always very welcome! ++ ++## License ++ ++This project is licensed under the MIT License - see the [LICENSE](LICENSE.txt) file for details. +diff --git a/package.json b/package.json +index 60282b1..6a1e2d6 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.6.2", ++ "version": "1.6.3", + "private": false, +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 7bcbc17..65635e2 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -46,3 +46,3 @@ export class Agents { + }, +@@ -126,3 +126,3 @@ export class Agents { + }, +@@ -207,3 +207,3 @@ export class Agents { + }, +@@ -297,3 +297,3 @@ export class Agents { + }, +@@ -387,3 +387,3 @@ export class Agents { + }, +@@ -496,3 +496,3 @@ export class Agents { + }, +@@ -605,3 +605,3 @@ export class Agents { + }, +@@ -696,3 +696,3 @@ export class Agents { + }, +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index ec7c87b..8d65d9d 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -43,3 +43,3 @@ export class Apps { + }, +@@ -99,3 +99,3 @@ export class Apps { + }, +@@ -168,3 +168,3 @@ export class Apps { + }, +@@ -238,3 +238,3 @@ export class Apps { + }, +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index ed952f7..891b70a 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -55,3 +55,3 @@ export class Auth { + }, +@@ -144,3 +144,3 @@ export class Auth { + }, +@@ -235,3 +235,3 @@ export class Auth { + }, +@@ -326,3 +326,3 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 430978c..0932ea5 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -108,3 +108,3 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index dcd1833..f2fecd5 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -51,3 +51,3 @@ export class Commits { + }, +@@ -132,3 +132,3 @@ export class Commits { + }, +@@ -213,3 +213,3 @@ export class Commits { + }, +diff --git a/src/api/resources/commons/types/FamilyId.ts b/src/api/resources/commons/types/FamilyId.ts +new file mode 100644 +index 0000000..c7e07a9 +--- /dev/null ++++ b/src/api/resources/commons/types/FamilyId.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Mapping Family ID ++ * ++ * @example ++ * "us_mf_YOUR_ID" ++ */ ++export type FamilyId = string; +diff --git a/src/api/resources/commons/types/InputField.ts b/src/api/resources/commons/types/InputField.ts +index 7b05796..8c61860 100644 +--- a/src/api/resources/commons/types/InputField.ts ++++ b/src/api/resources/commons/types/InputField.ts +@@ -15,2 +15,4 @@ export interface InputField { + type: string; ++ /** Default value for a Field. */ ++ defaultValue?: any; + /** Additional configuration for enum Fields. */ +diff --git a/src/api/resources/commons/types/SearchValue.ts b/src/api/resources/commons/types/SearchValue.ts +index 2b13007..b52d270 100644 +--- a/src/api/resources/commons/types/SearchValue.ts ++++ b/src/api/resources/commons/types/SearchValue.ts +@@ -5,3 +5,3 @@ + /** +- * Search the entire sheet for the given value, returning matching rows ++ * Search for the given value, returning matching rows. For exact matches, wrap the value in double quotes ("Bob"). To search for null values, send empty double quotes ("") + */ +diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts +index 66f5304..dd3cab8 100644 +--- a/src/api/resources/commons/types/index.ts ++++ b/src/api/resources/commons/types/index.ts +@@ -22,2 +22,3 @@ export * from "./MappingId"; + export * from "./ProgramId"; ++export * from "./FamilyId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 005a590..0a06eba 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -59,3 +59,3 @@ export class DataRetentionPolicies { + }, +@@ -148,3 +148,3 @@ export class DataRetentionPolicies { + }, +@@ -233,3 +233,3 @@ export class DataRetentionPolicies { + }, +@@ -322,3 +322,3 @@ export class DataRetentionPolicies { + }, +@@ -404,3 +404,3 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 6d8dc94..be2b4af 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -51,3 +51,3 @@ export class Documents { + }, +@@ -146,3 +146,3 @@ export class Documents { + }, +@@ -234,3 +234,3 @@ export class Documents { + }, +@@ -325,3 +325,3 @@ export class Documents { + }, +@@ -410,3 +410,3 @@ export class Documents { + }, +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 1b59d28..a0cffe3 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -59,3 +59,3 @@ export class Environments { + }, +@@ -127,3 +127,3 @@ export class Environments { + }, +@@ -194,3 +194,3 @@ export class Environments { + }, +@@ -279,3 +279,3 @@ export class Environments { + }, +@@ -370,3 +370,3 @@ export class Environments { + }, +@@ -429,3 +429,3 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 965b852..1f6a8fe 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -83,3 +83,3 @@ export class Events { + }, +@@ -157,3 +157,3 @@ export class Events { + }, +@@ -234,3 +234,3 @@ export class Events { + }, +@@ -284,3 +284,3 @@ export class Events { + }, +@@ -355,3 +355,3 @@ export class Events { + }, +diff --git a/src/api/resources/events/types/Domain.ts b/src/api/resources/events/types/Domain.ts +index 4f025e5..36b10c1 100644 +--- a/src/api/resources/events/types/Domain.ts ++++ b/src/api/resources/events/types/Domain.ts +@@ -10,3 +10,3 @@ + */ +-export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program"; ++export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program" | "secret"; + +@@ -20,2 +20,3 @@ export const Domain = { + Program: "program", ++ Secret: "secret", + } as const; +diff --git a/src/api/resources/events/types/Event.ts b/src/api/resources/events/types/Event.ts +index ddb1c06..1ec89fd 100644 +--- a/src/api/resources/events/types/Event.ts ++++ b/src/api/resources/events/types/Event.ts +@@ -40,3 +40,6 @@ export type Event = + | Flatfile.Event.SpaceDeleted ++ | Flatfile.Event.SpaceArchived + | Flatfile.Event.SpaceExpired ++ | Flatfile.Event.SpaceGuestAdded ++ | Flatfile.Event.SpaceGuestRemoved + | Flatfile.Event.DocumentCreated +@@ -73,2 +76,5 @@ export type Event = + | Flatfile.Event.CommitCompleted ++ | Flatfile.Event.SecretCreated ++ | Flatfile.Event.SecretUpdated ++ | Flatfile.Event.SecretDeleted + | Flatfile.Event.LayerCreated; +@@ -100,2 +106,6 @@ export declare namespace Event { + ++ interface SpaceArchived extends Flatfile.GenericEvent { ++ topic: "space:archived"; ++ } ++ + interface SpaceExpired extends Flatfile.GenericEvent { +@@ -104,2 +114,10 @@ export declare namespace Event { + ++ interface SpaceGuestAdded extends Flatfile.GenericEvent { ++ topic: "space:guestAdded"; ++ } ++ ++ interface SpaceGuestRemoved extends Flatfile.GenericEvent { ++ topic: "space:guestRemoved"; ++ } ++ + interface DocumentCreated extends Flatfile.GenericEvent { +@@ -232,2 +250,14 @@ export declare namespace Event { + ++ interface SecretCreated extends Flatfile.GenericEvent { ++ topic: "secret:created"; ++ } ++ ++ interface SecretUpdated extends Flatfile.GenericEvent { ++ topic: "secret:updated"; ++ } ++ ++ interface SecretDeleted extends Flatfile.GenericEvent { ++ topic: "secret:deleted"; ++ } ++ + interface LayerCreated extends Flatfile.GenericEvent { +diff --git a/src/api/resources/events/types/EventTopic.ts b/src/api/resources/events/types/EventTopic.ts +index 6712c22..9fdb9a0 100644 +--- a/src/api/resources/events/types/EventTopic.ts ++++ b/src/api/resources/events/types/EventTopic.ts +@@ -17,3 +17,6 @@ export type EventTopic = + | "space:deleted" ++ | "space:archived" + | "space:expired" ++ | "space:guestAdded" ++ | "space:guestRemoved" + | "document:created" +@@ -50,3 +53,6 @@ export type EventTopic = + | "commit:completed" +- | "layer:created"; ++ | "layer:created" ++ | "secret:created" ++ | "secret:updated" ++ | "secret:deleted"; + +@@ -59,3 +65,6 @@ export const EventTopic = { + SpaceDeleted: "space:deleted", ++ SpaceArchived: "space:archived", + SpaceExpired: "space:expired", ++ SpaceGuestAdded: "space:guestAdded", ++ SpaceGuestRemoved: "space:guestRemoved", + DocumentCreated: "document:created", +@@ -93,2 +102,5 @@ export const EventTopic = { + LayerCreated: "layer:created", ++ SecretCreated: "secret:created", ++ SecretUpdated: "secret:updated", ++ SecretDeleted: "secret:deleted", + } as const; +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 9a87e46..b733f6a 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -64,3 +64,3 @@ export class Files { + }, +@@ -136,3 +136,3 @@ export class Files { + "Content-Length": (await core.getFormDataContentLength(_request)).toString(), +@@ -208,3 +208,3 @@ export class Files { + }, +@@ -285,3 +285,3 @@ export class Files { + }, +@@ -372,3 +372,3 @@ export class Files { + }, +@@ -446,3 +446,3 @@ export class Files { + }, +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 2f6eb0d..3a1ef4e 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -58,3 +58,3 @@ export class Guests { + }, +@@ -129,3 +129,3 @@ export class Guests { + }, +@@ -189,3 +189,3 @@ export class Guests { + }, +@@ -245,3 +245,3 @@ export class Guests { + }, +@@ -308,3 +308,3 @@ export class Guests { + }, +@@ -375,3 +375,3 @@ export class Guests { + }, +@@ -437,3 +437,3 @@ export class Guests { + }, +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index b577a24..9aeeb14 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -77,3 +77,3 @@ export class Jobs { + }, +@@ -131,3 +131,3 @@ export class Jobs { + }, +@@ -182,3 +182,3 @@ export class Jobs { + }, +@@ -236,3 +236,3 @@ export class Jobs { + }, +@@ -287,3 +287,3 @@ export class Jobs { + }, +@@ -343,3 +343,3 @@ export class Jobs { + }, +@@ -402,3 +402,3 @@ export class Jobs { + }, +@@ -445,5 +445,36 @@ export class Jobs { + * await flatfile.jobs.updateExecutionPlan("us_jb_YOUR_ID", { +- * fieldMapping: [{}, {}], +- * unmappedSourceFields: [{}], +- * unmappedDestinationFields: [{}], ++ * fieldMapping: [{ ++ * sourceField: { ++ * type: "string", ++ * key: "firstName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "firstName", ++ * label: "First Name" ++ * } ++ * }, { ++ * sourceField: { ++ * type: "string", ++ * key: "lastName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "lastName", ++ * label: "Last Name" ++ * } ++ * }], ++ * unmappedSourceFields: [{ ++ * sourceField: { ++ * type: "string", ++ * key: "email" ++ * } ++ * }], ++ * unmappedDestinationFields: [{ ++ * destinationField: { ++ * type: "string", ++ * key: "email", ++ * label: "Email" ++ * } ++ * }], + * fileId: "us_fl_YOUR_ID", +@@ -468,3 +499,3 @@ export class Jobs { + }, +@@ -526,3 +557,3 @@ export class Jobs { + }, +@@ -593,3 +624,3 @@ export class Jobs { + }, +@@ -656,3 +687,3 @@ export class Jobs { + }, +@@ -728,3 +759,3 @@ export class Jobs { + }, +@@ -804,3 +835,3 @@ export class Jobs { + }, +@@ -870,3 +901,3 @@ export class Jobs { + }, +@@ -927,3 +958,3 @@ export class Jobs { + }, +@@ -983,3 +1014,3 @@ export class Jobs { + }, +@@ -1046,3 +1077,3 @@ export class Jobs { + }, +diff --git a/src/api/resources/jobs/types/Job.ts b/src/api/resources/jobs/types/Job.ts +index f8a1a73..7aba335 100644 +--- a/src/api/resources/jobs/types/Job.ts ++++ b/src/api/resources/jobs/types/Job.ts +@@ -21,2 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobExecutionPlan.ts b/src/api/resources/jobs/types/JobExecutionPlan.ts +index 9f6eb5b..4798527 100644 +--- a/src/api/resources/jobs/types/JobExecutionPlan.ts ++++ b/src/api/resources/jobs/types/JobExecutionPlan.ts +@@ -12,2 +12,11 @@ import * as Flatfile from "../../.."; + * fieldMapping: [{ ++ * sourceField: { ++ * type: "string", ++ * key: "firstName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "firstName", ++ * label: "First Name" ++ * }, + * preview: ["John", "Suzy", "Joe"], +@@ -19,2 +28,11 @@ import * as Flatfile from "../../.."; + * }, { ++ * sourceField: { ++ * type: "string", ++ * key: "lastName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "lastName", ++ * label: "Last Name" ++ * }, + * preview: ["Smith", "Que", "Montana"], +diff --git a/src/api/resources/jobs/types/JobExecutionPlanRequest.ts b/src/api/resources/jobs/types/JobExecutionPlanRequest.ts +index 9c663fe..92d2cc2 100644 +--- a/src/api/resources/jobs/types/JobExecutionPlanRequest.ts ++++ b/src/api/resources/jobs/types/JobExecutionPlanRequest.ts +@@ -9,5 +9,36 @@ import * as Flatfile from "../../.."; + * { +- * fieldMapping: [{}, {}], +- * unmappedSourceFields: [{}], +- * unmappedDestinationFields: [{}], ++ * fieldMapping: [{ ++ * sourceField: { ++ * type: "string", ++ * key: "firstName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "firstName", ++ * label: "First Name" ++ * } ++ * }, { ++ * sourceField: { ++ * type: "string", ++ * key: "lastName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "lastName", ++ * label: "Last Name" ++ * } ++ * }], ++ * unmappedSourceFields: [{ ++ * sourceField: { ++ * type: "string", ++ * key: "email" ++ * } ++ * }], ++ * unmappedDestinationFields: [{ ++ * destinationField: { ++ * type: "string", ++ * key: "email", ++ * label: "Email" ++ * } ++ * }], + * fileId: "us_fl_YOUR_ID", +diff --git a/src/api/resources/jobs/types/JobPlan.ts b/src/api/resources/jobs/types/JobPlan.ts +index 62d7c65..3702174 100644 +--- a/src/api/resources/jobs/types/JobPlan.ts ++++ b/src/api/resources/jobs/types/JobPlan.ts +@@ -22,2 +22,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +@@ -40,2 +41,11 @@ import * as Flatfile from "../../.."; + * fieldMapping: [{ ++ * sourceField: { ++ * type: "string", ++ * key: "firstName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "firstName", ++ * label: "First Name" ++ * }, + * preview: ["John", "Suzy", "Joe"], +@@ -47,2 +57,11 @@ import * as Flatfile from "../../.."; + * }, { ++ * sourceField: { ++ * type: "string", ++ * key: "lastName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "lastName", ++ * label: "Last Name" ++ * }, + * preview: ["Smith", "Que", "Montana"], +diff --git a/src/api/resources/jobs/types/JobPlanResponse.ts b/src/api/resources/jobs/types/JobPlanResponse.ts +index 0e6805a..40723bb 100644 +--- a/src/api/resources/jobs/types/JobPlanResponse.ts ++++ b/src/api/resources/jobs/types/JobPlanResponse.ts +@@ -21,2 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +@@ -39,2 +40,11 @@ import * as Flatfile from "../../.."; + * fieldMapping: [{ ++ * sourceField: { ++ * type: "string", ++ * key: "firstName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "firstName", ++ * label: "First Name" ++ * }, + * preview: ["John", "Suzy", "Joe"], +@@ -46,2 +56,11 @@ import * as Flatfile from "../../.."; + * }, { ++ * sourceField: { ++ * type: "string", ++ * key: "lastName" ++ * }, ++ * destinationField: { ++ * type: "string", ++ * key: "lastName", ++ * label: "Last Name" ++ * }, + * preview: ["Smith", "Que", "Montana"], +diff --git a/src/api/resources/jobs/types/JobResponse.ts b/src/api/resources/jobs/types/JobResponse.ts +index 1526607..eb4b4ab 100644 +--- a/src/api/resources/jobs/types/JobResponse.ts ++++ b/src/api/resources/jobs/types/JobResponse.ts +@@ -20,2 +20,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobUpdate.ts b/src/api/resources/jobs/types/JobUpdate.ts +index 2e8334e..dc23f9c 100644 +--- a/src/api/resources/jobs/types/JobUpdate.ts ++++ b/src/api/resources/jobs/types/JobUpdate.ts +@@ -11,2 +11,3 @@ import * as Flatfile from "../../.."; + * { ++ * config: undefined, + * status: Flatfile.JobStatus.Complete, +diff --git a/src/api/resources/jobs/types/ListJobsResponse.ts b/src/api/resources/jobs/types/ListJobsResponse.ts +index c9970a4..eb997d2 100644 +--- a/src/api/resources/jobs/types/ListJobsResponse.ts ++++ b/src/api/resources/jobs/types/ListJobsResponse.ts +@@ -25,2 +25,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index e3675ef..b208b2f 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -33,3 +33,3 @@ export class Mapping { + */ +- public async createMapping( ++ public async createMappingProgram( + request: Flatfile.ProgramConfig, +@@ -48,3 +48,3 @@ export class Mapping { + }, +@@ -125,2 +125,3 @@ export class Mapping { + environmentId, ++ namespace, + sourceKeys, +@@ -153,2 +154,6 @@ export class Mapping { + ++ if (namespace != null) { ++ _queryParams["namespace"] = namespace; ++ } ++ + if (sourceKeys != null) { +@@ -172,3 +177,3 @@ export class Mapping { + }, +@@ -225,3 +230,3 @@ export class Mapping { + /** +- * Add mapping rules to a program ++ * Get a mapping program + * @throws {@link Flatfile.BadRequestError} +@@ -229,7 +234,6 @@ export class Mapping { + */ +- public async createRules( ++ public async getMappingProgram( + programId: Flatfile.ProgramId, +- request: Flatfile.CreateMappingRulesRequest, + requestOptions?: Mapping.RequestOptions +- ): Promise { ++ ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -237,5 +241,5 @@ export class Mapping { + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/mapping/${await serializers.ProgramId.jsonOrThrow(programId)}/rules` ++ `/mapping/${await serializers.ProgramId.jsonOrThrow(programId)}` + ), +- method: "POST", ++ method: "GET", + headers: { +@@ -245,6 +249,5 @@ export class Mapping { + }, + contentType: "application/json", +- body: await serializers.CreateMappingRulesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +@@ -253,3 +256,3 @@ export class Mapping { + if (_response.ok) { +- return await serializers.MappingRulesResponse.parseOrThrow(_response.body, { ++ return await serializers.ProgramResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", +@@ -308,11 +311,173 @@ export class Mapping { + /** +- * List all mapping rules in a program ++ * Updates a mapping program + * @throws {@link Flatfile.BadRequestError} + * @throws {@link Flatfile.NotFoundError} +- * +- * @example +- * await flatfile.mapping.listRules("us_mp_YOUR_ID") + */ +- public async listRules( ++ public async updateMappingProgram( ++ programId: Flatfile.ProgramId, ++ request: Flatfile.ProgramConfig, ++ requestOptions?: Mapping.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/mapping/${await serializers.ProgramId.jsonOrThrow(programId)}` ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.ProgramConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ProgramResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Deletes a mapping program ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async deleteMappingProgram( ++ programId: Flatfile.ProgramId, ++ requestOptions?: Mapping.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/mapping/${await serializers.ProgramId.jsonOrThrow(programId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Add mapping rules to a program ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async createRules( + programId: Flatfile.ProgramId, ++ request: Flatfile.CreateMappingRulesRequest, + requestOptions?: Mapping.RequestOptions +@@ -324,3 +489,3 @@ export class Mapping { + ), +- method: "GET", ++ method: "POST", + headers: { +@@ -330,5 +495,6 @@ export class Mapping { + }, + contentType: "application/json", ++ body: await serializers.CreateMappingRulesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +@@ -392,3 +558,3 @@ export class Mapping { + /** +- * Deletes a mapping rule from a program ++ * List all mapping rules in a program + * @throws {@link Flatfile.BadRequestError} +@@ -397,9 +563,8 @@ export class Mapping { + * @example +- * await flatfile.mapping.deleteMapping("us_mp_YOUR_ID", "us_mr_YOUR_ID") ++ * await flatfile.mapping.listRules("us_mp_YOUR_ID") + */ +- public async deleteMapping( ++ public async listRules( + programId: Flatfile.ProgramId, +- mappingId: Flatfile.MappingId, + requestOptions?: Mapping.RequestOptions +- ): Promise { ++ ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -407,7 +572,5 @@ export class Mapping { + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/mapping/${await serializers.ProgramId.jsonOrThrow( +- programId +- )}/rules/${await serializers.MappingId.jsonOrThrow(mappingId)}` ++ `/mapping/${await serializers.ProgramId.jsonOrThrow(programId)}/rules` + ), +- method: "DELETE", ++ method: "GET", + headers: { +@@ -417,3 +580,3 @@ export class Mapping { + }, +@@ -424,3 +587,3 @@ export class Mapping { + if (_response.ok) { +- return await serializers.MappingRuleResponse.parseOrThrow(_response.body, { ++ return await serializers.MappingRulesResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", +@@ -479,3 +642,3 @@ export class Mapping { + /** +- * Updates a mapping rule in a program ++ * Get a mapping rule from a program + * @throws {@link Flatfile.BadRequestError} +@@ -484,12 +647,7 @@ export class Mapping { + * @example +- * await flatfile.mapping.updateMapping("us_mp_YOUR_ID", "us_mr_YOUR_ID", { +- * name: "Assign mapping rule", +- * type: "assign", +- * config: {} +- * }) ++ * await flatfile.mapping.getRule("us_mp_YOUR_ID", "us_mr_YOUR_ID") + */ +- public async updateMapping( ++ public async getRule( + programId: Flatfile.ProgramId, + mappingId: Flatfile.MappingId, +- request: Flatfile.MappingRuleConfig, + requestOptions?: Mapping.RequestOptions +@@ -503,3 +661,3 @@ export class Mapping { + ), +- method: "PATCH", ++ method: "GET", + headers: { +@@ -509,6 +667,5 @@ export class Mapping { + }, + contentType: "application/json", +- body: await serializers.MappingRuleConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +@@ -572,9 +729,19 @@ export class Mapping { + /** +- * Get Weights ++ * Updates a mapping rule in a program + * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * ++ * @example ++ * await flatfile.mapping.updateRule("us_mp_YOUR_ID", "us_mr_YOUR_ID", { ++ * name: "Assign mapping rule", ++ * type: "assign", ++ * config: {} ++ * }) + */ +- public async getFieldWeights( +- request: Flatfile.GetFieldWeightsRequest, ++ public async updateRule( ++ programId: Flatfile.ProgramId, ++ mappingId: Flatfile.MappingId, ++ request: Flatfile.MappingRuleConfig, + requestOptions?: Mapping.RequestOptions +- ): Promise { ++ ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -582,5 +749,7 @@ export class Mapping { + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- "/mapping/field-weights" ++ `/mapping/${await serializers.ProgramId.jsonOrThrow( ++ programId ++ )}/rules/${await serializers.MappingId.jsonOrThrow(mappingId)}` + ), +- method: "POST", ++ method: "PATCH", + headers: { +@@ -590,6 +759,6 @@ export class Mapping { + }, + contentType: "application/json", +- body: await serializers.GetFieldWeightsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ body: await serializers.MappingRuleConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +@@ -598,3 +767,3 @@ export class Mapping { + if (_response.ok) { +- return await serializers.SourceDestinationWeightsResponse.parseOrThrow(_response.body, { ++ return await serializers.MappingRuleResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", +@@ -619,2 +788,12 @@ export class Mapping { + ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); + default: +@@ -643,9 +822,14 @@ export class Mapping { + /** +- * Get Enum Weights ++ * Deletes a mapping rule from a program + * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * ++ * @example ++ * await flatfile.mapping.deleteRule("us_mp_YOUR_ID", "us_mr_YOUR_ID") + */ +- public async getEnumWeights( +- request: Flatfile.GetEnumWeightsRequest, ++ public async deleteRule( ++ programId: Flatfile.ProgramId, ++ mappingId: Flatfile.MappingId, + requestOptions?: Mapping.RequestOptions +- ): Promise { ++ ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -653,5 +837,7 @@ export class Mapping { + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- "/mapping/enum-weights" ++ `/mapping/${await serializers.ProgramId.jsonOrThrow( ++ programId ++ )}/rules/${await serializers.MappingId.jsonOrThrow(mappingId)}` + ), +- method: "POST", ++ method: "DELETE", + headers: { +@@ -661,6 +847,5 @@ export class Mapping { + }, + contentType: "application/json", +- body: await serializers.GetEnumWeightsRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +@@ -669,3 +854,3 @@ export class Mapping { + if (_response.ok) { +- return await serializers.SourceDestinationWeightsResponse.parseOrThrow(_response.body, { ++ return await serializers.Success.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", +@@ -690,2 +875,12 @@ export class Mapping { + ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); + default: +diff --git a/src/api/resources/mapping/client/requests/ListProgramsRequest.ts b/src/api/resources/mapping/client/requests/ListProgramsRequest.ts +index 53938fb..215c8d0 100644 +--- a/src/api/resources/mapping/client/requests/ListProgramsRequest.ts ++++ b/src/api/resources/mapping/client/requests/ListProgramsRequest.ts +@@ -8,3 +8,3 @@ export interface ListProgramsRequest { + /** +- * Number of spaces to return in a page (default 10) ++ * Number of programs to return in a page (default 10) + */ +@@ -31,2 +31,6 @@ export interface ListProgramsRequest { + environmentId?: Flatfile.EnvironmentId; ++ /** ++ * Filter by namespace ++ */ ++ namespace?: string; + /** +diff --git a/src/api/resources/mapping/types/GetEnumWeightsRequest.ts b/src/api/resources/mapping/types/GetEnumWeightsRequest.ts +deleted file mode 100644 +index e4471d8..0000000 +--- a/src/api/resources/mapping/types/GetEnumWeightsRequest.ts ++++ /dev/null +@@ -1,14 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-export interface GetEnumWeightsRequest { +- /** Source field key */ +- sourceField: string; +- /** Source field values */ +- sourceValues: string[]; +- /** Destination field key */ +- destinationField: string; +- /** Destination field values */ +- destinationValues: string[]; +-} +diff --git a/src/api/resources/mapping/types/GetFieldWeightsRequest.ts b/src/api/resources/mapping/types/GetFieldWeightsRequest.ts +deleted file mode 100644 +index 2243384..0000000 +--- a/src/api/resources/mapping/types/GetFieldWeightsRequest.ts ++++ /dev/null +@@ -1,10 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-export interface GetFieldWeightsRequest { +- /** Source field keys */ +- sourceFields: string[]; +- /** Destination field keys */ +- destinationFields: string[]; +-} +diff --git a/src/api/resources/mapping/types/Program.ts b/src/api/resources/mapping/types/Program.ts +index a1cb7df..b9295b6 100644 +--- a/src/api/resources/mapping/types/Program.ts ++++ b/src/api/resources/mapping/types/Program.ts +@@ -11,2 +11,6 @@ export interface Program { + id?: string; ++ /** Namespace of the program */ ++ namespace?: string; ++ /** Family ID of the program, if it belongs to a family */ ++ familyId?: Flatfile.FamilyId; + /** If this program was saved, this is the time it was created */ +diff --git a/src/api/resources/mapping/types/ProgramConfig.ts b/src/api/resources/mapping/types/ProgramConfig.ts +index a749606..40da4eb 100644 +--- a/src/api/resources/mapping/types/ProgramConfig.ts ++++ b/src/api/resources/mapping/types/ProgramConfig.ts +@@ -11,2 +11,6 @@ export interface ProgramConfig { + destination: Flatfile.SheetConfig; ++ /** ID of the family to add the program to */ ++ familyId?: Flatfile.FamilyId; ++ /** Namespace of the program */ ++ namespace?: string; + /** Whether to save the program for editing later. Defaults to false. If true, the response will contain an ID and access token. */ +diff --git a/src/api/resources/mapping/types/SourceDestinationWeight.ts b/src/api/resources/mapping/types/SourceDestinationWeight.ts +deleted file mode 100644 +index 0da0bd1..0000000 +--- a/src/api/resources/mapping/types/SourceDestinationWeight.ts ++++ /dev/null +@@ -1,12 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-export interface SourceDestinationWeight { +- /** Source key */ +- source: string; +- /** Destination key */ +- destination: string; +- /** Weight of the pair */ +- weight: number; +-} +diff --git a/src/api/resources/mapping/types/SourceDestinationWeights.ts b/src/api/resources/mapping/types/SourceDestinationWeights.ts +deleted file mode 100644 +index 226608a..0000000 +--- a/src/api/resources/mapping/types/SourceDestinationWeights.ts ++++ /dev/null +@@ -1,9 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-export interface SourceDestinationWeights { +- weights: Flatfile.SourceDestinationWeight[]; +-} +diff --git a/src/api/resources/mapping/types/SourceDestinationWeightsResponse.ts b/src/api/resources/mapping/types/SourceDestinationWeightsResponse.ts +deleted file mode 100644 +index 597442d..0000000 +--- a/src/api/resources/mapping/types/SourceDestinationWeightsResponse.ts ++++ /dev/null +@@ -1,9 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-export interface SourceDestinationWeightsResponse { +- data: Flatfile.SourceDestinationWeights; +-} +diff --git a/src/api/resources/mapping/types/index.ts b/src/api/resources/mapping/types/index.ts +index d665108..e680b72 100644 +--- a/src/api/resources/mapping/types/index.ts ++++ b/src/api/resources/mapping/types/index.ts +@@ -5,3 +5,2 @@ export * from "./Program"; + export * from "./ProgramSummary"; +-export * from "./CreateMappingRulesRequest"; + export * from "./MappingRuleConfig"; +@@ -9,8 +8,4 @@ export * from "./MappingRule"; + export * from "./MappingRuleOrConfig"; ++export * from "./CreateMappingRulesRequest"; + export * from "./MappingRuleResponse"; + export * from "./MappingRulesResponse"; +-export * from "./GetFieldWeightsRequest"; +-export * from "./GetEnumWeightsRequest"; +-export * from "./SourceDestinationWeight"; +-export * from "./SourceDestinationWeights"; +-export * from "./SourceDestinationWeightsResponse"; +diff --git a/src/api/resources/property/types/BaseProperty.ts b/src/api/resources/property/types/BaseProperty.ts +index 86ea6a4..31e1ff8 100644 +--- a/src/api/resources/property/types/BaseProperty.ts ++++ b/src/api/resources/property/types/BaseProperty.ts +@@ -10,2 +10,3 @@ export interface BaseProperty { + label?: string; ++ /** A short description of the field. Markdown syntax is supported. */ + description?: string; +diff --git a/src/api/resources/property/types/NumberConfig.ts b/src/api/resources/property/types/NumberConfig.ts +index 9b37377..cf3543b 100644 +--- a/src/api/resources/property/types/NumberConfig.ts ++++ b/src/api/resources/property/types/NumberConfig.ts +@@ -12,3 +12,3 @@ export interface NumberConfig { + /** Number of decimal places to round data to */ +- decimalPlaces: number; ++ decimalPlaces?: number; + } +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 979768d..0d1bfc8 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -154,3 +154,3 @@ export class Records { + }, +@@ -228,2 +228,3 @@ export class Records { + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -232,2 +233,3 @@ export class Records { + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -236,2 +238,3 @@ export class Records { + * "email": { ++ * value: undefined, + * messages: [], +@@ -260,3 +263,3 @@ export class Records { + }, +@@ -330,2 +333,3 @@ export class Records { + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -334,2 +338,3 @@ export class Records { + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -338,2 +343,3 @@ export class Records { + * "email": { ++ * value: undefined, + * messages: [], +@@ -359,3 +365,3 @@ export class Records { + }, +@@ -457,3 +463,3 @@ export class Records { + }, +@@ -569,3 +575,3 @@ export class Records { + }, +diff --git a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index 5841e74..c8bc80f 100644 +--- a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -25,3 +25,3 @@ export interface FindAndReplaceRecordRequest { + ids?: Flatfile.RecordId | Flatfile.RecordId[]; +- /** A value to find for a given field in a sheet. Wrap the value in "" for exact match */ ++ /** A value to find for a given field in a sheet. For exact matches, wrap the value in double quotes ("Bob") */ + find?: Flatfile.CellValueUnion; +diff --git a/src/api/resources/records/types/DiffRecord.ts b/src/api/resources/records/types/DiffRecord.ts +index 01fc56d..cd297a6 100644 +--- a/src/api/resources/records/types/DiffRecord.ts ++++ b/src/api/resources/records/types/DiffRecord.ts +@@ -11,5 +11,14 @@ import * as Flatfile from "../../.."; + * values: { +- * "firstName": {}, +- * "lastName": {}, +- * "email": {} ++ * "firstName": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * }, ++ * "lastName": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * }, ++ * "email": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * } + * } +diff --git a/src/api/resources/records/types/DiffRecords.ts b/src/api/resources/records/types/DiffRecords.ts +index f6aea81..9d9bf91 100644 +--- a/src/api/resources/records/types/DiffRecords.ts ++++ b/src/api/resources/records/types/DiffRecords.ts +@@ -13,5 +13,14 @@ import * as Flatfile from "../../.."; + * values: { +- * "firstName": {}, +- * "lastName": {}, +- * "email": {} ++ * "firstName": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * }, ++ * "lastName": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * }, ++ * "email": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * } + * } +diff --git a/src/api/resources/records/types/DiffRecordsResponse.ts b/src/api/resources/records/types/DiffRecordsResponse.ts +index 20fd232..2f1a25d 100644 +--- a/src/api/resources/records/types/DiffRecordsResponse.ts ++++ b/src/api/resources/records/types/DiffRecordsResponse.ts +@@ -12,5 +12,14 @@ import * as Flatfile from "../../.."; + * values: { +- * "firstName": {}, +- * "lastName": {}, +- * "email": {} ++ * "firstName": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * }, ++ * "lastName": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * }, ++ * "email": { ++ * snapshotValue: undefined, ++ * value: undefined ++ * } + * } +diff --git a/src/api/resources/records/types/GetRecordsResponse.ts b/src/api/resources/records/types/GetRecordsResponse.ts +index d37fe57..160b2ba 100644 +--- a/src/api/resources/records/types/GetRecordsResponse.ts ++++ b/src/api/resources/records/types/GetRecordsResponse.ts +@@ -14,2 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -19,2 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -24,2 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/GetRecordsResponseData.ts b/src/api/resources/records/types/GetRecordsResponseData.ts +index 325c918..df58c87 100644 +--- a/src/api/resources/records/types/GetRecordsResponseData.ts ++++ b/src/api/resources/records/types/GetRecordsResponseData.ts +@@ -15,2 +15,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -20,2 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -25,2 +27,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordData.ts b/src/api/resources/records/types/RecordData.ts +index ae070fc..6860670 100644 +--- a/src/api/resources/records/types/RecordData.ts ++++ b/src/api/resources/records/types/RecordData.ts +@@ -12,2 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -16,2 +17,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -20,2 +22,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordDataWithLinks.ts b/src/api/resources/records/types/RecordDataWithLinks.ts +index f67f8dc..0005027 100644 +--- a/src/api/resources/records/types/RecordDataWithLinks.ts ++++ b/src/api/resources/records/types/RecordDataWithLinks.ts +@@ -12,2 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -17,2 +18,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -22,2 +24,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +@@ -31,2 +34,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -36,2 +40,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -41,2 +46,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordWithLinks.ts b/src/api/resources/records/types/RecordWithLinks.ts +index 198e402..267987a 100644 +--- a/src/api/resources/records/types/RecordWithLinks.ts ++++ b/src/api/resources/records/types/RecordWithLinks.ts +@@ -14,2 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -19,2 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -24,2 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +@@ -38,2 +41,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -43,2 +47,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -48,2 +53,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/Record_.ts b/src/api/resources/records/types/Record_.ts +index 8c7f5ed..bd6b1e4 100644 +--- a/src/api/resources/records/types/Record_.ts ++++ b/src/api/resources/records/types/Record_.ts +@@ -16,2 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -20,2 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -24,2 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/Records.ts b/src/api/resources/records/types/Records.ts +index aa66ee2..ac4adbd 100644 +--- a/src/api/resources/records/types/Records.ts ++++ b/src/api/resources/records/types/Records.ts +@@ -16,2 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -20,2 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -24,2 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordsResponse.ts b/src/api/resources/records/types/RecordsResponse.ts +index 34a5540..c1add59 100644 +--- a/src/api/resources/records/types/RecordsResponse.ts ++++ b/src/api/resources/records/types/RecordsResponse.ts +@@ -14,2 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -19,2 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -24,2 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordsResponseData.ts b/src/api/resources/records/types/RecordsResponseData.ts +index 5018032..ef6f3a8 100644 +--- a/src/api/resources/records/types/RecordsResponseData.ts ++++ b/src/api/resources/records/types/RecordsResponseData.ts +@@ -13,2 +13,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -18,2 +19,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -23,2 +25,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordsWithLinks.ts b/src/api/resources/records/types/RecordsWithLinks.ts +index 5ae391f..1bb3f2a 100644 +--- a/src/api/resources/records/types/RecordsWithLinks.ts ++++ b/src/api/resources/records/types/RecordsWithLinks.ts +@@ -14,2 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { ++ * value: undefined, + * messages: [], +@@ -19,2 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { ++ * value: undefined, + * messages: [], +@@ -24,2 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 8f4d8f7..868b958 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -49,3 +49,3 @@ export class Roles { + }, +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index bd4f5fc..d1d5b7e 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -60,3 +60,3 @@ export class Secrets { + }, +@@ -150,3 +150,3 @@ export class Secrets { + }, +@@ -235,3 +235,3 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index b730c32..0a9773c 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -55,3 +55,3 @@ export class Sheets { + }, +@@ -115,3 +115,3 @@ export class Sheets { + }, +@@ -173,3 +173,3 @@ export class Sheets { + }, +@@ -257,3 +257,3 @@ export class Sheets { + }, +@@ -399,3 +399,3 @@ export class Sheets { + }, +@@ -484,3 +484,3 @@ export class Sheets { + }, +@@ -544,3 +544,3 @@ export class Sheets { + }, +@@ -634,3 +634,3 @@ export class Sheets { + }, +@@ -696,3 +696,3 @@ export class Sheets { + }, +@@ -780,3 +780,3 @@ export class Sheets { + }, +@@ -921,3 +921,3 @@ export class Sheets { + }, +diff --git a/src/api/resources/sheets/types/FieldConfigResponse.ts b/src/api/resources/sheets/types/FieldConfigResponse.ts +index bbda140..a8d4d90 100644 +--- a/src/api/resources/sheets/types/FieldConfigResponse.ts ++++ b/src/api/resources/sheets/types/FieldConfigResponse.ts +@@ -8,3 +8,9 @@ import * as Flatfile from "../../.."; + * @example +- * {} ++ * { ++ * data: { ++ * type: "string", ++ * key: "firstName", ++ * label: "First Name" ++ * } ++ * } + */ +diff --git a/src/api/resources/sheets/types/RecordCountsResponse.ts b/src/api/resources/sheets/types/RecordCountsResponse.ts +index ef30ac0..34f6377 100644 +--- a/src/api/resources/sheets/types/RecordCountsResponse.ts ++++ b/src/api/resources/sheets/types/RecordCountsResponse.ts +@@ -10,2 +10,7 @@ import * as Flatfile from "../../.."; + * data: { ++ * counts: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * success: true +diff --git a/src/api/resources/sheets/types/RecordCountsResponseData.ts b/src/api/resources/sheets/types/RecordCountsResponseData.ts +index 8d1f0db..a2e9966 100644 +--- a/src/api/resources/sheets/types/RecordCountsResponseData.ts ++++ b/src/api/resources/sheets/types/RecordCountsResponseData.ts +@@ -9,2 +9,7 @@ import * as Flatfile from "../../.."; + * { ++ * counts: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * success: true +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index c5d11c9..20b3847 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -54,3 +54,3 @@ export class Snapshots { + }, +@@ -144,3 +144,3 @@ export class Snapshots { + }, +@@ -235,3 +235,3 @@ export class Snapshots { + }, +@@ -320,3 +320,3 @@ export class Snapshots { + }, +@@ -409,3 +409,3 @@ export class Snapshots { + }, +@@ -518,3 +518,3 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 6cfff4d..9e373e1 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -100,3 +100,3 @@ export class Spaces { + }, +@@ -180,3 +180,3 @@ export class Spaces { + }, +@@ -265,3 +265,3 @@ export class Spaces { + }, +@@ -346,3 +346,3 @@ export class Spaces { + }, +@@ -440,3 +440,3 @@ export class Spaces { + }, +@@ -528,3 +528,3 @@ export class Spaces { + }, +@@ -613,3 +613,3 @@ export class Spaces { + }, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 68695e1..181115b 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -57,3 +57,3 @@ export class Users { + }, +@@ -114,3 +114,3 @@ export class Users { + }, +@@ -182,3 +182,3 @@ export class Users { + }, +@@ -243,3 +243,3 @@ export class Users { + }, +@@ -300,3 +300,3 @@ export class Users { + }, +diff --git a/src/api/resources/users/types/ListUsersResponse.ts b/src/api/resources/users/types/ListUsersResponse.ts +index 8a30716..51ec119 100644 +--- a/src/api/resources/users/types/ListUsersResponse.ts ++++ b/src/api/resources/users/types/ListUsersResponse.ts +@@ -15,2 +15,5 @@ import * as Flatfile from "../../.."; + * idp: "FRONTEGG", ++ * idpRef: "ab1cf38e-e617-4547-b37d-376a7ac9e554", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), + * updatedAt: new Date("2023-10-30T16:59:45.735Z") +diff --git a/src/api/resources/users/types/User.ts b/src/api/resources/users/types/User.ts +index 266782f..996f272 100644 +--- a/src/api/resources/users/types/User.ts ++++ b/src/api/resources/users/types/User.ts +@@ -16,2 +16,5 @@ import * as Flatfile from "../../.."; + * idp: "FRONTEGG", ++ * idpRef: "ab1cf38e-e617-4547-b37d-376a7ac9e554", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), + * updatedAt: new Date("2023-10-30T16:59:45.735Z") +@@ -23,2 +26,4 @@ export interface User extends Flatfile.UserConfig { + idpRef?: string; ++ metadata: Record; ++ createdAt: Date; + updatedAt: Date; +diff --git a/src/api/resources/users/types/UserResponse.ts b/src/api/resources/users/types/UserResponse.ts +index 234b751..7045914 100644 +--- a/src/api/resources/users/types/UserResponse.ts ++++ b/src/api/resources/users/types/UserResponse.ts +@@ -15,2 +15,5 @@ import * as Flatfile from "../../.."; + * idp: "FRONTEGG", ++ * idpRef: "ab1cf38e-e617-4547-b37d-376a7ac9e554", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), + * updatedAt: new Date("2023-10-30T16:59:45.735Z") +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index c5cea24..f5429fe 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -43,3 +43,3 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 75ee388..e6e0abc 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -63,3 +63,3 @@ export class Workbooks { + }, +@@ -168,3 +168,3 @@ export class Workbooks { + }, +@@ -243,3 +243,3 @@ export class Workbooks { + }, +@@ -327,3 +327,3 @@ export class Workbooks { + }, +@@ -422,3 +422,3 @@ export class Workbooks { + }, +@@ -512,3 +512,3 @@ export class Workbooks { + }, +@@ -571,3 +571,3 @@ export class Workbooks { + }, +diff --git a/src/serialization/resources/commons/types/FamilyId.ts b/src/serialization/resources/commons/types/FamilyId.ts +new file mode 100644 +index 0000000..5c1913b +--- /dev/null ++++ b/src/serialization/resources/commons/types/FamilyId.ts +@@ -0,0 +1,14 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const FamilyId: core.serialization.Schema = ++ core.serialization.string(); ++ ++export declare namespace FamilyId { ++ type Raw = string; ++} +diff --git a/src/serialization/resources/commons/types/InputField.ts b/src/serialization/resources/commons/types/InputField.ts +index e78efff..94b29bc 100644 +--- a/src/serialization/resources/commons/types/InputField.ts ++++ b/src/serialization/resources/commons/types/InputField.ts +@@ -14,2 +14,3 @@ export const InputField: core.serialization.ObjectSchema (await import("../../..")).InputConfig).optional(), +@@ -26,2 +27,3 @@ export declare namespace InputField { + type: string; ++ defaultValue?: any | null; + config?: serializers.InputConfig.Raw | null; +diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts +index 66f5304..dd3cab8 100644 +--- a/src/serialization/resources/commons/types/index.ts ++++ b/src/serialization/resources/commons/types/index.ts +@@ -22,2 +22,3 @@ export * from "./MappingId"; + export * from "./ProgramId"; ++export * from "./FamilyId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/serialization/resources/events/types/Domain.ts b/src/serialization/resources/events/types/Domain.ts +index 1512c8b..e35b638 100644 +--- a/src/serialization/resources/events/types/Domain.ts ++++ b/src/serialization/resources/events/types/Domain.ts +@@ -16,2 +16,3 @@ export const Domain: core.serialization.Schema (await import("../../..")).GenericEvent), ++ "space:archived": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), + "space:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:guestAdded": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:guestRemoved": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), + "document:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +@@ -49,2 +52,5 @@ export const Event: core.serialization.Schema (await import("../../..")).GenericEvent), ++ "secret:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "secret:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "secret:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), + "layer:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +@@ -64,3 +70,6 @@ export declare namespace Event { + | Event.SpaceDeleted ++ | Event.SpaceArchived + | Event.SpaceExpired ++ | Event.SpaceGuestAdded ++ | Event.SpaceGuestRemoved + | Event.DocumentCreated +@@ -97,2 +106,5 @@ export declare namespace Event { + | Event.CommitCompleted ++ | Event.SecretCreated ++ | Event.SecretUpdated ++ | Event.SecretDeleted + | Event.LayerCreated; +@@ -123,2 +135,6 @@ export declare namespace Event { + ++ interface SpaceArchived extends serializers.GenericEvent.Raw { ++ topic: "space:archived"; ++ } ++ + interface SpaceExpired extends serializers.GenericEvent.Raw { +@@ -127,2 +143,10 @@ export declare namespace Event { + ++ interface SpaceGuestAdded extends serializers.GenericEvent.Raw { ++ topic: "space:guestAdded"; ++ } ++ ++ interface SpaceGuestRemoved extends serializers.GenericEvent.Raw { ++ topic: "space:guestRemoved"; ++ } ++ + interface DocumentCreated extends serializers.GenericEvent.Raw { +@@ -255,2 +279,14 @@ export declare namespace Event { + ++ interface SecretCreated extends serializers.GenericEvent.Raw { ++ topic: "secret:created"; ++ } ++ ++ interface SecretUpdated extends serializers.GenericEvent.Raw { ++ topic: "secret:updated"; ++ } ++ ++ interface SecretDeleted extends serializers.GenericEvent.Raw { ++ topic: "secret:deleted"; ++ } ++ + interface LayerCreated extends serializers.GenericEvent.Raw { +diff --git a/src/serialization/resources/events/types/EventTopic.ts b/src/serialization/resources/events/types/EventTopic.ts +index e2a8780..8302ee9 100644 +--- a/src/serialization/resources/events/types/EventTopic.ts ++++ b/src/serialization/resources/events/types/EventTopic.ts +@@ -16,3 +16,6 @@ export const EventTopic: core.serialization.Schema = core.serialization.object({ +- sourceField: core.serialization.string(), +- sourceValues: core.serialization.list(core.serialization.string()), +- destinationField: core.serialization.string(), +- destinationValues: core.serialization.list(core.serialization.string()), +-}); +- +-export declare namespace GetEnumWeightsRequest { +- interface Raw { +- sourceField: string; +- sourceValues: string[]; +- destinationField: string; +- destinationValues: string[]; +- } +-} +diff --git a/src/serialization/resources/mapping/types/GetFieldWeightsRequest.ts b/src/serialization/resources/mapping/types/GetFieldWeightsRequest.ts +deleted file mode 100644 +index 8b1c7d5..0000000 +--- a/src/serialization/resources/mapping/types/GetFieldWeightsRequest.ts ++++ /dev/null +@@ -1,22 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const GetFieldWeightsRequest: core.serialization.ObjectSchema< +- serializers.GetFieldWeightsRequest.Raw, +- Flatfile.GetFieldWeightsRequest +-> = core.serialization.object({ +- sourceFields: core.serialization.list(core.serialization.string()), +- destinationFields: core.serialization.list(core.serialization.string()), +-}); +- +-export declare namespace GetFieldWeightsRequest { +- interface Raw { +- sourceFields: string[]; +- destinationFields: string[]; +- } +-} +diff --git a/src/serialization/resources/mapping/types/Program.ts b/src/serialization/resources/mapping/types/Program.ts +index bb4202a..2355da9 100644 +--- a/src/serialization/resources/mapping/types/Program.ts ++++ b/src/serialization/resources/mapping/types/Program.ts +@@ -14,2 +14,4 @@ export const Program: core.serialization.ObjectSchema (await import("../../..")).FamilyId).optional(), + createdAt: core.serialization.date().optional(), +@@ -26,2 +28,4 @@ export declare namespace Program { + id?: string | null; ++ namespace?: string | null; ++ familyId?: serializers.FamilyId.Raw | null; + createdAt?: string | null; +diff --git a/src/serialization/resources/mapping/types/ProgramConfig.ts b/src/serialization/resources/mapping/types/ProgramConfig.ts +index a0269a2..5526272 100644 +--- a/src/serialization/resources/mapping/types/ProgramConfig.ts ++++ b/src/serialization/resources/mapping/types/ProgramConfig.ts +@@ -12,2 +12,4 @@ export const ProgramConfig: core.serialization.ObjectSchema (await import("../../..")).SheetConfig), ++ familyId: core.serialization.lazy(async () => (await import("../../..")).FamilyId).optional(), ++ namespace: core.serialization.string().optional(), + save: core.serialization.boolean().optional(), +@@ -19,2 +21,4 @@ export declare namespace ProgramConfig { + destination: serializers.SheetConfig.Raw; ++ familyId?: serializers.FamilyId.Raw | null; ++ namespace?: string | null; + save?: boolean | null; +diff --git a/src/serialization/resources/mapping/types/SourceDestinationWeight.ts b/src/serialization/resources/mapping/types/SourceDestinationWeight.ts +deleted file mode 100644 +index 5a7bb4e..0000000 +--- a/src/serialization/resources/mapping/types/SourceDestinationWeight.ts ++++ /dev/null +@@ -1,24 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const SourceDestinationWeight: core.serialization.ObjectSchema< +- serializers.SourceDestinationWeight.Raw, +- Flatfile.SourceDestinationWeight +-> = core.serialization.object({ +- source: core.serialization.string(), +- destination: core.serialization.string(), +- weight: core.serialization.number(), +-}); +- +-export declare namespace SourceDestinationWeight { +- interface Raw { +- source: string; +- destination: string; +- weight: number; +- } +-} +diff --git a/src/serialization/resources/mapping/types/SourceDestinationWeights.ts b/src/serialization/resources/mapping/types/SourceDestinationWeights.ts +deleted file mode 100644 +index 443eaaf..0000000 +--- a/src/serialization/resources/mapping/types/SourceDestinationWeights.ts ++++ /dev/null +@@ -1,22 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const SourceDestinationWeights: core.serialization.ObjectSchema< +- serializers.SourceDestinationWeights.Raw, +- Flatfile.SourceDestinationWeights +-> = core.serialization.object({ +- weights: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).SourceDestinationWeight) +- ), +-}); +- +-export declare namespace SourceDestinationWeights { +- interface Raw { +- weights: serializers.SourceDestinationWeight.Raw[]; +- } +-} +diff --git a/src/serialization/resources/mapping/types/SourceDestinationWeightsResponse.ts b/src/serialization/resources/mapping/types/SourceDestinationWeightsResponse.ts +deleted file mode 100644 +index 4e36fc2..0000000 +--- a/src/serialization/resources/mapping/types/SourceDestinationWeightsResponse.ts ++++ /dev/null +@@ -1,20 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const SourceDestinationWeightsResponse: core.serialization.ObjectSchema< +- serializers.SourceDestinationWeightsResponse.Raw, +- Flatfile.SourceDestinationWeightsResponse +-> = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).SourceDestinationWeights), +-}); +- +-export declare namespace SourceDestinationWeightsResponse { +- interface Raw { +- data: serializers.SourceDestinationWeights.Raw; +- } +-} +diff --git a/src/serialization/resources/mapping/types/index.ts b/src/serialization/resources/mapping/types/index.ts +index d665108..e680b72 100644 +--- a/src/serialization/resources/mapping/types/index.ts ++++ b/src/serialization/resources/mapping/types/index.ts +@@ -5,3 +5,2 @@ export * from "./Program"; + export * from "./ProgramSummary"; +-export * from "./CreateMappingRulesRequest"; + export * from "./MappingRuleConfig"; +@@ -9,8 +8,4 @@ export * from "./MappingRule"; + export * from "./MappingRuleOrConfig"; ++export * from "./CreateMappingRulesRequest"; + export * from "./MappingRuleResponse"; + export * from "./MappingRulesResponse"; +-export * from "./GetFieldWeightsRequest"; +-export * from "./GetEnumWeightsRequest"; +-export * from "./SourceDestinationWeight"; +-export * from "./SourceDestinationWeights"; +-export * from "./SourceDestinationWeightsResponse"; +diff --git a/src/serialization/resources/property/types/NumberConfig.ts b/src/serialization/resources/property/types/NumberConfig.ts +index 99f0b9c..829d94e 100644 +--- a/src/serialization/resources/property/types/NumberConfig.ts ++++ b/src/serialization/resources/property/types/NumberConfig.ts +@@ -10,3 +10,3 @@ export const NumberConfig: core.serialization.ObjectSchema; ++ createdAt: string; + updatedAt: string; +diff --git a/src/wrapper/FlatfileClient.ts b/src/wrapper/FlatfileClient.ts +index f106da0..b6681bb 100644 +--- a/src/wrapper/FlatfileClient.ts ++++ b/src/wrapper/FlatfileClient.ts +@@ -27,3 +27,3 @@ export class FlatfileClient extends FernClient { + environment: (options.environment || options.apiUrl) ?? environmentSupplier, +- token: options.token ?? tokenSupplier ++ token: options.token ?? tokenSupplier, + }); diff --git a/release-notes/1.6.3.diff.txt.result.md b/release-notes/1.6.3.diff.txt.result.md new file mode 100644 index 00000000..bf1c0c58 --- /dev/null +++ b/release-notes/1.6.3.diff.txt.result.md @@ -0,0 +1,53 @@ +#### API Changes + +##### `InputField` + +- Added an optional `defaultValue` property to the `InputField` type, which represents the default value for a field. + +##### `SearchValue` + +- Updated the description of the `SearchValue` type to clarify how to search for exact matches and null values. + +##### `FamilyId` + +- Added a new `FamilyId` type, which represents a Mapping Family ID. + +##### `Program` + +- Added an optional `namespace` property to the `Program` type, which represents the namespace of the program. +- Added an optional `familyId` property to the `Program` type, which represents the Family ID of the program if it belongs to a family. + +##### `ProgramConfig` + +- Added an optional `familyId` property to the `ProgramConfig` type, which represents the ID of the family to add the program to. +- Added an optional `namespace` property to the `ProgramConfig` type, which represents the namespace of the program. + +##### `BaseProperty` + +- Added an optional `description` property to the `BaseProperty` type, which represents a short description of the field with support for Markdown syntax. + +##### `NumberConfig` + +- Made the `decimalPlaces` property of the `NumberConfig` type optional. + +##### `User` + +- Added `idpRef`, `metadata`, and `createdAt` properties to the `User` type. + +##### Mapping Resource + +- Renamed the `createMapping` method to `createMappingProgram`. +- Added a `getMappingProgram` method to retrieve a mapping program. +- Added an `updateMappingProgram` method to update a mapping program. +- Added a `deleteMappingProgram` method to delete a mapping program. +- Removed the `GetFieldWeightsRequest`, `GetEnumWeightsRequest`, `SourceDestinationWeight`, `SourceDestinationWeights`, and `SourceDestinationWeightsResponse` types. + +##### Events Resource + +- Added new event types: `SpaceArchived`, `SpaceGuestAdded`, `SpaceGuestRemoved`, `SecretCreated`, `SecretUpdated`, and `SecretDeleted`. + +##### Records Resource + +- Updated examples in various record types to include an optional `value` property. + +There were no external interface changes related to the following resources: Accounts, Agents, Apps, Assistant, Auth, Cells, Commits, DataRetentionPolicies, Entitlements, Environments, Files, Foreigndb, Guests, Jobs, Mapping, Roles, Secrets, Sheets, Snapshots, Spaces, Users, Versions, Views, and Workbooks. diff --git a/release-notes/1.6.4.diff.txt b/release-notes/1.6.4.diff.txt new file mode 100644 index 00000000..6141bc0a --- /dev/null +++ b/release-notes/1.6.4.diff.txt @@ -0,0 +1,666 @@ +diff --git a/.fernignore b/.fernignore +index 589017b..7e7bea6 100644 +--- a/.fernignore ++++ b/.fernignore +@@ -8 +8,2 @@ src/index.ts + ++.github/workflows/ci.yml +diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml +index e2b82d1..6d8bed9 100644 +--- a/.github/workflows/ci.yml ++++ b/.github/workflows/ci.yml +@@ -39,4 +39,9 @@ jobs: + npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} +- npm publish --access public ++ VERSION=$(cat package.json | jq -r '.version') ++ if [[ $VERSION == *"rc"* ]]; then ++ npm publish --access public --tag rc ++ else ++ npm publish --access public ++ fi + env: +- NPM_TOKEN: ${{ secrets.NPM_TOKEN }} +\ No newline at end of file ++ NPM_TOKEN: ${{ secrets.NPM_TOKEN }} +diff --git a/README.md b/README.md +index d74f93e..475f3f5 100644 +--- a/README.md ++++ b/README.md +@@ -9,3 +9,3 @@ The Flatfile Node.js library provides convenient access to the Flatfile API from + +-API reference documentation is available [here](https://flatfile.stoplight.io/docs/api). ++API reference documentation is available [here](https://reference.flatfile.com). + +diff --git a/package.json b/package.json +index 6a1e2d6..90192f9 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.6.3", ++ "version": "1.6.4", + "private": false, +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 65635e2..82f9028 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -46,3 +46,3 @@ export class Agents { + }, +@@ -126,3 +126,3 @@ export class Agents { + }, +@@ -207,3 +207,3 @@ export class Agents { + }, +@@ -297,3 +297,3 @@ export class Agents { + }, +@@ -387,3 +387,3 @@ export class Agents { + }, +@@ -496,3 +496,3 @@ export class Agents { + }, +@@ -605,3 +605,3 @@ export class Agents { + }, +@@ -696,3 +696,3 @@ export class Agents { + }, +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 8d65d9d..047964b 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -43,3 +43,3 @@ export class Apps { + }, +@@ -99,3 +99,3 @@ export class Apps { + }, +@@ -168,3 +168,3 @@ export class Apps { + }, +@@ -238,3 +238,3 @@ export class Apps { + }, +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 891b70a..b6c7d28 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -55,3 +55,3 @@ export class Auth { + }, +@@ -144,3 +144,3 @@ export class Auth { + }, +@@ -235,3 +235,3 @@ export class Auth { + }, +@@ -326,3 +326,3 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 0932ea5..146afff 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -108,3 +108,3 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index f2fecd5..c807ca7 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -51,3 +51,3 @@ export class Commits { + }, +@@ -132,3 +132,3 @@ export class Commits { + }, +@@ -213,3 +213,3 @@ export class Commits { + }, +diff --git a/src/api/resources/commons/types/Action.ts b/src/api/resources/commons/types/Action.ts +index d1e690b..d3c651d 100644 +--- a/src/api/resources/commons/types/Action.ts ++++ b/src/api/resources/commons/types/Action.ts +@@ -39,2 +39,3 @@ export interface Action { + tooltip?: string; ++ messages?: Flatfile.ActionMessage[]; + /** +diff --git a/src/api/resources/commons/types/ActionConstraintType.ts b/src/api/resources/commons/types/ActionConstraintType.ts +index 69dc6c6..d5ff5aa 100644 +--- a/src/api/resources/commons/types/ActionConstraintType.ts ++++ b/src/api/resources/commons/types/ActionConstraintType.ts +@@ -4,3 +4,3 @@ + +-export type ActionConstraintType = "hasAllValid" | "hasSelection"; ++export type ActionConstraintType = "hasAllValid" | "hasSelection" | "hasData"; + +@@ -9,2 +9,3 @@ export const ActionConstraintType = { + HasSelection: "hasSelection", ++ HasData: "hasData", + } as const; +diff --git a/src/api/resources/commons/types/ActionMessage.ts b/src/api/resources/commons/types/ActionMessage.ts +new file mode 100644 +index 0000000..2786956 +--- /dev/null ++++ b/src/api/resources/commons/types/ActionMessage.ts +@@ -0,0 +1,10 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface ActionMessage { ++ type: Flatfile.ActionMessageType; ++ content: string; ++} +diff --git a/src/api/resources/commons/types/ActionMessageType.ts b/src/api/resources/commons/types/ActionMessageType.ts +new file mode 100644 +index 0000000..9af6b66 +--- /dev/null ++++ b/src/api/resources/commons/types/ActionMessageType.ts +@@ -0,0 +1,12 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++export type ActionMessageType = "success" | "error" | "warning" | "info"; ++ ++export const ActionMessageType = { ++ Success: "success", ++ Error: "error", ++ Warning: "warning", ++ Info: "info", ++} as const; +diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts +index dd3cab8..53f1ff7 100644 +--- a/src/api/resources/commons/types/index.ts ++++ b/src/api/resources/commons/types/index.ts +@@ -39,2 +39,4 @@ export * from "./InputEnumPropertyOption"; + export * from "./ActionMode"; ++export * from "./ActionMessageType"; ++export * from "./ActionMessage"; + export * from "./ActionSchedule"; +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 0a06eba..71644a6 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -59,3 +59,3 @@ export class DataRetentionPolicies { + }, +@@ -148,3 +148,3 @@ export class DataRetentionPolicies { + }, +@@ -233,3 +233,3 @@ export class DataRetentionPolicies { + }, +@@ -322,3 +322,3 @@ export class DataRetentionPolicies { + }, +@@ -404,3 +404,3 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index be2b4af..6db141e 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -51,3 +51,3 @@ export class Documents { + }, +@@ -146,3 +146,3 @@ export class Documents { + }, +@@ -234,3 +234,3 @@ export class Documents { + }, +@@ -325,3 +325,3 @@ export class Documents { + }, +@@ -410,3 +410,3 @@ export class Documents { + }, +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index a0cffe3..0da9022 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -59,3 +59,3 @@ export class Environments { + }, +@@ -127,3 +127,3 @@ export class Environments { + }, +@@ -194,3 +194,3 @@ export class Environments { + }, +@@ -279,3 +279,3 @@ export class Environments { + }, +@@ -370,3 +370,3 @@ export class Environments { + }, +@@ -429,3 +429,3 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 1f6a8fe..57e5cd0 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -83,3 +83,3 @@ export class Events { + }, +@@ -157,3 +157,3 @@ export class Events { + }, +@@ -234,3 +234,3 @@ export class Events { + }, +@@ -284,3 +284,3 @@ export class Events { + }, +@@ -355,3 +355,3 @@ export class Events { + }, +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index b733f6a..3aa8787 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -64,3 +64,3 @@ export class Files { + }, +@@ -136,3 +136,3 @@ export class Files { + "Content-Length": (await core.getFormDataContentLength(_request)).toString(), +@@ -208,3 +208,3 @@ export class Files { + }, +@@ -285,3 +285,3 @@ export class Files { + }, +@@ -372,3 +372,3 @@ export class Files { + }, +@@ -446,3 +446,3 @@ export class Files { + }, +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 3a1ef4e..0ef6980 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -58,3 +58,3 @@ export class Guests { + }, +@@ -129,3 +129,3 @@ export class Guests { + }, +@@ -189,3 +189,3 @@ export class Guests { + }, +@@ -245,3 +245,3 @@ export class Guests { + }, +@@ -308,3 +308,3 @@ export class Guests { + }, +@@ -375,3 +375,3 @@ export class Guests { + }, +@@ -437,3 +437,3 @@ export class Guests { + }, +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 9aeeb14..0dff983 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -77,3 +77,3 @@ export class Jobs { + }, +@@ -131,3 +131,3 @@ export class Jobs { + }, +@@ -182,3 +182,3 @@ export class Jobs { + }, +@@ -236,3 +236,3 @@ export class Jobs { + }, +@@ -287,3 +287,3 @@ export class Jobs { + }, +@@ -343,3 +343,3 @@ export class Jobs { + }, +@@ -402,3 +402,3 @@ export class Jobs { + }, +@@ -499,3 +499,3 @@ export class Jobs { + }, +@@ -557,3 +557,3 @@ export class Jobs { + }, +@@ -624,3 +624,3 @@ export class Jobs { + }, +@@ -687,3 +687,3 @@ export class Jobs { + }, +@@ -759,3 +759,3 @@ export class Jobs { + }, +@@ -835,3 +835,3 @@ export class Jobs { + }, +@@ -901,3 +901,3 @@ export class Jobs { + }, +@@ -958,3 +958,3 @@ export class Jobs { + }, +@@ -1014,3 +1014,3 @@ export class Jobs { + }, +@@ -1077,3 +1077,3 @@ export class Jobs { + }, +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index b208b2f..ea8ab8d 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -48,3 +48,3 @@ export class Mapping { + }, +@@ -125,2 +125,3 @@ export class Mapping { + environmentId, ++ familyId, + namespace, +@@ -154,2 +155,6 @@ export class Mapping { + ++ if (familyId != null) { ++ _queryParams["familyId"] = familyId; ++ } ++ + if (namespace != null) { +@@ -177,3 +182,3 @@ export class Mapping { + }, +@@ -249,3 +254,3 @@ export class Mapping { + }, +@@ -331,3 +336,3 @@ export class Mapping { + }, +@@ -413,3 +418,3 @@ export class Mapping { + }, +@@ -495,3 +500,3 @@ export class Mapping { + }, +@@ -580,3 +585,3 @@ export class Mapping { + }, +@@ -667,3 +672,3 @@ export class Mapping { + }, +@@ -759,3 +764,3 @@ export class Mapping { + }, +@@ -847,3 +852,3 @@ export class Mapping { + }, +diff --git a/src/api/resources/mapping/client/requests/ListProgramsRequest.ts b/src/api/resources/mapping/client/requests/ListProgramsRequest.ts +index 215c8d0..4e7c7a9 100644 +--- a/src/api/resources/mapping/client/requests/ListProgramsRequest.ts ++++ b/src/api/resources/mapping/client/requests/ListProgramsRequest.ts +@@ -31,2 +31,6 @@ export interface ListProgramsRequest { + environmentId?: Flatfile.EnvironmentId; ++ /** ++ * Filter by family ++ */ ++ familyId?: Flatfile.FamilyId; + /** +diff --git a/src/api/resources/mapping/types/MappingRuleConfig.ts b/src/api/resources/mapping/types/MappingRuleConfig.ts +index 63346f8..8b23690 100644 +--- a/src/api/resources/mapping/types/MappingRuleConfig.ts ++++ b/src/api/resources/mapping/types/MappingRuleConfig.ts +@@ -4,2 +4,4 @@ + ++import * as Flatfile from "../../.."; ++ + /** +@@ -19,2 +21,4 @@ export interface MappingRuleConfig { + confidence?: number; ++ /** User ID of the contributor of the mapping rule */ ++ contributor?: Flatfile.UserId; + } +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 0d1bfc8..241a408 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -154,3 +154,3 @@ export class Records { + }, +@@ -263,3 +263,3 @@ export class Records { + }, +@@ -365,3 +365,3 @@ export class Records { + }, +@@ -463,3 +463,3 @@ export class Records { + }, +@@ -575,3 +575,3 @@ export class Records { + }, +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 868b958..7b65cd1 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -49,3 +49,3 @@ export class Roles { + }, +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index d1d5b7e..f1bddf1 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -60,3 +60,3 @@ export class Secrets { + }, +@@ -150,3 +150,3 @@ export class Secrets { + }, +@@ -235,3 +235,3 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 0a9773c..4b87592 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -55,3 +55,3 @@ export class Sheets { + }, +@@ -115,3 +115,3 @@ export class Sheets { + }, +@@ -173,3 +173,3 @@ export class Sheets { + }, +@@ -257,3 +257,3 @@ export class Sheets { + }, +@@ -399,3 +399,3 @@ export class Sheets { + }, +@@ -484,3 +484,3 @@ export class Sheets { + }, +@@ -544,3 +544,3 @@ export class Sheets { + }, +@@ -634,3 +634,3 @@ export class Sheets { + }, +@@ -696,3 +696,3 @@ export class Sheets { + }, +@@ -780,3 +780,3 @@ export class Sheets { + }, +@@ -921,3 +921,3 @@ export class Sheets { + }, +diff --git a/src/api/resources/sheets/types/ListSheetsResponse.ts b/src/api/resources/sheets/types/ListSheetsResponse.ts +index b5ed643..47b24a6 100644 +--- a/src/api/resources/sheets/types/ListSheetsResponse.ts ++++ b/src/api/resources/sheets/types/ListSheetsResponse.ts +@@ -13,2 +13,3 @@ import * as Flatfile from "../../.."; + * name: "Contacts", ++ * slug: "contacts", + * config: { +diff --git a/src/api/resources/sheets/types/Sheet.ts b/src/api/resources/sheets/types/Sheet.ts +index 01ea844..2b97e88 100644 +--- a/src/api/resources/sheets/types/Sheet.ts ++++ b/src/api/resources/sheets/types/Sheet.ts +@@ -14,2 +14,3 @@ import * as Flatfile from "../../.."; + * name: "Contacts", ++ * slug: "contacts", + * config: { +@@ -49,2 +50,4 @@ export interface Sheet { + name: string; ++ /** The slug of the Sheet. */ ++ slug: string; + /** Describes shape of data as well as behavior */ +diff --git a/src/api/resources/sheets/types/SheetConfig.ts b/src/api/resources/sheets/types/SheetConfig.ts +index 05bec40..6687358 100644 +--- a/src/api/resources/sheets/types/SheetConfig.ts ++++ b/src/api/resources/sheets/types/SheetConfig.ts +@@ -48,2 +48,4 @@ export interface SheetConfig { + actions?: Flatfile.Action[]; ++ /** Useful for any contextual metadata regarding the schema. Store any valid json */ ++ metadata?: any; + /** An array of constraints that end users can perform on this Sheet. */ +diff --git a/src/api/resources/sheets/types/SheetResponse.ts b/src/api/resources/sheets/types/SheetResponse.ts +index c665e2a..037d224 100644 +--- a/src/api/resources/sheets/types/SheetResponse.ts ++++ b/src/api/resources/sheets/types/SheetResponse.ts +@@ -13,2 +13,3 @@ import * as Flatfile from "../../.."; + * name: "Contacts", ++ * slug: "contacts", + * config: { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 20b3847..4860bfe 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -54,3 +54,3 @@ export class Snapshots { + }, +@@ -144,3 +144,3 @@ export class Snapshots { + }, +@@ -235,3 +235,3 @@ export class Snapshots { + }, +@@ -320,3 +320,3 @@ export class Snapshots { + }, +@@ -409,3 +409,3 @@ export class Snapshots { + }, +@@ -518,3 +518,3 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 9e373e1..a8554de 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -100,3 +100,3 @@ export class Spaces { + }, +@@ -180,3 +180,3 @@ export class Spaces { + }, +@@ -265,3 +265,3 @@ export class Spaces { + }, +@@ -346,3 +346,3 @@ export class Spaces { + }, +@@ -440,3 +440,3 @@ export class Spaces { + }, +@@ -528,3 +528,3 @@ export class Spaces { + }, +@@ -613,3 +613,3 @@ export class Spaces { + }, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 181115b..9b1226d 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -57,3 +57,3 @@ export class Users { + }, +@@ -114,3 +114,3 @@ export class Users { + }, +@@ -182,3 +182,3 @@ export class Users { + }, +@@ -243,3 +243,3 @@ export class Users { + }, +@@ -300,3 +300,3 @@ export class Users { + }, +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index f5429fe..55dde14 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -43,3 +43,3 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index e6e0abc..125c639 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -63,3 +63,3 @@ export class Workbooks { + }, +@@ -168,3 +168,3 @@ export class Workbooks { + }, +@@ -243,3 +243,3 @@ export class Workbooks { + }, +@@ -327,3 +327,3 @@ export class Workbooks { + }, +@@ -422,3 +422,3 @@ export class Workbooks { + }, +@@ -512,3 +512,3 @@ export class Workbooks { + }, +@@ -571,3 +571,3 @@ export class Workbooks { + }, +diff --git a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +index e410d5a..34f96aa 100644 +--- a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts ++++ b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +@@ -18,2 +18,3 @@ import * as Flatfile from "../../.."; + * name: "Contacts", ++ * slug: "contacts", + * config: { +diff --git a/src/api/resources/workbooks/types/Workbook.ts b/src/api/resources/workbooks/types/Workbook.ts +index 396277d..dea2d71 100644 +--- a/src/api/resources/workbooks/types/Workbook.ts ++++ b/src/api/resources/workbooks/types/Workbook.ts +@@ -19,2 +19,3 @@ import * as Flatfile from "../../.."; + * name: "Contacts", ++ * slug: "contacts", + * config: { +diff --git a/src/api/resources/workbooks/types/WorkbookResponse.ts b/src/api/resources/workbooks/types/WorkbookResponse.ts +index d457ddf..11e3afa 100644 +--- a/src/api/resources/workbooks/types/WorkbookResponse.ts ++++ b/src/api/resources/workbooks/types/WorkbookResponse.ts +@@ -18,2 +18,3 @@ import * as Flatfile from "../../.."; + * name: "Contacts", ++ * slug: "contacts", + * config: { +diff --git a/src/serialization/resources/commons/types/Action.ts b/src/serialization/resources/commons/types/Action.ts +index bb55f0e..3f40e77 100644 +--- a/src/serialization/resources/commons/types/Action.ts ++++ b/src/serialization/resources/commons/types/Action.ts +@@ -15,2 +15,5 @@ export const Action: core.serialization.ObjectSchema (await import("../../..")).ActionMessage)) ++ .optional(), + type: core.serialization.string().optional(), +@@ -36,2 +39,3 @@ export declare namespace Action { + tooltip?: string | null; ++ messages?: serializers.ActionMessage.Raw[] | null; + type?: string | null; +diff --git a/src/serialization/resources/commons/types/ActionConstraintType.ts b/src/serialization/resources/commons/types/ActionConstraintType.ts +index cd75ace..f0a7dbd 100644 +--- a/src/serialization/resources/commons/types/ActionConstraintType.ts ++++ b/src/serialization/resources/commons/types/ActionConstraintType.ts +@@ -11,6 +11,6 @@ export const ActionConstraintType: core.serialization.Schema< + Flatfile.ActionConstraintType +-> = core.serialization.enum_(["hasAllValid", "hasSelection"]); ++> = core.serialization.enum_(["hasAllValid", "hasSelection", "hasData"]); + + export declare namespace ActionConstraintType { +- type Raw = "hasAllValid" | "hasSelection"; ++ type Raw = "hasAllValid" | "hasSelection" | "hasData"; + } +diff --git a/src/serialization/resources/commons/types/ActionMessage.ts b/src/serialization/resources/commons/types/ActionMessage.ts +new file mode 100644 +index 0000000..6fe3da8 +--- /dev/null ++++ b/src/serialization/resources/commons/types/ActionMessage.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ActionMessage: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ type: core.serialization.lazy(async () => (await import("../../..")).ActionMessageType), ++ content: core.serialization.string(), ++ }); ++ ++export declare namespace ActionMessage { ++ interface Raw { ++ type: serializers.ActionMessageType.Raw; ++ content: string; ++ } ++} +diff --git a/src/serialization/resources/commons/types/ActionMessageType.ts b/src/serialization/resources/commons/types/ActionMessageType.ts +new file mode 100644 +index 0000000..6cb1238 +--- /dev/null ++++ b/src/serialization/resources/commons/types/ActionMessageType.ts +@@ -0,0 +1,16 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ActionMessageType: core.serialization.Schema< ++ serializers.ActionMessageType.Raw, ++ Flatfile.ActionMessageType ++> = core.serialization.enum_(["success", "error", "warning", "info"]); ++ ++export declare namespace ActionMessageType { ++ type Raw = "success" | "error" | "warning" | "info"; ++} +diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts +index dd3cab8..53f1ff7 100644 +--- a/src/serialization/resources/commons/types/index.ts ++++ b/src/serialization/resources/commons/types/index.ts +@@ -39,2 +39,4 @@ export * from "./InputEnumPropertyOption"; + export * from "./ActionMode"; ++export * from "./ActionMessageType"; ++export * from "./ActionMessage"; + export * from "./ActionSchedule"; +diff --git a/src/serialization/resources/mapping/types/MappingRuleConfig.ts b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +index 13f54ae..278bb13 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +@@ -16,2 +16,3 @@ export const MappingRuleConfig: core.serialization.ObjectSchema< + confidence: core.serialization.number().optional(), ++ contributor: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), + }); +@@ -24,2 +25,3 @@ export declare namespace MappingRuleConfig { + confidence?: number | null; ++ contributor?: serializers.UserId.Raw | null; + } +diff --git a/src/serialization/resources/sheets/types/Sheet.ts b/src/serialization/resources/sheets/types/Sheet.ts +index 4420603..4e3c704 100644 +--- a/src/serialization/resources/sheets/types/Sheet.ts ++++ b/src/serialization/resources/sheets/types/Sheet.ts +@@ -12,2 +12,3 @@ export const Sheet: core.serialization.ObjectSchema (await import("../../..")).SheetConfig), +@@ -26,2 +27,3 @@ export declare namespace Sheet { + name: string; ++ slug: string; + config: serializers.SheetConfig.Raw; +diff --git a/src/serialization/resources/sheets/types/SheetConfig.ts b/src/serialization/resources/sheets/types/SheetConfig.ts +index 51aa641..fc648da 100644 +--- a/src/serialization/resources/sheets/types/SheetConfig.ts ++++ b/src/serialization/resources/sheets/types/SheetConfig.ts +@@ -23,2 +23,3 @@ export const SheetConfig: core.serialization.ObjectSchema (await import("../../..")).ExternalConstraint), + }) +@@ -20,3 +21,3 @@ export const Constraint: core.serialization.Schema = core.serialization.object({ ++ validator: core.serialization.string(), ++ config: core.serialization.any().optional(), ++}); ++ ++export declare namespace ExternalConstraint { ++ interface Raw { ++ validator: string; ++ config?: any | null; ++ } ++} +diff --git a/src/serialization/resources/property/types/index.ts b/src/serialization/resources/property/types/index.ts +index 63ebc32..2909edc 100644 +--- a/src/serialization/resources/property/types/index.ts ++++ b/src/serialization/resources/property/types/index.ts +@@ -17,2 +17,3 @@ export * from "./Constraint"; + export * from "./UniqueConstraint"; ++export * from "./ExternalConstraint"; + export * from "./UniqueConstraintConfig"; +diff --git a/src/serialization/resources/sheets/types/ExternalSheetConstraint.ts b/src/serialization/resources/sheets/types/ExternalSheetConstraint.ts +new file mode 100644 +index 0000000..a7a83c7 +--- /dev/null ++++ b/src/serialization/resources/sheets/types/ExternalSheetConstraint.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ExternalSheetConstraint: core.serialization.ObjectSchema< ++ serializers.ExternalSheetConstraint.Raw, ++ Flatfile.ExternalSheetConstraint ++> = core.serialization.object({ ++ validator: core.serialization.string(), ++ fields: core.serialization.list(core.serialization.string()).optional(), ++ config: core.serialization.any().optional(), ++}); ++ ++export declare namespace ExternalSheetConstraint { ++ interface Raw { ++ validator: string; ++ fields?: string[] | null; ++ config?: any | null; ++ } ++} +diff --git a/src/serialization/resources/sheets/types/SheetConstraint.ts b/src/serialization/resources/sheets/types/SheetConstraint.ts +index 49b19c0..a55e17d 100644 +--- a/src/serialization/resources/sheets/types/SheetConstraint.ts ++++ b/src/serialization/resources/sheets/types/SheetConstraint.ts +@@ -12,2 +12,3 @@ export const SheetConstraint: core.serialization.Schema (await import("../../..")).CompositeUniqueConstraint), ++ external: core.serialization.lazyObject(async () => (await import("../../..")).ExternalSheetConstraint), + }) +@@ -19,3 +20,3 @@ export const SheetConstraint: core.serialization.Schema; + value?: Flatfile.CellValueUnion; +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 8996d0c..fabdbfa 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -49,3 +49,3 @@ export class Roles { + }, +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 704b1a2..9cabcca 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -39,3 +39,3 @@ export class Secrets { + public async list( +- request: Flatfile.ListSecrets, ++ request: Flatfile.ListSecrets = {}, + requestOptions?: Secrets.RequestOptions +@@ -44,3 +44,6 @@ export class Secrets { + const _queryParams: Record = {}; +- _queryParams["environmentId"] = environmentId; ++ if (environmentId != null) { ++ _queryParams["environmentId"] = environmentId; ++ } ++ + if (spaceId != null) { +@@ -60,3 +63,3 @@ export class Secrets { + }, +@@ -150,3 +153,3 @@ export class Secrets { + }, +@@ -235,3 +238,3 @@ export class Secrets { + }, +diff --git a/src/api/resources/secrets/client/requests/ListSecrets.ts b/src/api/resources/secrets/client/requests/ListSecrets.ts +index d165532..d3493b3 100644 +--- a/src/api/resources/secrets/client/requests/ListSecrets.ts ++++ b/src/api/resources/secrets/client/requests/ListSecrets.ts +@@ -16,3 +16,3 @@ export interface ListSecrets { + */ +- environmentId: Flatfile.EnvironmentId; ++ environmentId?: Flatfile.EnvironmentId; + /** +diff --git a/src/api/resources/secrets/types/WriteSecret.ts b/src/api/resources/secrets/types/WriteSecret.ts +index 0543e7b..c118b90 100644 +--- a/src/api/resources/secrets/types/WriteSecret.ts ++++ b/src/api/resources/secrets/types/WriteSecret.ts +@@ -23,3 +23,3 @@ export interface WriteSecret { + /** The Environment of the secret. */ +- environmentId: Flatfile.EnvironmentId; ++ environmentId?: Flatfile.EnvironmentId; + /** The Space of the secret. */ +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index ab5aba6..5355ea0 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -55,3 +55,3 @@ export class Sheets { + }, +@@ -115,3 +115,3 @@ export class Sheets { + }, +@@ -173,3 +173,3 @@ export class Sheets { + }, +@@ -257,3 +257,3 @@ export class Sheets { + }, +@@ -399,3 +399,3 @@ export class Sheets { + }, +@@ -484,3 +484,3 @@ export class Sheets { + }, +@@ -544,3 +544,3 @@ export class Sheets { + }, +@@ -634,3 +634,3 @@ export class Sheets { + }, +@@ -696,3 +696,3 @@ export class Sheets { + }, +@@ -780,3 +780,3 @@ export class Sheets { + }, +@@ -921,3 +921,3 @@ export class Sheets { + }, +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index fdc31c0..99505d4 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -54,3 +54,3 @@ export class Snapshots { + }, +@@ -144,3 +144,3 @@ export class Snapshots { + }, +@@ -235,3 +235,3 @@ export class Snapshots { + }, +@@ -320,3 +320,3 @@ export class Snapshots { + }, +@@ -409,3 +409,3 @@ export class Snapshots { + }, +@@ -518,3 +518,3 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index d08e73f..b071ece 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -100,3 +100,3 @@ export class Spaces { + }, +@@ -180,3 +180,3 @@ export class Spaces { + }, +@@ -265,3 +265,3 @@ export class Spaces { + }, +@@ -346,3 +346,3 @@ export class Spaces { + }, +@@ -440,3 +440,3 @@ export class Spaces { + }, +@@ -528,3 +528,3 @@ export class Spaces { + }, +@@ -613,3 +613,3 @@ export class Spaces { + }, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 6e6c871..5b888e0 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -57,3 +57,3 @@ export class Users { + }, +@@ -114,3 +114,3 @@ export class Users { + }, +@@ -182,3 +182,3 @@ export class Users { + }, +@@ -243,3 +243,3 @@ export class Users { + }, +@@ -300,3 +300,3 @@ export class Users { + }, +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index edd7848..6ea9748 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -43,3 +43,3 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index c973339..7ec1fe8 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -63,3 +63,3 @@ export class Workbooks { + }, +@@ -168,3 +168,3 @@ export class Workbooks { + }, +@@ -243,3 +243,3 @@ export class Workbooks { + }, +@@ -327,3 +327,3 @@ export class Workbooks { + }, +@@ -422,3 +422,3 @@ export class Workbooks { + }, +@@ -512,3 +512,3 @@ export class Workbooks { + }, +@@ -571,3 +571,3 @@ export class Workbooks { + }, +diff --git a/src/serialization/resources/records/types/CellValue.ts b/src/serialization/resources/records/types/CellValue.ts +index 39913e6..e64ce52 100644 +--- a/src/serialization/resources/records/types/CellValue.ts ++++ b/src/serialization/resources/records/types/CellValue.ts +@@ -14,2 +14,3 @@ export const CellValue: core.serialization.ObjectSchema (await import("../../..")).CellValueUnion).optional(), +@@ -23,2 +24,3 @@ export declare namespace CellValue { + messages?: serializers.ValidationMessage.Raw[] | null; ++ metadata?: Record | null; + value?: serializers.CellValueUnion.Raw | null; +diff --git a/src/serialization/resources/secrets/types/WriteSecret.ts b/src/serialization/resources/secrets/types/WriteSecret.ts +index 2184fbc..31c1232 100644 +--- a/src/serialization/resources/secrets/types/WriteSecret.ts ++++ b/src/serialization/resources/secrets/types/WriteSecret.ts +@@ -12,3 +12,3 @@ export const WriteSecret: core.serialization.ObjectSchema (await import("../../..")).SecretValue), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), + spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), +@@ -20,3 +20,3 @@ export declare namespace WriteSecret { + value: serializers.SecretValue.Raw; +- environmentId: serializers.EnvironmentId.Raw; ++ environmentId?: serializers.EnvironmentId.Raw | null; + spaceId?: serializers.SpaceId.Raw | null; diff --git a/release-notes/1.6.6.diff.txt.result.md b/release-notes/1.6.6.diff.txt.result.md new file mode 100644 index 00000000..47ad8c41 --- /dev/null +++ b/release-notes/1.6.6.diff.txt.result.md @@ -0,0 +1,16 @@ +#### General Changes + +- The version of the `@flatfile/api` package has been bumped from `1.6.5` to `1.6.6`. + +#### Records + +- A new optional `metadata` field has been added to the `CellValue` type. This field can store additional metadata related to a cell value, and is of type `Record`. + +#### Secrets + +- The `environmentId` field in the `ListSecrets` request is now optional. +- The `environmentId` field in the `WriteSecret` type is now optional. + +#### Other Changes + +- Minor updates to the SDK version headers in the client requests. \ No newline at end of file diff --git a/release-notes/1.6.7.diff.txt b/release-notes/1.6.7.diff.txt new file mode 100644 index 00000000..c6294e1f --- /dev/null +++ b/release-notes/1.6.7.diff.txt @@ -0,0 +1,715 @@ +diff --git a/package.json b/package.json +index 63e2db3..4dd7120 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.6.6", ++ "version": "1.6.7", + "private": false, +diff --git a/src/Client.ts b/src/Client.ts +index f7ae18a..7848676 100644 +--- a/src/Client.ts ++++ b/src/Client.ts +@@ -13,2 +13,3 @@ import { DataRetentionPolicies } from "./api/resources/dataRetentionPolicies/cli + import { Documents } from "./api/resources/documents/client/Client"; ++import { Entitlements } from "./api/resources/entitlements/client/Client"; + import { Environments } from "./api/resources/environments/client/Client"; +@@ -88,2 +89,8 @@ export class FlatfileClient { + ++ protected _entitlements: Entitlements | undefined; ++ ++ public get entitlements(): Entitlements { ++ return (this._entitlements ??= new Entitlements(this._options)); ++ } ++ + protected _environments: Environments | undefined; +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 0058f33..29611fa 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -46,3 +46,3 @@ export class Agents { + }, +@@ -126,3 +126,3 @@ export class Agents { + }, +@@ -207,3 +207,3 @@ export class Agents { + }, +@@ -297,3 +297,3 @@ export class Agents { + }, +@@ -387,3 +387,3 @@ export class Agents { + }, +@@ -496,3 +496,3 @@ export class Agents { + }, +@@ -605,3 +605,3 @@ export class Agents { + }, +@@ -696,3 +696,3 @@ export class Agents { + }, +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 25b5aa5..de4f604 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -43,3 +43,3 @@ export class Apps { + }, +@@ -99,3 +99,3 @@ export class Apps { + }, +@@ -168,3 +168,3 @@ export class Apps { + }, +@@ -238,3 +238,3 @@ export class Apps { + }, +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index c0251f2..b9ed64b 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -55,3 +55,3 @@ export class Auth { + }, +@@ -144,3 +144,3 @@ export class Auth { + }, +@@ -235,3 +235,3 @@ export class Auth { + }, +@@ -326,3 +326,3 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index ecb2c80..da589eb 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -108,3 +108,3 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 6644501..399a46d 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -51,3 +51,3 @@ export class Commits { + }, +@@ -132,3 +132,3 @@ export class Commits { + }, +@@ -213,3 +213,3 @@ export class Commits { + }, +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 84cc2dc..c81a152 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -59,3 +59,3 @@ export class DataRetentionPolicies { + }, +@@ -148,3 +148,3 @@ export class DataRetentionPolicies { + }, +@@ -233,3 +233,3 @@ export class DataRetentionPolicies { + }, +@@ -322,3 +322,3 @@ export class DataRetentionPolicies { + }, +@@ -404,3 +404,3 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 5ce9a53..59b1136 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -51,3 +51,3 @@ export class Documents { + }, +@@ -146,3 +146,3 @@ export class Documents { + }, +@@ -234,3 +234,3 @@ export class Documents { + }, +@@ -325,3 +325,3 @@ export class Documents { + }, +@@ -410,3 +410,3 @@ export class Documents { + }, +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +new file mode 100644 +index 0000000..7e6cb8d +--- /dev/null ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -0,0 +1,127 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as environments from "../../../../environments"; ++import * as core from "../../../../core"; ++import * as Flatfile from "../../.."; ++import urlJoin from "url-join"; ++import * as serializers from "../../../../serialization"; ++import * as errors from "../../../../errors"; ++ ++export declare namespace Entitlements { ++ interface Options { ++ environment?: core.Supplier; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ streamingFetcher?: core.StreamingFetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Entitlements { ++ constructor(protected readonly _options: Entitlements.Options = {}) {} ++ ++ /** ++ * Returns all entitlements matching a filter for resourceId ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * ++ * @example ++ * await flatfile.entitlements.list({ ++ * resourceId: "string" ++ * }) ++ */ ++ public async list( ++ request: Flatfile.ListEntitlementsRequest, ++ requestOptions?: Entitlements.RequestOptions ++ ): Promise { ++ const { resourceId } = request; ++ const _queryParams: Record = {}; ++ _queryParams["resourceId"] = resourceId; ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/entitlements" ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ queryParameters: _queryParams, ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ListEntitlementsResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/entitlements/client/index.ts b/src/api/resources/entitlements/client/index.ts +new file mode 100644 +index 0000000..415726b +--- /dev/null ++++ b/src/api/resources/entitlements/client/index.ts +@@ -0,0 +1 @@ ++export * from "./requests"; +diff --git a/src/api/resources/entitlements/client/requests/ListEntitlementsRequest.ts b/src/api/resources/entitlements/client/requests/ListEntitlementsRequest.ts +new file mode 100644 +index 0000000..7077755 +--- /dev/null ++++ b/src/api/resources/entitlements/client/requests/ListEntitlementsRequest.ts +@@ -0,0 +1,16 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * @example ++ * { ++ * resourceId: "string" ++ * } ++ */ ++export interface ListEntitlementsRequest { ++ /** ++ * The associated Resource ID for the entitlements. ++ */ ++ resourceId: string; ++} +diff --git a/src/api/resources/entitlements/client/requests/index.ts b/src/api/resources/entitlements/client/requests/index.ts +new file mode 100644 +index 0000000..c41b8e3 +--- /dev/null ++++ b/src/api/resources/entitlements/client/requests/index.ts +@@ -0,0 +1 @@ ++export { ListEntitlementsRequest } from "./ListEntitlementsRequest"; +diff --git a/src/api/resources/entitlements/index.ts b/src/api/resources/entitlements/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/entitlements/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/entitlements/types/Entitlement.ts b/src/api/resources/entitlements/types/Entitlement.ts +new file mode 100644 +index 0000000..a633714 +--- /dev/null ++++ b/src/api/resources/entitlements/types/Entitlement.ts +@@ -0,0 +1,33 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * An entitlement belonging to a resource ++ * ++ * @example ++ * { ++ * key: "snapshots", ++ * description: "When enabled, snapshots to be taken.", ++ * influencesPrivileges: ["snapshot:create"], ++ * metadata: { ++ * "files": 10 ++ * }, ++ * createdAt: new Date("2023-11-15T19:31:33.015Z"), ++ * updatedAt: new Date("2023-11-15T19:31:33.015Z") ++ * } ++ */ ++export interface Entitlement { ++ /** Short name for the entitlement */ ++ key: string; ++ /** Description for the entitlement */ ++ description: string; ++ /** List of privilege names impacted by this entitlement */ ++ influencesPrivileges: string[]; ++ /** Contains conditions or limits for an entitlement */ ++ metadata?: any; ++ /** Date the entitlement was created */ ++ createdAt: Date; ++ /** Date the entitlement was last updated */ ++ updatedAt: Date; ++} +diff --git a/src/api/resources/entitlements/types/ListEntitlementsResponse.ts b/src/api/resources/entitlements/types/ListEntitlementsResponse.ts +new file mode 100644 +index 0000000..f2aac92 +--- /dev/null ++++ b/src/api/resources/entitlements/types/ListEntitlementsResponse.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: [{ ++ * key: "snapshots", ++ * description: "When enabled, snapshots to be taken.", ++ * influencesPrivileges: ["snapshot:create"], ++ * metadata: { ++ * "files": 10 ++ * }, ++ * createdAt: new Date("2023-11-15T19:31:33.015Z"), ++ * updatedAt: new Date("2023-11-15T19:31:33.015Z") ++ * }] ++ * } ++ */ ++export interface ListEntitlementsResponse { ++ data: Flatfile.Entitlement[]; ++} +diff --git a/src/api/resources/entitlements/types/index.ts b/src/api/resources/entitlements/types/index.ts +new file mode 100644 +index 0000000..b185d70 +--- /dev/null ++++ b/src/api/resources/entitlements/types/index.ts +@@ -0,0 +1,2 @@ ++export * from "./ListEntitlementsResponse"; ++export * from "./Entitlement"; +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 1a775bb..dd46650 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -59,3 +59,3 @@ export class Environments { + }, +@@ -127,3 +127,3 @@ export class Environments { + }, +@@ -194,3 +194,3 @@ export class Environments { + }, +@@ -279,3 +279,3 @@ export class Environments { + }, +@@ -370,3 +370,3 @@ export class Environments { + }, +@@ -429,3 +429,3 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 3a78aa8..2d11a49 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -83,3 +83,3 @@ export class Events { + }, +@@ -157,3 +157,3 @@ export class Events { + }, +@@ -234,3 +234,3 @@ export class Events { + }, +@@ -284,3 +284,3 @@ export class Events { + }, +@@ -355,3 +355,3 @@ export class Events { + }, +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index a667afc..a426fc4 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -64,3 +64,3 @@ export class Files { + }, +@@ -136,3 +136,3 @@ export class Files { + "Content-Length": (await core.getFormDataContentLength(_request)).toString(), +@@ -208,3 +208,3 @@ export class Files { + }, +@@ -285,3 +285,3 @@ export class Files { + }, +@@ -372,3 +372,3 @@ export class Files { + }, +@@ -446,3 +446,3 @@ export class Files { + }, +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 37478a9..fcfe6c5 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -58,3 +58,3 @@ export class Guests { + }, +@@ -129,3 +129,3 @@ export class Guests { + }, +@@ -189,3 +189,3 @@ export class Guests { + }, +@@ -245,3 +245,3 @@ export class Guests { + }, +@@ -308,3 +308,3 @@ export class Guests { + }, +@@ -375,3 +375,3 @@ export class Guests { + }, +@@ -437,3 +437,3 @@ export class Guests { + }, +diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts +index afe92a7..da8e64d 100644 +--- a/src/api/resources/index.ts ++++ b/src/api/resources/index.ts +@@ -16,2 +16,4 @@ export * as documents from "./documents"; + export * from "./documents/types"; ++export * as entitlements from "./entitlements"; ++export * from "./entitlements/types"; + export * as environments from "./environments"; +@@ -53,2 +55,3 @@ export * from "./cells/client/requests"; + export * from "./dataRetentionPolicies/client/requests"; ++export * from "./entitlements/client/requests"; + export * from "./environments/client/requests"; +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index cf34356..0a6e4fd 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -77,3 +77,3 @@ export class Jobs { + }, +@@ -131,3 +131,3 @@ export class Jobs { + }, +@@ -182,3 +182,3 @@ export class Jobs { + }, +@@ -236,3 +236,3 @@ export class Jobs { + }, +@@ -287,3 +287,3 @@ export class Jobs { + }, +@@ -343,3 +343,3 @@ export class Jobs { + }, +@@ -402,3 +402,3 @@ export class Jobs { + }, +@@ -499,3 +499,3 @@ export class Jobs { + }, +@@ -557,3 +557,3 @@ export class Jobs { + }, +@@ -624,3 +624,3 @@ export class Jobs { + }, +@@ -687,3 +687,3 @@ export class Jobs { + }, +@@ -759,3 +759,3 @@ export class Jobs { + }, +@@ -835,3 +835,3 @@ export class Jobs { + }, +@@ -901,3 +901,3 @@ export class Jobs { + }, +@@ -958,3 +958,3 @@ export class Jobs { + }, +@@ -1014,3 +1014,3 @@ export class Jobs { + }, +@@ -1077,3 +1077,3 @@ export class Jobs { + }, +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 2fe7dc6..049ffe4 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -48,3 +48,3 @@ export class Mapping { + }, +@@ -182,3 +182,3 @@ export class Mapping { + }, +@@ -254,3 +254,3 @@ export class Mapping { + }, +@@ -336,3 +336,3 @@ export class Mapping { + }, +@@ -418,3 +418,3 @@ export class Mapping { + }, +@@ -500,3 +500,3 @@ export class Mapping { + }, +@@ -585,3 +585,3 @@ export class Mapping { + }, +@@ -672,3 +672,3 @@ export class Mapping { + }, +@@ -764,3 +764,3 @@ export class Mapping { + }, +@@ -852,3 +852,3 @@ export class Mapping { + }, +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 6bcece7..60fec6d 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -154,3 +154,3 @@ export class Records { + }, +@@ -263,3 +263,3 @@ export class Records { + }, +@@ -365,3 +365,3 @@ export class Records { + }, +@@ -463,3 +463,3 @@ export class Records { + }, +@@ -575,3 +575,3 @@ export class Records { + }, +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index fabdbfa..d34b962 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -49,3 +49,3 @@ export class Roles { + }, +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 9cabcca..7679d5c 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -63,3 +63,3 @@ export class Secrets { + }, +@@ -153,3 +153,3 @@ export class Secrets { + }, +@@ -238,3 +238,3 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 5355ea0..3952fd9 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -55,3 +55,3 @@ export class Sheets { + }, +@@ -115,3 +115,3 @@ export class Sheets { + }, +@@ -173,3 +173,3 @@ export class Sheets { + }, +@@ -257,3 +257,3 @@ export class Sheets { + }, +@@ -399,3 +399,3 @@ export class Sheets { + }, +@@ -484,3 +484,3 @@ export class Sheets { + }, +@@ -544,3 +544,3 @@ export class Sheets { + }, +@@ -634,3 +634,3 @@ export class Sheets { + }, +@@ -696,3 +696,3 @@ export class Sheets { + }, +@@ -780,3 +780,3 @@ export class Sheets { + }, +@@ -921,3 +921,3 @@ export class Sheets { + }, +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 99505d4..ca81e52 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -54,3 +54,3 @@ export class Snapshots { + }, +@@ -144,3 +144,3 @@ export class Snapshots { + }, +@@ -235,3 +235,3 @@ export class Snapshots { + }, +@@ -320,3 +320,3 @@ export class Snapshots { + }, +@@ -409,3 +409,3 @@ export class Snapshots { + }, +@@ -518,3 +518,3 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index b071ece..fa569d0 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -100,3 +100,3 @@ export class Spaces { + }, +@@ -180,3 +180,3 @@ export class Spaces { + }, +@@ -265,3 +265,3 @@ export class Spaces { + }, +@@ -346,3 +346,3 @@ export class Spaces { + }, +@@ -440,3 +440,3 @@ export class Spaces { + }, +@@ -528,3 +528,3 @@ export class Spaces { + }, +@@ -613,3 +613,3 @@ export class Spaces { + }, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 5b888e0..c4271e5 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -57,3 +57,3 @@ export class Users { + }, +@@ -114,3 +114,3 @@ export class Users { + }, +@@ -182,3 +182,3 @@ export class Users { + }, +@@ -243,3 +243,3 @@ export class Users { + }, +@@ -300,3 +300,3 @@ export class Users { + }, +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 6ea9748..e84ae80 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -43,3 +43,3 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 7ec1fe8..0409222 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -63,3 +63,3 @@ export class Workbooks { + }, +@@ -168,3 +168,3 @@ export class Workbooks { + }, +@@ -243,3 +243,3 @@ export class Workbooks { + }, +@@ -327,3 +327,3 @@ export class Workbooks { + }, +@@ -422,3 +422,3 @@ export class Workbooks { + }, +@@ -512,3 +512,3 @@ export class Workbooks { + }, +@@ -571,3 +571,3 @@ export class Workbooks { + }, +diff --git a/src/serialization/resources/entitlements/index.ts b/src/serialization/resources/entitlements/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/entitlements/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/entitlements/types/Entitlement.ts b/src/serialization/resources/entitlements/types/Entitlement.ts +new file mode 100644 +index 0000000..40ff26d +--- /dev/null ++++ b/src/serialization/resources/entitlements/types/Entitlement.ts +@@ -0,0 +1,28 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const Entitlement: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ key: core.serialization.string(), ++ description: core.serialization.string(), ++ influencesPrivileges: core.serialization.list(core.serialization.string()), ++ metadata: core.serialization.any(), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++ }); ++ ++export declare namespace Entitlement { ++ interface Raw { ++ key: string; ++ description: string; ++ influencesPrivileges: string[]; ++ metadata?: any; ++ createdAt: string; ++ updatedAt: string; ++ } ++} +diff --git a/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +new file mode 100644 +index 0000000..1e5a59a +--- /dev/null ++++ b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ListEntitlementsResponse: core.serialization.ObjectSchema< ++ serializers.ListEntitlementsResponse.Raw, ++ Flatfile.ListEntitlementsResponse ++> = core.serialization.object({ ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Entitlement)), ++}); ++ ++export declare namespace ListEntitlementsResponse { ++ interface Raw { ++ data: serializers.Entitlement.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/entitlements/types/index.ts b/src/serialization/resources/entitlements/types/index.ts +new file mode 100644 +index 0000000..b185d70 +--- /dev/null ++++ b/src/serialization/resources/entitlements/types/index.ts +@@ -0,0 +1,2 @@ ++export * from "./ListEntitlementsResponse"; ++export * from "./Entitlement"; +diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts +index cbba5d4..f8f4d23 100644 +--- a/src/serialization/resources/index.ts ++++ b/src/serialization/resources/index.ts +@@ -16,2 +16,4 @@ export * as documents from "./documents"; + export * from "./documents/types"; ++export * as entitlements from "./entitlements"; ++export * from "./entitlements/types"; + export * as environments from "./environments"; diff --git a/release-notes/1.6.7.diff.txt.result.md b/release-notes/1.6.7.diff.txt.result.md new file mode 100644 index 00000000..1862f6e3 --- /dev/null +++ b/release-notes/1.6.7.diff.txt.result.md @@ -0,0 +1,23 @@ +#### General Changes + +- The package version has been updated from 1.6.6 to 1.6.7. + +#### Entitlements + +A new `Entitlements` resource has been added to the API client, which includes the following: + +- A `list` method to fetch entitlements for a given `resourceId`. +- Types for the `Entitlement` and `ListEntitlementsResponse` models. +- Serialization code for the `Entitlement` and `ListEntitlementsResponse` models. + +#### Client Changes + +The `FlatfileClient` class has been updated to include a new `entitlements` property, which exposes the `Entitlements` resource. + +#### Example Usage + +```typescript +const entitlements = await flatfile.entitlements.list({ + resourceId: "your-resource-id" +}); +``` \ No newline at end of file diff --git a/release-notes/1.7.0.diff.txt b/release-notes/1.7.0.diff.txt new file mode 100644 index 00000000..ee8607da --- /dev/null +++ b/release-notes/1.7.0.diff.txt @@ -0,0 +1,2259 @@ +diff --git a/package.json b/package.json +index 4dd7120..baaeded 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.6.7", ++ "version": "1.7.0", + "private": false, +@@ -14,7 +14,5 @@ + "url-join": "4.0.1", +- "@types/url-join": "4.0.1", + "form-data": "4.0.0", +- "axios": "0.27.2", ++ "node-fetch": "2.7.0", + "qs": "6.11.2", +- "@types/qs": "6.9.8", + "js-base64": "3.7.2", +@@ -25,2 +23,5 @@ + "devDependencies": { ++ "@types/url-join": "4.0.1", ++ "@types/qs": "6.9.8", ++ "@types/node-fetch": "2.6.9", + "@types/node": "17.0.33", +diff --git a/src/Client.ts b/src/Client.ts +index 7848676..815eab8 100644 +--- a/src/Client.ts ++++ b/src/Client.ts +@@ -35,3 +35,2 @@ export declare namespace FlatfileClient { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 29611fa..0274431 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Agents { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -46,3 +45,3 @@ export class Agents { + }, +@@ -126,3 +125,3 @@ export class Agents { + }, +@@ -207,3 +206,3 @@ export class Agents { + }, +@@ -297,3 +296,3 @@ export class Agents { + }, +@@ -387,3 +386,3 @@ export class Agents { + }, +@@ -496,3 +495,3 @@ export class Agents { + }, +@@ -605,3 +604,3 @@ export class Agents { + }, +@@ -696,3 +695,3 @@ export class Agents { + }, +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index de4f604..cb05eed 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Apps { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -43,3 +42,3 @@ export class Apps { + }, +@@ -99,3 +98,3 @@ export class Apps { + }, +@@ -168,3 +167,3 @@ export class Apps { + }, +@@ -238,3 +237,3 @@ export class Apps { + }, +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index b9ed64b..8f09a1f 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Auth { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -55,3 +54,3 @@ export class Auth { + }, +@@ -144,3 +143,3 @@ export class Auth { + }, +@@ -235,3 +234,3 @@ export class Auth { + }, +@@ -326,3 +325,3 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index da589eb..bb8ecaf 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Cells { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -108,3 +107,3 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 399a46d..5511db9 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Commits { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -51,3 +50,3 @@ export class Commits { + }, +@@ -132,3 +131,3 @@ export class Commits { + }, +@@ -213,3 +212,3 @@ export class Commits { + }, +diff --git a/src/api/resources/commons/errors/ForbiddenError.ts b/src/api/resources/commons/errors/ForbiddenError.ts +new file mode 100644 +index 0000000..590b5d8 +--- /dev/null ++++ b/src/api/resources/commons/errors/ForbiddenError.ts +@@ -0,0 +1,17 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as errors from "../../../../errors"; ++import * as Flatfile from "../../.."; ++ ++export class ForbiddenError extends errors.FlatfileError { ++ constructor(body: Flatfile.Errors) { ++ super({ ++ message: "ForbiddenError", ++ statusCode: 403, ++ body: body, ++ }); ++ Object.setPrototypeOf(this, ForbiddenError.prototype); ++ } ++} +diff --git a/src/api/resources/commons/errors/index.ts b/src/api/resources/commons/errors/index.ts +index 80aa556..ea200a2 100644 +--- a/src/api/resources/commons/errors/index.ts ++++ b/src/api/resources/commons/errors/index.ts +@@ -2 +2,2 @@ export * from "./BadRequestError"; + export * from "./NotFoundError"; ++export * from "./ForbiddenError"; +diff --git a/src/api/resources/commons/types/ActorRoleId.ts b/src/api/resources/commons/types/ActorRoleId.ts +new file mode 100644 +index 0000000..f6f4950 +--- /dev/null ++++ b/src/api/resources/commons/types/ActorRoleId.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Actor Role ID ++ * ++ * @example ++ * "us_acr_YOUR_ID" ++ */ ++export type ActorRoleId = string; +diff --git a/src/api/resources/commons/types/RoleId.ts b/src/api/resources/commons/types/RoleId.ts +index 1514407..c4180b4 100644 +--- a/src/api/resources/commons/types/RoleId.ts ++++ b/src/api/resources/commons/types/RoleId.ts +@@ -8,3 +8,3 @@ + * @example +- * "us_rol_a7Ws9cue" ++ * "us_rol_YOUR_ID" + */ +diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts +index 53f1ff7..d92ca92 100644 +--- a/src/api/resources/commons/types/index.ts ++++ b/src/api/resources/commons/types/index.ts +@@ -16,2 +16,3 @@ export * from "./JobId"; + export * from "./UserId"; ++export * from "./ActorRoleId"; + export * from "./RoleId"; +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index c81a152..eccb902 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace DataRetentionPolicies { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -59,3 +58,3 @@ export class DataRetentionPolicies { + }, +@@ -148,3 +147,3 @@ export class DataRetentionPolicies { + }, +@@ -233,3 +232,3 @@ export class DataRetentionPolicies { + }, +@@ -322,3 +321,3 @@ export class DataRetentionPolicies { + }, +@@ -404,3 +403,3 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 59b1136..ab803ca 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Documents { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -51,3 +50,3 @@ export class Documents { + }, +@@ -146,3 +145,3 @@ export class Documents { + }, +@@ -234,3 +233,3 @@ export class Documents { + }, +@@ -325,3 +324,3 @@ export class Documents { + }, +@@ -410,3 +409,3 @@ export class Documents { + }, +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 7e6cb8d..bbe3755 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Entitlements { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -56,3 +55,3 @@ export class Entitlements { + }, +diff --git a/src/api/resources/entitlements/types/Entitlement.ts b/src/api/resources/entitlements/types/Entitlement.ts +index a633714..71ff367 100644 +--- a/src/api/resources/entitlements/types/Entitlement.ts ++++ b/src/api/resources/entitlements/types/Entitlement.ts +@@ -10,9 +10,5 @@ + * key: "snapshots", +- * description: "When enabled, snapshots to be taken.", +- * influencesPrivileges: ["snapshot:create"], + * metadata: { + * "files": 10 +- * }, +- * createdAt: new Date("2023-11-15T19:31:33.015Z"), +- * updatedAt: new Date("2023-11-15T19:31:33.015Z") ++ * } + * } +@@ -22,12 +18,4 @@ export interface Entitlement { + key: string; +- /** Description for the entitlement */ +- description: string; +- /** List of privilege names impacted by this entitlement */ +- influencesPrivileges: string[]; + /** Contains conditions or limits for an entitlement */ + metadata?: any; +- /** Date the entitlement was created */ +- createdAt: Date; +- /** Date the entitlement was last updated */ +- updatedAt: Date; + } +diff --git a/src/api/resources/entitlements/types/ListEntitlementsResponse.ts b/src/api/resources/entitlements/types/ListEntitlementsResponse.ts +index f2aac92..251458e 100644 +--- a/src/api/resources/entitlements/types/ListEntitlementsResponse.ts ++++ b/src/api/resources/entitlements/types/ListEntitlementsResponse.ts +@@ -11,9 +11,5 @@ import * as Flatfile from "../../.."; + * key: "snapshots", +- * description: "When enabled, snapshots to be taken.", +- * influencesPrivileges: ["snapshot:create"], + * metadata: { + * "files": 10 +- * }, +- * createdAt: new Date("2023-11-15T19:31:33.015Z"), +- * updatedAt: new Date("2023-11-15T19:31:33.015Z") ++ * } + * }] +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index dd46650..3a7e964 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Environments { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -59,3 +58,3 @@ export class Environments { + }, +@@ -127,3 +126,3 @@ export class Environments { + }, +@@ -194,3 +193,3 @@ export class Environments { + }, +@@ -279,3 +278,3 @@ export class Environments { + }, +@@ -370,3 +369,3 @@ export class Environments { + }, +@@ -429,3 +428,3 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 2d11a49..526fc41 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Events { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -83,3 +82,3 @@ export class Events { + }, +@@ -157,3 +156,3 @@ export class Events { + }, +@@ -234,3 +233,3 @@ export class Events { + }, +@@ -284,3 +283,3 @@ export class Events { + }, +@@ -355,3 +354,3 @@ export class Events { + }, +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index a426fc4..c9df648 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -19,3 +19,2 @@ export declare namespace Files { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -64,3 +63,3 @@ export class Files { + }, +@@ -136,4 +135,3 @@ export class Files { +- "Content-Length": (await core.getFormDataContentLength(_request)).toString(), + }, +@@ -208,3 +206,3 @@ export class Files { + }, +@@ -285,3 +283,3 @@ export class Files { + }, +@@ -372,3 +370,3 @@ export class Files { + }, +@@ -434,4 +432,8 @@ export class Files { + ++ /** ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ + public async download(fileId: Flatfile.FileId, requestOptions?: Files.RequestOptions): Promise { +- const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ ++ const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( +@@ -446,7 +448,56 @@ export class Files { + }, ++ contentType: "application/json", ++ responseType: "streaming", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, + }); +- return _response.data; ++ if (_response.ok) { ++ return _response.body; ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } + } +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index fcfe6c5..244441e 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Guests { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -58,3 +57,3 @@ export class Guests { + }, +@@ -129,3 +128,3 @@ export class Guests { + }, +@@ -189,3 +188,3 @@ export class Guests { + }, +@@ -245,3 +244,3 @@ export class Guests { + }, +@@ -308,3 +307,3 @@ export class Guests { + }, +@@ -375,3 +374,3 @@ export class Guests { + }, +@@ -414,2 +413,283 @@ export class Guests { + ++ /** ++ * Lists roles assigned to a guest. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async listGuestRoles( ++ guestId: Flatfile.GuestId, ++ requestOptions?: Guests.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `guests/${await serializers.GuestId.jsonOrThrow(guestId)}/roles` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ListActorRolesResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Assigns a role to a guest. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async assignGuestRole( ++ guestId: Flatfile.GuestId, ++ request: Flatfile.AssignActorRoleRequest, ++ requestOptions?: Guests.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `guests/${await serializers.GuestId.jsonOrThrow(guestId)}/roles` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.AssignActorRoleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.AssignRoleResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Removes a role from a guest. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async deleteGuestRole( ++ guestId: Flatfile.GuestId, ++ actorRoleId: Flatfile.ActorRoleId, ++ requestOptions?: Guests.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `guests/${await serializers.GuestId.jsonOrThrow( ++ guestId ++ )}/roles/${await serializers.ActorRoleId.jsonOrThrow(actorRoleId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -437,3 +717,3 @@ export class Guests { + }, +diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts +index da8e64d..080ee96 100644 +--- a/src/api/resources/index.ts ++++ b/src/api/resources/index.ts +@@ -63,3 +63,2 @@ export * from "./mapping/client/requests"; + export * from "./records/client/requests"; +-export * from "./roles/client/requests"; + export * from "./secrets/client/requests"; +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 0a6e4fd..9e49188 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Jobs { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -77,3 +76,3 @@ export class Jobs { + }, +@@ -131,3 +130,3 @@ export class Jobs { + }, +@@ -182,3 +181,3 @@ export class Jobs { + }, +@@ -236,3 +235,3 @@ export class Jobs { + }, +@@ -287,3 +286,3 @@ export class Jobs { + }, +@@ -343,3 +342,3 @@ export class Jobs { + }, +@@ -402,3 +401,3 @@ export class Jobs { + }, +@@ -499,3 +498,3 @@ export class Jobs { + }, +@@ -557,3 +556,3 @@ export class Jobs { + }, +@@ -624,3 +623,3 @@ export class Jobs { + }, +@@ -687,3 +686,3 @@ export class Jobs { + }, +@@ -759,3 +758,3 @@ export class Jobs { + }, +@@ -835,3 +834,3 @@ export class Jobs { + }, +@@ -901,3 +900,3 @@ export class Jobs { + }, +@@ -958,3 +957,3 @@ export class Jobs { + }, +@@ -1014,3 +1013,3 @@ export class Jobs { + }, +@@ -1077,3 +1076,3 @@ export class Jobs { + }, +diff --git a/src/api/resources/jobs/types/JobOutcome.ts b/src/api/resources/jobs/types/JobOutcome.ts +index b28019e..0fa0bdd 100644 +--- a/src/api/resources/jobs/types/JobOutcome.ts ++++ b/src/api/resources/jobs/types/JobOutcome.ts +@@ -27,2 +27,3 @@ export interface JobOutcome { + message?: string; ++ hideDefaultButton?: boolean; + } +diff --git a/src/api/resources/jobs/types/JobUpdate.ts b/src/api/resources/jobs/types/JobUpdate.ts +index dc23f9c..0f938e5 100644 +--- a/src/api/resources/jobs/types/JobUpdate.ts ++++ b/src/api/resources/jobs/types/JobUpdate.ts +@@ -24,2 +24,4 @@ export interface JobUpdate { + outcomeAcknowledgedAt?: Date; ++ /** Current status of job in text */ ++ info?: string; + } +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 049ffe4..cd4b4b1 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Mapping { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -48,3 +47,3 @@ export class Mapping { + }, +@@ -110,2 +109,80 @@ export class Mapping { + ++ /** ++ * Deletes all history for the authenticated user ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async deleteAllHistoryForUser(requestOptions?: Mapping.RequestOptions): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/mapping" ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -182,3 +259,3 @@ export class Mapping { + }, +@@ -254,3 +331,3 @@ export class Mapping { + }, +@@ -336,3 +413,3 @@ export class Mapping { + }, +@@ -418,3 +495,3 @@ export class Mapping { + }, +@@ -500,3 +577,3 @@ export class Mapping { + }, +@@ -585,3 +662,3 @@ export class Mapping { + }, +@@ -672,3 +749,3 @@ export class Mapping { + }, +@@ -764,3 +841,3 @@ export class Mapping { + }, +@@ -826,2 +903,85 @@ export class Mapping { + ++ /** ++ * Updates a list of mapping rules in a program ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async updateRules( ++ programId: Flatfile.ProgramId, ++ request: Flatfile.UpdateMappingRulesRequest, ++ requestOptions?: Mapping.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/mapping/${await serializers.ProgramId.jsonOrThrow(programId)}/rules` ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UpdateMappingRulesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.MappingRulesResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -852,3 +1012,3 @@ export class Mapping { + }, +diff --git a/src/api/resources/mapping/types/MappingRule.ts b/src/api/resources/mapping/types/MappingRule.ts +index 2d3e2ad..bb2d6c1 100644 +--- a/src/api/resources/mapping/types/MappingRule.ts ++++ b/src/api/resources/mapping/types/MappingRule.ts +@@ -22,3 +22,5 @@ export interface MappingRule extends Flatfile.MappingRuleConfig { + id: Flatfile.MappingId; +- /** User ID of the creator of the mapping rule */ ++ /** Confidence of the mapping rule */ ++ confidence?: number; ++ /** User ID of the user who suggested the mapping rule */ + createdBy?: Flatfile.UserId; +diff --git a/src/api/resources/mapping/types/MappingRuleConfig.ts b/src/api/resources/mapping/types/MappingRuleConfig.ts +index 8b23690..4067f44 100644 +--- a/src/api/resources/mapping/types/MappingRuleConfig.ts ++++ b/src/api/resources/mapping/types/MappingRuleConfig.ts +@@ -19,6 +19,6 @@ export interface MappingRuleConfig { + config?: any; +- /** Confidence of the mapping rule */ +- confidence?: number; ++ /** Time the mapping rule was last updated */ ++ acceptedAt?: Date; + /** User ID of the contributor of the mapping rule */ +- contributor?: Flatfile.UserId; ++ acceptedBy?: Flatfile.UserId; + } +diff --git a/src/api/resources/mapping/types/MappingRuleOrConfig.ts b/src/api/resources/mapping/types/MappingRuleOrConfig.ts +index 0b08604..72e07d1 100644 +--- a/src/api/resources/mapping/types/MappingRuleOrConfig.ts ++++ b/src/api/resources/mapping/types/MappingRuleOrConfig.ts +@@ -9,2 +9,4 @@ export interface MappingRuleOrConfig extends Flatfile.MappingRuleConfig { + id?: Flatfile.MappingId; ++ /** Confidence of the mapping rule */ ++ confidence?: number; + /** User ID of the creator of the mapping rule */ +diff --git a/src/api/resources/mapping/types/UpdateMappingRulesRequest.ts b/src/api/resources/mapping/types/UpdateMappingRulesRequest.ts +new file mode 100644 +index 0000000..3626c07 +--- /dev/null ++++ b/src/api/resources/mapping/types/UpdateMappingRulesRequest.ts +@@ -0,0 +1,7 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export type UpdateMappingRulesRequest = Flatfile.MappingRule[]; +diff --git a/src/api/resources/mapping/types/index.ts b/src/api/resources/mapping/types/index.ts +index e680b72..14ef3a7 100644 +--- a/src/api/resources/mapping/types/index.ts ++++ b/src/api/resources/mapping/types/index.ts +@@ -9,2 +9,3 @@ export * from "./MappingRuleOrConfig"; + export * from "./CreateMappingRulesRequest"; ++export * from "./UpdateMappingRulesRequest"; + export * from "./MappingRuleResponse"; +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 60fec6d..d432093 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Records { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -154,3 +153,3 @@ export class Records { + }, +@@ -263,3 +262,3 @@ export class Records { + }, +@@ -365,3 +364,3 @@ export class Records { + }, +@@ -463,3 +462,3 @@ export class Records { + }, +@@ -575,3 +574,3 @@ export class Records { + }, +diff --git a/src/api/resources/records/types/FieldRecordCounts.ts b/src/api/resources/records/types/FieldRecordCounts.ts +new file mode 100644 +index 0000000..eddda0d +--- /dev/null ++++ b/src/api/resources/records/types/FieldRecordCounts.ts +@@ -0,0 +1,19 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * @example ++ * { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000, ++ * empty: 0 ++ * } ++ */ ++export interface FieldRecordCounts { ++ total: number; ++ valid: number; ++ error: number; ++ empty: number; ++} +diff --git a/src/api/resources/records/types/RecordCounts.ts b/src/api/resources/records/types/RecordCounts.ts +index ca54327..5b538e2 100644 +--- a/src/api/resources/records/types/RecordCounts.ts ++++ b/src/api/resources/records/types/RecordCounts.ts +@@ -4,2 +4,4 @@ + ++import * as Flatfile from "../../.."; ++ + /** +@@ -17,2 +19,4 @@ export interface RecordCounts { + errorsByField?: Record; ++ /** Counts for valid, error, and total records grouped by field key */ ++ byField?: Record; + } +diff --git a/src/api/resources/records/types/index.ts b/src/api/resources/records/types/index.ts +index 937d372..4b1f724 100644 +--- a/src/api/resources/records/types/index.ts ++++ b/src/api/resources/records/types/index.ts +@@ -4,2 +4,3 @@ export * from "./GetRecordsResponse"; + export * from "./GetRecordsResponseData"; ++export * from "./FieldRecordCounts"; + export * from "./RecordCounts"; +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index d34b962..f236c1d 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -7,4 +7,4 @@ import * as core from "../../../../core"; + import * as Flatfile from "../../.."; +-import * as serializers from "../../../../serialization"; + import urlJoin from "url-join"; ++import * as serializers from "../../../../serialization"; + import * as errors from "../../../../errors"; +@@ -16,3 +16,2 @@ export declare namespace Roles { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -29,11 +28,5 @@ export class Roles { + /** +- * Assign an existing role to the specified actor in the specified resource context +- * @throws {@link Flatfile.BadRequestError} +- * @throws {@link Flatfile.NotFoundError} ++ * List all roles for an account + */ +- public async assign( +- roleId: string, +- request: Flatfile.AssignRoleRequest, +- requestOptions?: Roles.RequestOptions +- ): Promise { ++ public async list(requestOptions?: Roles.RequestOptions): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -41,5 +34,5 @@ export class Roles { + (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/roles/${roleId}` ++ "/roles" + ), +- method: "POST", ++ method: "GET", + headers: { +@@ -49,6 +42,5 @@ export class Roles { + }, + contentType: "application/json", +- body: await serializers.AssignRoleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +@@ -57,3 +49,3 @@ export class Roles { + if (_response.ok) { +- return await serializers.AssignRoleResponse.parseOrThrow(_response.body, { ++ return await serializers.ListRolesResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", +@@ -67,29 +59,6 @@ export class Roles { + if (_response.error.reason === "status-code") { +- switch (_response.error.statusCode) { +- case 400: +- throw new Flatfile.BadRequestError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- case 404: +- throw new Flatfile.NotFoundError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- default: +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); + } +diff --git a/src/api/resources/roles/client/index.ts b/src/api/resources/roles/client/index.ts +index 415726b..cb0ff5c 100644 +--- a/src/api/resources/roles/client/index.ts ++++ b/src/api/resources/roles/client/index.ts +@@ -1 +1 @@ +-export * from "./requests"; ++export {}; +diff --git a/src/api/resources/roles/client/requests/AssignRoleRequest.ts b/src/api/resources/roles/client/requests/AssignRoleRequest.ts +deleted file mode 100644 +index 71805ce..0000000 +--- a/src/api/resources/roles/client/requests/AssignRoleRequest.ts ++++ /dev/null +@@ -1,12 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../../.."; +- +-export interface AssignRoleRequest { +- /** The user, agent, or guest to assign the role to */ +- actorId: Flatfile.ActorIdUnion; +- /** The account, environment, or space context for the role assignment */ +- resourceId: Flatfile.ResourceIdUnion; +-} +diff --git a/src/api/resources/roles/client/requests/index.ts b/src/api/resources/roles/client/requests/index.ts +deleted file mode 100644 +index 3da530d..0000000 +--- a/src/api/resources/roles/client/requests/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export { AssignRoleRequest } from "./AssignRoleRequest"; +diff --git a/src/api/resources/roles/types/ActorRoleResponse.ts b/src/api/resources/roles/types/ActorRoleResponse.ts +new file mode 100644 +index 0000000..fbc4e6d +--- /dev/null ++++ b/src/api/resources/roles/types/ActorRoleResponse.ts +@@ -0,0 +1,14 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface ActorRoleResponse { ++ id: Flatfile.ActorRoleId; ++ roleId: Flatfile.RoleId; ++ actorId: Flatfile.ActorIdUnion; ++ resourceId: Flatfile.ResourceIdUnion; ++ createdAt: Date; ++ updatedAt: Date; ++} +diff --git a/src/api/resources/roles/types/AssignActorRoleRequest.ts b/src/api/resources/roles/types/AssignActorRoleRequest.ts +new file mode 100644 +index 0000000..9ee92d0 +--- /dev/null ++++ b/src/api/resources/roles/types/AssignActorRoleRequest.ts +@@ -0,0 +1,10 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface AssignActorRoleRequest { ++ roleId: Flatfile.RoleId; ++ resourceId: Flatfile.ResourceIdUnion; ++} +diff --git a/src/api/resources/roles/types/AssignRoleResponseData.ts b/src/api/resources/roles/types/AssignRoleResponseData.ts +index ac7434b..57e6ca5 100644 +--- a/src/api/resources/roles/types/AssignRoleResponseData.ts ++++ b/src/api/resources/roles/types/AssignRoleResponseData.ts +@@ -6,3 +6,4 @@ import * as Flatfile from "../../.."; + +-export interface AssignRoleResponseData extends Flatfile.SuccessData { ++export interface AssignRoleResponseData { ++ id: Flatfile.ActorRoleId; + roleId: Flatfile.RoleId; +@@ -10,2 +11,4 @@ export interface AssignRoleResponseData extends Flatfile.SuccessData { + resourceId: Flatfile.ResourceIdUnion; ++ createdAt: Date; ++ updatedAt: Date; + } +diff --git a/src/api/resources/roles/types/ListActorRolesResponse.ts b/src/api/resources/roles/types/ListActorRolesResponse.ts +new file mode 100644 +index 0000000..6db3976 +--- /dev/null ++++ b/src/api/resources/roles/types/ListActorRolesResponse.ts +@@ -0,0 +1,9 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface ListActorRolesResponse { ++ data: Flatfile.ActorRoleResponse[]; ++} +diff --git a/src/api/resources/roles/types/ListRolesResponse.ts b/src/api/resources/roles/types/ListRolesResponse.ts +new file mode 100644 +index 0000000..c97d75d +--- /dev/null ++++ b/src/api/resources/roles/types/ListRolesResponse.ts +@@ -0,0 +1,9 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface ListRolesResponse { ++ data: Flatfile.RoleResponse[]; ++} +diff --git a/src/api/resources/roles/types/RoleResponse.ts b/src/api/resources/roles/types/RoleResponse.ts +new file mode 100644 +index 0000000..6ee4702 +--- /dev/null ++++ b/src/api/resources/roles/types/RoleResponse.ts +@@ -0,0 +1,13 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface RoleResponse { ++ id: Flatfile.RoleId; ++ name: string; ++ accountId: Flatfile.AccountId; ++ createdAt: Date; ++ updatedAt: Date; ++} +diff --git a/src/api/resources/roles/types/index.ts b/src/api/resources/roles/types/index.ts +index a863095..3f3be0a 100644 +--- a/src/api/resources/roles/types/index.ts ++++ b/src/api/resources/roles/types/index.ts +@@ -1 +1,6 @@ ++export * from "./ListRolesResponse"; ++export * from "./RoleResponse"; ++export * from "./ListActorRolesResponse"; ++export * from "./ActorRoleResponse"; ++export * from "./AssignActorRoleRequest"; + export * from "./ActorIdUnion"; +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 7679d5c..04943f4 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Secrets { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -63,3 +62,3 @@ export class Secrets { + }, +@@ -153,3 +152,3 @@ export class Secrets { + }, +@@ -238,3 +237,3 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 3952fd9..c487f45 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -17,3 +17,2 @@ export declare namespace Sheets { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -55,3 +54,3 @@ export class Sheets { + }, +@@ -115,3 +114,3 @@ export class Sheets { + }, +@@ -173,3 +172,3 @@ export class Sheets { + }, +@@ -257,3 +256,3 @@ export class Sheets { + }, +@@ -388,3 +387,3 @@ export class Sheets { + +- const _response = await (this._options.streamingFetcher ?? core.streamingFetcher)({ ++ const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( +@@ -399,8 +398,34 @@ export class Sheets { + }, ++ contentType: "application/json", + queryParameters: _queryParams, ++ responseType: "streaming", + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, + }); +- return _response.data; ++ if (_response.ok) { ++ return _response.body; ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } + } +@@ -484,3 +509,3 @@ export class Sheets { + }, +@@ -544,3 +569,3 @@ export class Sheets { + }, +@@ -634,3 +659,3 @@ export class Sheets { + }, +@@ -696,3 +721,3 @@ export class Sheets { + }, +@@ -780,3 +805,3 @@ export class Sheets { + }, +@@ -921,3 +946,3 @@ export class Sheets { + }, +diff --git a/src/api/resources/sheets/client/requests/GetRecordCountsRequest.ts b/src/api/resources/sheets/client/requests/GetRecordCountsRequest.ts +index 2b303a1..5d0af9e 100644 +--- a/src/api/resources/sheets/client/requests/GetRecordCountsRequest.ts ++++ b/src/api/resources/sheets/client/requests/GetRecordCountsRequest.ts +@@ -46,3 +46,3 @@ export interface GetRecordCountsRequest { + /** +- * If true, the error counts for each field will also be returned ++ * If true, the counts for each field will also be returned + */ +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index ca81e52..caebc05 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Snapshots { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -54,3 +53,3 @@ export class Snapshots { + }, +@@ -144,3 +143,3 @@ export class Snapshots { + }, +@@ -235,3 +234,3 @@ export class Snapshots { + }, +@@ -320,3 +319,3 @@ export class Snapshots { + }, +@@ -409,3 +408,3 @@ export class Snapshots { + }, +@@ -518,3 +517,3 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index fa569d0..49c6138 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Spaces { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -100,3 +99,3 @@ export class Spaces { + }, +@@ -180,3 +179,3 @@ export class Spaces { + }, +@@ -265,3 +264,3 @@ export class Spaces { + }, +@@ -346,3 +345,3 @@ export class Spaces { + }, +@@ -440,3 +439,3 @@ export class Spaces { + }, +@@ -528,3 +527,3 @@ export class Spaces { + }, +@@ -613,3 +612,3 @@ export class Spaces { + }, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index c4271e5..74e691f 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Users { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -57,3 +56,3 @@ export class Users { + }, +@@ -114,3 +113,3 @@ export class Users { + }, +@@ -182,3 +181,3 @@ export class Users { + }, +@@ -243,3 +242,3 @@ export class Users { + }, +@@ -300,3 +299,3 @@ export class Users { + }, +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index e84ae80..85001c3 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Versions { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -43,3 +42,3 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 0409222..7dc38a4 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -16,3 +16,2 @@ export declare namespace Workbooks { + fetcher?: core.FetchFunction; +- streamingFetcher?: core.StreamingFetchFunction; + } +@@ -63,3 +62,3 @@ export class Workbooks { + }, +@@ -168,3 +167,3 @@ export class Workbooks { + }, +@@ -243,3 +242,3 @@ export class Workbooks { + }, +@@ -327,3 +326,3 @@ export class Workbooks { + }, +@@ -422,3 +421,3 @@ export class Workbooks { + }, +@@ -512,3 +511,3 @@ export class Workbooks { + }, +@@ -571,3 +570,3 @@ export class Workbooks { + }, +diff --git a/src/core/fetcher/APIResponse.ts b/src/core/fetcher/APIResponse.ts +index ea838f3..3664d09 100644 +--- a/src/core/fetcher/APIResponse.ts ++++ b/src/core/fetcher/APIResponse.ts +@@ -5,2 +5,3 @@ export interface SuccessfulResponse { + body: T; ++ headers?: Record; + } +diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts +index d2d54ef..19de5d4 100644 +--- a/src/core/fetcher/Fetcher.ts ++++ b/src/core/fetcher/Fetcher.ts +@@ -1,2 +1,2 @@ +-import axios, { AxiosAdapter, AxiosError, AxiosResponse } from "axios"; ++import { default as FormData } from "form-data"; + import qs from "qs"; +@@ -17,5 +17,3 @@ export declare namespace Fetcher { + withCredentials?: boolean; +- responseType?: "json" | "blob"; +- adapter?: AxiosAdapter; +- onUploadProgress?: (event: ProgressEvent) => void; ++ responseType?: "json" | "blob" | "streaming"; + } +@@ -64,25 +62,35 @@ async function fetcherImpl(args: Fetcher.Args): Promise => +- await axios({ +- url: args.url, +- params: args.queryParameters, +- paramsSerializer: (params) => { +- return qs.stringify(params, { arrayFormat: "repeat" }); +- }, ++ const url = ++ Object.keys(args.queryParameters ?? {}).length > 0 ++ ? `${args.url}?${qs.stringify(args.queryParameters, { arrayFormat: "repeat" })}` ++ : args.url; ++ ++ let body: BodyInit | undefined = undefined; ++ if (args.body instanceof FormData) { ++ // @ts-expect-error ++ body = args.body; ++ } else { ++ body = JSON.stringify(args.body); ++ } ++ ++ const fetchFn = typeof fetch == "function" ? fetch : require("node-fetch"); ++ ++ const makeRequest = async (): Promise => { ++ const controller = new AbortController(); ++ let abortId = undefined; ++ if (args.timeoutMs != null) { ++ abortId = setTimeout(() => controller.abort(), args.timeoutMs); ++ } ++ const response = await fetchFn(url, { + method: args.method, + headers, +- data: args.body, +- validateStatus: () => true, +- transformResponse: (response) => response, +- timeout: args.timeoutMs, +- transitional: { +- clarifyTimeoutError: true, +- }, +- withCredentials: args.withCredentials, +- adapter: args.adapter, +- onUploadProgress: args.onUploadProgress, +- maxBodyLength: Infinity, +- maxContentLength: Infinity, +- responseType: args.responseType ?? "json", ++ body, ++ signal: controller.signal, ++ credentials: args.withCredentials ? "include" : undefined, + }); ++ if (abortId != null) { ++ clearTimeout(abortId); ++ } ++ return response; ++ }; + +@@ -107,16 +115,21 @@ async function fetcherImpl(args: Fetcher.Args): Promise 0) { +- try { +- body = JSON.parse(response.data) ?? undefined; +- } catch { +- return { +- ok: false, +- error: { +- reason: "non-json", +- statusCode: response.status, +- rawBody: response.data, +- }, +- }; ++ if (response.body != null && args.responseType === "blob") { ++ body = await response.blob(); ++ } else if (response.body != null && args.responseType === "streaming") { ++ body = response.body; ++ } else { ++ const text = await response.text(); ++ if (text.length > 0) { ++ try { ++ body = JSON.parse(text); ++ } catch (err) { ++ return { ++ ok: false, ++ error: { ++ reason: "non-json", ++ statusCode: response.status, ++ rawBody: text, ++ }, ++ }; ++ } + } +@@ -128,2 +141,3 @@ async function fetcherImpl(args: Fetcher.Args): Promise(args: Fetcher.Args): Promise(args: Fetcher.Args): Promise(args: Fetcher.Args): Promise, header: string): string | undefined { ++ for (const [headerKey, headerValue] of Object.entries(headers)) { ++ if (headerKey.toLowerCase() === header.toLowerCase()) { ++ return headerValue; ++ } ++ } ++ return undefined; ++} +diff --git a/src/core/fetcher/index.ts b/src/core/fetcher/index.ts +index 6becab2..2d658ca 100644 +--- a/src/core/fetcher/index.ts ++++ b/src/core/fetcher/index.ts +@@ -3,2 +3,3 @@ export { fetcher } from "./Fetcher"; + export type { Fetcher, FetchFunction } from "./Fetcher"; ++export { getHeader } from "./getHeader"; + export { Supplier } from "./Supplier"; +diff --git a/src/core/form-data-utils/getFormDataContentLength.ts b/src/core/form-data-utils/getFormDataContentLength.ts +deleted file mode 100644 +index fb2a1a0..0000000 +--- a/src/core/form-data-utils/getFormDataContentLength.ts ++++ /dev/null +@@ -1,13 +0,0 @@ +-import { default as FormData } from "form-data"; +- +-export async function getFormDataContentLength(formData: FormData): Promise { +- return new Promise((resolve, reject) => { +- formData.getLength((err, length) => { +- if (err != null) { +- reject(err); +- } else { +- resolve(length); +- } +- }); +- }); +-} +diff --git a/src/core/form-data-utils/index.ts b/src/core/form-data-utils/index.ts +deleted file mode 100644 +index 0ebc6c9..0000000 +--- a/src/core/form-data-utils/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export { getFormDataContentLength } from "./getFormDataContentLength"; +diff --git a/src/core/index.ts b/src/core/index.ts +index c26940d..e2eb66e 100644 +--- a/src/core/index.ts ++++ b/src/core/index.ts +@@ -2,4 +2,2 @@ export * from "./fetcher"; + export * from "./auth"; +-export * from "./streaming-fetcher"; +-export * from "./form-data-utils"; + export * as serialization from "./schemas"; +diff --git a/src/core/streaming-fetcher/Stream.ts b/src/core/streaming-fetcher/Stream.ts +deleted file mode 100644 +index 216be48..0000000 +--- a/src/core/streaming-fetcher/Stream.ts ++++ /dev/null +@@ -1,43 +0,0 @@ +-import { Readable } from "stream"; +- +-export class Stream implements AsyncIterable { +- private stream: Readable; +- private parse: (val: unknown) => Promise; +- private terminator: string; +- +- constructor({ +- stream, +- parse, +- terminator, +- }: { +- stream: Readable; +- parse: (val: unknown) => Promise; +- terminator: string; +- }) { +- this.stream = stream; +- this.parse = parse; +- this.terminator = terminator; +- } +- +- private async *iterMessages(): AsyncGenerator { +- let previous = ""; +- for await (const chunk of this.stream) { +- const bufferChunk = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk); +- previous += bufferChunk; +- let terminatorIndex: number; +- +- while ((terminatorIndex = previous.indexOf(this.terminator)) >= 0) { +- const line = previous.slice(0, terminatorIndex).trimEnd(); +- const message = await this.parse(JSON.parse(line)); +- yield message; +- previous = previous.slice(terminatorIndex + 1); +- } +- } +- } +- +- async *[Symbol.asyncIterator](): AsyncIterator { +- for await (const message of this.iterMessages()) { +- yield message; +- } +- } +-} +diff --git a/src/core/streaming-fetcher/StreamingFetcher.ts b/src/core/streaming-fetcher/StreamingFetcher.ts +deleted file mode 100644 +index d08f9fc..0000000 +--- a/src/core/streaming-fetcher/StreamingFetcher.ts ++++ /dev/null +@@ -1,69 +0,0 @@ +-import axios, { AxiosAdapter } from "axios"; +-import qs from "qs"; +-import { Readable } from "stream"; +- +-export type StreamingFetchFunction = (args: StreamingFetcher.Args) => Promise; +- +-export declare namespace StreamingFetcher { +- export interface Args { +- url: string; +- method: string; +- headers?: Record; +- queryParameters?: Record; +- body?: unknown; +- timeoutMs?: number; +- withCredentials?: boolean; +- adapter?: AxiosAdapter; +- onUploadProgress?: (event: ProgressEvent) => void; +- onDownloadProgress?: (event: ProgressEvent) => void; +- +- abortController?: AbortController; +- } +- +- export interface Response { +- data: Readable; +- headers: Record; +- } +-} +- +-export const streamingFetcher: StreamingFetchFunction = async (args) => { +- const headers: Record = {}; +- if (args.body !== undefined) { +- headers["Content-Type"] = "application/json"; +- } +- if (args.headers != null) { +- for (const [key, value] of Object.entries(args.headers)) { +- if (value != null) { +- headers[key] = value; +- } +- } +- } +- +- const response = await axios({ +- url: args.url, +- params: args.queryParameters, +- paramsSerializer: (params) => { +- return qs.stringify(params, { arrayFormat: "repeat" }); +- }, +- method: args.method, +- headers, +- data: args.body, +- timeout: args.timeoutMs, +- transitional: { +- clarifyTimeoutError: true, +- }, +- withCredentials: args.withCredentials, +- maxBodyLength: Infinity, +- maxContentLength: Infinity, +- onUploadProgress: args.onUploadProgress, +- onDownloadProgress: args.onDownloadProgress, +- signal: args.abortController?.signal, +- responseType: "stream", +- adapter: args.adapter, +- }); +- +- return { +- data: response.data, +- headers: response.headers, +- }; +-}; +diff --git a/src/core/streaming-fetcher/getHeader.ts b/src/core/streaming-fetcher/getHeader.ts +deleted file mode 100644 +index e59189c..0000000 +--- a/src/core/streaming-fetcher/getHeader.ts ++++ /dev/null +@@ -1,10 +0,0 @@ +-import { StreamingFetcher } from "./StreamingFetcher"; +- +-export function getHeader(response: StreamingFetcher.Response, header: string): string | undefined { +- for (const [headerKey, headerValue] of Object.entries(response.headers)) { +- if (headerKey.toLowerCase() === header.toLowerCase()) { +- return headerValue; +- } +- } +- return undefined; +-} +diff --git a/src/core/streaming-fetcher/index.ts b/src/core/streaming-fetcher/index.ts +deleted file mode 100644 +index b4188da..0000000 +--- a/src/core/streaming-fetcher/index.ts ++++ /dev/null +@@ -1,4 +0,0 @@ +-export { getHeader } from "./getHeader"; +-export { Stream } from "./Stream"; +-export { streamingFetcher } from "./StreamingFetcher"; +-export type { StreamingFetcher, StreamingFetchFunction } from "./StreamingFetcher"; +diff --git a/src/serialization/resources/commons/types/ActorRoleId.ts b/src/serialization/resources/commons/types/ActorRoleId.ts +new file mode 100644 +index 0000000..a39ea56 +--- /dev/null ++++ b/src/serialization/resources/commons/types/ActorRoleId.ts +@@ -0,0 +1,14 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ActorRoleId: core.serialization.Schema = ++ core.serialization.string(); ++ ++export declare namespace ActorRoleId { ++ type Raw = string; ++} +diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts +index 53f1ff7..d92ca92 100644 +--- a/src/serialization/resources/commons/types/index.ts ++++ b/src/serialization/resources/commons/types/index.ts +@@ -16,2 +16,3 @@ export * from "./JobId"; + export * from "./UserId"; ++export * from "./ActorRoleId"; + export * from "./RoleId"; +diff --git a/src/serialization/resources/entitlements/types/Entitlement.ts b/src/serialization/resources/entitlements/types/Entitlement.ts +index 40ff26d..8c819bd 100644 +--- a/src/serialization/resources/entitlements/types/Entitlement.ts ++++ b/src/serialization/resources/entitlements/types/Entitlement.ts +@@ -11,7 +11,3 @@ export const Entitlement: core.serialization.ObjectSchema (await import("../../..")).MappingId), ++ confidence: core.serialization.number().optional(), + createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), +@@ -22,2 +23,3 @@ export declare namespace MappingRule { + id: serializers.MappingId.Raw; ++ confidence?: number | null; + createdBy?: serializers.UserId.Raw | null; +diff --git a/src/serialization/resources/mapping/types/MappingRuleConfig.ts b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +index 278bb13..a7bf3b8 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +@@ -15,4 +15,4 @@ export const MappingRuleConfig: core.serialization.ObjectSchema< + config: core.serialization.any().optional(), +- confidence: core.serialization.number().optional(), +- contributor: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ acceptedAt: core.serialization.date().optional(), ++ acceptedBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), + }); +@@ -24,4 +24,4 @@ export declare namespace MappingRuleConfig { + config?: any | null; +- confidence?: number | null; +- contributor?: serializers.UserId.Raw | null; ++ acceptedAt?: string | null; ++ acceptedBy?: serializers.UserId.Raw | null; + } +diff --git a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +index 7750029..2a9f566 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +@@ -14,2 +14,3 @@ export const MappingRuleOrConfig: core.serialization.ObjectSchema< + id: core.serialization.lazy(async () => (await import("../../..")).MappingId).optional(), ++ confidence: core.serialization.number().optional(), + createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), +@@ -24,2 +25,3 @@ export declare namespace MappingRuleOrConfig { + id?: serializers.MappingId.Raw | null; ++ confidence?: number | null; + createdBy?: serializers.UserId.Raw | null; +diff --git a/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +new file mode 100644 +index 0000000..1096d42 +--- /dev/null ++++ b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +@@ -0,0 +1,16 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const UpdateMappingRulesRequest: core.serialization.Schema< ++ serializers.UpdateMappingRulesRequest.Raw, ++ Flatfile.UpdateMappingRulesRequest ++> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRule)); ++ ++export declare namespace UpdateMappingRulesRequest { ++ type Raw = serializers.MappingRule.Raw[]; ++} +diff --git a/src/serialization/resources/mapping/types/index.ts b/src/serialization/resources/mapping/types/index.ts +index e680b72..14ef3a7 100644 +--- a/src/serialization/resources/mapping/types/index.ts ++++ b/src/serialization/resources/mapping/types/index.ts +@@ -9,2 +9,3 @@ export * from "./MappingRuleOrConfig"; + export * from "./CreateMappingRulesRequest"; ++export * from "./UpdateMappingRulesRequest"; + export * from "./MappingRuleResponse"; +diff --git a/src/serialization/resources/records/types/FieldRecordCounts.ts b/src/serialization/resources/records/types/FieldRecordCounts.ts +new file mode 100644 +index 0000000..d58ed71 +--- /dev/null ++++ b/src/serialization/resources/records/types/FieldRecordCounts.ts +@@ -0,0 +1,26 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const FieldRecordCounts: core.serialization.ObjectSchema< ++ serializers.FieldRecordCounts.Raw, ++ Flatfile.FieldRecordCounts ++> = core.serialization.object({ ++ total: core.serialization.number(), ++ valid: core.serialization.number(), ++ error: core.serialization.number(), ++ empty: core.serialization.number(), ++}); ++ ++export declare namespace FieldRecordCounts { ++ interface Raw { ++ total: number; ++ valid: number; ++ error: number; ++ empty: number; ++ } ++} +diff --git a/src/serialization/resources/records/types/RecordCounts.ts b/src/serialization/resources/records/types/RecordCounts.ts +index 39f0d43..0ab7c36 100644 +--- a/src/serialization/resources/records/types/RecordCounts.ts ++++ b/src/serialization/resources/records/types/RecordCounts.ts +@@ -14,2 +14,8 @@ export const RecordCounts: core.serialization.ObjectSchema (await import("../../..")).FieldRecordCounts) ++ ) ++ .optional(), + }); +@@ -22,2 +28,3 @@ export declare namespace RecordCounts { + errorsByField?: Record | null; ++ byField?: Record | null; + } +diff --git a/src/serialization/resources/records/types/index.ts b/src/serialization/resources/records/types/index.ts +index 937d372..4b1f724 100644 +--- a/src/serialization/resources/records/types/index.ts ++++ b/src/serialization/resources/records/types/index.ts +@@ -4,2 +4,3 @@ export * from "./GetRecordsResponse"; + export * from "./GetRecordsResponseData"; ++export * from "./FieldRecordCounts"; + export * from "./RecordCounts"; +diff --git a/src/serialization/resources/roles/client/index.ts b/src/serialization/resources/roles/client/index.ts +deleted file mode 100644 +index 415726b..0000000 +--- a/src/serialization/resources/roles/client/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export * from "./requests"; +diff --git a/src/serialization/resources/roles/client/requests/AssignRoleRequest.ts b/src/serialization/resources/roles/client/requests/AssignRoleRequest.ts +deleted file mode 100644 +index bf3de45..0000000 +--- a/src/serialization/resources/roles/client/requests/AssignRoleRequest.ts ++++ /dev/null +@@ -1,22 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../../.."; +-import * as Flatfile from "../../../../../api"; +-import * as core from "../../../../../core"; +- +-export const AssignRoleRequest: core.serialization.Schema< +- serializers.AssignRoleRequest.Raw, +- Flatfile.AssignRoleRequest +-> = core.serialization.object({ +- actorId: core.serialization.lazy(async () => (await import("../../../..")).ActorIdUnion), +- resourceId: core.serialization.lazy(async () => (await import("../../../..")).ResourceIdUnion), +-}); +- +-export declare namespace AssignRoleRequest { +- interface Raw { +- actorId: serializers.ActorIdUnion.Raw; +- resourceId: serializers.ResourceIdUnion.Raw; +- } +-} +diff --git a/src/serialization/resources/roles/client/requests/index.ts b/src/serialization/resources/roles/client/requests/index.ts +deleted file mode 100644 +index 3da530d..0000000 +--- a/src/serialization/resources/roles/client/requests/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export { AssignRoleRequest } from "./AssignRoleRequest"; +diff --git a/src/serialization/resources/roles/index.ts b/src/serialization/resources/roles/index.ts +index c9240f8..eea524d 100644 +--- a/src/serialization/resources/roles/index.ts ++++ b/src/serialization/resources/roles/index.ts +@@ -1,2 +1 @@ + export * from "./types"; +-export * from "./client"; +diff --git a/src/serialization/resources/roles/types/ActorRoleResponse.ts b/src/serialization/resources/roles/types/ActorRoleResponse.ts +new file mode 100644 +index 0000000..0027449 +--- /dev/null ++++ b/src/serialization/resources/roles/types/ActorRoleResponse.ts +@@ -0,0 +1,30 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ActorRoleResponse: core.serialization.ObjectSchema< ++ serializers.ActorRoleResponse.Raw, ++ Flatfile.ActorRoleResponse ++> = core.serialization.object({ ++ id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), ++ roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), ++ actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), ++ resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++}); ++ ++export declare namespace ActorRoleResponse { ++ interface Raw { ++ id: serializers.ActorRoleId.Raw; ++ roleId: serializers.RoleId.Raw; ++ actorId: serializers.ActorIdUnion.Raw; ++ resourceId: serializers.ResourceIdUnion.Raw; ++ createdAt: string; ++ updatedAt: string; ++ } ++} +diff --git a/src/serialization/resources/roles/types/AssignActorRoleRequest.ts b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +new file mode 100644 +index 0000000..fad27ea +--- /dev/null ++++ b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const AssignActorRoleRequest: core.serialization.ObjectSchema< ++ serializers.AssignActorRoleRequest.Raw, ++ Flatfile.AssignActorRoleRequest ++> = core.serialization.object({ ++ roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), ++ resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++}); ++ ++export declare namespace AssignActorRoleRequest { ++ interface Raw { ++ roleId: serializers.RoleId.Raw; ++ resourceId: serializers.ResourceIdUnion.Raw; ++ } ++} +diff --git a/src/serialization/resources/roles/types/AssignRoleResponseData.ts b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +index c2f6ae9..6cd2a5a 100644 +--- a/src/serialization/resources/roles/types/AssignRoleResponseData.ts ++++ b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +@@ -11,12 +11,14 @@ export const AssignRoleResponseData: core.serialization.ObjectSchema< + Flatfile.AssignRoleResponseData +-> = core.serialization +- .object({ +- roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), +- actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), +- resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), +- }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SuccessData)); ++> = core.serialization.object({ ++ id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), ++ roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), ++ actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), ++ resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++}); + + export declare namespace AssignRoleResponseData { +- interface Raw extends serializers.SuccessData.Raw { ++ interface Raw { ++ id: serializers.ActorRoleId.Raw; + roleId: serializers.RoleId.Raw; +@@ -24,2 +26,4 @@ export declare namespace AssignRoleResponseData { + resourceId: serializers.ResourceIdUnion.Raw; ++ createdAt: string; ++ updatedAt: string; + } +diff --git a/src/serialization/resources/roles/types/ListActorRolesResponse.ts b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +new file mode 100644 +index 0000000..21b0571 +--- /dev/null ++++ b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ListActorRolesResponse: core.serialization.ObjectSchema< ++ serializers.ListActorRolesResponse.Raw, ++ Flatfile.ListActorRolesResponse ++> = core.serialization.object({ ++ data: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).ActorRoleResponse) ++ ), ++}); ++ ++export declare namespace ListActorRolesResponse { ++ interface Raw { ++ data: serializers.ActorRoleResponse.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/roles/types/ListRolesResponse.ts b/src/serialization/resources/roles/types/ListRolesResponse.ts +new file mode 100644 +index 0000000..988fc50 +--- /dev/null ++++ b/src/serialization/resources/roles/types/ListRolesResponse.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ListRolesResponse: core.serialization.ObjectSchema< ++ serializers.ListRolesResponse.Raw, ++ Flatfile.ListRolesResponse ++> = core.serialization.object({ ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).RoleResponse)), ++}); ++ ++export declare namespace ListRolesResponse { ++ interface Raw { ++ data: serializers.RoleResponse.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/roles/types/RoleResponse.ts b/src/serialization/resources/roles/types/RoleResponse.ts +new file mode 100644 +index 0000000..a96138a +--- /dev/null ++++ b/src/serialization/resources/roles/types/RoleResponse.ts +@@ -0,0 +1,26 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const RoleResponse: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ id: core.serialization.lazy(async () => (await import("../../..")).RoleId), ++ name: core.serialization.string(), ++ accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++ }); ++ ++export declare namespace RoleResponse { ++ interface Raw { ++ id: serializers.RoleId.Raw; ++ name: string; ++ accountId: serializers.AccountId.Raw; ++ createdAt: string; ++ updatedAt: string; ++ } ++} +diff --git a/src/serialization/resources/roles/types/index.ts b/src/serialization/resources/roles/types/index.ts +index a863095..3f3be0a 100644 +--- a/src/serialization/resources/roles/types/index.ts ++++ b/src/serialization/resources/roles/types/index.ts +@@ -1 +1,6 @@ ++export * from "./ListRolesResponse"; ++export * from "./RoleResponse"; ++export * from "./ListActorRolesResponse"; ++export * from "./ActorRoleResponse"; ++export * from "./AssignActorRoleRequest"; + export * from "./ActorIdUnion"; diff --git a/release-notes/1.7.0.diff.txt.result.md b/release-notes/1.7.0.diff.txt.result.md new file mode 100644 index 00000000..b32de5d2 --- /dev/null +++ b/release-notes/1.7.0.diff.txt.result.md @@ -0,0 +1,55 @@ +Here is a summary of the changes in the diff: + +#### General Changes + +- Updated the package version from 1.6.7 to 1.7.0 +- Replaced the axios dependency with node-fetch +- Removed the `streamingFetcher` option from the client configuration + +#### Errors + +- Added a new `ForbiddenError` error class + +#### Types + +- Added a new `ActorRoleId` type +- Updated the `RoleId` example value + +#### Roles + +- Removed the `assign` method from the `Roles` client +- Added a new `list` method to list all roles for an account +- Added types related to listing roles and actor roles: + - `ListRolesResponse` + - `RoleResponse` + - `ListActorRolesResponse` + - `ActorRoleResponse` +- Added types related to assigning and removing actor roles: + - `AssignActorRoleRequest` + - `AssignRoleResponseData` +- Added the following methods to the `Guests` client for managing guest roles: + - `listGuestRoles` + - `assignGuestRole` + - `deleteGuestRole` + +#### Jobs + +- Added a new `hideDefaultButton` property to the `JobOutcome` type +- Added a new `info` property to the `JobUpdate` type + +#### Mapping + +- Added a new `deleteAllHistoryForUser` method to the `Mapping` client +- Added a new `updateRules` method to the `Mapping` client +- Updated the `MappingRule` type to include a `confidence` property +- Updated the `MappingRuleConfig` type to include `acceptedAt` and `acceptedBy` properties instead of `confidence` and `contributor` +- Added a new `UpdateMappingRulesRequest` type + +#### Records + +- Added a new `FieldRecordCounts` type +- Updated the `RecordCounts` type to include a `byField` property of type `FieldRecordCounts` + +#### Entitlements + +- Removed the `description`, `influencesPrivileges`, `createdAt`, and `updatedAt` properties from the `Entitlement` type \ No newline at end of file diff --git a/release-notes/1.7.1.diff.txt b/release-notes/1.7.1.diff.txt new file mode 100644 index 00000000..5991ba12 --- /dev/null +++ b/release-notes/1.7.1.diff.txt @@ -0,0 +1,416 @@ +diff --git a/.fernignore b/.fernignore +index 7e7bea6..3cb717b 100644 +--- a/.fernignore ++++ b/.fernignore +@@ -7,2 +7,3 @@ src/wrapper + src/index.ts ++src/core/fetcher/Fetcher.ts + +diff --git a/package.json b/package.json +index baaeded..7e46313 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.0", ++ "version": "1.7.1", + "private": false, +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 0274431..f1081d5 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { + }, +@@ -125,3 +125,3 @@ export class Agents { + }, +@@ -206,3 +206,3 @@ export class Agents { + }, +@@ -296,3 +296,3 @@ export class Agents { + }, +@@ -386,3 +386,3 @@ export class Agents { + }, +@@ -495,3 +495,3 @@ export class Agents { + }, +@@ -604,3 +604,3 @@ export class Agents { + }, +@@ -695,3 +695,3 @@ export class Agents { + }, +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index cb05eed..d63506d 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { + }, +@@ -98,3 +98,3 @@ export class Apps { + }, +@@ -167,3 +167,3 @@ export class Apps { + }, +@@ -237,3 +237,3 @@ export class Apps { + }, +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 8f09a1f..580c371 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { + }, +@@ -143,3 +143,3 @@ export class Auth { + }, +@@ -234,3 +234,3 @@ export class Auth { + }, +@@ -325,3 +325,3 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index bb8ecaf..e426f7f 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 5511db9..0aebaa2 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { + }, +@@ -131,3 +131,3 @@ export class Commits { + }, +@@ -212,3 +212,3 @@ export class Commits { + }, +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index eccb902..6b95a04 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { + }, +@@ -147,3 +147,3 @@ export class DataRetentionPolicies { + }, +@@ -232,3 +232,3 @@ export class DataRetentionPolicies { + }, +@@ -321,3 +321,3 @@ export class DataRetentionPolicies { + }, +@@ -403,3 +403,3 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index ab803ca..0651286 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { + }, +@@ -145,3 +145,3 @@ export class Documents { + }, +@@ -233,3 +233,3 @@ export class Documents { + }, +@@ -324,3 +324,3 @@ export class Documents { + }, +@@ -409,3 +409,3 @@ export class Documents { + }, +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index bbe3755..c0e64f4 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { + }, +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 3a7e964..75b898d 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { + }, +@@ -126,3 +126,3 @@ export class Environments { + }, +@@ -193,3 +193,3 @@ export class Environments { + }, +@@ -278,3 +278,3 @@ export class Environments { + }, +@@ -369,3 +369,3 @@ export class Environments { + }, +@@ -428,3 +428,3 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 526fc41..6a2cbd5 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { + }, +@@ -156,3 +156,3 @@ export class Events { + }, +@@ -233,3 +233,3 @@ export class Events { + }, +@@ -283,3 +283,3 @@ export class Events { + }, +@@ -354,3 +354,3 @@ export class Events { + }, +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index c9df648..d5b53df 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { + }, +@@ -135,3 +135,3 @@ export class Files { + }, +@@ -206,3 +206,3 @@ export class Files { + }, +@@ -283,3 +283,3 @@ export class Files { + }, +@@ -370,3 +370,3 @@ export class Files { + }, +@@ -448,3 +448,3 @@ export class Files { + }, +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 244441e..4769813 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { + }, +@@ -128,3 +128,3 @@ export class Guests { + }, +@@ -188,3 +188,3 @@ export class Guests { + }, +@@ -244,3 +244,3 @@ export class Guests { + }, +@@ -307,3 +307,3 @@ export class Guests { + }, +@@ -374,3 +374,3 @@ export class Guests { + }, +@@ -434,3 +434,3 @@ export class Guests { + }, +@@ -527,3 +527,3 @@ export class Guests { + }, +@@ -623,3 +623,3 @@ export class Guests { + }, +@@ -717,3 +717,3 @@ export class Guests { + }, +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 9e49188..0dea292 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { + }, +@@ -130,3 +130,3 @@ export class Jobs { + }, +@@ -181,3 +181,3 @@ export class Jobs { + }, +@@ -235,3 +235,3 @@ export class Jobs { + }, +@@ -286,3 +286,3 @@ export class Jobs { + }, +@@ -342,3 +342,3 @@ export class Jobs { + }, +@@ -401,3 +401,3 @@ export class Jobs { + }, +@@ -498,3 +498,3 @@ export class Jobs { + }, +@@ -556,3 +556,3 @@ export class Jobs { + }, +@@ -623,3 +623,3 @@ export class Jobs { + }, +@@ -686,3 +686,3 @@ export class Jobs { + }, +@@ -758,3 +758,3 @@ export class Jobs { + }, +@@ -834,3 +834,3 @@ export class Jobs { + }, +@@ -900,3 +900,3 @@ export class Jobs { + }, +@@ -957,3 +957,3 @@ export class Jobs { + }, +@@ -1013,3 +1013,3 @@ export class Jobs { + }, +@@ -1076,3 +1076,3 @@ export class Jobs { + }, +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index cd4b4b1..b9ddc24 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { + }, +@@ -126,3 +126,3 @@ export class Mapping { + }, +@@ -259,3 +259,3 @@ export class Mapping { + }, +@@ -331,3 +331,3 @@ export class Mapping { + }, +@@ -413,3 +413,3 @@ export class Mapping { + }, +@@ -495,3 +495,3 @@ export class Mapping { + }, +@@ -577,3 +577,3 @@ export class Mapping { + }, +@@ -662,3 +662,3 @@ export class Mapping { + }, +@@ -749,3 +749,3 @@ export class Mapping { + }, +@@ -841,3 +841,3 @@ export class Mapping { + }, +@@ -924,3 +924,3 @@ export class Mapping { + }, +@@ -1012,3 +1012,3 @@ export class Mapping { + }, +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index d432093..5de2ec8 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { + }, +@@ -262,3 +262,3 @@ export class Records { + }, +@@ -364,3 +364,3 @@ export class Records { + }, +@@ -462,3 +462,3 @@ export class Records { + }, +@@ -574,3 +574,3 @@ export class Records { + }, +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index f236c1d..9bfb472 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { + }, +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 04943f4..a634e23 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { + }, +@@ -152,3 +152,3 @@ export class Secrets { + }, +@@ -237,3 +237,3 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index c487f45..f18bf66 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { + }, +@@ -114,3 +114,3 @@ export class Sheets { + }, +@@ -172,3 +172,3 @@ export class Sheets { + }, +@@ -256,3 +256,3 @@ export class Sheets { + }, +@@ -398,3 +398,3 @@ export class Sheets { + }, +@@ -509,3 +509,3 @@ export class Sheets { + }, +@@ -569,3 +569,3 @@ export class Sheets { + }, +@@ -659,3 +659,3 @@ export class Sheets { + }, +@@ -721,3 +721,3 @@ export class Sheets { + }, +@@ -805,3 +805,3 @@ export class Sheets { + }, +@@ -946,3 +946,3 @@ export class Sheets { + }, +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index caebc05..1f6c84e 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { + }, +@@ -143,3 +143,3 @@ export class Snapshots { + }, +@@ -234,3 +234,3 @@ export class Snapshots { + }, +@@ -319,3 +319,3 @@ export class Snapshots { + }, +@@ -408,3 +408,3 @@ export class Snapshots { + }, +@@ -517,3 +517,3 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 49c6138..4777684 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { + }, +@@ -179,3 +179,3 @@ export class Spaces { + }, +@@ -264,3 +264,3 @@ export class Spaces { + }, +@@ -345,3 +345,3 @@ export class Spaces { + }, +@@ -439,3 +439,3 @@ export class Spaces { + }, +@@ -527,3 +527,3 @@ export class Spaces { + }, +@@ -612,3 +612,3 @@ export class Spaces { + }, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 74e691f..dd3e414 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { + }, +@@ -113,3 +113,3 @@ export class Users { + }, +@@ -181,3 +181,3 @@ export class Users { + }, +@@ -242,3 +242,3 @@ export class Users { + }, +@@ -299,3 +299,3 @@ export class Users { + }, +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 85001c3..4da836b 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 7dc38a4..c98fe1e 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -62,3 +62,3 @@ export class Workbooks { + }, +@@ -167,3 +167,3 @@ export class Workbooks { + }, +@@ -242,3 +242,3 @@ export class Workbooks { + }, +@@ -326,3 +326,3 @@ export class Workbooks { + }, +@@ -421,3 +421,3 @@ export class Workbooks { + }, +@@ -511,3 +511,3 @@ export class Workbooks { + }, +@@ -570,3 +570,3 @@ export class Workbooks { + }, +diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts +index 19de5d4..aa709ae 100644 +--- a/src/core/fetcher/Fetcher.ts ++++ b/src/core/fetcher/Fetcher.ts +@@ -71,2 +71,4 @@ async function fetcherImpl(args: Fetcher.Args): Promise; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Accounts { ++ constructor(protected readonly _options: Accounts.Options = {}) {} ++ ++ /** ++ * Get the current account ++ * ++ * @example ++ * await flatfile.accounts.getCurrent() ++ */ ++ public async getCurrent(requestOptions?: Accounts.RequestOptions): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/accounts/current" ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.AccountResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Update the current account ++ * ++ * @example ++ * await flatfile.accounts.updateCurrent({ ++ * defaultAppId: "us_app_YOUR_ID" ++ * }) ++ */ ++ public async updateCurrent( ++ request: Flatfile.AccountPatch, ++ requestOptions?: Accounts.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/accounts/current" ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.AccountPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.AccountResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/accounts/client/index.ts b/src/api/resources/accounts/client/index.ts +new file mode 100644 +index 0000000..cb0ff5c +--- /dev/null ++++ b/src/api/resources/accounts/client/index.ts +@@ -0,0 +1 @@ ++export {}; +diff --git a/src/api/resources/accounts/index.ts b/src/api/resources/accounts/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/accounts/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/accounts/types/Account.ts b/src/api/resources/accounts/types/Account.ts +new file mode 100644 +index 0000000..abc5431 +--- /dev/null ++++ b/src/api/resources/accounts/types/Account.ts +@@ -0,0 +1,32 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * An account ++ * ++ * @example ++ * { ++ * id: "us_acc_YOUR_ID", ++ * name: "MyAccountName", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * } ++ */ ++export interface Account { ++ id: Flatfile.AccountId; ++ name: string; ++ subdomain?: string; ++ vanityDomainDashboard?: string; ++ vanityDomainSpaces?: string; ++ embeddedDomainWhitelist?: string[]; ++ customFromEmail?: string; ++ stripeCustomerId?: string; ++ metadata: Record; ++ createdAt: Date; ++ updatedAt: Date; ++ defaultAppId?: Flatfile.AppId; ++} +diff --git a/src/api/resources/accounts/types/AccountPatch.ts b/src/api/resources/accounts/types/AccountPatch.ts +new file mode 100644 +index 0000000..870403b +--- /dev/null ++++ b/src/api/resources/accounts/types/AccountPatch.ts +@@ -0,0 +1,17 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Properties used to update an account ++ * ++ * @example ++ * { ++ * defaultAppId: "us_app_YOUR_ID" ++ * } ++ */ ++export interface AccountPatch { ++ defaultAppId: Flatfile.AppId; ++} +diff --git a/src/api/resources/accounts/types/AccountResponse.ts b/src/api/resources/accounts/types/AccountResponse.ts +new file mode 100644 +index 0000000..c8afe37 +--- /dev/null ++++ b/src/api/resources/accounts/types/AccountResponse.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: { ++ * id: "us_acc_YOUR_ID", ++ * name: "MyAccountName", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * } ++ * } ++ */ ++export interface AccountResponse { ++ data: Flatfile.Account; ++} +diff --git a/src/api/resources/accounts/types/index.ts b/src/api/resources/accounts/types/index.ts +new file mode 100644 +index 0000000..0f9ca2c +--- /dev/null ++++ b/src/api/resources/accounts/types/index.ts +@@ -0,0 +1,3 @@ ++export * from "./AccountResponse"; ++export * from "./Account"; ++export * from "./AccountPatch"; +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index f1081d5..1097e60 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -32,3 +32,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -45,3 +45,5 @@ export class Agents { + }, +@@ -112,3 +114,3 @@ export class Agents { + const { environmentId, body: _body } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -125,3 +127,5 @@ export class Agents { + }, +@@ -193,3 +197,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -206,3 +210,5 @@ export class Agents { + }, +@@ -268,2 +274,289 @@ export class Agents { + ++ /** ++ * Lists roles assigned to an agent. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async listAgentRoles( ++ agentId: Flatfile.AgentId, ++ requestOptions?: Agents.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/agents/${await serializers.AgentId.jsonOrThrow(agentId)}/roles` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ListActorRolesResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Assigns a role to a agent. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async assignAgentRole( ++ agentId: Flatfile.AgentId, ++ request: Flatfile.AssignActorRoleRequest, ++ requestOptions?: Agents.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/agents/${await serializers.AgentId.jsonOrThrow(agentId)}/roles` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.AssignActorRoleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.AssignRoleResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Removes a role from an agent. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async deleteAgentRole( ++ agentId: Flatfile.AgentId, ++ actorRoleId: Flatfile.ActorRoleId, ++ requestOptions?: Agents.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/agents/${await serializers.AgentId.jsonOrThrow( ++ agentId ++ )}/roles/${await serializers.ActorRoleId.jsonOrThrow(actorRoleId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -283,3 +576,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -296,3 +589,5 @@ export class Agents { + }, +@@ -373,3 +668,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -386,3 +681,5 @@ export class Agents { + }, +@@ -466,3 +763,3 @@ export class Agents { + const { environmentId, spaceId, success, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -495,3 +792,5 @@ export class Agents { + }, +@@ -575,3 +874,3 @@ export class Agents { + const { environmentId, spaceId, success, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -604,3 +903,5 @@ export class Agents { + }, +@@ -682,3 +983,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -695,3 +996,5 @@ export class Agents { + }, +diff --git a/src/api/resources/agents/types/Agent.ts b/src/api/resources/agents/types/Agent.ts +index b360695..f33bf8f 100644 +--- a/src/api/resources/agents/types/Agent.ts ++++ b/src/api/resources/agents/types/Agent.ts +@@ -12,3 +12,4 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", ++ * slug: "default" + * } +diff --git a/src/api/resources/agents/types/AgentConfig.ts b/src/api/resources/agents/types/AgentConfig.ts +index 1012f6e..7599efd 100644 +--- a/src/api/resources/agents/types/AgentConfig.ts ++++ b/src/api/resources/agents/types/AgentConfig.ts +@@ -23,2 +23,4 @@ export interface AgentConfig { + source?: string; ++ /** The slug of the agent */ ++ slug?: string; + } +diff --git a/src/api/resources/agents/types/AgentResponse.ts b/src/api/resources/agents/types/AgentResponse.ts +index 3e7ee60..ccb15b5 100644 +--- a/src/api/resources/agents/types/AgentResponse.ts ++++ b/src/api/resources/agents/types/AgentResponse.ts +@@ -13,3 +13,4 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", ++ * slug: "default" + * } +diff --git a/src/api/resources/agents/types/ListAgentsResponse.ts b/src/api/resources/agents/types/ListAgentsResponse.ts +index f96e094..2cf0c7d 100644 +--- a/src/api/resources/agents/types/ListAgentsResponse.ts ++++ b/src/api/resources/agents/types/ListAgentsResponse.ts +@@ -13,3 +13,4 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", ++ * slug: "default" + * }] +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index d63506d..0daf0a9 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,5 @@ export class Apps { + }, +@@ -98,3 +100,5 @@ export class Apps { + }, +@@ -167,3 +171,5 @@ export class Apps { + }, +@@ -237,3 +243,5 @@ export class Apps { + }, +diff --git a/src/api/resources/apps/types/App.ts b/src/api/resources/apps/types/App.ts +index 2cc545b..9d3909e 100644 +--- a/src/api/resources/apps/types/App.ts ++++ b/src/api/resources/apps/types/App.ts +@@ -21,6 +21,13 @@ import * as Flatfile from "../../.."; + * }, ++ * environmentFilters: { ++ * "type": [ ++ * "PROD", ++ * "DEV" ++ * ], ++ * "exclude_ids": [ ++ * "us_env_123456" ++ * ] ++ * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * deletedAt: undefined, +- * activatedAt: undefined ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * } +@@ -36,2 +43,3 @@ export interface App { + metadata?: any; ++ environmentFilters?: any; + createdAt: Date; +diff --git a/src/api/resources/apps/types/AppCreate.ts b/src/api/resources/apps/types/AppCreate.ts +index b04a843..3ecbf37 100644 +--- a/src/api/resources/apps/types/AppCreate.ts ++++ b/src/api/resources/apps/types/AppCreate.ts +@@ -30,2 +30,3 @@ export interface AppCreate { + metadata?: any; ++ environmentFilters?: any; + } +diff --git a/src/api/resources/apps/types/AppPatch.ts b/src/api/resources/apps/types/AppPatch.ts +index 8ee7606..2d9f71f 100644 +--- a/src/api/resources/apps/types/AppPatch.ts ++++ b/src/api/resources/apps/types/AppPatch.ts +@@ -26,2 +26,3 @@ export interface AppPatch { + metadata?: any; ++ environmentFilters?: any; + activatedAt?: Date; +diff --git a/src/api/resources/apps/types/AppResponse.ts b/src/api/resources/apps/types/AppResponse.ts +index 9e7f8a6..6618c44 100644 +--- a/src/api/resources/apps/types/AppResponse.ts ++++ b/src/api/resources/apps/types/AppResponse.ts +@@ -20,6 +20,13 @@ import * as Flatfile from "../../.."; + * }, ++ * environmentFilters: { ++ * "type": [ ++ * "PROD", ++ * "DEV" ++ * ], ++ * "exclude_ids": [ ++ * "us_env_123456" ++ * ] ++ * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * deletedAt: undefined, +- * activatedAt: undefined ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * } +diff --git a/src/api/resources/apps/types/AppsResponse.ts b/src/api/resources/apps/types/AppsResponse.ts +index 074c27e..7f1337e 100644 +--- a/src/api/resources/apps/types/AppsResponse.ts ++++ b/src/api/resources/apps/types/AppsResponse.ts +@@ -20,6 +20,13 @@ import * as Flatfile from "../../.."; + * }, ++ * environmentFilters: { ++ * "type": [ ++ * "PROD", ++ * "DEV" ++ * ], ++ * "exclude_ids": [ ++ * "us_env_123456" ++ * ] ++ * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * deletedAt: undefined, +- * activatedAt: undefined ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * }] +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 580c371..ba1e4b0 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,5 @@ export class Auth { + }, +@@ -130,3 +132,3 @@ export class Auth { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -143,3 +145,5 @@ export class Auth { + }, +@@ -220,3 +224,3 @@ export class Auth { + const { environmentId, type: type_ } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -234,3 +238,5 @@ export class Auth { + }, +@@ -311,3 +317,3 @@ export class Auth { + const { environmentId, key } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -325,3 +331,5 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index e426f7f..ffd499b 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -55,3 +55,3 @@ export class Cells { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (fieldKey != null) { +@@ -107,3 +107,5 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 0aebaa2..823f9a7 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,5 @@ export class Commits { + }, +@@ -131,3 +133,5 @@ export class Commits { + }, +@@ -212,3 +216,5 @@ export class Commits { + }, +diff --git a/src/api/resources/commons/types/Action.ts b/src/api/resources/commons/types/Action.ts +index d3c651d..b853dae 100644 +--- a/src/api/resources/commons/types/Action.ts ++++ b/src/api/resources/commons/types/Action.ts +@@ -26,6 +26,3 @@ import * as Flatfile from "../../.."; + export interface Action { +- /** +- * **This is deprecated. Use `operation` instead.** +- * +- */ ++ /** **This is deprecated. Use `operation` instead.** */ + slug?: string; +@@ -40,6 +37,3 @@ export interface Action { + messages?: Flatfile.ActionMessage[]; +- /** +- * **This is deprecated.** +- * +- */ ++ /** **This is deprecated.** */ + type?: string; +@@ -55,11 +49,5 @@ export interface Action { + icon?: string; +- /** +- * **This is deprecated. Use `constraints` instead.** +- * +- */ ++ /** **This is deprecated. Use `constraints` instead.** */ + requireAllValid?: boolean; +- /** +- * **This is deprecated. Use `constraints` instead.** +- * +- */ ++ /** **This is deprecated. Use `constraints` instead.** */ + requireSelection?: boolean; +diff --git a/src/api/resources/commons/types/ActionMessageType.ts b/src/api/resources/commons/types/ActionMessageType.ts +index 9af6b66..17cafd6 100644 +--- a/src/api/resources/commons/types/ActionMessageType.ts ++++ b/src/api/resources/commons/types/ActionMessageType.ts +@@ -4,8 +4,6 @@ + +-export type ActionMessageType = "success" | "error" | "warning" | "info"; ++export type ActionMessageType = "error" | "info"; + + export const ActionMessageType = { +- Success: "success", + Error: "error", +- Warning: "warning", + Info: "info", +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 6b95a04..406b614 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -42,3 +42,3 @@ export class DataRetentionPolicies { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -58,3 +58,5 @@ export class DataRetentionPolicies { + }, +@@ -147,3 +149,5 @@ export class DataRetentionPolicies { + }, +@@ -232,3 +236,5 @@ export class DataRetentionPolicies { + }, +@@ -321,3 +327,5 @@ export class DataRetentionPolicies { + }, +@@ -403,3 +411,5 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 0651286..5dfe329 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,5 @@ export class Documents { + }, +@@ -145,3 +147,5 @@ export class Documents { + }, +@@ -233,3 +237,5 @@ export class Documents { + }, +@@ -324,3 +330,5 @@ export class Documents { + }, +@@ -409,3 +417,5 @@ export class Documents { + }, +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index c0e64f4..0e7ec44 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -42,3 +42,3 @@ export class Entitlements { + const { resourceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["resourceId"] = resourceId; +@@ -55,3 +55,5 @@ export class Entitlements { + }, +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 75b898d..b04aa1c 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -31,3 +31,3 @@ export class Environments { + * @example +- * await flatfile.environments.list({}) ++ * await flatfile.environments.list() + */ +@@ -38,3 +38,3 @@ export class Environments { + const { pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -58,3 +58,5 @@ export class Environments { + }, +@@ -126,3 +128,5 @@ export class Environments { + }, +@@ -180,3 +184,3 @@ export class Environments { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -193,3 +197,5 @@ export class Environments { + }, +@@ -278,3 +284,5 @@ export class Environments { + }, +@@ -369,3 +377,5 @@ export class Environments { + }, +@@ -428,3 +438,5 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 6a2cbd5..1efeaa9 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -31,3 +31,3 @@ export class Events { + * @example +- * await flatfile.events.list({}) ++ * await flatfile.events.list() + */ +@@ -38,3 +38,3 @@ export class Events { + const { environmentId, spaceId, domain, topic, since, pageSize, pageNumber, includeAcknowledged } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -82,3 +82,5 @@ export class Events { + }, +@@ -156,3 +158,5 @@ export class Events { + }, +@@ -233,3 +237,5 @@ export class Events { + }, +@@ -283,3 +289,5 @@ export class Events { + }, +@@ -327,3 +335,3 @@ export class Events { + * @example +- * await flatfile.events.getEventToken({}) ++ * await flatfile.events.getEventToken() + */ +@@ -334,3 +342,3 @@ export class Events { + const { scope, spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (scope != null) { +@@ -354,3 +362,5 @@ export class Events { + }, +diff --git a/src/api/resources/events/types/Context.ts b/src/api/resources/events/types/Context.ts +index 117acb2..72c7314 100644 +--- a/src/api/resources/events/types/Context.ts ++++ b/src/api/resources/events/types/Context.ts +@@ -41,2 +41,3 @@ export interface Context { + actorId?: string; ++ appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/events/types/Domain.ts b/src/api/resources/events/types/Domain.ts +index 36b10c1..faf303e 100644 +--- a/src/api/resources/events/types/Domain.ts ++++ b/src/api/resources/events/types/Domain.ts +@@ -10,3 +10,3 @@ + */ +-export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program" | "secret"; ++export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program" | "secret" | "cron"; + +@@ -21,2 +21,3 @@ export const Domain = { + Secret: "secret", ++ Cron: "cron", + } as const; +diff --git a/src/api/resources/events/types/Event.ts b/src/api/resources/events/types/Event.ts +index 1ec89fd..20f2d64 100644 +--- a/src/api/resources/events/types/Event.ts ++++ b/src/api/resources/events/types/Event.ts +@@ -54,2 +54,3 @@ export type Event = + | Flatfile.Event.SheetDeleted ++ | Flatfile.Event.SheetCountsUpdated + | Flatfile.Event.SnapshotCreated +@@ -162,2 +163,6 @@ export declare namespace Event { + ++ interface SheetCountsUpdated extends Flatfile.GenericEvent { ++ topic: "sheet:counts-updated"; ++ } ++ + interface SnapshotCreated extends Flatfile.GenericEvent { +diff --git a/src/api/resources/events/types/EventTopic.ts b/src/api/resources/events/types/EventTopic.ts +index 9fdb9a0..589a8a2 100644 +--- a/src/api/resources/events/types/EventTopic.ts ++++ b/src/api/resources/events/types/EventTopic.ts +@@ -31,2 +31,3 @@ export type EventTopic = + | "sheet:deleted" ++ | "sheet:counts-updated" + | "snapshot:created" +@@ -56,3 +57,7 @@ export type EventTopic = + | "secret:updated" +- | "secret:deleted"; ++ | "secret:deleted" ++ | "cron:5-minutes" ++ | "cron:hourly" ++ | "cron:daily" ++ | "cron:weekly"; + +@@ -79,2 +84,3 @@ export const EventTopic = { + SheetDeleted: "sheet:deleted", ++ SheetCountsUpdated: "sheet:counts-updated", + SnapshotCreated: "snapshot:created", +@@ -105,2 +111,6 @@ export const EventTopic = { + SecretDeleted: "secret:deleted", ++ Cron5Minutes: "cron:5-minutes", ++ CronHourly: "cron:hourly", ++ CronDaily: "cron:daily", ++ CronWeekly: "cron:weekly", + } as const; +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index d5b53df..5baff22 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -35,3 +35,3 @@ export class Files { + const { spaceId, pageSize, pageNumber, mode } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -63,3 +63,5 @@ export class Files { + }, +@@ -135,3 +137,5 @@ export class Files { + }, +@@ -206,3 +210,5 @@ export class Files { + }, +@@ -283,3 +289,5 @@ export class Files { + }, +@@ -370,3 +378,5 @@ export class Files { + }, +@@ -448,3 +458,5 @@ export class Files { + }, +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +new file mode 100644 +index 0000000..e4dfeca +--- /dev/null ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -0,0 +1,457 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as environments from "../../../../environments"; ++import * as core from "../../../../core"; ++import * as Flatfile from "../../.."; ++import * as serializers from "../../../../serialization"; ++import urlJoin from "url-join"; ++import * as errors from "../../../../errors"; ++ ++export declare namespace Foreigndb { ++ interface Options { ++ environment?: core.Supplier; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Foreigndb { ++ constructor(protected readonly _options: Foreigndb.Options = {}) {} ++ ++ /** ++ * Restore a database from a backup ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async restore( ++ workbookId: string, ++ request: Flatfile.RestoreDatabaseRequest, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.RestoreDatabaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.RestoreDatabaseResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Get database user credentials ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async getDatabaseUser( ++ workbookId: string, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}/user` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.GetDatabaseUserResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Get the database information ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async getDatabaseInfo( ++ workbookId: string, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.GetDatabaseResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Delete the database ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async deleteDatabase( ++ workbookId: string, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Persist a file in s3 object storage ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async upload( ++ workbookId: string, ++ request: Flatfile.UploadToObjectStorageRequest, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}/storage` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UploadToObjectStorageRequest.jsonOrThrow(request, { ++ unrecognizedObjectKeys: "strip", ++ }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/foreigndb/client/index.ts b/src/api/resources/foreigndb/client/index.ts +new file mode 100644 +index 0000000..cb0ff5c +--- /dev/null ++++ b/src/api/resources/foreigndb/client/index.ts +@@ -0,0 +1 @@ ++export {}; +diff --git a/src/api/resources/foreigndb/index.ts b/src/api/resources/foreigndb/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/foreigndb/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/foreigndb/types/DatabaseTask.ts b/src/api/resources/foreigndb/types/DatabaseTask.ts +new file mode 100644 +index 0000000..2ef7873 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/DatabaseTask.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties of a database task ++ */ ++export interface DatabaseTask { ++ /** The task status */ ++ status: string; ++ /** The task type */ ++ type: string; ++ /** The task progress */ ++ progress: number; ++} +diff --git a/src/api/resources/foreigndb/types/GetDatabaseResponse.ts b/src/api/resources/foreigndb/types/GetDatabaseResponse.ts +new file mode 100644 +index 0000000..f492c2d +--- /dev/null ++++ b/src/api/resources/foreigndb/types/GetDatabaseResponse.ts +@@ -0,0 +1,9 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface GetDatabaseResponse { ++ task: Flatfile.DatabaseTask; ++} +diff --git a/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts b/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts +new file mode 100644 +index 0000000..d0208fb +--- /dev/null ++++ b/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts +@@ -0,0 +1,13 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties of the database user ++ */ ++export interface GetDatabaseUserResponse { ++ /** the database user username */ ++ username: string; ++ /** the database user password */ ++ password: string; ++} +diff --git a/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts b/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts +new file mode 100644 +index 0000000..18c0c10 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties required to restore a database ++ */ ++export interface RestoreDatabaseRequest { ++ /** the fileId of the backup to be restored */ ++ fileId: string; ++} +diff --git a/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts b/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts +new file mode 100644 +index 0000000..a4a1fe1 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties of a restored database ++ */ ++export interface RestoreDatabaseResponse { ++ /** the host to the restored database */ ++ host: string; ++ /** the port to the restored database */ ++ port: number; ++ /** the database name to the restored database */ ++ dbname: string; ++} +diff --git a/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts b/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts +new file mode 100644 +index 0000000..52d0ce8 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties required to upload a file to object storage ++ */ ++export interface UploadToObjectStorageRequest { ++ /** the ID of the file to send to object storage */ ++ fileId: string; ++} +diff --git a/src/api/resources/foreigndb/types/index.ts b/src/api/resources/foreigndb/types/index.ts +new file mode 100644 +index 0000000..8086286 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/index.ts +@@ -0,0 +1,6 @@ ++export * from "./UploadToObjectStorageRequest"; ++export * from "./RestoreDatabaseRequest"; ++export * from "./RestoreDatabaseResponse"; ++export * from "./GetDatabaseResponse"; ++export * from "./DatabaseTask"; ++export * from "./GetDatabaseUserResponse"; +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 4769813..6d4051c 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -40,3 +40,3 @@ export class Guests { + const { spaceId, email } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["spaceId"] = spaceId; +@@ -57,3 +57,5 @@ export class Guests { + }, +@@ -128,3 +130,5 @@ export class Guests { + }, +@@ -188,3 +192,5 @@ export class Guests { + }, +@@ -244,3 +250,5 @@ export class Guests { + }, +@@ -307,3 +315,5 @@ export class Guests { + }, +@@ -350,3 +360,3 @@ export class Guests { + * @example +- * await flatfile.guests.getGuestToken("us_g_YOUR_ID", {}) ++ * await flatfile.guests.getGuestToken("us_g_YOUR_ID") + */ +@@ -358,3 +368,3 @@ export class Guests { + const { spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -374,3 +384,5 @@ export class Guests { + }, +@@ -434,3 +446,5 @@ export class Guests { + }, +@@ -527,3 +541,5 @@ export class Guests { + }, +@@ -623,3 +639,5 @@ export class Guests { + }, +@@ -717,3 +735,5 @@ export class Guests { + }, +diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts +index 080ee96..7ddc203 100644 +--- a/src/api/resources/index.ts ++++ b/src/api/resources/index.ts +@@ -1 +1,3 @@ ++export * as accounts from "./accounts"; ++export * from "./accounts/types"; + export * as agents from "./agents"; +@@ -24,2 +26,4 @@ export * as files from "./files"; + export * from "./files/types"; ++export * as foreigndb from "./foreigndb"; ++export * from "./foreigndb/types"; + export * as guests from "./guests"; +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 0dea292..c46dd6d 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -32,3 +32,3 @@ export class Jobs { + const { environmentId, spaceId, workbookId, fileId, parentId, pageSize, pageNumber, sortDirection } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -76,3 +76,5 @@ export class Jobs { + }, +@@ -130,3 +132,5 @@ export class Jobs { + }, +@@ -181,3 +185,5 @@ export class Jobs { + }, +@@ -235,3 +241,5 @@ export class Jobs { + }, +@@ -286,3 +294,5 @@ export class Jobs { + }, +@@ -342,3 +352,5 @@ export class Jobs { + }, +@@ -401,3 +413,5 @@ export class Jobs { + }, +@@ -498,3 +512,5 @@ export class Jobs { + }, +@@ -556,3 +572,5 @@ export class Jobs { + }, +@@ -623,3 +641,5 @@ export class Jobs { + }, +@@ -686,3 +706,5 @@ export class Jobs { + }, +@@ -758,3 +780,5 @@ export class Jobs { + }, +@@ -834,3 +858,5 @@ export class Jobs { + }, +@@ -900,3 +926,5 @@ export class Jobs { + }, +@@ -957,3 +985,5 @@ export class Jobs { + }, +@@ -1013,3 +1043,5 @@ export class Jobs { + }, +@@ -1057,2 +1089,3 @@ export class Jobs { + * await flatfile.jobs.split("us_jb_YOUR_ID", { ++ * parts: [{}], + * runInParallel: true +@@ -1076,3 +1109,5 @@ export class Jobs { + }, +diff --git a/src/api/resources/jobs/types/ExportOptions.ts b/src/api/resources/jobs/types/ExportOptions.ts +index fb0af40..76b5ada 100644 +--- a/src/api/resources/jobs/types/ExportOptions.ts ++++ b/src/api/resources/jobs/types/ExportOptions.ts +@@ -25,6 +25,3 @@ export interface ExportOptions { + q?: string; +- /** +- * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * +- */ ++ /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts b/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts +index ccd853a..21d5ec0 100644 +--- a/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts ++++ b/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts +@@ -17,6 +17,3 @@ export interface FindAndReplaceJobConfig { + q?: string; +- /** +- * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * +- */ ++ /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/jobs/types/Job.ts b/src/api/resources/jobs/types/Job.ts +index 7aba335..b97c5de 100644 +--- a/src/api/resources/jobs/types/Job.ts ++++ b/src/api/resources/jobs/types/Job.ts +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobPlan.ts b/src/api/resources/jobs/types/JobPlan.ts +index 3702174..93db0fa 100644 +--- a/src/api/resources/jobs/types/JobPlan.ts ++++ b/src/api/resources/jobs/types/JobPlan.ts +@@ -22,3 +22,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobPlanResponse.ts b/src/api/resources/jobs/types/JobPlanResponse.ts +index 40723bb..f37035f 100644 +--- a/src/api/resources/jobs/types/JobPlanResponse.ts ++++ b/src/api/resources/jobs/types/JobPlanResponse.ts +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobResponse.ts b/src/api/resources/jobs/types/JobResponse.ts +index eb4b4ab..f1c5ff8 100644 +--- a/src/api/resources/jobs/types/JobResponse.ts ++++ b/src/api/resources/jobs/types/JobResponse.ts +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobSplitDetails.ts b/src/api/resources/jobs/types/JobSplitDetails.ts +index fd46de6..961e31c 100644 +--- a/src/api/resources/jobs/types/JobSplitDetails.ts ++++ b/src/api/resources/jobs/types/JobSplitDetails.ts +@@ -11,2 +11,3 @@ import * as Flatfile from "../../.."; + * { ++ * parts: [{}], + * runInParallel: true +diff --git a/src/api/resources/jobs/types/JobUpdate.ts b/src/api/resources/jobs/types/JobUpdate.ts +index 0f938e5..afaa7a5 100644 +--- a/src/api/resources/jobs/types/JobUpdate.ts ++++ b/src/api/resources/jobs/types/JobUpdate.ts +@@ -11,3 +11,3 @@ import * as Flatfile from "../../.."; + * { +- * config: undefined, ++ * config: {}, + * status: Flatfile.JobStatus.Complete, +diff --git a/src/api/resources/jobs/types/ListJobsResponse.ts b/src/api/resources/jobs/types/ListJobsResponse.ts +index eb997d2..2df4075 100644 +--- a/src/api/resources/jobs/types/ListJobsResponse.ts ++++ b/src/api/resources/jobs/types/ListJobsResponse.ts +@@ -25,3 +25,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/MutateJobConfig.ts b/src/api/resources/jobs/types/MutateJobConfig.ts +index a95fa04..dd23cc9 100644 +--- a/src/api/resources/jobs/types/MutateJobConfig.ts ++++ b/src/api/resources/jobs/types/MutateJobConfig.ts +@@ -17,6 +17,3 @@ export interface MutateJobConfig { + q?: string; +- /** +- * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * +- */ ++ /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index b9ddc24..c8d4fd7 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,5 @@ export class Mapping { + }, +@@ -126,3 +128,5 @@ export class Mapping { + }, +@@ -207,3 +211,3 @@ export class Mapping { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -259,3 +263,5 @@ export class Mapping { + }, +@@ -331,3 +337,5 @@ export class Mapping { + }, +@@ -413,3 +421,5 @@ export class Mapping { + }, +@@ -495,3 +505,5 @@ export class Mapping { + }, +@@ -577,3 +589,5 @@ export class Mapping { + }, +@@ -662,3 +676,5 @@ export class Mapping { + }, +@@ -749,3 +765,5 @@ export class Mapping { + }, +@@ -841,3 +859,5 @@ export class Mapping { + }, +@@ -924,3 +944,5 @@ export class Mapping { + }, +@@ -1012,3 +1034,5 @@ export class Mapping { + }, +diff --git a/src/api/resources/property/types/EnumPropertyOption.ts b/src/api/resources/property/types/EnumPropertyOption.ts +index 8586459..632ac14 100644 +--- a/src/api/resources/property/types/EnumPropertyOption.ts ++++ b/src/api/resources/property/types/EnumPropertyOption.ts +@@ -15,3 +15,3 @@ export interface EnumPropertyOption { + meta?: Record; +- /** The value or ID of this option. This value will be sent in egress. The type is a string | integer | boolean. */ ++ /** The value or ID of this option. This value will be sent in egress. The type is a string | integer | boolean. */ + value?: any; +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 5de2ec8..5b8eb36 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -33,3 +33,3 @@ export class Records { + * @example +- * await flatfile.records.get("us_sh_YOUR_ID", {}) ++ * await flatfile.records.get("us_sh_YOUR_ID") + */ +@@ -61,3 +61,3 @@ export class Records { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -153,3 +153,5 @@ export class Records { + }, +@@ -227,3 +229,3 @@ export class Records { + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -232,3 +234,3 @@ export class Records { + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -237,3 +239,3 @@ export class Records { + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -262,3 +264,5 @@ export class Records { + }, +@@ -332,3 +336,3 @@ export class Records { + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -337,3 +341,3 @@ export class Records { + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -342,3 +346,3 @@ export class Records { + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -364,3 +368,5 @@ export class Records { + }, +@@ -438,3 +444,3 @@ export class Records { + sheetId: Flatfile.SheetId, +- request: Flatfile.DeleteRecordsRequest = {}, ++ request: Flatfile.DeleteRecordsRequest, + requestOptions?: Records.RequestOptions +@@ -442,9 +448,7 @@ export class Records { + const { ids } = request; +- const _queryParams: Record = {}; +- if (ids != null) { +- if (Array.isArray(ids)) { +- _queryParams["ids"] = ids.map((item) => item); +- } else { +- _queryParams["ids"] = ids; +- } ++ const _queryParams: Record = {}; ++ if (Array.isArray(ids)) { ++ _queryParams["ids"] = ids.map((item) => item); ++ } else { ++ _queryParams["ids"] = ids; + } +@@ -462,3 +466,5 @@ export class Records { + }, +@@ -537,4 +543,4 @@ export class Records { + ): Promise { +- const { filter, filterField, searchValue, searchField, ids, ..._body } = request; +- const _queryParams: Record = {}; ++ const { filter, filterField, searchValue, searchField, ids, q, ..._body } = request; ++ const _queryParams: Record = {}; + if (filter != null) { +@@ -563,2 +569,6 @@ export class Records { + ++ if (q != null) { ++ _queryParams["q"] = q; ++ } ++ + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -574,3 +584,5 @@ export class Records { + }, +diff --git a/src/api/resources/records/client/requests/DeleteRecordsRequest.ts b/src/api/resources/records/client/requests/DeleteRecordsRequest.ts +index 7bf8a33..223ce40 100644 +--- a/src/api/resources/records/client/requests/DeleteRecordsRequest.ts ++++ b/src/api/resources/records/client/requests/DeleteRecordsRequest.ts +@@ -14,6 +14,5 @@ export interface DeleteRecordsRequest { + /** +- * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * ++ * A list of record IDs to delete. Maximum of 100 allowed. + */ +- ids?: Flatfile.RecordId | Flatfile.RecordId[]; ++ ids: Flatfile.RecordId | Flatfile.RecordId[]; + } +diff --git a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index c8bc80f..768efa5 100644 +--- a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -22,5 +22,8 @@ export interface FindAndReplaceRecordRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * + */ + ids?: Flatfile.RecordId | Flatfile.RecordId[]; ++ /** ++ * An FFQL query used to filter the result set ++ */ ++ q?: string; + /** A value to find for a given field in a sheet. For exact matches, wrap the value in double quotes ("Bob") */ +diff --git a/src/api/resources/records/client/requests/GetRecordsRequest.ts b/src/api/resources/records/client/requests/GetRecordsRequest.ts +index b1cbba2..9a48215 100644 +--- a/src/api/resources/records/client/requests/GetRecordsRequest.ts ++++ b/src/api/resources/records/client/requests/GetRecordsRequest.ts +@@ -32,3 +32,2 @@ export interface GetRecordsRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records. Maximum of 100 allowed. +- * + */ +@@ -36,3 +35,3 @@ export interface GetRecordsRequest { + /** +- * Number of records to return in a page (default 1000 if pageNumber included) ++ * Number of records to return in a page (default 10,000) + */ +diff --git a/src/api/resources/records/types/DiffRecord.ts b/src/api/resources/records/types/DiffRecord.ts +index cd297a6..432c94f 100644 +--- a/src/api/resources/records/types/DiffRecord.ts ++++ b/src/api/resources/records/types/DiffRecord.ts +@@ -12,12 +12,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "John", ++ * value: "Johns" + * }, + * "lastName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "Doe", ++ * value: "Does" + * }, + * "email": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "john.doe@example.com", ++ * value: "john.doe@example.com" + * } +diff --git a/src/api/resources/records/types/DiffRecords.ts b/src/api/resources/records/types/DiffRecords.ts +index 9d9bf91..9c4e428 100644 +--- a/src/api/resources/records/types/DiffRecords.ts ++++ b/src/api/resources/records/types/DiffRecords.ts +@@ -14,12 +14,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "John", ++ * value: "Johns" + * }, + * "lastName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "Doe", ++ * value: "Does" + * }, + * "email": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "john.doe@example.com", ++ * value: "john.doe@example.com" + * } +diff --git a/src/api/resources/records/types/DiffRecordsResponse.ts b/src/api/resources/records/types/DiffRecordsResponse.ts +index 2f1a25d..0bc082d 100644 +--- a/src/api/resources/records/types/DiffRecordsResponse.ts ++++ b/src/api/resources/records/types/DiffRecordsResponse.ts +@@ -13,12 +13,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "John", ++ * value: "Johns" + * }, + * "lastName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "Doe", ++ * value: "Does" + * }, + * "email": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "john.doe@example.com", ++ * value: "john.doe@example.com" + * } +diff --git a/src/api/resources/records/types/GetRecordsResponse.ts b/src/api/resources/records/types/GetRecordsResponse.ts +index 160b2ba..1dc2898 100644 +--- a/src/api/resources/records/types/GetRecordsResponse.ts ++++ b/src/api/resources/records/types/GetRecordsResponse.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/GetRecordsResponseData.ts b/src/api/resources/records/types/GetRecordsResponseData.ts +index df58c87..258b428 100644 +--- a/src/api/resources/records/types/GetRecordsResponseData.ts ++++ b/src/api/resources/records/types/GetRecordsResponseData.ts +@@ -15,3 +15,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -27,3 +27,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordBase.ts b/src/api/resources/records/types/RecordBase.ts +index ab2ae97..d19d0f7 100644 +--- a/src/api/resources/records/types/RecordBase.ts ++++ b/src/api/resources/records/types/RecordBase.ts +@@ -21,3 +21,5 @@ export interface RecordBase { + commitId?: Flatfile.CommitId; ++ /** Auto-generated value based on whether the record contains a field with an error message. Cannot be set via the API. */ + valid?: boolean; ++ /** This record level `messages` property is deprecated and no longer stored or used. Use the `messages` property on the individual cell values instead. This property will be removed in a future release. */ + messages?: Flatfile.ValidationMessage[]; +diff --git a/src/api/resources/records/types/RecordData.ts b/src/api/resources/records/types/RecordData.ts +index 6860670..d629418 100644 +--- a/src/api/resources/records/types/RecordData.ts ++++ b/src/api/resources/records/types/RecordData.ts +@@ -12,3 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -17,3 +17,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -22,3 +22,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordDataWithLinks.ts b/src/api/resources/records/types/RecordDataWithLinks.ts +index 0005027..103aed2 100644 +--- a/src/api/resources/records/types/RecordDataWithLinks.ts ++++ b/src/api/resources/records/types/RecordDataWithLinks.ts +@@ -12,3 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -18,3 +18,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -24,3 +24,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -34,3 +34,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "Suzie", + * messages: [], +@@ -40,3 +40,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Q", + * messages: [], +@@ -46,3 +46,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "suzie.q@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordWithLinks.ts b/src/api/resources/records/types/RecordWithLinks.ts +index 267987a..50a1103 100644 +--- a/src/api/resources/records/types/RecordWithLinks.ts ++++ b/src/api/resources/records/types/RecordWithLinks.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -41,3 +41,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "Suzie", + * messages: [], +@@ -47,3 +47,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Q", + * messages: [], +@@ -53,3 +53,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "suzie.q@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/Record_.ts b/src/api/resources/records/types/Record_.ts +index bd6b1e4..8b0eb8f 100644 +--- a/src/api/resources/records/types/Record_.ts ++++ b/src/api/resources/records/types/Record_.ts +@@ -16,3 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/Records.ts b/src/api/resources/records/types/Records.ts +index ac4adbd..c3a2de0 100644 +--- a/src/api/resources/records/types/Records.ts ++++ b/src/api/resources/records/types/Records.ts +@@ -16,3 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordsResponse.ts b/src/api/resources/records/types/RecordsResponse.ts +index c1add59..022aa70 100644 +--- a/src/api/resources/records/types/RecordsResponse.ts ++++ b/src/api/resources/records/types/RecordsResponse.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordsResponseData.ts b/src/api/resources/records/types/RecordsResponseData.ts +index ef6f3a8..867ed54 100644 +--- a/src/api/resources/records/types/RecordsResponseData.ts ++++ b/src/api/resources/records/types/RecordsResponseData.ts +@@ -13,3 +13,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -19,3 +19,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -25,3 +25,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordsWithLinks.ts b/src/api/resources/records/types/RecordsWithLinks.ts +index 1bb3f2a..a3e1374 100644 +--- a/src/api/resources/records/types/RecordsWithLinks.ts ++++ b/src/api/resources/records/types/RecordsWithLinks.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 9bfb472..cc59587 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,5 @@ export class Roles { + }, +diff --git a/src/api/resources/roles/types/AssignActorRoleRequest.ts b/src/api/resources/roles/types/AssignActorRoleRequest.ts +index 9ee92d0..2083319 100644 +--- a/src/api/resources/roles/types/AssignActorRoleRequest.ts ++++ b/src/api/resources/roles/types/AssignActorRoleRequest.ts +@@ -6,2 +6,15 @@ import * as Flatfile from "../../.."; + ++/** ++ * @example ++ * { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID" ++ * } ++ * ++ * @example ++ * { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID" ++ * } ++ */ + export interface AssignActorRoleRequest { +diff --git a/src/api/resources/roles/types/ResourceIdUnion.ts b/src/api/resources/roles/types/ResourceIdUnion.ts +index cc12385..627781c 100644 +--- a/src/api/resources/roles/types/ResourceIdUnion.ts ++++ b/src/api/resources/roles/types/ResourceIdUnion.ts +@@ -6,2 +6,12 @@ import * as Flatfile from "../../.."; + ++/** ++ * @example ++ * "us_acc_YOUR_ID" ++ * ++ * @example ++ * "us_env_YOUR_ID" ++ * ++ * @example ++ * "us_sp_YOUR_ID" ++ */ + export type ResourceIdUnion = Flatfile.AccountId | Flatfile.EnvironmentId | Flatfile.SpaceId; +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index a634e23..a63eaf5 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -42,3 +42,3 @@ export class Secrets { + const { environmentId, spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -62,3 +62,5 @@ export class Secrets { + }, +@@ -152,3 +154,5 @@ export class Secrets { + }, +@@ -237,3 +241,5 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index f18bf66..1945457 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -41,3 +41,3 @@ export class Sheets { + const { workbookId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["workbookId"] = workbookId; +@@ -54,3 +54,5 @@ export class Sheets { + }, +@@ -114,3 +116,5 @@ export class Sheets { + }, +@@ -172,3 +176,5 @@ export class Sheets { + }, +@@ -256,3 +262,5 @@ export class Sheets { + }, +@@ -338,3 +346,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -398,3 +406,5 @@ export class Sheets { + }, +@@ -457,3 +467,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -509,3 +519,5 @@ export class Sheets { + }, +@@ -569,3 +581,5 @@ export class Sheets { + }, +@@ -635,3 +649,3 @@ export class Sheets { + * @example +- * await flatfile.sheets.getSheetCommits("us_sh_YOUR_ID", {}) ++ * await flatfile.sheets.getSheetCommits("us_sh_YOUR_ID") + */ +@@ -643,3 +657,3 @@ export class Sheets { + const { completed } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (completed != null) { +@@ -659,3 +673,5 @@ export class Sheets { + }, +@@ -721,3 +737,5 @@ export class Sheets { + }, +@@ -805,3 +823,5 @@ export class Sheets { + }, +@@ -894,3 +914,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (fieldKey != null) { +@@ -946,3 +966,5 @@ export class Sheets { + }, +diff --git a/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts b/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts +index 7a0fc11..87868cc 100644 +--- a/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts ++++ b/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts +@@ -12,3 +12,3 @@ export interface GetRecordsCsvRequest { + /** +- * Returns records that were changed in that version in that version and only those records. ++ * Returns records that were changed in that version in that version and only those records. + */ +@@ -49,3 +49,2 @@ export interface GetRecordsCsvRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * + */ +diff --git a/src/api/resources/sheets/types/ListSheetsResponse.ts b/src/api/resources/sheets/types/ListSheetsResponse.ts +index 47b24a6..bda1bce 100644 +--- a/src/api/resources/sheets/types/ListSheetsResponse.ts ++++ b/src/api/resources/sheets/types/ListSheetsResponse.ts +@@ -32,7 +32,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/sheets/types/Sheet.ts b/src/api/resources/sheets/types/Sheet.ts +index 2b97e88..e52a7fe 100644 +--- a/src/api/resources/sheets/types/Sheet.ts ++++ b/src/api/resources/sheets/types/Sheet.ts +@@ -33,7 +33,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +@@ -54,4 +49,2 @@ export interface Sheet { + config: Flatfile.SheetConfig; +- /** The amount of records in the Sheet. */ +- countRecords?: Flatfile.RecordCounts; + /** The scoped namespace of the Sheet. */ +diff --git a/src/api/resources/sheets/types/SheetConfigUpdate.ts b/src/api/resources/sheets/types/SheetConfigUpdate.ts +index 34a1f0a..3d52577 100644 +--- a/src/api/resources/sheets/types/SheetConfigUpdate.ts ++++ b/src/api/resources/sheets/types/SheetConfigUpdate.ts +@@ -14,3 +14,3 @@ export interface SheetConfigUpdate { + description?: string; +- /** A unique identifier for your Sheet. */ ++ /** A unique identifier for your Sheet. **Required when updating a Workbook.** */ + slug?: string; +diff --git a/src/api/resources/sheets/types/SheetResponse.ts b/src/api/resources/sheets/types/SheetResponse.ts +index 037d224..32cb1d3 100644 +--- a/src/api/resources/sheets/types/SheetResponse.ts ++++ b/src/api/resources/sheets/types/SheetResponse.ts +@@ -32,7 +32,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/sheets/types/SheetUpdate.ts b/src/api/resources/sheets/types/SheetUpdate.ts +index d89b3a0..89a1d96 100644 +--- a/src/api/resources/sheets/types/SheetUpdate.ts ++++ b/src/api/resources/sheets/types/SheetUpdate.ts +@@ -16,4 +16,2 @@ export interface SheetUpdate { + config?: Flatfile.SheetConfig; +- /** The amount of records in the Sheet. */ +- countRecords?: Flatfile.RecordCounts; + /** The scoped namespace of the Sheet. */ +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 1f6c84e..d13cf34 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,5 @@ export class Snapshots { + }, +@@ -130,3 +132,3 @@ export class Snapshots { + const { sheetId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["sheetId"] = sheetId; +@@ -143,3 +145,5 @@ export class Snapshots { + }, +@@ -221,3 +225,3 @@ export class Snapshots { + const { includeSummary } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["includeSummary"] = includeSummary.toString(); +@@ -234,3 +238,5 @@ export class Snapshots { + }, +@@ -319,3 +325,5 @@ export class Snapshots { + }, +@@ -408,3 +416,5 @@ export class Snapshots { + }, +@@ -493,3 +503,3 @@ export class Snapshots { + const { pageSize, pageNumber, changeType } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -517,3 +527,5 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 4777684..21d3f4f 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -51,3 +51,3 @@ export class Spaces { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -99,3 +99,5 @@ export class Spaces { + }, +@@ -158,3 +160,3 @@ export class Spaces { + * await flatfile.spaces.create({ +- * name: "My First Worbook", ++ * name: "My First Workbook", + * displayOrder: 1, +@@ -179,3 +181,5 @@ export class Spaces { + }, +@@ -264,3 +268,5 @@ export class Spaces { + }, +@@ -345,3 +351,5 @@ export class Spaces { + }, +@@ -413,3 +421,3 @@ export class Spaces { + * await flatfile.spaces.bulkDelete({ +- * ids: "us_sp_YOUR_ID" ++ * spaceIds: "us_sp_YOUR_ID" + * }) +@@ -420,8 +428,8 @@ export class Spaces { + ): Promise { +- const { ids } = request; +- const _queryParams: Record = {}; +- if (Array.isArray(ids)) { +- _queryParams["ids"] = ids.map((item) => item); ++ const { spaceIds } = request; ++ const _queryParams: Record = {}; ++ if (Array.isArray(spaceIds)) { ++ _queryParams["spaceIds"] = spaceIds.map((item) => item); + } else { +- _queryParams["ids"] = ids; ++ _queryParams["spaceIds"] = spaceIds; + } +@@ -439,3 +447,5 @@ export class Spaces { + }, +@@ -527,3 +537,5 @@ export class Spaces { + }, +@@ -612,3 +624,5 @@ export class Spaces { + }, +@@ -673,2 +687,86 @@ export class Spaces { + ++ /** ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async upgrade( ++ spaceId: Flatfile.SpaceId, ++ request: Flatfile.UpgradeSpaceConfig, ++ requestOptions?: Spaces.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/spaces/${await serializers.SpaceId.jsonOrThrow(spaceId)}/upgrade` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UpgradeSpaceConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.SpaceResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + protected async _getAuthorizationHeader() { +diff --git a/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts b/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts +index 5f4641f..01df630 100644 +--- a/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts ++++ b/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts +@@ -9,3 +9,3 @@ import * as Flatfile from "../../../.."; + * { +- * ids: "us_sp_YOUR_ID" ++ * spaceIds: "us_sp_YOUR_ID" + * } +@@ -16,3 +16,3 @@ export interface DeleteSpacesRequest { + */ +- ids: Flatfile.SpaceId | Flatfile.SpaceId[]; ++ spaceIds: Flatfile.SpaceId | Flatfile.SpaceId[]; + } +diff --git a/src/api/resources/spaces/types/ListSpacesResponse.ts b/src/api/resources/spaces/types/ListSpacesResponse.ts +index 4b64c0c..e5054a0 100644 +--- a/src/api/resources/spaces/types/ListSpacesResponse.ts ++++ b/src/api/resources/spaces/types/ListSpacesResponse.ts +@@ -31,4 +31,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * }] +diff --git a/src/api/resources/spaces/types/Space.ts b/src/api/resources/spaces/types/Space.ts +index fac6065..4559dfd 100644 +--- a/src/api/resources/spaces/types/Space.ts ++++ b/src/api/resources/spaces/types/Space.ts +@@ -25,4 +25,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +@@ -45,4 +44,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +@@ -82,2 +80,4 @@ export interface Space extends Flatfile.InternalSpaceConfigBase { + guestAuthentication: Flatfile.GuestAuthenticationEnum[]; ++ /** The ID of the App that space is associated with */ ++ appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/spaces/types/SpaceConfig.ts b/src/api/resources/spaces/types/SpaceConfig.ts +index f6a04ef..67f6c9a 100644 +--- a/src/api/resources/spaces/types/SpaceConfig.ts ++++ b/src/api/resources/spaces/types/SpaceConfig.ts +@@ -11,3 +11,3 @@ import * as Flatfile from "../../.."; + * { +- * name: "My First Worbook", ++ * name: "My First Workbook", + * displayOrder: 1, +diff --git a/src/api/resources/spaces/types/SpaceResponse.ts b/src/api/resources/spaces/types/SpaceResponse.ts +index 155e02c..b32fe6e 100644 +--- a/src/api/resources/spaces/types/SpaceResponse.ts ++++ b/src/api/resources/spaces/types/SpaceResponse.ts +@@ -24,4 +24,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +@@ -46,4 +45,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +diff --git a/src/api/resources/spaces/types/UpgradeSpaceConfig.ts b/src/api/resources/spaces/types/UpgradeSpaceConfig.ts +new file mode 100644 +index 0000000..e93020d +--- /dev/null ++++ b/src/api/resources/spaces/types/UpgradeSpaceConfig.ts +@@ -0,0 +1,10 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties used to upgrade a space ++ */ ++export interface UpgradeSpaceConfig { ++ id: string; ++} +diff --git a/src/api/resources/spaces/types/index.ts b/src/api/resources/spaces/types/index.ts +index 338c7d4..8669369 100644 +--- a/src/api/resources/spaces/types/index.ts ++++ b/src/api/resources/spaces/types/index.ts +@@ -6,2 +6,3 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; ++export * from "./UpgradeSpaceConfig"; + export * from "./EventTokenResponse"; +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index dd3e414..40456bc 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -40,3 +40,3 @@ export class Users { + const { email } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (email != null) { +@@ -56,3 +56,5 @@ export class Users { + }, +@@ -95,2 +97,136 @@ export class Users { + ++ /** ++ * Creates and invites a new user to your account. ++ * ++ * @example ++ * await flatfile.users.createAndInvite({ ++ * email: "john.smith@example.com", ++ * name: "John Smith", ++ * actorRoles: [{ ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID" ++ * }, { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID" ++ * }] ++ * }) ++ */ ++ public async createAndInvite( ++ request: Flatfile.UserCreateAndInviteRequest, ++ requestOptions?: Users.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "users/invite" ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UserCreateAndInviteRequest.jsonOrThrow(request, { ++ unrecognizedObjectKeys: "strip", ++ }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.UserResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Updates a user ++ */ ++ public async update( ++ userId: Flatfile.UserId, ++ request: Flatfile.UpdateUserRequest = {}, ++ requestOptions?: Users.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `users/${await serializers.UserId.jsonOrThrow(userId)}` ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.UserResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -113,3 +249,5 @@ export class Users { + }, +@@ -151,2 +289,289 @@ export class Users { + ++ /** ++ * Lists roles assigned to a user. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async listUserRoles( ++ userId: Flatfile.UserId, ++ requestOptions?: Users.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `users/${await serializers.UserId.jsonOrThrow(userId)}/roles` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ListActorRolesResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Assigns a role to a user. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async assignUserRole( ++ userId: Flatfile.UserId, ++ request: Flatfile.AssignActorRoleRequest, ++ requestOptions?: Users.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `users/${await serializers.UserId.jsonOrThrow(userId)}/roles` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.AssignActorRoleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.AssignRoleResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Removes a role from a user. ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * @throws {@link Flatfile.ForbiddenError} ++ */ ++ public async deleteUserRole( ++ userId: Flatfile.UserId, ++ actorRoleId: Flatfile.ActorRoleId, ++ requestOptions?: Users.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `users/${await serializers.UserId.jsonOrThrow( ++ userId ++ )}/roles/${await serializers.ActorRoleId.jsonOrThrow(actorRoleId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 403: ++ throw new Flatfile.ForbiddenError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -160,3 +585,3 @@ export class Users { + const { tenantId, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["tenantId"] = tenantId; +@@ -181,3 +606,5 @@ export class Users { + }, +@@ -229,3 +656,3 @@ export class Users { + const { tenantId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["tenantId"] = tenantId; +@@ -242,3 +669,5 @@ export class Users { + }, +@@ -299,3 +728,5 @@ export class Users { + }, +diff --git a/src/api/resources/users/client/requests/UpdateUserRequest.ts b/src/api/resources/users/client/requests/UpdateUserRequest.ts +new file mode 100644 +index 0000000..d815834 +--- /dev/null ++++ b/src/api/resources/users/client/requests/UpdateUserRequest.ts +@@ -0,0 +1,7 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++export interface UpdateUserRequest { ++ name?: string; ++} +diff --git a/src/api/resources/users/client/requests/index.ts b/src/api/resources/users/client/requests/index.ts +index b49c90b..bf566bf 100644 +--- a/src/api/resources/users/client/requests/index.ts ++++ b/src/api/resources/users/client/requests/index.ts +@@ -1,2 +1,3 @@ + export { ListUsersRequest } from "./ListUsersRequest"; ++export { UpdateUserRequest } from "./UpdateUserRequest"; + export { ListApiTokensRequest } from "./ListApiTokensRequest"; +diff --git a/src/api/resources/users/types/ListUsersResponse.ts b/src/api/resources/users/types/ListUsersResponse.ts +index 51ec119..d90952b 100644 +--- a/src/api/resources/users/types/ListUsersResponse.ts ++++ b/src/api/resources/users/types/ListUsersResponse.ts +@@ -18,3 +18,5 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2 + * }] +diff --git a/src/api/resources/users/types/User.ts b/src/api/resources/users/types/User.ts +index 996f272..469b501 100644 +--- a/src/api/resources/users/types/User.ts ++++ b/src/api/resources/users/types/User.ts +@@ -19,3 +19,5 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2 + * } +@@ -29,2 +31,4 @@ export interface User extends Flatfile.UserConfig { + updatedAt: Date; ++ lastSeenAt?: Date; ++ dashboard?: number; + } +diff --git a/src/api/resources/users/types/UserCreateAndInviteRequest.ts b/src/api/resources/users/types/UserCreateAndInviteRequest.ts +new file mode 100644 +index 0000000..9603ae1 +--- /dev/null ++++ b/src/api/resources/users/types/UserCreateAndInviteRequest.ts +@@ -0,0 +1,27 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Properties used to create a new user ++ * ++ * @example ++ * { ++ * email: "john.smith@example.com", ++ * name: "John Smith", ++ * actorRoles: [{ ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID" ++ * }, { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID" ++ * }] ++ * } ++ */ ++export interface UserCreateAndInviteRequest { ++ email: string; ++ name: string; ++ actorRoles: Flatfile.AssignActorRoleRequest[]; ++} +diff --git a/src/api/resources/users/types/UserResponse.ts b/src/api/resources/users/types/UserResponse.ts +index 7045914..3ccc810 100644 +--- a/src/api/resources/users/types/UserResponse.ts ++++ b/src/api/resources/users/types/UserResponse.ts +@@ -18,3 +18,5 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2 + * } +diff --git a/src/api/resources/users/types/index.ts b/src/api/resources/users/types/index.ts +index 7bd7d69..bae3706 100644 +--- a/src/api/resources/users/types/index.ts ++++ b/src/api/resources/users/types/index.ts +@@ -4,2 +4,3 @@ export * from "./User"; + export * from "./UserConfig"; ++export * from "./UserCreateAndInviteRequest"; + export * from "./ListApiTokensResponse"; +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 4da836b..6d4c089 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,5 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index c98fe1e..b242f95 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -33,4 +33,3 @@ export class Workbooks { + * await flatfile.workbooks.list({ +- * spaceId: "us_sp_YOUR_ID", +- * includeCounts: true ++ * spaceId: "us_sp_YOUR_ID" + * }) +@@ -42,3 +41,3 @@ export class Workbooks { + const { spaceId, includeCounts } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -62,3 +61,5 @@ export class Workbooks { + }, +@@ -167,3 +168,5 @@ export class Workbooks { + }, +@@ -242,3 +245,5 @@ export class Workbooks { + }, +@@ -326,3 +331,5 @@ export class Workbooks { + }, +@@ -421,3 +428,5 @@ export class Workbooks { + }, +@@ -487,3 +496,3 @@ export class Workbooks { + * @example +- * await flatfile.workbooks.getWorkbookCommits("us_wb_YOUR_ID", {}) ++ * await flatfile.workbooks.getWorkbookCommits("us_wb_YOUR_ID") + */ +@@ -495,3 +504,3 @@ export class Workbooks { + const { completed } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (completed != null) { +@@ -511,3 +520,5 @@ export class Workbooks { + }, +@@ -570,3 +581,5 @@ export class Workbooks { + }, +diff --git a/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts b/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts +index 331f646..6e28163 100644 +--- a/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts ++++ b/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts +@@ -9,4 +9,3 @@ import * as Flatfile from "../../../.."; + * { +- * spaceId: "us_sp_YOUR_ID", +- * includeCounts: true ++ * spaceId: "us_sp_YOUR_ID" + * } +@@ -19,3 +18,3 @@ export interface ListWorkbooksRequest { + /** +- * Include counts for the workbook ++ * Include counts for the workbook. **DEPRECATED** Counts will return 0s. Use GET /sheets/:sheetId/counts + */ +diff --git a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +index 34f96aa..99698d2 100644 +--- a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts ++++ b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +@@ -37,7 +37,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/workbooks/types/Workbook.ts b/src/api/resources/workbooks/types/Workbook.ts +index dea2d71..d1c132e 100644 +--- a/src/api/resources/workbooks/types/Workbook.ts ++++ b/src/api/resources/workbooks/types/Workbook.ts +@@ -38,7 +38,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/workbooks/types/WorkbookResponse.ts b/src/api/resources/workbooks/types/WorkbookResponse.ts +index 11e3afa..c329988 100644 +--- a/src/api/resources/workbooks/types/WorkbookResponse.ts ++++ b/src/api/resources/workbooks/types/WorkbookResponse.ts +@@ -37,7 +37,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts +index aa709ae..c08e0fd 100644 +--- a/src/core/fetcher/Fetcher.ts ++++ b/src/core/fetcher/Fetcher.ts +@@ -2,2 +2,3 @@ import { default as FormData } from "form-data"; + import qs from "qs"; ++import { RUNTIME } from "../runtime"; + import { APIResponse } from "./APIResponse"; +@@ -12,3 +13,3 @@ export declare namespace Fetcher { + headers?: Record; +- queryParameters?: Record; ++ queryParameters?: Record; + body?: unknown; +@@ -77,3 +78,13 @@ async function fetcherImpl(args: Fetcher.Args): Promise): Promise { +- return !(await isSchemaOptional(schema)); ++function isSchemaRequired(schema: Schema): boolean { ++ return !isSchemaOptional(schema); + } + +-async function isSchemaOptional(schema: Schema): Promise { +- switch (await schema.getType()) { ++function isSchemaOptional(schema: Schema): boolean { ++ switch (schema.getType()) { + case SchemaType.ANY: +diff --git a/src/serialization/resources/accounts/index.ts b/src/serialization/resources/accounts/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/accounts/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/accounts/types/Account.ts b/src/serialization/resources/accounts/types/Account.ts +new file mode 100644 +index 0000000..5c15899 +--- /dev/null ++++ b/src/serialization/resources/accounts/types/Account.ts +@@ -0,0 +1,42 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { AppId } from "../../commons/types/AppId"; ++ ++export const Account: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ id: AccountId, ++ name: core.serialization.string(), ++ subdomain: core.serialization.string().optional(), ++ vanityDomainDashboard: core.serialization.string().optional(), ++ vanityDomainSpaces: core.serialization.string().optional(), ++ embeddedDomainWhitelist: core.serialization.list(core.serialization.string()).optional(), ++ customFromEmail: core.serialization.string().optional(), ++ stripeCustomerId: core.serialization.string().optional(), ++ metadata: core.serialization.record(core.serialization.string(), core.serialization.any()), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++ defaultAppId: AppId.optional(), ++ }); ++ ++export declare namespace Account { ++ interface Raw { ++ id: AccountId.Raw; ++ name: string; ++ subdomain?: string | null; ++ vanityDomainDashboard?: string | null; ++ vanityDomainSpaces?: string | null; ++ embeddedDomainWhitelist?: string[] | null; ++ customFromEmail?: string | null; ++ stripeCustomerId?: string | null; ++ metadata: Record; ++ createdAt: string; ++ updatedAt: string; ++ defaultAppId?: AppId.Raw | null; ++ } ++} +diff --git a/src/serialization/resources/accounts/types/AccountPatch.ts b/src/serialization/resources/accounts/types/AccountPatch.ts +new file mode 100644 +index 0000000..303acb8 +--- /dev/null ++++ b/src/serialization/resources/accounts/types/AccountPatch.ts +@@ -0,0 +1,19 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { AppId } from "../../commons/types/AppId"; ++ ++export const AccountPatch: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ defaultAppId: AppId, ++ }); ++ ++export declare namespace AccountPatch { ++ interface Raw { ++ defaultAppId: AppId.Raw; ++ } ++} +diff --git a/src/serialization/resources/accounts/types/AccountResponse.ts b/src/serialization/resources/accounts/types/AccountResponse.ts +new file mode 100644 +index 0000000..b47563f +--- /dev/null ++++ b/src/serialization/resources/accounts/types/AccountResponse.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { Account } from "./Account"; ++ ++export const AccountResponse: core.serialization.ObjectSchema< ++ serializers.AccountResponse.Raw, ++ Flatfile.AccountResponse ++> = core.serialization.object({ ++ data: Account, ++}); ++ ++export declare namespace AccountResponse { ++ interface Raw { ++ data: Account.Raw; ++ } ++} +diff --git a/src/serialization/resources/accounts/types/index.ts b/src/serialization/resources/accounts/types/index.ts +new file mode 100644 +index 0000000..0f9ca2c +--- /dev/null ++++ b/src/serialization/resources/accounts/types/index.ts +@@ -0,0 +1,3 @@ ++export * from "./AccountResponse"; ++export * from "./Account"; ++export * from "./AccountPatch"; +diff --git a/src/serialization/resources/agents/types/Agent.ts b/src/serialization/resources/agents/types/Agent.ts +index a9ef4c1..bbd9bfd 100644 +--- a/src/serialization/resources/agents/types/Agent.ts ++++ b/src/serialization/resources/agents/types/Agent.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AgentId } from "../../commons/types/AgentId"; ++import { AgentConfig } from "./AgentConfig"; + +@@ -10,9 +12,9 @@ export const Agent: core.serialization.ObjectSchema (await import("../../..")).AgentId), ++ id: AgentId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).AgentConfig)); ++ .extend(AgentConfig); + + export declare namespace Agent { +- interface Raw extends serializers.AgentConfig.Raw { +- id: serializers.AgentId.Raw; ++ interface Raw extends AgentConfig.Raw { ++ id: AgentId.Raw; + } +diff --git a/src/serialization/resources/agents/types/AgentConfig.ts b/src/serialization/resources/agents/types/AgentConfig.ts +index 9ebc197..a9a2ded 100644 +--- a/src/serialization/resources/agents/types/AgentConfig.ts ++++ b/src/serialization/resources/agents/types/AgentConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventTopic } from "../../events/types/EventTopic"; ++import { Compiler } from "./Compiler"; + +@@ -10,7 +12,6 @@ export const AgentConfig: core.serialization.ObjectSchema (await import("../../..")).EventTopic)) +- .optional(), +- compiler: core.serialization.lazy(async () => (await import("../../..")).Compiler).optional(), ++ topics: core.serialization.list(EventTopic).optional(), ++ compiler: Compiler.optional(), + source: core.serialization.string().optional(), ++ slug: core.serialization.string().optional(), + }); +@@ -19,5 +20,6 @@ export declare namespace AgentConfig { + interface Raw { +- topics?: serializers.EventTopic.Raw[] | null; +- compiler?: serializers.Compiler.Raw | null; ++ topics?: EventTopic.Raw[] | null; ++ compiler?: Compiler.Raw | null; + source?: string | null; ++ slug?: string | null; + } +diff --git a/src/serialization/resources/agents/types/AgentLog.ts b/src/serialization/resources/agents/types/AgentLog.ts +index 7ca1b75..227c9b6 100644 +--- a/src/serialization/resources/agents/types/AgentLog.ts ++++ b/src/serialization/resources/agents/types/AgentLog.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventId } from "../../commons/types/EventId"; + +@@ -10,3 +11,3 @@ export const AgentLog: core.serialization.ObjectSchema (await import("../../..")).EventId), ++ eventId: EventId, + success: core.serialization.boolean(), +@@ -19,3 +20,3 @@ export declare namespace AgentLog { + interface Raw { +- eventId: serializers.EventId.Raw; ++ eventId: EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/AgentResponse.ts b/src/serialization/resources/agents/types/AgentResponse.ts +index f301e76..30204e5 100644 +--- a/src/serialization/resources/agents/types/AgentResponse.ts ++++ b/src/serialization/resources/agents/types/AgentResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Agent } from "./Agent"; + +@@ -10,3 +11,3 @@ export const AgentResponse: core.serialization.ObjectSchema (await import("../../..")).Agent).optional(), ++ data: Agent.optional(), + }); +@@ -15,3 +16,3 @@ export declare namespace AgentResponse { + interface Raw { +- data?: serializers.Agent.Raw | null; ++ data?: Agent.Raw | null; + } +diff --git a/src/serialization/resources/agents/types/DetailedAgentLog.ts b/src/serialization/resources/agents/types/DetailedAgentLog.ts +index 5e6e060..483f5aa 100644 +--- a/src/serialization/resources/agents/types/DetailedAgentLog.ts ++++ b/src/serialization/resources/agents/types/DetailedAgentLog.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventId } from "../../commons/types/EventId"; + +@@ -12,3 +13,3 @@ export const DetailedAgentLog: core.serialization.ObjectSchema< + > = core.serialization.object({ +- eventId: core.serialization.lazy(async () => (await import("../../..")).EventId), ++ eventId: EventId, + success: core.serialization.boolean(), +@@ -24,3 +25,3 @@ export declare namespace DetailedAgentLog { + interface Raw { +- eventId: serializers.EventId.Raw; ++ eventId: EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/Execution.ts b/src/serialization/resources/agents/types/Execution.ts +index ce7585f..af424f7 100644 +--- a/src/serialization/resources/agents/types/Execution.ts ++++ b/src/serialization/resources/agents/types/Execution.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventId } from "../../commons/types/EventId"; + +@@ -10,3 +11,3 @@ export const Execution: core.serialization.ObjectSchema (await import("../../..")).EventId), ++ eventId: EventId, + success: core.serialization.boolean(), +@@ -20,3 +21,3 @@ export declare namespace Execution { + interface Raw { +- eventId: serializers.EventId.Raw; ++ eventId: EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/GetAgentLogsResponse.ts b/src/serialization/resources/agents/types/GetAgentLogsResponse.ts +index 7db2427..6d5d01b 100644 +--- a/src/serialization/resources/agents/types/GetAgentLogsResponse.ts ++++ b/src/serialization/resources/agents/types/GetAgentLogsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { AgentLog } from "./AgentLog"; + +@@ -12,6 +14,4 @@ export const GetAgentLogsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).AgentLog)) +- .optional(), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(AgentLog).optional(), + }); +@@ -20,4 +20,4 @@ export declare namespace GetAgentLogsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data?: serializers.AgentLog.Raw[] | null; ++ pagination?: Pagination.Raw | null; ++ data?: AgentLog.Raw[] | null; + } +diff --git a/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts b/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts +index 6286bee..19d38b2 100644 +--- a/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts ++++ b/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DetailedAgentLog } from "./DetailedAgentLog"; + +@@ -12,3 +13,3 @@ export const GetDetailedAgentLogResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).DetailedAgentLog), ++ data: DetailedAgentLog, + }); +@@ -17,3 +18,3 @@ export declare namespace GetDetailedAgentLogResponse { + interface Raw { +- data: serializers.DetailedAgentLog.Raw; ++ data: DetailedAgentLog.Raw; + } +diff --git a/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts b/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts +index ca07416..69924a0 100644 +--- a/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts ++++ b/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { DetailedAgentLog } from "./DetailedAgentLog"; + +@@ -12,6 +14,4 @@ export const GetDetailedAgentLogsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DetailedAgentLog) +- ), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(DetailedAgentLog), + }); +@@ -20,4 +20,4 @@ export declare namespace GetDetailedAgentLogsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.DetailedAgentLog.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: DetailedAgentLog.Raw[]; + } +diff --git a/src/serialization/resources/agents/types/GetExecutionsResponse.ts b/src/serialization/resources/agents/types/GetExecutionsResponse.ts +index e51eccd..76e69a4 100644 +--- a/src/serialization/resources/agents/types/GetExecutionsResponse.ts ++++ b/src/serialization/resources/agents/types/GetExecutionsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Execution } from "./Execution"; + +@@ -12,4 +14,4 @@ export const GetExecutionsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Execution)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Execution), + }); +@@ -18,4 +20,4 @@ export declare namespace GetExecutionsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.Execution.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: Execution.Raw[]; + } +diff --git a/src/serialization/resources/agents/types/ListAgentsResponse.ts b/src/serialization/resources/agents/types/ListAgentsResponse.ts +index de02f67..911337b 100644 +--- a/src/serialization/resources/agents/types/ListAgentsResponse.ts ++++ b/src/serialization/resources/agents/types/ListAgentsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Agent } from "./Agent"; + +@@ -12,5 +13,3 @@ export const ListAgentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Agent)) +- .optional(), ++ data: core.serialization.list(Agent).optional(), + }); +@@ -19,3 +18,3 @@ export declare namespace ListAgentsResponse { + interface Raw { +- data?: serializers.Agent.Raw[] | null; ++ data?: Agent.Raw[] | null; + } +diff --git a/src/serialization/resources/apps/types/App.ts b/src/serialization/resources/apps/types/App.ts +index baa0e8b..42dff50 100644 +--- a/src/serialization/resources/apps/types/App.ts ++++ b/src/serialization/resources/apps/types/App.ts +@@ -7,8 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AppId } from "../../commons/types/AppId"; ++import { AppType } from "./AppType"; + + export const App: core.serialization.ObjectSchema = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).AppId), ++ id: AppId, + name: core.serialization.string(), + namespace: core.serialization.string(), +- type: core.serialization.lazy(async () => (await import("../../..")).AppType), ++ type: AppType, + entity: core.serialization.string(), +@@ -17,2 +19,3 @@ export const App: core.serialization.ObjectSchema (await import("../../..")).AppType), ++ type: AppType, + entity: core.serialization.string().optional(), +@@ -17,2 +18,3 @@ export const AppCreate: core.serialization.ObjectSchema (await import("../../..")).App), ++ data: App, + }); +@@ -15,3 +16,3 @@ export declare namespace AppResponse { + interface Raw { +- data: serializers.App.Raw; ++ data: App.Raw; + } +diff --git a/src/serialization/resources/apps/types/AppsResponse.ts b/src/serialization/resources/apps/types/AppsResponse.ts +index fb686c0..e778d68 100644 +--- a/src/serialization/resources/apps/types/AppsResponse.ts ++++ b/src/serialization/resources/apps/types/AppsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { App } from "./App"; + +@@ -10,3 +11,3 @@ export const AppsResponse: core.serialization.ObjectSchema (await import("../../..")).App)), ++ data: core.serialization.list(App), + }); +@@ -15,3 +16,3 @@ export declare namespace AppsResponse { + interface Raw { +- data: serializers.App.Raw[]; ++ data: App.Raw[]; + } +diff --git a/src/serialization/resources/auth/types/ApiKey.ts b/src/serialization/resources/auth/types/ApiKey.ts +index 939ad8d..a048302 100644 +--- a/src/serialization/resources/auth/types/ApiKey.ts ++++ b/src/serialization/resources/auth/types/ApiKey.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ApiKeyId } from "./ApiKeyId"; ++import { RawKey } from "./RawKey"; ++import { ApiKeyType } from "./ApiKeyType"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { ApiKeyOperation } from "./ApiKeyOperation"; + +@@ -10,10 +16,8 @@ export const ApiKey: core.serialization.ObjectSchema (await import("../../..")).ApiKeyId), +- rawKey: core.serialization.lazy(async () => (await import("../../..")).RawKey).optional(), +- type: core.serialization.lazy(async () => (await import("../../..")).ApiKeyType), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId).optional(), +- operations: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).ApiKeyOperation) +- ), ++ id: ApiKeyId, ++ rawKey: RawKey.optional(), ++ type: ApiKeyType, ++ environmentId: EnvironmentId.optional(), ++ accountId: AccountId.optional(), ++ operations: core.serialization.list(ApiKeyOperation), + createdAt: core.serialization.date(), +@@ -26,8 +30,8 @@ export declare namespace ApiKey { + interface Raw { +- id: serializers.ApiKeyId.Raw; +- rawKey?: serializers.RawKey.Raw | null; +- type: serializers.ApiKeyType.Raw; +- environmentId?: serializers.EnvironmentId.Raw | null; +- accountId?: serializers.AccountId.Raw | null; +- operations: serializers.ApiKeyOperation.Raw[]; ++ id: ApiKeyId.Raw; ++ rawKey?: RawKey.Raw | null; ++ type: ApiKeyType.Raw; ++ environmentId?: EnvironmentId.Raw | null; ++ accountId?: AccountId.Raw | null; ++ operations: ApiKeyOperation.Raw[]; + createdAt: string; +diff --git a/src/serialization/resources/auth/types/ApiKeysResponse.ts b/src/serialization/resources/auth/types/ApiKeysResponse.ts +index af686f9..0d016a7 100644 +--- a/src/serialization/resources/auth/types/ApiKeysResponse.ts ++++ b/src/serialization/resources/auth/types/ApiKeysResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ApiKey } from "./ApiKey"; + +@@ -12,3 +13,3 @@ export const ApiKeysResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).ApiKey)), ++ data: core.serialization.list(ApiKey), + }); +@@ -17,3 +18,3 @@ export declare namespace ApiKeysResponse { + interface Raw { +- data: serializers.ApiKey.Raw[]; ++ data: ApiKey.Raw[]; + } +diff --git a/src/serialization/resources/auth/types/Credentials.ts b/src/serialization/resources/auth/types/Credentials.ts +index 57ba6ba..9ab3ccc 100644 +--- a/src/serialization/resources/auth/types/Credentials.ts ++++ b/src/serialization/resources/auth/types/Credentials.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserCredentials } from "./UserCredentials"; ++import { ApiCredentials } from "./ApiCredentials"; + +@@ -11,4 +13,4 @@ export const Credentials: core.serialization.Schema (await import("../../..")).UserCredentials), +- apiCredentials: core.serialization.lazyObject(async () => (await import("../../..")).ApiCredentials), ++ userCredentials: UserCredentials, ++ apiCredentials: ApiCredentials, + }) +@@ -22,3 +24,3 @@ export declare namespace Credentials { + +- interface UserCredentials extends serializers.UserCredentials.Raw { ++ interface UserCredentials extends UserCredentials.Raw { + type: "userCredentials"; +@@ -26,3 +28,3 @@ export declare namespace Credentials { + +- interface ApiCredentials extends serializers.ApiCredentials.Raw { ++ interface ApiCredentials extends ApiCredentials.Raw { + type: "apiCredentials"; +diff --git a/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts b/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts +index 42ec382..bec2ed6 100644 +--- a/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCounts } from "../../records/types/RecordCounts"; ++import { CellValue } from "../../records/types/CellValue"; + +@@ -13,9 +15,9 @@ export const CellValueWithCountsDeprecated: core.serialization.ObjectSchema< + .object({ +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ counts: RecordCounts.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace CellValueWithCountsDeprecated { +- interface Raw extends serializers.CellValue.Raw { +- counts?: serializers.RecordCounts.Raw | null; ++ interface Raw extends CellValue.Raw { ++ counts?: RecordCounts.Raw | null; + } +diff --git a/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts b/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts +index 312d5d8..63db296 100644 +--- a/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueWithCountsDeprecated } from "./CellValueWithCountsDeprecated"; + +@@ -11,11 +12,6 @@ export const CellsResponseDataDeprecated: core.serialization.Schema< + Flatfile.CellsResponseDataDeprecated +-> = core.serialization.record( +- core.serialization.string(), +- core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithCountsDeprecated) +- ) +-); ++> = core.serialization.record(core.serialization.string(), core.serialization.list(CellValueWithCountsDeprecated)); + + export declare namespace CellsResponseDataDeprecated { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/cells/types/CellsResponseDeprecated.ts b/src/serialization/resources/cells/types/CellsResponseDeprecated.ts +index d283ff9..4994dae 100644 +--- a/src/serialization/resources/cells/types/CellsResponseDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellsResponseDeprecated.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellsResponseDataDeprecated } from "./CellsResponseDataDeprecated"; ++import { CellValueWithCountsDeprecated } from "./CellValueWithCountsDeprecated"; + +@@ -12,3 +14,3 @@ export const CellsResponseDeprecated: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazy(async () => (await import("../../..")).CellsResponseDataDeprecated), ++ data: CellsResponseDataDeprecated, + }); +@@ -17,3 +19,3 @@ export declare namespace CellsResponseDeprecated { + interface Raw { +- data: serializers.CellsResponseDataDeprecated.Raw; ++ data: CellsResponseDataDeprecated.Raw; + } +diff --git a/src/serialization/resources/commits/types/Commit.ts b/src/serialization/resources/commits/types/Commit.ts +index 6cdc734..7315cfd 100644 +--- a/src/serialization/resources/commits/types/Commit.ts ++++ b/src/serialization/resources/commits/types/Commit.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SheetId } from "../../commons/types/SheetId"; + +@@ -10,4 +12,4 @@ export const Commit: core.serialization.ObjectSchema (await import("../../..")).CommitId), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ id: CommitId, ++ sheetId: SheetId, + createdBy: core.serialization.string(), +@@ -20,4 +22,4 @@ export declare namespace Commit { + interface Raw { +- id: serializers.CommitId.Raw; +- sheetId: serializers.SheetId.Raw; ++ id: CommitId.Raw; ++ sheetId: SheetId.Raw; + createdBy: string; +diff --git a/src/serialization/resources/commits/types/CommitResponse.ts b/src/serialization/resources/commits/types/CommitResponse.ts +index 9569e4b..8aba11a 100644 +--- a/src/serialization/resources/commits/types/CommitResponse.ts ++++ b/src/serialization/resources/commits/types/CommitResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Commit } from "./Commit"; + +@@ -10,3 +11,3 @@ export const CommitResponse: core.serialization.ObjectSchema (await import("../../..")).Commit), ++ data: Commit, + }); +@@ -15,3 +16,3 @@ export declare namespace CommitResponse { + interface Raw { +- data: serializers.Commit.Raw; ++ data: Commit.Raw; + } +diff --git a/src/serialization/resources/commits/types/ListCommitsResponse.ts b/src/serialization/resources/commits/types/ListCommitsResponse.ts +index b4dda47..49c5bdd 100644 +--- a/src/serialization/resources/commits/types/ListCommitsResponse.ts ++++ b/src/serialization/resources/commits/types/ListCommitsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Commit } from "./Commit"; + +@@ -12,3 +13,3 @@ export const ListCommitsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Commit)), ++ data: core.serialization.list(Commit), + }); +@@ -17,3 +18,3 @@ export declare namespace ListCommitsResponse { + interface Raw { +- data: serializers.Commit.Raw[]; ++ data: Commit.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/AccessToken.ts b/src/serialization/resources/commons/types/AccessToken.ts +index 36af432..96f8240 100644 +--- a/src/serialization/resources/commons/types/AccessToken.ts ++++ b/src/serialization/resources/commons/types/AccessToken.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "./UserId"; ++import { AccountId } from "./AccountId"; + +@@ -14,4 +16,4 @@ export const AccessToken: core.serialization.ObjectSchema (await import("../../..")).UserId).optional(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId).optional(), ++ userId: UserId.optional(), ++ accountId: AccountId.optional(), + }); +@@ -24,4 +26,4 @@ export declare namespace AccessToken { + email?: string | null; +- userId?: serializers.UserId.Raw | null; +- accountId?: serializers.AccountId.Raw | null; ++ userId?: UserId.Raw | null; ++ accountId?: AccountId.Raw | null; + } +diff --git a/src/serialization/resources/commons/types/Action.ts b/src/serialization/resources/commons/types/Action.ts +index 3f40e77..600618b 100644 +--- a/src/serialization/resources/commons/types/Action.ts ++++ b/src/serialization/resources/commons/types/Action.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActionMode } from "./ActionMode"; ++import { ActionMessage } from "./ActionMessage"; ++import { ActionSchedule } from "./ActionSchedule"; ++import { InputForm } from "./InputForm"; ++import { ActionConstraint } from "./ActionConstraint"; + +@@ -12,11 +17,9 @@ export const Action: core.serialization.ObjectSchema (await import("../../..")).ActionMode).optional(), ++ mode: ActionMode.optional(), + label: core.serialization.string(), + tooltip: core.serialization.string().optional(), +- messages: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ActionMessage)) +- .optional(), ++ messages: core.serialization.list(ActionMessage).optional(), + type: core.serialization.string().optional(), + description: core.serialization.string().optional(), +- schedule: core.serialization.lazy(async () => (await import("../../..")).ActionSchedule).optional(), ++ schedule: ActionSchedule.optional(), + primary: core.serialization.boolean().optional(), +@@ -26,6 +29,4 @@ export const Action: core.serialization.ObjectSchema (await import("../../..")).InputForm).optional(), +- constraints: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ActionConstraint)) +- .optional(), ++ inputForm: InputForm.optional(), ++ constraints: core.serialization.list(ActionConstraint).optional(), + }); +@@ -36,9 +37,9 @@ export declare namespace Action { + operation?: string | null; +- mode?: serializers.ActionMode.Raw | null; ++ mode?: ActionMode.Raw | null; + label: string; + tooltip?: string | null; +- messages?: serializers.ActionMessage.Raw[] | null; ++ messages?: ActionMessage.Raw[] | null; + type?: string | null; + description?: string | null; +- schedule?: serializers.ActionSchedule.Raw | null; ++ schedule?: ActionSchedule.Raw | null; + primary?: boolean | null; +@@ -48,4 +49,4 @@ export declare namespace Action { + requireSelection?: boolean | null; +- inputForm?: serializers.InputForm.Raw | null; +- constraints?: serializers.ActionConstraint.Raw[] | null; ++ inputForm?: InputForm.Raw | null; ++ constraints?: ActionConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/commons/types/ActionConstraint.ts b/src/serialization/resources/commons/types/ActionConstraint.ts +index f2988c8..c0a7f53 100644 +--- a/src/serialization/resources/commons/types/ActionConstraint.ts ++++ b/src/serialization/resources/commons/types/ActionConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActionConstraintType } from "./ActionConstraintType"; + +@@ -12,3 +13,3 @@ export const ActionConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).ActionConstraintType), ++ type: ActionConstraintType, + }); +@@ -17,3 +18,3 @@ export declare namespace ActionConstraint { + interface Raw { +- type: serializers.ActionConstraintType.Raw; ++ type: ActionConstraintType.Raw; + } +diff --git a/src/serialization/resources/commons/types/ActionMessage.ts b/src/serialization/resources/commons/types/ActionMessage.ts +index 6fe3da8..82e1c9f 100644 +--- a/src/serialization/resources/commons/types/ActionMessage.ts ++++ b/src/serialization/resources/commons/types/ActionMessage.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActionMessageType } from "./ActionMessageType"; + +@@ -10,3 +11,3 @@ export const ActionMessage: core.serialization.ObjectSchema (await import("../../..")).ActionMessageType), ++ type: ActionMessageType, + content: core.serialization.string(), +@@ -16,3 +17,3 @@ export declare namespace ActionMessage { + interface Raw { +- type: serializers.ActionMessageType.Raw; ++ type: ActionMessageType.Raw; + content: string; +diff --git a/src/serialization/resources/commons/types/ActionMessageType.ts b/src/serialization/resources/commons/types/ActionMessageType.ts +index 6cb1238..1114e5f 100644 +--- a/src/serialization/resources/commons/types/ActionMessageType.ts ++++ b/src/serialization/resources/commons/types/ActionMessageType.ts +@@ -11,6 +11,6 @@ export const ActionMessageType: core.serialization.Schema< + Flatfile.ActionMessageType +-> = core.serialization.enum_(["success", "error", "warning", "info"]); ++> = core.serialization.enum_(["error", "info"]); + + export declare namespace ActionMessageType { +- type Raw = "success" | "error" | "warning" | "info"; ++ type Raw = "error" | "info"; + } +diff --git a/src/serialization/resources/commons/types/Errors.ts b/src/serialization/resources/commons/types/Errors.ts +index f154ca3..bb5171b 100644 +--- a/src/serialization/resources/commons/types/Errors.ts ++++ b/src/serialization/resources/commons/types/Errors.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Error_ } from "./Error_"; + +@@ -10,3 +11,3 @@ export const Errors: core.serialization.ObjectSchema (await import("../../..")).Error_)), ++ errors: core.serialization.list(Error_), + }); +@@ -15,3 +16,3 @@ export declare namespace Errors { + interface Raw { +- errors: serializers.Error_.Raw[]; ++ errors: Error_.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/InputConfig.ts b/src/serialization/resources/commons/types/InputConfig.ts +index a461b10..4ee3b51 100644 +--- a/src/serialization/resources/commons/types/InputConfig.ts ++++ b/src/serialization/resources/commons/types/InputConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputEnumPropertyOption } from "./InputEnumPropertyOption"; + +@@ -10,5 +11,3 @@ export const InputConfig: core.serialization.ObjectSchema (await import("../../..")).InputEnumPropertyOption) +- ), ++ options: core.serialization.list(InputEnumPropertyOption), + }); +@@ -17,3 +16,3 @@ export declare namespace InputConfig { + interface Raw { +- options: serializers.InputEnumPropertyOption.Raw[]; ++ options: InputEnumPropertyOption.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/InputConstraint.ts b/src/serialization/resources/commons/types/InputConstraint.ts +index df71a16..84f29cb 100644 +--- a/src/serialization/resources/commons/types/InputConstraint.ts ++++ b/src/serialization/resources/commons/types/InputConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputConstraintType } from "./InputConstraintType"; + +@@ -12,3 +13,3 @@ export const InputConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).InputConstraintType), ++ type: InputConstraintType, + }); +@@ -17,3 +18,3 @@ export declare namespace InputConstraint { + interface Raw { +- type: serializers.InputConstraintType.Raw; ++ type: InputConstraintType.Raw; + } +diff --git a/src/serialization/resources/commons/types/InputField.ts b/src/serialization/resources/commons/types/InputField.ts +index 94b29bc..66952dd 100644 +--- a/src/serialization/resources/commons/types/InputField.ts ++++ b/src/serialization/resources/commons/types/InputField.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputConfig } from "./InputConfig"; ++import { InputConstraint } from "./InputConstraint"; + +@@ -15,6 +17,4 @@ export const InputField: core.serialization.ObjectSchema (await import("../../..")).InputConfig).optional(), +- constraints: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).InputConstraint)) +- .optional(), ++ config: InputConfig.optional(), ++ constraints: core.serialization.list(InputConstraint).optional(), + }); +@@ -28,4 +28,4 @@ export declare namespace InputField { + defaultValue?: any | null; +- config?: serializers.InputConfig.Raw | null; +- constraints?: serializers.InputConstraint.Raw[] | null; ++ config?: InputConfig.Raw | null; ++ constraints?: InputConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/commons/types/InputForm.ts b/src/serialization/resources/commons/types/InputForm.ts +index 42bf905..c4c469e 100644 +--- a/src/serialization/resources/commons/types/InputForm.ts ++++ b/src/serialization/resources/commons/types/InputForm.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputFormType } from "./InputFormType"; ++import { InputField } from "./InputField"; + +@@ -10,6 +12,4 @@ export const InputForm: core.serialization.ObjectSchema (await import("../../..")).InputFormType), +- fields: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).InputField) +- ), ++ type: InputFormType, ++ fields: core.serialization.list(InputField), + }); +@@ -18,4 +18,4 @@ export declare namespace InputForm { + interface Raw { +- type: serializers.InputFormType.Raw; +- fields: serializers.InputField.Raw[]; ++ type: InputFormType.Raw; ++ fields: InputField.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/Success.ts b/src/serialization/resources/commons/types/Success.ts +index 29191d6..6cedfa1 100644 +--- a/src/serialization/resources/commons/types/Success.ts ++++ b/src/serialization/resources/commons/types/Success.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SuccessData } from "./SuccessData"; + +@@ -10,3 +11,3 @@ export const Success: core.serialization.ObjectSchema (await import("../../..")).SuccessData).optional(), ++ data: SuccessData.optional(), + }); +@@ -15,3 +16,3 @@ export declare namespace Success { + interface Raw { +- data?: serializers.SuccessData.Raw | null; ++ data?: SuccessData.Raw | null; + } +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts +index ff62d1b..c15c377 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicyId } from "../../commons/types/DataRetentionPolicyId"; ++import { DataRetentionPolicyConfig } from "./DataRetentionPolicyConfig"; + +@@ -13,3 +15,3 @@ export const DataRetentionPolicy: core.serialization.ObjectSchema< + .object({ +- id: core.serialization.lazy(async () => (await import("../../..")).DataRetentionPolicyId), ++ id: DataRetentionPolicyId, + createdAt: core.serialization.date(), +@@ -17,7 +19,7 @@ export const DataRetentionPolicy: core.serialization.ObjectSchema< + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicyConfig)); ++ .extend(DataRetentionPolicyConfig); + + export declare namespace DataRetentionPolicy { +- interface Raw extends serializers.DataRetentionPolicyConfig.Raw { +- id: serializers.DataRetentionPolicyId.Raw; ++ interface Raw extends DataRetentionPolicyConfig.Raw { ++ id: DataRetentionPolicyId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts +index edbe89c..235e2f5 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicyEnum } from "./DataRetentionPolicyEnum"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; + +@@ -12,5 +14,5 @@ export const DataRetentionPolicyConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).DataRetentionPolicyEnum), ++ type: DataRetentionPolicyEnum, + period: core.serialization.number(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), ++ environmentId: EnvironmentId, + }); +@@ -19,5 +21,5 @@ export declare namespace DataRetentionPolicyConfig { + interface Raw { +- type: serializers.DataRetentionPolicyEnum.Raw; ++ type: DataRetentionPolicyEnum.Raw; + period: number; +- environmentId: serializers.EnvironmentId.Raw; ++ environmentId: EnvironmentId.Raw; + } +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts +index da57362..fd78041 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicy } from "./DataRetentionPolicy"; + +@@ -12,3 +13,3 @@ export const DataRetentionPolicyResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicy), ++ data: DataRetentionPolicy, + }); +@@ -17,3 +18,3 @@ export declare namespace DataRetentionPolicyResponse { + interface Raw { +- data: serializers.DataRetentionPolicy.Raw; ++ data: DataRetentionPolicy.Raw; + } +diff --git a/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts b/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts +index bb82dd4..811fb98 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicy } from "./DataRetentionPolicy"; + +@@ -12,5 +13,3 @@ export const ListDataRetentionPoliciesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicy) +- ), ++ data: core.serialization.list(DataRetentionPolicy), + }); +@@ -19,3 +18,3 @@ export declare namespace ListDataRetentionPoliciesResponse { + interface Raw { +- data: serializers.DataRetentionPolicy.Raw[]; ++ data: DataRetentionPolicy.Raw[]; + } +diff --git a/src/serialization/resources/documents/types/Document.ts b/src/serialization/resources/documents/types/Document.ts +index 51bc0cc..6be73b3 100644 +--- a/src/serialization/resources/documents/types/Document.ts ++++ b/src/serialization/resources/documents/types/Document.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DocumentId } from "../../commons/types/DocumentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { DocumentConfig } from "./DocumentConfig"; + +@@ -10,5 +14,5 @@ export const Document: core.serialization.ObjectSchema (await import("../../..")).DocumentId), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ id: DocumentId, ++ spaceId: SpaceId.optional(), ++ environmentId: EnvironmentId.optional(), + createdAt: core.serialization.date(), +@@ -16,9 +20,9 @@ export const Document: core.serialization.ObjectSchema (await import("../../..")).DocumentConfig)); ++ .extend(DocumentConfig); + + export declare namespace Document { +- interface Raw extends serializers.DocumentConfig.Raw { +- id: serializers.DocumentId.Raw; +- spaceId?: serializers.SpaceId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ interface Raw extends DocumentConfig.Raw { ++ id: DocumentId.Raw; ++ spaceId?: SpaceId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + createdAt: string; +diff --git a/src/serialization/resources/documents/types/DocumentConfig.ts b/src/serialization/resources/documents/types/DocumentConfig.ts +index 64cc667..a7b7c1d 100644 +--- a/src/serialization/resources/documents/types/DocumentConfig.ts ++++ b/src/serialization/resources/documents/types/DocumentConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Action } from "../../commons/types/Action"; + +@@ -13,5 +14,3 @@ export const DocumentConfig: core.serialization.ObjectSchema (await import("../../..")).Action)) +- .optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -23,3 +22,3 @@ export declare namespace DocumentConfig { + treatments?: string[] | null; +- actions?: serializers.Action.Raw[] | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/documents/types/DocumentResponse.ts b/src/serialization/resources/documents/types/DocumentResponse.ts +index 980edeb..d7c207a 100644 +--- a/src/serialization/resources/documents/types/DocumentResponse.ts ++++ b/src/serialization/resources/documents/types/DocumentResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Document } from "./Document"; + +@@ -12,3 +13,3 @@ export const DocumentResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Document), ++ data: Document, + }); +@@ -17,3 +18,3 @@ export declare namespace DocumentResponse { + interface Raw { +- data: serializers.Document.Raw; ++ data: Document.Raw; + } +diff --git a/src/serialization/resources/documents/types/ListDocumentsResponse.ts b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +index 17eb9ad..6de1ff3 100644 +--- a/src/serialization/resources/documents/types/ListDocumentsResponse.ts ++++ b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DocumentResponse } from "./DocumentResponse"; + +@@ -12,5 +13,3 @@ export const ListDocumentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DocumentResponse) +- ), ++ data: core.serialization.list(DocumentResponse), + }); +@@ -19,3 +18,3 @@ export declare namespace ListDocumentsResponse { + interface Raw { +- data: serializers.DocumentResponse.Raw[]; ++ data: DocumentResponse.Raw[]; + } +diff --git a/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +index 1e5a59a..0a05b48 100644 +--- a/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts ++++ b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Entitlement } from "./Entitlement"; + +@@ -12,3 +13,3 @@ export const ListEntitlementsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Entitlement)), ++ data: core.serialization.list(Entitlement), + }); +@@ -17,3 +18,3 @@ export declare namespace ListEntitlementsResponse { + interface Raw { +- data: serializers.Entitlement.Raw[]; ++ data: Entitlement.Raw[]; + } +diff --git a/src/serialization/resources/environments/types/Environment.ts b/src/serialization/resources/environments/types/Environment.ts +index 33280ca..80fb792 100644 +--- a/src/serialization/resources/environments/types/Environment.ts ++++ b/src/serialization/resources/environments/types/Environment.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -10,9 +13,7 @@ export const Environment: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), ++ id: EnvironmentId, ++ accountId: AccountId, + name: core.serialization.string(), + isProd: core.serialization.boolean(), +- guestAuthentication: core.serialization.list( +- core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum) +- ), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum), + features: core.serialization.record(core.serialization.string(), core.serialization.any()), +@@ -26,7 +27,7 @@ export declare namespace Environment { + interface Raw { +- id: serializers.EnvironmentId.Raw; +- accountId: serializers.AccountId.Raw; ++ id: EnvironmentId.Raw; ++ accountId: AccountId.Raw; + name: string; + isProd: boolean; +- guestAuthentication: serializers.GuestAuthenticationEnum.Raw[]; ++ guestAuthentication: GuestAuthenticationEnum.Raw[]; + features: Record; +diff --git a/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts b/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts +index 553c141..96bd5d6 100644 +--- a/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts ++++ b/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -14,5 +15,3 @@ export const EnvironmentConfigCreate: core.serialization.ObjectSchema< + isProd: core.serialization.boolean(), +- guestAuthentication: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum)) +- .optional(), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -27,3 +26,3 @@ export declare namespace EnvironmentConfigCreate { + isProd: boolean; +- guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts b/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts +index 4f7008c..2db4261 100644 +--- a/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts ++++ b/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -14,5 +15,3 @@ export const EnvironmentConfigUpdate: core.serialization.ObjectSchema< + isProd: core.serialization.boolean().optional(), +- guestAuthentication: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum)) +- .optional(), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -27,3 +26,3 @@ export declare namespace EnvironmentConfigUpdate { + isProd?: boolean | null; +- guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/environments/types/EnvironmentResponse.ts b/src/serialization/resources/environments/types/EnvironmentResponse.ts +index 8dc0231..d18af70 100644 +--- a/src/serialization/resources/environments/types/EnvironmentResponse.ts ++++ b/src/serialization/resources/environments/types/EnvironmentResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Environment } from "./Environment"; + +@@ -12,3 +13,3 @@ export const EnvironmentResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Environment), ++ data: Environment, + }); +@@ -17,3 +18,3 @@ export declare namespace EnvironmentResponse { + interface Raw { +- data: serializers.Environment.Raw; ++ data: Environment.Raw; + } +diff --git a/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts b/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts +index e68721d..93f4727 100644 +--- a/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts ++++ b/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Environment } from "./Environment"; ++import { Pagination } from "../../commons/types/Pagination"; + +@@ -12,4 +14,4 @@ export const ListEnvironmentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Environment)), +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list(Environment), ++ pagination: Pagination.optional(), + }); +@@ -18,4 +20,4 @@ export declare namespace ListEnvironmentsResponse { + interface Raw { +- data: serializers.Environment.Raw[]; +- pagination?: serializers.Pagination.Raw | null; ++ data: Environment.Raw[]; ++ pagination?: Pagination.Raw | null; + } +diff --git a/src/serialization/resources/events/types/BaseEvent.ts b/src/serialization/resources/events/types/BaseEvent.ts +index 9c6c8d5..5091bcd 100644 +--- a/src/serialization/resources/events/types/BaseEvent.ts ++++ b/src/serialization/resources/events/types/BaseEvent.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Domain } from "./Domain"; ++import { Context } from "./Context"; ++import { EventAttributes } from "./EventAttributes"; ++import { Origin } from "./Origin"; + +@@ -10,5 +14,5 @@ export const BaseEvent: core.serialization.ObjectSchema (await import("../../..")).Domain), +- context: core.serialization.lazyObject(async () => (await import("../../..")).Context), +- attributes: core.serialization.lazyObject(async () => (await import("../../..")).EventAttributes).optional(), ++ domain: Domain, ++ context: Context, ++ attributes: EventAttributes.optional(), + callbackUrl: core.serialization.string().optional(), +@@ -16,3 +20,3 @@ export const BaseEvent: core.serialization.ObjectSchema (await import("../../..")).Origin).optional(), ++ origin: Origin.optional(), + namespaces: core.serialization.list(core.serialization.string()).optional(), +@@ -22,5 +26,5 @@ export declare namespace BaseEvent { + interface Raw { +- domain: serializers.Domain.Raw; +- context: serializers.Context.Raw; +- attributes?: serializers.EventAttributes.Raw | null; ++ domain: Domain.Raw; ++ context: Context.Raw; ++ attributes?: EventAttributes.Raw | null; + callbackUrl?: string | null; +@@ -28,3 +32,3 @@ export declare namespace BaseEvent { + target?: string | null; +- origin?: serializers.Origin.Raw | null; ++ origin?: Origin.Raw | null; + namespaces?: string[] | null; +diff --git a/src/serialization/resources/events/types/Context.ts b/src/serialization/resources/events/types/Context.ts +index be5bd5b..f9c3faf 100644 +--- a/src/serialization/resources/events/types/Context.ts ++++ b/src/serialization/resources/events/types/Context.ts +@@ -7,2 +7,19 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventContextSlugs } from "./EventContextSlugs"; ++import { ActionName } from "./ActionName"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { SheetSlug } from "./SheetSlug"; ++import { SnapshotId } from "../../commons/types/SnapshotId"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { JobId } from "../../commons/types/JobId"; ++import { ProgramId } from "../../commons/types/ProgramId"; ++import { FileId } from "../../commons/types/FileId"; ++import { DocumentId } from "../../commons/types/DocumentId"; ++import { EventId } from "../../commons/types/EventId"; ++import { AppId } from "../../commons/types/AppId"; + +@@ -11,19 +28,20 @@ export const Context: core.serialization.ObjectSchema (await import("../../..")).EventContextSlugs).optional(), +- actionName: core.serialization.lazy(async () => (await import("../../..")).ActionName).optional(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId).optional(), +- sheetSlug: core.serialization.lazy(async () => (await import("../../..")).SheetSlug).optional(), +- snapshotId: core.serialization.lazy(async () => (await import("../../..")).SnapshotId).optional(), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), +- jobId: core.serialization.lazy(async () => (await import("../../..")).JobId).optional(), +- programId: core.serialization.lazy(async () => (await import("../../..")).ProgramId).optional(), +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId).optional(), +- documentId: core.serialization.lazy(async () => (await import("../../..")).DocumentId).optional(), +- precedingEventId: core.serialization.lazy(async () => (await import("../../..")).EventId).optional(), ++ slugs: EventContextSlugs.optional(), ++ actionName: ActionName.optional(), ++ accountId: AccountId, ++ environmentId: EnvironmentId, ++ spaceId: SpaceId.optional(), ++ workbookId: WorkbookId.optional(), ++ sheetId: SheetId.optional(), ++ sheetSlug: SheetSlug.optional(), ++ snapshotId: SnapshotId.optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), ++ jobId: JobId.optional(), ++ programId: ProgramId.optional(), ++ fileId: FileId.optional(), ++ documentId: DocumentId.optional(), ++ precedingEventId: EventId.optional(), + actorId: core.serialization.string().optional(), ++ appId: AppId.optional(), + }); +@@ -33,19 +51,20 @@ export declare namespace Context { + namespaces?: string[] | null; +- slugs?: serializers.EventContextSlugs.Raw | null; +- actionName?: serializers.ActionName.Raw | null; +- accountId: serializers.AccountId.Raw; +- environmentId: serializers.EnvironmentId.Raw; +- spaceId?: serializers.SpaceId.Raw | null; +- workbookId?: serializers.WorkbookId.Raw | null; +- sheetId?: serializers.SheetId.Raw | null; +- sheetSlug?: serializers.SheetSlug.Raw | null; +- snapshotId?: serializers.SnapshotId.Raw | null; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; +- jobId?: serializers.JobId.Raw | null; +- programId?: serializers.ProgramId.Raw | null; +- fileId?: serializers.FileId.Raw | null; +- documentId?: serializers.DocumentId.Raw | null; +- precedingEventId?: serializers.EventId.Raw | null; ++ slugs?: EventContextSlugs.Raw | null; ++ actionName?: ActionName.Raw | null; ++ accountId: AccountId.Raw; ++ environmentId: EnvironmentId.Raw; ++ spaceId?: SpaceId.Raw | null; ++ workbookId?: WorkbookId.Raw | null; ++ sheetId?: SheetId.Raw | null; ++ sheetSlug?: SheetSlug.Raw | null; ++ snapshotId?: SnapshotId.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; ++ jobId?: JobId.Raw | null; ++ programId?: ProgramId.Raw | null; ++ fileId?: FileId.Raw | null; ++ documentId?: DocumentId.Raw | null; ++ precedingEventId?: EventId.Raw | null; + actorId?: string | null; ++ appId?: AppId.Raw | null; + } +diff --git a/src/serialization/resources/events/types/CreateEventConfig.ts b/src/serialization/resources/events/types/CreateEventConfig.ts +index 92e0ac2..0fb6cee 100644 +--- a/src/serialization/resources/events/types/CreateEventConfig.ts ++++ b/src/serialization/resources/events/types/CreateEventConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventTopic } from "./EventTopic"; ++import { BaseEvent } from "./BaseEvent"; + +@@ -13,3 +15,3 @@ export const CreateEventConfig: core.serialization.ObjectSchema< + .object({ +- topic: core.serialization.lazy(async () => (await import("../../..")).EventTopic), ++ topic: EventTopic, + payload: core.serialization.record(core.serialization.string(), core.serialization.any()), +@@ -17,7 +19,7 @@ export const CreateEventConfig: core.serialization.ObjectSchema< + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseEvent)); ++ .extend(BaseEvent); + + export declare namespace CreateEventConfig { +- interface Raw extends serializers.BaseEvent.Raw { +- topic: serializers.EventTopic.Raw; ++ interface Raw extends BaseEvent.Raw { ++ topic: EventTopic.Raw; + payload: Record; +diff --git a/src/serialization/resources/events/types/Domain.ts b/src/serialization/resources/events/types/Domain.ts +index e35b638..25cf0c0 100644 +--- a/src/serialization/resources/events/types/Domain.ts ++++ b/src/serialization/resources/events/types/Domain.ts +@@ -17,2 +17,3 @@ export const Domain: core.serialization.Schema (await import("../../..")).GenericEvent), +- "agent:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "agent:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:archived": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:guestAdded": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:guestRemoved": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "document:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "document:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "document:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "sheet:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "sheet:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "sheet:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "snapshot:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "records:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "records:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "records:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:failed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:ready": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:scheduled": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:outcome-acknowledged": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:parts-completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "program:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "program:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "commit:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "commit:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "commit:completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "secret:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "secret:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "secret:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "layer:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "agent:created": GenericEvent, ++ "agent:updated": GenericEvent, ++ "agent:deleted": GenericEvent, ++ "space:created": GenericEvent, ++ "space:updated": GenericEvent, ++ "space:deleted": GenericEvent, ++ "space:archived": GenericEvent, ++ "space:expired": GenericEvent, ++ "space:guestAdded": GenericEvent, ++ "space:guestRemoved": GenericEvent, ++ "document:created": GenericEvent, ++ "document:updated": GenericEvent, ++ "document:deleted": GenericEvent, ++ "workbook:created": GenericEvent, ++ "workbook:updated": GenericEvent, ++ "workbook:deleted": GenericEvent, ++ "workbook:expired": GenericEvent, ++ "sheet:created": GenericEvent, ++ "sheet:updated": GenericEvent, ++ "sheet:deleted": GenericEvent, ++ "sheet:counts-updated": GenericEvent, ++ "snapshot:created": GenericEvent, ++ "records:created": GenericEvent, ++ "records:updated": GenericEvent, ++ "records:deleted": GenericEvent, ++ "file:created": GenericEvent, ++ "file:updated": GenericEvent, ++ "file:deleted": GenericEvent, ++ "file:expired": GenericEvent, ++ "job:created": GenericEvent, ++ "job:updated": GenericEvent, ++ "job:deleted": GenericEvent, ++ "job:failed": GenericEvent, ++ "job:completed": GenericEvent, ++ "job:ready": GenericEvent, ++ "job:scheduled": GenericEvent, ++ "job:outcome-acknowledged": GenericEvent, ++ "job:parts-completed": GenericEvent, ++ "program:created": GenericEvent, ++ "program:updated": GenericEvent, ++ "commit:created": GenericEvent, ++ "commit:updated": GenericEvent, ++ "commit:completed": GenericEvent, ++ "secret:created": GenericEvent, ++ "secret:updated": GenericEvent, ++ "secret:deleted": GenericEvent, ++ "layer:created": GenericEvent, + }) +@@ -84,2 +86,3 @@ export declare namespace Event { + | Event.SheetDeleted ++ | Event.SheetCountsUpdated + | Event.SnapshotCreated +@@ -111,3 +114,3 @@ export declare namespace Event { + +- interface AgentCreated extends serializers.GenericEvent.Raw { ++ interface AgentCreated extends GenericEvent.Raw { + topic: "agent:created"; +@@ -115,3 +118,3 @@ export declare namespace Event { + +- interface AgentUpdated extends serializers.GenericEvent.Raw { ++ interface AgentUpdated extends GenericEvent.Raw { + topic: "agent:updated"; +@@ -119,3 +122,3 @@ export declare namespace Event { + +- interface AgentDeleted extends serializers.GenericEvent.Raw { ++ interface AgentDeleted extends GenericEvent.Raw { + topic: "agent:deleted"; +@@ -123,3 +126,3 @@ export declare namespace Event { + +- interface SpaceCreated extends serializers.GenericEvent.Raw { ++ interface SpaceCreated extends GenericEvent.Raw { + topic: "space:created"; +@@ -127,3 +130,3 @@ export declare namespace Event { + +- interface SpaceUpdated extends serializers.GenericEvent.Raw { ++ interface SpaceUpdated extends GenericEvent.Raw { + topic: "space:updated"; +@@ -131,3 +134,3 @@ export declare namespace Event { + +- interface SpaceDeleted extends serializers.GenericEvent.Raw { ++ interface SpaceDeleted extends GenericEvent.Raw { + topic: "space:deleted"; +@@ -135,3 +138,3 @@ export declare namespace Event { + +- interface SpaceArchived extends serializers.GenericEvent.Raw { ++ interface SpaceArchived extends GenericEvent.Raw { + topic: "space:archived"; +@@ -139,3 +142,3 @@ export declare namespace Event { + +- interface SpaceExpired extends serializers.GenericEvent.Raw { ++ interface SpaceExpired extends GenericEvent.Raw { + topic: "space:expired"; +@@ -143,3 +146,3 @@ export declare namespace Event { + +- interface SpaceGuestAdded extends serializers.GenericEvent.Raw { ++ interface SpaceGuestAdded extends GenericEvent.Raw { + topic: "space:guestAdded"; +@@ -147,3 +150,3 @@ export declare namespace Event { + +- interface SpaceGuestRemoved extends serializers.GenericEvent.Raw { ++ interface SpaceGuestRemoved extends GenericEvent.Raw { + topic: "space:guestRemoved"; +@@ -151,3 +154,3 @@ export declare namespace Event { + +- interface DocumentCreated extends serializers.GenericEvent.Raw { ++ interface DocumentCreated extends GenericEvent.Raw { + topic: "document:created"; +@@ -155,3 +158,3 @@ export declare namespace Event { + +- interface DocumentUpdated extends serializers.GenericEvent.Raw { ++ interface DocumentUpdated extends GenericEvent.Raw { + topic: "document:updated"; +@@ -159,3 +162,3 @@ export declare namespace Event { + +- interface DocumentDeleted extends serializers.GenericEvent.Raw { ++ interface DocumentDeleted extends GenericEvent.Raw { + topic: "document:deleted"; +@@ -163,3 +166,3 @@ export declare namespace Event { + +- interface WorkbookCreated extends serializers.GenericEvent.Raw { ++ interface WorkbookCreated extends GenericEvent.Raw { + topic: "workbook:created"; +@@ -167,3 +170,3 @@ export declare namespace Event { + +- interface WorkbookUpdated extends serializers.GenericEvent.Raw { ++ interface WorkbookUpdated extends GenericEvent.Raw { + topic: "workbook:updated"; +@@ -171,3 +174,3 @@ export declare namespace Event { + +- interface WorkbookDeleted extends serializers.GenericEvent.Raw { ++ interface WorkbookDeleted extends GenericEvent.Raw { + topic: "workbook:deleted"; +@@ -175,3 +178,3 @@ export declare namespace Event { + +- interface WorkbookExpired extends serializers.GenericEvent.Raw { ++ interface WorkbookExpired extends GenericEvent.Raw { + topic: "workbook:expired"; +@@ -179,3 +182,3 @@ export declare namespace Event { + +- interface SheetCreated extends serializers.GenericEvent.Raw { ++ interface SheetCreated extends GenericEvent.Raw { + topic: "sheet:created"; +@@ -183,3 +186,3 @@ export declare namespace Event { + +- interface SheetUpdated extends serializers.GenericEvent.Raw { ++ interface SheetUpdated extends GenericEvent.Raw { + topic: "sheet:updated"; +@@ -187,3 +190,3 @@ export declare namespace Event { + +- interface SheetDeleted extends serializers.GenericEvent.Raw { ++ interface SheetDeleted extends GenericEvent.Raw { + topic: "sheet:deleted"; +@@ -191,3 +194,7 @@ export declare namespace Event { + +- interface SnapshotCreated extends serializers.GenericEvent.Raw { ++ interface SheetCountsUpdated extends GenericEvent.Raw { ++ topic: "sheet:counts-updated"; ++ } ++ ++ interface SnapshotCreated extends GenericEvent.Raw { + topic: "snapshot:created"; +@@ -195,3 +202,3 @@ export declare namespace Event { + +- interface RecordsCreated extends serializers.GenericEvent.Raw { ++ interface RecordsCreated extends GenericEvent.Raw { + topic: "records:created"; +@@ -199,3 +206,3 @@ export declare namespace Event { + +- interface RecordsUpdated extends serializers.GenericEvent.Raw { ++ interface RecordsUpdated extends GenericEvent.Raw { + topic: "records:updated"; +@@ -203,3 +210,3 @@ export declare namespace Event { + +- interface RecordsDeleted extends serializers.GenericEvent.Raw { ++ interface RecordsDeleted extends GenericEvent.Raw { + topic: "records:deleted"; +@@ -207,3 +214,3 @@ export declare namespace Event { + +- interface FileCreated extends serializers.GenericEvent.Raw { ++ interface FileCreated extends GenericEvent.Raw { + topic: "file:created"; +@@ -211,3 +218,3 @@ export declare namespace Event { + +- interface FileUpdated extends serializers.GenericEvent.Raw { ++ interface FileUpdated extends GenericEvent.Raw { + topic: "file:updated"; +@@ -215,3 +222,3 @@ export declare namespace Event { + +- interface FileDeleted extends serializers.GenericEvent.Raw { ++ interface FileDeleted extends GenericEvent.Raw { + topic: "file:deleted"; +@@ -219,3 +226,3 @@ export declare namespace Event { + +- interface FileExpired extends serializers.GenericEvent.Raw { ++ interface FileExpired extends GenericEvent.Raw { + topic: "file:expired"; +@@ -223,3 +230,3 @@ export declare namespace Event { + +- interface JobCreated extends serializers.GenericEvent.Raw { ++ interface JobCreated extends GenericEvent.Raw { + topic: "job:created"; +@@ -227,3 +234,3 @@ export declare namespace Event { + +- interface JobUpdated extends serializers.GenericEvent.Raw { ++ interface JobUpdated extends GenericEvent.Raw { + topic: "job:updated"; +@@ -231,3 +238,3 @@ export declare namespace Event { + +- interface JobDeleted extends serializers.GenericEvent.Raw { ++ interface JobDeleted extends GenericEvent.Raw { + topic: "job:deleted"; +@@ -235,3 +242,3 @@ export declare namespace Event { + +- interface JobFailed extends serializers.GenericEvent.Raw { ++ interface JobFailed extends GenericEvent.Raw { + topic: "job:failed"; +@@ -239,3 +246,3 @@ export declare namespace Event { + +- interface JobCompleted extends serializers.GenericEvent.Raw { ++ interface JobCompleted extends GenericEvent.Raw { + topic: "job:completed"; +@@ -243,3 +250,3 @@ export declare namespace Event { + +- interface JobReady extends serializers.GenericEvent.Raw { ++ interface JobReady extends GenericEvent.Raw { + topic: "job:ready"; +@@ -247,3 +254,3 @@ export declare namespace Event { + +- interface JobScheduled extends serializers.GenericEvent.Raw { ++ interface JobScheduled extends GenericEvent.Raw { + topic: "job:scheduled"; +@@ -251,3 +258,3 @@ export declare namespace Event { + +- interface JobOutcomeAcknowledged extends serializers.GenericEvent.Raw { ++ interface JobOutcomeAcknowledged extends GenericEvent.Raw { + topic: "job:outcome-acknowledged"; +@@ -255,3 +262,3 @@ export declare namespace Event { + +- interface JobPartsCompleted extends serializers.GenericEvent.Raw { ++ interface JobPartsCompleted extends GenericEvent.Raw { + topic: "job:parts-completed"; +@@ -259,3 +266,3 @@ export declare namespace Event { + +- interface ProgramCreated extends serializers.GenericEvent.Raw { ++ interface ProgramCreated extends GenericEvent.Raw { + topic: "program:created"; +@@ -263,3 +270,3 @@ export declare namespace Event { + +- interface ProgramUpdated extends serializers.GenericEvent.Raw { ++ interface ProgramUpdated extends GenericEvent.Raw { + topic: "program:updated"; +@@ -267,3 +274,3 @@ export declare namespace Event { + +- interface CommitCreated extends serializers.GenericEvent.Raw { ++ interface CommitCreated extends GenericEvent.Raw { + topic: "commit:created"; +@@ -271,3 +278,3 @@ export declare namespace Event { + +- interface CommitUpdated extends serializers.GenericEvent.Raw { ++ interface CommitUpdated extends GenericEvent.Raw { + topic: "commit:updated"; +@@ -275,3 +282,3 @@ export declare namespace Event { + +- interface CommitCompleted extends serializers.GenericEvent.Raw { ++ interface CommitCompleted extends GenericEvent.Raw { + topic: "commit:completed"; +@@ -279,3 +286,3 @@ export declare namespace Event { + +- interface SecretCreated extends serializers.GenericEvent.Raw { ++ interface SecretCreated extends GenericEvent.Raw { + topic: "secret:created"; +@@ -283,3 +290,3 @@ export declare namespace Event { + +- interface SecretUpdated extends serializers.GenericEvent.Raw { ++ interface SecretUpdated extends GenericEvent.Raw { + topic: "secret:updated"; +@@ -287,3 +294,3 @@ export declare namespace Event { + +- interface SecretDeleted extends serializers.GenericEvent.Raw { ++ interface SecretDeleted extends GenericEvent.Raw { + topic: "secret:deleted"; +@@ -291,3 +298,3 @@ export declare namespace Event { + +- interface LayerCreated extends serializers.GenericEvent.Raw { ++ interface LayerCreated extends GenericEvent.Raw { + topic: "layer:created"; +diff --git a/src/serialization/resources/events/types/EventAttributes.ts b/src/serialization/resources/events/types/EventAttributes.ts +index b7491b6..2c3d7a3 100644 +--- a/src/serialization/resources/events/types/EventAttributes.ts ++++ b/src/serialization/resources/events/types/EventAttributes.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Progress } from "./Progress"; + +@@ -13,3 +14,3 @@ export const EventAttributes: core.serialization.ObjectSchema< + targetUpdatedAt: core.serialization.date().optional(), +- progress: core.serialization.lazyObject(async () => (await import("../../..")).Progress).optional(), ++ progress: Progress.optional(), + }); +@@ -19,3 +20,3 @@ export declare namespace EventAttributes { + targetUpdatedAt?: string | null; +- progress?: serializers.Progress.Raw | null; ++ progress?: Progress.Raw | null; + } +diff --git a/src/serialization/resources/events/types/EventResponse.ts b/src/serialization/resources/events/types/EventResponse.ts +index ed7cea4..01c2432 100644 +--- a/src/serialization/resources/events/types/EventResponse.ts ++++ b/src/serialization/resources/events/types/EventResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Event } from "./Event"; + +@@ -10,3 +11,3 @@ export const EventResponse: core.serialization.ObjectSchema (await import("../../..")).Event), ++ data: Event, + }); +@@ -15,3 +16,3 @@ export declare namespace EventResponse { + interface Raw { +- data: serializers.Event.Raw; ++ data: Event.Raw; + } +diff --git a/src/serialization/resources/events/types/EventTopic.ts b/src/serialization/resources/events/types/EventTopic.ts +index 8302ee9..5805426 100644 +--- a/src/serialization/resources/events/types/EventTopic.ts ++++ b/src/serialization/resources/events/types/EventTopic.ts +@@ -30,2 +30,3 @@ export const EventTopic: core.serialization.Schema (await import("../../..")).EventId), ++ id: EventId, + createdAt: core.serialization.date(), +@@ -18,7 +20,7 @@ export const GenericEvent: core.serialization.ObjectSchema (await import("../../..")).BaseEvent)); ++ .extend(BaseEvent); + + export declare namespace GenericEvent { +- interface Raw extends serializers.BaseEvent.Raw { +- id: serializers.EventId.Raw; ++ interface Raw extends BaseEvent.Raw { ++ id: EventId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/events/types/ListAllEventsResponse.ts b/src/serialization/resources/events/types/ListAllEventsResponse.ts +index 4a5a4df..ea80637 100644 +--- a/src/serialization/resources/events/types/ListAllEventsResponse.ts ++++ b/src/serialization/resources/events/types/ListAllEventsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Event } from "./Event"; + +@@ -12,3 +13,3 @@ export const ListAllEventsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).Event)), ++ data: core.serialization.list(Event), + }); +@@ -17,3 +18,3 @@ export declare namespace ListAllEventsResponse { + interface Raw { +- data: serializers.Event.Raw[]; ++ data: Event.Raw[]; + } +diff --git a/src/serialization/resources/files/client/requests/UpdateFileRequest.ts b/src/serialization/resources/files/client/requests/UpdateFileRequest.ts +index c051d5b..cdac336 100644 +--- a/src/serialization/resources/files/client/requests/UpdateFileRequest.ts ++++ b/src/serialization/resources/files/client/requests/UpdateFileRequest.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { WorkbookId } from "../../../commons/types/WorkbookId"; ++import { Mode } from "../../types/Mode"; ++import { ModelFileStatusEnum } from "../../types/ModelFileStatusEnum"; ++import { Action } from "../../../commons/types/Action"; + +@@ -12,9 +16,7 @@ export const UpdateFileRequest: core.serialization.Schema< + > = core.serialization.object({ +- workbookId: core.serialization.lazy(async () => (await import("../../../..")).WorkbookId).optional(), ++ workbookId: WorkbookId.optional(), + name: core.serialization.string().optional(), +- mode: core.serialization.lazy(async () => (await import("../../../..")).Mode).optional(), +- status: core.serialization.lazy(async () => (await import("../../../..")).ModelFileStatusEnum).optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../../..")).Action)) +- .optional(), ++ mode: Mode.optional(), ++ status: ModelFileStatusEnum.optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -23,7 +25,7 @@ export declare namespace UpdateFileRequest { + interface Raw { +- workbookId?: serializers.WorkbookId.Raw | null; ++ workbookId?: WorkbookId.Raw | null; + name?: string | null; +- mode?: serializers.Mode.Raw | null; +- status?: serializers.ModelFileStatusEnum.Raw | null; +- actions?: serializers.Action.Raw[] | null; ++ mode?: Mode.Raw | null; ++ status?: ModelFileStatusEnum.Raw | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/files/types/FileResponse.ts b/src/serialization/resources/files/types/FileResponse.ts +index 6d471d0..dfdcf4a 100644 +--- a/src/serialization/resources/files/types/FileResponse.ts ++++ b/src/serialization/resources/files/types/FileResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { File_ } from "./File_"; + +@@ -10,3 +11,3 @@ export const FileResponse: core.serialization.ObjectSchema (await import("../../..")).File_), ++ data: File_, + }); +@@ -15,3 +16,3 @@ export declare namespace FileResponse { + interface Raw { +- data: serializers.File_.Raw; ++ data: File_.Raw; + } +diff --git a/src/serialization/resources/files/types/File_.ts b/src/serialization/resources/files/types/File_.ts +index be5afe6..e51ec4e 100644 +--- a/src/serialization/resources/files/types/File_.ts ++++ b/src/serialization/resources/files/types/File_.ts +@@ -7,5 +7,12 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FileId } from "../../commons/types/FileId"; ++import { ModelFileStatusEnum } from "./ModelFileStatusEnum"; ++import { Mode } from "./Mode"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { Action } from "../../commons/types/Action"; + + export const File_: core.serialization.ObjectSchema = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).FileId), ++ id: FileId, + name: core.serialization.string(), +@@ -14,4 +21,4 @@ export const File_: core.serialization.ObjectSchema (await import("../../..")).ModelFileStatusEnum), +- mode: core.serialization.lazy(async () => (await import("../../..")).Mode).optional(), ++ status: ModelFileStatusEnum, ++ mode: Mode.optional(), + size: core.serialization.number(), +@@ -21,8 +28,6 @@ export const File_: core.serialization.ObjectSchema (await import("../../..")).SpaceId), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId).optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ spaceId: SpaceId, ++ workbookId: WorkbookId.optional(), ++ sheetId: SheetId.optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -31,3 +36,3 @@ export declare namespace File_ { + interface Raw { +- id: serializers.FileId.Raw; ++ id: FileId.Raw; + name: string; +@@ -36,4 +41,4 @@ export declare namespace File_ { + encoding: string; +- status: serializers.ModelFileStatusEnum.Raw; +- mode?: serializers.Mode.Raw | null; ++ status: ModelFileStatusEnum.Raw; ++ mode?: Mode.Raw | null; + size: number; +@@ -43,6 +48,6 @@ export declare namespace File_ { + expiredAt?: string | null; +- spaceId: serializers.SpaceId.Raw; +- workbookId?: serializers.WorkbookId.Raw | null; +- sheetId?: serializers.SheetId.Raw | null; +- actions?: serializers.Action.Raw[] | null; ++ spaceId: SpaceId.Raw; ++ workbookId?: WorkbookId.Raw | null; ++ sheetId?: SheetId.Raw | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/files/types/ListFilesResponse.ts b/src/serialization/resources/files/types/ListFilesResponse.ts +index 031df46..3fd4366 100644 +--- a/src/serialization/resources/files/types/ListFilesResponse.ts ++++ b/src/serialization/resources/files/types/ListFilesResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { File_ } from "./File_"; + +@@ -12,4 +14,4 @@ export const ListFilesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).File_)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(File_), + }); +@@ -18,4 +20,4 @@ export declare namespace ListFilesResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.File_.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: File_.Raw[]; + } +diff --git a/src/serialization/resources/foreigndb/index.ts b/src/serialization/resources/foreigndb/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/foreigndb/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/foreigndb/types/DatabaseTask.ts b/src/serialization/resources/foreigndb/types/DatabaseTask.ts +new file mode 100644 +index 0000000..0ecae12 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/DatabaseTask.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const DatabaseTask: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ status: core.serialization.string(), ++ type: core.serialization.string(), ++ progress: core.serialization.number(), ++ }); ++ ++export declare namespace DatabaseTask { ++ interface Raw { ++ status: string; ++ type: string; ++ progress: number; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts b/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts +new file mode 100644 +index 0000000..c2ed67a +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { DatabaseTask } from "./DatabaseTask"; ++ ++export const GetDatabaseResponse: core.serialization.ObjectSchema< ++ serializers.GetDatabaseResponse.Raw, ++ Flatfile.GetDatabaseResponse ++> = core.serialization.object({ ++ task: DatabaseTask, ++}); ++ ++export declare namespace GetDatabaseResponse { ++ interface Raw { ++ task: DatabaseTask.Raw; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts b/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts +new file mode 100644 +index 0000000..60c4812 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const GetDatabaseUserResponse: core.serialization.ObjectSchema< ++ serializers.GetDatabaseUserResponse.Raw, ++ Flatfile.GetDatabaseUserResponse ++> = core.serialization.object({ ++ username: core.serialization.string(), ++ password: core.serialization.string(), ++}); ++ ++export declare namespace GetDatabaseUserResponse { ++ interface Raw { ++ username: string; ++ password: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts b/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts +new file mode 100644 +index 0000000..54f0df8 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const RestoreDatabaseRequest: core.serialization.ObjectSchema< ++ serializers.RestoreDatabaseRequest.Raw, ++ Flatfile.RestoreDatabaseRequest ++> = core.serialization.object({ ++ fileId: core.serialization.string(), ++}); ++ ++export declare namespace RestoreDatabaseRequest { ++ interface Raw { ++ fileId: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts b/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts +new file mode 100644 +index 0000000..963dfea +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const RestoreDatabaseResponse: core.serialization.ObjectSchema< ++ serializers.RestoreDatabaseResponse.Raw, ++ Flatfile.RestoreDatabaseResponse ++> = core.serialization.object({ ++ host: core.serialization.string(), ++ port: core.serialization.number(), ++ dbname: core.serialization.string(), ++}); ++ ++export declare namespace RestoreDatabaseResponse { ++ interface Raw { ++ host: string; ++ port: number; ++ dbname: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts b/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts +new file mode 100644 +index 0000000..6aada70 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const UploadToObjectStorageRequest: core.serialization.ObjectSchema< ++ serializers.UploadToObjectStorageRequest.Raw, ++ Flatfile.UploadToObjectStorageRequest ++> = core.serialization.object({ ++ fileId: core.serialization.string(), ++}); ++ ++export declare namespace UploadToObjectStorageRequest { ++ interface Raw { ++ fileId: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/index.ts b/src/serialization/resources/foreigndb/types/index.ts +new file mode 100644 +index 0000000..8086286 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/index.ts +@@ -0,0 +1,6 @@ ++export * from "./UploadToObjectStorageRequest"; ++export * from "./RestoreDatabaseRequest"; ++export * from "./RestoreDatabaseResponse"; ++export * from "./GetDatabaseResponse"; ++export * from "./DatabaseTask"; ++export * from "./GetDatabaseUserResponse"; +diff --git a/src/serialization/resources/guests/client/create.ts b/src/serialization/resources/guests/client/create.ts +index cb67c36..864ae1c 100644 +--- a/src/serialization/resources/guests/client/create.ts ++++ b/src/serialization/resources/guests/client/create.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestConfig } from "../types/GuestConfig"; + + export const Request: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).GuestConfig)); ++ core.serialization.list(GuestConfig); + + export declare namespace Request { +- type Raw = serializers.GuestConfig.Raw[]; ++ type Raw = GuestConfig.Raw[]; + } +diff --git a/src/serialization/resources/guests/client/invite.ts b/src/serialization/resources/guests/client/invite.ts +index efd1d9d..6c27969 100644 +--- a/src/serialization/resources/guests/client/invite.ts ++++ b/src/serialization/resources/guests/client/invite.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Invite } from "../types/Invite"; + + export const Request: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Invite)); ++ core.serialization.list(Invite); + + export declare namespace Request { +- type Raw = serializers.Invite.Raw[]; ++ type Raw = Invite.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/CreateGuestResponse.ts b/src/serialization/resources/guests/types/CreateGuestResponse.ts +index 83ae108..153dc3f 100644 +--- a/src/serialization/resources/guests/types/CreateGuestResponse.ts ++++ b/src/serialization/resources/guests/types/CreateGuestResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Guest } from "./Guest"; + +@@ -12,3 +13,3 @@ export const CreateGuestResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Guest)), ++ data: core.serialization.list(Guest), + }); +@@ -17,3 +18,3 @@ export declare namespace CreateGuestResponse { + interface Raw { +- data: serializers.Guest.Raw[]; ++ data: Guest.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/Guest.ts b/src/serialization/resources/guests/types/Guest.ts +index 7e86e97..6eddce0 100644 +--- a/src/serialization/resources/guests/types/Guest.ts ++++ b/src/serialization/resources/guests/types/Guest.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestId } from "../../commons/types/GuestId"; ++import { GuestConfig } from "./GuestConfig"; + +@@ -10,3 +12,3 @@ export const Guest: core.serialization.ObjectSchema (await import("../../..")).GuestId), ++ id: GuestId, + createdAt: core.serialization.date(), +@@ -14,7 +16,7 @@ export const Guest: core.serialization.ObjectSchema (await import("../../..")).GuestConfig)); ++ .extend(GuestConfig); + + export declare namespace Guest { +- interface Raw extends serializers.GuestConfig.Raw { +- id: serializers.GuestId.Raw; ++ interface Raw extends GuestConfig.Raw { ++ id: GuestId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/guests/types/GuestConfig.ts b/src/serialization/resources/guests/types/GuestConfig.ts +index d996f49..c329126 100644 +--- a/src/serialization/resources/guests/types/GuestConfig.ts ++++ b/src/serialization/resources/guests/types/GuestConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { GuestSpace } from "./GuestSpace"; + +@@ -10,8 +12,6 @@ export const GuestConfig: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId), ++ environmentId: EnvironmentId, + email: core.serialization.string(), + name: core.serialization.string(), +- spaces: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).GuestSpace) +- ), ++ spaces: core.serialization.list(GuestSpace), + }); +@@ -20,6 +20,6 @@ export declare namespace GuestConfig { + interface Raw { +- environmentId: serializers.EnvironmentId.Raw; ++ environmentId: EnvironmentId.Raw; + email: string; + name: string; +- spaces: serializers.GuestSpace.Raw[]; ++ spaces: GuestSpace.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/GuestConfigUpdate.ts b/src/serialization/resources/guests/types/GuestConfigUpdate.ts +index 38c8b39..53eed6f 100644 +--- a/src/serialization/resources/guests/types/GuestConfigUpdate.ts ++++ b/src/serialization/resources/guests/types/GuestConfigUpdate.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { GuestSpace } from "./GuestSpace"; + +@@ -12,8 +14,6 @@ export const GuestConfigUpdate: core.serialization.ObjectSchema< + > = core.serialization.object({ +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ environmentId: EnvironmentId.optional(), + email: core.serialization.string().optional(), + name: core.serialization.string().optional(), +- spaces: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).GuestSpace)) +- .optional(), ++ spaces: core.serialization.list(GuestSpace).optional(), + }); +@@ -22,6 +22,6 @@ export declare namespace GuestConfigUpdate { + interface Raw { +- environmentId?: serializers.EnvironmentId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + email?: string | null; + name?: string | null; +- spaces?: serializers.GuestSpace.Raw[] | null; ++ spaces?: GuestSpace.Raw[] | null; + } +diff --git a/src/serialization/resources/guests/types/GuestResponse.ts b/src/serialization/resources/guests/types/GuestResponse.ts +index 89a0694..940f16b 100644 +--- a/src/serialization/resources/guests/types/GuestResponse.ts ++++ b/src/serialization/resources/guests/types/GuestResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Guest } from "./Guest"; + +@@ -10,3 +11,3 @@ export const GuestResponse: core.serialization.ObjectSchema (await import("../../..")).Guest), ++ data: Guest, + }); +@@ -15,3 +16,3 @@ export declare namespace GuestResponse { + interface Raw { +- data: serializers.Guest.Raw; ++ data: Guest.Raw; + } +diff --git a/src/serialization/resources/guests/types/GuestSpace.ts b/src/serialization/resources/guests/types/GuestSpace.ts +index 9b80f8a..dfe9099 100644 +--- a/src/serialization/resources/guests/types/GuestSpace.ts ++++ b/src/serialization/resources/guests/types/GuestSpace.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { GuestWorkbook } from "./GuestWorkbook"; + +@@ -10,6 +12,4 @@ export const GuestSpace: core.serialization.ObjectSchema (await import("../../..")).SpaceId), +- workbooks: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).GuestWorkbook)) +- .optional(), ++ id: SpaceId, ++ workbooks: core.serialization.list(GuestWorkbook).optional(), + lastAccessed: core.serialization.date().optional(), +@@ -19,4 +19,4 @@ export declare namespace GuestSpace { + interface Raw { +- id: serializers.SpaceId.Raw; +- workbooks?: serializers.GuestWorkbook.Raw[] | null; ++ id: SpaceId.Raw; ++ workbooks?: GuestWorkbook.Raw[] | null; + lastAccessed?: string | null; +diff --git a/src/serialization/resources/guests/types/GuestTokenResponse.ts b/src/serialization/resources/guests/types/GuestTokenResponse.ts +index 29ed00c..c1f31b5 100644 +--- a/src/serialization/resources/guests/types/GuestTokenResponse.ts ++++ b/src/serialization/resources/guests/types/GuestTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestToken } from "./GuestToken"; + +@@ -12,3 +13,3 @@ export const GuestTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).GuestToken), ++ data: GuestToken, + }); +@@ -17,3 +18,3 @@ export declare namespace GuestTokenResponse { + interface Raw { +- data: serializers.GuestToken.Raw; ++ data: GuestToken.Raw; + } +diff --git a/src/serialization/resources/guests/types/GuestWorkbook.ts b/src/serialization/resources/guests/types/GuestWorkbook.ts +index a98d6e0..d4d47c5 100644 +--- a/src/serialization/resources/guests/types/GuestWorkbook.ts ++++ b/src/serialization/resources/guests/types/GuestWorkbook.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; + +@@ -10,3 +11,3 @@ export const GuestWorkbook: core.serialization.ObjectSchema (await import("../../..")).WorkbookId), ++ id: WorkbookId, + }); +@@ -15,3 +16,3 @@ export declare namespace GuestWorkbook { + interface Raw { +- id: serializers.WorkbookId.Raw; ++ id: WorkbookId.Raw; + } +diff --git a/src/serialization/resources/guests/types/Invite.ts b/src/serialization/resources/guests/types/Invite.ts +index c13ddcc..3b68895 100644 +--- a/src/serialization/resources/guests/types/Invite.ts ++++ b/src/serialization/resources/guests/types/Invite.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestId } from "../../commons/types/GuestId"; ++import { SpaceId } from "../../commons/types/SpaceId"; + +@@ -10,4 +12,4 @@ export const Invite: core.serialization.ObjectSchema (await import("../../..")).GuestId), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId), ++ guestId: GuestId, ++ spaceId: SpaceId, + fromName: core.serialization.string().optional(), +@@ -18,4 +20,4 @@ export declare namespace Invite { + interface Raw { +- guestId: serializers.GuestId.Raw; +- spaceId: serializers.SpaceId.Raw; ++ guestId: GuestId.Raw; ++ spaceId: SpaceId.Raw; + fromName?: string | null; +diff --git a/src/serialization/resources/guests/types/ListGuestsResponse.ts b/src/serialization/resources/guests/types/ListGuestsResponse.ts +index 3c56e62..fd06575 100644 +--- a/src/serialization/resources/guests/types/ListGuestsResponse.ts ++++ b/src/serialization/resources/guests/types/ListGuestsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Guest } from "./Guest"; + +@@ -12,3 +13,3 @@ export const ListGuestsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Guest)), ++ data: core.serialization.list(Guest), + }); +@@ -17,3 +18,3 @@ export declare namespace ListGuestsResponse { + interface Raw { +- data: serializers.Guest.Raw[]; ++ data: Guest.Raw[]; + } +diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts +index 06437e8..1ddef06 100644 +--- a/src/serialization/resources/index.ts ++++ b/src/serialization/resources/index.ts +@@ -1 +1,3 @@ ++export * as accounts from "./accounts"; ++export * from "./accounts/types"; + export * as agents from "./agents"; +@@ -24,2 +26,4 @@ export * as files from "./files"; + export * from "./files/types"; ++export * as foreigndb from "./foreigndb"; ++export * from "./foreigndb/types"; + export * as guests from "./guests"; +diff --git a/src/serialization/resources/jobs/client/ack.ts b/src/serialization/resources/jobs/client/ack.ts +index 6093d08..5d541b3 100644 +--- a/src/serialization/resources/jobs/client/ack.ts ++++ b/src/serialization/resources/jobs/client/ack.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobAckDetails } from "../types/JobAckDetails"; + + export const Request: core.serialization.Schema = +- core.serialization.lazyObject(async () => (await import("../../..")).JobAckDetails).optional(); ++ JobAckDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobAckDetails.Raw | null | undefined; ++ type Raw = JobAckDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/cancel.ts b/src/serialization/resources/jobs/client/cancel.ts +index d1a7e1b..8751b32 100644 +--- a/src/serialization/resources/jobs/client/cancel.ts ++++ b/src/serialization/resources/jobs/client/cancel.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobCancelDetails } from "../types/JobCancelDetails"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCancelDetails | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).JobCancelDetails).optional(); ++> = JobCancelDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobCancelDetails.Raw | null | undefined; ++ type Raw = JobCancelDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/complete.ts b/src/serialization/resources/jobs/client/complete.ts +index 2c1a1f5..84761c5 100644 +--- a/src/serialization/resources/jobs/client/complete.ts ++++ b/src/serialization/resources/jobs/client/complete.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobCompleteDetails } from "../types/JobCompleteDetails"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCompleteDetails | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).JobCompleteDetails).optional(); ++> = JobCompleteDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobCompleteDetails.Raw | null | undefined; ++ type Raw = JobCompleteDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/fail.ts b/src/serialization/resources/jobs/client/fail.ts +index 87d0ca9..675ecdc 100644 +--- a/src/serialization/resources/jobs/client/fail.ts ++++ b/src/serialization/resources/jobs/client/fail.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobCompleteDetails } from "../types/JobCompleteDetails"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCompleteDetails | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).JobCompleteDetails).optional(); ++> = JobCompleteDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobCompleteDetails.Raw | null | undefined; ++ type Raw = JobCompleteDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/types/CategoryMapping.ts b/src/serialization/resources/jobs/types/CategoryMapping.ts +index e4a805e..4d7c7ae 100644 +--- a/src/serialization/resources/jobs/types/CategoryMapping.ts ++++ b/src/serialization/resources/jobs/types/CategoryMapping.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnumValue } from "./EnumValue"; + +@@ -12,4 +13,4 @@ export const CategoryMapping: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceValue: core.serialization.lazy(async () => (await import("../../..")).EnumValue).optional(), +- destinationValue: core.serialization.lazy(async () => (await import("../../..")).EnumValue).optional(), ++ sourceValue: EnumValue.optional(), ++ destinationValue: EnumValue.optional(), + }); +@@ -18,4 +19,4 @@ export declare namespace CategoryMapping { + interface Raw { +- sourceValue?: serializers.EnumValue.Raw | null; +- destinationValue?: serializers.EnumValue.Raw | null; ++ sourceValue?: EnumValue.Raw | null; ++ destinationValue?: EnumValue.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts b/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts +index c57ef84..59fe917 100644 +--- a/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts ++++ b/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { RecordId } from "../../commons/types/RecordId"; + +@@ -12,11 +18,9 @@ export const DeleteRecordsJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- sheet: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- exceptions: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).RecordId)) +- .optional(), ++ sheet: SheetId, ++ exceptions: core.serialization.list(RecordId).optional(), + }); +@@ -25,9 +29,9 @@ export declare namespace DeleteRecordsJobConfig { + interface Raw { +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- sheet: serializers.SheetId.Raw; +- exceptions?: serializers.RecordId.Raw[] | null; ++ sheet: SheetId.Raw; ++ exceptions?: RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/DestinationField.ts b/src/serialization/resources/jobs/types/DestinationField.ts +index 31e1f45..3fc0838 100644 +--- a/src/serialization/resources/jobs/types/DestinationField.ts ++++ b/src/serialization/resources/jobs/types/DestinationField.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; + +@@ -12,3 +13,3 @@ export const DestinationField: core.serialization.ObjectSchema< + > = core.serialization.object({ +- destinationField: core.serialization.lazy(async () => (await import("../../..")).Property), ++ destinationField: Property, + preview: core.serialization.list(core.serialization.string()).optional(), +@@ -18,3 +19,3 @@ export declare namespace DestinationField { + interface Raw { +- destinationField: serializers.Property.Raw; ++ destinationField: Property.Raw; + preview?: string[] | null; +diff --git a/src/serialization/resources/jobs/types/Edge.ts b/src/serialization/resources/jobs/types/Edge.ts +index 213c1d7..21d4702 100644 +--- a/src/serialization/resources/jobs/types/Edge.ts ++++ b/src/serialization/resources/jobs/types/Edge.ts +@@ -7,9 +7,12 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; ++import { EnumDetails } from "./EnumDetails"; ++import { Metadata } from "./Metadata"; + + export const Edge: core.serialization.ObjectSchema = core.serialization.object({ +- sourceField: core.serialization.lazy(async () => (await import("../../..")).Property), +- destinationField: core.serialization.lazy(async () => (await import("../../..")).Property), ++ sourceField: Property, ++ destinationField: Property, + preview: core.serialization.list(core.serialization.string()).optional(), +- enumDetails: core.serialization.lazyObject(async () => (await import("../../..")).EnumDetails).optional(), +- metadata: core.serialization.lazyObject(async () => (await import("../../..")).Metadata).optional(), ++ enumDetails: EnumDetails.optional(), ++ metadata: Metadata.optional(), + }); +@@ -18,7 +21,7 @@ export declare namespace Edge { + interface Raw { +- sourceField: serializers.Property.Raw; +- destinationField: serializers.Property.Raw; ++ sourceField: Property.Raw; ++ destinationField: Property.Raw; + preview?: string[] | null; +- enumDetails?: serializers.EnumDetails.Raw | null; +- metadata?: serializers.Metadata.Raw | null; ++ enumDetails?: EnumDetails.Raw | null; ++ metadata?: Metadata.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/EnumDetails.ts b/src/serialization/resources/jobs/types/EnumDetails.ts +index bb54392..a1b6ea5 100644 +--- a/src/serialization/resources/jobs/types/EnumDetails.ts ++++ b/src/serialization/resources/jobs/types/EnumDetails.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CategoryMapping } from "./CategoryMapping"; ++import { EnumValue } from "./EnumValue"; + +@@ -10,11 +12,5 @@ export const EnumDetails: core.serialization.ObjectSchema (await import("../../..")).CategoryMapping) +- ), +- unusedSourceValues: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).EnumValue)) +- .optional(), +- unusedDestinationValues: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).EnumValue)) +- .optional(), ++ mapping: core.serialization.list(CategoryMapping), ++ unusedSourceValues: core.serialization.list(EnumValue).optional(), ++ unusedDestinationValues: core.serialization.list(EnumValue).optional(), + }); +@@ -23,5 +19,5 @@ export declare namespace EnumDetails { + interface Raw { +- mapping: serializers.CategoryMapping.Raw[]; +- unusedSourceValues?: serializers.EnumValue.Raw[] | null; +- unusedDestinationValues?: serializers.EnumValue.Raw[] | null; ++ mapping: CategoryMapping.Raw[]; ++ unusedSourceValues?: EnumValue.Raw[] | null; ++ unusedDestinationValues?: EnumValue.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/ExportJobConfig.ts b/src/serialization/resources/jobs/types/ExportJobConfig.ts +index a846432..6ec7e0e 100644 +--- a/src/serialization/resources/jobs/types/ExportJobConfig.ts ++++ b/src/serialization/resources/jobs/types/ExportJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ExportOptions } from "./ExportOptions"; + +@@ -12,3 +13,3 @@ export const ExportJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- options: core.serialization.lazyObject(async () => (await import("../../..")).ExportOptions), ++ options: ExportOptions, + }); +@@ -17,3 +18,3 @@ export declare namespace ExportJobConfig { + interface Raw { +- options: serializers.ExportOptions.Raw; ++ options: ExportOptions.Raw; + } +diff --git a/src/serialization/resources/jobs/types/ExportOptions.ts b/src/serialization/resources/jobs/types/ExportOptions.ts +index a8f4db9..69719ef 100644 +--- a/src/serialization/resources/jobs/types/ExportOptions.ts ++++ b/src/serialization/resources/jobs/types/ExportOptions.ts +@@ -7,2 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SortField } from "../../commons/types/SortField"; ++import { SortDirection } from "../../commons/types/SortDirection"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { RecordId } from "../../commons/types/RecordId"; + +@@ -10,14 +19,12 @@ export const ExportOptions: core.serialization.ObjectSchema (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), +- sortField: core.serialization.lazy(async () => (await import("../../..")).SortField).optional(), +- sortDirection: core.serialization.lazy(async () => (await import("../../..")).SortDirection).optional(), +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), ++ sortField: SortField.optional(), ++ sortDirection: SortDirection.optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- ids: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).RecordId)) +- .optional(), ++ ids: core.serialization.list(RecordId).optional(), + }); +@@ -26,12 +33,12 @@ export declare namespace ExportOptions { + interface Raw { +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; +- sortField?: serializers.SortField.Raw | null; +- sortDirection?: serializers.SortDirection.Raw | null; +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; ++ sortField?: SortField.Raw | null; ++ sortDirection?: SortDirection.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- ids?: serializers.RecordId.Raw[] | null; ++ ids?: RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/FileJobConfig.ts b/src/serialization/resources/jobs/types/FileJobConfig.ts +index 24589c9..2264e24 100644 +--- a/src/serialization/resources/jobs/types/FileJobConfig.ts ++++ b/src/serialization/resources/jobs/types/FileJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Driver } from "./Driver"; + +@@ -10,3 +11,3 @@ export const FileJobConfig: core.serialization.ObjectSchema (await import("../../..")).Driver), ++ driver: Driver, + options: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -16,3 +17,3 @@ export declare namespace FileJobConfig { + interface Raw { +- driver: serializers.Driver.Raw; ++ driver: Driver.Raw; + options?: Record | null; +diff --git a/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts b/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts +index 4053fe5..a2173f9 100644 +--- a/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts ++++ b/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { RecordId } from "../../commons/types/RecordId"; ++import { CellValueUnion } from "../../records/types/CellValueUnion"; + +@@ -12,10 +18,10 @@ export const FindAndReplaceJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- ids: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordId)).optional(), +- find: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), +- replace: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), ++ ids: core.serialization.list(RecordId).optional(), ++ find: CellValueUnion.optional(), ++ replace: CellValueUnion.optional(), + fieldKey: core.serialization.string(), +@@ -25,10 +31,10 @@ export declare namespace FindAndReplaceJobConfig { + interface Raw { +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- ids?: serializers.RecordId.Raw[] | null; +- find?: serializers.CellValueUnion.Raw | null; +- replace?: serializers.CellValueUnion.Raw | null; ++ ids?: RecordId.Raw[] | null; ++ find?: CellValueUnion.Raw | null; ++ replace?: CellValueUnion.Raw | null; + fieldKey: string; +diff --git a/src/serialization/resources/jobs/types/Job.ts b/src/serialization/resources/jobs/types/Job.ts +index 16a64d2..5726ad4 100644 +--- a/src/serialization/resources/jobs/types/Job.ts ++++ b/src/serialization/resources/jobs/types/Job.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobId } from "../../commons/types/JobId"; ++import { JobConfig } from "./JobConfig"; + +@@ -10,3 +12,3 @@ export const Job: core.serialization.ObjectSchema (await import("../../..")).JobId), ++ id: JobId, + createdAt: core.serialization.date(), +@@ -17,7 +19,7 @@ export const Job: core.serialization.ObjectSchema (await import("../../..")).JobConfig)); ++ .extend(JobConfig); + + export declare namespace Job { +- interface Raw extends serializers.JobConfig.Raw { +- id: serializers.JobId.Raw; ++ interface Raw extends JobConfig.Raw { ++ id: JobId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/jobs/types/JobCompleteDetails.ts b/src/serialization/resources/jobs/types/JobCompleteDetails.ts +index a0a9321..762e8e4 100644 +--- a/src/serialization/resources/jobs/types/JobCompleteDetails.ts ++++ b/src/serialization/resources/jobs/types/JobCompleteDetails.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobOutcome } from "./JobOutcome"; + +@@ -12,3 +13,3 @@ export const JobCompleteDetails: core.serialization.ObjectSchema< + > = core.serialization.object({ +- outcome: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcome).optional(), ++ outcome: JobOutcome.optional(), + info: core.serialization.string().optional(), +@@ -18,3 +19,3 @@ export declare namespace JobCompleteDetails { + interface Raw { +- outcome?: serializers.JobOutcome.Raw | null; ++ outcome?: JobOutcome.Raw | null; + info?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobConfig.ts b/src/serialization/resources/jobs/types/JobConfig.ts +index 942ff42..46c6384 100644 +--- a/src/serialization/resources/jobs/types/JobConfig.ts ++++ b/src/serialization/resources/jobs/types/JobConfig.ts +@@ -7,2 +7,14 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobType } from "./JobType"; ++import { JobSource } from "./JobSource"; ++import { JobDestination } from "./JobDestination"; ++import { JobUpdateConfig } from "./JobUpdateConfig"; ++import { Trigger } from "./Trigger"; ++import { JobStatus } from "./JobStatus"; ++import { FileId } from "../../commons/types/FileId"; ++import { JobMode } from "./JobMode"; ++import { JobSubject } from "./JobSubject"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { JobPartExecution } from "./JobPartExecution"; ++import { JobId } from "../../commons/types/JobId"; + +@@ -10,14 +22,14 @@ export const JobConfig: core.serialization.ObjectSchema (await import("../../..")).JobType), ++ type: JobType, + operation: core.serialization.string(), +- source: core.serialization.lazy(async () => (await import("../../..")).JobSource), +- destination: core.serialization.lazy(async () => (await import("../../..")).JobDestination).optional(), +- config: core.serialization.lazy(async () => (await import("../../..")).JobUpdateConfig).optional(), +- trigger: core.serialization.lazy(async () => (await import("../../..")).Trigger).optional(), +- status: core.serialization.lazy(async () => (await import("../../..")).JobStatus).optional(), ++ source: JobSource, ++ destination: JobDestination.optional(), ++ config: JobUpdateConfig.optional(), ++ trigger: Trigger.optional(), ++ status: JobStatus.optional(), + progress: core.serialization.number().optional(), +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId).optional(), +- mode: core.serialization.lazy(async () => (await import("../../..")).JobMode).optional(), ++ fileId: FileId.optional(), ++ mode: JobMode.optional(), + input: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- subject: core.serialization.lazy(async () => (await import("../../..")).JobSubject).optional(), ++ subject: JobSubject.optional(), + outcome: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -25,7 +37,7 @@ export const JobConfig: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId).optional(), ++ environmentId: EnvironmentId.optional(), + part: core.serialization.number().optional(), + partData: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- partExecution: core.serialization.lazy(async () => (await import("../../..")).JobPartExecution).optional(), +- parentId: core.serialization.lazy(async () => (await import("../../..")).JobId).optional(), ++ partExecution: JobPartExecution.optional(), ++ parentId: JobId.optional(), + }); +@@ -34,14 +46,14 @@ export declare namespace JobConfig { + interface Raw { +- type: serializers.JobType.Raw; ++ type: JobType.Raw; + operation: string; +- source: serializers.JobSource.Raw; +- destination?: serializers.JobDestination.Raw | null; +- config?: serializers.JobUpdateConfig.Raw | null; +- trigger?: serializers.Trigger.Raw | null; +- status?: serializers.JobStatus.Raw | null; ++ source: JobSource.Raw; ++ destination?: JobDestination.Raw | null; ++ config?: JobUpdateConfig.Raw | null; ++ trigger?: Trigger.Raw | null; ++ status?: JobStatus.Raw | null; + progress?: number | null; +- fileId?: serializers.FileId.Raw | null; +- mode?: serializers.JobMode.Raw | null; ++ fileId?: FileId.Raw | null; ++ mode?: JobMode.Raw | null; + input?: Record | null; +- subject?: serializers.JobSubject.Raw | null; ++ subject?: JobSubject.Raw | null; + outcome?: Record | null; +@@ -49,7 +61,7 @@ export declare namespace JobConfig { + managed?: boolean | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + part?: number | null; + partData?: Record | null; +- partExecution?: serializers.JobPartExecution.Raw | null; +- parentId?: serializers.JobId.Raw | null; ++ partExecution?: JobPartExecution.Raw | null; ++ parentId?: JobId.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/JobDestination.ts b/src/serialization/resources/jobs/types/JobDestination.ts +index 21ac2f8..2594d3f 100644 +--- a/src/serialization/resources/jobs/types/JobDestination.ts ++++ b/src/serialization/resources/jobs/types/JobDestination.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; + + export const JobDestination: core.serialization.Schema = +- core.serialization.lazy(async () => (await import("../../..")).WorkbookId); ++ WorkbookId; + + export declare namespace JobDestination { +- type Raw = serializers.WorkbookId.Raw; ++ type Raw = WorkbookId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlan.ts b/src/serialization/resources/jobs/types/JobExecutionPlan.ts +index f392d75..2937830 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlan.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlan.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Edge } from "./Edge"; ++import { SourceField } from "./SourceField"; ++import { DestinationField } from "./DestinationField"; + +@@ -12,9 +15,5 @@ export const JobExecutionPlan: core.serialization.ObjectSchema< + > = core.serialization.object({ +- fieldMapping: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Edge)), +- unmappedSourceFields: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).SourceField) +- ), +- unmappedDestinationFields: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DestinationField) +- ), ++ fieldMapping: core.serialization.list(Edge), ++ unmappedSourceFields: core.serialization.list(SourceField), ++ unmappedDestinationFields: core.serialization.list(DestinationField), + programId: core.serialization.string().optional(), +@@ -24,5 +23,5 @@ export declare namespace JobExecutionPlan { + interface Raw { +- fieldMapping: serializers.Edge.Raw[]; +- unmappedSourceFields: serializers.SourceField.Raw[]; +- unmappedDestinationFields: serializers.DestinationField.Raw[]; ++ fieldMapping: Edge.Raw[]; ++ unmappedSourceFields: SourceField.Raw[]; ++ unmappedDestinationFields: DestinationField.Raw[]; + programId?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts b/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts +index 4a1ff58..adbf6ec 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Edge } from "./Edge"; ++import { SourceField } from "./SourceField"; ++import { DestinationField } from "./DestinationField"; + +@@ -12,11 +15,5 @@ export const JobExecutionPlanConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- fieldMapping: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Edge)) +- .optional(), +- unmappedSourceFields: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).SourceField)) +- .optional(), +- unmappedDestinationFields: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).DestinationField)) +- .optional(), ++ fieldMapping: core.serialization.list(Edge).optional(), ++ unmappedSourceFields: core.serialization.list(SourceField).optional(), ++ unmappedDestinationFields: core.serialization.list(DestinationField).optional(), + programId: core.serialization.string().optional(), +@@ -26,5 +23,5 @@ export declare namespace JobExecutionPlanConfig { + interface Raw { +- fieldMapping?: serializers.Edge.Raw[] | null; +- unmappedSourceFields?: serializers.SourceField.Raw[] | null; +- unmappedDestinationFields?: serializers.DestinationField.Raw[] | null; ++ fieldMapping?: Edge.Raw[] | null; ++ unmappedSourceFields?: SourceField.Raw[] | null; ++ unmappedDestinationFields?: DestinationField.Raw[] | null; + programId?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts b/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts +index 3297026..b0be6dd 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FileId } from "../../commons/types/FileId"; ++import { JobId } from "../../commons/types/JobId"; ++import { JobExecutionPlanConfig } from "./JobExecutionPlanConfig"; + +@@ -13,11 +16,11 @@ export const JobExecutionPlanConfigRequest: core.serialization.ObjectSchema< + .object({ +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId), +- jobId: core.serialization.lazy(async () => (await import("../../..")).JobId), ++ fileId: FileId, ++ jobId: JobId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlanConfig)); ++ .extend(JobExecutionPlanConfig); + + export declare namespace JobExecutionPlanConfigRequest { +- interface Raw extends serializers.JobExecutionPlanConfig.Raw { +- fileId: serializers.FileId.Raw; +- jobId: serializers.JobId.Raw; ++ interface Raw extends JobExecutionPlanConfig.Raw { ++ fileId: FileId.Raw; ++ jobId: JobId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts b/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts +index 8fae6d3..79eb9f7 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FileId } from "../../commons/types/FileId"; ++import { JobId } from "../../commons/types/JobId"; ++import { JobExecutionPlan } from "./JobExecutionPlan"; + +@@ -13,11 +16,11 @@ export const JobExecutionPlanRequest: core.serialization.ObjectSchema< + .object({ +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId), +- jobId: core.serialization.lazy(async () => (await import("../../..")).JobId), ++ fileId: FileId, ++ jobId: JobId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlan)); ++ .extend(JobExecutionPlan); + + export declare namespace JobExecutionPlanRequest { +- interface Raw extends serializers.JobExecutionPlan.Raw { +- fileId: serializers.FileId.Raw; +- jobId: serializers.JobId.Raw; ++ interface Raw extends JobExecutionPlan.Raw { ++ fileId: FileId.Raw; ++ jobId: JobId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobOutcome.ts b/src/serialization/resources/jobs/types/JobOutcome.ts +index fc3fd24..f5fe6b9 100644 +--- a/src/serialization/resources/jobs/types/JobOutcome.ts ++++ b/src/serialization/resources/jobs/types/JobOutcome.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobOutcomeNext } from "./JobOutcomeNext"; + +@@ -12,3 +13,3 @@ export const JobOutcome: core.serialization.ObjectSchema (await import("../../..")).JobOutcomeNext).optional(), ++ next: JobOutcomeNext.optional(), + heading: core.serialization.string().optional(), +@@ -22,3 +23,3 @@ export declare namespace JobOutcome { + buttonText?: string | null; +- next?: serializers.JobOutcomeNext.Raw | null; ++ next?: JobOutcomeNext.Raw | null; + heading?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobOutcomeNext.ts b/src/serialization/resources/jobs/types/JobOutcomeNext.ts +index fc2c959..b7cddc0 100644 +--- a/src/serialization/resources/jobs/types/JobOutcomeNext.ts ++++ b/src/serialization/resources/jobs/types/JobOutcomeNext.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobOutcomeNextId } from "./JobOutcomeNextId"; ++import { JobOutcomeNextUrl } from "./JobOutcomeNextUrl"; ++import { JobOutcomeNextDownload } from "./JobOutcomeNextDownload"; ++import { JobOutcomeNextWait } from "./JobOutcomeNextWait"; ++import { JobOutcomeNextSnapshot } from "./JobOutcomeNextSnapshot"; ++import { JobOutcomeNextRetry } from "./JobOutcomeNextRetry"; + +@@ -11,8 +17,8 @@ export const JobOutcomeNext: core.serialization.Schema (await import("../../..")).JobOutcomeNextId), +- url: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextUrl), +- download: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextDownload), +- wait: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextWait), +- snapshot: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextSnapshot), +- retry: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextRetry), ++ id: JobOutcomeNextId, ++ url: JobOutcomeNextUrl, ++ download: JobOutcomeNextDownload, ++ wait: JobOutcomeNextWait, ++ snapshot: JobOutcomeNextSnapshot, ++ retry: JobOutcomeNextRetry, + }) +@@ -32,3 +38,3 @@ export declare namespace JobOutcomeNext { + +- interface Id extends serializers.JobOutcomeNextId.Raw { ++ interface Id extends JobOutcomeNextId.Raw { + type: "id"; +@@ -36,3 +42,3 @@ export declare namespace JobOutcomeNext { + +- interface Url extends serializers.JobOutcomeNextUrl.Raw { ++ interface Url extends JobOutcomeNextUrl.Raw { + type: "url"; +@@ -40,3 +46,3 @@ export declare namespace JobOutcomeNext { + +- interface Download extends serializers.JobOutcomeNextDownload.Raw { ++ interface Download extends JobOutcomeNextDownload.Raw { + type: "download"; +@@ -44,3 +50,3 @@ export declare namespace JobOutcomeNext { + +- interface Wait extends serializers.JobOutcomeNextWait.Raw { ++ interface Wait extends JobOutcomeNextWait.Raw { + type: "wait"; +@@ -48,3 +54,3 @@ export declare namespace JobOutcomeNext { + +- interface Snapshot extends serializers.JobOutcomeNextSnapshot.Raw { ++ interface Snapshot extends JobOutcomeNextSnapshot.Raw { + type: "snapshot"; +@@ -52,3 +58,3 @@ export declare namespace JobOutcomeNext { + +- interface Retry extends serializers.JobOutcomeNextRetry.Raw { ++ interface Retry extends JobOutcomeNextRetry.Raw { + type: "retry"; +diff --git a/src/serialization/resources/jobs/types/JobParts.ts b/src/serialization/resources/jobs/types/JobParts.ts +index 87207e8..3f6a1e8 100644 +--- a/src/serialization/resources/jobs/types/JobParts.ts ++++ b/src/serialization/resources/jobs/types/JobParts.ts +@@ -7,11 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobPartsArray } from "./JobPartsArray"; + + export const JobParts: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([ +- core.serialization.number(), +- core.serialization.lazy(async () => (await import("../../..")).JobPartsArray), +- ]); ++ core.serialization.undiscriminatedUnion([core.serialization.number(), JobPartsArray]); + + export declare namespace JobParts { +- type Raw = number | serializers.JobPartsArray.Raw; ++ type Raw = number | JobPartsArray.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobPlan.ts b/src/serialization/resources/jobs/types/JobPlan.ts +index 6f287d1..ceb95df 100644 +--- a/src/serialization/resources/jobs/types/JobPlan.ts ++++ b/src/serialization/resources/jobs/types/JobPlan.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Job } from "./Job"; ++import { JobExecutionPlan } from "./JobExecutionPlan"; + +@@ -10,4 +12,4 @@ export const JobPlan: core.serialization.ObjectSchema (await import("../../..")).Job), +- plan: core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlan), ++ job: Job, ++ plan: JobExecutionPlan, + }); +@@ -16,4 +18,4 @@ export declare namespace JobPlan { + interface Raw { +- job: serializers.Job.Raw; +- plan: serializers.JobExecutionPlan.Raw; ++ job: Job.Raw; ++ plan: JobExecutionPlan.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobPlanResponse.ts b/src/serialization/resources/jobs/types/JobPlanResponse.ts +index f47c498..a12c053 100644 +--- a/src/serialization/resources/jobs/types/JobPlanResponse.ts ++++ b/src/serialization/resources/jobs/types/JobPlanResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobPlan } from "./JobPlan"; + +@@ -12,3 +13,3 @@ export const JobPlanResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).JobPlan), ++ data: JobPlan, + }); +@@ -17,3 +18,3 @@ export declare namespace JobPlanResponse { + interface Raw { +- data: serializers.JobPlan.Raw; ++ data: JobPlan.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobResponse.ts b/src/serialization/resources/jobs/types/JobResponse.ts +index 02341d1..6998886 100644 +--- a/src/serialization/resources/jobs/types/JobResponse.ts ++++ b/src/serialization/resources/jobs/types/JobResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Job } from "./Job"; + +@@ -10,3 +11,3 @@ export const JobResponse: core.serialization.ObjectSchema (await import("../../..")).Job), ++ data: Job, + }); +@@ -15,3 +16,3 @@ export declare namespace JobResponse { + interface Raw { +- data: serializers.Job.Raw; ++ data: Job.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobSplitDetails.ts b/src/serialization/resources/jobs/types/JobSplitDetails.ts +index 4e6ef1c..647f3cb 100644 +--- a/src/serialization/resources/jobs/types/JobSplitDetails.ts ++++ b/src/serialization/resources/jobs/types/JobSplitDetails.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobParts } from "./JobParts"; + +@@ -12,3 +13,3 @@ export const JobSplitDetails: core.serialization.ObjectSchema< + > = core.serialization.object({ +- parts: core.serialization.lazy(async () => (await import("../../..")).JobParts), ++ parts: JobParts, + runInParallel: core.serialization.boolean().optional(), +@@ -18,3 +19,3 @@ export declare namespace JobSplitDetails { + interface Raw { +- parts: serializers.JobParts.Raw; ++ parts: JobParts.Raw; + runInParallel?: boolean | null; +diff --git a/src/serialization/resources/jobs/types/JobSubject.ts b/src/serialization/resources/jobs/types/JobSubject.ts +index 9b40b0f..ea77ec2 100644 +--- a/src/serialization/resources/jobs/types/JobSubject.ts ++++ b/src/serialization/resources/jobs/types/JobSubject.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ResourceJobSubject } from "./ResourceJobSubject"; ++import { CollectionJobSubject } from "./CollectionJobSubject"; + +@@ -10,4 +12,4 @@ export const JobSubject: core.serialization.Schema (await import("../../..")).ResourceJobSubject), +- collection: core.serialization.lazyObject(async () => (await import("../../..")).CollectionJobSubject), ++ resource: ResourceJobSubject, ++ collection: CollectionJobSubject, + }) +@@ -21,3 +23,3 @@ export declare namespace JobSubject { + +- interface Resource extends serializers.ResourceJobSubject.Raw { ++ interface Resource extends ResourceJobSubject.Raw { + type: "resource"; +@@ -25,3 +27,3 @@ export declare namespace JobSubject { + +- interface Collection extends serializers.CollectionJobSubject.Raw { ++ interface Collection extends CollectionJobSubject.Raw { + type: "collection"; +diff --git a/src/serialization/resources/jobs/types/JobUpdate.ts b/src/serialization/resources/jobs/types/JobUpdate.ts +index f4d6a2a..7b3c636 100644 +--- a/src/serialization/resources/jobs/types/JobUpdate.ts ++++ b/src/serialization/resources/jobs/types/JobUpdate.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobUpdateConfig } from "./JobUpdateConfig"; ++import { JobStatus } from "./JobStatus"; + +@@ -10,4 +12,4 @@ export const JobUpdate: core.serialization.ObjectSchema (await import("../../..")).JobUpdateConfig).optional(), +- status: core.serialization.lazy(async () => (await import("../../..")).JobStatus).optional(), ++ config: JobUpdateConfig.optional(), ++ status: JobStatus.optional(), + progress: core.serialization.number().optional(), +@@ -19,4 +21,4 @@ export declare namespace JobUpdate { + interface Raw { +- config?: serializers.JobUpdateConfig.Raw | null; +- status?: serializers.JobStatus.Raw | null; ++ config?: JobUpdateConfig.Raw | null; ++ status?: JobStatus.Raw | null; + progress?: number | null; +diff --git a/src/serialization/resources/jobs/types/JobUpdateConfig.ts b/src/serialization/resources/jobs/types/JobUpdateConfig.ts +index fe4846d..01fc721 100644 +--- a/src/serialization/resources/jobs/types/JobUpdateConfig.ts ++++ b/src/serialization/resources/jobs/types/JobUpdateConfig.ts +@@ -7,2 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DeleteRecordsJobConfig } from "./DeleteRecordsJobConfig"; ++import { FileJobConfig } from "./FileJobConfig"; ++import { PipelineJobConfig } from "./PipelineJobConfig"; ++import { ExportJobConfig } from "./ExportJobConfig"; ++import { MutateJobConfig } from "./MutateJobConfig"; ++import { FindAndReplaceJobConfig } from "./FindAndReplaceJobConfig"; ++import { MappingProgramJobConfig } from "./MappingProgramJobConfig"; ++import { EmptyObject } from "./EmptyObject"; + +@@ -10,10 +18,10 @@ export const JobUpdateConfig: core.serialization.Schema (await import("../../..")).DeleteRecordsJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).FileJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).PipelineJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).ExportJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).MutateJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).FindAndReplaceJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).MappingProgramJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).EmptyObject), ++ DeleteRecordsJobConfig, ++ FileJobConfig, ++ PipelineJobConfig, ++ ExportJobConfig, ++ MutateJobConfig, ++ FindAndReplaceJobConfig, ++ MappingProgramJobConfig, ++ EmptyObject, + ]); +@@ -22,10 +30,10 @@ export declare namespace JobUpdateConfig { + type Raw = +- | serializers.DeleteRecordsJobConfig.Raw +- | serializers.FileJobConfig.Raw +- | serializers.PipelineJobConfig.Raw +- | serializers.ExportJobConfig.Raw +- | serializers.MutateJobConfig.Raw +- | serializers.FindAndReplaceJobConfig.Raw +- | serializers.MappingProgramJobConfig.Raw +- | serializers.EmptyObject.Raw; ++ | DeleteRecordsJobConfig.Raw ++ | FileJobConfig.Raw ++ | PipelineJobConfig.Raw ++ | ExportJobConfig.Raw ++ | MutateJobConfig.Raw ++ | FindAndReplaceJobConfig.Raw ++ | MappingProgramJobConfig.Raw ++ | EmptyObject.Raw; + } +diff --git a/src/serialization/resources/jobs/types/ListJobsResponse.ts b/src/serialization/resources/jobs/types/ListJobsResponse.ts +index a6e41ec..b5530f7 100644 +--- a/src/serialization/resources/jobs/types/ListJobsResponse.ts ++++ b/src/serialization/resources/jobs/types/ListJobsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Job } from "./Job"; + +@@ -12,4 +14,4 @@ export const ListJobsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Job)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Job), + }); +@@ -18,4 +20,4 @@ export declare namespace ListJobsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.Job.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: Job.Raw[]; + } +diff --git a/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts b/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts +index 69b786f..7544b66 100644 +--- a/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts ++++ b/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; + +@@ -12,4 +13,4 @@ export const MappingProgramJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- destinationSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ sourceSheetId: SheetId, ++ destinationSheetId: SheetId, + mappingRules: core.serialization.list( +@@ -21,4 +22,4 @@ export declare namespace MappingProgramJobConfig { + interface Raw { +- sourceSheetId: serializers.SheetId.Raw; +- destinationSheetId: serializers.SheetId.Raw; ++ sourceSheetId: SheetId.Raw; ++ destinationSheetId: SheetId.Raw; + mappingRules: Record[]; +diff --git a/src/serialization/resources/jobs/types/Metadata.ts b/src/serialization/resources/jobs/types/Metadata.ts +index 857c189..469d161 100644 +--- a/src/serialization/resources/jobs/types/Metadata.ts ++++ b/src/serialization/resources/jobs/types/Metadata.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Certainty } from "./Certainty"; + +@@ -10,3 +11,3 @@ export const Metadata: core.serialization.ObjectSchema (await import("../../..")).Certainty).optional(), ++ certainty: Certainty.optional(), + confidence: core.serialization.number().optional(), +@@ -17,3 +18,3 @@ export declare namespace Metadata { + interface Raw { +- certainty?: serializers.Certainty.Raw | null; ++ certainty?: Certainty.Raw | null; + confidence?: number | null; +diff --git a/src/serialization/resources/jobs/types/MutateJobConfig.ts b/src/serialization/resources/jobs/types/MutateJobConfig.ts +index 0693fed..4c5aa42 100644 +--- a/src/serialization/resources/jobs/types/MutateJobConfig.ts ++++ b/src/serialization/resources/jobs/types/MutateJobConfig.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { RecordId } from "../../commons/types/RecordId"; + +@@ -12,11 +18,11 @@ export const MutateJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ sheetId: SheetId, + mutateRecord: core.serialization.string(), + mutationId: core.serialization.string().optional(), +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- ids: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordId)).optional(), ++ ids: core.serialization.list(RecordId).optional(), + }); +@@ -25,11 +31,11 @@ export declare namespace MutateJobConfig { + interface Raw { +- sheetId: serializers.SheetId.Raw; ++ sheetId: SheetId.Raw; + mutateRecord: string; + mutationId?: string | null; +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- ids?: serializers.RecordId.Raw[] | null; ++ ids?: RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/PipelineJobConfig.ts b/src/serialization/resources/jobs/types/PipelineJobConfig.ts +index bdfe772..a100e02 100644 +--- a/src/serialization/resources/jobs/types/PipelineJobConfig.ts ++++ b/src/serialization/resources/jobs/types/PipelineJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; + +@@ -12,4 +13,4 @@ export const PipelineJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- destinationSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ sourceSheetId: SheetId, ++ destinationSheetId: SheetId, + }); +@@ -18,4 +19,4 @@ export declare namespace PipelineJobConfig { + interface Raw { +- sourceSheetId: serializers.SheetId.Raw; +- destinationSheetId: serializers.SheetId.Raw; ++ sourceSheetId: SheetId.Raw; ++ destinationSheetId: SheetId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/SourceField.ts b/src/serialization/resources/jobs/types/SourceField.ts +index 4a4115f..a5010b2 100644 +--- a/src/serialization/resources/jobs/types/SourceField.ts ++++ b/src/serialization/resources/jobs/types/SourceField.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; + +@@ -10,3 +11,3 @@ export const SourceField: core.serialization.ObjectSchema (await import("../../..")).Property), ++ sourceField: Property, + preview: core.serialization.list(core.serialization.string()).optional(), +@@ -16,3 +17,3 @@ export declare namespace SourceField { + interface Raw { +- sourceField: serializers.Property.Raw; ++ sourceField: Property.Raw; + preview?: string[] | null; +diff --git a/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts b/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts +index 0164b1d..56bc173 100644 +--- a/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts ++++ b/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -11,6 +12,6 @@ export const CreateMappingRulesRequest: core.serialization.Schema< + Flatfile.CreateMappingRulesRequest +-> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRuleConfig)); ++> = core.serialization.list(MappingRuleConfig); + + export declare namespace CreateMappingRulesRequest { +- type Raw = serializers.MappingRuleConfig.Raw[]; ++ type Raw = MappingRuleConfig.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/MappingRule.ts b/src/serialization/resources/mapping/types/MappingRule.ts +index 105b773..9d60a2f 100644 +--- a/src/serialization/resources/mapping/types/MappingRule.ts ++++ b/src/serialization/resources/mapping/types/MappingRule.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingId } from "../../commons/types/MappingId"; ++import { UserId } from "../../commons/types/UserId"; ++import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -11,5 +14,5 @@ export const MappingRule: core.serialization.ObjectSchema (await import("../../..")).MappingId), ++ id: MappingId, + confidence: core.serialization.number().optional(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdBy: UserId.optional(), + createdAt: core.serialization.date(), +@@ -18,9 +21,9 @@ export const MappingRule: core.serialization.ObjectSchema (await import("../../..")).MappingRuleConfig)); ++ .extend(MappingRuleConfig); + + export declare namespace MappingRule { +- interface Raw extends serializers.MappingRuleConfig.Raw { +- id: serializers.MappingId.Raw; ++ interface Raw extends MappingRuleConfig.Raw { ++ id: MappingId.Raw; + confidence?: number | null; +- createdBy?: serializers.UserId.Raw | null; ++ createdBy?: UserId.Raw | null; + createdAt: string; +diff --git a/src/serialization/resources/mapping/types/MappingRuleConfig.ts b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +index a7bf3b8..eafd8b3 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "../../commons/types/UserId"; + +@@ -16,3 +17,3 @@ export const MappingRuleConfig: core.serialization.ObjectSchema< + acceptedAt: core.serialization.date().optional(), +- acceptedBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ acceptedBy: UserId.optional(), + }); +@@ -25,3 +26,3 @@ export declare namespace MappingRuleConfig { + acceptedAt?: string | null; +- acceptedBy?: serializers.UserId.Raw | null; ++ acceptedBy?: UserId.Raw | null; + } +diff --git a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +index 2a9f566..feba62d 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingId } from "../../commons/types/MappingId"; ++import { UserId } from "../../commons/types/UserId"; ++import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -13,5 +16,5 @@ export const MappingRuleOrConfig: core.serialization.ObjectSchema< + .object({ +- id: core.serialization.lazy(async () => (await import("../../..")).MappingId).optional(), ++ id: MappingId.optional(), + confidence: core.serialization.number().optional(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdBy: UserId.optional(), + createdAt: core.serialization.date().optional(), +@@ -20,9 +23,9 @@ export const MappingRuleOrConfig: core.serialization.ObjectSchema< + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).MappingRuleConfig)); ++ .extend(MappingRuleConfig); + + export declare namespace MappingRuleOrConfig { +- interface Raw extends serializers.MappingRuleConfig.Raw { +- id?: serializers.MappingId.Raw | null; ++ interface Raw extends MappingRuleConfig.Raw { ++ id?: MappingId.Raw | null; + confidence?: number | null; +- createdBy?: serializers.UserId.Raw | null; ++ createdBy?: UserId.Raw | null; + createdAt?: string | null; +diff --git a/src/serialization/resources/mapping/types/MappingRuleResponse.ts b/src/serialization/resources/mapping/types/MappingRuleResponse.ts +index 17af839..a8b193c 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleResponse.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRule } from "./MappingRule"; + +@@ -12,3 +13,3 @@ export const MappingRuleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).MappingRule), ++ data: MappingRule, + }); +@@ -17,3 +18,3 @@ export declare namespace MappingRuleResponse { + interface Raw { +- data: serializers.MappingRule.Raw; ++ data: MappingRule.Raw; + } +diff --git a/src/serialization/resources/mapping/types/MappingRulesResponse.ts b/src/serialization/resources/mapping/types/MappingRulesResponse.ts +index aee3dd3..e4a3403 100644 +--- a/src/serialization/resources/mapping/types/MappingRulesResponse.ts ++++ b/src/serialization/resources/mapping/types/MappingRulesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRule } from "./MappingRule"; + +@@ -12,3 +13,3 @@ export const MappingRulesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRule)), ++ data: core.serialization.list(MappingRule), + }); +@@ -17,3 +18,3 @@ export declare namespace MappingRulesResponse { + interface Raw { +- data: serializers.MappingRule.Raw[]; ++ data: MappingRule.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/Program.ts b/src/serialization/resources/mapping/types/Program.ts +index 2355da9..f582437 100644 +--- a/src/serialization/resources/mapping/types/Program.ts ++++ b/src/serialization/resources/mapping/types/Program.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRuleOrConfig } from "./MappingRuleOrConfig"; ++import { FamilyId } from "../../commons/types/FamilyId"; ++import { UserId } from "../../commons/types/UserId"; ++import { ProgramSummary } from "./ProgramSummary"; + +@@ -10,13 +14,11 @@ export const Program: core.serialization.ObjectSchema (await import("../../..")).MappingRuleOrConfig) +- ), ++ rules: core.serialization.list(MappingRuleOrConfig), + id: core.serialization.string().optional(), + namespace: core.serialization.string().optional(), +- familyId: core.serialization.lazy(async () => (await import("../../..")).FamilyId).optional(), ++ familyId: FamilyId.optional(), + createdAt: core.serialization.date().optional(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdBy: UserId.optional(), + sourceKeys: core.serialization.list(core.serialization.string()), + destinationKeys: core.serialization.list(core.serialization.string()), +- summary: core.serialization.lazyObject(async () => (await import("../../..")).ProgramSummary).optional(), ++ summary: ProgramSummary.optional(), + accessToken: core.serialization.string().optional(), +@@ -26,11 +28,11 @@ export declare namespace Program { + interface Raw { +- rules: serializers.MappingRuleOrConfig.Raw[]; ++ rules: MappingRuleOrConfig.Raw[]; + id?: string | null; + namespace?: string | null; +- familyId?: serializers.FamilyId.Raw | null; ++ familyId?: FamilyId.Raw | null; + createdAt?: string | null; +- createdBy?: serializers.UserId.Raw | null; ++ createdBy?: UserId.Raw | null; + sourceKeys: string[]; + destinationKeys: string[]; +- summary?: serializers.ProgramSummary.Raw | null; ++ summary?: ProgramSummary.Raw | null; + accessToken?: string | null; +diff --git a/src/serialization/resources/mapping/types/ProgramConfig.ts b/src/serialization/resources/mapping/types/ProgramConfig.ts +index 5526272..f9e3006 100644 +--- a/src/serialization/resources/mapping/types/ProgramConfig.ts ++++ b/src/serialization/resources/mapping/types/ProgramConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetConfig } from "../../sheets/types/SheetConfig"; ++import { FamilyId } from "../../commons/types/FamilyId"; + +@@ -10,5 +12,5 @@ export const ProgramConfig: core.serialization.ObjectSchema (await import("../../..")).SheetConfig), +- destination: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig), +- familyId: core.serialization.lazy(async () => (await import("../../..")).FamilyId).optional(), ++ source: SheetConfig, ++ destination: SheetConfig, ++ familyId: FamilyId.optional(), + namespace: core.serialization.string().optional(), +@@ -19,5 +21,5 @@ export declare namespace ProgramConfig { + interface Raw { +- source: serializers.SheetConfig.Raw; +- destination: serializers.SheetConfig.Raw; +- familyId?: serializers.FamilyId.Raw | null; ++ source: SheetConfig.Raw; ++ destination: SheetConfig.Raw; ++ familyId?: FamilyId.Raw | null; + namespace?: string | null; +diff --git a/src/serialization/resources/mapping/types/ProgramResponse.ts b/src/serialization/resources/mapping/types/ProgramResponse.ts +index 57ee703..43b871a 100644 +--- a/src/serialization/resources/mapping/types/ProgramResponse.ts ++++ b/src/serialization/resources/mapping/types/ProgramResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Program } from "./Program"; + +@@ -12,3 +13,3 @@ export const ProgramResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Program), ++ data: Program, + }); +@@ -17,3 +18,3 @@ export declare namespace ProgramResponse { + interface Raw { +- data: serializers.Program.Raw; ++ data: Program.Raw; + } +diff --git a/src/serialization/resources/mapping/types/ProgramsResponse.ts b/src/serialization/resources/mapping/types/ProgramsResponse.ts +index ba4122f..ac31be9 100644 +--- a/src/serialization/resources/mapping/types/ProgramsResponse.ts ++++ b/src/serialization/resources/mapping/types/ProgramsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Program } from "./Program"; + +@@ -12,3 +13,3 @@ export const ProgramsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Program)), ++ data: core.serialization.list(Program), + }); +@@ -17,3 +18,3 @@ export declare namespace ProgramsResponse { + interface Raw { +- data: serializers.Program.Raw[]; ++ data: Program.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +index 1096d42..5065740 100644 +--- a/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts ++++ b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRule } from "./MappingRule"; + +@@ -11,6 +12,6 @@ export const UpdateMappingRulesRequest: core.serialization.Schema< + Flatfile.UpdateMappingRulesRequest +-> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRule)); ++> = core.serialization.list(MappingRule); + + export declare namespace UpdateMappingRulesRequest { +- type Raw = serializers.MappingRule.Raw[]; ++ type Raw = MappingRule.Raw[]; + } +diff --git a/src/serialization/resources/property/types/BaseProperty.ts b/src/serialization/resources/property/types/BaseProperty.ts +index 291fe34..bd9968f 100644 +--- a/src/serialization/resources/property/types/BaseProperty.ts ++++ b/src/serialization/resources/property/types/BaseProperty.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Constraint } from "./Constraint"; + +@@ -13,5 +14,3 @@ export const BaseProperty: core.serialization.ObjectSchema (await import("../../..")).Constraint)) +- .optional(), ++ constraints: core.serialization.list(Constraint).optional(), + readonly: core.serialization.boolean().optional(), +@@ -27,3 +26,3 @@ export declare namespace BaseProperty { + description?: string | null; +- constraints?: serializers.Constraint.Raw[] | null; ++ constraints?: Constraint.Raw[] | null; + readonly?: boolean | null; +diff --git a/src/serialization/resources/property/types/BooleanProperty.ts b/src/serialization/resources/property/types/BooleanProperty.ts +index 1166da4..e23277a 100644 +--- a/src/serialization/resources/property/types/BooleanProperty.ts ++++ b/src/serialization/resources/property/types/BooleanProperty.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { BooleanPropertyConfig } from "./BooleanPropertyConfig"; ++import { BaseProperty } from "./BaseProperty"; + +@@ -13,9 +15,9 @@ export const BooleanProperty: core.serialization.ObjectSchema< + .object({ +- config: core.serialization.lazyObject(async () => (await import("../../..")).BooleanPropertyConfig).optional(), ++ config: BooleanPropertyConfig.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); ++ .extend(BaseProperty); + + export declare namespace BooleanProperty { +- interface Raw extends serializers.BaseProperty.Raw { +- config?: serializers.BooleanPropertyConfig.Raw | null; ++ interface Raw extends BaseProperty.Raw { ++ config?: BooleanPropertyConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/Constraint.ts b/src/serialization/resources/property/types/Constraint.ts +index ae3a4ce..cdea10f 100644 +--- a/src/serialization/resources/property/types/Constraint.ts ++++ b/src/serialization/resources/property/types/Constraint.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UniqueConstraint } from "./UniqueConstraint"; ++import { ExternalConstraint } from "./ExternalConstraint"; + +@@ -11,5 +13,5 @@ export const Constraint: core.serialization.Schema (await import("../../..")).UniqueConstraint), ++ unique: UniqueConstraint, + computed: core.serialization.object({}), +- external: core.serialization.lazyObject(async () => (await import("../../..")).ExternalConstraint), ++ external: ExternalConstraint, + }) +@@ -27,3 +29,3 @@ export declare namespace Constraint { + +- interface Unique extends serializers.UniqueConstraint.Raw { ++ interface Unique extends UniqueConstraint.Raw { + type: "unique"; +@@ -35,3 +37,3 @@ export declare namespace Constraint { + +- interface External extends serializers.ExternalConstraint.Raw { ++ interface External extends ExternalConstraint.Raw { + type: "external"; +diff --git a/src/serialization/resources/property/types/DateProperty.ts b/src/serialization/resources/property/types/DateProperty.ts +index 9a1f13b..49335f8 100644 +--- a/src/serialization/resources/property/types/DateProperty.ts ++++ b/src/serialization/resources/property/types/DateProperty.ts +@@ -7,10 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { BaseProperty } from "./BaseProperty"; + + export const DateProperty: core.serialization.ObjectSchema = +- core.serialization +- .object({}) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); ++ core.serialization.object({}).extend(BaseProperty); + + export declare namespace DateProperty { +- interface Raw extends serializers.BaseProperty.Raw {} ++ interface Raw extends BaseProperty.Raw {} + } +diff --git a/src/serialization/resources/property/types/EnumProperty.ts b/src/serialization/resources/property/types/EnumProperty.ts +index 8758010..9b50466 100644 +--- a/src/serialization/resources/property/types/EnumProperty.ts ++++ b/src/serialization/resources/property/types/EnumProperty.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnumPropertyConfig } from "./EnumPropertyConfig"; ++import { BaseProperty } from "./BaseProperty"; ++import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -12,11 +15,11 @@ export const EnumProperty: core.serialization.ObjectSchema (await import("../../..")).EnumPropertyConfig), ++ config: EnumPropertyConfig, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); ++ .extend(BaseProperty) ++ .extend(ArrayableProperty); + + export declare namespace EnumProperty { +- interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { ++ interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { + multi?: boolean | null; +- config: serializers.EnumPropertyConfig.Raw; ++ config: EnumPropertyConfig.Raw; + } +diff --git a/src/serialization/resources/property/types/EnumPropertyConfig.ts b/src/serialization/resources/property/types/EnumPropertyConfig.ts +index 5744a85..5e83efb 100644 +--- a/src/serialization/resources/property/types/EnumPropertyConfig.ts ++++ b/src/serialization/resources/property/types/EnumPropertyConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnumPropertyOption } from "./EnumPropertyOption"; + +@@ -13,5 +14,3 @@ export const EnumPropertyConfig: core.serialization.ObjectSchema< + allowCustom: core.serialization.boolean().optional(), +- options: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).EnumPropertyOption) +- ), ++ options: core.serialization.list(EnumPropertyOption), + }); +@@ -21,3 +20,3 @@ export declare namespace EnumPropertyConfig { + allowCustom?: boolean | null; +- options: serializers.EnumPropertyOption.Raw[]; ++ options: EnumPropertyOption.Raw[]; + } +diff --git a/src/serialization/resources/property/types/NumberProperty.ts b/src/serialization/resources/property/types/NumberProperty.ts +index 37ae4ac..5fe97d4 100644 +--- a/src/serialization/resources/property/types/NumberProperty.ts ++++ b/src/serialization/resources/property/types/NumberProperty.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { NumberConfig } from "./NumberConfig"; ++import { BaseProperty } from "./BaseProperty"; ++import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -11,10 +14,10 @@ export const NumberProperty: core.serialization.ObjectSchema (await import("../../..")).NumberConfig).optional(), ++ config: NumberConfig.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); ++ .extend(BaseProperty) ++ .extend(ArrayableProperty); + + export declare namespace NumberProperty { +- interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { +- config?: serializers.NumberConfig.Raw | null; ++ interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { ++ config?: NumberConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/Property.ts b/src/serialization/resources/property/types/Property.ts +index daa50a1..fa7c2c0 100644 +--- a/src/serialization/resources/property/types/Property.ts ++++ b/src/serialization/resources/property/types/Property.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { StringProperty } from "./StringProperty"; ++import { NumberProperty } from "./NumberProperty"; ++import { BooleanProperty } from "./BooleanProperty"; ++import { DateProperty } from "./DateProperty"; ++import { EnumProperty } from "./EnumProperty"; ++import { ReferenceProperty } from "./ReferenceProperty"; + +@@ -10,8 +16,8 @@ export const Property: core.serialization.Schema (await import("../../..")).StringProperty), +- number: core.serialization.lazyObject(async () => (await import("../../..")).NumberProperty), +- boolean: core.serialization.lazyObject(async () => (await import("../../..")).BooleanProperty), +- date: core.serialization.lazyObject(async () => (await import("../../..")).DateProperty), +- enum: core.serialization.lazyObject(async () => (await import("../../..")).EnumProperty), +- reference: core.serialization.lazyObject(async () => (await import("../../..")).ReferenceProperty), ++ string: StringProperty, ++ number: NumberProperty, ++ boolean: BooleanProperty, ++ date: DateProperty, ++ enum: EnumProperty, ++ reference: ReferenceProperty, + }) +@@ -31,3 +37,3 @@ export declare namespace Property { + +- interface String extends serializers.StringProperty.Raw { ++ interface String extends StringProperty.Raw { + type: "string"; +@@ -35,3 +41,3 @@ export declare namespace Property { + +- interface Number extends serializers.NumberProperty.Raw { ++ interface Number extends NumberProperty.Raw { + type: "number"; +@@ -39,3 +45,3 @@ export declare namespace Property { + +- interface Boolean extends serializers.BooleanProperty.Raw { ++ interface Boolean extends BooleanProperty.Raw { + type: "boolean"; +@@ -43,3 +49,3 @@ export declare namespace Property { + +- interface Date extends serializers.DateProperty.Raw { ++ interface Date extends DateProperty.Raw { + type: "date"; +@@ -47,3 +53,3 @@ export declare namespace Property { + +- interface Enum extends serializers.EnumProperty.Raw { ++ interface Enum extends EnumProperty.Raw { + type: "enum"; +@@ -51,3 +57,3 @@ export declare namespace Property { + +- interface Reference extends serializers.ReferenceProperty.Raw { ++ interface Reference extends ReferenceProperty.Raw { + type: "reference"; +diff --git a/src/serialization/resources/property/types/ReferenceProperty.ts b/src/serialization/resources/property/types/ReferenceProperty.ts +index cbc00cb..f0dd947 100644 +--- a/src/serialization/resources/property/types/ReferenceProperty.ts ++++ b/src/serialization/resources/property/types/ReferenceProperty.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ReferencePropertyConfig } from "./ReferencePropertyConfig"; ++import { BaseProperty } from "./BaseProperty"; ++import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -13,10 +16,10 @@ export const ReferenceProperty: core.serialization.ObjectSchema< + .object({ +- config: core.serialization.lazyObject(async () => (await import("../../..")).ReferencePropertyConfig), ++ config: ReferencePropertyConfig, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); ++ .extend(BaseProperty) ++ .extend(ArrayableProperty); + + export declare namespace ReferenceProperty { +- interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { +- config: serializers.ReferencePropertyConfig.Raw; ++ interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { ++ config: ReferencePropertyConfig.Raw; + } +diff --git a/src/serialization/resources/property/types/ReferencePropertyConfig.ts b/src/serialization/resources/property/types/ReferencePropertyConfig.ts +index a1dee26..ec3ee54 100644 +--- a/src/serialization/resources/property/types/ReferencePropertyConfig.ts ++++ b/src/serialization/resources/property/types/ReferencePropertyConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ReferencePropertyRelationship } from "./ReferencePropertyRelationship"; + +@@ -14,3 +15,3 @@ export const ReferencePropertyConfig: core.serialization.ObjectSchema< + key: core.serialization.string(), +- relationship: core.serialization.lazy(async () => (await import("../../..")).ReferencePropertyRelationship), ++ relationship: ReferencePropertyRelationship, + }); +@@ -21,3 +22,3 @@ export declare namespace ReferencePropertyConfig { + key: string; +- relationship: serializers.ReferencePropertyRelationship.Raw; ++ relationship: ReferencePropertyRelationship.Raw; + } +diff --git a/src/serialization/resources/property/types/StringConfig.ts b/src/serialization/resources/property/types/StringConfig.ts +index 4bf5123..1587c3b 100644 +--- a/src/serialization/resources/property/types/StringConfig.ts ++++ b/src/serialization/resources/property/types/StringConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { StringConfigOptions } from "./StringConfigOptions"; + +@@ -10,3 +11,3 @@ export const StringConfig: core.serialization.ObjectSchema (await import("../../..")).StringConfigOptions), ++ size: StringConfigOptions, + }); +@@ -15,3 +16,3 @@ export declare namespace StringConfig { + interface Raw { +- size: serializers.StringConfigOptions.Raw; ++ size: StringConfigOptions.Raw; + } +diff --git a/src/serialization/resources/property/types/StringProperty.ts b/src/serialization/resources/property/types/StringProperty.ts +index 1f170d9..2e49118 100644 +--- a/src/serialization/resources/property/types/StringProperty.ts ++++ b/src/serialization/resources/property/types/StringProperty.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { StringConfig } from "./StringConfig"; ++import { BaseProperty } from "./BaseProperty"; + +@@ -11,9 +13,9 @@ export const StringProperty: core.serialization.ObjectSchema (await import("../../..")).StringConfig).optional(), ++ config: StringConfig.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); ++ .extend(BaseProperty); + + export declare namespace StringProperty { +- interface Raw extends serializers.BaseProperty.Raw { +- config?: serializers.StringConfig.Raw | null; ++ interface Raw extends BaseProperty.Raw { ++ config?: StringConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/UniqueConstraint.ts b/src/serialization/resources/property/types/UniqueConstraint.ts +index 190596e..9406a3b 100644 +--- a/src/serialization/resources/property/types/UniqueConstraint.ts ++++ b/src/serialization/resources/property/types/UniqueConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UniqueConstraintConfig } from "./UniqueConstraintConfig"; + +@@ -12,3 +13,3 @@ export const UniqueConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- config: core.serialization.lazyObject(async () => (await import("../../..")).UniqueConstraintConfig).optional(), ++ config: UniqueConstraintConfig.optional(), + }); +@@ -17,3 +18,3 @@ export declare namespace UniqueConstraint { + interface Raw { +- config?: serializers.UniqueConstraintConfig.Raw | null; ++ config?: UniqueConstraintConfig.Raw | null; + } +diff --git a/src/serialization/resources/records/client/insert.ts b/src/serialization/resources/records/client/insert.ts +index 4cdbdce..2659f7b 100644 +--- a/src/serialization/resources/records/client/insert.ts ++++ b/src/serialization/resources/records/client/insert.ts +@@ -7,8 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordData } from "../types/RecordData"; ++import { CellValue } from "../types/CellValue"; + + export const Request: core.serialization.Schema = +- core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordData)); ++ core.serialization.list(RecordData); + + export declare namespace Request { +- type Raw = serializers.RecordData.Raw[]; ++ type Raw = RecordData.Raw[]; + } +diff --git a/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index 21b0aaf..3fe65e8 100644 +--- a/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { CellValueUnion } from "../../types/CellValueUnion"; + +@@ -10,6 +11,6 @@ export const FindAndReplaceRecordRequest: core.serialization.Schema< + serializers.FindAndReplaceRecordRequest.Raw, +- Omit ++ Omit + > = core.serialization.object({ +- find: core.serialization.lazy(async () => (await import("../../../..")).CellValueUnion).optional(), +- replace: core.serialization.lazy(async () => (await import("../../../..")).CellValueUnion).optional(), ++ find: CellValueUnion.optional(), ++ replace: CellValueUnion.optional(), + fieldKey: core.serialization.string(), +@@ -19,4 +20,4 @@ export declare namespace FindAndReplaceRecordRequest { + interface Raw { +- find?: serializers.CellValueUnion.Raw | null; +- replace?: serializers.CellValueUnion.Raw | null; ++ find?: CellValueUnion.Raw | null; ++ replace?: CellValueUnion.Raw | null; + fieldKey: string; +diff --git a/src/serialization/resources/records/types/CellValue.ts b/src/serialization/resources/records/types/CellValue.ts +index e64ce52..7309dd9 100644 +--- a/src/serialization/resources/records/types/CellValue.ts ++++ b/src/serialization/resources/records/types/CellValue.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ValidationMessage } from "./ValidationMessage"; ++import { CellValueUnion } from "./CellValueUnion"; + +@@ -11,7 +13,5 @@ export const CellValue: core.serialization.ObjectSchema (await import("../../..")).ValidationMessage)) +- .optional(), ++ messages: core.serialization.list(ValidationMessage).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- value: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), ++ value: CellValueUnion.optional(), + layer: core.serialization.string().optional(), +@@ -23,5 +23,5 @@ export declare namespace CellValue { + valid?: boolean | null; +- messages?: serializers.ValidationMessage.Raw[] | null; ++ messages?: ValidationMessage.Raw[] | null; + metadata?: Record | null; +- value?: serializers.CellValueUnion.Raw | null; ++ value?: CellValueUnion.Raw | null; + layer?: string | null; +diff --git a/src/serialization/resources/records/types/CellValueWithLinks.ts b/src/serialization/resources/records/types/CellValueWithLinks.ts +index da1a316..67ee5b5 100644 +--- a/src/serialization/resources/records/types/CellValueWithLinks.ts ++++ b/src/serialization/resources/records/types/CellValueWithLinks.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Records } from "./Records"; ++import { CellValue } from "./CellValue"; ++import { Record_ } from "./Record_"; + +@@ -13,9 +16,9 @@ export const CellValueWithLinks: core.serialization.ObjectSchema< + .object({ +- links: core.serialization.lazy(async () => (await import("../../..")).Records).optional(), ++ links: Records.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace CellValueWithLinks { +- interface Raw extends serializers.CellValue.Raw { +- links?: serializers.Records.Raw | null; ++ interface Raw extends CellValue.Raw { ++ links?: Records.Raw | null; + } +diff --git a/src/serialization/resources/records/types/DiffData.ts b/src/serialization/resources/records/types/DiffData.ts +index 0a582ef..40aee0d 100644 +--- a/src/serialization/resources/records/types/DiffData.ts ++++ b/src/serialization/resources/records/types/DiffData.ts +@@ -7,11 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffValue } from "./DiffValue"; + + export const DiffData: core.serialization.Schema = +- core.serialization.record( +- core.serialization.string(), +- core.serialization.lazyObject(async () => (await import("../../..")).DiffValue) +- ); ++ core.serialization.record(core.serialization.string(), DiffValue); + + export declare namespace DiffData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/DiffRecord.ts b/src/serialization/resources/records/types/DiffRecord.ts +index cd635ae..a7293a8 100644 +--- a/src/serialization/resources/records/types/DiffRecord.ts ++++ b/src/serialization/resources/records/types/DiffRecord.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffData } from "./DiffData"; ++import { RecordBase } from "./RecordBase"; ++import { DiffValue } from "./DiffValue"; + +@@ -11,9 +14,9 @@ export const DiffRecord: core.serialization.ObjectSchema (await import("../../..")).DiffData), ++ values: DiffData, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).RecordBase)); ++ .extend(RecordBase); + + export declare namespace DiffRecord { +- interface Raw extends serializers.RecordBase.Raw { +- values: serializers.DiffData.Raw; ++ interface Raw extends RecordBase.Raw { ++ values: DiffData.Raw; + } +diff --git a/src/serialization/resources/records/types/DiffRecords.ts b/src/serialization/resources/records/types/DiffRecords.ts +index 4dd3909..081f0cf 100644 +--- a/src/serialization/resources/records/types/DiffRecords.ts ++++ b/src/serialization/resources/records/types/DiffRecords.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffRecord } from "./DiffRecord"; + + export const DiffRecords: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).DiffRecord)); ++ core.serialization.list(DiffRecord); + + export declare namespace DiffRecords { +- type Raw = serializers.DiffRecord.Raw[]; ++ type Raw = DiffRecord.Raw[]; + } +diff --git a/src/serialization/resources/records/types/DiffRecordsResponse.ts b/src/serialization/resources/records/types/DiffRecordsResponse.ts +index 4c36098..0a3bc84 100644 +--- a/src/serialization/resources/records/types/DiffRecordsResponse.ts ++++ b/src/serialization/resources/records/types/DiffRecordsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffRecords } from "./DiffRecords"; ++import { DiffRecord } from "./DiffRecord"; + +@@ -12,3 +14,3 @@ export const DiffRecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazy(async () => (await import("../../..")).DiffRecords), ++ data: DiffRecords, + }); +@@ -17,3 +19,3 @@ export declare namespace DiffRecordsResponse { + interface Raw { +- data: serializers.DiffRecords.Raw; ++ data: DiffRecords.Raw; + } +diff --git a/src/serialization/resources/records/types/DiffValue.ts b/src/serialization/resources/records/types/DiffValue.ts +index 5ac9d92..1050c0a 100644 +--- a/src/serialization/resources/records/types/DiffValue.ts ++++ b/src/serialization/resources/records/types/DiffValue.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueUnion } from "./CellValueUnion"; ++import { CellValue } from "./CellValue"; + +@@ -11,9 +13,9 @@ export const DiffValue: core.serialization.ObjectSchema (await import("../../..")).CellValueUnion).optional(), ++ snapshotValue: CellValueUnion.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace DiffValue { +- interface Raw extends serializers.CellValue.Raw { +- snapshotValue?: serializers.CellValueUnion.Raw | null; ++ interface Raw extends CellValue.Raw { ++ snapshotValue?: CellValueUnion.Raw | null; + } +diff --git a/src/serialization/resources/records/types/GetRecordsResponse.ts b/src/serialization/resources/records/types/GetRecordsResponse.ts +index 330b238..d3b4762 100644 +--- a/src/serialization/resources/records/types/GetRecordsResponse.ts ++++ b/src/serialization/resources/records/types/GetRecordsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GetRecordsResponseData } from "./GetRecordsResponseData"; + +@@ -12,3 +13,3 @@ export const GetRecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).GetRecordsResponseData), ++ data: GetRecordsResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace GetRecordsResponse { + interface Raw { +- data: serializers.GetRecordsResponseData.Raw; ++ data: GetRecordsResponseData.Raw; + } +diff --git a/src/serialization/resources/records/types/GetRecordsResponseData.ts b/src/serialization/resources/records/types/GetRecordsResponseData.ts +index 5b258c7..1f6df5f 100644 +--- a/src/serialization/resources/records/types/GetRecordsResponseData.ts ++++ b/src/serialization/resources/records/types/GetRecordsResponseData.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordsWithLinks } from "./RecordsWithLinks"; ++import { RecordCounts } from "./RecordCounts"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SuccessData } from "../../commons/types/SuccessData"; ++import { RecordWithLinks } from "./RecordWithLinks"; + +@@ -13,15 +19,15 @@ export const GetRecordsResponseData: core.serialization.ObjectSchema< + .object({ +- records: core.serialization.lazy(async () => (await import("../../..")).RecordsWithLinks), +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ records: RecordsWithLinks, ++ counts: RecordCounts.optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SuccessData)); ++ .extend(SuccessData); + + export declare namespace GetRecordsResponseData { +- interface Raw extends serializers.SuccessData.Raw { +- records: serializers.RecordsWithLinks.Raw; +- counts?: serializers.RecordCounts.Raw | null; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; ++ interface Raw extends SuccessData.Raw { ++ records: RecordsWithLinks.Raw; ++ counts?: RecordCounts.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; + } +diff --git a/src/serialization/resources/records/types/RecordBase.ts b/src/serialization/resources/records/types/RecordBase.ts +index 2632171..89a03f5 100644 +--- a/src/serialization/resources/records/types/RecordBase.ts ++++ b/src/serialization/resources/records/types/RecordBase.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordId } from "../../commons/types/RecordId"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { ValidationMessage } from "./ValidationMessage"; + +@@ -10,9 +14,7 @@ export const RecordBase: core.serialization.ObjectSchema (await import("../../..")).RecordId), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ id: RecordId, ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), + valid: core.serialization.boolean().optional(), +- messages: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ValidationMessage)) +- .optional(), ++ messages: core.serialization.list(ValidationMessage).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -22,7 +24,7 @@ export declare namespace RecordBase { + interface Raw { +- id: serializers.RecordId.Raw; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; ++ id: RecordId.Raw; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; + valid?: boolean | null; +- messages?: serializers.ValidationMessage.Raw[] | null; ++ messages?: ValidationMessage.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/records/types/RecordCounts.ts b/src/serialization/resources/records/types/RecordCounts.ts +index 0ab7c36..8522483 100644 +--- a/src/serialization/resources/records/types/RecordCounts.ts ++++ b/src/serialization/resources/records/types/RecordCounts.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FieldRecordCounts } from "./FieldRecordCounts"; + +@@ -14,8 +15,3 @@ export const RecordCounts: core.serialization.ObjectSchema (await import("../../..")).FieldRecordCounts) +- ) +- .optional(), ++ byField: core.serialization.record(core.serialization.string(), FieldRecordCounts).optional(), + }); +@@ -28,3 +24,3 @@ export declare namespace RecordCounts { + errorsByField?: Record | null; +- byField?: Record | null; ++ byField?: Record | null; + } +diff --git a/src/serialization/resources/records/types/RecordData.ts b/src/serialization/resources/records/types/RecordData.ts +index 6cc2b65..d1f50a0 100644 +--- a/src/serialization/resources/records/types/RecordData.ts ++++ b/src/serialization/resources/records/types/RecordData.ts +@@ -7,11 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValue } from "./CellValue"; + + export const RecordData: core.serialization.Schema = +- core.serialization.record( +- core.serialization.string(), +- core.serialization.lazyObject(async () => (await import("../../..")).CellValue) +- ); ++ core.serialization.record(core.serialization.string(), CellValue); + + export declare namespace RecordData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/RecordDataWithLinks.ts b/src/serialization/resources/records/types/RecordDataWithLinks.ts +index 84354e5..47aedbb 100644 +--- a/src/serialization/resources/records/types/RecordDataWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordDataWithLinks.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueWithLinks } from "./CellValueWithLinks"; + +@@ -11,9 +12,6 @@ export const RecordDataWithLinks: core.serialization.Schema< + Flatfile.RecordDataWithLinks +-> = core.serialization.record( +- core.serialization.string(), +- core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithLinks) +-); ++> = core.serialization.record(core.serialization.string(), CellValueWithLinks); + + export declare namespace RecordDataWithLinks { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/RecordWithLinks.ts b/src/serialization/resources/records/types/RecordWithLinks.ts +index 7a03350..40002b9 100644 +--- a/src/serialization/resources/records/types/RecordWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordWithLinks.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordId } from "../../commons/types/RecordId"; ++import { RecordDataWithLinks } from "./RecordDataWithLinks"; ++import { ValidationMessage } from "./ValidationMessage"; ++import { CellValueWithLinks } from "./CellValueWithLinks"; + +@@ -12,8 +16,6 @@ export const RecordWithLinks: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).RecordId), +- values: core.serialization.lazy(async () => (await import("../../..")).RecordDataWithLinks), ++ id: RecordId, ++ values: RecordDataWithLinks, + valid: core.serialization.boolean().optional(), +- messages: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ValidationMessage)) +- .optional(), ++ messages: core.serialization.list(ValidationMessage).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -23,6 +25,6 @@ export declare namespace RecordWithLinks { + interface Raw { +- id: serializers.RecordId.Raw; +- values: serializers.RecordDataWithLinks.Raw; ++ id: RecordId.Raw; ++ values: RecordDataWithLinks.Raw; + valid?: boolean | null; +- messages?: serializers.ValidationMessage.Raw[] | null; ++ messages?: ValidationMessage.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/records/types/Record_.ts b/src/serialization/resources/records/types/Record_.ts +index ed545bc..ac41762 100644 +--- a/src/serialization/resources/records/types/Record_.ts ++++ b/src/serialization/resources/records/types/Record_.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordData } from "./RecordData"; ++import { RecordBase } from "./RecordBase"; ++import { CellValue } from "./CellValue"; + +@@ -10,9 +13,9 @@ export const Record_: core.serialization.ObjectSchema (await import("../../..")).RecordData), ++ values: RecordData, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).RecordBase)); ++ .extend(RecordBase); + + export declare namespace Record_ { +- interface Raw extends serializers.RecordBase.Raw { +- values: serializers.RecordData.Raw; ++ interface Raw extends RecordBase.Raw { ++ values: RecordData.Raw; + } +diff --git a/src/serialization/resources/records/types/Records.ts b/src/serialization/resources/records/types/Records.ts +index 3d4b638..5396531 100644 +--- a/src/serialization/resources/records/types/Records.ts ++++ b/src/serialization/resources/records/types/Records.ts +@@ -7,9 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Record_ } from "./Record_"; + +-export const Records: core.serialization.Schema = core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).Record_) +-); ++export const Records: core.serialization.Schema = ++ core.serialization.list(Record_); + + export declare namespace Records { +- type Raw = serializers.Record_.Raw[]; ++ type Raw = Record_.Raw[]; + } +diff --git a/src/serialization/resources/records/types/RecordsResponse.ts b/src/serialization/resources/records/types/RecordsResponse.ts +index 1984d89..ceefccf 100644 +--- a/src/serialization/resources/records/types/RecordsResponse.ts ++++ b/src/serialization/resources/records/types/RecordsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordsResponseData } from "./RecordsResponseData"; + +@@ -12,3 +13,3 @@ export const RecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).RecordsResponseData), ++ data: RecordsResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace RecordsResponse { + interface Raw { +- data: serializers.RecordsResponseData.Raw; ++ data: RecordsResponseData.Raw; + } +diff --git a/src/serialization/resources/records/types/RecordsResponseData.ts b/src/serialization/resources/records/types/RecordsResponseData.ts +index 916cf54..9644a9a 100644 +--- a/src/serialization/resources/records/types/RecordsResponseData.ts ++++ b/src/serialization/resources/records/types/RecordsResponseData.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordsWithLinks } from "./RecordsWithLinks"; ++import { RecordCounts } from "./RecordCounts"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SuccessData } from "../../commons/types/SuccessData"; ++import { RecordWithLinks } from "./RecordWithLinks"; + +@@ -13,15 +19,15 @@ export const RecordsResponseData: core.serialization.ObjectSchema< + .object({ +- records: core.serialization.lazy(async () => (await import("../../..")).RecordsWithLinks).optional(), +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ records: RecordsWithLinks.optional(), ++ counts: RecordCounts.optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SuccessData)); ++ .extend(SuccessData); + + export declare namespace RecordsResponseData { +- interface Raw extends serializers.SuccessData.Raw { +- records?: serializers.RecordsWithLinks.Raw | null; +- counts?: serializers.RecordCounts.Raw | null; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; ++ interface Raw extends SuccessData.Raw { ++ records?: RecordsWithLinks.Raw | null; ++ counts?: RecordCounts.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; + } +diff --git a/src/serialization/resources/records/types/RecordsWithLinks.ts b/src/serialization/resources/records/types/RecordsWithLinks.ts +index e038b8b..b28d744 100644 +--- a/src/serialization/resources/records/types/RecordsWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordsWithLinks.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordWithLinks } from "./RecordWithLinks"; + + export const RecordsWithLinks: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).RecordWithLinks)); ++ core.serialization.list(RecordWithLinks); + + export declare namespace RecordsWithLinks { +- type Raw = serializers.RecordWithLinks.Raw[]; ++ type Raw = RecordWithLinks.Raw[]; + } +diff --git a/src/serialization/resources/records/types/ValidationMessage.ts b/src/serialization/resources/records/types/ValidationMessage.ts +index c8d5ade..7a34f9f 100644 +--- a/src/serialization/resources/records/types/ValidationMessage.ts ++++ b/src/serialization/resources/records/types/ValidationMessage.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ValidationType } from "./ValidationType"; ++import { ValidationSource } from "./ValidationSource"; + +@@ -12,4 +14,4 @@ export const ValidationMessage: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).ValidationType).optional(), +- source: core.serialization.lazy(async () => (await import("../../..")).ValidationSource).optional(), ++ type: ValidationType.optional(), ++ source: ValidationSource.optional(), + message: core.serialization.string().optional(), +@@ -19,4 +21,4 @@ export declare namespace ValidationMessage { + interface Raw { +- type?: serializers.ValidationType.Raw | null; +- source?: serializers.ValidationSource.Raw | null; ++ type?: ValidationType.Raw | null; ++ source?: ValidationSource.Raw | null; + message?: string | null; +diff --git a/src/serialization/resources/roles/types/ActorIdUnion.ts b/src/serialization/resources/roles/types/ActorIdUnion.ts +index f1dfdbd..c36a440 100644 +--- a/src/serialization/resources/roles/types/ActorIdUnion.ts ++++ b/src/serialization/resources/roles/types/ActorIdUnion.ts +@@ -7,12 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "../../commons/types/UserId"; ++import { AgentId } from "../../commons/types/AgentId"; ++import { GuestId } from "../../commons/types/GuestId"; + + export const ActorIdUnion: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([ +- core.serialization.lazy(async () => (await import("../../..")).UserId), +- core.serialization.lazy(async () => (await import("../../..")).AgentId), +- core.serialization.lazy(async () => (await import("../../..")).GuestId), +- ]); ++ core.serialization.undiscriminatedUnion([UserId, AgentId, GuestId]); + + export declare namespace ActorIdUnion { +- type Raw = serializers.UserId.Raw | serializers.AgentId.Raw | serializers.GuestId.Raw; ++ type Raw = UserId.Raw | AgentId.Raw | GuestId.Raw; + } +diff --git a/src/serialization/resources/roles/types/ActorRoleResponse.ts b/src/serialization/resources/roles/types/ActorRoleResponse.ts +index 0027449..30cf630 100644 +--- a/src/serialization/resources/roles/types/ActorRoleResponse.ts ++++ b/src/serialization/resources/roles/types/ActorRoleResponse.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActorRoleId } from "../../commons/types/ActorRoleId"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { ActorIdUnion } from "./ActorIdUnion"; ++import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -12,6 +16,6 @@ export const ActorRoleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), +- roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), +- actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), +- resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ id: ActorRoleId, ++ roleId: RoleId, ++ actorId: ActorIdUnion, ++ resourceId: ResourceIdUnion, + createdAt: core.serialization.date(), +@@ -22,6 +26,6 @@ export declare namespace ActorRoleResponse { + interface Raw { +- id: serializers.ActorRoleId.Raw; +- roleId: serializers.RoleId.Raw; +- actorId: serializers.ActorIdUnion.Raw; +- resourceId: serializers.ResourceIdUnion.Raw; ++ id: ActorRoleId.Raw; ++ roleId: RoleId.Raw; ++ actorId: ActorIdUnion.Raw; ++ resourceId: ResourceIdUnion.Raw; + createdAt: string; +diff --git a/src/serialization/resources/roles/types/AssignActorRoleRequest.ts b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +index fad27ea..9450608 100644 +--- a/src/serialization/resources/roles/types/AssignActorRoleRequest.ts ++++ b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -12,4 +14,4 @@ export const AssignActorRoleRequest: core.serialization.ObjectSchema< + > = core.serialization.object({ +- roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), +- resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ roleId: RoleId, ++ resourceId: ResourceIdUnion, + }); +@@ -18,4 +20,4 @@ export declare namespace AssignActorRoleRequest { + interface Raw { +- roleId: serializers.RoleId.Raw; +- resourceId: serializers.ResourceIdUnion.Raw; ++ roleId: RoleId.Raw; ++ resourceId: ResourceIdUnion.Raw; + } +diff --git a/src/serialization/resources/roles/types/AssignRoleResponse.ts b/src/serialization/resources/roles/types/AssignRoleResponse.ts +index f868ddc..e54cbd7 100644 +--- a/src/serialization/resources/roles/types/AssignRoleResponse.ts ++++ b/src/serialization/resources/roles/types/AssignRoleResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AssignRoleResponseData } from "./AssignRoleResponseData"; + +@@ -12,3 +13,3 @@ export const AssignRoleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).AssignRoleResponseData), ++ data: AssignRoleResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace AssignRoleResponse { + interface Raw { +- data: serializers.AssignRoleResponseData.Raw; ++ data: AssignRoleResponseData.Raw; + } +diff --git a/src/serialization/resources/roles/types/AssignRoleResponseData.ts b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +index 6cd2a5a..94ae119 100644 +--- a/src/serialization/resources/roles/types/AssignRoleResponseData.ts ++++ b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActorRoleId } from "../../commons/types/ActorRoleId"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { ActorIdUnion } from "./ActorIdUnion"; ++import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -12,6 +16,6 @@ export const AssignRoleResponseData: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), +- roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), +- actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), +- resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ id: ActorRoleId, ++ roleId: RoleId, ++ actorId: ActorIdUnion, ++ resourceId: ResourceIdUnion, + createdAt: core.serialization.date(), +@@ -22,6 +26,6 @@ export declare namespace AssignRoleResponseData { + interface Raw { +- id: serializers.ActorRoleId.Raw; +- roleId: serializers.RoleId.Raw; +- actorId: serializers.ActorIdUnion.Raw; +- resourceId: serializers.ResourceIdUnion.Raw; ++ id: ActorRoleId.Raw; ++ roleId: RoleId.Raw; ++ actorId: ActorIdUnion.Raw; ++ resourceId: ResourceIdUnion.Raw; + createdAt: string; +diff --git a/src/serialization/resources/roles/types/ListActorRolesResponse.ts b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +index 21b0571..b79c703 100644 +--- a/src/serialization/resources/roles/types/ListActorRolesResponse.ts ++++ b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActorRoleResponse } from "./ActorRoleResponse"; + +@@ -12,5 +13,3 @@ export const ListActorRolesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).ActorRoleResponse) +- ), ++ data: core.serialization.list(ActorRoleResponse), + }); +@@ -19,3 +18,3 @@ export declare namespace ListActorRolesResponse { + interface Raw { +- data: serializers.ActorRoleResponse.Raw[]; ++ data: ActorRoleResponse.Raw[]; + } +diff --git a/src/serialization/resources/roles/types/ListRolesResponse.ts b/src/serialization/resources/roles/types/ListRolesResponse.ts +index 988fc50..6176a87 100644 +--- a/src/serialization/resources/roles/types/ListRolesResponse.ts ++++ b/src/serialization/resources/roles/types/ListRolesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RoleResponse } from "./RoleResponse"; + +@@ -12,3 +13,3 @@ export const ListRolesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).RoleResponse)), ++ data: core.serialization.list(RoleResponse), + }); +@@ -17,3 +18,3 @@ export declare namespace ListRolesResponse { + interface Raw { +- data: serializers.RoleResponse.Raw[]; ++ data: RoleResponse.Raw[]; + } +diff --git a/src/serialization/resources/roles/types/ResourceIdUnion.ts b/src/serialization/resources/roles/types/ResourceIdUnion.ts +index 3ad9a46..9632bdc 100644 +--- a/src/serialization/resources/roles/types/ResourceIdUnion.ts ++++ b/src/serialization/resources/roles/types/ResourceIdUnion.ts +@@ -7,12 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; + + export const ResourceIdUnion: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([ +- core.serialization.lazy(async () => (await import("../../..")).AccountId), +- core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), +- core.serialization.lazy(async () => (await import("../../..")).SpaceId), +- ]); ++ core.serialization.undiscriminatedUnion([AccountId, EnvironmentId, SpaceId]); + + export declare namespace ResourceIdUnion { +- type Raw = serializers.AccountId.Raw | serializers.EnvironmentId.Raw | serializers.SpaceId.Raw; ++ type Raw = AccountId.Raw | EnvironmentId.Raw | SpaceId.Raw; + } +diff --git a/src/serialization/resources/roles/types/RoleResponse.ts b/src/serialization/resources/roles/types/RoleResponse.ts +index a96138a..b7391e8 100644 +--- a/src/serialization/resources/roles/types/RoleResponse.ts ++++ b/src/serialization/resources/roles/types/RoleResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { AccountId } from "../../commons/types/AccountId"; + +@@ -10,5 +12,5 @@ export const RoleResponse: core.serialization.ObjectSchema (await import("../../..")).RoleId), ++ id: RoleId, + name: core.serialization.string(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), ++ accountId: AccountId, + createdAt: core.serialization.date(), +@@ -19,5 +21,5 @@ export declare namespace RoleResponse { + interface Raw { +- id: serializers.RoleId.Raw; ++ id: RoleId.Raw; + name: string; +- accountId: serializers.AccountId.Raw; ++ accountId: AccountId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/secrets/types/Secret.ts b/src/serialization/resources/secrets/types/Secret.ts +index 8ee44ca..a261623 100644 +--- a/src/serialization/resources/secrets/types/Secret.ts ++++ b/src/serialization/resources/secrets/types/Secret.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SecretId } from "../../commons/types/SecretId"; ++import { WriteSecret } from "./WriteSecret"; + +@@ -10,9 +12,9 @@ export const Secret: core.serialization.ObjectSchema (await import("../../..")).SecretId), ++ id: SecretId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).WriteSecret)); ++ .extend(WriteSecret); + + export declare namespace Secret { +- interface Raw extends serializers.WriteSecret.Raw { +- id: serializers.SecretId.Raw; ++ interface Raw extends WriteSecret.Raw { ++ id: SecretId.Raw; + } +diff --git a/src/serialization/resources/secrets/types/SecretsResponse.ts b/src/serialization/resources/secrets/types/SecretsResponse.ts +index ae2a03e..93cdea3 100644 +--- a/src/serialization/resources/secrets/types/SecretsResponse.ts ++++ b/src/serialization/resources/secrets/types/SecretsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Secret } from "./Secret"; + +@@ -12,3 +13,3 @@ export const SecretsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Secret)), ++ data: core.serialization.list(Secret), + }); +@@ -17,3 +18,3 @@ export declare namespace SecretsResponse { + interface Raw { +- data: serializers.Secret.Raw[]; ++ data: Secret.Raw[]; + } +diff --git a/src/serialization/resources/secrets/types/WriteSecret.ts b/src/serialization/resources/secrets/types/WriteSecret.ts +index 31c1232..ed67737 100644 +--- a/src/serialization/resources/secrets/types/WriteSecret.ts ++++ b/src/serialization/resources/secrets/types/WriteSecret.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SecretName } from "./SecretName"; ++import { SecretValue } from "./SecretValue"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; + +@@ -10,6 +14,6 @@ export const WriteSecret: core.serialization.ObjectSchema (await import("../../..")).SecretName), +- value: core.serialization.lazy(async () => (await import("../../..")).SecretValue), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), ++ name: SecretName, ++ value: SecretValue, ++ environmentId: EnvironmentId.optional(), ++ spaceId: SpaceId.optional(), + }); +@@ -18,6 +22,6 @@ export declare namespace WriteSecret { + interface Raw { +- name: serializers.SecretName.Raw; +- value: serializers.SecretValue.Raw; +- environmentId?: serializers.EnvironmentId.Raw | null; +- spaceId?: serializers.SpaceId.Raw | null; ++ name: SecretName.Raw; ++ value: SecretValue.Raw; ++ environmentId?: EnvironmentId.Raw | null; ++ spaceId?: SpaceId.Raw | null; + } +diff --git a/src/serialization/resources/sheets/types/CellValueWithCounts.ts b/src/serialization/resources/sheets/types/CellValueWithCounts.ts +index 9b1b709..22aef0f 100644 +--- a/src/serialization/resources/sheets/types/CellValueWithCounts.ts ++++ b/src/serialization/resources/sheets/types/CellValueWithCounts.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCounts } from "../../records/types/RecordCounts"; ++import { CellValue } from "../../records/types/CellValue"; + +@@ -13,9 +15,9 @@ export const CellValueWithCounts: core.serialization.ObjectSchema< + .object({ +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ counts: RecordCounts.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace CellValueWithCounts { +- interface Raw extends serializers.CellValue.Raw { +- counts?: serializers.RecordCounts.Raw | null; ++ interface Raw extends CellValue.Raw { ++ counts?: RecordCounts.Raw | null; + } +diff --git a/src/serialization/resources/sheets/types/CellsResponse.ts b/src/serialization/resources/sheets/types/CellsResponse.ts +index 6aaba6c..aa0db90 100644 +--- a/src/serialization/resources/sheets/types/CellsResponse.ts ++++ b/src/serialization/resources/sheets/types/CellsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellsResponseData } from "./CellsResponseData"; ++import { CellValueWithCounts } from "./CellValueWithCounts"; + +@@ -10,3 +12,3 @@ export const CellsResponse: core.serialization.ObjectSchema (await import("../../..")).CellsResponseData), ++ data: CellsResponseData, + }); +@@ -15,3 +17,3 @@ export declare namespace CellsResponse { + interface Raw { +- data: serializers.CellsResponseData.Raw; ++ data: CellsResponseData.Raw; + } +diff --git a/src/serialization/resources/sheets/types/CellsResponseData.ts b/src/serialization/resources/sheets/types/CellsResponseData.ts +index eaf3dc8..35c4377 100644 +--- a/src/serialization/resources/sheets/types/CellsResponseData.ts ++++ b/src/serialization/resources/sheets/types/CellsResponseData.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueWithCounts } from "./CellValueWithCounts"; + +@@ -11,9 +12,6 @@ export const CellsResponseData: core.serialization.Schema< + Flatfile.CellsResponseData +-> = core.serialization.record( +- core.serialization.string(), +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithCounts)) +-); ++> = core.serialization.record(core.serialization.string(), core.serialization.list(CellValueWithCounts)); + + export declare namespace CellsResponseData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts b/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts +index 8d299e9..d859c8d 100644 +--- a/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts ++++ b/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CompositeUniqueConstraintStrategy } from "./CompositeUniqueConstraintStrategy"; + +@@ -14,3 +15,3 @@ export const CompositeUniqueConstraint: core.serialization.ObjectSchema< + fields: core.serialization.list(core.serialization.string()), +- strategy: core.serialization.lazy(async () => (await import("../../..")).CompositeUniqueConstraintStrategy), ++ strategy: CompositeUniqueConstraintStrategy, + }); +@@ -21,3 +22,3 @@ export declare namespace CompositeUniqueConstraint { + fields: string[]; +- strategy: serializers.CompositeUniqueConstraintStrategy.Raw; ++ strategy: CompositeUniqueConstraintStrategy.Raw; + } +diff --git a/src/serialization/resources/sheets/types/FieldConfigResponse.ts b/src/serialization/resources/sheets/types/FieldConfigResponse.ts +index a4c7cc8..90bc380 100644 +--- a/src/serialization/resources/sheets/types/FieldConfigResponse.ts ++++ b/src/serialization/resources/sheets/types/FieldConfigResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; + +@@ -12,3 +13,3 @@ export const FieldConfigResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazy(async () => (await import("../../..")).Property), ++ data: Property, + }); +@@ -17,3 +18,3 @@ export declare namespace FieldConfigResponse { + interface Raw { +- data: serializers.Property.Raw; ++ data: Property.Raw; + } +diff --git a/src/serialization/resources/sheets/types/ListSheetsResponse.ts b/src/serialization/resources/sheets/types/ListSheetsResponse.ts +index de34c0c..8620c5c 100644 +--- a/src/serialization/resources/sheets/types/ListSheetsResponse.ts ++++ b/src/serialization/resources/sheets/types/ListSheetsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Sheet } from "./Sheet"; + +@@ -12,3 +13,3 @@ export const ListSheetsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Sheet)), ++ data: core.serialization.list(Sheet), + }); +@@ -17,3 +18,3 @@ export declare namespace ListSheetsResponse { + interface Raw { +- data: serializers.Sheet.Raw[]; ++ data: Sheet.Raw[]; + } +diff --git a/src/serialization/resources/sheets/types/RecordCountsResponse.ts b/src/serialization/resources/sheets/types/RecordCountsResponse.ts +index cdebc31..c4e7334 100644 +--- a/src/serialization/resources/sheets/types/RecordCountsResponse.ts ++++ b/src/serialization/resources/sheets/types/RecordCountsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCountsResponseData } from "./RecordCountsResponseData"; + +@@ -12,3 +13,3 @@ export const RecordCountsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).RecordCountsResponseData), ++ data: RecordCountsResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace RecordCountsResponse { + interface Raw { +- data: serializers.RecordCountsResponseData.Raw; ++ data: RecordCountsResponseData.Raw; + } +diff --git a/src/serialization/resources/sheets/types/RecordCountsResponseData.ts b/src/serialization/resources/sheets/types/RecordCountsResponseData.ts +index 3bb978e..29afd10 100644 +--- a/src/serialization/resources/sheets/types/RecordCountsResponseData.ts ++++ b/src/serialization/resources/sheets/types/RecordCountsResponseData.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCounts } from "../../records/types/RecordCounts"; + +@@ -12,3 +13,3 @@ export const RecordCountsResponseData: core.serialization.ObjectSchema< + > = core.serialization.object({ +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts), ++ counts: RecordCounts, + success: core.serialization.boolean(), +@@ -18,3 +19,3 @@ export declare namespace RecordCountsResponseData { + interface Raw { +- counts: serializers.RecordCounts.Raw; ++ counts: RecordCounts.Raw; + success: boolean; +diff --git a/src/serialization/resources/sheets/types/Sheet.ts b/src/serialization/resources/sheets/types/Sheet.ts +index 4e3c704..fc6f503 100644 +--- a/src/serialization/resources/sheets/types/Sheet.ts ++++ b/src/serialization/resources/sheets/types/Sheet.ts +@@ -7,10 +7,12 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetConfig } from "./SheetConfig"; + + export const Sheet: core.serialization.ObjectSchema = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId), ++ id: SheetId, ++ workbookId: WorkbookId, + name: core.serialization.string(), + slug: core.serialization.string(), +- config: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig), +- countRecords: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ config: SheetConfig, + namespace: core.serialization.string().optional(), +@@ -24,8 +26,7 @@ export declare namespace Sheet { + interface Raw { +- id: serializers.SheetId.Raw; +- workbookId: serializers.WorkbookId.Raw; ++ id: SheetId.Raw; ++ workbookId: WorkbookId.Raw; + name: string; + slug: string; +- config: serializers.SheetConfig.Raw; +- countRecords?: serializers.RecordCounts.Raw | null; ++ config: SheetConfig.Raw; + namespace?: string | null; +diff --git a/src/serialization/resources/sheets/types/SheetConfig.ts b/src/serialization/resources/sheets/types/SheetConfig.ts +index fc648da..503beb6 100644 +--- a/src/serialization/resources/sheets/types/SheetConfig.ts ++++ b/src/serialization/resources/sheets/types/SheetConfig.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetAccess } from "./SheetAccess"; ++import { Property } from "../../property/types/Property"; ++import { Action } from "../../commons/types/Action"; ++import { SheetConstraint } from "./SheetConstraint"; + +@@ -16,13 +20,7 @@ export const SheetConfig: core.serialization.ObjectSchema (await import("../../..")).SheetAccess)) +- .optional(), +- fields: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).Property)), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ access: core.serialization.list(SheetAccess).optional(), ++ fields: core.serialization.list(Property), ++ actions: core.serialization.list(Action).optional(), + metadata: core.serialization.any().optional(), +- constraints: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).SheetConstraint)) +- .optional(), ++ constraints: core.serialization.list(SheetConstraint).optional(), + }); +@@ -37,7 +35,7 @@ export declare namespace SheetConfig { + mappingConfidenceThreshold?: number | null; +- access?: serializers.SheetAccess.Raw[] | null; +- fields: serializers.Property.Raw[]; +- actions?: serializers.Action.Raw[] | null; ++ access?: SheetAccess.Raw[] | null; ++ fields: Property.Raw[]; ++ actions?: Action.Raw[] | null; + metadata?: any | null; +- constraints?: serializers.SheetConstraint.Raw[] | null; ++ constraints?: SheetConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts b/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts +index a58ab72..ccb3007 100644 +--- a/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetConfigUpdate } from "./SheetConfigUpdate"; ++import { SheetUpdate } from "./SheetUpdate"; + +@@ -11,9 +13,6 @@ export const SheetConfigOrUpdate: core.serialization.ObjectSchema< + Flatfile.SheetConfigOrUpdate +-> = core.serialization +- .object({}) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfigUpdate)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SheetUpdate)); ++> = core.serialization.object({}).extend(SheetConfigUpdate).extend(SheetUpdate); + + export declare namespace SheetConfigOrUpdate { +- interface Raw extends serializers.SheetConfigUpdate.Raw, serializers.SheetUpdate.Raw {} ++ interface Raw extends SheetConfigUpdate.Raw, SheetUpdate.Raw {} + } +diff --git a/src/serialization/resources/sheets/types/SheetConfigUpdate.ts b/src/serialization/resources/sheets/types/SheetConfigUpdate.ts +index 4cc00b3..8b7fba9 100644 +--- a/src/serialization/resources/sheets/types/SheetConfigUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetConfigUpdate.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetAccess } from "./SheetAccess"; ++import { Property } from "../../property/types/Property"; ++import { Action } from "../../commons/types/Action"; + +@@ -18,11 +21,5 @@ export const SheetConfigUpdate: core.serialization.ObjectSchema< + mappingConfidenceThreshold: core.serialization.number().optional(), +- access: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).SheetAccess)) +- .optional(), +- fields: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).Property)) +- .optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ access: core.serialization.list(SheetAccess).optional(), ++ fields: core.serialization.list(Property).optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -37,5 +34,5 @@ export declare namespace SheetConfigUpdate { + mappingConfidenceThreshold?: number | null; +- access?: serializers.SheetAccess.Raw[] | null; +- fields?: serializers.Property.Raw[] | null; +- actions?: serializers.Action.Raw[] | null; ++ access?: SheetAccess.Raw[] | null; ++ fields?: Property.Raw[] | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/sheets/types/SheetConstraint.ts b/src/serialization/resources/sheets/types/SheetConstraint.ts +index a55e17d..cb4d9ee 100644 +--- a/src/serialization/resources/sheets/types/SheetConstraint.ts ++++ b/src/serialization/resources/sheets/types/SheetConstraint.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CompositeUniqueConstraint } from "./CompositeUniqueConstraint"; ++import { ExternalSheetConstraint } from "./ExternalSheetConstraint"; + +@@ -11,4 +13,4 @@ export const SheetConstraint: core.serialization.Schema (await import("../../..")).CompositeUniqueConstraint), +- external: core.serialization.lazyObject(async () => (await import("../../..")).ExternalSheetConstraint), ++ unique: CompositeUniqueConstraint, ++ external: ExternalSheetConstraint, + }) +@@ -22,3 +24,3 @@ export declare namespace SheetConstraint { + +- interface Unique extends serializers.CompositeUniqueConstraint.Raw { ++ interface Unique extends CompositeUniqueConstraint.Raw { + type: "unique"; +@@ -26,3 +28,3 @@ export declare namespace SheetConstraint { + +- interface External extends serializers.ExternalSheetConstraint.Raw { ++ interface External extends ExternalSheetConstraint.Raw { + type: "external"; +diff --git a/src/serialization/resources/sheets/types/SheetResponse.ts b/src/serialization/resources/sheets/types/SheetResponse.ts +index 084f567..97811d1 100644 +--- a/src/serialization/resources/sheets/types/SheetResponse.ts ++++ b/src/serialization/resources/sheets/types/SheetResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Sheet } from "./Sheet"; + +@@ -10,3 +11,3 @@ export const SheetResponse: core.serialization.ObjectSchema (await import("../../..")).Sheet), ++ data: Sheet, + }); +@@ -15,3 +16,3 @@ export declare namespace SheetResponse { + interface Raw { +- data: serializers.Sheet.Raw; ++ data: Sheet.Raw; + } +diff --git a/src/serialization/resources/sheets/types/SheetUpdate.ts b/src/serialization/resources/sheets/types/SheetUpdate.ts +index 2ee2953..f3e3b7c 100644 +--- a/src/serialization/resources/sheets/types/SheetUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetUpdate.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetConfig } from "./SheetConfig"; + +@@ -10,6 +13,5 @@ export const SheetUpdate: core.serialization.ObjectSchema (await import("../../..")).SheetId).optional(), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), +- config: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig).optional(), +- countRecords: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ id: SheetId.optional(), ++ workbookId: WorkbookId.optional(), ++ config: SheetConfig.optional(), + namespace: core.serialization.string().optional(), +@@ -21,6 +23,5 @@ export declare namespace SheetUpdate { + interface Raw { +- id?: serializers.SheetId.Raw | null; +- workbookId?: serializers.WorkbookId.Raw | null; +- config?: serializers.SheetConfig.Raw | null; +- countRecords?: serializers.RecordCounts.Raw | null; ++ id?: SheetId.Raw | null; ++ workbookId?: WorkbookId.Raw | null; ++ config?: SheetConfig.Raw | null; + namespace?: string | null; +diff --git a/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts b/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts +index 9aa9754..661681c 100644 +--- a/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts ++++ b/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { SheetId } from "../../../commons/types/SheetId"; + +@@ -12,3 +13,3 @@ export const CreateSnapshotRequest: core.serialization.Schema< + > = core.serialization.object({ +- sheetId: core.serialization.lazy(async () => (await import("../../../..")).SheetId), ++ sheetId: SheetId, + label: core.serialization.string().optional(), +@@ -18,3 +19,3 @@ export declare namespace CreateSnapshotRequest { + interface Raw { +- sheetId: serializers.SheetId.Raw; ++ sheetId: SheetId.Raw; + label?: string | null; +diff --git a/src/serialization/resources/snapshots/client/restoreSnapshot.ts b/src/serialization/resources/snapshots/client/restoreSnapshot.ts +index ee59bc1..1122a48 100644 +--- a/src/serialization/resources/snapshots/client/restoreSnapshot.ts ++++ b/src/serialization/resources/snapshots/client/restoreSnapshot.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RestoreOptions } from "../types/RestoreOptions"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.RestoreOptions | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).RestoreOptions).optional(); ++> = RestoreOptions.optional(); + + export declare namespace Request { +- type Raw = serializers.RestoreOptions.Raw | null | undefined; ++ type Raw = RestoreOptions.Raw | null | undefined; + } +diff --git a/src/serialization/resources/snapshots/types/Snapshot.ts b/src/serialization/resources/snapshots/types/Snapshot.ts +index eea6003..941fdb8 100644 +--- a/src/serialization/resources/snapshots/types/Snapshot.ts ++++ b/src/serialization/resources/snapshots/types/Snapshot.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SnapshotId } from "../../commons/types/SnapshotId"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { SnapshotSummary } from "./SnapshotSummary"; ++import { UserId } from "../../commons/types/UserId"; + +@@ -10,8 +14,8 @@ export const Snapshot: core.serialization.ObjectSchema (await import("../../..")).SnapshotId), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ id: SnapshotId, ++ sheetId: SheetId, + label: core.serialization.string().optional(), +- summary: core.serialization.lazyObject(async () => (await import("../../..")).SnapshotSummary).optional(), ++ summary: SnapshotSummary.optional(), + createdAt: core.serialization.date(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId), ++ createdBy: UserId, + }); +@@ -20,8 +24,8 @@ export declare namespace Snapshot { + interface Raw { +- id: serializers.SnapshotId.Raw; +- sheetId: serializers.SheetId.Raw; ++ id: SnapshotId.Raw; ++ sheetId: SheetId.Raw; + label?: string | null; +- summary?: serializers.SnapshotSummary.Raw | null; ++ summary?: SnapshotSummary.Raw | null; + createdAt: string; +- createdBy: serializers.UserId.Raw; ++ createdBy: UserId.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotResponse.ts b/src/serialization/resources/snapshots/types/SnapshotResponse.ts +index 2c7b5b1..03f623d 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotResponse.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Snapshot } from "./Snapshot"; + +@@ -12,3 +13,3 @@ export const SnapshotResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Snapshot), ++ data: Snapshot, + }); +@@ -17,3 +18,3 @@ export declare namespace SnapshotResponse { + interface Raw { +- data: serializers.Snapshot.Raw; ++ data: Snapshot.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotSummary.ts b/src/serialization/resources/snapshots/types/SnapshotSummary.ts +index ddbc6f5..9fc80cf 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotSummary.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotSummary.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SummarySection } from "./SummarySection"; + +@@ -12,5 +13,5 @@ export const SnapshotSummary: core.serialization.ObjectSchema< + > = core.serialization.object({ +- createdSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), +- updatedSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), +- deletedSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), ++ createdSince: SummarySection, ++ updatedSince: SummarySection, ++ deletedSince: SummarySection, + }); +@@ -19,5 +20,5 @@ export declare namespace SnapshotSummary { + interface Raw { +- createdSince: serializers.SummarySection.Raw; +- updatedSince: serializers.SummarySection.Raw; +- deletedSince: serializers.SummarySection.Raw; ++ createdSince: SummarySection.Raw; ++ updatedSince: SummarySection.Raw; ++ deletedSince: SummarySection.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotsResponse.ts b/src/serialization/resources/snapshots/types/SnapshotsResponse.ts +index 614f775..bc7e92e 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotsResponse.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Snapshot } from "./Snapshot"; + +@@ -12,3 +13,3 @@ export const SnapshotsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Snapshot)), ++ data: core.serialization.list(Snapshot), + }); +@@ -17,3 +18,3 @@ export declare namespace SnapshotsResponse { + interface Raw { +- data: serializers.Snapshot.Raw[]; ++ data: Snapshot.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/EventToken.ts b/src/serialization/resources/spaces/types/EventToken.ts +index 522af9d..72df747 100644 +--- a/src/serialization/resources/spaces/types/EventToken.ts ++++ b/src/serialization/resources/spaces/types/EventToken.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; + +@@ -10,3 +11,3 @@ export const EventToken: core.serialization.ObjectSchema (await import("../../..")).AccountId).optional(), ++ accountId: AccountId.optional(), + subscribeKey: core.serialization.string().optional(), +@@ -18,3 +19,3 @@ export declare namespace EventToken { + interface Raw { +- accountId?: serializers.AccountId.Raw | null; ++ accountId?: AccountId.Raw | null; + subscribeKey?: string | null; +diff --git a/src/serialization/resources/spaces/types/EventTokenResponse.ts b/src/serialization/resources/spaces/types/EventTokenResponse.ts +index 7cd78f1..71d4e1e 100644 +--- a/src/serialization/resources/spaces/types/EventTokenResponse.ts ++++ b/src/serialization/resources/spaces/types/EventTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventToken } from "./EventToken"; + +@@ -12,3 +13,3 @@ export const EventTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).EventToken), ++ data: EventToken, + }); +@@ -17,3 +18,3 @@ export declare namespace EventTokenResponse { + interface Raw { +- data: serializers.EventToken.Raw; ++ data: EventToken.Raw; + } +diff --git a/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts b/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts +index f742f4f..c413f65 100644 +--- a/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceConfigId } from "../../commons/types/SpaceConfigId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { Action } from "../../commons/types/Action"; ++import { SpaceAccess } from "./SpaceAccess"; + +@@ -12,12 +17,8 @@ export const InternalSpaceConfigBase: core.serialization.ObjectSchema< + > = core.serialization.object({ +- spaceConfigId: core.serialization.lazy(async () => (await import("../../..")).SpaceConfigId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), +- primaryWorkbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), ++ spaceConfigId: SpaceConfigId.optional(), ++ environmentId: EnvironmentId.optional(), ++ primaryWorkbookId: WorkbookId.optional(), + metadata: core.serialization.any().optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), +- access: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).SpaceAccess)) +- .optional(), ++ actions: core.serialization.list(Action).optional(), ++ access: core.serialization.list(SpaceAccess).optional(), + autoConfigure: core.serialization.boolean().optional(), +@@ -32,8 +33,8 @@ export declare namespace InternalSpaceConfigBase { + interface Raw { +- spaceConfigId?: serializers.SpaceConfigId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; +- primaryWorkbookId?: serializers.WorkbookId.Raw | null; ++ spaceConfigId?: SpaceConfigId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; ++ primaryWorkbookId?: WorkbookId.Raw | null; + metadata?: any | null; +- actions?: serializers.Action.Raw[] | null; +- access?: serializers.SpaceAccess.Raw[] | null; ++ actions?: Action.Raw[] | null; ++ access?: SpaceAccess.Raw[] | null; + autoConfigure?: boolean | null; +diff --git a/src/serialization/resources/spaces/types/ListSpacesResponse.ts b/src/serialization/resources/spaces/types/ListSpacesResponse.ts +index 918c6f3..c502cf4 100644 +--- a/src/serialization/resources/spaces/types/ListSpacesResponse.ts ++++ b/src/serialization/resources/spaces/types/ListSpacesResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Space } from "./Space"; + +@@ -12,4 +14,4 @@ export const ListSpacesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Space)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Space), + }); +@@ -18,4 +20,4 @@ export declare namespace ListSpacesResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.Space.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: Space.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/Space.ts b/src/serialization/resources/spaces/types/Space.ts +index dd38a6f..effbd9e 100644 +--- a/src/serialization/resources/spaces/types/Space.ts ++++ b/src/serialization/resources/spaces/types/Space.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { UserId } from "../../commons/types/UserId"; ++import { SpaceSize } from "./SpaceSize"; ++import { GuestAuthenticationEnum } from "../../environments/types/GuestAuthenticationEnum"; ++import { AppId } from "../../commons/types/AppId"; ++import { InternalSpaceConfigBase } from "./InternalSpaceConfigBase"; + +@@ -10,6 +16,6 @@ export const Space: core.serialization.ObjectSchema (await import("../../..")).SpaceId), ++ id: SpaceId, + workbooksCount: core.serialization.number().optional(), + filesCount: core.serialization.number().optional(), +- createdByUserId: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdByUserId: UserId.optional(), + createdByUserName: core.serialization.string().optional(), +@@ -24,16 +30,15 @@ export const Space: core.serialization.ObjectSchema (await import("../../..")).SpaceSize).optional(), ++ size: SpaceSize.optional(), + upgradedAt: core.serialization.date().optional(), +- guestAuthentication: core.serialization.list( +- core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum) +- ), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum), ++ appId: AppId.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).InternalSpaceConfigBase)); ++ .extend(InternalSpaceConfigBase); + + export declare namespace Space { +- interface Raw extends serializers.InternalSpaceConfigBase.Raw { +- id: serializers.SpaceId.Raw; ++ interface Raw extends InternalSpaceConfigBase.Raw { ++ id: SpaceId.Raw; + workbooksCount?: number | null; + filesCount?: number | null; +- createdByUserId?: serializers.UserId.Raw | null; ++ createdByUserId?: UserId.Raw | null; + createdByUserName?: string | null; +@@ -48,5 +53,6 @@ export declare namespace Space { + isCollaborative?: boolean | null; +- size?: serializers.SpaceSize.Raw | null; ++ size?: SpaceSize.Raw | null; + upgradedAt?: string | null; +- guestAuthentication: serializers.GuestAuthenticationEnum.Raw[]; ++ guestAuthentication: GuestAuthenticationEnum.Raw[]; ++ appId?: AppId.Raw | null; + } +diff --git a/src/serialization/resources/spaces/types/SpaceConfig.ts b/src/serialization/resources/spaces/types/SpaceConfig.ts +index 00a252d..4cb89e9 100644 +--- a/src/serialization/resources/spaces/types/SpaceConfig.ts ++++ b/src/serialization/resources/spaces/types/SpaceConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestAuthenticationEnum } from "../../environments/types/GuestAuthenticationEnum"; ++import { InternalSpaceConfigBase } from "./InternalSpaceConfigBase"; + +@@ -13,13 +15,11 @@ export const SpaceConfig: core.serialization.ObjectSchema (await import("../../..")).GuestAuthenticationEnum)) +- .optional(), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).InternalSpaceConfigBase)); ++ .extend(InternalSpaceConfigBase); + + export declare namespace SpaceConfig { +- interface Raw extends serializers.InternalSpaceConfigBase.Raw { ++ interface Raw extends InternalSpaceConfigBase.Raw { + name?: string | null; + displayOrder?: number | null; +- guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; + } +diff --git a/src/serialization/resources/spaces/types/SpaceResponse.ts b/src/serialization/resources/spaces/types/SpaceResponse.ts +index abe2d0b..d2b0a68 100644 +--- a/src/serialization/resources/spaces/types/SpaceResponse.ts ++++ b/src/serialization/resources/spaces/types/SpaceResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Space } from "./Space"; + +@@ -10,3 +11,3 @@ export const SpaceResponse: core.serialization.ObjectSchema (await import("../../..")).Space), ++ data: Space, + }); +@@ -15,3 +16,3 @@ export declare namespace SpaceResponse { + interface Raw { +- data: serializers.Space.Raw; ++ data: Space.Raw; + } +diff --git a/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts b/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts +new file mode 100644 +index 0000000..c3e615a +--- /dev/null ++++ b/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const UpgradeSpaceConfig: core.serialization.ObjectSchema< ++ serializers.UpgradeSpaceConfig.Raw, ++ Flatfile.UpgradeSpaceConfig ++> = core.serialization.object({ ++ id: core.serialization.string(), ++}); ++ ++export declare namespace UpgradeSpaceConfig { ++ interface Raw { ++ id: string; ++ } ++} +diff --git a/src/serialization/resources/spaces/types/index.ts b/src/serialization/resources/spaces/types/index.ts +index 338c7d4..8669369 100644 +--- a/src/serialization/resources/spaces/types/index.ts ++++ b/src/serialization/resources/spaces/types/index.ts +@@ -6,2 +6,3 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; ++export * from "./UpgradeSpaceConfig"; + export * from "./EventTokenResponse"; +diff --git a/src/serialization/resources/users/client/requests/UpdateUserRequest.ts b/src/serialization/resources/users/client/requests/UpdateUserRequest.ts +new file mode 100644 +index 0000000..d9671ef +--- /dev/null ++++ b/src/serialization/resources/users/client/requests/UpdateUserRequest.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../../.."; ++import * as Flatfile from "../../../../../api"; ++import * as core from "../../../../../core"; ++ ++export const UpdateUserRequest: core.serialization.Schema< ++ serializers.UpdateUserRequest.Raw, ++ Flatfile.UpdateUserRequest ++> = core.serialization.object({ ++ name: core.serialization.string().optional(), ++}); ++ ++export declare namespace UpdateUserRequest { ++ interface Raw { ++ name?: string | null; ++ } ++} +diff --git a/src/serialization/resources/users/client/requests/index.ts b/src/serialization/resources/users/client/requests/index.ts +index 96fc6d1..b8e6ca1 100644 +--- a/src/serialization/resources/users/client/requests/index.ts ++++ b/src/serialization/resources/users/client/requests/index.ts +@@ -1 +1,2 @@ ++export { UpdateUserRequest } from "./UpdateUserRequest"; + export { ExchangeTokenRequest } from "./ExchangeTokenRequest"; +diff --git a/src/serialization/resources/users/types/ApiTokenResponse.ts b/src/serialization/resources/users/types/ApiTokenResponse.ts +index de1758e..2111eae 100644 +--- a/src/serialization/resources/users/types/ApiTokenResponse.ts ++++ b/src/serialization/resources/users/types/ApiTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ApiToken } from "./ApiToken"; + +@@ -12,3 +13,3 @@ export const ApiTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).ApiToken), ++ data: ApiToken, + }); +@@ -17,3 +18,3 @@ export declare namespace ApiTokenResponse { + interface Raw { +- data: serializers.ApiToken.Raw; ++ data: ApiToken.Raw; + } +diff --git a/src/serialization/resources/users/types/ExchangeTokenResponse.ts b/src/serialization/resources/users/types/ExchangeTokenResponse.ts +index d5842a7..49ca270 100644 +--- a/src/serialization/resources/users/types/ExchangeTokenResponse.ts ++++ b/src/serialization/resources/users/types/ExchangeTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ExchangeTokenData } from "./ExchangeTokenData"; + +@@ -12,3 +13,3 @@ export const ExchangeTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).ExchangeTokenData), ++ data: ExchangeTokenData, + }); +@@ -17,3 +18,3 @@ export declare namespace ExchangeTokenResponse { + interface Raw { +- data: serializers.ExchangeTokenData.Raw; ++ data: ExchangeTokenData.Raw; + } +diff --git a/src/serialization/resources/users/types/ListApiTokensResponse.ts b/src/serialization/resources/users/types/ListApiTokensResponse.ts +index 87245dd..dff6334 100644 +--- a/src/serialization/resources/users/types/ListApiTokensResponse.ts ++++ b/src/serialization/resources/users/types/ListApiTokensResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { ApiToken } from "./ApiToken"; + +@@ -12,4 +14,4 @@ export const ListApiTokensResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).ApiToken)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(ApiToken), + }); +@@ -18,4 +20,4 @@ export declare namespace ListApiTokensResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.ApiToken.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: ApiToken.Raw[]; + } +diff --git a/src/serialization/resources/users/types/ListUsersResponse.ts b/src/serialization/resources/users/types/ListUsersResponse.ts +index 75b7207..957794f 100644 +--- a/src/serialization/resources/users/types/ListUsersResponse.ts ++++ b/src/serialization/resources/users/types/ListUsersResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { User } from "./User"; + +@@ -12,3 +13,3 @@ export const ListUsersResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).User)), ++ data: core.serialization.list(User), + }); +@@ -17,3 +18,3 @@ export declare namespace ListUsersResponse { + interface Raw { +- data: serializers.User.Raw[]; ++ data: User.Raw[]; + } +diff --git a/src/serialization/resources/users/types/User.ts b/src/serialization/resources/users/types/User.ts +index 26fa357..9446627 100644 +--- a/src/serialization/resources/users/types/User.ts ++++ b/src/serialization/resources/users/types/User.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "../../commons/types/UserId"; ++import { UserConfig } from "./UserConfig"; + +@@ -10,3 +12,3 @@ export const User: core.serialization.ObjectSchema (await import("../../..")).UserId), ++ id: UserId, + idp: core.serialization.string(), +@@ -16,8 +18,10 @@ export const User: core.serialization.ObjectSchema (await import("../../..")).UserConfig)); ++ .extend(UserConfig); + + export declare namespace User { +- interface Raw extends serializers.UserConfig.Raw { +- id: serializers.UserId.Raw; ++ interface Raw extends UserConfig.Raw { ++ id: UserId.Raw; + idp: string; +@@ -27,2 +31,4 @@ export declare namespace User { + updatedAt: string; ++ lastSeenAt?: string | null; ++ dashboard?: number | null; + } +diff --git a/src/serialization/resources/users/types/UserConfig.ts b/src/serialization/resources/users/types/UserConfig.ts +index 551cf49..79df346 100644 +--- a/src/serialization/resources/users/types/UserConfig.ts ++++ b/src/serialization/resources/users/types/UserConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; + +@@ -12,3 +13,3 @@ export const UserConfig: core.serialization.ObjectSchema (await import("../../..")).AccountId), ++ accountId: AccountId, + }); +@@ -19,3 +20,3 @@ export declare namespace UserConfig { + name: string; +- accountId: serializers.AccountId.Raw; ++ accountId: AccountId.Raw; + } +diff --git a/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts b/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts +new file mode 100644 +index 0000000..47488da +--- /dev/null ++++ b/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts +@@ -0,0 +1,25 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { AssignActorRoleRequest } from "../../roles/types/AssignActorRoleRequest"; ++ ++export const UserCreateAndInviteRequest: core.serialization.ObjectSchema< ++ serializers.UserCreateAndInviteRequest.Raw, ++ Flatfile.UserCreateAndInviteRequest ++> = core.serialization.object({ ++ email: core.serialization.string(), ++ name: core.serialization.string(), ++ actorRoles: core.serialization.list(AssignActorRoleRequest), ++}); ++ ++export declare namespace UserCreateAndInviteRequest { ++ interface Raw { ++ email: string; ++ name: string; ++ actorRoles: AssignActorRoleRequest.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/users/types/UserResponse.ts b/src/serialization/resources/users/types/UserResponse.ts +index a954c5b..210a54a 100644 +--- a/src/serialization/resources/users/types/UserResponse.ts ++++ b/src/serialization/resources/users/types/UserResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { User } from "./User"; + +@@ -10,3 +11,3 @@ export const UserResponse: core.serialization.ObjectSchema (await import("../../..")).User), ++ data: User, + }); +@@ -15,3 +16,3 @@ export declare namespace UserResponse { + interface Raw { +- data: serializers.User.Raw; ++ data: User.Raw; + } +diff --git a/src/serialization/resources/users/types/index.ts b/src/serialization/resources/users/types/index.ts +index 7bd7d69..bae3706 100644 +--- a/src/serialization/resources/users/types/index.ts ++++ b/src/serialization/resources/users/types/index.ts +@@ -4,2 +4,3 @@ export * from "./User"; + export * from "./UserConfig"; ++export * from "./UserCreateAndInviteRequest"; + export * from "./ListApiTokensResponse"; +diff --git a/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts b/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts +index a657e9b..1af762b 100644 +--- a/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts ++++ b/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { SheetId } from "../../../commons/types/SheetId"; ++import { VersionId } from "../../../commons/types/VersionId"; + +@@ -12,4 +14,4 @@ export const VersionsPostRequestBody: core.serialization.Schema< + > = core.serialization.object({ +- sheetId: core.serialization.lazy(async () => (await import("../../../..")).SheetId).optional(), +- parentVersionId: core.serialization.lazy(async () => (await import("../../../..")).VersionId).optional(), ++ sheetId: SheetId.optional(), ++ parentVersionId: VersionId.optional(), + }); +@@ -18,4 +20,4 @@ export declare namespace VersionsPostRequestBody { + interface Raw { +- sheetId?: serializers.SheetId.Raw | null; +- parentVersionId?: serializers.VersionId.Raw | null; ++ sheetId?: SheetId.Raw | null; ++ parentVersionId?: VersionId.Raw | null; + } +diff --git a/src/serialization/resources/versions/types/Version.ts b/src/serialization/resources/versions/types/Version.ts +index e604c40..2d33165 100644 +--- a/src/serialization/resources/versions/types/Version.ts ++++ b/src/serialization/resources/versions/types/Version.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { VersionId } from "../../commons/types/VersionId"; + +@@ -10,3 +11,3 @@ export const Version: core.serialization.ObjectSchema (await import("../../..")).VersionId), ++ versionId: VersionId, + }); +@@ -15,3 +16,3 @@ export declare namespace Version { + interface Raw { +- versionId: serializers.VersionId.Raw; ++ versionId: VersionId.Raw; + } +diff --git a/src/serialization/resources/versions/types/VersionResponse.ts b/src/serialization/resources/versions/types/VersionResponse.ts +index f5c4675..ac24471 100644 +--- a/src/serialization/resources/versions/types/VersionResponse.ts ++++ b/src/serialization/resources/versions/types/VersionResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Version } from "./Version"; + +@@ -12,3 +13,3 @@ export const VersionResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Version), ++ data: Version, + }); +@@ -17,3 +18,3 @@ export declare namespace VersionResponse { + interface Raw { +- data: serializers.Version.Raw; ++ data: Version.Raw; + } +diff --git a/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts b/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts +index 10acd18..dff62c1 100644 +--- a/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts ++++ b/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SheetConfig } from "../../sheets/types/SheetConfig"; ++import { Action } from "../../commons/types/Action"; ++import { WorkbookConfigSettings } from "./WorkbookConfigSettings"; + +@@ -14,12 +19,8 @@ export const CreateWorkbookConfig: core.serialization.ObjectSchema< + labels: core.serialization.list(core.serialization.string()).optional(), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ spaceId: SpaceId.optional(), ++ environmentId: EnvironmentId.optional(), + namespace: core.serialization.string().optional(), +- sheets: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig)) +- .optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), +- settings: core.serialization.lazyObject(async () => (await import("../../..")).WorkbookConfigSettings).optional(), ++ sheets: core.serialization.list(SheetConfig).optional(), ++ actions: core.serialization.list(Action).optional(), ++ settings: WorkbookConfigSettings.optional(), + metadata: core.serialization.any().optional(), +@@ -31,8 +32,8 @@ export declare namespace CreateWorkbookConfig { + labels?: string[] | null; +- spaceId?: serializers.SpaceId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ spaceId?: SpaceId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + namespace?: string | null; +- sheets?: serializers.SheetConfig.Raw[] | null; +- actions?: serializers.Action.Raw[] | null; +- settings?: serializers.WorkbookConfigSettings.Raw | null; ++ sheets?: SheetConfig.Raw[] | null; ++ actions?: Action.Raw[] | null; ++ settings?: WorkbookConfigSettings.Raw | null; + metadata?: any | null; +diff --git a/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts b/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts +index dc1e71d..93e5dfd 100644 +--- a/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts ++++ b/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Workbook } from "./Workbook"; + +@@ -12,3 +13,3 @@ export const ListWorkbooksResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Workbook)), ++ data: core.serialization.list(Workbook), + }); +@@ -17,3 +18,3 @@ export declare namespace ListWorkbooksResponse { + interface Raw { +- data: serializers.Workbook.Raw[]; ++ data: Workbook.Raw[]; + } +diff --git a/src/serialization/resources/workbooks/types/Workbook.ts b/src/serialization/resources/workbooks/types/Workbook.ts +index 27fa380..1d72635 100644 +--- a/src/serialization/resources/workbooks/types/Workbook.ts ++++ b/src/serialization/resources/workbooks/types/Workbook.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { Sheet } from "../../sheets/types/Sheet"; ++import { Action } from "../../commons/types/Action"; ++import { WorkbookConfigSettings } from "./WorkbookConfigSettings"; + +@@ -10,16 +16,10 @@ export const Workbook: core.serialization.ObjectSchema (await import("../../..")).WorkbookId), ++ id: WorkbookId, + name: core.serialization.string().optional(), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), +- sheets: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Sheet)) +- .optional(), ++ spaceId: SpaceId, ++ environmentId: EnvironmentId, ++ sheets: core.serialization.list(Sheet).optional(), + labels: core.serialization.list(core.serialization.string()).optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), +- settings: core.serialization +- .lazyObject(async () => (await import("../../..")).WorkbookConfigSettings) +- .optional(), ++ actions: core.serialization.list(Action).optional(), ++ settings: WorkbookConfigSettings.optional(), + metadata: core.serialization.any().optional(), +@@ -33,10 +33,10 @@ export declare namespace Workbook { + interface Raw { +- id: serializers.WorkbookId.Raw; ++ id: WorkbookId.Raw; + name?: string | null; +- spaceId: serializers.SpaceId.Raw; +- environmentId: serializers.EnvironmentId.Raw; +- sheets?: serializers.Sheet.Raw[] | null; ++ spaceId: SpaceId.Raw; ++ environmentId: EnvironmentId.Raw; ++ sheets?: Sheet.Raw[] | null; + labels?: string[] | null; +- actions?: serializers.Action.Raw[] | null; +- settings?: serializers.WorkbookConfigSettings.Raw | null; ++ actions?: Action.Raw[] | null; ++ settings?: WorkbookConfigSettings.Raw | null; + metadata?: any | null; +diff --git a/src/serialization/resources/workbooks/types/WorkbookResponse.ts b/src/serialization/resources/workbooks/types/WorkbookResponse.ts +index 73df47c..dbc8edb 100644 +--- a/src/serialization/resources/workbooks/types/WorkbookResponse.ts ++++ b/src/serialization/resources/workbooks/types/WorkbookResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Workbook } from "./Workbook"; + +@@ -12,3 +13,3 @@ export const WorkbookResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Workbook), ++ data: Workbook, + }); +@@ -17,3 +18,3 @@ export declare namespace WorkbookResponse { + interface Raw { +- data: serializers.Workbook.Raw; ++ data: Workbook.Raw; + } +diff --git a/src/serialization/resources/workbooks/types/WorkbookUpdate.ts b/src/serialization/resources/workbooks/types/WorkbookUpdate.ts +index 3daf5d1..f1f9562 100644 +--- a/src/serialization/resources/workbooks/types/WorkbookUpdate.ts ++++ b/src/serialization/resources/workbooks/types/WorkbookUpdate.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SheetConfigOrUpdate } from "../../sheets/types/SheetConfigOrUpdate"; ++import { Action } from "../../commons/types/Action"; + +@@ -12,11 +16,7 @@ export const WorkbookUpdate: core.serialization.ObjectSchema (await import("../../..")).SpaceId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ spaceId: SpaceId.optional(), ++ environmentId: EnvironmentId.optional(), + namespace: core.serialization.string().optional(), +- sheets: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfigOrUpdate)) +- .optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ sheets: core.serialization.list(SheetConfigOrUpdate).optional(), ++ actions: core.serialization.list(Action).optional(), + metadata: core.serialization.any().optional(), +@@ -28,7 +28,7 @@ export declare namespace WorkbookUpdate { + labels?: string[] | null; +- spaceId?: serializers.SpaceId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ spaceId?: SpaceId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + namespace?: string | null; +- sheets?: serializers.SheetConfigOrUpdate.Raw[] | null; +- actions?: serializers.Action.Raw[] | null; ++ sheets?: SheetConfigOrUpdate.Raw[] | null; ++ actions?: Action.Raw[] | null; + metadata?: any | null; +diff --git a/tests/client.test.ts b/tests/client.test.ts +new file mode 100644 +index 0000000..62b373b +--- /dev/null ++++ b/tests/client.test.ts +@@ -0,0 +1,11 @@ ++/** ++* This is a test file for the SDK. ++* ++* Add any tests here and make sure to mark this file ++* in `.fernignore`. ++*/ ++describe("test", () => { ++ it("default", () => { ++ expect(true).toBe(true); ++ }); ++}); +\ No newline at end of file +diff --git a/tsconfig.json b/tsconfig.json +index e65fa53..5a306b2 100644 +--- a/tsconfig.json ++++ b/tsconfig.json +@@ -10,3 +10,2 @@ + "declaration": true, +- "noUnusedParameters": true, + "outDir": "dist", diff --git a/release-notes/1.7.10.diff.txt.result.md b/release-notes/1.7.10.diff.txt.result.md new file mode 100644 index 00000000..f1de6de7 --- /dev/null +++ b/release-notes/1.7.10.diff.txt.result.md @@ -0,0 +1,84 @@ +Here are the key release notes for this change: + +#### General Changes +- Added support for Jest testing with a new `jest.config.js` file and `"test": "jest"` script +- Added a default test file `tests/client.test.ts` +- Removed some unused imports and cleaned up files with automated tooling + +#### Accounts +- Added new `accounts` resource with types and client methods to: + - `get` the current account + - `update` the current account by setting the `defaultAppId` + +#### Agents +- Added new agent role management methods: + - `listAgentRoles` to list roles assigned to an agent + - `assignAgentRole` to assign a role to an agent + - `deleteAgentRole` to remove a role from an agent +- Added `slug` field to `AgentConfig` and `Agent` types + +#### Apps +- Added new `environmentFilters` field to `App` and related types to filter apps by environment + +#### Events +- Added new `appId` field to `Context` type +- Added new event topic `sheet:counts-updated` + +#### ForeignDB +- Added new `foreigndb` resource with types and client methods to: + - `restore` a database from a backup file + - `getDatabaseUser` to get database user credentials + - `getDatabaseInfo` to get info about the database + - `deleteDatabase` to delete the database + - `upload` to persist a file in object storage + +#### Jobs +- Added new `slug` property to `Agent` and related types +- Changed some property descriptions to use proper grammar +- Updated examples to show real data instead of `undefined` +- Added `q` query param to `FindAndReplaceRecordRequest` + +#### Mapping +- General cleanup and formatting updates + +#### Property +- Formatting updates + +#### Records +- Added `valid` and `messages` fields to `RecordBase` +- Updated examples to show real data instead of `undefined` +- Added `ids` and `q` params to `GetRecordsRequest` +- Changed `DeleteRecordsRequest` to require `ids` instead of making it optional + +#### Roles +- Added examples for `AssignActorRoleRequest` + +#### Users +- Added new methods: + - `createAndInvite` to create a new user and send invite + - `update` to update a user's name + - `listUserRoles` to list roles for a user + - `assignUserRole` to assign a role to a user + - `deleteUserRole` to remove a role from a user +- Added new `dashboard` field to `User` type +- Added new `lastSeenAt` field to `User` type + +#### Views +- No changes + +#### Workbooks +- Removed `includeCounts` option which will always return 0 (counts moved to `/sheets` endpoints) +- Removed `countRecords` from `Sheet` and related types (counts moved to `/sheets` endpoints) + +#### Sheets +- Removed `countRecords` from `Sheet` response (counts now separate endpoint) +- Added `counts` endpoint to get counts for a sheet +- Made `slug` required when updating `SheetConfig` + +#### Spaces +- Added `upgrade` method to upgrade a space +- Added `appId` to `Space` type +- Fixed `DeleteSpacesRequest` name + +#### Snapshots +- No changes \ No newline at end of file diff --git a/release-notes/1.7.11.diff.txt b/release-notes/1.7.11.diff.txt new file mode 100644 index 00000000..1c634742 --- /dev/null +++ b/release-notes/1.7.11.diff.txt @@ -0,0 +1,1183 @@ +diff --git a/package.json b/package.json +index d173188..4363448 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.10", ++ "version": "1.7.11", + "private": false, +diff --git a/src/Client.ts b/src/Client.ts +index fa54458..cb04dd8 100644 +--- a/src/Client.ts ++++ b/src/Client.ts +@@ -9,2 +9,3 @@ import { Agents } from "./api/resources/agents/client/Client"; + import { Apps } from "./api/resources/apps/client/Client"; ++import { Assistant } from "./api/resources/assistant/client/Client"; + import { Auth } from "./api/resources/auth/client/Client"; +@@ -66,2 +67,8 @@ export class FlatfileClient { + ++ protected _assistant: Assistant | undefined; ++ ++ public get assistant(): Assistant { ++ return (this._assistant ??= new Assistant(this._options)); ++ } ++ + protected _auth: Auth | undefined; +diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts +index 249cff0..9ddf2d1 100644 +--- a/src/api/resources/accounts/client/Client.ts ++++ b/src/api/resources/accounts/client/Client.ts +@@ -45,3 +45,3 @@ export class Accounts { +@@ -108,3 +108,3 @@ export class Accounts { +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 1097e60..6f4f2cd 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 0daf0a9..d74f406 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +new file mode 100644 +index 0000000..f45e7d6 +--- /dev/null ++++ b/src/api/resources/assistant/client/Client.ts +@@ -0,0 +1,359 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as environments from "../../../../environments"; ++import * as core from "../../../../core"; ++import * as Flatfile from "../../.."; ++import urlJoin from "url-join"; ++import * as serializers from "../../../../serialization"; ++import * as errors from "../../../../errors"; ++ ++export declare namespace Assistant { ++ interface Options { ++ environment?: core.Supplier; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Assistant { ++ constructor(protected readonly _options: Assistant.Options = {}) {} ++ ++ /** ++ * Returns prompts created by user ++ * ++ * @example ++ * await flatfile.assistant.list() ++ */ ++ public async list( ++ request: Flatfile.ListPromptsRequest = {}, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const { pageSize, pageNumber } = request; ++ const _queryParams: Record = {}; ++ if (pageSize != null) { ++ _queryParams["pageSize"] = pageSize.toString(); ++ } ++ ++ if (pageNumber != null) { ++ _queryParams["pageNumber"] = pageNumber.toString(); ++ } ++ ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/prompts" ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ queryParameters: _queryParams, ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptsResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Returns a prompt ++ * ++ * @example ++ * await flatfile.assistant.get("us_pr_YOUR_ID") ++ */ ++ public async get( ++ promptId: Flatfile.PromptId, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Updates a prompt ++ * ++ * @example ++ * await flatfile.assistant.update("us_pr_YOUR_ID", { ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * }) ++ */ ++ public async update( ++ promptId: Flatfile.PromptId, ++ request: Flatfile.PromptPatch, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.PromptPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Creates a prompt ++ * ++ * @example ++ * await flatfile.assistant.create({ ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * }) ++ */ ++ public async create( ++ request: Flatfile.PromptCreate, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/prompts" ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.PromptCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Deletes a prompts ++ * ++ * @example ++ * await flatfile.assistant.delete("us_pr_YOUR_ID") ++ */ ++ public async delete( ++ promptId: Flatfile.PromptId, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/assistant/client/index.ts b/src/api/resources/assistant/client/index.ts +new file mode 100644 +index 0000000..415726b +--- /dev/null ++++ b/src/api/resources/assistant/client/index.ts +@@ -0,0 +1 @@ ++export * from "./requests"; +diff --git a/src/api/resources/assistant/client/requests/ListPromptsRequest.ts b/src/api/resources/assistant/client/requests/ListPromptsRequest.ts +new file mode 100644 +index 0000000..f93af5d +--- /dev/null ++++ b/src/api/resources/assistant/client/requests/ListPromptsRequest.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * @example ++ * {} ++ */ ++export interface ListPromptsRequest { ++ /** ++ * Number of prompts to return in a page (default 7) ++ */ ++ pageSize?: number; ++ /** ++ * Based on pageSize, which page of prompts to return ++ */ ++ pageNumber?: number; ++} +diff --git a/src/api/resources/assistant/client/requests/index.ts b/src/api/resources/assistant/client/requests/index.ts +new file mode 100644 +index 0000000..78a6d76 +--- /dev/null ++++ b/src/api/resources/assistant/client/requests/index.ts +@@ -0,0 +1 @@ ++export { ListPromptsRequest } from "./ListPromptsRequest"; +diff --git a/src/api/resources/assistant/index.ts b/src/api/resources/assistant/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/assistant/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/assistant/types/Prompt.ts b/src/api/resources/assistant/types/Prompt.ts +new file mode 100644 +index 0000000..a8702cb +--- /dev/null ++++ b/src/api/resources/assistant/types/Prompt.ts +@@ -0,0 +1,28 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * id: "us_pr_YOUR_ID", ++ * createdById: "us_usr_YOUR_ID", ++ * accountId: "us_acc_YOUR_ID", ++ * prompt: "Combine first name and last name into a new column called Full Name", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * } ++ */ ++export interface Prompt { ++ id: Flatfile.PromptId; ++ /** ID of the user/guest who created the prompt */ ++ createdById: string; ++ accountId: Flatfile.AccountId; ++ /** Text for prompts for AI Assist */ ++ prompt: string; ++ createdAt: Date; ++ updatedAt: Date; ++ deletedAt?: Date; ++} +diff --git a/src/api/resources/assistant/types/PromptCreate.ts b/src/api/resources/assistant/types/PromptCreate.ts +new file mode 100644 +index 0000000..e9d20e6 +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptCreate.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Create a prompts ++ * ++ * @example ++ * { ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * } ++ */ ++export interface PromptCreate { ++ prompt: string; ++} +diff --git a/src/api/resources/assistant/types/PromptPatch.ts b/src/api/resources/assistant/types/PromptPatch.ts +new file mode 100644 +index 0000000..d1718fc +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptPatch.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Update a prompts ++ * ++ * @example ++ * { ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * } ++ */ ++export interface PromptPatch { ++ prompt?: string; ++} +diff --git a/src/api/resources/assistant/types/PromptResponse.ts b/src/api/resources/assistant/types/PromptResponse.ts +new file mode 100644 +index 0000000..c6bdca6 +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptResponse.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: { ++ * id: "us_pr_YOUR_ID", ++ * createdById: "us_usr_YOUR_ID", ++ * accountId: "us_acc_YOUR_ID", ++ * prompt: "Combine first name and last name into a new column called Full Name", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * } ++ * } ++ */ ++export interface PromptResponse { ++ data: Flatfile.Prompt; ++} +diff --git a/src/api/resources/assistant/types/PromptsResponse.ts b/src/api/resources/assistant/types/PromptsResponse.ts +new file mode 100644 +index 0000000..3b59dd1 +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptsResponse.ts +@@ -0,0 +1,28 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: [{ ++ * id: "us_pr_YOUR_ID", ++ * createdById: "us_usr_YOUR_ID", ++ * accountId: "us_acc_YOUR_ID", ++ * prompt: "Combine first name and last name into a new column called Full Name", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * }], ++ * pagination: { ++ * currentPage: 3, ++ * pageCount: 50, ++ * totalCount: 100 ++ * } ++ * } ++ */ ++export interface PromptsResponse { ++ pagination?: Flatfile.Pagination; ++ data: Flatfile.Prompt[]; ++} +diff --git a/src/api/resources/assistant/types/index.ts b/src/api/resources/assistant/types/index.ts +new file mode 100644 +index 0000000..d296f59 +--- /dev/null ++++ b/src/api/resources/assistant/types/index.ts +@@ -0,0 +1,5 @@ ++export * from "./PromptsResponse"; ++export * from "./PromptResponse"; ++export * from "./PromptPatch"; ++export * from "./PromptCreate"; ++export * from "./Prompt"; +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index ba1e4b0..b5537ef 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index ffd499b..f12f921 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 823f9a7..af39943 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/commons/types/PromptId.ts b/src/api/resources/commons/types/PromptId.ts +new file mode 100644 +index 0000000..03a6eb6 +--- /dev/null ++++ b/src/api/resources/commons/types/PromptId.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Prompt ID ++ * ++ * @example ++ * "us_pr_YOUR_ID" ++ */ ++export type PromptId = string; +diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts +index d92ca92..baa887d 100644 +--- a/src/api/resources/commons/types/index.ts ++++ b/src/api/resources/commons/types/index.ts +@@ -24,2 +24,3 @@ export * from "./ProgramId"; + export * from "./FamilyId"; ++export * from "./PromptId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 406b614..19ff211 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 5dfe329..9f8859f 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 0e7ec44..7e392f8 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index b04aa1c..9c2cd5b 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 1efeaa9..fbfafb7 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 5baff22..ef5447a 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/files/client/requests/ListFilesRequest.ts b/src/api/resources/files/client/requests/ListFilesRequest.ts +index 0e99dd4..ed26c81 100644 +--- a/src/api/resources/files/client/requests/ListFilesRequest.ts ++++ b/src/api/resources/files/client/requests/ListFilesRequest.ts +@@ -13,3 +13,3 @@ export interface ListFilesRequest { + /** +- * Number of jobs to return in a page (default 20) ++ * Number of files to return in a page (default 20) + */ +@@ -17,3 +17,3 @@ export interface ListFilesRequest { + /** +- * Based on pageSize, which page of jobs to return ++ * Based on pageSize, which page of files to return + */ +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +index e4dfeca..9020138 100644 +--- a/src/api/resources/foreigndb/client/Client.ts ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -48,3 +48,3 @@ export class Foreigndb { +@@ -132,3 +132,3 @@ export class Foreigndb { +@@ -215,3 +215,3 @@ export class Foreigndb { +@@ -298,3 +298,3 @@ export class Foreigndb { +@@ -382,3 +382,3 @@ export class Foreigndb { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 6d4051c..d0dbe13 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts +index 7ddc203..21a77dd 100644 +--- a/src/api/resources/index.ts ++++ b/src/api/resources/index.ts +@@ -6,2 +6,4 @@ export * as apps from "./apps"; + export * from "./apps/types"; ++export * as assistant from "./assistant"; ++export * from "./assistant/types"; + export * as auth from "./auth"; +@@ -56,2 +58,3 @@ export * from "./commons/errors"; + export * from "./agents/client/requests"; ++export * from "./assistant/client/requests"; + export * from "./auth/client/requests"; +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index c46dd6d..3875433 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1109,3 +1109,3 @@ export class Jobs { +diff --git a/src/api/resources/jobs/types/MutateJobConfig.ts b/src/api/resources/jobs/types/MutateJobConfig.ts +index dd23cc9..2abb49e 100644 +--- a/src/api/resources/jobs/types/MutateJobConfig.ts ++++ b/src/api/resources/jobs/types/MutateJobConfig.ts +@@ -12,2 +12,4 @@ export interface MutateJobConfig { + mutationId?: string; ++ /** If specified, a snapshot will be generated with this label */ ++ snapshotLabel?: string; + filter?: Flatfile.Filter; +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index c8d4fd7..370f737 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -128,3 +128,3 @@ export class Mapping { +@@ -263,3 +263,3 @@ export class Mapping { +@@ -337,3 +337,3 @@ export class Mapping { +@@ -421,3 +421,3 @@ export class Mapping { +@@ -505,3 +505,3 @@ export class Mapping { +@@ -589,3 +589,3 @@ export class Mapping { +@@ -676,3 +676,3 @@ export class Mapping { +@@ -765,3 +765,3 @@ export class Mapping { +@@ -859,3 +859,3 @@ export class Mapping { +@@ -944,3 +944,3 @@ export class Mapping { +@@ -1034,3 +1034,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 5b8eb36..160d562 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -264,3 +264,3 @@ export class Records { +@@ -368,3 +368,3 @@ export class Records { +@@ -466,3 +466,3 @@ export class Records { +@@ -584,3 +584,3 @@ export class Records { +diff --git a/src/api/resources/records/client/requests/GetRecordsRequest.ts b/src/api/resources/records/client/requests/GetRecordsRequest.ts +index 9a48215..ffd839d 100644 +--- a/src/api/resources/records/client/requests/GetRecordsRequest.ts ++++ b/src/api/resources/records/client/requests/GetRecordsRequest.ts +@@ -39,3 +39,3 @@ export interface GetRecordsRequest { + /** +- * Based on pageSize, which page of records to return ++ * Based on pageSize, which page of records to return (Note - numbers start at 1) + */ +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index cc59587..09604a8 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index a63eaf5..1ade8af 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 1945457..0b478a8 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -966,3 +966,3 @@ export class Sheets { +diff --git a/src/api/resources/sheets/types/Sheet.ts b/src/api/resources/sheets/types/Sheet.ts +index e52a7fe..be4c96a 100644 +--- a/src/api/resources/sheets/types/Sheet.ts ++++ b/src/api/resources/sheets/types/Sheet.ts +@@ -59,2 +59,4 @@ export interface Sheet { + lockedAt?: Date; ++ /** The precomputed counts of records in the Sheet (may not exist). */ ++ recordCounts?: Flatfile.RecordCounts; + } +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index d13cf34..f45e5c6 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 21d3f4f..2870146 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +@@ -707,3 +707,3 @@ export class Spaces { +diff --git a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +index 8157112..12d7903 100644 +--- a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -21,2 +21,4 @@ export interface InternalSpaceConfigBase { + archivedAt?: Date; ++ /** The ID of the App that space is associated with */ ++ appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/spaces/types/Space.ts b/src/api/resources/spaces/types/Space.ts +index 4559dfd..ae76874 100644 +--- a/src/api/resources/spaces/types/Space.ts ++++ b/src/api/resources/spaces/types/Space.ts +@@ -62,3 +62,3 @@ export interface Space extends Flatfile.InternalSpaceConfigBase { + expiredAt?: Date; +- /** Date that the last activity in the space occurred. This could include any create or update activity in the space like adding a record to a sheet, uploading a new file, or updating the configuration of a workbook. This date is only tracked to the precision of a day. */ ++ /** This date marks the most recent activity within the space, tracking actions to the second. Activities include creating or updating records in a sheet, uploading files, or modifying a workbook's configuration. */ + lastActivityAt?: Date; +@@ -80,4 +80,2 @@ export interface Space extends Flatfile.InternalSpaceConfigBase { + guestAuthentication: Flatfile.GuestAuthenticationEnum[]; +- /** The ID of the App that space is associated with */ +- appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 40456bc..1d14d9a 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -128,3 +128,3 @@ export class Users { +@@ -190,3 +190,3 @@ export class Users { +@@ -249,3 +249,3 @@ export class Users { +@@ -310,3 +310,3 @@ export class Users { +@@ -405,3 +405,3 @@ export class Users { +@@ -503,3 +503,3 @@ export class Users { +@@ -606,3 +606,3 @@ export class Users { +@@ -669,3 +669,3 @@ export class Users { +@@ -728,3 +728,3 @@ export class Users { +diff --git a/src/api/resources/users/client/requests/UpdateUserRequest.ts b/src/api/resources/users/client/requests/UpdateUserRequest.ts +index d815834..30e54f2 100644 +--- a/src/api/resources/users/client/requests/UpdateUserRequest.ts ++++ b/src/api/resources/users/client/requests/UpdateUserRequest.ts +@@ -6,2 +6,3 @@ export interface UpdateUserRequest { + name?: string; ++ dashboard?: number; + } +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 6d4c089..c96a8a3 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index b242f95..ac4d087 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -61,3 +61,3 @@ export class Workbooks { +@@ -168,3 +168,3 @@ export class Workbooks { +@@ -245,3 +245,3 @@ export class Workbooks { +@@ -331,3 +331,3 @@ export class Workbooks { +@@ -428,3 +428,3 @@ export class Workbooks { +@@ -520,3 +520,3 @@ export class Workbooks { +@@ -581,3 +581,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/assistant/index.ts b/src/serialization/resources/assistant/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/assistant/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/assistant/types/Prompt.ts b/src/serialization/resources/assistant/types/Prompt.ts +new file mode 100644 +index 0000000..970bff8 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/Prompt.ts +@@ -0,0 +1,32 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { PromptId } from "../../commons/types/PromptId"; ++import { AccountId } from "../../commons/types/AccountId"; ++ ++export const Prompt: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ id: PromptId, ++ createdById: core.serialization.string(), ++ accountId: AccountId, ++ prompt: core.serialization.string(), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++ deletedAt: core.serialization.date().optional(), ++ }); ++ ++export declare namespace Prompt { ++ interface Raw { ++ id: PromptId.Raw; ++ createdById: string; ++ accountId: AccountId.Raw; ++ prompt: string; ++ createdAt: string; ++ updatedAt: string; ++ deletedAt?: string | null; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptCreate.ts b/src/serialization/resources/assistant/types/PromptCreate.ts +new file mode 100644 +index 0000000..38950d0 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptCreate.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const PromptCreate: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ prompt: core.serialization.string(), ++ }); ++ ++export declare namespace PromptCreate { ++ interface Raw { ++ prompt: string; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptPatch.ts b/src/serialization/resources/assistant/types/PromptPatch.ts +new file mode 100644 +index 0000000..2b1ede6 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptPatch.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const PromptPatch: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ prompt: core.serialization.string().optional(), ++ }); ++ ++export declare namespace PromptPatch { ++ interface Raw { ++ prompt?: string | null; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptResponse.ts b/src/serialization/resources/assistant/types/PromptResponse.ts +new file mode 100644 +index 0000000..ae87c84 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptResponse.ts +@@ -0,0 +1,19 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { Prompt } from "./Prompt"; ++ ++export const PromptResponse: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ data: Prompt, ++ }); ++ ++export declare namespace PromptResponse { ++ interface Raw { ++ data: Prompt.Raw; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptsResponse.ts b/src/serialization/resources/assistant/types/PromptsResponse.ts +new file mode 100644 +index 0000000..9821a6b +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptsResponse.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Prompt } from "./Prompt"; ++ ++export const PromptsResponse: core.serialization.ObjectSchema< ++ serializers.PromptsResponse.Raw, ++ Flatfile.PromptsResponse ++> = core.serialization.object({ ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Prompt), ++}); ++ ++export declare namespace PromptsResponse { ++ interface Raw { ++ pagination?: Pagination.Raw | null; ++ data: Prompt.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/index.ts b/src/serialization/resources/assistant/types/index.ts +new file mode 100644 +index 0000000..d296f59 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/index.ts +@@ -0,0 +1,5 @@ ++export * from "./PromptsResponse"; ++export * from "./PromptResponse"; ++export * from "./PromptPatch"; ++export * from "./PromptCreate"; ++export * from "./Prompt"; +diff --git a/src/serialization/resources/commons/types/PromptId.ts b/src/serialization/resources/commons/types/PromptId.ts +new file mode 100644 +index 0000000..695182d +--- /dev/null ++++ b/src/serialization/resources/commons/types/PromptId.ts +@@ -0,0 +1,14 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const PromptId: core.serialization.Schema = ++ core.serialization.string(); ++ ++export declare namespace PromptId { ++ type Raw = string; ++} +diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts +index d92ca92..baa887d 100644 +--- a/src/serialization/resources/commons/types/index.ts ++++ b/src/serialization/resources/commons/types/index.ts +@@ -24,2 +24,3 @@ export * from "./ProgramId"; + export * from "./FamilyId"; ++export * from "./PromptId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts +index 1ddef06..481e6bc 100644 +--- a/src/serialization/resources/index.ts ++++ b/src/serialization/resources/index.ts +@@ -6,2 +6,4 @@ export * as apps from "./apps"; + export * from "./apps/types"; ++export * as assistant from "./assistant"; ++export * from "./assistant/types"; + export * as auth from "./auth"; +diff --git a/src/serialization/resources/jobs/types/MutateJobConfig.ts b/src/serialization/resources/jobs/types/MutateJobConfig.ts +index 4c5aa42..6723d82 100644 +--- a/src/serialization/resources/jobs/types/MutateJobConfig.ts ++++ b/src/serialization/resources/jobs/types/MutateJobConfig.ts +@@ -21,2 +21,3 @@ export const MutateJobConfig: core.serialization.ObjectSchema< + mutationId: core.serialization.string().optional(), ++ snapshotLabel: core.serialization.string().optional(), + filter: Filter.optional(), +@@ -34,2 +35,3 @@ export declare namespace MutateJobConfig { + mutationId?: string | null; ++ snapshotLabel?: string | null; + filter?: Filter.Raw | null; +diff --git a/src/serialization/resources/sheets/types/Sheet.ts b/src/serialization/resources/sheets/types/Sheet.ts +index fc6f503..46580fc 100644 +--- a/src/serialization/resources/sheets/types/Sheet.ts ++++ b/src/serialization/resources/sheets/types/Sheet.ts +@@ -10,2 +10,3 @@ import { WorkbookId } from "../../commons/types/WorkbookId"; + import { SheetConfig } from "./SheetConfig"; ++import { RecordCounts } from "../../records/types/RecordCounts"; + +@@ -22,2 +23,3 @@ export const Sheet: core.serialization.ObjectSchema; +- token?: core.Supplier; +- fetcher?: core.FetchFunction; +- } +- +- interface RequestOptions { +- timeoutInSeconds?: number; +- maxRetries?: number; +- } +-} +- +-export class Accounts { +- constructor(protected readonly _options: Accounts.Options = {}) {} +- +- /** +- * Get the current account +- * +- * @example +- * await flatfile.accounts.getCurrent() +- */ +- public async getCurrent(requestOptions?: Accounts.RequestOptions): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- "/accounts/current" +- ), +- method: "GET", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.AccountResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Update the current account +- * +- * @example +- * await flatfile.accounts.updateCurrent({ +- * defaultAppId: "us_app_YOUR_ID" +- * }) +- */ +- public async updateCurrent( +- request: Flatfile.AccountPatch, +- requestOptions?: Accounts.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- "/accounts/current" +- ), +- method: "PATCH", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.AccountPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.AccountResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- protected async _getAuthorizationHeader() { +- const bearer = await core.Supplier.get(this._options.token); +- if (bearer != null) { +- return `Bearer ${bearer}`; +- } +- +- return undefined; +- } +-} +diff --git a/src/api/resources/accounts/client/index.ts b/src/api/resources/accounts/client/index.ts +deleted file mode 100644 +index cb0ff5c..0000000 +--- a/src/api/resources/accounts/client/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export {}; +diff --git a/src/api/resources/accounts/index.ts b/src/api/resources/accounts/index.ts +deleted file mode 100644 +index c9240f8..0000000 +--- a/src/api/resources/accounts/index.ts ++++ /dev/null +@@ -1,2 +0,0 @@ +-export * from "./types"; +-export * from "./client"; +diff --git a/src/api/resources/accounts/types/Account.ts b/src/api/resources/accounts/types/Account.ts +deleted file mode 100644 +index abc5431..0000000 +--- a/src/api/resources/accounts/types/Account.ts ++++ /dev/null +@@ -1,32 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-/** +- * An account +- * +- * @example +- * { +- * id: "us_acc_YOUR_ID", +- * name: "MyAccountName", +- * metadata: {}, +- * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") +- * } +- */ +-export interface Account { +- id: Flatfile.AccountId; +- name: string; +- subdomain?: string; +- vanityDomainDashboard?: string; +- vanityDomainSpaces?: string; +- embeddedDomainWhitelist?: string[]; +- customFromEmail?: string; +- stripeCustomerId?: string; +- metadata: Record; +- createdAt: Date; +- updatedAt: Date; +- defaultAppId?: Flatfile.AppId; +-} +diff --git a/src/api/resources/accounts/types/AccountPatch.ts b/src/api/resources/accounts/types/AccountPatch.ts +deleted file mode 100644 +index 870403b..0000000 +--- a/src/api/resources/accounts/types/AccountPatch.ts ++++ /dev/null +@@ -1,17 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-/** +- * Properties used to update an account +- * +- * @example +- * { +- * defaultAppId: "us_app_YOUR_ID" +- * } +- */ +-export interface AccountPatch { +- defaultAppId: Flatfile.AppId; +-} +diff --git a/src/api/resources/accounts/types/AccountResponse.ts b/src/api/resources/accounts/types/AccountResponse.ts +deleted file mode 100644 +index c8afe37..0000000 +--- a/src/api/resources/accounts/types/AccountResponse.ts ++++ /dev/null +@@ -1,21 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-/** +- * @example +- * { +- * data: { +- * id: "us_acc_YOUR_ID", +- * name: "MyAccountName", +- * metadata: {}, +- * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") +- * } +- * } +- */ +-export interface AccountResponse { +- data: Flatfile.Account; +-} +diff --git a/src/api/resources/accounts/types/index.ts b/src/api/resources/accounts/types/index.ts +deleted file mode 100644 +index 0f9ca2c..0000000 +--- a/src/api/resources/accounts/types/index.ts ++++ /dev/null +@@ -1,3 +0,0 @@ +-export * from "./AccountResponse"; +-export * from "./Account"; +-export * from "./AccountPatch"; +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 6f4f2cd..f257d07 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -32,3 +32,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -45,5 +45,3 @@ export class Agents { + }, +@@ -114,3 +112,3 @@ export class Agents { + const { environmentId, body: _body } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -127,5 +125,3 @@ export class Agents { + }, +@@ -197,3 +193,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -210,5 +206,3 @@ export class Agents { + }, +@@ -295,5 +289,3 @@ export class Agents { + }, +@@ -390,5 +382,3 @@ export class Agents { + }, +@@ -488,5 +478,3 @@ export class Agents { + }, +@@ -576,3 +564,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -589,5 +577,3 @@ export class Agents { + }, +@@ -668,3 +654,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -681,5 +667,3 @@ export class Agents { + }, +@@ -763,3 +747,3 @@ export class Agents { + const { environmentId, spaceId, success, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -792,5 +776,3 @@ export class Agents { + }, +@@ -874,3 +856,3 @@ export class Agents { + const { environmentId, spaceId, success, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -903,5 +885,3 @@ export class Agents { + }, +@@ -983,3 +963,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -996,5 +976,3 @@ export class Agents { + }, +diff --git a/src/api/resources/agents/types/Agent.ts b/src/api/resources/agents/types/Agent.ts +index f33bf8f..b360695 100644 +--- a/src/api/resources/agents/types/Agent.ts ++++ b/src/api/resources/agents/types/Agent.ts +@@ -12,4 +12,3 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", +- * slug: "default" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" + * } +diff --git a/src/api/resources/agents/types/AgentConfig.ts b/src/api/resources/agents/types/AgentConfig.ts +index 7599efd..1012f6e 100644 +--- a/src/api/resources/agents/types/AgentConfig.ts ++++ b/src/api/resources/agents/types/AgentConfig.ts +@@ -23,4 +23,2 @@ export interface AgentConfig { + source?: string; +- /** The slug of the agent */ +- slug?: string; + } +diff --git a/src/api/resources/agents/types/AgentResponse.ts b/src/api/resources/agents/types/AgentResponse.ts +index ccb15b5..3e7ee60 100644 +--- a/src/api/resources/agents/types/AgentResponse.ts ++++ b/src/api/resources/agents/types/AgentResponse.ts +@@ -13,4 +13,3 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", +- * slug: "default" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" + * } +diff --git a/src/api/resources/agents/types/ListAgentsResponse.ts b/src/api/resources/agents/types/ListAgentsResponse.ts +index 2cf0c7d..f96e094 100644 +--- a/src/api/resources/agents/types/ListAgentsResponse.ts ++++ b/src/api/resources/agents/types/ListAgentsResponse.ts +@@ -13,4 +13,3 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", +- * slug: "default" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" + * }] +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index d74f406..a1cfe70 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,5 +42,3 @@ export class Apps { + }, +@@ -100,5 +98,3 @@ export class Apps { + }, +@@ -171,5 +167,3 @@ export class Apps { + }, +@@ -243,5 +237,3 @@ export class Apps { + }, +diff --git a/src/api/resources/apps/types/App.ts b/src/api/resources/apps/types/App.ts +index 9d3909e..2cc545b 100644 +--- a/src/api/resources/apps/types/App.ts ++++ b/src/api/resources/apps/types/App.ts +@@ -21,13 +21,6 @@ import * as Flatfile from "../../.."; + * }, +- * environmentFilters: { +- * "type": [ +- * "PROD", +- * "DEV" +- * ], +- * "exclude_ids": [ +- * "us_env_123456" +- * ] +- * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * deletedAt: undefined, ++ * activatedAt: undefined + * } +@@ -43,3 +36,2 @@ export interface App { + metadata?: any; +- environmentFilters?: any; + createdAt: Date; +diff --git a/src/api/resources/apps/types/AppCreate.ts b/src/api/resources/apps/types/AppCreate.ts +index 3ecbf37..b04a843 100644 +--- a/src/api/resources/apps/types/AppCreate.ts ++++ b/src/api/resources/apps/types/AppCreate.ts +@@ -30,3 +30,2 @@ export interface AppCreate { + metadata?: any; +- environmentFilters?: any; + } +diff --git a/src/api/resources/apps/types/AppPatch.ts b/src/api/resources/apps/types/AppPatch.ts +index 2d9f71f..8ee7606 100644 +--- a/src/api/resources/apps/types/AppPatch.ts ++++ b/src/api/resources/apps/types/AppPatch.ts +@@ -26,3 +26,2 @@ export interface AppPatch { + metadata?: any; +- environmentFilters?: any; + activatedAt?: Date; +diff --git a/src/api/resources/apps/types/AppResponse.ts b/src/api/resources/apps/types/AppResponse.ts +index 6618c44..9e7f8a6 100644 +--- a/src/api/resources/apps/types/AppResponse.ts ++++ b/src/api/resources/apps/types/AppResponse.ts +@@ -20,13 +20,6 @@ import * as Flatfile from "../../.."; + * }, +- * environmentFilters: { +- * "type": [ +- * "PROD", +- * "DEV" +- * ], +- * "exclude_ids": [ +- * "us_env_123456" +- * ] +- * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * deletedAt: undefined, ++ * activatedAt: undefined + * } +diff --git a/src/api/resources/apps/types/AppsResponse.ts b/src/api/resources/apps/types/AppsResponse.ts +index 7f1337e..074c27e 100644 +--- a/src/api/resources/apps/types/AppsResponse.ts ++++ b/src/api/resources/apps/types/AppsResponse.ts +@@ -20,13 +20,6 @@ import * as Flatfile from "../../.."; + * }, +- * environmentFilters: { +- * "type": [ +- * "PROD", +- * "DEV" +- * ], +- * "exclude_ids": [ +- * "us_env_123456" +- * ] +- * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * deletedAt: undefined, ++ * activatedAt: undefined + * }] +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +deleted file mode 100644 +index f45e7d6..0000000 +--- a/src/api/resources/assistant/client/Client.ts ++++ /dev/null +@@ -1,359 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as environments from "../../../../environments"; +-import * as core from "../../../../core"; +-import * as Flatfile from "../../.."; +-import urlJoin from "url-join"; +-import * as serializers from "../../../../serialization"; +-import * as errors from "../../../../errors"; +- +-export declare namespace Assistant { +- interface Options { +- environment?: core.Supplier; +- token?: core.Supplier; +- fetcher?: core.FetchFunction; +- } +- +- interface RequestOptions { +- timeoutInSeconds?: number; +- maxRetries?: number; +- } +-} +- +-export class Assistant { +- constructor(protected readonly _options: Assistant.Options = {}) {} +- +- /** +- * Returns prompts created by user +- * +- * @example +- * await flatfile.assistant.list() +- */ +- public async list( +- request: Flatfile.ListPromptsRequest = {}, +- requestOptions?: Assistant.RequestOptions +- ): Promise { +- const { pageSize, pageNumber } = request; +- const _queryParams: Record = {}; +- if (pageSize != null) { +- _queryParams["pageSize"] = pageSize.toString(); +- } +- +- if (pageNumber != null) { +- _queryParams["pageNumber"] = pageNumber.toString(); +- } +- +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- "/prompts" +- ), +- method: "GET", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- queryParameters: _queryParams, +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.PromptsResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Returns a prompt +- * +- * @example +- * await flatfile.assistant.get("us_pr_YOUR_ID") +- */ +- public async get( +- promptId: Flatfile.PromptId, +- requestOptions?: Assistant.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` +- ), +- method: "GET", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.PromptResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Updates a prompt +- * +- * @example +- * await flatfile.assistant.update("us_pr_YOUR_ID", { +- * prompt: "Combine first name and last name into a new column called Full Name" +- * }) +- */ +- public async update( +- promptId: Flatfile.PromptId, +- request: Flatfile.PromptPatch, +- requestOptions?: Assistant.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` +- ), +- method: "PATCH", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.PromptPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.PromptResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Creates a prompt +- * +- * @example +- * await flatfile.assistant.create({ +- * prompt: "Combine first name and last name into a new column called Full Name" +- * }) +- */ +- public async create( +- request: Flatfile.PromptCreate, +- requestOptions?: Assistant.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- "/prompts" +- ), +- method: "POST", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.PromptCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.PromptResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Deletes a prompts +- * +- * @example +- * await flatfile.assistant.delete("us_pr_YOUR_ID") +- */ +- public async delete( +- promptId: Flatfile.PromptId, +- requestOptions?: Assistant.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` +- ), +- method: "DELETE", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.Success.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- protected async _getAuthorizationHeader() { +- const bearer = await core.Supplier.get(this._options.token); +- if (bearer != null) { +- return `Bearer ${bearer}`; +- } +- +- return undefined; +- } +-} +diff --git a/src/api/resources/assistant/client/index.ts b/src/api/resources/assistant/client/index.ts +deleted file mode 100644 +index 415726b..0000000 +--- a/src/api/resources/assistant/client/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export * from "./requests"; +diff --git a/src/api/resources/assistant/client/requests/ListPromptsRequest.ts b/src/api/resources/assistant/client/requests/ListPromptsRequest.ts +deleted file mode 100644 +index f93af5d..0000000 +--- a/src/api/resources/assistant/client/requests/ListPromptsRequest.ts ++++ /dev/null +@@ -1,18 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * @example +- * {} +- */ +-export interface ListPromptsRequest { +- /** +- * Number of prompts to return in a page (default 7) +- */ +- pageSize?: number; +- /** +- * Based on pageSize, which page of prompts to return +- */ +- pageNumber?: number; +-} +diff --git a/src/api/resources/assistant/client/requests/index.ts b/src/api/resources/assistant/client/requests/index.ts +deleted file mode 100644 +index 78a6d76..0000000 +--- a/src/api/resources/assistant/client/requests/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export { ListPromptsRequest } from "./ListPromptsRequest"; +diff --git a/src/api/resources/assistant/index.ts b/src/api/resources/assistant/index.ts +deleted file mode 100644 +index c9240f8..0000000 +--- a/src/api/resources/assistant/index.ts ++++ /dev/null +@@ -1,2 +0,0 @@ +-export * from "./types"; +-export * from "./client"; +diff --git a/src/api/resources/assistant/types/Prompt.ts b/src/api/resources/assistant/types/Prompt.ts +deleted file mode 100644 +index a8702cb..0000000 +--- a/src/api/resources/assistant/types/Prompt.ts ++++ /dev/null +@@ -1,28 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-/** +- * @example +- * { +- * id: "us_pr_YOUR_ID", +- * createdById: "us_usr_YOUR_ID", +- * accountId: "us_acc_YOUR_ID", +- * prompt: "Combine first name and last name into a new column called Full Name", +- * createdAt: new Date("2021-01-01T00:00:00.000Z"), +- * updatedAt: new Date("2021-01-01T00:00:00.000Z") +- * } +- */ +-export interface Prompt { +- id: Flatfile.PromptId; +- /** ID of the user/guest who created the prompt */ +- createdById: string; +- accountId: Flatfile.AccountId; +- /** Text for prompts for AI Assist */ +- prompt: string; +- createdAt: Date; +- updatedAt: Date; +- deletedAt?: Date; +-} +diff --git a/src/api/resources/assistant/types/PromptCreate.ts b/src/api/resources/assistant/types/PromptCreate.ts +deleted file mode 100644 +index e9d20e6..0000000 +--- a/src/api/resources/assistant/types/PromptCreate.ts ++++ /dev/null +@@ -1,15 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Create a prompts +- * +- * @example +- * { +- * prompt: "Combine first name and last name into a new column called Full Name" +- * } +- */ +-export interface PromptCreate { +- prompt: string; +-} +diff --git a/src/api/resources/assistant/types/PromptPatch.ts b/src/api/resources/assistant/types/PromptPatch.ts +deleted file mode 100644 +index d1718fc..0000000 +--- a/src/api/resources/assistant/types/PromptPatch.ts ++++ /dev/null +@@ -1,15 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Update a prompts +- * +- * @example +- * { +- * prompt: "Combine first name and last name into a new column called Full Name" +- * } +- */ +-export interface PromptPatch { +- prompt?: string; +-} +diff --git a/src/api/resources/assistant/types/PromptResponse.ts b/src/api/resources/assistant/types/PromptResponse.ts +deleted file mode 100644 +index c6bdca6..0000000 +--- a/src/api/resources/assistant/types/PromptResponse.ts ++++ /dev/null +@@ -1,22 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-/** +- * @example +- * { +- * data: { +- * id: "us_pr_YOUR_ID", +- * createdById: "us_usr_YOUR_ID", +- * accountId: "us_acc_YOUR_ID", +- * prompt: "Combine first name and last name into a new column called Full Name", +- * createdAt: new Date("2021-01-01T00:00:00.000Z"), +- * updatedAt: new Date("2021-01-01T00:00:00.000Z") +- * } +- * } +- */ +-export interface PromptResponse { +- data: Flatfile.Prompt; +-} +diff --git a/src/api/resources/assistant/types/PromptsResponse.ts b/src/api/resources/assistant/types/PromptsResponse.ts +deleted file mode 100644 +index 3b59dd1..0000000 +--- a/src/api/resources/assistant/types/PromptsResponse.ts ++++ /dev/null +@@ -1,28 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-/** +- * @example +- * { +- * data: [{ +- * id: "us_pr_YOUR_ID", +- * createdById: "us_usr_YOUR_ID", +- * accountId: "us_acc_YOUR_ID", +- * prompt: "Combine first name and last name into a new column called Full Name", +- * createdAt: new Date("2021-01-01T00:00:00.000Z"), +- * updatedAt: new Date("2021-01-01T00:00:00.000Z") +- * }], +- * pagination: { +- * currentPage: 3, +- * pageCount: 50, +- * totalCount: 100 +- * } +- * } +- */ +-export interface PromptsResponse { +- pagination?: Flatfile.Pagination; +- data: Flatfile.Prompt[]; +-} +diff --git a/src/api/resources/assistant/types/index.ts b/src/api/resources/assistant/types/index.ts +deleted file mode 100644 +index d296f59..0000000 +--- a/src/api/resources/assistant/types/index.ts ++++ /dev/null +@@ -1,5 +0,0 @@ +-export * from "./PromptsResponse"; +-export * from "./PromptResponse"; +-export * from "./PromptPatch"; +-export * from "./PromptCreate"; +-export * from "./Prompt"; +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index b5537ef..d893556 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,5 +54,3 @@ export class Auth { + }, +@@ -132,3 +130,3 @@ export class Auth { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -145,5 +143,3 @@ export class Auth { + }, +@@ -224,3 +220,3 @@ export class Auth { + const { environmentId, type: type_ } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -238,5 +234,3 @@ export class Auth { + }, +@@ -317,3 +311,3 @@ export class Auth { + const { environmentId, key } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -331,5 +325,3 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index f12f921..76de1b3 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -55,3 +55,3 @@ export class Cells { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (fieldKey != null) { +@@ -107,5 +107,3 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index af39943..11191ab 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,5 +50,3 @@ export class Commits { + }, +@@ -133,5 +131,3 @@ export class Commits { + }, +@@ -216,5 +212,3 @@ export class Commits { + }, +diff --git a/src/api/resources/commons/types/Action.ts b/src/api/resources/commons/types/Action.ts +index b853dae..d3c651d 100644 +--- a/src/api/resources/commons/types/Action.ts ++++ b/src/api/resources/commons/types/Action.ts +@@ -26,3 +26,6 @@ import * as Flatfile from "../../.."; + export interface Action { +- /** **This is deprecated. Use `operation` instead.** */ ++ /** ++ * **This is deprecated. Use `operation` instead.** ++ * ++ */ + slug?: string; +@@ -37,3 +40,6 @@ export interface Action { + messages?: Flatfile.ActionMessage[]; +- /** **This is deprecated.** */ ++ /** ++ * **This is deprecated.** ++ * ++ */ + type?: string; +@@ -49,5 +55,11 @@ export interface Action { + icon?: string; +- /** **This is deprecated. Use `constraints` instead.** */ ++ /** ++ * **This is deprecated. Use `constraints` instead.** ++ * ++ */ + requireAllValid?: boolean; +- /** **This is deprecated. Use `constraints` instead.** */ ++ /** ++ * **This is deprecated. Use `constraints` instead.** ++ * ++ */ + requireSelection?: boolean; +diff --git a/src/api/resources/commons/types/ActionMessageType.ts b/src/api/resources/commons/types/ActionMessageType.ts +index 17cafd6..9af6b66 100644 +--- a/src/api/resources/commons/types/ActionMessageType.ts ++++ b/src/api/resources/commons/types/ActionMessageType.ts +@@ -4,6 +4,8 @@ + +-export type ActionMessageType = "error" | "info"; ++export type ActionMessageType = "success" | "error" | "warning" | "info"; + + export const ActionMessageType = { ++ Success: "success", + Error: "error", ++ Warning: "warning", + Info: "info", +diff --git a/src/api/resources/commons/types/PromptId.ts b/src/api/resources/commons/types/PromptId.ts +deleted file mode 100644 +index 03a6eb6..0000000 +--- a/src/api/resources/commons/types/PromptId.ts ++++ /dev/null +@@ -1,11 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Prompt ID +- * +- * @example +- * "us_pr_YOUR_ID" +- */ +-export type PromptId = string; +diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts +index baa887d..d92ca92 100644 +--- a/src/api/resources/commons/types/index.ts ++++ b/src/api/resources/commons/types/index.ts +@@ -24,3 +24,2 @@ export * from "./ProgramId"; + export * from "./FamilyId"; +-export * from "./PromptId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 19ff211..b4ec5c3 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -42,3 +42,3 @@ export class DataRetentionPolicies { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -58,5 +58,3 @@ export class DataRetentionPolicies { + }, +@@ -149,5 +147,3 @@ export class DataRetentionPolicies { + }, +@@ -236,5 +232,3 @@ export class DataRetentionPolicies { + }, +@@ -327,5 +321,3 @@ export class DataRetentionPolicies { + }, +@@ -411,5 +403,3 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 9f8859f..ee19ffc 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,5 +50,3 @@ export class Documents { + }, +@@ -147,5 +145,3 @@ export class Documents { + }, +@@ -237,5 +233,3 @@ export class Documents { + }, +@@ -330,5 +324,3 @@ export class Documents { + }, +@@ -417,5 +409,3 @@ export class Documents { + }, +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 7e392f8..009ccce 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -42,3 +42,3 @@ export class Entitlements { + const { resourceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["resourceId"] = resourceId; +@@ -55,5 +55,3 @@ export class Entitlements { + }, +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 9c2cd5b..3293119 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -31,3 +31,3 @@ export class Environments { + * @example +- * await flatfile.environments.list() ++ * await flatfile.environments.list({}) + */ +@@ -38,3 +38,3 @@ export class Environments { + const { pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -58,5 +58,3 @@ export class Environments { + }, +@@ -128,5 +126,3 @@ export class Environments { + }, +@@ -184,3 +180,3 @@ export class Environments { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -197,5 +193,3 @@ export class Environments { + }, +@@ -284,5 +278,3 @@ export class Environments { + }, +@@ -377,5 +369,3 @@ export class Environments { + }, +@@ -438,5 +428,3 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index fbfafb7..527cc76 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -31,3 +31,3 @@ export class Events { + * @example +- * await flatfile.events.list() ++ * await flatfile.events.list({}) + */ +@@ -38,3 +38,3 @@ export class Events { + const { environmentId, spaceId, domain, topic, since, pageSize, pageNumber, includeAcknowledged } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -82,5 +82,3 @@ export class Events { + }, +@@ -158,5 +156,3 @@ export class Events { + }, +@@ -237,5 +233,3 @@ export class Events { + }, +@@ -289,5 +283,3 @@ export class Events { + }, +@@ -335,3 +327,3 @@ export class Events { + * @example +- * await flatfile.events.getEventToken() ++ * await flatfile.events.getEventToken({}) + */ +@@ -342,3 +334,3 @@ export class Events { + const { scope, spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (scope != null) { +@@ -362,5 +354,3 @@ export class Events { + }, +diff --git a/src/api/resources/events/types/Context.ts b/src/api/resources/events/types/Context.ts +index 72c7314..117acb2 100644 +--- a/src/api/resources/events/types/Context.ts ++++ b/src/api/resources/events/types/Context.ts +@@ -41,3 +41,2 @@ export interface Context { + actorId?: string; +- appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/events/types/Domain.ts b/src/api/resources/events/types/Domain.ts +index faf303e..36b10c1 100644 +--- a/src/api/resources/events/types/Domain.ts ++++ b/src/api/resources/events/types/Domain.ts +@@ -10,3 +10,3 @@ + */ +-export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program" | "secret" | "cron"; ++export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program" | "secret"; + +@@ -21,3 +21,2 @@ export const Domain = { + Secret: "secret", +- Cron: "cron", + } as const; +diff --git a/src/api/resources/events/types/Event.ts b/src/api/resources/events/types/Event.ts +index 20f2d64..1ec89fd 100644 +--- a/src/api/resources/events/types/Event.ts ++++ b/src/api/resources/events/types/Event.ts +@@ -54,3 +54,2 @@ export type Event = + | Flatfile.Event.SheetDeleted +- | Flatfile.Event.SheetCountsUpdated + | Flatfile.Event.SnapshotCreated +@@ -163,6 +162,2 @@ export declare namespace Event { + +- interface SheetCountsUpdated extends Flatfile.GenericEvent { +- topic: "sheet:counts-updated"; +- } +- + interface SnapshotCreated extends Flatfile.GenericEvent { +diff --git a/src/api/resources/events/types/EventTopic.ts b/src/api/resources/events/types/EventTopic.ts +index 589a8a2..9fdb9a0 100644 +--- a/src/api/resources/events/types/EventTopic.ts ++++ b/src/api/resources/events/types/EventTopic.ts +@@ -31,3 +31,2 @@ export type EventTopic = + | "sheet:deleted" +- | "sheet:counts-updated" + | "snapshot:created" +@@ -57,7 +56,3 @@ export type EventTopic = + | "secret:updated" +- | "secret:deleted" +- | "cron:5-minutes" +- | "cron:hourly" +- | "cron:daily" +- | "cron:weekly"; ++ | "secret:deleted"; + +@@ -84,3 +79,2 @@ export const EventTopic = { + SheetDeleted: "sheet:deleted", +- SheetCountsUpdated: "sheet:counts-updated", + SnapshotCreated: "snapshot:created", +@@ -111,6 +105,2 @@ export const EventTopic = { + SecretDeleted: "secret:deleted", +- Cron5Minutes: "cron:5-minutes", +- CronHourly: "cron:hourly", +- CronDaily: "cron:daily", +- CronWeekly: "cron:weekly", + } as const; +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index ef5447a..56633e1 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -35,3 +35,3 @@ export class Files { + const { spaceId, pageSize, pageNumber, mode } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -63,5 +63,3 @@ export class Files { + }, +@@ -137,5 +135,3 @@ export class Files { + }, +@@ -210,5 +206,3 @@ export class Files { + }, +@@ -289,5 +283,3 @@ export class Files { + }, +@@ -378,5 +370,3 @@ export class Files { + }, +@@ -458,5 +448,3 @@ export class Files { + }, +diff --git a/src/api/resources/files/client/requests/ListFilesRequest.ts b/src/api/resources/files/client/requests/ListFilesRequest.ts +index ed26c81..0e99dd4 100644 +--- a/src/api/resources/files/client/requests/ListFilesRequest.ts ++++ b/src/api/resources/files/client/requests/ListFilesRequest.ts +@@ -13,3 +13,3 @@ export interface ListFilesRequest { + /** +- * Number of files to return in a page (default 20) ++ * Number of jobs to return in a page (default 20) + */ +@@ -17,3 +17,3 @@ export interface ListFilesRequest { + /** +- * Based on pageSize, which page of files to return ++ * Based on pageSize, which page of jobs to return + */ +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +deleted file mode 100644 +index 9020138..0000000 +--- a/src/api/resources/foreigndb/client/Client.ts ++++ /dev/null +@@ -1,457 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as environments from "../../../../environments"; +-import * as core from "../../../../core"; +-import * as Flatfile from "../../.."; +-import * as serializers from "../../../../serialization"; +-import urlJoin from "url-join"; +-import * as errors from "../../../../errors"; +- +-export declare namespace Foreigndb { +- interface Options { +- environment?: core.Supplier; +- token?: core.Supplier; +- fetcher?: core.FetchFunction; +- } +- +- interface RequestOptions { +- timeoutInSeconds?: number; +- maxRetries?: number; +- } +-} +- +-export class Foreigndb { +- constructor(protected readonly _options: Foreigndb.Options = {}) {} +- +- /** +- * Restore a database from a backup +- * @throws {@link Flatfile.BadRequestError} +- * @throws {@link Flatfile.NotFoundError} +- */ +- public async restore( +- workbookId: string, +- request: Flatfile.RestoreDatabaseRequest, +- requestOptions?: Foreigndb.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/foreigndb/${workbookId}` +- ), +- method: "POST", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.RestoreDatabaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.RestoreDatabaseResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- switch (_response.error.statusCode) { +- case 400: +- throw new Flatfile.BadRequestError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- case 404: +- throw new Flatfile.NotFoundError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- default: +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Get database user credentials +- * @throws {@link Flatfile.BadRequestError} +- * @throws {@link Flatfile.NotFoundError} +- */ +- public async getDatabaseUser( +- workbookId: string, +- requestOptions?: Foreigndb.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/foreigndb/${workbookId}/user` +- ), +- method: "GET", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.GetDatabaseUserResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- switch (_response.error.statusCode) { +- case 400: +- throw new Flatfile.BadRequestError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- case 404: +- throw new Flatfile.NotFoundError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- default: +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Get the database information +- * @throws {@link Flatfile.BadRequestError} +- * @throws {@link Flatfile.NotFoundError} +- */ +- public async getDatabaseInfo( +- workbookId: string, +- requestOptions?: Foreigndb.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/foreigndb/${workbookId}` +- ), +- method: "GET", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.GetDatabaseResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- switch (_response.error.statusCode) { +- case 400: +- throw new Flatfile.BadRequestError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- case 404: +- throw new Flatfile.NotFoundError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- default: +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Delete the database +- * @throws {@link Flatfile.BadRequestError} +- * @throws {@link Flatfile.NotFoundError} +- */ +- public async deleteDatabase( +- workbookId: string, +- requestOptions?: Foreigndb.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/foreigndb/${workbookId}` +- ), +- method: "DELETE", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.Success.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- switch (_response.error.statusCode) { +- case 400: +- throw new Flatfile.BadRequestError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- case 404: +- throw new Flatfile.NotFoundError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- default: +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Persist a file in s3 object storage +- * @throws {@link Flatfile.BadRequestError} +- * @throws {@link Flatfile.NotFoundError} +- */ +- public async upload( +- workbookId: string, +- request: Flatfile.UploadToObjectStorageRequest, +- requestOptions?: Foreigndb.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/foreigndb/${workbookId}/storage` +- ), +- method: "POST", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.UploadToObjectStorageRequest.jsonOrThrow(request, { +- unrecognizedObjectKeys: "strip", +- }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.Success.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- switch (_response.error.statusCode) { +- case 400: +- throw new Flatfile.BadRequestError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- case 404: +- throw new Flatfile.NotFoundError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- default: +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- protected async _getAuthorizationHeader() { +- const bearer = await core.Supplier.get(this._options.token); +- if (bearer != null) { +- return `Bearer ${bearer}`; +- } +- +- return undefined; +- } +-} +diff --git a/src/api/resources/foreigndb/client/index.ts b/src/api/resources/foreigndb/client/index.ts +deleted file mode 100644 +index cb0ff5c..0000000 +--- a/src/api/resources/foreigndb/client/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export {}; +diff --git a/src/api/resources/foreigndb/index.ts b/src/api/resources/foreigndb/index.ts +deleted file mode 100644 +index c9240f8..0000000 +--- a/src/api/resources/foreigndb/index.ts ++++ /dev/null +@@ -1,2 +0,0 @@ +-export * from "./types"; +-export * from "./client"; +diff --git a/src/api/resources/foreigndb/types/DatabaseTask.ts b/src/api/resources/foreigndb/types/DatabaseTask.ts +deleted file mode 100644 +index 2ef7873..0000000 +--- a/src/api/resources/foreigndb/types/DatabaseTask.ts ++++ /dev/null +@@ -1,15 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Properties of a database task +- */ +-export interface DatabaseTask { +- /** The task status */ +- status: string; +- /** The task type */ +- type: string; +- /** The task progress */ +- progress: number; +-} +diff --git a/src/api/resources/foreigndb/types/GetDatabaseResponse.ts b/src/api/resources/foreigndb/types/GetDatabaseResponse.ts +deleted file mode 100644 +index f492c2d..0000000 +--- a/src/api/resources/foreigndb/types/GetDatabaseResponse.ts ++++ /dev/null +@@ -1,9 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-export interface GetDatabaseResponse { +- task: Flatfile.DatabaseTask; +-} +diff --git a/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts b/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts +deleted file mode 100644 +index d0208fb..0000000 +--- a/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts ++++ /dev/null +@@ -1,13 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Properties of the database user +- */ +-export interface GetDatabaseUserResponse { +- /** the database user username */ +- username: string; +- /** the database user password */ +- password: string; +-} +diff --git a/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts b/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts +deleted file mode 100644 +index 18c0c10..0000000 +--- a/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts ++++ /dev/null +@@ -1,11 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Properties required to restore a database +- */ +-export interface RestoreDatabaseRequest { +- /** the fileId of the backup to be restored */ +- fileId: string; +-} +diff --git a/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts b/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts +deleted file mode 100644 +index a4a1fe1..0000000 +--- a/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts ++++ /dev/null +@@ -1,15 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Properties of a restored database +- */ +-export interface RestoreDatabaseResponse { +- /** the host to the restored database */ +- host: string; +- /** the port to the restored database */ +- port: number; +- /** the database name to the restored database */ +- dbname: string; +-} +diff --git a/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts b/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts +deleted file mode 100644 +index 52d0ce8..0000000 +--- a/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts ++++ /dev/null +@@ -1,11 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Properties required to upload a file to object storage +- */ +-export interface UploadToObjectStorageRequest { +- /** the ID of the file to send to object storage */ +- fileId: string; +-} +diff --git a/src/api/resources/foreigndb/types/index.ts b/src/api/resources/foreigndb/types/index.ts +deleted file mode 100644 +index 8086286..0000000 +--- a/src/api/resources/foreigndb/types/index.ts ++++ /dev/null +@@ -1,6 +0,0 @@ +-export * from "./UploadToObjectStorageRequest"; +-export * from "./RestoreDatabaseRequest"; +-export * from "./RestoreDatabaseResponse"; +-export * from "./GetDatabaseResponse"; +-export * from "./DatabaseTask"; +-export * from "./GetDatabaseUserResponse"; +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index d0dbe13..08aedde 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -40,3 +40,3 @@ export class Guests { + const { spaceId, email } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["spaceId"] = spaceId; +@@ -57,5 +57,3 @@ export class Guests { + }, +@@ -130,5 +128,3 @@ export class Guests { + }, +@@ -192,5 +188,3 @@ export class Guests { + }, +@@ -250,5 +244,3 @@ export class Guests { + }, +@@ -315,5 +307,3 @@ export class Guests { + }, +@@ -360,3 +350,3 @@ export class Guests { + * @example +- * await flatfile.guests.getGuestToken("us_g_YOUR_ID") ++ * await flatfile.guests.getGuestToken("us_g_YOUR_ID", {}) + */ +@@ -368,3 +358,3 @@ export class Guests { + const { spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -384,5 +374,3 @@ export class Guests { + }, +@@ -446,5 +434,3 @@ export class Guests { + }, +@@ -541,5 +527,3 @@ export class Guests { + }, +@@ -639,5 +623,3 @@ export class Guests { + }, +@@ -735,5 +717,3 @@ export class Guests { + }, +diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts +index 21a77dd..080ee96 100644 +--- a/src/api/resources/index.ts ++++ b/src/api/resources/index.ts +@@ -1,3 +1 @@ +-export * as accounts from "./accounts"; +-export * from "./accounts/types"; + export * as agents from "./agents"; +@@ -6,4 +4,2 @@ export * as apps from "./apps"; + export * from "./apps/types"; +-export * as assistant from "./assistant"; +-export * from "./assistant/types"; + export * as auth from "./auth"; +@@ -28,4 +24,2 @@ export * as files from "./files"; + export * from "./files/types"; +-export * as foreigndb from "./foreigndb"; +-export * from "./foreigndb/types"; + export * as guests from "./guests"; +@@ -58,3 +52,2 @@ export * from "./commons/errors"; + export * from "./agents/client/requests"; +-export * from "./assistant/client/requests"; + export * from "./auth/client/requests"; +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 3875433..e06acc2 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -32,3 +32,3 @@ export class Jobs { + const { environmentId, spaceId, workbookId, fileId, parentId, pageSize, pageNumber, sortDirection } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -76,5 +76,3 @@ export class Jobs { + }, +@@ -132,5 +130,3 @@ export class Jobs { + }, +@@ -185,5 +181,3 @@ export class Jobs { + }, +@@ -241,5 +235,3 @@ export class Jobs { + }, +@@ -294,5 +286,3 @@ export class Jobs { + }, +@@ -352,5 +342,3 @@ export class Jobs { + }, +@@ -413,5 +401,3 @@ export class Jobs { + }, +@@ -512,5 +498,3 @@ export class Jobs { + }, +@@ -572,5 +556,3 @@ export class Jobs { + }, +@@ -641,5 +623,3 @@ export class Jobs { + }, +@@ -706,5 +686,3 @@ export class Jobs { + }, +@@ -780,5 +758,3 @@ export class Jobs { + }, +@@ -858,5 +834,3 @@ export class Jobs { + }, +@@ -926,5 +900,3 @@ export class Jobs { + }, +@@ -985,5 +957,3 @@ export class Jobs { + }, +@@ -1043,5 +1013,3 @@ export class Jobs { + }, +@@ -1089,3 +1057,2 @@ export class Jobs { + * await flatfile.jobs.split("us_jb_YOUR_ID", { +- * parts: [{}], + * runInParallel: true +@@ -1109,5 +1076,3 @@ export class Jobs { + }, +diff --git a/src/api/resources/jobs/types/ExportOptions.ts b/src/api/resources/jobs/types/ExportOptions.ts +index 76b5ada..fb0af40 100644 +--- a/src/api/resources/jobs/types/ExportOptions.ts ++++ b/src/api/resources/jobs/types/ExportOptions.ts +@@ -25,3 +25,6 @@ export interface ExportOptions { + q?: string; +- /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ ++ /** ++ * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records ++ * ++ */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts b/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts +index 21d5ec0..ccd853a 100644 +--- a/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts ++++ b/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts +@@ -17,3 +17,6 @@ export interface FindAndReplaceJobConfig { + q?: string; +- /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ ++ /** ++ * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records ++ * ++ */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/jobs/types/Job.ts b/src/api/resources/jobs/types/Job.ts +index b97c5de..7aba335 100644 +--- a/src/api/resources/jobs/types/Job.ts ++++ b/src/api/resources/jobs/types/Job.ts +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: {}, ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobPlan.ts b/src/api/resources/jobs/types/JobPlan.ts +index 93db0fa..3702174 100644 +--- a/src/api/resources/jobs/types/JobPlan.ts ++++ b/src/api/resources/jobs/types/JobPlan.ts +@@ -22,3 +22,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: {}, ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobPlanResponse.ts b/src/api/resources/jobs/types/JobPlanResponse.ts +index f37035f..40723bb 100644 +--- a/src/api/resources/jobs/types/JobPlanResponse.ts ++++ b/src/api/resources/jobs/types/JobPlanResponse.ts +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: {}, ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobResponse.ts b/src/api/resources/jobs/types/JobResponse.ts +index f1c5ff8..eb4b4ab 100644 +--- a/src/api/resources/jobs/types/JobResponse.ts ++++ b/src/api/resources/jobs/types/JobResponse.ts +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: {}, ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobSplitDetails.ts b/src/api/resources/jobs/types/JobSplitDetails.ts +index 961e31c..fd46de6 100644 +--- a/src/api/resources/jobs/types/JobSplitDetails.ts ++++ b/src/api/resources/jobs/types/JobSplitDetails.ts +@@ -11,3 +11,2 @@ import * as Flatfile from "../../.."; + * { +- * parts: [{}], + * runInParallel: true +diff --git a/src/api/resources/jobs/types/JobUpdate.ts b/src/api/resources/jobs/types/JobUpdate.ts +index afaa7a5..0f938e5 100644 +--- a/src/api/resources/jobs/types/JobUpdate.ts ++++ b/src/api/resources/jobs/types/JobUpdate.ts +@@ -11,3 +11,3 @@ import * as Flatfile from "../../.."; + * { +- * config: {}, ++ * config: undefined, + * status: Flatfile.JobStatus.Complete, +diff --git a/src/api/resources/jobs/types/ListJobsResponse.ts b/src/api/resources/jobs/types/ListJobsResponse.ts +index 2df4075..eb997d2 100644 +--- a/src/api/resources/jobs/types/ListJobsResponse.ts ++++ b/src/api/resources/jobs/types/ListJobsResponse.ts +@@ -25,3 +25,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: {}, ++ * config: undefined, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/MutateJobConfig.ts b/src/api/resources/jobs/types/MutateJobConfig.ts +index 2abb49e..a95fa04 100644 +--- a/src/api/resources/jobs/types/MutateJobConfig.ts ++++ b/src/api/resources/jobs/types/MutateJobConfig.ts +@@ -12,4 +12,2 @@ export interface MutateJobConfig { + mutationId?: string; +- /** If specified, a snapshot will be generated with this label */ +- snapshotLabel?: string; + filter?: Flatfile.Filter; +@@ -19,3 +17,6 @@ export interface MutateJobConfig { + q?: string; +- /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ ++ /** ++ * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records ++ * ++ */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 370f737..3227841 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,5 +47,3 @@ export class Mapping { + }, +@@ -128,5 +126,3 @@ export class Mapping { + }, +@@ -211,3 +207,3 @@ export class Mapping { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -263,5 +259,3 @@ export class Mapping { + }, +@@ -337,5 +331,3 @@ export class Mapping { + }, +@@ -421,5 +413,3 @@ export class Mapping { + }, +@@ -505,5 +495,3 @@ export class Mapping { + }, +@@ -589,5 +577,3 @@ export class Mapping { + }, +@@ -676,5 +662,3 @@ export class Mapping { + }, +@@ -765,5 +749,3 @@ export class Mapping { + }, +@@ -859,5 +841,3 @@ export class Mapping { + }, +@@ -944,5 +924,3 @@ export class Mapping { + }, +@@ -1034,5 +1012,3 @@ export class Mapping { + }, +diff --git a/src/api/resources/property/types/EnumPropertyOption.ts b/src/api/resources/property/types/EnumPropertyOption.ts +index 632ac14..8586459 100644 +--- a/src/api/resources/property/types/EnumPropertyOption.ts ++++ b/src/api/resources/property/types/EnumPropertyOption.ts +@@ -15,3 +15,3 @@ export interface EnumPropertyOption { + meta?: Record; +- /** The value or ID of this option. This value will be sent in egress. The type is a string | integer | boolean. */ ++ /** The value or ID of this option. This value will be sent in egress. The type is a string | integer | boolean. */ + value?: any; +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 160d562..6145d27 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -33,3 +33,3 @@ export class Records { + * @example +- * await flatfile.records.get("us_sh_YOUR_ID") ++ * await flatfile.records.get("us_sh_YOUR_ID", {}) + */ +@@ -61,3 +61,3 @@ export class Records { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -153,5 +153,3 @@ export class Records { + }, +@@ -229,3 +227,3 @@ export class Records { + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -234,3 +232,3 @@ export class Records { + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -239,3 +237,3 @@ export class Records { + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +@@ -264,5 +262,3 @@ export class Records { + }, +@@ -336,3 +332,3 @@ export class Records { + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -341,3 +337,3 @@ export class Records { + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -346,3 +342,3 @@ export class Records { + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +@@ -368,5 +364,3 @@ export class Records { + }, +@@ -448,3 +442,3 @@ export class Records { + const { ids } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (Array.isArray(ids)) { +@@ -466,5 +460,3 @@ export class Records { + }, +@@ -543,4 +535,4 @@ export class Records { + ): Promise { +- const { filter, filterField, searchValue, searchField, ids, q, ..._body } = request; +- const _queryParams: Record = {}; ++ const { filter, filterField, searchValue, searchField, ids, ..._body } = request; ++ const _queryParams: Record = {}; + if (filter != null) { +@@ -569,6 +561,2 @@ export class Records { + +- if (q != null) { +- _queryParams["q"] = q; +- } +- + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -584,5 +572,3 @@ export class Records { + }, +diff --git a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index 768efa5..c8bc80f 100644 +--- a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -22,8 +22,5 @@ export interface FindAndReplaceRecordRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records ++ * + */ + ids?: Flatfile.RecordId | Flatfile.RecordId[]; +- /** +- * An FFQL query used to filter the result set +- */ +- q?: string; + /** A value to find for a given field in a sheet. For exact matches, wrap the value in double quotes ("Bob") */ +diff --git a/src/api/resources/records/client/requests/GetRecordsRequest.ts b/src/api/resources/records/client/requests/GetRecordsRequest.ts +index ffd839d..b1cbba2 100644 +--- a/src/api/resources/records/client/requests/GetRecordsRequest.ts ++++ b/src/api/resources/records/client/requests/GetRecordsRequest.ts +@@ -32,2 +32,3 @@ export interface GetRecordsRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records. Maximum of 100 allowed. ++ * + */ +@@ -35,3 +36,3 @@ export interface GetRecordsRequest { + /** +- * Number of records to return in a page (default 10,000) ++ * Number of records to return in a page (default 1000 if pageNumber included) + */ +@@ -39,3 +40,3 @@ export interface GetRecordsRequest { + /** +- * Based on pageSize, which page of records to return (Note - numbers start at 1) ++ * Based on pageSize, which page of records to return + */ +diff --git a/src/api/resources/records/types/DiffRecord.ts b/src/api/resources/records/types/DiffRecord.ts +index 432c94f..cd297a6 100644 +--- a/src/api/resources/records/types/DiffRecord.ts ++++ b/src/api/resources/records/types/DiffRecord.ts +@@ -12,12 +12,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: "John", +- * value: "Johns" ++ * snapshotValue: undefined, ++ * value: undefined + * }, + * "lastName": { +- * snapshotValue: "Doe", +- * value: "Does" ++ * snapshotValue: undefined, ++ * value: undefined + * }, + * "email": { +- * snapshotValue: "john.doe@example.com", +- * value: "john.doe@example.com" ++ * snapshotValue: undefined, ++ * value: undefined + * } +diff --git a/src/api/resources/records/types/DiffRecords.ts b/src/api/resources/records/types/DiffRecords.ts +index 9c4e428..9d9bf91 100644 +--- a/src/api/resources/records/types/DiffRecords.ts ++++ b/src/api/resources/records/types/DiffRecords.ts +@@ -14,12 +14,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: "John", +- * value: "Johns" ++ * snapshotValue: undefined, ++ * value: undefined + * }, + * "lastName": { +- * snapshotValue: "Doe", +- * value: "Does" ++ * snapshotValue: undefined, ++ * value: undefined + * }, + * "email": { +- * snapshotValue: "john.doe@example.com", +- * value: "john.doe@example.com" ++ * snapshotValue: undefined, ++ * value: undefined + * } +diff --git a/src/api/resources/records/types/DiffRecordsResponse.ts b/src/api/resources/records/types/DiffRecordsResponse.ts +index 0bc082d..2f1a25d 100644 +--- a/src/api/resources/records/types/DiffRecordsResponse.ts ++++ b/src/api/resources/records/types/DiffRecordsResponse.ts +@@ -13,12 +13,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: "John", +- * value: "Johns" ++ * snapshotValue: undefined, ++ * value: undefined + * }, + * "lastName": { +- * snapshotValue: "Doe", +- * value: "Does" ++ * snapshotValue: undefined, ++ * value: undefined + * }, + * "email": { +- * snapshotValue: "john.doe@example.com", +- * value: "john.doe@example.com" ++ * snapshotValue: undefined, ++ * value: undefined + * } +diff --git a/src/api/resources/records/types/GetRecordsResponse.ts b/src/api/resources/records/types/GetRecordsResponse.ts +index 1dc2898..160b2ba 100644 +--- a/src/api/resources/records/types/GetRecordsResponse.ts ++++ b/src/api/resources/records/types/GetRecordsResponse.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/GetRecordsResponseData.ts b/src/api/resources/records/types/GetRecordsResponseData.ts +index 258b428..df58c87 100644 +--- a/src/api/resources/records/types/GetRecordsResponseData.ts ++++ b/src/api/resources/records/types/GetRecordsResponseData.ts +@@ -15,3 +15,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -27,3 +27,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordBase.ts b/src/api/resources/records/types/RecordBase.ts +index d19d0f7..ab2ae97 100644 +--- a/src/api/resources/records/types/RecordBase.ts ++++ b/src/api/resources/records/types/RecordBase.ts +@@ -21,5 +21,3 @@ export interface RecordBase { + commitId?: Flatfile.CommitId; +- /** Auto-generated value based on whether the record contains a field with an error message. Cannot be set via the API. */ + valid?: boolean; +- /** This record level `messages` property is deprecated and no longer stored or used. Use the `messages` property on the individual cell values instead. This property will be removed in a future release. */ + messages?: Flatfile.ValidationMessage[]; +diff --git a/src/api/resources/records/types/RecordData.ts b/src/api/resources/records/types/RecordData.ts +index d629418..6860670 100644 +--- a/src/api/resources/records/types/RecordData.ts ++++ b/src/api/resources/records/types/RecordData.ts +@@ -12,3 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -17,3 +17,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -22,3 +22,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordDataWithLinks.ts b/src/api/resources/records/types/RecordDataWithLinks.ts +index 103aed2..0005027 100644 +--- a/src/api/resources/records/types/RecordDataWithLinks.ts ++++ b/src/api/resources/records/types/RecordDataWithLinks.ts +@@ -12,3 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -18,3 +18,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -24,3 +24,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +@@ -34,3 +34,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "Suzie", ++ * value: undefined, + * messages: [], +@@ -40,3 +40,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Q", ++ * value: undefined, + * messages: [], +@@ -46,3 +46,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "suzie.q@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordWithLinks.ts b/src/api/resources/records/types/RecordWithLinks.ts +index 50a1103..267987a 100644 +--- a/src/api/resources/records/types/RecordWithLinks.ts ++++ b/src/api/resources/records/types/RecordWithLinks.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +@@ -41,3 +41,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "Suzie", ++ * value: undefined, + * messages: [], +@@ -47,3 +47,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Q", ++ * value: undefined, + * messages: [], +@@ -53,3 +53,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "suzie.q@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/Record_.ts b/src/api/resources/records/types/Record_.ts +index 8b0eb8f..bd6b1e4 100644 +--- a/src/api/resources/records/types/Record_.ts ++++ b/src/api/resources/records/types/Record_.ts +@@ -16,3 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/Records.ts b/src/api/resources/records/types/Records.ts +index c3a2de0..ac4adbd 100644 +--- a/src/api/resources/records/types/Records.ts ++++ b/src/api/resources/records/types/Records.ts +@@ -16,3 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordsResponse.ts b/src/api/resources/records/types/RecordsResponse.ts +index 022aa70..c1add59 100644 +--- a/src/api/resources/records/types/RecordsResponse.ts ++++ b/src/api/resources/records/types/RecordsResponse.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordsResponseData.ts b/src/api/resources/records/types/RecordsResponseData.ts +index 867ed54..ef6f3a8 100644 +--- a/src/api/resources/records/types/RecordsResponseData.ts ++++ b/src/api/resources/records/types/RecordsResponseData.ts +@@ -13,3 +13,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -19,3 +19,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -25,3 +25,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/records/types/RecordsWithLinks.ts b/src/api/resources/records/types/RecordsWithLinks.ts +index a3e1374..1bb3f2a 100644 +--- a/src/api/resources/records/types/RecordsWithLinks.ts ++++ b/src/api/resources/records/types/RecordsWithLinks.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: "John", ++ * value: undefined, + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: "Smith", ++ * value: undefined, + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: "john.smith@example.com", ++ * value: undefined, + * messages: [], +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 09604a8..502f87e 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,5 +42,3 @@ export class Roles { + }, +diff --git a/src/api/resources/roles/types/AssignActorRoleRequest.ts b/src/api/resources/roles/types/AssignActorRoleRequest.ts +index 2083319..9ee92d0 100644 +--- a/src/api/resources/roles/types/AssignActorRoleRequest.ts ++++ b/src/api/resources/roles/types/AssignActorRoleRequest.ts +@@ -6,15 +6,2 @@ import * as Flatfile from "../../.."; + +-/** +- * @example +- * { +- * roleId: "us_rol_YOUR_ID", +- * resourceId: "us_acc_YOUR_ID" +- * } +- * +- * @example +- * { +- * roleId: "us_rol_YOUR_ID", +- * resourceId: "us_env_YOUR_ID" +- * } +- */ + export interface AssignActorRoleRequest { +diff --git a/src/api/resources/roles/types/ResourceIdUnion.ts b/src/api/resources/roles/types/ResourceIdUnion.ts +index 627781c..cc12385 100644 +--- a/src/api/resources/roles/types/ResourceIdUnion.ts ++++ b/src/api/resources/roles/types/ResourceIdUnion.ts +@@ -6,12 +6,2 @@ import * as Flatfile from "../../.."; + +-/** +- * @example +- * "us_acc_YOUR_ID" +- * +- * @example +- * "us_env_YOUR_ID" +- * +- * @example +- * "us_sp_YOUR_ID" +- */ + export type ResourceIdUnion = Flatfile.AccountId | Flatfile.EnvironmentId | Flatfile.SpaceId; +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 1ade8af..42920a5 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -42,3 +42,3 @@ export class Secrets { + const { environmentId, spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -62,5 +62,3 @@ export class Secrets { + }, +@@ -154,5 +152,3 @@ export class Secrets { + }, +@@ -241,5 +237,3 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 0b478a8..1212443 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -41,3 +41,3 @@ export class Sheets { + const { workbookId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["workbookId"] = workbookId; +@@ -54,5 +54,3 @@ export class Sheets { + }, +@@ -116,5 +114,3 @@ export class Sheets { + }, +@@ -176,5 +172,3 @@ export class Sheets { + }, +@@ -262,5 +256,3 @@ export class Sheets { + }, +@@ -346,3 +338,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -406,5 +398,3 @@ export class Sheets { + }, +@@ -467,3 +457,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -519,5 +509,3 @@ export class Sheets { + }, +@@ -581,5 +569,3 @@ export class Sheets { + }, +@@ -649,3 +635,3 @@ export class Sheets { + * @example +- * await flatfile.sheets.getSheetCommits("us_sh_YOUR_ID") ++ * await flatfile.sheets.getSheetCommits("us_sh_YOUR_ID", {}) + */ +@@ -657,3 +643,3 @@ export class Sheets { + const { completed } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (completed != null) { +@@ -673,5 +659,3 @@ export class Sheets { + }, +@@ -737,5 +721,3 @@ export class Sheets { + }, +@@ -823,5 +805,3 @@ export class Sheets { + }, +@@ -914,3 +894,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (fieldKey != null) { +@@ -966,5 +946,3 @@ export class Sheets { + }, +diff --git a/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts b/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts +index 87868cc..7a0fc11 100644 +--- a/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts ++++ b/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts +@@ -12,3 +12,3 @@ export interface GetRecordsCsvRequest { + /** +- * Returns records that were changed in that version in that version and only those records. ++ * Returns records that were changed in that version in that version and only those records. + */ +@@ -49,2 +49,3 @@ export interface GetRecordsCsvRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records ++ * + */ +diff --git a/src/api/resources/sheets/types/ListSheetsResponse.ts b/src/api/resources/sheets/types/ListSheetsResponse.ts +index bda1bce..47b24a6 100644 +--- a/src/api/resources/sheets/types/ListSheetsResponse.ts ++++ b/src/api/resources/sheets/types/ListSheetsResponse.ts +@@ -32,2 +32,7 @@ import * as Flatfile from "../../.."; + * }, ++ * countRecords: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/sheets/types/Sheet.ts b/src/api/resources/sheets/types/Sheet.ts +index be4c96a..2b97e88 100644 +--- a/src/api/resources/sheets/types/Sheet.ts ++++ b/src/api/resources/sheets/types/Sheet.ts +@@ -33,2 +33,7 @@ import * as Flatfile from "../../.."; + * }, ++ * countRecords: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * lockedBy: "Example0", +@@ -49,2 +54,4 @@ export interface Sheet { + config: Flatfile.SheetConfig; ++ /** The amount of records in the Sheet. */ ++ countRecords?: Flatfile.RecordCounts; + /** The scoped namespace of the Sheet. */ +@@ -59,4 +66,2 @@ export interface Sheet { + lockedAt?: Date; +- /** The precomputed counts of records in the Sheet (may not exist). */ +- recordCounts?: Flatfile.RecordCounts; + } +diff --git a/src/api/resources/sheets/types/SheetConfigUpdate.ts b/src/api/resources/sheets/types/SheetConfigUpdate.ts +index 3d52577..34a1f0a 100644 +--- a/src/api/resources/sheets/types/SheetConfigUpdate.ts ++++ b/src/api/resources/sheets/types/SheetConfigUpdate.ts +@@ -14,3 +14,3 @@ export interface SheetConfigUpdate { + description?: string; +- /** A unique identifier for your Sheet. **Required when updating a Workbook.** */ ++ /** A unique identifier for your Sheet. */ + slug?: string; +diff --git a/src/api/resources/sheets/types/SheetResponse.ts b/src/api/resources/sheets/types/SheetResponse.ts +index 32cb1d3..037d224 100644 +--- a/src/api/resources/sheets/types/SheetResponse.ts ++++ b/src/api/resources/sheets/types/SheetResponse.ts +@@ -32,2 +32,7 @@ import * as Flatfile from "../../.."; + * }, ++ * countRecords: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/sheets/types/SheetUpdate.ts b/src/api/resources/sheets/types/SheetUpdate.ts +index 89a1d96..d89b3a0 100644 +--- a/src/api/resources/sheets/types/SheetUpdate.ts ++++ b/src/api/resources/sheets/types/SheetUpdate.ts +@@ -16,2 +16,4 @@ export interface SheetUpdate { + config?: Flatfile.SheetConfig; ++ /** The amount of records in the Sheet. */ ++ countRecords?: Flatfile.RecordCounts; + /** The scoped namespace of the Sheet. */ +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index f45e5c6..b87be19 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,5 +53,3 @@ export class Snapshots { + }, +@@ -132,3 +130,3 @@ export class Snapshots { + const { sheetId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["sheetId"] = sheetId; +@@ -145,5 +143,3 @@ export class Snapshots { + }, +@@ -225,3 +221,3 @@ export class Snapshots { + const { includeSummary } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["includeSummary"] = includeSummary.toString(); +@@ -238,5 +234,3 @@ export class Snapshots { + }, +@@ -325,5 +319,3 @@ export class Snapshots { + }, +@@ -416,5 +408,3 @@ export class Snapshots { + }, +@@ -503,3 +493,3 @@ export class Snapshots { + const { pageSize, pageNumber, changeType } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -527,5 +517,3 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 2870146..51922c8 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -51,3 +51,3 @@ export class Spaces { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -99,5 +99,3 @@ export class Spaces { + }, +@@ -160,3 +158,3 @@ export class Spaces { + * await flatfile.spaces.create({ +- * name: "My First Workbook", ++ * name: "My First Worbook", + * displayOrder: 1, +@@ -181,5 +179,3 @@ export class Spaces { + }, +@@ -268,5 +264,3 @@ export class Spaces { + }, +@@ -351,5 +345,3 @@ export class Spaces { + }, +@@ -421,3 +413,3 @@ export class Spaces { + * await flatfile.spaces.bulkDelete({ +- * spaceIds: "us_sp_YOUR_ID" ++ * ids: "us_sp_YOUR_ID" + * }) +@@ -428,8 +420,8 @@ export class Spaces { + ): Promise { +- const { spaceIds } = request; +- const _queryParams: Record = {}; +- if (Array.isArray(spaceIds)) { +- _queryParams["spaceIds"] = spaceIds.map((item) => item); ++ const { ids } = request; ++ const _queryParams: Record = {}; ++ if (Array.isArray(ids)) { ++ _queryParams["ids"] = ids.map((item) => item); + } else { +- _queryParams["spaceIds"] = spaceIds; ++ _queryParams["ids"] = ids; + } +@@ -447,5 +439,3 @@ export class Spaces { + }, +@@ -537,5 +527,3 @@ export class Spaces { + }, +@@ -624,5 +612,3 @@ export class Spaces { + }, +@@ -687,86 +673,2 @@ export class Spaces { + +- /** +- * @throws {@link Flatfile.BadRequestError} +- * @throws {@link Flatfile.NotFoundError} +- */ +- public async upgrade( +- spaceId: Flatfile.SpaceId, +- request: Flatfile.UpgradeSpaceConfig, +- requestOptions?: Spaces.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `/spaces/${await serializers.SpaceId.jsonOrThrow(spaceId)}/upgrade` +- ), +- method: "POST", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.UpgradeSpaceConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.SpaceResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- switch (_response.error.statusCode) { +- case 400: +- throw new Flatfile.BadRequestError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- case 404: +- throw new Flatfile.NotFoundError( +- await serializers.Errors.parseOrThrow(_response.error.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }) +- ); +- default: +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- + protected async _getAuthorizationHeader() { +diff --git a/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts b/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts +index 01df630..5f4641f 100644 +--- a/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts ++++ b/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts +@@ -9,3 +9,3 @@ import * as Flatfile from "../../../.."; + * { +- * spaceIds: "us_sp_YOUR_ID" ++ * ids: "us_sp_YOUR_ID" + * } +@@ -16,3 +16,3 @@ export interface DeleteSpacesRequest { + */ +- spaceIds: Flatfile.SpaceId | Flatfile.SpaceId[]; ++ ids: Flatfile.SpaceId | Flatfile.SpaceId[]; + } +diff --git a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +index 12d7903..8157112 100644 +--- a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -21,4 +21,2 @@ export interface InternalSpaceConfigBase { + archivedAt?: Date; +- /** The ID of the App that space is associated with */ +- appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/spaces/types/ListSpacesResponse.ts b/src/api/resources/spaces/types/ListSpacesResponse.ts +index e5054a0..4b64c0c 100644 +--- a/src/api/resources/spaces/types/ListSpacesResponse.ts ++++ b/src/api/resources/spaces/types/ListSpacesResponse.ts +@@ -31,3 +31,4 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [] ++ * labels: [], ++ * metadata: undefined + * }] +diff --git a/src/api/resources/spaces/types/Space.ts b/src/api/resources/spaces/types/Space.ts +index ae76874..fac6065 100644 +--- a/src/api/resources/spaces/types/Space.ts ++++ b/src/api/resources/spaces/types/Space.ts +@@ -25,3 +25,4 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [] ++ * labels: [], ++ * metadata: undefined + * } +@@ -44,3 +45,4 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [] ++ * labels: [], ++ * metadata: undefined + * } +@@ -62,3 +64,3 @@ export interface Space extends Flatfile.InternalSpaceConfigBase { + expiredAt?: Date; +- /** This date marks the most recent activity within the space, tracking actions to the second. Activities include creating or updating records in a sheet, uploading files, or modifying a workbook's configuration. */ ++ /** Date that the last activity in the space occurred. This could include any create or update activity in the space like adding a record to a sheet, uploading a new file, or updating the configuration of a workbook. This date is only tracked to the precision of a day. */ + lastActivityAt?: Date; +diff --git a/src/api/resources/spaces/types/SpaceConfig.ts b/src/api/resources/spaces/types/SpaceConfig.ts +index 67f6c9a..f6a04ef 100644 +--- a/src/api/resources/spaces/types/SpaceConfig.ts ++++ b/src/api/resources/spaces/types/SpaceConfig.ts +@@ -11,3 +11,3 @@ import * as Flatfile from "../../.."; + * { +- * name: "My First Workbook", ++ * name: "My First Worbook", + * displayOrder: 1, +diff --git a/src/api/resources/spaces/types/SpaceResponse.ts b/src/api/resources/spaces/types/SpaceResponse.ts +index b32fe6e..155e02c 100644 +--- a/src/api/resources/spaces/types/SpaceResponse.ts ++++ b/src/api/resources/spaces/types/SpaceResponse.ts +@@ -24,3 +24,4 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [] ++ * labels: [], ++ * metadata: undefined + * } +@@ -45,3 +46,4 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [] ++ * labels: [], ++ * metadata: undefined + * } +diff --git a/src/api/resources/spaces/types/UpgradeSpaceConfig.ts b/src/api/resources/spaces/types/UpgradeSpaceConfig.ts +deleted file mode 100644 +index e93020d..0000000 +--- a/src/api/resources/spaces/types/UpgradeSpaceConfig.ts ++++ /dev/null +@@ -1,10 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-/** +- * Properties used to upgrade a space +- */ +-export interface UpgradeSpaceConfig { +- id: string; +-} +diff --git a/src/api/resources/spaces/types/index.ts b/src/api/resources/spaces/types/index.ts +index 8669369..338c7d4 100644 +--- a/src/api/resources/spaces/types/index.ts ++++ b/src/api/resources/spaces/types/index.ts +@@ -6,3 +6,2 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; +-export * from "./UpgradeSpaceConfig"; + export * from "./EventTokenResponse"; +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 1d14d9a..beb23a2 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -40,3 +40,3 @@ export class Users { + const { email } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (email != null) { +@@ -56,5 +56,3 @@ export class Users { + }, +@@ -97,136 +95,2 @@ export class Users { + +- /** +- * Creates and invites a new user to your account. +- * +- * @example +- * await flatfile.users.createAndInvite({ +- * email: "john.smith@example.com", +- * name: "John Smith", +- * actorRoles: [{ +- * roleId: "us_rol_YOUR_ID", +- * resourceId: "us_acc_YOUR_ID" +- * }, { +- * roleId: "us_rol_YOUR_ID", +- * resourceId: "us_env_YOUR_ID" +- * }] +- * }) +- */ +- public async createAndInvite( +- request: Flatfile.UserCreateAndInviteRequest, +- requestOptions?: Users.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- "users/invite" +- ), +- method: "POST", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.UserCreateAndInviteRequest.jsonOrThrow(request, { +- unrecognizedObjectKeys: "strip", +- }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.UserResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- +- /** +- * Updates a user +- */ +- public async update( +- userId: Flatfile.UserId, +- request: Flatfile.UpdateUserRequest = {}, +- requestOptions?: Users.RequestOptions +- ): Promise { +- const _response = await (this._options.fetcher ?? core.fetcher)({ +- url: urlJoin( +- (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, +- `users/${await serializers.UserId.jsonOrThrow(userId)}` +- ), +- method: "PATCH", +- headers: { +- Authorization: await this._getAuthorizationHeader(), +- }, +- contentType: "application/json", +- body: await serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), +- timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +- maxRetries: requestOptions?.maxRetries, +- }); +- if (_response.ok) { +- return await serializers.UserResponse.parseOrThrow(_response.body, { +- unrecognizedObjectKeys: "passthrough", +- allowUnrecognizedUnionMembers: true, +- allowUnrecognizedEnumValues: true, +- skipValidation: true, +- breadcrumbsPrefix: ["response"], +- }); +- } +- +- if (_response.error.reason === "status-code") { +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.body, +- }); +- } +- +- switch (_response.error.reason) { +- case "non-json": +- throw new errors.FlatfileError({ +- statusCode: _response.error.statusCode, +- body: _response.error.rawBody, +- }); +- case "timeout": +- throw new errors.FlatfileTimeoutError(); +- case "unknown": +- throw new errors.FlatfileError({ +- message: _response.error.errorMessage, +- }); +- } +- } +- + /** +@@ -249,5 +113,3 @@ export class Users { + }, +@@ -310,5 +172,3 @@ export class Users { + }, +@@ -405,5 +265,3 @@ export class Users { + }, +@@ -503,5 +361,3 @@ export class Users { + }, +@@ -585,3 +441,3 @@ export class Users { + const { tenantId, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["tenantId"] = tenantId; +@@ -606,5 +462,3 @@ export class Users { + }, +@@ -656,3 +510,3 @@ export class Users { + const { tenantId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["tenantId"] = tenantId; +@@ -669,5 +523,3 @@ export class Users { + }, +@@ -728,5 +580,3 @@ export class Users { + }, +diff --git a/src/api/resources/users/client/requests/UpdateUserRequest.ts b/src/api/resources/users/client/requests/UpdateUserRequest.ts +deleted file mode 100644 +index 30e54f2..0000000 +--- a/src/api/resources/users/client/requests/UpdateUserRequest.ts ++++ /dev/null +@@ -1,8 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-export interface UpdateUserRequest { +- name?: string; +- dashboard?: number; +-} +diff --git a/src/api/resources/users/client/requests/index.ts b/src/api/resources/users/client/requests/index.ts +index bf566bf..b49c90b 100644 +--- a/src/api/resources/users/client/requests/index.ts ++++ b/src/api/resources/users/client/requests/index.ts +@@ -1,3 +1,2 @@ + export { ListUsersRequest } from "./ListUsersRequest"; +-export { UpdateUserRequest } from "./UpdateUserRequest"; + export { ListApiTokensRequest } from "./ListApiTokensRequest"; +diff --git a/src/api/resources/users/types/ListUsersResponse.ts b/src/api/resources/users/types/ListUsersResponse.ts +index d90952b..51ec119 100644 +--- a/src/api/resources/users/types/ListUsersResponse.ts ++++ b/src/api/resources/users/types/ListUsersResponse.ts +@@ -18,5 +18,3 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), +- * dashboard: 2 ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * }] +diff --git a/src/api/resources/users/types/User.ts b/src/api/resources/users/types/User.ts +index 469b501..996f272 100644 +--- a/src/api/resources/users/types/User.ts ++++ b/src/api/resources/users/types/User.ts +@@ -19,5 +19,3 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), +- * dashboard: 2 ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * } +@@ -31,4 +29,2 @@ export interface User extends Flatfile.UserConfig { + updatedAt: Date; +- lastSeenAt?: Date; +- dashboard?: number; + } +diff --git a/src/api/resources/users/types/UserCreateAndInviteRequest.ts b/src/api/resources/users/types/UserCreateAndInviteRequest.ts +deleted file mode 100644 +index 9603ae1..0000000 +--- a/src/api/resources/users/types/UserCreateAndInviteRequest.ts ++++ /dev/null +@@ -1,27 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as Flatfile from "../../.."; +- +-/** +- * Properties used to create a new user +- * +- * @example +- * { +- * email: "john.smith@example.com", +- * name: "John Smith", +- * actorRoles: [{ +- * roleId: "us_rol_YOUR_ID", +- * resourceId: "us_acc_YOUR_ID" +- * }, { +- * roleId: "us_rol_YOUR_ID", +- * resourceId: "us_env_YOUR_ID" +- * }] +- * } +- */ +-export interface UserCreateAndInviteRequest { +- email: string; +- name: string; +- actorRoles: Flatfile.AssignActorRoleRequest[]; +-} +diff --git a/src/api/resources/users/types/UserResponse.ts b/src/api/resources/users/types/UserResponse.ts +index 3ccc810..7045914 100644 +--- a/src/api/resources/users/types/UserResponse.ts ++++ b/src/api/resources/users/types/UserResponse.ts +@@ -18,5 +18,3 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), +- * dashboard: 2 ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * } +diff --git a/src/api/resources/users/types/index.ts b/src/api/resources/users/types/index.ts +index bae3706..7bd7d69 100644 +--- a/src/api/resources/users/types/index.ts ++++ b/src/api/resources/users/types/index.ts +@@ -4,3 +4,2 @@ export * from "./User"; + export * from "./UserConfig"; +-export * from "./UserCreateAndInviteRequest"; + export * from "./ListApiTokensResponse"; +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index c96a8a3..7818f3a 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,5 +42,3 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index ac4d087..71734fd 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -33,3 +33,4 @@ export class Workbooks { + * await flatfile.workbooks.list({ +- * spaceId: "us_sp_YOUR_ID" ++ * spaceId: "us_sp_YOUR_ID", ++ * includeCounts: true + * }) +@@ -41,3 +42,3 @@ export class Workbooks { + const { spaceId, includeCounts } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -61,5 +62,3 @@ export class Workbooks { + }, +@@ -168,5 +167,3 @@ export class Workbooks { + }, +@@ -245,5 +242,3 @@ export class Workbooks { + }, +@@ -331,5 +326,3 @@ export class Workbooks { + }, +@@ -428,5 +421,3 @@ export class Workbooks { + }, +@@ -496,3 +487,3 @@ export class Workbooks { + * @example +- * await flatfile.workbooks.getWorkbookCommits("us_wb_YOUR_ID") ++ * await flatfile.workbooks.getWorkbookCommits("us_wb_YOUR_ID", {}) + */ +@@ -504,3 +495,3 @@ export class Workbooks { + const { completed } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (completed != null) { +@@ -520,5 +511,3 @@ export class Workbooks { + }, +@@ -581,5 +570,3 @@ export class Workbooks { + }, +diff --git a/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts b/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts +index 6e28163..331f646 100644 +--- a/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts ++++ b/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts +@@ -9,3 +9,4 @@ import * as Flatfile from "../../../.."; + * { +- * spaceId: "us_sp_YOUR_ID" ++ * spaceId: "us_sp_YOUR_ID", ++ * includeCounts: true + * } +@@ -18,3 +19,3 @@ export interface ListWorkbooksRequest { + /** +- * Include counts for the workbook. **DEPRECATED** Counts will return 0s. Use GET /sheets/:sheetId/counts ++ * Include counts for the workbook + */ +diff --git a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +index 99698d2..34f96aa 100644 +--- a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts ++++ b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +@@ -37,2 +37,7 @@ import * as Flatfile from "../../.."; + * }, ++ * countRecords: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/workbooks/types/Workbook.ts b/src/api/resources/workbooks/types/Workbook.ts +index d1c132e..dea2d71 100644 +--- a/src/api/resources/workbooks/types/Workbook.ts ++++ b/src/api/resources/workbooks/types/Workbook.ts +@@ -38,2 +38,7 @@ import * as Flatfile from "../../.."; + * }, ++ * countRecords: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/workbooks/types/WorkbookResponse.ts b/src/api/resources/workbooks/types/WorkbookResponse.ts +index c329988..11e3afa 100644 +--- a/src/api/resources/workbooks/types/WorkbookResponse.ts ++++ b/src/api/resources/workbooks/types/WorkbookResponse.ts +@@ -37,2 +37,7 @@ import * as Flatfile from "../../.."; + * }, ++ * countRecords: { ++ * valid: 1000, ++ * error: 0, ++ * total: 1000 ++ * }, + * lockedBy: "Example0", +diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts +index c08e0fd..aa709ae 100644 +--- a/src/core/fetcher/Fetcher.ts ++++ b/src/core/fetcher/Fetcher.ts +@@ -2,3 +2,2 @@ import { default as FormData } from "form-data"; + import qs from "qs"; +-import { RUNTIME } from "../runtime"; + import { APIResponse } from "./APIResponse"; +@@ -13,3 +12,3 @@ export declare namespace Fetcher { + headers?: Record; +- queryParameters?: Record; ++ queryParameters?: Record; + body?: unknown; +@@ -78,13 +77,3 @@ async function fetcherImpl(args: Fetcher.Args): Promise): boolean { +- return !isSchemaOptional(schema); ++async function isSchemaRequired(schema: Schema): Promise { ++ return !(await isSchemaOptional(schema)); + } + +-function isSchemaOptional(schema: Schema): boolean { +- switch (schema.getType()) { ++async function isSchemaOptional(schema: Schema): Promise { ++ switch (await schema.getType()) { + case SchemaType.ANY: +diff --git a/src/serialization/resources/accounts/index.ts b/src/serialization/resources/accounts/index.ts +deleted file mode 100644 +index eea524d..0000000 +--- a/src/serialization/resources/accounts/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export * from "./types"; +diff --git a/src/serialization/resources/accounts/types/Account.ts b/src/serialization/resources/accounts/types/Account.ts +deleted file mode 100644 +index 5c15899..0000000 +--- a/src/serialization/resources/accounts/types/Account.ts ++++ /dev/null +@@ -1,42 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { AccountId } from "../../commons/types/AccountId"; +-import { AppId } from "../../commons/types/AppId"; +- +-export const Account: core.serialization.ObjectSchema = +- core.serialization.object({ +- id: AccountId, +- name: core.serialization.string(), +- subdomain: core.serialization.string().optional(), +- vanityDomainDashboard: core.serialization.string().optional(), +- vanityDomainSpaces: core.serialization.string().optional(), +- embeddedDomainWhitelist: core.serialization.list(core.serialization.string()).optional(), +- customFromEmail: core.serialization.string().optional(), +- stripeCustomerId: core.serialization.string().optional(), +- metadata: core.serialization.record(core.serialization.string(), core.serialization.any()), +- createdAt: core.serialization.date(), +- updatedAt: core.serialization.date(), +- defaultAppId: AppId.optional(), +- }); +- +-export declare namespace Account { +- interface Raw { +- id: AccountId.Raw; +- name: string; +- subdomain?: string | null; +- vanityDomainDashboard?: string | null; +- vanityDomainSpaces?: string | null; +- embeddedDomainWhitelist?: string[] | null; +- customFromEmail?: string | null; +- stripeCustomerId?: string | null; +- metadata: Record; +- createdAt: string; +- updatedAt: string; +- defaultAppId?: AppId.Raw | null; +- } +-} +diff --git a/src/serialization/resources/accounts/types/AccountPatch.ts b/src/serialization/resources/accounts/types/AccountPatch.ts +deleted file mode 100644 +index 303acb8..0000000 +--- a/src/serialization/resources/accounts/types/AccountPatch.ts ++++ /dev/null +@@ -1,19 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { AppId } from "../../commons/types/AppId"; +- +-export const AccountPatch: core.serialization.ObjectSchema = +- core.serialization.object({ +- defaultAppId: AppId, +- }); +- +-export declare namespace AccountPatch { +- interface Raw { +- defaultAppId: AppId.Raw; +- } +-} +diff --git a/src/serialization/resources/accounts/types/AccountResponse.ts b/src/serialization/resources/accounts/types/AccountResponse.ts +deleted file mode 100644 +index b47563f..0000000 +--- a/src/serialization/resources/accounts/types/AccountResponse.ts ++++ /dev/null +@@ -1,21 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { Account } from "./Account"; +- +-export const AccountResponse: core.serialization.ObjectSchema< +- serializers.AccountResponse.Raw, +- Flatfile.AccountResponse +-> = core.serialization.object({ +- data: Account, +-}); +- +-export declare namespace AccountResponse { +- interface Raw { +- data: Account.Raw; +- } +-} +diff --git a/src/serialization/resources/accounts/types/index.ts b/src/serialization/resources/accounts/types/index.ts +deleted file mode 100644 +index 0f9ca2c..0000000 +--- a/src/serialization/resources/accounts/types/index.ts ++++ /dev/null +@@ -1,3 +0,0 @@ +-export * from "./AccountResponse"; +-export * from "./Account"; +-export * from "./AccountPatch"; +diff --git a/src/serialization/resources/agents/types/Agent.ts b/src/serialization/resources/agents/types/Agent.ts +index bbd9bfd..a9ef4c1 100644 +--- a/src/serialization/resources/agents/types/Agent.ts ++++ b/src/serialization/resources/agents/types/Agent.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { AgentId } from "../../commons/types/AgentId"; +-import { AgentConfig } from "./AgentConfig"; + +@@ -12,9 +10,9 @@ export const Agent: core.serialization.ObjectSchema (await import("../../..")).AgentId), + }) +- .extend(AgentConfig); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).AgentConfig)); + + export declare namespace Agent { +- interface Raw extends AgentConfig.Raw { +- id: AgentId.Raw; ++ interface Raw extends serializers.AgentConfig.Raw { ++ id: serializers.AgentId.Raw; + } +diff --git a/src/serialization/resources/agents/types/AgentConfig.ts b/src/serialization/resources/agents/types/AgentConfig.ts +index a9a2ded..9ebc197 100644 +--- a/src/serialization/resources/agents/types/AgentConfig.ts ++++ b/src/serialization/resources/agents/types/AgentConfig.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EventTopic } from "../../events/types/EventTopic"; +-import { Compiler } from "./Compiler"; + +@@ -12,6 +10,7 @@ export const AgentConfig: core.serialization.ObjectSchema (await import("../../..")).EventTopic)) ++ .optional(), ++ compiler: core.serialization.lazy(async () => (await import("../../..")).Compiler).optional(), + source: core.serialization.string().optional(), +- slug: core.serialization.string().optional(), + }); +@@ -20,6 +19,5 @@ export declare namespace AgentConfig { + interface Raw { +- topics?: EventTopic.Raw[] | null; +- compiler?: Compiler.Raw | null; ++ topics?: serializers.EventTopic.Raw[] | null; ++ compiler?: serializers.Compiler.Raw | null; + source?: string | null; +- slug?: string | null; + } +diff --git a/src/serialization/resources/agents/types/AgentLog.ts b/src/serialization/resources/agents/types/AgentLog.ts +index 227c9b6..7ca1b75 100644 +--- a/src/serialization/resources/agents/types/AgentLog.ts ++++ b/src/serialization/resources/agents/types/AgentLog.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EventId } from "../../commons/types/EventId"; + +@@ -11,3 +10,3 @@ export const AgentLog: core.serialization.ObjectSchema (await import("../../..")).EventId), + success: core.serialization.boolean(), +@@ -20,3 +19,3 @@ export declare namespace AgentLog { + interface Raw { +- eventId: EventId.Raw; ++ eventId: serializers.EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/AgentResponse.ts b/src/serialization/resources/agents/types/AgentResponse.ts +index 30204e5..f301e76 100644 +--- a/src/serialization/resources/agents/types/AgentResponse.ts ++++ b/src/serialization/resources/agents/types/AgentResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Agent } from "./Agent"; + +@@ -11,3 +10,3 @@ export const AgentResponse: core.serialization.ObjectSchema (await import("../../..")).Agent).optional(), + }); +@@ -16,3 +15,3 @@ export declare namespace AgentResponse { + interface Raw { +- data?: Agent.Raw | null; ++ data?: serializers.Agent.Raw | null; + } +diff --git a/src/serialization/resources/agents/types/DetailedAgentLog.ts b/src/serialization/resources/agents/types/DetailedAgentLog.ts +index 483f5aa..5e6e060 100644 +--- a/src/serialization/resources/agents/types/DetailedAgentLog.ts ++++ b/src/serialization/resources/agents/types/DetailedAgentLog.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EventId } from "../../commons/types/EventId"; + +@@ -13,3 +12,3 @@ export const DetailedAgentLog: core.serialization.ObjectSchema< + > = core.serialization.object({ +- eventId: EventId, ++ eventId: core.serialization.lazy(async () => (await import("../../..")).EventId), + success: core.serialization.boolean(), +@@ -25,3 +24,3 @@ export declare namespace DetailedAgentLog { + interface Raw { +- eventId: EventId.Raw; ++ eventId: serializers.EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/Execution.ts b/src/serialization/resources/agents/types/Execution.ts +index af424f7..ce7585f 100644 +--- a/src/serialization/resources/agents/types/Execution.ts ++++ b/src/serialization/resources/agents/types/Execution.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EventId } from "../../commons/types/EventId"; + +@@ -11,3 +10,3 @@ export const Execution: core.serialization.ObjectSchema (await import("../../..")).EventId), + success: core.serialization.boolean(), +@@ -21,3 +20,3 @@ export declare namespace Execution { + interface Raw { +- eventId: EventId.Raw; ++ eventId: serializers.EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/GetAgentLogsResponse.ts b/src/serialization/resources/agents/types/GetAgentLogsResponse.ts +index 6d5d01b..7db2427 100644 +--- a/src/serialization/resources/agents/types/GetAgentLogsResponse.ts ++++ b/src/serialization/resources/agents/types/GetAgentLogsResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { AgentLog } from "./AgentLog"; + +@@ -14,4 +12,6 @@ export const GetAgentLogsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(AgentLog).optional(), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).AgentLog)) ++ .optional(), + }); +@@ -20,4 +20,4 @@ export declare namespace GetAgentLogsResponse { + interface Raw { +- pagination?: Pagination.Raw | null; +- data?: AgentLog.Raw[] | null; ++ pagination?: serializers.Pagination.Raw | null; ++ data?: serializers.AgentLog.Raw[] | null; + } +diff --git a/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts b/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts +index 19d38b2..6286bee 100644 +--- a/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts ++++ b/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DetailedAgentLog } from "./DetailedAgentLog"; + +@@ -13,3 +12,3 @@ export const GetDetailedAgentLogResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: DetailedAgentLog, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).DetailedAgentLog), + }); +@@ -18,3 +17,3 @@ export declare namespace GetDetailedAgentLogResponse { + interface Raw { +- data: DetailedAgentLog.Raw; ++ data: serializers.DetailedAgentLog.Raw; + } +diff --git a/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts b/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts +index 69924a0..ca07416 100644 +--- a/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts ++++ b/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { DetailedAgentLog } from "./DetailedAgentLog"; + +@@ -14,4 +12,6 @@ export const GetDetailedAgentLogsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(DetailedAgentLog), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).DetailedAgentLog) ++ ), + }); +@@ -20,4 +20,4 @@ export declare namespace GetDetailedAgentLogsResponse { + interface Raw { +- pagination?: Pagination.Raw | null; +- data: DetailedAgentLog.Raw[]; ++ pagination?: serializers.Pagination.Raw | null; ++ data: serializers.DetailedAgentLog.Raw[]; + } +diff --git a/src/serialization/resources/agents/types/GetExecutionsResponse.ts b/src/serialization/resources/agents/types/GetExecutionsResponse.ts +index 76e69a4..e51eccd 100644 +--- a/src/serialization/resources/agents/types/GetExecutionsResponse.ts ++++ b/src/serialization/resources/agents/types/GetExecutionsResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { Execution } from "./Execution"; + +@@ -14,4 +12,4 @@ export const GetExecutionsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(Execution), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Execution)), + }); +@@ -20,4 +18,4 @@ export declare namespace GetExecutionsResponse { + interface Raw { +- pagination?: Pagination.Raw | null; +- data: Execution.Raw[]; ++ pagination?: serializers.Pagination.Raw | null; ++ data: serializers.Execution.Raw[]; + } +diff --git a/src/serialization/resources/agents/types/ListAgentsResponse.ts b/src/serialization/resources/agents/types/ListAgentsResponse.ts +index 911337b..de02f67 100644 +--- a/src/serialization/resources/agents/types/ListAgentsResponse.ts ++++ b/src/serialization/resources/agents/types/ListAgentsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Agent } from "./Agent"; + +@@ -13,3 +12,5 @@ export const ListAgentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Agent).optional(), ++ data: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Agent)) ++ .optional(), + }); +@@ -18,3 +19,3 @@ export declare namespace ListAgentsResponse { + interface Raw { +- data?: Agent.Raw[] | null; ++ data?: serializers.Agent.Raw[] | null; + } +diff --git a/src/serialization/resources/apps/types/App.ts b/src/serialization/resources/apps/types/App.ts +index 42dff50..baa0e8b 100644 +--- a/src/serialization/resources/apps/types/App.ts ++++ b/src/serialization/resources/apps/types/App.ts +@@ -7,10 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { AppId } from "../../commons/types/AppId"; +-import { AppType } from "./AppType"; + + export const App: core.serialization.ObjectSchema = core.serialization.object({ +- id: AppId, ++ id: core.serialization.lazy(async () => (await import("../../..")).AppId), + name: core.serialization.string(), + namespace: core.serialization.string(), +- type: AppType, ++ type: core.serialization.lazy(async () => (await import("../../..")).AppType), + entity: core.serialization.string(), +@@ -19,3 +17,2 @@ export const App: core.serialization.ObjectSchema (await import("../../..")).AppType), + entity: core.serialization.string().optional(), +@@ -18,3 +17,2 @@ export const AppCreate: core.serialization.ObjectSchema (await import("../../..")).App), + }); +@@ -16,3 +15,3 @@ export declare namespace AppResponse { + interface Raw { +- data: App.Raw; ++ data: serializers.App.Raw; + } +diff --git a/src/serialization/resources/apps/types/AppsResponse.ts b/src/serialization/resources/apps/types/AppsResponse.ts +index e778d68..fb686c0 100644 +--- a/src/serialization/resources/apps/types/AppsResponse.ts ++++ b/src/serialization/resources/apps/types/AppsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { App } from "./App"; + +@@ -11,3 +10,3 @@ export const AppsResponse: core.serialization.ObjectSchema (await import("../../..")).App)), + }); +@@ -16,3 +15,3 @@ export declare namespace AppsResponse { + interface Raw { +- data: App.Raw[]; ++ data: serializers.App.Raw[]; + } +diff --git a/src/serialization/resources/assistant/index.ts b/src/serialization/resources/assistant/index.ts +deleted file mode 100644 +index eea524d..0000000 +--- a/src/serialization/resources/assistant/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export * from "./types"; +diff --git a/src/serialization/resources/assistant/types/Prompt.ts b/src/serialization/resources/assistant/types/Prompt.ts +deleted file mode 100644 +index 970bff8..0000000 +--- a/src/serialization/resources/assistant/types/Prompt.ts ++++ /dev/null +@@ -1,32 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { PromptId } from "../../commons/types/PromptId"; +-import { AccountId } from "../../commons/types/AccountId"; +- +-export const Prompt: core.serialization.ObjectSchema = +- core.serialization.object({ +- id: PromptId, +- createdById: core.serialization.string(), +- accountId: AccountId, +- prompt: core.serialization.string(), +- createdAt: core.serialization.date(), +- updatedAt: core.serialization.date(), +- deletedAt: core.serialization.date().optional(), +- }); +- +-export declare namespace Prompt { +- interface Raw { +- id: PromptId.Raw; +- createdById: string; +- accountId: AccountId.Raw; +- prompt: string; +- createdAt: string; +- updatedAt: string; +- deletedAt?: string | null; +- } +-} +diff --git a/src/serialization/resources/assistant/types/PromptCreate.ts b/src/serialization/resources/assistant/types/PromptCreate.ts +deleted file mode 100644 +index 38950d0..0000000 +--- a/src/serialization/resources/assistant/types/PromptCreate.ts ++++ /dev/null +@@ -1,18 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const PromptCreate: core.serialization.ObjectSchema = +- core.serialization.object({ +- prompt: core.serialization.string(), +- }); +- +-export declare namespace PromptCreate { +- interface Raw { +- prompt: string; +- } +-} +diff --git a/src/serialization/resources/assistant/types/PromptPatch.ts b/src/serialization/resources/assistant/types/PromptPatch.ts +deleted file mode 100644 +index 2b1ede6..0000000 +--- a/src/serialization/resources/assistant/types/PromptPatch.ts ++++ /dev/null +@@ -1,18 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const PromptPatch: core.serialization.ObjectSchema = +- core.serialization.object({ +- prompt: core.serialization.string().optional(), +- }); +- +-export declare namespace PromptPatch { +- interface Raw { +- prompt?: string | null; +- } +-} +diff --git a/src/serialization/resources/assistant/types/PromptResponse.ts b/src/serialization/resources/assistant/types/PromptResponse.ts +deleted file mode 100644 +index ae87c84..0000000 +--- a/src/serialization/resources/assistant/types/PromptResponse.ts ++++ /dev/null +@@ -1,19 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { Prompt } from "./Prompt"; +- +-export const PromptResponse: core.serialization.ObjectSchema = +- core.serialization.object({ +- data: Prompt, +- }); +- +-export declare namespace PromptResponse { +- interface Raw { +- data: Prompt.Raw; +- } +-} +diff --git a/src/serialization/resources/assistant/types/PromptsResponse.ts b/src/serialization/resources/assistant/types/PromptsResponse.ts +deleted file mode 100644 +index 9821a6b..0000000 +--- a/src/serialization/resources/assistant/types/PromptsResponse.ts ++++ /dev/null +@@ -1,24 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { Prompt } from "./Prompt"; +- +-export const PromptsResponse: core.serialization.ObjectSchema< +- serializers.PromptsResponse.Raw, +- Flatfile.PromptsResponse +-> = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(Prompt), +-}); +- +-export declare namespace PromptsResponse { +- interface Raw { +- pagination?: Pagination.Raw | null; +- data: Prompt.Raw[]; +- } +-} +diff --git a/src/serialization/resources/assistant/types/index.ts b/src/serialization/resources/assistant/types/index.ts +deleted file mode 100644 +index d296f59..0000000 +--- a/src/serialization/resources/assistant/types/index.ts ++++ /dev/null +@@ -1,5 +0,0 @@ +-export * from "./PromptsResponse"; +-export * from "./PromptResponse"; +-export * from "./PromptPatch"; +-export * from "./PromptCreate"; +-export * from "./Prompt"; +diff --git a/src/serialization/resources/auth/types/ApiKey.ts b/src/serialization/resources/auth/types/ApiKey.ts +index a048302..939ad8d 100644 +--- a/src/serialization/resources/auth/types/ApiKey.ts ++++ b/src/serialization/resources/auth/types/ApiKey.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ApiKeyId } from "./ApiKeyId"; +-import { RawKey } from "./RawKey"; +-import { ApiKeyType } from "./ApiKeyType"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { AccountId } from "../../commons/types/AccountId"; +-import { ApiKeyOperation } from "./ApiKeyOperation"; + +@@ -16,8 +10,10 @@ export const ApiKey: core.serialization.ObjectSchema (await import("../../..")).ApiKeyId), ++ rawKey: core.serialization.lazy(async () => (await import("../../..")).RawKey).optional(), ++ type: core.serialization.lazy(async () => (await import("../../..")).ApiKeyType), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId).optional(), ++ operations: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).ApiKeyOperation) ++ ), + createdAt: core.serialization.date(), +@@ -30,8 +26,8 @@ export declare namespace ApiKey { + interface Raw { +- id: ApiKeyId.Raw; +- rawKey?: RawKey.Raw | null; +- type: ApiKeyType.Raw; +- environmentId?: EnvironmentId.Raw | null; +- accountId?: AccountId.Raw | null; +- operations: ApiKeyOperation.Raw[]; ++ id: serializers.ApiKeyId.Raw; ++ rawKey?: serializers.RawKey.Raw | null; ++ type: serializers.ApiKeyType.Raw; ++ environmentId?: serializers.EnvironmentId.Raw | null; ++ accountId?: serializers.AccountId.Raw | null; ++ operations: serializers.ApiKeyOperation.Raw[]; + createdAt: string; +diff --git a/src/serialization/resources/auth/types/ApiKeysResponse.ts b/src/serialization/resources/auth/types/ApiKeysResponse.ts +index 0d016a7..af686f9 100644 +--- a/src/serialization/resources/auth/types/ApiKeysResponse.ts ++++ b/src/serialization/resources/auth/types/ApiKeysResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ApiKey } from "./ApiKey"; + +@@ -13,3 +12,3 @@ export const ApiKeysResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(ApiKey), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).ApiKey)), + }); +@@ -18,3 +17,3 @@ export declare namespace ApiKeysResponse { + interface Raw { +- data: ApiKey.Raw[]; ++ data: serializers.ApiKey.Raw[]; + } +diff --git a/src/serialization/resources/auth/types/Credentials.ts b/src/serialization/resources/auth/types/Credentials.ts +index 9ab3ccc..57ba6ba 100644 +--- a/src/serialization/resources/auth/types/Credentials.ts ++++ b/src/serialization/resources/auth/types/Credentials.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { UserCredentials } from "./UserCredentials"; +-import { ApiCredentials } from "./ApiCredentials"; + +@@ -13,4 +11,4 @@ export const Credentials: core.serialization.Schema (await import("../../..")).UserCredentials), ++ apiCredentials: core.serialization.lazyObject(async () => (await import("../../..")).ApiCredentials), + }) +@@ -24,3 +22,3 @@ export declare namespace Credentials { + +- interface UserCredentials extends UserCredentials.Raw { ++ interface UserCredentials extends serializers.UserCredentials.Raw { + type: "userCredentials"; +@@ -28,3 +26,3 @@ export declare namespace Credentials { + +- interface ApiCredentials extends ApiCredentials.Raw { ++ interface ApiCredentials extends serializers.ApiCredentials.Raw { + type: "apiCredentials"; +diff --git a/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts b/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts +index bec2ed6..42ec382 100644 +--- a/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordCounts } from "../../records/types/RecordCounts"; +-import { CellValue } from "../../records/types/CellValue"; + +@@ -15,9 +13,9 @@ export const CellValueWithCountsDeprecated: core.serialization.ObjectSchema< + .object({ +- counts: RecordCounts.optional(), ++ counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), + }) +- .extend(CellValue); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); + + export declare namespace CellValueWithCountsDeprecated { +- interface Raw extends CellValue.Raw { +- counts?: RecordCounts.Raw | null; ++ interface Raw extends serializers.CellValue.Raw { ++ counts?: serializers.RecordCounts.Raw | null; + } +diff --git a/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts b/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts +index 63db296..312d5d8 100644 +--- a/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CellValueWithCountsDeprecated } from "./CellValueWithCountsDeprecated"; + +@@ -12,6 +11,11 @@ export const CellsResponseDataDeprecated: core.serialization.Schema< + Flatfile.CellsResponseDataDeprecated +-> = core.serialization.record(core.serialization.string(), core.serialization.list(CellValueWithCountsDeprecated)); ++> = core.serialization.record( ++ core.serialization.string(), ++ core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithCountsDeprecated) ++ ) ++); + + export declare namespace CellsResponseDataDeprecated { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/cells/types/CellsResponseDeprecated.ts b/src/serialization/resources/cells/types/CellsResponseDeprecated.ts +index 4994dae..d283ff9 100644 +--- a/src/serialization/resources/cells/types/CellsResponseDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellsResponseDeprecated.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CellsResponseDataDeprecated } from "./CellsResponseDataDeprecated"; +-import { CellValueWithCountsDeprecated } from "./CellValueWithCountsDeprecated"; + +@@ -14,3 +12,3 @@ export const CellsResponseDeprecated: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: CellsResponseDataDeprecated, ++ data: core.serialization.lazy(async () => (await import("../../..")).CellsResponseDataDeprecated), + }); +@@ -19,3 +17,3 @@ export declare namespace CellsResponseDeprecated { + interface Raw { +- data: CellsResponseDataDeprecated.Raw; ++ data: serializers.CellsResponseDataDeprecated.Raw; + } +diff --git a/src/serialization/resources/commits/types/Commit.ts b/src/serialization/resources/commits/types/Commit.ts +index 7315cfd..6cdc734 100644 +--- a/src/serialization/resources/commits/types/Commit.ts ++++ b/src/serialization/resources/commits/types/Commit.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CommitId } from "../../commons/types/CommitId"; +-import { SheetId } from "../../commons/types/SheetId"; + +@@ -12,4 +10,4 @@ export const Commit: core.serialization.ObjectSchema (await import("../../..")).CommitId), ++ sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), + createdBy: core.serialization.string(), +@@ -22,4 +20,4 @@ export declare namespace Commit { + interface Raw { +- id: CommitId.Raw; +- sheetId: SheetId.Raw; ++ id: serializers.CommitId.Raw; ++ sheetId: serializers.SheetId.Raw; + createdBy: string; +diff --git a/src/serialization/resources/commits/types/CommitResponse.ts b/src/serialization/resources/commits/types/CommitResponse.ts +index 8aba11a..9569e4b 100644 +--- a/src/serialization/resources/commits/types/CommitResponse.ts ++++ b/src/serialization/resources/commits/types/CommitResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Commit } from "./Commit"; + +@@ -11,3 +10,3 @@ export const CommitResponse: core.serialization.ObjectSchema (await import("../../..")).Commit), + }); +@@ -16,3 +15,3 @@ export declare namespace CommitResponse { + interface Raw { +- data: Commit.Raw; ++ data: serializers.Commit.Raw; + } +diff --git a/src/serialization/resources/commits/types/ListCommitsResponse.ts b/src/serialization/resources/commits/types/ListCommitsResponse.ts +index 49c5bdd..b4dda47 100644 +--- a/src/serialization/resources/commits/types/ListCommitsResponse.ts ++++ b/src/serialization/resources/commits/types/ListCommitsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Commit } from "./Commit"; + +@@ -13,3 +12,3 @@ export const ListCommitsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Commit), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Commit)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListCommitsResponse { + interface Raw { +- data: Commit.Raw[]; ++ data: serializers.Commit.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/AccessToken.ts b/src/serialization/resources/commons/types/AccessToken.ts +index 96f8240..36af432 100644 +--- a/src/serialization/resources/commons/types/AccessToken.ts ++++ b/src/serialization/resources/commons/types/AccessToken.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { UserId } from "./UserId"; +-import { AccountId } from "./AccountId"; + +@@ -16,4 +14,4 @@ export const AccessToken: core.serialization.ObjectSchema (await import("../../..")).UserId).optional(), ++ accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId).optional(), + }); +@@ -26,4 +24,4 @@ export declare namespace AccessToken { + email?: string | null; +- userId?: UserId.Raw | null; +- accountId?: AccountId.Raw | null; ++ userId?: serializers.UserId.Raw | null; ++ accountId?: serializers.AccountId.Raw | null; + } +diff --git a/src/serialization/resources/commons/types/Action.ts b/src/serialization/resources/commons/types/Action.ts +index 600618b..3f40e77 100644 +--- a/src/serialization/resources/commons/types/Action.ts ++++ b/src/serialization/resources/commons/types/Action.ts +@@ -7,7 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ActionMode } from "./ActionMode"; +-import { ActionMessage } from "./ActionMessage"; +-import { ActionSchedule } from "./ActionSchedule"; +-import { InputForm } from "./InputForm"; +-import { ActionConstraint } from "./ActionConstraint"; + +@@ -17,9 +12,11 @@ export const Action: core.serialization.ObjectSchema (await import("../../..")).ActionMode).optional(), + label: core.serialization.string(), + tooltip: core.serialization.string().optional(), +- messages: core.serialization.list(ActionMessage).optional(), ++ messages: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).ActionMessage)) ++ .optional(), + type: core.serialization.string().optional(), + description: core.serialization.string().optional(), +- schedule: ActionSchedule.optional(), ++ schedule: core.serialization.lazy(async () => (await import("../../..")).ActionSchedule).optional(), + primary: core.serialization.boolean().optional(), +@@ -29,4 +26,6 @@ export const Action: core.serialization.ObjectSchema (await import("../../..")).InputForm).optional(), ++ constraints: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).ActionConstraint)) ++ .optional(), + }); +@@ -37,9 +36,9 @@ export declare namespace Action { + operation?: string | null; +- mode?: ActionMode.Raw | null; ++ mode?: serializers.ActionMode.Raw | null; + label: string; + tooltip?: string | null; +- messages?: ActionMessage.Raw[] | null; ++ messages?: serializers.ActionMessage.Raw[] | null; + type?: string | null; + description?: string | null; +- schedule?: ActionSchedule.Raw | null; ++ schedule?: serializers.ActionSchedule.Raw | null; + primary?: boolean | null; +@@ -49,4 +48,4 @@ export declare namespace Action { + requireSelection?: boolean | null; +- inputForm?: InputForm.Raw | null; +- constraints?: ActionConstraint.Raw[] | null; ++ inputForm?: serializers.InputForm.Raw | null; ++ constraints?: serializers.ActionConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/commons/types/ActionConstraint.ts b/src/serialization/resources/commons/types/ActionConstraint.ts +index c0a7f53..f2988c8 100644 +--- a/src/serialization/resources/commons/types/ActionConstraint.ts ++++ b/src/serialization/resources/commons/types/ActionConstraint.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ActionConstraintType } from "./ActionConstraintType"; + +@@ -13,3 +12,3 @@ export const ActionConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: ActionConstraintType, ++ type: core.serialization.lazy(async () => (await import("../../..")).ActionConstraintType), + }); +@@ -18,3 +17,3 @@ export declare namespace ActionConstraint { + interface Raw { +- type: ActionConstraintType.Raw; ++ type: serializers.ActionConstraintType.Raw; + } +diff --git a/src/serialization/resources/commons/types/ActionMessage.ts b/src/serialization/resources/commons/types/ActionMessage.ts +index 82e1c9f..6fe3da8 100644 +--- a/src/serialization/resources/commons/types/ActionMessage.ts ++++ b/src/serialization/resources/commons/types/ActionMessage.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ActionMessageType } from "./ActionMessageType"; + +@@ -11,3 +10,3 @@ export const ActionMessage: core.serialization.ObjectSchema (await import("../../..")).ActionMessageType), + content: core.serialization.string(), +@@ -17,3 +16,3 @@ export declare namespace ActionMessage { + interface Raw { +- type: ActionMessageType.Raw; ++ type: serializers.ActionMessageType.Raw; + content: string; +diff --git a/src/serialization/resources/commons/types/ActionMessageType.ts b/src/serialization/resources/commons/types/ActionMessageType.ts +index 1114e5f..6cb1238 100644 +--- a/src/serialization/resources/commons/types/ActionMessageType.ts ++++ b/src/serialization/resources/commons/types/ActionMessageType.ts +@@ -11,6 +11,6 @@ export const ActionMessageType: core.serialization.Schema< + Flatfile.ActionMessageType +-> = core.serialization.enum_(["error", "info"]); ++> = core.serialization.enum_(["success", "error", "warning", "info"]); + + export declare namespace ActionMessageType { +- type Raw = "error" | "info"; ++ type Raw = "success" | "error" | "warning" | "info"; + } +diff --git a/src/serialization/resources/commons/types/Errors.ts b/src/serialization/resources/commons/types/Errors.ts +index bb5171b..f154ca3 100644 +--- a/src/serialization/resources/commons/types/Errors.ts ++++ b/src/serialization/resources/commons/types/Errors.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Error_ } from "./Error_"; + +@@ -11,3 +10,3 @@ export const Errors: core.serialization.ObjectSchema (await import("../../..")).Error_)), + }); +@@ -16,3 +15,3 @@ export declare namespace Errors { + interface Raw { +- errors: Error_.Raw[]; ++ errors: serializers.Error_.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/InputConfig.ts b/src/serialization/resources/commons/types/InputConfig.ts +index 4ee3b51..a461b10 100644 +--- a/src/serialization/resources/commons/types/InputConfig.ts ++++ b/src/serialization/resources/commons/types/InputConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { InputEnumPropertyOption } from "./InputEnumPropertyOption"; + +@@ -11,3 +10,5 @@ export const InputConfig: core.serialization.ObjectSchema (await import("../../..")).InputEnumPropertyOption) ++ ), + }); +@@ -16,3 +17,3 @@ export declare namespace InputConfig { + interface Raw { +- options: InputEnumPropertyOption.Raw[]; ++ options: serializers.InputEnumPropertyOption.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/InputConstraint.ts b/src/serialization/resources/commons/types/InputConstraint.ts +index 84f29cb..df71a16 100644 +--- a/src/serialization/resources/commons/types/InputConstraint.ts ++++ b/src/serialization/resources/commons/types/InputConstraint.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { InputConstraintType } from "./InputConstraintType"; + +@@ -13,3 +12,3 @@ export const InputConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: InputConstraintType, ++ type: core.serialization.lazy(async () => (await import("../../..")).InputConstraintType), + }); +@@ -18,3 +17,3 @@ export declare namespace InputConstraint { + interface Raw { +- type: InputConstraintType.Raw; ++ type: serializers.InputConstraintType.Raw; + } +diff --git a/src/serialization/resources/commons/types/InputField.ts b/src/serialization/resources/commons/types/InputField.ts +index 66952dd..94b29bc 100644 +--- a/src/serialization/resources/commons/types/InputField.ts ++++ b/src/serialization/resources/commons/types/InputField.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { InputConfig } from "./InputConfig"; +-import { InputConstraint } from "./InputConstraint"; + +@@ -17,4 +15,6 @@ export const InputField: core.serialization.ObjectSchema (await import("../../..")).InputConfig).optional(), ++ constraints: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).InputConstraint)) ++ .optional(), + }); +@@ -28,4 +28,4 @@ export declare namespace InputField { + defaultValue?: any | null; +- config?: InputConfig.Raw | null; +- constraints?: InputConstraint.Raw[] | null; ++ config?: serializers.InputConfig.Raw | null; ++ constraints?: serializers.InputConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/commons/types/InputForm.ts b/src/serialization/resources/commons/types/InputForm.ts +index c4c469e..42bf905 100644 +--- a/src/serialization/resources/commons/types/InputForm.ts ++++ b/src/serialization/resources/commons/types/InputForm.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { InputFormType } from "./InputFormType"; +-import { InputField } from "./InputField"; + +@@ -12,4 +10,6 @@ export const InputForm: core.serialization.ObjectSchema (await import("../../..")).InputFormType), ++ fields: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).InputField) ++ ), + }); +@@ -18,4 +18,4 @@ export declare namespace InputForm { + interface Raw { +- type: InputFormType.Raw; +- fields: InputField.Raw[]; ++ type: serializers.InputFormType.Raw; ++ fields: serializers.InputField.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/PromptId.ts b/src/serialization/resources/commons/types/PromptId.ts +deleted file mode 100644 +index 695182d..0000000 +--- a/src/serialization/resources/commons/types/PromptId.ts ++++ /dev/null +@@ -1,14 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const PromptId: core.serialization.Schema = +- core.serialization.string(); +- +-export declare namespace PromptId { +- type Raw = string; +-} +diff --git a/src/serialization/resources/commons/types/Success.ts b/src/serialization/resources/commons/types/Success.ts +index 6cedfa1..29191d6 100644 +--- a/src/serialization/resources/commons/types/Success.ts ++++ b/src/serialization/resources/commons/types/Success.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SuccessData } from "./SuccessData"; + +@@ -11,3 +10,3 @@ export const Success: core.serialization.ObjectSchema (await import("../../..")).SuccessData).optional(), + }); +@@ -16,3 +15,3 @@ export declare namespace Success { + interface Raw { +- data?: SuccessData.Raw | null; ++ data?: serializers.SuccessData.Raw | null; + } +diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts +index baa887d..d92ca92 100644 +--- a/src/serialization/resources/commons/types/index.ts ++++ b/src/serialization/resources/commons/types/index.ts +@@ -24,3 +24,2 @@ export * from "./ProgramId"; + export * from "./FamilyId"; +-export * from "./PromptId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts +index c15c377..ff62d1b 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DataRetentionPolicyId } from "../../commons/types/DataRetentionPolicyId"; +-import { DataRetentionPolicyConfig } from "./DataRetentionPolicyConfig"; + +@@ -15,3 +13,3 @@ export const DataRetentionPolicy: core.serialization.ObjectSchema< + .object({ +- id: DataRetentionPolicyId, ++ id: core.serialization.lazy(async () => (await import("../../..")).DataRetentionPolicyId), + createdAt: core.serialization.date(), +@@ -19,7 +17,7 @@ export const DataRetentionPolicy: core.serialization.ObjectSchema< + }) +- .extend(DataRetentionPolicyConfig); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicyConfig)); + + export declare namespace DataRetentionPolicy { +- interface Raw extends DataRetentionPolicyConfig.Raw { +- id: DataRetentionPolicyId.Raw; ++ interface Raw extends serializers.DataRetentionPolicyConfig.Raw { ++ id: serializers.DataRetentionPolicyId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts +index 235e2f5..edbe89c 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DataRetentionPolicyEnum } from "./DataRetentionPolicyEnum"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; + +@@ -14,5 +12,5 @@ export const DataRetentionPolicyConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: DataRetentionPolicyEnum, ++ type: core.serialization.lazy(async () => (await import("../../..")).DataRetentionPolicyEnum), + period: core.serialization.number(), +- environmentId: EnvironmentId, ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), + }); +@@ -21,5 +19,5 @@ export declare namespace DataRetentionPolicyConfig { + interface Raw { +- type: DataRetentionPolicyEnum.Raw; ++ type: serializers.DataRetentionPolicyEnum.Raw; + period: number; +- environmentId: EnvironmentId.Raw; ++ environmentId: serializers.EnvironmentId.Raw; + } +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts +index fd78041..da57362 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DataRetentionPolicy } from "./DataRetentionPolicy"; + +@@ -13,3 +12,3 @@ export const DataRetentionPolicyResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: DataRetentionPolicy, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicy), + }); +@@ -18,3 +17,3 @@ export declare namespace DataRetentionPolicyResponse { + interface Raw { +- data: DataRetentionPolicy.Raw; ++ data: serializers.DataRetentionPolicy.Raw; + } +diff --git a/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts b/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts +index 811fb98..bb82dd4 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DataRetentionPolicy } from "./DataRetentionPolicy"; + +@@ -13,3 +12,5 @@ export const ListDataRetentionPoliciesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(DataRetentionPolicy), ++ data: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicy) ++ ), + }); +@@ -18,3 +19,3 @@ export declare namespace ListDataRetentionPoliciesResponse { + interface Raw { +- data: DataRetentionPolicy.Raw[]; ++ data: serializers.DataRetentionPolicy.Raw[]; + } +diff --git a/src/serialization/resources/documents/types/Document.ts b/src/serialization/resources/documents/types/Document.ts +index 6be73b3..51bc0cc 100644 +--- a/src/serialization/resources/documents/types/Document.ts ++++ b/src/serialization/resources/documents/types/Document.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DocumentId } from "../../commons/types/DocumentId"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { DocumentConfig } from "./DocumentConfig"; + +@@ -14,5 +10,5 @@ export const Document: core.serialization.ObjectSchema (await import("../../..")).DocumentId), ++ spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), + createdAt: core.serialization.date(), +@@ -20,9 +16,9 @@ export const Document: core.serialization.ObjectSchema (await import("../../..")).DocumentConfig)); + + export declare namespace Document { +- interface Raw extends DocumentConfig.Raw { +- id: DocumentId.Raw; +- spaceId?: SpaceId.Raw | null; +- environmentId?: EnvironmentId.Raw | null; ++ interface Raw extends serializers.DocumentConfig.Raw { ++ id: serializers.DocumentId.Raw; ++ spaceId?: serializers.SpaceId.Raw | null; ++ environmentId?: serializers.EnvironmentId.Raw | null; + createdAt: string; +diff --git a/src/serialization/resources/documents/types/DocumentConfig.ts b/src/serialization/resources/documents/types/DocumentConfig.ts +index a7b7c1d..64cc667 100644 +--- a/src/serialization/resources/documents/types/DocumentConfig.ts ++++ b/src/serialization/resources/documents/types/DocumentConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Action } from "../../commons/types/Action"; + +@@ -14,3 +13,5 @@ export const DocumentConfig: core.serialization.ObjectSchema (await import("../../..")).Action)) ++ .optional(), + }); +@@ -22,3 +23,3 @@ export declare namespace DocumentConfig { + treatments?: string[] | null; +- actions?: Action.Raw[] | null; ++ actions?: serializers.Action.Raw[] | null; + } +diff --git a/src/serialization/resources/documents/types/DocumentResponse.ts b/src/serialization/resources/documents/types/DocumentResponse.ts +index d7c207a..980edeb 100644 +--- a/src/serialization/resources/documents/types/DocumentResponse.ts ++++ b/src/serialization/resources/documents/types/DocumentResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Document } from "./Document"; + +@@ -13,3 +12,3 @@ export const DocumentResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: Document, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).Document), + }); +@@ -18,3 +17,3 @@ export declare namespace DocumentResponse { + interface Raw { +- data: Document.Raw; ++ data: serializers.Document.Raw; + } +diff --git a/src/serialization/resources/documents/types/ListDocumentsResponse.ts b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +index 6de1ff3..17eb9ad 100644 +--- a/src/serialization/resources/documents/types/ListDocumentsResponse.ts ++++ b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DocumentResponse } from "./DocumentResponse"; + +@@ -13,3 +12,5 @@ export const ListDocumentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(DocumentResponse), ++ data: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).DocumentResponse) ++ ), + }); +@@ -18,3 +19,3 @@ export declare namespace ListDocumentsResponse { + interface Raw { +- data: DocumentResponse.Raw[]; ++ data: serializers.DocumentResponse.Raw[]; + } +diff --git a/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +index 0a05b48..1e5a59a 100644 +--- a/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts ++++ b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Entitlement } from "./Entitlement"; + +@@ -13,3 +12,3 @@ export const ListEntitlementsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Entitlement), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Entitlement)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListEntitlementsResponse { + interface Raw { +- data: Entitlement.Raw[]; ++ data: serializers.Entitlement.Raw[]; + } +diff --git a/src/serialization/resources/environments/types/Environment.ts b/src/serialization/resources/environments/types/Environment.ts +index 80fb792..33280ca 100644 +--- a/src/serialization/resources/environments/types/Environment.ts ++++ b/src/serialization/resources/environments/types/Environment.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { AccountId } from "../../commons/types/AccountId"; +-import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -13,7 +10,9 @@ export const Environment: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId), ++ accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), + name: core.serialization.string(), + isProd: core.serialization.boolean(), +- guestAuthentication: core.serialization.list(GuestAuthenticationEnum), ++ guestAuthentication: core.serialization.list( ++ core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum) ++ ), + features: core.serialization.record(core.serialization.string(), core.serialization.any()), +@@ -27,7 +26,7 @@ export declare namespace Environment { + interface Raw { +- id: EnvironmentId.Raw; +- accountId: AccountId.Raw; ++ id: serializers.EnvironmentId.Raw; ++ accountId: serializers.AccountId.Raw; + name: string; + isProd: boolean; +- guestAuthentication: GuestAuthenticationEnum.Raw[]; ++ guestAuthentication: serializers.GuestAuthenticationEnum.Raw[]; + features: Record; +diff --git a/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts b/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts +index 96bd5d6..553c141 100644 +--- a/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts ++++ b/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -15,3 +14,5 @@ export const EnvironmentConfigCreate: core.serialization.ObjectSchema< + isProd: core.serialization.boolean(), +- guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), ++ guestAuthentication: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum)) ++ .optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -26,3 +27,3 @@ export declare namespace EnvironmentConfigCreate { + isProd: boolean; +- guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts b/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts +index 2db4261..4f7008c 100644 +--- a/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts ++++ b/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -15,3 +14,5 @@ export const EnvironmentConfigUpdate: core.serialization.ObjectSchema< + isProd: core.serialization.boolean().optional(), +- guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), ++ guestAuthentication: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum)) ++ .optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -26,3 +27,3 @@ export declare namespace EnvironmentConfigUpdate { + isProd?: boolean | null; +- guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/environments/types/EnvironmentResponse.ts b/src/serialization/resources/environments/types/EnvironmentResponse.ts +index d18af70..8dc0231 100644 +--- a/src/serialization/resources/environments/types/EnvironmentResponse.ts ++++ b/src/serialization/resources/environments/types/EnvironmentResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Environment } from "./Environment"; + +@@ -13,3 +12,3 @@ export const EnvironmentResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: Environment, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).Environment), + }); +@@ -18,3 +17,3 @@ export declare namespace EnvironmentResponse { + interface Raw { +- data: Environment.Raw; ++ data: serializers.Environment.Raw; + } +diff --git a/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts b/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts +index 93f4727..e68721d 100644 +--- a/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts ++++ b/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Environment } from "./Environment"; +-import { Pagination } from "../../commons/types/Pagination"; + +@@ -14,4 +12,4 @@ export const ListEnvironmentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Environment), +- pagination: Pagination.optional(), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Environment)), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), + }); +@@ -20,4 +18,4 @@ export declare namespace ListEnvironmentsResponse { + interface Raw { +- data: Environment.Raw[]; +- pagination?: Pagination.Raw | null; ++ data: serializers.Environment.Raw[]; ++ pagination?: serializers.Pagination.Raw | null; + } +diff --git a/src/serialization/resources/events/types/BaseEvent.ts b/src/serialization/resources/events/types/BaseEvent.ts +index 5091bcd..9c6c8d5 100644 +--- a/src/serialization/resources/events/types/BaseEvent.ts ++++ b/src/serialization/resources/events/types/BaseEvent.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Domain } from "./Domain"; +-import { Context } from "./Context"; +-import { EventAttributes } from "./EventAttributes"; +-import { Origin } from "./Origin"; + +@@ -14,5 +10,5 @@ export const BaseEvent: core.serialization.ObjectSchema (await import("../../..")).Domain), ++ context: core.serialization.lazyObject(async () => (await import("../../..")).Context), ++ attributes: core.serialization.lazyObject(async () => (await import("../../..")).EventAttributes).optional(), + callbackUrl: core.serialization.string().optional(), +@@ -20,3 +16,3 @@ export const BaseEvent: core.serialization.ObjectSchema (await import("../../..")).Origin).optional(), + namespaces: core.serialization.list(core.serialization.string()).optional(), +@@ -26,5 +22,5 @@ export declare namespace BaseEvent { + interface Raw { +- domain: Domain.Raw; +- context: Context.Raw; +- attributes?: EventAttributes.Raw | null; ++ domain: serializers.Domain.Raw; ++ context: serializers.Context.Raw; ++ attributes?: serializers.EventAttributes.Raw | null; + callbackUrl?: string | null; +@@ -32,3 +28,3 @@ export declare namespace BaseEvent { + target?: string | null; +- origin?: Origin.Raw | null; ++ origin?: serializers.Origin.Raw | null; + namespaces?: string[] | null; +diff --git a/src/serialization/resources/events/types/Context.ts b/src/serialization/resources/events/types/Context.ts +index f9c3faf..be5bd5b 100644 +--- a/src/serialization/resources/events/types/Context.ts ++++ b/src/serialization/resources/events/types/Context.ts +@@ -7,19 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EventContextSlugs } from "./EventContextSlugs"; +-import { ActionName } from "./ActionName"; +-import { AccountId } from "../../commons/types/AccountId"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; +-import { SheetId } from "../../commons/types/SheetId"; +-import { SheetSlug } from "./SheetSlug"; +-import { SnapshotId } from "../../commons/types/SnapshotId"; +-import { VersionId } from "../../commons/types/VersionId"; +-import { CommitId } from "../../commons/types/CommitId"; +-import { JobId } from "../../commons/types/JobId"; +-import { ProgramId } from "../../commons/types/ProgramId"; +-import { FileId } from "../../commons/types/FileId"; +-import { DocumentId } from "../../commons/types/DocumentId"; +-import { EventId } from "../../commons/types/EventId"; +-import { AppId } from "../../commons/types/AppId"; + +@@ -28,20 +11,19 @@ export const Context: core.serialization.ObjectSchema (await import("../../..")).EventContextSlugs).optional(), ++ actionName: core.serialization.lazy(async () => (await import("../../..")).ActionName).optional(), ++ accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), ++ spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), ++ workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), ++ sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId).optional(), ++ sheetSlug: core.serialization.lazy(async () => (await import("../../..")).SheetSlug).optional(), ++ snapshotId: core.serialization.lazy(async () => (await import("../../..")).SnapshotId).optional(), ++ versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), ++ commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ jobId: core.serialization.lazy(async () => (await import("../../..")).JobId).optional(), ++ programId: core.serialization.lazy(async () => (await import("../../..")).ProgramId).optional(), ++ fileId: core.serialization.lazy(async () => (await import("../../..")).FileId).optional(), ++ documentId: core.serialization.lazy(async () => (await import("../../..")).DocumentId).optional(), ++ precedingEventId: core.serialization.lazy(async () => (await import("../../..")).EventId).optional(), + actorId: core.serialization.string().optional(), +- appId: AppId.optional(), + }); +@@ -51,20 +33,19 @@ export declare namespace Context { + namespaces?: string[] | null; +- slugs?: EventContextSlugs.Raw | null; +- actionName?: ActionName.Raw | null; +- accountId: AccountId.Raw; +- environmentId: EnvironmentId.Raw; +- spaceId?: SpaceId.Raw | null; +- workbookId?: WorkbookId.Raw | null; +- sheetId?: SheetId.Raw | null; +- sheetSlug?: SheetSlug.Raw | null; +- snapshotId?: SnapshotId.Raw | null; +- versionId?: VersionId.Raw | null; +- commitId?: CommitId.Raw | null; +- jobId?: JobId.Raw | null; +- programId?: ProgramId.Raw | null; +- fileId?: FileId.Raw | null; +- documentId?: DocumentId.Raw | null; +- precedingEventId?: EventId.Raw | null; ++ slugs?: serializers.EventContextSlugs.Raw | null; ++ actionName?: serializers.ActionName.Raw | null; ++ accountId: serializers.AccountId.Raw; ++ environmentId: serializers.EnvironmentId.Raw; ++ spaceId?: serializers.SpaceId.Raw | null; ++ workbookId?: serializers.WorkbookId.Raw | null; ++ sheetId?: serializers.SheetId.Raw | null; ++ sheetSlug?: serializers.SheetSlug.Raw | null; ++ snapshotId?: serializers.SnapshotId.Raw | null; ++ versionId?: serializers.VersionId.Raw | null; ++ commitId?: serializers.CommitId.Raw | null; ++ jobId?: serializers.JobId.Raw | null; ++ programId?: serializers.ProgramId.Raw | null; ++ fileId?: serializers.FileId.Raw | null; ++ documentId?: serializers.DocumentId.Raw | null; ++ precedingEventId?: serializers.EventId.Raw | null; + actorId?: string | null; +- appId?: AppId.Raw | null; + } +diff --git a/src/serialization/resources/events/types/CreateEventConfig.ts b/src/serialization/resources/events/types/CreateEventConfig.ts +index 0fb6cee..92e0ac2 100644 +--- a/src/serialization/resources/events/types/CreateEventConfig.ts ++++ b/src/serialization/resources/events/types/CreateEventConfig.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EventTopic } from "./EventTopic"; +-import { BaseEvent } from "./BaseEvent"; + +@@ -15,3 +13,3 @@ export const CreateEventConfig: core.serialization.ObjectSchema< + .object({ +- topic: EventTopic, ++ topic: core.serialization.lazy(async () => (await import("../../..")).EventTopic), + payload: core.serialization.record(core.serialization.string(), core.serialization.any()), +@@ -19,7 +17,7 @@ export const CreateEventConfig: core.serialization.ObjectSchema< + }) +- .extend(BaseEvent); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseEvent)); + + export declare namespace CreateEventConfig { +- interface Raw extends BaseEvent.Raw { +- topic: EventTopic.Raw; ++ interface Raw extends serializers.BaseEvent.Raw { ++ topic: serializers.EventTopic.Raw; + payload: Record; +diff --git a/src/serialization/resources/events/types/Domain.ts b/src/serialization/resources/events/types/Domain.ts +index 25cf0c0..e35b638 100644 +--- a/src/serialization/resources/events/types/Domain.ts ++++ b/src/serialization/resources/events/types/Domain.ts +@@ -17,3 +17,2 @@ export const Domain: core.serialization.Schema (await import("../../..")).GenericEvent), ++ "agent:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "agent:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:archived": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:guestAdded": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "space:guestRemoved": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "document:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "document:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "document:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "workbook:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "workbook:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "workbook:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "workbook:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "sheet:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "sheet:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "sheet:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "snapshot:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "records:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "records:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "records:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "file:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "file:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "file:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "file:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:failed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:ready": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:scheduled": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:outcome-acknowledged": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "job:parts-completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "program:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "program:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "commit:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "commit:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "commit:completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "secret:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "secret:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "secret:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "layer:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), + }) +@@ -86,3 +84,2 @@ export declare namespace Event { + | Event.SheetDeleted +- | Event.SheetCountsUpdated + | Event.SnapshotCreated +@@ -114,3 +111,3 @@ export declare namespace Event { + +- interface AgentCreated extends GenericEvent.Raw { ++ interface AgentCreated extends serializers.GenericEvent.Raw { + topic: "agent:created"; +@@ -118,3 +115,3 @@ export declare namespace Event { + +- interface AgentUpdated extends GenericEvent.Raw { ++ interface AgentUpdated extends serializers.GenericEvent.Raw { + topic: "agent:updated"; +@@ -122,3 +119,3 @@ export declare namespace Event { + +- interface AgentDeleted extends GenericEvent.Raw { ++ interface AgentDeleted extends serializers.GenericEvent.Raw { + topic: "agent:deleted"; +@@ -126,3 +123,3 @@ export declare namespace Event { + +- interface SpaceCreated extends GenericEvent.Raw { ++ interface SpaceCreated extends serializers.GenericEvent.Raw { + topic: "space:created"; +@@ -130,3 +127,3 @@ export declare namespace Event { + +- interface SpaceUpdated extends GenericEvent.Raw { ++ interface SpaceUpdated extends serializers.GenericEvent.Raw { + topic: "space:updated"; +@@ -134,3 +131,3 @@ export declare namespace Event { + +- interface SpaceDeleted extends GenericEvent.Raw { ++ interface SpaceDeleted extends serializers.GenericEvent.Raw { + topic: "space:deleted"; +@@ -138,3 +135,3 @@ export declare namespace Event { + +- interface SpaceArchived extends GenericEvent.Raw { ++ interface SpaceArchived extends serializers.GenericEvent.Raw { + topic: "space:archived"; +@@ -142,3 +139,3 @@ export declare namespace Event { + +- interface SpaceExpired extends GenericEvent.Raw { ++ interface SpaceExpired extends serializers.GenericEvent.Raw { + topic: "space:expired"; +@@ -146,3 +143,3 @@ export declare namespace Event { + +- interface SpaceGuestAdded extends GenericEvent.Raw { ++ interface SpaceGuestAdded extends serializers.GenericEvent.Raw { + topic: "space:guestAdded"; +@@ -150,3 +147,3 @@ export declare namespace Event { + +- interface SpaceGuestRemoved extends GenericEvent.Raw { ++ interface SpaceGuestRemoved extends serializers.GenericEvent.Raw { + topic: "space:guestRemoved"; +@@ -154,3 +151,3 @@ export declare namespace Event { + +- interface DocumentCreated extends GenericEvent.Raw { ++ interface DocumentCreated extends serializers.GenericEvent.Raw { + topic: "document:created"; +@@ -158,3 +155,3 @@ export declare namespace Event { + +- interface DocumentUpdated extends GenericEvent.Raw { ++ interface DocumentUpdated extends serializers.GenericEvent.Raw { + topic: "document:updated"; +@@ -162,3 +159,3 @@ export declare namespace Event { + +- interface DocumentDeleted extends GenericEvent.Raw { ++ interface DocumentDeleted extends serializers.GenericEvent.Raw { + topic: "document:deleted"; +@@ -166,3 +163,3 @@ export declare namespace Event { + +- interface WorkbookCreated extends GenericEvent.Raw { ++ interface WorkbookCreated extends serializers.GenericEvent.Raw { + topic: "workbook:created"; +@@ -170,3 +167,3 @@ export declare namespace Event { + +- interface WorkbookUpdated extends GenericEvent.Raw { ++ interface WorkbookUpdated extends serializers.GenericEvent.Raw { + topic: "workbook:updated"; +@@ -174,3 +171,3 @@ export declare namespace Event { + +- interface WorkbookDeleted extends GenericEvent.Raw { ++ interface WorkbookDeleted extends serializers.GenericEvent.Raw { + topic: "workbook:deleted"; +@@ -178,3 +175,3 @@ export declare namespace Event { + +- interface WorkbookExpired extends GenericEvent.Raw { ++ interface WorkbookExpired extends serializers.GenericEvent.Raw { + topic: "workbook:expired"; +@@ -182,3 +179,3 @@ export declare namespace Event { + +- interface SheetCreated extends GenericEvent.Raw { ++ interface SheetCreated extends serializers.GenericEvent.Raw { + topic: "sheet:created"; +@@ -186,3 +183,3 @@ export declare namespace Event { + +- interface SheetUpdated extends GenericEvent.Raw { ++ interface SheetUpdated extends serializers.GenericEvent.Raw { + topic: "sheet:updated"; +@@ -190,3 +187,3 @@ export declare namespace Event { + +- interface SheetDeleted extends GenericEvent.Raw { ++ interface SheetDeleted extends serializers.GenericEvent.Raw { + topic: "sheet:deleted"; +@@ -194,7 +191,3 @@ export declare namespace Event { + +- interface SheetCountsUpdated extends GenericEvent.Raw { +- topic: "sheet:counts-updated"; +- } +- +- interface SnapshotCreated extends GenericEvent.Raw { ++ interface SnapshotCreated extends serializers.GenericEvent.Raw { + topic: "snapshot:created"; +@@ -202,3 +195,3 @@ export declare namespace Event { + +- interface RecordsCreated extends GenericEvent.Raw { ++ interface RecordsCreated extends serializers.GenericEvent.Raw { + topic: "records:created"; +@@ -206,3 +199,3 @@ export declare namespace Event { + +- interface RecordsUpdated extends GenericEvent.Raw { ++ interface RecordsUpdated extends serializers.GenericEvent.Raw { + topic: "records:updated"; +@@ -210,3 +203,3 @@ export declare namespace Event { + +- interface RecordsDeleted extends GenericEvent.Raw { ++ interface RecordsDeleted extends serializers.GenericEvent.Raw { + topic: "records:deleted"; +@@ -214,3 +207,3 @@ export declare namespace Event { + +- interface FileCreated extends GenericEvent.Raw { ++ interface FileCreated extends serializers.GenericEvent.Raw { + topic: "file:created"; +@@ -218,3 +211,3 @@ export declare namespace Event { + +- interface FileUpdated extends GenericEvent.Raw { ++ interface FileUpdated extends serializers.GenericEvent.Raw { + topic: "file:updated"; +@@ -222,3 +215,3 @@ export declare namespace Event { + +- interface FileDeleted extends GenericEvent.Raw { ++ interface FileDeleted extends serializers.GenericEvent.Raw { + topic: "file:deleted"; +@@ -226,3 +219,3 @@ export declare namespace Event { + +- interface FileExpired extends GenericEvent.Raw { ++ interface FileExpired extends serializers.GenericEvent.Raw { + topic: "file:expired"; +@@ -230,3 +223,3 @@ export declare namespace Event { + +- interface JobCreated extends GenericEvent.Raw { ++ interface JobCreated extends serializers.GenericEvent.Raw { + topic: "job:created"; +@@ -234,3 +227,3 @@ export declare namespace Event { + +- interface JobUpdated extends GenericEvent.Raw { ++ interface JobUpdated extends serializers.GenericEvent.Raw { + topic: "job:updated"; +@@ -238,3 +231,3 @@ export declare namespace Event { + +- interface JobDeleted extends GenericEvent.Raw { ++ interface JobDeleted extends serializers.GenericEvent.Raw { + topic: "job:deleted"; +@@ -242,3 +235,3 @@ export declare namespace Event { + +- interface JobFailed extends GenericEvent.Raw { ++ interface JobFailed extends serializers.GenericEvent.Raw { + topic: "job:failed"; +@@ -246,3 +239,3 @@ export declare namespace Event { + +- interface JobCompleted extends GenericEvent.Raw { ++ interface JobCompleted extends serializers.GenericEvent.Raw { + topic: "job:completed"; +@@ -250,3 +243,3 @@ export declare namespace Event { + +- interface JobReady extends GenericEvent.Raw { ++ interface JobReady extends serializers.GenericEvent.Raw { + topic: "job:ready"; +@@ -254,3 +247,3 @@ export declare namespace Event { + +- interface JobScheduled extends GenericEvent.Raw { ++ interface JobScheduled extends serializers.GenericEvent.Raw { + topic: "job:scheduled"; +@@ -258,3 +251,3 @@ export declare namespace Event { + +- interface JobOutcomeAcknowledged extends GenericEvent.Raw { ++ interface JobOutcomeAcknowledged extends serializers.GenericEvent.Raw { + topic: "job:outcome-acknowledged"; +@@ -262,3 +255,3 @@ export declare namespace Event { + +- interface JobPartsCompleted extends GenericEvent.Raw { ++ interface JobPartsCompleted extends serializers.GenericEvent.Raw { + topic: "job:parts-completed"; +@@ -266,3 +259,3 @@ export declare namespace Event { + +- interface ProgramCreated extends GenericEvent.Raw { ++ interface ProgramCreated extends serializers.GenericEvent.Raw { + topic: "program:created"; +@@ -270,3 +263,3 @@ export declare namespace Event { + +- interface ProgramUpdated extends GenericEvent.Raw { ++ interface ProgramUpdated extends serializers.GenericEvent.Raw { + topic: "program:updated"; +@@ -274,3 +267,3 @@ export declare namespace Event { + +- interface CommitCreated extends GenericEvent.Raw { ++ interface CommitCreated extends serializers.GenericEvent.Raw { + topic: "commit:created"; +@@ -278,3 +271,3 @@ export declare namespace Event { + +- interface CommitUpdated extends GenericEvent.Raw { ++ interface CommitUpdated extends serializers.GenericEvent.Raw { + topic: "commit:updated"; +@@ -282,3 +275,3 @@ export declare namespace Event { + +- interface CommitCompleted extends GenericEvent.Raw { ++ interface CommitCompleted extends serializers.GenericEvent.Raw { + topic: "commit:completed"; +@@ -286,3 +279,3 @@ export declare namespace Event { + +- interface SecretCreated extends GenericEvent.Raw { ++ interface SecretCreated extends serializers.GenericEvent.Raw { + topic: "secret:created"; +@@ -290,3 +283,3 @@ export declare namespace Event { + +- interface SecretUpdated extends GenericEvent.Raw { ++ interface SecretUpdated extends serializers.GenericEvent.Raw { + topic: "secret:updated"; +@@ -294,3 +287,3 @@ export declare namespace Event { + +- interface SecretDeleted extends GenericEvent.Raw { ++ interface SecretDeleted extends serializers.GenericEvent.Raw { + topic: "secret:deleted"; +@@ -298,3 +291,3 @@ export declare namespace Event { + +- interface LayerCreated extends GenericEvent.Raw { ++ interface LayerCreated extends serializers.GenericEvent.Raw { + topic: "layer:created"; +diff --git a/src/serialization/resources/events/types/EventAttributes.ts b/src/serialization/resources/events/types/EventAttributes.ts +index 2c3d7a3..b7491b6 100644 +--- a/src/serialization/resources/events/types/EventAttributes.ts ++++ b/src/serialization/resources/events/types/EventAttributes.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Progress } from "./Progress"; + +@@ -14,3 +13,3 @@ export const EventAttributes: core.serialization.ObjectSchema< + targetUpdatedAt: core.serialization.date().optional(), +- progress: Progress.optional(), ++ progress: core.serialization.lazyObject(async () => (await import("../../..")).Progress).optional(), + }); +@@ -20,3 +19,3 @@ export declare namespace EventAttributes { + targetUpdatedAt?: string | null; +- progress?: Progress.Raw | null; ++ progress?: serializers.Progress.Raw | null; + } +diff --git a/src/serialization/resources/events/types/EventResponse.ts b/src/serialization/resources/events/types/EventResponse.ts +index 01c2432..ed7cea4 100644 +--- a/src/serialization/resources/events/types/EventResponse.ts ++++ b/src/serialization/resources/events/types/EventResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Event } from "./Event"; + +@@ -11,3 +10,3 @@ export const EventResponse: core.serialization.ObjectSchema (await import("../../..")).Event), + }); +@@ -16,3 +15,3 @@ export declare namespace EventResponse { + interface Raw { +- data: Event.Raw; ++ data: serializers.Event.Raw; + } +diff --git a/src/serialization/resources/events/types/EventTopic.ts b/src/serialization/resources/events/types/EventTopic.ts +index 5805426..8302ee9 100644 +--- a/src/serialization/resources/events/types/EventTopic.ts ++++ b/src/serialization/resources/events/types/EventTopic.ts +@@ -30,3 +30,2 @@ export const EventTopic: core.serialization.Schema (await import("../../..")).EventId), + createdAt: core.serialization.date(), +@@ -20,7 +18,7 @@ export const GenericEvent: core.serialization.ObjectSchema (await import("../../..")).BaseEvent)); + + export declare namespace GenericEvent { +- interface Raw extends BaseEvent.Raw { +- id: EventId.Raw; ++ interface Raw extends serializers.BaseEvent.Raw { ++ id: serializers.EventId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/events/types/ListAllEventsResponse.ts b/src/serialization/resources/events/types/ListAllEventsResponse.ts +index ea80637..4a5a4df 100644 +--- a/src/serialization/resources/events/types/ListAllEventsResponse.ts ++++ b/src/serialization/resources/events/types/ListAllEventsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Event } from "./Event"; + +@@ -13,3 +12,3 @@ export const ListAllEventsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Event), ++ data: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).Event)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListAllEventsResponse { + interface Raw { +- data: Event.Raw[]; ++ data: serializers.Event.Raw[]; + } +diff --git a/src/serialization/resources/files/client/requests/UpdateFileRequest.ts b/src/serialization/resources/files/client/requests/UpdateFileRequest.ts +index cdac336..c051d5b 100644 +--- a/src/serialization/resources/files/client/requests/UpdateFileRequest.ts ++++ b/src/serialization/resources/files/client/requests/UpdateFileRequest.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; +-import { WorkbookId } from "../../../commons/types/WorkbookId"; +-import { Mode } from "../../types/Mode"; +-import { ModelFileStatusEnum } from "../../types/ModelFileStatusEnum"; +-import { Action } from "../../../commons/types/Action"; + +@@ -16,7 +12,9 @@ export const UpdateFileRequest: core.serialization.Schema< + > = core.serialization.object({ +- workbookId: WorkbookId.optional(), ++ workbookId: core.serialization.lazy(async () => (await import("../../../..")).WorkbookId).optional(), + name: core.serialization.string().optional(), +- mode: Mode.optional(), +- status: ModelFileStatusEnum.optional(), +- actions: core.serialization.list(Action).optional(), ++ mode: core.serialization.lazy(async () => (await import("../../../..")).Mode).optional(), ++ status: core.serialization.lazy(async () => (await import("../../../..")).ModelFileStatusEnum).optional(), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../../..")).Action)) ++ .optional(), + }); +@@ -25,7 +23,7 @@ export declare namespace UpdateFileRequest { + interface Raw { +- workbookId?: WorkbookId.Raw | null; ++ workbookId?: serializers.WorkbookId.Raw | null; + name?: string | null; +- mode?: Mode.Raw | null; +- status?: ModelFileStatusEnum.Raw | null; +- actions?: Action.Raw[] | null; ++ mode?: serializers.Mode.Raw | null; ++ status?: serializers.ModelFileStatusEnum.Raw | null; ++ actions?: serializers.Action.Raw[] | null; + } +diff --git a/src/serialization/resources/files/types/FileResponse.ts b/src/serialization/resources/files/types/FileResponse.ts +index dfdcf4a..6d471d0 100644 +--- a/src/serialization/resources/files/types/FileResponse.ts ++++ b/src/serialization/resources/files/types/FileResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { File_ } from "./File_"; + +@@ -11,3 +10,3 @@ export const FileResponse: core.serialization.ObjectSchema (await import("../../..")).File_), + }); +@@ -16,3 +15,3 @@ export declare namespace FileResponse { + interface Raw { +- data: File_.Raw; ++ data: serializers.File_.Raw; + } +diff --git a/src/serialization/resources/files/types/File_.ts b/src/serialization/resources/files/types/File_.ts +index e51ec4e..be5afe6 100644 +--- a/src/serialization/resources/files/types/File_.ts ++++ b/src/serialization/resources/files/types/File_.ts +@@ -7,12 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { FileId } from "../../commons/types/FileId"; +-import { ModelFileStatusEnum } from "./ModelFileStatusEnum"; +-import { Mode } from "./Mode"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; +-import { SheetId } from "../../commons/types/SheetId"; +-import { Action } from "../../commons/types/Action"; + + export const File_: core.serialization.ObjectSchema = core.serialization.object({ +- id: FileId, ++ id: core.serialization.lazy(async () => (await import("../../..")).FileId), + name: core.serialization.string(), +@@ -21,4 +14,4 @@ export const File_: core.serialization.ObjectSchema (await import("../../..")).ModelFileStatusEnum), ++ mode: core.serialization.lazy(async () => (await import("../../..")).Mode).optional(), + size: core.serialization.number(), +@@ -28,6 +21,8 @@ export const File_: core.serialization.ObjectSchema (await import("../../..")).SpaceId), ++ workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), ++ sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId).optional(), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) ++ .optional(), + }); +@@ -36,3 +31,3 @@ export declare namespace File_ { + interface Raw { +- id: FileId.Raw; ++ id: serializers.FileId.Raw; + name: string; +@@ -41,4 +36,4 @@ export declare namespace File_ { + encoding: string; +- status: ModelFileStatusEnum.Raw; +- mode?: Mode.Raw | null; ++ status: serializers.ModelFileStatusEnum.Raw; ++ mode?: serializers.Mode.Raw | null; + size: number; +@@ -48,6 +43,6 @@ export declare namespace File_ { + expiredAt?: string | null; +- spaceId: SpaceId.Raw; +- workbookId?: WorkbookId.Raw | null; +- sheetId?: SheetId.Raw | null; +- actions?: Action.Raw[] | null; ++ spaceId: serializers.SpaceId.Raw; ++ workbookId?: serializers.WorkbookId.Raw | null; ++ sheetId?: serializers.SheetId.Raw | null; ++ actions?: serializers.Action.Raw[] | null; + } +diff --git a/src/serialization/resources/files/types/ListFilesResponse.ts b/src/serialization/resources/files/types/ListFilesResponse.ts +index 3fd4366..031df46 100644 +--- a/src/serialization/resources/files/types/ListFilesResponse.ts ++++ b/src/serialization/resources/files/types/ListFilesResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { File_ } from "./File_"; + +@@ -14,4 +12,4 @@ export const ListFilesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(File_), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).File_)), + }); +@@ -20,4 +18,4 @@ export declare namespace ListFilesResponse { + interface Raw { +- pagination?: Pagination.Raw | null; +- data: File_.Raw[]; ++ pagination?: serializers.Pagination.Raw | null; ++ data: serializers.File_.Raw[]; + } +diff --git a/src/serialization/resources/foreigndb/index.ts b/src/serialization/resources/foreigndb/index.ts +deleted file mode 100644 +index eea524d..0000000 +--- a/src/serialization/resources/foreigndb/index.ts ++++ /dev/null +@@ -1 +0,0 @@ +-export * from "./types"; +diff --git a/src/serialization/resources/foreigndb/types/DatabaseTask.ts b/src/serialization/resources/foreigndb/types/DatabaseTask.ts +deleted file mode 100644 +index 0ecae12..0000000 +--- a/src/serialization/resources/foreigndb/types/DatabaseTask.ts ++++ /dev/null +@@ -1,22 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const DatabaseTask: core.serialization.ObjectSchema = +- core.serialization.object({ +- status: core.serialization.string(), +- type: core.serialization.string(), +- progress: core.serialization.number(), +- }); +- +-export declare namespace DatabaseTask { +- interface Raw { +- status: string; +- type: string; +- progress: number; +- } +-} +diff --git a/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts b/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts +deleted file mode 100644 +index c2ed67a..0000000 +--- a/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts ++++ /dev/null +@@ -1,21 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { DatabaseTask } from "./DatabaseTask"; +- +-export const GetDatabaseResponse: core.serialization.ObjectSchema< +- serializers.GetDatabaseResponse.Raw, +- Flatfile.GetDatabaseResponse +-> = core.serialization.object({ +- task: DatabaseTask, +-}); +- +-export declare namespace GetDatabaseResponse { +- interface Raw { +- task: DatabaseTask.Raw; +- } +-} +diff --git a/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts b/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts +deleted file mode 100644 +index 60c4812..0000000 +--- a/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts ++++ /dev/null +@@ -1,22 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const GetDatabaseUserResponse: core.serialization.ObjectSchema< +- serializers.GetDatabaseUserResponse.Raw, +- Flatfile.GetDatabaseUserResponse +-> = core.serialization.object({ +- username: core.serialization.string(), +- password: core.serialization.string(), +-}); +- +-export declare namespace GetDatabaseUserResponse { +- interface Raw { +- username: string; +- password: string; +- } +-} +diff --git a/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts b/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts +deleted file mode 100644 +index 54f0df8..0000000 +--- a/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts ++++ /dev/null +@@ -1,20 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const RestoreDatabaseRequest: core.serialization.ObjectSchema< +- serializers.RestoreDatabaseRequest.Raw, +- Flatfile.RestoreDatabaseRequest +-> = core.serialization.object({ +- fileId: core.serialization.string(), +-}); +- +-export declare namespace RestoreDatabaseRequest { +- interface Raw { +- fileId: string; +- } +-} +diff --git a/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts b/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts +deleted file mode 100644 +index 963dfea..0000000 +--- a/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts ++++ /dev/null +@@ -1,24 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const RestoreDatabaseResponse: core.serialization.ObjectSchema< +- serializers.RestoreDatabaseResponse.Raw, +- Flatfile.RestoreDatabaseResponse +-> = core.serialization.object({ +- host: core.serialization.string(), +- port: core.serialization.number(), +- dbname: core.serialization.string(), +-}); +- +-export declare namespace RestoreDatabaseResponse { +- interface Raw { +- host: string; +- port: number; +- dbname: string; +- } +-} +diff --git a/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts b/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts +deleted file mode 100644 +index 6aada70..0000000 +--- a/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts ++++ /dev/null +@@ -1,20 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const UploadToObjectStorageRequest: core.serialization.ObjectSchema< +- serializers.UploadToObjectStorageRequest.Raw, +- Flatfile.UploadToObjectStorageRequest +-> = core.serialization.object({ +- fileId: core.serialization.string(), +-}); +- +-export declare namespace UploadToObjectStorageRequest { +- interface Raw { +- fileId: string; +- } +-} +diff --git a/src/serialization/resources/foreigndb/types/index.ts b/src/serialization/resources/foreigndb/types/index.ts +deleted file mode 100644 +index 8086286..0000000 +--- a/src/serialization/resources/foreigndb/types/index.ts ++++ /dev/null +@@ -1,6 +0,0 @@ +-export * from "./UploadToObjectStorageRequest"; +-export * from "./RestoreDatabaseRequest"; +-export * from "./RestoreDatabaseResponse"; +-export * from "./GetDatabaseResponse"; +-export * from "./DatabaseTask"; +-export * from "./GetDatabaseUserResponse"; +diff --git a/src/serialization/resources/guests/client/create.ts b/src/serialization/resources/guests/client/create.ts +index 864ae1c..cb67c36 100644 +--- a/src/serialization/resources/guests/client/create.ts ++++ b/src/serialization/resources/guests/client/create.ts +@@ -7,9 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GuestConfig } from "../types/GuestConfig"; + + export const Request: core.serialization.Schema = +- core.serialization.list(GuestConfig); ++ core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).GuestConfig)); + + export declare namespace Request { +- type Raw = GuestConfig.Raw[]; ++ type Raw = serializers.GuestConfig.Raw[]; + } +diff --git a/src/serialization/resources/guests/client/invite.ts b/src/serialization/resources/guests/client/invite.ts +index 6c27969..efd1d9d 100644 +--- a/src/serialization/resources/guests/client/invite.ts ++++ b/src/serialization/resources/guests/client/invite.ts +@@ -7,9 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Invite } from "../types/Invite"; + + export const Request: core.serialization.Schema = +- core.serialization.list(Invite); ++ core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Invite)); + + export declare namespace Request { +- type Raw = Invite.Raw[]; ++ type Raw = serializers.Invite.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/CreateGuestResponse.ts b/src/serialization/resources/guests/types/CreateGuestResponse.ts +index 153dc3f..83ae108 100644 +--- a/src/serialization/resources/guests/types/CreateGuestResponse.ts ++++ b/src/serialization/resources/guests/types/CreateGuestResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Guest } from "./Guest"; + +@@ -13,3 +12,3 @@ export const CreateGuestResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Guest), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Guest)), + }); +@@ -18,3 +17,3 @@ export declare namespace CreateGuestResponse { + interface Raw { +- data: Guest.Raw[]; ++ data: serializers.Guest.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/Guest.ts b/src/serialization/resources/guests/types/Guest.ts +index 6eddce0..7e86e97 100644 +--- a/src/serialization/resources/guests/types/Guest.ts ++++ b/src/serialization/resources/guests/types/Guest.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GuestId } from "../../commons/types/GuestId"; +-import { GuestConfig } from "./GuestConfig"; + +@@ -12,3 +10,3 @@ export const Guest: core.serialization.ObjectSchema (await import("../../..")).GuestId), + createdAt: core.serialization.date(), +@@ -16,7 +14,7 @@ export const Guest: core.serialization.ObjectSchema (await import("../../..")).GuestConfig)); + + export declare namespace Guest { +- interface Raw extends GuestConfig.Raw { +- id: GuestId.Raw; ++ interface Raw extends serializers.GuestConfig.Raw { ++ id: serializers.GuestId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/guests/types/GuestConfig.ts b/src/serialization/resources/guests/types/GuestConfig.ts +index c329126..d996f49 100644 +--- a/src/serialization/resources/guests/types/GuestConfig.ts ++++ b/src/serialization/resources/guests/types/GuestConfig.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { GuestSpace } from "./GuestSpace"; + +@@ -12,6 +10,8 @@ export const GuestConfig: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId), + email: core.serialization.string(), + name: core.serialization.string(), +- spaces: core.serialization.list(GuestSpace), ++ spaces: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).GuestSpace) ++ ), + }); +@@ -20,6 +20,6 @@ export declare namespace GuestConfig { + interface Raw { +- environmentId: EnvironmentId.Raw; ++ environmentId: serializers.EnvironmentId.Raw; + email: string; + name: string; +- spaces: GuestSpace.Raw[]; ++ spaces: serializers.GuestSpace.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/GuestConfigUpdate.ts b/src/serialization/resources/guests/types/GuestConfigUpdate.ts +index 53eed6f..38c8b39 100644 +--- a/src/serialization/resources/guests/types/GuestConfigUpdate.ts ++++ b/src/serialization/resources/guests/types/GuestConfigUpdate.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { GuestSpace } from "./GuestSpace"; + +@@ -14,6 +12,8 @@ export const GuestConfigUpdate: core.serialization.ObjectSchema< + > = core.serialization.object({ +- environmentId: EnvironmentId.optional(), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), + email: core.serialization.string().optional(), + name: core.serialization.string().optional(), +- spaces: core.serialization.list(GuestSpace).optional(), ++ spaces: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).GuestSpace)) ++ .optional(), + }); +@@ -22,6 +22,6 @@ export declare namespace GuestConfigUpdate { + interface Raw { +- environmentId?: EnvironmentId.Raw | null; ++ environmentId?: serializers.EnvironmentId.Raw | null; + email?: string | null; + name?: string | null; +- spaces?: GuestSpace.Raw[] | null; ++ spaces?: serializers.GuestSpace.Raw[] | null; + } +diff --git a/src/serialization/resources/guests/types/GuestResponse.ts b/src/serialization/resources/guests/types/GuestResponse.ts +index 940f16b..89a0694 100644 +--- a/src/serialization/resources/guests/types/GuestResponse.ts ++++ b/src/serialization/resources/guests/types/GuestResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Guest } from "./Guest"; + +@@ -11,3 +10,3 @@ export const GuestResponse: core.serialization.ObjectSchema (await import("../../..")).Guest), + }); +@@ -16,3 +15,3 @@ export declare namespace GuestResponse { + interface Raw { +- data: Guest.Raw; ++ data: serializers.Guest.Raw; + } +diff --git a/src/serialization/resources/guests/types/GuestSpace.ts b/src/serialization/resources/guests/types/GuestSpace.ts +index dfe9099..9b80f8a 100644 +--- a/src/serialization/resources/guests/types/GuestSpace.ts ++++ b/src/serialization/resources/guests/types/GuestSpace.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { GuestWorkbook } from "./GuestWorkbook"; + +@@ -12,4 +10,6 @@ export const GuestSpace: core.serialization.ObjectSchema (await import("../../..")).SpaceId), ++ workbooks: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).GuestWorkbook)) ++ .optional(), + lastAccessed: core.serialization.date().optional(), +@@ -19,4 +19,4 @@ export declare namespace GuestSpace { + interface Raw { +- id: SpaceId.Raw; +- workbooks?: GuestWorkbook.Raw[] | null; ++ id: serializers.SpaceId.Raw; ++ workbooks?: serializers.GuestWorkbook.Raw[] | null; + lastAccessed?: string | null; +diff --git a/src/serialization/resources/guests/types/GuestTokenResponse.ts b/src/serialization/resources/guests/types/GuestTokenResponse.ts +index c1f31b5..29ed00c 100644 +--- a/src/serialization/resources/guests/types/GuestTokenResponse.ts ++++ b/src/serialization/resources/guests/types/GuestTokenResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GuestToken } from "./GuestToken"; + +@@ -13,3 +12,3 @@ export const GuestTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: GuestToken, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).GuestToken), + }); +@@ -18,3 +17,3 @@ export declare namespace GuestTokenResponse { + interface Raw { +- data: GuestToken.Raw; ++ data: serializers.GuestToken.Raw; + } +diff --git a/src/serialization/resources/guests/types/GuestWorkbook.ts b/src/serialization/resources/guests/types/GuestWorkbook.ts +index d4d47c5..a98d6e0 100644 +--- a/src/serialization/resources/guests/types/GuestWorkbook.ts ++++ b/src/serialization/resources/guests/types/GuestWorkbook.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; + +@@ -11,3 +10,3 @@ export const GuestWorkbook: core.serialization.ObjectSchema (await import("../../..")).WorkbookId), + }); +@@ -16,3 +15,3 @@ export declare namespace GuestWorkbook { + interface Raw { +- id: WorkbookId.Raw; ++ id: serializers.WorkbookId.Raw; + } +diff --git a/src/serialization/resources/guests/types/Invite.ts b/src/serialization/resources/guests/types/Invite.ts +index 3b68895..c13ddcc 100644 +--- a/src/serialization/resources/guests/types/Invite.ts ++++ b/src/serialization/resources/guests/types/Invite.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GuestId } from "../../commons/types/GuestId"; +-import { SpaceId } from "../../commons/types/SpaceId"; + +@@ -12,4 +10,4 @@ export const Invite: core.serialization.ObjectSchema (await import("../../..")).GuestId), ++ spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId), + fromName: core.serialization.string().optional(), +@@ -20,4 +18,4 @@ export declare namespace Invite { + interface Raw { +- guestId: GuestId.Raw; +- spaceId: SpaceId.Raw; ++ guestId: serializers.GuestId.Raw; ++ spaceId: serializers.SpaceId.Raw; + fromName?: string | null; +diff --git a/src/serialization/resources/guests/types/ListGuestsResponse.ts b/src/serialization/resources/guests/types/ListGuestsResponse.ts +index fd06575..3c56e62 100644 +--- a/src/serialization/resources/guests/types/ListGuestsResponse.ts ++++ b/src/serialization/resources/guests/types/ListGuestsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Guest } from "./Guest"; + +@@ -13,3 +12,3 @@ export const ListGuestsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Guest), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Guest)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListGuestsResponse { + interface Raw { +- data: Guest.Raw[]; ++ data: serializers.Guest.Raw[]; + } +diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts +index 481e6bc..06437e8 100644 +--- a/src/serialization/resources/index.ts ++++ b/src/serialization/resources/index.ts +@@ -1,3 +1 @@ +-export * as accounts from "./accounts"; +-export * from "./accounts/types"; + export * as agents from "./agents"; +@@ -6,4 +4,2 @@ export * as apps from "./apps"; + export * from "./apps/types"; +-export * as assistant from "./assistant"; +-export * from "./assistant/types"; + export * as auth from "./auth"; +@@ -28,4 +24,2 @@ export * as files from "./files"; + export * from "./files/types"; +-export * as foreigndb from "./foreigndb"; +-export * from "./foreigndb/types"; + export * as guests from "./guests"; +diff --git a/src/serialization/resources/jobs/client/ack.ts b/src/serialization/resources/jobs/client/ack.ts +index 5d541b3..6093d08 100644 +--- a/src/serialization/resources/jobs/client/ack.ts ++++ b/src/serialization/resources/jobs/client/ack.ts +@@ -7,9 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobAckDetails } from "../types/JobAckDetails"; + + export const Request: core.serialization.Schema = +- JobAckDetails.optional(); ++ core.serialization.lazyObject(async () => (await import("../../..")).JobAckDetails).optional(); + + export declare namespace Request { +- type Raw = JobAckDetails.Raw | null | undefined; ++ type Raw = serializers.JobAckDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/cancel.ts b/src/serialization/resources/jobs/client/cancel.ts +index 8751b32..d1a7e1b 100644 +--- a/src/serialization/resources/jobs/client/cancel.ts ++++ b/src/serialization/resources/jobs/client/cancel.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobCancelDetails } from "../types/JobCancelDetails"; + +@@ -12,6 +11,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCancelDetails | undefined +-> = JobCancelDetails.optional(); ++> = core.serialization.lazyObject(async () => (await import("../../..")).JobCancelDetails).optional(); + + export declare namespace Request { +- type Raw = JobCancelDetails.Raw | null | undefined; ++ type Raw = serializers.JobCancelDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/complete.ts b/src/serialization/resources/jobs/client/complete.ts +index 84761c5..2c1a1f5 100644 +--- a/src/serialization/resources/jobs/client/complete.ts ++++ b/src/serialization/resources/jobs/client/complete.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobCompleteDetails } from "../types/JobCompleteDetails"; + +@@ -12,6 +11,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCompleteDetails | undefined +-> = JobCompleteDetails.optional(); ++> = core.serialization.lazyObject(async () => (await import("../../..")).JobCompleteDetails).optional(); + + export declare namespace Request { +- type Raw = JobCompleteDetails.Raw | null | undefined; ++ type Raw = serializers.JobCompleteDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/fail.ts b/src/serialization/resources/jobs/client/fail.ts +index 675ecdc..87d0ca9 100644 +--- a/src/serialization/resources/jobs/client/fail.ts ++++ b/src/serialization/resources/jobs/client/fail.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobCompleteDetails } from "../types/JobCompleteDetails"; + +@@ -12,6 +11,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCompleteDetails | undefined +-> = JobCompleteDetails.optional(); ++> = core.serialization.lazyObject(async () => (await import("../../..")).JobCompleteDetails).optional(); + + export declare namespace Request { +- type Raw = JobCompleteDetails.Raw | null | undefined; ++ type Raw = serializers.JobCompleteDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/types/CategoryMapping.ts b/src/serialization/resources/jobs/types/CategoryMapping.ts +index 4d7c7ae..e4a805e 100644 +--- a/src/serialization/resources/jobs/types/CategoryMapping.ts ++++ b/src/serialization/resources/jobs/types/CategoryMapping.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EnumValue } from "./EnumValue"; + +@@ -13,4 +12,4 @@ export const CategoryMapping: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceValue: EnumValue.optional(), +- destinationValue: EnumValue.optional(), ++ sourceValue: core.serialization.lazy(async () => (await import("../../..")).EnumValue).optional(), ++ destinationValue: core.serialization.lazy(async () => (await import("../../..")).EnumValue).optional(), + }); +@@ -19,4 +18,4 @@ export declare namespace CategoryMapping { + interface Raw { +- sourceValue?: EnumValue.Raw | null; +- destinationValue?: EnumValue.Raw | null; ++ sourceValue?: serializers.EnumValue.Raw | null; ++ destinationValue?: serializers.EnumValue.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts b/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts +index 59fe917..c57ef84 100644 +--- a/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts ++++ b/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Filter } from "../../commons/types/Filter"; +-import { FilterField } from "../../commons/types/FilterField"; +-import { SearchValue } from "../../commons/types/SearchValue"; +-import { SearchField } from "../../commons/types/SearchField"; +-import { SheetId } from "../../commons/types/SheetId"; +-import { RecordId } from "../../commons/types/RecordId"; + +@@ -18,9 +12,11 @@ export const DeleteRecordsJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- filter: Filter.optional(), +- filterField: FilterField.optional(), +- searchValue: SearchValue.optional(), +- searchField: SearchField.optional(), ++ filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), ++ filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), ++ searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), ++ searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), + q: core.serialization.string().optional(), +- sheet: SheetId, +- exceptions: core.serialization.list(RecordId).optional(), ++ sheet: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ exceptions: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).RecordId)) ++ .optional(), + }); +@@ -29,9 +25,9 @@ export declare namespace DeleteRecordsJobConfig { + interface Raw { +- filter?: Filter.Raw | null; +- filterField?: FilterField.Raw | null; +- searchValue?: SearchValue.Raw | null; +- searchField?: SearchField.Raw | null; ++ filter?: serializers.Filter.Raw | null; ++ filterField?: serializers.FilterField.Raw | null; ++ searchValue?: serializers.SearchValue.Raw | null; ++ searchField?: serializers.SearchField.Raw | null; + q?: string | null; +- sheet: SheetId.Raw; +- exceptions?: RecordId.Raw[] | null; ++ sheet: serializers.SheetId.Raw; ++ exceptions?: serializers.RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/DestinationField.ts b/src/serialization/resources/jobs/types/DestinationField.ts +index 3fc0838..31e1f45 100644 +--- a/src/serialization/resources/jobs/types/DestinationField.ts ++++ b/src/serialization/resources/jobs/types/DestinationField.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Property } from "../../property/types/Property"; + +@@ -13,3 +12,3 @@ export const DestinationField: core.serialization.ObjectSchema< + > = core.serialization.object({ +- destinationField: Property, ++ destinationField: core.serialization.lazy(async () => (await import("../../..")).Property), + preview: core.serialization.list(core.serialization.string()).optional(), +@@ -19,3 +18,3 @@ export declare namespace DestinationField { + interface Raw { +- destinationField: Property.Raw; ++ destinationField: serializers.Property.Raw; + preview?: string[] | null; +diff --git a/src/serialization/resources/jobs/types/Edge.ts b/src/serialization/resources/jobs/types/Edge.ts +index 21d4702..213c1d7 100644 +--- a/src/serialization/resources/jobs/types/Edge.ts ++++ b/src/serialization/resources/jobs/types/Edge.ts +@@ -7,12 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Property } from "../../property/types/Property"; +-import { EnumDetails } from "./EnumDetails"; +-import { Metadata } from "./Metadata"; + + export const Edge: core.serialization.ObjectSchema = core.serialization.object({ +- sourceField: Property, +- destinationField: Property, ++ sourceField: core.serialization.lazy(async () => (await import("../../..")).Property), ++ destinationField: core.serialization.lazy(async () => (await import("../../..")).Property), + preview: core.serialization.list(core.serialization.string()).optional(), +- enumDetails: EnumDetails.optional(), +- metadata: Metadata.optional(), ++ enumDetails: core.serialization.lazyObject(async () => (await import("../../..")).EnumDetails).optional(), ++ metadata: core.serialization.lazyObject(async () => (await import("../../..")).Metadata).optional(), + }); +@@ -21,7 +18,7 @@ export declare namespace Edge { + interface Raw { +- sourceField: Property.Raw; +- destinationField: Property.Raw; ++ sourceField: serializers.Property.Raw; ++ destinationField: serializers.Property.Raw; + preview?: string[] | null; +- enumDetails?: EnumDetails.Raw | null; +- metadata?: Metadata.Raw | null; ++ enumDetails?: serializers.EnumDetails.Raw | null; ++ metadata?: serializers.Metadata.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/EnumDetails.ts b/src/serialization/resources/jobs/types/EnumDetails.ts +index a1b6ea5..bb54392 100644 +--- a/src/serialization/resources/jobs/types/EnumDetails.ts ++++ b/src/serialization/resources/jobs/types/EnumDetails.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CategoryMapping } from "./CategoryMapping"; +-import { EnumValue } from "./EnumValue"; + +@@ -12,5 +10,11 @@ export const EnumDetails: core.serialization.ObjectSchema (await import("../../..")).CategoryMapping) ++ ), ++ unusedSourceValues: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).EnumValue)) ++ .optional(), ++ unusedDestinationValues: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).EnumValue)) ++ .optional(), + }); +@@ -19,5 +23,5 @@ export declare namespace EnumDetails { + interface Raw { +- mapping: CategoryMapping.Raw[]; +- unusedSourceValues?: EnumValue.Raw[] | null; +- unusedDestinationValues?: EnumValue.Raw[] | null; ++ mapping: serializers.CategoryMapping.Raw[]; ++ unusedSourceValues?: serializers.EnumValue.Raw[] | null; ++ unusedDestinationValues?: serializers.EnumValue.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/ExportJobConfig.ts b/src/serialization/resources/jobs/types/ExportJobConfig.ts +index 6ec7e0e..a846432 100644 +--- a/src/serialization/resources/jobs/types/ExportJobConfig.ts ++++ b/src/serialization/resources/jobs/types/ExportJobConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ExportOptions } from "./ExportOptions"; + +@@ -13,3 +12,3 @@ export const ExportJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- options: ExportOptions, ++ options: core.serialization.lazyObject(async () => (await import("../../..")).ExportOptions), + }); +@@ -18,3 +17,3 @@ export declare namespace ExportJobConfig { + interface Raw { +- options: ExportOptions.Raw; ++ options: serializers.ExportOptions.Raw; + } +diff --git a/src/serialization/resources/jobs/types/ExportOptions.ts b/src/serialization/resources/jobs/types/ExportOptions.ts +index 69719ef..a8f4db9 100644 +--- a/src/serialization/resources/jobs/types/ExportOptions.ts ++++ b/src/serialization/resources/jobs/types/ExportOptions.ts +@@ -7,11 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { VersionId } from "../../commons/types/VersionId"; +-import { CommitId } from "../../commons/types/CommitId"; +-import { SortField } from "../../commons/types/SortField"; +-import { SortDirection } from "../../commons/types/SortDirection"; +-import { Filter } from "../../commons/types/Filter"; +-import { FilterField } from "../../commons/types/FilterField"; +-import { SearchValue } from "../../commons/types/SearchValue"; +-import { SearchField } from "../../commons/types/SearchField"; +-import { RecordId } from "../../commons/types/RecordId"; + +@@ -19,12 +10,14 @@ export const ExportOptions: core.serialization.ObjectSchema (await import("../../..")).VersionId).optional(), ++ commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ sortField: core.serialization.lazy(async () => (await import("../../..")).SortField).optional(), ++ sortDirection: core.serialization.lazy(async () => (await import("../../..")).SortDirection).optional(), ++ filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), ++ filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), ++ searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), ++ searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), + q: core.serialization.string().optional(), +- ids: core.serialization.list(RecordId).optional(), ++ ids: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).RecordId)) ++ .optional(), + }); +@@ -33,12 +26,12 @@ export declare namespace ExportOptions { + interface Raw { +- versionId?: VersionId.Raw | null; +- commitId?: CommitId.Raw | null; +- sortField?: SortField.Raw | null; +- sortDirection?: SortDirection.Raw | null; +- filter?: Filter.Raw | null; +- filterField?: FilterField.Raw | null; +- searchValue?: SearchValue.Raw | null; +- searchField?: SearchField.Raw | null; ++ versionId?: serializers.VersionId.Raw | null; ++ commitId?: serializers.CommitId.Raw | null; ++ sortField?: serializers.SortField.Raw | null; ++ sortDirection?: serializers.SortDirection.Raw | null; ++ filter?: serializers.Filter.Raw | null; ++ filterField?: serializers.FilterField.Raw | null; ++ searchValue?: serializers.SearchValue.Raw | null; ++ searchField?: serializers.SearchField.Raw | null; + q?: string | null; +- ids?: RecordId.Raw[] | null; ++ ids?: serializers.RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/FileJobConfig.ts b/src/serialization/resources/jobs/types/FileJobConfig.ts +index 2264e24..24589c9 100644 +--- a/src/serialization/resources/jobs/types/FileJobConfig.ts ++++ b/src/serialization/resources/jobs/types/FileJobConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Driver } from "./Driver"; + +@@ -11,3 +10,3 @@ export const FileJobConfig: core.serialization.ObjectSchema (await import("../../..")).Driver), + options: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -17,3 +16,3 @@ export declare namespace FileJobConfig { + interface Raw { +- driver: Driver.Raw; ++ driver: serializers.Driver.Raw; + options?: Record | null; +diff --git a/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts b/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts +index a2173f9..4053fe5 100644 +--- a/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts ++++ b/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Filter } from "../../commons/types/Filter"; +-import { FilterField } from "../../commons/types/FilterField"; +-import { SearchValue } from "../../commons/types/SearchValue"; +-import { SearchField } from "../../commons/types/SearchField"; +-import { RecordId } from "../../commons/types/RecordId"; +-import { CellValueUnion } from "../../records/types/CellValueUnion"; + +@@ -18,10 +12,10 @@ export const FindAndReplaceJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- filter: Filter.optional(), +- filterField: FilterField.optional(), +- searchValue: SearchValue.optional(), +- searchField: SearchField.optional(), ++ filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), ++ filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), ++ searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), ++ searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), + q: core.serialization.string().optional(), +- ids: core.serialization.list(RecordId).optional(), +- find: CellValueUnion.optional(), +- replace: CellValueUnion.optional(), ++ ids: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordId)).optional(), ++ find: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), ++ replace: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), + fieldKey: core.serialization.string(), +@@ -31,10 +25,10 @@ export declare namespace FindAndReplaceJobConfig { + interface Raw { +- filter?: Filter.Raw | null; +- filterField?: FilterField.Raw | null; +- searchValue?: SearchValue.Raw | null; +- searchField?: SearchField.Raw | null; ++ filter?: serializers.Filter.Raw | null; ++ filterField?: serializers.FilterField.Raw | null; ++ searchValue?: serializers.SearchValue.Raw | null; ++ searchField?: serializers.SearchField.Raw | null; + q?: string | null; +- ids?: RecordId.Raw[] | null; +- find?: CellValueUnion.Raw | null; +- replace?: CellValueUnion.Raw | null; ++ ids?: serializers.RecordId.Raw[] | null; ++ find?: serializers.CellValueUnion.Raw | null; ++ replace?: serializers.CellValueUnion.Raw | null; + fieldKey: string; +diff --git a/src/serialization/resources/jobs/types/Job.ts b/src/serialization/resources/jobs/types/Job.ts +index 5726ad4..16a64d2 100644 +--- a/src/serialization/resources/jobs/types/Job.ts ++++ b/src/serialization/resources/jobs/types/Job.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobId } from "../../commons/types/JobId"; +-import { JobConfig } from "./JobConfig"; + +@@ -12,3 +10,3 @@ export const Job: core.serialization.ObjectSchema (await import("../../..")).JobId), + createdAt: core.serialization.date(), +@@ -19,7 +17,7 @@ export const Job: core.serialization.ObjectSchema (await import("../../..")).JobConfig)); + + export declare namespace Job { +- interface Raw extends JobConfig.Raw { +- id: JobId.Raw; ++ interface Raw extends serializers.JobConfig.Raw { ++ id: serializers.JobId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/jobs/types/JobCompleteDetails.ts b/src/serialization/resources/jobs/types/JobCompleteDetails.ts +index 762e8e4..a0a9321 100644 +--- a/src/serialization/resources/jobs/types/JobCompleteDetails.ts ++++ b/src/serialization/resources/jobs/types/JobCompleteDetails.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobOutcome } from "./JobOutcome"; + +@@ -13,3 +12,3 @@ export const JobCompleteDetails: core.serialization.ObjectSchema< + > = core.serialization.object({ +- outcome: JobOutcome.optional(), ++ outcome: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcome).optional(), + info: core.serialization.string().optional(), +@@ -19,3 +18,3 @@ export declare namespace JobCompleteDetails { + interface Raw { +- outcome?: JobOutcome.Raw | null; ++ outcome?: serializers.JobOutcome.Raw | null; + info?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobConfig.ts b/src/serialization/resources/jobs/types/JobConfig.ts +index 46c6384..942ff42 100644 +--- a/src/serialization/resources/jobs/types/JobConfig.ts ++++ b/src/serialization/resources/jobs/types/JobConfig.ts +@@ -7,14 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobType } from "./JobType"; +-import { JobSource } from "./JobSource"; +-import { JobDestination } from "./JobDestination"; +-import { JobUpdateConfig } from "./JobUpdateConfig"; +-import { Trigger } from "./Trigger"; +-import { JobStatus } from "./JobStatus"; +-import { FileId } from "../../commons/types/FileId"; +-import { JobMode } from "./JobMode"; +-import { JobSubject } from "./JobSubject"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { JobPartExecution } from "./JobPartExecution"; +-import { JobId } from "../../commons/types/JobId"; + +@@ -22,14 +10,14 @@ export const JobConfig: core.serialization.ObjectSchema (await import("../../..")).JobType), + operation: core.serialization.string(), +- source: JobSource, +- destination: JobDestination.optional(), +- config: JobUpdateConfig.optional(), +- trigger: Trigger.optional(), +- status: JobStatus.optional(), ++ source: core.serialization.lazy(async () => (await import("../../..")).JobSource), ++ destination: core.serialization.lazy(async () => (await import("../../..")).JobDestination).optional(), ++ config: core.serialization.lazy(async () => (await import("../../..")).JobUpdateConfig).optional(), ++ trigger: core.serialization.lazy(async () => (await import("../../..")).Trigger).optional(), ++ status: core.serialization.lazy(async () => (await import("../../..")).JobStatus).optional(), + progress: core.serialization.number().optional(), +- fileId: FileId.optional(), +- mode: JobMode.optional(), ++ fileId: core.serialization.lazy(async () => (await import("../../..")).FileId).optional(), ++ mode: core.serialization.lazy(async () => (await import("../../..")).JobMode).optional(), + input: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- subject: JobSubject.optional(), ++ subject: core.serialization.lazy(async () => (await import("../../..")).JobSubject).optional(), + outcome: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -37,7 +25,7 @@ export const JobConfig: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId).optional(), + part: core.serialization.number().optional(), + partData: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- partExecution: JobPartExecution.optional(), +- parentId: JobId.optional(), ++ partExecution: core.serialization.lazy(async () => (await import("../../..")).JobPartExecution).optional(), ++ parentId: core.serialization.lazy(async () => (await import("../../..")).JobId).optional(), + }); +@@ -46,14 +34,14 @@ export declare namespace JobConfig { + interface Raw { +- type: JobType.Raw; ++ type: serializers.JobType.Raw; + operation: string; +- source: JobSource.Raw; +- destination?: JobDestination.Raw | null; +- config?: JobUpdateConfig.Raw | null; +- trigger?: Trigger.Raw | null; +- status?: JobStatus.Raw | null; ++ source: serializers.JobSource.Raw; ++ destination?: serializers.JobDestination.Raw | null; ++ config?: serializers.JobUpdateConfig.Raw | null; ++ trigger?: serializers.Trigger.Raw | null; ++ status?: serializers.JobStatus.Raw | null; + progress?: number | null; +- fileId?: FileId.Raw | null; +- mode?: JobMode.Raw | null; ++ fileId?: serializers.FileId.Raw | null; ++ mode?: serializers.JobMode.Raw | null; + input?: Record | null; +- subject?: JobSubject.Raw | null; ++ subject?: serializers.JobSubject.Raw | null; + outcome?: Record | null; +@@ -61,7 +49,7 @@ export declare namespace JobConfig { + managed?: boolean | null; +- environmentId?: EnvironmentId.Raw | null; ++ environmentId?: serializers.EnvironmentId.Raw | null; + part?: number | null; + partData?: Record | null; +- partExecution?: JobPartExecution.Raw | null; +- parentId?: JobId.Raw | null; ++ partExecution?: serializers.JobPartExecution.Raw | null; ++ parentId?: serializers.JobId.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/JobDestination.ts b/src/serialization/resources/jobs/types/JobDestination.ts +index 2594d3f..21ac2f8 100644 +--- a/src/serialization/resources/jobs/types/JobDestination.ts ++++ b/src/serialization/resources/jobs/types/JobDestination.ts +@@ -7,9 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; + + export const JobDestination: core.serialization.Schema = +- WorkbookId; ++ core.serialization.lazy(async () => (await import("../../..")).WorkbookId); + + export declare namespace JobDestination { +- type Raw = WorkbookId.Raw; ++ type Raw = serializers.WorkbookId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlan.ts b/src/serialization/resources/jobs/types/JobExecutionPlan.ts +index 2937830..f392d75 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlan.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlan.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Edge } from "./Edge"; +-import { SourceField } from "./SourceField"; +-import { DestinationField } from "./DestinationField"; + +@@ -15,5 +12,9 @@ export const JobExecutionPlan: core.serialization.ObjectSchema< + > = core.serialization.object({ +- fieldMapping: core.serialization.list(Edge), +- unmappedSourceFields: core.serialization.list(SourceField), +- unmappedDestinationFields: core.serialization.list(DestinationField), ++ fieldMapping: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Edge)), ++ unmappedSourceFields: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).SourceField) ++ ), ++ unmappedDestinationFields: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).DestinationField) ++ ), + programId: core.serialization.string().optional(), +@@ -23,5 +24,5 @@ export declare namespace JobExecutionPlan { + interface Raw { +- fieldMapping: Edge.Raw[]; +- unmappedSourceFields: SourceField.Raw[]; +- unmappedDestinationFields: DestinationField.Raw[]; ++ fieldMapping: serializers.Edge.Raw[]; ++ unmappedSourceFields: serializers.SourceField.Raw[]; ++ unmappedDestinationFields: serializers.DestinationField.Raw[]; + programId?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts b/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts +index adbf6ec..4a1ff58 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Edge } from "./Edge"; +-import { SourceField } from "./SourceField"; +-import { DestinationField } from "./DestinationField"; + +@@ -15,5 +12,11 @@ export const JobExecutionPlanConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- fieldMapping: core.serialization.list(Edge).optional(), +- unmappedSourceFields: core.serialization.list(SourceField).optional(), +- unmappedDestinationFields: core.serialization.list(DestinationField).optional(), ++ fieldMapping: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Edge)) ++ .optional(), ++ unmappedSourceFields: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).SourceField)) ++ .optional(), ++ unmappedDestinationFields: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).DestinationField)) ++ .optional(), + programId: core.serialization.string().optional(), +@@ -23,5 +26,5 @@ export declare namespace JobExecutionPlanConfig { + interface Raw { +- fieldMapping?: Edge.Raw[] | null; +- unmappedSourceFields?: SourceField.Raw[] | null; +- unmappedDestinationFields?: DestinationField.Raw[] | null; ++ fieldMapping?: serializers.Edge.Raw[] | null; ++ unmappedSourceFields?: serializers.SourceField.Raw[] | null; ++ unmappedDestinationFields?: serializers.DestinationField.Raw[] | null; + programId?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts b/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts +index b0be6dd..3297026 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { FileId } from "../../commons/types/FileId"; +-import { JobId } from "../../commons/types/JobId"; +-import { JobExecutionPlanConfig } from "./JobExecutionPlanConfig"; + +@@ -16,11 +13,11 @@ export const JobExecutionPlanConfigRequest: core.serialization.ObjectSchema< + .object({ +- fileId: FileId, +- jobId: JobId, ++ fileId: core.serialization.lazy(async () => (await import("../../..")).FileId), ++ jobId: core.serialization.lazy(async () => (await import("../../..")).JobId), + }) +- .extend(JobExecutionPlanConfig); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlanConfig)); + + export declare namespace JobExecutionPlanConfigRequest { +- interface Raw extends JobExecutionPlanConfig.Raw { +- fileId: FileId.Raw; +- jobId: JobId.Raw; ++ interface Raw extends serializers.JobExecutionPlanConfig.Raw { ++ fileId: serializers.FileId.Raw; ++ jobId: serializers.JobId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts b/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts +index 79eb9f7..8fae6d3 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { FileId } from "../../commons/types/FileId"; +-import { JobId } from "../../commons/types/JobId"; +-import { JobExecutionPlan } from "./JobExecutionPlan"; + +@@ -16,11 +13,11 @@ export const JobExecutionPlanRequest: core.serialization.ObjectSchema< + .object({ +- fileId: FileId, +- jobId: JobId, ++ fileId: core.serialization.lazy(async () => (await import("../../..")).FileId), ++ jobId: core.serialization.lazy(async () => (await import("../../..")).JobId), + }) +- .extend(JobExecutionPlan); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlan)); + + export declare namespace JobExecutionPlanRequest { +- interface Raw extends JobExecutionPlan.Raw { +- fileId: FileId.Raw; +- jobId: JobId.Raw; ++ interface Raw extends serializers.JobExecutionPlan.Raw { ++ fileId: serializers.FileId.Raw; ++ jobId: serializers.JobId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobOutcome.ts b/src/serialization/resources/jobs/types/JobOutcome.ts +index f5fe6b9..fc3fd24 100644 +--- a/src/serialization/resources/jobs/types/JobOutcome.ts ++++ b/src/serialization/resources/jobs/types/JobOutcome.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobOutcomeNext } from "./JobOutcomeNext"; + +@@ -13,3 +12,3 @@ export const JobOutcome: core.serialization.ObjectSchema (await import("../../..")).JobOutcomeNext).optional(), + heading: core.serialization.string().optional(), +@@ -23,3 +22,3 @@ export declare namespace JobOutcome { + buttonText?: string | null; +- next?: JobOutcomeNext.Raw | null; ++ next?: serializers.JobOutcomeNext.Raw | null; + heading?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobOutcomeNext.ts b/src/serialization/resources/jobs/types/JobOutcomeNext.ts +index b7cddc0..fc2c959 100644 +--- a/src/serialization/resources/jobs/types/JobOutcomeNext.ts ++++ b/src/serialization/resources/jobs/types/JobOutcomeNext.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobOutcomeNextId } from "./JobOutcomeNextId"; +-import { JobOutcomeNextUrl } from "./JobOutcomeNextUrl"; +-import { JobOutcomeNextDownload } from "./JobOutcomeNextDownload"; +-import { JobOutcomeNextWait } from "./JobOutcomeNextWait"; +-import { JobOutcomeNextSnapshot } from "./JobOutcomeNextSnapshot"; +-import { JobOutcomeNextRetry } from "./JobOutcomeNextRetry"; + +@@ -17,8 +11,8 @@ export const JobOutcomeNext: core.serialization.Schema (await import("../../..")).JobOutcomeNextId), ++ url: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextUrl), ++ download: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextDownload), ++ wait: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextWait), ++ snapshot: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextSnapshot), ++ retry: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextRetry), + }) +@@ -38,3 +32,3 @@ export declare namespace JobOutcomeNext { + +- interface Id extends JobOutcomeNextId.Raw { ++ interface Id extends serializers.JobOutcomeNextId.Raw { + type: "id"; +@@ -42,3 +36,3 @@ export declare namespace JobOutcomeNext { + +- interface Url extends JobOutcomeNextUrl.Raw { ++ interface Url extends serializers.JobOutcomeNextUrl.Raw { + type: "url"; +@@ -46,3 +40,3 @@ export declare namespace JobOutcomeNext { + +- interface Download extends JobOutcomeNextDownload.Raw { ++ interface Download extends serializers.JobOutcomeNextDownload.Raw { + type: "download"; +@@ -50,3 +44,3 @@ export declare namespace JobOutcomeNext { + +- interface Wait extends JobOutcomeNextWait.Raw { ++ interface Wait extends serializers.JobOutcomeNextWait.Raw { + type: "wait"; +@@ -54,3 +48,3 @@ export declare namespace JobOutcomeNext { + +- interface Snapshot extends JobOutcomeNextSnapshot.Raw { ++ interface Snapshot extends serializers.JobOutcomeNextSnapshot.Raw { + type: "snapshot"; +@@ -58,3 +52,3 @@ export declare namespace JobOutcomeNext { + +- interface Retry extends JobOutcomeNextRetry.Raw { ++ interface Retry extends serializers.JobOutcomeNextRetry.Raw { + type: "retry"; +diff --git a/src/serialization/resources/jobs/types/JobParts.ts b/src/serialization/resources/jobs/types/JobParts.ts +index 3f6a1e8..87207e8 100644 +--- a/src/serialization/resources/jobs/types/JobParts.ts ++++ b/src/serialization/resources/jobs/types/JobParts.ts +@@ -7,9 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobPartsArray } from "./JobPartsArray"; + + export const JobParts: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([core.serialization.number(), JobPartsArray]); ++ core.serialization.undiscriminatedUnion([ ++ core.serialization.number(), ++ core.serialization.lazy(async () => (await import("../../..")).JobPartsArray), ++ ]); + + export declare namespace JobParts { +- type Raw = number | JobPartsArray.Raw; ++ type Raw = number | serializers.JobPartsArray.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobPlan.ts b/src/serialization/resources/jobs/types/JobPlan.ts +index ceb95df..6f287d1 100644 +--- a/src/serialization/resources/jobs/types/JobPlan.ts ++++ b/src/serialization/resources/jobs/types/JobPlan.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Job } from "./Job"; +-import { JobExecutionPlan } from "./JobExecutionPlan"; + +@@ -12,4 +10,4 @@ export const JobPlan: core.serialization.ObjectSchema (await import("../../..")).Job), ++ plan: core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlan), + }); +@@ -18,4 +16,4 @@ export declare namespace JobPlan { + interface Raw { +- job: Job.Raw; +- plan: JobExecutionPlan.Raw; ++ job: serializers.Job.Raw; ++ plan: serializers.JobExecutionPlan.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobPlanResponse.ts b/src/serialization/resources/jobs/types/JobPlanResponse.ts +index a12c053..f47c498 100644 +--- a/src/serialization/resources/jobs/types/JobPlanResponse.ts ++++ b/src/serialization/resources/jobs/types/JobPlanResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobPlan } from "./JobPlan"; + +@@ -13,3 +12,3 @@ export const JobPlanResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: JobPlan, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).JobPlan), + }); +@@ -18,3 +17,3 @@ export declare namespace JobPlanResponse { + interface Raw { +- data: JobPlan.Raw; ++ data: serializers.JobPlan.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobResponse.ts b/src/serialization/resources/jobs/types/JobResponse.ts +index 6998886..02341d1 100644 +--- a/src/serialization/resources/jobs/types/JobResponse.ts ++++ b/src/serialization/resources/jobs/types/JobResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Job } from "./Job"; + +@@ -11,3 +10,3 @@ export const JobResponse: core.serialization.ObjectSchema (await import("../../..")).Job), + }); +@@ -16,3 +15,3 @@ export declare namespace JobResponse { + interface Raw { +- data: Job.Raw; ++ data: serializers.Job.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobSplitDetails.ts b/src/serialization/resources/jobs/types/JobSplitDetails.ts +index 647f3cb..4e6ef1c 100644 +--- a/src/serialization/resources/jobs/types/JobSplitDetails.ts ++++ b/src/serialization/resources/jobs/types/JobSplitDetails.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobParts } from "./JobParts"; + +@@ -13,3 +12,3 @@ export const JobSplitDetails: core.serialization.ObjectSchema< + > = core.serialization.object({ +- parts: JobParts, ++ parts: core.serialization.lazy(async () => (await import("../../..")).JobParts), + runInParallel: core.serialization.boolean().optional(), +@@ -19,3 +18,3 @@ export declare namespace JobSplitDetails { + interface Raw { +- parts: JobParts.Raw; ++ parts: serializers.JobParts.Raw; + runInParallel?: boolean | null; +diff --git a/src/serialization/resources/jobs/types/JobSubject.ts b/src/serialization/resources/jobs/types/JobSubject.ts +index ea77ec2..9b40b0f 100644 +--- a/src/serialization/resources/jobs/types/JobSubject.ts ++++ b/src/serialization/resources/jobs/types/JobSubject.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ResourceJobSubject } from "./ResourceJobSubject"; +-import { CollectionJobSubject } from "./CollectionJobSubject"; + +@@ -12,4 +10,4 @@ export const JobSubject: core.serialization.Schema (await import("../../..")).ResourceJobSubject), ++ collection: core.serialization.lazyObject(async () => (await import("../../..")).CollectionJobSubject), + }) +@@ -23,3 +21,3 @@ export declare namespace JobSubject { + +- interface Resource extends ResourceJobSubject.Raw { ++ interface Resource extends serializers.ResourceJobSubject.Raw { + type: "resource"; +@@ -27,3 +25,3 @@ export declare namespace JobSubject { + +- interface Collection extends CollectionJobSubject.Raw { ++ interface Collection extends serializers.CollectionJobSubject.Raw { + type: "collection"; +diff --git a/src/serialization/resources/jobs/types/JobUpdate.ts b/src/serialization/resources/jobs/types/JobUpdate.ts +index 7b3c636..f4d6a2a 100644 +--- a/src/serialization/resources/jobs/types/JobUpdate.ts ++++ b/src/serialization/resources/jobs/types/JobUpdate.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { JobUpdateConfig } from "./JobUpdateConfig"; +-import { JobStatus } from "./JobStatus"; + +@@ -12,4 +10,4 @@ export const JobUpdate: core.serialization.ObjectSchema (await import("../../..")).JobUpdateConfig).optional(), ++ status: core.serialization.lazy(async () => (await import("../../..")).JobStatus).optional(), + progress: core.serialization.number().optional(), +@@ -21,4 +19,4 @@ export declare namespace JobUpdate { + interface Raw { +- config?: JobUpdateConfig.Raw | null; +- status?: JobStatus.Raw | null; ++ config?: serializers.JobUpdateConfig.Raw | null; ++ status?: serializers.JobStatus.Raw | null; + progress?: number | null; +diff --git a/src/serialization/resources/jobs/types/JobUpdateConfig.ts b/src/serialization/resources/jobs/types/JobUpdateConfig.ts +index 01fc721..fe4846d 100644 +--- a/src/serialization/resources/jobs/types/JobUpdateConfig.ts ++++ b/src/serialization/resources/jobs/types/JobUpdateConfig.ts +@@ -7,10 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DeleteRecordsJobConfig } from "./DeleteRecordsJobConfig"; +-import { FileJobConfig } from "./FileJobConfig"; +-import { PipelineJobConfig } from "./PipelineJobConfig"; +-import { ExportJobConfig } from "./ExportJobConfig"; +-import { MutateJobConfig } from "./MutateJobConfig"; +-import { FindAndReplaceJobConfig } from "./FindAndReplaceJobConfig"; +-import { MappingProgramJobConfig } from "./MappingProgramJobConfig"; +-import { EmptyObject } from "./EmptyObject"; + +@@ -18,10 +10,10 @@ export const JobUpdateConfig: core.serialization.Schema (await import("../../..")).DeleteRecordsJobConfig), ++ core.serialization.lazyObject(async () => (await import("../../..")).FileJobConfig), ++ core.serialization.lazyObject(async () => (await import("../../..")).PipelineJobConfig), ++ core.serialization.lazyObject(async () => (await import("../../..")).ExportJobConfig), ++ core.serialization.lazyObject(async () => (await import("../../..")).MutateJobConfig), ++ core.serialization.lazyObject(async () => (await import("../../..")).FindAndReplaceJobConfig), ++ core.serialization.lazyObject(async () => (await import("../../..")).MappingProgramJobConfig), ++ core.serialization.lazyObject(async () => (await import("../../..")).EmptyObject), + ]); +@@ -30,10 +22,10 @@ export declare namespace JobUpdateConfig { + type Raw = +- | DeleteRecordsJobConfig.Raw +- | FileJobConfig.Raw +- | PipelineJobConfig.Raw +- | ExportJobConfig.Raw +- | MutateJobConfig.Raw +- | FindAndReplaceJobConfig.Raw +- | MappingProgramJobConfig.Raw +- | EmptyObject.Raw; ++ | serializers.DeleteRecordsJobConfig.Raw ++ | serializers.FileJobConfig.Raw ++ | serializers.PipelineJobConfig.Raw ++ | serializers.ExportJobConfig.Raw ++ | serializers.MutateJobConfig.Raw ++ | serializers.FindAndReplaceJobConfig.Raw ++ | serializers.MappingProgramJobConfig.Raw ++ | serializers.EmptyObject.Raw; + } +diff --git a/src/serialization/resources/jobs/types/ListJobsResponse.ts b/src/serialization/resources/jobs/types/ListJobsResponse.ts +index b5530f7..a6e41ec 100644 +--- a/src/serialization/resources/jobs/types/ListJobsResponse.ts ++++ b/src/serialization/resources/jobs/types/ListJobsResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { Job } from "./Job"; + +@@ -14,4 +12,4 @@ export const ListJobsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(Job), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Job)), + }); +@@ -20,4 +18,4 @@ export declare namespace ListJobsResponse { + interface Raw { +- pagination?: Pagination.Raw | null; +- data: Job.Raw[]; ++ pagination?: serializers.Pagination.Raw | null; ++ data: serializers.Job.Raw[]; + } +diff --git a/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts b/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts +index 7544b66..69b786f 100644 +--- a/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts ++++ b/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetId } from "../../commons/types/SheetId"; + +@@ -13,4 +12,4 @@ export const MappingProgramJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceSheetId: SheetId, +- destinationSheetId: SheetId, ++ sourceSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ destinationSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), + mappingRules: core.serialization.list( +@@ -22,4 +21,4 @@ export declare namespace MappingProgramJobConfig { + interface Raw { +- sourceSheetId: SheetId.Raw; +- destinationSheetId: SheetId.Raw; ++ sourceSheetId: serializers.SheetId.Raw; ++ destinationSheetId: serializers.SheetId.Raw; + mappingRules: Record[]; +diff --git a/src/serialization/resources/jobs/types/Metadata.ts b/src/serialization/resources/jobs/types/Metadata.ts +index 469d161..857c189 100644 +--- a/src/serialization/resources/jobs/types/Metadata.ts ++++ b/src/serialization/resources/jobs/types/Metadata.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Certainty } from "./Certainty"; + +@@ -11,3 +10,3 @@ export const Metadata: core.serialization.ObjectSchema (await import("../../..")).Certainty).optional(), + confidence: core.serialization.number().optional(), +@@ -18,3 +17,3 @@ export declare namespace Metadata { + interface Raw { +- certainty?: Certainty.Raw | null; ++ certainty?: serializers.Certainty.Raw | null; + confidence?: number | null; +diff --git a/src/serialization/resources/jobs/types/MutateJobConfig.ts b/src/serialization/resources/jobs/types/MutateJobConfig.ts +index 6723d82..0693fed 100644 +--- a/src/serialization/resources/jobs/types/MutateJobConfig.ts ++++ b/src/serialization/resources/jobs/types/MutateJobConfig.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetId } from "../../commons/types/SheetId"; +-import { Filter } from "../../commons/types/Filter"; +-import { FilterField } from "../../commons/types/FilterField"; +-import { SearchValue } from "../../commons/types/SearchValue"; +-import { SearchField } from "../../commons/types/SearchField"; +-import { RecordId } from "../../commons/types/RecordId"; + +@@ -18,12 +12,11 @@ export const MutateJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sheetId: SheetId, ++ sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), + mutateRecord: core.serialization.string(), + mutationId: core.serialization.string().optional(), +- snapshotLabel: core.serialization.string().optional(), +- filter: Filter.optional(), +- filterField: FilterField.optional(), +- searchValue: SearchValue.optional(), +- searchField: SearchField.optional(), ++ filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), ++ filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), ++ searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), ++ searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), + q: core.serialization.string().optional(), +- ids: core.serialization.list(RecordId).optional(), ++ ids: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordId)).optional(), + }); +@@ -32,12 +25,11 @@ export declare namespace MutateJobConfig { + interface Raw { +- sheetId: SheetId.Raw; ++ sheetId: serializers.SheetId.Raw; + mutateRecord: string; + mutationId?: string | null; +- snapshotLabel?: string | null; +- filter?: Filter.Raw | null; +- filterField?: FilterField.Raw | null; +- searchValue?: SearchValue.Raw | null; +- searchField?: SearchField.Raw | null; ++ filter?: serializers.Filter.Raw | null; ++ filterField?: serializers.FilterField.Raw | null; ++ searchValue?: serializers.SearchValue.Raw | null; ++ searchField?: serializers.SearchField.Raw | null; + q?: string | null; +- ids?: RecordId.Raw[] | null; ++ ids?: serializers.RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/PipelineJobConfig.ts b/src/serialization/resources/jobs/types/PipelineJobConfig.ts +index a100e02..bdfe772 100644 +--- a/src/serialization/resources/jobs/types/PipelineJobConfig.ts ++++ b/src/serialization/resources/jobs/types/PipelineJobConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetId } from "../../commons/types/SheetId"; + +@@ -13,4 +12,4 @@ export const PipelineJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceSheetId: SheetId, +- destinationSheetId: SheetId, ++ sourceSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ destinationSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), + }); +@@ -19,4 +18,4 @@ export declare namespace PipelineJobConfig { + interface Raw { +- sourceSheetId: SheetId.Raw; +- destinationSheetId: SheetId.Raw; ++ sourceSheetId: serializers.SheetId.Raw; ++ destinationSheetId: serializers.SheetId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/SourceField.ts b/src/serialization/resources/jobs/types/SourceField.ts +index a5010b2..4a4115f 100644 +--- a/src/serialization/resources/jobs/types/SourceField.ts ++++ b/src/serialization/resources/jobs/types/SourceField.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Property } from "../../property/types/Property"; + +@@ -11,3 +10,3 @@ export const SourceField: core.serialization.ObjectSchema (await import("../../..")).Property), + preview: core.serialization.list(core.serialization.string()).optional(), +@@ -17,3 +16,3 @@ export declare namespace SourceField { + interface Raw { +- sourceField: Property.Raw; ++ sourceField: serializers.Property.Raw; + preview?: string[] | null; +diff --git a/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts b/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts +index 56bc173..0164b1d 100644 +--- a/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts ++++ b/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -12,6 +11,6 @@ export const CreateMappingRulesRequest: core.serialization.Schema< + Flatfile.CreateMappingRulesRequest +-> = core.serialization.list(MappingRuleConfig); ++> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRuleConfig)); + + export declare namespace CreateMappingRulesRequest { +- type Raw = MappingRuleConfig.Raw[]; ++ type Raw = serializers.MappingRuleConfig.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/MappingRule.ts b/src/serialization/resources/mapping/types/MappingRule.ts +index 9d60a2f..105b773 100644 +--- a/src/serialization/resources/mapping/types/MappingRule.ts ++++ b/src/serialization/resources/mapping/types/MappingRule.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { MappingId } from "../../commons/types/MappingId"; +-import { UserId } from "../../commons/types/UserId"; +-import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -14,5 +11,5 @@ export const MappingRule: core.serialization.ObjectSchema (await import("../../..")).MappingId), + confidence: core.serialization.number().optional(), +- createdBy: UserId.optional(), ++ createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), + createdAt: core.serialization.date(), +@@ -21,9 +18,9 @@ export const MappingRule: core.serialization.ObjectSchema (await import("../../..")).MappingRuleConfig)); + + export declare namespace MappingRule { +- interface Raw extends MappingRuleConfig.Raw { +- id: MappingId.Raw; ++ interface Raw extends serializers.MappingRuleConfig.Raw { ++ id: serializers.MappingId.Raw; + confidence?: number | null; +- createdBy?: UserId.Raw | null; ++ createdBy?: serializers.UserId.Raw | null; + createdAt: string; +diff --git a/src/serialization/resources/mapping/types/MappingRuleConfig.ts b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +index eafd8b3..a7bf3b8 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { UserId } from "../../commons/types/UserId"; + +@@ -17,3 +16,3 @@ export const MappingRuleConfig: core.serialization.ObjectSchema< + acceptedAt: core.serialization.date().optional(), +- acceptedBy: UserId.optional(), ++ acceptedBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), + }); +@@ -26,3 +25,3 @@ export declare namespace MappingRuleConfig { + acceptedAt?: string | null; +- acceptedBy?: UserId.Raw | null; ++ acceptedBy?: serializers.UserId.Raw | null; + } +diff --git a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +index feba62d..2a9f566 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { MappingId } from "../../commons/types/MappingId"; +-import { UserId } from "../../commons/types/UserId"; +-import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -16,5 +13,5 @@ export const MappingRuleOrConfig: core.serialization.ObjectSchema< + .object({ +- id: MappingId.optional(), ++ id: core.serialization.lazy(async () => (await import("../../..")).MappingId).optional(), + confidence: core.serialization.number().optional(), +- createdBy: UserId.optional(), ++ createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), + createdAt: core.serialization.date().optional(), +@@ -23,9 +20,9 @@ export const MappingRuleOrConfig: core.serialization.ObjectSchema< + }) +- .extend(MappingRuleConfig); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).MappingRuleConfig)); + + export declare namespace MappingRuleOrConfig { +- interface Raw extends MappingRuleConfig.Raw { +- id?: MappingId.Raw | null; ++ interface Raw extends serializers.MappingRuleConfig.Raw { ++ id?: serializers.MappingId.Raw | null; + confidence?: number | null; +- createdBy?: UserId.Raw | null; ++ createdBy?: serializers.UserId.Raw | null; + createdAt?: string | null; +diff --git a/src/serialization/resources/mapping/types/MappingRuleResponse.ts b/src/serialization/resources/mapping/types/MappingRuleResponse.ts +index a8b193c..17af839 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleResponse.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { MappingRule } from "./MappingRule"; + +@@ -13,3 +12,3 @@ export const MappingRuleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: MappingRule, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).MappingRule), + }); +@@ -18,3 +17,3 @@ export declare namespace MappingRuleResponse { + interface Raw { +- data: MappingRule.Raw; ++ data: serializers.MappingRule.Raw; + } +diff --git a/src/serialization/resources/mapping/types/MappingRulesResponse.ts b/src/serialization/resources/mapping/types/MappingRulesResponse.ts +index e4a3403..aee3dd3 100644 +--- a/src/serialization/resources/mapping/types/MappingRulesResponse.ts ++++ b/src/serialization/resources/mapping/types/MappingRulesResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { MappingRule } from "./MappingRule"; + +@@ -13,3 +12,3 @@ export const MappingRulesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(MappingRule), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRule)), + }); +@@ -18,3 +17,3 @@ export declare namespace MappingRulesResponse { + interface Raw { +- data: MappingRule.Raw[]; ++ data: serializers.MappingRule.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/Program.ts b/src/serialization/resources/mapping/types/Program.ts +index f582437..2355da9 100644 +--- a/src/serialization/resources/mapping/types/Program.ts ++++ b/src/serialization/resources/mapping/types/Program.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { MappingRuleOrConfig } from "./MappingRuleOrConfig"; +-import { FamilyId } from "../../commons/types/FamilyId"; +-import { UserId } from "../../commons/types/UserId"; +-import { ProgramSummary } from "./ProgramSummary"; + +@@ -14,11 +10,13 @@ export const Program: core.serialization.ObjectSchema (await import("../../..")).MappingRuleOrConfig) ++ ), + id: core.serialization.string().optional(), + namespace: core.serialization.string().optional(), +- familyId: FamilyId.optional(), ++ familyId: core.serialization.lazy(async () => (await import("../../..")).FamilyId).optional(), + createdAt: core.serialization.date().optional(), +- createdBy: UserId.optional(), ++ createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), + sourceKeys: core.serialization.list(core.serialization.string()), + destinationKeys: core.serialization.list(core.serialization.string()), +- summary: ProgramSummary.optional(), ++ summary: core.serialization.lazyObject(async () => (await import("../../..")).ProgramSummary).optional(), + accessToken: core.serialization.string().optional(), +@@ -28,11 +26,11 @@ export declare namespace Program { + interface Raw { +- rules: MappingRuleOrConfig.Raw[]; ++ rules: serializers.MappingRuleOrConfig.Raw[]; + id?: string | null; + namespace?: string | null; +- familyId?: FamilyId.Raw | null; ++ familyId?: serializers.FamilyId.Raw | null; + createdAt?: string | null; +- createdBy?: UserId.Raw | null; ++ createdBy?: serializers.UserId.Raw | null; + sourceKeys: string[]; + destinationKeys: string[]; +- summary?: ProgramSummary.Raw | null; ++ summary?: serializers.ProgramSummary.Raw | null; + accessToken?: string | null; +diff --git a/src/serialization/resources/mapping/types/ProgramConfig.ts b/src/serialization/resources/mapping/types/ProgramConfig.ts +index f9e3006..5526272 100644 +--- a/src/serialization/resources/mapping/types/ProgramConfig.ts ++++ b/src/serialization/resources/mapping/types/ProgramConfig.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetConfig } from "../../sheets/types/SheetConfig"; +-import { FamilyId } from "../../commons/types/FamilyId"; + +@@ -12,5 +10,5 @@ export const ProgramConfig: core.serialization.ObjectSchema (await import("../../..")).SheetConfig), ++ destination: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig), ++ familyId: core.serialization.lazy(async () => (await import("../../..")).FamilyId).optional(), + namespace: core.serialization.string().optional(), +@@ -21,5 +19,5 @@ export declare namespace ProgramConfig { + interface Raw { +- source: SheetConfig.Raw; +- destination: SheetConfig.Raw; +- familyId?: FamilyId.Raw | null; ++ source: serializers.SheetConfig.Raw; ++ destination: serializers.SheetConfig.Raw; ++ familyId?: serializers.FamilyId.Raw | null; + namespace?: string | null; +diff --git a/src/serialization/resources/mapping/types/ProgramResponse.ts b/src/serialization/resources/mapping/types/ProgramResponse.ts +index 43b871a..57ee703 100644 +--- a/src/serialization/resources/mapping/types/ProgramResponse.ts ++++ b/src/serialization/resources/mapping/types/ProgramResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Program } from "./Program"; + +@@ -13,3 +12,3 @@ export const ProgramResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: Program, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).Program), + }); +@@ -18,3 +17,3 @@ export declare namespace ProgramResponse { + interface Raw { +- data: Program.Raw; ++ data: serializers.Program.Raw; + } +diff --git a/src/serialization/resources/mapping/types/ProgramsResponse.ts b/src/serialization/resources/mapping/types/ProgramsResponse.ts +index ac31be9..ba4122f 100644 +--- a/src/serialization/resources/mapping/types/ProgramsResponse.ts ++++ b/src/serialization/resources/mapping/types/ProgramsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Program } from "./Program"; + +@@ -13,3 +12,3 @@ export const ProgramsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Program), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Program)), + }); +@@ -18,3 +17,3 @@ export declare namespace ProgramsResponse { + interface Raw { +- data: Program.Raw[]; ++ data: serializers.Program.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +index 5065740..1096d42 100644 +--- a/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts ++++ b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { MappingRule } from "./MappingRule"; + +@@ -12,6 +11,6 @@ export const UpdateMappingRulesRequest: core.serialization.Schema< + Flatfile.UpdateMappingRulesRequest +-> = core.serialization.list(MappingRule); ++> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRule)); + + export declare namespace UpdateMappingRulesRequest { +- type Raw = MappingRule.Raw[]; ++ type Raw = serializers.MappingRule.Raw[]; + } +diff --git a/src/serialization/resources/property/types/BaseProperty.ts b/src/serialization/resources/property/types/BaseProperty.ts +index bd9968f..291fe34 100644 +--- a/src/serialization/resources/property/types/BaseProperty.ts ++++ b/src/serialization/resources/property/types/BaseProperty.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Constraint } from "./Constraint"; + +@@ -14,3 +13,5 @@ export const BaseProperty: core.serialization.ObjectSchema (await import("../../..")).Constraint)) ++ .optional(), + readonly: core.serialization.boolean().optional(), +@@ -26,3 +27,3 @@ export declare namespace BaseProperty { + description?: string | null; +- constraints?: Constraint.Raw[] | null; ++ constraints?: serializers.Constraint.Raw[] | null; + readonly?: boolean | null; +diff --git a/src/serialization/resources/property/types/BooleanProperty.ts b/src/serialization/resources/property/types/BooleanProperty.ts +index e23277a..1166da4 100644 +--- a/src/serialization/resources/property/types/BooleanProperty.ts ++++ b/src/serialization/resources/property/types/BooleanProperty.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { BooleanPropertyConfig } from "./BooleanPropertyConfig"; +-import { BaseProperty } from "./BaseProperty"; + +@@ -15,9 +13,9 @@ export const BooleanProperty: core.serialization.ObjectSchema< + .object({ +- config: BooleanPropertyConfig.optional(), ++ config: core.serialization.lazyObject(async () => (await import("../../..")).BooleanPropertyConfig).optional(), + }) +- .extend(BaseProperty); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); + + export declare namespace BooleanProperty { +- interface Raw extends BaseProperty.Raw { +- config?: BooleanPropertyConfig.Raw | null; ++ interface Raw extends serializers.BaseProperty.Raw { ++ config?: serializers.BooleanPropertyConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/Constraint.ts b/src/serialization/resources/property/types/Constraint.ts +index cdea10f..ae3a4ce 100644 +--- a/src/serialization/resources/property/types/Constraint.ts ++++ b/src/serialization/resources/property/types/Constraint.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { UniqueConstraint } from "./UniqueConstraint"; +-import { ExternalConstraint } from "./ExternalConstraint"; + +@@ -13,5 +11,5 @@ export const Constraint: core.serialization.Schema (await import("../../..")).UniqueConstraint), + computed: core.serialization.object({}), +- external: ExternalConstraint, ++ external: core.serialization.lazyObject(async () => (await import("../../..")).ExternalConstraint), + }) +@@ -29,3 +27,3 @@ export declare namespace Constraint { + +- interface Unique extends UniqueConstraint.Raw { ++ interface Unique extends serializers.UniqueConstraint.Raw { + type: "unique"; +@@ -37,3 +35,3 @@ export declare namespace Constraint { + +- interface External extends ExternalConstraint.Raw { ++ interface External extends serializers.ExternalConstraint.Raw { + type: "external"; +diff --git a/src/serialization/resources/property/types/DateProperty.ts b/src/serialization/resources/property/types/DateProperty.ts +index 49335f8..9a1f13b 100644 +--- a/src/serialization/resources/property/types/DateProperty.ts ++++ b/src/serialization/resources/property/types/DateProperty.ts +@@ -7,9 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { BaseProperty } from "./BaseProperty"; + + export const DateProperty: core.serialization.ObjectSchema = +- core.serialization.object({}).extend(BaseProperty); ++ core.serialization ++ .object({}) ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); + + export declare namespace DateProperty { +- interface Raw extends BaseProperty.Raw {} ++ interface Raw extends serializers.BaseProperty.Raw {} + } +diff --git a/src/serialization/resources/property/types/EnumProperty.ts b/src/serialization/resources/property/types/EnumProperty.ts +index 9b50466..8758010 100644 +--- a/src/serialization/resources/property/types/EnumProperty.ts ++++ b/src/serialization/resources/property/types/EnumProperty.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EnumPropertyConfig } from "./EnumPropertyConfig"; +-import { BaseProperty } from "./BaseProperty"; +-import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -15,11 +12,11 @@ export const EnumProperty: core.serialization.ObjectSchema (await import("../../..")).EnumPropertyConfig), + }) +- .extend(BaseProperty) +- .extend(ArrayableProperty); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); + + export declare namespace EnumProperty { +- interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { ++ interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { + multi?: boolean | null; +- config: EnumPropertyConfig.Raw; ++ config: serializers.EnumPropertyConfig.Raw; + } +diff --git a/src/serialization/resources/property/types/EnumPropertyConfig.ts b/src/serialization/resources/property/types/EnumPropertyConfig.ts +index 5e83efb..5744a85 100644 +--- a/src/serialization/resources/property/types/EnumPropertyConfig.ts ++++ b/src/serialization/resources/property/types/EnumPropertyConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EnumPropertyOption } from "./EnumPropertyOption"; + +@@ -14,3 +13,5 @@ export const EnumPropertyConfig: core.serialization.ObjectSchema< + allowCustom: core.serialization.boolean().optional(), +- options: core.serialization.list(EnumPropertyOption), ++ options: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).EnumPropertyOption) ++ ), + }); +@@ -20,3 +21,3 @@ export declare namespace EnumPropertyConfig { + allowCustom?: boolean | null; +- options: EnumPropertyOption.Raw[]; ++ options: serializers.EnumPropertyOption.Raw[]; + } +diff --git a/src/serialization/resources/property/types/NumberProperty.ts b/src/serialization/resources/property/types/NumberProperty.ts +index 5fe97d4..37ae4ac 100644 +--- a/src/serialization/resources/property/types/NumberProperty.ts ++++ b/src/serialization/resources/property/types/NumberProperty.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { NumberConfig } from "./NumberConfig"; +-import { BaseProperty } from "./BaseProperty"; +-import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -14,10 +11,10 @@ export const NumberProperty: core.serialization.ObjectSchema (await import("../../..")).NumberConfig).optional(), + }) +- .extend(BaseProperty) +- .extend(ArrayableProperty); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); + + export declare namespace NumberProperty { +- interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { +- config?: NumberConfig.Raw | null; ++ interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { ++ config?: serializers.NumberConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/Property.ts b/src/serialization/resources/property/types/Property.ts +index fa7c2c0..daa50a1 100644 +--- a/src/serialization/resources/property/types/Property.ts ++++ b/src/serialization/resources/property/types/Property.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { StringProperty } from "./StringProperty"; +-import { NumberProperty } from "./NumberProperty"; +-import { BooleanProperty } from "./BooleanProperty"; +-import { DateProperty } from "./DateProperty"; +-import { EnumProperty } from "./EnumProperty"; +-import { ReferenceProperty } from "./ReferenceProperty"; + +@@ -16,8 +10,8 @@ export const Property: core.serialization.Schema (await import("../../..")).StringProperty), ++ number: core.serialization.lazyObject(async () => (await import("../../..")).NumberProperty), ++ boolean: core.serialization.lazyObject(async () => (await import("../../..")).BooleanProperty), ++ date: core.serialization.lazyObject(async () => (await import("../../..")).DateProperty), ++ enum: core.serialization.lazyObject(async () => (await import("../../..")).EnumProperty), ++ reference: core.serialization.lazyObject(async () => (await import("../../..")).ReferenceProperty), + }) +@@ -37,3 +31,3 @@ export declare namespace Property { + +- interface String extends StringProperty.Raw { ++ interface String extends serializers.StringProperty.Raw { + type: "string"; +@@ -41,3 +35,3 @@ export declare namespace Property { + +- interface Number extends NumberProperty.Raw { ++ interface Number extends serializers.NumberProperty.Raw { + type: "number"; +@@ -45,3 +39,3 @@ export declare namespace Property { + +- interface Boolean extends BooleanProperty.Raw { ++ interface Boolean extends serializers.BooleanProperty.Raw { + type: "boolean"; +@@ -49,3 +43,3 @@ export declare namespace Property { + +- interface Date extends DateProperty.Raw { ++ interface Date extends serializers.DateProperty.Raw { + type: "date"; +@@ -53,3 +47,3 @@ export declare namespace Property { + +- interface Enum extends EnumProperty.Raw { ++ interface Enum extends serializers.EnumProperty.Raw { + type: "enum"; +@@ -57,3 +51,3 @@ export declare namespace Property { + +- interface Reference extends ReferenceProperty.Raw { ++ interface Reference extends serializers.ReferenceProperty.Raw { + type: "reference"; +diff --git a/src/serialization/resources/property/types/ReferenceProperty.ts b/src/serialization/resources/property/types/ReferenceProperty.ts +index f0dd947..cbc00cb 100644 +--- a/src/serialization/resources/property/types/ReferenceProperty.ts ++++ b/src/serialization/resources/property/types/ReferenceProperty.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ReferencePropertyConfig } from "./ReferencePropertyConfig"; +-import { BaseProperty } from "./BaseProperty"; +-import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -16,10 +13,10 @@ export const ReferenceProperty: core.serialization.ObjectSchema< + .object({ +- config: ReferencePropertyConfig, ++ config: core.serialization.lazyObject(async () => (await import("../../..")).ReferencePropertyConfig), + }) +- .extend(BaseProperty) +- .extend(ArrayableProperty); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); + + export declare namespace ReferenceProperty { +- interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { +- config: ReferencePropertyConfig.Raw; ++ interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { ++ config: serializers.ReferencePropertyConfig.Raw; + } +diff --git a/src/serialization/resources/property/types/ReferencePropertyConfig.ts b/src/serialization/resources/property/types/ReferencePropertyConfig.ts +index ec3ee54..a1dee26 100644 +--- a/src/serialization/resources/property/types/ReferencePropertyConfig.ts ++++ b/src/serialization/resources/property/types/ReferencePropertyConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ReferencePropertyRelationship } from "./ReferencePropertyRelationship"; + +@@ -15,3 +14,3 @@ export const ReferencePropertyConfig: core.serialization.ObjectSchema< + key: core.serialization.string(), +- relationship: ReferencePropertyRelationship, ++ relationship: core.serialization.lazy(async () => (await import("../../..")).ReferencePropertyRelationship), + }); +@@ -22,3 +21,3 @@ export declare namespace ReferencePropertyConfig { + key: string; +- relationship: ReferencePropertyRelationship.Raw; ++ relationship: serializers.ReferencePropertyRelationship.Raw; + } +diff --git a/src/serialization/resources/property/types/StringConfig.ts b/src/serialization/resources/property/types/StringConfig.ts +index 1587c3b..4bf5123 100644 +--- a/src/serialization/resources/property/types/StringConfig.ts ++++ b/src/serialization/resources/property/types/StringConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { StringConfigOptions } from "./StringConfigOptions"; + +@@ -11,3 +10,3 @@ export const StringConfig: core.serialization.ObjectSchema (await import("../../..")).StringConfigOptions), + }); +@@ -16,3 +15,3 @@ export declare namespace StringConfig { + interface Raw { +- size: StringConfigOptions.Raw; ++ size: serializers.StringConfigOptions.Raw; + } +diff --git a/src/serialization/resources/property/types/StringProperty.ts b/src/serialization/resources/property/types/StringProperty.ts +index 2e49118..1f170d9 100644 +--- a/src/serialization/resources/property/types/StringProperty.ts ++++ b/src/serialization/resources/property/types/StringProperty.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { StringConfig } from "./StringConfig"; +-import { BaseProperty } from "./BaseProperty"; + +@@ -13,9 +11,9 @@ export const StringProperty: core.serialization.ObjectSchema (await import("../../..")).StringConfig).optional(), + }) +- .extend(BaseProperty); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); + + export declare namespace StringProperty { +- interface Raw extends BaseProperty.Raw { +- config?: StringConfig.Raw | null; ++ interface Raw extends serializers.BaseProperty.Raw { ++ config?: serializers.StringConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/UniqueConstraint.ts b/src/serialization/resources/property/types/UniqueConstraint.ts +index 9406a3b..190596e 100644 +--- a/src/serialization/resources/property/types/UniqueConstraint.ts ++++ b/src/serialization/resources/property/types/UniqueConstraint.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { UniqueConstraintConfig } from "./UniqueConstraintConfig"; + +@@ -13,3 +12,3 @@ export const UniqueConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- config: UniqueConstraintConfig.optional(), ++ config: core.serialization.lazyObject(async () => (await import("../../..")).UniqueConstraintConfig).optional(), + }); +@@ -18,3 +17,3 @@ export declare namespace UniqueConstraint { + interface Raw { +- config?: UniqueConstraintConfig.Raw | null; ++ config?: serializers.UniqueConstraintConfig.Raw | null; + } +diff --git a/src/serialization/resources/records/client/insert.ts b/src/serialization/resources/records/client/insert.ts +index 2659f7b..4cdbdce 100644 +--- a/src/serialization/resources/records/client/insert.ts ++++ b/src/serialization/resources/records/client/insert.ts +@@ -7,10 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordData } from "../types/RecordData"; +-import { CellValue } from "../types/CellValue"; + + export const Request: core.serialization.Schema = +- core.serialization.list(RecordData); ++ core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordData)); + + export declare namespace Request { +- type Raw = RecordData.Raw[]; ++ type Raw = serializers.RecordData.Raw[]; + } +diff --git a/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index 3fe65e8..21b0aaf 100644 +--- a/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; +-import { CellValueUnion } from "../../types/CellValueUnion"; + +@@ -11,6 +10,6 @@ export const FindAndReplaceRecordRequest: core.serialization.Schema< + serializers.FindAndReplaceRecordRequest.Raw, +- Omit ++ Omit + > = core.serialization.object({ +- find: CellValueUnion.optional(), +- replace: CellValueUnion.optional(), ++ find: core.serialization.lazy(async () => (await import("../../../..")).CellValueUnion).optional(), ++ replace: core.serialization.lazy(async () => (await import("../../../..")).CellValueUnion).optional(), + fieldKey: core.serialization.string(), +@@ -20,4 +19,4 @@ export declare namespace FindAndReplaceRecordRequest { + interface Raw { +- find?: CellValueUnion.Raw | null; +- replace?: CellValueUnion.Raw | null; ++ find?: serializers.CellValueUnion.Raw | null; ++ replace?: serializers.CellValueUnion.Raw | null; + fieldKey: string; +diff --git a/src/serialization/resources/records/types/CellValue.ts b/src/serialization/resources/records/types/CellValue.ts +index 7309dd9..e64ce52 100644 +--- a/src/serialization/resources/records/types/CellValue.ts ++++ b/src/serialization/resources/records/types/CellValue.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ValidationMessage } from "./ValidationMessage"; +-import { CellValueUnion } from "./CellValueUnion"; + +@@ -13,5 +11,7 @@ export const CellValue: core.serialization.ObjectSchema (await import("../../..")).ValidationMessage)) ++ .optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- value: CellValueUnion.optional(), ++ value: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), + layer: core.serialization.string().optional(), +@@ -23,5 +23,5 @@ export declare namespace CellValue { + valid?: boolean | null; +- messages?: ValidationMessage.Raw[] | null; ++ messages?: serializers.ValidationMessage.Raw[] | null; + metadata?: Record | null; +- value?: CellValueUnion.Raw | null; ++ value?: serializers.CellValueUnion.Raw | null; + layer?: string | null; +diff --git a/src/serialization/resources/records/types/CellValueWithLinks.ts b/src/serialization/resources/records/types/CellValueWithLinks.ts +index 67ee5b5..da1a316 100644 +--- a/src/serialization/resources/records/types/CellValueWithLinks.ts ++++ b/src/serialization/resources/records/types/CellValueWithLinks.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Records } from "./Records"; +-import { CellValue } from "./CellValue"; +-import { Record_ } from "./Record_"; + +@@ -16,9 +13,9 @@ export const CellValueWithLinks: core.serialization.ObjectSchema< + .object({ +- links: Records.optional(), ++ links: core.serialization.lazy(async () => (await import("../../..")).Records).optional(), + }) +- .extend(CellValue); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); + + export declare namespace CellValueWithLinks { +- interface Raw extends CellValue.Raw { +- links?: Records.Raw | null; ++ interface Raw extends serializers.CellValue.Raw { ++ links?: serializers.Records.Raw | null; + } +diff --git a/src/serialization/resources/records/types/DiffData.ts b/src/serialization/resources/records/types/DiffData.ts +index 40aee0d..0a582ef 100644 +--- a/src/serialization/resources/records/types/DiffData.ts ++++ b/src/serialization/resources/records/types/DiffData.ts +@@ -7,9 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DiffValue } from "./DiffValue"; + + export const DiffData: core.serialization.Schema = +- core.serialization.record(core.serialization.string(), DiffValue); ++ core.serialization.record( ++ core.serialization.string(), ++ core.serialization.lazyObject(async () => (await import("../../..")).DiffValue) ++ ); + + export declare namespace DiffData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/DiffRecord.ts b/src/serialization/resources/records/types/DiffRecord.ts +index a7293a8..cd635ae 100644 +--- a/src/serialization/resources/records/types/DiffRecord.ts ++++ b/src/serialization/resources/records/types/DiffRecord.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DiffData } from "./DiffData"; +-import { RecordBase } from "./RecordBase"; +-import { DiffValue } from "./DiffValue"; + +@@ -14,9 +11,9 @@ export const DiffRecord: core.serialization.ObjectSchema (await import("../../..")).DiffData), + }) +- .extend(RecordBase); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).RecordBase)); + + export declare namespace DiffRecord { +- interface Raw extends RecordBase.Raw { +- values: DiffData.Raw; ++ interface Raw extends serializers.RecordBase.Raw { ++ values: serializers.DiffData.Raw; + } +diff --git a/src/serialization/resources/records/types/DiffRecords.ts b/src/serialization/resources/records/types/DiffRecords.ts +index 081f0cf..4dd3909 100644 +--- a/src/serialization/resources/records/types/DiffRecords.ts ++++ b/src/serialization/resources/records/types/DiffRecords.ts +@@ -7,9 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DiffRecord } from "./DiffRecord"; + + export const DiffRecords: core.serialization.Schema = +- core.serialization.list(DiffRecord); ++ core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).DiffRecord)); + + export declare namespace DiffRecords { +- type Raw = DiffRecord.Raw[]; ++ type Raw = serializers.DiffRecord.Raw[]; + } +diff --git a/src/serialization/resources/records/types/DiffRecordsResponse.ts b/src/serialization/resources/records/types/DiffRecordsResponse.ts +index 0a3bc84..4c36098 100644 +--- a/src/serialization/resources/records/types/DiffRecordsResponse.ts ++++ b/src/serialization/resources/records/types/DiffRecordsResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DiffRecords } from "./DiffRecords"; +-import { DiffRecord } from "./DiffRecord"; + +@@ -14,3 +12,3 @@ export const DiffRecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: DiffRecords, ++ data: core.serialization.lazy(async () => (await import("../../..")).DiffRecords), + }); +@@ -19,3 +17,3 @@ export declare namespace DiffRecordsResponse { + interface Raw { +- data: DiffRecords.Raw; ++ data: serializers.DiffRecords.Raw; + } +diff --git a/src/serialization/resources/records/types/DiffValue.ts b/src/serialization/resources/records/types/DiffValue.ts +index 1050c0a..5ac9d92 100644 +--- a/src/serialization/resources/records/types/DiffValue.ts ++++ b/src/serialization/resources/records/types/DiffValue.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CellValueUnion } from "./CellValueUnion"; +-import { CellValue } from "./CellValue"; + +@@ -13,9 +11,9 @@ export const DiffValue: core.serialization.ObjectSchema (await import("../../..")).CellValueUnion).optional(), + }) +- .extend(CellValue); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); + + export declare namespace DiffValue { +- interface Raw extends CellValue.Raw { +- snapshotValue?: CellValueUnion.Raw | null; ++ interface Raw extends serializers.CellValue.Raw { ++ snapshotValue?: serializers.CellValueUnion.Raw | null; + } +diff --git a/src/serialization/resources/records/types/GetRecordsResponse.ts b/src/serialization/resources/records/types/GetRecordsResponse.ts +index d3b4762..330b238 100644 +--- a/src/serialization/resources/records/types/GetRecordsResponse.ts ++++ b/src/serialization/resources/records/types/GetRecordsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GetRecordsResponseData } from "./GetRecordsResponseData"; + +@@ -13,3 +12,3 @@ export const GetRecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: GetRecordsResponseData, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).GetRecordsResponseData), + }); +@@ -18,3 +17,3 @@ export declare namespace GetRecordsResponse { + interface Raw { +- data: GetRecordsResponseData.Raw; ++ data: serializers.GetRecordsResponseData.Raw; + } +diff --git a/src/serialization/resources/records/types/GetRecordsResponseData.ts b/src/serialization/resources/records/types/GetRecordsResponseData.ts +index 1f6df5f..5b258c7 100644 +--- a/src/serialization/resources/records/types/GetRecordsResponseData.ts ++++ b/src/serialization/resources/records/types/GetRecordsResponseData.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordsWithLinks } from "./RecordsWithLinks"; +-import { RecordCounts } from "./RecordCounts"; +-import { VersionId } from "../../commons/types/VersionId"; +-import { CommitId } from "../../commons/types/CommitId"; +-import { SuccessData } from "../../commons/types/SuccessData"; +-import { RecordWithLinks } from "./RecordWithLinks"; + +@@ -19,15 +13,15 @@ export const GetRecordsResponseData: core.serialization.ObjectSchema< + .object({ +- records: RecordsWithLinks, +- counts: RecordCounts.optional(), +- versionId: VersionId.optional(), +- commitId: CommitId.optional(), ++ records: core.serialization.lazy(async () => (await import("../../..")).RecordsWithLinks), ++ counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), ++ commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), + }) +- .extend(SuccessData); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).SuccessData)); + + export declare namespace GetRecordsResponseData { +- interface Raw extends SuccessData.Raw { +- records: RecordsWithLinks.Raw; +- counts?: RecordCounts.Raw | null; +- versionId?: VersionId.Raw | null; +- commitId?: CommitId.Raw | null; ++ interface Raw extends serializers.SuccessData.Raw { ++ records: serializers.RecordsWithLinks.Raw; ++ counts?: serializers.RecordCounts.Raw | null; ++ versionId?: serializers.VersionId.Raw | null; ++ commitId?: serializers.CommitId.Raw | null; + } +diff --git a/src/serialization/resources/records/types/RecordBase.ts b/src/serialization/resources/records/types/RecordBase.ts +index 89a03f5..2632171 100644 +--- a/src/serialization/resources/records/types/RecordBase.ts ++++ b/src/serialization/resources/records/types/RecordBase.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordId } from "../../commons/types/RecordId"; +-import { VersionId } from "../../commons/types/VersionId"; +-import { CommitId } from "../../commons/types/CommitId"; +-import { ValidationMessage } from "./ValidationMessage"; + +@@ -14,7 +10,9 @@ export const RecordBase: core.serialization.ObjectSchema (await import("../../..")).RecordId), ++ versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), ++ commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), + valid: core.serialization.boolean().optional(), +- messages: core.serialization.list(ValidationMessage).optional(), ++ messages: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).ValidationMessage)) ++ .optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -24,7 +22,7 @@ export declare namespace RecordBase { + interface Raw { +- id: RecordId.Raw; +- versionId?: VersionId.Raw | null; +- commitId?: CommitId.Raw | null; ++ id: serializers.RecordId.Raw; ++ versionId?: serializers.VersionId.Raw | null; ++ commitId?: serializers.CommitId.Raw | null; + valid?: boolean | null; +- messages?: ValidationMessage.Raw[] | null; ++ messages?: serializers.ValidationMessage.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/records/types/RecordCounts.ts b/src/serialization/resources/records/types/RecordCounts.ts +index 8522483..0ab7c36 100644 +--- a/src/serialization/resources/records/types/RecordCounts.ts ++++ b/src/serialization/resources/records/types/RecordCounts.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { FieldRecordCounts } from "./FieldRecordCounts"; + +@@ -15,3 +14,8 @@ export const RecordCounts: core.serialization.ObjectSchema (await import("../../..")).FieldRecordCounts) ++ ) ++ .optional(), + }); +@@ -24,3 +28,3 @@ export declare namespace RecordCounts { + errorsByField?: Record | null; +- byField?: Record | null; ++ byField?: Record | null; + } +diff --git a/src/serialization/resources/records/types/RecordData.ts b/src/serialization/resources/records/types/RecordData.ts +index d1f50a0..6cc2b65 100644 +--- a/src/serialization/resources/records/types/RecordData.ts ++++ b/src/serialization/resources/records/types/RecordData.ts +@@ -7,9 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CellValue } from "./CellValue"; + + export const RecordData: core.serialization.Schema = +- core.serialization.record(core.serialization.string(), CellValue); ++ core.serialization.record( ++ core.serialization.string(), ++ core.serialization.lazyObject(async () => (await import("../../..")).CellValue) ++ ); + + export declare namespace RecordData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/RecordDataWithLinks.ts b/src/serialization/resources/records/types/RecordDataWithLinks.ts +index 47aedbb..84354e5 100644 +--- a/src/serialization/resources/records/types/RecordDataWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordDataWithLinks.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CellValueWithLinks } from "./CellValueWithLinks"; + +@@ -12,6 +11,9 @@ export const RecordDataWithLinks: core.serialization.Schema< + Flatfile.RecordDataWithLinks +-> = core.serialization.record(core.serialization.string(), CellValueWithLinks); ++> = core.serialization.record( ++ core.serialization.string(), ++ core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithLinks) ++); + + export declare namespace RecordDataWithLinks { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/RecordWithLinks.ts b/src/serialization/resources/records/types/RecordWithLinks.ts +index 40002b9..7a03350 100644 +--- a/src/serialization/resources/records/types/RecordWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordWithLinks.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordId } from "../../commons/types/RecordId"; +-import { RecordDataWithLinks } from "./RecordDataWithLinks"; +-import { ValidationMessage } from "./ValidationMessage"; +-import { CellValueWithLinks } from "./CellValueWithLinks"; + +@@ -16,6 +12,8 @@ export const RecordWithLinks: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: RecordId, +- values: RecordDataWithLinks, ++ id: core.serialization.lazy(async () => (await import("../../..")).RecordId), ++ values: core.serialization.lazy(async () => (await import("../../..")).RecordDataWithLinks), + valid: core.serialization.boolean().optional(), +- messages: core.serialization.list(ValidationMessage).optional(), ++ messages: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).ValidationMessage)) ++ .optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -25,6 +23,6 @@ export declare namespace RecordWithLinks { + interface Raw { +- id: RecordId.Raw; +- values: RecordDataWithLinks.Raw; ++ id: serializers.RecordId.Raw; ++ values: serializers.RecordDataWithLinks.Raw; + valid?: boolean | null; +- messages?: ValidationMessage.Raw[] | null; ++ messages?: serializers.ValidationMessage.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/records/types/Record_.ts b/src/serialization/resources/records/types/Record_.ts +index ac41762..ed545bc 100644 +--- a/src/serialization/resources/records/types/Record_.ts ++++ b/src/serialization/resources/records/types/Record_.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordData } from "./RecordData"; +-import { RecordBase } from "./RecordBase"; +-import { CellValue } from "./CellValue"; + +@@ -13,9 +10,9 @@ export const Record_: core.serialization.ObjectSchema (await import("../../..")).RecordData), + }) +- .extend(RecordBase); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).RecordBase)); + + export declare namespace Record_ { +- interface Raw extends RecordBase.Raw { +- values: RecordData.Raw; ++ interface Raw extends serializers.RecordBase.Raw { ++ values: serializers.RecordData.Raw; + } +diff --git a/src/serialization/resources/records/types/Records.ts b/src/serialization/resources/records/types/Records.ts +index 5396531..3d4b638 100644 +--- a/src/serialization/resources/records/types/Records.ts ++++ b/src/serialization/resources/records/types/Records.ts +@@ -7,9 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Record_ } from "./Record_"; + +-export const Records: core.serialization.Schema = +- core.serialization.list(Record_); ++export const Records: core.serialization.Schema = core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).Record_) ++); + + export declare namespace Records { +- type Raw = Record_.Raw[]; ++ type Raw = serializers.Record_.Raw[]; + } +diff --git a/src/serialization/resources/records/types/RecordsResponse.ts b/src/serialization/resources/records/types/RecordsResponse.ts +index ceefccf..1984d89 100644 +--- a/src/serialization/resources/records/types/RecordsResponse.ts ++++ b/src/serialization/resources/records/types/RecordsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordsResponseData } from "./RecordsResponseData"; + +@@ -13,3 +12,3 @@ export const RecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: RecordsResponseData, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).RecordsResponseData), + }); +@@ -18,3 +17,3 @@ export declare namespace RecordsResponse { + interface Raw { +- data: RecordsResponseData.Raw; ++ data: serializers.RecordsResponseData.Raw; + } +diff --git a/src/serialization/resources/records/types/RecordsResponseData.ts b/src/serialization/resources/records/types/RecordsResponseData.ts +index 9644a9a..916cf54 100644 +--- a/src/serialization/resources/records/types/RecordsResponseData.ts ++++ b/src/serialization/resources/records/types/RecordsResponseData.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordsWithLinks } from "./RecordsWithLinks"; +-import { RecordCounts } from "./RecordCounts"; +-import { VersionId } from "../../commons/types/VersionId"; +-import { CommitId } from "../../commons/types/CommitId"; +-import { SuccessData } from "../../commons/types/SuccessData"; +-import { RecordWithLinks } from "./RecordWithLinks"; + +@@ -19,15 +13,15 @@ export const RecordsResponseData: core.serialization.ObjectSchema< + .object({ +- records: RecordsWithLinks.optional(), +- counts: RecordCounts.optional(), +- versionId: VersionId.optional(), +- commitId: CommitId.optional(), ++ records: core.serialization.lazy(async () => (await import("../../..")).RecordsWithLinks).optional(), ++ counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), ++ commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), + }) +- .extend(SuccessData); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).SuccessData)); + + export declare namespace RecordsResponseData { +- interface Raw extends SuccessData.Raw { +- records?: RecordsWithLinks.Raw | null; +- counts?: RecordCounts.Raw | null; +- versionId?: VersionId.Raw | null; +- commitId?: CommitId.Raw | null; ++ interface Raw extends serializers.SuccessData.Raw { ++ records?: serializers.RecordsWithLinks.Raw | null; ++ counts?: serializers.RecordCounts.Raw | null; ++ versionId?: serializers.VersionId.Raw | null; ++ commitId?: serializers.CommitId.Raw | null; + } +diff --git a/src/serialization/resources/records/types/RecordsWithLinks.ts b/src/serialization/resources/records/types/RecordsWithLinks.ts +index b28d744..e038b8b 100644 +--- a/src/serialization/resources/records/types/RecordsWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordsWithLinks.ts +@@ -7,9 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordWithLinks } from "./RecordWithLinks"; + + export const RecordsWithLinks: core.serialization.Schema = +- core.serialization.list(RecordWithLinks); ++ core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).RecordWithLinks)); + + export declare namespace RecordsWithLinks { +- type Raw = RecordWithLinks.Raw[]; ++ type Raw = serializers.RecordWithLinks.Raw[]; + } +diff --git a/src/serialization/resources/records/types/ValidationMessage.ts b/src/serialization/resources/records/types/ValidationMessage.ts +index 7a34f9f..c8d5ade 100644 +--- a/src/serialization/resources/records/types/ValidationMessage.ts ++++ b/src/serialization/resources/records/types/ValidationMessage.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ValidationType } from "./ValidationType"; +-import { ValidationSource } from "./ValidationSource"; + +@@ -14,4 +12,4 @@ export const ValidationMessage: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: ValidationType.optional(), +- source: ValidationSource.optional(), ++ type: core.serialization.lazy(async () => (await import("../../..")).ValidationType).optional(), ++ source: core.serialization.lazy(async () => (await import("../../..")).ValidationSource).optional(), + message: core.serialization.string().optional(), +@@ -21,4 +19,4 @@ export declare namespace ValidationMessage { + interface Raw { +- type?: ValidationType.Raw | null; +- source?: ValidationSource.Raw | null; ++ type?: serializers.ValidationType.Raw | null; ++ source?: serializers.ValidationSource.Raw | null; + message?: string | null; +diff --git a/src/serialization/resources/roles/types/ActorIdUnion.ts b/src/serialization/resources/roles/types/ActorIdUnion.ts +index c36a440..f1dfdbd 100644 +--- a/src/serialization/resources/roles/types/ActorIdUnion.ts ++++ b/src/serialization/resources/roles/types/ActorIdUnion.ts +@@ -7,11 +7,12 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { UserId } from "../../commons/types/UserId"; +-import { AgentId } from "../../commons/types/AgentId"; +-import { GuestId } from "../../commons/types/GuestId"; + + export const ActorIdUnion: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([UserId, AgentId, GuestId]); ++ core.serialization.undiscriminatedUnion([ ++ core.serialization.lazy(async () => (await import("../../..")).UserId), ++ core.serialization.lazy(async () => (await import("../../..")).AgentId), ++ core.serialization.lazy(async () => (await import("../../..")).GuestId), ++ ]); + + export declare namespace ActorIdUnion { +- type Raw = UserId.Raw | AgentId.Raw | GuestId.Raw; ++ type Raw = serializers.UserId.Raw | serializers.AgentId.Raw | serializers.GuestId.Raw; + } +diff --git a/src/serialization/resources/roles/types/ActorRoleResponse.ts b/src/serialization/resources/roles/types/ActorRoleResponse.ts +index 30cf630..0027449 100644 +--- a/src/serialization/resources/roles/types/ActorRoleResponse.ts ++++ b/src/serialization/resources/roles/types/ActorRoleResponse.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ActorRoleId } from "../../commons/types/ActorRoleId"; +-import { RoleId } from "../../commons/types/RoleId"; +-import { ActorIdUnion } from "./ActorIdUnion"; +-import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -16,6 +12,6 @@ export const ActorRoleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: ActorRoleId, +- roleId: RoleId, +- actorId: ActorIdUnion, +- resourceId: ResourceIdUnion, ++ id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), ++ roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), ++ actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), ++ resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), + createdAt: core.serialization.date(), +@@ -26,6 +22,6 @@ export declare namespace ActorRoleResponse { + interface Raw { +- id: ActorRoleId.Raw; +- roleId: RoleId.Raw; +- actorId: ActorIdUnion.Raw; +- resourceId: ResourceIdUnion.Raw; ++ id: serializers.ActorRoleId.Raw; ++ roleId: serializers.RoleId.Raw; ++ actorId: serializers.ActorIdUnion.Raw; ++ resourceId: serializers.ResourceIdUnion.Raw; + createdAt: string; +diff --git a/src/serialization/resources/roles/types/AssignActorRoleRequest.ts b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +index 9450608..fad27ea 100644 +--- a/src/serialization/resources/roles/types/AssignActorRoleRequest.ts ++++ b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RoleId } from "../../commons/types/RoleId"; +-import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -14,4 +12,4 @@ export const AssignActorRoleRequest: core.serialization.ObjectSchema< + > = core.serialization.object({ +- roleId: RoleId, +- resourceId: ResourceIdUnion, ++ roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), ++ resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), + }); +@@ -20,4 +18,4 @@ export declare namespace AssignActorRoleRequest { + interface Raw { +- roleId: RoleId.Raw; +- resourceId: ResourceIdUnion.Raw; ++ roleId: serializers.RoleId.Raw; ++ resourceId: serializers.ResourceIdUnion.Raw; + } +diff --git a/src/serialization/resources/roles/types/AssignRoleResponse.ts b/src/serialization/resources/roles/types/AssignRoleResponse.ts +index e54cbd7..f868ddc 100644 +--- a/src/serialization/resources/roles/types/AssignRoleResponse.ts ++++ b/src/serialization/resources/roles/types/AssignRoleResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { AssignRoleResponseData } from "./AssignRoleResponseData"; + +@@ -13,3 +12,3 @@ export const AssignRoleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: AssignRoleResponseData, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).AssignRoleResponseData), + }); +@@ -18,3 +17,3 @@ export declare namespace AssignRoleResponse { + interface Raw { +- data: AssignRoleResponseData.Raw; ++ data: serializers.AssignRoleResponseData.Raw; + } +diff --git a/src/serialization/resources/roles/types/AssignRoleResponseData.ts b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +index 94ae119..6cd2a5a 100644 +--- a/src/serialization/resources/roles/types/AssignRoleResponseData.ts ++++ b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ActorRoleId } from "../../commons/types/ActorRoleId"; +-import { RoleId } from "../../commons/types/RoleId"; +-import { ActorIdUnion } from "./ActorIdUnion"; +-import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -16,6 +12,6 @@ export const AssignRoleResponseData: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: ActorRoleId, +- roleId: RoleId, +- actorId: ActorIdUnion, +- resourceId: ResourceIdUnion, ++ id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), ++ roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), ++ actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), ++ resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), + createdAt: core.serialization.date(), +@@ -26,6 +22,6 @@ export declare namespace AssignRoleResponseData { + interface Raw { +- id: ActorRoleId.Raw; +- roleId: RoleId.Raw; +- actorId: ActorIdUnion.Raw; +- resourceId: ResourceIdUnion.Raw; ++ id: serializers.ActorRoleId.Raw; ++ roleId: serializers.RoleId.Raw; ++ actorId: serializers.ActorIdUnion.Raw; ++ resourceId: serializers.ResourceIdUnion.Raw; + createdAt: string; +diff --git a/src/serialization/resources/roles/types/ListActorRolesResponse.ts b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +index b79c703..21b0571 100644 +--- a/src/serialization/resources/roles/types/ListActorRolesResponse.ts ++++ b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ActorRoleResponse } from "./ActorRoleResponse"; + +@@ -13,3 +12,5 @@ export const ListActorRolesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(ActorRoleResponse), ++ data: core.serialization.list( ++ core.serialization.lazyObject(async () => (await import("../../..")).ActorRoleResponse) ++ ), + }); +@@ -18,3 +19,3 @@ export declare namespace ListActorRolesResponse { + interface Raw { +- data: ActorRoleResponse.Raw[]; ++ data: serializers.ActorRoleResponse.Raw[]; + } +diff --git a/src/serialization/resources/roles/types/ListRolesResponse.ts b/src/serialization/resources/roles/types/ListRolesResponse.ts +index 6176a87..988fc50 100644 +--- a/src/serialization/resources/roles/types/ListRolesResponse.ts ++++ b/src/serialization/resources/roles/types/ListRolesResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RoleResponse } from "./RoleResponse"; + +@@ -13,3 +12,3 @@ export const ListRolesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(RoleResponse), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).RoleResponse)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListRolesResponse { + interface Raw { +- data: RoleResponse.Raw[]; ++ data: serializers.RoleResponse.Raw[]; + } +diff --git a/src/serialization/resources/roles/types/ResourceIdUnion.ts b/src/serialization/resources/roles/types/ResourceIdUnion.ts +index 9632bdc..3ad9a46 100644 +--- a/src/serialization/resources/roles/types/ResourceIdUnion.ts ++++ b/src/serialization/resources/roles/types/ResourceIdUnion.ts +@@ -7,11 +7,12 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { AccountId } from "../../commons/types/AccountId"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { SpaceId } from "../../commons/types/SpaceId"; + + export const ResourceIdUnion: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([AccountId, EnvironmentId, SpaceId]); ++ core.serialization.undiscriminatedUnion([ ++ core.serialization.lazy(async () => (await import("../../..")).AccountId), ++ core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), ++ core.serialization.lazy(async () => (await import("../../..")).SpaceId), ++ ]); + + export declare namespace ResourceIdUnion { +- type Raw = AccountId.Raw | EnvironmentId.Raw | SpaceId.Raw; ++ type Raw = serializers.AccountId.Raw | serializers.EnvironmentId.Raw | serializers.SpaceId.Raw; + } +diff --git a/src/serialization/resources/roles/types/RoleResponse.ts b/src/serialization/resources/roles/types/RoleResponse.ts +index b7391e8..a96138a 100644 +--- a/src/serialization/resources/roles/types/RoleResponse.ts ++++ b/src/serialization/resources/roles/types/RoleResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RoleId } from "../../commons/types/RoleId"; +-import { AccountId } from "../../commons/types/AccountId"; + +@@ -12,5 +10,5 @@ export const RoleResponse: core.serialization.ObjectSchema (await import("../../..")).RoleId), + name: core.serialization.string(), +- accountId: AccountId, ++ accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), + createdAt: core.serialization.date(), +@@ -21,5 +19,5 @@ export declare namespace RoleResponse { + interface Raw { +- id: RoleId.Raw; ++ id: serializers.RoleId.Raw; + name: string; +- accountId: AccountId.Raw; ++ accountId: serializers.AccountId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/secrets/types/Secret.ts b/src/serialization/resources/secrets/types/Secret.ts +index a261623..8ee44ca 100644 +--- a/src/serialization/resources/secrets/types/Secret.ts ++++ b/src/serialization/resources/secrets/types/Secret.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SecretId } from "../../commons/types/SecretId"; +-import { WriteSecret } from "./WriteSecret"; + +@@ -12,9 +10,9 @@ export const Secret: core.serialization.ObjectSchema (await import("../../..")).SecretId), + }) +- .extend(WriteSecret); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).WriteSecret)); + + export declare namespace Secret { +- interface Raw extends WriteSecret.Raw { +- id: SecretId.Raw; ++ interface Raw extends serializers.WriteSecret.Raw { ++ id: serializers.SecretId.Raw; + } +diff --git a/src/serialization/resources/secrets/types/SecretsResponse.ts b/src/serialization/resources/secrets/types/SecretsResponse.ts +index 93cdea3..ae2a03e 100644 +--- a/src/serialization/resources/secrets/types/SecretsResponse.ts ++++ b/src/serialization/resources/secrets/types/SecretsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Secret } from "./Secret"; + +@@ -13,3 +12,3 @@ export const SecretsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Secret), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Secret)), + }); +@@ -18,3 +17,3 @@ export declare namespace SecretsResponse { + interface Raw { +- data: Secret.Raw[]; ++ data: serializers.Secret.Raw[]; + } +diff --git a/src/serialization/resources/secrets/types/WriteSecret.ts b/src/serialization/resources/secrets/types/WriteSecret.ts +index ed67737..31c1232 100644 +--- a/src/serialization/resources/secrets/types/WriteSecret.ts ++++ b/src/serialization/resources/secrets/types/WriteSecret.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SecretName } from "./SecretName"; +-import { SecretValue } from "./SecretValue"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { SpaceId } from "../../commons/types/SpaceId"; + +@@ -14,6 +10,6 @@ export const WriteSecret: core.serialization.ObjectSchema (await import("../../..")).SecretName), ++ value: core.serialization.lazy(async () => (await import("../../..")).SecretValue), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), + }); +@@ -22,6 +18,6 @@ export declare namespace WriteSecret { + interface Raw { +- name: SecretName.Raw; +- value: SecretValue.Raw; +- environmentId?: EnvironmentId.Raw | null; +- spaceId?: SpaceId.Raw | null; ++ name: serializers.SecretName.Raw; ++ value: serializers.SecretValue.Raw; ++ environmentId?: serializers.EnvironmentId.Raw | null; ++ spaceId?: serializers.SpaceId.Raw | null; + } +diff --git a/src/serialization/resources/sheets/types/CellValueWithCounts.ts b/src/serialization/resources/sheets/types/CellValueWithCounts.ts +index 22aef0f..9b1b709 100644 +--- a/src/serialization/resources/sheets/types/CellValueWithCounts.ts ++++ b/src/serialization/resources/sheets/types/CellValueWithCounts.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordCounts } from "../../records/types/RecordCounts"; +-import { CellValue } from "../../records/types/CellValue"; + +@@ -15,9 +13,9 @@ export const CellValueWithCounts: core.serialization.ObjectSchema< + .object({ +- counts: RecordCounts.optional(), ++ counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), + }) +- .extend(CellValue); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); + + export declare namespace CellValueWithCounts { +- interface Raw extends CellValue.Raw { +- counts?: RecordCounts.Raw | null; ++ interface Raw extends serializers.CellValue.Raw { ++ counts?: serializers.RecordCounts.Raw | null; + } +diff --git a/src/serialization/resources/sheets/types/CellsResponse.ts b/src/serialization/resources/sheets/types/CellsResponse.ts +index aa0db90..6aaba6c 100644 +--- a/src/serialization/resources/sheets/types/CellsResponse.ts ++++ b/src/serialization/resources/sheets/types/CellsResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CellsResponseData } from "./CellsResponseData"; +-import { CellValueWithCounts } from "./CellValueWithCounts"; + +@@ -12,3 +10,3 @@ export const CellsResponse: core.serialization.ObjectSchema (await import("../../..")).CellsResponseData), + }); +@@ -17,3 +15,3 @@ export declare namespace CellsResponse { + interface Raw { +- data: CellsResponseData.Raw; ++ data: serializers.CellsResponseData.Raw; + } +diff --git a/src/serialization/resources/sheets/types/CellsResponseData.ts b/src/serialization/resources/sheets/types/CellsResponseData.ts +index 35c4377..eaf3dc8 100644 +--- a/src/serialization/resources/sheets/types/CellsResponseData.ts ++++ b/src/serialization/resources/sheets/types/CellsResponseData.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CellValueWithCounts } from "./CellValueWithCounts"; + +@@ -12,6 +11,9 @@ export const CellsResponseData: core.serialization.Schema< + Flatfile.CellsResponseData +-> = core.serialization.record(core.serialization.string(), core.serialization.list(CellValueWithCounts)); ++> = core.serialization.record( ++ core.serialization.string(), ++ core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithCounts)) ++); + + export declare namespace CellsResponseData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts b/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts +index d859c8d..8d299e9 100644 +--- a/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts ++++ b/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CompositeUniqueConstraintStrategy } from "./CompositeUniqueConstraintStrategy"; + +@@ -15,3 +14,3 @@ export const CompositeUniqueConstraint: core.serialization.ObjectSchema< + fields: core.serialization.list(core.serialization.string()), +- strategy: CompositeUniqueConstraintStrategy, ++ strategy: core.serialization.lazy(async () => (await import("../../..")).CompositeUniqueConstraintStrategy), + }); +@@ -22,3 +21,3 @@ export declare namespace CompositeUniqueConstraint { + fields: string[]; +- strategy: CompositeUniqueConstraintStrategy.Raw; ++ strategy: serializers.CompositeUniqueConstraintStrategy.Raw; + } +diff --git a/src/serialization/resources/sheets/types/FieldConfigResponse.ts b/src/serialization/resources/sheets/types/FieldConfigResponse.ts +index 90bc380..a4c7cc8 100644 +--- a/src/serialization/resources/sheets/types/FieldConfigResponse.ts ++++ b/src/serialization/resources/sheets/types/FieldConfigResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Property } from "../../property/types/Property"; + +@@ -13,3 +12,3 @@ export const FieldConfigResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: Property, ++ data: core.serialization.lazy(async () => (await import("../../..")).Property), + }); +@@ -18,3 +17,3 @@ export declare namespace FieldConfigResponse { + interface Raw { +- data: Property.Raw; ++ data: serializers.Property.Raw; + } +diff --git a/src/serialization/resources/sheets/types/ListSheetsResponse.ts b/src/serialization/resources/sheets/types/ListSheetsResponse.ts +index 8620c5c..de34c0c 100644 +--- a/src/serialization/resources/sheets/types/ListSheetsResponse.ts ++++ b/src/serialization/resources/sheets/types/ListSheetsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Sheet } from "./Sheet"; + +@@ -13,3 +12,3 @@ export const ListSheetsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Sheet), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Sheet)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListSheetsResponse { + interface Raw { +- data: Sheet.Raw[]; ++ data: serializers.Sheet.Raw[]; + } +diff --git a/src/serialization/resources/sheets/types/RecordCountsResponse.ts b/src/serialization/resources/sheets/types/RecordCountsResponse.ts +index c4e7334..cdebc31 100644 +--- a/src/serialization/resources/sheets/types/RecordCountsResponse.ts ++++ b/src/serialization/resources/sheets/types/RecordCountsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordCountsResponseData } from "./RecordCountsResponseData"; + +@@ -13,3 +12,3 @@ export const RecordCountsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: RecordCountsResponseData, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).RecordCountsResponseData), + }); +@@ -18,3 +17,3 @@ export declare namespace RecordCountsResponse { + interface Raw { +- data: RecordCountsResponseData.Raw; ++ data: serializers.RecordCountsResponseData.Raw; + } +diff --git a/src/serialization/resources/sheets/types/RecordCountsResponseData.ts b/src/serialization/resources/sheets/types/RecordCountsResponseData.ts +index 29afd10..3bb978e 100644 +--- a/src/serialization/resources/sheets/types/RecordCountsResponseData.ts ++++ b/src/serialization/resources/sheets/types/RecordCountsResponseData.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RecordCounts } from "../../records/types/RecordCounts"; + +@@ -13,3 +12,3 @@ export const RecordCountsResponseData: core.serialization.ObjectSchema< + > = core.serialization.object({ +- counts: RecordCounts, ++ counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts), + success: core.serialization.boolean(), +@@ -19,3 +18,3 @@ export declare namespace RecordCountsResponseData { + interface Raw { +- counts: RecordCounts.Raw; ++ counts: serializers.RecordCounts.Raw; + success: boolean; +diff --git a/src/serialization/resources/sheets/types/Sheet.ts b/src/serialization/resources/sheets/types/Sheet.ts +index 46580fc..4e3c704 100644 +--- a/src/serialization/resources/sheets/types/Sheet.ts ++++ b/src/serialization/resources/sheets/types/Sheet.ts +@@ -7,13 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetId } from "../../commons/types/SheetId"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; +-import { SheetConfig } from "./SheetConfig"; +-import { RecordCounts } from "../../records/types/RecordCounts"; + + export const Sheet: core.serialization.ObjectSchema = core.serialization.object({ +- id: SheetId, +- workbookId: WorkbookId, ++ id: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId), + name: core.serialization.string(), + slug: core.serialization.string(), +- config: SheetConfig, ++ config: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig), ++ countRecords: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), + namespace: core.serialization.string().optional(), +@@ -23,3 +20,2 @@ export const Sheet: core.serialization.ObjectSchema (await import("../../..")).SheetAccess)) ++ .optional(), ++ fields: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).Property)), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) ++ .optional(), + metadata: core.serialization.any().optional(), +- constraints: core.serialization.list(SheetConstraint).optional(), ++ constraints: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).SheetConstraint)) ++ .optional(), + }); +@@ -35,7 +37,7 @@ export declare namespace SheetConfig { + mappingConfidenceThreshold?: number | null; +- access?: SheetAccess.Raw[] | null; +- fields: Property.Raw[]; +- actions?: Action.Raw[] | null; ++ access?: serializers.SheetAccess.Raw[] | null; ++ fields: serializers.Property.Raw[]; ++ actions?: serializers.Action.Raw[] | null; + metadata?: any | null; +- constraints?: SheetConstraint.Raw[] | null; ++ constraints?: serializers.SheetConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts b/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts +index ccb3007..a58ab72 100644 +--- a/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetConfigUpdate } from "./SheetConfigUpdate"; +-import { SheetUpdate } from "./SheetUpdate"; + +@@ -13,6 +11,9 @@ export const SheetConfigOrUpdate: core.serialization.ObjectSchema< + Flatfile.SheetConfigOrUpdate +-> = core.serialization.object({}).extend(SheetConfigUpdate).extend(SheetUpdate); ++> = core.serialization ++ .object({}) ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfigUpdate)) ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).SheetUpdate)); + + export declare namespace SheetConfigOrUpdate { +- interface Raw extends SheetConfigUpdate.Raw, SheetUpdate.Raw {} ++ interface Raw extends serializers.SheetConfigUpdate.Raw, serializers.SheetUpdate.Raw {} + } +diff --git a/src/serialization/resources/sheets/types/SheetConfigUpdate.ts b/src/serialization/resources/sheets/types/SheetConfigUpdate.ts +index 8b7fba9..4cc00b3 100644 +--- a/src/serialization/resources/sheets/types/SheetConfigUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetConfigUpdate.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetAccess } from "./SheetAccess"; +-import { Property } from "../../property/types/Property"; +-import { Action } from "../../commons/types/Action"; + +@@ -21,5 +18,11 @@ export const SheetConfigUpdate: core.serialization.ObjectSchema< + mappingConfidenceThreshold: core.serialization.number().optional(), +- access: core.serialization.list(SheetAccess).optional(), +- fields: core.serialization.list(Property).optional(), +- actions: core.serialization.list(Action).optional(), ++ access: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).SheetAccess)) ++ .optional(), ++ fields: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).Property)) ++ .optional(), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) ++ .optional(), + }); +@@ -34,5 +37,5 @@ export declare namespace SheetConfigUpdate { + mappingConfidenceThreshold?: number | null; +- access?: SheetAccess.Raw[] | null; +- fields?: Property.Raw[] | null; +- actions?: Action.Raw[] | null; ++ access?: serializers.SheetAccess.Raw[] | null; ++ fields?: serializers.Property.Raw[] | null; ++ actions?: serializers.Action.Raw[] | null; + } +diff --git a/src/serialization/resources/sheets/types/SheetConstraint.ts b/src/serialization/resources/sheets/types/SheetConstraint.ts +index cb4d9ee..a55e17d 100644 +--- a/src/serialization/resources/sheets/types/SheetConstraint.ts ++++ b/src/serialization/resources/sheets/types/SheetConstraint.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { CompositeUniqueConstraint } from "./CompositeUniqueConstraint"; +-import { ExternalSheetConstraint } from "./ExternalSheetConstraint"; + +@@ -13,4 +11,4 @@ export const SheetConstraint: core.serialization.Schema (await import("../../..")).CompositeUniqueConstraint), ++ external: core.serialization.lazyObject(async () => (await import("../../..")).ExternalSheetConstraint), + }) +@@ -24,3 +22,3 @@ export declare namespace SheetConstraint { + +- interface Unique extends CompositeUniqueConstraint.Raw { ++ interface Unique extends serializers.CompositeUniqueConstraint.Raw { + type: "unique"; +@@ -28,3 +26,3 @@ export declare namespace SheetConstraint { + +- interface External extends ExternalSheetConstraint.Raw { ++ interface External extends serializers.ExternalSheetConstraint.Raw { + type: "external"; +diff --git a/src/serialization/resources/sheets/types/SheetResponse.ts b/src/serialization/resources/sheets/types/SheetResponse.ts +index 97811d1..084f567 100644 +--- a/src/serialization/resources/sheets/types/SheetResponse.ts ++++ b/src/serialization/resources/sheets/types/SheetResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Sheet } from "./Sheet"; + +@@ -11,3 +10,3 @@ export const SheetResponse: core.serialization.ObjectSchema (await import("../../..")).Sheet), + }); +@@ -16,3 +15,3 @@ export declare namespace SheetResponse { + interface Raw { +- data: Sheet.Raw; ++ data: serializers.Sheet.Raw; + } +diff --git a/src/serialization/resources/sheets/types/SheetUpdate.ts b/src/serialization/resources/sheets/types/SheetUpdate.ts +index f3e3b7c..2ee2953 100644 +--- a/src/serialization/resources/sheets/types/SheetUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetUpdate.ts +@@ -7,5 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SheetId } from "../../commons/types/SheetId"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; +-import { SheetConfig } from "./SheetConfig"; + +@@ -13,5 +10,6 @@ export const SheetUpdate: core.serialization.ObjectSchema (await import("../../..")).SheetId).optional(), ++ workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), ++ config: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig).optional(), ++ countRecords: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), + namespace: core.serialization.string().optional(), +@@ -23,5 +21,6 @@ export declare namespace SheetUpdate { + interface Raw { +- id?: SheetId.Raw | null; +- workbookId?: WorkbookId.Raw | null; +- config?: SheetConfig.Raw | null; ++ id?: serializers.SheetId.Raw | null; ++ workbookId?: serializers.WorkbookId.Raw | null; ++ config?: serializers.SheetConfig.Raw | null; ++ countRecords?: serializers.RecordCounts.Raw | null; + namespace?: string | null; +diff --git a/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts b/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts +index 661681c..9aa9754 100644 +--- a/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts ++++ b/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; +-import { SheetId } from "../../../commons/types/SheetId"; + +@@ -13,3 +12,3 @@ export const CreateSnapshotRequest: core.serialization.Schema< + > = core.serialization.object({ +- sheetId: SheetId, ++ sheetId: core.serialization.lazy(async () => (await import("../../../..")).SheetId), + label: core.serialization.string().optional(), +@@ -19,3 +18,3 @@ export declare namespace CreateSnapshotRequest { + interface Raw { +- sheetId: SheetId.Raw; ++ sheetId: serializers.SheetId.Raw; + label?: string | null; +diff --git a/src/serialization/resources/snapshots/client/restoreSnapshot.ts b/src/serialization/resources/snapshots/client/restoreSnapshot.ts +index 1122a48..ee59bc1 100644 +--- a/src/serialization/resources/snapshots/client/restoreSnapshot.ts ++++ b/src/serialization/resources/snapshots/client/restoreSnapshot.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { RestoreOptions } from "../types/RestoreOptions"; + +@@ -12,6 +11,6 @@ export const Request: core.serialization.Schema< + Flatfile.RestoreOptions | undefined +-> = RestoreOptions.optional(); ++> = core.serialization.lazyObject(async () => (await import("../../..")).RestoreOptions).optional(); + + export declare namespace Request { +- type Raw = RestoreOptions.Raw | null | undefined; ++ type Raw = serializers.RestoreOptions.Raw | null | undefined; + } +diff --git a/src/serialization/resources/snapshots/types/Snapshot.ts b/src/serialization/resources/snapshots/types/Snapshot.ts +index 941fdb8..eea6003 100644 +--- a/src/serialization/resources/snapshots/types/Snapshot.ts ++++ b/src/serialization/resources/snapshots/types/Snapshot.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SnapshotId } from "../../commons/types/SnapshotId"; +-import { SheetId } from "../../commons/types/SheetId"; +-import { SnapshotSummary } from "./SnapshotSummary"; +-import { UserId } from "../../commons/types/UserId"; + +@@ -14,8 +10,8 @@ export const Snapshot: core.serialization.ObjectSchema (await import("../../..")).SnapshotId), ++ sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), + label: core.serialization.string().optional(), +- summary: SnapshotSummary.optional(), ++ summary: core.serialization.lazyObject(async () => (await import("../../..")).SnapshotSummary).optional(), + createdAt: core.serialization.date(), +- createdBy: UserId, ++ createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId), + }); +@@ -24,8 +20,8 @@ export declare namespace Snapshot { + interface Raw { +- id: SnapshotId.Raw; +- sheetId: SheetId.Raw; ++ id: serializers.SnapshotId.Raw; ++ sheetId: serializers.SheetId.Raw; + label?: string | null; +- summary?: SnapshotSummary.Raw | null; ++ summary?: serializers.SnapshotSummary.Raw | null; + createdAt: string; +- createdBy: UserId.Raw; ++ createdBy: serializers.UserId.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotResponse.ts b/src/serialization/resources/snapshots/types/SnapshotResponse.ts +index 03f623d..2c7b5b1 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotResponse.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Snapshot } from "./Snapshot"; + +@@ -13,3 +12,3 @@ export const SnapshotResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: Snapshot, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).Snapshot), + }); +@@ -18,3 +17,3 @@ export declare namespace SnapshotResponse { + interface Raw { +- data: Snapshot.Raw; ++ data: serializers.Snapshot.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotSummary.ts b/src/serialization/resources/snapshots/types/SnapshotSummary.ts +index 9fc80cf..ddbc6f5 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotSummary.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotSummary.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SummarySection } from "./SummarySection"; + +@@ -13,5 +12,5 @@ export const SnapshotSummary: core.serialization.ObjectSchema< + > = core.serialization.object({ +- createdSince: SummarySection, +- updatedSince: SummarySection, +- deletedSince: SummarySection, ++ createdSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), ++ updatedSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), ++ deletedSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), + }); +@@ -20,5 +19,5 @@ export declare namespace SnapshotSummary { + interface Raw { +- createdSince: SummarySection.Raw; +- updatedSince: SummarySection.Raw; +- deletedSince: SummarySection.Raw; ++ createdSince: serializers.SummarySection.Raw; ++ updatedSince: serializers.SummarySection.Raw; ++ deletedSince: serializers.SummarySection.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotsResponse.ts b/src/serialization/resources/snapshots/types/SnapshotsResponse.ts +index bc7e92e..614f775 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotsResponse.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotsResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Snapshot } from "./Snapshot"; + +@@ -13,3 +12,3 @@ export const SnapshotsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Snapshot), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Snapshot)), + }); +@@ -18,3 +17,3 @@ export declare namespace SnapshotsResponse { + interface Raw { +- data: Snapshot.Raw[]; ++ data: serializers.Snapshot.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/EventToken.ts b/src/serialization/resources/spaces/types/EventToken.ts +index 72df747..522af9d 100644 +--- a/src/serialization/resources/spaces/types/EventToken.ts ++++ b/src/serialization/resources/spaces/types/EventToken.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { AccountId } from "../../commons/types/AccountId"; + +@@ -11,3 +10,3 @@ export const EventToken: core.serialization.ObjectSchema (await import("../../..")).AccountId).optional(), + subscribeKey: core.serialization.string().optional(), +@@ -19,3 +18,3 @@ export declare namespace EventToken { + interface Raw { +- accountId?: AccountId.Raw | null; ++ accountId?: serializers.AccountId.Raw | null; + subscribeKey?: string | null; +diff --git a/src/serialization/resources/spaces/types/EventTokenResponse.ts b/src/serialization/resources/spaces/types/EventTokenResponse.ts +index 71d4e1e..7cd78f1 100644 +--- a/src/serialization/resources/spaces/types/EventTokenResponse.ts ++++ b/src/serialization/resources/spaces/types/EventTokenResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { EventToken } from "./EventToken"; + +@@ -13,3 +12,3 @@ export const EventTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: EventToken, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).EventToken), + }); +@@ -18,3 +17,3 @@ export declare namespace EventTokenResponse { + interface Raw { +- data: EventToken.Raw; ++ data: serializers.EventToken.Raw; + } +diff --git a/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts b/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts +index 594936e..f742f4f 100644 +--- a/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SpaceConfigId } from "../../commons/types/SpaceConfigId"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; +-import { Action } from "../../commons/types/Action"; +-import { SpaceAccess } from "./SpaceAccess"; +-import { AppId } from "../../commons/types/AppId"; + +@@ -18,8 +12,12 @@ export const InternalSpaceConfigBase: core.serialization.ObjectSchema< + > = core.serialization.object({ +- spaceConfigId: SpaceConfigId.optional(), +- environmentId: EnvironmentId.optional(), +- primaryWorkbookId: WorkbookId.optional(), ++ spaceConfigId: core.serialization.lazy(async () => (await import("../../..")).SpaceConfigId).optional(), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ primaryWorkbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), + metadata: core.serialization.any().optional(), +- actions: core.serialization.list(Action).optional(), +- access: core.serialization.list(SpaceAccess).optional(), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) ++ .optional(), ++ access: core.serialization ++ .list(core.serialization.lazy(async () => (await import("../../..")).SpaceAccess)) ++ .optional(), + autoConfigure: core.serialization.boolean().optional(), +@@ -30,3 +28,2 @@ export const InternalSpaceConfigBase: core.serialization.ObjectSchema< + archivedAt: core.serialization.date().optional(), +- appId: AppId.optional(), + }); +@@ -35,8 +32,8 @@ export declare namespace InternalSpaceConfigBase { + interface Raw { +- spaceConfigId?: SpaceConfigId.Raw | null; +- environmentId?: EnvironmentId.Raw | null; +- primaryWorkbookId?: WorkbookId.Raw | null; ++ spaceConfigId?: serializers.SpaceConfigId.Raw | null; ++ environmentId?: serializers.EnvironmentId.Raw | null; ++ primaryWorkbookId?: serializers.WorkbookId.Raw | null; + metadata?: any | null; +- actions?: Action.Raw[] | null; +- access?: SpaceAccess.Raw[] | null; ++ actions?: serializers.Action.Raw[] | null; ++ access?: serializers.SpaceAccess.Raw[] | null; + autoConfigure?: boolean | null; +@@ -47,3 +44,2 @@ export declare namespace InternalSpaceConfigBase { + archivedAt?: string | null; +- appId?: AppId.Raw | null; + } +diff --git a/src/serialization/resources/spaces/types/ListSpacesResponse.ts b/src/serialization/resources/spaces/types/ListSpacesResponse.ts +index c502cf4..918c6f3 100644 +--- a/src/serialization/resources/spaces/types/ListSpacesResponse.ts ++++ b/src/serialization/resources/spaces/types/ListSpacesResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { Space } from "./Space"; + +@@ -14,4 +12,4 @@ export const ListSpacesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(Space), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Space)), + }); +@@ -20,4 +18,4 @@ export declare namespace ListSpacesResponse { + interface Raw { +- pagination?: Pagination.Raw | null; +- data: Space.Raw[]; ++ pagination?: serializers.Pagination.Raw | null; ++ data: serializers.Space.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/Space.ts b/src/serialization/resources/spaces/types/Space.ts +index 3dd7321..dd38a6f 100644 +--- a/src/serialization/resources/spaces/types/Space.ts ++++ b/src/serialization/resources/spaces/types/Space.ts +@@ -7,7 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { UserId } from "../../commons/types/UserId"; +-import { SpaceSize } from "./SpaceSize"; +-import { GuestAuthenticationEnum } from "../../environments/types/GuestAuthenticationEnum"; +-import { InternalSpaceConfigBase } from "./InternalSpaceConfigBase"; + +@@ -15,6 +10,6 @@ export const Space: core.serialization.ObjectSchema (await import("../../..")).SpaceId), + workbooksCount: core.serialization.number().optional(), + filesCount: core.serialization.number().optional(), +- createdByUserId: UserId.optional(), ++ createdByUserId: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), + createdByUserName: core.serialization.string().optional(), +@@ -29,14 +24,16 @@ export const Space: core.serialization.ObjectSchema (await import("../../..")).SpaceSize).optional(), + upgradedAt: core.serialization.date().optional(), +- guestAuthentication: core.serialization.list(GuestAuthenticationEnum), ++ guestAuthentication: core.serialization.list( ++ core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum) ++ ), + }) +- .extend(InternalSpaceConfigBase); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).InternalSpaceConfigBase)); + + export declare namespace Space { +- interface Raw extends InternalSpaceConfigBase.Raw { +- id: SpaceId.Raw; ++ interface Raw extends serializers.InternalSpaceConfigBase.Raw { ++ id: serializers.SpaceId.Raw; + workbooksCount?: number | null; + filesCount?: number | null; +- createdByUserId?: UserId.Raw | null; ++ createdByUserId?: serializers.UserId.Raw | null; + createdByUserName?: string | null; +@@ -51,5 +48,5 @@ export declare namespace Space { + isCollaborative?: boolean | null; +- size?: SpaceSize.Raw | null; ++ size?: serializers.SpaceSize.Raw | null; + upgradedAt?: string | null; +- guestAuthentication: GuestAuthenticationEnum.Raw[]; ++ guestAuthentication: serializers.GuestAuthenticationEnum.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/SpaceConfig.ts b/src/serialization/resources/spaces/types/SpaceConfig.ts +index 4cb89e9..00a252d 100644 +--- a/src/serialization/resources/spaces/types/SpaceConfig.ts ++++ b/src/serialization/resources/spaces/types/SpaceConfig.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { GuestAuthenticationEnum } from "../../environments/types/GuestAuthenticationEnum"; +-import { InternalSpaceConfigBase } from "./InternalSpaceConfigBase"; + +@@ -15,11 +13,13 @@ export const SpaceConfig: core.serialization.ObjectSchema (await import("../../..")).GuestAuthenticationEnum)) ++ .optional(), + }) +- .extend(InternalSpaceConfigBase); ++ .extend(core.serialization.lazyObject(async () => (await import("../../..")).InternalSpaceConfigBase)); + + export declare namespace SpaceConfig { +- interface Raw extends InternalSpaceConfigBase.Raw { ++ interface Raw extends serializers.InternalSpaceConfigBase.Raw { + name?: string | null; + displayOrder?: number | null; +- guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; + } +diff --git a/src/serialization/resources/spaces/types/SpaceResponse.ts b/src/serialization/resources/spaces/types/SpaceResponse.ts +index d2b0a68..abe2d0b 100644 +--- a/src/serialization/resources/spaces/types/SpaceResponse.ts ++++ b/src/serialization/resources/spaces/types/SpaceResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Space } from "./Space"; + +@@ -11,3 +10,3 @@ export const SpaceResponse: core.serialization.ObjectSchema (await import("../../..")).Space), + }); +@@ -16,3 +15,3 @@ export declare namespace SpaceResponse { + interface Raw { +- data: Space.Raw; ++ data: serializers.Space.Raw; + } +diff --git a/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts b/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts +deleted file mode 100644 +index c3e615a..0000000 +--- a/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts ++++ /dev/null +@@ -1,20 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +- +-export const UpgradeSpaceConfig: core.serialization.ObjectSchema< +- serializers.UpgradeSpaceConfig.Raw, +- Flatfile.UpgradeSpaceConfig +-> = core.serialization.object({ +- id: core.serialization.string(), +-}); +- +-export declare namespace UpgradeSpaceConfig { +- interface Raw { +- id: string; +- } +-} +diff --git a/src/serialization/resources/spaces/types/index.ts b/src/serialization/resources/spaces/types/index.ts +index 8669369..338c7d4 100644 +--- a/src/serialization/resources/spaces/types/index.ts ++++ b/src/serialization/resources/spaces/types/index.ts +@@ -6,3 +6,2 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; +-export * from "./UpgradeSpaceConfig"; + export * from "./EventTokenResponse"; +diff --git a/src/serialization/resources/users/client/requests/UpdateUserRequest.ts b/src/serialization/resources/users/client/requests/UpdateUserRequest.ts +deleted file mode 100644 +index 8b56009..0000000 +--- a/src/serialization/resources/users/client/requests/UpdateUserRequest.ts ++++ /dev/null +@@ -1,22 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../../.."; +-import * as Flatfile from "../../../../../api"; +-import * as core from "../../../../../core"; +- +-export const UpdateUserRequest: core.serialization.Schema< +- serializers.UpdateUserRequest.Raw, +- Flatfile.UpdateUserRequest +-> = core.serialization.object({ +- name: core.serialization.string().optional(), +- dashboard: core.serialization.number().optional(), +-}); +- +-export declare namespace UpdateUserRequest { +- interface Raw { +- name?: string | null; +- dashboard?: number | null; +- } +-} +diff --git a/src/serialization/resources/users/client/requests/index.ts b/src/serialization/resources/users/client/requests/index.ts +index b8e6ca1..96fc6d1 100644 +--- a/src/serialization/resources/users/client/requests/index.ts ++++ b/src/serialization/resources/users/client/requests/index.ts +@@ -1,2 +1 @@ +-export { UpdateUserRequest } from "./UpdateUserRequest"; + export { ExchangeTokenRequest } from "./ExchangeTokenRequest"; +diff --git a/src/serialization/resources/users/types/ApiTokenResponse.ts b/src/serialization/resources/users/types/ApiTokenResponse.ts +index 2111eae..de1758e 100644 +--- a/src/serialization/resources/users/types/ApiTokenResponse.ts ++++ b/src/serialization/resources/users/types/ApiTokenResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ApiToken } from "./ApiToken"; + +@@ -13,3 +12,3 @@ export const ApiTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: ApiToken, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).ApiToken), + }); +@@ -18,3 +17,3 @@ export declare namespace ApiTokenResponse { + interface Raw { +- data: ApiToken.Raw; ++ data: serializers.ApiToken.Raw; + } +diff --git a/src/serialization/resources/users/types/ExchangeTokenResponse.ts b/src/serialization/resources/users/types/ExchangeTokenResponse.ts +index 49ca270..d5842a7 100644 +--- a/src/serialization/resources/users/types/ExchangeTokenResponse.ts ++++ b/src/serialization/resources/users/types/ExchangeTokenResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { ExchangeTokenData } from "./ExchangeTokenData"; + +@@ -13,3 +12,3 @@ export const ExchangeTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: ExchangeTokenData, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).ExchangeTokenData), + }); +@@ -18,3 +17,3 @@ export declare namespace ExchangeTokenResponse { + interface Raw { +- data: ExchangeTokenData.Raw; ++ data: serializers.ExchangeTokenData.Raw; + } +diff --git a/src/serialization/resources/users/types/ListApiTokensResponse.ts b/src/serialization/resources/users/types/ListApiTokensResponse.ts +index dff6334..87245dd 100644 +--- a/src/serialization/resources/users/types/ListApiTokensResponse.ts ++++ b/src/serialization/resources/users/types/ListApiTokensResponse.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Pagination } from "../../commons/types/Pagination"; +-import { ApiToken } from "./ApiToken"; + +@@ -14,4 +12,4 @@ export const ListApiTokensResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: Pagination.optional(), +- data: core.serialization.list(ApiToken), ++ pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).ApiToken)), + }); +@@ -20,4 +18,4 @@ export declare namespace ListApiTokensResponse { + interface Raw { +- pagination?: Pagination.Raw | null; +- data: ApiToken.Raw[]; ++ pagination?: serializers.Pagination.Raw | null; ++ data: serializers.ApiToken.Raw[]; + } +diff --git a/src/serialization/resources/users/types/ListUsersResponse.ts b/src/serialization/resources/users/types/ListUsersResponse.ts +index 957794f..75b7207 100644 +--- a/src/serialization/resources/users/types/ListUsersResponse.ts ++++ b/src/serialization/resources/users/types/ListUsersResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { User } from "./User"; + +@@ -13,3 +12,3 @@ export const ListUsersResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(User), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).User)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListUsersResponse { + interface Raw { +- data: User.Raw[]; ++ data: serializers.User.Raw[]; + } +diff --git a/src/serialization/resources/users/types/User.ts b/src/serialization/resources/users/types/User.ts +index 9446627..26fa357 100644 +--- a/src/serialization/resources/users/types/User.ts ++++ b/src/serialization/resources/users/types/User.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { UserId } from "../../commons/types/UserId"; +-import { UserConfig } from "./UserConfig"; + +@@ -12,3 +10,3 @@ export const User: core.serialization.ObjectSchema (await import("../../..")).UserId), + idp: core.serialization.string(), +@@ -18,10 +16,8 @@ export const User: core.serialization.ObjectSchema (await import("../../..")).UserConfig)); + + export declare namespace User { +- interface Raw extends UserConfig.Raw { +- id: UserId.Raw; ++ interface Raw extends serializers.UserConfig.Raw { ++ id: serializers.UserId.Raw; + idp: string; +@@ -31,4 +27,2 @@ export declare namespace User { + updatedAt: string; +- lastSeenAt?: string | null; +- dashboard?: number | null; + } +diff --git a/src/serialization/resources/users/types/UserConfig.ts b/src/serialization/resources/users/types/UserConfig.ts +index 79df346..551cf49 100644 +--- a/src/serialization/resources/users/types/UserConfig.ts ++++ b/src/serialization/resources/users/types/UserConfig.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { AccountId } from "../../commons/types/AccountId"; + +@@ -13,3 +12,3 @@ export const UserConfig: core.serialization.ObjectSchema (await import("../../..")).AccountId), + }); +@@ -20,3 +19,3 @@ export declare namespace UserConfig { + name: string; +- accountId: AccountId.Raw; ++ accountId: serializers.AccountId.Raw; + } +diff --git a/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts b/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts +deleted file mode 100644 +index 47488da..0000000 +--- a/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts ++++ /dev/null +@@ -1,25 +0,0 @@ +-/** +- * This file was auto-generated by Fern from our API Definition. +- */ +- +-import * as serializers from "../../.."; +-import * as Flatfile from "../../../../api"; +-import * as core from "../../../../core"; +-import { AssignActorRoleRequest } from "../../roles/types/AssignActorRoleRequest"; +- +-export const UserCreateAndInviteRequest: core.serialization.ObjectSchema< +- serializers.UserCreateAndInviteRequest.Raw, +- Flatfile.UserCreateAndInviteRequest +-> = core.serialization.object({ +- email: core.serialization.string(), +- name: core.serialization.string(), +- actorRoles: core.serialization.list(AssignActorRoleRequest), +-}); +- +-export declare namespace UserCreateAndInviteRequest { +- interface Raw { +- email: string; +- name: string; +- actorRoles: AssignActorRoleRequest.Raw[]; +- } +-} +diff --git a/src/serialization/resources/users/types/UserResponse.ts b/src/serialization/resources/users/types/UserResponse.ts +index 210a54a..a954c5b 100644 +--- a/src/serialization/resources/users/types/UserResponse.ts ++++ b/src/serialization/resources/users/types/UserResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { User } from "./User"; + +@@ -11,3 +10,3 @@ export const UserResponse: core.serialization.ObjectSchema (await import("../../..")).User), + }); +@@ -16,3 +15,3 @@ export declare namespace UserResponse { + interface Raw { +- data: User.Raw; ++ data: serializers.User.Raw; + } +diff --git a/src/serialization/resources/users/types/index.ts b/src/serialization/resources/users/types/index.ts +index bae3706..7bd7d69 100644 +--- a/src/serialization/resources/users/types/index.ts ++++ b/src/serialization/resources/users/types/index.ts +@@ -4,3 +4,2 @@ export * from "./User"; + export * from "./UserConfig"; +-export * from "./UserCreateAndInviteRequest"; + export * from "./ListApiTokensResponse"; +diff --git a/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts b/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts +index 1af762b..a657e9b 100644 +--- a/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts ++++ b/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts +@@ -7,4 +7,2 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; +-import { SheetId } from "../../../commons/types/SheetId"; +-import { VersionId } from "../../../commons/types/VersionId"; + +@@ -14,4 +12,4 @@ export const VersionsPostRequestBody: core.serialization.Schema< + > = core.serialization.object({ +- sheetId: SheetId.optional(), +- parentVersionId: VersionId.optional(), ++ sheetId: core.serialization.lazy(async () => (await import("../../../..")).SheetId).optional(), ++ parentVersionId: core.serialization.lazy(async () => (await import("../../../..")).VersionId).optional(), + }); +@@ -20,4 +18,4 @@ export declare namespace VersionsPostRequestBody { + interface Raw { +- sheetId?: SheetId.Raw | null; +- parentVersionId?: VersionId.Raw | null; ++ sheetId?: serializers.SheetId.Raw | null; ++ parentVersionId?: serializers.VersionId.Raw | null; + } +diff --git a/src/serialization/resources/versions/types/Version.ts b/src/serialization/resources/versions/types/Version.ts +index 2d33165..e604c40 100644 +--- a/src/serialization/resources/versions/types/Version.ts ++++ b/src/serialization/resources/versions/types/Version.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { VersionId } from "../../commons/types/VersionId"; + +@@ -11,3 +10,3 @@ export const Version: core.serialization.ObjectSchema (await import("../../..")).VersionId), + }); +@@ -16,3 +15,3 @@ export declare namespace Version { + interface Raw { +- versionId: VersionId.Raw; ++ versionId: serializers.VersionId.Raw; + } +diff --git a/src/serialization/resources/versions/types/VersionResponse.ts b/src/serialization/resources/versions/types/VersionResponse.ts +index ac24471..f5c4675 100644 +--- a/src/serialization/resources/versions/types/VersionResponse.ts ++++ b/src/serialization/resources/versions/types/VersionResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Version } from "./Version"; + +@@ -13,3 +12,3 @@ export const VersionResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: Version, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).Version), + }); +@@ -18,3 +17,3 @@ export declare namespace VersionResponse { + interface Raw { +- data: Version.Raw; ++ data: serializers.Version.Raw; + } +diff --git a/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts b/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts +index dff62c1..10acd18 100644 +--- a/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts ++++ b/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts +@@ -7,7 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { SheetConfig } from "../../sheets/types/SheetConfig"; +-import { Action } from "../../commons/types/Action"; +-import { WorkbookConfigSettings } from "./WorkbookConfigSettings"; + +@@ -19,8 +14,12 @@ export const CreateWorkbookConfig: core.serialization.ObjectSchema< + labels: core.serialization.list(core.serialization.string()).optional(), +- spaceId: SpaceId.optional(), +- environmentId: EnvironmentId.optional(), ++ spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), + namespace: core.serialization.string().optional(), +- sheets: core.serialization.list(SheetConfig).optional(), +- actions: core.serialization.list(Action).optional(), +- settings: WorkbookConfigSettings.optional(), ++ sheets: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig)) ++ .optional(), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) ++ .optional(), ++ settings: core.serialization.lazyObject(async () => (await import("../../..")).WorkbookConfigSettings).optional(), + metadata: core.serialization.any().optional(), +@@ -32,8 +31,8 @@ export declare namespace CreateWorkbookConfig { + labels?: string[] | null; +- spaceId?: SpaceId.Raw | null; +- environmentId?: EnvironmentId.Raw | null; ++ spaceId?: serializers.SpaceId.Raw | null; ++ environmentId?: serializers.EnvironmentId.Raw | null; + namespace?: string | null; +- sheets?: SheetConfig.Raw[] | null; +- actions?: Action.Raw[] | null; +- settings?: WorkbookConfigSettings.Raw | null; ++ sheets?: serializers.SheetConfig.Raw[] | null; ++ actions?: serializers.Action.Raw[] | null; ++ settings?: serializers.WorkbookConfigSettings.Raw | null; + metadata?: any | null; +diff --git a/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts b/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts +index 93e5dfd..dc1e71d 100644 +--- a/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts ++++ b/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Workbook } from "./Workbook"; + +@@ -13,3 +12,3 @@ export const ListWorkbooksResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(Workbook), ++ data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Workbook)), + }); +@@ -18,3 +17,3 @@ export declare namespace ListWorkbooksResponse { + interface Raw { +- data: Workbook.Raw[]; ++ data: serializers.Workbook.Raw[]; + } +diff --git a/src/serialization/resources/workbooks/types/Workbook.ts b/src/serialization/resources/workbooks/types/Workbook.ts +index 1d72635..27fa380 100644 +--- a/src/serialization/resources/workbooks/types/Workbook.ts ++++ b/src/serialization/resources/workbooks/types/Workbook.ts +@@ -7,8 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { WorkbookId } from "../../commons/types/WorkbookId"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { Sheet } from "../../sheets/types/Sheet"; +-import { Action } from "../../commons/types/Action"; +-import { WorkbookConfigSettings } from "./WorkbookConfigSettings"; + +@@ -16,10 +10,16 @@ export const Workbook: core.serialization.ObjectSchema (await import("../../..")).WorkbookId), + name: core.serialization.string().optional(), +- spaceId: SpaceId, +- environmentId: EnvironmentId, +- sheets: core.serialization.list(Sheet).optional(), ++ spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), ++ sheets: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Sheet)) ++ .optional(), + labels: core.serialization.list(core.serialization.string()).optional(), +- actions: core.serialization.list(Action).optional(), +- settings: WorkbookConfigSettings.optional(), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) ++ .optional(), ++ settings: core.serialization ++ .lazyObject(async () => (await import("../../..")).WorkbookConfigSettings) ++ .optional(), + metadata: core.serialization.any().optional(), +@@ -33,10 +33,10 @@ export declare namespace Workbook { + interface Raw { +- id: WorkbookId.Raw; ++ id: serializers.WorkbookId.Raw; + name?: string | null; +- spaceId: SpaceId.Raw; +- environmentId: EnvironmentId.Raw; +- sheets?: Sheet.Raw[] | null; ++ spaceId: serializers.SpaceId.Raw; ++ environmentId: serializers.EnvironmentId.Raw; ++ sheets?: serializers.Sheet.Raw[] | null; + labels?: string[] | null; +- actions?: Action.Raw[] | null; +- settings?: WorkbookConfigSettings.Raw | null; ++ actions?: serializers.Action.Raw[] | null; ++ settings?: serializers.WorkbookConfigSettings.Raw | null; + metadata?: any | null; +diff --git a/src/serialization/resources/workbooks/types/WorkbookResponse.ts b/src/serialization/resources/workbooks/types/WorkbookResponse.ts +index dbc8edb..73df47c 100644 +--- a/src/serialization/resources/workbooks/types/WorkbookResponse.ts ++++ b/src/serialization/resources/workbooks/types/WorkbookResponse.ts +@@ -7,3 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { Workbook } from "./Workbook"; + +@@ -13,3 +12,3 @@ export const WorkbookResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: Workbook, ++ data: core.serialization.lazyObject(async () => (await import("../../..")).Workbook), + }); +@@ -18,3 +17,3 @@ export declare namespace WorkbookResponse { + interface Raw { +- data: Workbook.Raw; ++ data: serializers.Workbook.Raw; + } +diff --git a/src/serialization/resources/workbooks/types/WorkbookUpdate.ts b/src/serialization/resources/workbooks/types/WorkbookUpdate.ts +index f1f9562..3daf5d1 100644 +--- a/src/serialization/resources/workbooks/types/WorkbookUpdate.ts ++++ b/src/serialization/resources/workbooks/types/WorkbookUpdate.ts +@@ -7,6 +7,2 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { SpaceId } from "../../commons/types/SpaceId"; +-import { EnvironmentId } from "../../commons/types/EnvironmentId"; +-import { SheetConfigOrUpdate } from "../../sheets/types/SheetConfigOrUpdate"; +-import { Action } from "../../commons/types/Action"; + +@@ -16,7 +12,11 @@ export const WorkbookUpdate: core.serialization.ObjectSchema (await import("../../..")).SpaceId).optional(), ++ environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), + namespace: core.serialization.string().optional(), +- sheets: core.serialization.list(SheetConfigOrUpdate).optional(), +- actions: core.serialization.list(Action).optional(), ++ sheets: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfigOrUpdate)) ++ .optional(), ++ actions: core.serialization ++ .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) ++ .optional(), + metadata: core.serialization.any().optional(), +@@ -28,7 +28,7 @@ export declare namespace WorkbookUpdate { + labels?: string[] | null; +- spaceId?: SpaceId.Raw | null; +- environmentId?: EnvironmentId.Raw | null; ++ spaceId?: serializers.SpaceId.Raw | null; ++ environmentId?: serializers.EnvironmentId.Raw | null; + namespace?: string | null; +- sheets?: SheetConfigOrUpdate.Raw[] | null; +- actions?: Action.Raw[] | null; ++ sheets?: serializers.SheetConfigOrUpdate.Raw[] | null; ++ actions?: serializers.Action.Raw[] | null; + metadata?: any | null; +diff --git a/tests/client.test.ts b/tests/client.test.ts +deleted file mode 100644 +index 62b373b..0000000 +--- a/tests/client.test.ts ++++ /dev/null +@@ -1,11 +0,0 @@ +-/** +-* This is a test file for the SDK. +-* +-* Add any tests here and make sure to mark this file +-* in `.fernignore`. +-*/ +-describe("test", () => { +- it("default", () => { +- expect(true).toBe(true); +- }); +-}); +\ No newline at end of file +diff --git a/tsconfig.json b/tsconfig.json +index 5a306b2..e65fa53 100644 +--- a/tsconfig.json ++++ b/tsconfig.json +@@ -10,2 +10,3 @@ + "declaration": true, ++ "noUnusedParameters": true, + "outDir": "dist", diff --git a/release-notes/1.7.2.diff.txt.result.md b/release-notes/1.7.2.diff.txt.result.md new file mode 100644 index 00000000..2ebf7def --- /dev/null +++ b/release-notes/1.7.2.diff.txt.result.md @@ -0,0 +1,117 @@ +Here are the key changes in the release notes for this diff: + +#### Accounts + +- Removed `accounts` module and related types + +#### Assistant + +- Removed `assistant` module and related types + +#### Commons + +- Removed `PromptId` type + +#### DataRetentionPolicies + +- No changes + +#### Documents + +- No changes + +#### Entitlements + +- No changes + +#### Environments + +- No changes + +#### Events + +- Removed `EventTopic` options related to `cron` events +- Removed `appId` from `Context` type + +#### Files + +- Updated the description for `pageSize` and `pageNumber` parameters in `ListFilesRequest` type + +#### Foreigndb + +- Removed `foreigndb` module and related types + +#### Guests + +- No changes + +#### Jobs + +- Removed `snapshotLabel` property from `MutateJobConfig` type +- Updated description for `ids` property in `MutateJobConfig` and `ExportOptions` types +- Removed `parts` example for `JobSplitDetails` type +- Updated `config` example value in `Job`, `JobPlan`, `JobPlanResponse`, and `JobResponse` types +- Removed `q` parameter from `FindAndReplaceRecordRequest` type + +#### Mapping + +- No changes + +#### Property + +- Updated description for `value` property in `EnumPropertyOption` type + +#### Records + +- Updated example values for record fields in various types +- Removed `q` parameter from `GetRecordsRequest` type +- Updated description for `pageSize` parameter in `GetRecordsRequest` type + +#### Roles + +- Removed examples from `AssignActorRoleRequest` and `ResourceIdUnion` types + +#### Secrets + +- No changes + +#### Sheets + +- Added `countRecords` property to `Sheet` and related types +- Moved `recordCounts` property from `Sheet` to `SheetResponse` +- Updated description for `slug` property in `SheetConfigUpdate` type +- Updated `ListSheetsResponse` example + +#### Snapshots + +- No changes + +#### Spaces + +- Removed `appId` property from `InternalSpaceConfigBase` and related types +- Removed `UpgradeSpaceConfig` type and `upgrade` method from `Spaces` client +- Updated example in `SpaceConfig` type +- Updated `ids` parameter name in `DeleteSpacesRequest` type + +#### Users + +- Removed `UserCreateAndInviteRequest` and `UpdateUserRequest` types +- Removed `lastSeenAt` and `dashboard` properties from `User` type +- Removed `createAndInvite` and `update` methods from `Users` client + +#### Versions + +- No changes + +#### Workbooks + +- Added `includeCounts` parameter example to `ListWorkbooksRequest` +- Added `countRecords` property examples to `ListWorkbooksResponse`, `Workbook`, and `WorkbookResponse` types + +#### Core + +- Removed `runtime` module and related types +- Updated `Fetcher` to use global `fetch` or `node-fetch` based on environment +- Optimized schema parsing by using lazy loading for circular dependencies + +Overall, this release removes deprecated functionality, updates examples and descriptions, and optimizes the codebase. \ No newline at end of file diff --git a/release-notes/1.7.3.diff.txt b/release-notes/1.7.3.diff.txt new file mode 100644 index 00000000..78c40079 --- /dev/null +++ b/release-notes/1.7.3.diff.txt @@ -0,0 +1,562 @@ +diff --git a/jest.config.js b/jest.config.js +new file mode 100644 +index 0000000..3a09892 +--- /dev/null ++++ b/jest.config.js +@@ -0,0 +1,5 @@ ++/** @type {import('ts-jest').JestConfigWithTsJest} */ ++module.exports = { ++ preset: "ts-jest", ++ testEnvironment: "node", ++}; +\ No newline at end of file +diff --git a/package.json b/package.json +index e4223d7..aeaf2a8 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.2", ++ "version": "1.7.3", + "private": false, +@@ -10,3 +10,4 @@ + "build": "tsc", +- "prepack": "cp -rv dist/. ." ++ "prepack": "cp -rv dist/. .", ++ "test": "jest" + }, +@@ -26,2 +27,5 @@ + "@types/node-fetch": "2.6.9", ++ "jest": "^29.7.0", ++ "@types/jest": "^29.5.5", ++ "ts-jest": "^29.1.1", + "@types/node": "17.0.33", +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index f257d07..1ee2c2e 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,5 @@ export class Agents { + }, +@@ -125,3 +127,5 @@ export class Agents { + }, +@@ -206,3 +210,5 @@ export class Agents { + }, +@@ -289,3 +295,5 @@ export class Agents { + }, +@@ -382,3 +390,5 @@ export class Agents { + }, +@@ -478,3 +488,5 @@ export class Agents { + }, +@@ -577,3 +589,5 @@ export class Agents { + }, +@@ -667,3 +681,5 @@ export class Agents { + }, +@@ -776,3 +792,5 @@ export class Agents { + }, +@@ -885,3 +903,5 @@ export class Agents { + }, +@@ -976,3 +996,5 @@ export class Agents { + }, +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index a1cfe70..4a4ef4d 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,5 @@ export class Apps { + }, +@@ -98,3 +100,5 @@ export class Apps { + }, +@@ -167,3 +171,5 @@ export class Apps { + }, +@@ -237,3 +243,5 @@ export class Apps { + }, +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index d893556..475a173 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,5 @@ export class Auth { + }, +@@ -143,3 +145,5 @@ export class Auth { + }, +@@ -234,3 +238,5 @@ export class Auth { + }, +@@ -325,3 +331,5 @@ export class Auth { + }, +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 76de1b3..60d4b6d 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,5 @@ export class Cells { + }, +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 11191ab..e6332a4 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,5 @@ export class Commits { + }, +@@ -131,3 +133,5 @@ export class Commits { + }, +@@ -212,3 +216,5 @@ export class Commits { + }, +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index b4ec5c3..d473702 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,5 @@ export class DataRetentionPolicies { + }, +@@ -147,3 +149,5 @@ export class DataRetentionPolicies { + }, +@@ -232,3 +236,5 @@ export class DataRetentionPolicies { + }, +@@ -321,3 +327,5 @@ export class DataRetentionPolicies { + }, +@@ -403,3 +411,5 @@ export class DataRetentionPolicies { + }, +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index ee19ffc..836a9dd 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,5 @@ export class Documents { + }, +@@ -145,3 +147,5 @@ export class Documents { + }, +@@ -233,3 +237,5 @@ export class Documents { + }, +@@ -324,3 +330,5 @@ export class Documents { + }, +@@ -409,3 +417,5 @@ export class Documents { + }, +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 009ccce..fbbf9da 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,5 @@ export class Entitlements { + }, +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 3293119..07bf9ab 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,5 @@ export class Environments { + }, +@@ -126,3 +128,5 @@ export class Environments { + }, +@@ -193,3 +197,5 @@ export class Environments { + }, +@@ -278,3 +284,5 @@ export class Environments { + }, +@@ -369,3 +377,5 @@ export class Environments { + }, +@@ -428,3 +438,5 @@ export class Environments { + }, +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 527cc76..fc72616 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,5 @@ export class Events { + }, +@@ -156,3 +158,5 @@ export class Events { + }, +@@ -233,3 +237,5 @@ export class Events { + }, +@@ -283,3 +289,5 @@ export class Events { + }, +@@ -354,3 +362,5 @@ export class Events { + }, +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 56633e1..6331f19 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,5 @@ export class Files { + }, +@@ -135,3 +137,5 @@ export class Files { + }, +@@ -206,3 +210,5 @@ export class Files { + }, +@@ -283,3 +289,5 @@ export class Files { + }, +@@ -370,3 +378,5 @@ export class Files { + }, +@@ -448,3 +458,5 @@ export class Files { + }, +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 08aedde..837eb87 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,5 @@ export class Guests { + }, +@@ -128,3 +130,5 @@ export class Guests { + }, +@@ -188,3 +192,5 @@ export class Guests { + }, +@@ -244,3 +250,5 @@ export class Guests { + }, +@@ -307,3 +315,5 @@ export class Guests { + }, +@@ -374,3 +384,5 @@ export class Guests { + }, +@@ -434,3 +446,5 @@ export class Guests { + }, +@@ -527,3 +541,5 @@ export class Guests { + }, +@@ -623,3 +639,5 @@ export class Guests { + }, +@@ -717,3 +735,5 @@ export class Guests { + }, +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index e06acc2..f611ca3 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,5 @@ export class Jobs { + }, +@@ -130,3 +132,5 @@ export class Jobs { + }, +@@ -181,3 +185,5 @@ export class Jobs { + }, +@@ -235,3 +241,5 @@ export class Jobs { + }, +@@ -286,3 +294,5 @@ export class Jobs { + }, +@@ -342,3 +352,5 @@ export class Jobs { + }, +@@ -401,3 +413,5 @@ export class Jobs { + }, +@@ -498,3 +512,5 @@ export class Jobs { + }, +@@ -556,3 +572,5 @@ export class Jobs { + }, +@@ -623,3 +641,5 @@ export class Jobs { + }, +@@ -686,3 +706,5 @@ export class Jobs { + }, +@@ -758,3 +780,5 @@ export class Jobs { + }, +@@ -834,3 +858,5 @@ export class Jobs { + }, +@@ -900,3 +926,5 @@ export class Jobs { + }, +@@ -957,3 +985,5 @@ export class Jobs { + }, +@@ -1013,3 +1043,5 @@ export class Jobs { + }, +@@ -1076,3 +1108,5 @@ export class Jobs { + }, +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 3227841..a926592 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,5 @@ export class Mapping { + }, +@@ -126,3 +128,5 @@ export class Mapping { + }, +@@ -259,3 +263,5 @@ export class Mapping { + }, +@@ -331,3 +337,5 @@ export class Mapping { + }, +@@ -413,3 +421,5 @@ export class Mapping { + }, +@@ -495,3 +505,5 @@ export class Mapping { + }, +@@ -577,3 +589,5 @@ export class Mapping { + }, +@@ -662,3 +676,5 @@ export class Mapping { + }, +@@ -749,3 +765,5 @@ export class Mapping { + }, +@@ -841,3 +859,5 @@ export class Mapping { + }, +@@ -924,3 +944,5 @@ export class Mapping { + }, +@@ -1012,3 +1034,5 @@ export class Mapping { + }, +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 6145d27..52d3a2b 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,5 @@ export class Records { + }, +@@ -262,3 +264,5 @@ export class Records { + }, +@@ -364,3 +368,5 @@ export class Records { + }, +@@ -460,3 +466,5 @@ export class Records { + }, +@@ -572,3 +580,5 @@ export class Records { + }, +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 502f87e..51fc04d 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,5 @@ export class Roles { + }, +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 42920a5..f563cdf 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,5 @@ export class Secrets { + }, +@@ -152,3 +154,5 @@ export class Secrets { + }, +@@ -237,3 +241,5 @@ export class Secrets { + }, +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 1212443..bd660d2 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,5 @@ export class Sheets { + }, +@@ -114,3 +116,5 @@ export class Sheets { + }, +@@ -172,3 +176,5 @@ export class Sheets { + }, +@@ -256,3 +262,5 @@ export class Sheets { + }, +@@ -398,3 +406,5 @@ export class Sheets { + }, +@@ -509,3 +519,5 @@ export class Sheets { + }, +@@ -569,3 +581,5 @@ export class Sheets { + }, +@@ -659,3 +673,5 @@ export class Sheets { + }, +@@ -721,3 +737,5 @@ export class Sheets { + }, +@@ -805,3 +823,5 @@ export class Sheets { + }, +@@ -946,3 +966,5 @@ export class Sheets { + }, +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index b87be19..c461842 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,5 @@ export class Snapshots { + }, +@@ -143,3 +145,5 @@ export class Snapshots { + }, +@@ -234,3 +238,5 @@ export class Snapshots { + }, +@@ -319,3 +325,5 @@ export class Snapshots { + }, +@@ -408,3 +416,5 @@ export class Snapshots { + }, +@@ -517,3 +527,5 @@ export class Snapshots { + }, +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 51922c8..a4f823a 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,5 @@ export class Spaces { + }, +@@ -179,3 +181,5 @@ export class Spaces { + }, +@@ -264,3 +268,5 @@ export class Spaces { + }, +@@ -345,3 +351,5 @@ export class Spaces { + }, +@@ -439,3 +447,5 @@ export class Spaces { + }, +@@ -527,3 +537,5 @@ export class Spaces { + }, +@@ -612,3 +624,5 @@ export class Spaces { + }, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index beb23a2..e4faba2 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,5 @@ export class Users { + }, +@@ -113,3 +115,5 @@ export class Users { + }, +@@ -172,3 +176,5 @@ export class Users { + }, +@@ -265,3 +271,5 @@ export class Users { + }, +@@ -361,3 +369,5 @@ export class Users { + }, +@@ -462,3 +472,5 @@ export class Users { + }, +@@ -523,3 +535,5 @@ export class Users { + }, +@@ -580,3 +594,5 @@ export class Users { + }, +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 7818f3a..8e08df0 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,5 @@ export class Versions { + }, +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 71734fd..084dbf6 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -62,3 +62,5 @@ export class Workbooks { + }, +@@ -167,3 +169,5 @@ export class Workbooks { + }, +@@ -242,3 +246,5 @@ export class Workbooks { + }, +@@ -326,3 +332,5 @@ export class Workbooks { + }, +@@ -421,3 +429,5 @@ export class Workbooks { + }, +@@ -511,3 +521,5 @@ export class Workbooks { + }, +@@ -570,3 +582,5 @@ export class Workbooks { + }, +diff --git a/src/core/index.ts b/src/core/index.ts +index e2eb66e..2d20c46 100644 +--- a/src/core/index.ts ++++ b/src/core/index.ts +@@ -2,2 +2,3 @@ export * from "./fetcher"; + export * from "./auth"; ++export * from "./runtime"; + export * as serialization from "./schemas"; +diff --git a/src/core/runtime/index.ts b/src/core/runtime/index.ts +new file mode 100644 +index 0000000..5c76dbb +--- /dev/null ++++ b/src/core/runtime/index.ts +@@ -0,0 +1 @@ ++export { RUNTIME } from "./runtime"; +diff --git a/src/core/runtime/runtime.ts b/src/core/runtime/runtime.ts +new file mode 100644 +index 0000000..f0692ab +--- /dev/null ++++ b/src/core/runtime/runtime.ts +@@ -0,0 +1,112 @@ ++interface DenoGlobal { ++ version: { ++ deno: string; ++ }; ++} ++ ++interface BunGlobal { ++ version: string; ++} ++ ++declare const Deno: DenoGlobal; ++declare const Bun: BunGlobal; ++ ++/** ++ * A constant that indicates whether the environment the code is running is a Web Browser. ++ */ ++const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined"; ++ ++/** ++ * A constant that indicates whether the environment the code is running is a Web Worker. ++ */ ++const isWebWorker = ++ typeof self === "object" && ++ // @ts-ignore ++ typeof self?.importScripts === "function" && ++ (self.constructor?.name === "DedicatedWorkerGlobalScope" || ++ self.constructor?.name === "ServiceWorkerGlobalScope" || ++ self.constructor?.name === "SharedWorkerGlobalScope"); ++ ++/** ++ * A constant that indicates whether the environment the code is running is Deno. ++ */ ++const isDeno = ++ typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined"; ++ ++/** ++ * A constant that indicates whether the environment the code is running is Bun.sh. ++ */ ++const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined"; ++ ++/** ++ * A constant that indicates whether the environment the code is running is Node.JS. ++ */ ++const isNode = ++ typeof process !== "undefined" && ++ Boolean(process.version) && ++ Boolean(process.versions?.node) && ++ // Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions ++ !isDeno && ++ !isBun; ++ ++/** ++ * A constant that indicates whether the environment the code is running is in React-Native. ++ * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js ++ */ ++const isReactNative = typeof navigator !== "undefined" && navigator?.product === "ReactNative"; ++ ++/** ++ * A constant that indicates which environment and version the SDK is running in. ++ */ ++export const RUNTIME: Runtime = evaluateRuntime(); ++ ++export interface Runtime { ++ type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown"; ++ version?: string; ++} ++ ++function evaluateRuntime(): Runtime { ++ if (isBrowser) { ++ return { ++ type: "browser", ++ version: window.navigator.userAgent, ++ }; ++ } ++ ++ if (isWebWorker) { ++ return { ++ type: "web-worker", ++ }; ++ } ++ ++ if (isDeno) { ++ return { ++ type: "deno", ++ version: Deno.version.deno, ++ }; ++ } ++ ++ if (isBun) { ++ return { ++ type: "bun", ++ version: Bun.version, ++ }; ++ } ++ ++ if (isNode) { ++ return { ++ type: "node", ++ version: process.versions.node, ++ }; ++ } ++ ++ if (isReactNative) { ++ return { ++ type: "react-native", ++ }; ++ } ++ ++ return { ++ type: "unknown", ++ }; ++} +diff --git a/tests/client.test.ts b/tests/client.test.ts +new file mode 100644 +index 0000000..62b373b +--- /dev/null ++++ b/tests/client.test.ts +@@ -0,0 +1,11 @@ ++/** ++* This is a test file for the SDK. ++* ++* Add any tests here and make sure to mark this file ++* in `.fernignore`. ++*/ ++describe("test", () => { ++ it("default", () => { ++ expect(true).toBe(true); ++ }); ++}); +\ No newline at end of file +diff --git a/tsconfig.json b/tsconfig.json +index e65fa53..5a306b2 100644 +--- a/tsconfig.json ++++ b/tsconfig.json +@@ -10,3 +10,2 @@ + "declaration": true, +- "noUnusedParameters": true, + "outDir": "dist", diff --git a/release-notes/1.7.3.diff.txt.result.md b/release-notes/1.7.3.diff.txt.result.md new file mode 100644 index 00000000..fab770ca --- /dev/null +++ b/release-notes/1.7.3.diff.txt.result.md @@ -0,0 +1,26 @@ +#### General Changes + +- Added Jest for testing and configured it in `jest.config.js` +- Added a basic test file `tests/client.test.ts` +- Updated `tsconfig.json` to remove `"noUnusedParameters": true` + +#### Package Changes + +- Incremented version from `1.7.2` to `1.7.3` +- Added `"test": "jest"` script to `package.json` +- Installed `jest`, `@types/jest`, and `ts-jest` as development dependencies + +#### New Features + +- Added `src/core/runtime` module to detect the current runtime environment (browser, web worker, Deno, Bun, Node.js, React Native) +- Exported `RUNTIME` constant from `src/core` with information about the detected runtime + +#### Resources + +##### `Agents` + +- Added `try/catch` blocks for error handling in various methods + +##### `Apps`, `Auth`, `Cells`, `Commits`, `DataRetentionPolicies`, `Documents`, `Entitlements`, `Environments`, `Events`, `Files`, `Guests`, `Jobs`, `Mapping`, `Records`, `Roles`, `Secrets`, `Sheets`, `Snapshots`, `Spaces`, `Users`, `Versions`, `Workbooks` + +- Added `try/catch` blocks for error handling in various methods, similar to changes in `Agents` \ No newline at end of file diff --git a/release-notes/1.7.4.diff.txt b/release-notes/1.7.4.diff.txt new file mode 100644 index 00000000..96367394 --- /dev/null +++ b/release-notes/1.7.4.diff.txt @@ -0,0 +1,265 @@ +diff --git a/.fernignore b/.fernignore +index 3cb717b..7e7bea6 100644 +--- a/.fernignore ++++ b/.fernignore +@@ -7,3 +7,2 @@ src/wrapper + src/index.ts +-src/core/fetcher/Fetcher.ts + +diff --git a/package.json b/package.json +index aeaf2a8..499ab07 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.3", ++ "version": "1.7.4", + "private": false, +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 1ee2c2e..c66627d 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 4a4ef4d..221e88f 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 475a173..25e5b4c 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 60d4b6d..9449b71 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index e6332a4..315b495 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index d473702..38723d5 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 836a9dd..d9502f4 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index fbbf9da..d289fdd 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 07bf9ab..07ed3ae 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index fc72616..6bae1da 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 6331f19..7f84a42 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 837eb87..cfd8415 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index f611ca3..4b6dbe9 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1108,3 +1108,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index a926592..0fe3f38 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -128,3 +128,3 @@ export class Mapping { +@@ -263,3 +263,3 @@ export class Mapping { +@@ -337,3 +337,3 @@ export class Mapping { +@@ -421,3 +421,3 @@ export class Mapping { +@@ -505,3 +505,3 @@ export class Mapping { +@@ -589,3 +589,3 @@ export class Mapping { +@@ -676,3 +676,3 @@ export class Mapping { +@@ -765,3 +765,3 @@ export class Mapping { +@@ -859,3 +859,3 @@ export class Mapping { +@@ -944,3 +944,3 @@ export class Mapping { +@@ -1034,3 +1034,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 52d3a2b..5b211a2 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -264,3 +264,3 @@ export class Records { +@@ -368,3 +368,3 @@ export class Records { +@@ -466,3 +466,3 @@ export class Records { +@@ -580,3 +580,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 51fc04d..f776fa9 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index f563cdf..3d99fe9 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index bd660d2..8119f2d 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -966,3 +966,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index c461842..8d96a7c 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index a4f823a..449b1dd 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index e4faba2..9ee68e2 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -115,3 +115,3 @@ export class Users { +@@ -176,3 +176,3 @@ export class Users { +@@ -271,3 +271,3 @@ export class Users { +@@ -369,3 +369,3 @@ export class Users { +@@ -472,3 +472,3 @@ export class Users { +@@ -535,3 +535,3 @@ export class Users { +@@ -594,3 +594,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 8e08df0..87ca526 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 084dbf6..6a4e51c 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -62,3 +62,3 @@ export class Workbooks { +@@ -169,3 +169,3 @@ export class Workbooks { +@@ -246,3 +246,3 @@ export class Workbooks { +@@ -332,3 +332,3 @@ export class Workbooks { +@@ -429,3 +429,3 @@ export class Workbooks { +@@ -521,3 +521,3 @@ export class Workbooks { +@@ -582,3 +582,3 @@ export class Workbooks { +diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts +index aa709ae..eddba46 100644 +--- a/src/core/fetcher/Fetcher.ts ++++ b/src/core/fetcher/Fetcher.ts +@@ -2,2 +2,3 @@ import { default as FormData } from "form-data"; + import qs from "qs"; ++import { RUNTIME } from "../runtime"; + import { APIResponse } from "./APIResponse"; +@@ -77,3 +78,7 @@ async function fetcherImpl(args: Fetcher.Args): Promise { console.log(args) } }" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", ++ * slug: "default" + * } +diff --git a/src/api/resources/agents/types/AgentConfig.ts b/src/api/resources/agents/types/AgentConfig.ts +index 1012f6e..7599efd 100644 +--- a/src/api/resources/agents/types/AgentConfig.ts ++++ b/src/api/resources/agents/types/AgentConfig.ts +@@ -23,2 +23,4 @@ export interface AgentConfig { + source?: string; ++ /** The slug of the agent */ ++ slug?: string; + } +diff --git a/src/api/resources/agents/types/AgentResponse.ts b/src/api/resources/agents/types/AgentResponse.ts +index 3e7ee60..ccb15b5 100644 +--- a/src/api/resources/agents/types/AgentResponse.ts ++++ b/src/api/resources/agents/types/AgentResponse.ts +@@ -13,3 +13,4 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", ++ * slug: "default" + * } +diff --git a/src/api/resources/agents/types/ListAgentsResponse.ts b/src/api/resources/agents/types/ListAgentsResponse.ts +index f96e094..2cf0c7d 100644 +--- a/src/api/resources/agents/types/ListAgentsResponse.ts ++++ b/src/api/resources/agents/types/ListAgentsResponse.ts +@@ -13,3 +13,4 @@ import * as Flatfile from "../../.."; + * compiler: Flatfile.Compiler.Js, +- * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }" ++ * source: "module.exports = { routeEvent: async (...args) => { console.log(args) } }", ++ * slug: "default" + * }] +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 221e88f..91a3ae1 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 25e5b4c..b631a73 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 9449b71..e4bde90 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 315b495..303d99d 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 38723d5..0822184 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index d9502f4..1aa4e1d 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index d289fdd..af35be3 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 07ed3ae..05d369a 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 6bae1da..6613e36 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 7f84a42..827068c 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index cfd8415..62b1781 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 4b6dbe9..0e703cb 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1108,3 +1108,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 0fe3f38..7061efa 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -128,3 +128,3 @@ export class Mapping { +@@ -263,3 +263,3 @@ export class Mapping { +@@ -337,3 +337,3 @@ export class Mapping { +@@ -421,3 +421,3 @@ export class Mapping { +@@ -505,3 +505,3 @@ export class Mapping { +@@ -589,3 +589,3 @@ export class Mapping { +@@ -676,3 +676,3 @@ export class Mapping { +@@ -765,3 +765,3 @@ export class Mapping { +@@ -859,3 +859,3 @@ export class Mapping { +@@ -944,3 +944,3 @@ export class Mapping { +@@ -1034,3 +1034,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 5b211a2..fcc7157 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -264,3 +264,3 @@ export class Records { +@@ -368,3 +368,3 @@ export class Records { +@@ -466,3 +466,3 @@ export class Records { +@@ -543,3 +543,3 @@ export class Records { + ): Promise { +- const { filter, filterField, searchValue, searchField, ids, ..._body } = request; ++ const { filter, filterField, searchValue, searchField, ids, q, ..._body } = request; + const _queryParams: Record = {}; +@@ -569,2 +569,6 @@ export class Records { + ++ if (q != null) { ++ _queryParams["q"] = q; ++ } ++ + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -580,3 +584,3 @@ export class Records { +diff --git a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index c8bc80f..ff492be 100644 +--- a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -25,2 +25,6 @@ export interface FindAndReplaceRecordRequest { + ids?: Flatfile.RecordId | Flatfile.RecordId[]; ++ /** ++ * An FFQL query used to filter the result set ++ */ ++ q?: string; + /** A value to find for a given field in a sheet. For exact matches, wrap the value in double quotes ("Bob") */ +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index f776fa9..3c89934 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 3d99fe9..d314e72 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 8119f2d..e323e20 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -966,3 +966,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 8d96a7c..1ae32f0 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 449b1dd..c80283f 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 9ee68e2..aaedc6f 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -97,2 +97,62 @@ export class Users { + ++ /** ++ * Updates a user ++ */ ++ public async update( ++ userId: Flatfile.UserId, ++ request: Flatfile.UpdateUserRequest = {}, ++ requestOptions?: Users.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `users/${await serializers.UserId.jsonOrThrow(userId)}` ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UpdateUserRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.UserResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -115,3 +175,3 @@ export class Users { +@@ -176,3 +236,3 @@ export class Users { +@@ -271,3 +331,3 @@ export class Users { +@@ -369,3 +429,3 @@ export class Users { +@@ -472,3 +532,3 @@ export class Users { +@@ -535,3 +595,3 @@ export class Users { +@@ -594,3 +654,3 @@ export class Users { +diff --git a/src/api/resources/users/client/requests/UpdateUserRequest.ts b/src/api/resources/users/client/requests/UpdateUserRequest.ts +new file mode 100644 +index 0000000..d815834 +--- /dev/null ++++ b/src/api/resources/users/client/requests/UpdateUserRequest.ts +@@ -0,0 +1,7 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++export interface UpdateUserRequest { ++ name?: string; ++} +diff --git a/src/api/resources/users/client/requests/index.ts b/src/api/resources/users/client/requests/index.ts +index b49c90b..bf566bf 100644 +--- a/src/api/resources/users/client/requests/index.ts ++++ b/src/api/resources/users/client/requests/index.ts +@@ -1,2 +1,3 @@ + export { ListUsersRequest } from "./ListUsersRequest"; ++export { UpdateUserRequest } from "./UpdateUserRequest"; + export { ListApiTokensRequest } from "./ListApiTokensRequest"; +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 87ca526..cd8d86d 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 6a4e51c..65da38c 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -62,3 +62,3 @@ export class Workbooks { +@@ -169,3 +169,3 @@ export class Workbooks { +@@ -246,3 +246,3 @@ export class Workbooks { +@@ -332,3 +332,3 @@ export class Workbooks { +@@ -429,3 +429,3 @@ export class Workbooks { +@@ -521,3 +521,3 @@ export class Workbooks { +@@ -582,3 +582,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/agents/types/AgentConfig.ts b/src/serialization/resources/agents/types/AgentConfig.ts +index 9ebc197..38dce95 100644 +--- a/src/serialization/resources/agents/types/AgentConfig.ts ++++ b/src/serialization/resources/agents/types/AgentConfig.ts +@@ -15,2 +15,3 @@ export const AgentConfig: core.serialization.ObjectSchema ++ Omit + > = core.serialization.object({ +diff --git a/src/serialization/resources/users/client/requests/UpdateUserRequest.ts b/src/serialization/resources/users/client/requests/UpdateUserRequest.ts +new file mode 100644 +index 0000000..d9671ef +--- /dev/null ++++ b/src/serialization/resources/users/client/requests/UpdateUserRequest.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../../.."; ++import * as Flatfile from "../../../../../api"; ++import * as core from "../../../../../core"; ++ ++export const UpdateUserRequest: core.serialization.Schema< ++ serializers.UpdateUserRequest.Raw, ++ Flatfile.UpdateUserRequest ++> = core.serialization.object({ ++ name: core.serialization.string().optional(), ++}); ++ ++export declare namespace UpdateUserRequest { ++ interface Raw { ++ name?: string | null; ++ } ++} +diff --git a/src/serialization/resources/users/client/requests/index.ts b/src/serialization/resources/users/client/requests/index.ts +index 96fc6d1..b8e6ca1 100644 +--- a/src/serialization/resources/users/client/requests/index.ts ++++ b/src/serialization/resources/users/client/requests/index.ts +@@ -1 +1,2 @@ ++export { UpdateUserRequest } from "./UpdateUserRequest"; + export { ExchangeTokenRequest } from "./ExchangeTokenRequest"; diff --git a/release-notes/1.7.5.diff.txt.result.md b/release-notes/1.7.5.diff.txt.result.md new file mode 100644 index 00000000..38e7a3a9 --- /dev/null +++ b/release-notes/1.7.5.diff.txt.result.md @@ -0,0 +1,18 @@ +#### General + +- The package version in `package.json` has been updated from 1.7.4 to 1.7.5. + +#### Agents + +- The `AgentConfig` and `AgentResponse` types have a new optional `slug` property of type string to represent the slug of the agent. +- The `ListAgentsResponse` type has been updated to include the `slug` property in the example agent object. + +#### Records + +- The `FindAndReplaceRecordRequest` type has a new optional `q` property of type string to represent an FFQL query used to filter the result set. +- In the `Records.findAndReplaceRecords` method, the request object is destructured to include the `q` property, and if `q` is provided, it is added to the query parameters. + +#### Users + +- A new `UpdateUserRequest` type has been added, containing an optional `name` property of type string. +- A new `Users.update` method has been added to update a user's information, taking a `userId`, an optional `UpdateUserRequest`, and optional `RequestOptions`. \ No newline at end of file diff --git a/release-notes/1.7.6.diff.txt b/release-notes/1.7.6.diff.txt new file mode 100644 index 00000000..500250da --- /dev/null +++ b/release-notes/1.7.6.diff.txt @@ -0,0 +1,736 @@ +diff --git a/package.json b/package.json +index 6b7d245..410ffdb 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.5", ++ "version": "1.7.6", + "private": false, +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 0fcc6d5..226fb6e 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -32,3 +32,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -45,3 +45,3 @@ export class Agents { +@@ -114,3 +114,3 @@ export class Agents { + const { environmentId, body: _body } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -127,3 +127,3 @@ export class Agents { +@@ -197,3 +197,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -576,3 +576,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -589,3 +589,3 @@ export class Agents { +@@ -668,3 +668,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -681,3 +681,3 @@ export class Agents { +@@ -763,3 +763,3 @@ export class Agents { + const { environmentId, spaceId, success, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -792,3 +792,3 @@ export class Agents { +@@ -874,3 +874,3 @@ export class Agents { + const { environmentId, spaceId, success, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -903,3 +903,3 @@ export class Agents { +@@ -983,3 +983,3 @@ export class Agents { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 91a3ae1..f28f450 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/apps/types/App.ts b/src/api/resources/apps/types/App.ts +index 2cc545b..ab52d53 100644 +--- a/src/api/resources/apps/types/App.ts ++++ b/src/api/resources/apps/types/App.ts +@@ -22,5 +22,3 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * deletedAt: undefined, +- * activatedAt: undefined ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * } +diff --git a/src/api/resources/apps/types/AppResponse.ts b/src/api/resources/apps/types/AppResponse.ts +index 9e7f8a6..6ec2900 100644 +--- a/src/api/resources/apps/types/AppResponse.ts ++++ b/src/api/resources/apps/types/AppResponse.ts +@@ -21,5 +21,3 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * deletedAt: undefined, +- * activatedAt: undefined ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * } +diff --git a/src/api/resources/apps/types/AppsResponse.ts b/src/api/resources/apps/types/AppsResponse.ts +index 074c27e..1c6dad9 100644 +--- a/src/api/resources/apps/types/AppsResponse.ts ++++ b/src/api/resources/apps/types/AppsResponse.ts +@@ -21,5 +21,3 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z"), +- * deletedAt: undefined, +- * activatedAt: undefined ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") + * }] +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index b631a73..058f8b8 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -132,3 +132,3 @@ export class Auth { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -145,3 +145,3 @@ export class Auth { +@@ -224,3 +224,3 @@ export class Auth { + const { environmentId, type: type_ } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -238,3 +238,3 @@ export class Auth { +@@ -317,3 +317,3 @@ export class Auth { + const { environmentId, key } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index e4bde90..bb62b5d 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -55,3 +55,3 @@ export class Cells { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (fieldKey != null) { +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 303d99d..0340d6b 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/commons/types/Action.ts b/src/api/resources/commons/types/Action.ts +index d3c651d..b853dae 100644 +--- a/src/api/resources/commons/types/Action.ts ++++ b/src/api/resources/commons/types/Action.ts +@@ -26,6 +26,3 @@ import * as Flatfile from "../../.."; + export interface Action { +- /** +- * **This is deprecated. Use `operation` instead.** +- * +- */ ++ /** **This is deprecated. Use `operation` instead.** */ + slug?: string; +@@ -40,6 +37,3 @@ export interface Action { + messages?: Flatfile.ActionMessage[]; +- /** +- * **This is deprecated.** +- * +- */ ++ /** **This is deprecated.** */ + type?: string; +@@ -55,11 +49,5 @@ export interface Action { + icon?: string; +- /** +- * **This is deprecated. Use `constraints` instead.** +- * +- */ ++ /** **This is deprecated. Use `constraints` instead.** */ + requireAllValid?: boolean; +- /** +- * **This is deprecated. Use `constraints` instead.** +- * +- */ ++ /** **This is deprecated. Use `constraints` instead.** */ + requireSelection?: boolean; +diff --git a/src/api/resources/commons/types/ActionMessageType.ts b/src/api/resources/commons/types/ActionMessageType.ts +index 9af6b66..17cafd6 100644 +--- a/src/api/resources/commons/types/ActionMessageType.ts ++++ b/src/api/resources/commons/types/ActionMessageType.ts +@@ -4,8 +4,6 @@ + +-export type ActionMessageType = "success" | "error" | "warning" | "info"; ++export type ActionMessageType = "error" | "info"; + + export const ActionMessageType = { +- Success: "success", + Error: "error", +- Warning: "warning", + Info: "info", +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 0822184..09ece35 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -42,3 +42,3 @@ export class DataRetentionPolicies { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 1aa4e1d..3eb63f4 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index af35be3..20d60fe 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -42,3 +42,3 @@ export class Entitlements { + const { resourceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["resourceId"] = resourceId; +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 05d369a..eb8bc49 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -38,3 +38,3 @@ export class Environments { + const { pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -184,3 +184,3 @@ export class Environments { + const { environmentId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["environmentId"] = environmentId; +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 6613e36..6b17c2c 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -38,3 +38,3 @@ export class Events { + const { environmentId, spaceId, domain, topic, since, pageSize, pageNumber, includeAcknowledged } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -342,3 +342,3 @@ export class Events { + const { scope, spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (scope != null) { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/events/types/Domain.ts b/src/api/resources/events/types/Domain.ts +index 36b10c1..faf303e 100644 +--- a/src/api/resources/events/types/Domain.ts ++++ b/src/api/resources/events/types/Domain.ts +@@ -10,3 +10,3 @@ + */ +-export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program" | "secret"; ++export type Domain = "file" | "space" | "workbook" | "job" | "document" | "sheet" | "program" | "secret" | "cron"; + +@@ -21,2 +21,3 @@ export const Domain = { + Secret: "secret", ++ Cron: "cron", + } as const; +diff --git a/src/api/resources/events/types/EventTopic.ts b/src/api/resources/events/types/EventTopic.ts +index 9fdb9a0..71bab5b 100644 +--- a/src/api/resources/events/types/EventTopic.ts ++++ b/src/api/resources/events/types/EventTopic.ts +@@ -56,3 +56,7 @@ export type EventTopic = + | "secret:updated" +- | "secret:deleted"; ++ | "secret:deleted" ++ | "cron:5-minutes" ++ | "cron:hourly" ++ | "cron:daily" ++ | "cron:weekly"; + +@@ -105,2 +109,6 @@ export const EventTopic = { + SecretDeleted: "secret:deleted", ++ Cron5Minutes: "cron:5-minutes", ++ CronHourly: "cron:hourly", ++ CronDaily: "cron:daily", ++ CronWeekly: "cron:weekly", + } as const; +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 827068c..3d976b8 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -35,3 +35,3 @@ export class Files { + const { spaceId, pageSize, pageNumber, mode } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 62b1781..11fb5dd 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -40,3 +40,3 @@ export class Guests { + const { spaceId, email } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["spaceId"] = spaceId; +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -368,3 +368,3 @@ export class Guests { + const { spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 0e703cb..7d51642 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -32,3 +32,3 @@ export class Jobs { + const { environmentId, spaceId, workbookId, fileId, parentId, pageSize, pageNumber, sortDirection } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1108,3 +1108,3 @@ export class Jobs { +diff --git a/src/api/resources/jobs/types/ExportOptions.ts b/src/api/resources/jobs/types/ExportOptions.ts +index fb0af40..76b5ada 100644 +--- a/src/api/resources/jobs/types/ExportOptions.ts ++++ b/src/api/resources/jobs/types/ExportOptions.ts +@@ -25,6 +25,3 @@ export interface ExportOptions { + q?: string; +- /** +- * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * +- */ ++ /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts b/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts +index ccd853a..21d5ec0 100644 +--- a/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts ++++ b/src/api/resources/jobs/types/FindAndReplaceJobConfig.ts +@@ -17,6 +17,3 @@ export interface FindAndReplaceJobConfig { + q?: string; +- /** +- * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * +- */ ++ /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/jobs/types/MutateJobConfig.ts b/src/api/resources/jobs/types/MutateJobConfig.ts +index a95fa04..dd23cc9 100644 +--- a/src/api/resources/jobs/types/MutateJobConfig.ts ++++ b/src/api/resources/jobs/types/MutateJobConfig.ts +@@ -17,6 +17,3 @@ export interface MutateJobConfig { + q?: string; +- /** +- * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * +- */ ++ /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records */ + ids?: Flatfile.RecordId[]; +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 7061efa..700e485 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -128,3 +128,3 @@ export class Mapping { +@@ -211,3 +211,3 @@ export class Mapping { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -263,3 +263,3 @@ export class Mapping { +@@ -337,3 +337,3 @@ export class Mapping { +@@ -421,3 +421,3 @@ export class Mapping { +@@ -505,3 +505,3 @@ export class Mapping { +@@ -589,3 +589,3 @@ export class Mapping { +@@ -676,3 +676,3 @@ export class Mapping { +@@ -765,3 +765,3 @@ export class Mapping { +@@ -859,3 +859,3 @@ export class Mapping { +@@ -944,3 +944,3 @@ export class Mapping { +@@ -1034,3 +1034,3 @@ export class Mapping { +diff --git a/src/api/resources/property/types/EnumPropertyOption.ts b/src/api/resources/property/types/EnumPropertyOption.ts +index 8586459..632ac14 100644 +--- a/src/api/resources/property/types/EnumPropertyOption.ts ++++ b/src/api/resources/property/types/EnumPropertyOption.ts +@@ -15,3 +15,3 @@ export interface EnumPropertyOption { + meta?: Record; +- /** The value or ID of this option. This value will be sent in egress. The type is a string | integer | boolean. */ ++ /** The value or ID of this option. This value will be sent in egress. The type is a string | integer | boolean. */ + value?: any; +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index fcc7157..873e424 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -61,3 +61,3 @@ export class Records { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -153,3 +153,3 @@ export class Records { +@@ -264,3 +264,3 @@ export class Records { +@@ -368,3 +368,3 @@ export class Records { +@@ -448,3 +448,3 @@ export class Records { + const { ids } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (Array.isArray(ids)) { +@@ -466,3 +466,3 @@ export class Records { +@@ -544,3 +544,3 @@ export class Records { + const { filter, filterField, searchValue, searchField, ids, q, ..._body } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (filter != null) { +@@ -584,3 +584,3 @@ export class Records { +diff --git a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index ff492be..768efa5 100644 +--- a/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/api/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -22,3 +22,2 @@ export interface FindAndReplaceRecordRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * + */ +diff --git a/src/api/resources/records/client/requests/GetRecordsRequest.ts b/src/api/resources/records/client/requests/GetRecordsRequest.ts +index b1cbba2..6feba96 100644 +--- a/src/api/resources/records/client/requests/GetRecordsRequest.ts ++++ b/src/api/resources/records/client/requests/GetRecordsRequest.ts +@@ -32,3 +32,2 @@ export interface GetRecordsRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records. Maximum of 100 allowed. +- * + */ +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 3c89934..85728ad 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index d314e72..01cd8c5 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -42,3 +42,3 @@ export class Secrets { + const { environmentId, spaceId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index e323e20..f05eaa4 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -41,3 +41,3 @@ export class Sheets { + const { workbookId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["workbookId"] = workbookId; +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -346,3 +346,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -467,3 +467,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (versionId != null) { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -657,3 +657,3 @@ export class Sheets { + const { completed } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (completed != null) { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -914,3 +914,3 @@ export class Sheets { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (fieldKey != null) { +@@ -966,3 +966,3 @@ export class Sheets { +diff --git a/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts b/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts +index 7a0fc11..87868cc 100644 +--- a/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts ++++ b/src/api/resources/sheets/client/requests/GetRecordsCsvRequest.ts +@@ -12,3 +12,3 @@ export interface GetRecordsCsvRequest { + /** +- * Returns records that were changed in that version in that version and only those records. ++ * Returns records that were changed in that version in that version and only those records. + */ +@@ -49,3 +49,2 @@ export interface GetRecordsCsvRequest { + * The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records +- * + */ +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 1ae32f0..8d8680a 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -132,3 +132,3 @@ export class Snapshots { + const { sheetId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["sheetId"] = sheetId; +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -225,3 +225,3 @@ export class Snapshots { + const { includeSummary } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["includeSummary"] = includeSummary.toString(); +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -503,3 +503,3 @@ export class Snapshots { + const { pageSize, pageNumber, changeType } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (pageSize != null) { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index c80283f..df0d5d8 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -51,3 +51,3 @@ export class Spaces { + } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (environmentId != null) { +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -429,3 +429,3 @@ export class Spaces { + const { ids } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (Array.isArray(ids)) { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +diff --git a/src/api/resources/spaces/types/ListSpacesResponse.ts b/src/api/resources/spaces/types/ListSpacesResponse.ts +index 4b64c0c..e5054a0 100644 +--- a/src/api/resources/spaces/types/ListSpacesResponse.ts ++++ b/src/api/resources/spaces/types/ListSpacesResponse.ts +@@ -31,4 +31,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * }] +diff --git a/src/api/resources/spaces/types/Space.ts b/src/api/resources/spaces/types/Space.ts +index fac6065..23bfb60 100644 +--- a/src/api/resources/spaces/types/Space.ts ++++ b/src/api/resources/spaces/types/Space.ts +@@ -25,4 +25,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +@@ -45,4 +44,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +diff --git a/src/api/resources/spaces/types/SpaceResponse.ts b/src/api/resources/spaces/types/SpaceResponse.ts +index 155e02c..b32fe6e 100644 +--- a/src/api/resources/spaces/types/SpaceResponse.ts ++++ b/src/api/resources/spaces/types/SpaceResponse.ts +@@ -24,4 +24,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +@@ -46,4 +45,3 @@ import * as Flatfile from "../../.."; + * primaryWorkbookId: "us_wb_YOUR_ID", +- * labels: [], +- * metadata: undefined ++ * labels: [] + * } +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index aaedc6f..228c61a 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -40,3 +40,3 @@ export class Users { + const { email } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (email != null) { +@@ -56,3 +56,3 @@ export class Users { +@@ -116,3 +116,3 @@ export class Users { +@@ -175,3 +175,3 @@ export class Users { +@@ -236,3 +236,3 @@ export class Users { +@@ -331,3 +331,3 @@ export class Users { +@@ -429,3 +429,3 @@ export class Users { +@@ -511,3 +511,3 @@ export class Users { + const { tenantId, pageSize, pageNumber } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["tenantId"] = tenantId; +@@ -532,3 +532,3 @@ export class Users { +@@ -582,3 +582,3 @@ export class Users { + const { tenantId } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + _queryParams["tenantId"] = tenantId; +@@ -595,3 +595,3 @@ export class Users { +@@ -654,3 +654,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index cd8d86d..8811c9c 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 65da38c..c06a6cd 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -42,3 +42,3 @@ export class Workbooks { + const { spaceId, includeCounts } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (spaceId != null) { +@@ -62,3 +62,3 @@ export class Workbooks { +@@ -169,3 +169,3 @@ export class Workbooks { +@@ -246,3 +246,3 @@ export class Workbooks { +@@ -332,3 +332,3 @@ export class Workbooks { +@@ -429,3 +429,3 @@ export class Workbooks { +@@ -505,3 +505,3 @@ export class Workbooks { + const { completed } = request; +- const _queryParams: Record = {}; ++ const _queryParams: Record = {}; + if (completed != null) { +@@ -521,3 +521,3 @@ export class Workbooks { +@@ -582,3 +582,3 @@ export class Workbooks { +diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts +index eddba46..5348ac9 100644 +--- a/src/core/fetcher/Fetcher.ts ++++ b/src/core/fetcher/Fetcher.ts +@@ -13,3 +13,3 @@ export declare namespace Fetcher { + headers?: Record; +- queryParameters?: Record; ++ queryParameters?: Record; + body?: unknown; +diff --git a/src/serialization/resources/commons/types/ActionMessageType.ts b/src/serialization/resources/commons/types/ActionMessageType.ts +index 6cb1238..1114e5f 100644 +--- a/src/serialization/resources/commons/types/ActionMessageType.ts ++++ b/src/serialization/resources/commons/types/ActionMessageType.ts +@@ -11,6 +11,6 @@ export const ActionMessageType: core.serialization.Schema< + Flatfile.ActionMessageType +-> = core.serialization.enum_(["success", "error", "warning", "info"]); ++> = core.serialization.enum_(["error", "info"]); + + export declare namespace ActionMessageType { +- type Raw = "success" | "error" | "warning" | "info"; ++ type Raw = "error" | "info"; + } +diff --git a/src/serialization/resources/events/types/Domain.ts b/src/serialization/resources/events/types/Domain.ts +index e35b638..25cf0c0 100644 +--- a/src/serialization/resources/events/types/Domain.ts ++++ b/src/serialization/resources/events/types/Domain.ts +@@ -17,2 +17,3 @@ export const Domain: core.serialization.Schema` to allow for object and array values in query parameters. + +#### Apps + +- In the `App` and `AppResponse` types, the `deletedAt` and `activatedAt` properties have been removed. + +#### Auth + +- In the `getToken` method, the type of `_queryParams` has been updated to `Record`. + +#### Cells + +- In the `getCells` method, the type of `_queryParams` has been updated to `Record`. + +#### Commons + +- In the `Action` type, some deprecated properties have been marked with additional comments. +- The `ActionMessageType` type has been updated to include only `"error"` and `"info"` values, removing `"success"` and `"warning"`. + +#### Events + +- The `Domain` type has been updated to include a new value `"cron"`. +- The `EventTopic` type has been updated to include new values related to cron events: `"cron:5-minutes"`, `"cron:hourly"`, `"cron:daily"`, and `"cron:weekly"`. + +#### Jobs + +- In various method requests, the comments for the `ids` property have been updated to improve clarity. + +#### Property + +- In the `EnumPropertyOption` type, the comment for the `value` property has been updated. + +#### Records + +- In various methods, the type of `_queryParams` has been updated to `Record`. +- In the `FindAndReplaceRecordRequest` and `GetRecordsRequest` types, the comments for the `ids` property have been updated. + +#### Sheets + +- In the `GetRecordsCsvRequest` type, a typo in the comment has been fixed. + +#### Spaces + +- In the `Space`, `SpaceResponse`, and `ListSpacesResponse` types, the `metadata` property has been removed. + +#### Fetcher + +- In the `FetcherRequestOptions` type, the type of `queryParameters` has been updated to `Record` to allow for object and array values in query parameters. \ No newline at end of file diff --git a/release-notes/1.7.7.diff.txt b/release-notes/1.7.7.diff.txt new file mode 100644 index 00000000..de3080cb --- /dev/null +++ b/release-notes/1.7.7.diff.txt @@ -0,0 +1,380 @@ +diff --git a/package.json b/package.json +index 410ffdb..a760a6d 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.6", ++ "version": "1.7.7", + "private": false, +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 226fb6e..d5290f5 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index f28f450..64bf3ed 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 058f8b8..813f64c 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index bb62b5d..2636300 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 0340d6b..b00a9e4 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 09ece35..f831045 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 3eb63f4..48be07e 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 20d60fe..4cf97f6 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index eb8bc49..c43d1d3 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 6b17c2c..15e01f3 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 3d976b8..2b24e68 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 11fb5dd..bf533d0 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 7d51642..70063ed 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1108,3 +1108,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 700e485..da3fb9c 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -128,3 +128,3 @@ export class Mapping { +@@ -263,3 +263,3 @@ export class Mapping { +@@ -337,3 +337,3 @@ export class Mapping { +@@ -421,3 +421,3 @@ export class Mapping { +@@ -505,3 +505,3 @@ export class Mapping { +@@ -589,3 +589,3 @@ export class Mapping { +@@ -676,3 +676,3 @@ export class Mapping { +@@ -765,3 +765,3 @@ export class Mapping { +@@ -859,3 +859,3 @@ export class Mapping { +@@ -944,3 +944,3 @@ export class Mapping { +@@ -1034,3 +1034,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 873e424..0d8980a 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -264,3 +264,3 @@ export class Records { +@@ -368,3 +368,3 @@ export class Records { +@@ -466,3 +466,3 @@ export class Records { +@@ -584,3 +584,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 85728ad..c122370 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 01cd8c5..4d43318 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index f05eaa4..f1fa456 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -966,3 +966,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 8d8680a..ac75f76 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index df0d5d8..b5f4b69 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +@@ -687,2 +687,86 @@ export class Spaces { + ++ /** ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async upgrade( ++ spaceId: Flatfile.SpaceId, ++ request: Flatfile.UpgradeSpaceConfig, ++ requestOptions?: Spaces.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/spaces/${await serializers.SpaceId.jsonOrThrow(spaceId)}/upgrade` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UpgradeSpaceConfig.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.SpaceResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + protected async _getAuthorizationHeader() { +diff --git a/src/api/resources/spaces/types/UpgradeSpaceConfig.ts b/src/api/resources/spaces/types/UpgradeSpaceConfig.ts +new file mode 100644 +index 0000000..e93020d +--- /dev/null ++++ b/src/api/resources/spaces/types/UpgradeSpaceConfig.ts +@@ -0,0 +1,10 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties used to upgrade a space ++ */ ++export interface UpgradeSpaceConfig { ++ id: string; ++} +diff --git a/src/api/resources/spaces/types/index.ts b/src/api/resources/spaces/types/index.ts +index 338c7d4..8669369 100644 +--- a/src/api/resources/spaces/types/index.ts ++++ b/src/api/resources/spaces/types/index.ts +@@ -6,2 +6,3 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; ++export * from "./UpgradeSpaceConfig"; + export * from "./EventTokenResponse"; +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 228c61a..8439bd6 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -116,3 +116,3 @@ export class Users { +@@ -175,3 +175,3 @@ export class Users { +@@ -236,3 +236,3 @@ export class Users { +@@ -331,3 +331,3 @@ export class Users { +@@ -429,3 +429,3 @@ export class Users { +@@ -532,3 +532,3 @@ export class Users { +@@ -595,3 +595,3 @@ export class Users { +@@ -654,3 +654,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 8811c9c..72c64df 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index c06a6cd..bee9d28 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -62,3 +62,3 @@ export class Workbooks { +@@ -169,3 +169,3 @@ export class Workbooks { +@@ -246,3 +246,3 @@ export class Workbooks { +@@ -332,3 +332,3 @@ export class Workbooks { +@@ -429,3 +429,3 @@ export class Workbooks { +@@ -521,3 +521,3 @@ export class Workbooks { +@@ -582,3 +582,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts b/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts +new file mode 100644 +index 0000000..c3e615a +--- /dev/null ++++ b/src/serialization/resources/spaces/types/UpgradeSpaceConfig.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const UpgradeSpaceConfig: core.serialization.ObjectSchema< ++ serializers.UpgradeSpaceConfig.Raw, ++ Flatfile.UpgradeSpaceConfig ++> = core.serialization.object({ ++ id: core.serialization.string(), ++}); ++ ++export declare namespace UpgradeSpaceConfig { ++ interface Raw { ++ id: string; ++ } ++} +diff --git a/src/serialization/resources/spaces/types/index.ts b/src/serialization/resources/spaces/types/index.ts +index 338c7d4..8669369 100644 +--- a/src/serialization/resources/spaces/types/index.ts ++++ b/src/serialization/resources/spaces/types/index.ts +@@ -6,2 +6,3 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; ++export * from "./UpgradeSpaceConfig"; + export * from "./EventTokenResponse"; diff --git a/release-notes/1.7.7.diff.txt.result.md b/release-notes/1.7.7.diff.txt.result.md new file mode 100644 index 00000000..ee93d659 --- /dev/null +++ b/release-notes/1.7.7.diff.txt.result.md @@ -0,0 +1,8 @@ +#### General Changes + +- The version of the `@flatfile/api` package has been bumped from `1.7.6` to `1.7.7`. + +#### Spaces + +- A new `upgrade` method has been added to the `Spaces` client. This method takes a `spaceId` and an `UpgradeSpaceConfig` object, and returns a `Promise`. It can throw `BadRequestError` or `NotFoundError`. +- A new `UpgradeSpaceConfig` type has been added, which contains an `id` property of type string. \ No newline at end of file diff --git a/release-notes/1.7.8.diff.txt b/release-notes/1.7.8.diff.txt new file mode 100644 index 00000000..f764ef4b --- /dev/null +++ b/release-notes/1.7.8.diff.txt @@ -0,0 +1,274 @@ +diff --git a/package.json b/package.json +index a760a6d..bb078ed 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.7", ++ "version": "1.7.8", + "private": false, +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index d5290f5..2519531 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 64bf3ed..2434bb3 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 813f64c..b6c18ec 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 2636300..234cc63 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index b00a9e4..6031055 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index f831045..19ed0d9 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 48be07e..49f5960 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 4cf97f6..9df323b 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index c43d1d3..e9dbda0 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 15e01f3..58597be 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 2b24e68..8fd371a 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index bf533d0..eb3b6b8 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 70063ed..7a6f9e2 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1108,3 +1108,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index da3fb9c..3863aeb 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -128,3 +128,3 @@ export class Mapping { +@@ -263,3 +263,3 @@ export class Mapping { +@@ -337,3 +337,3 @@ export class Mapping { +@@ -421,3 +421,3 @@ export class Mapping { +@@ -505,3 +505,3 @@ export class Mapping { +@@ -589,3 +589,3 @@ export class Mapping { +@@ -676,3 +676,3 @@ export class Mapping { +@@ -765,3 +765,3 @@ export class Mapping { +@@ -859,3 +859,3 @@ export class Mapping { +@@ -944,3 +944,3 @@ export class Mapping { +@@ -1034,3 +1034,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 0d8980a..9d658d7 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -264,3 +264,3 @@ export class Records { +@@ -368,3 +368,3 @@ export class Records { +@@ -466,3 +466,3 @@ export class Records { +@@ -584,3 +584,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index c122370..4e59f0e 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 4d43318..acc5066 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index f1fa456..a4c60c0 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -966,3 +966,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index ac75f76..ea90206 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index b5f4b69..8b16f57 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -421,3 +421,3 @@ export class Spaces { + * await flatfile.spaces.bulkDelete({ +- * ids: "us_sp_YOUR_ID" ++ * spaceIds: "us_sp_YOUR_ID" + * }) +@@ -428,8 +428,8 @@ export class Spaces { + ): Promise { +- const { ids } = request; ++ const { spaceIds } = request; + const _queryParams: Record = {}; +- if (Array.isArray(ids)) { +- _queryParams["ids"] = ids.map((item) => item); ++ if (Array.isArray(spaceIds)) { ++ _queryParams["spaceIds"] = spaceIds.map((item) => item); + } else { +- _queryParams["ids"] = ids; ++ _queryParams["spaceIds"] = spaceIds; + } +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +@@ -707,3 +707,3 @@ export class Spaces { +diff --git a/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts b/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts +index 5f4641f..01df630 100644 +--- a/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts ++++ b/src/api/resources/spaces/client/requests/DeleteSpacesRequest.ts +@@ -9,3 +9,3 @@ import * as Flatfile from "../../../.."; + * { +- * ids: "us_sp_YOUR_ID" ++ * spaceIds: "us_sp_YOUR_ID" + * } +@@ -16,3 +16,3 @@ export interface DeleteSpacesRequest { + */ +- ids: Flatfile.SpaceId | Flatfile.SpaceId[]; ++ spaceIds: Flatfile.SpaceId | Flatfile.SpaceId[]; + } +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 8439bd6..fac4b6e 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -116,3 +116,3 @@ export class Users { +@@ -175,3 +175,3 @@ export class Users { +@@ -236,3 +236,3 @@ export class Users { +@@ -331,3 +331,3 @@ export class Users { +@@ -429,3 +429,3 @@ export class Users { +@@ -532,3 +532,3 @@ export class Users { +@@ -595,3 +595,3 @@ export class Users { +@@ -654,3 +654,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 72c64df..7ba85ef 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index bee9d28..7bb18e0 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -62,3 +62,3 @@ export class Workbooks { +@@ -169,3 +169,3 @@ export class Workbooks { +@@ -246,3 +246,3 @@ export class Workbooks { +@@ -332,3 +332,3 @@ export class Workbooks { +@@ -429,3 +429,3 @@ export class Workbooks { +@@ -521,3 +521,3 @@ export class Workbooks { +@@ -582,3 +582,3 @@ export class Workbooks { diff --git a/release-notes/1.7.8.diff.txt.result.md b/release-notes/1.7.8.diff.txt.result.md new file mode 100644 index 00000000..305446da --- /dev/null +++ b/release-notes/1.7.8.diff.txt.result.md @@ -0,0 +1,95 @@ +#### General + +- The package version has been bumped from `1.7.7` to `1.7.8`. + +#### Agents + +- No changes were made to the `Agents` resource. + +#### Apps + +- No changes were made to the `Apps` resource. + +#### Auth + +- No changes were made to the `Auth` resource. + +#### Cells + +- No changes were made to the `Cells` resource. + +#### Commits + +- No changes were made to the `Commits` resource. + +#### DataRetentionPolicies + +- No changes were made to the `DataRetentionPolicies` resource. + +#### Documents + +- No changes were made to the `Documents` resource. + +#### Entitlements + +- No changes were made to the `Entitlements` resource. + +#### Environments + +- No changes were made to the `Environments` resource. + +#### Events + +- No changes were made to the `Events` resource. + +#### Files + +- No changes were made to the `Files` resource. + +#### Guests + +- No changes were made to the `Guests` resource. + +#### Jobs + +- No changes were made to the `Jobs` resource. + +#### Mapping + +- No changes were made to the `Mapping` resource. + +#### Records + +- No changes were made to the `Records` resource. + +#### Roles + +- No changes were made to the `Roles` resource. + +#### Secrets + +- No changes were made to the `Secrets` resource. + +#### Sheets + +- No changes were made to the `Sheets` resource. + +#### Snapshots + +- No changes were made to the `Snapshots` resource. + +#### Spaces + +- The `bulkDelete` method in the `Spaces` resource has been updated. The `ids` parameter has been renamed to `spaceIds`. + +#### Users + +- No changes were made to the `Users` resource. + +#### Versions + +- No changes were made to the `Versions` resource. + +#### Workbooks + +- No changes were made to the `Workbooks` resource. \ No newline at end of file diff --git a/release-notes/1.8.0.diff.txt b/release-notes/1.8.0.diff.txt new file mode 100644 index 00000000..7eeb37a7 --- /dev/null +++ b/release-notes/1.8.0.diff.txt @@ -0,0 +1,9332 @@ +diff --git a/package.json b/package.json +index bb078ed..a6375fd 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.7.8", ++ "version": "1.8.0", + "private": false, +diff --git a/src/Client.ts b/src/Client.ts +index 815eab8..cb04dd8 100644 +--- a/src/Client.ts ++++ b/src/Client.ts +@@ -6,4 +6,6 @@ import * as environments from "./environments"; + import * as core from "./core"; ++import { Accounts } from "./api/resources/accounts/client/Client"; + import { Agents } from "./api/resources/agents/client/Client"; + import { Apps } from "./api/resources/apps/client/Client"; ++import { Assistant } from "./api/resources/assistant/client/Client"; + import { Auth } from "./api/resources/auth/client/Client"; +@@ -17,2 +19,3 @@ import { Events } from "./api/resources/events/client/Client"; + import { Files } from "./api/resources/files/client/Client"; ++import { Foreigndb } from "./api/resources/foreigndb/client/Client"; + import { Guests } from "./api/resources/guests/client/Client"; +@@ -46,2 +49,8 @@ export class FlatfileClient { + ++ protected _accounts: Accounts | undefined; ++ ++ public get accounts(): Accounts { ++ return (this._accounts ??= new Accounts(this._options)); ++ } ++ + protected _agents: Agents | undefined; +@@ -58,2 +67,8 @@ export class FlatfileClient { + ++ protected _assistant: Assistant | undefined; ++ ++ public get assistant(): Assistant { ++ return (this._assistant ??= new Assistant(this._options)); ++ } ++ + protected _auth: Auth | undefined; +@@ -112,2 +127,8 @@ export class FlatfileClient { + ++ protected _foreigndb: Foreigndb | undefined; ++ ++ public get foreigndb(): Foreigndb { ++ return (this._foreigndb ??= new Foreigndb(this._options)); ++ } ++ + protected _guests: Guests | undefined; +diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts +new file mode 100644 +index 0000000..f77e047 +--- /dev/null ++++ b/src/api/resources/accounts/client/Client.ts +@@ -0,0 +1,158 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as environments from "../../../../environments"; ++import * as core from "../../../../core"; ++import * as Flatfile from "../../.."; ++import urlJoin from "url-join"; ++import * as serializers from "../../../../serialization"; ++import * as errors from "../../../../errors"; ++ ++export declare namespace Accounts { ++ interface Options { ++ environment?: core.Supplier; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Accounts { ++ constructor(protected readonly _options: Accounts.Options = {}) {} ++ ++ /** ++ * Get the current account ++ * ++ * @example ++ * await flatfile.accounts.getCurrent() ++ */ ++ public async getCurrent(requestOptions?: Accounts.RequestOptions): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/accounts/current" ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.AccountResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Update the current account ++ * ++ * @example ++ * await flatfile.accounts.updateCurrent({ ++ * defaultAppId: "us_app_YOUR_ID" ++ * }) ++ */ ++ public async updateCurrent( ++ request: Flatfile.AccountPatch, ++ requestOptions?: Accounts.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/accounts/current" ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.AccountPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.AccountResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/accounts/client/index.ts b/src/api/resources/accounts/client/index.ts +new file mode 100644 +index 0000000..cb0ff5c +--- /dev/null ++++ b/src/api/resources/accounts/client/index.ts +@@ -0,0 +1 @@ ++export {}; +diff --git a/src/api/resources/accounts/index.ts b/src/api/resources/accounts/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/accounts/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/accounts/types/Account.ts b/src/api/resources/accounts/types/Account.ts +new file mode 100644 +index 0000000..ff6697c +--- /dev/null ++++ b/src/api/resources/accounts/types/Account.ts +@@ -0,0 +1,33 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * An account ++ * ++ * @example ++ * { ++ * id: "us_acc_YOUR_ID", ++ * name: "MyAccountName", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * } ++ */ ++export interface Account { ++ id: Flatfile.AccountId; ++ name: string; ++ subdomain?: string; ++ vanityDomainDashboard?: string; ++ vanityDomainSpaces?: string; ++ embeddedDomainWhitelist?: string[]; ++ customFromEmail?: string; ++ stripeCustomerId?: string; ++ metadata: Record; ++ createdAt: Date; ++ updatedAt: Date; ++ defaultAppId?: Flatfile.AppId; ++ dashboard?: number; ++} +diff --git a/src/api/resources/accounts/types/AccountPatch.ts b/src/api/resources/accounts/types/AccountPatch.ts +new file mode 100644 +index 0000000..870403b +--- /dev/null ++++ b/src/api/resources/accounts/types/AccountPatch.ts +@@ -0,0 +1,17 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Properties used to update an account ++ * ++ * @example ++ * { ++ * defaultAppId: "us_app_YOUR_ID" ++ * } ++ */ ++export interface AccountPatch { ++ defaultAppId: Flatfile.AppId; ++} +diff --git a/src/api/resources/accounts/types/AccountResponse.ts b/src/api/resources/accounts/types/AccountResponse.ts +new file mode 100644 +index 0000000..c8afe37 +--- /dev/null ++++ b/src/api/resources/accounts/types/AccountResponse.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: { ++ * id: "us_acc_YOUR_ID", ++ * name: "MyAccountName", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * } ++ * } ++ */ ++export interface AccountResponse { ++ data: Flatfile.Account; ++} +diff --git a/src/api/resources/accounts/types/index.ts b/src/api/resources/accounts/types/index.ts +new file mode 100644 +index 0000000..0f9ca2c +--- /dev/null ++++ b/src/api/resources/accounts/types/index.ts +@@ -0,0 +1,3 @@ ++export * from "./AccountResponse"; ++export * from "./Account"; ++export * from "./AccountPatch"; +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 2519531..d5e53d0 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 2434bb3..e3d2d96 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/apps/types/App.ts b/src/api/resources/apps/types/App.ts +index ab52d53..9d3909e 100644 +--- a/src/api/resources/apps/types/App.ts ++++ b/src/api/resources/apps/types/App.ts +@@ -21,2 +21,11 @@ import * as Flatfile from "../../.."; + * }, ++ * environmentFilters: { ++ * "type": [ ++ * "PROD", ++ * "DEV" ++ * ], ++ * "exclude_ids": [ ++ * "us_env_123456" ++ * ] ++ * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +@@ -34,2 +43,3 @@ export interface App { + metadata?: any; ++ environmentFilters?: any; + createdAt: Date; +diff --git a/src/api/resources/apps/types/AppCreate.ts b/src/api/resources/apps/types/AppCreate.ts +index b04a843..3ecbf37 100644 +--- a/src/api/resources/apps/types/AppCreate.ts ++++ b/src/api/resources/apps/types/AppCreate.ts +@@ -30,2 +30,3 @@ export interface AppCreate { + metadata?: any; ++ environmentFilters?: any; + } +diff --git a/src/api/resources/apps/types/AppPatch.ts b/src/api/resources/apps/types/AppPatch.ts +index 8ee7606..2d9f71f 100644 +--- a/src/api/resources/apps/types/AppPatch.ts ++++ b/src/api/resources/apps/types/AppPatch.ts +@@ -26,2 +26,3 @@ export interface AppPatch { + metadata?: any; ++ environmentFilters?: any; + activatedAt?: Date; +diff --git a/src/api/resources/apps/types/AppResponse.ts b/src/api/resources/apps/types/AppResponse.ts +index 6ec2900..6618c44 100644 +--- a/src/api/resources/apps/types/AppResponse.ts ++++ b/src/api/resources/apps/types/AppResponse.ts +@@ -20,2 +20,11 @@ import * as Flatfile from "../../.."; + * }, ++ * environmentFilters: { ++ * "type": [ ++ * "PROD", ++ * "DEV" ++ * ], ++ * "exclude_ids": [ ++ * "us_env_123456" ++ * ] ++ * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +diff --git a/src/api/resources/apps/types/AppsResponse.ts b/src/api/resources/apps/types/AppsResponse.ts +index 1c6dad9..7f1337e 100644 +--- a/src/api/resources/apps/types/AppsResponse.ts ++++ b/src/api/resources/apps/types/AppsResponse.ts +@@ -20,2 +20,11 @@ import * as Flatfile from "../../.."; + * }, ++ * environmentFilters: { ++ * "type": [ ++ * "PROD", ++ * "DEV" ++ * ], ++ * "exclude_ids": [ ++ * "us_env_123456" ++ * ] ++ * }, + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +new file mode 100644 +index 0000000..0bf938d +--- /dev/null ++++ b/src/api/resources/assistant/client/Client.ts +@@ -0,0 +1,359 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as environments from "../../../../environments"; ++import * as core from "../../../../core"; ++import * as Flatfile from "../../.."; ++import urlJoin from "url-join"; ++import * as serializers from "../../../../serialization"; ++import * as errors from "../../../../errors"; ++ ++export declare namespace Assistant { ++ interface Options { ++ environment?: core.Supplier; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Assistant { ++ constructor(protected readonly _options: Assistant.Options = {}) {} ++ ++ /** ++ * Returns prompts created by user ++ * ++ * @example ++ * await flatfile.assistant.list() ++ */ ++ public async list( ++ request: Flatfile.ListPromptsRequest = {}, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const { pageSize, pageNumber } = request; ++ const _queryParams: Record = {}; ++ if (pageSize != null) { ++ _queryParams["pageSize"] = pageSize.toString(); ++ } ++ ++ if (pageNumber != null) { ++ _queryParams["pageNumber"] = pageNumber.toString(); ++ } ++ ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/prompts" ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ queryParameters: _queryParams, ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptsResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Returns a prompt ++ * ++ * @example ++ * await flatfile.assistant.get("us_pr_YOUR_ID") ++ */ ++ public async get( ++ promptId: Flatfile.PromptId, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Updates a prompt ++ * ++ * @example ++ * await flatfile.assistant.update("us_pr_YOUR_ID", { ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * }) ++ */ ++ public async update( ++ promptId: Flatfile.PromptId, ++ request: Flatfile.PromptPatch, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.PromptPatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Creates a prompt ++ * ++ * @example ++ * await flatfile.assistant.create({ ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * }) ++ */ ++ public async create( ++ request: Flatfile.PromptCreate, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/prompts" ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.PromptCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.PromptResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Deletes a prompts ++ * ++ * @example ++ * await flatfile.assistant.delete("us_pr_YOUR_ID") ++ */ ++ public async delete( ++ promptId: Flatfile.PromptId, ++ requestOptions?: Assistant.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/prompts/${await serializers.PromptId.jsonOrThrow(promptId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/assistant/client/index.ts b/src/api/resources/assistant/client/index.ts +new file mode 100644 +index 0000000..415726b +--- /dev/null ++++ b/src/api/resources/assistant/client/index.ts +@@ -0,0 +1 @@ ++export * from "./requests"; +diff --git a/src/api/resources/assistant/client/requests/ListPromptsRequest.ts b/src/api/resources/assistant/client/requests/ListPromptsRequest.ts +new file mode 100644 +index 0000000..f93af5d +--- /dev/null ++++ b/src/api/resources/assistant/client/requests/ListPromptsRequest.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * @example ++ * {} ++ */ ++export interface ListPromptsRequest { ++ /** ++ * Number of prompts to return in a page (default 7) ++ */ ++ pageSize?: number; ++ /** ++ * Based on pageSize, which page of prompts to return ++ */ ++ pageNumber?: number; ++} +diff --git a/src/api/resources/assistant/client/requests/index.ts b/src/api/resources/assistant/client/requests/index.ts +new file mode 100644 +index 0000000..78a6d76 +--- /dev/null ++++ b/src/api/resources/assistant/client/requests/index.ts +@@ -0,0 +1 @@ ++export { ListPromptsRequest } from "./ListPromptsRequest"; +diff --git a/src/api/resources/assistant/index.ts b/src/api/resources/assistant/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/assistant/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/assistant/types/Prompt.ts b/src/api/resources/assistant/types/Prompt.ts +new file mode 100644 +index 0000000..a8702cb +--- /dev/null ++++ b/src/api/resources/assistant/types/Prompt.ts +@@ -0,0 +1,28 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * id: "us_pr_YOUR_ID", ++ * createdById: "us_usr_YOUR_ID", ++ * accountId: "us_acc_YOUR_ID", ++ * prompt: "Combine first name and last name into a new column called Full Name", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * } ++ */ ++export interface Prompt { ++ id: Flatfile.PromptId; ++ /** ID of the user/guest who created the prompt */ ++ createdById: string; ++ accountId: Flatfile.AccountId; ++ /** Text for prompts for AI Assist */ ++ prompt: string; ++ createdAt: Date; ++ updatedAt: Date; ++ deletedAt?: Date; ++} +diff --git a/src/api/resources/assistant/types/PromptCreate.ts b/src/api/resources/assistant/types/PromptCreate.ts +new file mode 100644 +index 0000000..e9d20e6 +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptCreate.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Create a prompts ++ * ++ * @example ++ * { ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * } ++ */ ++export interface PromptCreate { ++ prompt: string; ++} +diff --git a/src/api/resources/assistant/types/PromptPatch.ts b/src/api/resources/assistant/types/PromptPatch.ts +new file mode 100644 +index 0000000..d1718fc +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptPatch.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Update a prompts ++ * ++ * @example ++ * { ++ * prompt: "Combine first name and last name into a new column called Full Name" ++ * } ++ */ ++export interface PromptPatch { ++ prompt?: string; ++} +diff --git a/src/api/resources/assistant/types/PromptResponse.ts b/src/api/resources/assistant/types/PromptResponse.ts +new file mode 100644 +index 0000000..c6bdca6 +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptResponse.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: { ++ * id: "us_pr_YOUR_ID", ++ * createdById: "us_usr_YOUR_ID", ++ * accountId: "us_acc_YOUR_ID", ++ * prompt: "Combine first name and last name into a new column called Full Name", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * } ++ * } ++ */ ++export interface PromptResponse { ++ data: Flatfile.Prompt; ++} +diff --git a/src/api/resources/assistant/types/PromptsResponse.ts b/src/api/resources/assistant/types/PromptsResponse.ts +new file mode 100644 +index 0000000..3b59dd1 +--- /dev/null ++++ b/src/api/resources/assistant/types/PromptsResponse.ts +@@ -0,0 +1,28 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: [{ ++ * id: "us_pr_YOUR_ID", ++ * createdById: "us_usr_YOUR_ID", ++ * accountId: "us_acc_YOUR_ID", ++ * prompt: "Combine first name and last name into a new column called Full Name", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * }], ++ * pagination: { ++ * currentPage: 3, ++ * pageCount: 50, ++ * totalCount: 100 ++ * } ++ * } ++ */ ++export interface PromptsResponse { ++ pagination?: Flatfile.Pagination; ++ data: Flatfile.Prompt[]; ++} +diff --git a/src/api/resources/assistant/types/index.ts b/src/api/resources/assistant/types/index.ts +new file mode 100644 +index 0000000..d296f59 +--- /dev/null ++++ b/src/api/resources/assistant/types/index.ts +@@ -0,0 +1,5 @@ ++export * from "./PromptsResponse"; ++export * from "./PromptResponse"; ++export * from "./PromptPatch"; ++export * from "./PromptCreate"; ++export * from "./Prompt"; +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index b6c18ec..de2aada 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 234cc63..90dc62f 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 6031055..b3b194d 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/commons/types/PromptId.ts b/src/api/resources/commons/types/PromptId.ts +new file mode 100644 +index 0000000..03a6eb6 +--- /dev/null ++++ b/src/api/resources/commons/types/PromptId.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Prompt ID ++ * ++ * @example ++ * "us_pr_YOUR_ID" ++ */ ++export type PromptId = string; +diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts +index d92ca92..baa887d 100644 +--- a/src/api/resources/commons/types/index.ts ++++ b/src/api/resources/commons/types/index.ts +@@ -24,2 +24,3 @@ export * from "./ProgramId"; + export * from "./FamilyId"; ++export * from "./PromptId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 19ed0d9..3f022b2 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 49f5960..219b2f0 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 9df323b..5f7a3b3 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index e9dbda0..8efeb09 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -31,3 +31,3 @@ export class Environments { + * @example +- * await flatfile.environments.list({}) ++ * await flatfile.environments.list() + */ +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 58597be..937c801 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -31,3 +31,3 @@ export class Events { + * @example +- * await flatfile.events.list({}) ++ * await flatfile.events.list() + */ +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -335,3 +335,3 @@ export class Events { + * @example +- * await flatfile.events.getEventToken({}) ++ * await flatfile.events.getEventToken() + */ +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/events/types/Context.ts b/src/api/resources/events/types/Context.ts +index 117acb2..72c7314 100644 +--- a/src/api/resources/events/types/Context.ts ++++ b/src/api/resources/events/types/Context.ts +@@ -41,2 +41,3 @@ export interface Context { + actorId?: string; ++ appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/events/types/Event.ts b/src/api/resources/events/types/Event.ts +index 1ec89fd..20f2d64 100644 +--- a/src/api/resources/events/types/Event.ts ++++ b/src/api/resources/events/types/Event.ts +@@ -54,2 +54,3 @@ export type Event = + | Flatfile.Event.SheetDeleted ++ | Flatfile.Event.SheetCountsUpdated + | Flatfile.Event.SnapshotCreated +@@ -162,2 +163,6 @@ export declare namespace Event { + ++ interface SheetCountsUpdated extends Flatfile.GenericEvent { ++ topic: "sheet:counts-updated"; ++ } ++ + interface SnapshotCreated extends Flatfile.GenericEvent { +diff --git a/src/api/resources/events/types/EventTopic.ts b/src/api/resources/events/types/EventTopic.ts +index 71bab5b..589a8a2 100644 +--- a/src/api/resources/events/types/EventTopic.ts ++++ b/src/api/resources/events/types/EventTopic.ts +@@ -31,2 +31,3 @@ export type EventTopic = + | "sheet:deleted" ++ | "sheet:counts-updated" + | "snapshot:created" +@@ -83,2 +84,3 @@ export const EventTopic = { + SheetDeleted: "sheet:deleted", ++ SheetCountsUpdated: "sheet:counts-updated", + SnapshotCreated: "snapshot:created", +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 8fd371a..b35ed38 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/files/client/requests/ListFilesRequest.ts b/src/api/resources/files/client/requests/ListFilesRequest.ts +index 0e99dd4..ed26c81 100644 +--- a/src/api/resources/files/client/requests/ListFilesRequest.ts ++++ b/src/api/resources/files/client/requests/ListFilesRequest.ts +@@ -13,3 +13,3 @@ export interface ListFilesRequest { + /** +- * Number of jobs to return in a page (default 20) ++ * Number of files to return in a page (default 20) + */ +@@ -17,3 +17,3 @@ export interface ListFilesRequest { + /** +- * Based on pageSize, which page of jobs to return ++ * Based on pageSize, which page of files to return + */ +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +new file mode 100644 +index 0000000..55ee09b +--- /dev/null ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -0,0 +1,457 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as environments from "../../../../environments"; ++import * as core from "../../../../core"; ++import * as Flatfile from "../../.."; ++import * as serializers from "../../../../serialization"; ++import urlJoin from "url-join"; ++import * as errors from "../../../../errors"; ++ ++export declare namespace Foreigndb { ++ interface Options { ++ environment?: core.Supplier; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Foreigndb { ++ constructor(protected readonly _options: Foreigndb.Options = {}) {} ++ ++ /** ++ * Restore a database from a backup ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async restore( ++ workbookId: string, ++ request: Flatfile.RestoreDatabaseRequest, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.RestoreDatabaseRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.RestoreDatabaseResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Get database user credentials ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async getDatabaseUser( ++ workbookId: string, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}/user` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.GetDatabaseUserResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Get the database information ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async getDatabaseInfo( ++ workbookId: string, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.GetDatabaseResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Delete the database ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async deleteDatabase( ++ workbookId: string, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Persist a file in s3 object storage ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ */ ++ public async upload( ++ workbookId: string, ++ request: Flatfile.UploadToObjectStorageRequest, ++ requestOptions?: Foreigndb.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/foreigndb/${workbookId}/storage` ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UploadToObjectStorageRequest.jsonOrThrow(request, { ++ unrecognizedObjectKeys: "strip", ++ }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/foreigndb/client/index.ts b/src/api/resources/foreigndb/client/index.ts +new file mode 100644 +index 0000000..cb0ff5c +--- /dev/null ++++ b/src/api/resources/foreigndb/client/index.ts +@@ -0,0 +1 @@ ++export {}; +diff --git a/src/api/resources/foreigndb/index.ts b/src/api/resources/foreigndb/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/foreigndb/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/foreigndb/types/DatabaseTask.ts b/src/api/resources/foreigndb/types/DatabaseTask.ts +new file mode 100644 +index 0000000..2ef7873 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/DatabaseTask.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties of a database task ++ */ ++export interface DatabaseTask { ++ /** The task status */ ++ status: string; ++ /** The task type */ ++ type: string; ++ /** The task progress */ ++ progress: number; ++} +diff --git a/src/api/resources/foreigndb/types/GetDatabaseResponse.ts b/src/api/resources/foreigndb/types/GetDatabaseResponse.ts +new file mode 100644 +index 0000000..f492c2d +--- /dev/null ++++ b/src/api/resources/foreigndb/types/GetDatabaseResponse.ts +@@ -0,0 +1,9 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface GetDatabaseResponse { ++ task: Flatfile.DatabaseTask; ++} +diff --git a/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts b/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts +new file mode 100644 +index 0000000..d0208fb +--- /dev/null ++++ b/src/api/resources/foreigndb/types/GetDatabaseUserResponse.ts +@@ -0,0 +1,13 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties of the database user ++ */ ++export interface GetDatabaseUserResponse { ++ /** the database user username */ ++ username: string; ++ /** the database user password */ ++ password: string; ++} +diff --git a/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts b/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts +new file mode 100644 +index 0000000..18c0c10 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/RestoreDatabaseRequest.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties required to restore a database ++ */ ++export interface RestoreDatabaseRequest { ++ /** the fileId of the backup to be restored */ ++ fileId: string; ++} +diff --git a/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts b/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts +new file mode 100644 +index 0000000..a4a1fe1 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/RestoreDatabaseResponse.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties of a restored database ++ */ ++export interface RestoreDatabaseResponse { ++ /** the host to the restored database */ ++ host: string; ++ /** the port to the restored database */ ++ port: number; ++ /** the database name to the restored database */ ++ dbname: string; ++} +diff --git a/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts b/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts +new file mode 100644 +index 0000000..52d0ce8 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/UploadToObjectStorageRequest.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * Properties required to upload a file to object storage ++ */ ++export interface UploadToObjectStorageRequest { ++ /** the ID of the file to send to object storage */ ++ fileId: string; ++} +diff --git a/src/api/resources/foreigndb/types/index.ts b/src/api/resources/foreigndb/types/index.ts +new file mode 100644 +index 0000000..8086286 +--- /dev/null ++++ b/src/api/resources/foreigndb/types/index.ts +@@ -0,0 +1,6 @@ ++export * from "./UploadToObjectStorageRequest"; ++export * from "./RestoreDatabaseRequest"; ++export * from "./RestoreDatabaseResponse"; ++export * from "./GetDatabaseResponse"; ++export * from "./DatabaseTask"; ++export * from "./GetDatabaseUserResponse"; +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index eb3b6b8..24f5f29 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -360,3 +360,3 @@ export class Guests { + * @example +- * await flatfile.guests.getGuestToken("us_g_YOUR_ID", {}) ++ * await flatfile.guests.getGuestToken("us_g_YOUR_ID") + */ +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts +index 080ee96..21a77dd 100644 +--- a/src/api/resources/index.ts ++++ b/src/api/resources/index.ts +@@ -1 +1,3 @@ ++export * as accounts from "./accounts"; ++export * from "./accounts/types"; + export * as agents from "./agents"; +@@ -4,2 +6,4 @@ export * as apps from "./apps"; + export * from "./apps/types"; ++export * as assistant from "./assistant"; ++export * from "./assistant/types"; + export * as auth from "./auth"; +@@ -24,2 +28,4 @@ export * as files from "./files"; + export * from "./files/types"; ++export * as foreigndb from "./foreigndb"; ++export * from "./foreigndb/types"; + export * as guests from "./guests"; +@@ -52,2 +58,3 @@ export * from "./commons/errors"; + export * from "./agents/client/requests"; ++export * from "./assistant/client/requests"; + export * from "./auth/client/requests"; +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 7a6f9e2..9e1815c 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1089,2 +1089,3 @@ export class Jobs { + * await flatfile.jobs.split("us_jb_YOUR_ID", { ++ * parts: [{}], + * runInParallel: true +@@ -1108,3 +1109,3 @@ export class Jobs { +diff --git a/src/api/resources/jobs/types/Job.ts b/src/api/resources/jobs/types/Job.ts +index 7aba335..b97c5de 100644 +--- a/src/api/resources/jobs/types/Job.ts ++++ b/src/api/resources/jobs/types/Job.ts +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobPlan.ts b/src/api/resources/jobs/types/JobPlan.ts +index 3702174..93db0fa 100644 +--- a/src/api/resources/jobs/types/JobPlan.ts ++++ b/src/api/resources/jobs/types/JobPlan.ts +@@ -22,3 +22,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobPlanResponse.ts b/src/api/resources/jobs/types/JobPlanResponse.ts +index 40723bb..f37035f 100644 +--- a/src/api/resources/jobs/types/JobPlanResponse.ts ++++ b/src/api/resources/jobs/types/JobPlanResponse.ts +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobResponse.ts b/src/api/resources/jobs/types/JobResponse.ts +index eb4b4ab..f1c5ff8 100644 +--- a/src/api/resources/jobs/types/JobResponse.ts ++++ b/src/api/resources/jobs/types/JobResponse.ts +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/JobSplitDetails.ts b/src/api/resources/jobs/types/JobSplitDetails.ts +index fd46de6..961e31c 100644 +--- a/src/api/resources/jobs/types/JobSplitDetails.ts ++++ b/src/api/resources/jobs/types/JobSplitDetails.ts +@@ -11,2 +11,3 @@ import * as Flatfile from "../../.."; + * { ++ * parts: [{}], + * runInParallel: true +diff --git a/src/api/resources/jobs/types/JobUpdate.ts b/src/api/resources/jobs/types/JobUpdate.ts +index 0f938e5..afaa7a5 100644 +--- a/src/api/resources/jobs/types/JobUpdate.ts ++++ b/src/api/resources/jobs/types/JobUpdate.ts +@@ -11,3 +11,3 @@ import * as Flatfile from "../../.."; + * { +- * config: undefined, ++ * config: {}, + * status: Flatfile.JobStatus.Complete, +diff --git a/src/api/resources/jobs/types/ListJobsResponse.ts b/src/api/resources/jobs/types/ListJobsResponse.ts +index eb997d2..2df4075 100644 +--- a/src/api/resources/jobs/types/ListJobsResponse.ts ++++ b/src/api/resources/jobs/types/ListJobsResponse.ts +@@ -25,3 +25,3 @@ import * as Flatfile from "../../.."; + * destination: "us_wb_YOUR_ID", +- * config: undefined, ++ * config: {}, + * trigger: Flatfile.Trigger.Immediate, +diff --git a/src/api/resources/jobs/types/MutateJobConfig.ts b/src/api/resources/jobs/types/MutateJobConfig.ts +index dd23cc9..0bc62b6 100644 +--- a/src/api/resources/jobs/types/MutateJobConfig.ts ++++ b/src/api/resources/jobs/types/MutateJobConfig.ts +@@ -12,2 +12,6 @@ export interface MutateJobConfig { + mutationId?: string; ++ /** If specified, a snapshot will be generated with this label */ ++ snapshotLabel?: string; ++ /** The generated snapshotId will be stored here */ ++ snapshotId?: string; + filter?: Flatfile.Filter; +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 3863aeb..dcf2d56 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -128,3 +128,3 @@ export class Mapping { +@@ -263,3 +263,3 @@ export class Mapping { +@@ -337,3 +337,3 @@ export class Mapping { +@@ -421,3 +421,3 @@ export class Mapping { +@@ -505,3 +505,3 @@ export class Mapping { +@@ -589,3 +589,3 @@ export class Mapping { +@@ -676,3 +676,3 @@ export class Mapping { +@@ -765,3 +765,3 @@ export class Mapping { +@@ -859,3 +859,3 @@ export class Mapping { +@@ -944,3 +944,3 @@ export class Mapping { +@@ -1034,3 +1034,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 9d658d7..10a5f87 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -33,3 +33,3 @@ export class Records { + * @example +- * await flatfile.records.get("us_sh_YOUR_ID", {}) ++ * await flatfile.records.get("us_sh_YOUR_ID") + */ +@@ -153,3 +153,3 @@ export class Records { +@@ -229,3 +229,3 @@ export class Records { + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -234,3 +234,3 @@ export class Records { + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -239,3 +239,3 @@ export class Records { + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -245,3 +245,4 @@ export class Records { + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * }]) +@@ -264,3 +265,3 @@ export class Records { +@@ -336,3 +337,3 @@ export class Records { + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -341,3 +342,3 @@ export class Records { + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -346,3 +347,3 @@ export class Records { + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -368,3 +369,3 @@ export class Records { +@@ -466,3 +467,3 @@ export class Records { +@@ -584,3 +585,3 @@ export class Records { +diff --git a/src/api/resources/records/client/requests/GetRecordsRequest.ts b/src/api/resources/records/client/requests/GetRecordsRequest.ts +index 6feba96..ffd839d 100644 +--- a/src/api/resources/records/client/requests/GetRecordsRequest.ts ++++ b/src/api/resources/records/client/requests/GetRecordsRequest.ts +@@ -35,3 +35,3 @@ export interface GetRecordsRequest { + /** +- * Number of records to return in a page (default 1000 if pageNumber included) ++ * Number of records to return in a page (default 10,000) + */ +@@ -39,3 +39,3 @@ export interface GetRecordsRequest { + /** +- * Based on pageSize, which page of records to return ++ * Based on pageSize, which page of records to return (Note - numbers start at 1) + */ +diff --git a/src/api/resources/records/types/CellConfig.ts b/src/api/resources/records/types/CellConfig.ts +new file mode 100644 +index 0000000..c2bb050 +--- /dev/null ++++ b/src/api/resources/records/types/CellConfig.ts +@@ -0,0 +1,15 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * CellConfig ++ * ++ * @example ++ * { ++ * readonly: true ++ * } ++ */ ++export interface CellConfig { ++ readonly?: boolean; ++} +diff --git a/src/api/resources/records/types/DiffRecord.ts b/src/api/resources/records/types/DiffRecord.ts +index cd297a6..432c94f 100644 +--- a/src/api/resources/records/types/DiffRecord.ts ++++ b/src/api/resources/records/types/DiffRecord.ts +@@ -12,12 +12,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "John", ++ * value: "Johns" + * }, + * "lastName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "Doe", ++ * value: "Does" + * }, + * "email": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "john.doe@example.com", ++ * value: "john.doe@example.com" + * } +diff --git a/src/api/resources/records/types/DiffRecords.ts b/src/api/resources/records/types/DiffRecords.ts +index 9d9bf91..9c4e428 100644 +--- a/src/api/resources/records/types/DiffRecords.ts ++++ b/src/api/resources/records/types/DiffRecords.ts +@@ -14,12 +14,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "John", ++ * value: "Johns" + * }, + * "lastName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "Doe", ++ * value: "Does" + * }, + * "email": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "john.doe@example.com", ++ * value: "john.doe@example.com" + * } +diff --git a/src/api/resources/records/types/DiffRecordsResponse.ts b/src/api/resources/records/types/DiffRecordsResponse.ts +index 2f1a25d..0bc082d 100644 +--- a/src/api/resources/records/types/DiffRecordsResponse.ts ++++ b/src/api/resources/records/types/DiffRecordsResponse.ts +@@ -13,12 +13,12 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "John", ++ * value: "Johns" + * }, + * "lastName": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "Doe", ++ * value: "Does" + * }, + * "email": { +- * snapshotValue: undefined, +- * value: undefined ++ * snapshotValue: "john.doe@example.com", ++ * value: "john.doe@example.com" + * } +diff --git a/src/api/resources/records/types/GetRecordsResponse.ts b/src/api/resources/records/types/GetRecordsResponse.ts +index 160b2ba..a577381 100644 +--- a/src/api/resources/records/types/GetRecordsResponse.ts ++++ b/src/api/resources/records/types/GetRecordsResponse.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -33,3 +33,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * }], +diff --git a/src/api/resources/records/types/GetRecordsResponseData.ts b/src/api/resources/records/types/GetRecordsResponseData.ts +index df58c87..08903f6 100644 +--- a/src/api/resources/records/types/GetRecordsResponseData.ts ++++ b/src/api/resources/records/types/GetRecordsResponseData.ts +@@ -15,3 +15,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -27,3 +27,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -34,3 +34,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * }], +diff --git a/src/api/resources/records/types/RecordBase.ts b/src/api/resources/records/types/RecordBase.ts +index ab2ae97..79c9dea 100644 +--- a/src/api/resources/records/types/RecordBase.ts ++++ b/src/api/resources/records/types/RecordBase.ts +@@ -21,5 +21,8 @@ export interface RecordBase { + commitId?: Flatfile.CommitId; ++ /** Auto-generated value based on whether the record contains a field with an error message. Cannot be set via the API. */ + valid?: boolean; ++ /** This record level `messages` property is deprecated and no longer stored or used. Use the `messages` property on the individual cell values instead. This property will be removed in a future release. */ + messages?: Flatfile.ValidationMessage[]; + metadata?: Record; ++ config?: Flatfile.RecordConfig; + } +diff --git a/src/api/resources/records/types/RecordConfig.ts b/src/api/resources/records/types/RecordConfig.ts +new file mode 100644 +index 0000000..0f690f6 +--- /dev/null ++++ b/src/api/resources/records/types/RecordConfig.ts +@@ -0,0 +1,26 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Configuration of a record or specific fields in the record ++ * ++ * @example ++ * { ++ * readonly: true, ++ * fields: { ++ * "foo": { ++ * readonly: true ++ * }, ++ * "bar": { ++ * readonly: true ++ * } ++ * } ++ * } ++ */ ++export interface RecordConfig { ++ readonly?: boolean; ++ fields?: Record; ++} +diff --git a/src/api/resources/records/types/RecordData.ts b/src/api/resources/records/types/RecordData.ts +index 6860670..d629418 100644 +--- a/src/api/resources/records/types/RecordData.ts ++++ b/src/api/resources/records/types/RecordData.ts +@@ -12,3 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -17,3 +17,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -22,3 +22,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordDataWithLinks.ts b/src/api/resources/records/types/RecordDataWithLinks.ts +index 0005027..103aed2 100644 +--- a/src/api/resources/records/types/RecordDataWithLinks.ts ++++ b/src/api/resources/records/types/RecordDataWithLinks.ts +@@ -12,3 +12,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -18,3 +18,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -24,3 +24,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -34,3 +34,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "Suzie", + * messages: [], +@@ -40,3 +40,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Q", + * messages: [], +@@ -46,3 +46,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "suzie.q@example.com", + * messages: [], +diff --git a/src/api/resources/records/types/RecordWithLinks.ts b/src/api/resources/records/types/RecordWithLinks.ts +index 267987a..331d718 100644 +--- a/src/api/resources/records/types/RecordWithLinks.ts ++++ b/src/api/resources/records/types/RecordWithLinks.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -33,3 +33,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * } +@@ -41,3 +42,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "Suzie", + * messages: [], +@@ -47,3 +48,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Q", + * messages: [], +@@ -53,3 +54,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "suzie.q@example.com", + * messages: [], +@@ -60,3 +61,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * } +@@ -69,2 +71,3 @@ export interface RecordWithLinks { + metadata?: Record; ++ config?: Flatfile.RecordConfig; + } +diff --git a/src/api/resources/records/types/Record_.ts b/src/api/resources/records/types/Record_.ts +index bd6b1e4..bce1efc 100644 +--- a/src/api/resources/records/types/Record_.ts ++++ b/src/api/resources/records/types/Record_.ts +@@ -16,3 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -32,3 +32,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * } +diff --git a/src/api/resources/records/types/Records.ts b/src/api/resources/records/types/Records.ts +index ac4adbd..7cba74e 100644 +--- a/src/api/resources/records/types/Records.ts ++++ b/src/api/resources/records/types/Records.ts +@@ -16,3 +16,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -21,3 +21,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -32,3 +32,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * }] +diff --git a/src/api/resources/records/types/RecordsResponse.ts b/src/api/resources/records/types/RecordsResponse.ts +index c1add59..662ddd1 100644 +--- a/src/api/resources/records/types/RecordsResponse.ts ++++ b/src/api/resources/records/types/RecordsResponse.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -33,3 +33,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * }], +diff --git a/src/api/resources/records/types/RecordsResponseData.ts b/src/api/resources/records/types/RecordsResponseData.ts +index ef6f3a8..b66a477 100644 +--- a/src/api/resources/records/types/RecordsResponseData.ts ++++ b/src/api/resources/records/types/RecordsResponseData.ts +@@ -13,3 +13,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -19,3 +19,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -25,3 +25,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -32,3 +32,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * }], +diff --git a/src/api/resources/records/types/RecordsWithLinks.ts b/src/api/resources/records/types/RecordsWithLinks.ts +index 1bb3f2a..04b9980 100644 +--- a/src/api/resources/records/types/RecordsWithLinks.ts ++++ b/src/api/resources/records/types/RecordsWithLinks.ts +@@ -14,3 +14,3 @@ import * as Flatfile from "../../.."; + * "firstName": { +- * value: undefined, ++ * value: "John", + * messages: [], +@@ -20,3 +20,3 @@ import * as Flatfile from "../../.."; + * "lastName": { +- * value: undefined, ++ * value: "Smith", + * messages: [], +@@ -26,3 +26,3 @@ import * as Flatfile from "../../.."; + * "email": { +- * value: undefined, ++ * value: "john.smith@example.com", + * messages: [], +@@ -33,3 +33,4 @@ import * as Flatfile from "../../.."; + * valid: true, +- * metadata: {} ++ * metadata: {}, ++ * config: {} + * }] +diff --git a/src/api/resources/records/types/index.ts b/src/api/resources/records/types/index.ts +index 4b1f724..c231dae 100644 +--- a/src/api/resources/records/types/index.ts ++++ b/src/api/resources/records/types/index.ts +@@ -18,2 +18,4 @@ export * from "./DiffRecordsResponse"; + export * from "./DiffRecords"; ++export * from "./RecordConfig"; ++export * from "./CellConfig"; + export * from "./DiffRecord"; +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 4e59f0e..7ec652d 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/roles/types/ActorIdUnion.ts b/src/api/resources/roles/types/ActorIdUnion.ts +index f7bd7d0..eaf39a2 100644 +--- a/src/api/resources/roles/types/ActorIdUnion.ts ++++ b/src/api/resources/roles/types/ActorIdUnion.ts +@@ -6,2 +6,12 @@ import * as Flatfile from "../../.."; + ++/** ++ * @example ++ * "us_usr_YOUR_ID" ++ * ++ * @example ++ * "us_ag_YOUR_ID" ++ * ++ * @example ++ * "us_g_YOUR_ID" ++ */ + export type ActorIdUnion = Flatfile.UserId | Flatfile.AgentId | Flatfile.GuestId; +diff --git a/src/api/resources/roles/types/ActorRoleResponse.ts b/src/api/resources/roles/types/ActorRoleResponse.ts +index fbc4e6d..28616fb 100644 +--- a/src/api/resources/roles/types/ActorRoleResponse.ts ++++ b/src/api/resources/roles/types/ActorRoleResponse.ts +@@ -6,2 +6,23 @@ import * as Flatfile from "../../.."; + ++/** ++ * @example ++ * { ++ * id: "us_acr_YOUR_ID", ++ * roleId: "us_rol_YOUR_ID", ++ * actorId: "us_usr_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * } ++ * ++ * @example ++ * { ++ * id: "us_acr_YOUR_ID", ++ * roleId: "us_rol_YOUR_ID", ++ * actorId: "us_ag_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * } ++ */ + export interface ActorRoleResponse { +diff --git a/src/api/resources/roles/types/AssignActorRoleRequest.ts b/src/api/resources/roles/types/AssignActorRoleRequest.ts +index 9ee92d0..2083319 100644 +--- a/src/api/resources/roles/types/AssignActorRoleRequest.ts ++++ b/src/api/resources/roles/types/AssignActorRoleRequest.ts +@@ -6,2 +6,15 @@ import * as Flatfile from "../../.."; + ++/** ++ * @example ++ * { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID" ++ * } ++ * ++ * @example ++ * { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID" ++ * } ++ */ + export interface AssignActorRoleRequest { +diff --git a/src/api/resources/roles/types/ResourceIdUnion.ts b/src/api/resources/roles/types/ResourceIdUnion.ts +index cc12385..627781c 100644 +--- a/src/api/resources/roles/types/ResourceIdUnion.ts ++++ b/src/api/resources/roles/types/ResourceIdUnion.ts +@@ -6,2 +6,12 @@ import * as Flatfile from "../../.."; + ++/** ++ * @example ++ * "us_acc_YOUR_ID" ++ * ++ * @example ++ * "us_env_YOUR_ID" ++ * ++ * @example ++ * "us_sp_YOUR_ID" ++ */ + export type ResourceIdUnion = Flatfile.AccountId | Flatfile.EnvironmentId | Flatfile.SpaceId; +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index acc5066..675c124 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index a4c60c0..9f3157e 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -649,3 +649,3 @@ export class Sheets { + * @example +- * await flatfile.sheets.getSheetCommits("us_sh_YOUR_ID", {}) ++ * await flatfile.sheets.getSheetCommits("us_sh_YOUR_ID") + */ +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -891,2 +891,3 @@ export class Sheets { + * await flatfile.sheets.getCellValues("us_sh_YOUR_ID", { ++ * distinct: true, + * fieldKey: "firstName", +@@ -899,3 +900,3 @@ export class Sheets { + sheetId: Flatfile.SheetId, +- request: Flatfile.GetFieldValuesRequest = {}, ++ request: Flatfile.GetFieldValuesRequest, + requestOptions?: Sheets.RequestOptions +@@ -943,6 +944,3 @@ export class Sheets { + +- if (distinct != null) { +- _queryParams["distinct"] = distinct.toString(); +- } +- ++ _queryParams["distinct"] = distinct.toString(); + if (includeCounts != null) { +@@ -966,3 +964,3 @@ export class Sheets { +diff --git a/src/api/resources/sheets/client/requests/GetFieldValuesRequest.ts b/src/api/resources/sheets/client/requests/GetFieldValuesRequest.ts +index 737bca2..eb32c9d 100644 +--- a/src/api/resources/sheets/client/requests/GetFieldValuesRequest.ts ++++ b/src/api/resources/sheets/client/requests/GetFieldValuesRequest.ts +@@ -9,2 +9,3 @@ import * as Flatfile from "../../../.."; + * { ++ * distinct: true, + * fieldKey: "firstName", +@@ -32,3 +33,6 @@ export interface GetFieldValuesRequest { + pageNumber?: Flatfile.PageNumber; +- distinct?: Flatfile.Distinct; ++ /** ++ * Must be set to true ++ */ ++ distinct: Flatfile.Distinct; + includeCounts?: Flatfile.IncludeCounts; +diff --git a/src/api/resources/sheets/types/ListSheetsResponse.ts b/src/api/resources/sheets/types/ListSheetsResponse.ts +index 47b24a6..bda1bce 100644 +--- a/src/api/resources/sheets/types/ListSheetsResponse.ts ++++ b/src/api/resources/sheets/types/ListSheetsResponse.ts +@@ -32,7 +32,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/sheets/types/Sheet.ts b/src/api/resources/sheets/types/Sheet.ts +index 2b97e88..be4c96a 100644 +--- a/src/api/resources/sheets/types/Sheet.ts ++++ b/src/api/resources/sheets/types/Sheet.ts +@@ -33,7 +33,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +@@ -54,4 +49,2 @@ export interface Sheet { + config: Flatfile.SheetConfig; +- /** The amount of records in the Sheet. */ +- countRecords?: Flatfile.RecordCounts; + /** The scoped namespace of the Sheet. */ +@@ -66,2 +59,4 @@ export interface Sheet { + lockedAt?: Date; ++ /** The precomputed counts of records in the Sheet (may not exist). */ ++ recordCounts?: Flatfile.RecordCounts; + } +diff --git a/src/api/resources/sheets/types/SheetConfigUpdate.ts b/src/api/resources/sheets/types/SheetConfigUpdate.ts +index 34a1f0a..3d52577 100644 +--- a/src/api/resources/sheets/types/SheetConfigUpdate.ts ++++ b/src/api/resources/sheets/types/SheetConfigUpdate.ts +@@ -14,3 +14,3 @@ export interface SheetConfigUpdate { + description?: string; +- /** A unique identifier for your Sheet. */ ++ /** A unique identifier for your Sheet. **Required when updating a Workbook.** */ + slug?: string; +diff --git a/src/api/resources/sheets/types/SheetResponse.ts b/src/api/resources/sheets/types/SheetResponse.ts +index 037d224..32cb1d3 100644 +--- a/src/api/resources/sheets/types/SheetResponse.ts ++++ b/src/api/resources/sheets/types/SheetResponse.ts +@@ -32,7 +32,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/sheets/types/SheetUpdate.ts b/src/api/resources/sheets/types/SheetUpdate.ts +index d89b3a0..89a1d96 100644 +--- a/src/api/resources/sheets/types/SheetUpdate.ts ++++ b/src/api/resources/sheets/types/SheetUpdate.ts +@@ -16,4 +16,2 @@ export interface SheetUpdate { + config?: Flatfile.SheetConfig; +- /** The amount of records in the Sheet. */ +- countRecords?: Flatfile.RecordCounts; + /** The scoped namespace of the Sheet. */ +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index ea90206..0b43579 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 8b16f57..f7cd116 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -160,3 +160,3 @@ export class Spaces { + * await flatfile.spaces.create({ +- * name: "My First Worbook", ++ * name: "My First Workbook", + * displayOrder: 1, +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +@@ -707,3 +707,3 @@ export class Spaces { +diff --git a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +index 8157112..12d7903 100644 +--- a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -21,2 +21,4 @@ export interface InternalSpaceConfigBase { + archivedAt?: Date; ++ /** The ID of the App that space is associated with */ ++ appId?: Flatfile.AppId; + } +diff --git a/src/api/resources/spaces/types/Space.ts b/src/api/resources/spaces/types/Space.ts +index 23bfb60..ae76874 100644 +--- a/src/api/resources/spaces/types/Space.ts ++++ b/src/api/resources/spaces/types/Space.ts +@@ -62,3 +62,3 @@ export interface Space extends Flatfile.InternalSpaceConfigBase { + expiredAt?: Date; +- /** Date that the last activity in the space occurred. This could include any create or update activity in the space like adding a record to a sheet, uploading a new file, or updating the configuration of a workbook. This date is only tracked to the precision of a day. */ ++ /** This date marks the most recent activity within the space, tracking actions to the second. Activities include creating or updating records in a sheet, uploading files, or modifying a workbook's configuration. */ + lastActivityAt?: Date; +diff --git a/src/api/resources/spaces/types/SpaceConfig.ts b/src/api/resources/spaces/types/SpaceConfig.ts +index f6a04ef..67f6c9a 100644 +--- a/src/api/resources/spaces/types/SpaceConfig.ts ++++ b/src/api/resources/spaces/types/SpaceConfig.ts +@@ -11,3 +11,3 @@ import * as Flatfile from "../../.."; + * { +- * name: "My First Worbook", ++ * name: "My First Workbook", + * displayOrder: 1, +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index fac4b6e..79d6221 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -97,2 +97,76 @@ export class Users { + ++ /** ++ * Creates and invites a new user to your account. ++ * ++ * @example ++ * await flatfile.users.createAndInvite({ ++ * email: "john.smith@example.com", ++ * name: "John Smith", ++ * actorRoles: [{ ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID" ++ * }, { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID" ++ * }] ++ * }) ++ */ ++ public async createAndInvite( ++ request: Flatfile.UserCreateAndInviteRequest, ++ requestOptions?: Users.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "users/invite" ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.UserCreateAndInviteRequest.jsonOrThrow(request, { ++ unrecognizedObjectKeys: "strip", ++ }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.UserWithRolesResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -116,3 +190,3 @@ export class Users { +@@ -175,3 +249,3 @@ export class Users { +@@ -215,2 +289,57 @@ export class Users { + ++ /** ++ * Deletes a user ++ */ ++ public async delete(userId: Flatfile.UserId, requestOptions?: Users.RequestOptions): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `users/${await serializers.UserId.jsonOrThrow(userId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ + /** +@@ -236,3 +365,3 @@ export class Users { +@@ -331,3 +460,3 @@ export class Users { +@@ -429,3 +558,3 @@ export class Users { +@@ -532,3 +661,3 @@ export class Users { +@@ -595,3 +724,3 @@ export class Users { +@@ -654,3 +783,3 @@ export class Users { +diff --git a/src/api/resources/users/client/requests/UpdateUserRequest.ts b/src/api/resources/users/client/requests/UpdateUserRequest.ts +index d815834..30e54f2 100644 +--- a/src/api/resources/users/client/requests/UpdateUserRequest.ts ++++ b/src/api/resources/users/client/requests/UpdateUserRequest.ts +@@ -6,2 +6,3 @@ export interface UpdateUserRequest { + name?: string; ++ dashboard?: number; + } +diff --git a/src/api/resources/users/types/ListUsersResponse.ts b/src/api/resources/users/types/ListUsersResponse.ts +index 51ec119..d90952b 100644 +--- a/src/api/resources/users/types/ListUsersResponse.ts ++++ b/src/api/resources/users/types/ListUsersResponse.ts +@@ -18,3 +18,5 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2 + * }] +diff --git a/src/api/resources/users/types/User.ts b/src/api/resources/users/types/User.ts +index 996f272..469b501 100644 +--- a/src/api/resources/users/types/User.ts ++++ b/src/api/resources/users/types/User.ts +@@ -19,3 +19,5 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2 + * } +@@ -29,2 +31,4 @@ export interface User extends Flatfile.UserConfig { + updatedAt: Date; ++ lastSeenAt?: Date; ++ dashboard?: number; + } +diff --git a/src/api/resources/users/types/UserCreateAndInviteRequest.ts b/src/api/resources/users/types/UserCreateAndInviteRequest.ts +new file mode 100644 +index 0000000..9603ae1 +--- /dev/null ++++ b/src/api/resources/users/types/UserCreateAndInviteRequest.ts +@@ -0,0 +1,27 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Properties used to create a new user ++ * ++ * @example ++ * { ++ * email: "john.smith@example.com", ++ * name: "John Smith", ++ * actorRoles: [{ ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID" ++ * }, { ++ * roleId: "us_rol_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID" ++ * }] ++ * } ++ */ ++export interface UserCreateAndInviteRequest { ++ email: string; ++ name: string; ++ actorRoles: Flatfile.AssignActorRoleRequest[]; ++} +diff --git a/src/api/resources/users/types/UserResponse.ts b/src/api/resources/users/types/UserResponse.ts +index 7045914..3ccc810 100644 +--- a/src/api/resources/users/types/UserResponse.ts ++++ b/src/api/resources/users/types/UserResponse.ts +@@ -18,3 +18,5 @@ import * as Flatfile from "../../.."; + * createdAt: new Date("2023-10-30T16:59:45.735Z"), +- * updatedAt: new Date("2023-10-30T16:59:45.735Z") ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2 + * } +diff --git a/src/api/resources/users/types/UserWithRoles.ts b/src/api/resources/users/types/UserWithRoles.ts +new file mode 100644 +index 0000000..a9118a0 +--- /dev/null ++++ b/src/api/resources/users/types/UserWithRoles.ts +@@ -0,0 +1,40 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * id: "us_usr_YOUR_ID", ++ * email: "john.smith@example.com", ++ * name: "john.smith", ++ * accountId: "us_acc_YOUR_ID", ++ * idp: "FRONTEGG", ++ * idpRef: "ab1cf38e-e617-4547-b37d-376a7ac9e554", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2, ++ * actorRoles: [{ ++ * id: "us_acr_YOUR_ID", ++ * roleId: "us_rol_YOUR_ID", ++ * actorId: "us_usr_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * }, { ++ * id: "us_acr_YOUR_ID", ++ * roleId: "us_rol_YOUR_ID", ++ * actorId: "us_ag_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * }] ++ * } ++ */ ++export interface UserWithRoles extends Flatfile.User { ++ actorRoles: Flatfile.ActorRoleResponse[]; ++} +diff --git a/src/api/resources/users/types/UserWithRolesResponse.ts b/src/api/resources/users/types/UserWithRolesResponse.ts +new file mode 100644 +index 0000000..b780d45 +--- /dev/null ++++ b/src/api/resources/users/types/UserWithRolesResponse.ts +@@ -0,0 +1,42 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: { ++ * id: "us_usr_YOUR_ID", ++ * email: "john.smith@example.com", ++ * name: "john.smith", ++ * accountId: "us_acc_YOUR_ID", ++ * idp: "FRONTEGG", ++ * idpRef: "ab1cf38e-e617-4547-b37d-376a7ac9e554", ++ * metadata: {}, ++ * createdAt: new Date("2023-10-30T16:59:45.735Z"), ++ * updatedAt: new Date("2023-10-30T16:59:45.735Z"), ++ * lastSeenAt: new Date("2023-10-30T16:59:45.735Z"), ++ * dashboard: 2, ++ * actorRoles: [{ ++ * id: "us_acr_YOUR_ID", ++ * roleId: "us_rol_YOUR_ID", ++ * actorId: "us_usr_YOUR_ID", ++ * resourceId: "us_acc_YOUR_ID", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * }, { ++ * id: "us_acr_YOUR_ID", ++ * roleId: "us_rol_YOUR_ID", ++ * actorId: "us_ag_YOUR_ID", ++ * resourceId: "us_env_YOUR_ID", ++ * createdAt: new Date("2021-01-01T00:00:00.000Z"), ++ * updatedAt: new Date("2021-01-01T00:00:00.000Z") ++ * }] ++ * } ++ * } ++ */ ++export interface UserWithRolesResponse { ++ data: Flatfile.UserWithRoles; ++} +diff --git a/src/api/resources/users/types/index.ts b/src/api/resources/users/types/index.ts +index 7bd7d69..8e29781 100644 +--- a/src/api/resources/users/types/index.ts ++++ b/src/api/resources/users/types/index.ts +@@ -2,4 +2,7 @@ export * from "./ListUsersResponse"; + export * from "./UserResponse"; ++export * from "./UserWithRolesResponse"; ++export * from "./UserWithRoles"; + export * from "./User"; + export * from "./UserConfig"; ++export * from "./UserCreateAndInviteRequest"; + export * from "./ListApiTokensResponse"; +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 7ba85ef..2b50d28 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 7bb18e0..19d269e 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -33,4 +33,3 @@ export class Workbooks { + * await flatfile.workbooks.list({ +- * spaceId: "us_sp_YOUR_ID", +- * includeCounts: true ++ * spaceId: "us_sp_YOUR_ID" + * }) +@@ -62,3 +61,3 @@ export class Workbooks { +@@ -169,3 +168,3 @@ export class Workbooks { +@@ -246,3 +245,3 @@ export class Workbooks { +@@ -332,3 +331,3 @@ export class Workbooks { +@@ -429,3 +428,3 @@ export class Workbooks { +@@ -497,3 +496,3 @@ export class Workbooks { + * @example +- * await flatfile.workbooks.getWorkbookCommits("us_wb_YOUR_ID", {}) ++ * await flatfile.workbooks.getWorkbookCommits("us_wb_YOUR_ID") + */ +@@ -521,3 +520,3 @@ export class Workbooks { +@@ -582,3 +581,3 @@ export class Workbooks { +diff --git a/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts b/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts +index 331f646..6e28163 100644 +--- a/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts ++++ b/src/api/resources/workbooks/client/requests/ListWorkbooksRequest.ts +@@ -9,4 +9,3 @@ import * as Flatfile from "../../../.."; + * { +- * spaceId: "us_sp_YOUR_ID", +- * includeCounts: true ++ * spaceId: "us_sp_YOUR_ID" + * } +@@ -19,3 +18,3 @@ export interface ListWorkbooksRequest { + /** +- * Include counts for the workbook ++ * Include counts for the workbook. **DEPRECATED** Counts will return 0s. Use GET /sheets/:sheetId/counts + */ +diff --git a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +index 34f96aa..99698d2 100644 +--- a/src/api/resources/workbooks/types/ListWorkbooksResponse.ts ++++ b/src/api/resources/workbooks/types/ListWorkbooksResponse.ts +@@ -37,7 +37,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/workbooks/types/Workbook.ts b/src/api/resources/workbooks/types/Workbook.ts +index dea2d71..d1c132e 100644 +--- a/src/api/resources/workbooks/types/Workbook.ts ++++ b/src/api/resources/workbooks/types/Workbook.ts +@@ -38,7 +38,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/api/resources/workbooks/types/WorkbookResponse.ts b/src/api/resources/workbooks/types/WorkbookResponse.ts +index 11e3afa..c329988 100644 +--- a/src/api/resources/workbooks/types/WorkbookResponse.ts ++++ b/src/api/resources/workbooks/types/WorkbookResponse.ts +@@ -37,7 +37,2 @@ import * as Flatfile from "../../.."; + * }, +- * countRecords: { +- * valid: 1000, +- * error: 0, +- * total: 1000 +- * }, + * lockedBy: "Example0", +diff --git a/src/core/fetcher/Fetcher.ts b/src/core/fetcher/Fetcher.ts +index 5348ac9..c08e0fd 100644 +--- a/src/core/fetcher/Fetcher.ts ++++ b/src/core/fetcher/Fetcher.ts +@@ -82,3 +82,9 @@ async function fetcherImpl(args: Fetcher.Args): Promise): Promise { +- return !(await isSchemaOptional(schema)); ++function isSchemaRequired(schema: Schema): boolean { ++ return !isSchemaOptional(schema); + } + +-async function isSchemaOptional(schema: Schema): Promise { +- switch (await schema.getType()) { ++function isSchemaOptional(schema: Schema): boolean { ++ switch (schema.getType()) { + case SchemaType.ANY: +diff --git a/src/serialization/resources/accounts/index.ts b/src/serialization/resources/accounts/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/accounts/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/accounts/types/Account.ts b/src/serialization/resources/accounts/types/Account.ts +new file mode 100644 +index 0000000..60ddb3c +--- /dev/null ++++ b/src/serialization/resources/accounts/types/Account.ts +@@ -0,0 +1,44 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { AppId } from "../../commons/types/AppId"; ++ ++export const Account: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ id: AccountId, ++ name: core.serialization.string(), ++ subdomain: core.serialization.string().optional(), ++ vanityDomainDashboard: core.serialization.string().optional(), ++ vanityDomainSpaces: core.serialization.string().optional(), ++ embeddedDomainWhitelist: core.serialization.list(core.serialization.string()).optional(), ++ customFromEmail: core.serialization.string().optional(), ++ stripeCustomerId: core.serialization.string().optional(), ++ metadata: core.serialization.record(core.serialization.string(), core.serialization.any()), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++ defaultAppId: AppId.optional(), ++ dashboard: core.serialization.number().optional(), ++ }); ++ ++export declare namespace Account { ++ interface Raw { ++ id: AccountId.Raw; ++ name: string; ++ subdomain?: string | null; ++ vanityDomainDashboard?: string | null; ++ vanityDomainSpaces?: string | null; ++ embeddedDomainWhitelist?: string[] | null; ++ customFromEmail?: string | null; ++ stripeCustomerId?: string | null; ++ metadata: Record; ++ createdAt: string; ++ updatedAt: string; ++ defaultAppId?: AppId.Raw | null; ++ dashboard?: number | null; ++ } ++} +diff --git a/src/serialization/resources/accounts/types/AccountPatch.ts b/src/serialization/resources/accounts/types/AccountPatch.ts +new file mode 100644 +index 0000000..303acb8 +--- /dev/null ++++ b/src/serialization/resources/accounts/types/AccountPatch.ts +@@ -0,0 +1,19 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { AppId } from "../../commons/types/AppId"; ++ ++export const AccountPatch: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ defaultAppId: AppId, ++ }); ++ ++export declare namespace AccountPatch { ++ interface Raw { ++ defaultAppId: AppId.Raw; ++ } ++} +diff --git a/src/serialization/resources/accounts/types/AccountResponse.ts b/src/serialization/resources/accounts/types/AccountResponse.ts +new file mode 100644 +index 0000000..b47563f +--- /dev/null ++++ b/src/serialization/resources/accounts/types/AccountResponse.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { Account } from "./Account"; ++ ++export const AccountResponse: core.serialization.ObjectSchema< ++ serializers.AccountResponse.Raw, ++ Flatfile.AccountResponse ++> = core.serialization.object({ ++ data: Account, ++}); ++ ++export declare namespace AccountResponse { ++ interface Raw { ++ data: Account.Raw; ++ } ++} +diff --git a/src/serialization/resources/accounts/types/index.ts b/src/serialization/resources/accounts/types/index.ts +new file mode 100644 +index 0000000..0f9ca2c +--- /dev/null ++++ b/src/serialization/resources/accounts/types/index.ts +@@ -0,0 +1,3 @@ ++export * from "./AccountResponse"; ++export * from "./Account"; ++export * from "./AccountPatch"; +diff --git a/src/serialization/resources/agents/types/Agent.ts b/src/serialization/resources/agents/types/Agent.ts +index a9ef4c1..bbd9bfd 100644 +--- a/src/serialization/resources/agents/types/Agent.ts ++++ b/src/serialization/resources/agents/types/Agent.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AgentId } from "../../commons/types/AgentId"; ++import { AgentConfig } from "./AgentConfig"; + +@@ -10,9 +12,9 @@ export const Agent: core.serialization.ObjectSchema (await import("../../..")).AgentId), ++ id: AgentId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).AgentConfig)); ++ .extend(AgentConfig); + + export declare namespace Agent { +- interface Raw extends serializers.AgentConfig.Raw { +- id: serializers.AgentId.Raw; ++ interface Raw extends AgentConfig.Raw { ++ id: AgentId.Raw; + } +diff --git a/src/serialization/resources/agents/types/AgentConfig.ts b/src/serialization/resources/agents/types/AgentConfig.ts +index 38dce95..a9a2ded 100644 +--- a/src/serialization/resources/agents/types/AgentConfig.ts ++++ b/src/serialization/resources/agents/types/AgentConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventTopic } from "../../events/types/EventTopic"; ++import { Compiler } from "./Compiler"; + +@@ -10,6 +12,4 @@ export const AgentConfig: core.serialization.ObjectSchema (await import("../../..")).EventTopic)) +- .optional(), +- compiler: core.serialization.lazy(async () => (await import("../../..")).Compiler).optional(), ++ topics: core.serialization.list(EventTopic).optional(), ++ compiler: Compiler.optional(), + source: core.serialization.string().optional(), +@@ -20,4 +20,4 @@ export declare namespace AgentConfig { + interface Raw { +- topics?: serializers.EventTopic.Raw[] | null; +- compiler?: serializers.Compiler.Raw | null; ++ topics?: EventTopic.Raw[] | null; ++ compiler?: Compiler.Raw | null; + source?: string | null; +diff --git a/src/serialization/resources/agents/types/AgentLog.ts b/src/serialization/resources/agents/types/AgentLog.ts +index 7ca1b75..227c9b6 100644 +--- a/src/serialization/resources/agents/types/AgentLog.ts ++++ b/src/serialization/resources/agents/types/AgentLog.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventId } from "../../commons/types/EventId"; + +@@ -10,3 +11,3 @@ export const AgentLog: core.serialization.ObjectSchema (await import("../../..")).EventId), ++ eventId: EventId, + success: core.serialization.boolean(), +@@ -19,3 +20,3 @@ export declare namespace AgentLog { + interface Raw { +- eventId: serializers.EventId.Raw; ++ eventId: EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/AgentResponse.ts b/src/serialization/resources/agents/types/AgentResponse.ts +index f301e76..30204e5 100644 +--- a/src/serialization/resources/agents/types/AgentResponse.ts ++++ b/src/serialization/resources/agents/types/AgentResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Agent } from "./Agent"; + +@@ -10,3 +11,3 @@ export const AgentResponse: core.serialization.ObjectSchema (await import("../../..")).Agent).optional(), ++ data: Agent.optional(), + }); +@@ -15,3 +16,3 @@ export declare namespace AgentResponse { + interface Raw { +- data?: serializers.Agent.Raw | null; ++ data?: Agent.Raw | null; + } +diff --git a/src/serialization/resources/agents/types/DetailedAgentLog.ts b/src/serialization/resources/agents/types/DetailedAgentLog.ts +index 5e6e060..483f5aa 100644 +--- a/src/serialization/resources/agents/types/DetailedAgentLog.ts ++++ b/src/serialization/resources/agents/types/DetailedAgentLog.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventId } from "../../commons/types/EventId"; + +@@ -12,3 +13,3 @@ export const DetailedAgentLog: core.serialization.ObjectSchema< + > = core.serialization.object({ +- eventId: core.serialization.lazy(async () => (await import("../../..")).EventId), ++ eventId: EventId, + success: core.serialization.boolean(), +@@ -24,3 +25,3 @@ export declare namespace DetailedAgentLog { + interface Raw { +- eventId: serializers.EventId.Raw; ++ eventId: EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/Execution.ts b/src/serialization/resources/agents/types/Execution.ts +index ce7585f..af424f7 100644 +--- a/src/serialization/resources/agents/types/Execution.ts ++++ b/src/serialization/resources/agents/types/Execution.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventId } from "../../commons/types/EventId"; + +@@ -10,3 +11,3 @@ export const Execution: core.serialization.ObjectSchema (await import("../../..")).EventId), ++ eventId: EventId, + success: core.serialization.boolean(), +@@ -20,3 +21,3 @@ export declare namespace Execution { + interface Raw { +- eventId: serializers.EventId.Raw; ++ eventId: EventId.Raw; + success: boolean; +diff --git a/src/serialization/resources/agents/types/GetAgentLogsResponse.ts b/src/serialization/resources/agents/types/GetAgentLogsResponse.ts +index 7db2427..6d5d01b 100644 +--- a/src/serialization/resources/agents/types/GetAgentLogsResponse.ts ++++ b/src/serialization/resources/agents/types/GetAgentLogsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { AgentLog } from "./AgentLog"; + +@@ -12,6 +14,4 @@ export const GetAgentLogsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).AgentLog)) +- .optional(), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(AgentLog).optional(), + }); +@@ -20,4 +20,4 @@ export declare namespace GetAgentLogsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data?: serializers.AgentLog.Raw[] | null; ++ pagination?: Pagination.Raw | null; ++ data?: AgentLog.Raw[] | null; + } +diff --git a/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts b/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts +index 6286bee..19d38b2 100644 +--- a/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts ++++ b/src/serialization/resources/agents/types/GetDetailedAgentLogResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DetailedAgentLog } from "./DetailedAgentLog"; + +@@ -12,3 +13,3 @@ export const GetDetailedAgentLogResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).DetailedAgentLog), ++ data: DetailedAgentLog, + }); +@@ -17,3 +18,3 @@ export declare namespace GetDetailedAgentLogResponse { + interface Raw { +- data: serializers.DetailedAgentLog.Raw; ++ data: DetailedAgentLog.Raw; + } +diff --git a/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts b/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts +index ca07416..69924a0 100644 +--- a/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts ++++ b/src/serialization/resources/agents/types/GetDetailedAgentLogsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { DetailedAgentLog } from "./DetailedAgentLog"; + +@@ -12,6 +14,4 @@ export const GetDetailedAgentLogsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DetailedAgentLog) +- ), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(DetailedAgentLog), + }); +@@ -20,4 +20,4 @@ export declare namespace GetDetailedAgentLogsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.DetailedAgentLog.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: DetailedAgentLog.Raw[]; + } +diff --git a/src/serialization/resources/agents/types/GetExecutionsResponse.ts b/src/serialization/resources/agents/types/GetExecutionsResponse.ts +index e51eccd..76e69a4 100644 +--- a/src/serialization/resources/agents/types/GetExecutionsResponse.ts ++++ b/src/serialization/resources/agents/types/GetExecutionsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Execution } from "./Execution"; + +@@ -12,4 +14,4 @@ export const GetExecutionsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Execution)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Execution), + }); +@@ -18,4 +20,4 @@ export declare namespace GetExecutionsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.Execution.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: Execution.Raw[]; + } +diff --git a/src/serialization/resources/agents/types/ListAgentsResponse.ts b/src/serialization/resources/agents/types/ListAgentsResponse.ts +index de02f67..911337b 100644 +--- a/src/serialization/resources/agents/types/ListAgentsResponse.ts ++++ b/src/serialization/resources/agents/types/ListAgentsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Agent } from "./Agent"; + +@@ -12,5 +13,3 @@ export const ListAgentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Agent)) +- .optional(), ++ data: core.serialization.list(Agent).optional(), + }); +@@ -19,3 +18,3 @@ export declare namespace ListAgentsResponse { + interface Raw { +- data?: serializers.Agent.Raw[] | null; ++ data?: Agent.Raw[] | null; + } +diff --git a/src/serialization/resources/apps/types/App.ts b/src/serialization/resources/apps/types/App.ts +index baa0e8b..42dff50 100644 +--- a/src/serialization/resources/apps/types/App.ts ++++ b/src/serialization/resources/apps/types/App.ts +@@ -7,8 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AppId } from "../../commons/types/AppId"; ++import { AppType } from "./AppType"; + + export const App: core.serialization.ObjectSchema = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).AppId), ++ id: AppId, + name: core.serialization.string(), + namespace: core.serialization.string(), +- type: core.serialization.lazy(async () => (await import("../../..")).AppType), ++ type: AppType, + entity: core.serialization.string(), +@@ -17,2 +19,3 @@ export const App: core.serialization.ObjectSchema (await import("../../..")).AppType), ++ type: AppType, + entity: core.serialization.string().optional(), +@@ -17,2 +18,3 @@ export const AppCreate: core.serialization.ObjectSchema (await import("../../..")).App), ++ data: App, + }); +@@ -15,3 +16,3 @@ export declare namespace AppResponse { + interface Raw { +- data: serializers.App.Raw; ++ data: App.Raw; + } +diff --git a/src/serialization/resources/apps/types/AppsResponse.ts b/src/serialization/resources/apps/types/AppsResponse.ts +index fb686c0..e778d68 100644 +--- a/src/serialization/resources/apps/types/AppsResponse.ts ++++ b/src/serialization/resources/apps/types/AppsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { App } from "./App"; + +@@ -10,3 +11,3 @@ export const AppsResponse: core.serialization.ObjectSchema (await import("../../..")).App)), ++ data: core.serialization.list(App), + }); +@@ -15,3 +16,3 @@ export declare namespace AppsResponse { + interface Raw { +- data: serializers.App.Raw[]; ++ data: App.Raw[]; + } +diff --git a/src/serialization/resources/assistant/index.ts b/src/serialization/resources/assistant/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/assistant/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/assistant/types/Prompt.ts b/src/serialization/resources/assistant/types/Prompt.ts +new file mode 100644 +index 0000000..970bff8 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/Prompt.ts +@@ -0,0 +1,32 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { PromptId } from "../../commons/types/PromptId"; ++import { AccountId } from "../../commons/types/AccountId"; ++ ++export const Prompt: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ id: PromptId, ++ createdById: core.serialization.string(), ++ accountId: AccountId, ++ prompt: core.serialization.string(), ++ createdAt: core.serialization.date(), ++ updatedAt: core.serialization.date(), ++ deletedAt: core.serialization.date().optional(), ++ }); ++ ++export declare namespace Prompt { ++ interface Raw { ++ id: PromptId.Raw; ++ createdById: string; ++ accountId: AccountId.Raw; ++ prompt: string; ++ createdAt: string; ++ updatedAt: string; ++ deletedAt?: string | null; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptCreate.ts b/src/serialization/resources/assistant/types/PromptCreate.ts +new file mode 100644 +index 0000000..38950d0 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptCreate.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const PromptCreate: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ prompt: core.serialization.string(), ++ }); ++ ++export declare namespace PromptCreate { ++ interface Raw { ++ prompt: string; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptPatch.ts b/src/serialization/resources/assistant/types/PromptPatch.ts +new file mode 100644 +index 0000000..2b1ede6 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptPatch.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const PromptPatch: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ prompt: core.serialization.string().optional(), ++ }); ++ ++export declare namespace PromptPatch { ++ interface Raw { ++ prompt?: string | null; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptResponse.ts b/src/serialization/resources/assistant/types/PromptResponse.ts +new file mode 100644 +index 0000000..ae87c84 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptResponse.ts +@@ -0,0 +1,19 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { Prompt } from "./Prompt"; ++ ++export const PromptResponse: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ data: Prompt, ++ }); ++ ++export declare namespace PromptResponse { ++ interface Raw { ++ data: Prompt.Raw; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/PromptsResponse.ts b/src/serialization/resources/assistant/types/PromptsResponse.ts +new file mode 100644 +index 0000000..9821a6b +--- /dev/null ++++ b/src/serialization/resources/assistant/types/PromptsResponse.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Prompt } from "./Prompt"; ++ ++export const PromptsResponse: core.serialization.ObjectSchema< ++ serializers.PromptsResponse.Raw, ++ Flatfile.PromptsResponse ++> = core.serialization.object({ ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Prompt), ++}); ++ ++export declare namespace PromptsResponse { ++ interface Raw { ++ pagination?: Pagination.Raw | null; ++ data: Prompt.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/assistant/types/index.ts b/src/serialization/resources/assistant/types/index.ts +new file mode 100644 +index 0000000..d296f59 +--- /dev/null ++++ b/src/serialization/resources/assistant/types/index.ts +@@ -0,0 +1,5 @@ ++export * from "./PromptsResponse"; ++export * from "./PromptResponse"; ++export * from "./PromptPatch"; ++export * from "./PromptCreate"; ++export * from "./Prompt"; +diff --git a/src/serialization/resources/auth/types/ApiKey.ts b/src/serialization/resources/auth/types/ApiKey.ts +index 939ad8d..a048302 100644 +--- a/src/serialization/resources/auth/types/ApiKey.ts ++++ b/src/serialization/resources/auth/types/ApiKey.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ApiKeyId } from "./ApiKeyId"; ++import { RawKey } from "./RawKey"; ++import { ApiKeyType } from "./ApiKeyType"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { ApiKeyOperation } from "./ApiKeyOperation"; + +@@ -10,10 +16,8 @@ export const ApiKey: core.serialization.ObjectSchema (await import("../../..")).ApiKeyId), +- rawKey: core.serialization.lazy(async () => (await import("../../..")).RawKey).optional(), +- type: core.serialization.lazy(async () => (await import("../../..")).ApiKeyType), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId).optional(), +- operations: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).ApiKeyOperation) +- ), ++ id: ApiKeyId, ++ rawKey: RawKey.optional(), ++ type: ApiKeyType, ++ environmentId: EnvironmentId.optional(), ++ accountId: AccountId.optional(), ++ operations: core.serialization.list(ApiKeyOperation), + createdAt: core.serialization.date(), +@@ -26,8 +30,8 @@ export declare namespace ApiKey { + interface Raw { +- id: serializers.ApiKeyId.Raw; +- rawKey?: serializers.RawKey.Raw | null; +- type: serializers.ApiKeyType.Raw; +- environmentId?: serializers.EnvironmentId.Raw | null; +- accountId?: serializers.AccountId.Raw | null; +- operations: serializers.ApiKeyOperation.Raw[]; ++ id: ApiKeyId.Raw; ++ rawKey?: RawKey.Raw | null; ++ type: ApiKeyType.Raw; ++ environmentId?: EnvironmentId.Raw | null; ++ accountId?: AccountId.Raw | null; ++ operations: ApiKeyOperation.Raw[]; + createdAt: string; +diff --git a/src/serialization/resources/auth/types/ApiKeysResponse.ts b/src/serialization/resources/auth/types/ApiKeysResponse.ts +index af686f9..0d016a7 100644 +--- a/src/serialization/resources/auth/types/ApiKeysResponse.ts ++++ b/src/serialization/resources/auth/types/ApiKeysResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ApiKey } from "./ApiKey"; + +@@ -12,3 +13,3 @@ export const ApiKeysResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).ApiKey)), ++ data: core.serialization.list(ApiKey), + }); +@@ -17,3 +18,3 @@ export declare namespace ApiKeysResponse { + interface Raw { +- data: serializers.ApiKey.Raw[]; ++ data: ApiKey.Raw[]; + } +diff --git a/src/serialization/resources/auth/types/Credentials.ts b/src/serialization/resources/auth/types/Credentials.ts +index 57ba6ba..9ab3ccc 100644 +--- a/src/serialization/resources/auth/types/Credentials.ts ++++ b/src/serialization/resources/auth/types/Credentials.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserCredentials } from "./UserCredentials"; ++import { ApiCredentials } from "./ApiCredentials"; + +@@ -11,4 +13,4 @@ export const Credentials: core.serialization.Schema (await import("../../..")).UserCredentials), +- apiCredentials: core.serialization.lazyObject(async () => (await import("../../..")).ApiCredentials), ++ userCredentials: UserCredentials, ++ apiCredentials: ApiCredentials, + }) +@@ -22,3 +24,3 @@ export declare namespace Credentials { + +- interface UserCredentials extends serializers.UserCredentials.Raw { ++ interface UserCredentials extends UserCredentials.Raw { + type: "userCredentials"; +@@ -26,3 +28,3 @@ export declare namespace Credentials { + +- interface ApiCredentials extends serializers.ApiCredentials.Raw { ++ interface ApiCredentials extends ApiCredentials.Raw { + type: "apiCredentials"; +diff --git a/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts b/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts +index 42ec382..bec2ed6 100644 +--- a/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellValueWithCountsDeprecated.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCounts } from "../../records/types/RecordCounts"; ++import { CellValue } from "../../records/types/CellValue"; + +@@ -13,9 +15,9 @@ export const CellValueWithCountsDeprecated: core.serialization.ObjectSchema< + .object({ +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ counts: RecordCounts.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace CellValueWithCountsDeprecated { +- interface Raw extends serializers.CellValue.Raw { +- counts?: serializers.RecordCounts.Raw | null; ++ interface Raw extends CellValue.Raw { ++ counts?: RecordCounts.Raw | null; + } +diff --git a/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts b/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts +index 312d5d8..63db296 100644 +--- a/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellsResponseDataDeprecated.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueWithCountsDeprecated } from "./CellValueWithCountsDeprecated"; + +@@ -11,11 +12,6 @@ export const CellsResponseDataDeprecated: core.serialization.Schema< + Flatfile.CellsResponseDataDeprecated +-> = core.serialization.record( +- core.serialization.string(), +- core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithCountsDeprecated) +- ) +-); ++> = core.serialization.record(core.serialization.string(), core.serialization.list(CellValueWithCountsDeprecated)); + + export declare namespace CellsResponseDataDeprecated { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/cells/types/CellsResponseDeprecated.ts b/src/serialization/resources/cells/types/CellsResponseDeprecated.ts +index d283ff9..4994dae 100644 +--- a/src/serialization/resources/cells/types/CellsResponseDeprecated.ts ++++ b/src/serialization/resources/cells/types/CellsResponseDeprecated.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellsResponseDataDeprecated } from "./CellsResponseDataDeprecated"; ++import { CellValueWithCountsDeprecated } from "./CellValueWithCountsDeprecated"; + +@@ -12,3 +14,3 @@ export const CellsResponseDeprecated: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazy(async () => (await import("../../..")).CellsResponseDataDeprecated), ++ data: CellsResponseDataDeprecated, + }); +@@ -17,3 +19,3 @@ export declare namespace CellsResponseDeprecated { + interface Raw { +- data: serializers.CellsResponseDataDeprecated.Raw; ++ data: CellsResponseDataDeprecated.Raw; + } +diff --git a/src/serialization/resources/commits/types/Commit.ts b/src/serialization/resources/commits/types/Commit.ts +index 6cdc734..7315cfd 100644 +--- a/src/serialization/resources/commits/types/Commit.ts ++++ b/src/serialization/resources/commits/types/Commit.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SheetId } from "../../commons/types/SheetId"; + +@@ -10,4 +12,4 @@ export const Commit: core.serialization.ObjectSchema (await import("../../..")).CommitId), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ id: CommitId, ++ sheetId: SheetId, + createdBy: core.serialization.string(), +@@ -20,4 +22,4 @@ export declare namespace Commit { + interface Raw { +- id: serializers.CommitId.Raw; +- sheetId: serializers.SheetId.Raw; ++ id: CommitId.Raw; ++ sheetId: SheetId.Raw; + createdBy: string; +diff --git a/src/serialization/resources/commits/types/CommitResponse.ts b/src/serialization/resources/commits/types/CommitResponse.ts +index 9569e4b..8aba11a 100644 +--- a/src/serialization/resources/commits/types/CommitResponse.ts ++++ b/src/serialization/resources/commits/types/CommitResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Commit } from "./Commit"; + +@@ -10,3 +11,3 @@ export const CommitResponse: core.serialization.ObjectSchema (await import("../../..")).Commit), ++ data: Commit, + }); +@@ -15,3 +16,3 @@ export declare namespace CommitResponse { + interface Raw { +- data: serializers.Commit.Raw; ++ data: Commit.Raw; + } +diff --git a/src/serialization/resources/commits/types/ListCommitsResponse.ts b/src/serialization/resources/commits/types/ListCommitsResponse.ts +index b4dda47..49c5bdd 100644 +--- a/src/serialization/resources/commits/types/ListCommitsResponse.ts ++++ b/src/serialization/resources/commits/types/ListCommitsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Commit } from "./Commit"; + +@@ -12,3 +13,3 @@ export const ListCommitsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Commit)), ++ data: core.serialization.list(Commit), + }); +@@ -17,3 +18,3 @@ export declare namespace ListCommitsResponse { + interface Raw { +- data: serializers.Commit.Raw[]; ++ data: Commit.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/AccessToken.ts b/src/serialization/resources/commons/types/AccessToken.ts +index 36af432..96f8240 100644 +--- a/src/serialization/resources/commons/types/AccessToken.ts ++++ b/src/serialization/resources/commons/types/AccessToken.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "./UserId"; ++import { AccountId } from "./AccountId"; + +@@ -14,4 +16,4 @@ export const AccessToken: core.serialization.ObjectSchema (await import("../../..")).UserId).optional(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId).optional(), ++ userId: UserId.optional(), ++ accountId: AccountId.optional(), + }); +@@ -24,4 +26,4 @@ export declare namespace AccessToken { + email?: string | null; +- userId?: serializers.UserId.Raw | null; +- accountId?: serializers.AccountId.Raw | null; ++ userId?: UserId.Raw | null; ++ accountId?: AccountId.Raw | null; + } +diff --git a/src/serialization/resources/commons/types/Action.ts b/src/serialization/resources/commons/types/Action.ts +index 3f40e77..600618b 100644 +--- a/src/serialization/resources/commons/types/Action.ts ++++ b/src/serialization/resources/commons/types/Action.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActionMode } from "./ActionMode"; ++import { ActionMessage } from "./ActionMessage"; ++import { ActionSchedule } from "./ActionSchedule"; ++import { InputForm } from "./InputForm"; ++import { ActionConstraint } from "./ActionConstraint"; + +@@ -12,11 +17,9 @@ export const Action: core.serialization.ObjectSchema (await import("../../..")).ActionMode).optional(), ++ mode: ActionMode.optional(), + label: core.serialization.string(), + tooltip: core.serialization.string().optional(), +- messages: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ActionMessage)) +- .optional(), ++ messages: core.serialization.list(ActionMessage).optional(), + type: core.serialization.string().optional(), + description: core.serialization.string().optional(), +- schedule: core.serialization.lazy(async () => (await import("../../..")).ActionSchedule).optional(), ++ schedule: ActionSchedule.optional(), + primary: core.serialization.boolean().optional(), +@@ -26,6 +29,4 @@ export const Action: core.serialization.ObjectSchema (await import("../../..")).InputForm).optional(), +- constraints: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ActionConstraint)) +- .optional(), ++ inputForm: InputForm.optional(), ++ constraints: core.serialization.list(ActionConstraint).optional(), + }); +@@ -36,9 +37,9 @@ export declare namespace Action { + operation?: string | null; +- mode?: serializers.ActionMode.Raw | null; ++ mode?: ActionMode.Raw | null; + label: string; + tooltip?: string | null; +- messages?: serializers.ActionMessage.Raw[] | null; ++ messages?: ActionMessage.Raw[] | null; + type?: string | null; + description?: string | null; +- schedule?: serializers.ActionSchedule.Raw | null; ++ schedule?: ActionSchedule.Raw | null; + primary?: boolean | null; +@@ -48,4 +49,4 @@ export declare namespace Action { + requireSelection?: boolean | null; +- inputForm?: serializers.InputForm.Raw | null; +- constraints?: serializers.ActionConstraint.Raw[] | null; ++ inputForm?: InputForm.Raw | null; ++ constraints?: ActionConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/commons/types/ActionConstraint.ts b/src/serialization/resources/commons/types/ActionConstraint.ts +index f2988c8..c0a7f53 100644 +--- a/src/serialization/resources/commons/types/ActionConstraint.ts ++++ b/src/serialization/resources/commons/types/ActionConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActionConstraintType } from "./ActionConstraintType"; + +@@ -12,3 +13,3 @@ export const ActionConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).ActionConstraintType), ++ type: ActionConstraintType, + }); +@@ -17,3 +18,3 @@ export declare namespace ActionConstraint { + interface Raw { +- type: serializers.ActionConstraintType.Raw; ++ type: ActionConstraintType.Raw; + } +diff --git a/src/serialization/resources/commons/types/ActionMessage.ts b/src/serialization/resources/commons/types/ActionMessage.ts +index 6fe3da8..82e1c9f 100644 +--- a/src/serialization/resources/commons/types/ActionMessage.ts ++++ b/src/serialization/resources/commons/types/ActionMessage.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActionMessageType } from "./ActionMessageType"; + +@@ -10,3 +11,3 @@ export const ActionMessage: core.serialization.ObjectSchema (await import("../../..")).ActionMessageType), ++ type: ActionMessageType, + content: core.serialization.string(), +@@ -16,3 +17,3 @@ export declare namespace ActionMessage { + interface Raw { +- type: serializers.ActionMessageType.Raw; ++ type: ActionMessageType.Raw; + content: string; +diff --git a/src/serialization/resources/commons/types/Errors.ts b/src/serialization/resources/commons/types/Errors.ts +index f154ca3..bb5171b 100644 +--- a/src/serialization/resources/commons/types/Errors.ts ++++ b/src/serialization/resources/commons/types/Errors.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Error_ } from "./Error_"; + +@@ -10,3 +11,3 @@ export const Errors: core.serialization.ObjectSchema (await import("../../..")).Error_)), ++ errors: core.serialization.list(Error_), + }); +@@ -15,3 +16,3 @@ export declare namespace Errors { + interface Raw { +- errors: serializers.Error_.Raw[]; ++ errors: Error_.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/InputConfig.ts b/src/serialization/resources/commons/types/InputConfig.ts +index a461b10..4ee3b51 100644 +--- a/src/serialization/resources/commons/types/InputConfig.ts ++++ b/src/serialization/resources/commons/types/InputConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputEnumPropertyOption } from "./InputEnumPropertyOption"; + +@@ -10,5 +11,3 @@ export const InputConfig: core.serialization.ObjectSchema (await import("../../..")).InputEnumPropertyOption) +- ), ++ options: core.serialization.list(InputEnumPropertyOption), + }); +@@ -17,3 +16,3 @@ export declare namespace InputConfig { + interface Raw { +- options: serializers.InputEnumPropertyOption.Raw[]; ++ options: InputEnumPropertyOption.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/InputConstraint.ts b/src/serialization/resources/commons/types/InputConstraint.ts +index df71a16..84f29cb 100644 +--- a/src/serialization/resources/commons/types/InputConstraint.ts ++++ b/src/serialization/resources/commons/types/InputConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputConstraintType } from "./InputConstraintType"; + +@@ -12,3 +13,3 @@ export const InputConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).InputConstraintType), ++ type: InputConstraintType, + }); +@@ -17,3 +18,3 @@ export declare namespace InputConstraint { + interface Raw { +- type: serializers.InputConstraintType.Raw; ++ type: InputConstraintType.Raw; + } +diff --git a/src/serialization/resources/commons/types/InputField.ts b/src/serialization/resources/commons/types/InputField.ts +index 94b29bc..66952dd 100644 +--- a/src/serialization/resources/commons/types/InputField.ts ++++ b/src/serialization/resources/commons/types/InputField.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputConfig } from "./InputConfig"; ++import { InputConstraint } from "./InputConstraint"; + +@@ -15,6 +17,4 @@ export const InputField: core.serialization.ObjectSchema (await import("../../..")).InputConfig).optional(), +- constraints: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).InputConstraint)) +- .optional(), ++ config: InputConfig.optional(), ++ constraints: core.serialization.list(InputConstraint).optional(), + }); +@@ -28,4 +28,4 @@ export declare namespace InputField { + defaultValue?: any | null; +- config?: serializers.InputConfig.Raw | null; +- constraints?: serializers.InputConstraint.Raw[] | null; ++ config?: InputConfig.Raw | null; ++ constraints?: InputConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/commons/types/InputForm.ts b/src/serialization/resources/commons/types/InputForm.ts +index 42bf905..c4c469e 100644 +--- a/src/serialization/resources/commons/types/InputForm.ts ++++ b/src/serialization/resources/commons/types/InputForm.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { InputFormType } from "./InputFormType"; ++import { InputField } from "./InputField"; + +@@ -10,6 +12,4 @@ export const InputForm: core.serialization.ObjectSchema (await import("../../..")).InputFormType), +- fields: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).InputField) +- ), ++ type: InputFormType, ++ fields: core.serialization.list(InputField), + }); +@@ -18,4 +18,4 @@ export declare namespace InputForm { + interface Raw { +- type: serializers.InputFormType.Raw; +- fields: serializers.InputField.Raw[]; ++ type: InputFormType.Raw; ++ fields: InputField.Raw[]; + } +diff --git a/src/serialization/resources/commons/types/PromptId.ts b/src/serialization/resources/commons/types/PromptId.ts +new file mode 100644 +index 0000000..695182d +--- /dev/null ++++ b/src/serialization/resources/commons/types/PromptId.ts +@@ -0,0 +1,14 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const PromptId: core.serialization.Schema = ++ core.serialization.string(); ++ ++export declare namespace PromptId { ++ type Raw = string; ++} +diff --git a/src/serialization/resources/commons/types/Success.ts b/src/serialization/resources/commons/types/Success.ts +index 29191d6..6cedfa1 100644 +--- a/src/serialization/resources/commons/types/Success.ts ++++ b/src/serialization/resources/commons/types/Success.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SuccessData } from "./SuccessData"; + +@@ -10,3 +11,3 @@ export const Success: core.serialization.ObjectSchema (await import("../../..")).SuccessData).optional(), ++ data: SuccessData.optional(), + }); +@@ -15,3 +16,3 @@ export declare namespace Success { + interface Raw { +- data?: serializers.SuccessData.Raw | null; ++ data?: SuccessData.Raw | null; + } +diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts +index d92ca92..baa887d 100644 +--- a/src/serialization/resources/commons/types/index.ts ++++ b/src/serialization/resources/commons/types/index.ts +@@ -24,2 +24,3 @@ export * from "./ProgramId"; + export * from "./FamilyId"; ++export * from "./PromptId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts +index ff62d1b..c15c377 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicy.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicyId } from "../../commons/types/DataRetentionPolicyId"; ++import { DataRetentionPolicyConfig } from "./DataRetentionPolicyConfig"; + +@@ -13,3 +15,3 @@ export const DataRetentionPolicy: core.serialization.ObjectSchema< + .object({ +- id: core.serialization.lazy(async () => (await import("../../..")).DataRetentionPolicyId), ++ id: DataRetentionPolicyId, + createdAt: core.serialization.date(), +@@ -17,7 +19,7 @@ export const DataRetentionPolicy: core.serialization.ObjectSchema< + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicyConfig)); ++ .extend(DataRetentionPolicyConfig); + + export declare namespace DataRetentionPolicy { +- interface Raw extends serializers.DataRetentionPolicyConfig.Raw { +- id: serializers.DataRetentionPolicyId.Raw; ++ interface Raw extends DataRetentionPolicyConfig.Raw { ++ id: DataRetentionPolicyId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts +index edbe89c..235e2f5 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicyEnum } from "./DataRetentionPolicyEnum"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; + +@@ -12,5 +14,5 @@ export const DataRetentionPolicyConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).DataRetentionPolicyEnum), ++ type: DataRetentionPolicyEnum, + period: core.serialization.number(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), ++ environmentId: EnvironmentId, + }); +@@ -19,5 +21,5 @@ export declare namespace DataRetentionPolicyConfig { + interface Raw { +- type: serializers.DataRetentionPolicyEnum.Raw; ++ type: DataRetentionPolicyEnum.Raw; + period: number; +- environmentId: serializers.EnvironmentId.Raw; ++ environmentId: EnvironmentId.Raw; + } +diff --git a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts +index da57362..fd78041 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/DataRetentionPolicyResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicy } from "./DataRetentionPolicy"; + +@@ -12,3 +13,3 @@ export const DataRetentionPolicyResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicy), ++ data: DataRetentionPolicy, + }); +@@ -17,3 +18,3 @@ export declare namespace DataRetentionPolicyResponse { + interface Raw { +- data: serializers.DataRetentionPolicy.Raw; ++ data: DataRetentionPolicy.Raw; + } +diff --git a/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts b/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts +index bb82dd4..811fb98 100644 +--- a/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts ++++ b/src/serialization/resources/dataRetentionPolicies/types/ListDataRetentionPoliciesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DataRetentionPolicy } from "./DataRetentionPolicy"; + +@@ -12,5 +13,3 @@ export const ListDataRetentionPoliciesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DataRetentionPolicy) +- ), ++ data: core.serialization.list(DataRetentionPolicy), + }); +@@ -19,3 +18,3 @@ export declare namespace ListDataRetentionPoliciesResponse { + interface Raw { +- data: serializers.DataRetentionPolicy.Raw[]; ++ data: DataRetentionPolicy.Raw[]; + } +diff --git a/src/serialization/resources/documents/types/Document.ts b/src/serialization/resources/documents/types/Document.ts +index 51bc0cc..6be73b3 100644 +--- a/src/serialization/resources/documents/types/Document.ts ++++ b/src/serialization/resources/documents/types/Document.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DocumentId } from "../../commons/types/DocumentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { DocumentConfig } from "./DocumentConfig"; + +@@ -10,5 +14,5 @@ export const Document: core.serialization.ObjectSchema (await import("../../..")).DocumentId), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ id: DocumentId, ++ spaceId: SpaceId.optional(), ++ environmentId: EnvironmentId.optional(), + createdAt: core.serialization.date(), +@@ -16,9 +20,9 @@ export const Document: core.serialization.ObjectSchema (await import("../../..")).DocumentConfig)); ++ .extend(DocumentConfig); + + export declare namespace Document { +- interface Raw extends serializers.DocumentConfig.Raw { +- id: serializers.DocumentId.Raw; +- spaceId?: serializers.SpaceId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ interface Raw extends DocumentConfig.Raw { ++ id: DocumentId.Raw; ++ spaceId?: SpaceId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + createdAt: string; +diff --git a/src/serialization/resources/documents/types/DocumentConfig.ts b/src/serialization/resources/documents/types/DocumentConfig.ts +index 64cc667..a7b7c1d 100644 +--- a/src/serialization/resources/documents/types/DocumentConfig.ts ++++ b/src/serialization/resources/documents/types/DocumentConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Action } from "../../commons/types/Action"; + +@@ -13,5 +14,3 @@ export const DocumentConfig: core.serialization.ObjectSchema (await import("../../..")).Action)) +- .optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -23,3 +22,3 @@ export declare namespace DocumentConfig { + treatments?: string[] | null; +- actions?: serializers.Action.Raw[] | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/documents/types/DocumentResponse.ts b/src/serialization/resources/documents/types/DocumentResponse.ts +index 980edeb..d7c207a 100644 +--- a/src/serialization/resources/documents/types/DocumentResponse.ts ++++ b/src/serialization/resources/documents/types/DocumentResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Document } from "./Document"; + +@@ -12,3 +13,3 @@ export const DocumentResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Document), ++ data: Document, + }); +@@ -17,3 +18,3 @@ export declare namespace DocumentResponse { + interface Raw { +- data: serializers.Document.Raw; ++ data: Document.Raw; + } +diff --git a/src/serialization/resources/documents/types/ListDocumentsResponse.ts b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +index 17eb9ad..6de1ff3 100644 +--- a/src/serialization/resources/documents/types/ListDocumentsResponse.ts ++++ b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DocumentResponse } from "./DocumentResponse"; + +@@ -12,5 +13,3 @@ export const ListDocumentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DocumentResponse) +- ), ++ data: core.serialization.list(DocumentResponse), + }); +@@ -19,3 +18,3 @@ export declare namespace ListDocumentsResponse { + interface Raw { +- data: serializers.DocumentResponse.Raw[]; ++ data: DocumentResponse.Raw[]; + } +diff --git a/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +index 1e5a59a..0a05b48 100644 +--- a/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts ++++ b/src/serialization/resources/entitlements/types/ListEntitlementsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Entitlement } from "./Entitlement"; + +@@ -12,3 +13,3 @@ export const ListEntitlementsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Entitlement)), ++ data: core.serialization.list(Entitlement), + }); +@@ -17,3 +18,3 @@ export declare namespace ListEntitlementsResponse { + interface Raw { +- data: serializers.Entitlement.Raw[]; ++ data: Entitlement.Raw[]; + } +diff --git a/src/serialization/resources/environments/types/Environment.ts b/src/serialization/resources/environments/types/Environment.ts +index 33280ca..80fb792 100644 +--- a/src/serialization/resources/environments/types/Environment.ts ++++ b/src/serialization/resources/environments/types/Environment.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -10,9 +13,7 @@ export const Environment: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), ++ id: EnvironmentId, ++ accountId: AccountId, + name: core.serialization.string(), + isProd: core.serialization.boolean(), +- guestAuthentication: core.serialization.list( +- core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum) +- ), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum), + features: core.serialization.record(core.serialization.string(), core.serialization.any()), +@@ -26,7 +27,7 @@ export declare namespace Environment { + interface Raw { +- id: serializers.EnvironmentId.Raw; +- accountId: serializers.AccountId.Raw; ++ id: EnvironmentId.Raw; ++ accountId: AccountId.Raw; + name: string; + isProd: boolean; +- guestAuthentication: serializers.GuestAuthenticationEnum.Raw[]; ++ guestAuthentication: GuestAuthenticationEnum.Raw[]; + features: Record; +diff --git a/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts b/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts +index 553c141..96bd5d6 100644 +--- a/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts ++++ b/src/serialization/resources/environments/types/EnvironmentConfigCreate.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -14,5 +15,3 @@ export const EnvironmentConfigCreate: core.serialization.ObjectSchema< + isProd: core.serialization.boolean(), +- guestAuthentication: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum)) +- .optional(), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -27,3 +26,3 @@ export declare namespace EnvironmentConfigCreate { + isProd: boolean; +- guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts b/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts +index 4f7008c..2db4261 100644 +--- a/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts ++++ b/src/serialization/resources/environments/types/EnvironmentConfigUpdate.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestAuthenticationEnum } from "./GuestAuthenticationEnum"; + +@@ -14,5 +15,3 @@ export const EnvironmentConfigUpdate: core.serialization.ObjectSchema< + isProd: core.serialization.boolean().optional(), +- guestAuthentication: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum)) +- .optional(), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -27,3 +26,3 @@ export declare namespace EnvironmentConfigUpdate { + isProd?: boolean | null; +- guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; + metadata?: Record | null; +diff --git a/src/serialization/resources/environments/types/EnvironmentResponse.ts b/src/serialization/resources/environments/types/EnvironmentResponse.ts +index 8dc0231..d18af70 100644 +--- a/src/serialization/resources/environments/types/EnvironmentResponse.ts ++++ b/src/serialization/resources/environments/types/EnvironmentResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Environment } from "./Environment"; + +@@ -12,3 +13,3 @@ export const EnvironmentResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Environment), ++ data: Environment, + }); +@@ -17,3 +18,3 @@ export declare namespace EnvironmentResponse { + interface Raw { +- data: serializers.Environment.Raw; ++ data: Environment.Raw; + } +diff --git a/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts b/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts +index e68721d..93f4727 100644 +--- a/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts ++++ b/src/serialization/resources/environments/types/ListEnvironmentsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Environment } from "./Environment"; ++import { Pagination } from "../../commons/types/Pagination"; + +@@ -12,4 +14,4 @@ export const ListEnvironmentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Environment)), +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), ++ data: core.serialization.list(Environment), ++ pagination: Pagination.optional(), + }); +@@ -18,4 +20,4 @@ export declare namespace ListEnvironmentsResponse { + interface Raw { +- data: serializers.Environment.Raw[]; +- pagination?: serializers.Pagination.Raw | null; ++ data: Environment.Raw[]; ++ pagination?: Pagination.Raw | null; + } +diff --git a/src/serialization/resources/events/types/BaseEvent.ts b/src/serialization/resources/events/types/BaseEvent.ts +index 9c6c8d5..5091bcd 100644 +--- a/src/serialization/resources/events/types/BaseEvent.ts ++++ b/src/serialization/resources/events/types/BaseEvent.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Domain } from "./Domain"; ++import { Context } from "./Context"; ++import { EventAttributes } from "./EventAttributes"; ++import { Origin } from "./Origin"; + +@@ -10,5 +14,5 @@ export const BaseEvent: core.serialization.ObjectSchema (await import("../../..")).Domain), +- context: core.serialization.lazyObject(async () => (await import("../../..")).Context), +- attributes: core.serialization.lazyObject(async () => (await import("../../..")).EventAttributes).optional(), ++ domain: Domain, ++ context: Context, ++ attributes: EventAttributes.optional(), + callbackUrl: core.serialization.string().optional(), +@@ -16,3 +20,3 @@ export const BaseEvent: core.serialization.ObjectSchema (await import("../../..")).Origin).optional(), ++ origin: Origin.optional(), + namespaces: core.serialization.list(core.serialization.string()).optional(), +@@ -22,5 +26,5 @@ export declare namespace BaseEvent { + interface Raw { +- domain: serializers.Domain.Raw; +- context: serializers.Context.Raw; +- attributes?: serializers.EventAttributes.Raw | null; ++ domain: Domain.Raw; ++ context: Context.Raw; ++ attributes?: EventAttributes.Raw | null; + callbackUrl?: string | null; +@@ -28,3 +32,3 @@ export declare namespace BaseEvent { + target?: string | null; +- origin?: serializers.Origin.Raw | null; ++ origin?: Origin.Raw | null; + namespaces?: string[] | null; +diff --git a/src/serialization/resources/events/types/Context.ts b/src/serialization/resources/events/types/Context.ts +index be5bd5b..f9c3faf 100644 +--- a/src/serialization/resources/events/types/Context.ts ++++ b/src/serialization/resources/events/types/Context.ts +@@ -7,2 +7,19 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventContextSlugs } from "./EventContextSlugs"; ++import { ActionName } from "./ActionName"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { SheetSlug } from "./SheetSlug"; ++import { SnapshotId } from "../../commons/types/SnapshotId"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { JobId } from "../../commons/types/JobId"; ++import { ProgramId } from "../../commons/types/ProgramId"; ++import { FileId } from "../../commons/types/FileId"; ++import { DocumentId } from "../../commons/types/DocumentId"; ++import { EventId } from "../../commons/types/EventId"; ++import { AppId } from "../../commons/types/AppId"; + +@@ -11,19 +28,20 @@ export const Context: core.serialization.ObjectSchema (await import("../../..")).EventContextSlugs).optional(), +- actionName: core.serialization.lazy(async () => (await import("../../..")).ActionName).optional(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId).optional(), +- sheetSlug: core.serialization.lazy(async () => (await import("../../..")).SheetSlug).optional(), +- snapshotId: core.serialization.lazy(async () => (await import("../../..")).SnapshotId).optional(), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), +- jobId: core.serialization.lazy(async () => (await import("../../..")).JobId).optional(), +- programId: core.serialization.lazy(async () => (await import("../../..")).ProgramId).optional(), +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId).optional(), +- documentId: core.serialization.lazy(async () => (await import("../../..")).DocumentId).optional(), +- precedingEventId: core.serialization.lazy(async () => (await import("../../..")).EventId).optional(), ++ slugs: EventContextSlugs.optional(), ++ actionName: ActionName.optional(), ++ accountId: AccountId, ++ environmentId: EnvironmentId, ++ spaceId: SpaceId.optional(), ++ workbookId: WorkbookId.optional(), ++ sheetId: SheetId.optional(), ++ sheetSlug: SheetSlug.optional(), ++ snapshotId: SnapshotId.optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), ++ jobId: JobId.optional(), ++ programId: ProgramId.optional(), ++ fileId: FileId.optional(), ++ documentId: DocumentId.optional(), ++ precedingEventId: EventId.optional(), + actorId: core.serialization.string().optional(), ++ appId: AppId.optional(), + }); +@@ -33,19 +51,20 @@ export declare namespace Context { + namespaces?: string[] | null; +- slugs?: serializers.EventContextSlugs.Raw | null; +- actionName?: serializers.ActionName.Raw | null; +- accountId: serializers.AccountId.Raw; +- environmentId: serializers.EnvironmentId.Raw; +- spaceId?: serializers.SpaceId.Raw | null; +- workbookId?: serializers.WorkbookId.Raw | null; +- sheetId?: serializers.SheetId.Raw | null; +- sheetSlug?: serializers.SheetSlug.Raw | null; +- snapshotId?: serializers.SnapshotId.Raw | null; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; +- jobId?: serializers.JobId.Raw | null; +- programId?: serializers.ProgramId.Raw | null; +- fileId?: serializers.FileId.Raw | null; +- documentId?: serializers.DocumentId.Raw | null; +- precedingEventId?: serializers.EventId.Raw | null; ++ slugs?: EventContextSlugs.Raw | null; ++ actionName?: ActionName.Raw | null; ++ accountId: AccountId.Raw; ++ environmentId: EnvironmentId.Raw; ++ spaceId?: SpaceId.Raw | null; ++ workbookId?: WorkbookId.Raw | null; ++ sheetId?: SheetId.Raw | null; ++ sheetSlug?: SheetSlug.Raw | null; ++ snapshotId?: SnapshotId.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; ++ jobId?: JobId.Raw | null; ++ programId?: ProgramId.Raw | null; ++ fileId?: FileId.Raw | null; ++ documentId?: DocumentId.Raw | null; ++ precedingEventId?: EventId.Raw | null; + actorId?: string | null; ++ appId?: AppId.Raw | null; + } +diff --git a/src/serialization/resources/events/types/CreateEventConfig.ts b/src/serialization/resources/events/types/CreateEventConfig.ts +index 92e0ac2..0fb6cee 100644 +--- a/src/serialization/resources/events/types/CreateEventConfig.ts ++++ b/src/serialization/resources/events/types/CreateEventConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventTopic } from "./EventTopic"; ++import { BaseEvent } from "./BaseEvent"; + +@@ -13,3 +15,3 @@ export const CreateEventConfig: core.serialization.ObjectSchema< + .object({ +- topic: core.serialization.lazy(async () => (await import("../../..")).EventTopic), ++ topic: EventTopic, + payload: core.serialization.record(core.serialization.string(), core.serialization.any()), +@@ -17,7 +19,7 @@ export const CreateEventConfig: core.serialization.ObjectSchema< + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseEvent)); ++ .extend(BaseEvent); + + export declare namespace CreateEventConfig { +- interface Raw extends serializers.BaseEvent.Raw { +- topic: serializers.EventTopic.Raw; ++ interface Raw extends BaseEvent.Raw { ++ topic: EventTopic.Raw; + payload: Record; +diff --git a/src/serialization/resources/events/types/Event.ts b/src/serialization/resources/events/types/Event.ts +index 4ece7a3..b8a6225 100644 +--- a/src/serialization/resources/events/types/Event.ts ++++ b/src/serialization/resources/events/types/Event.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GenericEvent } from "./GenericEvent"; + +@@ -10,48 +11,49 @@ export const Event: core.serialization.Schema (await import("../../..")).GenericEvent), +- "agent:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "agent:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:archived": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:guestAdded": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "space:guestRemoved": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "document:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "document:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "document:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "workbook:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "sheet:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "sheet:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "sheet:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "snapshot:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "records:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "records:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "records:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "file:expired": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:failed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:ready": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:scheduled": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:outcome-acknowledged": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "job:parts-completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "program:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "program:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "commit:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "commit:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "commit:completed": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "secret:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "secret:updated": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "secret:deleted": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), +- "layer:created": core.serialization.lazyObject(async () => (await import("../../..")).GenericEvent), ++ "agent:created": GenericEvent, ++ "agent:updated": GenericEvent, ++ "agent:deleted": GenericEvent, ++ "space:created": GenericEvent, ++ "space:updated": GenericEvent, ++ "space:deleted": GenericEvent, ++ "space:archived": GenericEvent, ++ "space:expired": GenericEvent, ++ "space:guestAdded": GenericEvent, ++ "space:guestRemoved": GenericEvent, ++ "document:created": GenericEvent, ++ "document:updated": GenericEvent, ++ "document:deleted": GenericEvent, ++ "workbook:created": GenericEvent, ++ "workbook:updated": GenericEvent, ++ "workbook:deleted": GenericEvent, ++ "workbook:expired": GenericEvent, ++ "sheet:created": GenericEvent, ++ "sheet:updated": GenericEvent, ++ "sheet:deleted": GenericEvent, ++ "sheet:counts-updated": GenericEvent, ++ "snapshot:created": GenericEvent, ++ "records:created": GenericEvent, ++ "records:updated": GenericEvent, ++ "records:deleted": GenericEvent, ++ "file:created": GenericEvent, ++ "file:updated": GenericEvent, ++ "file:deleted": GenericEvent, ++ "file:expired": GenericEvent, ++ "job:created": GenericEvent, ++ "job:updated": GenericEvent, ++ "job:deleted": GenericEvent, ++ "job:failed": GenericEvent, ++ "job:completed": GenericEvent, ++ "job:ready": GenericEvent, ++ "job:scheduled": GenericEvent, ++ "job:outcome-acknowledged": GenericEvent, ++ "job:parts-completed": GenericEvent, ++ "program:created": GenericEvent, ++ "program:updated": GenericEvent, ++ "commit:created": GenericEvent, ++ "commit:updated": GenericEvent, ++ "commit:completed": GenericEvent, ++ "secret:created": GenericEvent, ++ "secret:updated": GenericEvent, ++ "secret:deleted": GenericEvent, ++ "layer:created": GenericEvent, + }) +@@ -84,2 +86,3 @@ export declare namespace Event { + | Event.SheetDeleted ++ | Event.SheetCountsUpdated + | Event.SnapshotCreated +@@ -111,3 +114,3 @@ export declare namespace Event { + +- interface AgentCreated extends serializers.GenericEvent.Raw { ++ interface AgentCreated extends GenericEvent.Raw { + topic: "agent:created"; +@@ -115,3 +118,3 @@ export declare namespace Event { + +- interface AgentUpdated extends serializers.GenericEvent.Raw { ++ interface AgentUpdated extends GenericEvent.Raw { + topic: "agent:updated"; +@@ -119,3 +122,3 @@ export declare namespace Event { + +- interface AgentDeleted extends serializers.GenericEvent.Raw { ++ interface AgentDeleted extends GenericEvent.Raw { + topic: "agent:deleted"; +@@ -123,3 +126,3 @@ export declare namespace Event { + +- interface SpaceCreated extends serializers.GenericEvent.Raw { ++ interface SpaceCreated extends GenericEvent.Raw { + topic: "space:created"; +@@ -127,3 +130,3 @@ export declare namespace Event { + +- interface SpaceUpdated extends serializers.GenericEvent.Raw { ++ interface SpaceUpdated extends GenericEvent.Raw { + topic: "space:updated"; +@@ -131,3 +134,3 @@ export declare namespace Event { + +- interface SpaceDeleted extends serializers.GenericEvent.Raw { ++ interface SpaceDeleted extends GenericEvent.Raw { + topic: "space:deleted"; +@@ -135,3 +138,3 @@ export declare namespace Event { + +- interface SpaceArchived extends serializers.GenericEvent.Raw { ++ interface SpaceArchived extends GenericEvent.Raw { + topic: "space:archived"; +@@ -139,3 +142,3 @@ export declare namespace Event { + +- interface SpaceExpired extends serializers.GenericEvent.Raw { ++ interface SpaceExpired extends GenericEvent.Raw { + topic: "space:expired"; +@@ -143,3 +146,3 @@ export declare namespace Event { + +- interface SpaceGuestAdded extends serializers.GenericEvent.Raw { ++ interface SpaceGuestAdded extends GenericEvent.Raw { + topic: "space:guestAdded"; +@@ -147,3 +150,3 @@ export declare namespace Event { + +- interface SpaceGuestRemoved extends serializers.GenericEvent.Raw { ++ interface SpaceGuestRemoved extends GenericEvent.Raw { + topic: "space:guestRemoved"; +@@ -151,3 +154,3 @@ export declare namespace Event { + +- interface DocumentCreated extends serializers.GenericEvent.Raw { ++ interface DocumentCreated extends GenericEvent.Raw { + topic: "document:created"; +@@ -155,3 +158,3 @@ export declare namespace Event { + +- interface DocumentUpdated extends serializers.GenericEvent.Raw { ++ interface DocumentUpdated extends GenericEvent.Raw { + topic: "document:updated"; +@@ -159,3 +162,3 @@ export declare namespace Event { + +- interface DocumentDeleted extends serializers.GenericEvent.Raw { ++ interface DocumentDeleted extends GenericEvent.Raw { + topic: "document:deleted"; +@@ -163,3 +166,3 @@ export declare namespace Event { + +- interface WorkbookCreated extends serializers.GenericEvent.Raw { ++ interface WorkbookCreated extends GenericEvent.Raw { + topic: "workbook:created"; +@@ -167,3 +170,3 @@ export declare namespace Event { + +- interface WorkbookUpdated extends serializers.GenericEvent.Raw { ++ interface WorkbookUpdated extends GenericEvent.Raw { + topic: "workbook:updated"; +@@ -171,3 +174,3 @@ export declare namespace Event { + +- interface WorkbookDeleted extends serializers.GenericEvent.Raw { ++ interface WorkbookDeleted extends GenericEvent.Raw { + topic: "workbook:deleted"; +@@ -175,3 +178,3 @@ export declare namespace Event { + +- interface WorkbookExpired extends serializers.GenericEvent.Raw { ++ interface WorkbookExpired extends GenericEvent.Raw { + topic: "workbook:expired"; +@@ -179,3 +182,3 @@ export declare namespace Event { + +- interface SheetCreated extends serializers.GenericEvent.Raw { ++ interface SheetCreated extends GenericEvent.Raw { + topic: "sheet:created"; +@@ -183,3 +186,3 @@ export declare namespace Event { + +- interface SheetUpdated extends serializers.GenericEvent.Raw { ++ interface SheetUpdated extends GenericEvent.Raw { + topic: "sheet:updated"; +@@ -187,3 +190,3 @@ export declare namespace Event { + +- interface SheetDeleted extends serializers.GenericEvent.Raw { ++ interface SheetDeleted extends GenericEvent.Raw { + topic: "sheet:deleted"; +@@ -191,3 +194,7 @@ export declare namespace Event { + +- interface SnapshotCreated extends serializers.GenericEvent.Raw { ++ interface SheetCountsUpdated extends GenericEvent.Raw { ++ topic: "sheet:counts-updated"; ++ } ++ ++ interface SnapshotCreated extends GenericEvent.Raw { + topic: "snapshot:created"; +@@ -195,3 +202,3 @@ export declare namespace Event { + +- interface RecordsCreated extends serializers.GenericEvent.Raw { ++ interface RecordsCreated extends GenericEvent.Raw { + topic: "records:created"; +@@ -199,3 +206,3 @@ export declare namespace Event { + +- interface RecordsUpdated extends serializers.GenericEvent.Raw { ++ interface RecordsUpdated extends GenericEvent.Raw { + topic: "records:updated"; +@@ -203,3 +210,3 @@ export declare namespace Event { + +- interface RecordsDeleted extends serializers.GenericEvent.Raw { ++ interface RecordsDeleted extends GenericEvent.Raw { + topic: "records:deleted"; +@@ -207,3 +214,3 @@ export declare namespace Event { + +- interface FileCreated extends serializers.GenericEvent.Raw { ++ interface FileCreated extends GenericEvent.Raw { + topic: "file:created"; +@@ -211,3 +218,3 @@ export declare namespace Event { + +- interface FileUpdated extends serializers.GenericEvent.Raw { ++ interface FileUpdated extends GenericEvent.Raw { + topic: "file:updated"; +@@ -215,3 +222,3 @@ export declare namespace Event { + +- interface FileDeleted extends serializers.GenericEvent.Raw { ++ interface FileDeleted extends GenericEvent.Raw { + topic: "file:deleted"; +@@ -219,3 +226,3 @@ export declare namespace Event { + +- interface FileExpired extends serializers.GenericEvent.Raw { ++ interface FileExpired extends GenericEvent.Raw { + topic: "file:expired"; +@@ -223,3 +230,3 @@ export declare namespace Event { + +- interface JobCreated extends serializers.GenericEvent.Raw { ++ interface JobCreated extends GenericEvent.Raw { + topic: "job:created"; +@@ -227,3 +234,3 @@ export declare namespace Event { + +- interface JobUpdated extends serializers.GenericEvent.Raw { ++ interface JobUpdated extends GenericEvent.Raw { + topic: "job:updated"; +@@ -231,3 +238,3 @@ export declare namespace Event { + +- interface JobDeleted extends serializers.GenericEvent.Raw { ++ interface JobDeleted extends GenericEvent.Raw { + topic: "job:deleted"; +@@ -235,3 +242,3 @@ export declare namespace Event { + +- interface JobFailed extends serializers.GenericEvent.Raw { ++ interface JobFailed extends GenericEvent.Raw { + topic: "job:failed"; +@@ -239,3 +246,3 @@ export declare namespace Event { + +- interface JobCompleted extends serializers.GenericEvent.Raw { ++ interface JobCompleted extends GenericEvent.Raw { + topic: "job:completed"; +@@ -243,3 +250,3 @@ export declare namespace Event { + +- interface JobReady extends serializers.GenericEvent.Raw { ++ interface JobReady extends GenericEvent.Raw { + topic: "job:ready"; +@@ -247,3 +254,3 @@ export declare namespace Event { + +- interface JobScheduled extends serializers.GenericEvent.Raw { ++ interface JobScheduled extends GenericEvent.Raw { + topic: "job:scheduled"; +@@ -251,3 +258,3 @@ export declare namespace Event { + +- interface JobOutcomeAcknowledged extends serializers.GenericEvent.Raw { ++ interface JobOutcomeAcknowledged extends GenericEvent.Raw { + topic: "job:outcome-acknowledged"; +@@ -255,3 +262,3 @@ export declare namespace Event { + +- interface JobPartsCompleted extends serializers.GenericEvent.Raw { ++ interface JobPartsCompleted extends GenericEvent.Raw { + topic: "job:parts-completed"; +@@ -259,3 +266,3 @@ export declare namespace Event { + +- interface ProgramCreated extends serializers.GenericEvent.Raw { ++ interface ProgramCreated extends GenericEvent.Raw { + topic: "program:created"; +@@ -263,3 +270,3 @@ export declare namespace Event { + +- interface ProgramUpdated extends serializers.GenericEvent.Raw { ++ interface ProgramUpdated extends GenericEvent.Raw { + topic: "program:updated"; +@@ -267,3 +274,3 @@ export declare namespace Event { + +- interface CommitCreated extends serializers.GenericEvent.Raw { ++ interface CommitCreated extends GenericEvent.Raw { + topic: "commit:created"; +@@ -271,3 +278,3 @@ export declare namespace Event { + +- interface CommitUpdated extends serializers.GenericEvent.Raw { ++ interface CommitUpdated extends GenericEvent.Raw { + topic: "commit:updated"; +@@ -275,3 +282,3 @@ export declare namespace Event { + +- interface CommitCompleted extends serializers.GenericEvent.Raw { ++ interface CommitCompleted extends GenericEvent.Raw { + topic: "commit:completed"; +@@ -279,3 +286,3 @@ export declare namespace Event { + +- interface SecretCreated extends serializers.GenericEvent.Raw { ++ interface SecretCreated extends GenericEvent.Raw { + topic: "secret:created"; +@@ -283,3 +290,3 @@ export declare namespace Event { + +- interface SecretUpdated extends serializers.GenericEvent.Raw { ++ interface SecretUpdated extends GenericEvent.Raw { + topic: "secret:updated"; +@@ -287,3 +294,3 @@ export declare namespace Event { + +- interface SecretDeleted extends serializers.GenericEvent.Raw { ++ interface SecretDeleted extends GenericEvent.Raw { + topic: "secret:deleted"; +@@ -291,3 +298,3 @@ export declare namespace Event { + +- interface LayerCreated extends serializers.GenericEvent.Raw { ++ interface LayerCreated extends GenericEvent.Raw { + topic: "layer:created"; +diff --git a/src/serialization/resources/events/types/EventAttributes.ts b/src/serialization/resources/events/types/EventAttributes.ts +index b7491b6..2c3d7a3 100644 +--- a/src/serialization/resources/events/types/EventAttributes.ts ++++ b/src/serialization/resources/events/types/EventAttributes.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Progress } from "./Progress"; + +@@ -13,3 +14,3 @@ export const EventAttributes: core.serialization.ObjectSchema< + targetUpdatedAt: core.serialization.date().optional(), +- progress: core.serialization.lazyObject(async () => (await import("../../..")).Progress).optional(), ++ progress: Progress.optional(), + }); +@@ -19,3 +20,3 @@ export declare namespace EventAttributes { + targetUpdatedAt?: string | null; +- progress?: serializers.Progress.Raw | null; ++ progress?: Progress.Raw | null; + } +diff --git a/src/serialization/resources/events/types/EventResponse.ts b/src/serialization/resources/events/types/EventResponse.ts +index ed7cea4..01c2432 100644 +--- a/src/serialization/resources/events/types/EventResponse.ts ++++ b/src/serialization/resources/events/types/EventResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Event } from "./Event"; + +@@ -10,3 +11,3 @@ export const EventResponse: core.serialization.ObjectSchema (await import("../../..")).Event), ++ data: Event, + }); +@@ -15,3 +16,3 @@ export declare namespace EventResponse { + interface Raw { +- data: serializers.Event.Raw; ++ data: Event.Raw; + } +diff --git a/src/serialization/resources/events/types/EventTopic.ts b/src/serialization/resources/events/types/EventTopic.ts +index 4fd0d1d..5805426 100644 +--- a/src/serialization/resources/events/types/EventTopic.ts ++++ b/src/serialization/resources/events/types/EventTopic.ts +@@ -30,2 +30,3 @@ export const EventTopic: core.serialization.Schema (await import("../../..")).EventId), ++ id: EventId, + createdAt: core.serialization.date(), +@@ -18,7 +20,7 @@ export const GenericEvent: core.serialization.ObjectSchema (await import("../../..")).BaseEvent)); ++ .extend(BaseEvent); + + export declare namespace GenericEvent { +- interface Raw extends serializers.BaseEvent.Raw { +- id: serializers.EventId.Raw; ++ interface Raw extends BaseEvent.Raw { ++ id: EventId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/events/types/ListAllEventsResponse.ts b/src/serialization/resources/events/types/ListAllEventsResponse.ts +index 4a5a4df..ea80637 100644 +--- a/src/serialization/resources/events/types/ListAllEventsResponse.ts ++++ b/src/serialization/resources/events/types/ListAllEventsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Event } from "./Event"; + +@@ -12,3 +13,3 @@ export const ListAllEventsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).Event)), ++ data: core.serialization.list(Event), + }); +@@ -17,3 +18,3 @@ export declare namespace ListAllEventsResponse { + interface Raw { +- data: serializers.Event.Raw[]; ++ data: Event.Raw[]; + } +diff --git a/src/serialization/resources/files/client/requests/UpdateFileRequest.ts b/src/serialization/resources/files/client/requests/UpdateFileRequest.ts +index c051d5b..cdac336 100644 +--- a/src/serialization/resources/files/client/requests/UpdateFileRequest.ts ++++ b/src/serialization/resources/files/client/requests/UpdateFileRequest.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { WorkbookId } from "../../../commons/types/WorkbookId"; ++import { Mode } from "../../types/Mode"; ++import { ModelFileStatusEnum } from "../../types/ModelFileStatusEnum"; ++import { Action } from "../../../commons/types/Action"; + +@@ -12,9 +16,7 @@ export const UpdateFileRequest: core.serialization.Schema< + > = core.serialization.object({ +- workbookId: core.serialization.lazy(async () => (await import("../../../..")).WorkbookId).optional(), ++ workbookId: WorkbookId.optional(), + name: core.serialization.string().optional(), +- mode: core.serialization.lazy(async () => (await import("../../../..")).Mode).optional(), +- status: core.serialization.lazy(async () => (await import("../../../..")).ModelFileStatusEnum).optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../../..")).Action)) +- .optional(), ++ mode: Mode.optional(), ++ status: ModelFileStatusEnum.optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -23,7 +25,7 @@ export declare namespace UpdateFileRequest { + interface Raw { +- workbookId?: serializers.WorkbookId.Raw | null; ++ workbookId?: WorkbookId.Raw | null; + name?: string | null; +- mode?: serializers.Mode.Raw | null; +- status?: serializers.ModelFileStatusEnum.Raw | null; +- actions?: serializers.Action.Raw[] | null; ++ mode?: Mode.Raw | null; ++ status?: ModelFileStatusEnum.Raw | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/files/types/FileResponse.ts b/src/serialization/resources/files/types/FileResponse.ts +index 6d471d0..dfdcf4a 100644 +--- a/src/serialization/resources/files/types/FileResponse.ts ++++ b/src/serialization/resources/files/types/FileResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { File_ } from "./File_"; + +@@ -10,3 +11,3 @@ export const FileResponse: core.serialization.ObjectSchema (await import("../../..")).File_), ++ data: File_, + }); +@@ -15,3 +16,3 @@ export declare namespace FileResponse { + interface Raw { +- data: serializers.File_.Raw; ++ data: File_.Raw; + } +diff --git a/src/serialization/resources/files/types/File_.ts b/src/serialization/resources/files/types/File_.ts +index be5afe6..e51ec4e 100644 +--- a/src/serialization/resources/files/types/File_.ts ++++ b/src/serialization/resources/files/types/File_.ts +@@ -7,5 +7,12 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FileId } from "../../commons/types/FileId"; ++import { ModelFileStatusEnum } from "./ModelFileStatusEnum"; ++import { Mode } from "./Mode"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { Action } from "../../commons/types/Action"; + + export const File_: core.serialization.ObjectSchema = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).FileId), ++ id: FileId, + name: core.serialization.string(), +@@ -14,4 +21,4 @@ export const File_: core.serialization.ObjectSchema (await import("../../..")).ModelFileStatusEnum), +- mode: core.serialization.lazy(async () => (await import("../../..")).Mode).optional(), ++ status: ModelFileStatusEnum, ++ mode: Mode.optional(), + size: core.serialization.number(), +@@ -21,8 +28,6 @@ export const File_: core.serialization.ObjectSchema (await import("../../..")).SpaceId), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId).optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ spaceId: SpaceId, ++ workbookId: WorkbookId.optional(), ++ sheetId: SheetId.optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -31,3 +36,3 @@ export declare namespace File_ { + interface Raw { +- id: serializers.FileId.Raw; ++ id: FileId.Raw; + name: string; +@@ -36,4 +41,4 @@ export declare namespace File_ { + encoding: string; +- status: serializers.ModelFileStatusEnum.Raw; +- mode?: serializers.Mode.Raw | null; ++ status: ModelFileStatusEnum.Raw; ++ mode?: Mode.Raw | null; + size: number; +@@ -43,6 +48,6 @@ export declare namespace File_ { + expiredAt?: string | null; +- spaceId: serializers.SpaceId.Raw; +- workbookId?: serializers.WorkbookId.Raw | null; +- sheetId?: serializers.SheetId.Raw | null; +- actions?: serializers.Action.Raw[] | null; ++ spaceId: SpaceId.Raw; ++ workbookId?: WorkbookId.Raw | null; ++ sheetId?: SheetId.Raw | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/files/types/ListFilesResponse.ts b/src/serialization/resources/files/types/ListFilesResponse.ts +index 031df46..3fd4366 100644 +--- a/src/serialization/resources/files/types/ListFilesResponse.ts ++++ b/src/serialization/resources/files/types/ListFilesResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { File_ } from "./File_"; + +@@ -12,4 +14,4 @@ export const ListFilesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).File_)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(File_), + }); +@@ -18,4 +20,4 @@ export declare namespace ListFilesResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.File_.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: File_.Raw[]; + } +diff --git a/src/serialization/resources/foreigndb/index.ts b/src/serialization/resources/foreigndb/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/foreigndb/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/foreigndb/types/DatabaseTask.ts b/src/serialization/resources/foreigndb/types/DatabaseTask.ts +new file mode 100644 +index 0000000..0ecae12 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/DatabaseTask.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const DatabaseTask: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ status: core.serialization.string(), ++ type: core.serialization.string(), ++ progress: core.serialization.number(), ++ }); ++ ++export declare namespace DatabaseTask { ++ interface Raw { ++ status: string; ++ type: string; ++ progress: number; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts b/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts +new file mode 100644 +index 0000000..c2ed67a +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/GetDatabaseResponse.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { DatabaseTask } from "./DatabaseTask"; ++ ++export const GetDatabaseResponse: core.serialization.ObjectSchema< ++ serializers.GetDatabaseResponse.Raw, ++ Flatfile.GetDatabaseResponse ++> = core.serialization.object({ ++ task: DatabaseTask, ++}); ++ ++export declare namespace GetDatabaseResponse { ++ interface Raw { ++ task: DatabaseTask.Raw; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts b/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts +new file mode 100644 +index 0000000..60c4812 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/GetDatabaseUserResponse.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const GetDatabaseUserResponse: core.serialization.ObjectSchema< ++ serializers.GetDatabaseUserResponse.Raw, ++ Flatfile.GetDatabaseUserResponse ++> = core.serialization.object({ ++ username: core.serialization.string(), ++ password: core.serialization.string(), ++}); ++ ++export declare namespace GetDatabaseUserResponse { ++ interface Raw { ++ username: string; ++ password: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts b/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts +new file mode 100644 +index 0000000..54f0df8 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/RestoreDatabaseRequest.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const RestoreDatabaseRequest: core.serialization.ObjectSchema< ++ serializers.RestoreDatabaseRequest.Raw, ++ Flatfile.RestoreDatabaseRequest ++> = core.serialization.object({ ++ fileId: core.serialization.string(), ++}); ++ ++export declare namespace RestoreDatabaseRequest { ++ interface Raw { ++ fileId: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts b/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts +new file mode 100644 +index 0000000..963dfea +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/RestoreDatabaseResponse.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const RestoreDatabaseResponse: core.serialization.ObjectSchema< ++ serializers.RestoreDatabaseResponse.Raw, ++ Flatfile.RestoreDatabaseResponse ++> = core.serialization.object({ ++ host: core.serialization.string(), ++ port: core.serialization.number(), ++ dbname: core.serialization.string(), ++}); ++ ++export declare namespace RestoreDatabaseResponse { ++ interface Raw { ++ host: string; ++ port: number; ++ dbname: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts b/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts +new file mode 100644 +index 0000000..6aada70 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/UploadToObjectStorageRequest.ts +@@ -0,0 +1,20 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const UploadToObjectStorageRequest: core.serialization.ObjectSchema< ++ serializers.UploadToObjectStorageRequest.Raw, ++ Flatfile.UploadToObjectStorageRequest ++> = core.serialization.object({ ++ fileId: core.serialization.string(), ++}); ++ ++export declare namespace UploadToObjectStorageRequest { ++ interface Raw { ++ fileId: string; ++ } ++} +diff --git a/src/serialization/resources/foreigndb/types/index.ts b/src/serialization/resources/foreigndb/types/index.ts +new file mode 100644 +index 0000000..8086286 +--- /dev/null ++++ b/src/serialization/resources/foreigndb/types/index.ts +@@ -0,0 +1,6 @@ ++export * from "./UploadToObjectStorageRequest"; ++export * from "./RestoreDatabaseRequest"; ++export * from "./RestoreDatabaseResponse"; ++export * from "./GetDatabaseResponse"; ++export * from "./DatabaseTask"; ++export * from "./GetDatabaseUserResponse"; +diff --git a/src/serialization/resources/guests/client/create.ts b/src/serialization/resources/guests/client/create.ts +index cb67c36..864ae1c 100644 +--- a/src/serialization/resources/guests/client/create.ts ++++ b/src/serialization/resources/guests/client/create.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestConfig } from "../types/GuestConfig"; + + export const Request: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).GuestConfig)); ++ core.serialization.list(GuestConfig); + + export declare namespace Request { +- type Raw = serializers.GuestConfig.Raw[]; ++ type Raw = GuestConfig.Raw[]; + } +diff --git a/src/serialization/resources/guests/client/invite.ts b/src/serialization/resources/guests/client/invite.ts +index efd1d9d..6c27969 100644 +--- a/src/serialization/resources/guests/client/invite.ts ++++ b/src/serialization/resources/guests/client/invite.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Invite } from "../types/Invite"; + + export const Request: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Invite)); ++ core.serialization.list(Invite); + + export declare namespace Request { +- type Raw = serializers.Invite.Raw[]; ++ type Raw = Invite.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/CreateGuestResponse.ts b/src/serialization/resources/guests/types/CreateGuestResponse.ts +index 83ae108..153dc3f 100644 +--- a/src/serialization/resources/guests/types/CreateGuestResponse.ts ++++ b/src/serialization/resources/guests/types/CreateGuestResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Guest } from "./Guest"; + +@@ -12,3 +13,3 @@ export const CreateGuestResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Guest)), ++ data: core.serialization.list(Guest), + }); +@@ -17,3 +18,3 @@ export declare namespace CreateGuestResponse { + interface Raw { +- data: serializers.Guest.Raw[]; ++ data: Guest.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/Guest.ts b/src/serialization/resources/guests/types/Guest.ts +index 7e86e97..6eddce0 100644 +--- a/src/serialization/resources/guests/types/Guest.ts ++++ b/src/serialization/resources/guests/types/Guest.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestId } from "../../commons/types/GuestId"; ++import { GuestConfig } from "./GuestConfig"; + +@@ -10,3 +12,3 @@ export const Guest: core.serialization.ObjectSchema (await import("../../..")).GuestId), ++ id: GuestId, + createdAt: core.serialization.date(), +@@ -14,7 +16,7 @@ export const Guest: core.serialization.ObjectSchema (await import("../../..")).GuestConfig)); ++ .extend(GuestConfig); + + export declare namespace Guest { +- interface Raw extends serializers.GuestConfig.Raw { +- id: serializers.GuestId.Raw; ++ interface Raw extends GuestConfig.Raw { ++ id: GuestId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/guests/types/GuestConfig.ts b/src/serialization/resources/guests/types/GuestConfig.ts +index d996f49..c329126 100644 +--- a/src/serialization/resources/guests/types/GuestConfig.ts ++++ b/src/serialization/resources/guests/types/GuestConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { GuestSpace } from "./GuestSpace"; + +@@ -10,8 +12,6 @@ export const GuestConfig: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId), ++ environmentId: EnvironmentId, + email: core.serialization.string(), + name: core.serialization.string(), +- spaces: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).GuestSpace) +- ), ++ spaces: core.serialization.list(GuestSpace), + }); +@@ -20,6 +20,6 @@ export declare namespace GuestConfig { + interface Raw { +- environmentId: serializers.EnvironmentId.Raw; ++ environmentId: EnvironmentId.Raw; + email: string; + name: string; +- spaces: serializers.GuestSpace.Raw[]; ++ spaces: GuestSpace.Raw[]; + } +diff --git a/src/serialization/resources/guests/types/GuestConfigUpdate.ts b/src/serialization/resources/guests/types/GuestConfigUpdate.ts +index 38c8b39..53eed6f 100644 +--- a/src/serialization/resources/guests/types/GuestConfigUpdate.ts ++++ b/src/serialization/resources/guests/types/GuestConfigUpdate.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { GuestSpace } from "./GuestSpace"; + +@@ -12,8 +14,6 @@ export const GuestConfigUpdate: core.serialization.ObjectSchema< + > = core.serialization.object({ +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ environmentId: EnvironmentId.optional(), + email: core.serialization.string().optional(), + name: core.serialization.string().optional(), +- spaces: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).GuestSpace)) +- .optional(), ++ spaces: core.serialization.list(GuestSpace).optional(), + }); +@@ -22,6 +22,6 @@ export declare namespace GuestConfigUpdate { + interface Raw { +- environmentId?: serializers.EnvironmentId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + email?: string | null; + name?: string | null; +- spaces?: serializers.GuestSpace.Raw[] | null; ++ spaces?: GuestSpace.Raw[] | null; + } +diff --git a/src/serialization/resources/guests/types/GuestResponse.ts b/src/serialization/resources/guests/types/GuestResponse.ts +index 89a0694..940f16b 100644 +--- a/src/serialization/resources/guests/types/GuestResponse.ts ++++ b/src/serialization/resources/guests/types/GuestResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Guest } from "./Guest"; + +@@ -10,3 +11,3 @@ export const GuestResponse: core.serialization.ObjectSchema (await import("../../..")).Guest), ++ data: Guest, + }); +@@ -15,3 +16,3 @@ export declare namespace GuestResponse { + interface Raw { +- data: serializers.Guest.Raw; ++ data: Guest.Raw; + } +diff --git a/src/serialization/resources/guests/types/GuestSpace.ts b/src/serialization/resources/guests/types/GuestSpace.ts +index 9b80f8a..dfe9099 100644 +--- a/src/serialization/resources/guests/types/GuestSpace.ts ++++ b/src/serialization/resources/guests/types/GuestSpace.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { GuestWorkbook } from "./GuestWorkbook"; + +@@ -10,6 +12,4 @@ export const GuestSpace: core.serialization.ObjectSchema (await import("../../..")).SpaceId), +- workbooks: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).GuestWorkbook)) +- .optional(), ++ id: SpaceId, ++ workbooks: core.serialization.list(GuestWorkbook).optional(), + lastAccessed: core.serialization.date().optional(), +@@ -19,4 +19,4 @@ export declare namespace GuestSpace { + interface Raw { +- id: serializers.SpaceId.Raw; +- workbooks?: serializers.GuestWorkbook.Raw[] | null; ++ id: SpaceId.Raw; ++ workbooks?: GuestWorkbook.Raw[] | null; + lastAccessed?: string | null; +diff --git a/src/serialization/resources/guests/types/GuestTokenResponse.ts b/src/serialization/resources/guests/types/GuestTokenResponse.ts +index 29ed00c..c1f31b5 100644 +--- a/src/serialization/resources/guests/types/GuestTokenResponse.ts ++++ b/src/serialization/resources/guests/types/GuestTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestToken } from "./GuestToken"; + +@@ -12,3 +13,3 @@ export const GuestTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).GuestToken), ++ data: GuestToken, + }); +@@ -17,3 +18,3 @@ export declare namespace GuestTokenResponse { + interface Raw { +- data: serializers.GuestToken.Raw; ++ data: GuestToken.Raw; + } +diff --git a/src/serialization/resources/guests/types/GuestWorkbook.ts b/src/serialization/resources/guests/types/GuestWorkbook.ts +index a98d6e0..d4d47c5 100644 +--- a/src/serialization/resources/guests/types/GuestWorkbook.ts ++++ b/src/serialization/resources/guests/types/GuestWorkbook.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; + +@@ -10,3 +11,3 @@ export const GuestWorkbook: core.serialization.ObjectSchema (await import("../../..")).WorkbookId), ++ id: WorkbookId, + }); +@@ -15,3 +16,3 @@ export declare namespace GuestWorkbook { + interface Raw { +- id: serializers.WorkbookId.Raw; ++ id: WorkbookId.Raw; + } +diff --git a/src/serialization/resources/guests/types/Invite.ts b/src/serialization/resources/guests/types/Invite.ts +index c13ddcc..3b68895 100644 +--- a/src/serialization/resources/guests/types/Invite.ts ++++ b/src/serialization/resources/guests/types/Invite.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestId } from "../../commons/types/GuestId"; ++import { SpaceId } from "../../commons/types/SpaceId"; + +@@ -10,4 +12,4 @@ export const Invite: core.serialization.ObjectSchema (await import("../../..")).GuestId), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId), ++ guestId: GuestId, ++ spaceId: SpaceId, + fromName: core.serialization.string().optional(), +@@ -18,4 +20,4 @@ export declare namespace Invite { + interface Raw { +- guestId: serializers.GuestId.Raw; +- spaceId: serializers.SpaceId.Raw; ++ guestId: GuestId.Raw; ++ spaceId: SpaceId.Raw; + fromName?: string | null; +diff --git a/src/serialization/resources/guests/types/ListGuestsResponse.ts b/src/serialization/resources/guests/types/ListGuestsResponse.ts +index 3c56e62..fd06575 100644 +--- a/src/serialization/resources/guests/types/ListGuestsResponse.ts ++++ b/src/serialization/resources/guests/types/ListGuestsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Guest } from "./Guest"; + +@@ -12,3 +13,3 @@ export const ListGuestsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Guest)), ++ data: core.serialization.list(Guest), + }); +@@ -17,3 +18,3 @@ export declare namespace ListGuestsResponse { + interface Raw { +- data: serializers.Guest.Raw[]; ++ data: Guest.Raw[]; + } +diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts +index 06437e8..481e6bc 100644 +--- a/src/serialization/resources/index.ts ++++ b/src/serialization/resources/index.ts +@@ -1 +1,3 @@ ++export * as accounts from "./accounts"; ++export * from "./accounts/types"; + export * as agents from "./agents"; +@@ -4,2 +6,4 @@ export * as apps from "./apps"; + export * from "./apps/types"; ++export * as assistant from "./assistant"; ++export * from "./assistant/types"; + export * as auth from "./auth"; +@@ -24,2 +28,4 @@ export * as files from "./files"; + export * from "./files/types"; ++export * as foreigndb from "./foreigndb"; ++export * from "./foreigndb/types"; + export * as guests from "./guests"; +diff --git a/src/serialization/resources/jobs/client/ack.ts b/src/serialization/resources/jobs/client/ack.ts +index 6093d08..5d541b3 100644 +--- a/src/serialization/resources/jobs/client/ack.ts ++++ b/src/serialization/resources/jobs/client/ack.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobAckDetails } from "../types/JobAckDetails"; + + export const Request: core.serialization.Schema = +- core.serialization.lazyObject(async () => (await import("../../..")).JobAckDetails).optional(); ++ JobAckDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobAckDetails.Raw | null | undefined; ++ type Raw = JobAckDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/cancel.ts b/src/serialization/resources/jobs/client/cancel.ts +index d1a7e1b..8751b32 100644 +--- a/src/serialization/resources/jobs/client/cancel.ts ++++ b/src/serialization/resources/jobs/client/cancel.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobCancelDetails } from "../types/JobCancelDetails"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCancelDetails | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).JobCancelDetails).optional(); ++> = JobCancelDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobCancelDetails.Raw | null | undefined; ++ type Raw = JobCancelDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/complete.ts b/src/serialization/resources/jobs/client/complete.ts +index 2c1a1f5..84761c5 100644 +--- a/src/serialization/resources/jobs/client/complete.ts ++++ b/src/serialization/resources/jobs/client/complete.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobCompleteDetails } from "../types/JobCompleteDetails"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCompleteDetails | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).JobCompleteDetails).optional(); ++> = JobCompleteDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobCompleteDetails.Raw | null | undefined; ++ type Raw = JobCompleteDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/client/fail.ts b/src/serialization/resources/jobs/client/fail.ts +index 87d0ca9..675ecdc 100644 +--- a/src/serialization/resources/jobs/client/fail.ts ++++ b/src/serialization/resources/jobs/client/fail.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobCompleteDetails } from "../types/JobCompleteDetails"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.JobCompleteDetails | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).JobCompleteDetails).optional(); ++> = JobCompleteDetails.optional(); + + export declare namespace Request { +- type Raw = serializers.JobCompleteDetails.Raw | null | undefined; ++ type Raw = JobCompleteDetails.Raw | null | undefined; + } +diff --git a/src/serialization/resources/jobs/types/CategoryMapping.ts b/src/serialization/resources/jobs/types/CategoryMapping.ts +index e4a805e..4d7c7ae 100644 +--- a/src/serialization/resources/jobs/types/CategoryMapping.ts ++++ b/src/serialization/resources/jobs/types/CategoryMapping.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnumValue } from "./EnumValue"; + +@@ -12,4 +13,4 @@ export const CategoryMapping: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceValue: core.serialization.lazy(async () => (await import("../../..")).EnumValue).optional(), +- destinationValue: core.serialization.lazy(async () => (await import("../../..")).EnumValue).optional(), ++ sourceValue: EnumValue.optional(), ++ destinationValue: EnumValue.optional(), + }); +@@ -18,4 +19,4 @@ export declare namespace CategoryMapping { + interface Raw { +- sourceValue?: serializers.EnumValue.Raw | null; +- destinationValue?: serializers.EnumValue.Raw | null; ++ sourceValue?: EnumValue.Raw | null; ++ destinationValue?: EnumValue.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts b/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts +index c57ef84..59fe917 100644 +--- a/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts ++++ b/src/serialization/resources/jobs/types/DeleteRecordsJobConfig.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { RecordId } from "../../commons/types/RecordId"; + +@@ -12,11 +18,9 @@ export const DeleteRecordsJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- sheet: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- exceptions: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).RecordId)) +- .optional(), ++ sheet: SheetId, ++ exceptions: core.serialization.list(RecordId).optional(), + }); +@@ -25,9 +29,9 @@ export declare namespace DeleteRecordsJobConfig { + interface Raw { +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- sheet: serializers.SheetId.Raw; +- exceptions?: serializers.RecordId.Raw[] | null; ++ sheet: SheetId.Raw; ++ exceptions?: RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/DestinationField.ts b/src/serialization/resources/jobs/types/DestinationField.ts +index 31e1f45..3fc0838 100644 +--- a/src/serialization/resources/jobs/types/DestinationField.ts ++++ b/src/serialization/resources/jobs/types/DestinationField.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; + +@@ -12,3 +13,3 @@ export const DestinationField: core.serialization.ObjectSchema< + > = core.serialization.object({ +- destinationField: core.serialization.lazy(async () => (await import("../../..")).Property), ++ destinationField: Property, + preview: core.serialization.list(core.serialization.string()).optional(), +@@ -18,3 +19,3 @@ export declare namespace DestinationField { + interface Raw { +- destinationField: serializers.Property.Raw; ++ destinationField: Property.Raw; + preview?: string[] | null; +diff --git a/src/serialization/resources/jobs/types/Edge.ts b/src/serialization/resources/jobs/types/Edge.ts +index 213c1d7..21d4702 100644 +--- a/src/serialization/resources/jobs/types/Edge.ts ++++ b/src/serialization/resources/jobs/types/Edge.ts +@@ -7,9 +7,12 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; ++import { EnumDetails } from "./EnumDetails"; ++import { Metadata } from "./Metadata"; + + export const Edge: core.serialization.ObjectSchema = core.serialization.object({ +- sourceField: core.serialization.lazy(async () => (await import("../../..")).Property), +- destinationField: core.serialization.lazy(async () => (await import("../../..")).Property), ++ sourceField: Property, ++ destinationField: Property, + preview: core.serialization.list(core.serialization.string()).optional(), +- enumDetails: core.serialization.lazyObject(async () => (await import("../../..")).EnumDetails).optional(), +- metadata: core.serialization.lazyObject(async () => (await import("../../..")).Metadata).optional(), ++ enumDetails: EnumDetails.optional(), ++ metadata: Metadata.optional(), + }); +@@ -18,7 +21,7 @@ export declare namespace Edge { + interface Raw { +- sourceField: serializers.Property.Raw; +- destinationField: serializers.Property.Raw; ++ sourceField: Property.Raw; ++ destinationField: Property.Raw; + preview?: string[] | null; +- enumDetails?: serializers.EnumDetails.Raw | null; +- metadata?: serializers.Metadata.Raw | null; ++ enumDetails?: EnumDetails.Raw | null; ++ metadata?: Metadata.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/EnumDetails.ts b/src/serialization/resources/jobs/types/EnumDetails.ts +index bb54392..a1b6ea5 100644 +--- a/src/serialization/resources/jobs/types/EnumDetails.ts ++++ b/src/serialization/resources/jobs/types/EnumDetails.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CategoryMapping } from "./CategoryMapping"; ++import { EnumValue } from "./EnumValue"; + +@@ -10,11 +12,5 @@ export const EnumDetails: core.serialization.ObjectSchema (await import("../../..")).CategoryMapping) +- ), +- unusedSourceValues: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).EnumValue)) +- .optional(), +- unusedDestinationValues: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).EnumValue)) +- .optional(), ++ mapping: core.serialization.list(CategoryMapping), ++ unusedSourceValues: core.serialization.list(EnumValue).optional(), ++ unusedDestinationValues: core.serialization.list(EnumValue).optional(), + }); +@@ -23,5 +19,5 @@ export declare namespace EnumDetails { + interface Raw { +- mapping: serializers.CategoryMapping.Raw[]; +- unusedSourceValues?: serializers.EnumValue.Raw[] | null; +- unusedDestinationValues?: serializers.EnumValue.Raw[] | null; ++ mapping: CategoryMapping.Raw[]; ++ unusedSourceValues?: EnumValue.Raw[] | null; ++ unusedDestinationValues?: EnumValue.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/ExportJobConfig.ts b/src/serialization/resources/jobs/types/ExportJobConfig.ts +index a846432..6ec7e0e 100644 +--- a/src/serialization/resources/jobs/types/ExportJobConfig.ts ++++ b/src/serialization/resources/jobs/types/ExportJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ExportOptions } from "./ExportOptions"; + +@@ -12,3 +13,3 @@ export const ExportJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- options: core.serialization.lazyObject(async () => (await import("../../..")).ExportOptions), ++ options: ExportOptions, + }); +@@ -17,3 +18,3 @@ export declare namespace ExportJobConfig { + interface Raw { +- options: serializers.ExportOptions.Raw; ++ options: ExportOptions.Raw; + } +diff --git a/src/serialization/resources/jobs/types/ExportOptions.ts b/src/serialization/resources/jobs/types/ExportOptions.ts +index a8f4db9..69719ef 100644 +--- a/src/serialization/resources/jobs/types/ExportOptions.ts ++++ b/src/serialization/resources/jobs/types/ExportOptions.ts +@@ -7,2 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SortField } from "../../commons/types/SortField"; ++import { SortDirection } from "../../commons/types/SortDirection"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { RecordId } from "../../commons/types/RecordId"; + +@@ -10,14 +19,12 @@ export const ExportOptions: core.serialization.ObjectSchema (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), +- sortField: core.serialization.lazy(async () => (await import("../../..")).SortField).optional(), +- sortDirection: core.serialization.lazy(async () => (await import("../../..")).SortDirection).optional(), +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), ++ sortField: SortField.optional(), ++ sortDirection: SortDirection.optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- ids: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).RecordId)) +- .optional(), ++ ids: core.serialization.list(RecordId).optional(), + }); +@@ -26,12 +33,12 @@ export declare namespace ExportOptions { + interface Raw { +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; +- sortField?: serializers.SortField.Raw | null; +- sortDirection?: serializers.SortDirection.Raw | null; +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; ++ sortField?: SortField.Raw | null; ++ sortDirection?: SortDirection.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- ids?: serializers.RecordId.Raw[] | null; ++ ids?: RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/FileJobConfig.ts b/src/serialization/resources/jobs/types/FileJobConfig.ts +index 24589c9..2264e24 100644 +--- a/src/serialization/resources/jobs/types/FileJobConfig.ts ++++ b/src/serialization/resources/jobs/types/FileJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Driver } from "./Driver"; + +@@ -10,3 +11,3 @@ export const FileJobConfig: core.serialization.ObjectSchema (await import("../../..")).Driver), ++ driver: Driver, + options: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -16,3 +17,3 @@ export declare namespace FileJobConfig { + interface Raw { +- driver: serializers.Driver.Raw; ++ driver: Driver.Raw; + options?: Record | null; +diff --git a/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts b/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts +index 4053fe5..a2173f9 100644 +--- a/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts ++++ b/src/serialization/resources/jobs/types/FindAndReplaceJobConfig.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { RecordId } from "../../commons/types/RecordId"; ++import { CellValueUnion } from "../../records/types/CellValueUnion"; + +@@ -12,10 +18,10 @@ export const FindAndReplaceJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- ids: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordId)).optional(), +- find: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), +- replace: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), ++ ids: core.serialization.list(RecordId).optional(), ++ find: CellValueUnion.optional(), ++ replace: CellValueUnion.optional(), + fieldKey: core.serialization.string(), +@@ -25,10 +31,10 @@ export declare namespace FindAndReplaceJobConfig { + interface Raw { +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- ids?: serializers.RecordId.Raw[] | null; +- find?: serializers.CellValueUnion.Raw | null; +- replace?: serializers.CellValueUnion.Raw | null; ++ ids?: RecordId.Raw[] | null; ++ find?: CellValueUnion.Raw | null; ++ replace?: CellValueUnion.Raw | null; + fieldKey: string; +diff --git a/src/serialization/resources/jobs/types/Job.ts b/src/serialization/resources/jobs/types/Job.ts +index 16a64d2..5726ad4 100644 +--- a/src/serialization/resources/jobs/types/Job.ts ++++ b/src/serialization/resources/jobs/types/Job.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobId } from "../../commons/types/JobId"; ++import { JobConfig } from "./JobConfig"; + +@@ -10,3 +12,3 @@ export const Job: core.serialization.ObjectSchema (await import("../../..")).JobId), ++ id: JobId, + createdAt: core.serialization.date(), +@@ -17,7 +19,7 @@ export const Job: core.serialization.ObjectSchema (await import("../../..")).JobConfig)); ++ .extend(JobConfig); + + export declare namespace Job { +- interface Raw extends serializers.JobConfig.Raw { +- id: serializers.JobId.Raw; ++ interface Raw extends JobConfig.Raw { ++ id: JobId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/jobs/types/JobCompleteDetails.ts b/src/serialization/resources/jobs/types/JobCompleteDetails.ts +index a0a9321..762e8e4 100644 +--- a/src/serialization/resources/jobs/types/JobCompleteDetails.ts ++++ b/src/serialization/resources/jobs/types/JobCompleteDetails.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobOutcome } from "./JobOutcome"; + +@@ -12,3 +13,3 @@ export const JobCompleteDetails: core.serialization.ObjectSchema< + > = core.serialization.object({ +- outcome: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcome).optional(), ++ outcome: JobOutcome.optional(), + info: core.serialization.string().optional(), +@@ -18,3 +19,3 @@ export declare namespace JobCompleteDetails { + interface Raw { +- outcome?: serializers.JobOutcome.Raw | null; ++ outcome?: JobOutcome.Raw | null; + info?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobConfig.ts b/src/serialization/resources/jobs/types/JobConfig.ts +index 942ff42..46c6384 100644 +--- a/src/serialization/resources/jobs/types/JobConfig.ts ++++ b/src/serialization/resources/jobs/types/JobConfig.ts +@@ -7,2 +7,14 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobType } from "./JobType"; ++import { JobSource } from "./JobSource"; ++import { JobDestination } from "./JobDestination"; ++import { JobUpdateConfig } from "./JobUpdateConfig"; ++import { Trigger } from "./Trigger"; ++import { JobStatus } from "./JobStatus"; ++import { FileId } from "../../commons/types/FileId"; ++import { JobMode } from "./JobMode"; ++import { JobSubject } from "./JobSubject"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { JobPartExecution } from "./JobPartExecution"; ++import { JobId } from "../../commons/types/JobId"; + +@@ -10,14 +22,14 @@ export const JobConfig: core.serialization.ObjectSchema (await import("../../..")).JobType), ++ type: JobType, + operation: core.serialization.string(), +- source: core.serialization.lazy(async () => (await import("../../..")).JobSource), +- destination: core.serialization.lazy(async () => (await import("../../..")).JobDestination).optional(), +- config: core.serialization.lazy(async () => (await import("../../..")).JobUpdateConfig).optional(), +- trigger: core.serialization.lazy(async () => (await import("../../..")).Trigger).optional(), +- status: core.serialization.lazy(async () => (await import("../../..")).JobStatus).optional(), ++ source: JobSource, ++ destination: JobDestination.optional(), ++ config: JobUpdateConfig.optional(), ++ trigger: Trigger.optional(), ++ status: JobStatus.optional(), + progress: core.serialization.number().optional(), +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId).optional(), +- mode: core.serialization.lazy(async () => (await import("../../..")).JobMode).optional(), ++ fileId: FileId.optional(), ++ mode: JobMode.optional(), + input: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- subject: core.serialization.lazy(async () => (await import("../../..")).JobSubject).optional(), ++ subject: JobSubject.optional(), + outcome: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +@@ -25,7 +37,7 @@ export const JobConfig: core.serialization.ObjectSchema (await import("../../..")).EnvironmentId).optional(), ++ environmentId: EnvironmentId.optional(), + part: core.serialization.number().optional(), + partData: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- partExecution: core.serialization.lazy(async () => (await import("../../..")).JobPartExecution).optional(), +- parentId: core.serialization.lazy(async () => (await import("../../..")).JobId).optional(), ++ partExecution: JobPartExecution.optional(), ++ parentId: JobId.optional(), + }); +@@ -34,14 +46,14 @@ export declare namespace JobConfig { + interface Raw { +- type: serializers.JobType.Raw; ++ type: JobType.Raw; + operation: string; +- source: serializers.JobSource.Raw; +- destination?: serializers.JobDestination.Raw | null; +- config?: serializers.JobUpdateConfig.Raw | null; +- trigger?: serializers.Trigger.Raw | null; +- status?: serializers.JobStatus.Raw | null; ++ source: JobSource.Raw; ++ destination?: JobDestination.Raw | null; ++ config?: JobUpdateConfig.Raw | null; ++ trigger?: Trigger.Raw | null; ++ status?: JobStatus.Raw | null; + progress?: number | null; +- fileId?: serializers.FileId.Raw | null; +- mode?: serializers.JobMode.Raw | null; ++ fileId?: FileId.Raw | null; ++ mode?: JobMode.Raw | null; + input?: Record | null; +- subject?: serializers.JobSubject.Raw | null; ++ subject?: JobSubject.Raw | null; + outcome?: Record | null; +@@ -49,7 +61,7 @@ export declare namespace JobConfig { + managed?: boolean | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + part?: number | null; + partData?: Record | null; +- partExecution?: serializers.JobPartExecution.Raw | null; +- parentId?: serializers.JobId.Raw | null; ++ partExecution?: JobPartExecution.Raw | null; ++ parentId?: JobId.Raw | null; + } +diff --git a/src/serialization/resources/jobs/types/JobDestination.ts b/src/serialization/resources/jobs/types/JobDestination.ts +index 21ac2f8..2594d3f 100644 +--- a/src/serialization/resources/jobs/types/JobDestination.ts ++++ b/src/serialization/resources/jobs/types/JobDestination.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; + + export const JobDestination: core.serialization.Schema = +- core.serialization.lazy(async () => (await import("../../..")).WorkbookId); ++ WorkbookId; + + export declare namespace JobDestination { +- type Raw = serializers.WorkbookId.Raw; ++ type Raw = WorkbookId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlan.ts b/src/serialization/resources/jobs/types/JobExecutionPlan.ts +index f392d75..2937830 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlan.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlan.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Edge } from "./Edge"; ++import { SourceField } from "./SourceField"; ++import { DestinationField } from "./DestinationField"; + +@@ -12,9 +15,5 @@ export const JobExecutionPlan: core.serialization.ObjectSchema< + > = core.serialization.object({ +- fieldMapping: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Edge)), +- unmappedSourceFields: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).SourceField) +- ), +- unmappedDestinationFields: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).DestinationField) +- ), ++ fieldMapping: core.serialization.list(Edge), ++ unmappedSourceFields: core.serialization.list(SourceField), ++ unmappedDestinationFields: core.serialization.list(DestinationField), + programId: core.serialization.string().optional(), +@@ -24,5 +23,5 @@ export declare namespace JobExecutionPlan { + interface Raw { +- fieldMapping: serializers.Edge.Raw[]; +- unmappedSourceFields: serializers.SourceField.Raw[]; +- unmappedDestinationFields: serializers.DestinationField.Raw[]; ++ fieldMapping: Edge.Raw[]; ++ unmappedSourceFields: SourceField.Raw[]; ++ unmappedDestinationFields: DestinationField.Raw[]; + programId?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts b/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts +index 4a1ff58..adbf6ec 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanConfig.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Edge } from "./Edge"; ++import { SourceField } from "./SourceField"; ++import { DestinationField } from "./DestinationField"; + +@@ -12,11 +15,5 @@ export const JobExecutionPlanConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- fieldMapping: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Edge)) +- .optional(), +- unmappedSourceFields: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).SourceField)) +- .optional(), +- unmappedDestinationFields: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).DestinationField)) +- .optional(), ++ fieldMapping: core.serialization.list(Edge).optional(), ++ unmappedSourceFields: core.serialization.list(SourceField).optional(), ++ unmappedDestinationFields: core.serialization.list(DestinationField).optional(), + programId: core.serialization.string().optional(), +@@ -26,5 +23,5 @@ export declare namespace JobExecutionPlanConfig { + interface Raw { +- fieldMapping?: serializers.Edge.Raw[] | null; +- unmappedSourceFields?: serializers.SourceField.Raw[] | null; +- unmappedDestinationFields?: serializers.DestinationField.Raw[] | null; ++ fieldMapping?: Edge.Raw[] | null; ++ unmappedSourceFields?: SourceField.Raw[] | null; ++ unmappedDestinationFields?: DestinationField.Raw[] | null; + programId?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts b/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts +index 3297026..b0be6dd 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanConfigRequest.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FileId } from "../../commons/types/FileId"; ++import { JobId } from "../../commons/types/JobId"; ++import { JobExecutionPlanConfig } from "./JobExecutionPlanConfig"; + +@@ -13,11 +16,11 @@ export const JobExecutionPlanConfigRequest: core.serialization.ObjectSchema< + .object({ +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId), +- jobId: core.serialization.lazy(async () => (await import("../../..")).JobId), ++ fileId: FileId, ++ jobId: JobId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlanConfig)); ++ .extend(JobExecutionPlanConfig); + + export declare namespace JobExecutionPlanConfigRequest { +- interface Raw extends serializers.JobExecutionPlanConfig.Raw { +- fileId: serializers.FileId.Raw; +- jobId: serializers.JobId.Raw; ++ interface Raw extends JobExecutionPlanConfig.Raw { ++ fileId: FileId.Raw; ++ jobId: JobId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts b/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts +index 8fae6d3..79eb9f7 100644 +--- a/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts ++++ b/src/serialization/resources/jobs/types/JobExecutionPlanRequest.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FileId } from "../../commons/types/FileId"; ++import { JobId } from "../../commons/types/JobId"; ++import { JobExecutionPlan } from "./JobExecutionPlan"; + +@@ -13,11 +16,11 @@ export const JobExecutionPlanRequest: core.serialization.ObjectSchema< + .object({ +- fileId: core.serialization.lazy(async () => (await import("../../..")).FileId), +- jobId: core.serialization.lazy(async () => (await import("../../..")).JobId), ++ fileId: FileId, ++ jobId: JobId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlan)); ++ .extend(JobExecutionPlan); + + export declare namespace JobExecutionPlanRequest { +- interface Raw extends serializers.JobExecutionPlan.Raw { +- fileId: serializers.FileId.Raw; +- jobId: serializers.JobId.Raw; ++ interface Raw extends JobExecutionPlan.Raw { ++ fileId: FileId.Raw; ++ jobId: JobId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobOutcome.ts b/src/serialization/resources/jobs/types/JobOutcome.ts +index fc3fd24..f5fe6b9 100644 +--- a/src/serialization/resources/jobs/types/JobOutcome.ts ++++ b/src/serialization/resources/jobs/types/JobOutcome.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobOutcomeNext } from "./JobOutcomeNext"; + +@@ -12,3 +13,3 @@ export const JobOutcome: core.serialization.ObjectSchema (await import("../../..")).JobOutcomeNext).optional(), ++ next: JobOutcomeNext.optional(), + heading: core.serialization.string().optional(), +@@ -22,3 +23,3 @@ export declare namespace JobOutcome { + buttonText?: string | null; +- next?: serializers.JobOutcomeNext.Raw | null; ++ next?: JobOutcomeNext.Raw | null; + heading?: string | null; +diff --git a/src/serialization/resources/jobs/types/JobOutcomeNext.ts b/src/serialization/resources/jobs/types/JobOutcomeNext.ts +index fc2c959..b7cddc0 100644 +--- a/src/serialization/resources/jobs/types/JobOutcomeNext.ts ++++ b/src/serialization/resources/jobs/types/JobOutcomeNext.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobOutcomeNextId } from "./JobOutcomeNextId"; ++import { JobOutcomeNextUrl } from "./JobOutcomeNextUrl"; ++import { JobOutcomeNextDownload } from "./JobOutcomeNextDownload"; ++import { JobOutcomeNextWait } from "./JobOutcomeNextWait"; ++import { JobOutcomeNextSnapshot } from "./JobOutcomeNextSnapshot"; ++import { JobOutcomeNextRetry } from "./JobOutcomeNextRetry"; + +@@ -11,8 +17,8 @@ export const JobOutcomeNext: core.serialization.Schema (await import("../../..")).JobOutcomeNextId), +- url: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextUrl), +- download: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextDownload), +- wait: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextWait), +- snapshot: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextSnapshot), +- retry: core.serialization.lazyObject(async () => (await import("../../..")).JobOutcomeNextRetry), ++ id: JobOutcomeNextId, ++ url: JobOutcomeNextUrl, ++ download: JobOutcomeNextDownload, ++ wait: JobOutcomeNextWait, ++ snapshot: JobOutcomeNextSnapshot, ++ retry: JobOutcomeNextRetry, + }) +@@ -32,3 +38,3 @@ export declare namespace JobOutcomeNext { + +- interface Id extends serializers.JobOutcomeNextId.Raw { ++ interface Id extends JobOutcomeNextId.Raw { + type: "id"; +@@ -36,3 +42,3 @@ export declare namespace JobOutcomeNext { + +- interface Url extends serializers.JobOutcomeNextUrl.Raw { ++ interface Url extends JobOutcomeNextUrl.Raw { + type: "url"; +@@ -40,3 +46,3 @@ export declare namespace JobOutcomeNext { + +- interface Download extends serializers.JobOutcomeNextDownload.Raw { ++ interface Download extends JobOutcomeNextDownload.Raw { + type: "download"; +@@ -44,3 +50,3 @@ export declare namespace JobOutcomeNext { + +- interface Wait extends serializers.JobOutcomeNextWait.Raw { ++ interface Wait extends JobOutcomeNextWait.Raw { + type: "wait"; +@@ -48,3 +54,3 @@ export declare namespace JobOutcomeNext { + +- interface Snapshot extends serializers.JobOutcomeNextSnapshot.Raw { ++ interface Snapshot extends JobOutcomeNextSnapshot.Raw { + type: "snapshot"; +@@ -52,3 +58,3 @@ export declare namespace JobOutcomeNext { + +- interface Retry extends serializers.JobOutcomeNextRetry.Raw { ++ interface Retry extends JobOutcomeNextRetry.Raw { + type: "retry"; +diff --git a/src/serialization/resources/jobs/types/JobParts.ts b/src/serialization/resources/jobs/types/JobParts.ts +index 87207e8..3f6a1e8 100644 +--- a/src/serialization/resources/jobs/types/JobParts.ts ++++ b/src/serialization/resources/jobs/types/JobParts.ts +@@ -7,11 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobPartsArray } from "./JobPartsArray"; + + export const JobParts: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([ +- core.serialization.number(), +- core.serialization.lazy(async () => (await import("../../..")).JobPartsArray), +- ]); ++ core.serialization.undiscriminatedUnion([core.serialization.number(), JobPartsArray]); + + export declare namespace JobParts { +- type Raw = number | serializers.JobPartsArray.Raw; ++ type Raw = number | JobPartsArray.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobPlan.ts b/src/serialization/resources/jobs/types/JobPlan.ts +index 6f287d1..ceb95df 100644 +--- a/src/serialization/resources/jobs/types/JobPlan.ts ++++ b/src/serialization/resources/jobs/types/JobPlan.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Job } from "./Job"; ++import { JobExecutionPlan } from "./JobExecutionPlan"; + +@@ -10,4 +12,4 @@ export const JobPlan: core.serialization.ObjectSchema (await import("../../..")).Job), +- plan: core.serialization.lazyObject(async () => (await import("../../..")).JobExecutionPlan), ++ job: Job, ++ plan: JobExecutionPlan, + }); +@@ -16,4 +18,4 @@ export declare namespace JobPlan { + interface Raw { +- job: serializers.Job.Raw; +- plan: serializers.JobExecutionPlan.Raw; ++ job: Job.Raw; ++ plan: JobExecutionPlan.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobPlanResponse.ts b/src/serialization/resources/jobs/types/JobPlanResponse.ts +index f47c498..a12c053 100644 +--- a/src/serialization/resources/jobs/types/JobPlanResponse.ts ++++ b/src/serialization/resources/jobs/types/JobPlanResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobPlan } from "./JobPlan"; + +@@ -12,3 +13,3 @@ export const JobPlanResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).JobPlan), ++ data: JobPlan, + }); +@@ -17,3 +18,3 @@ export declare namespace JobPlanResponse { + interface Raw { +- data: serializers.JobPlan.Raw; ++ data: JobPlan.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobResponse.ts b/src/serialization/resources/jobs/types/JobResponse.ts +index 02341d1..6998886 100644 +--- a/src/serialization/resources/jobs/types/JobResponse.ts ++++ b/src/serialization/resources/jobs/types/JobResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Job } from "./Job"; + +@@ -10,3 +11,3 @@ export const JobResponse: core.serialization.ObjectSchema (await import("../../..")).Job), ++ data: Job, + }); +@@ -15,3 +16,3 @@ export declare namespace JobResponse { + interface Raw { +- data: serializers.Job.Raw; ++ data: Job.Raw; + } +diff --git a/src/serialization/resources/jobs/types/JobSplitDetails.ts b/src/serialization/resources/jobs/types/JobSplitDetails.ts +index 4e6ef1c..647f3cb 100644 +--- a/src/serialization/resources/jobs/types/JobSplitDetails.ts ++++ b/src/serialization/resources/jobs/types/JobSplitDetails.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobParts } from "./JobParts"; + +@@ -12,3 +13,3 @@ export const JobSplitDetails: core.serialization.ObjectSchema< + > = core.serialization.object({ +- parts: core.serialization.lazy(async () => (await import("../../..")).JobParts), ++ parts: JobParts, + runInParallel: core.serialization.boolean().optional(), +@@ -18,3 +19,3 @@ export declare namespace JobSplitDetails { + interface Raw { +- parts: serializers.JobParts.Raw; ++ parts: JobParts.Raw; + runInParallel?: boolean | null; +diff --git a/src/serialization/resources/jobs/types/JobSubject.ts b/src/serialization/resources/jobs/types/JobSubject.ts +index 9b40b0f..ea77ec2 100644 +--- a/src/serialization/resources/jobs/types/JobSubject.ts ++++ b/src/serialization/resources/jobs/types/JobSubject.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ResourceJobSubject } from "./ResourceJobSubject"; ++import { CollectionJobSubject } from "./CollectionJobSubject"; + +@@ -10,4 +12,4 @@ export const JobSubject: core.serialization.Schema (await import("../../..")).ResourceJobSubject), +- collection: core.serialization.lazyObject(async () => (await import("../../..")).CollectionJobSubject), ++ resource: ResourceJobSubject, ++ collection: CollectionJobSubject, + }) +@@ -21,3 +23,3 @@ export declare namespace JobSubject { + +- interface Resource extends serializers.ResourceJobSubject.Raw { ++ interface Resource extends ResourceJobSubject.Raw { + type: "resource"; +@@ -25,3 +27,3 @@ export declare namespace JobSubject { + +- interface Collection extends serializers.CollectionJobSubject.Raw { ++ interface Collection extends CollectionJobSubject.Raw { + type: "collection"; +diff --git a/src/serialization/resources/jobs/types/JobUpdate.ts b/src/serialization/resources/jobs/types/JobUpdate.ts +index f4d6a2a..7b3c636 100644 +--- a/src/serialization/resources/jobs/types/JobUpdate.ts ++++ b/src/serialization/resources/jobs/types/JobUpdate.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { JobUpdateConfig } from "./JobUpdateConfig"; ++import { JobStatus } from "./JobStatus"; + +@@ -10,4 +12,4 @@ export const JobUpdate: core.serialization.ObjectSchema (await import("../../..")).JobUpdateConfig).optional(), +- status: core.serialization.lazy(async () => (await import("../../..")).JobStatus).optional(), ++ config: JobUpdateConfig.optional(), ++ status: JobStatus.optional(), + progress: core.serialization.number().optional(), +@@ -19,4 +21,4 @@ export declare namespace JobUpdate { + interface Raw { +- config?: serializers.JobUpdateConfig.Raw | null; +- status?: serializers.JobStatus.Raw | null; ++ config?: JobUpdateConfig.Raw | null; ++ status?: JobStatus.Raw | null; + progress?: number | null; +diff --git a/src/serialization/resources/jobs/types/JobUpdateConfig.ts b/src/serialization/resources/jobs/types/JobUpdateConfig.ts +index fe4846d..01fc721 100644 +--- a/src/serialization/resources/jobs/types/JobUpdateConfig.ts ++++ b/src/serialization/resources/jobs/types/JobUpdateConfig.ts +@@ -7,2 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DeleteRecordsJobConfig } from "./DeleteRecordsJobConfig"; ++import { FileJobConfig } from "./FileJobConfig"; ++import { PipelineJobConfig } from "./PipelineJobConfig"; ++import { ExportJobConfig } from "./ExportJobConfig"; ++import { MutateJobConfig } from "./MutateJobConfig"; ++import { FindAndReplaceJobConfig } from "./FindAndReplaceJobConfig"; ++import { MappingProgramJobConfig } from "./MappingProgramJobConfig"; ++import { EmptyObject } from "./EmptyObject"; + +@@ -10,10 +18,10 @@ export const JobUpdateConfig: core.serialization.Schema (await import("../../..")).DeleteRecordsJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).FileJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).PipelineJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).ExportJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).MutateJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).FindAndReplaceJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).MappingProgramJobConfig), +- core.serialization.lazyObject(async () => (await import("../../..")).EmptyObject), ++ DeleteRecordsJobConfig, ++ FileJobConfig, ++ PipelineJobConfig, ++ ExportJobConfig, ++ MutateJobConfig, ++ FindAndReplaceJobConfig, ++ MappingProgramJobConfig, ++ EmptyObject, + ]); +@@ -22,10 +30,10 @@ export declare namespace JobUpdateConfig { + type Raw = +- | serializers.DeleteRecordsJobConfig.Raw +- | serializers.FileJobConfig.Raw +- | serializers.PipelineJobConfig.Raw +- | serializers.ExportJobConfig.Raw +- | serializers.MutateJobConfig.Raw +- | serializers.FindAndReplaceJobConfig.Raw +- | serializers.MappingProgramJobConfig.Raw +- | serializers.EmptyObject.Raw; ++ | DeleteRecordsJobConfig.Raw ++ | FileJobConfig.Raw ++ | PipelineJobConfig.Raw ++ | ExportJobConfig.Raw ++ | MutateJobConfig.Raw ++ | FindAndReplaceJobConfig.Raw ++ | MappingProgramJobConfig.Raw ++ | EmptyObject.Raw; + } +diff --git a/src/serialization/resources/jobs/types/ListJobsResponse.ts b/src/serialization/resources/jobs/types/ListJobsResponse.ts +index a6e41ec..b5530f7 100644 +--- a/src/serialization/resources/jobs/types/ListJobsResponse.ts ++++ b/src/serialization/resources/jobs/types/ListJobsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Job } from "./Job"; + +@@ -12,4 +14,4 @@ export const ListJobsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Job)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Job), + }); +@@ -18,4 +20,4 @@ export declare namespace ListJobsResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.Job.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: Job.Raw[]; + } +diff --git a/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts b/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts +index 69b786f..7544b66 100644 +--- a/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts ++++ b/src/serialization/resources/jobs/types/MappingProgramJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; + +@@ -12,4 +13,4 @@ export const MappingProgramJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- destinationSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ sourceSheetId: SheetId, ++ destinationSheetId: SheetId, + mappingRules: core.serialization.list( +@@ -21,4 +22,4 @@ export declare namespace MappingProgramJobConfig { + interface Raw { +- sourceSheetId: serializers.SheetId.Raw; +- destinationSheetId: serializers.SheetId.Raw; ++ sourceSheetId: SheetId.Raw; ++ destinationSheetId: SheetId.Raw; + mappingRules: Record[]; +diff --git a/src/serialization/resources/jobs/types/Metadata.ts b/src/serialization/resources/jobs/types/Metadata.ts +index 857c189..469d161 100644 +--- a/src/serialization/resources/jobs/types/Metadata.ts ++++ b/src/serialization/resources/jobs/types/Metadata.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Certainty } from "./Certainty"; + +@@ -10,3 +11,3 @@ export const Metadata: core.serialization.ObjectSchema (await import("../../..")).Certainty).optional(), ++ certainty: Certainty.optional(), + confidence: core.serialization.number().optional(), +@@ -17,3 +18,3 @@ export declare namespace Metadata { + interface Raw { +- certainty?: serializers.Certainty.Raw | null; ++ certainty?: Certainty.Raw | null; + confidence?: number | null; +diff --git a/src/serialization/resources/jobs/types/MutateJobConfig.ts b/src/serialization/resources/jobs/types/MutateJobConfig.ts +index 0693fed..eacea80 100644 +--- a/src/serialization/resources/jobs/types/MutateJobConfig.ts ++++ b/src/serialization/resources/jobs/types/MutateJobConfig.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { RecordId } from "../../commons/types/RecordId"; + +@@ -12,11 +18,13 @@ export const MutateJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ sheetId: SheetId, + mutateRecord: core.serialization.string(), + mutationId: core.serialization.string().optional(), +- filter: core.serialization.lazy(async () => (await import("../../..")).Filter).optional(), +- filterField: core.serialization.lazy(async () => (await import("../../..")).FilterField).optional(), +- searchValue: core.serialization.lazy(async () => (await import("../../..")).SearchValue).optional(), +- searchField: core.serialization.lazy(async () => (await import("../../..")).SearchField).optional(), ++ snapshotLabel: core.serialization.string().optional(), ++ snapshotId: core.serialization.string().optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), + q: core.serialization.string().optional(), +- ids: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordId)).optional(), ++ ids: core.serialization.list(RecordId).optional(), + }); +@@ -25,11 +33,13 @@ export declare namespace MutateJobConfig { + interface Raw { +- sheetId: serializers.SheetId.Raw; ++ sheetId: SheetId.Raw; + mutateRecord: string; + mutationId?: string | null; +- filter?: serializers.Filter.Raw | null; +- filterField?: serializers.FilterField.Raw | null; +- searchValue?: serializers.SearchValue.Raw | null; +- searchField?: serializers.SearchField.Raw | null; ++ snapshotLabel?: string | null; ++ snapshotId?: string | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; + q?: string | null; +- ids?: serializers.RecordId.Raw[] | null; ++ ids?: RecordId.Raw[] | null; + } +diff --git a/src/serialization/resources/jobs/types/PipelineJobConfig.ts b/src/serialization/resources/jobs/types/PipelineJobConfig.ts +index bdfe772..a100e02 100644 +--- a/src/serialization/resources/jobs/types/PipelineJobConfig.ts ++++ b/src/serialization/resources/jobs/types/PipelineJobConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; + +@@ -12,4 +13,4 @@ export const PipelineJobConfig: core.serialization.ObjectSchema< + > = core.serialization.object({ +- sourceSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- destinationSheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ sourceSheetId: SheetId, ++ destinationSheetId: SheetId, + }); +@@ -18,4 +19,4 @@ export declare namespace PipelineJobConfig { + interface Raw { +- sourceSheetId: serializers.SheetId.Raw; +- destinationSheetId: serializers.SheetId.Raw; ++ sourceSheetId: SheetId.Raw; ++ destinationSheetId: SheetId.Raw; + } +diff --git a/src/serialization/resources/jobs/types/SourceField.ts b/src/serialization/resources/jobs/types/SourceField.ts +index 4a4115f..a5010b2 100644 +--- a/src/serialization/resources/jobs/types/SourceField.ts ++++ b/src/serialization/resources/jobs/types/SourceField.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; + +@@ -10,3 +11,3 @@ export const SourceField: core.serialization.ObjectSchema (await import("../../..")).Property), ++ sourceField: Property, + preview: core.serialization.list(core.serialization.string()).optional(), +@@ -16,3 +17,3 @@ export declare namespace SourceField { + interface Raw { +- sourceField: serializers.Property.Raw; ++ sourceField: Property.Raw; + preview?: string[] | null; +diff --git a/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts b/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts +index 0164b1d..56bc173 100644 +--- a/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts ++++ b/src/serialization/resources/mapping/types/CreateMappingRulesRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -11,6 +12,6 @@ export const CreateMappingRulesRequest: core.serialization.Schema< + Flatfile.CreateMappingRulesRequest +-> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRuleConfig)); ++> = core.serialization.list(MappingRuleConfig); + + export declare namespace CreateMappingRulesRequest { +- type Raw = serializers.MappingRuleConfig.Raw[]; ++ type Raw = MappingRuleConfig.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/MappingRule.ts b/src/serialization/resources/mapping/types/MappingRule.ts +index 105b773..9d60a2f 100644 +--- a/src/serialization/resources/mapping/types/MappingRule.ts ++++ b/src/serialization/resources/mapping/types/MappingRule.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingId } from "../../commons/types/MappingId"; ++import { UserId } from "../../commons/types/UserId"; ++import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -11,5 +14,5 @@ export const MappingRule: core.serialization.ObjectSchema (await import("../../..")).MappingId), ++ id: MappingId, + confidence: core.serialization.number().optional(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdBy: UserId.optional(), + createdAt: core.serialization.date(), +@@ -18,9 +21,9 @@ export const MappingRule: core.serialization.ObjectSchema (await import("../../..")).MappingRuleConfig)); ++ .extend(MappingRuleConfig); + + export declare namespace MappingRule { +- interface Raw extends serializers.MappingRuleConfig.Raw { +- id: serializers.MappingId.Raw; ++ interface Raw extends MappingRuleConfig.Raw { ++ id: MappingId.Raw; + confidence?: number | null; +- createdBy?: serializers.UserId.Raw | null; ++ createdBy?: UserId.Raw | null; + createdAt: string; +diff --git a/src/serialization/resources/mapping/types/MappingRuleConfig.ts b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +index a7bf3b8..eafd8b3 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "../../commons/types/UserId"; + +@@ -16,3 +17,3 @@ export const MappingRuleConfig: core.serialization.ObjectSchema< + acceptedAt: core.serialization.date().optional(), +- acceptedBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ acceptedBy: UserId.optional(), + }); +@@ -25,3 +26,3 @@ export declare namespace MappingRuleConfig { + acceptedAt?: string | null; +- acceptedBy?: serializers.UserId.Raw | null; ++ acceptedBy?: UserId.Raw | null; + } +diff --git a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +index 2a9f566..feba62d 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleOrConfig.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingId } from "../../commons/types/MappingId"; ++import { UserId } from "../../commons/types/UserId"; ++import { MappingRuleConfig } from "./MappingRuleConfig"; + +@@ -13,5 +16,5 @@ export const MappingRuleOrConfig: core.serialization.ObjectSchema< + .object({ +- id: core.serialization.lazy(async () => (await import("../../..")).MappingId).optional(), ++ id: MappingId.optional(), + confidence: core.serialization.number().optional(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdBy: UserId.optional(), + createdAt: core.serialization.date().optional(), +@@ -20,9 +23,9 @@ export const MappingRuleOrConfig: core.serialization.ObjectSchema< + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).MappingRuleConfig)); ++ .extend(MappingRuleConfig); + + export declare namespace MappingRuleOrConfig { +- interface Raw extends serializers.MappingRuleConfig.Raw { +- id?: serializers.MappingId.Raw | null; ++ interface Raw extends MappingRuleConfig.Raw { ++ id?: MappingId.Raw | null; + confidence?: number | null; +- createdBy?: serializers.UserId.Raw | null; ++ createdBy?: UserId.Raw | null; + createdAt?: string | null; +diff --git a/src/serialization/resources/mapping/types/MappingRuleResponse.ts b/src/serialization/resources/mapping/types/MappingRuleResponse.ts +index 17af839..a8b193c 100644 +--- a/src/serialization/resources/mapping/types/MappingRuleResponse.ts ++++ b/src/serialization/resources/mapping/types/MappingRuleResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRule } from "./MappingRule"; + +@@ -12,3 +13,3 @@ export const MappingRuleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).MappingRule), ++ data: MappingRule, + }); +@@ -17,3 +18,3 @@ export declare namespace MappingRuleResponse { + interface Raw { +- data: serializers.MappingRule.Raw; ++ data: MappingRule.Raw; + } +diff --git a/src/serialization/resources/mapping/types/MappingRulesResponse.ts b/src/serialization/resources/mapping/types/MappingRulesResponse.ts +index aee3dd3..e4a3403 100644 +--- a/src/serialization/resources/mapping/types/MappingRulesResponse.ts ++++ b/src/serialization/resources/mapping/types/MappingRulesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRule } from "./MappingRule"; + +@@ -12,3 +13,3 @@ export const MappingRulesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRule)), ++ data: core.serialization.list(MappingRule), + }); +@@ -17,3 +18,3 @@ export declare namespace MappingRulesResponse { + interface Raw { +- data: serializers.MappingRule.Raw[]; ++ data: MappingRule.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/Program.ts b/src/serialization/resources/mapping/types/Program.ts +index 2355da9..f582437 100644 +--- a/src/serialization/resources/mapping/types/Program.ts ++++ b/src/serialization/resources/mapping/types/Program.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRuleOrConfig } from "./MappingRuleOrConfig"; ++import { FamilyId } from "../../commons/types/FamilyId"; ++import { UserId } from "../../commons/types/UserId"; ++import { ProgramSummary } from "./ProgramSummary"; + +@@ -10,13 +14,11 @@ export const Program: core.serialization.ObjectSchema (await import("../../..")).MappingRuleOrConfig) +- ), ++ rules: core.serialization.list(MappingRuleOrConfig), + id: core.serialization.string().optional(), + namespace: core.serialization.string().optional(), +- familyId: core.serialization.lazy(async () => (await import("../../..")).FamilyId).optional(), ++ familyId: FamilyId.optional(), + createdAt: core.serialization.date().optional(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdBy: UserId.optional(), + sourceKeys: core.serialization.list(core.serialization.string()), + destinationKeys: core.serialization.list(core.serialization.string()), +- summary: core.serialization.lazyObject(async () => (await import("../../..")).ProgramSummary).optional(), ++ summary: ProgramSummary.optional(), + accessToken: core.serialization.string().optional(), +@@ -26,11 +28,11 @@ export declare namespace Program { + interface Raw { +- rules: serializers.MappingRuleOrConfig.Raw[]; ++ rules: MappingRuleOrConfig.Raw[]; + id?: string | null; + namespace?: string | null; +- familyId?: serializers.FamilyId.Raw | null; ++ familyId?: FamilyId.Raw | null; + createdAt?: string | null; +- createdBy?: serializers.UserId.Raw | null; ++ createdBy?: UserId.Raw | null; + sourceKeys: string[]; + destinationKeys: string[]; +- summary?: serializers.ProgramSummary.Raw | null; ++ summary?: ProgramSummary.Raw | null; + accessToken?: string | null; +diff --git a/src/serialization/resources/mapping/types/ProgramConfig.ts b/src/serialization/resources/mapping/types/ProgramConfig.ts +index 5526272..f9e3006 100644 +--- a/src/serialization/resources/mapping/types/ProgramConfig.ts ++++ b/src/serialization/resources/mapping/types/ProgramConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetConfig } from "../../sheets/types/SheetConfig"; ++import { FamilyId } from "../../commons/types/FamilyId"; + +@@ -10,5 +12,5 @@ export const ProgramConfig: core.serialization.ObjectSchema (await import("../../..")).SheetConfig), +- destination: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig), +- familyId: core.serialization.lazy(async () => (await import("../../..")).FamilyId).optional(), ++ source: SheetConfig, ++ destination: SheetConfig, ++ familyId: FamilyId.optional(), + namespace: core.serialization.string().optional(), +@@ -19,5 +21,5 @@ export declare namespace ProgramConfig { + interface Raw { +- source: serializers.SheetConfig.Raw; +- destination: serializers.SheetConfig.Raw; +- familyId?: serializers.FamilyId.Raw | null; ++ source: SheetConfig.Raw; ++ destination: SheetConfig.Raw; ++ familyId?: FamilyId.Raw | null; + namespace?: string | null; +diff --git a/src/serialization/resources/mapping/types/ProgramResponse.ts b/src/serialization/resources/mapping/types/ProgramResponse.ts +index 57ee703..43b871a 100644 +--- a/src/serialization/resources/mapping/types/ProgramResponse.ts ++++ b/src/serialization/resources/mapping/types/ProgramResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Program } from "./Program"; + +@@ -12,3 +13,3 @@ export const ProgramResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Program), ++ data: Program, + }); +@@ -17,3 +18,3 @@ export declare namespace ProgramResponse { + interface Raw { +- data: serializers.Program.Raw; ++ data: Program.Raw; + } +diff --git a/src/serialization/resources/mapping/types/ProgramsResponse.ts b/src/serialization/resources/mapping/types/ProgramsResponse.ts +index ba4122f..ac31be9 100644 +--- a/src/serialization/resources/mapping/types/ProgramsResponse.ts ++++ b/src/serialization/resources/mapping/types/ProgramsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Program } from "./Program"; + +@@ -12,3 +13,3 @@ export const ProgramsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Program)), ++ data: core.serialization.list(Program), + }); +@@ -17,3 +18,3 @@ export declare namespace ProgramsResponse { + interface Raw { +- data: serializers.Program.Raw[]; ++ data: Program.Raw[]; + } +diff --git a/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +index 1096d42..5065740 100644 +--- a/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts ++++ b/src/serialization/resources/mapping/types/UpdateMappingRulesRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { MappingRule } from "./MappingRule"; + +@@ -11,6 +12,6 @@ export const UpdateMappingRulesRequest: core.serialization.Schema< + Flatfile.UpdateMappingRulesRequest +-> = core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).MappingRule)); ++> = core.serialization.list(MappingRule); + + export declare namespace UpdateMappingRulesRequest { +- type Raw = serializers.MappingRule.Raw[]; ++ type Raw = MappingRule.Raw[]; + } +diff --git a/src/serialization/resources/property/types/BaseProperty.ts b/src/serialization/resources/property/types/BaseProperty.ts +index 291fe34..bd9968f 100644 +--- a/src/serialization/resources/property/types/BaseProperty.ts ++++ b/src/serialization/resources/property/types/BaseProperty.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Constraint } from "./Constraint"; + +@@ -13,5 +14,3 @@ export const BaseProperty: core.serialization.ObjectSchema (await import("../../..")).Constraint)) +- .optional(), ++ constraints: core.serialization.list(Constraint).optional(), + readonly: core.serialization.boolean().optional(), +@@ -27,3 +26,3 @@ export declare namespace BaseProperty { + description?: string | null; +- constraints?: serializers.Constraint.Raw[] | null; ++ constraints?: Constraint.Raw[] | null; + readonly?: boolean | null; +diff --git a/src/serialization/resources/property/types/BooleanProperty.ts b/src/serialization/resources/property/types/BooleanProperty.ts +index 1166da4..e23277a 100644 +--- a/src/serialization/resources/property/types/BooleanProperty.ts ++++ b/src/serialization/resources/property/types/BooleanProperty.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { BooleanPropertyConfig } from "./BooleanPropertyConfig"; ++import { BaseProperty } from "./BaseProperty"; + +@@ -13,9 +15,9 @@ export const BooleanProperty: core.serialization.ObjectSchema< + .object({ +- config: core.serialization.lazyObject(async () => (await import("../../..")).BooleanPropertyConfig).optional(), ++ config: BooleanPropertyConfig.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); ++ .extend(BaseProperty); + + export declare namespace BooleanProperty { +- interface Raw extends serializers.BaseProperty.Raw { +- config?: serializers.BooleanPropertyConfig.Raw | null; ++ interface Raw extends BaseProperty.Raw { ++ config?: BooleanPropertyConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/Constraint.ts b/src/serialization/resources/property/types/Constraint.ts +index ae3a4ce..cdea10f 100644 +--- a/src/serialization/resources/property/types/Constraint.ts ++++ b/src/serialization/resources/property/types/Constraint.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UniqueConstraint } from "./UniqueConstraint"; ++import { ExternalConstraint } from "./ExternalConstraint"; + +@@ -11,5 +13,5 @@ export const Constraint: core.serialization.Schema (await import("../../..")).UniqueConstraint), ++ unique: UniqueConstraint, + computed: core.serialization.object({}), +- external: core.serialization.lazyObject(async () => (await import("../../..")).ExternalConstraint), ++ external: ExternalConstraint, + }) +@@ -27,3 +29,3 @@ export declare namespace Constraint { + +- interface Unique extends serializers.UniqueConstraint.Raw { ++ interface Unique extends UniqueConstraint.Raw { + type: "unique"; +@@ -35,3 +37,3 @@ export declare namespace Constraint { + +- interface External extends serializers.ExternalConstraint.Raw { ++ interface External extends ExternalConstraint.Raw { + type: "external"; +diff --git a/src/serialization/resources/property/types/DateProperty.ts b/src/serialization/resources/property/types/DateProperty.ts +index 9a1f13b..49335f8 100644 +--- a/src/serialization/resources/property/types/DateProperty.ts ++++ b/src/serialization/resources/property/types/DateProperty.ts +@@ -7,10 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { BaseProperty } from "./BaseProperty"; + + export const DateProperty: core.serialization.ObjectSchema = +- core.serialization +- .object({}) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); ++ core.serialization.object({}).extend(BaseProperty); + + export declare namespace DateProperty { +- interface Raw extends serializers.BaseProperty.Raw {} ++ interface Raw extends BaseProperty.Raw {} + } +diff --git a/src/serialization/resources/property/types/EnumProperty.ts b/src/serialization/resources/property/types/EnumProperty.ts +index 8758010..9b50466 100644 +--- a/src/serialization/resources/property/types/EnumProperty.ts ++++ b/src/serialization/resources/property/types/EnumProperty.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnumPropertyConfig } from "./EnumPropertyConfig"; ++import { BaseProperty } from "./BaseProperty"; ++import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -12,11 +15,11 @@ export const EnumProperty: core.serialization.ObjectSchema (await import("../../..")).EnumPropertyConfig), ++ config: EnumPropertyConfig, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); ++ .extend(BaseProperty) ++ .extend(ArrayableProperty); + + export declare namespace EnumProperty { +- interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { ++ interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { + multi?: boolean | null; +- config: serializers.EnumPropertyConfig.Raw; ++ config: EnumPropertyConfig.Raw; + } +diff --git a/src/serialization/resources/property/types/EnumPropertyConfig.ts b/src/serialization/resources/property/types/EnumPropertyConfig.ts +index 5744a85..5e83efb 100644 +--- a/src/serialization/resources/property/types/EnumPropertyConfig.ts ++++ b/src/serialization/resources/property/types/EnumPropertyConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EnumPropertyOption } from "./EnumPropertyOption"; + +@@ -13,5 +14,3 @@ export const EnumPropertyConfig: core.serialization.ObjectSchema< + allowCustom: core.serialization.boolean().optional(), +- options: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).EnumPropertyOption) +- ), ++ options: core.serialization.list(EnumPropertyOption), + }); +@@ -21,3 +20,3 @@ export declare namespace EnumPropertyConfig { + allowCustom?: boolean | null; +- options: serializers.EnumPropertyOption.Raw[]; ++ options: EnumPropertyOption.Raw[]; + } +diff --git a/src/serialization/resources/property/types/NumberProperty.ts b/src/serialization/resources/property/types/NumberProperty.ts +index 37ae4ac..5fe97d4 100644 +--- a/src/serialization/resources/property/types/NumberProperty.ts ++++ b/src/serialization/resources/property/types/NumberProperty.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { NumberConfig } from "./NumberConfig"; ++import { BaseProperty } from "./BaseProperty"; ++import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -11,10 +14,10 @@ export const NumberProperty: core.serialization.ObjectSchema (await import("../../..")).NumberConfig).optional(), ++ config: NumberConfig.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); ++ .extend(BaseProperty) ++ .extend(ArrayableProperty); + + export declare namespace NumberProperty { +- interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { +- config?: serializers.NumberConfig.Raw | null; ++ interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { ++ config?: NumberConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/Property.ts b/src/serialization/resources/property/types/Property.ts +index daa50a1..fa7c2c0 100644 +--- a/src/serialization/resources/property/types/Property.ts ++++ b/src/serialization/resources/property/types/Property.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { StringProperty } from "./StringProperty"; ++import { NumberProperty } from "./NumberProperty"; ++import { BooleanProperty } from "./BooleanProperty"; ++import { DateProperty } from "./DateProperty"; ++import { EnumProperty } from "./EnumProperty"; ++import { ReferenceProperty } from "./ReferenceProperty"; + +@@ -10,8 +16,8 @@ export const Property: core.serialization.Schema (await import("../../..")).StringProperty), +- number: core.serialization.lazyObject(async () => (await import("../../..")).NumberProperty), +- boolean: core.serialization.lazyObject(async () => (await import("../../..")).BooleanProperty), +- date: core.serialization.lazyObject(async () => (await import("../../..")).DateProperty), +- enum: core.serialization.lazyObject(async () => (await import("../../..")).EnumProperty), +- reference: core.serialization.lazyObject(async () => (await import("../../..")).ReferenceProperty), ++ string: StringProperty, ++ number: NumberProperty, ++ boolean: BooleanProperty, ++ date: DateProperty, ++ enum: EnumProperty, ++ reference: ReferenceProperty, + }) +@@ -31,3 +37,3 @@ export declare namespace Property { + +- interface String extends serializers.StringProperty.Raw { ++ interface String extends StringProperty.Raw { + type: "string"; +@@ -35,3 +41,3 @@ export declare namespace Property { + +- interface Number extends serializers.NumberProperty.Raw { ++ interface Number extends NumberProperty.Raw { + type: "number"; +@@ -39,3 +45,3 @@ export declare namespace Property { + +- interface Boolean extends serializers.BooleanProperty.Raw { ++ interface Boolean extends BooleanProperty.Raw { + type: "boolean"; +@@ -43,3 +49,3 @@ export declare namespace Property { + +- interface Date extends serializers.DateProperty.Raw { ++ interface Date extends DateProperty.Raw { + type: "date"; +@@ -47,3 +53,3 @@ export declare namespace Property { + +- interface Enum extends serializers.EnumProperty.Raw { ++ interface Enum extends EnumProperty.Raw { + type: "enum"; +@@ -51,3 +57,3 @@ export declare namespace Property { + +- interface Reference extends serializers.ReferenceProperty.Raw { ++ interface Reference extends ReferenceProperty.Raw { + type: "reference"; +diff --git a/src/serialization/resources/property/types/ReferenceProperty.ts b/src/serialization/resources/property/types/ReferenceProperty.ts +index cbc00cb..f0dd947 100644 +--- a/src/serialization/resources/property/types/ReferenceProperty.ts ++++ b/src/serialization/resources/property/types/ReferenceProperty.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ReferencePropertyConfig } from "./ReferencePropertyConfig"; ++import { BaseProperty } from "./BaseProperty"; ++import { ArrayableProperty } from "./ArrayableProperty"; + +@@ -13,10 +16,10 @@ export const ReferenceProperty: core.serialization.ObjectSchema< + .object({ +- config: core.serialization.lazyObject(async () => (await import("../../..")).ReferencePropertyConfig), ++ config: ReferencePropertyConfig, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).ArrayableProperty)); ++ .extend(BaseProperty) ++ .extend(ArrayableProperty); + + export declare namespace ReferenceProperty { +- interface Raw extends serializers.BaseProperty.Raw, serializers.ArrayableProperty.Raw { +- config: serializers.ReferencePropertyConfig.Raw; ++ interface Raw extends BaseProperty.Raw, ArrayableProperty.Raw { ++ config: ReferencePropertyConfig.Raw; + } +diff --git a/src/serialization/resources/property/types/ReferencePropertyConfig.ts b/src/serialization/resources/property/types/ReferencePropertyConfig.ts +index a1dee26..ec3ee54 100644 +--- a/src/serialization/resources/property/types/ReferencePropertyConfig.ts ++++ b/src/serialization/resources/property/types/ReferencePropertyConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ReferencePropertyRelationship } from "./ReferencePropertyRelationship"; + +@@ -14,3 +15,3 @@ export const ReferencePropertyConfig: core.serialization.ObjectSchema< + key: core.serialization.string(), +- relationship: core.serialization.lazy(async () => (await import("../../..")).ReferencePropertyRelationship), ++ relationship: ReferencePropertyRelationship, + }); +@@ -21,3 +22,3 @@ export declare namespace ReferencePropertyConfig { + key: string; +- relationship: serializers.ReferencePropertyRelationship.Raw; ++ relationship: ReferencePropertyRelationship.Raw; + } +diff --git a/src/serialization/resources/property/types/StringConfig.ts b/src/serialization/resources/property/types/StringConfig.ts +index 4bf5123..1587c3b 100644 +--- a/src/serialization/resources/property/types/StringConfig.ts ++++ b/src/serialization/resources/property/types/StringConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { StringConfigOptions } from "./StringConfigOptions"; + +@@ -10,3 +11,3 @@ export const StringConfig: core.serialization.ObjectSchema (await import("../../..")).StringConfigOptions), ++ size: StringConfigOptions, + }); +@@ -15,3 +16,3 @@ export declare namespace StringConfig { + interface Raw { +- size: serializers.StringConfigOptions.Raw; ++ size: StringConfigOptions.Raw; + } +diff --git a/src/serialization/resources/property/types/StringProperty.ts b/src/serialization/resources/property/types/StringProperty.ts +index 1f170d9..2e49118 100644 +--- a/src/serialization/resources/property/types/StringProperty.ts ++++ b/src/serialization/resources/property/types/StringProperty.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { StringConfig } from "./StringConfig"; ++import { BaseProperty } from "./BaseProperty"; + +@@ -11,9 +13,9 @@ export const StringProperty: core.serialization.ObjectSchema (await import("../../..")).StringConfig).optional(), ++ config: StringConfig.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).BaseProperty)); ++ .extend(BaseProperty); + + export declare namespace StringProperty { +- interface Raw extends serializers.BaseProperty.Raw { +- config?: serializers.StringConfig.Raw | null; ++ interface Raw extends BaseProperty.Raw { ++ config?: StringConfig.Raw | null; + } +diff --git a/src/serialization/resources/property/types/UniqueConstraint.ts b/src/serialization/resources/property/types/UniqueConstraint.ts +index 190596e..9406a3b 100644 +--- a/src/serialization/resources/property/types/UniqueConstraint.ts ++++ b/src/serialization/resources/property/types/UniqueConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UniqueConstraintConfig } from "./UniqueConstraintConfig"; + +@@ -12,3 +13,3 @@ export const UniqueConstraint: core.serialization.ObjectSchema< + > = core.serialization.object({ +- config: core.serialization.lazyObject(async () => (await import("../../..")).UniqueConstraintConfig).optional(), ++ config: UniqueConstraintConfig.optional(), + }); +@@ -17,3 +18,3 @@ export declare namespace UniqueConstraint { + interface Raw { +- config?: serializers.UniqueConstraintConfig.Raw | null; ++ config?: UniqueConstraintConfig.Raw | null; + } +diff --git a/src/serialization/resources/records/client/insert.ts b/src/serialization/resources/records/client/insert.ts +index 4cdbdce..2659f7b 100644 +--- a/src/serialization/resources/records/client/insert.ts ++++ b/src/serialization/resources/records/client/insert.ts +@@ -7,8 +7,10 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordData } from "../types/RecordData"; ++import { CellValue } from "../types/CellValue"; + + export const Request: core.serialization.Schema = +- core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).RecordData)); ++ core.serialization.list(RecordData); + + export declare namespace Request { +- type Raw = serializers.RecordData.Raw[]; ++ type Raw = RecordData.Raw[]; + } +diff --git a/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts b/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts +index 54bb0d6..3fe65e8 100644 +--- a/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts ++++ b/src/serialization/resources/records/client/requests/FindAndReplaceRecordRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { CellValueUnion } from "../../types/CellValueUnion"; + +@@ -12,4 +13,4 @@ export const FindAndReplaceRecordRequest: core.serialization.Schema< + > = core.serialization.object({ +- find: core.serialization.lazy(async () => (await import("../../../..")).CellValueUnion).optional(), +- replace: core.serialization.lazy(async () => (await import("../../../..")).CellValueUnion).optional(), ++ find: CellValueUnion.optional(), ++ replace: CellValueUnion.optional(), + fieldKey: core.serialization.string(), +@@ -19,4 +20,4 @@ export declare namespace FindAndReplaceRecordRequest { + interface Raw { +- find?: serializers.CellValueUnion.Raw | null; +- replace?: serializers.CellValueUnion.Raw | null; ++ find?: CellValueUnion.Raw | null; ++ replace?: CellValueUnion.Raw | null; + fieldKey: string; +diff --git a/src/serialization/resources/records/types/CellConfig.ts b/src/serialization/resources/records/types/CellConfig.ts +new file mode 100644 +index 0000000..b39ffbf +--- /dev/null ++++ b/src/serialization/resources/records/types/CellConfig.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const CellConfig: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ readonly: core.serialization.boolean().optional(), ++ }); ++ ++export declare namespace CellConfig { ++ interface Raw { ++ readonly?: boolean | null; ++ } ++} +diff --git a/src/serialization/resources/records/types/CellValue.ts b/src/serialization/resources/records/types/CellValue.ts +index e64ce52..7309dd9 100644 +--- a/src/serialization/resources/records/types/CellValue.ts ++++ b/src/serialization/resources/records/types/CellValue.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ValidationMessage } from "./ValidationMessage"; ++import { CellValueUnion } from "./CellValueUnion"; + +@@ -11,7 +13,5 @@ export const CellValue: core.serialization.ObjectSchema (await import("../../..")).ValidationMessage)) +- .optional(), ++ messages: core.serialization.list(ValidationMessage).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), +- value: core.serialization.lazy(async () => (await import("../../..")).CellValueUnion).optional(), ++ value: CellValueUnion.optional(), + layer: core.serialization.string().optional(), +@@ -23,5 +23,5 @@ export declare namespace CellValue { + valid?: boolean | null; +- messages?: serializers.ValidationMessage.Raw[] | null; ++ messages?: ValidationMessage.Raw[] | null; + metadata?: Record | null; +- value?: serializers.CellValueUnion.Raw | null; ++ value?: CellValueUnion.Raw | null; + layer?: string | null; +diff --git a/src/serialization/resources/records/types/CellValueWithLinks.ts b/src/serialization/resources/records/types/CellValueWithLinks.ts +index da1a316..67ee5b5 100644 +--- a/src/serialization/resources/records/types/CellValueWithLinks.ts ++++ b/src/serialization/resources/records/types/CellValueWithLinks.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Records } from "./Records"; ++import { CellValue } from "./CellValue"; ++import { Record_ } from "./Record_"; + +@@ -13,9 +16,9 @@ export const CellValueWithLinks: core.serialization.ObjectSchema< + .object({ +- links: core.serialization.lazy(async () => (await import("../../..")).Records).optional(), ++ links: Records.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace CellValueWithLinks { +- interface Raw extends serializers.CellValue.Raw { +- links?: serializers.Records.Raw | null; ++ interface Raw extends CellValue.Raw { ++ links?: Records.Raw | null; + } +diff --git a/src/serialization/resources/records/types/DiffData.ts b/src/serialization/resources/records/types/DiffData.ts +index 0a582ef..40aee0d 100644 +--- a/src/serialization/resources/records/types/DiffData.ts ++++ b/src/serialization/resources/records/types/DiffData.ts +@@ -7,11 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffValue } from "./DiffValue"; + + export const DiffData: core.serialization.Schema = +- core.serialization.record( +- core.serialization.string(), +- core.serialization.lazyObject(async () => (await import("../../..")).DiffValue) +- ); ++ core.serialization.record(core.serialization.string(), DiffValue); + + export declare namespace DiffData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/DiffRecord.ts b/src/serialization/resources/records/types/DiffRecord.ts +index cd635ae..a7293a8 100644 +--- a/src/serialization/resources/records/types/DiffRecord.ts ++++ b/src/serialization/resources/records/types/DiffRecord.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffData } from "./DiffData"; ++import { RecordBase } from "./RecordBase"; ++import { DiffValue } from "./DiffValue"; + +@@ -11,9 +14,9 @@ export const DiffRecord: core.serialization.ObjectSchema (await import("../../..")).DiffData), ++ values: DiffData, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).RecordBase)); ++ .extend(RecordBase); + + export declare namespace DiffRecord { +- interface Raw extends serializers.RecordBase.Raw { +- values: serializers.DiffData.Raw; ++ interface Raw extends RecordBase.Raw { ++ values: DiffData.Raw; + } +diff --git a/src/serialization/resources/records/types/DiffRecords.ts b/src/serialization/resources/records/types/DiffRecords.ts +index 4dd3909..081f0cf 100644 +--- a/src/serialization/resources/records/types/DiffRecords.ts ++++ b/src/serialization/resources/records/types/DiffRecords.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffRecord } from "./DiffRecord"; + + export const DiffRecords: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).DiffRecord)); ++ core.serialization.list(DiffRecord); + + export declare namespace DiffRecords { +- type Raw = serializers.DiffRecord.Raw[]; ++ type Raw = DiffRecord.Raw[]; + } +diff --git a/src/serialization/resources/records/types/DiffRecordsResponse.ts b/src/serialization/resources/records/types/DiffRecordsResponse.ts +index 4c36098..0a3bc84 100644 +--- a/src/serialization/resources/records/types/DiffRecordsResponse.ts ++++ b/src/serialization/resources/records/types/DiffRecordsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { DiffRecords } from "./DiffRecords"; ++import { DiffRecord } from "./DiffRecord"; + +@@ -12,3 +14,3 @@ export const DiffRecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazy(async () => (await import("../../..")).DiffRecords), ++ data: DiffRecords, + }); +@@ -17,3 +19,3 @@ export declare namespace DiffRecordsResponse { + interface Raw { +- data: serializers.DiffRecords.Raw; ++ data: DiffRecords.Raw; + } +diff --git a/src/serialization/resources/records/types/DiffValue.ts b/src/serialization/resources/records/types/DiffValue.ts +index 5ac9d92..1050c0a 100644 +--- a/src/serialization/resources/records/types/DiffValue.ts ++++ b/src/serialization/resources/records/types/DiffValue.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueUnion } from "./CellValueUnion"; ++import { CellValue } from "./CellValue"; + +@@ -11,9 +13,9 @@ export const DiffValue: core.serialization.ObjectSchema (await import("../../..")).CellValueUnion).optional(), ++ snapshotValue: CellValueUnion.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace DiffValue { +- interface Raw extends serializers.CellValue.Raw { +- snapshotValue?: serializers.CellValueUnion.Raw | null; ++ interface Raw extends CellValue.Raw { ++ snapshotValue?: CellValueUnion.Raw | null; + } +diff --git a/src/serialization/resources/records/types/GetRecordsResponse.ts b/src/serialization/resources/records/types/GetRecordsResponse.ts +index 330b238..d3b4762 100644 +--- a/src/serialization/resources/records/types/GetRecordsResponse.ts ++++ b/src/serialization/resources/records/types/GetRecordsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GetRecordsResponseData } from "./GetRecordsResponseData"; + +@@ -12,3 +13,3 @@ export const GetRecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).GetRecordsResponseData), ++ data: GetRecordsResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace GetRecordsResponse { + interface Raw { +- data: serializers.GetRecordsResponseData.Raw; ++ data: GetRecordsResponseData.Raw; + } +diff --git a/src/serialization/resources/records/types/GetRecordsResponseData.ts b/src/serialization/resources/records/types/GetRecordsResponseData.ts +index 5b258c7..1f6df5f 100644 +--- a/src/serialization/resources/records/types/GetRecordsResponseData.ts ++++ b/src/serialization/resources/records/types/GetRecordsResponseData.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordsWithLinks } from "./RecordsWithLinks"; ++import { RecordCounts } from "./RecordCounts"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SuccessData } from "../../commons/types/SuccessData"; ++import { RecordWithLinks } from "./RecordWithLinks"; + +@@ -13,15 +19,15 @@ export const GetRecordsResponseData: core.serialization.ObjectSchema< + .object({ +- records: core.serialization.lazy(async () => (await import("../../..")).RecordsWithLinks), +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ records: RecordsWithLinks, ++ counts: RecordCounts.optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SuccessData)); ++ .extend(SuccessData); + + export declare namespace GetRecordsResponseData { +- interface Raw extends serializers.SuccessData.Raw { +- records: serializers.RecordsWithLinks.Raw; +- counts?: serializers.RecordCounts.Raw | null; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; ++ interface Raw extends SuccessData.Raw { ++ records: RecordsWithLinks.Raw; ++ counts?: RecordCounts.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; + } +diff --git a/src/serialization/resources/records/types/RecordBase.ts b/src/serialization/resources/records/types/RecordBase.ts +index 2632171..ff0a524 100644 +--- a/src/serialization/resources/records/types/RecordBase.ts ++++ b/src/serialization/resources/records/types/RecordBase.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordId } from "../../commons/types/RecordId"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { ValidationMessage } from "./ValidationMessage"; ++import { RecordConfig } from "./RecordConfig"; + +@@ -10,10 +15,9 @@ export const RecordBase: core.serialization.ObjectSchema (await import("../../..")).RecordId), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ id: RecordId, ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), + valid: core.serialization.boolean().optional(), +- messages: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ValidationMessage)) +- .optional(), ++ messages: core.serialization.list(ValidationMessage).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), ++ config: RecordConfig.optional(), + }); +@@ -22,8 +26,9 @@ export declare namespace RecordBase { + interface Raw { +- id: serializers.RecordId.Raw; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; ++ id: RecordId.Raw; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; + valid?: boolean | null; +- messages?: serializers.ValidationMessage.Raw[] | null; ++ messages?: ValidationMessage.Raw[] | null; + metadata?: Record | null; ++ config?: RecordConfig.Raw | null; + } +diff --git a/src/serialization/resources/records/types/RecordConfig.ts b/src/serialization/resources/records/types/RecordConfig.ts +new file mode 100644 +index 0000000..baae44a +--- /dev/null ++++ b/src/serialization/resources/records/types/RecordConfig.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { CellConfig } from "./CellConfig"; ++ ++export const RecordConfig: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ readonly: core.serialization.boolean().optional(), ++ fields: core.serialization.record(core.serialization.string(), CellConfig).optional(), ++ }); ++ ++export declare namespace RecordConfig { ++ interface Raw { ++ readonly?: boolean | null; ++ fields?: Record | null; ++ } ++} +diff --git a/src/serialization/resources/records/types/RecordCounts.ts b/src/serialization/resources/records/types/RecordCounts.ts +index 0ab7c36..8522483 100644 +--- a/src/serialization/resources/records/types/RecordCounts.ts ++++ b/src/serialization/resources/records/types/RecordCounts.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { FieldRecordCounts } from "./FieldRecordCounts"; + +@@ -14,8 +15,3 @@ export const RecordCounts: core.serialization.ObjectSchema (await import("../../..")).FieldRecordCounts) +- ) +- .optional(), ++ byField: core.serialization.record(core.serialization.string(), FieldRecordCounts).optional(), + }); +@@ -28,3 +24,3 @@ export declare namespace RecordCounts { + errorsByField?: Record | null; +- byField?: Record | null; ++ byField?: Record | null; + } +diff --git a/src/serialization/resources/records/types/RecordData.ts b/src/serialization/resources/records/types/RecordData.ts +index 6cc2b65..d1f50a0 100644 +--- a/src/serialization/resources/records/types/RecordData.ts ++++ b/src/serialization/resources/records/types/RecordData.ts +@@ -7,11 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValue } from "./CellValue"; + + export const RecordData: core.serialization.Schema = +- core.serialization.record( +- core.serialization.string(), +- core.serialization.lazyObject(async () => (await import("../../..")).CellValue) +- ); ++ core.serialization.record(core.serialization.string(), CellValue); + + export declare namespace RecordData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/RecordDataWithLinks.ts b/src/serialization/resources/records/types/RecordDataWithLinks.ts +index 84354e5..47aedbb 100644 +--- a/src/serialization/resources/records/types/RecordDataWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordDataWithLinks.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueWithLinks } from "./CellValueWithLinks"; + +@@ -11,9 +12,6 @@ export const RecordDataWithLinks: core.serialization.Schema< + Flatfile.RecordDataWithLinks +-> = core.serialization.record( +- core.serialization.string(), +- core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithLinks) +-); ++> = core.serialization.record(core.serialization.string(), CellValueWithLinks); + + export declare namespace RecordDataWithLinks { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/records/types/RecordWithLinks.ts b/src/serialization/resources/records/types/RecordWithLinks.ts +index 7a03350..df7dfb7 100644 +--- a/src/serialization/resources/records/types/RecordWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordWithLinks.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordId } from "../../commons/types/RecordId"; ++import { RecordDataWithLinks } from "./RecordDataWithLinks"; ++import { ValidationMessage } from "./ValidationMessage"; ++import { RecordConfig } from "./RecordConfig"; ++import { CellValueWithLinks } from "./CellValueWithLinks"; + +@@ -12,9 +17,8 @@ export const RecordWithLinks: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).RecordId), +- values: core.serialization.lazy(async () => (await import("../../..")).RecordDataWithLinks), ++ id: RecordId, ++ values: RecordDataWithLinks, + valid: core.serialization.boolean().optional(), +- messages: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).ValidationMessage)) +- .optional(), ++ messages: core.serialization.list(ValidationMessage).optional(), + metadata: core.serialization.record(core.serialization.string(), core.serialization.any()).optional(), ++ config: RecordConfig.optional(), + }); +@@ -23,7 +27,8 @@ export declare namespace RecordWithLinks { + interface Raw { +- id: serializers.RecordId.Raw; +- values: serializers.RecordDataWithLinks.Raw; ++ id: RecordId.Raw; ++ values: RecordDataWithLinks.Raw; + valid?: boolean | null; +- messages?: serializers.ValidationMessage.Raw[] | null; ++ messages?: ValidationMessage.Raw[] | null; + metadata?: Record | null; ++ config?: RecordConfig.Raw | null; + } +diff --git a/src/serialization/resources/records/types/Record_.ts b/src/serialization/resources/records/types/Record_.ts +index ed545bc..ac41762 100644 +--- a/src/serialization/resources/records/types/Record_.ts ++++ b/src/serialization/resources/records/types/Record_.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordData } from "./RecordData"; ++import { RecordBase } from "./RecordBase"; ++import { CellValue } from "./CellValue"; + +@@ -10,9 +13,9 @@ export const Record_: core.serialization.ObjectSchema (await import("../../..")).RecordData), ++ values: RecordData, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).RecordBase)); ++ .extend(RecordBase); + + export declare namespace Record_ { +- interface Raw extends serializers.RecordBase.Raw { +- values: serializers.RecordData.Raw; ++ interface Raw extends RecordBase.Raw { ++ values: RecordData.Raw; + } +diff --git a/src/serialization/resources/records/types/Records.ts b/src/serialization/resources/records/types/Records.ts +index 3d4b638..5396531 100644 +--- a/src/serialization/resources/records/types/Records.ts ++++ b/src/serialization/resources/records/types/Records.ts +@@ -7,9 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Record_ } from "./Record_"; + +-export const Records: core.serialization.Schema = core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).Record_) +-); ++export const Records: core.serialization.Schema = ++ core.serialization.list(Record_); + + export declare namespace Records { +- type Raw = serializers.Record_.Raw[]; ++ type Raw = Record_.Raw[]; + } +diff --git a/src/serialization/resources/records/types/RecordsResponse.ts b/src/serialization/resources/records/types/RecordsResponse.ts +index 1984d89..ceefccf 100644 +--- a/src/serialization/resources/records/types/RecordsResponse.ts ++++ b/src/serialization/resources/records/types/RecordsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordsResponseData } from "./RecordsResponseData"; + +@@ -12,3 +13,3 @@ export const RecordsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).RecordsResponseData), ++ data: RecordsResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace RecordsResponse { + interface Raw { +- data: serializers.RecordsResponseData.Raw; ++ data: RecordsResponseData.Raw; + } +diff --git a/src/serialization/resources/records/types/RecordsResponseData.ts b/src/serialization/resources/records/types/RecordsResponseData.ts +index 916cf54..9644a9a 100644 +--- a/src/serialization/resources/records/types/RecordsResponseData.ts ++++ b/src/serialization/resources/records/types/RecordsResponseData.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordsWithLinks } from "./RecordsWithLinks"; ++import { RecordCounts } from "./RecordCounts"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SuccessData } from "../../commons/types/SuccessData"; ++import { RecordWithLinks } from "./RecordWithLinks"; + +@@ -13,15 +19,15 @@ export const RecordsResponseData: core.serialization.ObjectSchema< + .object({ +- records: core.serialization.lazy(async () => (await import("../../..")).RecordsWithLinks).optional(), +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), +- versionId: core.serialization.lazy(async () => (await import("../../..")).VersionId).optional(), +- commitId: core.serialization.lazy(async () => (await import("../../..")).CommitId).optional(), ++ records: RecordsWithLinks.optional(), ++ counts: RecordCounts.optional(), ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SuccessData)); ++ .extend(SuccessData); + + export declare namespace RecordsResponseData { +- interface Raw extends serializers.SuccessData.Raw { +- records?: serializers.RecordsWithLinks.Raw | null; +- counts?: serializers.RecordCounts.Raw | null; +- versionId?: serializers.VersionId.Raw | null; +- commitId?: serializers.CommitId.Raw | null; ++ interface Raw extends SuccessData.Raw { ++ records?: RecordsWithLinks.Raw | null; ++ counts?: RecordCounts.Raw | null; ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; + } +diff --git a/src/serialization/resources/records/types/RecordsWithLinks.ts b/src/serialization/resources/records/types/RecordsWithLinks.ts +index e038b8b..b28d744 100644 +--- a/src/serialization/resources/records/types/RecordsWithLinks.ts ++++ b/src/serialization/resources/records/types/RecordsWithLinks.ts +@@ -7,8 +7,9 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordWithLinks } from "./RecordWithLinks"; + + export const RecordsWithLinks: core.serialization.Schema = +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).RecordWithLinks)); ++ core.serialization.list(RecordWithLinks); + + export declare namespace RecordsWithLinks { +- type Raw = serializers.RecordWithLinks.Raw[]; ++ type Raw = RecordWithLinks.Raw[]; + } +diff --git a/src/serialization/resources/records/types/ValidationMessage.ts b/src/serialization/resources/records/types/ValidationMessage.ts +index c8d5ade..7a34f9f 100644 +--- a/src/serialization/resources/records/types/ValidationMessage.ts ++++ b/src/serialization/resources/records/types/ValidationMessage.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ValidationType } from "./ValidationType"; ++import { ValidationSource } from "./ValidationSource"; + +@@ -12,4 +14,4 @@ export const ValidationMessage: core.serialization.ObjectSchema< + > = core.serialization.object({ +- type: core.serialization.lazy(async () => (await import("../../..")).ValidationType).optional(), +- source: core.serialization.lazy(async () => (await import("../../..")).ValidationSource).optional(), ++ type: ValidationType.optional(), ++ source: ValidationSource.optional(), + message: core.serialization.string().optional(), +@@ -19,4 +21,4 @@ export declare namespace ValidationMessage { + interface Raw { +- type?: serializers.ValidationType.Raw | null; +- source?: serializers.ValidationSource.Raw | null; ++ type?: ValidationType.Raw | null; ++ source?: ValidationSource.Raw | null; + message?: string | null; +diff --git a/src/serialization/resources/records/types/index.ts b/src/serialization/resources/records/types/index.ts +index 4b1f724..c231dae 100644 +--- a/src/serialization/resources/records/types/index.ts ++++ b/src/serialization/resources/records/types/index.ts +@@ -18,2 +18,4 @@ export * from "./DiffRecordsResponse"; + export * from "./DiffRecords"; ++export * from "./RecordConfig"; ++export * from "./CellConfig"; + export * from "./DiffRecord"; +diff --git a/src/serialization/resources/roles/types/ActorIdUnion.ts b/src/serialization/resources/roles/types/ActorIdUnion.ts +index f1dfdbd..c36a440 100644 +--- a/src/serialization/resources/roles/types/ActorIdUnion.ts ++++ b/src/serialization/resources/roles/types/ActorIdUnion.ts +@@ -7,12 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "../../commons/types/UserId"; ++import { AgentId } from "../../commons/types/AgentId"; ++import { GuestId } from "../../commons/types/GuestId"; + + export const ActorIdUnion: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([ +- core.serialization.lazy(async () => (await import("../../..")).UserId), +- core.serialization.lazy(async () => (await import("../../..")).AgentId), +- core.serialization.lazy(async () => (await import("../../..")).GuestId), +- ]); ++ core.serialization.undiscriminatedUnion([UserId, AgentId, GuestId]); + + export declare namespace ActorIdUnion { +- type Raw = serializers.UserId.Raw | serializers.AgentId.Raw | serializers.GuestId.Raw; ++ type Raw = UserId.Raw | AgentId.Raw | GuestId.Raw; + } +diff --git a/src/serialization/resources/roles/types/ActorRoleResponse.ts b/src/serialization/resources/roles/types/ActorRoleResponse.ts +index 0027449..30cf630 100644 +--- a/src/serialization/resources/roles/types/ActorRoleResponse.ts ++++ b/src/serialization/resources/roles/types/ActorRoleResponse.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActorRoleId } from "../../commons/types/ActorRoleId"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { ActorIdUnion } from "./ActorIdUnion"; ++import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -12,6 +16,6 @@ export const ActorRoleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), +- roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), +- actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), +- resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ id: ActorRoleId, ++ roleId: RoleId, ++ actorId: ActorIdUnion, ++ resourceId: ResourceIdUnion, + createdAt: core.serialization.date(), +@@ -22,6 +26,6 @@ export declare namespace ActorRoleResponse { + interface Raw { +- id: serializers.ActorRoleId.Raw; +- roleId: serializers.RoleId.Raw; +- actorId: serializers.ActorIdUnion.Raw; +- resourceId: serializers.ResourceIdUnion.Raw; ++ id: ActorRoleId.Raw; ++ roleId: RoleId.Raw; ++ actorId: ActorIdUnion.Raw; ++ resourceId: ResourceIdUnion.Raw; + createdAt: string; +diff --git a/src/serialization/resources/roles/types/AssignActorRoleRequest.ts b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +index fad27ea..9450608 100644 +--- a/src/serialization/resources/roles/types/AssignActorRoleRequest.ts ++++ b/src/serialization/resources/roles/types/AssignActorRoleRequest.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -12,4 +14,4 @@ export const AssignActorRoleRequest: core.serialization.ObjectSchema< + > = core.serialization.object({ +- roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), +- resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ roleId: RoleId, ++ resourceId: ResourceIdUnion, + }); +@@ -18,4 +20,4 @@ export declare namespace AssignActorRoleRequest { + interface Raw { +- roleId: serializers.RoleId.Raw; +- resourceId: serializers.ResourceIdUnion.Raw; ++ roleId: RoleId.Raw; ++ resourceId: ResourceIdUnion.Raw; + } +diff --git a/src/serialization/resources/roles/types/AssignRoleResponse.ts b/src/serialization/resources/roles/types/AssignRoleResponse.ts +index f868ddc..e54cbd7 100644 +--- a/src/serialization/resources/roles/types/AssignRoleResponse.ts ++++ b/src/serialization/resources/roles/types/AssignRoleResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AssignRoleResponseData } from "./AssignRoleResponseData"; + +@@ -12,3 +13,3 @@ export const AssignRoleResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).AssignRoleResponseData), ++ data: AssignRoleResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace AssignRoleResponse { + interface Raw { +- data: serializers.AssignRoleResponseData.Raw; ++ data: AssignRoleResponseData.Raw; + } +diff --git a/src/serialization/resources/roles/types/AssignRoleResponseData.ts b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +index 6cd2a5a..94ae119 100644 +--- a/src/serialization/resources/roles/types/AssignRoleResponseData.ts ++++ b/src/serialization/resources/roles/types/AssignRoleResponseData.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActorRoleId } from "../../commons/types/ActorRoleId"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { ActorIdUnion } from "./ActorIdUnion"; ++import { ResourceIdUnion } from "./ResourceIdUnion"; + +@@ -12,6 +16,6 @@ export const AssignRoleResponseData: core.serialization.ObjectSchema< + > = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).ActorRoleId), +- roleId: core.serialization.lazy(async () => (await import("../../..")).RoleId), +- actorId: core.serialization.lazy(async () => (await import("../../..")).ActorIdUnion), +- resourceId: core.serialization.lazy(async () => (await import("../../..")).ResourceIdUnion), ++ id: ActorRoleId, ++ roleId: RoleId, ++ actorId: ActorIdUnion, ++ resourceId: ResourceIdUnion, + createdAt: core.serialization.date(), +@@ -22,6 +26,6 @@ export declare namespace AssignRoleResponseData { + interface Raw { +- id: serializers.ActorRoleId.Raw; +- roleId: serializers.RoleId.Raw; +- actorId: serializers.ActorIdUnion.Raw; +- resourceId: serializers.ResourceIdUnion.Raw; ++ id: ActorRoleId.Raw; ++ roleId: RoleId.Raw; ++ actorId: ActorIdUnion.Raw; ++ resourceId: ResourceIdUnion.Raw; + createdAt: string; +diff --git a/src/serialization/resources/roles/types/ListActorRolesResponse.ts b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +index 21b0571..b79c703 100644 +--- a/src/serialization/resources/roles/types/ListActorRolesResponse.ts ++++ b/src/serialization/resources/roles/types/ListActorRolesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ActorRoleResponse } from "./ActorRoleResponse"; + +@@ -12,5 +13,3 @@ export const ListActorRolesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list( +- core.serialization.lazyObject(async () => (await import("../../..")).ActorRoleResponse) +- ), ++ data: core.serialization.list(ActorRoleResponse), + }); +@@ -19,3 +18,3 @@ export declare namespace ListActorRolesResponse { + interface Raw { +- data: serializers.ActorRoleResponse.Raw[]; ++ data: ActorRoleResponse.Raw[]; + } +diff --git a/src/serialization/resources/roles/types/ListRolesResponse.ts b/src/serialization/resources/roles/types/ListRolesResponse.ts +index 988fc50..6176a87 100644 +--- a/src/serialization/resources/roles/types/ListRolesResponse.ts ++++ b/src/serialization/resources/roles/types/ListRolesResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RoleResponse } from "./RoleResponse"; + +@@ -12,3 +13,3 @@ export const ListRolesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).RoleResponse)), ++ data: core.serialization.list(RoleResponse), + }); +@@ -17,3 +18,3 @@ export declare namespace ListRolesResponse { + interface Raw { +- data: serializers.RoleResponse.Raw[]; ++ data: RoleResponse.Raw[]; + } +diff --git a/src/serialization/resources/roles/types/ResourceIdUnion.ts b/src/serialization/resources/roles/types/ResourceIdUnion.ts +index 3ad9a46..9632bdc 100644 +--- a/src/serialization/resources/roles/types/ResourceIdUnion.ts ++++ b/src/serialization/resources/roles/types/ResourceIdUnion.ts +@@ -7,12 +7,11 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; + + export const ResourceIdUnion: core.serialization.Schema = +- core.serialization.undiscriminatedUnion([ +- core.serialization.lazy(async () => (await import("../../..")).AccountId), +- core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), +- core.serialization.lazy(async () => (await import("../../..")).SpaceId), +- ]); ++ core.serialization.undiscriminatedUnion([AccountId, EnvironmentId, SpaceId]); + + export declare namespace ResourceIdUnion { +- type Raw = serializers.AccountId.Raw | serializers.EnvironmentId.Raw | serializers.SpaceId.Raw; ++ type Raw = AccountId.Raw | EnvironmentId.Raw | SpaceId.Raw; + } +diff --git a/src/serialization/resources/roles/types/RoleResponse.ts b/src/serialization/resources/roles/types/RoleResponse.ts +index a96138a..b7391e8 100644 +--- a/src/serialization/resources/roles/types/RoleResponse.ts ++++ b/src/serialization/resources/roles/types/RoleResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RoleId } from "../../commons/types/RoleId"; ++import { AccountId } from "../../commons/types/AccountId"; + +@@ -10,5 +12,5 @@ export const RoleResponse: core.serialization.ObjectSchema (await import("../../..")).RoleId), ++ id: RoleId, + name: core.serialization.string(), +- accountId: core.serialization.lazy(async () => (await import("../../..")).AccountId), ++ accountId: AccountId, + createdAt: core.serialization.date(), +@@ -19,5 +21,5 @@ export declare namespace RoleResponse { + interface Raw { +- id: serializers.RoleId.Raw; ++ id: RoleId.Raw; + name: string; +- accountId: serializers.AccountId.Raw; ++ accountId: AccountId.Raw; + createdAt: string; +diff --git a/src/serialization/resources/secrets/types/Secret.ts b/src/serialization/resources/secrets/types/Secret.ts +index 8ee44ca..a261623 100644 +--- a/src/serialization/resources/secrets/types/Secret.ts ++++ b/src/serialization/resources/secrets/types/Secret.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SecretId } from "../../commons/types/SecretId"; ++import { WriteSecret } from "./WriteSecret"; + +@@ -10,9 +12,9 @@ export const Secret: core.serialization.ObjectSchema (await import("../../..")).SecretId), ++ id: SecretId, + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).WriteSecret)); ++ .extend(WriteSecret); + + export declare namespace Secret { +- interface Raw extends serializers.WriteSecret.Raw { +- id: serializers.SecretId.Raw; ++ interface Raw extends WriteSecret.Raw { ++ id: SecretId.Raw; + } +diff --git a/src/serialization/resources/secrets/types/SecretsResponse.ts b/src/serialization/resources/secrets/types/SecretsResponse.ts +index ae2a03e..93cdea3 100644 +--- a/src/serialization/resources/secrets/types/SecretsResponse.ts ++++ b/src/serialization/resources/secrets/types/SecretsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Secret } from "./Secret"; + +@@ -12,3 +13,3 @@ export const SecretsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Secret)), ++ data: core.serialization.list(Secret), + }); +@@ -17,3 +18,3 @@ export declare namespace SecretsResponse { + interface Raw { +- data: serializers.Secret.Raw[]; ++ data: Secret.Raw[]; + } +diff --git a/src/serialization/resources/secrets/types/WriteSecret.ts b/src/serialization/resources/secrets/types/WriteSecret.ts +index 31c1232..ed67737 100644 +--- a/src/serialization/resources/secrets/types/WriteSecret.ts ++++ b/src/serialization/resources/secrets/types/WriteSecret.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SecretName } from "./SecretName"; ++import { SecretValue } from "./SecretValue"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SpaceId } from "../../commons/types/SpaceId"; + +@@ -10,6 +14,6 @@ export const WriteSecret: core.serialization.ObjectSchema (await import("../../..")).SecretName), +- value: core.serialization.lazy(async () => (await import("../../..")).SecretValue), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), ++ name: SecretName, ++ value: SecretValue, ++ environmentId: EnvironmentId.optional(), ++ spaceId: SpaceId.optional(), + }); +@@ -18,6 +22,6 @@ export declare namespace WriteSecret { + interface Raw { +- name: serializers.SecretName.Raw; +- value: serializers.SecretValue.Raw; +- environmentId?: serializers.EnvironmentId.Raw | null; +- spaceId?: serializers.SpaceId.Raw | null; ++ name: SecretName.Raw; ++ value: SecretValue.Raw; ++ environmentId?: EnvironmentId.Raw | null; ++ spaceId?: SpaceId.Raw | null; + } +diff --git a/src/serialization/resources/sheets/types/CellValueWithCounts.ts b/src/serialization/resources/sheets/types/CellValueWithCounts.ts +index 9b1b709..22aef0f 100644 +--- a/src/serialization/resources/sheets/types/CellValueWithCounts.ts ++++ b/src/serialization/resources/sheets/types/CellValueWithCounts.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCounts } from "../../records/types/RecordCounts"; ++import { CellValue } from "../../records/types/CellValue"; + +@@ -13,9 +15,9 @@ export const CellValueWithCounts: core.serialization.ObjectSchema< + .object({ +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ counts: RecordCounts.optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).CellValue)); ++ .extend(CellValue); + + export declare namespace CellValueWithCounts { +- interface Raw extends serializers.CellValue.Raw { +- counts?: serializers.RecordCounts.Raw | null; ++ interface Raw extends CellValue.Raw { ++ counts?: RecordCounts.Raw | null; + } +diff --git a/src/serialization/resources/sheets/types/CellsResponse.ts b/src/serialization/resources/sheets/types/CellsResponse.ts +index 6aaba6c..aa0db90 100644 +--- a/src/serialization/resources/sheets/types/CellsResponse.ts ++++ b/src/serialization/resources/sheets/types/CellsResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellsResponseData } from "./CellsResponseData"; ++import { CellValueWithCounts } from "./CellValueWithCounts"; + +@@ -10,3 +12,3 @@ export const CellsResponse: core.serialization.ObjectSchema (await import("../../..")).CellsResponseData), ++ data: CellsResponseData, + }); +@@ -15,3 +17,3 @@ export declare namespace CellsResponse { + interface Raw { +- data: serializers.CellsResponseData.Raw; ++ data: CellsResponseData.Raw; + } +diff --git a/src/serialization/resources/sheets/types/CellsResponseData.ts b/src/serialization/resources/sheets/types/CellsResponseData.ts +index eaf3dc8..35c4377 100644 +--- a/src/serialization/resources/sheets/types/CellsResponseData.ts ++++ b/src/serialization/resources/sheets/types/CellsResponseData.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CellValueWithCounts } from "./CellValueWithCounts"; + +@@ -11,9 +12,6 @@ export const CellsResponseData: core.serialization.Schema< + Flatfile.CellsResponseData +-> = core.serialization.record( +- core.serialization.string(), +- core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).CellValueWithCounts)) +-); ++> = core.serialization.record(core.serialization.string(), core.serialization.list(CellValueWithCounts)); + + export declare namespace CellsResponseData { +- type Raw = Record; ++ type Raw = Record; + } +diff --git a/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts b/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts +index 8d299e9..d859c8d 100644 +--- a/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts ++++ b/src/serialization/resources/sheets/types/CompositeUniqueConstraint.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CompositeUniqueConstraintStrategy } from "./CompositeUniqueConstraintStrategy"; + +@@ -14,3 +15,3 @@ export const CompositeUniqueConstraint: core.serialization.ObjectSchema< + fields: core.serialization.list(core.serialization.string()), +- strategy: core.serialization.lazy(async () => (await import("../../..")).CompositeUniqueConstraintStrategy), ++ strategy: CompositeUniqueConstraintStrategy, + }); +@@ -21,3 +22,3 @@ export declare namespace CompositeUniqueConstraint { + fields: string[]; +- strategy: serializers.CompositeUniqueConstraintStrategy.Raw; ++ strategy: CompositeUniqueConstraintStrategy.Raw; + } +diff --git a/src/serialization/resources/sheets/types/FieldConfigResponse.ts b/src/serialization/resources/sheets/types/FieldConfigResponse.ts +index a4c7cc8..90bc380 100644 +--- a/src/serialization/resources/sheets/types/FieldConfigResponse.ts ++++ b/src/serialization/resources/sheets/types/FieldConfigResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Property } from "../../property/types/Property"; + +@@ -12,3 +13,3 @@ export const FieldConfigResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazy(async () => (await import("../../..")).Property), ++ data: Property, + }); +@@ -17,3 +18,3 @@ export declare namespace FieldConfigResponse { + interface Raw { +- data: serializers.Property.Raw; ++ data: Property.Raw; + } +diff --git a/src/serialization/resources/sheets/types/ListSheetsResponse.ts b/src/serialization/resources/sheets/types/ListSheetsResponse.ts +index de34c0c..8620c5c 100644 +--- a/src/serialization/resources/sheets/types/ListSheetsResponse.ts ++++ b/src/serialization/resources/sheets/types/ListSheetsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Sheet } from "./Sheet"; + +@@ -12,3 +13,3 @@ export const ListSheetsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Sheet)), ++ data: core.serialization.list(Sheet), + }); +@@ -17,3 +18,3 @@ export declare namespace ListSheetsResponse { + interface Raw { +- data: serializers.Sheet.Raw[]; ++ data: Sheet.Raw[]; + } +diff --git a/src/serialization/resources/sheets/types/RecordCountsResponse.ts b/src/serialization/resources/sheets/types/RecordCountsResponse.ts +index cdebc31..c4e7334 100644 +--- a/src/serialization/resources/sheets/types/RecordCountsResponse.ts ++++ b/src/serialization/resources/sheets/types/RecordCountsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCountsResponseData } from "./RecordCountsResponseData"; + +@@ -12,3 +13,3 @@ export const RecordCountsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).RecordCountsResponseData), ++ data: RecordCountsResponseData, + }); +@@ -17,3 +18,3 @@ export declare namespace RecordCountsResponse { + interface Raw { +- data: serializers.RecordCountsResponseData.Raw; ++ data: RecordCountsResponseData.Raw; + } +diff --git a/src/serialization/resources/sheets/types/RecordCountsResponseData.ts b/src/serialization/resources/sheets/types/RecordCountsResponseData.ts +index 3bb978e..29afd10 100644 +--- a/src/serialization/resources/sheets/types/RecordCountsResponseData.ts ++++ b/src/serialization/resources/sheets/types/RecordCountsResponseData.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RecordCounts } from "../../records/types/RecordCounts"; + +@@ -12,3 +13,3 @@ export const RecordCountsResponseData: core.serialization.ObjectSchema< + > = core.serialization.object({ +- counts: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts), ++ counts: RecordCounts, + success: core.serialization.boolean(), +@@ -18,3 +19,3 @@ export declare namespace RecordCountsResponseData { + interface Raw { +- counts: serializers.RecordCounts.Raw; ++ counts: RecordCounts.Raw; + success: boolean; +diff --git a/src/serialization/resources/sheets/types/Sheet.ts b/src/serialization/resources/sheets/types/Sheet.ts +index 4e3c704..46580fc 100644 +--- a/src/serialization/resources/sheets/types/Sheet.ts ++++ b/src/serialization/resources/sheets/types/Sheet.ts +@@ -7,10 +7,13 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetConfig } from "./SheetConfig"; ++import { RecordCounts } from "../../records/types/RecordCounts"; + + export const Sheet: core.serialization.ObjectSchema = core.serialization.object({ +- id: core.serialization.lazy(async () => (await import("../../..")).SheetId), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId), ++ id: SheetId, ++ workbookId: WorkbookId, + name: core.serialization.string(), + slug: core.serialization.string(), +- config: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig), +- countRecords: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ config: SheetConfig, + namespace: core.serialization.string().optional(), +@@ -20,2 +23,3 @@ export const Sheet: core.serialization.ObjectSchema (await import("../../..")).SheetAccess)) +- .optional(), +- fields: core.serialization.list(core.serialization.lazy(async () => (await import("../../..")).Property)), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ access: core.serialization.list(SheetAccess).optional(), ++ fields: core.serialization.list(Property), ++ actions: core.serialization.list(Action).optional(), + metadata: core.serialization.any().optional(), +- constraints: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).SheetConstraint)) +- .optional(), ++ constraints: core.serialization.list(SheetConstraint).optional(), + }); +@@ -37,7 +35,7 @@ export declare namespace SheetConfig { + mappingConfidenceThreshold?: number | null; +- access?: serializers.SheetAccess.Raw[] | null; +- fields: serializers.Property.Raw[]; +- actions?: serializers.Action.Raw[] | null; ++ access?: SheetAccess.Raw[] | null; ++ fields: Property.Raw[]; ++ actions?: Action.Raw[] | null; + metadata?: any | null; +- constraints?: serializers.SheetConstraint.Raw[] | null; ++ constraints?: SheetConstraint.Raw[] | null; + } +diff --git a/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts b/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts +index a58ab72..ccb3007 100644 +--- a/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetConfigOrUpdate.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetConfigUpdate } from "./SheetConfigUpdate"; ++import { SheetUpdate } from "./SheetUpdate"; + +@@ -11,9 +13,6 @@ export const SheetConfigOrUpdate: core.serialization.ObjectSchema< + Flatfile.SheetConfigOrUpdate +-> = core.serialization +- .object({}) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfigUpdate)) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).SheetUpdate)); ++> = core.serialization.object({}).extend(SheetConfigUpdate).extend(SheetUpdate); + + export declare namespace SheetConfigOrUpdate { +- interface Raw extends serializers.SheetConfigUpdate.Raw, serializers.SheetUpdate.Raw {} ++ interface Raw extends SheetConfigUpdate.Raw, SheetUpdate.Raw {} + } +diff --git a/src/serialization/resources/sheets/types/SheetConfigUpdate.ts b/src/serialization/resources/sheets/types/SheetConfigUpdate.ts +index 4cc00b3..8b7fba9 100644 +--- a/src/serialization/resources/sheets/types/SheetConfigUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetConfigUpdate.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetAccess } from "./SheetAccess"; ++import { Property } from "../../property/types/Property"; ++import { Action } from "../../commons/types/Action"; + +@@ -18,11 +21,5 @@ export const SheetConfigUpdate: core.serialization.ObjectSchema< + mappingConfidenceThreshold: core.serialization.number().optional(), +- access: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).SheetAccess)) +- .optional(), +- fields: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).Property)) +- .optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ access: core.serialization.list(SheetAccess).optional(), ++ fields: core.serialization.list(Property).optional(), ++ actions: core.serialization.list(Action).optional(), + }); +@@ -37,5 +34,5 @@ export declare namespace SheetConfigUpdate { + mappingConfidenceThreshold?: number | null; +- access?: serializers.SheetAccess.Raw[] | null; +- fields?: serializers.Property.Raw[] | null; +- actions?: serializers.Action.Raw[] | null; ++ access?: SheetAccess.Raw[] | null; ++ fields?: Property.Raw[] | null; ++ actions?: Action.Raw[] | null; + } +diff --git a/src/serialization/resources/sheets/types/SheetConstraint.ts b/src/serialization/resources/sheets/types/SheetConstraint.ts +index a55e17d..cb4d9ee 100644 +--- a/src/serialization/resources/sheets/types/SheetConstraint.ts ++++ b/src/serialization/resources/sheets/types/SheetConstraint.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { CompositeUniqueConstraint } from "./CompositeUniqueConstraint"; ++import { ExternalSheetConstraint } from "./ExternalSheetConstraint"; + +@@ -11,4 +13,4 @@ export const SheetConstraint: core.serialization.Schema (await import("../../..")).CompositeUniqueConstraint), +- external: core.serialization.lazyObject(async () => (await import("../../..")).ExternalSheetConstraint), ++ unique: CompositeUniqueConstraint, ++ external: ExternalSheetConstraint, + }) +@@ -22,3 +24,3 @@ export declare namespace SheetConstraint { + +- interface Unique extends serializers.CompositeUniqueConstraint.Raw { ++ interface Unique extends CompositeUniqueConstraint.Raw { + type: "unique"; +@@ -26,3 +28,3 @@ export declare namespace SheetConstraint { + +- interface External extends serializers.ExternalSheetConstraint.Raw { ++ interface External extends ExternalSheetConstraint.Raw { + type: "external"; +diff --git a/src/serialization/resources/sheets/types/SheetResponse.ts b/src/serialization/resources/sheets/types/SheetResponse.ts +index 084f567..97811d1 100644 +--- a/src/serialization/resources/sheets/types/SheetResponse.ts ++++ b/src/serialization/resources/sheets/types/SheetResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Sheet } from "./Sheet"; + +@@ -10,3 +11,3 @@ export const SheetResponse: core.serialization.ObjectSchema (await import("../../..")).Sheet), ++ data: Sheet, + }); +@@ -15,3 +16,3 @@ export declare namespace SheetResponse { + interface Raw { +- data: serializers.Sheet.Raw; ++ data: Sheet.Raw; + } +diff --git a/src/serialization/resources/sheets/types/SheetUpdate.ts b/src/serialization/resources/sheets/types/SheetUpdate.ts +index 2ee2953..f3e3b7c 100644 +--- a/src/serialization/resources/sheets/types/SheetUpdate.ts ++++ b/src/serialization/resources/sheets/types/SheetUpdate.ts +@@ -7,2 +7,5 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SheetConfig } from "./SheetConfig"; + +@@ -10,6 +13,5 @@ export const SheetUpdate: core.serialization.ObjectSchema (await import("../../..")).SheetId).optional(), +- workbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), +- config: core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig).optional(), +- countRecords: core.serialization.lazyObject(async () => (await import("../../..")).RecordCounts).optional(), ++ id: SheetId.optional(), ++ workbookId: WorkbookId.optional(), ++ config: SheetConfig.optional(), + namespace: core.serialization.string().optional(), +@@ -21,6 +23,5 @@ export declare namespace SheetUpdate { + interface Raw { +- id?: serializers.SheetId.Raw | null; +- workbookId?: serializers.WorkbookId.Raw | null; +- config?: serializers.SheetConfig.Raw | null; +- countRecords?: serializers.RecordCounts.Raw | null; ++ id?: SheetId.Raw | null; ++ workbookId?: WorkbookId.Raw | null; ++ config?: SheetConfig.Raw | null; + namespace?: string | null; +diff --git a/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts b/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts +index 9aa9754..661681c 100644 +--- a/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts ++++ b/src/serialization/resources/snapshots/client/requests/CreateSnapshotRequest.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { SheetId } from "../../../commons/types/SheetId"; + +@@ -12,3 +13,3 @@ export const CreateSnapshotRequest: core.serialization.Schema< + > = core.serialization.object({ +- sheetId: core.serialization.lazy(async () => (await import("../../../..")).SheetId), ++ sheetId: SheetId, + label: core.serialization.string().optional(), +@@ -18,3 +19,3 @@ export declare namespace CreateSnapshotRequest { + interface Raw { +- sheetId: serializers.SheetId.Raw; ++ sheetId: SheetId.Raw; + label?: string | null; +diff --git a/src/serialization/resources/snapshots/client/restoreSnapshot.ts b/src/serialization/resources/snapshots/client/restoreSnapshot.ts +index ee59bc1..1122a48 100644 +--- a/src/serialization/resources/snapshots/client/restoreSnapshot.ts ++++ b/src/serialization/resources/snapshots/client/restoreSnapshot.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { RestoreOptions } from "../types/RestoreOptions"; + +@@ -11,6 +12,6 @@ export const Request: core.serialization.Schema< + Flatfile.RestoreOptions | undefined +-> = core.serialization.lazyObject(async () => (await import("../../..")).RestoreOptions).optional(); ++> = RestoreOptions.optional(); + + export declare namespace Request { +- type Raw = serializers.RestoreOptions.Raw | null | undefined; ++ type Raw = RestoreOptions.Raw | null | undefined; + } +diff --git a/src/serialization/resources/snapshots/types/Snapshot.ts b/src/serialization/resources/snapshots/types/Snapshot.ts +index eea6003..941fdb8 100644 +--- a/src/serialization/resources/snapshots/types/Snapshot.ts ++++ b/src/serialization/resources/snapshots/types/Snapshot.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SnapshotId } from "../../commons/types/SnapshotId"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { SnapshotSummary } from "./SnapshotSummary"; ++import { UserId } from "../../commons/types/UserId"; + +@@ -10,8 +14,8 @@ export const Snapshot: core.serialization.ObjectSchema (await import("../../..")).SnapshotId), +- sheetId: core.serialization.lazy(async () => (await import("../../..")).SheetId), ++ id: SnapshotId, ++ sheetId: SheetId, + label: core.serialization.string().optional(), +- summary: core.serialization.lazyObject(async () => (await import("../../..")).SnapshotSummary).optional(), ++ summary: SnapshotSummary.optional(), + createdAt: core.serialization.date(), +- createdBy: core.serialization.lazy(async () => (await import("../../..")).UserId), ++ createdBy: UserId, + }); +@@ -20,8 +24,8 @@ export declare namespace Snapshot { + interface Raw { +- id: serializers.SnapshotId.Raw; +- sheetId: serializers.SheetId.Raw; ++ id: SnapshotId.Raw; ++ sheetId: SheetId.Raw; + label?: string | null; +- summary?: serializers.SnapshotSummary.Raw | null; ++ summary?: SnapshotSummary.Raw | null; + createdAt: string; +- createdBy: serializers.UserId.Raw; ++ createdBy: UserId.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotResponse.ts b/src/serialization/resources/snapshots/types/SnapshotResponse.ts +index 2c7b5b1..03f623d 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotResponse.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Snapshot } from "./Snapshot"; + +@@ -12,3 +13,3 @@ export const SnapshotResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Snapshot), ++ data: Snapshot, + }); +@@ -17,3 +18,3 @@ export declare namespace SnapshotResponse { + interface Raw { +- data: serializers.Snapshot.Raw; ++ data: Snapshot.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotSummary.ts b/src/serialization/resources/snapshots/types/SnapshotSummary.ts +index ddbc6f5..9fc80cf 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotSummary.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotSummary.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SummarySection } from "./SummarySection"; + +@@ -12,5 +13,5 @@ export const SnapshotSummary: core.serialization.ObjectSchema< + > = core.serialization.object({ +- createdSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), +- updatedSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), +- deletedSince: core.serialization.lazyObject(async () => (await import("../../..")).SummarySection), ++ createdSince: SummarySection, ++ updatedSince: SummarySection, ++ deletedSince: SummarySection, + }); +@@ -19,5 +20,5 @@ export declare namespace SnapshotSummary { + interface Raw { +- createdSince: serializers.SummarySection.Raw; +- updatedSince: serializers.SummarySection.Raw; +- deletedSince: serializers.SummarySection.Raw; ++ createdSince: SummarySection.Raw; ++ updatedSince: SummarySection.Raw; ++ deletedSince: SummarySection.Raw; + } +diff --git a/src/serialization/resources/snapshots/types/SnapshotsResponse.ts b/src/serialization/resources/snapshots/types/SnapshotsResponse.ts +index 614f775..bc7e92e 100644 +--- a/src/serialization/resources/snapshots/types/SnapshotsResponse.ts ++++ b/src/serialization/resources/snapshots/types/SnapshotsResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Snapshot } from "./Snapshot"; + +@@ -12,3 +13,3 @@ export const SnapshotsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Snapshot)), ++ data: core.serialization.list(Snapshot), + }); +@@ -17,3 +18,3 @@ export declare namespace SnapshotsResponse { + interface Raw { +- data: serializers.Snapshot.Raw[]; ++ data: Snapshot.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/EventToken.ts b/src/serialization/resources/spaces/types/EventToken.ts +index 522af9d..72df747 100644 +--- a/src/serialization/resources/spaces/types/EventToken.ts ++++ b/src/serialization/resources/spaces/types/EventToken.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; + +@@ -10,3 +11,3 @@ export const EventToken: core.serialization.ObjectSchema (await import("../../..")).AccountId).optional(), ++ accountId: AccountId.optional(), + subscribeKey: core.serialization.string().optional(), +@@ -18,3 +19,3 @@ export declare namespace EventToken { + interface Raw { +- accountId?: serializers.AccountId.Raw | null; ++ accountId?: AccountId.Raw | null; + subscribeKey?: string | null; +diff --git a/src/serialization/resources/spaces/types/EventTokenResponse.ts b/src/serialization/resources/spaces/types/EventTokenResponse.ts +index 7cd78f1..71d4e1e 100644 +--- a/src/serialization/resources/spaces/types/EventTokenResponse.ts ++++ b/src/serialization/resources/spaces/types/EventTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { EventToken } from "./EventToken"; + +@@ -12,3 +13,3 @@ export const EventTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).EventToken), ++ data: EventToken, + }); +@@ -17,3 +18,3 @@ export declare namespace EventTokenResponse { + interface Raw { +- data: serializers.EventToken.Raw; ++ data: EventToken.Raw; + } +diff --git a/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts b/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts +index f742f4f..594936e 100644 +--- a/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/serialization/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceConfigId } from "../../commons/types/SpaceConfigId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { Action } from "../../commons/types/Action"; ++import { SpaceAccess } from "./SpaceAccess"; ++import { AppId } from "../../commons/types/AppId"; + +@@ -12,12 +18,8 @@ export const InternalSpaceConfigBase: core.serialization.ObjectSchema< + > = core.serialization.object({ +- spaceConfigId: core.serialization.lazy(async () => (await import("../../..")).SpaceConfigId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), +- primaryWorkbookId: core.serialization.lazy(async () => (await import("../../..")).WorkbookId).optional(), ++ spaceConfigId: SpaceConfigId.optional(), ++ environmentId: EnvironmentId.optional(), ++ primaryWorkbookId: WorkbookId.optional(), + metadata: core.serialization.any().optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), +- access: core.serialization +- .list(core.serialization.lazy(async () => (await import("../../..")).SpaceAccess)) +- .optional(), ++ actions: core.serialization.list(Action).optional(), ++ access: core.serialization.list(SpaceAccess).optional(), + autoConfigure: core.serialization.boolean().optional(), +@@ -28,2 +30,3 @@ export const InternalSpaceConfigBase: core.serialization.ObjectSchema< + archivedAt: core.serialization.date().optional(), ++ appId: AppId.optional(), + }); +@@ -32,8 +35,8 @@ export declare namespace InternalSpaceConfigBase { + interface Raw { +- spaceConfigId?: serializers.SpaceConfigId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; +- primaryWorkbookId?: serializers.WorkbookId.Raw | null; ++ spaceConfigId?: SpaceConfigId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; ++ primaryWorkbookId?: WorkbookId.Raw | null; + metadata?: any | null; +- actions?: serializers.Action.Raw[] | null; +- access?: serializers.SpaceAccess.Raw[] | null; ++ actions?: Action.Raw[] | null; ++ access?: SpaceAccess.Raw[] | null; + autoConfigure?: boolean | null; +@@ -44,2 +47,3 @@ export declare namespace InternalSpaceConfigBase { + archivedAt?: string | null; ++ appId?: AppId.Raw | null; + } +diff --git a/src/serialization/resources/spaces/types/ListSpacesResponse.ts b/src/serialization/resources/spaces/types/ListSpacesResponse.ts +index 918c6f3..c502cf4 100644 +--- a/src/serialization/resources/spaces/types/ListSpacesResponse.ts ++++ b/src/serialization/resources/spaces/types/ListSpacesResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { Space } from "./Space"; + +@@ -12,4 +14,4 @@ export const ListSpacesResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Space)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(Space), + }); +@@ -18,4 +20,4 @@ export declare namespace ListSpacesResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.Space.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: Space.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/Space.ts b/src/serialization/resources/spaces/types/Space.ts +index dd38a6f..3dd7321 100644 +--- a/src/serialization/resources/spaces/types/Space.ts ++++ b/src/serialization/resources/spaces/types/Space.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { UserId } from "../../commons/types/UserId"; ++import { SpaceSize } from "./SpaceSize"; ++import { GuestAuthenticationEnum } from "../../environments/types/GuestAuthenticationEnum"; ++import { InternalSpaceConfigBase } from "./InternalSpaceConfigBase"; + +@@ -10,6 +15,6 @@ export const Space: core.serialization.ObjectSchema (await import("../../..")).SpaceId), ++ id: SpaceId, + workbooksCount: core.serialization.number().optional(), + filesCount: core.serialization.number().optional(), +- createdByUserId: core.serialization.lazy(async () => (await import("../../..")).UserId).optional(), ++ createdByUserId: UserId.optional(), + createdByUserName: core.serialization.string().optional(), +@@ -24,16 +29,14 @@ export const Space: core.serialization.ObjectSchema (await import("../../..")).SpaceSize).optional(), ++ size: SpaceSize.optional(), + upgradedAt: core.serialization.date().optional(), +- guestAuthentication: core.serialization.list( +- core.serialization.lazy(async () => (await import("../../..")).GuestAuthenticationEnum) +- ), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).InternalSpaceConfigBase)); ++ .extend(InternalSpaceConfigBase); + + export declare namespace Space { +- interface Raw extends serializers.InternalSpaceConfigBase.Raw { +- id: serializers.SpaceId.Raw; ++ interface Raw extends InternalSpaceConfigBase.Raw { ++ id: SpaceId.Raw; + workbooksCount?: number | null; + filesCount?: number | null; +- createdByUserId?: serializers.UserId.Raw | null; ++ createdByUserId?: UserId.Raw | null; + createdByUserName?: string | null; +@@ -48,5 +51,5 @@ export declare namespace Space { + isCollaborative?: boolean | null; +- size?: serializers.SpaceSize.Raw | null; ++ size?: SpaceSize.Raw | null; + upgradedAt?: string | null; +- guestAuthentication: serializers.GuestAuthenticationEnum.Raw[]; ++ guestAuthentication: GuestAuthenticationEnum.Raw[]; + } +diff --git a/src/serialization/resources/spaces/types/SpaceConfig.ts b/src/serialization/resources/spaces/types/SpaceConfig.ts +index 00a252d..4cb89e9 100644 +--- a/src/serialization/resources/spaces/types/SpaceConfig.ts ++++ b/src/serialization/resources/spaces/types/SpaceConfig.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { GuestAuthenticationEnum } from "../../environments/types/GuestAuthenticationEnum"; ++import { InternalSpaceConfigBase } from "./InternalSpaceConfigBase"; + +@@ -13,13 +15,11 @@ export const SpaceConfig: core.serialization.ObjectSchema (await import("../../..")).GuestAuthenticationEnum)) +- .optional(), ++ guestAuthentication: core.serialization.list(GuestAuthenticationEnum).optional(), + }) +- .extend(core.serialization.lazyObject(async () => (await import("../../..")).InternalSpaceConfigBase)); ++ .extend(InternalSpaceConfigBase); + + export declare namespace SpaceConfig { +- interface Raw extends serializers.InternalSpaceConfigBase.Raw { ++ interface Raw extends InternalSpaceConfigBase.Raw { + name?: string | null; + displayOrder?: number | null; +- guestAuthentication?: serializers.GuestAuthenticationEnum.Raw[] | null; ++ guestAuthentication?: GuestAuthenticationEnum.Raw[] | null; + } +diff --git a/src/serialization/resources/spaces/types/SpaceResponse.ts b/src/serialization/resources/spaces/types/SpaceResponse.ts +index abe2d0b..d2b0a68 100644 +--- a/src/serialization/resources/spaces/types/SpaceResponse.ts ++++ b/src/serialization/resources/spaces/types/SpaceResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Space } from "./Space"; + +@@ -10,3 +11,3 @@ export const SpaceResponse: core.serialization.ObjectSchema (await import("../../..")).Space), ++ data: Space, + }); +@@ -15,3 +16,3 @@ export declare namespace SpaceResponse { + interface Raw { +- data: serializers.Space.Raw; ++ data: Space.Raw; + } +diff --git a/src/serialization/resources/users/client/requests/UpdateUserRequest.ts b/src/serialization/resources/users/client/requests/UpdateUserRequest.ts +index d9671ef..8b56009 100644 +--- a/src/serialization/resources/users/client/requests/UpdateUserRequest.ts ++++ b/src/serialization/resources/users/client/requests/UpdateUserRequest.ts +@@ -13,2 +13,3 @@ export const UpdateUserRequest: core.serialization.Schema< + name: core.serialization.string().optional(), ++ dashboard: core.serialization.number().optional(), + }); +@@ -18,2 +19,3 @@ export declare namespace UpdateUserRequest { + name?: string | null; ++ dashboard?: number | null; + } +diff --git a/src/serialization/resources/users/types/ApiTokenResponse.ts b/src/serialization/resources/users/types/ApiTokenResponse.ts +index de1758e..2111eae 100644 +--- a/src/serialization/resources/users/types/ApiTokenResponse.ts ++++ b/src/serialization/resources/users/types/ApiTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ApiToken } from "./ApiToken"; + +@@ -12,3 +13,3 @@ export const ApiTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).ApiToken), ++ data: ApiToken, + }); +@@ -17,3 +18,3 @@ export declare namespace ApiTokenResponse { + interface Raw { +- data: serializers.ApiToken.Raw; ++ data: ApiToken.Raw; + } +diff --git a/src/serialization/resources/users/types/ExchangeTokenResponse.ts b/src/serialization/resources/users/types/ExchangeTokenResponse.ts +index d5842a7..49ca270 100644 +--- a/src/serialization/resources/users/types/ExchangeTokenResponse.ts ++++ b/src/serialization/resources/users/types/ExchangeTokenResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { ExchangeTokenData } from "./ExchangeTokenData"; + +@@ -12,3 +13,3 @@ export const ExchangeTokenResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).ExchangeTokenData), ++ data: ExchangeTokenData, + }); +@@ -17,3 +18,3 @@ export declare namespace ExchangeTokenResponse { + interface Raw { +- data: serializers.ExchangeTokenData.Raw; ++ data: ExchangeTokenData.Raw; + } +diff --git a/src/serialization/resources/users/types/ListApiTokensResponse.ts b/src/serialization/resources/users/types/ListApiTokensResponse.ts +index 87245dd..dff6334 100644 +--- a/src/serialization/resources/users/types/ListApiTokensResponse.ts ++++ b/src/serialization/resources/users/types/ListApiTokensResponse.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { ApiToken } from "./ApiToken"; + +@@ -12,4 +14,4 @@ export const ListApiTokensResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- pagination: core.serialization.lazyObject(async () => (await import("../../..")).Pagination).optional(), +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).ApiToken)), ++ pagination: Pagination.optional(), ++ data: core.serialization.list(ApiToken), + }); +@@ -18,4 +20,4 @@ export declare namespace ListApiTokensResponse { + interface Raw { +- pagination?: serializers.Pagination.Raw | null; +- data: serializers.ApiToken.Raw[]; ++ pagination?: Pagination.Raw | null; ++ data: ApiToken.Raw[]; + } +diff --git a/src/serialization/resources/users/types/ListUsersResponse.ts b/src/serialization/resources/users/types/ListUsersResponse.ts +index 75b7207..957794f 100644 +--- a/src/serialization/resources/users/types/ListUsersResponse.ts ++++ b/src/serialization/resources/users/types/ListUsersResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { User } from "./User"; + +@@ -12,3 +13,3 @@ export const ListUsersResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).User)), ++ data: core.serialization.list(User), + }); +@@ -17,3 +18,3 @@ export declare namespace ListUsersResponse { + interface Raw { +- data: serializers.User.Raw[]; ++ data: User.Raw[]; + } +diff --git a/src/serialization/resources/users/types/User.ts b/src/serialization/resources/users/types/User.ts +index 26fa357..9446627 100644 +--- a/src/serialization/resources/users/types/User.ts ++++ b/src/serialization/resources/users/types/User.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { UserId } from "../../commons/types/UserId"; ++import { UserConfig } from "./UserConfig"; + +@@ -10,3 +12,3 @@ export const User: core.serialization.ObjectSchema (await import("../../..")).UserId), ++ id: UserId, + idp: core.serialization.string(), +@@ -16,8 +18,10 @@ export const User: core.serialization.ObjectSchema (await import("../../..")).UserConfig)); ++ .extend(UserConfig); + + export declare namespace User { +- interface Raw extends serializers.UserConfig.Raw { +- id: serializers.UserId.Raw; ++ interface Raw extends UserConfig.Raw { ++ id: UserId.Raw; + idp: string; +@@ -27,2 +31,4 @@ export declare namespace User { + updatedAt: string; ++ lastSeenAt?: string | null; ++ dashboard?: number | null; + } +diff --git a/src/serialization/resources/users/types/UserConfig.ts b/src/serialization/resources/users/types/UserConfig.ts +index 551cf49..79df346 100644 +--- a/src/serialization/resources/users/types/UserConfig.ts ++++ b/src/serialization/resources/users/types/UserConfig.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { AccountId } from "../../commons/types/AccountId"; + +@@ -12,3 +13,3 @@ export const UserConfig: core.serialization.ObjectSchema (await import("../../..")).AccountId), ++ accountId: AccountId, + }); +@@ -19,3 +20,3 @@ export declare namespace UserConfig { + name: string; +- accountId: serializers.AccountId.Raw; ++ accountId: AccountId.Raw; + } +diff --git a/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts b/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts +new file mode 100644 +index 0000000..47488da +--- /dev/null ++++ b/src/serialization/resources/users/types/UserCreateAndInviteRequest.ts +@@ -0,0 +1,25 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { AssignActorRoleRequest } from "../../roles/types/AssignActorRoleRequest"; ++ ++export const UserCreateAndInviteRequest: core.serialization.ObjectSchema< ++ serializers.UserCreateAndInviteRequest.Raw, ++ Flatfile.UserCreateAndInviteRequest ++> = core.serialization.object({ ++ email: core.serialization.string(), ++ name: core.serialization.string(), ++ actorRoles: core.serialization.list(AssignActorRoleRequest), ++}); ++ ++export declare namespace UserCreateAndInviteRequest { ++ interface Raw { ++ email: string; ++ name: string; ++ actorRoles: AssignActorRoleRequest.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/users/types/UserResponse.ts b/src/serialization/resources/users/types/UserResponse.ts +index a954c5b..210a54a 100644 +--- a/src/serialization/resources/users/types/UserResponse.ts ++++ b/src/serialization/resources/users/types/UserResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { User } from "./User"; + +@@ -10,3 +11,3 @@ export const UserResponse: core.serialization.ObjectSchema (await import("../../..")).User), ++ data: User, + }); +@@ -15,3 +16,3 @@ export declare namespace UserResponse { + interface Raw { +- data: serializers.User.Raw; ++ data: User.Raw; + } +diff --git a/src/serialization/resources/users/types/UserWithRoles.ts b/src/serialization/resources/users/types/UserWithRoles.ts +new file mode 100644 +index 0000000..4b3b021 +--- /dev/null ++++ b/src/serialization/resources/users/types/UserWithRoles.ts +@@ -0,0 +1,22 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { ActorRoleResponse } from "../../roles/types/ActorRoleResponse"; ++import { User } from "./User"; ++ ++export const UserWithRoles: core.serialization.ObjectSchema = ++ core.serialization ++ .object({ ++ actorRoles: core.serialization.list(ActorRoleResponse), ++ }) ++ .extend(User); ++ ++export declare namespace UserWithRoles { ++ interface Raw extends User.Raw { ++ actorRoles: ActorRoleResponse.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/users/types/UserWithRolesResponse.ts b/src/serialization/resources/users/types/UserWithRolesResponse.ts +new file mode 100644 +index 0000000..b21f98c +--- /dev/null ++++ b/src/serialization/resources/users/types/UserWithRolesResponse.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { UserWithRoles } from "./UserWithRoles"; ++ ++export const UserWithRolesResponse: core.serialization.ObjectSchema< ++ serializers.UserWithRolesResponse.Raw, ++ Flatfile.UserWithRolesResponse ++> = core.serialization.object({ ++ data: UserWithRoles, ++}); ++ ++export declare namespace UserWithRolesResponse { ++ interface Raw { ++ data: UserWithRoles.Raw; ++ } ++} +diff --git a/src/serialization/resources/users/types/index.ts b/src/serialization/resources/users/types/index.ts +index 7bd7d69..8e29781 100644 +--- a/src/serialization/resources/users/types/index.ts ++++ b/src/serialization/resources/users/types/index.ts +@@ -2,4 +2,7 @@ export * from "./ListUsersResponse"; + export * from "./UserResponse"; ++export * from "./UserWithRolesResponse"; ++export * from "./UserWithRoles"; + export * from "./User"; + export * from "./UserConfig"; ++export * from "./UserCreateAndInviteRequest"; + export * from "./ListApiTokensResponse"; +diff --git a/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts b/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts +index a657e9b..1af762b 100644 +--- a/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts ++++ b/src/serialization/resources/versions/client/requests/VersionsPostRequestBody.ts +@@ -7,2 +7,4 @@ import * as Flatfile from "../../../../../api"; + import * as core from "../../../../../core"; ++import { SheetId } from "../../../commons/types/SheetId"; ++import { VersionId } from "../../../commons/types/VersionId"; + +@@ -12,4 +14,4 @@ export const VersionsPostRequestBody: core.serialization.Schema< + > = core.serialization.object({ +- sheetId: core.serialization.lazy(async () => (await import("../../../..")).SheetId).optional(), +- parentVersionId: core.serialization.lazy(async () => (await import("../../../..")).VersionId).optional(), ++ sheetId: SheetId.optional(), ++ parentVersionId: VersionId.optional(), + }); +@@ -18,4 +20,4 @@ export declare namespace VersionsPostRequestBody { + interface Raw { +- sheetId?: serializers.SheetId.Raw | null; +- parentVersionId?: serializers.VersionId.Raw | null; ++ sheetId?: SheetId.Raw | null; ++ parentVersionId?: VersionId.Raw | null; + } +diff --git a/src/serialization/resources/versions/types/Version.ts b/src/serialization/resources/versions/types/Version.ts +index e604c40..2d33165 100644 +--- a/src/serialization/resources/versions/types/Version.ts ++++ b/src/serialization/resources/versions/types/Version.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { VersionId } from "../../commons/types/VersionId"; + +@@ -10,3 +11,3 @@ export const Version: core.serialization.ObjectSchema (await import("../../..")).VersionId), ++ versionId: VersionId, + }); +@@ -15,3 +16,3 @@ export declare namespace Version { + interface Raw { +- versionId: serializers.VersionId.Raw; ++ versionId: VersionId.Raw; + } +diff --git a/src/serialization/resources/versions/types/VersionResponse.ts b/src/serialization/resources/versions/types/VersionResponse.ts +index f5c4675..ac24471 100644 +--- a/src/serialization/resources/versions/types/VersionResponse.ts ++++ b/src/serialization/resources/versions/types/VersionResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Version } from "./Version"; + +@@ -12,3 +13,3 @@ export const VersionResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Version), ++ data: Version, + }); +@@ -17,3 +18,3 @@ export declare namespace VersionResponse { + interface Raw { +- data: serializers.Version.Raw; ++ data: Version.Raw; + } +diff --git a/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts b/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts +index 10acd18..dff62c1 100644 +--- a/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts ++++ b/src/serialization/resources/workbooks/types/CreateWorkbookConfig.ts +@@ -7,2 +7,7 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SheetConfig } from "../../sheets/types/SheetConfig"; ++import { Action } from "../../commons/types/Action"; ++import { WorkbookConfigSettings } from "./WorkbookConfigSettings"; + +@@ -14,12 +19,8 @@ export const CreateWorkbookConfig: core.serialization.ObjectSchema< + labels: core.serialization.list(core.serialization.string()).optional(), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ spaceId: SpaceId.optional(), ++ environmentId: EnvironmentId.optional(), + namespace: core.serialization.string().optional(), +- sheets: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfig)) +- .optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), +- settings: core.serialization.lazyObject(async () => (await import("../../..")).WorkbookConfigSettings).optional(), ++ sheets: core.serialization.list(SheetConfig).optional(), ++ actions: core.serialization.list(Action).optional(), ++ settings: WorkbookConfigSettings.optional(), + metadata: core.serialization.any().optional(), +@@ -31,8 +32,8 @@ export declare namespace CreateWorkbookConfig { + labels?: string[] | null; +- spaceId?: serializers.SpaceId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ spaceId?: SpaceId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + namespace?: string | null; +- sheets?: serializers.SheetConfig.Raw[] | null; +- actions?: serializers.Action.Raw[] | null; +- settings?: serializers.WorkbookConfigSettings.Raw | null; ++ sheets?: SheetConfig.Raw[] | null; ++ actions?: Action.Raw[] | null; ++ settings?: WorkbookConfigSettings.Raw | null; + metadata?: any | null; +diff --git a/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts b/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts +index dc1e71d..93e5dfd 100644 +--- a/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts ++++ b/src/serialization/resources/workbooks/types/ListWorkbooksResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Workbook } from "./Workbook"; + +@@ -12,3 +13,3 @@ export const ListWorkbooksResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(core.serialization.lazyObject(async () => (await import("../../..")).Workbook)), ++ data: core.serialization.list(Workbook), + }); +@@ -17,3 +18,3 @@ export declare namespace ListWorkbooksResponse { + interface Raw { +- data: serializers.Workbook.Raw[]; ++ data: Workbook.Raw[]; + } +diff --git a/src/serialization/resources/workbooks/types/Workbook.ts b/src/serialization/resources/workbooks/types/Workbook.ts +index 27fa380..1d72635 100644 +--- a/src/serialization/resources/workbooks/types/Workbook.ts ++++ b/src/serialization/resources/workbooks/types/Workbook.ts +@@ -7,2 +7,8 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { Sheet } from "../../sheets/types/Sheet"; ++import { Action } from "../../commons/types/Action"; ++import { WorkbookConfigSettings } from "./WorkbookConfigSettings"; + +@@ -10,16 +16,10 @@ export const Workbook: core.serialization.ObjectSchema (await import("../../..")).WorkbookId), ++ id: WorkbookId, + name: core.serialization.string().optional(), +- spaceId: core.serialization.lazy(async () => (await import("../../..")).SpaceId), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId), +- sheets: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Sheet)) +- .optional(), ++ spaceId: SpaceId, ++ environmentId: EnvironmentId, ++ sheets: core.serialization.list(Sheet).optional(), + labels: core.serialization.list(core.serialization.string()).optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), +- settings: core.serialization +- .lazyObject(async () => (await import("../../..")).WorkbookConfigSettings) +- .optional(), ++ actions: core.serialization.list(Action).optional(), ++ settings: WorkbookConfigSettings.optional(), + metadata: core.serialization.any().optional(), +@@ -33,10 +33,10 @@ export declare namespace Workbook { + interface Raw { +- id: serializers.WorkbookId.Raw; ++ id: WorkbookId.Raw; + name?: string | null; +- spaceId: serializers.SpaceId.Raw; +- environmentId: serializers.EnvironmentId.Raw; +- sheets?: serializers.Sheet.Raw[] | null; ++ spaceId: SpaceId.Raw; ++ environmentId: EnvironmentId.Raw; ++ sheets?: Sheet.Raw[] | null; + labels?: string[] | null; +- actions?: serializers.Action.Raw[] | null; +- settings?: serializers.WorkbookConfigSettings.Raw | null; ++ actions?: Action.Raw[] | null; ++ settings?: WorkbookConfigSettings.Raw | null; + metadata?: any | null; +diff --git a/src/serialization/resources/workbooks/types/WorkbookResponse.ts b/src/serialization/resources/workbooks/types/WorkbookResponse.ts +index 73df47c..dbc8edb 100644 +--- a/src/serialization/resources/workbooks/types/WorkbookResponse.ts ++++ b/src/serialization/resources/workbooks/types/WorkbookResponse.ts +@@ -7,2 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { Workbook } from "./Workbook"; + +@@ -12,3 +13,3 @@ export const WorkbookResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.lazyObject(async () => (await import("../../..")).Workbook), ++ data: Workbook, + }); +@@ -17,3 +18,3 @@ export declare namespace WorkbookResponse { + interface Raw { +- data: serializers.Workbook.Raw; ++ data: Workbook.Raw; + } +diff --git a/src/serialization/resources/workbooks/types/WorkbookUpdate.ts b/src/serialization/resources/workbooks/types/WorkbookUpdate.ts +index 3daf5d1..f1f9562 100644 +--- a/src/serialization/resources/workbooks/types/WorkbookUpdate.ts ++++ b/src/serialization/resources/workbooks/types/WorkbookUpdate.ts +@@ -7,2 +7,6 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; ++import { SpaceId } from "../../commons/types/SpaceId"; ++import { EnvironmentId } from "../../commons/types/EnvironmentId"; ++import { SheetConfigOrUpdate } from "../../sheets/types/SheetConfigOrUpdate"; ++import { Action } from "../../commons/types/Action"; + +@@ -12,11 +16,7 @@ export const WorkbookUpdate: core.serialization.ObjectSchema (await import("../../..")).SpaceId).optional(), +- environmentId: core.serialization.lazy(async () => (await import("../../..")).EnvironmentId).optional(), ++ spaceId: SpaceId.optional(), ++ environmentId: EnvironmentId.optional(), + namespace: core.serialization.string().optional(), +- sheets: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).SheetConfigOrUpdate)) +- .optional(), +- actions: core.serialization +- .list(core.serialization.lazyObject(async () => (await import("../../..")).Action)) +- .optional(), ++ sheets: core.serialization.list(SheetConfigOrUpdate).optional(), ++ actions: core.serialization.list(Action).optional(), + metadata: core.serialization.any().optional(), +@@ -28,7 +28,7 @@ export declare namespace WorkbookUpdate { + labels?: string[] | null; +- spaceId?: serializers.SpaceId.Raw | null; +- environmentId?: serializers.EnvironmentId.Raw | null; ++ spaceId?: SpaceId.Raw | null; ++ environmentId?: EnvironmentId.Raw | null; + namespace?: string | null; +- sheets?: serializers.SheetConfigOrUpdate.Raw[] | null; +- actions?: serializers.Action.Raw[] | null; ++ sheets?: SheetConfigOrUpdate.Raw[] | null; ++ actions?: Action.Raw[] | null; + metadata?: any | null; diff --git a/release-notes/1.8.0.diff.txt.result.md b/release-notes/1.8.0.diff.txt.result.md new file mode 100644 index 00000000..4e7acac6 --- /dev/null +++ b/release-notes/1.8.0.diff.txt.result.md @@ -0,0 +1,22 @@ +This diff file shows changes made to a TypeScript Node API for Flatfile. Here are the key changes: + +### New Resources Added +- `accounts` resource for managing accounts +- `assistant` resource for AI-assisted prompts +- `foreigndb` resource for managing foreign databases + +### External Interface Changes +- Added `defaultAppId` field to Account model to associate an App with an Account +- Added `environmentFilters` field to App model to filter Apps by environment +- Added `snapshotLabel` and `snapshotId` fields to MutateJobConfig to generate snapshots during mutations +- Added record/cell level `config` field to control readonly states +- Added `dashboard` field to User model to track dashboard setting +- Added `createAndInvite` method to Users resource to create a new user and assign roles + +### Internal Changes +- Heavy usage of lazy loading has been removed by explicitly importing types +- Some utility types like `CellValueUnion`, `Records` have been updated to include example data +- Addition of some new types like `DatabaseTask`, `RestoreOptions` etc. +- Changes to some existing models like `Sheet` to add/remove fields + +Overall, it includes new functionality, some backwards compatible schema changes, and removals of lazy loading patterns. The release notes should cover the high-level user-facing changes well. \ No newline at end of file diff --git a/release-notes/1.8.2.diff.txt b/release-notes/1.8.2.diff.txt new file mode 100644 index 00000000..58d2684e --- /dev/null +++ b/release-notes/1.8.2.diff.txt @@ -0,0 +1,487 @@ +diff --git a/package.json b/package.json +index a6375fd..11f6c46 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.8.0", ++ "version": "1.8.2", + "private": false, +diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts +index f77e047..63c392b 100644 +--- a/src/api/resources/accounts/client/Client.ts ++++ b/src/api/resources/accounts/client/Client.ts +@@ -45,3 +45,3 @@ export class Accounts { +@@ -108,3 +108,3 @@ export class Accounts { +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index d5e53d0..46e49cc 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index e3d2d96..9fc94ee 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +index 0bf938d..ddc082d 100644 +--- a/src/api/resources/assistant/client/Client.ts ++++ b/src/api/resources/assistant/client/Client.ts +@@ -58,3 +58,3 @@ export class Assistant { +@@ -120,3 +120,3 @@ export class Assistant { +@@ -184,3 +184,3 @@ export class Assistant { +@@ -248,3 +248,3 @@ export class Assistant { +@@ -310,3 +310,3 @@ export class Assistant { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index de2aada..fb148fb 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 90dc62f..cad2f36 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index b3b194d..dbb37d0 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 3f022b2..386dc62 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index 219b2f0..ca0416c 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 5f7a3b3..b454611 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 8efeb09..137ec75 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 937c801..836d9d4 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index b35ed38..ee31241 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -137,3 +137,3 @@ export class Files { +@@ -210,3 +210,3 @@ export class Files { +@@ -289,3 +289,3 @@ export class Files { +@@ -378,3 +378,3 @@ export class Files { +@@ -458,3 +458,3 @@ export class Files { +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +index 55ee09b..238f249 100644 +--- a/src/api/resources/foreigndb/client/Client.ts ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -48,3 +48,3 @@ export class Foreigndb { +@@ -132,3 +132,3 @@ export class Foreigndb { +@@ -215,3 +215,3 @@ export class Foreigndb { +@@ -298,3 +298,3 @@ export class Foreigndb { +@@ -382,3 +382,3 @@ export class Foreigndb { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 24f5f29..c8845d1 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 9e1815c..3ac655f 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1109,3 +1109,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index dcf2d56..db4b14d 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -116,3 +116,6 @@ export class Mapping { + */ +- public async deleteAllHistoryForUser(requestOptions?: Mapping.RequestOptions): Promise { ++ public async deleteAllHistoryForUser( ++ request: Flatfile.DeleteAllHistoryForUserRequest = {}, ++ requestOptions?: Mapping.RequestOptions ++ ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -128,3 +131,3 @@ export class Mapping { +@@ -133,2 +136,5 @@ export class Mapping { + contentType: "application/json", ++ body: await serializers.DeleteAllHistoryForUserRequest.jsonOrThrow(request, { ++ unrecognizedObjectKeys: "strip", ++ }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, +@@ -263,3 +269,3 @@ export class Mapping { +@@ -337,3 +343,3 @@ export class Mapping { +@@ -421,3 +427,3 @@ export class Mapping { +@@ -505,3 +511,3 @@ export class Mapping { +@@ -589,3 +595,3 @@ export class Mapping { +@@ -676,3 +682,3 @@ export class Mapping { +@@ -765,3 +771,3 @@ export class Mapping { +@@ -859,3 +865,3 @@ export class Mapping { +@@ -944,3 +950,3 @@ export class Mapping { +@@ -1034,3 +1040,3 @@ export class Mapping { +diff --git a/src/api/resources/mapping/client/requests/DeleteAllHistoryForUserRequest.ts b/src/api/resources/mapping/client/requests/DeleteAllHistoryForUserRequest.ts +new file mode 100644 +index 0000000..96bf9dd +--- /dev/null ++++ b/src/api/resources/mapping/client/requests/DeleteAllHistoryForUserRequest.ts +@@ -0,0 +1,9 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../../.."; ++ ++export interface DeleteAllHistoryForUserRequest { ++ environmentId?: Flatfile.EnvironmentId; ++} +diff --git a/src/api/resources/mapping/client/requests/index.ts b/src/api/resources/mapping/client/requests/index.ts +index 3cf2f2f..5ffd98a 100644 +--- a/src/api/resources/mapping/client/requests/index.ts ++++ b/src/api/resources/mapping/client/requests/index.ts +@@ -1 +1,2 @@ ++export { DeleteAllHistoryForUserRequest } from "./DeleteAllHistoryForUserRequest"; + export { ListProgramsRequest } from "./ListProgramsRequest"; +diff --git a/src/api/resources/property/types/BaseProperty.ts b/src/api/resources/property/types/BaseProperty.ts +index 31e1ff8..922a8d8 100644 +--- a/src/api/resources/property/types/BaseProperty.ts ++++ b/src/api/resources/property/types/BaseProperty.ts +@@ -14,2 +14,3 @@ export interface BaseProperty { + readonly?: boolean; ++ appearance?: Flatfile.FieldAppearance; + /** Useful for any contextual metadata regarding the schema. Store any valid json here. */ +diff --git a/src/api/resources/property/types/FieldAppearance.ts b/src/api/resources/property/types/FieldAppearance.ts +new file mode 100644 +index 0000000..3218bd7 +--- /dev/null ++++ b/src/api/resources/property/types/FieldAppearance.ts +@@ -0,0 +1,12 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Control the appearance of this field when it's displayed in a table or input ++ */ ++export interface FieldAppearance { ++ size?: Flatfile.FieldSize; ++} +diff --git a/src/api/resources/property/types/FieldSize.ts b/src/api/resources/property/types/FieldSize.ts +new file mode 100644 +index 0000000..1c9fe0f +--- /dev/null ++++ b/src/api/resources/property/types/FieldSize.ts +@@ -0,0 +1,16 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * The default visual sizing. This sizing may be overridden by a user ++ */ ++export type FieldSize = "xs" | "s" | "m" | "l" | "xl"; ++ ++export const FieldSize = { ++ Xs: "xs", ++ S: "s", ++ M: "m", ++ L: "l", ++ Xl: "xl", ++} as const; +diff --git a/src/api/resources/property/types/index.ts b/src/api/resources/property/types/index.ts +index 2909edc..3715be2 100644 +--- a/src/api/resources/property/types/index.ts ++++ b/src/api/resources/property/types/index.ts +@@ -21 +21,3 @@ export * from "./StringConfig"; + export * from "./StringConfigOptions"; ++export * from "./FieldAppearance"; ++export * from "./FieldSize"; +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 10a5f87..9aa8c7d 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -265,3 +265,3 @@ export class Records { +@@ -369,3 +369,3 @@ export class Records { +@@ -467,3 +467,3 @@ export class Records { +@@ -585,3 +585,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 7ec652d..d9a5cc1 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 675c124..cc664c0 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 9f3157e..616e3f7 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -964,3 +964,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 0b43579..dabcd7a 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index f7cd116..cd0d9f7 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +@@ -707,3 +707,3 @@ export class Spaces { +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 79d6221..3114c92 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -128,3 +128,3 @@ export class Users { +@@ -190,3 +190,3 @@ export class Users { +@@ -249,3 +249,3 @@ export class Users { +@@ -304,3 +304,3 @@ export class Users { +@@ -365,3 +365,3 @@ export class Users { +@@ -460,3 +460,3 @@ export class Users { +@@ -558,3 +558,3 @@ export class Users { +@@ -661,3 +661,3 @@ export class Users { +@@ -724,3 +724,3 @@ export class Users { +@@ -783,3 +783,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 2b50d28..e8d26c5 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 19d269e..e2eda11 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -61,3 +61,3 @@ export class Workbooks { +@@ -168,3 +168,3 @@ export class Workbooks { +@@ -245,3 +245,3 @@ export class Workbooks { +@@ -331,3 +331,3 @@ export class Workbooks { +@@ -428,3 +428,3 @@ export class Workbooks { +@@ -520,3 +520,3 @@ export class Workbooks { +@@ -581,3 +581,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts +index 481e6bc..5843137 100644 +--- a/src/serialization/resources/index.ts ++++ b/src/serialization/resources/index.ts +@@ -57,2 +57,3 @@ export * from "./workbooks/types"; + export * from "./files/client/requests"; ++export * from "./mapping/client/requests"; + export * from "./records/client/requests"; +diff --git a/src/serialization/resources/mapping/client/index.ts b/src/serialization/resources/mapping/client/index.ts +new file mode 100644 +index 0000000..415726b +--- /dev/null ++++ b/src/serialization/resources/mapping/client/index.ts +@@ -0,0 +1 @@ ++export * from "./requests"; +diff --git a/src/serialization/resources/mapping/client/requests/DeleteAllHistoryForUserRequest.ts b/src/serialization/resources/mapping/client/requests/DeleteAllHistoryForUserRequest.ts +new file mode 100644 +index 0000000..27f302b +--- /dev/null ++++ b/src/serialization/resources/mapping/client/requests/DeleteAllHistoryForUserRequest.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../../.."; ++import * as Flatfile from "../../../../../api"; ++import * as core from "../../../../../core"; ++import { EnvironmentId } from "../../../commons/types/EnvironmentId"; ++ ++export const DeleteAllHistoryForUserRequest: core.serialization.Schema< ++ serializers.DeleteAllHistoryForUserRequest.Raw, ++ Flatfile.DeleteAllHistoryForUserRequest ++> = core.serialization.object({ ++ environmentId: EnvironmentId.optional(), ++}); ++ ++export declare namespace DeleteAllHistoryForUserRequest { ++ interface Raw { ++ environmentId?: EnvironmentId.Raw | null; ++ } ++} +diff --git a/src/serialization/resources/mapping/client/requests/index.ts b/src/serialization/resources/mapping/client/requests/index.ts +new file mode 100644 +index 0000000..93ffcdc +--- /dev/null ++++ b/src/serialization/resources/mapping/client/requests/index.ts +@@ -0,0 +1 @@ ++export { DeleteAllHistoryForUserRequest } from "./DeleteAllHistoryForUserRequest"; +diff --git a/src/serialization/resources/mapping/index.ts b/src/serialization/resources/mapping/index.ts +index eea524d..c9240f8 100644 +--- a/src/serialization/resources/mapping/index.ts ++++ b/src/serialization/resources/mapping/index.ts +@@ -1 +1,2 @@ + export * from "./types"; ++export * from "./client"; +diff --git a/src/serialization/resources/property/types/BaseProperty.ts b/src/serialization/resources/property/types/BaseProperty.ts +index bd9968f..90b945b 100644 +--- a/src/serialization/resources/property/types/BaseProperty.ts ++++ b/src/serialization/resources/property/types/BaseProperty.ts +@@ -8,2 +8,3 @@ import * as core from "../../../../core"; + import { Constraint } from "./Constraint"; ++import { FieldAppearance } from "./FieldAppearance"; + +@@ -16,2 +17,3 @@ export const BaseProperty: core.serialization.ObjectSchema = core.serialization.object({ ++ size: FieldSize.optional(), ++}); ++ ++export declare namespace FieldAppearance { ++ interface Raw { ++ size?: FieldSize.Raw | null; ++ } ++} +diff --git a/src/serialization/resources/property/types/FieldSize.ts b/src/serialization/resources/property/types/FieldSize.ts +new file mode 100644 +index 0000000..082e465 +--- /dev/null ++++ b/src/serialization/resources/property/types/FieldSize.ts +@@ -0,0 +1,14 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const FieldSize: core.serialization.Schema = ++ core.serialization.enum_(["xs", "s", "m", "l", "xl"]); ++ ++export declare namespace FieldSize { ++ type Raw = "xs" | "s" | "m" | "l" | "xl"; ++} +diff --git a/src/serialization/resources/property/types/index.ts b/src/serialization/resources/property/types/index.ts +index 2909edc..3715be2 100644 +--- a/src/serialization/resources/property/types/index.ts ++++ b/src/serialization/resources/property/types/index.ts +@@ -21 +21,3 @@ export * from "./StringConfig"; + export * from "./StringConfigOptions"; ++export * from "./FieldAppearance"; ++export * from "./FieldSize"; diff --git a/release-notes/1.8.2.diff.txt.result.md b/release-notes/1.8.2.diff.txt.result.md new file mode 100644 index 00000000..a8ee67d2 --- /dev/null +++ b/release-notes/1.8.2.diff.txt.result.md @@ -0,0 +1,14 @@ +#### General + +- The package version was updated from `1.8.0` to `1.8.2`. + +#### Mapping + +- A new request type `DeleteAllHistoryForUserRequest` was added, which includes an optional `environmentId` field of type `EnvironmentId`. +- The `Mapping.deleteAllHistoryForUser` method now accepts a `DeleteAllHistoryForUserRequest` object as the first parameter, in addition to the existing `requestOptions` parameter. + +#### Property Types + +- A new type `FieldAppearance` was added, which contains an optional `size` field of type `FieldSize`. +- A new enum type `FieldSize` was added, with values `"xs"`, `"s"`, `"m"`, `"l"`, and `"xl"`. +- The `BaseProperty` type now includes an optional `appearance` field of type `FieldAppearance`. \ No newline at end of file diff --git a/release-notes/1.8.3.diff.txt b/release-notes/1.8.3.diff.txt new file mode 100644 index 00000000..8f8d9b8d --- /dev/null +++ b/release-notes/1.8.3.diff.txt @@ -0,0 +1,365 @@ +diff --git a/package.json b/package.json +index 11f6c46..3829976 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.8.2", ++ "version": "1.8.3", + "private": false, +diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts +index 63c392b..376c62c 100644 +--- a/src/api/resources/accounts/client/Client.ts ++++ b/src/api/resources/accounts/client/Client.ts +@@ -45,3 +45,3 @@ export class Accounts { +@@ -108,3 +108,3 @@ export class Accounts { +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 46e49cc..d024bb2 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 9fc94ee..ae96930 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +index ddc082d..5842123 100644 +--- a/src/api/resources/assistant/client/Client.ts ++++ b/src/api/resources/assistant/client/Client.ts +@@ -58,3 +58,3 @@ export class Assistant { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index fb148fb..bd0b707 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index cad2f36..c153113 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index dbb37d0..7ae39bc 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index 386dc62..fe4b327 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index ca0416c..c07576a 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index b454611..05cd299 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 137ec75..3d15182 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 836d9d4..89602df 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index ee31241..a24e931 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -126,2 +126,6 @@ export class Files { + ++ if (request.origin != null) { ++ _request.append("origin", request.origin); ++ } ++ + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -137,3 +141,3 @@ export class Files { +diff --git a/src/api/resources/files/client/requests/CreateFileRequest.ts b/src/api/resources/files/client/requests/CreateFileRequest.ts +index 5e168e1..6395db1 100644 +--- a/src/api/resources/files/client/requests/CreateFileRequest.ts ++++ b/src/api/resources/files/client/requests/CreateFileRequest.ts +@@ -13,2 +13,4 @@ export interface CreateFileRequest { + actions?: Flatfile.Action[]; ++ /** The origin of the file, ie filesystem */ ++ origin?: Flatfile.FileOrigin; + } +diff --git a/src/api/resources/files/types/FileOrigin.ts b/src/api/resources/files/types/FileOrigin.ts +new file mode 100644 +index 0000000..d5e42ad +--- /dev/null ++++ b/src/api/resources/files/types/FileOrigin.ts +@@ -0,0 +1,12 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++export type FileOrigin = "filesystem" | "googledrive" | "box" | "onedrive"; ++ ++export const FileOrigin = { ++ Filesystem: "filesystem", ++ Googledrive: "googledrive", ++ Box: "box", ++ Onedrive: "onedrive", ++} as const; +diff --git a/src/api/resources/files/types/File_.ts b/src/api/resources/files/types/File_.ts +index 5dd3b08..6a490fa 100644 +--- a/src/api/resources/files/types/File_.ts ++++ b/src/api/resources/files/types/File_.ts +@@ -69,2 +69,3 @@ export interface File_ { + actions?: Flatfile.Action[]; ++ origin?: Flatfile.FileOrigin; + } +diff --git a/src/api/resources/files/types/index.ts b/src/api/resources/files/types/index.ts +index 41dd4cc..51f4cf6 100644 +--- a/src/api/resources/files/types/index.ts ++++ b/src/api/resources/files/types/index.ts +@@ -5 +5,2 @@ export * from "./ModelFileStatusEnum"; + export * from "./Mode"; ++export * from "./FileOrigin"; +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +index 238f249..d939212 100644 +--- a/src/api/resources/foreigndb/client/Client.ts ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -48,3 +48,3 @@ export class Foreigndb { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index c8845d1..bf4c145 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 3ac655f..e9de330 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index db4b14d..87994fe 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 9aa8c7d..92f04a5 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index d9a5cc1..965dc66 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index cc664c0..9e2fed1 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 616e3f7..2501542 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index dabcd7a..7b4b39d 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index cd0d9f7..52fb830 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +diff --git a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +index 12d7903..2fd85c3 100644 +--- a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -12,2 +12,4 @@ export interface InternalSpaceConfigBase { + metadata?: any; ++ /** The Space settings. */ ++ settings?: Flatfile.SpaceSettings; + actions?: Flatfile.Action[]; +diff --git a/src/api/resources/spaces/types/SpaceSettings.ts b/src/api/resources/spaces/types/SpaceSettings.ts +new file mode 100644 +index 0000000..14be1d9 +--- /dev/null ++++ b/src/api/resources/spaces/types/SpaceSettings.ts +@@ -0,0 +1,13 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Settings for a space ++ */ ++export interface SpaceSettings { ++ /** The sidebar configuration for the space. (This will eventually replace metadata.sidebarconfig) */ ++ sidebarConfig?: Flatfile.SpaceSidebarConfig; ++} +diff --git a/src/api/resources/spaces/types/SpaceSidebarConfig.ts b/src/api/resources/spaces/types/SpaceSidebarConfig.ts +new file mode 100644 +index 0000000..11e95c8 +--- /dev/null ++++ b/src/api/resources/spaces/types/SpaceSidebarConfig.ts +@@ -0,0 +1,10 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface SpaceSidebarConfig { ++ /** Used to set the order of workbooks in the sidebar. This will not affect workbooks that are pinned and workbooks that are not specified here will be sorted alphabetically. */ ++ workbookSidebarOrder?: Flatfile.WorkbookId[]; ++} +diff --git a/src/api/resources/spaces/types/index.ts b/src/api/resources/spaces/types/index.ts +index 8669369..c8973d7 100644 +--- a/src/api/resources/spaces/types/index.ts ++++ b/src/api/resources/spaces/types/index.ts +@@ -6,2 +6,4 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; ++export * from "./SpaceSettings"; ++export * from "./SpaceSidebarConfig"; + export * from "./UpgradeSpaceConfig"; +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 3114c92..69ff49e 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index e8d26c5..7eaab15 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index e2eda11..9c3c840 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -61,3 +61,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/files/types/FileOrigin.ts b/src/serialization/resources/files/types/FileOrigin.ts +new file mode 100644 +index 0000000..bbbb3c4 +--- /dev/null ++++ b/src/serialization/resources/files/types/FileOrigin.ts +@@ -0,0 +1,14 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const FileOrigin: core.serialization.Schema = ++ core.serialization.enum_(["filesystem", "googledrive", "box", "onedrive"]); ++ ++export declare namespace FileOrigin { ++ type Raw = "filesystem" | "googledrive" | "box" | "onedrive"; ++} +diff --git a/src/serialization/resources/files/types/File_.ts b/src/serialization/resources/files/types/File_.ts +index e51ec4e..e771d69 100644 +--- a/src/serialization/resources/files/types/File_.ts ++++ b/src/serialization/resources/files/types/File_.ts +@@ -14,2 +14,3 @@ import { SheetId } from "../../commons/types/SheetId"; + import { Action } from "../../commons/types/Action"; ++import { FileOrigin } from "./FileOrigin"; + +@@ -32,2 +33,3 @@ export const File_: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ sidebarConfig: SpaceSidebarConfig.optional(), ++ }); ++ ++export declare namespace SpaceSettings { ++ interface Raw { ++ sidebarConfig?: SpaceSidebarConfig.Raw | null; ++ } ++} +diff --git a/src/serialization/resources/spaces/types/SpaceSidebarConfig.ts b/src/serialization/resources/spaces/types/SpaceSidebarConfig.ts +new file mode 100644 +index 0000000..661a77d +--- /dev/null ++++ b/src/serialization/resources/spaces/types/SpaceSidebarConfig.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { WorkbookId } from "../../commons/types/WorkbookId"; ++ ++export const SpaceSidebarConfig: core.serialization.ObjectSchema< ++ serializers.SpaceSidebarConfig.Raw, ++ Flatfile.SpaceSidebarConfig ++> = core.serialization.object({ ++ workbookSidebarOrder: core.serialization.list(WorkbookId).optional(), ++}); ++ ++export declare namespace SpaceSidebarConfig { ++ interface Raw { ++ workbookSidebarOrder?: WorkbookId.Raw[] | null; ++ } ++} +diff --git a/src/serialization/resources/spaces/types/index.ts b/src/serialization/resources/spaces/types/index.ts +index 8669369..c8973d7 100644 +--- a/src/serialization/resources/spaces/types/index.ts ++++ b/src/serialization/resources/spaces/types/index.ts +@@ -6,2 +6,4 @@ export * from "./SpaceConfig"; + export * from "./InternalSpaceConfigBase"; ++export * from "./SpaceSettings"; ++export * from "./SpaceSidebarConfig"; + export * from "./UpgradeSpaceConfig"; diff --git a/release-notes/1.8.3.diff.txt.result.md b/release-notes/1.8.3.diff.txt.result.md new file mode 100644 index 00000000..7cd0a3fa --- /dev/null +++ b/release-notes/1.8.3.diff.txt.result.md @@ -0,0 +1,13 @@ +#### Files + +- A new property `origin` of type `FileOrigin` has been added to the `CreateFileRequest` interface and the `File_` type. This property is used to specify the origin of the file being created (e.g., `"filesystem"`, `"googledrive"`, `"box"`, or `"onedrive"`). +- A new enum type `FileOrigin` has been introduced to represent the possible origins of a file. +- The `Files.createFile` method now accepts an optional `origin` parameter in the request. + +#### Spaces + +- A new type `SpaceSettings` has been introduced to represent settings for a space. +- A new type `SpaceSidebarConfig` has been introduced to represent the configuration for the sidebar in a space. +- The `InternalSpaceConfigBase` type now includes an optional `settings` property of type `SpaceSettings`. +- The `SpaceSettings` type includes an optional `sidebarConfig` property of type `SpaceSidebarConfig`. +- The `SpaceSidebarConfig` type includes an optional `workbookSidebarOrder` property, which is an array of `WorkbookId`. diff --git a/release-notes/1.8.4.diff.txt b/release-notes/1.8.4.diff.txt new file mode 100644 index 00000000..dac383a4 --- /dev/null +++ b/release-notes/1.8.4.diff.txt @@ -0,0 +1,1315 @@ +diff --git a/package.json b/package.json +index 3829976..1ac2b24 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.8.3", ++ "version": "1.8.4", + "private": false, +diff --git a/src/Client.ts b/src/Client.ts +index cb04dd8..e654746 100644 +--- a/src/Client.ts ++++ b/src/Client.ts +@@ -31,2 +31,3 @@ import { Users } from "./api/resources/users/client/Client"; + import { Versions } from "./api/resources/versions/client/Client"; ++import { Views } from "./api/resources/views/client/Client"; + import { Workbooks } from "./api/resources/workbooks/client/Client"; +@@ -199,2 +200,8 @@ export class FlatfileClient { + ++ protected _views: Views | undefined; ++ ++ public get views(): Views { ++ return (this._views ??= new Views(this._options)); ++ } ++ + protected _workbooks: Workbooks | undefined; +diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts +index 376c62c..e60f6aa 100644 +--- a/src/api/resources/accounts/client/Client.ts ++++ b/src/api/resources/accounts/client/Client.ts +@@ -45,3 +45,3 @@ export class Accounts { +@@ -108,3 +108,3 @@ export class Accounts { +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index d024bb2..379907f 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index ae96930..722d45d 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +index 5842123..0042ebf 100644 +--- a/src/api/resources/assistant/client/Client.ts ++++ b/src/api/resources/assistant/client/Client.ts +@@ -58,3 +58,3 @@ export class Assistant { +@@ -120,3 +120,3 @@ export class Assistant { +@@ -184,3 +184,3 @@ export class Assistant { +@@ -248,3 +248,3 @@ export class Assistant { +@@ -310,3 +310,3 @@ export class Assistant { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index bd0b707..3641cfc 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index c153113..abf66dd 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 7ae39bc..a86524d 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/commons/types/ViewId.ts b/src/api/resources/commons/types/ViewId.ts +new file mode 100644 +index 0000000..7fd38b4 +--- /dev/null ++++ b/src/api/resources/commons/types/ViewId.ts +@@ -0,0 +1,11 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++/** ++ * View ID ++ * ++ * @example ++ * "us_vi_YOUR_ID" ++ */ ++export type ViewId = string; +diff --git a/src/api/resources/commons/types/index.ts b/src/api/resources/commons/types/index.ts +index baa887d..c74eb67 100644 +--- a/src/api/resources/commons/types/index.ts ++++ b/src/api/resources/commons/types/index.ts +@@ -25,2 +25,3 @@ export * from "./FamilyId"; + export * from "./PromptId"; ++export * from "./ViewId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index fe4b327..ce92494 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index c07576a..b77b6aa 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index 05cd299..a987c09 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 3d15182..a71f98a 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 89602df..2976bd5 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index a24e931..8e7e83f 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -141,3 +141,3 @@ export class Files { +@@ -214,3 +214,3 @@ export class Files { +@@ -293,3 +293,3 @@ export class Files { +@@ -382,3 +382,3 @@ export class Files { +@@ -462,3 +462,3 @@ export class Files { +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +index d939212..c5abb2b 100644 +--- a/src/api/resources/foreigndb/client/Client.ts ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -48,3 +48,3 @@ export class Foreigndb { +@@ -132,3 +132,3 @@ export class Foreigndb { +@@ -215,3 +215,3 @@ export class Foreigndb { +@@ -298,3 +298,3 @@ export class Foreigndb { +@@ -382,3 +382,3 @@ export class Foreigndb { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index bf4c145..d207820 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts +index 21a77dd..58af0ee 100644 +--- a/src/api/resources/index.ts ++++ b/src/api/resources/index.ts +@@ -54,2 +54,4 @@ export * as versions from "./versions"; + export * from "./versions/types"; ++export * as views from "./views"; ++export * from "./views/types"; + export * as workbooks from "./workbooks"; +@@ -76,2 +78,3 @@ export * from "./users/client/requests"; + export * from "./versions/client/requests"; ++export * from "./views/client/requests"; + export * from "./workbooks/client/requests"; +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index e9de330..64c9a3e 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1109,3 +1109,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 87994fe..e2982a2 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -131,3 +131,3 @@ export class Mapping { +@@ -269,3 +269,3 @@ export class Mapping { +@@ -343,3 +343,3 @@ export class Mapping { +@@ -427,3 +427,3 @@ export class Mapping { +@@ -511,3 +511,3 @@ export class Mapping { +@@ -595,3 +595,3 @@ export class Mapping { +@@ -682,3 +682,3 @@ export class Mapping { +@@ -771,3 +771,3 @@ export class Mapping { +@@ -865,3 +865,3 @@ export class Mapping { +@@ -950,3 +950,3 @@ export class Mapping { +@@ -1040,3 +1040,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 92f04a5..6ef5915 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -265,3 +265,3 @@ export class Records { +@@ -369,3 +369,3 @@ export class Records { +@@ -467,3 +467,3 @@ export class Records { +@@ -585,3 +585,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 965dc66..a0ce6a4 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 9e2fed1..f313a98 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 2501542..4663e4e 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -964,3 +964,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 7b4b39d..27114b3 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index 52fb830..d13dbe8 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +@@ -707,3 +707,3 @@ export class Spaces { +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 69ff49e..b4163e6 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -128,3 +128,3 @@ export class Users { +@@ -190,3 +190,3 @@ export class Users { +@@ -249,3 +249,3 @@ export class Users { +@@ -304,3 +304,3 @@ export class Users { +@@ -365,3 +365,3 @@ export class Users { +@@ -460,3 +460,3 @@ export class Users { +@@ -558,3 +558,3 @@ export class Users { +@@ -661,3 +661,3 @@ export class Users { +@@ -724,3 +724,3 @@ export class Users { +@@ -783,3 +783,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 7eaab15..a6f9aad 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/views/client/Client.ts b/src/api/resources/views/client/Client.ts +new file mode 100644 +index 0000000..10e0582 +--- /dev/null ++++ b/src/api/resources/views/client/Client.ts +@@ -0,0 +1,463 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as environments from "../../../../environments"; ++import * as core from "../../../../core"; ++import * as Flatfile from "../../.."; ++import urlJoin from "url-join"; ++import * as serializers from "../../../../serialization"; ++import * as errors from "../../../../errors"; ++ ++export declare namespace Views { ++ interface Options { ++ environment?: core.Supplier; ++ token?: core.Supplier; ++ fetcher?: core.FetchFunction; ++ } ++ ++ interface RequestOptions { ++ timeoutInSeconds?: number; ++ maxRetries?: number; ++ } ++} ++ ++export class Views { ++ constructor(protected readonly _options: Views.Options = {}) {} ++ ++ /** ++ * Returns all views for user and sheet ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * ++ * @example ++ * await flatfile.views.list({ ++ * sheetId: "us_sh_YOUR_ID" ++ * }) ++ */ ++ public async list( ++ request: Flatfile.ListViewsRequest, ++ requestOptions?: Views.RequestOptions ++ ): Promise { ++ const { sheetId } = request; ++ const _queryParams: Record = {}; ++ _queryParams["sheetId"] = sheetId; ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/views" ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ queryParameters: _queryParams, ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ListViewsResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Add a new view to the space ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * ++ * @example ++ * await flatfile.views.create({ ++ * sheetId: "us_sh_YOUR_ID", ++ * name: "My View", ++ * config: { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ * }) ++ */ ++ public async create( ++ request: Flatfile.ViewCreate, ++ requestOptions?: Views.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ "/views" ++ ), ++ method: "POST", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.ViewCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ViewResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Returns a single view ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * ++ * @example ++ * await flatfile.views.get("us_vi_YOUR_ID") ++ */ ++ public async get(viewId: Flatfile.ViewId, requestOptions?: Views.RequestOptions): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/views/${await serializers.ViewId.jsonOrThrow(viewId)}` ++ ), ++ method: "GET", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ViewResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Updates a single view ++ * @throws {@link Flatfile.BadRequestError} ++ * @throws {@link Flatfile.NotFoundError} ++ * ++ * @example ++ * await flatfile.views.update("us_vi_YOUR_ID", { ++ * name: "My View", ++ * config: { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ * }) ++ */ ++ public async update( ++ viewId: Flatfile.ViewId, ++ request: Flatfile.ViewUpdate, ++ requestOptions?: Views.RequestOptions ++ ): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/views/${await serializers.ViewId.jsonOrThrow(viewId)}` ++ ), ++ method: "PATCH", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ body: await serializers.ViewUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.ViewResponse.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ switch (_response.error.statusCode) { ++ case 400: ++ throw new Flatfile.BadRequestError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ case 404: ++ throw new Flatfile.NotFoundError( ++ await serializers.Errors.parseOrThrow(_response.error.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }) ++ ); ++ default: ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ /** ++ * Deletes a single view ++ * ++ * @example ++ * await flatfile.views.delete("us_vi_YOUR_ID") ++ */ ++ public async delete(viewId: Flatfile.ViewId, requestOptions?: Views.RequestOptions): Promise { ++ const _response = await (this._options.fetcher ?? core.fetcher)({ ++ url: urlJoin( ++ (await core.Supplier.get(this._options.environment)) ?? environments.FlatfileEnvironment.Production, ++ `/views/${await serializers.ViewId.jsonOrThrow(viewId)}` ++ ), ++ method: "DELETE", ++ headers: { ++ Authorization: await this._getAuthorizationHeader(), ++ }, ++ contentType: "application/json", ++ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, ++ maxRetries: requestOptions?.maxRetries, ++ }); ++ if (_response.ok) { ++ return await serializers.Success.parseOrThrow(_response.body, { ++ unrecognizedObjectKeys: "passthrough", ++ allowUnrecognizedUnionMembers: true, ++ allowUnrecognizedEnumValues: true, ++ skipValidation: true, ++ breadcrumbsPrefix: ["response"], ++ }); ++ } ++ ++ if (_response.error.reason === "status-code") { ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.body, ++ }); ++ } ++ ++ switch (_response.error.reason) { ++ case "non-json": ++ throw new errors.FlatfileError({ ++ statusCode: _response.error.statusCode, ++ body: _response.error.rawBody, ++ }); ++ case "timeout": ++ throw new errors.FlatfileTimeoutError(); ++ case "unknown": ++ throw new errors.FlatfileError({ ++ message: _response.error.errorMessage, ++ }); ++ } ++ } ++ ++ protected async _getAuthorizationHeader() { ++ const bearer = await core.Supplier.get(this._options.token); ++ if (bearer != null) { ++ return `Bearer ${bearer}`; ++ } ++ ++ return undefined; ++ } ++} +diff --git a/src/api/resources/views/client/index.ts b/src/api/resources/views/client/index.ts +new file mode 100644 +index 0000000..415726b +--- /dev/null ++++ b/src/api/resources/views/client/index.ts +@@ -0,0 +1 @@ ++export * from "./requests"; +diff --git a/src/api/resources/views/client/requests/ListViewsRequest.ts b/src/api/resources/views/client/requests/ListViewsRequest.ts +new file mode 100644 +index 0000000..87b0341 +--- /dev/null ++++ b/src/api/resources/views/client/requests/ListViewsRequest.ts +@@ -0,0 +1,18 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../../.."; ++ ++/** ++ * @example ++ * { ++ * sheetId: "us_sh_YOUR_ID" ++ * } ++ */ ++export interface ListViewsRequest { ++ /** ++ * The associated sheet ID of the view. ++ */ ++ sheetId: Flatfile.SheetId; ++} +diff --git a/src/api/resources/views/client/requests/index.ts b/src/api/resources/views/client/requests/index.ts +new file mode 100644 +index 0000000..ca751ea +--- /dev/null ++++ b/src/api/resources/views/client/requests/index.ts +@@ -0,0 +1 @@ ++export { ListViewsRequest } from "./ListViewsRequest"; +diff --git a/src/api/resources/views/index.ts b/src/api/resources/views/index.ts +new file mode 100644 +index 0000000..c9240f8 +--- /dev/null ++++ b/src/api/resources/views/index.ts +@@ -0,0 +1,2 @@ ++export * from "./types"; ++export * from "./client"; +diff --git a/src/api/resources/views/types/ListViewsResponse.ts b/src/api/resources/views/types/ListViewsResponse.ts +new file mode 100644 +index 0000000..d04f9b7 +--- /dev/null ++++ b/src/api/resources/views/types/ListViewsResponse.ts +@@ -0,0 +1,32 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: [{ ++ * id: "us_vi_YOUR_ID", ++ * sheetId: "us_sh_YOUR_ID", ++ * name: "My View", ++ * config: { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ * }], ++ * pagination: { ++ * currentPage: 3, ++ * pageCount: 50, ++ * totalCount: 100 ++ * } ++ * } ++ */ ++export interface ListViewsResponse { ++ pagination?: Flatfile.Pagination; ++ data: Flatfile.View[]; ++} +diff --git a/src/api/resources/views/types/View.ts b/src/api/resources/views/types/View.ts +new file mode 100644 +index 0000000..acee5c6 +--- /dev/null ++++ b/src/api/resources/views/types/View.ts +@@ -0,0 +1,33 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * A view ++ * ++ * @example ++ * { ++ * id: "us_vi_YOUR_ID", ++ * sheetId: "us_sh_YOUR_ID", ++ * name: "My View", ++ * config: { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ * } ++ */ ++export interface View { ++ /** The ID of the view */ ++ id: Flatfile.ViewId; ++ /** The associated sheet ID of the view */ ++ sheetId: Flatfile.SheetId; ++ /** The name of the view */ ++ name: string; ++ /** The view filters of the view */ ++ config: Flatfile.ViewConfig; ++} +diff --git a/src/api/resources/views/types/ViewConfig.ts b/src/api/resources/views/types/ViewConfig.ts +new file mode 100644 +index 0000000..2176fbc +--- /dev/null ++++ b/src/api/resources/views/types/ViewConfig.ts +@@ -0,0 +1,51 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * The configuration of a view. Filters, sorting, and search query. ++ * ++ * @example ++ * { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ */ ++export interface ViewConfig { ++ /** Deprecated, use `commitId` instead. */ ++ versionId?: Flatfile.VersionId; ++ commitId?: Flatfile.CommitId; ++ /** Deprecated, use `sinceCommitId` instead. */ ++ sinceVersionId?: Flatfile.VersionId; ++ sinceCommitId?: Flatfile.CommitId; ++ sortField?: Flatfile.SortField; ++ sortDirection?: Flatfile.SortDirection; ++ filter?: Flatfile.Filter; ++ /** Name of field by which to filter records */ ++ filterField?: Flatfile.FilterField; ++ searchValue?: Flatfile.SearchValue; ++ searchField?: Flatfile.SearchField; ++ /** The Record Ids param (ids) is a list of record ids that can be passed to several record endpoints allowing the user to identify specific records to INCLUDE in the query, or specific records to EXCLUDE, depending on whether or not filters are being applied. When passing a query param that filters the record dataset, such as 'searchValue', or a 'filter' of 'valid' | 'error' | 'all', the 'ids' param will EXCLUDE those records from the filtered results. For basic queries that do not filter the dataset, passing record ids in the 'ids' param will limit the dataset to INCLUDE just those specific records. Maximum of 100 allowed. */ ++ ids?: Flatfile.RecordId[]; ++ /** Number of records to return in a page (default 10,000) */ ++ pageSize?: number; ++ /** Based on pageSize, which page of records to return (Note - numbers start at 1) */ ++ pageNumber?: number; ++ /** **DEPRECATED** Use GET /sheets/:sheetId/counts */ ++ includeCounts?: boolean; ++ /** The length of the record result set, returned as counts.total */ ++ includeLength?: boolean; ++ /** If true, linked records will be included in the results. Defaults to false. */ ++ includeLinks?: boolean; ++ /** Include error messages, defaults to false. */ ++ includeMessages?: boolean; ++ /** if "for" is provided, the query parameters will be pulled from the event payload */ ++ for?: Flatfile.EventId; ++ /** An FFQL query used to filter the result set */ ++ q?: string; ++} +diff --git a/src/api/resources/views/types/ViewCreate.ts b/src/api/resources/views/types/ViewCreate.ts +new file mode 100644 +index 0000000..5a0144f +--- /dev/null ++++ b/src/api/resources/views/types/ViewCreate.ts +@@ -0,0 +1,25 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * sheetId: "us_sh_YOUR_ID", ++ * name: "My View", ++ * config: { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ * } ++ */ ++export interface ViewCreate { ++ sheetId: Flatfile.SheetId; ++ name: string; ++ config: Flatfile.ViewConfig; ++} +diff --git a/src/api/resources/views/types/ViewResponse.ts b/src/api/resources/views/types/ViewResponse.ts +new file mode 100644 +index 0000000..919cc07 +--- /dev/null ++++ b/src/api/resources/views/types/ViewResponse.ts +@@ -0,0 +1,26 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * data: { ++ * id: "us_vi_YOUR_ID", ++ * sheetId: "us_sh_YOUR_ID", ++ * name: "My View", ++ * config: { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ * } ++ * } ++ */ ++export interface ViewResponse { ++ data: Flatfile.View; ++} +diff --git a/src/api/resources/views/types/ViewUpdate.ts b/src/api/resources/views/types/ViewUpdate.ts +new file mode 100644 +index 0000000..bafc352 +--- /dev/null ++++ b/src/api/resources/views/types/ViewUpdate.ts +@@ -0,0 +1,23 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * @example ++ * { ++ * name: "My View", ++ * config: { ++ * filter: Flatfile.Filter.Error, ++ * filterField: "email", ++ * q: "firstname like %John%", ++ * sortField: "email", ++ * sortDirection: Flatfile.SortDirection.Asc ++ * } ++ * } ++ */ ++export interface ViewUpdate { ++ name?: string; ++ config: Flatfile.ViewConfig; ++} +diff --git a/src/api/resources/views/types/index.ts b/src/api/resources/views/types/index.ts +new file mode 100644 +index 0000000..078b651 +--- /dev/null ++++ b/src/api/resources/views/types/index.ts +@@ -0,0 +1,6 @@ ++export * from "./ViewConfig"; ++export * from "./View"; ++export * from "./ListViewsResponse"; ++export * from "./ViewResponse"; ++export * from "./ViewCreate"; ++export * from "./ViewUpdate"; +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 9c3c840..2b89420 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -61,3 +61,3 @@ export class Workbooks { +@@ -168,3 +168,3 @@ export class Workbooks { +@@ -245,3 +245,3 @@ export class Workbooks { +@@ -331,3 +331,3 @@ export class Workbooks { +@@ -428,3 +428,3 @@ export class Workbooks { +@@ -520,3 +520,3 @@ export class Workbooks { +@@ -581,3 +581,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/commons/types/ViewId.ts b/src/serialization/resources/commons/types/ViewId.ts +new file mode 100644 +index 0000000..6d7b58d +--- /dev/null ++++ b/src/serialization/resources/commons/types/ViewId.ts +@@ -0,0 +1,13 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++ ++export const ViewId: core.serialization.Schema = core.serialization.string(); ++ ++export declare namespace ViewId { ++ type Raw = string; ++} +diff --git a/src/serialization/resources/commons/types/index.ts b/src/serialization/resources/commons/types/index.ts +index baa887d..c74eb67 100644 +--- a/src/serialization/resources/commons/types/index.ts ++++ b/src/serialization/resources/commons/types/index.ts +@@ -25,2 +25,3 @@ export * from "./FamilyId"; + export * from "./PromptId"; ++export * from "./ViewId"; + export * from "./DataRetentionPolicyId"; +diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts +index 5843137..19a6b2a 100644 +--- a/src/serialization/resources/index.ts ++++ b/src/serialization/resources/index.ts +@@ -54,2 +54,4 @@ export * as versions from "./versions"; + export * from "./versions/types"; ++export * as views from "./views"; ++export * from "./views/types"; + export * as workbooks from "./workbooks"; +diff --git a/src/serialization/resources/views/index.ts b/src/serialization/resources/views/index.ts +new file mode 100644 +index 0000000..eea524d +--- /dev/null ++++ b/src/serialization/resources/views/index.ts +@@ -0,0 +1 @@ ++export * from "./types"; +diff --git a/src/serialization/resources/views/types/ListViewsResponse.ts b/src/serialization/resources/views/types/ListViewsResponse.ts +new file mode 100644 +index 0000000..39f5125 +--- /dev/null ++++ b/src/serialization/resources/views/types/ListViewsResponse.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { Pagination } from "../../commons/types/Pagination"; ++import { View } from "./View"; ++ ++export const ListViewsResponse: core.serialization.ObjectSchema< ++ serializers.ListViewsResponse.Raw, ++ Flatfile.ListViewsResponse ++> = core.serialization.object({ ++ pagination: Pagination.optional(), ++ data: core.serialization.list(View), ++}); ++ ++export declare namespace ListViewsResponse { ++ interface Raw { ++ pagination?: Pagination.Raw | null; ++ data: View.Raw[]; ++ } ++} +diff --git a/src/serialization/resources/views/types/View.ts b/src/serialization/resources/views/types/View.ts +new file mode 100644 +index 0000000..c387b7f +--- /dev/null ++++ b/src/serialization/resources/views/types/View.ts +@@ -0,0 +1,26 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { ViewId } from "../../commons/types/ViewId"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { ViewConfig } from "./ViewConfig"; ++ ++export const View: core.serialization.ObjectSchema = core.serialization.object({ ++ id: ViewId, ++ sheetId: SheetId, ++ name: core.serialization.string(), ++ config: ViewConfig, ++}); ++ ++export declare namespace View { ++ interface Raw { ++ id: ViewId.Raw; ++ sheetId: SheetId.Raw; ++ name: string; ++ config: ViewConfig.Raw; ++ } ++} +diff --git a/src/serialization/resources/views/types/ViewConfig.ts b/src/serialization/resources/views/types/ViewConfig.ts +new file mode 100644 +index 0000000..809f5b9 +--- /dev/null ++++ b/src/serialization/resources/views/types/ViewConfig.ts +@@ -0,0 +1,64 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { VersionId } from "../../commons/types/VersionId"; ++import { CommitId } from "../../commons/types/CommitId"; ++import { SortField } from "../../commons/types/SortField"; ++import { SortDirection } from "../../commons/types/SortDirection"; ++import { Filter } from "../../commons/types/Filter"; ++import { FilterField } from "../../commons/types/FilterField"; ++import { SearchValue } from "../../commons/types/SearchValue"; ++import { SearchField } from "../../commons/types/SearchField"; ++import { RecordId } from "../../commons/types/RecordId"; ++import { EventId } from "../../commons/types/EventId"; ++ ++export const ViewConfig: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ versionId: VersionId.optional(), ++ commitId: CommitId.optional(), ++ sinceVersionId: VersionId.optional(), ++ sinceCommitId: CommitId.optional(), ++ sortField: SortField.optional(), ++ sortDirection: SortDirection.optional(), ++ filter: Filter.optional(), ++ filterField: FilterField.optional(), ++ searchValue: SearchValue.optional(), ++ searchField: SearchField.optional(), ++ ids: core.serialization.list(RecordId).optional(), ++ pageSize: core.serialization.number().optional(), ++ pageNumber: core.serialization.number().optional(), ++ includeCounts: core.serialization.boolean().optional(), ++ includeLength: core.serialization.boolean().optional(), ++ includeLinks: core.serialization.boolean().optional(), ++ includeMessages: core.serialization.boolean().optional(), ++ for: EventId.optional(), ++ q: core.serialization.string().optional(), ++ }); ++ ++export declare namespace ViewConfig { ++ interface Raw { ++ versionId?: VersionId.Raw | null; ++ commitId?: CommitId.Raw | null; ++ sinceVersionId?: VersionId.Raw | null; ++ sinceCommitId?: CommitId.Raw | null; ++ sortField?: SortField.Raw | null; ++ sortDirection?: SortDirection.Raw | null; ++ filter?: Filter.Raw | null; ++ filterField?: FilterField.Raw | null; ++ searchValue?: SearchValue.Raw | null; ++ searchField?: SearchField.Raw | null; ++ ids?: RecordId.Raw[] | null; ++ pageSize?: number | null; ++ pageNumber?: number | null; ++ includeCounts?: boolean | null; ++ includeLength?: boolean | null; ++ includeLinks?: boolean | null; ++ includeMessages?: boolean | null; ++ for?: EventId.Raw | null; ++ q?: string | null; ++ } ++} +diff --git a/src/serialization/resources/views/types/ViewCreate.ts b/src/serialization/resources/views/types/ViewCreate.ts +new file mode 100644 +index 0000000..d2a3e21 +--- /dev/null ++++ b/src/serialization/resources/views/types/ViewCreate.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { SheetId } from "../../commons/types/SheetId"; ++import { ViewConfig } from "./ViewConfig"; ++ ++export const ViewCreate: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ sheetId: SheetId, ++ name: core.serialization.string(), ++ config: ViewConfig, ++ }); ++ ++export declare namespace ViewCreate { ++ interface Raw { ++ sheetId: SheetId.Raw; ++ name: string; ++ config: ViewConfig.Raw; ++ } ++} +diff --git a/src/serialization/resources/views/types/ViewResponse.ts b/src/serialization/resources/views/types/ViewResponse.ts +new file mode 100644 +index 0000000..c209f95 +--- /dev/null ++++ b/src/serialization/resources/views/types/ViewResponse.ts +@@ -0,0 +1,19 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { View } from "./View"; ++ ++export const ViewResponse: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ data: View, ++ }); ++ ++export declare namespace ViewResponse { ++ interface Raw { ++ data: View.Raw; ++ } ++} +diff --git a/src/serialization/resources/views/types/ViewUpdate.ts b/src/serialization/resources/views/types/ViewUpdate.ts +new file mode 100644 +index 0000000..1c24845 +--- /dev/null ++++ b/src/serialization/resources/views/types/ViewUpdate.ts +@@ -0,0 +1,21 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { ViewConfig } from "./ViewConfig"; ++ ++export const ViewUpdate: core.serialization.ObjectSchema = ++ core.serialization.object({ ++ name: core.serialization.string().optional(), ++ config: ViewConfig, ++ }); ++ ++export declare namespace ViewUpdate { ++ interface Raw { ++ name?: string | null; ++ config: ViewConfig.Raw; ++ } ++} +diff --git a/src/serialization/resources/views/types/index.ts b/src/serialization/resources/views/types/index.ts +new file mode 100644 +index 0000000..078b651 +--- /dev/null ++++ b/src/serialization/resources/views/types/index.ts +@@ -0,0 +1,6 @@ ++export * from "./ViewConfig"; ++export * from "./View"; ++export * from "./ListViewsResponse"; ++export * from "./ViewResponse"; ++export * from "./ViewCreate"; ++export * from "./ViewUpdate"; diff --git a/release-notes/1.8.4.diff.txt.result.md b/release-notes/1.8.4.diff.txt.result.md new file mode 100644 index 00000000..dc9488e1 --- /dev/null +++ b/release-notes/1.8.4.diff.txt.result.md @@ -0,0 +1,23 @@ +Here are the release notes summarizing the changes in the provided diff: + +#### General Changes + +- Added a new resource `Views` to manage views in Flatfile Sheets +- Added serialization and type definitions for views + +#### Views + +- Added `Views.list()` method to list all views for a given sheet +- Added `Views.create()` method to create a new view +- Added `Views.get()` method to fetch a single view by ID +- Added `Views.update()` method to update an existing view +- Added `Views.delete()` method to delete a view + +#### Types + +- Added `ViewId` type to represent a view ID +- Added `ViewConfig` type to represent view configuration options like filters, sorting, and search +- Added `ViewCreate` type for creating a new view +- Added `View` type to represent a view object +- Added `ViewResponse` type for responses containing view data +- Added `ListViewsResponse` type for responses with a list of views \ No newline at end of file diff --git a/release-notes/1.8.5.diff.txt b/release-notes/1.8.5.diff.txt new file mode 100644 index 00000000..dc48f6ed --- /dev/null +++ b/release-notes/1.8.5.diff.txt @@ -0,0 +1,333 @@ +diff --git a/package.json b/package.json +index 1ac2b24..61ac2fc 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.8.4", ++ "version": "1.8.5", + "private": false, +diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts +index e60f6aa..b32a5d2 100644 +--- a/src/api/resources/accounts/client/Client.ts ++++ b/src/api/resources/accounts/client/Client.ts +@@ -45,3 +45,3 @@ export class Accounts { +@@ -108,3 +108,3 @@ export class Accounts { +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index 379907f..e883196 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +@@ -127,3 +127,3 @@ export class Agents { +@@ -210,3 +210,3 @@ export class Agents { +@@ -295,3 +295,3 @@ export class Agents { +@@ -390,3 +390,3 @@ export class Agents { +@@ -488,3 +488,3 @@ export class Agents { +@@ -589,3 +589,3 @@ export class Agents { +@@ -681,3 +681,3 @@ export class Agents { +@@ -792,3 +792,3 @@ export class Agents { +@@ -903,3 +903,3 @@ export class Agents { +@@ -996,3 +996,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index 722d45d..d35087e 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +index 0042ebf..577e66d 100644 +--- a/src/api/resources/assistant/client/Client.ts ++++ b/src/api/resources/assistant/client/Client.ts +@@ -58,3 +58,3 @@ export class Assistant { +@@ -120,3 +120,3 @@ export class Assistant { +@@ -184,3 +184,3 @@ export class Assistant { +@@ -248,3 +248,3 @@ export class Assistant { +@@ -310,3 +310,3 @@ export class Assistant { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 3641cfc..7b1f9af 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index abf66dd..8663f69 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index a86524d..32a5667 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index ce92494..c108c10 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index b77b6aa..bdeac39 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index a987c09..d4cb9ac 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index a71f98a..09fc1f0 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index 2976bd5..c8697b0 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 8e7e83f..658a5bc 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +index c5abb2b..f2893b7 100644 +--- a/src/api/resources/foreigndb/client/Client.ts ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -48,3 +48,3 @@ export class Foreigndb { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index d207820..68f909b 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index 64c9a3e..d671d44 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index e2982a2..2ab9850 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -1040,3 +1040,3 @@ export class Mapping { +diff --git a/src/api/resources/property/types/EnumListProperty.ts b/src/api/resources/property/types/EnumListProperty.ts +new file mode 100644 +index 0000000..2269ece +--- /dev/null ++++ b/src/api/resources/property/types/EnumListProperty.ts +@@ -0,0 +1,12 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Defines an array of values selected from an enumerated list of options. Matching tooling attempts to resolve incoming data assigment to a valid option. The maximum number of items that can be in this list is `100`. ++ */ ++export interface EnumListProperty extends Flatfile.BaseProperty { ++ config: Flatfile.EnumPropertyConfig; ++} +diff --git a/src/api/resources/property/types/Property.ts b/src/api/resources/property/types/Property.ts +index 71790b1..c7192b0 100644 +--- a/src/api/resources/property/types/Property.ts ++++ b/src/api/resources/property/types/Property.ts +@@ -130,3 +130,5 @@ export type Property = + | Flatfile.Property.Enum +- | Flatfile.Property.Reference; ++ | Flatfile.Property.Reference ++ | Flatfile.Property.StringList ++ | Flatfile.Property.EnumList; + +@@ -156,2 +158,10 @@ export declare namespace Property { + } ++ ++ interface StringList extends Flatfile.StringListProperty { ++ type: "string-list"; ++ } ++ ++ interface EnumList extends Flatfile.EnumListProperty { ++ type: "enum-list"; ++ } + } +diff --git a/src/api/resources/property/types/StringListProperty.ts b/src/api/resources/property/types/StringListProperty.ts +new file mode 100644 +index 0000000..b78c377 +--- /dev/null ++++ b/src/api/resources/property/types/StringListProperty.ts +@@ -0,0 +1,10 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++/** ++ * Defines a property that should be stored and read as an array of strings. Database engines should expect any number of items to be provided here. The maximum number of items that can be in this list is `100`. ++ */ ++export interface StringListProperty extends Flatfile.BaseProperty {} +diff --git a/src/api/resources/property/types/index.ts b/src/api/resources/property/types/index.ts +index 3715be2..31f212c 100644 +--- a/src/api/resources/property/types/index.ts ++++ b/src/api/resources/property/types/index.ts +@@ -4,2 +4,3 @@ export * from "./ArrayableProperty"; + export * from "./StringProperty"; ++export * from "./StringListProperty"; + export * from "./NumberProperty"; +@@ -10,2 +11,3 @@ export * from "./DateProperty"; + export * from "./EnumProperty"; ++export * from "./EnumListProperty"; + export * from "./EnumPropertyConfig"; +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index 6ef5915..ab5cd3c 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index a0ce6a4..1f1f584 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index f313a98..0c8dce9 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index 4663e4e..af79595 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 27114b3..56da28b 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index d13dbe8..a1e714c 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index b4163e6..6ffde26 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index a6f9aad..05c5e08 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/views/client/Client.ts b/src/api/resources/views/client/Client.ts +index 10e0582..e3765e8 100644 +--- a/src/api/resources/views/client/Client.ts ++++ b/src/api/resources/views/client/Client.ts +@@ -55,3 +55,3 @@ export class Views { +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index 2b89420..f3a2c4b 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -61,3 +61,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/property/types/EnumListProperty.ts b/src/serialization/resources/property/types/EnumListProperty.ts +new file mode 100644 +index 0000000..f210805 +--- /dev/null ++++ b/src/serialization/resources/property/types/EnumListProperty.ts +@@ -0,0 +1,24 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { EnumPropertyConfig } from "./EnumPropertyConfig"; ++import { BaseProperty } from "./BaseProperty"; ++ ++export const EnumListProperty: core.serialization.ObjectSchema< ++ serializers.EnumListProperty.Raw, ++ Flatfile.EnumListProperty ++> = core.serialization ++ .object({ ++ config: EnumPropertyConfig, ++ }) ++ .extend(BaseProperty); ++ ++export declare namespace EnumListProperty { ++ interface Raw extends BaseProperty.Raw { ++ config: EnumPropertyConfig.Raw; ++ } ++} +diff --git a/src/serialization/resources/property/types/Property.ts b/src/serialization/resources/property/types/Property.ts +index fa7c2c0..105df47 100644 +--- a/src/serialization/resources/property/types/Property.ts ++++ b/src/serialization/resources/property/types/Property.ts +@@ -13,2 +13,4 @@ import { EnumProperty } from "./EnumProperty"; + import { ReferenceProperty } from "./ReferenceProperty"; ++import { StringListProperty } from "./StringListProperty"; ++import { EnumListProperty } from "./EnumListProperty"; + +@@ -22,2 +24,4 @@ export const Property: core.serialization.Schema = core.serialization.object({}).extend(BaseProperty); ++ ++export declare namespace StringListProperty { ++ interface Raw extends BaseProperty.Raw {} ++} +diff --git a/src/serialization/resources/property/types/index.ts b/src/serialization/resources/property/types/index.ts +index 3715be2..31f212c 100644 +--- a/src/serialization/resources/property/types/index.ts ++++ b/src/serialization/resources/property/types/index.ts +@@ -4,2 +4,3 @@ export * from "./ArrayableProperty"; + export * from "./StringProperty"; ++export * from "./StringListProperty"; + export * from "./NumberProperty"; +@@ -10,2 +11,3 @@ export * from "./DateProperty"; + export * from "./EnumProperty"; ++export * from "./EnumListProperty"; + export * from "./EnumPropertyConfig"; diff --git a/release-notes/1.8.5.diff.txt.result.md b/release-notes/1.8.5.diff.txt.result.md new file mode 100644 index 00000000..3cda9c80 --- /dev/null +++ b/release-notes/1.8.5.diff.txt.result.md @@ -0,0 +1,11 @@ +#### General Changes + +- Added support for new property types: +- `StringListProperty`: Defines a property that should be stored and read as an array of strings. +- `EnumListProperty`: Defines an array of values selected from an enumerated list of options. + +#### Property + +- Added new property types: +- `string-list`: Represents a `StringListProperty`. +- `enum-list`: Represents an `EnumListProperty`. diff --git a/release-notes/1.8.6.diff.txt b/release-notes/1.8.6.diff.txt new file mode 100644 index 00000000..3f37eebd --- /dev/null +++ b/release-notes/1.8.6.diff.txt @@ -0,0 +1,636 @@ +diff --git a/package.json b/package.json +index 61ac2fc..e604a3a 100644 +--- a/package.json ++++ b/package.json +@@ -2,3 +2,3 @@ + "name": "@flatfile/api", +- "version": "1.8.5", ++ "version": "1.8.6", + "private": false, +diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts +index b32a5d2..c313257 100644 +--- a/src/api/resources/accounts/client/Client.ts ++++ b/src/api/resources/accounts/client/Client.ts +@@ -45,3 +45,3 @@ export class Accounts { +@@ -108,3 +108,3 @@ export class Accounts { +diff --git a/src/api/resources/agents/client/Client.ts b/src/api/resources/agents/client/Client.ts +index e883196..88f0903 100644 +--- a/src/api/resources/agents/client/Client.ts ++++ b/src/api/resources/agents/client/Client.ts +@@ -45,3 +45,3 @@ export class Agents { +diff --git a/src/api/resources/apps/client/Client.ts b/src/api/resources/apps/client/Client.ts +index d35087e..b982b95 100644 +--- a/src/api/resources/apps/client/Client.ts ++++ b/src/api/resources/apps/client/Client.ts +@@ -42,3 +42,3 @@ export class Apps { +@@ -100,3 +100,3 @@ export class Apps { +@@ -171,3 +171,3 @@ export class Apps { +@@ -243,3 +243,3 @@ export class Apps { +diff --git a/src/api/resources/assistant/client/Client.ts b/src/api/resources/assistant/client/Client.ts +index 577e66d..995785f 100644 +--- a/src/api/resources/assistant/client/Client.ts ++++ b/src/api/resources/assistant/client/Client.ts +@@ -58,3 +58,3 @@ export class Assistant { +@@ -120,3 +120,3 @@ export class Assistant { +@@ -184,3 +184,3 @@ export class Assistant { +@@ -248,3 +248,3 @@ export class Assistant { +@@ -310,3 +310,3 @@ export class Assistant { +diff --git a/src/api/resources/auth/client/Client.ts b/src/api/resources/auth/client/Client.ts +index 7b1f9af..57136cc 100644 +--- a/src/api/resources/auth/client/Client.ts ++++ b/src/api/resources/auth/client/Client.ts +@@ -54,3 +54,3 @@ export class Auth { +@@ -145,3 +145,3 @@ export class Auth { +@@ -238,3 +238,3 @@ export class Auth { +@@ -331,3 +331,3 @@ export class Auth { +diff --git a/src/api/resources/cells/client/Client.ts b/src/api/resources/cells/client/Client.ts +index 8663f69..20c64e3 100644 +--- a/src/api/resources/cells/client/Client.ts ++++ b/src/api/resources/cells/client/Client.ts +@@ -107,3 +107,3 @@ export class Cells { +diff --git a/src/api/resources/commits/client/Client.ts b/src/api/resources/commits/client/Client.ts +index 32a5667..d3dc976 100644 +--- a/src/api/resources/commits/client/Client.ts ++++ b/src/api/resources/commits/client/Client.ts +@@ -50,3 +50,3 @@ export class Commits { +@@ -133,3 +133,3 @@ export class Commits { +@@ -216,3 +216,3 @@ export class Commits { +diff --git a/src/api/resources/dataRetentionPolicies/client/Client.ts b/src/api/resources/dataRetentionPolicies/client/Client.ts +index c108c10..2550605 100644 +--- a/src/api/resources/dataRetentionPolicies/client/Client.ts ++++ b/src/api/resources/dataRetentionPolicies/client/Client.ts +@@ -58,3 +58,3 @@ export class DataRetentionPolicies { +@@ -149,3 +149,3 @@ export class DataRetentionPolicies { +@@ -236,3 +236,3 @@ export class DataRetentionPolicies { +@@ -327,3 +327,3 @@ export class DataRetentionPolicies { +@@ -411,3 +411,3 @@ export class DataRetentionPolicies { +diff --git a/src/api/resources/documents/client/Client.ts b/src/api/resources/documents/client/Client.ts +index bdeac39..b4ee9a0 100644 +--- a/src/api/resources/documents/client/Client.ts ++++ b/src/api/resources/documents/client/Client.ts +@@ -50,3 +50,3 @@ export class Documents { +@@ -147,3 +147,3 @@ export class Documents { +@@ -237,3 +237,3 @@ export class Documents { +@@ -330,3 +330,3 @@ export class Documents { +@@ -417,3 +417,3 @@ export class Documents { +diff --git a/src/api/resources/documents/types/ListDocumentsResponse.ts b/src/api/resources/documents/types/ListDocumentsResponse.ts +index 677fda3..9a5b949 100644 +--- a/src/api/resources/documents/types/ListDocumentsResponse.ts ++++ b/src/api/resources/documents/types/ListDocumentsResponse.ts +@@ -10,19 +10,33 @@ import * as Flatfile from "../../.."; + * data: [{ +- * data: { +- * id: "us_dc_YOUR_ID", +- * spaceId: "us_sp_YOUR_ID", +- * environmentId: "us_env_YOUR_ID", +- * title: "My Document 1", +- * body: "My information", +- * treatments: [], +- * actions: [{ +- * operation: "submitAction", +- * mode: Flatfile.ActionMode.Foreground, +- * label: "Submit", +- * description: "Submit data to webhook.site", +- * primary: true +- * }], +- * createdAt: new Date("2022-09-18T00:19:57.007Z"), +- * updatedAt: new Date("2022-09-18T00:19:57.007Z") +- * } ++ * id: "us_dc_YOUR_ID", ++ * spaceId: "us_sp_YOUR_ID", ++ * environmentId: "us_env_YOUR_ID", ++ * title: "My Document 1", ++ * body: "My information", ++ * treatments: [], ++ * actions: [{ ++ * operation: "submitAction", ++ * mode: Flatfile.ActionMode.Foreground, ++ * label: "Submit", ++ * description: "Submit data to webhook.site", ++ * primary: true ++ * }], ++ * createdAt: new Date("2022-09-18T00:19:57.007Z"), ++ * updatedAt: new Date("2022-09-18T00:19:57.007Z") ++ * }, { ++ * id: "us_dc_YOUR_ID", ++ * spaceId: "us_sp_YOUR_ID", ++ * environmentId: "us_env_YOUR_ID", ++ * title: "Updated Title", ++ * body: "Updated My information", ++ * treatments: [], ++ * actions: [{ ++ * operation: "submitAction", ++ * mode: Flatfile.ActionMode.Foreground, ++ * label: "Submit", ++ * description: "Submit data to webhook.site", ++ * primary: true ++ * }], ++ * createdAt: new Date("2022-09-18T00:19:57.007Z"), ++ * updatedAt: new Date("2022-09-18T00:19:57.007Z") + * }] +@@ -31,3 +45,3 @@ import * as Flatfile from "../../.."; + export interface ListDocumentsResponse { +- data: Flatfile.DocumentResponse[]; ++ data: Flatfile.Document[]; + } +diff --git a/src/api/resources/entitlements/client/Client.ts b/src/api/resources/entitlements/client/Client.ts +index d4cb9ac..7bd0d4b 100644 +--- a/src/api/resources/entitlements/client/Client.ts ++++ b/src/api/resources/entitlements/client/Client.ts +@@ -55,3 +55,3 @@ export class Entitlements { +diff --git a/src/api/resources/environments/client/Client.ts b/src/api/resources/environments/client/Client.ts +index 09fc1f0..aba51e9 100644 +--- a/src/api/resources/environments/client/Client.ts ++++ b/src/api/resources/environments/client/Client.ts +@@ -58,3 +58,3 @@ export class Environments { +@@ -128,3 +128,3 @@ export class Environments { +@@ -197,3 +197,3 @@ export class Environments { +@@ -284,3 +284,3 @@ export class Environments { +@@ -377,3 +377,3 @@ export class Environments { +@@ -438,3 +438,3 @@ export class Environments { +diff --git a/src/api/resources/events/client/Client.ts b/src/api/resources/events/client/Client.ts +index c8697b0..b1b0a03 100644 +--- a/src/api/resources/events/client/Client.ts ++++ b/src/api/resources/events/client/Client.ts +@@ -82,3 +82,3 @@ export class Events { +@@ -158,3 +158,3 @@ export class Events { +@@ -237,3 +237,3 @@ export class Events { +@@ -289,3 +289,3 @@ export class Events { +@@ -362,3 +362,3 @@ export class Events { +diff --git a/src/api/resources/files/client/Client.ts b/src/api/resources/files/client/Client.ts +index 658a5bc..5c2491f 100644 +--- a/src/api/resources/files/client/Client.ts ++++ b/src/api/resources/files/client/Client.ts +@@ -63,3 +63,3 @@ export class Files { +@@ -141,3 +141,3 @@ export class Files { +@@ -214,3 +214,3 @@ export class Files { +@@ -293,3 +293,3 @@ export class Files { +@@ -382,3 +382,3 @@ export class Files { +@@ -462,3 +462,3 @@ export class Files { +diff --git a/src/api/resources/foreigndb/client/Client.ts b/src/api/resources/foreigndb/client/Client.ts +index f2893b7..6dcfeb5 100644 +--- a/src/api/resources/foreigndb/client/Client.ts ++++ b/src/api/resources/foreigndb/client/Client.ts +@@ -48,3 +48,3 @@ export class Foreigndb { +@@ -132,3 +132,3 @@ export class Foreigndb { +@@ -215,3 +215,3 @@ export class Foreigndb { +@@ -298,3 +298,3 @@ export class Foreigndb { +@@ -382,3 +382,3 @@ export class Foreigndb { +diff --git a/src/api/resources/guests/client/Client.ts b/src/api/resources/guests/client/Client.ts +index 68f909b..d83d989 100644 +--- a/src/api/resources/guests/client/Client.ts ++++ b/src/api/resources/guests/client/Client.ts +@@ -57,3 +57,3 @@ export class Guests { +@@ -130,3 +130,3 @@ export class Guests { +@@ -192,3 +192,3 @@ export class Guests { +@@ -250,3 +250,3 @@ export class Guests { +@@ -315,3 +315,3 @@ export class Guests { +@@ -384,3 +384,3 @@ export class Guests { +@@ -446,3 +446,3 @@ export class Guests { +@@ -541,3 +541,3 @@ export class Guests { +@@ -639,3 +639,3 @@ export class Guests { +@@ -735,3 +735,3 @@ export class Guests { +diff --git a/src/api/resources/jobs/client/Client.ts b/src/api/resources/jobs/client/Client.ts +index d671d44..b61606d 100644 +--- a/src/api/resources/jobs/client/Client.ts ++++ b/src/api/resources/jobs/client/Client.ts +@@ -76,3 +76,3 @@ export class Jobs { +@@ -132,3 +132,3 @@ export class Jobs { +@@ -185,3 +185,3 @@ export class Jobs { +@@ -241,3 +241,3 @@ export class Jobs { +@@ -294,3 +294,3 @@ export class Jobs { +@@ -352,3 +352,3 @@ export class Jobs { +@@ -413,3 +413,3 @@ export class Jobs { +@@ -512,3 +512,3 @@ export class Jobs { +@@ -572,3 +572,3 @@ export class Jobs { +@@ -641,3 +641,3 @@ export class Jobs { +@@ -706,3 +706,3 @@ export class Jobs { +@@ -780,3 +780,3 @@ export class Jobs { +@@ -858,3 +858,3 @@ export class Jobs { +@@ -926,3 +926,3 @@ export class Jobs { +@@ -985,3 +985,3 @@ export class Jobs { +@@ -1043,3 +1043,3 @@ export class Jobs { +@@ -1109,3 +1109,3 @@ export class Jobs { +diff --git a/src/api/resources/jobs/types/JobConfig.ts b/src/api/resources/jobs/types/JobConfig.ts +index 76e0fbd..42bdc80 100644 +--- a/src/api/resources/jobs/types/JobConfig.ts ++++ b/src/api/resources/jobs/types/JobConfig.ts +@@ -53,2 +53,4 @@ export interface JobConfig { + parentId?: Flatfile.JobId; ++ /** The ids of the jobs that must complete before this job can start */ ++ predecessorIds?: Flatfile.JobId[]; + } +diff --git a/src/api/resources/jobs/types/JobOutcomeNext.ts b/src/api/resources/jobs/types/JobOutcomeNext.ts +index 4a7b2f0..0e21039 100644 +--- a/src/api/resources/jobs/types/JobOutcomeNext.ts ++++ b/src/api/resources/jobs/types/JobOutcomeNext.ts +@@ -17,2 +17,3 @@ export type JobOutcomeNext = + | Flatfile.JobOutcomeNext.Download ++ | Flatfile.JobOutcomeNext.Files + | Flatfile.JobOutcomeNext.Wait +@@ -34,2 +35,6 @@ export declare namespace JobOutcomeNext { + ++ interface Files extends Flatfile.JobOutcomeNextFiles { ++ type: "files"; ++ } ++ + interface Wait extends Flatfile.JobOutcomeNextWait { +diff --git a/src/api/resources/jobs/types/JobOutcomeNextFileObject.ts b/src/api/resources/jobs/types/JobOutcomeNextFileObject.ts +new file mode 100644 +index 0000000..2f4a79b +--- /dev/null ++++ b/src/api/resources/jobs/types/JobOutcomeNextFileObject.ts +@@ -0,0 +1,8 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++export interface JobOutcomeNextFileObject { ++ fileId: string; ++ label?: string; ++} +diff --git a/src/api/resources/jobs/types/JobOutcomeNextFiles.ts b/src/api/resources/jobs/types/JobOutcomeNextFiles.ts +new file mode 100644 +index 0000000..3c90bcd +--- /dev/null ++++ b/src/api/resources/jobs/types/JobOutcomeNextFiles.ts +@@ -0,0 +1,10 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as Flatfile from "../../.."; ++ ++export interface JobOutcomeNextFiles { ++ file: Flatfile.JobOutcomeNextFileObject[]; ++ label?: string; ++} +diff --git a/src/api/resources/jobs/types/JobStatus.ts b/src/api/resources/jobs/types/JobStatus.ts +index db749df..0243ee2 100644 +--- a/src/api/resources/jobs/types/JobStatus.ts ++++ b/src/api/resources/jobs/types/JobStatus.ts +@@ -30,3 +30,4 @@ export type JobStatus = + | "failed" +- | "canceled"; ++ | "canceled" ++ | "waiting"; + +@@ -41,2 +42,3 @@ export const JobStatus = { + Canceled: "canceled", ++ Waiting: "waiting", + } as const; +diff --git a/src/api/resources/jobs/types/index.ts b/src/api/resources/jobs/types/index.ts +index 1d5f9ea..be67446 100644 +--- a/src/api/resources/jobs/types/index.ts ++++ b/src/api/resources/jobs/types/index.ts +@@ -33,2 +33,4 @@ export * from "./JobOutcomeNextUrl"; + export * from "./JobOutcomeNextDownload"; ++export * from "./JobOutcomeNextFileObject"; ++export * from "./JobOutcomeNextFiles"; + export * from "./JobOutcomeNextWait"; +diff --git a/src/api/resources/mapping/client/Client.ts b/src/api/resources/mapping/client/Client.ts +index 2ab9850..8a1def7 100644 +--- a/src/api/resources/mapping/client/Client.ts ++++ b/src/api/resources/mapping/client/Client.ts +@@ -47,3 +47,3 @@ export class Mapping { +@@ -131,3 +131,3 @@ export class Mapping { +@@ -269,3 +269,3 @@ export class Mapping { +@@ -343,3 +343,3 @@ export class Mapping { +@@ -427,3 +427,3 @@ export class Mapping { +@@ -511,3 +511,3 @@ export class Mapping { +@@ -595,3 +595,3 @@ export class Mapping { +@@ -682,3 +682,3 @@ export class Mapping { +@@ -771,3 +771,3 @@ export class Mapping { +@@ -865,3 +865,3 @@ export class Mapping { +@@ -950,3 +950,3 @@ export class Mapping { +@@ -1040,3 +1040,3 @@ export class Mapping { +diff --git a/src/api/resources/records/client/Client.ts b/src/api/resources/records/client/Client.ts +index ab5cd3c..f8f4994 100644 +--- a/src/api/resources/records/client/Client.ts ++++ b/src/api/resources/records/client/Client.ts +@@ -153,3 +153,3 @@ export class Records { +@@ -265,3 +265,3 @@ export class Records { +@@ -369,3 +369,3 @@ export class Records { +@@ -467,3 +467,3 @@ export class Records { +@@ -585,3 +585,3 @@ export class Records { +diff --git a/src/api/resources/roles/client/Client.ts b/src/api/resources/roles/client/Client.ts +index 1f1f584..613eb29 100644 +--- a/src/api/resources/roles/client/Client.ts ++++ b/src/api/resources/roles/client/Client.ts +@@ -42,3 +42,3 @@ export class Roles { +diff --git a/src/api/resources/secrets/client/Client.ts b/src/api/resources/secrets/client/Client.ts +index 0c8dce9..c2ef562 100644 +--- a/src/api/resources/secrets/client/Client.ts ++++ b/src/api/resources/secrets/client/Client.ts +@@ -62,3 +62,3 @@ export class Secrets { +@@ -154,3 +154,3 @@ export class Secrets { +@@ -241,3 +241,3 @@ export class Secrets { +diff --git a/src/api/resources/sheets/client/Client.ts b/src/api/resources/sheets/client/Client.ts +index af79595..e368501 100644 +--- a/src/api/resources/sheets/client/Client.ts ++++ b/src/api/resources/sheets/client/Client.ts +@@ -54,3 +54,3 @@ export class Sheets { +@@ -116,3 +116,3 @@ export class Sheets { +@@ -176,3 +176,3 @@ export class Sheets { +@@ -262,3 +262,3 @@ export class Sheets { +@@ -406,3 +406,3 @@ export class Sheets { +@@ -519,3 +519,3 @@ export class Sheets { +@@ -581,3 +581,3 @@ export class Sheets { +@@ -673,3 +673,3 @@ export class Sheets { +@@ -737,3 +737,3 @@ export class Sheets { +@@ -823,3 +823,3 @@ export class Sheets { +@@ -964,3 +964,3 @@ export class Sheets { +diff --git a/src/api/resources/snapshots/client/Client.ts b/src/api/resources/snapshots/client/Client.ts +index 56da28b..e2e0549 100644 +--- a/src/api/resources/snapshots/client/Client.ts ++++ b/src/api/resources/snapshots/client/Client.ts +@@ -53,3 +53,3 @@ export class Snapshots { +@@ -145,3 +145,3 @@ export class Snapshots { +@@ -238,3 +238,3 @@ export class Snapshots { +@@ -325,3 +325,3 @@ export class Snapshots { +@@ -416,3 +416,3 @@ export class Snapshots { +@@ -527,3 +527,3 @@ export class Snapshots { +diff --git a/src/api/resources/spaces/client/Client.ts b/src/api/resources/spaces/client/Client.ts +index a1e714c..ad833e9 100644 +--- a/src/api/resources/spaces/client/Client.ts ++++ b/src/api/resources/spaces/client/Client.ts +@@ -99,3 +99,3 @@ export class Spaces { +@@ -181,3 +181,3 @@ export class Spaces { +@@ -268,3 +268,3 @@ export class Spaces { +@@ -351,3 +351,3 @@ export class Spaces { +@@ -447,3 +447,3 @@ export class Spaces { +@@ -537,3 +537,3 @@ export class Spaces { +@@ -624,3 +624,3 @@ export class Spaces { +@@ -707,3 +707,3 @@ export class Spaces { +diff --git a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +index 2fd85c3..6139373 100644 +--- a/src/api/resources/spaces/types/InternalSpaceConfigBase.ts ++++ b/src/api/resources/spaces/types/InternalSpaceConfigBase.ts +@@ -9,2 +9,3 @@ export interface InternalSpaceConfigBase { + environmentId?: Flatfile.EnvironmentId; ++ /** The ID of the primary workbook for the space. This should not be included in create space requests. */ + primaryWorkbookId?: Flatfile.WorkbookId; +diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts +index 6ffde26..1a1e55f 100644 +--- a/src/api/resources/users/client/Client.ts ++++ b/src/api/resources/users/client/Client.ts +@@ -56,3 +56,3 @@ export class Users { +@@ -128,3 +128,3 @@ export class Users { +@@ -190,3 +190,3 @@ export class Users { +@@ -249,3 +249,3 @@ export class Users { +@@ -304,3 +304,3 @@ export class Users { +@@ -365,3 +365,3 @@ export class Users { +@@ -460,3 +460,3 @@ export class Users { +@@ -558,3 +558,3 @@ export class Users { +@@ -661,3 +661,3 @@ export class Users { +@@ -724,3 +724,3 @@ export class Users { +@@ -783,3 +783,3 @@ export class Users { +diff --git a/src/api/resources/versions/client/Client.ts b/src/api/resources/versions/client/Client.ts +index 05c5e08..405f58a 100644 +--- a/src/api/resources/versions/client/Client.ts ++++ b/src/api/resources/versions/client/Client.ts +@@ -42,3 +42,3 @@ export class Versions { +diff --git a/src/api/resources/views/client/Client.ts b/src/api/resources/views/client/Client.ts +index e3765e8..0b8bf1e 100644 +--- a/src/api/resources/views/client/Client.ts ++++ b/src/api/resources/views/client/Client.ts +@@ -28,3 +28,3 @@ export class Views { + /** +- * Returns all views for user and sheet ++ * Returns all views for the sheet + * @throws {@link Flatfile.BadRequestError} +@@ -41,5 +41,13 @@ export class Views { + ): Promise { +- const { sheetId } = request; ++ const { sheetId, pageSize, pageNumber } = request; + const _queryParams: Record = {}; + _queryParams["sheetId"] = sheetId; ++ if (pageSize != null) { ++ _queryParams["pageSize"] = pageSize.toString(); ++ } ++ ++ if (pageNumber != null) { ++ _queryParams["pageNumber"] = pageNumber.toString(); ++ } ++ + const _response = await (this._options.fetcher ?? core.fetcher)({ +@@ -55,3 +63,3 @@ export class Views { +@@ -152,3 +160,3 @@ export class Views { +@@ -236,3 +244,3 @@ export class Views { +@@ -332,3 +340,3 @@ export class Views { +@@ -414,3 +422,3 @@ export class Views { +diff --git a/src/api/resources/views/client/requests/ListViewsRequest.ts b/src/api/resources/views/client/requests/ListViewsRequest.ts +index 87b0341..23bbd1a 100644 +--- a/src/api/resources/views/client/requests/ListViewsRequest.ts ++++ b/src/api/resources/views/client/requests/ListViewsRequest.ts +@@ -17,2 +17,10 @@ export interface ListViewsRequest { + sheetId: Flatfile.SheetId; ++ /** ++ * Number of prompts to return in a page (default 10) ++ */ ++ pageSize?: number; ++ /** ++ * Based on pageSize, which page of prompts to return ++ */ ++ pageNumber?: number; + } +diff --git a/src/api/resources/views/types/ListViewsResponse.ts b/src/api/resources/views/types/ListViewsResponse.ts +index d04f9b7..aa58b08 100644 +--- a/src/api/resources/views/types/ListViewsResponse.ts ++++ b/src/api/resources/views/types/ListViewsResponse.ts +@@ -19,3 +19,4 @@ import * as Flatfile from "../../.."; + * sortDirection: Flatfile.SortDirection.Asc +- * } ++ * }, ++ * createdBy: "us_usr_YOUR_ID" + * }], +diff --git a/src/api/resources/views/types/View.ts b/src/api/resources/views/types/View.ts +index acee5c6..540e7d5 100644 +--- a/src/api/resources/views/types/View.ts ++++ b/src/api/resources/views/types/View.ts +@@ -20,3 +20,4 @@ import * as Flatfile from "../../.."; + * sortDirection: Flatfile.SortDirection.Asc +- * } ++ * }, ++ * createdBy: "us_usr_YOUR_ID" + * } +@@ -32,2 +33,4 @@ export interface View { + config: Flatfile.ViewConfig; ++ /** ID of the actor who created the view */ ++ createdBy: string; + } +diff --git a/src/api/resources/views/types/ViewResponse.ts b/src/api/resources/views/types/ViewResponse.ts +index 919cc07..5583fc9 100644 +--- a/src/api/resources/views/types/ViewResponse.ts ++++ b/src/api/resources/views/types/ViewResponse.ts +@@ -19,3 +19,4 @@ import * as Flatfile from "../../.."; + * sortDirection: Flatfile.SortDirection.Asc +- * } ++ * }, ++ * createdBy: "us_usr_YOUR_ID" + * } +diff --git a/src/api/resources/workbooks/client/Client.ts b/src/api/resources/workbooks/client/Client.ts +index f3a2c4b..fa558b3 100644 +--- a/src/api/resources/workbooks/client/Client.ts ++++ b/src/api/resources/workbooks/client/Client.ts +@@ -61,3 +61,3 @@ export class Workbooks { +@@ -168,3 +168,3 @@ export class Workbooks { +@@ -245,3 +245,3 @@ export class Workbooks { +@@ -331,3 +331,3 @@ export class Workbooks { +@@ -428,3 +428,3 @@ export class Workbooks { +@@ -520,3 +520,3 @@ export class Workbooks { +@@ -581,3 +581,3 @@ export class Workbooks { +diff --git a/src/serialization/resources/documents/types/ListDocumentsResponse.ts b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +index 6de1ff3..0d3e001 100644 +--- a/src/serialization/resources/documents/types/ListDocumentsResponse.ts ++++ b/src/serialization/resources/documents/types/ListDocumentsResponse.ts +@@ -7,3 +7,3 @@ import * as Flatfile from "../../../../api"; + import * as core from "../../../../core"; +-import { DocumentResponse } from "./DocumentResponse"; ++import { Document } from "./Document"; + +@@ -13,3 +13,3 @@ export const ListDocumentsResponse: core.serialization.ObjectSchema< + > = core.serialization.object({ +- data: core.serialization.list(DocumentResponse), ++ data: core.serialization.list(Document), + }); +@@ -18,3 +18,3 @@ export declare namespace ListDocumentsResponse { + interface Raw { +- data: DocumentResponse.Raw[]; ++ data: Document.Raw[]; + } +diff --git a/src/serialization/resources/jobs/types/JobConfig.ts b/src/serialization/resources/jobs/types/JobConfig.ts +index 46c6384..e285aed 100644 +--- a/src/serialization/resources/jobs/types/JobConfig.ts ++++ b/src/serialization/resources/jobs/types/JobConfig.ts +@@ -42,2 +42,3 @@ export const JobConfig: core.serialization.ObjectSchema = core.serialization.object({ ++ fileId: core.serialization.string(), ++ label: core.serialization.string().optional(), ++}); ++ ++export declare namespace JobOutcomeNextFileObject { ++ interface Raw { ++ fileId: string; ++ label?: string | null; ++ } ++} +diff --git a/src/serialization/resources/jobs/types/JobOutcomeNextFiles.ts b/src/serialization/resources/jobs/types/JobOutcomeNextFiles.ts +new file mode 100644 +index 0000000..081b1c1 +--- /dev/null ++++ b/src/serialization/resources/jobs/types/JobOutcomeNextFiles.ts +@@ -0,0 +1,23 @@ ++/** ++ * This file was auto-generated by Fern from our API Definition. ++ */ ++ ++import * as serializers from "../../.."; ++import * as Flatfile from "../../../../api"; ++import * as core from "../../../../core"; ++import { JobOutcomeNextFileObject } from "./JobOutcomeNextFileObject"; ++ ++export const JobOutcomeNextFiles: core.serialization.ObjectSchema< ++ serializers.JobOutcomeNextFiles.Raw, ++ Flatfile.JobOutcomeNextFiles ++> = core.serialization.object({ ++ file: core.serialization.list(JobOutcomeNextFileObject), ++ label: core.serialization.string().optional(), ++}); ++ ++export declare namespace JobOutcomeNextFiles { ++ interface Raw { ++ file: JobOutcomeNextFileObject.Raw[]; ++ label?: string | null; ++ } ++} +diff --git a/src/serialization/resources/jobs/types/JobStatus.ts b/src/serialization/resources/jobs/types/JobStatus.ts +index 88626f8..3ce8cfa 100644 +--- a/src/serialization/resources/jobs/types/JobStatus.ts ++++ b/src/serialization/resources/jobs/types/JobStatus.ts +@@ -18,2 +18,3 @@ export const JobStatus: core.serialization.Schema = core.serialization.object({ +- file: core.serialization.list(JobOutcomeNextFileObject), ++ files: core.serialization.list(JobOutcomeNextFileObject), + label: core.serialization.string().optional(), +@@ -19,3 +19,3 @@ export declare namespace JobOutcomeNextFiles { + interface Raw { +- file: JobOutcomeNextFileObject.Raw[]; ++ files: JobOutcomeNextFileObject.Raw[]; + label?: string | null; diff --git a/release-notes/1.8.9.diff.txt.result.md b/release-notes/1.8.9.diff.txt.result.md new file mode 100644 index 00000000..5ff4b35a --- /dev/null +++ b/release-notes/1.8.9.diff.txt.result.md @@ -0,0 +1,18 @@ +#### Events + +- Added new domain `Environment` to `Domain` type +- Added new event types for environment lifecycle events: +- `EnvironmentCreated` +- `EnvironmentUpdated` +- `EnvironmentDeleted` +- Added new event topics for environment lifecycle events: +- `environment:created` +- `environment:updated` +- `environment:deleted` + +#### Jobs + +- Added descriptions for `DeleteRecordsJobConfig` properties: +- `filter`: Options to filter records (default=none) +- `filterField`: Use this to narrow the valid/error filter results to a specific field (Requires filter to be set) +- Fixed typo in `JobOutcomeNextFiles` type, renaming `file` property to `files` diff --git a/yarn.lock b/yarn.lock index 29050a09..a4e4b8f5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4,7 +4,7 @@ "@ampproject/remapping@^2.2.0": version "2.3.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" + resolved "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz" integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== dependencies: "@jridgewell/gen-mapping" "^0.3.5" @@ -12,7 +12,7 @@ "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.2": version "7.24.2" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae" + resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz" integrity sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ== dependencies: "@babel/highlight" "^7.24.2" @@ -20,12 +20,12 @@ "@babel/compat-data@^7.23.5": version "7.24.4" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.4.tgz#6f102372e9094f25d908ca0d34fc74c74606059a" + resolved "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.24.4.tgz" integrity sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ== -"@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": +"@babel/core@^7.0.0", "@babel/core@^7.0.0-0", "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9", "@babel/core@^7.8.0", "@babel/core@>=7.0.0-beta.0 <8": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.5.tgz#15ab5b98e101972d171aeef92ac70d8d6718f06a" + resolved "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz" integrity sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA== dependencies: "@ampproject/remapping" "^2.2.0" @@ -46,7 +46,7 @@ "@babel/generator@^7.24.5", "@babel/generator@^7.7.2": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.5.tgz#e5afc068f932f05616b66713e28d0f04e99daeb3" + resolved "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz" integrity sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA== dependencies: "@babel/types" "^7.24.5" @@ -56,7 +56,7 @@ "@babel/helper-compilation-targets@^7.23.6": version "7.23.6" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" + resolved "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz" integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== dependencies: "@babel/compat-data" "^7.23.5" @@ -67,12 +67,12 @@ "@babel/helper-environment-visitor@^7.22.20": version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" + resolved "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz" integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== "@babel/helper-function-name@^7.23.0": version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" + resolved "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz" integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== dependencies: "@babel/template" "^7.22.15" @@ -80,21 +80,21 @@ "@babel/helper-hoist-variables@^7.22.5": version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb" + resolved "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz" integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== dependencies: "@babel/types" "^7.22.5" "@babel/helper-module-imports@^7.24.3": version "7.24.3" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz#6ac476e6d168c7c23ff3ba3cf4f7841d46ac8128" + resolved "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz" integrity sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg== dependencies: "@babel/types" "^7.24.0" "@babel/helper-module-transforms@^7.24.5": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz#ea6c5e33f7b262a0ae762fd5986355c45f54a545" + resolved "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz" integrity sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A== dependencies: "@babel/helper-environment-visitor" "^7.22.20" @@ -105,41 +105,41 @@ "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.8.0": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz#a924607dd254a65695e5bd209b98b902b3b2f11a" + resolved "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz" integrity sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ== "@babel/helper-simple-access@^7.24.5": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz#50da5b72f58c16b07fbd992810be6049478e85ba" + resolved "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz" integrity sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ== dependencies: "@babel/types" "^7.24.5" "@babel/helper-split-export-declaration@^7.24.5": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz#b9a67f06a46b0b339323617c8c6213b9055a78b6" + resolved "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz" integrity sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q== dependencies: "@babel/types" "^7.24.5" "@babel/helper-string-parser@^7.24.1": version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz#f99c36d3593db9540705d0739a1f10b5e20c696e" + resolved "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz" integrity sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ== "@babel/helper-validator-identifier@^7.24.5": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz#918b1a7fa23056603506370089bd990d8720db62" + resolved "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz" integrity sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA== "@babel/helper-validator-option@^7.23.5": version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" + resolved "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz" integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== "@babel/helpers@^7.24.5": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.5.tgz#fedeb87eeafa62b621160402181ad8585a22a40a" + resolved "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz" integrity sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q== dependencies: "@babel/template" "^7.24.0" @@ -148,7 +148,7 @@ "@babel/highlight@^7.24.2": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.5.tgz#bc0613f98e1dd0720e99b2a9ee3760194a704b6e" + resolved "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz" integrity sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw== dependencies: "@babel/helper-validator-identifier" "^7.24.5" @@ -158,110 +158,110 @@ "@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.0", "@babel/parser@^7.24.5": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.5.tgz#4a4d5ab4315579e5398a82dcf636ca80c3392790" + resolved "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz" integrity sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg== "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz" integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-bigint@^7.8.3": version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz" integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-class-properties@^7.8.3": version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== dependencies: "@babel/helper-plugin-utils" "^7.12.13" "@babel/plugin-syntax-import-meta@^7.8.3": version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz" integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-json-strings@^7.8.3": version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz" integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.7.2": version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz#3f6ca04b8c841811dbc3c5c5f837934e0d626c10" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.1.tgz" integrity sha512-2eCtxZXf+kbkMIsXS4poTvT4Yu5rXiRa+9xGVT56raghjmBTKMpFNc9R4IDiB4emao9eO22Ox7CxuJG7BgExqA== dependencies: "@babel/helper-plugin-utils" "^7.24.0" "@babel/plugin-syntax-logical-assignment-operators@^7.8.3": version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz" integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz" integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-numeric-separator@^7.8.3": version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz" integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== dependencies: "@babel/helper-plugin-utils" "^7.10.4" "@babel/plugin-syntax-object-rest-spread@^7.8.3": version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz" integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-optional-catch-binding@^7.8.3": version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz" integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-optional-chaining@^7.8.3": version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz" integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== dependencies: "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-top-level-await@^7.8.3": version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz" integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== dependencies: "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz#b3bcc51f396d15f3591683f90239de143c076844" + resolved "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.1.tgz" integrity sha512-Yhnmvy5HZEnHUty6i++gcfH1/l68AHnItFHnaCv6hn9dNh0hQvvQJsxpi4BMBFN5DLeHBuucT/0DgzXif/OyRw== dependencies: "@babel/helper-plugin-utils" "^7.24.0" "@babel/template@^7.22.15", "@babel/template@^7.24.0", "@babel/template@^7.3.3": version "7.24.0" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.0.tgz#c6a524aa93a4a05d66aaf31654258fae69d87d50" + resolved "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz" integrity sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA== dependencies: "@babel/code-frame" "^7.23.5" @@ -270,7 +270,7 @@ "@babel/traverse@^7.24.5": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.5.tgz#972aa0bc45f16983bf64aa1f877b2dd0eea7e6f8" + resolved "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz" integrity sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA== dependencies: "@babel/code-frame" "^7.24.2" @@ -286,7 +286,7 @@ "@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.24.0", "@babel/types@^7.24.5", "@babel/types@^7.3.3": version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.5.tgz#7661930afc638a5383eb0c4aee59b74f38db84d7" + resolved "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz" integrity sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ== dependencies: "@babel/helper-string-parser" "^7.24.1" @@ -295,17 +295,17 @@ "@bcoe/v8-coverage@^0.2.3": version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" + resolved "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== "@flatfile/cross-env-config@0.0.4": version "0.0.4" - resolved "https://registry.yarnpkg.com/@flatfile/cross-env-config/-/cross-env-config-0.0.4.tgz#62ee772adad79a88503e99fd26509b55b2e4f47c" + resolved "https://registry.npmjs.org/@flatfile/cross-env-config/-/cross-env-config-0.0.4.tgz" integrity sha512-mNaqtASTly4N09pjQts5zDnYXFLC891TCxJEiFUnil8p6lQciyd0gnPSnhJD0TTlO5817gX3mLE9RDoAETtIbg== "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" + resolved "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz" integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== dependencies: camelcase "^5.3.1" @@ -316,12 +316,12 @@ "@istanbuljs/schema@^0.1.2", "@istanbuljs/schema@^0.1.3": version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + resolved "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz" integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== "@jest/console@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-29.7.0.tgz#cd4822dbdb84529265c5a2bdb529a3c9cc950ffc" + resolved "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz" integrity sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg== dependencies: "@jest/types" "^29.6.3" @@ -333,7 +333,7 @@ "@jest/core@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.7.0.tgz#b6cccc239f30ff36609658c5a5e2291757ce448f" + resolved "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz" integrity sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg== dependencies: "@jest/console" "^29.7.0" @@ -367,7 +367,7 @@ "@jest/environment@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-29.7.0.tgz#24d61f54ff1f786f3cd4073b4b94416383baf2a7" + resolved "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz" integrity sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw== dependencies: "@jest/fake-timers" "^29.7.0" @@ -377,14 +377,14 @@ "@jest/expect-utils@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/expect-utils/-/expect-utils-29.7.0.tgz#023efe5d26a8a70f21677d0a1afc0f0a44e3a1c6" + resolved "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz" integrity sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA== dependencies: jest-get-type "^29.6.3" "@jest/expect@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/expect/-/expect-29.7.0.tgz#76a3edb0cb753b70dfbfe23283510d3d45432bf2" + resolved "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz" integrity sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ== dependencies: expect "^29.7.0" @@ -392,7 +392,7 @@ "@jest/fake-timers@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-29.7.0.tgz#fd91bf1fffb16d7d0d24a426ab1a47a49881a565" + resolved "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz" integrity sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ== dependencies: "@jest/types" "^29.6.3" @@ -404,7 +404,7 @@ "@jest/globals@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-29.7.0.tgz#8d9290f9ec47ff772607fa864ca1d5a2efae1d4d" + resolved "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz" integrity sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ== dependencies: "@jest/environment" "^29.7.0" @@ -414,7 +414,7 @@ "@jest/reporters@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-29.7.0.tgz#04b262ecb3b8faa83b0b3d321623972393e8f4c7" + resolved "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz" integrity sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg== dependencies: "@bcoe/v8-coverage" "^0.2.3" @@ -444,14 +444,14 @@ "@jest/schemas@^29.6.3": version "29.6.3" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + resolved "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz" integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== dependencies: "@sinclair/typebox" "^0.27.8" "@jest/source-map@^29.6.3": version "29.6.3" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-29.6.3.tgz#d90ba772095cf37a34a5eb9413f1b562a08554c4" + resolved "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz" integrity sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw== dependencies: "@jridgewell/trace-mapping" "^0.3.18" @@ -460,7 +460,7 @@ "@jest/test-result@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-29.7.0.tgz#8db9a80aa1a097bb2262572686734baed9b1657c" + resolved "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz" integrity sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA== dependencies: "@jest/console" "^29.7.0" @@ -470,7 +470,7 @@ "@jest/test-sequencer@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz#6cef977ce1d39834a3aea887a1726628a6f072ce" + resolved "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz" integrity sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw== dependencies: "@jest/test-result" "^29.7.0" @@ -480,7 +480,7 @@ "@jest/transform@^29.7.0": version "29.7.0" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-29.7.0.tgz#df2dd9c346c7d7768b8a06639994640c642e284c" + resolved "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz" integrity sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw== dependencies: "@babel/core" "^7.11.6" @@ -499,9 +499,9 @@ slash "^3.0.0" write-file-atomic "^4.0.2" -"@jest/types@^29.6.3": +"@jest/types@^29.0.0", "@jest/types@^29.6.3": version "29.6.3" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" + resolved "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz" integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== dependencies: "@jest/schemas" "^29.6.3" @@ -513,7 +513,7 @@ "@jridgewell/gen-mapping@^0.3.5": version "0.3.5" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + resolved "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz" integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== dependencies: "@jridgewell/set-array" "^1.2.1" @@ -522,22 +522,22 @@ "@jridgewell/resolve-uri@^3.1.0": version "3.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + resolved "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz" integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== "@jridgewell/set-array@^1.2.1": version "1.2.1" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + resolved "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz" integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": version "1.4.15" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + resolved "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz" integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + resolved "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz" integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== dependencies: "@jridgewell/resolve-uri" "^3.1.0" @@ -545,26 +545,26 @@ "@sinclair/typebox@^0.27.8": version "0.27.8" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz" integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== "@sinonjs/commons@^3.0.0": version "3.0.1" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-3.0.1.tgz#1029357e44ca901a615585f6d27738dbc89084cd" + resolved "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz" integrity sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ== dependencies: type-detect "4.0.8" "@sinonjs/fake-timers@^10.0.2": version "10.3.0" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz#55fdff1ecab9f354019129daf4df0dd4d923ea66" + resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz" integrity sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA== dependencies: "@sinonjs/commons" "^3.0.0" "@types/babel__core@^7.1.14": version "7.20.5" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.20.5.tgz#3df15f27ba85319caa07ba08d0721889bb39c017" + resolved "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz" integrity sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA== dependencies: "@babel/parser" "^7.20.7" @@ -575,14 +575,14 @@ "@types/babel__generator@*": version "7.6.8" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.8.tgz#f836c61f48b1346e7d2b0d93c6dacc5b9535d3ab" + resolved "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz" integrity sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw== dependencies: "@babel/types" "^7.0.0" "@types/babel__template@*": version "7.4.4" - resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.4.tgz#5672513701c1b2199bc6dad636a9d7491586766f" + resolved "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz" integrity sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A== dependencies: "@babel/parser" "^7.1.0" @@ -590,40 +590,40 @@ "@types/babel__traverse@*", "@types/babel__traverse@^7.0.6": version "7.20.5" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.20.5.tgz#7b7502be0aa80cc4ef22978846b983edaafcd4dd" + resolved "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.5.tgz" integrity sha512-WXCyOcRtH37HAUkpXhUduaxdm82b4GSlyTqajXviN4EfiuPgNYR109xMCKvpl6zPIpua0DGlMEDCq+g8EdoheQ== dependencies: "@babel/types" "^7.20.7" "@types/graceful-fs@^4.1.3": version "4.1.9" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.9.tgz#2a06bc0f68a20ab37b3e36aa238be6abdf49e8b4" + resolved "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz" integrity sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ== dependencies: "@types/node" "*" "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": version "2.0.6" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz#7739c232a1fee9b4d3ce8985f314c0c6d33549d7" + resolved "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz" integrity sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w== "@types/istanbul-lib-report@*": version "3.0.3" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz#53047614ae72e19fc0401d872de3ae2b4ce350bf" + resolved "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz" integrity sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA== dependencies: "@types/istanbul-lib-coverage" "*" "@types/istanbul-reports@^3.0.0": version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz#0f03e3d2f670fbdac586e34b433783070cc16f54" + resolved "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz" integrity sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ== dependencies: "@types/istanbul-lib-report" "*" "@types/jest@^29.5.5": version "29.5.12" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.12.tgz#7f7dc6eb4cf246d2474ed78744b05d06ce025544" + resolved "https://registry.npmjs.org/@types/jest/-/jest-29.5.12.tgz" integrity sha512-eDC8bTvT/QhYdxJAulQikueigY5AsdBRH2yDKW3yveW7svY3+DzN84/2NUgkw10RTiJbWqZrTtoGVdYlvFJdLw== dependencies: expect "^29.0.0" @@ -631,90 +631,83 @@ "@types/node-fetch@2.6.9": version "2.6.9" - resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.9.tgz#15f529d247f1ede1824f7e7acdaa192d5f28071e" + resolved "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.9.tgz" integrity sha512-bQVlnMLFJ2d35DkPNjEPmd9ueO/rh5EiaZt2bhqiSarPjZIuIV6bPQVqcrEyvNo+AfTrRGVazle1tl597w3gfA== dependencies: "@types/node" "*" form-data "^4.0.0" -"@types/node@*": - version "20.12.12" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.12.tgz#7cbecdf902085cec634fdb362172dfe12b8f2050" - integrity sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw== - dependencies: - undici-types "~5.26.4" - -"@types/node@17.0.33": +"@types/node@*", "@types/node@^17.0.33": version "17.0.33" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.33.tgz#3c1879b276dc63e73030bb91165e62a4509cd506" + resolved "https://registry.npmjs.org/@types/node/-/node-17.0.33.tgz" integrity sha512-miWq2m2FiQZmaHfdZNcbpp9PuXg34W5JZ5CrJ/BaS70VuhoJENBEQybeiYSaPBRNq6KQGnjfEnc/F3PN++D+XQ== "@types/pako@2.0.1": version "2.0.1" - resolved "https://registry.yarnpkg.com/@types/pako/-/pako-2.0.1.tgz#99e4b7ae6a8560c5928d7f31e89a394e1e6fd169" + resolved "https://registry.npmjs.org/@types/pako/-/pako-2.0.1.tgz" integrity sha512-fXhui1fHdLrUR0KEyQsBzqdi3Z+MitnRcpI2eeFJyzaRdqO2miX/BDz2Hh0VdkBbrWprgcQ+ItFmbdKYdbMjvg== "@types/qs@6.9.8": version "6.9.8" - resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.8.tgz#f2a7de3c107b89b441e071d5472e6b726b4adf45" + resolved "https://registry.npmjs.org/@types/qs/-/qs-6.9.8.tgz" integrity sha512-u95svzDlTysU5xecFNTgfFG5RUWu1A9P0VzgpcIiGZA9iraHOdSzcxMxQ55DyeRaGCSxQi7LxXDI4rzq/MYfdg== "@types/stack-utils@^2.0.0": version "2.0.3" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" + resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz" integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== "@types/url-join@4.0.1": version "4.0.1" - resolved "https://registry.yarnpkg.com/@types/url-join/-/url-join-4.0.1.tgz#4989c97f969464647a8586c7252d97b449cdc045" + resolved "https://registry.npmjs.org/@types/url-join/-/url-join-4.0.1.tgz" integrity sha512-wDXw9LEEUHyV+7UWy7U315nrJGJ7p1BzaCxDpEoLr789Dk1WDVMMlf3iBfbG2F8NdWnYyFbtTxUn2ZNbm1Q4LQ== "@types/yargs-parser@*": version "21.0.3" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" + resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz" integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== "@types/yargs@^17.0.8": version "17.0.32" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.32.tgz#030774723a2f7faafebf645f4e5a48371dca6229" + resolved "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz" integrity sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog== dependencies: "@types/yargs-parser" "*" ansi-escapes@^4.2.1: version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + resolved "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz" integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== dependencies: type-fest "^0.21.3" ansi-regex@^5.0.1: version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + resolved "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz" integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== ansi-styles@^3.2.1: version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== dependencies: color-convert "^1.9.0" ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz" integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== dependencies: color-convert "^2.0.1" ansi-styles@^5.0.0: version "5.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" + resolved "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz" integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== anymatch@^3.0.3: version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + resolved "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz" integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== dependencies: normalize-path "^3.0.0" @@ -722,19 +715,19 @@ anymatch@^3.0.3: argparse@^1.0.7: version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + resolved "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== dependencies: sprintf-js "~1.0.2" asynckit@^0.4.0: version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + resolved "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz" integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== -babel-jest@^29.7.0: +babel-jest@^29.0.0, babel-jest@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.7.0.tgz#f4369919225b684c56085998ac63dbd05be020d5" + resolved "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz" integrity sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg== dependencies: "@jest/transform" "^29.7.0" @@ -747,7 +740,7 @@ babel-jest@^29.7.0: babel-plugin-istanbul@^6.1.1: version "6.1.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" + resolved "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz" integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== dependencies: "@babel/helper-plugin-utils" "^7.0.0" @@ -758,7 +751,7 @@ babel-plugin-istanbul@^6.1.1: babel-plugin-jest-hoist@^29.6.3: version "29.6.3" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz#aadbe943464182a8922c3c927c3067ff40d24626" + resolved "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz" integrity sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg== dependencies: "@babel/template" "^7.3.3" @@ -768,7 +761,7 @@ babel-plugin-jest-hoist@^29.6.3: babel-preset-current-node-syntax@^1.0.0: version "1.0.1" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" + resolved "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz" integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== dependencies: "@babel/plugin-syntax-async-generators" "^7.8.4" @@ -786,7 +779,7 @@ babel-preset-current-node-syntax@^1.0.0: babel-preset-jest@^29.6.3: version "29.6.3" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz#fa05fa510e7d493896d7b0dd2033601c840f171c" + resolved "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz" integrity sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA== dependencies: babel-plugin-jest-hoist "^29.6.3" @@ -794,12 +787,12 @@ babel-preset-jest@^29.6.3: balanced-match@^1.0.0: version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + resolved "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== brace-expansion@^1.1.7: version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + resolved "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== dependencies: balanced-match "^1.0.0" @@ -807,14 +800,14 @@ brace-expansion@^1.1.7: braces@^3.0.2: version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + resolved "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== dependencies: fill-range "^7.0.1" -browserslist@^4.22.2: +browserslist@^4.22.2, "browserslist@>= 4.21.0": version "4.23.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" + resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.23.0.tgz" integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== dependencies: caniuse-lite "^1.0.30001587" @@ -824,26 +817,26 @@ browserslist@^4.22.2: bs-logger@0.x: version "0.2.6" - resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" + resolved "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz" integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== dependencies: fast-json-stable-stringify "2.x" bser@2.1.1: version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" + resolved "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz" integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== dependencies: node-int64 "^0.4.0" buffer-from@^1.0.0: version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz" integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== call-bind@^1.0.7: version "1.0.7" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + resolved "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz" integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== dependencies: es-define-property "^1.0.0" @@ -854,27 +847,27 @@ call-bind@^1.0.7: callsites@^3.0.0: version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + resolved "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== camelcase@^5.3.1: version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== camelcase@^6.2.0: version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" + resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001587: version "1.0.30001618" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001618.tgz#fad74fa006aef0f01e8e5c0a5540c74d8d36ec6f" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001618.tgz" integrity sha512-p407+D1tIkDvsEAPS22lJxLQQaG8OTBEqo0KhzfABGk0TU4juBNDSfH0hyAp/HRyx+M8L17z/ltyhxh27FTfQg== chalk@^2.4.2: version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + resolved "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== dependencies: ansi-styles "^3.2.1" @@ -883,7 +876,7 @@ chalk@^2.4.2: chalk@^4.0.0: version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + resolved "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== dependencies: ansi-styles "^4.1.0" @@ -891,22 +884,22 @@ chalk@^4.0.0: char-regex@^1.0.2: version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" + resolved "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz" integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== ci-info@^3.2.0: version "3.9.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.9.0.tgz#4279a62028a7b1f262f3473fc9605f5e218c59b4" + resolved "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz" integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cjs-module-lexer@^1.0.0: version "1.3.1" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz#c485341ae8fd999ca4ee5af2d7a1c9ae01e0099c" + resolved "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz" integrity sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q== cliui@^8.0.1: version "8.0.1" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + resolved "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz" integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== dependencies: string-width "^4.2.0" @@ -915,58 +908,58 @@ cliui@^8.0.1: co@^4.6.0: version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + resolved "https://registry.npmjs.org/co/-/co-4.6.0.tgz" integrity sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ== collect-v8-coverage@^1.0.0: version "1.0.2" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz#c0b29bcd33bcd0779a1344c2136051e6afd3d9e9" + resolved "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz" integrity sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q== color-convert@^1.9.0: version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== dependencies: color-name "1.1.3" color-convert@^2.0.1: version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + resolved "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== dependencies: color-name "~1.1.4" -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - color-name@~1.1.4: version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + combined-stream@^1.0.8: version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + resolved "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz" integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== dependencies: delayed-stream "~1.0.0" concat-map@0.0.1: version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + resolved "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== convert-source-map@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + resolved "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz" integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== create-jest@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/create-jest/-/create-jest-29.7.0.tgz#a355c5b3cb1e1af02ba177fe7afd7feee49a5320" + resolved "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz" integrity sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q== dependencies: "@jest/types" "^29.6.3" @@ -979,7 +972,7 @@ create-jest@^29.7.0: cross-spawn@^7.0.3: version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== dependencies: path-key "^3.1.0" @@ -988,24 +981,24 @@ cross-spawn@^7.0.3: debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + resolved "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz" integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== dependencies: ms "2.1.2" dedent@^1.0.0: version "1.5.3" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-1.5.3.tgz#99aee19eb9bae55a67327717b6e848d0bf777e5a" + resolved "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz" integrity sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ== deepmerge@^4.2.2: version "4.3.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a" + resolved "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz" integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A== define-data-property@^1.1.4: version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + resolved "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz" integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== dependencies: es-define-property "^1.0.0" @@ -1014,76 +1007,76 @@ define-data-property@^1.1.4: delayed-stream@~1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz" integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== detect-newline@^3.0.0: version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" + resolved "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz" integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== diff-sequences@^29.6.3: version "29.6.3" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" + resolved "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz" integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== electron-to-chromium@^1.4.668: version "1.4.768" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.768.tgz#3795bd000ccb8978be1af2d06320b2dac810a372" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.768.tgz" integrity sha512-z2U3QcvNuxdkk33YV7R1bVMNq7fL23vq3WfO5BHcqrm4TnDGReouBfYKLEFh5umoK1XACjEwp8mmnhXk2EJigw== emittery@^0.13.1: version "0.13.1" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad" + resolved "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz" integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ== emoji-regex@^8.0.0: version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + resolved "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== error-ex@^1.3.1: version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + resolved "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== dependencies: is-arrayish "^0.2.1" es-define-property@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + resolved "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz" integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== dependencies: get-intrinsic "^1.2.4" es-errors@^1.3.0: version "1.3.0" - resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + resolved "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== escalade@^3.1.1, escalade@^3.1.2: version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + resolved "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz" integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== escape-string-regexp@^1.0.5: version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== escape-string-regexp@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" + resolved "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== esprima@^4.0.0: version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + resolved "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== execa@^5.0.0: version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + resolved "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz" integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== dependencies: cross-spawn "^7.0.3" @@ -1098,12 +1091,12 @@ execa@^5.0.0: exit@^0.1.2: version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + resolved "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz" integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== expect@^29.0.0, expect@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/expect/-/expect-29.7.0.tgz#578874590dcb3214514084c08115d8aee61e11bc" + resolved "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz" integrity sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw== dependencies: "@jest/expect-utils" "^29.7.0" @@ -1112,36 +1105,36 @@ expect@^29.0.0, expect@^29.7.0: jest-message-util "^29.7.0" jest-util "^29.7.0" -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.1.0: +fast-json-stable-stringify@^2.1.0, fast-json-stable-stringify@2.x: version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + resolved "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== fb-watchman@^2.0.0: version "2.0.2" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.2.tgz#e9524ee6b5c77e9e5001af0f85f3adbb8623255c" + resolved "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz" integrity sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA== dependencies: bser "2.1.1" fill-range@^7.0.1: version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + resolved "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== dependencies: to-regex-range "^5.0.1" find-up@^4.0.0, find-up@^4.1.0: version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + resolved "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== dependencies: locate-path "^5.0.0" path-exists "^4.0.0" -form-data@4.0.0, form-data@^4.0.0: +form-data@^4.0.0, form-data@4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + resolved "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz" integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== dependencies: asynckit "^0.4.0" @@ -1150,32 +1143,27 @@ form-data@4.0.0, form-data@^4.0.0: fs.realpath@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@^2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz" integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== gensync@^1.0.0-beta.2: version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + resolved "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz" integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== get-caller-file@^2.0.5: version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + resolved "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: version "1.2.4" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + resolved "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz" integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== dependencies: es-errors "^1.3.0" @@ -1186,17 +1174,17 @@ get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: get-package-type@^0.1.0: version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + resolved "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== get-stream@^6.0.0: version "6.0.1" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + resolved "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz" integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== glob@^7.1.3, glob@^7.1.4: version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + resolved "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz" integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== dependencies: fs.realpath "^1.0.0" @@ -1208,68 +1196,68 @@ glob@^7.1.3, glob@^7.1.4: globals@^11.1.0: version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + resolved "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz" integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== gopd@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + resolved "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz" integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== dependencies: get-intrinsic "^1.1.3" graceful-fs@^4.2.9: version "4.2.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + resolved "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== has-flag@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== has-flag@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + resolved "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== has-property-descriptors@^1.0.2: version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + resolved "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz" integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== dependencies: es-define-property "^1.0.0" has-proto@^1.0.1: version "1.0.3" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + resolved "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz" integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== has-symbols@^1.0.3: version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + resolved "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz" integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== hasown@^2.0.0: version "2.0.2" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + resolved "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz" integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== dependencies: function-bind "^1.1.2" html-escaper@^2.0.0: version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + resolved "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz" integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== human-signals@^2.1.0: version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== import-local@^3.0.2: version "3.1.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" + resolved "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz" integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== dependencies: pkg-dir "^4.2.0" @@ -1277,12 +1265,12 @@ import-local@^3.0.2: imurmurhash@^0.1.4: version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + resolved "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== inflight@^1.0.4: version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + resolved "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== dependencies: once "^1.3.0" @@ -1290,54 +1278,54 @@ inflight@^1.0.4: inherits@2: version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz" integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== is-arrayish@^0.2.1: version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + resolved "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.13.0: version "2.13.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" + resolved "https://registry.npmjs.org/is-core-module/-/is-core-module-2.13.1.tgz" integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== dependencies: hasown "^2.0.0" is-fullwidth-code-point@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + resolved "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== is-generator-fn@^2.0.0: version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" + resolved "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== is-number@^7.0.0: version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + resolved "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== is-stream@^2.0.0: version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + resolved "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz" integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== isexe@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + resolved "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" + resolved "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz" integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== istanbul-lib-instrument@^5.0.4: version "5.2.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" + resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz" integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== dependencies: "@babel/core" "^7.12.3" @@ -1348,7 +1336,7 @@ istanbul-lib-instrument@^5.0.4: istanbul-lib-instrument@^6.0.0: version "6.0.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz#91655936cf7380e4e473383081e38478b69993b1" + resolved "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz" integrity sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw== dependencies: "@babel/core" "^7.23.9" @@ -1359,7 +1347,7 @@ istanbul-lib-instrument@^6.0.0: istanbul-lib-report@^3.0.0: version "3.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" + resolved "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz" integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== dependencies: istanbul-lib-coverage "^3.0.0" @@ -1368,7 +1356,7 @@ istanbul-lib-report@^3.0.0: istanbul-lib-source-maps@^4.0.0: version "4.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" + resolved "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz" integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== dependencies: debug "^4.1.1" @@ -1377,7 +1365,7 @@ istanbul-lib-source-maps@^4.0.0: istanbul-reports@^3.1.3: version "3.1.7" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" + resolved "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz" integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== dependencies: html-escaper "^2.0.0" @@ -1385,7 +1373,7 @@ istanbul-reports@^3.1.3: jest-changed-files@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-29.7.0.tgz#1c06d07e77c78e1585d020424dedc10d6e17ac3a" + resolved "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz" integrity sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w== dependencies: execa "^5.0.0" @@ -1394,7 +1382,7 @@ jest-changed-files@^29.7.0: jest-circus@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-29.7.0.tgz#b6817a45fcc835d8b16d5962d0c026473ee3668a" + resolved "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz" integrity sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw== dependencies: "@jest/environment" "^29.7.0" @@ -1420,7 +1408,7 @@ jest-circus@^29.7.0: jest-cli@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.7.0.tgz#5592c940798e0cae677eec169264f2d839a37995" + resolved "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz" integrity sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg== dependencies: "@jest/core" "^29.7.0" @@ -1437,7 +1425,7 @@ jest-cli@^29.7.0: jest-config@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-29.7.0.tgz#bcbda8806dbcc01b1e316a46bb74085a84b0245f" + resolved "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz" integrity sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ== dependencies: "@babel/core" "^7.11.6" @@ -1465,7 +1453,7 @@ jest-config@^29.7.0: jest-diff@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" + resolved "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz" integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== dependencies: chalk "^4.0.0" @@ -1475,14 +1463,14 @@ jest-diff@^29.7.0: jest-docblock@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.7.0.tgz#8fddb6adc3cdc955c93e2a87f61cfd350d5d119a" + resolved "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz" integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g== dependencies: detect-newline "^3.0.0" jest-each@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-29.7.0.tgz#162a9b3f2328bdd991beaabffbb74745e56577d1" + resolved "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz" integrity sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ== dependencies: "@jest/types" "^29.6.3" @@ -1493,7 +1481,7 @@ jest-each@^29.7.0: jest-environment-node@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-29.7.0.tgz#0b93e111dda8ec120bc8300e6d1fb9576e164376" + resolved "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz" integrity sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw== dependencies: "@jest/environment" "^29.7.0" @@ -1505,12 +1493,12 @@ jest-environment-node@^29.7.0: jest-get-type@^29.6.3: version "29.6.3" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + resolved "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz" integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== jest-haste-map@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-29.7.0.tgz#3c2396524482f5a0506376e6c858c3bbcc17b104" + resolved "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz" integrity sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA== dependencies: "@jest/types" "^29.6.3" @@ -1529,7 +1517,7 @@ jest-haste-map@^29.7.0: jest-leak-detector@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz#5b7ec0dadfdfec0ca383dc9aa016d36b5ea4c728" + resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz" integrity sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw== dependencies: jest-get-type "^29.6.3" @@ -1537,7 +1525,7 @@ jest-leak-detector@^29.7.0: jest-matcher-utils@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz#ae8fec79ff249fd592ce80e3ee474e83a6c44f12" + resolved "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz" integrity sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g== dependencies: chalk "^4.0.0" @@ -1547,7 +1535,7 @@ jest-matcher-utils@^29.7.0: jest-message-util@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-29.7.0.tgz#8bc392e204e95dfe7564abbe72a404e28e51f7f3" + resolved "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz" integrity sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w== dependencies: "@babel/code-frame" "^7.12.13" @@ -1562,7 +1550,7 @@ jest-message-util@^29.7.0: jest-mock@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-29.7.0.tgz#4e836cf60e99c6fcfabe9f99d017f3fdd50a6347" + resolved "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz" integrity sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw== dependencies: "@jest/types" "^29.6.3" @@ -1571,25 +1559,25 @@ jest-mock@^29.7.0: jest-pnp-resolver@^1.2.2: version "1.2.3" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz#930b1546164d4ad5937d5540e711d4d38d4cad2e" + resolved "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz" integrity sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w== jest-regex-util@^29.6.3: version "29.6.3" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-29.6.3.tgz#4a556d9c776af68e1c5f48194f4d0327d24e8a52" + resolved "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz" integrity sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg== jest-resolve-dependencies@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz#1b04f2c095f37fc776ff40803dc92921b1e88428" + resolved "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz" integrity sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA== dependencies: jest-regex-util "^29.6.3" jest-snapshot "^29.7.0" -jest-resolve@^29.7.0: +jest-resolve@*, jest-resolve@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-29.7.0.tgz#64d6a8992dd26f635ab0c01e5eef4399c6bcbc30" + resolved "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz" integrity sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA== dependencies: chalk "^4.0.0" @@ -1604,7 +1592,7 @@ jest-resolve@^29.7.0: jest-runner@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-29.7.0.tgz#809af072d408a53dcfd2e849a4c976d3132f718e" + resolved "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz" integrity sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ== dependencies: "@jest/console" "^29.7.0" @@ -1631,7 +1619,7 @@ jest-runner@^29.7.0: jest-runtime@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-29.7.0.tgz#efecb3141cf7d3767a3a0cc8f7c9990587d3d817" + resolved "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz" integrity sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ== dependencies: "@jest/environment" "^29.7.0" @@ -1659,7 +1647,7 @@ jest-runtime@^29.7.0: jest-snapshot@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-29.7.0.tgz#c2c574c3f51865da1bb329036778a69bf88a6be5" + resolved "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz" integrity sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw== dependencies: "@babel/core" "^7.11.6" @@ -1685,7 +1673,7 @@ jest-snapshot@^29.7.0: jest-util@^29.0.0, jest-util@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.7.0.tgz#23c2b62bfb22be82b44de98055802ff3710fc0bc" + resolved "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz" integrity sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA== dependencies: "@jest/types" "^29.6.3" @@ -1697,7 +1685,7 @@ jest-util@^29.0.0, jest-util@^29.7.0: jest-validate@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-29.7.0.tgz#7bf705511c64da591d46b15fce41400d52147d9c" + resolved "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz" integrity sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw== dependencies: "@jest/types" "^29.6.3" @@ -1709,7 +1697,7 @@ jest-validate@^29.7.0: jest-watcher@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-29.7.0.tgz#7810d30d619c3a62093223ce6bb359ca1b28a2f2" + resolved "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz" integrity sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g== dependencies: "@jest/test-result" "^29.7.0" @@ -1723,7 +1711,7 @@ jest-watcher@^29.7.0: jest-worker@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-29.7.0.tgz#acad073acbbaeb7262bd5389e1bcf43e10058d4a" + resolved "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz" integrity sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw== dependencies: "@types/node" "*" @@ -1731,9 +1719,9 @@ jest-worker@^29.7.0: merge-stream "^2.0.0" supports-color "^8.0.0" -jest@^29.7.0: +jest@^29.0.0, jest@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/jest/-/jest-29.7.0.tgz#994676fc24177f088f1c5e3737f5697204ff2613" + resolved "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz" integrity sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw== dependencies: "@jest/core" "^29.7.0" @@ -1743,17 +1731,17 @@ jest@^29.7.0: js-base64@3.7.2: version "3.7.2" - resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.2.tgz#816d11d81a8aff241603d19ce5761e13e41d7745" + resolved "https://registry.npmjs.org/js-base64/-/js-base64-3.7.2.tgz" integrity sha512-NnRs6dsyqUXejqk/yv2aiXlAvOs56sLkX6nUdeaNezI5LFFLlsZjOThmwnrcwh5ZZRwZlCMnVAY3CvhIhoVEKQ== js-tokens@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== js-yaml@^3.13.1: version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz" integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== dependencies: argparse "^1.0.7" @@ -1761,80 +1749,80 @@ js-yaml@^3.13.1: jsesc@^2.5.1: version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + resolved "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz" integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== json-parse-even-better-errors@^2.3.0: version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" + resolved "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== json5@^2.2.3: version "2.2.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + resolved "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== kleur@^3.0.3: version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" + resolved "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== leven@^3.1.0: version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" + resolved "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz" integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== lines-and-columns@^1.1.6: version "1.2.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + resolved "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz" integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== locate-path@^5.0.0: version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + resolved "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== dependencies: p-locate "^4.1.0" lodash.memoize@4.x: version "4.1.2" - resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" + resolved "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz" integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== lru-cache@^5.1.1: version "5.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + resolved "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz" integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== dependencies: yallist "^3.0.2" make-dir@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" + resolved "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz" integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== dependencies: semver "^7.5.3" make-error@1.x: version "1.3.6" - resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + resolved "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz" integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== makeerror@1.0.12: version "1.0.12" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" + resolved "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz" integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== dependencies: tmpl "1.0.5" merge-stream@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + resolved "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz" integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== micromatch@^4.0.4: version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + resolved "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz" integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== dependencies: braces "^3.0.2" @@ -1842,120 +1830,120 @@ micromatch@^4.0.4: mime-db@1.52.0: version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + resolved "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz" integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== mime-types@^2.1.12: version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + resolved "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz" integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== dependencies: mime-db "1.52.0" mimic-fn@^2.1.0: version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + resolved "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== minimatch@^3.0.4, minimatch@^3.1.1: version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + resolved "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz" integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== dependencies: brace-expansion "^1.1.7" ms@2.1.2: version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + resolved "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== natural-compare@^1.4.0: version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + resolved "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== node-fetch@2.7.0: version "2.7.0" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" + resolved "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== dependencies: whatwg-url "^5.0.0" node-int64@^0.4.0: version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== node-releases@^2.0.14: version "2.0.14" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" + resolved "https://registry.npmjs.org/node-releases/-/node-releases-2.0.14.tgz" integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== normalize-path@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== npm-run-path@^4.0.1: version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + resolved "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz" integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== dependencies: path-key "^3.0.0" object-inspect@^1.13.1: version "1.13.1" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" + resolved "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz" integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== once@^1.3.0: version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + resolved "https://registry.npmjs.org/once/-/once-1.4.0.tgz" integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== dependencies: wrappy "1" onetime@^5.1.2: version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + resolved "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz" integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== dependencies: mimic-fn "^2.1.0" p-limit@^2.2.0: version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz" integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== dependencies: p-try "^2.0.0" p-limit@^3.1.0: version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + resolved "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz" integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== dependencies: yocto-queue "^0.1.0" p-locate@^4.1.0: version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + resolved "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== dependencies: p-limit "^2.2.0" p-try@^2.0.0: version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== pako@2.0.1: version "2.0.1" - resolved "https://registry.yarnpkg.com/pako/-/pako-2.0.1.tgz#31e05b87f8ceae06ef286421575ea962ac9c0d8a" + resolved "https://registry.npmjs.org/pako/-/pako-2.0.1.tgz" integrity sha512-mqHoEQRZ4d+JREr7Csg+QbdfuOHtojEmsAKo/cYiCJICjjB0mOMSKnRlL42P5luMWUXksJ7UDZCRkEqPrBj0Dg== parse-json@^5.2.0: version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" + resolved "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz" integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== dependencies: "@babel/code-frame" "^7.0.0" @@ -1965,54 +1953,54 @@ parse-json@^5.2.0: path-exists@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + resolved "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== path-is-absolute@^1.0.0: version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + resolved "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== path-key@^3.0.0, path-key@^3.1.0: version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + resolved "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== path-parse@^1.0.7: version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + resolved "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== picocolors@^1.0.0, picocolors@^1.0.1: version "1.0.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" + resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz" integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== pirates@^4.0.4: version "4.0.6" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" + resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz" integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== pkg-dir@^4.2.0: version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== dependencies: find-up "^4.0.0" prettier@2.7.1: version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" + resolved "https://registry.npmjs.org/prettier/-/prettier-2.7.1.tgz" integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== pretty-format@^29.0.0, pretty-format@^29.7.0: version "29.7.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + resolved "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz" integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== dependencies: "@jest/schemas" "^29.6.3" @@ -2021,7 +2009,7 @@ pretty-format@^29.0.0, pretty-format@^29.7.0: prompts@^2.0.1: version "2.4.2" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" + resolved "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz" integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== dependencies: kleur "^3.0.3" @@ -2029,46 +2017,46 @@ prompts@^2.0.1: pure-rand@^6.0.0: version "6.1.0" - resolved "https://registry.yarnpkg.com/pure-rand/-/pure-rand-6.1.0.tgz#d173cf23258231976ccbdb05247c9787957604f2" + resolved "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz" integrity sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA== qs@6.11.2: version "6.11.2" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.2.tgz#64bea51f12c1f5da1bc01496f48ffcff7c69d7d9" + resolved "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz" integrity sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA== dependencies: side-channel "^1.0.4" react-is@^18.0.0: version "18.3.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" + resolved "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz" integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== require-directory@^2.1.1: version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + resolved "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== resolve-cwd@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" + resolved "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== dependencies: resolve-from "^5.0.0" resolve-from@^5.0.0: version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + resolved "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== resolve.exports@^2.0.0: version "2.0.2" - resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.2.tgz#f8c934b8e6a13f539e38b7098e2e36134f01e800" + resolved "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz" integrity sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg== resolve@^1.20.0: version "1.22.8" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + resolved "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz" integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== dependencies: is-core-module "^2.13.0" @@ -2077,17 +2065,22 @@ resolve@^1.20.0: semver@^6.3.0, semver@^6.3.1: version "6.3.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + resolved "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz" integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== -semver@^7.5.3, semver@^7.5.4: +semver@^7.5.3: version "7.6.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" + resolved "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz" + integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== + +semver@^7.5.4: + version "7.6.2" + resolved "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz" integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== set-function-length@^1.2.1: version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + resolved "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz" integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== dependencies: define-data-property "^1.1.4" @@ -2099,19 +2092,19 @@ set-function-length@^1.2.1: shebang-command@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + resolved "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz" integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== dependencies: shebang-regex "^3.0.0" shebang-regex@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + resolved "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== side-channel@^1.0.4: version "1.0.6" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" + resolved "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz" integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== dependencies: call-bind "^1.0.7" @@ -2121,22 +2114,22 @@ side-channel@^1.0.4: signal-exit@^3.0.3, signal-exit@^3.0.7: version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + resolved "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz" integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== sisteransi@^1.0.5: version "1.0.5" - resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" + resolved "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz" integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== slash@^3.0.0: version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== source-map-support@0.5.13: version "0.5.13" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" + resolved "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz" integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== dependencies: buffer-from "^1.0.0" @@ -2144,24 +2137,24 @@ source-map-support@0.5.13: source-map@^0.6.0, source-map@^0.6.1: version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + resolved "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== sprintf-js@~1.0.2: version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + resolved "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== stack-utils@^2.0.3: version "2.0.6" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.6.tgz#aaf0748169c02fc33c8232abccf933f54a1cc34f" + resolved "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz" integrity sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ== dependencies: escape-string-regexp "^2.0.0" string-length@^4.0.1: version "4.0.2" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" + resolved "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz" integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== dependencies: char-regex "^1.0.2" @@ -2169,7 +2162,7 @@ string-length@^4.0.1: string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + resolved "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== dependencies: emoji-regex "^8.0.0" @@ -2178,55 +2171,55 @@ string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + resolved "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== dependencies: ansi-regex "^5.0.1" strip-bom@^4.0.0: version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" + resolved "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz" integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== strip-final-newline@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + resolved "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz" integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== strip-json-comments@^3.1.1: version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + resolved "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== supports-color@^5.3.0: version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== dependencies: has-flag "^3.0.0" supports-color@^7.1.0: version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz" integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== dependencies: has-flag "^4.0.0" supports-color@^8.0.0: version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + resolved "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz" integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== dependencies: has-flag "^4.0.0" supports-preserve-symlinks-flag@^1.0.0: version "1.0.0" - resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== test-exclude@^6.0.0: version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + resolved "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz" integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== dependencies: "@istanbuljs/schema" "^0.1.2" @@ -2235,29 +2228,29 @@ test-exclude@^6.0.0: tmpl@1.0.5: version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" + resolved "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz" integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== to-fast-properties@^2.0.0: version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + resolved "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz" integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== to-regex-range@^5.0.1: version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + resolved "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== dependencies: is-number "^7.0.0" tr46@~0.0.3: version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + resolved "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz" integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== ts-jest@^29.1.1: version "29.1.2" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.2.tgz#7613d8c81c43c8cb312c6904027257e814c40e09" + resolved "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.2.tgz" integrity sha512-br6GJoH/WUX4pu7FbZXuWGKGNDuU7b8Uj77g/Sp7puZV6EXzuByl6JrECvm0MzVzSTkSHWTihsXt+5XYER5b+g== dependencies: bs-logger "0.x" @@ -2271,27 +2264,22 @@ ts-jest@^29.1.1: type-detect@4.0.8: version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" + resolved "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== type-fest@^0.21.3: version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + resolved "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz" integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== -typescript@4.6.4: +"typescript@>=4.3 <6", typescript@4.6.4: version "4.6.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" + resolved "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== - update-browserslist-db@^1.0.13: version "1.0.16" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356" + resolved "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz" integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ== dependencies: escalade "^3.1.2" @@ -2299,12 +2287,12 @@ update-browserslist-db@^1.0.13: url-join@4.0.1: version "4.0.1" - resolved "https://registry.yarnpkg.com/url-join/-/url-join-4.0.1.tgz#b642e21a2646808ffa178c4c5fda39844e12cde7" + resolved "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz" integrity sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA== v8-to-istanbul@^9.0.1: version "9.2.0" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz#2ed7644a245cddd83d4e087b9b33b3e62dfd10ad" + resolved "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz" integrity sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA== dependencies: "@jridgewell/trace-mapping" "^0.3.12" @@ -2313,19 +2301,19 @@ v8-to-istanbul@^9.0.1: walker@^1.0.8: version "1.0.8" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" + resolved "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz" integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== dependencies: makeerror "1.0.12" webidl-conversions@^3.0.0: version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz" integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== whatwg-url@^5.0.0: version "5.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + resolved "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz" integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== dependencies: tr46 "~0.0.3" @@ -2333,14 +2321,14 @@ whatwg-url@^5.0.0: which@^2.0.1: version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + resolved "https://registry.npmjs.org/which/-/which-2.0.2.tgz" integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== dependencies: isexe "^2.0.0" wrap-ansi@^7.0.0: version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + resolved "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== dependencies: ansi-styles "^4.0.0" @@ -2349,12 +2337,12 @@ wrap-ansi@^7.0.0: wrappy@1: version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + resolved "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== write-file-atomic@^4.0.2: version "4.0.2" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" + resolved "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz" integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== dependencies: imurmurhash "^0.1.4" @@ -2362,22 +2350,22 @@ write-file-atomic@^4.0.2: y18n@^5.0.5: version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + resolved "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== yallist@^3.0.2: version "3.1.1" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + resolved "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== yargs-parser@^21.0.1, yargs-parser@^21.1.1: version "21.1.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== yargs@^17.3.1: version "17.7.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + resolved "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz" integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== dependencies: cliui "^8.0.1" @@ -2390,5 +2378,5 @@ yargs@^17.3.1: yocto-queue@^0.1.0: version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + resolved "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==