Reference for Item and ServerItem types for managing quantifiable resources.
Items represent quantifiable resources in your application, such as credits, API calls, storage quotas, or subscription allowances. They can be associated with users, teams, or custom customers and are managed through Hexclave’s payment system.On this page:
The Item type represents a quantifiable resource that can be consumed or managed within your application. Items are typically obtained through purchases, subscriptions, or manual allocation.Items can be retrieved through:
The ServerItem type extends Item with additional server-side methods for modifying quantities. This type is only available in server-side contexts and provides race-condition-safe operations for managing item quantities.Server items can be retrieved through:
The tryDecreaseQuantity() method is particularly valuable for prepaid credit
systems where operations require sufficient balance verification before
proceeding.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Hexclave Documentation","colors":{"primary":"#6b5df7","light":"#8b7cf9","dark":"#6b5df7"},"logo":{"light":"https://mintcdn.com/stackauth-e0affa27/uiPIBnR--4TpVViy/images/logo-light.svg?fit=max\u0026auto=format\u0026n=uiPIBnR--4TpVViy\u0026q=85\u0026s=324c0dabdde4e2afbc6c6fdffd27faa5","dark":"https://mintcdn.com/stackauth-e0affa27/uiPIBnR--4TpVViy/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=uiPIBnR--4TpVViy\u0026q=85\u0026s=1921a9c700621d62a5c10432aab604fa"},"favicon":"https://mintcdn.com/stackauth-e0affa27/k-Ay5mXIJgUwMfLq/images/favicon.ico?fit=max\u0026auto=format\u0026n=k-Ay5mXIJgUwMfLq\u0026q=85\u0026s=b0dcacf508e9b3c70f836c6f495db05b","background":{"color":{"dark":"#09090b"}},"navbar":{"links":[{"href":"https://github.com/hexclave/hexclave","type":"github"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.hexclave.com"}},"footer":{"socials":{"x":"https://x.com/hexclave","github":"https://github.com/hexclave/hexclave","discord":"https://discord.hexclave.com"}},"seo":{"indexing":"all"},"fonts":{"heading":{"family":"Geist","weight":500},"body":{"family":"Geist","weight":400}},"contextual":{"options":["copy","view","assistant","chatgpt","claude","perplexity","grok","aistudio","devin","windsurf","mcp","cursor","vscode","devin-mcp"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"stackauth-e0affa27","hasAudioNarration":false,"actualSubdomain":"stackauth-e0affa27","customDomains":["docs.hexclave.com"],"gitSource":{"type":"github","owner":"hexclave","repo":"hexclave","deployBranch":"main","contentDirectory":"docs-mintlify","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af7566e75f3e5c02082e1dc","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"REST API","count":188},{"language":"default","tag":"Server API","count":104},{"language":"default","tag":"Client API","count":73},{"language":"default","tag":"Documentation","count":68},{"language":"default","tag":"Apps","count":48},{"language":"default","tag":"Teams","count":42},{"language":"default","tag":"Authentication","count":24},{"language":"default","tag":"Payments","count":19},{"language":"default","tag":"API Keys","count":18},{"language":"default","tag":"SDK Reference","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"ul.sidebar-group>li>button>div:first-child,ul.sidebar-group>li>a>div:first-child{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}ul.sidebar-group>li>button>img,ul.sidebar-group>li>button>div:first-child>img,ul.sidebar-group>li>a>div:first-child>img{border:1px solid transparent!important;border-radius:30%!important;padding:2px;display:block;box-sizing:content-box;background:linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) padding-box,\n linear-gradient(135deg, #cbd5e1 0%, #94a3b8 52%, #cbd5e1 100%) border-box!important;box-shadow:0 2px 6px rgba(15, 23, 42, 0.18),\n inset 0 0 0 1px rgba(255, 255, 255, 0.55)}html.dark ul.sidebar-group>li>button>img,html.dark ul.sidebar-group>li>button>div:first-child>img,html.dark ul.sidebar-group>li>a>div:first-child>img,:root[data-theme=\"dark\"] ul.sidebar-group>li>button>img,:root[data-theme=\"dark\"] ul.sidebar-group>li>button>div:first-child>img,:root[data-theme=\"dark\"] ul.sidebar-group>li>a>div:first-child>img{border:1px solid transparent!important;background:linear-gradient(135deg, #e9cfaf 0%, #f6f3ee 100%) padding-box,\n linear-gradient(135deg, #b18a67 0%, #f2dcc2 52%, #b18a67 100%) border-box!important;box-shadow:0 6px 14px rgba(245, 186, 104, 0.22),\n inset 0 0 0 1px rgba(0, 0, 0, 0.1);filter:invert(1)}.showcase-card{aspect-ratio:16 / 9;display:block;overflow:hidden;position:relative;transition:box-shadow 150ms ease, transform 150ms ease}.showcase-card:hover{box-shadow:0 24px 52px rgba(15, 23, 42, 0.24)!important;transform:translateY(-2px)}.showcase-card .showcase-card-image{border-radius:0!important;height:100%!important;inset:0!important;margin:0!important;max-width:none!important;object-fit:cover!important;position:absolute!important;transition:transform 150ms ease;transform:scale(1);width:100%!important}.showcase-card:hover .showcase-card-image{transform:scale(1.18)!important}"}]}
{"page":{"pagePath":"sdk/types/item","slug":"/sdk/types/item","pageMetadata":{"title":"Item","description":"Reference for Item and ServerItem types for managing quantifiable resources.","sidebarTitle":"Item","mode":"wide","href":"/sdk/types/item"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Reference for Item and ServerItem types for managing quantifiable resources.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const MethodReturns=({type,children})=>{const{ContentSection}=_provideComponents()||{};if(!ContentSection)_missingMdxReference(`ContentSection`,true);return _jsxs(ContentSection,{title:`Returns`,children:[_jsx(`code`,{className:`mint-inline-flex mint-rounded-md mint-border mint-border-zinc-950/10 mint-bg-zinc-950/[0.04] mint-px-2 mint-py-0.5 mint-text-[13px] mint-font-medium mint-text-zinc-950 dark:mint-border-white/10 dark:mint-bg-white/[0.08] dark:mint-text-white`,children:type}),children?_jsx(`div`,{className:`mint-text-sm mint-leading-6 mint-text-zinc-700 dark:mint-text-zinc-300`,children}):null]})};const MethodLayout=({children})=>_jsx(`div`,{className:`mint-grid mint-gap-4 md:mint-grid-cols-2 md:mint-items-start xl:mint-gap-6`,children});const MethodContent=({children})=>_jsx(`div`,{className:`mint-min-w-0 mint-space-y-4`,children});const MethodAside=({title,children})=>_jsxs(`div`,{className:`mint-min-w-0 mint-self-start mint-space-y-4 mint-rounded-2xl mint-border mint-border-zinc-950/10 mint-bg-zinc-950/[0.02] mint-p-4 dark:mint-border-white/10 dark:mint-bg-white/[0.03]`,children:[title?_jsx(`p`,{className:`mint-m-0 mint-text-sm mint-font-medium mint-text-zinc-950 dark:mint-text-white`,children:title}):null,_jsx(`div`,{className:`mint-space-y-4`,children})]});const ContentSection=({title,children})=>_jsxs(`div`,{className:`mint-space-y-3`,children:[title?_jsx(`p`,{className:`mint-m-0 mint-text-sm mint-font-medium mint-text-zinc-950 dark:mint-text-white`,children:title}):null,_jsx(`div`,{className:`mint-space-y-3`,children})]});const CollapsibleTypesSection=({type,property,signature,defaultOpen=false,deprecated=false,badge,children})=>{const{Badge}=_provideComponents()||{};if(!Badge)_missingMdxReference(`Badge`,true);const id=`${String(type??``).toLowerCase().replace(/[^a-z0-9]/g,``)}${String(property??``).toLowerCase().replace(/[^a-z0-9]/g,``)}`;const[isOpen,setIsOpen]=useState(defaultOpen);useEffect(()=>{if(typeof window===`undefined`){return undefined}const syncWithHash=()=>{if(window.location.hash===`#${id}`){setIsOpen(true)}};syncWithHash();window.addEventListener(`hashchange`,syncWithHash);return()=>window.removeEventListener(`hashchange`,syncWithHash)},[id]);const label=signature?`${property}(${signature})`:property;const fullLabel=type?`${type}.${label}`:label;return _jsxs(`details`,{id,open:isOpen,onToggle:event=>setIsOpen(event.currentTarget.open),className:`not-prose mint-my-4 mint-scroll-mt-24 mint-overflow-hidden mint-rounded-2xl mint-border mint-bg-white dark:mint-bg-zinc-950 ${deprecated?`mint-border-orange-400/40 dark:mint-border-orange-500/30`:`mint-border-zinc-950/10 dark:mint-border-white/10`}`,children:[_jsx(`summary`,{className:`mint-cursor-pointer mint-list-none mint-px-4 mint-py-4 [\u0026::-webkit-details-marker]:mint-hidden`,children:_jsxs(`div`,{className:`mint-flex mint-items-center mint-gap-3`,children:[_jsx(`code`,{className:`mint-text-[15px] mint-font-medium ${deprecated?`mint-text-zinc-500 mint-line-through mint-decoration-zinc-400/60 dark:mint-text-zinc-400 dark:mint-decoration-zinc-500/60`:`mint-text-zinc-950 dark:mint-text-white`}`,children:fullLabel}),_jsxs(`span`,{className:`mint-ml-auto mint-flex mint-items-center mint-gap-2`,children:[deprecated?_jsx(Badge,{color:`orange`,size:`sm`,shape:`pill`,children:`deprecated`}):null,badge??null,_jsx(`span`,{\"aria-hidden\":`true`,className:`mint-text-sm mint-text-zinc-500 mint-transition-transform dark:mint-text-zinc-400`,children:isOpen?`▾`:`›`})]})]})}),_jsx(`div`,{className:`mint-border-t mint-border-zinc-950/10 mint-px-4 mint-py-5 dark:mint-border-white/10`,children})]})};const ClickableTableOfContents=({title,code})=>{const _components={a:`a`,..._provideComponents()};const lines=String(code??``).replace(/\\r\\n/g,`\n`).split(`\n`);return _jsxs(`div`,{className:`not-prose mint-my-6 mint-overflow-hidden mint-rounded-2xl mint-border mint-border-zinc-950/10 mint-bg-zinc-950/[0.03] dark:mint-border-white/10 dark:mint-bg-white/[0.03]`,children:[title?_jsx(`div`,{className:`mint-border-b mint-border-zinc-950/10 mint-px-4 mint-py-3 mint-text-sm mint-font-medium mint-text-zinc-950/80 dark:mint-border-white/10 dark:mint-text-white/80`,children:title}):null,_jsx(`pre`,{className:`mint-overflow-x-auto mint-px-2 mint-py-3 mint-text-[13px] mint-leading-6 mint-text-zinc-900 dark:mint-text-zinc-100`,children:_jsx(`code`,{children:lines.map((line,index)=>{if(line.trim().startsWith(`// NEXT_LINE_PLATFORM`)){return null}const match=line.match(/^(.*?)(?:\\s*\\/\\/\\s*\\$stack-link-to:(#[a-zA-Z0-9_-]+))\\s*$/);const href=match?.[2]??null;const text=match?.[1]??line;if(text.trim()===``){return _jsx(`span`,{className:`mint-block mint-h-6`},`blank-${index}`)}const content=_jsx(`span`,{className:`mint-block mint-whitespace-pre mint-rounded-lg mint-px-3 mint-py-0.5`,children:text.replace(/\\s+$/,``)});if(!href){return _jsx(`span`,{className:`mint-block mint-text-zinc-700 dark:mint-text-zinc-300`,children:content},`line-${index}`)}return _jsx(_components.a,{href,className:`mint-block mint-no-underline mint-transition-colors hover:mint-bg-zinc-950/[0.04] hover:mint-text-zinc-950 dark:hover:mint-bg-white/[0.05] dark:hover:mint-text-white`,children:content},`line-${index}`)})})})]})};const AsideSection=({title,children})=>_jsxs(`div`,{className:`mint-space-y-3`,children:[title?_jsx(`p`,{className:`mint-m-0 mint-text-sm mint-font-medium mint-text-zinc-950 dark:mint-text-white`,children:title}):null,_jsx(`div`,{className:`mint-space-y-3`,children})]});const ItemSection=props=>{const{Badge}=_provideComponents()||{};if(!Badge)_missingMdxReference(`Badge`,true);return _jsx(CollapsibleTypesSection,{badge:_jsx(Badge,{color:`green`,size:`sm`,shape:`pill`,children:`item`}),...props})};const ServerItemSection=props=>{const{Badge}=_provideComponents()||{};if(!Badge)_missingMdxReference(`Badge`,true);return _jsx(CollapsibleTypesSection,{badge:_jsx(Badge,{color:`blue`,size:`sm`,shape:`pill`,children:`serverItem`}),...props})};function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,Tip,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Items represent quantifiable resources in your application, such as credits, API calls, storage quotas, or subscription allowances. They can be associated with users, teams, or custom customers and are managed through Hexclave’s payment system.`}),`\n`,_jsx(_components.p,{children:`On this page:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#item`,children:`Item`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`#serveritem`,children:`ServerItem`})}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`1`,id:`item`,children:_jsx(_components.code,{children:`Item`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`Item`}),` type represents a quantifiable resource that can be consumed or managed within your application. Items are typically obtained through purchases, subscriptions, or manual allocation.`]}),`\n`,_jsx(_components.p,{children:`Items can be retrieved through:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sdk/types/user#currentusergetitem`,children:_jsx(_components.code,{children:`user.getItem()`})})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/sdk/types/user#currentuseruseitem`,children:_jsx(_components.code,{children:`user.useItem()`})}),` (React hook)`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sdk/types/team#teamgetitem`,children:_jsx(_components.code,{children:`team.getItem()`})})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/sdk/types/team#teamuseitem`,children:_jsx(_components.code,{children:`team.useItem()`})}),` (React hook)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`table-of-contents`,children:`Table of Contents`}),`\n`,_jsx(_MdxComponentBoundary,{name:`ClickableTableOfContents`,children:_jsx(ClickableTableOfContents,{title:`Item Table of Contents`,code:`type Item = {\ndisplayName: string; //$stack-link-to:#itemdisplayname\nquantity: number; //$stack-link-to:#itemquantity\nnonNegativeQuantity: number; //$stack-link-to:#itemnonnegativequantity\n};`})}),`\n`,_jsx(Heading,{level:`2`,id:`properties`,children:`Properties`}),`\n`,_jsx(_MdxComponentBoundary,{name:`ItemSection`,children:_jsx(ItemSection,{type:`item`,property:`displayName`,defaultOpen:false,children:_jsx(_MdxComponentBoundary,{name:`MethodLayout`,children:_jsxs(MethodLayout,{children:[_jsx(_MdxComponentBoundary,{name:`MethodContent`,children:_jsx(MethodContent,{children:_jsx(_components.p,{children:`The human-readable name of the item as configured in your Hexclave project settings.`})})}),_jsx(_MdxComponentBoundary,{name:`MethodAside`,children:_jsx(MethodAside,{title:`Type Definition`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`typescript declare const displayName: string; `})})})})]})})})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ItemSection`,children:_jsx(ItemSection,{type:`item`,property:`quantity`,defaultOpen:false,children:_jsx(_MdxComponentBoundary,{name:`MethodLayout`,children:_jsxs(MethodLayout,{children:[_jsx(_MdxComponentBoundary,{name:`MethodContent`,children:_jsx(MethodContent,{children:_jsx(_components.p,{children:`The current quantity. This value can be negative, which is useful for tracking overdrafts or pending charges.`})})}),_jsx(_MdxComponentBoundary,{name:`MethodAside`,children:_jsx(MethodAside,{title:`Type Definition`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`typescript declare const quantity: number; `})})})})]})})})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ItemSection`,children:_jsx(ItemSection,{type:`item`,property:`nonNegativeQuantity`,defaultOpen:false,children:_jsx(_MdxComponentBoundary,{name:`MethodLayout`,children:_jsxs(MethodLayout,{children:[_jsx(_MdxComponentBoundary,{name:`MethodContent`,children:_jsx(MethodContent,{children:_jsxs(_components.p,{children:[`The quantity clamped to a minimum of 0. Equivalent to `,_jsx(_components.code,{children:`Math.max(0, quantity)`}),`. Useful for display purposes when you don’t want to show negative values to users.`]})})}),_jsx(_MdxComponentBoundary,{name:`MethodAside`,children:_jsx(MethodAside,{title:`Type Definition`,children:_jsx(_components.p,{children:_jsx(_components.code,{children:`typescript declare const nonNegativeQuantity: number; `})})})})]})})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`1`,id:`serveritem`,children:_jsx(_components.code,{children:`ServerItem`})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`ServerItem`}),` type extends `,_jsx(_components.code,{children:`Item`}),` with additional server-side methods for modifying quantities. This type is only available in server-side contexts and provides race-condition-safe operations for managing item quantities.`]}),`\n`,_jsx(_components.p,{children:`Server items can be retrieved through:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sdk/types/user#serverusergetitem`,children:_jsx(_components.code,{children:`serverUser.getItem()`})})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/sdk/types/user#serveruseruseitem`,children:_jsx(_components.code,{children:`serverUser.useItem()`})}),` (React hook)`]}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/sdk/types/team#serverteamgetitem`,children:_jsx(_components.code,{children:`serverTeam.getItem()`})})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/sdk/types/team#serverteamuseitem`,children:_jsx(_components.code,{children:`serverTeam.useItem()`})}),` (React hook)`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`table-of-contents-2`,children:`Table of Contents`}),`\n`,_jsx(_MdxComponentBoundary,{name:`ClickableTableOfContents`,children:_jsx(ClickableTableOfContents,{title:`ServerItem Table of Contents`,code:`type ServerItem =\n// Inherits all functionality from Item\n\u0026 Item; //$stack-link-to:#item\n\u0026 {\nincreaseQuantity(amount): Promise\u003cvoid>; //$stack-link-to:#serveritemincreasequantity\ndecreaseQuantity(amount): Promise\u003cvoid>; //$stack-link-to:#serveritemdecreasequantity\ntryDecreaseQuantity(amount): Promise\u003cboolean>; //$stack-link-to:#serveritemtrydecreasequantity\n};`})}),`\n`,_jsx(Heading,{level:`2`,id:`methods`,children:`Methods`}),`\n`,_jsx(_MdxComponentBoundary,{name:`ServerItemSection`,children:_jsx(ServerItemSection,{type:`serverItem`,property:`increaseQuantity`,signature:`amount`,defaultOpen:false,children:_jsx(_MdxComponentBoundary,{name:`MethodLayout`,children:_jsxs(MethodLayout,{children:[_jsx(_MdxComponentBoundary,{name:`MethodContent`,children:_jsxs(MethodContent,{children:[_jsx(_components.p,{children:`Increases the item quantity by the specified amount. This operation is atomic and safe for concurrent use.`}),_jsx(_MdxComponentBoundary,{name:`ContentSection`,children:_jsx(ContentSection,{title:`Parameters`,children:_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount`,children:_jsx(_components.p,{children:`The amount to increase the quantity by. Must be a positive number.`})})})}),_jsx(_MdxComponentBoundary,{name:`MethodReturns`,children:_jsx(MethodReturns,{type:`Promise\u003cvoid>`})})]})}),_jsx(_MdxComponentBoundary,{name:`MethodAside`,children:_jsxs(MethodAside,{children:[_jsx(_MdxComponentBoundary,{name:`AsideSection`,children:_jsx(AsideSection,{title:`Signature`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`declare`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` increaseQuantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`void`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>;`})]}),`\n`]})})})})}),_jsx(_MdxComponentBoundary,{name:`AsideSection`,children:_jsx(AsideSection,{title:`Examples`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` user`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` hexclaveServerApp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` credits`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getItem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` credits`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`increaseQuantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})})})]})})]})})})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ServerItemSection`,children:_jsx(ServerItemSection,{type:`serverItem`,property:`decreaseQuantity`,signature:`amount`,defaultOpen:false,children:_jsx(_MdxComponentBoundary,{name:`MethodLayout`,children:_jsxs(MethodLayout,{children:[_jsx(_MdxComponentBoundary,{name:`MethodContent`,children:_jsxs(MethodContent,{children:[_jsx(_components.p,{children:`Decreases the item quantity by the specified amount. This operation allows the quantity to go negative.`}),_jsxs(_components.p,{children:[`If you want to prevent the quantity from going below zero, use `,_jsx(_components.a,{href:`#serveritemtrydecreasequantity`,children:_jsx(_components.code,{children:`tryDecreaseQuantity()`})}),` instead.`]}),_jsx(_MdxComponentBoundary,{name:`ContentSection`,children:_jsx(ContentSection,{title:`Parameters`,children:_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount-1`,children:_jsx(_components.p,{children:`The amount to decrease the quantity by. Must be a positive number.`})})})}),_jsx(_MdxComponentBoundary,{name:`MethodReturns`,children:_jsx(MethodReturns,{type:`Promise\u003cvoid>`})})]})}),_jsx(_MdxComponentBoundary,{name:`MethodAside`,children:_jsxs(MethodAside,{children:[_jsx(_MdxComponentBoundary,{name:`AsideSection`,children:_jsx(AsideSection,{title:`Signature`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`declare`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` decreaseQuantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`void`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>;`})]}),`\n`]})})})})}),_jsx(_MdxComponentBoundary,{name:`AsideSection`,children:_jsx(AsideSection,{title:`Examples`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` user`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` hexclaveServerApp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` credits`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getItem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` credits`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`decreaseQuantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})})})})]})})]})})})}),`\n`,_jsx(_MdxComponentBoundary,{name:`ServerItemSection`,children:_jsx(ServerItemSection,{type:`serverItem`,property:`tryDecreaseQuantity`,signature:`amount`,defaultOpen:false,children:_jsx(_MdxComponentBoundary,{name:`MethodLayout`,children:_jsxs(MethodLayout,{children:[_jsx(_MdxComponentBoundary,{name:`MethodContent`,children:_jsxs(MethodContent,{children:[_jsxs(_components.p,{children:[`Attempts to decrease the item quantity by the specified amount, but only if the result would be non-negative. Returns `,_jsx(_components.code,{children:`true`}),` if the operation succeeded, `,_jsx(_components.code,{children:`false`}),` if it would result in a negative quantity.`]}),_jsx(_components.p,{children:`This method is race-condition-safe and is ideal for implementing prepaid credit systems where you need to ensure sufficient balance before allowing an operation.`}),_jsx(_MdxComponentBoundary,{name:`ContentSection`,children:_jsx(ContentSection,{title:`Parameters`,children:_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount-2`,children:_jsx(_components.p,{children:`The amount to decrease the quantity by. Must be a positive number.`})})})}),_jsx(_MdxComponentBoundary,{name:`MethodReturns`,children:_jsx(MethodReturns,{type:`Promise\u003cboolean>`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` if the quantity was successfully decreased, `,_jsx(_components.code,{children:`false`}),` if the operation would result in a negative quantity.`]})})})]})}),_jsx(_MdxComponentBoundary,{name:`MethodAside`,children:_jsxs(MethodAside,{children:[_jsx(_MdxComponentBoundary,{name:`AsideSection`,children:_jsx(AsideSection,{title:`Signature`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`declare`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` tryDecreaseQuantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`amount`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`boolean`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`>;`})]}),`\n`]})})})})}),_jsx(_MdxComponentBoundary,{name:`AsideSection`,children:_jsx(AsideSection,{title:`Examples`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` user`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` hexclaveServerApp`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUser`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"user_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` credits`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getItem`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` success`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` credits`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`tryDecreaseQuantity`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`50`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`success`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Credits consumed successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`} `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Insufficient credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Not enough credits available\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})})]})})]})})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`tryDecreaseQuantity()`}),` method is particularly valuable for prepaid credit\nsystems where operations require sufficient balance verification before\nproceeding.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{MethodReturns,MethodLayout,MethodContent,MethodAside,ContentSection,CollapsibleTypesSection,ClickableTableOfContents,AsideSection,ItemSection,ServerItemSection,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Item","description":"Reference for Item and ServerItem types for managing quantifiable resources.","sidebarTitle":"Item","mode":"wide","href":"/sdk/types/item"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[149,747,")=>null;const MethodAside=()=>null;const ContentSection=()=>null;const CollapsibleTypesSection=()=>null;const ClickableTableOfContents=()=>null;const AsideSection=()=>null;const ItemSection=()=>null;const ServerItemSection=()=>null;const Me"],[979,6095,""],[35313,35340,""],[35453,35466,"MethodLayout,MethodContent,default:MDXCo"]]},"mdxExtracts":{"tableOfContents":[{"title":"Item","slug":"item","depth":1,"children":[]},{"title":"Table of Contents","slug":"table-of-contents","depth":2,"children":[]},{"title":"Properties","slug":"properties","depth":2,"children":[]},{"title":"ServerItem","slug":"serveritem","depth":1,"children":[]},{"title":"Table of Contents","slug":"table-of-contents-2","depth":2,"children":[]},{"title":"Methods","slug":"methods","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/stackauth-e0affa27/a388556aae374572/apps-sidebar-filter.js","/_mintlify/custom/stackauth-e0affa27/cf26f2a99aee0a67/code-language-labels.js","/_mintlify/custom/stackauth-e0affa27/6998b7709d699e76/hexclave.js"],"dynamicCss":".mint-m-0 {\n margin: 0px\n}\n.mint-my-4 {\n margin-top: 1rem;\n margin-bottom: 1rem\n}\n.mint-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem\n}\n.mint-ml-auto {\n margin-left: auto\n}\n.mint-block {\n display: block\n}\n.mint-flex {\n display: flex\n}\n.mint-inline-flex {\n display: inline-flex\n}\n.mint-grid {\n display: grid\n}\n.mint-h-6 {\n height: 1.5rem\n}\n.mint-min-w-0 {\n min-width: 0px\n}\n.mint-cursor-pointer {\n cursor: pointer\n}\n.mint-scroll-mt-24 {\n scroll-margin-top: 6rem\n}\n.mint-list-none {\n list-style-type: none\n}\n.mint-items-center {\n align-items: center\n}\n.mint-gap-2 {\n gap: 0.5rem\n}\n.mint-gap-3 {\n gap: 0.75rem\n}\n.mint-gap-4 {\n gap: 1rem\n}\n.mint-space-y-3 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse))\n}\n.mint-space-y-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1rem * var(--tw-space-y-reverse))\n}\n.mint-self-start {\n align-self: flex-start\n}\n.mint-overflow-hidden {\n overflow: hidden\n}\n.mint-overflow-x-auto {\n overflow-x: auto\n}\n.mint-whitespace-pre {\n white-space: pre\n}\n.mint-rounded-2xl {\n border-radius: 1rem\n}\n.mint-rounded-lg {\n border-radius: 0.5rem\n}\n.mint-rounded-md {\n border-radius: 0.375rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-border-b {\n border-bottom-width: 1px\n}\n.mint-border-t {\n border-top-width: 1px\n}\n.mint-border-orange-400\\/40 {\n border-color: rgb(251 146 60 / 0.4)\n}\n.mint-border-zinc-950\\/10 {\n border-color: rgb(9 9 11 / 0.1)\n}\n.mint-bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1))\n}\n.mint-bg-zinc-950\\/\\[0\\.02\\] {\n background-color: rgb(9 9 11 / 0.02)\n}\n.mint-bg-zinc-950\\/\\[0\\.03\\] {\n background-color: rgb(9 9 11 / 0.03)\n}\n.mint-bg-zinc-950\\/\\[0\\.04\\] {\n background-color: rgb(9 9 11 / 0.04)\n}\n.mint-p-4 {\n padding: 1rem\n}\n.mint-px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem\n}\n.mint-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem\n}\n.mint-px-4 {\n padding-left: 1rem;\n padding-right: 1rem\n}\n.mint-py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem\n}\n.mint-py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem\n}\n.mint-py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.mint-py-5 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem\n}\n.mint-text-\\[13px\\] {\n font-size: 13px\n}\n.mint-text-\\[15px\\] {\n font-size: 15px\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-leading-6 {\n line-height: 1.5rem\n}\n.mint-text-zinc-500 {\n --tw-text-opacity: 1;\n color: rgb(113 113 122 / var(--tw-text-opacity, 1))\n}\n.mint-text-zinc-700 {\n --tw-text-opacity: 1;\n color: rgb(63 63 70 / var(--tw-text-opacity, 1))\n}\n.mint-text-zinc-900 {\n --tw-text-opacity: 1;\n color: rgb(24 24 27 / var(--tw-text-opacity, 1))\n}\n.mint-text-zinc-950 {\n --tw-text-opacity: 1;\n color: rgb(9 9 11 / var(--tw-text-opacity, 1))\n}\n.mint-text-zinc-950\\/80 {\n color: rgb(9 9 11 / 0.8)\n}\n.mint-line-through {\n text-decoration-line: line-through\n}\n.mint-no-underline {\n text-decoration-line: none\n}\n.mint-decoration-zinc-400\\/60 {\n text-decoration-color: rgb(161 161 170 / 0.6)\n}\n.mint-transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.mint-transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.hover\\:mint-bg-zinc-950\\/\\[0\\.04\\]:hover {\n background-color: rgb(9 9 11 / 0.04)\n}\n.hover\\:mint-text-zinc-950:hover {\n --tw-text-opacity: 1;\n color: rgb(9 9 11 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-border-orange-500\\/30:is(.dark *) {\n border-color: rgb(249 115 22 / 0.3)\n}\n.dark\\:mint-border-white\\/10:is(.dark *) {\n border-color: rgb(255 255 255 / 0.1)\n}\n.dark\\:mint-bg-white\\/\\[0\\.03\\]:is(.dark *) {\n background-color: rgb(255 255 255 / 0.03)\n}\n.dark\\:mint-bg-white\\/\\[0\\.08\\]:is(.dark *) {\n background-color: rgb(255 255 255 / 0.08)\n}\n.dark\\:mint-bg-zinc-950:is(.dark *) {\n --tw-bg-opacity: 1;\n background-color: rgb(9 9 11 / var(--tw-bg-opacity, 1))\n}\n.dark\\:mint-text-white:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-white\\/80:is(.dark *) {\n color: rgb(255 255 255 / 0.8)\n}\n.dark\\:mint-text-zinc-100:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(244 244 245 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-zinc-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(212 212 216 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-zinc-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(161 161 170 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-decoration-zinc-500\\/60:is(.dark *) {\n text-decoration-color: rgb(113 113 122 / 0.6)\n}\n.dark\\:hover\\:mint-bg-white\\/\\[0\\.05\\]:hover:is(.dark *) {\n background-color: rgb(255 255 255 / 0.05)\n}\n.dark\\:hover\\:mint-text-white:hover:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n@media (min-width: 768px) {\n .md\\:mint-grid-cols-2 {\n grid-template-columns: repeat(2, minmax(0, 1fr))\n }\n .md\\:mint-items-start {\n align-items: flex-start\n }\n}\n@media (min-width: 1280px) {\n .xl\\:mint-gap-6 {\n gap: 1.5rem\n }\n}\n.\\[\\\u0026\\:\\:-webkit-details-marker\\]\\:mint-hidden::-webkit-details-marker {\n display: none\n}","subdomain":"stackauth-e0affa27","siteName":"Hexclave Documentation","title":"Item - Hexclave Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-05T00:11:09.925Z","originalFileLocation":"sdk/types/item.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Reference for Item and ServerItem types for managing quantifiable resources.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Hexclave Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Item - Hexclave Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reference for Item and ServerItem types for managing quantifiable resources.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Hexclave Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.hexclave.com/sdk/types/item\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://stackauth-e0affa27.mintlify.site/_mintlify/api/og/v2?division=Types\u0026amp;title=Item\u0026amp;description=Reference+for+Item+and+ServerItem+types+for+managing+quantifiable+resources.\u0026amp;theme=4ec09356fc0c2cec1f50b126\u0026amp;signature=8846316d3aee4068ebca1b781e6a6cf164619ab2d98d58c90eee978c64e80042\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Item - Hexclave Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reference for Item and ServerItem types for managing quantifiable resources.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://stackauth-e0affa27.mintlify.site/_mintlify/api/og/v2?division=Types\u0026amp;title=Item\u0026amp;description=Reference+for+Item+and+ServerItem+types+for+managing+quantifiable+resources.\u0026amp;theme=4ec09356fc0c2cec1f50b126\u0026amp;signature=8846316d3aee4068ebca1b781e6a6cf164619ab2d98d58c90eee978c64e80042\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/stackauth-e0affa27/rA-vORAf467cge76/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Hexclave Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6b5df7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.hexclave.com/sdk/types/item\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/sdk/types/item.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.hexclave.com/#organization\",\"name\":\"Hexclave Documentation\",\"url\":\"https://docs.hexclave.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/stackauth-e0affa27/uiPIBnR--4TpVViy/images/logo-light.svg?fit=max\u0026auto=format\u0026n=uiPIBnR--4TpVViy\u0026q=85\u0026s=324c0dabdde4e2afbc6c6fdffd27faa5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.hexclave.com#website\",\"name\":\"Hexclave Documentation\",\"url\":\"https://docs.hexclave.com\",\"publisher\":{\"@id\":\"https://docs.hexclave.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.hexclave.com/sdk/types/item#webpage\",\"url\":\"https://docs.hexclave.com/sdk/types/item\",\"name\":\"Item\",\"description\":\"Reference for Item and ServerItem types for managing quantifiable resources.\",\"dateModified\":\"2026-06-05T00:11:09.925Z\",\"isPartOf\":{\"@id\":\"https://docs.hexclave.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.hexclave.com/sdk/types/item#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.hexclave.com/sdk/types/item#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Types\",\"item\":\"https://docs.hexclave.com/sdk/types/user\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Item\",\"item\":\"https://docs.hexclave.com/sdk/types/item\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.hexclave.com/sdk/types/item#article\",\"headline\":\"Item\",\"name\":\"Item\",\"description\":\"Reference for Item and ServerItem types for managing quantifiable resources.\",\"url\":\"https://docs.hexclave.com/sdk/types/item\",\"mainEntityOfPage\":{\"@id\":\"https://docs.hexclave.com/sdk/types/item#webpage\"},\"dateModified\":\"2026-06-05T00:11:09.925Z\",\"publisher\":{\"@id\":\"https://docs.hexclave.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.hexclave.com#website\"}}]}\u003c/script>","agentPointerHref":"/sdk/types/item.md","siteName":"Hexclave Documentation","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"SDK Reference","pages":[{"title":"SDK Overview","sidebarTitle":"Overview","href":"/sdk/overview"},{"group":"Objects","pages":[{"title":"StackApp","sidebarTitle":"StackApp","mode":"wide","href":"/sdk/objects/hexclave-app"}]},{"group":"Types","pages":[{"title":"User","sidebarTitle":"User","mode":"wide","href":"/sdk/types/user"},{"title":"Team","sidebarTitle":"Team","mode":"wide","href":"/sdk/types/team"},{"title":"TeamUser","sidebarTitle":"TeamUser","mode":"wide","href":"/sdk/types/team-user"},{"title":"TeamPermission","sidebarTitle":"TeamPermission","mode":"wide","href":"/sdk/types/team-permission"},{"title":"TeamMemberProfile","sidebarTitle":"TeamProfile","mode":"wide","href":"/sdk/types/team-profile"},{"title":"ContactChannel","sidebarTitle":"ContactChannel","mode":"wide","href":"/sdk/types/contact-channel"},{"title":"SendEmailOptions","sidebarTitle":"Email","mode":"wide","href":"/sdk/types/email"},{"title":"ApiKey","sidebarTitle":"ApiKey","mode":"wide","href":"/sdk/types/api-key"},{"title":"Project","sidebarTitle":"Project","mode":"wide","href":"/sdk/types/project"},{"title":"ConnectedAccount","description":"Reference for ConnectedAccount types for OAuth connections.","sidebarTitle":"ConnectedAccount","mode":"wide","href":"/sdk/types/connected-account"},{"title":"Item","sidebarTitle":"Item","mode":"wide","href":"/sdk/types/item"},{"title":"Customer","description":"Reference for the Customer interface providing payment and item management capabilities.","sidebarTitle":"Customer","mode":"wide","href":"/sdk/types/customer"}]},{"group":"Hooks","pages":[{"title":"useHexclaveApp","sidebarTitle":"useHexclaveApp","icon":"react","mode":"wide","href":"/sdk/hooks/use-hexclave-app"},{"title":"useUser","sidebarTitle":"useUser","icon":"react","mode":"wide","href":"/sdk/hooks/use-user"}]}]},{"tab":"REST API","pages":[{"title":"REST API","href":"/api/overview"}]}]},"basePath":"","title":"Item - Hexclave Documentation","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}