{"_id":"@belongnet/sdk","_rev":"19-4db7603022a1e7346ffb878670c1b4ff","name":"@belongnet/sdk","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.1":{"name":"@belongnet/sdk","version":"0.1.1","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.1","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"1d040921586b8192885df80d02553abfbf925fbd","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.1.tgz","fileCount":33,"integrity":"sha512-CS+fIgI2pgWljwz/ZTFNuUS5h6N23UcjqAIgmMYMIiVFU1dgCHTi9juvZKW756SCef7mqHuEhSgSjA9JQx3Jow==","signatures":[{"sig":"MEUCICH8dh8umwEPUNLA/YAIp76GdeGIIWsX7pqFWwhxv8OwAiEAner/Fa76jljW8T7l+6Q6IvB66qKWBMlmwgGfWzzQA28=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":29289},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"f7d70b991c6ee2eb72d2bb089957eb013881a3f1","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.1.0","dependencies":{"ohash":"^1.1.3","valibot":"^0.30.0","query-string":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.1_1715670844232_0.1418697341198225","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@belongnet/sdk","version":"0.1.2","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.2","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"b24bda38772f950ee3fd3bd0ebf64671e51bd061","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.2.tgz","fileCount":33,"integrity":"sha512-79fUVEBDO9+Mi88TcsqUO4Gj74bbNj2k12/pjs9dC7p0I4BslkoVKKTS1cdCA2e4UtGo+qbYROUklx59o30tCw==","signatures":[{"sig":"MEUCIQD94ajDPanz1i2vwwVzDcO7IxUM1BOScWqd/q9M8BSpMQIgTOUw5F+4XiKTUPhiiAWPNOIXsjjP5GJ/3RXHErJ7y+s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28997},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"8487af80c1a53e05cd0452abbeb2fb55017b3239","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.1.0","dependencies":{"ohash":"^1.1.3","valibot":"^0.30.0","query-string":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.2_1715763452720_0.7595960279521761","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@belongnet/sdk","version":"0.1.3","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.3","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"26f58949b0f4f70e257295d9ffe0c9a43e68a48f","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.3.tgz","fileCount":33,"integrity":"sha512-8ThYCCAVdcqkBm5tXI1Ahyv7sw2BnN6fiAQGn4fWEgtg2Wk2EHFr+M/zcFqMtPjY3nc1QyVCHHngZeNbXyqCVg==","signatures":[{"sig":"MEYCIQC7m5gm7oxZ6udw1+fZRjfiSNqTn9l67bcEFHSVpjt6OwIhAOvyuHbaAHBt4ophk7QB6R7V/jwh29q1CjlQAQvPQLt1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30268},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"d57a174812b2ee1bc9def64c0ec54c9d5a1f0371","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.1.0","dependencies":{"ohash":"^1.1.3","valibot":"^0.30.0","query-string":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.3_1715770748113_0.1363168199759821","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@belongnet/sdk","version":"0.1.4","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.4","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"13c6963e61cab3104e54119cefebd3185977fc13","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.4.tgz","fileCount":33,"integrity":"sha512-LVhu3EITHgWcdc7cM2YebG9LqBJXITyHVO3+XyNVHwS3BaVPyagHexhfR3+2fy10doyr9+lNbeZ6perBjPQdGg==","signatures":[{"sig":"MEUCIQCWlPTrmJBpGQ6N/QqnNw3CLRYRz73WwLdUb/vfJi7MUwIgEvOyl8dNq6ucHgM8WKXzJuvgQjedsdLIZPu82+9+vw8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":30245},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"d67ec21750eda35cbe22c3c1d6b470ba705fd6d5","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.1.0","dependencies":{"ohash":"^1.1.3","valibot":"^0.30.0","query-string":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.4_1715771178660_0.7868184889259948","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"@belongnet/sdk","version":"0.1.5","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.5","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"1fafc71e28358269de867ac0975b5b6003b73e03","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.5.tgz","fileCount":33,"integrity":"sha512-9iDQeR0YZy/XBDoX354IHLUimDhUVdSKIyfW2eHUWyjNVGEWz7ZMqIDbnQWUZKbglKtS3l5FDrKXEfQu3tI+gw==","signatures":[{"sig":"MEQCIFLtrIkv4YCBx6cM2EQKUFgWjCEuxGmCjYIlAC5yoaZPAiBqQ5I8W/ooF9uDfFafHthLX/eTaRytyEtWJ8JoZZi9BA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":31876},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"ee1b49d817cf761e9df3cb429994849c4b5ba284","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.7.0","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.1.0","dependencies":{"ohash":"^1.1.3","valibot":"^0.30.0","query-string":"^9.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.5_1715772918451_0.6403142685381651","host":"s3://npm-registry-packages"}},"0.1.6":{"name":"@belongnet/sdk","version":"0.1.6","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.6","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"dc007d18762bc32955864392d25f0966ce7a0034","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.6.tgz","fileCount":33,"integrity":"sha512-bg/SrT0Vpv2FOjVvbFymjbTexkOfQeVgZHjF3o6+hZhsXS8pQO0XEwKgpUE0enEoCbsO9HkbhhLA+mBY9UvAFA==","signatures":[{"sig":"MEYCIQD+SgnZ2AM7qGzVK0XYYR8zDS4HF+zukrCCOoxFKjjrbAIhAIcKTN3ZrVKrauE48eOsK7UTE/S+a+SVGjnfDgKaNPgb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":33795},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"9e06de1e38334e9555e712f8714aba43e2f3a99c","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.8.0","dependencies":{"valibot":"^0.30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.6_1725921974797_0.2174816384839402","host":"s3://npm-registry-packages"}},"0.1.7":{"name":"@belongnet/sdk","version":"0.1.7","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.7","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"d173d1751f41a21d5b6bff89a101eb6b86968805","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.7.tgz","fileCount":33,"integrity":"sha512-jMMv3Wj6IFQQ6AkAgAm9RE38I7r4W3bsMCycDQIX8Lulbpnv0c8L6c4cqrz8cXTZ1VzjttopzJSy/iPdPovvmQ==","signatures":[{"sig":"MEUCIQCfOCuxKxb+IcOqaCn9/CZBIiKUudD0leMuH/c6j955RgIgRbxw2nMPCROm+sBG/c0+DwncRhDyAsjj6TRNlw1/95M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.7","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":34445},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"487c06c656cb7a5fa7cc69fcfa94df0918c66d37","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.8.0","dependencies":{"valibot":"^0.30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.7_1725931680884_0.45582423252050663","host":"s3://npm-registry-packages"}},"0.1.8":{"name":"@belongnet/sdk","version":"0.1.8","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.8","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"e7f77c32f7fe53a5d622df86db4daa9ce60ae976","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.8.tgz","fileCount":33,"integrity":"sha512-vWEdsvIK6FwZIe73ANHabQLt4uWz0dzp3khLjBC9sue6JYcLadWlkd0K/2xXMdT9A0A0YjldckbnvsTV8s/sFg==","signatures":[{"sig":"MEQCIA8fq2Y+QfYp6mFInD6so4hIE/ozKbcQkvCLzgNCDNToAiAQ0aemsjfM5bZOOmp8PBK7EJw/w3xzKD/RihddrMgCbA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":35320},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"41dc5ae32da40b9caa059b4d46a76f1c1d0aae57","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.8.2","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.8.0","dependencies":{"valibot":"^0.30.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.8_1725932573092_0.3375481755375791","host":"s3://npm-registry-packages"}},"0.1.9":{"name":"@belongnet/sdk","version":"0.1.9","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.9","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"c98a23d7ad8b0ccf1d921e35f73a878113203c77","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.9.tgz","fileCount":33,"integrity":"sha512-03KJeen5Y69ZRhdYND3jehFtDxsOtOvmYkuBjvliUXi4CbmfMN1k/Rz2XZqoG6afToSMMtFv/SHgcPEko8J6zg==","signatures":[{"sig":"MEYCIQD9sbVln8hpMzGpc0TZdqy/6rv41BIjCFjJqCxVhq6N3wIhALSKs5pf/gEkpQLnoku/M3Hsur31iGXI9pIqrKXWz37R","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.9","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":36277},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"96de0249b760f0a12bdaec77ab1fa349ad7db24e","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.9.2","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"valibot":"^0.42.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.9_1741644837118_0.12296650143573817","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@belongnet/sdk","version":"0.1.10","keywords":["keyword"],"author":{"name":"reslear"},"license":"MIT","_id":"@belongnet/sdk@0.1.10","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"homepage":"https://github.com/belongnet/sdk#readme","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"dist":{"shasum":"04b1a308ba0e5ed446c41c9d05088dcc8cb06287","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.10.tgz","fileCount":33,"integrity":"sha512-u7IgUzVdHNe/bAMF2Jr2yptAYwTG2EUHeluErpzAyLKYbIaoqDP2PLblQUqSdOJiCJecP2AegTSVT7FRCr/VHg==","signatures":[{"sig":"MEUCIDFqGiDazd1kNypgqQnXpthx4Cla0RAH2KrI0AES6WzSAiEAxICCs1/ga/T8jgMgh5gLXGcpwsRQ51+ndhexdTPSiOA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.10","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":36479},"main":"dist/esm/index.js","type":"module","types":"dist/types/index.d.ts","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"gitHead":"7078bc6b27c9dfa29c34d0dc97ac75bdaedc4df7","scripts":{"test":"vitest","build":"pnpm run clean && pnpm run build:esm+types","clean":"rm -rf dist tsconfig.tsbuildinfo","docgen":"pnpm dlx automd@latest","coverage":"vitest run --coverage","prepublishOnly":"pnpm build","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types"},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"repository":{"url":"git+https://github.com/belongnet/sdk.git","type":"git"},"_npmVersion":"10.9.2","description":"description","directories":{},"sideEffects":false,"_nodeVersion":"22.14.0","dependencies":{"valibot":"^0.42.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.5.0","prettier":"^3.2.5","@vitest/ui":"^1.5.0","typescript":"^5.4.5","@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.10_1741738301265_0.43085694013582176","host":"s3://npm-registry-packages-npm-production"}},"0.1.11":{"name":"@belongnet/sdk","version":"0.1.11","description":"description","keywords":["keyword"],"repository":{"type":"git","url":"git+https://github.com/belongnet/sdk.git"},"license":"MIT","author":{"name":"reslear"},"type":"module","exports":{".":{"types":"./dist/types/index.d.ts","default":"./dist/esm/index.js"}},"main":"dist/esm/index.js","types":"dist/types/index.d.ts","sideEffects":false,"scripts":{"build":"pnpm run clean && pnpm run build:esm+types","build:esm+types":"tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types","clean":"rm -rf dist tsconfig.tsbuildinfo","prepublishOnly":"pnpm build","test":"vitest","coverage":"vitest run --coverage","docgen":"pnpm dlx automd@latest"},"dependencies":{"valibot":"^0.42.1"},"peerDependencies":{"typescript":">=5.0.4"},"peerDependenciesMeta":{"typescript":{"optional":true}},"devDependencies":{"@faker-js/faker":"^8.4.1","@vitest/coverage-v8":"^1.5.0","@vitest/ui":"^1.5.0","prettier":"^3.2.5","typescript":"^5.4.5","vitest":"^1.5.0"},"publishConfig":{"access":"public"},"_id":"@belongnet/sdk@0.1.11","gitHead":"f0b2c7b1ed97c44d719f5d3c7ceaf4c94e84bccf","bugs":{"url":"https://github.com/belongnet/sdk/issues"},"homepage":"https://github.com/belongnet/sdk#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-+5DjSn9U8eHxVilaCbL6CYFCI9hrPTxeCkzDtXWgbzXSBy3L9DlrFADYnKTC3HTi1wEtTqVRWqiC29wZwMzUoA==","shasum":"4e3646d2953003220069e43d5c2e0908ba4db1ba","tarball":"https://registry.npmjs.org/@belongnet/sdk/-/sdk-0.1.11.tgz","fileCount":33,"unpackedSize":48179,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@belongnet%2fsdk@0.1.11","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBBpq7kN6J53LIGitcWnxXSgFCkrJDh3xuP961lSzSA4AiAp2V1JAx3O+oGQqgQKJAHxBZUTrSVk9mpJYJGxuJEnMg=="}]},"_npmUser":{"name":"reslear","email":"reslear@gmail.com"},"directories":{},"maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.11_1745312412005_0.6181143223730261"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-14T07:14:04.163Z","modified":"2025-04-22T09:00:12.721Z","0.0.2":"2024-05-09T02:42:52.266Z","0.0.3":"2024-05-09T02:50:59.617Z","0.0.4":"2024-05-09T03:02:38.058Z","0.0.5":"2024-05-09T23:16:03.360Z","0.0.6":"2024-05-10T00:26:08.914Z","0.0.7":"2024-05-10T16:53:19.095Z","0.1.1":"2024-05-14T07:14:04.384Z","0.1.2":"2024-05-15T08:57:32.881Z","0.1.3":"2024-05-15T10:59:08.280Z","0.1.4":"2024-05-15T11:06:18.814Z","0.1.5":"2024-05-15T11:35:18.622Z","0.1.6":"2024-09-09T22:46:14.991Z","0.1.7":"2024-09-10T01:28:01.063Z","0.1.8":"2024-09-10T01:42:53.290Z","0.1.9":"2025-03-10T22:13:57.319Z","0.1.10":"2025-03-12T00:11:41.519Z","0.1.11":"2025-04-22T09:00:12.230Z"},"bugs":{"url":"https://github.com/belongnet/sdk/issues"},"author":{"name":"reslear"},"license":"MIT","homepage":"https://github.com/belongnet/sdk#readme","keywords":["keyword"],"repository":{"type":"git","url":"git+https://github.com/belongnet/sdk.git"},"description":"description","maintainers":[{"name":"reslear","email":"reslear@gmail.com"},{"name":"belongfoundation","email":"join@belong.net"}],"readme":"# @belongnet/sdk\n\nJavaScript SDK for integrating with Belong.net widget for seamless payment implementation on your website or application frontend.\n\n[![Version](https://img.shields.io/npm/v/@belongnet/sdk)](https://www.npmjs.com/@belongnet/sdk)\n\n- [👀 Demo online constructor](https://belongnet.github.io/sdk/)\n\n## Installation\n\n#### NPM:\n\nYou can install using npm, yarn, or pnpm:\n\n```bash\npnpm add @belongnet/sdk\n\n# or\nnpm install @belongnet/sdk\n\n# or\nyarn add @belongnet/sdk\n```\n\nand then import it in your project:\n\n```ts\nimport { createPaymentFrame } from '@belongnet/sdk'\n```\n\n#### CDN:\n\nTo load scripts as modules, it's recommended to use [esm.sh](https://esm.sh/). Add this to the bottom of your HTML file:\n\n```html\n<script type=\"module\">\n  import { createPaymentFrame } from 'https://esm.sh/@belongnet/sdk@0.1.5'\n</script>\n```\n\n> **Note:** Pin the version number to avoid breaking changes in production.\n\nYou can also try [jsDelivr](https://www.jsdelivr.com/) or [unpkg](https://unpkg.com/), but they haven't been tested.\n\n#### Usage:\n\nThe SDK supports several payment targets for different use cases:\n\n##### Event Ticket Payment\n\nUsed for purchasing tickets to events. Requires an `eventId` to identify the specific event.\n\n```ts\nimport { PaymentTarget } from '@belongnet/sdk'\n\ncreatePaymentFrame({\n  el: document.getElementById('belong-payment-frame'),\n  params: {\n    target: PaymentTarget.EventTicket,\n    eventId: '65f1c7a33e51d8e4c2a9b4d2',\n  },\n})\n```\n\n##### Hub Minting Payment\n\nUsed for minting operations within a hub. Requires a `hubId` to identify the specific hub.\n\n```ts\ncreatePaymentFrame({\n  el: document.getElementById('belong-payment-frame'),\n  params: {\n    target: PaymentTarget.HubMinting,\n    hubId: '65f1c7b12f90ae7d31c8e5f1',\n  },\n})\n```\n\n##### Checkout Payment\n\nUsed for general checkout operations. Requires a `checkoutId` to identify the specific checkout session.\n\n```ts\ncreatePaymentFrame({\n  el: document.getElementById('belong-payment-frame'),\n  params: {\n    target: PaymentTarget.Checkout,\n    checkoutId: '65f1c7c8d4a5b3e9f8c1d2e3',\n  },\n})\n```\n\n## Advanced Usage\n\n### Event listeners:\n\nTo determine the outcome of a payment (success or failure and etc), you can set up event listeners that listen to events from the payment frame.\nWe provide `isPaymentEvent` utility to help identify payment-related events.\n\n```ts\nimport { isPaymentEvent } from '@belongnet/sdk'\n\nfunction handlePayment(e: MessageEvent) {\n  if (isPaymentEvent(e)) {\n    switch (e.data.type) {\n      case 'payment-success':\n        // logic for successful payment\n        console.log('payment-success', e.data.payload.link)\n        break\n      case 'payment-error':\n        // logic for payment error\n        console.log('payment-error', e.data.payload)\n        break\n    }\n  }\n}\n\n// Add the event listener to listen for messages from the payment frame:\nwindow.addEventListener('message', handlePayment)\n\n// Remove the event listener when it is no longer needed to avoid potential memory leaks\nfunction onUnmount() {\n  window.removeEventListener('message', handlePayment)\n}\n```\n\nThis method makes sure your app reacts well to payment events, giving users a smooth experience even if payments fail. But it's only for showing visual changes on the frontend. For safer payments, you need server-side processing with the API too.\n\n## API\n\n<!-- automd:jsdocs src=\"src/index\" -->\n\n### `createPaymentFrame(options)`\n\nCreates a payment frame for embedding payment forms.\n\n**Example:**\n\n```js\nimport { PaymentTarget } from '@belongnet/sdk'\n\nconst { frame, url } = createPaymentFrame({\n  el: document.getElementById('payment-frame'),\n  origin: 'https://example.com',\n  params: {\n    target: PaymentTarget.EventTicket,\n    eventId: '65f1c7a33e51d8e4c2a9b4d2',\n  },\n})\n```\n\n### `isPaymentEvent(event)`\n\nChecks if the provided event is a Belong payment event.\n\n### `PaymentEvent`\n\n#### `Loaded`\n\n- **Type**: `string`\n- **Default**: `\"loaded\"`\n\n#### `PaymentCanceled`\n\n- **Type**: `string`\n- **Default**: `\"payment-canceled\"`\n\n#### `PaymentError`\n\n- **Type**: `string`\n- **Default**: `\"payment-error\"`\n\n#### `PaymentSuccess`\n\n- **Type**: `string`\n- **Default**: `\"payment-success\"`\n\n### `PaymentTarget`\n\n#### `Checkout`\n\n- **Type**: `string`\n- **Default**: `\"checkout\"`\n\n#### `EventTicket`\n\n- **Type**: `string`\n- **Default**: `\"event-ticket\"`\n\n#### `HubMinting`\n\n- **Type**: `string`\n- **Default**: `\"hub-minting\"`\n\n### `validateEvent(data)`\n\nValidates the provided payment event data.\n\n### `validateParams(params)`\n\nValidates the provided parameters.\n\n<!-- /automd -->\n\n## Target Parameters Reference\n\nEach target requires specific parameters. Here's a detailed breakdown:\n\n### Event Ticket Parameters\n\n| Parameter | Type            | Description                                    |\n| --------- | --------------- | ---------------------------------------------- |\n| `target`  | `PaymentTarget` | Must be `PaymentTarget.EventTicket`            |\n| `eventId` | `string`        | Unique identifier of the event (24 characters) |\n| `coupon`  | `string`        | Optional coupon code for discounts             |\n| `email`   | `string`        | Email user                                     |\n\n### Hub Minting Parameters\n\n| Parameter | Type            | Description                                  |\n| --------- | --------------- | -------------------------------------------- |\n| `target`  | `PaymentTarget` | Must be `PaymentTarget.HubMinting`           |\n| `hubId`   | `string`        | Unique identifier of the hub (24 characters) |\n| `email`   | `string`        | Email user                                   |\n\n### Checkout Parameters\n\n| Parameter    | Type            | Description                                       |\n| ------------ | --------------- | ------------------------------------------------- |\n| `target`     | `PaymentTarget` | Must be `PaymentTarget.Checkout`                  |\n| `checkoutId` | `string`        | Unique identifier of the checkout (24 characters) |\n| `email`      | `string`        | Email user                                        |\n\n## License\n\nThis project is licensed under the terms of the [MIT license](LICENSE).\n\n<!-- automd:with-automd -->\n\n---\n\n_🤖 auto updated with [automd](https://automd.unjs.io)_\n\n<!-- /automd -->\n","readmeFilename":"README.md"}