"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-NJK5F5TF.cjs');

// src/docs/purpose.json
var purpose_default = '# Purpose API\n\n- **Base URL:** `https://purpose.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/purpose](https://docs.epilot.io/api/purpose)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.purpose.createPurpose(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/purpose\'\n\nconst purposeClient = getClient()\nauthorize(purposeClient, () => \'<token>\')\nconst { data } = await purposeClient.createPurpose(...)\n```\n\n## Operations\n\n**Purpose**\n- [`createPurpose`](#createpurpose)\n- [`searchPurposes`](#searchpurposes)\n- [`batchGetPurposes`](#batchgetpurposes)\n- [`getPurpose`](#getpurpose)\n- [`updatePurpose`](#updatepurpose)\n- [`deletePurpose`](#deletepurpose)\n\n**Schemas**\n- [`Purpose`](#purpose)\n- [`CreatePurposeInput`](#createpurposeinput)\n- [`UpdatePurposeInput`](#updatepurposeinput)\n- [`BatchGetPurposesInput`](#batchgetpurposesinput)\n- [`Error`](#error)\n\n### `createPurpose`\n\nCreate Purpose\n\n`POST /v1/purpose`\n\n```ts\nconst { data } = await client.createPurpose(\n  null,\n  {\n    name: \'Electricity Contract\'\n  },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n  "id": "123e4567-e89b-12d3-a456-426614174000",\n  "name": "Electricity Contract",\n  "created_at": "1970-01-01T00:00:00.000Z",\n  "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `searchPurposes`\n\nSearch Purposes\n\n`GET /v1/purpose:search`\n\n```ts\nconst { data } = await client.searchPurposes({\n  query: \'example\',\n  size: 1,\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n  "results": [\n    {\n      "id": "123e4567-e89b-12d3-a456-426614174000",\n      "name": "Electricity Contract",\n      "created_at": "1970-01-01T00:00:00.000Z",\n      "updated_at": "1970-01-01T00:00:00.000Z"\n    }\n  ]\n}\n```\n\n</details>\n\n---\n\n### `batchGetPurposes`\n\nBatch Get Purposes\n\n`POST /v1/purpose:batchGet`\n\n```ts\nconst { data } = await client.batchGetPurposes(\n  null,\n  {\n    purposeIds: [\'123e4567-e89b-12d3-a456-426614174000\']\n  },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n  "results": [\n    {\n      "id": "123e4567-e89b-12d3-a456-426614174000",\n      "name": "Electricity Contract",\n      "created_at": "1970-01-01T00:00:00.000Z",\n      "updated_at": "1970-01-01T00:00:00.000Z"\n    }\n  ],\n  "hits": 0\n}\n```\n\n</details>\n\n---\n\n### `getPurpose`\n\nGet Purpose\n\n`GET /v1/purpose/{purposeId}`\n\n```ts\nconst { data } = await client.getPurpose({\n  purposeId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n  "id": "123e4567-e89b-12d3-a456-426614174000",\n  "name": "Electricity Contract",\n  "created_at": "1970-01-01T00:00:00.000Z",\n  "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `updatePurpose`\n\nUpdate Purpose\n\n`PUT /v1/purpose/{purposeId}`\n\n```ts\nconst { data } = await client.updatePurpose(\n  {\n    purposeId: \'example\',\n  },\n  {\n    name: \'string\'\n  },\n)\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n  "id": "123e4567-e89b-12d3-a456-426614174000",\n  "name": "Electricity Contract",\n  "created_at": "1970-01-01T00:00:00.000Z",\n  "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `deletePurpose`\n\nDelete Purpose\n\n`DELETE /v1/purpose/{purposeId}`\n\n```ts\nconst { data } = await client.deletePurpose({\n  purposeId: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n  "id": "123e4567-e89b-12d3-a456-426614174000",\n  "name": "Electricity Contract",\n  "created_at": "1970-01-01T00:00:00.000Z",\n  "updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `Purpose`\n\nA purpose used to tag and organize entities\n\n```ts\ntype Purpose = {\n  id: string // uuid\n  name: string\n  created_at?: string // date-time\n  updated_at?: string // date-time\n}\n```\n\n### `CreatePurposeInput`\n\nInput for creating a new purpose\n\n```ts\ntype CreatePurposeInput = {\n  name: string\n}\n```\n\n### `UpdatePurposeInput`\n\nInput for updating an existing purpose\n\n```ts\ntype UpdatePurposeInput = {\n  name?: string\n}\n```\n\n### `BatchGetPurposesInput`\n\nInput for batch getting purposes\n\n```ts\ntype BatchGetPurposesInput = {\n  purposeIds: string[]\n}\n```\n\n### `Error`\n\n```ts\ntype Error = {\n  status?: number\n  error?: string\n}\n```\n';


exports.default = purpose_default;
