{"_id":"@eclipse-softworks/luna-sdk","_rev":"2-42810dda233a0e5f9645ceaa49115e2f","name":"@eclipse-softworks/luna-sdk","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@eclipse-softworks/luna-sdk","version":"1.0.0","keywords":["eclipse","luna","sdk","api","client","typescript"],"author":{"name":"Eclipse Softworks"},"license":"MIT","_id":"@eclipse-softworks/luna-sdk@1.0.0","maintainers":[{"name":"moon9t","email":"Luyanduthandokhumalo@gmail.com"}],"homepage":"https://github.com/eclipse-softworks/luna-sdk#readme","bugs":{"url":"https://github.com/Eclipse-Softworks/Luna-SDK/issues"},"dist":{"shasum":"735cd362f9c0807d9ee292756504caa5d96857f0","tarball":"https://registry.npmjs.org/@eclipse-softworks/luna-sdk/-/luna-sdk-1.0.0.tgz","fileCount":8,"integrity":"sha512-gD523Q/PIR10mlisxXVBqsB9cMgXndlMFbrfYUcZE0sO8G2EvO7Bszeql6XkFFxWQzlD2ciAbOnqw/Fhu4707w==","signatures":[{"sig":"MEUCIGUw2WTYZuFp3THhHNrY8F2ABVXrXV66c0DMLfBbBX9EAiEA45CQ2DRWihZaY/uhNW0TJRS3SFOdakFl2SyjnObuBtA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@eclipse-softworks%2fluna-sdk@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":265195},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"5d4afff88c94ae9e37a96afa0f82c486b7ba1363","scripts":{"dev":"tsup --watch","lint":"eslint src tests","test":"vitest run","build":"tsup","clean":"rimraf dist coverage","format":"prettier --write src tests","release":"npm run prepublishOnly && npm publish --access public","lint:fix":"eslint src tests --fix","typecheck":"tsc --noEmit","test:watch":"vitest","format:check":"prettier --check src tests","test:coverage":"vitest run --coverage","prepublishOnly":"npm run clean && npm run build && npm run test"},"_npmUser":{"name":"moon9t","email":"Luyanduthandokhumalo@gmail.com"},"repository":{"url":"git+https://github.com/Eclipse-Softworks/Luna-SDK.git","type":"git","directory":"packages/typescript"},"_npmVersion":"10.8.2","description":"Official TypeScript SDK for the Eclipse Softworks Platform API","directories":{},"_nodeVersion":"20.19.6","_hasShrinkwrap":false,"devDependencies":{"msw":"^2.12.4","tsup":"^8.0.1","eslint":"^9.39.1","rimraf":"^6.1.2","vitest":"^4.0.15","prettier":"^3.2.0","@eslint/js":"^9.0.0","typescript":"^5.3.3","@types/node":"^24.10.1","typescript-eslint":"^8.48.1","@vitest/coverage-v8":"^4.0.15"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/luna-sdk_1.0.0_1765236199029_0.5113721319441449","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@eclipse-softworks/luna-sdk","version":"1.0.1","description":"Official TypeScript SDK for the Eclipse Softworks Platform API","author":{"name":"Eclipse Softworks"},"license":"MIT","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"build":"tsup","dev":"tsup --watch","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","lint":"eslint src tests","lint:fix":"eslint src tests --fix","format":"prettier --write src tests","format:check":"prettier --check src tests","typecheck":"tsc --noEmit","clean":"rimraf dist coverage","prepublishOnly":"npm run clean && npm run build && npm run test","release":"npm run prepublishOnly && npm publish --access public"},"engines":{"node":">=18"},"keywords":["eclipse","luna","sdk","api","client","typescript"],"repository":{"type":"git","url":"git+https://github.com/Eclipse-Softworks/Luna-SDK.git","directory":"packages/typescript"},"bugs":{"url":"https://github.com/Eclipse-Softworks/Luna-SDK/issues"},"homepage":"https://github.com/eclipse-softworks/luna-sdk#readme","devDependencies":{"@eslint/js":"^9.0.0","@types/node":"^24.10.1","@vitest/coverage-v8":"^4.0.15","eslint":"^9.39.1","msw":"^2.12.4","prettier":"^3.2.0","rimraf":"^6.1.2","tsup":"^8.0.1","typescript":"^5.3.3","typescript-eslint":"^8.48.1","vitest":"^4.0.15"},"peerDependencies":{"typescript":">=4.7.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"_id":"@eclipse-softworks/luna-sdk@1.0.1","gitHead":"4ecde9cbb0e620439a41126aeb84c3dbfc1d682c","_nodeVersion":"20.19.6","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Y1V94MCpeuy9cNgveghx4NP9YBoVUHqqNoZ9hRTTV11A6KRD6HoRCURqIBi8wkpkR74F/OF3FAfdRYZl/tbViw==","shasum":"8f5c3d36f3445392c320e997680c608ef960261d","tarball":"https://registry.npmjs.org/@eclipse-softworks/luna-sdk/-/luna-sdk-1.0.1.tgz","fileCount":8,"unpackedSize":265195,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@eclipse-softworks%2fluna-sdk@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHWIJrvOBzeMGgEVQaFHNC1VNNq931DP6s05M38eqw4xAiBBxYzl1XjCBdHG+zd/qZAWNQCvEIFCAPbtUBFk4F9qZQ=="}]},"_npmUser":{"name":"moon9t","email":"Luyanduthandokhumalo@gmail.com"},"directories":{},"maintainers":[{"name":"moon9t","email":"Luyanduthandokhumalo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/luna-sdk_1.0.1_1765244611238_0.48754060401462174"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-08T23:23:18.953Z","modified":"2025-12-09T01:43:31.840Z","1.0.0":"2025-12-08T23:23:19.202Z","1.0.1":"2025-12-09T01:43:31.419Z"},"bugs":{"url":"https://github.com/Eclipse-Softworks/Luna-SDK/issues"},"author":{"name":"Eclipse Softworks"},"license":"MIT","homepage":"https://github.com/eclipse-softworks/luna-sdk#readme","keywords":["eclipse","luna","sdk","api","client","typescript"],"repository":{"type":"git","url":"git+https://github.com/Eclipse-Softworks/Luna-SDK.git","directory":"packages/typescript"},"description":"Official TypeScript SDK for the Eclipse Softworks Platform API","maintainers":[{"name":"moon9t","email":"Luyanduthandokhumalo@gmail.com"}],"readme":"# @eclipse/luna-sdk\n\nOfficial TypeScript SDK for the Eclipse Softworks Platform API.\n\n## Installation\n\n```bash\nnpm install @eclipse/luna-sdk\n```\n\n## Quick Start\n\n```typescript\nimport { LunaClient } from '@eclipse/luna-sdk';\n\n// API Key authentication\nconst client = new LunaClient({\n  apiKey: process.env.LUNA_API_KEY,\n});\n\n// List users\nconst users = await client.users.list({ limit: 10 });\n\n// Get a specific user\nconst user = await client.users.get('usr_123');\n\n// Create a new user\nconst newUser = await client.users.create({\n  email: 'john@example.com',\n  name: 'John Doe',\n});\n```\n\n## Authentication\n\n### API Key\n\n```typescript\nconst client = new LunaClient({\n  apiKey: 'lk_live_xxxx',\n});\n```\n\n### OAuth Token\n\n```typescript\nconst client = new LunaClient({\n  accessToken: session.accessToken,\n  refreshToken: session.refreshToken,\n  onTokenRefresh: async (tokens) => {\n    await saveTokens(tokens);\n  },\n});\n```\n\n## Error Handling\n\n```typescript\nimport { LunaClient, NotFoundError, RateLimitError } from '@eclipse/luna-sdk';\n\ntry {\n  await client.users.get('usr_nonexistent');\n} catch (error) {\n  if (error instanceof NotFoundError) {\n    console.log('User not found:', error.message);\n  } else if (error instanceof RateLimitError) {\n    console.log('Rate limited, retry after:', error.retryAfter);\n  }\n}\n```\n\n## Configuration\n\n```typescript\nconst client = new LunaClient({\n  apiKey: process.env.LUNA_API_KEY,\n  baseUrl: 'https://api.staging.eclipse.dev', // Custom base URL\n  timeout: 60000, // Request timeout (ms)\n  maxRetries: 5, // Retry attempts\n  logLevel: 'debug', // Log level\n});\n```\n\n## License\n\nMIT © Eclipse Softworks\n","readmeFilename":"README.md"}