{"_id":"@ory/keto-client-fetch","_rev":"5-e495d19fdc48583ee8d2f82d60038e18","name":"@ory/keto-client-fetch","dist-tags":{"latest":"26.2.0"},"versions":{"25.4.0":{"name":"@ory/keto-client-fetch","version":"25.4.0","author":{"name":"Ory Corp"},"license":"Apache-2.0","_id":"@ory/keto-client-fetch@25.4.0","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"homepage":"https://github.com/ory/sdk#readme","bugs":{"url":"https://github.com/ory/sdk/issues"},"dist":{"shasum":"2fabeab760bdf8ee1f190cb70309b9a2715f60ba","tarball":"https://registry.npmjs.org/@ory/keto-client-fetch/-/keto-client-fetch-25.4.0.tgz","fileCount":173,"integrity":"sha512-bA+jUO//I8cj1iIh2v4gCSnBl7bFbCNSOTh6jKKUMIODCnFbElWeueaBrqK6iVMCzQ9Lo5D5YFAuHVBD1T8jnw==","signatures":[{"sig":"MEUCIQD4XNfCeftV82SQs0gRT+Bgt5pw8/P5hsucFVk+3l8m4wIgTU223CQyg+gDZBGn0SKCFtubcHwDaLQIb4PTlb+zPrE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":417648},"main":"./dist/index.js","module":"./dist/esm/index.js","gitHead":"4a5f0b017440ddcc6388273dfb222aa2b122949a","scripts":{"build":"tsc && tsc -p tsconfig.esm.json","prepare":"npm run build"},"typings":"./dist/index.d.ts","_npmUser":{"name":"arekkas","email":"aeneas@ory.sh"},"repository":{"url":"git+https://github.com/ory/sdk.git","type":"git"},"_npmVersion":"10.9.2","description":"OpenAPI client for @ory/keto-client-fetch","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.0 || ^5.0"},"_npmOperationalInternal":{"tmp":"tmp/keto-client-fetch_25.4.0_1762709814418_0.497051874606083","host":"s3://npm-registry-packages-npm-production"}},"26.2.0":{"name":"@ory/keto-client-fetch","version":"26.2.0","author":{"name":"Ory Corp"},"license":"Apache-2.0","_id":"@ory/keto-client-fetch@26.2.0","maintainers":[{"name":"arekkas","email":"aeneas@ory.sh"},{"name":"jonas-jonas","email":"jonas.hungershausen@ory.sh"},{"name":"hperl","email":"henning.perl@ory.sh"}],"homepage":"https://github.com/ory/sdk#readme","bugs":{"url":"https://github.com/ory/sdk/issues"},"dist":{"shasum":"5ed4a5b92a882c5fe52394a1fbda5d5e3cb0eec3","tarball":"https://registry.npmjs.org/@ory/keto-client-fetch/-/keto-client-fetch-26.2.0.tgz","fileCount":202,"integrity":"sha512-8wtylsgtmvFQChTtSbjXLlqWes/5qekkv1ezZ9eCDceFOAozRrTSrVl3AuPT6xZwAYANsbuE6O0aUuB8FDJnVQ==","signatures":[{"sig":"MEUCIQDuQTJEEIopAL7lOfWQMVgjqxEjK6viHKpg2sCB4X3FAgIgWooUh7miqiMkvc4e+X3GTrS411vAsZBhY6kFMpMgl6Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":479954},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/esm/index.js","gitHead":"9f3dc8bbd9be923b3f25a64e456658d94a004df7","scripts":{"build":"tsc && tsc -p tsconfig.esm.json","prepare":"npm run build"},"_npmUser":{"name":"arekkas","email":"aeneas@ory.sh"},"repository":{"url":"git+https://github.com/ory/sdk.git","type":"git"},"_npmVersion":"11.7.0","description":"OpenAPI client for @ory/keto-client-fetch","directories":{},"sideEffects":false,"_nodeVersion":"20.20.1","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.0 || ^5.0"},"_npmOperationalInternal":{"tmp":"tmp/keto-client-fetch_26.2.0_1774357804165_0.5412705319729696","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-11-09T17:36:54.342Z","modified":"2026-05-23T19:33:50.405Z","25.4.0":"2025-11-09T17:36:54.629Z","26.2.0":"2026-03-24T13:10:04.341Z"},"bugs":{"url":"https://github.com/ory/sdk/issues"},"author":{"name":"Ory Corp"},"license":"Apache-2.0","homepage":"https://github.com/ory/sdk#readme","repository":{"url":"git+https://github.com/ory/sdk.git","type":"git"},"description":"OpenAPI client for @ory/keto-client-fetch","maintainers":[{"email":"aeneas@ory.sh","name":"arekkas"},{"email":"henning.perl@ory.sh","name":"hperl"},{"email":"jonas.hungershausen@ory.sh","name":"jonas-jonas"},{"email":"clint.hill@gmail.com","name":"clintjhill"}],"readme":"# @ory/keto-client-fetch@v26.2.0\n\nA TypeScript SDK client for the localhost API.\n\n## Usage\n\nFirst, install the SDK from npm.\n\n```bash\nnpm install @ory/keto-client-fetch --save\n```\n\nNext, try it out.\n\n\n```ts\nimport {\n  Configuration,\n  MetadataApi,\n} from '@ory/keto-client-fetch';\nimport type { GetVersionRequest } from '@ory/keto-client-fetch';\n\nasync function example() {\n  console.log(\"🚀 Testing @ory/keto-client-fetch SDK...\");\n  const api = new MetadataApi();\n\n  try {\n    const data = await api.getVersion();\n    console.log(data);\n  } catch (error) {\n    console.error(error);\n  }\n}\n\n// Run the test\nexample().catch(console.error);\n```\n\n\n## Documentation\n\n### API Endpoints\n\nAll URIs are relative to *http://localhost*\n\n| Class | Method | HTTP request | Description\n| ----- | ------ | ------------ | -------------\n*MetadataApi* | [**getVersion**](docs/MetadataApi.md#getversion) | **GET** /version | Return Running Software Version.\n*MetadataApi* | [**isAlive**](docs/MetadataApi.md#isalive) | **GET** /health/alive | Check HTTP Server Status\n*MetadataApi* | [**isReady**](docs/MetadataApi.md#isready) | **GET** /health/ready | Check HTTP Server and Database Status\n*PermissionApi* | [**batchCheckPermission**](docs/PermissionApi.md#batchcheckpermission) | **POST** /relation-tuples/batch/check | Batch check permissions\n*PermissionApi* | [**checkPermission**](docs/PermissionApi.md#checkpermission) | **GET** /relation-tuples/check/openapi | Check a permission\n*PermissionApi* | [**checkPermissionOrError**](docs/PermissionApi.md#checkpermissionorerror) | **GET** /relation-tuples/check | Check a permission\n*PermissionApi* | [**expandPermissions**](docs/PermissionApi.md#expandpermissions) | **GET** /relation-tuples/expand | Expand a Relationship into permissions.\n*PermissionApi* | [**postCheckPermission**](docs/PermissionApi.md#postcheckpermission) | **POST** /relation-tuples/check/openapi | Check a permission\n*PermissionApi* | [**postCheckPermissionOrError**](docs/PermissionApi.md#postcheckpermissionorerror) | **POST** /relation-tuples/check | Check a permission\n*RelationshipApi* | [**checkOplSyntax**](docs/RelationshipApi.md#checkoplsyntax) | **POST** /opl/syntax/check | Check the syntax of an OPL file\n*RelationshipApi* | [**createRelationship**](docs/RelationshipApi.md#createrelationship) | **PUT** /admin/relation-tuples | Create a Relationship\n*RelationshipApi* | [**deleteRelationships**](docs/RelationshipApi.md#deleterelationships) | **DELETE** /admin/relation-tuples | Delete Relationships\n*RelationshipApi* | [**getRelationships**](docs/RelationshipApi.md#getrelationships) | **GET** /relation-tuples | Query relationships\n*RelationshipApi* | [**listRelationshipNamespaces**](docs/RelationshipApi.md#listrelationshipnamespaces) | **GET** /namespaces | Query namespaces\n*RelationshipApi* | [**patchRelationships**](docs/RelationshipApi.md#patchrelationships) | **PATCH** /admin/relation-tuples | Patch Multiple Relationships\n\n\n### Models\n\n- [BatchCheckPermissionBody](docs/BatchCheckPermissionBody.md)\n- [BatchCheckPermissionResult](docs/BatchCheckPermissionResult.md)\n- [CheckOplSyntaxResult](docs/CheckOplSyntaxResult.md)\n- [CheckPermissionResult](docs/CheckPermissionResult.md)\n- [CheckPermissionResultWithError](docs/CheckPermissionResultWithError.md)\n- [CreateRelationshipBody](docs/CreateRelationshipBody.md)\n- [ErrorGeneric](docs/ErrorGeneric.md)\n- [ExpandedPermissionTree](docs/ExpandedPermissionTree.md)\n- [GenericError](docs/GenericError.md)\n- [GetVersion200Response](docs/GetVersion200Response.md)\n- [HealthNotReadyStatus](docs/HealthNotReadyStatus.md)\n- [HealthStatus](docs/HealthStatus.md)\n- [IsAlive200Response](docs/IsAlive200Response.md)\n- [IsReady503Response](docs/IsReady503Response.md)\n- [Namespace](docs/Namespace.md)\n- [ParseError](docs/ParseError.md)\n- [PostCheckPermissionBody](docs/PostCheckPermissionBody.md)\n- [PostCheckPermissionOrErrorBody](docs/PostCheckPermissionOrErrorBody.md)\n- [RelationQuery](docs/RelationQuery.md)\n- [Relationship](docs/Relationship.md)\n- [RelationshipNamespaces](docs/RelationshipNamespaces.md)\n- [RelationshipPatch](docs/RelationshipPatch.md)\n- [Relationships](docs/Relationships.md)\n- [SourcePosition](docs/SourcePosition.md)\n- [SubjectSet](docs/SubjectSet.md)\n- [Version](docs/Version.md)\n\n### Authorization\n\nEndpoints do not require authorization.\n\n\n## About\n\nThis TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)\nand is automatically generated by the\n[OpenAPI Generator](https://openapi-generator.tech) project:\n\n- API version: `v26.2.0`\n- Package version: `v26.2.0`\n- Generator version: `7.17.0`\n- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`\n\nThe generated npm module supports the following:\n\n- Environments\n  * Node.js\n  * Webpack\n  * Browserify\n- Language levels\n  * ES5 - you must have a Promises/A+ library installed\n  * ES6\n- Module systems\n  * CommonJS\n  * ES6 module system\n\n\n## Development\n\n### Building\n\nTo build the TypeScript source code, you need to have Node.js and npm installed.\nAfter cloning the repository, navigate to the project directory and run:\n\n```bash\nnpm install\nnpm run build\n```\n\n### Publishing\n\nOnce you've built the package, you can publish it to npm:\n\n```bash\nnpm publish\n```\n\n## License\n\n[Apache 2.0]()\n","readmeFilename":"README.md"}