{"_id":"@antkk_uip/sdk","name":"@antkk_uip/sdk","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@antkk_uip/sdk","version":"1.0.0","description":"UIP-AI TypeScript SDK — integrate with the UIP-AI Platform: workflows, jobs, templates, credentials","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs","types":"./dist/index.d.ts"}},"scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --clean","build:watch":"tsup src/index.ts --format esm,cjs --dts --watch","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit","prepublishOnly":"npm run build && npm run test"},"keywords":["uip","sdk","workflow","automation","integration"],"license":"MIT","author":{"name":"Anthony Chong"},"repository":{"type":"git","url":"git+https://github.com/your-org/uip-sdk-typescript.git"},"dependencies":{},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0","vitest":"^1.6.0"},"engines":{"node":">=18"},"_id":"@antkk_uip/sdk@1.0.0","bugs":{"url":"https://github.com/your-org/uip-sdk-typescript/issues"},"homepage":"https://github.com/your-org/uip-sdk-typescript#readme","_nodeVersion":"18.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-9N+cGUcr2eZu7bHO7U/QE0bKy0EJ1c6Sz0BzzlaExxKWpHaNWrwYwwHyJ9WWpLjFMVOuUtonvetyFNYDDsdhpg==","shasum":"718930376c5a80759ea655a85db008130f6d2bb5","tarball":"https://registry.npmjs.org/@antkk_uip/sdk/-/sdk-1.0.0.tgz","fileCount":5,"unpackedSize":42591,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIC4MAO9t87aBvLfnn1LhKDu9KVpWQlTSBp4l9K9DzhYRAiEAh4WIpfFeTW11lcfyQoommyQ8mOM+JoeWqAnlQdK4TLQ="}]},"_npmUser":{"name":"antkk_uip","email":"antkkds@gmail.com"},"directories":{},"maintainers":[{"name":"antkk_uip","email":"antkkds@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_1.0.0_1783947794686_0.23471240315888275"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-13T13:03:14.515Z","1.0.0":"2026-07-13T13:03:14.821Z","modified":"2026-07-13T13:03:14.978Z"},"maintainers":[{"name":"antkk_uip","email":"antkkds@gmail.com"}],"description":"UIP-AI TypeScript SDK — integrate with the UIP-AI Platform: workflows, jobs, templates, credentials","homepage":"https://github.com/your-org/uip-sdk-typescript#readme","keywords":["uip","sdk","workflow","automation","integration"],"repository":{"type":"git","url":"git+https://github.com/your-org/uip-sdk-typescript.git"},"author":{"name":"Anthony Chong"},"bugs":{"url":"https://github.com/your-org/uip-sdk-typescript/issues"},"license":"MIT","readme":"# @uip/sdk — UIP-AI TypeScript SDK\n\n> TypeScript client for the [UIP-AI Platform](https://uip-ai.dev) — isomorphic (Node.js + browser).\n\n## Install\n\n```bash\nnpm install @uip/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { UIPClient } from '@uip/sdk';\n\nconst client = new UIPClient({\n  apiKey: '<your-api-token>',\n  baseUrl: 'http://localhost:8000',\n});\n\n// Health check\nconst health = await client.monitoring.health();\nconsole.log(health);\n\n// List workflows\nconst workflows = await client.workflows.list();\n\n// Deploy a template and submit\nconst workflow = await client.templates.deploy('demo-hello-world');\nconst job = await client.jobs.submit(workflow.id);\nconst result = await job.wait(60);\nconsole.log(result.status);\n```\n\n## Resources\n\n| Resource | Description |\n|----------|-------------|\n| `client.workflows` | CRUD for workflow definitions |\n| `client.jobs` | Submit, poll, cancel, stream jobs |\n| `client.templates` | List and deploy templates |\n| `client.credentials` | Store and manage secrets |\n| `client.connectors` | Inspect registered connector types |\n| `client.ai` | List AI providers and models |\n| `client.monitoring` | Platform health and status |\n| `client.manifest` | System capabilities and version |\n\n## Error Handling\n\n```typescript\nimport { UIPClient, NotFoundError, ValidationError } from '@uip/sdk';\n\ntry {\n  await client.workflows.get('nonexistent');\n} catch (err) {\n  if (err instanceof NotFoundError) {\n    console.log('Not found');\n  }\n}\n```\n\n## Build\n\n```bash\nnpm run build     # tsup → ESM + CJS + .d.ts\nnpm run test      # vitest\n```\n\n## Version Compatibility\n\nSDK reports `API_VERSION` field matching the platform contract version.\n","readmeFilename":"README.md","_rev":"1-17c2897109f479d0b0c1e75f1ab0dd6e"}