@letta-ai/letta-react 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +646 -1691
- package/dist/index.js.map +4 -4
- package/index.js +646 -1691
- package/index.js.map +4 -4
- package/package.json +4 -4
package/dist/index.js.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
|
-
"sources": ["../node_modules/axios/lib/helpers/bind.js", "../node_modules/axios/lib/utils.js", "../node_modules/axios/lib/core/AxiosError.js", "../node_modules/axios/lib/helpers/null.js", "../node_modules/axios/lib/helpers/toFormData.js", "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js", "../node_modules/axios/lib/helpers/buildURL.js", "../node_modules/axios/lib/core/InterceptorManager.js", "../node_modules/axios/lib/defaults/transitional.js", "../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js", "../node_modules/axios/lib/platform/browser/classes/FormData.js", "../node_modules/axios/lib/platform/browser/classes/Blob.js", "../node_modules/axios/lib/platform/browser/index.js", "../node_modules/axios/lib/platform/common/utils.js", "../node_modules/axios/lib/platform/index.js", "../node_modules/axios/lib/helpers/toURLEncodedForm.js", "../node_modules/axios/lib/helpers/formDataToJSON.js", "../node_modules/axios/lib/defaults/index.js", "../node_modules/axios/lib/helpers/parseHeaders.js", "../node_modules/axios/lib/core/AxiosHeaders.js", "../node_modules/axios/lib/core/transformData.js", "../node_modules/axios/lib/cancel/isCancel.js", "../node_modules/axios/lib/cancel/CanceledError.js", "../node_modules/axios/lib/core/settle.js", "../node_modules/axios/lib/helpers/parseProtocol.js", "../node_modules/axios/lib/helpers/speedometer.js", "../node_modules/axios/lib/helpers/throttle.js", "../node_modules/axios/lib/helpers/progressEventReducer.js", "../node_modules/axios/lib/helpers/isURLSameOrigin.js", "../node_modules/axios/lib/helpers/cookies.js", "../node_modules/axios/lib/helpers/isAbsoluteURL.js", "../node_modules/axios/lib/helpers/combineURLs.js", "../node_modules/axios/lib/core/buildFullPath.js", "../node_modules/axios/lib/core/mergeConfig.js", "../node_modules/axios/lib/helpers/resolveConfig.js", "../node_modules/axios/lib/adapters/xhr.js", "../node_modules/axios/lib/helpers/composeSignals.js", "../node_modules/axios/lib/helpers/trackStream.js", "../node_modules/axios/lib/adapters/fetch.js", "../node_modules/axios/lib/adapters/adapters.js", "../node_modules/axios/lib/core/dispatchRequest.js", "../node_modules/axios/lib/env/data.js", "../node_modules/axios/lib/helpers/validator.js", "../node_modules/axios/lib/core/Axios.js", "../node_modules/axios/lib/cancel/CancelToken.js", "../node_modules/axios/lib/helpers/spread.js", "../node_modules/axios/lib/helpers/isAxiosError.js", "../node_modules/axios/lib/helpers/HttpStatusCode.js", "../node_modules/axios/lib/axios.js", "../node_modules/axios/index.js", "../node_modules/@kubb/plugin-client/clients/axios.ts", "../node_modules/@tanstack/query-core/src/subscribable.ts", "../node_modules/@tanstack/query-core/src/utils.ts", "../node_modules/@tanstack/query-core/src/focusManager.ts", "../node_modules/@tanstack/query-core/src/onlineManager.ts", "../node_modules/@tanstack/query-core/src/thenable.ts", "../node_modules/@tanstack/query-core/src/retryer.ts", "../node_modules/@tanstack/query-core/src/notifyManager.ts", "../node_modules/@tanstack/query-core/src/query.ts", "../node_modules/@tanstack/query-core/src/mutation.ts", "../node_modules/@tanstack/query-core/src/queryObserver.ts", "../node_modules/@tanstack/query-core/src/mutationObserver.ts", "../node_modules/@tanstack/react-query/src/QueryClientProvider.tsx", "../node_modules/@tanstack/react-query/src/isRestoring.ts", "../node_modules/@tanstack/react-query/src/QueryErrorResetBoundary.tsx", "../node_modules/@tanstack/react-query/src/errorBoundaryUtils.ts", "../node_modules/@tanstack/react-query/src/utils.ts", "../node_modules/@tanstack/react-query/src/suspense.ts", "../node_modules/@tanstack/react-query/src/useBaseQuery.ts", "../node_modules/@tanstack/react-query/src/useQuery.ts", "../node_modules/@tanstack/react-query/src/useSuspenseQuery.ts", "../node_modules/@tanstack/react-query/src/queryOptions.ts", "../node_modules/@tanstack/react-query/src/useMutation.ts", "../src/hooks/agentsHooks/useAgents/createTemplateFromAgent.ts", "../src/hooks/agentsHooks/useAgents/getAgentVariables.ts", "../src/hooks/agentsHooks/useAgents/getAgentVariablesSuspense.ts", "../src/hooks/agentsHooks/useAgents/migrateAgent.ts", "../src/hooks/agentsHooks/useAgents/searchDeployedAgents.ts", "../src/hooks/agentsHooks/useAgents/versionAgentTemplate.ts", "../src/hooks/agentsHooks/useCreateAgent.ts", "../src/hooks/agentsHooks/useCreateAgentMessageAsync.ts", "../src/hooks/agentsHooks/useCreateAgentMessageStream.ts", "../src/hooks/agentsHooks/useCreatePassage.ts", "../src/hooks/agentsHooks/useDeleteAgent.ts", "../src/hooks/agentsHooks/useDeletePassage.ts", "../src/hooks/agentsHooks/useExportAgentSerialized.ts", "../src/hooks/agentsHooks/useExportAgentSerializedSuspense.ts", "../src/hooks/agentsHooks/useImportAgentSerialized.ts", "../src/hooks/agentsHooks/useListAgents.ts", "../src/hooks/agentsHooks/useListAgentSources.ts", "../src/hooks/agentsHooks/useListAgentSourcesSuspense.ts", "../src/hooks/agentsHooks/useListAgentsSuspense.ts", "../src/hooks/agentsHooks/useListAgentTools.ts", "../src/hooks/agentsHooks/useListAgentToolsSuspense.ts", "../src/hooks/agentsHooks/useListCoreMemoryBlocks.ts", "../src/hooks/agentsHooks/useListCoreMemoryBlocksSuspense.ts", "../src/hooks/agentsHooks/useListMessages.ts", "../src/hooks/agentsHooks/useListMessagesSuspense.ts", "../src/hooks/agentsHooks/useListPassages.ts", "../src/hooks/agentsHooks/useListPassagesSuspense.ts", "../src/hooks/agentsHooks/useRetrieveAgent.ts", "../src/hooks/agentsHooks/useRetrieveAgentContextWindow.ts", "../src/hooks/agentsHooks/useRetrieveAgentContextWindowSuspense.ts", "../src/hooks/agentsHooks/useRetrieveAgentMemory.ts", "../src/hooks/agentsHooks/useRetrieveAgentMemorySuspense.ts", "../src/hooks/agentsHooks/useRetrieveAgentSuspense.ts", "../src/hooks/agentsHooks/useRetrieveCoreMemoryBlock.ts", "../src/hooks/agentsHooks/useRetrieveCoreMemoryBlockSuspense.ts", "../src/hooks/agentsHooks/useSendMessage.ts", "../src/hooks/blocksHooks/useCreateBlock.ts", "../src/hooks/blocksHooks/useDeleteBlock.ts", "../src/hooks/blocksHooks/useListAgentsForBlock.ts", "../src/hooks/blocksHooks/useListAgentsForBlockSuspense.ts", "../src/hooks/blocksHooks/useListBlocks.ts", "../src/hooks/blocksHooks/useListBlocksSuspense.ts", "../src/hooks/blocksHooks/useRetrieveBlock.ts", "../src/hooks/blocksHooks/useRetrieveBlockSuspense.ts", "../src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/createClientSideAccessToken.ts", "../src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/deleteClientSideAccessToken.ts", "../src/hooks/groupsHooks/useCreateGroup.ts", "../src/hooks/groupsHooks/useDeleteGroup.ts", "../src/hooks/groupsHooks/useListGroupMessages.ts", "../src/hooks/groupsHooks/useListGroupMessagesSuspense.ts", "../src/hooks/groupsHooks/useListGroups.ts", "../src/hooks/groupsHooks/useListGroupsSuspense.ts", "../src/hooks/groupsHooks/useRetrieveGroup.ts", "../src/hooks/groupsHooks/useRetrieveGroupSuspense.ts", "../src/hooks/groupsHooks/useSendGroupMessage.ts", "../src/hooks/groupsHooks/useSendGroupMessageStreaming.ts", "../src/hooks/healthHooks/useHealthCheck.ts", "../src/hooks/healthHooks/useHealthCheckSuspense.ts", "../src/hooks/identitiesHooks/useCreateIdentity.ts", "../src/hooks/identitiesHooks/useDeleteIdentity.ts", "../src/hooks/identitiesHooks/useListIdentities.ts", "../src/hooks/identitiesHooks/useListIdentitiesSuspense.ts", "../src/hooks/identitiesHooks/useRetrieveIdentity.ts", "../src/hooks/identitiesHooks/useRetrieveIdentitySuspense.ts", "../src/hooks/identitiesHooks/useUpsertIdentity.ts", "../src/hooks/identitiesHooks/useUpsertIdentityProperties.ts", "../src/hooks/jobsHooks/useDeleteJob.ts", "../src/hooks/jobsHooks/useListActiveJobs.ts", "../src/hooks/jobsHooks/useListActiveJobsSuspense.ts", "../src/hooks/jobsHooks/useListJobs.ts", "../src/hooks/jobsHooks/useListJobsSuspense.ts", "../src/hooks/jobsHooks/useRetrieveJob.ts", "../src/hooks/jobsHooks/useRetrieveJobSuspense.ts", "../src/hooks/modelsHooks/useListEmbeddingModels.ts", "../src/hooks/modelsHooks/useListEmbeddingModelsSuspense.ts", "../src/hooks/modelsHooks/useListModels.ts", "../src/hooks/modelsHooks/useListModelsSuspense.ts", "../src/hooks/providersHooks/useCreateProvider.ts", "../src/hooks/providersHooks/useDeleteProvider.ts", "../src/hooks/providersHooks/useListProviders.ts", "../src/hooks/providersHooks/useListProvidersSuspense.ts", "../src/hooks/runsHooks/useDeleteRun.ts", "../src/hooks/runsHooks/useListActiveRuns.ts", "../src/hooks/runsHooks/useListActiveRunsSuspense.ts", "../src/hooks/runsHooks/useListRunMessages.ts", "../src/hooks/runsHooks/useListRunMessagesSuspense.ts", "../src/hooks/runsHooks/useListRuns.ts", "../src/hooks/runsHooks/useListRunsSuspense.ts", "../src/hooks/runsHooks/useListRunSteps.ts", "../src/hooks/runsHooks/useListRunStepsSuspense.ts", "../src/hooks/runsHooks/useRetrieveRun.ts", "../src/hooks/runsHooks/useRetrieveRunSuspense.ts", "../src/hooks/runsHooks/useRetrieveRunUsage.ts", "../src/hooks/runsHooks/useRetrieveRunUsageSuspense.ts", "../src/hooks/sourcesHooks/useCreateSource.ts", "../src/hooks/sourcesHooks/useDeleteFileFromSource.ts", "../src/hooks/sourcesHooks/useDeleteSource.ts", "../src/hooks/sourcesHooks/useGetSourceIdByName.ts", "../src/hooks/sourcesHooks/useGetSourceIdByNameSuspense.ts", "../src/hooks/sourcesHooks/useListSourceFiles.ts", "../src/hooks/sourcesHooks/useListSourceFilesSuspense.ts", "../src/hooks/sourcesHooks/useListSourcePassages.ts", "../src/hooks/sourcesHooks/useListSourcePassagesSuspense.ts", "../src/hooks/sourcesHooks/useListSources.ts", "../src/hooks/sourcesHooks/useListSourcesSuspense.ts", "../src/hooks/sourcesHooks/useRetrieveSource.ts", "../src/hooks/sourcesHooks/useRetrieveSourceSuspense.ts", "../src/hooks/sourcesHooks/useUploadFileToSource.ts", "../src/hooks/stepsHooks/useListSteps.ts", "../src/hooks/stepsHooks/useListStepsSuspense.ts", "../src/hooks/stepsHooks/useRetrieveStep.ts", "../src/hooks/stepsHooks/useRetrieveStepSuspense.ts", "../src/hooks/tagHooks/useListTags.ts", "../src/hooks/tagHooks/useListTagsSuspense.ts", "../src/hooks/templatesHooks/useTemplates/createAgentsFromTemplate.ts", "../src/hooks/toolsHooks/useAddBaseTools.ts", "../src/hooks/toolsHooks/useAddComposioTool.ts", "../src/hooks/toolsHooks/useAddMcpServer.ts", "../src/hooks/toolsHooks/useAddMcpTool.ts", "../src/hooks/toolsHooks/useCreateTool.ts", "../src/hooks/toolsHooks/useDeleteMcpServer.ts", "../src/hooks/toolsHooks/useDeleteTool.ts", "../src/hooks/toolsHooks/useListComposioActionsByApp.ts", "../src/hooks/toolsHooks/useListComposioActionsByAppSuspense.ts", "../src/hooks/toolsHooks/useListComposioApps.ts", "../src/hooks/toolsHooks/useListComposioAppsSuspense.ts", "../src/hooks/toolsHooks/useListMcpServers.ts", "../src/hooks/toolsHooks/useListMcpServersSuspense.ts", "../src/hooks/toolsHooks/useListMcpToolsByServer.ts", "../src/hooks/toolsHooks/useListMcpToolsByServerSuspense.ts", "../src/hooks/toolsHooks/useListTools.ts", "../src/hooks/toolsHooks/useListToolsSuspense.ts", "../src/hooks/toolsHooks/useRetrieveTool.ts", "../src/hooks/toolsHooks/useRetrieveToolSuspense.ts", "../src/hooks/toolsHooks/useRunToolFromSource.ts", "../src/hooks/toolsHooks/useUpsertTool.ts", "../src/hooks/voiceHooks/useCreateVoiceChatCompletions.ts", "../src/types/agents/CreateTemplateFromAgent.ts", "../src/types/agents/GetAgentVariables.ts", "../src/types/agents/MigrateAgent.ts", "../src/types/agents/SearchDeployedAgents.ts", "../src/types/agents/VersionAgentTemplate.ts", "../src/types/AgentType.ts", "../src/types/AppAuthScheme.ts", "../src/types/AssistantMessage.ts", "../src/types/ChatCompletionAudioParam.ts", "../src/types/clientSideAccessTokens/CreateClientSideAccessToken.ts", "../src/types/CompletionCreateParamsNonStreaming.ts", "../src/types/CompletionCreateParamsStreaming.ts", "../src/types/EmbeddingConfig.ts", "../src/types/HiddenReasoningMessage.ts", "../src/types/IdentityPropertyType.ts", "../src/types/IdentityType.ts", "../src/types/ImageURL.ts", "../src/types/InputAudio.ts", "../src/types/JobStatus.ts", "../src/types/JobType.ts", "../src/types/LettaAssistantMessageContentUnion.ts", "../src/types/LettaMessageContentUnion.ts", "../src/types/LettaMessageUnion.ts", "../src/types/LettaUserMessageContentUnion.ts", "../src/types/LLMConfig.ts", "../src/types/ManagerType.ts", "../src/types/MCPServerType.ts", "../src/types/MessageCreate.ts", "../src/types/MessageRole.ts", "../src/types/OmittedReasoningContent.ts", "../src/types/ReasoningContent.ts", "../src/types/ReasoningMessage.ts", "../src/types/RedactedReasoningContent.ts", "../src/types/SandboxType.ts", "../src/types/SystemMessage.ts", "../src/types/TextContent.ts", "../src/types/ToolCallContent.ts", "../src/types/ToolCallMessage.ts", "../src/types/ToolReturn.ts", "../src/types/ToolReturnMessage.ts", "../src/types/ToolType.ts", "../src/types/UserMessage.ts", "../src/types/WebSearchOptions.ts"],
|
4
|
-
"sourcesContent": ["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n", "'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? ((token, callbacks) => {\n _global.addEventListener(\"message\", ({source, data}) => {\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return (cb) => {\n callbacks.push(cb);\n _global.postMessage(token, \"*\");\n }\n })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n typeof setImmediate === 'function',\n isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable,\n setImmediate: _setImmediate,\n asap\n};\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n", "// eslint-disable-next-line strict\nexport default null;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n", "'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n if (utils.isFunction(options)) {\n options = {\n serialize: options\n };\n } \n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n", "'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n", "'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n", "'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n", "'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n", "import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n", "const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n", "import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n", "'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n", "'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n", "'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n", "'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n", "'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n", "'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n", "'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n", "/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n", "import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n", "import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n})(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n", "import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n", "'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {\n let isRelativeUrl = !isAbsoluteURL(requestedURL);\n if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, prop, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, prop , caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, prop , caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, prop , caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n", "import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n", "import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = resolveConfig(config);\n let requestData = _config.data;\n const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n let {responseType, onUploadProgress, onDownloadProgress} = _config;\n let onCanceled;\n let uploadThrottled, downloadThrottled;\n let flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || transitionalDefaults;\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (onDownloadProgress) {\n ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n request.addEventListener('progress', downloadThrottled);\n }\n\n // Not all browsers support upload events\n if (onUploadProgress && request.upload) {\n ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n request.upload.addEventListener('progress', uploadThrottled);\n\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n", "import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n", "\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n", "import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(utils.isBlob(body)) {\n return body.size;\n }\n\n if(utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if(utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = \"credentials\" in Request.prototype;\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n});\n\n\n", "import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n", "'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n", "export const VERSION = \"1.8.4\";", "'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n return (value, opt) => {\n // eslint-disable-next-line no-console\n console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n return true;\n }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n", "'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy = {};\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.allowAbsoluteUrls\n if (config.allowAbsoluteUrls !== undefined) {\n // do nothing\n } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n } else {\n config.allowAbsoluteUrls = true;\n }\n\n validator.assertOptions(config, {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken')\n }, true);\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n", "'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n", "const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n", "'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n", "import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n}\n", "import axios from 'axios'\n\nimport type { AxiosError, AxiosHeaders, AxiosRequestConfig, AxiosResponse } from 'axios'\n\ndeclare const AXIOS_BASE: string\ndeclare const AXIOS_HEADERS: string\n\n/**\n * Subset of AxiosRequestConfig\n */\nexport type RequestConfig<TData = unknown> = {\n baseURL?: string\n url?: string\n method?: 'GET' | 'PUT' | 'PATCH' | 'POST' | 'DELETE' | 'OPTIONS'\n params?: unknown\n data?: TData | FormData\n responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'\n signal?: AbortSignal\n headers?: AxiosRequestConfig['headers']\n}\n\n/**\n * Subset of AxiosResponse\n */\nexport type ResponseConfig<TData = unknown> = {\n data: TData\n status: number\n statusText: string\n headers: AxiosResponse['headers']\n}\n\nexport type ResponseErrorConfig<TError = unknown> = AxiosError<TError>\n\nlet _config: Partial<RequestConfig> = {\n baseURL: typeof AXIOS_BASE !== 'undefined' ? AXIOS_BASE : undefined,\n headers: typeof AXIOS_HEADERS !== 'undefined' ? (JSON.parse(AXIOS_HEADERS) as AxiosHeaders) : undefined,\n}\n\nexport const getConfig = () => _config\n\nexport const setConfig = (config: RequestConfig) => {\n _config = config\n return getConfig()\n}\n\nexport const axiosInstance = axios.create(getConfig())\n\nexport const client = async <TData, TError = unknown, TVariables = unknown>(config: RequestConfig<TVariables>): Promise<ResponseConfig<TData>> => {\n const globalConfig = getConfig()\n\n return axiosInstance\n .request<TData, ResponseConfig<TData>>({\n ...globalConfig,\n ...config,\n headers: {\n ...globalConfig.headers,\n ...config.headers,\n },\n })\n .catch((e: AxiosError<TError>) => {\n throw e\n })\n}\n\nclient.getConfig = getConfig\nclient.setConfig = setConfig\n\nexport default client\n", "export class Subscribable<TListener extends Function> {\n protected listeners = new Set<TListener>()\n\n constructor() {\n this.subscribe = this.subscribe.bind(this)\n }\n\n subscribe(listener: TListener): () => void {\n this.listeners.add(listener)\n\n this.onSubscribe()\n\n return () => {\n this.listeners.delete(listener)\n this.onUnsubscribe()\n }\n }\n\n hasListeners(): boolean {\n return this.listeners.size > 0\n }\n\n protected onSubscribe(): void {\n // Do nothing\n }\n\n protected onUnsubscribe(): void {\n // Do nothing\n }\n}\n", "import type {\n DefaultError,\n Enabled,\n FetchStatus,\n MutationKey,\n MutationStatus,\n QueryFunction,\n QueryKey,\n QueryOptions,\n StaleTime,\n} from './types'\nimport type { Mutation } from './mutation'\nimport type { FetchOptions, Query } from './query'\n\n// TYPES\n\nexport interface QueryFilters<TQueryKey extends QueryKey = QueryKey> {\n /**\n * Filter to active queries, inactive queries or all queries\n */\n type?: QueryTypeFilter\n /**\n * Match query key exactly\n */\n exact?: boolean\n /**\n * Include queries matching this predicate function\n */\n predicate?: (query: Query) => boolean\n /**\n * Include queries matching this query key\n */\n queryKey?: TQueryKey\n /**\n * Include or exclude stale queries\n */\n stale?: boolean\n /**\n * Include queries matching their fetchStatus\n */\n fetchStatus?: FetchStatus\n}\n\nexport interface MutationFilters<\n TData = unknown,\n TError = DefaultError,\n TVariables = unknown,\n TContext = unknown,\n> {\n /**\n * Match mutation key exactly\n */\n exact?: boolean\n /**\n * Include mutations matching this predicate function\n */\n predicate?: (\n mutation: Mutation<TData, TError, TVariables, TContext>,\n ) => boolean\n /**\n * Include mutations matching this mutation key\n */\n mutationKey?: MutationKey\n /**\n * Filter by mutation status\n */\n status?: MutationStatus\n}\n\nexport type Updater<TInput, TOutput> = TOutput | ((input: TInput) => TOutput)\n\nexport type QueryTypeFilter = 'all' | 'active' | 'inactive'\n\n// UTILS\n\nexport const isServer = typeof window === 'undefined' || 'Deno' in globalThis\n\nexport function noop(): void\nexport function noop(): undefined\nexport function noop() {}\n\nexport function functionalUpdate<TInput, TOutput>(\n updater: Updater<TInput, TOutput>,\n input: TInput,\n): TOutput {\n return typeof updater === 'function'\n ? (updater as (_: TInput) => TOutput)(input)\n : updater\n}\n\nexport function isValidTimeout(value: unknown): value is number {\n return typeof value === 'number' && value >= 0 && value !== Infinity\n}\n\nexport function timeUntilStale(updatedAt: number, staleTime?: number): number {\n return Math.max(updatedAt + (staleTime || 0) - Date.now(), 0)\n}\n\nexport function resolveStaleTime<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n staleTime: undefined | StaleTime<TQueryFnData, TError, TData, TQueryKey>,\n query: Query<TQueryFnData, TError, TData, TQueryKey>,\n): number | undefined {\n return typeof staleTime === 'function' ? staleTime(query) : staleTime\n}\n\nexport function resolveEnabled<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n enabled: undefined | Enabled<TQueryFnData, TError, TData, TQueryKey>,\n query: Query<TQueryFnData, TError, TData, TQueryKey>,\n): boolean | undefined {\n return typeof enabled === 'function' ? enabled(query) : enabled\n}\n\nexport function matchQuery(\n filters: QueryFilters,\n query: Query<any, any, any, any>,\n): boolean {\n const {\n type = 'all',\n exact,\n fetchStatus,\n predicate,\n queryKey,\n stale,\n } = filters\n\n if (queryKey) {\n if (exact) {\n if (query.queryHash !== hashQueryKeyByOptions(queryKey, query.options)) {\n return false\n }\n } else if (!partialMatchKey(query.queryKey, queryKey)) {\n return false\n }\n }\n\n if (type !== 'all') {\n const isActive = query.isActive()\n if (type === 'active' && !isActive) {\n return false\n }\n if (type === 'inactive' && isActive) {\n return false\n }\n }\n\n if (typeof stale === 'boolean' && query.isStale() !== stale) {\n return false\n }\n\n if (fetchStatus && fetchStatus !== query.state.fetchStatus) {\n return false\n }\n\n if (predicate && !predicate(query)) {\n return false\n }\n\n return true\n}\n\nexport function matchMutation(\n filters: MutationFilters,\n mutation: Mutation<any, any>,\n): boolean {\n const { exact, status, predicate, mutationKey } = filters\n if (mutationKey) {\n if (!mutation.options.mutationKey) {\n return false\n }\n if (exact) {\n if (hashKey(mutation.options.mutationKey) !== hashKey(mutationKey)) {\n return false\n }\n } else if (!partialMatchKey(mutation.options.mutationKey, mutationKey)) {\n return false\n }\n }\n\n if (status && mutation.state.status !== status) {\n return false\n }\n\n if (predicate && !predicate(mutation)) {\n return false\n }\n\n return true\n}\n\nexport function hashQueryKeyByOptions<TQueryKey extends QueryKey = QueryKey>(\n queryKey: TQueryKey,\n options?: Pick<QueryOptions<any, any, any, any>, 'queryKeyHashFn'>,\n): string {\n const hashFn = options?.queryKeyHashFn || hashKey\n return hashFn(queryKey)\n}\n\n/**\n * Default query & mutation keys hash function.\n * Hashes the value into a stable hash.\n */\nexport function hashKey(queryKey: QueryKey | MutationKey): string {\n return JSON.stringify(queryKey, (_, val) =>\n isPlainObject(val)\n ? Object.keys(val)\n .sort()\n .reduce((result, key) => {\n result[key] = val[key]\n return result\n }, {} as any)\n : val,\n )\n}\n\n/**\n * Checks if key `b` partially matches with key `a`.\n */\nexport function partialMatchKey(a: QueryKey, b: QueryKey): boolean\nexport function partialMatchKey(a: any, b: any): boolean {\n if (a === b) {\n return true\n }\n\n if (typeof a !== typeof b) {\n return false\n }\n\n if (a && b && typeof a === 'object' && typeof b === 'object') {\n return Object.keys(b).every((key) => partialMatchKey(a[key], b[key]))\n }\n\n return false\n}\n\n/**\n * This function returns `a` if `b` is deeply equal.\n * If not, it will replace any deeply equal children of `b` with those of `a`.\n * This can be used for structural sharing between JSON values for example.\n */\nexport function replaceEqualDeep<T>(a: unknown, b: T): T\nexport function replaceEqualDeep(a: any, b: any): any {\n if (a === b) {\n return a\n }\n\n const array = isPlainArray(a) && isPlainArray(b)\n\n if (array || (isPlainObject(a) && isPlainObject(b))) {\n const aItems = array ? a : Object.keys(a)\n const aSize = aItems.length\n const bItems = array ? b : Object.keys(b)\n const bSize = bItems.length\n const copy: any = array ? [] : {}\n\n let equalItems = 0\n\n for (let i = 0; i < bSize; i++) {\n const key = array ? i : bItems[i]\n if (\n ((!array && aItems.includes(key)) || array) &&\n a[key] === undefined &&\n b[key] === undefined\n ) {\n copy[key] = undefined\n equalItems++\n } else {\n copy[key] = replaceEqualDeep(a[key], b[key])\n if (copy[key] === a[key] && a[key] !== undefined) {\n equalItems++\n }\n }\n }\n\n return aSize === bSize && equalItems === aSize ? a : copy\n }\n\n return b\n}\n\n/**\n * Shallow compare objects.\n */\nexport function shallowEqualObjects<T extends Record<string, any>>(\n a: T,\n b: T | undefined,\n): boolean {\n if (!b || Object.keys(a).length !== Object.keys(b).length) {\n return false\n }\n\n for (const key in a) {\n if (a[key] !== b[key]) {\n return false\n }\n }\n\n return true\n}\n\nexport function isPlainArray(value: unknown) {\n return Array.isArray(value) && value.length === Object.keys(value).length\n}\n\n// Copied from: https://github.com/jonschlinkert/is-plain-object\n// eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\nexport function isPlainObject(o: any): o is Object {\n if (!hasObjectPrototype(o)) {\n return false\n }\n\n // If has no constructor\n const ctor = o.constructor\n if (ctor === undefined) {\n return true\n }\n\n // If has modified prototype\n const prot = ctor.prototype\n if (!hasObjectPrototype(prot)) {\n return false\n }\n\n // If constructor does not have an Object-specific method\n if (!prot.hasOwnProperty('isPrototypeOf')) {\n return false\n }\n\n // Handles Objects created by Object.create(<arbitrary prototype>)\n if (Object.getPrototypeOf(o) !== Object.prototype) {\n return false\n }\n\n // Most likely a plain Object\n return true\n}\n\nfunction hasObjectPrototype(o: any): boolean {\n return Object.prototype.toString.call(o) === '[object Object]'\n}\n\nexport function sleep(timeout: number): Promise<void> {\n return new Promise((resolve) => {\n setTimeout(resolve, timeout)\n })\n}\n\nexport function replaceData<\n TData,\n TOptions extends QueryOptions<any, any, any, any>,\n>(prevData: TData | undefined, data: TData, options: TOptions): TData {\n if (typeof options.structuralSharing === 'function') {\n return options.structuralSharing(prevData, data) as TData\n } else if (options.structuralSharing !== false) {\n if (process.env.NODE_ENV !== 'production') {\n try {\n return replaceEqualDeep(prevData, data)\n } catch (error) {\n console.error(\n `Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${options.queryHash}]: ${error}`,\n )\n\n // Prevent the replaceEqualDeep from being called again down below.\n throw error\n }\n }\n // Structurally share data between prev and new data if needed\n return replaceEqualDeep(prevData, data)\n }\n return data\n}\n\nexport function keepPreviousData<T>(\n previousData: T | undefined,\n): T | undefined {\n return previousData\n}\n\nexport function addToEnd<T>(items: Array<T>, item: T, max = 0): Array<T> {\n const newItems = [...items, item]\n return max && newItems.length > max ? newItems.slice(1) : newItems\n}\n\nexport function addToStart<T>(items: Array<T>, item: T, max = 0): Array<T> {\n const newItems = [item, ...items]\n return max && newItems.length > max ? newItems.slice(0, -1) : newItems\n}\n\nexport const skipToken = Symbol()\nexport type SkipToken = typeof skipToken\n\nexport function ensureQueryFn<\n TQueryFnData = unknown,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: {\n queryFn?: QueryFunction<TQueryFnData, TQueryKey> | SkipToken\n queryHash?: string\n },\n fetchOptions?: FetchOptions<TQueryFnData>,\n): QueryFunction<TQueryFnData, TQueryKey> {\n if (process.env.NODE_ENV !== 'production') {\n if (options.queryFn === skipToken) {\n console.error(\n `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${options.queryHash}'`,\n )\n }\n }\n\n // if we attempt to retry a fetch that was triggered from an initialPromise\n // when we don't have a queryFn yet, we can't retry, so we just return the already rejected initialPromise\n // if an observer has already mounted, we will be able to retry with that queryFn\n if (!options.queryFn && fetchOptions?.initialPromise) {\n return () => fetchOptions.initialPromise!\n }\n\n if (!options.queryFn || options.queryFn === skipToken) {\n return () =>\n Promise.reject(new Error(`Missing queryFn: '${options.queryHash}'`))\n }\n\n return options.queryFn\n}\n", "import { Subscribable } from './subscribable'\nimport { isServer } from './utils'\n\ntype Listener = (focused: boolean) => void\n\ntype SetupFn = (\n setFocused: (focused?: boolean) => void,\n) => (() => void) | undefined\n\nexport class FocusManager extends Subscribable<Listener> {\n #focused?: boolean\n #cleanup?: () => void\n\n #setup: SetupFn\n\n constructor() {\n super()\n this.#setup = (onFocus) => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!isServer && window.addEventListener) {\n const listener = () => onFocus()\n // Listen to visibilitychange\n window.addEventListener('visibilitychange', listener, false)\n\n return () => {\n // Be sure to unsubscribe if a new handler is set\n window.removeEventListener('visibilitychange', listener)\n }\n }\n return\n }\n }\n\n protected onSubscribe(): void {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup)\n }\n }\n\n protected onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.()\n this.#cleanup = undefined\n }\n }\n\n setEventListener(setup: SetupFn): void {\n this.#setup = setup\n this.#cleanup?.()\n this.#cleanup = setup((focused) => {\n if (typeof focused === 'boolean') {\n this.setFocused(focused)\n } else {\n this.onFocus()\n }\n })\n }\n\n setFocused(focused?: boolean): void {\n const changed = this.#focused !== focused\n if (changed) {\n this.#focused = focused\n this.onFocus()\n }\n }\n\n onFocus(): void {\n const isFocused = this.isFocused()\n this.listeners.forEach((listener) => {\n listener(isFocused)\n })\n }\n\n isFocused(): boolean {\n if (typeof this.#focused === 'boolean') {\n return this.#focused\n }\n\n // document global can be unavailable in react native\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n return globalThis.document?.visibilityState !== 'hidden'\n }\n}\n\nexport const focusManager = new FocusManager()\n", "import { Subscribable } from './subscribable'\nimport { isServer } from './utils'\n\ntype Listener = (online: boolean) => void\ntype SetupFn = (setOnline: Listener) => (() => void) | undefined\n\nexport class OnlineManager extends Subscribable<Listener> {\n #online = true\n #cleanup?: () => void\n\n #setup: SetupFn\n\n constructor() {\n super()\n this.#setup = (onOnline) => {\n // addEventListener does not exist in React Native, but window does\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!isServer && window.addEventListener) {\n const onlineListener = () => onOnline(true)\n const offlineListener = () => onOnline(false)\n // Listen to online\n window.addEventListener('online', onlineListener, false)\n window.addEventListener('offline', offlineListener, false)\n\n return () => {\n // Be sure to unsubscribe if a new handler is set\n window.removeEventListener('online', onlineListener)\n window.removeEventListener('offline', offlineListener)\n }\n }\n\n return\n }\n }\n\n protected onSubscribe(): void {\n if (!this.#cleanup) {\n this.setEventListener(this.#setup)\n }\n }\n\n protected onUnsubscribe() {\n if (!this.hasListeners()) {\n this.#cleanup?.()\n this.#cleanup = undefined\n }\n }\n\n setEventListener(setup: SetupFn): void {\n this.#setup = setup\n this.#cleanup?.()\n this.#cleanup = setup(this.setOnline.bind(this))\n }\n\n setOnline(online: boolean): void {\n const changed = this.#online !== online\n\n if (changed) {\n this.#online = online\n this.listeners.forEach((listener) => {\n listener(online)\n })\n }\n }\n\n isOnline(): boolean {\n return this.#online\n }\n}\n\nexport const onlineManager = new OnlineManager()\n", "/**\n * Thenable types which matches React's types for promises\n *\n * React seemingly uses `.status`, `.value` and `.reason` properties on a promises to optimistically unwrap data from promises\n *\n * @see https://github.com/facebook/react/blob/main/packages/shared/ReactTypes.js#L112-L138\n * @see https://github.com/facebook/react/blob/4f604941569d2e8947ce1460a0b2997e835f37b9/packages/react-debug-tools/src/ReactDebugHooks.js#L224-L227\n */\n\ninterface Fulfilled<T> {\n status: 'fulfilled'\n value: T\n}\ninterface Rejected {\n status: 'rejected'\n reason: unknown\n}\ninterface Pending<T> {\n status: 'pending'\n\n /**\n * Resolve the promise with a value.\n * Will remove the `resolve` and `reject` properties from the promise.\n */\n resolve: (value: T) => void\n /**\n * Reject the promise with a reason.\n * Will remove the `resolve` and `reject` properties from the promise.\n */\n reject: (reason: unknown) => void\n}\n\nexport type FulfilledThenable<T> = Promise<T> & Fulfilled<T>\nexport type RejectedThenable<T> = Promise<T> & Rejected\nexport type PendingThenable<T> = Promise<T> & Pending<T>\n\nexport type Thenable<T> =\n | FulfilledThenable<T>\n | RejectedThenable<T>\n | PendingThenable<T>\n\nexport function pendingThenable<T>(): PendingThenable<T> {\n let resolve: Pending<T>['resolve']\n let reject: Pending<T>['reject']\n // this could use `Promise.withResolvers()` in the future\n const thenable = new Promise((_resolve, _reject) => {\n resolve = _resolve\n reject = _reject\n }) as PendingThenable<T>\n\n thenable.status = 'pending'\n thenable.catch(() => {\n // prevent unhandled rejection errors\n })\n\n function finalize(data: Fulfilled<T> | Rejected) {\n Object.assign(thenable, data)\n\n // clear pending props props to avoid calling them twice\n delete (thenable as Partial<PendingThenable<T>>).resolve\n delete (thenable as Partial<PendingThenable<T>>).reject\n }\n\n thenable.resolve = (value) => {\n finalize({\n status: 'fulfilled',\n value,\n })\n\n resolve(value)\n }\n thenable.reject = (reason) => {\n finalize({\n status: 'rejected',\n reason,\n })\n\n reject(reason)\n }\n\n return thenable\n}\n", "import { focusManager } from './focusManager'\nimport { onlineManager } from './onlineManager'\nimport { pendingThenable } from './thenable'\nimport { isServer, sleep } from './utils'\nimport type { CancelOptions, DefaultError, NetworkMode } from './types'\n\n// TYPES\n\ninterface RetryerConfig<TData = unknown, TError = DefaultError> {\n fn: () => TData | Promise<TData>\n initialPromise?: Promise<TData>\n abort?: () => void\n onError?: (error: TError) => void\n onSuccess?: (data: TData) => void\n onFail?: (failureCount: number, error: TError) => void\n onPause?: () => void\n onContinue?: () => void\n retry?: RetryValue<TError>\n retryDelay?: RetryDelayValue<TError>\n networkMode: NetworkMode | undefined\n canRun: () => boolean\n}\n\nexport interface Retryer<TData = unknown> {\n promise: Promise<TData>\n cancel: (cancelOptions?: CancelOptions) => void\n continue: () => Promise<unknown>\n cancelRetry: () => void\n continueRetry: () => void\n canStart: () => boolean\n start: () => Promise<TData>\n}\n\nexport type RetryValue<TError> = boolean | number | ShouldRetryFunction<TError>\n\ntype ShouldRetryFunction<TError = DefaultError> = (\n failureCount: number,\n error: TError,\n) => boolean\n\nexport type RetryDelayValue<TError> = number | RetryDelayFunction<TError>\n\ntype RetryDelayFunction<TError = DefaultError> = (\n failureCount: number,\n error: TError,\n) => number\n\nfunction defaultRetryDelay(failureCount: number) {\n return Math.min(1000 * 2 ** failureCount, 30000)\n}\n\nexport function canFetch(networkMode: NetworkMode | undefined): boolean {\n return (networkMode ?? 'online') === 'online'\n ? onlineManager.isOnline()\n : true\n}\n\nexport class CancelledError extends Error {\n revert?: boolean\n silent?: boolean\n constructor(options?: CancelOptions) {\n super('CancelledError')\n this.revert = options?.revert\n this.silent = options?.silent\n }\n}\n\nexport function isCancelledError(value: any): value is CancelledError {\n return value instanceof CancelledError\n}\n\nexport function createRetryer<TData = unknown, TError = DefaultError>(\n config: RetryerConfig<TData, TError>,\n): Retryer<TData> {\n let isRetryCancelled = false\n let failureCount = 0\n let isResolved = false\n let continueFn: ((value?: unknown) => void) | undefined\n\n const thenable = pendingThenable<TData>()\n\n const cancel = (cancelOptions?: CancelOptions): void => {\n if (!isResolved) {\n reject(new CancelledError(cancelOptions))\n\n config.abort?.()\n }\n }\n const cancelRetry = () => {\n isRetryCancelled = true\n }\n\n const continueRetry = () => {\n isRetryCancelled = false\n }\n\n const canContinue = () =>\n focusManager.isFocused() &&\n (config.networkMode === 'always' || onlineManager.isOnline()) &&\n config.canRun()\n\n const canStart = () => canFetch(config.networkMode) && config.canRun()\n\n const resolve = (value: any) => {\n if (!isResolved) {\n isResolved = true\n config.onSuccess?.(value)\n continueFn?.()\n thenable.resolve(value)\n }\n }\n\n const reject = (value: any) => {\n if (!isResolved) {\n isResolved = true\n config.onError?.(value)\n continueFn?.()\n thenable.reject(value)\n }\n }\n\n const pause = () => {\n return new Promise((continueResolve) => {\n continueFn = (value) => {\n if (isResolved || canContinue()) {\n continueResolve(value)\n }\n }\n config.onPause?.()\n }).then(() => {\n continueFn = undefined\n if (!isResolved) {\n config.onContinue?.()\n }\n })\n }\n\n // Create loop function\n const run = () => {\n // Do nothing if already resolved\n if (isResolved) {\n return\n }\n\n let promiseOrValue: any\n\n // we can re-use config.initialPromise on the first call of run()\n const initialPromise =\n failureCount === 0 ? config.initialPromise : undefined\n\n // Execute query\n try {\n promiseOrValue = initialPromise ?? config.fn()\n } catch (error) {\n promiseOrValue = Promise.reject(error)\n }\n\n Promise.resolve(promiseOrValue)\n .then(resolve)\n .catch((error) => {\n // Stop if the fetch is already resolved\n if (isResolved) {\n return\n }\n\n // Do we need to retry the request?\n const retry = config.retry ?? (isServer ? 0 : 3)\n const retryDelay = config.retryDelay ?? defaultRetryDelay\n const delay =\n typeof retryDelay === 'function'\n ? retryDelay(failureCount, error)\n : retryDelay\n const shouldRetry =\n retry === true ||\n (typeof retry === 'number' && failureCount < retry) ||\n (typeof retry === 'function' && retry(failureCount, error))\n\n if (isRetryCancelled || !shouldRetry) {\n // We are done if the query does not need to be retried\n reject(error)\n return\n }\n\n failureCount++\n\n // Notify on fail\n config.onFail?.(failureCount, error)\n\n // Delay\n sleep(delay)\n // Pause if the document is not visible or when the device is offline\n .then(() => {\n return canContinue() ? undefined : pause()\n })\n .then(() => {\n if (isRetryCancelled) {\n reject(error)\n } else {\n run()\n }\n })\n })\n }\n\n return {\n promise: thenable,\n cancel,\n continue: () => {\n continueFn?.()\n return thenable\n },\n cancelRetry,\n continueRetry,\n canStart,\n start: () => {\n // Start loop\n if (canStart()) {\n run()\n } else {\n pause().then(run)\n }\n return thenable\n },\n }\n}\n", "// TYPES\n\ntype NotifyCallback = () => void\n\ntype NotifyFunction = (callback: () => void) => void\n\ntype BatchNotifyFunction = (callback: () => void) => void\n\ntype BatchCallsCallback<T extends Array<unknown>> = (...args: T) => void\n\ntype ScheduleFunction = (callback: () => void) => void\n\nexport const defaultScheduler: ScheduleFunction = (cb) => setTimeout(cb, 0)\n\nexport function createNotifyManager() {\n let queue: Array<NotifyCallback> = []\n let transactions = 0\n let notifyFn: NotifyFunction = (callback) => {\n callback()\n }\n let batchNotifyFn: BatchNotifyFunction = (callback: () => void) => {\n callback()\n }\n let scheduleFn = defaultScheduler\n\n const schedule = (callback: NotifyCallback): void => {\n if (transactions) {\n queue.push(callback)\n } else {\n scheduleFn(() => {\n notifyFn(callback)\n })\n }\n }\n const flush = (): void => {\n const originalQueue = queue\n queue = []\n if (originalQueue.length) {\n scheduleFn(() => {\n batchNotifyFn(() => {\n originalQueue.forEach((callback) => {\n notifyFn(callback)\n })\n })\n })\n }\n }\n\n return {\n batch: <T>(callback: () => T): T => {\n let result\n transactions++\n try {\n result = callback()\n } finally {\n transactions--\n if (!transactions) {\n flush()\n }\n }\n return result\n },\n /**\n * All calls to the wrapped function will be batched.\n */\n batchCalls: <T extends Array<unknown>>(\n callback: BatchCallsCallback<T>,\n ): BatchCallsCallback<T> => {\n return (...args) => {\n schedule(() => {\n callback(...args)\n })\n }\n },\n schedule,\n /**\n * Use this method to set a custom notify function.\n * This can be used to for example wrap notifications with `React.act` while running tests.\n */\n setNotifyFunction: (fn: NotifyFunction) => {\n notifyFn = fn\n },\n /**\n * Use this method to set a custom function to batch notifications together into a single tick.\n * By default React Query will use the batch function provided by ReactDOM or React Native.\n */\n setBatchNotifyFunction: (fn: BatchNotifyFunction) => {\n batchNotifyFn = fn\n },\n setScheduler: (fn: ScheduleFunction) => {\n scheduleFn = fn\n },\n } as const\n}\n\n// SINGLETON\nexport const notifyManager = createNotifyManager()\n", "import {\n ensureQueryFn,\n noop,\n replaceData,\n resolveEnabled,\n skipToken,\n timeUntilStale,\n} from './utils'\nimport { notifyManager } from './notifyManager'\nimport { canFetch, createRetryer, isCancelledError } from './retryer'\nimport { Removable } from './removable'\nimport type { QueryCache } from './queryCache'\nimport type { QueryClient } from './queryClient'\nimport type {\n CancelOptions,\n DefaultError,\n FetchStatus,\n InitialDataFunction,\n OmitKeyof,\n QueryFunction,\n QueryFunctionContext,\n QueryKey,\n QueryMeta,\n QueryOptions,\n QueryStatus,\n SetDataOptions,\n} from './types'\nimport type { QueryObserver } from './queryObserver'\nimport type { Retryer } from './retryer'\n\n// TYPES\n\ninterface QueryConfig<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey = QueryKey,\n> {\n client: QueryClient\n queryKey: TQueryKey\n queryHash: string\n options?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>\n defaultOptions?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>\n state?: QueryState<TData, TError>\n}\n\nexport interface QueryState<TData = unknown, TError = DefaultError> {\n data: TData | undefined\n dataUpdateCount: number\n dataUpdatedAt: number\n error: TError | null\n errorUpdateCount: number\n errorUpdatedAt: number\n fetchFailureCount: number\n fetchFailureReason: TError | null\n fetchMeta: FetchMeta | null\n isInvalidated: boolean\n status: QueryStatus\n fetchStatus: FetchStatus\n}\n\nexport interface FetchContext<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey = QueryKey,\n> {\n fetchFn: () => unknown | Promise<unknown>\n fetchOptions?: FetchOptions\n signal: AbortSignal\n options: QueryOptions<TQueryFnData, TError, TData, any>\n client: QueryClient\n queryKey: TQueryKey\n state: QueryState<TData, TError>\n}\n\nexport interface QueryBehavior<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> {\n onFetch: (\n context: FetchContext<TQueryFnData, TError, TData, TQueryKey>,\n query: Query,\n ) => void\n}\n\nexport type FetchDirection = 'forward' | 'backward'\n\nexport interface FetchMeta {\n fetchMore?: { direction: FetchDirection }\n}\n\nexport interface FetchOptions<TData = unknown> {\n cancelRefetch?: boolean\n meta?: FetchMeta\n initialPromise?: Promise<TData>\n}\n\ninterface FailedAction<TError> {\n type: 'failed'\n failureCount: number\n error: TError\n}\n\ninterface FetchAction {\n type: 'fetch'\n meta?: FetchMeta\n}\n\ninterface SuccessAction<TData> {\n data: TData | undefined\n type: 'success'\n dataUpdatedAt?: number\n manual?: boolean\n}\n\ninterface ErrorAction<TError> {\n type: 'error'\n error: TError\n}\n\ninterface InvalidateAction {\n type: 'invalidate'\n}\n\ninterface PauseAction {\n type: 'pause'\n}\n\ninterface ContinueAction {\n type: 'continue'\n}\n\ninterface SetStateAction<TData, TError> {\n type: 'setState'\n state: Partial<QueryState<TData, TError>>\n setStateOptions?: SetStateOptions\n}\n\nexport type Action<TData, TError> =\n | ContinueAction\n | ErrorAction<TError>\n | FailedAction<TError>\n | FetchAction\n | InvalidateAction\n | PauseAction\n | SetStateAction<TData, TError>\n | SuccessAction<TData>\n\nexport interface SetStateOptions {\n meta?: any\n}\n\n// CLASS\n\nexport class Query<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> extends Removable {\n queryKey: TQueryKey\n queryHash: string\n options!: QueryOptions<TQueryFnData, TError, TData, TQueryKey>\n state: QueryState<TData, TError>\n\n #initialState: QueryState<TData, TError>\n #revertState?: QueryState<TData, TError>\n #cache: QueryCache\n #client: QueryClient\n #retryer?: Retryer<TData>\n observers: Array<QueryObserver<any, any, any, any, any>>\n #defaultOptions?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>\n #abortSignalConsumed: boolean\n\n constructor(config: QueryConfig<TQueryFnData, TError, TData, TQueryKey>) {\n super()\n\n this.#abortSignalConsumed = false\n this.#defaultOptions = config.defaultOptions\n this.setOptions(config.options)\n this.observers = []\n this.#client = config.client\n this.#cache = this.#client.getQueryCache()\n this.queryKey = config.queryKey\n this.queryHash = config.queryHash\n this.#initialState = getDefaultState(this.options)\n this.state = config.state ?? this.#initialState\n this.scheduleGc()\n }\n get meta(): QueryMeta | undefined {\n return this.options.meta\n }\n\n get promise(): Promise<TData> | undefined {\n return this.#retryer?.promise\n }\n\n setOptions(\n options?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n ): void {\n this.options = { ...this.#defaultOptions, ...options }\n\n this.updateGcTime(this.options.gcTime)\n }\n\n protected optionalRemove() {\n if (!this.observers.length && this.state.fetchStatus === 'idle') {\n this.#cache.remove(this)\n }\n }\n\n setData(\n newData: TData,\n options?: SetDataOptions & { manual: boolean },\n ): TData {\n const data = replaceData(this.state.data, newData, this.options)\n\n // Set data and mark it as cached\n this.#dispatch({\n data,\n type: 'success',\n dataUpdatedAt: options?.updatedAt,\n manual: options?.manual,\n })\n\n return data\n }\n\n setState(\n state: Partial<QueryState<TData, TError>>,\n setStateOptions?: SetStateOptions,\n ): void {\n this.#dispatch({ type: 'setState', state, setStateOptions })\n }\n\n cancel(options?: CancelOptions): Promise<void> {\n const promise = this.#retryer?.promise\n this.#retryer?.cancel(options)\n return promise ? promise.then(noop).catch(noop) : Promise.resolve()\n }\n\n destroy(): void {\n super.destroy()\n\n this.cancel({ silent: true })\n }\n\n reset(): void {\n this.destroy()\n this.setState(this.#initialState)\n }\n\n isActive(): boolean {\n return this.observers.some(\n (observer) => resolveEnabled(observer.options.enabled, this) !== false,\n )\n }\n\n isDisabled(): boolean {\n if (this.getObserversCount() > 0) {\n return !this.isActive()\n }\n // if a query has no observers, it should still be considered disabled if it never attempted a fetch\n return (\n this.options.queryFn === skipToken ||\n this.state.dataUpdateCount + this.state.errorUpdateCount === 0\n )\n }\n\n isStale(): boolean {\n if (this.state.isInvalidated) {\n return true\n }\n\n if (this.getObserversCount() > 0) {\n return this.observers.some(\n (observer) => observer.getCurrentResult().isStale,\n )\n }\n\n return this.state.data === undefined\n }\n\n isStaleByTime(staleTime = 0): boolean {\n return (\n this.state.isInvalidated ||\n this.state.data === undefined ||\n !timeUntilStale(this.state.dataUpdatedAt, staleTime)\n )\n }\n\n onFocus(): void {\n const observer = this.observers.find((x) => x.shouldFetchOnWindowFocus())\n\n observer?.refetch({ cancelRefetch: false })\n\n // Continue fetch if currently paused\n this.#retryer?.continue()\n }\n\n onOnline(): void {\n const observer = this.observers.find((x) => x.shouldFetchOnReconnect())\n\n observer?.refetch({ cancelRefetch: false })\n\n // Continue fetch if currently paused\n this.#retryer?.continue()\n }\n\n addObserver(observer: QueryObserver<any, any, any, any, any>): void {\n if (!this.observers.includes(observer)) {\n this.observers.push(observer)\n\n // Stop the query from being garbage collected\n this.clearGcTimeout()\n\n this.#cache.notify({ type: 'observerAdded', query: this, observer })\n }\n }\n\n removeObserver(observer: QueryObserver<any, any, any, any, any>): void {\n if (this.observers.includes(observer)) {\n this.observers = this.observers.filter((x) => x !== observer)\n\n if (!this.observers.length) {\n // If the transport layer does not support cancellation\n // we'll let the query continue so the result can be cached\n if (this.#retryer) {\n if (this.#abortSignalConsumed) {\n this.#retryer.cancel({ revert: true })\n } else {\n this.#retryer.cancelRetry()\n }\n }\n\n this.scheduleGc()\n }\n\n this.#cache.notify({ type: 'observerRemoved', query: this, observer })\n }\n }\n\n getObserversCount(): number {\n return this.observers.length\n }\n\n invalidate(): void {\n if (!this.state.isInvalidated) {\n this.#dispatch({ type: 'invalidate' })\n }\n }\n\n fetch(\n options?: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n fetchOptions?: FetchOptions<TQueryFnData>,\n ): Promise<TData> {\n if (this.state.fetchStatus !== 'idle') {\n if (this.state.data !== undefined && fetchOptions?.cancelRefetch) {\n // Silently cancel current fetch if the user wants to cancel refetch\n this.cancel({ silent: true })\n } else if (this.#retryer) {\n // make sure that retries that were potentially cancelled due to unmounts can continue\n this.#retryer.continueRetry()\n // Return current promise if we are already fetching\n return this.#retryer.promise\n }\n }\n\n // Update config if passed, otherwise the config from the last execution is used\n if (options) {\n this.setOptions(options)\n }\n\n // Use the options from the first observer with a query function if no function is found.\n // This can happen when the query is hydrated or created with setQueryData.\n if (!this.options.queryFn) {\n const observer = this.observers.find((x) => x.options.queryFn)\n if (observer) {\n this.setOptions(observer.options)\n }\n }\n\n if (process.env.NODE_ENV !== 'production') {\n if (!Array.isArray(this.options.queryKey)) {\n console.error(\n `As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`,\n )\n }\n }\n\n const abortController = new AbortController()\n\n // Adds an enumerable signal property to the object that\n // which sets abortSignalConsumed to true when the signal\n // is read.\n const addSignalProperty = (object: unknown) => {\n Object.defineProperty(object, 'signal', {\n enumerable: true,\n get: () => {\n this.#abortSignalConsumed = true\n return abortController.signal\n },\n })\n }\n\n // Create fetch function\n const fetchFn = () => {\n const queryFn = ensureQueryFn(this.options, fetchOptions)\n\n // Create query function context\n const queryFnContext: OmitKeyof<\n QueryFunctionContext<TQueryKey>,\n 'signal'\n > = {\n client: this.#client,\n queryKey: this.queryKey,\n meta: this.meta,\n }\n\n addSignalProperty(queryFnContext)\n\n this.#abortSignalConsumed = false\n if (this.options.persister) {\n return this.options.persister(\n queryFn as QueryFunction<any>,\n queryFnContext as QueryFunctionContext<TQueryKey>,\n this as unknown as Query,\n )\n }\n\n return queryFn(queryFnContext as QueryFunctionContext<TQueryKey>)\n }\n\n // Trigger behavior hook\n const context: OmitKeyof<\n FetchContext<TQueryFnData, TError, TData, TQueryKey>,\n 'signal'\n > = {\n fetchOptions,\n options: this.options,\n queryKey: this.queryKey,\n client: this.#client,\n state: this.state,\n fetchFn,\n }\n\n addSignalProperty(context)\n\n this.options.behavior?.onFetch(\n context as FetchContext<TQueryFnData, TError, TData, TQueryKey>,\n this as unknown as Query,\n )\n\n // Store state in case the current fetch needs to be reverted\n this.#revertState = this.state\n\n // Set to fetching state if not already in it\n if (\n this.state.fetchStatus === 'idle' ||\n this.state.fetchMeta !== context.fetchOptions?.meta\n ) {\n this.#dispatch({ type: 'fetch', meta: context.fetchOptions?.meta })\n }\n\n const onError = (error: TError | { silent?: boolean }) => {\n // Optimistically update state if needed\n if (!(isCancelledError(error) && error.silent)) {\n this.#dispatch({\n type: 'error',\n error: error as TError,\n })\n }\n\n if (!isCancelledError(error)) {\n // Notify cache callback\n this.#cache.config.onError?.(\n error as any,\n this as Query<any, any, any, any>,\n )\n this.#cache.config.onSettled?.(\n this.state.data,\n error as any,\n this as Query<any, any, any, any>,\n )\n }\n\n // Schedule query gc after fetching\n this.scheduleGc()\n }\n\n // Try to fetch the data\n this.#retryer = createRetryer({\n initialPromise: fetchOptions?.initialPromise as\n | Promise<TData>\n | undefined,\n fn: context.fetchFn as () => Promise<TData>,\n abort: abortController.abort.bind(abortController),\n onSuccess: (data) => {\n if (data === undefined) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(\n `Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`,\n )\n }\n onError(new Error(`${this.queryHash} data is undefined`) as any)\n return\n }\n\n try {\n this.setData(data)\n } catch (error) {\n onError(error as TError)\n return\n }\n\n // Notify cache callback\n this.#cache.config.onSuccess?.(data, this as Query<any, any, any, any>)\n this.#cache.config.onSettled?.(\n data,\n this.state.error as any,\n this as Query<any, any, any, any>,\n )\n\n // Schedule query gc after fetching\n this.scheduleGc()\n },\n onError,\n onFail: (failureCount, error) => {\n this.#dispatch({ type: 'failed', failureCount, error })\n },\n onPause: () => {\n this.#dispatch({ type: 'pause' })\n },\n onContinue: () => {\n this.#dispatch({ type: 'continue' })\n },\n retry: context.options.retry,\n retryDelay: context.options.retryDelay,\n networkMode: context.options.networkMode,\n canRun: () => true,\n })\n\n return this.#retryer.start()\n }\n\n #dispatch(action: Action<TData, TError>): void {\n const reducer = (\n state: QueryState<TData, TError>,\n ): QueryState<TData, TError> => {\n switch (action.type) {\n case 'failed':\n return {\n ...state,\n fetchFailureCount: action.failureCount,\n fetchFailureReason: action.error,\n }\n case 'pause':\n return {\n ...state,\n fetchStatus: 'paused',\n }\n case 'continue':\n return {\n ...state,\n fetchStatus: 'fetching',\n }\n case 'fetch':\n return {\n ...state,\n ...fetchState(state.data, this.options),\n fetchMeta: action.meta ?? null,\n }\n case 'success':\n return {\n ...state,\n data: action.data,\n dataUpdateCount: state.dataUpdateCount + 1,\n dataUpdatedAt: action.dataUpdatedAt ?? Date.now(),\n error: null,\n isInvalidated: false,\n status: 'success',\n ...(!action.manual && {\n fetchStatus: 'idle',\n fetchFailureCount: 0,\n fetchFailureReason: null,\n }),\n }\n case 'error':\n const error = action.error\n\n if (isCancelledError(error) && error.revert && this.#revertState) {\n return { ...this.#revertState, fetchStatus: 'idle' }\n }\n\n return {\n ...state,\n error,\n errorUpdateCount: state.errorUpdateCount + 1,\n errorUpdatedAt: Date.now(),\n fetchFailureCount: state.fetchFailureCount + 1,\n fetchFailureReason: error,\n fetchStatus: 'idle',\n status: 'error',\n }\n case 'invalidate':\n return {\n ...state,\n isInvalidated: true,\n }\n case 'setState':\n return {\n ...state,\n ...action.state,\n }\n }\n }\n\n this.state = reducer(this.state)\n\n notifyManager.batch(() => {\n this.observers.forEach((observer) => {\n observer.onQueryUpdate()\n })\n\n this.#cache.notify({ query: this, type: 'updated', action })\n })\n }\n}\n\nexport function fetchState<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey,\n>(\n data: TData | undefined,\n options: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n) {\n return {\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchStatus: canFetch(options.networkMode) ? 'fetching' : 'paused',\n ...(data === undefined &&\n ({\n error: null,\n status: 'pending',\n } as const)),\n } as const\n}\n\nfunction getDefaultState<\n TQueryFnData,\n TError,\n TData,\n TQueryKey extends QueryKey,\n>(\n options: QueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n): QueryState<TData, TError> {\n const data =\n typeof options.initialData === 'function'\n ? (options.initialData as InitialDataFunction<TData>)()\n : options.initialData\n\n const hasData = data !== undefined\n\n const initialDataUpdatedAt = hasData\n ? typeof options.initialDataUpdatedAt === 'function'\n ? (options.initialDataUpdatedAt as () => number | undefined)()\n : options.initialDataUpdatedAt\n : 0\n\n return {\n data,\n dataUpdateCount: 0,\n dataUpdatedAt: hasData ? (initialDataUpdatedAt ?? Date.now()) : 0,\n error: null,\n errorUpdateCount: 0,\n errorUpdatedAt: 0,\n fetchFailureCount: 0,\n fetchFailureReason: null,\n fetchMeta: null,\n isInvalidated: false,\n status: hasData ? 'success' : 'pending',\n fetchStatus: 'idle',\n }\n}\n", "import { notifyManager } from './notifyManager'\nimport { Removable } from './removable'\nimport { createRetryer } from './retryer'\nimport type {\n DefaultError,\n MutationMeta,\n MutationOptions,\n MutationStatus,\n} from './types'\nimport type { MutationCache } from './mutationCache'\nimport type { MutationObserver } from './mutationObserver'\nimport type { Retryer } from './retryer'\n\n// TYPES\n\ninterface MutationConfig<TData, TError, TVariables, TContext> {\n mutationId: number\n mutationCache: MutationCache\n options: MutationOptions<TData, TError, TVariables, TContext>\n state?: MutationState<TData, TError, TVariables, TContext>\n}\n\nexport interface MutationState<\n TData = unknown,\n TError = DefaultError,\n TVariables = unknown,\n TContext = unknown,\n> {\n context: TContext | undefined\n data: TData | undefined\n error: TError | null\n failureCount: number\n failureReason: TError | null\n isPaused: boolean\n status: MutationStatus\n variables: TVariables | undefined\n submittedAt: number\n}\n\ninterface FailedAction<TError> {\n type: 'failed'\n failureCount: number\n error: TError | null\n}\n\ninterface PendingAction<TVariables, TContext> {\n type: 'pending'\n isPaused: boolean\n variables?: TVariables\n context?: TContext\n}\n\ninterface SuccessAction<TData> {\n type: 'success'\n data: TData\n}\n\ninterface ErrorAction<TError> {\n type: 'error'\n error: TError\n}\n\ninterface PauseAction {\n type: 'pause'\n}\n\ninterface ContinueAction {\n type: 'continue'\n}\n\nexport type Action<TData, TError, TVariables, TContext> =\n | ContinueAction\n | ErrorAction<TError>\n | FailedAction<TError>\n | PendingAction<TVariables, TContext>\n | PauseAction\n | SuccessAction<TData>\n\n// CLASS\n\nexport class Mutation<\n TData = unknown,\n TError = DefaultError,\n TVariables = unknown,\n TContext = unknown,\n> extends Removable {\n state: MutationState<TData, TError, TVariables, TContext>\n options!: MutationOptions<TData, TError, TVariables, TContext>\n readonly mutationId: number\n\n #observers: Array<MutationObserver<TData, TError, TVariables, TContext>>\n #mutationCache: MutationCache\n #retryer?: Retryer<TData>\n\n constructor(config: MutationConfig<TData, TError, TVariables, TContext>) {\n super()\n\n this.mutationId = config.mutationId\n this.#mutationCache = config.mutationCache\n this.#observers = []\n this.state = config.state || getDefaultState()\n\n this.setOptions(config.options)\n this.scheduleGc()\n }\n\n setOptions(\n options: MutationOptions<TData, TError, TVariables, TContext>,\n ): void {\n this.options = options\n\n this.updateGcTime(this.options.gcTime)\n }\n\n get meta(): MutationMeta | undefined {\n return this.options.meta\n }\n\n addObserver(observer: MutationObserver<any, any, any, any>): void {\n if (!this.#observers.includes(observer)) {\n this.#observers.push(observer)\n\n // Stop the mutation from being garbage collected\n this.clearGcTimeout()\n\n this.#mutationCache.notify({\n type: 'observerAdded',\n mutation: this,\n observer,\n })\n }\n }\n\n removeObserver(observer: MutationObserver<any, any, any, any>): void {\n this.#observers = this.#observers.filter((x) => x !== observer)\n\n this.scheduleGc()\n\n this.#mutationCache.notify({\n type: 'observerRemoved',\n mutation: this,\n observer,\n })\n }\n\n protected optionalRemove() {\n if (!this.#observers.length) {\n if (this.state.status === 'pending') {\n this.scheduleGc()\n } else {\n this.#mutationCache.remove(this)\n }\n }\n }\n\n continue(): Promise<unknown> {\n return (\n this.#retryer?.continue() ??\n // continuing a mutation assumes that variables are set, mutation must have been dehydrated before\n this.execute(this.state.variables!)\n )\n }\n\n async execute(variables: TVariables): Promise<TData> {\n const onContinue = () => {\n this.#dispatch({ type: 'continue' })\n }\n\n this.#retryer = createRetryer({\n fn: () => {\n if (!this.options.mutationFn) {\n return Promise.reject(new Error('No mutationFn found'))\n }\n return this.options.mutationFn(variables)\n },\n onFail: (failureCount, error) => {\n this.#dispatch({ type: 'failed', failureCount, error })\n },\n onPause: () => {\n this.#dispatch({ type: 'pause' })\n },\n onContinue,\n retry: this.options.retry ?? 0,\n retryDelay: this.options.retryDelay,\n networkMode: this.options.networkMode,\n canRun: () => this.#mutationCache.canRun(this),\n })\n\n const restored = this.state.status === 'pending'\n const isPaused = !this.#retryer.canStart()\n\n try {\n if (restored) {\n // Dispatch continue action to unpause restored mutation\n onContinue()\n } else {\n this.#dispatch({ type: 'pending', variables, isPaused })\n // Notify cache callback\n await this.#mutationCache.config.onMutate?.(\n variables,\n this as Mutation<unknown, unknown, unknown, unknown>,\n )\n const context = await this.options.onMutate?.(variables)\n if (context !== this.state.context) {\n this.#dispatch({\n type: 'pending',\n context,\n variables,\n isPaused,\n })\n }\n }\n const data = await this.#retryer.start()\n\n // Notify cache callback\n await this.#mutationCache.config.onSuccess?.(\n data,\n variables,\n this.state.context,\n this as Mutation<unknown, unknown, unknown, unknown>,\n )\n\n await this.options.onSuccess?.(data, variables, this.state.context!)\n\n // Notify cache callback\n await this.#mutationCache.config.onSettled?.(\n data,\n null,\n this.state.variables,\n this.state.context,\n this as Mutation<unknown, unknown, unknown, unknown>,\n )\n\n await this.options.onSettled?.(data, null, variables, this.state.context)\n\n this.#dispatch({ type: 'success', data })\n return data\n } catch (error) {\n try {\n // Notify cache callback\n await this.#mutationCache.config.onError?.(\n error as any,\n variables,\n this.state.context,\n this as Mutation<unknown, unknown, unknown, unknown>,\n )\n\n await this.options.onError?.(\n error as TError,\n variables,\n this.state.context,\n )\n\n // Notify cache callback\n await this.#mutationCache.config.onSettled?.(\n undefined,\n error as any,\n this.state.variables,\n this.state.context,\n this as Mutation<unknown, unknown, unknown, unknown>,\n )\n\n await this.options.onSettled?.(\n undefined,\n error as TError,\n variables,\n this.state.context,\n )\n throw error\n } finally {\n this.#dispatch({ type: 'error', error: error as TError })\n }\n } finally {\n this.#mutationCache.runNext(this)\n }\n }\n\n #dispatch(action: Action<TData, TError, TVariables, TContext>): void {\n const reducer = (\n state: MutationState<TData, TError, TVariables, TContext>,\n ): MutationState<TData, TError, TVariables, TContext> => {\n switch (action.type) {\n case 'failed':\n return {\n ...state,\n failureCount: action.failureCount,\n failureReason: action.error,\n }\n case 'pause':\n return {\n ...state,\n isPaused: true,\n }\n case 'continue':\n return {\n ...state,\n isPaused: false,\n }\n case 'pending':\n return {\n ...state,\n context: action.context,\n data: undefined,\n failureCount: 0,\n failureReason: null,\n error: null,\n isPaused: action.isPaused,\n status: 'pending',\n variables: action.variables,\n submittedAt: Date.now(),\n }\n case 'success':\n return {\n ...state,\n data: action.data,\n failureCount: 0,\n failureReason: null,\n error: null,\n status: 'success',\n isPaused: false,\n }\n case 'error':\n return {\n ...state,\n data: undefined,\n error: action.error,\n failureCount: state.failureCount + 1,\n failureReason: action.error,\n isPaused: false,\n status: 'error',\n }\n }\n }\n this.state = reducer(this.state)\n\n notifyManager.batch(() => {\n this.#observers.forEach((observer) => {\n observer.onMutationUpdate(action)\n })\n this.#mutationCache.notify({\n mutation: this,\n type: 'updated',\n action,\n })\n })\n }\n}\n\nexport function getDefaultState<\n TData,\n TError,\n TVariables,\n TContext,\n>(): MutationState<TData, TError, TVariables, TContext> {\n return {\n context: undefined,\n data: undefined,\n error: null,\n failureCount: 0,\n failureReason: null,\n isPaused: false,\n status: 'idle',\n variables: undefined,\n submittedAt: 0,\n }\n}\n", "import { focusManager } from './focusManager'\nimport { notifyManager } from './notifyManager'\nimport { fetchState } from './query'\nimport { Subscribable } from './subscribable'\nimport { pendingThenable } from './thenable'\nimport {\n isServer,\n isValidTimeout,\n noop,\n replaceData,\n resolveEnabled,\n resolveStaleTime,\n shallowEqualObjects,\n timeUntilStale,\n} from './utils'\nimport type { FetchOptions, Query, QueryState } from './query'\nimport type { QueryClient } from './queryClient'\nimport type { PendingThenable, Thenable } from './thenable'\nimport type {\n DefaultError,\n DefaultedQueryObserverOptions,\n PlaceholderDataFunction,\n QueryKey,\n QueryObserverBaseResult,\n QueryObserverOptions,\n QueryObserverResult,\n QueryOptions,\n RefetchOptions,\n} from './types'\n\ntype QueryObserverListener<TData, TError> = (\n result: QueryObserverResult<TData, TError>,\n) => void\n\ninterface ObserverFetchOptions extends FetchOptions {\n throwOnError?: boolean\n}\n\nexport class QueryObserver<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> extends Subscribable<QueryObserverListener<TData, TError>> {\n #client: QueryClient\n #currentQuery: Query<TQueryFnData, TError, TQueryData, TQueryKey> = undefined!\n #currentQueryInitialState: QueryState<TQueryData, TError> = undefined!\n #currentResult: QueryObserverResult<TData, TError> = undefined!\n #currentResultState?: QueryState<TQueryData, TError>\n #currentResultOptions?: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >\n #currentThenable: Thenable<TData>\n #selectError: TError | null\n #selectFn?: (data: TQueryData) => TData\n #selectResult?: TData\n // This property keeps track of the last query with defined data.\n // It will be used to pass the previous data and query to the placeholder function between renders.\n #lastQueryWithDefinedData?: Query<TQueryFnData, TError, TQueryData, TQueryKey>\n #staleTimeoutId?: ReturnType<typeof setTimeout>\n #refetchIntervalId?: ReturnType<typeof setInterval>\n #currentRefetchInterval?: number | false\n #trackedProps = new Set<keyof QueryObserverResult>()\n\n constructor(\n client: QueryClient,\n public options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ) {\n super()\n\n this.#client = client\n this.#selectError = null\n this.#currentThenable = pendingThenable()\n if (!this.options.experimental_prefetchInRender) {\n this.#currentThenable.reject(\n new Error('experimental_prefetchInRender feature flag is not enabled'),\n )\n }\n\n this.bindMethods()\n this.setOptions(options)\n }\n\n protected bindMethods(): void {\n this.refetch = this.refetch.bind(this)\n }\n\n protected onSubscribe(): void {\n if (this.listeners.size === 1) {\n this.#currentQuery.addObserver(this)\n\n if (shouldFetchOnMount(this.#currentQuery, this.options)) {\n this.#executeFetch()\n } else {\n this.updateResult()\n }\n\n this.#updateTimers()\n }\n }\n\n protected onUnsubscribe(): void {\n if (!this.hasListeners()) {\n this.destroy()\n }\n }\n\n shouldFetchOnReconnect(): boolean {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnReconnect,\n )\n }\n\n shouldFetchOnWindowFocus(): boolean {\n return shouldFetchOn(\n this.#currentQuery,\n this.options,\n this.options.refetchOnWindowFocus,\n )\n }\n\n destroy(): void {\n this.listeners = new Set()\n this.#clearStaleTimeout()\n this.#clearRefetchInterval()\n this.#currentQuery.removeObserver(this)\n }\n\n setOptions(\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): void {\n const prevOptions = this.options\n const prevQuery = this.#currentQuery\n\n this.options = this.#client.defaultQueryOptions(options)\n\n if (\n this.options.enabled !== undefined &&\n typeof this.options.enabled !== 'boolean' &&\n typeof this.options.enabled !== 'function' &&\n typeof resolveEnabled(this.options.enabled, this.#currentQuery) !==\n 'boolean'\n ) {\n throw new Error(\n 'Expected enabled to be a boolean or a callback that returns a boolean',\n )\n }\n\n this.#updateQuery()\n this.#currentQuery.setOptions(this.options)\n\n if (\n prevOptions._defaulted &&\n !shallowEqualObjects(this.options, prevOptions)\n ) {\n this.#client.getQueryCache().notify({\n type: 'observerOptionsUpdated',\n query: this.#currentQuery,\n observer: this,\n })\n }\n\n const mounted = this.hasListeners()\n\n // Fetch if there are subscribers\n if (\n mounted &&\n shouldFetchOptionally(\n this.#currentQuery,\n prevQuery,\n this.options,\n prevOptions,\n )\n ) {\n this.#executeFetch()\n }\n\n // Update result\n this.updateResult()\n\n // Update stale interval if needed\n if (\n mounted &&\n (this.#currentQuery !== prevQuery ||\n resolveEnabled(this.options.enabled, this.#currentQuery) !==\n resolveEnabled(prevOptions.enabled, this.#currentQuery) ||\n resolveStaleTime(this.options.staleTime, this.#currentQuery) !==\n resolveStaleTime(prevOptions.staleTime, this.#currentQuery))\n ) {\n this.#updateStaleTimeout()\n }\n\n const nextRefetchInterval = this.#computeRefetchInterval()\n\n // Update refetch interval if needed\n if (\n mounted &&\n (this.#currentQuery !== prevQuery ||\n resolveEnabled(this.options.enabled, this.#currentQuery) !==\n resolveEnabled(prevOptions.enabled, this.#currentQuery) ||\n nextRefetchInterval !== this.#currentRefetchInterval)\n ) {\n this.#updateRefetchInterval(nextRefetchInterval)\n }\n }\n\n getOptimisticResult(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): QueryObserverResult<TData, TError> {\n const query = this.#client.getQueryCache().build(this.#client, options)\n\n const result = this.createResult(query, options)\n\n if (shouldAssignObserverCurrentProperties(this, result)) {\n // this assigns the optimistic result to the current Observer\n // because if the query function changes, useQuery will be performing\n // an effect where it would fetch again.\n // When the fetch finishes, we perform a deep data cloning in order\n // to reuse objects references. This deep data clone is performed against\n // the `observer.currentResult.data` property\n // When QueryKey changes, we refresh the query and get new `optimistic`\n // result, while we leave the `observer.currentResult`, so when new data\n // arrives, it finds the old `observer.currentResult` which is related\n // to the old QueryKey. Which means that currentResult and selectData are\n // out of sync already.\n // To solve this, we move the cursor of the currentResult every time\n // an observer reads an optimistic value.\n\n // When keeping the previous data, the result doesn't change until new\n // data arrives.\n this.#currentResult = result\n this.#currentResultOptions = this.options\n this.#currentResultState = this.#currentQuery.state\n }\n return result\n }\n\n getCurrentResult(): QueryObserverResult<TData, TError> {\n return this.#currentResult\n }\n\n trackResult(\n result: QueryObserverResult<TData, TError>,\n onPropTracked?: (key: keyof QueryObserverResult) => void,\n ): QueryObserverResult<TData, TError> {\n const trackedResult = {} as QueryObserverResult<TData, TError>\n\n Object.keys(result).forEach((key) => {\n Object.defineProperty(trackedResult, key, {\n configurable: false,\n enumerable: true,\n get: () => {\n this.trackProp(key as keyof QueryObserverResult)\n onPropTracked?.(key as keyof QueryObserverResult)\n return result[key as keyof QueryObserverResult]\n },\n })\n })\n\n return trackedResult\n }\n\n trackProp(key: keyof QueryObserverResult) {\n this.#trackedProps.add(key)\n }\n\n getCurrentQuery(): Query<TQueryFnData, TError, TQueryData, TQueryKey> {\n return this.#currentQuery\n }\n\n refetch({ ...options }: RefetchOptions = {}): Promise<\n QueryObserverResult<TData, TError>\n > {\n return this.fetch({\n ...options,\n })\n }\n\n fetchOptimistic(\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): Promise<QueryObserverResult<TData, TError>> {\n const defaultedOptions = this.#client.defaultQueryOptions(options)\n\n const query = this.#client\n .getQueryCache()\n .build(this.#client, defaultedOptions)\n\n return query.fetch().then(() => this.createResult(query, defaultedOptions))\n }\n\n protected fetch(\n fetchOptions: ObserverFetchOptions,\n ): Promise<QueryObserverResult<TData, TError>> {\n return this.#executeFetch({\n ...fetchOptions,\n cancelRefetch: fetchOptions.cancelRefetch ?? true,\n }).then(() => {\n this.updateResult()\n return this.#currentResult\n })\n }\n\n #executeFetch(\n fetchOptions?: Omit<ObserverFetchOptions, 'initialPromise'>,\n ): Promise<TQueryData | undefined> {\n // Make sure we reference the latest query as the current one might have been removed\n this.#updateQuery()\n\n // Fetch\n let promise: Promise<TQueryData | undefined> = this.#currentQuery.fetch(\n this.options as QueryOptions<TQueryFnData, TError, TQueryData, TQueryKey>,\n fetchOptions,\n )\n\n if (!fetchOptions?.throwOnError) {\n promise = promise.catch(noop)\n }\n\n return promise\n }\n\n #updateStaleTimeout(): void {\n this.#clearStaleTimeout()\n const staleTime = resolveStaleTime(\n this.options.staleTime,\n this.#currentQuery,\n )\n\n if (isServer || this.#currentResult.isStale || !isValidTimeout(staleTime)) {\n return\n }\n\n const time = timeUntilStale(this.#currentResult.dataUpdatedAt, staleTime)\n\n // The timeout is sometimes triggered 1 ms before the stale time expiration.\n // To mitigate this issue we always add 1 ms to the timeout.\n const timeout = time + 1\n\n this.#staleTimeoutId = setTimeout(() => {\n if (!this.#currentResult.isStale) {\n this.updateResult()\n }\n }, timeout)\n }\n\n #computeRefetchInterval() {\n return (\n (typeof this.options.refetchInterval === 'function'\n ? this.options.refetchInterval(this.#currentQuery)\n : this.options.refetchInterval) ?? false\n )\n }\n\n #updateRefetchInterval(nextInterval: number | false): void {\n this.#clearRefetchInterval()\n\n this.#currentRefetchInterval = nextInterval\n\n if (\n isServer ||\n resolveEnabled(this.options.enabled, this.#currentQuery) === false ||\n !isValidTimeout(this.#currentRefetchInterval) ||\n this.#currentRefetchInterval === 0\n ) {\n return\n }\n\n this.#refetchIntervalId = setInterval(() => {\n if (\n this.options.refetchIntervalInBackground ||\n focusManager.isFocused()\n ) {\n this.#executeFetch()\n }\n }, this.#currentRefetchInterval)\n }\n\n #updateTimers(): void {\n this.#updateStaleTimeout()\n this.#updateRefetchInterval(this.#computeRefetchInterval())\n }\n\n #clearStaleTimeout(): void {\n if (this.#staleTimeoutId) {\n clearTimeout(this.#staleTimeoutId)\n this.#staleTimeoutId = undefined\n }\n }\n\n #clearRefetchInterval(): void {\n if (this.#refetchIntervalId) {\n clearInterval(this.#refetchIntervalId)\n this.#refetchIntervalId = undefined\n }\n }\n\n protected createResult(\n query: Query<TQueryFnData, TError, TQueryData, TQueryKey>,\n options: QueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n ): QueryObserverResult<TData, TError> {\n const prevQuery = this.#currentQuery\n const prevOptions = this.options\n const prevResult = this.#currentResult as\n | QueryObserverResult<TData, TError>\n | undefined\n const prevResultState = this.#currentResultState\n const prevResultOptions = this.#currentResultOptions\n const queryChange = query !== prevQuery\n const queryInitialState = queryChange\n ? query.state\n : this.#currentQueryInitialState\n\n const { state } = query\n let newState = { ...state }\n let isPlaceholderData = false\n let data: TData | undefined\n\n // Optimistically set result in fetching state if needed\n if (options._optimisticResults) {\n const mounted = this.hasListeners()\n\n const fetchOnMount = !mounted && shouldFetchOnMount(query, options)\n\n const fetchOptionally =\n mounted && shouldFetchOptionally(query, prevQuery, options, prevOptions)\n\n if (fetchOnMount || fetchOptionally) {\n newState = {\n ...newState,\n ...fetchState(state.data, query.options),\n }\n }\n if (options._optimisticResults === 'isRestoring') {\n newState.fetchStatus = 'idle'\n }\n }\n\n let { error, errorUpdatedAt, status } = newState\n\n // Per default, use query data\n data = newState.data as unknown as TData\n let skipSelect = false\n\n // use placeholderData if needed\n if (\n options.placeholderData !== undefined &&\n data === undefined &&\n status === 'pending'\n ) {\n let placeholderData\n\n // Memoize placeholder data\n if (\n prevResult?.isPlaceholderData &&\n options.placeholderData === prevResultOptions?.placeholderData\n ) {\n placeholderData = prevResult.data\n // we have to skip select when reading this memoization\n // because prevResult.data is already \"selected\"\n skipSelect = true\n } else {\n // compute placeholderData\n placeholderData =\n typeof options.placeholderData === 'function'\n ? (\n options.placeholderData as unknown as PlaceholderDataFunction<TQueryData>\n )(\n this.#lastQueryWithDefinedData?.state.data,\n this.#lastQueryWithDefinedData as any,\n )\n : options.placeholderData\n }\n\n if (placeholderData !== undefined) {\n status = 'success'\n data = replaceData(\n prevResult?.data,\n placeholderData as unknown,\n options,\n ) as TData\n isPlaceholderData = true\n }\n }\n\n // Select data if needed\n // this also runs placeholderData through the select function\n if (options.select && data !== undefined && !skipSelect) {\n // Memoize select result\n if (\n prevResult &&\n data === prevResultState?.data &&\n options.select === this.#selectFn\n ) {\n data = this.#selectResult\n } else {\n try {\n this.#selectFn = options.select\n data = options.select(data as any)\n data = replaceData(prevResult?.data, data, options)\n this.#selectResult = data\n this.#selectError = null\n } catch (selectError) {\n this.#selectError = selectError as TError\n }\n }\n }\n\n if (this.#selectError) {\n error = this.#selectError as any\n data = this.#selectResult\n errorUpdatedAt = Date.now()\n status = 'error'\n }\n\n const isFetching = newState.fetchStatus === 'fetching'\n const isPending = status === 'pending'\n const isError = status === 'error'\n\n const isLoading = isPending && isFetching\n const hasData = data !== undefined\n\n const result: QueryObserverBaseResult<TData, TError> = {\n status,\n fetchStatus: newState.fetchStatus,\n isPending,\n isSuccess: status === 'success',\n isError,\n isInitialLoading: isLoading,\n isLoading,\n data,\n dataUpdatedAt: newState.dataUpdatedAt,\n error,\n errorUpdatedAt,\n failureCount: newState.fetchFailureCount,\n failureReason: newState.fetchFailureReason,\n errorUpdateCount: newState.errorUpdateCount,\n isFetched: newState.dataUpdateCount > 0 || newState.errorUpdateCount > 0,\n isFetchedAfterMount:\n newState.dataUpdateCount > queryInitialState.dataUpdateCount ||\n newState.errorUpdateCount > queryInitialState.errorUpdateCount,\n isFetching,\n isRefetching: isFetching && !isPending,\n isLoadingError: isError && !hasData,\n isPaused: newState.fetchStatus === 'paused',\n isPlaceholderData,\n isRefetchError: isError && hasData,\n isStale: isStale(query, options),\n refetch: this.refetch,\n promise: this.#currentThenable,\n }\n\n const nextResult = result as QueryObserverResult<TData, TError>\n\n if (this.options.experimental_prefetchInRender) {\n const finalizeThenableIfPossible = (thenable: PendingThenable<TData>) => {\n if (nextResult.status === 'error') {\n thenable.reject(nextResult.error)\n } else if (nextResult.data !== undefined) {\n thenable.resolve(nextResult.data)\n }\n }\n\n /**\n * Create a new thenable and result promise when the results have changed\n */\n const recreateThenable = () => {\n const pending =\n (this.#currentThenable =\n nextResult.promise =\n pendingThenable())\n\n finalizeThenableIfPossible(pending)\n }\n\n const prevThenable = this.#currentThenable\n switch (prevThenable.status) {\n case 'pending':\n // Finalize the previous thenable if it was pending\n // and we are still observing the same query\n if (query.queryHash === prevQuery.queryHash) {\n finalizeThenableIfPossible(prevThenable)\n }\n break\n case 'fulfilled':\n if (\n nextResult.status === 'error' ||\n nextResult.data !== prevThenable.value\n ) {\n recreateThenable()\n }\n break\n case 'rejected':\n if (\n nextResult.status !== 'error' ||\n nextResult.error !== prevThenable.reason\n ) {\n recreateThenable()\n }\n break\n }\n }\n\n return nextResult\n }\n\n updateResult(): void {\n const prevResult = this.#currentResult as\n | QueryObserverResult<TData, TError>\n | undefined\n\n const nextResult = this.createResult(this.#currentQuery, this.options)\n\n this.#currentResultState = this.#currentQuery.state\n this.#currentResultOptions = this.options\n\n if (this.#currentResultState.data !== undefined) {\n this.#lastQueryWithDefinedData = this.#currentQuery\n }\n\n // Only notify and update result if something has changed\n if (shallowEqualObjects(nextResult, prevResult)) {\n return\n }\n\n this.#currentResult = nextResult\n\n const shouldNotifyListeners = (): boolean => {\n if (!prevResult) {\n return true\n }\n\n const { notifyOnChangeProps } = this.options\n const notifyOnChangePropsValue =\n typeof notifyOnChangeProps === 'function'\n ? notifyOnChangeProps()\n : notifyOnChangeProps\n\n if (\n notifyOnChangePropsValue === 'all' ||\n (!notifyOnChangePropsValue && !this.#trackedProps.size)\n ) {\n return true\n }\n\n const includedProps = new Set(\n notifyOnChangePropsValue ?? this.#trackedProps,\n )\n\n if (this.options.throwOnError) {\n includedProps.add('error')\n }\n\n return Object.keys(this.#currentResult).some((key) => {\n const typedKey = key as keyof QueryObserverResult\n const changed = this.#currentResult[typedKey] !== prevResult[typedKey]\n\n return changed && includedProps.has(typedKey)\n })\n }\n\n this.#notify({ listeners: shouldNotifyListeners() })\n }\n\n #updateQuery(): void {\n const query = this.#client.getQueryCache().build(this.#client, this.options)\n\n if (query === this.#currentQuery) {\n return\n }\n\n const prevQuery = this.#currentQuery as\n | Query<TQueryFnData, TError, TQueryData, TQueryKey>\n | undefined\n this.#currentQuery = query\n this.#currentQueryInitialState = query.state\n\n if (this.hasListeners()) {\n prevQuery?.removeObserver(this)\n query.addObserver(this)\n }\n }\n\n onQueryUpdate(): void {\n this.updateResult()\n\n if (this.hasListeners()) {\n this.#updateTimers()\n }\n }\n\n #notify(notifyOptions: { listeners: boolean }): void {\n notifyManager.batch(() => {\n // First, trigger the listeners\n if (notifyOptions.listeners) {\n this.listeners.forEach((listener) => {\n listener(this.#currentResult)\n })\n }\n\n // Then the cache listeners\n this.#client.getQueryCache().notify({\n query: this.#currentQuery,\n type: 'observerResultsUpdated',\n })\n })\n }\n}\n\nfunction shouldLoadOnMount(\n query: Query<any, any, any, any>,\n options: QueryObserverOptions<any, any, any, any>,\n): boolean {\n return (\n resolveEnabled(options.enabled, query) !== false &&\n query.state.data === undefined &&\n !(query.state.status === 'error' && options.retryOnMount === false)\n )\n}\n\nfunction shouldFetchOnMount(\n query: Query<any, any, any, any>,\n options: QueryObserverOptions<any, any, any, any, any>,\n): boolean {\n return (\n shouldLoadOnMount(query, options) ||\n (query.state.data !== undefined &&\n shouldFetchOn(query, options, options.refetchOnMount))\n )\n}\n\nfunction shouldFetchOn(\n query: Query<any, any, any, any>,\n options: QueryObserverOptions<any, any, any, any, any>,\n field: (typeof options)['refetchOnMount'] &\n (typeof options)['refetchOnWindowFocus'] &\n (typeof options)['refetchOnReconnect'],\n) {\n if (resolveEnabled(options.enabled, query) !== false) {\n const value = typeof field === 'function' ? field(query) : field\n\n return value === 'always' || (value !== false && isStale(query, options))\n }\n return false\n}\n\nfunction shouldFetchOptionally(\n query: Query<any, any, any, any>,\n prevQuery: Query<any, any, any, any>,\n options: QueryObserverOptions<any, any, any, any, any>,\n prevOptions: QueryObserverOptions<any, any, any, any, any>,\n): boolean {\n return (\n (query !== prevQuery ||\n resolveEnabled(prevOptions.enabled, query) === false) &&\n (!options.suspense || query.state.status !== 'error') &&\n isStale(query, options)\n )\n}\n\nfunction isStale(\n query: Query<any, any, any, any>,\n options: QueryObserverOptions<any, any, any, any, any>,\n): boolean {\n return (\n resolveEnabled(options.enabled, query) !== false &&\n query.isStaleByTime(resolveStaleTime(options.staleTime, query))\n )\n}\n\n// this function would decide if we will update the observer's 'current'\n// properties after an optimistic reading via getOptimisticResult\nfunction shouldAssignObserverCurrentProperties<\n TQueryFnData = unknown,\n TError = unknown,\n TData = TQueryFnData,\n TQueryData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n observer: QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>,\n optimisticResult: QueryObserverResult<TData, TError>,\n) {\n // if the newly created result isn't what the observer is holding as current,\n // then we'll need to update the properties as well\n if (!shallowEqualObjects(observer.getCurrentResult(), optimisticResult)) {\n return true\n }\n\n // basically, just keep previous properties if nothing changed\n return false\n}\n", "import { getDefaultState } from './mutation'\nimport { notifyManager } from './notifyManager'\nimport { Subscribable } from './subscribable'\nimport { hashKey, shallowEqualObjects } from './utils'\nimport type { QueryClient } from './queryClient'\nimport type {\n DefaultError,\n MutateOptions,\n MutationObserverOptions,\n MutationObserverResult,\n} from './types'\nimport type { Action, Mutation } from './mutation'\n\n// TYPES\n\ntype MutationObserverListener<TData, TError, TVariables, TContext> = (\n result: MutationObserverResult<TData, TError, TVariables, TContext>,\n) => void\n\n// CLASS\n\nexport class MutationObserver<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TContext = unknown,\n> extends Subscribable<\n MutationObserverListener<TData, TError, TVariables, TContext>\n> {\n options!: MutationObserverOptions<TData, TError, TVariables, TContext>\n\n #client: QueryClient\n #currentResult: MutationObserverResult<TData, TError, TVariables, TContext> =\n undefined!\n #currentMutation?: Mutation<TData, TError, TVariables, TContext>\n #mutateOptions?: MutateOptions<TData, TError, TVariables, TContext>\n\n constructor(\n client: QueryClient,\n options: MutationObserverOptions<TData, TError, TVariables, TContext>,\n ) {\n super()\n\n this.#client = client\n this.setOptions(options)\n this.bindMethods()\n this.#updateResult()\n }\n\n protected bindMethods(): void {\n this.mutate = this.mutate.bind(this)\n this.reset = this.reset.bind(this)\n }\n\n setOptions(\n options: MutationObserverOptions<TData, TError, TVariables, TContext>,\n ) {\n const prevOptions = this.options as\n | MutationObserverOptions<TData, TError, TVariables, TContext>\n | undefined\n this.options = this.#client.defaultMutationOptions(options)\n if (!shallowEqualObjects(this.options, prevOptions)) {\n this.#client.getMutationCache().notify({\n type: 'observerOptionsUpdated',\n mutation: this.#currentMutation,\n observer: this,\n })\n }\n\n if (\n prevOptions?.mutationKey &&\n this.options.mutationKey &&\n hashKey(prevOptions.mutationKey) !== hashKey(this.options.mutationKey)\n ) {\n this.reset()\n } else if (this.#currentMutation?.state.status === 'pending') {\n this.#currentMutation.setOptions(this.options)\n }\n }\n\n protected onUnsubscribe(): void {\n if (!this.hasListeners()) {\n this.#currentMutation?.removeObserver(this)\n }\n }\n\n onMutationUpdate(action: Action<TData, TError, TVariables, TContext>): void {\n this.#updateResult()\n\n this.#notify(action)\n }\n\n getCurrentResult(): MutationObserverResult<\n TData,\n TError,\n TVariables,\n TContext\n > {\n return this.#currentResult\n }\n\n reset(): void {\n // reset needs to remove the observer from the mutation because there is no way to \"get it back\"\n // another mutate call will yield a new mutation!\n this.#currentMutation?.removeObserver(this)\n this.#currentMutation = undefined\n this.#updateResult()\n this.#notify()\n }\n\n mutate(\n variables: TVariables,\n options?: MutateOptions<TData, TError, TVariables, TContext>,\n ): Promise<TData> {\n this.#mutateOptions = options\n\n this.#currentMutation?.removeObserver(this)\n\n this.#currentMutation = this.#client\n .getMutationCache()\n .build(this.#client, this.options)\n\n this.#currentMutation.addObserver(this)\n\n return this.#currentMutation.execute(variables)\n }\n\n #updateResult(): void {\n const state =\n this.#currentMutation?.state ??\n getDefaultState<TData, TError, TVariables, TContext>()\n\n this.#currentResult = {\n ...state,\n isPending: state.status === 'pending',\n isSuccess: state.status === 'success',\n isError: state.status === 'error',\n isIdle: state.status === 'idle',\n mutate: this.mutate,\n reset: this.reset,\n } as MutationObserverResult<TData, TError, TVariables, TContext>\n }\n\n #notify(action?: Action<TData, TError, TVariables, TContext>): void {\n notifyManager.batch(() => {\n // First trigger the mutate callbacks\n if (this.#mutateOptions && this.hasListeners()) {\n const variables = this.#currentResult.variables!\n const context = this.#currentResult.context\n\n if (action?.type === 'success') {\n this.#mutateOptions.onSuccess?.(action.data, variables, context!)\n this.#mutateOptions.onSettled?.(action.data, null, variables, context)\n } else if (action?.type === 'error') {\n this.#mutateOptions.onError?.(action.error, variables, context)\n this.#mutateOptions.onSettled?.(\n undefined,\n action.error,\n variables,\n context,\n )\n }\n }\n\n // Then trigger the listeners\n this.listeners.forEach((listener) => {\n listener(this.#currentResult)\n })\n })\n }\n}\n", "'use client'\nimport * as React from 'react'\n\nimport type { QueryClient } from '@tanstack/query-core'\n\nexport const QueryClientContext = React.createContext<QueryClient | undefined>(\n undefined,\n)\n\nexport const useQueryClient = (queryClient?: QueryClient) => {\n const client = React.useContext(QueryClientContext)\n\n if (queryClient) {\n return queryClient\n }\n\n if (!client) {\n throw new Error('No QueryClient set, use QueryClientProvider to set one')\n }\n\n return client\n}\n\nexport type QueryClientProviderProps = {\n client: QueryClient\n children?: React.ReactNode\n}\n\nexport const QueryClientProvider = ({\n client,\n children,\n}: QueryClientProviderProps): React.JSX.Element => {\n React.useEffect(() => {\n client.mount()\n return () => {\n client.unmount()\n }\n }, [client])\n\n return (\n <QueryClientContext.Provider value={client}>\n {children}\n </QueryClientContext.Provider>\n )\n}\n", "'use client'\nimport * as React from 'react'\n\nconst IsRestoringContext = React.createContext(false)\n\nexport const useIsRestoring = () => React.useContext(IsRestoringContext)\nexport const IsRestoringProvider = IsRestoringContext.Provider\n", "'use client'\nimport * as React from 'react'\n\n// CONTEXT\nexport type QueryErrorResetFunction = () => void\nexport type QueryErrorIsResetFunction = () => boolean\nexport type QueryErrorClearResetFunction = () => void\n\nexport interface QueryErrorResetBoundaryValue {\n clearReset: QueryErrorClearResetFunction\n isReset: QueryErrorIsResetFunction\n reset: QueryErrorResetFunction\n}\n\nfunction createValue(): QueryErrorResetBoundaryValue {\n let isReset = false\n return {\n clearReset: () => {\n isReset = false\n },\n reset: () => {\n isReset = true\n },\n isReset: () => {\n return isReset\n },\n }\n}\n\nconst QueryErrorResetBoundaryContext = React.createContext(createValue())\n\n// HOOK\n\nexport const useQueryErrorResetBoundary = () =>\n React.useContext(QueryErrorResetBoundaryContext)\n\n// COMPONENT\n\nexport type QueryErrorResetBoundaryFunction = (\n value: QueryErrorResetBoundaryValue,\n) => React.ReactNode\n\nexport interface QueryErrorResetBoundaryProps {\n children: QueryErrorResetBoundaryFunction | React.ReactNode\n}\n\nexport const QueryErrorResetBoundary = ({\n children,\n}: QueryErrorResetBoundaryProps) => {\n const [value] = React.useState(() => createValue())\n return (\n <QueryErrorResetBoundaryContext.Provider value={value}>\n {typeof children === 'function' ? children(value) : children}\n </QueryErrorResetBoundaryContext.Provider>\n )\n}\n", "'use client'\nimport * as React from 'react'\nimport { shouldThrowError } from './utils'\nimport type {\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserverResult,\n ThrowOnError,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const ensurePreventErrorBoundaryRetry = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n if (\n options.suspense ||\n options.throwOnError ||\n options.experimental_prefetchInRender\n ) {\n // Prevent retrying failed query if the error boundary has not been reset yet\n if (!errorResetBoundary.isReset()) {\n options.retryOnMount = false\n }\n }\n}\n\nexport const useClearResetErrorBoundary = (\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) => {\n React.useEffect(() => {\n errorResetBoundary.clearReset()\n }, [errorResetBoundary])\n}\n\nexport const getHasError = <\n TData,\n TError,\n TQueryFnData,\n TQueryData,\n TQueryKey extends QueryKey,\n>({\n result,\n errorResetBoundary,\n throwOnError,\n query,\n suspense,\n}: {\n result: QueryObserverResult<TData, TError>\n errorResetBoundary: QueryErrorResetBoundaryValue\n throwOnError: ThrowOnError<TQueryFnData, TError, TQueryData, TQueryKey>\n query: Query<TQueryFnData, TError, TQueryData, TQueryKey> | undefined\n suspense: boolean | undefined\n}) => {\n return (\n result.isError &&\n !errorResetBoundary.isReset() &&\n !result.isFetching &&\n query &&\n ((suspense && result.data === undefined) ||\n shouldThrowError(throwOnError, [result.error, query]))\n )\n}\n", "export function shouldThrowError<T extends (...args: Array<any>) => boolean>(\n throwError: boolean | T | undefined,\n params: Parameters<T>,\n): boolean {\n // Allow throwError function to override throwing behavior on a per-error basis\n if (typeof throwError === 'function') {\n return throwError(...params)\n }\n\n return !!throwError\n}\n\nexport function noop(): void {}\n", "import type {\n DefaultError,\n DefaultedQueryObserverOptions,\n Query,\n QueryKey,\n QueryObserver,\n QueryObserverResult,\n} from '@tanstack/query-core'\nimport type { QueryErrorResetBoundaryValue } from './QueryErrorResetBoundary'\n\nexport const defaultThrowOnError = <\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n _error: TError,\n query: Query<TQueryFnData, TError, TData, TQueryKey>,\n) => query.state.data === undefined\n\nexport const ensureSuspenseTimers = (\n defaultedOptions: DefaultedQueryObserverOptions<any, any, any, any, any>,\n) => {\n const originalStaleTime = defaultedOptions.staleTime\n\n if (defaultedOptions.suspense) {\n // Handle staleTime to ensure minimum 1000ms in Suspense mode\n // This prevents unnecessary refetching when components remount after suspending\n defaultedOptions.staleTime =\n typeof originalStaleTime === 'function'\n ? (...args) => Math.max(originalStaleTime(...args), 1000)\n : Math.max(originalStaleTime ?? 1000, 1000)\n\n if (typeof defaultedOptions.gcTime === 'number') {\n defaultedOptions.gcTime = Math.max(defaultedOptions.gcTime, 1000)\n }\n }\n}\n\nexport const willFetch = (\n result: QueryObserverResult<any, any>,\n isRestoring: boolean,\n) => result.isLoading && result.isFetching && !isRestoring\n\nexport const shouldSuspend = (\n defaultedOptions:\n | DefaultedQueryObserverOptions<any, any, any, any, any>\n | undefined,\n result: QueryObserverResult<any, any>,\n) => defaultedOptions?.suspense && result.isPending\n\nexport const fetchOptimistic = <\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n defaultedOptions: DefaultedQueryObserverOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n observer: QueryObserver<TQueryFnData, TError, TData, TQueryData, TQueryKey>,\n errorResetBoundary: QueryErrorResetBoundaryValue,\n) =>\n observer.fetchOptimistic(defaultedOptions).catch(() => {\n errorResetBoundary.clearReset()\n })\n", "'use client'\nimport * as React from 'react'\n\nimport { isServer, notifyManager } from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport { useQueryErrorResetBoundary } from './QueryErrorResetBoundary'\nimport {\n ensurePreventErrorBoundaryRetry,\n getHasError,\n useClearResetErrorBoundary,\n} from './errorBoundaryUtils'\nimport { useIsRestoring } from './isRestoring'\nimport {\n ensureSuspenseTimers,\n fetchOptimistic,\n shouldSuspend,\n willFetch,\n} from './suspense'\nimport { noop } from './utils'\nimport type {\n QueryClient,\n QueryKey,\n QueryObserver,\n QueryObserverResult,\n} from '@tanstack/query-core'\nimport type { UseBaseQueryOptions } from './types'\n\nexport function useBaseQuery<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey extends QueryKey,\n>(\n options: UseBaseQueryOptions<\n TQueryFnData,\n TError,\n TData,\n TQueryData,\n TQueryKey\n >,\n Observer: typeof QueryObserver,\n queryClient?: QueryClient,\n): QueryObserverResult<TData, TError> {\n if (process.env.NODE_ENV !== 'production') {\n if (typeof options !== 'object' || Array.isArray(options)) {\n throw new Error(\n 'Bad argument type. Starting with v5, only the \"Object\" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object',\n )\n }\n }\n\n const client = useQueryClient(queryClient)\n const isRestoring = useIsRestoring()\n const errorResetBoundary = useQueryErrorResetBoundary()\n const defaultedOptions = client.defaultQueryOptions(options)\n\n ;(client.getDefaultOptions().queries as any)?._experimental_beforeQuery?.(\n defaultedOptions,\n )\n\n if (process.env.NODE_ENV !== 'production') {\n if (!defaultedOptions.queryFn) {\n console.error(\n `[${defaultedOptions.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`,\n )\n }\n }\n\n // Make sure results are optimistically set in fetching state before subscribing or updating options\n defaultedOptions._optimisticResults = isRestoring\n ? 'isRestoring'\n : 'optimistic'\n\n ensureSuspenseTimers(defaultedOptions)\n ensurePreventErrorBoundaryRetry(defaultedOptions, errorResetBoundary)\n\n useClearResetErrorBoundary(errorResetBoundary)\n\n // this needs to be invoked before creating the Observer because that can create a cache entry\n const isNewCacheEntry = !client\n .getQueryCache()\n .get(defaultedOptions.queryHash)\n\n const [observer] = React.useState(\n () =>\n new Observer<TQueryFnData, TError, TData, TQueryData, TQueryKey>(\n client,\n defaultedOptions,\n ),\n )\n\n // note: this must be called before useSyncExternalStore\n const result = observer.getOptimisticResult(defaultedOptions)\n\n const shouldSubscribe = !isRestoring && options.subscribed !== false\n React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) => {\n const unsubscribe = shouldSubscribe\n ? observer.subscribe(notifyManager.batchCalls(onStoreChange))\n : noop\n\n // Update result to make sure we did not miss any query updates\n // between creating the observer and subscribing to it.\n observer.updateResult()\n\n return unsubscribe\n },\n [observer, shouldSubscribe],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n React.useEffect(() => {\n observer.setOptions(defaultedOptions)\n }, [defaultedOptions, observer])\n\n // Handle suspense\n if (shouldSuspend(defaultedOptions, result)) {\n throw fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n }\n\n // Handle error boundary\n if (\n getHasError({\n result,\n errorResetBoundary,\n throwOnError: defaultedOptions.throwOnError,\n query: client\n .getQueryCache()\n .get<\n TQueryFnData,\n TError,\n TQueryData,\n TQueryKey\n >(defaultedOptions.queryHash),\n suspense: defaultedOptions.suspense,\n })\n ) {\n throw result.error\n }\n\n ;(client.getDefaultOptions().queries as any)?._experimental_afterQuery?.(\n defaultedOptions,\n result,\n )\n\n if (\n defaultedOptions.experimental_prefetchInRender &&\n !isServer &&\n willFetch(result, isRestoring)\n ) {\n const promise = isNewCacheEntry\n ? // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted\n fetchOptimistic(defaultedOptions, observer, errorResetBoundary)\n : // subscribe to the \"cache promise\" so that we can finalize the currentThenable once data comes in\n client.getQueryCache().get(defaultedOptions.queryHash)?.promise\n\n promise?.catch(noop).finally(() => {\n // `.updateResult()` will trigger `.#currentThenable` to finalize\n observer.updateResult()\n })\n }\n\n // Handle result property usage tracking\n return !defaultedOptions.notifyOnChangeProps\n ? observer.trackResult(result)\n : result\n}\n", "'use client'\nimport { QueryObserver } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport type { DefaultError, QueryClient, QueryKey } from '@tanstack/query-core'\nimport type {\n DefinedUseQueryResult,\n UseQueryOptions,\n UseQueryResult,\n} from './types'\nimport type {\n DefinedInitialDataOptions,\n UndefinedInitialDataOptions,\n} from './queryOptions'\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError>\n\nexport function useQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError>\n\nexport function useQuery(options: UseQueryOptions, queryClient?: QueryClient) {\n return useBaseQuery(options, QueryObserver, queryClient)\n}\n", "'use client'\nimport { QueryObserver, skipToken } from '@tanstack/query-core'\nimport { useBaseQuery } from './useBaseQuery'\nimport { defaultThrowOnError } from './suspense'\nimport type { UseSuspenseQueryOptions, UseSuspenseQueryResult } from './types'\nimport type { DefaultError, QueryClient, QueryKey } from '@tanstack/query-core'\n\nexport function useSuspenseQuery<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UseSuspenseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> {\n if (process.env.NODE_ENV !== 'production') {\n if ((options.queryFn as any) === skipToken) {\n console.error('skipToken is not allowed for useSuspenseQuery')\n }\n }\n\n return useBaseQuery(\n {\n ...options,\n enabled: true,\n suspense: true,\n throwOnError: defaultThrowOnError,\n placeholderData: undefined,\n },\n QueryObserver,\n queryClient,\n ) as UseSuspenseQueryResult<TData, TError>\n}\n", "import type {\n DataTag,\n DefaultError,\n InitialDataFunction,\n OmitKeyof,\n QueryFunction,\n QueryKey,\n SkipToken,\n} from '@tanstack/query-core'\nimport type { UseQueryOptions } from './types'\n\nexport type UndefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = UseQueryOptions<TQueryFnData, TError, TData, TQueryKey> & {\n initialData?:\n | undefined\n | InitialDataFunction<NonUndefinedGuard<TQueryFnData>>\n | NonUndefinedGuard<TQueryFnData>\n}\n\nexport type UnusedSkipTokenOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = OmitKeyof<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,\n 'queryFn'\n> & {\n queryFn?: Exclude<\n UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>['queryFn'],\n SkipToken | undefined\n >\n}\n\ntype NonUndefinedGuard<T> = T extends undefined ? never : T\n\nexport type DefinedInitialDataOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n> = Omit<UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>, 'queryFn'> & {\n initialData:\n | NonUndefinedGuard<TQueryFnData>\n | (() => NonUndefinedGuard<TQueryFnData>)\n queryFn?: QueryFunction<TQueryFnData, TQueryKey>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n): DefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey>,\n): UnusedSkipTokenOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions<\n TQueryFnData = unknown,\n TError = DefaultError,\n TData = TQueryFnData,\n TQueryKey extends QueryKey = QueryKey,\n>(\n options: UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey>,\n): UndefinedInitialDataOptions<TQueryFnData, TError, TData, TQueryKey> & {\n queryKey: DataTag<TQueryKey, TQueryFnData, TError>\n}\n\nexport function queryOptions(options: unknown) {\n return options\n}\n", "'use client'\nimport * as React from 'react'\nimport { MutationObserver, notifyManager } from '@tanstack/query-core'\nimport { useQueryClient } from './QueryClientProvider'\nimport { noop, shouldThrowError } from './utils'\nimport type {\n UseMutateFunction,\n UseMutationOptions,\n UseMutationResult,\n} from './types'\nimport type { DefaultError, QueryClient } from '@tanstack/query-core'\n\n// HOOK\n\nexport function useMutation<\n TData = unknown,\n TError = DefaultError,\n TVariables = void,\n TContext = unknown,\n>(\n options: UseMutationOptions<TData, TError, TVariables, TContext>,\n queryClient?: QueryClient,\n): UseMutationResult<TData, TError, TVariables, TContext> {\n const client = useQueryClient(queryClient)\n\n const [observer] = React.useState(\n () =>\n new MutationObserver<TData, TError, TVariables, TContext>(\n client,\n options,\n ),\n )\n\n React.useEffect(() => {\n observer.setOptions(options)\n }, [observer, options])\n\n const result = React.useSyncExternalStore(\n React.useCallback(\n (onStoreChange) =>\n observer.subscribe(notifyManager.batchCalls(onStoreChange)),\n [observer],\n ),\n () => observer.getCurrentResult(),\n () => observer.getCurrentResult(),\n )\n\n const mutate = React.useCallback<\n UseMutateFunction<TData, TError, TVariables, TContext>\n >(\n (variables, mutateOptions) => {\n observer.mutate(variables, mutateOptions).catch(noop)\n },\n [observer],\n )\n\n if (\n result.error &&\n shouldThrowError(observer.options.throwOnError, [result.error])\n ) {\n throw result.error\n }\n\n return { ...result, mutate, mutateAsync: result.mutate }\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsCreateTemplateFromAgentMutationRequest,\n AgentsCreateTemplateFromAgentMutationResponse,\n AgentsCreateTemplateFromAgentPathParams,\n AgentsCreateTemplateFromAgent500,\n} from '../../../types/agents/CreateTemplateFromAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsCreateTemplateFromAgentMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/template' }] as const;\n\nexport type AgentsCreateTemplateFromAgentMutationKey = ReturnType<\n typeof agentsCreateTemplateFromAgentMutationKey\n>;\n\n/**\n * @description Create a template from an agent\n * @summary Create Template From Agent\n * {@link /v1/agents/:agent_id/template}\n */\nexport async function agentsCreateTemplateFromAgent(\n agent_id: AgentsCreateTemplateFromAgentPathParams['agent_id'],\n data?: AgentsCreateTemplateFromAgentMutationRequest,\n config: Partial<\n RequestConfig<AgentsCreateTemplateFromAgentMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsCreateTemplateFromAgentMutationResponse,\n ResponseErrorConfig<AgentsCreateTemplateFromAgent500>,\n AgentsCreateTemplateFromAgentMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/template`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a template from an agent\n * @summary Create Template From Agent\n * {@link /v1/agents/:agent_id/template}\n */\nexport function useAgentsCreateTemplateFromAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsCreateTemplateFromAgentMutationResponse>,\n ResponseErrorConfig<AgentsCreateTemplateFromAgent500>,\n {\n agent_id: AgentsCreateTemplateFromAgentPathParams['agent_id'];\n data?: AgentsCreateTemplateFromAgentMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<AgentsCreateTemplateFromAgentMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsCreateTemplateFromAgentMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsCreateTemplateFromAgentMutationResponse>,\n ResponseErrorConfig<AgentsCreateTemplateFromAgent500>,\n {\n agent_id: AgentsCreateTemplateFromAgentPathParams['agent_id'];\n data?: AgentsCreateTemplateFromAgentMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return agentsCreateTemplateFromAgent(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsGetAgentVariablesQueryResponse,\n AgentsGetAgentVariablesPathParams,\n AgentsGetAgentVariables404,\n} from '../../../types/agents/GetAgentVariables.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const agentsGetAgentVariablesQueryKey = (\n agent_id: AgentsGetAgentVariablesPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/variables',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type AgentsGetAgentVariablesQueryKey = ReturnType<\n typeof agentsGetAgentVariablesQueryKey\n>;\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport async function agentsGetAgentVariables(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsGetAgentVariablesQueryResponse,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/variables`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function agentsGetAgentVariablesQueryOptions(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = agentsGetAgentVariablesQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return agentsGetAgentVariables(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport function useAgentsGetAgentVariables<\n TData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryKey extends QueryKey = AgentsGetAgentVariablesQueryKey\n>(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? agentsGetAgentVariablesQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(agentsGetAgentVariablesQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<AgentsGetAgentVariables404>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsGetAgentVariablesQueryResponse,\n AgentsGetAgentVariablesPathParams,\n AgentsGetAgentVariables404,\n} from '../../../types/agents/GetAgentVariables.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const agentsGetAgentVariablesSuspenseQueryKey = (\n agent_id: AgentsGetAgentVariablesPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/variables',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type AgentsGetAgentVariablesSuspenseQueryKey = ReturnType<\n typeof agentsGetAgentVariablesSuspenseQueryKey\n>;\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport async function agentsGetAgentVariablesSuspense(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsGetAgentVariablesQueryResponse,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/variables`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function agentsGetAgentVariablesSuspenseQueryOptions(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = agentsGetAgentVariablesSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return agentsGetAgentVariablesSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport function useAgentsGetAgentVariablesSuspense<\n TData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryKey extends QueryKey = AgentsGetAgentVariablesSuspenseQueryKey\n>(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? agentsGetAgentVariablesSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(agentsGetAgentVariablesSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<AgentsGetAgentVariables404>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsMigrateAgentMutationRequest,\n AgentsMigrateAgentMutationResponse,\n AgentsMigrateAgentPathParams,\n AgentsMigrateAgent404,\n AgentsMigrateAgent409,\n AgentsMigrateAgent500,\n} from '../../../types/agents/MigrateAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsMigrateAgentMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/migrate' }] as const;\n\nexport type AgentsMigrateAgentMutationKey = ReturnType<\n typeof agentsMigrateAgentMutationKey\n>;\n\n/**\n * @description Migrate an agent to a new versioned agent template\n * @summary Migrate Agent\n * {@link /v1/agents/:agent_id/migrate}\n */\nexport async function agentsMigrateAgent(\n agent_id: AgentsMigrateAgentPathParams['agent_id'],\n data: AgentsMigrateAgentMutationRequest,\n config: Partial<RequestConfig<AgentsMigrateAgentMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsMigrateAgentMutationResponse,\n ResponseErrorConfig<\n AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500\n >,\n AgentsMigrateAgentMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/migrate`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Migrate an agent to a new versioned agent template\n * @summary Migrate Agent\n * {@link /v1/agents/:agent_id/migrate}\n */\nexport function useAgentsMigrateAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsMigrateAgentMutationResponse>,\n ResponseErrorConfig<\n AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500\n >,\n {\n agent_id: AgentsMigrateAgentPathParams['agent_id'];\n data: AgentsMigrateAgentMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<AgentsMigrateAgentMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsMigrateAgentMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsMigrateAgentMutationResponse>,\n ResponseErrorConfig<\n AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500\n >,\n {\n agent_id: AgentsMigrateAgentPathParams['agent_id'];\n data: AgentsMigrateAgentMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return agentsMigrateAgent(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsSearchDeployedAgentsMutationRequest,\n AgentsSearchDeployedAgentsMutationResponse,\n} from '../../../types/agents/SearchDeployedAgents.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsSearchDeployedAgentsMutationKey = () =>\n [{ url: '/v1/agents/search' }] as const;\n\nexport type AgentsSearchDeployedAgentsMutationKey = ReturnType<\n typeof agentsSearchDeployedAgentsMutationKey\n>;\n\n/**\n * @description Search deployed agents\n * @summary Search Deployed Agents\n * {@link /v1/agents/search}\n */\nexport async function agentsSearchDeployedAgents(\n data?: AgentsSearchDeployedAgentsMutationRequest,\n config: Partial<RequestConfig<AgentsSearchDeployedAgentsMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsSearchDeployedAgentsMutationResponse,\n ResponseErrorConfig<Error>,\n AgentsSearchDeployedAgentsMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/search`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Search deployed agents\n * @summary Search Deployed Agents\n * {@link /v1/agents/search}\n */\nexport function useAgentsSearchDeployedAgents<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsSearchDeployedAgentsMutationResponse>,\n ResponseErrorConfig<Error>,\n { data?: AgentsSearchDeployedAgentsMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<AgentsSearchDeployedAgentsMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsSearchDeployedAgentsMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsSearchDeployedAgentsMutationResponse>,\n ResponseErrorConfig<Error>,\n { data?: AgentsSearchDeployedAgentsMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return agentsSearchDeployedAgents(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsVersionAgentTemplateMutationRequest,\n AgentsVersionAgentTemplateMutationResponse,\n AgentsVersionAgentTemplatePathParams,\n AgentsVersionAgentTemplateQueryParams,\n AgentsVersionAgentTemplate404,\n AgentsVersionAgentTemplate500,\n} from '../../../types/agents/VersionAgentTemplate.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsVersionAgentTemplateMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/version-template' }] as const;\n\nexport type AgentsVersionAgentTemplateMutationKey = ReturnType<\n typeof agentsVersionAgentTemplateMutationKey\n>;\n\n/**\n * @description Creates a versioned version of an agent\n * @summary Version Agent Template\n * {@link /v1/agents/:agent_id/version-template}\n */\nexport async function agentsVersionAgentTemplate(\n agent_id: AgentsVersionAgentTemplatePathParams['agent_id'],\n data?: AgentsVersionAgentTemplateMutationRequest,\n params?: AgentsVersionAgentTemplateQueryParams,\n config: Partial<RequestConfig<AgentsVersionAgentTemplateMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsVersionAgentTemplateMutationResponse,\n ResponseErrorConfig<\n AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500\n >,\n AgentsVersionAgentTemplateMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/version-template`,\n params,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Creates a versioned version of an agent\n * @summary Version Agent Template\n * {@link /v1/agents/:agent_id/version-template}\n */\nexport function useAgentsVersionAgentTemplate<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsVersionAgentTemplateMutationResponse>,\n ResponseErrorConfig<\n AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500\n >,\n {\n agent_id: AgentsVersionAgentTemplatePathParams['agent_id'];\n data?: AgentsVersionAgentTemplateMutationRequest;\n params?: AgentsVersionAgentTemplateQueryParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<AgentsVersionAgentTemplateMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsVersionAgentTemplateMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsVersionAgentTemplateMutationResponse>,\n ResponseErrorConfig<\n AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500\n >,\n {\n agent_id: AgentsVersionAgentTemplatePathParams['agent_id'];\n data?: AgentsVersionAgentTemplateMutationRequest;\n params?: AgentsVersionAgentTemplateQueryParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data, params }) => {\n return agentsVersionAgentTemplate(agent_id, data, params, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateAgentMutationRequest,\n CreateAgentMutationResponse,\n CreateAgentHeaderParams,\n CreateAgent422,\n} from '../../types/CreateAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createAgentMutationKey = () => [{ url: '/v1/agents/' }] as const;\n\nexport type CreateAgentMutationKey = ReturnType<typeof createAgentMutationKey>;\n\n/**\n * @description Create a new agent with the specified configuration.\n * @summary Create Agent\n * {@link /v1/agents/}\n */\nexport async function createAgent(\n data?: CreateAgentMutationRequest,\n headers?: CreateAgentHeaderParams,\n config: Partial<RequestConfig<CreateAgentMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateAgentMutationResponse,\n ResponseErrorConfig<CreateAgent422>,\n CreateAgentMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @description Create a new agent with the specified configuration.\n * @summary Create Agent\n * {@link /v1/agents/}\n */\nexport function useCreateAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateAgentMutationResponse>,\n ResponseErrorConfig<CreateAgent422>,\n { data?: CreateAgentMutationRequest; headers?: CreateAgentHeaderParams },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateAgentMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createAgentMutationKey();\n\n return useMutation<\n ResponseConfig<CreateAgentMutationResponse>,\n ResponseErrorConfig<CreateAgent422>,\n { data?: CreateAgentMutationRequest; headers?: CreateAgentHeaderParams },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return createAgent(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateAgentMessageAsyncMutationRequest,\n CreateAgentMessageAsyncMutationResponse,\n CreateAgentMessageAsyncPathParams,\n CreateAgentMessageAsync422,\n} from '../../types/CreateAgentMessageAsync.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createAgentMessageAsyncMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/messages/async' }] as const;\n\nexport type CreateAgentMessageAsyncMutationKey = ReturnType<\n typeof createAgentMessageAsyncMutationKey\n>;\n\n/**\n * @description Asynchronously process a user message and return a run object.The actual processing happens in the background, and the status can be checked using the run ID.\n * @summary Send Message Async\n * {@link /v1/agents/:agent_id/messages/async}\n */\nexport async function createAgentMessageAsync(\n agent_id: CreateAgentMessageAsyncPathParams['agent_id'],\n data: CreateAgentMessageAsyncMutationRequest,\n config: Partial<RequestConfig<CreateAgentMessageAsyncMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateAgentMessageAsyncMutationResponse,\n ResponseErrorConfig<CreateAgentMessageAsync422>,\n CreateAgentMessageAsyncMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/messages/async`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Asynchronously process a user message and return a run object.The actual processing happens in the background, and the status can be checked using the run ID.\n * @summary Send Message Async\n * {@link /v1/agents/:agent_id/messages/async}\n */\nexport function useCreateAgentMessageAsync<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateAgentMessageAsyncMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageAsync422>,\n {\n agent_id: CreateAgentMessageAsyncPathParams['agent_id'];\n data: CreateAgentMessageAsyncMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateAgentMessageAsyncMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createAgentMessageAsyncMutationKey();\n\n return useMutation<\n ResponseConfig<CreateAgentMessageAsyncMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageAsync422>,\n {\n agent_id: CreateAgentMessageAsyncPathParams['agent_id'];\n data: CreateAgentMessageAsyncMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return createAgentMessageAsync(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateAgentMessageStreamMutationRequest,\n CreateAgentMessageStreamMutationResponse,\n CreateAgentMessageStreamPathParams,\n CreateAgentMessageStream422,\n} from '../../types/CreateAgentMessageStream.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createAgentMessageStreamMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/messages/stream' }] as const;\n\nexport type CreateAgentMessageStreamMutationKey = ReturnType<\n typeof createAgentMessageStreamMutationKey\n>;\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Message Streaming\n * {@link /v1/agents/:agent_id/messages/stream}\n */\nexport async function createAgentMessageStream(\n agent_id: CreateAgentMessageStreamPathParams['agent_id'],\n data: CreateAgentMessageStreamMutationRequest,\n config: Partial<RequestConfig<CreateAgentMessageStreamMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateAgentMessageStreamMutationResponse,\n ResponseErrorConfig<CreateAgentMessageStream422>,\n CreateAgentMessageStreamMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/messages/stream`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Message Streaming\n * {@link /v1/agents/:agent_id/messages/stream}\n */\nexport function useCreateAgentMessageStream<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateAgentMessageStreamMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageStream422>,\n {\n agent_id: CreateAgentMessageStreamPathParams['agent_id'];\n data: CreateAgentMessageStreamMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateAgentMessageStreamMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createAgentMessageStreamMutationKey();\n\n return useMutation<\n ResponseConfig<CreateAgentMessageStreamMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageStream422>,\n {\n agent_id: CreateAgentMessageStreamPathParams['agent_id'];\n data: CreateAgentMessageStreamMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return createAgentMessageStream(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreatePassageMutationRequest,\n CreatePassageMutationResponse,\n CreatePassagePathParams,\n CreatePassage422,\n} from '../../types/CreatePassage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createPassageMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/archival-memory' }] as const;\n\nexport type CreatePassageMutationKey = ReturnType<\n typeof createPassageMutationKey\n>;\n\n/**\n * @description Insert a memory into an agent's archival memory store.\n * @summary Create Passage\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport async function createPassage(\n agent_id: CreatePassagePathParams['agent_id'],\n data: CreatePassageMutationRequest,\n config: Partial<RequestConfig<CreatePassageMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreatePassageMutationResponse,\n ResponseErrorConfig<CreatePassage422>,\n CreatePassageMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/archival-memory`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Insert a memory into an agent's archival memory store.\n * @summary Create Passage\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport function useCreatePassage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreatePassageMutationResponse>,\n ResponseErrorConfig<CreatePassage422>,\n {\n agent_id: CreatePassagePathParams['agent_id'];\n data: CreatePassageMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreatePassageMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createPassageMutationKey();\n\n return useMutation<\n ResponseConfig<CreatePassageMutationResponse>,\n ResponseErrorConfig<CreatePassage422>,\n {\n agent_id: CreatePassagePathParams['agent_id'];\n data: CreatePassageMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return createPassage(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteAgentMutationResponse,\n DeleteAgentPathParams,\n DeleteAgent422,\n} from '../../types/DeleteAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteAgentMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}' }] as const;\n\nexport type DeleteAgentMutationKey = ReturnType<typeof deleteAgentMutationKey>;\n\n/**\n * @description Delete an agent.\n * @summary Delete Agent\n * {@link /v1/agents/:agent_id}\n */\nexport async function deleteAgent(\n agent_id: DeleteAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteAgentMutationResponse,\n ResponseErrorConfig<DeleteAgent422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/agents/${agent_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete an agent.\n * @summary Delete Agent\n * {@link /v1/agents/:agent_id}\n */\nexport function useDeleteAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteAgentMutationResponse>,\n ResponseErrorConfig<DeleteAgent422>,\n { agent_id: DeleteAgentPathParams['agent_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteAgentMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteAgentMutationResponse>,\n ResponseErrorConfig<DeleteAgent422>,\n { agent_id: DeleteAgentPathParams['agent_id'] },\n TContext\n >(\n {\n mutationFn: async ({ agent_id }) => {\n return deleteAgent(agent_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeletePassageMutationResponse,\n DeletePassagePathParams,\n DeletePassage422,\n} from '../../types/DeletePassage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deletePassageMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/archival-memory/{memory_id}' }] as const;\n\nexport type DeletePassageMutationKey = ReturnType<\n typeof deletePassageMutationKey\n>;\n\n/**\n * @description Delete a memory from an agent's archival memory store.\n * @summary Delete Passage\n * {@link /v1/agents/:agent_id/archival-memory/:memory_id}\n */\nexport async function deletePassage(\n agent_id: DeletePassagePathParams['agent_id'],\n memory_id: DeletePassagePathParams['memory_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeletePassageMutationResponse,\n ResponseErrorConfig<DeletePassage422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/agents/${agent_id}/archival-memory/${memory_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a memory from an agent's archival memory store.\n * @summary Delete Passage\n * {@link /v1/agents/:agent_id/archival-memory/:memory_id}\n */\nexport function useDeletePassage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeletePassageMutationResponse>,\n ResponseErrorConfig<DeletePassage422>,\n {\n agent_id: DeletePassagePathParams['agent_id'];\n memory_id: DeletePassagePathParams['memory_id'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deletePassageMutationKey();\n\n return useMutation<\n ResponseConfig<DeletePassageMutationResponse>,\n ResponseErrorConfig<DeletePassage422>,\n {\n agent_id: DeletePassagePathParams['agent_id'];\n memory_id: DeletePassagePathParams['memory_id'];\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, memory_id }) => {\n return deletePassage(agent_id, memory_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ExportAgentSerializedQueryRequest,\n ExportAgentSerializedQueryResponse,\n ExportAgentSerializedPathParams,\n ExportAgentSerialized422,\n} from '../../types/ExportAgentSerialized.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const exportAgentSerializedQueryKey = (\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest\n) =>\n [\n { url: '/v1/agents/:agent_id/export', params: { agent_id: agent_id } },\n ...(data ? [data] : []),\n ] as const;\n\nexport type ExportAgentSerializedQueryKey = ReturnType<\n typeof exportAgentSerializedQueryKey\n>;\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport async function exportAgentSerialized(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ExportAgentSerializedQueryResponse,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ExportAgentSerializedQueryRequest\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/export`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\nexport function exportAgentSerializedQueryOptions(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const queryKey = exportAgentSerializedQueryKey(agent_id, data);\n return queryOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return exportAgentSerialized(agent_id, data, config);\n },\n });\n}\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport function useExportAgentSerialized<\n TData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryKey extends QueryKey = ExportAgentSerializedQueryKey\n>(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? exportAgentSerializedQueryKey(agent_id, data);\n\n const query = useQuery(\n {\n ...(exportAgentSerializedQueryOptions(\n agent_id,\n data,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ExportAgentSerialized422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ExportAgentSerializedQueryRequest,\n ExportAgentSerializedQueryResponse,\n ExportAgentSerializedPathParams,\n ExportAgentSerialized422,\n} from '../../types/ExportAgentSerialized.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const exportAgentSerializedSuspenseQueryKey = (\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest\n) =>\n [\n { url: '/v1/agents/:agent_id/export', params: { agent_id: agent_id } },\n ...(data ? [data] : []),\n ] as const;\n\nexport type ExportAgentSerializedSuspenseQueryKey = ReturnType<\n typeof exportAgentSerializedSuspenseQueryKey\n>;\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport async function exportAgentSerializedSuspense(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ExportAgentSerializedQueryResponse,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ExportAgentSerializedQueryRequest\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/export`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\nexport function exportAgentSerializedSuspenseQueryOptions(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const queryKey = exportAgentSerializedSuspenseQueryKey(agent_id, data);\n return queryOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return exportAgentSerializedSuspense(agent_id, data, config);\n },\n });\n}\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport function useExportAgentSerializedSuspense<\n TData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryKey extends QueryKey = ExportAgentSerializedSuspenseQueryKey\n>(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n exportAgentSerializedSuspenseQueryKey(agent_id, data);\n\n const query = useSuspenseQuery(\n {\n ...(exportAgentSerializedSuspenseQueryOptions(\n agent_id,\n data,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ExportAgentSerialized422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ImportAgentSerializedMutationRequest,\n ImportAgentSerializedMutationResponse,\n ImportAgentSerializedQueryParams,\n ImportAgentSerialized422,\n} from '../../types/ImportAgentSerialized.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const importAgentSerializedMutationKey = () =>\n [{ url: '/v1/agents/import' }] as const;\n\nexport type ImportAgentSerializedMutationKey = ReturnType<\n typeof importAgentSerializedMutationKey\n>;\n\n/**\n * @description Import a serialized agent file and recreate the agent in the system.\n * @summary Import Agent Serialized\n * {@link /v1/agents/import}\n */\nexport async function importAgentSerialized(\n data: ImportAgentSerializedMutationRequest,\n params?: ImportAgentSerializedQueryParams,\n config: Partial<RequestConfig<ImportAgentSerializedMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const formData = new FormData();\n if (data) {\n Object.keys(data).forEach((key) => {\n const value = data[key as keyof typeof data];\n if (\n typeof key === 'string' &&\n (typeof value === 'string' || (value as Blob) instanceof Blob)\n ) {\n formData.append(key, value as unknown as string);\n }\n });\n }\n const res = await request<\n ImportAgentSerializedMutationResponse,\n ResponseErrorConfig<ImportAgentSerialized422>,\n ImportAgentSerializedMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/import`,\n params,\n data: formData,\n ...requestConfig,\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...requestConfig.headers,\n },\n });\n return res;\n}\n\n/**\n * @description Import a serialized agent file and recreate the agent in the system.\n * @summary Import Agent Serialized\n * {@link /v1/agents/import}\n */\nexport function useImportAgentSerialized<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<ImportAgentSerializedMutationResponse>,\n ResponseErrorConfig<ImportAgentSerialized422>,\n {\n data: ImportAgentSerializedMutationRequest;\n params?: ImportAgentSerializedQueryParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<ImportAgentSerializedMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? importAgentSerializedMutationKey();\n\n return useMutation<\n ResponseConfig<ImportAgentSerializedMutationResponse>,\n ResponseErrorConfig<ImportAgentSerialized422>,\n {\n data: ImportAgentSerializedMutationRequest;\n params?: ImportAgentSerializedQueryParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ data, params }) => {\n return importAgentSerialized(data, params, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsQueryResponse,\n ListAgentsQueryParams,\n ListAgents422,\n} from '../../types/ListAgents.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentsQueryKey = (params?: ListAgentsQueryParams) =>\n [{ url: '/v1/agents/' }, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsQueryKey = ReturnType<typeof listAgentsQueryKey>;\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport async function listAgents(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsQueryResponse,\n ResponseErrorConfig<ListAgents422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsQueryOptions(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n ResponseConfig<ListAgentsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgents(params, config);\n },\n });\n}\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport function useListAgents<\n TData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsQueryKey\n>(\n params?: ListAgentsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listAgentsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgents422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentSourcesQueryResponse,\n ListAgentSourcesPathParams,\n ListAgentSources422,\n} from '../../types/ListAgentSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentSourcesQueryKey = (\n agent_id: ListAgentSourcesPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/sources', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentSourcesQueryKey = ReturnType<\n typeof listAgentSourcesQueryKey\n>;\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport async function listAgentSources(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentSourcesQueryResponse,\n ResponseErrorConfig<ListAgentSources422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/sources`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentSourcesQueryOptions(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentSourcesQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n ResponseConfig<ListAgentSourcesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentSources(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport function useListAgentSources<\n TData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListAgentSourcesQueryKey\n>(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentSourcesQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(listAgentSourcesQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgentSources422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentSourcesQueryResponse,\n ListAgentSourcesPathParams,\n ListAgentSources422,\n} from '../../types/ListAgentSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentSourcesSuspenseQueryKey = (\n agent_id: ListAgentSourcesPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/sources', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentSourcesSuspenseQueryKey = ReturnType<\n typeof listAgentSourcesSuspenseQueryKey\n>;\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport async function listAgentSourcesSuspense(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentSourcesQueryResponse,\n ResponseErrorConfig<ListAgentSources422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/sources`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentSourcesSuspenseQueryOptions(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentSourcesSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n ResponseConfig<ListAgentSourcesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentSourcesSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport function useListAgentSourcesSuspense<\n TData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListAgentSourcesSuspenseQueryKey\n>(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentSourcesSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentSourcesSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListAgentSources422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsQueryResponse,\n ListAgentsQueryParams,\n ListAgents422,\n} from '../../types/ListAgents.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentsSuspenseQueryKey = (params?: ListAgentsQueryParams) =>\n [{ url: '/v1/agents/' }, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsSuspenseQueryKey = ReturnType<\n typeof listAgentsSuspenseQueryKey\n>;\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport async function listAgentsSuspense(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsQueryResponse,\n ResponseErrorConfig<ListAgents422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsSuspenseQueryOptions(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n ResponseConfig<ListAgentsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport function useListAgentsSuspense<\n TData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsSuspenseQueryKey\n>(\n params?: ListAgentsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListAgents422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentToolsQueryResponse,\n ListAgentToolsPathParams,\n ListAgentTools422,\n} from '../../types/ListAgentTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentToolsQueryKey = (\n agent_id: ListAgentToolsPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/tools', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentToolsQueryKey = ReturnType<typeof listAgentToolsQueryKey>;\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport async function listAgentTools(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentToolsQueryResponse,\n ResponseErrorConfig<ListAgentTools422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentToolsQueryOptions(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentToolsQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n ResponseConfig<ListAgentToolsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentTools(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport function useListAgentTools<\n TData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentToolsQueryKey\n>(\n agent_id: ListAgentToolsPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentToolsQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(listAgentToolsQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgentTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentToolsQueryResponse,\n ListAgentToolsPathParams,\n ListAgentTools422,\n} from '../../types/ListAgentTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentToolsSuspenseQueryKey = (\n agent_id: ListAgentToolsPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/tools', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentToolsSuspenseQueryKey = ReturnType<\n typeof listAgentToolsSuspenseQueryKey\n>;\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport async function listAgentToolsSuspense(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentToolsQueryResponse,\n ResponseErrorConfig<ListAgentTools422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentToolsSuspenseQueryOptions(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentToolsSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n ResponseConfig<ListAgentToolsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentToolsSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport function useListAgentToolsSuspense<\n TData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentToolsSuspenseQueryKey\n>(\n agent_id: ListAgentToolsPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentToolsSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentToolsSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListAgentTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListCoreMemoryBlocksQueryResponse,\n ListCoreMemoryBlocksPathParams,\n ListCoreMemoryBlocks422,\n} from '../../types/ListCoreMemoryBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listCoreMemoryBlocksQueryKey = (\n agent_id: ListCoreMemoryBlocksPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type ListCoreMemoryBlocksQueryKey = ReturnType<\n typeof listCoreMemoryBlocksQueryKey\n>;\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport async function listCoreMemoryBlocks(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListCoreMemoryBlocksQueryResponse,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listCoreMemoryBlocksQueryOptions(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listCoreMemoryBlocksQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listCoreMemoryBlocks(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport function useListCoreMemoryBlocks<\n TData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListCoreMemoryBlocksQueryKey\n>(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listCoreMemoryBlocksQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(listCoreMemoryBlocksQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListCoreMemoryBlocks422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListCoreMemoryBlocksQueryResponse,\n ListCoreMemoryBlocksPathParams,\n ListCoreMemoryBlocks422,\n} from '../../types/ListCoreMemoryBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listCoreMemoryBlocksSuspenseQueryKey = (\n agent_id: ListCoreMemoryBlocksPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type ListCoreMemoryBlocksSuspenseQueryKey = ReturnType<\n typeof listCoreMemoryBlocksSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport async function listCoreMemoryBlocksSuspense(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListCoreMemoryBlocksQueryResponse,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listCoreMemoryBlocksSuspenseQueryOptions(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listCoreMemoryBlocksSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listCoreMemoryBlocksSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport function useListCoreMemoryBlocksSuspense<\n TData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListCoreMemoryBlocksSuspenseQueryKey\n>(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listCoreMemoryBlocksSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(listCoreMemoryBlocksSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListCoreMemoryBlocks422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMessagesQueryResponse,\n ListMessagesPathParams,\n ListMessagesQueryParams,\n ListMessages422,\n} from '../../types/ListMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listMessagesQueryKey = (\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams\n) =>\n [\n { url: '/v1/agents/:agent_id/messages', params: { agent_id: agent_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListMessagesQueryKey = ReturnType<typeof listMessagesQueryKey>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport async function listMessages(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMessagesQueryResponse,\n ResponseErrorConfig<ListMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMessagesQueryOptions(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMessagesQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n ResponseConfig<ListMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMessages(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport function useListMessages<\n TData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListMessagesQueryKey\n>(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listMessagesQueryKey(agent_id, params);\n\n const query = useQuery(\n {\n ...(listMessagesQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMessagesQueryResponse,\n ListMessagesPathParams,\n ListMessagesQueryParams,\n ListMessages422,\n} from '../../types/ListMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listMessagesSuspenseQueryKey = (\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams\n) =>\n [\n { url: '/v1/agents/:agent_id/messages', params: { agent_id: agent_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListMessagesSuspenseQueryKey = ReturnType<\n typeof listMessagesSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport async function listMessagesSuspense(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMessagesQueryResponse,\n ResponseErrorConfig<ListMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMessagesSuspenseQueryOptions(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMessagesSuspenseQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n ResponseConfig<ListMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMessagesSuspense(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport function useListMessagesSuspense<\n TData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListMessagesSuspenseQueryKey\n>(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listMessagesSuspenseQueryKey(agent_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listMessagesSuspenseQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListPassagesQueryResponse,\n ListPassagesPathParams,\n ListPassagesQueryParams,\n ListPassages422,\n} from '../../types/ListPassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listPassagesQueryKey = (\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams\n) =>\n [\n {\n url: '/v1/agents/:agent_id/archival-memory',\n params: { agent_id: agent_id },\n },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListPassagesQueryKey = ReturnType<typeof listPassagesQueryKey>;\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport async function listPassages(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListPassagesQueryResponse,\n ResponseErrorConfig<ListPassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/archival-memory`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listPassagesQueryOptions(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listPassagesQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n ResponseConfig<ListPassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listPassages(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport function useListPassages<\n TData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryKey extends QueryKey = ListPassagesQueryKey\n>(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listPassagesQueryKey(agent_id, params);\n\n const query = useQuery(\n {\n ...(listPassagesQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListPassages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListPassagesQueryResponse,\n ListPassagesPathParams,\n ListPassagesQueryParams,\n ListPassages422,\n} from '../../types/ListPassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listPassagesSuspenseQueryKey = (\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams\n) =>\n [\n {\n url: '/v1/agents/:agent_id/archival-memory',\n params: { agent_id: agent_id },\n },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListPassagesSuspenseQueryKey = ReturnType<\n typeof listPassagesSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport async function listPassagesSuspense(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListPassagesQueryResponse,\n ResponseErrorConfig<ListPassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/archival-memory`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listPassagesSuspenseQueryOptions(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listPassagesSuspenseQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n ResponseConfig<ListPassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listPassagesSuspense(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport function useListPassagesSuspense<\n TData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryKey extends QueryKey = ListPassagesSuspenseQueryKey\n>(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listPassagesSuspenseQueryKey(agent_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listPassagesSuspenseQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListPassages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentQueryResponse,\n RetrieveAgentPathParams,\n RetrieveAgent422,\n} from '../../types/RetrieveAgent.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentQueryKey = (\n agent_id: RetrieveAgentPathParams['agent_id']\n) => [{ url: '/v1/agents/:agent_id', params: { agent_id: agent_id } }] as const;\n\nexport type RetrieveAgentQueryKey = ReturnType<typeof retrieveAgentQueryKey>;\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport async function retrieveAgent(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentQueryResponse,\n ResponseErrorConfig<RetrieveAgent422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentQueryOptions(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n ResponseConfig<RetrieveAgentQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgent(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport function useRetrieveAgent<\n TData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentQueryKey\n>(\n agent_id: RetrieveAgentPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveAgentQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(retrieveAgentQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveAgent422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentContextWindowQueryResponse,\n RetrieveAgentContextWindowPathParams,\n RetrieveAgentContextWindow422,\n} from '../../types/RetrieveAgentContextWindow.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentContextWindowQueryKey = (\n agent_id: RetrieveAgentContextWindowPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/context', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentContextWindowQueryKey = ReturnType<\n typeof retrieveAgentContextWindowQueryKey\n>;\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport async function retrieveAgentContextWindow(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentContextWindowQueryResponse,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/context`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentContextWindowQueryOptions(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentContextWindowQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentContextWindow(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport function useRetrieveAgentContextWindow<\n TData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentContextWindowQueryKey\n>(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentContextWindowQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(retrieveAgentContextWindowQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveAgentContextWindow422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentContextWindowQueryResponse,\n RetrieveAgentContextWindowPathParams,\n RetrieveAgentContextWindow422,\n} from '../../types/RetrieveAgentContextWindow.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentContextWindowSuspenseQueryKey = (\n agent_id: RetrieveAgentContextWindowPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/context', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentContextWindowSuspenseQueryKey = ReturnType<\n typeof retrieveAgentContextWindowSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport async function retrieveAgentContextWindowSuspense(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentContextWindowQueryResponse,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/context`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentContextWindowSuspenseQueryOptions(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentContextWindowSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentContextWindowSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport function useRetrieveAgentContextWindowSuspense<\n TData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentContextWindowSuspenseQueryKey\n>(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n retrieveAgentContextWindowSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveAgentContextWindowSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveAgentContextWindow422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentMemoryQueryResponse,\n RetrieveAgentMemoryPathParams,\n RetrieveAgentMemory422,\n} from '../../types/RetrieveAgentMemory.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentMemoryQueryKey = (\n agent_id: RetrieveAgentMemoryPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/core-memory', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentMemoryQueryKey = ReturnType<\n typeof retrieveAgentMemoryQueryKey\n>;\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport async function retrieveAgentMemory(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentMemoryQueryResponse,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentMemoryQueryOptions(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentMemoryQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentMemory(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport function useRetrieveAgentMemory<\n TData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentMemoryQueryKey\n>(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentMemoryQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(retrieveAgentMemoryQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveAgentMemory422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentMemoryQueryResponse,\n RetrieveAgentMemoryPathParams,\n RetrieveAgentMemory422,\n} from '../../types/RetrieveAgentMemory.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentMemorySuspenseQueryKey = (\n agent_id: RetrieveAgentMemoryPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/core-memory', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentMemorySuspenseQueryKey = ReturnType<\n typeof retrieveAgentMemorySuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport async function retrieveAgentMemorySuspense(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentMemoryQueryResponse,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentMemorySuspenseQueryOptions(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentMemorySuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentMemorySuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport function useRetrieveAgentMemorySuspense<\n TData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentMemorySuspenseQueryKey\n>(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentMemorySuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveAgentMemorySuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveAgentMemory422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentQueryResponse,\n RetrieveAgentPathParams,\n RetrieveAgent422,\n} from '../../types/RetrieveAgent.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentSuspenseQueryKey = (\n agent_id: RetrieveAgentPathParams['agent_id']\n) => [{ url: '/v1/agents/:agent_id', params: { agent_id: agent_id } }] as const;\n\nexport type RetrieveAgentSuspenseQueryKey = ReturnType<\n typeof retrieveAgentSuspenseQueryKey\n>;\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport async function retrieveAgentSuspense(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentQueryResponse,\n ResponseErrorConfig<RetrieveAgent422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentSuspenseQueryOptions(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n ResponseConfig<RetrieveAgentQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport function useRetrieveAgentSuspense<\n TData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentSuspenseQueryKey\n>(\n agent_id: RetrieveAgentPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveAgentSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveAgent422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveCoreMemoryBlockQueryResponse,\n RetrieveCoreMemoryBlockPathParams,\n RetrieveCoreMemoryBlock422,\n} from '../../types/RetrieveCoreMemoryBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveCoreMemoryBlockQueryKey = (\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks/:block_label',\n params: { agent_id: agent_id, block_label: block_label },\n },\n ] as const;\n\nexport type RetrieveCoreMemoryBlockQueryKey = ReturnType<\n typeof retrieveCoreMemoryBlockQueryKey\n>;\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport async function retrieveCoreMemoryBlock(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveCoreMemoryBlockQueryResponse,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks/${block_label}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveCoreMemoryBlockQueryOptions(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveCoreMemoryBlockQueryKey(agent_id, block_label);\n return queryOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!(agent_id && block_label),\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveCoreMemoryBlock(agent_id, block_label, config);\n },\n });\n}\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport function useRetrieveCoreMemoryBlock<\n TData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveCoreMemoryBlockQueryKey\n>(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n retrieveCoreMemoryBlockQueryKey(agent_id, block_label);\n\n const query = useQuery(\n {\n ...(retrieveCoreMemoryBlockQueryOptions(\n agent_id,\n block_label,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveCoreMemoryBlockQueryResponse,\n RetrieveCoreMemoryBlockPathParams,\n RetrieveCoreMemoryBlock422,\n} from '../../types/RetrieveCoreMemoryBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveCoreMemoryBlockSuspenseQueryKey = (\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks/:block_label',\n params: { agent_id: agent_id, block_label: block_label },\n },\n ] as const;\n\nexport type RetrieveCoreMemoryBlockSuspenseQueryKey = ReturnType<\n typeof retrieveCoreMemoryBlockSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport async function retrieveCoreMemoryBlockSuspense(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveCoreMemoryBlockQueryResponse,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks/${block_label}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveCoreMemoryBlockSuspenseQueryOptions(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveCoreMemoryBlockSuspenseQueryKey(\n agent_id,\n block_label\n );\n return queryOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!(agent_id && block_label),\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveCoreMemoryBlockSuspense(agent_id, block_label, config);\n },\n });\n}\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport function useRetrieveCoreMemoryBlockSuspense<\n TData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveCoreMemoryBlockSuspenseQueryKey\n>(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n retrieveCoreMemoryBlockSuspenseQueryKey(agent_id, block_label);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveCoreMemoryBlockSuspenseQueryOptions(\n agent_id,\n block_label,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n SendMessageMutationRequest,\n SendMessageMutationResponse,\n SendMessagePathParams,\n SendMessage422,\n} from '../../types/SendMessage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const sendMessageMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/messages' }] as const;\n\nexport type SendMessageMutationKey = ReturnType<typeof sendMessageMutationKey>;\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.\n * @summary Send Message\n * {@link /v1/agents/:agent_id/messages}\n */\nexport async function sendMessage(\n agent_id: SendMessagePathParams['agent_id'],\n data: SendMessageMutationRequest,\n config: Partial<RequestConfig<SendMessageMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n SendMessageMutationResponse,\n ResponseErrorConfig<SendMessage422>,\n SendMessageMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/messages`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.\n * @summary Send Message\n * {@link /v1/agents/:agent_id/messages}\n */\nexport function useSendMessage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<SendMessageMutationResponse>,\n ResponseErrorConfig<SendMessage422>,\n {\n agent_id: SendMessagePathParams['agent_id'];\n data: SendMessageMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<SendMessageMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? sendMessageMutationKey();\n\n return useMutation<\n ResponseConfig<SendMessageMutationResponse>,\n ResponseErrorConfig<SendMessage422>,\n {\n agent_id: SendMessagePathParams['agent_id'];\n data: SendMessageMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return sendMessage(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateBlockMutationRequest,\n CreateBlockMutationResponse,\n CreateBlock422,\n} from '../../types/CreateBlock.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createBlockMutationKey = () => [{ url: '/v1/blocks/' }] as const;\n\nexport type CreateBlockMutationKey = ReturnType<typeof createBlockMutationKey>;\n\n/**\n * @summary Create Block\n * {@link /v1/blocks/}\n */\nexport async function createBlock(\n data: CreateBlockMutationRequest,\n config: Partial<RequestConfig<CreateBlockMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateBlockMutationResponse,\n ResponseErrorConfig<CreateBlock422>,\n CreateBlockMutationRequest\n >({\n method: 'POST',\n url: `/v1/blocks/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @summary Create Block\n * {@link /v1/blocks/}\n */\nexport function useCreateBlock<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateBlockMutationResponse>,\n ResponseErrorConfig<CreateBlock422>,\n { data: CreateBlockMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateBlockMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createBlockMutationKey();\n\n return useMutation<\n ResponseConfig<CreateBlockMutationResponse>,\n ResponseErrorConfig<CreateBlock422>,\n { data: CreateBlockMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createBlock(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteBlockMutationResponse,\n DeleteBlockPathParams,\n DeleteBlock422,\n} from '../../types/DeleteBlock.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteBlockMutationKey = () =>\n [{ url: '/v1/blocks/{block_id}' }] as const;\n\nexport type DeleteBlockMutationKey = ReturnType<typeof deleteBlockMutationKey>;\n\n/**\n * @summary Delete Block\n * {@link /v1/blocks/:block_id}\n */\nexport async function deleteBlock(\n block_id: DeleteBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteBlockMutationResponse,\n ResponseErrorConfig<DeleteBlock422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/blocks/${block_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @summary Delete Block\n * {@link /v1/blocks/:block_id}\n */\nexport function useDeleteBlock<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteBlockMutationResponse>,\n ResponseErrorConfig<DeleteBlock422>,\n { block_id: DeleteBlockPathParams['block_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteBlockMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteBlockMutationResponse>,\n ResponseErrorConfig<DeleteBlock422>,\n { block_id: DeleteBlockPathParams['block_id'] },\n TContext\n >(\n {\n mutationFn: async ({ block_id }) => {\n return deleteBlock(block_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsForBlockQueryResponse,\n ListAgentsForBlockPathParams,\n ListAgentsForBlock422,\n} from '../../types/ListAgentsForBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentsForBlockQueryKey = (\n block_id: ListAgentsForBlockPathParams['block_id']\n) =>\n [\n { url: '/v1/blocks/:block_id/agents', params: { block_id: block_id } },\n ] as const;\n\nexport type ListAgentsForBlockQueryKey = ReturnType<\n typeof listAgentsForBlockQueryKey\n>;\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport async function listAgentsForBlock(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsForBlockQueryResponse,\n ResponseErrorConfig<ListAgentsForBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}/agents`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsForBlockQueryOptions(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsForBlockQueryKey(block_id);\n return queryOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentsForBlock(block_id, config);\n },\n });\n}\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport function useListAgentsForBlock<\n TData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsForBlockQueryKey\n>(\n block_id: ListAgentsForBlockPathParams['block_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentsForBlockQueryKey(block_id);\n\n const query = useQuery(\n {\n ...(listAgentsForBlockQueryOptions(\n block_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgentsForBlock422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsForBlockQueryResponse,\n ListAgentsForBlockPathParams,\n ListAgentsForBlock422,\n} from '../../types/ListAgentsForBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentsForBlockSuspenseQueryKey = (\n block_id: ListAgentsForBlockPathParams['block_id']\n) =>\n [\n { url: '/v1/blocks/:block_id/agents', params: { block_id: block_id } },\n ] as const;\n\nexport type ListAgentsForBlockSuspenseQueryKey = ReturnType<\n typeof listAgentsForBlockSuspenseQueryKey\n>;\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport async function listAgentsForBlockSuspense(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsForBlockQueryResponse,\n ResponseErrorConfig<ListAgentsForBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}/agents`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsForBlockSuspenseQueryOptions(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsForBlockSuspenseQueryKey(block_id);\n return queryOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentsForBlockSuspense(block_id, config);\n },\n });\n}\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport function useListAgentsForBlockSuspense<\n TData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsForBlockSuspenseQueryKey\n>(\n block_id: ListAgentsForBlockPathParams['block_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentsForBlockSuspenseQueryKey(block_id);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentsForBlockSuspenseQueryOptions(\n block_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListAgentsForBlock422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListBlocksQueryResponse,\n ListBlocksQueryParams,\n ListBlocks422,\n} from '../../types/ListBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listBlocksQueryKey = (params?: ListBlocksQueryParams) =>\n [{ url: '/v1/blocks/' }, ...(params ? [params] : [])] as const;\n\nexport type ListBlocksQueryKey = ReturnType<typeof listBlocksQueryKey>;\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport async function listBlocks(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListBlocksQueryResponse,\n ResponseErrorConfig<ListBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listBlocksQueryOptions(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listBlocksQueryKey(params);\n return queryOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n ResponseConfig<ListBlocksQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listBlocks(params, config);\n },\n });\n}\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport function useListBlocks<\n TData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListBlocksQueryKey\n>(\n params?: ListBlocksQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listBlocksQueryKey(params);\n\n const query = useQuery(\n {\n ...(listBlocksQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListBlocks422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListBlocksQueryResponse,\n ListBlocksQueryParams,\n ListBlocks422,\n} from '../../types/ListBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listBlocksSuspenseQueryKey = (params?: ListBlocksQueryParams) =>\n [{ url: '/v1/blocks/' }, ...(params ? [params] : [])] as const;\n\nexport type ListBlocksSuspenseQueryKey = ReturnType<\n typeof listBlocksSuspenseQueryKey\n>;\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport async function listBlocksSuspense(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListBlocksQueryResponse,\n ResponseErrorConfig<ListBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listBlocksSuspenseQueryOptions(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listBlocksSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n ResponseConfig<ListBlocksQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listBlocksSuspense(params, config);\n },\n });\n}\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport function useListBlocksSuspense<\n TData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListBlocksSuspenseQueryKey\n>(\n params?: ListBlocksQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listBlocksSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listBlocksSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListBlocks422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveBlockQueryResponse,\n RetrieveBlockPathParams,\n RetrieveBlock422,\n} from '../../types/RetrieveBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveBlockQueryKey = (\n block_id: RetrieveBlockPathParams['block_id']\n) => [{ url: '/v1/blocks/:block_id', params: { block_id: block_id } }] as const;\n\nexport type RetrieveBlockQueryKey = ReturnType<typeof retrieveBlockQueryKey>;\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport async function retrieveBlock(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveBlockQueryResponse,\n ResponseErrorConfig<RetrieveBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveBlockQueryOptions(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveBlockQueryKey(block_id);\n return queryOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n ResponseConfig<RetrieveBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveBlock(block_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport function useRetrieveBlock<\n TData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveBlockQueryKey\n>(\n block_id: RetrieveBlockPathParams['block_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveBlockQueryKey(block_id);\n\n const query = useQuery(\n {\n ...(retrieveBlockQueryOptions(\n block_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveBlock422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveBlockQueryResponse,\n RetrieveBlockPathParams,\n RetrieveBlock422,\n} from '../../types/RetrieveBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveBlockSuspenseQueryKey = (\n block_id: RetrieveBlockPathParams['block_id']\n) => [{ url: '/v1/blocks/:block_id', params: { block_id: block_id } }] as const;\n\nexport type RetrieveBlockSuspenseQueryKey = ReturnType<\n typeof retrieveBlockSuspenseQueryKey\n>;\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport async function retrieveBlockSuspense(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveBlockQueryResponse,\n ResponseErrorConfig<RetrieveBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveBlockSuspenseQueryOptions(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveBlockSuspenseQueryKey(block_id);\n return queryOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n ResponseConfig<RetrieveBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveBlockSuspense(block_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport function useRetrieveBlockSuspense<\n TData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveBlockSuspenseQueryKey\n>(\n block_id: RetrieveBlockPathParams['block_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveBlockSuspenseQueryKey(block_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveBlockSuspenseQueryOptions(\n block_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveBlock422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest,\n ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse,\n ClientSideAccessTokensCreateClientSideAccessToken400,\n} from '../../../types/clientSideAccessTokens/CreateClientSideAccessToken.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const clientSideAccessTokensCreateClientSideAccessTokenMutationKey =\n () => [{ url: '/v1/client-side-access-tokens' }] as const;\n\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutationKey =\n ReturnType<\n typeof clientSideAccessTokensCreateClientSideAccessTokenMutationKey\n >;\n\n/**\n * @description Create a new client side access token with the specified configuration.\n * @summary Create Client Side Access Token\n * {@link /v1/client-side-access-tokens}\n */\nexport async function clientSideAccessTokensCreateClientSideAccessToken(\n data: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest,\n config: Partial<\n RequestConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse,\n ResponseErrorConfig<ClientSideAccessTokensCreateClientSideAccessToken400>,\n ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest\n >({\n method: 'POST',\n url: `/v1/client-side-access-tokens`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new client side access token with the specified configuration.\n * @summary Create Client Side Access Token\n * {@link /v1/client-side-access-tokens}\n */\nexport function useClientSideAccessTokensCreateClientSideAccessToken<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensCreateClientSideAccessToken400>,\n {\n data: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ??\n clientSideAccessTokensCreateClientSideAccessTokenMutationKey();\n\n return useMutation<\n ResponseConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensCreateClientSideAccessToken400>,\n { data: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return clientSideAccessTokensCreateClientSideAccessToken(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest,\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse,\n ClientSideAccessTokensDeleteClientSideAccessTokenPathParams,\n ClientSideAccessTokensDeleteClientSideAccessToken400,\n} from '../../../types/clientSideAccessTokens/DeleteClientSideAccessToken.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const clientSideAccessTokensDeleteClientSideAccessTokenMutationKey =\n () => [{ url: '/v1/client-side-access-tokens/{token}' }] as const;\n\nexport type ClientSideAccessTokensDeleteClientSideAccessTokenMutationKey =\n ReturnType<\n typeof clientSideAccessTokensDeleteClientSideAccessTokenMutationKey\n >;\n\n/**\n * @description Delete a client side access token.\n * @summary Delete Client Side Access Token\n * {@link /v1/client-side-access-tokens/:token}\n */\nexport async function clientSideAccessTokensDeleteClientSideAccessToken(\n token: ClientSideAccessTokensDeleteClientSideAccessTokenPathParams['token'],\n data?: ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest,\n config: Partial<\n RequestConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse,\n ResponseErrorConfig<ClientSideAccessTokensDeleteClientSideAccessToken400>,\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest\n >({\n method: 'DELETE',\n url: `/v1/client-side-access-tokens/${token}`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a client side access token.\n * @summary Delete Client Side Access Token\n * {@link /v1/client-side-access-tokens/:token}\n */\nexport function useClientSideAccessTokensDeleteClientSideAccessToken<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensDeleteClientSideAccessToken400>,\n {\n token: ClientSideAccessTokensDeleteClientSideAccessTokenPathParams['token'];\n data?: ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ??\n clientSideAccessTokensDeleteClientSideAccessTokenMutationKey();\n\n return useMutation<\n ResponseConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensDeleteClientSideAccessToken400>,\n {\n token: ClientSideAccessTokensDeleteClientSideAccessTokenPathParams['token'];\n data?: ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ token, data }) => {\n return clientSideAccessTokensDeleteClientSideAccessToken(\n token,\n data,\n config\n );\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateGroupMutationRequest,\n CreateGroupMutationResponse,\n CreateGroupHeaderParams,\n CreateGroup422,\n} from '../../types/CreateGroup.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createGroupMutationKey = () => [{ url: '/v1/groups/' }] as const;\n\nexport type CreateGroupMutationKey = ReturnType<typeof createGroupMutationKey>;\n\n/**\n * @description Create a new multi-agent group with the specified configuration.\n * @summary Create Group\n * {@link /v1/groups/}\n */\nexport async function createGroup(\n data: CreateGroupMutationRequest,\n headers?: CreateGroupHeaderParams,\n config: Partial<RequestConfig<CreateGroupMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateGroupMutationResponse,\n ResponseErrorConfig<CreateGroup422>,\n CreateGroupMutationRequest\n >({\n method: 'POST',\n url: `/v1/groups/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @description Create a new multi-agent group with the specified configuration.\n * @summary Create Group\n * {@link /v1/groups/}\n */\nexport function useCreateGroup<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateGroupMutationResponse>,\n ResponseErrorConfig<CreateGroup422>,\n { data: CreateGroupMutationRequest; headers?: CreateGroupHeaderParams },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateGroupMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createGroupMutationKey();\n\n return useMutation<\n ResponseConfig<CreateGroupMutationResponse>,\n ResponseErrorConfig<CreateGroup422>,\n { data: CreateGroupMutationRequest; headers?: CreateGroupHeaderParams },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return createGroup(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteGroupMutationResponse,\n DeleteGroupPathParams,\n DeleteGroup422,\n} from '../../types/DeleteGroup.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteGroupMutationKey = () =>\n [{ url: '/v1/groups/{group_id}' }] as const;\n\nexport type DeleteGroupMutationKey = ReturnType<typeof deleteGroupMutationKey>;\n\n/**\n * @description Delete a multi-agent group.\n * @summary Delete Group\n * {@link /v1/groups/:group_id}\n */\nexport async function deleteGroup(\n group_id: DeleteGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteGroupMutationResponse,\n ResponseErrorConfig<DeleteGroup422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/groups/${group_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a multi-agent group.\n * @summary Delete Group\n * {@link /v1/groups/:group_id}\n */\nexport function useDeleteGroup<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteGroupMutationResponse>,\n ResponseErrorConfig<DeleteGroup422>,\n { group_id: DeleteGroupPathParams['group_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteGroupMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteGroupMutationResponse>,\n ResponseErrorConfig<DeleteGroup422>,\n { group_id: DeleteGroupPathParams['group_id'] },\n TContext\n >(\n {\n mutationFn: async ({ group_id }) => {\n return deleteGroup(group_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupMessagesQueryResponse,\n ListGroupMessagesPathParams,\n ListGroupMessagesQueryParams,\n ListGroupMessages422,\n} from '../../types/ListGroupMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listGroupMessagesQueryKey = (\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams\n) =>\n [\n { url: '/v1/groups/:group_id/messages', params: { group_id: group_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListGroupMessagesQueryKey = ReturnType<\n typeof listGroupMessagesQueryKey\n>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport async function listGroupMessages(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupMessagesQueryResponse,\n ResponseErrorConfig<ListGroupMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupMessagesQueryOptions(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupMessagesQueryKey(group_id, params);\n return queryOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n ResponseConfig<ListGroupMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroupMessages(group_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport function useListGroupMessages<\n TData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListGroupMessagesQueryKey\n>(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listGroupMessagesQueryKey(group_id, params);\n\n const query = useQuery(\n {\n ...(listGroupMessagesQueryOptions(\n group_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListGroupMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupMessagesQueryResponse,\n ListGroupMessagesPathParams,\n ListGroupMessagesQueryParams,\n ListGroupMessages422,\n} from '../../types/ListGroupMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listGroupMessagesSuspenseQueryKey = (\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams\n) =>\n [\n { url: '/v1/groups/:group_id/messages', params: { group_id: group_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListGroupMessagesSuspenseQueryKey = ReturnType<\n typeof listGroupMessagesSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport async function listGroupMessagesSuspense(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupMessagesQueryResponse,\n ResponseErrorConfig<ListGroupMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupMessagesSuspenseQueryOptions(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupMessagesSuspenseQueryKey(group_id, params);\n return queryOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n ResponseConfig<ListGroupMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroupMessagesSuspense(group_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport function useListGroupMessagesSuspense<\n TData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListGroupMessagesSuspenseQueryKey\n>(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listGroupMessagesSuspenseQueryKey(group_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listGroupMessagesSuspenseQueryOptions(\n group_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListGroupMessages422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupsQueryResponse,\n ListGroupsQueryParams,\n ListGroups422,\n} from '../../types/ListGroups.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listGroupsQueryKey = (params?: ListGroupsQueryParams) =>\n [{ url: '/v1/groups/' }, ...(params ? [params] : [])] as const;\n\nexport type ListGroupsQueryKey = ReturnType<typeof listGroupsQueryKey>;\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport async function listGroups(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupsQueryResponse,\n ResponseErrorConfig<ListGroups422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupsQueryOptions(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n ResponseConfig<ListGroupsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroups(params, config);\n },\n });\n}\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport function useListGroups<\n TData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryKey extends QueryKey = ListGroupsQueryKey\n>(\n params?: ListGroupsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listGroupsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listGroupsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListGroups422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupsQueryResponse,\n ListGroupsQueryParams,\n ListGroups422,\n} from '../../types/ListGroups.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listGroupsSuspenseQueryKey = (params?: ListGroupsQueryParams) =>\n [{ url: '/v1/groups/' }, ...(params ? [params] : [])] as const;\n\nexport type ListGroupsSuspenseQueryKey = ReturnType<\n typeof listGroupsSuspenseQueryKey\n>;\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport async function listGroupsSuspense(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupsQueryResponse,\n ResponseErrorConfig<ListGroups422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupsSuspenseQueryOptions(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n ResponseConfig<ListGroupsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroupsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport function useListGroupsSuspense<\n TData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryKey extends QueryKey = ListGroupsSuspenseQueryKey\n>(\n params?: ListGroupsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listGroupsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listGroupsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListGroups422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveGroupQueryResponse,\n RetrieveGroupPathParams,\n RetrieveGroup422,\n} from '../../types/RetrieveGroup.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveGroupQueryKey = (\n group_id: RetrieveGroupPathParams['group_id']\n) => [{ url: '/v1/groups/:group_id', params: { group_id: group_id } }] as const;\n\nexport type RetrieveGroupQueryKey = ReturnType<typeof retrieveGroupQueryKey>;\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport async function retrieveGroup(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveGroupQueryResponse,\n ResponseErrorConfig<RetrieveGroup422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveGroupQueryOptions(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveGroupQueryKey(group_id);\n return queryOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n ResponseConfig<RetrieveGroupQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveGroup(group_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport function useRetrieveGroup<\n TData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryKey extends QueryKey = RetrieveGroupQueryKey\n>(\n group_id: RetrieveGroupPathParams['group_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveGroupQueryKey(group_id);\n\n const query = useQuery(\n {\n ...(retrieveGroupQueryOptions(\n group_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveGroup422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveGroupQueryResponse,\n RetrieveGroupPathParams,\n RetrieveGroup422,\n} from '../../types/RetrieveGroup.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveGroupSuspenseQueryKey = (\n group_id: RetrieveGroupPathParams['group_id']\n) => [{ url: '/v1/groups/:group_id', params: { group_id: group_id } }] as const;\n\nexport type RetrieveGroupSuspenseQueryKey = ReturnType<\n typeof retrieveGroupSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport async function retrieveGroupSuspense(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveGroupQueryResponse,\n ResponseErrorConfig<RetrieveGroup422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveGroupSuspenseQueryOptions(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveGroupSuspenseQueryKey(group_id);\n return queryOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n ResponseConfig<RetrieveGroupQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveGroupSuspense(group_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport function useRetrieveGroupSuspense<\n TData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryKey extends QueryKey = RetrieveGroupSuspenseQueryKey\n>(\n group_id: RetrieveGroupPathParams['group_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveGroupSuspenseQueryKey(group_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveGroupSuspenseQueryOptions(\n group_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveGroup422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n SendGroupMessageMutationRequest,\n SendGroupMessageMutationResponse,\n SendGroupMessagePathParams,\n SendGroupMessage422,\n} from '../../types/SendGroupMessage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const sendGroupMessageMutationKey = () =>\n [{ url: '/v1/groups/{group_id}/messages' }] as const;\n\nexport type SendGroupMessageMutationKey = ReturnType<\n typeof sendGroupMessageMutationKey\n>;\n\n/**\n * @description Process a user message and return the group's response.This endpoint accepts a message from a user and processes it through through agents in the group based on the specified pattern\n * @summary Send Group Message\n * {@link /v1/groups/:group_id/messages}\n */\nexport async function sendGroupMessage(\n group_id: SendGroupMessagePathParams['group_id'],\n data: SendGroupMessageMutationRequest,\n config: Partial<RequestConfig<SendGroupMessageMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n SendGroupMessageMutationResponse,\n ResponseErrorConfig<SendGroupMessage422>,\n SendGroupMessageMutationRequest\n >({\n method: 'POST',\n url: `/v1/groups/${group_id}/messages`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the group's response.This endpoint accepts a message from a user and processes it through through agents in the group based on the specified pattern\n * @summary Send Group Message\n * {@link /v1/groups/:group_id/messages}\n */\nexport function useSendGroupMessage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<SendGroupMessageMutationResponse>,\n ResponseErrorConfig<SendGroupMessage422>,\n {\n group_id: SendGroupMessagePathParams['group_id'];\n data: SendGroupMessageMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<SendGroupMessageMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? sendGroupMessageMutationKey();\n\n return useMutation<\n ResponseConfig<SendGroupMessageMutationResponse>,\n ResponseErrorConfig<SendGroupMessage422>,\n {\n group_id: SendGroupMessagePathParams['group_id'];\n data: SendGroupMessageMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ group_id, data }) => {\n return sendGroupMessage(group_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n SendGroupMessageStreamingMutationRequest,\n SendGroupMessageStreamingMutationResponse,\n SendGroupMessageStreamingPathParams,\n SendGroupMessageStreaming422,\n} from '../../types/SendGroupMessageStreaming.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const sendGroupMessageStreamingMutationKey = () =>\n [{ url: '/v1/groups/{group_id}/messages/stream' }] as const;\n\nexport type SendGroupMessageStreamingMutationKey = ReturnType<\n typeof sendGroupMessageStreamingMutationKey\n>;\n\n/**\n * @description Process a user message and return the group's responses.This endpoint accepts a message from a user and processes it through agents in the group based on the specified pattern.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Group Message Streaming\n * {@link /v1/groups/:group_id/messages/stream}\n */\nexport async function sendGroupMessageStreaming(\n group_id: SendGroupMessageStreamingPathParams['group_id'],\n data: SendGroupMessageStreamingMutationRequest,\n config: Partial<RequestConfig<SendGroupMessageStreamingMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n SendGroupMessageStreamingMutationResponse,\n ResponseErrorConfig<SendGroupMessageStreaming422>,\n SendGroupMessageStreamingMutationRequest\n >({\n method: 'POST',\n url: `/v1/groups/${group_id}/messages/stream`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the group's responses.This endpoint accepts a message from a user and processes it through agents in the group based on the specified pattern.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Group Message Streaming\n * {@link /v1/groups/:group_id/messages/stream}\n */\nexport function useSendGroupMessageStreaming<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<SendGroupMessageStreamingMutationResponse>,\n ResponseErrorConfig<SendGroupMessageStreaming422>,\n {\n group_id: SendGroupMessageStreamingPathParams['group_id'];\n data: SendGroupMessageStreamingMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<SendGroupMessageStreamingMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? sendGroupMessageStreamingMutationKey();\n\n return useMutation<\n ResponseConfig<SendGroupMessageStreamingMutationResponse>,\n ResponseErrorConfig<SendGroupMessageStreaming422>,\n {\n group_id: SendGroupMessageStreamingPathParams['group_id'];\n data: SendGroupMessageStreamingMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ group_id, data }) => {\n return sendGroupMessageStreaming(group_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { HealthCheckQueryResponse } from '../../types/HealthCheck.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const healthCheckQueryKey = () => [{ url: '/v1/health/' }] as const;\n\nexport type HealthCheckQueryKey = ReturnType<typeof healthCheckQueryKey>;\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport async function healthCheck(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n HealthCheckQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/health/`, ...requestConfig });\n return res;\n}\n\nexport function healthCheckQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = healthCheckQueryKey();\n return queryOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<HealthCheckQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return healthCheck(config);\n },\n });\n}\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport function useHealthCheck<\n TData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryKey extends QueryKey = HealthCheckQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? healthCheckQueryKey();\n\n const query = useQuery(\n {\n ...(healthCheckQueryOptions(config) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { HealthCheckQueryResponse } from '../../types/HealthCheck.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const healthCheckSuspenseQueryKey = () =>\n [{ url: '/v1/health/' }] as const;\n\nexport type HealthCheckSuspenseQueryKey = ReturnType<\n typeof healthCheckSuspenseQueryKey\n>;\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport async function healthCheckSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n HealthCheckQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/health/`, ...requestConfig });\n return res;\n}\n\nexport function healthCheckSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = healthCheckSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<HealthCheckQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return healthCheckSuspense(config);\n },\n });\n}\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport function useHealthCheckSuspense<\n TData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryKey extends QueryKey = HealthCheckSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? healthCheckSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(healthCheckSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateIdentityMutationRequest,\n CreateIdentityMutationResponse,\n CreateIdentityHeaderParams,\n CreateIdentity422,\n} from '../../types/CreateIdentity.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createIdentityMutationKey = () =>\n [{ url: '/v1/identities/' }] as const;\n\nexport type CreateIdentityMutationKey = ReturnType<\n typeof createIdentityMutationKey\n>;\n\n/**\n * @summary Create Identity\n * {@link /v1/identities/}\n */\nexport async function createIdentity(\n data: CreateIdentityMutationRequest,\n headers?: CreateIdentityHeaderParams,\n config: Partial<RequestConfig<CreateIdentityMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateIdentityMutationResponse,\n ResponseErrorConfig<CreateIdentity422>,\n CreateIdentityMutationRequest\n >({\n method: 'POST',\n url: `/v1/identities/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @summary Create Identity\n * {@link /v1/identities/}\n */\nexport function useCreateIdentity<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateIdentityMutationResponse>,\n ResponseErrorConfig<CreateIdentity422>,\n {\n data: CreateIdentityMutationRequest;\n headers?: CreateIdentityHeaderParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateIdentityMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createIdentityMutationKey();\n\n return useMutation<\n ResponseConfig<CreateIdentityMutationResponse>,\n ResponseErrorConfig<CreateIdentity422>,\n {\n data: CreateIdentityMutationRequest;\n headers?: CreateIdentityHeaderParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return createIdentity(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteIdentityMutationResponse,\n DeleteIdentityPathParams,\n DeleteIdentity422,\n} from '../../types/DeleteIdentity.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteIdentityMutationKey = () =>\n [{ url: '/v1/identities/{identity_id}' }] as const;\n\nexport type DeleteIdentityMutationKey = ReturnType<\n typeof deleteIdentityMutationKey\n>;\n\n/**\n * @description Delete an identity by its identifier key\n * @summary Delete Identity\n * {@link /v1/identities/:identity_id}\n */\nexport async function deleteIdentity(\n identity_id: DeleteIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteIdentityMutationResponse,\n ResponseErrorConfig<DeleteIdentity422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/identities/${identity_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete an identity by its identifier key\n * @summary Delete Identity\n * {@link /v1/identities/:identity_id}\n */\nexport function useDeleteIdentity<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteIdentityMutationResponse>,\n ResponseErrorConfig<DeleteIdentity422>,\n { identity_id: DeleteIdentityPathParams['identity_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteIdentityMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteIdentityMutationResponse>,\n ResponseErrorConfig<DeleteIdentity422>,\n { identity_id: DeleteIdentityPathParams['identity_id'] },\n TContext\n >(\n {\n mutationFn: async ({ identity_id }) => {\n return deleteIdentity(identity_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListIdentitiesQueryResponse,\n ListIdentitiesQueryParams,\n ListIdentities422,\n} from '../../types/ListIdentities.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listIdentitiesQueryKey = (params?: ListIdentitiesQueryParams) =>\n [{ url: '/v1/identities/' }, ...(params ? [params] : [])] as const;\n\nexport type ListIdentitiesQueryKey = ReturnType<typeof listIdentitiesQueryKey>;\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport async function listIdentities(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListIdentitiesQueryResponse,\n ResponseErrorConfig<ListIdentities422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listIdentitiesQueryOptions(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listIdentitiesQueryKey(params);\n return queryOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n ResponseConfig<ListIdentitiesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listIdentities(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport function useListIdentities<\n TData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryKey extends QueryKey = ListIdentitiesQueryKey\n>(\n params?: ListIdentitiesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listIdentitiesQueryKey(params);\n\n const query = useQuery(\n {\n ...(listIdentitiesQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListIdentities422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListIdentitiesQueryResponse,\n ListIdentitiesQueryParams,\n ListIdentities422,\n} from '../../types/ListIdentities.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listIdentitiesSuspenseQueryKey = (\n params?: ListIdentitiesQueryParams\n) => [{ url: '/v1/identities/' }, ...(params ? [params] : [])] as const;\n\nexport type ListIdentitiesSuspenseQueryKey = ReturnType<\n typeof listIdentitiesSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport async function listIdentitiesSuspense(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListIdentitiesQueryResponse,\n ResponseErrorConfig<ListIdentities422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listIdentitiesSuspenseQueryOptions(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listIdentitiesSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n ResponseConfig<ListIdentitiesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listIdentitiesSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport function useListIdentitiesSuspense<\n TData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryKey extends QueryKey = ListIdentitiesSuspenseQueryKey\n>(\n params?: ListIdentitiesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listIdentitiesSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listIdentitiesSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListIdentities422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveIdentityQueryResponse,\n RetrieveIdentityPathParams,\n RetrieveIdentity422,\n} from '../../types/RetrieveIdentity.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveIdentityQueryKey = (\n identity_id: RetrieveIdentityPathParams['identity_id']\n) =>\n [\n {\n url: '/v1/identities/:identity_id',\n params: { identity_id: identity_id },\n },\n ] as const;\n\nexport type RetrieveIdentityQueryKey = ReturnType<\n typeof retrieveIdentityQueryKey\n>;\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport async function retrieveIdentity(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveIdentityQueryResponse,\n ResponseErrorConfig<RetrieveIdentity422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/${identity_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveIdentityQueryOptions(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveIdentityQueryKey(identity_id);\n return queryOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n ResponseConfig<RetrieveIdentityQueryResponse>,\n typeof queryKey\n >({\n enabled: !!identity_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveIdentity(identity_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport function useRetrieveIdentity<\n TData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryKey extends QueryKey = RetrieveIdentityQueryKey\n>(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveIdentityQueryKey(identity_id);\n\n const query = useQuery(\n {\n ...(retrieveIdentityQueryOptions(\n identity_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveIdentity422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveIdentityQueryResponse,\n RetrieveIdentityPathParams,\n RetrieveIdentity422,\n} from '../../types/RetrieveIdentity.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveIdentitySuspenseQueryKey = (\n identity_id: RetrieveIdentityPathParams['identity_id']\n) =>\n [\n {\n url: '/v1/identities/:identity_id',\n params: { identity_id: identity_id },\n },\n ] as const;\n\nexport type RetrieveIdentitySuspenseQueryKey = ReturnType<\n typeof retrieveIdentitySuspenseQueryKey\n>;\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport async function retrieveIdentitySuspense(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveIdentityQueryResponse,\n ResponseErrorConfig<RetrieveIdentity422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/${identity_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveIdentitySuspenseQueryOptions(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveIdentitySuspenseQueryKey(identity_id);\n return queryOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n ResponseConfig<RetrieveIdentityQueryResponse>,\n typeof queryKey\n >({\n enabled: !!identity_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveIdentitySuspense(identity_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport function useRetrieveIdentitySuspense<\n TData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryKey extends QueryKey = RetrieveIdentitySuspenseQueryKey\n>(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveIdentitySuspenseQueryKey(identity_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveIdentitySuspenseQueryOptions(\n identity_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveIdentity422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UpsertIdentityMutationRequest,\n UpsertIdentityMutationResponse,\n UpsertIdentityHeaderParams,\n UpsertIdentity422,\n} from '../../types/UpsertIdentity.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const upsertIdentityMutationKey = () =>\n [{ url: '/v1/identities/' }] as const;\n\nexport type UpsertIdentityMutationKey = ReturnType<\n typeof upsertIdentityMutationKey\n>;\n\n/**\n * @summary Upsert Identity\n * {@link /v1/identities/}\n */\nexport async function upsertIdentity(\n data: UpsertIdentityMutationRequest,\n headers?: UpsertIdentityHeaderParams,\n config: Partial<RequestConfig<UpsertIdentityMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n UpsertIdentityMutationResponse,\n ResponseErrorConfig<UpsertIdentity422>,\n UpsertIdentityMutationRequest\n >({\n method: 'PUT',\n url: `/v1/identities/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @summary Upsert Identity\n * {@link /v1/identities/}\n */\nexport function useUpsertIdentity<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UpsertIdentityMutationResponse>,\n ResponseErrorConfig<UpsertIdentity422>,\n {\n data: UpsertIdentityMutationRequest;\n headers?: UpsertIdentityHeaderParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UpsertIdentityMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? upsertIdentityMutationKey();\n\n return useMutation<\n ResponseConfig<UpsertIdentityMutationResponse>,\n ResponseErrorConfig<UpsertIdentity422>,\n {\n data: UpsertIdentityMutationRequest;\n headers?: UpsertIdentityHeaderParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return upsertIdentity(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UpsertIdentityPropertiesMutationRequest,\n UpsertIdentityPropertiesMutationResponse,\n UpsertIdentityPropertiesPathParams,\n UpsertIdentityProperties422,\n} from '../../types/UpsertIdentityProperties.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const upsertIdentityPropertiesMutationKey = () =>\n [{ url: '/v1/identities/{identity_id}/properties' }] as const;\n\nexport type UpsertIdentityPropertiesMutationKey = ReturnType<\n typeof upsertIdentityPropertiesMutationKey\n>;\n\n/**\n * @summary Upsert Identity Properties\n * {@link /v1/identities/:identity_id/properties}\n */\nexport async function upsertIdentityProperties(\n identity_id: UpsertIdentityPropertiesPathParams['identity_id'],\n data?: UpsertIdentityPropertiesMutationRequest,\n config: Partial<RequestConfig<UpsertIdentityPropertiesMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n UpsertIdentityPropertiesMutationResponse,\n ResponseErrorConfig<UpsertIdentityProperties422>,\n UpsertIdentityPropertiesMutationRequest\n >({\n method: 'PUT',\n url: `/v1/identities/${identity_id}/properties`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @summary Upsert Identity Properties\n * {@link /v1/identities/:identity_id/properties}\n */\nexport function useUpsertIdentityProperties<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UpsertIdentityPropertiesMutationResponse>,\n ResponseErrorConfig<UpsertIdentityProperties422>,\n {\n identity_id: UpsertIdentityPropertiesPathParams['identity_id'];\n data?: UpsertIdentityPropertiesMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UpsertIdentityPropertiesMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? upsertIdentityPropertiesMutationKey();\n\n return useMutation<\n ResponseConfig<UpsertIdentityPropertiesMutationResponse>,\n ResponseErrorConfig<UpsertIdentityProperties422>,\n {\n identity_id: UpsertIdentityPropertiesPathParams['identity_id'];\n data?: UpsertIdentityPropertiesMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ identity_id, data }) => {\n return upsertIdentityProperties(identity_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteJobMutationResponse,\n DeleteJobPathParams,\n DeleteJob422,\n} from '../../types/DeleteJob.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteJobMutationKey = () =>\n [{ url: '/v1/jobs/{job_id}' }] as const;\n\nexport type DeleteJobMutationKey = ReturnType<typeof deleteJobMutationKey>;\n\n/**\n * @description Delete a job by its job_id.\n * @summary Delete Job\n * {@link /v1/jobs/:job_id}\n */\nexport async function deleteJob(\n job_id: DeleteJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteJobMutationResponse,\n ResponseErrorConfig<DeleteJob422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/jobs/${job_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a job by its job_id.\n * @summary Delete Job\n * {@link /v1/jobs/:job_id}\n */\nexport function useDeleteJob<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteJobMutationResponse>,\n ResponseErrorConfig<DeleteJob422>,\n { job_id: DeleteJobPathParams['job_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteJobMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteJobMutationResponse>,\n ResponseErrorConfig<DeleteJob422>,\n { job_id: DeleteJobPathParams['job_id'] },\n TContext\n >(\n {\n mutationFn: async ({ job_id }) => {\n return deleteJob(job_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveJobsQueryResponse,\n ListActiveJobs422,\n} from '../../types/ListActiveJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listActiveJobsQueryKey = () =>\n [{ url: '/v1/jobs/active' }] as const;\n\nexport type ListActiveJobsQueryKey = ReturnType<typeof listActiveJobsQueryKey>;\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport async function listActiveJobs(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveJobsQueryResponse,\n ResponseErrorConfig<ListActiveJobs422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/active`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveJobsQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveJobsQueryKey();\n return queryOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n ResponseConfig<ListActiveJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveJobs(config);\n },\n });\n}\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport function useListActiveJobs<\n TData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveJobsQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listActiveJobsQueryKey();\n\n const query = useQuery(\n {\n ...(listActiveJobsQueryOptions(\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListActiveJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveJobsQueryResponse,\n ListActiveJobs422,\n} from '../../types/ListActiveJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listActiveJobsSuspenseQueryKey = () =>\n [{ url: '/v1/jobs/active' }] as const;\n\nexport type ListActiveJobsSuspenseQueryKey = ReturnType<\n typeof listActiveJobsSuspenseQueryKey\n>;\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport async function listActiveJobsSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveJobsQueryResponse,\n ResponseErrorConfig<ListActiveJobs422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/active`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveJobsSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveJobsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n ResponseConfig<ListActiveJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveJobsSuspense(config);\n },\n });\n}\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport function useListActiveJobsSuspense<\n TData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveJobsSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listActiveJobsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listActiveJobsSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListActiveJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListJobsQueryResponse,\n ListJobsQueryParams,\n ListJobs422,\n} from '../../types/ListJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listJobsQueryKey = (params?: ListJobsQueryParams) =>\n [{ url: '/v1/jobs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListJobsQueryKey = ReturnType<typeof listJobsQueryKey>;\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport async function listJobs(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListJobsQueryResponse,\n ResponseErrorConfig<ListJobs422>,\n unknown\n >({ method: 'GET', url: `/v1/jobs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listJobsQueryOptions(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listJobsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n ResponseConfig<ListJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listJobs(params, config);\n },\n });\n}\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport function useListJobs<\n TData = ResponseConfig<ListJobsQueryResponse>,\n TQueryData = ResponseConfig<ListJobsQueryResponse>,\n TQueryKey extends QueryKey = ListJobsQueryKey\n>(\n params?: ListJobsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listJobsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listJobsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListJobsQueryResponse,\n ListJobsQueryParams,\n ListJobs422,\n} from '../../types/ListJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listJobsSuspenseQueryKey = (params?: ListJobsQueryParams) =>\n [{ url: '/v1/jobs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListJobsSuspenseQueryKey = ReturnType<\n typeof listJobsSuspenseQueryKey\n>;\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport async function listJobsSuspense(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListJobsQueryResponse,\n ResponseErrorConfig<ListJobs422>,\n unknown\n >({ method: 'GET', url: `/v1/jobs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listJobsSuspenseQueryOptions(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listJobsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n ResponseConfig<ListJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listJobsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport function useListJobsSuspense<\n TData = ResponseConfig<ListJobsQueryResponse>,\n TQueryData = ResponseConfig<ListJobsQueryResponse>,\n TQueryKey extends QueryKey = ListJobsSuspenseQueryKey\n>(\n params?: ListJobsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listJobsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listJobsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveJobQueryResponse,\n RetrieveJobPathParams,\n RetrieveJob422,\n} from '../../types/RetrieveJob.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveJobQueryKey = (job_id: RetrieveJobPathParams['job_id']) =>\n [{ url: '/v1/jobs/:job_id', params: { job_id: job_id } }] as const;\n\nexport type RetrieveJobQueryKey = ReturnType<typeof retrieveJobQueryKey>;\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport async function retrieveJob(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveJobQueryResponse,\n ResponseErrorConfig<RetrieveJob422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/${job_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveJobQueryOptions(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveJobQueryKey(job_id);\n return queryOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n ResponseConfig<RetrieveJobQueryResponse>,\n typeof queryKey\n >({\n enabled: !!job_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveJob(job_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport function useRetrieveJob<\n TData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryKey extends QueryKey = RetrieveJobQueryKey\n>(\n job_id: RetrieveJobPathParams['job_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveJobQueryKey(job_id);\n\n const query = useQuery(\n {\n ...(retrieveJobQueryOptions(\n job_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveJob422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveJobQueryResponse,\n RetrieveJobPathParams,\n RetrieveJob422,\n} from '../../types/RetrieveJob.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveJobSuspenseQueryKey = (\n job_id: RetrieveJobPathParams['job_id']\n) => [{ url: '/v1/jobs/:job_id', params: { job_id: job_id } }] as const;\n\nexport type RetrieveJobSuspenseQueryKey = ReturnType<\n typeof retrieveJobSuspenseQueryKey\n>;\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport async function retrieveJobSuspense(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveJobQueryResponse,\n ResponseErrorConfig<RetrieveJob422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/${job_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveJobSuspenseQueryOptions(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveJobSuspenseQueryKey(job_id);\n return queryOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n ResponseConfig<RetrieveJobQueryResponse>,\n typeof queryKey\n >({\n enabled: !!job_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveJobSuspense(job_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport function useRetrieveJobSuspense<\n TData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryKey extends QueryKey = RetrieveJobSuspenseQueryKey\n>(\n job_id: RetrieveJobPathParams['job_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveJobSuspenseQueryKey(job_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveJobSuspenseQueryOptions(\n job_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveJob422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListEmbeddingModelsQueryResponse } from '../../types/ListEmbeddingModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listEmbeddingModelsQueryKey = () =>\n [{ url: '/v1/models/embedding' }] as const;\n\nexport type ListEmbeddingModelsQueryKey = ReturnType<\n typeof listEmbeddingModelsQueryKey\n>;\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport async function listEmbeddingModels(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListEmbeddingModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({\n method: 'GET',\n url: `/v1/models/embedding`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listEmbeddingModelsQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listEmbeddingModelsQueryKey();\n return queryOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listEmbeddingModels(config);\n },\n });\n}\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport function useListEmbeddingModels<\n TData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryKey extends QueryKey = ListEmbeddingModelsQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listEmbeddingModelsQueryKey();\n\n const query = useQuery(\n {\n ...(listEmbeddingModelsQueryOptions(\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListEmbeddingModelsQueryResponse } from '../../types/ListEmbeddingModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listEmbeddingModelsSuspenseQueryKey = () =>\n [{ url: '/v1/models/embedding' }] as const;\n\nexport type ListEmbeddingModelsSuspenseQueryKey = ReturnType<\n typeof listEmbeddingModelsSuspenseQueryKey\n>;\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport async function listEmbeddingModelsSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListEmbeddingModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({\n method: 'GET',\n url: `/v1/models/embedding`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listEmbeddingModelsSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listEmbeddingModelsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listEmbeddingModelsSuspense(config);\n },\n });\n}\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport function useListEmbeddingModelsSuspense<\n TData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryKey extends QueryKey = ListEmbeddingModelsSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listEmbeddingModelsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listEmbeddingModelsSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListModelsQueryResponse } from '../../types/ListModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listModelsQueryKey = () => [{ url: '/v1/models/' }] as const;\n\nexport type ListModelsQueryKey = ReturnType<typeof listModelsQueryKey>;\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport async function listModels(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/models/`, ...requestConfig });\n return res;\n}\n\nexport function listModelsQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listModelsQueryKey();\n return queryOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listModels(config);\n },\n });\n}\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport function useListModels<\n TData = ResponseConfig<ListModelsQueryResponse>,\n TQueryData = ResponseConfig<ListModelsQueryResponse>,\n TQueryKey extends QueryKey = ListModelsQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listModelsQueryKey();\n\n const query = useQuery(\n {\n ...(listModelsQueryOptions(config) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListModelsQueryResponse } from '../../types/ListModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listModelsSuspenseQueryKey = () =>\n [{ url: '/v1/models/' }] as const;\n\nexport type ListModelsSuspenseQueryKey = ReturnType<\n typeof listModelsSuspenseQueryKey\n>;\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport async function listModelsSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/models/`, ...requestConfig });\n return res;\n}\n\nexport function listModelsSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listModelsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listModelsSuspense(config);\n },\n });\n}\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport function useListModelsSuspense<\n TData = ResponseConfig<ListModelsQueryResponse>,\n TQueryData = ResponseConfig<ListModelsQueryResponse>,\n TQueryKey extends QueryKey = ListModelsSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listModelsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listModelsSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateProviderMutationRequest,\n CreateProviderMutationResponse,\n CreateProvider422,\n} from '../../types/CreateProvider.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createProviderMutationKey = () =>\n [{ url: '/v1/providers/' }] as const;\n\nexport type CreateProviderMutationKey = ReturnType<\n typeof createProviderMutationKey\n>;\n\n/**\n * @description Create a new custom provider\n * @summary Create Provider\n * {@link /v1/providers/}\n */\nexport async function createProvider(\n data: CreateProviderMutationRequest,\n config: Partial<RequestConfig<CreateProviderMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateProviderMutationResponse,\n ResponseErrorConfig<CreateProvider422>,\n CreateProviderMutationRequest\n >({\n method: 'POST',\n url: `/v1/providers/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new custom provider\n * @summary Create Provider\n * {@link /v1/providers/}\n */\nexport function useCreateProvider<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateProviderMutationResponse>,\n ResponseErrorConfig<CreateProvider422>,\n { data: CreateProviderMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateProviderMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createProviderMutationKey();\n\n return useMutation<\n ResponseConfig<CreateProviderMutationResponse>,\n ResponseErrorConfig<CreateProvider422>,\n { data: CreateProviderMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createProvider(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteProviderMutationResponse,\n DeleteProviderQueryParams,\n DeleteProvider422,\n} from '../../types/DeleteProvider.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteProviderMutationKey = () =>\n [{ url: '/v1/providers/' }] as const;\n\nexport type DeleteProviderMutationKey = ReturnType<\n typeof deleteProviderMutationKey\n>;\n\n/**\n * @description Delete an existing custom provider\n * @summary Delete Provider\n * {@link /v1/providers/}\n */\nexport async function deleteProvider(\n params: DeleteProviderQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteProviderMutationResponse,\n ResponseErrorConfig<DeleteProvider422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/providers/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete an existing custom provider\n * @summary Delete Provider\n * {@link /v1/providers/}\n */\nexport function useDeleteProvider<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteProviderMutationResponse>,\n ResponseErrorConfig<DeleteProvider422>,\n { params: DeleteProviderQueryParams },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteProviderMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteProviderMutationResponse>,\n ResponseErrorConfig<DeleteProvider422>,\n { params: DeleteProviderQueryParams },\n TContext\n >(\n {\n mutationFn: async ({ params }) => {\n return deleteProvider(params, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListProvidersQueryResponse,\n ListProvidersQueryParams,\n ListProviders422,\n} from '../../types/ListProviders.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listProvidersQueryKey = (params?: ListProvidersQueryParams) =>\n [{ url: '/v1/providers/' }, ...(params ? [params] : [])] as const;\n\nexport type ListProvidersQueryKey = ReturnType<typeof listProvidersQueryKey>;\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport async function listProviders(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListProvidersQueryResponse,\n ResponseErrorConfig<ListProviders422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/providers/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listProvidersQueryOptions(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listProvidersQueryKey(params);\n return queryOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n ResponseConfig<ListProvidersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listProviders(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport function useListProviders<\n TData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryKey extends QueryKey = ListProvidersQueryKey\n>(\n params?: ListProvidersQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listProvidersQueryKey(params);\n\n const query = useQuery(\n {\n ...(listProvidersQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListProviders422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListProvidersQueryResponse,\n ListProvidersQueryParams,\n ListProviders422,\n} from '../../types/ListProviders.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listProvidersSuspenseQueryKey = (\n params?: ListProvidersQueryParams\n) => [{ url: '/v1/providers/' }, ...(params ? [params] : [])] as const;\n\nexport type ListProvidersSuspenseQueryKey = ReturnType<\n typeof listProvidersSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport async function listProvidersSuspense(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListProvidersQueryResponse,\n ResponseErrorConfig<ListProviders422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/providers/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listProvidersSuspenseQueryOptions(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listProvidersSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n ResponseConfig<ListProvidersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listProvidersSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport function useListProvidersSuspense<\n TData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryKey extends QueryKey = ListProvidersSuspenseQueryKey\n>(\n params?: ListProvidersQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listProvidersSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listProvidersSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListProviders422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteRunMutationResponse,\n DeleteRunPathParams,\n DeleteRun422,\n} from '../../types/DeleteRun.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteRunMutationKey = () =>\n [{ url: '/v1/runs/{run_id}' }] as const;\n\nexport type DeleteRunMutationKey = ReturnType<typeof deleteRunMutationKey>;\n\n/**\n * @description Delete a run by its run_id.\n * @summary Delete Run\n * {@link /v1/runs/:run_id}\n */\nexport async function deleteRun(\n run_id: DeleteRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteRunMutationResponse,\n ResponseErrorConfig<DeleteRun422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/runs/${run_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a run by its run_id.\n * @summary Delete Run\n * {@link /v1/runs/:run_id}\n */\nexport function useDeleteRun<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteRunMutationResponse>,\n ResponseErrorConfig<DeleteRun422>,\n { run_id: DeleteRunPathParams['run_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteRunMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteRunMutationResponse>,\n ResponseErrorConfig<DeleteRun422>,\n { run_id: DeleteRunPathParams['run_id'] },\n TContext\n >(\n {\n mutationFn: async ({ run_id }) => {\n return deleteRun(run_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveRunsQueryResponse,\n ListActiveRunsQueryParams,\n ListActiveRuns422,\n} from '../../types/ListActiveRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listActiveRunsQueryKey = (params?: ListActiveRunsQueryParams) =>\n [{ url: '/v1/runs/active' }, ...(params ? [params] : [])] as const;\n\nexport type ListActiveRunsQueryKey = ReturnType<typeof listActiveRunsQueryKey>;\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport async function listActiveRuns(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveRunsQueryResponse,\n ResponseErrorConfig<ListActiveRuns422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/active`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveRunsQueryOptions(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveRunsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n ResponseConfig<ListActiveRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveRuns(params, config);\n },\n });\n}\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport function useListActiveRuns<\n TData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveRunsQueryKey\n>(\n params?: ListActiveRunsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listActiveRunsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listActiveRunsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListActiveRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveRunsQueryResponse,\n ListActiveRunsQueryParams,\n ListActiveRuns422,\n} from '../../types/ListActiveRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listActiveRunsSuspenseQueryKey = (\n params?: ListActiveRunsQueryParams\n) => [{ url: '/v1/runs/active' }, ...(params ? [params] : [])] as const;\n\nexport type ListActiveRunsSuspenseQueryKey = ReturnType<\n typeof listActiveRunsSuspenseQueryKey\n>;\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport async function listActiveRunsSuspense(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveRunsQueryResponse,\n ResponseErrorConfig<ListActiveRuns422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/active`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveRunsSuspenseQueryOptions(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveRunsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n ResponseConfig<ListActiveRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveRunsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport function useListActiveRunsSuspense<\n TData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveRunsSuspenseQueryKey\n>(\n params?: ListActiveRunsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listActiveRunsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listActiveRunsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListActiveRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunMessagesQueryResponse,\n ListRunMessagesPathParams,\n ListRunMessagesQueryParams,\n ListRunMessages422,\n} from '../../types/ListRunMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listRunMessagesQueryKey = (\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/messages', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunMessagesQueryKey = ReturnType<\n typeof listRunMessagesQueryKey\n>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport async function listRunMessages(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunMessagesQueryResponse,\n ResponseErrorConfig<ListRunMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunMessagesQueryOptions(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunMessagesQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n ResponseConfig<ListRunMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunMessages(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport function useListRunMessages<\n TData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListRunMessagesQueryKey\n>(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunMessagesQueryKey(run_id, params);\n\n const query = useQuery(\n {\n ...(listRunMessagesQueryOptions(\n run_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListRunMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunMessagesQueryResponse,\n ListRunMessagesPathParams,\n ListRunMessagesQueryParams,\n ListRunMessages422,\n} from '../../types/ListRunMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listRunMessagesSuspenseQueryKey = (\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/messages', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunMessagesSuspenseQueryKey = ReturnType<\n typeof listRunMessagesSuspenseQueryKey\n>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport async function listRunMessagesSuspense(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunMessagesQueryResponse,\n ResponseErrorConfig<ListRunMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunMessagesSuspenseQueryOptions(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunMessagesSuspenseQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n ResponseConfig<ListRunMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunMessagesSuspense(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport function useListRunMessagesSuspense<\n TData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListRunMessagesSuspenseQueryKey\n>(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunMessagesSuspenseQueryKey(run_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listRunMessagesSuspenseQueryOptions(\n run_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListRunMessages422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunsQueryResponse,\n ListRunsQueryParams,\n ListRuns422,\n} from '../../types/ListRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listRunsQueryKey = (params?: ListRunsQueryParams) =>\n [{ url: '/v1/runs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListRunsQueryKey = ReturnType<typeof listRunsQueryKey>;\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport async function listRuns(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunsQueryResponse,\n ResponseErrorConfig<ListRuns422>,\n unknown\n >({ method: 'GET', url: `/v1/runs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listRunsQueryOptions(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n ResponseConfig<ListRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRuns(params, config);\n },\n });\n}\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport function useListRuns<\n TData = ResponseConfig<ListRunsQueryResponse>,\n TQueryData = ResponseConfig<ListRunsQueryResponse>,\n TQueryKey extends QueryKey = ListRunsQueryKey\n>(\n params?: ListRunsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listRunsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listRunsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunsQueryResponse,\n ListRunsQueryParams,\n ListRuns422,\n} from '../../types/ListRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listRunsSuspenseQueryKey = (params?: ListRunsQueryParams) =>\n [{ url: '/v1/runs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListRunsSuspenseQueryKey = ReturnType<\n typeof listRunsSuspenseQueryKey\n>;\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport async function listRunsSuspense(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunsQueryResponse,\n ResponseErrorConfig<ListRuns422>,\n unknown\n >({ method: 'GET', url: `/v1/runs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listRunsSuspenseQueryOptions(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n ResponseConfig<ListRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport function useListRunsSuspense<\n TData = ResponseConfig<ListRunsQueryResponse>,\n TQueryData = ResponseConfig<ListRunsQueryResponse>,\n TQueryKey extends QueryKey = ListRunsSuspenseQueryKey\n>(\n params?: ListRunsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listRunsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listRunsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunStepsQueryResponse,\n ListRunStepsPathParams,\n ListRunStepsQueryParams,\n ListRunSteps422,\n} from '../../types/ListRunSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listRunStepsQueryKey = (\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/steps', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunStepsQueryKey = ReturnType<typeof listRunStepsQueryKey>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport async function listRunSteps(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunStepsQueryResponse,\n ResponseErrorConfig<ListRunSteps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/steps`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunStepsQueryOptions(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunStepsQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n ResponseConfig<ListRunStepsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunSteps(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport function useListRunSteps<\n TData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryKey extends QueryKey = ListRunStepsQueryKey\n>(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunStepsQueryKey(run_id, params);\n\n const query = useQuery(\n {\n ...(listRunStepsQueryOptions(\n run_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListRunSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunStepsQueryResponse,\n ListRunStepsPathParams,\n ListRunStepsQueryParams,\n ListRunSteps422,\n} from '../../types/ListRunSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listRunStepsSuspenseQueryKey = (\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/steps', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunStepsSuspenseQueryKey = ReturnType<\n typeof listRunStepsSuspenseQueryKey\n>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport async function listRunStepsSuspense(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunStepsQueryResponse,\n ResponseErrorConfig<ListRunSteps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/steps`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunStepsSuspenseQueryOptions(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunStepsSuspenseQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n ResponseConfig<ListRunStepsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunStepsSuspense(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport function useListRunStepsSuspense<\n TData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryKey extends QueryKey = ListRunStepsSuspenseQueryKey\n>(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunStepsSuspenseQueryKey(run_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listRunStepsSuspenseQueryOptions(\n run_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListRunSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunQueryResponse,\n RetrieveRunPathParams,\n RetrieveRun422,\n} from '../../types/RetrieveRun.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveRunQueryKey = (run_id: RetrieveRunPathParams['run_id']) =>\n [{ url: '/v1/runs/:run_id', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunQueryKey = ReturnType<typeof retrieveRunQueryKey>;\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport async function retrieveRun(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunQueryResponse,\n ResponseErrorConfig<RetrieveRun422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunQueryOptions(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n ResponseConfig<RetrieveRunQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRun(run_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport function useRetrieveRun<\n TData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunQueryKey\n>(\n run_id: RetrieveRunPathParams['run_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveRunQueryKey(run_id);\n\n const query = useQuery(\n {\n ...(retrieveRunQueryOptions(\n run_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveRun422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunQueryResponse,\n RetrieveRunPathParams,\n RetrieveRun422,\n} from '../../types/RetrieveRun.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveRunSuspenseQueryKey = (\n run_id: RetrieveRunPathParams['run_id']\n) => [{ url: '/v1/runs/:run_id', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunSuspenseQueryKey = ReturnType<\n typeof retrieveRunSuspenseQueryKey\n>;\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport async function retrieveRunSuspense(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunQueryResponse,\n ResponseErrorConfig<RetrieveRun422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunSuspenseQueryOptions(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunSuspenseQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n ResponseConfig<RetrieveRunQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRunSuspense(run_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport function useRetrieveRunSuspense<\n TData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunSuspenseQueryKey\n>(\n run_id: RetrieveRunPathParams['run_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveRunSuspenseQueryKey(run_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveRunSuspenseQueryOptions(\n run_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveRun422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunUsageQueryResponse,\n RetrieveRunUsagePathParams,\n RetrieveRunUsage422,\n} from '../../types/RetrieveRunUsage.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveRunUsageQueryKey = (\n run_id: RetrieveRunUsagePathParams['run_id']\n) => [{ url: '/v1/runs/:run_id/usage', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunUsageQueryKey = ReturnType<\n typeof retrieveRunUsageQueryKey\n>;\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport async function retrieveRunUsage(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunUsageQueryResponse,\n ResponseErrorConfig<RetrieveRunUsage422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/usage`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunUsageQueryOptions(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunUsageQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRunUsage(run_id, config);\n },\n });\n}\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport function useRetrieveRunUsage<\n TData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunUsageQueryKey\n>(\n run_id: RetrieveRunUsagePathParams['run_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveRunUsageQueryKey(run_id);\n\n const query = useQuery(\n {\n ...(retrieveRunUsageQueryOptions(\n run_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveRunUsage422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunUsageQueryResponse,\n RetrieveRunUsagePathParams,\n RetrieveRunUsage422,\n} from '../../types/RetrieveRunUsage.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveRunUsageSuspenseQueryKey = (\n run_id: RetrieveRunUsagePathParams['run_id']\n) => [{ url: '/v1/runs/:run_id/usage', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunUsageSuspenseQueryKey = ReturnType<\n typeof retrieveRunUsageSuspenseQueryKey\n>;\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport async function retrieveRunUsageSuspense(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunUsageQueryResponse,\n ResponseErrorConfig<RetrieveRunUsage422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/usage`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunUsageSuspenseQueryOptions(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunUsageSuspenseQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRunUsageSuspense(run_id, config);\n },\n });\n}\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport function useRetrieveRunUsageSuspense<\n TData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunUsageSuspenseQueryKey\n>(\n run_id: RetrieveRunUsagePathParams['run_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveRunUsageSuspenseQueryKey(run_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveRunUsageSuspenseQueryOptions(\n run_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveRunUsage422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateSourceMutationRequest,\n CreateSourceMutationResponse,\n CreateSource422,\n} from '../../types/CreateSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createSourceMutationKey = () => [{ url: '/v1/sources/' }] as const;\n\nexport type CreateSourceMutationKey = ReturnType<\n typeof createSourceMutationKey\n>;\n\n/**\n * @description Create a new data source.\n * @summary Create Source\n * {@link /v1/sources/}\n */\nexport async function createSource(\n data: CreateSourceMutationRequest,\n config: Partial<RequestConfig<CreateSourceMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateSourceMutationResponse,\n ResponseErrorConfig<CreateSource422>,\n CreateSourceMutationRequest\n >({\n method: 'POST',\n url: `/v1/sources/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new data source.\n * @summary Create Source\n * {@link /v1/sources/}\n */\nexport function useCreateSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateSourceMutationResponse>,\n ResponseErrorConfig<CreateSource422>,\n { data: CreateSourceMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateSourceMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createSourceMutationKey();\n\n return useMutation<\n ResponseConfig<CreateSourceMutationResponse>,\n ResponseErrorConfig<CreateSource422>,\n { data: CreateSourceMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createSource(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteFileFromSourceMutationResponse,\n DeleteFileFromSourcePathParams,\n DeleteFileFromSource422,\n} from '../../types/DeleteFileFromSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteFileFromSourceMutationKey = () =>\n [{ url: '/v1/sources/{source_id}/{file_id}' }] as const;\n\nexport type DeleteFileFromSourceMutationKey = ReturnType<\n typeof deleteFileFromSourceMutationKey\n>;\n\n/**\n * @description Delete a data source.\n * @summary Delete File From Source\n * {@link /v1/sources/:source_id/:file_id}\n */\nexport async function deleteFileFromSource(\n source_id: DeleteFileFromSourcePathParams['source_id'],\n file_id: DeleteFileFromSourcePathParams['file_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteFileFromSourceMutationResponse,\n ResponseErrorConfig<DeleteFileFromSource422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/sources/${source_id}/${file_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a data source.\n * @summary Delete File From Source\n * {@link /v1/sources/:source_id/:file_id}\n */\nexport function useDeleteFileFromSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteFileFromSourceMutationResponse>,\n ResponseErrorConfig<DeleteFileFromSource422>,\n {\n source_id: DeleteFileFromSourcePathParams['source_id'];\n file_id: DeleteFileFromSourcePathParams['file_id'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteFileFromSourceMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteFileFromSourceMutationResponse>,\n ResponseErrorConfig<DeleteFileFromSource422>,\n {\n source_id: DeleteFileFromSourcePathParams['source_id'];\n file_id: DeleteFileFromSourcePathParams['file_id'];\n },\n TContext\n >(\n {\n mutationFn: async ({ source_id, file_id }) => {\n return deleteFileFromSource(source_id, file_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteSourceMutationResponse,\n DeleteSourcePathParams,\n DeleteSource422,\n} from '../../types/DeleteSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteSourceMutationKey = () =>\n [{ url: '/v1/sources/{source_id}' }] as const;\n\nexport type DeleteSourceMutationKey = ReturnType<\n typeof deleteSourceMutationKey\n>;\n\n/**\n * @description Delete a data source.\n * @summary Delete Source\n * {@link /v1/sources/:source_id}\n */\nexport async function deleteSource(\n source_id: DeleteSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteSourceMutationResponse,\n ResponseErrorConfig<DeleteSource422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/sources/${source_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a data source.\n * @summary Delete Source\n * {@link /v1/sources/:source_id}\n */\nexport function useDeleteSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteSourceMutationResponse>,\n ResponseErrorConfig<DeleteSource422>,\n { source_id: DeleteSourcePathParams['source_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteSourceMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteSourceMutationResponse>,\n ResponseErrorConfig<DeleteSource422>,\n { source_id: DeleteSourcePathParams['source_id'] },\n TContext\n >(\n {\n mutationFn: async ({ source_id }) => {\n return deleteSource(source_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n GetSourceIdByNameQueryResponse,\n GetSourceIdByNamePathParams,\n GetSourceIdByName422,\n} from '../../types/GetSourceIdByName.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const getSourceIdByNameQueryKey = (\n source_name: GetSourceIdByNamePathParams['source_name']\n) =>\n [\n {\n url: '/v1/sources/name/:source_name',\n params: { source_name: source_name },\n },\n ] as const;\n\nexport type GetSourceIdByNameQueryKey = ReturnType<\n typeof getSourceIdByNameQueryKey\n>;\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport async function getSourceIdByName(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n GetSourceIdByNameQueryResponse,\n ResponseErrorConfig<GetSourceIdByName422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/name/${source_name}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function getSourceIdByNameQueryOptions(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = getSourceIdByNameQueryKey(source_name);\n return queryOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return getSourceIdByName(source_name, config);\n },\n });\n}\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport function useGetSourceIdByName<\n TData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryKey extends QueryKey = GetSourceIdByNameQueryKey\n>(\n source_name: GetSourceIdByNamePathParams['source_name'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? getSourceIdByNameQueryKey(source_name);\n\n const query = useQuery(\n {\n ...(getSourceIdByNameQueryOptions(\n source_name,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<GetSourceIdByName422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n GetSourceIdByNameQueryResponse,\n GetSourceIdByNamePathParams,\n GetSourceIdByName422,\n} from '../../types/GetSourceIdByName.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const getSourceIdByNameSuspenseQueryKey = (\n source_name: GetSourceIdByNamePathParams['source_name']\n) =>\n [\n {\n url: '/v1/sources/name/:source_name',\n params: { source_name: source_name },\n },\n ] as const;\n\nexport type GetSourceIdByNameSuspenseQueryKey = ReturnType<\n typeof getSourceIdByNameSuspenseQueryKey\n>;\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport async function getSourceIdByNameSuspense(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n GetSourceIdByNameQueryResponse,\n ResponseErrorConfig<GetSourceIdByName422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/name/${source_name}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function getSourceIdByNameSuspenseQueryOptions(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = getSourceIdByNameSuspenseQueryKey(source_name);\n return queryOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return getSourceIdByNameSuspense(source_name, config);\n },\n });\n}\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport function useGetSourceIdByNameSuspense<\n TData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryKey extends QueryKey = GetSourceIdByNameSuspenseQueryKey\n>(\n source_name: GetSourceIdByNamePathParams['source_name'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? getSourceIdByNameSuspenseQueryKey(source_name);\n\n const query = useSuspenseQuery(\n {\n ...(getSourceIdByNameSuspenseQueryOptions(\n source_name,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<GetSourceIdByName422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourceFilesQueryResponse,\n ListSourceFilesPathParams,\n ListSourceFilesQueryParams,\n ListSourceFiles422,\n} from '../../types/ListSourceFiles.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listSourceFilesQueryKey = (\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams\n) =>\n [\n { url: '/v1/sources/:source_id/files', params: { source_id: source_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListSourceFilesQueryKey = ReturnType<\n typeof listSourceFilesQueryKey\n>;\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport async function listSourceFiles(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourceFilesQueryResponse,\n ResponseErrorConfig<ListSourceFiles422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/files`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourceFilesQueryOptions(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourceFilesQueryKey(source_id, params);\n return queryOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n ResponseConfig<ListSourceFilesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourceFiles(source_id, params, config);\n },\n });\n}\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport function useListSourceFiles<\n TData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryKey extends QueryKey = ListSourceFilesQueryKey\n>(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listSourceFilesQueryKey(source_id, params);\n\n const query = useQuery(\n {\n ...(listSourceFilesQueryOptions(\n source_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSourceFiles422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourceFilesQueryResponse,\n ListSourceFilesPathParams,\n ListSourceFilesQueryParams,\n ListSourceFiles422,\n} from '../../types/ListSourceFiles.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listSourceFilesSuspenseQueryKey = (\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams\n) =>\n [\n { url: '/v1/sources/:source_id/files', params: { source_id: source_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListSourceFilesSuspenseQueryKey = ReturnType<\n typeof listSourceFilesSuspenseQueryKey\n>;\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport async function listSourceFilesSuspense(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourceFilesQueryResponse,\n ResponseErrorConfig<ListSourceFiles422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/files`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourceFilesSuspenseQueryOptions(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourceFilesSuspenseQueryKey(source_id, params);\n return queryOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n ResponseConfig<ListSourceFilesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourceFilesSuspense(source_id, params, config);\n },\n });\n}\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport function useListSourceFilesSuspense<\n TData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryKey extends QueryKey = ListSourceFilesSuspenseQueryKey\n>(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listSourceFilesSuspenseQueryKey(source_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listSourceFilesSuspenseQueryOptions(\n source_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListSourceFiles422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcePassagesQueryResponse,\n ListSourcePassagesPathParams,\n ListSourcePassages422,\n} from '../../types/ListSourcePassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listSourcePassagesQueryKey = (\n source_id: ListSourcePassagesPathParams['source_id']\n) =>\n [\n {\n url: '/v1/sources/:source_id/passages',\n params: { source_id: source_id },\n },\n ] as const;\n\nexport type ListSourcePassagesQueryKey = ReturnType<\n typeof listSourcePassagesQueryKey\n>;\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport async function listSourcePassages(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcePassagesQueryResponse,\n ResponseErrorConfig<ListSourcePassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/passages`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourcePassagesQueryOptions(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcePassagesQueryKey(source_id);\n return queryOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n ResponseConfig<ListSourcePassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourcePassages(source_id, config);\n },\n });\n}\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport function useListSourcePassages<\n TData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcePassagesQueryKey\n>(\n source_id: ListSourcePassagesPathParams['source_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listSourcePassagesQueryKey(source_id);\n\n const query = useQuery(\n {\n ...(listSourcePassagesQueryOptions(\n source_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSourcePassages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcePassagesQueryResponse,\n ListSourcePassagesPathParams,\n ListSourcePassages422,\n} from '../../types/ListSourcePassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listSourcePassagesSuspenseQueryKey = (\n source_id: ListSourcePassagesPathParams['source_id']\n) =>\n [\n {\n url: '/v1/sources/:source_id/passages',\n params: { source_id: source_id },\n },\n ] as const;\n\nexport type ListSourcePassagesSuspenseQueryKey = ReturnType<\n typeof listSourcePassagesSuspenseQueryKey\n>;\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport async function listSourcePassagesSuspense(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcePassagesQueryResponse,\n ResponseErrorConfig<ListSourcePassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/passages`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourcePassagesSuspenseQueryOptions(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcePassagesSuspenseQueryKey(source_id);\n return queryOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n ResponseConfig<ListSourcePassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourcePassagesSuspense(source_id, config);\n },\n });\n}\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport function useListSourcePassagesSuspense<\n TData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcePassagesSuspenseQueryKey\n>(\n source_id: ListSourcePassagesPathParams['source_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listSourcePassagesSuspenseQueryKey(source_id);\n\n const query = useSuspenseQuery(\n {\n ...(listSourcePassagesSuspenseQueryOptions(\n source_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListSourcePassages422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcesQueryResponse,\n ListSources422,\n} from '../../types/ListSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listSourcesQueryKey = () => [{ url: '/v1/sources/' }] as const;\n\nexport type ListSourcesQueryKey = ReturnType<typeof listSourcesQueryKey>;\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport async function listSources(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcesQueryResponse,\n ResponseErrorConfig<ListSources422>,\n unknown\n >({ method: 'GET', url: `/v1/sources/`, ...requestConfig });\n return res;\n}\n\nexport function listSourcesQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcesQueryKey();\n return queryOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n ResponseConfig<ListSourcesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSources(config);\n },\n });\n}\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport function useListSources<\n TData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcesQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listSourcesQueryKey();\n\n const query = useQuery(\n {\n ...(listSourcesQueryOptions(config) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSources422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcesQueryResponse,\n ListSources422,\n} from '../../types/ListSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listSourcesSuspenseQueryKey = () =>\n [{ url: '/v1/sources/' }] as const;\n\nexport type ListSourcesSuspenseQueryKey = ReturnType<\n typeof listSourcesSuspenseQueryKey\n>;\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport async function listSourcesSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcesQueryResponse,\n ResponseErrorConfig<ListSources422>,\n unknown\n >({ method: 'GET', url: `/v1/sources/`, ...requestConfig });\n return res;\n}\n\nexport function listSourcesSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcesSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n ResponseConfig<ListSourcesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourcesSuspense(config);\n },\n });\n}\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport function useListSourcesSuspense<\n TData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcesSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listSourcesSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listSourcesSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListSources422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveSourceQueryResponse,\n RetrieveSourcePathParams,\n RetrieveSource422,\n} from '../../types/RetrieveSource.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveSourceQueryKey = (\n source_id: RetrieveSourcePathParams['source_id']\n) =>\n [\n { url: '/v1/sources/:source_id', params: { source_id: source_id } },\n ] as const;\n\nexport type RetrieveSourceQueryKey = ReturnType<typeof retrieveSourceQueryKey>;\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport async function retrieveSource(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveSourceQueryResponse,\n ResponseErrorConfig<RetrieveSource422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveSourceQueryOptions(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveSourceQueryKey(source_id);\n return queryOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n ResponseConfig<RetrieveSourceQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveSource(source_id, config);\n },\n });\n}\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport function useRetrieveSource<\n TData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryKey extends QueryKey = RetrieveSourceQueryKey\n>(\n source_id: RetrieveSourcePathParams['source_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveSourceQueryKey(source_id);\n\n const query = useQuery(\n {\n ...(retrieveSourceQueryOptions(\n source_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveSource422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveSourceQueryResponse,\n RetrieveSourcePathParams,\n RetrieveSource422,\n} from '../../types/RetrieveSource.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveSourceSuspenseQueryKey = (\n source_id: RetrieveSourcePathParams['source_id']\n) =>\n [\n { url: '/v1/sources/:source_id', params: { source_id: source_id } },\n ] as const;\n\nexport type RetrieveSourceSuspenseQueryKey = ReturnType<\n typeof retrieveSourceSuspenseQueryKey\n>;\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport async function retrieveSourceSuspense(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveSourceQueryResponse,\n ResponseErrorConfig<RetrieveSource422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveSourceSuspenseQueryOptions(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveSourceSuspenseQueryKey(source_id);\n return queryOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n ResponseConfig<RetrieveSourceQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveSourceSuspense(source_id, config);\n },\n });\n}\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport function useRetrieveSourceSuspense<\n TData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryKey extends QueryKey = RetrieveSourceSuspenseQueryKey\n>(\n source_id: RetrieveSourcePathParams['source_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveSourceSuspenseQueryKey(source_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveSourceSuspenseQueryOptions(\n source_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveSource422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UploadFileToSourceMutationRequest,\n UploadFileToSourceMutationResponse,\n UploadFileToSourcePathParams,\n UploadFileToSource422,\n} from '../../types/UploadFileToSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const uploadFileToSourceMutationKey = () =>\n [{ url: '/v1/sources/{source_id}/upload' }] as const;\n\nexport type UploadFileToSourceMutationKey = ReturnType<\n typeof uploadFileToSourceMutationKey\n>;\n\n/**\n * @description Upload a file to a data source.\n * @summary Upload File To Source\n * {@link /v1/sources/:source_id/upload}\n */\nexport async function uploadFileToSource(\n source_id: UploadFileToSourcePathParams['source_id'],\n data: UploadFileToSourceMutationRequest,\n config: Partial<RequestConfig<UploadFileToSourceMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const formData = new FormData();\n if (data) {\n Object.keys(data).forEach((key) => {\n const value = data[key as keyof typeof data];\n if (\n typeof key === 'string' &&\n (typeof value === 'string' || (value as Blob) instanceof Blob)\n ) {\n formData.append(key, value as unknown as string);\n }\n });\n }\n const res = await request<\n UploadFileToSourceMutationResponse,\n ResponseErrorConfig<UploadFileToSource422>,\n UploadFileToSourceMutationRequest\n >({\n method: 'POST',\n url: `/v1/sources/${source_id}/upload`,\n data: formData,\n ...requestConfig,\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...requestConfig.headers,\n },\n });\n return res;\n}\n\n/**\n * @description Upload a file to a data source.\n * @summary Upload File To Source\n * {@link /v1/sources/:source_id/upload}\n */\nexport function useUploadFileToSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UploadFileToSourceMutationResponse>,\n ResponseErrorConfig<UploadFileToSource422>,\n {\n source_id: UploadFileToSourcePathParams['source_id'];\n data: UploadFileToSourceMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UploadFileToSourceMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? uploadFileToSourceMutationKey();\n\n return useMutation<\n ResponseConfig<UploadFileToSourceMutationResponse>,\n ResponseErrorConfig<UploadFileToSource422>,\n {\n source_id: UploadFileToSourcePathParams['source_id'];\n data: UploadFileToSourceMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ source_id, data }) => {\n return uploadFileToSource(source_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListStepsQueryResponse,\n ListStepsQueryParams,\n ListSteps422,\n} from '../../types/ListSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listStepsQueryKey = (params?: ListStepsQueryParams) =>\n [{ url: '/v1/steps' }, ...(params ? [params] : [])] as const;\n\nexport type ListStepsQueryKey = ReturnType<typeof listStepsQueryKey>;\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport async function listSteps(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListStepsQueryResponse,\n ResponseErrorConfig<ListSteps422>,\n unknown\n >({ method: 'GET', url: `/v1/steps`, params, ...requestConfig });\n return res;\n}\n\nexport function listStepsQueryOptions(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listStepsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n ResponseConfig<ListStepsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSteps(params, config);\n },\n });\n}\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport function useListSteps<\n TData = ResponseConfig<ListStepsQueryResponse>,\n TQueryData = ResponseConfig<ListStepsQueryResponse>,\n TQueryKey extends QueryKey = ListStepsQueryKey\n>(\n params?: ListStepsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listStepsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listStepsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListStepsQueryResponse,\n ListStepsQueryParams,\n ListSteps422,\n} from '../../types/ListSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listStepsSuspenseQueryKey = (params?: ListStepsQueryParams) =>\n [{ url: '/v1/steps' }, ...(params ? [params] : [])] as const;\n\nexport type ListStepsSuspenseQueryKey = ReturnType<\n typeof listStepsSuspenseQueryKey\n>;\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport async function listStepsSuspense(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListStepsQueryResponse,\n ResponseErrorConfig<ListSteps422>,\n unknown\n >({ method: 'GET', url: `/v1/steps`, params, ...requestConfig });\n return res;\n}\n\nexport function listStepsSuspenseQueryOptions(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listStepsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n ResponseConfig<ListStepsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listStepsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport function useListStepsSuspense<\n TData = ResponseConfig<ListStepsQueryResponse>,\n TQueryData = ResponseConfig<ListStepsQueryResponse>,\n TQueryKey extends QueryKey = ListStepsSuspenseQueryKey\n>(\n params?: ListStepsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listStepsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listStepsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveStepQueryResponse,\n RetrieveStepPathParams,\n RetrieveStep422,\n} from '../../types/RetrieveStep.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveStepQueryKey = (\n step_id: RetrieveStepPathParams['step_id']\n) => [{ url: '/v1/steps/:step_id', params: { step_id: step_id } }] as const;\n\nexport type RetrieveStepQueryKey = ReturnType<typeof retrieveStepQueryKey>;\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport async function retrieveStep(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveStepQueryResponse,\n ResponseErrorConfig<RetrieveStep422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/steps/${step_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveStepQueryOptions(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveStepQueryKey(step_id);\n return queryOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n ResponseConfig<RetrieveStepQueryResponse>,\n typeof queryKey\n >({\n enabled: !!step_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveStep(step_id, config);\n },\n });\n}\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport function useRetrieveStep<\n TData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryKey extends QueryKey = RetrieveStepQueryKey\n>(\n step_id: RetrieveStepPathParams['step_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveStepQueryKey(step_id);\n\n const query = useQuery(\n {\n ...(retrieveStepQueryOptions(\n step_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveStep422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveStepQueryResponse,\n RetrieveStepPathParams,\n RetrieveStep422,\n} from '../../types/RetrieveStep.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveStepSuspenseQueryKey = (\n step_id: RetrieveStepPathParams['step_id']\n) => [{ url: '/v1/steps/:step_id', params: { step_id: step_id } }] as const;\n\nexport type RetrieveStepSuspenseQueryKey = ReturnType<\n typeof retrieveStepSuspenseQueryKey\n>;\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport async function retrieveStepSuspense(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveStepQueryResponse,\n ResponseErrorConfig<RetrieveStep422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/steps/${step_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveStepSuspenseQueryOptions(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveStepSuspenseQueryKey(step_id);\n return queryOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n ResponseConfig<RetrieveStepQueryResponse>,\n typeof queryKey\n >({\n enabled: !!step_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveStepSuspense(step_id, config);\n },\n });\n}\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport function useRetrieveStepSuspense<\n TData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryKey extends QueryKey = RetrieveStepSuspenseQueryKey\n>(\n step_id: RetrieveStepPathParams['step_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveStepSuspenseQueryKey(step_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveStepSuspenseQueryOptions(\n step_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveStep422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListTagsQueryResponse,\n ListTagsQueryParams,\n ListTags422,\n} from '../../types/ListTags.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listTagsQueryKey = (params?: ListTagsQueryParams) =>\n [{ url: '/v1/tags/' }, ...(params ? [params] : [])] as const;\n\nexport type ListTagsQueryKey = ReturnType<typeof listTagsQueryKey>;\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport async function listTags(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListTagsQueryResponse,\n ResponseErrorConfig<ListTags422>,\n unknown\n >({ method: 'GET', url: `/v1/tags/`, params, ...requestConfig });\n return res;\n}\n\nexport function listTagsQueryOptions(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listTagsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n ResponseConfig<ListTagsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listTags(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport function useListTags<\n TData = ResponseConfig<ListTagsQueryResponse>,\n TQueryData = ResponseConfig<ListTagsQueryResponse>,\n TQueryKey extends QueryKey = ListTagsQueryKey\n>(\n params?: ListTagsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listTagsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listTagsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListTags422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListTagsQueryResponse,\n ListTagsQueryParams,\n ListTags422,\n} from '../../types/ListTags.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listTagsSuspenseQueryKey = (params?: ListTagsQueryParams) =>\n [{ url: '/v1/tags/' }, ...(params ? [params] : [])] as const;\n\nexport type ListTagsSuspenseQueryKey = ReturnType<\n typeof listTagsSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport async function listTagsSuspense(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListTagsQueryResponse,\n ResponseErrorConfig<ListTags422>,\n unknown\n >({ method: 'GET', url: `/v1/tags/`, params, ...requestConfig });\n return res;\n}\n\nexport function listTagsSuspenseQueryOptions(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listTagsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n ResponseConfig<ListTagsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listTagsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport function useListTagsSuspense<\n TData = ResponseConfig<ListTagsQueryResponse>,\n TQueryData = ResponseConfig<ListTagsQueryResponse>,\n TQueryKey extends QueryKey = ListTagsSuspenseQueryKey\n>(\n params?: ListTagsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listTagsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listTagsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListTags422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n TemplatesCreateAgentsFromTemplateMutationRequest,\n TemplatesCreateAgentsFromTemplateMutationResponse,\n TemplatesCreateAgentsFromTemplatePathParams,\n} from '../../../types/templates/CreateAgentsFromTemplate.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const templatesCreateAgentsFromTemplateMutationKey = () =>\n [{ url: '/v1/templates/{project}/{template_version}/agents' }] as const;\n\nexport type TemplatesCreateAgentsFromTemplateMutationKey = ReturnType<\n typeof templatesCreateAgentsFromTemplateMutationKey\n>;\n\n/**\n * @description Creates an Agent or multiple Agents from a template\n * @summary Create agents from a template\n * {@link /v1/templates/:project/:template_version/agents}\n */\nexport async function templatesCreateAgentsFromTemplate(\n project: TemplatesCreateAgentsFromTemplatePathParams['project'],\n template_version: TemplatesCreateAgentsFromTemplatePathParams['template_version'],\n data?: TemplatesCreateAgentsFromTemplateMutationRequest,\n config: Partial<\n RequestConfig<TemplatesCreateAgentsFromTemplateMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n TemplatesCreateAgentsFromTemplateMutationResponse,\n ResponseErrorConfig<Error>,\n TemplatesCreateAgentsFromTemplateMutationRequest\n >({\n method: 'POST',\n url: `/v1/templates/${project}/${template_version}/agents`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Creates an Agent or multiple Agents from a template\n * @summary Create agents from a template\n * {@link /v1/templates/:project/:template_version/agents}\n */\nexport function useTemplatesCreateAgentsFromTemplate<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<TemplatesCreateAgentsFromTemplateMutationResponse>,\n ResponseErrorConfig<Error>,\n {\n project: TemplatesCreateAgentsFromTemplatePathParams['project'];\n template_version: TemplatesCreateAgentsFromTemplatePathParams['template_version'];\n data?: TemplatesCreateAgentsFromTemplateMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<TemplatesCreateAgentsFromTemplateMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ??\n templatesCreateAgentsFromTemplateMutationKey();\n\n return useMutation<\n ResponseConfig<TemplatesCreateAgentsFromTemplateMutationResponse>,\n ResponseErrorConfig<Error>,\n {\n project: TemplatesCreateAgentsFromTemplatePathParams['project'];\n template_version: TemplatesCreateAgentsFromTemplatePathParams['template_version'];\n data?: TemplatesCreateAgentsFromTemplateMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ project, template_version, data }) => {\n return templatesCreateAgentsFromTemplate(\n project,\n template_version,\n data,\n config\n );\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddBaseToolsMutationResponse,\n AddBaseTools422,\n} from '../../types/AddBaseTools.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addBaseToolsMutationKey = () =>\n [{ url: '/v1/tools/add-base-tools' }] as const;\n\nexport type AddBaseToolsMutationKey = ReturnType<\n typeof addBaseToolsMutationKey\n>;\n\n/**\n * @description Upsert base tools\n * @summary Upsert Base Tools\n * {@link /v1/tools/add-base-tools}\n */\nexport async function addBaseTools(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddBaseToolsMutationResponse,\n ResponseErrorConfig<AddBaseTools422>,\n unknown\n >({\n method: 'POST',\n url: `/v1/tools/add-base-tools`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Upsert base tools\n * @summary Upsert Base Tools\n * {@link /v1/tools/add-base-tools}\n */\nexport function useAddBaseTools<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddBaseToolsMutationResponse>,\n ResponseErrorConfig<AddBaseTools422>,\n void,\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? addBaseToolsMutationKey();\n\n return useMutation<\n ResponseConfig<AddBaseToolsMutationResponse>,\n ResponseErrorConfig<AddBaseTools422>,\n void,\n TContext\n >(\n {\n mutationFn: async () => {\n return addBaseTools(config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddComposioToolMutationResponse,\n AddComposioToolPathParams,\n AddComposioTool422,\n} from '../../types/AddComposioTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addComposioToolMutationKey = () =>\n [{ url: '/v1/tools/composio/{composio_action_name}' }] as const;\n\nexport type AddComposioToolMutationKey = ReturnType<\n typeof addComposioToolMutationKey\n>;\n\n/**\n * @description Add a new Composio tool by action name (Composio refers to each tool as an `Action`)\n * @summary Add Composio Tool\n * {@link /v1/tools/composio/:composio_action_name}\n */\nexport async function addComposioTool(\n composio_action_name: AddComposioToolPathParams['composio_action_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddComposioToolMutationResponse,\n ResponseErrorConfig<AddComposioTool422>,\n unknown\n >({\n method: 'POST',\n url: `/v1/tools/composio/${composio_action_name}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Add a new Composio tool by action name (Composio refers to each tool as an `Action`)\n * @summary Add Composio Tool\n * {@link /v1/tools/composio/:composio_action_name}\n */\nexport function useAddComposioTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddComposioToolMutationResponse>,\n ResponseErrorConfig<AddComposioTool422>,\n {\n composio_action_name: AddComposioToolPathParams['composio_action_name'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? addComposioToolMutationKey();\n\n return useMutation<\n ResponseConfig<AddComposioToolMutationResponse>,\n ResponseErrorConfig<AddComposioTool422>,\n { composio_action_name: AddComposioToolPathParams['composio_action_name'] },\n TContext\n >(\n {\n mutationFn: async ({ composio_action_name }) => {\n return addComposioTool(composio_action_name, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddMcpServerMutationRequest,\n AddMcpServerMutationResponse,\n AddMcpServer422,\n} from '../../types/AddMcpServer.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addMcpServerMutationKey = () =>\n [{ url: '/v1/tools/mcp/servers' }] as const;\n\nexport type AddMcpServerMutationKey = ReturnType<\n typeof addMcpServerMutationKey\n>;\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Add Mcp Server To Config\n * {@link /v1/tools/mcp/servers}\n */\nexport async function addMcpServer(\n data?: AddMcpServerMutationRequest,\n config: Partial<RequestConfig<AddMcpServerMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddMcpServerMutationResponse,\n ResponseErrorConfig<AddMcpServer422>,\n AddMcpServerMutationRequest\n >({\n method: 'PUT',\n url: `/v1/tools/mcp/servers`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Add Mcp Server To Config\n * {@link /v1/tools/mcp/servers}\n */\nexport function useAddMcpServer<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddMcpServerMutationResponse>,\n ResponseErrorConfig<AddMcpServer422>,\n { data?: AddMcpServerMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<AddMcpServerMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? addMcpServerMutationKey();\n\n return useMutation<\n ResponseConfig<AddMcpServerMutationResponse>,\n ResponseErrorConfig<AddMcpServer422>,\n { data?: AddMcpServerMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return addMcpServer(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddMcpToolMutationResponse,\n AddMcpToolPathParams,\n AddMcpTool422,\n} from '../../types/AddMcpTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addMcpToolMutationKey = () =>\n [{ url: '/v1/tools/mcp/servers/{mcp_server_name}/{mcp_tool_name}' }] as const;\n\nexport type AddMcpToolMutationKey = ReturnType<typeof addMcpToolMutationKey>;\n\n/**\n * @description Register a new MCP tool as a Letta server by MCP server + tool name\n * @summary Add Mcp Tool\n * {@link /v1/tools/mcp/servers/:mcp_server_name/:mcp_tool_name}\n */\nexport async function addMcpTool(\n mcp_server_name: AddMcpToolPathParams['mcp_server_name'],\n mcp_tool_name: AddMcpToolPathParams['mcp_tool_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddMcpToolMutationResponse,\n ResponseErrorConfig<AddMcpTool422>,\n unknown\n >({\n method: 'POST',\n url: `/v1/tools/mcp/servers/${mcp_server_name}/${mcp_tool_name}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Register a new MCP tool as a Letta server by MCP server + tool name\n * @summary Add Mcp Tool\n * {@link /v1/tools/mcp/servers/:mcp_server_name/:mcp_tool_name}\n */\nexport function useAddMcpTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddMcpToolMutationResponse>,\n ResponseErrorConfig<AddMcpTool422>,\n {\n mcp_server_name: AddMcpToolPathParams['mcp_server_name'];\n mcp_tool_name: AddMcpToolPathParams['mcp_tool_name'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? addMcpToolMutationKey();\n\n return useMutation<\n ResponseConfig<AddMcpToolMutationResponse>,\n ResponseErrorConfig<AddMcpTool422>,\n {\n mcp_server_name: AddMcpToolPathParams['mcp_server_name'];\n mcp_tool_name: AddMcpToolPathParams['mcp_tool_name'];\n },\n TContext\n >(\n {\n mutationFn: async ({ mcp_server_name, mcp_tool_name }) => {\n return addMcpTool(mcp_server_name, mcp_tool_name, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateToolMutationRequest,\n CreateToolMutationResponse,\n CreateTool422,\n} from '../../types/CreateTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createToolMutationKey = () => [{ url: '/v1/tools/' }] as const;\n\nexport type CreateToolMutationKey = ReturnType<typeof createToolMutationKey>;\n\n/**\n * @description Create a new tool\n * @summary Create Tool\n * {@link /v1/tools/}\n */\nexport async function createTool(\n data: CreateToolMutationRequest,\n config: Partial<RequestConfig<CreateToolMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateToolMutationResponse,\n ResponseErrorConfig<CreateTool422>,\n CreateToolMutationRequest\n >({\n method: 'POST',\n url: `/v1/tools/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new tool\n * @summary Create Tool\n * {@link /v1/tools/}\n */\nexport function useCreateTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateToolMutationResponse>,\n ResponseErrorConfig<CreateTool422>,\n { data: CreateToolMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateToolMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createToolMutationKey();\n\n return useMutation<\n ResponseConfig<CreateToolMutationResponse>,\n ResponseErrorConfig<CreateTool422>,\n { data: CreateToolMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createTool(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteMcpServerMutationResponse,\n DeleteMcpServerPathParams,\n DeleteMcpServer422,\n} from '../../types/DeleteMcpServer.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteMcpServerMutationKey = () =>\n [{ url: '/v1/tools/mcp/servers/{mcp_server_name}' }] as const;\n\nexport type DeleteMcpServerMutationKey = ReturnType<\n typeof deleteMcpServerMutationKey\n>;\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Delete Mcp Server From Config\n * {@link /v1/tools/mcp/servers/:mcp_server_name}\n */\nexport async function deleteMcpServer(\n mcp_server_name: DeleteMcpServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteMcpServerMutationResponse,\n ResponseErrorConfig<DeleteMcpServer422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/tools/mcp/servers/${mcp_server_name}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Delete Mcp Server From Config\n * {@link /v1/tools/mcp/servers/:mcp_server_name}\n */\nexport function useDeleteMcpServer<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteMcpServerMutationResponse>,\n ResponseErrorConfig<DeleteMcpServer422>,\n { mcp_server_name: DeleteMcpServerPathParams['mcp_server_name'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteMcpServerMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteMcpServerMutationResponse>,\n ResponseErrorConfig<DeleteMcpServer422>,\n { mcp_server_name: DeleteMcpServerPathParams['mcp_server_name'] },\n TContext\n >(\n {\n mutationFn: async ({ mcp_server_name }) => {\n return deleteMcpServer(mcp_server_name, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteToolMutationResponse,\n DeleteToolPathParams,\n DeleteTool422,\n} from '../../types/DeleteTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteToolMutationKey = () =>\n [{ url: '/v1/tools/{tool_id}' }] as const;\n\nexport type DeleteToolMutationKey = ReturnType<typeof deleteToolMutationKey>;\n\n/**\n * @description Delete a tool by name\n * @summary Delete Tool\n * {@link /v1/tools/:tool_id}\n */\nexport async function deleteTool(\n tool_id: DeleteToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteToolMutationResponse,\n ResponseErrorConfig<DeleteTool422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/tools/${tool_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a tool by name\n * @summary Delete Tool\n * {@link /v1/tools/:tool_id}\n */\nexport function useDeleteTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteToolMutationResponse>,\n ResponseErrorConfig<DeleteTool422>,\n { tool_id: DeleteToolPathParams['tool_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteToolMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteToolMutationResponse>,\n ResponseErrorConfig<DeleteTool422>,\n { tool_id: DeleteToolPathParams['tool_id'] },\n TContext\n >(\n {\n mutationFn: async ({ tool_id }) => {\n return deleteTool(tool_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioActionsByAppQueryResponse,\n ListComposioActionsByAppPathParams,\n ListComposioActionsByApp422,\n} from '../../types/ListComposioActionsByApp.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listComposioActionsByAppQueryKey = (\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name']\n) =>\n [\n {\n url: '/v1/tools/composio/apps/:composio_app_name/actions',\n params: { composio_app_name: composio_app_name },\n },\n ] as const;\n\nexport type ListComposioActionsByAppQueryKey = ReturnType<\n typeof listComposioActionsByAppQueryKey\n>;\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport async function listComposioActionsByApp(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioActionsByAppQueryResponse,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps/${composio_app_name}/actions`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listComposioActionsByAppQueryOptions(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioActionsByAppQueryKey(composio_app_name);\n return queryOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n typeof queryKey\n >({\n enabled: !!composio_app_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioActionsByApp(composio_app_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport function useListComposioActionsByApp<\n TData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryKey extends QueryKey = ListComposioActionsByAppQueryKey\n>(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listComposioActionsByAppQueryKey(composio_app_name);\n\n const query = useQuery(\n {\n ...(listComposioActionsByAppQueryOptions(\n composio_app_name,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<ListComposioActionsByApp422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioActionsByAppQueryResponse,\n ListComposioActionsByAppPathParams,\n ListComposioActionsByApp422,\n} from '../../types/ListComposioActionsByApp.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listComposioActionsByAppSuspenseQueryKey = (\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name']\n) =>\n [\n {\n url: '/v1/tools/composio/apps/:composio_app_name/actions',\n params: { composio_app_name: composio_app_name },\n },\n ] as const;\n\nexport type ListComposioActionsByAppSuspenseQueryKey = ReturnType<\n typeof listComposioActionsByAppSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport async function listComposioActionsByAppSuspense(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioActionsByAppQueryResponse,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps/${composio_app_name}/actions`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listComposioActionsByAppSuspenseQueryOptions(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioActionsByAppSuspenseQueryKey(composio_app_name);\n return queryOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n typeof queryKey\n >({\n enabled: !!composio_app_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioActionsByAppSuspense(composio_app_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport function useListComposioActionsByAppSuspense<\n TData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryKey extends QueryKey = ListComposioActionsByAppSuspenseQueryKey\n>(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listComposioActionsByAppSuspenseQueryKey(composio_app_name);\n\n const query = useSuspenseQuery(\n {\n ...(listComposioActionsByAppSuspenseQueryOptions(\n composio_app_name,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListComposioActionsByApp422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioAppsQueryResponse,\n ListComposioAppsHeaderParams,\n ListComposioApps422,\n} from '../../types/ListComposioApps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listComposioAppsQueryKey = () =>\n [{ url: '/v1/tools/composio/apps' }] as const;\n\nexport type ListComposioAppsQueryKey = ReturnType<\n typeof listComposioAppsQueryKey\n>;\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport async function listComposioApps(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioAppsQueryResponse,\n ResponseErrorConfig<ListComposioApps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listComposioAppsQueryOptions(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioAppsQueryKey();\n return queryOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n ResponseConfig<ListComposioAppsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioApps(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport function useListComposioApps<\n TData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryKey extends QueryKey = ListComposioAppsQueryKey\n>(\n headers?: ListComposioAppsHeaderParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listComposioAppsQueryKey();\n\n const query = useQuery(\n {\n ...(listComposioAppsQueryOptions(\n headers,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListComposioApps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioAppsQueryResponse,\n ListComposioAppsHeaderParams,\n ListComposioApps422,\n} from '../../types/ListComposioApps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listComposioAppsSuspenseQueryKey = () =>\n [{ url: '/v1/tools/composio/apps' }] as const;\n\nexport type ListComposioAppsSuspenseQueryKey = ReturnType<\n typeof listComposioAppsSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport async function listComposioAppsSuspense(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioAppsQueryResponse,\n ResponseErrorConfig<ListComposioApps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listComposioAppsSuspenseQueryOptions(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioAppsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n ResponseConfig<ListComposioAppsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioAppsSuspense(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport function useListComposioAppsSuspense<\n TData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryKey extends QueryKey = ListComposioAppsSuspenseQueryKey\n>(\n headers?: ListComposioAppsHeaderParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listComposioAppsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listComposioAppsSuspenseQueryOptions(\n headers,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListComposioApps422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpServersQueryResponse,\n ListMcpServersHeaderParams,\n ListMcpServers422,\n} from '../../types/ListMcpServers.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listMcpServersQueryKey = () =>\n [{ url: '/v1/tools/mcp/servers' }] as const;\n\nexport type ListMcpServersQueryKey = ReturnType<typeof listMcpServersQueryKey>;\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport async function listMcpServers(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpServersQueryResponse,\n ResponseErrorConfig<ListMcpServers422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listMcpServersQueryOptions(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpServersQueryKey();\n return queryOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n ResponseConfig<ListMcpServersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpServers(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport function useListMcpServers<\n TData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryKey extends QueryKey = ListMcpServersQueryKey\n>(\n headers?: ListMcpServersHeaderParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listMcpServersQueryKey();\n\n const query = useQuery(\n {\n ...(listMcpServersQueryOptions(\n headers,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListMcpServers422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpServersQueryResponse,\n ListMcpServersHeaderParams,\n ListMcpServers422,\n} from '../../types/ListMcpServers.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listMcpServersSuspenseQueryKey = () =>\n [{ url: '/v1/tools/mcp/servers' }] as const;\n\nexport type ListMcpServersSuspenseQueryKey = ReturnType<\n typeof listMcpServersSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport async function listMcpServersSuspense(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpServersQueryResponse,\n ResponseErrorConfig<ListMcpServers422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listMcpServersSuspenseQueryOptions(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpServersSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n ResponseConfig<ListMcpServersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpServersSuspense(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport function useListMcpServersSuspense<\n TData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryKey extends QueryKey = ListMcpServersSuspenseQueryKey\n>(\n headers?: ListMcpServersHeaderParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listMcpServersSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listMcpServersSuspenseQueryOptions(\n headers,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListMcpServers422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpToolsByServerQueryResponse,\n ListMcpToolsByServerPathParams,\n ListMcpToolsByServer422,\n} from '../../types/ListMcpToolsByServer.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listMcpToolsByServerQueryKey = (\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name']\n) =>\n [\n {\n url: '/v1/tools/mcp/servers/:mcp_server_name/tools',\n params: { mcp_server_name: mcp_server_name },\n },\n ] as const;\n\nexport type ListMcpToolsByServerQueryKey = ReturnType<\n typeof listMcpToolsByServerQueryKey\n>;\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport async function listMcpToolsByServer(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpToolsByServerQueryResponse,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers/${mcp_server_name}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMcpToolsByServerQueryOptions(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpToolsByServerQueryKey(mcp_server_name);\n return queryOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n typeof queryKey\n >({\n enabled: !!mcp_server_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpToolsByServer(mcp_server_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport function useListMcpToolsByServer<\n TData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryKey extends QueryKey = ListMcpToolsByServerQueryKey\n>(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listMcpToolsByServerQueryKey(mcp_server_name);\n\n const query = useQuery(\n {\n ...(listMcpToolsByServerQueryOptions(\n mcp_server_name,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListMcpToolsByServer422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpToolsByServerQueryResponse,\n ListMcpToolsByServerPathParams,\n ListMcpToolsByServer422,\n} from '../../types/ListMcpToolsByServer.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listMcpToolsByServerSuspenseQueryKey = (\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name']\n) =>\n [\n {\n url: '/v1/tools/mcp/servers/:mcp_server_name/tools',\n params: { mcp_server_name: mcp_server_name },\n },\n ] as const;\n\nexport type ListMcpToolsByServerSuspenseQueryKey = ReturnType<\n typeof listMcpToolsByServerSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport async function listMcpToolsByServerSuspense(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpToolsByServerQueryResponse,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers/${mcp_server_name}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMcpToolsByServerSuspenseQueryOptions(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpToolsByServerSuspenseQueryKey(mcp_server_name);\n return queryOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n typeof queryKey\n >({\n enabled: !!mcp_server_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpToolsByServerSuspense(mcp_server_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport function useListMcpToolsByServerSuspense<\n TData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryKey extends QueryKey = ListMcpToolsByServerSuspenseQueryKey\n>(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listMcpToolsByServerSuspenseQueryKey(mcp_server_name);\n\n const query = useSuspenseQuery(\n {\n ...(listMcpToolsByServerSuspenseQueryOptions(\n mcp_server_name,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListMcpToolsByServer422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListToolsQueryResponse,\n ListToolsQueryParams,\n ListTools422,\n} from '../../types/ListTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listToolsQueryKey = (params?: ListToolsQueryParams) =>\n [{ url: '/v1/tools/' }, ...(params ? [params] : [])] as const;\n\nexport type ListToolsQueryKey = ReturnType<typeof listToolsQueryKey>;\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport async function listTools(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListToolsQueryResponse,\n ResponseErrorConfig<ListTools422>,\n unknown\n >({ method: 'GET', url: `/v1/tools/`, params, ...requestConfig });\n return res;\n}\n\nexport function listToolsQueryOptions(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listToolsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n ResponseConfig<ListToolsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listTools(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport function useListTools<\n TData = ResponseConfig<ListToolsQueryResponse>,\n TQueryData = ResponseConfig<ListToolsQueryResponse>,\n TQueryKey extends QueryKey = ListToolsQueryKey\n>(\n params?: ListToolsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listToolsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listToolsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListToolsQueryResponse,\n ListToolsQueryParams,\n ListTools422,\n} from '../../types/ListTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listToolsSuspenseQueryKey = (params?: ListToolsQueryParams) =>\n [{ url: '/v1/tools/' }, ...(params ? [params] : [])] as const;\n\nexport type ListToolsSuspenseQueryKey = ReturnType<\n typeof listToolsSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport async function listToolsSuspense(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListToolsQueryResponse,\n ResponseErrorConfig<ListTools422>,\n unknown\n >({ method: 'GET', url: `/v1/tools/`, params, ...requestConfig });\n return res;\n}\n\nexport function listToolsSuspenseQueryOptions(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listToolsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n ResponseConfig<ListToolsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listToolsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport function useListToolsSuspense<\n TData = ResponseConfig<ListToolsQueryResponse>,\n TQueryData = ResponseConfig<ListToolsQueryResponse>,\n TQueryKey extends QueryKey = ListToolsSuspenseQueryKey\n>(\n params?: ListToolsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listToolsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listToolsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveToolQueryResponse,\n RetrieveToolPathParams,\n RetrieveTool422,\n} from '../../types/RetrieveTool.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveToolQueryKey = (\n tool_id: RetrieveToolPathParams['tool_id']\n) => [{ url: '/v1/tools/:tool_id', params: { tool_id: tool_id } }] as const;\n\nexport type RetrieveToolQueryKey = ReturnType<typeof retrieveToolQueryKey>;\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport async function retrieveTool(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveToolQueryResponse,\n ResponseErrorConfig<RetrieveTool422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/${tool_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveToolQueryOptions(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveToolQueryKey(tool_id);\n return queryOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n ResponseConfig<RetrieveToolQueryResponse>,\n typeof queryKey\n >({\n enabled: !!tool_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveTool(tool_id, config);\n },\n });\n}\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport function useRetrieveTool<\n TData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryKey extends QueryKey = RetrieveToolQueryKey\n>(\n tool_id: RetrieveToolPathParams['tool_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveToolQueryKey(tool_id);\n\n const query = useQuery(\n {\n ...(retrieveToolQueryOptions(\n tool_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveTool422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveToolQueryResponse,\n RetrieveToolPathParams,\n RetrieveTool422,\n} from '../../types/RetrieveTool.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveToolSuspenseQueryKey = (\n tool_id: RetrieveToolPathParams['tool_id']\n) => [{ url: '/v1/tools/:tool_id', params: { tool_id: tool_id } }] as const;\n\nexport type RetrieveToolSuspenseQueryKey = ReturnType<\n typeof retrieveToolSuspenseQueryKey\n>;\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport async function retrieveToolSuspense(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveToolQueryResponse,\n ResponseErrorConfig<RetrieveTool422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/${tool_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveToolSuspenseQueryOptions(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveToolSuspenseQueryKey(tool_id);\n return queryOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n ResponseConfig<RetrieveToolQueryResponse>,\n typeof queryKey\n >({\n enabled: !!tool_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveToolSuspense(tool_id, config);\n },\n });\n}\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport function useRetrieveToolSuspense<\n TData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryKey extends QueryKey = RetrieveToolSuspenseQueryKey\n>(\n tool_id: RetrieveToolPathParams['tool_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveToolSuspenseQueryKey(tool_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveToolSuspenseQueryOptions(\n tool_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveTool422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RunToolFromSourceMutationRequest,\n RunToolFromSourceMutationResponse,\n RunToolFromSource422,\n} from '../../types/RunToolFromSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const runToolFromSourceMutationKey = () =>\n [{ url: '/v1/tools/run' }] as const;\n\nexport type RunToolFromSourceMutationKey = ReturnType<\n typeof runToolFromSourceMutationKey\n>;\n\n/**\n * @description Attempt to build a tool from source, then run it on the provided arguments\n * @summary Run Tool From Source\n * {@link /v1/tools/run}\n */\nexport async function runToolFromSource(\n data: RunToolFromSourceMutationRequest,\n config: Partial<RequestConfig<RunToolFromSourceMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RunToolFromSourceMutationResponse,\n ResponseErrorConfig<RunToolFromSource422>,\n RunToolFromSourceMutationRequest\n >({\n method: 'POST',\n url: `/v1/tools/run`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Attempt to build a tool from source, then run it on the provided arguments\n * @summary Run Tool From Source\n * {@link /v1/tools/run}\n */\nexport function useRunToolFromSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<RunToolFromSourceMutationResponse>,\n ResponseErrorConfig<RunToolFromSource422>,\n { data: RunToolFromSourceMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<RunToolFromSourceMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? runToolFromSourceMutationKey();\n\n return useMutation<\n ResponseConfig<RunToolFromSourceMutationResponse>,\n ResponseErrorConfig<RunToolFromSource422>,\n { data: RunToolFromSourceMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return runToolFromSource(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UpsertToolMutationRequest,\n UpsertToolMutationResponse,\n UpsertTool422,\n} from '../../types/UpsertTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const upsertToolMutationKey = () => [{ url: '/v1/tools/' }] as const;\n\nexport type UpsertToolMutationKey = ReturnType<typeof upsertToolMutationKey>;\n\n/**\n * @description Create or update a tool\n * @summary Upsert Tool\n * {@link /v1/tools/}\n */\nexport async function upsertTool(\n data: UpsertToolMutationRequest,\n config: Partial<RequestConfig<UpsertToolMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n UpsertToolMutationResponse,\n ResponseErrorConfig<UpsertTool422>,\n UpsertToolMutationRequest\n >({\n method: 'PUT',\n url: `/v1/tools/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create or update a tool\n * @summary Upsert Tool\n * {@link /v1/tools/}\n */\nexport function useUpsertTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UpsertToolMutationResponse>,\n ResponseErrorConfig<UpsertTool422>,\n { data: UpsertToolMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UpsertToolMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? upsertToolMutationKey();\n\n return useMutation<\n ResponseConfig<UpsertToolMutationResponse>,\n ResponseErrorConfig<UpsertTool422>,\n { data: UpsertToolMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return upsertTool(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateVoiceChatCompletionsMutationRequest,\n CreateVoiceChatCompletionsMutationResponse,\n CreateVoiceChatCompletionsPathParams,\n CreateVoiceChatCompletionsHeaderParams,\n CreateVoiceChatCompletions422,\n} from '../../types/CreateVoiceChatCompletions.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createVoiceChatCompletionsMutationKey = () =>\n [{ url: '/v1/voice-beta/{agent_id}/chat/completions' }] as const;\n\nexport type CreateVoiceChatCompletionsMutationKey = ReturnType<\n typeof createVoiceChatCompletionsMutationKey\n>;\n\n/**\n * @summary Create Voice Chat Completions\n * {@link /v1/voice-beta/:agent_id/chat/completions}\n */\nexport async function createVoiceChatCompletions(\n agent_id: CreateVoiceChatCompletionsPathParams['agent_id'],\n data?: CreateVoiceChatCompletionsMutationRequest,\n headers?: CreateVoiceChatCompletionsHeaderParams,\n config: Partial<RequestConfig<CreateVoiceChatCompletionsMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateVoiceChatCompletionsMutationResponse,\n ResponseErrorConfig<CreateVoiceChatCompletions422>,\n CreateVoiceChatCompletionsMutationRequest\n >({\n method: 'POST',\n url: `/v1/voice-beta/${agent_id}/chat/completions`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @summary Create Voice Chat Completions\n * {@link /v1/voice-beta/:agent_id/chat/completions}\n */\nexport function useCreateVoiceChatCompletions<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateVoiceChatCompletionsMutationResponse>,\n ResponseErrorConfig<CreateVoiceChatCompletions422>,\n {\n agent_id: CreateVoiceChatCompletionsPathParams['agent_id'];\n data?: CreateVoiceChatCompletionsMutationRequest;\n headers?: CreateVoiceChatCompletionsHeaderParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<CreateVoiceChatCompletionsMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createVoiceChatCompletionsMutationKey();\n\n return useMutation<\n ResponseConfig<CreateVoiceChatCompletionsMutationResponse>,\n ResponseErrorConfig<CreateVoiceChatCompletions422>,\n {\n agent_id: CreateVoiceChatCompletionsPathParams['agent_id'];\n data?: CreateVoiceChatCompletionsMutationRequest;\n headers?: CreateVoiceChatCompletionsHeaderParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data, headers }) => {\n return createVoiceChatCompletions(agent_id, data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsCreateTemplateFromAgentPathParams = {\n /**\n * @type string\n */\n agent_id: string;\n};\n\n/**\n * @description 201\n */\nexport type AgentsCreateTemplateFromAgent201 = {\n /**\n * @type string\n */\n templateName: string;\n /**\n * @type string\n */\n templateId: string;\n};\n\nexport const agentsCreateTemplateFromAgent500MessageEnum = {\n 'Failed to create agent template': 'Failed to create agent template',\n} as const;\n\nexport type AgentsCreateTemplateFromAgent500MessageEnum =\n (typeof agentsCreateTemplateFromAgent500MessageEnum)[keyof typeof agentsCreateTemplateFromAgent500MessageEnum];\n\n/**\n * @description 500\n */\nexport type AgentsCreateTemplateFromAgent500 = {\n /**\n * @type string\n */\n message: AgentsCreateTemplateFromAgent500MessageEnum;\n};\n\n/**\n * @description Body\n */\nexport type AgentsCreateTemplateFromAgentMutationRequest = {\n /**\n * @type string | undefined\n */\n project?: string;\n};\n\nexport type AgentsCreateTemplateFromAgentMutationResponse =\n AgentsCreateTemplateFromAgent201;\n\nexport type AgentsCreateTemplateFromAgentMutation = {\n Response: AgentsCreateTemplateFromAgent201;\n Request: AgentsCreateTemplateFromAgentMutationRequest;\n PathParams: AgentsCreateTemplateFromAgentPathParams;\n Errors: AgentsCreateTemplateFromAgent500;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsGetAgentVariablesPathParams = {\n /**\n * @type string\n */\n agent_id: string;\n};\n\n/**\n * @description 200\n */\nexport type AgentsGetAgentVariables200 = {\n /**\n * @type object\n */\n variables: {\n [key: string]: string;\n };\n};\n\nexport const agentsGetAgentVariables404MessageEnum = {\n 'Agent not found': 'Agent not found',\n} as const;\n\nexport type AgentsGetAgentVariables404MessageEnum =\n (typeof agentsGetAgentVariables404MessageEnum)[keyof typeof agentsGetAgentVariables404MessageEnum];\n\n/**\n * @description 404\n */\nexport type AgentsGetAgentVariables404 = {\n /**\n * @type string\n */\n message: AgentsGetAgentVariables404MessageEnum;\n};\n\nexport type AgentsGetAgentVariablesQueryResponse = AgentsGetAgentVariables200;\n\nexport type AgentsGetAgentVariablesQuery = {\n Response: AgentsGetAgentVariables200;\n PathParams: AgentsGetAgentVariablesPathParams;\n Errors: AgentsGetAgentVariables404;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsMigrateAgentPathParams = {\n /**\n * @type string\n */\n agent_id: string;\n};\n\nexport const agentsMigrateAgent200SuccessEnum = {\n true: true,\n} as const;\n\nexport type AgentsMigrateAgent200SuccessEnum =\n (typeof agentsMigrateAgent200SuccessEnum)[keyof typeof agentsMigrateAgent200SuccessEnum];\n\n/**\n * @description 200\n */\nexport type AgentsMigrateAgent200 = {\n /**\n * @type boolean\n */\n success: AgentsMigrateAgent200SuccessEnum;\n};\n\nexport const agentsMigrateAgent404MessageEnum = {\n 'Agent provided is a template or not found, you can only migrate deployed agents':\n 'Agent provided is a template or not found, you can only migrate deployed agents',\n 'Template version provided does not exist':\n 'Template version provided does not exist',\n} as const;\n\nexport type AgentsMigrateAgent404MessageEnum =\n (typeof agentsMigrateAgent404MessageEnum)[keyof typeof agentsMigrateAgent404MessageEnum];\n\n/**\n * @description 404\n */\nexport type AgentsMigrateAgent404 = {\n /**\n * @type string\n */\n message: AgentsMigrateAgent404MessageEnum;\n};\n\nexport const agentsMigrateAgent409MessageEnum = {\n 'You can only migrate agents to a new versioned agent template that belongs to the same project':\n 'You can only migrate agents to a new versioned agent template that belongs to the same project',\n} as const;\n\nexport type AgentsMigrateAgent409MessageEnum =\n (typeof agentsMigrateAgent409MessageEnum)[keyof typeof agentsMigrateAgent409MessageEnum];\n\n/**\n * @description 409\n */\nexport type AgentsMigrateAgent409 = {\n /**\n * @type string\n */\n message: AgentsMigrateAgent409MessageEnum;\n};\n\nexport const agentsMigrateAgent500MessageEnum = {\n 'Migration failed': 'Migration failed',\n} as const;\n\nexport type AgentsMigrateAgent500MessageEnum =\n (typeof agentsMigrateAgent500MessageEnum)[keyof typeof agentsMigrateAgent500MessageEnum];\n\n/**\n * @description 500\n */\nexport type AgentsMigrateAgent500 = {\n /**\n * @type string\n */\n message: AgentsMigrateAgent500MessageEnum;\n};\n\n/**\n * @description Body\n */\nexport type AgentsMigrateAgentMutationRequest = {\n /**\n * @type string\n */\n to_template: string;\n /**\n * @description If you chose to not preserve core memories, you should provide the new variables for the core memories\n * @type object | undefined\n */\n variables?: {\n [key: string]: string;\n };\n /**\n * @type boolean\n */\n preserve_core_memories: boolean;\n};\n\nexport type AgentsMigrateAgentMutationResponse = AgentsMigrateAgent200;\n\nexport type AgentsMigrateAgentMutation = {\n Response: AgentsMigrateAgent200;\n Request: AgentsMigrateAgentMutationRequest;\n PathParams: AgentsMigrateAgentPathParams;\n Errors: AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { AgentState } from '../AgentState.ts';\n\n/**\n * @description 200\n */\nexport type AgentsSearchDeployedAgents200 = {\n /**\n * @type array\n */\n agents: AgentState[];\n /**\n * @type string\n */\n nextCursor?: string | null;\n};\n\nexport const searchFieldEnum = {\n version: 'version',\n} as const;\n\nexport type SearchFieldEnum =\n (typeof searchFieldEnum)[keyof typeof searchFieldEnum];\n\nexport const searchFieldEnum2 = {\n name: 'name',\n} as const;\n\nexport type SearchFieldEnum2 =\n (typeof searchFieldEnum2)[keyof typeof searchFieldEnum2];\n\nexport const searchOperatorEnum = {\n eq: 'eq',\n contains: 'contains',\n} as const;\n\nexport type SearchOperatorEnum =\n (typeof searchOperatorEnum)[keyof typeof searchOperatorEnum];\n\nexport const searchFieldEnum3 = {\n tags: 'tags',\n} as const;\n\nexport type SearchFieldEnum3 =\n (typeof searchFieldEnum3)[keyof typeof searchFieldEnum3];\n\nexport const searchOperatorEnum2 = {\n contains: 'contains',\n} as const;\n\nexport type SearchOperatorEnum2 =\n (typeof searchOperatorEnum2)[keyof typeof searchOperatorEnum2];\n\nexport const searchFieldEnum4 = {\n identity: 'identity',\n} as const;\n\nexport type SearchFieldEnum4 =\n (typeof searchFieldEnum4)[keyof typeof searchFieldEnum4];\n\nexport const searchOperatorEnum3 = {\n eq: 'eq',\n} as const;\n\nexport type SearchOperatorEnum3 =\n (typeof searchOperatorEnum3)[keyof typeof searchOperatorEnum3];\n\nexport const agentsSearchDeployedAgentsMutationRequestCombinatorEnum = {\n AND: 'AND',\n} as const;\n\nexport type AgentsSearchDeployedAgentsMutationRequestCombinatorEnum =\n (typeof agentsSearchDeployedAgentsMutationRequestCombinatorEnum)[keyof typeof agentsSearchDeployedAgentsMutationRequestCombinatorEnum];\n\n/**\n * @description Body\n */\nexport type AgentsSearchDeployedAgentsMutationRequest = {\n /**\n * @type array | undefined\n */\n search?: (\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum;\n /**\n * @type string\n */\n value: string;\n }\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum2;\n /**\n * @type string\n */\n operator: SearchOperatorEnum;\n /**\n * @type string\n */\n value: string;\n }\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum3;\n /**\n * @type string\n */\n operator: SearchOperatorEnum2;\n /**\n * @type array\n */\n value: string[];\n }\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum4;\n /**\n * @type string\n */\n operator: SearchOperatorEnum3;\n /**\n * @type string\n */\n value: string;\n }\n )[];\n /**\n * @type string | undefined\n */\n project_id?: string;\n /**\n * @type string | undefined\n */\n combinator?: AgentsSearchDeployedAgentsMutationRequestCombinatorEnum;\n /**\n * @type number | undefined\n */\n limit?: number;\n /**\n * @type string\n */\n after?: string | null;\n};\n\nexport type AgentsSearchDeployedAgentsMutationResponse =\n AgentsSearchDeployedAgents200;\n\nexport type AgentsSearchDeployedAgentsMutation = {\n Response: AgentsSearchDeployedAgents200;\n Request: AgentsSearchDeployedAgentsMutationRequest;\n Errors: any;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsVersionAgentTemplatePathParams = {\n /**\n * @description The agent ID of the agent to migrate, if this agent is not a template, it will create a agent template from the agent provided as well\n * @type string\n */\n agent_id: string;\n};\n\nexport type AgentsVersionAgentTemplateQueryParams = {\n /**\n * @type boolean | undefined\n */\n returnAgentState?: boolean;\n};\n\n/**\n * @description 201\n */\nexport type AgentsVersionAgentTemplate201 = any;\n\nexport const agentsVersionAgentTemplate404MessageEnum = {\n 'Agent not found': 'Agent not found',\n} as const;\n\nexport type AgentsVersionAgentTemplate404MessageEnum =\n (typeof agentsVersionAgentTemplate404MessageEnum)[keyof typeof agentsVersionAgentTemplate404MessageEnum];\n\n/**\n * @description 404\n */\nexport type AgentsVersionAgentTemplate404 = {\n /**\n * @type string\n */\n message: AgentsVersionAgentTemplate404MessageEnum;\n};\n\nexport const agentsVersionAgentTemplate500MessageEnum = {\n 'Failed to version agent template': 'Failed to version agent template',\n} as const;\n\nexport type AgentsVersionAgentTemplate500MessageEnum =\n (typeof agentsVersionAgentTemplate500MessageEnum)[keyof typeof agentsVersionAgentTemplate500MessageEnum];\n\n/**\n * @description 500\n */\nexport type AgentsVersionAgentTemplate500 = {\n /**\n * @type string\n */\n message: AgentsVersionAgentTemplate500MessageEnum;\n};\n\n/**\n * @description Body\n */\nexport type AgentsVersionAgentTemplateMutationRequest = {\n /**\n * @type boolean | undefined\n */\n migrate_deployed_agents?: boolean;\n /**\n * @maxLength 140\n * @type string | undefined\n */\n message?: string;\n};\n\nexport type AgentsVersionAgentTemplateMutationResponse =\n AgentsVersionAgentTemplate201;\n\nexport type AgentsVersionAgentTemplateMutation = {\n Response: AgentsVersionAgentTemplate201;\n Request: AgentsVersionAgentTemplateMutationRequest;\n PathParams: AgentsVersionAgentTemplatePathParams;\n QueryParams: AgentsVersionAgentTemplateQueryParams;\n Errors: AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const agentTypeEnum = {\n memgpt_agent: 'memgpt_agent',\n split_thread_agent: 'split_thread_agent',\n sleeptime_agent: 'sleeptime_agent',\n} as const;\n\nexport type AgentTypeEnum = (typeof agentTypeEnum)[keyof typeof agentTypeEnum];\n\n/**\n * @description Enum to represent the type of agent.\n */\nexport type AgentType = AgentTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { AuthSchemeField } from './AuthSchemeField.ts';\n\nexport const appAuthSchemeAuthModeEnum = {\n OAUTH2: 'OAUTH2',\n OAUTH1: 'OAUTH1',\n API_KEY: 'API_KEY',\n BASIC: 'BASIC',\n BEARER_TOKEN: 'BEARER_TOKEN',\n BASIC_WITH_JWT: 'BASIC_WITH_JWT',\n GOOGLE_SERVICE_ACCOUNT: 'GOOGLE_SERVICE_ACCOUNT',\n GOOGLEADS_AUTH: 'GOOGLEADS_AUTH',\n NO_AUTH: 'NO_AUTH',\n CALCOM_AUTH: 'CALCOM_AUTH',\n} as const;\n\nexport type AppAuthSchemeAuthModeEnum =\n (typeof appAuthSchemeAuthModeEnum)[keyof typeof appAuthSchemeAuthModeEnum];\n\n/**\n * @description App authenticatio scheme.\n */\nexport type AppAuthScheme = {\n /**\n * @type string\n */\n scheme_name: string;\n /**\n * @type string\n */\n auth_mode: AppAuthSchemeAuthModeEnum;\n /**\n * @type array\n */\n fields: AuthSchemeField[];\n proxy?: {\n [key: string]: any;\n } | null;\n authorization_url?: string | null;\n token_url?: string | null;\n default_scopes?: any[] | null;\n token_response_metadata?: any[] | null;\n client_id?: string | null;\n client_secret?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { LettaAssistantMessageContentUnion } from './LettaAssistantMessageContentUnion.ts';\n\nexport const assistantMessageMessageTypeEnum = {\n assistant_message: 'assistant_message',\n} as const;\n\nexport type AssistantMessageMessageTypeEnum =\n (typeof assistantMessageMessageTypeEnum)[keyof typeof assistantMessageMessageTypeEnum];\n\n/**\n * @description A message sent by the LLM in response to user input. Used in the LLM context.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n content (Union[str, List[LettaAssistantMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)\n */\nexport type AssistantMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"assistant_message\"\n * @type string\n */\n message_type: AssistantMessageMessageTypeEnum;\n /**\n * @description The message content sent by the agent (can be a string or an array of content parts)\n */\n content: LettaAssistantMessageContentUnion[] | string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const chatCompletionAudioParamFormatEnum = {\n wav: 'wav',\n mp3: 'mp3',\n flac: 'flac',\n opus: 'opus',\n pcm16: 'pcm16',\n} as const;\n\nexport type ChatCompletionAudioParamFormatEnum =\n (typeof chatCompletionAudioParamFormatEnum)[keyof typeof chatCompletionAudioParamFormatEnum];\n\nexport const chatCompletionAudioParamVoiceEnum = {\n alloy: 'alloy',\n ash: 'ash',\n ballad: 'ballad',\n coral: 'coral',\n echo: 'echo',\n fable: 'fable',\n onyx: 'onyx',\n nova: 'nova',\n sage: 'sage',\n shimmer: 'shimmer',\n verse: 'verse',\n} as const;\n\nexport type ChatCompletionAudioParamVoiceEnum =\n (typeof chatCompletionAudioParamVoiceEnum)[keyof typeof chatCompletionAudioParamVoiceEnum];\n\nexport type ChatCompletionAudioParam = {\n /**\n * @type string\n */\n format: ChatCompletionAudioParamFormatEnum;\n voice: string | ChatCompletionAudioParamVoiceEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const policyVersionEnum = {\n '1': '1',\n} as const;\n\nexport type PolicyVersionEnum =\n (typeof policyVersionEnum)[keyof typeof policyVersionEnum];\n\nexport const dataTypeEnum = {\n agent: 'agent',\n} as const;\n\nexport type DataTypeEnum = (typeof dataTypeEnum)[keyof typeof dataTypeEnum];\n\nexport const dataAccessEnum = {\n read_messages: 'read_messages',\n write_messages: 'write_messages',\n read_agent: 'read_agent',\n write_agent: 'write_agent',\n} as const;\n\nexport type DataAccessEnum =\n (typeof dataAccessEnum)[keyof typeof dataAccessEnum];\n\n/**\n * @description 201\n */\nexport type ClientSideAccessTokensCreateClientSideAccessToken201 = {\n /**\n * @type object\n */\n policy: {\n /**\n * @type string\n */\n version: PolicyVersionEnum;\n /**\n * @type array\n */\n data: {\n /**\n * @type string\n */\n type: DataTypeEnum;\n /**\n * @type string\n */\n id: string;\n /**\n * @type array\n */\n access: DataAccessEnum[];\n }[];\n };\n /**\n * @type string\n */\n token: string;\n /**\n * @type string\n */\n hostname: string;\n /**\n * @type string\n */\n expiresAt: string;\n};\n\n/**\n * @description 400\n */\nexport type ClientSideAccessTokensCreateClientSideAccessToken400 = {\n /**\n * @type string\n */\n message: string;\n};\n\nexport const policyTypeEnum = {\n agent: 'agent',\n} as const;\n\nexport type PolicyTypeEnum =\n (typeof policyTypeEnum)[keyof typeof policyTypeEnum];\n\nexport const policyAccessEnum = {\n read_messages: 'read_messages',\n write_messages: 'write_messages',\n read_agent: 'read_agent',\n write_agent: 'write_agent',\n} as const;\n\nexport type PolicyAccessEnum =\n (typeof policyAccessEnum)[keyof typeof policyAccessEnum];\n\n/**\n * @description Body\n */\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest = {\n /**\n * @type array\n */\n policy: {\n /**\n * @type string\n */\n type: PolicyTypeEnum;\n /**\n * @type string\n */\n id: string;\n /**\n * @type array\n */\n access: PolicyAccessEnum[];\n }[];\n /**\n * @description The hostname of the client side application. Please specify the full URL including the protocol (http or https).\n * @type string, uri\n */\n hostname: string;\n /**\n * @description The expiration date of the token. If not provided, the token will expire in 5 minutes\n * @type string | undefined\n */\n expires_at?: string;\n};\n\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse =\n ClientSideAccessTokensCreateClientSideAccessToken201;\n\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutation = {\n Response: ClientSideAccessTokensCreateClientSideAccessToken201;\n Request: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest;\n Errors: ClientSideAccessTokensCreateClientSideAccessToken400;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { ChatCompletionAssistantMessageParam } from './ChatCompletionAssistantMessageParam.ts';\nimport type { ChatCompletionAudioParam } from './ChatCompletionAudioParam.ts';\nimport type { ChatCompletionDeveloperMessageParam } from './ChatCompletionDeveloperMessageParam.ts';\nimport type { ChatCompletionFunctionCallOptionParam } from './ChatCompletionFunctionCallOptionParam.ts';\nimport type { ChatCompletionFunctionMessageParam } from './ChatCompletionFunctionMessageParam.ts';\nimport type { ChatCompletionNamedToolChoiceParam } from './ChatCompletionNamedToolChoiceParam.ts';\nimport type { ChatCompletionPredictionContentParam } from './ChatCompletionPredictionContentParam.ts';\nimport type { ChatCompletionStreamOptionsParam } from './ChatCompletionStreamOptionsParam.ts';\nimport type { ChatCompletionSystemMessageParam } from './ChatCompletionSystemMessageParam.ts';\nimport type { ChatCompletionToolMessageParam } from './ChatCompletionToolMessageParam.ts';\nimport type { ChatCompletionToolParam } from './ChatCompletionToolParam.ts';\nimport type { ChatCompletionUserMessageParam } from './ChatCompletionUserMessageParam.ts';\nimport type { OpenaiTypesChatCompletionCreateParamsFunction } from './OpenaiTypesChatCompletionCreateParamsFunction.ts';\nimport type { ResponseFormatJSONObject } from './ResponseFormatJSONObject.ts';\nimport type { ResponseFormatJSONSchema } from './ResponseFormatJSONSchema.ts';\nimport type { ResponseFormatText } from './ResponseFormatText.ts';\nimport type { WebSearchOptions } from './WebSearchOptions.ts';\n\nexport const completionCreateParamsNonStreamingModelEnum = {\n 'o3-mini': 'o3-mini',\n 'o3-mini-2025-01-31': 'o3-mini-2025-01-31',\n o1: 'o1',\n 'o1-2024-12-17': 'o1-2024-12-17',\n 'o1-preview': 'o1-preview',\n 'o1-preview-2024-09-12': 'o1-preview-2024-09-12',\n 'o1-mini': 'o1-mini',\n 'o1-mini-2024-09-12': 'o1-mini-2024-09-12',\n 'gpt-4o': 'gpt-4o',\n 'gpt-4o-2024-11-20': 'gpt-4o-2024-11-20',\n 'gpt-4o-2024-08-06': 'gpt-4o-2024-08-06',\n 'gpt-4o-2024-05-13': 'gpt-4o-2024-05-13',\n 'gpt-4o-audio-preview': 'gpt-4o-audio-preview',\n 'gpt-4o-audio-preview-2024-10-01': 'gpt-4o-audio-preview-2024-10-01',\n 'gpt-4o-audio-preview-2024-12-17': 'gpt-4o-audio-preview-2024-12-17',\n 'gpt-4o-mini-audio-preview': 'gpt-4o-mini-audio-preview',\n 'gpt-4o-mini-audio-preview-2024-12-17':\n 'gpt-4o-mini-audio-preview-2024-12-17',\n 'gpt-4o-search-preview': 'gpt-4o-search-preview',\n 'gpt-4o-mini-search-preview': 'gpt-4o-mini-search-preview',\n 'gpt-4o-search-preview-2025-03-11': 'gpt-4o-search-preview-2025-03-11',\n 'gpt-4o-mini-search-preview-2025-03-11':\n 'gpt-4o-mini-search-preview-2025-03-11',\n 'chatgpt-4o-latest': 'chatgpt-4o-latest',\n 'gpt-4o-mini': 'gpt-4o-mini',\n 'gpt-4o-mini-2024-07-18': 'gpt-4o-mini-2024-07-18',\n 'gpt-4-turbo': 'gpt-4-turbo',\n 'gpt-4-turbo-2024-04-09': 'gpt-4-turbo-2024-04-09',\n 'gpt-4-0125-preview': 'gpt-4-0125-preview',\n 'gpt-4-turbo-preview': 'gpt-4-turbo-preview',\n 'gpt-4-1106-preview': 'gpt-4-1106-preview',\n 'gpt-4-vision-preview': 'gpt-4-vision-preview',\n 'gpt-4': 'gpt-4',\n 'gpt-4-0314': 'gpt-4-0314',\n 'gpt-4-0613': 'gpt-4-0613',\n 'gpt-4-32k': 'gpt-4-32k',\n 'gpt-4-32k-0314': 'gpt-4-32k-0314',\n 'gpt-4-32k-0613': 'gpt-4-32k-0613',\n 'gpt-3.5-turbo': 'gpt-3.5-turbo',\n 'gpt-3.5-turbo-16k': 'gpt-3.5-turbo-16k',\n 'gpt-3.5-turbo-0301': 'gpt-3.5-turbo-0301',\n 'gpt-3.5-turbo-0613': 'gpt-3.5-turbo-0613',\n 'gpt-3.5-turbo-1106': 'gpt-3.5-turbo-1106',\n 'gpt-3.5-turbo-0125': 'gpt-3.5-turbo-0125',\n 'gpt-3.5-turbo-16k-0613': 'gpt-3.5-turbo-16k-0613',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingModelEnum =\n (typeof completionCreateParamsNonStreamingModelEnum)[keyof typeof completionCreateParamsNonStreamingModelEnum];\n\nexport const completionCreateParamsNonStreamingFunctionCallEnum = {\n none: 'none',\n auto: 'auto',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingFunctionCallEnum =\n (typeof completionCreateParamsNonStreamingFunctionCallEnum)[keyof typeof completionCreateParamsNonStreamingFunctionCallEnum];\n\nexport const completionCreateParamsNonStreamingModalitiesEnum = {\n text: 'text',\n audio: 'audio',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingModalitiesEnum =\n (typeof completionCreateParamsNonStreamingModalitiesEnum)[keyof typeof completionCreateParamsNonStreamingModalitiesEnum];\n\nexport const completionCreateParamsNonStreamingReasoningEffortEnum = {\n low: 'low',\n medium: 'medium',\n high: 'high',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingReasoningEffortEnum =\n (typeof completionCreateParamsNonStreamingReasoningEffortEnum)[keyof typeof completionCreateParamsNonStreamingReasoningEffortEnum];\n\nexport const completionCreateParamsNonStreamingServiceTierEnum = {\n auto: 'auto',\n default: 'default',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingServiceTierEnum =\n (typeof completionCreateParamsNonStreamingServiceTierEnum)[keyof typeof completionCreateParamsNonStreamingServiceTierEnum];\n\nexport const completionCreateParamsNonStreamingToolChoiceEnum = {\n none: 'none',\n auto: 'auto',\n required: 'required',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingToolChoiceEnum =\n (typeof completionCreateParamsNonStreamingToolChoiceEnum)[keyof typeof completionCreateParamsNonStreamingToolChoiceEnum];\n\nexport type CompletionCreateParamsNonStreaming = {\n /**\n * @type array\n */\n messages: (\n | ChatCompletionDeveloperMessageParam\n | ChatCompletionSystemMessageParam\n | ChatCompletionUserMessageParam\n | ChatCompletionAssistantMessageParam\n | ChatCompletionToolMessageParam\n | ChatCompletionFunctionMessageParam\n )[];\n model: string | CompletionCreateParamsNonStreamingModelEnum;\n audio?: ChatCompletionAudioParam | null;\n frequency_penalty?: number | null;\n function_call?:\n | CompletionCreateParamsNonStreamingFunctionCallEnum\n | ChatCompletionFunctionCallOptionParam;\n /**\n * @type array | undefined\n */\n functions?: OpenaiTypesChatCompletionCreateParamsFunction[];\n logit_bias?: {\n [key: string]: number;\n } | null;\n logprobs?: boolean | null;\n max_completion_tokens?: number | null;\n max_tokens?: number | null;\n metadata?: {\n [key: string]: string;\n } | null;\n modalities?: CompletionCreateParamsNonStreamingModalitiesEnum[] | null;\n n?: number | null;\n /**\n * @type boolean | undefined\n */\n parallel_tool_calls?: boolean;\n prediction?: ChatCompletionPredictionContentParam | null;\n presence_penalty?: number | null;\n reasoning_effort?: CompletionCreateParamsNonStreamingReasoningEffortEnum | null;\n response_format?:\n | ResponseFormatText\n | ResponseFormatJSONSchema\n | ResponseFormatJSONObject;\n seed?: number | null;\n service_tier?: CompletionCreateParamsNonStreamingServiceTierEnum | null;\n stop?: string | string[] | null;\n store?: boolean | null;\n stream_options?: ChatCompletionStreamOptionsParam | null;\n temperature?: number | null;\n tool_choice?:\n | CompletionCreateParamsNonStreamingToolChoiceEnum\n | ChatCompletionNamedToolChoiceParam;\n /**\n * @type array | undefined\n */\n tools?: ChatCompletionToolParam[];\n top_logprobs?: number | null;\n top_p?: number | null;\n /**\n * @type string | undefined\n */\n user?: string;\n /**\n * @type object | undefined\n */\n web_search_options?: WebSearchOptions;\n stream?: null | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { ChatCompletionAssistantMessageParam } from './ChatCompletionAssistantMessageParam.ts';\nimport type { ChatCompletionAudioParam } from './ChatCompletionAudioParam.ts';\nimport type { ChatCompletionDeveloperMessageParam } from './ChatCompletionDeveloperMessageParam.ts';\nimport type { ChatCompletionFunctionCallOptionParam } from './ChatCompletionFunctionCallOptionParam.ts';\nimport type { ChatCompletionFunctionMessageParam } from './ChatCompletionFunctionMessageParam.ts';\nimport type { ChatCompletionNamedToolChoiceParam } from './ChatCompletionNamedToolChoiceParam.ts';\nimport type { ChatCompletionPredictionContentParam } from './ChatCompletionPredictionContentParam.ts';\nimport type { ChatCompletionStreamOptionsParam } from './ChatCompletionStreamOptionsParam.ts';\nimport type { ChatCompletionSystemMessageParam } from './ChatCompletionSystemMessageParam.ts';\nimport type { ChatCompletionToolMessageParam } from './ChatCompletionToolMessageParam.ts';\nimport type { ChatCompletionToolParam } from './ChatCompletionToolParam.ts';\nimport type { ChatCompletionUserMessageParam } from './ChatCompletionUserMessageParam.ts';\nimport type { OpenaiTypesChatCompletionCreateParamsFunction } from './OpenaiTypesChatCompletionCreateParamsFunction.ts';\nimport type { ResponseFormatJSONObject } from './ResponseFormatJSONObject.ts';\nimport type { ResponseFormatJSONSchema } from './ResponseFormatJSONSchema.ts';\nimport type { ResponseFormatText } from './ResponseFormatText.ts';\nimport type { WebSearchOptions } from './WebSearchOptions.ts';\n\nexport const completionCreateParamsStreamingModelEnum = {\n 'o3-mini': 'o3-mini',\n 'o3-mini-2025-01-31': 'o3-mini-2025-01-31',\n o1: 'o1',\n 'o1-2024-12-17': 'o1-2024-12-17',\n 'o1-preview': 'o1-preview',\n 'o1-preview-2024-09-12': 'o1-preview-2024-09-12',\n 'o1-mini': 'o1-mini',\n 'o1-mini-2024-09-12': 'o1-mini-2024-09-12',\n 'gpt-4o': 'gpt-4o',\n 'gpt-4o-2024-11-20': 'gpt-4o-2024-11-20',\n 'gpt-4o-2024-08-06': 'gpt-4o-2024-08-06',\n 'gpt-4o-2024-05-13': 'gpt-4o-2024-05-13',\n 'gpt-4o-audio-preview': 'gpt-4o-audio-preview',\n 'gpt-4o-audio-preview-2024-10-01': 'gpt-4o-audio-preview-2024-10-01',\n 'gpt-4o-audio-preview-2024-12-17': 'gpt-4o-audio-preview-2024-12-17',\n 'gpt-4o-mini-audio-preview': 'gpt-4o-mini-audio-preview',\n 'gpt-4o-mini-audio-preview-2024-12-17':\n 'gpt-4o-mini-audio-preview-2024-12-17',\n 'gpt-4o-search-preview': 'gpt-4o-search-preview',\n 'gpt-4o-mini-search-preview': 'gpt-4o-mini-search-preview',\n 'gpt-4o-search-preview-2025-03-11': 'gpt-4o-search-preview-2025-03-11',\n 'gpt-4o-mini-search-preview-2025-03-11':\n 'gpt-4o-mini-search-preview-2025-03-11',\n 'chatgpt-4o-latest': 'chatgpt-4o-latest',\n 'gpt-4o-mini': 'gpt-4o-mini',\n 'gpt-4o-mini-2024-07-18': 'gpt-4o-mini-2024-07-18',\n 'gpt-4-turbo': 'gpt-4-turbo',\n 'gpt-4-turbo-2024-04-09': 'gpt-4-turbo-2024-04-09',\n 'gpt-4-0125-preview': 'gpt-4-0125-preview',\n 'gpt-4-turbo-preview': 'gpt-4-turbo-preview',\n 'gpt-4-1106-preview': 'gpt-4-1106-preview',\n 'gpt-4-vision-preview': 'gpt-4-vision-preview',\n 'gpt-4': 'gpt-4',\n 'gpt-4-0314': 'gpt-4-0314',\n 'gpt-4-0613': 'gpt-4-0613',\n 'gpt-4-32k': 'gpt-4-32k',\n 'gpt-4-32k-0314': 'gpt-4-32k-0314',\n 'gpt-4-32k-0613': 'gpt-4-32k-0613',\n 'gpt-3.5-turbo': 'gpt-3.5-turbo',\n 'gpt-3.5-turbo-16k': 'gpt-3.5-turbo-16k',\n 'gpt-3.5-turbo-0301': 'gpt-3.5-turbo-0301',\n 'gpt-3.5-turbo-0613': 'gpt-3.5-turbo-0613',\n 'gpt-3.5-turbo-1106': 'gpt-3.5-turbo-1106',\n 'gpt-3.5-turbo-0125': 'gpt-3.5-turbo-0125',\n 'gpt-3.5-turbo-16k-0613': 'gpt-3.5-turbo-16k-0613',\n} as const;\n\nexport type CompletionCreateParamsStreamingModelEnum =\n (typeof completionCreateParamsStreamingModelEnum)[keyof typeof completionCreateParamsStreamingModelEnum];\n\nexport const completionCreateParamsStreamingFunctionCallEnum = {\n none: 'none',\n auto: 'auto',\n} as const;\n\nexport type CompletionCreateParamsStreamingFunctionCallEnum =\n (typeof completionCreateParamsStreamingFunctionCallEnum)[keyof typeof completionCreateParamsStreamingFunctionCallEnum];\n\nexport const completionCreateParamsStreamingModalitiesEnum = {\n text: 'text',\n audio: 'audio',\n} as const;\n\nexport type CompletionCreateParamsStreamingModalitiesEnum =\n (typeof completionCreateParamsStreamingModalitiesEnum)[keyof typeof completionCreateParamsStreamingModalitiesEnum];\n\nexport const completionCreateParamsStreamingReasoningEffortEnum = {\n low: 'low',\n medium: 'medium',\n high: 'high',\n} as const;\n\nexport type CompletionCreateParamsStreamingReasoningEffortEnum =\n (typeof completionCreateParamsStreamingReasoningEffortEnum)[keyof typeof completionCreateParamsStreamingReasoningEffortEnum];\n\nexport const completionCreateParamsStreamingServiceTierEnum = {\n auto: 'auto',\n default: 'default',\n} as const;\n\nexport type CompletionCreateParamsStreamingServiceTierEnum =\n (typeof completionCreateParamsStreamingServiceTierEnum)[keyof typeof completionCreateParamsStreamingServiceTierEnum];\n\nexport const completionCreateParamsStreamingToolChoiceEnum = {\n none: 'none',\n auto: 'auto',\n required: 'required',\n} as const;\n\nexport type CompletionCreateParamsStreamingToolChoiceEnum =\n (typeof completionCreateParamsStreamingToolChoiceEnum)[keyof typeof completionCreateParamsStreamingToolChoiceEnum];\n\nexport type CompletionCreateParamsStreaming = {\n /**\n * @type array\n */\n messages: (\n | ChatCompletionDeveloperMessageParam\n | ChatCompletionSystemMessageParam\n | ChatCompletionUserMessageParam\n | ChatCompletionAssistantMessageParam\n | ChatCompletionToolMessageParam\n | ChatCompletionFunctionMessageParam\n )[];\n model: string | CompletionCreateParamsStreamingModelEnum;\n audio?: ChatCompletionAudioParam | null;\n frequency_penalty?: number | null;\n function_call?:\n | CompletionCreateParamsStreamingFunctionCallEnum\n | ChatCompletionFunctionCallOptionParam;\n /**\n * @type array | undefined\n */\n functions?: OpenaiTypesChatCompletionCreateParamsFunction[];\n logit_bias?: {\n [key: string]: number;\n } | null;\n logprobs?: boolean | null;\n max_completion_tokens?: number | null;\n max_tokens?: number | null;\n metadata?: {\n [key: string]: string;\n } | null;\n modalities?: CompletionCreateParamsStreamingModalitiesEnum[] | null;\n n?: number | null;\n /**\n * @type boolean | undefined\n */\n parallel_tool_calls?: boolean;\n prediction?: ChatCompletionPredictionContentParam | null;\n presence_penalty?: number | null;\n reasoning_effort?: CompletionCreateParamsStreamingReasoningEffortEnum | null;\n response_format?:\n | ResponseFormatText\n | ResponseFormatJSONSchema\n | ResponseFormatJSONObject;\n seed?: number | null;\n service_tier?: CompletionCreateParamsStreamingServiceTierEnum | null;\n stop?: string | string[] | null;\n store?: boolean | null;\n stream_options?: ChatCompletionStreamOptionsParam | null;\n temperature?: number | null;\n tool_choice?:\n | CompletionCreateParamsStreamingToolChoiceEnum\n | ChatCompletionNamedToolChoiceParam;\n /**\n * @type array | undefined\n */\n tools?: ChatCompletionToolParam[];\n top_logprobs?: number | null;\n top_p?: number | null;\n /**\n * @type string | undefined\n */\n user?: string;\n /**\n * @type object | undefined\n */\n web_search_options?: WebSearchOptions;\n /**\n * @type boolean\n */\n stream: 'true';\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const embeddingConfigEmbeddingEndpointTypeEnum = {\n openai: 'openai',\n anthropic: 'anthropic',\n bedrock: 'bedrock',\n cohere: 'cohere',\n google_ai: 'google_ai',\n google_vertex: 'google_vertex',\n azure: 'azure',\n groq: 'groq',\n ollama: 'ollama',\n webui: 'webui',\n 'webui-legacy': 'webui-legacy',\n lmstudio: 'lmstudio',\n 'lmstudio-legacy': 'lmstudio-legacy',\n llamacpp: 'llamacpp',\n koboldcpp: 'koboldcpp',\n vllm: 'vllm',\n 'hugging-face': 'hugging-face',\n mistral: 'mistral',\n together: 'together',\n} as const;\n\nexport type EmbeddingConfigEmbeddingEndpointTypeEnum =\n (typeof embeddingConfigEmbeddingEndpointTypeEnum)[keyof typeof embeddingConfigEmbeddingEndpointTypeEnum];\n\n/**\n * @description Embedding model configuration. This object specifies all the information necessary to access an embedding model to usage with Letta, except for secret keys.\\n\\nAttributes:\\n embedding_endpoint_type (str): The endpoint type for the model.\\n embedding_endpoint (str): The endpoint for the model.\\n embedding_model (str): The model for the embedding.\\n embedding_dim (int): The dimension of the embedding.\\n embedding_chunk_size (int): The chunk size of the embedding.\\n azure_endpoint (:obj:`str`, optional): The Azure endpoint for the model (Azure only).\\n azure_version (str): The Azure version for the model (Azure only).\\n azure_deployment (str): The Azure deployment for the model (Azure only).\n */\nexport type EmbeddingConfig = {\n /**\n * @description The endpoint type for the model.\n * @type string\n */\n embedding_endpoint_type: EmbeddingConfigEmbeddingEndpointTypeEnum;\n /**\n * @description The endpoint for the model (`None` if local).\n */\n embedding_endpoint?: string | null;\n /**\n * @description The model for the embedding.\n * @type string\n */\n embedding_model: string;\n /**\n * @description The dimension of the embedding.\n * @type integer\n */\n embedding_dim: number;\n /**\n * @description The chunk size of the embedding.\n * @default 300\n */\n embedding_chunk_size?: number | null;\n /**\n * @description The handle for this config, in the format provider/model-name.\n */\n handle?: string | null;\n /**\n * @description The Azure endpoint for the model.\n */\n azure_endpoint?: string | null;\n /**\n * @description The Azure version for the model.\n */\n azure_version?: string | null;\n /**\n * @description The Azure deployment for the model.\n */\n azure_deployment?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const hiddenReasoningMessageMessageTypeEnum = {\n hidden_reasoning_message: 'hidden_reasoning_message',\n} as const;\n\nexport type HiddenReasoningMessageMessageTypeEnum =\n (typeof hiddenReasoningMessageMessageTypeEnum)[keyof typeof hiddenReasoningMessageMessageTypeEnum];\n\nexport const hiddenReasoningMessageStateEnum = {\n redacted: 'redacted',\n omitted: 'omitted',\n} as const;\n\nexport type HiddenReasoningMessageStateEnum =\n (typeof hiddenReasoningMessageStateEnum)[keyof typeof hiddenReasoningMessageStateEnum];\n\n/**\n * @description Representation of an agent\\'s internal reasoning where reasoning content\\nhas been hidden from the response.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n state (Literal[\\\"redacted\\\", \\\"omitted\\\"]): Whether the reasoning\\n content was redacted by the provider or simply omitted by the API\\n hidden_reasoning (Optional[str]): The internal reasoning of the agent\n */\nexport type HiddenReasoningMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"hidden_reasoning_message\"\n * @type string\n */\n message_type: HiddenReasoningMessageMessageTypeEnum;\n /**\n * @type string\n */\n state: HiddenReasoningMessageStateEnum;\n hidden_reasoning?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const identityPropertyTypeEnum = {\n string: 'string',\n number: 'number',\n boolean: 'boolean',\n json: 'json',\n} as const;\n\nexport type IdentityPropertyTypeEnum =\n (typeof identityPropertyTypeEnum)[keyof typeof identityPropertyTypeEnum];\n\n/**\n * @description Enum to represent the type of the identity property.\n */\nexport type IdentityPropertyType = IdentityPropertyTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const identityTypeEnum = {\n org: 'org',\n user: 'user',\n other: 'other',\n} as const;\n\nexport type IdentityTypeEnum =\n (typeof identityTypeEnum)[keyof typeof identityTypeEnum];\n\n/**\n * @description Enum to represent the type of the identity.\n */\nexport type IdentityType = IdentityTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const imageURLDetailEnum = {\n auto: 'auto',\n low: 'low',\n high: 'high',\n} as const;\n\nexport type ImageURLDetailEnum =\n (typeof imageURLDetailEnum)[keyof typeof imageURLDetailEnum];\n\nexport type ImageURL = {\n /**\n * @type string\n */\n url: string;\n /**\n * @type string | undefined\n */\n detail?: ImageURLDetailEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const inputAudioFormatEnum = {\n wav: 'wav',\n mp3: 'mp3',\n} as const;\n\nexport type InputAudioFormatEnum =\n (typeof inputAudioFormatEnum)[keyof typeof inputAudioFormatEnum];\n\nexport type InputAudio = {\n /**\n * @type string\n */\n data: string;\n /**\n * @type string\n */\n format: InputAudioFormatEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const jobStatusEnum = {\n not_started: 'not_started',\n created: 'created',\n running: 'running',\n completed: 'completed',\n failed: 'failed',\n pending: 'pending',\n cancelled: 'cancelled',\n} as const;\n\nexport type JobStatusEnum = (typeof jobStatusEnum)[keyof typeof jobStatusEnum];\n\n/**\n * @description Status of the job.\n */\nexport type JobStatus = JobStatusEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const jobTypeEnum = {\n job: 'job',\n run: 'run',\n} as const;\n\nexport type JobTypeEnum = (typeof jobTypeEnum)[keyof typeof jobTypeEnum];\n\nexport type JobType = JobTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { TextContent } from './TextContent.ts';\n\nexport const lettaAssistantMessageContentUnionTypeEnum = {\n text: 'text',\n} as const;\n\nexport type LettaAssistantMessageContentUnionTypeEnum =\n (typeof lettaAssistantMessageContentUnionTypeEnum)[keyof typeof lettaAssistantMessageContentUnionTypeEnum];\n\nexport type LettaAssistantMessageContentUnion = TextContent & {\n type?: LettaAssistantMessageContentUnionTypeEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { OmittedReasoningContent } from './OmittedReasoningContent.ts';\nimport type { ReasoningContent } from './ReasoningContent.ts';\nimport type { RedactedReasoningContent } from './RedactedReasoningContent.ts';\nimport type { TextContent } from './TextContent.ts';\nimport type { ToolCallContent } from './ToolCallContent.ts';\nimport type { ToolReturnContent } from './ToolReturnContent.ts';\n\nexport const lettaMessageContentUnionTypeEnum = {\n text: 'text',\n tool_call: 'tool_call',\n tool_return: 'tool_return',\n reasoning: 'reasoning',\n redacted_reasoning: 'redacted_reasoning',\n omitted_reasoning: 'omitted_reasoning',\n} as const;\n\nexport type LettaMessageContentUnionTypeEnum =\n (typeof lettaMessageContentUnionTypeEnum)[keyof typeof lettaMessageContentUnionTypeEnum];\n\nexport type LettaMessageContentUnion =\n | (TextContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (ToolCallContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (ToolReturnContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (ReasoningContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (RedactedReasoningContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (OmittedReasoningContent & {\n type?: LettaMessageContentUnionTypeEnum;\n });\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { AssistantMessage } from './AssistantMessage.ts';\nimport type { HiddenReasoningMessage } from './HiddenReasoningMessage.ts';\nimport type { ReasoningMessage } from './ReasoningMessage.ts';\nimport type { SystemMessage } from './SystemMessage.ts';\nimport type { ToolCallMessage } from './ToolCallMessage.ts';\nimport type { ToolReturnMessage } from './ToolReturnMessage.ts';\nimport type { UserMessage } from './UserMessage.ts';\n\nexport const lettaMessageUnionMessageTypeEnum = {\n system_message: 'system_message',\n user_message: 'user_message',\n reasoning_message: 'reasoning_message',\n hidden_reasoning_message: 'hidden_reasoning_message',\n tool_call_message: 'tool_call_message',\n tool_return_message: 'tool_return_message',\n assistant_message: 'assistant_message',\n} as const;\n\nexport type LettaMessageUnionMessageTypeEnum =\n (typeof lettaMessageUnionMessageTypeEnum)[keyof typeof lettaMessageUnionMessageTypeEnum];\n\nexport type LettaMessageUnion =\n | (SystemMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (UserMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (ReasoningMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (HiddenReasoningMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (ToolCallMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (ToolReturnMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (AssistantMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n });\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { TextContent } from './TextContent.ts';\n\nexport const lettaUserMessageContentUnionTypeEnum = {\n text: 'text',\n} as const;\n\nexport type LettaUserMessageContentUnionTypeEnum =\n (typeof lettaUserMessageContentUnionTypeEnum)[keyof typeof lettaUserMessageContentUnionTypeEnum];\n\nexport type LettaUserMessageContentUnion = TextContent & {\n type?: LettaUserMessageContentUnionTypeEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const LLMConfigModelEndpointTypeEnum = {\n openai: 'openai',\n anthropic: 'anthropic',\n cohere: 'cohere',\n google_ai: 'google_ai',\n google_vertex: 'google_vertex',\n azure: 'azure',\n groq: 'groq',\n ollama: 'ollama',\n webui: 'webui',\n 'webui-legacy': 'webui-legacy',\n lmstudio: 'lmstudio',\n 'lmstudio-legacy': 'lmstudio-legacy',\n 'lmstudio-chatcompletions': 'lmstudio-chatcompletions',\n llamacpp: 'llamacpp',\n koboldcpp: 'koboldcpp',\n vllm: 'vllm',\n 'hugging-face': 'hugging-face',\n mistral: 'mistral',\n together: 'together',\n bedrock: 'bedrock',\n deepseek: 'deepseek',\n xai: 'xai',\n} as const;\n\nexport type LLMConfigModelEndpointTypeEnum =\n (typeof LLMConfigModelEndpointTypeEnum)[keyof typeof LLMConfigModelEndpointTypeEnum];\n\n/**\n * @description Configuration for a Language Model (LLM) model. This object specifies all the information necessary to access an LLM model to usage with Letta, except for secret keys.\\n\\nAttributes:\\n model (str): The name of the LLM model.\\n model_endpoint_type (str): The endpoint type for the model.\\n model_endpoint (str): The endpoint for the model.\\n model_wrapper (str): The wrapper for the model. This is used to wrap additional text around the input/output of the model. This is useful for text-to-text completions, such as the Completions API in OpenAI.\\n context_window (int): The context window size for the model.\\n put_inner_thoughts_in_kwargs (bool): Puts `inner_thoughts` as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.\\n temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.\\n max_tokens (int): The maximum number of tokens to generate.\n */\nexport type LLMConfig = {\n /**\n * @description LLM model name.\n * @type string\n */\n model: string;\n /**\n * @description The endpoint type for the model.\n * @type string\n */\n model_endpoint_type: LLMConfigModelEndpointTypeEnum;\n /**\n * @description The endpoint for the model.\n */\n model_endpoint?: string | null;\n /**\n * @description The wrapper for the model.\n */\n model_wrapper?: string | null;\n /**\n * @description The context window size for the model.\n * @type integer\n */\n context_window: number;\n /**\n * @description Puts \\'inner_thoughts\\' as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.\n * @default true\n */\n put_inner_thoughts_in_kwargs?: boolean | null;\n /**\n * @description The handle for this config, in the format provider/model-name.\n */\n handle?: string | null;\n /**\n * @description The temperature to use when generating text with the model. A higher temperature will result in more random text.\n * @default 0.7\n * @type number | undefined\n */\n temperature?: number;\n /**\n * @description The maximum number of tokens to generate. If not set, the model will use its default value.\n * @default 4096\n */\n max_tokens?: number | null;\n /**\n * @description Whether or not the model should use extended thinking if it is a \\'reasoning\\' style model\n * @default false\n * @type boolean | undefined\n */\n enable_reasoner?: boolean;\n /**\n * @description Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024.\n * @default 0\n * @type integer | undefined\n */\n max_reasoning_tokens?: number;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const managerTypeEnum = {\n round_robin: 'round_robin',\n supervisor: 'supervisor',\n dynamic: 'dynamic',\n sleeptime: 'sleeptime',\n swarm: 'swarm',\n} as const;\n\nexport type ManagerTypeEnum =\n (typeof managerTypeEnum)[keyof typeof managerTypeEnum];\n\nexport type ManagerType = ManagerTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const MCPServerTypeEnum = {\n sse: 'sse',\n stdio: 'stdio',\n} as const;\n\nexport type MCPServerTypeEnum =\n (typeof MCPServerTypeEnum)[keyof typeof MCPServerTypeEnum];\n\nexport type MCPServerType = MCPServerTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { LettaMessageContentUnion } from './LettaMessageContentUnion.ts';\n\nexport const messageCreateRoleEnum = {\n user: 'user',\n system: 'system',\n} as const;\n\nexport type MessageCreateRoleEnum =\n (typeof messageCreateRoleEnum)[keyof typeof messageCreateRoleEnum];\n\n/**\n * @description Request to create a message\n */\nexport type MessageCreate = {\n /**\n * @description The role of the participant.\n * @type string\n */\n role: MessageCreateRoleEnum;\n /**\n * @description The content of the message.\n */\n content: LettaMessageContentUnion[] | string;\n /**\n * @description The name of the participant.\n */\n name?: string | null;\n /**\n * @description The offline threading id associated with this message\n */\n otid?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const messageRoleEnum = {\n assistant: 'assistant',\n user: 'user',\n tool: 'tool',\n function: 'function',\n system: 'system',\n} as const;\n\nexport type MessageRoleEnum =\n (typeof messageRoleEnum)[keyof typeof messageRoleEnum];\n\nexport type MessageRole = MessageRoleEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const omittedReasoningContentTypeEnum = {\n omitted_reasoning: 'omitted_reasoning',\n} as const;\n\nexport type OmittedReasoningContentTypeEnum =\n (typeof omittedReasoningContentTypeEnum)[keyof typeof omittedReasoningContentTypeEnum];\n\nexport type OmittedReasoningContent = {\n /**\n * @description Indicates this is an omitted reasoning step.\n * @default \"omitted_reasoning\"\n * @type string\n */\n type: OmittedReasoningContentTypeEnum;\n /**\n * @description The reasoning token count for intermediate reasoning content.\n * @type integer\n */\n tokens: number;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const reasoningContentTypeEnum = {\n reasoning: 'reasoning',\n} as const;\n\nexport type ReasoningContentTypeEnum =\n (typeof reasoningContentTypeEnum)[keyof typeof reasoningContentTypeEnum];\n\nexport type ReasoningContent = {\n /**\n * @description Indicates this is a reasoning/intermediate step.\n * @default \"reasoning\"\n * @type string\n */\n type: ReasoningContentTypeEnum;\n /**\n * @description Whether the reasoning content was generated by a reasoner model that processed this step.\n * @type boolean\n */\n is_native: boolean;\n /**\n * @description The intermediate reasoning or thought process content.\n * @type string\n */\n reasoning: string;\n /**\n * @description A unique identifier for this reasoning step.\n */\n signature?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const reasoningMessageMessageTypeEnum = {\n reasoning_message: 'reasoning_message',\n} as const;\n\nexport type ReasoningMessageMessageTypeEnum =\n (typeof reasoningMessageMessageTypeEnum)[keyof typeof reasoningMessageMessageTypeEnum];\n\nexport const reasoningMessageSourceEnum = {\n reasoner_model: 'reasoner_model',\n non_reasoner_model: 'non_reasoner_model',\n} as const;\n\nexport type ReasoningMessageSourceEnum =\n (typeof reasoningMessageSourceEnum)[keyof typeof reasoningMessageSourceEnum];\n\n/**\n * @description Representation of an agent\\'s internal reasoning.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n source (Literal[\\\"reasoner_model\\\", \\\"non_reasoner_model\\\"]): Whether the reasoning\\n content was generated natively by a reasoner model or derived via prompting\\n reasoning (str): The internal reasoning of the agent\\n signature (Optional[str]): The model-generated signature of the reasoning step\n */\nexport type ReasoningMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"reasoning_message\"\n * @type string\n */\n message_type: ReasoningMessageMessageTypeEnum;\n /**\n * @default \"non_reasoner_model\"\n * @type string | undefined\n */\n source?: ReasoningMessageSourceEnum;\n /**\n * @type string\n */\n reasoning: string;\n signature?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const redactedReasoningContentTypeEnum = {\n redacted_reasoning: 'redacted_reasoning',\n} as const;\n\nexport type RedactedReasoningContentTypeEnum =\n (typeof redactedReasoningContentTypeEnum)[keyof typeof redactedReasoningContentTypeEnum];\n\nexport type RedactedReasoningContent = {\n /**\n * @description Indicates this is a redacted thinking step.\n * @default \"redacted_reasoning\"\n * @type string\n */\n type: RedactedReasoningContentTypeEnum;\n /**\n * @description The redacted or filtered intermediate reasoning content.\n * @type string\n */\n data: string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const sandboxTypeEnum = {\n e2b: 'e2b',\n local: 'local',\n} as const;\n\nexport type SandboxTypeEnum =\n (typeof sandboxTypeEnum)[keyof typeof sandboxTypeEnum];\n\nexport type SandboxType = SandboxTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const systemMessageMessageTypeEnum = {\n system_message: 'system_message',\n} as const;\n\nexport type SystemMessageMessageTypeEnum =\n (typeof systemMessageMessageTypeEnum)[keyof typeof systemMessageMessageTypeEnum];\n\n/**\n * @description A message generated by the system. Never streamed back on a response, only used for cursor pagination.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n content (str): The message content sent by the system\n */\nexport type SystemMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"system_message\"\n * @type string\n */\n message_type: SystemMessageMessageTypeEnum;\n /**\n * @description The message content sent by the system\n * @type string\n */\n content: string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const textContentTypeEnum = {\n text: 'text',\n} as const;\n\nexport type TextContentTypeEnum =\n (typeof textContentTypeEnum)[keyof typeof textContentTypeEnum];\n\nexport type TextContent = {\n /**\n * @description The type of the message.\n * @default \"text\"\n * @type string\n */\n type: TextContentTypeEnum;\n /**\n * @description The text content of the message.\n * @type string\n */\n text: string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolCallContentTypeEnum = {\n tool_call: 'tool_call',\n tool_return: 'tool_return',\n} as const;\n\nexport type ToolCallContentTypeEnum =\n (typeof toolCallContentTypeEnum)[keyof typeof toolCallContentTypeEnum];\n\nexport type ToolCallContent = {\n /**\n * @description Indicates this content represents a tool call event.\n * @default \"tool_call\"\n * @type string\n */\n type: ToolCallContentTypeEnum;\n /**\n * @description A unique identifier for this specific tool call instance.\n * @type string\n */\n id: string;\n /**\n * @description The name of the tool being called.\n * @type string\n */\n name: string;\n /**\n * @description The parameters being passed to the tool, structured as a dictionary of parameter names to values.\n * @type object\n */\n input: {\n [key: string]: any;\n };\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { ToolCall } from './ToolCall.ts';\nimport type { ToolCallDelta } from './ToolCallDelta.ts';\n\nexport const toolCallMessageMessageTypeEnum = {\n tool_call_message: 'tool_call_message',\n} as const;\n\nexport type ToolCallMessageMessageTypeEnum =\n (typeof toolCallMessageMessageTypeEnum)[keyof typeof toolCallMessageMessageTypeEnum];\n\n/**\n * @description A message representing a request to call a tool (generated by the LLM to trigger tool execution).\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n tool_call (Union[ToolCall, ToolCallDelta]): The tool call\n */\nexport type ToolCallMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"tool_call_message\"\n * @type string\n */\n message_type: ToolCallMessageMessageTypeEnum;\n tool_call: ToolCall | ToolCallDelta;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolReturnStatusEnum = {\n success: 'success',\n error: 'error',\n} as const;\n\nexport type ToolReturnStatusEnum =\n (typeof toolReturnStatusEnum)[keyof typeof toolReturnStatusEnum];\n\nexport type ToolReturn = {\n /**\n * @description The status of the tool call\n * @type string\n */\n status: ToolReturnStatusEnum;\n /**\n * @description Captured stdout (e.g. prints, logs) from the tool invocation\n */\n stdout?: string[] | null;\n /**\n * @description Captured stderr from the tool invocation\n */\n stderr?: string[] | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolReturnMessageMessageTypeEnum = {\n tool_return_message: 'tool_return_message',\n} as const;\n\nexport type ToolReturnMessageMessageTypeEnum =\n (typeof toolReturnMessageMessageTypeEnum)[keyof typeof toolReturnMessageMessageTypeEnum];\n\nexport const toolReturnMessageStatusEnum = {\n success: 'success',\n error: 'error',\n} as const;\n\nexport type ToolReturnMessageStatusEnum =\n (typeof toolReturnMessageStatusEnum)[keyof typeof toolReturnMessageStatusEnum];\n\n/**\n * @description A message representing the return value of a tool call (generated by Letta executing the requested tool).\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n tool_return (str): The return value of the tool\\n status (Literal[\\\"success\\\", \\\"error\\\"]): The status of the tool call\\n tool_call_id (str): A unique identifier for the tool call that generated this message\\n stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation\\n stderr (Optional[List(str)]): Captured stderr from the tool invocation\n */\nexport type ToolReturnMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"tool_return_message\"\n * @type string\n */\n message_type: ToolReturnMessageMessageTypeEnum;\n /**\n * @type string\n */\n tool_return: string;\n /**\n * @type string\n */\n status: ToolReturnMessageStatusEnum;\n /**\n * @type string\n */\n tool_call_id: string;\n stdout?: string[] | null;\n stderr?: string[] | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolTypeEnum = {\n custom: 'custom',\n letta_core: 'letta_core',\n letta_memory_core: 'letta_memory_core',\n letta_multi_agent_core: 'letta_multi_agent_core',\n letta_sleeptime_core: 'letta_sleeptime_core',\n external_composio: 'external_composio',\n external_langchain: 'external_langchain',\n external_mcp: 'external_mcp',\n} as const;\n\nexport type ToolTypeEnum = (typeof toolTypeEnum)[keyof typeof toolTypeEnum];\n\nexport type ToolType = ToolTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { LettaUserMessageContentUnion } from './LettaUserMessageContentUnion.ts';\n\nexport const userMessageMessageTypeEnum = {\n user_message: 'user_message',\n} as const;\n\nexport type UserMessageMessageTypeEnum =\n (typeof userMessageMessageTypeEnum)[keyof typeof userMessageMessageTypeEnum];\n\n/**\n * @description A message sent by the user. Never streamed back on a response, only used for cursor pagination.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n content (Union[str, List[LettaUserMessageContentUnion]]): The message content sent by the user (can be a string or an array of multi-modal content parts)\n */\nexport type UserMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"user_message\"\n * @type string\n */\n message_type: UserMessageMessageTypeEnum;\n /**\n * @description The message content sent by the user (can be a string or an array of multi-modal content parts)\n */\n content: LettaUserMessageContentUnion[] | string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { WebSearchOptionsUserLocation } from './WebSearchOptionsUserLocation.ts';\n\nexport const webSearchOptionsSearchContextSizeEnum = {\n low: 'low',\n medium: 'medium',\n high: 'high',\n} as const;\n\nexport type WebSearchOptionsSearchContextSizeEnum =\n (typeof webSearchOptionsSearchContextSizeEnum)[keyof typeof webSearchOptionsSearchContextSizeEnum];\n\nexport type WebSearchOptions = {\n /**\n * @type string | undefined\n */\n search_context_size?: WebSearchOptionsSearchContextSizeEnum;\n user_location?: WebSearchOptionsUserLocation | null;\n};\n"],
|
5
|
-
"mappings": ";;;;;;;AAEe,SAAR,KAAsB,IAAI,SAAS;AACxC,SAAO,SAAS,OAAO;AACrB,WAAO,GAAG,MAAM,SAAS,SAAS;AAAA,EACpC;AACF;;;ACAA,IAAM,EAAC,SAAQ,IAAI,OAAO;AAC1B,IAAM,EAAC,eAAc,IAAI;AAEzB,IAAM,SAAU,4BAAS,WAAS;AAC9B,QAAM,MAAM,SAAS,KAAK,KAAK;AAC/B,SAAO,MAAM,GAAG,MAAM,MAAM,GAAG,IAAI,IAAI,MAAM,GAAG,EAAE,EAAE,YAAY;AACpE,GAAG,uBAAO,OAAO,IAAI,CAAC;AAEtB,IAAM,aAAa,CAAC,SAAS;AAC3B,SAAO,KAAK,YAAY;AACxB,SAAO,CAAC,UAAU,OAAO,KAAK,MAAM;AACtC;AAEA,IAAM,aAAa,UAAQ,WAAS,OAAO,UAAU;AASrD,IAAM,EAAC,QAAO,IAAI;AASlB,IAAM,cAAc,WAAW,WAAW;AAS1C,SAAS,SAAS,KAAK;AACrB,SAAO,QAAQ,QAAQ,CAAC,YAAY,GAAG,KAAK,IAAI,gBAAgB,QAAQ,CAAC,YAAY,IAAI,WAAW,KAC/F,WAAW,IAAI,YAAY,QAAQ,KAAK,IAAI,YAAY,SAAS,GAAG;AAC3E;AASA,IAAM,gBAAgB,WAAW,aAAa;AAU9C,SAAS,kBAAkB,KAAK;AAC9B,M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QAAQ;AACV;;;ACNO,IAAM,kCAAkC;AAAA,EAC7C,mBAAmB;AACrB;;;ACFO,IAAM,2BAA2B;AAAA,EACtC,WAAW;AACb;;;ACFO,IAAM,kCAAkC;AAAA,EAC7C,mBAAmB;AACrB;AAKO,IAAM,6BAA6B;AAAA,EACxC,gBAAgB;AAAA,EAChB,oBAAoB;AACtB;;;ACVO,IAAM,mCAAmC;AAAA,EAC9C,oBAAoB;AACtB;;;ACFO,IAAM,kBAAkB;AAAA,EAC7B,KAAK;AAAA,EACL,OAAO;AACT;;;ACHO,IAAM,+BAA+B;AAAA,EAC1C,gBAAgB;AAClB;;;ACFO,IAAM,sBAAsB;AAAA,EACjC,MAAM;AACR;;;ACFO,IAAM,0BAA0B;AAAA,EACrC,WAAW;AAAA,EACX,aAAa;AACf;;;ACAO,IAAM,iCAAiC;AAAA,EAC5C,mBAAmB;AACrB;;;ACLO,IAAM,uBAAuB;AAAA,EAClC,SAAS;AAAA,EACT,OAAO;AACT;;;ACHO,IAAM,mCAAmC;AAAA,EAC9C,qBAAqB;AACvB;AAKO,IAAM,8BAA8B;AAAA,EACzC,SAAS;AAAA,EACT,OAAO;AACT;;;ACVO,IAAM,eAAe;AAAA,EAC1B,QAAQ;AAAA,EACR,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,cAAc;AAChB;;;ACPO,IAAM,6BAA6B;AAAA,EACxC,cAAc;AAChB;;;ACFO,IAAM,wCAAwC;AAAA,EACnD,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,MAAM;AACR;",
|
6
|
-
"names": ["prototype", "descriptors", "filter", "hasOwnProperty", "filter", "prototype", "toString", "encode", "isFormData", "isFileList", "transitional", "filter", "self", "prototype", "validateStatus", "origin", "merge", "_config", "transitional", "signal", "done", "res", "validators", "transitional", "Axios", "AxiosError", "CanceledError", "isCancel", "CancelToken", "VERSION", "all", "isAxiosError", "spread", "toFormData", "AxiosHeaders", "HttpStatusCode", "mergeConfig", "axios_default", "
|
3
|
+
"sources": ["../node_modules/axios/lib/helpers/bind.js", "../node_modules/axios/lib/utils.js", "../node_modules/axios/lib/core/AxiosError.js", "../node_modules/axios/lib/helpers/null.js", "../node_modules/axios/lib/helpers/toFormData.js", "../node_modules/axios/lib/helpers/AxiosURLSearchParams.js", "../node_modules/axios/lib/helpers/buildURL.js", "../node_modules/axios/lib/core/InterceptorManager.js", "../node_modules/axios/lib/defaults/transitional.js", "../node_modules/axios/lib/platform/browser/classes/URLSearchParams.js", "../node_modules/axios/lib/platform/browser/classes/FormData.js", "../node_modules/axios/lib/platform/browser/classes/Blob.js", "../node_modules/axios/lib/platform/browser/index.js", "../node_modules/axios/lib/platform/common/utils.js", "../node_modules/axios/lib/platform/index.js", "../node_modules/axios/lib/helpers/toURLEncodedForm.js", "../node_modules/axios/lib/helpers/formDataToJSON.js", "../node_modules/axios/lib/defaults/index.js", "../node_modules/axios/lib/helpers/parseHeaders.js", "../node_modules/axios/lib/core/AxiosHeaders.js", "../node_modules/axios/lib/core/transformData.js", "../node_modules/axios/lib/cancel/isCancel.js", "../node_modules/axios/lib/cancel/CanceledError.js", "../node_modules/axios/lib/core/settle.js", "../node_modules/axios/lib/helpers/parseProtocol.js", "../node_modules/axios/lib/helpers/speedometer.js", "../node_modules/axios/lib/helpers/throttle.js", "../node_modules/axios/lib/helpers/progressEventReducer.js", "../node_modules/axios/lib/helpers/isURLSameOrigin.js", "../node_modules/axios/lib/helpers/cookies.js", "../node_modules/axios/lib/helpers/isAbsoluteURL.js", "../node_modules/axios/lib/helpers/combineURLs.js", "../node_modules/axios/lib/core/buildFullPath.js", "../node_modules/axios/lib/core/mergeConfig.js", "../node_modules/axios/lib/helpers/resolveConfig.js", "../node_modules/axios/lib/adapters/xhr.js", "../node_modules/axios/lib/helpers/composeSignals.js", "../node_modules/axios/lib/helpers/trackStream.js", "../node_modules/axios/lib/adapters/fetch.js", "../node_modules/axios/lib/adapters/adapters.js", "../node_modules/axios/lib/core/dispatchRequest.js", "../node_modules/axios/lib/env/data.js", "../node_modules/axios/lib/helpers/validator.js", "../node_modules/axios/lib/core/Axios.js", "../node_modules/axios/lib/cancel/CancelToken.js", "../node_modules/axios/lib/helpers/spread.js", "../node_modules/axios/lib/helpers/isAxiosError.js", "../node_modules/axios/lib/helpers/HttpStatusCode.js", "../node_modules/axios/lib/axios.js", "../node_modules/axios/index.js", "../node_modules/@kubb/plugin-client/clients/axios.ts", "../src/hooks/agentsHooks/useAgents/createTemplateFromAgent.ts", "../src/hooks/agentsHooks/useAgents/getAgentVariables.ts", "../src/hooks/agentsHooks/useAgents/getAgentVariablesSuspense.ts", "../src/hooks/agentsHooks/useAgents/migrateAgent.ts", "../src/hooks/agentsHooks/useAgents/searchDeployedAgents.ts", "../src/hooks/agentsHooks/useAgents/versionAgentTemplate.ts", "../src/hooks/agentsHooks/useCreateAgent.ts", "../src/hooks/agentsHooks/useCreateAgentMessageAsync.ts", "../src/hooks/agentsHooks/useCreateAgentMessageStream.ts", "../src/hooks/agentsHooks/useCreatePassage.ts", "../src/hooks/agentsHooks/useDeleteAgent.ts", "../src/hooks/agentsHooks/useDeletePassage.ts", "../src/hooks/agentsHooks/useExportAgentSerialized.ts", "../src/hooks/agentsHooks/useExportAgentSerializedSuspense.ts", "../src/hooks/agentsHooks/useImportAgentSerialized.ts", "../src/hooks/agentsHooks/useListAgents.ts", "../src/hooks/agentsHooks/useListAgentSources.ts", "../src/hooks/agentsHooks/useListAgentSourcesSuspense.ts", "../src/hooks/agentsHooks/useListAgentsSuspense.ts", "../src/hooks/agentsHooks/useListAgentTools.ts", "../src/hooks/agentsHooks/useListAgentToolsSuspense.ts", "../src/hooks/agentsHooks/useListCoreMemoryBlocks.ts", "../src/hooks/agentsHooks/useListCoreMemoryBlocksSuspense.ts", "../src/hooks/agentsHooks/useListMessages.ts", "../src/hooks/agentsHooks/useListMessagesSuspense.ts", "../src/hooks/agentsHooks/useListPassages.ts", "../src/hooks/agentsHooks/useListPassagesSuspense.ts", "../src/hooks/agentsHooks/useRetrieveAgent.ts", "../src/hooks/agentsHooks/useRetrieveAgentContextWindow.ts", "../src/hooks/agentsHooks/useRetrieveAgentContextWindowSuspense.ts", "../src/hooks/agentsHooks/useRetrieveAgentMemory.ts", "../src/hooks/agentsHooks/useRetrieveAgentMemorySuspense.ts", "../src/hooks/agentsHooks/useRetrieveAgentSuspense.ts", "../src/hooks/agentsHooks/useRetrieveCoreMemoryBlock.ts", "../src/hooks/agentsHooks/useRetrieveCoreMemoryBlockSuspense.ts", "../src/hooks/agentsHooks/useSendMessage.ts", "../src/hooks/blocksHooks/useCreateBlock.ts", "../src/hooks/blocksHooks/useDeleteBlock.ts", "../src/hooks/blocksHooks/useListAgentsForBlock.ts", "../src/hooks/blocksHooks/useListAgentsForBlockSuspense.ts", "../src/hooks/blocksHooks/useListBlocks.ts", "../src/hooks/blocksHooks/useListBlocksSuspense.ts", "../src/hooks/blocksHooks/useRetrieveBlock.ts", "../src/hooks/blocksHooks/useRetrieveBlockSuspense.ts", "../src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/createClientSideAccessToken.ts", "../src/hooks/clientSideAccessTokensHooks/useClientSideAccessTokens/deleteClientSideAccessToken.ts", "../src/hooks/groupsHooks/useCreateGroup.ts", "../src/hooks/groupsHooks/useDeleteGroup.ts", "../src/hooks/groupsHooks/useListGroupMessages.ts", "../src/hooks/groupsHooks/useListGroupMessagesSuspense.ts", "../src/hooks/groupsHooks/useListGroups.ts", "../src/hooks/groupsHooks/useListGroupsSuspense.ts", "../src/hooks/groupsHooks/useRetrieveGroup.ts", "../src/hooks/groupsHooks/useRetrieveGroupSuspense.ts", "../src/hooks/groupsHooks/useSendGroupMessage.ts", "../src/hooks/groupsHooks/useSendGroupMessageStreaming.ts", "../src/hooks/healthHooks/useHealthCheck.ts", "../src/hooks/healthHooks/useHealthCheckSuspense.ts", "../src/hooks/identitiesHooks/useCreateIdentity.ts", "../src/hooks/identitiesHooks/useDeleteIdentity.ts", "../src/hooks/identitiesHooks/useListIdentities.ts", "../src/hooks/identitiesHooks/useListIdentitiesSuspense.ts", "../src/hooks/identitiesHooks/useRetrieveIdentity.ts", "../src/hooks/identitiesHooks/useRetrieveIdentitySuspense.ts", "../src/hooks/identitiesHooks/useUpsertIdentity.ts", "../src/hooks/identitiesHooks/useUpsertIdentityProperties.ts", "../src/hooks/jobsHooks/useDeleteJob.ts", "../src/hooks/jobsHooks/useListActiveJobs.ts", "../src/hooks/jobsHooks/useListActiveJobsSuspense.ts", "../src/hooks/jobsHooks/useListJobs.ts", "../src/hooks/jobsHooks/useListJobsSuspense.ts", "../src/hooks/jobsHooks/useRetrieveJob.ts", "../src/hooks/jobsHooks/useRetrieveJobSuspense.ts", "../src/hooks/modelsHooks/useListEmbeddingModels.ts", "../src/hooks/modelsHooks/useListEmbeddingModelsSuspense.ts", "../src/hooks/modelsHooks/useListModels.ts", "../src/hooks/modelsHooks/useListModelsSuspense.ts", "../src/hooks/providersHooks/useCreateProvider.ts", "../src/hooks/providersHooks/useDeleteProvider.ts", "../src/hooks/providersHooks/useListProviders.ts", "../src/hooks/providersHooks/useListProvidersSuspense.ts", "../src/hooks/runsHooks/useDeleteRun.ts", "../src/hooks/runsHooks/useListActiveRuns.ts", "../src/hooks/runsHooks/useListActiveRunsSuspense.ts", "../src/hooks/runsHooks/useListRunMessages.ts", "../src/hooks/runsHooks/useListRunMessagesSuspense.ts", "../src/hooks/runsHooks/useListRuns.ts", "../src/hooks/runsHooks/useListRunsSuspense.ts", "../src/hooks/runsHooks/useListRunSteps.ts", "../src/hooks/runsHooks/useListRunStepsSuspense.ts", "../src/hooks/runsHooks/useRetrieveRun.ts", "../src/hooks/runsHooks/useRetrieveRunSuspense.ts", "../src/hooks/runsHooks/useRetrieveRunUsage.ts", "../src/hooks/runsHooks/useRetrieveRunUsageSuspense.ts", "../src/hooks/sourcesHooks/useCreateSource.ts", "../src/hooks/sourcesHooks/useDeleteFileFromSource.ts", "../src/hooks/sourcesHooks/useDeleteSource.ts", "../src/hooks/sourcesHooks/useGetSourceIdByName.ts", "../src/hooks/sourcesHooks/useGetSourceIdByNameSuspense.ts", "../src/hooks/sourcesHooks/useListSourceFiles.ts", "../src/hooks/sourcesHooks/useListSourceFilesSuspense.ts", "../src/hooks/sourcesHooks/useListSourcePassages.ts", "../src/hooks/sourcesHooks/useListSourcePassagesSuspense.ts", "../src/hooks/sourcesHooks/useListSources.ts", "../src/hooks/sourcesHooks/useListSourcesSuspense.ts", "../src/hooks/sourcesHooks/useRetrieveSource.ts", "../src/hooks/sourcesHooks/useRetrieveSourceSuspense.ts", "../src/hooks/sourcesHooks/useUploadFileToSource.ts", "../src/hooks/stepsHooks/useListSteps.ts", "../src/hooks/stepsHooks/useListStepsSuspense.ts", "../src/hooks/stepsHooks/useRetrieveStep.ts", "../src/hooks/stepsHooks/useRetrieveStepSuspense.ts", "../src/hooks/tagHooks/useListTags.ts", "../src/hooks/tagHooks/useListTagsSuspense.ts", "../src/hooks/templatesHooks/useTemplates/createAgentsFromTemplate.ts", "../src/hooks/toolsHooks/useAddBaseTools.ts", "../src/hooks/toolsHooks/useAddComposioTool.ts", "../src/hooks/toolsHooks/useAddMcpServer.ts", "../src/hooks/toolsHooks/useAddMcpTool.ts", "../src/hooks/toolsHooks/useCreateTool.ts", "../src/hooks/toolsHooks/useDeleteMcpServer.ts", "../src/hooks/toolsHooks/useDeleteTool.ts", "../src/hooks/toolsHooks/useListComposioActionsByApp.ts", "../src/hooks/toolsHooks/useListComposioActionsByAppSuspense.ts", "../src/hooks/toolsHooks/useListComposioApps.ts", "../src/hooks/toolsHooks/useListComposioAppsSuspense.ts", "../src/hooks/toolsHooks/useListMcpServers.ts", "../src/hooks/toolsHooks/useListMcpServersSuspense.ts", "../src/hooks/toolsHooks/useListMcpToolsByServer.ts", "../src/hooks/toolsHooks/useListMcpToolsByServerSuspense.ts", "../src/hooks/toolsHooks/useListTools.ts", "../src/hooks/toolsHooks/useListToolsSuspense.ts", "../src/hooks/toolsHooks/useRetrieveTool.ts", "../src/hooks/toolsHooks/useRetrieveToolSuspense.ts", "../src/hooks/toolsHooks/useRunToolFromSource.ts", "../src/hooks/toolsHooks/useUpsertTool.ts", "../src/hooks/voiceHooks/useCreateVoiceChatCompletions.ts", "../src/types/agents/CreateTemplateFromAgent.ts", "../src/types/agents/GetAgentVariables.ts", "../src/types/agents/MigrateAgent.ts", "../src/types/agents/SearchDeployedAgents.ts", "../src/types/agents/VersionAgentTemplate.ts", "../src/types/AgentType.ts", "../src/types/AppAuthScheme.ts", "../src/types/AssistantMessage.ts", "../src/types/ChatCompletionAudioParam.ts", "../src/types/clientSideAccessTokens/CreateClientSideAccessToken.ts", "../src/types/CompletionCreateParamsNonStreaming.ts", "../src/types/CompletionCreateParamsStreaming.ts", "../src/types/EmbeddingConfig.ts", "../src/types/HiddenReasoningMessage.ts", "../src/types/IdentityPropertyType.ts", "../src/types/IdentityType.ts", "../src/types/ImageURL.ts", "../src/types/InputAudio.ts", "../src/types/JobStatus.ts", "../src/types/JobType.ts", "../src/types/LettaAssistantMessageContentUnion.ts", "../src/types/LettaMessageContentUnion.ts", "../src/types/LettaMessageUnion.ts", "../src/types/LettaUserMessageContentUnion.ts", "../src/types/LLMConfig.ts", "../src/types/ManagerType.ts", "../src/types/MCPServerType.ts", "../src/types/MessageCreate.ts", "../src/types/MessageRole.ts", "../src/types/OmittedReasoningContent.ts", "../src/types/ReasoningContent.ts", "../src/types/ReasoningMessage.ts", "../src/types/RedactedReasoningContent.ts", "../src/types/SandboxType.ts", "../src/types/SystemMessage.ts", "../src/types/TextContent.ts", "../src/types/ToolCallContent.ts", "../src/types/ToolCallMessage.ts", "../src/types/ToolReturn.ts", "../src/types/ToolReturnMessage.ts", "../src/types/ToolType.ts", "../src/types/UserMessage.ts", "../src/types/WebSearchOptions.ts"],
|
4
|
+
"sourcesContent": ["'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}\n", "'use strict';\n\nimport bind from './helpers/bind.js';\n\n// utils is a library of generic helper functions non-specific to axios\n\nconst {toString} = Object.prototype;\nconst {getPrototypeOf} = Object;\n\nconst kindOf = (cache => thing => {\n const str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n})(Object.create(null));\n\nconst kindOfTest = (type) => {\n type = type.toLowerCase();\n return (thing) => kindOf(thing) === type\n}\n\nconst typeOfTest = type => thing => typeof thing === type;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\nconst {isArray} = Array;\n\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nconst isUndefined = typeOfTest('undefined');\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nconst isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n let result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\nconst isString = typeOfTest('string');\n\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nconst isFunction = typeOfTest('function');\n\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\nconst isNumber = typeOfTest('number');\n\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\nconst isObject = (thing) => thing !== null && typeof thing === 'object';\n\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\nconst isBoolean = thing => thing === true || thing === false;\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\nconst isPlainObject = (val) => {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n const prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\nconst isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nconst isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\nconst isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nconst isStream = (val) => isObject(val) && isFunction(val.pipe);\n\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nconst isFormData = (thing) => {\n let kind;\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) || (\n isFunction(thing.append) && (\n (kind = kindOf(thing)) === 'formdata' ||\n // detect form-data instance\n (kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]')\n )\n )\n )\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nconst isURLSearchParams = kindOfTest('URLSearchParams');\n\nconst [isReadableStream, isRequest, isResponse, isHeaders] = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest);\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\nconst trim = (str) => str.trim ?\n str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\nfunction forEach(obj, fn, {allOwnKeys = false} = {}) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n let i;\n let l;\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n const len = keys.length;\n let key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n const keys = Object.keys(obj);\n let i = keys.length;\n let _key;\n while (i-- > 0) {\n _key = keys[i];\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n return null;\n}\n\nconst _global = (() => {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : (typeof window !== 'undefined' ? window : global)\n})();\n\nconst isContextDefined = (context) => !isUndefined(context) && context !== _global;\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n const {caseless} = isContextDefined(this) && this || {};\n const result = {};\n const assignValue = (val, key) => {\n const targetKey = caseless && findKey(result, key) || key;\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n }\n\n for (let i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\nconst extend = (a, b, thisArg, {allOwnKeys}= {}) => {\n forEach(b, (val, key) => {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {allOwnKeys});\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\nconst stripBOM = (content) => {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\nconst inherits = (constructor, superConstructor, props, descriptors) => {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\nconst toFlatObject = (sourceObj, destObj, filter, propFilter) => {\n let props;\n let i;\n let prop;\n const merged = {};\n\n destObj = destObj || {};\n // eslint-disable-next-line no-eq-null,eqeqeq\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\nconst endsWith = (str, searchString, position) => {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n const lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\nconst toArray = (thing) => {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n let i = thing.length;\n if (!isNumber(i)) return null;\n const arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\nconst isTypedArray = (TypedArray => {\n // eslint-disable-next-line func-names\n return thing => {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object<any, any>} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\nconst forEachEntry = (obj, fn) => {\n const generator = obj && obj[Symbol.iterator];\n\n const iterator = generator.call(obj);\n\n let result;\n\n while ((result = iterator.next()) && !result.done) {\n const pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n}\n\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array<boolean>}\n */\nconst matchAll = (regExp, str) => {\n let matches;\n const arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n}\n\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\nconst isHTMLForm = kindOfTest('HTMLFormElement');\n\nconst toCamelCase = str => {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g,\n function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n }\n );\n};\n\n/* Creating a function that will check if an object has a property. */\nconst hasOwnProperty = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);\n\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\nconst isRegExp = kindOfTest('RegExp');\n\nconst reduceDescriptors = (obj, reducer) => {\n const descriptors = Object.getOwnPropertyDescriptors(obj);\n const reducedDescriptors = {};\n\n forEach(descriptors, (descriptor, name) => {\n let ret;\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n\n Object.defineProperties(obj, reducedDescriptors);\n}\n\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\nconst freezeMethods = (obj) => {\n reduceDescriptors(obj, (descriptor, name) => {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n const value = obj[name];\n\n if (!isFunction(value)) return;\n\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = () => {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n}\n\nconst toObjectSet = (arrayOrString, delimiter) => {\n const obj = {};\n\n const define = (arr) => {\n arr.forEach(value => {\n obj[value] = true;\n });\n }\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n\n return obj;\n}\n\nconst noop = () => {}\n\nconst toFiniteNumber = (value, defaultValue) => {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n}\n\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nconst toJSONObject = (obj) => {\n const stack = new Array(10);\n\n const visit = (source, i) => {\n\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if(!('toJSON' in source)) {\n stack[i] = source;\n const target = isArray(source) ? [] : {};\n\n forEach(source, (value, key) => {\n const reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n\n stack[i] = undefined;\n\n return target;\n }\n }\n\n return source;\n }\n\n return visit(obj, 0);\n}\n\nconst isAsyncFn = kindOfTest('AsyncFunction');\n\nconst isThenable = (thing) =>\n thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n\n// original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\nconst _setImmediate = ((setImmediateSupported, postMessageSupported) => {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? ((token, callbacks) => {\n _global.addEventListener(\"message\", ({source, data}) => {\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return (cb) => {\n callbacks.push(cb);\n _global.postMessage(token, \"*\");\n }\n })(`axios@${Math.random()}`, []) : (cb) => setTimeout(cb);\n})(\n typeof setImmediate === 'function',\n isFunction(_global.postMessage)\n);\n\nconst asap = typeof queueMicrotask !== 'undefined' ?\n queueMicrotask.bind(_global) : ( typeof process !== 'undefined' && process.nextTick || _setImmediate);\n\n// *********************\n\nexport default {\n isArray,\n isArrayBuffer,\n isBuffer,\n isFormData,\n isArrayBufferView,\n isString,\n isNumber,\n isBoolean,\n isObject,\n isPlainObject,\n isReadableStream,\n isRequest,\n isResponse,\n isHeaders,\n isUndefined,\n isDate,\n isFile,\n isBlob,\n isRegExp,\n isFunction,\n isStream,\n isURLSearchParams,\n isTypedArray,\n isFileList,\n forEach,\n merge,\n extend,\n trim,\n stripBOM,\n inherits,\n toFlatObject,\n kindOf,\n kindOfTest,\n endsWith,\n toArray,\n forEachEntry,\n matchAll,\n isHTMLForm,\n hasOwnProperty,\n hasOwnProp: hasOwnProperty, // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors,\n freezeMethods,\n toObjectSet,\n toCamelCase,\n noop,\n toFiniteNumber,\n findKey,\n global: _global,\n isContextDefined,\n isSpecCompliantForm,\n toJSONObject,\n isAsyncFn,\n isThenable,\n setImmediate: _setImmediate,\n asap\n};\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = (new Error()).stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n if (response) {\n this.response = response;\n this.status = response.status ? response.status : null;\n }\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.status\n };\n }\n});\n\nconst prototype = AxiosError.prototype;\nconst descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED',\n 'ERR_NOT_SUPPORT',\n 'ERR_INVALID_URL'\n// eslint-disable-next-line func-names\n].forEach(code => {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = (error, code, config, request, response, customProps) => {\n const axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, prop => {\n return prop !== 'isAxiosError';\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.cause = error;\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nexport default AxiosError;\n", "// eslint-disable-next-line strict\nexport default null;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\n// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array<any>} arr - The array to check\n *\n * @returns {boolean}\n */\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nconst predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object<any, any>} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object<string, any>} options\n *\n * @returns\n */\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n }\n\n // eslint-disable-next-line no-param-reassign\n formData = formData || new (PlatformFormData || FormData)();\n\n // eslint-disable-next-line no-param-reassign\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n\n const metaTokens = options.metaTokens;\n // eslint-disable-next-line no-use-before-define\n const visitor = options.visitor || defaultVisitor;\n const dots = options.dots;\n const indexes = options.indexes;\n const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n const useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array<String|Number>} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n function defaultVisitor(value, key, path) {\n let arr = value;\n\n if (value && !path && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2);\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (\n (utils.isArray(value) && isFlatArray(value)) ||\n ((utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))\n )) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append(\n // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : (indexes === null ? key : key + '[]'),\n convertValue(el)\n );\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n\n return false;\n }\n\n const stack = [];\n\n const exposedHelpers = Object.assign(predicates, {\n defaultVisitor,\n convertValue,\n isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n\n utils.forEach(value, function each(el, key) {\n const result = !(utils.isUndefined(el) || el === null) && visitor.call(\n formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers\n );\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n\n return formData;\n}\n\nexport default toFormData;\n", "'use strict';\n\nimport toFormData from './toFormData.js';\n\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\nfunction encode(str) {\n const charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object<string, any>} params - The parameters to be converted to a FormData object.\n * @param {Object<string, any>} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n\n params && toFormData(params, this, options);\n}\n\nconst prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n const _encode = encoder ? function(value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?(object|Function)} options\n *\n * @returns {string} The formatted url\n */\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n \n const _encode = options && options.encode || encode;\n\n if (utils.isFunction(options)) {\n options = {\n serialize: options\n };\n } \n\n const serializeFn = options && options.serialize;\n\n let serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ?\n params.toString() :\n new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n const hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\nclass InterceptorManager {\n constructor() {\n this.handlers = [];\n }\n\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled,\n rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n}\n\nexport default InterceptorManager;\n", "'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n", "'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;\n", "'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;\n", "'use strict'\n\nexport default typeof Blob !== 'undefined' ? Blob : null\n", "import URLSearchParams from './classes/URLSearchParams.js'\nimport FormData from './classes/FormData.js'\nimport Blob from './classes/Blob.js'\n\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams,\n FormData,\n Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};\n", "const hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n\nconst _navigator = typeof navigator === 'object' && navigator || undefined;\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\nconst hasStandardBrowserEnv = hasBrowserEnv &&\n (!_navigator || ['ReactNative', 'NativeScript', 'NS'].indexOf(_navigator.product) < 0);\n\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\nconst hasStandardBrowserWebWorkerEnv = (() => {\n return (\n typeof WorkerGlobalScope !== 'undefined' &&\n // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope &&\n typeof self.importScripts === 'function'\n );\n})();\n\nconst origin = hasBrowserEnv && window.location.href || 'http://localhost';\n\nexport {\n hasBrowserEnv,\n hasStandardBrowserWebWorkerEnv,\n hasStandardBrowserEnv,\n _navigator as navigator,\n origin\n}\n", "import platform from './node/index.js';\nimport * as utils from './common/utils.js';\n\nexport default {\n ...utils,\n ...platform\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\n\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}\n", "'use strict';\n\nimport utils from '../utils.js';\n\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(match => {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n\n/**\n * Convert an array to an object.\n *\n * @param {Array<any>} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\nfunction arrayToObject(arr) {\n const obj = {};\n const keys = Object.keys(arr);\n let i;\n const len = keys.length;\n let key;\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n return obj;\n}\n\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object<string, any> | null} The converted object.\n */\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n let name = path[index++];\n\n if (name === '__proto__') return true;\n\n const isNumericKey = Number.isFinite(+name);\n const isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n const result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n const obj = {};\n\n utils.forEachEntry(formData, (name, value) => {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nconst defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: ['xhr', 'http', 'fetch'],\n\n transformRequest: [function transformRequest(data, headers) {\n const contentType = headers.getContentType() || '';\n const hasJSONContentType = contentType.indexOf('application/json') > -1;\n const isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n const isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data) ||\n utils.isReadableStream(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n let isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n const _FormData = this.env && this.env.FormData;\n\n return toFormData(\n isFileList ? {'files[]': data} : data,\n _FormData && new _FormData(),\n this.formSerializer\n );\n }\n }\n\n if (isObjectPayload || hasJSONContentType ) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n const transitional = this.transitional || defaults.transitional;\n const forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n const JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {\n const silentJSONParsing = transitional && transitional.silentJSONParsing;\n const strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {\n defaults.headers[method] = {};\n});\n\nexport default defaults;\n", "'use strict';\n\nimport utils from './../utils.js';\n\n// RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nconst ignoreDuplicateOf = utils.toObjectSet([\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n]);\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\nexport default rawHeaders => {\n const parsed = {};\n let key;\n let val;\n let i;\n\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || (parsed[key] && ignoreDuplicateOf[key])) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n\n return parsed;\n};\n", "'use strict';\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\n\nconst $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n const tokens = Object.create(null);\n const tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n let match;\n\n while ((match = tokensRE.exec(str))) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nconst isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim()\n .toLowerCase().replace(/([a-z\\d])(\\w*)/g, (w, char, str) => {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n const accessorName = utils.toCamelCase(' ' + header);\n\n ['get', 'set', 'has'].forEach(methodName => {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nclass AxiosHeaders {\n constructor(headers) {\n headers && this.set(headers);\n }\n\n set(header, valueOrRewrite, rewrite) {\n const self = this;\n\n function setHeader(_value, _header, _rewrite) {\n const lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n const key = utils.findKey(self, lHeader);\n\n if(!key || self[key] === undefined || _rewrite === true || (_rewrite === undefined && self[key] !== false)) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n const setHeaders = (headers, _rewrite) =>\n utils.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite)\n } else if(utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isHeaders(header)) {\n for (const [key, value] of header.entries()) {\n setHeader(value, key, rewrite);\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n\n get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n if (key) {\n const value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n\n has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n const key = utils.findKey(this, header);\n\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n\n delete(header, matcher) {\n const self = this;\n let deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n const key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n\n clear(matcher) {\n const keys = Object.keys(this);\n let i = keys.length;\n let deleted = false;\n\n while (i--) {\n const key = keys[i];\n if(!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n\n normalize(format) {\n const self = this;\n const headers = {};\n\n utils.forEach(this, (value, header) => {\n const key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n const normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n\n headers[normalized] = true;\n });\n\n return this;\n }\n\n concat(...targets) {\n return this.constructor.concat(this, ...targets);\n }\n\n toJSON(asStrings) {\n const obj = Object.create(null);\n\n utils.forEach(this, (value, header) => {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n\n return obj;\n }\n\n [Symbol.iterator]() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n\n toString() {\n return Object.entries(this.toJSON()).map(([header, value]) => header + ': ' + value).join('\\n');\n }\n\n get [Symbol.toStringTag]() {\n return 'AxiosHeaders';\n }\n\n static from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n\n static concat(first, ...targets) {\n const computed = new this(first);\n\n targets.forEach((target) => computed.set(target));\n\n return computed;\n }\n\n static accessor(header) {\n const internals = this[$internals] = (this[$internals] = {\n accessors: {}\n });\n\n const accessors = internals.accessors;\n const prototype = this.prototype;\n\n function defineAccessor(_header) {\n const lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n\n return this;\n }\n}\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']);\n\n// reserved names hotfix\nutils.reduceDescriptors(AxiosHeaders.prototype, ({value}, key) => {\n let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n return {\n get: () => value,\n set(headerValue) {\n this[mapped] = headerValue;\n }\n }\n});\n\nutils.freezeMethods(AxiosHeaders);\n\nexport default AxiosHeaders;\n", "'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\nexport default function transformData(fns, response) {\n const config = this || defaults;\n const context = response || config;\n const headers = AxiosHeaders.from(context.headers);\n let data = context.data;\n\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n\n headers.normalize();\n\n return data;\n}\n", "'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}\n", "'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nexport default CanceledError;\n", "'use strict';\n\nimport AxiosError from './AxiosError.js';\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\nexport default function settle(resolve, reject, response) {\n const validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n}\n", "'use strict';\n\nexport default function parseProtocol(url) {\n const match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}\n", "'use strict';\n\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n const bytes = new Array(samplesCount);\n const timestamps = new Array(samplesCount);\n let head = 0;\n let tail = 0;\n let firstSampleTS;\n\n min = min !== undefined ? min : 1000;\n\n return function push(chunkLength) {\n const now = Date.now();\n\n const startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n\n let i = tail;\n let bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n const passed = startedAt && now - startedAt;\n\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;\n", "/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n let timestamp = 0;\n let threshold = 1000 / freq;\n let lastArgs;\n let timer;\n\n const invoke = (args, now = Date.now()) => {\n timestamp = now;\n lastArgs = null;\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n fn.apply(null, args);\n }\n\n const throttled = (...args) => {\n const now = Date.now();\n const passed = now - timestamp;\n if ( passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n if (!timer) {\n timer = setTimeout(() => {\n timer = null;\n invoke(lastArgs)\n }, threshold - passed);\n }\n }\n }\n\n const flush = () => lastArgs && invoke(lastArgs);\n\n return [throttled, flush];\n}\n\nexport default throttle;\n", "import speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\n\nexport const progressEventReducer = (listener, isDownloadStream, freq = 3) => {\n let bytesNotified = 0;\n const _speedometer = speedometer(50, 250);\n\n return throttle(e => {\n const loaded = e.loaded;\n const total = e.lengthComputable ? e.total : undefined;\n const progressBytes = loaded - bytesNotified;\n const rate = _speedometer(progressBytes);\n const inRange = loaded <= total;\n\n bytesNotified = loaded;\n\n const data = {\n loaded,\n total,\n progress: total ? (loaded / total) : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null,\n [isDownloadStream ? 'download' : 'upload']: true\n };\n\n listener(data);\n }, freq);\n}\n\nexport const progressEventDecorator = (total, throttled) => {\n const lengthComputable = total != null;\n\n return [(loaded) => throttled[0]({\n lengthComputable,\n total,\n loaded\n }), throttled[1]];\n}\n\nexport const asyncDecorator = (fn) => (...args) => utils.asap(() => fn(...args));\n", "import platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => {\n url = new URL(url, platform.origin);\n\n return (\n origin.protocol === url.protocol &&\n origin.host === url.host &&\n (isMSIE || origin.port === url.port)\n );\n})(\n new URL(platform.origin),\n platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)\n) : () => true;\n", "import utils from './../utils.js';\nimport platform from '../platform/index.js';\n\nexport default platform.hasStandardBrowserEnv ?\n\n // Standard browser envs support document.cookie\n {\n write(name, value, expires, path, domain, secure) {\n const cookie = [name + '=' + encodeURIComponent(value)];\n\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n\n utils.isString(path) && cookie.push('path=' + path);\n\n utils.isString(domain) && cookie.push('domain=' + domain);\n\n secure === true && cookie.push('secure');\n\n document.cookie = cookie.join('; ');\n },\n\n read(name) {\n const match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n }\n\n :\n\n // Non-standard browser env (web workers, react-native) lack needed support.\n {\n write() {},\n read() {\n return null;\n },\n remove() {}\n };\n\n", "'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}\n", "'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n}\n", "'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\nexport default function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {\n let isRelativeUrl = !isAbsoluteURL(requestedURL);\n if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n}\n", "'use strict';\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nconst headersToObject = (thing) => thing instanceof AxiosHeaders ? { ...thing } : thing;\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n const config = {};\n\n function getMergedValue(target, source, prop, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({caseless}, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(a, b, prop , caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, prop , caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, prop , caseless);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n const mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true)\n };\n\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n const merge = mergeMap[prop] || mergeDeepProperties;\n const configValue = merge(config1[prop], config2[prop], prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n}\n", "import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\n\nexport default (config) => {\n const newConfig = mergeConfig({}, config);\n\n let {data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth} = newConfig;\n\n newConfig.headers = headers = AxiosHeaders.from(headers);\n\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);\n\n // HTTP basic authentication\n if (auth) {\n headers.set('Authorization', 'Basic ' +\n btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : ''))\n );\n }\n\n let contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n const [type, ...tokens] = contentType ? contentType.split(';').map(token => token.trim()).filter(Boolean) : [];\n headers.setContentType([type || 'multipart/form-data', ...tokens].join('; '));\n }\n }\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || (withXSRFToken !== false && isURLSameOrigin(newConfig.url))) {\n // Add xsrf header\n const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n}\n\n", "import utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport {progressEventReducer} from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\n\nconst isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\n\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n const _config = resolveConfig(config);\n let requestData = _config.data;\n const requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n let {responseType, onUploadProgress, onDownloadProgress} = _config;\n let onCanceled;\n let uploadThrottled, downloadThrottled;\n let flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n let request = new XMLHttpRequest();\n\n request.open(_config.method.toUpperCase(), _config.url, true);\n\n // Set the request timeout in MS\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n const responseHeaders = AxiosHeaders.from(\n 'getAllResponseHeaders' in request && request.getAllResponseHeaders()\n );\n const responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n const response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config,\n request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n const transitional = _config.transitional || transitionalDefaults;\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Remove Content-Type if data is undefined\n requestData === undefined && requestHeaders.setContentType(null);\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n }\n\n // Handle progress if needed\n if (onDownloadProgress) {\n ([downloadThrottled, flushDownload] = progressEventReducer(onDownloadProgress, true));\n request.addEventListener('progress', downloadThrottled);\n }\n\n // Not all browsers support upload events\n if (onUploadProgress && request.upload) {\n ([uploadThrottled, flushUpload] = progressEventReducer(onUploadProgress));\n\n request.upload.addEventListener('progress', uploadThrottled);\n\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = cancel => {\n if (!request) {\n return;\n }\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n const protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData || null);\n });\n}\n", "import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport utils from '../utils.js';\n\nconst composeSignals = (signals, timeout) => {\n const {length} = (signals = signals ? signals.filter(Boolean) : []);\n\n if (timeout || length) {\n let controller = new AbortController();\n\n let aborted;\n\n const onabort = function (reason) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n const err = reason instanceof Error ? reason : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n }\n\n let timer = timeout && setTimeout(() => {\n timer = null;\n onabort(new AxiosError(`timeout ${timeout} of ms exceeded`, AxiosError.ETIMEDOUT))\n }, timeout)\n\n const unsubscribe = () => {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(signal => {\n signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);\n });\n signals = null;\n }\n }\n\n signals.forEach((signal) => signal.addEventListener('abort', onabort));\n\n const {signal} = controller;\n\n signal.unsubscribe = () => utils.asap(unsubscribe);\n\n return signal;\n }\n}\n\nexport default composeSignals;\n", "\nexport const streamChunk = function* (chunk, chunkSize) {\n let len = chunk.byteLength;\n\n if (!chunkSize || len < chunkSize) {\n yield chunk;\n return;\n }\n\n let pos = 0;\n let end;\n\n while (pos < len) {\n end = pos + chunkSize;\n yield chunk.slice(pos, end);\n pos = end;\n }\n}\n\nexport const readBytes = async function* (iterable, chunkSize) {\n for await (const chunk of readStream(iterable)) {\n yield* streamChunk(chunk, chunkSize);\n }\n}\n\nconst readStream = async function* (stream) {\n if (stream[Symbol.asyncIterator]) {\n yield* stream;\n return;\n }\n\n const reader = stream.getReader();\n try {\n for (;;) {\n const {done, value} = await reader.read();\n if (done) {\n break;\n }\n yield value;\n }\n } finally {\n await reader.cancel();\n }\n}\n\nexport const trackStream = (stream, chunkSize, onProgress, onFinish) => {\n const iterator = readBytes(stream, chunkSize);\n\n let bytes = 0;\n let done;\n let _onFinish = (e) => {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n }\n\n return new ReadableStream({\n async pull(controller) {\n try {\n const {done, value} = await iterator.next();\n\n if (done) {\n _onFinish();\n controller.close();\n return;\n }\n\n let len = value.byteLength;\n if (onProgress) {\n let loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n controller.enqueue(new Uint8Array(value));\n } catch (err) {\n _onFinish(err);\n throw err;\n }\n },\n cancel(reason) {\n _onFinish(reason);\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n })\n}\n", "import platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport {trackStream} from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport {progressEventReducer, progressEventDecorator, asyncDecorator} from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\n\nconst isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nconst isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function';\n\n// used only inside the fetch adapter\nconst encodeText = isFetchSupported && (typeof TextEncoder === 'function' ?\n ((encoder) => (str) => encoder.encode(str))(new TextEncoder()) :\n async (str) => new Uint8Array(await new Response(str).arrayBuffer())\n);\n\nconst test = (fn, ...args) => {\n try {\n return !!fn(...args);\n } catch (e) {\n return false\n }\n}\n\nconst supportsRequestStream = isReadableStreamSupported && test(() => {\n let duplexAccessed = false;\n\n const hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n get duplex() {\n duplexAccessed = true;\n return 'half';\n },\n }).headers.has('Content-Type');\n\n return duplexAccessed && !hasContentType;\n});\n\nconst DEFAULT_CHUNK_SIZE = 64 * 1024;\n\nconst supportsResponseStream = isReadableStreamSupported &&\n test(() => utils.isReadableStream(new Response('').body));\n\n\nconst resolvers = {\n stream: supportsResponseStream && ((res) => res.body)\n};\n\nisFetchSupported && (((res) => {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(type => {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? (res) => res[type]() :\n (_, config) => {\n throw new AxiosError(`Response type '${type}' is not supported`, AxiosError.ERR_NOT_SUPPORT, config);\n })\n });\n})(new Response));\n\nconst getBodyLength = async (body) => {\n if (body == null) {\n return 0;\n }\n\n if(utils.isBlob(body)) {\n return body.size;\n }\n\n if(utils.isSpecCompliantForm(body)) {\n const _request = new Request(platform.origin, {\n method: 'POST',\n body,\n });\n return (await _request.arrayBuffer()).byteLength;\n }\n\n if(utils.isArrayBufferView(body) || utils.isArrayBuffer(body)) {\n return body.byteLength;\n }\n\n if(utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if(utils.isString(body)) {\n return (await encodeText(body)).byteLength;\n }\n}\n\nconst resolveBodyLength = async (headers, body) => {\n const length = utils.toFiniteNumber(headers.getContentLength());\n\n return length == null ? getBodyLength(body) : length;\n}\n\nexport default isFetchSupported && (async (config) => {\n let {\n url,\n method,\n data,\n signal,\n cancelToken,\n timeout,\n onDownloadProgress,\n onUploadProgress,\n responseType,\n headers,\n withCredentials = 'same-origin',\n fetchOptions\n } = resolveConfig(config);\n\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n\n let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);\n\n let request;\n\n const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {\n composedSignal.unsubscribe();\n });\n\n let requestContentLength;\n\n try {\n if (\n onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' &&\n (requestContentLength = await resolveBodyLength(headers, data)) !== 0\n ) {\n let _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n let contentTypeHeader;\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader)\n }\n\n if (_request.body) {\n const [onProgress, flush] = progressEventDecorator(\n requestContentLength,\n progressEventReducer(asyncDecorator(onUploadProgress))\n );\n\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);\n }\n }\n\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n // Cloudflare Workers throws when credentials are defined\n // see https://github.com/cloudflare/workerd/issues/902\n const isCredentialsSupported = \"credentials\" in Request.prototype;\n request = new Request(url, {\n ...fetchOptions,\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: isCredentialsSupported ? withCredentials : undefined\n });\n\n let response = await fetch(request);\n\n const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {\n const options = {};\n\n ['status', 'statusText', 'headers'].forEach(prop => {\n options[prop] = response[prop];\n });\n\n const responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n\n const [onProgress, flush] = onDownloadProgress && progressEventDecorator(\n responseContentLength,\n progressEventReducer(asyncDecorator(onDownloadProgress), true)\n ) || [];\n\n response = new Response(\n trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {\n flush && flush();\n unsubscribe && unsubscribe();\n }),\n options\n );\n }\n\n responseType = responseType || 'text';\n\n let responseData = await resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n !isStreamResponse && unsubscribe && unsubscribe();\n\n return await new Promise((resolve, reject) => {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config,\n request\n })\n })\n } catch (err) {\n unsubscribe && unsubscribe();\n\n if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {\n throw Object.assign(\n new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request),\n {\n cause: err.cause || err\n }\n )\n }\n\n throw AxiosError.from(err, err && err.code, config, request);\n }\n});\n\n\n", "import utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\n\nconst knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n}\n\nutils.forEach(knownAdapters, (fn, value) => {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {value});\n } catch (e) {\n // eslint-disable-next-line no-empty\n }\n Object.defineProperty(fn, 'adapterName', {value});\n }\n});\n\nconst renderReason = (reason) => `- ${reason}`;\n\nconst isResolvedHandle = (adapter) => utils.isFunction(adapter) || adapter === null || adapter === false;\n\nexport default {\n getAdapter: (adapters) => {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n\n const {length} = adapters;\n let nameOrAdapter;\n let adapter;\n\n const rejectedReasons = {};\n\n for (let i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n let id;\n\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(`Unknown adapter '${id}'`);\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n\n const reasons = Object.entries(rejectedReasons)\n .map(([id, state]) => `adapter ${id} ` +\n (state === false ? 'is not supported by the environment' : 'is not available in the build')\n );\n\n let s = length ?\n (reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0])) :\n 'as no adapter specified';\n\n throw new AxiosError(\n `There is no suitable adapter to dispatch the request ` + s,\n 'ERR_NOT_SUPPORT'\n );\n }\n\n return adapter;\n },\n adapters: knownAdapters\n}\n", "'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n config.headers = AxiosHeaders.from(config.headers);\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.transformRequest\n );\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n const adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n config.transformResponse,\n response\n );\n\n response.headers = AxiosHeaders.from(response.headers);\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n config.transformResponse,\n reason.response\n );\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}\n", "export const VERSION = \"1.8.4\";", "'use strict';\n\nimport {VERSION} from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\n\nconst validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach((type, i) => {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nconst deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return (value, opt, opts) => {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\nvalidators.spelling = function spelling(correctSpelling) {\n return (value, opt) => {\n // eslint-disable-next-line no-console\n console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);\n return true;\n }\n};\n\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n const keys = Object.keys(options);\n let i = keys.length;\n while (i-- > 0) {\n const opt = keys[i];\n const validator = schema[opt];\n if (validator) {\n const value = options[opt];\n const result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions,\n validators\n};\n", "'use strict';\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\n\nconst validators = validator.validators;\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\nclass Axios {\n constructor(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n async request(configOrUrl, config) {\n try {\n return await this._request(configOrUrl, config);\n } catch (err) {\n if (err instanceof Error) {\n let dummy = {};\n\n Error.captureStackTrace ? Error.captureStackTrace(dummy) : (dummy = new Error());\n\n // slice off the Error: ... line\n const stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n try {\n if (!err.stack) {\n err.stack = stack;\n // match without the 2 top stack lines\n } else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n err.stack += '\\n' + stack\n }\n } catch (e) {\n // ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw err;\n }\n }\n\n _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n const {transitional, paramsSerializer, headers} = config;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n }\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n }\n\n // Set config.allowAbsoluteUrls\n if (config.allowAbsoluteUrls !== undefined) {\n // do nothing\n } else if (this.defaults.allowAbsoluteUrls !== undefined) {\n config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;\n } else {\n config.allowAbsoluteUrls = true;\n }\n\n validator.assertOptions(config, {\n baseUrl: validators.spelling('baseURL'),\n withXsrfToken: validators.spelling('withXSRFToken')\n }, true);\n\n // Set config.method\n config.method = (config.method || this.defaults.method || 'get').toLowerCase();\n\n // Flatten headers\n let contextHeaders = headers && utils.merge(\n headers.common,\n headers[config.method]\n );\n\n headers && utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n (method) => {\n delete headers[method];\n }\n );\n\n config.headers = AxiosHeaders.concat(contextHeaders, headers);\n\n // filter out skipped interceptors\n const requestInterceptorChain = [];\n let synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n const responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n let promise;\n let i = 0;\n let len;\n\n if (!synchronousRequestInterceptors) {\n const chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n\n let newConfig = config;\n\n i = 0;\n\n while (i < len) {\n const onFulfilled = requestInterceptorChain[i++];\n const onRejected = requestInterceptorChain[i++];\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n\n getUri(config) {\n config = mergeConfig(this.defaults, config);\n const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n}\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url,\n data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nexport default Axios;\n", "'use strict';\n\nimport CanceledError from './CanceledError.js';\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\nclass CancelToken {\n constructor(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n let resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n const token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(cancel => {\n if (!token._listeners) return;\n\n let i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = onfulfilled => {\n let _resolve;\n // eslint-disable-next-line func-names\n const promise = new Promise(resolve => {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n\n /**\n * Subscribe to the cancel signal\n */\n\n subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n\n /**\n * Unsubscribe from the cancel signal\n */\n\n unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n const index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n\n toAbortSignal() {\n const controller = new AbortController();\n\n const abort = (err) => {\n controller.abort(err);\n };\n\n this.subscribe(abort);\n\n controller.signal.unsubscribe = () => this.unsubscribe(abort);\n\n return controller.signal;\n }\n\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n static source() {\n let cancel;\n const token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token,\n cancel\n };\n }\n}\n\nexport default CancelToken;\n", "'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}\n", "'use strict';\n\nimport utils from './../utils.js';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n}\n", "const HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511,\n};\n\nObject.entries(HttpStatusCode).forEach(([key, value]) => {\n HttpStatusCode[value] = key;\n});\n\nexport default HttpStatusCode;\n", "'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport {VERSION} from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n const context = new Axios(defaultConfig);\n const instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context, {allOwnKeys: true});\n\n // Copy context to instance\n utils.extend(instance, context, null, {allOwnKeys: true});\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nconst axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData;\n\n// Expose AxiosError class\naxios.AxiosError = AxiosError;\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread;\n\n// Expose isAxiosError\naxios.isAxiosError = isAxiosError;\n\n// Expose mergeConfig\naxios.mergeConfig = mergeConfig;\n\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = thing => formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n\naxios.getAdapter = adapters.getAdapter;\n\naxios.HttpStatusCode = HttpStatusCode;\n\naxios.default = axios;\n\n// this module should only have a default export\nexport default axios\n", "import axios from './lib/axios.js';\n\n// This module is intended to unwrap Axios default export as named.\n// Keep top-level export same with static properties\n// so that it can keep same with es module or cjs\nconst {\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n} = axios;\n\nexport {\n axios as default,\n Axios,\n AxiosError,\n CanceledError,\n isCancel,\n CancelToken,\n VERSION,\n all,\n Cancel,\n isAxiosError,\n spread,\n toFormData,\n AxiosHeaders,\n HttpStatusCode,\n formToJSON,\n getAdapter,\n mergeConfig\n}\n", "import axios from 'axios'\n\nimport type { AxiosError, AxiosHeaders, AxiosRequestConfig, AxiosResponse } from 'axios'\n\ndeclare const AXIOS_BASE: string\ndeclare const AXIOS_HEADERS: string\n\n/**\n * Subset of AxiosRequestConfig\n */\nexport type RequestConfig<TData = unknown> = {\n baseURL?: string\n url?: string\n method?: 'GET' | 'PUT' | 'PATCH' | 'POST' | 'DELETE' | 'OPTIONS'\n params?: unknown\n data?: TData | FormData\n responseType?: 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'\n signal?: AbortSignal\n headers?: AxiosRequestConfig['headers']\n}\n\n/**\n * Subset of AxiosResponse\n */\nexport type ResponseConfig<TData = unknown> = {\n data: TData\n status: number\n statusText: string\n headers: AxiosResponse['headers']\n}\n\nexport type ResponseErrorConfig<TError = unknown> = AxiosError<TError>\n\nlet _config: Partial<RequestConfig> = {\n baseURL: typeof AXIOS_BASE !== 'undefined' ? AXIOS_BASE : undefined,\n headers: typeof AXIOS_HEADERS !== 'undefined' ? (JSON.parse(AXIOS_HEADERS) as AxiosHeaders) : undefined,\n}\n\nexport const getConfig = () => _config\n\nexport const setConfig = (config: RequestConfig) => {\n _config = config\n return getConfig()\n}\n\nexport const axiosInstance = axios.create(getConfig())\n\nexport const client = async <TData, TError = unknown, TVariables = unknown>(config: RequestConfig<TVariables>): Promise<ResponseConfig<TData>> => {\n const globalConfig = getConfig()\n\n return axiosInstance\n .request<TData, ResponseConfig<TData>>({\n ...globalConfig,\n ...config,\n headers: {\n ...globalConfig.headers,\n ...config.headers,\n },\n })\n .catch((e: AxiosError<TError>) => {\n throw e\n })\n}\n\nclient.getConfig = getConfig\nclient.setConfig = setConfig\n\nexport default client\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsCreateTemplateFromAgentMutationRequest,\n AgentsCreateTemplateFromAgentMutationResponse,\n AgentsCreateTemplateFromAgentPathParams,\n AgentsCreateTemplateFromAgent500,\n} from '../../../types/agents/CreateTemplateFromAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsCreateTemplateFromAgentMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/template' }] as const;\n\nexport type AgentsCreateTemplateFromAgentMutationKey = ReturnType<\n typeof agentsCreateTemplateFromAgentMutationKey\n>;\n\n/**\n * @description Create a template from an agent\n * @summary Create Template From Agent\n * {@link /v1/agents/:agent_id/template}\n */\nexport async function agentsCreateTemplateFromAgent(\n agent_id: AgentsCreateTemplateFromAgentPathParams['agent_id'],\n data?: AgentsCreateTemplateFromAgentMutationRequest,\n config: Partial<\n RequestConfig<AgentsCreateTemplateFromAgentMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsCreateTemplateFromAgentMutationResponse,\n ResponseErrorConfig<AgentsCreateTemplateFromAgent500>,\n AgentsCreateTemplateFromAgentMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/template`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a template from an agent\n * @summary Create Template From Agent\n * {@link /v1/agents/:agent_id/template}\n */\nexport function useAgentsCreateTemplateFromAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsCreateTemplateFromAgentMutationResponse>,\n ResponseErrorConfig<AgentsCreateTemplateFromAgent500>,\n {\n agent_id: AgentsCreateTemplateFromAgentPathParams['agent_id'];\n data?: AgentsCreateTemplateFromAgentMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<AgentsCreateTemplateFromAgentMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsCreateTemplateFromAgentMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsCreateTemplateFromAgentMutationResponse>,\n ResponseErrorConfig<AgentsCreateTemplateFromAgent500>,\n {\n agent_id: AgentsCreateTemplateFromAgentPathParams['agent_id'];\n data?: AgentsCreateTemplateFromAgentMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return agentsCreateTemplateFromAgent(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsGetAgentVariablesQueryResponse,\n AgentsGetAgentVariablesPathParams,\n AgentsGetAgentVariables404,\n} from '../../../types/agents/GetAgentVariables.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const agentsGetAgentVariablesQueryKey = (\n agent_id: AgentsGetAgentVariablesPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/variables',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type AgentsGetAgentVariablesQueryKey = ReturnType<\n typeof agentsGetAgentVariablesQueryKey\n>;\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport async function agentsGetAgentVariables(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsGetAgentVariablesQueryResponse,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/variables`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function agentsGetAgentVariablesQueryOptions(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = agentsGetAgentVariablesQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return agentsGetAgentVariables(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport function useAgentsGetAgentVariables<\n TData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryKey extends QueryKey = AgentsGetAgentVariablesQueryKey\n>(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? agentsGetAgentVariablesQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(agentsGetAgentVariablesQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<AgentsGetAgentVariables404>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsGetAgentVariablesQueryResponse,\n AgentsGetAgentVariablesPathParams,\n AgentsGetAgentVariables404,\n} from '../../../types/agents/GetAgentVariables.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const agentsGetAgentVariablesSuspenseQueryKey = (\n agent_id: AgentsGetAgentVariablesPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/variables',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type AgentsGetAgentVariablesSuspenseQueryKey = ReturnType<\n typeof agentsGetAgentVariablesSuspenseQueryKey\n>;\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport async function agentsGetAgentVariablesSuspense(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsGetAgentVariablesQueryResponse,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/variables`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function agentsGetAgentVariablesSuspenseQueryOptions(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = agentsGetAgentVariablesSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return agentsGetAgentVariablesSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the variables associated with an agent\n * @summary Retrieve Memory Variables\n * {@link /v1/agents/:agent_id/core-memory/variables}\n */\nexport function useAgentsGetAgentVariablesSuspense<\n TData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryData = ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n TQueryKey extends QueryKey = AgentsGetAgentVariablesSuspenseQueryKey\n>(\n agent_id: AgentsGetAgentVariablesPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<AgentsGetAgentVariablesQueryResponse>,\n ResponseErrorConfig<AgentsGetAgentVariables404>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? agentsGetAgentVariablesSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(agentsGetAgentVariablesSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<AgentsGetAgentVariables404>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsMigrateAgentMutationRequest,\n AgentsMigrateAgentMutationResponse,\n AgentsMigrateAgentPathParams,\n AgentsMigrateAgent404,\n AgentsMigrateAgent409,\n AgentsMigrateAgent500,\n} from '../../../types/agents/MigrateAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsMigrateAgentMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/migrate' }] as const;\n\nexport type AgentsMigrateAgentMutationKey = ReturnType<\n typeof agentsMigrateAgentMutationKey\n>;\n\n/**\n * @description Migrate an agent to a new versioned agent template\n * @summary Migrate Agent\n * {@link /v1/agents/:agent_id/migrate}\n */\nexport async function agentsMigrateAgent(\n agent_id: AgentsMigrateAgentPathParams['agent_id'],\n data: AgentsMigrateAgentMutationRequest,\n config: Partial<RequestConfig<AgentsMigrateAgentMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsMigrateAgentMutationResponse,\n ResponseErrorConfig<\n AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500\n >,\n AgentsMigrateAgentMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/migrate`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Migrate an agent to a new versioned agent template\n * @summary Migrate Agent\n * {@link /v1/agents/:agent_id/migrate}\n */\nexport function useAgentsMigrateAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsMigrateAgentMutationResponse>,\n ResponseErrorConfig<\n AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500\n >,\n {\n agent_id: AgentsMigrateAgentPathParams['agent_id'];\n data: AgentsMigrateAgentMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<AgentsMigrateAgentMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsMigrateAgentMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsMigrateAgentMutationResponse>,\n ResponseErrorConfig<\n AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500\n >,\n {\n agent_id: AgentsMigrateAgentPathParams['agent_id'];\n data: AgentsMigrateAgentMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return agentsMigrateAgent(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsSearchDeployedAgentsMutationRequest,\n AgentsSearchDeployedAgentsMutationResponse,\n} from '../../../types/agents/SearchDeployedAgents.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsSearchDeployedAgentsMutationKey = () =>\n [{ url: '/v1/agents/search' }] as const;\n\nexport type AgentsSearchDeployedAgentsMutationKey = ReturnType<\n typeof agentsSearchDeployedAgentsMutationKey\n>;\n\n/**\n * @description Search deployed agents\n * @summary Search Deployed Agents\n * {@link /v1/agents/search}\n */\nexport async function agentsSearchDeployedAgents(\n data?: AgentsSearchDeployedAgentsMutationRequest,\n config: Partial<RequestConfig<AgentsSearchDeployedAgentsMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsSearchDeployedAgentsMutationResponse,\n ResponseErrorConfig<Error>,\n AgentsSearchDeployedAgentsMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/search`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Search deployed agents\n * @summary Search Deployed Agents\n * {@link /v1/agents/search}\n */\nexport function useAgentsSearchDeployedAgents<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsSearchDeployedAgentsMutationResponse>,\n ResponseErrorConfig<Error>,\n { data?: AgentsSearchDeployedAgentsMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<AgentsSearchDeployedAgentsMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsSearchDeployedAgentsMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsSearchDeployedAgentsMutationResponse>,\n ResponseErrorConfig<Error>,\n { data?: AgentsSearchDeployedAgentsMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return agentsSearchDeployedAgents(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AgentsVersionAgentTemplateMutationRequest,\n AgentsVersionAgentTemplateMutationResponse,\n AgentsVersionAgentTemplatePathParams,\n AgentsVersionAgentTemplateQueryParams,\n AgentsVersionAgentTemplate404,\n AgentsVersionAgentTemplate500,\n} from '../../../types/agents/VersionAgentTemplate.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const agentsVersionAgentTemplateMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/version-template' }] as const;\n\nexport type AgentsVersionAgentTemplateMutationKey = ReturnType<\n typeof agentsVersionAgentTemplateMutationKey\n>;\n\n/**\n * @description Creates a versioned version of an agent\n * @summary Version Agent Template\n * {@link /v1/agents/:agent_id/version-template}\n */\nexport async function agentsVersionAgentTemplate(\n agent_id: AgentsVersionAgentTemplatePathParams['agent_id'],\n data?: AgentsVersionAgentTemplateMutationRequest,\n params?: AgentsVersionAgentTemplateQueryParams,\n config: Partial<RequestConfig<AgentsVersionAgentTemplateMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AgentsVersionAgentTemplateMutationResponse,\n ResponseErrorConfig<\n AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500\n >,\n AgentsVersionAgentTemplateMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/version-template`,\n params,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Creates a versioned version of an agent\n * @summary Version Agent Template\n * {@link /v1/agents/:agent_id/version-template}\n */\nexport function useAgentsVersionAgentTemplate<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AgentsVersionAgentTemplateMutationResponse>,\n ResponseErrorConfig<\n AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500\n >,\n {\n agent_id: AgentsVersionAgentTemplatePathParams['agent_id'];\n data?: AgentsVersionAgentTemplateMutationRequest;\n params?: AgentsVersionAgentTemplateQueryParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<AgentsVersionAgentTemplateMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? agentsVersionAgentTemplateMutationKey();\n\n return useMutation<\n ResponseConfig<AgentsVersionAgentTemplateMutationResponse>,\n ResponseErrorConfig<\n AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500\n >,\n {\n agent_id: AgentsVersionAgentTemplatePathParams['agent_id'];\n data?: AgentsVersionAgentTemplateMutationRequest;\n params?: AgentsVersionAgentTemplateQueryParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data, params }) => {\n return agentsVersionAgentTemplate(agent_id, data, params, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateAgentMutationRequest,\n CreateAgentMutationResponse,\n CreateAgentHeaderParams,\n CreateAgent422,\n} from '../../types/CreateAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createAgentMutationKey = () => [{ url: '/v1/agents/' }] as const;\n\nexport type CreateAgentMutationKey = ReturnType<typeof createAgentMutationKey>;\n\n/**\n * @description Create a new agent with the specified configuration.\n * @summary Create Agent\n * {@link /v1/agents/}\n */\nexport async function createAgent(\n data?: CreateAgentMutationRequest,\n headers?: CreateAgentHeaderParams,\n config: Partial<RequestConfig<CreateAgentMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateAgentMutationResponse,\n ResponseErrorConfig<CreateAgent422>,\n CreateAgentMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @description Create a new agent with the specified configuration.\n * @summary Create Agent\n * {@link /v1/agents/}\n */\nexport function useCreateAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateAgentMutationResponse>,\n ResponseErrorConfig<CreateAgent422>,\n { data?: CreateAgentMutationRequest; headers?: CreateAgentHeaderParams },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateAgentMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createAgentMutationKey();\n\n return useMutation<\n ResponseConfig<CreateAgentMutationResponse>,\n ResponseErrorConfig<CreateAgent422>,\n { data?: CreateAgentMutationRequest; headers?: CreateAgentHeaderParams },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return createAgent(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateAgentMessageAsyncMutationRequest,\n CreateAgentMessageAsyncMutationResponse,\n CreateAgentMessageAsyncPathParams,\n CreateAgentMessageAsync422,\n} from '../../types/CreateAgentMessageAsync.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createAgentMessageAsyncMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/messages/async' }] as const;\n\nexport type CreateAgentMessageAsyncMutationKey = ReturnType<\n typeof createAgentMessageAsyncMutationKey\n>;\n\n/**\n * @description Asynchronously process a user message and return a run object.The actual processing happens in the background, and the status can be checked using the run ID.\n * @summary Send Message Async\n * {@link /v1/agents/:agent_id/messages/async}\n */\nexport async function createAgentMessageAsync(\n agent_id: CreateAgentMessageAsyncPathParams['agent_id'],\n data: CreateAgentMessageAsyncMutationRequest,\n config: Partial<RequestConfig<CreateAgentMessageAsyncMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateAgentMessageAsyncMutationResponse,\n ResponseErrorConfig<CreateAgentMessageAsync422>,\n CreateAgentMessageAsyncMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/messages/async`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Asynchronously process a user message and return a run object.The actual processing happens in the background, and the status can be checked using the run ID.\n * @summary Send Message Async\n * {@link /v1/agents/:agent_id/messages/async}\n */\nexport function useCreateAgentMessageAsync<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateAgentMessageAsyncMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageAsync422>,\n {\n agent_id: CreateAgentMessageAsyncPathParams['agent_id'];\n data: CreateAgentMessageAsyncMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateAgentMessageAsyncMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createAgentMessageAsyncMutationKey();\n\n return useMutation<\n ResponseConfig<CreateAgentMessageAsyncMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageAsync422>,\n {\n agent_id: CreateAgentMessageAsyncPathParams['agent_id'];\n data: CreateAgentMessageAsyncMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return createAgentMessageAsync(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateAgentMessageStreamMutationRequest,\n CreateAgentMessageStreamMutationResponse,\n CreateAgentMessageStreamPathParams,\n CreateAgentMessageStream422,\n} from '../../types/CreateAgentMessageStream.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createAgentMessageStreamMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/messages/stream' }] as const;\n\nexport type CreateAgentMessageStreamMutationKey = ReturnType<\n typeof createAgentMessageStreamMutationKey\n>;\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Message Streaming\n * {@link /v1/agents/:agent_id/messages/stream}\n */\nexport async function createAgentMessageStream(\n agent_id: CreateAgentMessageStreamPathParams['agent_id'],\n data: CreateAgentMessageStreamMutationRequest,\n config: Partial<RequestConfig<CreateAgentMessageStreamMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateAgentMessageStreamMutationResponse,\n ResponseErrorConfig<CreateAgentMessageStream422>,\n CreateAgentMessageStreamMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/messages/stream`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Message Streaming\n * {@link /v1/agents/:agent_id/messages/stream}\n */\nexport function useCreateAgentMessageStream<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateAgentMessageStreamMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageStream422>,\n {\n agent_id: CreateAgentMessageStreamPathParams['agent_id'];\n data: CreateAgentMessageStreamMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateAgentMessageStreamMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createAgentMessageStreamMutationKey();\n\n return useMutation<\n ResponseConfig<CreateAgentMessageStreamMutationResponse>,\n ResponseErrorConfig<CreateAgentMessageStream422>,\n {\n agent_id: CreateAgentMessageStreamPathParams['agent_id'];\n data: CreateAgentMessageStreamMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return createAgentMessageStream(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreatePassageMutationRequest,\n CreatePassageMutationResponse,\n CreatePassagePathParams,\n CreatePassage422,\n} from '../../types/CreatePassage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createPassageMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/archival-memory' }] as const;\n\nexport type CreatePassageMutationKey = ReturnType<\n typeof createPassageMutationKey\n>;\n\n/**\n * @description Insert a memory into an agent's archival memory store.\n * @summary Create Passage\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport async function createPassage(\n agent_id: CreatePassagePathParams['agent_id'],\n data: CreatePassageMutationRequest,\n config: Partial<RequestConfig<CreatePassageMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreatePassageMutationResponse,\n ResponseErrorConfig<CreatePassage422>,\n CreatePassageMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/archival-memory`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Insert a memory into an agent's archival memory store.\n * @summary Create Passage\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport function useCreatePassage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreatePassageMutationResponse>,\n ResponseErrorConfig<CreatePassage422>,\n {\n agent_id: CreatePassagePathParams['agent_id'];\n data: CreatePassageMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreatePassageMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createPassageMutationKey();\n\n return useMutation<\n ResponseConfig<CreatePassageMutationResponse>,\n ResponseErrorConfig<CreatePassage422>,\n {\n agent_id: CreatePassagePathParams['agent_id'];\n data: CreatePassageMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return createPassage(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteAgentMutationResponse,\n DeleteAgentPathParams,\n DeleteAgent422,\n} from '../../types/DeleteAgent.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteAgentMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}' }] as const;\n\nexport type DeleteAgentMutationKey = ReturnType<typeof deleteAgentMutationKey>;\n\n/**\n * @description Delete an agent.\n * @summary Delete Agent\n * {@link /v1/agents/:agent_id}\n */\nexport async function deleteAgent(\n agent_id: DeleteAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteAgentMutationResponse,\n ResponseErrorConfig<DeleteAgent422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/agents/${agent_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete an agent.\n * @summary Delete Agent\n * {@link /v1/agents/:agent_id}\n */\nexport function useDeleteAgent<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteAgentMutationResponse>,\n ResponseErrorConfig<DeleteAgent422>,\n { agent_id: DeleteAgentPathParams['agent_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteAgentMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteAgentMutationResponse>,\n ResponseErrorConfig<DeleteAgent422>,\n { agent_id: DeleteAgentPathParams['agent_id'] },\n TContext\n >(\n {\n mutationFn: async ({ agent_id }) => {\n return deleteAgent(agent_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeletePassageMutationResponse,\n DeletePassagePathParams,\n DeletePassage422,\n} from '../../types/DeletePassage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deletePassageMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/archival-memory/{memory_id}' }] as const;\n\nexport type DeletePassageMutationKey = ReturnType<\n typeof deletePassageMutationKey\n>;\n\n/**\n * @description Delete a memory from an agent's archival memory store.\n * @summary Delete Passage\n * {@link /v1/agents/:agent_id/archival-memory/:memory_id}\n */\nexport async function deletePassage(\n agent_id: DeletePassagePathParams['agent_id'],\n memory_id: DeletePassagePathParams['memory_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeletePassageMutationResponse,\n ResponseErrorConfig<DeletePassage422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/agents/${agent_id}/archival-memory/${memory_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a memory from an agent's archival memory store.\n * @summary Delete Passage\n * {@link /v1/agents/:agent_id/archival-memory/:memory_id}\n */\nexport function useDeletePassage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeletePassageMutationResponse>,\n ResponseErrorConfig<DeletePassage422>,\n {\n agent_id: DeletePassagePathParams['agent_id'];\n memory_id: DeletePassagePathParams['memory_id'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deletePassageMutationKey();\n\n return useMutation<\n ResponseConfig<DeletePassageMutationResponse>,\n ResponseErrorConfig<DeletePassage422>,\n {\n agent_id: DeletePassagePathParams['agent_id'];\n memory_id: DeletePassagePathParams['memory_id'];\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, memory_id }) => {\n return deletePassage(agent_id, memory_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ExportAgentSerializedQueryRequest,\n ExportAgentSerializedQueryResponse,\n ExportAgentSerializedPathParams,\n ExportAgentSerialized422,\n} from '../../types/ExportAgentSerialized.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const exportAgentSerializedQueryKey = (\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest\n) =>\n [\n { url: '/v1/agents/:agent_id/export', params: { agent_id: agent_id } },\n ...(data ? [data] : []),\n ] as const;\n\nexport type ExportAgentSerializedQueryKey = ReturnType<\n typeof exportAgentSerializedQueryKey\n>;\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport async function exportAgentSerialized(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ExportAgentSerializedQueryResponse,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ExportAgentSerializedQueryRequest\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/export`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\nexport function exportAgentSerializedQueryOptions(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const queryKey = exportAgentSerializedQueryKey(agent_id, data);\n return queryOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return exportAgentSerialized(agent_id, data, config);\n },\n });\n}\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport function useExportAgentSerialized<\n TData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryKey extends QueryKey = ExportAgentSerializedQueryKey\n>(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? exportAgentSerializedQueryKey(agent_id, data);\n\n const query = useQuery(\n {\n ...(exportAgentSerializedQueryOptions(\n agent_id,\n data,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ExportAgentSerialized422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ExportAgentSerializedQueryRequest,\n ExportAgentSerializedQueryResponse,\n ExportAgentSerializedPathParams,\n ExportAgentSerialized422,\n} from '../../types/ExportAgentSerialized.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const exportAgentSerializedSuspenseQueryKey = (\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest\n) =>\n [\n { url: '/v1/agents/:agent_id/export', params: { agent_id: agent_id } },\n ...(data ? [data] : []),\n ] as const;\n\nexport type ExportAgentSerializedSuspenseQueryKey = ReturnType<\n typeof exportAgentSerializedSuspenseQueryKey\n>;\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport async function exportAgentSerializedSuspense(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ExportAgentSerializedQueryResponse,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ExportAgentSerializedQueryRequest\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/export`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\nexport function exportAgentSerializedSuspenseQueryOptions(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n config: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const queryKey = exportAgentSerializedSuspenseQueryKey(agent_id, data);\n return queryOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return exportAgentSerializedSuspense(agent_id, data, config);\n },\n });\n}\n\n/**\n * @description Export the serialized JSON representation of an agent, formatted with indentation.\n * @summary Export Agent Serialized\n * {@link /v1/agents/:agent_id/export}\n */\nexport function useExportAgentSerializedSuspense<\n TData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryData = ResponseConfig<ExportAgentSerializedQueryResponse>,\n TQueryKey extends QueryKey = ExportAgentSerializedSuspenseQueryKey\n>(\n agent_id: ExportAgentSerializedPathParams['agent_id'],\n data?: ExportAgentSerializedQueryRequest,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ExportAgentSerializedQueryResponse>,\n ResponseErrorConfig<ExportAgentSerialized422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<ExportAgentSerializedQueryRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n exportAgentSerializedSuspenseQueryKey(agent_id, data);\n\n const query = useSuspenseQuery(\n {\n ...(exportAgentSerializedSuspenseQueryOptions(\n agent_id,\n data,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ExportAgentSerialized422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ImportAgentSerializedMutationRequest,\n ImportAgentSerializedMutationResponse,\n ImportAgentSerializedQueryParams,\n ImportAgentSerialized422,\n} from '../../types/ImportAgentSerialized.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const importAgentSerializedMutationKey = () =>\n [{ url: '/v1/agents/import' }] as const;\n\nexport type ImportAgentSerializedMutationKey = ReturnType<\n typeof importAgentSerializedMutationKey\n>;\n\n/**\n * @description Import a serialized agent file and recreate the agent in the system.\n * @summary Import Agent Serialized\n * {@link /v1/agents/import}\n */\nexport async function importAgentSerialized(\n data: ImportAgentSerializedMutationRequest,\n params?: ImportAgentSerializedQueryParams,\n config: Partial<RequestConfig<ImportAgentSerializedMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const formData = new FormData();\n if (data) {\n Object.keys(data).forEach((key) => {\n const value = data[key as keyof typeof data];\n if (\n typeof key === 'string' &&\n (typeof value === 'string' || (value as Blob) instanceof Blob)\n ) {\n formData.append(key, value as unknown as string);\n }\n });\n }\n const res = await request<\n ImportAgentSerializedMutationResponse,\n ResponseErrorConfig<ImportAgentSerialized422>,\n ImportAgentSerializedMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/import`,\n params,\n data: formData,\n ...requestConfig,\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...requestConfig.headers,\n },\n });\n return res;\n}\n\n/**\n * @description Import a serialized agent file and recreate the agent in the system.\n * @summary Import Agent Serialized\n * {@link /v1/agents/import}\n */\nexport function useImportAgentSerialized<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<ImportAgentSerializedMutationResponse>,\n ResponseErrorConfig<ImportAgentSerialized422>,\n {\n data: ImportAgentSerializedMutationRequest;\n params?: ImportAgentSerializedQueryParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<ImportAgentSerializedMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? importAgentSerializedMutationKey();\n\n return useMutation<\n ResponseConfig<ImportAgentSerializedMutationResponse>,\n ResponseErrorConfig<ImportAgentSerialized422>,\n {\n data: ImportAgentSerializedMutationRequest;\n params?: ImportAgentSerializedQueryParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ data, params }) => {\n return importAgentSerialized(data, params, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsQueryResponse,\n ListAgentsQueryParams,\n ListAgents422,\n} from '../../types/ListAgents.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentsQueryKey = (params?: ListAgentsQueryParams) =>\n [{ url: '/v1/agents/' }, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsQueryKey = ReturnType<typeof listAgentsQueryKey>;\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport async function listAgents(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsQueryResponse,\n ResponseErrorConfig<ListAgents422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsQueryOptions(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n ResponseConfig<ListAgentsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgents(params, config);\n },\n });\n}\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport function useListAgents<\n TData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsQueryKey\n>(\n params?: ListAgentsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listAgentsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgents422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentSourcesQueryResponse,\n ListAgentSourcesPathParams,\n ListAgentSources422,\n} from '../../types/ListAgentSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentSourcesQueryKey = (\n agent_id: ListAgentSourcesPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/sources', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentSourcesQueryKey = ReturnType<\n typeof listAgentSourcesQueryKey\n>;\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport async function listAgentSources(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentSourcesQueryResponse,\n ResponseErrorConfig<ListAgentSources422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/sources`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentSourcesQueryOptions(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentSourcesQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n ResponseConfig<ListAgentSourcesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentSources(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport function useListAgentSources<\n TData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListAgentSourcesQueryKey\n>(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentSourcesQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(listAgentSourcesQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgentSources422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentSourcesQueryResponse,\n ListAgentSourcesPathParams,\n ListAgentSources422,\n} from '../../types/ListAgentSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentSourcesSuspenseQueryKey = (\n agent_id: ListAgentSourcesPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/sources', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentSourcesSuspenseQueryKey = ReturnType<\n typeof listAgentSourcesSuspenseQueryKey\n>;\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport async function listAgentSourcesSuspense(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentSourcesQueryResponse,\n ResponseErrorConfig<ListAgentSources422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/sources`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentSourcesSuspenseQueryOptions(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentSourcesSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n ResponseConfig<ListAgentSourcesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentSourcesSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the sources associated with an agent.\n * @summary List Agent Sources\n * {@link /v1/agents/:agent_id/sources}\n */\nexport function useListAgentSourcesSuspense<\n TData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListAgentSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListAgentSourcesSuspenseQueryKey\n>(\n agent_id: ListAgentSourcesPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentSourcesQueryResponse>,\n ResponseErrorConfig<ListAgentSources422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentSourcesSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentSourcesSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListAgentSources422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsQueryResponse,\n ListAgentsQueryParams,\n ListAgents422,\n} from '../../types/ListAgents.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentsSuspenseQueryKey = (params?: ListAgentsQueryParams) =>\n [{ url: '/v1/agents/' }, ...(params ? [params] : [])] as const;\n\nexport type ListAgentsSuspenseQueryKey = ReturnType<\n typeof listAgentsSuspenseQueryKey\n>;\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport async function listAgentsSuspense(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsQueryResponse,\n ResponseErrorConfig<ListAgents422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsSuspenseQueryOptions(\n params?: ListAgentsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n ResponseConfig<ListAgentsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all agents associated with a given user.This endpoint retrieves a list of all agents and their configurationsassociated with the specified user ID.\n * @summary List Agents\n * {@link /v1/agents/}\n */\nexport function useListAgentsSuspense<\n TData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsSuspenseQueryKey\n>(\n params?: ListAgentsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentsQueryResponse>,\n ResponseErrorConfig<ListAgents422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListAgents422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentToolsQueryResponse,\n ListAgentToolsPathParams,\n ListAgentTools422,\n} from '../../types/ListAgentTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentToolsQueryKey = (\n agent_id: ListAgentToolsPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/tools', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentToolsQueryKey = ReturnType<typeof listAgentToolsQueryKey>;\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport async function listAgentTools(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentToolsQueryResponse,\n ResponseErrorConfig<ListAgentTools422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentToolsQueryOptions(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentToolsQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n ResponseConfig<ListAgentToolsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentTools(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport function useListAgentTools<\n TData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentToolsQueryKey\n>(\n agent_id: ListAgentToolsPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listAgentToolsQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(listAgentToolsQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgentTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentToolsQueryResponse,\n ListAgentToolsPathParams,\n ListAgentTools422,\n} from '../../types/ListAgentTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentToolsSuspenseQueryKey = (\n agent_id: ListAgentToolsPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/tools', params: { agent_id: agent_id } },\n ] as const;\n\nexport type ListAgentToolsSuspenseQueryKey = ReturnType<\n typeof listAgentToolsSuspenseQueryKey\n>;\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport async function listAgentToolsSuspense(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentToolsQueryResponse,\n ResponseErrorConfig<ListAgentTools422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentToolsSuspenseQueryOptions(\n agent_id: ListAgentToolsPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentToolsSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n ResponseConfig<ListAgentToolsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentToolsSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get tools from an existing agent\n * @summary List Agent Tools\n * {@link /v1/agents/:agent_id/tools}\n */\nexport function useListAgentToolsSuspense<\n TData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryData = ResponseConfig<ListAgentToolsQueryResponse>,\n TQueryKey extends QueryKey = ListAgentToolsSuspenseQueryKey\n>(\n agent_id: ListAgentToolsPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentToolsQueryResponse>,\n ResponseErrorConfig<ListAgentTools422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentToolsSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentToolsSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListAgentTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListCoreMemoryBlocksQueryResponse,\n ListCoreMemoryBlocksPathParams,\n ListCoreMemoryBlocks422,\n} from '../../types/ListCoreMemoryBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listCoreMemoryBlocksQueryKey = (\n agent_id: ListCoreMemoryBlocksPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type ListCoreMemoryBlocksQueryKey = ReturnType<\n typeof listCoreMemoryBlocksQueryKey\n>;\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport async function listCoreMemoryBlocks(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListCoreMemoryBlocksQueryResponse,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listCoreMemoryBlocksQueryOptions(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listCoreMemoryBlocksQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listCoreMemoryBlocks(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport function useListCoreMemoryBlocks<\n TData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListCoreMemoryBlocksQueryKey\n>(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listCoreMemoryBlocksQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(listCoreMemoryBlocksQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListCoreMemoryBlocks422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListCoreMemoryBlocksQueryResponse,\n ListCoreMemoryBlocksPathParams,\n ListCoreMemoryBlocks422,\n} from '../../types/ListCoreMemoryBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listCoreMemoryBlocksSuspenseQueryKey = (\n agent_id: ListCoreMemoryBlocksPathParams['agent_id']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks',\n params: { agent_id: agent_id },\n },\n ] as const;\n\nexport type ListCoreMemoryBlocksSuspenseQueryKey = ReturnType<\n typeof listCoreMemoryBlocksSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport async function listCoreMemoryBlocksSuspense(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListCoreMemoryBlocksQueryResponse,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listCoreMemoryBlocksSuspenseQueryOptions(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listCoreMemoryBlocksSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listCoreMemoryBlocksSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the core memory blocks of a specific agent.\n * @summary List Blocks\n * {@link /v1/agents/:agent_id/core-memory/blocks}\n */\nexport function useListCoreMemoryBlocksSuspense<\n TData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListCoreMemoryBlocksSuspenseQueryKey\n>(\n agent_id: ListCoreMemoryBlocksPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListCoreMemoryBlocksQueryResponse>,\n ResponseErrorConfig<ListCoreMemoryBlocks422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listCoreMemoryBlocksSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(listCoreMemoryBlocksSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListCoreMemoryBlocks422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMessagesQueryResponse,\n ListMessagesPathParams,\n ListMessagesQueryParams,\n ListMessages422,\n} from '../../types/ListMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listMessagesQueryKey = (\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams\n) =>\n [\n { url: '/v1/agents/:agent_id/messages', params: { agent_id: agent_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListMessagesQueryKey = ReturnType<typeof listMessagesQueryKey>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport async function listMessages(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMessagesQueryResponse,\n ResponseErrorConfig<ListMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMessagesQueryOptions(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMessagesQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n ResponseConfig<ListMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMessages(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport function useListMessages<\n TData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListMessagesQueryKey\n>(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listMessagesQueryKey(agent_id, params);\n\n const query = useQuery(\n {\n ...(listMessagesQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMessagesQueryResponse,\n ListMessagesPathParams,\n ListMessagesQueryParams,\n ListMessages422,\n} from '../../types/ListMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listMessagesSuspenseQueryKey = (\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams\n) =>\n [\n { url: '/v1/agents/:agent_id/messages', params: { agent_id: agent_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListMessagesSuspenseQueryKey = ReturnType<\n typeof listMessagesSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport async function listMessagesSuspense(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMessagesQueryResponse,\n ResponseErrorConfig<ListMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMessagesSuspenseQueryOptions(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMessagesSuspenseQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n ResponseConfig<ListMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMessagesSuspense(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Messages\n * {@link /v1/agents/:agent_id/messages}\n */\nexport function useListMessagesSuspense<\n TData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListMessagesSuspenseQueryKey\n>(\n agent_id: ListMessagesPathParams['agent_id'],\n params?: ListMessagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListMessagesQueryResponse>,\n ResponseErrorConfig<ListMessages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listMessagesSuspenseQueryKey(agent_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listMessagesSuspenseQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListPassagesQueryResponse,\n ListPassagesPathParams,\n ListPassagesQueryParams,\n ListPassages422,\n} from '../../types/ListPassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listPassagesQueryKey = (\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams\n) =>\n [\n {\n url: '/v1/agents/:agent_id/archival-memory',\n params: { agent_id: agent_id },\n },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListPassagesQueryKey = ReturnType<typeof listPassagesQueryKey>;\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport async function listPassages(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListPassagesQueryResponse,\n ResponseErrorConfig<ListPassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/archival-memory`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listPassagesQueryOptions(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listPassagesQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n ResponseConfig<ListPassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listPassages(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport function useListPassages<\n TData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryKey extends QueryKey = ListPassagesQueryKey\n>(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listPassagesQueryKey(agent_id, params);\n\n const query = useQuery(\n {\n ...(listPassagesQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListPassages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListPassagesQueryResponse,\n ListPassagesPathParams,\n ListPassagesQueryParams,\n ListPassages422,\n} from '../../types/ListPassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listPassagesSuspenseQueryKey = (\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams\n) =>\n [\n {\n url: '/v1/agents/:agent_id/archival-memory',\n params: { agent_id: agent_id },\n },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListPassagesSuspenseQueryKey = ReturnType<\n typeof listPassagesSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport async function listPassagesSuspense(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListPassagesQueryResponse,\n ResponseErrorConfig<ListPassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/archival-memory`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listPassagesSuspenseQueryOptions(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listPassagesSuspenseQueryKey(agent_id, params);\n return queryOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n ResponseConfig<ListPassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listPassagesSuspense(agent_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memories in an agent's archival memory store (paginated query).\n * @summary List Passages\n * {@link /v1/agents/:agent_id/archival-memory}\n */\nexport function useListPassagesSuspense<\n TData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryData = ResponseConfig<ListPassagesQueryResponse>,\n TQueryKey extends QueryKey = ListPassagesSuspenseQueryKey\n>(\n agent_id: ListPassagesPathParams['agent_id'],\n params?: ListPassagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListPassagesQueryResponse>,\n ResponseErrorConfig<ListPassages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listPassagesSuspenseQueryKey(agent_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listPassagesSuspenseQueryOptions(\n agent_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListPassages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentQueryResponse,\n RetrieveAgentPathParams,\n RetrieveAgent422,\n} from '../../types/RetrieveAgent.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentQueryKey = (\n agent_id: RetrieveAgentPathParams['agent_id']\n) => [{ url: '/v1/agents/:agent_id', params: { agent_id: agent_id } }] as const;\n\nexport type RetrieveAgentQueryKey = ReturnType<typeof retrieveAgentQueryKey>;\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport async function retrieveAgent(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentQueryResponse,\n ResponseErrorConfig<RetrieveAgent422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentQueryOptions(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n ResponseConfig<RetrieveAgentQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgent(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport function useRetrieveAgent<\n TData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentQueryKey\n>(\n agent_id: RetrieveAgentPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveAgentQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(retrieveAgentQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveAgent422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentContextWindowQueryResponse,\n RetrieveAgentContextWindowPathParams,\n RetrieveAgentContextWindow422,\n} from '../../types/RetrieveAgentContextWindow.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentContextWindowQueryKey = (\n agent_id: RetrieveAgentContextWindowPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/context', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentContextWindowQueryKey = ReturnType<\n typeof retrieveAgentContextWindowQueryKey\n>;\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport async function retrieveAgentContextWindow(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentContextWindowQueryResponse,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/context`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentContextWindowQueryOptions(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentContextWindowQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentContextWindow(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport function useRetrieveAgentContextWindow<\n TData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentContextWindowQueryKey\n>(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentContextWindowQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(retrieveAgentContextWindowQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveAgentContextWindow422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentContextWindowQueryResponse,\n RetrieveAgentContextWindowPathParams,\n RetrieveAgentContextWindow422,\n} from '../../types/RetrieveAgentContextWindow.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentContextWindowSuspenseQueryKey = (\n agent_id: RetrieveAgentContextWindowPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/context', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentContextWindowSuspenseQueryKey = ReturnType<\n typeof retrieveAgentContextWindowSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport async function retrieveAgentContextWindowSuspense(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentContextWindowQueryResponse,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/context`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentContextWindowSuspenseQueryOptions(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentContextWindowSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentContextWindowSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the context window of a specific agent.\n * @summary Retrieve Agent Context Window\n * {@link /v1/agents/:agent_id/context}\n */\nexport function useRetrieveAgentContextWindowSuspense<\n TData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentContextWindowSuspenseQueryKey\n>(\n agent_id: RetrieveAgentContextWindowPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveAgentContextWindowQueryResponse>,\n ResponseErrorConfig<RetrieveAgentContextWindow422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n retrieveAgentContextWindowSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveAgentContextWindowSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveAgentContextWindow422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentMemoryQueryResponse,\n RetrieveAgentMemoryPathParams,\n RetrieveAgentMemory422,\n} from '../../types/RetrieveAgentMemory.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentMemoryQueryKey = (\n agent_id: RetrieveAgentMemoryPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/core-memory', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentMemoryQueryKey = ReturnType<\n typeof retrieveAgentMemoryQueryKey\n>;\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport async function retrieveAgentMemory(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentMemoryQueryResponse,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentMemoryQueryOptions(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentMemoryQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentMemory(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport function useRetrieveAgentMemory<\n TData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentMemoryQueryKey\n>(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentMemoryQueryKey(agent_id);\n\n const query = useQuery(\n {\n ...(retrieveAgentMemoryQueryOptions(\n agent_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveAgentMemory422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentMemoryQueryResponse,\n RetrieveAgentMemoryPathParams,\n RetrieveAgentMemory422,\n} from '../../types/RetrieveAgentMemory.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentMemorySuspenseQueryKey = (\n agent_id: RetrieveAgentMemoryPathParams['agent_id']\n) =>\n [\n { url: '/v1/agents/:agent_id/core-memory', params: { agent_id: agent_id } },\n ] as const;\n\nexport type RetrieveAgentMemorySuspenseQueryKey = ReturnType<\n typeof retrieveAgentMemorySuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport async function retrieveAgentMemorySuspense(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentMemoryQueryResponse,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentMemorySuspenseQueryOptions(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentMemorySuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentMemorySuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the memory state of a specific agent.This endpoint fetches the current memory state of the agent identified by the user ID and agent ID.\n * @summary Retrieve Agent Memory\n * {@link /v1/agents/:agent_id/core-memory}\n */\nexport function useRetrieveAgentMemorySuspense<\n TData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentMemorySuspenseQueryKey\n>(\n agent_id: RetrieveAgentMemoryPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveAgentMemoryQueryResponse>,\n ResponseErrorConfig<RetrieveAgentMemory422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentMemorySuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveAgentMemorySuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveAgentMemory422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveAgentQueryResponse,\n RetrieveAgentPathParams,\n RetrieveAgent422,\n} from '../../types/RetrieveAgent.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveAgentSuspenseQueryKey = (\n agent_id: RetrieveAgentPathParams['agent_id']\n) => [{ url: '/v1/agents/:agent_id', params: { agent_id: agent_id } }] as const;\n\nexport type RetrieveAgentSuspenseQueryKey = ReturnType<\n typeof retrieveAgentSuspenseQueryKey\n>;\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport async function retrieveAgentSuspense(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveAgentQueryResponse,\n ResponseErrorConfig<RetrieveAgent422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveAgentSuspenseQueryOptions(\n agent_id: RetrieveAgentPathParams['agent_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveAgentSuspenseQueryKey(agent_id);\n return queryOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n ResponseConfig<RetrieveAgentQueryResponse>,\n typeof queryKey\n >({\n enabled: !!agent_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveAgentSuspense(agent_id, config);\n },\n });\n}\n\n/**\n * @description Get the state of the agent.\n * @summary Retrieve Agent\n * {@link /v1/agents/:agent_id}\n */\nexport function useRetrieveAgentSuspense<\n TData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryData = ResponseConfig<RetrieveAgentQueryResponse>,\n TQueryKey extends QueryKey = RetrieveAgentSuspenseQueryKey\n>(\n agent_id: RetrieveAgentPathParams['agent_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveAgentQueryResponse>,\n ResponseErrorConfig<RetrieveAgent422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveAgentSuspenseQueryKey(agent_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveAgentSuspenseQueryOptions(\n agent_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveAgent422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveCoreMemoryBlockQueryResponse,\n RetrieveCoreMemoryBlockPathParams,\n RetrieveCoreMemoryBlock422,\n} from '../../types/RetrieveCoreMemoryBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveCoreMemoryBlockQueryKey = (\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks/:block_label',\n params: { agent_id: agent_id, block_label: block_label },\n },\n ] as const;\n\nexport type RetrieveCoreMemoryBlockQueryKey = ReturnType<\n typeof retrieveCoreMemoryBlockQueryKey\n>;\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport async function retrieveCoreMemoryBlock(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveCoreMemoryBlockQueryResponse,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks/${block_label}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveCoreMemoryBlockQueryOptions(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveCoreMemoryBlockQueryKey(agent_id, block_label);\n return queryOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!(agent_id && block_label),\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveCoreMemoryBlock(agent_id, block_label, config);\n },\n });\n}\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport function useRetrieveCoreMemoryBlock<\n TData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveCoreMemoryBlockQueryKey\n>(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n retrieveCoreMemoryBlockQueryKey(agent_id, block_label);\n\n const query = useQuery(\n {\n ...(retrieveCoreMemoryBlockQueryOptions(\n agent_id,\n block_label,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveCoreMemoryBlockQueryResponse,\n RetrieveCoreMemoryBlockPathParams,\n RetrieveCoreMemoryBlock422,\n} from '../../types/RetrieveCoreMemoryBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveCoreMemoryBlockSuspenseQueryKey = (\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label']\n) =>\n [\n {\n url: '/v1/agents/:agent_id/core-memory/blocks/:block_label',\n params: { agent_id: agent_id, block_label: block_label },\n },\n ] as const;\n\nexport type RetrieveCoreMemoryBlockSuspenseQueryKey = ReturnType<\n typeof retrieveCoreMemoryBlockSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport async function retrieveCoreMemoryBlockSuspense(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveCoreMemoryBlockQueryResponse,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/agents/${agent_id}/core-memory/blocks/${block_label}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveCoreMemoryBlockSuspenseQueryOptions(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveCoreMemoryBlockSuspenseQueryKey(\n agent_id,\n block_label\n );\n return queryOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!(agent_id && block_label),\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveCoreMemoryBlockSuspense(agent_id, block_label, config);\n },\n });\n}\n\n/**\n * @description Retrieve a core memory block from an agent.\n * @summary Retrieve Block\n * {@link /v1/agents/:agent_id/core-memory/blocks/:block_label}\n */\nexport function useRetrieveCoreMemoryBlockSuspense<\n TData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveCoreMemoryBlockSuspenseQueryKey\n>(\n agent_id: RetrieveCoreMemoryBlockPathParams['agent_id'],\n block_label: RetrieveCoreMemoryBlockPathParams['block_label'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveCoreMemoryBlockQueryResponse>,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n retrieveCoreMemoryBlockSuspenseQueryKey(agent_id, block_label);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveCoreMemoryBlockSuspenseQueryOptions(\n agent_id,\n block_label,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveCoreMemoryBlock422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n SendMessageMutationRequest,\n SendMessageMutationResponse,\n SendMessagePathParams,\n SendMessage422,\n} from '../../types/SendMessage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const sendMessageMutationKey = () =>\n [{ url: '/v1/agents/{agent_id}/messages' }] as const;\n\nexport type SendMessageMutationKey = ReturnType<typeof sendMessageMutationKey>;\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.\n * @summary Send Message\n * {@link /v1/agents/:agent_id/messages}\n */\nexport async function sendMessage(\n agent_id: SendMessagePathParams['agent_id'],\n data: SendMessageMutationRequest,\n config: Partial<RequestConfig<SendMessageMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n SendMessageMutationResponse,\n ResponseErrorConfig<SendMessage422>,\n SendMessageMutationRequest\n >({\n method: 'POST',\n url: `/v1/agents/${agent_id}/messages`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the agent's response.This endpoint accepts a message from a user and processes it through the agent.\n * @summary Send Message\n * {@link /v1/agents/:agent_id/messages}\n */\nexport function useSendMessage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<SendMessageMutationResponse>,\n ResponseErrorConfig<SendMessage422>,\n {\n agent_id: SendMessagePathParams['agent_id'];\n data: SendMessageMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<SendMessageMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? sendMessageMutationKey();\n\n return useMutation<\n ResponseConfig<SendMessageMutationResponse>,\n ResponseErrorConfig<SendMessage422>,\n {\n agent_id: SendMessagePathParams['agent_id'];\n data: SendMessageMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data }) => {\n return sendMessage(agent_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateBlockMutationRequest,\n CreateBlockMutationResponse,\n CreateBlock422,\n} from '../../types/CreateBlock.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createBlockMutationKey = () => [{ url: '/v1/blocks/' }] as const;\n\nexport type CreateBlockMutationKey = ReturnType<typeof createBlockMutationKey>;\n\n/**\n * @summary Create Block\n * {@link /v1/blocks/}\n */\nexport async function createBlock(\n data: CreateBlockMutationRequest,\n config: Partial<RequestConfig<CreateBlockMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateBlockMutationResponse,\n ResponseErrorConfig<CreateBlock422>,\n CreateBlockMutationRequest\n >({\n method: 'POST',\n url: `/v1/blocks/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @summary Create Block\n * {@link /v1/blocks/}\n */\nexport function useCreateBlock<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateBlockMutationResponse>,\n ResponseErrorConfig<CreateBlock422>,\n { data: CreateBlockMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateBlockMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createBlockMutationKey();\n\n return useMutation<\n ResponseConfig<CreateBlockMutationResponse>,\n ResponseErrorConfig<CreateBlock422>,\n { data: CreateBlockMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createBlock(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteBlockMutationResponse,\n DeleteBlockPathParams,\n DeleteBlock422,\n} from '../../types/DeleteBlock.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteBlockMutationKey = () =>\n [{ url: '/v1/blocks/{block_id}' }] as const;\n\nexport type DeleteBlockMutationKey = ReturnType<typeof deleteBlockMutationKey>;\n\n/**\n * @summary Delete Block\n * {@link /v1/blocks/:block_id}\n */\nexport async function deleteBlock(\n block_id: DeleteBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteBlockMutationResponse,\n ResponseErrorConfig<DeleteBlock422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/blocks/${block_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @summary Delete Block\n * {@link /v1/blocks/:block_id}\n */\nexport function useDeleteBlock<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteBlockMutationResponse>,\n ResponseErrorConfig<DeleteBlock422>,\n { block_id: DeleteBlockPathParams['block_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteBlockMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteBlockMutationResponse>,\n ResponseErrorConfig<DeleteBlock422>,\n { block_id: DeleteBlockPathParams['block_id'] },\n TContext\n >(\n {\n mutationFn: async ({ block_id }) => {\n return deleteBlock(block_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsForBlockQueryResponse,\n ListAgentsForBlockPathParams,\n ListAgentsForBlock422,\n} from '../../types/ListAgentsForBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listAgentsForBlockQueryKey = (\n block_id: ListAgentsForBlockPathParams['block_id']\n) =>\n [\n { url: '/v1/blocks/:block_id/agents', params: { block_id: block_id } },\n ] as const;\n\nexport type ListAgentsForBlockQueryKey = ReturnType<\n typeof listAgentsForBlockQueryKey\n>;\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport async function listAgentsForBlock(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsForBlockQueryResponse,\n ResponseErrorConfig<ListAgentsForBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}/agents`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsForBlockQueryOptions(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsForBlockQueryKey(block_id);\n return queryOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentsForBlock(block_id, config);\n },\n });\n}\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport function useListAgentsForBlock<\n TData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsForBlockQueryKey\n>(\n block_id: ListAgentsForBlockPathParams['block_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentsForBlockQueryKey(block_id);\n\n const query = useQuery(\n {\n ...(listAgentsForBlockQueryOptions(\n block_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListAgentsForBlock422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListAgentsForBlockQueryResponse,\n ListAgentsForBlockPathParams,\n ListAgentsForBlock422,\n} from '../../types/ListAgentsForBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listAgentsForBlockSuspenseQueryKey = (\n block_id: ListAgentsForBlockPathParams['block_id']\n) =>\n [\n { url: '/v1/blocks/:block_id/agents', params: { block_id: block_id } },\n ] as const;\n\nexport type ListAgentsForBlockSuspenseQueryKey = ReturnType<\n typeof listAgentsForBlockSuspenseQueryKey\n>;\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport async function listAgentsForBlockSuspense(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListAgentsForBlockQueryResponse,\n ResponseErrorConfig<ListAgentsForBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}/agents`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listAgentsForBlockSuspenseQueryOptions(\n block_id: ListAgentsForBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listAgentsForBlockSuspenseQueryKey(block_id);\n return queryOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listAgentsForBlockSuspense(block_id, config);\n },\n });\n}\n\n/**\n * @description Retrieves all agents associated with the specified block.Raises a 404 if the block does not exist.\n * @summary List Agents For Block\n * {@link /v1/blocks/:block_id/agents}\n */\nexport function useListAgentsForBlockSuspense<\n TData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryData = ResponseConfig<ListAgentsForBlockQueryResponse>,\n TQueryKey extends QueryKey = ListAgentsForBlockSuspenseQueryKey\n>(\n block_id: ListAgentsForBlockPathParams['block_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListAgentsForBlockQueryResponse>,\n ResponseErrorConfig<ListAgentsForBlock422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listAgentsForBlockSuspenseQueryKey(block_id);\n\n const query = useSuspenseQuery(\n {\n ...(listAgentsForBlockSuspenseQueryOptions(\n block_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListAgentsForBlock422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListBlocksQueryResponse,\n ListBlocksQueryParams,\n ListBlocks422,\n} from '../../types/ListBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listBlocksQueryKey = (params?: ListBlocksQueryParams) =>\n [{ url: '/v1/blocks/' }, ...(params ? [params] : [])] as const;\n\nexport type ListBlocksQueryKey = ReturnType<typeof listBlocksQueryKey>;\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport async function listBlocks(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListBlocksQueryResponse,\n ResponseErrorConfig<ListBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listBlocksQueryOptions(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listBlocksQueryKey(params);\n return queryOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n ResponseConfig<ListBlocksQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listBlocks(params, config);\n },\n });\n}\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport function useListBlocks<\n TData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListBlocksQueryKey\n>(\n params?: ListBlocksQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listBlocksQueryKey(params);\n\n const query = useQuery(\n {\n ...(listBlocksQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListBlocks422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListBlocksQueryResponse,\n ListBlocksQueryParams,\n ListBlocks422,\n} from '../../types/ListBlocks.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listBlocksSuspenseQueryKey = (params?: ListBlocksQueryParams) =>\n [{ url: '/v1/blocks/' }, ...(params ? [params] : [])] as const;\n\nexport type ListBlocksSuspenseQueryKey = ReturnType<\n typeof listBlocksSuspenseQueryKey\n>;\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport async function listBlocksSuspense(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListBlocksQueryResponse,\n ResponseErrorConfig<ListBlocks422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listBlocksSuspenseQueryOptions(\n params?: ListBlocksQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listBlocksSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n ResponseConfig<ListBlocksQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listBlocksSuspense(params, config);\n },\n });\n}\n\n/**\n * @summary List Blocks\n * {@link /v1/blocks/}\n */\nexport function useListBlocksSuspense<\n TData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryData = ResponseConfig<ListBlocksQueryResponse>,\n TQueryKey extends QueryKey = ListBlocksSuspenseQueryKey\n>(\n params?: ListBlocksQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListBlocksQueryResponse>,\n ResponseErrorConfig<ListBlocks422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listBlocksSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listBlocksSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListBlocks422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveBlockQueryResponse,\n RetrieveBlockPathParams,\n RetrieveBlock422,\n} from '../../types/RetrieveBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveBlockQueryKey = (\n block_id: RetrieveBlockPathParams['block_id']\n) => [{ url: '/v1/blocks/:block_id', params: { block_id: block_id } }] as const;\n\nexport type RetrieveBlockQueryKey = ReturnType<typeof retrieveBlockQueryKey>;\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport async function retrieveBlock(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveBlockQueryResponse,\n ResponseErrorConfig<RetrieveBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveBlockQueryOptions(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveBlockQueryKey(block_id);\n return queryOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n ResponseConfig<RetrieveBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveBlock(block_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport function useRetrieveBlock<\n TData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveBlockQueryKey\n>(\n block_id: RetrieveBlockPathParams['block_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveBlockQueryKey(block_id);\n\n const query = useQuery(\n {\n ...(retrieveBlockQueryOptions(\n block_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveBlock422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveBlockQueryResponse,\n RetrieveBlockPathParams,\n RetrieveBlock422,\n} from '../../types/RetrieveBlock.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveBlockSuspenseQueryKey = (\n block_id: RetrieveBlockPathParams['block_id']\n) => [{ url: '/v1/blocks/:block_id', params: { block_id: block_id } }] as const;\n\nexport type RetrieveBlockSuspenseQueryKey = ReturnType<\n typeof retrieveBlockSuspenseQueryKey\n>;\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport async function retrieveBlockSuspense(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveBlockQueryResponse,\n ResponseErrorConfig<RetrieveBlock422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/blocks/${block_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveBlockSuspenseQueryOptions(\n block_id: RetrieveBlockPathParams['block_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveBlockSuspenseQueryKey(block_id);\n return queryOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n ResponseConfig<RetrieveBlockQueryResponse>,\n typeof queryKey\n >({\n enabled: !!block_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveBlockSuspense(block_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Block\n * {@link /v1/blocks/:block_id}\n */\nexport function useRetrieveBlockSuspense<\n TData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryData = ResponseConfig<RetrieveBlockQueryResponse>,\n TQueryKey extends QueryKey = RetrieveBlockSuspenseQueryKey\n>(\n block_id: RetrieveBlockPathParams['block_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveBlockQueryResponse>,\n ResponseErrorConfig<RetrieveBlock422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveBlockSuspenseQueryKey(block_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveBlockSuspenseQueryOptions(\n block_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveBlock422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest,\n ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse,\n ClientSideAccessTokensCreateClientSideAccessToken400,\n} from '../../../types/clientSideAccessTokens/CreateClientSideAccessToken.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const clientSideAccessTokensCreateClientSideAccessTokenMutationKey =\n () => [{ url: '/v1/client-side-access-tokens' }] as const;\n\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutationKey =\n ReturnType<\n typeof clientSideAccessTokensCreateClientSideAccessTokenMutationKey\n >;\n\n/**\n * @description Create a new client side access token with the specified configuration.\n * @summary Create Client Side Access Token\n * {@link /v1/client-side-access-tokens}\n */\nexport async function clientSideAccessTokensCreateClientSideAccessToken(\n data: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest,\n config: Partial<\n RequestConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse,\n ResponseErrorConfig<ClientSideAccessTokensCreateClientSideAccessToken400>,\n ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest\n >({\n method: 'POST',\n url: `/v1/client-side-access-tokens`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new client side access token with the specified configuration.\n * @summary Create Client Side Access Token\n * {@link /v1/client-side-access-tokens}\n */\nexport function useClientSideAccessTokensCreateClientSideAccessToken<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensCreateClientSideAccessToken400>,\n {\n data: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ??\n clientSideAccessTokensCreateClientSideAccessTokenMutationKey();\n\n return useMutation<\n ResponseConfig<ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensCreateClientSideAccessToken400>,\n { data: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return clientSideAccessTokensCreateClientSideAccessToken(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest,\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse,\n ClientSideAccessTokensDeleteClientSideAccessTokenPathParams,\n ClientSideAccessTokensDeleteClientSideAccessToken400,\n} from '../../../types/clientSideAccessTokens/DeleteClientSideAccessToken.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const clientSideAccessTokensDeleteClientSideAccessTokenMutationKey =\n () => [{ url: '/v1/client-side-access-tokens/{token}' }] as const;\n\nexport type ClientSideAccessTokensDeleteClientSideAccessTokenMutationKey =\n ReturnType<\n typeof clientSideAccessTokensDeleteClientSideAccessTokenMutationKey\n >;\n\n/**\n * @description Delete a client side access token.\n * @summary Delete Client Side Access Token\n * {@link /v1/client-side-access-tokens/:token}\n */\nexport async function clientSideAccessTokensDeleteClientSideAccessToken(\n token: ClientSideAccessTokensDeleteClientSideAccessTokenPathParams['token'],\n data?: ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest,\n config: Partial<\n RequestConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse,\n ResponseErrorConfig<ClientSideAccessTokensDeleteClientSideAccessToken400>,\n ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest\n >({\n method: 'DELETE',\n url: `/v1/client-side-access-tokens/${token}`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a client side access token.\n * @summary Delete Client Side Access Token\n * {@link /v1/client-side-access-tokens/:token}\n */\nexport function useClientSideAccessTokensDeleteClientSideAccessToken<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensDeleteClientSideAccessToken400>,\n {\n token: ClientSideAccessTokensDeleteClientSideAccessTokenPathParams['token'];\n data?: ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ??\n clientSideAccessTokensDeleteClientSideAccessTokenMutationKey();\n\n return useMutation<\n ResponseConfig<ClientSideAccessTokensDeleteClientSideAccessTokenMutationResponse>,\n ResponseErrorConfig<ClientSideAccessTokensDeleteClientSideAccessToken400>,\n {\n token: ClientSideAccessTokensDeleteClientSideAccessTokenPathParams['token'];\n data?: ClientSideAccessTokensDeleteClientSideAccessTokenMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ token, data }) => {\n return clientSideAccessTokensDeleteClientSideAccessToken(\n token,\n data,\n config\n );\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateGroupMutationRequest,\n CreateGroupMutationResponse,\n CreateGroupHeaderParams,\n CreateGroup422,\n} from '../../types/CreateGroup.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createGroupMutationKey = () => [{ url: '/v1/groups/' }] as const;\n\nexport type CreateGroupMutationKey = ReturnType<typeof createGroupMutationKey>;\n\n/**\n * @description Create a new multi-agent group with the specified configuration.\n * @summary Create Group\n * {@link /v1/groups/}\n */\nexport async function createGroup(\n data: CreateGroupMutationRequest,\n headers?: CreateGroupHeaderParams,\n config: Partial<RequestConfig<CreateGroupMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateGroupMutationResponse,\n ResponseErrorConfig<CreateGroup422>,\n CreateGroupMutationRequest\n >({\n method: 'POST',\n url: `/v1/groups/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @description Create a new multi-agent group with the specified configuration.\n * @summary Create Group\n * {@link /v1/groups/}\n */\nexport function useCreateGroup<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateGroupMutationResponse>,\n ResponseErrorConfig<CreateGroup422>,\n { data: CreateGroupMutationRequest; headers?: CreateGroupHeaderParams },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateGroupMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createGroupMutationKey();\n\n return useMutation<\n ResponseConfig<CreateGroupMutationResponse>,\n ResponseErrorConfig<CreateGroup422>,\n { data: CreateGroupMutationRequest; headers?: CreateGroupHeaderParams },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return createGroup(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteGroupMutationResponse,\n DeleteGroupPathParams,\n DeleteGroup422,\n} from '../../types/DeleteGroup.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteGroupMutationKey = () =>\n [{ url: '/v1/groups/{group_id}' }] as const;\n\nexport type DeleteGroupMutationKey = ReturnType<typeof deleteGroupMutationKey>;\n\n/**\n * @description Delete a multi-agent group.\n * @summary Delete Group\n * {@link /v1/groups/:group_id}\n */\nexport async function deleteGroup(\n group_id: DeleteGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteGroupMutationResponse,\n ResponseErrorConfig<DeleteGroup422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/groups/${group_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a multi-agent group.\n * @summary Delete Group\n * {@link /v1/groups/:group_id}\n */\nexport function useDeleteGroup<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteGroupMutationResponse>,\n ResponseErrorConfig<DeleteGroup422>,\n { group_id: DeleteGroupPathParams['group_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteGroupMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteGroupMutationResponse>,\n ResponseErrorConfig<DeleteGroup422>,\n { group_id: DeleteGroupPathParams['group_id'] },\n TContext\n >(\n {\n mutationFn: async ({ group_id }) => {\n return deleteGroup(group_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupMessagesQueryResponse,\n ListGroupMessagesPathParams,\n ListGroupMessagesQueryParams,\n ListGroupMessages422,\n} from '../../types/ListGroupMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listGroupMessagesQueryKey = (\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams\n) =>\n [\n { url: '/v1/groups/:group_id/messages', params: { group_id: group_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListGroupMessagesQueryKey = ReturnType<\n typeof listGroupMessagesQueryKey\n>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport async function listGroupMessages(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupMessagesQueryResponse,\n ResponseErrorConfig<ListGroupMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupMessagesQueryOptions(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupMessagesQueryKey(group_id, params);\n return queryOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n ResponseConfig<ListGroupMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroupMessages(group_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport function useListGroupMessages<\n TData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListGroupMessagesQueryKey\n>(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listGroupMessagesQueryKey(group_id, params);\n\n const query = useQuery(\n {\n ...(listGroupMessagesQueryOptions(\n group_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListGroupMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupMessagesQueryResponse,\n ListGroupMessagesPathParams,\n ListGroupMessagesQueryParams,\n ListGroupMessages422,\n} from '../../types/ListGroupMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listGroupMessagesSuspenseQueryKey = (\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams\n) =>\n [\n { url: '/v1/groups/:group_id/messages', params: { group_id: group_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListGroupMessagesSuspenseQueryKey = ReturnType<\n typeof listGroupMessagesSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport async function listGroupMessagesSuspense(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupMessagesQueryResponse,\n ResponseErrorConfig<ListGroupMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupMessagesSuspenseQueryOptions(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupMessagesSuspenseQueryKey(group_id, params);\n return queryOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n ResponseConfig<ListGroupMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroupMessagesSuspense(group_id, params, config);\n },\n });\n}\n\n/**\n * @description Retrieve message history for an agent.\n * @summary List Group Messages\n * {@link /v1/groups/:group_id/messages}\n */\nexport function useListGroupMessagesSuspense<\n TData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListGroupMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListGroupMessagesSuspenseQueryKey\n>(\n group_id: ListGroupMessagesPathParams['group_id'],\n params?: ListGroupMessagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListGroupMessagesQueryResponse>,\n ResponseErrorConfig<ListGroupMessages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listGroupMessagesSuspenseQueryKey(group_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listGroupMessagesSuspenseQueryOptions(\n group_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListGroupMessages422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupsQueryResponse,\n ListGroupsQueryParams,\n ListGroups422,\n} from '../../types/ListGroups.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listGroupsQueryKey = (params?: ListGroupsQueryParams) =>\n [{ url: '/v1/groups/' }, ...(params ? [params] : [])] as const;\n\nexport type ListGroupsQueryKey = ReturnType<typeof listGroupsQueryKey>;\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport async function listGroups(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupsQueryResponse,\n ResponseErrorConfig<ListGroups422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupsQueryOptions(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n ResponseConfig<ListGroupsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroups(params, config);\n },\n });\n}\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport function useListGroups<\n TData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryKey extends QueryKey = ListGroupsQueryKey\n>(\n params?: ListGroupsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listGroupsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listGroupsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListGroups422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListGroupsQueryResponse,\n ListGroupsQueryParams,\n ListGroups422,\n} from '../../types/ListGroups.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listGroupsSuspenseQueryKey = (params?: ListGroupsQueryParams) =>\n [{ url: '/v1/groups/' }, ...(params ? [params] : [])] as const;\n\nexport type ListGroupsSuspenseQueryKey = ReturnType<\n typeof listGroupsSuspenseQueryKey\n>;\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport async function listGroupsSuspense(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListGroupsQueryResponse,\n ResponseErrorConfig<ListGroups422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listGroupsSuspenseQueryOptions(\n params?: ListGroupsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listGroupsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n ResponseConfig<ListGroupsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listGroupsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Fetch all multi-agent groups matching query.\n * @summary List Groups\n * {@link /v1/groups/}\n */\nexport function useListGroupsSuspense<\n TData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryData = ResponseConfig<ListGroupsQueryResponse>,\n TQueryKey extends QueryKey = ListGroupsSuspenseQueryKey\n>(\n params?: ListGroupsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListGroupsQueryResponse>,\n ResponseErrorConfig<ListGroups422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listGroupsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listGroupsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListGroups422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveGroupQueryResponse,\n RetrieveGroupPathParams,\n RetrieveGroup422,\n} from '../../types/RetrieveGroup.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveGroupQueryKey = (\n group_id: RetrieveGroupPathParams['group_id']\n) => [{ url: '/v1/groups/:group_id', params: { group_id: group_id } }] as const;\n\nexport type RetrieveGroupQueryKey = ReturnType<typeof retrieveGroupQueryKey>;\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport async function retrieveGroup(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveGroupQueryResponse,\n ResponseErrorConfig<RetrieveGroup422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveGroupQueryOptions(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveGroupQueryKey(group_id);\n return queryOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n ResponseConfig<RetrieveGroupQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveGroup(group_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport function useRetrieveGroup<\n TData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryKey extends QueryKey = RetrieveGroupQueryKey\n>(\n group_id: RetrieveGroupPathParams['group_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveGroupQueryKey(group_id);\n\n const query = useQuery(\n {\n ...(retrieveGroupQueryOptions(\n group_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveGroup422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveGroupQueryResponse,\n RetrieveGroupPathParams,\n RetrieveGroup422,\n} from '../../types/RetrieveGroup.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveGroupSuspenseQueryKey = (\n group_id: RetrieveGroupPathParams['group_id']\n) => [{ url: '/v1/groups/:group_id', params: { group_id: group_id } }] as const;\n\nexport type RetrieveGroupSuspenseQueryKey = ReturnType<\n typeof retrieveGroupSuspenseQueryKey\n>;\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport async function retrieveGroupSuspense(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveGroupQueryResponse,\n ResponseErrorConfig<RetrieveGroup422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/groups/${group_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveGroupSuspenseQueryOptions(\n group_id: RetrieveGroupPathParams['group_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveGroupSuspenseQueryKey(group_id);\n return queryOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n ResponseConfig<RetrieveGroupQueryResponse>,\n typeof queryKey\n >({\n enabled: !!group_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveGroupSuspense(group_id, config);\n },\n });\n}\n\n/**\n * @description Retrieve the group by id.\n * @summary Retrieve Group\n * {@link /v1/groups/:group_id}\n */\nexport function useRetrieveGroupSuspense<\n TData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryData = ResponseConfig<RetrieveGroupQueryResponse>,\n TQueryKey extends QueryKey = RetrieveGroupSuspenseQueryKey\n>(\n group_id: RetrieveGroupPathParams['group_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveGroupQueryResponse>,\n ResponseErrorConfig<RetrieveGroup422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveGroupSuspenseQueryKey(group_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveGroupSuspenseQueryOptions(\n group_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveGroup422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n SendGroupMessageMutationRequest,\n SendGroupMessageMutationResponse,\n SendGroupMessagePathParams,\n SendGroupMessage422,\n} from '../../types/SendGroupMessage.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const sendGroupMessageMutationKey = () =>\n [{ url: '/v1/groups/{group_id}/messages' }] as const;\n\nexport type SendGroupMessageMutationKey = ReturnType<\n typeof sendGroupMessageMutationKey\n>;\n\n/**\n * @description Process a user message and return the group's response.This endpoint accepts a message from a user and processes it through through agents in the group based on the specified pattern\n * @summary Send Group Message\n * {@link /v1/groups/:group_id/messages}\n */\nexport async function sendGroupMessage(\n group_id: SendGroupMessagePathParams['group_id'],\n data: SendGroupMessageMutationRequest,\n config: Partial<RequestConfig<SendGroupMessageMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n SendGroupMessageMutationResponse,\n ResponseErrorConfig<SendGroupMessage422>,\n SendGroupMessageMutationRequest\n >({\n method: 'POST',\n url: `/v1/groups/${group_id}/messages`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the group's response.This endpoint accepts a message from a user and processes it through through agents in the group based on the specified pattern\n * @summary Send Group Message\n * {@link /v1/groups/:group_id/messages}\n */\nexport function useSendGroupMessage<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<SendGroupMessageMutationResponse>,\n ResponseErrorConfig<SendGroupMessage422>,\n {\n group_id: SendGroupMessagePathParams['group_id'];\n data: SendGroupMessageMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<SendGroupMessageMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? sendGroupMessageMutationKey();\n\n return useMutation<\n ResponseConfig<SendGroupMessageMutationResponse>,\n ResponseErrorConfig<SendGroupMessage422>,\n {\n group_id: SendGroupMessagePathParams['group_id'];\n data: SendGroupMessageMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ group_id, data }) => {\n return sendGroupMessage(group_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n SendGroupMessageStreamingMutationRequest,\n SendGroupMessageStreamingMutationResponse,\n SendGroupMessageStreamingPathParams,\n SendGroupMessageStreaming422,\n} from '../../types/SendGroupMessageStreaming.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const sendGroupMessageStreamingMutationKey = () =>\n [{ url: '/v1/groups/{group_id}/messages/stream' }] as const;\n\nexport type SendGroupMessageStreamingMutationKey = ReturnType<\n typeof sendGroupMessageStreamingMutationKey\n>;\n\n/**\n * @description Process a user message and return the group's responses.This endpoint accepts a message from a user and processes it through agents in the group based on the specified pattern.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Group Message Streaming\n * {@link /v1/groups/:group_id/messages/stream}\n */\nexport async function sendGroupMessageStreaming(\n group_id: SendGroupMessageStreamingPathParams['group_id'],\n data: SendGroupMessageStreamingMutationRequest,\n config: Partial<RequestConfig<SendGroupMessageStreamingMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n SendGroupMessageStreamingMutationResponse,\n ResponseErrorConfig<SendGroupMessageStreaming422>,\n SendGroupMessageStreamingMutationRequest\n >({\n method: 'POST',\n url: `/v1/groups/${group_id}/messages/stream`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Process a user message and return the group's responses.This endpoint accepts a message from a user and processes it through agents in the group based on the specified pattern.It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.\n * @summary Send Group Message Streaming\n * {@link /v1/groups/:group_id/messages/stream}\n */\nexport function useSendGroupMessageStreaming<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<SendGroupMessageStreamingMutationResponse>,\n ResponseErrorConfig<SendGroupMessageStreaming422>,\n {\n group_id: SendGroupMessageStreamingPathParams['group_id'];\n data: SendGroupMessageStreamingMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<SendGroupMessageStreamingMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? sendGroupMessageStreamingMutationKey();\n\n return useMutation<\n ResponseConfig<SendGroupMessageStreamingMutationResponse>,\n ResponseErrorConfig<SendGroupMessageStreaming422>,\n {\n group_id: SendGroupMessageStreamingPathParams['group_id'];\n data: SendGroupMessageStreamingMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ group_id, data }) => {\n return sendGroupMessageStreaming(group_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { HealthCheckQueryResponse } from '../../types/HealthCheck.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const healthCheckQueryKey = () => [{ url: '/v1/health/' }] as const;\n\nexport type HealthCheckQueryKey = ReturnType<typeof healthCheckQueryKey>;\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport async function healthCheck(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n HealthCheckQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/health/`, ...requestConfig });\n return res;\n}\n\nexport function healthCheckQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = healthCheckQueryKey();\n return queryOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<HealthCheckQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return healthCheck(config);\n },\n });\n}\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport function useHealthCheck<\n TData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryKey extends QueryKey = HealthCheckQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? healthCheckQueryKey();\n\n const query = useQuery(\n {\n ...(healthCheckQueryOptions(config) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { HealthCheckQueryResponse } from '../../types/HealthCheck.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const healthCheckSuspenseQueryKey = () =>\n [{ url: '/v1/health/' }] as const;\n\nexport type HealthCheckSuspenseQueryKey = ReturnType<\n typeof healthCheckSuspenseQueryKey\n>;\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport async function healthCheckSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n HealthCheckQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/health/`, ...requestConfig });\n return res;\n}\n\nexport function healthCheckSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = healthCheckSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<HealthCheckQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return healthCheckSuspense(config);\n },\n });\n}\n\n/**\n * @summary Health Check\n * {@link /v1/health/}\n */\nexport function useHealthCheckSuspense<\n TData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryData = ResponseConfig<HealthCheckQueryResponse>,\n TQueryKey extends QueryKey = HealthCheckSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<HealthCheckQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? healthCheckSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(healthCheckSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateIdentityMutationRequest,\n CreateIdentityMutationResponse,\n CreateIdentityHeaderParams,\n CreateIdentity422,\n} from '../../types/CreateIdentity.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createIdentityMutationKey = () =>\n [{ url: '/v1/identities/' }] as const;\n\nexport type CreateIdentityMutationKey = ReturnType<\n typeof createIdentityMutationKey\n>;\n\n/**\n * @summary Create Identity\n * {@link /v1/identities/}\n */\nexport async function createIdentity(\n data: CreateIdentityMutationRequest,\n headers?: CreateIdentityHeaderParams,\n config: Partial<RequestConfig<CreateIdentityMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateIdentityMutationResponse,\n ResponseErrorConfig<CreateIdentity422>,\n CreateIdentityMutationRequest\n >({\n method: 'POST',\n url: `/v1/identities/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @summary Create Identity\n * {@link /v1/identities/}\n */\nexport function useCreateIdentity<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateIdentityMutationResponse>,\n ResponseErrorConfig<CreateIdentity422>,\n {\n data: CreateIdentityMutationRequest;\n headers?: CreateIdentityHeaderParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateIdentityMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createIdentityMutationKey();\n\n return useMutation<\n ResponseConfig<CreateIdentityMutationResponse>,\n ResponseErrorConfig<CreateIdentity422>,\n {\n data: CreateIdentityMutationRequest;\n headers?: CreateIdentityHeaderParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return createIdentity(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteIdentityMutationResponse,\n DeleteIdentityPathParams,\n DeleteIdentity422,\n} from '../../types/DeleteIdentity.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteIdentityMutationKey = () =>\n [{ url: '/v1/identities/{identity_id}' }] as const;\n\nexport type DeleteIdentityMutationKey = ReturnType<\n typeof deleteIdentityMutationKey\n>;\n\n/**\n * @description Delete an identity by its identifier key\n * @summary Delete Identity\n * {@link /v1/identities/:identity_id}\n */\nexport async function deleteIdentity(\n identity_id: DeleteIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteIdentityMutationResponse,\n ResponseErrorConfig<DeleteIdentity422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/identities/${identity_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete an identity by its identifier key\n * @summary Delete Identity\n * {@link /v1/identities/:identity_id}\n */\nexport function useDeleteIdentity<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteIdentityMutationResponse>,\n ResponseErrorConfig<DeleteIdentity422>,\n { identity_id: DeleteIdentityPathParams['identity_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteIdentityMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteIdentityMutationResponse>,\n ResponseErrorConfig<DeleteIdentity422>,\n { identity_id: DeleteIdentityPathParams['identity_id'] },\n TContext\n >(\n {\n mutationFn: async ({ identity_id }) => {\n return deleteIdentity(identity_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListIdentitiesQueryResponse,\n ListIdentitiesQueryParams,\n ListIdentities422,\n} from '../../types/ListIdentities.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listIdentitiesQueryKey = (params?: ListIdentitiesQueryParams) =>\n [{ url: '/v1/identities/' }, ...(params ? [params] : [])] as const;\n\nexport type ListIdentitiesQueryKey = ReturnType<typeof listIdentitiesQueryKey>;\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport async function listIdentities(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListIdentitiesQueryResponse,\n ResponseErrorConfig<ListIdentities422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listIdentitiesQueryOptions(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listIdentitiesQueryKey(params);\n return queryOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n ResponseConfig<ListIdentitiesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listIdentities(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport function useListIdentities<\n TData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryKey extends QueryKey = ListIdentitiesQueryKey\n>(\n params?: ListIdentitiesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listIdentitiesQueryKey(params);\n\n const query = useQuery(\n {\n ...(listIdentitiesQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListIdentities422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListIdentitiesQueryResponse,\n ListIdentitiesQueryParams,\n ListIdentities422,\n} from '../../types/ListIdentities.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listIdentitiesSuspenseQueryKey = (\n params?: ListIdentitiesQueryParams\n) => [{ url: '/v1/identities/' }, ...(params ? [params] : [])] as const;\n\nexport type ListIdentitiesSuspenseQueryKey = ReturnType<\n typeof listIdentitiesSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport async function listIdentitiesSuspense(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListIdentitiesQueryResponse,\n ResponseErrorConfig<ListIdentities422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listIdentitiesSuspenseQueryOptions(\n params?: ListIdentitiesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listIdentitiesSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n ResponseConfig<ListIdentitiesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listIdentitiesSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all identities in the database\n * @summary List Identities\n * {@link /v1/identities/}\n */\nexport function useListIdentitiesSuspense<\n TData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryData = ResponseConfig<ListIdentitiesQueryResponse>,\n TQueryKey extends QueryKey = ListIdentitiesSuspenseQueryKey\n>(\n params?: ListIdentitiesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListIdentitiesQueryResponse>,\n ResponseErrorConfig<ListIdentities422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listIdentitiesSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listIdentitiesSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListIdentities422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveIdentityQueryResponse,\n RetrieveIdentityPathParams,\n RetrieveIdentity422,\n} from '../../types/RetrieveIdentity.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveIdentityQueryKey = (\n identity_id: RetrieveIdentityPathParams['identity_id']\n) =>\n [\n {\n url: '/v1/identities/:identity_id',\n params: { identity_id: identity_id },\n },\n ] as const;\n\nexport type RetrieveIdentityQueryKey = ReturnType<\n typeof retrieveIdentityQueryKey\n>;\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport async function retrieveIdentity(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveIdentityQueryResponse,\n ResponseErrorConfig<RetrieveIdentity422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/${identity_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveIdentityQueryOptions(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveIdentityQueryKey(identity_id);\n return queryOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n ResponseConfig<RetrieveIdentityQueryResponse>,\n typeof queryKey\n >({\n enabled: !!identity_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveIdentity(identity_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport function useRetrieveIdentity<\n TData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryKey extends QueryKey = RetrieveIdentityQueryKey\n>(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveIdentityQueryKey(identity_id);\n\n const query = useQuery(\n {\n ...(retrieveIdentityQueryOptions(\n identity_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveIdentity422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveIdentityQueryResponse,\n RetrieveIdentityPathParams,\n RetrieveIdentity422,\n} from '../../types/RetrieveIdentity.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveIdentitySuspenseQueryKey = (\n identity_id: RetrieveIdentityPathParams['identity_id']\n) =>\n [\n {\n url: '/v1/identities/:identity_id',\n params: { identity_id: identity_id },\n },\n ] as const;\n\nexport type RetrieveIdentitySuspenseQueryKey = ReturnType<\n typeof retrieveIdentitySuspenseQueryKey\n>;\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport async function retrieveIdentitySuspense(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveIdentityQueryResponse,\n ResponseErrorConfig<RetrieveIdentity422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/identities/${identity_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveIdentitySuspenseQueryOptions(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveIdentitySuspenseQueryKey(identity_id);\n return queryOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n ResponseConfig<RetrieveIdentityQueryResponse>,\n typeof queryKey\n >({\n enabled: !!identity_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveIdentitySuspense(identity_id, config);\n },\n });\n}\n\n/**\n * @summary Retrieve Identity\n * {@link /v1/identities/:identity_id}\n */\nexport function useRetrieveIdentitySuspense<\n TData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryData = ResponseConfig<RetrieveIdentityQueryResponse>,\n TQueryKey extends QueryKey = RetrieveIdentitySuspenseQueryKey\n>(\n identity_id: RetrieveIdentityPathParams['identity_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveIdentityQueryResponse>,\n ResponseErrorConfig<RetrieveIdentity422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveIdentitySuspenseQueryKey(identity_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveIdentitySuspenseQueryOptions(\n identity_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveIdentity422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UpsertIdentityMutationRequest,\n UpsertIdentityMutationResponse,\n UpsertIdentityHeaderParams,\n UpsertIdentity422,\n} from '../../types/UpsertIdentity.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const upsertIdentityMutationKey = () =>\n [{ url: '/v1/identities/' }] as const;\n\nexport type UpsertIdentityMutationKey = ReturnType<\n typeof upsertIdentityMutationKey\n>;\n\n/**\n * @summary Upsert Identity\n * {@link /v1/identities/}\n */\nexport async function upsertIdentity(\n data: UpsertIdentityMutationRequest,\n headers?: UpsertIdentityHeaderParams,\n config: Partial<RequestConfig<UpsertIdentityMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n UpsertIdentityMutationResponse,\n ResponseErrorConfig<UpsertIdentity422>,\n UpsertIdentityMutationRequest\n >({\n method: 'PUT',\n url: `/v1/identities/`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @summary Upsert Identity\n * {@link /v1/identities/}\n */\nexport function useUpsertIdentity<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UpsertIdentityMutationResponse>,\n ResponseErrorConfig<UpsertIdentity422>,\n {\n data: UpsertIdentityMutationRequest;\n headers?: UpsertIdentityHeaderParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UpsertIdentityMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? upsertIdentityMutationKey();\n\n return useMutation<\n ResponseConfig<UpsertIdentityMutationResponse>,\n ResponseErrorConfig<UpsertIdentity422>,\n {\n data: UpsertIdentityMutationRequest;\n headers?: UpsertIdentityHeaderParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ data, headers }) => {\n return upsertIdentity(data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UpsertIdentityPropertiesMutationRequest,\n UpsertIdentityPropertiesMutationResponse,\n UpsertIdentityPropertiesPathParams,\n UpsertIdentityProperties422,\n} from '../../types/UpsertIdentityProperties.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const upsertIdentityPropertiesMutationKey = () =>\n [{ url: '/v1/identities/{identity_id}/properties' }] as const;\n\nexport type UpsertIdentityPropertiesMutationKey = ReturnType<\n typeof upsertIdentityPropertiesMutationKey\n>;\n\n/**\n * @summary Upsert Identity Properties\n * {@link /v1/identities/:identity_id/properties}\n */\nexport async function upsertIdentityProperties(\n identity_id: UpsertIdentityPropertiesPathParams['identity_id'],\n data?: UpsertIdentityPropertiesMutationRequest,\n config: Partial<RequestConfig<UpsertIdentityPropertiesMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n UpsertIdentityPropertiesMutationResponse,\n ResponseErrorConfig<UpsertIdentityProperties422>,\n UpsertIdentityPropertiesMutationRequest\n >({\n method: 'PUT',\n url: `/v1/identities/${identity_id}/properties`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @summary Upsert Identity Properties\n * {@link /v1/identities/:identity_id/properties}\n */\nexport function useUpsertIdentityProperties<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UpsertIdentityPropertiesMutationResponse>,\n ResponseErrorConfig<UpsertIdentityProperties422>,\n {\n identity_id: UpsertIdentityPropertiesPathParams['identity_id'];\n data?: UpsertIdentityPropertiesMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UpsertIdentityPropertiesMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? upsertIdentityPropertiesMutationKey();\n\n return useMutation<\n ResponseConfig<UpsertIdentityPropertiesMutationResponse>,\n ResponseErrorConfig<UpsertIdentityProperties422>,\n {\n identity_id: UpsertIdentityPropertiesPathParams['identity_id'];\n data?: UpsertIdentityPropertiesMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ identity_id, data }) => {\n return upsertIdentityProperties(identity_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteJobMutationResponse,\n DeleteJobPathParams,\n DeleteJob422,\n} from '../../types/DeleteJob.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteJobMutationKey = () =>\n [{ url: '/v1/jobs/{job_id}' }] as const;\n\nexport type DeleteJobMutationKey = ReturnType<typeof deleteJobMutationKey>;\n\n/**\n * @description Delete a job by its job_id.\n * @summary Delete Job\n * {@link /v1/jobs/:job_id}\n */\nexport async function deleteJob(\n job_id: DeleteJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteJobMutationResponse,\n ResponseErrorConfig<DeleteJob422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/jobs/${job_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a job by its job_id.\n * @summary Delete Job\n * {@link /v1/jobs/:job_id}\n */\nexport function useDeleteJob<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteJobMutationResponse>,\n ResponseErrorConfig<DeleteJob422>,\n { job_id: DeleteJobPathParams['job_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteJobMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteJobMutationResponse>,\n ResponseErrorConfig<DeleteJob422>,\n { job_id: DeleteJobPathParams['job_id'] },\n TContext\n >(\n {\n mutationFn: async ({ job_id }) => {\n return deleteJob(job_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveJobsQueryResponse,\n ListActiveJobs422,\n} from '../../types/ListActiveJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listActiveJobsQueryKey = () =>\n [{ url: '/v1/jobs/active' }] as const;\n\nexport type ListActiveJobsQueryKey = ReturnType<typeof listActiveJobsQueryKey>;\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport async function listActiveJobs(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveJobsQueryResponse,\n ResponseErrorConfig<ListActiveJobs422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/active`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveJobsQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveJobsQueryKey();\n return queryOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n ResponseConfig<ListActiveJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveJobs(config);\n },\n });\n}\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport function useListActiveJobs<\n TData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveJobsQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listActiveJobsQueryKey();\n\n const query = useQuery(\n {\n ...(listActiveJobsQueryOptions(\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListActiveJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveJobsQueryResponse,\n ListActiveJobs422,\n} from '../../types/ListActiveJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listActiveJobsSuspenseQueryKey = () =>\n [{ url: '/v1/jobs/active' }] as const;\n\nexport type ListActiveJobsSuspenseQueryKey = ReturnType<\n typeof listActiveJobsSuspenseQueryKey\n>;\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport async function listActiveJobsSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveJobsQueryResponse,\n ResponseErrorConfig<ListActiveJobs422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/active`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveJobsSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveJobsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n ResponseConfig<ListActiveJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveJobsSuspense(config);\n },\n });\n}\n\n/**\n * @description List all active jobs.\n * @summary List Active Jobs\n * {@link /v1/jobs/active}\n */\nexport function useListActiveJobsSuspense<\n TData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveJobsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveJobsSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListActiveJobsQueryResponse>,\n ResponseErrorConfig<ListActiveJobs422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listActiveJobsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listActiveJobsSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListActiveJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListJobsQueryResponse,\n ListJobsQueryParams,\n ListJobs422,\n} from '../../types/ListJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listJobsQueryKey = (params?: ListJobsQueryParams) =>\n [{ url: '/v1/jobs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListJobsQueryKey = ReturnType<typeof listJobsQueryKey>;\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport async function listJobs(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListJobsQueryResponse,\n ResponseErrorConfig<ListJobs422>,\n unknown\n >({ method: 'GET', url: `/v1/jobs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listJobsQueryOptions(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listJobsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n ResponseConfig<ListJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listJobs(params, config);\n },\n });\n}\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport function useListJobs<\n TData = ResponseConfig<ListJobsQueryResponse>,\n TQueryData = ResponseConfig<ListJobsQueryResponse>,\n TQueryKey extends QueryKey = ListJobsQueryKey\n>(\n params?: ListJobsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listJobsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listJobsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListJobsQueryResponse,\n ListJobsQueryParams,\n ListJobs422,\n} from '../../types/ListJobs.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listJobsSuspenseQueryKey = (params?: ListJobsQueryParams) =>\n [{ url: '/v1/jobs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListJobsSuspenseQueryKey = ReturnType<\n typeof listJobsSuspenseQueryKey\n>;\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport async function listJobsSuspense(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListJobsQueryResponse,\n ResponseErrorConfig<ListJobs422>,\n unknown\n >({ method: 'GET', url: `/v1/jobs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listJobsSuspenseQueryOptions(\n params?: ListJobsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listJobsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n ResponseConfig<ListJobsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listJobsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all jobs.\n * @summary List Jobs\n * {@link /v1/jobs/}\n */\nexport function useListJobsSuspense<\n TData = ResponseConfig<ListJobsQueryResponse>,\n TQueryData = ResponseConfig<ListJobsQueryResponse>,\n TQueryKey extends QueryKey = ListJobsSuspenseQueryKey\n>(\n params?: ListJobsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListJobsQueryResponse>,\n ResponseErrorConfig<ListJobs422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listJobsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listJobsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListJobs422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveJobQueryResponse,\n RetrieveJobPathParams,\n RetrieveJob422,\n} from '../../types/RetrieveJob.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveJobQueryKey = (job_id: RetrieveJobPathParams['job_id']) =>\n [{ url: '/v1/jobs/:job_id', params: { job_id: job_id } }] as const;\n\nexport type RetrieveJobQueryKey = ReturnType<typeof retrieveJobQueryKey>;\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport async function retrieveJob(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveJobQueryResponse,\n ResponseErrorConfig<RetrieveJob422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/${job_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveJobQueryOptions(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveJobQueryKey(job_id);\n return queryOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n ResponseConfig<RetrieveJobQueryResponse>,\n typeof queryKey\n >({\n enabled: !!job_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveJob(job_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport function useRetrieveJob<\n TData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryKey extends QueryKey = RetrieveJobQueryKey\n>(\n job_id: RetrieveJobPathParams['job_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveJobQueryKey(job_id);\n\n const query = useQuery(\n {\n ...(retrieveJobQueryOptions(\n job_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveJob422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveJobQueryResponse,\n RetrieveJobPathParams,\n RetrieveJob422,\n} from '../../types/RetrieveJob.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveJobSuspenseQueryKey = (\n job_id: RetrieveJobPathParams['job_id']\n) => [{ url: '/v1/jobs/:job_id', params: { job_id: job_id } }] as const;\n\nexport type RetrieveJobSuspenseQueryKey = ReturnType<\n typeof retrieveJobSuspenseQueryKey\n>;\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport async function retrieveJobSuspense(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveJobQueryResponse,\n ResponseErrorConfig<RetrieveJob422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/jobs/${job_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveJobSuspenseQueryOptions(\n job_id: RetrieveJobPathParams['job_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveJobSuspenseQueryKey(job_id);\n return queryOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n ResponseConfig<RetrieveJobQueryResponse>,\n typeof queryKey\n >({\n enabled: !!job_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveJobSuspense(job_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a job.\n * @summary Retrieve Job\n * {@link /v1/jobs/:job_id}\n */\nexport function useRetrieveJobSuspense<\n TData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryData = ResponseConfig<RetrieveJobQueryResponse>,\n TQueryKey extends QueryKey = RetrieveJobSuspenseQueryKey\n>(\n job_id: RetrieveJobPathParams['job_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveJobQueryResponse>,\n ResponseErrorConfig<RetrieveJob422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveJobSuspenseQueryKey(job_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveJobSuspenseQueryOptions(\n job_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveJob422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListEmbeddingModelsQueryResponse } from '../../types/ListEmbeddingModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listEmbeddingModelsQueryKey = () =>\n [{ url: '/v1/models/embedding' }] as const;\n\nexport type ListEmbeddingModelsQueryKey = ReturnType<\n typeof listEmbeddingModelsQueryKey\n>;\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport async function listEmbeddingModels(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListEmbeddingModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({\n method: 'GET',\n url: `/v1/models/embedding`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listEmbeddingModelsQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listEmbeddingModelsQueryKey();\n return queryOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listEmbeddingModels(config);\n },\n });\n}\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport function useListEmbeddingModels<\n TData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryKey extends QueryKey = ListEmbeddingModelsQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listEmbeddingModelsQueryKey();\n\n const query = useQuery(\n {\n ...(listEmbeddingModelsQueryOptions(\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListEmbeddingModelsQueryResponse } from '../../types/ListEmbeddingModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listEmbeddingModelsSuspenseQueryKey = () =>\n [{ url: '/v1/models/embedding' }] as const;\n\nexport type ListEmbeddingModelsSuspenseQueryKey = ReturnType<\n typeof listEmbeddingModelsSuspenseQueryKey\n>;\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport async function listEmbeddingModelsSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListEmbeddingModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({\n method: 'GET',\n url: `/v1/models/embedding`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listEmbeddingModelsSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listEmbeddingModelsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listEmbeddingModelsSuspense(config);\n },\n });\n}\n\n/**\n * @summary List Embedding Backends\n * {@link /v1/models/embedding}\n */\nexport function useListEmbeddingModelsSuspense<\n TData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryData = ResponseConfig<ListEmbeddingModelsQueryResponse>,\n TQueryKey extends QueryKey = ListEmbeddingModelsSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListEmbeddingModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listEmbeddingModelsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listEmbeddingModelsSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListModelsQueryResponse } from '../../types/ListModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listModelsQueryKey = () => [{ url: '/v1/models/' }] as const;\n\nexport type ListModelsQueryKey = ReturnType<typeof listModelsQueryKey>;\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport async function listModels(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/models/`, ...requestConfig });\n return res;\n}\n\nexport function listModelsQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listModelsQueryKey();\n return queryOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listModels(config);\n },\n });\n}\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport function useListModels<\n TData = ResponseConfig<ListModelsQueryResponse>,\n TQueryData = ResponseConfig<ListModelsQueryResponse>,\n TQueryKey extends QueryKey = ListModelsQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listModelsQueryKey();\n\n const query = useQuery(\n {\n ...(listModelsQueryOptions(config) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type { ListModelsQueryResponse } from '../../types/ListModels.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listModelsSuspenseQueryKey = () =>\n [{ url: '/v1/models/' }] as const;\n\nexport type ListModelsSuspenseQueryKey = ReturnType<\n typeof listModelsSuspenseQueryKey\n>;\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport async function listModelsSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListModelsQueryResponse,\n ResponseErrorConfig<Error>,\n unknown\n >({ method: 'GET', url: `/v1/models/`, ...requestConfig });\n return res;\n}\n\nexport function listModelsSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listModelsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n ResponseConfig<ListModelsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listModelsSuspense(config);\n },\n });\n}\n\n/**\n * @summary List Llm Backends\n * {@link /v1/models/}\n */\nexport function useListModelsSuspense<\n TData = ResponseConfig<ListModelsQueryResponse>,\n TQueryData = ResponseConfig<ListModelsQueryResponse>,\n TQueryKey extends QueryKey = ListModelsSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListModelsQueryResponse>,\n ResponseErrorConfig<Error>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listModelsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listModelsSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<Error>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateProviderMutationRequest,\n CreateProviderMutationResponse,\n CreateProvider422,\n} from '../../types/CreateProvider.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createProviderMutationKey = () =>\n [{ url: '/v1/providers/' }] as const;\n\nexport type CreateProviderMutationKey = ReturnType<\n typeof createProviderMutationKey\n>;\n\n/**\n * @description Create a new custom provider\n * @summary Create Provider\n * {@link /v1/providers/}\n */\nexport async function createProvider(\n data: CreateProviderMutationRequest,\n config: Partial<RequestConfig<CreateProviderMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateProviderMutationResponse,\n ResponseErrorConfig<CreateProvider422>,\n CreateProviderMutationRequest\n >({\n method: 'POST',\n url: `/v1/providers/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new custom provider\n * @summary Create Provider\n * {@link /v1/providers/}\n */\nexport function useCreateProvider<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateProviderMutationResponse>,\n ResponseErrorConfig<CreateProvider422>,\n { data: CreateProviderMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateProviderMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createProviderMutationKey();\n\n return useMutation<\n ResponseConfig<CreateProviderMutationResponse>,\n ResponseErrorConfig<CreateProvider422>,\n { data: CreateProviderMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createProvider(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteProviderMutationResponse,\n DeleteProviderQueryParams,\n DeleteProvider422,\n} from '../../types/DeleteProvider.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteProviderMutationKey = () =>\n [{ url: '/v1/providers/' }] as const;\n\nexport type DeleteProviderMutationKey = ReturnType<\n typeof deleteProviderMutationKey\n>;\n\n/**\n * @description Delete an existing custom provider\n * @summary Delete Provider\n * {@link /v1/providers/}\n */\nexport async function deleteProvider(\n params: DeleteProviderQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteProviderMutationResponse,\n ResponseErrorConfig<DeleteProvider422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/providers/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete an existing custom provider\n * @summary Delete Provider\n * {@link /v1/providers/}\n */\nexport function useDeleteProvider<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteProviderMutationResponse>,\n ResponseErrorConfig<DeleteProvider422>,\n { params: DeleteProviderQueryParams },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteProviderMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteProviderMutationResponse>,\n ResponseErrorConfig<DeleteProvider422>,\n { params: DeleteProviderQueryParams },\n TContext\n >(\n {\n mutationFn: async ({ params }) => {\n return deleteProvider(params, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListProvidersQueryResponse,\n ListProvidersQueryParams,\n ListProviders422,\n} from '../../types/ListProviders.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listProvidersQueryKey = (params?: ListProvidersQueryParams) =>\n [{ url: '/v1/providers/' }, ...(params ? [params] : [])] as const;\n\nexport type ListProvidersQueryKey = ReturnType<typeof listProvidersQueryKey>;\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport async function listProviders(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListProvidersQueryResponse,\n ResponseErrorConfig<ListProviders422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/providers/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listProvidersQueryOptions(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listProvidersQueryKey(params);\n return queryOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n ResponseConfig<ListProvidersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listProviders(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport function useListProviders<\n TData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryKey extends QueryKey = ListProvidersQueryKey\n>(\n params?: ListProvidersQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listProvidersQueryKey(params);\n\n const query = useQuery(\n {\n ...(listProvidersQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListProviders422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListProvidersQueryResponse,\n ListProvidersQueryParams,\n ListProviders422,\n} from '../../types/ListProviders.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listProvidersSuspenseQueryKey = (\n params?: ListProvidersQueryParams\n) => [{ url: '/v1/providers/' }, ...(params ? [params] : [])] as const;\n\nexport type ListProvidersSuspenseQueryKey = ReturnType<\n typeof listProvidersSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport async function listProvidersSuspense(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListProvidersQueryResponse,\n ResponseErrorConfig<ListProviders422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/providers/`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listProvidersSuspenseQueryOptions(\n params?: ListProvidersQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listProvidersSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n ResponseConfig<ListProvidersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listProvidersSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all custom providers in the database\n * @summary List Providers\n * {@link /v1/providers/}\n */\nexport function useListProvidersSuspense<\n TData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryData = ResponseConfig<ListProvidersQueryResponse>,\n TQueryKey extends QueryKey = ListProvidersSuspenseQueryKey\n>(\n params?: ListProvidersQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListProvidersQueryResponse>,\n ResponseErrorConfig<ListProviders422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listProvidersSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listProvidersSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListProviders422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteRunMutationResponse,\n DeleteRunPathParams,\n DeleteRun422,\n} from '../../types/DeleteRun.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteRunMutationKey = () =>\n [{ url: '/v1/runs/{run_id}' }] as const;\n\nexport type DeleteRunMutationKey = ReturnType<typeof deleteRunMutationKey>;\n\n/**\n * @description Delete a run by its run_id.\n * @summary Delete Run\n * {@link /v1/runs/:run_id}\n */\nexport async function deleteRun(\n run_id: DeleteRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteRunMutationResponse,\n ResponseErrorConfig<DeleteRun422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/runs/${run_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a run by its run_id.\n * @summary Delete Run\n * {@link /v1/runs/:run_id}\n */\nexport function useDeleteRun<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteRunMutationResponse>,\n ResponseErrorConfig<DeleteRun422>,\n { run_id: DeleteRunPathParams['run_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteRunMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteRunMutationResponse>,\n ResponseErrorConfig<DeleteRun422>,\n { run_id: DeleteRunPathParams['run_id'] },\n TContext\n >(\n {\n mutationFn: async ({ run_id }) => {\n return deleteRun(run_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveRunsQueryResponse,\n ListActiveRunsQueryParams,\n ListActiveRuns422,\n} from '../../types/ListActiveRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listActiveRunsQueryKey = (params?: ListActiveRunsQueryParams) =>\n [{ url: '/v1/runs/active' }, ...(params ? [params] : [])] as const;\n\nexport type ListActiveRunsQueryKey = ReturnType<typeof listActiveRunsQueryKey>;\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport async function listActiveRuns(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveRunsQueryResponse,\n ResponseErrorConfig<ListActiveRuns422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/active`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveRunsQueryOptions(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveRunsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n ResponseConfig<ListActiveRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveRuns(params, config);\n },\n });\n}\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport function useListActiveRuns<\n TData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveRunsQueryKey\n>(\n params?: ListActiveRunsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listActiveRunsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listActiveRunsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListActiveRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListActiveRunsQueryResponse,\n ListActiveRunsQueryParams,\n ListActiveRuns422,\n} from '../../types/ListActiveRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listActiveRunsSuspenseQueryKey = (\n params?: ListActiveRunsQueryParams\n) => [{ url: '/v1/runs/active' }, ...(params ? [params] : [])] as const;\n\nexport type ListActiveRunsSuspenseQueryKey = ReturnType<\n typeof listActiveRunsSuspenseQueryKey\n>;\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport async function listActiveRunsSuspense(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListActiveRunsQueryResponse,\n ResponseErrorConfig<ListActiveRuns422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/active`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listActiveRunsSuspenseQueryOptions(\n params?: ListActiveRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listActiveRunsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n ResponseConfig<ListActiveRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listActiveRunsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all active runs.\n * @summary List Active Runs\n * {@link /v1/runs/active}\n */\nexport function useListActiveRunsSuspense<\n TData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryData = ResponseConfig<ListActiveRunsQueryResponse>,\n TQueryKey extends QueryKey = ListActiveRunsSuspenseQueryKey\n>(\n params?: ListActiveRunsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListActiveRunsQueryResponse>,\n ResponseErrorConfig<ListActiveRuns422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listActiveRunsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listActiveRunsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListActiveRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunMessagesQueryResponse,\n ListRunMessagesPathParams,\n ListRunMessagesQueryParams,\n ListRunMessages422,\n} from '../../types/ListRunMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listRunMessagesQueryKey = (\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/messages', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunMessagesQueryKey = ReturnType<\n typeof listRunMessagesQueryKey\n>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport async function listRunMessages(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunMessagesQueryResponse,\n ResponseErrorConfig<ListRunMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunMessagesQueryOptions(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunMessagesQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n ResponseConfig<ListRunMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunMessages(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport function useListRunMessages<\n TData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListRunMessagesQueryKey\n>(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunMessagesQueryKey(run_id, params);\n\n const query = useQuery(\n {\n ...(listRunMessagesQueryOptions(\n run_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListRunMessages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunMessagesQueryResponse,\n ListRunMessagesPathParams,\n ListRunMessagesQueryParams,\n ListRunMessages422,\n} from '../../types/ListRunMessages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listRunMessagesSuspenseQueryKey = (\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/messages', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunMessagesSuspenseQueryKey = ReturnType<\n typeof listRunMessagesSuspenseQueryKey\n>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport async function listRunMessagesSuspense(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunMessagesQueryResponse,\n ResponseErrorConfig<ListRunMessages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/messages`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunMessagesSuspenseQueryOptions(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunMessagesSuspenseQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n ResponseConfig<ListRunMessagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunMessagesSuspense(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of messages to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order. role: Filter by role (user/assistant/system/tool) return_message_object: Whether to return Message objects or LettaMessage objects user_id: ID of the user making the requestReturns: A list of messages associated with the run. Default is List[LettaMessage].\n * @summary List Run Messages\n * {@link /v1/runs/:run_id/messages}\n */\nexport function useListRunMessagesSuspense<\n TData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryData = ResponseConfig<ListRunMessagesQueryResponse>,\n TQueryKey extends QueryKey = ListRunMessagesSuspenseQueryKey\n>(\n run_id: ListRunMessagesPathParams['run_id'],\n params?: ListRunMessagesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListRunMessagesQueryResponse>,\n ResponseErrorConfig<ListRunMessages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunMessagesSuspenseQueryKey(run_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listRunMessagesSuspenseQueryOptions(\n run_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListRunMessages422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunsQueryResponse,\n ListRunsQueryParams,\n ListRuns422,\n} from '../../types/ListRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listRunsQueryKey = (params?: ListRunsQueryParams) =>\n [{ url: '/v1/runs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListRunsQueryKey = ReturnType<typeof listRunsQueryKey>;\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport async function listRuns(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunsQueryResponse,\n ResponseErrorConfig<ListRuns422>,\n unknown\n >({ method: 'GET', url: `/v1/runs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listRunsQueryOptions(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n ResponseConfig<ListRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRuns(params, config);\n },\n });\n}\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport function useListRuns<\n TData = ResponseConfig<ListRunsQueryResponse>,\n TQueryData = ResponseConfig<ListRunsQueryResponse>,\n TQueryKey extends QueryKey = ListRunsQueryKey\n>(\n params?: ListRunsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listRunsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listRunsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunsQueryResponse,\n ListRunsQueryParams,\n ListRuns422,\n} from '../../types/ListRuns.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listRunsSuspenseQueryKey = (params?: ListRunsQueryParams) =>\n [{ url: '/v1/runs/' }, ...(params ? [params] : [])] as const;\n\nexport type ListRunsSuspenseQueryKey = ReturnType<\n typeof listRunsSuspenseQueryKey\n>;\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport async function listRunsSuspense(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunsQueryResponse,\n ResponseErrorConfig<ListRuns422>,\n unknown\n >({ method: 'GET', url: `/v1/runs/`, params, ...requestConfig });\n return res;\n}\n\nexport function listRunsSuspenseQueryOptions(\n params?: ListRunsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n ResponseConfig<ListRunsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List all runs.\n * @summary List Runs\n * {@link /v1/runs/}\n */\nexport function useListRunsSuspense<\n TData = ResponseConfig<ListRunsQueryResponse>,\n TQueryData = ResponseConfig<ListRunsQueryResponse>,\n TQueryKey extends QueryKey = ListRunsSuspenseQueryKey\n>(\n params?: ListRunsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListRunsQueryResponse>,\n ResponseErrorConfig<ListRuns422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listRunsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listRunsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListRuns422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunStepsQueryResponse,\n ListRunStepsPathParams,\n ListRunStepsQueryParams,\n ListRunSteps422,\n} from '../../types/ListRunSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listRunStepsQueryKey = (\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/steps', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunStepsQueryKey = ReturnType<typeof listRunStepsQueryKey>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport async function listRunSteps(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunStepsQueryResponse,\n ResponseErrorConfig<ListRunSteps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/steps`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunStepsQueryOptions(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunStepsQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n ResponseConfig<ListRunStepsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunSteps(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport function useListRunSteps<\n TData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryKey extends QueryKey = ListRunStepsQueryKey\n>(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunStepsQueryKey(run_id, params);\n\n const query = useQuery(\n {\n ...(listRunStepsQueryOptions(\n run_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListRunSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListRunStepsQueryResponse,\n ListRunStepsPathParams,\n ListRunStepsQueryParams,\n ListRunSteps422,\n} from '../../types/ListRunSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listRunStepsSuspenseQueryKey = (\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams\n) =>\n [\n { url: '/v1/runs/:run_id/steps', params: { run_id: run_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListRunStepsSuspenseQueryKey = ReturnType<\n typeof listRunStepsSuspenseQueryKey\n>;\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport async function listRunStepsSuspense(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListRunStepsQueryResponse,\n ResponseErrorConfig<ListRunSteps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/steps`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listRunStepsSuspenseQueryOptions(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listRunStepsSuspenseQueryKey(run_id, params);\n return queryOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n ResponseConfig<ListRunStepsQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listRunStepsSuspense(run_id, params, config);\n },\n });\n}\n\n/**\n * @description Get messages associated with a run with filtering options.Args: run_id: ID of the run before: A cursor for use in pagination. `before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. after: A cursor for use in pagination. `after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list. limit: Maximum number of steps to return order: Sort order by the created_at timestamp of the objects. asc for ascending order and desc for descending order.Returns: A list of steps associated with the run.\n * @summary List Run Steps\n * {@link /v1/runs/:run_id/steps}\n */\nexport function useListRunStepsSuspense<\n TData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryData = ResponseConfig<ListRunStepsQueryResponse>,\n TQueryKey extends QueryKey = ListRunStepsSuspenseQueryKey\n>(\n run_id: ListRunStepsPathParams['run_id'],\n params?: ListRunStepsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListRunStepsQueryResponse>,\n ResponseErrorConfig<ListRunSteps422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listRunStepsSuspenseQueryKey(run_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listRunStepsSuspenseQueryOptions(\n run_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListRunSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunQueryResponse,\n RetrieveRunPathParams,\n RetrieveRun422,\n} from '../../types/RetrieveRun.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveRunQueryKey = (run_id: RetrieveRunPathParams['run_id']) =>\n [{ url: '/v1/runs/:run_id', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunQueryKey = ReturnType<typeof retrieveRunQueryKey>;\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport async function retrieveRun(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunQueryResponse,\n ResponseErrorConfig<RetrieveRun422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunQueryOptions(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n ResponseConfig<RetrieveRunQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRun(run_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport function useRetrieveRun<\n TData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunQueryKey\n>(\n run_id: RetrieveRunPathParams['run_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveRunQueryKey(run_id);\n\n const query = useQuery(\n {\n ...(retrieveRunQueryOptions(\n run_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveRun422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunQueryResponse,\n RetrieveRunPathParams,\n RetrieveRun422,\n} from '../../types/RetrieveRun.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveRunSuspenseQueryKey = (\n run_id: RetrieveRunPathParams['run_id']\n) => [{ url: '/v1/runs/:run_id', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunSuspenseQueryKey = ReturnType<\n typeof retrieveRunSuspenseQueryKey\n>;\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport async function retrieveRunSuspense(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunQueryResponse,\n ResponseErrorConfig<RetrieveRun422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunSuspenseQueryOptions(\n run_id: RetrieveRunPathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunSuspenseQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n ResponseConfig<RetrieveRunQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRunSuspense(run_id, config);\n },\n });\n}\n\n/**\n * @description Get the status of a run.\n * @summary Retrieve Run\n * {@link /v1/runs/:run_id}\n */\nexport function useRetrieveRunSuspense<\n TData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunSuspenseQueryKey\n>(\n run_id: RetrieveRunPathParams['run_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveRunQueryResponse>,\n ResponseErrorConfig<RetrieveRun422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveRunSuspenseQueryKey(run_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveRunSuspenseQueryOptions(\n run_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveRun422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunUsageQueryResponse,\n RetrieveRunUsagePathParams,\n RetrieveRunUsage422,\n} from '../../types/RetrieveRunUsage.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveRunUsageQueryKey = (\n run_id: RetrieveRunUsagePathParams['run_id']\n) => [{ url: '/v1/runs/:run_id/usage', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunUsageQueryKey = ReturnType<\n typeof retrieveRunUsageQueryKey\n>;\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport async function retrieveRunUsage(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunUsageQueryResponse,\n ResponseErrorConfig<RetrieveRunUsage422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/usage`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunUsageQueryOptions(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunUsageQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRunUsage(run_id, config);\n },\n });\n}\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport function useRetrieveRunUsage<\n TData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunUsageQueryKey\n>(\n run_id: RetrieveRunUsagePathParams['run_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveRunUsageQueryKey(run_id);\n\n const query = useQuery(\n {\n ...(retrieveRunUsageQueryOptions(\n run_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveRunUsage422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveRunUsageQueryResponse,\n RetrieveRunUsagePathParams,\n RetrieveRunUsage422,\n} from '../../types/RetrieveRunUsage.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveRunUsageSuspenseQueryKey = (\n run_id: RetrieveRunUsagePathParams['run_id']\n) => [{ url: '/v1/runs/:run_id/usage', params: { run_id: run_id } }] as const;\n\nexport type RetrieveRunUsageSuspenseQueryKey = ReturnType<\n typeof retrieveRunUsageSuspenseQueryKey\n>;\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport async function retrieveRunUsageSuspense(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveRunUsageQueryResponse,\n ResponseErrorConfig<RetrieveRunUsage422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/runs/${run_id}/usage`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveRunUsageSuspenseQueryOptions(\n run_id: RetrieveRunUsagePathParams['run_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveRunUsageSuspenseQueryKey(run_id);\n return queryOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n typeof queryKey\n >({\n enabled: !!run_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveRunUsageSuspense(run_id, config);\n },\n });\n}\n\n/**\n * @description Get usage statistics for a run.\n * @summary Retrieve Run Usage\n * {@link /v1/runs/:run_id/usage}\n */\nexport function useRetrieveRunUsageSuspense<\n TData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryData = ResponseConfig<RetrieveRunUsageQueryResponse>,\n TQueryKey extends QueryKey = RetrieveRunUsageSuspenseQueryKey\n>(\n run_id: RetrieveRunUsagePathParams['run_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveRunUsageQueryResponse>,\n ResponseErrorConfig<RetrieveRunUsage422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveRunUsageSuspenseQueryKey(run_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveRunUsageSuspenseQueryOptions(\n run_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<RetrieveRunUsage422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateSourceMutationRequest,\n CreateSourceMutationResponse,\n CreateSource422,\n} from '../../types/CreateSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createSourceMutationKey = () => [{ url: '/v1/sources/' }] as const;\n\nexport type CreateSourceMutationKey = ReturnType<\n typeof createSourceMutationKey\n>;\n\n/**\n * @description Create a new data source.\n * @summary Create Source\n * {@link /v1/sources/}\n */\nexport async function createSource(\n data: CreateSourceMutationRequest,\n config: Partial<RequestConfig<CreateSourceMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateSourceMutationResponse,\n ResponseErrorConfig<CreateSource422>,\n CreateSourceMutationRequest\n >({\n method: 'POST',\n url: `/v1/sources/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new data source.\n * @summary Create Source\n * {@link /v1/sources/}\n */\nexport function useCreateSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateSourceMutationResponse>,\n ResponseErrorConfig<CreateSource422>,\n { data: CreateSourceMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateSourceMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createSourceMutationKey();\n\n return useMutation<\n ResponseConfig<CreateSourceMutationResponse>,\n ResponseErrorConfig<CreateSource422>,\n { data: CreateSourceMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createSource(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteFileFromSourceMutationResponse,\n DeleteFileFromSourcePathParams,\n DeleteFileFromSource422,\n} from '../../types/DeleteFileFromSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteFileFromSourceMutationKey = () =>\n [{ url: '/v1/sources/{source_id}/{file_id}' }] as const;\n\nexport type DeleteFileFromSourceMutationKey = ReturnType<\n typeof deleteFileFromSourceMutationKey\n>;\n\n/**\n * @description Delete a data source.\n * @summary Delete File From Source\n * {@link /v1/sources/:source_id/:file_id}\n */\nexport async function deleteFileFromSource(\n source_id: DeleteFileFromSourcePathParams['source_id'],\n file_id: DeleteFileFromSourcePathParams['file_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteFileFromSourceMutationResponse,\n ResponseErrorConfig<DeleteFileFromSource422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/sources/${source_id}/${file_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a data source.\n * @summary Delete File From Source\n * {@link /v1/sources/:source_id/:file_id}\n */\nexport function useDeleteFileFromSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteFileFromSourceMutationResponse>,\n ResponseErrorConfig<DeleteFileFromSource422>,\n {\n source_id: DeleteFileFromSourcePathParams['source_id'];\n file_id: DeleteFileFromSourcePathParams['file_id'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteFileFromSourceMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteFileFromSourceMutationResponse>,\n ResponseErrorConfig<DeleteFileFromSource422>,\n {\n source_id: DeleteFileFromSourcePathParams['source_id'];\n file_id: DeleteFileFromSourcePathParams['file_id'];\n },\n TContext\n >(\n {\n mutationFn: async ({ source_id, file_id }) => {\n return deleteFileFromSource(source_id, file_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteSourceMutationResponse,\n DeleteSourcePathParams,\n DeleteSource422,\n} from '../../types/DeleteSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteSourceMutationKey = () =>\n [{ url: '/v1/sources/{source_id}' }] as const;\n\nexport type DeleteSourceMutationKey = ReturnType<\n typeof deleteSourceMutationKey\n>;\n\n/**\n * @description Delete a data source.\n * @summary Delete Source\n * {@link /v1/sources/:source_id}\n */\nexport async function deleteSource(\n source_id: DeleteSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteSourceMutationResponse,\n ResponseErrorConfig<DeleteSource422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/sources/${source_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a data source.\n * @summary Delete Source\n * {@link /v1/sources/:source_id}\n */\nexport function useDeleteSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteSourceMutationResponse>,\n ResponseErrorConfig<DeleteSource422>,\n { source_id: DeleteSourcePathParams['source_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteSourceMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteSourceMutationResponse>,\n ResponseErrorConfig<DeleteSource422>,\n { source_id: DeleteSourcePathParams['source_id'] },\n TContext\n >(\n {\n mutationFn: async ({ source_id }) => {\n return deleteSource(source_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n GetSourceIdByNameQueryResponse,\n GetSourceIdByNamePathParams,\n GetSourceIdByName422,\n} from '../../types/GetSourceIdByName.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const getSourceIdByNameQueryKey = (\n source_name: GetSourceIdByNamePathParams['source_name']\n) =>\n [\n {\n url: '/v1/sources/name/:source_name',\n params: { source_name: source_name },\n },\n ] as const;\n\nexport type GetSourceIdByNameQueryKey = ReturnType<\n typeof getSourceIdByNameQueryKey\n>;\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport async function getSourceIdByName(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n GetSourceIdByNameQueryResponse,\n ResponseErrorConfig<GetSourceIdByName422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/name/${source_name}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function getSourceIdByNameQueryOptions(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = getSourceIdByNameQueryKey(source_name);\n return queryOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return getSourceIdByName(source_name, config);\n },\n });\n}\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport function useGetSourceIdByName<\n TData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryKey extends QueryKey = GetSourceIdByNameQueryKey\n>(\n source_name: GetSourceIdByNamePathParams['source_name'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? getSourceIdByNameQueryKey(source_name);\n\n const query = useQuery(\n {\n ...(getSourceIdByNameQueryOptions(\n source_name,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<GetSourceIdByName422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n GetSourceIdByNameQueryResponse,\n GetSourceIdByNamePathParams,\n GetSourceIdByName422,\n} from '../../types/GetSourceIdByName.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const getSourceIdByNameSuspenseQueryKey = (\n source_name: GetSourceIdByNamePathParams['source_name']\n) =>\n [\n {\n url: '/v1/sources/name/:source_name',\n params: { source_name: source_name },\n },\n ] as const;\n\nexport type GetSourceIdByNameSuspenseQueryKey = ReturnType<\n typeof getSourceIdByNameSuspenseQueryKey\n>;\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport async function getSourceIdByNameSuspense(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n GetSourceIdByNameQueryResponse,\n ResponseErrorConfig<GetSourceIdByName422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/name/${source_name}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function getSourceIdByNameSuspenseQueryOptions(\n source_name: GetSourceIdByNamePathParams['source_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = getSourceIdByNameSuspenseQueryKey(source_name);\n return queryOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return getSourceIdByNameSuspense(source_name, config);\n },\n });\n}\n\n/**\n * @description Get a source by name\n * @summary Get Source Id By Name\n * {@link /v1/sources/name/:source_name}\n */\nexport function useGetSourceIdByNameSuspense<\n TData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryData = ResponseConfig<GetSourceIdByNameQueryResponse>,\n TQueryKey extends QueryKey = GetSourceIdByNameSuspenseQueryKey\n>(\n source_name: GetSourceIdByNamePathParams['source_name'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<GetSourceIdByNameQueryResponse>,\n ResponseErrorConfig<GetSourceIdByName422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? getSourceIdByNameSuspenseQueryKey(source_name);\n\n const query = useSuspenseQuery(\n {\n ...(getSourceIdByNameSuspenseQueryOptions(\n source_name,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<GetSourceIdByName422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourceFilesQueryResponse,\n ListSourceFilesPathParams,\n ListSourceFilesQueryParams,\n ListSourceFiles422,\n} from '../../types/ListSourceFiles.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listSourceFilesQueryKey = (\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams\n) =>\n [\n { url: '/v1/sources/:source_id/files', params: { source_id: source_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListSourceFilesQueryKey = ReturnType<\n typeof listSourceFilesQueryKey\n>;\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport async function listSourceFiles(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourceFilesQueryResponse,\n ResponseErrorConfig<ListSourceFiles422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/files`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourceFilesQueryOptions(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourceFilesQueryKey(source_id, params);\n return queryOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n ResponseConfig<ListSourceFilesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourceFiles(source_id, params, config);\n },\n });\n}\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport function useListSourceFiles<\n TData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryKey extends QueryKey = ListSourceFilesQueryKey\n>(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listSourceFilesQueryKey(source_id, params);\n\n const query = useQuery(\n {\n ...(listSourceFilesQueryOptions(\n source_id,\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSourceFiles422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourceFilesQueryResponse,\n ListSourceFilesPathParams,\n ListSourceFilesQueryParams,\n ListSourceFiles422,\n} from '../../types/ListSourceFiles.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listSourceFilesSuspenseQueryKey = (\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams\n) =>\n [\n { url: '/v1/sources/:source_id/files', params: { source_id: source_id } },\n ...(params ? [params] : []),\n ] as const;\n\nexport type ListSourceFilesSuspenseQueryKey = ReturnType<\n typeof listSourceFilesSuspenseQueryKey\n>;\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport async function listSourceFilesSuspense(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourceFilesQueryResponse,\n ResponseErrorConfig<ListSourceFiles422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/files`,\n params,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourceFilesSuspenseQueryOptions(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourceFilesSuspenseQueryKey(source_id, params);\n return queryOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n ResponseConfig<ListSourceFilesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourceFilesSuspense(source_id, params, config);\n },\n });\n}\n\n/**\n * @description List paginated files associated with a data source.\n * @summary List Source Files\n * {@link /v1/sources/:source_id/files}\n */\nexport function useListSourceFilesSuspense<\n TData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryData = ResponseConfig<ListSourceFilesQueryResponse>,\n TQueryKey extends QueryKey = ListSourceFilesSuspenseQueryKey\n>(\n source_id: ListSourceFilesPathParams['source_id'],\n params?: ListSourceFilesQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListSourceFilesQueryResponse>,\n ResponseErrorConfig<ListSourceFiles422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listSourceFilesSuspenseQueryKey(source_id, params);\n\n const query = useSuspenseQuery(\n {\n ...(listSourceFilesSuspenseQueryOptions(\n source_id,\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListSourceFiles422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcePassagesQueryResponse,\n ListSourcePassagesPathParams,\n ListSourcePassages422,\n} from '../../types/ListSourcePassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listSourcePassagesQueryKey = (\n source_id: ListSourcePassagesPathParams['source_id']\n) =>\n [\n {\n url: '/v1/sources/:source_id/passages',\n params: { source_id: source_id },\n },\n ] as const;\n\nexport type ListSourcePassagesQueryKey = ReturnType<\n typeof listSourcePassagesQueryKey\n>;\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport async function listSourcePassages(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcePassagesQueryResponse,\n ResponseErrorConfig<ListSourcePassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/passages`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourcePassagesQueryOptions(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcePassagesQueryKey(source_id);\n return queryOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n ResponseConfig<ListSourcePassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourcePassages(source_id, config);\n },\n });\n}\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport function useListSourcePassages<\n TData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcePassagesQueryKey\n>(\n source_id: ListSourcePassagesPathParams['source_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listSourcePassagesQueryKey(source_id);\n\n const query = useQuery(\n {\n ...(listSourcePassagesQueryOptions(\n source_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSourcePassages422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcePassagesQueryResponse,\n ListSourcePassagesPathParams,\n ListSourcePassages422,\n} from '../../types/ListSourcePassages.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listSourcePassagesSuspenseQueryKey = (\n source_id: ListSourcePassagesPathParams['source_id']\n) =>\n [\n {\n url: '/v1/sources/:source_id/passages',\n params: { source_id: source_id },\n },\n ] as const;\n\nexport type ListSourcePassagesSuspenseQueryKey = ReturnType<\n typeof listSourcePassagesSuspenseQueryKey\n>;\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport async function listSourcePassagesSuspense(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcePassagesQueryResponse,\n ResponseErrorConfig<ListSourcePassages422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}/passages`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listSourcePassagesSuspenseQueryOptions(\n source_id: ListSourcePassagesPathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcePassagesSuspenseQueryKey(source_id);\n return queryOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n ResponseConfig<ListSourcePassagesQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourcePassagesSuspense(source_id, config);\n },\n });\n}\n\n/**\n * @description List all passages associated with a data source.\n * @summary List Source Passages\n * {@link /v1/sources/:source_id/passages}\n */\nexport function useListSourcePassagesSuspense<\n TData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcePassagesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcePassagesSuspenseQueryKey\n>(\n source_id: ListSourcePassagesPathParams['source_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListSourcePassagesQueryResponse>,\n ResponseErrorConfig<ListSourcePassages422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listSourcePassagesSuspenseQueryKey(source_id);\n\n const query = useSuspenseQuery(\n {\n ...(listSourcePassagesSuspenseQueryOptions(\n source_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListSourcePassages422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcesQueryResponse,\n ListSources422,\n} from '../../types/ListSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listSourcesQueryKey = () => [{ url: '/v1/sources/' }] as const;\n\nexport type ListSourcesQueryKey = ReturnType<typeof listSourcesQueryKey>;\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport async function listSources(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcesQueryResponse,\n ResponseErrorConfig<ListSources422>,\n unknown\n >({ method: 'GET', url: `/v1/sources/`, ...requestConfig });\n return res;\n}\n\nexport function listSourcesQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcesQueryKey();\n return queryOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n ResponseConfig<ListSourcesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSources(config);\n },\n });\n}\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport function useListSources<\n TData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcesQueryKey\n>(\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listSourcesQueryKey();\n\n const query = useQuery(\n {\n ...(listSourcesQueryOptions(config) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSources422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListSourcesQueryResponse,\n ListSources422,\n} from '../../types/ListSources.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listSourcesSuspenseQueryKey = () =>\n [{ url: '/v1/sources/' }] as const;\n\nexport type ListSourcesSuspenseQueryKey = ReturnType<\n typeof listSourcesSuspenseQueryKey\n>;\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport async function listSourcesSuspense(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListSourcesQueryResponse,\n ResponseErrorConfig<ListSources422>,\n unknown\n >({ method: 'GET', url: `/v1/sources/`, ...requestConfig });\n return res;\n}\n\nexport function listSourcesSuspenseQueryOptions(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listSourcesSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n ResponseConfig<ListSourcesQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSourcesSuspense(config);\n },\n });\n}\n\n/**\n * @description List all data sources created by a user.\n * @summary List Sources\n * {@link /v1/sources/}\n */\nexport function useListSourcesSuspense<\n TData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryData = ResponseConfig<ListSourcesQueryResponse>,\n TQueryKey extends QueryKey = ListSourcesSuspenseQueryKey\n>(\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListSourcesQueryResponse>,\n ResponseErrorConfig<ListSources422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listSourcesSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listSourcesSuspenseQueryOptions(\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListSources422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveSourceQueryResponse,\n RetrieveSourcePathParams,\n RetrieveSource422,\n} from '../../types/RetrieveSource.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveSourceQueryKey = (\n source_id: RetrieveSourcePathParams['source_id']\n) =>\n [\n { url: '/v1/sources/:source_id', params: { source_id: source_id } },\n ] as const;\n\nexport type RetrieveSourceQueryKey = ReturnType<typeof retrieveSourceQueryKey>;\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport async function retrieveSource(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveSourceQueryResponse,\n ResponseErrorConfig<RetrieveSource422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveSourceQueryOptions(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveSourceQueryKey(source_id);\n return queryOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n ResponseConfig<RetrieveSourceQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveSource(source_id, config);\n },\n });\n}\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport function useRetrieveSource<\n TData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryKey extends QueryKey = RetrieveSourceQueryKey\n>(\n source_id: RetrieveSourcePathParams['source_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveSourceQueryKey(source_id);\n\n const query = useQuery(\n {\n ...(retrieveSourceQueryOptions(\n source_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveSource422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveSourceQueryResponse,\n RetrieveSourcePathParams,\n RetrieveSource422,\n} from '../../types/RetrieveSource.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveSourceSuspenseQueryKey = (\n source_id: RetrieveSourcePathParams['source_id']\n) =>\n [\n { url: '/v1/sources/:source_id', params: { source_id: source_id } },\n ] as const;\n\nexport type RetrieveSourceSuspenseQueryKey = ReturnType<\n typeof retrieveSourceSuspenseQueryKey\n>;\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport async function retrieveSourceSuspense(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveSourceQueryResponse,\n ResponseErrorConfig<RetrieveSource422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/sources/${source_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveSourceSuspenseQueryOptions(\n source_id: RetrieveSourcePathParams['source_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveSourceSuspenseQueryKey(source_id);\n return queryOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n ResponseConfig<RetrieveSourceQueryResponse>,\n typeof queryKey\n >({\n enabled: !!source_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveSourceSuspense(source_id, config);\n },\n });\n}\n\n/**\n * @description Get all sources\n * @summary Retrieve Source\n * {@link /v1/sources/:source_id}\n */\nexport function useRetrieveSourceSuspense<\n TData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryData = ResponseConfig<RetrieveSourceQueryResponse>,\n TQueryKey extends QueryKey = RetrieveSourceSuspenseQueryKey\n>(\n source_id: RetrieveSourcePathParams['source_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveSourceQueryResponse>,\n ResponseErrorConfig<RetrieveSource422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveSourceSuspenseQueryKey(source_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveSourceSuspenseQueryOptions(\n source_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveSource422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UploadFileToSourceMutationRequest,\n UploadFileToSourceMutationResponse,\n UploadFileToSourcePathParams,\n UploadFileToSource422,\n} from '../../types/UploadFileToSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const uploadFileToSourceMutationKey = () =>\n [{ url: '/v1/sources/{source_id}/upload' }] as const;\n\nexport type UploadFileToSourceMutationKey = ReturnType<\n typeof uploadFileToSourceMutationKey\n>;\n\n/**\n * @description Upload a file to a data source.\n * @summary Upload File To Source\n * {@link /v1/sources/:source_id/upload}\n */\nexport async function uploadFileToSource(\n source_id: UploadFileToSourcePathParams['source_id'],\n data: UploadFileToSourceMutationRequest,\n config: Partial<RequestConfig<UploadFileToSourceMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const formData = new FormData();\n if (data) {\n Object.keys(data).forEach((key) => {\n const value = data[key as keyof typeof data];\n if (\n typeof key === 'string' &&\n (typeof value === 'string' || (value as Blob) instanceof Blob)\n ) {\n formData.append(key, value as unknown as string);\n }\n });\n }\n const res = await request<\n UploadFileToSourceMutationResponse,\n ResponseErrorConfig<UploadFileToSource422>,\n UploadFileToSourceMutationRequest\n >({\n method: 'POST',\n url: `/v1/sources/${source_id}/upload`,\n data: formData,\n ...requestConfig,\n headers: {\n 'Content-Type': 'multipart/form-data',\n ...requestConfig.headers,\n },\n });\n return res;\n}\n\n/**\n * @description Upload a file to a data source.\n * @summary Upload File To Source\n * {@link /v1/sources/:source_id/upload}\n */\nexport function useUploadFileToSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UploadFileToSourceMutationResponse>,\n ResponseErrorConfig<UploadFileToSource422>,\n {\n source_id: UploadFileToSourcePathParams['source_id'];\n data: UploadFileToSourceMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UploadFileToSourceMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? uploadFileToSourceMutationKey();\n\n return useMutation<\n ResponseConfig<UploadFileToSourceMutationResponse>,\n ResponseErrorConfig<UploadFileToSource422>,\n {\n source_id: UploadFileToSourcePathParams['source_id'];\n data: UploadFileToSourceMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ source_id, data }) => {\n return uploadFileToSource(source_id, data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListStepsQueryResponse,\n ListStepsQueryParams,\n ListSteps422,\n} from '../../types/ListSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listStepsQueryKey = (params?: ListStepsQueryParams) =>\n [{ url: '/v1/steps' }, ...(params ? [params] : [])] as const;\n\nexport type ListStepsQueryKey = ReturnType<typeof listStepsQueryKey>;\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport async function listSteps(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListStepsQueryResponse,\n ResponseErrorConfig<ListSteps422>,\n unknown\n >({ method: 'GET', url: `/v1/steps`, params, ...requestConfig });\n return res;\n}\n\nexport function listStepsQueryOptions(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listStepsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n ResponseConfig<ListStepsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listSteps(params, config);\n },\n });\n}\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport function useListSteps<\n TData = ResponseConfig<ListStepsQueryResponse>,\n TQueryData = ResponseConfig<ListStepsQueryResponse>,\n TQueryKey extends QueryKey = ListStepsQueryKey\n>(\n params?: ListStepsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listStepsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listStepsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListStepsQueryResponse,\n ListStepsQueryParams,\n ListSteps422,\n} from '../../types/ListSteps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listStepsSuspenseQueryKey = (params?: ListStepsQueryParams) =>\n [{ url: '/v1/steps' }, ...(params ? [params] : [])] as const;\n\nexport type ListStepsSuspenseQueryKey = ReturnType<\n typeof listStepsSuspenseQueryKey\n>;\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport async function listStepsSuspense(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListStepsQueryResponse,\n ResponseErrorConfig<ListSteps422>,\n unknown\n >({ method: 'GET', url: `/v1/steps`, params, ...requestConfig });\n return res;\n}\n\nexport function listStepsSuspenseQueryOptions(\n params?: ListStepsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listStepsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n ResponseConfig<ListStepsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listStepsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description List steps with optional pagination and date filters.Dates should be provided in ISO 8601 format (e.g. 2025-01-29T15:01:19-08:00)\n * @summary List Steps\n * {@link /v1/steps}\n */\nexport function useListStepsSuspense<\n TData = ResponseConfig<ListStepsQueryResponse>,\n TQueryData = ResponseConfig<ListStepsQueryResponse>,\n TQueryKey extends QueryKey = ListStepsSuspenseQueryKey\n>(\n params?: ListStepsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListStepsQueryResponse>,\n ResponseErrorConfig<ListSteps422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listStepsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listStepsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListSteps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveStepQueryResponse,\n RetrieveStepPathParams,\n RetrieveStep422,\n} from '../../types/RetrieveStep.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveStepQueryKey = (\n step_id: RetrieveStepPathParams['step_id']\n) => [{ url: '/v1/steps/:step_id', params: { step_id: step_id } }] as const;\n\nexport type RetrieveStepQueryKey = ReturnType<typeof retrieveStepQueryKey>;\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport async function retrieveStep(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveStepQueryResponse,\n ResponseErrorConfig<RetrieveStep422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/steps/${step_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveStepQueryOptions(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveStepQueryKey(step_id);\n return queryOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n ResponseConfig<RetrieveStepQueryResponse>,\n typeof queryKey\n >({\n enabled: !!step_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveStep(step_id, config);\n },\n });\n}\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport function useRetrieveStep<\n TData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryKey extends QueryKey = RetrieveStepQueryKey\n>(\n step_id: RetrieveStepPathParams['step_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveStepQueryKey(step_id);\n\n const query = useQuery(\n {\n ...(retrieveStepQueryOptions(\n step_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveStep422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveStepQueryResponse,\n RetrieveStepPathParams,\n RetrieveStep422,\n} from '../../types/RetrieveStep.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveStepSuspenseQueryKey = (\n step_id: RetrieveStepPathParams['step_id']\n) => [{ url: '/v1/steps/:step_id', params: { step_id: step_id } }] as const;\n\nexport type RetrieveStepSuspenseQueryKey = ReturnType<\n typeof retrieveStepSuspenseQueryKey\n>;\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport async function retrieveStepSuspense(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveStepQueryResponse,\n ResponseErrorConfig<RetrieveStep422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/steps/${step_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveStepSuspenseQueryOptions(\n step_id: RetrieveStepPathParams['step_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveStepSuspenseQueryKey(step_id);\n return queryOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n ResponseConfig<RetrieveStepQueryResponse>,\n typeof queryKey\n >({\n enabled: !!step_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveStepSuspense(step_id, config);\n },\n });\n}\n\n/**\n * @description Get a step by ID.\n * @summary Retrieve Step\n * {@link /v1/steps/:step_id}\n */\nexport function useRetrieveStepSuspense<\n TData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryData = ResponseConfig<RetrieveStepQueryResponse>,\n TQueryKey extends QueryKey = RetrieveStepSuspenseQueryKey\n>(\n step_id: RetrieveStepPathParams['step_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveStepQueryResponse>,\n ResponseErrorConfig<RetrieveStep422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveStepSuspenseQueryKey(step_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveStepSuspenseQueryOptions(\n step_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveStep422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListTagsQueryResponse,\n ListTagsQueryParams,\n ListTags422,\n} from '../../types/ListTags.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listTagsQueryKey = (params?: ListTagsQueryParams) =>\n [{ url: '/v1/tags/' }, ...(params ? [params] : [])] as const;\n\nexport type ListTagsQueryKey = ReturnType<typeof listTagsQueryKey>;\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport async function listTags(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListTagsQueryResponse,\n ResponseErrorConfig<ListTags422>,\n unknown\n >({ method: 'GET', url: `/v1/tags/`, params, ...requestConfig });\n return res;\n}\n\nexport function listTagsQueryOptions(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listTagsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n ResponseConfig<ListTagsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listTags(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport function useListTags<\n TData = ResponseConfig<ListTagsQueryResponse>,\n TQueryData = ResponseConfig<ListTagsQueryResponse>,\n TQueryKey extends QueryKey = ListTagsQueryKey\n>(\n params?: ListTagsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listTagsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listTagsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListTags422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListTagsQueryResponse,\n ListTagsQueryParams,\n ListTags422,\n} from '../../types/ListTags.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listTagsSuspenseQueryKey = (params?: ListTagsQueryParams) =>\n [{ url: '/v1/tags/' }, ...(params ? [params] : [])] as const;\n\nexport type ListTagsSuspenseQueryKey = ReturnType<\n typeof listTagsSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport async function listTagsSuspense(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListTagsQueryResponse,\n ResponseErrorConfig<ListTags422>,\n unknown\n >({ method: 'GET', url: `/v1/tags/`, params, ...requestConfig });\n return res;\n}\n\nexport function listTagsSuspenseQueryOptions(\n params?: ListTagsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listTagsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n ResponseConfig<ListTagsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listTagsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tags in the database\n * @summary List Tags\n * {@link /v1/tags/}\n */\nexport function useListTagsSuspense<\n TData = ResponseConfig<ListTagsQueryResponse>,\n TQueryData = ResponseConfig<ListTagsQueryResponse>,\n TQueryKey extends QueryKey = ListTagsSuspenseQueryKey\n>(\n params?: ListTagsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListTagsQueryResponse>,\n ResponseErrorConfig<ListTags422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listTagsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listTagsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListTags422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n TemplatesCreateAgentsFromTemplateMutationRequest,\n TemplatesCreateAgentsFromTemplateMutationResponse,\n TemplatesCreateAgentsFromTemplatePathParams,\n} from '../../../types/templates/CreateAgentsFromTemplate.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const templatesCreateAgentsFromTemplateMutationKey = () =>\n [{ url: '/v1/templates/{project}/{template_version}/agents' }] as const;\n\nexport type TemplatesCreateAgentsFromTemplateMutationKey = ReturnType<\n typeof templatesCreateAgentsFromTemplateMutationKey\n>;\n\n/**\n * @description Creates an Agent or multiple Agents from a template\n * @summary Create agents from a template\n * {@link /v1/templates/:project/:template_version/agents}\n */\nexport async function templatesCreateAgentsFromTemplate(\n project: TemplatesCreateAgentsFromTemplatePathParams['project'],\n template_version: TemplatesCreateAgentsFromTemplatePathParams['template_version'],\n data?: TemplatesCreateAgentsFromTemplateMutationRequest,\n config: Partial<\n RequestConfig<TemplatesCreateAgentsFromTemplateMutationRequest>\n > & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n TemplatesCreateAgentsFromTemplateMutationResponse,\n ResponseErrorConfig<Error>,\n TemplatesCreateAgentsFromTemplateMutationRequest\n >({\n method: 'POST',\n url: `/v1/templates/${project}/${template_version}/agents`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Creates an Agent or multiple Agents from a template\n * @summary Create agents from a template\n * {@link /v1/templates/:project/:template_version/agents}\n */\nexport function useTemplatesCreateAgentsFromTemplate<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<TemplatesCreateAgentsFromTemplateMutationResponse>,\n ResponseErrorConfig<Error>,\n {\n project: TemplatesCreateAgentsFromTemplatePathParams['project'];\n template_version: TemplatesCreateAgentsFromTemplatePathParams['template_version'];\n data?: TemplatesCreateAgentsFromTemplateMutationRequest;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<TemplatesCreateAgentsFromTemplateMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ??\n templatesCreateAgentsFromTemplateMutationKey();\n\n return useMutation<\n ResponseConfig<TemplatesCreateAgentsFromTemplateMutationResponse>,\n ResponseErrorConfig<Error>,\n {\n project: TemplatesCreateAgentsFromTemplatePathParams['project'];\n template_version: TemplatesCreateAgentsFromTemplatePathParams['template_version'];\n data?: TemplatesCreateAgentsFromTemplateMutationRequest;\n },\n TContext\n >(\n {\n mutationFn: async ({ project, template_version, data }) => {\n return templatesCreateAgentsFromTemplate(\n project,\n template_version,\n data,\n config\n );\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddBaseToolsMutationResponse,\n AddBaseTools422,\n} from '../../types/AddBaseTools.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addBaseToolsMutationKey = () =>\n [{ url: '/v1/tools/add-base-tools' }] as const;\n\nexport type AddBaseToolsMutationKey = ReturnType<\n typeof addBaseToolsMutationKey\n>;\n\n/**\n * @description Upsert base tools\n * @summary Upsert Base Tools\n * {@link /v1/tools/add-base-tools}\n */\nexport async function addBaseTools(\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddBaseToolsMutationResponse,\n ResponseErrorConfig<AddBaseTools422>,\n unknown\n >({\n method: 'POST',\n url: `/v1/tools/add-base-tools`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Upsert base tools\n * @summary Upsert Base Tools\n * {@link /v1/tools/add-base-tools}\n */\nexport function useAddBaseTools<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddBaseToolsMutationResponse>,\n ResponseErrorConfig<AddBaseTools422>,\n void,\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? addBaseToolsMutationKey();\n\n return useMutation<\n ResponseConfig<AddBaseToolsMutationResponse>,\n ResponseErrorConfig<AddBaseTools422>,\n void,\n TContext\n >(\n {\n mutationFn: async () => {\n return addBaseTools(config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddComposioToolMutationResponse,\n AddComposioToolPathParams,\n AddComposioTool422,\n} from '../../types/AddComposioTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addComposioToolMutationKey = () =>\n [{ url: '/v1/tools/composio/{composio_action_name}' }] as const;\n\nexport type AddComposioToolMutationKey = ReturnType<\n typeof addComposioToolMutationKey\n>;\n\n/**\n * @description Add a new Composio tool by action name (Composio refers to each tool as an `Action`)\n * @summary Add Composio Tool\n * {@link /v1/tools/composio/:composio_action_name}\n */\nexport async function addComposioTool(\n composio_action_name: AddComposioToolPathParams['composio_action_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddComposioToolMutationResponse,\n ResponseErrorConfig<AddComposioTool422>,\n unknown\n >({\n method: 'POST',\n url: `/v1/tools/composio/${composio_action_name}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Add a new Composio tool by action name (Composio refers to each tool as an `Action`)\n * @summary Add Composio Tool\n * {@link /v1/tools/composio/:composio_action_name}\n */\nexport function useAddComposioTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddComposioToolMutationResponse>,\n ResponseErrorConfig<AddComposioTool422>,\n {\n composio_action_name: AddComposioToolPathParams['composio_action_name'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? addComposioToolMutationKey();\n\n return useMutation<\n ResponseConfig<AddComposioToolMutationResponse>,\n ResponseErrorConfig<AddComposioTool422>,\n { composio_action_name: AddComposioToolPathParams['composio_action_name'] },\n TContext\n >(\n {\n mutationFn: async ({ composio_action_name }) => {\n return addComposioTool(composio_action_name, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddMcpServerMutationRequest,\n AddMcpServerMutationResponse,\n AddMcpServer422,\n} from '../../types/AddMcpServer.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addMcpServerMutationKey = () =>\n [{ url: '/v1/tools/mcp/servers' }] as const;\n\nexport type AddMcpServerMutationKey = ReturnType<\n typeof addMcpServerMutationKey\n>;\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Add Mcp Server To Config\n * {@link /v1/tools/mcp/servers}\n */\nexport async function addMcpServer(\n data?: AddMcpServerMutationRequest,\n config: Partial<RequestConfig<AddMcpServerMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddMcpServerMutationResponse,\n ResponseErrorConfig<AddMcpServer422>,\n AddMcpServerMutationRequest\n >({\n method: 'PUT',\n url: `/v1/tools/mcp/servers`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Add Mcp Server To Config\n * {@link /v1/tools/mcp/servers}\n */\nexport function useAddMcpServer<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddMcpServerMutationResponse>,\n ResponseErrorConfig<AddMcpServer422>,\n { data?: AddMcpServerMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<AddMcpServerMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? addMcpServerMutationKey();\n\n return useMutation<\n ResponseConfig<AddMcpServerMutationResponse>,\n ResponseErrorConfig<AddMcpServer422>,\n { data?: AddMcpServerMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return addMcpServer(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n AddMcpToolMutationResponse,\n AddMcpToolPathParams,\n AddMcpTool422,\n} from '../../types/AddMcpTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const addMcpToolMutationKey = () =>\n [{ url: '/v1/tools/mcp/servers/{mcp_server_name}/{mcp_tool_name}' }] as const;\n\nexport type AddMcpToolMutationKey = ReturnType<typeof addMcpToolMutationKey>;\n\n/**\n * @description Register a new MCP tool as a Letta server by MCP server + tool name\n * @summary Add Mcp Tool\n * {@link /v1/tools/mcp/servers/:mcp_server_name/:mcp_tool_name}\n */\nexport async function addMcpTool(\n mcp_server_name: AddMcpToolPathParams['mcp_server_name'],\n mcp_tool_name: AddMcpToolPathParams['mcp_tool_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n AddMcpToolMutationResponse,\n ResponseErrorConfig<AddMcpTool422>,\n unknown\n >({\n method: 'POST',\n url: `/v1/tools/mcp/servers/${mcp_server_name}/${mcp_tool_name}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Register a new MCP tool as a Letta server by MCP server + tool name\n * @summary Add Mcp Tool\n * {@link /v1/tools/mcp/servers/:mcp_server_name/:mcp_tool_name}\n */\nexport function useAddMcpTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<AddMcpToolMutationResponse>,\n ResponseErrorConfig<AddMcpTool422>,\n {\n mcp_server_name: AddMcpToolPathParams['mcp_server_name'];\n mcp_tool_name: AddMcpToolPathParams['mcp_tool_name'];\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? addMcpToolMutationKey();\n\n return useMutation<\n ResponseConfig<AddMcpToolMutationResponse>,\n ResponseErrorConfig<AddMcpTool422>,\n {\n mcp_server_name: AddMcpToolPathParams['mcp_server_name'];\n mcp_tool_name: AddMcpToolPathParams['mcp_tool_name'];\n },\n TContext\n >(\n {\n mutationFn: async ({ mcp_server_name, mcp_tool_name }) => {\n return addMcpTool(mcp_server_name, mcp_tool_name, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateToolMutationRequest,\n CreateToolMutationResponse,\n CreateTool422,\n} from '../../types/CreateTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createToolMutationKey = () => [{ url: '/v1/tools/' }] as const;\n\nexport type CreateToolMutationKey = ReturnType<typeof createToolMutationKey>;\n\n/**\n * @description Create a new tool\n * @summary Create Tool\n * {@link /v1/tools/}\n */\nexport async function createTool(\n data: CreateToolMutationRequest,\n config: Partial<RequestConfig<CreateToolMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateToolMutationResponse,\n ResponseErrorConfig<CreateTool422>,\n CreateToolMutationRequest\n >({\n method: 'POST',\n url: `/v1/tools/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create a new tool\n * @summary Create Tool\n * {@link /v1/tools/}\n */\nexport function useCreateTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateToolMutationResponse>,\n ResponseErrorConfig<CreateTool422>,\n { data: CreateToolMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<CreateToolMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? createToolMutationKey();\n\n return useMutation<\n ResponseConfig<CreateToolMutationResponse>,\n ResponseErrorConfig<CreateTool422>,\n { data: CreateToolMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return createTool(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteMcpServerMutationResponse,\n DeleteMcpServerPathParams,\n DeleteMcpServer422,\n} from '../../types/DeleteMcpServer.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteMcpServerMutationKey = () =>\n [{ url: '/v1/tools/mcp/servers/{mcp_server_name}' }] as const;\n\nexport type DeleteMcpServerMutationKey = ReturnType<\n typeof deleteMcpServerMutationKey\n>;\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Delete Mcp Server From Config\n * {@link /v1/tools/mcp/servers/:mcp_server_name}\n */\nexport async function deleteMcpServer(\n mcp_server_name: DeleteMcpServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteMcpServerMutationResponse,\n ResponseErrorConfig<DeleteMcpServer422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/tools/mcp/servers/${mcp_server_name}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Add a new MCP server to the Letta MCP server config\n * @summary Delete Mcp Server From Config\n * {@link /v1/tools/mcp/servers/:mcp_server_name}\n */\nexport function useDeleteMcpServer<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteMcpServerMutationResponse>,\n ResponseErrorConfig<DeleteMcpServer422>,\n { mcp_server_name: DeleteMcpServerPathParams['mcp_server_name'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? deleteMcpServerMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteMcpServerMutationResponse>,\n ResponseErrorConfig<DeleteMcpServer422>,\n { mcp_server_name: DeleteMcpServerPathParams['mcp_server_name'] },\n TContext\n >(\n {\n mutationFn: async ({ mcp_server_name }) => {\n return deleteMcpServer(mcp_server_name, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n DeleteToolMutationResponse,\n DeleteToolPathParams,\n DeleteTool422,\n} from '../../types/DeleteTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const deleteToolMutationKey = () =>\n [{ url: '/v1/tools/{tool_id}' }] as const;\n\nexport type DeleteToolMutationKey = ReturnType<typeof deleteToolMutationKey>;\n\n/**\n * @description Delete a tool by name\n * @summary Delete Tool\n * {@link /v1/tools/:tool_id}\n */\nexport async function deleteTool(\n tool_id: DeleteToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n DeleteToolMutationResponse,\n ResponseErrorConfig<DeleteTool422>,\n unknown\n >({\n method: 'DELETE',\n url: `/v1/tools/${tool_id}`,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Delete a tool by name\n * @summary Delete Tool\n * {@link /v1/tools/:tool_id}\n */\nexport function useDeleteTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<DeleteToolMutationResponse>,\n ResponseErrorConfig<DeleteTool422>,\n { tool_id: DeleteToolPathParams['tool_id'] },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? deleteToolMutationKey();\n\n return useMutation<\n ResponseConfig<DeleteToolMutationResponse>,\n ResponseErrorConfig<DeleteTool422>,\n { tool_id: DeleteToolPathParams['tool_id'] },\n TContext\n >(\n {\n mutationFn: async ({ tool_id }) => {\n return deleteTool(tool_id, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioActionsByAppQueryResponse,\n ListComposioActionsByAppPathParams,\n ListComposioActionsByApp422,\n} from '../../types/ListComposioActionsByApp.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listComposioActionsByAppQueryKey = (\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name']\n) =>\n [\n {\n url: '/v1/tools/composio/apps/:composio_app_name/actions',\n params: { composio_app_name: composio_app_name },\n },\n ] as const;\n\nexport type ListComposioActionsByAppQueryKey = ReturnType<\n typeof listComposioActionsByAppQueryKey\n>;\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport async function listComposioActionsByApp(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioActionsByAppQueryResponse,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps/${composio_app_name}/actions`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listComposioActionsByAppQueryOptions(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioActionsByAppQueryKey(composio_app_name);\n return queryOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n typeof queryKey\n >({\n enabled: !!composio_app_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioActionsByApp(composio_app_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport function useListComposioActionsByApp<\n TData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryKey extends QueryKey = ListComposioActionsByAppQueryKey\n>(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listComposioActionsByAppQueryKey(composio_app_name);\n\n const query = useQuery(\n {\n ...(listComposioActionsByAppQueryOptions(\n composio_app_name,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<\n TData,\n ResponseErrorConfig<ListComposioActionsByApp422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioActionsByAppQueryResponse,\n ListComposioActionsByAppPathParams,\n ListComposioActionsByApp422,\n} from '../../types/ListComposioActionsByApp.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listComposioActionsByAppSuspenseQueryKey = (\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name']\n) =>\n [\n {\n url: '/v1/tools/composio/apps/:composio_app_name/actions',\n params: { composio_app_name: composio_app_name },\n },\n ] as const;\n\nexport type ListComposioActionsByAppSuspenseQueryKey = ReturnType<\n typeof listComposioActionsByAppSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport async function listComposioActionsByAppSuspense(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioActionsByAppQueryResponse,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps/${composio_app_name}/actions`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listComposioActionsByAppSuspenseQueryOptions(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioActionsByAppSuspenseQueryKey(composio_app_name);\n return queryOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n typeof queryKey\n >({\n enabled: !!composio_app_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioActionsByAppSuspense(composio_app_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio actions for a specific app\n * @summary List Composio Actions By App\n * {@link /v1/tools/composio/apps/:composio_app_name/actions}\n */\nexport function useListComposioActionsByAppSuspense<\n TData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryData = ResponseConfig<ListComposioActionsByAppQueryResponse>,\n TQueryKey extends QueryKey = ListComposioActionsByAppSuspenseQueryKey\n>(\n composio_app_name: ListComposioActionsByAppPathParams['composio_app_name'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListComposioActionsByAppQueryResponse>,\n ResponseErrorConfig<ListComposioActionsByApp422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listComposioActionsByAppSuspenseQueryKey(composio_app_name);\n\n const query = useSuspenseQuery(\n {\n ...(listComposioActionsByAppSuspenseQueryOptions(\n composio_app_name,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListComposioActionsByApp422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioAppsQueryResponse,\n ListComposioAppsHeaderParams,\n ListComposioApps422,\n} from '../../types/ListComposioApps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listComposioAppsQueryKey = () =>\n [{ url: '/v1/tools/composio/apps' }] as const;\n\nexport type ListComposioAppsQueryKey = ReturnType<\n typeof listComposioAppsQueryKey\n>;\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport async function listComposioApps(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioAppsQueryResponse,\n ResponseErrorConfig<ListComposioApps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listComposioAppsQueryOptions(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioAppsQueryKey();\n return queryOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n ResponseConfig<ListComposioAppsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioApps(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport function useListComposioApps<\n TData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryKey extends QueryKey = ListComposioAppsQueryKey\n>(\n headers?: ListComposioAppsHeaderParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listComposioAppsQueryKey();\n\n const query = useQuery(\n {\n ...(listComposioAppsQueryOptions(\n headers,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListComposioApps422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListComposioAppsQueryResponse,\n ListComposioAppsHeaderParams,\n ListComposioApps422,\n} from '../../types/ListComposioApps.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listComposioAppsSuspenseQueryKey = () =>\n [{ url: '/v1/tools/composio/apps' }] as const;\n\nexport type ListComposioAppsSuspenseQueryKey = ReturnType<\n typeof listComposioAppsSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport async function listComposioAppsSuspense(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListComposioAppsQueryResponse,\n ResponseErrorConfig<ListComposioApps422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/composio/apps`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listComposioAppsSuspenseQueryOptions(\n headers?: ListComposioAppsHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listComposioAppsSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n ResponseConfig<ListComposioAppsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listComposioAppsSuspense(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all Composio apps\n * @summary List Composio Apps\n * {@link /v1/tools/composio/apps}\n */\nexport function useListComposioAppsSuspense<\n TData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryData = ResponseConfig<ListComposioAppsQueryResponse>,\n TQueryKey extends QueryKey = ListComposioAppsSuspenseQueryKey\n>(\n headers?: ListComposioAppsHeaderParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListComposioAppsQueryResponse>,\n ResponseErrorConfig<ListComposioApps422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listComposioAppsSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listComposioAppsSuspenseQueryOptions(\n headers,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListComposioApps422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpServersQueryResponse,\n ListMcpServersHeaderParams,\n ListMcpServers422,\n} from '../../types/ListMcpServers.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listMcpServersQueryKey = () =>\n [{ url: '/v1/tools/mcp/servers' }] as const;\n\nexport type ListMcpServersQueryKey = ReturnType<typeof listMcpServersQueryKey>;\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport async function listMcpServers(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpServersQueryResponse,\n ResponseErrorConfig<ListMcpServers422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listMcpServersQueryOptions(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpServersQueryKey();\n return queryOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n ResponseConfig<ListMcpServersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpServers(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport function useListMcpServers<\n TData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryKey extends QueryKey = ListMcpServersQueryKey\n>(\n headers?: ListMcpServersHeaderParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listMcpServersQueryKey();\n\n const query = useQuery(\n {\n ...(listMcpServersQueryOptions(\n headers,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListMcpServers422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpServersQueryResponse,\n ListMcpServersHeaderParams,\n ListMcpServers422,\n} from '../../types/ListMcpServers.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listMcpServersSuspenseQueryKey = () =>\n [{ url: '/v1/tools/mcp/servers' }] as const;\n\nexport type ListMcpServersSuspenseQueryKey = ReturnType<\n typeof listMcpServersSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport async function listMcpServersSuspense(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpServersQueryResponse,\n ResponseErrorConfig<ListMcpServers422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers`,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\nexport function listMcpServersSuspenseQueryOptions(\n headers?: ListMcpServersHeaderParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpServersSuspenseQueryKey();\n return queryOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n ResponseConfig<ListMcpServersQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpServersSuspense(headers, config);\n },\n });\n}\n\n/**\n * @description Get a list of all configured MCP servers\n * @summary List Mcp Servers\n * {@link /v1/tools/mcp/servers}\n */\nexport function useListMcpServersSuspense<\n TData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryData = ResponseConfig<ListMcpServersQueryResponse>,\n TQueryKey extends QueryKey = ListMcpServersSuspenseQueryKey\n>(\n headers?: ListMcpServersHeaderParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListMcpServersQueryResponse>,\n ResponseErrorConfig<ListMcpServers422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listMcpServersSuspenseQueryKey();\n\n const query = useSuspenseQuery(\n {\n ...(listMcpServersSuspenseQueryOptions(\n headers,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListMcpServers422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpToolsByServerQueryResponse,\n ListMcpToolsByServerPathParams,\n ListMcpToolsByServer422,\n} from '../../types/ListMcpToolsByServer.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listMcpToolsByServerQueryKey = (\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name']\n) =>\n [\n {\n url: '/v1/tools/mcp/servers/:mcp_server_name/tools',\n params: { mcp_server_name: mcp_server_name },\n },\n ] as const;\n\nexport type ListMcpToolsByServerQueryKey = ReturnType<\n typeof listMcpToolsByServerQueryKey\n>;\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport async function listMcpToolsByServer(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpToolsByServerQueryResponse,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers/${mcp_server_name}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMcpToolsByServerQueryOptions(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpToolsByServerQueryKey(mcp_server_name);\n return queryOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n typeof queryKey\n >({\n enabled: !!mcp_server_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpToolsByServer(mcp_server_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport function useListMcpToolsByServer<\n TData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryKey extends QueryKey = ListMcpToolsByServerQueryKey\n>(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? listMcpToolsByServerQueryKey(mcp_server_name);\n\n const query = useQuery(\n {\n ...(listMcpToolsByServerQueryOptions(\n mcp_server_name,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListMcpToolsByServer422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListMcpToolsByServerQueryResponse,\n ListMcpToolsByServerPathParams,\n ListMcpToolsByServer422,\n} from '../../types/ListMcpToolsByServer.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listMcpToolsByServerSuspenseQueryKey = (\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name']\n) =>\n [\n {\n url: '/v1/tools/mcp/servers/:mcp_server_name/tools',\n params: { mcp_server_name: mcp_server_name },\n },\n ] as const;\n\nexport type ListMcpToolsByServerSuspenseQueryKey = ReturnType<\n typeof listMcpToolsByServerSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport async function listMcpToolsByServerSuspense(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListMcpToolsByServerQueryResponse,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/mcp/servers/${mcp_server_name}/tools`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function listMcpToolsByServerSuspenseQueryOptions(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listMcpToolsByServerSuspenseQueryKey(mcp_server_name);\n return queryOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n typeof queryKey\n >({\n enabled: !!mcp_server_name,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listMcpToolsByServerSuspense(mcp_server_name, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools for a specific MCP server\n * @summary List Mcp Tools By Server\n * {@link /v1/tools/mcp/servers/:mcp_server_name/tools}\n */\nexport function useListMcpToolsByServerSuspense<\n TData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryData = ResponseConfig<ListMcpToolsByServerQueryResponse>,\n TQueryKey extends QueryKey = ListMcpToolsByServerSuspenseQueryKey\n>(\n mcp_server_name: ListMcpToolsByServerPathParams['mcp_server_name'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListMcpToolsByServerQueryResponse>,\n ResponseErrorConfig<ListMcpToolsByServer422>,\n TData,\n TQueryKey\n >\n > & { client?: QueryClient };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ??\n listMcpToolsByServerSuspenseQueryKey(mcp_server_name);\n\n const query = useSuspenseQuery(\n {\n ...(listMcpToolsByServerSuspenseQueryOptions(\n mcp_server_name,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<\n TData,\n ResponseErrorConfig<ListMcpToolsByServer422>\n > & { queryKey: TQueryKey };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListToolsQueryResponse,\n ListToolsQueryParams,\n ListTools422,\n} from '../../types/ListTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const listToolsQueryKey = (params?: ListToolsQueryParams) =>\n [{ url: '/v1/tools/' }, ...(params ? [params] : [])] as const;\n\nexport type ListToolsQueryKey = ReturnType<typeof listToolsQueryKey>;\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport async function listTools(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListToolsQueryResponse,\n ResponseErrorConfig<ListTools422>,\n unknown\n >({ method: 'GET', url: `/v1/tools/`, params, ...requestConfig });\n return res;\n}\n\nexport function listToolsQueryOptions(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listToolsQueryKey(params);\n return queryOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n ResponseConfig<ListToolsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listTools(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport function useListTools<\n TData = ResponseConfig<ListToolsQueryResponse>,\n TQueryData = ResponseConfig<ListToolsQueryResponse>,\n TQueryKey extends QueryKey = ListToolsQueryKey\n>(\n params?: ListToolsQueryParams,\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listToolsQueryKey(params);\n\n const query = useQuery(\n {\n ...(listToolsQueryOptions(\n params,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<ListTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n ListToolsQueryResponse,\n ListToolsQueryParams,\n ListTools422,\n} from '../../types/ListTools.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const listToolsSuspenseQueryKey = (params?: ListToolsQueryParams) =>\n [{ url: '/v1/tools/' }, ...(params ? [params] : [])] as const;\n\nexport type ListToolsSuspenseQueryKey = ReturnType<\n typeof listToolsSuspenseQueryKey\n>;\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport async function listToolsSuspense(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n ListToolsQueryResponse,\n ResponseErrorConfig<ListTools422>,\n unknown\n >({ method: 'GET', url: `/v1/tools/`, params, ...requestConfig });\n return res;\n}\n\nexport function listToolsSuspenseQueryOptions(\n params?: ListToolsQueryParams,\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = listToolsSuspenseQueryKey(params);\n return queryOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n ResponseConfig<ListToolsQueryResponse>,\n typeof queryKey\n >({\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return listToolsSuspense(params, config);\n },\n });\n}\n\n/**\n * @description Get a list of all tools available to agents belonging to the org of the user\n * @summary List Tools\n * {@link /v1/tools/}\n */\nexport function useListToolsSuspense<\n TData = ResponseConfig<ListToolsQueryResponse>,\n TQueryData = ResponseConfig<ListToolsQueryResponse>,\n TQueryKey extends QueryKey = ListToolsSuspenseQueryKey\n>(\n params?: ListToolsQueryParams,\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<ListToolsQueryResponse>,\n ResponseErrorConfig<ListTools422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? listToolsSuspenseQueryKey(params);\n\n const query = useSuspenseQuery(\n {\n ...(listToolsSuspenseQueryOptions(\n params,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<ListTools422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveToolQueryResponse,\n RetrieveToolPathParams,\n RetrieveTool422,\n} from '../../types/RetrieveTool.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n QueryObserverOptions,\n UseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useQuery } from '@tanstack/react-query';\n\nexport const retrieveToolQueryKey = (\n tool_id: RetrieveToolPathParams['tool_id']\n) => [{ url: '/v1/tools/:tool_id', params: { tool_id: tool_id } }] as const;\n\nexport type RetrieveToolQueryKey = ReturnType<typeof retrieveToolQueryKey>;\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport async function retrieveTool(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveToolQueryResponse,\n ResponseErrorConfig<RetrieveTool422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/${tool_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveToolQueryOptions(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveToolQueryKey(tool_id);\n return queryOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n ResponseConfig<RetrieveToolQueryResponse>,\n typeof queryKey\n >({\n enabled: !!tool_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveTool(tool_id, config);\n },\n });\n}\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport function useRetrieveTool<\n TData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryKey extends QueryKey = RetrieveToolQueryKey\n>(\n tool_id: RetrieveToolPathParams['tool_id'],\n options: {\n query?: Partial<\n QueryObserverOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n TData,\n TQueryData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey = queryOptions?.queryKey ?? retrieveToolQueryKey(tool_id);\n\n const query = useQuery(\n {\n ...(retrieveToolQueryOptions(\n tool_id,\n config\n ) as unknown as QueryObserverOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<QueryObserverOptions, 'queryKey'>),\n },\n queryClient\n ) as UseQueryResult<TData, ResponseErrorConfig<RetrieveTool422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RetrieveToolQueryResponse,\n RetrieveToolPathParams,\n RetrieveTool422,\n} from '../../types/RetrieveTool.ts';\nimport type {\n RequestConfig,\n ResponseErrorConfig,\n ResponseConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type {\n QueryKey,\n QueryClient,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from '@tanstack/react-query';\nimport { queryOptions, useSuspenseQuery } from '@tanstack/react-query';\n\nexport const retrieveToolSuspenseQueryKey = (\n tool_id: RetrieveToolPathParams['tool_id']\n) => [{ url: '/v1/tools/:tool_id', params: { tool_id: tool_id } }] as const;\n\nexport type RetrieveToolSuspenseQueryKey = ReturnType<\n typeof retrieveToolSuspenseQueryKey\n>;\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport async function retrieveToolSuspense(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RetrieveToolQueryResponse,\n ResponseErrorConfig<RetrieveTool422>,\n unknown\n >({\n method: 'GET',\n url: `/v1/tools/${tool_id}`,\n ...requestConfig,\n });\n return res;\n}\n\nexport function retrieveToolSuspenseQueryOptions(\n tool_id: RetrieveToolPathParams['tool_id'],\n config: Partial<RequestConfig> & { client?: typeof client } = {}\n) {\n const queryKey = retrieveToolSuspenseQueryKey(tool_id);\n return queryOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n ResponseConfig<RetrieveToolQueryResponse>,\n typeof queryKey\n >({\n enabled: !!tool_id,\n queryKey,\n queryFn: async ({ signal }) => {\n config.signal = signal;\n return retrieveToolSuspense(tool_id, config);\n },\n });\n}\n\n/**\n * @description Get a tool by ID\n * @summary Retrieve Tool\n * {@link /v1/tools/:tool_id}\n */\nexport function useRetrieveToolSuspense<\n TData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryData = ResponseConfig<RetrieveToolQueryResponse>,\n TQueryKey extends QueryKey = RetrieveToolSuspenseQueryKey\n>(\n tool_id: RetrieveToolPathParams['tool_id'],\n options: {\n query?: Partial<\n UseSuspenseQueryOptions<\n ResponseConfig<RetrieveToolQueryResponse>,\n ResponseErrorConfig<RetrieveTool422>,\n TData,\n TQueryKey\n >\n > & {\n client?: QueryClient;\n };\n client?: Partial<RequestConfig> & { client?: typeof client };\n } = {}\n) {\n const {\n query: { client: queryClient, ...queryOptions } = {},\n client: config = {},\n } = options ?? {};\n const queryKey =\n queryOptions?.queryKey ?? retrieveToolSuspenseQueryKey(tool_id);\n\n const query = useSuspenseQuery(\n {\n ...(retrieveToolSuspenseQueryOptions(\n tool_id,\n config\n ) as unknown as UseSuspenseQueryOptions),\n queryKey,\n ...(queryOptions as unknown as Omit<UseSuspenseQueryOptions, 'queryKey'>),\n },\n queryClient\n ) as UseSuspenseQueryResult<TData, ResponseErrorConfig<RetrieveTool422>> & {\n queryKey: TQueryKey;\n };\n\n query.queryKey = queryKey as TQueryKey;\n\n return query;\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n RunToolFromSourceMutationRequest,\n RunToolFromSourceMutationResponse,\n RunToolFromSource422,\n} from '../../types/RunToolFromSource.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const runToolFromSourceMutationKey = () =>\n [{ url: '/v1/tools/run' }] as const;\n\nexport type RunToolFromSourceMutationKey = ReturnType<\n typeof runToolFromSourceMutationKey\n>;\n\n/**\n * @description Attempt to build a tool from source, then run it on the provided arguments\n * @summary Run Tool From Source\n * {@link /v1/tools/run}\n */\nexport async function runToolFromSource(\n data: RunToolFromSourceMutationRequest,\n config: Partial<RequestConfig<RunToolFromSourceMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n RunToolFromSourceMutationResponse,\n ResponseErrorConfig<RunToolFromSource422>,\n RunToolFromSourceMutationRequest\n >({\n method: 'POST',\n url: `/v1/tools/run`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Attempt to build a tool from source, then run it on the provided arguments\n * @summary Run Tool From Source\n * {@link /v1/tools/run}\n */\nexport function useRunToolFromSource<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<RunToolFromSourceMutationResponse>,\n ResponseErrorConfig<RunToolFromSource422>,\n { data: RunToolFromSourceMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<RunToolFromSourceMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? runToolFromSourceMutationKey();\n\n return useMutation<\n ResponseConfig<RunToolFromSourceMutationResponse>,\n ResponseErrorConfig<RunToolFromSource422>,\n { data: RunToolFromSourceMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return runToolFromSource(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n UpsertToolMutationRequest,\n UpsertToolMutationResponse,\n UpsertTool422,\n} from '../../types/UpsertTool.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const upsertToolMutationKey = () => [{ url: '/v1/tools/' }] as const;\n\nexport type UpsertToolMutationKey = ReturnType<typeof upsertToolMutationKey>;\n\n/**\n * @description Create or update a tool\n * @summary Upsert Tool\n * {@link /v1/tools/}\n */\nexport async function upsertTool(\n data: UpsertToolMutationRequest,\n config: Partial<RequestConfig<UpsertToolMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n UpsertToolMutationResponse,\n ResponseErrorConfig<UpsertTool422>,\n UpsertToolMutationRequest\n >({\n method: 'PUT',\n url: `/v1/tools/`,\n data,\n ...requestConfig,\n });\n return res;\n}\n\n/**\n * @description Create or update a tool\n * @summary Upsert Tool\n * {@link /v1/tools/}\n */\nexport function useUpsertTool<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<UpsertToolMutationResponse>,\n ResponseErrorConfig<UpsertTool422>,\n { data: UpsertToolMutationRequest },\n TContext\n > & { client?: QueryClient };\n client?: Partial<RequestConfig<UpsertToolMutationRequest>> & {\n client?: typeof client;\n };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey = mutationOptions?.mutationKey ?? upsertToolMutationKey();\n\n return useMutation<\n ResponseConfig<UpsertToolMutationResponse>,\n ResponseErrorConfig<UpsertTool422>,\n { data: UpsertToolMutationRequest },\n TContext\n >(\n {\n mutationFn: async ({ data }) => {\n return upsertTool(data, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport client from '@kubb/plugin-client/clients/axios';\nimport type {\n CreateVoiceChatCompletionsMutationRequest,\n CreateVoiceChatCompletionsMutationResponse,\n CreateVoiceChatCompletionsPathParams,\n CreateVoiceChatCompletionsHeaderParams,\n CreateVoiceChatCompletions422,\n} from '../../types/CreateVoiceChatCompletions.ts';\nimport type {\n RequestConfig,\n ResponseConfig,\n ResponseErrorConfig,\n} from '@kubb/plugin-client/clients/axios';\nimport type { UseMutationOptions, QueryClient } from '@tanstack/react-query';\nimport { useMutation } from '@tanstack/react-query';\n\nexport const createVoiceChatCompletionsMutationKey = () =>\n [{ url: '/v1/voice-beta/{agent_id}/chat/completions' }] as const;\n\nexport type CreateVoiceChatCompletionsMutationKey = ReturnType<\n typeof createVoiceChatCompletionsMutationKey\n>;\n\n/**\n * @summary Create Voice Chat Completions\n * {@link /v1/voice-beta/:agent_id/chat/completions}\n */\nexport async function createVoiceChatCompletions(\n agent_id: CreateVoiceChatCompletionsPathParams['agent_id'],\n data?: CreateVoiceChatCompletionsMutationRequest,\n headers?: CreateVoiceChatCompletionsHeaderParams,\n config: Partial<RequestConfig<CreateVoiceChatCompletionsMutationRequest>> & {\n client?: typeof client;\n } = {}\n) {\n const { client: request = client, ...requestConfig } = config;\n\n const res = await request<\n CreateVoiceChatCompletionsMutationResponse,\n ResponseErrorConfig<CreateVoiceChatCompletions422>,\n CreateVoiceChatCompletionsMutationRequest\n >({\n method: 'POST',\n url: `/v1/voice-beta/${agent_id}/chat/completions`,\n data,\n ...requestConfig,\n headers: { ...headers, ...requestConfig.headers },\n });\n return res;\n}\n\n/**\n * @summary Create Voice Chat Completions\n * {@link /v1/voice-beta/:agent_id/chat/completions}\n */\nexport function useCreateVoiceChatCompletions<TContext>(\n options: {\n mutation?: UseMutationOptions<\n ResponseConfig<CreateVoiceChatCompletionsMutationResponse>,\n ResponseErrorConfig<CreateVoiceChatCompletions422>,\n {\n agent_id: CreateVoiceChatCompletionsPathParams['agent_id'];\n data?: CreateVoiceChatCompletionsMutationRequest;\n headers?: CreateVoiceChatCompletionsHeaderParams;\n },\n TContext\n > & { client?: QueryClient };\n client?: Partial<\n RequestConfig<CreateVoiceChatCompletionsMutationRequest>\n > & { client?: typeof client };\n } = {}\n) {\n const {\n mutation: { client: queryClient, ...mutationOptions } = {},\n client: config = {},\n } = options ?? {};\n const mutationKey =\n mutationOptions?.mutationKey ?? createVoiceChatCompletionsMutationKey();\n\n return useMutation<\n ResponseConfig<CreateVoiceChatCompletionsMutationResponse>,\n ResponseErrorConfig<CreateVoiceChatCompletions422>,\n {\n agent_id: CreateVoiceChatCompletionsPathParams['agent_id'];\n data?: CreateVoiceChatCompletionsMutationRequest;\n headers?: CreateVoiceChatCompletionsHeaderParams;\n },\n TContext\n >(\n {\n mutationFn: async ({ agent_id, data, headers }) => {\n return createVoiceChatCompletions(agent_id, data, headers, config);\n },\n mutationKey,\n ...mutationOptions,\n },\n queryClient\n );\n}\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsCreateTemplateFromAgentPathParams = {\n /**\n * @type string\n */\n agent_id: string;\n};\n\n/**\n * @description 201\n */\nexport type AgentsCreateTemplateFromAgent201 = {\n /**\n * @type string\n */\n templateName: string;\n /**\n * @type string\n */\n templateId: string;\n};\n\nexport const agentsCreateTemplateFromAgent500MessageEnum = {\n 'Failed to create agent template': 'Failed to create agent template',\n} as const;\n\nexport type AgentsCreateTemplateFromAgent500MessageEnum =\n (typeof agentsCreateTemplateFromAgent500MessageEnum)[keyof typeof agentsCreateTemplateFromAgent500MessageEnum];\n\n/**\n * @description 500\n */\nexport type AgentsCreateTemplateFromAgent500 = {\n /**\n * @type string\n */\n message: AgentsCreateTemplateFromAgent500MessageEnum;\n};\n\n/**\n * @description Body\n */\nexport type AgentsCreateTemplateFromAgentMutationRequest = {\n /**\n * @type string | undefined\n */\n project?: string;\n};\n\nexport type AgentsCreateTemplateFromAgentMutationResponse =\n AgentsCreateTemplateFromAgent201;\n\nexport type AgentsCreateTemplateFromAgentMutation = {\n Response: AgentsCreateTemplateFromAgent201;\n Request: AgentsCreateTemplateFromAgentMutationRequest;\n PathParams: AgentsCreateTemplateFromAgentPathParams;\n Errors: AgentsCreateTemplateFromAgent500;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsGetAgentVariablesPathParams = {\n /**\n * @type string\n */\n agent_id: string;\n};\n\n/**\n * @description 200\n */\nexport type AgentsGetAgentVariables200 = {\n /**\n * @type object\n */\n variables: {\n [key: string]: string;\n };\n};\n\nexport const agentsGetAgentVariables404MessageEnum = {\n 'Agent not found': 'Agent not found',\n} as const;\n\nexport type AgentsGetAgentVariables404MessageEnum =\n (typeof agentsGetAgentVariables404MessageEnum)[keyof typeof agentsGetAgentVariables404MessageEnum];\n\n/**\n * @description 404\n */\nexport type AgentsGetAgentVariables404 = {\n /**\n * @type string\n */\n message: AgentsGetAgentVariables404MessageEnum;\n};\n\nexport type AgentsGetAgentVariablesQueryResponse = AgentsGetAgentVariables200;\n\nexport type AgentsGetAgentVariablesQuery = {\n Response: AgentsGetAgentVariables200;\n PathParams: AgentsGetAgentVariablesPathParams;\n Errors: AgentsGetAgentVariables404;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsMigrateAgentPathParams = {\n /**\n * @type string\n */\n agent_id: string;\n};\n\nexport const agentsMigrateAgent200SuccessEnum = {\n true: true,\n} as const;\n\nexport type AgentsMigrateAgent200SuccessEnum =\n (typeof agentsMigrateAgent200SuccessEnum)[keyof typeof agentsMigrateAgent200SuccessEnum];\n\n/**\n * @description 200\n */\nexport type AgentsMigrateAgent200 = {\n /**\n * @type boolean\n */\n success: AgentsMigrateAgent200SuccessEnum;\n};\n\nexport const agentsMigrateAgent404MessageEnum = {\n 'Agent provided is a template or not found, you can only migrate deployed agents':\n 'Agent provided is a template or not found, you can only migrate deployed agents',\n 'Template version provided does not exist':\n 'Template version provided does not exist',\n} as const;\n\nexport type AgentsMigrateAgent404MessageEnum =\n (typeof agentsMigrateAgent404MessageEnum)[keyof typeof agentsMigrateAgent404MessageEnum];\n\n/**\n * @description 404\n */\nexport type AgentsMigrateAgent404 = {\n /**\n * @type string\n */\n message: AgentsMigrateAgent404MessageEnum;\n};\n\nexport const agentsMigrateAgent409MessageEnum = {\n 'You can only migrate agents to a new versioned agent template that belongs to the same project':\n 'You can only migrate agents to a new versioned agent template that belongs to the same project',\n} as const;\n\nexport type AgentsMigrateAgent409MessageEnum =\n (typeof agentsMigrateAgent409MessageEnum)[keyof typeof agentsMigrateAgent409MessageEnum];\n\n/**\n * @description 409\n */\nexport type AgentsMigrateAgent409 = {\n /**\n * @type string\n */\n message: AgentsMigrateAgent409MessageEnum;\n};\n\nexport const agentsMigrateAgent500MessageEnum = {\n 'Migration failed': 'Migration failed',\n} as const;\n\nexport type AgentsMigrateAgent500MessageEnum =\n (typeof agentsMigrateAgent500MessageEnum)[keyof typeof agentsMigrateAgent500MessageEnum];\n\n/**\n * @description 500\n */\nexport type AgentsMigrateAgent500 = {\n /**\n * @type string\n */\n message: AgentsMigrateAgent500MessageEnum;\n};\n\n/**\n * @description Body\n */\nexport type AgentsMigrateAgentMutationRequest = {\n /**\n * @type string\n */\n to_template: string;\n /**\n * @description If you chose to not preserve core memories, you should provide the new variables for the core memories\n * @type object | undefined\n */\n variables?: {\n [key: string]: string;\n };\n /**\n * @type boolean\n */\n preserve_core_memories: boolean;\n};\n\nexport type AgentsMigrateAgentMutationResponse = AgentsMigrateAgent200;\n\nexport type AgentsMigrateAgentMutation = {\n Response: AgentsMigrateAgent200;\n Request: AgentsMigrateAgentMutationRequest;\n PathParams: AgentsMigrateAgentPathParams;\n Errors: AgentsMigrateAgent404 | AgentsMigrateAgent409 | AgentsMigrateAgent500;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { AgentState } from '../AgentState.ts';\n\n/**\n * @description 200\n */\nexport type AgentsSearchDeployedAgents200 = {\n /**\n * @type array\n */\n agents: AgentState[];\n /**\n * @type string\n */\n nextCursor?: string | null;\n};\n\nexport const searchFieldEnum = {\n version: 'version',\n} as const;\n\nexport type SearchFieldEnum =\n (typeof searchFieldEnum)[keyof typeof searchFieldEnum];\n\nexport const searchFieldEnum2 = {\n name: 'name',\n} as const;\n\nexport type SearchFieldEnum2 =\n (typeof searchFieldEnum2)[keyof typeof searchFieldEnum2];\n\nexport const searchOperatorEnum = {\n eq: 'eq',\n contains: 'contains',\n} as const;\n\nexport type SearchOperatorEnum =\n (typeof searchOperatorEnum)[keyof typeof searchOperatorEnum];\n\nexport const searchFieldEnum3 = {\n tags: 'tags',\n} as const;\n\nexport type SearchFieldEnum3 =\n (typeof searchFieldEnum3)[keyof typeof searchFieldEnum3];\n\nexport const searchOperatorEnum2 = {\n contains: 'contains',\n} as const;\n\nexport type SearchOperatorEnum2 =\n (typeof searchOperatorEnum2)[keyof typeof searchOperatorEnum2];\n\nexport const searchFieldEnum4 = {\n identity: 'identity',\n} as const;\n\nexport type SearchFieldEnum4 =\n (typeof searchFieldEnum4)[keyof typeof searchFieldEnum4];\n\nexport const searchOperatorEnum3 = {\n eq: 'eq',\n} as const;\n\nexport type SearchOperatorEnum3 =\n (typeof searchOperatorEnum3)[keyof typeof searchOperatorEnum3];\n\nexport const agentsSearchDeployedAgentsMutationRequestCombinatorEnum = {\n AND: 'AND',\n} as const;\n\nexport type AgentsSearchDeployedAgentsMutationRequestCombinatorEnum =\n (typeof agentsSearchDeployedAgentsMutationRequestCombinatorEnum)[keyof typeof agentsSearchDeployedAgentsMutationRequestCombinatorEnum];\n\n/**\n * @description Body\n */\nexport type AgentsSearchDeployedAgentsMutationRequest = {\n /**\n * @type array | undefined\n */\n search?: (\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum;\n /**\n * @type string\n */\n value: string;\n }\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum2;\n /**\n * @type string\n */\n operator: SearchOperatorEnum;\n /**\n * @type string\n */\n value: string;\n }\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum3;\n /**\n * @type string\n */\n operator: SearchOperatorEnum2;\n /**\n * @type array\n */\n value: string[];\n }\n | {\n /**\n * @type string\n */\n field: SearchFieldEnum4;\n /**\n * @type string\n */\n operator: SearchOperatorEnum3;\n /**\n * @type string\n */\n value: string;\n }\n )[];\n /**\n * @type string | undefined\n */\n project_id?: string;\n /**\n * @type string | undefined\n */\n combinator?: AgentsSearchDeployedAgentsMutationRequestCombinatorEnum;\n /**\n * @type number | undefined\n */\n limit?: number;\n /**\n * @type string\n */\n after?: string | null;\n};\n\nexport type AgentsSearchDeployedAgentsMutationResponse =\n AgentsSearchDeployedAgents200;\n\nexport type AgentsSearchDeployedAgentsMutation = {\n Response: AgentsSearchDeployedAgents200;\n Request: AgentsSearchDeployedAgentsMutationRequest;\n Errors: any;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport type AgentsVersionAgentTemplatePathParams = {\n /**\n * @description The agent ID of the agent to migrate, if this agent is not a template, it will create a agent template from the agent provided as well\n * @type string\n */\n agent_id: string;\n};\n\nexport type AgentsVersionAgentTemplateQueryParams = {\n /**\n * @type boolean | undefined\n */\n returnAgentState?: boolean;\n};\n\n/**\n * @description 201\n */\nexport type AgentsVersionAgentTemplate201 = any;\n\nexport const agentsVersionAgentTemplate404MessageEnum = {\n 'Agent not found': 'Agent not found',\n} as const;\n\nexport type AgentsVersionAgentTemplate404MessageEnum =\n (typeof agentsVersionAgentTemplate404MessageEnum)[keyof typeof agentsVersionAgentTemplate404MessageEnum];\n\n/**\n * @description 404\n */\nexport type AgentsVersionAgentTemplate404 = {\n /**\n * @type string\n */\n message: AgentsVersionAgentTemplate404MessageEnum;\n};\n\nexport const agentsVersionAgentTemplate500MessageEnum = {\n 'Failed to version agent template': 'Failed to version agent template',\n} as const;\n\nexport type AgentsVersionAgentTemplate500MessageEnum =\n (typeof agentsVersionAgentTemplate500MessageEnum)[keyof typeof agentsVersionAgentTemplate500MessageEnum];\n\n/**\n * @description 500\n */\nexport type AgentsVersionAgentTemplate500 = {\n /**\n * @type string\n */\n message: AgentsVersionAgentTemplate500MessageEnum;\n};\n\n/**\n * @description Body\n */\nexport type AgentsVersionAgentTemplateMutationRequest = {\n /**\n * @type boolean | undefined\n */\n migrate_deployed_agents?: boolean;\n /**\n * @maxLength 140\n * @type string | undefined\n */\n message?: string;\n};\n\nexport type AgentsVersionAgentTemplateMutationResponse =\n AgentsVersionAgentTemplate201;\n\nexport type AgentsVersionAgentTemplateMutation = {\n Response: AgentsVersionAgentTemplate201;\n Request: AgentsVersionAgentTemplateMutationRequest;\n PathParams: AgentsVersionAgentTemplatePathParams;\n QueryParams: AgentsVersionAgentTemplateQueryParams;\n Errors: AgentsVersionAgentTemplate404 | AgentsVersionAgentTemplate500;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const agentTypeEnum = {\n memgpt_agent: 'memgpt_agent',\n split_thread_agent: 'split_thread_agent',\n sleeptime_agent: 'sleeptime_agent',\n} as const;\n\nexport type AgentTypeEnum = (typeof agentTypeEnum)[keyof typeof agentTypeEnum];\n\n/**\n * @description Enum to represent the type of agent.\n */\nexport type AgentType = AgentTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { AuthSchemeField } from './AuthSchemeField.ts';\n\nexport const appAuthSchemeAuthModeEnum = {\n OAUTH2: 'OAUTH2',\n OAUTH1: 'OAUTH1',\n API_KEY: 'API_KEY',\n BASIC: 'BASIC',\n BEARER_TOKEN: 'BEARER_TOKEN',\n BASIC_WITH_JWT: 'BASIC_WITH_JWT',\n GOOGLE_SERVICE_ACCOUNT: 'GOOGLE_SERVICE_ACCOUNT',\n GOOGLEADS_AUTH: 'GOOGLEADS_AUTH',\n NO_AUTH: 'NO_AUTH',\n CALCOM_AUTH: 'CALCOM_AUTH',\n} as const;\n\nexport type AppAuthSchemeAuthModeEnum =\n (typeof appAuthSchemeAuthModeEnum)[keyof typeof appAuthSchemeAuthModeEnum];\n\n/**\n * @description App authenticatio scheme.\n */\nexport type AppAuthScheme = {\n /**\n * @type string\n */\n scheme_name: string;\n /**\n * @type string\n */\n auth_mode: AppAuthSchemeAuthModeEnum;\n /**\n * @type array\n */\n fields: AuthSchemeField[];\n proxy?: {\n [key: string]: any;\n } | null;\n authorization_url?: string | null;\n token_url?: string | null;\n default_scopes?: any[] | null;\n token_response_metadata?: any[] | null;\n client_id?: string | null;\n client_secret?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { LettaAssistantMessageContentUnion } from './LettaAssistantMessageContentUnion.ts';\n\nexport const assistantMessageMessageTypeEnum = {\n assistant_message: 'assistant_message',\n} as const;\n\nexport type AssistantMessageMessageTypeEnum =\n (typeof assistantMessageMessageTypeEnum)[keyof typeof assistantMessageMessageTypeEnum];\n\n/**\n * @description A message sent by the LLM in response to user input. Used in the LLM context.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n content (Union[str, List[LettaAssistantMessageContentUnion]]): The message content sent by the agent (can be a string or an array of content parts)\n */\nexport type AssistantMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"assistant_message\"\n * @type string\n */\n message_type: AssistantMessageMessageTypeEnum;\n /**\n * @description The message content sent by the agent (can be a string or an array of content parts)\n */\n content: LettaAssistantMessageContentUnion[] | string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const chatCompletionAudioParamFormatEnum = {\n wav: 'wav',\n mp3: 'mp3',\n flac: 'flac',\n opus: 'opus',\n pcm16: 'pcm16',\n} as const;\n\nexport type ChatCompletionAudioParamFormatEnum =\n (typeof chatCompletionAudioParamFormatEnum)[keyof typeof chatCompletionAudioParamFormatEnum];\n\nexport const chatCompletionAudioParamVoiceEnum = {\n alloy: 'alloy',\n ash: 'ash',\n ballad: 'ballad',\n coral: 'coral',\n echo: 'echo',\n fable: 'fable',\n onyx: 'onyx',\n nova: 'nova',\n sage: 'sage',\n shimmer: 'shimmer',\n verse: 'verse',\n} as const;\n\nexport type ChatCompletionAudioParamVoiceEnum =\n (typeof chatCompletionAudioParamVoiceEnum)[keyof typeof chatCompletionAudioParamVoiceEnum];\n\nexport type ChatCompletionAudioParam = {\n /**\n * @type string\n */\n format: ChatCompletionAudioParamFormatEnum;\n voice: string | ChatCompletionAudioParamVoiceEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const policyVersionEnum = {\n '1': '1',\n} as const;\n\nexport type PolicyVersionEnum =\n (typeof policyVersionEnum)[keyof typeof policyVersionEnum];\n\nexport const dataTypeEnum = {\n agent: 'agent',\n} as const;\n\nexport type DataTypeEnum = (typeof dataTypeEnum)[keyof typeof dataTypeEnum];\n\nexport const dataAccessEnum = {\n read_messages: 'read_messages',\n write_messages: 'write_messages',\n read_agent: 'read_agent',\n write_agent: 'write_agent',\n} as const;\n\nexport type DataAccessEnum =\n (typeof dataAccessEnum)[keyof typeof dataAccessEnum];\n\n/**\n * @description 201\n */\nexport type ClientSideAccessTokensCreateClientSideAccessToken201 = {\n /**\n * @type object\n */\n policy: {\n /**\n * @type string\n */\n version: PolicyVersionEnum;\n /**\n * @type array\n */\n data: {\n /**\n * @type string\n */\n type: DataTypeEnum;\n /**\n * @type string\n */\n id: string;\n /**\n * @type array\n */\n access: DataAccessEnum[];\n }[];\n };\n /**\n * @type string\n */\n token: string;\n /**\n * @type string\n */\n hostname: string;\n /**\n * @type string\n */\n expiresAt: string;\n};\n\n/**\n * @description 400\n */\nexport type ClientSideAccessTokensCreateClientSideAccessToken400 = {\n /**\n * @type string\n */\n message: string;\n};\n\nexport const policyTypeEnum = {\n agent: 'agent',\n} as const;\n\nexport type PolicyTypeEnum =\n (typeof policyTypeEnum)[keyof typeof policyTypeEnum];\n\nexport const policyAccessEnum = {\n read_messages: 'read_messages',\n write_messages: 'write_messages',\n read_agent: 'read_agent',\n write_agent: 'write_agent',\n} as const;\n\nexport type PolicyAccessEnum =\n (typeof policyAccessEnum)[keyof typeof policyAccessEnum];\n\n/**\n * @description Body\n */\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest = {\n /**\n * @type array\n */\n policy: {\n /**\n * @type string\n */\n type: PolicyTypeEnum;\n /**\n * @type string\n */\n id: string;\n /**\n * @type array\n */\n access: PolicyAccessEnum[];\n }[];\n /**\n * @description The hostname of the client side application. Please specify the full URL including the protocol (http or https).\n * @type string, uri\n */\n hostname: string;\n /**\n * @description The expiration date of the token. If not provided, the token will expire in 5 minutes\n * @type string | undefined\n */\n expires_at?: string;\n};\n\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutationResponse =\n ClientSideAccessTokensCreateClientSideAccessToken201;\n\nexport type ClientSideAccessTokensCreateClientSideAccessTokenMutation = {\n Response: ClientSideAccessTokensCreateClientSideAccessToken201;\n Request: ClientSideAccessTokensCreateClientSideAccessTokenMutationRequest;\n Errors: ClientSideAccessTokensCreateClientSideAccessToken400;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { ChatCompletionAssistantMessageParam } from './ChatCompletionAssistantMessageParam.ts';\nimport type { ChatCompletionAudioParam } from './ChatCompletionAudioParam.ts';\nimport type { ChatCompletionDeveloperMessageParam } from './ChatCompletionDeveloperMessageParam.ts';\nimport type { ChatCompletionFunctionCallOptionParam } from './ChatCompletionFunctionCallOptionParam.ts';\nimport type { ChatCompletionFunctionMessageParam } from './ChatCompletionFunctionMessageParam.ts';\nimport type { ChatCompletionNamedToolChoiceParam } from './ChatCompletionNamedToolChoiceParam.ts';\nimport type { ChatCompletionPredictionContentParam } from './ChatCompletionPredictionContentParam.ts';\nimport type { ChatCompletionStreamOptionsParam } from './ChatCompletionStreamOptionsParam.ts';\nimport type { ChatCompletionSystemMessageParam } from './ChatCompletionSystemMessageParam.ts';\nimport type { ChatCompletionToolMessageParam } from './ChatCompletionToolMessageParam.ts';\nimport type { ChatCompletionToolParam } from './ChatCompletionToolParam.ts';\nimport type { ChatCompletionUserMessageParam } from './ChatCompletionUserMessageParam.ts';\nimport type { OpenaiTypesChatCompletionCreateParamsFunction } from './OpenaiTypesChatCompletionCreateParamsFunction.ts';\nimport type { ResponseFormatJSONObject } from './ResponseFormatJSONObject.ts';\nimport type { ResponseFormatJSONSchema } from './ResponseFormatJSONSchema.ts';\nimport type { ResponseFormatText } from './ResponseFormatText.ts';\nimport type { WebSearchOptions } from './WebSearchOptions.ts';\n\nexport const completionCreateParamsNonStreamingModelEnum = {\n 'o3-mini': 'o3-mini',\n 'o3-mini-2025-01-31': 'o3-mini-2025-01-31',\n o1: 'o1',\n 'o1-2024-12-17': 'o1-2024-12-17',\n 'o1-preview': 'o1-preview',\n 'o1-preview-2024-09-12': 'o1-preview-2024-09-12',\n 'o1-mini': 'o1-mini',\n 'o1-mini-2024-09-12': 'o1-mini-2024-09-12',\n 'gpt-4o': 'gpt-4o',\n 'gpt-4o-2024-11-20': 'gpt-4o-2024-11-20',\n 'gpt-4o-2024-08-06': 'gpt-4o-2024-08-06',\n 'gpt-4o-2024-05-13': 'gpt-4o-2024-05-13',\n 'gpt-4o-audio-preview': 'gpt-4o-audio-preview',\n 'gpt-4o-audio-preview-2024-10-01': 'gpt-4o-audio-preview-2024-10-01',\n 'gpt-4o-audio-preview-2024-12-17': 'gpt-4o-audio-preview-2024-12-17',\n 'gpt-4o-mini-audio-preview': 'gpt-4o-mini-audio-preview',\n 'gpt-4o-mini-audio-preview-2024-12-17':\n 'gpt-4o-mini-audio-preview-2024-12-17',\n 'gpt-4o-search-preview': 'gpt-4o-search-preview',\n 'gpt-4o-mini-search-preview': 'gpt-4o-mini-search-preview',\n 'gpt-4o-search-preview-2025-03-11': 'gpt-4o-search-preview-2025-03-11',\n 'gpt-4o-mini-search-preview-2025-03-11':\n 'gpt-4o-mini-search-preview-2025-03-11',\n 'chatgpt-4o-latest': 'chatgpt-4o-latest',\n 'gpt-4o-mini': 'gpt-4o-mini',\n 'gpt-4o-mini-2024-07-18': 'gpt-4o-mini-2024-07-18',\n 'gpt-4-turbo': 'gpt-4-turbo',\n 'gpt-4-turbo-2024-04-09': 'gpt-4-turbo-2024-04-09',\n 'gpt-4-0125-preview': 'gpt-4-0125-preview',\n 'gpt-4-turbo-preview': 'gpt-4-turbo-preview',\n 'gpt-4-1106-preview': 'gpt-4-1106-preview',\n 'gpt-4-vision-preview': 'gpt-4-vision-preview',\n 'gpt-4': 'gpt-4',\n 'gpt-4-0314': 'gpt-4-0314',\n 'gpt-4-0613': 'gpt-4-0613',\n 'gpt-4-32k': 'gpt-4-32k',\n 'gpt-4-32k-0314': 'gpt-4-32k-0314',\n 'gpt-4-32k-0613': 'gpt-4-32k-0613',\n 'gpt-3.5-turbo': 'gpt-3.5-turbo',\n 'gpt-3.5-turbo-16k': 'gpt-3.5-turbo-16k',\n 'gpt-3.5-turbo-0301': 'gpt-3.5-turbo-0301',\n 'gpt-3.5-turbo-0613': 'gpt-3.5-turbo-0613',\n 'gpt-3.5-turbo-1106': 'gpt-3.5-turbo-1106',\n 'gpt-3.5-turbo-0125': 'gpt-3.5-turbo-0125',\n 'gpt-3.5-turbo-16k-0613': 'gpt-3.5-turbo-16k-0613',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingModelEnum =\n (typeof completionCreateParamsNonStreamingModelEnum)[keyof typeof completionCreateParamsNonStreamingModelEnum];\n\nexport const completionCreateParamsNonStreamingFunctionCallEnum = {\n none: 'none',\n auto: 'auto',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingFunctionCallEnum =\n (typeof completionCreateParamsNonStreamingFunctionCallEnum)[keyof typeof completionCreateParamsNonStreamingFunctionCallEnum];\n\nexport const completionCreateParamsNonStreamingModalitiesEnum = {\n text: 'text',\n audio: 'audio',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingModalitiesEnum =\n (typeof completionCreateParamsNonStreamingModalitiesEnum)[keyof typeof completionCreateParamsNonStreamingModalitiesEnum];\n\nexport const completionCreateParamsNonStreamingReasoningEffortEnum = {\n low: 'low',\n medium: 'medium',\n high: 'high',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingReasoningEffortEnum =\n (typeof completionCreateParamsNonStreamingReasoningEffortEnum)[keyof typeof completionCreateParamsNonStreamingReasoningEffortEnum];\n\nexport const completionCreateParamsNonStreamingServiceTierEnum = {\n auto: 'auto',\n default: 'default',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingServiceTierEnum =\n (typeof completionCreateParamsNonStreamingServiceTierEnum)[keyof typeof completionCreateParamsNonStreamingServiceTierEnum];\n\nexport const completionCreateParamsNonStreamingToolChoiceEnum = {\n none: 'none',\n auto: 'auto',\n required: 'required',\n} as const;\n\nexport type CompletionCreateParamsNonStreamingToolChoiceEnum =\n (typeof completionCreateParamsNonStreamingToolChoiceEnum)[keyof typeof completionCreateParamsNonStreamingToolChoiceEnum];\n\nexport type CompletionCreateParamsNonStreaming = {\n /**\n * @type array\n */\n messages: (\n | ChatCompletionDeveloperMessageParam\n | ChatCompletionSystemMessageParam\n | ChatCompletionUserMessageParam\n | ChatCompletionAssistantMessageParam\n | ChatCompletionToolMessageParam\n | ChatCompletionFunctionMessageParam\n )[];\n model: string | CompletionCreateParamsNonStreamingModelEnum;\n audio?: ChatCompletionAudioParam | null;\n frequency_penalty?: number | null;\n function_call?:\n | CompletionCreateParamsNonStreamingFunctionCallEnum\n | ChatCompletionFunctionCallOptionParam;\n /**\n * @type array | undefined\n */\n functions?: OpenaiTypesChatCompletionCreateParamsFunction[];\n logit_bias?: {\n [key: string]: number;\n } | null;\n logprobs?: boolean | null;\n max_completion_tokens?: number | null;\n max_tokens?: number | null;\n metadata?: {\n [key: string]: string;\n } | null;\n modalities?: CompletionCreateParamsNonStreamingModalitiesEnum[] | null;\n n?: number | null;\n /**\n * @type boolean | undefined\n */\n parallel_tool_calls?: boolean;\n prediction?: ChatCompletionPredictionContentParam | null;\n presence_penalty?: number | null;\n reasoning_effort?: CompletionCreateParamsNonStreamingReasoningEffortEnum | null;\n response_format?:\n | ResponseFormatText\n | ResponseFormatJSONSchema\n | ResponseFormatJSONObject;\n seed?: number | null;\n service_tier?: CompletionCreateParamsNonStreamingServiceTierEnum | null;\n stop?: string | string[] | null;\n store?: boolean | null;\n stream_options?: ChatCompletionStreamOptionsParam | null;\n temperature?: number | null;\n tool_choice?:\n | CompletionCreateParamsNonStreamingToolChoiceEnum\n | ChatCompletionNamedToolChoiceParam;\n /**\n * @type array | undefined\n */\n tools?: ChatCompletionToolParam[];\n top_logprobs?: number | null;\n top_p?: number | null;\n /**\n * @type string | undefined\n */\n user?: string;\n /**\n * @type object | undefined\n */\n web_search_options?: WebSearchOptions;\n stream?: null | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { ChatCompletionAssistantMessageParam } from './ChatCompletionAssistantMessageParam.ts';\nimport type { ChatCompletionAudioParam } from './ChatCompletionAudioParam.ts';\nimport type { ChatCompletionDeveloperMessageParam } from './ChatCompletionDeveloperMessageParam.ts';\nimport type { ChatCompletionFunctionCallOptionParam } from './ChatCompletionFunctionCallOptionParam.ts';\nimport type { ChatCompletionFunctionMessageParam } from './ChatCompletionFunctionMessageParam.ts';\nimport type { ChatCompletionNamedToolChoiceParam } from './ChatCompletionNamedToolChoiceParam.ts';\nimport type { ChatCompletionPredictionContentParam } from './ChatCompletionPredictionContentParam.ts';\nimport type { ChatCompletionStreamOptionsParam } from './ChatCompletionStreamOptionsParam.ts';\nimport type { ChatCompletionSystemMessageParam } from './ChatCompletionSystemMessageParam.ts';\nimport type { ChatCompletionToolMessageParam } from './ChatCompletionToolMessageParam.ts';\nimport type { ChatCompletionToolParam } from './ChatCompletionToolParam.ts';\nimport type { ChatCompletionUserMessageParam } from './ChatCompletionUserMessageParam.ts';\nimport type { OpenaiTypesChatCompletionCreateParamsFunction } from './OpenaiTypesChatCompletionCreateParamsFunction.ts';\nimport type { ResponseFormatJSONObject } from './ResponseFormatJSONObject.ts';\nimport type { ResponseFormatJSONSchema } from './ResponseFormatJSONSchema.ts';\nimport type { ResponseFormatText } from './ResponseFormatText.ts';\nimport type { WebSearchOptions } from './WebSearchOptions.ts';\n\nexport const completionCreateParamsStreamingModelEnum = {\n 'o3-mini': 'o3-mini',\n 'o3-mini-2025-01-31': 'o3-mini-2025-01-31',\n o1: 'o1',\n 'o1-2024-12-17': 'o1-2024-12-17',\n 'o1-preview': 'o1-preview',\n 'o1-preview-2024-09-12': 'o1-preview-2024-09-12',\n 'o1-mini': 'o1-mini',\n 'o1-mini-2024-09-12': 'o1-mini-2024-09-12',\n 'gpt-4o': 'gpt-4o',\n 'gpt-4o-2024-11-20': 'gpt-4o-2024-11-20',\n 'gpt-4o-2024-08-06': 'gpt-4o-2024-08-06',\n 'gpt-4o-2024-05-13': 'gpt-4o-2024-05-13',\n 'gpt-4o-audio-preview': 'gpt-4o-audio-preview',\n 'gpt-4o-audio-preview-2024-10-01': 'gpt-4o-audio-preview-2024-10-01',\n 'gpt-4o-audio-preview-2024-12-17': 'gpt-4o-audio-preview-2024-12-17',\n 'gpt-4o-mini-audio-preview': 'gpt-4o-mini-audio-preview',\n 'gpt-4o-mini-audio-preview-2024-12-17':\n 'gpt-4o-mini-audio-preview-2024-12-17',\n 'gpt-4o-search-preview': 'gpt-4o-search-preview',\n 'gpt-4o-mini-search-preview': 'gpt-4o-mini-search-preview',\n 'gpt-4o-search-preview-2025-03-11': 'gpt-4o-search-preview-2025-03-11',\n 'gpt-4o-mini-search-preview-2025-03-11':\n 'gpt-4o-mini-search-preview-2025-03-11',\n 'chatgpt-4o-latest': 'chatgpt-4o-latest',\n 'gpt-4o-mini': 'gpt-4o-mini',\n 'gpt-4o-mini-2024-07-18': 'gpt-4o-mini-2024-07-18',\n 'gpt-4-turbo': 'gpt-4-turbo',\n 'gpt-4-turbo-2024-04-09': 'gpt-4-turbo-2024-04-09',\n 'gpt-4-0125-preview': 'gpt-4-0125-preview',\n 'gpt-4-turbo-preview': 'gpt-4-turbo-preview',\n 'gpt-4-1106-preview': 'gpt-4-1106-preview',\n 'gpt-4-vision-preview': 'gpt-4-vision-preview',\n 'gpt-4': 'gpt-4',\n 'gpt-4-0314': 'gpt-4-0314',\n 'gpt-4-0613': 'gpt-4-0613',\n 'gpt-4-32k': 'gpt-4-32k',\n 'gpt-4-32k-0314': 'gpt-4-32k-0314',\n 'gpt-4-32k-0613': 'gpt-4-32k-0613',\n 'gpt-3.5-turbo': 'gpt-3.5-turbo',\n 'gpt-3.5-turbo-16k': 'gpt-3.5-turbo-16k',\n 'gpt-3.5-turbo-0301': 'gpt-3.5-turbo-0301',\n 'gpt-3.5-turbo-0613': 'gpt-3.5-turbo-0613',\n 'gpt-3.5-turbo-1106': 'gpt-3.5-turbo-1106',\n 'gpt-3.5-turbo-0125': 'gpt-3.5-turbo-0125',\n 'gpt-3.5-turbo-16k-0613': 'gpt-3.5-turbo-16k-0613',\n} as const;\n\nexport type CompletionCreateParamsStreamingModelEnum =\n (typeof completionCreateParamsStreamingModelEnum)[keyof typeof completionCreateParamsStreamingModelEnum];\n\nexport const completionCreateParamsStreamingFunctionCallEnum = {\n none: 'none',\n auto: 'auto',\n} as const;\n\nexport type CompletionCreateParamsStreamingFunctionCallEnum =\n (typeof completionCreateParamsStreamingFunctionCallEnum)[keyof typeof completionCreateParamsStreamingFunctionCallEnum];\n\nexport const completionCreateParamsStreamingModalitiesEnum = {\n text: 'text',\n audio: 'audio',\n} as const;\n\nexport type CompletionCreateParamsStreamingModalitiesEnum =\n (typeof completionCreateParamsStreamingModalitiesEnum)[keyof typeof completionCreateParamsStreamingModalitiesEnum];\n\nexport const completionCreateParamsStreamingReasoningEffortEnum = {\n low: 'low',\n medium: 'medium',\n high: 'high',\n} as const;\n\nexport type CompletionCreateParamsStreamingReasoningEffortEnum =\n (typeof completionCreateParamsStreamingReasoningEffortEnum)[keyof typeof completionCreateParamsStreamingReasoningEffortEnum];\n\nexport const completionCreateParamsStreamingServiceTierEnum = {\n auto: 'auto',\n default: 'default',\n} as const;\n\nexport type CompletionCreateParamsStreamingServiceTierEnum =\n (typeof completionCreateParamsStreamingServiceTierEnum)[keyof typeof completionCreateParamsStreamingServiceTierEnum];\n\nexport const completionCreateParamsStreamingToolChoiceEnum = {\n none: 'none',\n auto: 'auto',\n required: 'required',\n} as const;\n\nexport type CompletionCreateParamsStreamingToolChoiceEnum =\n (typeof completionCreateParamsStreamingToolChoiceEnum)[keyof typeof completionCreateParamsStreamingToolChoiceEnum];\n\nexport type CompletionCreateParamsStreaming = {\n /**\n * @type array\n */\n messages: (\n | ChatCompletionDeveloperMessageParam\n | ChatCompletionSystemMessageParam\n | ChatCompletionUserMessageParam\n | ChatCompletionAssistantMessageParam\n | ChatCompletionToolMessageParam\n | ChatCompletionFunctionMessageParam\n )[];\n model: string | CompletionCreateParamsStreamingModelEnum;\n audio?: ChatCompletionAudioParam | null;\n frequency_penalty?: number | null;\n function_call?:\n | CompletionCreateParamsStreamingFunctionCallEnum\n | ChatCompletionFunctionCallOptionParam;\n /**\n * @type array | undefined\n */\n functions?: OpenaiTypesChatCompletionCreateParamsFunction[];\n logit_bias?: {\n [key: string]: number;\n } | null;\n logprobs?: boolean | null;\n max_completion_tokens?: number | null;\n max_tokens?: number | null;\n metadata?: {\n [key: string]: string;\n } | null;\n modalities?: CompletionCreateParamsStreamingModalitiesEnum[] | null;\n n?: number | null;\n /**\n * @type boolean | undefined\n */\n parallel_tool_calls?: boolean;\n prediction?: ChatCompletionPredictionContentParam | null;\n presence_penalty?: number | null;\n reasoning_effort?: CompletionCreateParamsStreamingReasoningEffortEnum | null;\n response_format?:\n | ResponseFormatText\n | ResponseFormatJSONSchema\n | ResponseFormatJSONObject;\n seed?: number | null;\n service_tier?: CompletionCreateParamsStreamingServiceTierEnum | null;\n stop?: string | string[] | null;\n store?: boolean | null;\n stream_options?: ChatCompletionStreamOptionsParam | null;\n temperature?: number | null;\n tool_choice?:\n | CompletionCreateParamsStreamingToolChoiceEnum\n | ChatCompletionNamedToolChoiceParam;\n /**\n * @type array | undefined\n */\n tools?: ChatCompletionToolParam[];\n top_logprobs?: number | null;\n top_p?: number | null;\n /**\n * @type string | undefined\n */\n user?: string;\n /**\n * @type object | undefined\n */\n web_search_options?: WebSearchOptions;\n /**\n * @type boolean\n */\n stream: 'true';\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const embeddingConfigEmbeddingEndpointTypeEnum = {\n openai: 'openai',\n anthropic: 'anthropic',\n bedrock: 'bedrock',\n cohere: 'cohere',\n google_ai: 'google_ai',\n google_vertex: 'google_vertex',\n azure: 'azure',\n groq: 'groq',\n ollama: 'ollama',\n webui: 'webui',\n 'webui-legacy': 'webui-legacy',\n lmstudio: 'lmstudio',\n 'lmstudio-legacy': 'lmstudio-legacy',\n llamacpp: 'llamacpp',\n koboldcpp: 'koboldcpp',\n vllm: 'vllm',\n 'hugging-face': 'hugging-face',\n mistral: 'mistral',\n together: 'together',\n} as const;\n\nexport type EmbeddingConfigEmbeddingEndpointTypeEnum =\n (typeof embeddingConfigEmbeddingEndpointTypeEnum)[keyof typeof embeddingConfigEmbeddingEndpointTypeEnum];\n\n/**\n * @description Embedding model configuration. This object specifies all the information necessary to access an embedding model to usage with Letta, except for secret keys.\\n\\nAttributes:\\n embedding_endpoint_type (str): The endpoint type for the model.\\n embedding_endpoint (str): The endpoint for the model.\\n embedding_model (str): The model for the embedding.\\n embedding_dim (int): The dimension of the embedding.\\n embedding_chunk_size (int): The chunk size of the embedding.\\n azure_endpoint (:obj:`str`, optional): The Azure endpoint for the model (Azure only).\\n azure_version (str): The Azure version for the model (Azure only).\\n azure_deployment (str): The Azure deployment for the model (Azure only).\n */\nexport type EmbeddingConfig = {\n /**\n * @description The endpoint type for the model.\n * @type string\n */\n embedding_endpoint_type: EmbeddingConfigEmbeddingEndpointTypeEnum;\n /**\n * @description The endpoint for the model (`None` if local).\n */\n embedding_endpoint?: string | null;\n /**\n * @description The model for the embedding.\n * @type string\n */\n embedding_model: string;\n /**\n * @description The dimension of the embedding.\n * @type integer\n */\n embedding_dim: number;\n /**\n * @description The chunk size of the embedding.\n * @default 300\n */\n embedding_chunk_size?: number | null;\n /**\n * @description The handle for this config, in the format provider/model-name.\n */\n handle?: string | null;\n /**\n * @description The Azure endpoint for the model.\n */\n azure_endpoint?: string | null;\n /**\n * @description The Azure version for the model.\n */\n azure_version?: string | null;\n /**\n * @description The Azure deployment for the model.\n */\n azure_deployment?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const hiddenReasoningMessageMessageTypeEnum = {\n hidden_reasoning_message: 'hidden_reasoning_message',\n} as const;\n\nexport type HiddenReasoningMessageMessageTypeEnum =\n (typeof hiddenReasoningMessageMessageTypeEnum)[keyof typeof hiddenReasoningMessageMessageTypeEnum];\n\nexport const hiddenReasoningMessageStateEnum = {\n redacted: 'redacted',\n omitted: 'omitted',\n} as const;\n\nexport type HiddenReasoningMessageStateEnum =\n (typeof hiddenReasoningMessageStateEnum)[keyof typeof hiddenReasoningMessageStateEnum];\n\n/**\n * @description Representation of an agent\\'s internal reasoning where reasoning content\\nhas been hidden from the response.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n state (Literal[\\\"redacted\\\", \\\"omitted\\\"]): Whether the reasoning\\n content was redacted by the provider or simply omitted by the API\\n hidden_reasoning (Optional[str]): The internal reasoning of the agent\n */\nexport type HiddenReasoningMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"hidden_reasoning_message\"\n * @type string\n */\n message_type: HiddenReasoningMessageMessageTypeEnum;\n /**\n * @type string\n */\n state: HiddenReasoningMessageStateEnum;\n hidden_reasoning?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const identityPropertyTypeEnum = {\n string: 'string',\n number: 'number',\n boolean: 'boolean',\n json: 'json',\n} as const;\n\nexport type IdentityPropertyTypeEnum =\n (typeof identityPropertyTypeEnum)[keyof typeof identityPropertyTypeEnum];\n\n/**\n * @description Enum to represent the type of the identity property.\n */\nexport type IdentityPropertyType = IdentityPropertyTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const identityTypeEnum = {\n org: 'org',\n user: 'user',\n other: 'other',\n} as const;\n\nexport type IdentityTypeEnum =\n (typeof identityTypeEnum)[keyof typeof identityTypeEnum];\n\n/**\n * @description Enum to represent the type of the identity.\n */\nexport type IdentityType = IdentityTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const imageURLDetailEnum = {\n auto: 'auto',\n low: 'low',\n high: 'high',\n} as const;\n\nexport type ImageURLDetailEnum =\n (typeof imageURLDetailEnum)[keyof typeof imageURLDetailEnum];\n\nexport type ImageURL = {\n /**\n * @type string\n */\n url: string;\n /**\n * @type string | undefined\n */\n detail?: ImageURLDetailEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const inputAudioFormatEnum = {\n wav: 'wav',\n mp3: 'mp3',\n} as const;\n\nexport type InputAudioFormatEnum =\n (typeof inputAudioFormatEnum)[keyof typeof inputAudioFormatEnum];\n\nexport type InputAudio = {\n /**\n * @type string\n */\n data: string;\n /**\n * @type string\n */\n format: InputAudioFormatEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const jobStatusEnum = {\n not_started: 'not_started',\n created: 'created',\n running: 'running',\n completed: 'completed',\n failed: 'failed',\n pending: 'pending',\n cancelled: 'cancelled',\n} as const;\n\nexport type JobStatusEnum = (typeof jobStatusEnum)[keyof typeof jobStatusEnum];\n\n/**\n * @description Status of the job.\n */\nexport type JobStatus = JobStatusEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const jobTypeEnum = {\n job: 'job',\n run: 'run',\n} as const;\n\nexport type JobTypeEnum = (typeof jobTypeEnum)[keyof typeof jobTypeEnum];\n\nexport type JobType = JobTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { TextContent } from './TextContent.ts';\n\nexport const lettaAssistantMessageContentUnionTypeEnum = {\n text: 'text',\n} as const;\n\nexport type LettaAssistantMessageContentUnionTypeEnum =\n (typeof lettaAssistantMessageContentUnionTypeEnum)[keyof typeof lettaAssistantMessageContentUnionTypeEnum];\n\nexport type LettaAssistantMessageContentUnion = TextContent & {\n type?: LettaAssistantMessageContentUnionTypeEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { OmittedReasoningContent } from './OmittedReasoningContent.ts';\nimport type { ReasoningContent } from './ReasoningContent.ts';\nimport type { RedactedReasoningContent } from './RedactedReasoningContent.ts';\nimport type { TextContent } from './TextContent.ts';\nimport type { ToolCallContent } from './ToolCallContent.ts';\nimport type { ToolReturnContent } from './ToolReturnContent.ts';\n\nexport const lettaMessageContentUnionTypeEnum = {\n text: 'text',\n tool_call: 'tool_call',\n tool_return: 'tool_return',\n reasoning: 'reasoning',\n redacted_reasoning: 'redacted_reasoning',\n omitted_reasoning: 'omitted_reasoning',\n} as const;\n\nexport type LettaMessageContentUnionTypeEnum =\n (typeof lettaMessageContentUnionTypeEnum)[keyof typeof lettaMessageContentUnionTypeEnum];\n\nexport type LettaMessageContentUnion =\n | (TextContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (ToolCallContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (ToolReturnContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (ReasoningContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (RedactedReasoningContent & {\n type?: LettaMessageContentUnionTypeEnum;\n })\n | (OmittedReasoningContent & {\n type?: LettaMessageContentUnionTypeEnum;\n });\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { AssistantMessage } from './AssistantMessage.ts';\nimport type { HiddenReasoningMessage } from './HiddenReasoningMessage.ts';\nimport type { ReasoningMessage } from './ReasoningMessage.ts';\nimport type { SystemMessage } from './SystemMessage.ts';\nimport type { ToolCallMessage } from './ToolCallMessage.ts';\nimport type { ToolReturnMessage } from './ToolReturnMessage.ts';\nimport type { UserMessage } from './UserMessage.ts';\n\nexport const lettaMessageUnionMessageTypeEnum = {\n system_message: 'system_message',\n user_message: 'user_message',\n reasoning_message: 'reasoning_message',\n hidden_reasoning_message: 'hidden_reasoning_message',\n tool_call_message: 'tool_call_message',\n tool_return_message: 'tool_return_message',\n assistant_message: 'assistant_message',\n} as const;\n\nexport type LettaMessageUnionMessageTypeEnum =\n (typeof lettaMessageUnionMessageTypeEnum)[keyof typeof lettaMessageUnionMessageTypeEnum];\n\nexport type LettaMessageUnion =\n | (SystemMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (UserMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (ReasoningMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (HiddenReasoningMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (ToolCallMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (ToolReturnMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n })\n | (AssistantMessage & {\n message_type?: LettaMessageUnionMessageTypeEnum;\n });\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { TextContent } from './TextContent.ts';\n\nexport const lettaUserMessageContentUnionTypeEnum = {\n text: 'text',\n} as const;\n\nexport type LettaUserMessageContentUnionTypeEnum =\n (typeof lettaUserMessageContentUnionTypeEnum)[keyof typeof lettaUserMessageContentUnionTypeEnum];\n\nexport type LettaUserMessageContentUnion = TextContent & {\n type?: LettaUserMessageContentUnionTypeEnum;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const LLMConfigModelEndpointTypeEnum = {\n openai: 'openai',\n anthropic: 'anthropic',\n cohere: 'cohere',\n google_ai: 'google_ai',\n google_vertex: 'google_vertex',\n azure: 'azure',\n groq: 'groq',\n ollama: 'ollama',\n webui: 'webui',\n 'webui-legacy': 'webui-legacy',\n lmstudio: 'lmstudio',\n 'lmstudio-legacy': 'lmstudio-legacy',\n 'lmstudio-chatcompletions': 'lmstudio-chatcompletions',\n llamacpp: 'llamacpp',\n koboldcpp: 'koboldcpp',\n vllm: 'vllm',\n 'hugging-face': 'hugging-face',\n mistral: 'mistral',\n together: 'together',\n bedrock: 'bedrock',\n deepseek: 'deepseek',\n xai: 'xai',\n} as const;\n\nexport type LLMConfigModelEndpointTypeEnum =\n (typeof LLMConfigModelEndpointTypeEnum)[keyof typeof LLMConfigModelEndpointTypeEnum];\n\n/**\n * @description Configuration for a Language Model (LLM) model. This object specifies all the information necessary to access an LLM model to usage with Letta, except for secret keys.\\n\\nAttributes:\\n model (str): The name of the LLM model.\\n model_endpoint_type (str): The endpoint type for the model.\\n model_endpoint (str): The endpoint for the model.\\n model_wrapper (str): The wrapper for the model. This is used to wrap additional text around the input/output of the model. This is useful for text-to-text completions, such as the Completions API in OpenAI.\\n context_window (int): The context window size for the model.\\n put_inner_thoughts_in_kwargs (bool): Puts `inner_thoughts` as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.\\n temperature (float): The temperature to use when generating text with the model. A higher temperature will result in more random text.\\n max_tokens (int): The maximum number of tokens to generate.\n */\nexport type LLMConfig = {\n /**\n * @description LLM model name.\n * @type string\n */\n model: string;\n /**\n * @description The endpoint type for the model.\n * @type string\n */\n model_endpoint_type: LLMConfigModelEndpointTypeEnum;\n /**\n * @description The endpoint for the model.\n */\n model_endpoint?: string | null;\n /**\n * @description The wrapper for the model.\n */\n model_wrapper?: string | null;\n /**\n * @description The context window size for the model.\n * @type integer\n */\n context_window: number;\n /**\n * @description Puts \\'inner_thoughts\\' as a kwarg in the function call if this is set to True. This helps with function calling performance and also the generation of inner thoughts.\n * @default true\n */\n put_inner_thoughts_in_kwargs?: boolean | null;\n /**\n * @description The handle for this config, in the format provider/model-name.\n */\n handle?: string | null;\n /**\n * @description The temperature to use when generating text with the model. A higher temperature will result in more random text.\n * @default 0.7\n * @type number | undefined\n */\n temperature?: number;\n /**\n * @description The maximum number of tokens to generate. If not set, the model will use its default value.\n * @default 4096\n */\n max_tokens?: number | null;\n /**\n * @description Whether or not the model should use extended thinking if it is a \\'reasoning\\' style model\n * @default false\n * @type boolean | undefined\n */\n enable_reasoner?: boolean;\n /**\n * @description Configurable thinking budget for extended thinking, only used if enable_reasoner is True. Minimum value is 1024.\n * @default 0\n * @type integer | undefined\n */\n max_reasoning_tokens?: number;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const managerTypeEnum = {\n round_robin: 'round_robin',\n supervisor: 'supervisor',\n dynamic: 'dynamic',\n sleeptime: 'sleeptime',\n swarm: 'swarm',\n} as const;\n\nexport type ManagerTypeEnum =\n (typeof managerTypeEnum)[keyof typeof managerTypeEnum];\n\nexport type ManagerType = ManagerTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const MCPServerTypeEnum = {\n sse: 'sse',\n stdio: 'stdio',\n} as const;\n\nexport type MCPServerTypeEnum =\n (typeof MCPServerTypeEnum)[keyof typeof MCPServerTypeEnum];\n\nexport type MCPServerType = MCPServerTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { LettaMessageContentUnion } from './LettaMessageContentUnion.ts';\n\nexport const messageCreateRoleEnum = {\n user: 'user',\n system: 'system',\n} as const;\n\nexport type MessageCreateRoleEnum =\n (typeof messageCreateRoleEnum)[keyof typeof messageCreateRoleEnum];\n\n/**\n * @description Request to create a message\n */\nexport type MessageCreate = {\n /**\n * @description The role of the participant.\n * @type string\n */\n role: MessageCreateRoleEnum;\n /**\n * @description The content of the message.\n */\n content: LettaMessageContentUnion[] | string;\n /**\n * @description The name of the participant.\n */\n name?: string | null;\n /**\n * @description The offline threading id associated with this message\n */\n otid?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const messageRoleEnum = {\n assistant: 'assistant',\n user: 'user',\n tool: 'tool',\n function: 'function',\n system: 'system',\n} as const;\n\nexport type MessageRoleEnum =\n (typeof messageRoleEnum)[keyof typeof messageRoleEnum];\n\nexport type MessageRole = MessageRoleEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const omittedReasoningContentTypeEnum = {\n omitted_reasoning: 'omitted_reasoning',\n} as const;\n\nexport type OmittedReasoningContentTypeEnum =\n (typeof omittedReasoningContentTypeEnum)[keyof typeof omittedReasoningContentTypeEnum];\n\nexport type OmittedReasoningContent = {\n /**\n * @description Indicates this is an omitted reasoning step.\n * @default \"omitted_reasoning\"\n * @type string\n */\n type: OmittedReasoningContentTypeEnum;\n /**\n * @description The reasoning token count for intermediate reasoning content.\n * @type integer\n */\n tokens: number;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const reasoningContentTypeEnum = {\n reasoning: 'reasoning',\n} as const;\n\nexport type ReasoningContentTypeEnum =\n (typeof reasoningContentTypeEnum)[keyof typeof reasoningContentTypeEnum];\n\nexport type ReasoningContent = {\n /**\n * @description Indicates this is a reasoning/intermediate step.\n * @default \"reasoning\"\n * @type string\n */\n type: ReasoningContentTypeEnum;\n /**\n * @description Whether the reasoning content was generated by a reasoner model that processed this step.\n * @type boolean\n */\n is_native: boolean;\n /**\n * @description The intermediate reasoning or thought process content.\n * @type string\n */\n reasoning: string;\n /**\n * @description A unique identifier for this reasoning step.\n */\n signature?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const reasoningMessageMessageTypeEnum = {\n reasoning_message: 'reasoning_message',\n} as const;\n\nexport type ReasoningMessageMessageTypeEnum =\n (typeof reasoningMessageMessageTypeEnum)[keyof typeof reasoningMessageMessageTypeEnum];\n\nexport const reasoningMessageSourceEnum = {\n reasoner_model: 'reasoner_model',\n non_reasoner_model: 'non_reasoner_model',\n} as const;\n\nexport type ReasoningMessageSourceEnum =\n (typeof reasoningMessageSourceEnum)[keyof typeof reasoningMessageSourceEnum];\n\n/**\n * @description Representation of an agent\\'s internal reasoning.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n source (Literal[\\\"reasoner_model\\\", \\\"non_reasoner_model\\\"]): Whether the reasoning\\n content was generated natively by a reasoner model or derived via prompting\\n reasoning (str): The internal reasoning of the agent\\n signature (Optional[str]): The model-generated signature of the reasoning step\n */\nexport type ReasoningMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"reasoning_message\"\n * @type string\n */\n message_type: ReasoningMessageMessageTypeEnum;\n /**\n * @default \"non_reasoner_model\"\n * @type string | undefined\n */\n source?: ReasoningMessageSourceEnum;\n /**\n * @type string\n */\n reasoning: string;\n signature?: string | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const redactedReasoningContentTypeEnum = {\n redacted_reasoning: 'redacted_reasoning',\n} as const;\n\nexport type RedactedReasoningContentTypeEnum =\n (typeof redactedReasoningContentTypeEnum)[keyof typeof redactedReasoningContentTypeEnum];\n\nexport type RedactedReasoningContent = {\n /**\n * @description Indicates this is a redacted thinking step.\n * @default \"redacted_reasoning\"\n * @type string\n */\n type: RedactedReasoningContentTypeEnum;\n /**\n * @description The redacted or filtered intermediate reasoning content.\n * @type string\n */\n data: string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const sandboxTypeEnum = {\n e2b: 'e2b',\n local: 'local',\n} as const;\n\nexport type SandboxTypeEnum =\n (typeof sandboxTypeEnum)[keyof typeof sandboxTypeEnum];\n\nexport type SandboxType = SandboxTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const systemMessageMessageTypeEnum = {\n system_message: 'system_message',\n} as const;\n\nexport type SystemMessageMessageTypeEnum =\n (typeof systemMessageMessageTypeEnum)[keyof typeof systemMessageMessageTypeEnum];\n\n/**\n * @description A message generated by the system. Never streamed back on a response, only used for cursor pagination.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n content (str): The message content sent by the system\n */\nexport type SystemMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"system_message\"\n * @type string\n */\n message_type: SystemMessageMessageTypeEnum;\n /**\n * @description The message content sent by the system\n * @type string\n */\n content: string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const textContentTypeEnum = {\n text: 'text',\n} as const;\n\nexport type TextContentTypeEnum =\n (typeof textContentTypeEnum)[keyof typeof textContentTypeEnum];\n\nexport type TextContent = {\n /**\n * @description The type of the message.\n * @default \"text\"\n * @type string\n */\n type: TextContentTypeEnum;\n /**\n * @description The text content of the message.\n * @type string\n */\n text: string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolCallContentTypeEnum = {\n tool_call: 'tool_call',\n tool_return: 'tool_return',\n} as const;\n\nexport type ToolCallContentTypeEnum =\n (typeof toolCallContentTypeEnum)[keyof typeof toolCallContentTypeEnum];\n\nexport type ToolCallContent = {\n /**\n * @description Indicates this content represents a tool call event.\n * @default \"tool_call\"\n * @type string\n */\n type: ToolCallContentTypeEnum;\n /**\n * @description A unique identifier for this specific tool call instance.\n * @type string\n */\n id: string;\n /**\n * @description The name of the tool being called.\n * @type string\n */\n name: string;\n /**\n * @description The parameters being passed to the tool, structured as a dictionary of parameter names to values.\n * @type object\n */\n input: {\n [key: string]: any;\n };\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { ToolCall } from './ToolCall.ts';\nimport type { ToolCallDelta } from './ToolCallDelta.ts';\n\nexport const toolCallMessageMessageTypeEnum = {\n tool_call_message: 'tool_call_message',\n} as const;\n\nexport type ToolCallMessageMessageTypeEnum =\n (typeof toolCallMessageMessageTypeEnum)[keyof typeof toolCallMessageMessageTypeEnum];\n\n/**\n * @description A message representing a request to call a tool (generated by the LLM to trigger tool execution).\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n tool_call (Union[ToolCall, ToolCallDelta]): The tool call\n */\nexport type ToolCallMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"tool_call_message\"\n * @type string\n */\n message_type: ToolCallMessageMessageTypeEnum;\n tool_call: ToolCall | ToolCallDelta;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolReturnStatusEnum = {\n success: 'success',\n error: 'error',\n} as const;\n\nexport type ToolReturnStatusEnum =\n (typeof toolReturnStatusEnum)[keyof typeof toolReturnStatusEnum];\n\nexport type ToolReturn = {\n /**\n * @description The status of the tool call\n * @type string\n */\n status: ToolReturnStatusEnum;\n /**\n * @description Captured stdout (e.g. prints, logs) from the tool invocation\n */\n stdout?: string[] | null;\n /**\n * @description Captured stderr from the tool invocation\n */\n stderr?: string[] | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolReturnMessageMessageTypeEnum = {\n tool_return_message: 'tool_return_message',\n} as const;\n\nexport type ToolReturnMessageMessageTypeEnum =\n (typeof toolReturnMessageMessageTypeEnum)[keyof typeof toolReturnMessageMessageTypeEnum];\n\nexport const toolReturnMessageStatusEnum = {\n success: 'success',\n error: 'error',\n} as const;\n\nexport type ToolReturnMessageStatusEnum =\n (typeof toolReturnMessageStatusEnum)[keyof typeof toolReturnMessageStatusEnum];\n\n/**\n * @description A message representing the return value of a tool call (generated by Letta executing the requested tool).\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n tool_return (str): The return value of the tool\\n status (Literal[\\\"success\\\", \\\"error\\\"]): The status of the tool call\\n tool_call_id (str): A unique identifier for the tool call that generated this message\\n stdout (Optional[List(str)]): Captured stdout (e.g. prints, logs) from the tool invocation\\n stderr (Optional[List(str)]): Captured stderr from the tool invocation\n */\nexport type ToolReturnMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"tool_return_message\"\n * @type string\n */\n message_type: ToolReturnMessageMessageTypeEnum;\n /**\n * @type string\n */\n tool_return: string;\n /**\n * @type string\n */\n status: ToolReturnMessageStatusEnum;\n /**\n * @type string\n */\n tool_call_id: string;\n stdout?: string[] | null;\n stderr?: string[] | null;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nexport const toolTypeEnum = {\n custom: 'custom',\n letta_core: 'letta_core',\n letta_memory_core: 'letta_memory_core',\n letta_multi_agent_core: 'letta_multi_agent_core',\n letta_sleeptime_core: 'letta_sleeptime_core',\n external_composio: 'external_composio',\n external_langchain: 'external_langchain',\n external_mcp: 'external_mcp',\n} as const;\n\nexport type ToolTypeEnum = (typeof toolTypeEnum)[keyof typeof toolTypeEnum];\n\nexport type ToolType = ToolTypeEnum;\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { LettaUserMessageContentUnion } from './LettaUserMessageContentUnion.ts';\n\nexport const userMessageMessageTypeEnum = {\n user_message: 'user_message',\n} as const;\n\nexport type UserMessageMessageTypeEnum =\n (typeof userMessageMessageTypeEnum)[keyof typeof userMessageMessageTypeEnum];\n\n/**\n * @description A message sent by the user. Never streamed back on a response, only used for cursor pagination.\\n\\nArgs:\\n id (str): The ID of the message\\n date (datetime): The date the message was created in ISO format\\n name (Optional[str]): The name of the sender of the message\\n content (Union[str, List[LettaUserMessageContentUnion]]): The message content sent by the user (can be a string or an array of multi-modal content parts)\n */\nexport type UserMessage = {\n /**\n * @type string\n */\n id: string;\n /**\n * @type string, date-time\n */\n date: string;\n name?: string | null;\n otid?: string | null;\n /**\n * @default \"user_message\"\n * @type string\n */\n message_type: UserMessageMessageTypeEnum;\n /**\n * @description The message content sent by the user (can be a string or an array of multi-modal content parts)\n */\n content: LettaUserMessageContentUnion[] | string;\n};\n", "/**\n * Generated by Kubb (https://kubb.dev/).\n * Do not edit manually.\n */\n\nimport type { WebSearchOptionsUserLocation } from './WebSearchOptionsUserLocation.ts';\n\nexport const webSearchOptionsSearchContextSizeEnum = {\n low: 'low',\n medium: 'medium',\n high: 'high',\n} as const;\n\nexport type WebSearchOptionsSearchContextSizeEnum =\n (typeof webSearchOptionsSearchContextSizeEnum)[keyof typeof webSearchOptionsSearchContextSizeEnum];\n\nexport type WebSearchOptions = {\n /**\n * @type string | undefined\n */\n search_context_size?: WebSearchOptionsSearchContextSizeEnum;\n user_location?: WebSearchOptionsUserLocation | null;\n};\n"],
|
5
|
+
"mappings": ";;;;;;;AAEe,SAAR,KAAsB,IAAI,SAAS;AACxC,SAAO,SAAS,OAAO;AACrB,WAAO,GAAG,MAAM,SAAS,SAAS;AAAA,EACpC;AACF;;;ACAA,IAAM,EAAC,SAAQ,IAAI,OAAO;AAC1B,IAAM,EAAC,eAAc,IAAI;AAEzB,IAAM,SAAU,4BAAS,WAAS;AAC9B,QAAM,MAAM,SAAS,KAAK,KAAK;AAC/B,SAAO,MAAM,GAAG,MAAM,MAAM,GAAG,IAAI,IAAI,MAAM,GAAG,EAAE,EAAE,YAAY;AACpE,GAAG,uBAAO,OAAO,IAAI,CAAC;AAEtB,IAAM,aAAa,CAAC,SAAS;AAC3B,SAAO,KAAK,YAAY;AACxB,SAAO,CAAC,UAAU,OAAO,KAAK,MAAM;AACtC;AAEA,IAAM,aAAa,UAAQ,WAAS,OAAO,UAAU;AASrD,IAAM,EAAC,QAAO,IAAI;AASlB,IAAM,cAAc,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ACR,YAAY;AAAA,EACZ,mBAAmB;AAAA,EACnB,wBAAwB;AAAA,EACxB,sBAAsB;AAAA,EACtB,mBAAmB;AAAA,EACnB,oBAAoB;AAAA,EACpB,cAAc;AAChB;;;ACPO,IAAM,6BAA6B;AAAA,EACxC,cAAc;AAChB;;;ACFO,IAAM,wCAAwC;AAAA,EACnD,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,MAAM;AACR;",
|
6
|
+
"names": ["prototype", "descriptors", "filter", "hasOwnProperty", "filter", "prototype", "toString", "encode", "isFormData", "isFileList", "transitional", "filter", "self", "prototype", "validateStatus", "origin", "merge", "_config", "transitional", "signal", "done", "res", "validators", "transitional", "Axios", "AxiosError", "CanceledError", "isCancel", "CancelToken", "VERSION", "all", "isAxiosError", "spread", "toFormData", "AxiosHeaders", "HttpStatusCode", "mergeConfig", "axios_default", "axios_default", "axios_default", "queryOptions", "queryOptions", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "queryOptions", "useQuery", "axios_default", "queryOptions", "useSuspenseQuery", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default", "useMutation", "axios_default"]
|
7
7
|
}
|