{"_id":"@deyta-ai/sdk","_rev":"15-31ea583f2f773e6a779842da7d1d8db9","name":"@deyta-ai/sdk","dist-tags":{"latest":"0.7.1"},"versions":{"0.2.0":{"name":"@deyta-ai/sdk","version":"0.2.0","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.2.0","maintainers":[{"name":"miljantekic","email":"miljan.tekic@gmail.com"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"email":"support@deyta.ai"},"dist":{"shasum":"61b49282768952bde867d9360eddb723face86f0","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.2.0.tgz","fileCount":10,"integrity":"sha512-2eF3m8Gp9PtlstdZZ/iH3xpuhQL+kTNH5JB/GKx1VzNedi5ZO1h/gXAfRcFazIIRchJJK9LyoVYgTn8mb0/QLg==","signatures":[{"sig":"MEUCICnWz3uqAI9SCCSBn9NYTOo4n4Bc9fEauQnnJzXtBGeSAiEAxaXrnOyd/s4bG6NL/UNZaI2kews1zLrp40Z1ZeE5luI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":152523},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"10536df0650ed1b85f591c4af67be5a6c16f9f2d","scripts":{"test":"bun test","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit","prepublishOnly":"bun run clean && bun run type-check && bun test && bun run build"},"_npmUser":{"name":"miljantekic","email":"miljan.tekic@gmail.com"},"_npmVersion":"11.3.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, and integrations.","directories":{},"sideEffects":false,"_nodeVersion":"24.2.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.0_1777234333791_0.309886358425403","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@deyta-ai/sdk","version":"0.2.2","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.2.2","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"87f8c886793151d6ead29a7dcfe0935298ee3082","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.2.2.tgz","fileCount":10,"integrity":"sha512-38IzNg/TF74z6lz2pf17gSy8koiOE2gSuxw/9tt0DLRlbtPUvg2KbIKfAYFp2yBD44lNP/DtJc+kKxbF7BXNJA==","signatures":[{"sig":"MEYCIQC7Dmyr9pwNWi4b2QoIDCRAEInOdOpacLs4I3Po0ZWWFwIhAMscnY2sHGHXzACadNz58KWd4GREtneUsEHP5M2tQf0v","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":153398},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"0e75cedb731f0dc3da74c78bdc67ef6083c64d06","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, and integrations.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.2_1777285908849_0.12584196690613547","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@deyta-ai/sdk","version":"0.2.3","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.2.3","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"240b1c59b2fa6a566588bef70681ec8a15dc4be7","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.2.3.tgz","fileCount":10,"integrity":"sha512-48/GfuG/ZaOtxoUu2J8hyyNXr06b2W9QcedVemT4BDhqp2hvERiV1tziCL2h4Yd8OFWF5vKFf6etmmJ0HvWgJw==","signatures":[{"sig":"MEUCIQDw53QeRAbSoydUyFsttlbGm/U/6/7uZIuO9UXMU7Ea2AIgNB2fOAdKSrdC4IUTGI6ZNS/r87sa1HBcjE5XwSqlHrc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.2.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":156873},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"f3267536f30d5a0d5bf786e2f209a42ca302c5a5","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","type-check":"tsc --noEmit","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, and integrations.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.2.3_1777299771528_0.6420743975625989","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@deyta-ai/sdk","version":"0.3.0","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.3.0","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"6c33569c9a10cceaa4352dc8ce469bf676a542d3","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.3.0.tgz","fileCount":10,"integrity":"sha512-m0VeLk3wOvcP2zRYim8J5hRJo30x6zwHEgQord+rEWeOhuBgNjBEKkQyFX4X4pxhByyc7QrYI/HhjiPgG7U1EA==","signatures":[{"sig":"MEYCIQD7N4Jru2ePG7+4XEoEwyeZD0zh+JTnf3nNmAiHGXR5WwIhAIpQdLS9Ot6SMemqwymTievykSMIC6wTl0cDGhh9Vt8B","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":195726},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a5604859ccca97307b4e6d61f853ed0c1023a812","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.0_1777324421100_0.03783580395506747","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@deyta-ai/sdk","version":"0.3.1","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.3.1","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"485efdf3e6e011744fe521fca2da9a53cde8e5c8","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.3.1.tgz","fileCount":10,"integrity":"sha512-oSHndBTA70qYESz0maoeOql/k0Sp73Jd1P1+LVbFs3UEPF2XCYcf/iiw5Rbocxg8Hyk/mBRdSTSE358mdhPO8w==","signatures":[{"sig":"MEUCIHrYUr+3TPKqzcHPoVMv4cIKye8cOEpAppcUdt2Cd/G4AiEA543ionNwppl5r5i+2J+lPuPhR0VlYurWbYusqi6PBk4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.3.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":196105},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"35c6249322c90ad8cba484b65b4453dd38211896","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.3.1_1777335690804_0.2477742160520433","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@deyta-ai/sdk","version":"0.4.0","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.4.0","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"ee766f7e2e7923d746f573090d844d2915d7c4eb","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.4.0.tgz","fileCount":10,"integrity":"sha512-ZIchkugRWSu8slH4TXRvxFG3M9Ocp2pyRcjgSXszF2LPIOm2J3dLw7jSpXOiGmUZtEiktH84ns+qEY2+iglmcw==","signatures":[{"sig":"MEYCIQC03ySPP14k5rGzlcpo1ql6y9Z/epiQXCc+re47sPzxHQIhAPvKC1mNd3nsfqYqhrIq7LL9NXFCITkWTCfdP+qG/Cfi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.4.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":214978},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c31842018c5ee4a6f999fb49d43e2f2e1796bff9","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.0_1777383281895_0.31633648055703256","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@deyta-ai/sdk","version":"0.4.1","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.4.1","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"73ac561b8d0509731b8ef3ad3d2162283cfaf1bd","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.4.1.tgz","fileCount":10,"integrity":"sha512-9U8ldp4bC26n+6Y3ji5haUkfjAM+AqoQwfmZYZHHNnndxRzBffhfGZQ70i3aMFLx3nCsPcROiZLi4Mg7F2habQ==","signatures":[{"sig":"MEUCIEIuQaPn0Yy69rPaL0jTK4anPrBPHkk5p/2lFaDHbtiaAiEAojkWmzCKmXGpajgitaAhAuuB6GupVGMFa897+grRE9E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.4.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":223300},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"8a5a6117b6aab5e34d88b67a814b0bbc82644b02","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.4.1_1777407773243_0.3939353017004996","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@deyta-ai/sdk","version":"0.5.0","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.5.0","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"0dd671013b657014bd621fb1a28e87f53a4ee3b4","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.5.0.tgz","fileCount":10,"integrity":"sha512-O0hcuR2GYwOsqXG2Gp86nJCC/Exqw+hWLhPW6s668eZ3VAGtoDUDwghY0J0X138UUNZ5q/IbGWKa6Nx1QW3zsA==","signatures":[{"sig":"MEUCIHh3N7nymSd2rQELOK64GQvVlTpWZMoG48bzV3aupQb7AiEA/pO2B0HbieIHH0bQmpw6ZYbzimAHgJDIRUtSJu1FJvg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":270535},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"c69856da0ef0a174df60b686026fb692a37623bc","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.5.0_1777467941068_0.735185600989146","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@deyta-ai/sdk","version":"0.5.1","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.5.1","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"732595124155ebb04f45016319c10e7e9ccc6689","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.5.1.tgz","fileCount":10,"integrity":"sha512-uqF1HUIsapxg+YLAVd0sZVVBzCNZZkchCrxJHcWFQBzies7wH6XoltpFYQhlcMKxDuRgbYe280KBdLvx528i2Q==","signatures":[{"sig":"MEYCIQC2o0RPdBz98KWdBl5Fve1pWzC1fLhzjR7nDqK/AKaEfwIhAMpB2rUmt25Gbu5nmN2b3Naled/CyanNhCS+92BCVHIg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.5.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":266387},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a8a267aa990a16d89d5358a7f2cd5be63c99b4b8","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.5.1_1777557988854_0.847575905037192","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@deyta-ai/sdk","version":"0.5.2","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.5.2","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"b8a340bf00c6d691e9ee9dc816abb62cf037113c","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.5.2.tgz","fileCount":10,"integrity":"sha512-NZxuMX7KpJSEpQRKA6CZeRR8fCDXW9fG8TotoCKKIGUkkR39RG7RFh4+yvvQeLPpAvGq0I5hQ88+fTBAfMxmZA==","signatures":[{"sig":"MEYCIQCfawwCMd/artM9A94RcqEjMSciCbw2ah+AqKBFTKkGKgIhALoZ6BhguWWD/rmjpEe9G3Gg41WblMmR4Es6DXmpAnEe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.5.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":272161},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"2b1e6fb14ac1207502b464da20556e66f050b0ea","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.13.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.5.2_1778063743351_0.3626584163242479","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@deyta-ai/sdk","version":"0.6.0","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.6.0","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"94b759a6f5ed24326c56eccd94f71f7307248fdc","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.6.0.tgz","fileCount":10,"integrity":"sha512-0jiNoZl9POpWFyefwxWU+qu0PiQf54cEFKH0K3hNiGYzOQGxpv3hhHA+SHZdhYOWL5qxYMKi82zGbLWO5xDzRg==","signatures":[{"sig":"MEQCIChdd9Ay6XEUwv6rbfWfg3EFgLLuoc85gHmpuxrd9KCZAiAgjwQeHNz6hP+bvTaSi/XTsqhY1bu7lP7TcmqjT01QQg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":281261},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"26d175f729fd285c885f74a3a632a176325a80ec","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.15.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, integrations, and personas.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.6.0_1779369672627_0.32883717543267377","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@deyta-ai/sdk","version":"0.7.0","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","_id":"@deyta-ai/sdk@0.7.0","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"homepage":"https://docs.deyta.ai/sdk/typescript","bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"dist":{"shasum":"9327c1c137f16d36fe8e38057aeb8f3f7d135e2a","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.7.0.tgz","fileCount":10,"integrity":"sha512-yX+BtfFzc2pGFbhcH/iQZ+/hhQA1Vj7F5CvFUU1+c2m/MmqFq3A9d1Uf3BwdF98SdooNvCcMVYneJ6/UsxM4Vw==","signatures":[{"sig":"MEQCIB5gU1ieieGG93bqdcjWt82Jv/jSOelkU1b8JLXCfJAwAiAczhJHwB8MpAVyCZbmpIFXhEWWeCOMzRXiTdyQ9Ir2lg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.7.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":213577},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"fe1e43aa18426722ed7c97bf0200e7f15e27f65d","scripts":{"lint":"eslint src __tests__","test":"bun test","build":"tsup","clean":"rm -rf dist","smoke":"bun run scripts/smoke/all.ts","type-check":"tsc --noEmit","smoke:memory":"bun run scripts/smoke/memory.ts","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build","smoke:personas":"bun run scripts/smoke/personas.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"repository":{"url":"git+https://github.com/DeytaHQ/typescript-sdk.git","type":"git"},"_npmVersion":"11.18.0","description":"TypeScript SDK for the Deyta platform — memory, namespaces, and integrations.","directories":{},"sideEffects":false,"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^9.0.0","@eslint/js":"^9.0.0","@types/bun":"latest","typescript":"latest","@types/node":"^22.0.0","typescript-eslint":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.7.0_1782809941993_0.6030197848765131","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"@deyta-ai/sdk","version":"0.7.1","description":"TypeScript SDK for the Deyta platform — memory, namespaces, and integrations.","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"sideEffects":false,"scripts":{"build":"tsup","type-check":"tsc --noEmit","lint":"eslint src __tests__","test":"bun test","smoke":"bun run scripts/smoke/all.ts","smoke:namespaces":"bun run scripts/smoke/namespaces.ts","smoke:memory":"bun run scripts/smoke/memory.ts","smoke:integrations":"bun run scripts/smoke/integrations.ts","smoke:personas":"bun run scripts/smoke/personas.ts","clean":"rm -rf dist","prepublishOnly":"bun run clean && bun run type-check && bun run lint && bun test && bun run build"},"devDependencies":{"@eslint/js":"^9.0.0","@types/bun":"latest","@types/node":"^22.0.0","eslint":"^9.0.0","tsup":"^8.0.0","typescript":"latest","typescript-eslint":"^8.0.0"},"license":"MIT","author":{"name":"Deyta","email":"support@deyta.ai"},"homepage":"https://docs.deyta.ai/sdk/typescript","repository":{"type":"git","url":"git+https://github.com/DeytaHQ/typescript-sdk.git"},"bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"engines":{"node":">=20.0.0"},"publishConfig":{"access":"public"},"gitHead":"fc9ffb1fa0a4b943022eb90c6d0b809a3ff2b15b","_id":"@deyta-ai/sdk@0.7.1","_nodeVersion":"20.20.2","_npmVersion":"11.18.0","dist":{"integrity":"sha512-VpM5kNrG2kA/F5EYxsUMvlShyi90NGvkWLBRlyNFSmvK4LPV73CbJgZ/3oAyxLDlfP8+e41dV/oicC6F3kjKTA==","shasum":"467ffa67c4e3ed0a8b72198a15a32b382c23efb5","tarball":"https://registry.npmjs.org/@deyta-ai/sdk/-/sdk-0.7.1.tgz","fileCount":10,"unpackedSize":222159,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@deyta-ai%2fsdk@0.7.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIAzYqOphlhhCDEjBTJxpbJcova/5UZESttWMbFVj4KAPAiBtAYhiQVRocnEvqbd7EcYXJiEQiV/aJr3VEyW61DG34w=="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f81e3972-d4d8-480a-8396-dd4809e41571"}},"directories":{},"maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.7.1_1782834731257_0.7373966210237748"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-26T20:12:13.634Z","modified":"2026-06-30T15:52:11.722Z","0.2.0":"2026-04-26T20:12:13.998Z","0.2.2":"2026-04-27T10:31:49.016Z","0.2.3":"2026-04-27T14:22:51.674Z","0.3.0":"2026-04-27T21:13:41.245Z","0.3.1":"2026-04-28T00:21:30.944Z","0.4.0":"2026-04-28T13:34:42.057Z","0.4.1":"2026-04-28T20:22:53.410Z","0.5.0":"2026-04-29T13:05:41.249Z","0.5.1":"2026-04-30T14:06:29.014Z","0.5.2":"2026-05-06T10:35:43.503Z","0.6.0":"2026-05-21T13:21:12.788Z","0.7.0":"2026-06-30T08:59:02.150Z","0.7.1":"2026-06-30T15:52:11.384Z"},"bugs":{"url":"https://github.com/DeytaHQ/typescript-sdk/issues"},"author":{"name":"Deyta","email":"support@deyta.ai"},"license":"MIT","homepage":"https://docs.deyta.ai/sdk/typescript","keywords":["deyta","deyta-platform","memory","ai","llm","rag","agent-memory","sdk"],"repository":{"type":"git","url":"git+https://github.com/DeytaHQ/typescript-sdk.git"},"description":"TypeScript SDK for the Deyta platform — memory, namespaces, and integrations.","maintainers":[{"name":"deyta_kuzma","email":"nenad@deyta.ai"},{"name":"miljantekic","email":"miljan.tekic@gmail.com"},{"name":"leka-deyta","email":"leka@deyta.ai"}],"readme":"# @deyta-ai/sdk\n\nTypeScript SDK for the [Deyta](https://deyta.ai) platform — memory operations, namespace management, and integrations.\n\nZero runtime dependencies. Native `fetch`. Ships ESM and CJS. Recommended runtime: [Bun](https://bun.sh) or Node 20+.\n\n## Install\n\n```bash\nnpm install @deyta-ai/sdk\n# or\nbun add @deyta-ai/sdk\n```\n\n## Quick start\n\n```ts\nimport { Deyta } from \"@deyta-ai/sdk\";\n\nconst deyta = new Deyta({ apiKey: process.env.DEYTA_API_KEY! });\n\n// Store a memory\nawait deyta.memory.remember({\n  namespace_id: \"ns_123\",\n  content: \"The team standup is every Tuesday at 10am UTC.\",\n  title: \"Standup time\",\n});\n\n// Search memories\nconst result = await deyta.memory.recall({\n  namespace_id: \"ns_123\",\n  query: \"when is the standup?\",\n});\n```\n\n## Recommended pattern: namespace sub-client\n\nIf you'll issue several operations against the same namespace, scope the client once:\n\n```ts\nconst ns = deyta.namespaces.scope(\"ns_123\");\n// or by external reference:\nconst ns = deyta.namespaces.scopeByExternalRef(\"user-abc\");\n\nawait ns.remember({ content: \"...\" });\nawait ns.recall({ query: \"...\" });\nawait ns.ask({ query: \"...\" });\nawait ns.forget({ document_id: \"doc_456\" });\n\n// Namespace lifecycle\nconst meta = await ns.metadata();\nawait ns.delete();\n\n// Integrations scoped to this namespace\nconst connections = await ns.integrations.list();\nconst session = await ns.integrations.start({ provider: \"google_drive\" });\n```\n\nThe scope is a lightweight handle — no network call is made when constructing it. Personas expose the same pattern via [`deyta.personas.scope(...)`](#sub-client-scope).\n\n## Configuration\n\n```ts\nconst deyta = new Deyta({\n  apiKey: \"your-api-key\",     // Required.\n  baseUrl: \"https://...\",      // Optional. Falls back to DEYTA_BASE_URL env var, then https://api.deyta.ai.\n  timeout: 30_000,             // Optional. Per-request timeout in ms. Default: 30_000.\n  retries: {                   // Optional. Default: 2 retries with exponential backoff.\n    maxRetries: 2,\n    initialBackoffMs: 500,\n    maxBackoffMs: 8_000,\n    retryOn: [408, 429, 500, 502, 503, 504],\n  },\n  fetch: customFetch,          // Optional. Inject a fetch implementation (tests, polyfills).\n  logger: (event) => {         // Optional. Receives request/response/retry/error events.\n    console.debug(\"[deyta]\", event);\n  },\n});\n```\n\nRetries auto-apply to idempotent methods (`GET`, `DELETE`) on the configured HTTP statuses and on network errors. The `Retry-After` header is honored when present (both seconds and HTTP-date forms). `POST` requests are not retried automatically.\n\n## Memory\n\n### `remember`\n\n```ts\nconst result = await deyta.memory.remember({\n  namespace_id: \"ns_123\",\n  content: \"Important information to remember\",\n  title: \"Optional title\",\n  source: \"optional-source\",\n  metadata: { key: \"value\" },\n  ontology_id: \"optional-ontology-id\",\n});\n// result: { document_id, chunks_created, entities_extracted, relationships_created }\n```\n\n### `rememberBatch`\n\nIngest multiple documents in a single call. The method streams progress internally and resolves with the aggregate result:\n\n```ts\nconst result = await deyta.memory.rememberBatch({\n  namespace_id: \"ns_123\",\n  documents: [\n    { content: \"First document\", title: \"Doc 1\" },\n    { content: \"Second document\", title: \"Doc 2\", external_id: \"ext-2\" },\n  ],\n  entity_types: [\"person\", \"organization\"],\n  relationship_types: [\"works_at\"],\n});\n// result: { total, processed, skipped, failed, chunks, entities, relationships, documents[] }\n```\n\nPer-document `external_id` enables dedup — re-submitting a document with the same `external_id` will skip it instead of creating a duplicate.\n\nTrack progress with the `onProgress` callback:\n\n```ts\nconst result = await deyta.memory.rememberBatch(\n  {\n    namespace_id: \"ns_123\",\n    documents: docs,\n  },\n  {\n    timeout: 300_000,\n    onProgress: (event) => {\n      if (event.type === \"progress\") {\n        console.log(`${event.processed}/${event.total} documents`);\n      }\n    },\n  },\n);\n```\n\nAlso available on the namespace scope: `ns.rememberBatch({ documents: [...] })`.\n\n### `recall`\n\n```ts\nconst result = await deyta.memory.recall({\n  namespace_id: \"ns_123\",\n  query: \"what do we know about the project?\",\n  limit: 10,\n  mode: \"hybrid\",                              // \"vector\" | \"graph\" | \"hybrid\" | \"all\"\n  from: new Date(\"2026-04-01T00:00:00Z\"),      // Optional inclusive lower bound on event time\n  until: \"2026-04-30T23:59:59Z\",               // Optional inclusive upper bound (Date | ISO string)\n});\n// result: { query, namespace_id, documents, chunks, entities, relationships, usage, engine_info? }\n// Pass `verbose: true` to include the optional `engine_info` diagnostic blob.\n```\n\n`from` and `until` accept either a `Date` or an ISO-8601 string. The SDK serializes them to the wire format expected by the API.\n\n### `forget`\n\n```ts\nconst result = await deyta.memory.forget({\n  namespace_id: \"ns_123\",\n  document_id: \"doc_456\",\n});\n// result: { document_id, deleted }\n```\n\n### `ask`\n\n```ts\nconst result = await deyta.memory.ask({\n  namespace_id: \"ns_123\",\n  query: \"What are the key project milestones?\",\n  config: {\n    min_recall_limit: 3,\n    max_recall_limit: 20,\n    total_tokens_limit: 4_000,\n    enabled_tools: [\"recall\"],\n  },\n  from: new Date(\"2026-04-01T00:00:00Z\"),\n  until: new Date(\"2026-04-30T23:59:59Z\"),\n});\n// result: {\n//   answer_id: string;          // upstream run ID — empty string if absent\n//   answer: string;             // synthesized answer text\n//   sources: AskSource[];       // de-duplicated cited memories\n//   usage: AskUsage;            // aggregated token/request counts + per-source breakdown\n//   timing: AskTiming;          // started_at / finished_at / duration_ms\n// }\n```\n\nThe gateway normalizes the upstream agent's verbose streaming event log into this stable non-streaming shape — callers don't have to walk events.\n\n## Namespaces\n\n### Create\n\n```ts\nconst ns = await deyta.namespaces.create({\n  name: \"My Namespace\",\n  description: \"A namespace for my project\",\n  external_reference_id: \"my-app-user-123\",\n});\n```\n\n### List + iterate\n\n```ts\n// One page at a time\nconst { data, pagination } = await deyta.namespaces.list({ page: 1, page_size: 20 });\n\n// Or walk every page automatically\nfor await (const ns of deyta.namespaces.iterate({ page_size: 50 })) {\n  console.log(ns.id);\n}\n```\n\n### Get / delete\n\n```ts\nconst ns = await deyta.namespaces.get(\"ns_123\");\nconst ns = await deyta.namespaces.getByExternalRef(\"user-abc\");\nawait deyta.namespaces.delete(\"ns_123\");\n```\n\n## Integrations\n\n### List providers (org-level)\n\n```ts\nconst providers = await deyta.integrations.listProviders();\n```\n\n### Connections\n\nConnections target either a namespace or a persona via the typed `target` discriminator. Provide exactly one of `id` / `external_reference_id`. The endpoint returns a paginated `{ data, pagination }` envelope, so iterate explicitly or via the helper:\n\n```ts\n// One page at a time (namespace-targeted)\nconst { data, pagination } = await deyta.integrations.listConnections({\n  type: \"namespace\",\n  id: \"ns_123\",\n  page: 1,\n  page_size: 50,\n});\n\n// Persona-targeted\nconst persona = await deyta.integrations.listConnections({\n  type: \"persona\",\n  external_reference_id: \"user-abc\",\n});\n\n// Walk every page automatically\nfor await (const conn of deyta.integrations.iterateConnections(\n  { type: \"namespace\", id: \"ns_123\" },\n  { page_size: 50 },\n)) {\n  console.log(conn.id, conn.provider);\n}\n\n// Or via the namespace scope — target is captured implicitly\nconst page = await ns.integrations.list({ page_size: 50 });\nfor await (const conn of ns.integrations.iterate()) {\n  console.log(conn.id);\n}\n\nconst conn = await deyta.integrations.getConnection(\"conn_123\");\n// conn.persona_id — set when the connection's namespace backs a persona; null otherwise\n```\n\n### OAuth flow\n\n```ts\nconst start = await deyta.integrations.startConnection({\n  target: { type: \"persona\", id: persona.id },\n  provider: \"google_drive\",\n});\n// start.session_token — pass to @nangohq/frontend SDK\n// start.auth_link_url — OAuth redirect URL\n\nawait deyta.integrations.deleteConnection(start.id);\n```\n\n## Personas\n\nA persona is a top-level resource that owns a backing namespace created automatically at the same time. The persona's `id` is stable across SDK calls and is the handle used by every other persona operation.\n\n### Create\n\n```ts\nconst persona = await deyta.personas.create({\n  subject: \"Alice\",\n  external_reference_id: \"user-abc\",   // optional\n  description: \"demo persona\",          // optional\n});\n// persona: { id, org_id, namespace_id, external_reference_id, subject, description, created_at, updated_at }\n```\n\nWhen the call succeeds, the calling API key is auto-granted access to the persona's backing namespace, so subsequent persona ops work without extra permission steps.\n\n### List + iterate\n\n```ts\nconst { data, pagination } = await deyta.personas.list({ page: 1, page_size: 20 });\n\nfor await (const p of deyta.personas.iterate({ page_size: 50 })) {\n  console.log(p.id, p.subject);\n}\n```\n\n### Read (with composite document)\n\n```ts\nconst result = await deyta.personas.get(persona.id);\n// or: const result = await deyta.personas.getByExternalRef(\"user-abc\");\n\nif (result.built) {\n  result.identity;            // identity, traits, episodes, peers, facets, providers, source_event_count, built_at\n} else {\n  // Local record exists but the composite has not been produced yet — call build() and poll status().\n}\n```\n\nReturns `404 NOT_FOUND` when the persona doesn't exist locally; `503` when the gateway can't reach the composite service. When the composite simply hasn't been produced yet, the response is shaped `{ ...persona, built: false }` instead of an error.\n\n### Update / delete\n\n```ts\nawait deyta.personas.update(persona.id, {\n  description: \"updated copy\",\n  external_reference_id: null,    // pass null to clear; omit to leave unchanged\n});\n\nawait deyta.personas.delete(persona.id);\n// Cascades to the backing namespace and all of its connections, labels, and grants.\n```\n\n### Build / status\n\n```ts\n// Defaults: 60 / 14 / 14 / 0.5 (the gateway fills these in when omitted).\nconst { build_id } = await deyta.personas.build(persona.id);  // HTTP 202\n\n// Override the build window if you need to:\nawait deyta.personas.build(persona.id, {\n  context_window_days: 30,\n  focus_past_days: 7,\n  focus_future_days: 7,\n  focus_ratio: 0.75,\n});\n\nconst { status, last_built_at } = await deyta.personas.status(persona.id);\n// status: \"building\" | \"ready\" | \"not_built\"\n```\n\n`build()` is not idempotent — the gateway returns `409 CONFLICT` if a build is already in flight. Poll `status()` to follow progress.\n\n### Summary (read / regenerate)\n\n```ts\n// Read the persisted summary. Throws NOT_FOUND if one hasn't been produced yet.\nconst summary = await deyta.personas.getSummary(persona.id);\n// summary: { summary, generated_at, persona_built_at }\n\n// Staleness check: regenerate when the persona has been rebuilt since.\nconst stale = summary.persona_built_at > summary.generated_at;\n\n// Trigger a fresh generation. Body is optional.\nconst fresh = await deyta.personas.generateSummary(persona.id, {\n  system_prompt: \"Write in the third person.\",  // optional, ≤ 32 KB\n  temperature: 0.4,                              // optional, [0.0, 2.0]\n});\n```\n\n`generateSummary()` returns `409 CONFLICT` if a summary generation is already in flight, and `404 NOT_FOUND` when the persona itself cannot be found.\n\n### Sub-client (scope)\n\nOperate on a single persona without re-stating its identifier on every call:\n\n```ts\nconst p = deyta.personas.scope(persona.id);\n// or by external reference:\nconst p = deyta.personas.scopeByExternalRef(\"user-abc\");\n\n// Persona lifecycle\nawait p.metadata();\nawait p.update({ description: \"updated\" });\nawait p.build();\nawait p.status();\nawait p.getSummary();\nawait p.generateSummary();\nawait p.delete();\n\n// Memory — routed through the persona's backing namespace.\n// The first call resolves and caches the namespace_id.\nawait p.remember({ content: \"...\" });\nawait p.recall({ query: \"...\" });\n\n// Integrations targeted at this persona\nawait p.integrations.list();\nawait p.integrations.start({ provider: \"google_drive\" });\n```\n\nLike the namespace scope, this is a lightweight handle — no network call is made when constructing it. When scoped by external reference, the first lifecycle call performs a single `metadata()` fetch to resolve the persona's `id` and caches it for subsequent calls.\n\n## Error handling\n\n```ts\nimport { DeytaError, DeytaConnectionError } from \"@deyta-ai/sdk\";\n\ntry {\n  await deyta.namespaces.get(\"nonexistent\");\n} catch (err) {\n  if (err instanceof DeytaError) {\n    err.code;     // \"NOT_FOUND\"\n    err.status;   // 404\n    err.message;  // \"Not Found\"\n  } else if (err instanceof DeytaConnectionError) {\n    // Network failure, timeout, or caller-side abort.\n    err.cause;    // Original error if available.\n  }\n}\n```\n\n**Error codes**: `BAD_REQUEST`, `UNAUTHORIZED`, `FORBIDDEN`, `NOT_FOUND`, `CONFLICT`, `INTERNAL_ERROR`, `BAD_GATEWAY`, `SERVICE_UNAVAILABLE`, `GATEWAY_TIMEOUT`.\n\n## Cancellation and per-call options\n\nEvery method accepts a second `RequestOptions` argument:\n\n```ts\nconst controller = new AbortController();\nsetTimeout(() => controller.abort(), 5_000);\n\nawait deyta.memory.recall(\n  { namespace_id: \"ns_123\", query: \"search\" },\n  {\n    signal: controller.signal,            // Caller-supplied abort signal\n    timeout: 10_000,                      // Per-call timeout override\n    headers: { \"X-Trace-Id\": \"abc-123\" }, // Extra headers (Authorization is protected)\n  },\n);\n```\n\nThe SDK's timeout and the caller's signal are merged — either can abort the request.\n\n## Examples\n\nRunnable examples live under [`examples/`](./examples):\n\n- `quickstart.ts` — first end-to-end memory roundtrip\n- `namespace-scoped.ts` — using the sub-client pattern\n- `pagination.ts` — manual and async-iterator pagination\n- `error-handling.ts` — typed errors, cancellation, custom retries\n\n```bash\nDEYTA_API_KEY=… bun run examples/quickstart.ts\n```\n\n## Smoke tests\n\nEnd-to-end scripts under [`scripts/smoke/`](./scripts/smoke) exercise each resource against a real API. Useful for verifying staging or release builds before publishing.\n\n### Configuration\n\nBoth vars are read from the environment:\n\n| Variable          | Required | Purpose                                                      |\n|-------------------|----------|--------------------------------------------------------------|\n| `DEYTA_API_KEY`   | yes      | Bearer token. Scripts exit `1` if missing.                   |\n| `DEYTA_BASE_URL`  | no       | API base URL. Defaults to `https://api.deyta.ai`.            |\n\nSet them inline, export them in your shell, or drop them into a `.env` file (bun auto-loads it):\n\n```bash\n# inline\nDEYTA_API_KEY=sk_… DEYTA_BASE_URL=https://staging.deyta.ai bun run smoke\n\n# or shell-exported\nexport DEYTA_API_KEY=sk_…\nexport DEYTA_BASE_URL=https://staging.deyta.ai\nbun run smoke\n```\n\n### Available scripts\n\n| Script                         | Covers                                                          |\n| ------------------------------ | --------------------------------------------------------------- |\n| `bun run smoke`                | All four suites in sequence (fail-fast).                        |\n| `bun run smoke:namespaces`     | create / get / `getByExternalRef` / list / iterate / delete     |\n| `bun run smoke:memory`         | scratch namespace → remember / recall / ask / forget → cleanup  |\n| `bun run smoke:integrations`   | `listProviders`, `listConnections` (read-only — OAuth skipped)  |\n| `bun run smoke:personas`       | create / get / update / list / status / delete                  |\n\n`smoke:personas` accepts `-- --build` to additionally trigger an async build (not awaited to completion):\n\n```bash\nbun run smoke:personas -- --build\n```\n\nEvery script wraps its work in `try / finally` so a failure mid-run still cleans up the namespace or persona it created.\n\n## Requirements\n\n- Node.js 20+ (uses `AbortSignal.any`) or Bun 1.0+\n- TypeScript 5+ for type definitions\n\n## License\n\n[MIT](./LICENSE)\n","readmeFilename":"README.md"}